:root { --ink:#4b0713; --paper:#f4e9e8; --acid:#ed1c24; --line:#6e0f1d; --muted:#795b60; }
* { box-sizing:border-box; }
html { background:var(--paper); color:var(--ink); font-family:"Helvetica Neue",Arial,"Yu Gothic",sans-serif; }
body { margin:0; min-height:100vh; }
button,input,textarea,select { font:inherit; }
button { cursor:pointer; }
.hidden { display:none !important; }
.topbar { height:64px; border-bottom:1px solid var(--line); display:flex; align-items:center; justify-content:space-between; padding:0 24px; position:sticky; top:0; z-index:20; background:rgba(244,233,232,.95); backdrop-filter:blur(8px); }
.brand-area { display:flex; align-items:center; gap:18px; }
.brand { color:inherit; text-decoration:none; font-weight:900; letter-spacing:-.06em; font-size:21px; }
.brand span { font-weight:400; }
.top-actions { display:flex; align-items:center; gap:12px; font-size:11px; letter-spacing:.08em; }
.new-project { border:1px solid var(--line); background:var(--ink); color:white; padding:10px 14px; }
.ghost,.secondary,.primary { border:1px solid var(--line); background:transparent; padding:10px 14px; }
.ghost:disabled { opacity:.35; cursor:not-allowed; }
.primary { background:var(--ink); color:white; width:100%; }
.secondary { width:100%; background:#d52a35; color:white; }
.start-screen { min-height:calc(100vh - 64px); display:grid; grid-template-columns:3fr 2fr; }
.home-view .start-screen { min-height:calc(100vh - 64px); }
.intro { padding:8vw; display:flex; flex-direction:column; align-items:flex-start; justify-content:center; border-right:1px solid var(--line); }
.eyebrow { font-size:10px; font-weight:700; letter-spacing:.22em; margin:0 0 18px; }
h1 { font-size:clamp(48px,6.5vw,100px); line-height:.9; letter-spacing:-.075em; margin:0; max-width:900px; }
.lead { font-size:15px; line-height:1.8; max-width:520px; margin:40px 0 26px; }
.file-button { background:var(--ink); color:white; padding:16px 28px; font-size:13px; font-weight:700; cursor:pointer; }
.file-button input { display:none; }
.privacy,.hint,.muted { color:var(--muted); font-size:11px; line-height:1.6; }
.visual { position:relative; overflow:hidden; background:#650b1a; color:#ffb8b3; display:flex; flex-direction:column; justify-content:space-between; padding:30px; }
.visual::before { content:""; position:absolute; inset:0; opacity:.16; background:repeating-linear-gradient(90deg,transparent 0 49px,var(--acid) 50px),repeating-linear-gradient(0deg,transparent 0 49px,var(--acid) 50px); }
.visual-number { font-size:clamp(54px,7vw,120px); line-height:.88; font-weight:900; letter-spacing:-.075em; position:relative; overflow-wrap:anywhere; }
.visual p { position:relative; font:11px/1.5 monospace; letter-spacing:.1em; }
.scanline { height:1px; background:#ffb8b3; width:100%; position:absolute; top:42%; left:0; box-shadow:0 0 18px #ed1c24; animation:scan 4s ease-in-out infinite; }
@keyframes scan { 50% { top:72%; } }
.projects-section { border-top:1px solid var(--line); padding:34px 24px 70px; }
.projects-heading { display:flex; justify-content:space-between; align-items:flex-end; margin-bottom:24px; }
.projects-heading h2 { margin:0; font-size:clamp(40px,6vw,82px); letter-spacing:-.07em; line-height:.8; }
.compact { width:auto; }
.project-empty { border:1px solid var(--line); padding:48px 20px; text-align:center; color:var(--muted); font-size:12px; }
.project-list { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); background:var(--line); gap:1px; border:1px solid var(--line); }
.project-list:empty { display:none; }
.project-card { background:var(--paper); padding:20px; min-height:150px; display:flex; flex-direction:column; justify-content:space-between; cursor:pointer; border:0; text-align:left; color:var(--ink); }
.project-card:hover { background:#ead1cf; }
.project-index { font:bold 11px monospace; color:#d52a35; }
.project-card h3 { margin:22px 0 5px; font-size:20px; letter-spacing:-.04em; overflow-wrap:anywhere; }
.project-card p { margin:0; color:var(--muted); font-size:10px; line-height:1.6; }
.workspace { display:grid; grid-template-columns:290px 1fr; min-height:calc(100vh - 64px); }
.sidebar { border-right:1px solid var(--line); padding:28px 22px; position:sticky; top:64px; height:calc(100vh - 64px); overflow:auto; }
.sidebar h2,.content-head h2 { margin:0; font-size:24px; letter-spacing:-.04em; overflow-wrap:anywhere; }
.control-group { border-top:1px solid #aaa79e; padding-top:20px; margin-top:28px; }
.control-group>label,.control-heading label { font-size:12px; font-weight:700; display:block; margin-bottom:10px; }
.control-heading { display:flex; justify-content:space-between; }
input[type="range"] { width:100%; accent-color:var(--ink); }
textarea { width:100%; border:1px solid var(--line); background:#faf9f4; padding:10px; resize:vertical; border-radius:0; }
.toggles label { display:flex; gap:8px; margin-bottom:12px; font-weight:400; }
.content { min-width:0; }
.content-head { min-height:112px; padding:24px; display:flex; justify-content:space-between; align-items:flex-end; border-bottom:1px solid var(--line); }
.legend { font-size:10px; color:var(--muted); }.legend i { display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--acid);border:1px solid var(--line); }
.progress-panel { padding:20px 24px; border-bottom:1px solid var(--line); }
.progress-panel div { display:flex; justify-content:space-between; font-size:12px; margin-bottom:10px; }
progress { appearance:none; width:100%; height:5px; border:0; } progress::-webkit-progress-bar{background:#ccc9bf} progress::-webkit-progress-value{background:var(--ink)}
.empty-state { padding:80px 24px; color:var(--muted); text-align:center; font-size:12px; }
.scene-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); background:var(--line); gap:1px; }
.scene-card { background:var(--paper); min-width:0; }
.video-wrap { position:relative; aspect-ratio:16/9; overflow:hidden; background:#111; }
.video-wrap video { width:100%; height:100%; object-fit:cover; display:block; }
.scene-overlay { position:absolute; inset:0; pointer-events:none; display:flex; justify-content:space-between; align-items:flex-start; padding:10px; color:white; font:bold 11px monospace; text-shadow:0 1px 4px #000; }
.scene-no { font-size:25px; letter-spacing:-.08em; }
.sound-button { position:absolute; bottom:8px; right:8px; border:1px solid white; background:rgba(0,0,0,.55); color:white; font-size:9px; padding:5px 7px; }
.sound-button.active { background:var(--acid); color:var(--ink); border-color:var(--ink); }
.scene-editor { display:grid; grid-template-columns:105px 1fr; border-top:1px solid var(--line); min-height:68px; }
.part-select { width:100%; border:0; border-right:1px solid var(--line); background:transparent; padding:10px; font-size:11px; font-weight:700; }
.scene-lyric { border:0; background:transparent; font-size:11px; min-height:67px; }
.hide-labels .scene-overlay { display:none; }
@media(max-width:1000px){.scene-grid,.project-list{grid-template-columns:repeat(2,minmax(0,1fr))}.start-screen{grid-template-columns:1fr}.visual{display:none}}
@media(max-width:700px){.workspace{display:block}.sidebar{position:static;height:auto;border-right:0;border-bottom:1px solid var(--line)}.scene-grid,.project-list{grid-template-columns:1fr}.top-actions span{display:none}.intro{padding:12vw 7vw;border-right:0}.content-head{min-height:90px}.projects-heading{align-items:flex-start;gap:24px;flex-direction:column}.new-project{padding:9px}}
