:root{color:#1f2328;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;background:#f4f5f6;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{background:#f4f5f6;min-height:100dvh;margin:0}button,input,select,textarea{font:inherit}button{border:0}button:disabled{cursor:not-allowed;opacity:.42}input,select,textarea{color:#24272d;background:#fff;border:1px solid #dfe2e6;border-radius:7px;outline:none}input:focus,select:focus,textarea:focus,button:focus-visible{outline-offset:2px;outline:2px solid #e7b938}textarea{resize:vertical}h1,h2,h3,h4,p{margin:0}.app-shell{grid-template-columns:88px minmax(0,1fr);min-height:100dvh;display:grid}.sidebar{background:#fbfbfc;border-right:1px solid #e4e6ea;flex-direction:column;align-items:center;gap:18px;padding:24px 12px;display:flex}.brand-mark{color:#1f2328;background:#ffdc6e;border-radius:16px;place-items:center;width:54px;height:54px;margin-bottom:18px;display:grid;box-shadow:inset 0 -8px #b57d0c29}.side-button{color:#858b94;cursor:pointer;background:0 0;border-radius:8px;place-items:center;gap:4px;width:64px;min-height:64px;display:grid}.side-button span{font-size:12px}.side-button.active,.side-button:hover{color:#2d5b74;background:#edf6f8}.workspace{min-width:0;padding:28px 32px 34px}.topbar,.project-strip,.flow-nav,.workbench-grid{max-width:1760px;margin:0 auto}.topbar{justify-content:space-between;align-items:center;gap:18px;display:flex}.eyebrow{color:#7f8791;letter-spacing:.08em;text-transform:uppercase;font-size:12px;font-weight:800;display:block}h1{letter-spacing:0;margin-top:6px;font-size:28px;line-height:1.1}.top-actions,.toolbar-actions,.panel-actions,.task-actions{align-items:center;gap:9px;display:flex}.top-actions{flex-wrap:wrap;justify-content:flex-end}.search-box,.save-indicator{white-space:nowrap;border-radius:8px;align-items:center;gap:9px;min-height:44px;padding:0 14px;display:inline-flex}.search-box{color:#8f969f;background:#fff;border:1px solid #e4e6ea}.save-indicator{color:#2e684f;background:#e8f6ee;border:1px solid #cce8d6;font-size:13px;font-weight:800}.save-indicator.error{color:#89451f;background:#fff0e4;border-color:#ffd5b6}.icon-button,.pill-button,.small-button,.tiny-button,.mini-danger{color:#24272d;cursor:pointer;background:#fff;border:1px solid #dfe2e6;border-radius:8px;justify-content:center;align-items:center;gap:8px;transition:transform .14s,border-color .14s,background .14s;display:inline-flex}.icon-button{width:44px;height:44px}.pill-button{min-height:44px;padding:0 16px;font-weight:800}.small-button{min-height:36px;padding:0 12px;font-size:13px;font-weight:800}.tiny-button,.mini-danger{width:30px;height:30px}.icon-button:hover,.pill-button:hover,.small-button:hover,.tiny-button:hover,.mini-danger:hover,.create-card:hover,.project-card:hover{transform:translateY(-1px)}.pill-button.primary{color:#2c2507;background:#ffdb68;border-color:#edc34c}.icon-button.dark{color:#f7f7f7;background:#25282e;border-color:#25282e}.tiny-button.danger,.mini-danger{color:#8b2e1d;background:#fff2ef;border-color:#ffd4ca}.hidden-input{display:none}.project-strip{align-items:stretch;gap:14px;margin-top:24px;padding-bottom:4px;display:flex;overflow-x:auto}.project-card,.create-card,.domain-card{background:#fff;border:1px solid #e2e4e8;border-radius:8px;align-items:center;gap:14px;min-height:106px;padding:16px;display:flex}.project-card{cursor:pointer;min-width:380px;position:relative}.project-card strong,.domain-card strong{margin-bottom:6px;font-size:16px;line-height:1.35;display:block}.project-card span,.domain-card span,.domain-card small{color:#858c96;font-size:13px;line-height:1.45;display:block}.project-card.active{border-color:#dfba4a;box-shadow:inset 0 0 0 1px #f5d76e}.folder-visual{color:#5c512b;background:linear-gradient(#ffd65a 0%,#fff4bf 100%);border-radius:8px;flex:none;place-items:center;width:76px;height:62px;display:grid}.create-card{color:#3c3f45;cursor:pointer;justify-content:center;min-width:150px;font-weight:900}.domain-card{min-width:235px;margin-left:auto;display:block}.mini-danger{position:absolute;top:10px;right:10px}.flow-nav{background:#fff;border:1px solid #e2e4e8;border-radius:8px;grid-template-columns:repeat(8,minmax(0,1fr));margin-top:20px;display:grid;overflow:hidden}.flow-step{color:#7f8791;cursor:pointer;background:#fff;border-right:1px solid #eceef1;justify-content:center;align-items:center;gap:8px;min-height:58px;font-weight:900;display:flex;position:relative}.flow-step:last-child{border-right:0}.flow-step.selected{color:#202328;background:#faf9f5}.flow-step.selected:after{content:"";background:#ffdc68;border-radius:99px;width:30px;height:6px;position:absolute;bottom:9px}.workbench-grid{grid-template-columns:minmax(0,1fr) 372px;gap:18px;margin-top:18px;display:grid}.episode-panel,.agent-panel{background:#fff;border:1px solid #e2e4e8;border-radius:8px;min-width:0}.episode-panel{padding:18px}.agent-panel{align-self:start;padding:16px}.panel-heading{justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px;display:flex}.panel-heading h2{margin-top:5px;font-size:20px;line-height:1.25}.panel-heading.compact h2{font-size:18px}.brief-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:18px;display:grid}.field{background:#f8f9fa;border:1px solid #eceef1;border-radius:8px;gap:6px;padding:12px;display:grid}.field.wide{grid-column:span 2}.field span,.task-card label span{color:#7f8791;font-size:12px;font-weight:900}.field input,.field textarea{width:100%;min-height:38px;padding:9px 10px}.field textarea{min-height:74px;line-height:1.55}.project-home-view,.planning-view,.table-wrap,.storyboard-grid,.shoot-plan,.asset-list,.brief-document,.review-board{border-top:1px solid #eceef1;padding-top:18px}.command-box{background:#fbfaf5;border:1px solid #eee5c7;border-radius:8px;justify-content:space-between;align-items:center;gap:20px;padding:18px;display:flex}.command-box h3{margin:4px 0 8px;font-size:19px}.command-box p,.planning-columns p,.brief-document p,.brief-document li{color:#565d66;line-height:1.7}.metric-strip,.planning-columns,.shoot-plan,.storyboard-grid{gap:12px;display:grid}.metric-strip{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:14px}.planning-columns{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:14px}.planning-columns>div{border:1px solid #e5e7eb;border-radius:8px;padding:16px}.planning-columns h4{margin-bottom:8px;font-size:15px}.table-toolbar{justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px;display:flex}.toolbar-title{align-items:center;gap:9px;display:flex}.toolbar-title span{color:#858c96;font-size:13px}.segment-table{border:1px solid #e2e4e8;border-radius:8px;overflow:auto}.segment-row{border-bottom:1px solid #eceef1;grid-template-columns:58px 74px 118px minmax(250px,1.05fr) 124px 78px minmax(300px,1.25fr) minmax(170px,.75fr) minmax(260px,1fr) 138px 136px 104px minmax(210px,.9fr) 132px;min-width:1970px;display:grid}.segment-row:last-child{border-bottom:0}.segment-row>span,.segment-row>strong{border-right:1px dashed #d5d9df;align-items:stretch;min-height:92px;padding:10px;font-size:13px;line-height:1.45;display:flex}.segment-row>span:last-child{border-right:0}.segment-head{z-index:1;background:#f0f2f4;font-weight:900;position:sticky;top:0}.segment-head>span{color:#343840;align-items:center;min-height:48px;font-size:13px}.muted{color:#858c96}.table-input{width:100%;min-height:38px;padding:8px 9px;font-size:13px;line-height:1.45}textarea.table-input{min-height:72px}.table-input.compact{text-align:center}.status-select.agent_ready{background:#fff5cb}.status-select.human_review{background:#ffe9d4}.status-select.ready_to_shoot{background:#e5f7ed}.check-cell{align-items:center;gap:8px;width:100%;display:flex}.check-cell input{accent-color:#2f7a57;width:17px;height:17px}.row-actions{flex-wrap:wrap;justify-content:center;gap:7px;align-items:center!important}.tag,.status{border-radius:999px;justify-content:center;align-self:center;align-items:center;width:fit-content;min-height:28px;padding:5px 9px;font-weight:900;display:inline-flex}.tag{color:#5d552d;background:#fff4c5}.status{color:#58606b;background:#eef0f3}.status.agent_ready{color:#6b5412;background:#fff1b8}.status.human_review{color:#875319;background:#ffe4c7}.status.ready_to_shoot,.status.shot{color:#205d42;background:#dff5e8}.status.blocked{color:#8b2e1d;background:#ffe0d8}.storyboard-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.story-card{background:#fff;border:1px solid #e5e7eb;border-radius:8px;overflow:hidden}.shot-frame{aspect-ratio:16/9;color:#79838e;background:#f0f2f4;place-items:center;display:grid}.story-card-body{padding:14px}.story-card-top{justify-content:space-between;align-items:center;margin-bottom:9px;display:flex}.story-card-top span,.story-card small{color:#858c96}.story-card p{min-height:48px;margin-bottom:10px;line-height:1.5}.shoot-plan{grid-template-columns:repeat(3,minmax(0,1fr))}.shoot-column{background:#f8f9fa;border:1px solid #e5e7eb;border-radius:8px;min-height:310px;padding:14px}.shoot-column h3{align-items:center;gap:8px;margin-bottom:12px;font-size:16px;display:flex}.shoot-item,.asset-row,.task-card{background:#fff;border:1px solid #e3e6ea;border-radius:8px;padding:13px}.shoot-item+.shoot-item,.asset-row+.asset-row,.task-card+.task-card{margin-top:10px}.shoot-item span,.asset-row span,.empty-note{color:#68717c;margin-top:6px;font-size:13px;line-height:1.5;display:block}.asset-row{justify-content:space-between;align-items:center;gap:12px;display:flex}.brief-document{background:#fff;padding:18px}.brief-document h3{margin-bottom:10px}.document-textarea{width:100%;min-height:170px;padding:12px;line-height:1.7}.document-textarea.short{min-height:120px}.brief-hints{flex-wrap:wrap;gap:8px;margin-top:12px;display:flex}.brief-hints span{color:#51616c;background:#eef5f6;border-radius:999px;padding:6px 9px;font-size:12px;font-weight:800}.review-board{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;display:grid}.review-board .brief-document{border:1px solid #e5e7eb;border-radius:8px;grid-column:span 2}.review-metric{background:#f8f9fa;border:1px solid #e5e7eb;border-radius:8px;padding:14px}.review-metric span{color:#7f8791;margin-bottom:8px;font-size:12px;font-weight:900;display:block}.review-metric strong{font-size:15px;line-height:1.35}.agent-command{color:#fff;background:#25282e;border-radius:8px;margin-bottom:14px;padding:14px}.agent-command span{color:#c8ced6;font-size:12px}.agent-command strong{margin:7px 0 12px;line-height:1.45;display:block}.agent-command .pill-button{width:100%}.task-card-head{align-items:center;gap:8px;margin-bottom:10px;display:flex}.task-card select,.task-card input,.task-card textarea{width:100%;min-height:36px;padding:8px 9px;font-size:13px}.task-card label{gap:5px;margin-top:10px;display:grid}.task-card textarea{min-height:82px;line-height:1.55}.task-dot{background:#aeb4bc;border-radius:999px;flex:none;width:9px;height:9px}.task-dot.done{background:#4aa371}.task-dot.working{background:#d3a31f}.task-dot.waiting_human{background:#dd7a2f}.task-actions{margin-top:10px}.task-actions select{flex:1}.task-card small{color:#8b939d;margin-top:8px;display:block}.human-gate{background:#fbfaf5;border:1px solid #eee5c7;border-radius:8px;gap:10px;margin-top:14px;padding:13px;display:flex}.human-gate span{color:#68717c;margin-top:4px;font-size:13px;line-height:1.45;display:block}.empty-state{color:#68717c;background:#f8f9fa;border:1px dashed #d4d9df;border-radius:8px;justify-content:center;align-items:center;gap:10px;min-height:120px;padding:18px;font-weight:800;display:flex}@media (width<=1180px){.app-shell{grid-template-columns:1fr}.sidebar{z-index:5;border-bottom:1px solid #e4e6ea;border-right:0;flex-direction:row;justify-content:flex-start;padding:10px 14px;position:sticky;top:0;overflow-x:auto}.brand-mark{width:46px;height:46px;margin:0 6px 0 0}.side-button{width:58px;min-height:52px}.workspace{padding:18px}.topbar,.workbench-grid{grid-template-columns:1fr}.topbar{flex-direction:column;align-items:flex-start}.top-actions{justify-content:flex-start;width:100%}.workbench-grid{display:grid}.agent-panel{order:-1}.flow-nav{display:flex;overflow-x:auto}.flow-step{border-right:1px solid #eceef1;min-width:138px}.metric-strip,.planning-columns,.shoot-plan,.storyboard-grid,.review-board{grid-template-columns:1fr 1fr}.review-board .brief-document{grid-column:span 2}}@media (width<=720px){.workspace{padding:14px}h1{font-size:23px}.search-box{display:none}.project-card{min-width:300px}.domain-card{min-width:210px}.brief-grid,.metric-strip,.planning-columns,.shoot-plan,.storyboard-grid,.review-board{grid-template-columns:1fr}.field.wide,.review-board .brief-document{grid-column:auto}.command-box,.table-toolbar,.asset-row,.panel-heading{flex-direction:column;align-items:stretch}}@media print{.sidebar,.top-actions,.project-strip,.flow-nav,.agent-panel,.panel-actions,.row-actions{display:none!important}.app-shell,.workbench-grid{display:block}.workspace{padding:0}.episode-panel{border:0}}
