/* Playdecko app — shared styles (Phase 2, 21 Oct 2026)
   Brand tokens match the waitlist page. Screens fit the viewport; panels scroll inside.
   Widths: compact < 600px (phones, iPhone Duo folded), medium 600-1023px (Duo unfolded,
   foldables, tablets portrait), expanded >= 1024px (tablet landscape, desktop). */

:root {
  /* Theme A2 Ember (Addendum s33, J 23 Oct 2026): slate, deep ember, metallic champagne gold.
     Theme (Addendum s33): every colour and font in the app comes from these tokens.
     -rgb tokens are "r,g,b" for use as rgba(var(--x-rgb), alpha). */
  --bg: #0B0D12; --bg-rgb: 11,13,18;
  --bg-2: #0F1218; --bg-2-rgb: 15,18,24;
  --surface: #151922; --surface-rgb: 21,25,34;
  --surface-2: #1B2030;
  --raise: #232938;
  --art-glow: #2A3142;
  --accent: #F0C987; --accent-rgb: 240,201,135;            /* main highlight: links, active, values */
  --accent-bright: #F6DFB0; --accent-bright-rgb: 246,223,176;
  --accent-2: #C8642E; --accent-2-rgb: 200,100,46;       /* second highlight: buttons, borders */
  --accent-2-light: #D98150;
  --on-accent: #14100A;                                   /* text on accent fills */
  --good: #B8F23A; --good-rgb: 184,242,58;
  --bad: #FF5A4E; --bad-rgb: 255,90,78;
  --bad-soft: #FF8A7A;
  --text: #F4F6FA; --text-rgb: 244,246,250;
  --text-2: #B8C0CC;
  --muted: #8590A2;
  --line: rgba(var(--accent-2-rgb),0.18);
  --line-2: rgba(var(--text-rgb),0.08);
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-num: var(--font-display);
  --display-weight: 800;
  /* Metallic holo gold: champagne with a faint iridescent sheen (teal and pink). */
  --metal: linear-gradient(110deg, #B08A4E 0%, #E6C68A 16%, #FFF2D4 30%, #EAC98C 42%, #D3E6DE 53%, #F0D3E2 61%, #E9C37E 74%, #F8E6BE 86%, #A88243 100%);
  --display-tracking: -0.02em;
  --radius: 14px;
  --radius-sm: 9px;
  --rail: 248px;
  --detail: 400px;
  --tabbar: 64px;
  --ease: cubic-bezier(.2,.8,.2,1);
  --pd-orange: var(--accent-2);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
body::before { /* the waitlist grid, quieter */
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(var(--accent-2-rgb),0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--accent-2-rgb),0.045) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at 70% 0%, #000 0%, transparent 75%);
}
h1, h2, h3, .display { font-family: var(--font-display); font-weight: var(--display-weight, 800); letter-spacing: var(--display-tracking, -0.02em); line-height: 1.05; margin: 0; }
a { color: var(--accent-2-light); text-decoration: none; }
a:hover { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* ── Shell ──────────────────────────────────────────────────────────────── */
.pd-shell {
  position: relative; z-index: 1;
  height: 100dvh;
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr) var(--detail);
  grid-template-areas: 'rail main detail';
}
.pd-shell.no-detail { grid-template-columns: var(--rail) minmax(0, 1fr); grid-template-areas: 'rail main'; }
.pd-rail { grid-area: rail; border-right: 1px solid var(--line-2); display: flex; flex-direction: column; min-height: 0; background: linear-gradient(180deg, rgba(var(--surface-rgb),.85), rgba(var(--bg-rgb),.6)); }
.pd-main { grid-area: main; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.pd-detail { grid-area: detail; border-left: 1px solid var(--line-2); min-height: 0; overflow: auto; background: rgba(var(--bg-2-rgb),.7); }
.pd-scroll { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; }

.pd-brand { display: flex; align-items: baseline; gap: 2px; padding: 22px 22px 18px; font-family: var(--font-display); font-weight: 800; font-size: 26px; letter-spacing: -0.03em; }
.pd-brand .p { color: var(--accent); }
.pd-brand .d { color: transparent; -webkit-text-stroke: 1.4px var(--accent-2-light); }
.pd-nav { display: flex; flex-direction: column; gap: 2px; padding: 0 12px; }
.pd-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--text-2); font-weight: 800; font-size: 14px; }
.pd-nav a svg { width: 20px; height: 20px; flex: none; }
.pd-nav a:hover { background: var(--surface-2); color: var(--text); }
.pd-nav a[aria-current='page'] { background: rgba(var(--accent-2-rgb),.14); color: var(--accent-2-light); }
.pd-nav a .soon { margin-left: auto; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pd-rail-section { padding: 18px 22px 6px; font-size: 11px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; justify-content: space-between; }
.pd-rail-foot { margin-top: auto; padding: 14px 16px; border-top: 1px solid var(--line-2); display: flex; align-items: center; gap: 10px; font-size: 13px; }
.pd-avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: var(--bg); display: grid; place-items: center; font-weight: 900; font-size: 13px; flex: none; }
.pd-rail-foot .who { min-width: 0; flex: 1; }
.pd-rail-foot .who b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-rail-foot button { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 12px; font-weight: 800; }
.pd-rail-foot button:hover { color: var(--accent-2-light); }

/* Folder tree */
.pd-tree { padding: 0 10px 12px; overflow: auto; min-height: 0; flex: 1; }
.pd-tree ul { list-style: none; margin: 0; padding: 0 0 0 14px; }
.pd-tree > ul { padding-left: 0; }
.pd-tree button { width: 100%; display: flex; align-items: center; gap: 8px; background: none; border: 0; text-align: left; padding: 7px 10px; border-radius: 8px; color: var(--text-2); cursor: pointer; font-size: 13.5px; font-weight: 700; }
.pd-tree button:hover { background: var(--surface-2); color: var(--text); }
.pd-tree button[aria-current='true'] { background: rgba(var(--accent-rgb),.10); color: var(--accent-bright); }
.pd-tree .count { margin-left: auto; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pd-tree svg { width: 15px; height: 15px; flex: none; opacity: .8; }

/* Top bar */
.pd-top { display: flex; align-items: center; gap: 12px; padding: 18px 24px 12px; flex-wrap: wrap; }
.pd-top h1 { font-size: clamp(26px, 3.2vw, 38px); }
.pd-top .sub { color: var(--muted); font-size: 13px; font-weight: 700; }
.pd-top .spacer { flex: 1; }
.pd-search { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; padding: 0 12px; height: 42px; min-width: 220px; }
.pd-search input { background: none; border: 0; outline: 0; flex: 1; min-width: 0; font-weight: 700; }
.pd-search svg { width: 17px; height: 17px; color: var(--muted); }

.pd-chips { display: flex; gap: 8px; padding: 0 24px 14px; overflow-x: auto; scrollbar-width: none; }
.pd-chips::-webkit-scrollbar { display: none; }
.pd-chips { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); }
.pd-chip { flex: none; padding: 7px 14px; border-radius: 100px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text-2); font-weight: 800; font-size: 12.5px; cursor: pointer; white-space: nowrap; }
.pd-chip:hover { border-color: var(--line); color: var(--text); }
.pd-chip[aria-pressed='true'] { background: var(--accent); border-color: var(--accent); color: var(--bg); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent; font-weight: 900; font-size: 14px; cursor: pointer; transition: transform .12s var(--ease), background .2s, border-color .2s; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--accent-2); color: #fff; }
.btn-primary:hover { background: var(--accent-2-light); color: #fff; }
.btn-ghost { background: var(--surface); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--line); color: var(--text); }
.btn-danger { background: rgba(var(--bad-rgb),.12); border-color: rgba(var(--bad-rgb),.35); color: var(--bad-soft); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-block { width: 100%; }

/* ── Card tiles: the binder ─────────────────────────────────────────────── */
.pd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px; padding: 4px 24px 32px; }
.tile { position: relative; border: 0; padding: 0; background: none; text-align: left; cursor: pointer; color: inherit; border-radius: var(--radius); outline-offset: 4px; }
.tile .art { position: relative; aspect-ratio: 5 / 7; border-radius: 12px; overflow: hidden; background: radial-gradient(120% 90% at 30% 10%, var(--art-glow), var(--surface) 70%); border: 1px solid var(--line-2); transform: perspective(700px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)); transition: transform .25s var(--ease), box-shadow .25s; box-shadow: 0 10px 30px -18px rgba(0,0,0,.9); }
.tile.slab .art { border-radius: 10px; border: 2px solid rgba(var(--text-rgb),.22); padding: 18% 7% 6%; background: linear-gradient(180deg, rgba(var(--text-rgb),.10), rgba(var(--text-rgb),.03)); }
.tile.slab .art::before { content: attr(data-label); position: absolute; left: 7%; right: 7%; top: 4%; height: 11%; border-radius: 5px; background: var(--text); color: var(--surface); font: 800 10px/1 var(--font-body); display: flex; align-items: center; justify-content: space-between; padding: 0 7px; letter-spacing: .02em; }
.tile .art img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; }
.tile.slab .art img { object-fit: contain; }
.tile .art .ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-family: var(--font-display); font-weight: 800; font-size: 13px; text-align: center; padding: 12px; }
.tile .art::after { /* foil sheen */
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; mix-blend-mode: color-dodge;
  background: linear-gradient(115deg, transparent 20%, rgba(var(--accent-bright-rgb),.55) 35%, rgba(var(--good-rgb),.35) 42%, rgba(var(--accent-2-rgb),.45) 50%, transparent 65%);
  background-size: 250% 250%; background-position: var(--sx, 50%) var(--sy, 50%); transition: opacity .25s;
}
.tile:hover .art, .tile:focus-visible .art { box-shadow: 0 24px 40px -22px rgba(var(--accent-2-rgb),.55); }
.tile:hover .art::after, .tile:focus-visible .art::after { opacity: .55; }
.tile[aria-current='true'] .art { outline: 2px solid var(--accent); outline-offset: 3px; }
.tile .meta { padding: 9px 2px 0; }
.tile .name { font-weight: 900; font-size: 13.5px; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tile .set { font-size: 12px; color: var(--muted); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .flags { position: absolute; left: 8px; right: 8px; bottom: 8px; display: flex; flex-wrap: wrap; gap: 4px; z-index: 2; }
.flag { font-size: 10px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; padding: 3px 7px; border-radius: 100px; background: rgba(var(--bg-rgb),.85); border: 1px solid var(--line-2); color: var(--text-2); }
.flag.lime { color: var(--good); border-color: rgba(var(--good-rgb),.35); }
.flag.red { color: var(--bad-soft); border-color: rgba(var(--bad-rgb),.4); }
.flag.yellow { color: var(--accent-bright); border-color: rgba(var(--accent-rgb),.4); }

/* Badges with agreed wording */
.badge { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 100px; font-weight: 900; font-size: 12.5px; border: 1px solid; }
.badge svg { width: 15px; height: 15px; }
.badge-lime { color: var(--good); background: rgba(var(--good-rgb),.08); border-color: rgba(var(--good-rgb),.35); }
.badge-yellow { color: var(--accent-bright); background: rgba(var(--accent-rgb),.08); border-color: rgba(var(--accent-rgb),.35); }
.badge-red { color: var(--bad-soft); background: rgba(var(--bad-rgb),.10); border-color: rgba(var(--bad-rgb),.4); }
.badge-green { color: var(--good); background: rgba(var(--good-rgb),.08); border-color: rgba(var(--good-rgb),.4); }
.badge-muted { color: var(--text-2); background: var(--surface); border-color: var(--line-2); }

/* Detail panel */
.dp { padding: 22px; display: flex; flex-direction: column; gap: 18px; }
.dp-empty { height: 100%; display: grid; place-items: center; text-align: center; color: var(--muted); padding: 30px; }
.dp-empty h3 { color: var(--text-2); font-size: 20px; margin-bottom: 6px; }
.dp-hero { position: relative; aspect-ratio: 5/7; max-height: 46vh; margin: 0 auto; border-radius: 14px; overflow: hidden; background: var(--surface); border: 1px solid var(--line-2); }
.dp-hero img { width: 100%; height: 100%; object-fit: contain; }
.dp h2 { font-size: 26px; }
.dp .kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 13.5px; }
.dp .kv dt { color: var(--muted); font-weight: 800; }
.dp .kv dd { margin: 0; font-weight: 700; text-align: right; }
.dp .row { display: flex; gap: 8px; flex-wrap: wrap; }
.dp-close { display: none; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .label { font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.input, select.input, textarea.input { width: 100%; height: 44px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 11px; padding: 0 13px; outline: 0; font-weight: 700; transition: border-color .2s, box-shadow .2s; }
textarea.input { height: auto; min-height: 84px; padding: 10px 13px; resize: vertical; }
.input:focus { border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(var(--accent-2-rgb),.15); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.conf { font-size: 10px; letter-spacing: .08em; padding: 2px 7px; border-radius: 100px; text-transform: uppercase; }
.conf.high { color: var(--good); background: rgba(var(--good-rgb),.1); }
.conf.medium { color: var(--accent-bright); background: rgba(var(--accent-rgb),.1); }
.conf.low { color: var(--bad-soft); background: rgba(var(--bad-rgb),.12); }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks label { cursor: pointer; }
.checks input { position: absolute; opacity: 0; pointer-events: none; }
.checks span { display: inline-block; padding: 7px 12px; border-radius: 100px; border: 1px solid var(--line-2); background: var(--surface); font-weight: 800; font-size: 12.5px; color: var(--text-2); text-transform: none; letter-spacing: 0; }
.checks input:checked + span { background: rgba(var(--accent-2-rgb),.16); border-color: var(--accent-2); color: var(--accent-2-light); }
.checks input:focus-visible + span { outline: 2px solid var(--accent); }
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; padding: 3px; }
.seg button { border: 0; background: none; padding: 8px 14px; border-radius: 9px; font-weight: 900; font-size: 13px; color: var(--text-2); cursor: pointer; }
.seg button[aria-pressed='true'] { background: var(--accent); color: var(--bg); }

/* Empty / state */
.state { display: grid; place-items: center; text-align: center; padding: 60px 24px; gap: 12px; }
.state h2 { font-size: clamp(26px, 4vw, 40px); }
.state p { color: var(--muted); max-width: 420px; margin: 0 auto; }
.shimmer { background: linear-gradient(100deg, var(--surface) 30%, var(--raise) 50%, var(--surface) 70%); background-size: 300% 100%; animation: sh 1.4s linear infinite; }
@keyframes sh { to { background-position: -100% 0; } }

/* Toast */
.pd-toast { position: fixed; left: 50%; bottom: calc(var(--tabbar) + 18px); transform: translateX(-50%) translateY(20px); opacity: 0; background: var(--raise); border: 1px solid var(--line); color: var(--text); font-weight: 800; padding: 11px 18px; border-radius: 12px; z-index: 50; transition: all .3s var(--ease); pointer-events: none; max-width: calc(100vw - 32px); }
.pd-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.pd-toast.err { border-color: rgba(var(--bad-rgb),.5); color: var(--bad-soft); }

/* Tab bar (compact only) */
.pd-tabbar { display: none; }

/* Gate (signed out) */
.pd-gate { position: relative; z-index: 1; height: 100dvh; display: grid; place-items: center; padding: 24px; text-align: center; }
.pd-gate h1 { font-size: clamp(34px, 7vw, 64px); margin-bottom: 12px; }
.pd-gate h1 .y { color: var(--accent); }
.pd-gate p { color: var(--text-2); max-width: 440px; margin: 0 auto 22px; }

/* ── Medium: two panes ──────────────────────────────────────────────────── */
@media (max-width: 1279px) {
  :root { --detail: 360px; --rail: 216px; }
}
@media (max-width: 1023px) {
  :root { --rail: 76px; }
  .pd-shell, .pd-shell.no-detail { grid-template-columns: var(--rail) minmax(0, 1fr); grid-template-areas: 'rail main'; }
  .pd-shell.has-detail { grid-template-columns: var(--rail) minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: 'rail main detail'; }
  .pd-shell:not(.has-detail) .pd-detail { display: none; }
  .pd-rail .pd-brand { padding: 20px 0 16px; justify-content: center; font-size: 22px; }
  .pd-grid { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 14px; padding-left: 16px; padding-right: 16px; }
  .pd-top, .pd-chips { padding-left: 16px; padding-right: 16px; }
  .pd-rail .pd-brand .d { display: none; }
  .pd-nav a { justify-content: center; padding: 12px; }
  .pd-nav a span, .pd-nav a .soon, .pd-rail-section, .pd-tree, .pd-rail-foot .who, .pd-rail-foot button { display: none; }
  .pd-rail-foot { justify-content: center; }
  .pd-mobile-folders { display: flex !important; }
  .dp-close { display: inline-flex; }
}

/* ── Compact: one pane + tab bar ────────────────────────────────────────── */
@media (max-width: 599px) {
  .pd-shell, .pd-shell.no-detail, .pd-shell.has-detail { grid-template-columns: 1fr; grid-template-areas: 'main'; padding-bottom: var(--tabbar); }
  .pd-rail { display: none; }
  .pd-shell.has-detail .pd-detail { display: block; position: fixed; inset: 0 0 var(--tabbar) 0; z-index: 30; border: 0; background: var(--bg); animation: up .28s var(--ease); }
  @keyframes up { from { transform: translateY(24px); opacity: 0; } }
  .pd-top { padding: 16px 16px 10px; }
  .pd-search { min-width: 0; width: 100%; order: 5; }
  .pd-chips, .pd-grid { padding-left: 16px; padding-right: 16px; }
  .pd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .grid-2 { grid-template-columns: 1fr; }
  .pd-tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; height: var(--tabbar); z-index: 40; background: rgba(var(--bg-rgb),.96); border-top: 1px solid var(--line-2); backdrop-filter: blur(10px); padding-bottom: env(safe-area-inset-bottom); }
  .pd-tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font-size: 10.5px; font-weight: 900; }
  .pd-tabbar a svg { width: 22px; height: 22px; }
  .pd-tabbar a[aria-current='page'] { color: var(--accent-2-light); }
  .pd-tabbar a.add { color: var(--bg); }
  .pd-tabbar a.add i { width: 46px; height: 46px; margin-top: -18px; border-radius: 16px; background: linear-gradient(135deg, var(--accent-2), var(--accent)); display: grid; place-items: center; box-shadow: 0 8px 22px -8px rgba(var(--accent-2-rgb),.8); }
  .pd-tabbar a.add span { color: var(--muted); }
}
.pd-mobile-folders { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .tile .art { transform: none !important; }
}

/* Sorted / My folders toggle (Addendum v1.6 s15) */
.pd-view { display: inline-flex; background: var(--surface-2); border-radius: 999px; padding: 3px; gap: 2px; letter-spacing: normal; text-transform: none; }
.pd-view button { border: 0; background: none; color: var(--muted); font: inherit; font-size: 12px; font-weight: 800; padding: 5px 11px; border-radius: 999px; cursor: pointer; }
.pd-view button[aria-pressed='true'] { background: var(--accent); color: var(--bg); }
.pd-view button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.dp-picswitch { align-self: center; margin-top: -4px; }

/* Catalogue match picker on Add a card (Addendum v1.6 s15) */
.pd-matches { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.pd-match { text-align: left; display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--surface-2); background: var(--surface-2); color: var(--text); font: inherit; cursor: pointer; min-height: 44px; }
.pd-match b { font-size: 14.5px; }
.pd-match span { font-size: 12.5px; color: var(--text-2); }
.pd-match em { font-style: normal; font-size: 11px; font-weight: 800; color: var(--muted); margin-top: 2px; }
.pd-match[aria-pressed='true'] { border-color: var(--accent); background: rgba(var(--accent-rgb),.08); }
.pd-match[aria-pressed='true'] em { color: var(--accent-bright); }
.pd-match.none { border-style: dashed; background: none; }
.pd-match:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hint { color: var(--muted); font-size: 13px; margin: -4px 0 12px; }

/* Confirm before save when Pip is unsure (finish, set and number, slab label) */
.pd-confirm { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(var(--accent-rgb),.07); border: 1px solid rgba(var(--accent-rgb),.28); }
.pd-confirm p { margin: 0 0 10px; font-size: 13.5px; color: var(--text-2); line-height: 1.45; }
.pd-confirm p b { color: var(--text); }
.pd-confirm-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--accent); background: none; color: var(--accent-bright); font: inherit; font-size: 13.5px; font-weight: 800; cursor: pointer; }
.pd-confirm-btn svg { width: 15px; height: 15px; }
.pd-confirm-btn:focus-visible, .pd-more:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pd-confirm.flash { animation: pd-flash 1.2s ease-out; }
@keyframes pd-flash { 0%, 30% { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb),.35); } 100% { box-shadow: none; } }
@media (prefers-reduced-motion: reduce) { .pd-confirm.flash { animation: none; border-color: var(--accent); } }
.pd-more { margin-top: 8px; background: none; border: 0; padding: 6px 0; color: var(--muted); font: inherit; font-size: 13px; font-weight: 800; text-decoration: underline; cursor: pointer; }
#f-finishes label[hidden] { display: none; }

/* What shines when you tilt it (plain-words finish) */
.pd-shine { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.pd-shine-opt { text-align: left; display: flex; flex-direction: column; gap: 2px; padding: 11px 13px; min-height: 44px; border-radius: 12px; border: 1.5px solid var(--surface-2); background: var(--surface-2); color: var(--text); font: inherit; cursor: pointer; }
.pd-shine-opt b { font-size: 14px; }
.pd-shine-opt span { font-size: 11.5px; font-weight: 800; color: var(--muted); }
.pd-shine-opt[aria-checked='true'] { border-color: var(--accent); background: rgba(var(--accent-rgb),.08); }
.pd-shine-opt[aria-checked='true'] span { color: var(--accent-bright); }
.pd-shine-opt:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pd-shine-note { margin: 8px 0 0; font-size: 13px; color: var(--good); }
#f-finishes { margin-top: 12px; }

/* Pack mode on Add a card */
.pd-pack { margin-bottom: 12px; }
.pd-pack-setup { margin-bottom: 4px; }
.pd-pack-setup .btn svg { width: 18px; height: 18px; }
.pd-pack-on { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 14px; border-radius: 12px; background: rgba(var(--good-rgb),.08); border: 1px solid rgba(var(--good-rgb),.3); }
.pd-pack-on div { display: grid; gap: 2px; flex: 1; min-width: 180px; }
.pd-pack-on b { font-size: 14px; }
.pd-pack-on span { font-size: 12.5px; color: var(--text-2); }
.pd-pack-on .pd-more { margin: 0; }
.actions-inline { display: flex; gap: 10px; flex-wrap: wrap; }

/* Card photos: thumbnails and viewer */
.dp-hero-btn { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
/* The whole photo, never cropped (J, 28 Oct 2026). */
.dp-hero-btn img { display: block; width: 100%; height: 100%; object-fit: contain; }
.dp-thumb { position: relative; width: 64px; height: 88px; padding: 0; border-radius: 8px; border: 1px solid var(--line-2); background: none; overflow: hidden; cursor: pointer; }
.dp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dp-thumb.main { border: 2px solid var(--accent); }
.dp-thumb em { position: absolute; left: 0; right: 0; bottom: 0; font-style: normal; font-size: 10px; font-weight: 900; text-align: center; background: var(--accent); color: var(--bg); padding: 1px 0; }
.dp-thumb:focus-visible, .dp-hero-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pd-viewer { position: fixed; inset: 0; z-index: 1000; background: var(--bg); display: grid; grid-template-rows: auto 1fr auto; padding: max(12px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom)); gap: 12px; }
.pv-top { display: flex; justify-content: space-between; align-items: center; color: var(--text-2); font-weight: 800; font-size: 14px; }
.pv-stage { position: relative; display: grid; place-items: center; min-height: 0; }
.pv-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 12px; }
.pv-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.pv-nav.prev { left: 0; } .pv-nav.next { right: 0; }
.pv-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.pd-rail-foot .who a { display: block; font-size: 12px; font-weight: 800; color: var(--muted); }

/* Welcome (age, terms, emails) and Account */
.pd-welcome { min-height: 100vh; display: grid; place-items: start center; padding: 40px 16px 60px; }
.pd-welcome .card { width: min(560px, 100%); display: grid; gap: 18px; }
.pd-welcome h1 { font-family: var(--font-display); font-size: clamp(30px, 7vw, 40px); line-height: 1.1; margin: 0; }
.pd-welcome .lead { color: var(--text-2); margin: 0; }
.pd-check { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); cursor: pointer; }
.pd-check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.pd-check b { display: block; color: var(--text); }
.pd-check span { font-size: 13px; color: var(--text-2); }
.pd-always { font-size: 13.5px; color: var(--text-2); padding: 12px 14px; border-radius: 12px; border: 1px dashed var(--line-2); }
.pd-stop { padding: 16px; border-radius: 14px; background: rgba(var(--accent-2-rgb),.1); border: 1px solid rgba(var(--accent-2-rgb),.4); }
.pd-stop h2 { margin: 0 0 6px; font-size: 20px; }
.pd-account { display: grid; gap: 16px; max-width: 640px; padding: 8px 24px 40px; }
@media (max-width: 899px) { .pd-account { padding: 4px 16px 24px; } }
.pd-welcome .panel, .pd-account .panel { background: rgba(var(--surface-rgb),.6); border: 1px solid var(--line-2); border-radius: 16px; padding: 18px; display: grid; gap: 14px; }
.pd-welcome .panel h2, .pd-account .panel h2 { font-size: 20px; margin: 0; }

/* Rail collapse / expand (remembered per device). rail-slim: icons only on any screen
   from 600px; rail-full: full menu on medium screens too. */
.pd-rail-toggle { display: flex; align-items: center; gap: 10px; margin: 8px 12px 0; padding: 10px 12px; border: 0; border-radius: 10px; background: none; color: var(--muted); font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.pd-rail-toggle:hover { background: var(--surface-2); color: var(--text); }
.pd-rail-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pd-rail-toggle i { font-style: normal; font-size: 18px; line-height: 1; width: 20px; text-align: center; }
@media (min-width: 600px) {
  html.rail-slim { --rail: 76px; }
  html.rail-slim .pd-rail .pd-brand { padding: 20px 0 16px; justify-content: center; font-size: 22px; }
  html.rail-slim .pd-rail .pd-brand .d { display: none; }
  html.rail-slim .pd-nav a { justify-content: center; padding: 12px; }
  html.rail-slim .pd-nav a span, html.rail-slim .pd-nav a .soon, html.rail-slim .pd-rail-section, html.rail-slim .pd-tree,
  html.rail-slim .pd-rail-foot .who, html.rail-slim .pd-rail-foot button, html.rail-slim .pd-rail-toggle span { display: none; }
  html.rail-slim .pd-rail-foot, html.rail-slim .pd-rail-toggle { justify-content: center; }
  html.rail-slim .pd-mobile-folders { display: flex !important; }
}
@media (max-width: 1023px) {
  html:not(.rail-full) .pd-rail-toggle { justify-content: center; }
  html:not(.rail-full) .pd-rail-toggle span { display: none; }
}
@media (min-width: 600px) and (max-width: 1023px) {
  html.rail-full { --rail: 216px; }
  html.rail-full .pd-rail .pd-brand { padding: 22px 22px 18px; justify-content: flex-start; font-size: 26px; }
  html.rail-full .pd-rail .pd-brand .d { display: inline; }
  html.rail-full .pd-nav a { justify-content: flex-start; padding: 10px 12px; }
  html.rail-full .pd-nav a span, html.rail-full .pd-nav a .soon { display: inline; }
  html.rail-full .pd-rail-section:not([hidden]) { display: flex; }
  html.rail-full .pd-tree { display: block; }
  html.rail-full .pd-rail-foot .who { display: block; }
  html.rail-full .pd-rail-foot button { display: inline; }
  html.rail-full .pd-rail-foot { justify-content: flex-start; }
  html.rail-full .pd-mobile-folders { display: none !important; }
}

/* Logo in the brand lockup: cards mark + wordmark, colours as the logo (Play orange, decko yellow) */
.pd-brand { align-items: center; }
.pd-brand .mk { width: 30px; height: 30px; margin-right: 8px; flex: none; }
.pd-brand .p { color: var(--accent-2); }
.pd-brand .d { color: var(--accent); -webkit-text-stroke: 0; }
@media (min-width: 600px) and (max-width: 1023px) {
  html:not(.rail-full) .pd-rail .pd-brand .p { display: none; }
  html:not(.rail-full) .pd-rail .pd-brand .mk { margin-right: 0; width: 34px; height: 34px; }
}
@media (min-width: 600px) {
  html.rail-slim .pd-rail .pd-brand .p { display: none; }
  html.rail-slim .pd-rail .pd-brand .mk { margin-right: 0; width: 34px; height: 34px; }
}
html.rail-full .pd-rail .pd-brand .p { display: inline; }
/* Brand must fit the rail at every width */
.pd-rail .pd-brand { padding: 22px 16px 18px 18px; font-size: 22px; white-space: nowrap; overflow: hidden; }
.pd-rail .pd-brand .mk { width: 28px; height: 28px; }
@media (min-width: 600px) and (max-width: 1023px) { html.rail-full .pd-rail .pd-brand { padding: 22px 16px 18px 18px; font-size: 22px; } }
.dp-slab { margin: 0 0 10px; font-size: 13.5px; color: var(--text-2); line-height: 1.5; }
.dp-slab a { color: var(--accent-bright); }
.dp-slab .when { color: var(--muted); font-size: 12px; white-space: nowrap; }

/* Phones and tablets: browse folders one level at a time */
.pd-mobile-folders { flex-direction: column; gap: 10px; }
.pd-browse-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 24px; }
.pd-browse-back { border: 0; background: none; color: var(--accent-bright); font: inherit; font-weight: 800; font-size: 14px; padding: 8px 0; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-browse-row { padding-bottom: 4px; }
.pd-chip b { margin-left: 4px; font-weight: 900; color: var(--muted); }
.pd-chip.here { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.pd-chip.here b, .pd-chip.here svg { color: var(--bg); }
.pd-browse-empty { font-size: 13px; color: var(--muted); align-self: center; white-space: nowrap; }
@media (max-width: 1023px) { .pd-browse-top, .pd-browse-row { padding-left: 16px; padding-right: 16px; } }

/* Set and game pickers */
.pd-suggest-wrap { position: relative; }
.pd-suggest { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 40; background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: 0 16px 40px -16px #000; max-height: 280px; overflow: auto; padding: 4px; }
.pd-suggest button { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; width: 100%; text-align: left; border: 0; background: none; color: var(--text); font: inherit; padding: 9px 12px; border-radius: 8px; cursor: pointer; min-height: 44px; }
.pd-suggest button:hover, .pd-suggest button:focus-visible { background: var(--surface-2); outline: none; }
.pd-suggest b { font-size: 14px; }
.pd-suggest span { font-size: 12px; color: var(--muted); font-weight: 700; }
.pd-tidy { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.pd-tidy li { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); }
.pd-tidy span { font-size: 13px; color: var(--text-2); }

/* Calmer selected states (21 Oct 2026): one colour per job. Orange = actions,
   yellow = selected (soft tint and outline, not solid), lime = good news only. */
.pd-chip[aria-pressed='true'], .pd-chip.here { background: rgba(var(--accent-rgb),.12); border-color: rgba(var(--accent-rgb),.55); color: var(--accent-bright); }
.pd-chip.here b, .pd-chip.here svg { color: var(--accent-bright); }
.pd-chip[aria-pressed='true'] b { color: var(--accent-bright); }
.seg button[aria-pressed='true'], .pd-view button[aria-pressed='true'] { background: rgba(var(--accent-rgb),.14); color: var(--accent-bright); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb),.5); }
.dp-thumb.main { border-color: rgba(var(--accent-rgb),.7); }
.dp-thumb em { background: rgba(var(--bg-rgb),.85); color: var(--accent-bright); }

/* Folder tree: open and close */
.pd-tree-row { display: flex; align-items: center; gap: 2px; }
.pd-tree-row > button[data-folder] { flex: 1; min-width: 0; }
.pd-twisty { flex: none; width: 26px; height: 32px; padding: 0; border: 0; background: none; color: var(--muted); border-radius: 6px; cursor: pointer; display: grid; place-items: center; }
.pd-twisty svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.pd-twisty[aria-expanded='true'] svg { transform: rotate(90deg); }
.pd-twisty:hover { color: var(--text); background: var(--surface-2); }
.pd-twisty:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.pd-twisty-gap { flex: none; width: 26px; }
.pd-tree ul ul { padding-left: 12px; }
.pd-tree .pd-twisty { width: 26px; padding: 0; justify-content: center; }

/* Phones: cards first. One filter button opens the folders and filters; the camera tab replaces Add a card. */
.pd-filter-btn { display: none; }
@media (max-width: 599px) {
  #add-btn { display: none; }
  .pd-top { padding: 14px 16px 8px; gap: 8px; }
  .pd-top .spacer { display: none; }
  .pd-top > div:first-child { width: 100%; }
  .pd-search { order: 5; flex: 1; width: auto; min-width: 0; height: 40px; }
  .pd-filter-btn { order: 6; display: inline-flex; align-items: center; gap: 6px; max-width: 48%; height: 40px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text-2); font: inherit; font-size: 13.5px; font-weight: 800; cursor: pointer; }
  .pd-filter-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .pd-filter-btn svg { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
  .pd-filter-btn b { flex: none; min-width: 18px; height: 18px; border-radius: 9px; background: rgba(var(--accent-rgb),.18); color: var(--accent-bright); font-size: 11px; display: grid; place-items: center; }
  .pd-filter-btn[aria-expanded='true'] { border-color: rgba(var(--accent-rgb),.55); color: var(--accent-bright); }
  .pd-filter-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  .pd-filter-panel { display: none; }
  .filters-open .pd-filter-panel { display: block; padding-top: 4px; }
}

/* Ordinary scrolling pages (Terms, Privacy, Welcome). The app shell locks the body and
   scrolls inside panes; these pages scroll normally. */
body.page-scroll { overflow: auto; height: auto; min-height: 100%; }

/* Share cards */
.pd-share-btn { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text-2); font: inherit; font-size: 13.5px; font-weight: 800; cursor: pointer; }
.pd-share-btn svg { width: 17px; height: 17px; }
.pd-share-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 599px) {
  .pd-share-btn { order: 6; height: 40px; width: 40px; padding: 0; justify-content: center; }
  .pd-share-btn span { display: none; }
  .pd-filter-btn { order: 7; }
}
.pd-share { position: fixed; inset: 0; z-index: 1000; background: rgba(var(--bg-rgb),.86); display: grid; place-items: center; padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom)); }
.ps-card { width: min(460px, 100%); max-height: 100%; overflow: auto; background: var(--surface); border: 1px solid var(--line-2); border-radius: 18px; padding: 16px; display: grid; gap: 12px; }
.ps-top { display: flex; justify-content: space-between; align-items: center; font-size: 18px; }
.ps-preview { display: grid; place-items: center; min-height: 240px; }
.ps-preview img { max-width: 100%; max-height: 56vh; border-radius: 12px; box-shadow: 0 20px 50px -20px #000; }
.ps-preview .shimmer { width: 70%; aspect-ratio: 4/5; border-radius: 12px; }
.ps-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.ps-actions .btn-primary { flex: 1; justify-content: center; }
.ps-note { margin: 0; font-size: 12.5px; color: var(--muted); text-align: center; }
.ps-link { border-top: 1px solid var(--line-2); padding-top: 12px; display: grid; gap: 8px; }
.ps-link p { margin: 0; font-size: 13px; color: var(--text-2); }
.ps-link-body { display: grid; gap: 8px; }
.ps-warn { color: var(--accent-bright) !important; font-weight: 800; }

/* Photo viewer: the whole photo fits the screen; tap it to zoom in and scroll around. */
.pd-viewer { height: 100dvh; }
.pv-stage { overflow: hidden; }
.pv-stage img { max-height: calc(100dvh - 170px); width: auto; height: auto; cursor: zoom-in; }
.pv-stage.zoomed { overflow: auto; place-items: start center; -webkit-overflow-scrolling: touch; }
.pv-stage.zoomed img { max-width: none; max-height: none; width: min(1600px, 220%); cursor: zoom-out; }
.pv-stage.zoomed .pv-nav { display: none; }
.pv-hint { text-align: center; font-size: 12px; color: var(--muted); font-weight: 700; }
.pd-viewer { grid-template-rows: auto minmax(0, 1fr) auto auto; }

/* Catalogue pictures and cards without photos (Addendum v1.12 s21) */
.tile .art .stock { position: absolute; left: 6px; bottom: 6px; font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 999px; background: rgba(var(--bg-rgb),.78); color: var(--text-2); letter-spacing: .02em; }
.dp-stock { margin: 0 auto; display: grid; gap: 8px; }
.dp-stock img { width: 100%; aspect-ratio: 5/7; max-height: 46vh; object-fit: contain; border-radius: 14px; background: var(--surface); border: 1px dashed var(--line-2); opacity: .9; }
.dp-stock figcaption { font-size: 12.5px; color: var(--muted); font-weight: 700; text-align: center; }
.dp-nophoto { display: grid; place-items: center; color: var(--muted); font-weight: 800; }

/* Import (Addendum v1.12 s21) */
.imp { display: grid; gap: 18px; max-width: 980px; padding: 8px 24px 40px; }
.imp .panel { background: rgba(var(--surface-rgb),.6); border: 1px solid var(--line-2); border-radius: 16px; padding: 18px; display: grid; gap: 14px; }
.imp h2 { font-size: 20px; }
.imp .hint { color: var(--muted); font-size: 13.5px; margin: 0; }
.imp-drop { border: 2px dashed rgba(var(--accent-2-rgb),.45); border-radius: 14px; padding: 22px; text-align: center; cursor: pointer; display: grid; gap: 6px; justify-items: center; }
.imp-drop:hover, .imp-drop.over { border-color: var(--accent); }
.imp-drop b { font-family: var(--font-display); font-size: 18px; }
.imp textarea { width: 100%; min-height: 120px; resize: vertical; }
.imp-or { text-align: center; color: var(--muted); font-weight: 800; font-size: 12px; }
.imp-map { display: grid; grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); gap: 10px; }
.imp-map label { display: grid; gap: 4px; font-size: 12.5px; font-weight: 800; color: var(--text-2); }
.imp-cols { display: flex; flex-wrap: wrap; gap: 6px; }
.imp-cols span { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: rgba(var(--ink-rgb),.06); color: var(--text-2); }
.imp-bar { height: 8px; border-radius: 99px; background: rgba(var(--ink-rgb),.08); overflow: hidden; }
.imp-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent-2), var(--accent)); transition: width .2s; }
.imp-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.imp-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.imp-row { display: grid; grid-template-columns: auto 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; background: rgba(var(--ink-rgb),.03); border: 1px solid var(--line-2); }
.imp-row.off { opacity: .55; }
.imp-row .pic { width: 44px; aspect-ratio: 5/7; border-radius: 5px; background: var(--surface); overflow: hidden; display: grid; place-items: center; }
.imp-row .pic img { width: 100%; height: 100%; object-fit: cover; }
.imp-row .nm { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.imp-row .sb { color: var(--muted); font-size: 12.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.imp-row select { margin-top: 6px; max-width: 100%; font-size: 13px; }
.imp-pill { font-size: 11.5px; font-weight: 800; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.imp-pill.ready { background: rgba(var(--good-rgb),.14); color: var(--good); }
.imp-pill.check { background: rgba(var(--accent-rgb),.14); color: var(--accent); }
.imp-pill.needs_info, .imp-pill.dupe { background: rgba(var(--ink-rgb),.08); color: var(--muted); }
.imp-save { position: sticky; bottom: 0; padding: 14px 0; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; background: linear-gradient(180deg, transparent, var(--bg) 35%); }
@media (max-width: 699px) {
  .imp { padding: 4px 16px 24px; }
  .imp-row { grid-template-columns: auto 36px minmax(0, 1fr); }
  .imp-row .imp-pill { grid-column: 3; justify-self: start; }
  .imp-row .pic { width: 36px; }
}
.imp-drop svg { width: 34px; height: 34px; color: var(--accent-2); }

/* Values (Addendum v1.13 s22) */
.dp-val-range { font-family: var(--font-display); font-weight: 800; font-size: 22px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dp-conf { font-family: var(--font-body); font-size: 11.5px; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: rgba(var(--ink-rgb),.07); color: var(--text-2); }
.dp-conf.high { background: rgba(var(--good-rgb),.14); color: var(--good); }
.dp-conf.medium { background: rgba(var(--accent-rgb),.14); color: var(--accent); }
.dp-val-src, .dp-val-small { color: var(--muted); font-size: 12.5px; font-weight: 700; margin-top: 4px; }
.dp-val-src .up, .pd-value .up { color: var(--good); } .dp-val-src .down, .pd-value .down { color: var(--bad-soft); }
.dp-val-sell { margin-top: 8px; font-size: 13.5px; font-weight: 700; color: var(--text-2); }
.dp-val-none { color: var(--text-2); font-size: 13.5px; margin: 0 0 8px; }
.dp-left { color: var(--muted); font-weight: 700; font-size: 12px; margin-left: 6px; }
.dp-comps { margin-top: 10px; font-size: 13px; }
.dp-comps summary { cursor: pointer; font-weight: 800; color: var(--text-2); }
.dp-comps ul { margin: 8px 0; padding-left: 18px; display: grid; gap: 4px; color: var(--text-2); }
.dp-comps a { color: var(--text-2); }
.dp-ebay { display: inline-block; margin-top: 10px; font-weight: 800; font-size: 13px; color: var(--accent); }
.pd-value { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; margin: 0 0 16px; padding: 14px 16px; border-radius: 14px; background: rgba(var(--surface-rgb),.6); border: 1px solid var(--line-2); position: relative; }
.pd-value[hidden] { display: none; }
.pd-value .pv-main { display: grid; gap: 2px; }
.pd-value .pv-main b { font-family: var(--font-display); font-size: 22px; }
.pd-value .pv-label { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.pd-value .pv-sub { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.pd-value .pv-chart { display: grid; gap: 2px; }
.pd-spark { width: 160px; height: 40px; } .pd-spark path { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.pd-value .pv-movers { display: grid; gap: 6px; }
.pd-value .pv-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.pd-value .pv-note { position: absolute; right: 14px; bottom: 8px; font-size: 10.5px; color: var(--muted); font-weight: 700; }
@media (max-width: 699px) { .pd-value { gap: 10px 18px; padding-bottom: 26px; } .pd-value .pv-note { left: 16px; right: auto; } }
@media (max-width: 699px) {
  .pd-value { padding: 10px 14px; cursor: pointer; margin-bottom: 12px; }
  .pd-value .pv-main { grid-template-columns: auto 1fr; align-items: baseline; gap: 2px 10px; }
  .pd-value .pv-main b { font-size: 17px; }
  .pd-value .pv-main .pv-label { grid-row: span 2; align-self: center; }
  .pd-value .pv-chart, .pd-value .pv-movers, .pd-value .pv-note { display: none; }
  .pd-value.open .pv-chart, .pd-value.open .pv-movers { display: grid; }
  .pd-value.open .pv-note { display: block; position: static; }
  .pd-value::after { content: '›'; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 800; }
  .pd-value.open::after { content: '‹'; top: 18px; transform: none; }
}
.pd-value { margin: 0 24px 16px; }
@media (max-width: 699px) { .pd-value { margin: 0 16px 12px; } }
.pd-value .pv-note { position: static; flex-basis: 100%; margin-top: -6px; }

/* Search to add (Addendum v1.14 s23) */
.fd { display: grid; gap: 14px; padding: 8px 24px 40px; max-width: 1100px; }
.fd-bar { display: flex; gap: 10px; flex-wrap: wrap; }
.fd-q { flex: 1 1 320px; max-width: none; }
.fd-game { flex: 0 1 220px; width: auto; }
.fd-hint, .fd-more { margin: 0; color: var(--muted); font-size: 13.5px; }
.fd-more a { color: var(--accent); font-weight: 800; }
.fd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.fd-card { display: grid; gap: 4px; align-content: start; }
.fd-pic { position: relative; aspect-ratio: 5/7; border-radius: 10px; overflow: hidden; background: var(--surface); border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--muted); font-weight: 800; font-size: 13px; text-align: center; padding: 0; }
.fd-pic img { width: 100%; height: 100%; object-fit: cover; }
.fd-pic em { position: absolute; left: 6px; top: 6px; font-style: normal; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: rgba(var(--good-rgb),.9); color: var(--bg); }
.fd-name { font-weight: 800; font-size: 14px; } .fd-name span { color: var(--muted); font-weight: 700; font-size: 12px; }
.fd-sub { color: var(--muted); font-size: 12px; font-weight: 700; }
.fd-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.fd-val { font-size: 12.5px; font-weight: 800; color: var(--text-2); }
.fd-plus { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--good); background: transparent; color: var(--good); display: grid; place-items: center; cursor: pointer; flex: none; }
.fd-plus svg { width: 18px; height: 18px; }
.fd-sheet { position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,.6); display: grid; place-items: center; padding: 16px; }
.fd-sheet[hidden] { display: none; }
.fd-panel { width: min(520px, 100%); max-height: calc(100dvh - 32px); overflow: auto; background: var(--surface); border: 1px solid var(--line-2); border-radius: 18px; padding: 18px; display: grid; gap: 14px; }
.fd-head { display: flex; gap: 12px; align-items: center; } .fd-head img { width: 54px; border-radius: 6px; }
.fd-head div { flex: 1; display: grid; } .fd-head span { color: var(--muted); font-size: 12.5px; font-weight: 700; }
.fd-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.fd-row[hidden] { display: none; }
.fd-qty { display: flex; align-items: center; gap: 10px; height: 44px; }
.fd-qty button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--text); font-size: 20px; font-weight: 800; cursor: pointer; }
.fd-qty output { min-width: 28px; text-align: center; font-weight: 900; font-size: 18px; }
@media (max-width: 699px) {
  .fd { padding: 4px 16px 24px; }
  .fd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .fd-game { flex-basis: 100%; }
  .fd-sheet { place-items: end stretch; padding: 0; }
  .fd-panel { border-radius: 18px 18px 0 0; max-height: 90dvh; padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
}

/* Hide values (Addendum v1.15 s26) */
.values-hidden .pd-v { filter: blur(8px); user-select: none; }
.pd-eye { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--muted); display: inline-grid; place-items: center; cursor: pointer; flex: none; }
.pd-eye svg { width: 17px; height: 17px; }
.pd-eye[aria-pressed="true"] { color: var(--accent); border-color: rgba(var(--accent-rgb),.4); }
.dp-val-label { display: flex; align-items: center; justify-content: space-between; }
.dp-val-label .pd-eye { width: 28px; height: 28px; }
.pd-value .pv-eye { position: absolute; right: 12px; top: 10px; width: 30px; height: 30px; }
@media (max-width: 699px) { .pd-value .pv-eye { right: 36px; top: 50%; transform: translateY(-50%); } .pd-value.open .pv-eye { top: 12px; transform: none; } }
.dp-hist { margin-top: 10px; }
.dp-hist svg { width: 100%; height: 70px; display: block; }
.dp-hist path { fill: none; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.dp-hist-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; color: var(--muted); margin-top: 4px; }
.dp-hist-foot .seg button { padding: 4px 10px; font-size: 12px; }
.dp-set-link { display: inline-block; margin-top: 6px; font-size: 13px; font-weight: 800; color: var(--accent); }
.pd-setbar { margin: 0 24px 14px; }
.pd-setbar[hidden] { display: none; }
.pd-setbar a { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 12px; border: 1px dashed rgba(var(--accent-rgb),.35); color: var(--text-2); font-weight: 700; font-size: 14px; }
.pd-setbar a svg { width: 18px; height: 18px; color: var(--accent); } .pd-setbar em { margin-left: auto; font-style: normal; color: var(--accent); font-weight: 900; }
@media (max-width: 699px) { .pd-setbar { margin: 0 16px 12px; } }

/* Set checklist and wishlist (Addendum v1.15 s27) */
.sl, .tr { display: grid; gap: 14px; padding: 8px 24px 40px; max-width: 1200px; }
.sl-count { color: var(--good); }
.sl-bar { max-width: 420px; }
.sl-find { margin: 0 0 16px; }
.sl-nolist { display: grid; gap: 10px; max-width: 640px; margin: 0 0 8px; }
.sl-nolist p { margin: 0; }
.sl-nolist .dp-live-row { overflow-x: auto; }
.sl-any { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 8px; }
.sl-any .hint { margin: 0; }
.sl-pic img[data-big] { cursor: zoom-in; }
.sl-zoom { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.88); display: flex; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out; }
.sl-zoom img { max-width: min(92vw, 520px); max-height: 88vh; border-radius: 14px; }
.sl-zoom button { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 22px; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 26px; cursor: pointer; }
.sl-h2 { margin: 18px 0 10px; font-size: 18px; color: var(--accent); }
.sl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 14px; }
.st-card { display: grid; gap: 4px; align-content: start; }
.sl-pic { position: relative; aspect-ratio: 5/7; border-radius: 9px; overflow: hidden; background: var(--surface); border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--muted); font-size: 12px; font-weight: 800; text-align: center; }
.sl-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sl-fallback { display: grid; gap: 6px; padding: 10px; justify-items: center; color: var(--text-2); }
.sl-fallback b { font-size: 15px; color: var(--accent); letter-spacing: .02em; }
.sl-fallback span { font-size: 13px; line-height: 1.25; }
.sl-fallback small { font-size: 11px; font-weight: 700; color: var(--muted); }
.st-card:not(.have) .sl-pic img { filter: grayscale(.85) brightness(.55); }
.sl-have { position: absolute; right: 6px; bottom: 6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--good); color: var(--bg); font-style: normal; font-weight: 900; font-size: 12px; display: grid; place-items: center; }
.sl-have svg { width: 14px; height: 14px; }
.sl-heart { position: absolute; right: 6px; top: 6px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(var(--bg-rgb),.75); color: var(--text-2); display: grid; place-items: center; cursor: pointer; }
.sl-heart svg { width: 17px; height: 17px; }
.sl-heart[aria-pressed="true"] { color: var(--bad-soft); } .sl-heart[aria-pressed="true"] svg { fill: currentColor; }
.sl-meta { display: flex; gap: 6px; font-size: 12.5px; font-weight: 800; min-width: 0; }
.sl-no { color: var(--muted); flex: none; } .sl-name { min-width: 0; overflow-wrap: anywhere; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.3; }
.sl-set { color: var(--muted); font-size: 11.5px; font-weight: 700; }
.sl-got { display: inline-flex; align-items: center; gap: 4px; justify-self: start; border: 1px solid var(--line-2); background: transparent; color: var(--text-2); border-radius: 999px; padding: 4px 10px; font-weight: 800; font-size: 12px; cursor: pointer; }
.sl-got svg { width: 13px; height: 13px; }
@media (max-width: 699px) { .sl, .tr { padding: 4px 16px 24px; } .sl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; } }

/* Trade checker (Addendum v1.15 s24) */
.tr-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.tr-side { display: grid; gap: 10px; }
.tr-side .pd-search { max-width: none; }
.tr-pick, .tr-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tr-pick button { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(var(--ink-rgb),.03); color: var(--text); cursor: pointer; }
.tr-pick button img { width: 30px; border-radius: 4px; }
.tr-pick button span, .tr-list li > span:first-child { flex: 1; min-width: 0; display: grid; }
.tr-pick small, .tr-list small { color: var(--muted); font-weight: 700; font-size: 12px; }
.tr-pick svg { width: 18px; height: 18px; color: var(--good); flex: none; }
.tr-list li { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; background: rgba(var(--ink-rgb),.04); font-size: 14px; }
.tr-list li > .pd-v, .tr-list li > .tr-nov { font-weight: 800; font-size: 13px; white-space: nowrap; }
.tr-nov { color: var(--muted); font-weight: 700; font-size: 12px; }
.tr-opts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.tr-opts .input { height: 34px; width: auto; font-size: 12.5px; padding: 0 8px; }
.tr-x { width: 30px; height: 30px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); cursor: pointer; flex: none; display: grid; place-items: center; }
.tr-x svg { width: 16px; height: 16px; }
.tr-total { font-weight: 800; color: var(--text-2); } .tr-total small { color: var(--muted); font-weight: 700; }
.tr-verdict { display: grid; gap: 10px; }
.tr-big { font-family: var(--font-display); font-weight: 800; font-size: 24px; }
.tr-big.fair { color: var(--good); } .tr-big.give { color: var(--bad-soft); } .tr-big.get { color: var(--accent); } .tr-big.unsure { color: var(--text-2); }
@media (max-width: 799px) { .tr-cols { grid-template-columns: 1fr; } }
.sl-tabs { padding: 0; margin: 0; }

/* Binder pages (Addendum v1.16 s28) */
.bd { display: grid; gap: 14px; padding: 8px 24px 40px; max-width: 1100px; }
.bd .panel { background: rgba(var(--surface-rgb),.6); border: 1px solid var(--line-2); border-radius: 16px; padding: 18px; display: grid; gap: 14px; }
.bd .hint { color: var(--muted); font-size: 13.5px; margin: 0; }
.bd-layouts { display: flex; gap: 10px; flex-wrap: wrap; }
.bd-layouts button { display: grid; justify-items: center; gap: 6px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: transparent; color: var(--text-2); font-weight: 800; cursor: pointer; }
.bd-layouts button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: rgba(var(--accent-rgb),.06); }
.bd-mini { display: grid; gap: 2px; width: 30px; } .bd-mini i { aspect-ratio: 5/7; border-radius: 2px; background: currentColor; opacity: .7; }
.bd-drop svg { width: 34px; height: 34px; color: var(--accent-2); }
.bd-allrow { display: grid; grid-template-columns: 1.2fr 1.6fr .7fr auto; gap: 8px; }
.bd-grid { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 14px; }
.bd-card { display: grid; gap: 6px; align-content: start; padding: 10px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(var(--ink-rgb),.03); }
.bd-card.off { opacity: .55; } .bd-card.empty { opacity: .4; }
.bd-pic { aspect-ratio: 5/7; border-radius: 8px; overflow: hidden; background: var(--surface); display: grid; place-items: center; color: var(--muted); font-weight: 800; font-size: 12px; }
.bd-pic img { width: 100%; height: 100%; object-fit: cover; }
.bd-tick { display: flex; gap: 6px; align-items: center; font-size: 12.5px; font-weight: 800; color: var(--text-2); }
.bd-card .input { height: 36px; font-size: 13px; padding: 0 9px; }
.bd-two { display: grid; grid-template-columns: 1fr 70px; gap: 6px; }
@media (max-width: 699px) {
  .bd { padding: 4px 16px 24px; }
  .bd-allrow { grid-template-columns: 1fr 1fr; } .bd-allrow #all-set { grid-column: 1 / -1; grid-row: 2; }
  .bd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .bd-card { padding: 8px; }
}
.ps-layouts { margin-top: 8px; flex-wrap: wrap; }
.ps-withlink { font-size: 13px; }

/* "Is this your card?" by picture (Addendum v1.18 s29) */
.pd-pick { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; align-items: start; }
.pd-mine { display: grid; gap: 6px; justify-items: center; position: sticky; top: 0; }
.pd-mine img { width: 100%; aspect-ratio: 5/7; object-fit: cover; border-radius: 10px; border: 2px solid var(--accent); }
.pd-mine span { font-size: 12px; font-weight: 800; color: var(--accent); }
.pd-matches:has(.pic) { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
.pd-match.pic img { width: 100%; aspect-ratio: 5/7; object-fit: cover; border-radius: 8px; margin-bottom: 4px; background: var(--surface); }
.pd-match.pic b { font-size: 13px; } .pd-match.pic span { font-size: 11.5px; }
@media (max-width: 599px) { .pd-pick { grid-template-columns: 1fr; } .pd-mine { position: static; width: 110px; justify-self: center; } .pd-matches:has(.pic) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bd-pair { display: grid; grid-template-columns: 1fr; gap: 6px; position: relative; }
.bd-pair:has(.bd-cat:not([hidden])) { grid-template-columns: 1fr 1fr; }
.bd-cat { display: grid; gap: 3px; } .bd-cat[hidden] { display: none; }
.bd-cat img { width: 100%; aspect-ratio: 5/7; object-fit: cover; border-radius: 8px; }
.bd-cat span { font-size: 10.5px; font-weight: 800; color: var(--muted); text-align: center; }

/* Live on eBay (Addendum v1.19 s22) */
.dp-live:empty { display: none; }
.dp-live { margin-top: 12px; display: grid; gap: 8px; }
.dp-live-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; } .dp-live-head span { color: var(--muted); font-weight: 700; font-size: 12px; }
.dp-live-row { display: grid; grid-auto-flow: column; grid-auto-columns: 132px; gap: 10px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.dp-live-card { scroll-snap-align: start; display: grid; gap: 4px; align-content: start; padding: 8px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(var(--ink-rgb),.03); color: var(--text); text-decoration: none; }
.dp-live-card:hover { border-color: rgba(var(--accent-rgb),.4); }
.dp-live-pic { aspect-ratio: 1; border-radius: 6px; overflow: hidden; background: #fff; display: grid; place-items: center; }
.dp-live-pic img { width: 100%; height: 100%; object-fit: contain; }
.dp-live-title { font-size: 11.5px; font-weight: 700; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.dp-live-card b { font-size: 14px; } .dp-live-card em { font-style: normal; font-size: 11px; font-weight: 800; color: var(--muted); }

/* Pulse (Addendum v1.20 s30) */
.pl, .ad { display: grid; gap: 14px; padding: 8px 24px 40px; max-width: 1100px; }
.pl .panel, .ad .panel { background: rgba(var(--surface-rgb),.6); border: 1px solid var(--line-2); border-radius: 16px; padding: 18px; display: grid; gap: 12px; }
.pl h2, .ad h2 { font-size: 20px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pl .hint, .ad .hint { color: var(--muted); font-size: 13.5px; margin: 0; }
.pl-big { font-family: var(--font-display); font-weight: 800; font-size: 22px; margin: 0; }
.pl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.pl-card { display: grid; gap: 3px; align-content: start; font-size: 12.5px; }
.pl-card img, .pl-ph { width: 100%; aspect-ratio: 5/7; object-fit: cover; border-radius: 8px; background: var(--surface); }
.pl-ph { display: grid; place-items: center; color: var(--muted); font-weight: 800; text-align: center; padding: 8px; }
.pl-card b { font-size: 13.5px; } .pl-card span, .pl-card small { color: var(--muted); font-weight: 700; }
.pl-card em, .pl-mine em { font-style: normal; font-weight: 900; } .pl .up { color: var(--good); } .pl .down { color: var(--bad-soft); }
.pl-sub { font-size: 14px; margin: 6px 0 0; color: var(--text-2); }
.pl-mine, .pl-sets, .ad-list, .ad-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pl-mine li, .pl-sets li, .ad-list li { display: flex; gap: 10px; align-items: baseline; padding: 8px 10px; border-radius: 10px; background: rgba(var(--ink-rgb),.04); }
.pl-mine a, .pl-sets a { font-weight: 800; color: var(--text); } .pl-mine span, .pl-sets span { color: var(--muted); font-size: 12.5px; font-weight: 700; flex: 1; }
.pl-foot { text-align: center; }
.ad-lines li { font-weight: 700; color: var(--text-2); }
.ad-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ad-tile { display: grid; gap: 2px; padding: 12px; border-radius: 12px; background: rgba(var(--ink-rgb),.04); }
.ad-tile span { font-size: 12px; font-weight: 800; color: var(--muted); } .ad-tile b { font-family: var(--font-display); font-size: 26px; } .ad-tile small { color: var(--muted); font-weight: 700; }
.ad-bars { display: flex; align-items: flex-end; gap: 3px; height: 70px; }
.ad-bars i { flex: 1; background: linear-gradient(180deg, var(--accent), var(--accent-2)); border-radius: 3px 3px 0 0; }
.ad-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } .ad h3 { font-size: 14px; margin: 4px 0; color: var(--text-2); }
.ad-list li span { flex: 1; color: var(--text-2); font-weight: 700; }
@media (max-width: 699px) { .pl, .ad { padding: 4px 16px 24px; } .pl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ad-two { grid-template-columns: 1fr; } }

/* Phone More sheet */
.pd-more-sheet { position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,.55); display: grid; align-items: end; }
.pd-more-panel { background: var(--surface); border-top: 1px solid var(--line-2); border-radius: 18px 18px 0 0; padding: 10px 12px calc(var(--tabbar) + 10px + env(safe-area-inset-bottom)); display: grid; gap: 2px; }
.pd-more-h { margin: 10px 12px 2px; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.mk-mine { padding-bottom: 10px; }
.mk-mine .pd-chip { color: var(--text); text-decoration: none; }
.pd-more-panel a { display: flex; align-items: center; gap: 14px; padding: 14px 12px; border-radius: 12px; color: var(--text); font-weight: 800; font-size: 15.5px; }
.pd-more-panel a:active, .pd-more-panel a:focus-visible { background: rgba(var(--ink-rgb),.06); }
.pd-more-panel a svg { width: 22px; height: 22px; color: var(--accent-2-light); }
.pd-more-close { margin-top: 4px; padding: 12px; border-radius: 12px; border: 1px solid var(--line-2); background: transparent; color: var(--text-2); font-weight: 800; }
.pd-more-sheet { z-index: 39; bottom: calc(var(--tabbar) + env(safe-area-inset-bottom)); }
.pd-more-panel { padding-bottom: 12px; }

/* Value (Addendum v1.21 s31) */
.vl-total { font-family: var(--font-display); font-weight: 800; font-size: 34px; margin: 0; line-height: 1.1; }
.vl .up { color: var(--good); } .vl .down { color: var(--bad-soft); }
.vl-tiles .ad-tile b small { font-size: 15px; color: var(--muted); }
.vl-tiles .ad-tile small.up, .vl-tiles .ad-tile small.down { font-weight: 800; }
.vl-range { display: flex; gap: 6px; }
.vl-range .pd-chip.on { background: var(--accent); color: var(--on-accent); }
.vl-chart { width: 100%; height: 140px; display: block; }
.vl-chart .l { fill: none; stroke: var(--accent); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.vl-chart .a { fill: rgba(var(--accent-rgb),.10); stroke: none; }
.vl-axis { display: flex; justify-content: space-between; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.vl-hero { display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: center; padding: 12px; border-radius: 14px; background: rgba(var(--accent-rgb),.06); border: 1px solid rgba(var(--accent-rgb),.25); color: var(--text); text-decoration: none; }
.vl-hero img, .vl-hero .vl-ph { width: 110px; aspect-ratio: 5/7; object-fit: cover; border-radius: 8px; background: var(--surface); display: block; }
.vl-hero span { display: grid; gap: 3px; } .vl-hero small { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.vl-hero b { font-size: 18px; } .vl-hero em { font-style: normal; color: var(--muted); font-weight: 700; font-size: 13px; } .vl-hero strong { font-family: var(--font-display); font-size: 24px; }
.vl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; counter-reset: vl 1; }
ol.vl-list li { counter-increment: vl; }
.vl-list a { display: flex; gap: 10px; align-items: center; padding: 6px 10px 6px 6px; border-radius: 10px; background: rgba(var(--ink-rgb),.04); color: var(--text); text-decoration: none; }
.vl-list a:hover { background: rgba(var(--ink-rgb),.07); }
ol.vl-list a::before { content: counter(vl); width: 18px; text-align: center; font-weight: 900; color: var(--muted); font-size: 12px; }
.vl-list img, .vl-list .vl-ph { width: 34px; height: 48px; object-fit: cover; border-radius: 4px; background: var(--surface); flex: none; display: block; }
.vl-n { flex: 1; min-width: 0; display: grid; } .vl-n b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vl-n small, .vl-v small { color: var(--muted); font-weight: 700; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vl-v { display: grid; text-align: right; flex: none; } .vl-v b { font-size: 14px; }
.vl-v small.c-high { color: var(--good); } .vl-v small.c-medium { color: var(--accent); }
.vl-t { font-style: normal; font-weight: 900; font-size: 13px; flex: none; }
.vl-why { display: grid; text-align: right; font-size: 12px; font-weight: 700; color: var(--muted); flex: none; } .vl-why b { color: var(--accent); }
.vl-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.vl-bars li { display: grid; grid-template-columns: minmax(0, 1.2fr) 1fr auto; gap: 10px; align-items: center; }
.vl-bl { display: grid; font-weight: 800; font-size: 13.5px; min-width: 0; } .vl-bl small { color: var(--muted); font-weight: 700; font-size: 11.5px; }
.vl-bt { height: 8px; border-radius: 4px; background: rgba(var(--ink-rgb),.06); overflow: hidden; } .vl-bt i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 4px; }
.vl-bars b { font-size: 13.5px; }
.vl-conf { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.vl-conf li { display: grid; padding: 10px; border-radius: 10px; background: rgba(var(--ink-rgb),.04); font-weight: 800; font-size: 12.5px; color: var(--muted); }
.vl-conf b { font-family: var(--font-display); font-size: 24px; color: var(--text); }
.pd-value .pv-more { color: var(--accent); font-weight: 800; text-decoration: none; }
@media (max-width: 699px) { .vl-total { font-size: 26px; } .vl-hero { grid-template-columns: 84px 1fr; } .vl-hero img, .vl-hero .vl-ph { width: 84px; } .vl-bars li { grid-template-columns: minmax(0, 1fr) 70px auto; } .vl-why b { display: none; } }
.vl .panel { align-content: start; }

/* Metallic holo gold (Addendum s33). Text: the wordmark's "decko" and the big values.
   Fills: the gold highlights. A slow sheen moves across on hover; none with reduced motion. */
.pd-brand .d, .vl-total .pd-v, .pd-value .pv-main b, .vl-hero strong, .dp-val-range > .pd-v, .pl-big .pd-v, .welcome h1 span + span {
  background: var(--metal); background-size: 220% 100%; background-position: 0% 50%;
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  transition: background-position 1.2s var(--ease);
}
.pd-brand:hover .d, .vl-total:hover .pd-v, .pd-value:hover .pv-main b, .vl-hero:hover strong { background-position: 100% 50%; }
.pd-brand .p { color: var(--accent-2); }
.pd-avatar, .vl-range .pd-chip.on, .pd-view button[aria-pressed='true'], .imp-bar i, .vl-bt i, .ad-bars i { background: var(--metal); background-size: 220% 100%; color: var(--on-accent); }
.pd-tabbar a.add i { background: linear-gradient(135deg, var(--accent-2), var(--accent-2-light)); box-shadow: 0 8px 22px -8px rgba(var(--accent-2-rgb),.7), inset 0 1px 0 rgba(var(--ink-rgb),.25); }
.btn-primary { background: linear-gradient(180deg, var(--accent-2-light), var(--accent-2)); box-shadow: inset 0 1px 0 rgba(255,255,255,.18); }
.btn-primary:hover { background: linear-gradient(180deg, #E59263, var(--accent-2-light)); }
@media (prefers-reduced-motion: reduce) { .pd-brand .d, .vl-total .pd-v, .pd-value .pv-main b, .vl-hero strong { transition: none; } }

/* Plan (Addendum v1.24 s34) */
.pl-plan-use { list-style: none; margin: 12px 0 8px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.pl-plan-use li { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; background: rgba(var(--ink-rgb),.04); font-size: 12.5px; font-weight: 700; color: var(--muted); }
.pl-plan-use b { font-family: var(--font-display); font-size: 18px; color: var(--text); }
.pl-plan-buy { margin-top: 14px; padding: 14px; border-radius: 14px; border: 1px solid rgba(var(--accent-rgb),.3); background: rgba(var(--accent-rgb),.05); display: grid; gap: 10px; }
.pl-plan-buy h3 { margin: 0; font-size: 16px; }
.pl-plan-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.pl-plan-btns small { font-weight: 700; color: var(--good); margin-left: 4px; }
.pd-tags { display: flex; gap: 4px; margin-top: 2px; }
.pd-founder { white-space: nowrap; line-height: 1.5; font-size: 10.5px; font-weight: 800; padding: 1px 7px; border-radius: 999px; background: var(--metal); background-size: 220% 100%; color: var(--on-accent); }
.pd-founder.pro { background: rgba(var(--accent-2-rgb),.2); color: var(--accent-2-light); }
.pd-founder.staff { background: var(--surface); color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.pd-rail-foot .pd-tags { flex-wrap: wrap; } html.rail-slim .pd-rail-foot .pd-tags { display: none; } @media (max-width: 1023px) { html:not(.rail-full) .pd-rail-foot .pd-tags { display: none; } }

/* Marketplace (Addendum v1.25 s35) */
.mk-bar { display: flex; gap: 10px; flex-wrap: wrap; }
.mk-bar .pd-search { flex: 1; min-width: 200px; }
.mk-bar select.input { width: auto; min-width: 180px; }
.mk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.mk-tile { display: grid; gap: 3px; align-content: start; color: var(--text); text-decoration: none; font-size: 12.5px; }
.mk-art { position: relative; aspect-ratio: 5/7; border-radius: 12px; overflow: hidden; background: radial-gradient(120% 90% at 30% 10%, var(--art-glow), var(--surface) 70%); border: 1px solid var(--line-2); display: grid; place-items: center; }
.mk-art img { width: 100%; height: 100%; object-fit: contain; }
.mk-art .flag { position: absolute; left: 8px; bottom: 8px; }
.mk-art .flag.lime { left: auto; right: 8px; }
.mk-tile b { font-size: 14px; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-tile span { color: var(--muted); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-tile em { font-style: normal; color: var(--good); font-weight: 800; font-size: 11.5px; }
.mk-price { font-family: var(--font-display); font-size: 18px; background: var(--metal); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.mk-ph { color: var(--muted); font-weight: 800; padding: 10px; text-align: center; }
.mk-tile:hover .mk-art { border-color: rgba(var(--accent-rgb),.4); }
.mk-foot { text-align: center; }
.ls { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.ls-photos { display: grid; gap: 10px; }
.ls-photos img { width: 100%; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-2); }
.ls-info { display: grid; gap: 10px; align-content: start; }
.ls-info h2 { margin: 0; font-size: 26px; }
.ls-price { font-family: var(--font-display); font-weight: 700; font-size: 34px; margin: 0; background: var(--metal); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.ls-total { margin: 4px 0 0; font-size: 15px; color: var(--muted); } .ls-total b { color: var(--text); font-size: 18px; margin-left: 6px; }
.ls-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ls-cards li { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; background: rgba(var(--ink-rgb),.04); }
.ls-cards span { color: var(--muted); font-weight: 700; font-size: 13px; }
.ls-cards .badge { justify-self: start; }
.sl-dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; padding: 12px 14px; border-radius: 12px; background: rgba(var(--ink-rgb),.04); }
.sl-dl dt { color: var(--muted); font-weight: 700; } .sl-dl dd { margin: 0; text-align: right; font-weight: 800; }
.sl-card { width: min(520px, 100%); max-height: calc(100dvh - 24px); overflow: auto; }
.sl-body { display: grid; gap: 14px; }
.sl-price { display: flex; align-items: center; gap: 8px; } .sl-price span { font-weight: 800; color: var(--muted); font-size: 18px; } .sl-price .input { font-size: 18px; font-weight: 800; }
.sl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sl-list li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: rgba(var(--ink-rgb),.04); }
.sl-list li img, .sl-list li .mk-ph { width: 40px; height: 56px; object-fit: cover; border-radius: 5px; display: block; background: var(--surface); }
.sl-n { flex: 1; min-width: 0; display: grid; } .sl-n b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .sl-n small { color: var(--muted); font-weight: 700; }
.sl-list .btn { height: 34px; padding: 0 12px; font-size: 13px; }
@media (max-width: 699px) { .ls { grid-template-columns: 1fr; } .mk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .ls-info h2 { font-size: 22px; } }

/* Orders (addendum s35 stage 3) */
.or-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; }
.or { background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; padding: 14px 16px; }
.or.or-focus { border-color: var(--accent-2); }
.or-top { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; }
.or-n { display: flex; flex-direction: column; min-width: 0; }
.or-n small { color: var(--muted); }
.or-st { white-space: nowrap; }
.or-paid .or-st, .or-st.or-paid { color: var(--accent); }
.or-st.or-issue { color: var(--bad); }
.or-st.or-complete { color: var(--good); }
.or-h { margin: 10px 0 4px; }
.or-addr { font-style: normal; margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: rgba(var(--ink-rgb),.04); line-height: 1.5; }
.or-act { flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.or-act:empty { display: none; }
.mg-n { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 100px; background: var(--accent); color: var(--on-accent, #111); font-size: 11.5px; line-height: 18px; text-align: center; margin-left: 4px; }
.mg-box { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.mg-thread li { position: relative; }
.mg-rep { position: absolute; right: 8px; top: 6px; background: none; border: 0; color: var(--text-2); font-size: 11.5px; cursor: pointer; padding: 2px 4px; }
.mg-rep:hover { color: var(--bad-soft); text-decoration: underline; }
.mg-hint { margin-top: 6px; font-size: 12px; }
.mt-trust { display: block; margin-top: 4px; font-size: 12px; }
.mt-trust.warn { color: var(--warn); }
.ac-sus { border-color: rgba(var(--bad-rgb),.5); }
.ac-sus h2 { color: var(--bad-soft); }
.ad-list { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.or-tn { flex: 1 1 240px; text-transform: uppercase; }
.or-form { margin-top: 10px; }
.ad-grid { display: grid; gap: 4px 12px; grid-template-columns: 1fr 1fr; }
.ad-grid .field:nth-child(-n+3) { grid-column: 1 / -1; }
@media (max-width: 520px) { .ad-grid { grid-template-columns: 1fr; } }
.ad-grid, .ad-grid .label { text-align: left; }
.or-tn::placeholder { text-transform: none; }
/* Trades (s63): packing photos and arrival checks; a warning hint (Special Delivery for valuable cards). */
.hint.warn { color: var(--warn); }
.or-pack { width: 96px; height: 96px; object-fit: cover; border-radius: 8px; display: block; margin: 6px 0; }
.or-checks { list-style: none; padding: 0; margin: 6px 0; display: grid; gap: 6px; }
.or-checks li { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.or-check { max-width: 100%; height: auto; border-radius: 8px; margin-top: 8px; }
#sl-own, #sl-pd, #sl-own .label { text-align: left; }

/* Charts: donut, profit and loss (value and pulse) */
.pd-donut { position: relative; width: 132px; height: 132px; flex: none; }
.pd-donut svg { width: 100%; height: 100%; transform: rotate(0deg); }
.pd-donut circle { fill: none; stroke-width: 5.5; }
.pd-donut .track { stroke: rgba(var(--text-rgb),.07); }
.pd-donut .g, .vl-legend i.g, .vl-pl i.g { stroke: var(--good); background: var(--good); }
.pd-donut .b, .vl-legend i.b, .vl-pl i.b { stroke: var(--bad); background: var(--bad); }
.pd-donut .n, .vl-legend i.n { stroke: var(--muted); background: var(--muted); }
.pd-donut .s0, .vl-legend i.s0 { stroke: var(--accent-2); background: var(--accent-2); }
.pd-donut .s1, .vl-legend i.s1 { stroke: var(--accent); background: var(--accent); }
.pd-donut .s2, .vl-legend i.s2 { stroke: #7FB2FF; background: #7FB2FF; }
.pd-donut .s3, .vl-legend i.s3 { stroke: #B48CFF; background: #B48CFF; }
.pd-donut .s4, .vl-legend i.s4 { stroke: var(--muted); background: var(--muted); }
.pd-donut-c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; line-height: 1.15; }
.pd-donut-c b { font-family: var(--font-display); font-size: 17px; }
.pd-donut-c small { color: var(--muted); font-size: 11px; }
.vl-plw { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin: 6px 0 4px; }
.vl-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; flex: 1 1 180px; }
.vl-legend li { display: flex; align-items: center; gap: 8px; }
.vl-legend li i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.vl-legend li span { margin-left: auto; font-weight: 700; }
.vl-pl { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.vl-pl a { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; align-items: center; gap: 12px; color: inherit; text-decoration: none; padding: 6px 0; }
.vl-pl-n { display: flex; flex-direction: column; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vl-pl-n small { color: var(--muted); font-weight: 500; }
.vl-pl-t { position: relative; height: 8px; border-radius: 4px; background: rgba(var(--text-rgb),.06); }
.vl-pl-t::after { content: ''; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: rgba(var(--text-rgb),.25); }
.vl-pl-t i { position: absolute; top: 0; bottom: 0; border-radius: 4px; }
.vl-pl-t i.g { left: 50%; }
.vl-pl-t i.b { right: 50%; }
.vl-pl b { white-space: nowrap; }
.vl-chart .p { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 5 5; vector-effect: non-scaling-stroke; }
.vl-key { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin: 6px 0 0; }
.vl-key i { width: 14px; height: 0; border-top: 2.5px solid var(--accent); display: inline-block; margin-left: 6px; }
.vl-key i.k-p { border-top: 1.5px dashed var(--muted); }
.pl-spark { margin: 10px 0 4px; }
.pl-spark small { color: var(--muted); font-size: 12px; }
.pl-sl { height: 64px; }
.pl-sl.down .l { stroke: var(--bad-soft, var(--bad)); } .pl-sl.down .a { fill: rgba(255,90,78,.08); }
.pl-sl.up .l { stroke: var(--good); } .pl-sl.up .a { fill: rgba(184,242,58,.08); }
.vl-flat { margin: 6px 0 0; font-size: 12px; }
.pl-sl.flat .l { stroke: var(--accent); } .pl-sl.flat .a { fill: rgba(var(--accent-rgb),.06); }
.or-sub { padding: 0 0 4px !important; } .or-st.or-closed { color: var(--muted); } .ls-offer { margin-top: 6px; } .ls-offer p { margin: 8px 0; }
/* eBay import */
.eb-list label { display: flex; align-items: center; gap: 12px; width: 100%; cursor: pointer; }
.eb-list img, .eb-list .mk-ph { width: 44px; height: 60px; object-fit: cover; border-radius: 6px; flex: none; }
.eb-row.off { opacity: .55; }
.eb-bar { height: 8px; border-radius: 4px; background: rgba(var(--text-rgb),.08); overflow: hidden; margin: 10px 0; }
.eb-bar i { display: block; height: 100%; background: var(--accent-2); }
.eb-skip { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 6px; }
.eb-skip li { display: flex; justify-content: space-between; gap: 12px; } .eb-skip span { color: var(--muted); white-space: nowrap; }
/* Disputes (stage 6) */
.dp-box { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.dp-thread, .ad-thread { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 8px; }
.dp-thread li, .ad-thread li { padding: 8px 12px; border-radius: 12px; background: rgba(var(--text-rgb),.04); max-width: 92%; }
.dp-thread li.mine { justify-self: end; background: rgba(var(--accent-2-rgb),.12); }
.dp-thread li.sup, .ad-thread li.dt-support { background: rgba(var(--accent-rgb),.10); }
.dp-thread b, .ad-thread b { font-size: 13px; } .dp-thread small, .ad-thread small { color: var(--muted); margin-left: 8px; font-size: 11px; }
.dp-thread p, .ad-thread p { margin: 4px 0 0; white-space: pre-wrap; }
.dp-reply { display: flex; gap: 8px; align-items: flex-end; } .dp-reply textarea { flex: 1; }
.dp-offer { margin-top: 10px; }
.ad-tabs { padding-left: 0 !important; } .ad-dis textarea { width: 100%; }
.ad-dis .or-tn { flex: 0 1 180px; max-width: 180px; }
.dp-ph { display: block; max-width: 220px; max-height: 220px; border-radius: 10px; margin-top: 6px; object-fit: cover; } .dp-add.busy { opacity: .5; pointer-events: none; } .dp-add { cursor: pointer; }
/* Wishlist demand (s32.2) */
.pd-wanted { display: flex; align-items: center; gap: 6px; margin: 10px 0 0; font-size: 14px; color: var(--accent); }
.pd-wanted svg { width: 16px; height: 16px; } .pd-wanted b { font-family: var(--font-display); }
.sl-sale { display: block; margin: 6px 0 0; font-size: 12px; color: var(--good); text-decoration: none; } .sl-sale b { color: var(--text); }
/* List in seconds (s32.3) */
.bl-list li { align-items: center; }
.bl-pick { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.bl-pick img { width: 44px; height: 60px; object-fit: cover; border-radius: 6px; }
.bl-price { flex: 0 0 110px; } .bl-price .input { width: 100%; }
.bl-want { color: var(--accent); }
/* Card video (s35) */
.ls-video { position: relative; width: 100%; aspect-ratio: 9 / 16; max-height: 70vh; border-radius: 16px; overflow: hidden; background: #000; margin-bottom: 12px; }
.ls-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ls-vbox { margin-top: 12px; }

/* Dealer shop settings (s36) */
.sh-imgs { position: relative; margin: 6px 0 4px; }
.sh-banner { aspect-ratio: 4 / 1; border-radius: 14px; overflow: hidden; border: 1px dashed var(--line-2); display: grid; place-items: center; color: var(--muted); font-weight: 800; background: var(--surface); }
.sh-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sh-logo { position: absolute; left: 14px; bottom: -22px; width: 64px; height: 64px; border-radius: 14px; overflow: hidden; border: 3px solid var(--bg); background: var(--surface); display: grid; place-items: center; color: var(--muted); font-size: 11px; font-weight: 800; }
.sh-logo img { width: 100%; height: 100%; object-fit: cover; }
.sh-imgs + .row { margin-top: 30px; }
.sh-addr { display: flex; align-items: center; gap: 6px; }
.sh-addr span { color: var(--muted); font-weight: 700; font-size: 13px; white-space: nowrap; }
.sh-link { display: grid; grid-template-columns: 140px 1fr; gap: 8px; margin-bottom: 6px; }
@media (max-width: 560px) { .sh-link { grid-template-columns: 1fr; } .sh-addr { flex-wrap: wrap; } }

/* Founding Dealer progress (s36.4) */
.fd-earn { margin: 10px 0; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(var(--accent-rgb),.35); background: radial-gradient(120% 120% at 0% 0%, rgba(var(--accent-rgb),.12), transparent 60%), var(--surface); }
.fdl-bar { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.fdl-bar span { display: block; height: 100%; background: var(--metal, var(--accent)); background-size: 220% 100%; }

/* Avatars (s37.2) */
.pd-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.av-now { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: var(--metal, var(--accent)); display: grid; place-items: center; font-weight: 900; font-size: 24px; color: var(--on-accent, #111); margin-bottom: 8px; }
.av-now img { width: 100%; height: 100%; object-fit: cover; }
.av-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; margin: 12px 0; max-width: 460px; }
.av-pick { padding: 0; border: 2px solid transparent; border-radius: 50%; background: none; cursor: pointer; aspect-ratio: 1; }
.av-pick img { width: 100%; height: 100%; display: block; }
.av-pick[aria-pressed='true'] { border-color: var(--accent-bright, var(--accent)); }
.av-pick:focus-visible { outline: 2px solid var(--accent-bright, var(--accent)); outline-offset: 2px; }
@media (max-width: 420px) { .av-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Shop backdrops and brand colour (s37.3) */
.bd-ember    { background: radial-gradient(120% 80% at 10% 0%, rgba(200,100,46,.35), transparent 60%), radial-gradient(90% 70% at 100% 100%, rgba(230,198,138,.18), transparent 60%), #0b0d12; }
.bd-ocean    { background: radial-gradient(120% 80% at 10% 0%, rgba(30,95,168,.45), transparent 60%), radial-gradient(90% 70% at 100% 100%, rgba(79,179,232,.2), transparent 60%), #0a0e16; }
.bd-forest   { background: radial-gradient(120% 80% at 10% 0%, rgba(31,122,77,.45), transparent 60%), radial-gradient(90% 70% at 100% 100%, rgba(111,207,142,.16), transparent 60%), #0a110d; }
.bd-violet   { background: radial-gradient(120% 80% at 10% 0%, rgba(91,44,140,.5), transparent 60%), radial-gradient(90% 70% at 100% 100%, rgba(196,155,255,.18), transparent 60%), #0e0b16; }
.bd-midnight { background: radial-gradient(120% 80% at 50% 0%, rgba(47,60,140,.4), transparent 65%), #07080d; }
.bd-gold     { background: radial-gradient(120% 80% at 10% 0%, rgba(184,134,47,.42), transparent 60%), radial-gradient(90% 70% at 100% 100%, rgba(255,209,92,.14), transparent 60%), #100e09; }
.bd-crimson  { background: radial-gradient(120% 80% at 10% 0%, rgba(168,50,42,.45), transparent 60%), radial-gradient(90% 70% at 100% 100%, rgba(255,122,69,.14), transparent 60%), #120a0b; }
.bd-plain    { background: #0b0d12; }
.bd-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; margin: 8px 0; }
.bd-pick button { aspect-ratio: 4 / 3; border-radius: 10px; border: 2px solid var(--line-2); cursor: pointer; color: var(--text-2); font-size: 11px; font-weight: 800; display: grid; align-items: end; padding: 4px; text-transform: capitalize; }
.bd-pick button[aria-pressed='true'] { border-color: var(--accent-bright, var(--accent)); color: var(--text); }
.sh-colours { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 8px 0; }
.sh-colours button { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--line-2); cursor: pointer; }
.sh-colours button[aria-pressed='true'] { border-color: #fff; }
.sh-colours input[type=color] { width: 40px; height: 34px; border: 0; background: none; padding: 0; cursor: pointer; }
/* The shop page itself, in the shop's colour */
.shop-themed .mk-price { background: none; -webkit-text-fill-color: var(--shop-accent); color: var(--shop-accent); }
.shop-themed .pd-chip[aria-pressed='true'] { background: var(--shop-accent); color: var(--shop-on); border-color: var(--shop-accent); }
.shop-themed .sh-links .btn, .shop-themed .sh-head .lg { border-color: var(--shop-accent); }
.shop-themed .sh-head .lg { color: var(--shop-accent); }
.shop-themed #sh-q:focus { border-color: var(--shop-accent); }
.shop-themed .mk-tile:hover .mk-art { border-color: var(--shop-accent); }
.shop-themed .sh-hero { border-color: color-mix(in srgb, var(--shop-accent) 45%, transparent); }
.shop-bg-photo { background-size: cover !important; background-position: center !important; background-attachment: fixed; }
.shop-themed .sh-hero { background: radial-gradient(120% 120% at 0% 0%, color-mix(in srgb, var(--shop-accent) 24%, transparent), transparent 60%), var(--surface); }

/* Members as others see them (s37.4) */
.pd-who { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; color: inherit; font-weight: 800; text-decoration: none; }
a.pd-who:hover .pd-who-n { text-decoration: underline; }
.pd-who-av { width: 20px; height: 20px; border-radius: 50%; overflow: hidden; flex: none; display: grid; place-items: center; font-size: 10px; font-weight: 900; background: var(--metal, var(--accent)); color: var(--on-accent, #111); }
.pd-who-av.shop { border-radius: 6px; }
.pd-who-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ls-by .pd-who-av { width: 24px; height: 24px; }
.mk-by { display: block; margin-top: 2px; color: var(--muted); font-size: 11.5px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mk-by .pd-who-av { width: 16px; height: 16px; font-size: 9px; }

/* Sunny, the in-app help desk (s38) */
.hp-btn { position: fixed; right: 18px; bottom: 18px; z-index: 45; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 7px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(var(--bg-rgb),.92); color: var(--text); font-weight: 900; font-size: 13px; cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,.35); backdrop-filter: blur(8px); }
.hp-btn img { width: 28px; height: 28px; }
.hp-btn:hover { border-color: rgba(var(--accent-rgb),.5); }
.hp-dot { position: absolute; top: 4px; left: 26px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent-bright, var(--accent)); border: 2px solid var(--bg); }
.hp-panel { position: fixed; right: 18px; bottom: 74px; z-index: 46; width: min(400px, calc(100vw - 24px)); height: min(600px, calc(100vh - 110px)); display: flex; flex-direction: column; border-radius: 18px; border: 1px solid var(--line-2); background: var(--surface); box-shadow: 0 18px 50px rgba(0,0,0,.5); overflow: hidden; }
.hp-panel[hidden] { display: none; }
.hp-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line-2); }
.hp-head img { width: 36px; height: 36px; }
.hp-head div { flex: 1; min-width: 0; }
.hp-head b { display: block; font-size: 15px; }
.hp-head small { color: var(--muted); font-weight: 700; font-size: 12px; }
.hp-x { background: none; border: 0; color: var(--muted); cursor: pointer; width: 32px; height: 32px; padding: 6px; }
.hp-status { margin: 10px 12px 0; padding: 10px 12px; border-radius: 12px; background: rgba(var(--accent-rgb),.12); border: 1px solid rgba(var(--accent-rgb),.3); font-size: 12.5px; color: var(--text-2); }
.hp-status b { display: block; color: var(--text); }
.hp-log { flex: 1; overflow-y: auto; padding: 12px; display: grid; gap: 10px; align-content: start; }
.hp-m { max-width: 88%; display: grid; gap: 3px; }
.hp-m small { color: var(--muted); font-size: 11px; font-weight: 800; }
.hp-m p { margin: 0; padding: 9px 12px; border-radius: 14px; background: var(--surface-2, rgba(var(--ink-rgb),.05)); font-size: 14px; line-height: 1.45; }
.hp-m a { color: var(--accent-bright, var(--accent)); }
.hp-user { justify-self: end; }
.hp-user small { text-align: right; }
.hp-user p { background: rgba(var(--accent-rgb),.22); }
.hp-team p { border: 1px solid rgba(var(--accent-rgb),.45); }
.hp-rate { display: flex; gap: 4px; }
.hp-rate button { width: 26px; height: 26px; padding: 5px; border-radius: 8px; border: 1px solid var(--line-2); background: none; color: var(--muted); cursor: pointer; }
.hp-rate button:hover { color: var(--text); }
.hp-rated { color: var(--muted); font-size: 11px; }
.hp-typing p { display: flex; gap: 4px; }
.hp-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: hpdot 1s infinite ease-in-out; }
.hp-typing i:nth-child(2) { animation-delay: .15s; } .hp-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes hpdot { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hp-typing i { animation: none; } }
.hp-offer { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--text-2); }
.hp-chips { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 12px 8px; }
.hp-chips .pd-chip { font-size: 12px; }
.hp-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line-2); }
.hp-form textarea { flex: 1; resize: none; min-height: 42px; max-height: 120px; }
.hp-foot { padding: 0 12px 10px; display: grid; gap: 4px; font-size: 11px; color: var(--muted); }
.hp-foot .hp-guides { font-size: 13px; font-weight: 700; justify-self: start; }
.hp-team { justify-self: start; background: none; border: 0; padding: 0; color: var(--accent-bright, var(--accent)); font-weight: 900; font-size: 12.5px; cursor: pointer; }
.hp-team[hidden] { display: none; }
@media (max-width: 599px) {
  .hp-btn { bottom: calc(var(--tabbar, 64px) + 12px + env(safe-area-inset-bottom)); right: 12px; padding: 6px; }
  .hp-btn span { display: none; }
  .hp-panel { right: 8px; left: 8px; width: auto; bottom: calc(var(--tabbar, 64px) + 8px + env(safe-area-inset-bottom)); height: calc(100vh - var(--tabbar, 64px) - 40px); }
}
.ad-gap { padding: 12px 0; border-top: 1px solid var(--line-2); }
.ad-gap:first-of-type { border-top: 0; }
.hp-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.hp-act { padding: 6px 10px; font-size: 12.5px; min-height: 0; }
.hp-acts .hp-act { color: var(--text); }

/* ── Marketing team (s36.5) ── */
.pm .panel + .panel { margin-top: 16px; }
.pm-team { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.pm-team li { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: var(--surface-2); }
.pm-team i { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 900; color: #fff; }
.pm-team b { display: block; color: var(--text); } .pm-team small { color: var(--text-2); font-size: 12.5px; }
.pm-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pm-posts { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 14px; }
.pm-post { padding: 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line-2); min-width: 0; }
.pm-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .pm-top b { flex: 1; min-width: 120px; }
.pm-pics { display: flex; gap: 8px; margin: 12px 0 6px; overflow-x: auto; }
.pm-pics img { width: 120px; aspect-ratio: 4/5; object-fit: contain; border-radius: 10px; background: radial-gradient(circle at 50% 40%, rgba(var(--accent-rgb),.25), var(--bg) 75%); padding: 8px; flex: none; }
.pm-pics.many img { width: 96px; }
.pm-pics em { align-self: center; font-style: normal; font-weight: 800; color: var(--text-2); }
.pm-cards { margin: 0 0 8px; overflow-wrap: anywhere; }
.pm-cap { white-space: pre-wrap; margin: 8px 0; }
.pm-prev summary { cursor: pointer; color: var(--text-2); font-size: 13px; }
.pm-prev pre { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: 13px; background: var(--surface); padding: 10px; border-radius: 10px; margin: 4px 0 10px; }
.pm-acts { flex-wrap: wrap; }
.pm-err { color: var(--bad-soft); font-weight: 700; }
.pm-note { padding: 10px 12px; border-radius: 10px; background: rgba(var(--accent-rgb),.08); border: 1px solid rgba(var(--accent-rgb),.3); font-size: 14px; }
.pm-pages { list-style: none; padding: 0; display: grid; gap: 8px; }
.pm-set { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.pm-pick { list-style: none; padding: 0; margin: 10px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; max-height: 360px; overflow: auto; }
.pm-pick label { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 10px; background: var(--surface-2); cursor: pointer; }
.pm-pick img { width: 40px; height: 56px; object-fit: cover; border-radius: 6px; }
.pm-pick small { display: block; color: var(--text-2); }
.pm-hand { margin-top: 10px; padding: 12px; border-radius: 12px; background: var(--surface); }
.pm-signpost { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.pm-signpost svg { width: 22px; height: 22px; flex: none; color: var(--accent); }
/* Help team (s36.6) */
.hp-meetbtn { background: none; border: 1px solid var(--line-2); border-radius: 999px; color: var(--text-2); font-weight: 800; font-size: 12px; padding: 5px 10px; cursor: pointer; white-space: nowrap; }
.hp-meet { padding: 10px 12px; border-bottom: 1px solid var(--line-2); max-height: 45%; overflow-y: auto; display: grid; gap: 10px; font-size: 13px; color: var(--text-2); }
.hp-meet[hidden] { display: none; }
.hp-meet .hint { margin: 0; }
.hp-mate { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line-2); }
.hp-mate img, .hp-mate i { width: 56px; height: 56px; flex: none; border-radius: 50%; }
.hp-mate i { display: grid; place-items: center; font-style: normal; font-weight: 900; color: #fff; font-size: 20px; }
.hp-mate b { display: block; color: var(--text); font-size: 15px; }
.hp-mate small { display: block; color: var(--accent); font-weight: 800; font-size: 12.5px; margin: 1px 0 4px; }
/* Meet the team: the team fills the panel and the chat steps aside until "Hide team". */
.hp-panel.is-meet .hp-meet { flex: 1; max-height: none; border-bottom: 0; }
.hp-panel.is-meet .hp-status, .hp-panel.is-meet .hp-log, .hp-panel.is-meet .hp-chips, .hp-panel.is-meet .hp-form, .hp-panel.is-meet .hp-foot { display: none; }
.hp-m small .hp-av { width: 18px; height: 18px; vertical-align: -5px; margin-right: 5px; }
/* Meet the marketing team and Ask Pip (s36.6) */
.pm-meet { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.pm-meet li { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: start; padding: 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line-2); }
.pm-meet img, .pm-meet i { width: 56px; height: 56px; border-radius: 50%; }
.pm-meet i { display: grid; place-items: center; font-style: normal; font-weight: 900; color: #fff; }
.pm-meet b { display: block; color: var(--text); } .pm-meet small { display: block; color: var(--accent-bright, var(--accent)); font-weight: 800; font-size: 12px; margin-bottom: 4px; }
.pm-meet p { margin: 0; font-size: 13px; color: var(--text-2); line-height: 1.45; }
.pm-chat { display: grid; gap: 10px; }
.pm-log { display: grid; gap: 10px; max-height: 420px; overflow-y: auto; padding: 4px 2px; }
.pm-msg { max-width: 88%; display: grid; gap: 3px; }
.pm-msg small { color: var(--muted); font-size: 11.5px; font-weight: 800; display: flex; align-items: center; gap: 6px; }
.pm-msg small img { width: 22px; height: 22px; }
.pm-msg p { margin: 0; padding: 9px 12px; border-radius: 14px; background: var(--surface-2); font-size: 14px; line-height: 1.45; white-space: pre-wrap; }
.pm-msg.me { justify-self: end; } .pm-msg.me small { justify-content: flex-end; } .pm-msg.me p { background: rgba(var(--accent-rgb),.22); }
.pm-msg .row { margin: 4px 0 0; flex-wrap: wrap; }
.pm-ask { display: flex; gap: 8px; } .pm-ask textarea { flex: 1; resize: vertical; min-height: 44px; }
.hp-m small:has(.hp-av) { display: flex; align-items: center; }
.pm-msg .row { margin: 4px 0 0; display: flex; gap: 8px; flex-wrap: wrap; }
/* Shop brief and who did what (s36.7) */
.pm-learned { margin-top: 6px; padding: 8px 10px; border-radius: 10px; border: 1px dashed rgba(var(--accent-rgb),.45); font-size: 12.5px; color: var(--text-2); }
.pm-learned ul { margin: 4px 0 0; padding-left: 18px; }
.pm-brief { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 10px; }
.pm-brief > li > b { display: block; font-size: 13px; color: var(--text); }
.pm-brief ul { margin: 4px 0 0; padding-left: 18px; color: var(--text-2); font-size: 14px; }
.pm-brief ul li { margin: 2px 0; }
.pm-x { background: none; border: 0; padding: 2px; width: 22px; height: 22px; vertical-align: middle; color: var(--muted); cursor: pointer; }
.pm-x:hover { color: var(--bad-soft); }
.pm-brief-add { display: grid; grid-template-columns: minmax(150px, 220px) 1fr auto; gap: 8px; }
@media (max-width: 640px) { .pm-brief-add { grid-template-columns: 1fr; } }
.pm-credits { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12.5px; color: var(--text-2); }
.pm-credits li { display: inline-flex; align-items: center; gap: 5px; }
.pm-credits img { width: 20px; height: 20px; }
.pm-credits b { color: var(--text); }
/* FAQ answers in Help (s39.2) */
.hp-faq { font-size: 11.5px; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.hp-reask { background: none; border: 0; padding: 0; color: var(--accent-bright, var(--accent)); font-weight: 800; font-size: 11.5px; cursor: pointer; }
/* Base package (s39.4) */
.pm-hf { border: 1px solid rgba(var(--accent-rgb),.4); margin-bottom: 12px; }
.pm-pics.reel img { aspect-ratio: 9/16; width: 90px; }
.pm-reel { width: 160px; aspect-ratio: 9/16; border-radius: 12px; background: #000; margin: 12px 0 6px; display: block; }
.pm-stats { list-style: none; padding: 0; display: flex; gap: 18px; flex-wrap: wrap; margin: 8px 0; color: var(--text-2); }
.pm-stats b { color: var(--text); font-size: 20px; margin-right: 4px; }
.pm-advice { margin: 6px 0 10px; padding-left: 20px; color: var(--text-2); }
.pm-advice li { margin: 4px 0; }
/* AI tokens (s39.3) */
.tk-bal b { font-size: 30px; font-family: var(--font-display); }
.tk-month { display: flex; gap: 8px; align-items: center; max-width: 360px; margin-bottom: 10px; }
.tk-month input { width: 90px; }
.tk-led { list-style: none; padding: 0; margin: 6px 0 0; font-size: 13px; color: var(--text-2); }
#pm-extras .pm-set { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.pm-stats b { font-size: inherit; }
.pm-stats li { color: var(--text-2); }
/* Copies and spares (s24.1) */
.flag.copies { background: var(--accent); color: var(--bg); }
.tr-n { font-style: normal; color: var(--accent-bright, var(--accent)); font-weight: 900; }
.tr-spares { margin-top: 14px; }
.tr-spares h3 { margin: 0 0 4px; font-size: 15px; }

/* Trade matches (s24.2) */
.tm { margin-top: 0; }
.tm-wrap { padding-top: 0; }
.tm-head h2 { margin: 0 0 6px; }
.tm-set { margin: 10px 0; }
.tm-off { font-size: 13.5px; color: var(--text-2); margin: 6px 0 12px; }
.tm-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.tm-m { border: 1px solid var(--line-2); border-radius: 14px; padding: 12px; background: var(--surface); }
.tm-m.tier-1 { border-color: var(--accent-2); }
.tm-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.tm-b { font-size: 11.5px; }
.tm-m.tier-1 .tm-b { background: rgba(var(--accent-2-rgb),.16); color: var(--accent-2-light); }
.tm-h { margin: 10px 0 6px; font-weight: 800; font-size: 12.5px; color: var(--text-2); text-transform: uppercase; letter-spacing: .04em; }
.tm-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.tm-card { display: flex; gap: 8px; align-items: center; min-width: 0; }
.tm-card img, .tm-noimg { width: 40px; height: 56px; object-fit: cover; border-radius: 6px; flex: none; background: var(--line-2); }
.tm-card span { min-width: 0; display: flex; flex-direction: column; }
.tm-card b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-card small { font-size: 11.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-tag { align-self: flex-start; margin-top: 3px; font-size: 10.5px; }

/* Family accounts (s24.3) */
.fam-t { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 13.5px; }
.fam-t th, .fam-t td { text-align: left; padding: 7px 6px; border-bottom: 1px solid var(--line-2); }
.fam-t thead th { font-size: 11.5px; color: var(--text-3); text-transform: uppercase; letter-spacing: .04em; }
.fam-t td:nth-child(2), .fam-t td:nth-child(3) { white-space: nowrap; }
.fam-kids, .fam-recent { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 6px; }
.fam-kids li { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.fam-recent li { font-size: 13.5px; } .fam-recent small { color: var(--text-3); }
.fam-link { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end; margin-top: 8px; }
@media (max-width: 599px) { .fam-link { grid-template-columns: 1fr; } }
.fam-code { font-family: 'Space Grotesk', monospace; font-size: 30px; font-weight: 700; letter-spacing: .12em; margin: 10px 0 4px; }
.dp-family { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.dp-family small { color: var(--text-3); }

/* Chat bubbles never wider than the screen: long button labels wrap (J, 25 Oct 2026) */
.pm-log { grid-template-columns: minmax(0, 1fr); overflow-x: hidden; }
.pm-msg { min-width: 0; }
.pm-msg p, .pm-learned { overflow-wrap: anywhere; }
.pm-msg .row .btn, .hp-acts .btn { white-space: normal; height: auto; min-height: 44px; padding-top: 8px; padding-bottom: 8px; text-align: left; line-height: 1.3; max-width: 100%; }

/* Kid mode (s24.4): no prices, sharing, slab checks or stolen reports on a child's device */
.kid-mode [data-nokid], .kid-mode #share-btn, .kid-mode [data-act="share"], .kid-mode [data-act="stolen"], .kid-mode [data-act="slab"], .kid-mode #dp-value, .kid-mode .pd-eye, .kid-mode #value-strip, .kid-mode #verdict .tr-big, .kid-mode #verdict .hint, .kid-mode .tr-total { display: none !important; }
.kid-setup { display: grid; gap: 12px; max-width: 560px; }
.kid-steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.kid-pick { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.kid-pick .btn { width: 100%; justify-content: flex-start; height: auto; min-height: 64px; padding: 10px 14px; gap: 12px; white-space: normal; text-align: left; }
.kid-pick img, .fam-kid img, .kid-head img { width: 40px; height: 40px; border-radius: 50%; }
.kid-pick span, .kid-c { display: flex; flex-direction: column; min-width: 0; }
.kid-pick small, .kid-c small, .fam-kid small { color: var(--text-3); font-size: 12px; }
.fam-kid { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fam-add summary { list-style: none; display: inline-flex; margin-top: 8px; } .fam-add summary::-webkit-details-marker { display: none; }
.fam-kid-form { display: grid; gap: 10px; margin-top: 10px; }
.kid-sheet { max-width: 640px; } .kid-body { display: grid; gap: 10px; max-height: 75vh; overflow-y: auto; }
.kid-head { display: flex; gap: 12px; align-items: center; } .kid-head h3 { margin: 0; }
.kid-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.kid-cards li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.kid-cards li > img, .kid-cards .tm-noimg { width: 40px; height: 56px; object-fit: cover; border-radius: 6px; }
.kid-cond { height: 36px; font-size: 13px; max-width: 150px; }
.kid-set { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; }
@media (max-width: 599px) { .kid-set { grid-template-columns: 1fr; } .kid-cards li { grid-template-columns: 40px minmax(0, 1fr); } .kid-cond { grid-column: 2; max-width: none; } }
.kid-born { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; }
.kid-home-tip { padding: 10px 12px; border-radius: 12px; border: 1px dashed rgba(var(--accent-rgb),.5); font-size: 13.5px; line-height: 1.45; }
.pd-grownup { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 8px 16px; padding: 10px 12px; border-radius: 12px; background: rgba(var(--accent-2-rgb),.14); border: 1px solid var(--accent-2); font-weight: 700; font-size: 13.5px; }
.pd-grownup .btn { height: 38px; white-space: normal; }
/* s39.7 AI video on a reel */
.pm-ai { display: grid; gap: 6px; margin: 8px 0; padding: 10px 12px; border-radius: 12px; border: 1px dashed rgba(var(--accent-2-rgb),.55); font-size: 13.5px; }
.pm-ai span { color: var(--text-2); } .pm-ai .btn { justify-self: start; white-space: normal; height: auto; min-height: 40px; }
.pm-ai.making b::after { content: ''; display: inline-block; width: 10px; height: 10px; margin-left: 8px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: pdspin .8s linear infinite; vertical-align: -1px; }
.pm-ai.ready { border-style: solid; border-color: var(--accent-2); }
@keyframes pdspin { to { transform: rotate(360deg); } }
/* s39.8 AI video chooser */
.ai-sheet { max-width: 760px; } .ai-body { display: grid; gap: 14px; max-height: 78vh; overflow-y: auto; }
.ai-kind h3 { margin: 4px 0; } .ai-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); gap: 10px; }
.ai-t { display: grid; gap: 8px; padding: 8px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface); }
.ai-t video, .ai-nodemo { width: 100%; aspect-ratio: 9 / 16; max-height: 360px; object-fit: cover; border-radius: 10px; background: #000; }
.ai-nodemo { display: grid; place-items: center; color: var(--text-3); font-size: 13px; background: var(--line-2); }
.ai-t-txt { display: grid; gap: 6px; } .ai-t-txt small { color: var(--text-2); font-size: 12.5px; line-height: 1.4; }
.ai-t-txt .btn { white-space: normal; height: auto; min-height: 40px; }
.ai-own { padding: 10px 12px; border-radius: 14px; border: 1px dashed rgba(var(--accent-2-rgb),.55); display: grid; gap: 8px; }
.ai-confirm { display: grid; gap: 8px; } .ai-confirm h3 { margin: 0; }
.ad-reels { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 10px; }
.ad-reel { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: start; }
.ad-reel video, .ad-reel .ai-nodemo { width: 96px; aspect-ratio: 9 / 16; border-radius: 8px; object-fit: cover; font-size: 11px; text-align: center; }

/* ── Two themes (J, 25 Oct 2026: "a nice elegant theme for adults and then the fun theme for kids") ──
   Onyx: adults and 13 to 17s. Deep black, soft white, champagne values, holo rings (from the logo's foil card).
   Arcade: kid mode (under 13s on a set-up device). Bright, rounded, rainbow rings, Fredoka.
   Both only change tokens, so every page follows. Replaces Ember (s33) in the app. */
:root {
  --bg: #07080A; --bg-rgb: 7,8,10;
  --bg-2: #0C0D10; --bg-2-rgb: 12,13,16;
  --surface: #121418; --surface-rgb: 18,20,24;
  --surface-2: #181B21;
  --raise: #20242C;
  --art-glow: #1F232B;
  --accent: #E0B85C; --accent-rgb: 224,184,92;            /* champagne: values, active, links */
  --accent-bright: #F0CF7E; --accent-bright-rgb: 240,207,126;
  --accent-2: #F2F3F5; --accent-2-rgb: 242,243,245;        /* buttons: soft white on black */
  --accent-2-light: #FFFFFF;
  --on-accent: #0B0C0F;
  --on-accent-2: #0B0C0F;
  --text: #F2F3F5; --text-rgb: 242,243,245;
  --text-2: #AAB1BC;
  --muted: #8A92A0;
  --line: rgba(var(--text-rgb),0.10);
  --line-2: rgba(var(--text-rgb),0.07);
  --display-weight: 600;
  --display-tracking: -0.015em;
  --ring: conic-gradient(from 200deg, #E0B85C, #3FD9C2, #5B7CFF, #D86BD4, #F28A4A, #E0B85C);
  --metal: linear-gradient(110deg, #A8873E 0%, #E0B85C 18%, #FBE6B0 32%, #DDB565 44%, #B6E3D9 55%, #E2C2EC 63%, #D9AE55 76%, #F4DDA0 88%, #9C7C38 100%);
}
html.kid-mode {
  --bg: #0E0A30; --bg-rgb: 14,10,48;
  --bg-2: #130E3D; --bg-2-rgb: 19,14,61;
  --surface: #1C1552; --surface-rgb: 28,21,82;
  --surface-2: #251C66;
  --raise: #2F247A;
  --art-glow: #3A3384;
  --accent: #FFC400; --accent-rgb: 255,196,0;
  --accent-bright: #FFD84D; --accent-bright-rgb: 255,216,77;
  --accent-2: #FF2E86; --accent-2-rgb: 255,46,134;
  --accent-2-light: #FF5CA2;
  --on-accent: #1A1440;
  --on-accent-2: #FFFFFF;
  --good: #1FD65F; --good-rgb: 31,214,95;
  --text: #FFFFFF; --text-rgb: 255,255,255;
  --text-2: #D9D5FF;
  --muted: #A9A3E0;
  --line: rgba(255,210,63,0.22);
  --line-2: rgba(255,255,255,0.10);
  --font-display: 'Fredoka', 'Space Grotesk', sans-serif;
  --display-weight: 700;
  --radius: 20px;
  --radius-sm: 14px;
  --ring: conic-gradient(from 0deg, #FF2D2D, #FF8A00, #FFC400, #1FD65F, #00A8FF, #7A3CFF, #FF2E86, #FF2D2D);
  --metal: linear-gradient(110deg, #FFC400, #FF8A00 30%, #FF2E86 60%, #7A3CFF);
}
html.kid-mode body { background-image: radial-gradient(60% 40% at 10% 0%, rgba(122,60,255,.35), transparent 70%), radial-gradient(50% 40% at 100% 20%, rgba(0,168,255,.22), transparent 70%); }

/* Buttons take their text colour from the theme. */
.btn-primary, .btn-primary:hover { color: var(--on-accent-2, #fff); }

/* Rings: avatar, the Add button and the picture on Account. */
.pd-avatar, .av-now { position: relative; }
.pd-avatar::before, .av-now::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%; padding: 2px; background: var(--ring); pointer-events: none; z-index: 1;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.av-now::before { padding: 3px; }
@media (max-width: 1023px) {
  .pd-tabbar a.add i { position: relative; border-radius: 50%; background: var(--surface-2); color: var(--accent); box-shadow: 0 10px 24px -10px rgba(0,0,0,.9); }
  .pd-tabbar a.add i::before {
    content: ''; position: absolute; inset: 0; border-radius: 50%; padding: 2.5px; background: var(--ring);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  }
}
html.kid-mode .tile .art { border-radius: 16px; }
html.kid-mode .btn { border-radius: 999px; }

/* Speak instead of typing (J, 25 Oct 2026): round mic and round send, as in chat apps. */
.hp-form, .pm-ask { align-items: flex-end; }
.pd-mic, .pd-send { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 0; cursor: pointer; padding: 0; transition: background .15s, transform .1s; }
.pd-mic { background: var(--surface-2); color: var(--text-2); position: relative; }
.pd-mic:hover { color: var(--text); background: var(--raise); }
.pd-send { background: var(--accent-2); color: var(--on-accent-2, #fff); }
.pd-send:hover { background: var(--accent-2-light); }
.pd-mic svg, .pd-send svg { width: 22px; height: 22px; }
.pd-send svg { stroke-width: 2.4; }
.pd-mic:active, .pd-send:active { transform: scale(.94); }
.pd-send:disabled, .pd-send.busy { opacity: .55; cursor: default; }
.pd-mic.on { color: var(--accent); background: var(--surface); }
.pd-mic.on::before {
  content: ''; position: absolute; inset: -3px; border-radius: 50%; padding: 2.5px; background: var(--ring, var(--accent));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: pd-mic-spin 1.6s linear infinite;
}
@keyframes pd-mic-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .pd-mic.on::before { animation: none; } }

/* s41.4 Clarity consent (adults only) */
.pd-consent { position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 1100; max-width: 560px; margin: 0 auto; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.pd-consent p { margin: 0 0 10px; font-size: 14px; line-height: 1.45; }
.pd-consent-btns { display: flex; gap: 8px; justify-content: flex-end; }

/* s42 Money */
.fn { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.ad .fn-period, .ad .panel { min-width: 0; }
.fn-period { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.fn-dates { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fn-dates label { display: flex; gap: 6px; align-items: center; font-weight: 700; color: var(--text-2); }
.fn-tiles .ad-tile small.up { color: var(--good); font-weight: 800; } .fn-tiles .ad-tile small.down { color: var(--bad-soft, #f08080); font-weight: 800; }
.fn-tiles .ad-tile.neg b { color: var(--bad-soft, #f08080); }
.fn-axis { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); font-weight: 700; margin: 4px 0 10px; }
.fn-docs li { flex-wrap: wrap; align-items: center; }
.fn-docs li > span:first-child { display: grid; gap: 2px; min-width: 180px; }
.fn-doc-btns { display: flex; gap: 6px; flex: 0 0 auto !important; }
.fn-doc-btns .btn { padding: 6px 10px; min-height: 0; font-size: 13px; }
.ad-list li.fn-total { background: rgba(var(--accent-rgb), .12); }
.fn-period .pd-chips { padding: 0; min-width: 0; max-width: 100%; }
.ad .fn-period + .panel, .ad .panel + .panel { margin-top: 14px; }
.fn-trades { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.fn-trades li { padding: 12px; border-radius: 12px; background: rgba(var(--ink-rgb),.04); display: grid; gap: 8px; }
.fn-trade-top { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-weight: 700; color: var(--text-2); }
.fn-side { display: grid; gap: 2px; } .fn-side small { color: var(--muted); font-weight: 700; }
.fn .up { color: var(--good); } .fn .down { color: var(--bad-soft, #f08080); }
.fn-pct { font-weight: 800; }
/* s42.4 What you paid */
.dp-paid { display: grid; gap: 6px; margin-top: 8px; }
.dp-paid .up { color: var(--good); } .dp-paid .down { color: var(--bad-soft, #f08080); }
.dp-paid-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.dp-paid-form[hidden] { display: none; }
.dp-paid-form label { display: grid; gap: 4px; font-size: 12.5px; font-weight: 800; color: var(--muted); }
.dp-paid-form input { width: 140px; }
.dp-paid-note { margin: 0; font-size: 12px; }
.btn-link { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; font-weight: 800; cursor: pointer; }
/* s27.3 Set checklist: have is lit, missing is greyed, availability tags */
.st-card .sl-pic { transition: box-shadow .2s, border-color .2s; }
.st-card.have .sl-pic { border-color: rgba(var(--good-rgb), .9); box-shadow: 0 0 0 2px rgba(var(--good-rgb), .45), 0 6px 18px rgba(var(--good-rgb), .18); }
.st-card:not(.have) .sl-pic { opacity: .72; }
.st-card:not(.have) .sl-pic > span { color: var(--muted); }
.st-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.st-tag { font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; text-decoration: none; border: 1px solid var(--line-2); color: var(--text-2); }
.st-tag.sale { border-color: rgba(var(--good-rgb), .55); color: var(--good); }
.st-tag.trade { border-color: rgba(var(--accent-rgb), .55); color: var(--accent); }

/* Market: buy or trade filter, trader wishlist row (28 Oct 2026) */
.mk-modes { margin: 4px 0 8px; flex-wrap: wrap; }
.tw-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(130px, 160px); gap: 12px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.tw-row .mk-tile { scroll-snap-align: start; }
.tm-spares { margin-top: 18px; }
.tm-sp { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.tm-sp li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--surface-2); }
.tm-sp-c { display: flex; gap: 10px; align-items: center; min-width: 0; }
.tm-sp-c img, .tm-sp-c .tm-noimg { width: 40px; height: 56px; object-fit: cover; border-radius: 6px; flex: none; }
.tm-sp-c small { display: block; color: var(--muted); }
.tm-sp-k { display: flex; align-items: center; gap: 6px; text-align: center; flex: none; }
.tm-sp-k .btn { padding: 4px 12px; min-width: 40px; }
.dp-intent { flex-wrap: wrap; }
/* Fair trade (s53 phase 2) */
.tf { margin: 10px 0; padding: 12px; border-radius: 12px; background: var(--surface-2); }
.tf-bar { height: 8px; border-radius: 99px; background: rgba(var(--accent-rgb), .55); overflow: hidden; }
.tf-bar i { display: block; height: 100%; background: var(--text-2); }
.tf-sides { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-2); margin-top: 6px; }
.tf-line { margin: 6px 0 0; }
.tf-fair .tf-line b { color: var(--lime, #b5e550); }
.tf-give_more .tf-line b { color: var(--warn, #f0a540); }
.tf-tip { margin: 4px 0 0; }
/* s53 phase 2: counter offer picks */
.bl-pick { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(var(--ink-rgb),.03); cursor: pointer; }
.bl-pick img { width: 30px; border-radius: 4px; }
.bl-pick input:disabled + img, .bl-pick input:disabled ~ .sl-n { opacity: .8; }
.bl-pick .sl-n { display: grid; min-width: 0; }
.bl-pick .sl-n small { color: var(--muted); }
/* s53 phase 2: one market grid, what each tile is */
.mk-art .flag.mk-kind { left: 8px; right: auto; top: 8px; bottom: auto; }

/* ── Ember and Daylight (J, 28 Oct 2026: "not so keen on the mono colours"; light and dark like Veriroo) ──
   Dark is Ember, warmed up: slate, ember buttons, champagne gold values, teal green for good news.
   Light is Daylight: warm cream, coral buttons, teal and sunflower. Space Grotesk and Inter like every adult theme (J, 29 Oct 2026).
   pd-theme.js sets html[data-theme] from the remembered choice or the device. Kid mode keeps Arcade.
   These replace Onyx for adults; only tokens change, so every page follows. */
:root {
  --bg: #0E1118; --bg-rgb: 14,17,24;
  --bg-2: #121620; --bg-2-rgb: 18,22,32;
  --surface: #171B26; --surface-rgb: 23,27,38;
  --surface-2: #1E2330;
  --raise: #262C3B;
  --art-glow: #2E2A2F;
  --accent: #F0C987; --accent-rgb: 240,201,135;
  --accent-bright: #F6DFB0; --accent-bright-rgb: 246,223,176;
  --accent-2: #C8642E; --accent-2-rgb: 200,100,46;
  --accent-2-light: #DB7A45;
  --on-accent: #14100A;
  --on-accent-2: #1A0C04;
  --good: #5DD6A8; --good-rgb: 93,214,168;
  --lime: #5DD6A8;
  --warn: #F2A65A;
  --bad: #FF5A4E; --bad-rgb: 255,90,78;
  --bad-soft: #FF8A7A;
  --text: #F4F6FA; --text-rgb: 244,246,250;
  --text-2: #B8C0CC;
  --text-3: #8F99AA;
  --muted: #8590A2;
  --ink-rgb: 255,255,255;
  --line: rgba(var(--accent-2-rgb),0.20);
  --line-2: rgba(var(--text-rgb),0.08);
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --display-weight: 700;
  --display-tracking: -0.02em;
  --ring: conic-gradient(from 200deg, #C8642E, #F0C987, #5DD6A8, #7FB2FF, #D98AC8, #C8642E);
  --metal: linear-gradient(110deg, #B5592A 0%, #DB7A45 22%, #F0C987 48%, #FFF2D4 62%, #E6C68A 78%, #C8642E 100%);
  color-scheme: dark;
}
html[data-theme="light"]:not(.kid-mode) {
  --bg: #FFF8EE; --bg-rgb: 255,248,238;
  --bg-2: #FFF3E2; --bg-2-rgb: 255,243,226;
  --surface: #FFFFFF; --surface-rgb: 255,255,255;
  --surface-2: #FFF4E6;
  --raise: #F3EBDD;
  --art-glow: #FFE7D1;
  --accent: #C2441C; --accent-rgb: 194,68,28;
  --accent-bright: #E8572F; --accent-bright-rgb: 232,87,47;
  --accent-2: #D9481F; --accent-2-rgb: 217,72,31;
  --accent-2-light: #E8572F;
  --on-accent: #FFFFFF;
  --on-accent-2: #FFFFFF;
  --good: #14805A; --good-rgb: 20,128,90;
  --lime: #14805A;
  --warn: #995700;
  --bad: #C7362B; --bad-rgb: 199,54,43;
  --bad-soft: #B3322A;
  --text: #1E1B2E; --text-rgb: 30,27,46;
  --text-2: #4E4760;
  --text-3: #6B6380;
  --muted: #6B6279;
  --ink-rgb: 30,27,46;
  --line: rgba(var(--accent-2-rgb),0.22);
  --line-2: rgba(var(--text-rgb),0.10);
  --display-weight: 800;
  --display-tracking: -0.025em;
  --ring: conic-gradient(from 200deg, #E8572F, #FFB627, #2EC4B6, #7A5CFA, #E8572F);
  --metal: linear-gradient(110deg, #C2441C 0%, #E8572F 35%, #D0661A 65%, #B04A10 100%);
  color-scheme: light;
}
html[data-theme="light"]:not(.kid-mode) body::before { opacity: .55; }
/* A shop page always sits on a dark backdrop, so keep its text and panels dark-theme even when the member's app is light. */
html[data-theme="light"]:not(.kid-mode) body.shop-themed {
  --bg: #0E1118; --bg-rgb: 14,17,24; --bg-2: #121620; --bg-2-rgb: 18,22,32;
  --surface: #171B26; --surface-rgb: 23,27,38; --surface-2: #1E2330; --raise: #262C3B;
  --text: #F4F6FA; --text-rgb: 244,246,250; --text-2: #B8C0CC; --text-3: #8F99AA; --muted: #8590A2;
  --ink-rgb: 255,255,255; --line-2: rgba(244,246,250,0.08);
  color-scheme: dark; color: var(--text);
}
.sh-hero { max-width: 100%; overflow: hidden; }
.sh-hero img { max-width: 100%; display: block; }
html[data-theme="light"]:not(.kid-mode) .btn-primary { box-shadow: 0 6px 16px -8px rgba(var(--accent-2-rgb),.6); }
html[data-theme="light"]:not(.kid-mode) .flag { background: rgba(255,255,255,.92); }
html[data-theme="light"]:not(.kid-mode) .flag.lime { color: #0E6B4A; border-color: rgba(20,128,90,.4); }
html[data-theme="light"]:not(.kid-mode) .flag.yellow { color: #8A3A12; border-color: rgba(217,72,31,.4); }
html[data-theme="light"]:not(.kid-mode) .mk-art, html[data-theme="light"]:not(.kid-mode) .tile .art { background: radial-gradient(120% 90% at 30% 10%, #FFFFFF, var(--art-glow) 75%); }

/* Light or dark switch, in the menu and on Account. */
.pd-theme-btn { display: flex; align-items: center; gap: 10px; margin: 2px 12px 0; padding: 10px 12px; border: 0; border-radius: 10px; background: none; color: var(--muted); font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.pd-theme-btn:hover { background: var(--surface-2); color: var(--text); }
.pd-theme-btn i { font-style: normal; width: 18px; text-align: center; }
@media (max-width: 1023px) { html:not(.rail-full) .pd-theme-btn span { display: none; } }
html.rail-slim .pd-theme-btn span { display: none; }
html.rail-slim .pd-theme-btn { justify-content: center; }
@media (max-width: 1023px) { html:not(.rail-full) .pd-theme-btn { justify-content: center; } }
.th-pick { display: flex; gap: 8px; flex-wrap: wrap; }
.th-pick button { flex: 1; min-width: 110px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); font: inherit; font-weight: 800; cursor: pointer; }
.th-pick button[aria-pressed="true"] { border-color: var(--accent-2); box-shadow: inset 0 0 0 1px var(--accent-2); }
/* Fairness bar and pick lists in colour (28 Oct 2026). */
.tf-bar { background: rgba(var(--ink-rgb), .10); }
.tf-bar i { background: linear-gradient(90deg, var(--accent-2), var(--accent)); border-radius: 99px; }
html[data-theme="light"]:not(.kid-mode) .tf-bar i { background: linear-gradient(90deg, #E8572F, #FFB627); }
.tf-fair .tf-bar i { box-shadow: 0 0 0 1px rgba(var(--good-rgb), .35); }
.tr-pick li { padding: 0; background: none; }
.tr-pick .bl-pick { width: 100%; }
.bl-pick input, .pd-share input[type=checkbox], .pd-share input[type=radio] { accent-color: var(--accent-2); }
.bl-pick:has(input:checked) { border-color: var(--accent-2); background: rgba(var(--accent-2-rgb), .08); }

/* ── Make a trade (s53 phase 3): one screen for every online trade ── */
html.mt-open { overflow: hidden; }
.mt { position: fixed; inset: 0; z-index: 90; background: rgba(var(--bg-rgb), .72); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px; }
.mt-card { width: min(1120px, 100%); height: min(92vh, 980px); display: flex; flex-direction: column; background: var(--bg-2); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: 0 30px 80px -30px rgba(0,0,0,.7); }
.mt-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line-2); background: var(--surface); }
.mt-title { display: block; font-family: var(--font-display); font-weight: var(--display-weight, 700); font-size: 22px; letter-spacing: var(--display-tracking); }
.mt-with { display: block; color: var(--muted); font-size: 13px; font-weight: 700; }
.mt-body { flex: 1; overflow: auto; padding: 18px 20px 8px; display: grid; gap: 14px; align-content: start; }
.mt-deal { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 12px; align-items: stretch; }
.mt-side { padding: 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-2); min-height: 112px; display: grid; gap: 8px; align-content: start; }
.mt-lab { font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.mt-minis { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.mt-mini { width: 46px; aspect-ratio: 5/7; border-radius: 6px; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; box-shadow: 0 6px 14px -8px rgba(0,0,0,.6); }
.mt-mini img { width: 100%; height: 100%; object-fit: cover; }
.mt-mini i { font-style: normal; font-size: 9px; padding: 2px; text-align: center; color: var(--text-2); }
.mt-cashchip { padding: 6px 10px; border-radius: 999px; background: rgba(var(--accent-rgb), .14); color: var(--accent); font-weight: 900; font-size: 13px; }
.mt-swap { align-self: center; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; color: var(--on-accent-2, #fff); background: linear-gradient(135deg, var(--accent-2), var(--accent-2-light)); box-shadow: 0 8px 20px -10px rgba(var(--accent-2-rgb), .8); }
.mt-fair:empty, .mt-sugg:empty { display: none; }
.mt-fair .tf { margin: 0; }
.mt-sugg { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mt-sugg-h { width: 100%; font-size: 12px; font-weight: 900; color: var(--muted); }
.mt-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; border: 1px solid rgba(var(--accent-2-rgb), .45); background: rgba(var(--accent-2-rgb), .08); color: var(--text); font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; text-align: left; }
.mt-chip:hover { background: rgba(var(--accent-2-rgb), .16); }
.mt-chip img { width: 24px; height: 34px; object-fit: cover; border-radius: 4px; }
.mt-chip i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-style: normal; background: var(--accent-2); color: var(--on-accent-2, #fff); }
.mt-chip em { display: block; font-style: normal; font-size: 11px; color: var(--good); }
.mt-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.mt-col h3 { margin: 0 0 8px; font-size: 16px; }
.mt-q { margin: 0 0 8px; }
.mt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.mt-tile { display: grid; gap: 3px; padding: 6px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); text-align: left; font: inherit; cursor: pointer; transition: transform .15s var(--ease), border-color .15s; }
.mt-tile:hover { transform: translateY(-2px); border-color: rgba(var(--accent-2-rgb), .5); }
.mt-tile.on { border-color: var(--accent-2); background: rgba(var(--accent-2-rgb), .10); box-shadow: inset 0 0 0 1px var(--accent-2); }
.mt-tile.fixed { cursor: default; transform: none; }
.mt-art { position: relative; aspect-ratio: 5/7; border-radius: 9px; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; }
.mt-art img { width: 100%; height: 100%; object-fit: cover; }
.mt-art i { font-style: normal; font-size: 11px; color: var(--text-2); padding: 6px; text-align: center; }
.mt-art em { position: absolute; left: 4px; right: 4px; bottom: 4px; font-style: normal; font-size: 9.5px; font-weight: 900; padding: 2px 6px; border-radius: 99px; background: rgba(var(--bg-rgb), .88); color: var(--good); text-align: center; }
.mt-tick { position: absolute; top: 5px; right: 5px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; background: var(--accent-2); color: var(--on-accent-2, #fff); opacity: 0; transform: scale(.6); transition: .15s var(--ease); }
.mt-tile.on .mt-tick { opacity: 1; transform: none; }
.mt-n { font-weight: 800; font-size: 12.5px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mt-tile small { color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mt-tile .mt-v { color: var(--accent); font-weight: 800; }
.mt-extra { display: grid; gap: 12px; padding-top: 6px; border-top: 1px solid var(--line-2); }
.mt-cash { width: max-content; max-width: 100%; }
.mt-addr summary { cursor: pointer; font-weight: 800; padding: 6px 0; }
/* Protect this trade (s63 step 4). */
.mt-protect { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.mt-protect input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.mt-protect:has(input:checked) { border-color: var(--accent); }
/* How trading by post works (s63): the panel and /help/trading/. */
.tg-link { display: block; font-size: 13px; margin-top: 4px; text-align: left; }
.tg-veil { position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, .6); display: flex; align-items: center; justify-content: center; padding: 16px; }
.tg-panel { background: var(--bg); border: 1px solid var(--line); border-radius: 18px; max-width: 620px; width: 100%; max-height: calc(100vh - 32px); overflow: auto; padding: 22px; }
.tg-panel h2 { margin: 0 0 6px; }
.tg-intro { color: var(--text-2); line-height: 1.55; }
.tg-steps { list-style: none; counter-reset: tg; padding: 0; margin: 16px 0; display: grid; gap: 14px; }
.tg-steps li { counter-increment: tg; display: grid; grid-template-columns: 30px 1fr; gap: 2px 12px; }
.tg-steps li::before { content: counter(tg); grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--bg); font-weight: 900; display: flex; align-items: center; justify-content: center; }
.tg-steps b { font-size: 16px; }
.tg-steps span { color: var(--text-2); line-height: 1.5; }
.tg-limits { background: var(--surface); border-radius: 14px; padding: 12px 14px; }
.tg-limits p { margin: 4px 0 0; color: var(--text-2); line-height: 1.5; }
.tg-more { font-size: 13px; }
.mt-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-2); background: var(--surface); }
.mt-foot .btn { min-width: 200px; }
@media (max-width: 760px) {
  .mt { padding: 0; }
  .mt-card { height: 100dvh; border-radius: 0; border: 0; }
  .mt-cols { grid-template-columns: 1fr; }
  .mt-grid { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }
  .mt-deal { grid-template-columns: 1fr; }
  .mt-swap { justify-self: center; transform: rotate(90deg); width: 34px; height: 34px; }
  .mt-foot .btn { min-width: 0; flex: 1; }
}
.mt-body { min-height: 0; padding-bottom: 0; }
.mt-foot { position: sticky; bottom: 0; margin: 0 -20px; z-index: 2; box-shadow: 0 -12px 24px -16px rgba(0,0,0,.5); }
.mt-foot #mt-count b { font-weight: 900; }
.mt-v-fair { color: var(--good); } .mt-v-give_more { color: var(--warn); } .mt-v-get_more { color: var(--accent); }
/* Menu toggles (Sorted / My folders, My photos / Card pictures): each on its own row, inside the menu (28 Oct 2026). */
#pd-folders-head { flex-direction: column; align-items: stretch; gap: 8px; padding: 14px 14px 6px; letter-spacing: normal; text-transform: none; }
#pd-folders-head .pd-view { display: flex; width: 100%; box-sizing: border-box; }
#pd-folders-head .pd-view button { flex: 1 1 0; min-width: 0; padding: 7px 6px; white-space: nowrap; font-size: 12px; }
/* The menu scrolls as a whole when the window is short, so the folders are never squeezed out (28 Oct 2026). */
.pd-rail { overflow-y: auto; overscroll-behavior: contain; }
.pd-rail > * { flex-shrink: 0; }
.pd-rail .pd-tree { flex: 1 0 auto; overflow: visible; min-height: 0; }
.pd-rail-foot { position: sticky; bottom: 0; z-index: 2; background: var(--bg-2); }
.tm-yours { display: flex; align-items: center; gap: 12px; margin: 16px 24px 4px; text-decoration: none; color: var(--text); }
.tm-yours span { flex: 1; display: grid; gap: 2px; } .tm-yours small { color: var(--muted); font-weight: 700; }
.tm-yours em { font-style: normal; font-weight: 900; color: var(--accent); }
.tm-yours.due { border-color: var(--accent-2); }
@media (max-width: 1023px) { .tm-yours { margin: 0 16px 12px; } }
/* Always the whole card (J, 28 Oct 2026): card pictures fit inside their frame, never cropped.
   Avatars, logos, banners and videos still fill theirs. */
.dp-thumb img, .imp-row .pic img, .fd-pic img, .sl-pic img, .bd-pic img, .pd-mine img, .pd-match.pic img, .bd-cat img, .pl-card img,
.vl-hero img, .vl-list img, .sl-list li img, .eb-list img, .dp-ph, .bl-pick img, .pm-pick img, .tm-card img, .kid-cards li > img,
.tm-sp-c img, .mt-mini img, .mt-chip img, .mt-art img, .mk-art img, .tile .art img { object-fit: contain; }
/* The cards in a trade (28 Oct 2026) */
.tc-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin: 10px 0; }
.tc-h { display: block; font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.tc-strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.tc-c { flex: none; width: 112px; display: grid; gap: 2px; padding: 0; border: 0; background: none; color: var(--text); text-align: left; font: inherit; cursor: zoom-in; }
.tc-art { position: relative; aspect-ratio: 5/7; border-radius: 10px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line-2); display: grid; place-items: center; }
.tc-art img { width: 100%; height: 100%; object-fit: contain; }
.tc-art i { font-style: normal; font-size: 11px; color: var(--text-2); padding: 6px; text-align: center; }
.tc-art em { position: absolute; right: 4px; bottom: 4px; font-style: normal; font-size: 10px; font-weight: 900; padding: 1px 6px; border-radius: 6px; background: rgba(var(--bg-rgb), .85); }
.tc-c b { font-size: 12.5px; line-height: 1.25; } .tc-c small { color: var(--muted); font-size: 11px; } .tc-c .tc-v { color: var(--accent); font-weight: 800; }
.tc-c:hover .tc-art { border-color: rgba(var(--accent-2-rgb), .5); }
@media (min-width: 760px) { .tc-cards { grid-template-columns: 1fr 1fr; } .tc-cards > .hint { grid-column: 1 / -1; } }
/* Crop by hand (28 Oct 2026) */
.pd-crop { z-index: 1001; }
.cr-stage { display: grid; place-items: center; min-height: 0; padding: 8px; }
.cr-wrap { position: relative; display: inline-block; touch-action: none; user-select: none; max-height: calc(100dvh - 190px); }
.cr-wrap img { display: block; max-width: 100%; max-height: calc(100dvh - 190px); width: auto; height: auto; pointer-events: none; border-radius: 6px; }
.cr-frame { position: absolute; border: 2px solid var(--accent); box-shadow: 0 0 0 9999px rgba(0,0,0,.55); cursor: move; border-radius: 4px; }
.cr-h { position: absolute; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); border: 3px solid var(--bg); }
.cr-nw { left: -3px; top: -3px; cursor: nwse-resize; } .cr-ne { right: -3px; top: -3px; cursor: nesw-resize; }
.cr-sw { left: -3px; bottom: -3px; cursor: nesw-resize; } .cr-se { right: -3px; bottom: -3px; cursor: nwse-resize; }
.cr-wrap { overflow: hidden; }

/* ── Bell (s54) ── */
.pd-bell-btn { display: flex; align-items: center; gap: 10px; margin: 0 12px 6px; padding: 10px 12px; border: 0; border-radius: 10px; background: none; color: var(--muted); font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; text-align: left; }
.pd-bell-btn:hover, .pd-bell-btn[aria-expanded="true"] { background: var(--surface-2); color: var(--text); }
.pd-bell-btn i { position: relative; display: inline-flex; font-style: normal; }
@media (max-width: 1023px) { html:not(.rail-full) .pd-bell-btn { justify-content: center; } html:not(.rail-full) .pd-bell-btn span { display: none; } }
html.rail-slim .pd-bell-btn { justify-content: center; } html.rail-slim .pd-bell-btn span { display: none; }
.bl-dot { position: absolute; top: -6px; right: -9px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--accent); color: var(--on-accent); font-size: 10px; font-weight: 900; line-height: 17px; text-align: center; font-style: normal; }
#pd-tabbar [data-more] { position: relative; }
#pd-tabbar [data-more] .bl-dot { top: 4px; right: calc(50% - 22px); }
.pd-more-panel [data-bell] svg { width: 22px; height: 22px; }
.bl-drawer { position: fixed; inset: 0; z-index: 320; background: rgba(0,0,0,.45); display: flex; justify-content: flex-end; }
.bl-panel { width: min(420px, 100vw); height: 100%; background: var(--bg); border-left: 1px solid var(--line-2); display: flex; flex-direction: column; padding: max(14px, env(safe-area-inset-top)) 0 env(safe-area-inset-bottom); animation: bl-in .22s var(--ease, ease-out); }
@keyframes bl-in { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.bl-head { display: flex; align-items: center; justify-content: space-between; padding: 0 16px 6px; }
.bl-head h2 { margin: 0; font-size: 20px; }
.bl-head small { color: var(--muted); font-size: 13px; font-weight: 700; margin-left: 6px; }
.bl-x { border: 0; background: none; color: var(--muted); font-size: 28px; line-height: 1; width: 40px; height: 40px; border-radius: 10px; cursor: pointer; }
.bl-x:hover { background: var(--surface-2); color: var(--text); }
.bl-tools { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 16px 10px; border-bottom: 1px solid var(--line-2); }
.bl-tools .btn { padding: 6px 12px; font-size: 13px; }
.bl-list { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.bl-item { display: grid; gap: 3px; width: 100%; text-align: left; padding: 13px 16px 13px 26px; border: 0; border-bottom: 1px solid var(--line-2); background: none; color: var(--muted); font: inherit; cursor: pointer; position: relative; }
.bl-item:hover { background: var(--surface-2); }
.bl-item b { color: var(--text); font-size: 14px; font-weight: 800; }
.bl-item span { font-size: 13px; line-height: 1.4; }
.bl-item em { font-style: normal; font-size: 12px; opacity: .8; }
.bl-item.new::before { content: ''; position: absolute; left: 10px; top: 19px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.bl-item.new { background: rgba(var(--ink-rgb, 255,255,255), .03); }
.bl-empty { display: grid; justify-items: center; gap: 6px; padding: 48px 24px; color: var(--muted); text-align: center; }
.bl-empty svg { width: 32px; height: 32px; opacity: .6; }
.bl-empty b { color: var(--text); }

/* ── Card history (s55) ── */
.pd-hist ol { list-style: none; margin: 6px 0 0; padding: 0 0 0 14px; border-left: 2px solid var(--line-2); display: grid; gap: 10px; }
.pd-hist li { position: relative; display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; }
.pd-hist li::before { content: ''; position: absolute; left: -20px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.pd-hist li:last-child::before { background: var(--accent); }
.pd-hist li b { color: var(--text); font-weight: 700; }
.pd-hist li span { color: var(--muted); white-space: nowrap; }

/* Laptop: the filter row shows a slim scrollbar and can be dragged; the photo switch sits by Share. */
@media (hover: hover) and (pointer: fine) {
  .pd-chips { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; padding-bottom: 8px; cursor: grab; }
  .pd-chips::-webkit-scrollbar { display: block; height: 6px; }
  .pd-chips::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 3px; }
  .pd-chips.dragging { cursor: grabbing; user-select: none; }
}
.pd-photo-switch { display: none; }
@media (min-width: 600px) { .pd-photo-switch { display: inline-flex; } }

/* The child set up page has no menu, so it uses the whole width. */
.pd-shell.no-detail.kid-setup { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'main'; }
.pd-shell.kid-setup .pd-rail { display: none; }

/* Fold-away sections on the card page (3 Nov 2026) */
.dp-fold { border: 1px solid var(--line-2); border-radius: 12px; margin: 12px 0; background: var(--surface); }
.dp-fold > summary { cursor: pointer; padding: 12px 14px; font-weight: 800; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.dp-fold > summary::-webkit-details-marker { display: none; }
.dp-fold > summary::after { content: '+'; color: var(--accent); font-size: 18px; }
.dp-fold[open] > summary::after { content: '\2212'; }
.dp-fold-body { padding: 0 14px 14px; }

/* The More menu scrolls when it is taller than the screen (adults see more groups). */
.pd-more-sheet { align-items: end; }
.pd-more-panel { max-height: calc(100dvh - var(--tabbar) - env(safe-area-inset-bottom) - 24px); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; align-content: start; }
@supports not (height: 100dvh) { .pd-more-panel { max-height: calc(100vh - var(--tabbar) - env(safe-area-inset-bottom) - 24px); } }

/* Binder pages (14 Nov 2026): the pages snapped so far, and the little gems after adding. */
.bd-pages { display: grid; gap: 10px; margin-bottom: 12px; }
.bd-page { display: grid; grid-template-columns: 54px 1fr auto; gap: 12px; align-items: center; padding: 8px; border: 1px solid var(--line-2); border-radius: 12px; }
.bd-page b { display: block; font-size: 14px; } .bd-page .hint { display: block; margin: 2px 0 0; font-size: 12.5px; }
.bd-thumb { width: 54px; height: 54px; border-radius: 8px; overflow: hidden; background: var(--surface); }
.bd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bd-pagehead { font-size: 16px; margin: 18px 0 8px; }
.bd-gems h2 { display: flex; align-items: center; gap: 8px; } .bd-gems h2 svg { width: 20px; height: 20px; color: var(--accent-2); }
.bd-gem { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 12px; margin-bottom: 8px; text-decoration: none; color: inherit; }
.bd-gem:hover { border-color: var(--accent); }
.bd-gem .hint { grid-column: 1; margin: 0; font-size: 12.5px; }
.bd-gemv { grid-column: 1; font-size: 13px; font-weight: 700; color: var(--accent-2); }
.bd-gemgo { grid-column: 2; grid-row: 1 / span 3; align-self: center; display: inline-flex; gap: 6px; align-items: center; font-size: 13px; font-weight: 800; color: var(--accent); }
.bd-gemgo svg { width: 16px; height: 16px; }
@media (max-width: 520px) { .bd-gem { grid-template-columns: 1fr; } .bd-gemgo { grid-column: 1; grid-row: auto; } }

/* Give cards to a child (14 Nov 2026): a tick, the picture, the name. */
#kg-list li, .kid-cards#kg-list li { grid-template-columns: 22px 40px minmax(0, 1fr); cursor: pointer; }
#kg-list input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--accent); }
#kg-list { max-height: 55vh; overflow-y: auto; padding-right: 4px; }
/* A pocket cut from the page photo by position (14 Nov 2026). */
.bd-pic { position: relative; }
.bd-pic img.bd-crop { position: absolute; max-width: none; object-fit: fill; }

/* Price labels (14 Nov 2026): screen shows the picker; printing shows only the sheet. */
.lb-sheet { display: none; }
@media print {
  body * { visibility: hidden; }
  .lb-sheet, .lb-sheet * { visibility: visible; }
  .lb-sheet { display: block; position: absolute; left: 0; top: 0; background: #fff; color: #000; }
  .lb-page { display: grid; gap: 0 2.5mm; break-after: page; }
  .lb-page:last-child { break-after: auto; }
  .lb-label { box-sizing: border-box; padding: 2mm 2.5mm; display: flex; gap: 2mm; align-items: center; overflow: hidden; font-family: Inter, Arial, sans-serif; color: #000; }
  .lb-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.6mm; }
  .lb-name { font-size: 9pt; line-height: 1.1; max-height: 2.2em; overflow: hidden; }
  .lb-sub, .lb-cond { font-size: 6.5pt; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .lb-price { font-size: 13pt; margin-top: 0.5mm; }
  .lb-qr { flex: 0 0 auto; width: 18mm; height: 18mm; }
  .lb-qr svg { width: 100%; height: 100%; }
  .lb-a4-40 .lb-name { font-size: 7pt; } .lb-a4-40 .lb-price { font-size: 10pt; } .lb-a4-40 .lb-qr { width: 13mm; height: 13mm; } .lb-a4-40 .lb-cond { display: none; }
  .lb-roll-50x30 .lb-page { gap: 0; }
  .lb-roll-50x30 .lb-qr { width: 20mm; height: 20mm; }
}
#lb-list li { grid-template-columns: 22px minmax(0, 1fr); cursor: pointer; }
#lb-list input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--accent); }
#lb-list { max-height: 55vh; overflow-y: auto; }

/* Trade doors (15 Nov 2026): choose one thing at a time. Matches show only behind "Find someone". */
.tr-doors { display: grid; gap: 12px; max-width: 720px; }
.tr-door { display: grid; gap: 4px; padding: 18px; text-decoration: none; color: var(--text); border: 1px solid var(--line); }
.tr-door b { font-family: var(--font-display); font-size: 18px; }
.tr-door span { color: var(--muted); font-size: 14px; }
a.tr-door:hover { border-color: var(--accent); }
a.tr-door b::after { content: ' ›'; color: var(--accent); }
.tr-door-app { opacity: .8; }
.tr-back { font-weight: 800; color: var(--accent); text-decoration: none; }
body:not([data-door="find"]) .tm-wrap { display: none; }

/* Card page More menu (15 Nov 2026). */
.dp-more { position: relative; }
.dp-more > summary { list-style: none; cursor: pointer; }
.dp-more > summary::-webkit-details-marker { display: none; }
.dp-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 200px; display: grid; padding: 6px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 12px 30px rgba(0,0,0,.35); }
.dp-mi { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 0; border-radius: 8px; background: none; color: var(--text); font: inherit; font-weight: 700; text-align: left; text-decoration: none; cursor: pointer; }
.dp-mi:hover, .dp-mi:focus-visible { background: var(--surface-2, rgba(255,255,255,.06)); }
.dp-mi svg { width: 18px; height: 18px; }

/* Get ready to sell (15 Nov 2026). */
.sl-ready .sl-step { margin: 10px 0 4px; }
.sl-ready .sl-step.muted b { color: var(--muted); }

/* Account groups (15 Nov 2026). */
.ac-group > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; }
.ac-group > summary::-webkit-details-marker { display: none; }
.ac-group > summary h2 { margin: 0; }
.ac-group > summary::after { content: '+'; color: var(--accent); font-weight: 800; font-size: 20px; }
.ac-group[open] > summary::after { content: '−'; }
.ac-group .ac-in { border: 0; background: none; box-shadow: none; padding: 12px 0 0; margin: 0; }
.ac-group .ac-in h2 { font-size: 16px; }

/* Share my trade list (15 Nov 2026). */
.tm-share { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 6px 0 12px; }
.tm-share-v { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; color: var(--text-2); }

/* v5.50 s189.94.5 What Sunny knows about you */
.hp-know { margin: 0 12px 8px; border: 1px solid var(--line, rgba(127,127,127,.3)); border-radius: 10px; padding: 8px 10px; font-size: 13px; }
.hp-know > summary { cursor: pointer; font-weight: 700; min-height: 24px; }
.hp-know-body { margin-top: 8px; max-height: 40vh; overflow: auto; }
.hp-know-body p { margin: 0 0 8px; line-height: 1.45; }
.hp-know-body h4 { margin: 10px 0 4px; font-size: 13px; }
.hp-know-body ul { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; }
.hp-know-body li { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.hp-know-body li span { flex: 1; min-width: 0; overflow-wrap: anywhere; line-height: 1.45; }

/* Live badge (17 Nov 2026). */
.live-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #FF3B5C; margin-right: 6px; vertical-align: middle; box-shadow: 0 0 0 0 rgba(255,59,92,.6); animation: live-pulse 1.6s infinite; }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
@keyframes live-pulse { 0% { box-shadow: 0 0 0 0 rgba(255,59,92,.6); } 70% { box-shadow: 0 0 0 8px rgba(255,59,92,0); } 100% { box-shadow: 0 0 0 0 rgba(255,59,92,0); } }
.mk-art .flag.live-flag { background: #FF3B5C; border-color: #FF3B5C; color: #fff; left: auto; bottom: auto; right: 8px; top: 8px; font-weight: 800; }
.flag.live-flag .live-dot { background: #fff; width: 7px; height: 7px; animation: none; }
.live-line { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; padding: 10px 14px; border-radius: 12px; background: rgba(255,59,92,.12); border: 1px solid rgba(255,59,92,.4); margin: 10px 0; }
.live-line a { color: #FF6B82; font-weight: 800; }
.live-next { margin: 8px 0; color: var(--text-2); }
.sh-onair { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.sh-live-now { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }

/* Shop events and follow (s75) */
.ev-list { display: grid; gap: 10px; }
.ev-card { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.ev-when { font-weight: 800; color: var(--accent-bright); font-size: 14px; }
.ev-body b { font-size: 15px; }
.ev-shop, .ev-place { color: var(--text-2); font-size: 13px; margin-top: 3px; }
.ev-links { margin-top: 6px; font-size: 13px; color: var(--muted); }
.ev-links a { font-weight: 700; }
.sh-follow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.sh-events { margin-top: 22px; }
.sh-events h2 { font-size: 18px; margin: 0 0 10px; }
.badge-danger { background: rgba(255,59,92,.16); color: #FF6B82; }
@media (max-width: 560px) { .ev-card { grid-template-columns: 1fr; gap: 4px; } }
.ev-add { margin-top: 10px; }
.ev-add > summary { list-style: none; display: inline-flex; cursor: pointer; }
.ev-add > summary::-webkit-details-marker { display: none; }
.ev-form { margin-top: 10px; display: grid; gap: 4px; max-width: 560px; }
.mk-events { margin: 0 0 10px; font-size: 14px; color: var(--text-2); } .mk-events a { font-weight: 800; }
/* Sell to us (s76) */
.sh-sell { margin: 18px 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.sh-sell > summary { cursor: pointer; list-style: none; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sh-sell > summary::-webkit-details-marker { display: none; }
.sell-list { display: grid; gap: 6px; margin-bottom: 10px; }
.sell-row { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.sell-row img { width: 40px; height: 56px; object-fit: contain; border-radius: 4px; }
.sell-offer { font-size: 13px; text-align: right; color: var(--text-2); }
.by-mode { margin: 4px 0 8px; }
.badge-gold { color: #14100A; background: var(--gold, #F0C987); border-color: transparent; }
