:root{color-scheme:dark;--bg:#08090a;--panel:#0f1011;--raised:#161718;--line:#23252a;--text:#f7f8f8;--muted:#9da3ac;--accent:#e4f222;--radius:6px}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:14px/1.55 Inter,Arial,sans-serif}button,input,textarea,select{font:inherit}a{color:inherit;text-decoration:none}button,.button{cursor:pointer;border:1px solid var(--line);background:var(--raised);color:var(--text);border-radius:6px;padding:10px 16px;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px}button:hover,.button:hover{border-color:#61666c}button.primary,.button.primary{background:var(--accent);color:#111;border-color:var(--accent);font-weight:650}button:disabled{opacity:.4;cursor:wait}:focus-visible{outline:2px solid var(--accent);outline-offset:3px}input,textarea,select{width:100%;background:var(--bg);border:1px solid #383b3f;border-radius:6px;color:var(--text);padding:11px 12px;min-height:44px}input[type=checkbox]{width:18px;min-height:18px;accent-color:var(--accent)}textarea{resize:vertical;min-height:100px}label{display:block;color:#d0d6e0;font-size:13px}label input,label select,label textarea{margin-top:7px}label small{display:block;margin-top:5px}small,.muted{color:var(--muted)}h1,h2,h3,p{margin:0}h1{font-size:32px;font-weight:550;letter-spacing:-1px;line-height:1.2;text-wrap:balance}h2{font-size:21px;font-weight:550;letter-spacing:-.4px}h3{font-size:16px;font-weight:550}p{margin-top:8px}hr{border:0;border-top:1px solid var(--line);margin:24px 0}.shell{display:grid;grid-template-columns:228px minmax(0,1fr);min-height:100vh}.sidebar{border-right:1px solid var(--line);padding:26px 18px;position:sticky;top:0;height:100vh;display:flex;flex-direction:column;background:var(--panel)}.brand{font-size:22px;font-weight:750;letter-spacing:-1px;display:flex;gap:10px;align-items:center}.mark{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border:1px solid #4c5056;border-radius:7px;font-size:14px;color:var(--accent)}.workspace{font-size:11px;letter-spacing:1.5px;color:var(--muted);margin:36px 12px 12px}.nav{display:grid;gap:6px}.nav a{padding:11px 12px;border-radius:6px;color:#b8bec7;display:flex;gap:12px}.nav a:hover,.nav a.active{background:#202224;color:white}.nav .icon{width:19px;font-size:17px;line-height:20px}.sidebar-bottom{margin-top:auto;padding:18px 10px 0;border-top:1px solid var(--line);color:var(--muted)}.sidebar-bottom button{margin-top:14px;font-size:12px;padding:6px 12px;min-height:34px}.content{min-width:0}.topbar{height:65px;border-bottom:1px solid var(--line);padding:0 38px;display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:12px}.online{display:inline-flex;gap:8px;align-items:center}.online:before{content:'';width:6px;height:6px;border-radius:50%;background:#8cad65}.page{max-width:1450px;padding:40px 38px 80px;margin:auto}.page-head{display:flex;gap:20px;align-items:center;justify-content:space-between;margin-bottom:30px}.eyebrow{font-size:11px;letter-spacing:1.7px;text-transform:uppercase;color:var(--muted);margin-bottom:12px}.panel{background:var(--panel);border:1px solid var(--line);border-radius:6px;padding:24px}.grid{display:grid;gap:20px}.cols2{grid-template-columns:repeat(2,minmax(0,1fr))}.cols3{grid-template-columns:repeat(3,minmax(0,1fr))}.metrics{display:grid;grid-template-columns:repeat(3,1fr);border:1px solid var(--line);border-radius:6px;margin-bottom:30px;background:var(--panel)}.metric{padding:22px 26px;border-right:1px solid var(--line)}.metric:last-child{border:0}.metric strong{font-size:32px;font-weight:500;display:block;letter-spacing:-1px;margin-top:6px}.metric span{font-size:12px;color:var(--muted)}.section-head{display:flex;justify-content:space-between;gap:20px;align-items:center;margin:30px 0 15px}.empty{padding:54px 30px;text-align:center;border:1px dashed #383b3f;border-radius:6px;background:var(--panel)}.empty .empty-icon{font-size:40px;color:#71767e;margin-bottom:16px}.empty p{max-width:420px;margin:10px auto 24px}.table{width:100%;border-collapse:collapse;text-align:left}.table th{font-size:11px;color:var(--muted);font-weight:500;text-transform:uppercase;letter-spacing:.7px;padding:12px 16px;border-bottom:1px solid var(--line)}.table td{padding:18px 16px;border-bottom:1px solid var(--line)}.table tr:last-child td{border-bottom:0}.table-wrap{border:1px solid var(--line);border-radius:6px;background:var(--panel);overflow-x:auto}.pill{display:inline-block;border:1px solid #383b3f;border-radius:4px;padding:3px 8px;font-size:11px;color:#d0d6e0;white-space:nowrap}.pill.good{color:#9aca9c;border-color:#33523b;background:#112519}.pill.warn{color:#eac580;border-color:#63532e;background:#252014}.row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.space{justify-content:space-between}.stack{display:grid;gap:20px}.form-section{padding:26px;border:1px solid var(--line);background:var(--panel);border-radius:6px}.form-section h2{margin-bottom:22px}.step{font-size:11px;letter-spacing:1px;color:var(--muted);margin-bottom:6px}.estimate{padding:20px 24px;border:1px solid #42462a;border-radius:6px;background:#15170e}.estimate strong{font-size:28px;letter-spacing:-.5px}.form-footer{display:flex;justify-content:space-between;gap:20px;align-items:center;padding-top:20px}.auth{display:grid;grid-template-columns:1fr 1fr;min-height:100vh}.auth-art{background:var(--panel);border-right:1px solid var(--line);padding:56px;display:flex;flex-direction:column;justify-content:space-between}.auth-art h1{font-size:54px;max-width:620px;line-height:1.07;letter-spacing:-2px;margin-top:70px}.auth-art p{max-width:440px;font-size:16px;color:var(--muted);margin-top:24px}.auth-form{align-self:center;max-width:430px;width:100%;padding:30px;margin:auto}.auth-form h2{font-size:28px}.auth-form form{margin-top:30px}.auth-form button[type=submit]{width:100%}.auth-links{display:flex;gap:16px;margin:22px 0}.auth-links button{border:0;background:transparent;padding:0;color:var(--muted);min-height:30px}.pipeline{margin:60px 0;display:grid;grid-template-columns:1fr 1fr 1fr;gap:1px;background:var(--line);border:1px solid var(--line);border-radius:6px;overflow:hidden}.pipeline div{padding:24px 15px;background:var(--panel)}.pipeline small{display:block}.pipeline strong{display:block;font-size:30px;font-weight:400;margin-top:16px}.error{color:#ffb2a6;background:#2a1715;padding:12px 16px;border:1px solid #6c3933;border-radius:6px;margin:14px 0}.notice{color:#c7ccd2;border-left:2px solid #727880;padding:8px 16px;margin:20px 0;font-size:13px}.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:18px}.video-card{border:1px solid var(--line);border-radius:6px;overflow:hidden;background:var(--panel)}.video-card .body{padding:20px}.video-card .thumb{background:#17191b;aspect-ratio:9/7;padding:24px;display:flex;flex-direction:column;justify-content:space-between;border-bottom:1px solid var(--line)}.video-card .thumb h3{font-size:23px;letter-spacing:-.5px;line-height:1.25}.video-card video{width:100%;max-height:410px;background:#000}.video-card button{margin-top:12px;font-size:12px}.video-card details{margin-top:15px;color:#cbd0d7}.video-card summary{cursor:pointer;font-size:12px}.video-card .scene{padding:12px 0;border-bottom:1px solid var(--line)}.matrix{display:grid;gap:14px}.matrix>details{border:1px solid var(--line);border-radius:6px;background:var(--panel)}.matrix>details>summary{padding:20px;cursor:pointer}.matrix .pain{padding:18px 22px;border-top:1px solid var(--line)}.matrix .pain>p{margin-bottom:18px}.loading{padding:40px;color:var(--muted)}#toast{position:fixed;bottom:24px;right:24px;padding:14px 20px;background:#24272a;border:1px solid #53585d;border-radius:6px;max-width:420px;z-index:100;display:none}.feature-list{display:grid;gap:14px;margin-top:20px}.feature-list>div{padding-bottom:14px;border-bottom:1px solid var(--line)}.keys-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.key-card{padding:18px;border:1px solid var(--line);background:var(--panel);border-radius:6px}.key-card input{margin-top:14px}.key-card button{font-size:12px;margin-top:10px}.check{display:flex;align-items:center;gap:10px}.check input{margin:0}pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;color:#afb7c2}.nowrap{white-space:nowrap}@media(max-width:1000px){.shell{grid-template-columns:185px 1fr}.page{padding:28px 22px}.topbar{padding:0 22px}.cols3{grid-template-columns:1fr 1fr}.auth-art{padding:35px}.auth-art h1{font-size:40px}.keys-grid{grid-template-columns:1fr}}@media(max-width:700px){.shell{display:block}.sidebar{height:auto;position:static;padding:16px;border-right:0;border-bottom:1px solid var(--line)}.sidebar .brand{font-size:20px}.workspace,.sidebar-bottom{display:none}.nav{display:flex;overflow:auto;margin-top:12px;gap:3px}.nav a{white-space:nowrap;padding:8px 10px;font-size:12px}.nav .icon{display:none}.topbar{height:42px;padding:0 18px}.page{padding:26px 16px 60px}.page-head{align-items:flex-start}h1{font-size:27px}.cols2,.cols3{grid-template-columns:1fr}.metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.metric{padding:14px 12px}.metric strong{font-size:25px}.metric span{font-size:10px}.auth{display:block}.auth-art{padding:28px;border:0}.auth-art h1{font-size:35px;margin-top:30px}.auth-art p{font-size:14px}.auth-art .pipeline,.auth-art>small{display:none}.auth-form{padding:28px}.form-section{padding:20px}.form-footer{align-items:flex-start;flex-direction:column}.cards{grid-template-columns:1fr}.panel{padding:18px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

[hidden]{display:none!important}
/* Management surfaces: existing Linear/Frame.io reference lock. */
.icon-button{min-width:40px;min-height:40px;padding:5px 10px;font-size:18px;letter-spacing:2px;background:transparent;border-color:transparent}.icon-button:hover{border-color:var(--line);background:#1a1c1f}.row-actions{justify-content:flex-end;flex-wrap:nowrap;white-space:nowrap;gap:18px}.danger-text{color:#ed9c9c;background:transparent;border-color:transparent}.danger-text:hover{color:#ffc0c0;background:#281719}.danger{background:#a73838;color:#fff;border-color:#b74b4b}.editor-dialog{padding:0;width:min(580px,calc(100vw - 32px));max-height:90dvh;background:var(--panel);color:var(--text,#f7f8f8);border:1px solid #393d43;border-radius:10px;box-shadow:0 25px 100px #0009}.editor-dialog.wide{width:min(940px,calc(100vw - 32px))}.editor-dialog::backdrop{background:#000a;backdrop-filter:blur(3px)}.editor-dialog form{display:flex;flex-direction:column;max-height:90dvh}.dialog-head{display:flex;justify-content:space-between;align-items:start;gap:24px;padding:24px 28px;border-bottom:1px solid var(--line)}.dialog-head h2{font-size:21px;margin:0}.dialog-head p{font-size:13px;margin:8px 0 0}.dialog-body{padding:26px 28px;overflow-y:auto;overscroll-behavior:contain}.dialog-footer{display:flex;justify-content:flex-end;gap:12px;padding:18px 28px;border-top:1px solid var(--line);background:#141517}.scene-editor{padding:22px;border:1px solid var(--line);border-radius:6px;display:grid;gap:18px;background:#141517}.scene-editor button{font-size:12px}.integration-list{border:1px solid var(--line);border-radius:6px;overflow:hidden;background:var(--panel)}.integration-row{display:flex;align-items:center;gap:14px;padding:18px 22px;border-bottom:1px solid var(--line)}.integration-row:last-child{border-bottom:0}.integration-main{flex:1;min-width:0}.integration-main strong{display:block;font-size:14px}.integration-main small{display:block;margin-top:6px;overflow-wrap:anywhere}.integration-row button{font-size:12px;min-height:38px}.section-head-list{margin-top:14px}.section-head.compact{margin-top:0}.editor-dialog textarea{resize:vertical;min-height:82px}.editor-dialog button:focus-visible,.integration-row button:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
@media(max-width:700px){.dialog-head,.dialog-body{padding:20px}.dialog-footer{padding:16px 20px}.editor-dialog .cols2,.editor-dialog .cols3{grid-template-columns:1fr}.integration-row{flex-wrap:wrap;padding:16px;gap:10px}.integration-main{flex-basis:65%}.integration-row .pill{margin-left:auto}.integration-row button{min-height:42px}.row-actions{gap:8px}.scene-editor{padding:16px}.dialog-head h2{font-size:19px}}
/* Project journey: Linear hierarchy; explicit sequence from the product brief. */
.workflow-toolbar{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin:24px 0}.workflow-toolbar label{flex:1;min-width:220px}.workflow-toolbar .pill{align-self:center}.workflow-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid var(--line);border-radius:6px;margin:28px 0 32px;overflow:hidden}.workflow-steps a{display:flex;gap:12px;padding:20px 16px;border-right:1px solid var(--line);background:var(--panel);align-items:center}.workflow-steps a:last-child{border:0}.workflow-steps a>span{border:1px solid #454950;border-radius:50%;width:28px;height:28px;display:grid;place-items:center;flex-shrink:0}.workflow-steps strong,.workflow-steps small{display:block}.workflow-steps small{font-size:11px;margin-top:4px}.workflow-steps [aria-current]{background:var(--raised);box-shadow:inset 0 -2px var(--accent)}.workflow-steps [aria-current]>span{color:var(--accent);border-color:var(--accent)}.audience-workspace{display:grid;grid-template-columns:280px minmax(0,1fr);gap:24px;align-items:start}.audience-list{max-height:75vh;overflow:auto;border:1px solid var(--line);border-radius:6px;position:sticky;top:20px}.audience-list a{display:block;padding:16px;border-bottom:1px solid var(--line);border-left:2px solid transparent}.audience-list strong,.audience-list small{display:block}.audience-list strong{margin-top:6px;font-weight:500}.audience-list [aria-current]{background:var(--raised);border-left-color:var(--accent)}.pain-facts{margin:0;display:grid;gap:14px}.pain-facts dt{font-size:12px;color:var(--muted)}.pain-facts dd{margin:3px 0 0}.workflow-footer{display:flex;justify-content:space-between;gap:16px;margin:32px 0}.workflow-filter{max-width:100%;margin:0 0 24px}.script-scene{padding:16px 0;border-top:1px solid var(--line)}.prose{white-space:pre-wrap;overflow-wrap:anywhere}.source-link{overflow-wrap:anywhere;text-decoration:underline;text-underline-offset:4px}.script-card{scroll-margin-top:20px}.workflow-toolbar select{max-width:100%}
@media(max-width:1100px){.workflow-steps a{padding:14px 10px;gap:8px}.workflow-steps small{font-size:10px}.audience-workspace{grid-template-columns:220px minmax(0,1fr)}}
@media(max-width:700px){.workflow-steps{grid-template-columns:1fr 1fr;gap:1px;background:var(--line)}.workflow-steps a{border:0;min-height:82px}.audience-workspace{grid-template-columns:1fr}.audience-list{position:static;max-height:230px}.workflow-toolbar label{min-width:0;flex-basis:100%}.workflow-toolbar button{font-size:12px}.workflow-footer{flex-wrap:wrap}.script-card h2{font-size:19px}.pain-card .row{align-items:start}.workflow-steps strong{font-size:12px}}
.shell{grid-template-columns:268px minmax(0,1fr)}.nav a{white-space:normal}.video-tools{margin:14px 0;gap:8px}.video-tools button{font-size:12px;padding:8px 10px}.production-board{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:start}.production-column{min-width:0;border:1px solid var(--line);background:var(--panel);padding:14px;border-radius:6px}.production-column>.row{margin-bottom:18px}.production-column .video-card{min-width:0}.production-column .video-card .body{padding:14px}.production-column .thumb{padding:16px;min-height:170px}.production-column h3{font-size:14px}.log-event{border-left:1px solid var(--line);padding:0 0 16px 16px}.workflow-toolbar>*{min-width:0}.workflow-toolbar .pill{white-space:normal}.page-head>div,.stack,.panel,.audience-workspace>*,.workflow-steps a>div{min-width:0}.panel,.video-card{overflow-wrap:anywhere}.workflow-toolbar select{width:100%}
@media(max-width:1100px){.shell{grid-template-columns:225px minmax(0,1fr)}.production-board{grid-template-columns:1fr}.production-column>.stack{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr))}}
@media(max-width:700px){.shell{display:block}.workflow-toolbar{max-width:100%}.workflow-steps{width:100%}.page-head{flex-wrap:wrap}.page-head>button{margin-top:12px}.section-head{flex-wrap:wrap}.workflow-filter select{max-width:100%}.nav a{white-space:nowrap}.production-column{padding:12px}}
.production-column>.stack{max-height:72vh;overflow-y:auto;overscroll-behavior:contain;padding-right:3px;scrollbar-gutter:stable}.production-column>.row{min-height:42px}
/* Text cards must grow with long hooks and concepts. */
.video-card .thumb{aspect-ratio:auto;height:auto;min-height:0;justify-content:flex-start;gap:14px;flex-shrink:0}.video-card .thumb>*{flex-shrink:0}.video-card .thumb h3{font-size:20px;line-height:1.3;margin:0;overflow-wrap:anywhere}.video-card .thumb>small{display:block;line-height:1.6}.video-card .thumb .row{align-items:flex-start;gap:10px;flex-wrap:wrap}.video-card .body{position:relative}.production-column .thumb h3{font-size:18px}
.video-state-script_ready,.video-state-planned{--state-color:#737b86;--state-tint:#151719}.video-state-queued{--state-color:#7ba8ec;--state-tint:#121b29}.video-state-rendering{--state-color:#e4b35f;--state-tint:#272014}.video-state-revising{--state-color:#b7a0ee;--state-tint:#201a30}.video-state-ready,.video-state-approved,.video-state-published{--state-color:#6ccc98;--state-tint:#10271b}.video-state-needs_attention{--state-color:#ed8b8b;--state-tint:#2c181a}.video-card[class*=video-state-]{border-color:color-mix(in srgb,var(--state-color) 45%,var(--line));border-top:3px solid var(--state-color)}.video-card[class*=video-state-] .thumb{background:var(--state-tint)}.video-card[class*=video-state-] .pill{color:var(--state-color);border-color:color-mix(in srgb,var(--state-color) 40%,transparent)}.video-progress{margin-bottom:20px;padding-bottom:18px;border-bottom:1px solid var(--line)}.video-progress strong{font-size:12px;color:var(--state-color)}.stage-scale{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;list-style:none;margin:14px 0 0;padding:0}.stage-scale li{min-width:0}.stage-scale li>span{display:block;height:5px;border-radius:2px;background:#30353c}.stage-scale .complete>span{background:#6ccc98}.stage-scale .current>span{background:var(--state-color,#e4b35f)}.stage-scale small{display:block;font-size:9px;line-height:1.3;margin-top:7px;overflow-wrap:normal}.stage-scale .current small{color:var(--text)}.batch-scale{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.batch-slot{min-width:0;padding:14px;background:var(--state-tint);border-top:3px solid var(--state-color);border-radius:4px}.batch-slot strong{font-size:12px;color:var(--state-color)}.batch-slot small{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:11px;margin-top:8px}.status-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--state-color);margin-right:6px}.status-legend{display:flex;gap:18px;flex-wrap:wrap;font-size:12px;margin:20px 0}.legend-queued{color:#7ba8ec}.legend-rendering{color:#e4b35f}.legend-revising{color:#b7a0ee}.legend-ready{color:#6ccc98}.legend-error{color:#ed8b8b}@media(max-width:1000px){.batch-scale{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:700px){.batch-scale{grid-template-columns:repeat(2,minmax(0,1fr))}.batch-slot{padding:12px}.status-legend{gap:10px}}
.stage-scale{grid-template-columns:repeat(6,minmax(0,1fr))}.production-counts{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));border:1px solid var(--line);margin:20px 0 10px;border-radius:6px}.production-counts>div{padding:16px;border-right:1px solid var(--line)}.production-counts>div:last-child{border:0}.production-counts small,.production-counts strong{display:block}.production-counts strong{font-size:25px;margin-top:8px}.count-explanation{font-size:12px;margin-bottom:24px}@media(max-width:700px){.production-counts{grid-template-columns:repeat(2,minmax(0,1fr))}.production-counts>div{border-bottom:1px solid var(--line)}}
