/* Rehearse. Warm off-white page, heavy grotesque headlines, one cobalt accent, coral for "live". */
:root {
  --bg: #f3f1ec; --panel: #fffdf9; --ink: #111318; --soft: #4a4f5a; --faint: #7b808b; --line: #dcd8cf;
  --blue: #2b3bff; --blue-d: #1b27c9; --blue-t: #e6e8ff; --coral: #ff5436; --coral-t: #ffe7e1;
  --good: #0c7a43; --good-t: #dff3e7; --mid: #a85f00; --mid-t: #fbeed6; --low: #c0321b;
  --stage: #0d0f14; --r: 18px; --r-s: 11px;
  --display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.55 var(--body); overflow-x: hidden; }
h1, h2, h3 { font-family: var(--display); line-height: 1.04; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.5rem, 6.4vw, 4.9rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.ic { flex: none; vertical-align: -4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
.fine { font-size: 0.84rem; color: var(--faint); }
.kicker { font-weight: 600; font-size: 0.86rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--blue); }
.lede { font-size: clamp(1.1rem, 1.8vw, 1.32rem); color: var(--soft); max-width: 34em; }
.lede.small { font-size: 1.08rem; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 2px solid var(--ink); background: var(--ink); color: #fff; padding: 11px 20px; border-radius: 999px; font-weight: 600; text-decoration: none; cursor: pointer; transition: transform .12s, background .12s, border-color .12s; line-height: 1.2; }
.btn:hover { background: var(--blue); border-color: var(--blue); }
.btn:active { transform: translateY(1px); }
.btn:disabled { background: #b9b6ae; border-color: #b9b6ae; color: #fff; cursor: not-allowed; }
.btn.big { padding: 16px 28px; font-size: 1.12rem; background: var(--blue); border-color: var(--blue); }
.btn.big:hover { background: var(--blue-d); border-color: var(--blue-d); }
.btn.big:disabled { background: #b9b6ae; border-color: #b9b6ae; }
.btn.small { padding: 7px 14px; font-size: 0.92rem; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink); background: transparent; }
.btn.ghost:disabled { color: var(--faint); border-color: var(--line); background: transparent; }
.btn.danger { background: var(--low); border-color: var(--low); }
.btn.danger-text { color: var(--low); }

/* top + foot */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1220px; margin: 0 auto; padding: 18px 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 800 1.35rem var(--display); letter-spacing: -0.03em; text-decoration: none; }
.mark { position: relative; width: 28px; height: 28px; flex: none; }
.mark i { position: absolute; border-radius: 50%; }
.mark i:first-child { inset: 0 8px 8px 0; background: var(--blue); }
.mark i:last-child { inset: 8px 0 0 8px; background: var(--coral); mix-blend-mode: multiply; }
.nav { display: flex; align-items: center; gap: 22px; font-weight: 500; }
.nav a:not(.btn) { text-decoration: none; color: var(--soft); }
.nav a:not(.btn):hover { color: var(--ink); }
.foot { border-top: 1px solid var(--line); margin-top: 90px; padding: 44px 24px 34px; }
.foot-in { max-width: 1220px; margin: 0 auto; display: grid; grid-template-columns: 1.3fr 1fr 0.7fr; gap: 40px; }
.foot p { color: var(--soft); max-width: 26em; margin-top: 12px; font-size: 0.95rem; }
.foot h2 { font: 600 0.8rem var(--body); letter-spacing: 0.09em; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; }
.foot nav a { display: block; text-decoration: none; color: var(--soft); padding: 3px 0; font-size: 0.97rem; }
.foot nav a:hover { color: var(--blue); }
.foot > .fine { max-width: 1220px; margin: 34px auto 0; }

/* home */
.hero { max-width: 1220px; margin: 0 auto; padding: 44px 24px 30px; display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 56px; align-items: start; }
.hero.solo { grid-template-columns: 1fr; padding-bottom: 10px; }
.hero.solo h1 { font-size: clamp(2.2rem, 5vw, 3.9rem); max-width: 17em; }
.hero-copy { padding-top: 22px; }
.hero h1 { margin: 16px 0 22px; }
.cta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 20px; margin-top: 30px; }
.aside { color: var(--faint); font-size: 0.95rem; }
.hero-pick { background: var(--panel); border: 1px solid var(--line); border-radius: 26px; padding: 12px; box-shadow: 0 1px 0 #fff inset, 0 24px 50px -34px rgba(20, 24, 60, .45); }
.faces { display: flex; align-items: center; gap: 14px; padding: 10px 12px 14px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.face-row { display: flex; flex: none; }
.face-row img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: 50% 38%; border: 3px solid var(--panel); margin-left: -14px; background: #c9c5bb; }
.face-row img:first-child { margin-left: 0; }
.faces p { font-size: 0.95rem; color: var(--soft); line-height: 1.35; }
.faces b { color: var(--ink); }
.pick-h { font-weight: 600; font-size: 0.8rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--faint); padding: 8px 12px 6px; }
.scn { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 16px; text-decoration: none; transition: background .12s; }
.scn:hover { background: var(--blue-t); }
.scn-ic { width: 44px; height: 44px; border-radius: 13px; background: var(--bg); display: grid; place-items: center; flex: none; color: var(--blue); }
.scn:hover .scn-ic { background: #fff; }
.scn-t { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.scn-t b { font: 700 1.1rem var(--display); letter-spacing: -0.01em; }
.scn-t span { color: var(--soft); font-size: 0.92rem; line-height: 1.35; }
.scn .go { color: var(--faint); transition: transform .12s, color .12s; }
.scn:hover .go { color: var(--blue); transform: translateX(3px); }
.band { max-width: 1220px; margin: 0 auto; padding: 76px 24px 0; }
.band > h2 { margin-bottom: 30px; }
.band.split { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; }
.band.split .lede { margin: 16px 0 24px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps li { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.steps .n { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: #fff; font: 800 1.05rem var(--display); margin-bottom: 18px; }
.steps p { color: var(--soft); margin-top: 8px; font-size: 0.98rem; }
.measures { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 30px; }
.measures li { display: flex; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.measures .ic { color: var(--blue); margin-top: 3px; }
.measures p { color: var(--soft); font-size: 0.95rem; margin-top: 2px; }
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.faq details { border-top: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 500 1.4rem/1 var(--display); color: var(--blue); }
.faq details[open] summary::after { content: "\2212"; }
.faq p { color: var(--soft); margin-top: 10px; max-width: 34em; }
.closer { max-width: 1220px; margin: 86px auto 0; padding: 0 24px; }
.closer h2 { font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 800; max-width: 14em; margin-bottom: 26px; }
.asks { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.asks ul { list-style: none; margin: 14px 0 0; padding: 0; }
.asks li { padding: 12px 0 12px 18px; border-top: 1px solid var(--line); position: relative; font-size: 1.05rem; }
.asks li::before { content: ""; position: absolute; left: 0; top: 21px; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); }
.prose { max-width: 760px; margin: 0 auto; padding: 40px 24px 0; }
.prose h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 18px; }
.prose h2 { font-size: 1.55rem; margin: 40px 0 12px; }
.prose p, .prose li { color: var(--soft); }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 20px; margin: 10px 0; }
.prose li { margin: 6px 0; }
.prose b { color: var(--ink); }
.prose a:not(.btn) { color: var(--blue); }
.prose .btn { margin-top: 30px; }

/* cards and forms */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.card h2 { font-size: 1.12rem; letter-spacing: -0.01em; margin-bottom: 10px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span { font-weight: 600; font-size: 0.93rem; }
.field > span i { font-style: normal; font-weight: 400; color: var(--faint); }
.field small { color: var(--faint); font-size: 0.84rem; }
input[type=text], input[type=url], input[type=number], input[type=password], input[type=search], select, textarea { width: 100%; background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-s); padding: 11px 13px; min-height: 46px; }
textarea { resize: vertical; line-height: 1.45; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px var(--blue-t); }
input::placeholder, textarea::placeholder { color: #a5a8b0; }
input.secret { -webkit-text-security: disc; font-family: ui-monospace, monospace; }
.status { min-height: 1.5em; color: var(--soft); font-size: 0.97rem; }
.status[data-kind=bad] { color: var(--low); font-weight: 500; }
.tick { display: flex; gap: 11px; align-items: flex-start; cursor: pointer; font-size: 0.97rem; }
.tick input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blue); flex: none; }
.switch { display: flex; gap: 13px; align-items: flex-start; cursor: pointer; position: relative; }
.switch input { position: absolute; opacity: 0; width: 46px; height: 28px; margin: 0; cursor: pointer; }
.switch .track { width: 46px; height: 28px; border-radius: 99px; background: #c9c5bb; flex: none; position: relative; transition: background .15s; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.switch input:checked + .track { background: var(--blue); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { outline: 3px solid var(--blue); outline-offset: 2px; }
.switch b, .switch i { display: block; }
.switch i { font-style: normal; color: var(--faint); font-size: 0.88rem; line-height: 1.4; }
.notice { background: var(--mid-t); border: 1px solid #ecd4a4; color: #5c3a00; padding: 13px 16px; border-radius: var(--r-s); display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.notice.bad { background: var(--coral-t); border-color: #f5b9ab; color: #7a1c0a; }

/* practice: setup */
.practice { max-width: 1220px; margin: 0 auto; padding: 22px 24px 0; }
.setup { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.setup h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); margin-bottom: 22px; }
.scn-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tab { display: inline-flex; align-items: center; gap: 8px; padding: 10px 15px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--panel); cursor: pointer; font-weight: 600; font-size: 0.97rem; }
.tab:hover { border-color: var(--ink); }
.tab[aria-checked=true] { background: var(--ink); border-color: var(--ink); color: #fff; }
.scn-line { color: var(--soft); margin: 16px 0 22px; font-size: 1.06rem; min-height: 1.6em; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fields .wide { grid-column: 1 / -1; }
.who { border: 0; padding: 0; margin: 24px 0 20px; min-width: 0; }
.who legend { font-weight: 600; font-size: 0.93rem; padding: 0; margin-bottom: 8px; }
.chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip > span { display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--line); border-radius: var(--r-s); padding: 9px 12px; background: #fff; }
.chip img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: 50% 38%; flex: none; background: #c9c5bb; }
.chip b { display: block; font: 700 1.06rem var(--display); line-height: 1.15; }
.chip i { font-style: normal; color: var(--faint); font-size: 0.86rem; }
.chip input:checked + span { border-color: var(--blue); background: var(--blue-t); box-shadow: 0 0 0 1px var(--blue) inset; }
.chip input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
#brief .tick { margin-top: 18px; }
.go-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 24px; }
.go-row .status { flex: 1; min-width: 220px; }
.setup-side { display: grid; gap: 14px; }
.room-state { display: flex; align-items: center; gap: 10px; font: 700 1.1rem var(--display); }
.dot { width: 12px; height: 12px; border-radius: 50%; background: #b9b6ae; flex: none; }
.dot[data-state=free] { background: var(--good); box-shadow: 0 0 0 4px var(--good-t); }
.dot[data-state=busy] { background: var(--coral); box-shadow: 0 0 0 4px var(--coral-t); }
.dot[data-state=closed], .dot[data-state=budget], .dot[data-state=used] { background: var(--mid); box-shadow: 0 0 0 4px var(--mid-t); }
.room-card p { color: var(--soft); font-size: 0.95rem; margin: 8px 0 14px; }
.room-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.room-card dl div { background: var(--bg); border-radius: var(--r-s); padding: 10px 12px; }
dt { font-size: 0.78rem; color: var(--faint); text-transform: uppercase; letter-spacing: 0.07em; font-weight: 600; }
dd { margin: 0; font: 700 1.15rem var(--display); }
.tips ul { margin: 0; padding-left: 18px; color: var(--soft); font-size: 0.94rem; }
.tips li { margin: 6px 0; }
.past ul { list-style: none; margin: 0 0 10px; padding: 0; }
.past li { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); }
.past li:first-child { border-top: 0; }
.past a { display: flex; flex-direction: column; text-decoration: none; padding: 9px 0; flex: 1; min-width: 0; }
.past a span { font-size: 0.84rem; color: var(--faint); }
.past a:hover b { color: var(--blue); }
.score-chip { background: var(--ink); color: #fff; font: 700 0.9rem var(--display); border-radius: 999px; padding: 3px 10px; }

/* practice: the room */
.room { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
/* the partner's video is 704 x 640 */
.stage { position: relative; background: var(--stage); border-radius: 26px; overflow: hidden; aspect-ratio: 11 / 10; width: min(100%, calc((100vh - 130px) * 1.1)); justify-self: end; box-shadow: 0 30px 60px -40px rgba(10, 12, 40, .7); }
.side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.stage video#them { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .5s; }
.stage.on video#them { opacity: 1; }
.stage::after { content: ""; position: absolute; inset: 0; border-radius: 26px; border: 3px solid transparent; pointer-events: none; transition: border-color .2s; }
.stage[data-them="1"]::after { border-color: var(--blue); }
.stage[data-me="1"]::after { border-color: var(--coral); }
.self { position: absolute; right: 16px; bottom: 16px; width: 22%; max-width: 190px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; border: 2px solid rgba(255, 255, 255, .7); transform: scaleX(-1); background: #222; }
.veil { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: #fff; text-align: center; padding: 24px; background: var(--stage); }
.veil p { font: 700 1.5rem var(--display); }
.veil .veil-sub { font: 400 0.98rem var(--body); color: #a9afbd; max-width: 26em; }
.pulse { display: flex; gap: 7px; height: 34px; align-items: center; }
.pulse i { width: 7px; height: 12px; border-radius: 4px; background: #fff; animation: pulse 1s ease-in-out infinite; }
.pulse.dark i { background: var(--blue); }
.pulse i:nth-child(2) { animation-delay: .15s; }
.pulse i:nth-child(3) { animation-delay: .3s; }
@keyframes pulse { 0%, 100% { height: 10px; } 50% { height: 32px; } }
.hud { position: absolute; left: 16px; right: 16px; top: 16px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; pointer-events: none; }
.tag, .ai-tag, .timer { background: rgba(13, 15, 20, .72); color: #fff; border-radius: 999px; padding: 6px 13px; font-size: 0.88rem; font-weight: 600; backdrop-filter: blur(6px); }
.ai-tag { background: rgba(255, 255, 255, .9); color: var(--ink); }
.timer { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-variant-numeric: tabular-nums; }
.timer .ic { width: 16px; height: 16px; }
.timer.low { background: var(--coral); }
.caption { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); max-width: min(82%, 640px); background: rgba(13, 15, 20, .78); color: #fff; padding: 9px 16px; border-radius: 14px; font-size: 1.02rem; line-height: 1.4; text-align: center; backdrop-filter: blur(6px); }
.caption:empty { display: none; }
.caption[data-who=me] { background: rgba(255, 84, 54, .9); }
.deck { display: grid; grid-template-columns: 1fr; gap: 12px; }
.meter { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 18px; min-width: 0; }
.meter-h { display: flex; justify-content: space-between; font-size: 0.86rem; font-weight: 600; color: var(--soft); margin-bottom: 9px; gap: 10px; }
.meter-h span:first-child { color: var(--coral); }
.meter-h span:last-child { color: var(--blue); }
.bar { height: 12px; border-radius: 99px; background: var(--blue); overflow: hidden; }
.bar i { display: block; height: 100%; width: 50%; background: var(--coral); border-radius: 99px 0 0 99px; transition: width .5s; }
.meter.small { display: flex; align-items: baseline; gap: 9px; }
.meter.small .k, .meter.small .u { font-size: 0.8rem; color: var(--faint); font-weight: 600; }
.meter.small b { font: 800 1.7rem/1.1 var(--display); font-variant-numeric: tabular-nums; }
.controls { display: flex; gap: 8px; }
.ctl { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; flex: 1; min-width: 0; border: 1.5px solid var(--line); background: var(--panel); border-radius: var(--r); padding: 10px 12px; cursor: pointer; font-size: 0.84rem; font-weight: 600; }
.ctl:hover { border-color: var(--ink); }
.ctl[aria-pressed=true] { background: var(--ink); color: #fff; border-color: var(--ink); }
.ctl.end { background: var(--coral); border-color: var(--coral); color: #fff; }
.ctl.end:hover { background: var(--low); border-color: var(--low); }
.mic-warn { background: var(--coral-t); color: #7a1c0a; border-radius: var(--r-s); padding: 11px 15px; font-weight: 500; }
.log { max-height: max(160px, calc(100vh - 470px)); overflow-y: auto; display: grid; gap: 9px; padding: 4px 4px 4px 2px; align-content: start; }
.log .l { display: grid; grid-template-columns: 1fr; gap: 0; font-size: 0.95rem; }
.log .l b { font-size: 0.84rem; padding-top: 2px; color: var(--blue); }
.log .l.me b { color: var(--coral); }
.log .l span { color: var(--soft); }

/* report */
.report { max-width: 940px; margin: 0 auto; padding: 22px 24px 0; }
.wait { min-height: 46vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; }
.wait h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.wait p { color: var(--soft); }
.stages { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; text-align: left; }
.stages li { display: flex; align-items: center; gap: 11px; color: var(--faint); }
.stages li.now { color: var(--ink); font-weight: 600; }
.stages li.done { color: var(--good); }
.stages .bullet { width: 20px; height: 20px; border-radius: 50%; border: 2px solid currentColor; flex: none; }
.stages li.now .bullet { border-color: var(--blue); border-top-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.r-head { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding: 14px 0 30px; }
.r-head h1 { font-size: clamp(1.8rem, 4.2vw, 3rem); margin: 10px 0 12px; }
.r-meta { color: var(--faint); font-size: 0.95rem; }
.r-score { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: none; }
.r-score b { font: 700 1rem var(--display); }
.ring-bg { fill: none; stroke: var(--line); stroke-width: 11; }
.ring-fg { fill: none; stroke: var(--blue); stroke-width: 11; stroke-linecap: round; }
.ring-n { font: 800 38px var(--display); fill: var(--ink); }
.r-block { border-top: 1px solid var(--line); padding: 30px 0; }
.r-block > h2, .r-block .col h2 { font-size: 1.35rem; margin-bottom: 18px; display: flex; align-items: center; gap: 9px; }
.scores { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.scores li { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.s-top { display: flex; justify-content: space-between; align-items: baseline; }
.s-n { font: 800 1.6rem var(--display); }
.s-n.good { color: var(--good); } .s-n.mid { color: var(--mid); } .s-n.low { color: var(--low); }
.s-bar { display: block; width: 100%; height: 6px; margin: 8px 0 12px; }
.s-bar .bg { fill: var(--line); } .s-bar .good { fill: var(--good); } .s-bar .mid { fill: var(--mid); } .s-bar .low { fill: var(--low); }
.scores p { color: var(--soft); font-size: 0.94rem; }
.nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 0; }
.nums div { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-s); padding: 13px 15px; }
.nums dd { font-size: 1.6rem; font-weight: 800; }
.nums span { font-size: 0.84rem; color: var(--faint); }
.strip { margin: 22px 0 0; }
.strip svg { width: 100%; height: 34px; display: block; }
.strip-bg { fill: #e9e6de; }
.strip .me { fill: var(--coral); } .strip .them { fill: var(--blue); }
.strip figcaption { display: flex; gap: 18px; font-size: 0.85rem; color: var(--soft); margin-top: 8px; }
.key::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; background: var(--coral); }
.key.them::before { background: var(--blue); }
.strip .len { margin-left: auto; color: var(--faint); }
.summary { font-size: 1.18rem; max-width: 40em; }
.r-block.two { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
.col h2 .ic { width: 24px; height: 24px; }
.col.good h2 .ic { color: var(--good); } .col.fix h2 .ic { color: var(--coral); }
.col article { padding: 14px 0; border-top: 1px solid var(--line); }
.col article:first-of-type { border-top: 0; padding-top: 0; }
blockquote { margin: 9px 0 0; padding: 4px 0 4px 14px; border-left: 3px solid var(--good); color: var(--soft); font-style: italic; }
.try { margin-top: 9px; background: var(--blue-t); border-radius: var(--r-s); padding: 10px 13px; }
.try span { font-weight: 700; color: var(--blue-d); }
.rewrite { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rewrite > div { border: 1px solid var(--line); border-radius: var(--r); padding: 18px; background: var(--panel); }
.rewrite .better { border-color: var(--blue); background: var(--blue-t); }
.rewrite h3 { font: 600 0.8rem var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); margin-bottom: 9px; }
.rewrite .better h3 { color: var(--blue-d); }
.drill p { font-size: 1.15rem; margin-bottom: 18px; max-width: 36em; }
.script summary { cursor: pointer; font: 700 1.35rem var(--display); display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.script summary span { font: 400 0.9rem var(--body); color: var(--faint); }
.turns { margin-top: 18px; display: grid; gap: 12px; }
.turns p { display: grid; grid-template-columns: 46px 64px 1fr; gap: 10px; }
.turns time { color: var(--faint); font-size: 0.84rem; font-variant-numeric: tabular-nums; padding-top: 3px; }
.turns b { font-size: 0.88rem; padding-top: 2px; color: var(--blue); }
.turns .me b { color: var(--coral); }
.turns span { color: var(--soft); }
mark { background: #ffe08a; color: inherit; border-radius: 4px; padding: 0 3px; }
.r-foot { border-top: 1px solid var(--line); padding-top: 26px; }
.r-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }

/* modal */
.modal-wrap { position: fixed; inset: 0; background: rgba(13, 15, 20, .55); display: grid; place-items: center; padding: 20px; z-index: 100; }
.modal { background: var(--panel); border-radius: 22px; padding: 28px; max-width: 440px; width: 100%; }
.modal h2 { font-size: 1.5rem; margin-bottom: 10px; }
.modal p { color: var(--soft); }
.modal-row { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; flex-wrap: wrap; }

/* admin */
.admin { max-width: 1120px; margin: 0 auto; padding: 22px 24px 0; }
.login { max-width: 380px; margin: 8vh auto 0; display: grid; gap: 16px; }
.login h1 { font-size: 2rem; }
.a-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.a-head h1 { font-size: 2.3rem; }
.a-actions { display: flex; gap: 8px; }
.a-tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin: 18px 0 22px; }
.a-tabs button { background: none; border: 0; border-bottom: 3px solid transparent; padding: 10px 14px; cursor: pointer; font-weight: 600; color: var(--soft); margin-bottom: -1px; }
.a-tabs button.on { color: var(--ink); border-bottom-color: var(--blue); }
.a-body { display: grid; gap: 16px; }
.a-body .card > p { color: var(--soft); margin-bottom: 10px; }
.form { display: grid; gap: 16px; max-width: 760px; }
.save-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.saved { font-size: 0.92rem; color: var(--good); font-weight: 600; }
.saved[data-kind=bad] { color: var(--low); }
.a-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.a-tools input { max-width: 340px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 820px; }
.table th { text-align: left; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--faint); padding: 11px 12px; border-bottom: 1px solid var(--line); }
.table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table .about { max-width: 250px; color: var(--soft); }
.table .empty { text-align: center; color: var(--faint); padding: 34px; }
.table input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--blue); }
.table a { color: var(--blue); font-weight: 600; }
.pill { display: inline-block; font-size: 0.76rem; font-weight: 700; padding: 2px 9px; border-radius: 99px; background: #e9e6de; color: var(--soft); margin-left: 6px; white-space: nowrap; }
td > .pill:first-child { margin-left: 0; }
.pill.ready { background: var(--good-t); color: var(--good); }
.pill.live, .pill.minted, .pill.ended { background: var(--blue-t); color: var(--blue-d); }
.pill.no_report, .pill.abandoned { background: var(--mid-t); color: var(--mid); }
.scn-edit summary { cursor: pointer; font-size: 1.05rem; }
.scn-edit .form { margin-top: 16px; }
.chain { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.chain li { border: 1px solid var(--line); border-radius: var(--r-s); padding: 12px 14px; background: #fff; }
.chain-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.chain-move { margin-left: auto; display: flex; gap: 6px; }
.chain-model { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.chain-model input { flex: 1; min-width: 200px; }

@media (max-width: 920px) {
  .hero, .band.split, .setup { grid-template-columns: 1fr; gap: 30px; }
  .room { grid-template-columns: 1fr; }
  .stage { justify-self: center; width: min(100%, calc((100vh - 300px) * 1.1)); min-width: min(100%, 300px); }
  .log { max-height: 220px; }
  .hero { padding-top: 20px; }
  .steps, .faq, .foot-in { grid-template-columns: 1fr; }
  .foot-in { gap: 26px; }
  .band { padding-top: 56px; }
  .r-block.two, .rewrite { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .top { padding: 14px 16px; }
  .nav { gap: 14px; }
  .nav a:not(.btn) { display: none; }
  .hero, .band, .closer, .practice, .report, .prose, .admin { padding-left: 16px; padding-right: 16px; }
  .foot { padding-left: 16px; padding-right: 16px; }
  .measures, .fields { grid-template-columns: 1fr; }
  .chips { grid-template-columns: 1fr; }
  .btn.big { width: 100%; }
  .stage { border-radius: 20px; }
  .stage::after { border-radius: 20px; }
  .caption { font-size: 0.86rem; line-height: 1.3; max-width: 94%; width: max-content; bottom: 8px; padding: 6px 11px; border-radius: 11px; }
  .hud { left: 10px; right: 10px; top: 10px; }
  .ai-tag { display: none; }
  .r-head { flex-direction: column-reverse; align-items: flex-start; gap: 14px; }
  .turns p { grid-template-columns: 40px 1fr; }
  .turns p span { grid-column: 1 / -1; }
  .self { width: 30%; right: 10px; bottom: 64px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } html { scroll-behavior: auto; } }
