/* HelloShelf — Turn 3 "Quiet precision". 3a light/editorial; 3b dark/luminous (follows the device).
   Layout: a top bar with a pill nav; content in one calm column; the loop screen splits into
   information (left) and the ring (right) on a raised white stage. One accent: orange. */
:root {
  --bg: #F4F4F1; --panel: #FFFFFF; --panel-2: #FAFAF8; --pill: #E9E9E4; --sheet: #FFFFFF;
  --ink: #111110; --ink-2: #5C5C57; --ink-3: #6B6B66; --mute: #B8B8B2; --on-ink: #FFFFFF;
  --line: #E3E3DE; --line-2: #ECECE7;
  --accent: #E8590C; --accent-ink: #B44508; --accent-soft: rgba(232, 89, 12, .14);
  --ok: #2F7A4E; --warn: #A35A00; --bad: #C8321E;
  --lift: 0 0 0 1px rgba(0, 0, 0, .04), 0 24px 48px -28px rgba(0, 0, 0, .18);
  --tile-shadow: 0 16px 30px -14px rgba(0, 0, 0, .45);
  --glow: none;
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --brand: 'Bricolage Grotesque', 'Geist', sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A0A0B; --panel: #121214; --panel-2: #17171A; --pill: rgba(255, 255, 255, .06); --sheet: #141416;
    --ink: #F2F2F0; --ink-2: #C9C9C5; --ink-3: #9A9A96; --mute: #55555A; --on-ink: #0A0A0B;
    --line: rgba(255, 255, 255, .13); --line-2: rgba(255, 255, 255, .07);
    --accent: #FF6A1F; --accent-ink: #FF8A4C; --accent-soft: rgba(255, 106, 31, .2);
    --ok: #5BD18B; --warn: #F0B45A; --bad: #FF7A6E;
    --lift: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 80px -40px rgba(0, 0, 0, .8);
    --tile-shadow: 0 20px 50px -14px rgba(0, 0, 0, .9);
    --glow: radial-gradient(circle at 50% 55%, rgba(255, 106, 31, .10), rgba(255, 106, 31, 0) 60%);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.45 var(--sans); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--accent-ink); }
.i { width: 18px; height: 18px; flex: none; }
.sr { 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; }
.mute { color: var(--ink-3); }
.mono, .mono-h { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.mono-h { font-size: 12px; letter-spacing: .06em; color: var(--ink-3); text-transform: uppercase; }
.eyebrow { font: 600 12px/1.3 var(--sans); color: var(--ink-3); letter-spacing: .01em; }
.eyebrow.ok { color: var(--ok); } .eyebrow.warn { color: var(--warn); } .eyebrow.bad { color: var(--bad); }
.display, .sheet-title { font: 600 26px/1.05 var(--sans); letter-spacing: -.035em; margin: 0; }
.row { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.fade { animation: fade .35s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.enter { animation: fade .45s var(--ease); }
.flash { animation: flash 1.4s var(--ease); }
@keyframes flash { 0%, 40% { box-shadow: 0 0 0 3px var(--accent); } 100% { box-shadow: 0 0 0 3px transparent; } }

/* ---------- shell ---------- */
.shell { min-height: 100vh; background: var(--glow) no-repeat fixed; }
.top { position: sticky; top: 0; z-index: 20; height: 76px; padding: 0 40px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(20px); }
.brand { display: flex; align-items: center; gap: 10px; border: 0; background: none; padding: 0; justify-self: start; font: 700 21px var(--brand); letter-spacing: -.04em; color: var(--ink); }
.logo { width: 26px; height: 26px; }
.logo .l1 { fill: var(--ink); }
.logo .l2 { fill: var(--accent); stroke: var(--bg); stroke-width: 4; }
.pills { display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--pill); box-shadow: inset 0 0 0 1px var(--line-2); }
.pills button { position: relative; display: flex; align-items: center; gap: 7px; padding: 8px 16px; border: 0; border-radius: 999px; background: none; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.pills button:hover { color: var(--ink); }
.pills button.on { background: var(--panel); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 0 0 .5px rgba(0, 0, 0, .06); }
.pills .dot, .tabbar .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.top-r { display: flex; align-items: center; gap: 10px; justify-self: end; }
.me-btn { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--ink); color: var(--on-ink); font-weight: 600; font-size: 14px; }
.bell { position: relative; width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--panel); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.bell .i { width: 17px; height: 17px; }
.bell.has { box-shadow: inset 0 0 0 1.5px var(--accent); }
.bell .n { position: absolute; top: -5px; right: -6px; box-sizing: border-box; min-width: 18px; height: 18px; padding: 0 4px; display: grid; place-items: center; border-radius: 999px;
  background: var(--accent); color: #fff; font: 600 10.5px/1 var(--mono); font-variant-numeric: tabular-nums; box-shadow: 0 0 0 2px var(--bg); }
.main { max-width: 760px; margin: 0 auto; padding: 28px 24px 140px; }
.main.wide { max-width: 1360px; padding-inline: 40px; }
.tabbar { display: none; }
@media (max-width: 760px) {
  .top { grid-template-columns: 1fr auto; padding: 0 16px; height: 64px; }
  .top .pills { display: none; }
  .main, .main.wide { padding: 12px 16px calc(110px + env(safe-area-inset-bottom, 0px)); }
  .tabbar { display: flex; position: fixed; z-index: 30; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); padding: 4px; gap: 2px;
    border-radius: 999px; background: color-mix(in srgb, var(--panel) 90%, transparent); backdrop-filter: blur(20px); box-shadow: var(--lift), inset 0 0 0 1px var(--line-2); }
  .tabbar button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 5px; padding: 11px 4px; border: 0; border-radius: 999px; background: none; font-size: 13px; font-weight: 500; color: var(--ink-2); }
  .tabbar button.on { background: var(--ink); color: var(--on-ink); }
}

/* ---------- page headers ---------- */
.lt { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 8px 0 18px; }
.lt h1 { margin: 0; font-size: 44px; font-weight: 600; letter-spacing: -.045em; line-height: 1; }
.run-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); font: 12.5px var(--mono); color: var(--ink-2); }
.run-chip .i { width: 14px; height: 14px; }
.lede { margin: -4px 0 8px; max-width: 62ch; color: var(--ink-2); font-size: 15px; }
.section { display: flex; align-items: baseline; justify-content: space-between; margin: 30px 2px 10px; }
.empty-card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 24px; border-radius: 20px; background: var(--panel); box-shadow: var(--lift); }
.empty-card span { color: var(--ink-2); max-width: 52ch; margin-bottom: 8px; }
.empty-row { padding: 18px; color: var(--ink-3); font-size: 14px; }

/* ---------- buttons ---------- */
.pill-btn, .btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border: 0; border-radius: 999px;
  background: var(--panel); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; font-weight: 500; white-space: nowrap; text-decoration: none; }
.pill-btn:hover, .btn:hover { box-shadow: inset 0 0 0 1px var(--ink-3); }
.pill-btn.main, .btn.ink { background: var(--ink); color: var(--on-ink); box-shadow: none; font-weight: 600; }
.pill-btn.ghost { background: transparent; color: var(--ink-2); }
.pill-btn.sm, .btn.sm { height: 32px; padding: 0 14px; font-size: 13px; }
.btn.lg { height: 56px; padding: 0 26px; font-size: 16px; }
.btn.full { width: 100%; }
.pill-btn:disabled, .btn:disabled { opacity: .45; cursor: default; }
.hold { overflow: hidden; }
.hold .fill { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--accent); }
.hold.holding .fill { width: 100%; transition: width .9s linear; }
.hold > span, .hold > kbd { position: relative; }
.hold .token { display: none; }
kbd { font: 11px var(--mono); padding: 3px 7px; border-radius: 6px; background: rgba(255, 255, 255, .14); }
.link { border: 0; background: none; padding: 0; color: var(--ink); font-size: 14px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.link:hover { color: var(--accent-ink); }
.link.bad { color: var(--bad); } .link.mute { color: var(--ink-3); }
.x { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--ink-3); }
.x:hover { background: var(--pill); color: var(--ink); }
.back { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; padding: 6px 0; margin-bottom: 8px; color: var(--ink-2); font-size: 15px; font-weight: 500; }
.back .i { width: 16px; height: 16px; }
.seg, .seg-p { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--pill); }
.seg.full { display: flex; }
.seg button, .seg-p button { flex: 1; border: 0; border-radius: 999px; background: none; padding: 6px 13px; font-size: 13px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.seg button.on, .seg-p button.on { background: var(--panel); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .1); }
.seg button:disabled, .seg-p button:disabled { opacity: .35; cursor: default; }
.toggle { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px 0 9px; border: 0; border-radius: 999px; background: var(--pill); color: var(--ink-3); font-size: 13px; font-weight: 500; }
.toggle::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mute); }
.toggle.on { color: var(--ink); } .toggle.on::before { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border: 0; border-radius: 999px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; font-weight: 500; color: var(--ink-2); }
.chip.on { background: var(--ink); color: var(--on-ink); box-shadow: none; }
.chip .art { width: 20px; border-radius: 5px; box-shadow: none; }
.stepper { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; background: var(--pill); }
.stepper button { width: 28px; height: 28px; border: 0; border-radius: 50%; background: var(--panel); font-size: 16px; line-height: 1; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.stepper b { min-width: 52px; text-align: center; font: 500 13px var(--mono); font-variant-numeric: tabular-nums; }
.field { width: 100%; height: 44px; padding: 0 14px; border: 0; border-radius: 12px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.field:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--accent); }
.stamp { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; background: var(--pill); font: 500 11px var(--mono); letter-spacing: .03em; color: var(--ink-2); text-transform: uppercase; white-space: nowrap; }
.stamp.ok { color: var(--ok); } .stamp.warn { color: var(--warn); } .stamp.bad { color: var(--bad); }
.stamp .i { width: 12px; height: 12px; }
.callout { display: flex; align-items: center; gap: 10px; padding: 12px 14px; margin: 10px 0; border-radius: 14px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; }
.callout.bad { box-shadow: inset 0 0 0 1px var(--bad); color: var(--bad); }
.callout .txt { flex: 1; }
.notice { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--accent-ink); }
.notice .i { width: 16px; height: 16px; }

/* ---------- tiles, discs ---------- */
.tile-g { position: relative; display: block; flex: none; aspect-ratio: 1; border-radius: 26%; overflow: hidden; background: var(--pill); box-shadow: var(--tile-shadow); }
.tile-g img { width: 100%; height: 100%; object-fit: cover; }
.tile-g .alt { position: absolute; inset: 8%; display: grid; place-items: center; text-align: center; font-size: 11px; font-weight: 600; color: var(--ink-2); }
.tile-g img + .alt { display: none; }
.tile-g.ghost { display: grid; place-items: center; background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink-3); }
.art { position: relative; flex: none; aspect-ratio: 1; border-radius: 26%; overflow: hidden; background: var(--pill); }
.art img { width: 100%; height: 100%; object-fit: cover; }
.art .alt { position: absolute; inset: 6px; font-size: 10px; color: var(--ink-3); }
.art img + .alt { display: none; }
.disc { position: relative; width: var(--sz, 28px); height: var(--sz, 28px); flex: none; border-radius: 50%; display: inline-grid; place-items: center; overflow: hidden;
  background: color-mix(in srgb, var(--c) 22%, var(--panel)); color: var(--ink); font-weight: 600; font-size: calc(var(--sz, 28px) * .42); box-shadow: inset 0 0 0 1px var(--line); }
.disc img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- the ring ---------- */
.ring { position: relative; width: 100%; max-width: 720px; aspect-ratio: 1; margin: 0 auto; container-type: inline-size; }
.ring svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.r-track { fill: none; stroke: var(--line); stroke-width: .25; }
.r-inner { fill: none; stroke: var(--line-2); stroke-width: .15; }
.r-dot { fill: var(--accent); stroke: var(--accent-soft); stroke-width: 1.2; }
.r-node, .r-who, .r-game, .r-center { position: absolute; transform: translate(-50%, -50%); }
.r-node { width: 8cqw; height: 8cqw; border-radius: 50%; display: grid; place-items: center; background: var(--panel); color: var(--ink-3);
  box-shadow: 0 0 0 1px var(--line), 0 6px 16px -6px rgba(0, 0, 0, .2); font-weight: 600; font-size: 2.5cqw; }
.r-node.signed { color: var(--ink); box-shadow: 0 0 0 1.5px var(--accent), 0 6px 16px -6px rgba(0, 0, 0, .2), 0 0 24px -2px var(--accent-soft); }
.r-node.self { width: 8.6cqw; height: 8.6cqw; background: var(--ink); color: var(--on-ink); box-shadow: 0 0 0 4px var(--panel), 0 8px 18px -6px rgba(0, 0, 0, .35); }
.r-who { display: flex; flex-direction: column; align-items: center; font-size: 13px; line-height: 1.25; white-space: nowrap; }
.r-who small { font-size: 13px; color: var(--ink-3); }
.r-who.signed small { color: var(--accent-ink); }
.r-game { display: flex; flex-direction: column; align-items: center; gap: 1.2cqw; z-index: 1; }
.r-game .tile-g { width: 13cqw; }
.r-game.multi { flex-direction: column; }
.r-game.multi .tile-g + .tile-g { margin-top: -10cqw; margin-left: 5cqw; }
.r-game.in .tile-g { box-shadow: 0 0 0 3px var(--panel), 0 0 0 4.5px var(--accent), var(--tile-shadow); }
.r-label { font-size: 13px; font-weight: 500; white-space: nowrap; }
.r-game.in .r-label { font-weight: 600; }
.r-center { left: 50%; top: 50%; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.r-center .big { font-size: 10.5cqw; font-weight: 300; line-height: 1; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.r-center .big i { font-style: normal; color: var(--mute); }
.r-center .cap { font-size: 13px; color: var(--ink-3); }
.r-center .cap b { font-family: var(--mono); font-weight: 400; color: var(--ink); }
.ring.small { max-width: none; }
.ring.small .r-node { width: 20cqw; height: 20cqw; font-size: 0; box-shadow: 0 0 0 1px var(--line); }
.ring.small .r-node.self { width: 22cqw; height: 22cqw; box-shadow: 0 0 0 2px var(--panel); }
.ring.small .r-node.signed { box-shadow: 0 0 0 1.5px var(--accent); }
.ring.small .r-game .tile-g { width: 28cqw; border-radius: 24%; box-shadow: 0 4px 8px -4px rgba(0, 0, 0, .4); }
.ring.small .r-game.multi .tile-g + .tile-g { margin-top: -20cqw; margin-left: 10cqw; }
.ring.small .r-track { stroke-width: .8; }
@media (prefers-reduced-motion: reduce) { .r-dot { display: none; } .hold.holding .fill { transition: none; width: 100%; } }

/* ---------- trades list ---------- */
.lrows { display: flex; flex-direction: column; border-radius: 20px; background: var(--panel); box-shadow: var(--lift); overflow: hidden; }
.lrow { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 14px 18px; border: 0; border-top: 1px solid var(--line-2); background: none; text-align: left; color: inherit; }
.lrow:first-child { border-top: 0; }
.lrow:hover { background: var(--panel-2); }
.lr-ring { width: 64px; }
.lr-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.lr-txt .mono-h { font-size: 11px; }
.lr-txt b { font-size: 17px; font-weight: 600; letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lr-txt small { font-size: 13px; color: var(--ink-3); }
.lrow.pending .lr-txt small { color: var(--accent-ink); }
.lr-r { display: flex; align-items: center; gap: 12px; color: var(--ink-3); }
.lr-count { font-size: 20px; font-weight: 300; letter-spacing: -.04em; color: var(--ink); font-variant-numeric: tabular-nums; }
.lr-count i { font-style: normal; color: var(--mute); }
.lr-time { font: 12.5px var(--mono); padding: 4px 9px; border-radius: 999px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); }
.lrow.completed, .lrow.cancelled, .lrow.expired, .lrow.invalid, .lrow.failed, .lrow.closed { opacity: .72; }
@media (max-width: 520px) { .lrow { grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; padding: 12px 14px; } .lr-ring { width: 52px; } .lr-time { display: none; } }

/* ---------- the loop screen ---------- */
.loop-view { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 56px; align-items: start; }
.lv-info { display: flex; flex-direction: column; gap: 32px; padding-top: 28px; }
.lv-info > .mono-h { margin-bottom: -16px; }
.headline { margin: 0; font-size: clamp(36px, 4.2vw, 58px); font-weight: 600; line-height: .98; letter-spacing: -.045em; text-wrap: balance; }
.gg { display: flex; flex-direction: column; }
.gg-row { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.gg-row:last-child { border-bottom: 1px solid var(--line); }
.gg-row .tile-g { width: 44px; border-radius: 11px; box-shadow: none; }
.gg-t { flex: 1; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.gg-t small { font-size: 13px; color: var(--ink-3); }
.gg-t b { font-size: 17px; font-weight: 600; }
.gg-row .mono { font-size: 13px; color: var(--ink-3); }
.why { display: flex; flex-direction: column; gap: 14px; }
.why-h { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.why-i { display: flex; gap: 12px; font-size: 15px; line-height: 1.4; }
.why-i .ck { flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; background: var(--ink); color: var(--on-ink); display: grid; place-items: center; }
.why-i .ck .i { width: 11px; height: 11px; stroke-width: 3; }
.det { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font: 13px var(--mono); color: var(--ink-3); }
.lv-stage { position: relative; display: flex; flex-direction: column; gap: 24px; padding: 40px 40px 36px; border-radius: 32px; background: var(--panel); box-shadow: var(--lift); }
.lv-stage.flat { padding: 28px; }
.lv-acts { display: flex; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap; }
.lv-acts .pill-btn { height: 60px; padding: 0 26px; font-size: 16px; }
.lv-acts .hold { width: 340px; max-width: 100%; }
.signed-note { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--accent-ink); }
.done-card { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 24px; }
.done-card .ring { width: 160px; }
@media (max-width: 980px) {
  .loop-view { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .lv-info { padding-top: 4px; gap: 22px; }
  .lv-info > .mono-h { margin-bottom: -10px; }
  .lv-stage { padding: 20px 16px 22px; border-radius: 28px; }
  .lv-acts .pill-btn { flex: 1; }
  .lv-acts .hold { flex-basis: 100%; }
}

/* meetups on a pending local trade */
.meet-sum { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-radius: 16px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.who-row { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink-2); }
.who-picked { display: inline-flex; align-items: flex-start; gap: 8px; }
.who-picked b { color: var(--ink); }

/* ---------- shelf ---------- */
.kvs { display: flex; flex-direction: column; border-radius: 18px; background: var(--panel); box-shadow: var(--lift); overflow: hidden; }
.kv { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line-2); }
.kv:first-child { border-top: 0; }
.kv .k { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.kv .v { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rest { margin-top: 22px; }
.rest summary { cursor: pointer; list-style: none; padding: 6px 2px; }
.rest summary::before { content: "+ "; color: var(--ink-3); }
.rest[open] summary::before { content: "– "; }
.rest .list { margin-top: 8px; }


/* ---------- real-scale boxes ---------- */
/* A real 3D box (CSS 3D): --a/--b are the lid's long/short sides, --d the depth, --k one inch.
   The outer span is the box's on-screen footprint for layout; the inner one holds the faces and turns. */
.bx { --fw: var(--a); --fh: var(--b); --W: calc(var(--fw) * var(--k)); --H: calc(var(--fh) * var(--k)); --D: calc(var(--d) * var(--k));
  position: relative; display: inline-block; flex: none; vertical-align: bottom; perspective: calc(var(--k) * 70);
  width: calc(var(--W) * .92 + var(--D) * .42); height: calc(var(--H) * .97 + var(--W) * .1 + var(--D) * .24); }
.bx.tall { --fw: var(--b); --fh: var(--a); }
.bx::before { content: ""; position: absolute; left: 4%; right: -4%; bottom: -5%; height: calc(var(--D) * .7 + 6%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0,0,0,.55), rgba(0,0,0,.25) 55%, transparent); }
.bx3 { position: absolute; left: 50%; top: 50%; width: var(--W); height: var(--H); margin: calc(var(--H) * -.5) 0 0 calc(var(--W) * -.5);
  transform-style: preserve-3d; transform: rotateX(-13deg) rotateY(-24deg); }
.bx .f { position: absolute; left: 0; top: 0; box-sizing: border-box; backface-visibility: hidden; }
.bx .front { width: var(--W); height: var(--H); transform: translateZ(calc(var(--D) * .5)); overflow: hidden; border-radius: 1.5px; background: var(--card-2);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.22); }
.bx .front::after { content: ""; position: absolute; inset: 0; background: linear-gradient(125deg, rgba(255,255,255,.14), transparent 38%, transparent 70%, rgba(0,0,0,.16)); }
.bx .front img { width: 100%; height: 100%; object-fit: cover; }
.bx .front .alt { position: absolute; inset: 6%; display: grid; place-items: center; text-align: center; font: 400 11px/1.15 var(--font-d); color: var(--ink-2); }
.bx .front img + .alt { display: none; }
/* Edges: the outermost sliver of the cover, stretched across the face, then shaded for the light. */
.bx .side { left: calc((var(--W) - var(--D)) * .5); width: var(--D); height: var(--H); transform: rotateY(90deg) translateZ(calc(var(--W) * .5));
  background: linear-gradient(90deg, rgba(0,0,0,.30), rgba(0,0,0,.46)), var(--art, none) right center / 2400% 100% no-repeat, var(--ink-3); }
.bx .top { top: calc((var(--H) - var(--D)) * .5); width: var(--W); height: var(--D); transform: rotateX(90deg) translateZ(calc(var(--H) * .5));
  background: linear-gradient(rgba(255,255,255,.10), rgba(255,255,255,.18)), var(--art, none) center top / 100% 2400% no-repeat, var(--line); }
.bx.guess .front { outline: 1.5px dashed var(--mute); outline-offset: 2px; }
.bxs { display: inline-flex; align-items: flex-end; }
.bxs .bx + .bx { margin-left: calc(var(--k) * 1.2); }

/* ---------- the trade loop ---------- */
.loop { position: relative; width: 100%; aspect-ratio: var(--ar); container-type: inline-size; margin: 2px 0 4px; }
.loop svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.loop .arc { fill: none; stroke: var(--ink-3); stroke-width: .35; stroke-dasharray: .9 .9; opacity: .8; }
.loop .arc.mine { stroke: var(--ink); stroke-width: .5; stroke-dasharray: none; opacity: 1; }
.loop .ah { fill: var(--ink-3); } .loop .ah.on { fill: var(--ink); }
.loop .tok { stroke: var(--card); stroke-width: .3; }
.loop .node, .loop .cargo { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 5px; }
.loop .node .disc { box-shadow: 0 0 0 3px var(--card), inset 0 -2px 0 rgba(0,0,0,.2); }
.loop .node.me .disc { box-shadow: 0 0 0 2.5px var(--card), 0 0 0 4.5px var(--ink); }
.loop .node .nm { font: 600 13px var(--font); }
.loop .node.me .nm { font-weight: 800; }
.loop .cargo { z-index: 1; }
.loop .cargo .lbl { display: flex; flex-direction: column; align-items: center; text-align: center; width: max-content; max-width: 30cqw; }
.loop .cargo .lbl b { font: 400 clamp(12px, 2.5cqw, 16px)/1.15 var(--font-d); text-wrap: balance; }
.loop .cargo.dim { opacity: .62; }
@media (prefers-reduced-motion: reduce) { .loop .tok { display: none; } }
.sides .side .t { font-size: 17px; }

/* ---------- the trade shelf: a Kallax ---------- */
/* Equal square cubes in a frame of equal-thickness panels, in IKEA's white (light) or black-brown (dark).
   Each cube shows its inside the way the boxes are seen: from slightly above and to the right, so the
   floor and the left wall show in perspective and the shelf above shades the back panel. */
.kallax { --kx: #FFFFFF; --kx-line: #E3E3DE; --kx-back: #ECECE8; --kx-floor: #F6F6F3; --kx-wall: #DDDDD8; --kx-t: 14px;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--kx-t); padding: var(--kx-t); margin-top: 22px;
  background: var(--kx); border-radius: 6px; box-shadow: var(--lift), 0 1px 0 var(--line); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .kallax { --kx: #1C1C1F; --kx-line: rgba(255,255,255,.06); --kx-back: #0E0E10; --kx-floor: #18181B; --kx-wall: #0A0A0B; } }
@media (max-width: 560px) { .kallax { grid-template-columns: repeat(2, minmax(0, 1fr)); --kx-t: 10px; } }
.cube { position: relative; aspect-ratio: 1; min-width: 0; padding: 0; border: 0; overflow: hidden; color: inherit;
  background: linear-gradient(rgba(0,0,0,.16), transparent 38%), var(--kx-back); box-shadow: inset 0 0 0 1px var(--kx-line); }
.cube::before, .cube::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.cube::before { background: var(--kx-floor); clip-path: polygon(0 100%, 100% 100%, 100% 88%, 9% 88%); }
.cube::after { background: linear-gradient(90deg, var(--kx-wall), color-mix(in srgb, var(--kx-wall) 70%, var(--kx-back))); clip-path: polygon(0 0, 9% 0, 9% 88%, 0 100%); }
.cube-in { position: absolute; inset: 0; z-index: 1; container-type: inline-size; display: flex; align-items: flex-end; justify-content: center; padding: 0 3% 5% 11%; }
.cube .bx { transition: transform .25s var(--ease); }
.cube:not(.empty):hover .bx, .cube:focus-visible .bx { transform: translateY(-4%); }
.cube:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
/* A used-game-store price sticker on the lid: always paper, so its colours are fixed. */
/* Price stickers on the lid: the points, in the one accent. Paper-white for anything that needs attention. */
.sticker { position: absolute; right: 6%; bottom: 7%; z-index: 2; padding: 2px 6px; border-radius: 999px; background: var(--accent); color: #fff;
  font: 600 9.5px/1.4 var(--mono); letter-spacing: .02em; white-space: nowrap; box-shadow: 0 1px 3px rgba(0,0,0,.35); }
.sticker.held { background: #111110; } .sticker.warn, .sticker.bad { background: #fff; color: #B42318; }
.cube.add .cube-in { align-items: center; padding: 0 0 0 9%; }
.cube.add .ghost { width: 62%; aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  border: 1.5px dashed var(--mute); border-radius: 14px; color: var(--ink-2); }
.cube.add .ghost small { font: 600 11px var(--font); }
.cube.add:hover .ghost { border-color: var(--ink); color: var(--ink); }

/* ---------- lists ---------- */
.lrules { display: flex; flex-direction: column; border-radius: 20px; background: var(--panel); box-shadow: var(--lift); overflow: hidden; }
.lrule { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto minmax(0, 190px) auto; align-items: center; gap: 14px; padding: 12px 16px; border-top: 1px solid var(--line-2); }
.lrule:first-child { border-top: 0; }
.lrule .tile-g { width: 40px; border-radius: 10px; box-shadow: none; }
.lrule.want { grid-template-columns: 40px minmax(0, 1fr) auto auto; }
.lr-name { display: flex; flex-direction: column; min-width: 0; }
.lr-name b { font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lr-name small { font-size: 12.5px; color: var(--ink-3); }
.lr-detail { font-size: 13px; }
.rank { font: 500 13px var(--mono); color: var(--ink-3); text-align: right; }
@media (max-width: 700px) {
  .lrule { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .lrule .seg-p { grid-column: 1 / -1; justify-self: start; }
  .lrule .lr-detail { grid-column: 1 / 3; }
  .lrule.want { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .lrule.want .stepper { grid-column: 2; justify-self: start; }
}
.rules { display: flex; flex-direction: column; border-radius: 20px; background: var(--panel); box-shadow: var(--lift); }
.rule { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px; border-top: 1px solid var(--line-2); flex-wrap: wrap; }
.rule:first-child { border-top: 0; }
.rule > div:first-child { display: flex; flex-direction: column; }
.rule small { font-size: 13px; color: var(--ink-3); }
.runs { display: flex; flex-direction: column; border-radius: 20px; background: var(--panel); box-shadow: var(--lift); overflow: hidden; }
.run { display: grid; grid-template-columns: 90px 130px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line-2); font-size: 13.5px; }
.run:first-child { border-top: 0; }
@media (max-width: 700px) { .run { grid-template-columns: 1fr auto; } .run .mono.mute { display: none; } }

/* ---------- lists of things (browse, collection, players) ---------- */
.search { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 18px; border-radius: 999px; background: var(--panel); box-shadow: var(--lift); color: var(--ink-3); }
.search input { flex: 1; border: 0; background: none; outline: none; font-size: 16px; color: var(--ink); }
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.filters .chip.on { background: var(--ink); color: var(--on-ink); }
.list { display: flex; flex-direction: column; border-radius: 20px; background: var(--panel); box-shadow: var(--lift); overflow: hidden; }
.item { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border: 0; border-top: 1px solid var(--line-2); background: none; text-align: left; color: inherit; width: 100%; }
.item:first-child { border-top: 0; }
button.item:hover, .item-main:hover { background: var(--panel-2); }
.item-main { flex: 1; display: flex; align-items: center; gap: 14px; min-width: 0; border: 0; background: none; padding: 0; text-align: left; color: inherit; border-radius: 10px; }
.item .art { width: 44px; border-radius: 11px; }
.txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.txt .t { font-size: 15px; font-weight: 600; }
.txt .t small { margin-left: 6px; font: 12px var(--mono); color: var(--ink-3); }
.txt .s { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-3); }
.txt .s .disc { --sz: 18px; }
.picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 14px 10px; }
.tile { display: flex; flex-direction: column; gap: 6px; border: 0; background: none; padding: 0; text-align: left; color: inherit; }
.tile .art { width: 100%; box-shadow: var(--tile-shadow); }
.tile .t { font-size: 13px; font-weight: 500; }

/* ---------- record ---------- */
.me { display: flex; align-items: center; gap: 16px; margin: 8px 0 18px; }
.me h1 { margin: 0; font-size: 40px; font-weight: 600; letter-spacing: -.045em; line-height: 1; }
.me p { margin: 4px 0 0; font: 12.5px var(--mono); color: var(--ink-3); letter-spacing: .02em; }
.card { border-radius: 24px; background: var(--panel); box-shadow: var(--lift); margin-bottom: 18px; }
.card-in { display: flex; flex-direction: column; gap: 16px; padding: 22px; }
.card.quiet { box-shadow: inset 0 0 0 1px var(--line); background: var(--panel); }
.cut { border: 0; border-top: 1px solid var(--line-2); margin: 2px 0; width: 100%; }
.limits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.limits > div { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 14px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.limits b { font-size: 26px; font-weight: 300; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.reqs { display: flex; flex-direction: column; gap: 10px; }
.req { display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 10px; }
.req-mark { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line); display: grid; place-items: center; }
.req-mark.ok { background: var(--ink); color: var(--on-ink); box-shadow: none; }
.req-mark .i { width: 11px; height: 11px; stroke-width: 3; }
.req-r { display: flex; align-items: center; gap: 10px; font: 13px var(--mono); }
.req-r .mute { font-size: 12px; }
.pips { display: flex; gap: 3px; }
.pips i { width: 9px; height: 9px; border-radius: 3px; box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.pips i.f { background: var(--accent); box-shadow: none; }
.board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 18px; }
.board > div { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 18px; background: var(--panel); box-shadow: var(--lift); }
.board .wide { grid-column: 1 / -1; }
.board .v { display: flex; align-items: baseline; gap: 8px; font-size: 32px; font-weight: 300; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.board .v small { font: 12px var(--mono); letter-spacing: 0; color: var(--ink-3); }
.score { display: flex; align-items: center; gap: 10px; }
.cells-row, .score .cells { display: flex; gap: 3px; flex: 1; }
.score .cell { flex: 1; height: 8px; border-radius: 4px; background: var(--pill); }
.score .cell.f { background: var(--accent); }
.cubes { display: flex; flex-wrap: wrap; gap: 4px; }
.cubes i { width: 14px; height: 14px; border-radius: 4px; background: var(--ink); }
.cubes .ab { background: none; box-shadow: inset 0 0 0 1.5px var(--bad); }
.log { display: flex; flex-direction: column; border-radius: 18px; background: var(--panel); box-shadow: var(--lift); overflow: hidden; }
.log > div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--line-2); font-size: 14px; }
.log > div:first-child { border-top: 0; }
.log time { font: 12px var(--mono); color: var(--ink-3); }
.people { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.person { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; padding: 0; color: inherit; font-size: 14px; }
.person .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.person .dot.open { background: none; box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.person .stamp { font-size: 10px; padding: 2px 7px; }

/* ---------- sheets ---------- */
.backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(10, 10, 11, .32); backdrop-filter: blur(3px); }
.sheet { position: fixed; z-index: 41; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(600px, calc(100vw - 32px)); max-height: min(88vh, 900px);
  display: flex; flex-direction: column; border-radius: 28px; background: var(--sheet); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .5), inset 0 0 0 1px var(--line-2); overflow: hidden; }
.anim.backdrop { animation: fade .25s var(--ease); }
.anim.sheet { animation: pop .3s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translate(-50%, -48%) scale(.98); } to { opacity: 1; transform: translate(-50%, -50%); } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 0 24px; }
.sheet-body { display: flex; flex-direction: column; gap: 16px; padding: 10px 24px 28px; overflow-y: auto; }
@media (max-width: 760px) {
  .sheet { top: auto; bottom: 0; left: 0; transform: none; width: 100%; max-height: 92vh; border-radius: 28px 28px 0 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
  .anim.sheet { animation: up .35s var(--ease); }
}
@keyframes up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.law { display: flex; flex-direction: column; gap: 12px; }
.law h3 { margin: 0; display: flex; align-items: baseline; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.law h3 b { font: 500 12px var(--mono); color: var(--mute); }
.law p { margin: 0; font-size: 14px; color: var(--ink-2); }
.hero { display: flex; align-items: center; gap: 18px; }
.hero .art { width: 92px; border-radius: 24px; box-shadow: var(--tile-shadow); }
.hero h2 { margin: 0; font-size: 28px; font-weight: 600; letter-spacing: -.04em; line-height: 1.05; }
.hero p { margin: 6px 0 0; font: 12.5px var(--mono); color: var(--ink-3); }
.steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--ink-2); }
.code-row { display: flex; align-items: center; gap: 12px; }
.code { font: 600 26px var(--mono); letter-spacing: .08em; }
.demo-box { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); }
.addr-row { display: grid; grid-template-columns: 1fr 70px 100px; gap: 10px; }
.addr-row > div { display: flex; flex-direction: column; gap: 6px; }
.form-err { margin: 0; color: var(--bad); font-size: 14px; }
.rate fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rate .chip:has(input:checked) { background: var(--ink); color: var(--on-ink); box-shadow: none; }

/* demo */
.players { display: flex; gap: 14px; flex-wrap: wrap; }
.player { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; border: 0; background: none; padding: 0; font-size: 12px; color: var(--ink-3); }
.player .disc { --sz: 40px; }
.player.on { color: var(--ink); font-weight: 600; }
.player.on .disc { box-shadow: 0 0 0 2px var(--sheet), 0 0 0 3.5px var(--ink); }
.player .ping { position: absolute; top: 0; right: 2px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--sheet); }
.clock { display: flex; align-items: center; gap: 8px; font: 13px var(--mono); }
.demo-row { display: flex; align-items: center; justify-content: space-between; font-size: 14px; }
.demo-links { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line-2); }

/* notifications */
.notes { display: flex; flex-direction: column; border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line-2); overflow: hidden; }
.note { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 0; border-top: 1px solid var(--line-2); background: none; text-align: left; color: inherit; }
.note:first-child { border-top: 0; }
.note:hover { background: var(--panel-2); }
.note-ic { flex: none; width: 30px; display: grid; place-items: center; color: var(--ink-3); }
.note .t { font-size: 14px; color: var(--ink-2); }
.note.unread .t { color: var(--ink); font-weight: 600; }
.note .s { font: 11.5px var(--mono); color: var(--ink-3); }
.note.act.unread { box-shadow: inset 3px 0 0 var(--accent); }
.unread-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.alerts-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); }
.alerts-row > span { flex: 1; } .alerts-row span { display: flex; flex-direction: column; font-size: 14px; }
.alerts-row small { color: var(--ink-3); font-size: 12px; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 32px; z-index: 60; transform: translate(-50%, 16px); opacity: 0; pointer-events: none; display: flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: 999px; background: var(--ink); color: var(--on-ink); font-size: 14px; font-weight: 500; box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .45);
  transition: opacity .25s var(--ease), transform .3s var(--ease); max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast .i { width: 16px; height: 16px; color: var(--accent); }
@media (max-width: 760px) { .toast { bottom: calc(92px + env(safe-area-inset-bottom, 0px)); } }

/* ---------- meetups: setup sheet and picker ---------- */
.pick-block { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 18px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.pick-block.err { box-shadow: inset 0 0 0 1.5px var(--bad); }
.map { height: 240px; border-radius: 14px; overflow: hidden; background: var(--pill); }
.venues { display: flex; flex-direction: column; gap: 6px; } /* flows with the step; no scroll inside a scroll */
.venue { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 0; border-radius: 12px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line-2); text-align: left; color: inherit; cursor: pointer; }
.venue b { display: block; font-size: 14px; }
.venue small { display: block; font-size: 12px; color: var(--ink-3); }
.venue input { accent-color: var(--accent); }
.venue .box { width: 20px; height: 20px; flex: none; display: grid; place-items: center; border-radius: 6px; box-shadow: inset 0 0 0 1.5px var(--line); color: transparent; }
.venue.on { box-shadow: inset 0 0 0 1.5px var(--ink); }
.venue.on .box { background: var(--ink); color: var(--on-ink); box-shadow: none; }
.venue .box .i { width: 13px; height: 13px; stroke-width: 3; }
.dots { display: inline-flex; gap: 2px; margin-left: auto; }
.dots .disc { --sz: 18px; }
.day { display: flex; flex-direction: column; gap: 6px; }
.chip.time .dots { margin-left: 4px; }
.pick-foot { position: sticky; bottom: -28px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0 6px; background: var(--sheet); border-top: 1px solid var(--line-2); }
.pick-foot #pick-sum { font-size: 13px; color: var(--ink-3); }
.their-picks { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 18px; background: var(--panel); box-shadow: inset 0 0 0 1.5px var(--accent); }
.their-picks > .row { min-height: 36px; }
.tp-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tp-chip { font-size: 13px; line-height: 1.3; padding: 6px 10px; border-radius: 10px; background: var(--pill); }
.avail { display: grid; grid-template-columns: 34px repeat(7, minmax(0, 1fr)); gap: 3px; user-select: none; touch-action: none; }
.avail .eyebrow { font-size: 10.5px; text-align: center; align-self: center; }
.slot { height: 28px; border: 0; border-radius: 6px; background: var(--pill); }
.slot.on { background: var(--accent); }
.avail-sum { margin: 0; font: 13px var(--mono); color: var(--ink-2); }

/* ---------- shipping and meetup panels (confirmed trades) ---------- */
.manifest { display: flex; flex-direction: column; gap: 16px; font-size: 14px; }
.m-top { display: flex; justify-content: space-between; gap: 10px; font: 12px var(--mono); letter-spacing: .04em; color: var(--ink-3); text-transform: uppercase; }
.m-top .ok { color: var(--ok); }
.manifest h2 { margin: 0; font-size: 30px; font-weight: 600; letter-spacing: -.04em; line-height: 1.05; }
.m-legs { display: flex; flex-direction: column; }
.m-leg { display: flex; flex-direction: column; gap: 8px; padding: 14px 0; border-top: 1px solid var(--line-2); }
.m-head { display: flex; justify-content: space-between; gap: 10px; font: 12px var(--mono); color: var(--ink-3); text-transform: uppercase; letter-spacing: .03em; }
.m-route { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; font: 600 12px var(--mono); }
.m-route.dim { opacity: .5; }
.m-line { position: relative; height: 2px; border-radius: 2px; background: var(--line); }
.m-line i { position: absolute; inset: 0 auto 0 0; border-radius: 2px; background: var(--k); }
.m-line b { position: absolute; top: 50%; width: 10px; height: 10px; border-radius: 50%; transform: translate(-50%, -50%); background: var(--k); box-shadow: 0 0 0 4px color-mix(in srgb, var(--k) 20%, transparent); }
.m-note { font: 11.5px/1.5 var(--mono); color: var(--ink-3); letter-spacing: .02em; }
.m-note.bad { color: var(--bad); }
.m-ship { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 20px; background: var(--panel-2); box-shadow: inset 0 0 0 1.5px var(--accent); }
.m-ship .k { font: 600 11.5px var(--mono); letter-spacing: .06em; color: var(--accent-ink); text-transform: uppercase; }
.m-ship .t { font-size: 20px; font-weight: 600; letter-spacing: -.03em; }
.m-ship label, .m-pkg legend { font: 11px var(--mono); letter-spacing: .04em; color: var(--ink-3); text-transform: uppercase; }
.m-ship .link { font-size: 13px; }
.m-field { width: 100%; height: 44px; padding: 0 12px; border: 0; border-radius: 12px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); font: 14px var(--mono); }
.m-field:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--accent); }
.m-btn { height: 48px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--panel); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.m-btn.go { background: var(--ink); color: var(--on-ink); box-shadow: none; }
.m-btn.ok { box-shadow: inset 0 0 0 1.5px var(--ok); color: var(--ok); }
.m-btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.m-rates { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.m-rate { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; cursor: pointer; }
.m-rate:has(input:checked) { box-shadow: inset 0 0 0 1.5px var(--ink); }
.m-rate input { accent-color: var(--accent); }
.m-rate span { flex: 1; }
.m-rate b { font: 600 15px var(--mono); }
.m-pkg { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.m-dims { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.3fr); gap: 8px; }
.m-dim { position: relative; display: flex; flex-direction: column; gap: 4px; }
.m-dim .m-field { padding-right: 28px; }
.m-dim small { position: absolute; right: 10px; bottom: 14px; font: 11px var(--mono); color: var(--ink-3); }
@media (max-width: 520px) { .m-dims { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.m-parcel { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.parcel { max-width: 100%; height: auto; }
.parcel .pw { fill: none; stroke: var(--accent); stroke-width: 1; stroke-dasharray: 3 2; }
.parcel .pw.back { opacity: .4; }
.parcel .gb { stroke: var(--ink); stroke-width: .8; }
.parcel .gb.f { fill: var(--pill); } .parcel .gb.t { fill: var(--panel); } .parcel .gb.s { fill: var(--line); }
.m-people { display: flex; flex-wrap: wrap; gap: 14px; font: 12px var(--mono); color: var(--ink-3); }
.m-people .ok { color: var(--ok); }
.m-act { display: flex; flex-direction: column; gap: 10px; }
.handoff { display: flex; align-items: baseline; gap: 12px; }
.code.m { font-size: 30px; }
.m-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 4px; }
.ship-est { font-size: 14px; }
.terms, .sides { display: none; }

/* Leaflet: quiet the default chrome */
.leaflet-container { background: var(--pill); font: 12px var(--sans); }
.leaflet-tooltip { font: 12px var(--sans); border-radius: 8px; }
/* Keep the ring and the decision on one screen. */
.lv-stage .ring { max-width: min(680px, calc(100vh - 330px), 100%); }
@media (max-width: 980px) { .lv-stage .ring { max-width: 100%; } }
/* Phones: headline, then the ring and the decision, then the details (as in the 3a mobile mock). */
@media (max-width: 980px) {
  .loop-view { display: flex; flex-direction: column; align-items: stretch; }
  .lv-info { display: contents; }
  .lv-info > .mono-h { order: 1; margin: 0; }
  .lv-info > .headline { order: 2; font-size: 36px; margin-top: -10px; }
  .lv-info > .notice { order: 3; }
  .loop-view > .lv-stage { order: 4; }
  .lv-info > .gg { order: 5; }
  .lv-info > .why { order: 6; }
  .lv-info > .det { order: 7; }
}
@media (max-width: 520px) {
  .r-who, .r-label { font-size: 11.5px; }
  .r-who small { font-size: 11.5px; }
  .r-node { width: 10cqw; height: 10cqw; font-size: 3.6cqw; }
  .r-node.self { width: 11cqw; height: 11cqw; }
  .r-game .tile-g { width: 15cqw; }
}
.lv-stage { min-width: 0; }
@media (max-width: 520px) {
  .r-who, .r-label { display: none; }
  .r-game.in .tile-g { box-shadow: 0 0 0 2.5px var(--panel), 0 0 0 4px var(--accent), var(--tile-shadow); }
  .lv-acts { flex-direction: column-reverse; gap: 6px; }
  .lv-acts .pill-btn { width: 100%; flex: none; }
  .lv-acts .pill-btn.ghost { height: 40px; box-shadow: none; }
  .lv-acts .hold kbd { display: none; }
}
.lrule button.lr-name { border: 0; background: none; padding: 0; text-align: left; color: inherit; }
.lrule button.lr-name:hover b { text-decoration: underline; text-underline-offset: 3px; }
.shelf-hint { margin: 12px 2px 0; font-size: 13px; color: var(--ink-3); }
.kallax { margin-top: 4px; }
.install-ios { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; }
.install-ios span { color: var(--ink-3); font-size: 13px; }
/* Browse: trades within reach */
.reach { display: flex; flex-direction: column; border-radius: 20px; background: var(--panel); box-shadow: var(--lift); overflow: hidden; }
.reach-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px 16px; border-top: 1px solid var(--line-2); }
.reach-row:first-child { border-top: 0; }
.rr-g { border: 0; background: none; padding: 0; }
.rr-g .tile-g { width: 48px; border-radius: 12px; box-shadow: none; }
.rr-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rr-t b { font-size: 15px; font-weight: 600; }
.rr-t small { font-size: 13px; color: var(--ink-3); }
.rr-t .rr-fix { color: var(--accent-ink); }
.sheet .reach { box-shadow: inset 0 0 0 1px var(--line-2); }
@media (max-width: 520px) { .reach-row { grid-template-columns: 40px minmax(0, 1fr); } .reach-row > :last-child { grid-column: 2; justify-self: start; } .rr-g .tile-g { width: 40px; } }
/* Prompts (install, notifications): one small card, bottom right; above the tab bar on phones. */
.nudge { position: fixed; z-index: 35; right: 24px; bottom: 24px; width: min(400px, calc(100vw - 32px)); display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px 14px; align-items: center;
  padding: 16px; border-radius: 22px; background: var(--panel); box-shadow: var(--lift), 0 24px 60px -24px rgba(0, 0, 0, .45); }
.nudge.enter { animation: nudgeIn .45s var(--ease); }
@keyframes nudgeIn { from { opacity: 0; transform: translateY(12px); } }
.nudge-ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--bg); color: var(--ink); }
.nudge-ic .logo { width: 26px; height: 26px; }
.nudge-t { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.nudge-t b { font-size: 15px; font-weight: 600; }
.nudge-t small { font-size: 13px; color: var(--ink-3); }
.nudge-acts { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; }
@media (max-width: 760px) { .nudge { left: 12px; right: 12px; width: auto; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); } }
@media (prefers-reduced-motion: reduce) { .nudge.enter { animation: none; } }
/* Sheet footer: the sheet's main action stays in reach. */
.sheet-foot { position: sticky; bottom: -28px; margin: 4px -24px -28px; padding: 14px 24px calc(18px + env(safe-area-inset-bottom, 0px)); display: flex; justify-content: flex-end; gap: 10px;
  background: var(--sheet); border-top: 1px solid var(--line-2); }
.sheet-foot .pill-btn { min-width: 120px; }
/* Phones: sheets are full-screen pages with a sticky header, like an app. */
@media (max-width: 760px) {
  .sheet { inset: 0; top: 0; bottom: 0; left: 0; width: 100%; height: 100%; max-height: none; border-radius: 0; box-shadow: none; padding-top: env(safe-area-inset-top, 0px); }
  .sheet-head { position: sticky; top: 0; z-index: 2; padding: 10px 12px 10px 20px; background: var(--sheet); border-bottom: 1px solid var(--line-2); }
  .sheet-body { padding: 16px 20px 28px; }
  .sheet-foot { margin: 4px -20px -28px; padding-inline: 20px; }
  .sheet-foot .pill-btn { flex: 1; height: 50px; }
  .anim.sheet { animation: sheetIn .3s var(--ease); }
}
@keyframes sheetIn { from { transform: translateY(24px); opacity: 0; } }

.item > .txt { flex: 1; }
.item > .i { color: var(--ink-3); }
.sheet-body { flex: 1; }
.sheet-foot { margin-top: auto; }

/* Wizards: one step at a time, progress on top, Back / Next pinned at the bottom (.sheet-foot). */
.wiz-head { display: flex; flex-direction: column; gap: 8px; }
.wiz-bar { display: flex; gap: 4px; }
.wiz-bar i { flex: 1; height: 3px; border-radius: 2px; background: var(--line); transition: background .25s; }
.wiz-bar i.on { background: var(--accent); }
.wiz-title { margin: 0; font-size: 26px; }
.wiz-form { display: flex; flex-direction: column; flex: 1; }
.sheet-foot .pill-btn:disabled { opacity: .4; }

/* App, not document: pressing or holding a control never selects its text or opens the iOS callout. */
button, .pill-btn, .btn, .chip, .seg, nav, .lrow, .venue, .slot { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
.hold { touch-action: none; }
