:root{--bg:#0e1014;--surface:#171a21;--surface-2:#1e222b;--border:#262b36;--text:#f2f4f8;--muted:#9aa3b2;--accent:#7c5cff;--accent-soft:#7c5cff29;--ok:#3ddc97;--stale:#ffb020;--busy:#4da3ff;--error:#ff5a5f;--radius:16px;--mono:ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}*{box-sizing:border-box}html,body,#root{height:100%}body{color:var(--text);-webkit-font-smoothing:antialiased;overscroll-behavior:none;background:#07080a;margin:0;font:16px/1.45 Inter,system-ui,-apple-system,Segoe UI,sans-serif}h1,h2,p{margin:0}h2{font-size:16px}a{color:inherit;text-decoration:none}p a,.link{color:var(--accent)}.screen{background:var(--bg);flex-direction:column;max-width:560px;height:100dvh;margin:0 auto;display:flex;position:relative;overflow:hidden}.scroll{-webkit-overflow-scrolling:touch;flex:1;min-height:0;overflow-y:auto}.pad{flex-direction:column;gap:12px;padding:12px 16px 24px;display:flex}.header{border-bottom:1px solid var(--border);background:var(--bg);flex-direction:column;flex:none;gap:8px;padding:10px 12px 8px 16px;display:flex}.header-row{align-items:center;gap:8px;min-height:40px;display:flex}.header-title{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;font-size:20px;font-weight:700;overflow:hidden}.header-row>.icon-btn:first-child{margin-left:-8px}.header-right{flex:none;align-items:center;gap:6px;display:flex}.brand{flex:1;font-size:28px;font-weight:800}.actionbar,.composer,.copied{border-top:1px solid var(--border);background:var(--bg);flex:none;padding:10px 12px}.actionbar{align-items:center;gap:8px;display:flex}.tabbar{background:var(--surface);border-top:1px solid var(--border);padding:6px 4px calc(6px + env(safe-area-inset-bottom));flex:none;grid-template-columns:repeat(6,1fr);align-items:end;display:grid}.tab{color:var(--muted);letter-spacing:-.01em;background:0 0;border:0;border-radius:12px;flex-direction:column;justify-content:flex-end;align-items:center;gap:2px;min-height:48px;padding:2px 0;font-size:10.5px;font-weight:600;display:flex}.tab.active{color:var(--accent)}.tab-icon{place-items:center;height:26px;display:grid}.tab.director .tab-icon{background:var(--accent);color:#fff;width:48px;height:48px;box-shadow:0 0 0 4px var(--bg);border-radius:50%;margin-top:-20px}.tab.director:not(.active) .tab-icon{background:#5a43c9}button{font:inherit;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}button:disabled{opacity:.5;cursor:default}.btn{border:1px solid var(--border);background:var(--surface);white-space:nowrap;border-radius:12px;justify-content:center;align-items:center;gap:6px;min-height:44px;padding:8px 16px;font-weight:600;display:inline-flex}.btn.primary{background:var(--accent);border-color:var(--accent);color:#fff}.btn.ghost{color:var(--muted);background:0 0;border-color:#0000}.btn.danger{border-color:var(--error);color:var(--error);background:0 0}.danger-text{color:var(--error)!important}.btn.small{min-height:36px;padding:6px 12px;font-size:14px}.btn.wide{width:100%}.grow{flex:1;min-width:0}.icon-btn{width:40px;height:40px;color:var(--muted);background:0 0;border:0;border-radius:10px;flex:none;place-items:center;display:grid}.icon-btn:active,.btn:active{filter:brightness(1.2)}.link{text-align:left;background:0 0;border:0;padding:0;font-weight:600}.icon{flex:none}input,textarea,select{background:var(--surface);width:100%;color:var(--text);border:1px solid var(--border);font:inherit;border-radius:12px;min-height:44px;padding:10px 12px}textarea{resize:none;display:block}input:focus,textarea:focus,select:focus,button:focus-visible,a:focus-visible{outline:2px solid var(--accent);outline-offset:1px}.field{flex-direction:column;gap:4px;display:flex}.field>span{color:var(--muted);font-size:13px}.inline{align-items:center;gap:8px;display:flex}.muted{color:var(--muted)}.small{font-size:13px}.error{color:var(--error)}.lead{font-size:17px}.pre{white-space:pre-wrap}.eyebrow{letter-spacing:.06em;text-transform:uppercase;color:var(--accent);font-size:12px;font-weight:700}.big-title{font-size:20px;font-weight:700}.section-title{margin-top:8px;font-size:18px}.center-text{text-align:center}.with-icon{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.clamp1,.clamp2,.clamp3{-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.clamp1{-webkit-line-clamp:1;word-break:break-all}.clamp2{-webkit-line-clamp:2}.clamp3{-webkit-line-clamp:3}.num{font:600 12px/1 var(--mono);color:var(--muted);background:var(--surface-2);border:1px solid var(--border);white-space:nowrap;border-radius:6px;flex:none;padding:4px 6px}.num.big{color:var(--text);text-align:center;min-width:30px;font-size:14px}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);flex-direction:column;gap:8px;padding:14px;display:flex}.stack{flex-direction:column;gap:10px;display:flex}.stack.tight{gap:10px}.row-card,.choice,.chat-row{text-align:left;color:var(--text);flex-direction:row;align-items:center;gap:12px}.row-card>.icon,.map-head>.icon:last-child{color:var(--muted)}.row-top{justify-content:space-between;align-items:baseline;gap:8px;display:flex}.row-actions{flex-wrap:wrap;justify-content:flex-end;gap:8px;display:flex}.card.next{grid-template-columns:auto 1fr;align-items:start;gap:10px 12px;display:grid}.card.next .btn{grid-column:1/-1}.choice.selected,.card.next{border-color:var(--accent);background:linear-gradient(0deg, var(--accent-soft), var(--accent-soft)), var(--surface)}.continue{border-color:var(--accent);gap:4px}.pill{background:var(--surface-2);color:var(--muted);white-space:nowrap;border-radius:999px;flex:none;align-items:center;padding:3px 8px;font-size:12px;font-weight:600;display:inline-flex}.pill.warn{color:var(--stale);margin-left:8px}.pill.proposed{background:var(--accent);color:#fff}.pill.accepted{color:var(--ok)}.pill.rejected{color:var(--error)}.pill.reverted{color:var(--stale)}.pill.inserted{background:var(--accent-soft);color:#b9a8ff}.badge{background:var(--accent);color:#fff;border-radius:10px;place-items:center;min-width:20px;height:20px;margin-left:4px;padding:0 6px;font-size:12px;display:inline-grid}.chips{flex-wrap:wrap;gap:6px;display:flex}.chip{border:1px solid var(--border);background:var(--surface-2);color:var(--text);border-radius:999px;align-items:center;gap:6px;max-width:100%;padding:5px 10px;font-size:13px;display:inline-flex}.chip.mono{font-family:var(--mono);color:var(--muted);font-size:12px}.chip.dim{color:var(--muted)}.chip-n{color:var(--muted);font-weight:700}.chip.ref{border-color:var(--accent);background:var(--accent-soft)}.chip.ref button{color:var(--muted);background:0 0;border:0;padding:0;display:grid}button.chip{font-family:inherit}.avatar{background:var(--accent);color:#fff;border-radius:12px;flex:none;place-items:center;width:36px;height:36px;display:grid}.avatar.ghost{background:var(--surface-2);color:var(--muted);border-radius:50%}.segmented{background:var(--surface);border:1px solid var(--border);border-radius:12px;gap:2px;padding:3px;display:flex}.segmented button{min-height:34px;color:var(--muted);background:0 0;border:0;border-radius:9px;flex:1;padding:0 6px;font-size:14px;font-weight:600}.spinner{border:2px solid var(--border);border-top-color:var(--busy);border-radius:50%;flex:none;width:16px;height:16px;animation:.8s linear infinite spin;display:inline-block}@keyframes spin{to{transform:rotate(360deg)}}.center{justify-content:center;align-items:center;gap:8px;padding:32px;display:flex}.empty{text-align:center;flex-direction:column;align-items:center;gap:12px;padding:40px 8px;display:flex}.empty h2{font-size:20px}.empty-icon{background:var(--accent-soft);width:64px;height:64px;color:var(--accent);border-radius:20px;place-items:center;display:grid}.sheet-backdrop{z-index:20;background:#0009;align-items:flex-end;display:flex;position:absolute;inset:0}.sheet{background:var(--surface);border-top:1px solid var(--border);border-radius:20px 20px 0 0;flex-direction:column;gap:12px;width:100%;max-height:88%;padding:12px 16px 20px;display:flex;overflow-y:auto}.sheet input,.sheet textarea,.sheet select{background:var(--bg)}.sheet-head{justify-content:space-between;align-items:center;display:flex}.sheet-head h2{font-size:18px}.sheet-text{min-height:120px}.danger-box{border-color:var(--error)}.stepbar{gap:6px;display:flex}.stepbar span{background:var(--border);border-radius:2px;flex:1;height:4px}.stepbar span.on{background:var(--accent)}.idea{min-height:42dvh;font-size:17px}.checklist{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.checklist li{align-items:flex-start;gap:10px;display:flex}.checklist .spinner{margin-top:3px}.tick{background:var(--ok);color:#06281a;border-radius:50%;flex:none;place-items:center;width:20px;height:20px;margin-top:1px;display:grid}.director-says{align-items:flex-start;gap:10px;display:flex}.bubble{background:var(--surface);border:1px solid var(--border);white-space:pre-wrap;overflow-wrap:anywhere;border-radius:16px;padding:10px 14px}.options{grid-template-columns:1fr 1fr;gap:8px;display:grid}.options.in-chat{grid-template-columns:1fr}.btn.option{white-space:normal;text-align:center;min-height:52px}.dots{flex-direction:column;align-items:center;gap:6px;display:flex}.dot{background:var(--border);border-radius:50%;width:8px;height:8px;margin:0 3px;display:inline-block}.dot.on{background:var(--accent)}.block-head{justify-content:space-between;align-items:center;min-height:28px;display:flex}.block-head .icon-btn{margin:-8px -8px -8px 0}.person{align-items:flex-start;gap:10px;display:flex}.episode-line{border-left:2px solid var(--border);padding-left:10px}.hero{border-radius:var(--radius);border:1px solid var(--border);background:radial-gradient(120% 140% at 0 0,#3a2c8f 0%,#1b1a3a 45%,#12141b 100%);flex-direction:column;gap:8px;padding:18px 16px;display:flex}.hero-meta{font-size:13px;font-weight:700}.hero-logline{color:#d7dbe6}.counters{grid-template-columns:repeat(2,1fr);gap:8px;display:grid}.counter{background:var(--surface);border:1px solid var(--border);border-radius:14px;flex-direction:column;gap:2px;min-width:0;padding:10px 12px;display:flex}.counter b{white-space:nowrap;font-size:22px}.counter b .muted{font-size:14px;font-weight:500}.counter-label{color:var(--muted);font-size:12px}.counter.accent{border-color:var(--accent);background:linear-gradient(0deg, var(--accent-soft), var(--accent-soft)), var(--surface)}.map-head{align-items:center;gap:10px;display:flex}.map-head>.icon:first-child{color:var(--accent)}.tiles{grid-template-columns:1fr 1fr;gap:10px;display:grid}.tile{gap:4px;min-height:120px;position:relative}.tile>.icon{color:var(--accent)}.tile-n{color:var(--muted);font-size:20px;font-weight:700;position:absolute;top:12px;right:14px}.history{color:var(--muted);font-size:14px}.history summary{cursor:pointer;padding:8px 0}.history-line{border-top:1px solid var(--border);padding:6px 0}.start-chat{gap:0}.start-chat h2{margin-bottom:4px}.start-row{border:0;border-top:1px solid var(--border);text-align:left;width:100%;min-height:52px;color:var(--text);background:0 0;align-items:center;gap:12px;display:flex}.start-row:first-of-type{border-top:0}.start-row .grow{flex-direction:column;display:flex}.start-row>.icon:first-child{color:var(--accent)}.chat-row{align-items:flex-start}.chips.tight{margin:4px 0}.chat{gap:14px}.chat-empty{text-align:center;flex-direction:column;align-items:center;gap:12px;padding:24px 12px;display:flex}.msg{align-items:flex-start;gap:8px;display:flex}.msg.user{justify-content:flex-end}.msg.user .bubble{background:var(--accent);border-color:var(--accent);color:#fff;border-bottom-right-radius:6px;max-width:86%}.msg.user .chip.ref{color:#fff;background:#ffffff2e;border-color:#ffffff59}.msg-body{flex-direction:column;flex:1;align-items:flex-start;gap:8px;min-width:0;display:flex}.msg.assistant .bubble{border-top-left-radius:6px}.msg .avatar{border-radius:10px;width:32px;height:32px}.tool-line{color:var(--muted);align-items:center;gap:6px;font-size:13px;display:flex}.decision{border:1px dashed var(--border);width:100%;color:var(--muted);border-radius:12px;align-items:center;gap:8px;padding:8px 12px;font-size:14px;display:flex}.decision>.icon{color:var(--ok)}.decision.gone{opacity:.6;text-decoration:line-through}.addr{background:var(--surface-2);color:#b9a8ff;font:600 .9em var(--mono);border:0;border-radius:6px;padding:1px 5px}.changeset{border-left:4px solid var(--accent);width:100%}.changeset.accepted{border-left-color:var(--ok)}.changeset.rejected,.changeset.reverted{border-left-color:var(--border);opacity:.85}.changeset-head{justify-content:space-between;align-items:flex-start;gap:8px;display:flex}.changeset-items{flex-direction:column;gap:6px;margin:0;padding:0;list-style:none;display:flex}.changeset-items li{align-items:center;gap:6px;min-width:0;display:flex}.act{text-transform:uppercase;letter-spacing:.03em;background:var(--surface-2);color:var(--muted);border-radius:6px;flex:none;padding:3px 6px;font-size:11px;font-weight:700}.act.create{color:var(--ok)}.act.delete{color:var(--error)}.act.update,.act.move,.act.renumber{color:var(--stale)}.changeset-actions{flex-wrap:wrap;gap:8px;display:flex}.changeset-actions .btn{flex:1;padding:8px 10px}.error-box{border-color:var(--error);flex-direction:row;justify-content:space-between;align-items:center}.composer{flex-direction:column;gap:8px;display:flex}.composer-row{align-items:flex-end;gap:8px;display:flex}.composer textarea{border-radius:22px;padding:10px 16px}.send{background:var(--accent);color:#fff;border:0;border-radius:50%;flex:none;place-items:center;width:44px;height:44px;display:grid}.bindings{padding-bottom:2px}.title-btn{font:inherit;text-overflow:ellipsis;background:0 0;border:0;max-width:100%;padding:0;overflow:hidden}.title-input{min-height:36px;padding:4px 8px;font-size:18px}.picker{flex-direction:column;max-height:50dvh;display:flex;overflow-y:auto}.picker-row{border:0;border-top:1px solid var(--border);text-align:left;background:0 0;align-items:center;gap:10px;min-height:46px;display:flex}.picker-row.scene{padding-left:20px}.diff{gap:0;padding:0}.diff-head{text-align:left;background:0 0;border:0;align-items:center;gap:8px;width:100%;min-height:52px;padding:8px 12px;display:flex}.diff-body{flex-direction:column;gap:10px;padding:0 12px 12px;display:flex}.diff-field{flex-direction:column;gap:4px;display:flex}.was,.now{white-space:pre-wrap;overflow-wrap:anywhere;border-radius:10px;padding:8px 12px}.was{border-left:3px solid var(--error);color:#e4b9bb;background:#ff5a5f1f;text-decoration:line-through}.now{border-left:3px solid var(--ok);background:#3ddc971a}.renumber-table{border-collapse:collapse;width:100%;font-size:14px}.renumber-table th{text-align:left;color:var(--muted);font-size:12px;font-weight:500}.renumber-table td,.renumber-table th{padding:5px 8px 5px 0}.scale{align-items:center;gap:10px;display:flex}.crumbs{color:var(--muted);gap:2px;min-width:0;font-size:13px;display:flex}.crumbs button{color:inherit;background:0 0;border:0;flex:0 auto;align-items:center;gap:2px;min-width:0;padding:2px 0;display:flex}.timeline-inner{flex-direction:column;gap:10px;padding:10px 10px 24px;display:flex}.node{border:1px solid var(--border);background:var(--surface);border-radius:14px;scroll-margin-top:6px}.node.season,.node.episode{background:0 0}.node.flash{animation:2.2s ease-out flash}@keyframes flash{0%,40%{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}to{box-shadow:0 0 #0000}}.row-head{align-items:center;gap:4px;padding-right:2px;display:flex}.row-toggle{text-align:left;background:0 0;border:0;flex:1;align-items:center;gap:8px;min-width:0;min-height:46px;padding:6px 4px 6px 8px;display:flex}.row-toggle>.icon{color:var(--muted)}.row-title{overflow-wrap:anywhere;min-width:0;font-weight:700}.node.shot .row-title{font-weight:600}.icon-btn.copy.on{color:var(--accent)}.row-text,.row-meta{padding:0 12px 0 34px}.row-text{color:#c9cfdb;font-size:15px}.row-text:empty{display:none}.row-meta{padding-top:4px;padding-bottom:10px}.children{flex-direction:column;gap:8px;padding:0 6px 8px;display:flex}.shots{border-top:1px solid var(--border);flex-direction:column;padding:0 6px 6px;display:flex}.discuss{align-self:flex-start;align-items:center;gap:6px;padding:10px 6px;display:inline-flex}.node.shot{background:var(--bg);border-radius:12px}.node.shot.open{background:var(--surface-2)}.shot-body{flex-direction:column;gap:8px;padding:0 12px 8px 14px;display:flex}.shot-text{align-items:flex-start;gap:8px;font-size:15px;display:flex}.shot-text>.icon{color:var(--muted);margin-top:3px}.shot-text.sfx{letter-spacing:.02em;font-weight:700}.shot-text.narration,.shot-text.thought{font-style:italic}.shot-foot{align-items:center;display:flex}.shot-foot .icon-btn{margin:-6px -8px -6px 0}.insert{align-items:center;gap:8px;height:22px;display:flex}.insert:before,.insert:after{content:"";background:var(--border);flex:1;height:1px}.insert button{border:1px solid var(--border);background:var(--surface);width:34px;height:22px;color:var(--muted);border-radius:11px;place-items:center;padding:0;display:grid}.copied{background:var(--surface);align-items:center;gap:8px;padding-left:14px;font-size:14px;display:flex}.text-edit{border:1px solid var(--border);border-radius:12px;flex-direction:column;gap:6px;padding:8px;display:flex}.text-edit select{flex:none;width:auto}.mono{font-family:var(--mono);font-size:13px}.cost{font-size:12px}.cost-line{color:var(--text);align-items:baseline;gap:8px;display:flex}.composer textarea{scrollbar-width:none}.actionbar .btn{padding:8px 12px}.copied{font-size:13px}.ava{border-radius:10px;flex:none;place-items:center;font-weight:700;line-height:1;display:inline-grid}.ava.round{border-radius:50%}.pickbar{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.pick-btn{border:1px solid var(--border);background:var(--surface-2);min-height:32px;color:var(--muted);border-radius:999px;align-items:center;gap:5px;padding:4px 10px;font-size:13px;font-weight:600;display:inline-flex}.pick-grid{grid-template-columns:repeat(3,1fr);gap:8px;max-height:52dvh;display:grid;overflow-y:auto}.pick-tile{border:1px solid var(--border);background:var(--bg);text-align:center;border-radius:14px;flex-direction:column;align-items:center;gap:6px;min-width:0;padding:12px 6px;font-size:14px;display:flex}.card-top{align-items:center;gap:14px;display:flex}.concerns{color:#ffd9a0;flex-direction:column;gap:6px;margin:0;padding-left:20px;display:flex}.suggestion{background:var(--bg);border-left:3px solid var(--ok)}.toast{border:1px solid var(--accent);background:linear-gradient(0deg, var(--accent-soft), var(--accent-soft)), var(--surface);color:var(--text);text-align:left;border-radius:14px;flex:none;margin:0 10px 8px;padding:10px 14px;font-size:14px}.row-head .icon-btn{width:32px}.first-shot{align-self:flex-start;margin:8px 0}.shot-foot .icon-btn+.icon-btn{margin-left:4px}.tier{border:1px solid var(--border);background:var(--bg);text-align:left;border-radius:14px;align-items:flex-start;gap:12px;width:100%;padding:12px 14px;display:flex}.tier.on{border-color:var(--accent);background:linear-gradient(0deg, var(--accent-soft), var(--accent-soft)), var(--bg)}.tier-mark{border:2px solid var(--border);color:#fff;border-radius:50%;flex:none;place-items:center;width:22px;height:22px;margin-top:2px;display:grid}.tier.on .tier-mark{border-color:var(--accent);background:var(--accent)}.tier-head{justify-content:space-between;align-items:baseline;gap:8px;display:flex}.tier-price{white-space:nowrap;font-weight:600}.status{background:var(--surface-2);color:var(--muted);white-space:nowrap;border-radius:999px;flex:none;align-items:center;gap:6px;padding:3px 9px 3px 7px;font-size:12px;font-weight:600;display:inline-flex}.status i{background:#6b7382;border-radius:50%;width:8px;height:8px}.status.st-ready i{background:var(--ok)}.status.st-stale i{background:var(--stale)}.status.st-queued i,.status.st-running i{background:var(--busy)}.status.st-error i{background:var(--error)}.status.st-ready{color:var(--ok)}.status.st-stale{color:var(--stale)}.status.st-error{color:var(--error)}.price{opacity:.85;white-space:nowrap;align-items:center;gap:3px;font-size:13px;font-weight:600;display:inline-flex}.price-btn{white-space:normal;text-align:left;justify-content:space-between;gap:12px}.asset{flex-direction:column;gap:8px;display:flex}.asset-frame{background:var(--bg);border:1px solid var(--border);border-radius:12px;width:100%;position:relative;overflow:hidden}.asset.as-empty .asset-frame,.asset.as-error .asset-frame{border-style:dashed}.asset-frame>img,.asset-frame>canvas{object-fit:contain;background:#fff;width:100%;height:100%;display:block}.asset-frame>canvas.pano{touch-action:none;cursor:grab;background:var(--bg)}.asset-empty{text-align:center;place-items:center;padding:12px;display:grid;position:absolute;inset:0}.asset-busy{background:#0e1014b8;justify-content:center;align-items:center;gap:8px;font-size:14px;display:flex;position:absolute;inset:0}.asset-bar,.asset-actions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.asset-actions .btn.primary{flex:1}.icon-btn.on{color:var(--accent)}.stale-box{background:#ffb02014;border:1px solid #ffb02066;border-radius:12px;flex-direction:column;gap:8px;padding:10px 12px;font-size:14px;display:flex}.stale-reason{align-items:baseline;gap:8px;display:flex}.lightbox{z-index:30;background:#000;align-items:center;display:flex;position:absolute;inset:0;overflow:auto}.lightbox img{width:auto;max-width:none;height:100%;margin:0 auto}.version-row{border:1px solid var(--border);background:var(--bg);text-align:left;border-radius:12px;align-items:center;gap:12px;padding:8px;display:flex}.version-row.on{border-color:var(--accent)}.version-row img{object-fit:cover;background:#fff;border-radius:8px;flex:none;width:96px;height:64px}.version-row .grow{flex-direction:column;gap:2px;display:flex}.jobsbar{border:1px solid var(--busy);color:var(--text);text-align:left;background:#4da3ff1a;border-radius:14px;flex:none;align-items:center;gap:8px;margin:0 10px 8px;padding:9px 14px;font-size:14px;display:flex}.jobsbar.failed{border-color:var(--error);background:#ff5a5f1a}.job-row{border-top:1px solid var(--border);align-items:flex-start;gap:10px;padding:8px 0;display:flex}.job-row .grow{flex-direction:column;display:flex}.dot-status{background:var(--ok);border-radius:50%;flex:none;width:10px;height:10px;margin-top:6px}.dot-status.error{background:var(--error)}.hint-card{border-color:var(--accent);flex-direction:row;align-items:center;gap:12px}.hint-card>.icon:first-child{color:var(--accent)}.stale-banner{border-color:#ffb02080}.casting-grid{grid-template-rows:repeat(3,1fr);grid-template-columns:repeat(3,1fr);display:grid;position:absolute;inset:0}.casting-grid button{background:0 0;border:3px solid #0000;border-radius:6px}.casting-grid button.on{border-color:var(--accent);box-shadow:inset 0 0 0 2px #fff}.section-row{justify-content:space-between;align-items:center;display:flex}.chip.warn{color:var(--stale);border-color:#ffb02080}.pill.warn{margin-left:0}.stale-item{border-top:1px solid var(--border);align-items:flex-start;gap:10px;padding-top:10px;display:flex}.stale-item img{object-fit:cover;background:#fff;border-radius:8px;flex:none;width:72px;height:54px}.stale-actions{flex-wrap:wrap;gap:4px 14px;margin-top:4px;display:flex}.counter{border:1px solid var(--border);text-align:left;color:var(--text);font:inherit}.counter.warn{background:#ffb02014;border-color:#ffb02080}img.ava{object-fit:cover;background:#fff}.prep{border:1px solid var(--border);background:var(--bg);border-radius:12px;margin:6px 0;padding:0 10px}.prep summary{cursor:pointer;align-items:center;gap:8px;min-height:42px;font-size:14px;font-weight:600;list-style:none;display:flex}.prep summary::-webkit-details-marker{display:none}.prep summary .pill{margin-left:auto}.prep-row{border-top:1px solid var(--border);align-items:center;gap:10px;padding:8px 0;font-size:14px;display:flex}.prep-row .grow{flex-direction:column;gap:4px;display:flex}.prep-row select{min-height:34px;padding:4px 8px;font-size:13px}.prep>p{padding-bottom:10px}.fact{border-top:1px solid var(--border);flex-direction:column;padding:6px 0;display:flex}.variations{border-top:1px solid var(--border);gap:8px;padding-top:4px;display:grid}.rework-head{align-items:flex-start;gap:12px;display:flex}.rework-head img{object-fit:cover;background:#fff;border-radius:12px;flex:none;width:72px;height:72px}.segmented{background:var(--bg);border:1px solid var(--border);border-radius:12px;grid-auto-columns:1fr;grid-auto-flow:column;gap:4px;padding:4px;display:grid}.segmented button{color:var(--muted);background:0 0;border:0;border-radius:9px;min-height:36px;font-size:14px;font-weight:600}.segmented button.on{background:var(--accent);color:#fff}.tier-prices{margin-top:4px;font-weight:600;display:block}.meter{background:var(--bg);border:1px solid var(--border);border-radius:4px;height:8px;overflow:hidden}.meter>span{background:var(--accent);height:100%;display:block}.meter>span.warn{background:var(--error)}.usage-rows{gap:8px;display:grid}.usage-row{align-items:baseline;gap:12px;display:flex}.usage-row b{white-space:nowrap}.avatar-stub{background:var(--bg);border:1px solid var(--border);width:44px;height:44px;color:var(--muted);border-radius:50%;flex:none;place-items:center;display:grid}.tier.unfit{opacity:.55}.shot-frame{flex-direction:column;gap:6px;display:flex}.shot-frame .asset-frame>img{object-fit:cover;background:var(--bg);cursor:zoom-in}.staging-line{border:1px solid var(--border);width:100%;min-height:34px;color:var(--muted);font:inherit;text-align:left;cursor:pointer;background:0 0;border-radius:10px;align-items:center;gap:8px;padding:4px 10px;font-size:13px;display:flex}.chip.pick{align-items:center;gap:6px;min-height:34px;display:inline-flex}.chip.pick.on{border-color:var(--accent);background:var(--accent-soft);color:var(--text)}.strip{flex-wrap:wrap;gap:3px;padding:0 12px 10px 34px;display:flex}.strip-cell{aspect-ratio:16/9;border:1px solid var(--border);background:var(--bg);border-radius:4px;place-items:center;width:44px;display:grid;overflow:hidden}.strip.small .strip-cell{border-radius:3px;width:28px}.strip-cell.stale{border-color:var(--stale)}.strip-cell img{object-fit:cover;width:100%;height:100%;display:block}.strip-cell .spinner{width:10px;height:10px}.batch{flex-direction:column;gap:6px;margin:2px 0 6px;display:flex}.card.page-row{flex-direction:row;align-items:center;gap:12px;display:flex}.page-row .grow{flex-direction:column;gap:2px;min-width:0;display:flex}.page-thumb{aspect-ratio:2/3;border:1px solid var(--border);background:var(--bg);border-radius:8px;flex:none;grid-template-columns:1fr;align-content:start;gap:2px;width:64px;display:grid;overflow:hidden}.page-thumb img{object-fit:cover;width:100%;height:100%;display:block}.page-thumb-cell{aspect-ratio:16/9;background:var(--surface-2)}.page-flags{flex-wrap:wrap;align-items:center;gap:6px;margin-top:4px;display:flex}.pill.warn{color:var(--stale);border-color:var(--stale)}.boundary{flex-wrap:wrap;justify-content:space-between;gap:8px;padding:6px 10px;display:flex}.boundary .link:disabled{opacity:.35}.card.beat{flex-direction:row;align-items:flex-start;gap:12px;display:flex}.beat .grow{flex-direction:column;gap:3px;min-width:0;display:flex}.beat-thumb{aspect-ratio:16/9;border:1px solid var(--border);background:var(--bg);width:96px;color:var(--muted);border-radius:8px;flex:none;place-items:center;display:grid;overflow:hidden}.beat-thumb img{object-fit:cover;width:100%;height:100%;display:block}.row-actions.wrap{flex-wrap:wrap}.reader{background:#000}.reader-bar{background:var(--bg);border-bottom:1px solid var(--border);align-items:center;gap:8px;padding:8px 10px;display:flex}.reader-bar .segmented{flex:none}.reader-strip{flex-direction:column;flex:1;gap:10px;display:flex;overflow-y:auto}.reader-strip img{aspect-ratio:2/3;background:#111;width:100%;display:block}.reader-gap{aspect-ratio:2/3;border:1px dashed var(--border);text-align:center;border-radius:12px;place-items:center;margin:0 12px;padding:12px;display:grid}.reader-end{flex-direction:column;align-items:center;gap:10px;padding:20px 12px 32px;display:flex}.reader-page{flex:1;place-items:center;min-height:0;display:grid;position:relative}.reader-page img{object-fit:contain;max-width:100%;max-height:100%;display:block}.reader-page .reader-gap{height:80%}.reader-nav{cursor:pointer;background:0 0;border:0;width:35%;position:absolute;top:0;bottom:0}.reader-nav.prev{left:0}.reader-nav.next{right:0}.reader-nav:disabled{cursor:default}.reader-count{font-size:13px;font-family:var(--mono);background:#0e1014cc;border-radius:999px;padding:4px 12px;position:absolute;bottom:10px;left:50%;transform:translate(-50%)}.issue{border-left:3px solid var(--border)}.issue.sev-high{border-left-color:var(--error)}.issue.sev-medium{border-left-color:var(--stale)}.issue-kind{text-transform:uppercase;letter-spacing:.04em;color:var(--muted);font-size:12px}.issue.closed{opacity:.7}a.decision{cursor:pointer}.style-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.style-tile{border:1px solid var(--border);background:var(--surface);border-radius:14px;flex-direction:column;gap:4px;min-width:0;padding:8px;display:flex}.style-tile.on{border-color:var(--accent)}.style-tile .pill{align-self:flex-start}.style-thumb{aspect-ratio:16/9;background:var(--bg);color:var(--muted);border-radius:8px;place-items:center;display:grid;overflow:hidden}.style-thumb img{object-fit:cover;width:100%;height:100%;display:block}.style-current img{background:#fff;border-radius:10px;width:100%;display:block}.style-current .asset-empty{aspect-ratio:16/9;border:1px dashed var(--border);border-radius:10px;position:static}.variant{background:var(--surface-2)}.wizard-refs{flex-wrap:wrap;gap:6px;padding-bottom:6px;display:flex}.wizard-ref{border:1px solid var(--border);border-radius:8px;width:64px;height:64px;position:relative;overflow:hidden}.wizard-ref img{object-fit:cover;width:100%;height:100%;display:block}.wizard-ref button{width:20px;height:20px;color:var(--text);cursor:pointer;background:#0e1014cc;border:0;border-radius:50%;place-items:center;display:grid;position:absolute;top:2px;right:2px}.impact-list{flex-direction:column;gap:8px;margin:8px 0 0;padding:0;list-style:none;display:flex}.impact-list li{align-items:baseline;gap:10px;font-size:14px;display:flex}.nowrap{white-space:nowrap}.fixes-note{color:var(--ok,#6fcf97);flex-wrap:nowrap;align-items:flex-start}.fixes-note svg{flex:none;margin-top:2px}.chip.take-idea{border-color:var(--accent);background:var(--accent-soft);cursor:pointer;text-align:left}.describe-mode>span{flex-direction:column;gap:4px;display:flex}.login{flex-direction:column;justify-content:center;gap:20px;width:100%;max-width:420px;min-height:100%;margin:0 auto;display:flex}.login-head{text-align:center;flex-direction:column;gap:6px;display:flex}.login-or,.login-note{text-align:center}
