:root{color-scheme:dark;--bg:#081c20;--panel:#102a2c;--field:#0a2024;--line:#31504e;--muted:#a5bab3;--ink:#f5eedf;--accent:#d8b571;--radius:18px}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 8% 0,#203e36 0,transparent 45%),var(--bg);color:var(--ink);font:15px/1.5 system-ui,sans-serif;min-height:100vh}button,input,textarea,select,.file-button{font:inherit}button,.file-button{cursor:pointer;border:1px solid var(--line);border-radius:10px;background:#1a3737;color:var(--ink);padding:10px 14px;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;min-height:44px;gap:8px;transition:background .15s,border-color .15s,transform .15s}button:hover,.file-button:hover{background:#244744;border-color:#718b77}button:active{transform:translateY(1px)}button:disabled{opacity:.45;cursor:default}a{color:var(--accent)}:focus-visible{outline:3px solid var(--accent);outline-offset:3px}.primary{background:var(--accent);color:#142725;border-color:var(--accent);font-weight:750}.primary:hover{background:#edcf92;border-color:#edcf92}.record{background:#d8b571;color:#132522;border-color:#e8c98b;font-weight:750}.record::before{content:'';width:9px;height:9px;background:#173d30;border-radius:50%}.record:hover{background:#efcf91}.subtle{font-size:12px;background:transparent}label{display:flex;flex-direction:column;gap:7px;color:var(--muted);font-size:13px}input,select,textarea{width:100%;border:1px solid var(--line);background:var(--field);color:var(--ink);border-radius:10px;padding:11px;min-height:44px}input:focus,select:focus,textarea:focus{border-color:var(--accent)}textarea{resize:vertical;line-height:1.6}select{padding-right:30px}h1{font:500 clamp(30px,3.2vw,48px)/1.12 Georgia,serif;letter-spacing:-1.5px;margin:8px 0 12px}h2{font-size:18px;letter-spacing:-.3px;margin:0 0 14px}p{margin:8px 0 14px}.studio-header{display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid #47625255;padding:18px 4%;background:#071c20aa}.brand{display:flex;gap:11px;align-items:center;text-decoration:none;color:var(--ink)}.brand span{font-size:16px;font-weight:650}.brand .brand-mark{display:grid;place-items:center;width:39px;height:39px;border:1px solid #b6995c88;border-radius:11px;font-size:28px;color:var(--accent)}.studio-header>a:last-child{font-size:13px;text-decoration:none}.studio-tag,.eyebrow{font-size:10px;letter-spacing:2.8px;color:var(--accent);font-weight:750}.studio-tag{padding:7px 12px;border:1px solid #d8b57144;border-radius:30px}main{max-width:1920px;margin:auto;padding:32px 3%}.intro{display:flex;align-items:center;justify-content:space-between;gap:25px}.intro>div>p:last-child{color:var(--muted);font-size:14px}.project-actions,.row,.record-bar,.scene-actions,.board-secondary,.board-bar,.stage-top,.tool-choices{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.project-actions button,.project-actions .file-button{font-size:12px;background:#102a2baa}.file-button{position:relative;overflow:hidden;color:var(--ink);font-size:13px}.file-button input{position:absolute;width:100%;height:100%;opacity:0;inset:0;cursor:pointer}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 338px;gap:22px;align-items:start}.stage-panel,.editor{background:linear-gradient(145deg,#142f30d9,#0d2528f0);border:1px solid var(--line);border-radius:var(--radius);padding:18px;min-width:0;box-shadow:0 18px 55px #0002}.editor{padding:22px}.stage-top{justify-content:space-between;margin-bottom:18px}.stage-top label{flex:1;max-width:270px}.stage-top button{font-size:12px}.stage-top label{font-size:11px;text-transform:uppercase;letter-spacing:1.5px}.stage-top select{text-transform:none;letter-spacing:0;font-size:13px}.canvas-wrap{position:relative;background:#061518;border-radius:12px;padding:29px 7px 7px;display:flex;justify-content:center;border:1px solid #3b575144;box-shadow:0 14px 35px #0003}.preview-label{position:absolute;left:13px;top:8px;color:#9bb1a8;font-size:9px;letter-spacing:2px;font-weight:650}canvas{display:block;width:100%;height:auto;max-width:100%;touch-action:manipulation;cursor:pointer;border-radius:5px}canvas.portrait{width:auto;max-height:74vh}canvas.square{max-width:800px}.board-bar{margin-top:18px;justify-content:space-between}.board-bar button,.board-secondary button{font-size:12px}.tool-choices{gap:5px}.tool-choices button{background:transparent;padding:8px 12px}.tool-choices [aria-pressed=true]{background:#d8b5711c;border-color:#c5ab6e;color:#ebce93}.hint{font-size:12px;color:var(--muted);line-height:1.65}.notice{padding:11px 15px;border-radius:10px;background:#153734a6;border:1px solid #426c5755;border-left:3px solid var(--accent);font-size:13px;min-height:44px;margin:14px 0 20px}.notice.error{border-color:#e39595;background:#482d32}.board-secondary{border-top:1px solid #31504e88;padding-top:14px;margin-top:14px}.board-secondary label{flex-direction:row;align-items:center}.board-secondary select{width:108px;font-size:12px}.source,details{border-top:1px solid var(--line);padding-top:14px;margin-top:18px}summary{cursor:pointer;font-weight:600;margin-bottom:12px;font-size:13px}details .row{margin-top:10px}.branding{margin:0 0 22px;padding:0 0 17px;border-top:0;border-bottom:1px solid var(--line)}.branding summary{color:var(--ink);margin:0}.branding[open] summary{margin-bottom:12px}.branding>label{margin-top:12px}.branding .subtle{margin-top:14px;width:100%}.saved-label{display:block;font-size:10px;color:var(--accent);font-weight:500;margin:3px 0 0 15px}.record-bar{margin-top:20px;padding-top:18px;border-top:1px solid var(--line)}.record-bar button{min-width:145px}.record-bar .primary{background:#203c39;border-color:#426650;color:var(--ink);font-weight:500}.record-bar #download-video{background:#d8b5711c;border-color:#d8b57177;color:#f1d39d}.editor>label{margin-bottom:16px}.editor .row{align-items:flex-end;margin:14px 0}.editor .row>label{flex:1;min-width:125px}.editor .row>.file-button{flex:initial}.scene-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:22px 0 14px}.scene-heading h2{margin:0;white-space:nowrap}.scene-heading span{font-weight:400;color:var(--muted);font-size:13px}.scene-heading button{font-size:11px;padding:8px 10px}.scenes{list-style:none;padding:0;max-height:240px;overflow:auto;display:grid;gap:7px;margin:10px 0;scrollbar-color:#627c67 transparent}.scenes button{width:100%;justify-content:flex-start;text-align:left;font-size:12px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;background:#0c2427}.scenes [aria-current=true]{border-color:#b89a61;background:#273f34;color:#f1d39d}.scene-actions button{font-size:11px;flex:1;padding:8px}.editor hr{border:0;border-top:1px solid var(--line);margin:25px 0}.editor audio{width:100%;margin-top:12px}.narration-actions{display:grid;gap:8px;margin:14px 0}.narration-actions button{width:100%}.narration-actions button+button{font-size:12px}#setup-tools{display:flex;flex-wrap:wrap;gap:12px;margin:14px 0;padding:14px;background:var(--field);border-radius:10px}#setup-tools label{flex:1;min-width:150px}#setup-tools .hint{width:100%;margin:0}#setup-tools button{align-self:end}footer{text-align:center;padding:22px;color:var(--muted);font-size:12px}body.focus .intro,body.focus .editor,body.focus .studio-header,body.focus footer,body.focus #notice,body.focus .board-bar,body.focus .board-secondary,body.focus .source,body.focus #setup-tools,body.focus #board-help,body.focus .stage-panel>p{display:none}body.focus .workspace{grid-template-columns:1fr}body.focus main{max-width:none;padding:10px 18px}body.focus .stage-panel{border:0;background:transparent;box-shadow:none;padding:0}body.focus .canvas-wrap{padding:0;border:0;background:transparent;box-shadow:none}body.focus .preview-label{display:none}body.focus canvas{max-height:calc(100dvh - 140px);width:auto;max-width:100%;object-fit:contain}body.focus .stage-top{margin:0 0 8px;justify-content:center}body.focus .stage-top label{display:none}body.focus .record-bar{justify-content:center;margin:8px 0 0;padding:0;border:0}.accessible-board{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}.accessible-board:focus-within{position:static;width:auto;height:auto;display:grid;grid-template-columns:repeat(8,1fr);overflow:visible;margin-top:12px}.accessible-board button{font-size:12px;min-width:0;padding:4px}.row label{flex:1}#new-project{margin-top:20px;width:100%;background:transparent}body.busy .editor,body.busy .board-bar,body.busy .board-secondary,body.busy .source,body.busy #setup-tools,body.busy .stage-top,body.busy .project-actions{pointer-events:none;opacity:.6}body.busy canvas{cursor:default}body.generating .editor,body.generating .project-actions{pointer-events:none;opacity:.65}[hidden]{display:none!important}@media(max-width:1150px){.workspace{grid-template-columns:minmax(0,1fr) 300px;gap:15px}.stage-panel,.editor{padding:14px}.stage-top{gap:6px}.stage-top button{padding:8px 10px}.intro .project-actions{max-width:170px}.intro .project-actions>*{width:100%}}@media(max-width:800px){.workspace{grid-template-columns:1fr}.intro{align-items:flex-start;flex-direction:column;gap:9px}.intro .project-actions{max-width:none;margin-bottom:4px}.intro .project-actions>*{width:auto}.studio-tag{display:none}main{padding:22px 13px}.studio-header{padding:12px 16px}.stage-panel,.editor{padding:13px}.record-bar button{flex:1;min-width:125px}canvas.portrait{max-height:68vh}.brand span{font-size:15px}.tool-choices button{padding:8px 10px}.board-secondary{gap:7px}.project-actions{margin-bottom:4px}body.focus main{padding:8px}.eyebrow{font-size:9px;letter-spacing:1.8px}h1{font-size:36px}.canvas-wrap{padding-top:26px}.stage-top label{max-width:100%;min-width:150px}.stage-top select{font-size:12px}.stage-top button{flex:1}}
