:root {
  --graphite-deep: #0b0d10;
  --graphite: #12151a;
  --graphite-mid: #1c2128;
  --graphite-lift: #242a33;
  --ice: #8fd4f2;
  --ice-bright: #c5ecff;
  --ice-dim: #6bb3d0;
  --text: #d7e6ee;
  --mute: rgba(173, 198, 210, 0.62);
  --line: rgba(143, 212, 242, 0.16);
  --gold: #e8c36a;
  --electric: #ffe566;
  --fairy: #ff8cc8;
  --water: #5ad2ff;
  --grass: #7ed0a8;
  --glass: rgba(255, 255, 255, 0.03);
  --glass-strong: rgba(255, 255, 255, 0.055);
  --glass-border: rgba(143, 212, 242, 0.16);
  --glass-shadow: none;
  --glass-blur: blur(12px);

  /* Ice is the only accent that means "you can act on this". The colours below
     are data, not decoration: they always encode the same meaning wherever
     they appear, so don't reach for them to add visual interest. */
  --accent: var(--ice);
  --accent-bright: var(--ice-bright);
  --on-accent: #08131a;
  --rank: var(--gold);
  --live: var(--fairy);
  --buy: var(--water);

  /* Surface ladder. Every panel picks a rung; nothing invents its own fill. */
  --surface-sunken: rgba(8, 10, 13, 0.55);
  --surface: rgba(18, 21, 26, 0.55);
  --surface-raised: rgba(28, 33, 40, 0.72);
  --surface-overlay: rgba(11, 13, 16, 0.92);
  /* The well card art sits in, so scans with transparent edges read as framed. */
  --art-well: #151c27;

  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 26px;
  --r-pill: 999px;

  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;

  --e-1: 0 1px 2px rgba(0, 0, 0, 0.4);
  --e-2: 0 6px 16px rgba(0, 0, 0, 0.45);
  --e-3: 0 18px 40px rgba(0, 0, 0, 0.55);

  --dur-1: 120ms;
  --dur-2: 200ms;
  --dur-3: 320ms;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--graphite-deep);
  color: var(--text);
  font-family: Manrope, "Segoe UI", system-ui, sans-serif;
}

h1, h2, .brand {
  font-family: Syne, Manrope, sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
}

[hidden] { display: none !important; }

#app {
  height: 100dvh;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background:
    radial-gradient(900px 420px at 80% -10%, rgba(143, 212, 242, 0.10), transparent 50%),
    var(--graphite-deep);
}

#topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: calc(12px + env(safe-area-inset-top)) 20px 12px;
  background: rgba(11, 13, 16, 0.86);
  border-bottom: 1px solid var(--line);
  z-index: 6;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

#tabbar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
  gap: 0;
  padding: var(--s-1) var(--s-2) calc(var(--s-2) + env(safe-area-inset-bottom));
  background: var(--surface-overlay);
  border-top: 1px solid var(--line);
  z-index: 6;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.brand {
  margin: 0;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
  text-decoration: none;
}

.brand img {
  display: block;
  height: 28px;
  width: auto;
  max-width: 46vw;
}

#screen-title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.top-meta,
.handle {
  color: rgba(215, 230, 238, 0.78);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  max-width: 28vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.handle { color: var(--ice); }

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex-wrap: nowrap;
}

@media (max-width: 480px) {
  #topbar { gap: 10px; padding-left: 16px; padding-right: 16px; }
  .brand img { height: 26px; }
  .top-meta, .handle { font-size: 0.78rem; max-width: 26vw; }
  .topbar-actions { gap: 10px; }
}

.alerts-button {
  appearance: none;
  position: relative;
  border: 0;
  background: none;
  color: var(--mute);
  width: 36px;
  height: 36px;
  padding: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.alerts-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.alerts-button span {
  position: absolute;
  top: 2px;
  right: 1px;
  display: grid;
  place-items: center;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  border-radius: var(--r-pill);
  background: var(--ice);
  color: var(--graphite-deep);
  font-size: 0.58rem;
  font-weight: 800;
}

#tabbar .tab {
  appearance: none;
  position: relative;
  border: 0;
  background: none;
  color: rgba(173, 198, 210, 0.52);
  font: inherit;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0;
  padding: var(--s-2) 0 var(--s-1);
  cursor: pointer;
  display: grid;
  justify-items: center;
  gap: var(--s-1);
  transition: color var(--dur-2) var(--ease);
}

#tabbar .tab svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linejoin: round;
  stroke-linecap: round;
  transition: transform var(--dur-2) var(--ease-out);
}

#tabbar .tab.active {
  color: var(--accent);
}

#tabbar .tab.active svg { transform: translateY(-1px) scale(1.04); }
#tabbar .tab:active svg { transform: scale(0.92); }

/* Scan is the centre tab and the only raised one: it is what the app is for. */
#tabbar .tab[data-screen="scan"] svg {
  width: 26px;
  height: 26px;
  padding: 9px;
  box-sizing: content-box;
  border-radius: var(--r-lg);
  color: var(--on-accent);
  background: linear-gradient(180deg, var(--accent-bright), var(--accent));
  box-shadow: var(--e-2), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  margin-top: -18px;
}

#tabbar .tab[data-screen="scan"].active { color: var(--accent); }
#tabbar .tab[data-screen="scan"].active svg { transform: translateY(-2px) scale(1.04); }

#stage-wrap {
  min-height: 0;
  height: 100%;
  overflow: hidden;
  display: grid;
  padding: 0;
}

.screen {
  height: 100%;
  position: relative;
  overflow: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.screen:not([hidden]) {
  animation: screenIn var(--dur-2) var(--ease-out) both;
}

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

/* Anything tappable acknowledges the tap. Transform only, so it never reflows. */
.app-btn,
.pull-btn,
.ice-btn,
.text-btn,
.chip-row button,
.filter-chip,
.jump-go,
.spot-card,
.cotd,
.home-board-jump,
.listing,
.binder-tile {
  transition:
    transform var(--dur-1) var(--ease),
    background var(--dur-2) var(--ease),
    border-color var(--dur-2) var(--ease),
    box-shadow var(--dur-2) var(--ease);
}

.app-btn:active,
.pull-btn:active,
.ice-btn:active,
.chip-row button:active,
.filter-chip:active,
.jump-go:active { transform: scale(0.97); }

.spot-card:active,
.cotd:active,
.home-board-jump:active,
.listing:active,
.binder-tile:active { transform: scale(0.985); }

.spot-card:hover,
.home-board-jump:hover,
.binder-tile:hover { border-color: color-mix(in srgb, var(--accent) 34%, transparent); }

#scan-screen {
  overflow: hidden;
  background: #0a0c0f;
}

#stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

#shade .window {
  position: absolute;
  left: 50%;
  top: 40%;
  width: min(72vw, 288px);
  aspect-ratio: 63 / 88;
  transform: translate(-50%, -50%);
  border-radius: var(--r-xs);
  box-shadow: 0 0 0 9999px rgba(8, 10, 14, 0.72);
  transition: left 0.12s linear, top 0.12s linear, width 0.12s linear, height 0.12s linear;
}
#shade .window::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(197, 236, 255, 0.12);
  border-radius: 2px;
  pointer-events: none;
}

#shade .window.tracked {
  transform: none;
  aspect-ratio: auto;
}

/* =========================================================================
   SmartGate Coliseum Optical Scanner & Biometric Card HUD
   ========================================================================= */

#scanner-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.scan-modes { display: none; }

.scan-mode-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  font: inherit;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  cursor: pointer;
}

.scan-mode-btn.active {
  background: #fff;
  color: #111820;
}

/* Minimalist Biometric Corner Brackets */
.tick {
  position: absolute;
  width: 28px;
  height: 28px;
  border: 2px solid rgba(197, 236, 255, 0.88);
  transition: border-color 0.25s, transform 0.25s, filter 0.25s;
}
.tick.tl { top: -1px; left: -1px; border-right: 0; border-bottom: 0; border-radius: 0; }
.tick.tr { top: -1px; right: -1px; border-left: 0; border-bottom: 0; border-radius: 0; }
.tick.bl { bottom: -1px; left: -1px; border-right: 0; border-top: 0; border-radius: 0; }
.tick.br { bottom: -1px; right: -1px; border-left: 0; border-top: 0; border-radius: 0; }

.window.detecting .tick {
  border-color: var(--ice-bright);
  filter: drop-shadow(0 0 8px rgba(143, 212, 242, 0.55));
}

.window.locked .tick {
  border-color: #ffffff;
  filter: drop-shadow(0 0 10px rgba(197, 236, 255, 0.9));
}

/* SmartGate Telemetry HUD Readout */
.scan-hud {
  position: absolute;
  left: 18px;
  right: 18px;
  top: auto;
  bottom: 118px;
  z-index: 3;
  display: grid;
  justify-items: center;
  gap: 4px;
  pointer-events: none;
  padding: 10px 14px;
  border-radius: var(--r-lg);
  background: rgba(10, 14, 18, 0.48);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  width: auto;
  margin: 0;
}

.scan-step {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ice);
}

#pull-step {
  margin: 0 0 4px;
}

.hud-status {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: rgba(255, 255, 255, 0.88);
  text-align: center;
}

#scan-tip,
.hint {
  margin: 0;
  color: var(--mute);
  font-size: 0.78rem;
  text-align: center;
  line-height: 1.35;
  max-width: 280px;
}

.scan-catalog-link {
  pointer-events: auto;
  margin: 4px 0 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ice);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.window.detecting ~ .scan-hud .hud-status,
.window.locked ~ .scan-hud .hud-status {
  color: #fff;
  text-shadow: none;
}

.pull-name-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin: 6px 0 10px;
}

#pull-name[contenteditable="true"] {
  outline: none;
  cursor: text;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.3);
  padding: 2px 8px;
  border-radius: var(--r-xs);
  transition: all 0.2s ease;
}

#pull-name[contenteditable="true"]:focus {
  border-bottom-color: var(--ice);
  background: rgba(255, 255, 255, 0.06);
}

.edit-hint {
  font-size: 0.68rem;
  color: var(--ice-dim);
  letter-spacing: 0.04em;
}

#lock-copy {
  margin: 0;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.9);
  z-index: 2;
}

.scan-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: 72px 74px 72px;
  align-items: center;
  justify-content: space-between;
  justify-items: center;
  padding: 10px 18px calc(16px + env(safe-area-inset-bottom));
}

.ghost-btn, .text-btn, .ice-btn {
  appearance: none;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.text-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 13px;
  border-radius: var(--r-md);
  border: 1px solid var(--glass-border);
  background: var(--glass);
  color: #eef3f6;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.text-btn:hover { background: var(--glass-strong); }

.ghost-btn {
  min-width: 72px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.ghost-btn.spacer { visibility: hidden; }

.scan-drop {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 24px;
  background: rgba(8, 14, 20, 0.78);
  color: #eef3f6;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  pointer-events: none;
}
.scan-drop[hidden] { display: none; }
#scan-screen.can-drop .window {
  box-shadow: 0 0 0 2px var(--ice-bright);
}

#shutter {
  width: 74px;
  height: 74px;
  border: 0;
  background: none;
  position: relative;
  cursor: pointer;
}

#shutter .dot {
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  background: var(--ice-bright);
}

#shutter.locked .dot { background: var(--ice); }

.ring { position: absolute; inset: 0; }
.ring circle {
  fill: none;
  stroke: rgba(143, 212, 242, 0.28);
  stroke-width: 3;
}

#lock-arc {
  stroke: var(--ice);
  stroke-linecap: round;
  stroke-dasharray: 214;
  stroke-dashoffset: 214;
  transform: rotate(-90deg);
  transform-origin: 40px 40px;
  transition: stroke-dashoffset 80ms linear;
}

.pane {
  padding: 28px 22px 24px;
}

.kicker {
  margin: 0 0 8px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.68rem;
  color: var(--ice-dim);
}

.pane h1 {
  margin: 0 0 10px;
  font-size: 1.35rem;
  color: var(--ice-bright);
}

.lede {
  margin: 0 0 28px;
  color: var(--mute);
  line-height: 1.45;
  max-width: 22rem;
}

.menu-list { display: grid; gap: 10px; }

.menu-row {
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: var(--graphite-lift);
  color: var(--text);
  border-radius: var(--r-lg);
  padding: 16px 18px;
  font: inherit;
  cursor: pointer;
}

.menu-row span { display: block; color: var(--ice-bright); font-size: 1.05rem; }
.menu-row small { color: var(--mute); }
.menu-row:disabled { opacity: 0.42; cursor: default; }

#menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 19;
  background: rgba(8, 10, 14, 0.64);
}

#drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(80vw, 304px);
  z-index: 20;
  background: var(--graphite);
  border-right: 1px solid var(--line);
  padding: calc(28px + env(safe-area-inset-top)) 22px 24px;
  display: grid;
  align-content: start;
  gap: 10px;
}

.drawer-copy {
  margin: 4px 0 18px;
  color: var(--mute);
  font-size: 0.9rem;
}

.drawer-nav { display: grid; gap: 4px; }

.drawer-nav button {
  appearance: none;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  text-align: left;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.drawer-nav button.active { color: var(--ice-bright); }
.drawer-nav button:disabled { color: var(--mute); cursor: default; }
.drawer-nav small { margin-left: 8px; color: var(--ice-dim); }

.sheet {
  position: fixed;
  inset: 0;
  z-index: 24;
  background: rgba(12, 16, 22, 0.48);
  display: grid;
  align-content: end;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 280ms ease, visibility 280ms ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.sheet[hidden] {
  display: none !important;
}

.sheet.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.sheet-card {
  background: color-mix(in srgb, var(--graphite-mid) 78%, transparent);
  border: 1px solid var(--glass-border);
  border-radius: 28px 28px 18px 18px;
  padding: 10px 20px 24px;
  text-align: center;
  width: min(100%, 420px);
  justify-self: center;
  max-height: min(86dvh, 760px);
  overflow: auto;
  transform: translateY(24px);
  transition: transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.sheet.open .sheet-card {
  transform: translateY(0);
}
.sheet > .text-btn {
  justify-self: center;
  margin-top: 12px;
  min-width: 92px;
}
.sheet-card h2 {
  margin: 2px 0 8px;
  font-family: Manrope, "Segoe UI", system-ui, sans-serif;
  font-size: 1.28rem;
  font-weight: 650;
  letter-spacing: -0.04em;
  color: #f3f7f9;
}
.covers-copy,
.sheet-card .lede {
  margin: 0 auto 8px;
  max-width: 28rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(173, 198, 210, 0.68);
}
#covers-status,
#print-status {
  margin: 0 0 4px;
  font-size: 0.72rem;
}

.print-card {
  width: min(420px, calc(100vw - 32px));
}
.print-stage {
  appearance: none;
  display: block;
  width: min(220px, 58vw);
  aspect-ratio: 0.70;
  margin: 10px auto 16px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  container-type: size;
}
.print-preview.binder-cover {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  cursor: inherit;
}
.print-preview .cover-open { display: none; }
.print-grounds {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 0 0 14px;
}
.print-grounds button {
  appearance: none;
  height: 30px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--glass-border);
  background: var(--glass);
  color: #eef3f6;
  font: inherit;
  font-size: 0.74rem;
  cursor: pointer;
}
.print-grounds button.selected {
  background: #eef3f6;
  color: #12151a;
  border-color: transparent;
}
.print-actions {
  display: grid;
  gap: 8px;
  justify-items: center;
}
.print-actions .app-btn { min-width: 168px; }
.print-actions .app-btn:disabled { opacity: 0.45; cursor: default; }

.grab {
  width: 36px;
  height: 4px;
  border-radius: var(--r-pill);
  background: rgba(173, 198, 210, 0.28);
  margin: 6px auto 14px;
}

.flip-stage {
  display: block;
  width: min(200px, 52vw);
  aspect-ratio: 63 / 88;
  margin: 0 auto 12px;
  padding: 0;
  border: 0;
  background: none;
  perspective: 980px;
  cursor: pointer;
}

.flip-stage.no-back { cursor: default; }

.flipper {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.flip-stage.flipped .flipper { transform: rotateY(180deg); }

.flip-stage .face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--r-md);
  background: transparent;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.45));
}

.flip-stage .face.back { transform: rotateY(180deg); }

#pull-name { margin: 0; font-size: 1.12rem; font-weight: 700; }
#pull-status { margin: 0; color: var(--ice); min-height: 1.3em; font-size: 0.78rem; }

.pull-meta {
  margin: 0;
  max-width: 22rem;
  color: var(--mute);
  font-size: 0.78rem;
  line-height: 1.4;
}

.pull-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 4px 0 8px;
}
.pull-hero.solo { grid-template-columns: 1fr; }
.pull-stat {
  min-width: 0;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  padding: 10px 12px;
  text-align: left;
}
.pull-stat small {
  display: block;
  margin: 0 0 2px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mute);
}
.pull-stat strong,
.pull-stat .grade-final {
  display: block;
  margin: 0;
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  color: #f3f7f9;
}

.chips { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line);
  color: var(--ice);
  border-radius: var(--r-pill);
  padding: 4px 10px;
  font-size: 0.78rem;
}

.row { display: flex; gap: 10px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.pull-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 14px 0 0;
}
.pull-btn {
  appearance: none;
  width: 100%;
  height: 46px;
  margin: 0;
  padding: 0 12px;
  border-radius: var(--r-md);
  border: 1px solid var(--glass-border);
  background: var(--glass);
  color: var(--ice-bright);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}
.pull-btn.primary {
  background: linear-gradient(180deg, #d7f4ff, #8fd4f2);
  color: #0e1820;
  border-color: transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.pull-btn.ghost {
  background: transparent;
  color: var(--ice-bright);
  font-weight: 600;
}
.pull-btn.quiet { font-weight: 600; color: var(--mute); }
.pull-btn:disabled { opacity: 0.45; cursor: default; }
.pull-link {
  appearance: none;
  width: auto;
  margin: 2px auto 0;
  padding: 6px 8px;
  border: 0;
  background: none;
  color: var(--mute);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.pull-card .hint {
  margin: 8px 0 0;
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--mute);
}
.pull-market {
  margin: 12px 0 0;
  text-align: left;
}
.pull-market .market-head,
.pull-market .market-empty {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
  margin: 0 0 8px;
}
.pull-market b {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mute);
}
.pull-market .market-empty span,
.pull-market .market-head span {
  color: var(--text);
  font-size: 0.8rem;
}
.pull-market .market-empty {
  display: grid;
  gap: 2px;
  padding: 0;
  background: none;
  border: 0;
}
.pull-market .market-quiet {
  margin: 0;
  color: var(--mute);
  font-size: 0.78rem;
}
.pull-lot {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 10px;
  width: 100%;
  margin: 0 0 8px;
  padding: 10px;
  text-align: left;
  color: inherit;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  font: inherit;
  cursor: pointer;
}
.pull-lot .lot-who { grid-column: 1; color: var(--mute); font-size: 0.72rem; }
.pull-lot strong { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 0.92rem; }
.pull-lot small { grid-column: 1; color: var(--mute); font-size: 0.72rem; }
.pull-list {
  margin: 12px 0 0;
  display: grid;
  gap: 8px;
  text-align: left;
}
.pull-list .market-head { margin: 0 0 2px; }
.pull-list input,
.pull-list textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  color: var(--text);
  border-radius: var(--r-md);
  padding: 10px 12px;
  font: inherit;
}
.pull-list textarea { min-height: 4.4em; resize: vertical; }
.shop-search {
  display: block;
  width: min(100%, 52rem);
  margin: 0 auto 10px;
}
.shop-search input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  color: var(--text);
  border-radius: var(--r-md);
  padding: 10px 12px;
  font: inherit;
  font-size: 0.9rem;
}
.card-detail .side-toggle { margin: 0 0 10px; }
.card-detail .flip-stage { width: min(240px, 62vw); margin-bottom: 14px; }
#card-actions.row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}
#card-actions .ice-btn { flex: 1 1 100%; }
#card-actions .chip-act {
  flex: 1 1 calc(33.333% - 6px);
  width: auto;
  min-width: 0;
}
#card-actions .chip-act.quiet { flex-basis: calc(50% - 4px); }
.chip-act {
  appearance: none;
  width: 100%;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  color: var(--ice-bright);
  border-radius: var(--r-md);
  padding: 10px 8px;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 650;
  cursor: pointer;
}
.chip-act.on {
  border-color: color-mix(in srgb, var(--ice) 55%, transparent);
  background: color-mix(in srgb, var(--ice) 16%, transparent);
}
.chip-act.quiet { color: var(--mute); }
.ice-btn {
  background: linear-gradient(180deg, #d7f4ff, #8fd4f2);
  color: #0e1820;
  border-radius: var(--r-md);
  padding: 11px 20px;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.ice-btn.outline {
  background: var(--glass);
  color: var(--ice-bright);
  border: 1px solid color-mix(in srgb, var(--ice) 55%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.ice-btn:disabled, .list-btn:disabled { opacity: 0.45; cursor: default; }

.alts { display: grid; gap: 8px; margin-top: 14px; text-align: left; }
.alts-lead {
  margin: 0 0 2px;
  color: var(--mute);
  font-size: 0.74rem;
  line-height: 1.35;
}
.alt {
  width: 100%;
  background: var(--graphite-lift);
  color: var(--text);
  border: 0;
  border-radius: var(--r-md);
  padding: 12px;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.slot { display: grid; gap: 4px; }
.slot img {
  width: 100%;
  aspect-ratio: 63 / 88;
  object-fit: contain;
  border-radius: var(--r-sm);
  background: transparent;
  border: 0;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.35));
}
.slot span { font-size: 0.72rem; color: var(--mute); }
.slot small { font-size: 0.68rem; color: var(--ice-dim); }
.slot .list-btn { justify-self: start; padding: 0; font-size: 0.72rem; color: var(--ice); }

.binder-head {
  margin: 0 0 16px;
  color: var(--ice);
  font-size: 0.88rem;
}

.grade-final {
  margin: 12px 0 0;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--ice-bright);
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.pull-stat .grade-final {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: #f3f7f9;
}
.grade-final:empty,
.grade-cond:empty { display: none; }
.grade-cond { margin: 4px 0 12px; color: var(--ice); font-size: 0.84rem; }
.subs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 20px;
  list-style: none;
  padding: 0;
  margin: 0 auto 8px;
  max-width: 280px;
  color: var(--mute);
  font-size: 0.8rem;
  text-align: left;
}
.subs li {
  display: grid;
  grid-template-columns: 1fr 2.6em;
  align-items: baseline;
  gap: 8px;
}
.subs:empty { display: none; }
.subs span { color: var(--mute); }
.subs strong {
  color: var(--ice-bright);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.advice {
  margin: 8px 0 0;
  color: var(--ice);
  font-size: 0.9rem;
}

.trade-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  margin-bottom: var(--s-4);
}
.listings { grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 14px 10px; align-items: stretch; }
.listing {
  display: grid;
  grid-template-rows: auto 2.55em 1.35em 1.35em 1.15em 32px;
  gap: 5px;
  min-width: 0;
  align-items: start;
}
.listing > img,
.listing-art {
  width: 100%;
  aspect-ratio: 63 / 88;
  object-fit: contain;
  background: var(--art-well);
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
}
.listing-title {
  margin: 0;
  height: 2.55em;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.28;
  color: var(--text);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.listing-notes {
  margin: 4px 0 8px;
  color: var(--mute);
  font-size: 0.72rem;
  line-height: 1.35;
}
.listing-seller,
.listing-price,
.listing-meta {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.listing-seller {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--mute);
  font-size: 0.68rem;
}
.listing-seller a { color: inherit; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.listing-stars { color: #e8c36a; font-weight: 700; flex: 0 0 auto; }
.listing-stars-empty { color: var(--mute); font-weight: 500; }
.listing-seller .verified {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #7ed0a8;
  color: #102018;
  font-size: 0.58rem;
  font-weight: 800;
  line-height: 1;
}
.listing-price {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ice-bright);
}
.listing-meta { font-size: 0.66rem; color: var(--mute); }
.listing .ice-btn,
.listing .text-btn {
  width: 100%;
  height: 32px;
  padding: 0 8px;
  font-size: 0.7rem;
  display: grid;
  place-items: center;
}
.listing .demo-label {
  position: absolute;
  top: 8px;
  left: 8px;
  margin: 0;
  padding: 2px 6px;
  border-radius: var(--r-pill);
  background: var(--surface-overlay);
  font-size: 0.58rem;
}
.listing { position: relative; }

.empty {
  grid-column: 1 / -1;
  color: var(--mute);
  text-align: center;
  padding: var(--s-6) var(--s-3);
  font-size: 0.82rem;
  line-height: 1.4;
}

.empty-state {
  grid-column: 1 / -1;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: var(--s-2);
  padding: var(--s-7) var(--s-5);
  text-align: center;
}
.empty-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: var(--s-1);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}
.empty-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.75;
}
.empty-state b {
  font-family: Syne, Manrope, sans-serif;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  color: var(--text);
}
.empty-state small {
  max-width: 30ch;
  color: var(--mute);
  font-size: 0.82rem;
  line-height: 1.5;
}
.empty-cta {
  margin-top: var(--s-2);
  padding: var(--s-3) var(--s-5);
  border-radius: var(--r-pill);
  background: linear-gradient(180deg, var(--accent-bright), var(--accent));
  box-shadow: var(--e-1), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  color: var(--on-accent);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform var(--dur-1) var(--ease), filter var(--dur-2) var(--ease);
}
.empty-cta:hover { filter: brightness(1.06); }
.empty-cta:active { transform: scale(0.97); }

.sk-wrap {
  display: grid;
  gap: var(--s-3);
  grid-column: 1 / -1;
}
.grid .sk-wrap,
.sk-wrap:has(.sk-card) {
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
}
.sk { --sk-base: rgba(255, 255, 255, 0.045); }
.sk-card { display: grid; gap: var(--s-2); }
.sk-row {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: var(--s-3);
  align-items: center;
  padding: var(--s-3);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}
.sk-lines { display: grid; gap: var(--s-2); }
.sk-art,
.sk-thumb,
.sk-line,
.sk-block {
  display: block;
  background: var(--sk-base);
  border-radius: var(--r-xs);
  background-image: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.07), transparent);
  background-size: 200% 100%;
  background-repeat: no-repeat;
  animation: skShimmer 1.4s var(--ease) infinite;
}
.sk-art { width: 100%; aspect-ratio: 63 / 88; border-radius: var(--r-sm); }
.sk-thumb { width: 44px; height: 60px; border-radius: var(--r-xs); }
.sk-line { height: 10px; }
.sk-line.short { width: 55%; }
.sk-block { height: 88px; border-radius: var(--r-md); }

@keyframes skShimmer {
  from { background-position: 140% 0; }
  to { background-position: -40% 0; }
}

.share-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 12px 0 0;
  color: var(--mute);
  font-size: 0.74rem;
  text-align: left;
}

.chip-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 10px;
  scrollbar-width: none;
}
.chip-row::-webkit-scrollbar { display: none; }
.chip-row button,
.filter-chip {
  appearance: none;
  flex: 0 0 auto;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  color: var(--mute);
  border-radius: var(--r-pill);
  padding: 6px 12px;
  font: inherit;
  font-size: 0.72rem;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.chip-row button.active,
.filter-chip.active {
  color: #0e1820;
  background: linear-gradient(180deg, #d7f4ff, #8fd4f2);
  border-color: transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

#stage-wrap:has(#binder-screen:not([hidden])) {
  padding: 8px 16px 10px;
}

#binder-screen {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  padding: 8px 8px 4px;
  background: transparent;
}
#binder-screen .binder-head {
  margin: 0;
  min-width: 0;
  color: #f3f7f9;
  font-size: 1.02rem;
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#binder-screen .binder-head b {
  font-weight: 650;
}
#binder-screen .binder-head span {
  color: rgba(173, 198, 210, 0.62);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
#binder-screen .binder-head span::before {
  content: "·";
  margin: 0 0.45em;
  color: rgba(173, 198, 210, 0.38);
}

.binder-book {
  position: relative;
  flex: 1 1 0;
  min-height: 0;
  width: min(100%, 46rem);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 40px;
  align-items: stretch;
  gap: 2px;
}

.page-nav {
  appearance: none;
  align-self: center;
  border: 0;
  background: none;
  color: var(--mute);
  font-size: 1.35rem;
  line-height: 1;
  width: 32px;
  height: 32px;
  border-radius: 0;
  padding: 0;
  cursor: pointer;
}
.page-nav:disabled { opacity: 0.22; cursor: default; }

.binder-stage {
  position: relative;
  min-height: 0;
  height: 100%;
  container-type: size;
  display: grid;
  place-items: center;
  perspective: 1400px;
}

.binder-cover {
  appearance: none;
  position: relative;
  box-sizing: border-box;
  width: min(100cqw, calc(100cqh * 0.70));
  height: min(100cqh, calc(100cqw / 0.70));
  max-width: 100%;
  max-height: 100%;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  color: #efe3c8;
  border: 1px solid rgba(197, 165, 114, 0.4);
  border-radius: 6px 16px 16px 8px;
  background:
    linear-gradient(90deg, rgba(8, 6, 5, 0.62) 0 18px, transparent 34px),
    linear-gradient(180deg, #5a3a28 0%, #3d2a22 46%, #211610 100%);
  box-shadow:
    inset 10px 0 16px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 18px 32px rgba(0, 0, 0, 0.4);
}
.cover-print {
  display: none;
  position: absolute;
  inset: 18px 14px 18px 28px;
  z-index: 1;
  overflow: hidden;
  border-radius: 2px 6px 8px 2px;
}
.binder-cover.has-print .cover-print { display: block; }
.binder-cover[data-print="white"] .cover-print {
  background:
    repeating-linear-gradient(0deg, rgba(40, 32, 22, 0.035) 0 1px, transparent 1px 3px),
    #f4efe6;
  box-shadow:
    inset 0 0 0 1px rgba(40, 28, 18, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.binder-cover[data-print="black"] .cover-print {
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 3px),
    #0b0d10;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.binder-cover[data-print="look"] .cover-print {
  background: transparent;
}
.cover-design {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
}
.cover-design[hidden] { display: none !important; }
.binder-cover[data-print="white"] .cover-design,
.binder-cover[data-print="black"] .cover-design {
  padding: 8%;
}
.binder-cover[data-print="look"] .cover-design {
  object-fit: cover;
  mix-blend-mode: multiply;
  filter: contrast(1.06) saturate(0.92);
}
.cover-grain,
.cover-stitch {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.cover-grain {
  z-index: 0;
  opacity: 0.5;
  background:
    repeating-linear-gradient(118deg, transparent 0 2px, rgba(0, 0, 0, 0.07) 2px 3px),
    repeating-linear-gradient(24deg, transparent 0 13px, rgba(255, 220, 180, 0.04) 13px 14px);
  mix-blend-mode: overlay;
}
.cover-stitch {
  z-index: 2;
  inset: 16px 14px 16px 28px;
  border: 1.5px dashed rgba(197, 165, 114, 0.58);
  border-radius: 4px 10px 10px 4px;
}
.binder-cover.has-print[data-print="white"] .cover-stitch,
.binder-cover.has-print[data-print="black"] .cover-stitch {
  border-color: rgba(160, 170, 180, 0.45);
}
.cover-open {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 4;
  transform: translateX(-50%);
  font: 800 0.68rem Syne, Manrope, sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: rgba(12, 14, 18, 0.78);
  border: 1px solid rgba(238, 244, 248, 0.28);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}
.binder-cover[hidden],
.binder-page[hidden] {
  display: none !important;
}

.binder-rings {
  position: absolute;
  left: 5px;
  top: 12px;
  bottom: 12px;
  width: 12px;
  z-index: 3;
  display: grid;
  align-content: space-evenly;
  pointer-events: none;
}
.binder-rings i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(197, 165, 114, 0.85);
  background: radial-gradient(circle at 35% 35%, #efe3c8, #8a7348);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.binder-page {
  position: relative;
  box-sizing: border-box;
  width: min(100cqw, calc(100cqh * 0.70));
  height: min(100cqh, calc(100cqw / 0.70));
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background:
    linear-gradient(90deg, rgba(8, 6, 5, 0.55) 0 16px, transparent 24px),
    linear-gradient(180deg, #3d2a22 0%, #2a1c16 48%, #211610 100%);
  border: 1px solid rgba(197, 165, 114, 0.28);
  border-radius: 6px 16px 16px 8px;
  padding: 10px 10px 10px 22px;
  box-shadow:
    inset 10px 0 16px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 32px rgba(0, 0, 0, 0.4);
  transform-origin: left center;
  transform-style: preserve-3d;
}
@supports not (container-type: size) {
  .binder-page,
  .binder-cover {
    width: 100%;
    height: 100%;
  }
}

.binder-page.flip-left { animation: binderFlipLeft 0.55s ease; }
.binder-page.flip-right { animation: binderFlipRight 0.55s ease; }

@keyframes binderFlipLeft {
  0% { transform: rotateY(0); }
  46% { transform: rotateY(-82deg); opacity: 0.35; }
  47% { transform: rotateY(82deg); opacity: 0.35; }
  100% { transform: rotateY(0); opacity: 1; }
}
@keyframes binderFlipRight {
  0% { transform: rotateY(0); }
  46% { transform: rotateY(82deg); opacity: 0.35; }
  47% { transform: rotateY(-82deg); opacity: 0.35; }
  100% { transform: rotateY(0); opacity: 1; }
}

.pockets {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: clamp(4px, 1.4cqh, 10px) clamp(4px, 1.6cqw, 8px);
}

.pocket {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 0;
  height: 100%;
  cursor: pointer;
}
.pocket-art {
  min-height: 0;
  height: 100%;
  display: grid;
  place-items: center;
}
.pocket-sleeve {
  position: relative;
  height: 100%;
  width: auto;
  max-width: 100%;
  aspect-ratio: 63 / 88;
  border-radius: var(--r-xs);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(140, 190, 210, 0.05)),
    #121014;
  border: 1px solid rgba(210, 236, 255, 0.32);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -10px 16px rgba(0, 0, 0, 0.28),
    0 8px 16px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px) saturate(1.15);
}
.pocket-sleeve img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  background: transparent;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}
.pocket-sleeve::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.34) 0 18%, transparent 46%, rgba(143, 212, 242, 0.08) 100%);
  pointer-events: none;
}
.pocket.is-empty .pocket-sleeve {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(143, 212, 242, 0.07));
  border: 1px dashed rgba(210, 236, 255, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.pocket.is-empty::after {
  content: "\00a0";
  margin-top: 3px;
  height: 1.15em;
  visibility: hidden;
}
.pocket-meta {
  margin-top: 3px;
  display: grid;
  gap: 0;
  min-width: 0;
}
.pocket-meta span {
  font-size: 0.58rem;
  color: rgba(232, 220, 204, 0.88);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pocket-meta small {
  font-size: 0.52rem;
  color: rgba(197, 165, 114, 0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pocket-actions {
  display: flex;
  gap: 6px;
  margin-top: 2px;
}
.pocket-actions button {
  appearance: none;
  border: 0;
  background: none;
  color: var(--ice);
  font: inherit;
  font-size: 0.62rem;
  padding: 0;
  cursor: pointer;
}
.pocket-actions button.sale { color: #f3d48a; }
.pocket.dragging { opacity: 0.45; }
.pocket.drop-target .pocket-sleeve {
  outline: 2px solid var(--ice);
  outline-offset: 1px;
}
#binder-screen.arranging .pocket {
  touch-action: none;
  cursor: grab;
}
#binder-screen.arranging .pocket.dragging { cursor: grabbing; }

.binder-chrome {
  width: min(100%, 46rem);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 12px;
  flex: 0 0 auto;
  padding: 0 4px;
  border: 0;
  background: none;
  box-shadow: none;
}
.binder-chrome-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}
.binder-looks,
#binder-look-status {
  grid-column: 1 / -1;
}
.binder-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  flex-shrink: 0;
}
.app-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--glass-border);
  background: var(--glass);
  color: #f3f7f9;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.app-btn:hover { background: var(--glass-strong); }
.app-btn.active {
  background: linear-gradient(180deg, #f6fafc, #dce8ef);
  color: #12151a;
  border-color: transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.binder-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  width: 100%;
}
.binder-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  flex: 0 0 100%;
}
.binder-tabs button {
  appearance: none;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 0;
  border-radius: 10px 10px 4px 4px;
  min-height: 44px;
  padding: 10px 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  color: rgba(210, 222, 230, 0.58);
  font: 800 0.78rem Syne, Manrope, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.binder-tabs button::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 5px;
  height: 2px;
  border-radius: var(--r-pill);
  background: currentColor;
  opacity: 0.28;
}
.binder-tabs button.active {
  color: #12151a;
  transform: translateY(-1px);
}
.binder-tabs .is-all.active {
  background: linear-gradient(180deg, #f6fafc, #cfe0ec);
  border-color: rgba(238, 244, 248, 0.7);
  box-shadow: 0 8px 16px rgba(90, 210, 255, 0.18);
}
.binder-tabs .is-show.active {
  background: linear-gradient(180deg, #e4fff0, #9be3bc);
  border-color: rgba(155, 227, 188, 0.7);
  box-shadow: 0 8px 16px rgba(155, 227, 188, 0.18);
}
.binder-tabs .is-sale.active {
  background: linear-gradient(180deg, #fff3c4, #e8c36a);
  border-color: rgba(232, 195, 106, 0.7);
  box-shadow: 0 8px 16px rgba(232, 195, 106, 0.2);
}
/* The one segmented control. Hall, board and trade all switch views the same
   way, so they share this track rather than each rolling their own pill row. */
.seg,
.hall-nav,
.board-tabs,
.trade-tabs {
  display: inline-flex;
  flex: 0 1 auto;
  padding: 3px;
  border: 0;
  border-radius: var(--r-md);
  background: var(--surface-sunken);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow-x: auto;
  scrollbar-width: none;
}
.seg::-webkit-scrollbar,
.hall-nav::-webkit-scrollbar,
.board-tabs::-webkit-scrollbar,
.trade-tabs::-webkit-scrollbar { display: none; }

.seg button,
.hall-nav .hall-link,
.board-tabs button,
.trade-tabs button {
  appearance: none;
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: rgba(210, 222, 230, 0.55);
  border-radius: var(--r-sm);
  min-height: 40px;
  padding: var(--s-2) var(--s-4);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: color var(--dur-2) var(--ease), background var(--dur-2) var(--ease);
}

.seg button.active,
.hall-nav .hall-link.active,
.board-tabs button.active,
.trade-tabs button.active {
  background: rgba(255, 255, 255, 0.94);
  color: #14181c;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
}
#binder-screen > .seller-reviews {
  width: min(100%, 42rem);
  margin: 0 auto;
}

.folio {
  flex: 0 0 auto;
  width: min(100%, 42rem);
  margin: 0 auto;
  text-align: center;
  color: rgba(173, 198, 210, 0.58);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

#lodge-screen {
  padding: 12px 12px 18px;
  overflow: auto;
  background: transparent;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
#lodge-screen::-webkit-scrollbar { display: none; }
.binder-feed {
  width: min(100%, 42rem);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 10px;
}
.binder-tile {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  text-align: left;
  text-decoration: none;
  font: inherit;
  cursor: pointer;
}
.binder-tile-who {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: #f3f7f9;
}
.binder-tile-who span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.binder-tile-avatar,
.binder-tile-initials {
  width: 22px;
  height: 22px;
  border-radius: var(--r-pill);
  flex: 0 0 auto;
  object-fit: cover;
  background: #262c35;
}
.binder-tile-initials {
  display: grid;
  place-items: center;
  font-size: 0.58rem;
  font-weight: 700;
  color: #d7e6ee;
}
.binder-tile-art {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--r-lg);
  aspect-ratio: 4 / 5;
  background: #1a1512;
}
.binder-tile-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.binder-tile-art.midnight { background: linear-gradient(180deg, #243044, #10141b); }
.binder-tile-art.ice { background: linear-gradient(180deg, #2a4658, #142028); }
.binder-tile-art.oak { background: linear-gradient(180deg, #8a6a42, #4a321c); }
.binder-tile-art.velvet { background: linear-gradient(180deg, #5a2030, #2a1018); }
.binder-tile-art.carbon { background: repeating-linear-gradient(135deg, #1a1d22 0 8px, #12151a 8px 16px); }
.binder-tile-art.holo { background: linear-gradient(135deg, #3a2a58, #1a4a58 40%, #4a2a48); }
.binder-tile-name {
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #eef3f6;
}
.binder-tile-who .verified {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #7ed0a8;
  color: #102018;
  font-size: 0.58rem;
  font-weight: 800;
  line-height: 1;
}
.binder-tile-stars {
  color: #e8c36a;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.binder-tile-stars-empty {
  color: rgba(173, 198, 210, 0.55);
  font-weight: 500;
}
.binder-tile-worth {
  color: rgba(173, 198, 210, 0.62);
  font-size: 0.7rem;
}
.feed-board {
  width: min(100%, 42rem);
  margin: 0 auto 14px;
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.03);
}
.feed-board b {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
}
.feed-board p { margin: 0; font-size: 0.78rem; }
.board-teaser {
  width: min(100%, 42rem);
  margin: 0 auto 14px;
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.board-teaser-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.board-teaser-top b {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
}
.board-teaser-top span {
  font-size: 0.72rem;
  font-weight: 650;
  color: var(--ice-bright);
}
.board-teaser-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: #eef3f6;
}
.board-teaser-row i {
  flex: 0 0 1.2rem;
  font-style: normal;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #e8c36a;
}
#board-screen {
  padding: 12px 12px 18px;
  overflow: auto;
  background: transparent;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
#board-screen::-webkit-scrollbar { display: none; }
.board-page {
  width: min(100%, 42rem);
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.board-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.board-kicker {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
}
.board-back {
  font-size: 0.74rem;
  font-weight: 650;
  color: var(--ice-bright);
  text-decoration: none;
}
.rank-table {
  display: grid;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
}
.rank-head,
.rank-row {
  display: grid;
  grid-template-columns: 2.1rem 2.6rem minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
}
.rank-head {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
  background: rgba(12, 16, 22, 0.92);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 1;
}
.rank-head span:last-child,
.rank-stat {
  justify-self: end;
  text-align: right;
}
.rank-row {
  color: inherit;
  text-decoration: none;
  border-top: 1px solid var(--line);
  min-height: 64px;
}
.rank-row:first-of-type { border-top: 0; }
.rank-row:hover { background: rgba(255, 255, 255, 0.05); }
.rank-row.gold { background: rgba(232, 195, 106, 0.1); box-shadow: inset 3px 0 0 #e8c36a; }
.rank-row.silver { background: rgba(197, 208, 216, 0.07); box-shadow: inset 3px 0 0 #c5d0d8; }
.rank-row.bronze { background: rgba(212, 165, 116, 0.08); box-shadow: inset 3px 0 0 #d4a574; }
.rank-pos {
  font-size: 0.92rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: rgba(173, 198, 210, 0.7);
}
.rank-pos.gold { color: #e8c36a; }
.rank-pos.silver { color: #d5dee6; }
.rank-pos.bronze { color: #d4a574; }
.rank-thumb {
  width: 40px;
  height: 56px;
  object-fit: cover;
  border-radius: var(--r-xs);
  background: #1a1512;
  display: block;
}
.rank-thumb-empty {
  display: grid;
  place-items: center;
  font-size: 0.62rem;
  font-weight: 700;
  color: #d7e6ee;
}
.rank-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.rank-copy b {
  font-size: 0.86rem;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rank-copy small {
  color: var(--mute);
  font-size: 0.7rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rank-stat {
  font-size: 0.92rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.rank-row.gold .rank-stat { color: #e8c36a; }
.feed-board b {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
}
.feed-board p { margin: 0; font-size: 0.78rem; }
.ice-btn.on { border-color: #7ed0a8; color: #7ed0a8; }
.look-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 0.76rem;
  color: var(--mute);
}
.look-cover img[src=""], .look-avatar img[src=""] { display: none; }

.look-card {
  text-align: left;
  width: min(560px, calc(100vw - 32px));
  justify-self: center;
  margin: 0 auto;
}
.look-card h2 { text-align: center; }
.look-block { margin-top: 18px; }
.look-label {
  margin: 0 0 4px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f3f7f9;
}
.look-hint {
  margin: 0 0 12px;
  font-size: 0.78rem;
  line-height: 1.4;
  color: rgba(173, 198, 210, 0.62);
}
.look-front {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 12px;
  align-items: start;
}
.look-cover {
  appearance: none;
  position: relative;
  grid-row: span 2;
  width: 108px;
  aspect-ratio: 4 / 5;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-md);
  background: #1a1512;
  cursor: pointer;
}
.look-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.look-cover span,
.look-avatar span {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  padding: 5px 6px;
  border-radius: var(--r-sm);
  background: rgba(12, 14, 18, 0.72);
  color: #eef3f6;
  font-size: 0.64rem;
  font-weight: 650;
}
.look-field {
  display: grid;
  gap: 6px;
  font-size: 0.74rem;
  color: rgba(173, 198, 210, 0.7);
}
.look-field input {
  padding: 10px 12px;
  border-radius: var(--r-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.28);
  color: #eef3f6;
  font: inherit;
}
.look-avatar {
  appearance: none;
  position: relative;
  justify-self: start;
  width: 56px;
  height: 56px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-pill);
  background: #262c35;
  cursor: pointer;
}
.look-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.look-demo {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(210, 222, 230, 0.72);
  font-size: 0.74rem;
}
.look-demo summary { cursor: pointer; color: #eef3f6; font-weight: 650; }
.look-demo form { display: grid; gap: 10px; margin-top: 12px; }
.look-demo label { display: grid; gap: 5px; }
.look-demo input {
  padding: 8px 10px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.28);
  color: #eef3f6;
  font: inherit;
}
@media (max-width: 520px) {
  .look-front {
    grid-template-columns: 96px 1fr;
  }
}

.vendor-card {
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: var(--r-lg);
  background: var(--graphite-lift);
  border: 1px solid var(--line);
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.vendor-card img {
  width: 100%;
  aspect-ratio: 63 / 88;
  object-fit: cover;
  border-radius: var(--r-sm);
}
.vendor-card span { color: var(--ice-bright); }
.vendor-card small { color: var(--mute); font-size: 0.72rem; }

.no-cam #stage { display: none; }
.no-cam#scan-screen { background: var(--graphite-mid); }
.no-cam #card-window { cursor: pointer; }

.side-toggle {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0 0 12px;
}

.side-toggle button {
  appearance: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--mute);
  border-radius: var(--r-pill);
  padding: 6px 14px;
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
}

.side-toggle button.active {
  color: var(--graphite-deep);
  background: var(--ice);
  border-color: var(--ice);
}

#card-name {
  margin: 0 0 4px;
  font-size: 1.08rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.25;
}
.card-meta {
  margin: 0 0 10px;
  color: var(--mute);
  font-size: 0.78rem;
  line-height: 1.35;
}
.card-meta:empty { display: none; }
.card-detail .chips { margin: 0 0 12px; }
.card-detail .card-grade { margin: 2px 0 12px; }
.card-detail .grade-final { margin: 0; line-height: 1; }

.photo-slots {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0 4px;
}

.photo-slot {
  appearance: none;
  border: 1px dashed var(--line);
  background: var(--graphite-lift);
  border-radius: var(--r-sm);
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  display: grid;
  min-height: 0;
}

.photo-slot img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.photo-slot span {
  font-size: 0.58rem;
  color: var(--mute);
  padding: 4px 2px 6px;
}

.photo-slot.filled {
  border-style: solid;
}

.list-form {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  text-align: left;
}

.list-form input,
.list-form textarea,
.list-form select {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--graphite-deep);
  color: var(--text);
  border-radius: var(--r-md);
  padding: 12px 14px;
  font: inherit;
}

.bid-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  width: 100%;
  margin: 12px 0 0;
}

.bid-form input {
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--graphite-deep);
  color: var(--text);
  border-radius: var(--r-md);
  padding: 12px 14px;
  font: inherit;
}

.bid-history {
  width: 100%;
  margin: 12px 0 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(143, 212, 242, 0.04);
  text-align: left;
  font-size: 0.78rem;
}

.bid-history-head,
.bid-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.bid-history-head { color: var(--ice); margin-bottom: 8px; }
.bid-history-head span { color: var(--mute); font-size: 0.7rem; }
.bid-row { padding: 7px 0; border-top: 1px solid var(--line); }
.bid-row strong { color: var(--ice-bright); }
.bid-row time { grid-column: 1 / -1; color: var(--mute); font-size: 0.68rem; }

.alerts-card { max-width: 520px; }
.alerts-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.alerts-head h2 { margin: 2px 0 0; }
.eyebrow {
  margin: 0;
  color: rgba(173, 198, 210, 0.58);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.alerts-list { display: grid; gap: 8px; margin-top: 16px; max-height: min(56dvh, 440px); overflow: auto; }
.alert-row { appearance: none; width: 100%; display: grid; grid-template-columns: 10px 1fr; gap: 10px; text-align: left; border: 1px solid var(--line); border-radius: var(--r-md); padding: 11px 12px; background: rgba(143, 212, 242, 0.06); color: var(--text); font: inherit; cursor: pointer; }
.alert-row.read { opacity: 0.64; background: transparent; }
.alert-dot { width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: var(--ice); }
.alert-row.read .alert-dot { background: var(--mute); }
.alert-row b, .alert-row small, .alert-row time { display: block; }
.alert-row small { margin-top: 3px; color: var(--text); line-height: 1.4; }
.alert-row time { margin-top: 5px; color: var(--mute); font-size: 0.68rem; }

.card-detail .hint {
  margin: 10px auto 0;
}

.scan-info {
  width: 100%;
  margin: 10px 0 2px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(143, 212, 242, 0.05);
  color: var(--mute);
  font-size: 0.78rem;
  line-height: 1.35;
  text-align: left;
}
.scan-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 8px;
}
.scan-facts span, .scan-info p { margin: 0; min-width: 0; }
.scan-facts .scan-wide { grid-column: 1 / -1; }
.scan-info b {
  display: block;
  margin-bottom: 2px;
  color: var(--ice);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.scan-info a { color: var(--ice-bright); }

.binder-looks {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 8px;
  scrollbar-width: none;
}
.binder-looks::-webkit-scrollbar { display: none; }
.binder-looks .cover-swatch {
  flex: 0 0 52px;
  min-width: 52px;
  padding: 0;
  gap: 6px;
  border: 0;
  background: none;
  border-radius: 0;
  justify-items: center;
}
.binder-looks .cover-thumb { display: none; }
.look-chip {
  position: relative;
  display: block;
  width: 42px;
  height: 60px;
  border-radius: 3px 8px 8px 4px;
  overflow: hidden;
  box-shadow:
    inset 8px 0 10px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 8px 14px rgba(0, 0, 0, 0.32);
}
.look-chip::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 5px;
  background:
    radial-gradient(circle at 50% 18%, #d8b56a 0 1.5px, transparent 1.7px),
    radial-gradient(circle at 50% 50%, #d8b56a 0 1.5px, transparent 1.7px),
    radial-gradient(circle at 50% 82%, #d8b56a 0 1.5px, transparent 1.7px);
}
.look-classic { background: linear-gradient(180deg, #5a3a28, #211610); border: 1px solid rgba(197, 165, 114, 0.45); }
.look-midnight { background: linear-gradient(180deg, #2a3648, #121820); border: 1px solid rgba(143, 212, 242, 0.4); }
.look-ice { background: linear-gradient(180deg, #35586a, #142430); border: 1px solid rgba(197, 236, 255, 0.42); }
.look-oak { background: linear-gradient(180deg, #8d6840, #3a2818); border: 1px solid rgba(220, 180, 120, 0.42); }
.look-velvet { background: linear-gradient(180deg, #6a2438, #241016); border: 1px solid rgba(220, 120, 140, 0.42); }
.look-carbon { background: repeating-linear-gradient(135deg, #1c2128 0 6px, #15191f 6px 12px); border: 1px solid rgba(180, 190, 200, 0.32); }
.look-holo { background: linear-gradient(135deg, #3b2a62, #1d4a58 48%, #4a2848); border: 1px solid rgba(210, 180, 255, 0.45); }
.look-print {
  background:
    linear-gradient(90deg, rgba(8, 6, 5, 0.45) 0 8px, transparent 14px),
    #efe7d8;
  border: 1px dashed rgba(238, 244, 248, 0.28);
}
.look-print.has-art { border-style: solid; }
.look-print img {
  position: absolute;
  inset: 7px 5px 7px 11px;
  width: auto;
  height: auto;
  max-width: none;
  object-fit: cover;
}
.covers-grid .look-chip { display: none; }
.binder-looks .cover-swatch strong {
  display: block;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(173, 198, 210, 0.7);
  text-align: center;
}
.binder-looks .cover-swatch small { display: none; }
.binder-looks .cover-swatch.selected {
  border: 0;
  background: none;
}
.binder-looks .cover-swatch.selected .look-chip {
  outline: 1px solid var(--ice);
  outline-offset: 2px;
  transform: translateY(-2px);
}
.binder-looks .cover-swatch.selected strong { color: var(--ice-bright); }
.binder-looks .cover-swatch.locked .look-chip { opacity: 0.45; }
#binder-look-status {
  margin: 0;
  text-align: left;
  font-size: 0.7rem;
}
#binder-look-status:empty { display: none; }

.covers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 10px;
  margin-top: 14px;
  text-align: left;
}
.covers-grid .cover-thumb { display: block; width: 100%; }
.cover-swatch {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--graphite-lift);
  color: var(--text);
  border-radius: var(--r-md);
  padding: 8px;
  display: grid;
  gap: 6px;
  cursor: pointer;
  font: inherit;
  text-align: left;
}
.cover-swatch.selected {
  border-color: rgba(238, 244, 248, 0.9);
  background: rgba(255, 255, 255, 0.06);
}
.cover-swatch.locked { opacity: 0.72; }
.cover-preview {
  display: block;
  width: 100%;
  height: 92px;
  object-fit: cover;
  object-position: center 58%;
  border-radius: var(--r-sm);
  border: 1px solid rgba(255,255,255,0.08);
  background: #0c1016;
}
.cover-swatch strong { font-size: 0.74rem; }
.cover-swatch small { color: var(--mute); font-size: 0.62rem; }

.binder-page[data-theme="midnight"],
.binder-cover[data-theme="midnight"] {
  background:
    linear-gradient(90deg, rgba(8, 10, 14, 0.55) 0 18px, transparent 28px),
    linear-gradient(180deg, #2a3648 0%, #1a222e 48%, #121820 100%);
  border-color: rgba(143, 212, 242, 0.28);
}
.binder-page[data-theme="ice"],
.binder-cover[data-theme="ice"] {
  background:
    linear-gradient(90deg, rgba(8, 16, 22, 0.55) 0 18px, transparent 28px),
    linear-gradient(180deg, #35586a 0%, #1d3544 48%, #142430 100%);
  border-color: rgba(197, 236, 255, 0.32);
}
.binder-page[data-theme="oak"],
.binder-cover[data-theme="oak"] {
  background:
    linear-gradient(90deg, rgba(40, 24, 10, 0.45) 0 18px, transparent 28px),
    linear-gradient(180deg, #8d6840 0%, #5a4026 48%, #3a2818 100%);
  border-color: rgba(220, 180, 120, 0.35);
}
.binder-page[data-theme="velvet"],
.binder-cover[data-theme="velvet"] {
  background:
    linear-gradient(90deg, rgba(20, 6, 10, 0.5) 0 18px, transparent 28px),
    linear-gradient(180deg, #6a2438 0%, #3e1824 48%, #241016 100%);
  border-color: rgba(220, 120, 140, 0.32);
}
.binder-page[data-theme="carbon"],
.binder-cover[data-theme="carbon"] {
  background:
    linear-gradient(90deg, rgba(6, 8, 10, 0.7) 0 18px, transparent 28px),
    repeating-linear-gradient(135deg, #1c2128 0 10px, #15191f 10px 20px);
  border-color: rgba(180, 190, 200, 0.22);
}
.binder-page[data-theme="holo"],
.binder-cover[data-theme="holo"] {
  background:
    linear-gradient(90deg, rgba(20, 10, 28, 0.5) 0 18px, transparent 28px),
    linear-gradient(135deg, #3b2a62 0%, #1d4a58 48%, #4a2848 100%);
  border-color: rgba(210, 180, 255, 0.38);
}

.seller-reviews {
  flex: 0 0 auto;
  padding: 6px 10px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-size: 0.68rem;
  line-height: 1.3;
}
.seller-reviews p { margin: 0; color: var(--mute); }
.seller-trust {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

@media (max-width: 720px) {
  .binder-chrome {
    grid-template-columns: 1fr;
    padding: 0 2px;
  }
  .binder-toggles { grid-column: 1; }
  .binder-chrome-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }
  .binder-toggles {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    overflow: visible;
    gap: 8px;
  }
  .binder-tabs {
    width: 100%;
    flex: none;
  }
  .seg {
    flex: none;
    width: 100%;
  }
  .app-btn {
    height: 40px;
    min-height: 40px;
    padding: 0 14px;
    font-size: 0.84rem;
  }
  #card-actions.row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  #card-actions .ice-btn {
    grid-column: 1 / -1;
    min-height: 44px;
  }
  #card-actions .chip-act,
  #card-actions .chip-act.quiet {
    flex: none;
    width: auto;
    min-width: 0;
    min-height: 44px;
    font-size: 0.82rem;
    padding: 10px 12px;
  }
  .binder-book {
    width: 100%;
    grid-template-columns: 1fr;
  }
  .page-nav {
    position: absolute;
    z-index: 4;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: var(--r-pill);
    background: rgba(12, 14, 18, 0.72);
    color: #eef3f6;
    backdrop-filter: blur(10px);
  }
  #binder-prev { left: 4px; }
  #binder-next { right: 4px; }
  .binder-page { padding: 8px 8px 8px 18px; }
  .binder-rings { left: 3px; top: 10px; bottom: 10px; }
}

@media (max-height: 720px) {
  .pocket-meta small { display: none; }
}

@media (max-height: 620px), (orientation: landscape) and (max-height: 520px) {
  .pocket-meta { display: none; }
  .pocket { grid-template-rows: minmax(0, 1fr); }
  .pocket.is-empty::after { display: none; }
  .folio { font-size: 0.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  .sheet, .sheet-card, .flipper { transition: none; }
  .screen:not([hidden]) { animation: none; }
  .sk-art, .sk-thumb, .sk-line, .sk-block { animation: none; }
  #tabbar .tab svg,
  #tabbar .tab.active svg,
  #tabbar .tab:active svg { transform: none; }
  .app-btn:active,
  .pull-btn:active,
  .ice-btn:active,
  .chip-row button:active,
  .filter-chip:active,
  .jump-go:active,
  .spot-card:active,
  .cotd:active,
  .home-board-jump:active,
  .listing:active,
  .binder-tile:active,
  .empty-cta:active { transform: none; }
}

#home-screen,
#forum-screen,
#board-screen,
#trade-screen {
  padding: 20px 20px 24px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
#home-screen::-webkit-scrollbar,
#forum-screen::-webkit-scrollbar,
#board-screen::-webkit-scrollbar,
#trade-screen::-webkit-scrollbar { display: none; }

.home-page,
.forum-page,
.board-page {
  width: min(100%, 52rem);
  margin: 0 auto;
  display: grid;
  gap: 14px;
}
.board-page { width: min(100%, 72rem); gap: 10px; }

.home-hello {
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  letter-spacing: -0.05em;
  color: var(--ice-bright);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.stat-chip {
  display: grid;
  gap: 2px;
  padding: 12px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}
.stat-chip b {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ice-bright);
}
.stat-chip span {
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
}
.stat-chip.ice b,
.stat-chip.gold b,
.stat-chip.pink b,
.stat-chip.green b { color: var(--ice-bright); }

.cotd {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: var(--r-lg);
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--line);
}
.cotd img {
  width: 100%;
  max-width: 220px;
  justify-self: center;
  aspect-ratio: 63 / 88;
  object-fit: cover;
  border-radius: var(--r-md);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.45);
}
.cotd-badge {
  grid-column: 1 / -1;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ice);
  font-weight: 800;
}
.cotd-copy { display: grid; gap: 6px; }
.cotd-copy b {
  font-family: Syne, Manrope, sans-serif;
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  letter-spacing: -0.04em;
}
.cotd-copy small { color: var(--mute); }
.cotd-copy em {
  font-style: normal;
  color: var(--ice);
  font-weight: 800;
  font-size: 1.1rem;
}

.spotlight-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.spot-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
}
.spot-card img,
.spot-card .splice-thumb {
  width: 100%;
  aspect-ratio: 63 / 88;
  object-fit: cover;
  border-radius: var(--r-sm);
}
.spot-kicker {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}
.spot-card b {
  font-size: 0.86rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.spot-card small { color: var(--mute); font-size: 0.7rem; }

.home-board-jump {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-radius: var(--r-lg);
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--line);
}
.home-board-jump b { display: block; font-size: 1rem; }
.home-board-jump small { color: var(--mute); }
.jump-go {
  flex: 0 0 auto;
  padding: 8px 13px;
  border-radius: var(--r-pill);
  background: var(--ice);
  color: var(--graphite-deep);
  font-size: 0.74rem;
  font-weight: 700;
}

.home-block { display: grid; gap: 8px; }
.home-block-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.home-block-top a { color: var(--ice-bright); text-decoration: none; font-size: 0.78rem; font-weight: 650; }
.pulse-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.pulse-list li {
  padding: 10px 12px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.82rem;
  color: #e8f0f5;
}
.home-forum { display: grid; gap: 8px; }
.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 8px;
}
.home-actions a {
  color: var(--ice-bright);
  text-decoration: none;
  border: 1px solid var(--glass-border);
  border-radius: var(--r-pill);
  padding: 8px 13px;
  font-size: 0.76rem;
  font-weight: 650;
  background: var(--glass);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.scan-catalog {
  padding: 14px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  scroll-margin-top: 12px;
}
.scan-catalog-lede,
.scan-catalog-note {
  margin: 0;
  color: var(--mute);
  font-size: 0.86rem;
  line-height: 1.45;
}
.scan-catalog-note { font-size: 0.78rem; }
.scan-catalog-kicker {
  margin: 8px 0 0;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ice);
  font-weight: 800;
}
.scan-chips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px;
  margin-top: 8px;
}
.scan-chips.lead {
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
}
.scan-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 8px 10px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.74rem;
  font-weight: 650;
  color: var(--text);
  text-align: center;
}
.scan-chips.lead .scan-chip {
  padding: 9px 9px 11px;
  background: color-mix(in srgb, var(--ice) 10%, transparent);
  border-color: color-mix(in srgb, var(--ice) 28%, transparent);
}
.scan-chip img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: #fff;
  border-radius: var(--r-md);
}
.scan-chip b {
  font-size: 0.72rem;
  font-weight: 750;
  line-height: 1.2;
}
.scan-chip small {
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--mute);
}

.hall-nav {
  width: min(100%, 42rem);
  margin: 0 auto var(--s-3);
}

.board-count {
  margin: 4px 0 0;
  font-family: Syne, Manrope, sans-serif;
  font-size: 1.25rem;
  letter-spacing: -0.04em;
  color: #f4f8fb;
}
.board-jumps { display: flex; gap: 12px; }

.splice-table {
  display: grid;
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--glass);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.splice-head,
.splice-row {
  display: grid;
  grid-template-columns: 2.2rem 2.4rem minmax(8rem, 1.4fr) minmax(7rem, 1fr) 3.4rem 3.1rem 5.2rem;
  gap: 10px;
  align-items: center;
  padding: 8px 12px;
}
.splice-head {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 0;
  z-index: 2;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.splice-row {
  color: inherit;
  text-decoration: none;
  border-top: 1px solid var(--line);
  min-height: 58px;
}
.splice-row:hover,
.splice-row:focus-visible {
  background: rgba(90, 210, 255, 0.1);
  outline: none;
}
.splice-row.gold { background: rgba(232, 195, 106, 0.08); }
.splice-row.silver { background: rgba(197, 208, 216, 0.05); }
.splice-row.bronze { background: rgba(212, 165, 116, 0.06); }
.splice-rank {
  font-size: 0.86rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: rgba(173, 198, 210, 0.7);
}
.splice-rank.gold { color: var(--gold); }
.splice-rank.silver { color: #d5dee6; }
.splice-rank.bronze { color: #d4a574; }
.splice-thumb {
  width: 36px;
  height: 50px;
  object-fit: cover;
  border-radius: var(--r-xs);
  background: #1a1512;
  display: block;
}
.splice-thumb-empty {
  display: grid;
  place-items: center;
  font-size: 0.58rem;
  font-weight: 700;
}
.splice-copy { display: grid; gap: 2px; min-width: 0; }
.splice-copy b {
  font-size: 0.84rem;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.splice-copy small {
  color: var(--mute);
  font-size: 0.68rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.splice-meter {
  display: block;
  height: 10px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.splice-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3d8fb3, var(--water));
}
.splice-meter.gold i { background: linear-gradient(90deg, #8a6a2a, var(--gold)); }
.splice-meter.pink i { background: linear-gradient(90deg, #a14e7c, var(--fairy)); }
.splice-meter.ice i { background: linear-gradient(90deg, #3d8fb3, var(--water)); }
.splice-cell {
  font-size: 0.82rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}
.splice-cell.dim { color: var(--mute); font-weight: 650; }
.splice-table.binders .splice-head,
.splice-table.binders .splice-row {
  grid-template-columns: 2.2rem 2.4rem minmax(8rem, 1.4fr) minmax(7rem, 1fr) 3.4rem 5.2rem;
}

.forum-list { display: grid; gap: 8px; }
.forum-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  text-decoration: none;
}
.forum-row.compact { grid-template-columns: auto 1fr; }
.forum-tag {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--graphite-deep);
  background: var(--gold);
  border-radius: var(--r-pill);
  padding: 5px 8px;
  height: fit-content;
}
.forum-copy { display: grid; gap: 4px; min-width: 0; }
.forum-copy b { font-size: 0.95rem; }
.forum-copy p { margin: 0; color: var(--mute); font-size: 0.8rem; }
.forum-copy small,
.forum-row small { color: var(--mute); font-size: 0.7rem; }
.forum-row.compact { display: grid; }

.house-head {
  width: min(100%, 52rem);
  margin: 0 auto 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  align-items: end;
}
.house-head .trade-switch { margin: 0; }
#trade-screen .chip-row,
#trade-status {
  width: min(100%, 52rem);
  margin-left: auto;
  margin-right: auto;
}
.house-lots { width: min(100%, 52rem); margin: 0 auto; }
.lot { position: relative; }
.lot-ribbon {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--r-pill);
  padding: 4px 8px;
  color: #16120a;
  background: var(--gold);
}
.lot-ribbon.live { background: var(--fairy); color: #1a0c14; }
.lot.is-auction .listing-price { color: var(--gold); }
.lot.is-buy .listing-price { color: var(--water); }

@media (max-width: 820px) {
  .splice-head,
  .splice-row,
  .splice-table.binders .splice-head,
  .splice-table.binders .splice-row {
    grid-template-columns: 2rem 2.2rem minmax(0, 1fr) 4.8rem;
  }
  .splice-meter-col,
  .splice-meter,
  .splice-cell:not(.splice-main),
  .splice-head .hide-mobile { display: none; }
}
@media (max-width: 640px) {
  .home-page { gap: 16px; padding-bottom: 18px; }
  .home-hello { font-size: 1.42rem; }
  .stat-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-chip { padding: 14px 12px; }
  .stat-chip b { font-size: 1.02rem; }
  .spotlight-row { grid-template-columns: 1fr; }
  .spotlight-row .spot-card:last-child { grid-column: auto; }
  .cotd {
    grid-template-columns: 1fr;
    padding: 16px;
  }
  .cotd img { max-width: 168px; }
  .sheet-card { padding: 8px 16px 22px; }
  #card-name { font-size: 1rem; }
}
@media (max-width: 520px) {
  .stat-row { grid-template-columns: 1fr 1fr; }
}

/* Collector floor: names stay white, @handles lilac, metrics keep their own colour. */
:root {
  --metric-grade: #5ad2ff;
  --metric-likes: #ff8cc8;
  --metric-worth: #e8c36a;
  --handle: #b9b5e6;
}
.metric-grade { color: var(--metric-grade); }
.metric-likes { color: var(--metric-likes); }
.metric-worth { color: var(--metric-worth); }
.collector-handle { color: var(--handle); font-size: .72rem; overflow-wrap: anywhere; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.arcade-spark { color: var(--gold); }
.board-teaser { gap: 0; padding: 6px 16px 10px; background: var(--glass); border-color: var(--glass-border); box-shadow: var(--glass-shadow); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.board-teaser-top { padding: 10px 0 12px; }
.board-teaser-top b { color: #dce6ef; }
.board-teaser-row {
  display: grid;
  grid-template-columns: 28px 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  color: var(--text);
}
.board-teaser-row i {
  color: var(--tone, var(--gold));
  font: 700 .78rem ui-monospace, monospace;
  border: 1px solid color-mix(in srgb, var(--tone, var(--gold)) 45%, transparent);
  border-radius: var(--r-sm);
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--tone, var(--gold)) 14%, transparent);
}
.board-teaser-row .splice-thumb { width: 30px; height: 42px; border-radius: var(--r-xs); }
.board-teaser-row.tone-grade { --tone: var(--metric-grade); }
.board-teaser-row.tone-likes { --tone: var(--metric-likes); }
.board-teaser-row.tone-worth { --tone: var(--metric-worth); }
.leader-copy { display: grid; min-width: 0; gap: 2px; }
.leader-copy > small { font-size: .61rem; text-transform: uppercase; letter-spacing: .1em; color: var(--tone, var(--mute)); }
.leader-copy > b { color: var(--text); font-size: .81rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leader-value { font: 700 .95rem ui-monospace, monospace; font-variant-numeric: tabular-nums; color: var(--tone, var(--text)); }
.binder-tile-who > span:not(.binder-tile-initials):not(.verified), .splice-copy small { color: var(--handle); }
.binder-tile-worth { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.binder-tile-stars { color: var(--gold); }
.binder-tile-stars-empty { color: var(--mute); }
.splice-cell.metric-grade { color: var(--metric-grade); }
.splice-cell.metric-likes { color: var(--metric-likes); }
.splice-cell.metric-worth { color: var(--metric-worth); }
.splice-meter.green i { background: linear-gradient(90deg, #36785e, var(--metric-worth)); }
.splice-meter { height: 8px; border-radius: 2px; }
.splice-meter i { border-radius: 2px; }
/* The board pane you are on is a solid segment in that metric's colour, so the
   pill matches the meters and figures in the table underneath it. */
#board-tabs button.active { color: #10141a; background: var(--board-tone); }
#board-tabs [data-board="grade"].active { --board-tone: var(--metric-grade); }
#board-tabs [data-board="liked"].active { --board-tone: var(--metric-likes); }
#board-tabs [data-board="worth"].active,
#board-tabs [data-board="binders"].active { --board-tone: var(--metric-worth); }
.stat-chip.green b, .cotd-copy em { color: var(--ice); }
.home-board-jump .metric-grade,
.home-board-jump .metric-likes,
.home-board-jump .metric-worth { color: var(--mute); }
.cotd-copy .collector-handle, .spot-card .collector-handle { color: var(--handle); }
.cotd-copy > .metric-grade { font-size: .8rem; }
.spot-grade { font-size: .72rem; }
.home-block { gap: 12px; padding-top: 8px; }
.home-block-top b { font-family: Syne, Manrope, sans-serif; letter-spacing: -.02em; }
.home-board-jump small { display: block; margin-top: 6px; font-size: .76rem; }
.pulse-list { gap: 0; border: 1px solid var(--glass-border); border-radius: var(--r-lg); overflow: hidden; background: var(--glass); box-shadow: var(--glass-shadow); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.pulse-list li { padding: 0; border: 0; border-radius: 0; background: none; }
.pulse-list li + li { border-top: 1px solid var(--line); }
.pulse-entry {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto 14px;
  align-items: center;
  gap: 14px;
  padding: 12px 14px 12px 12px;
  text-decoration: none;
  border-left: 3px solid var(--tone, #3d4052);
}
.pulse-entry.tone-grade { --tone: var(--metric-grade); }
.pulse-entry.tone-likes { --tone: var(--metric-likes); }
.pulse-entry.tone-worth { --tone: var(--metric-worth); }
.pulse-copy { min-width: 0; display: grid; gap: 3px; }
.pulse-copy b { font-size: .83rem; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pulse-label { font-size: .61rem; letter-spacing: .09em; text-transform: uppercase; color: var(--tone, var(--mute)); }
.pulse-value { font-size: .78rem; font-variant-numeric: tabular-nums; text-align: right; color: var(--tone, var(--text)); }
.pulse-arrow { color: #aab4c5; }
.pulse-art { display: block; position: relative; width: 44px; height: 60px; overflow: hidden; border-radius: var(--r-xs); background: var(--art-well); }
.pulse-art img { width: 100%; height: 100%; object-fit: contain; position: relative; }
.art-placeholder { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; gap: 8px; color: #aeb8cf; }
.art-placeholder > span { font-size: 2rem; }
.art-placeholder small { font: 600 .65rem Manrope, sans-serif; text-align: center; }
.pulse-art .art-placeholder small { display: none; }
.card-art:not(.art-missing) .art-placeholder, .listing-art:not(.art-missing) .art-placeholder, .pulse-art:not(.art-missing) .art-placeholder { visibility: hidden; }
.forum-list, .home-forum { display: grid; gap: 10px; }
.forum-thumb {
  width: 48px;
  height: 66px;
  object-fit: cover;
  border-radius: var(--r-xs);
  background: var(--art-well);
}
.forum-compose {
  display: grid;
  gap: 10px;
  padding: 14px;
  margin: 0 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.03);
}
.forum-compose[hidden] { display: none !important; }
.forum-compose label {
  display: grid;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--mute);
}
.forum-compose input,
.forum-compose textarea,
.forum-compose select {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: rgba(8, 10, 14, 0.7);
  color: var(--text);
  padding: 10px 12px;
  font: inherit;
}
.forum-compose-actions { display: flex; gap: 12px; align-items: center; }
.forum-thread {
  display: grid;
  gap: 10px;
  margin: 8px 0 18px;
}
.forum-hero {
  width: min(100%, 240px);
  aspect-ratio: 63 / 88;
  object-fit: cover;
  border-radius: var(--r-md);
  background: var(--art-well);
}
.forum-thread h2 {
  margin: 0;
  font-family: Syne, Manrope, sans-serif;
  letter-spacing: -0.04em;
}
.forum-body { margin: 0; color: #d5deea; line-height: 1.55; }
.forum-by, .forum-mine { margin: 0; color: var(--mute); font-size: 0.78rem; }
.forum-mine { color: var(--ice); font-weight: 700; }
.forum-replies-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: grid;
  gap: 12px;
}
.forum-replies-list li {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.03);
}
.forum-replies-list img {
  width: min(100%, 140px);
  aspect-ratio: 63 / 88;
  object-fit: cover;
  border-radius: var(--r-sm);
}
.forum-replies-list p { margin: 0; line-height: 1.5; }
.forum-login { margin: 0 0 10px; color: var(--mute); font-size: 0.82rem; }
#forum-back { margin: 4px 0 8px; }
.forum-row, .forum-row.compact {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  gap: 14px;
  padding: 14px 14px 14px 12px;
  align-items: center;
  background: linear-gradient(90deg, color-mix(in srgb, var(--topic) 12%, transparent), var(--glass) 38%);
  border: 1px solid var(--glass-border);
  border-left: 3px solid var(--topic);
  border-radius: var(--r-md);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.forum-row { --topic: #cfb4f5; }
.forum-row.topic-gear { --topic: #ffd36a; }
.forum-row.topic-grading { --topic: var(--metric-grade); }
.forum-row.topic-pulls { --topic: var(--metric-likes); }
.forum-row.topic-auction { --topic: var(--metric-worth); }
.forum-row.topic-board { --topic: #9be3bc; }
.forum-row.topic-look { --topic: #cfb4f5; }
.forum-topic-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 42px;
  border: 1px solid color-mix(in srgb, var(--topic) 40%, transparent);
  color: var(--topic);
  background: color-mix(in srgb, var(--topic) 12%, transparent);
  border-radius: var(--r-sm);
  font-size: 1.25rem;
}
.forum-copy { gap: 6px; }
.forum-copy b { font-size: .9rem; line-height: 1.45; color: var(--text); }
.forum-topic { display: flex; gap: 8px; align-items: center; }
.forum-tag { color: #12151a; padding: 3px 8px; background: var(--topic); border-radius: var(--r-pill); font-size: .58rem; letter-spacing: .08em; font-weight: 800; }
.forum-heat { color: #c9b27a; font-size: .62rem; letter-spacing: .04em; text-transform: uppercase; }
.forum-blurb { color: #a8b5c6; font-size: .8rem; line-height: 1.5; }
.forum-copy .collector-handle { color: var(--handle); }
.forum-replies { display: grid; gap: 3px; text-align: center; align-self: center; border-left: 1px solid var(--line); padding-left: 8px; }
.forum-replies b { color: var(--topic); font: 700 .95rem ui-monospace, monospace; }
.forum-replies small { color: #a8b5c6; font-size: .6rem; }
#trade-screen {
  background:
    radial-gradient(ellipse at 50% -10%, rgba(90, 210, 255, 0.1), transparent 42%),
    radial-gradient(ellipse at 80% 120%, rgba(232, 195, 106, 0.07), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 140px),
    var(--graphite-mid);
}
#trade-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
#trade-grid .listing { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 0; overflow: hidden; border: 1px solid var(--glass-border); border-radius: var(--r-lg); background: var(--glass); box-shadow: var(--glass-shadow); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.lot-top { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; gap: 8px; }
.lot-number { font: 600 .65rem ui-monospace, monospace; letter-spacing: .1em; color: #b0bacb; }
.lot-kind { font-size: .62rem; color: var(--metric-worth); }
.is-auction .lot-kind { color: var(--metric-likes); }
.lot-preview { position: relative; padding: 0; margin: 0 10px; border: 0; border-radius: var(--r-sm); color: inherit; cursor: pointer; background: #121720; overflow: hidden; }
#trade-grid .listing-art {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 63 / 88;
  padding: 0;
  background: radial-gradient(ellipse at 50% 28%, #3a5168, #141b26 76%);
  border: 0;
  border-radius: var(--r-sm);
}
#trade-grid .listing-art img {
  position: absolute;
  inset: 10px;
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  object-fit: contain;
  filter: drop-shadow(0 6px 8px #0009);
}
.lot-body { display: flex; flex-direction: column; flex: 1; gap: 9px; padding: 12px; }
#trade-grid .listing-title { font-size: .86rem; font-weight: 700; height: auto; min-height: 2.55em; line-height: 1.35; }
#trade-grid .listing-meta { display: flex; justify-content: space-between; gap: 8px; font-size: .66rem; color: #acb7c8; }
#trade-grid .listing-meta > span { font-weight: 700; white-space: nowrap; }
#trade-grid .listing-seller { flex-wrap: wrap; gap: 5px; min-height: 1.5em; white-space: normal; }
#trade-grid .listing-seller a { color: var(--handle); }
#trade-grid .listing-stars { color: var(--gold); }
#trade-grid .listing-stars-empty { color: #a8b5c6; }
.lot-price-row { display: flex; justify-content: space-between; align-items: end; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; margin-top: auto; }
#trade-grid .listing-price { display: grid; gap: 4px; color: var(--metric-worth); font-size: 1.12rem; font-variant-numeric: tabular-nums; }
.listing-price small { color: #a8b5c6; font-size: .61rem; font-weight: 500; }
.lot-timing { color: #b0bacb; text-align: right; font-size: .59rem; line-height: 1.6; }
#trade-grid .ice-btn { display: flex; justify-content: center; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: var(--r-md); font-size: .74rem; background: linear-gradient(180deg, #d7f4ff, #8fd4f2); box-shadow: inset 0 1px 0 rgba(255,255,255,.55); color: #0e1820; text-decoration: none; }
#trade-grid .is-auction .ice-btn { background: linear-gradient(180deg, #ffd5ec, #ff8cc8); box-shadow: inset 0 1px 0 rgba(255,255,255,.45); color: #1a0c14; }
#trade-grid .demo-label { top: auto; bottom: 6px; left: 6px; pointer-events: none; }
.lot-preview:hover .listing-art { background: radial-gradient(ellipse at 50% 30%, #4a6580, var(--art-well) 78%); }
a.forum-row:hover, .pulse-entry:hover { background: color-mix(in srgb, var(--topic, var(--tone, #5ad2ff)) 10%, rgba(255,255,255,0.04)); }
.lot-preview:focus-visible, .forum-row:focus-visible, .pulse-entry:focus-visible, .board-teaser:focus-visible { outline: 2px solid var(--ice); outline-offset: -3px; }
@media (max-width: 550px) {
  #trade-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
  .lot-top { padding: 9px; }
  .lot-preview { margin: 0 7px; }
  #trade-grid .listing-art img { inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); }
  .lot-body { padding: 10px 9px; }
  #trade-grid .listing-title { font-size: .78rem; }
  #trade-grid .listing-meta { font-size: .59rem; gap: 4px; }
  .lot-price-row { align-items: start; flex-direction: column; gap: 4px; }
  .lot-timing { text-align: left; }
  .board-teaser-row { grid-template-columns: 26px 26px minmax(0, 1fr) auto; gap: 8px; }
  .pulse-entry { gap: 10px; padding: 12px 12px 12px 10px; grid-template-columns: 38px minmax(0, 1fr) auto; }
  .pulse-art { width: 38px; height: 53px; }
  .pulse-value { grid-column: 2 / -1; text-align: left; font-size: .73rem; margin-top: -3px; }
  .pulse-arrow { grid-column: 3; grid-row: 1; }
  .forum-row, .forum-row.compact { grid-template-columns: 38px minmax(0, 1fr) 40px; gap: 10px; padding: 12px 12px 12px 10px; }
  .forum-thumb { width: 38px; height: 53px; }
  .forum-topic-icon { width: 30px; height: 36px; font-size: 1rem; }
  .forum-copy b { font-size: .8rem; }
  .forum-blurb { font-size: .74rem; }
  .leader-value { font-size: .81rem; }
  .home-board-jump { padding: 14px; gap: 8px; }
  .jump-go { font-size: .66rem; padding: 8px; }
}

@media (prefers-reduced-transparency: reduce) {
  #topbar, #tabbar, .screen, .sheet, .sheet-card, .stat-chip, .cotd, .spot-card,
  .home-board-jump, .pulse-list, .forum-row, .board-teaser, .splice-table,
  .binder-chrome, #trade-grid .listing, .text-btn, .app-btn, .account-chip,
  .alerts-button, .hall-link, .board-tabs button, .trade-tabs button {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .stat-chip, .spot-card, .pulse-list, .board-teaser, .forum-row,
  #trade-grid .listing, .splice-table, .sheet-card, .binder-chrome {
    background: var(--graphite-lift);
  }
}
