*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
:root {
  --bg: #090b0e;
  --panel: #11161c;
  --panel-2: #171d25;
  --panel-3: #1d2530;
  --line: #283240;
  --text: #eef4f8;
  --muted: #8c9aaa;
  --quiet: #607082;
  --accent: #e7a13f;
  --accent-2: #46a6d9;
  --green: #58c286;
  --red: #e66a5f;
}
body {
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  background:
    linear-gradient(180deg, rgba(70, 166, 217, 0.08), transparent 340px),
    radial-gradient(circle at top right, rgba(231, 161, 63, 0.12), transparent 420px),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; }
img, svg, canvas, video { max-width: 100%; }
button, input, textarea { font: inherit; }
.mono { font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace; }
.shell { width: min(1480px, calc(100vw - 36px)); margin: 0 auto; }
.topbar {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 72px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--accent);
  font-weight: 800;
}
.brand strong { display: block; letter-spacing: 0.02em; }
.brand span { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.nav-spacer { flex: 1; }
.nav-link, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: rgba(17, 22, 28, 0.8);
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.button.primary { background: var(--accent); border-color: var(--accent); color: #171006; }
.button.secondary { color: var(--accent-2); }
.button:hover, .nav-link:hover { border-color: var(--accent); }
.logout-form { display: inline-flex; margin: 0; }
.logout-form .button { cursor: pointer; }
.account-menu {
  position: relative;
  display: flex;
  align-items: center;
  z-index: 90;
}
.account-menu::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 0;
  width: 220px;
  height: 12px;
}
.account-menu-trigger {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: 220px;
  padding: 4px 11px 4px 4px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #f8fafc;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.account-menu-trigger:hover,
.account-menu-trigger:focus-visible {
  border-color: rgba(76, 163, 255, 0.45);
  outline: none;
}
.account-menu-trigger img,
.account-avatar-fallback {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 50%;
  border: 1px solid rgba(76, 163, 255, 0.42);
  background: #0f172a;
  object-fit: cover;
}
.account-avatar-fallback {
  display: grid;
  place-items: center;
  color: #67c7ff;
  font-size: 11px;
  font-weight: 900;
}
.account-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 800;
}
.account-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 220px;
  display: grid;
  gap: 4px;
  padding: 8px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 9px;
  background: rgba(10, 16, 27, 0.98);
  box-shadow: 0 22px 54px rgba(0,0,0,0.42);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-5px);
  transition: opacity .14s ease, transform .14s ease, visibility .14s ease;
  visibility: hidden;
}
.account-menu:hover .account-menu-panel,
.account-menu:focus-within .account-menu-panel,
.account-menu.open .account-menu-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}
.account-menu-panel a,
.account-menu-panel .logout-form .button {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.account-menu-panel a:hover,
.account-menu-panel .logout-form .button:hover {
  background: rgba(22, 119, 255, 0.13);
  color: #ffffff;
}
.account-menu-panel .logout-form {
  display: block;
  width: 100%;
}
.mobile-bottom-nav {
  display: none;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 420px);
  gap: 28px;
  align-items: stretch;
  padding: 36px 0 24px;
}
.hero-main {
  min-height: 330px;
  display: grid;
  align-content: end;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(231, 161, 63, 0.18), transparent 52%),
    linear-gradient(45deg, rgba(70, 166, 217, 0.16), transparent 50%),
    var(--panel);
  padding: 28px;
}
.hero-main::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(180deg, transparent, black 25%, black);
  pointer-events: none;
}
.profile-lockup { position: relative; display: flex; align-items: flex-end; gap: 18px; z-index: 1; }
.avatar, .avatar-fallback {
  width: 104px;
  height: 104px;
  border: 1px solid rgba(255,255,255,0.22);
  background: var(--panel-3);
  object-fit: cover;
  flex: 0 0 auto;
}
.avatar-fallback { display: grid; place-items: center; font-size: 34px; font-weight: 800; color: var(--accent); }
.profile-title h1 { font-size: clamp(34px, 6vw, 72px); line-height: 0.92; letter-spacing: 0; margin-bottom: 12px; }
.profile-title p { color: var(--text); max-width: 720px; line-height: 1.55; font-size: 16px; }
.profile-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(9, 11, 14, 0.36);
  color: var(--muted);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 700;
}
.side-panel {
  border: 1px solid var(--line);
  background: rgba(17, 22, 28, 0.9);
  padding: 22px;
}
.side-panel h2, .section-head h2 { font-size: 15px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 16px; }
.stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stat {
  border: 1px solid var(--line);
  background: var(--panel-2);
  padding: 16px;
  min-height: 86px;
}
.stat strong { display: block; font-size: 30px; line-height: 1; color: white; }
.stat span { display: block; color: var(--muted); margin-top: 8px; font-size: 12px; }
.profile-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 24px 0 14px;
}
.section-head p { color: var(--muted); font-size: 14px; max-width: 680px; line-height: 1.5; }
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.inventory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
  padding-bottom: 46px;
}
.weapon-card {
  position: relative;
  min-width: 0;
  width: 100%;
  max-width: 280px;
  min-height: 0;
  border: 1px solid color-mix(in srgb, var(--rarity-color, #8b5cf6) 58%, rgba(148, 163, 184, 0.18));
  border-radius: 10px;
  background:
    radial-gradient(circle at 50% 34%, color-mix(in srgb, var(--rarity-color, #8b5cf6) 34%, transparent), transparent 46%),
    linear-gradient(180deg,
      color-mix(in srgb, var(--rarity-color, #8b5cf6) 18%, #191c25) 0%,
      color-mix(in srgb, var(--rarity-color, #8b5cf6) 24%, #191c25) 42%,
      color-mix(in srgb, var(--rarity-color, #8b5cf6) 16%, #171a22) 72%,
      #171a22 100%);
  padding: 12px;
  display: grid;
  gap: 9px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(0,0,0,0.24);
  justify-self: stretch;
}
.weapon-card.showcase {
  max-width: 300px;
  min-height: 0;
  padding: 12px;
  background:
    radial-gradient(circle at 50% 32%, color-mix(in srgb, var(--rarity-color, #8b5cf6) 38%, transparent), transparent 48%),
    linear-gradient(180deg,
      color-mix(in srgb, var(--rarity-color, #8b5cf6) 20%, #191c25) 0%,
      color-mix(in srgb, var(--rarity-color, #8b5cf6) 27%, #191c25) 42%,
      color-mix(in srgb, var(--rarity-color, #8b5cf6) 17%, #171a22) 72%,
      #171a22 100%);
}
.weapon-card.souvenir-card {
  border-color: color-mix(in srgb, #facc15 42%, color-mix(in srgb, var(--rarity-color, #8b5cf6) 58%, rgba(148, 163, 184, 0.18)));
  box-shadow:
    0 0 0 1px rgba(250, 204, 21, 0.26) inset,
    0 14px 34px rgba(0,0,0,0.24);
}
.weapon-card.souvenir-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  border: 1px solid rgba(250, 204, 21, 0.3);
  border-radius: 9px;
  pointer-events: none;
  z-index: 1;
}
.weapon-card.souvenir-card::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(250, 204, 21, 0.78), transparent);
  pointer-events: none;
  z-index: 1;
}
.card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  min-width: 0;
}
.weapon-media {
  position: relative;
  aspect-ratio: 1.12 / 1;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 4px 0 10px;
  overflow: hidden;
}
.weapon-card.showcase .weapon-media { aspect-ratio: 1.16 / 1; }
.weapon-card > img, .weapon-media > img, .weapon-missing {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: transparent;
  border: 0;
}
.weapon-missing { display: grid; place-items: center; color: var(--quiet); }
.applied-strip {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  justify-content: center;
  min-width: 0;
  pointer-events: auto;
  z-index: 6;
}
.applied-strip.dense {
  left: 6px;
  right: 6px;
  bottom: 7px;
  gap: 3px;
}
.applied-item {
  position: relative;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(9, 11, 14, 0.78);
  color: var(--text);
  font-size: 10px;
  font-weight: 800;
  overflow: visible;
  cursor: pointer;
  padding: 0;
}
.applied-item:hover,
.applied-item:focus-visible {
  border-color: rgba(76, 163, 255, 0.48);
  outline: none;
}
.applied-item img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
  background: transparent;
  border: 0;
}
.applied-strip.dense .applied-item {
  width: 24px;
  height: 24px;
}
.applied-strip.dense .applied-item img {
  width: 22px;
  height: 22px;
}
.attachment-popover {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  width: min(230px, calc(100vw - 28px));
  display: grid;
  gap: 10px;
  padding: 10px 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 3px;
  background: rgba(13, 13, 18, 0.98);
  color: #f8fafc;
  box-shadow: 0 18px 48px rgba(0,0,0,0.45);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 7px);
  transition: opacity .14s ease, transform .14s ease, visibility .14s ease;
  visibility: hidden;
  z-index: 40;
}
.attachment-popover::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 10px;
  height: 10px;
  background: rgba(13, 13, 18, 0.98);
  border-right: 1px solid rgba(148, 163, 184, 0.16);
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  transform: translateX(-50%) rotate(45deg);
}
.weapon-card:has(.applied-item:hover),
.weapon-card:has(.applied-item:focus-visible),
.weapon-card:has(.applied-item.popover-open) {
  overflow: visible;
  z-index: 30;
}
.weapon-media:has(.applied-item:hover),
.weapon-media:has(.applied-item:focus-visible),
.weapon-media:has(.applied-item.popover-open) {
  overflow: visible;
  z-index: 8;
}
.applied-item:hover .attachment-popover,
.applied-item:focus-visible .attachment-popover,
.applied-item.popover-open .attachment-popover {
  opacity: 1;
  transform: translate(-50%, 0);
  visibility: visible;
}
.attachment-popover-media {
  position: relative;
  height: 118px;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 12px;
  border-radius: 2px;
  background: rgba(30, 41, 59, 0.76);
}
.attachment-popover-bg {
  position: absolute;
  inset: -12px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  filter: blur(11px);
  opacity: 0.48;
  transform: scale(1.08);
}
.attachment-popover-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-width: 152px;
  max-height: 106px;
  object-fit: contain;
  filter: drop-shadow(0 10px 14px rgba(0,0,0,0.55));
}
.attachment-popover-missing {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border: 1px solid rgba(255,255,255,0.16);
  color: #cbd5e1;
  font-size: 22px;
  font-weight: 900;
}
.attachment-popover strong {
  min-width: 0;
  color: #f8fafc;
  font-size: 14px;
  line-height: 1.25;
  text-align: center;
  overflow-wrap: anywhere;
}
.attachment-popover-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #9aa4b3;
  font-size: 12px;
  font-weight: 800;
}
.attachment-popover-row b {
  color: #f8fafc;
  font-size: 13px;
}
.attachment-popover-row.price {
  margin-top: -2px;
  padding-top: 8px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  color: #9ddcff;
}
.attachment-popover-row.price b {
  color: #22d3ee;
  font-size: 14px;
}
.weapon-media > img, .weapon-media > .weapon-missing {
  max-width: 100%;
  max-height: 100%;
  height: auto;
}
.float-rank-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  max-width: 100%;
  pointer-events: none;
}
.float-rank-badge {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  background: rgba(9, 11, 14, 0.72);
  color: #f8fafc;
  padding: 0 8px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: 0 8px 18px rgba(0,0,0,0.18);
  backdrop-filter: blur(6px);
  white-space: nowrap;
}
.float-rank-badge.low {
  border-color: rgba(34, 197, 94, 0.38);
  color: #86efac;
}
.float-rank-badge.high {
  border-color: rgba(248, 113, 113, 0.42);
  color: #fca5a5;
}
.applied-more {
  min-width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(9, 11, 14, 0.78);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  padding: 0 6px;
}
.applied-strip.dense .applied-more {
  min-width: 24px;
  height: 24px;
  padding: 0 5px;
  font-size: 10px;
}
.applied-summary {
  display: none;
  gap: 5px;
  padding: 8px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.025);
}
.applied-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}
.applied-row strong {
  color: var(--quiet);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.applied-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.weapon-name {
  font-weight: 800;
  color: white;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.stack-count-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 7px;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(46, 193, 172, 0.35);
  background: rgba(46, 193, 172, 0.14);
  color: #7ff7df;
  font-size: 11px;
  font-weight: 1000;
  vertical-align: middle;
}
.weapon-sub {
  color: #98a4b5;
  font-size: 12px;
  line-height: 1.35;
  min-height: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.weapon-sub-line {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.weapon-sub-line .weapon-sub {
  min-width: 0;
  flex: 0 1 auto;
}
.weapon-sub-line .float-rank-badges {
  flex: 0 0 auto;
}
.watch-pill {
  display: inline-flex;
  align-items: center;
  min-height: 29px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  color: #aab4c4;
  padding: 0 9px;
  font-size: 12px;
  white-space: nowrap;
  background: rgba(24, 28, 38, 0.74);
}
.media-actions {
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translate(6px, -50%);
  display: grid;
  gap: 1px;
  padding: 3px;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 999px;
  background: rgba(9, 11, 14, 0.24);
  box-shadow: 0 8px 18px rgba(0,0,0,0.18);
  backdrop-filter: blur(5px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease;
  z-index: 4;
}
.weapon-card:hover .media-actions,
.weapon-card:focus-within .media-actions,
.weapon-card.actions-open .media-actions {
  opacity: 1;
  pointer-events: auto;
  transform: translate(0, -50%);
}
.media-actions span, .media-actions a {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #dbe4f2;
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
}
.media-actions span:hover, .media-actions a:hover {
  background: rgba(255,255,255,0.1);
  color: white;
}
.media-actions svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.media-actions .disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.card-actions-toggle {
  position: absolute;
  right: 6px;
  top: 6px;
  z-index: 5;
  width: 28px;
  height: 28px;
  display: none;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  background: rgba(9, 11, 14, 0.58);
  color: #e5edf7;
  box-shadow: 0 8px 18px rgba(0,0,0,0.22);
  backdrop-filter: blur(6px);
}
.card-actions-toggle svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card-actions-toggle:hover,
.card-actions-toggle:focus-visible,
.weapon-card.actions-open .card-actions-toggle {
  background: rgba(255,255,255,0.1);
  color: #fff;
  outline: none;
}
.market-footer {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding-top: 0;
}
.weapon-card.showcase .market-footer { padding-top: 0; }
.market-footer.empty {
  min-height: 31px;
  visibility: hidden;
}
.price-row {
  position: relative;
  display: grid;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 30px;
  border-radius: 6px;
  border: 1px solid rgba(34, 211, 238, 0.18);
  background:
    linear-gradient(180deg, rgba(8, 145, 178, 0.14), rgba(2, 6, 23, 0.34)),
    rgba(2, 6, 23, 0.36);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  padding: 6px 8px;
  text-align: center;
}
.price-row.has-tooltip {
  cursor: help;
}
.weapon-card:has(.price-row:hover) {
  overflow: visible;
  z-index: 32;
}
.price-row strong {
  position: relative;
  color: #e6fbff;
  font-size: 14px;
  font-weight: 950;
  line-height: 1;
  overflow: visible;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 10px rgba(34, 211, 238, 0.16);
}
.price-row.has-craft-value > strong {
  display: inline-block;
  max-width: 100%;
}
.price-row.empty {
  border-color: rgba(148, 163, 184, 0.12);
  background: rgba(2, 6, 23, 0.24);
  box-shadow: none;
}
.price-row.empty strong {
  color: #64748b;
  text-shadow: none;
}
.craft-value-inline {
  min-width: 0;
  position: absolute;
  top: -0.35em;
  left: 100%;
  display: block;
  max-width: 74px;
  margin-left: 4px;
  overflow: hidden;
  color: #a7f3d0;
  font-size: 9px;
  font-weight: 950;
  line-height: 1;
  text-overflow: ellipsis;
  text-shadow: 0 1px 8px rgba(16, 185, 129, 0.18);
  cursor: help;
}
.price-row.empty .craft-value-inline {
  color: #8aa0bc;
}
.price-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 9px);
  width: min(240px, calc(100vw - 32px));
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 6px;
  background: rgba(8, 12, 20, 0.98);
  color: #dbeafe;
  box-shadow: 0 18px 44px rgba(0,0,0,0.48);
  opacity: 0;
  pointer-events: none;
  text-align: left;
  transform: translate(-50%, 6px);
  transition: opacity .14s ease, transform .14s ease, visibility .14s ease;
  visibility: hidden;
  z-index: 45;
}
.price-tooltip::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 10px;
  height: 10px;
  border-right: 1px solid rgba(34, 211, 238, 0.18);
  border-bottom: 1px solid rgba(34, 211, 238, 0.18);
  background: rgba(8, 12, 20, 0.98);
  transform: translateX(-50%) rotate(45deg);
}
.price-row:hover .price-tooltip {
  opacity: 1;
  transform: translate(-50%, 0);
  visibility: visible;
}
.price-tooltip-title {
  color: #93c5fd;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.price-tooltip-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 10px;
  align-items: baseline;
  min-width: 0;
}
.price-tooltip-row span {
  color: #e5edf7;
  font-size: 12px;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.price-tooltip-market {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.price-tooltip-market img {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border-radius: 4px;
  object-fit: cover;
}
.price-tooltip-market span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.price-tooltip-row strong {
  color: #e6fbff;
  font-size: 12px;
  font-weight: 950;
  text-shadow: none;
}
.price-tooltip-row em {
  grid-column: 1 / -1;
  color: #8aa0bc;
  font-size: 10px;
  font-style: normal;
}
.premium-badge {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  border-radius: 999px;
  padding: 0 8px;
  background: rgba(71, 85, 105, 0.32);
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.premium-badge.premium {
  background: rgba(168, 85, 247, 0.16);
  border: 1px solid rgba(168, 85, 247, 0.34);
  color: #d8b4fe;
}
.premium-badge.admin {
  background: rgba(231, 161, 63, 0.16);
  border: 1px solid rgba(231, 161, 63, 0.34);
  color: #f8d98b;
}
.profile-pro-badge {
  min-height: 23px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 8px;
  border: 1px solid rgba(56, 189, 248, 0.42);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.22), rgba(250, 204, 21, 0.14));
  color: #e0f2fe;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.04em;
  line-height: 1;
  white-space: nowrap;
}
.float-track {
  position: relative;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,0.08);
}
.float-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #37d353 0 28%, #e6cf37 28% 48%, #ff2f3f 48% 100%);
}
.float-marker {
  position: absolute;
  top: -2px;
  width: 3px;
  height: 12px;
  background: #f8fafc;
  border-radius: 999px;
  transform: translateX(-50%);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.45);
}
.float-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #e5edf7;
  font-size: 13px;
  font-weight: 800;
  min-width: 0;
}
.float-row span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.status-row {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #c4cedc;
  font-size: 12px;
}
.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #9ca3af;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.06);
}
.weapon-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tag {
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 4px 7px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}
.card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-right: 42px;
}
.small-link, .copy-btn {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--accent-2);
  text-decoration: none;
  cursor: pointer;
  padding: 7px 9px;
  font-size: 12px;
  font-weight: 800;
}
.copy-btn.copied { color: var(--green); border-color: var(--green); }
.favorite-form {
  position: static;
  margin: 0;
}
.favorite-btn {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #aab4c4;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease, transform 160ms ease;
}
.favorite-btn:hover {
  color: white;
  background: rgba(255,255,255,0.1);
  transform: translateY(-1px);
}
.favorite-btn svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.favorite-btn.active {
  color: var(--accent-2);
  background: color-mix(in srgb, var(--accent-2) 18%, transparent);
}
.favorite-btn.active svg { fill: currentColor; }
.notice {
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent-2);
  background: var(--panel);
  color: var(--muted);
  padding: 18px 20px;
  line-height: 1.5;
}
.notice.warn { border-left-color: var(--accent); }
.notice strong { color: var(--text); }
.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  flex-wrap: wrap;
}
.toolbar input[type="search"], .toolbar select {
  min-height: 40px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  padding: 0 12px;
  outline: none;
}
.toolbar input[type="search"] { flex: 1; min-width: 240px; }
.toolbar button { min-height: 40px; }
.gallery-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 12px;
  flex-wrap: wrap;
}
.pager-summary {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}
.pager-actions, .page-sizes {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.pager-actions a, .pager-actions span, .page-sizes a, .page-sizes span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  padding: 0 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
}
.pager-actions .disabled {
  color: var(--quiet);
  opacity: 0.65;
}
.page-sizes .active {
  border-color: var(--accent);
  color: var(--accent);
}
.editor {
  display: grid;
  grid-template-columns: minmax(300px, 420px) minmax(0, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}
.form-panel, .picker-panel {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 18px;
}
.form-row { display: grid; gap: 7px; margin-bottom: 14px; }
.form-row label { color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.form-row input, .form-row textarea, .form-row select {
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  min-height: 40px;
  padding: 9px 10px;
  outline: none;
}
.form-row textarea { resize: vertical; min-height: 120px; line-height: 1.45; }
.picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
  max-height: 620px;
  overflow: auto;
  padding-right: 6px;
}
.picker-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.picker-tools input {
  flex: 1;
  min-width: 230px;
  min-height: 40px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  padding: 0 12px;
  outline: none;
}
.picker-tools span {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}
.pick-card {
  position: relative;
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  padding: 10px;
  cursor: pointer;
}
.pick-card input { position: absolute; top: 10px; left: 10px; width: 18px; height: 18px; accent-color: var(--accent); }
.pick-card img, .pick-card .weapon-missing { height: 90px; margin-top: 12px; }
.pick-card strong { font-size: 13px; line-height: 1.2; overflow-wrap: anywhere; }
.pick-card span { color: var(--muted); font-size: 12px; }
.empty-space {
  display: grid;
  place-items: center;
  min-height: 190px;
  border: 1px dashed var(--line);
  color: var(--muted);
  text-align: center;
  padding: 24px;
}
.profile-shell {
  width: 100%;
  max-width: 100vw;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% -20%, rgba(28, 111, 255, 0.18), transparent 38%),
    linear-gradient(180deg, #060b12 0%, #081019 44%, #05080d 100%);
}
.vault-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 68px;
  display: grid;
  grid-template-columns: minmax(176px, 210px) minmax(360px, 1fr) minmax(240px, 480px);
  align-items: center;
  gap: clamp(12px, 1.4vw, 22px);
  padding: 0 clamp(12px, 1.4vw, 24px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(5, 9, 15, 0.92);
  backdrop-filter: blur(16px);
  max-width: 100vw;
}
.vault-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: white;
  font-size: 20px;
  font-weight: 800;
}
.vault-logo {
  width: 42px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
}
.vault-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}
.vault-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2vw, 30px);
  color: #d4dbe7;
  font-size: 14px;
  font-weight: 700;
}
.vault-nav a { text-decoration: none; color: inherit; }
.vault-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}
.global-search {
  flex: 1;
  min-width: 220px;
  max-width: 420px;
  height: 38px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.68);
  color: var(--quiet);
  padding: 0 12px;
  border-radius: 7px;
  font-size: 13px;
}
.top-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.68);
  color: #dbeafe;
  border-radius: 7px;
  text-decoration: none;
  font-weight: 900;
}
.sign-in {
  height: 38px;
  min-width: 138px;
  border-radius: 7px;
  background: #1677ff;
  border-color: #1677ff;
  color: white;
  box-shadow: 0 12px 28px rgba(22, 119, 255, 0.32);
}
.app-frame {
  display: grid;
  grid-template-columns: clamp(124px, 10vw, 168px) minmax(0, 1fr) clamp(124px, 10vw, 168px);
  min-height: calc(100vh - 68px);
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}
.app-frame::after {
  content: "";
  display: block;
  border-left: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(7, 12, 20, 0.74);
  min-width: 0;
}
.left-rail {
  border-right: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(7, 12, 20, 0.74);
  padding: 20px 10px;
}
.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  background:
    linear-gradient(180deg, rgba(8, 13, 22, 0.72), rgba(5, 8, 13, 0.94)),
    rgba(5, 8, 13, 0.92);
  color: #93a3b8;
  padding: 34px 24px 26px;
}
.site-footer-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) repeat(2, minmax(150px, 0.5fr)) minmax(240px, 0.8fr);
  gap: 28px;
  align-items: start;
}
.site-footer-brand .vault-brand {
  display: inline-flex;
  margin-bottom: 12px;
}
.site-footer p {
  max-width: 430px;
  color: #8fa0b6;
  font-size: 13px;
  line-height: 1.55;
}
.site-footer-links {
  display: grid;
  gap: 9px;
}
.site-footer-links strong,
.site-footer-note strong {
  color: #f8fafc;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.site-footer-links a {
  width: fit-content;
  color: #a9b7c9;
  text-decoration: none;
  font-size: 13px;
  font-weight: 750;
}
.site-footer-note a {
  color: #a9b7c9;
  text-decoration: none;
  font-weight: 800;
}
.site-footer-links a:hover,
.site-footer-note a:hover {
  color: #ffffff;
}
.site-footer-note {
  display: grid;
  gap: 9px;
}
.site-footer-bottom {
  width: min(1180px, 100%);
  margin: 26px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.4;
  flex-wrap: wrap;
}
.rail-nav {
  display: grid;
  gap: 6px;
}
.rail-link {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 10px;
  border-radius: 7px;
  color: #9ba8ba;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}
.rail-link.active {
  background: rgba(22, 119, 255, 0.12);
  color: #3b9bff;
}
.rail-dot {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 18px;
  color: currentColor;
  text-align: center;
  font-weight: 900;
}
.rail-dot svg {
  width: 17px;
  height: 17px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.rail-spacer {
  height: 1px;
  margin: 26px 4px;
  background: rgba(148, 163, 184, 0.12);
}
.premium-card {
  margin-top: auto;
  border: 1px solid rgba(139, 92, 246, 0.34);
  background:
    radial-gradient(circle at bottom right, rgba(124, 58, 237, 0.32), transparent 44%),
    rgba(15, 23, 42, 0.76);
  padding: 16px;
  border-radius: 8px;
}
.premium-card span { color: var(--muted); font-size: 12px; }
.premium-card strong { display: block; margin: 5px 0 14px; color: #a855f7; font-size: 21px; }
.premium-card a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: #7c3aed;
  color: white;
  border-radius: 7px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}
.profile-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 14px;
  padding: 0 12px 28px;
  min-width: 0;
  max-width: 100%;
}
.center-column { min-width: 0; max-width: 100%; }
.panel-section,
.rail-panel,
.profile-cover,
.profile-editor-wrap,
.site-footer {
  max-width: 100%;
}
.right-rail {
  display: grid;
  align-content: start;
  gap: 14px;
  padding-top: 258px;
}
.profile-cover {
  min-height: 254px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.13);
  border-top: 0;
  border-radius: 0 0 10px 10px;
  background:
    linear-gradient(90deg, rgba(5, 9, 15, 0.92) 0%, rgba(5, 9, 15, 0.66) 42%, rgba(5, 9, 15, 0.36) 100%),
    radial-gradient(circle at 72% 0%, rgba(22, 119, 255, 0.56), transparent 38%),
    linear-gradient(135deg, #0b1424 0%, #10192b 46%, #07101d 100%);
}
.profile-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(115deg, transparent 0 54%, rgba(22, 119, 255, 0.12) 54% 56%, transparent 56%),
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
  opacity: 0.7;
}
.profile-cover::after {
  content: "";
  position: absolute;
  right: 52px;
  top: -18px;
  width: min(46%, 460px);
  height: 230px;
  background-image: var(--cover-img);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  filter: drop-shadow(0 24px 48px rgba(0,0,0,0.55));
  opacity: 0.72;
  transform: rotate(-7deg);
}
.cover-art-text {
  position: absolute;
  right: 36px;
  top: 44px;
  color: rgba(37, 99, 235, 0.28);
  font-size: clamp(42px, 7vw, 86px);
  font-style: italic;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  transform: rotate(-8deg);
  z-index: 1;
}
.profile-identity {
  position: absolute;
  left: 30px;
  right: 28px;
  bottom: 28px;
  z-index: 2;
  display: grid;
  grid-template-columns: 138px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
}
.vault-avatar, .vault-avatar-fallback {
  width: 138px;
  height: 138px;
  border-radius: 50%;
  border: 3px solid #0ea5ff;
  box-shadow: 0 0 0 5px rgba(14, 165, 255, 0.16), 0 22px 46px rgba(0,0,0,0.5);
  background: #0f172a;
  object-fit: cover;
}
.vault-avatar-fallback {
  display: grid;
  place-items: center;
  color: #38bdf8;
  font-size: 40px;
  font-weight: 900;
}
.identity-copy h1 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1;
  color: white;
  margin-bottom: 8px;
}
.verified {
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #1683ff;
  color: white;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  flex: 0 0 auto;
}
.verified.unclaimed {
  border: 1px solid rgba(148, 163, 184, 0.34);
  background: rgba(71, 85, 105, 0.42);
  color: #cbd5e1;
}
.handle-line {
  color: #9ca9bb;
  font-size: 14px;
  margin-bottom: 9px;
}
.identity-copy p {
  color: #c6d0df;
  max-width: 760px;
  line-height: 1.45;
  font-size: 15px;
}
.profile-social-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 11px;
}
.profile-social-counts span {
  min-height: 27px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 999px;
  background: rgba(9, 11, 14, 0.34);
  color: #9ca9bb;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
}
.profile-social-counts strong {
  color: white;
  font-size: 13px;
}
.cover-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.cover-actions .button { border-radius: 7px; min-height: 38px; }
.profile-stat-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(7, 12, 20, 0.58);
  padding: 14px 22px;
  gap: 10px;
}
.mini-stat {
  display: grid;
  gap: 4px;
  border-right: 1px solid rgba(148, 163, 184, 0.12);
  min-width: 0;
}
.mini-stat:last-child { border-right: 0; }
.mini-stat span { color: var(--muted); font-size: 12px; }
.mini-stat strong { color: white; font-size: 18px; }
.mini-stat .green { color: #00d096; }
.profile-badge-strip {
  display: block;
  padding: 12px 22px 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  background:
    linear-gradient(90deg, rgba(70, 166, 217, 0.08), transparent 34%),
    rgba(7, 12, 20, 0.44);
}
.badge-scroll {
  display: flex;
  gap: 10px;
  min-width: 0;
  overflow-x: auto;
  padding-bottom: 2px;
  cursor: grab;
  scrollbar-width: none;
  -ms-overflow-style: none;
  user-select: none;
}
.badge-scroll::-webkit-scrollbar { display: none; }
.badge-scroll.dragging { cursor: grabbing; }
.site-badge {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--badge-color, #46a6d9) 52%, rgba(148, 163, 184, 0.14));
  border-radius: 8px;
  background:
    radial-gradient(circle at 20% 50%, color-mix(in srgb, var(--badge-color, #46a6d9) 20%, transparent), transparent 52%),
    rgba(13, 20, 32, 0.74);
  padding: 6px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.site-badge img, .site-badge > span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  object-fit: contain;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  color: white;
  font-size: 12px;
  font-weight: 900;
}
.panel-section {
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(10, 16, 27, 0.72);
  border-radius: 9px;
  padding: 14px;
  margin-top: 16px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.18);
}
.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.panel-title h2 {
  color: white;
  font-size: 16px;
  letter-spacing: 0;
  text-transform: none;
  margin: 0;
}
.panel-title a, .panel-title span {
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
}
.featured-vault-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  align-items: start;
}
.featured-vault-grid .weapon-card.showcase {
  border-radius: 10px;
  justify-self: center;
}
.featured-vault-grid .weapon-card { border-color: color-mix(in srgb, var(--rarity-color, #8b5cf6) 70%, rgba(148, 163, 184, 0.2)); }
.inventory-panel { margin-top: 16px; }
.inventory-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.inventory-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-size: 18px;
  font-weight: 800;
}
.inventory-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-tabs {
  display: flex;
  gap: 7px;
  margin-bottom: 14px;
  overflow-x: auto;
  padding-bottom: 2px;
}
.filter-tabs span,
.filter-tabs a {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.54);
  color: #9ba8ba;
  border-radius: 6px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.filter-tabs a:hover {
  border-color: rgba(76, 163, 255, 0.45);
  color: #dcecff;
  background: rgba(22,119,255,0.08);
}
.filter-tabs .active { border-color: #1683ff; color: #4ca3ff; background: rgba(22,119,255,0.14); }
.vault-inventory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  align-items: start;
  padding-bottom: 18px;
}
.vault-inventory-grid .weapon-card {
  justify-self: center;
}
.vault-inventory-grid .weapon-sub { min-height: 0; font-size: 12px; }
.vault-inventory-grid .weapon-tags { gap: 5px; }
.vault-inventory-grid .tag { font-size: 10px; padding: 3px 6px; }
.vault-inventory-grid .applied-summary { display: none; }
.rail-panel {
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(10, 16, 27, 0.78);
  border-radius: 9px;
  padding: 12px;
}
.rail-panel h3 {
  color: white;
  font-size: 15px;
  margin-bottom: 12px;
}
.loadout-list, .activity-list { display: grid; gap: 8px; }
.loadout-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 58px;
  border: 1px solid rgba(148, 163, 184, 0.1);
  background: rgba(15, 23, 42, 0.56);
  border-radius: 6px;
  padding: 7px;
}
.loadout-item img, .loadout-item .weapon-missing {
  width: 72px;
  height: 42px;
  object-fit: contain;
  border: 0;
  background: rgba(0,0,0,0.14);
}
.loadout-item strong {
  display: block;
  color: white;
  font-size: 12px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.loadout-item span { display: block; color: var(--muted); font-size: 11px; margin-bottom: 2px; }
.activity-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 9px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  padding: 8px 0;
  color: #cbd5e1;
  font-size: 12px;
  line-height: 1.35;
}
.activity-item:last-child { border-bottom: 0; }
.activity-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(22, 119, 255, 0.14);
  color: #4ca3ff;
  font-size: 12px;
  font-weight: 900;
}
.skin-preview-open { overflow: hidden; }
.skin-preview-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: grid;
  place-items: center;
  background: rgba(2, 6, 12, 0.78);
  backdrop-filter: blur(8px);
  padding: 18px;
}
.skin-preview-backdrop[hidden] { display: none; }
.skin-preview-modal {
  width: min(1240px, 100%);
  max-height: min(86vh, 900px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border: 1px solid rgba(251, 191, 36, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(251, 191, 36, 0.08), rgba(56, 189, 248, 0.05) 44%, rgba(255, 45, 149, 0.07)),
    rgba(7, 12, 20, 0.98);
  box-shadow: 0 24px 90px rgba(0,0,0,0.48);
  overflow: hidden;
}
.skin-preview-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  padding: 18px;
}
.skin-preview-title {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.skin-preview-title span {
  width: fit-content;
  color: #fbbf24;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}
.skin-preview-title strong {
  color: #f8fafc;
  font-size: clamp(22px, 4vw, 34px);
  line-height: 1.05;
}
.skin-preview-title em {
  color: #94a3b8;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}
.skin-preview-close {
  min-width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 50%;
  background: rgba(10, 16, 27, 0.82);
  color: #f8fafc;
  cursor: pointer;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}
.skin-preview-body {
  display: grid;
  gap: 16px;
  min-height: 0;
  overflow: auto;
  padding: 18px;
}
.skin-preview-detail { display: grid; gap: 16px; }
.skin-preview-hero {
  display: grid;
  grid-template-columns: minmax(270px, 0.74fr) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}
.skin-preview-media,
.skin-preview-info,
.skin-preview-section {
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 8px;
  background: rgba(10, 16, 27, 0.68);
}
.skin-preview-media {
  min-height: 278px;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--rarity, #4b69ff) 22%, transparent), transparent 48%),
    rgba(10, 16, 27, 0.72);
}
.skin-preview-media img {
  max-width: 100%;
  max-height: 252px;
  object-fit: contain;
  filter: drop-shadow(0 20px 18px rgba(0,0,0,0.34));
}
.skin-preview-info,
.skin-preview-section {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 16px;
}
.skin-preview-info h2,
.skin-preview-section h3 {
  color: #f8fafc;
  font-size: 18px;
  line-height: 1.2;
}
.skin-preview-section h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.skin-preview-section h3 span {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}
.skin-preview-section h3 a {
  color: #38bdf8;
  font-size: 12px;
  text-decoration: none;
}
.skin-preview-info > span {
  color: #fbbf24;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}
.skin-preview-flavor {
  border-left: 2px solid rgba(251, 191, 36, 0.55);
  color: #d8c9a5;
  font-size: 13px;
  font-style: italic;
  line-height: 1.5;
  padding-left: 10px;
}
.skin-preview-tags,
.skin-preview-cases,
.skin-preview-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.skin-preview-tags span,
.skin-preview-case,
.skin-preview-muted {
  min-height: 24px;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.74);
  color: #dbeafe;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
}
.skin-preview-case img {
  width: 28px;
  height: 20px;
  flex: 0 0 auto;
  object-fit: contain;
  margin-right: 6px;
}
.skin-preview-case strong {
  min-width: 0;
  white-space: normal;
}
.skin-preview-price {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 12px;
  align-items: baseline;
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.12), rgba(15, 23, 42, 0.68));
  padding: 10px 12px;
}
.skin-preview-price.unavailable {
  border-color: rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.58);
}
.skin-preview-price span {
  color: #94a3b8;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}
.skin-preview-price strong {
  color: #f8fafc;
  font-size: 22px;
  font-weight: 950;
  line-height: 1;
  text-align: right;
}
.skin-preview-price em {
  grid-column: 1 / -1;
  min-width: 0;
  color: #9cc7a6;
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.skin-preview-marketplaces {
  border-color: rgba(56, 189, 248, 0.16);
  background:
    linear-gradient(135deg, rgba(14, 116, 144, 0.12), rgba(10, 16, 27, 0.74)),
    rgba(10, 16, 27, 0.68);
}
.skin-preview-market-grid {
  display: grid;
  gap: 7px;
}
.skin-preview-market-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(96px, 0.45fr) minmax(84px, 0.35fr) auto;
  gap: 8px;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.11);
  border-radius: 7px;
  background: rgba(4, 8, 14, 0.52);
  padding: 10px;
}
.skin-preview-market-row strong,
.skin-preview-market-row a {
  min-width: 0;
  color: #f8fafc;
  font-size: 13px;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.skin-preview-market-row strong .skin-preview-market-name {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  overflow: hidden;
}
.skin-preview-market-name img {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border-radius: 5px;
  background: rgba(2, 6, 23, 0.42);
  object-fit: cover;
}
.skin-preview-market-row .skin-preview-market-name span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.skin-preview-market-row a:hover {
  color: #7dd3fc;
}
.skin-preview-market-row span {
  min-width: 0;
  display: grid;
  gap: 2px;
  color: #dbeafe;
  font-size: 12px;
  font-weight: 900;
}
.skin-preview-market-row b {
  color: #94a3b8;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}
.skin-preview-market-view {
  min-width: 58px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 7px;
  background: rgba(14, 116, 144, 0.16);
  color: #dff7ff;
  font-size: 12px;
  font-weight: 950;
  text-decoration: none;
}
.skin-preview-market-view:hover {
  border-color: rgba(56, 189, 248, 0.52);
  background: rgba(14, 116, 144, 0.28);
}
.skin-preview-market-view.disabled {
  pointer-events: none;
  opacity: 0.42;
}
.skin-preview-attachments .skin-preview-attachment {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.74);
  overflow: visible;
}
.skin-preview-attachments .skin-preview-attachment > img {
  max-width: 28px;
  max-height: 28px;
  object-fit: contain;
}
.skin-preview-attachments.dense {
  gap: 5px;
}
.skin-preview-attachments.dense .skin-preview-attachment {
  width: 30px;
  height: 30px;
}
.skin-preview-attachments.dense .skin-preview-attachment > img {
  max-width: 24px;
  max-height: 24px;
}
.skin-preview-inline {
  display: grid;
  gap: 8px;
  align-self: end;
  margin-top: auto;
}
.skin-preview-inline h3 {
  color: #f8fafc;
  font-size: 12px;
  text-transform: uppercase;
}
.skin-preview-ranks,
.skin-preview-db-list {
  display: grid;
  gap: 6px;
}
.skin-preview-rank-row,
.skin-preview-db-row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 112px minmax(110px, 0.8fr) 78px;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 7px;
  background: rgba(4, 8, 14, 0.5);
  padding: 9px 10px;
  color: #94a3b8;
  font-size: 12px;
}
.skin-preview-db-row {
  grid-template-columns: 74px minmax(0, 1fr) 72px minmax(110px, 0.8fr) 78px;
  border-color: color-mix(in srgb, var(--rarity, #4b69ff) 34%, rgba(148, 163, 184, 0.1));
}
.skin-preview-db-row img {
  width: 70px;
  height: 42px;
  object-fit: contain;
}
.skin-preview-rank-row strong,
.skin-preview-db-row strong {
  color: #f8fafc;
  font-size: 13px;
}
.skin-preview-rank-row span,
.skin-preview-rank-row a,
.skin-preview-db-row span,
.skin-preview-db-row a {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.skin-preview-rank-row a,
.skin-preview-db-row a {
  color: #dbeafe;
  text-decoration: none;
}
.skin-preview-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}
.skin-preview-actions a,
.skin-preview-actions span {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.78);
  color: #dbeafe;
}
.skin-preview-actions svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.skin-preview-empty {
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 8px;
  background: rgba(10, 16, 27, 0.72);
  color: #94a3b8;
  padding: 16px;
  font-size: 13px;
  font-weight: 850;
}
.skin-preview-selected h3 span {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 900;
}
.skin-preview-selected-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}
.skin-preview-selected-main {
  display: grid;
  gap: 10px;
  min-width: 0;
}
.skin-preview-float-track {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #22c55e 0 7%, #84cc16 7% 15%, #facc15 15% 38%, #fb923c 38% 45%, #ff3b4f 45% 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18);
  overflow: visible;
}
.skin-preview-float-fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255,255,255,0.18), transparent 30%, rgba(0,0,0,0.16));
}
.skin-preview-float-marker {
  position: absolute;
  top: 50%;
  width: 10px;
  height: 16px;
  border: 2px solid #f8fafc;
  border-radius: 999px;
  background: rgba(2, 6, 12, 0.78);
  box-shadow: 0 0 0 2px rgba(0,0,0,0.18), 0 6px 16px rgba(0,0,0,0.32);
  transform: translate(-50%, -50%);
}
.skin-preview-selected-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.skin-preview-selected-stats div {
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 7px;
  background: rgba(4, 8, 14, 0.44);
  padding: 8px;
}
.skin-preview-selected-stats span {
  display: block;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}
.skin-preview-selected-stats strong {
  display: block;
  min-width: 0;
  color: #f8fafc;
  font-size: 12px;
  font-family: var(--mono);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.skin-preview-selected-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.skin-preview-selected-actions a {
  min-width: 104px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.78);
  color: #dbeafe;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}
.skin-preview-selected-actions a:hover {
  border-color: rgba(56, 189, 248, 0.42);
  background: rgba(14, 116, 144, 0.18);
}
.skin-preview-selected-actions svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.profile-editor-wrap {
  display: none;
  margin-top: 16px;
}
.profile-editor-wrap:target { display: block; }
@media (max-width: 900px) {
  html,
  body,
  .profile-shell {
    max-width: 100vw;
    overflow-x: hidden;
  }
  body {
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }
  .hero, .editor { grid-template-columns: 1fr; }
  .showcase-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topbar { flex-wrap: wrap; padding: 14px 0; }
  .nav-spacer { display: none; }
  .vault-topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    width: 100%;
    max-width: 100vw;
    min-height: calc(60px + env(safe-area-inset-top));
    height: auto;
    padding: calc(10px + env(safe-area-inset-top)) 12px 10px;
  }
  .vault-brand {
    min-width: 0;
    font-size: 18px;
  }
  .vault-logo {
    width: 38px;
    height: 32px;
  }
  .vault-nav,
  .global-search,
  .top-icon,
  .vault-actions .button.secondary {
    display: none;
  }
  .vault-actions {
    min-width: 0;
    gap: 8px;
  }
  .account-menu-trigger {
    max-width: 180px;
  }
  .vault-actions .sign-in,
  .logout-form .sign-in {
    min-width: 0;
    height: 36px;
    padding: 0 11px;
    border-radius: 7px;
    font-size: 12px;
  }
  .app-frame {
    display: block;
    min-height: auto;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    padding-bottom: 0;
  }
  .app-frame::after {
    display: none;
  }
  .left-rail {
    display: none;
  }
  .left-rail .rail-spacer,
  .left-rail .premium-card,
  .left-rail nav[aria-label="Social"] {
    display: none;
  }
  .rail-nav {
    display: flex;
    gap: 6px;
    min-width: max-content;
  }
  .rail-link {
    min-width: 68px;
    min-height: 52px;
    flex: 0 0 auto;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 6px 9px;
    font-size: 11px;
    line-height: 1.05;
    text-align: center;
  }
  .rail-dot {
    width: 19px;
    height: 19px;
    flex-basis: 19px;
  }
  .rail-dot svg {
    width: 18px;
    height: 18px;
  }
  .profile-main {
    grid-template-columns: 1fr !important;
    gap: 14px;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    padding: 8px 12px calc(88px + env(safe-area-inset-bottom));
  }
  .mobile-bottom-nav {
    position: fixed;
    left: 10px;
    right: 10px;
    max-width: calc(100vw - 20px);
    bottom: calc(8px + env(safe-area-inset-bottom));
    z-index: 80;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(54px, 1fr));
    gap: 4px;
    padding: 6px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 14px;
    background: rgba(8, 12, 20, 0.94);
    box-shadow: 0 18px 46px rgba(0,0,0,0.42), inset 0 1px 0 rgba(255,255,255,0.04);
    backdrop-filter: blur(14px);
  }
  .mobile-bottom-nav a,
  .mobile-nav-more summary {
    min-width: 0;
    min-height: 48px;
    display: grid;
    place-items: center;
    gap: 3px;
    border-radius: 10px;
    color: #b8c3d4;
    text-decoration: none;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
  }
  .mobile-nav-more {
    position: relative;
    min-width: 0;
  }
  .mobile-nav-more summary {
    list-style: none;
    height: 100%;
    cursor: pointer;
  }
  .mobile-nav-more summary::-webkit-details-marker {
    display: none;
  }
  .mobile-bottom-nav a:hover,
  .mobile-bottom-nav a:focus-visible,
  .mobile-nav-more summary:hover,
  .mobile-nav-more summary:focus-visible,
  .mobile-nav-more[open] summary {
    background: rgba(22, 119, 255, 0.14);
    color: #ffffff;
    outline: none;
  }
  .mobile-bottom-nav svg,
  .mobile-nav-more summary svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .mobile-nav-more-panel {
    position: absolute;
    right: -1px;
    bottom: calc(100% + 10px);
    width: min(184px, calc(100vw - 26px));
    display: grid;
    gap: 4px;
    padding: 6px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 8px 8px 3px 8px;
    background: rgba(8, 12, 20, 0.97);
    box-shadow: 0 18px 46px rgba(0,0,0,0.42), inset 0 1px 0 rgba(255,255,255,0.04);
    backdrop-filter: blur(14px);
    transform: translateY(8px) scale(0.98);
    transform-origin: right bottom;
    opacity: 0;
    pointer-events: none;
    transition: opacity .14s ease, transform .14s ease;
  }
  .mobile-nav-more[open] .mobile-nav-more-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }
  .mobile-nav-more-panel::after {
    content: "";
    position: absolute;
    right: 22px;
    bottom: -10px;
    width: 28px;
    height: 10px;
    border-right: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(8, 12, 20, 0.97);
  }
  .mobile-nav-more-panel a {
    grid-template-columns: 22px 1fr;
    justify-content: start;
    justify-items: start;
    min-height: 42px;
    padding: 0 10px;
    gap: 9px;
    font-size: 11px;
  }
  .mobile-nav-more-panel a svg {
    width: 18px;
    height: 18px;
  }
  .right-rail {
    display: grid;
    padding-top: 0 !important;
  }
  .skin-preview-backdrop {
    align-items: stretch;
    padding: 8px;
  }
  .skin-preview-modal {
    max-height: calc(100dvh - 16px);
    width: 100%;
  }
  .skin-preview-head {
    padding: 14px;
  }
  .skin-preview-body {
    padding: 12px;
  }
  .skin-preview-hero {
    grid-template-columns: 1fr;
  }
  .skin-preview-media {
    min-height: 190px;
  }
  .skin-preview-media img {
    max-height: 178px;
  }
  .skin-preview-rank-row,
  .skin-preview-db-row {
    grid-template-columns: 1fr auto;
    gap: 6px;
  }
  .skin-preview-db-row img {
    width: 86px;
    height: 52px;
    grid-row: span 2;
  }
  .skin-preview-market-row {
    grid-template-columns: 1fr 1fr;
  }
  .skin-preview-market-row strong {
    grid-column: 1 / -1;
  }
  .skin-preview-market-view {
    width: 100%;
  }
  .skin-preview-rank-row > *,
  .skin-preview-db-row > * {
    min-width: 0;
  }
  .skin-preview-actions {
    justify-content: flex-start;
  }
  .skin-preview-selected-grid {
    grid-template-columns: 1fr;
  }
  .skin-preview-selected-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .skin-preview-selected-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .skin-preview-selected-actions a {
    min-width: 0;
    flex: 1 1 120px;
  }
  .profile-cover {
    min-height: 0 !important;
    border-top: 1px solid rgba(148, 163, 184, 0.13);
    border-radius: 8px;
    padding: 22px 18px;
  }
  .profile-identity {
    position: relative;
    grid-template-columns: 1fr !important;
    align-items: start;
    left: auto;
    right: auto;
    bottom: auto;
    gap: 14px;
  }
  .identity-copy h1 {
    font-size: clamp(26px, 8vw, 34px);
    flex-wrap: wrap;
  }
  .identity-copy p {
    max-width: none;
    font-size: 14px;
  }
  .vault-avatar, .vault-avatar-fallback {
    width: 96px;
    height: 96px;
  }
  .cover-actions {
    justify-content: flex-start;
  }
  .profile-stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .featured-vault-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .shell { width: min(calc(100vw - 24px), 1480px); max-width: calc(100vw - 24px); }
  .hero-main { padding: 18px; min-height: 420px; }
  .profile-lockup { align-items: flex-start; flex-direction: column; }
  .avatar, .avatar-fallback { width: 84px; height: 84px; }
  .showcase-grid, .inventory-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .vault-topbar {
    min-height: calc(58px + env(safe-area-inset-top));
    padding: calc(9px + env(safe-area-inset-top)) 10px 9px;
  }
  .vault-brand {
    font-size: 16px;
  }
  .vault-actions .sign-in,
  .logout-form .sign-in {
    min-height: 34px;
    padding: 0 9px;
  }
  .account-menu:hover .account-menu-panel {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-5px);
    visibility: hidden;
  }
  .account-menu.open .account-menu-panel,
  .account-menu:focus-within .account-menu-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
  }
  .account-menu-trigger {
    max-width: 154px;
    min-height: 36px;
    padding-right: 9px;
  }
  .account-name {
    max-width: 104px;
  }
  .account-menu-panel {
    right: 0;
    width: min(220px, calc(100vw - 24px));
  }
  .profile-cover::after, .cover-art-text { display: none; }
  .profile-cover {
    padding: 18px 14px;
  }
  .profile-stat-strip { grid-template-columns: 1fr; }
  .featured-vault-grid,
  .vault-inventory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .featured-vault-grid .weapon-card,
  .vault-inventory-grid .weapon-card,
  .weapon-card {
    max-width: none;
    border-radius: 8px;
    gap: 7px;
    padding: 9px;
  }
  .weapon-media {
    aspect-ratio: 1 / 0.92;
    padding: 2px 0 7px;
  }
  .weapon-card.showcase .weapon-media {
    aspect-ratio: 1 / 0.95;
  }
  .weapon-name {
    font-size: 13px;
    line-height: 1.16;
  }
  .weapon-sub {
    font-size: 11px;
  }
  .weapon-sub-line {
    gap: 5px;
  }
  .weapon-tags {
    gap: 4px;
  }
  .tag {
    font-size: 9px;
    padding: 2px 4px;
  }
  .price-row strong {
    font-size: 16px;
  }
  .float-row {
    gap: 6px;
    font-size: 11px;
    line-height: 1.2;
  }
  .float-row span:first-child {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .float-row span:last-child {
    flex: 0 0 auto;
    white-space: nowrap;
  }
  .watch-pill {
    min-height: 25px;
    padding: 0 7px;
    font-size: 11px;
  }
  .applied-strip {
    left: 5px;
    right: 5px;
    bottom: 5px;
    gap: 4px;
  }
  .attachment-popover {
    width: min(292px, calc(100vw - 18px));
    gap: 11px;
    padding: 11px 11px 13px;
  }
  .attachment-popover-media {
    height: 168px;
    padding: 14px;
  }
  .attachment-popover-media img {
    max-width: 246px;
    max-height: 146px;
  }
  .skin-preview-attachments .attachment-popover {
    width: min(306px, calc(100vw - 18px));
  }
  .skin-preview-attachments .attachment-popover-media {
    height: 178px;
  }
  .skin-preview-attachments .attachment-popover-media img {
    max-width: 258px;
    max-height: 156px;
  }
  .float-rank-badges {
    max-width: 100%;
    gap: 3px;
  }
  .float-rank-badge {
    min-height: 19px;
    padding: 0 6px;
    font-size: 9px;
  }
  .applied-item,
  .applied-item img,
  .applied-more {
    width: 22px;
    height: 22px;
  }
  .media-actions {
    right: 6px;
    top: 40px;
    transform: translateY(-4px);
    opacity: 0;
    pointer-events: none;
  }
  .weapon-card:hover .media-actions {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
  }
  .weapon-card.actions-open .media-actions,
  .weapon-card:focus-within .media-actions {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .card-actions-toggle {
    display: grid;
  }
  .media-actions span,
  .media-actions a {
    width: 23px;
    height: 23px;
  }
  .panel-section,
  .rail-panel {
    padding: 12px;
  }
  .panel-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
  .inventory-head,
  .inventory-controls {
    align-items: stretch;
    flex-direction: column;
  }
  .inventory-controls .button,
  .cover-actions .button {
    width: 100%;
  }
  .cover-actions {
    width: 100%;
    justify-content: flex-start;
  }
  .profile-main {
    padding-left: 10px;
    padding-right: 10px;
  }
  .shell {
    padding-bottom: calc(88px + env(safe-area-inset-bottom));
  }
}
@media (max-width: 380px) {
  .featured-vault-grid,
  .vault-inventory-grid {
    gap: 8px;
  }
  .weapon-card {
    padding: 8px;
  }
  .weapon-name {
    font-size: 12px;
  }
  .weapon-sub,
  .watch-pill {
    font-size: 10px;
  }
  .float-row {
    font-size: 10px;
  }
}
:where(
  [class*="-pill"],
  .button,
  .nav-link,
  .chip,
  .tag,
  .watch-pill,
  .float-rank-badge,
  .market-badge,
  .rarity-pill,
  .status-pill,
  .profile-pill,
  .tab-button,
  .filter-chip,
  .account-menu-panel a,
  .account-menu-panel .logout-form .button,
  input,
  select,
  textarea
) {
  border-radius: 4px !important;
}
:where(
  [class*="-card"],
  [class*="-panel"],
  [class*="-modal"],
  [class*="-popover"],
  [class*="-drawer"],
  .account-menu-trigger,
  .account-menu-panel,
  .side-panel,
  .stat,
  .panel-section,
  .rail-panel,
  .profile-editor-wrap,
  .weapon-card,
  .weapon-card.showcase,
  .weapon-missing,
  .media-actions,
  .attachment-popover,
  .premium-card,
  .profile-stat-strip,
  .sync-status-card,
  .inventory-panel,
  .site-footer,
  .hero-main
) {
  border-radius: 6px !important;
}
.profile-cover {
  border-radius: 0 0 6px 6px !important;
}
.weapon-card.souvenir-card::before {
  border-radius: 5px !important;
}
.weapon-card.souvenir-card::after,
.float-track,
.float-fill,
.account-menu-trigger img,
.account-avatar-fallback,
.avatar,
.avatar-fallback,
.user-avatar,
.vault-avatar,
.vault-avatar-fallback,
.feed-avatar {
  border-radius: inherit;
}
.account-menu-trigger img,
.account-avatar-fallback,
.avatar,
.avatar-fallback,
.user-avatar,
.vault-avatar,
.vault-avatar-fallback,
.feed-avatar {
  border-radius: 50% !important;
}
@media (max-width: 820px) {
  .mobile-bottom-nav {
    border-radius: 8px !important;
  }
  .mobile-bottom-nav a,
  .mobile-nav-more summary {
    border-radius: 5px !important;
  }
  .mobile-nav-more-panel {
    border-radius: 6px 6px 3px 6px !important;
  }
}
