* { box-sizing: border-box; }
body { margin:0; height:100dvh; display:flex; flex-direction:column; background:#101c2b; color:#e4edf5; font:14px system-ui,sans-serif; overflow:hidden; }
header, footer, #tools, #transport, .timelinebar { display:flex; align-items:center; gap:8px; padding:8px; background:#17283a; flex-wrap:wrap; }
header strong { font-size:18px; margin-right:auto; } header strong span { color:#79bff5; }
button, input, select { font:inherit; color:inherit; background:#20384f; border:1px solid #456079; border-radius:5px; padding:6px; }
button { cursor:pointer; } button:hover { background:#365773; } button:disabled { opacity:.45; cursor:default; }
#workspace { display:flex; flex:1; min-height:0; }
nav { width:100px; display:flex; flex-direction:column; gap:5px; padding:6px; background:#142436; overflow:auto; }
nav button { text-align:left; } aside { width:250px; overflow:auto; padding:10px; border-right:1px solid #30465c; resize:horizontal; min-width:160px; max-width:45vw; }
body.collapsed nav, body.collapsed aside { display:none; }
main { flex:1; min-width:0; display:flex; flex-direction:column; }
#stage { flex:1; min-height:0; display:grid; place-items:center; overflow:hidden; background:#0b1420; }
.canvas-container { box-shadow:0 0 0 1px #53677a; }
#tools { min-height:44px; } #tools input[type=number], #duration { width:75px; } #transport { justify-content:center; }
#timeline { height:32vh; min-height:150px; max-height:65vh; display:flex; flex-direction:column; border-top:2px solid #456079; resize:vertical; overflow:hidden; }
#scroll { overflow:auto; flex:1; } #tracks { position:relative; min-height:100%; }
.ruler, .lane { position:relative; height:36px; border-bottom:1px solid #30465c; background:#17283a; }
.ruler { height:25px; cursor:crosshair; } .tick { position:absolute; font-size:11px; border-left:1px solid #567; padding-left:3px; }
.clip { position:absolute; top:4px; height:28px; border-radius:4px; background:#426b94; overflow:hidden; white-space:nowrap; padding:5px 9px; cursor:grab; touch-action:none; font-size:12px; }
.clip.audio { background:#72519c; } .clip.text { background:#287d88; } .clip.selected { outline:2px solid #fff; }
.edge { position:absolute; top:0; bottom:0; width:7px; cursor:ew-resize; background:#ffffff33; } .edge.left { left:0; } .edge.right { right:0; }
#head { position:absolute; top:0; bottom:0; width:2px; background:#ff7777; pointer-events:none; z-index:5; }
.asset { display:flex; align-items:center; gap:8px; padding:8px; border:1px solid #30465c; margin:6px 0; cursor:grab; overflow-wrap:anywhere; } .asset img { width:55px; height:45px; object-fit:contain; }
footer { font-size:12px; } #status { flex:1; } #projectName { width:140px; } #panel button { margin:3px; } #panel h3 { margin:8px 0; }

/* V2: timeline labels and interface-only light theme. */
.lane-label { position:sticky; left:0; z-index:4; display:inline-flex; align-items:center; width:106px; height:100%; padding:0 8px; background:#20384f; border-right:1px solid #456079; overflow:hidden; white-space:nowrap; font-size:12px; }
body.light { background:#f0f2f5; color:#17283a; }
body.light header, body.light footer, body.light #tools, body.light #transport, body.light .timelinebar, body.light .lane, body.light .ruler { background:#e6ebf1; }
body.light nav, body.light .lane-label { background:#dce4ed; }
body.light aside { background:#fff; }
body.light button, body.light input, body.light select { background:#fff; color:#17283a; border-color:#aab8c7; }
body.light button:hover { background:#d5e3f2; }
body.light #stage { background:#dce1e7; }
body.light .clip { color:#fff; }
body.light .clip.selected { outline-color:#17283a; }
