/* OLR Orders — original design system. Graphite neutrals, one signature accent, fixed stage colors. */
:root {
  --font: "Inter", "InterVariable", "Roboto Flex", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bg: #0d0e10; --surface: #15171a; --surface-2: #1c1f23; --surface-3: #24282d; --line: #2a2e34; --line-2: #343941;
  --text: #eceef1; --muted: #9aa1ac; --faint: #6b727d;
  --accent: #c8f542; --accent-ink: #c8f542; --on-accent: #0d0e10; --accent-soft: rgba(200,245,66,.12);
  --rush: #ff7a3d; --rush-soft: rgba(255,122,61,.14); --overdue: #ff4d6a; --overdue-soft: rgba(255,77,106,.13);
  --st-intake: #8fa3bf; --st-lyrics: #5da9ff; --st-sent: #b48cff; --st-approved: #3fd2c7; --st-build: #f2c94c; --st-done: #5ed27d;
  --pf-attn: #ff4d6a; --pf-prod: #5da9ff; --pf-ship: #3fd2c7; --pf-done: #5ed27d; --pf-muted: #7d8590;
  --r-lg: 20px; --r-md: 14px; --r-sm: 10px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --ease: cubic-bezier(.2,.8,.2,1);
  color-scheme: dark;
}
:root[data-accent="iris"] { --accent: #8f7cff; --accent-ink: #a597ff; --on-accent: #fff; --accent-soft: rgba(143,124,255,.15); }
:root[data-accent="mint"] { --accent: #3fe0b0; --accent-ink: #3fe0b0; --on-accent: #06281e; --accent-soft: rgba(63,224,176,.13); }
:root[data-theme="light"] {
  --bg: #f3f4f6; --surface: #ffffff; --surface-2: #f0f1f4; --surface-3: #e6e8ec; --line: #e0e3e8; --line-2: #d2d6dc;
  --text: #121418; --muted: #5b626d; --faint: #8a919b; --shadow: 0 8px 24px rgba(20,24,30,.08); color-scheme: light;
  --accent-ink: #5f8a00; --accent-soft: rgba(140,190,0,.14);
  --st-intake: #5f7594; --st-lyrics: #2f7fe0; --st-sent: #8a5ce6; --st-approved: #13a59b; --st-build: #c79a12; --st-done: #2ea353;
  --rush: #e8601f; --overdue: #e0304f;
}
:root[data-theme="light"][data-accent="iris"] { --accent-ink: #5b47e0; --accent-soft: rgba(91,71,224,.1); }
:root[data-theme="light"][data-accent="mint"] { --accent: #19c493; --accent-ink: #0d8f6b; --accent-soft: rgba(25,196,147,.12); }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.4; -webkit-font-smoothing: antialiased; overscroll-behavior: none; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent-ink); text-decoration: none; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1, "ss01" 1; letter-spacing: -.02em; }
.muted { color: var(--muted); } .faint { color: var(--faint); }
.hidden { display: none !important; }

/* ---------- shell ---------- */
.app { display: grid; height: 100dvh; grid-template-rows: 1fr auto; grid-template-columns: 1fr; }
.rail { display: none; }
.pane { position: relative; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.detail .scroll { min-width: 0; }
.scroll { flex: 1; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; padding: 0 16px calc(24px + env(safe-area-inset-bottom)); scroll-behavior: smooth; }
.topbar { display: flex; align-items: center; gap: 10px; padding: calc(12px + env(safe-area-inset-top)) 16px 10px; min-height: 56px; }
.topbar h1 { font-size: 22px; font-weight: 750; letter-spacing: -.02em; margin: 0; flex: 1; }
.topbar .sub { font-size: 12px; color: var(--muted); font-weight: 500; }
.iconbtn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; cursor: pointer; transition: transform .15s var(--ease), background .2s; }
.iconbtn:active { transform: scale(.94); }
.iconbtn svg { width: 20px; height: 20px; }

.tabbar { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(14px); padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); }
.tab { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; border: 0; background: none; color: var(--muted); font-size: 11.5px; font-weight: 600; cursor: pointer; position: relative; }
.tab svg { width: 24px; height: 24px; }
.tab .pill { position: absolute; top: 2px; left: calc(50% + 6px); min-width: 18px; height: 18px; border-radius: 9px; background: var(--rush); color: #fff; font-size: 11px; display: grid; place-items: center; padding: 0 5px; }
.tab.on { color: var(--text); }
.tab.on svg { color: var(--accent-ink); }
.tab.on::before { content: ""; position: absolute; top: -7px; width: 28px; height: 3px; border-radius: 2px; background: var(--accent); }

/* detail overlay on narrow screens */
.detail { position: fixed; inset: 0; background: var(--bg); z-index: 20; transform: translateX(104%); transition: transform .32s var(--ease); display: flex; flex-direction: column; }
.detail.open { transform: none; box-shadow: var(--shadow); }
.detail .empty-detail { display: none; }

@media (min-width: 700px) {
  .app { grid-template-columns: 76px minmax(340px, 42%) 1fr; grid-template-rows: 1fr; }
  .tabbar { display: none; }
  .rail { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: calc(16px + env(safe-area-inset-top)) 0 16px; border-right: 1px solid var(--line); background: var(--surface); }
  .rail .mono { width: 44px; height: 44px; margin-bottom: 14px; }
  .rail .tab { width: 60px; border-radius: 14px; padding: 10px 0; }
  .rail .tab.on { background: var(--accent-soft); }
  .rail .tab.on::before { display: none; }
  .rail .spacer { flex: 1; }
  .pane.list { border-right: 1px solid var(--line); }
  .detail { position: relative; inset: auto; transform: none; transition: none; z-index: 1; box-shadow: none; min-width: 0; overflow: hidden; }
  .detail .back { display: none; }
  .detail:not(.open) .empty-detail { display: grid; }
  .detail:not(.open) > :not(.empty-detail) { display: none; }
}
@media (min-width: 1100px) { .app { grid-template-columns: 76px 440px 1fr; } }

/* ---------- banners ---------- */
.banner { display: flex; gap: 10px; align-items: center; margin: 4px 0 12px; padding: 10px 12px; border-radius: var(--r-md); font-size: 13px; font-weight: 550; border: 1px dashed; }
.banner.sample { border-color: #d6a536; background: rgba(214,165,54,.1); color: #e8c06a; }
:root[data-theme="light"] .banner.sample { color: #8a6410; }
.banner.warn { border-color: var(--overdue); background: var(--overdue-soft); color: var(--overdue); border-style: solid; }
.banner.info { border-color: var(--line-2); background: var(--surface); color: var(--muted); border-style: solid; }
.banner button { margin-left: auto; }
.tag-sample { display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .08em; padding: 2px 6px; border-radius: 6px; background: rgba(214,165,54,.18); color: #e0b552; vertical-align: 2px; }
:root[data-theme="light"] .tag-sample { color: #8a6410; }

/* ---------- rundown ---------- */
.hello { margin: 2px 0 14px; }
.hello .date { font-size: 13px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 10px 9px; cursor: pointer; transition: transform .15s var(--ease); }
.tile:active { transform: scale(.97); }
.tile b { display: block; font-size: 30px; font-weight: 800; line-height: 1; }
.tile span { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.tile.overdue b { color: var(--overdue); } .tile.waiting b { color: var(--accent-ink); } .tile.new b { color: var(--text); }
.tile.zero b { color: var(--faint); }

.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 18px; }
.day { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; text-align: center; padding: 7px 0 8px; cursor: pointer; }
.day .dw { font-size: 10.5px; font-weight: 700; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.day .dn { font-size: 17px; font-weight: 750; margin: 1px 0 4px; }
.day .dots { height: 6px; display: flex; gap: 3px; justify-content: center; }
.day .dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--accent); }
.day .dots i.r { background: var(--rush); } .day .dots i.o { background: var(--overdue); }
.day.today { border-color: var(--accent); background: var(--accent-soft); }

.section { margin: 18px 0 8px; display: flex; align-items: baseline; gap: 8px; }
.section h2 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin: 0; font-weight: 800; }
.section .count { font-size: 12px; color: var(--muted); font-weight: 700; }
.section .act { margin-left: auto; font-size: 13px; font-weight: 650; color: var(--accent-ink); background: none; border: 0; cursor: pointer; }
.group-label { font-size: 12px; color: var(--muted); font-weight: 700; margin: 12px 2px 6px; display: flex; gap: 6px; align-items: center; }
.group-label.overdue { color: var(--overdue); }

/* ---------- order rows ---------- */
.rows { display: flex; flex-direction: column; gap: 8px; }
.row { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 12px 12px 12px 16px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); cursor: pointer; transition: transform .15s var(--ease), border-color .2s, background .2s; overflow: hidden; animation: rise .35s var(--ease) both; }
.row::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 4px; border-radius: 0 3px 3px 0; background: var(--bar, var(--line-2)); }
.row:active { transform: scale(.985); }
.row.sel { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.row .t1 { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .t2 { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.row .chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.row .right { text-align: right; min-width: 64px; }
.cd { font-size: 26px; font-weight: 800; line-height: 1; }
.cd small { font-size: 13px; font-weight: 700; color: var(--muted); margin-left: 1px; }
.cd-l { font-size: 11px; color: var(--muted); font-weight: 650; margin-top: 3px; text-transform: uppercase; letter-spacing: .05em; }
.cd.over { color: var(--overdue); } .cd.soon { color: var(--rush); }
.unseen::after { content: ""; position: absolute; right: 8px; top: 8px; width: 8px; height: 8px; border-radius: 4px; background: var(--accent); }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--surface-3); color: var(--muted); white-space: nowrap; }
.chip i { width: 7px; height: 7px; border-radius: 4px; background: currentColor; }
.chip.stage { color: var(--sc); background: color-mix(in srgb, var(--sc) 14%, transparent); }
.chip.rush { color: var(--rush); background: var(--rush-soft); }
.chip.over { color: var(--overdue); background: var(--overdue-soft); }
.chip.pf-attn { color: var(--pf-attn); background: color-mix(in srgb, var(--pf-attn) 14%, transparent); }
.chip.pf-prod { color: var(--pf-prod); background: color-mix(in srgb, var(--pf-prod) 14%, transparent); }
.chip.pf-ship { color: var(--pf-ship); background: color-mix(in srgb, var(--pf-ship) 14%, transparent); }
.chip.pf-done { color: var(--pf-done); background: color-mix(in srgb, var(--pf-done) 14%, transparent); }
.chip.kind { background: transparent; border: 1px solid var(--line-2); }

.empty { text-align: center; padding: 22px 16px; border: 1px dashed var(--line-2); border-radius: var(--r-md); color: var(--muted); font-size: 13.5px; }
.empty svg { width: 34px; height: 34px; color: var(--faint); display: block; margin: 0 auto 6px; }
.empty b { display: block; color: var(--text); font-size: 14.5px; margin-bottom: 2px; }
.empty-detail { place-items: center; height: 100%; color: var(--muted); text-align: center; }
.empty-detail .mono { width: 72px; height: 72px; opacity: .9; margin: 0 auto 12px; }

/* ---------- list filters ---------- */
.search { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 12px; height: 44px; margin-bottom: 10px; }
.search input { flex: 1; border: 0; background: none; outline: none; height: 100%; font-size: 15px; }
.search svg { width: 18px; height: 18px; color: var(--muted); }
.seg { display: inline-grid; grid-auto-flow: column; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: none; padding: 7px 14px; border-radius: 9px; font-weight: 700; font-size: 13px; color: var(--muted); cursor: pointer; transition: background .2s, color .2s; }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.filters { display: flex; gap: 6px; overflow-x: auto; padding: 10px 0 12px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.fchip { flex: none; border: 1px solid var(--line-2); background: var(--surface); padding: 6px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 650; color: var(--muted); cursor: pointer; }
.fchip.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.listmeta { font-size: 12px; color: var(--muted); margin: 0 2px 8px; font-weight: 600; }

/* ---------- detail ---------- */
.dhead { padding: 4px 0 8px; }
.dhead .eyebrow { font-size: 12px; font-weight: 750; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.dhead h2 { font-size: 26px; line-height: 1.12; letter-spacing: -.025em; margin: 6px 0 4px; font-weight: 800; }
.dhead .who { color: var(--muted); font-weight: 600; }
.duebox { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px; margin: 12px 0; }
.duebox .big { font-size: 44px; font-weight: 850; line-height: .95; }
.duebox .big small { font-size: 18px; color: var(--muted); font-weight: 750; margin: 0 4px 0 1px; }
.duebox .lbl { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.duebox .when { font-weight: 650; margin-top: 2px; }
.duebox.over .big { color: var(--overdue); } .duebox.soon .big { color: var(--rush); } .duebox.done .big { color: var(--st-done); font-size: 30px; }

.timeline { display: flex; gap: 0; margin: 6px 0 8px; padding: 12px 6px 4px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.step { flex: 1; text-align: center; position: relative; font-size: 10.5px; font-weight: 700; color: var(--faint); padding-top: 22px; line-height: 1.15; }
.step::before { content: ""; position: absolute; top: 5px; left: 50%; transform: translateX(-50%); width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--surface); z-index: 1; transition: all .3s var(--ease); }
.step::after { content: ""; position: absolute; top: 11px; left: -50%; width: 100%; height: 2px; background: var(--line-2); }
.step:first-child::after { display: none; }
.step.done { color: var(--muted); } .step.done::before { background: var(--sc); border-color: var(--sc); }
.step.done::after, .step.cur::after { background: var(--sc); }
.step.cur { color: var(--text); } .step.cur::before { background: var(--sc); border-color: var(--sc); box-shadow: 0 0 0 5px color-mix(in srgb, var(--sc) 25%, transparent); }
.stagebar { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; margin: 8px 0 14px; }
.stagebar .cur { text-align: center; font-weight: 750; }
.btn { border: 1px solid var(--line-2); background: var(--surface); padding: 10px 14px; border-radius: 12px; font-weight: 700; font-size: 14px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; justify-content: center; transition: transform .15s var(--ease), opacity .2s; }
.btn:active { transform: scale(.96); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn:disabled { opacity: .35; pointer-events: none; }
.btn.small { padding: 7px 11px; font-size: 13px; border-radius: 10px; }

.dtabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); margin: 6px -16px 14px; padding: 0 16px; position: sticky; top: 0; background: var(--bg); z-index: 3; scrollbar-width: none; }
.dtabs button { flex: none; border: 0; background: none; padding: 12px 10px 10px; font-weight: 700; font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent; cursor: pointer; }
.dtabs button.on { color: var(--text); border-color: var(--accent); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px; margin-bottom: 10px; }
.card h3 { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.pre { white-space: pre-wrap; font-size: 14.5px; line-height: 1.55; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: 14px; }
.kv dt { color: var(--muted); font-weight: 600; } .kv dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.photos img, .thumb img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: var(--surface-2); display: block; }
.ph { position: relative; display: block; min-width: 0; }
.ph-state { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 6px; font-size: 11.5px; font-weight: 650; color: var(--muted); border-radius: 10px; border: 1px dashed var(--line-2); }
.ph-state.err { color: var(--overdue); border-color: var(--overdue); background: var(--overdue-soft); }
.filerow { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.filerow:last-child { border-bottom: 0; }
.filerow .ext { width: 44px; height: 44px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; font-size: 10.5px; font-weight: 800; color: var(--accent-ink); letter-spacing: .04em; }
.filerow .thumb { width: 44px; height: 44px; }
.filerow .thumb .ph-state { font-size: 0; }
.filerow .fn { min-width: 0; overflow-wrap: anywhere; }
.media iframe { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 12px; background: #000; }
.linkrow { display: flex; align-items: center; gap: 12px; padding: 12px 2px; border-bottom: 1px solid var(--line); color: var(--text); font-weight: 650; }
.linkrow:last-child { border-bottom: 0; }
.linkrow .ic { width: 36px; height: 36px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; color: var(--accent-ink); }
.linkrow .ic svg { width: 18px; height: 18px; }
.linkrow .sub { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.linkrow .go { margin-left: auto; color: var(--faint); }
.mail { border-left: 3px solid var(--accent); padding: 4px 0 4px 12px; margin-bottom: 12px; }
.mail .from { font-weight: 700; } .mail .when { font-size: 12px; color: var(--muted); }
.acts { position: relative; padding-left: 18px; }
.acts::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.act-i { position: relative; padding: 0 0 14px; font-size: 14px; }
.act-i::before { content: ""; position: absolute; left: -17px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); }
.act-i .when { font-size: 12px; color: var(--muted); }
.act-i.undone { opacity: .5; text-decoration: line-through; }
.editgrid { display: grid; gap: 12px; }
.field label { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .05em; }
.input, textarea.input, select.input { width: 100%; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 11px 12px; outline: none; transition: border-color .2s; }
.input:focus { border-color: var(--accent); }
textarea.input { min-height: 96px; resize: vertical; }

/* switches & settings */
.set-group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); margin-bottom: 14px; overflow: hidden; }
.set-group > h3 { margin: 0; padding: 14px 16px 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.set { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); min-height: 54px; }
.set:last-child { border-bottom: 0; }
.set .l { flex: 1; } .set .l b { display: block; font-weight: 650; } .set .l span { font-size: 12.5px; color: var(--muted); }
.set .input { width: auto; max-width: 140px; padding: 8px 10px; }
.switch { position: relative; width: 50px; height: 30px; flex: none; }
.switch input { opacity: 0; width: 100%; height: 100%; margin: 0; position: absolute; z-index: 1; cursor: pointer; }
.switch span { position: absolute; inset: 0; background: var(--surface-3); border-radius: 15px; transition: background .2s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .25s var(--ease); box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(20px); }
.swatches { display: flex; gap: 10px; }
.swatch { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--line-2); cursor: pointer; position: relative; }
.swatch.on { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--text); }
.tag-assumed { font-size: 10px; font-weight: 800; letter-spacing: .06em; color: var(--rush); border: 1px solid currentColor; border-radius: 5px; padding: 1px 5px; margin-left: 6px; vertical-align: 1px; }

/* pull to refresh + toast */
.ptr { height: 0; display: grid; place-items: center; overflow: hidden; color: var(--muted); font-size: 12px; font-weight: 650; transition: height .25s var(--ease); }
.ptr .spin { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid var(--line-2); border-top-color: var(--accent); }
.ptr.go .spin { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast { position: fixed; left: 50%; top: calc(10px + env(safe-area-inset-top)); transform: translate(-50%, -16px); opacity: 0; background: var(--text); color: var(--bg); padding: 12px 14px 12px 16px; border-radius: 14px; font-weight: 650; font-size: 14px; display: flex; gap: 14px; align-items: center; z-index: 50; transition: all .3s var(--ease); pointer-events: none; max-width: calc(100vw - 132px); box-shadow: var(--shadow); font-size: 13.5px; }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast button { border: 0; background: none; color: var(--accent); font-weight: 800; cursor: pointer; filter: brightness(.85); }
:root[data-theme="light"] .toast button { filter: none; color: #c8f542; }
@media (min-width: 700px) { .toast { left: auto; right: 20px; transform: translateY(-16px); } .toast.show { transform: none; } }

/* pairing */
.pair { position: fixed; inset: 0; z-index: 60; background: var(--bg); display: grid; place-items: center; padding: 24px; }
.pair .box { width: 100%; max-width: 420px; }
.pair .mono { width: 84px; height: 84px; margin-bottom: 18px; }
.pair h1 { font-size: 28px; letter-spacing: -.03em; margin: 0 0 6px; }
.pair p { color: var(--muted); margin: 0 0 18px; }
.pair video { width: 100%; border-radius: 14px; margin-top: 12px; background: #000; }
.stack { display: grid; gap: 10px; }
.fade-in { animation: fade .25s var(--ease) both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
