:root {
  --bg: #0f1216; --panel: #181c22; --panel2: #1f242c; --line: #2b323c; --text: #e9ecf1; --mute: #98a2b3;
  --gold: #d4af37; --gold-ink: #17130a; --good: #3fb37f; --warn: #e0a341; --bad: #e5604f; --info: #5aa2e6; --purple: #6c4ba3;
  --m-gold: #C9A44C; --m-silver: #C9CED6; --m-platinum: #8FB3C9; --m-palladium: #D9865A; --m-ratio: #9CC8A3;   /* §544 the metals' colours on the spot chart (the site's) */   /* §484: the chart's fifth series */
  --r: 12px; --tap: 48px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
:root.light {
  --bg: #f3f1ea; --panel: #ffffff; --panel2: #f7f5ee; --line: #ddd8cc; --text: #1b1a17; --mute: #6b665c;
  --gold: #85660f; --gold-ink: #ffffff; --good: #1b7a4b; --warn: #8f5400; --bad: #b3301d; --info: #2e6fb0; --purple: #5b3f8f;
  --m-gold: #9a7a1f; --m-silver: #6b7280; --m-platinum: #3f6f8f; --m-palladium: #b4552a; --m-ratio: #3f8a55;   /* §407: every token at 4.5:1 or better on the panels */
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font: 16px/1.4 var(--font); -webkit-text-size-adjust: 100%; }
body { overscroll-behavior-y: none; }
h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: -0.01em; }
h1 { font-size: 26px; } h2 { font-size: 19px; } h3 { font-size: 17px; }
p { margin: 0 0 10px; }
a { color: var(--gold); text-decoration: none; }
.boot { display: grid; place-items: center; height: 100vh; color: var(--gold); font-size: 28px; font-weight: 700; letter-spacing: .08em; }
.mute { color: var(--mute); } .small { font-size: 13px; } .mono { font-family: ui-monospace, Menlo, Consolas, monospace; }
.r { text-align: right; } .good { color: var(--good); } .bad { color: var(--bad); } .warn { color: var(--warn); } .gold { color: var(--gold); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .grow { flex: 1 1 auto; min-width: 0; } .spacer { flex: 1; }
.stack { display: flex; flex-direction: column; gap: 14px; }

/* shell */
.shell { display: grid; grid-template-columns: 208px 1fr; height: 100vh; height: 100dvh; }
.side { background: var(--panel); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 14px 10px calc(10px + env(safe-area-inset-bottom)); gap: 4px; overflow-y: auto; }
.brand { color: var(--gold); font-weight: 800; letter-spacing: .12em; font-size: 18px; padding: 6px 10px 14px; }
.brand .powered { color: var(--mute); font-weight: 500; letter-spacing: 0; font-size: 11px; margin-top: 2px; }   /* §384: Starter and Pro */
.brand .biz { color: var(--mute); font-weight: 500; letter-spacing: 0; font-size: 12px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav a { display: flex; align-items: center; gap: 10px; min-height: var(--tap); padding: 0 12px; border-radius: 10px; color: var(--text); font-weight: 550; }
.nav a .ico { width: 22px; text-align: center; font-size: 18px; }
.nav a.on { background: var(--gold); color: var(--gold-ink); }
.nav a.locked { opacity: .55; }   /* a screen the plan does not include (§327): shown, opens to the upgrade card */
.nav a .badge { margin-left: auto; background: var(--bad); color: var(--gold-ink); border-radius: 99px; font-size: 12px; padding: 1px 7px; }
.nav a.on .badge { background: var(--gold-ink); color: var(--gold); }
.who { margin-top: auto; padding: 10px; font-size: 13px; color: var(--mute); border-top: 1px solid var(--line); }
.who b { color: var(--text); display: block; font-size: 14px; }
.main { display: flex; flex-direction: column; min-width: 0; height: 100vh; height: 100dvh; }
.topbar { display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 18px; border-bottom: 1px solid var(--line); background: var(--panel); }
.spotbar { display: flex; gap: 18px; align-items: center; flex: 1; min-width: 0; font-size: 14px; overflow-x: auto; white-space: nowrap; padding: 2px 0; }
.gsearch-wrap { position: relative; flex: 0 1 300px; min-width: 120px; }
.gsearch { min-height: 36px; padding: 6px 12px; font-size: 14px; }
.gsearch-panel { position: absolute; right: 0; top: calc(100% + 6px); width: min(520px, calc(100vw - 32px)); max-height: 70vh; overflow-y: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.45); z-index: 40; padding: 6px 0; }
.bell-wrap { position: relative; }
.bell { position: relative; background: transparent; border: 1px solid var(--line); border-radius: 10px; min-height: 36px; padding: 4px 10px; font-size: 16px; cursor: pointer; color: var(--text); }
.bell-badge { position: absolute; top: -6px; right: -6px; background: var(--bad); color: var(--gold-ink); font-size: 11px; font-weight: 700; border-radius: 999px; padding: 1px 6px; min-width: 18px; text-align: center; }
.bell-panel { position: absolute; right: 0; top: calc(100% + 6px); width: min(420px, calc(100vw - 32px)); max-height: 70vh; overflow-y: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.45); z-index: 40; padding: 4px 0 6px; }
.bell-item { display: flex; gap: 10px; align-items: flex-start; padding: 8px 12px; cursor: pointer; border-left: 3px solid transparent; }
.bell-item:hover { background: var(--bg); } .bell-item.unread { border-left-color: var(--gold); } .bell-ico { width: 18px; text-align: center; color: var(--mute); }
.gsearch-k { padding: 8px 12px 2px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.gsearch-hit { padding: 7px 12px; cursor: pointer; border-left: 3px solid transparent; }
.gsearch-hit:hover, .gsearch-hit.on { background: var(--bg); border-left-color: var(--gold); }
.spotbar .m b { font-variant-numeric: tabular-nums; }
.spotbar .stale { color: var(--warn); }
.spotbar .m.up b { color: var(--good); } .spotbar .m.down b { color: var(--bad); } .spotbar .m b { transition: color .8s; }
.view { flex: 1; overflow-y: auto; padding: 18px; -webkit-overflow-scrolling: touch; }
.view > .stack { max-width: 1180px; margin: 0 auto; }
.head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* pieces */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.card h2 { margin-bottom: 10px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 12px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; cursor: pointer; }
.tile .n { font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tile .l { color: var(--mute); font-size: 13px; }
.tile.alert .n { color: var(--warn); }
.tile.good .n { color: var(--good); }
.btn { min-height: var(--tap); padding: 0 18px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel2); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; touch-action: manipulation; }
a.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }   /* a link dressed as a button sits like one */
.btn:disabled { opacity: .5; }
.btn.primary { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.btn.danger { background: transparent; border-color: var(--bad); color: var(--bad); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--mute); } .btn.ghost:hover { border-color: var(--line); color: var(--text); background: var(--panel2); }
.btn.big { min-height: 64px; font-size: 19px; padding: 0 26px; }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: 14px; }
.btn.on { outline: 2px solid var(--gold); }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field .lbl { font-size: 13px; color: var(--mute); font-weight: 600; }
.field .hint { font-size: 12px; color: var(--mute); }
input, select, textarea { min-height: var(--tap); width: 100%; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; }
/* a checkbox or radio is a small square beside its words, never a full-width field (the rule above would make it one) */
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; min-height: 0; padding: 0; margin: 0; vertical-align: middle; accent-color: var(--gold); flex: none; }
label.row > input[type=checkbox], label.row > input[type=radio] { margin-right: 2px; }
textarea { min-height: 72px; }
input:focus, select:focus, textarea:focus, .btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.grid .wide { grid-column: 1 / -1; }
.scanbox { font-size: 20px; min-height: 58px; border: 2px solid var(--gold); }
.pill { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 650; background: var(--panel2); color: var(--mute); white-space: nowrap; }
.pill.good { background: rgba(63,179,127,.16); color: var(--good); } .pill.warn { background: rgba(224,163,65,.16); color: var(--warn); }
.pill.bad { background: rgba(229,96,79,.16); color: var(--bad); } .pill.mute { opacity: .7; } .pill.gold { background: rgba(212,175,55,.18); color: var(--gold); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th { text-align: left; font-size: 12px; color: var(--mute); text-transform: uppercase; letter-spacing: .04em; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; position: sticky; top: 0; background: var(--panel); }
.tbl td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl th.r, .tbl td.r { text-align: right; font-variant-numeric: tabular-nums; }
.tbl tr.click { cursor: pointer; } .tbl tr.click:active { background: var(--panel2); }
.tbl tr.dim td { opacity: .55; }
.empty { padding: 26px; text-align: center; color: var(--mute); border: 1px dashed var(--line); border-radius: var(--r); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 15px; } .kv dt { color: var(--mute); } .kv dd { margin: 0; }
.kv-acts { display: inline-flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; } .kv-acts .btn { margin: 0; }   /* a value with its buttons: they wrap as a row, never centred on their own line */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs .btn { min-height: 40px; }

/* tags on screen */
.tag-preview { background: #cfd3d8; padding: 14px; border-radius: var(--r); display: inline-block; }
.tag-preview svg { display: block; width: auto; height: auto; max-width: 320px; max-height: 320px; box-shadow: 0 1px 4px rgba(0,0,0,.4); margin-bottom: 10px; }
.tag-preview svg:last-child { margin-bottom: 0; }
.tag-choices { display: flex; gap: 12px; flex-wrap: wrap; }
.tag-choice { cursor: pointer; border: 2px solid transparent; border-radius: 10px; padding: 6px; background: #cfd3d8; }
.tag-choice.on { border-color: var(--gold); }
.tag-choice svg { display: block; width: 192px; height: 96px; }
.tag-choice span { display: block; text-align: center; font-size: 12px; color: #222; font-weight: 650; padding-top: 4px; }

/* live show */
.block { background: var(--panel); border: 2px solid var(--gold); border-radius: 16px; padding: 22px; min-height: 190px; }
.block .lot { color: var(--gold); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: 14px; }
.block .title { font-size: clamp(24px, 4vw, 40px); font-weight: 750; line-height: 1.12; margin: 6px 0; }
.block .meta { color: var(--mute); font-size: 17px; }
.block.idle { border-color: var(--line); display: grid; place-items: center; color: var(--mute); font-size: 20px; text-align: center; }
.block .nums { display: flex; gap: 26px; margin-top: 12px; flex-wrap: wrap; } .block .nums div b { display: block; font-size: 24px; font-variant-numeric: tabular-nums; }
.block .nums div span { color: var(--mute); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.showgrid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start; }
/* scan-first (phone) mode on the live screen: scan box + wins only, large */
.scanfirst .showgrid { grid-template-columns: 1fr; }
.scanfirst .showgrid > .stack:first-child > :not(.scanrow):not(.scanbox):not(.row):not(.blockbox):not(.queuedbox) { display: none; }
.scanfirst .showgrid > .stack:first-child > .row:not(.scanrow) > :not(.phonebtn) { display: none; }
.scanfirst .showgrid > .stack:last-child > :not(:nth-child(2)) { display: none; }
.scanfirst .scanbox { font-size: 22px; min-height: 58px; }
.scanfirst .head h1 { font-size: 18px; }
.outcomes { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 10px; margin-top: 12px; } .outcomes .btn { padding: 0 8px; }
.flash { animation: flash .6s ease-out; } @keyframes flash { from { background: rgba(212,175,55,.35); } to { background: var(--panel); } }

/* packing */
.buyer-list { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.buyer { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; cursor: pointer; }
.buyer .u { font-weight: 700; font-size: 17px; overflow-wrap: anywhere; } .buyer .p { color: var(--gold); font-weight: 700; }
.bar { height: 8px; background: var(--panel2); border-radius: 9px; overflow: hidden; margin-top: 8px; } .bar i { display: block; height: 100%; background: var(--good); }
.packrow { display: flex; gap: 12px; align-items: center; padding: 12px; border-bottom: 1px solid var(--line); }
.packrow:last-child { border-bottom: 0; }
.packrow .tick { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-weight: 800; flex: none; }
.packrow.done .tick { background: var(--good); border-color: var(--good); color: #06281a; } .packrow.done .t { color: var(--mute); text-decoration: line-through; }

/* sign in */
.signin { max-width: 380px; margin: 12vh auto 0; padding: 0 18px; }

/* pop-ups and messages */
.modal-back { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: grid; place-items: center; padding: 16px; z-index: 50; }
.modal { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px; width: min(560px, 100%); max-height: 92vh; display: flex; flex-direction: column; gap: 12px; }
.modal-body { overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.modal-back.alarm { background: rgba(170, 28, 16, .93); }
.alarm-box { text-align: center; color: #fff; display: flex; flex-direction: column; gap: 18px; align-items: center; max-width: 720px; }
.alarm-title { font-size: clamp(40px, 9vw, 84px); font-weight: 850; letter-spacing: .02em; }
.alarm-text { font-size: clamp(18px, 3vw, 26px); }
.alarm-box .btn { background: #fff; color: #7a1208; border-color: #fff; }
#toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(84px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px; z-index: 60; width: min(520px, 92vw); }
.toast { background: var(--panel2); border: 1px solid var(--line); border-left: 5px solid var(--good); padding: 12px 14px; border-radius: 10px; box-shadow: 0 6px 22px rgba(0,0,0,.45); }
.toast.bad { border-left-color: var(--bad); } .toast.warn { border-left-color: var(--warn); }
/* the demo tour card (tour.js): rides along the bottom right, above the page, below modals */
.tour { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); width: min(420px, calc(100vw - 32px)); background: var(--panel2); border: 1px solid var(--gold); border-radius: 12px; padding: 12px 14px; box-shadow: 0 8px 28px rgba(0,0,0,.5); z-index: 45; }
.demo-banner.clickable { cursor: pointer; text-decoration: underline dotted; }

/* phone and narrow iPad: tabs along the bottom */
@media (max-width: 820px) {
  /* pinned to the visible screen so only .view scrolls (iOS otherwise lets the whole page
     scroll under the address bar and the bottom tabs drift away) */
  .shell { position: fixed; inset: 0; height: auto; overflow: hidden; grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .side { order: 2; flex-direction: row; padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); border-right: 0; border-top: 1px solid var(--line); overflow-x: auto; gap: 2px; }
  .brand, .who { display: none; }
  .nav { display: flex; flex: 1; gap: 2px; }
  .nav a { flex: 1 0 62px; flex-direction: column; gap: 0; font-size: 11px; justify-content: center; padding: 4px 2px; min-height: 52px; position: relative; }
  .nav a .badge { position: absolute; top: 2px; right: 8px; margin: 0; }
  /* §404: the day's first screens as tabs, the rest behind More; headings and plan pills have no place in a 62 px tab */
  .nav-group, .nav a .pill, .nav a.secondary { display: none !important; }
  .nav a.more-tab { display: flex !important; }   /* the desktop rule below hides it; on a phone it wins */
  .main { height: 100%; min-height: 0; }
  .side { flex: none; }
  .view { padding: 12px; }
  .topbar { flex-wrap: wrap; padding-left: 12px; padding-right: 12px; gap: 6px; }
  .gsearch-wrap { flex: 1 1 120px; min-width: 0; }
  /* a screen's tools row (Inventory, Orders) slides sideways on a phone instead of stacking three deep */
  .row.tools { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; scrollbar-width: none; }
  .row.tools::-webkit-scrollbar { display: none; }
  .row.tools > * { flex: none; white-space: nowrap; }
  .topbar .askbtn { padding-left: 8px; padding-right: 8px; white-space: nowrap; }
  .topbar .bell { padding: 4px 8px; }
  /* spot prices on their own full-width line under the search, scrolling sideways when there are many */
  .spotbar { order: 3; flex: 1 1 100%; gap: 14px; font-size: 13px; padding: 0 0 2px; }
  /* §505: on a phone the bell and the search open full width, fixed to the viewport under the topbar — hanging from the wrap's own
     width made the bell's panel a strip one word wide (Corey's first evening); the top is measured when a panel opens */
  .bell-wrap, .gsearch-wrap { position: static; }
  .bell-panel, .gsearch-panel { position: fixed; left: 12px; right: 12px; top: calc(var(--topbar-h, 56px) + 8px); width: auto; max-height: 72dvh; }
  .showgrid { grid-template-columns: 1fr; }
  .tbl { font-size: 14px; } .tbl td, .tbl th { padding: 9px 8px; } .tbl td.mono { white-space: nowrap; }
  .table-wrap .tbl { min-width: 520px; }
  h1 { font-size: 22px; }
  /* floor screens: the head with its buttons stays put, targets get bigger */
  /* only the floor screens pin their head (scan box and buttons stay put); Home and the rest scroll normally */
  .view[data-screen="packing"] .head, .view[data-screen="count"] .head, .view[data-screen="scrap"] .head { position: sticky; top: 0; z-index: 5; background: var(--bg); padding: 6px 0; margin: -6px 0 6px; flex-wrap: wrap; }
  .head .btn, .scanrow .btn { min-height: 44px; }
  .scanrow input { font-size: 18px; min-height: 48px; }
  .btn.sm { min-height: 36px; }
  .row.pack-actions .btn, .count-actions .btn { flex: 1 1 45%; min-height: 48px; }
  .tbl td .btn.sm { min-height: 40px; }
  .more { width: 100%; margin-top: 6px; }
}

/* installed on a phone's home screen the page runs under the status bar: pad the top bar for it (a browser tab already leaves room, so no padding there) */
@media (display-mode: standalone), (display-mode: fullscreen) { .topbar { padding-top: calc(6px + env(safe-area-inset-top)); } }

/* printing: only the tags, one per 2x1 page */
#print-area { display: none; }
@media print {
  @page { size: 2in 1in; margin: 0; }
  html, body { background: #fff; height: auto; }
  body > *:not(#print-area) { display: none !important; }
  #print-area { display: block; }
  .tag-page { width: 2in; height: 1in; page-break-after: always; break-after: page; overflow: hidden; }
  .tag-page:last-child { page-break-after: auto; break-after: auto; }
  .tag-page svg { display: block; width: 2in; height: 1in; }
}

/* reports: month bars */
.bars { display: flex; align-items: flex-end; gap: 6px; height: 160px; padding: 6px 0 0; overflow-x: auto; }
.bar-col { flex: 1 1 0; min-width: 34px; display: flex; flex-direction: column; align-items: stretch; height: 100%; }
.bar-stack { flex: 1; position: relative; }
.bar { position: absolute; bottom: 0; left: 0; right: 0; border-radius: 4px 4px 0 0; }
.bar.sales { background: rgba(212,175,55,.35); }
.bar.profit { background: var(--good); width: 50%; left: 25%; }
.bar-l { color: var(--mute); font-size: 11px; text-align: center; padding-top: 4px; white-space: nowrap; }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 2px; vertical-align: middle; }
.swatch.sales { background: rgba(212,175,55,.5); } .swatch.profit { background: var(--good); }

.help { padding-left: 18px; display: flex; flex-direction: column; gap: 8px; line-height: 1.45; max-width: 70ch; }
.buyer-tag { cursor: pointer; border-bottom: 1px dotted var(--mute); }
.scanrow { flex-wrap: nowrap; } .scanrow .btn.cam { min-height: 58px; font-size: 22px; padding: 0 14px; }

/* Home: needs attention */
ul.attn { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
ul.attn li { cursor: pointer; padding: 6px 8px; border-radius: 8px; }
ul.attn li:hover, ul.attn li:focus { background: var(--line); outline: none; }
ul.attn li b { display: inline-block; min-width: 2.2em; text-align: right; color: var(--warn); }

/* item photos */
.photos { display: flex; flex-wrap: wrap; gap: 8px; }
.photos img { width: 110px; height: 110px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); cursor: zoom-in; background: var(--panel2); }

/* ---------- home dashboard ---------- */
.kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .tile.kpi .n { font-size: 22px; } }
.tile.kpi { display: flex; flex-direction: column; gap: 2px; }
.tile.kpi .n { font-size: 26px; line-height: 1.15; }
.tile.kpi .sub { font-size: 13px; }
.tile.kpi .spark { align-self: flex-end; margin-top: 4px; opacity: .9; }
.meter { height: 8px; background: var(--panel2); border-radius: 9px; overflow: hidden; margin-top: 8px; position: static; }
.meter i { display: block; height: 100%; background: var(--gold); border-radius: 9px; }
.dash { display: grid; grid-template-columns: minmax(0, 3fr) minmax(280px, 2fr); gap: 12px; align-items: start; margin-top: 12px; }
@media (max-width: 980px) { .dash { grid-template-columns: minmax(0, 1fr); } }
.dash > .stack, .dash .card { min-width: 0; }   /* a wide chart scrolls inside its card, never the page (Home at phone width) */
@media (max-width: 480px) { .bars { gap: 2px; } .bar-col { min-width: 6px; } }
/* §526 Purchases > Buying at a glance: tiles that never wrap (whole dollars, the font steps down before a digit can break; two rows
   of three on a narrow window), a chart with an axis, the sellers table with dates in one line */
.tiles.glance { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.tiles.glance .tile { overflow-wrap: normal; min-width: 0; }
.tiles.glance .tile .n { white-space: nowrap; overflow: hidden; text-overflow: clip; font-variant-numeric: tabular-nums; font-size: clamp(17px, 1.9vw, 28px); line-height: 1.2; }
.tiles.glance .tile .l { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tiles.glance .tile.quiet .n { color: var(--mute); font-size: clamp(15px, 1.5vw, 20px); }
@media (max-width: 520px) { .tiles.glance { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .tiles.glance .tile .n { font-size: clamp(15px, 4.6vw, 22px); } }
.glance-chart-box { width: 100%; min-width: 0; }
.glance-chart { width: 100%; height: auto; display: block; }
.glance-chart text { fill: var(--mute); font-size: 11px; font-variant-numeric: tabular-nums; }
.glance-chart .grid { stroke: var(--line); stroke-width: 1; }
.glance-chart .glance-bar { fill: var(--gold); fill-opacity: .45; }
.glance-chart .glance-bar.empty { fill: var(--line); fill-opacity: 1; }
.glance-chart .glance-bar.now { fill: url(#glance-hatch); fill-opacity: 1; }
.glance-chart .glance-hatch { fill: var(--gold); fill-opacity: .55; }
.glance-chart .glance-col:hover .glance-bar { fill-opacity: .8; }
.glance-chart .val { fill: var(--fg); font-weight: 600; }
.dashtbl.glance th, .dashtbl.glance td { white-space: nowrap; }
.dashtbl.glance td.name, .dashtbl.glance th:first-child { white-space: normal; width: 100%; }
.dashtbl.glance .r { font-variant-numeric: tabular-nums; }
.spark .line { fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.spark .area { fill: var(--gold); opacity: .12; stroke: none; }
.spark .dot { fill: var(--gold); }
ul.feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
ul.feed li { display: flex; gap: 10px; align-items: center; padding: 7px 8px; border-radius: 8px; cursor: pointer; border-top: 1px solid var(--line); }
ul.feed li:first-child { border-top: 0; }
ul.feed li:hover, ul.feed li:focus { background: var(--line); outline: none; }
ul.feed .ico { width: 22px; text-align: center; flex: none; opacity: .85; }
ul.feed .when { flex: none; min-width: 64px; text-align: right; }
ol.top { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 5px; }
ol.top li { display: flex; gap: 10px; align-items: baseline; }
ol.top li::marker { color: var(--mute); }
.spots { display: flex; flex-direction: column; gap: 6px; }
.spot-row { display: flex; gap: 12px; align-items: center; padding: 4px 0; border-top: 1px solid var(--line); }
.spot-row:first-child { border-top: 0; }
.card.insights { padding: 8px 12px; }
.hbars { display: flex; flex-direction: column; gap: 6px; }
.hbar { display: grid; grid-template-columns: minmax(90px, 150px) 1fr auto; gap: 10px; align-items: center; font-size: 13px; }
.hbar-l { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbar-t { height: 10px; background: var(--panel2); border-radius: 6px; overflow: hidden; }
.hbar-t i { display: block; height: 100%; background: var(--gold); border-radius: 6px; }
.hbar-t i.good { background: var(--good); } .hbar-t i.bad { background: var(--bad); }
.hbar-v { color: var(--mute); white-space: nowrap; font-variant-numeric: tabular-nums; }
.heat { display: grid; grid-template-columns: auto repeat(7, 1fr); gap: 3px; font-size: 11px; }
.heat-h { color: var(--mute); padding: 2px 6px 2px 0; white-space: nowrap; align-self: center; text-align: center; }
.heat-c { height: 26px; border-radius: 4px; background: var(--panel2); display: flex; align-items: center; justify-content: center; color: var(--text); position: relative; overflow: hidden; }
.heat-c::before { content: ''; position: absolute; inset: 0; background: var(--gold); opacity: var(--a, 0); }
.heat-c span { position: relative; font-variant-numeric: tabular-nums; }
.heat-c.future { opacity: .35; }
.heat-c.hi span { color: var(--gold-ink); font-weight: 600; }
.note { white-space: pre-wrap; line-height: 1.45; }
@media (max-width: 520px) { .hbar { grid-template-columns: 80px 1fr; } .hbar-v { grid-column: 2; font-size: 11px; } .heat-c span { font-size: 9px; } }

.offline-strip { padding: 6px 18px; font-size: 13px; font-weight: 600; text-align: center; }
.offline-strip.bad { background: var(--bad); color: var(--gold-ink); } .offline-strip.warn { background: var(--warn); color: var(--gold-ink); }

/* the HUD: the app in a bare window on top of the stream software */
.hud-mode .side, .hud-mode .topbar { display: none; }
.hud-mode .shell { grid-template-columns: 1fr; }
.hud-mode .view { padding: 10px; }
.hud { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.hud-head { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; }
.hud-big { font-size: 44px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; color: var(--good); }
.hud-goal { position: relative; height: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.hud-goal i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--gold); opacity: .7; }
.hud-goal span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.hud-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); gap: 6px; }
.hud-row > div { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 6px 8px; display: flex; flex-direction: column; }
.hud-row b { font-size: 18px; font-variant-numeric: tabular-nums; } .hud-row span { color: var(--mute); font-size: 11px; }
.hud-list { display: flex; flex-direction: column; gap: 4px; }
.hud-win { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 6px 8px; }
.hud-win.big { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }

.card.dropping { outline: 2px dashed var(--gold); outline-offset: -4px; background: var(--panel2); }
.dropbox { border: 1px dashed var(--line); border-radius: 8px; padding: 8px 10px; }
.dropbox.dropping { border-color: var(--gold); background: var(--panel2); }
.dashtbl { width: 100%; border-collapse: collapse; }
.dashtbl th { text-align: left; font-size: 11px; color: var(--mute); text-transform: uppercase; letter-spacing: .04em; padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.dashtbl td { padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.dashtbl tr:last-child td { border-bottom: 0; }
.dashtbl th.r, .dashtbl td.r { text-align: right; font-variant-numeric: tabular-nums; }

.modal.docview { width: min(1100px, 100%); height: 92vh; padding: 12px 14px; }
.modal:has([data-undated-list]) { width: min(920px, 100%); }   /* §635 the slabs with no date: a picture, a name and a press a row */
.docview-body { flex: 1; min-height: 0; display: flex; overflow: auto; background: var(--panel2); border-radius: 10px; }
.docview-body iframe { flex: 1; }
.docthumbs { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0; }
.docthumb { width: 88px; height: 88px; padding: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--panel2); cursor: pointer; }
.docthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.vfacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px 20px; }
.vfact-l { color: var(--mute); font-size: 12px; }
.vfact-v { font-size: 15px; font-variant-numeric: tabular-nums; }

.askbtn { white-space: nowrap; }
.ask-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(520px, 100vw); background: var(--panel); border-left: 1px solid var(--line); z-index: 40; display: flex; flex-direction: column; gap: 10px; padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); box-shadow: -8px 0 30px rgba(0,0,0,.35); }
.ask-thread { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.ask-msg { display: flex; flex-direction: column; gap: 6px; }
.ask-msg.user { align-items: flex-end; }
.ask-bubble { max-width: 92%; padding: 9px 12px; border-radius: 12px; background: var(--panel2); line-height: 1.4; white-space: pre-wrap; }
.ask-msg.user .ask-bubble { background: var(--gold); color: #111; white-space: normal; }
.ask-li { padding-left: 14px; position: relative; } .ask-li::before { content: '•'; position: absolute; left: 2px; }
.ask-table summary { cursor: pointer; }
.ask-drawer textarea { flex: 1; resize: none; }

th.sortable { cursor: pointer; user-select: none; }
th.sortable:hover { color: var(--gold); }
th.sorted { color: var(--gold); }
.sortmark { font-size: 0.8em; }

/* sections rail (Settings, Reports): one section at a time, a find box, the rail sticky beside the cards */
[hidden] { display: none !important; }
.railed { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; align-items: start; }
.rail-side { position: sticky; top: 8px; display: flex; flex-direction: column; gap: 8px; }
.rail { display: flex; flex-direction: column; gap: 2px; }
.rail-item { text-align: left; background: transparent; border: 1px solid transparent; color: var(--text); padding: 8px 10px; border-radius: 8px; cursor: pointer; font: inherit; }
.rail-item:hover { background: var(--panel2); }
.rail-item.on { background: var(--panel); border-color: var(--line); font-weight: 600; }
.rail-body { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.rail-body > .rail-title { margin: 0 0 -4px; }
@media (max-width: 820px) {
  .railed { grid-template-columns: minmax(0, 1fr); }
  .rail-side { position: static; }
  .rail { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .rail-item { border: 1px solid var(--line); padding: 6px 10px; }
}
.nav-group { color: var(--mute); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 10px 12px 2px; }
.nav a.more-tab { display: none; }   /* a phone's tab only (§404) */
.more-sheet a.btn { justify-content: flex-start; gap: 10px; }
.row.tools { gap: 6px; margin-top: -6px; }
.ask-proposal { max-width: 92%; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--gold); background: var(--panel2); display: flex; flex-direction: column; gap: 4px; }
.ask-proposal.done { border-color: var(--line); opacity: .8; }
.ask-plines { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; font-size: .92em; }
.ask-pline code { font-size: .9em; }
.card.brief, .card.letter { border-color: var(--gold); }   /* §498: the letter card is its own class — a test's .card.brief must stay one element */
.brief-head { font-size: 1.08em; font-weight: 600; margin: 4px 0 8px; }
.brief-lines { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.brief-week { margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--line); } .brief-week .review-todo { margin-top: 0; margin-bottom: 6px; }
.ask-start { display: flex; flex-direction: column; gap: 10px; padding: 12px; }
.ask-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line); background: var(--panel2); color: inherit; border-radius: 999px; padding: 5px 11px; font-size: .9em; cursor: pointer; }
.chip:hover { border-color: var(--gold); }
.price-suggest { display: flex; align-items: baseline; gap: 12px; }
.price-ask { font-size: 1.9em; font-weight: 700; color: var(--gold); }
.ask-photo { display: flex; gap: 8px; align-items: flex-start; }
.ask-photo img { max-height: 96px; max-width: 160px; border-radius: 8px; border: 1px solid var(--line); }
.ask-bubble table.ask-md { border-collapse: collapse; margin: 6px 0; font-size: 13px; display: block; overflow-x: auto; max-width: 100%; }
.ask-bubble table.ask-md th, .ask-bubble table.ask-md td { border: 1px solid var(--line); padding: 3px 8px; text-align: left; white-space: nowrap; }
.ask-bubble table.ask-md th { background: var(--panel); font-weight: 600; }
.ask-drawer .btn.live, .btn.live.mic, .row .btn.live { border-color: var(--bad); color: var(--bad); animation: askpulse 1.2s ease-in-out infinite; }
@keyframes askpulse { 50% { opacity: .55; } }
.ask-ctx { padding: 2px 0; }
.ask-bubble a.ask-sku { color: var(--gold); text-decoration: none; border-bottom: 1px dotted var(--gold); }
.block .pitch { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0 6px; font-size: 14px; line-height: 1.35; }
.block .pitch .pitch-text { flex: 1; min-width: 0; }
.block .pitch:not(.has) .pitch-text:empty { display: none; }
.review-todo { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.review-item { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; }
.review-item.done span { text-decoration: line-through; color: var(--mute); }

.switch-biz { margin-top: 6px; width: 100%; min-height: 0; padding: 4px 6px; font-size: 12px; }

/* §336: Home's frame before its data — grey tiles that breathe until the real ones replace them */
.skel-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin: 10px 0 }
.skel-tiles .tile { background: var(--panel); color: transparent; animation: vm-breathe 1.2s ease-in-out infinite; pointer-events: none }
.skel-tiles .tile .n, .skel-tiles .tile .l { background: rgba(127,127,127,.18); border-radius: 6px; min-height: 1em }
.skel-tiles .tile .n { width: 40%; height: 1.6em; margin-bottom: 6px }
.skel-tiles .tile .l { width: 70%; height: .9em }
@keyframes vm-breathe { 0%, 100% { opacity: .55 } 50% { opacity: 1 } }

/* §338: the melt guide */
.melt-spot { display: flex; gap: 10px; flex-wrap: wrap; align-items: stretch; margin: 6px 0 10px }
.melt-spot-tile { border: 1px solid var(--line); border-radius: var(--r); padding: 8px 14px; min-width: 150px; background: var(--panel) }
.melt-spot-tile .l { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--mute) }
.melt-spot-tile .n { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums }
.melt-spot-tile.gold .n { color: var(--gold) }
.melt-spark { display: block; width: 100%; height: 28px; margin-top: 4px; color: var(--mute) }
.melt-chips { display: flex; gap: 6px; flex-wrap: wrap }
.melt-chips .chip.on { background: var(--gold); color: var(--gold-ink); border-color: var(--gold) }
.melt-bar { position: sticky; top: 0; z-index: 2; background: var(--bg); padding: 8px 0 }
.melt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px }
.melt-card { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 10px; background: var(--panel2) }
.melt-card.metal-gold { border-color: color-mix(in srgb, var(--gold) 45%, var(--line)) }
.melt-pic { flex: 0 0 92px; width: 92px; height: 92px; border-radius: 12px; background: var(--panel) center/contain no-repeat; display: flex; align-items: center; justify-content: center; overflow: hidden }
.melt-pic.catalog { background-color: #fff }
.melt-pic.guide { background-size: cover }   /* §571 the guide's own square picture fills its box */
.melt-pic.drawn svg { width: 80px; height: 80px }
.melt-pic.link { cursor: pointer }
.melt-pic input { display: none }
.melt-dot { width: 32px; height: 32px; border-radius: 50%; background: #fff center/cover no-repeat; overflow: hidden }
.melt-dot svg { width: 32px; height: 32px }
.melt-body { min-width: 0; display: flex; flex-direction: column; gap: 2px }
.melt-title { font-size: 15px; line-height: 1.25 }
.melt-val { font-size: 22px; font-weight: 700; margin: 2px 0; font-variant-numeric: tabular-nums }
@media print { .melt-bar, .melt-tools, .head button, .nav, .topbar { display: none !important } .melt-spot-tile { break-inside: avoid } }
/* folded lists (§362): the two big catalog tables on the Shopify screen stay closed until asked */
details.fold > summary { cursor: pointer; list-style: none; padding: 6px 0; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::before { content: '▸ '; color: var(--mute, #888); }
details.fold[open] > summary::before { content: '▾ '; }

/* §407 light pills: the dark tints were hard-coded; in the light theme the colour sits on a pale wash of itself */
:root.light .pill.good { background: #e2f2e9; } :root.light .pill.warn { background: #faeedb; } :root.light .pill.bad { background: #f8e1dd; } :root.light .pill.gold { background: #f5ecd2; }
/* §407 the keyboard: everything a hand can click can be reached and shows where it is */
.buyer:focus-visible, .tile:focus-visible, .rail-item:focus-visible, th.sortable:focus-visible, tr.click:focus-visible, .chip:focus-visible, [role=link][tabindex]:focus-visible, [role=button][tabindex]:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* §462 Intake: the photo zone, the step heads, the parts a lookup filled */
.photo-zone { border: 1.5px dashed var(--line); border-radius: 12px; padding: 10px; min-height: 64px; background: var(--panel2); transition: border-color .15s, background .15s; }
.photo-zone.dropping { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 10%, var(--panel2)); }
.photo-strip { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; min-height: 44px; }
.photo-thumb { position: relative; display: inline-block; width: 96px; height: 96px; cursor: grab; }
.photo-thumb img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); display: block; cursor: pointer; }
.photo-thumb.cover img { border: 2px solid var(--gold); }
.photo-thumb .x { position: absolute; top: -6px; right: -6px; padding: 0 6px; min-height: 0; height: 20px; line-height: 18px; font-size: 12px; background: var(--panel); }
.photo-thumb .clean { position: absolute; bottom: -6px; right: -6px; padding: 0 5px; min-height: 0; height: 20px; line-height: 18px; font-size: 12px; background: var(--panel); }   /* §533 Clean it up */
.photo-thumb .clean.done { background: var(--gold); color: var(--gold-ink); }
.photo-thumb .cover-tag { position: absolute; left: 6px; bottom: 6px; font-size: 10px; background: var(--gold); color: var(--gold-ink); border-radius: 6px; padding: 1px 6px; font-weight: 600; }
.step .stepno { display: inline-flex; width: 24px; height: 24px; border-radius: 50%; background: var(--gold); color: var(--gold-ink); font-weight: 700; font-size: 13px; align-items: center; justify-content: center; }
.field.filled .lbl::after { content: ' •'; color: var(--gold); }
details.more > summary { cursor: pointer; list-style: none; } details.more > summary::before { content: '▸ '; } details.more[open] > summary::before { content: '▾ '; }

/* §467c the platform pages */
.doc h1 { font-size: 22px; margin: 0 0 8px; } .doc h2 { font-size: 17px; margin: 16px 0 6px; } .doc p, .doc li { line-height: 1.5; } .doc ul, .doc ol { padding-left: 22px; } .doc em { color: var(--mute); }

/* §405 helper mode: a stranger's hands on the live screen — scan, the block, the four outcomes; nothing else, no numbers */
.helperbar { display: none; }
body.helper .helperbar { display: block; background: var(--gold); color: var(--gold-ink); border-radius: var(--r); padding: 10px 14px; font-size: 15px; user-select: none; -webkit-user-select: none; touch-action: none; }
body.helper .helperbar .mute { color: var(--gold-ink); opacity: .75; }
body.helper .helperbar.holding { outline: 3px solid var(--text); }
body.helper .nav, body.helper .spotbar, body.helper .bell, body.helper .gsearch, body.helper .topbar .btn, body.helper .who { display: none !important; }
body.helper .head > :not(h1) { display: none; }
body.helper .showgrid { grid-template-columns: 1fr; }
body.helper .showgrid > .stack:first-child > :not(.helperbar):not(.scanrow):not(.scanbox):not(.blockbox):not(.queuedbox) { display: none; }
body.helper .showgrid > .stack:last-child { display: none; }
body.helper .block .nums, body.helper .block .meta, body.helper .block .pitch, body.helper .block .under { display: none !important; }
body.helper .block .title { font-size: 22px; }
body.helper .scanbox { font-size: 24px; min-height: 64px; }
body.helper .outcomes { grid-template-columns: 1fr 1fr; gap: 14px; }
body.helper .outcomes .btn { min-height: 84px; font-size: 22px; }
/* §503 the overlay look card: the overlay's own gold as a token (the colour input's default), the logo box, the preview's dark sample scene and the bands the platform covers */
:root { --overlay-gold: #d4a84b; }
.overlay-logo-box { background: #222; }
.overlay-preview { background: radial-gradient(ellipse at 30% 20%, #3a3f4a, #15181d 70%); }
.overlay-part-thumb { background: radial-gradient(ellipse at 30% 20%, #3a3f4a, #15181d 70%); }   /* §506 the part thumbnails under Settings share the preview's dark scene */
.ov-band { position: absolute; background: rgba(255, 255, 255, .13); outline: 1px dashed rgba(255, 255, 255, .4); pointer-events: none; display: flex; align-items: flex-end; justify-content: flex-end; }
.ov-band-name { font-size: 9px; color: rgba(255, 255, 255, .7); padding: 2px 4px; letter-spacing: .04em; text-transform: uppercase; }
/* §536 the eBay dashboard */
.ebay-head { padding: 10px 14px; }
.cap-gauge { display: inline-flex; align-items: center; gap: 8px; }
.cap-bar { display: inline-block; width: 120px; height: 8px; background: var(--panel2); border-radius: 9px; overflow: hidden; border: 1px solid var(--line); }
.cap-bar i { display: block; height: 100%; background: var(--good); } .cap-bar.warn i { background: var(--warn); } .cap-bar.bad i { background: var(--bad); }
.num { font-variant-numeric: tabular-nums; }
/* §556 the tiles fill their rows however many there are: one row from 1,100 px, as many as fit at 170 px or more below it, the last
   row's tiles sharing its whole width; the hairlines between them are the row's own gap over the line colour */
.dtiles { display: flex; flex-wrap: wrap; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.dtile { flex: 1 1 170px; min-width: 0; background: var(--panel); padding: 12px 14px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; min-height: 108px; }
@media (min-width: 1100px) { .dtiles { flex-wrap: nowrap; } .dtile { flex: 1 1 0; } }
.dtile:hover { background: var(--panel2); }
.dtile-l { color: var(--mute); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.dtile-n { font-size: 26px; font-weight: 700; line-height: 1.15; }
.dtile-s { color: var(--mute); font-size: 12px; min-height: 1.3em; }
.dtile-spark { margin-top: auto; height: 28px; }
.dtile-spark svg { width: 100%; height: 28px; display: block; }
/* §556 a channel dashboard's cards pack in two columns, not in rows: a main column and a rail (2 : 1; .w84 is Whatnot's 8 : 4), each a
   stack, so a short card is followed at once by the next card under it; the columns end level (the last card of each grows to the
   block's bottom edge: the room is inside a card). Under 1,100 px the two columns dissolve into one, in the order each card carries. */
.dcols { display: flex; flex-direction: column; gap: 12px; } .dcol { display: contents; } .dcol > .card { min-width: 0; margin: 0; }
.dcols.w84 { gap: 16px; }
@media (min-width: 1100px) {
  .dcols { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; } .dcols.w84 { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
  .dcol { display: flex; flex-direction: column; gap: 12px; min-width: 0; } .dcols.w84 > .dcol { gap: 16px; }
  .dcol > .card { order: 0 !important; }
}
/* §557 the packer (dashcols.js) levels the two sides: it moves a side's last movable cards to the foot of the other side, and gives
   what is left to the chart, then to cards as a min-height (never more than 120 px each). While it measures, every card is as tall
   as its own content. Rail cards at the foot of the main side sit two abreast: two short stacks, or one card across the whole width. */
.dcols.measuring .card { min-height: 0 !important; }
.dfoot { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: inherit; align-items: start; min-width: 0; } .dfoot.one { grid-template-columns: minmax(0, 1fr); }
.dsub { display: flex; flex-direction: column; gap: inherit; min-width: 0; } .dsub > .card { min-width: 0; margin: 0; }
/* §557 Home uses the dashboards' width and its tiles fill their rows: as many as fit at 165 px or more, a last row sharing its whole
   width; the six figures three abreast (two under 1,100 px), a last one or two sharing the row */
.home-cols { margin-top: 12px; }
.home-wide > .tiles { display: flex; flex-wrap: wrap; } .home-wide > .tiles > .tile { flex: 1 1 165px; }
.home-wide > .tiles.kpis > .tile { flex: 1 1 30%; }
@media (max-width: 1100px) { .home-wide > .tiles.kpis > .tile { flex-basis: 40%; } }
.drow2 { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; align-items: start; }
.drow3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; }
/* §547g a channel dashboard uses the width: the page is 1480 px with 24 px at each side (Whatnot and eBay both); the cards sit on a
   12-column grid placed by span and aligned to the top, so a short card never stretches to its tall neighbour; two columns under
   1100 px, one under 720 px in the phone's order. A tile's context line is one line (the long form in its tooltip). */
.view > .stack.dash-wide { max-width: 1480px; padding-inline: 24px; box-sizing: border-box; }
.dtile { padding: 14px 16px; min-height: 0; }
.dtile-s { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 1.3em; line-height: 1.4; }
.dtile-s .small { font-size: inherit; }
.dtile-spark { margin-top: 8px; height: 48px; } .dtile-spark svg { height: 48px; }
.wn-grid.stack { gap: 16px; } .wn-grid > .card { min-width: 0; margin: 0; }
.bt-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 12px; }   /* the headline figures in a strip: a number over its label */
.bt-grid > div { min-width: 0; } .bt-grid .bt-n { font-size: 22px; font-weight: 700; line-height: 1.15; }
.wn-grid .bt-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.wn-grid [data-card=needs-you] .attn li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }   /* one line each; the tooltip has the whole */
.wn-grid [data-card=shop] .bt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1100px) {
}
@media (max-width: 720px) {
  .view > .stack.dash-wide { padding-inline: 0; }
  .dtile-spark, .dtile-spark svg { height: 28px; }
}
.chart { display: block; width: 100%; }
.sbars { display: flex; flex-direction: column; gap: 3px; }
.sbar { display: grid; grid-template-columns: 70px 1fr 64px; gap: 8px; align-items: center; font-size: 12px; }
.sbar-t { height: 8px; background: var(--panel2); border-radius: 9px; overflow: hidden; } .sbar-t i { display: block; height: 100%; background: var(--gold); }
.sbar-v { text-align: right; color: var(--mute); }
.aphoto { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); background: var(--panel2); display: flex; align-items: center; justify-content: center; flex: none; }
/* §556 the meters fill their rows: 8 across where each gets 104 px or more (888 px with the gaps), else 4 and 4 */
.dmeters { display: grid; grid-template-columns: repeat(auto-fit, minmax(max(calc((100% - 56px) / 8), min(calc((100% - 24px) / 4), calc((888px - 100%) * 9999))), 1fr)); gap: 8px; }
.dmeter { background: var(--panel2); border-radius: 10px; padding: 8px 10px; cursor: pointer; }
.dmeter-n { font-size: 20px; font-weight: 700; } .dmeter.warn .dmeter-n { color: var(--warn); }
.dmeter-l { color: var(--mute); font-size: 12px; }
.tabbadge { display: inline-block; margin-left: 6px; background: var(--bad); color: var(--gold-ink); border-radius: 99px; font-size: 11px; font-weight: 700; padding: 0 6px; line-height: 16px; vertical-align: 1px; }
.ebay-tabs button.primary .tabbadge { background: var(--gold-ink); color: var(--gold); }
@media (max-width: 900px) { .drow2, .drow3 { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .drow2 { display: flex; flex-direction: column; } .drow2 [data-card=needs-you] { order: -1; } }

/* §547a the fold: a short list with its fold line; a card folded to its head */
.fold-line { padding: 6px 0 0; } .fold-line .btn.sm { min-height: 26px; padding: 0 8px; }
.table-wrap.folded .more { display: none; }
.fold-head { display: flex; align-items: center; gap: 8px; } .fold-head .chev { margin-left: auto; min-height: 26px; padding: 0 8px; font-size: 14px; }
.card.folded { padding-bottom: 12px; } .fold-summary { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; }

/* §547a the Whatnot page */
.wn-strip .livedot { margin-right: 2px; }
.wn-tabs .btn.sm { position: relative; }

/* §540 the demo strip over every screen of a demo copy */
.demo-strip { background: var(--warn); color: var(--gold-ink); padding: 4px 14px; font-size: 13px; gap: 10px; }
.demo-strip b { letter-spacing: .08em; }
.demo-strip .btn.sm.ghost { color: var(--gold-ink); border-color: rgba(0,0,0,.25); min-height: 26px; padding: 0 8px; }

/* §547b the run of a show, the heat maps, the HUD's pace */
.heat { display: grid; gap: 2px; align-items: stretch; }
.heat-h, .heat-r { padding: 2px 4px; white-space: nowrap; }
.heat-c { padding: 4px 2px; text-align: center; border-radius: 3px; background: color-mix(in srgb, var(--gold) calc(var(--heat, 0) * 85%), transparent); }
.heat-c.empty { background: transparent; }
.hud-pace { display: flex; gap: 14px; flex-wrap: wrap; padding: 2px 0; }
[data-readiness] li.good { list-style: '✓ '; } [data-readiness] li.bad { list-style: '○ '; }

/* §544 the spot chart and the ticker */
.spotchart .sc-px { font-size: 1.5rem; font-weight: 600; }
.spotchart .sc-box { position: relative; width: 100%; height: 340px; }
.spotchart .sc-canvas { position: absolute; inset: 0; }
.spotchart .sc-box svg { display: none; width: 100%; height: 100%; overflow: visible; }
.spotchart.legacy .sc-canvas, .spotchart.legacy [data-chart-views] { display: none; }
.spotchart.legacy .sc-box svg { display: block; }
.spotchart .sc-tip { position: absolute; top: 8px; left: 8px; pointer-events: none; padding: 6px 10px; border-radius: 4px; background: var(--panel2); border: 1px solid var(--line); white-space: nowrap; }
.spotbar .gear { min-height: 24px; padding: 0 6px; margin-left: auto; opacity: .7; }
.spotbar .m[data-item] { white-space: nowrap; }
@media (max-width: 640px) { .spotchart .sc-box { height: 240px; } .spotchart .sc-px { font-size: 1.2rem; } }

/* §545 the search-words score bar on the eBay Listings table */
.kw-bar { height: 6px; border-radius: 3px; background: var(--line, #ddd); overflow: hidden; width: 100%; max-width: 140px; }
.kw-bar i { display: block; height: 100%; border-radius: 3px; background: var(--good, #2a8); }
.kw-bar i.warn { background: var(--warn, #d90); }
.kw-bar i.bad { background: var(--bad, #c33); }
/* §533b the listing set, the quality badge, the Edit photo sheet */
.photos .photo-thumb { cursor: default; }
.photos .photo-thumb img { width: 110px; height: 110px; cursor: zoom-in; }
.photo-thumb.set img { border-color: var(--gold); }
.photo-thumb .q-badge { position: absolute; top: -6px; left: -6px; width: 20px; height: 20px; border-radius: 50%; background: #e0a100; color: #fff; font-weight: 700; font-size: 13px; line-height: 20px; text-align: center; cursor: help; }
.photo-thumb .q-badge.hard { background: var(--bad, #c0392b); }
.edit-sheet input[type=range] { height: 28px; }
.edit-sheet input[type=range]::-webkit-slider-thumb { width: 24px; height: 24px; }
@media (max-width: 640px) { .edit-sheet input[type=range] { width: 100% !important; } .edit-sheet label.row { flex: 1 1 100%; } }
/* §554b the Profit tab's Sales table: Profit and Margin stay on screen — the item cell holds its width, the money cells never wrap */
.tbl td.nowrap { white-space: nowrap; }
.tbl td.pf-item { min-width: 190px; max-width: 300px; } .pf-sub { margin-top: 2px; overflow-wrap: anywhere; }
@media (max-width: 640px) { .tbl td.pf-item { min-width: 70px; max-width: 80px; font-size: 13px; } }
/* §533e the Edit photo sheet: the dialog never scrolls (the picture is sized to what is left), one row of tabs, a finger's height on touch */
.modal-body:has(> .edit-sheet) { overflow: hidden; }
.edit-sheet .edit-tabs .btn { white-space: nowrap; }
@media (pointer: coarse) { .edit-sheet .btn.sm, .modal:has(.edit-sheet) .modal-foot .btn { min-height: 44px; } }
/* §559 on a phone Cancel, Use this and Use original share one row, so the picture keeps the height */
@media (max-width: 640px) { .modal:has(.edit-sheet) .modal-foot { flex-wrap: nowrap; gap: 6px; } .modal:has(.edit-sheet) .modal-foot .btn { white-space: nowrap; padding-left: 10px; padding-right: 10px; flex: 0 1 auto; min-width: 0; } }
@media (max-width: 640px) { .edit-sheet .edit-tabs { gap: 4px !important; } .edit-sheet .edit-tabs .btn { padding-left: 9px; padding-right: 9px; } }
@media (max-width: 640px) { .edit-sheet label.row { flex-wrap: nowrap; } .edit-sheet label.row input[type=range] { width: auto !important; flex: 1 1 auto; min-width: 0; } }
@media (max-width: 640px), (max-height: 820px) { .clean-sheet .clean-help { display: none; } }
.photo-issues { margin-top: 4px; }
details.setup-done > summary { list-style: none; } details.setup-done > summary::-webkit-details-marker { display: none; }

/* §582 Inventory, the list. The vault panel is dark in both looks: its own tokens (the drawing's ground and gold), checked for
   contrast on that ground in each look (text 15.9:1, the mute 7.6:1, the gold 9.6:1). */
:root { --vault-bg: #14161a; --vault-panel: #1c2026; --vault-line: #2c323b; --vault-text: #f1f2f4; --vault-mute: #a3acb9; --vault-gold: #e2bd4b; --vault-good: #57c592; --vault-bad: #f0796a; }
.inv-find { display: flex; gap: 8px; align-items: stretch; margin: 10px 0; }
.inv-find input[type=search] { flex: 1 1 auto; min-width: 0; font-size: 18px; min-height: 52px; }
.inv-views { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.inv-view { display: inline-flex; gap: 6px; align-items: baseline; padding: 7px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; cursor: pointer; min-height: 36px; }
.inv-view[aria-pressed=true] { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.inv-view .n { font-variant-numeric: tabular-nums; font-weight: 700; }
.inv-view.zero { opacity: .6; }
.inv-more { position: relative; } .inv-more > summary { list-style: none; } .inv-more > summary::-webkit-details-marker { display: none; }
.inv-more .menu { position: absolute; z-index: 30; top: 100%; left: 0; margin-top: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 6px; min-width: 250px; display: grid; gap: 2px; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.inv-more .menu button { text-align: left; border: 0; background: none; color: var(--text); font: inherit; padding: 8px 10px; border-radius: 8px; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; }
.inv-more .menu button:hover, .inv-more .menu button[aria-pressed=true] { background: var(--panel2); }
.vault { background: var(--vault-bg); color: var(--vault-text); border-radius: 14px; padding: 18px 20px; margin-bottom: 12px; display: grid; gap: 14px; }
.vault .mute, .vault .lbl { color: var(--vault-mute); } .vault a, .vault .gold { color: var(--vault-gold); }
.vault .fig { font-size: 40px; font-weight: 750; font-variant-numeric: tabular-nums; line-height: 1.05; }
.vault .live { display: inline-block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--vault-bg); background: var(--vault-good); border-radius: 99px; padding: 1px 8px; vertical-align: middle; margin-left: 8px; }
.vault .up { color: var(--vault-good); } .vault .down { color: var(--vault-bad); }
.vault .cols { display: grid; grid-template-columns: minmax(260px, 1.3fr) repeat(3, minmax(130px, 1fr)); gap: 18px; align-items: start; }
.vault .k { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.vault .chart { background: var(--vault-panel); border-radius: 10px; padding: 8px 10px; } .vault .chart svg { display: block; width: 100%; height: 64px; } .vault .chart path { fill: none; stroke: var(--vault-gold); stroke-width: 2; vector-effect: non-scaling-stroke; }
.vault .split { display: flex; height: 8px; border-radius: 99px; overflow: hidden; background: var(--vault-line); } .vault .split i { display: block; height: 100%; }
.vault .split .m-silver { background: var(--vault-mute); } .vault .split .m-gold { background: var(--vault-gold); } .vault .split .m-platinum { background: var(--vault-text); } .vault .split .m-palladium { background: var(--vault-good); }
.vault .metals { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.vault button { font: inherit; color: var(--vault-text); background: var(--vault-panel); border: 1px solid var(--vault-line); border-radius: 99px; padding: 6px 12px; cursor: pointer; min-height: 34px; }
.vault button[aria-pressed=true] { background: var(--vault-gold); border-color: var(--vault-gold); color: var(--vault-bg); }
.vault button.quiet { background: none; border-color: transparent; color: var(--vault-mute); text-decoration: underline; padding: 6px 4px; }
.vault.shut { display: flex; align-items: center; gap: 14px; padding: 10px 16px; } .vault.shut .fig { font-size: 20px; }
.inv-ready { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-bottom: 12px; }
.inv-meter { text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font: inherit; color: var(--text); cursor: pointer; display: grid; gap: 4px; }
.inv-meter .bar { height: 6px; border-radius: 99px; background: var(--panel2); overflow: hidden; } .inv-meter .bar i { display: block; height: 100%; background: var(--good); }
.inv-meter .n { font-weight: 700; font-variant-numeric: tabular-nums; }
.inv-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; }
.inv-list { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--panel); }
.inv-row, .inv-headrow, .inv-total { display: grid; grid-template-columns: 34px 68px minmax(0, 1fr) 96px 132px 132px 150px; gap: 12px; padding: 12px 14px; align-items: start; }
.inv-list.nocost .inv-row, .inv-list.nocost .inv-headrow, .inv-list.nocost .inv-total { grid-template-columns: 34px 68px minmax(0, 1fr) 96px 150px; }
.inv-headrow { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--mute); border-bottom: 1px solid var(--line); padding-top: 8px; padding-bottom: 8px; }
.inv-row { border-bottom: 1px solid var(--line); cursor: pointer; } .inv-row:last-child { border-bottom: 0; } .inv-row:hover { background: var(--panel2); }
.inv-row.marked { box-shadow: inset 3px 0 0 var(--gold); background: var(--panel2); } .inv-row.dim { opacity: .6; }
.inv-group { padding: 8px 14px; background: var(--panel2); border-bottom: 1px solid var(--line); font-weight: 700; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.inv-name { font-weight: 650; overflow-wrap: anywhere; white-space: normal; }
.inv-sub { color: var(--mute); font-size: 13px; overflow-wrap: anywhere; } .inv-chips { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.inv-num { text-align: right; font-variant-numeric: tabular-nums; } .inv-num .note { font-size: 12px; color: var(--mute); }
.inv-photo { width: 68px; text-align: center; font-size: 11px; color: var(--mute); } .inv-photo .ph { width: 64px; height: 64px; border-radius: 10px; background: var(--panel2); display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); }
.inv-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.inv-photo .ph.m-gold { color: var(--gold); } .inv-photo .ph.m-silver { color: var(--mute); } .inv-photo .ph svg { width: 34px; height: 34px; }
.inv-step { display: inline-block; font-weight: 650; } .inv-total { border-top: 2px solid var(--line); font-weight: 700; background: var(--panel2); }
.inv-foot { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 10px 2px; color: var(--mute); font-size: 13px; }
.inv-keys kbd { border: 1px solid var(--line); border-radius: 5px; padding: 0 5px; font: inherit; }
.inv-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.inv-card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; cursor: pointer; display: grid; position: relative; }
.inv-card .pic { aspect-ratio: 4 / 3; background: var(--panel2); display: grid; place-items: center; overflow: hidden; } .inv-card .pic img { width: 100%; height: 100%; object-fit: cover; }
.inv-card .body { padding: 10px 12px; display: grid; gap: 4px; } .inv-card .badge { position: absolute; top: 8px; left: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 99px; font-size: 11px; padding: 1px 8px; }
.inv-card .qty { position: absolute; top: 8px; right: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 99px; font-size: 12px; padding: 1px 8px; font-weight: 700; }
.inv-card .tick { position: absolute; bottom: 8px; left: 8px; }
.inv-sel { position: sticky; bottom: 0; z-index: 20; background: var(--panel); border: 1px solid var(--gold); border-radius: 12px; padding: 10px 14px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 10px; box-shadow: 0 -6px 20px rgba(0,0,0,.18); }
@media (max-width: 760px) {
  .vault .cols { grid-template-columns: 1fr 1fr; } .vault .fig { font-size: 30px; } .vault .chart, .vault .more { display: none; }
  .inv-views { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; } .inv-view { flex: none; min-height: 44px; }
  .inv-headrow { display: none; }
  .inv-row, .inv-list.nocost .inv-row { grid-template-columns: 30px 56px minmax(0, 1fr); gap: 8px 10px; }
  .inv-row .inv-num { grid-column: 3; text-align: left; } .inv-row .inv-num.hide-phone { display: none; }
  .inv-photo { width: 56px; } .inv-photo .ph { width: 52px; height: 52px; }
  .inv-total, .inv-list.nocost .inv-total { grid-template-columns: 1fr; } .inv-sel .btn, .inv-bar .btn, .inv-find .btn { min-height: 44px; }
  .inv-ready { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { .inv-row, .inv-view, .inv-meter { transition: none; } }

/* §584 a piece, opened beside the list: 560 wide at the right; the whole screen on a phone */
.pp { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); z-index: 46; background: var(--panel); border-left: 1px solid var(--line); box-shadow: -10px 0 30px rgba(0,0,0,.22); overflow-y: auto; outline: none; }
.pp-body { padding: 18px 24px 28px; display: grid; gap: 16px; }
.pp-top { display: flex; align-items: center; gap: 8px; } .pp-top .btn { min-width: 44px; min-height: 44px; }
.pp-title { font-size: 22px; font-weight: 650; margin: 0 0 8px; overflow-wrap: anywhere; }
.pp-photo { height: 250px; border-radius: 14px; background: var(--panel2); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; } .pp-photo img { width: 100%; height: 100%; object-fit: contain; }
.pp-thumbs { display: flex; gap: 6px; } .pp-thumb { width: 56px; height: 56px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel2); padding: 0; overflow: hidden; cursor: pointer; } .pp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pp-figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pp-fig { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--panel2); } .pp-fig .big { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pp-scale { position: relative; height: 50px; } .pp-scale .track { position: absolute; left: 0; right: 0; top: 8px; height: 6px; border-radius: 99px; background: var(--panel2); border: 1px solid var(--line); }
.pp-scale .mk { position: absolute; top: 2px; transform: translateX(-50%); display: grid; justify-items: center; gap: 4px; font-size: 12px; } .pp-scale .mk i { display: block; width: 2px; height: 18px; background: var(--text); } .pp-scale .mk b { font-weight: 600; white-space: nowrap; }
.pp-scale .mk.k1 b, .pp-scale .mk.k3 b { margin-top: 12px; }
.pp-band { border-radius: 12px; padding: 10px 14px; background: var(--panel2); border: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; } .pp-band.bad { border-color: var(--bad); color: var(--bad); }
.pp-acts .four { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; } .pp-acts .four .btn { min-height: 48px; } .pp-acts .links { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; align-items: center; }
@media (max-width: 760px) { .pp { width: 100vw; border-left: 0; } .pp-body { padding: 14px 16px 24px; } .pp-acts .four { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pp-acts .links .btn { min-height: 44px; } }

/* §573 Help rebuilt. The app's own tokens and nothing else; one gold tint for icon squares and the open task, declared here as
   tokens for both themes (light: the reference's own step; dark: the same step from --gold over --panel). */
:root { --help-tint: color-mix(in srgb, var(--gold) 14%, var(--panel)); --help-tint-line: color-mix(in srgb, var(--gold) 38%, var(--panel)); --help-soft: 0 1px 2px color-mix(in srgb, var(--text) 5%, transparent), 0 10px 28px color-mix(in srgb, var(--text) 7%, transparent); }
.hp { box-sizing: border-box; width: 100%; max-width: 1120px; margin: 0 auto; padding: 24px 8px 56px; display: flex; flex-direction: column; gap: 28px; font-size: 14px; line-height: 1.45 }
.hp h1, .hp h2, .hp p { margin: 0 } .hp a { text-decoration: none }
.hp-front { gap: 40px; padding-top: 32px }
.hp-sections { display: flex; flex-direction: column; gap: 40px }
.hp-hero { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center }
.hp-hero h1 { font-size: 40px; line-height: 1.1; font-weight: 750; letter-spacing: -0.02em }
.hp-lede { max-width: 620px; font-size: 16px; line-height: 1.5; color: var(--mute) }
.hp-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; color: var(--mute); text-transform: uppercase } .hp-eyebrow.gold { color: var(--gold); letter-spacing: 0.14em }
.hp-mute { color: var(--mute) }
.hp-search { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; max-width: 660px; height: 60px; box-sizing: border-box; padding: 0 18px; margin-top: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--help-soft); color: var(--mute) }
.hp-search input { flex: 1 1 auto; min-width: 0; height: 44px; min-height: 44px; border: 0; outline: 0; background: transparent; font: inherit; font-size: 17px; color: var(--text); padding: 0; box-shadow: none }
.hp-search:focus-within { border-color: var(--gold) }
.hp-key { font-size: 12px; color: var(--mute); border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; background: var(--panel2) }
.hp-tries { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; font-size: 13px }
.hp-try { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--text); font-weight: 600 }
.hp-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 22px }
.hp-card.tight { padding: 24px 12px 12px; gap: 0 } .hp-card.tight > h2 { padding: 0 16px 12px }
.hp-card h2, .hp-plain h2 { font-size: 20px; line-height: 1.2; font-weight: 700 }
.hp-plain { display: flex; flex-direction: column; gap: 16px }
.hp-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px } .hp-card-head > a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600 } .hp .btn { min-height: 44px } .hp-card-head .btn, .hp-notin-row .btn, .hp-actions .btn, .hpp-foot .btn { min-height: 44px }
.hp-starts { display: flex; flex-wrap: wrap; gap: 14px }
.hp-start { flex: 1 1 210px; min-width: 0; display: flex; flex-direction: column; gap: 10px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel2); color: var(--text) }
.hp-num, .hp-disc { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 999px; background: var(--gold); color: var(--bg); font-weight: 700; font-size: 14px; flex: 0 0 auto }
.hp-disc { width: 34px; height: 34px }
.hp-start-title { font-size: 16px; font-weight: 700; line-height: 1.25 } .hp-start-meta { margin-top: auto; padding-top: 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; color: var(--gold); text-transform: uppercase }
.hp-two { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start } .hp-two > :first-child { flex: 999 1 460px; min-width: 0 } .hp-two > :last-child { flex: 1 1 300px; min-width: 0; gap: 14px; padding: 24px }
.hp-row { display: flex; align-items: center; gap: 14px; min-height: 60px; box-sizing: border-box; padding: 8px 16px; border-radius: 12px; color: var(--text); border-top: 1px solid var(--line) }
.hp-row:hover, .hp-area:hover, .hp-start:hover, .hp-relcard:hover { border-color: var(--help-tint-line); background: var(--help-tint) }
.hp-row > svg, .hp-wrong > svg { flex: 0 0 auto; color: var(--mute) }
.hp-ico { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; background: var(--help-tint); color: var(--gold) } .hp-ico.lg { width: 40px; height: 40px } .hp-ico.warn { color: var(--warn, var(--gold)) }
.hp-row-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px } .hp-row-title { font-size: 15px; font-weight: 650 } .hp-row-sub { font-size: 12.5px; color: var(--mute) }
.hp-wrong-head { display: flex; align-items: center; gap: 10px }
.hp-wrong { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; padding: 4px 0; border-top: 1px solid var(--line); color: var(--text); font-size: 15px; font-weight: 600 }
.hp-notin { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 12px; background: var(--panel2) } .hp-notin-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 4px } .hp-notin-row a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; font-weight: 600 }
.hp-areas { display: flex; flex-wrap: wrap; gap: 14px }
.hp-area { flex: 1 1 236px; min-width: 0; display: flex; align-items: flex-start; gap: 14px; padding: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; color: var(--text) }
.hp-area-text { min-width: 0; display: flex; flex-direction: column; gap: 3px } .hp-area-title { font-size: 15px; font-weight: 700 }
.hp-news { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; min-height: 48px; box-sizing: border-box; padding: 12px 0; border-top: 1px solid var(--line); color: var(--text) } .hp-news-date { flex: 0 0 96px; font-size: 12.5px; color: var(--mute) } .hp-news-text { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 2px }
.hp-results { width: 100%; max-width: 860px; margin: 0 auto; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 20px 12px 12px; box-sizing: border-box } .hp-results > .hp-eyebrow, .hp-results > p { padding: 0 16px 10px }
.hp-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--mute) } .hp-crumbs a { font-weight: 600; min-height: 44px; display: inline-flex; align-items: center }
.hp-cols { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start }
.hp-main { flex: 999 1 520px; min-width: 0; max-width: 740px; display: flex; flex-direction: column; gap: 32px }
.hp-head { display: flex; flex-direction: column; gap: 14px } .hp-head h1 { font-size: 34px; line-height: 1.15; font-weight: 750; letter-spacing: -0.02em } .hp-head .hp-lede { font-size: 17px; max-width: none }
.hp-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 2px }
.hp-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; white-space: nowrap } .hp-chip.plan { background: var(--help-tint); border-color: var(--help-tint-line); color: var(--gold) }
.hp-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px } .hp-open { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px; font-weight: 700; font-size: 15px }
.hp-need { display: flex; flex-direction: column; gap: 12px; padding: 20px 22px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px } .hp-need h2 { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; color: var(--mute) }
.hp-need-row { display: flex; align-items: flex-start; gap: 10px; font-size: 15px } .hp-need-row svg { flex: 0 0 auto; margin-top: 2px; color: var(--gold) }
.hp-sect { display: flex; flex-direction: column; gap: 12px } .hp-sect > h2, .hp-more h2 { font-size: 22px; line-height: 1.2; font-weight: 700 }
.hp-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column } .hp-steps li { display: flex; gap: 16px }
.hp-rail { flex: 0 0 34px; display: flex; flex-direction: column; align-items: center; gap: 6px } .hp-line { flex: 1 1 auto; width: 2px; background: var(--help-tint-line); border-radius: 2px }
.hp-steps p { padding: 5px 0 22px; font-size: 16px; line-height: 1.55 } .hp-steps li:last-child p { padding-bottom: 0 }
.hp-steps.small p { font-size: 14.5px; padding: 3px 0 16px } .hp-steps.small .hp-disc { width: 26px; height: 26px; font-size: 12.5px } .hp-steps.small .hp-rail { flex-basis: 26px } .hp-steps.small li { gap: 12px }
.hp-notes { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.55 }
.hp-wrongrow { border-top: 1px solid var(--line); padding: 0 16px } .hp-wrongrow:first-child { border-top: 0 } .hp-wrongrow summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; cursor: pointer; list-style: none; font-size: 15px; font-weight: 600 } .hp-wrongrow summary::-webkit-details-marker, .hp-more summary::-webkit-details-marker, .hpp-task summary::-webkit-details-marker { display: none }
.hp-wrongrow[open] summary svg, .hp-more[open] summary svg, .hpp-task[open] > summary > svg:last-child { transform: rotate(90deg) } .hp-wrongrow p { padding: 0 0 16px; font-size: 15px; line-height: 1.55; color: var(--mute) }
.hp-more summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; cursor: pointer; list-style: none } .hp-more .hp-notes { margin-top: 12px; color: var(--mute) }
.hp-related { display: flex; flex-wrap: wrap; gap: 14px } .hp-relcard { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--text) }
.hp-side { flex: 1 1 240px; min-width: 0; max-width: 300px; display: flex; flex-direction: column; gap: 16px; position: sticky; top: 16px }
.hp-side-card { display: flex; flex-direction: column; gap: 8px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel) } .hp-side-card a { min-height: 32px; display: flex; align-items: center; font-weight: 600 } .hp-side-card.tip { flex-direction: row; align-items: flex-start; gap: 12px; background: var(--panel2) }
.help-mark { min-width: 44px; min-height: 44px; border-radius: 999px; font-weight: 700; font-size: 16px; border: 1px solid var(--line); flex: 0 0 auto }
.hpp-shade { position: fixed; inset: 0; z-index: 54; background: color-mix(in srgb, var(--text) 18%, transparent) }
.hpp { position: fixed; top: 0; right: 0; bottom: 0; z-index: 55; width: min(420px, 100vw); box-sizing: border-box; display: flex; flex-direction: column; background: var(--bg); border-left: 1px solid var(--line); box-shadow: -12px 0 32px color-mix(in srgb, var(--text) 10%, transparent); font-size: 14px; line-height: 1.45 }
.hpp h2 { margin: 0; font-size: 22px; line-height: 1.2 } .hpp-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 20px 12px } .hpp-x { min-width: 44px; min-height: 44px }
.hpp-body { flex: 1 1 auto; overflow: auto; padding: 4px 20px 20px; display: flex; flex-direction: column; gap: 12px } .hpp-what { margin: 0 0 6px; font-size: 15px; color: var(--mute) }
.hpp-task { border: 1px solid var(--line); border-radius: 12px; background: var(--panel) } .hpp-task[open] { background: var(--help-tint); border-color: var(--help-tint-line) }
.hpp-task summary { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 12px; cursor: pointer; list-style: none } .hpp-task > ol, .hpp-task > ul { padding: 6px 14px 4px } .hpp-task > ul { padding-left: 32px }
.hpp-full { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px 6px; font-weight: 700; text-decoration: none }
.hpp-foot { display: flex; flex-wrap: wrap; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--line); background: var(--panel) }
@media (max-width: 720px) { .hp { padding: 16px 0 40px } .hp-hero h1 { font-size: 30px } .hp-head h1 { font-size: 28px } .hp-card { padding: 20px 16px } .hp-card.tight { padding: 18px 4px 6px } .hp-side { max-width: none; position: static } .hp-cols { gap: 24px } .hpp { width: 100vw; border-left: 0 } .hp-search { height: 56px } }
@media print { .hpp, .hpp-shade, .help-mark { display: none } }

/* §585 Offers, the desk. The app's tokens; the dark panel is the vault's (§582), dark in both looks. */
.od { box-sizing: border-box; max-width: 1120px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; padding-bottom: 32px }
.od h1 { margin: 0; font-size: 32px; font-weight: 650; letter-spacing: -0.015em } .od h2 { margin: 0; font-size: 18px; font-weight: 650 } .od-lede { margin: 4px 0 0; color: var(--mute); font-size: 15px }
.od-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin: 0 } .od-head > .grow { flex: 1 1 260px; min-width: 0 } .od-head > .od-tools { min-width: 0; max-width: 100% } .od, .od-head { min-width: 0; width: 100% } .od-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px } .od-tools .btn { min-height: 46px; display: inline-flex; align-items: center; font-weight: 600; text-decoration: none }
.od-panel { background: var(--vault-bg); color: var(--vault-text); border-radius: 18px; padding: 26px 28px; display: flex; flex-wrap: wrap; gap: 28px; align-items: stretch }
.od-panel-main { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 10px } .od-eyebrow { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 650; color: var(--vault-mute) }
.od-big { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px } .od-n { font-size: 60px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; color: var(--vault-gold); font-variant-numeric: tabular-nums } .od-big-t { font-size: 20px; font-weight: 600 }
.od-panel-sub { font-size: 15.5px; color: var(--vault-text); opacity: .86; font-variant-numeric: tabular-nums; min-height: 1em }
.od-go-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 8px } .od-go { display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 22px; border-radius: 12px; background: var(--vault-gold); color: var(--vault-bg); font-size: 16px; font-weight: 700; text-decoration: none }
.od-figs { flex: 1 1 420px; min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-content: center } .od-fig { border-left: 1px solid var(--vault-line); padding-left: 14px; min-width: 0 } .od-fig-l { font-size: 12.5px; color: var(--vault-mute) } .od-fig-v { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums }
.od-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px } .od-stages { display: flex; gap: 8px; overflow-x: auto; max-width: 100%; padding-bottom: 2px }
.od-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; font-weight: 600; white-space: nowrap; cursor: pointer } .od-pill[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--gold-ink) }
.od-count { font-size: 12.5px; font-variant-numeric: tabular-nums; opacity: .8 } .od-find { flex: 1 1 240px; margin-left: auto; max-width: 340px; min-height: 46px; border-radius: 12px }
.od-groups { display: flex; flex-direction: column; gap: 20px } .od-group { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden } .od-group-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 16px 20px 12px }
.od-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; padding: 16px 20px; border-top: 1px solid var(--line) } .od-who { flex: 999 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 4px }
.od-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; font-size: 16.5px; font-weight: 650 } .od-via, .od-sub { font-size: 12.5px; color: var(--mute); font-weight: 400 } .od-via { font-size: 13px } .od-what { font-size: 14px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere }
.od-flag { font-size: 13.5px; font-weight: 600; color: var(--gold) } .od-flag.good { color: var(--good) } .od-flag.warn { color: var(--warn) }
.od-clock { flex: 1 1 120px; min-width: 0 } .od-clock-1 { font-size: 15px; font-weight: 650; font-variant-numeric: tabular-nums } .od-clock-1.warn { color: var(--warn) } .od-clock-1.bad { color: var(--bad) }
.od-money { flex: 1 1 150px; min-width: 0; text-align: right; font-variant-numeric: tabular-nums } .od-total { font-size: 18px; font-weight: 700 }
.od-act { flex: 0 0 auto; min-height: 44px; min-width: 150px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-weight: 650 }
.od-empty { padding: 16px 20px; border-top: 1px solid var(--line); color: var(--mute) } .od-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--mute) } .od-foot a { display: inline-flex; align-items: center; min-height: 44px }
@media (max-width: 720px) { .od h1 { font-size: 26px } .od-panel { padding: 20px 16px; gap: 18px } .od-n { font-size: 48px } .od-figs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px } .od-fig { padding-left: 8px } .od-fig-v { font-size: 17px } .od-row { padding: 14px 14px } .od-money { text-align: left; flex-basis: 110px } .od-act { flex: 1 1 100%; } .od-find { max-width: none; flex-basis: 100% } .od-tools .btn { flex: 1 1 auto; justify-content: center } .od-head > .grow { order: 0; flex: 1 1 0 } .od-head > .help-mark { order: 1 } .od-head > .od-tools { order: 2; flex: 1 1 100% } }

/* §586 The offer, read and priced. Tokens only; the offer's panel is the vault's dark panel (§582), dark in both looks. */
.op { box-sizing: border-box; max-width: 1240px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; padding-bottom: 40px; min-width: 0; width: 100% }
.op h1 { margin: 2px 0 0; font-size: 30px; font-weight: 650; letter-spacing: -0.015em } .op h2 { margin: 0; font-size: 17px; font-weight: 650 } .op-back { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px }
.op-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 0 } .op-run { display: flex; align-items: center; gap: 10px } .op-run .btn { min-height: 44px }
.op-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px } .op-chip { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); font-size: 13px; color: var(--mute) } .op-chip.done { color: var(--good); border-color: color-mix(in srgb, var(--good) 40%, var(--panel)) } .op-chip.on { background: var(--text); color: var(--bg); border-color: var(--text); font-weight: 650 }
.op-cols { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start } .op-col1 { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 18px } .op-lines { flex: 999 1 420px; min-width: 0; padding: 0 } .op-col3 { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 18px }
.op-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 8px } .op-mute { color: var(--mute); font-size: 13.5px } .op-msg { margin: 0; font-size: 14.5px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere }
.op-card.op-lines { padding: 0; gap: 0 }
.op-lines-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; padding: 18px 18px 12px } .op-look-h { padding: 14px 18px; background: var(--help-tint); border-top: 1px solid var(--help-tint-line); border-bottom: 1px solid var(--help-tint-line); color: var(--gold); font-size: 13.5px }
.op-look { padding: 16px 18px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px } .op-look-t { font-size: 15.5px; font-weight: 650 } .op-why { color: var(--gold); font-size: 13.5px }
.op-pay { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 4px } .op-price { width: 130px; min-height: 44px; text-align: right; font-size: 16px; font-weight: 650; font-variant-numeric: tabular-nums } .op-r { text-align: right } .op-b { font-weight: 650 }
.op-btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin-top: 4px } .op-btns .btn { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none } .op-keep { color: var(--good); border-color: var(--good); font-weight: 650 } .op-foot { justify-content: flex-start; padding: 14px 18px 18px }
.op-sure-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; padding: 16px 18px 8px } .op-good { color: var(--good) }
.op-table { display: flex; flex-direction: column } .op-tr { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 10px; padding: 12px 18px; border-top: 1px solid var(--line); font-size: 14px; font-variant-numeric: tabular-nums; align-items: center } .op-th { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); font-weight: 650; border-top: 0 }
.op-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; font-weight: 600 } .op-out { padding: 14px 18px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; color: var(--mute) } .op-out-row { display: flex; align-items: center; justify-content: space-between; gap: 10px } .op-out-row .btn { min-height: 44px }
.op-panel { background: var(--vault-bg); color: var(--vault-text); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 10px; font-size: 14px } .op-total { font-size: 38px; font-weight: 700; letter-spacing: -0.02em; color: var(--vault-gold); font-variant-numeric: tabular-nums; line-height: 1.05 }
.op-bar { height: 8px; border-radius: 999px; background: var(--vault-line); overflow: hidden } .op-bar span { display: block; height: 100%; background: var(--vault-gold) } .op-two { display: flex; gap: 20px; font-variant-numeric: tabular-nums } .op-pgood { color: var(--vault-good); font-weight: 650 } .op-pbad { color: var(--vault-bad); font-weight: 650 } .op-rule { height: 1px; background: var(--vault-line); margin: 4px 0 }
.op-warn { border: 1px solid var(--vault-line); border-radius: 12px; padding: 12px; color: var(--vault-gold) } .op-field { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 4px } .op-select { flex: 1 1 140px; min-height: 44px; border-radius: 10px; background: var(--vault-panel); color: var(--vault-text); border: 1px solid var(--vault-line); padding: 0 10px; font: inherit }
.op-send { min-height: 50px; border: 0; border-radius: 12px; background: var(--vault-gold); color: var(--vault-bg); font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; margin-top: 6px } .op-linksc { gap: 0; padding: 4px 18px } .op-linksc a { display: flex; align-items: center; min-height: 46px; border-top: 1px solid var(--line); font-weight: 600; text-decoration: none } .op-linksc a:first-child { border-top: 0 }
.op-sheet { display: flex; flex-direction: column; gap: 10px; min-width: min(560px, 82vw) } .op-sheet label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--mute) } .op-body { font: inherit; width: 100%; box-sizing: border-box } .op-checks { display: flex; flex-direction: column; gap: 4px; font-size: 13.5px } .op-check.ok { color: var(--good) } .op-check.no { color: var(--warn) } .op-answers { display: flex; flex-wrap: wrap; gap: 10px } .op-answer { flex: 1 1 150px; min-height: 44px; display: flex; flex-direction: column; gap: 2px; align-items: flex-start; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; cursor: pointer; text-align: left } .op-answer b { font-size: 22px; font-variant-numeric: tabular-nums } .op-answer.on { border-color: var(--gold); background: var(--help-tint) } .op-note { padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); white-space: pre-wrap }
.op-confirm { padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel2) }
@media (max-width: 720px) { .op h1 { font-size: 24px } .op-tr { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); } .op-tr > :nth-child(2) { display: none } .op-total { font-size: 32px } }

/* §586 Pricing rules' three cards */
.or { display: flex; flex-direction: column; gap: 18px; margin-bottom: 18px } .or-two { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start } .or-try { flex: 999 1 380px; min-width: 0 } .or-metal { flex: 1 1 280px; min-width: 0 }
.or-out { padding: 12px; border-radius: 12px; background: var(--help-tint); border: 1px solid var(--help-tint-line); font-size: 14px } .or-row { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px } .or-num { width: 90px; min-height: 44px; text-align: right } .or select, .or .btn, .or input { min-height: 44px }
.or-changes { display: flex; flex-direction: column; gap: 6px } .or-change { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 8px; font-size: 13.5px; padding: 6px 0; border-top: 1px solid var(--line) } .or-usual { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 18px } .or-usual label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--mute) }
/* §587 */ .or-tick { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; margin-right: 10px; font-weight: 500 } .op-sphotos { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; font-size: 14px }
/* §588b the seller signs on this screen */ .ts-sheet { position: fixed; inset: 0; z-index: 400; background: var(--bg); overflow: auto; padding: 18px 16px 28px } .ts-in { max-width: 620px; margin: 0 auto } .ts-in h2 { margin: 0 0 2px } .ts-lines { width: 100%; border-collapse: collapse; margin: 12px 0 } .ts-lines td { padding: 8px 4px; border-bottom: 1px solid var(--line) } .ts-lines td.r { text-align: right; white-space: nowrap; font-weight: 600 } .ts-total { font-size: 20px; font-weight: 800; margin: 6px 0 10px } .ts-says { margin: 0 0 12px; padding-left: 20px; font-size: 14.5px } .ts-pad { width: 100%; height: 190px; border: 1px solid var(--line); border-radius: 10px; background: #fff; touch-action: none; display: block } .ts-done { min-width: 120px; min-height: 48px }
/* §589 the shop's shipping sheet */ .os-ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px } .os-way { display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--text); cursor: pointer; min-height: 44px; font: inherit } .os-way.on { border: 2px solid var(--gold, var(--accent)); } .os-row { display: flex; gap: 8px; align-items: center; padding: 3px 0; font-size: 14px } .os-row .os-v { flex: 1; white-space: pre-wrap } .os-box { border-top: 1px solid var(--line); padding-top: 10px; display: flex; flex-direction: column; gap: 6px } .os-ft { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px } .os-msg { white-space: pre-wrap; font: inherit; font-size: 13.5px; margin: 0; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel2) }
/* §576 Settings, the frame. Two tokens of its own: a hairline inside panels and a tint behind section icons. */
:root { --hair: #262c35; --icon-tint: #2a2618 }
:root.light { --hair: #eee9de; --icon-tint: #f5efdc }
.sf { width: 100%; max-width: 1180px; margin: 0 auto; box-sizing: border-box } .sf-head h1 { margin: 0 } .sf-sub, .sf-sum { color: var(--mute); font-size: 14px } .sf-sum { display: block; font-weight: 400 }
.sf-search { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: var(--panel); border-radius: 14px; padding: 0 14px; min-height: 52px; margin: 14px 0 8px } .sf-search-i { color: var(--mute); display: inline-flex }
.sf-search-in { flex: 1; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 17px; min-height: 50px; outline: none }
.sf-results { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); overflow: hidden; margin-bottom: 10px }
.sf-hit { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 8px 14px; border: 0; border-bottom: 1px solid var(--hair); background: transparent; color: var(--text); font: inherit; text-align: left; cursor: pointer } .sf-hit:last-child { border-bottom: 0 } .sf-hit:hover, .sf-hit:focus-visible { background: var(--panel2) }
.sf-hit-n { font-weight: 600; flex: 1 } .sf-hit-p { color: var(--mute); font-size: 13.5px } .sf-chev { color: var(--mute); display: inline-flex } .sf-none { padding: 12px 14px; color: var(--mute) }
.sf-often { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 6px 0 14px } .sf-label { color: var(--mute); font-size: 13px; margin-right: 4px }
.sf-chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--text); font: inherit; font-size: 14.5px; cursor: pointer; text-decoration: none }
.sf-worth { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; margin-bottom: 16px } .sf-tile { display: flex; flex-direction: column; gap: 4px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); color: var(--text); text-decoration: none; min-height: 44px } .sf-tile-t { font-weight: 600 } .sf-tile-s { color: var(--mute); font-size: 13.5px }
.sf-state { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; white-space: nowrap } .sf-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block } .sf-state.good { color: var(--good) } .sf-state.warn { color: var(--warn) } .sf-state.mute { color: var(--mute) }
.sf-dir { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px } .sf-panel, .sf-strip, .sf-page { border: 1px solid var(--line); border-radius: 16px; background: var(--panel); overflow: hidden }
.sf-panel-h { display: flex; gap: 12px; align-items: center; padding: 14px 16px; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--hair) } .sf-panel-h b { display: block; font-size: 16px }
.sf-ico { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: var(--icon-tint); color: var(--gold); flex: none }
.sf-rows { display: flex; flex-direction: column } .sf-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 6px 16px; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--hair) } .sf-row:last-child { border-bottom: 0 } a.sf-row:hover, a.sf-row:focus-visible { background: var(--panel2) } .sf-row-t { flex: 1 }
.sf-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; padding-right: 12px } .sf-strip .sf-panel-h { border-bottom: 0 } .sf-strip-r { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 0 }
.sf-changed { margin-top: 12px } .sf-all { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; color: var(--gold) }
.sf-sec { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 20px; align-items: start } .sf-rail { position: sticky; top: 8px; display: flex; flex-direction: column; gap: 2px }
.sf-back { display: inline-flex; align-items: center; min-height: 44px; color: var(--gold); text-decoration: none; font-weight: 600 } .sf-rail-i { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 8px; border-radius: 12px; color: var(--text); text-decoration: none } .sf-rail-i .sf-ico { width: 32px; height: 32px; border-radius: 10px } .sf-rail-i.on { background: var(--panel); border: 1px solid var(--line); font-weight: 700 }
.sf-rail-p { display: flex; flex-direction: column; margin: 2px 0 6px 50px } .sf-rail-p a { min-height: 36px; display: flex; align-items: center; color: var(--mute); text-decoration: none; font-size: 14px } .sf-rail-p a:hover { color: var(--text) }
.sf-crumb { color: var(--mute); font-size: 14px; margin-bottom: 4px } .sf-crumb a { color: var(--gold) } .sf-main h1 { margin: 0 0 2px } .sf-page { margin-top: 14px; scroll-margin-top: 12px } .sf-page-h { padding: 14px 16px; border-bottom: 1px solid var(--hair) } .sf-page-t { margin: 0; font-size: 18px }
.sf-how { display: inline-flex; align-items: center; min-height: 44px; color: var(--gold); font-size: 14px } .sf-body { padding: 4px 12px 12px } .sf-body > .card { border: 0; box-shadow: none; background: transparent; padding: 8px 4px; margin: 0 } .sf-body > .card > h2:first-child, .sf-body > .card > h3:first-child { display: none } .sf-body > .card + .card { border-top: 1px solid var(--hair) } .sf-body > .card + .card > h2:first-child { display: block; font-size: 15px }
.sf-flash { outline: 2px solid var(--gold); outline-offset: 2px; transition: outline-color .6s }
.sf-jobs { padding: 0 } .sf-job { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--hair) } .sf-job:last-child { border-bottom: 0 } .sf-job-t { flex: 1; min-width: 0 }
.sf-switch { position: relative; width: 52px; height: 32px; min-height: 32px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel2); cursor: pointer; flex: none; padding: 0 } .sf-switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--mute); transition: left .15s } .sf-switch.on { background: var(--good); border-color: var(--good) } .sf-switch.on::after { left: 23px; background: var(--panel) } .sf-switch::before { content: ''; position: absolute; inset: -7px }
@media (max-width: 760px) { .sf-sec { grid-template-columns: 1fr } .sf-rail { position: static; flex-direction: row; flex-wrap: wrap } .sf-rail-i, .sf-rail-p { display: none } .sf-dir { grid-template-columns: 1fr } .sf-job { flex-wrap: wrap } .sf-hit { flex-wrap: wrap } }
/* §577 Settings rows and the page's save bar */
.sr-rows { display: flex; flex-direction: column } .sr-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--hair) } .sr-row:last-child { border-bottom: 0 } .sr-row.wide { grid-template-columns: 1fr } .sr-row.wide .sr-c { justify-content: stretch }
.sr-head { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--mute); padding: 14px 0 4px } .sr-label { font-weight: 600 } .sr-line { color: var(--mute); font-size: 14px; margin-top: 2px } .sr-err { color: var(--bad); font-size: 14px; margin-top: 4px; font-weight: 600 } .sr-c { display: flex; align-items: center; gap: 8px; justify-content: flex-end } .sr-c input:not([type=checkbox]), .sr-c select { min-height: 44px } .sr-unit { color: var(--mute) }
.sr-row.sr-locked { opacity: .5 } .sr-row.sr-changed .sr-label::after { content: ' •'; color: var(--gold) }
.sr-switch { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; position: relative } .sr-switch .sr-check { position: absolute; left: 0; top: 50%; transform: translateY(-50%); z-index: 1; opacity: 0; width: 52px !important; height: 32px !important; margin: 0; cursor: pointer }   /* above the track and its size, so a press on the box itself (a person's, or a test's check()) lands on the box */ .sr-track { width: 52px; height: 32px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel2); position: relative; flex: none; box-sizing: border-box } .sr-track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--mute); transition: left .15s } .sr-switch.on .sr-track { background: var(--good); border-color: var(--good) } .sr-switch.on .sr-track::after { left: 23px; background: var(--panel) } .sr-switch .sr-check:focus-visible + .sr-track { outline: 2px solid var(--gold); outline-offset: 2px } .sr-onoff { font-weight: 600; min-width: 28px }
.sr-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; padding-top: 10px } .sr-bar.dirty { position: sticky; bottom: 8px; background: var(--panel); border: 1px solid var(--gold); border-radius: 12px; padding: 10px 12px; z-index: 5 } .sr-count { margin-right: auto; font-weight: 600 } .sr-msg { color: var(--bad); font-size: 14px }
@media (max-width: 760px) { .sr-row { grid-template-columns: 1fr } .sr-c { justify-content: flex-start } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap }
