:root{--bg:#fbfaf7;--fg:#1d1d1b;--muted:#55544f;--accent:#1f5f46;--line:#dcd8cc;--card:#ffffff;--code:#f1efe8;--warn:#8a4b00;--ok:#1f5f46;--bad:#a12626}
@media (prefers-color-scheme:dark){:root{--bg:#101311;--fg:#ecebe6;--muted:#b6b4ac;--accent:#8fe0b4;--line:#30332e;--card:#181c19;--code:#1c1f1c;--warn:#ffc857;--ok:#8fe0b4;--bad:#ff9d9d}}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--fg);font:17px/1.6 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif}
.skip{position:absolute;left:-999px}.skip:focus{left:1rem;top:1rem;background:var(--card);padding:.4rem .7rem;z-index:5}
header,main,footer{max-width:68rem;margin:0 auto;padding:0 max(16px,env(safe-area-inset-left,0px))}
header{padding-top:1.4rem}header nav{display:flex;flex-wrap:wrap;gap:.3rem 1.2rem;font-size:.95rem}
a{color:var(--accent)}header a{font-weight:600}
main{padding-top:.6rem;padding-bottom:3rem}
h1{font-size:clamp(1.8rem,5vw,2.5rem);line-height:1.15;margin:.8rem 0 .6rem;text-wrap:balance}
h2{font-size:1.35rem;margin:2.2rem 0 .6rem}h3{font-size:1.08rem;margin:1.2rem 0 .3rem}
.lede{font-size:1.1rem;max-width:46rem}.note{color:var(--muted);font-size:.93rem;border-left:3px solid var(--line);padding-left:.8rem;max-width:46rem}
p,li{max-width:46rem}code{font:.88em ui-monospace,SFMono-Regular,Menlo,monospace;background:var(--code);padding:.08em .3em;border-radius:3px;overflow-wrap:anywhere}
footer{border-top:1px solid var(--line);padding-top:1rem;padding-bottom:2rem;color:var(--muted);font-size:.86rem}
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.lanes{display:flex;flex-wrap:wrap;gap:.4rem;list-style:none;padding:0;margin:1rem 0}
.lanes li{border:1px solid var(--line);border-radius:999px;padding:.15rem .7rem;font-size:.86rem;background:var(--card)}
.lanes li.has{border-color:var(--accent);font-weight:700}
.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(19rem,1fr));gap:1rem;list-style:none;padding:0;margin:1rem 0}
.card{border:1px solid var(--line);border-radius:10px;background:var(--card);padding:1rem 1.1rem;display:flex;flex-direction:column;gap:.45rem}
.card h3{margin:0;font-size:1.15rem;line-height:1.25}.card p{margin:0;font-size:.95rem}
.card ul{margin:0;padding-left:1.1rem;font-size:.92rem}.card .links{margin-top:auto;padding-top:.4rem;display:flex;flex-wrap:wrap;gap:.2rem 1rem;font-size:.93rem;font-weight:600}
.status{display:inline-block;width:max-content;border-radius:999px;padding:.05rem .65rem;font-size:.8rem;font-weight:700;border:1px solid currentColor;text-transform:uppercase;letter-spacing:.04em}
.s-idea,.s-scripting{color:var(--muted)}.s-building,.s-review{color:var(--warn)}.s-signed,.s-published{color:var(--ok)}.s-stopped{color:var(--bad)}
.meta{color:var(--muted);font-size:.86rem}
.table{overflow-x:auto}table{border-collapse:collapse;font-size:.92rem;margin:.8rem 0;width:100%}th,td{border:1px solid var(--line);padding:.4rem .6rem;vertical-align:top;text-align:left}
.ok{color:var(--ok);font-weight:700}.bad{color:var(--bad);font-weight:700}.wait{color:var(--warn);font-weight:700}
/* the player */
.player{margin:1.2rem 0;border:1px solid var(--line);border-radius:10px;background:var(--card);padding:.8rem}
.player:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
.stage{background:#05070b;border-radius:6px;display:grid;place-items:center;overflow:hidden}
.stage canvas{display:block;width:100%;height:auto;max-height:82vh}
.player.portrait .stage canvas{width:auto;max-width:100%;height:auto;max-height:82vh}
.stage:fullscreen canvas{max-height:100vh;width:auto;max-width:100vw}
.cap{min-height:3.2em;margin:.6rem .2rem .2rem;font-size:1.05rem;max-width:none}
.bar{display:flex;flex-wrap:wrap;gap:.45rem;align-items:center;margin-top:.4rem}
.bar input[type=range]{flex:1 1 12rem;min-width:8rem;accent-color:var(--accent)}
button,select{font:inherit;font-size:.93rem;padding:.4rem .8rem;border-radius:6px;border:1px solid var(--line);background:var(--bg);color:var(--fg);cursor:pointer;min-height:2.4rem}
button:hover{border-color:var(--accent)}button:focus-visible,select:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
button[disabled]{opacity:.55;cursor:not-allowed}button.primary{background:var(--accent);color:var(--bg);border-color:var(--accent);font-weight:700}
[data-role=status]{min-height:1.5em;margin:.4rem .2rem;color:var(--muted);font-size:.93rem;max-width:none}
.tele{border-top:1px solid var(--line);margin-top:.6rem;padding-top:.6rem}
.tele .script{height:11.5rem;overflow-y:auto;border:1px solid var(--line);border-radius:6px;padding:4rem 1rem;background:var(--bg);font-size:1.35rem;line-height:1.4}
.tele .script p{margin:.5rem 0;color:var(--muted);max-width:none}.tele .script p.on{color:var(--fg);font-weight:700}
[data-role=out] video{max-width:100%;max-height:60vh;border-radius:6px;margin-top:.6rem}
.transcript li{margin:.7rem 0}.transcript .src{display:block;font-size:.86rem;color:var(--muted)}
textarea,input[type=text]{font:inherit;width:100%;max-width:46rem;padding:.5rem;border-radius:6px;border:1px solid var(--line);background:var(--bg);color:var(--fg)}
textarea.out{font:.8rem/1.4 ui-monospace,Menlo,monospace;height:11rem}
form.review{display:grid;gap:.7rem;max-width:46rem}form.review label{font-weight:600;display:grid;gap:.25rem}
.thread{max-height:28rem;overflow-y:auto;border:1px solid var(--line);border-radius:8px;padding:.8rem;background:var(--card);margin:.6rem 0 1rem;max-width:46rem}
.msg{border-radius:10px;padding:.5rem .8rem;margin:.5rem 0;max-width:38rem;border:1px solid var(--line)}.msg p{margin:.15rem 0}
.msg.mine{margin-left:auto;background:var(--code)}.msg.theirs{border-color:var(--accent)}
.rate button[aria-pressed=true]{border-color:var(--accent);font-weight:700}
.drop{border:2px dashed var(--line);border-radius:8px;padding:1rem;color:var(--muted);max-width:46rem}
#pkqr{display:block;width:14rem;height:14rem;border-radius:6px;margin:.5rem 0;image-rendering:pixelated}
.chips{display:flex;flex-wrap:wrap;gap:.35rem;list-style:none;padding:0;margin:.6rem 0}
.chips button{min-height:2.2rem;padding:.2rem .65rem;font-size:.86rem}.chips button[aria-current=true]{border-color:var(--accent);font-weight:700;background:var(--code)}
.chips button.done::after{content:" \2713"}.chips button.up::after{content:" \1F44D"}.chips button.down::after{content:" \1F44E"}
.scenes{border:1px solid var(--line);border-radius:10px;background:var(--card);padding:.2rem 1rem 1rem;margin:1rem 0}
.bar button[aria-pressed=true]{border-color:var(--accent);font-weight:700;background:var(--code)}
main:has(.suite){max-width:104rem}
.suite{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:1.2rem;align-items:start}
.suite .preview{position:sticky;top:.5rem}.suite .preview .player{margin-top:0}
.shots{list-style:none;padding:0;margin:0;display:grid;gap:.8rem}
.shot{border:1px solid var(--line);border-radius:10px;background:var(--card);padding:.6rem .8rem}.shot.on{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent)}
.shot h2{margin:.1rem 0 .4rem;font-size:1.02rem}.shot .num{display:inline-grid;place-items:center;min-width:1.7rem;height:1.7rem;border-radius:999px;background:var(--accent);color:var(--bg);font-size:.85rem}
.shot.up .num::after{content:" \1F44D"}.shot.down .num::after{content:" \1F44E"}.shot.done .num::after{content:" \2713"}
.thumbs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.35rem}.thumb{padding:0;border:2px solid transparent;border-radius:6px;overflow:hidden;min-height:0;background:#05070b}.thumb:hover,.thumb:focus-visible{border-color:var(--accent)}.thumb img{display:block;width:100%;height:auto;border-radius:0}
.shot .voice{margin:.45rem 0 .2rem;font-size:.95rem;max-width:none}.shot p{max-width:none;margin:.3rem 0}.shot textarea{max-width:none}
@media (max-width:62rem){.suite{grid-template-columns:1fr}.suite .preview{order:-1;top:0;z-index:2;background:var(--bg);padding-bottom:.3rem}.suite .preview .stage canvas{max-height:38vh;width:auto;max-width:100%}}
.verbar{margin:0 0 .5rem;font:12px/1.6 ui-monospace,SFMono-Regular,Menlo,monospace;max-width:none}.verbar a{font-weight:400;border:1px solid var(--line);border-radius:999px;padding:.1rem .6rem;text-decoration:none;display:inline-block}.verbar a:hover{text-decoration:underline}
header nav .gh{margin-left:auto}
.cellviz{display:block;max-width:none;height:auto}.cv-bg{fill:var(--card);stroke:var(--line)}.cv-grid{stroke:var(--line);stroke-width:1}
.cv-h{font:700 13px system-ui,sans-serif;fill:var(--fg)}.cv-s{font:12px system-ui,sans-serif;fill:var(--muted)}.cv-role{font:700 15px system-ui,sans-serif;fill:var(--fg)}.cv-empty{fill:var(--muted)}
.cv-run{fill:var(--accent);fill-opacity:.3;stroke:var(--accent);stroke-width:1.5}.cv-run.cv-out{fill:none;stroke-dasharray:5 3;stroke-width:2}.cv-t{font:600 11.5px system-ui,sans-serif;fill:var(--fg);pointer-events:none}
details summary{cursor:pointer;font-weight:600;margin:.6rem 0}
.cv-line{fill:none;stroke-width:3;stroke-linejoin:round}.cv-l1{stroke:var(--bad)}.cv-l2{stroke:var(--warn)}.cv-l3{stroke:var(--ok)}
.legend{list-style:none;padding:0}.legend .sw{display:inline-block;width:1.4rem;height:.25rem;margin-right:.5rem;vertical-align:middle}.cv-l1s{background:var(--bad)}.cv-l2s{background:var(--warn)}.cv-l3s{background:var(--ok)}
.sbgrid{grid-template-columns:repeat(auto-fill,minmax(min(100%,26rem),1fr))}.sb{display:block;width:100%;height:auto;border-radius:8px}
.prodnav{display:flex;flex-wrap:wrap;gap:.3rem .8rem;align-items:center;border:1px solid var(--line);border-radius:10px;background:var(--card);padding:.5rem .8rem;margin:0 0 1rem;position:sticky;top:0;z-index:3}.prodnav ul{display:flex;flex-wrap:wrap;gap:.2rem .3rem;list-style:none;margin:0;padding:0}.prodnav a{display:inline-block;padding:.25rem .6rem;border-radius:999px;text-decoration:none;border:1px solid transparent}.prodnav a:hover{border-color:var(--line)}.prodnav a[aria-current=page]{background:var(--accent);color:var(--bg);font-weight:700}
.cards.wide{grid-template-columns:repeat(auto-fill,minmax(min(100%,24rem),1fr))}.kv dt{font-weight:700;margin-top:.5rem}.kv dd{margin:0}.said{white-space:pre-wrap;background:var(--code);padding:.8rem;border-radius:8px;font:14px/1.5 ui-monospace,Menlo,monospace;overflow-x:auto;max-width:46rem}
.screenplay{max-width:40rem;font-family:"Courier New",Courier,monospace}.screenplay .scene{border-top:1px solid var(--line);padding:.6rem 0}.screenplay h2{font-size:1rem;font-family:inherit}.screenplay .direction{color:var(--muted);max-width:none}.screenplay .who{margin:.6rem 0 0 30%;font-weight:700}.screenplay .line{margin:0 12% .4rem 15%;max-width:none}
.tree,.tree ul{list-style:none;margin:0;padding-left:1.4rem;border-left:2px solid var(--line)}.tree{border-left:0;padding-left:0}.tree li{margin:.6rem 0}.member{border:1px solid var(--line);border-radius:10px;background:var(--card);padding:.5rem .8rem;max-width:44rem}.member .model{font-weight:700;color:var(--accent)}
.longread{max-width:44rem}.frame{margin:1rem 0;float:right;width:min(42%,15rem);margin-left:1rem}.frame img{width:100%;height:auto;border-radius:10px;display:block}.frame figcaption{font-size:.85rem;color:var(--muted)}.longread h2{clear:both}@media (max-width:40rem){.frame{float:none;width:100%;max-width:18rem;margin-left:0}}
[data-act=dictate][aria-pressed=true]{border-color:var(--bad);font-weight:700}[data-act=dictate][aria-pressed=true]::before{content:"\25CF\00A0";color:var(--bad)}
.signin{border:2px solid var(--accent);border-radius:10px;padding:.6rem .8rem;background:var(--card);max-width:46rem}.signin textarea{max-width:none}
textarea:disabled{opacity:.55;cursor:not-allowed}
.sendbox{border:2px solid var(--accent);border-radius:10px;padding:.6rem .9rem;margin:1rem 0;background:var(--card);max-width:46rem}.sendbox input,.sendbox select{font:inherit;padding:.4rem;border-radius:6px;border:1px solid var(--line);background:var(--bg);color:var(--fg);min-width:16rem}.sendbox code.big{font-size:1.3rem;font-weight:700;user-select:all}

.track{display:flex;flex-wrap:wrap;gap:.25rem;list-style:none;padding:0;margin:.5rem 0}
.track li{font-size:.8rem;padding:.1rem .5rem;border-radius:999px;border:1px solid var(--line);color:var(--muted)}
.track li.done{color:var(--ok);border-color:var(--ok)}
.track li.now{color:var(--warn);border-color:var(--warn);font-weight:700}
.pipeboard{display:grid;grid-template-columns:repeat(auto-fit,minmax(9rem,1fr));gap:.5rem;overflow-x:auto}
.pipeboard .col{border:1px solid var(--line);border-radius:.5rem;padding:.5rem;background:var(--card)}
.pipeboard h3{font-size:.9rem;margin:0 0 .4rem}
.pipeboard ul{list-style:none;padding:0;margin:0;font-size:.85rem}
.waiting li{margin:.4rem 0}
