:root {
  --night: #0e1b2e;
  --night-2: #142640;
  --night-3: #1b3252;
  --line: #2a4066;
  --text: #f3f6fb;
  --muted: #a9b8cf;
  --blue: #4f94e0;
  --blue-deep: #004590;
  --amber: #f0a251;
  --amber-deep: #c77528;
  --bad: #f08d80;
  --ok: #7fd2a1;
  --gutter: 16px;
  --radius: 14px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; color-scheme: dark; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--night); color: var(--text);
  font: 400 16px/1.55 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--blue-deep); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 9; }
.skip:focus { left: 8px; }
h1, h2, h3 { margin: 0; line-height: 1.1; }
h1 { font: 400 clamp(46px, 9vw, 88px)/0.95 "Bebas Neue", Impact, sans-serif; letter-spacing: .01em; max-width: 14ch; }
h2 { font: 400 clamp(32px, 5vw, 48px)/1 "Bebas Neue", Impact, sans-serif; letter-spacing: .01em; }
h3 { font-size: 18px; font-weight: 600; }
p { margin: 0 0 12px; max-width: 64ch; }
a { color: var(--blue); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 6px; }

.bar { position: sticky; top: 0; z-index: 6; background: rgba(14,27,46,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar-in { display: flex; align-items: center; gap: 12px; height: 56px; }
.logo { border-radius: 50%; }
.bar-title { font: 400 24px/1 "Bebas Neue", Impact, sans-serif; letter-spacing: .04em; }
.chip { margin-left: auto; font-size: 12px; color: var(--amber); border: 1px solid var(--amber-deep); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }

.kicker { color: var(--amber); font-weight: 600; font-size: 14px; margin: 44px 0 10px; }
.lede { color: var(--muted); font-size: 17px; margin: 16px 0 28px; max-width: 58ch; }
.hint { color: var(--muted); font-size: 14px; }
section { scroll-margin-top: 64px; }

/* Step 1: the read */
.scan { background: var(--night-2); border: 1px solid var(--line); border-radius: 18px; padding: 22px 18px 16px; position: relative; overflow: hidden; }
.track { position: relative; height: 84px; border-radius: 10px; background: var(--night); }
.seg-b { position: absolute; top: 18px; bottom: 18px; border-radius: 3px; background: #2d4d7c; border: 0; padding: 0; }
.seg-b.music { background: repeating-linear-gradient(135deg, #3b475a 0 5px, #28323f 5px 10px); }
.seg-b.talk-gap { display: none; }
.pickbar { position: absolute; top: 4px; bottom: 4px; border-radius: 8px; border: 2px solid var(--amber); background: rgba(240,162,81,.18); color: var(--text); font: 600 12px/1 Inter, sans-serif; cursor: pointer; padding: 0; display: flex; align-items: flex-start; justify-content: center; transform-origin: bottom; }
.pickbar span { margin-top: -1px; background: var(--amber); color: #1a1100; border-radius: 0 0 6px 6px; padding: 3px 6px 4px; }
.pickbar.flagged { border-color: var(--bad); background: rgba(240,141,128,.16); }
.pickbar.flagged span { background: var(--bad); }
.pickbar[aria-current="true"], .pickbar:hover { background: rgba(240,162,81,.34); }
.pickbar.flagged[aria-current="true"], .pickbar.flagged:hover { background: rgba(240,141,128,.3); }
.skipbar { position: absolute; top: 4px; bottom: 4px; border-radius: 8px; border: 2px dashed #7b8aa3; display: flex; align-items: flex-end; justify-content: center; font-size: 11px; color: var(--muted); padding-bottom: 3px; }
.sweep { position: absolute; top: 0; bottom: 0; width: 2px; background: linear-gradient(var(--blue), transparent); box-shadow: 0 0 18px 4px rgba(79,148,224,.55); opacity: 0; left: 0; }
.axis { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; margin: 8px 2px 14px; }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; font-size: 13px; color: var(--muted); }
.legend li { display: flex; align-items: center; gap: 8px; }
.k { width: 18px; height: 12px; border-radius: 3px; display: inline-block; }
.k.pick { border: 2px solid var(--amber); background: rgba(240,162,81,.2); }
.k.flag { border: 2px solid var(--bad); background: rgba(240,141,128,.2); }
.k.skip { border: 2px dashed #9aa8bf; background: rgba(154,168,191,.12); }
.k.talk { background: #2d4d7c; }
.tally { margin: 16px 0 0; font-size: 17px; font-weight: 600; min-height: 1.6em; }
.tally b { color: var(--amber); font-weight: 600; }

.scan:not(.run) .pickbar, .scan:not(.run) .skipbar { opacity: 0; transform: scaleY(.2); }
.scan.run .pickbar, .scan.run .skipbar { animation: rise .45s cubic-bezier(.2,.9,.3,1.2) both; animation-delay: calc(var(--d) * 1s); }
.scan.run .sweep { animation: sweep 3s linear both; }
@keyframes rise { from { opacity: 0; transform: scaleY(.2); } to { opacity: 1; transform: none; } }
@keyframes sweep { 0% { left: 0; opacity: 1; } 96% { opacity: 1; } 100% { left: 100%; opacity: 0; } }

.transcript { margin-top: 16px; }
.transcript summary { cursor: pointer; color: var(--blue); font-weight: 500; padding: 8px 0; }
.transcript ol { list-style: none; margin: 8px 0 0; padding: 0; max-height: 340px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--night-2); }
.transcript li { display: grid; grid-template-columns: 52px 54px 1fr; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
.transcript li:last-child { border-bottom: 0; }
.transcript time { color: var(--muted); font-variant-numeric: tabular-nums; }
.transcript .who { color: var(--muted); }
.transcript li.picked { background: rgba(240,162,81,.1); border-left: 3px solid var(--amber); }
.transcript li.skipped { color: var(--muted); font-style: italic; }
.transcript .tag { display: inline-block; font-size: 11px; font-weight: 600; background: var(--amber); color: #1a1100; border-radius: 4px; padding: 1px 6px; margin-right: 6px; }
.transcript .tag.f { background: var(--bad); }

/* Step 2: the desk */
.keys { color: var(--muted); font-size: 13px; display: none; }
kbd { font: 600 12px Inter, sans-serif; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; background: var(--night-2); }
.review h2 { margin-bottom: 14px; }
.desk { display: grid; gap: 20px; }
.rail { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x proximity; }
.rail button { flex: 0 0 auto; width: 74px; scroll-snap-align: start; background: var(--night-2); border: 2px solid var(--line); border-radius: 12px; padding: 0; color: var(--text); font: inherit; cursor: pointer; position: relative; overflow: hidden; }
.rail img { display: block; width: 100%; aspect-ratio: 9/16; object-fit: cover; }
.rail .n { position: absolute; left: 4px; top: 4px; background: rgba(14,27,46,.85); border-radius: 6px; font-size: 11px; font-weight: 600; padding: 1px 6px; }
.rail .st { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: transparent; }
.rail [data-status="approved"] .st { background: var(--ok); }
.rail [data-status="rejected"] .st { background: var(--bad); }
.rail [aria-current="true"] { border-color: var(--amber); }
.rail [data-status="rejected"] img { opacity: .4; }
.rail .fl { position: absolute; right: 4px; top: 4px; width: 9px; height: 9px; border-radius: 50%; background: var(--bad); }

.stage { display: flex; flex-direction: column; align-items: center; }
.phone { width: min(300px, 78vw); aspect-ratio: 9/16; background: #000; border-radius: 28px; border: 6px solid #223a5e; overflow: hidden; position: relative; box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.phone video { width: 100%; height: 100%; object-fit: cover; display: block; }
.phone[data-status="rejected"] { filter: grayscale(1) brightness(.6); }
.phone[data-status="approved"] { border-color: var(--ok); }
.meta { color: var(--muted); font-size: 13px; margin: 12px 0 0; text-align: center; }

.panel { background: var(--night-2); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.p-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.pill { font-size: 12px; font-weight: 600; border-radius: 999px; padding: 3px 11px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.panel[data-status="approved"] .pill { color: #07210f; background: var(--ok); border-color: var(--ok); }
.panel[data-status="rejected"] .pill { color: #2b0b06; background: var(--bad); border-color: var(--bad); }
.label { font-size: 12px; font-weight: 600; color: var(--muted); margin: 0 0 6px; letter-spacing: .02em; }
.why { background: var(--night); border-radius: 12px; padding: 14px; margin-bottom: 14px; }
.why blockquote { margin: 0 0 8px; font-size: 18px; font-weight: 500; line-height: 1.3; border-left: 3px solid var(--amber); padding-left: 12px; }
.why p { color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.conf { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; }
.meter { flex: 1; height: 8px; border-radius: 999px; background: var(--night-3); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--amber); border-radius: 999px; transition: width .35s ease; }
.flagbox { border: 1px solid var(--bad); background: rgba(240,141,128,.08); border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; }
.flagbox .label { color: var(--bad); }
.flagbox ul { margin: 0; padding-left: 18px; font-size: 14px; }
.voice { margin-bottom: 14px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px; font-size: 14px; background: var(--night); }
.seg input:checked + span { background: var(--blue-deep); border-color: var(--blue); }
.seg input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: 2px; }

.tabs { display: flex; gap: 4px; margin-bottom: 8px; overflow-x: auto; }
.tabs button { flex: 0 0 auto; background: transparent; border: 0; border-bottom: 2px solid transparent; color: var(--muted); font: 500 14px Inter, sans-serif; padding: 8px 10px; cursor: pointer; }
.tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--amber); }
.postcard { background: #fff; color: #14202f; border-radius: 12px; padding: 12px; }
.postcard[data-p="tiktok"] { background: #000; color: #fff; }
.postcard[data-p="youtube"] { background: #181818; color: #fff; }
.pc-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 14px; }
.pc-head small { display: block; opacity: .65; font-size: 12px; }
.av { width: 34px; height: 34px; border-radius: 50%; background: var(--amber-deep); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 13px; }
.pc-body { display: grid; grid-template-columns: 54px 1fr; gap: 12px; align-items: start; }
.pc-body img { width: 54px; height: 96px; object-fit: cover; border-radius: 6px; background: #000; }
.pc-body p { margin: 0 0 4px; font-size: 14px; line-height: 1.4; max-width: none; }
.pc-body .tags { opacity: .7; font-size: 13px; }
.cap-edit { width: 100%; min-height: 96px; margin-top: 10px; background: var(--night); color: var(--text); border: 1px solid var(--blue); border-radius: 10px; padding: 10px; font: 16px/1.4 Inter, sans-serif; resize: vertical; }
.count { font-size: 13px; color: var(--muted); margin: 4px 0 0; }
.count.long { color: var(--amber); }
.plats { border: 0; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.plats legend { font-size: 12px; font-weight: 600; color: var(--muted); padding: 0; margin-bottom: 6px; }
.plat { display: flex; align-items: center; gap: 6px; font-size: 14px; min-height: 32px; cursor: pointer; }
.plat input { width: 18px; height: 18px; accent-color: var(--amber-deep); }
.confirm { margin-top: 14px; border: 1px solid var(--bad); border-radius: 12px; padding: 12px 14px; background: rgba(240,141,128,.08); }
.row { display: flex; flex-wrap: wrap; gap: 10px; }
.actions { margin-top: 16px; }
button, .btn { font: 600 15px Inter, sans-serif; min-height: 46px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--night-3); color: var(--text); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
button.primary, .btn.primary { background: var(--amber); color: #1a1100; border-color: var(--amber); }
button:disabled { opacity: .45; cursor: not-allowed; }
button:hover:not(:disabled), .btn:hover { filter: brightness(1.1); }
.speed { margin-top: 18px; color: var(--amber); font-weight: 600; min-height: 1.5em; }

/* Step 3: the calendar */
.cal { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin: 16px 0; }
.day { background: var(--night-2); border: 1px solid var(--line); border-radius: 14px; padding: 12px; min-height: 150px; }
.day h3 { font-size: 15px; margin-bottom: 10px; }
.slot { border-radius: 10px; padding: 8px 10px; margin-bottom: 8px; font-size: 13px; border: 1px dashed var(--line); color: var(--muted); }
.slot b { display: block; color: var(--text); font-size: 12px; }
.slot.full { border-style: solid; border-color: var(--amber-deep); background: rgba(240,162,81,.1); color: var(--text); animation: drop .4s ease both; }
.slot small { display: block; color: var(--muted); }
@keyframes drop { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

.about { margin-top: 36px; color: var(--muted); font-size: 14px; }
.about h2 { font-size: 26px; margin-bottom: 8px; }
.close { margin: 54px auto 70px; border-top: 1px solid var(--line); padding-top: 36px; }
.close h2 { margin-bottom: 14px; }
.contact { color: var(--muted); font-size: 14px; margin-top: 20px; }
.tag { font: 400 22px/1 "Bebas Neue", Impact, sans-serif; letter-spacing: .12em; color: var(--amber); margin-top: 24px; }
.notice { margin-top: 40px; }

@media (max-width: 520px) {
  .bar-in { gap: 8px; }
  .bar-title { font-size: 20px; white-space: nowrap; }
  .chip { font-size: 11px; white-space: normal; text-align: center; line-height: 1.25; min-width: 0; }
  .logo { width: 34px; height: 34px; flex: none; }
}
@media (min-width: 640px) { .keys { display: block; } }
@media (min-width: 980px) {
  .desk { grid-template-columns: 82px 300px 1fr; align-items: start; }
  .rail { flex-direction: column; overflow: auto; max-height: 560px; padding: 2px; }
  .rail button { width: 74px; }
  .stage { position: sticky; top: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scan:not(.run) .pickbar, .scan:not(.run) .skipbar { opacity: 1; transform: none; }
  .scan.run .pickbar, .scan.run .skipbar, .scan.run .sweep, .slot.full { animation: none; }
  .meter i { transition: none; }
}
