

:root {
  
  --bg:             #0a0a0a;
  --bg-lift:        #0f0f10;
  --panel:          #121214;
  --panel-hover:    #17171a;
  --panel-inner:    #17171a;

  --border:         rgba(255, 255, 255, 0.08);
  --border-strong:  rgba(255, 255, 255, 0.14);
  --border-hover:   rgba(255, 255, 255, 0.22);

  --text:           #fafafa;
  --text-muted:     rgba(255, 255, 255, 0.68);
  --text-dim:       rgba(255, 255, 255, 0.45);
  --text-faint:     rgba(255, 255, 255, 0.3);
  --text-ghost:     rgba(255, 255, 255, 0.15);

  --accent:         #ffffff;
  --accent-2:       rgba(255, 255, 255, 0.35);

  --success:        #86efac;
  --success-bg:    rgba(134, 239, 172, 0.1);
  --danger:         #fca5a5;
  --danger-bg:      rgba(252, 165, 165, 0.1);
  --warn:           #fcd34d;
  --warn-bg:        rgba(252, 211, 77, 0.1);

  --chart-bar:      #71747a;
  --chart-bar-fill: rgba(113, 116, 122, 0.7);

  --sidebar-w:      clamp(180px, 14vw, 240px);
  --sidebar-w-collapsed: 56px;
  --sidebar-gap:    16px;
  --content-pad:    clamp(16px, 2vw, 32px);
  --toggle-w:       52px;  
  --panel-min-h:    360px;
  --kpi-row-h:      clamp(98px, 7vw, 114px);

  --drawer-w:       clamp(560px, calc((100vw - var(--sidebar-w) - var(--sidebar-gap) * 2) * 0.75), 720px);

  --attrs-filter-w: 340px;

  --search-pill-w:        clamp(240px, 28vw, 380px);
  --search-pill-w-narrow: clamp(160px, 15vw, 220px);

  --space-xs: clamp(4px, 0.4vw, 6px);
  --space-sm: clamp(6px, 0.6vw, 10px);
  --space-md: clamp(10px, 1vw, 16px);
  --space-lg: clamp(14px, 1.4vw, 22px);
  --space-xl: clamp(20px, 2vw, 32px);

  --font-xs: clamp(10px, 0.75vw, 12px);
  --font-sm: clamp(11px, 0.85vw, 13px);
  --font-md: clamp(13px, 1vw, 15px);
  --font-h1: clamp(20px, 1.9vw, 26px);

  --pill-h:    clamp(28px, 2.4vw, 40px);
  --pill-h-sm: clamp(24px, 2vw, 32px);

  --radius:         12px;
  --radius-sm:      8px;
  --radius-xs:      6px;

  --dur-micro:  120ms;   
  --dur-fast:   200ms;   
  --dur-base:   320ms;   
  --dur-slow:   460ms;   
  --dur-morph:  560ms;   

  --ease-standard: cubic-bezier(.4, 0, .2, 1);      
  --ease-glass:    cubic-bezier(.22, 1, .36, 1);     
  --ease-spring:   cubic-bezier(.34, 1.45, .64, 1);

  --glass-blur:    20px;
  --glass-sat:     160%;

  --sans:           'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:           'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 13.5px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; color: inherit; background: none; border: 0; padding: 0; }
svg { display: block; }
::selection { background: rgba(255, 255, 255, 0.2); color: var(--text); }

.backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 1000px 500px at 50% -200px, rgba(255, 255, 255, 0.04), transparent 65%),
    radial-gradient(ellipse 700px 400px at 15% 40%, rgba(120, 100, 140, 0.05), transparent 60%),
    radial-gradient(ellipse 700px 400px at 85% 70%, rgba(80, 120, 140, 0.04), transparent 60%);
}

.side-nav {
  position: fixed;
  top: var(--sidebar-gap);
  left: var(--sidebar-gap);
  bottom: var(--sidebar-gap);
  width: var(--sidebar-w);
  z-index: 50;
}
.side-shell {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 14px 12px;
  background: rgba(15, 15, 17, 0.6);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 10px 40px rgba(0, 0, 0, 0.4);
  overflow-y: auto;

  overflow-x: hidden;
}
.side-shell::-webkit-scrollbar { width: 4px; }
.side-shell::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.08); border-radius: 2px; }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px;
  margin-bottom: 6px;
  color: var(--text);
}
.logo-mark {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
  border: 1px solid var(--border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  flex-shrink: 0;
  overflow: hidden;
}

.logo-mark.has-emoji {
  background: transparent;
  border-color: transparent;
  overflow: visible;
  position: relative;
  cursor: pointer;
}
.logo-mark.has-emoji .logo-emoji-img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 38px;
  height: 38px;

  transform: translate(-50%, calc(-50% - 3px));
}
.logo-emoji-img {
  width: 100%;
  height: 100%;
  object-fit: contain;

  image-rendering: auto;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
.logo-text {
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;

  white-space: nowrap;
}

.logo-text-short { display: none; }

@media (max-width: 1430px) {
  .logo-text-full { display: none; }
  .logo-text-short { display: inline; }
}

.nav-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 12px;
  height: 36px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-xs);
  transition:
    color 0.15s,
    background 0.15s,
    width var(--resize-dur) var(--resize-ease),
    height var(--resize-dur) var(--resize-ease),
    padding var(--resize-dur) var(--resize-ease),
    
    font-size 0.2s cubic-bezier(.4, 0, .2, 1);
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
}

.nav-link::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    120px circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.03) 35%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.7s ease;
  pointer-events: none;
  z-index: -1;
}

.nav-link::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(
    90px circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, 0.22),
    rgba(255, 255, 255, 0) 65%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.7s ease;
  pointer-events: none;
  z-index: -1;
}
.nav-link:hover::before,
.nav-link:hover::after { opacity: 1; }

.nav-link svg {
  color: var(--text-dim);
  flex-shrink: 0;
  transition: color 0.15s, transform 0.3s cubic-bezier(.2,.8,.2,1);
  transform: translate3d(calc((var(--mx-n, 0.5) - 0.5) * 4px), calc((var(--my-n, 0.5) - 0.5) * 4px), 0);
}
.nav-link:hover {
  color: var(--text);
}
.nav-link:hover svg { color: var(--text); }
.nav-link.active,
body.view-dashboard .nav-link[data-view="dashboard"],
body.view-feed      .nav-link[data-view="feed"],
body.view-items     .nav-link[data-view="items"],
body.view-attrs     .nav-link[data-view="attrs"],
body.view-attr      .nav-link[data-view="attrs"],
body.view-collect   .nav-link[data-view="collect"],
body.view-antiscam  .nav-link[data-view="suspects"],
body.view-mispriced .nav-link[data-view="suspects"],
body.view-names     .nav-link[data-view="names"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}
.nav-link.active svg,
body.view-dashboard .nav-link[data-view="dashboard"] svg,
body.view-feed      .nav-link[data-view="feed"] svg,
body.view-items     .nav-link[data-view="items"] svg,
body.view-attrs     .nav-link[data-view="attrs"] svg,
body.view-attr      .nav-link[data-view="attrs"] svg,
body.view-collect   .nav-link[data-view="collect"] svg,
body.view-antiscam  .nav-link[data-view="suspects"] svg,
body.view-mispriced .nav-link[data-view="suspects"] svg,
body.view-names     .nav-link[data-view="names"] svg { color: var(--text); }

.nav-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 10px 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);

  white-space: nowrap;
  overflow: hidden;
  min-width: 0;
}
.nav-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.nav-divider-games::after { order: 1; }

.nav-divider-games { padding-right: 12px; }
.nav-divider-count {
  order: 2;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

.nav-game-all { display: none !important; }

.nav-games {
  overflow-y: auto;
  min-height: 0;
  padding-right: 2px;
}
.nav-games::-webkit-scrollbar { width: 4px; }
.nav-games::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.08); border-radius: 2px; }

.nav-game {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 0 10px;
  height: 32px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition:
    color 0.15s,
    background 0.15s,
    width var(--resize-dur) var(--resize-ease),
    height var(--resize-dur) var(--resize-ease),
    padding var(--resize-dur) var(--resize-ease);
  white-space: nowrap;
  overflow: hidden;
}
.nav-game:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.nav-game.active { color: var(--text); background: rgba(255, 255, 255, 0.08); }
.nav-game .game-mark {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: linear-gradient(180deg, rgba(255,255,255,0.1), rgba(255,255,255,0.02));
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0;
  overflow: hidden;
  flex-shrink: 0;
}
.nav-game .game-mark-img {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-color: rgba(255, 255, 255, 0.12);
}
.nav-game .game-mark-all { color: var(--text-dim); }
.nav-game:hover .game-mark-all,
.nav-game.active .game-mark-all { color: var(--text); }
.nav-game .game-name {
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-game .game-count {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-dim);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.nav-game.active .game-count { color: var(--text-muted); }

.side-foot {
  margin-top: auto;
  padding: 10px 8px 4px;
  border-top: 1px solid var(--border);

  display: flex;
  align-items: stretch;
  gap: 6px;
  transition: padding 0.3s cubic-bezier(.4, 0, .2, 1);
}
.side-foot-main {
  flex: 1 1 80%;
  min-width: 0;
}

.side-info {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  color: var(--text-dim);
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.side-info:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

body.view-info .side-info {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

body.view-info .page { display: none; }
body.view-info .info-page { display: flex; }
body.view-info .live-toggle,
body.view-info .drawer-toggle,
body.view-info #drawer,
body.view-info .game-filters,
body.view-info .kpi-row,
body.view-info #search-pill { display: none; }
.info-page {
  display: none;
  position: relative;
  z-index: 1;
  height: 100vh;
  overflow-y: auto;
  padding-left: calc(var(--sidebar-w) + var(--sidebar-gap) * 2);
  padding-right: var(--sidebar-gap);
  padding-top: var(--sidebar-gap);
  padding-bottom: var(--sidebar-gap);

  transition: padding-left 0.3s cubic-bezier(.4, 0, .2, 1);
}
.info-frame {
  flex: 1;
  min-height: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(16px, 2.2vh, 30px);
  overflow: hidden;
}

.info-header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(10px, 1.4vh, 18px);
}

.info-lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.info-lang-sep {
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1;
  user-select: none;
}
.info-lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 clamp(8px, 0.9vw, 14px);
  font-family: 'Inter', sans-serif;
  font-size: clamp(11px, 0.85vw, 13px);
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: 0;
  border-radius: var(--radius-xs);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}
.info-lang-btn:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.info-lang-btn.active { color: var(--text); background: rgba(255, 255, 255, 0.08); }

.info-desc {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;   
  padding: 0 4px 0 2px;
  color: var(--text-dim);
  font-size: clamp(13px, 0.7vw, 14px);
  line-height: 1.6;
}

.info-desc-intro { max-width: 820px; margin-bottom: 3px; }

.info-desc-outro {
  flex: 0 0 auto;
  margin: 0 0 clamp(16px, 2.2vh, 26px);
  padding: clamp(12px, 1.5vh, 18px) clamp(18px, 1.8vw, 26px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.02);
}
.info-desc-outro p:last-child { margin-bottom: 0; }

.info-support-heart {
  display: inline-flex;
  vertical-align: -2px;
  margin-left: 5px;
  color: #e06c6c;
  cursor: help;
  filter: drop-shadow(0 0 6px rgba(224, 108, 108, 0.4));
  transition: transform 0.15s;
}
.info-support-heart:hover { transform: scale(1.18); }

.info-desc-main {
  display: flex;
  flex-direction: row-reverse;   
  justify-content: flex-end;     
  align-items: stretch;   
  gap: clamp(16px, 2vw, 40px);
}
.info-desc-left {
  flex: 1 1 auto;   
  min-width: 0;
  max-width: 860px;
  display: flex;
  flex-direction: column;
}
.info-desc-title {
  margin: 0;
  font-size: clamp(17px, 1.1vw, 21px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}
.info-desc p { margin: 0 0 14px; }
.info-desc b { font-weight: 600; color: var(--text); }
.info-desc-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.info-desc-list li { padding-left: 14px; position: relative; }
.info-desc-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #e06c6c;
}
.info-desc-support { color: var(--text); }

.info-desc-subhead {
  margin: 2px 0 0;
  font-size: clamp(13px, 1vw, 15px);
  font-weight: 600;
  color: var(--text);
}

.info-lang-swap { animation: info-lang-swap 0.28s ease; }
@keyframes info-lang-swap { from { opacity: 0; } to { opacity: 1; } }

body.view-info:not(.info-ready) #info-header-title,
body.view-info:not(.info-ready) #info-desc,
body.view-info:not(.info-ready) .info-desc-outro { opacity: 0; }
body.view-info.info-ready #info-header-title,
body.view-info.info-ready #info-desc,
body.view-info.info-ready .info-desc-outro { animation: info-reveal 0.3s ease both; }
@keyframes info-reveal { from { opacity: 0; } to { opacity: 1; } }

body.view-info.info-ready .info-head-wrap { animation: info-head-in 0.45s cubic-bezier(0.34, 1.3, 0.5, 1) both; }
@keyframes info-head-in { from { opacity: 0; transform: scale(0.55); } to { opacity: 1; transform: scale(1); } }

.info-desc-list b { cursor: help; transition: color 0.15s; }
.info-desc-list b:hover { color: #e06c6c; }

.info-hl {
  outline: 1.5px dashed rgba(255, 255, 255, 0.85);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

.info-footer {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "outro version";
  align-items: end;
  gap: clamp(16px, 2.4vw, 48px);
}

.info-center {
  grid-area: outro;
  display: flex;
  justify-content: flex-start;
}

.info-meta {
  margin-top: auto;
  padding-top: clamp(12px, 2vh, 22px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-align: left;
  color: var(--text-dim);
  font-size: clamp(11px, 0.95vw, 13px);
  line-height: 1.5;
}
.info-disclaimer {
  max-width: 380px;
  margin: 6px 0 0;
  font-size: clamp(10px, 0.8vw, 11.5px);
  line-height: 1.55;
  color: var(--text-muted);
}
.info-inline-link {
  color: var(--text-dim);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}
.info-inline-link:hover { color: #e06c6c; }
.info-meta-line { white-space: nowrap; }
.info-meta-ver { color: var(--text); font-weight: 600; }
.info-meta-model { display: inline-flex; align-items: center; gap: 7px; }
.info-claude-logo { flex: none; }

.info-contact {
  width: 100%;
  max-width: clamp(220px, 28vmin, 300px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}
.info-contact-title {
  text-align: left;
  margin-bottom: 2px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-muted);
}

.info-contact-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.info-link {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.02);
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.info-link:hover,
.info-link.info-hover-sim {
  border-color: rgba(224, 108, 108, 0.5);
  background: rgba(224, 108, 108, 0.05);
}
.info-link-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
  transition: color 0.2s, background 0.2s;
}
.info-link:hover .info-link-icon,
.info-link.info-hover-sim .info-link-icon {
  color: #e06c6c;
  background: rgba(224, 108, 108, 0.12);
}
.info-link-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.info-link-sepc { margin-right: 5px; }

.info-lang-box {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.02);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  pointer-events: none;
  user-select: none;
}
.info-lang-box:empty {
  border-color: transparent;
  background: transparent;
}

.info-stage {
  flex: 0 0 clamp(260px, 22vw, 320px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(10px, 1.8vh, 22px);
}

.info-head-wrap {
  position: relative;
  width: clamp(220px, 28vmin, 320px);
  aspect-ratio: 1;
}

.info-face {
  position: absolute;
  inset: 0;
  cursor: pointer;
  pointer-events: auto;
  user-select: none;
  z-index: 1;
}

.info-frame.info-hovering .info-face {
  animation: info-pulse 1.4s ease-in-out infinite;
}
@keyframes info-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.025); }
}

.info-face-sprite.info-pop { animation: info-pop 0.26s ease-out; }
@keyframes info-pop {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.07); }
  100% { transform: scale(1); }
}

.info-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 86%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%) scale(0.6);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 108, 108, 0.55) 0%, rgba(224, 108, 108, 0.18) 45%, rgba(224, 108, 108, 0) 70%);
  filter: blur(6px);
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

.info-hearts {
  position: absolute;
  inset: -25%;
  pointer-events: none;
  z-index: 3;
}
.info-spark {
  position: absolute;
  color: #e06c6c;
  filter: drop-shadow(0 0 8px rgba(224, 108, 108, 0.5));
  animation: info-spark 8s ease-out forwards;
  will-change: transform, opacity;
}
.info-spark svg { display: block; width: 100%; height: 100%; }
@keyframes info-spark {
  0%   { opacity: 0; transform: translate(0, 8px) scale(0.4); }
  12%  { opacity: 1; transform: translate(calc(var(--dx, 0px) * 0.2), 0) scale(1); }
  100% { opacity: 0; transform: translate(var(--dx, 0px), -130px) scale(0.95); }
}

.info-heart {
  position: absolute;
  left: 50%;
  bottom: 86%;
  transform: translateX(-50%);
  color: #e06c6c;
  filter: drop-shadow(0 0 12px rgba(224, 108, 108, 0.45));
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.info-frame.info-donating .info-heart {
  opacity: 1;
  animation: info-heart-float 1.5s ease-in-out infinite;
}
@keyframes info-heart-float {
  0%, 100% { transform: translateX(-50%) translateY(-6px); }
  50%      { transform: translateX(-50%) translateY(14px); }
}

.info-donate {
  width: 100%;
  max-width: clamp(200px, 28vmin, 300px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  padding: 12px 22px;
  background: transparent;
  border: 1.5px dashed rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.info-donate:hover,
.info-donate.info-hover-sim {
  border-color: rgba(224, 108, 108, 0.5);
  background: rgba(224, 108, 108, 0.04);
}
.info-donate-icon {
  color: #e06c6c;
  filter: drop-shadow(0 0 10px rgba(224, 108, 108, 0.35));
}
.info-donate-title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text);
}
.info-donate-sub {
  font-size: 11px;
  line-height: 1.4;
  color: var(--text-dim);
}

.info-face-sprite {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-image: url('/logo/face/sheet.webp');
  background-size: 1000% 500%;
  background-repeat: no-repeat;
  pointer-events: none;
  user-select: none;
}

@media (max-width: 1180px) {

  body.view-info .info-page { display: block; height: auto; min-height: 100vh; }
  .info-frame { overflow: visible; min-height: calc(100vh - 2 * var(--sidebar-gap)); }
  .info-desc { flex: 0 0 auto; max-width: none; }
  .info-desc-left { max-width: none; }
  .info-footer { margin-top: clamp(16px, 2.6vh, 30px); }
  
  .info-desc-outro { max-width: none; }
}
@media (max-width: 880px) {
  
  body.view-info .info-page {
    padding-left: 16px;
    padding-right: 16px;
    padding-top: 16px;
    padding-bottom: 90px;
  }
  
  .info-desc-main { flex-direction: column; align-items: stretch; gap: clamp(14px, 2.4vh, 28px); }
  .info-stage { flex: none; align-self: center; }
  .info-footer {
    grid-template-columns: 1fr;
    grid-template-areas:
      "outro"
      "version";
    gap: 18px;
  }
  .info-desc-outro { max-width: none; }
}
.side-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  width: 100%;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent; 
  border: none;
  
  border-radius: var(--radius-xs);
  text-decoration: none;
  transition:
    color 0.15s,
    background 0.15s,
    
    padding 0.3s cubic-bezier(.4, 0, .2, 1);
}
.side-social:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }

.side-version {
  display: block;
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  line-height: 12px;
  letter-spacing: 0.02em;
  color: var(--text-dim);
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
  max-height: 12px;
  margin: 2px 0 0;
  padding: 0 10px;
  transition:
    opacity 0.18s cubic-bezier(.4, 0, .2, 1),
    max-height 0.18s cubic-bezier(.4, 0, .2, 1),
    margin 0.18s cubic-bezier(.4, 0, .2, 1);
}
body.sidebar-collapsed .side-version {
  opacity: 0;
  max-height: 0;
  margin-top: 0;
}

.side-social span {
  flex: 1;
  min-width: 0;
  font-family: var(--mono);
  font-size: 11.5px;
  white-space: nowrap;
  overflow: hidden;
}
.side-social .side-social-ext { color: var(--text-faint); opacity: 0.7; }
.side-social:hover .side-social-ext { opacity: 1; }

@media (min-width: 881px) {
body.sidebar-collapsed { --sidebar-w: var(--sidebar-w-collapsed); }

.side-nav { transition: width 0.3s cubic-bezier(.4, 0, .2, 1); }
.page    { transition: padding-left 0.3s cubic-bezier(.4, 0, .2, 1),
                       padding-right var(--dur-morph) var(--ease-glass),
                       padding-top var(--dur-morph) var(--ease-glass),
                       grid-template-rows var(--dur-morph) var(--ease-glass),
                       gap var(--dur-morph) var(--ease-glass); }

body .items-page,
body .attrs-page {
  transition:
    padding-left 0.3s cubic-bezier(.4, 0, .2, 1),
    margin-right 0.3s cubic-bezier(.4, 0, .2, 1);
}
body .item-page,
body .names-page,
body .collect-page,
body .antiscam-page,
body .mispriced-page {
  transition: padding-left 0.3s cubic-bezier(.4, 0, .2, 1);
}

body.sidebar-collapsed .nav-link {

  font-size: 0;
  padding: 0 8px 0 14px;
}
body.sidebar-collapsed .nav-game { padding: 0 6px 0 11px; }
.logo { overflow: hidden; min-width: 0; }
.logo-text,
.nav-game .game-name,
.nav-game .game-count,
.side-social span,
.side-social-ext {
  transition: opacity 0.18s cubic-bezier(.4, 0, .2, 1);
}
body.sidebar-collapsed .logo-text,
body.sidebar-collapsed .nav-game .game-name,
body.sidebar-collapsed .nav-game .game-count,
body.sidebar-collapsed .side-social span,
body.sidebar-collapsed .side-social-ext {
  opacity: 0;
}

.nav-divider > span {
  display: inline-block;
  max-width: 160px;
  overflow: hidden;
  transition:
    opacity 0.18s cubic-bezier(.4, 0, .2, 1),
    max-width 0.3s cubic-bezier(.4, 0, .2, 1);
}
body.sidebar-collapsed .nav-divider > span {
  opacity: 0;
  max-width: 0;
}

.nav-divider { transition: gap 0.3s cubic-bezier(.4, 0, .2, 1); }
body.sidebar-collapsed .nav-divider { gap: 0; }

.side-social {
  white-space: nowrap;
  overflow: hidden;
  min-width: 0;
}

.side-social > svg,
.nav-link > svg { flex-shrink: 0; }
body.sidebar-collapsed .side-social { padding: 8px 0 8px 12px; }

body.sidebar-collapsed .side-foot {
  padding-left: 2px;
  padding-right: 2px;
  flex-direction: column;
  gap: 6px;
}
body.sidebar-collapsed .side-info {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  align-self: center;

  border: none;
}

.side-shell { transition: padding 0.3s cubic-bezier(.4, 0, .2, 1); }
body.sidebar-collapsed .side-shell { padding: 14px 6px; }
}

.live-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 32px;
  padding: 0 12px;
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: 0;
  border-radius: var(--radius-xs);
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}
.live-toggle:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.live-toggle.is-on { color: var(--text); }
.live-toggle .live-toggle-label {
  font-family: inherit;
  font-size: inherit;
  letter-spacing: 0;
  text-transform: none;
  
  display: inline-block;
  max-width: 160px;
  overflow: hidden;
  white-space: nowrap;
  transition:
    font-size 0.25s cubic-bezier(.4, 0, .2, 1),
    opacity 0.2s cubic-bezier(.4, 0, .2, 1),
    max-width 0.3s cubic-bezier(.4, 0, .2, 1);
}
.live-toggle .live-switch {
  position: relative;
  width: 28px;
  height: 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  transition: background 0.2s, border-color 0.2s;
}
.live-toggle .live-switch-dot {
  position: absolute;
  top: 1px;
  left: 1px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text-faint);
  transition: transform 0.2s, background 0.32s ease;
}
.live-toggle .live-toggle-state {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  min-width: 22px;
  text-align: left;
  
  display: inline-block;
  max-width: 34px;
  overflow: hidden;
  white-space: nowrap;
  transition:
    opacity 0.2s cubic-bezier(.4, 0, .2, 1),
    max-width 0.3s cubic-bezier(.4, 0, .2, 1),
    min-width 0.3s cubic-bezier(.4, 0, .2, 1);
}
.live-toggle.is-on .live-switch-dot {
  transform: translateX(12px);
  background: var(--success);
}
.live-toggle.is-on .live-toggle-state { color: var(--text-muted); }
.live-toggle.is-off .live-pulse {
  animation: none;
  background: var(--text-faint);
  box-shadow: none;
}
.live-toggle.is-off .live-toggle-state { color: var(--text-dim); }

.live-toggle-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  flex-shrink: 0;
}

.panel-feed > .panel-head { position: relative; }
.panel-feed > .panel-head > .live-toggle-stack {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  transition:
    left 0.4s cubic-bezier(.4, 0, .2, 1),
    transform 0.4s cubic-bezier(.4, 0, .2, 1);
}

body.view-feed .panel-feed > .panel-head > .panel-head-title {
  max-height: 80px;
  min-width: 0;
  overflow: hidden;
  transition:
    opacity 0.25s cubic-bezier(.4, 0, .2, 1),
    max-height 0.3s cubic-bezier(.4, 0, .2, 1);
}
.feed-head-price { display: none; }
body.view-feed .panel-feed > .panel-head > .feed-head-price {
  display: block;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

body.view-feed .feed-head-price .feed-price-pills {
  display: inline-flex;
  position: relative;
  align-items: center;
  gap: 4px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}
body.view-feed .feed-head-price .feed-price-pill {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font: 500 11px/1 'Inter', sans-serif;
  letter-spacing: 0.02em;
  padding: 6px 10px;
  height: auto;
  border-radius: 7px;
  cursor: pointer;
  position: relative;
  z-index: 1;
  transition: color 0.18s ease;
}
body.view-feed .feed-head-price .feed-price-pill:hover { color: var(--text); }
body.view-feed .feed-head-price .feed-price-pill.active { color: var(--text); }
body.view-feed .feed-head-price .feed-price-thumb {
  top: 3px;
  bottom: 3px;
  border-radius: 7px;
}

.feed-pause-info {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 0;
  color: var(--text-muted);
}
.feed-pause-count { display: inline-flex; align-items: baseline; gap: 4px; }
.feed-pause-count strong {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--warn, #fcd34d);
}
.feed-pause-count-label { color: var(--text-dim); }
.feed-pause-help {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--warn, #fcd34d);
  cursor: help;
  transition: color 0.12s, transform 0.12s;
  outline: none;
}
.feed-pause-help:hover,
.feed-pause-help:focus { transform: scale(1.08); }

.feed-pause-help::after {
  content: attr(data-tooltip);
  position: absolute;
  top: 50%;
  left: calc(100% + 8px);
  width: max-content;
  max-width: 320px;
  padding: 8px 10px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--text);
  background: rgba(15, 15, 17, 1);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.55);
  white-space: normal;
  text-align: left;
  opacity: 0;
  pointer-events: none;
  transform: translate(-2px, -50%);
  transition: opacity 0.12s ease-out, transform 0.12s ease-out;
  z-index: 100;
}
.feed-pause-help:hover::after,
.feed-pause-help:focus::after {
  opacity: 1;
  transform: translate(0, -50%);
}

body.feed-paused .live-toggle.is-on .live-pulse {
  animation: none;
  background: var(--warn, #fcd34d);
  box-shadow: none;
}
body.feed-paused .live-toggle.is-on .live-switch-dot {
  background: var(--warn, #fcd34d);
}

.page {
  position: relative;
  z-index: 1;
  height: 100vh;
  padding-left: calc(var(--sidebar-w) + var(--sidebar-gap) * 2);
  padding-right: calc(var(--content-pad) + var(--toggle-w));
  padding-top: calc(var(--sidebar-gap) + 48px);
  padding-bottom: var(--sidebar-gap);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(12px, 1.4vw, 20px);
  overflow: hidden;
  transition:
    grid-template-rows var(--dur-morph) var(--ease-glass),
    gap var(--dur-morph) var(--ease-glass),
    padding-top var(--dur-morph) var(--ease-glass),
    padding-right var(--dur-morph) var(--ease-glass),

    padding-left 0.3s cubic-bezier(.4, 0, .2, 1);
}

body.is-resizing .side-nav,

body.is-resizing .side-shell,
body.is-resizing .page,
body.is-resizing .info-page,
body.is-resizing .items-page,
body.is-resizing .attrs-page,
body.is-resizing .item-page,
body.is-resizing .names-page,
body.is-resizing .collect-page,
body.is-resizing .antiscam-page,
body.is-resizing .mispriced-page,
body.is-resizing .drawer,

body.is-resizing .drawer-toggle {
  transition: none !important;
}

body.attrs-morphing .attrs-page {
  transition: margin-right 0.4s cubic-bezier(.4, 0, .2, 1),
              padding-right 0.4s cubic-bezier(.4, 0, .2, 1) !important;
}
body.attrs-morphing .attr-card {
  transition: width 0.4s cubic-bezier(.4, 0, .2, 1),
              opacity 0.35s ease !important;
}

.search-pill {
  position: fixed;
  top: var(--sidebar-gap);
  right: calc(var(--content-pad) + var(--toggle-w));
  z-index: 45;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: var(--search-pill-w);
  height: 40px;
  padding: 0 12px 0 14px;
  background: rgba(15, 15, 17, 0.6);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 10px 30px rgba(0, 0, 0, 0.35);
  transition:
    border-color 0.2s,
    background 0.2s,
    right var(--dur-morph) var(--ease-glass),
    top var(--dur-morph) var(--ease-glass),
    height var(--dur-morph) var(--ease-glass),
    width var(--resize-dur) var(--resize-ease),
    padding var(--resize-dur) var(--resize-ease);
}
body.drawer-open .search-pill { right: calc(var(--drawer-w) + var(--sidebar-gap)); }

.search-pill:hover,
.search-pill:focus-within {
  border-color: var(--border-hover);
  background: rgba(20, 20, 23, 0.7);
}
.search-pill svg { color: var(--text-dim); flex-shrink: 0; }
.search-pill:focus-within svg { color: var(--text); }
.search-pill input {
  flex: 1;
  min-width: 0;
  height: 100%;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.search-pill input::placeholder { color: var(--text-dim); }

.search-clear {
  display: none;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 4px;
  color: var(--text-dim);
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
  flex-shrink: 0;
}
.search-pill.has-value .search-clear { display: inline-flex; }
.search-clear:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

:root {
  --shake-distance: 6px;
  --shake-overshoot: 4px;
  --shake-dur-a: 80ms;
  --shake-dur-b: 60ms;
  --shake-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shake-revert-dur: 280ms;
}
.search-pill, .attrs-search-pill { will-change: transform; }

.search-pill.is-error.is-error, .attrs-search-pill.is-error.is-error {
  border-color: var(--danger, #e5484d);
  transition: border-color var(--shake-revert-dur) ease-out;
}
.search-pill.is-shaking, .attrs-search-pill.is-shaking {
  animation: search-pill-shake calc(var(--shake-dur-a) * 2 + var(--shake-dur-b) * 2) linear;
}
@keyframes search-pill-shake {
  0%      { transform: translateX(0);                                animation-timing-function: var(--shake-ease); }
  28.57%  { transform: translateX(var(--shake-distance));            animation-timing-function: var(--shake-ease); }
  57.14%  { transform: translateX(calc(var(--shake-distance) * -1)); animation-timing-function: var(--shake-ease); }
  78.57%  { transform: translateX(var(--shake-overshoot));           animation-timing-function: var(--shake-ease); }
  100%    { transform: translateX(0); }
}
.search-error-msg {
  position: absolute;
  top: calc(100% + 4px);
  left: 14px;
  right: 14px;
  margin: 0;
  color: var(--danger, #e5484d);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity    var(--shake-revert-dur) ease-out,
    visibility 0s linear var(--shake-revert-dur);
}
.search-pill.is-error .search-error-msg,
.attrs-search-pill.is-error .search-error-msg {
  opacity: 1;
  visibility: visible;
  transition:
    opacity    var(--shake-revert-dur) ease-out,
    visibility 0s linear 0s;
}
@media (prefers-reduced-motion: reduce) {
  .search-pill.is-shaking,
  .attrs-search-pill.is-shaking { animation: none !important; transform: none !important; }
}

.top-banner { display: none; }
body.view-dashboard #search-pill > svg,
body.view-dashboard #search-pill > input,
body.view-dashboard #search-pill > kbd,
body.view-dashboard #search-pill > .search-clear { display: none; }

body.view-feed #search-pill { display: none; }

body.view-feed .feed-filter-section { display: none; }

.feed-filters-empty { display: none; }
body.view-feed .feed-filters-empty {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}
body.view-dashboard #search-pill {
  cursor: pointer;
  padding: 0 14px;
}
body.view-dashboard #search-pill .top-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 100%;
  min-width: 0;
  overflow: hidden;
}
body.view-dashboard #search-pill:focus-within {
  background: rgba(15, 15, 17, 0.6);
  border-color: var(--border);
}
.top-banner-track {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 100%;
  overflow: hidden;
}

@keyframes top-banner-pop-in {
  0% {
    transform: translateY(8px);
    opacity: 0;
    filter: blur(2px);
  }
  100% {
    transform: translateY(0);
    opacity: 1;
    filter: blur(0);
  }
}
.top-banner-item {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  opacity: 1;
}
.top-banner-item.is-leaving {
  opacity: 0;
  transition: opacity 0.3s ease-out;
}
.top-banner-item.is-active .top-banner-thumb,
.top-banner-item.is-active .top-banner-name,
.top-banner-item.is-active .top-banner-price {
  animation: top-banner-pop-in 0.5s cubic-bezier(0.34, 1.45, 0.64, 1) both;
  will-change: transform, opacity, filter;
}
.top-banner-item.is-active .top-banner-name  { animation-delay: 70ms; }
.top-banner-item.is-active .top-banner-price { animation-delay: 140ms; }
.top-banner-thumb {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background: center/contain no-repeat;
  flex-shrink: 0;
}
.top-banner-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text);
}
.top-banner-ago {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-dim);
  flex-shrink: 0;
}
.top-banner-price {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--success);
  flex-shrink: 0;
}
.top-banner-item.is-active .top-banner-ago {
  animation: top-banner-pop-in 0.5s cubic-bezier(0.34, 1.45, 0.64, 1) both;
  animation-delay: 105ms;
  will-change: transform, opacity, filter;
}
.top-banner-empty {
  font-size: 12px;
  color: var(--text-dim);
  font-style: italic;
}
.search-pill kbd {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 5px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.live-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  display: inline-block;
  box-shadow: 0 0 0 0 var(--success);
  animation: pulse 1.8s ease-out infinite;
  transition:
    background 0.32s ease,
    box-shadow 0.32s ease,
    
    opacity 0.2s cubic-bezier(.4, 0, .2, 1),
    width 0.3s cubic-bezier(.4, 0, .2, 1);
}

.feed-row.row-enter,
.trending-row.row-enter {
  overflow: hidden;
  animation: row-roll-down 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}
@keyframes row-roll-down {
  0% {
    max-height: 0;
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
  100% {
    max-height: 100px;
    opacity: 1;
  }
}
.feed-row.row-leave {
  overflow: hidden;
  animation: row-roll-out 0.5s cubic-bezier(0.4, 0, 0.2, 1) both;
  pointer-events: none;
}
@keyframes row-roll-out {
  from {
    max-height: 100px;
    opacity: 1;
  }
  to {
    max-height: 0;
    opacity: 0;
  }
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(134, 239, 172, 0.6); }
  100% { box-shadow: 0 0 0 8px rgba(134, 239, 172, 0); }
}

.kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(8px, 0.9vw, 14px);
  overflow: hidden;
  max-height: 240px;

  transition:
    max-height 0.3s cubic-bezier(.4, 0, .2, 1),
    margin 0.3s cubic-bezier(.4, 0, .2, 1),
    opacity 0.25s cubic-bezier(.4, 0, .2, 1),
    transform 0.3s cubic-bezier(.4, 0, .2, 1);
}
.kpi-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(14px, 1.2vw, 20px) clamp(16px, 1.4vw, 24px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  transition:
    border-color 0.2s,
    background 0.2s,
    width var(--resize-dur) var(--resize-ease),
    height var(--resize-dur) var(--resize-ease),
    padding var(--resize-dur) var(--resize-ease);
}
.kpi-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kpi-card:hover {
  border-color: var(--border-strong);
  background: var(--panel-hover);
}
.kpi-label {
  font-size: clamp(10px, 0.75vw, 12px);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.kpi-value {
  font-family: var(--sans);
  font-size: clamp(21px, 1.85vw, 31px);
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1, 'cv11' 1, 'ss01' 1;
  letter-spacing: -0.015em;
  line-height: 1;
  margin-top: 2px;
  min-height: 1em;
}
.kpi-delta {
  font-family: var(--sans);
  font-size: clamp(10.5px, 0.8vw, 12.5px);
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1, 'cv11' 1;
  margin-top: auto;
  min-height: 1em;
}
.kpi-delta.up   { color: var(--success); }
.kpi-delta.down { color: var(--danger); }

body.live-off .kpi-delta.up,
body.live-off .kpi-delta.down { color: var(--text-dim); }

.kpi-pulse {
  animation: collect-thumb-squish 0.36s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: left center;
}
.kpi-turnover { gap: 4px; }
.kpi-turnover .kpi-value { font-size: clamp(17px, 1.5vw, 24px); }
.kpi-sub {
  font-family: var(--sans);
  font-size: clamp(10px, 0.72vw, 11px);
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1, 'cv11' 1;
  letter-spacing: 0;
  min-height: 1em;
}

.kpi-key {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.kpi-key-icon {
  position: absolute;
  top: 26px;
  bottom: 20px;
  right: 10px;
  width: 50%;
  background: center right / contain no-repeat;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.4) 35%, black 75%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.4) 35%, black 75%);
  pointer-events: none;
  opacity: 0.9;
}
.kpi-key .kpi-label,
.kpi-key .kpi-value,
.kpi-key .kpi-delta { position: relative; z-index: 1; }
.kpi-key:focus-visible { outline: 2px solid var(--accent, #6aa6ff); outline-offset: 2px; }

.game-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex-shrink: 0;

  overflow: hidden;
  max-height: 120px;

  transition:
    max-height 0.3s cubic-bezier(.4, 0, .2, 1),
    margin 0.3s cubic-bezier(.4, 0, .2, 1),
    opacity 0.25s cubic-bezier(.4, 0, .2, 1),
    transform 0.3s cubic-bezier(.4, 0, .2, 1);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  height: 32px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.pill:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-strong);
}
.pill.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-hover);
}
.pill em {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-dim);
  font-style: normal;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.pill.pill-more { color: var(--text-dim); font-weight: 400; }

.game-filter-group {
  display: flex;
  position: relative;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px;
  row-gap: 4px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  box-sizing: border-box;

}

.game-filter-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: brightness(1) contrast(1) saturate(1);
  -webkit-backdrop-filter: brightness(1) contrast(1) saturate(1);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.09) inset,
    0 -1px 0 rgba(0, 0, 0, 0.16) inset,
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 2px 8px rgba(0, 0, 0, 0.16);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
  transform-origin: center;
  transition:
    left 0.36s cubic-bezier(0.4, 0, 0.2, 1),
    top 0.36s cubic-bezier(0.4, 0, 0.2, 1),
    width 0.36s cubic-bezier(0.4, 0, 0.2, 1),
    height 0.36s cubic-bezier(0.4, 0, 0.2, 1),
    border-radius 0.36s cubic-bezier(0.4, 0, 0.2, 1),
    background 0.22s ease,
    opacity 0.18s ease;
}
.game-filter-thumb.sliding {
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: brightness(1.02) contrast(1.08) saturate(1.18);
  -webkit-backdrop-filter: brightness(1.02) contrast(1.08) saturate(1.18);
  border-radius: 12px;
  animation: collect-thumb-squish 0.36s cubic-bezier(0.4, 0, 0.2, 1);
}

.game-filter-group .pill {
  position: relative;
  z-index: 1;
  border: 0;
  background: transparent;
  padding: 0 14px;
  border-radius: var(--radius-xs);
  color: var(--text-muted);
  transform-origin: center;
  transition:
    color 0.22s ease,
    letter-spacing 0.36s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.36s cubic-bezier(0.4, 0, 0.2, 1);
}
.game-filter-group .pill:hover {
  color: var(--text);
  background: transparent;
  border-color: transparent;
}
.game-filter-group .pill.active {
  color: var(--text);
  background: transparent;
  border-color: transparent;
  letter-spacing: 0.02em;
}

.grid-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-auto-rows: minmax(var(--panel-min-h), 1fr);
  gap: clamp(10px, 1vw, 16px);
}
.row-main {
  grid-template-columns: minmax(0, 62.5%) minmax(0, 37.5%);
  grid-auto-rows: 1fr;
  min-height: 0;

  transition:
    grid-template-columns 0.3s cubic-bezier(.4, 0, .2, 1) 0.25s,
    gap 0.3s cubic-bezier(.4, 0, .2, 1) 0.25s;
}
.row-main .panel { height: 100%; min-height: 0; }

.panel-feed,
.panel-trending {
  transition:
    opacity 0.32s cubic-bezier(.4, 0, .2, 1) 0.22s,
    transform 0.25s cubic-bezier(.4, 0, .2, 1);
}

.trending-list.is-switching {
  opacity: 0;
  pointer-events: none;

  transition: opacity var(--dur-fast) var(--ease-glass);
}
.trending-list.is-entering {
  animation: trendingReveal var(--dur-slow) var(--ease-glass);
  transform-origin: top center;
}

@keyframes trendingReveal {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cs2-filter-block.is-switching .cs2-filter-group:not(:first-child),
.cs2-filter-block.is-switching .cs2-filter-group > .cs2-filter-row:not(.cs2-filter-types-row),
.cs2-filter-block.is-switching > .cs2-filter-reset {
  opacity: 0;
  pointer-events: none;
}
.cs2-filter-block.is-entering .cs2-filter-group:not(:first-child),
.cs2-filter-block.is-entering .cs2-filter-group > .cs2-filter-row:not(.cs2-filter-types-row),
.cs2-filter-block.is-entering > .cs2-filter-reset {
  animation: cs2FilterReveal 0.4s cubic-bezier(.4, 0, .2, 1) both;
}
@keyframes cs2FilterReveal {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: var(--panel-min-h);
  overflow: hidden;
  transition:
    border-color 0.2s,
    width var(--resize-dur) var(--resize-ease),
    height var(--resize-dur) var(--resize-ease),
    padding var(--resize-dur) var(--resize-ease);
}
.panel:hover { border-color: var(--border-strong); }

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.panel-feed > .panel-head,
.panel-trending > .panel-head {
  min-height: 68px;
  transition:
    min-height 0.45s cubic-bezier(.4, 0, .2, 1),
    padding 0.45s cubic-bezier(.4, 0, .2, 1);
}
.panel-head h2 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 2px;
  letter-spacing: -0.01em;
}
.panel-sub {
  font-size: 11.5px;
  color: var(--text-dim);
  margin: 0;
  font-weight: 400;
}

#trending-sub-range {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  vertical-align: bottom;
  max-width: 80px;
  opacity: 1;
  transition:
    opacity 0.24s cubic-bezier(.4, 0, .2, 1) 0.16s,
    max-width 0.32s cubic-bezier(.4, 0, .2, 1);
}
#trending-sub-range.is-collapsing {
  opacity: 0;
  max-width: 0;
  transition:
    opacity 0.2s cubic-bezier(.4, 0, .2, 1),
    max-width 0.32s cubic-bezier(.4, 0, .2, 1);
}

.feed-price-pills {
  display: inline-flex;
  position: relative;
  gap: 2px;
  align-items: center;
  padding: 3px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  user-select: none;
  flex-shrink: 0;
}
.feed-price-thumb {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 0;
  width: 0;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 2px 8px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  transition:
    left 0.32s cubic-bezier(0.4, 0, 0.2, 1),
    width 0.32s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.18s ease;
}
.feed-price-pill {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font: 500 11px/1 var(--mono, 'SF Mono', monospace);
  letter-spacing: 0.04em;
  padding: 6px 10px;
  border-radius: 7px;
  cursor: pointer;
  position: relative;
  z-index: 1;
  white-space: nowrap;
  transition: color 0.18s ease;
}
.feed-price-pill:hover { color: var(--text); }
.feed-price-pill.active { color: var(--text); }
.feed-price-pill:focus-visible { outline: none; color: var(--text); }

.legend {
  display: flex;
  gap: 14px;
  font-size: 10.5px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}
.leg {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.leg i {
  width: 10px;
  height: 2px;
  display: inline-block;
  border-radius: 2px;
}
.leg-vol i { background: var(--accent); }
.leg-val i { background: var(--accent-2); }
.leg-bar i {
  width: 8px;
  height: 10px;
  background: var(--accent-2);
  opacity: 0.28;
  border-radius: 1px;
}

.panel-chart .chart-wrap,
.item-chart-panel .chart-wrap {
  position: relative;
  flex: 1;
  width: 100%;
  min-height: 0;
  padding: 12px 18px 8px;
}
.area-chart { width: 100%; height: 100%; }
.area-chart .grid-line {
  stroke: rgba(255, 255, 255, 0.035);
  stroke-width: 1;
  pointer-events: none;
}
.area-chart .time-divider {
  stroke: rgba(255, 255, 255, 0.16);
  stroke-width: 1;
  stroke-dasharray: 3 4;
  pointer-events: none;
}
.area-chart .year-divider {
  stroke: rgba(255, 255, 255, 0.32);
  stroke-width: 1;
  pointer-events: none;
}
.area-chart .year-label {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  fill: var(--text-dim);
  letter-spacing: 0.04em;
  pointer-events: none;
}

.area-chart .data-lost-band {
  fill: rgba(248, 81, 73, 0.08);
  stroke: rgba(248, 81, 73, 0.22);
  stroke-width: 1;
  pointer-events: none;
}
.area-chart .data-lost-label {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 600;
  fill: #f87171;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  pointer-events: none;
}
.area-chart .axis-label {
  font-family: var(--mono);
  font-size: 9.5px;
  fill: var(--text-faint);
}

.area-chart .axis-label-rot {
  font-size: 8.5px;
}
.area-chart .axis-title {
  font-size: 9px;
  fill: var(--text-dim);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: var(--sans);
  font-weight: 600;
}

.area-chart .area-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.area-chart .value-line {
  fill: none;
  stroke: var(--accent-2);
  stroke-width: 1.3;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.area-chart .hover-line {
  stroke: var(--text-faint);
  stroke-width: 1;
  stroke-dasharray: 2 3;
}
.area-chart .hover-dot-c {
  fill: var(--bg);
  stroke: var(--accent);
  stroke-width: 2;
}
.area-chart .hover-dot-v {
  fill: var(--bg);
  stroke: var(--accent-2);
  stroke-width: 2;
}
.area-chart .brush-rect {
  fill: rgba(255, 255, 255, 0.06);
  stroke: rgba(255, 255, 255, 0.28);
  stroke-width: 1;
}
.area-chart .zoom-emphasis {
  fill: rgba(255, 255, 255, 0.14);
  stroke: rgba(255, 255, 255, 0.55);
  stroke-width: 1;
  pointer-events: none;
}
.area-chart .ts-bar {
  fill: var(--accent-2);
  opacity: 0.18;
  pointer-events: none;
}
.area-chart .ts-bar-usd {
  fill: var(--chart-bar-fill);
  pointer-events: none;
}
.area-chart .chart-bg {
  cursor: crosshair;
  pointer-events: all;
}
.chart-undo {
  position: absolute;

  top: 9px;
  right: calc(17.3px + 1.84%);
  z-index: 6;
  height: 20px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: 0;
  color: var(--text-dim);
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.6) translateY(-4px);
  transform-origin: right center;
  transition:
    opacity 0.25s ease,
    transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    color 0.2s;
}
.chart-undo.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
  animation: chart-undo-emerge 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes chart-undo-emerge {
  0%   { opacity: 0; transform: scale(0.6) translateY(-4px); }
  45%  { opacity: 1; transform: scale(1.18); }
  70%  { transform: scale(0.96); }
  100% { opacity: 1; transform: scale(1); }
}
.chart-undo:hover {
  color: var(--text);
}
.chart-undo.is-visible:hover {
  transform: translateY(-1px);
}
.chart-undo svg { display: block; }

.chart-date-range {
  position: absolute;
  top: 9px;
  right: calc(17.3px + 1.84%);
  z-index: 5;
  height: 20px;
  display: inline-flex;
  align-items: center;
  color: var(--text-dim);
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.chart-date-range.is-visible { opacity: 1; }

.chart-tooltip {
  position: absolute;
  background: rgba(17, 17, 20, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  min-width: 180px;
  pointer-events: none;
  z-index: 5;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
.chart-tooltip .tt-date {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  padding-bottom: 6px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  letter-spacing: 0.02em;
}
.chart-tooltip .tt-date .tt-time {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--text-dim);
}
.chart-tooltip .tt-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 2px 0;
}
.chart-tooltip .tt-row span {
  color: var(--text-dim);
  font-size: 10.5px;
  font-weight: 500;
}
.chart-tooltip .tt-row b {
  font-family: var(--mono);
  color: var(--text);
  font-weight: 500;
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
}
.chart-tooltip .tt-row b.tt-dim {
  color: var(--text-dim);
  font-style: italic;
  font-weight: 400;
}

.panel-trending { min-width: 0; position: relative; }

.trending-to-top {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 10;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transform: scale(0.5) translateY(6px);
  transform-origin: center;
  transition:
    opacity 0.25s ease,
    transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.2s,
    background 0.2s;
}
.trending-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
  animation: collect-to-top-emerge 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.trending-to-top:hover {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.13);
}
.trending-to-top.is-visible:hover {
  transform: translateY(-1px);
}

.trending-list {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  padding: 4px 0;
}
.trending-list::-webkit-scrollbar { width: 6px; }
.trending-list::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.08); border-radius: 3px; }
.trending-list::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.16); }

.trending-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto auto auto auto;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.15s;
}
.trending-row > .price-arrow { font-size: 11px; }
.trending-row:last-child { border-bottom: 0; }
.trending-row:hover { background: rgba(255, 255, 255, 0.03); cursor: pointer; }

body.view-dashboard .panel-trending .trending-row .feed-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.view-dashboard .panel-trending .trending-row .feed-meta {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.view-dashboard .panel-trending { container-type: inline-size; }
@container (max-width: 430px) {
  body.view-dashboard .trending-row {

    grid-template-columns: 44px minmax(0, 1fr) auto 12px;
    grid-template-rows: auto auto;
    row-gap: 0;
  }
  body.view-dashboard .trending-row > .item-thumb {
    grid-column: 1;
    grid-row: 1 / 3;
  }
  body.view-dashboard .trending-row > .feed-body {
    grid-column: 2;
    grid-row: 1 / 3;
    min-width: 0;
  }
  body.view-dashboard .trending-row > .feed-price {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    align-self: end;
    
    font-variant-numeric: tabular-nums;
  }
  body.view-dashboard .trending-row > .price-arrow {
    grid-column: 4;
    grid-row: 1;
    align-self: end;
    justify-self: center;
  }
  body.view-dashboard .trending-row > .delta {

    grid-column: 3;
    grid-row: 2;
    justify-self: end;
    align-self: start;
    font-size: 10.5px;
    padding: 0;
    background: none;
    font-variant-numeric: tabular-nums;
  }

  body.view-dashboard .trending-row .feed-meta {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    display: block;
  }
  body.view-dashboard .panel-trending .trending-row .feed-name {
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

body.view-game .trending-row--stats {
  display: grid;
  grid-template-columns:
    44px
    minmax(0, 1fr)
    var(--tstat-spark-w, 104px)
    var(--tstat-count-w, 72px)
    var(--tstat-total-w, 120px)
    var(--tstat-avg-w, 104px)
    28px;
  column-gap: clamp(10px, 1.6vw, 24px);
  align-items: center;
}
.tstat-spark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: stretch;
  width: 100%;
  height: 22px;
  color: var(--text-dim);
}
.tstat-spark .spark { width: 100%; height: 100%; display: block; }
.tstat-spark .spark-up   { color: #4ade80; }
.tstat-spark .spark-down { color: #f87171; }
.tstat-spark .spark-empty {
  display: block;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}
svg.spark[data-pts] { cursor: crosshair; }
svg.spark .spark-cursor,
svg.spark .spark-dot-hover { pointer-events: none; }
#spark-tooltip {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text);
  background: rgba(20, 22, 28, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  white-space: nowrap;
}
.trending-row--stats > .feed-body {
  min-width: 0;
}
.trending-row--stats .tstat {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  justify-self: end;
  gap: 2px;
  line-height: 1.1;
  padding: 0;
  background: transparent;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.trending-row--stats .tstat em {
  font-family: var(--mono);
  font-style: normal;
  font-weight: 500;
  font-size: 12.5px;
  color: var(--text);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.trending-row--stats .tstat i {
  font-style: normal;
  font-size: 9.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.38);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.price-arrow {
  display: inline-block;
  font-size: 9px;
  line-height: 1;
  margin-left: 4px;
  vertical-align: 1px;
  transform: translateY(-0.5px);
}
.price-arrow.up   { color: #4ade80; }
.price-arrow.down { color: #f87171; }
.price-arrow.flat { color: rgba(255, 255, 255, 0.3); }

.trending-row--stats .tstat-avg {
  position: relative;
  padding-right: 14px;
}
.trending-row--stats .tstat-avg .price-arrow {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  line-height: 1;
}

.trending-market-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 0;
  background: transparent;
  color: var(--text-dim);
  text-decoration: none;
  flex-shrink: 0;
  justify-self: end;
  transition: color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.trending-market-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-1px);
}
.trending-market-link svg { display: block; }

.trending-sort-row { display: none; }
body.view-game .trending-sort-row {
  display: grid;
  grid-template-columns:
    44px
    minmax(0, 1fr)
    var(--tstat-spark-w, 104px)
    var(--tstat-count-w, 72px)
    var(--tstat-total-w, 120px)
    var(--tstat-avg-w, 104px)
    28px;
  column-gap: clamp(10px, 1.6vw, 24px);
  align-items: center;
  padding: 6px 14px;
  margin-top: -1px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(15, 15, 17, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  flex-shrink: 0;

  position: relative;
  z-index: 5;
  margin-bottom: -36px;
}
body.view-game .trending-list { padding-top: 36px; }
.tsort-spacer { display: block; }

.tsort-spacer--name { position: relative; min-width: 0; }
.trending-sort-loading {

  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  pointer-events: none;
  color: rgba(255, 255, 255, 0.55);
  font: 500 11px/1 'Inter', sans-serif;
  letter-spacing: 0.04em;
}
.trending-sort-loading[hidden] { display: none; }
.trending-sort-loading .loading-indicator {
  color: inherit;
  font: inherit;
  padding: 0;
  letter-spacing: inherit;
}
.tsort {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
  font: 500 10px/1 'Inter', sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  gap: 4px;
  border-radius: 6px;
  transition: color 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.tsort:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.tsort.active { color: var(--text); }
.tsort-arrow {
  font-size: 8px;
  line-height: 1;
  width: 8px;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}
.tsort.active .tsort-arrow { color: var(--text); }

.trending-range-pills {
  display: none;
  position: relative;
  gap: 4px;
  align-items: center;
  padding: 3px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}
.range-pill-thumb {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 0;
  width: 0;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 2px 8px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  transition:
    left 0.32s cubic-bezier(0.4, 0, 0.2, 1),
    width 0.32s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.18s ease;
}
.trending-range-pills .range-pill {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font: 500 11px/1 'Inter', sans-serif;
  letter-spacing: 0.02em;
  padding: 6px 10px;
  border-radius: 7px;
  cursor: pointer;
  position: relative;
  z-index: 1;
  transition: color 0.18s ease;
}
.trending-range-pills .range-pill:hover { color: var(--text); }
.trending-range-pills .range-pill.active { color: var(--text); }
body.view-game .trending-range-pills { display: inline-flex; }

.trending-range-pills { position: relative; }
.trending-range-pills.range-pills-flash {
  animation: range-pills-flash 1.4s ease-out;
}
@keyframes range-pills-flash {
  0%   { box-shadow: 0 0 0 0 rgba(255, 96, 96, 0.18), 0 0 0 0 rgba(255, 96, 96, 0); }
  35%  { box-shadow: 0 0 0 1px rgba(255, 96, 96, 0.10), 0 0 8px 2px rgba(255, 96, 96, 0.18); }
  100% { box-shadow: 0 0 0 0 rgba(255, 96, 96, 0), 0 0 0 0 rgba(255, 96, 96, 0); }
}

.range-pills-toast {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  font: 500 11px/1 'Inter', sans-serif;
  letter-spacing: 0.02em;
  color: rgba(255, 130, 130, 0.92);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.28s ease;
  z-index: 2;
}
.range-pills-toast.visible { opacity: 1; }

.panel-feed { position: relative; min-width: 0; }

.feed-to-top {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 10;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transform: scale(0.5) translateY(6px);
  transform-origin: center;
  transition:
    opacity 0.25s ease,
    transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.2s,
    background 0.2s;
}
.feed-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
  animation: collect-to-top-emerge 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.feed-to-top:hover {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.13);
}
.feed-to-top.is-visible:hover {
  transform: translateY(-1px);
}

.feed-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--success-bg);
  border: 1px solid rgba(134, 239, 172, 0.25);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--success);
  font-family: var(--mono);
}

.feed-list {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  padding: 4px 0;
  scrollbar-gutter: stable;
}
.feed-list::-webkit-scrollbar { width: 6px; }
.feed-list::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.08); border-radius: 3px; }
.feed-list::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.16); }
.feed-list.is-shifting > .feed-row {
  transform: translateY(calc(-1 * var(--feed-shift, 0px)));
  will-change: transform;
}
.feed-list.is-shifting-go > .feed-row {
  transform: translateY(0);
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.feed-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.15s;
}
.feed-row .feed-body {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 360px;
}
.feed-row .feed-cur { margin-left: auto; }
.feed-row:last-child { border-bottom: 0; }
.feed-row:hover { background: rgba(255, 255, 255, 0.03); cursor: pointer; }

@keyframes feed-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.feed-time {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.feed-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  line-height: 1.3;
}
.feed-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: -0.005em;
}
.feed-meta {
  font-size: 10.5px;
  color: var(--text-dim);
  font-family: var(--mono);
}
.feed-meta .feed-game {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-right: 8px;
}
.feed-attrs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 3px;
}
.feed-row .sale-attrs {
  justify-content: flex-start;
  margin-top: 0;
  flex: 0 0 auto;
}
.feed-row .sale-attr .feed-attr-img {
  width: 28px;
  height: 28px;
}
.feed-row .sale-attr-text {
  font-size: 12px;
  padding: 4px 10px;
}
.feed-row .sale-attr-text .sale-attr-sym {
  font-size: 13px;
}

.panel-feed { container-type: inline-size; }
@container (max-width: 600px) {
  .feed-row { flex-wrap: wrap; row-gap: 6px; }

  .feed-row .feed-body { flex: 1 1 0; }
  .feed-row .sale-attrs:not(:empty) {
    order: 10;
    flex: 1 1 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    row-gap: 4px;
    margin-left: 58px; 
  }
  
  @media (max-width: 880px) {
    .feed-row .sale-attrs:not(:empty) { margin-left: 54px; }
  }
}
.feed-row .feed-cur {
  margin-left: auto;
}

body.view-feed .drawer-toggle { display: none; }

.feed-row .feed-listing { display: none; }

@container (min-width: 880px) {
  body.view-feed .feed-row .feed-listing {
    display: inline-flex;
    align-items: center;

    margin-left: auto;
    flex: 0 0 165px;
    width: 165px;
    font-family: var(--mono);
    font-variant-numeric: tabular-nums;
  }
  body.view-feed .feed-row .feed-cur { margin-left: 24px; }
}
.feed-cur {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.feed-cur-arrow {
  color: var(--text-faint);
  font-weight: 400;
}
.feed-attr {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 140px;
  padding: 2px 7px 2px 6px;
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: 0;
  white-space: nowrap;
}
.feed-attr-name {
  overflow: hidden;
  text-overflow: ellipsis;
}
.feed-attr-mark {
  font-size: 9px;
  line-height: 1;
  color: var(--text-dim);
}
.feed-attr-img {
  position: relative;
  width: 16px;
  height: 16px;
  border-radius: 3px;
  background-color: rgba(255, 255, 255, 0.06);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

.gem-mask {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-color: var(--accent);
  background-image: url('/dota-prismatic-mask');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-blend-mode: hard-light;
  -webkit-mask: url('/dota-prismatic-mask') center/contain no-repeat;
          mask: url('/dota-prismatic-mask') center/contain no-repeat;
  opacity: 0.9;
  border-radius: inherit;
}
.feed-attr-sticker .feed-attr-mark { color: #d0e3ff; }
.feed-attr-charm   .feed-attr-mark { color: #ffd7a8; }
.feed-attr-patch   .feed-attr-mark { color: #c5f0c8; }
.feed-attr-gem     .feed-attr-mark { color: #e0c6ff; }
.feed-attr-more {
  color: var(--text-dim);
  font-family: var(--mono);
  padding: 2px 7px;
}
.feed-attr[data-image] { cursor: help; }
.feed-attr[data-image]:hover {
  color: var(--text);
}

.attr-preview {
  position: fixed;
  z-index: 200;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 168px;
  padding: 12px 12px 10px;
  background: rgba(16, 16, 18, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.12s ease, transform 0.12s ease;
}
.attr-preview[data-show="1"] {
  opacity: 1;
  transform: translateY(0);
}
.attr-preview-type {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  align-self: flex-start;
}
.attr-preview-img {
  position: relative;
  width: 144px;
  height: 144px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.attr-preview-label {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text);
  text-align: center;
  line-height: 1.3;
  max-width: 100%;
  word-break: break-word;
}

.feed-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 3px 9px;
  border: 1px solid;
  border-radius: 999px;
  min-width: 64px;
  text-align: center;
}
.feed-tag.sold   { color: var(--success); border-color: rgba(134, 239, 172, 0.25); background: var(--success-bg); }
.feed-tag.listed { color: var(--text);    border-color: rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.05); }
.feed-tag.bid    { color: var(--warn);    border-color: rgba(252, 211, 77, 0.25);  background: var(--warn-bg); }

.feed-tag.stamp  { color: var(--text-muted, rgba(255,255,255,0.55)); border-color: transparent; background: transparent; padding: 0; letter-spacing: 0.04em; min-width: 80px; }

.feed-price {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  min-width: 76px;
  text-align: right;
}

.empty-state {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-dim);
  font-size: 12.5px;
}
.empty-state--filter {
  color: #ff6b6b;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.loading-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  color: var(--text-dim);
  font-size: 11.5px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  user-select: none;
  animation: loading-indicator-pulse 1.8s ease-in-out infinite;

  grid-column: 1 / -1;
}
.loading-indicator-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
}
.loading-indicator-dots > span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.35;
  animation: loading-indicator-bounce 1.2s ease-in-out infinite;
}
.loading-indicator-dots > span:nth-child(2) { animation-delay: 0.15s; }
.loading-indicator-dots > span:nth-child(3) { animation-delay: 0.3s; }
@keyframes loading-indicator-pulse {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 1; }
}
@keyframes loading-indicator-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.35; }
  40%           { transform: translateY(-3px); opacity: 1; }
}

.loading-indicator--inline {
  padding: 14px;
  letter-spacing: 0.08em;
}

.item-thumb {
  display: inline-block;
  width: 44px;
  height: 44px;
  background-color: #1a1c1f;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  flex-shrink: 0;
  position: relative;
  cursor: pointer;
  transform-origin: center;
  transition:
    transform 0.2s cubic-bezier(.4, 0, .2, 1),
    box-shadow 0.2s cubic-bezier(.4, 0, .2, 1);
}

.trending-row:hover .item-thumb,
.feed-row:hover .item-thumb,
.sale-row:hover .item-thumb {
  transform: scale(1.45);
  z-index: 4;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.55);
}

.antiscam-sale-row:hover .item-thumb,
.mispriced-sale-row:hover .item-thumb {
  transform: none;
  z-index: auto;
  box-shadow: none;
}

.item-flag {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  color: var(--danger, #fca5a5);
  cursor: help;
  outline: none;
  transition: color 0.12s, transform 0.12s;
}
.items-sale-row .antiscam-price-cell {
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.item-flag:hover,
.item-flag:focus {
  color: #f87171;
  transform: scale(1.1);
}
.item-flag svg {
  display: block;
  width: 100%;
  height: 100%;
}
.item-flag::after {
  content: attr(data-tooltip);
  position: absolute;
  top: 50%;
  left: calc(100% + 10px);
  width: max-content;
  max-width: 320px;
  padding: 8px 10px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--text);
  background: rgba(15, 15, 17, 1);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.55);
  white-space: normal;
  text-align: left;
  opacity: 0;
  pointer-events: none;
  transform: translate(-2px, -50%);
  transition: opacity 0.12s ease-out, transform 0.12s ease-out;
  z-index: 100;
}
.item-flag:hover::after,
.item-flag:focus::after {
  opacity: 1;
  transform: translate(0, -50%);
}

.item-flag--empty {
  pointer-events: none;
  cursor: default;
  color: transparent;
}
.item-flag--empty::after { content: none; }

.antiscam-sale-row .item-thumb:hover,
.mispriced-sale-row .item-thumb:hover {
  transform: scale(1.45);
  z-index: 4;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.55);
}
.item-thumb-lg {
  display: inline-block;
  width: 52px;
  height: 52px;
  background-color: #1b1b1e;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-xs);
  flex-shrink: 0;
}

.panel-donut { min-width: 0; }
.donut-wrap {
  flex: 1;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
  padding: 20px;
  align-items: center;
  min-height: 0;
}
.donut-chart {
  width: 180px;
  height: 180px;
}
.donut-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(6, auto);
  grid-auto-columns: minmax(112px, 1fr);
  gap: 4px 20px;
  min-width: 0;
  overflow-x: auto;
}
.donut-legend::-webkit-scrollbar { height: 4px; }
.donut-legend::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.08); border-radius: 2px; }
.donut-legend li {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 4px 0;
  font-size: 11.5px;
  min-width: 0;
}
.donut-legend i {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  display: inline-block;
}
.donut-legend b {
  color: var(--text);
  font-weight: 500;
  font-size: 12.5px;
}
.donut-legend li > span:last-child {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-dim);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.panel-detail { min-width: 0; }
.detail-head { align-items: center; }
.detail-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.detail-title .item-thumb-lg { width: 36px; height: 36px; border-bottom-width: 3px; }
.detail-title > div { min-width: 0; }
.detail-title h2 {
  font-size: 14px;
  line-height: 1.2;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.detail-title .wear {
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  margin-left: 3px;
}

.detail-tabs {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.detail-tabs .tab {
  padding: 4px 11px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  border-radius: var(--radius-xs);
  transition: background 0.15s, color 0.15s;
}
.detail-tabs .tab:hover { color: var(--text); }
.detail-tabs .tab.active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.detail-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto auto 1fr;
  gap: 1px;
  background: var(--border);
  min-height: 0;
}
.stat {
  padding: 16px 18px;
  background: var(--panel);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.stat-label {
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 500;
}
.stat-value {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.delta {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: 0;
}
.delta.up   { color: var(--success); background: var(--success-bg); }
.delta.down { color: var(--danger);  background: var(--danger-bg); }

.stat-chart {
  grid-column: 1 / -1;
  padding: 14px 18px 12px;
  background: var(--panel);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100px;
}
.detail-spark {
  width: 100%;
  height: 64px;
  display: block;
  flex-shrink: 0;
}
.detail-spark .spark-area { fill: url(#spark-grad); }
.detail-spark .spark-line { fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-linejoin: round; }
.detail-spark .spark-dot  { fill: var(--accent); stroke: var(--panel); stroke-width: 1.5; }
.stat-chart-axis {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-faint);
  margin-top: 8px;
  letter-spacing: 0.04em;
}

.drawer {
  position: fixed;
  top: var(--sidebar-gap);
  right: 0;
  bottom: var(--sidebar-gap);
  width: var(--drawer-w);
  z-index: 60;
  display: flex;
  flex-direction: column;
  background: rgba(15, 15, 17, 0.88);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border: 1px solid var(--border);
  border-right: 0;
  border-radius: 14px 0 0 14px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    -24px 0 60px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  transform: translateX(100%);
  will-change: transform;

  transition:
    transform var(--dur-morph) var(--ease-glass),
    width var(--dur-morph) var(--ease-glass);
}
body.drawer-open .drawer { transform: translateX(0); }

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  height: 56px;
  min-height: 56px;

  transition:
    height 0.35s cubic-bezier(.4, 0, .2, 1),
    min-height 0.35s cubic-bezier(.4, 0, .2, 1),
    max-height 0.35s cubic-bezier(.4, 0, .2, 1),
    padding 0.35s cubic-bezier(.4, 0, .2, 1);
}
.drawer-head-left {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
  flex-wrap: wrap;
}
.drawer-head-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.drawer-range {
  font-size: 12px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  transition: opacity 0.25s ease;
  opacity: 1;
}
.drawer-range:empty {

  opacity: 0;
}
.drawer-head h2 {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
  color: var(--text);
  letter-spacing: -0.01em;
}
.drawer-head .panel-sub {
  margin: 0;
  white-space: nowrap;
  transition: opacity 0.25s ease, max-width 0.35s cubic-bezier(.4, 0, .2, 1);
  opacity: 1;
  overflow: hidden;
}

.drawer-head .panel-sub[hidden] {
  display: inline-block;
  opacity: 0;
  max-width: 0;
  pointer-events: none;
  margin: 0;
  padding: 0;
}
.drawer-head .panel-sub[hidden]::before { display: none; }
.drawer-head-left .panel-sub::before {
  content: '';
  display: inline-block;
  width: 1px;
  height: 11px;
  background: var(--border);
  margin-right: 10px;
  vertical-align: -1px;
}
.drawer-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, background 0.15s;
}
.drawer-close:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }

.drawer-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 28px;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  transition:
    color 0.15s,
    background 0.15s,
    border-color 0.15s,
    opacity 0.25s ease,
    width 0.35s cubic-bezier(.4, 0, .2, 1),
    padding 0.35s cubic-bezier(.4, 0, .2, 1),
    border-width 0.25s ease;
  overflow: hidden;
}
.drawer-reset:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--border-hover);
}
.drawer-reset:disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

.drawer-reset[hidden] {
  display: inline-flex;
  opacity: 0;
  width: 0;
  padding: 0;
  border-width: 0;
  pointer-events: none;
  overflow: hidden;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.drawer-body::-webkit-scrollbar { width: 6px; }
.drawer-body::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.08); border-radius: 3px; }
.drawer-body::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.16); }

.drawer-body .panel {
  min-height: 360px;
  flex-shrink: 0;
}
.drawer-body .panel-chart  { height: 420px; }
.drawer-body .panel-chart > .panel-head { border-bottom: 0; padding-bottom: 4px; }
.drawer-body .panel-chart > .chart-wrap { padding-top: 4px; }

.ts-controls {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.ts-range-pills {
  display: inline-flex;
  position: relative;
  gap: 4px;
  align-items: center;
  padding: 3px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}
.ts-range-pills .range-pill {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font: 500 11px/1 'Inter', sans-serif;
  letter-spacing: 0.02em;
  padding: 6px 10px;
  border-radius: 7px;
  cursor: pointer;
  position: relative;
  z-index: 1;
  transition: color 0.18s ease;
}
.ts-range-pills .range-pill:hover { color: var(--text); }
.ts-range-pills .range-pill.active { color: var(--text); }
.ts-legend {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}
.ts-legend-below {
  display: flex;
  justify-content: center;
  gap: 4px;
  padding: 10px 0 14px;
}
.panel-head-title {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.panel-chart .panel-head-title {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}
.panel-head-title-feed {
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
}

.panel-head-title-top {
  display: grid;
  grid-template-columns: minmax(0, max-content);
  align-items: center;
}
.panel-head-title-main {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.panel-head-title-top > .panel-head-title-main,
.panel-head-title-top > .feed-pause-info {
  grid-area: 1 / 1;

  position: relative;
  z-index: 5;
  transition: opacity 0.32s ease, transform 0.32s ease;
}
.panel-head-title-top > .feed-pause-info {
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
}
body.feed-paused .panel-head-title-top > .panel-head-title-main {
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
}
body.feed-paused .panel-head-title-top > .feed-pause-info {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
body.feed-paused .panel-feed .panel-head-title-feed > .panel-sub { color: var(--text-faint); }
body.view-feed .panel-feed .panel-head-title-feed > .panel-sub,
body.view-feed .panel-feed .info-hint--wide { display: none; }
.feed-page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  text-decoration: none;
  flex-shrink: 0;
  transition:
    color 0.15s,
    background 0.15s,
    border-color 0.15s,
    opacity 0.3s ease-out;
}
.feed-page-link:hover,
.feed-page-link:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--border-hover);
  outline: none;
}
.feed-page-link svg { transition: transform 0.15s; }
.feed-page-link:hover svg { transform: translate(1px, -1px); }

body.view-feed .panel-feed .feed-page-link {
  opacity: 0;
  pointer-events: none;
}

.trending-page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  text-decoration: none;
  flex-shrink: 0;
  transition:
    color 0.15s,
    background 0.15s,
    border-color 0.15s,
    opacity 0.3s ease-out;
}
.trending-page-link:hover,
.trending-page-link:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--border-hover);
  outline: none;
}

.trending-page-link[hidden] { display: none; }
.trending-page-link-arrow { transition: transform 0.15s; }
.trending-page-link:hover .trending-page-link-arrow { transform: translate(1px, -1px); }
.trending-page-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background-size: cover;
  background-position: center;
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  flex-shrink: 0;
}
.trending-page-link-icon svg { display: block; }

.trending-page-link-icon.is-pop {
  animation: trendingLinkIconPop 0.28s cubic-bezier(.4, 0, .2, 1);
}
@keyframes trendingLinkIconPop {
  from { opacity: 0; transform: scale(0.82); }
  to { opacity: 1; transform: scale(1); }
}

.trending-game-jump { display: none; }
body.view-dashboard .trending-game-jump:not([hidden]) {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.trending-game-jump-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;

  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s, background 0.15s, border-color 0.15s, transform 0.15s;
}
.trending-game-jump-btn:hover,
.trending-game-jump-btn:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
  outline: none;
}
.trending-game-jump-btn:focus-visible {
  border-color: var(--border-hover);
}
.trending-game-jump-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.06);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  color: var(--text-muted);
}
.trending-game-jump-icon--img {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: transparent;
}

.panel-trending > .panel-head > .trending-range-pills { margin-left: auto; }

body.view-game .panel-trending > .panel-head > .trending-page-link {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  opacity: 0;
  pointer-events: none;
}
.info-hint {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  color: var(--text-muted);
  cursor: help;
  transition: color 0.15s, background 0.15s;
  outline: none;
}
.info-hint:hover,
.info-hint:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}
.info-hint::after {
  content: attr(data-tip);
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(-2px);
  background: rgba(15, 15, 17, 1);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--border);
  color: var(--text);
  font: 500 11px/1.35 'Inter', sans-serif;
  letter-spacing: 0;
  text-transform: none;
  padding: 6px 10px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s, transform 0.15s;
  z-index: 10;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}
.info-hint:hover::after,
.info-hint:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.panel-feed > .panel-head .info-hint--wide::after,
.panel-feed > .panel-head .feed-pause-help::after {
  top: calc(50% + 4px);
  left: calc(100% + 8px);
  right: auto;
  width: max-content;
  max-width: clamp(240px, 32vw, 440px);
  white-space: normal;
  text-align: left;
  transform: translate(0, calc(-50% - 2px));
}
.panel-feed > .panel-head .info-hint--wide:hover::after,
.panel-feed > .panel-head .info-hint--wide:focus-visible::after,
.panel-feed > .panel-head .feed-pause-help:hover::after,
.panel-feed > .panel-head .feed-pause-help:focus::after {
  transform: translate(0, -50%);
}
.ts-toggle {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 7px;
  font: 500 10.5px/1 'Inter', sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.15s, background 0.15s, opacity 0.15s;
}
.ts-toggle i {
  width: 10px;
  height: 2px;
  display: inline-block;
  border-radius: 2px;
  transition: opacity 0.15s;
}
.ts-toggle:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.ts-toggle.is-on { color: var(--text); }
.ts-toggle:not(.is-on) { opacity: 0.5; }
.ts-toggle:not(.is-on) i { opacity: 0.35; }
.ts-toggle.leg-vol i { background: var(--accent); }
.ts-toggle.leg-val i { background: var(--chart-bar); }
.drawer-body .panel-donut  { height: 340px; }
.drawer-body .panel-status { min-height: 340px; flex: 1; display: flex; flex-direction: column; }

.panel-status .panel-head { flex-shrink: 0; }

.status-split {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 45fr 55fr;
  gap: 12px;

  padding: 6px 14px 14px 0;
}
.status-split-main { margin-top: 0 !important; }

.status-gaps-wrap {
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0;
}
.status-gaps-wrap::-webkit-scrollbar { width: 5px; }
.status-gaps-wrap::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.08); border-radius: 3px; }
.status-gaps-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.status-gaps-empty,
.status-gaps-loading {
  list-style: none;
  padding: 16px 12px;
  text-align: center;
  color: var(--text-dim);
  font-size: 11.5px;
}
.status-gap {
  display: flex;
  align-items: baseline;
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 10px 7px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  transition: background 0.15s;
  min-width: 0;
}
.status-gap:last-child { border-bottom: 0; }
.status-gap:hover { background: rgba(255, 255, 255, 0.025); }

.status-gap::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 2px;
  border-radius: 1px;
  background: transparent;
}
.status-gap-date {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.02em;
  color: var(--text-faint);
  white-space: nowrap;
}
.status-gap-range {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex-shrink: 1;
}

.status-gap-range-line { display: inline; }
.status-gap-multi .status-gap-range-line { display: block; }
.status-gap-range-note {
  font-size: 10px;
  letter-spacing: 0.02em;
  color: var(--text-faint);
  text-align: center;
}
.status-gap-multi { align-items: center; }
.status-gap-duration {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 7ch;
  text-align: right;
}
.status-gap-red::before      { background: #e06c6c; }
.status-gap-yellow::before   { background: #e0c26c; }
.status-gap-green::before    { background: rgba(255, 255, 255, 0.3); }
.status-gap-red .status-gap-duration    { color: #e08686; }
.status-gap-yellow .status-gap-duration { color: #e0c686; }
.status-gap-green .status-gap-duration  { color: var(--text-dim); }

.status-gaps-sentinel {
  height: 1px;
  pointer-events: none;
}

.status-donate {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  padding: 18px 14px;
  background: transparent;
  border: 1.5px dashed rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-xs);
  min-width: 0;
  transition: border-color 0.2s, background 0.2s;
}
.status-donate:hover {
  border-color: rgba(224, 108, 108, 0.5);
  background: rgba(224, 108, 108, 0.04);
}
.status-donate-icon {
  color: #e06c6c;
  filter: drop-shadow(0 0 10px rgba(224, 108, 108, 0.35));
}
.status-donate-title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text);
}
.status-donate-sub {
  font-size: 11px;
  line-height: 1.4;
  color: var(--text-dim);
}

.status-online { display: inline-flex; align-items: center; gap: 7px; flex: none; }
.status-online-dot {
  width: 8px; height: 8px;
  flex: none;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 7px rgba(74, 222, 128, 0.6);
  animation: status-online-pulse 2s ease-in-out infinite;
}
@keyframes status-online-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.status-online-count { font-size: 14px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.status-online-label { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.05em; }
@media (prefers-reduced-motion: reduce) { .status-online-dot { animation: none; } }

.drawer-toggle {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 156px;
  padding: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03)),
    rgba(18, 18, 21, 0.92);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-right: 0;
  border-radius: 14px 0 0 14px;
  color: var(--text);
  z-index: 65;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    -4px 0 24px rgba(255, 255, 255, 0.05),
    -14px 0 40px rgba(0, 0, 0, 0.55);
  transition:
    color 0.2s,
    background var(--dur-morph) var(--ease-glass),
    border-color var(--dur-morph) var(--ease-glass),
    box-shadow var(--dur-morph) var(--ease-glass),
    right var(--dur-morph) var(--ease-glass),
    opacity 0.26s cubic-bezier(.4, 0, .2, 1) 0.32s,
    visibility 0s linear 0.32s;
}
.drawer-toggle:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.3);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05)),
    rgba(24, 24, 28, 0.95);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.1) inset,
    -4px 0 28px rgba(255, 255, 255, 0.08),
    -16px 0 48px rgba(0, 0, 0, 0.6);
}
.drawer-toggle-text {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text);
}
.drawer-toggle svg { transition: transform 0.3s ease; color: var(--text-muted); }
.drawer-toggle:hover svg { color: var(--text); }
body.drawer-open .drawer-toggle {
  right: calc(var(--drawer-w) - 1px);
  background: rgba(15, 15, 17, 0.88);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border-color: var(--border);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    -14px 0 40px rgba(0, 0, 0, 0.4);
}
body.drawer-open .drawer-toggle:hover {
  background: rgba(22, 22, 26, 0.92);
  border-color: var(--border);
}
body.drawer-open .drawer-toggle svg { transform: rotate(180deg); }

.drawer-analytics,
.drawer-filters {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-height: 0;
}

.drawer-filters {
  overflow-y: auto;
  overflow-x: hidden;
}
.drawer-filters > .feed-filter-section,
.drawer-filters > .cs2-filter-block { flex-shrink: 0; }
.drawer-filters::-webkit-scrollbar { width: 6px; }
.drawer-filters::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.08); border-radius: 3px; }
.drawer-filters::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.16); }
.drawer-filters { display: none; }
.drawer[data-content="filters"] .drawer-analytics { display: none; }
.drawer[data-content="filters"] .drawer-filters { display: flex; }

.drawer-filters > .feed-filter-section { display: none; }

.feed-filter-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.feed-filter-section-title {
  font: 500 11px/1 'Inter', sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.feed-filter-section .feed-price-pills {
  align-self: flex-start;
}

.filters-placeholder {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 40px 20px;
  color: var(--text-dim);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  min-height: 280px;
}
.filters-placeholder svg { color: var(--text-muted); }
.filters-placeholder-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.filters-placeholder-sub {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.08em;
}

body.view-dashboard .page {
  padding-top: var(--sidebar-gap);
}

.game-filters > .search-pill {
  position: static;
  top: auto;
  right: auto;
  left: auto;
  bottom: auto;
  flex-shrink: 0;
}
body.view-dashboard .game-filters,
body.view-feed .game-filters {
  min-height: 40px;
  align-items: center;
}

body.view-dashboard .game-filters {
  display: grid;
  grid-template-columns:
    minmax(0, 62.5%)
    minmax(0, 37.5%);
  gap: clamp(10px, 1vw, 16px);
}
body.view-dashboard .game-filter-group { width: auto; }

body.view-dashboard .game-filter-group {
  flex-wrap: nowrap;
  min-width: 0;

  overflow-x: clip;

  padding-right: 12px;
}
body.view-dashboard .game-filters > .search-pill {
  width: auto;
  margin-left: 0;
}

@media (max-width: 1080px) and (min-width: 881px) {

  :root { --drawer-w: 80vw; }

  body.view-items { --attrs-filter-w: 80vw; }

  body.view-dashboard .kpi-row,
  body.view-feed .kpi-row,
  body.view-game .kpi-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body.view-dashboard .kpi-row {
    max-height: 480px;
  }

  body.view-dashboard .kpi-card {
    padding: 10px 14px;
    gap: 4px;
  }
  body.view-dashboard .kpi-card .kpi-value {
    font-size: clamp(18px, 1.5vw, 22px);
  }
  body.view-dashboard .kpi-card.kpi-turnover .kpi-value {
    font-size: clamp(15px, 1.25vw, 18px);
  }
  body.view-dashboard .kpi-card .kpi-label {
    font-size: 10px;
  }
  body.view-dashboard .kpi-card .kpi-delta {
    font-size: 10.5px;
  }
  body.view-dashboard .game-filters {
    display: flex;
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 8px;
    min-width: 0;
  }
  body.view-dashboard .game-filters > .search-pill {
    width: 100%;
    min-width: 0;
  }
  body.view-dashboard .game-filter-group {
    flex-wrap: nowrap;
    min-width: 0;
  }
}

@media (max-width: 1180px) and (min-width: 1081px) {
  body.view-dashboard:not(.sidebar-collapsed) .kpi-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 480px;
  }
  body.view-dashboard:not(.sidebar-collapsed) .kpi-card {
    padding: 10px 14px;
    gap: 4px;
  }
  body.view-dashboard:not(.sidebar-collapsed) .kpi-card .kpi-value {
    font-size: clamp(18px, 1.5vw, 22px);
  }
  body.view-dashboard:not(.sidebar-collapsed) .kpi-card.kpi-turnover .kpi-value {
    font-size: clamp(15px, 1.25vw, 18px);
  }
  body.view-dashboard:not(.sidebar-collapsed) .kpi-card .kpi-label {
    font-size: 10px;
  }
  body.view-dashboard:not(.sidebar-collapsed) .kpi-card .kpi-delta {
    font-size: 10.5px;
  }
}

body.view-feed .game-filters {
  display: grid;

  grid-template-columns:
    minmax(0, 100%)
    minmax(0, 0%);
  gap: 0;
}
body.view-feed .game-filter-group { width: auto; }

body.view-feed .game-filter-group {
  flex-wrap: nowrap;
  min-width: 0;
  overflow-x: clip;
}
body.view-feed .game-filters > .search-pill {
  width: auto;
  margin-left: 0;
}

@media (max-width: 880px) {
  body.view-feed .game-filters {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    min-width: 0;
  }
  body.view-feed .game-filters > .search-pill {
    width: 100%;
    min-width: 0;
  }
}

.game-name-long,
.game-name-short {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  vertical-align: baseline;
}

.game-name-long {
  opacity: 1;
  max-width: 240px;
  transition:
    opacity 0.24s cubic-bezier(.4, 0, .2, 1) 0.16s,
    max-width 0.32s cubic-bezier(.4, 0, .2, 1);
}

.game-name-short {
  opacity: 0;
  max-width: 0;
  transition:
    opacity 0.2s cubic-bezier(.4, 0, .2, 1),
    max-width 0.32s cubic-bezier(.4, 0, .2, 1);
}
.game-filter-group.is-cramped .game-name-long {
  opacity: 0;
  max-width: 0;
  transition:
    opacity 0.2s cubic-bezier(.4, 0, .2, 1),
    max-width 0.32s cubic-bezier(.4, 0, .2, 1);
}
.game-filter-group.is-cramped .game-name-short {
  opacity: 1;
  max-width: 80px;
  transition:
    opacity 0.24s cubic-bezier(.4, 0, .2, 1) 0.16s,
    max-width 0.32s cubic-bezier(.4, 0, .2, 1);
}

.game-filter-group .pill em {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  opacity: 1;
  max-width: 80px;
  margin-left: 4px;
  transition:
    opacity 0.24s cubic-bezier(.4, 0, .2, 1) 0.16s,
    max-width 0.32s cubic-bezier(.4, 0, .2, 1),
    margin-left 0.32s cubic-bezier(.4, 0, .2, 1);
}

.game-filter-group.em-priming .pill em,
.game-filter-group.is-cramped .pill em {
  opacity: 0;
  max-width: 0;
  margin-left: 0;
  transition:
    opacity 0.2s cubic-bezier(.4, 0, .2, 1),
    max-width 0.32s cubic-bezier(.4, 0, .2, 1),
    margin-left 0.32s cubic-bezier(.4, 0, .2, 1);
}

.game-filter-group .pill { white-space: nowrap; }

body.filters-transitioning .game-filters { flex-wrap: nowrap; }
body.filters-transitioning .game-filter-group { flex-wrap: nowrap; }

.game-filter-group.measuring,
.game-filter-group.measuring .pill em,
.game-filter-group.measuring .game-name-long,
.game-filter-group.measuring .game-name-short {
  transition: none !important;
}
.game-filter-group.measuring .pill em {
  opacity: 1 !important;
  max-width: 80px !important;
  margin-left: 4px !important;
}
.game-filter-group.measuring .game-name-long {
  opacity: 1 !important;
  max-width: 240px !important;
}
.game-filter-group.measuring .game-name-short {
  opacity: 0 !important;
  max-width: 0 !important;
}

.game-filter-group.em-no-trans .pill em,
.game-filter-group.em-no-trans .game-name-long,
.game-filter-group.em-no-trans .game-name-short {
  transition: none !important;
}

.game-filter-group .pill-gicon {
  display: none;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  flex: 0 0 auto;
}
svg.pill-gicon { padding: 1px; }  
.game-filter-group.is-icons .pill.has-gicon .pill-gicon { display: block; }
.game-filter-group.is-icons .pill.has-gicon:not(.active) .pill-glabel,
.game-filter-group.is-icons .pill.has-gicon:not(.active) em { display: none; }

.game-filter-group.is-icons .pill.has-gicon em { display: none; }
.game-filter-group.is-icons .pill.has-gicon:not(.active) { padding: 0 8px; }
.game-filter-group.is-icons .pill.has-gicon.active { padding: 0 12px; }
body.view-dashboard .game-filter-group.is-icons { padding-right: 4px; }

.game-filter-group.measuring .pill-gicon { display: none !important; }
.game-filter-group.measuring .pill .pill-glabel,
.game-filter-group.measuring .pill em { display: inline-block !important; }

body.view-feed { --drawer-w: clamp(340px, 32%, 460px); }

body.view-feed .page {

  gap: clamp(8px, 1vw, 14px);
  padding-top: var(--sidebar-gap);

  padding-right: var(--content-pad);
}
body.view-feed.drawer-open .page {
  padding-right: calc(var(--drawer-w) + var(--sidebar-gap));
}

body.feed-drawer-overlay.view-feed.drawer-open .page {

  padding-right: var(--content-pad);
}

body.view-feed .kpi-row {
  max-height: 0;
  min-height: 0;
  margin: 0;
  opacity: 0;
  transform: translateY(-64px);
  pointer-events: none;
  
  transition:
    max-height 0.3s cubic-bezier(.4, 0, .2, 1) 0.25s,
    margin 0.3s cubic-bezier(.4, 0, .2, 1) 0.25s,
    opacity 0.25s cubic-bezier(.4, 0, .2, 1) 0.25s,
    transform 0.3s cubic-bezier(.4, 0, .2, 1) 0.25s;
}
body.view-feed .game-filters {
  margin-top: calc(clamp(8px, 1vw, 14px) * -1);
  
  transition:
    max-height 0.3s cubic-bezier(.4, 0, .2, 1) 0.25s,
    margin 0.3s cubic-bezier(.4, 0, .2, 1) 0.25s,
    opacity 0.25s cubic-bezier(.4, 0, .2, 1) 0.25s,
    transform 0.3s cubic-bezier(.4, 0, .2, 1) 0.25s;
}
body.view-feed .row-main {
  grid-template-columns: minmax(0, 100%) minmax(0, 0%);
  gap: 0;
  
  transition:
    grid-template-columns 0.3s cubic-bezier(.4, 0, .2, 1),
    gap 0.3s cubic-bezier(.4, 0, .2, 1);
}
body.view-feed .panel-trending {
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.22s cubic-bezier(.4, 0, .2, 1),
    transform 0.25s cubic-bezier(.4, 0, .2, 1);
}

body.view-feed.drawer-open .drawer-toggle {
  right: -52px;
  pointer-events: none;
}

body.view-game { --drawer-w: clamp(420px, 32%, 460px); }

body.view-game .page {

  gap: 0;
  padding-top: var(--sidebar-gap);

  padding-right: calc(var(--content-pad) + var(--toggle-w));
}
body.view-game.drawer-open .page {
  padding-right: calc(var(--drawer-w) + var(--sidebar-gap));
}

@media (max-width: 1180px) {
  body.view-game.drawer-open .page {
    padding-right: var(--content-pad);
  }
}

body.game-drawer-overlay.view-game.drawer-open .page {

  padding-right: calc(var(--content-pad) + var(--toggle-w));
}

body.game-drawer-overlay.view-game .trending-row--stats,
body.game-drawer-overlay.view-game .trending-sort-row {
  grid-template-columns:
    44px
    clamp(220px, 28vw, 360px)
    var(--tstat-spark-w, 104px)
    var(--tstat-count-w, 72px)
    var(--tstat-total-w, 120px)
    var(--tstat-avg-w, 104px)
    minmax(28px, 1fr);
}

body.view-game .trending-row--stats .feed-meta {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

body.view-game .kpi-row,
body.view-game .game-filters {
  max-height: 0;
  min-height: 0;
  margin: 0;
  opacity: 0;
  transform: translateY(-64px);
  pointer-events: none;
  
  transition:
    max-height 0.3s cubic-bezier(.4, 0, .2, 1) 0.25s,
    margin 0.3s cubic-bezier(.4, 0, .2, 1) 0.25s,
    opacity 0.25s cubic-bezier(.4, 0, .2, 1) 0.25s,
    transform 0.3s cubic-bezier(.4, 0, .2, 1) 0.25s;
}
body.view-game .row-main {
  grid-template-columns: minmax(0, 0%) minmax(0, 100%);
  gap: 0;
  
  transition:
    grid-template-columns 0.3s cubic-bezier(.4, 0, .2, 1),
    gap 0.3s cubic-bezier(.4, 0, .2, 1);
}
body.view-game .panel-feed {
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.22s cubic-bezier(.4, 0, .2, 1),
    transform 0.25s cubic-bezier(.4, 0, .2, 1);
}
body.view-game .live-toggle { display: none; }

body.view-game.drawer-open .drawer-toggle,
body.view-items.drawer-open .drawer-toggle,
body.view-antiscam.drawer-open .drawer-toggle,
body.view-mispriced.drawer-open .drawer-toggle {
  
  right: -52px;
  pointer-events: none;
}

body.view-game .panel-trending > .panel-head {
  box-sizing: border-box;

  min-height: 84px;
  padding: 14px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-rows: 1fr;
  align-items: center;
  align-content: center;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
body.view-game .panel-trending > .panel-head > .panel-head-title {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  align-self: center;
  min-width: 0;
}
body.view-game .panel-trending > .panel-head > .search-pill {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  align-self: center;
  margin: 0;
  height: 32px;
  border-radius: 10px;
  padding: 0 10px 0 12px;
  box-shadow: none;
}
body.view-game .panel-trending > .panel-head > .search-pill input {
  font-size: 12px;
}
body.view-game .panel-trending > .panel-head > .trending-range-pills {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  align-self: center;
}
body.view-game .drawer-head {
  box-sizing: border-box;
  height: 84px;
  min-height: 84px;
  max-height: 84px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
body.view-game .panel-trending > .panel-head h2,
body.view-game .drawer-head h2 {
  font-size: 15px;
  line-height: 1.3;
  margin: 0 0 2px;
}
body.view-game .panel-trending > .panel-head .panel-sub,
body.view-game .drawer-head .panel-sub {
  line-height: 1.3;
  margin: 0;
}

.panel-trending > .panel-head .panel-head-title h2,
.panel-trending > .panel-head .panel-head-title .panel-sub {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}

body.view-game .panel-trending > .panel-head > .search-pill {
  position: static;
  top: auto;
  right: auto;
  left: auto;
  bottom: auto;
  flex-shrink: 0;
  transform: none;
}

body.view-game > .search-pill { visibility: hidden; }

body.view-game .panel-trending { container-type: inline-size; }

@container (max-width: 740px) {
  body.view-game .panel-trending > .panel-head {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    row-gap: 8px;
  }
  body.view-game .panel-trending > .panel-head > .panel-head-title {
    grid-column: 1;
    grid-row: 1;
  }
  body.view-game .panel-trending > .panel-head > .trending-range-pills {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }
  body.view-game .panel-trending > .panel-head > .trending-page-link {
    grid-column: 2;
    grid-row: 1;
  }
  body.view-game .panel-trending > .panel-head > .search-pill {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: stretch;
    width: 100%;
  }
}

@container (max-width: 880px) {
  body.view-game .trending-row--stats,
  body.view-game .trending-sort-row,
  body.game-drawer-overlay.view-game .trending-row--stats,
  body.game-drawer-overlay.view-game .trending-sort-row {
    column-gap: 8px;
    grid-template-columns:
      40px
      minmax(0, 1fr)            
      84px                      
      56px                      
      92px                      
      86px                      
      24px;                     
  }
}

@container (max-width: 620px) {
  body.view-game .trending-row--stats,
  body.view-game .trending-sort-row,
  body.game-drawer-overlay.view-game .trending-row--stats,
  body.game-drawer-overlay.view-game .trending-sort-row {
    column-gap: 9px;
    grid-template-columns:
      36px
      minmax(0, 1fr)
      50px    
      78px    
      72px    
      14px;   
    padding-left: 12px;
    padding-right: 12px;
  }
  body.view-game .trending-row--stats > .tstat-spark,
  body.view-game .trending-sort-row > .tsort-spacer--spark,
  body.view-game .trending-row--stats .tstat-avg .price-arrow {
    display: none;
  }
}

.item-page {
  display: none;
  position: relative;
  z-index: 1;
  height: 100vh;
  overflow: hidden;
  padding-left: calc(var(--sidebar-w) + var(--sidebar-gap) * 2);
  padding-right: calc(var(--content-pad) + var(--toggle-w));
  padding-top: var(--sidebar-gap);
  padding-bottom: var(--sidebar-gap);
  flex-direction: column;

  gap: 0;
}
.item-page > .item-sales-panel,
.item-page > .item-currency-panel {
  margin-top: 6px;
}
.item-page-hero {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: clamp(320px, 32vw, 460px) 1fr;
  gap: 0;
  align-items: stretch;
}
.item-page-hero-left .item-page-thumb {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.item-page-main > .item-chart-panel,
.item-page-main > .attr-chart-panel {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
.item-page-hero-left {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  height: 100%;
  position: relative;
}
.item-page-hero-left .item-page-thumb {
  flex: 1 1 auto;
  aspect-ratio: auto;
  min-height: 0;
}
.item-page-hero-left .attr-standalone-slot {
  flex: 0 0 auto;
}
.item-page-main {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  min-height: 0;
}

.item-page-steam { display: none; }
.item-page-head {
  display: flex;
  flex-direction: row;

  align-items: end;
  gap: clamp(12px, 1.4vw, 20px);
  flex-shrink: 0;
  min-height: 40px;
  padding-left: 104px;
}
.item-page-title {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;

  padding-bottom: 6px;
}

body.view-item .item-chart-panel .panel-head-title h2 { display: none; }
body.view-item .item-chart-panel > .panel-head {
  justify-content: flex-start;
  padding-top: 8px;
  padding-bottom: 8px;
}
body.view-item .item-chart-panel > .panel-head .panel-head-title {
  transform: none;
  flex-direction: column;
  align-items: flex-start;
  flex: 1 1 auto;
  min-width: 0;
  gap: 1px;
}

body.view-item .item-page-head > .item-variants { margin-left: auto; }

body.view-item.mode-mobile .item-page-head > .item-variants .item-variant-row {
  box-shadow: none;
  border-radius: var(--radius-sm);
}

body.view-item.mode-squarish .item-page-head {
  flex-direction: row;
  align-items: end;
  padding-left: 104px;
}
body.view-item.mode-squarish .item-page-head > .item-variants { overflow: visible; }
body.view-item .item-chart-panel .panel-head-title .item-page-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  width: 100%;
  padding-bottom: 0;
}
body.view-item .item-chart-panel .panel-head-title .item-page-title h1 {
  max-width: 100%;
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  user-select: text;
  -webkit-user-select: text;
  cursor: text;
}
body.view-item .item-chart-panel .panel-head-title .item-page-title .panel-sub {
  max-width: 100%;
  margin: 0;
  font-size: clamp(10px, 0.85vw, 11.5px);
  line-height: 1.2;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chart-caption { display: none; }

body.view-item .item-chart-panel > .panel-head + .chart-wrap {
  padding-bottom: 2px;
}
body.view-item .item-chart-panel .chart-caption {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex: 0 0 auto;
  padding: 0 0 4px;
}
.chart-legend-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 0;
  padding: 2px 2px;
  cursor: pointer;
  font-family: inherit;
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.15s ease, opacity 0.15s ease;
}
.chart-legend-btn:hover { color: var(--text); }

.chart-legend-btn.off { color: var(--text-faint); }

.chart-legend-sep {
  align-self: center;
  font-size: 10px;
  color: var(--text-muted);
}
.item-page-title h1 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.01em;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.item-page-title .panel-sub {
  font-size: 11.5px;
  line-height: 1.25;
  margin: 0;
}

@media (max-width: 1180px) and (min-width: 881px) {

  body .item-sales-list {
    grid-template-columns:
      max-content   
      max-content   
      max-content   
      max-content   
      max-content   
      max-content   
      auto;         
    overflow-x: auto;
    column-gap: 16px;
  }
  
  .item-sales-list .sale-row > span,
  .item-sales-list .sale-row > a { padding: 0 8px; }

  .item-sales-list .sale-attrs {
    flex-wrap: nowrap;
    justify-content: flex-start;
    white-space: nowrap;
  }
  .item-page-head {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .item-page-head > .item-page-title {
    flex: 0 0 auto;
    padding-bottom: 0;
  }

  .item-page-head > .item-variants {
    flex: 0 0 auto;
    width: 100%;
    justify-content: flex-end;
    flex-wrap: nowrap;
    overflow: hidden;
  }
  .item-variants .item-variant-row { flex: 0 0 auto; }
  
  .item-variants.nums-off .item-variant-count { display: none; }

  body.view-attr .item-page-head {
    flex-direction: row;
    align-items: end;
    gap: clamp(12px, 1.4vw, 20px);
  }
  body.view-attr .item-page-head > .item-page-title {
    flex: 1 1 auto;
    padding-bottom: 6px;
  }
  body.view-attr .item-page-head > .item-page-title h1 {
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  body.view-attr .item-page-head > .attr-stats { align-self: end; }

  .item-page-head > .item-page-title h1 {
    word-break: normal;
    overflow-wrap: normal;
  }
}
.item-page-head > .item-variants[hidden] {
  display: flex;
  visibility: hidden;
}
.item-sales-panel {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 3;
  transition: margin-top 0.45s cubic-bezier(.4, 0, .2, 1),
              box-shadow 0.35s ease;
  view-transition-name: sales-panel;
}
body.sales-expanded .item-sales-panel {
  margin-top: calc(-1 * var(--sales-lift, 0px));
  box-shadow:
    0 -1px 0 rgba(255, 255, 255, 0.06) inset,
    0 -18px 48px rgba(0, 0, 0, 0.5);
}
body.sales-expanded .item-page-thumb {

  position: fixed;
  top: calc(var(--sidebar-gap) - 2px);
  left: calc(var(--sidebar-w) + var(--sidebar-gap) * 2 + 100px);
  width: var(--thumb-compact-size, 44px);
  height: var(--thumb-compact-size, 44px);
  align-self: start;
  background-color: var(--item-bg, #1a1c1f);
  border: 1px solid var(--glow, rgba(255, 255, 255, 0.14));
  border-radius: 0;
  box-shadow: none;
  z-index: 10;
}
body.sales-expanded .item-page-thumb::before,
body.sales-expanded .item-page-thumb::after { display: none; }
body.sales-expanded .item-page-hero-left .item-page-thumb {
  flex: 0 0 auto;
}

body.sales-expanded.mode-squarish .item-page-head { padding-left: 160px; }
body.sales-expanded .item-page-head {
  padding-left: 160px;

  min-height: var(--thumb-compact-size, 40px);
  align-items: center;
}
body.sales-expanded .attr-standalone-slot {
  opacity: 0;
  pointer-events: none;
}
body.sales-expanded .item-chart-panel,
body.sales-expanded .attr-chart-panel {
  opacity: 0;
  pointer-events: none;
}

body.sales-expanded .item-page-head > .item-variants {
  width: auto;
  flex: 0 0 auto;
  overflow: visible;
}
body.sales-expanded .item-variant-row--ext {
  border-radius: var(--radius-sm);
  box-shadow: none;
}

body.view-item .item-variant-row:not(.item-variant-row--ext) {
  transition: max-width 0.42s cubic-bezier(.4, 0, .2, 1),
              opacity 0.28s ease,
              padding 0.42s cubic-bezier(.4, 0, .2, 1);
}
body.sales-expanded .item-variant-row:not(.item-variant-row--ext) {
  max-width: 0;
  opacity: 0;
  padding-left: 0;
  padding-right: 0;
  overflow: hidden;
}

body.sales-expanded .item-page-head > .item-page-title {
  flex: 1 1 auto;
  min-width: 0;
  padding-bottom: 0;
  align-self: center;
}
body.sales-expanded .item-page-head > .item-page-title h1 {
  font-size: 15px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.sales-expanded .item-page-head > .item-page-title .panel-sub {
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.view-item .page { display: none; }
body.view-item .item-page { display: flex; }
body.view-item .live-toggle,
body.view-item .drawer-toggle,
body.view-item #drawer,
body.view-item .game-filters,
body.view-item .kpi-row { display: none; }
body.view-item .search-pill { display: none; }

body.view-attr .page { display: none; }
body.view-attr .item-page { display: flex; }
body.view-attr .live-toggle,
body.view-attr .drawer-toggle,
body.view-attr #drawer,
body.view-attr .game-filters,
body.view-attr .kpi-row,
body.view-attr .search-pill,
body.view-attr #item-variants { display: none !important; }

body.view-item .attr-stats { display: none !important; }
body.view-attr .attr-stats { display: flex; }
.attr-stats[hidden] { display: none !important; }
.attr-stats {
  flex-direction: row;
  gap: 2px;
  flex: 0 0 auto;
  align-items: center;
  padding: 4px;
  background: var(--panel);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.attr-stat-card {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px;
  border-radius: var(--radius-xs);
  white-space: nowrap;
}
.attr-stat-label {
  font-size: 11px;
  color: var(--text-muted);
}
.attr-stat-val {
  font-size: 11px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
body.view-attr .item-chart-panel { display: none; }
body.view-item .attr-chart-panel,
body.view-item .attr-standalone-slot { display: none; }
body.view-attr .attr-chart-panel { display: flex; flex-direction: column; }
body.view-attr .attr-standalone-slot { display: flex; }

body.view-attr .item-page-hero-left .item-page-thumb {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

body.view-attr.sales-expanded .item-page-hero-left .attr-standalone-slot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
}
body.view-attr .attr-standalone-row {
  border-radius: 0 0 var(--radius-xs) var(--radius-xs);
  border: 0;
}
body.view-attr .attr-standalone-row:hover,
body.view-attr .attr-standalone-row--empty:hover {
  border-color: transparent;
}
body.view-attr:not(.sales-expanded) .item-page-hero-left .item-page-thumb-img {

  height: 100%;
  bottom: 0;
}

.attr-chart-panel { display: none; }

.attr-standalone-slot {
  flex: 1 1 auto;
  display: flex;
  transition: opacity 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}
.attr-standalone-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.attr-standalone-row:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}
.attr-standalone-row:active { transform: translateY(0); }
.attr-standalone-thumb {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 6px;
  background: #1a1c1f center / contain no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.attr-standalone-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
  text-align: left;
}
.attr-standalone-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.attr-standalone-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.attr-standalone-meta {
  font-size: 12px;
  color: var(--text-muted);
}
.attr-standalone-chev {
  flex-shrink: 0;
  color: var(--text-dim);
  opacity: 0.7;
}
.attr-standalone-row--empty {
  cursor: default;
  opacity: 0.55;
}
.attr-standalone-row--empty:hover {
  border-color: rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  transform: none;
}
.attr-standalone-thumb--empty {
  background-image: none;
  background-color: #1a1c1f;
}
.attr-standalone-name--empty {
  font-weight: 500;
  font-style: italic;
  color: var(--text-muted);
}

.attr-chart-panel { padding: 0; border: 0; border-top-right-radius: 0; transition: opacity 0.35s ease; }
.attr-chart-panel:hover { border-color: transparent; }
.attr-chart-panel .panel-head { border-bottom: 0; }
.item-page-main .attr-chart-panel { flex: 1 1 auto; min-width: 0; min-height: 0; }
.attr-chart-panel .chart-wrap {
  position: relative;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
}
.attr-chart-panel .area-chart { width: 100%; height: 100%; }

.attr-chart-panel .chart-wrap .area-chart .attr-chart-stage {
  transition: opacity 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}
.attr-chart-panel .chart-wrap .area-chart .attr-chart-stage.fading {
  opacity: 0;
  pointer-events: none;
}
.attr-chart-line {
  fill: none;
  stroke: rgba(180, 210, 255, 0.95);
  stroke-width: 1.8;
  stroke-linejoin: round;
  stroke-linecap: round;
  pointer-events: none;
}
.attr-chart-area { pointer-events: none; }
.attr-chart-hover-dot {
  fill: #fff;
  stroke: rgba(180, 210, 255, 0.95);
  stroke-width: 1.5;
  pointer-events: none;
}
.attr-chart-guide {
  stroke: rgba(255, 255, 255, 0.35);
  stroke-dasharray: 3 3;
  stroke-width: 1;
  pointer-events: none;
}

body.view-attrs .page { display: none; }
body.view-attrs .attrs-page { display: flex; }
body.view-attrs .live-toggle,
body.view-attrs .drawer-toggle,
body.view-attrs #drawer,
body.view-attrs .game-filters,
body.view-attrs .kpi-row,
body.view-attrs #search-pill { display: none; }

.attrs-page {
  display: none;
  position: relative;
  z-index: 1;
  height: 100vh;
  overflow-y: auto;
  padding-left: calc(var(--sidebar-w) + var(--sidebar-gap) * 2);

  margin-right: var(--attrs-filter-w);
  padding-right: var(--sidebar-gap);
  padding-top: var(--sidebar-gap);
  padding-bottom: var(--sidebar-gap);
  flex-direction: column;
  gap: 0;
}

.attrs-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  min-height: 48px;
  padding: 0 4px;

  margin-bottom: 14px;
}
.attrs-page-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}
.attrs-page-head h1 {
  font-size: var(--font-h1);
  font-weight: 700;
  margin: 0;
  line-height: 1;
  color: var(--text);
}

.attrs-search-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: clamp(220px, 32vw, 360px);
  height: 36px;
  padding: 0 10px 0 12px;
  background: rgba(15, 15, 17, 0.6);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.2s, background 0.2s;
}
.attrs-search-pill:hover,
.attrs-search-pill:focus-within {
  border-color: var(--border-hover);
  background: rgba(20, 20, 23, 0.7);
}
.attrs-search-pill svg { color: var(--text-dim); flex-shrink: 0; }
.attrs-search-pill:focus-within svg { color: var(--text); }
.attrs-search-pill input {
  flex: 1;
  min-width: 0;
  height: 100%;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.attrs-search-pill input::placeholder { color: var(--text-dim); }
.attrs-search-clear {
  display: none;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 4px;
  color: var(--text-dim);
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.attrs-search-pill.has-value .attrs-search-clear { display: inline-flex; }
.attrs-search-clear:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}
.attrs-sort { display: flex; gap: 6px; justify-self: center; }
.attrs-sort-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 28px;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.attrs-sort-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--border-hover);
}
.attrs-sort-btn.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--border-hover);
}
.attrs-sort-reset { margin-left: 8px; }
.attrs-sort-reset:disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

.attrs-filter-drawer {
  display: flex;
  position: fixed;
  top: var(--sidebar-gap);
  right: 0;
  bottom: var(--sidebar-gap);
  width: var(--attrs-filter-w);
  z-index: 40;
  flex-direction: column;
  background: rgba(15, 15, 17, 0.88);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border: 1px solid var(--border);
  border-right: 0;
  border-radius: 14px 0 0 14px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    -16px 0 48px rgba(0, 0, 0, 0.45);
  overflow: hidden;

  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;

  transition: transform var(--dur-morph) var(--ease-glass), opacity 0.3s ease;
}
body.view-attrs .attrs-filter-drawer {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

body:not(.view-names) .names-filter-drawer {
  transform: translateX(100%) !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
body.view-attrs.attrs-filters-collapsed .attrs-filter-drawer {
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
}
body.view-attrs.attrs-filters-collapsed .attrs-page {
  margin-right: 0;
  padding-right: var(--content-pad);
}

@media (max-width: 1180px) and (min-width: 881px) {
  body.view-attrs .attrs-page {
    margin-right: 0;
    padding-right: var(--content-pad);
  }
  body.view-attrs .attrs-filter-drawer {

    width: var(--attrs-filter-w);
  }
}
.attrs-filter-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.attrs-filter-head h2 {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  color: var(--text);
  letter-spacing: -0.01em;
  justify-self: start;
}
.attrs-filter-collapse {
  justify-self: end;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  border-radius: 7px;
  transition: color 0.15s, background 0.15s;
}
.attrs-filter-collapse:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.attrs-filter-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

body:not(.attrs-has-game) .attrs-filter-drawer .attrs-filter-divider,
body:not(.attrs-has-game) .attrs-filter-drawer .attrs-filter-group:nth-of-type(2) {
  display: none;
}
.attrs-filter-group { display: flex; flex-direction: column; gap: 8px; }
.attrs-filter-group-title {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.attrs-filter-divider {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 4px 0;
  height: 0;
}
.attrs-filter-pills { display: flex; flex-direction: column; gap: 2px; }

.attrs-filter-games-row { flex-direction: row; gap: 6px; }
.attrs-filter-games-row .pill {
  flex: 1;
  width: auto !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 0 8px !important;
  min-width: 0;
}
.attrs-filter-games-row .pill span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.attrs-filter-games-row .game-mark {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(255,255,255,0.1), rgba(255,255,255,0.02));
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  flex-shrink: 0;
}
.attrs-filter-games-row .game-mark-img {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-color: rgba(255, 255, 255, 0.12);
}
.attrs-filter-games-row .game-mark-all { color: var(--text-dim); }
.attrs-filter-games-row .pill.active .game-mark-all,
.attrs-filter-games-row .pill:hover .game-mark-all { color: var(--text); }
.attrs-filter-drawer .pill,
.antiscam-filter-drawer .pill,
.mispriced-filter-drawer .pill {
  display: flex;
  width: 100%;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  height: 32px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: 0;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.attrs-filter-drawer .pill:hover,
.antiscam-filter-drawer .pill:hover,
.mispriced-filter-drawer .pill:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.attrs-filter-drawer .pill.active,
.antiscam-filter-drawer .pill.active,
.mispriced-filter-drawer .pill.active { color: var(--text); background: rgba(255, 255, 255, 0.08); }
.attrs-filter-drawer .pill em,
.antiscam-filter-drawer .pill em,
.mispriced-filter-drawer .pill em { margin-left: auto; padding-left: 8px; }
.attrs-filter-kinds { display: flex; flex-direction: column; gap: 10px; }
.attrs-filter-kind-section { display: flex; flex-direction: column; gap: 6px; }
.attrs-filter-sticker-facets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 6px 0 2px;
}
.attrs-filter-sticker-facets--single { grid-template-columns: 1fr; }
.attrs-filter-facet-col { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.attrs-filter-facet-col .pill { padding: 0 8px; gap: 6px; }

.variant-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25);
}

.attrs-filter-facets-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.25s ease, opacity 0.2s ease;
  opacity: 0;
}
.attrs-filter-facets-wrap.open {
  grid-template-rows: 1fr;
  opacity: 1;
}
.attrs-filter-facets-inner { min-height: 0; overflow: hidden; }

.attrs-filter-other-section { display: flex; flex-direction: column; gap: 2px; }
.attrs-filter-group-toggle { justify-content: space-between !important; }
.attrs-filter-chev {
  color: var(--text-muted);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.attrs-filter-group-toggle.open .attrs-filter-chev { transform: rotate(180deg); }
.attrs-filter-subhead {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.attrs-filter-toggle {
  display: none;
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 156px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03)),
    rgba(18, 18, 21, 0.92);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-right: 0;
  border-radius: 14px 0 0 14px;
  color: var(--text);
  z-index: 55;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    -4px 0 24px rgba(255, 255, 255, 0.05),
    -14px 0 40px rgba(0, 0, 0, 0.55);
  transition:
    color 0.2s,
    border-color var(--dur-morph) var(--ease-glass),
    right var(--dur-morph) var(--ease-glass);
}
.attrs-filter-toggle:hover {
  border-color: rgba(255, 255, 255, 0.3);
}
.attrs-filter-toggle span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
body.view-attrs.attrs-filters-collapsed .attrs-filter-toggle { display: flex; }

.attrs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 14px;
  padding: 4px 4px 24px;
  position: relative;
}

.attr-card { transition: opacity 0.35s ease; }
.attrs-grid.is-reloading > .attr-card {
  opacity: 0.4;
  pointer-events: none;
}

.attrs-grid.is-reloading > .loading-indicator--inline { display: none; }
.attrs-grid-overlay {

  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 100;
  transition: opacity 0.25s ease;
}
.attrs-grid-overlay.is-leaving { opacity: 0; }
.attrs-grid-overlay > .loading-indicator {
  background: transparent;
  padding: 12px 20px;
  color: rgba(255, 255, 255, 0.95);
  font-size: 13px;
  letter-spacing: 0.18em;
}

.collect-body,
.names-grid {
  transition: opacity 0.22s ease;
}
.collect-body.is-swapping,
.names-grid.is-swapping {
  opacity: 0;
}
.attr-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 12px 10px;
  background: rgba(16, 16, 18, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  cursor: pointer;
  animation: feed-in 0.4s ease-out;
  transition: transform 0.15s cubic-bezier(.4, 0, .2, 1),
              border-color 0.15s, background 0.15s;
}
.attr-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(22, 22, 26, 0.98);
}

.attr-card[data-tinted] {
  background:
    linear-gradient(color-mix(in srgb, var(--accent) 10%, transparent),
                    color-mix(in srgb, var(--accent) 10%, transparent)),
    rgba(16, 16, 18, 0.96);
}
.attr-card[data-tinted]:hover {
  background:
    linear-gradient(color-mix(in srgb, var(--accent) 16%, transparent),
                    color-mix(in srgb, var(--accent) 16%, transparent)),
    rgba(22, 22, 26, 0.98);
}
.attr-card[data-tinted] .attr-card-img {
  border-color: color-mix(in srgb, var(--accent) 70%, rgba(255, 255, 255, 0.06));
  background-color: color-mix(in srgb, var(--accent) 8%, rgba(255, 255, 255, 0.04));
}
.attr-card[data-tinted]:hover .attr-card-img {
  border-color: color-mix(in srgb, var(--accent) 90%, rgba(255, 255, 255, 0.06));
}
.attr-card-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 16px;
}
.attr-card-type {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.attr-card .game-mark {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(255,255,255,0.1), rgba(255,255,255,0.02));
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 600;
  font-family: var(--mono);
  color: var(--text-dim);
  flex-shrink: 0;
}
.attr-card .game-mark-img {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-color: rgba(255, 255, 255, 0.12);
}
.attr-card-img {
  position: relative;
  width: 144px;
  height: 144px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.attr-card-stats {
  font-size: 10.5px;
  color: var(--text-muted);
  font-family: var(--mono);
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.attr-card-img-price {
  position: absolute;
  top: 3px;
  left: 3px;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
  pointer-events: none;
  transition:
    opacity 0.38s cubic-bezier(.2, .65, .25, 1),
    transform 0.38s cubic-bezier(.2, .65, .25, 1);
}
.attr-card-img-price .attr-card-price {
  color: var(--text);
}
.attr-card-img-price .attr-card-price-tag {
  color: var(--text-dim);
  margin-right: 2px;
}
body.attrs-prices-off .attr-card-img-price {
  opacity: 0;
  transform: translateY(-4px);
}
.attr-card-found {
  color: var(--text-muted);
}
.attr-card-label {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  color: var(--text);
  text-align: center;
  line-height: 1.25;
  max-width: 100%;
  word-break: break-word;

  display: flex;
  flex-direction: column;
  gap: 1px;
}
.attr-card-label-lead {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-muted);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.attr-card-label-body {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.attr-card-label-body--solo { -webkit-line-clamp: 3; }
.attrs-empty { padding: 40px; text-align: center; color: var(--text-muted); }
.attrs-grid-loading {
  grid-column: 1 / -1;
  padding: 18px;
  text-align: center;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.feed-attr[data-appid][data-kind] { cursor: pointer; }

body.view-attr .item-sales-list {
  grid-template-columns:
    minmax(220px, 1.4fr)     
    minmax(max-content, 1fr) 
    minmax(max-content, 1fr) 
    minmax(max-content, 1fr) 
    minmax(max-content, 1fr) 
    minmax(max-content, 1fr) 
    minmax(max-content, 1fr) 
    auto;                    
}
.sale-row-attr > .sale-item {
  cursor: pointer;
  justify-content: flex-start;
  gap: 10px;
  padding: 0 14px;
  min-width: 0;
  overflow: hidden;
}
.sale-row-attr > .sale-item:hover .sale-item-thumb { border-color: rgba(255, 255, 255, 0.28); }

.sale-row-attr .sale-item-name {
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.25;
}
.sale-item-thumb {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.03) center / contain no-repeat;
  border: 1px solid var(--border);
}
.sale-item-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  overflow: hidden;
  text-align: left;
}
.sale-item-name {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.15s;
}
.sale-item-meta {
  font-size: 10.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.02em;
}

.item-back {
  position: absolute;
  top: var(--sidebar-gap);
  left: calc(var(--sidebar-w) + var(--sidebar-gap) * 2);
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  background: rgba(15, 15, 17, 0.45);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 500;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.item-back:hover {
  background: rgba(20, 20, 23, 0.7);
  color: var(--text);
  border-color: var(--border-hover);
}

.sale-attr-expires {
  color: #ff4040 !important;
  border-color: rgba(255, 64, 64, 0.35) !important;
}
.item-page-kpis {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 6px;
  flex: 0 0 auto;
  min-width: 0;
}
.item-kpi-tile {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  flex: 1 1 0;
  min-width: 0;
}
.item-kpi-label {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.item-kpi-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-variants {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;

  gap: 0;
  flex: 0 0 auto;
  justify-content: flex-start;
}

.item-variant-row {
  display: flex;
  position: relative;
  align-items: center;
  gap: 2px;
  padding: 4px;
  background: var(--panel);

  border: 0;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  box-sizing: border-box;

  box-shadow: 0 12px 0 0 var(--panel);
}

.item-variant-row:not(:last-child) {
  border-top-right-radius: 0;
}
.item-variant-row:not(:first-child) {
  border-top-left-radius: 0;
}

.item-variant-row:not(:last-child)::before {
  content: '';
  position: absolute;
  top: 6px;
  bottom: 6px;
  right: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.18);
  pointer-events: none;
}
.item-variant-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: brightness(1) contrast(1) saturate(1);
  -webkit-backdrop-filter: brightness(1) contrast(1) saturate(1);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.09) inset,
    0 -1px 0 rgba(0, 0, 0, 0.16) inset,
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 2px 8px rgba(0, 0, 0, 0.16);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
  transition:
    left 0.32s cubic-bezier(0.4, 0, 0.2, 1),
    top 0.32s cubic-bezier(0.4, 0, 0.2, 1),
    width 0.32s cubic-bezier(0.4, 0, 0.2, 1),
    height 0.32s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.18s ease;
}
.item-variant-row .pill {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  border-radius: var(--radius-xs);
  color: var(--text-muted);
  font-size: 12px;
  transition: color 0.22s ease, letter-spacing 0.36s cubic-bezier(0.4, 0, 0.2, 1);
}
.item-variant-row .pill:hover {
  color: var(--text);
  background: transparent;
  border-color: transparent;
}
.item-variant-row .pill.active {
  color: var(--text);
  background: transparent;
  border-color: transparent;
  letter-spacing: 0.02em;
}
.item-variant-row[data-axis="quality"] .pill { font-size: 11px; }

.item-variant-row[data-axis="quality"] .pill[style*="--q-color"] {
  color: var(--q-color);
}
.item-variant-row[data-axis="quality"] .pill[style*="--q-color"].active {
  color: var(--q-color);
}
.item-variant-count {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

.item-variant-row--lone {
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  background: transparent;
  border: 1.5px dashed rgba(255, 255, 255, 0.18);
}
.item-variant-lone-text {
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}
.item-variant-lone-name {
  font-size: 11px;
  font-weight: 500;
  color: var(--text);
}
.item-variant-lone-suffix {
  font-size: 10px;
  color: var(--text-dim);
  opacity: 0.7;
}
.item-variant-row--lone[data-axis="quality"] .item-variant-lone-name {
  color: var(--q-color, var(--text));
}

.item-variant-row--lone.item-variant-row--ext {
  justify-content: flex-start;
  height: auto;
  padding: 4px;
  background: var(--panel);
  border: 0;
}
.item-variant-steam {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px;
  border-radius: var(--radius-xs);
  color: var(--text-muted);
  font-size: 11px;
  text-decoration: none;
  transition: color 0.22s ease, background 0.22s ease;
  cursor: pointer;
}
.item-variant-steam:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}
.item-variant-steam svg {
  opacity: 0.7;
  transition: opacity 0.22s ease;
}
.item-variant-steam:hover svg {
  opacity: 1;
}

.item-page-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 330 / 192;
  justify-self: end;
  background-color: var(--panel);
  border-radius: var(--radius-xs);
  isolation: isolate;
  overflow: hidden;
  transition: width 0.45s cubic-bezier(.4, 0, .2, 1),
              height 0.45s cubic-bezier(.4, 0, .2, 1),
              background-color 1.1s ease,
              border-color 0.35s ease,
              box-shadow 0.55s ease;
}

.item-page-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
    380px circle at var(--mx, 82%) var(--my, 22%),
    color-mix(in srgb, var(--glow, transparent) 32%, transparent),
    color-mix(in srgb, var(--glow, transparent) 12%, transparent) 38%,
    transparent 72%
  );
  opacity: 0;
  pointer-events: none;
}
.item-page-thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  opacity: 1;
  transition: opacity 0.55s ease, filter 0.35s ease;
}

.item-page-thumb-noimg {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: clamp(12px, 1.1vw, 15px);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-faint);
  pointer-events: none;
}
.item-page-thumb.no-image .item-page-thumb-img { opacity: 0; }
.item-page-thumb.no-image .item-page-thumb-noimg { display: flex; }

@keyframes silhouette-pulse {
  0%, 100% { filter: brightness(0) opacity(0.35); }
  50%      { filter: brightness(0) opacity(0.7); }
}
.item-page-thumb-img.loading-silhouette {
  animation: silhouette-pulse 1.4s ease-in-out infinite;
}

.item-page-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(
    240px circle at var(--mx, 50%) var(--my, 50%),
    color-mix(in srgb, var(--glow, transparent) 80%, transparent),
    transparent 65%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.item-page-thumb[data-ready]::before { opacity: 1; }
.item-page-thumb[data-glowing][data-ready]::after { opacity: 1; }

.item-page-thumb[data-tinted] {
  background-color: color-mix(in srgb, var(--glow) 14%, var(--item-bg, #1a1c1f));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--glow) 55%, transparent);
}

.item-page-thumb:not([data-ready]) { box-shadow: none; }

.item-page-thumb:not([data-ready]) .item-page-thumb-img,
.item-page-thumb:not([data-ready]) .gem-mask { opacity: 0; }
.gem-mask { transition: opacity 0.55s ease; }

body.item-kind-emoji .item-page-thumb-img {
  width: auto;
  height: auto;
  max-width: 96px;
  max-height: 96px;
  margin: auto;
  cursor: pointer;
}

.item-page-thumb.emoji-event-active {
  background-color: color-mix(in srgb, var(--emoji-fill, transparent) 38%, var(--item-bg, #1a1c1f));
}
#emoji-event-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}
.emoji-particle {
  position: absolute;
  top: 0;
  left: 0;
  width: 28px;
  height: 28px;
  will-change: transform;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.45));
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.item-chart-panel {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  transition: opacity 0.35s ease;
  background: var(--panel);
  border: none;

  border-radius: 0 0 var(--radius-xs) var(--radius-xs);
  position: relative;
}
.item-chart-panel > .panel-head {
  border-bottom: none;
  padding: 12px 16px;
  justify-content: center;
}
.item-chart-panel > .panel-head .panel-head-title {
  transform: translateY(10px);
}
.item-chart-panel > .panel-head + .chart-wrap {
  padding-top: 2px;
  padding-bottom: 14px;
}

.item-chart-panel .ts-controls {
  margin: -12px -16px -12px 0;
  align-self: stretch;
  display: flex;
  align-items: stretch;
}
.item-chart-panel .ts-range-pills {
  gap: 0;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: hidden;
}
.item-chart-panel .ts-range-pills .range-pill {
  border-radius: 0;
  background: color-mix(in srgb, var(--panel) 82%, #000);
  padding: 0 14px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.5);
  border-right: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.18s ease, color 0.18s ease;
}
.item-chart-panel .ts-range-pills .range-pill:last-of-type { border-right: none; }
.item-chart-panel .ts-range-pills .range-pill:hover {
  background: color-mix(in srgb, var(--panel) 92%, #000);
  color: var(--text);
}
.item-chart-panel .ts-range-pills .range-pill.active {
  background: var(--panel);
  color: var(--text);
}
.item-chart-panel .ts-range-pills .range-pill-thumb { display: none; }
.item-chart-panel .chart-wrap {
  flex: 1 1 auto;
  min-height: 0;
}

.item-currency-panel { display: none !important; }
.item-currency-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.currency-tree-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  padding: 0 2px 4px;
  border-bottom: 1px solid var(--border);
}
.currency-tree-head-l { text-align: right; }
.currency-tree-head-c { min-width: 48px; }
.currency-tree-head-r { text-align: left; }
.currency-tree {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  gap: 2px;
  overflow: hidden;
}
.ct-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  min-height: 0;
}
.ct-left, .ct-right {
  display: grid;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.ct-left { grid-template-columns: auto minmax(0, 1fr); }
.ct-right { grid-template-columns: minmax(0, 1fr) auto; }
.ct-count {
  font-size: 10.5px;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ct-bar-wrap {
  height: 12px;
  min-width: 0;
  display: flex;
  align-items: center;
}
.ct-left .ct-bar-wrap { justify-content: flex-end; }
.ct-right .ct-bar-wrap { justify-content: flex-start; }
.ct-bar {
  height: 100%;
  border-radius: 2px;
  min-width: 1px;
  transition: filter 0.18s ease;
}
.ct-left .ct-bar { background: rgba(120, 170, 220, 0.62); }
.ct-right .ct-bar { background: rgba(210, 175, 130, 0.55); }
.ct-row:hover .ct-bar { filter: brightness(1.25); }
.ct-code {
  min-width: 48px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.item-chart-placeholder {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  min-height: 180px;
}
.item-chart-placeholder svg {
  position: absolute;
  inset: 20px;
  width: calc(100% - 40px);
  height: calc(100% - 40px);
}
.item-chart-placeholder-label {
  position: relative;
  color: var(--text-dim);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.item-sales-list {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  display: grid;
  grid-template-columns:
    minmax(max-content, 1fr)   
    minmax(max-content, 1fr)   
    minmax(max-content, 1fr)   
    minmax(max-content, 1fr)   
    minmax(max-content, 1fr)   
    minmax(max-content, 1fr)   
    auto;                      
  align-content: start;
}

.item-sales-panel > .panel-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.item-sales-panel > .panel-head > .item-sales-head-left { justify-self: start; }
.item-sales-panel > .panel-head > .item-sales-csv-wrap { justify-self: center; margin: 0; }
.item-sales-panel > .panel-head > .sales-expand-handle { justify-self: end; }
.item-sales-head-left {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}
.item-sales-head-left h2 { margin: 0; }
.item-sales-count,
.item-sales-loaded {
  font-size: 11.5px;
  color: var(--text-dim);
  font-weight: 400;
}
.item-sales-csv-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto;
}
.item-sales-csv-btn {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  height: 26px;
  background: transparent;
  border: 0;
  border-radius: var(--radius-xs);
  color: var(--text-dim);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.item-sales-csv-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}
.item-sales-csv-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.item-sales-csv-btn svg { color: inherit; flex-shrink: 0; }
.sales-expand-handle {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}
.sales-expand-handle:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--text);
}
.sales-expand-chev {
  color: currentColor;
  transition: transform 0.3s ease;
}
body.sales-expanded .sales-expand-handle {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.32);
  color: var(--text);
}
body.sales-expanded .sales-expand-handle:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.42);
}
body.sales-expanded .sales-expand-chev { transform: rotate(180deg); }
.sale-row {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
  gap: 0;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 12px;
  color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
  white-space: nowrap;
}
.sale-row:hover { background: rgba(255, 255, 255, 0.02); }

.sales-spacer {
  grid-column: 1 / -1;
  pointer-events: none;
}
.sale-row > span,
.sale-row > a {
  padding: 0 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
.sale-row > :first-child { border-left: 0; }
.sale-time { color: var(--text); }
.sale-listing {
  color: var(--text-dim);
  font-size: 11px;
  gap: 6px;
}
.sale-listing-id { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.sale-listing-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  padding: 0;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.02);
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.sale-listing-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
}
.sale-asset {
  color: var(--text-dim);
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.sale-asset-before,
.sale-asset-after {
  display: inline-flex;
  align-items: baseline;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.sale-asset-before { justify-content: flex-end; min-width: var(--sale-asset-l, 0); }
.sale-asset-after { color: var(--text); justify-content: flex-start; min-width: var(--sale-asset-r, 0); }
.sale-asset-arrow { color: rgba(255, 255, 255, 0.25); flex-shrink: 0; }
.sale-cur {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  overflow: hidden;
}
.sale-cur-side {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  min-width: 0;
}
.sale-cur-side:first-child { justify-content: flex-end; min-width: var(--sale-cur-l, 0); }
.sale-cur-side:last-child { justify-content: flex-start; min-width: var(--sale-cur-r, 0); }
.sale-cur-code {
  color: var(--text-dim);
  font-size: 11px;
  letter-spacing: 0.02em;
}
.sale-cur-side:last-child .sale-cur-code { color: var(--text); }
.sale-cur-amt {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.sale-cur-side:first-child .sale-cur-amt { color: var(--text-dim); }
.sale-native-approx {
  color: rgba(255, 255, 255, 0.3);
  margin-right: 1px;
}
.sale-price {
  color: var(--text);
  font-weight: 600;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.sale-attrs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 10px;
  overflow: visible;
  white-space: normal;
}
.sale-attr {
  flex-shrink: 0;
  padding: 0;
  max-width: 100%;
}
.sale-attr-text {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 3px;
  white-space: normal;
  word-break: break-word;
  line-height: 1.3;
  font-size: 11px;
  font-weight: 500;
}
.sale-attr-text .sale-attr-sym {
  flex-shrink: 0;
  opacity: 0.85;
  font-size: 12px;
  line-height: 1;
}
.sale-attr-text .sale-attr-label { min-width: 0; }
.sale-attr-unusual {
  color: #ffd700;
  background: rgba(255, 215, 0, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.28);
}
.sale-attr-paint {
  color: #c8b48a;
  background: rgba(200, 180, 138, 0.07);
  border: 1px solid rgba(200, 180, 138, 0.25);
}
.sale-attr .feed-attr-name { display: none; }
.sale-attr .feed-attr-img {
  width: 22px;
  height: 22px;
  border-radius: 3px;
  transition: transform 0.2s cubic-bezier(.4, 0, .2, 1),
              box-shadow 0.2s cubic-bezier(.4, 0, .2, 1);
  transform-origin: center;
}
.sale-attr[data-image]:hover .feed-attr-img {
  transform: scale(1.8);
  z-index: 20;
  position: relative;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.55);
}
.sale-attr.feed-attr-more {
  padding: 2px 6px;
  font-size: 10.5px;
}
.sale-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.02);
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.sale-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
}
.sale-row-loading {

  grid-column: 1 / -1;
}

@media (max-width: 1180px) {
  .grid-row, .row-sub {
    grid-template-columns: 1fr;
    grid-auto-rows: minmax(var(--panel-min-h), auto);
  }
  .page { height: auto; min-height: 100vh; overflow: visible; }

  body.view-game .page,
  body.view-feed .page { height: 100vh; overflow: hidden; }
}

@media (max-width: 1180px) {
  body.view-dashboard .row-main {
    grid-template-columns: 1fr;
    grid-auto-rows: minmax(320px, 1fr);
    flex: 0 0 auto;
  }
  body.view-dashboard .row-main .panel-feed,
  body.view-dashboard .row-main .panel-trending {
    height: 44vh;
    min-height: 320px;
  }
}

@media (max-width: 1280px) and (min-width: 1081px) {

  body.view-game.drawer-open:not(.game-drawer-overlay) {
    --tstat-spark-w: 84px;
    --tstat-count-w: 60px;
    --tstat-total-w: 96px;
    --tstat-avg-w: 84px;
  }
  body.view-game.drawer-open:not(.game-drawer-overlay) .trending-row--stats,
  body.view-game.drawer-open:not(.game-drawer-overlay) .trending-sort-row {
    column-gap: clamp(8px, 1.2vw, 16px);
  }
}

@media (max-width: 1180px) and (min-width: 1081px) {
  body.view-game .trending-row--stats,
  body.view-game .trending-sort-row {
    grid-template-columns:
      44px
      clamp(180px, 24vw, 280px)
      var(--tstat-spark-w, 104px)
      var(--tstat-count-w, 72px)
      var(--tstat-total-w, 120px)
      var(--tstat-avg-w, 104px)
      minmax(28px, 1fr);
  }
}
@media (max-width: 880px) {
  :root {
    --drawer-w: 100vw;
    --attrs-filter-w: 100vw;
  }
  
  body.view-feed,
  body.view-game { --drawer-w: 100vw; }

  body.view-items.mode-mobile { --attrs-filter-w: 100vw; }
  .side-nav {
    top: auto;
    bottom: 12px;
    left: 12px;
    right: 12px;
    width: auto;
  }
  .side-shell {
    flex-direction: row;
    align-items: center;
    padding: 8px 10px;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;

    background: rgba(15, 15, 17, 0.9);
  }
  .logo { margin-bottom: 0; flex-shrink: 0; }
  .logo-text { display: none; }
  .nav-group { flex-direction: row; gap: 2px; flex-shrink: 0; }

  .nav-link { padding: 0 10px; height: 32px; font-size: 0; gap: 0; }
  .nav-link svg { width: 18px; height: 18px; }
  .nav-link.active,
  body.view-dashboard .nav-link[data-view="dashboard"],
  body.view-feed      .nav-link[data-view="feed"],
  body.view-items     .nav-link[data-view="items"],
  body.view-attrs     .nav-link[data-view="attrs"],
  body.view-attr      .nav-link[data-view="attrs"],
  body.view-collect   .nav-link[data-view="collect"],
  body.view-antiscam  .nav-link[data-view="suspects"],
  body.view-mispriced .nav-link[data-view="suspects"],
  body.view-names     .nav-link[data-view="names"] {
    font-size: 12.5px;
    gap: 8px;
    padding: 0 12px;
  }

  .nav-game { grid-template-columns: 22px; gap: 0; padding: 0 6px; }
  .nav-game .game-name,
  .nav-game .game-count { display: none; }
  .nav-game.active {
    grid-template-columns: 22px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 0 10px;
  }
  .nav-game.active .game-name,
  .nav-game.active .game-count { display: inline; }

  .nav-divider {
    padding: 0 6px;
    flex-shrink: 0;
  }
  .nav-divider > span { display: none; }
  .nav-divider::after {
    width: 1px;
    height: 18px;
    flex: 0 0 1px;
  }
  .side-foot { display: none; }

  .status-gap-range { white-space: normal; }
  .status-gap-range-line { display: block; }

  .search-pill {
    left: 12px;
    right: 12px;
    top: 12px;
    width: auto;
  }
  .search-pill kbd { display: none; }

  .live-toggle { display: none; }
  .live-toggle-stack { display: none; }
  body.view-dashboard .live-toggle,
  body.view-feed .live-toggle { display: inline-flex; }
  body.view-dashboard .live-toggle-stack,
  body.view-feed .live-toggle-stack { display: flex; }

  .page {
    padding-left: 16px;
    padding-right: 16px;
    padding-top: 68px;
    padding-bottom: 90px;
  }

  .kpi-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 280px;
  }
  .kpi-card { padding: 12px 14px; }
  .kpi-value { font-size: 20px; }

  body.view-dashboard .game-filters {
    display: flex;
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 8px;
    max-height: 140px;

    min-width: 0;
  }
  body.view-dashboard .game-filters > .search-pill {
    width: 100%;
  }
  body.view-dashboard .game-filter-group,
  body.view-feed .game-filter-group {
    flex-wrap: nowrap;

    justify-content: space-between;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;

    min-width: 0;

    width: 100%;
  }
  body.view-dashboard .game-filter-group::-webkit-scrollbar,
  body.view-feed .game-filter-group::-webkit-scrollbar { display: none; }

  body.view-dashboard .game-filter-group .pill,
  body.view-feed .game-filter-group .pill { flex-shrink: 0; }
  body.view-dashboard .game-filter-group .pill em,
  body.view-feed .game-filter-group .pill em {
    opacity: 0;
    max-width: 0;
    margin-left: 0;
  }
  body.view-dashboard .game-name-long,
  body.view-feed .game-name-long {
    opacity: 0;
    max-width: 0;
  }
  body.view-dashboard .game-name-short,
  body.view-feed .game-name-short {
    opacity: 1;
    max-width: 80px;
  }
  .detail-grid { grid-template-columns: repeat(2, 1fr); }
  .donut-wrap { grid-template-columns: 1fr; justify-items: center; }
  .feed-row { grid-template-columns: 40px minmax(0, 1fr) auto; padding: 10px 12px; gap: 10px; }
  .feed-tag { display: none; }

  .drawer,
  .attrs-filter-drawer,
  .items-filter-drawer,
  .antiscam-filter-drawer,
  .mispriced-filter-drawer {
    top: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    max-width: 100vw;
    border: 0;
    border-radius: 0;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.6);

    background: rgba(15, 15, 17, 0.82);
    backdrop-filter: blur(30px) saturate(160%);
    -webkit-backdrop-filter: blur(30px) saturate(160%);
    z-index: 90;
  }

  body.view-attrs .attrs-filter-drawer,
  body.view-items .items-filter-drawer,
  body.view-antiscam .antiscam-filter-drawer,
  body.view-mispriced .mispriced-filter-drawer,
  body.view-names .names-filter-drawer {
    transform: translateX(100%);
    opacity: 1;
    pointer-events: none;
  }
  body.view-attrs.drawer-open .attrs-filter-drawer,
  body.view-items.drawer-open .items-filter-drawer,
  body.view-antiscam.drawer-open .antiscam-filter-drawer,
  body.view-mispriced.drawer-open .mispriced-filter-drawer,
  body.view-names.drawer-open .names-filter-drawer {
    transform: translateX(0);
    pointer-events: auto;
  }

  body.view-names .drawer-toggle { display: none !important; }

  .drawer-toggle {
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 40px;
    height: 112px;
    padding: 0;
    border-radius: 12px 0 0 12px;
    flex-direction: column;
    gap: 8px;

    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid var(--border-strong);
    border-right: 0;
    box-shadow: -4px 0 18px rgba(0, 0, 0, 0.35);
    z-index: 95;
    transition:
      color 0.2s,
      background 0.25s ease,
      border-color 0.25s ease,
      opacity 0.2s ease,
      visibility 0s linear 0s;
  }

  .drawer-toggle-text { display: block; font-size: 9.5px; letter-spacing: 0.16em; }
  .drawer-toggle svg { width: 16px; height: 16px; }

  body.view-dashboard .drawer-toggle,
  body.view-game .drawer-toggle,
  body.view-items .drawer-toggle,
  body.view-attrs .drawer-toggle,
  body.view-antiscam .drawer-toggle,
  body.view-mispriced .drawer-toggle {
    display: flex;
    right: 0;
    pointer-events: auto;
    visibility: visible;
    opacity: 1;
  }
  
  body.view-item .drawer-toggle,
  body.view-attr .drawer-toggle,
  body.view-collect .drawer-toggle { display: none; }

  body.drawer-open .drawer-toggle {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  body.drawer-open .search-pill,
  body.view-feed .search-pill,
  body.view-items .search-pill,
  body.view-attrs .search-pill,
  body.view-antiscam .search-pill,
  body.view-mispriced .search-pill {
    left: 12px;
    right: 68px;
    width: auto;
  }

  .attrs-filter-collapse,
  .attrs-filter-toggle { display: none !important; }

  body.view-feed .page,
  body.view-feed.drawer-open .page,
  body.view-game .page {
    padding-right: 16px;
  }

  body.view-feed .panel-feed > .panel-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 8px;
    padding: 12px 14px;
    
    min-height: 0;
  }

  body.view-feed .panel-feed > .panel-head > .panel-head-title {
    grid-column: 1;
    grid-row: 1;
    opacity: 0;
    max-height: 32px;
    pointer-events: none;
  }

  body.view-feed .panel-feed > .panel-head > .feed-page-link {
    display: none;
  }

  body.view-feed .panel-feed > .panel-head .live-toggle {
    gap: 6px;
    padding-left: 0;
    padding-right: 0;
  }

  body.view-feed .panel-feed > .panel-head .live-pulse {
    opacity: 0;
    width: 0;
  }

  body.view-feed .panel-feed > .panel-head .live-toggle-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.01em;
  }
  body.view-feed .panel-feed > .panel-head .live-toggle-state {
    opacity: 0;
    max-width: 0;
    min-width: 0;
  }

  body.view-feed .panel-feed > .panel-head > .live-toggle-stack {
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
  }
  body.view-feed .panel-feed > .panel-head > .feed-head-price {
    position: static;
    transform: none;
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  body.view-feed .feed-head-price .feed-price-pills { gap: 1px; }
  body.view-feed .feed-head-price .feed-price-pill {
    padding: 6px 4px;
  }
  .items-page,
  .attrs-page,
  .antiscam-page,
  .mispriced-page {
    padding-left: 16px;
    padding-right: 16px;
    padding-top: 68px;
    padding-bottom: 90px;
  }

  .items-page,
  .attrs-page { margin-right: 0; }

  body.view-items .items-page,
  body.view-antiscam .antiscam-page,
  body.view-mispriced .mispriced-page {
    padding-left: 16px;
    padding-right: 16px;
    padding-top: 16px;
    padding-bottom: 90px;
    margin-right: 0;
  }

  .attrs-page { padding-top: 16px; }

  .names-page {
    padding-left: 16px;
    padding-right: 16px;
    padding-top: 68px;
    padding-bottom: 90px;
  }
  .collect-page {
    padding: 16px 16px 90px;
  }

  body.view-antiscam .suspects-head,
  body.view-mispriced .suspects-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 12px;
  }

  body.view-antiscam .suspects-mode-btn,
  body.view-mispriced .suspects-mode-btn { font-size: 12.5px; padding: 2px 5px; }
  body.view-antiscam .suspects-mode-sep,
  body.view-mispriced .suspects-mode-sep { height: 15px; margin: 0 1px; }
  body.view-antiscam .suspects-sort-switch,
  body.view-mispriced .suspects-sort-switch { gap: 1px; }
  body.view-antiscam .suspects-sort-btn,
  body.view-mispriced .suspects-sort-btn { padding: 0 5px; font-size: 10px; }

  body.view-antiscam .suspects-head-right,
  body.view-mispriced .suspects-head-right {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 6;

    width: 100%;
    box-sizing: border-box;
    min-width: 0;
    padding: 7px 12px;
    background: rgba(15, 15, 17, 0.82);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    backdrop-filter: blur(24px) saturate(160%);
    border-top: 1px solid var(--border);
    border-radius: 0 0 var(--radius) var(--radius);
  }
  
  body.view-antiscam .suspects-head-right:has(.day-nav[aria-hidden="true"]),
  body.view-mispriced .suspects-head-right:has(.day-nav[aria-hidden="true"]) {
    display: none;
  }

  body.view-antiscam .suspects-head-right .day-nav,
  body.view-mispriced .suspects-head-right .day-nav {
    width: 100%;
    align-items: center;
    gap: 6px;
  }
  body.view-antiscam .suspects-head-right .day-nav-current,
  body.view-mispriced .suspects-head-right .day-nav-current { display: contents; }
  body.view-antiscam .suspects-head-right .day-nav-meta,
  body.view-mispriced .suspects-head-right .day-nav-meta {
    order: -1;
    margin: 0 auto 0 2px;
    font-size: 12.5px;
    color: var(--text-muted);
  }
  body.view-antiscam .suspects-head-right .day-nav-date,
  body.view-mispriced .suspects-head-right .day-nav-date { font-size: 13px; }

  body.view-antiscam .suspects-body,
  body.view-mispriced .suspects-body { padding-bottom: 60px; }

  body.view-antiscam .suspects-subbar-day,
  body.view-mispriced .suspects-subbar-day {
    left: auto;
    right: 14px;
    transform: translateY(-50%);
  }
  body.view-antiscam .suspects-subbar-loading,
  body.view-mispriced .suspects-subbar-loading { left: 14px; }

  body.view-antiscam.antiscam-drawer-overlay .antiscam-to-top,
  body.view-mispriced.antiscam-drawer-overlay .mispriced-to-top {
    bottom: 150px;
    right: 20px;
  }

  .drawer-head,
  .attrs-filter-head,
  .items-filter-head,
  .antiscam-filter-head,
  .mispriced-filter-head {
    padding: 12px 16px;
    min-height: 56px;
  }
  .drawer-head { height: auto; }
  .attrs-filter-body,
  .items-filter-drawer .attrs-filter-body,
  .antiscam-filter-drawer .attrs-filter-body,
  .mispriced-filter-drawer .attrs-filter-body { padding: 14px 16px; }

  .item-page {
    padding-left: 16px;
    padding-right: 16px;

    padding-top: 16px;
    padding-bottom: 90px;
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }
  .item-page-hero {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .item-page-hero-left {
    height: auto;
  }
  .item-page-hero-left .item-page-thumb {
    flex: 0 0 auto;
    aspect-ratio: 16 / 9;
    max-height: 240px;
  }

  .item-back {
    top: 16px;
    left: 16px;
    height: 36px;
    width: 36px;
    padding: 0;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  
  .item-back > span { display: none; }
  .item-page-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 10px;
    row-gap: 10px;

    padding-left: 0;
    min-height: 44px;
  }
  .item-page-head > .item-page-title { margin-left: 62px; }

  .item-page-head .item-variant-steam { display: none; }
  .item-page-head > .item-page-title {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    padding-bottom: 0;
  }
  .item-page-head > .item-page-steam {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    grid-column: 2;
    grid-row: 1;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-dim);
  }
  .item-page-head > .item-page-steam:hover { color: var(--text); }
  .item-page-head > .item-variants,
  .item-page-head > .attr-stats {
    grid-column: 1 / -1;
    grid-row: 2;
    min-width: 0;
  }

  .item-page-head > .item-variants {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
  }
  .item-page-head > .item-variants::-webkit-scrollbar { display: none; }
  .item-variants .item-variant-row {
    display: inline-flex;
    flex: 0 0 auto;
    flex-wrap: nowrap;

    border-radius: var(--radius-sm);
    box-shadow: none;
  }
  .item-variants .item-variant-row::before { display: none; }

  .item-variants .item-variant-row--ext { display: none; }

  .item-page { position: relative; }
  body.sales-expanded .item-page-hero {
    height: 0;
    min-height: 0;
    gap: 0;
    overflow: visible;
  }
  body.sales-expanded .item-page-hero .item-page-main { display: none; }
  body.sales-expanded .attr-standalone-slot { display: none; }

  body.sales-expanded .item-page-hero-left { position: static; height: 0; }
  body.sales-expanded .item-page-thumb {
    position: absolute;
    top: 12px;
    left: 98px;
    width: 44px;
    height: 44px;
    max-height: none;
    border-radius: 10px;
  }
  body.sales-expanded .item-page-head {
    min-height: 44px;

    padding-left: 0;
  }
  
  body.sales-expanded .item-page-head > .item-page-title { margin-left: 152px; }

  body.sales-expanded .item-page-head > .item-variants { display: none; }
  body.sales-expanded .item-sales-panel { margin-top: 0; }

  .item-sales-panel > .panel-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    min-height: 0;
  }
  .item-sales-panel > .panel-head h2 { white-space: nowrap; }
  .item-sales-panel > .panel-head > .item-sales-head-left {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
  }
  .item-sales-panel > .panel-head > .item-sales-csv-wrap {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: flex-start;
  }
  .item-sales-csv-btn span { display: none; }
  .item-sales-loaded { display: none; }
  .item-sales-panel > .panel-head > .sales-expand-handle { flex: 0 0 auto; }

  body.view-game .panel-trending > .panel-head {
    min-height: 0;
    padding: 10px 14px;
    gap: 8px;
  }

  .item-kpi-row { gap: 8px; }
  .item-kpi-tile { padding: 10px 12px; }
}

body.view-items { --attrs-filter-w: 386px; }

body.view-items .page { display: none; }
body.view-items .items-page { display: flex; }
body.view-items .live-toggle,
body.view-items #drawer,
body.view-items .game-filters,
body.view-items .kpi-row,
body.view-items #search-pill { display: none; }

.items-page {
  display: none;
  position: relative;
  z-index: 1;
  height: 100vh;
  overflow-y: auto;
  padding-left: calc(var(--sidebar-w) + var(--sidebar-gap) * 2);

  margin-right: 0;
  padding-right: var(--sidebar-gap);
  padding-top: var(--sidebar-gap);
  padding-bottom: var(--sidebar-gap);
  flex-direction: column;
  gap: 0;
  transition: margin-right 0.3s cubic-bezier(.4, 0, .2, 1);
}

body.view-items.drawer-open .items-page { margin-right: var(--attrs-filter-w); }

body.items-drawer-overlay.view-items.drawer-open .items-page { margin-right: 0; }

.items-frame { display: contents; }

.items-filter-close,
.antiscam-filter-close,
.attrs-filter-close {
  display: none;            
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  background: transparent;
  border: 0;                
  border-radius: 8px;
  color: var(--text-muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.15s, background 0.15s;
}

.attrs-filter-close { justify-self: end; }
.items-filter-close:hover,
.antiscam-filter-close:hover,
.attrs-filter-close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

body.items-drawer-overlay.view-items .items-filter-close,
body.antiscam-drawer-overlay.view-antiscam .antiscam-filter-close,
body.antiscam-drawer-overlay.view-mispriced .antiscam-filter-close,
body.attrs-filters-collapsed.view-attrs .attrs-filter-close {
  display: inline-flex;
}
.items-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  min-height: 48px;
  padding: 0 4px;
  margin-bottom: 14px;
}
.items-page-head h1 {
  font-size: var(--font-h1);
  font-weight: 700;
  margin: 0;
  line-height: 1;
  color: var(--text);
}
.items-page-head .panel-sub { margin: 4px 0 0; }

.items-filter-drawer {
  display: flex;
  position: fixed;
  top: var(--sidebar-gap);
  right: 0;
  bottom: var(--sidebar-gap);
  width: var(--attrs-filter-w);
  z-index: 40;
  flex-direction: column;
  background: rgba(15, 15, 17, 0.88);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border: 1px solid var(--border);
  border-right: 0;
  border-radius: 14px 0 0 14px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    -16px 0 48px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;

  transition: transform var(--dur-morph) var(--ease-glass), opacity 0.3s ease;
}

body.view-items.drawer-open .items-filter-drawer {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

body:not(.view-items) .items-filter-drawer,
body:not(.view-antiscam) .antiscam-filter-drawer,
body:not(.view-mispriced) .mispriced-filter-drawer { display: none; }
.items-filter-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.items-filter-head h2 {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  color: var(--text);
  letter-spacing: -0.01em;
  justify-self: start;
}
.items-sort { display: flex; gap: 6px; justify-self: end; align-items: center; }
.items-head-sort {
  display: inline-flex;
  align-items: center;
  gap: clamp(2px, 0.3vw, 6px);
  height: 40px;
  flex-wrap: nowrap;
}
.items-sort-label {
  font-family: var(--mono);
  font-size: clamp(10px, 0.75vw, 13px);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-right: 6px;
  flex-shrink: 0;
}
.items-sort-sep {
  display: inline-block;
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1;
  user-select: none;
  flex-shrink: 0;
}
.items-sort-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 clamp(8px, 0.9vw, 14px);
  font-family: 'Inter', sans-serif;
  font-size: clamp(11px, 0.85vw, 13px);
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: 0;
  border-radius: var(--radius-xs);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.15s, background 0.15s;
}
.items-sort-pill:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.items-sort-pill.active { color: var(--text); background: rgba(255, 255, 255, 0.08); }

.items-filter-drawer .attrs-filter-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.items-filter-drawer .pill {
  display: flex;
  width: 100%;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  height: 32px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: 0;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.items-filter-drawer .pill:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.items-filter-drawer .pill.active { color: var(--text); background: rgba(255, 255, 255, 0.08); }

.items-filter-drawer .pill:not(.cs2-filter-type-pill) em { margin-left: auto; padding-left: 8px; }

body:not(.items-has-kinds) .items-filter-drawer .attrs-filter-divider,
body:not(.items-has-kinds) .items-filter-drawer .attrs-filter-group:has(#items-filter-kinds) {
  display: none;
}

.items-type-filter-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: hidden;
}
.items-type-filter-block[hidden] { display: none; }
.items-type-filter-block.cs2-filter-block-empty {
  background: transparent;
  border: 0;
  padding: 0;
  align-items: stretch;
  justify-content: flex-start;
}

body:not(.items-has-kinds) #items-filter-type-divider,
body:not(.items-has-kinds) #items-filter-type-group { display: none; }

.items-filter-mode-toggle {
  display: flex;
  gap: 6px;
}
.items-filter-mode-toggle[hidden] { display: none; }
.items-filter-mode-toggle .pill {
  flex: 1 1 0;
  justify-content: center;
  text-align: center;
}

.attrs-filter-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 22px;
}
.attrs-filter-group-head > .attrs-filter-group-title {
  margin: 0;
}

.items-antiscam-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s;
}
.items-antiscam-toggle[hidden] { display: none; }
.items-antiscam-toggle:hover { color: var(--text); }
.items-antiscam-toggle.is-on { color: var(--text); }
.items-antiscam-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.items-antiscam-toggle .live-switch {
  position: relative;
  flex: 0 0 auto;
  width: 28px;
  height: 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  transition: background 0.2s, border-color 0.2s;
}
.items-antiscam-toggle .live-switch-dot {
  position: absolute;
  top: 1px;
  left: 1px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text-faint);
  transition: transform 0.2s, background 0.32s ease;
}
.items-antiscam-toggle input:checked ~ .live-switch .live-switch-dot {
  transform: translateX(12px);
  background: var(--success);
}
.items-antiscam-toggle input:focus-visible ~ .live-switch {
  outline: 2px solid rgba(110, 180, 255, 0.6);
  outline-offset: 2px;
}
.items-antiscam-toggle-label { white-space: nowrap; }

.cs2-filter-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: height 0.35s cubic-bezier(.4, 0, .2, 1);
}
.cs2-filter-block[hidden] { display: none; }

.cs2-filter-block.cs2-filter-block-empty {
  background: transparent;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  padding: 18px 16px;
  align-items: center;
  justify-content: center;
}
.cs2-filter-empty {
  font-size: 12px;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.4;
}

.steam-filter-game-row {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
  gap: 10px;
}
.steam-filter-game-cell,
.steam-filter-appid-cell {
  min-width: 0;
}

.steam-filter-game-cell .cs2-filter-select {
  max-width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}
.steam-filter-appid {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 6px 10px;
  height: 30px;
  box-sizing: border-box;
  width: 100%;
  outline: none;
  letter-spacing: 0.02em;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.steam-filter-appid::placeholder { color: var(--text-dim); }
.steam-filter-appid:hover { background: rgba(0, 0, 0, 0.24); }
.steam-filter-appid:focus { border-color: var(--text-muted); background: rgba(0, 0, 0, 0.28); }

.steam-filter-appid::-webkit-outer-spin-button,
.steam-filter-appid::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.steam-filter-kinds-row {
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}
.steam-filter-kinds-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.steam-filter-kinds-col .pill {
  display: flex;
  width: 100%;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  height: 32px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: 0;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.steam-filter-kinds-col .pill:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}
.steam-filter-kinds-col .pill.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}
.steam-filter-kinds-col .pill em {
  margin-left: auto;
  padding-left: 8px;
  font-style: normal;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
}
.steam-filter-kinds-col .pill.active em { color: var(--text-muted); }

.steam-filter-kind-section { display: flex; flex-direction: column; }

.steam-filter-card-wrap {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows 320ms cubic-bezier(0.4, 0, 0.2, 1),
    opacity 280ms cubic-bezier(0.4, 0, 0.2, 1);
}
.steam-filter-card-wrap.open {
  grid-template-rows: 1fr;
  opacity: 1;
}
.steam-filter-card-inner { min-height: 0; overflow: hidden; }
.steam-filter-card-variants {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px 0 4px 14px;
  border-left: 1px solid var(--border);
  margin-left: 8px;
}
.steam-filter-card-variants .pill { font-size: 12px; height: 28px; padding: 0 8px; }

.steam-filter-card-wrap { will-change: grid-template-rows, opacity; }

.steam-filter-reset {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 32px;
  padding: 0 12px;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.steam-filter-reset:hover:not(:disabled) {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--text-muted);
}
.steam-filter-reset:disabled {
  opacity: 0.4;
  cursor: default;
}
.steam-filter-reset svg { flex-shrink: 0; }
.cs2-filter-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cs2-filter-loading {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
  padding: 6px 0;
}
.cs2-filter-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cs2-filter-row-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.cs2-filter-row-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.cs2-filter-row-counthead {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.cs2-filter-select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  color: var(--text);
  font: inherit;
  font-size: 12px;
  padding: 7px 26px 7px 10px;
  border-radius: 6px;
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text-muted) 50%),
    linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
  background-position:
    calc(100% - 14px) 50%,
    calc(100% - 9px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  transition: background-color 120ms ease, border-color 120ms ease;
}
.cs2-filter-select:hover { background-color: rgba(255, 255, 255, 0.04); }
.cs2-filter-select:focus { outline: none; border-color: var(--text-muted); }
.cs2-filter-select option { background: #1a1a1a; color: var(--text); }

.cs2-filter-types-col {
  display: grid;
  
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.cs2-filter-types-col .cs2-filter-type-pill {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  padding: 0 10px;
  height: auto;
  min-height: 48px;
  width: 100%;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.2;
  text-align: left;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.cs2-filter-types-col .cs2-filter-type-pill:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.18);
}
.cs2-filter-types-col .cs2-filter-type-pill.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.28);
}
.cs2-filter-types-col .cs2-filter-type-pill em {
  position: relative;
  z-index: 1;
  font-style: normal;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-dim);
}
.cs2-filter-types-col .cs2-filter-type-pill.active em { color: var(--text-muted); }

.cs2-filter-type-bg {
  position: absolute;
  top: 3px;
  bottom: 3px;
  right: 4px;
  width: 55%;
  background: center right / contain no-repeat;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.4) 35%, black 75%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.4) 35%, black 75%);
  pointer-events: none;
  opacity: 0.5;
  transition: opacity 0.15s;
}
.cs2-filter-types-col .cs2-filter-type-pill:hover .cs2-filter-type-bg { opacity: 0.75; }
.cs2-filter-types-col .cs2-filter-type-pill.active .cs2-filter-type-bg { opacity: 0.9; }

.cs2-filter-type-text {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}
.cs2-filter-type-label {
  display: block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cs2-filter-pills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}

.cs2-filter-pills-grid.cs2-filter-pills-grid--row {
  grid-template-columns: 1fr;
}
.cs2-filter-pill {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 0 10px;
  height: 32px;
  font: inherit;
  font-size: 12.5px;
  font-weight: 500;
  text-align: left;
  color: var(--text-muted);
  background: transparent;
  border: 0;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.cs2-filter-pill:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.cs2-filter-pill.active { color: var(--text); background: rgba(255, 255, 255, 0.08); }
.cs2-filter-pill-label {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cs2-filter-pill em {
  margin-left: auto;
  padding-left: 8px;
  font-style: normal;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-dim);
  flex-shrink: 0;
}
.cs2-filter-pill.active em { color: var(--text-muted); }
.cs2-filter-pill.disabled,
.cs2-filter-pill[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.cs2-filter-pill-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 8px;
  flex-shrink: 0;
}

.cs2-filter-side-by-side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.cs2-filter-side-by-side > .cs2-filter-row:last-child .cs2-filter-row-label {
  text-align: right;
}

.dota-misc-subsection {
  padding-top: 12px;
  margin-top: 4px;
  border-top: 1px solid var(--border);
}
.dota-misc-pills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.dota-misc-pills .cs2-filter-pill {
  width: 100%;
  justify-content: space-between;
  padding: 0 10px;
}

.dota-gem-pills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.dota-gem-pills .cs2-filter-pill {
  width: 100%;
  justify-content: space-between;
  padding: 0 12px;
}

.dota-filter-multi-col {
  display: grid;

  gap: 8px;
}
.dota-filter-multi-col > .cs2-filter-row { min-width: 0; }
.dota-filter-multi-col > .cs2-filter-row:last-child .cs2-filter-row-label {
  text-align: right;
}

.dota-filter-multi-col .cs2-filter-pill {
  padding: 0 6px;
  gap: 4px;
  font-size: 11.5px;
}
.dota-filter-multi-col .cs2-filter-pill em { font-size: 9.5px; padding-left: 4px; }

.cs2-filter-pill-spacer {
  display: block;
  height: 1px;
  margin: 3px 32%;
  background: var(--border, rgba(255, 255, 255, 0.12));
  pointer-events: none;
}

.cs2-filter-trait .cs2-filter-trait-pills {
  display: flex;
  gap: 4px;
}

.cs2-filter-inline-rows {
  display: flex;
  flex-direction: column;

  gap: 10px;
}
.cs2-filter-inline-rows > .cs2-filter-row {
  flex-direction: row;
  align-items: center;
  gap: 12px;
}
.cs2-filter-inline-rows > .cs2-filter-row > .cs2-filter-row-label {
  flex: 0 0 88px;
}
.cs2-filter-inline-rows > .cs2-filter-row > .cs2-filter-select,
.cs2-filter-inline-rows > .cs2-filter-row > .cs2-filter-trait-pills {
  flex: 1 1 auto;
  min-width: 0;
}

.cs2-filter-section-divider {
  height: 1px;
  background: var(--border, rgba(255, 255, 255, 0.12));
  margin: 2px 0;
}
.cs2-filter-trait-pill {
  flex: 1;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font: inherit;
  font-size: 11px;
  padding: 5px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease;
}
.cs2-filter-trait-pill:hover { background: rgba(255, 255, 255, 0.04); color: var(--text); }
.cs2-filter-trait-pill.active { background: rgba(255, 255, 255, 0.08); color: var(--text); }

.items-list {
  display: grid;
  grid-template-columns:
    minmax(220px, 1.6fr)        
    minmax(max-content, auto)   
    minmax(190px, 1fr)          
    minmax(max-content, auto)   
    auto;                       
  align-content: start;
  padding: 4px 4px 24px;
}
.items-sale-row {
  grid-column: 1 / -1;
  text-decoration: none;
  color: inherit;
  cursor: default;
}
.items-sale-row [data-navable] { cursor: pointer; }
.items-sale-row > .sale-item {
  justify-content: flex-start;
  gap: 16px;
  padding: 0 14px;
  min-width: 0;
}

.items-sale-row .sale-item-text > .sale-attrs {
  justify-content: flex-start;
  gap: 4px 6px;
  margin-top: 2px;
}
.items-sale-row .sale-item-text > .sale-attrs:empty { display: none; }

.items-sale-row .sale-item-text { overflow: visible; }
.items-sale-row .sale-item-name {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
  line-height: 1.25;
}
.sale-item-qty {
  color: var(--text-dim);
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11.5px;
  margin-left: 4px;
}
.items-list .empty-state,
.items-list .items-loading,
.items-list .items-sentinel { grid-column: 1 / -1; }

.items-list.is-switching {
  pointer-events: none;
}
.items-list.is-switching > *:not(.loading-indicator) {
  opacity: 0;
}
.items-list.is-entering > * {
  animation: itemsRowReveal 0.32s cubic-bezier(.4, 0, .2, 1) both;
}
@keyframes itemsRowReveal {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.items-list.is-entering > *:nth-child(n+3)  { animation-delay: 20ms; }
.items-list.is-entering > *:nth-child(n+6)  { animation-delay: 40ms; }
.items-list.is-entering > *:nth-child(n+9)  { animation-delay: 60ms; }
.items-list.is-entering > *:nth-child(n+12) { animation-delay: 80ms; }
.items-list.is-entering > *:nth-child(n+15) { animation-delay: 100ms; }
.items-list.is-entering > *:nth-child(n+18) { animation-delay: 120ms; }

#items-filter-pills.attrs-filter-games-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
}
#items-filter-pills .pill {
  justify-content: center;
}
.items-loading {
  padding: 14px 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.items-sentinel { height: 1px; }

body.view-antiscam  .page,
body.view-mispriced .page { display: none; }
body.view-antiscam  .antiscam-page,
body.view-mispriced .mispriced-page { display: flex; }
body.view-antiscam  .live-toggle,
body.view-antiscam  #drawer,
body.view-antiscam  .game-filters,
body.view-antiscam  .kpi-row,
body.view-mispriced .live-toggle,
body.view-mispriced #drawer,
body.view-mispriced .game-filters,
body.view-mispriced .kpi-row { display: none; }

body.view-antiscam  .search-pill,
body.view-mispriced .search-pill { display: none; }

.antiscam-page,
.mispriced-page {
  display: none;
  position: relative;
  z-index: 1;
  height: 100vh;
  padding-left: calc(var(--sidebar-w) + var(--sidebar-gap) * 2);

  padding-right: calc(var(--sidebar-gap) + var(--toggle-w));
  padding-top: var(--sidebar-gap);
  padding-bottom: var(--sidebar-gap);
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  transition: padding-right 0.3s cubic-bezier(.4, 0, .2, 1);
}

body.view-antiscam.drawer-open  .antiscam-page,
body.view-mispriced.drawer-open .mispriced-page {
  padding-right: calc(var(--attrs-filter-w) + var(--sidebar-gap));
}

body.antiscam-drawer-overlay.view-antiscam.drawer-open  .antiscam-page,
body.antiscam-drawer-overlay.view-mispriced.drawer-open .mispriced-page {

  padding-right: calc(var(--sidebar-gap) + var(--toggle-w));
}

.suspects-frame {
  flex: 1;
  min-height: 0;
  position: relative;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.suspects-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  
  min-height: 56px;
  padding: 8px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.suspects-head-left { min-width: 0; justify-self: start; }
.suspects-head-center { justify-self: center; }
.suspects-head-right {
  justify-self: end;
  display: flex;
  align-items: center;

  min-width: 240px;
}

.suspects-sort-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.suspects-sort-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  appearance: none;
  border: 0;
  background: transparent;
  height: 32px;
  padding: 0 12px;
  cursor: pointer;
  font: 500 12.5px/1 'Inter', sans-serif;
  color: var(--text-muted);
  border-radius: var(--radius-xs);
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.15s, background 0.15s;
}
.suspects-sort-btn:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.suspects-sort-btn.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.antiscam-page[data-mode="top"] .day-nav,
.mispriced-page[data-mode="top"] .day-nav {
  display: flex !important;
  align-items: stretch;
  justify-content: space-between;
  width: 100%;

  min-height: 36px;
  background: transparent;
  border: 0;
  padding: 0;
  gap: 4px;
  position: relative;
}

.antiscam-page[data-mode="top"] .day-nav > *,
.mispriced-page[data-mode="top"] .day-nav > * {
  visibility: hidden !important;
  pointer-events: none !important;
}
.antiscam-page[data-mode="top"] .day-nav::before,
.mispriced-page[data-mode="top"] .day-nav::before {
  content: "All-Time · no date filter";
  position: absolute;
  left: calc(32px + 4px);
  right: calc(32px + 4px);
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  background: transparent;
  border: 1.5px dashed rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-xs);
  box-sizing: border-box;
  font: 500 11.5px/1.15 var(--sans);
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

.suspects-top-sentinel,
.suspects-day-sentinel { height: 1px; grid-column: 1 / -1; }

.antiscam-page[data-mode="top"] ~ .antiscam-filter-drawer .antiscam-sort-pill,
.mispriced-page[data-mode="top"] ~ .mispriced-filter-drawer .antiscam-sort-pill {
  background: transparent;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  color: var(--text-dim);
  pointer-events: none;
  opacity: 0.65;
}
.antiscam-page[data-mode="top"] ~ .antiscam-filter-drawer .antiscam-sort-pill.active,
.mispriced-page[data-mode="top"] ~ .mispriced-filter-drawer .antiscam-sort-pill.active {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--text-dim);
}

.antiscam-page[data-mode="top"] ~ .antiscam-filter-drawer .antiscam-stat-totals-row:has(#antiscam-stat-day),
.antiscam-page[data-mode="top"] ~ .antiscam-filter-drawer #antiscam-stat-day-sub,
.antiscam-page[data-mode="top"] ~ .antiscam-filter-drawer .antiscam-stat-game-amt--day { display: none !important; }

.suspects-subbar {
  --suspects-subbar-h: 32px;
  position: relative;
  z-index: 5;
  flex-shrink: 0;
  height: var(--suspects-subbar-h);
  margin-bottom: calc(-1 * var(--suspects-subbar-h));
  border-bottom: 1px solid var(--border);
  background: rgba(15, 15, 17, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}

.suspects-subbar:empty { display: none; }
.suspects-subbar:not(:empty) + .suspects-body { padding-top: var(--suspects-subbar-h, 32px); }
.suspects-subbar-day {
  position: absolute;
  top: 50%;

  left: var(--subbar-day-x, calc(100% - 120px));
  transform: translate(-50%, -50%);
  font: 600 11px/1 'Inter', sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.suspects-subbar-day:empty { display: none; }

.suspects-subbar-loading {
  position: absolute;
  top: 50%;

  left: 86px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  font: 500 11px/1 'JetBrains Mono', monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
  user-select: none;
  animation: loading-indicator-pulse 1.8s ease-in-out infinite;
}

.antiscam-list > .day-separator,
.mispriced-list > .day-separator { display: none; }

.suspects-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0 14px 20px;
}

.suspects-mode-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.suspects-mode-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  appearance: none;
  border: 0;
  background: transparent;
  padding: 4px 14px;
  cursor: pointer;
  font-size: var(--font-h1);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.005em;
  color: var(--text-dim);
  border-radius: var(--radius-xs);
  white-space: nowrap;
  transition: color 0.15s;
}
.suspects-mode-btn:hover,
.suspects-mode-btn.active { color: var(--text); }
.suspects-mode-sep {
  display: inline-block;
  width: 1px;
  height: 22px;
  background: rgba(255, 255, 255, 0.12);
  margin: 0 6px;
}

body.view-names .page { display: none; }
body.view-names .names-page { display: flex; }
body.view-names .live-toggle,
body.view-names .drawer-toggle,
body.view-names #drawer,
body.view-names .game-filters,
body.view-names .kpi-row { display: none; }
.names-page {
  display: none;
  position: relative;
  z-index: 1;
  height: 100vh;
  padding-left: calc(var(--sidebar-w) + var(--sidebar-gap) * 2);
  padding-right: var(--sidebar-gap);
  padding-top: var(--sidebar-gap);
  padding-bottom: var(--sidebar-gap);
  flex-direction: column;
  gap: 0;
}

.names-page-head {
  display: grid;

  grid-template-columns:
    auto                    
    auto                    
    auto                    
    auto                    
    minmax(0, 1fr)          
    minmax(160px, auto)     
    minmax(0, 1fr)          
    auto                    
    minmax(0, clamp(270px, 28vw, 420px)); 
  align-items: center;
  column-gap: 8px;
  min-height: 40px;
  padding: 0 4px;
  margin-bottom: 14px;
}

.names-page-head > *                  { grid-row: 1; }
.names-page-head > h1                 { grid-column: 1; }
.names-page-head > #names-lang        { grid-column: 2; }
.names-page-head > .names-head-sep    { grid-column: 3; }
.names-page-head > #names-sort        { grid-column: 4; }
.names-page-head > .names-game-tabs   { grid-column: 6; justify-self: center; }
.names-page-head > .names-to-top      { grid-column: 8; justify-self: end; }
.names-page-head > .search-pill       { grid-column: 9; }

.names-page-head > .search-pill {
  position: static;
  top: auto;
  right: auto;
  left: auto;
  bottom: auto;
  width: 100%;
  min-width: 0;
}

.names-page-head h1 { font-size: clamp(15px, 1.6vw, 26px); }

.page-head-icon { display: none; flex-shrink: 0; vertical-align: middle; }
.page-head-label { white-space: nowrap; }
.names-sort-pill {
  padding: 0 clamp(8px, 0.9vw, 14px);
  font-size: clamp(11px, 0.85vw, 13px);
}
.names-sort .names-sort-label { font-size: clamp(10px, 0.75vw, 13px); }
.names-sort { gap: clamp(2px, 0.3vw, 6px); }
.names-game-tabs.collect-tabs .collect-tab {
  padding: clamp(5px, 0.55vw, 9px) clamp(8px, 0.9vw, 16px);
  min-width: clamp(48px, 5vw, 96px);
  font-size: clamp(11px, 0.85vw, 13px);
}
.names-page-head { column-gap: clamp(4px, 0.6vw, 12px); }

@media (max-width: 1500px) {
  .names-page-head > .search-pill kbd { display: none; }
}
@media (max-width: 1300px) {
  .names-head-sep { display: none; }
}
@media (max-width: 1100px) {
  .names-sort-label { display: none; }
  .names-page-head h1 { font-size: clamp(14px, 1.4vw, 18px); }
}

@media (max-width: 1000px) {
  .names-page-head h1 .page-head-label { display: none; }
  .names-page-head h1 .page-head-icon {
    display: inline-block;
    width: clamp(18px, 2.2vw, 22px);
    height: clamp(18px, 2.2vw, 22px);
  }
  .names-page-head h1 {
    display: inline-flex;
    align-items: center;
    line-height: 1;
  }
}

@media (max-width: 1180px) and (min-width: 881px) {

  .names-page-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 10px;
    row-gap: 12px;
  }

  .names-page-head > h1               { order: 1; flex: 0 0 auto; }
  .names-page-head > #names-lang      { order: 2; flex: 0 0 auto; }
  .names-page-head > #names-sort      { order: 3; flex: 0 0 auto; }
  .names-page-head > .names-game-tabs { order: 4; flex: 0 0 auto; margin-left: auto; }
  .names-page-head > .names-head-sep {
    display: block;
    order: 5;
    flex: 0 0 100%;
    height: 0;
    width: auto;
    margin: 0;
    padding: 0;
    background: none;
    border: 0;
  }
  .names-page-head > .search-pill {
    order: 6;
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
  }

  .names-page-head > .names-to-top {
    display: inline-flex;
    position: fixed;
    bottom: calc(var(--sidebar-gap) + 56px);
    right: 36px;
    z-index: 45;
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-strong);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  }
  .names-page-head > .names-to-top:hover { background: rgba(255, 255, 255, 0.13); }

  .names-page-head h1 .page-head-label { display: inline; }
  .names-page-head h1 .page-head-icon { display: none; }
}

@media (min-width: 881px) and (max-width: 1180px) {
  body.view-names .names-page-head > .search-pill { display: none; }
  .names-page-head > .names-head-sep { display: none; }
}

@media (max-width: 880px) {

  body.view-names .names-page {
    padding: 16px 16px 80px;
    margin-right: 0;
  }
  .names-page-head {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto;
    column-gap: 8px;
  }
  .names-page-head > h1 {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    display: inline-flex;
    align-items: center;
  }
  
  .names-page-head > h1 .page-head-label { display: inline; }
  .names-page-head > h1 .page-head-icon  { display: none; }
  .names-page-head > .names-game-tabs { grid-column: 2; grid-row: 1; justify-self: end; }

  .names-page-head > .search-pill,
  body.view-names .names-page-head > .search-pill { display: none; }
  .names-page-head > .names-head-sep { display: none; }

  .names-frame > .names-top-bar {
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(15, 15, 17, 0.78);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid var(--border);
  }
  .names-frame > .names-top-bar > #names-lang { order: 1; }
  .names-frame > .names-top-bar > #names-sort { order: 2; }
  
  body.view-names .names-body { padding-top: 56px; }

  .names-page-head > .names-to-top {
    display: inline-flex;
    position: fixed;
    bottom: calc(80px + 56px);
    right: 36px;
    z-index: 45;
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-strong);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  }
  .names-page-head > .names-to-top:hover { background: rgba(255, 255, 255, 0.13); }
}
.names-page-head h1 {
  font-size: var(--font-h1);
  font-weight: 700;
  margin: 0;
  line-height: 1;
  color: var(--text);
  flex-shrink: 0;
}

.names-sort {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 40px;
  flex-wrap: nowrap;
}
.names-sort-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-right: 6px;
  flex-shrink: 0;
}
.names-sort-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 12px;
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: 0;
  border-radius: var(--radius-xs);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.15s, background 0.15s;
}
.names-sort-pill:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.names-sort-pill.is-active { color: var(--text); background: rgba(255, 255, 255, 0.08); }

.names-head-sep {
  display: inline-block;
  width: 1px;
  height: 22px;
  background: var(--border);
  flex-shrink: 0;
}

.names-game-tabs.collect-tabs .collect-tab {
  min-width: 0;
  padding: 8px 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.names-game-mark-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.names-game-tabs .game-mark {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  color: var(--text-muted);
  flex-shrink: 0;
}
.names-game-tabs .game-mark-img {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-color: rgba(255, 255, 255, 0.12);
}
.names-game-tabs .game-mark-all { color: var(--text-dim); }
.names-game-tabs .collect-tab.active .game-mark-all,
.names-game-tabs .collect-tab:hover .game-mark-all { color: var(--text); }

.names-frame {
  flex: 1;
  min-height: 0;
  position: relative;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s;
  display: flex;
  flex-direction: column;
}
.names-frame:hover { border-color: var(--border-strong); }

.names-top-bar { display: none; }
.names-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 14px;

  padding-bottom: 56px;
}
.names-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}
.names-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  min-width: 0;
  transition: background-color 120ms ease;
}
.names-card:hover { background: rgba(255, 255, 255, 0.05); }
.names-card-img,
.names-card-img-placeholder {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  object-fit: contain;
}
.names-card-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
}
.names-card-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;

  unicode-bidi: isolate;
  direction: ltr;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.names-card-canon {
  font-size: 11px;
  color: var(--text-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.names-empty {
  text-align: center;
  color: var(--text-faint);
  font-size: 13px;
  padding: 32px 0;
  grid-column: 1 / -1;
}

.names-grid-tail {
  grid-column: 1 / -1;
  min-height: 1px;
}
.names-sentinel {
  height: 1px;
  width: 100%;
}
.names-grid-head {
  grid-column: 1 / -1;
}
.names-tail-spinner {
  text-align: center;
  color: var(--text-faint);
  font-size: 12px;
  padding: 16px 0;
}

.names-pagination-header {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  background: rgba(15, 15, 17, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-top: 1px solid var(--border);
}
.names-pagination-header:empty { display: none; }
.names-pagination-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  font-size: 12px;
  color: var(--muted);
}
.names-counter {
  justify-self: start;
  white-space: nowrap;
}
.names-counter-loaded { color: var(--text); font-weight: 600; }
.names-counter-total  { color: var(--text); }
.names-page-of {
  justify-self: end;
  white-space: nowrap;
}
.names-page-of strong { color: var(--text); font-weight: 600; }

.names-page-cur,
.names-counter-loaded { display: inline-block; }
@keyframes names-num-fwd {
  from { transform: translateX(10px); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
@keyframes names-num-back {
  from { transform: translateX(-10px); opacity: 0; }
  to   { transform: translateX(0);     opacity: 1; }
}
.names-pagination-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.names-page-list {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.names-page-num,
.names-page-jump {
  min-width: 28px;
  height: 26px;
  padding: 0 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  transform-origin: center;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.22s ease,
    letter-spacing 0.36s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.36s cubic-bezier(0.4, 0, 0.2, 1);
}
.names-page-num:hover,
.names-page-jump:not(:disabled):hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-hover);
  color: var(--text);
}

.names-page-num.is-active {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-strong);
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.02em;
  transform: scale(1.15);

  overflow: hidden;
}
.names-page-num-digit {
  display: inline-block;
  will-change: transform, opacity;
}
.names-page-jump:disabled {
  opacity: 0.35;
  cursor: default;
}
.names-page-ellipsis {
  padding: 0 4px;
  color: var(--muted);
  user-select: none;
}
@media (max-width: 720px) {
  .names-pagination-inner { grid-template-columns: 1fr auto; }
  .names-page-of { display: none; }
}

.names-to-top {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 15, 17, 0.6);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  cursor: pointer;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(0.85);
  transform-origin: center;
  transition:
    opacity 0.25s ease,
    transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.2s,
    background 0.2s;
}
.names-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  animation: collect-to-top-emerge 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.names-to-top:hover {
  border-color: var(--border-hover);
  background: rgba(30, 30, 34, 0.75);
}
.names-to-top.is-visible:hover { transform: translateY(-1px); }

.day-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 4px;
}
.day-nav[aria-hidden="true"]:empty { display: none; }
.day-nav-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition:
    background-color 120ms ease,
    color 120ms ease,
    width var(--resize-dur) var(--resize-ease),
    height var(--resize-dur) var(--resize-ease),
    padding var(--resize-dur) var(--resize-ease);
}
.day-nav-arrow:hover:not(:disabled) { background: rgba(255, 255, 255, 0.08); }
.day-nav-arrow:disabled {
  opacity: 0.3;
  cursor: default;
}
.day-nav-current {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 130px;
  padding: 0 6px;
  line-height: 1.15;
}
.day-nav-date {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 13px;
  color: var(--text);
}
.day-nav-meta {
  font-size: 11px;
  color: var(--text-dim, rgba(255, 255, 255, 0.55));
  font-variant-numeric: tabular-nums;
  margin-top: 1px;
}

.antiscam-day-nav-drawer {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  width: 100%;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  gap: 4px;
}
.antiscam-day-nav-drawer[aria-hidden="true"]:empty { display: none; }
.antiscam-day-nav-drawer .day-nav-arrow {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-xs);
  color: var(--text-muted);
  font-size: 16px;
  flex-shrink: 0;
  transition: color 0.15s, background 0.15s;
}
.antiscam-day-nav-drawer .day-nav-arrow:hover:not(:disabled) {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}
.antiscam-day-nav-drawer .day-nav-current {
  flex: 1;
  min-width: 0;
  padding: 4px 8px;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.04);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.15;
}
.antiscam-day-nav-drawer .day-nav-date { font-size: 12.5px; }
.antiscam-day-nav-drawer .day-nav-meta { margin-top: 1px; font-size: 11px; }

.antiscam-head-tools {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.antiscam-head-sort { display: inline-flex; gap: 6px; }
.antiscam-sort-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 28px;
  padding: 0;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font: 600 12px/1 var(--sans);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.antiscam-sort-pill:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--border-hover);
}
.antiscam-sort-pill.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--border-hover);
}

.antiscam-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.antiscam-stat {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  transition: border-color 0.2s, background 0.2s;
}
.antiscam-stat:hover {
  border-color: var(--border-strong);
  background: var(--panel-hover);
}
.antiscam-stat-label {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.antiscam-stat-value {
  font-family: var(--sans);
  font-size: 19px;
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1, 'cv11' 1, 'ss01' 1;
  letter-spacing: -0.015em;
  line-height: 1;
  margin-top: 2px;
  min-height: 1em;
}
.antiscam-stat-sub {
  font-size: 11px;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
  min-height: 1em;
}

.antiscam-donut-wrap {
  margin-top: 10px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.antiscam-donut-label {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  align-self: stretch;
  text-align: center;
}
.antiscam-donut {
  width: 140px;
  height: 140px;
}
.antiscam-donut-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.antiscam-donut-legend li {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  font-size: 11.5px;
  color: var(--text);
  min-width: 0;
}
.antiscam-donut-legend i {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  display: inline-block;
}
.antiscam-donut-legend b {
  font-weight: 500;
  font-size: 12px;
  color: var(--text);
}
.antiscam-donut-legend .antiscam-donut-amount {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

.antiscam-stat-group {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 0;
  gap: 0;
  transition: border-color 0.2s, background 0.2s;
}
.antiscam-stat-group > .antiscam-stat-header { margin-bottom: 8px; }
.antiscam-stat-group:hover { border-color: var(--border-strong); }
.antiscam-stat-group > .attrs-filter-group-title {
  padding: 0 12px;
}
.antiscam-stat-header {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 3px;
  padding: 0 12px;
}
.antiscam-stat-header-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.antiscam-stat-header--row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: baseline;
  gap: 12px;
}
.antiscam-stat-header .attrs-filter-group-title { padding: 0; }
.antiscam-stat-header .antiscam-stat-sub {
  font-size: 11px;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
  padding: 0;
  margin: 0;
  border: 0;
  text-align: left;
}
.antiscam-stat-header .antiscam-stat-sub--center {
  text-align: center;
  justify-self: center;
}
.antiscam-stat-header .antiscam-stat-sub--right {
  text-align: right;
  justify-self: end;
}
.antiscam-stat-header .antiscam-stat-sub:empty { display: none; }
.antiscam-stat-totals {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px 12px 10px;
  border-bottom: 1px solid var(--border);
}
.antiscam-stat-totals-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.antiscam-stat-totals-label {
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.antiscam-stat-totals-value {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1, 'cv11' 1, 'ss01' 1;
  letter-spacing: -0.01em;
}
.antiscam-stat-totals-value--lead {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.antiscam-stat-totals-value.is-loading { color: var(--text-muted); }
.antiscam-stat-loader {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 1em;
}
.antiscam-stat-loader > span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.35;
  animation: loading-indicator-bounce 1.2s ease-in-out infinite;
}
.antiscam-stat-loader > span:nth-child(2) { animation-delay: 0.15s; }
.antiscam-stat-loader > span:nth-child(3) { animation-delay: 0.3s; }

.antiscam-stat-games {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.antiscam-stat-game-row {
  appearance: none;
  -webkit-appearance: none;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) minmax(78px, auto);
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 0;
  padding: 0 10px;
  height: 44px;
  color: var(--text-muted);
  text-align: left;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 500;
  transition: color 0.15s, background 0.15s;
}
.antiscam-stat-game-row:first-child { border-top: 0; }
.antiscam-stat-game-row:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.antiscam-stat-game-row.is-active { color: var(--text); background: rgba(255, 255, 255, 0.08); }
.antiscam-stat-game-row .game-mark {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(255,255,255,0.1), rgba(255,255,255,0.02));
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--text-dim);
}
.antiscam-stat-game-row .game-mark-img {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-color: rgba(255, 255, 255, 0.12);
}
.antiscam-stat-game-name {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.25;
}
.antiscam-stat-game-amts {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  line-height: 1.15;
}
.antiscam-stat-game-amt {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1, 'cv11' 1, 'ss01' 1;
  letter-spacing: -0.01em;
  text-align: right;
}
.antiscam-stat-game-amt--day {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--text-dim);
}
.antiscam-stat-game-row:hover .antiscam-stat-game-amt--day,
.antiscam-stat-game-row.is-active .antiscam-stat-game-amt--day { color: var(--text-muted); }

.antiscam-stat-donut {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 12px 6px;
  border-top: 1px solid var(--border);
}
.antiscam-stat-donut[hidden] { display: none; }
.antiscam-stat-games.is-flash,
.antiscam-stat-donut.is-flash {
  animation: overview-flash 0.36s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes overview-flash {
  0% { opacity: 0.25; filter: blur(1.5px); }
  100% { opacity: 1; filter: blur(0); }
}
.antiscam-stat-sub--right.kpi-pulse,
.antiscam-stat-totals-value.kpi-pulse,
.antiscam-stat-totals-row .antiscam-stat-totals-value--lead.kpi-pulse {
  transform-origin: left center;
}
#antiscam-stat-total-days.kpi-pulse { transform-origin: right center; }

.antiscam-csv-btn {
  appearance: none;
  -webkit-appearance: none;
  display: flex;
  margin-left: auto;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  height: 32px;
  background: transparent;
  border: 0;
  border-radius: var(--radius-xs);
  color: var(--text-muted);
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.antiscam-csv-btn:hover:not(:disabled) {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}
.antiscam-csv-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.antiscam-csv-btn svg { color: inherit; flex-shrink: 0; }
.antiscam-stat-donut > .attrs-filter-group-title { padding: 0; }
.antiscam-stat-donut .antiscam-donut-body {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}
.antiscam-stat-donut .antiscam-donut {
  width: 140px;
  height: 140px;
  margin: 4px auto 2px;
  display: block;
}
.antiscam-stat-donut .antiscam-donut-legend {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.antiscam-stat-donut .antiscam-donut-legend li {
  display: grid;
  grid-template-columns: 8px 36px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 10px;
  height: 28px;
  padding: 0 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 500;
}
.antiscam-stat-donut .antiscam-donut-legend li:first-child { border-top: 0; }
.antiscam-stat-donut .antiscam-donut-legend i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  display: inline-block;
}
.antiscam-stat-donut .antiscam-donut-code {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.antiscam-stat-donut .antiscam-donut-amount {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1, 'cv11' 1, 'ss01' 1;
  letter-spacing: -0.01em;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.antiscam-stat-donut .antiscam-donut-pct {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.antiscam-donut-group .antiscam-donut-body {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}
.antiscam-donut-group .antiscam-donut {
  width: 96px;
  height: 96px;
}
.antiscam-donut-group .antiscam-donut-legend {
  width: 100%;
}
.antiscam-donut-group .antiscam-donut-legend li {
  grid-template-columns: 8px minmax(0, 1fr) auto;
  gap: 6px;
  font-size: 11px;
}
.antiscam-donut-group .antiscam-donut-legend i {
  width: 7px;
  height: 7px;
}

.empty-state-action {
  margin-top: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease;
}
.empty-state-action:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.antiscam-to-top,
.mispriced-to-top,
.attrs-to-top {
  position: fixed;
  bottom: 36px;
  right: calc(var(--attrs-filter-w) + 32px);
  z-index: 45;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  color: var(--text);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.5) translateY(6px);
  transform-origin: center;
  transition:
    opacity 0.25s ease,
    transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.2s,
    background 0.2s;
}
.antiscam-to-top.is-visible,
.mispriced-to-top.is-visible,
.attrs-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
  animation: collect-to-top-emerge 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.antiscam-to-top:hover,
.mispriced-to-top:hover,
.attrs-to-top:hover {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.13);
}
.antiscam-to-top.is-visible:hover,
.mispriced-to-top.is-visible:hover,
.attrs-to-top.is-visible:hover {
  transform: translateY(-1px);
}
body:not(.view-antiscam) .antiscam-to-top,
body:not(.view-mispriced) .mispriced-to-top,
body:not(.view-attrs) .attrs-to-top { display: none !important; }

body.view-attrs.attrs-filters-collapsed .attrs-to-top {
  right: calc(var(--content-pad) + 32px);
}

body.antiscam-drawer-overlay .antiscam-to-top,
body.antiscam-drawer-overlay .mispriced-to-top {
  right: calc(var(--sidebar-gap) + var(--toggle-w) + 8px);
}

.antiscam-filter-drawer,
.mispriced-filter-drawer {
  display: flex;
  position: fixed;
  top: var(--sidebar-gap);
  right: 0;
  bottom: var(--sidebar-gap);
  width: var(--attrs-filter-w);
  z-index: 40;
  flex-direction: column;
  background: rgba(15, 15, 17, 0.88);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border: 1px solid var(--border);
  border-right: 0;
  border-radius: 14px 0 0 14px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    -16px 0 48px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;

  transition: transform var(--dur-morph) var(--ease-glass), opacity 0.3s ease;
}

body.view-antiscam.drawer-open  .antiscam-filter-drawer,
body.view-mispriced.drawer-open .mispriced-filter-drawer {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.antiscam-filter-head,
.mispriced-filter-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.antiscam-filter-head h2,
.mispriced-filter-head h2 { justify-self: start; }
.antiscam-filter-drawer .attrs-filter-body,
.mispriced-filter-drawer .attrs-filter-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.antiscam-filter-head h2,
.mispriced-filter-head h2 {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  color: var(--text);
  letter-spacing: -0.01em;
}
.antiscam-filter-body,
.mispriced-filter-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.antiscam-list,
.mispriced-list {
  display: grid;
  grid-template-columns:
    minmax(220px, 1.6fr)        
    minmax(max-content, auto)   
    minmax(190px, 1fr)          
    minmax(max-content, auto)   
    auto;                       
  align-content: start;
  padding: 4px 4px 24px;
}

@media (max-width: 1180px) {
  .items-list,
  .antiscam-list,
  .mispriced-list {

    grid-template-columns:
      minmax(280px, 1fr)          
      max-content                 
      200px                       
      max-content                 
      max-content;                
    width: 100%;
    min-width: max-content;
  }
  body.view-items .items-page { overflow-x: auto; }
  body.view-antiscam .suspects-body,
  body.view-mispriced .suspects-body { overflow-x: auto; }

  @media (min-width: 881px) {
    body.items-drawer-overlay.view-items .items-page {
      padding-right: calc(var(--content-pad) + var(--toggle-w));
    }
  }
}

@media (max-width: 880px) {
  body.view-items .items-page { overflow: hidden; }

  body.view-items .items-frame {
    display: block;
    flex: 1;
    min-height: 0;
    overflow: auto;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
  }
  body.view-items .items-frame:hover { border-color: var(--border-strong); }

  body.view-items .items-list { padding: 6px 6px 16px; }

  body.view-items .items-filter-drawer,
  body.view-antiscam .antiscam-filter-drawer,
  body.view-mispriced .mispriced-filter-drawer {
    top: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    max-width: 100vw;
    border: 0;
    border-radius: 0;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.6);
    background: rgba(15, 15, 17, 0.82);
    backdrop-filter: blur(30px) saturate(160%);
    -webkit-backdrop-filter: blur(30px) saturate(160%);
  }

  body.view-items .items-filter-close,
  body.view-antiscam .antiscam-filter-close,
  body.view-mispriced .antiscam-filter-close,
  body.view-attrs .attrs-filter-close { display: inline-flex; }
}

.suspects-body.is-switching {
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-fast) var(--ease-glass);
}
.suspects-body.is-entering {
  animation: trendingReveal var(--dur-slow) var(--ease-glass);
  transform-origin: top center;
}
.antiscam-sale-row,
.mispriced-sale-row {
  grid-column: 1 / -1;
  text-decoration: none;
  color: inherit;
  cursor: default;
}
.antiscam-sale-row [data-navable],
.mispriced-sale-row [data-navable] { cursor: pointer; }
.antiscam-sale-row > .sale-item,
.mispriced-sale-row > .sale-item {
  justify-content: flex-start;
  gap: 16px;
  padding: 0 14px;
  min-width: 0;
}

.antiscam-sale-row .sale-item-text > .sale-attrs,
.mispriced-sale-row .sale-item-text > .sale-attrs {
  justify-content: flex-start;
  gap: 4px 6px;
  margin-top: 2px;
}
.antiscam-sale-row .sale-item-text > .sale-attrs:empty,
.mispriced-sale-row .sale-item-text > .sale-attrs:empty { display: none; }

.antiscam-sale-row .sale-item-text,
.mispriced-sale-row .sale-item-text { overflow: visible; }
.antiscam-sale-row .sale-item-name,
.mispriced-sale-row .sale-item-name {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
  line-height: 1.25;
}

.antiscam-listing-cell {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  padding: 0 4px;
}
.antiscam-listing-date {
  font-size: 11px;
  color: var(--text-dim);
  white-space: nowrap;
}
.antiscam-listing-cell .antiscam-listing {
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.antiscam-listing-cell .sale-listing-id {
  font-family: var(--mono);
  font-size: 11.5px;
}

.antiscam-copy { cursor: pointer; user-select: all; transition: color 120ms ease, background-color 120ms ease; }
.antiscam-copy:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); border-radius: 4px; }
.antiscam-copy.is-copied {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.10);
  border-radius: 4px;
}

.antiscam-assets {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 4px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  min-width: 0;
}

.antiscam-asset-line,
.antiscam-amts-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  max-width: 100%;
}
.antiscam-asset-cell {
  padding: 1px 4px;
}
.antiscam-asset-cell:first-child { justify-self: end; }
.antiscam-asset-cell:last-child { justify-self: start; color: var(--text); }
.antiscam-asset-arrow { color: rgba(255, 255, 255, 0.25); }
.antiscam-amt { font-variant-numeric: tabular-nums; color: var(--text); }
.antiscam-amt:first-child { justify-self: end; }
.antiscam-amt:last-child { justify-self: start; }
.antiscam-amt b { color: var(--text-dim); font-weight: 600; }
.antiscam-amt:first-child b { margin-left: 3px; }
.antiscam-amt:last-child b { margin-right: 3px; }
.antiscam-amt-approx { color: rgba(255, 255, 255, 0.3); margin-right: 1px; }

.antiscam-links {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.antiscam-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  color: var(--text-dim);
  text-decoration: none;
  transition: background-color 120ms ease, color 120ms ease;
}
.antiscam-link:hover { background: rgba(255, 255, 255, 0.08); color: var(--text); }
.antiscam-link-steam-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.antiscam-link-steam-icon--fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-dim);
  background: linear-gradient(180deg, rgba(255,255,255,0.1), rgba(255,255,255,0.02));
}
.antiscam-listing,
.mispriced-listing {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-dim);
  white-space: nowrap;
}
.antiscam-price-cell,
.mispriced-price-cell {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  white-space: nowrap;
}

.sale-price-ref {
  font-size: 11px;
  color: var(--text-dim, rgba(255, 255, 255, 0.45));
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.sale-price-ref-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mispriced-top-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
  padding: 0 4px;
}
.mispriced-top-skins {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.mispriced-top-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 6px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  overflow: visible;
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: center;
  transition: border-color 120ms ease, background 120ms ease, transform 120ms ease;
}
.mispriced-top-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}
.mispriced-top-card:focus-visible {
  outline: 2px solid #beee11;
  outline-offset: 2px;
}
.mispriced-top-thumb {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.25);
}
.mispriced-top-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.mispriced-top-prices {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  line-height: 1.15;
}

.mispriced-top-rank {
  position: absolute;
  top: 4px;
  left: 6px;
  font-family: "Motiva Sans", Arial, sans-serif;
  font-weight: 700;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
.mispriced-top-badge {
  position: absolute;
  top: -7px;
  right: -7px;
  background: #4c6b22;
  color: #beee11;
  font-family: "Motiva Sans", Arial, sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0;
  padding: 2px 6px;
  border-radius: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
.antiscam-ratio {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.mispriced-ratio {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 2px 5px;
  border-radius: 0;
  background: #4c6b22;
  color: #beee11;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  font-family: "Motiva Sans", Arial, sans-serif;
}
.antiscam-list .empty-state,
.antiscam-list .items-loading,
.antiscam-list .items-sentinel,
.mispriced-list .empty-state,
.mispriced-list .items-loading,
.mispriced-list .items-sentinel,
.mispriced-list .mispriced-feed-loader,
.antiscam-list  .suspects-list-end,
.mispriced-list .suspects-list-end { grid-column: 1 / -1; }

.mispriced-feed-loader { padding: 14px 4px; }
.suspects-list-end {
  padding: 18px 4px 28px;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.32);
}

.filter-date-input {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  color: var(--text);
  font: inherit;
  font-size: 12px;
  padding: 6px 10px;
  width: 100%;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.filter-date-input:hover { background: rgba(255, 255, 255, 0.06); border-color: var(--border-hover); }
.filter-date-input:focus { outline: none; border-color: var(--border-hover); background: rgba(255, 255, 255, 0.06); }
.filter-date-input::-webkit-calendar-picker-indicator {
  filter: invert(0.7);
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.15s;
}
.filter-date-input::-webkit-calendar-picker-indicator:hover { opacity: 1; }

.day-separator {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 4px 6px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.day-separator::before,
.day-separator::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.10), transparent);
}
.day-separator-label {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.day-separator-meta {
  white-space: nowrap;
  font-weight: 500;
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.4);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}
.day-separator-dot {
  color: rgba(255, 255, 255, 0.25);
  font-weight: 600;
  margin: 0 -4px;
}
.items-list > .day-separator:first-child,
.antiscam-list > .day-separator:first-child,
.mispriced-list > .day-separator:first-child { margin-top: 4px; }

@media (prefers-reduced-motion: no-preference) {
  ::view-transition-group(item-hero),
  ::view-transition-old(item-hero),
  ::view-transition-new(item-hero),
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 0.22s;
    animation-timing-function: cubic-bezier(.4, 0, .2, 1);
  }
  
  ::view-transition-old(item-hero) { animation-duration: 0.14s; }
  ::view-transition-new(item-hero) { animation-duration: 0.22s; }

  html.section-vt::view-transition-old(root),
  html.section-vt::view-transition-new(root) {
    animation-duration: 0.32s;
    animation-timing-function: cubic-bezier(.4, 0, .2, 1);
  }

  .info-page { view-transition-name: info-overlay; }
  ::view-transition-group(info-overlay) { z-index: 100; }
  ::view-transition-new(info-overlay) {
    animation: info-overlay-in 0.38s cubic-bezier(.4, 0, .2, 1);
  }
  ::view-transition-old(info-overlay) {
    animation: info-overlay-out 0.30s cubic-bezier(.4, 0, .2, 1);
  }
  @keyframes info-overlay-in {
    from { transform: translateY(101%); }
    to   { transform: translateY(0); }
  }
  @keyframes info-overlay-out {
    from { transform: translateY(0); }
    to   { transform: translateY(101%); }
  }

  html.sibling-vt::view-transition-old(root),
  html.sibling-vt::view-transition-new(root) {
    animation-duration: 0.22s;
    animation-timing-function: cubic-bezier(.4, 0, .2, 1);
  }

  html.section-vt .side-nav               { view-transition-name: vt-side-nav; }

  html.section-vt .attrs-filter-drawer    { view-transition-name: vt-attrs-drawer; }
  html.section-vt .items-filter-drawer    { view-transition-name: vt-items-drawer; }
  html.section-vt .antiscam-filter-drawer { view-transition-name: vt-antiscam-drawer; }

  ::view-transition-group(vt-side-nav),
  ::view-transition-group(vt-attrs-drawer),
  ::view-transition-group(vt-items-drawer),
  ::view-transition-group(vt-antiscam-drawer),
  ::view-transition-old(vt-attrs-drawer),
  ::view-transition-new(vt-attrs-drawer),
  ::view-transition-old(vt-items-drawer),
  ::view-transition-new(vt-items-drawer),
  ::view-transition-old(vt-antiscam-drawer),
  ::view-transition-new(vt-antiscam-drawer) {
    animation-duration: 0.32s;
    animation-timing-function: cubic-bezier(.4, 0, .2, 1);
  }

  ::view-transition-old(vt-side-nav) { animation: none; opacity: 0; }
  ::view-transition-new(vt-side-nav) { animation: none; opacity: 1; }
}

body.view-collect .page { display: none; }
body.view-collect .collect-page { display: flex; }
body.view-collect .live-toggle,
body.view-collect .drawer-toggle,
body.view-collect #drawer,
body.view-collect .game-filters,
body.view-collect .kpi-row { display: none; }

body.view-collect #search-pill { display: none; }

.collect-page {
  display: none;
  position: relative;
  z-index: 1;
  height: 100vh;
  overflow: hidden;
  padding-left: calc(var(--sidebar-w) + var(--sidebar-gap) * 2);
  padding-right: var(--sidebar-gap);
  padding-top: var(--sidebar-gap);
  padding-bottom: var(--sidebar-gap);
  flex-direction: column;
  gap: 14px;
}

.collect-page-head {
  display: grid;
  grid-template-columns:
    auto                    
    auto                    
    auto                    
    minmax(0, 1fr)          
    auto                    
    auto;                   
  align-items: center;
  column-gap: 8px;
  padding: 0 4px;
  min-height: 40px;
}

.collect-page-head > *                   { grid-row: 1; }
.collect-page-head > h1                  { grid-column: 1; }
.collect-page-head > .collect-filter-bar { display: contents; }

.collect-page-head .collect-sort-stack   { grid-column: 2; grid-row: 1; }
.collect-page-head > .collect-tabs       { grid-column: 3; }
.collect-page-head > .collect-to-top     { grid-column: 5; justify-self: end; }
.collect-page-head #collect-stats-toggle { grid-column: 6; grid-row: 1; justify-self: end; }

.collect-page-head .collect-sort-group { justify-self: start; }

.collect-page-head h1 { font-size: clamp(14px, 1.5vw, 26px); }
.collect-page-head { column-gap: clamp(4px, 0.6vw, 12px); }
.collect-filter-bar { gap: clamp(2px, 0.3vw, 6px); }
.collect-filter-pill {
  padding: 0 clamp(8px, 0.9vw, 14px);
  font-size: clamp(11px, 0.85vw, 13px);
  gap: clamp(4px, 0.5vw, 10px);
}

body.view-collect .collect-tabs .collect-tab {
  padding: 8px 16px;
  min-width: 84px;
  font-size: 13px;
}

@media (max-width: 1500px) {
  .collect-page-head > .search-pill kbd { display: none; }
}
@media (max-width: 1100px) {
  .collect-page-head h1 { font-size: clamp(13px, 1.4vw, 18px); }
}

@media (max-width: 1000px) {
  .collect-page-head h1 .page-head-label { display: none; }
  .collect-page-head h1 .page-head-icon {
    display: inline-block;
    width: clamp(18px, 2.2vw, 22px);
    height: clamp(18px, 2.2vw, 22px);
  }
  .collect-page-head h1 {
    display: inline-flex;
    align-items: center;
    line-height: 1;
  }
}

@media (max-width: 1180px) {
  .collect-page-head > .collect-to-top {
    position: fixed;
    right: calc(var(--sidebar-gap) + 20px);
    bottom: calc(var(--sidebar-gap) + 56px);
    left: auto;
    z-index: 45;
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-strong);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  }
  .collect-page-head > .collect-to-top:hover { background: rgba(255, 255, 255, 0.13); }
}

@media (max-width: 880px) {

  body.view-collect .collect-page {
    padding: 16px 16px 80px;
    margin-right: 0;
  }
  .collect-page-head {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto;
    column-gap: 8px;
  }
  .collect-page-head > h1 { grid-column: 1; grid-row: 1; justify-self: start; }

  .collect-page-head h1 .page-head-label { display: inline; }
  .collect-page-head h1 .page-head-icon  { display: none; }
  .collect-page-head > .collect-tabs { grid-column: 2; grid-row: 1; justify-self: end; }
  body.view-collect .collect-page-head .collect-tabs .collect-tab {
    min-width: 0;
    padding: 8px 9px;
    font-size: 12px;
  }
  .collect-page-head .collect-tabs { gap: 2px; padding: 3px; }

  .collect-frame > .collect-filter-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    height: auto;
    padding: 8px 14px;
    background: rgba(15, 15, 17, 0.78);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid var(--border);
  }
  
  .collect-frame > .collect-filter-bar .collect-sort-stack { order: 1; flex: 0 0 auto; }
  .collect-frame > .collect-filter-bar #collect-stats-toggle { order: 2; }

  body.view-collect .collect-body { padding-top: 56px; }
  .collect-frame > .collect-filter-bar .collect-stats-toggle { gap: 8px; }
  
  .collect-frame > .collect-filter-bar .collect-filter-label { display: none; }

  .collect-frame > .collect-filter-bar .collect-filter-sep { display: none; }

  .collect-page-head > .collect-to-top {
    right: 36px;
    left: auto;
    bottom: calc(80px + 56px);
  }
}
.collect-page-head h1 {
  font-size: var(--font-h1);
  font-weight: 700;
  margin: 0;
  line-height: 1;
  color: var(--text);
  flex-shrink: 0;
}

.collect-tabs {
  display: inline-flex;
  position: relative;
  gap: 2px;
  align-items: center;
  padding: 3px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
}

.collect-tab-thumb {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 0;
  width: 0;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: brightness(1) contrast(1) saturate(1);
  -webkit-backdrop-filter: brightness(1) contrast(1) saturate(1);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.09) inset,
    0 -1px 0 rgba(0, 0, 0, 0.16) inset,
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 2px 8px rgba(0, 0, 0, 0.16);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
  transform-origin: center;
  transition:
    left 0.36s cubic-bezier(0.4, 0, 0.2, 1),
    width 0.36s cubic-bezier(0.4, 0, 0.2, 1),
    border-radius 0.36s cubic-bezier(0.4, 0, 0.2, 1),
    background 0.22s ease,
    opacity 0.18s ease;
}

.collect-tab-thumb.sliding {
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: brightness(1.02) contrast(1.08) saturate(1.18);
  -webkit-backdrop-filter: brightness(1.02) contrast(1.08) saturate(1.18);
  border-radius: 14px;
  animation: collect-thumb-squish 0.36s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes collect-thumb-squish {
  0% {
    transform: scaleX(1);
  }
  45% {
    transform: scaleX(1.07);
  }
  100% {
    transform: scaleX(1);
  }
}
.collect-tabs .collect-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font: 500 13px/1 'Inter', sans-serif;
  letter-spacing: 0.01em;
  padding: 8px 18px;
  min-width: 96px;
  border-radius: 9px;
  cursor: pointer;
  position: relative;
  z-index: 1;
  transform-origin: center;
  transition:
    color 0.22s ease,
    letter-spacing 0.36s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.36s cubic-bezier(0.4, 0, 0.2, 1);
}
.collect-tabs .collect-tab:hover { color: var(--text); }

.collect-tabs .collect-tab.active {
  color: var(--text);
  letter-spacing: 0.02em;
  transform: scale(1.08);
}

.collect-frame {
  flex: 1;
  min-height: 0;
  position: relative;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}
.collect-frame:hover { border-color: var(--border-strong); }
.collect-body {
  height: 100%;
  overflow-y: auto;
  padding: 14px;

  padding-bottom: 56px;
}

.collect-pagination-header {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  background: rgba(15, 15, 17, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-top: 1px solid var(--border);
}
.collect-pagination-header:empty { display: none; }
.collect-pagination-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  font-size: 12px;
  color: var(--muted);
}
.collect-counter {
  justify-self: start;
  white-space: nowrap;
}
.collect-counter-loaded { color: var(--text); font-weight: 600; }
.collect-counter-total  { color: var(--text); }
.collect-page-of {
  justify-self: end;
  white-space: nowrap;
}
.collect-page-of strong { color: var(--text); font-weight: 600; }
.collect-pagination-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.collect-page-list {

  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.collect-page-num,
.collect-page-jump {
  min-width: 28px;
  height: 26px;
  padding: 0 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  transform-origin: center;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.22s ease,
    letter-spacing 0.36s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.36s cubic-bezier(0.4, 0, 0.2, 1);
}
.collect-page-num:hover,
.collect-page-jump:not(:disabled):hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-hover);
  color: var(--text);
}

.collect-page-num.is-active {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-strong);
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.02em;
  transform: scale(1.15);
  overflow: hidden;
}
.collect-page-num-digit {
  display: inline-block;
  will-change: transform, opacity;
}
.collect-page-jump:disabled {
  opacity: 0.35;
  cursor: default;
}
.collect-page-ellipsis {
  padding: 0 4px;
  color: var(--muted);
  user-select: none;
}

.collect-page-cur,
.collect-counter-loaded { display: inline-block; }

@media (max-width: 720px) {
  .collect-pagination-inner { grid-template-columns: 1fr auto; }
  .collect-page-of { display: none; }
}

.collect-to-top {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 15, 17, 0.6);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(0.85);
  transform-origin: center;
  transition:
    opacity 0.25s ease,
    transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.2s,
    background 0.2s;
}
.collect-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  animation: collect-to-top-emerge 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.collect-to-top:hover {
  border-color: var(--border-hover);
  background: rgba(30, 30, 34, 0.75);
}
.collect-to-top.is-visible:hover {
  transform: translateY(-1px);
}

@keyframes collect-to-top-emerge {
  0% {
    opacity: 0;
    transform: scale(0.35) translateY(-6px);
    box-shadow:
      0 0 0 3px rgba(255, 255, 255, 0.14),
      0 0 24px rgba(255, 255, 255, 0.18),
      0 10px 30px rgba(0, 0, 0, 0.5);
  }
  45% {
    opacity: 1;
    transform: scale(1.18) translateY(0);
    box-shadow:
      0 0 0 2px rgba(255, 255, 255, 0.08),
      0 0 16px rgba(255, 255, 255, 0.1),
      0 8px 24px rgba(0, 0, 0, 0.4);
  }
  70% {
    transform: scale(0.94);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
.collect-panel {
  display: block;
}
.collect-panel[hidden] { display: none; }
body.view-collect #collect-cards.is-entering {
  animation: trendingReveal var(--dur-slow) var(--ease-glass);
  transform-origin: top center;
}

.collect-tile {
  appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  background: #1a1a1c center/contain no-repeat;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, z-index 0s;
  position: relative;
  display: block;
}
.collect-tile:hover {
  transform: scale(1.6);
  z-index: 5;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.collect-grid-emojis {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(max(140px, 7vw), 1fr));
  gap: 8px;
}
.collect-tile-emoji {
  aspect-ratio: auto;
  background: var(--panel);
  background-image: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 8px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: border-color 0.2s, transform 0.12s;
}
.collect-tile-emoji:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--border-hover);
}
.collect-tile-emoji-img {
  width: 54px;
  height: 54px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: block;
}
.collect-tile-emoji-name {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  text-align: center;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.collect-grid-backgrounds {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(max(160px, 8vw), 1fr));
  gap: 4px;
}
.collect-tile-bg {
  aspect-ratio: 338 / 161;
  background-size: cover;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

#collect-emojis {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(max(140px, 7vw), 1fr));
  gap: 8px;
}
#collect-backgrounds {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(max(160px, 8vw), 1fr));
  gap: 4px;
}
.collect-page-block-emojis,
.collect-page-block-backgrounds,
.collect-grid-emojis,
.collect-grid-backgrounds { display: contents; }

.collect-grid-tail,
#collect-emojis > .empty-state,
#collect-backgrounds > .empty-state,
#collect-emojis > .loading,
#collect-backgrounds > .loading { grid-column: 1 / -1; }

#collect-emojis[hidden],
#collect-backgrounds[hidden] { display: none; }

.collect-boundary { display: contents; }
.collect-boundary-cell {
  background: transparent !important;
  background-image: none !important;
  border: 1px dashed var(--border);
  opacity: 0.5;
  pointer-events: none;
}

.collect-section { margin-bottom: 28px; }
.collect-section-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 14px;
  padding: 0 2px;
}
.collect-section-head em {
  font-style: normal;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11.5px;
  color: var(--text-dim);
}

.collect-set {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "name  name  name"
    "left  cards right";
  align-items: center;
  column-gap: 12px;
  row-gap: 0;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px 8px;
  margin-bottom: 6px;
  transition:
    border-color 0.2s,
    grid-template-columns 0.32s cubic-bezier(.2, .65, .25, 1),
    column-gap 0.32s cubic-bezier(.2, .65, .25, 1),
    row-gap 0.32s cubic-bezier(.2, .65, .25, 1),
    padding 0.32s cubic-bezier(.2, .65, .25, 1),
    margin-bottom 0.32s cubic-bezier(.2, .65, .25, 1);
}
.collect-set:hover { border-color: var(--border-strong); }
.collect-set-head-left {
  grid-area: left;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 260px;
  justify-self: start;
}

.collect-set-appid {
  min-width: 56px;
  text-align: center;
}
.collect-set-price-value {
  min-width: 52px;
  text-align: right;
}
.collect-set-head-right {
  grid-area: right;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
}
.collect-set-name {
  grid-area: name;
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
  letter-spacing: -0.01em;
  min-width: 0;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
  padding-left: 6px;
  justify-self: stretch;
  transition:
    max-width 0.32s cubic-bezier(.2, .65, .25, 1),
    font-size 0.32s cubic-bezier(.2, .65, .25, 1),
    text-align 0.32s,
    padding-left 0.32s;
}

body.collect-stats-on .collect-set {
  grid-template-columns: 1fr auto 1fr;
  grid-template-areas:
    "left  name  right"
    "cards cards cards";
  column-gap: 10px;
  row-gap: 12px;
  padding: 12px 14px 14px;
  margin-bottom: 12px;
}
body.collect-stats-on .collect-set-name {
  justify-self: center;
  max-width: 360px;
  text-align: center;
  font-size: 13.5px;
  padding-left: 0;
}
body.collect-stats-on .collect-set-head-left { min-width: 0; }
body.collect-stats-on .collect-set-appid,
body.collect-stats-on .collect-set-price-value { min-width: 0; }

body.collect-stats-on .collect-set-cards {
  border-top: 1px solid var(--border);
  padding: 12px 0 0;
}
.collect-set-appid-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  flex-shrink: 0;
  margin-left: 2px;
}
.collect-set-appid {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-dim);
  padding: 2px 7px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 4px;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.collect-set-price {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  flex-shrink: 0;
}
.collect-set-price-label {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.collect-set-price-value {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.collect-set-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  color: var(--text-dim);
  font-size: 11.5px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.collect-set-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  border-color: var(--border-strong);
}

.collect-set-cards {
  grid-area: cards;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 2px 0;
  border-top: 0 solid var(--border);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
  transition:
    padding 0.32s cubic-bezier(.2, .65, .25, 1),
    border-top-width 0.32s cubic-bezier(.2, .65, .25, 1),
    gap 0.32s cubic-bezier(.2, .65, .25, 1);
}
.collect-set-cards::-webkit-scrollbar { height: 6px; }
.collect-set-cards::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 3px;
}
.collect-set-cards::-webkit-scrollbar-track { background: transparent; }

body.collect-stats-on .collect-set-cards {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  justify-content: start;
  overflow-x: auto;
  overflow-y: hidden;
}

.collect-tile-card {
  display: block;
  width: 42px;
  flex-shrink: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  overflow: visible;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    width 0.32s cubic-bezier(.2, .65, .25, 1);
}
body.collect-stats-on .collect-tile-card { width: 96px; }
.collect-tile-card-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.02);
}
.collect-tile-card:hover {
  transform: scale(1.08);
  z-index: 2;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

body.collect-stats-on .collect-tile-card:hover {
  transform: scale(1.25);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
}

@media (max-width: 880px) {
  .collect-set,
  body.collect-stats-on .collect-set {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "name  name"
      "left  right"
      "cards cards";
    column-gap: 8px;
    row-gap: 8px;
    padding: 10px 12px;
  }

  .collect-set-head-left,
  body.collect-stats-on .collect-set-head-left {
    min-width: 0;
    flex-wrap: wrap;
    gap: 8px;
    row-gap: 6px;
  }
  .collect-set-name,
  body.collect-stats-on .collect-set-name {
    justify-self: stretch;
    text-align: left;
    max-width: 100%;
    padding-left: 0;
  }
  .collect-set-head-right { justify-self: end; gap: 6px; }
  .collect-set-cards,
  body.collect-stats-on .collect-set-cards { justify-self: stretch; width: 100%; }
  
  .collect-set-price-label,
  .collect-set-appid-label { display: none; }
}

.collect-filter-bar {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 40px;
}
.collect-filter-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-right: 6px;
}
.collect-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 12px;
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: 0;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.collect-filter-label { flex-shrink: 0; }
.collect-filter-pill:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.collect-filter-pill.active { color: var(--text); background: rgba(255, 255, 255, 0.08); }
.collect-filter-sep {
  width: 1px;
  height: 18px;
  margin: 0 6px;
  background: var(--border);
  pointer-events: none;
  flex-shrink: 0;
}

.collect-sort-stack {
  display: inline-grid;
  grid-template-columns: auto;
  grid-template-rows: auto;
  align-items: center;
}
.collect-sort-group {
  grid-column: 1;
  grid-row: 1;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-1px);
  transform-origin: left center;
  transition:
    opacity 0.16s ease,
    transform 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}
.collect-sort-group.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
  transition:
    opacity 0.22s ease 0.06s,
    transform 0.24s cubic-bezier(0.4, 0, 0.2, 1) 0.06s;
}

.collect-filter-icon {
  display: inline-flex;
  align-items: center;
  color: var(--text-muted);
  padding-right: 6px;
  flex-shrink: 0;
}

.collect-stats-toggle { gap: 10px; }
.collect-stats-switch {
  position: relative;
  width: 28px;
  height: 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0;
}
.collect-stats-switch-dot {
  position: absolute;
  top: 1px;
  left: 1px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text-faint);
  transition: transform 0.2s, background 0.2s;
}
.collect-stats-toggle.is-on { color: var(--text); background: rgba(255, 255, 255, 0.08); }
.collect-stats-toggle.is-on .collect-stats-switch-dot {
  transform: translateX(12px);
  background: var(--success);
}

.collect-tile-stats {
  display: inline-flex;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transform: translateY(4px);
  pointer-events: none;
  transition:
    opacity 0.38s cubic-bezier(.2, .65, .25, 1),
    transform 0.38s cubic-bezier(.2, .65, .25, 1),
    max-height 0.38s cubic-bezier(.2, .65, .25, 1);
}
body.collect-stats-on .collect-tile-stats {
  opacity: 1;
  max-height: 22px;
  transform: translateY(0);
}

.collect-tile-emoji .collect-tile-stats {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-dim);
  width: 100%;
  justify-content: center;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.collect-tile-bg .collect-tile-stats {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 3px 6px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0));
  text-align: center;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  border-bottom-left-radius: inherit;
  border-bottom-right-radius: inherit;
}

.collect-tile-card-count,
.collect-tile-card-price {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  padding: 3px 6px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  opacity: 0;
  transition:
    opacity 0.38s cubic-bezier(.2, .65, .25, 1),
    transform 0.38s cubic-bezier(.2, .65, .25, 1);
}
.collect-tile-card-count { transform: translateY(-6px); }
.collect-tile-card-price { transform: translateY(6px); }
.collect-tile-card-count {
  top: 0;
  text-align: left;
  padding: 5px 7px 14px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.85) 45%, rgba(0, 0, 0, 0) 100%);
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}
.collect-tile-card-price {
  bottom: 0;
  text-align: center;
  padding: 14px 6px 5px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.85) 45%, rgba(0, 0, 0, 0) 100%);
  border-bottom-left-radius: inherit;
  border-bottom-right-radius: inherit;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}
.collect-tile-card-count-label {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
}
body.collect-stats-on .collect-tile-card-count,
body.collect-stats-on .collect-tile-card-price {
  opacity: 1;
  transform: translateY(0);
}

@keyframes attr-flash-red {
  0%, 100% { background: rgba(255, 80, 80, 0); box-shadow: 0 0 0 0 rgba(255, 80, 80, 0); }
  50%      { background: rgba(255, 80, 80, 0.42); box-shadow: 0 0 0 2px rgba(255, 80, 80, 0.85), 0 0 14px 4px rgba(255, 60, 60, 0.55); }
}
.feed-attr.is-flash-current {
  position: relative;
  z-index: 30;
  border-radius: 6px;
  animation: attr-flash-red 0.5s ease-in-out 3;
}

.feed-attr.is-flash-current .feed-attr-img {
  transform: none !important;
  box-shadow: none !important;
}

#attr-flash-toast {
  position: fixed;
  z-index: 9999;
  font: 500 11px/1 'Inter', sans-serif;
  letter-spacing: 0.02em;
  color: rgba(255, 130, 130, 0.92);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -10px) scale(0.8);
  transform-origin: top center;
  transition:
    opacity 0.24s ease,
    transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
}
#attr-flash-toast.visible {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

@media (max-width: 880px) {

  body.view-items .drawer-toggle,
  body.view-attrs .drawer-toggle,
  body.view-antiscam .drawer-toggle,
  body.view-mispriced .drawer-toggle {
    display: flex;
    pointer-events: auto;
    visibility: visible;
    opacity: 1;
    right: 0;
  }

  body.drawer-open .drawer-toggle {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  body.view-items .search-pill,
  body.view-attrs .search-pill,
  body.view-antiscam .search-pill,
  body.view-mispriced .search-pill,
  body.view-feed .search-pill {
    left: 12px;
    right: 68px;
    width: auto;
  }

  body.view-names .names-page-head > .search-pill {
    position: static;
    left: auto;
    right: auto;
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
  }
}

:root {
  --digit-dur: 500ms;
  --digit-distance: 8px;
  --digit-stagger: 70ms;
  --digit-blur: 2px;
  --digit-ease: cubic-bezier(0.34, 1.45, 0.64, 1);
  --digit-dir-x: 0;
  --digit-dir-y: 1;
}
@keyframes t-digit-pop-in {
  0%   {
    transform: translate(
      calc(var(--digit-distance) * var(--digit-dir-x)),
      calc(var(--digit-distance) * var(--digit-dir-y))
    );
    opacity: 0;
    filter: blur(var(--digit-blur));
  }
  100% { transform: translate(0, 0); opacity: 1; filter: blur(0); }
}
.t-digit-group {
  display: inline-flex;
  align-items: baseline;
}
.t-digit {
  display: inline-block;
  will-change: transform, opacity, filter;
}
.t-digit.is-animating {
  animation: t-digit-pop-in var(--digit-dur) var(--digit-ease) both;
}
.t-digit.is-animating[data-stagger="1"] {
  animation-delay: var(--digit-stagger);
}
.t-digit.is-animating[data-stagger="2"] {
  animation-delay: calc(var(--digit-stagger) * 2);
}
@media (prefers-reduced-motion: reduce) {
  .t-digit { animation: none !important; }
}

:root {
  --resize-dur: 220ms;
  --resize-ease: cubic-bezier(0.22, 1, 0.36, 1);
}
.t-resize,
.side-shell,
.panel-head,
.collect-page-head,
.names-page-head,
.collect-pagination-header,
.names-pagination-header {
  transition:
    width   var(--resize-dur) var(--resize-ease),
    height  var(--resize-dur) var(--resize-ease),
    padding var(--resize-dur) var(--resize-ease);
}
@media (prefers-reduced-motion: reduce) {
  .t-resize,
  .side-shell,
  .nav-link,
  .nav-game,
  .search-pill,
  .kpi-card,
  .panel,
  .panel-head,
  .day-nav-arrow,
  .collect-page-head,
  .names-page-head,
  .collect-pagination-header,
  .names-pagination-header {
    transition: none !important;
  }
}

body.is-resizing .side-shell,
body.is-resizing .search-pill,
body.is-resizing .suspects-subbar {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.suspects-body,
.antiscam-list,
.mispriced-list {
  contain: paint;
}

@media (max-width: 430px) {
  body.view-feed .panel-feed > .panel-head .live-label-tail { display: none; }
}

@media (max-width: 880px) {

  .item-sales-panel { flex: none; }
  .item-sales-list {
    display: grid;
    max-height: calc(100vh - 195px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    
    grid-template-columns:
      minmax(0, 5fr)
      minmax(0, 8fr)
      minmax(0, 5fr)
      minmax(0, 2fr);
    column-gap: 8px;
    align-content: start;
  }
  .item-sales-list .sale-row {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: subgrid;
    grid-template-rows: auto auto;

    gap: 6px 8px;
    padding: 10px 12px;
    font-size: 11px;
    white-space: nowrap;
  }
  
  .item-sales-list .sale-row > span { overflow: hidden; }

  .item-sales-list .sale-listing .sale-listing-link { display: none; }

  .item-sales-list .sale-cur { gap: 4px; }
  .item-sales-list .sale-cur .sale-cur-side {
    min-width: 0;
    overflow: hidden;
  }
  .item-sales-list .sale-row > span,
  .item-sales-list .sale-row > a {
    border-left: 0;
    padding: 0;
    justify-content: flex-start;
    min-width: 0;
  }

  .item-sales-list .sale-time          { grid-column: 1; grid-row: 1; }
  .item-sales-list .sale-cur           { grid-column: 2; grid-row: 1; overflow: hidden; }
  .item-sales-list .sale-row > .sale-price {
    grid-column: 3;
    grid-row: 1;

    justify-content: flex-start;
  }
  .item-sales-list .sale-row > .sale-link-cell {
    grid-column: 4;
    grid-row: 1 / 3;
    justify-content: flex-end;
    align-self: center;
  }
  .item-sales-list .sale-listing       { grid-column: 1; grid-row: 2; overflow: hidden; }
  .item-sales-list .sale-asset         { grid-column: 2; grid-row: 2; overflow: hidden; }

  .item-sales-list .sale-asset .sale-asset-before,
  .item-sales-list .sale-asset .sale-asset-after {
    display: block;
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .item-sales-list .sale-asset .sale-asset-before { text-align: right; }
  .item-sales-list .sale-asset .sale-asset-after  { text-align: left; }
  .item-sales-list .sale-cur .sale-cur-side {
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
  }
  .item-sales-list .sale-cur .sale-cur-side:first-child { justify-content: flex-end; }
  .item-sales-list .sale-cur .sale-cur-side:last-child  { justify-content: flex-start; }
  .item-sales-list .sale-cur .sale-asset-arrow,
  .item-sales-list .sale-asset .sale-asset-arrow { flex-shrink: 0; }
  .item-sales-list .sale-row > .sale-attrs {

    grid-column: 3;
    grid-row: 2;
    min-width: 0;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
  }
  .item-sales-list .sale-row > .sale-attrs::-webkit-scrollbar { display: none; }

  body.view-attr .item-sales-list {

    grid-template-columns:
      44px     
      120px    
      200px    
      150px    
      33px;    
    overflow-x: auto;
  }

  body.view-attr .item-sales-list .sale-row > .sale-attrs {
    overflow: visible;
    flex-wrap: nowrap;
  }
  body.view-attr .item-sales-list .sale-row > .sale-item {
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
  }
  body.view-attr .item-sales-list .sale-item-text { display: none; }
  body.view-attr .item-sales-list .sale-item-thumb { width: 38px; height: 38px; }

  body.view-attr .item-sales-list .sale-time    { grid-column: 2; grid-row: 1; }
  body.view-attr .item-sales-list .sale-cur     { grid-column: 3; grid-row: 1; }
  body.view-attr .item-sales-list .sale-row > .sale-price     { grid-column: 4; grid-row: 1; }
  body.view-attr .item-sales-list .sale-row > .sale-link-cell { grid-column: 5; grid-row: 1 / 3; }
  body.view-attr .item-sales-list .sale-listing { grid-column: 2; grid-row: 2; }
  body.view-attr .item-sales-list .sale-asset   { grid-column: 3; grid-row: 2; }
  body.view-attr .item-sales-list .sale-row > .sale-attrs { grid-column: 4; grid-row: 2; }

  body.view-attr:not(.sales-expanded) .item-page-hero-left { gap: 10px; }
  body.view-attr:not(.sales-expanded) .item-page-hero-left .attr-standalone-slot { position: static; }

  body.view-attr:not(.sales-expanded) .item-page-hero-left .item-page-thumb-img {
    height: 100%;
    bottom: 0;
  }
  body.view-attr:not(.sales-expanded) .item-page-hero-left .item-page-thumb {
    border-bottom-left-radius: var(--radius);
    border-bottom-right-radius: var(--radius);
  }
  body.view-attr .attr-standalone-row {
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.06);
  }
}

#collect-frame,
.names-body { position: relative; }
.section-loading-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 6;
  pointer-events: none;
}

@media (max-width: 1180px) and (min-width: 881px) {
  body.view-items .items-page { overflow-x: hidden; }
  body.view-antiscam .suspects-body,
  body.view-mispriced .suspects-body { overflow-x: hidden; }
  .items-list,
  .antiscam-list,
  .mispriced-list {
    width: 100%;
    min-width: 0;
    grid-template-columns:
      minmax(150px, 1.4fr)        
      max-content                 
      minmax(235px, 1fr)

      max-content                 
      max-content;                
  }
  
  .items-sale-row .sale-item-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .items-sale-row .antiscam-links,
  .antiscam-sale-row .antiscam-links,
  .mispriced-sale-row .antiscam-links {
    flex-direction: column;
    gap: 4px;
  }

  .items-sale-row .antiscam-assets,
  .antiscam-sale-row .antiscam-assets,
  .mispriced-sale-row .antiscam-assets { min-width: 0; overflow: hidden; }
  .items-sale-row .antiscam-asset-line,
  .items-sale-row .antiscam-amts-line,
  .antiscam-sale-row .antiscam-asset-line,
  .antiscam-sale-row .antiscam-amts-line,
  .mispriced-sale-row .antiscam-asset-line,
  .mispriced-sale-row .antiscam-amts-line { min-width: 0; max-width: 100%; }
  .items-sale-row .antiscam-amt,
  .items-sale-row .antiscam-asset-cell,
  .antiscam-sale-row .antiscam-amt,
  .antiscam-sale-row .antiscam-asset-cell,
  .mispriced-sale-row .antiscam-amt,
  .mispriced-sale-row .antiscam-asset-cell {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (min-width: 881px) {

  body.game-drawer-overlay.view-game.drawer-open .drawer-toggle {
    right: calc(var(--drawer-w) - 1px);
    pointer-events: auto;
    background: rgba(15, 15, 17, 0.97);
  }
  body.items-drawer-overlay.view-items.drawer-open .drawer-toggle,
  body.antiscam-drawer-overlay.view-antiscam.drawer-open .drawer-toggle,
  body.antiscam-drawer-overlay.view-mispriced.drawer-open .drawer-toggle {
    right: calc(var(--attrs-filter-w) - 1px);
    pointer-events: auto;
  }
  body.items-drawer-overlay.view-items.drawer-open .drawer-toggle {
    background: rgba(15, 15, 17, 0.97);
  }

  body.game-drawer-overlay.view-game { --drawer-w: 460px; }

  body.game-drawer-overlay.view-game #drawer {
    background: rgba(15, 15, 17, 0.97);
  }
  body.items-drawer-overlay.view-items .items-filter-drawer {
    background: rgba(15, 15, 17, 0.97);
  }
}

@media (max-width: 1180px) and (min-width: 881px) {
  body.view-attrs:not(.attrs-filters-collapsed) .attrs-filter-toggle {
    display: flex;

    right: calc(var(--attrs-filter-w) - 1px);
    background: rgba(15, 15, 17, 0.88);
    backdrop-filter: blur(28px) saturate(160%);
    -webkit-backdrop-filter: blur(28px) saturate(160%);
    border-color: var(--border);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.04) inset,
      -14px 0 40px rgba(0, 0, 0, 0.4);
  }
}

.items-filter-drawer [data-dota-subtype] em { display: none; }
.items-filter-drawer .cs2-filter-type-pill[data-dota-subtype] .cs2-filter-type-label {
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 881px) {
  .drawer-toggle, .attrs-filter-toggle { display: none !important; }

  #drawer, .items-filter-drawer, .antiscam-filter-drawer,
  .mispriced-filter-drawer, .attrs-filter-drawer {
    background: none !important;
    border-color: transparent !important;

    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.04) inset,
      -16px 0 48px rgba(0, 0, 0, 0.45) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    overflow: visible !important; 
  }

  #drawer {
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.04) inset,
      -24px 0 60px rgba(0, 0, 0, 0.55) !important;
  }

  body.view-items .items-filter-drawer,
  body.view-antiscam .antiscam-filter-drawer,
  body.view-mispriced .mispriced-filter-drawer,
  body.view-attrs .attrs-filter-drawer,
  #drawer { opacity: 1 !important; }

  .panel-chrome {
    position: absolute;

    top: -1px; bottom: -1px; right: 0;
    left: -45px;
    z-index: -1;
    pointer-events: none;
    background: rgba(15, 15, 17, 0.88);
    backdrop-filter: blur(28px) saturate(160%);
    -webkit-backdrop-filter: blur(28px) saturate(160%);

  }
  .panel-chrome svg { position: absolute; inset: 0; overflow: visible; display: block; }
  .panel-chrome svg path { fill: none; stroke: var(--border); stroke-width: 1; }

  body.items-drawer-overlay.view-items .items-filter-drawer .panel-chrome {
    background: rgba(15, 15, 17, 0.97);
  }
  body.game-drawer-overlay.view-game #drawer .panel-chrome {
    background: rgba(15, 15, 17, 0.88);
  }
  body.game-drawer-overlay.view-game #drawer .drawer-head {
    background: rgba(16, 16, 18, 0.96);
  }

  .panel-tab {
    position: absolute;
    left: -45px; 
    width: 44px;
    height: 156px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0;

    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03)),
      rgba(18, 18, 21, 0.92);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-right: 0;
    border-radius: 14px 0 0 14px;
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.08) inset,
      -4px 0 24px rgba(255, 255, 255, 0.05),
      -14px 0 40px rgba(0, 0, 0, 0.55);
    color: var(--text);
    cursor: pointer;
    z-index: 2;
    pointer-events: auto;
    -webkit-user-select: none;
    user-select: none;
    touch-action: none;
    transition:
      background var(--dur-morph) var(--ease-glass),
      border-color var(--dur-morph) var(--ease-glass),
      box-shadow var(--dur-morph) var(--ease-glass);
  }
  .panel-tab:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05)),
      rgba(24, 24, 28, 0.95);
  }
  
  body.drawer-open #drawer .panel-tab,
  body.drawer-open .items-filter-drawer .panel-tab,
  body.drawer-open .antiscam-filter-drawer .panel-tab,
  body.drawer-open .mispriced-filter-drawer .panel-tab,
  body.view-attrs:not(.attrs-filters-collapsed) .attrs-filter-drawer .panel-tab {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-color: transparent;
    box-shadow: none;
  }
  .panel-tab .panel-tab-text {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--text);
  }
  .panel-tab svg { color: var(--text-muted); transition: transform 0.3s ease; }
  .panel-tab:hover svg { color: var(--text); }
  body.drawer-open #drawer .panel-tab svg,
  body.drawer-open .items-filter-drawer .panel-tab svg,
  body.drawer-open .antiscam-filter-drawer .panel-tab svg,
  body.drawer-open .mispriced-filter-drawer .panel-tab svg,
  body.view-attrs:not(.attrs-filters-collapsed) .attrs-filter-drawer .panel-tab svg {
    transform: rotate(180deg);
  }

  .panel-tab.is-dragging { cursor: grabbing; }
  .panel-tab.is-dragging .panel-tab-text { color: var(--text); }

  .panel-tab::after,
  .panel-tab::before {
    content: '';
    position: absolute;
    left: -1px; right: 0;
    height: 58px;
    background: rgba(248, 81, 73, 0.4);
    pointer-events: none;
    transition: opacity 0.08s linear;
  }
  .panel-tab::after {
    top: -1px;
    border: 1px solid rgba(248, 81, 73, 0.95);
    border-right: 0;
    border-bottom: 0;
    border-radius: 14px 0 0 0;
    -webkit-mask-image: linear-gradient(to bottom, #000 0, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0, transparent 100%);
    opacity: var(--edge-top, 0);
  }
  .panel-tab::before {
    bottom: -1px;
    border: 1px solid rgba(248, 81, 73, 0.95);
    border-right: 0;
    border-top: 0;
    border-radius: 0 0 0 14px;
    -webkit-mask-image: linear-gradient(to top, #000 0, transparent 100%);
    mask-image: linear-gradient(to top, #000 0, transparent 100%);
    opacity: var(--edge-bottom, 0);
  }

  body.view-game.drawer-open:not(.game-drawer-overlay) #drawer .panel-tab,
  body.view-items.drawer-open:not(.items-drawer-overlay) .items-filter-drawer .panel-tab,
  body.view-antiscam.drawer-open:not(.antiscam-drawer-overlay) .antiscam-filter-drawer .panel-tab,
  body.view-mispriced.drawer-open:not(.antiscam-drawer-overlay) .mispriced-filter-drawer .panel-tab {
    display: none;
  }
  @media (min-width: 1181px) {
    body.view-attrs:not(.attrs-filters-collapsed) .attrs-filter-drawer .panel-tab { display: none; }
  }

  body.view-feed #drawer .panel-tab,
  body.view-items #drawer .panel-tab,
  body.view-attrs #drawer .panel-tab,
  body.view-antiscam #drawer .panel-tab,
  body.view-mispriced #drawer .panel-tab,
  body.view-item #drawer .panel-tab,
  body.view-attr #drawer .panel-tab,
  body.view-names #drawer .panel-tab,
  body.view-collect #drawer .panel-tab { display: none; }
}
@media (max-width: 880px) {
  .panel-chrome, .panel-tab { display: none !important; }
}

.list-end-indicator {
  color: var(--text-dim);
  gap: 8px;

  animation: none;
}

@media (max-width: 1520px) and (min-width: 881px) {
  .suspects-head { grid-template-columns: auto auto 1fr; }
  .suspects-head-center { justify-self: start; }

  .suspects-head-left { min-width: max-content; }
  .suspects-head-right { min-width: 200px; }
}

@media (max-width: 880px) {
  .side-shell { justify-content: space-between; }
  .side-shell > .nav-group {
    flex: 1 1 auto;
    justify-content: space-evenly;
    min-width: max-content;
  }
}

.antiscam-sale-row .sale-item-name,
.mispriced-sale-row .sale-item-name,
.antiscam-sale-row .sale-item-meta,
.mispriced-sale-row .sale-item-meta {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: normal;
  overflow-wrap: anywhere;
  text-overflow: clip;
}

@media (max-width: 880px) {
  .antiscam-list,
  .mispriced-list {
    grid-template-columns:
      200px                       
      max-content                 
      220px                       
      max-content                 
      max-content;                
  }
}

@container (max-width: 480px) {
  body.view-game .trending-row--stats > .feed-body,
  body.view-game .trending-row--stats > .tstat-spark,
  body.view-game .trending-sort-row > .tsort-spacer--name,
  body.view-game .trending-sort-row > .tsort-spacer--spark { display: none; }
  body.view-game .trending-row--stats,
  body.view-game .trending-sort-row,
  body.game-drawer-overlay.view-game .trending-row--stats,
  body.game-drawer-overlay.view-game .trending-sort-row {
    column-gap: 6px;
    grid-template-columns:
      40px                        
      minmax(48px, 1fr)           
      84px                        
      76px                        
      20px;                       
  }
}

@media (max-width: 380px) {
  .items-list,
  .antiscam-list,
  .mispriced-list {
    grid-template-columns:
      max-content                 
      220px                       
      max-content                 
      max-content;                
  }
  .items-sale-row .sale-item,
  .antiscam-sale-row .sale-item,
  .mispriced-sale-row .sale-item { display: none; }
}

@media (max-width: 880px) {

  .game-filter-group {
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .game-filter-group::-webkit-scrollbar { display: none; }
}

@container (max-width: 480px) {
  body.view-dashboard .panel-feed .panel-head-title-feed,
  body.view-dashboard .panel-feed #feed-panel-sub {
    visibility: hidden;
  }
}

#trending-sub { white-space: nowrap; overflow: hidden; }
#trending-sub.sub-cramped #trending-sub-prefix { display: none; }

@media (max-width: 420px) {
  body.view-feed .feed-row {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) max-content;
    grid-template-areas:
      "thumb name  name"
      "thumb meta  cur"
      "attrs attrs price";
    column-gap: 10px;
    row-gap: 4px;
    align-items: center;
  }
  body.view-feed .feed-row .item-thumb { grid-area: thumb; }
  
  body.view-feed .feed-row .feed-body { display: contents; }
  body.view-feed .feed-row .feed-name { grid-area: name; min-width: 0; }
  body.view-feed .feed-row .feed-meta {
    grid-area: meta;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  body.view-feed .feed-row .feed-cur { grid-area: cur; justify-self: end; margin-left: 0; }
  body.view-feed .feed-row .sale-attrs { grid-area: attrs; justify-self: start; min-width: 0; }
  body.view-feed .feed-row .sale-attrs:empty { display: none; }
  body.view-feed .feed-row .feed-price { grid-area: price; justify-self: end; text-align: right; }
  body.view-feed .feed-row .feed-listing { display: none; }
}

.maint-screen {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--bg);

  -webkit-user-select: none;
  user-select: none;
  
  background-image: radial-gradient(120% 90% at 50% 18%, rgba(255,255,255,0.04), transparent 60%);
}

html.maintenance, html.maintenance body { overflow: hidden; }
html.maintenance .maint-screen { display: flex; }
html.maintenance.js-maint .maint-screen { animation: maint-fade 0.4s ease both; }
@keyframes maint-fade { from { opacity: 0; } to { opacity: 1; } }
.maint-frame {
  position: relative;
  width: 100%;
  max-width: 460px;
  padding: clamp(30px, 5vw, 54px) clamp(24px, 4vw, 44px);
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.55);
}

.maint-lang { position: absolute; top: 12px; right: 12px; display: inline-flex; gap: 2px; }
.maint-lang-btn {
  height: 26px;
  padding: 0 9px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
  background: transparent;
  border: 0;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.maint-lang-btn:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.maint-lang-btn.is-active { color: var(--text); background: rgba(255, 255, 255, 0.08); }

.maint-heart { display: inline-flex; vertical-align: -2px; margin-left: 5px; color: #e06c6c; cursor: pointer; transition: transform 0.15s; }
.maint-heart:hover { transform: scale(1.18); }
.maint-heart svg { display: block; }

.maint-head.is-hovering { animation: info-pulse 1.4s ease-in-out infinite; }

.maint-head {
  position: relative;
  width: clamp(128px, 24vmin, 188px);
  aspect-ratio: 1;
  margin: 0 auto 18px;
  cursor: pointer;
  touch-action: manipulation;
}
.maint-hearts { position: absolute; inset: -25%; pointer-events: none; z-index: 3; }
.maint-title {
  margin: 0 0 10px;
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}
.maint-msg {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
}

@media (max-width: 1180px) {
  .maint-frame { max-width: 440px; }
}

@media (max-width: 600px) {
  .maint-screen { padding: 16px; }
  .maint-frame {
    max-width: 420px;
    padding: clamp(26px, 7vw, 40px) clamp(20px, 6vw, 30px);
    border-radius: 16px;
  }
  .maint-head { width: clamp(116px, 40vw, 168px); margin-bottom: 14px; }
  .maint-title { font-size: clamp(17px, 5vw, 20px); }
  .maint-msg { font-size: 13.5px; }
}
@media (max-width: 380px) {
  .maint-frame { padding: 24px 18px; }
  .maint-head { width: 44vw; }
}
@media (prefers-reduced-motion: reduce) {
  html.maintenance .maint-screen { animation: none; }
}
