:root{color-scheme:dark;--ink:#f1eee8;--muted:#a29f99;--green:#cfad77;--lime:#e2c798;--line:#ffffff14;--paper:#0d0e10;--surface:#151619;--raised:#1c1d20;--gold:#cfad77}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:96px}body{margin:0;background:var(--paper);color:var(--ink);font:14px/1.7 system-ui,"Microsoft YaHei",sans-serif}button,input,textarea,select{font:inherit}button{border:1px solid transparent;border-radius:8px;background:var(--gold);color:#16130f;padding:11px 19px;font-weight:600;cursor:pointer;transition:background .2s,transform .2s,border-color .2s}button:hover:not(:disabled){background:#e3c394;transform:translateY(-1px)}button.secondary,.filelabel{background:#ffffff08;border:1px solid #ffffff1a;color:var(--ink)}button.secondary:hover:not(:disabled),.filelabel:hover{background:#ffffff10}button.quiet{background:transparent;color:var(--muted);padding:8px 12px}button.quiet:hover:not(:disabled){background:#ffffff08;color:var(--ink)}button:disabled{opacity:.38;cursor:default}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible,.filelabel:focus-within,a:focus-visible{outline:2px solid var(--gold);outline-offset:4px}a{color:inherit}h1,h2,h3,p{margin:0}h2{font-size:23px;letter-spacing:-.5px;font-weight:500}h3{font-size:16px;font-weight:500}.hint{font-size:12px;color:var(--muted)}.row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}[hidden]{display:none!important}
.topbar{position:fixed;inset:0 0 auto;z-index:30;background:#0d0e10e8;backdrop-filter:blur(18px);border-bottom:1px solid var(--line)}.topbar-inner{max-width:1440px;height:76px;margin:auto;padding:0 48px;display:flex;align-items:center;justify-content:space-between;gap:22px}.brand{display:flex;align-items:center;gap:11px;padding:0;background:transparent;color:var(--ink);letter-spacing:1px;text-align:left;font-weight:600}.brand:hover:not(:disabled){background:transparent;transform:none}.brandmark{display:grid;place-items:center;width:29px;height:32px;color:var(--gold)}.brandmark svg{width:100%;height:100%}.brand small{display:block;font:9px/1.2 ui-monospace,monospace;letter-spacing:3px;color:var(--muted);margin-top:1px}.topbar-center{font:10px ui-monospace,monospace;letter-spacing:3px;color:#89867f}.connection{font-size:11px;color:var(--muted);margin-right:10px}.topbar .quiet{font-size:12px}.topbar .nav-studio{color:var(--gold);border-left:1px solid var(--line);border-radius:0;margin-left:5px;padding-left:20px}main{overflow:clip}
.landing{position:relative;min-height:100svh;display:flex;align-items:center;justify-content:center;overflow:hidden;padding:140px 48px 96px;background:radial-gradient(ellipse at 50% 16%,#75604720,transparent 60%),linear-gradient(155deg,#141518 0%,#0d0e10 70%)}.landing::before{content:"";position:absolute;inset:76px 0 0;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.18' filter='url(%23n)'/%3E%3C/svg%3E");opacity:.1;pointer-events:none}.landing-frame{position:absolute;inset:112px 48px 54px;border:1px solid #ffffff0a;pointer-events:none}.landing-frame::before,.landing-frame::after{content:"";position:absolute;width:42px;height:42px;border-color:#cfad7752;border-style:solid}.landing-frame::before{top:-1px;left:-1px;border-width:1px 0 0 1px}.landing-frame::after{bottom:-1px;right:-1px;border-width:0 1px 1px 0}.frame-label{position:absolute;left:22px;top:18px;color:#b3a1887a;font:9px ui-monospace,monospace;letter-spacing:3px}.frame-time{position:absolute;right:22px;bottom:18px;color:#b3a1887a;font:9px ui-monospace,monospace;letter-spacing:2px}.landing-content{position:relative;text-align:center;max-width:840px}.opening-label{display:flex;align-items:center;justify-content:center;gap:15px;color:var(--gold);font-size:10px;letter-spacing:4px;margin-bottom:27px}.opening-label::before,.opening-label::after{content:"";height:1px;width:28px;background:#cfad7770}.landing-title{font-family:Georgia,"Songti SC",SimSun,serif;font-size:clamp(56px,7.2vw,96px);line-height:1.05;font-weight:400;letter-spacing:3px}.landing-title span{display:block;margin-top:13px;font:10px/1.5 ui-monospace,monospace;letter-spacing:8px;color:#d5c7b2}.landing-slogan{font-family:"Songti SC",SimSun,serif;font-size:clamp(25px,3vw,39px);font-weight:400;letter-spacing:3px;line-height:1.55;margin:36px 0 16px}.landing-slogan em{font-style:normal;color:var(--gold)}.landing-intro{max-width:470px;margin:auto;color:var(--muted);font-size:13px;line-height:2.1}.landing-actions{display:flex;justify-content:center;align-items:center;gap:18px;margin-top:36px}.start-button{padding:13px 28px;min-width:176px;border-radius:4px;display:inline-flex;gap:35px;align-items:center;justify-content:space-between;font-size:13px}.start-button .arrow{font-size:21px;font-weight:400;line-height:1}.landing-detail{font-size:10px;letter-spacing:1px;color:#797870;margin-top:15px}.landing-path{display:flex;justify-content:center;align-items:center;gap:19px;margin-top:46px;color:#8d8a83;font-size:10px;letter-spacing:2px}.landing-path span{color:var(--gold);font:10px ui-monospace,monospace;margin-right:7px}.landing-path i{width:25px;height:1px;background:#ffffff20}.scroll-cue{position:absolute;bottom:21px;left:50%;transform:translateX(-50%);color:#89857b;text-decoration:none;font:9px/1 ui-monospace,monospace;letter-spacing:3px;display:flex;align-items:center;gap:12px}.scroll-cue::after{content:"↓";font-size:16px;animation:drift 2s ease-in-out infinite}.landing-side{position:absolute;left:17px;top:50%;writing-mode:vertical-rl;font:8px ui-monospace,monospace;letter-spacing:4px;color:#6d6860}
.studio{max-width:1240px;margin:auto;padding:44px 40px 128px;scroll-margin-top:0}.hero{display:flex;justify-content:space-between;align-items:center;gap:26px;margin-bottom:28px}.eyebrow{color:var(--gold);font:10px ui-monospace,monospace;letter-spacing:3px;margin-bottom:8px}.hero h2{font-size:26px;font-weight:400}.hero p{color:var(--muted);font-size:12px;margin-top:5px}.projectname{min-width:270px;max-width:340px}.projectname label{font-size:10px;color:var(--muted)}.projectname :is(input,textarea){font-size:13px;background:transparent;border:0;border-bottom:1px solid #ffffff25;border-radius:0;padding:4px 0}.projectname .row{gap:4px;margin-top:4px}.projectname .filelabel{background:transparent;border:0;padding:6px 9px;font-size:11px;color:var(--muted)}.smallbutton{padding:7px 10px;font-size:11px}.steps{position:sticky;top:76px;z-index:10;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;padding:12px 0 18px;background:#0d0e10f2;backdrop-filter:blur(18px);margin-bottom:9px}.step{position:relative;display:flex;align-items:center;gap:17px;text-align:left;border:1px solid var(--line);border-radius:0;padding:20px 22px;background:#151619;color:var(--muted);min-height:90px}.step:first-child{border-radius:10px 0 0 10px}.step:last-child{border-radius:0 10px 10px 0}.step:hover:not(:disabled){background:#1c1d20;transform:none}.step-number{font:29px/1 Georgia,serif;color:#706d67;min-width:38px}.step-copy{display:flex;flex-direction:column;gap:3px}.step strong{font-size:15px;letter-spacing:1px;font-weight:500}.step small{font-size:10px;color:#8f8b82;font-weight:400}.step.active{background:linear-gradient(105deg,#322a2066,#19191b);border-color:#cfad775c;color:var(--ink)}.step.active::after{content:"";position:absolute;left:20px;right:20px;bottom:0;height:2px;background:var(--gold)}.step.active .step-number{color:var(--gold)}.step.complete:not(.active) .step-number{color:#c1af94}.stage-caption{display:flex;justify-content:space-between;align-items:center;font:10px ui-monospace,monospace;letter-spacing:2px;color:#89877f;margin:5px 2px 17px}.stage-caption span:first-child{color:var(--gold)}.stage{scroll-margin-top:112px}.panel{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:30px;transform-origin:top}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:26px}.panel-head p{color:var(--muted);font-size:12px;margin-top:7px}.setup-grid{display:grid;grid-template-columns:1fr 1fr;gap:32px}.dropzone{border:1px dashed #cfad7742;border-radius:9px;background:radial-gradient(ellipse at center,#cfad7707,transparent);padding:32px;text-align:center;min-height:228px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:13px}.dropzone.dragging{background:#cfad7718;border-color:var(--gold)}.drop-icon{width:44px;height:44px;border:1px solid #cfad7740;border-radius:50%;display:grid;place-items:center;color:var(--gold);font-size:24px}.dropzone strong{font-size:13px;font-weight:400}.dropzone .filelabel{background:#cfad771a;color:var(--gold);border-color:#cfad7735;padding:9px 18px}.brief{display:flex;flex-direction:column;gap:15px}.brief label{font-size:12px}.brief textarea{min-height:94px}.brief-footer{display:grid;grid-template-columns:130px 1fr;gap:16px}label{display:block;font-weight:400}input,textarea,select{display:block;width:100%;border:1px solid #ffffff1c;background:#101114;padding:10px 12px;color:var(--ink);border-radius:6px;margin-top:7px}input::placeholder,textarea::placeholder{color:#77766f}textarea{resize:vertical;min-height:86px}.filelabel{position:relative;display:inline-flex;align-items:center;justify-content:center;border-radius:6px;padding:10px 14px;overflow:hidden;cursor:pointer;font-size:12px}.filelabel input{position:absolute;inset:0;margin:0;width:100%;height:100%;opacity:0;cursor:pointer}.optional{margin-top:8px}summary{cursor:pointer;color:var(--muted);font-size:12px;padding:7px 0}.optional textarea{min-height:65px}.asset-head{display:flex;justify-content:space-between;align-items:center;margin:28px 0 14px;font-size:12px;font-weight:400}.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:15px}.asset-grid{grid-template-columns:repeat(auto-fill,minmax(235px,1fr))}.card{border:1px solid var(--line);border-radius:9px;padding:18px;background:#111215;overflow-wrap:anywhere}.card p{margin-top:12px}.card.selected{border:1px solid #cfad7790;background:#cfad7708;box-shadow:inset 0 0 0 1px #cfad7720}.badge{font-size:10px;padding:4px 8px;border:1px solid #cfad7728;border-radius:4px;background:#cfad7709;color:var(--gold);white-space:nowrap}.badge.ready{background:#cfad771a}.asset-media{display:grid;place-items:center;aspect-ratio:16/9;background:#212124;color:#777269;border-radius:5px;margin-bottom:12px;overflow:hidden;font:24px ui-monospace,monospace;letter-spacing:2px}.asset-media img{width:100%;height:100%;object-fit:cover}.asset-title{font-size:13px;font-weight:500;max-width:170px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.asset-options{border-top:1px solid var(--line);margin-top:12px;padding-top:5px}.asset-options label{font-size:11px;margin:10px 0}.asset-options textarea{font-size:12px;min-height:66px}.pre{white-space:pre-wrap;background:#0d0e10;padding:12px;max-height:280px;overflow:auto;font-size:12px}.error{color:#efa48f}.empty{color:var(--muted);padding:18px 0;font-size:13px}.footer-actions{border-top:1px solid var(--line);margin-top:26px;padding-top:21px;display:flex;align-items:center;justify-content:space-between;gap:16px}.footer-actions .hint{max-width:520px}#workerPanel{margin-top:18px;background:#101114;border-radius:8px;padding:8px 14px}iframe{width:100%;height:275px;border:0;border-radius:7px;background:#101114}.direction-card{display:flex;flex-direction:column;min-height:290px}.direction-card h3{font-size:21px;line-height:1.55;font-weight:400}.direction-card .story{font-size:13px;flex:1;color:#c6c2b9}.direction-card button{margin-top:20px}.direction-empty{padding:44px;text-align:center;border:1px dashed #ffffff18;border-radius:8px;color:var(--muted)}.direction-empty strong{color:#d8d3c9;display:block;font:20px "Songti SC",SimSun,serif;margin-bottom:12px}.switch{display:flex;background:#0d0e10;border:1px solid var(--line);border-radius:6px;padding:3px;gap:3px}.switch button{background:transparent;color:var(--muted);padding:7px 12px;font-size:12px}.switch button.active{background:#282621;color:var(--gold)}.script-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:18px 0}.version-label{font-size:11px;display:flex;gap:10px;align-items:center}.version-label select{margin:0;max-width:300px;font-size:12px;padding:7px}.timeline{display:flex;gap:3px;height:34px;margin:22px 0 26px;overflow:hidden;border-radius:4px}.timeline button{min-width:28px;padding:0;border-radius:2px;font:10px ui-monospace,monospace;color:#d8c09b;background:#453b2d;white-space:nowrap;overflow:hidden}.timeline button:nth-child(3n+2){background:#363b3c;color:#bbc4c5}.timeline button:nth-child(3n){background:#3a323b;color:#c6b8c7}.shot-list{display:grid;gap:12px}.shot-card{border:1px solid var(--line);border-radius:8px;display:grid;grid-template-columns:145px 1fr;padding:20px;gap:24px;background:#121316}.shot-position{font-size:12px;color:var(--muted)}.shot-position strong{font:22px Georgia,serif;color:var(--gold);display:block;margin-bottom:3px}.source-window{margin-top:14px;font-size:11px}.source-window strong{font:12px ui-monospace,monospace;display:inline;color:#c4bdb0}.shot-body h3{font-size:14px;font-weight:400;line-height:1.8}.shot-body .caption{display:inline-block;padding:5px 10px;background:#cfad7710;color:#d6c29f;border-radius:4px;margin:10px 0;font-size:12px}.shot-body details{font-size:12px;color:#bab6ae}.shot-body details p{margin:8px 0}.shot-body .row{margin-top:10px}.ending-box{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:23px 0}.ending-box article{background:#cfad7706;border:1px solid #cfad771b;border-radius:8px;padding:18px;font-size:12px}.ending-box strong{color:#cbb995;font-weight:500}.ending-box p{margin-top:9px;color:#b7b3aa}.tablewrap{overflow-x:auto}table{border-collapse:collapse;min-width:990px;width:100%;font-size:12px}th,td{border-bottom:1px solid var(--line);text-align:left;vertical-align:top;padding:13px 10px}th{background:#1d1c1a;color:#c3b69d;font-weight:400}td div+div{margin-top:8px}.feedback-box{padding:23px;background:#101114;border:1px solid #cfad7720;border-radius:9px;margin-top:24px}.feedback-box h3{font-size:16px;margin-bottom:16px}.feedback-box .grid{grid-template-columns:230px 1fr}.feedback-box .row{margin-top:12px}.feedback-box label{font-size:12px}.feedback-box textarea{min-height:78px}.multi-box{margin:16px 0;border:1px solid #ffffff18;background:#17181b;border-radius:8px;padding:18px}.multi-picker{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}.shot-choice{display:flex;align-items:center;gap:7px;border:1px solid var(--line);border-radius:5px;padding:7px 10px!important;margin:0!important;font-size:11px;cursor:pointer}.shot-choice:has(input:checked){border-color:#cfad7760;background:#cfad7710}.shot-choice input,.shot-select input{width:15px;margin:0;accent-color:var(--gold)}.shot-select{display:inline-flex;gap:7px;align-items:center;font-size:12px;color:#c7b58f;cursor:pointer}.edit-requirement{border:1px solid var(--line);border-radius:7px;padding:15px;margin:12px 0;min-width:0}.edit-requirement legend{font-size:12px;font-weight:500;padding:0 6px;color:var(--gold)}.edit-requirement textarea{min-height:62px}.edit-requirement .grid{grid-template-columns:1fr 1fr}.edit-requirement label{font-size:12px}.edit-requirement .extra{margin-top:10px}
.creation-progress{display:grid;grid-template-columns:112px 1fr;align-items:center;gap:28px;padding:26px 30px;margin-bottom:20px;background:linear-gradient(105deg,#241f1760,#141518);border:1px solid #cfad773b;border-radius:10px;scroll-margin-top:112px}.projector{position:relative;display:flex;align-items:center;justify-content:center;gap:5px;height:82px}.film-reel{color:var(--gold);width:49px;height:49px;animation:reel-turn 5s linear infinite}.film-reel.second{animation-direction:reverse}.projector::after{content:"";position:absolute;left:14px;right:14px;height:8px;bottom:8px;border:1px solid #cfad7745;border-radius:2px;background:repeating-linear-gradient(90deg,#cfad7745 0 3px,transparent 3px 10px);animation:film-feed 1.2s linear infinite}.creation-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.creation-title{font:21px "Songti SC",SimSun,serif;letter-spacing:1px}.creation-head .quiet{padding:2px 7px;font-size:11px}.creation-copy{color:var(--muted);font-size:12px;margin:8px 0 15px}.progress-track{height:3px;position:relative;overflow:hidden;background:#ffffff0f;border-radius:3px}.progress-track::after{content:"";position:absolute;inset:0 auto 0 0;width:32%;background:linear-gradient(90deg,transparent,#cfad77,#e9d4b0);animation:progress-scan 1.7s ease-in-out infinite}.creation-meta{display:flex;justify-content:space-between;gap:14px;margin-top:13px}.creation-phases{display:flex;gap:15px;align-items:center;flex-wrap:wrap;font-size:10px;color:#77756e}.creation-phases span{display:flex;align-items:center;gap:6px}.creation-phases span::before{content:"";width:4px;height:4px;border-radius:50%;background:currentColor}.creation-phases [data-state="active"]{color:var(--gold)}.creation-phases [data-state="done"]{color:#c9c1b0}.creation-elapsed{font:10px/1.7 ui-monospace,monospace;color:#9c978b;white-space:nowrap}.creation-progress[data-state="success"] .progress-track::after{width:100%;animation:none;background:var(--gold)}.creation-progress[data-state="success"] .film-reel,.creation-progress[data-state="success"] .projector::after,.creation-progress[data-state="error"] .film-reel,.creation-progress[data-state="error"] .projector::after{animation-play-state:paused}.creation-progress[data-state="error"]{border-color:#ae705848}.creation-progress[data-state="error"] .progress-track::after{animation:none;width:100%;background:#986c51}.creation-progress[data-state="error"] .creation-title{color:#dfa38a}
.statusbar{position:fixed;bottom:0;left:0;right:0;background:#101114ed;border-top:1px solid var(--line);backdrop-filter:blur(15px);z-index:15}.status-inner{max-width:1240px;margin:auto;padding:10px 40px;display:flex;align-items:center;justify-content:space-between;gap:15px;font-size:12px}.status{white-space:pre-wrap;overflow-wrap:anywhere}.pulse{width:5px;height:5px;background:#9c9689;display:inline-block;border-radius:50%;flex-shrink:0}.pulse.busy{background:var(--gold);animation:blink 1.1s infinite}.save-note{font-size:10px;color:#8e8b82;margin-top:2px}.drawer{position:fixed;inset:0;z-index:50;background:#0009;backdrop-filter:blur(5px);display:flex;justify-content:flex-end}.drawer-card{width:min(560px,100%);height:100%;background:#17181b;overflow:auto;padding:28px;box-shadow:-6px 0 50px #0006;animation:drawer-in .3s ease-out}.drawer-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.drawer-card section{margin:22px 0;border-bottom:1px solid var(--line);padding-bottom:20px}.drawer-card label{font-size:12px;margin:13px 0}.drawer-card p{font-size:12px;margin:10px 0;color:var(--muted)}.drawer-card h3{font-size:16px}.drawer-card .filelabel{font-size:12px}.error-help{background:#a55f4010;border:1px solid #a55f4030;padding:15px;border-radius:7px;margin-bottom:16px}.drawer-card pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;background:#101114;padding:12px;border-radius:5px}#rawReply{font:12px/1.7 ui-monospace,monospace;min-height:230px}.build{font-size:10px;color:#8f897c;margin-top:20px}.advanced{border:1px solid var(--line);padding:10px 13px;border-radius:7px}.error-link{color:#dfa38a!important}body.drawer-open{overflow:hidden}
@keyframes reel-turn{to{transform:rotate(360deg)}}@keyframes film-feed{to{background-position:20px 0}}@keyframes progress-scan{from{transform:translateX(-110%)}to{transform:translateX(420%)}}@keyframes drift{50%{transform:translateY(4px)}}@keyframes blink{50%{opacity:.35}}@keyframes drawer-in{from{transform:translateX(25px);opacity:0}to{transform:translateX(0);opacity:1}}
@media(min-width:1600px){.landing{padding-bottom:130px}.landing-path{margin-top:64px}}
@media(max-width:850px){.topbar-inner{padding:0 25px}.topbar-center,.connection{display:none}.landing{padding:135px 32px 100px}.landing-frame{left:25px;right:25px}.landing-side{display:none}.studio{padding:35px 25px 125px}.setup-grid{grid-template-columns:1fr;gap:24px}.cards{grid-template-columns:1fr}.asset-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.direction-card{min-height:0}.ending-box{grid-template-columns:1fr}.step{padding:18px 15px;gap:10px}.step-number{font-size:25px;min-width:31px}.step strong{font-size:13px}.step small{font-size:9px}.hero{align-items:flex-start}.projectname{min-width:220px;max-width:250px}.status-inner{padding:10px 25px}}
@media(max-width:550px){html{scroll-padding-top:86px}.topbar-inner{height:64px;padding:0 18px;gap:8px}.brand{font-size:14px;gap:7px}.brandmark{width:23px;height:27px}.brand small{font-size:8px;letter-spacing:2px}.topbar .row{gap:1px}.topbar .quiet{padding:7px 9px;font-size:11px}.topbar .nav-studio{display:none}.landing{padding:126px 24px 105px;min-height:100svh}.landing-frame{inset:87px 17px 54px}.frame-label,.frame-time{font-size:8px}.landing-title{font-size:62px}.landing-title span{letter-spacing:6px}.landing-slogan{font-size:25px;letter-spacing:2px;margin-top:29px}.landing-intro{font-size:12px;max-width:300px}.opening-label{font-size:8px;margin-bottom:24px;letter-spacing:3px}.landing-actions{margin-top:29px}.landing-path{gap:9px;margin-top:36px;letter-spacing:0}.landing-path i{width:12px}.landing-path span{margin-right:4px}.landing-detail{font-size:9px}.studio{padding:28px 16px 130px}.hero{display:block;margin-bottom:20px}.hero h2{font-size:23px}.projectname{max-width:none;margin-top:18px}.projectname :is(input,textarea){max-width:100%}.projectname .row{justify-content:flex-end}.steps{top:64px;padding:9px 0 12px}.step{flex-direction:column;align-items:flex-start;padding:12px 10px;gap:7px;min-height:104px}.step-number{font-size:23px}.step strong{font-size:12px;letter-spacing:0}.step small{font-size:8px}.step.active::after{left:10px;right:10px}.stage-caption{font-size:8px;letter-spacing:1px}.panel{padding:20px 17px}.panel-head,.footer-actions{align-items:flex-start;flex-direction:column}.panel-head h2{font-size:19px}.dropzone{padding:25px 18px;min-height:210px}.asset-grid{gap:9px}.asset-grid .card{padding:11px}.asset-title{max-width:110px}.shot-card{grid-template-columns:1fr;gap:13px;padding:16px}.shot-position{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.shot-position strong{font-size:18px;margin:0}.source-window{margin:0}.script-toolbar{align-items:flex-start;flex-direction:column}.feedback-box{padding:17px}.feedback-box .grid,.edit-requirement .grid{grid-template-columns:1fr}.status-inner{padding:9px 16px;font-size:11px}.save-note{max-width:270px;line-height:1.5}.drawer-card{padding:22px}.brief-footer{grid-template-columns:100px 1fr}.creation-progress{grid-template-columns:1fr;gap:12px;padding:18px;scroll-margin-top:112px}.projector{height:64px;width:112px;justify-self:center}.projector::after{bottom:0}.creation-title{font-size:19px}.creation-meta{flex-direction:column;gap:7px}.creation-phases{gap:10px}.creation-head{gap:10px}.multi-box{padding:12px}.stage{scroll-margin-top:112px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important}.creation-progress[data-state="waiting"] .progress-track::after{width:32%;opacity:.65;transform:translateX(105%)}}

/* V0.3.1 — quiet opening / luminous editing desk */
html{scroll-behavior:auto;scroll-padding-top:152px}body{background:#141719}main{overflow:visible}body[data-view="home"]{overflow:hidden}.topbar{background:#171b1eef;border-bottom-color:#ffffff1a}.topbar-inner{height:68px}.topbar-center,.nav-studio{display:none!important}.topbar .quiet{color:#e0ded6;border:1px solid #ffffff24;border-radius:7px}.connection{color:#babcb7}.brand{color:#f4eee2}.topbar .brand:hover{color:#f4eee2}
.landing{height:100svh;min-height:560px;padding:55px 24px;background:radial-gradient(ellipse at 52% 40%,#2b302d 0%,#111618 55%,#0b1012 100%);isolation:isolate}.landing::before{inset:0;z-index:3;opacity:.12}.landing::after{content:"";position:absolute;inset:0;z-index:1;background:radial-gradient(ellipse at 50% 48%,#0c1214d9 0%,#11171960 40%,#0a101375 78%);pointer-events:none}.landing-content{z-index:4;max-width:760px;animation:opening-in 1.3s ease both}.landing-title{font-family:"Songti SC","Noto Serif CJK SC",SimSun,serif;font-size:clamp(76px,9vw,122px);font-weight:400;letter-spacing:.2em;padding-left:.2em;line-height:1.15;color:#f1eddf;text-shadow:0 2px 50px #0008}.landing-title span{margin-top:20px;letter-spacing:.7em;font-size:10px;color:#bfbfb0;padding-left:.7em}.landing-slogan{font-family:"Songti SC",SimSun,serif;font-size:clamp(20px,2.5vw,30px);letter-spacing:.16em;margin:42px 0 0;color:#d2d4c6}.landing-slogan em{color:#e5d3b2}.landing-actions{margin-top:48px}.start-button{background:#e8ddc6;color:#202a29;min-width:172px;border-radius:40px;padding:12px 24px;border:1px solid #ffffff21;font-weight:500}.start-button:hover:not(:disabled){background:#f7eedb}.scroll-cue{bottom:30px;z-index:4;font-size:20px;color:#999f98;letter-spacing:0}.scroll-cue::after{display:none}.memory-background{position:absolute;inset:0;z-index:0;pointer-events:none;overflow:hidden}.memory-frame{position:absolute;border:1px solid #e8deca35;padding:7px;background:#ede1c311;box-shadow:0 16px 80px #0008;opacity:.48;will-change:transform}.memory-frame svg{display:block;width:100%;height:100%;object-fit:cover}.memory-mountain{width:36vw;height:23vw;max-height:370px;left:-5%;top:7%;transform:rotate(-12deg);animation:mountain-drift 28s ease-in-out infinite alternate}.memory-sea{width:34vw;height:22vw;right:-6%;bottom:0%;transform:rotate(13deg);animation:sea-drift 32s ease-in-out infinite alternate}.memory-city{width:18vw;height:25vw;right:9%;top:-11%;transform:rotate(9deg);opacity:.27;animation:city-drift 35s ease-in-out infinite alternate}.memory-type{position:absolute;font:italic clamp(80px,15vw,220px)/1 Georgia,serif;letter-spacing:-.055em;color:#d8d2b9;opacity:.065;white-space:nowrap}.memory-type-one{left:2%;bottom:12%;animation:type-drift 40s ease-in-out infinite alternate}.memory-type-two{right:-20%;top:28%;animation:type-drift 50s ease-in-out infinite alternate-reverse}
.studio{max-width:1320px;padding:108px 40px 104px;min-height:100svh}.hero{margin-bottom:20px}.hero h2{font:28px "Songti SC",SimSun,serif;letter-spacing:2px;color:#e9e5da}.studio-title-accent{color:#bda784;font-style:italic;margin-left:12px}.projectname{min-width:310px}.projectname label{color:#c5c6bd;font-size:12px}.projectname :is(input,textarea){color:#f2eee5;border-bottom-color:#ffffff48}.projectname .quiet,.projectname .filelabel{color:#c7c9c1;font-size:12px}.steps{top:68px;gap:10px;background:#141719f5;padding:10px 0 16px;margin-bottom:12px}.step,.step:first-child,.step:last-child{border-radius:9px;min-height:72px;padding:17px 23px;background:#272d30;border-color:#4c5557;color:#d5dad6}.step:hover:not(:disabled){background:#363d40}.step-number{font-style:italic;font-size:27px;color:#939e9d}.step strong{font-size:14px;font-weight:500;letter-spacing:2px}.step.active{background:#e5ddcd;border-color:#e5ddcd;color:#293633}.step.active .step-number{color:#7b5830}.step.active::after{display:none}.step.complete:not(.active) .step-number{color:#d2c29c}
.panel,.creation-progress,.drawer-card{--ink:#26332f;--muted:#5d6963;--line:#283b3029;--gold:#80572c;--green:#80572c;--surface:#f1efe7;--raised:#e8e7de;color:var(--ink);color-scheme:light}.panel{background:#f1efe7;border-color:#f1efe7;border-radius:13px;padding:30px 34px;box-shadow:0 20px 80px #0002}.panel-head{margin-bottom:22px}.panel-head h2{font-family:"Songti SC",SimSun,serif;font-weight:500;font-size:25px;letter-spacing:1px}.panel .hint,.panel summary,.drawer-card p,.drawer-card summary{color:var(--muted)}.panel button,.drawer-card button{background:#345b4f;color:#fff9ed;border-color:#345b4f;border-radius:7px}.panel button:hover:not(:disabled),.drawer-card button:hover:not(:disabled){background:#254a3e}.panel button.secondary,.panel .filelabel,.drawer-card button.secondary,.drawer-card .filelabel{background:#fcfaf3;color:#2c493e;border:1px solid #a8b3a9}.panel button.secondary:hover:not(:disabled),.panel .filelabel:hover,.drawer-card button.secondary:hover:not(:disabled){background:#e5ece3}.panel button.quiet,.drawer-card button.quiet{background:transparent;color:#3d5147;border-color:transparent}.panel button.quiet:hover:not(:disabled),.drawer-card button.quiet:hover:not(:disabled){background:#dfe5db}.panel input,.panel textarea,.panel select,.drawer-card input,.drawer-card textarea,.drawer-card select{background:#fffdf7;color:#243b30;border:1px solid #aab4a9;box-shadow:0 1px 3px #172d1810}.panel input::placeholder,.panel textarea::placeholder,.drawer-card input::placeholder{color:#69756b}.panel button:disabled{opacity:.48;filter:saturate(.3)}.panel label{font-weight:500}.panel .badge{background:#e7eadf;border-color:#b4bcad;color:#3e5947}.panel .badge.ready{background:#dce8d7}.dropzone{background:#e8ebe1;border-color:#8d9e8b;min-height:228px}.dropzone.dragging{background:#d3e1ce;border-color:#436748}.drop-icon{background:#f9f8f0;border-color:#a9b8a0;color:#345b4f;width:46px;height:46px}.dropzone strong{font-size:15px;color:#354c40}.dropzone .filelabel{background:#345b4f;color:#fff9ed;border-color:#345b4f}.dropzone .filelabel:hover{background:#254a3e}.brief label{color:#354b3e}.brief textarea{min-height:112px}.brief-footer{grid-template-columns:130px 1fr}.asset-head{margin-top:25px}.card{background:#fffdf6;border-color:#c0c8bc;box-shadow:0 3px 12px #22341e04}.card.selected{border-color:#52795e;background:#edf3e8;box-shadow:inset 0 0 0 1px #52795e}.asset-media{background:#dbe0d4;color:#596f60}.asset-title{color:#243b30}.asset-options{border-top-color:#c6cebf}.pre{background:#e6ebdf;color:#314a39}.panel .error{color:#a43622}.panel .empty{color:#61735f}#workerPanel{background:#e2e8dc}.direction-card .story{color:#465a49;font-size:14px}.direction-card h3{font-family:"Songti SC",SimSun,serif;color:#293e31}.direction-empty{border-color:#b9c5b3;background:#e9eddf}.direction-empty strong{color:#4d644d}.panel .switch{background:#e3e7dc;border-color:#b9c2b2}.panel .switch button{background:transparent;color:#52654e;border-color:transparent}.panel .switch button.active{background:#fcfbf5;color:#294b37;box-shadow:0 1px 4px #203a1820}.timeline button{background:#4a6953;color:#fff9e8;border-color:transparent}.timeline button:nth-child(3n+2){background:#7b725b;color:#fff9e8}.timeline button:nth-child(3n){background:#65757c;color:#fff9e8}.shot-card{background:#fffdf7;border-color:#c0c8bc}.shot-position{color:#5c6a5d}.shot-position strong{color:#8a643b}.source-window strong{color:#3e5a42}.shot-body .caption{background:#eee8d7;color:#685333}.shot-body details{color:#4f6251}.ending-box article{background:#e8ebdf;border-color:#c4ccba}.ending-box strong{color:#435d45}.ending-box p{color:#52624e}.panel th{background:#e1e7d7;color:#42583f}.panel td,.panel th{border-color:#c3ccba}.feedback-box{background:#e3e8db;border-color:#b5c2aa}.multi-box{background:#eef0e6;border-color:#bac6af}.shot-choice:has(input:checked){background:#dae8d3;border-color:#638458}.shot-select{color:#365640}.edit-requirement legend{color:#3f6145}.panel .footer-actions{justify-content:flex-end}.panel #assetHint{margin-right:auto}.panel .footer-actions{border-color:#c4cbbd}
.creation-progress{background:#e7e6db;border-color:#b8bea9;scroll-margin-top:160px}.creation-copy{color:#566249}.creation-progress .quiet{color:#40573d;border-color:#a6b39c}.creation-phases{font-size:11px;color:#6c7664}.creation-phases [data-state="active"]{color:#74501f}.creation-phases [data-state="done"]{color:#395c38}.creation-meta{flex-wrap:wrap;align-items:center;gap:10px}.creation-elapsed{color:#4f6149;font-size:11px}.creation-estimate{font-size:12px;color:#47623f;flex:1;text-align:right}.progress-track{height:4px;background:#afbca560}.progress-track::after{background:linear-gradient(90deg,transparent,#758966,#345b4f)}.creation-progress[data-state="error"]{border-color:#ac7657}.creation-progress[data-state="error"] .creation-title{color:#94432b}.creation-progress[data-state="error"] .progress-track::after{width:0}.projector::after{border-color:#8c92694f;background:repeating-linear-gradient(90deg,#8c926970 0 3px,transparent 3px 10px)}
.drawer-card{background:#f1efe7}.drawer-card pre{background:#e2e7d9;color:#33462e}.drawer-card .build{color:#65735d}.error-help{border-color:#b9836545;background:#e9d6c760}.error-link{color:#f2b7a2!important}.statusbar{background:#191e20f2;border-color:#ffffff28}.status-inner{padding-top:9px;padding-bottom:9px}.status-inner .status{color:#d7dcd2}.status-inner .status.error{color:#f2b7a2}.status-inner .save-note{color:#9daaa0}.status-inner button.secondary{color:#eeeadd;border-color:#ffffff40;background:#ffffff0c}.stage{scroll-margin-top:164px}
@keyframes opening-in{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}@keyframes mountain-drift{to{transform:translate(4vw,3vh) rotate(-7deg)}}@keyframes sea-drift{to{transform:translate(-5vw,-4vh) rotate(8deg)}}@keyframes city-drift{to{transform:translate(-2vw,5vh) rotate(4deg)}}@keyframes type-drift{to{transform:translateX(-10vw)}}
@media(max-width:850px){.studio{padding:102px 24px 115px}.topbar-inner{padding:0 24px}.panel{padding:25px}.memory-mountain{width:55vw;height:37vw;left:-17%;top:9%}.memory-sea{width:60vw;height:40vw;right:-22%;bottom:8%}.memory-city{width:25vw;height:40vw;top:-8%}.step{padding:16px;gap:12px}.step strong{letter-spacing:1px}.landing-slogan{margin-top:32px}.creation-estimate{text-align:left}}
@media(max-width:550px){.landing{min-height:480px;padding:25px}.landing-title{font-size:84px}.landing-title span{font-size:9px}.landing-slogan{font-size:21px;letter-spacing:.1em}.landing-actions{margin-top:37px}.memory-mountain{width:85vw;height:56vw;top:5%;left:-35%;opacity:.35}.memory-sea{width:90vw;height:60vw;right:-37%;bottom:8%;opacity:.4}.memory-city{width:37vw;height:56vw;right:-10%;top:-8%;opacity:.25}.memory-type{font-size:105px}.topbar-inner{height:64px;padding:0 17px}.studio{padding:93px 16px 126px}.hero h2{font-size:23px}.projectname{min-width:0;margin-top:15px}.steps{top:64px;gap:6px;padding-top:8px;padding-bottom:12px}.step{flex-direction:row;align-items:center;min-height:64px;gap:6px;padding:11px 8px}.step-number{font-size:18px;min-width:21px}.step strong{font-size:11px;letter-spacing:0}.step-copy{white-space:nowrap}.panel{padding:21px 17px}.panel-head h2{font-size:21px}.brief-footer{grid-template-columns:100px 1fr}.creation-progress{padding:18px}.creation-estimate{flex-basis:100%;order:2}.creation-phases{gap:8px}.creation-progress,.stage{scroll-margin-top:148px}.panel .footer-actions{align-items:stretch}.panel .footer-actions>.row{justify-content:flex-end}.panel .footer-actions>button{width:100%}.projectname .row{justify-content:flex-start}}
@media(prefers-reduced-motion:reduce){.memory-frame,.memory-type{will-change:auto}.landing-content{animation:none}.memory-mountain{transform:rotate(-12deg)}.memory-sea{transform:rotate(13deg)}}
@media(max-height:550px){.landing{min-height:100svh;padding:22px}.landing-title{font-size:64px}.landing-title span{margin-top:12px}.landing-slogan{margin-top:20px;font-size:22px}.landing-actions{margin-top:23px}.scroll-cue{display:none}}
.step.active:hover:not(:disabled){background:#f2eadc;color:#293633}.panel .switch button:hover:not(:disabled){background:#d5ddcb;color:#294b37}.panel .switch button.active:hover:not(:disabled){background:#fffdf7;color:#294b37}

/* V0.3.2 — flowing navigation, quieter stories, real moving memories */
body{overscroll-behavior-y:none}.landing{min-height:100svh;touch-action:pan-x}.memory-frame{padding:0;border:0;border-radius:3px;overflow:hidden;opacity:.44;box-shadow:0 25px 90px #0009;mask-image:linear-gradient(135deg,transparent 0%,#000 12%,#000 86%,transparent 100%)}.memory-frame video{display:block;width:100%;height:100%;object-fit:cover;filter:saturate(.62) contrast(.9)}.memory-city video{object-position:center}.memory-city{opacity:.3}.landing-content{text-shadow:0 3px 35px #0009}.studio{padding-bottom:60px}.hero{background:#edece3;color:#263c32;border-radius:13px;padding:27px 34px;align-items:center;margin-bottom:12px;box-shadow:0 15px 65px #0002}.hero h2{font-size:32px;color:#263c32;letter-spacing:.07em}.studio-title-accent{color:#998260}.projectname{min-width:340px;max-width:450px}.projectname label{font-size:14px;color:#647064}.projectname :is(input,textarea){color:#263d31;border-color:#8c9d87;font-size:20px;letter-spacing:.025em;padding:5px 0;margin-top:2px}.projectname .row{gap:13px;margin-top:10px;justify-content:flex-end}.projectname .quiet,.projectname .filelabel{font-size:15px;color:#375541;padding:7px 10px}.projectname .quiet:hover:not(:disabled),.projectname .filelabel:hover{background:#dfe5d8}.projectname .save-note{font-size:12px;color:#61715e;text-align:right;margin-top:6px}
.steps{--active-index:0;isolation:isolate;background:#141719f7;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;padding:12px 0 20px;overflow:visible;margin-bottom:15px}.step-flow{position:absolute;left:0;top:21px;width:100%;height:62px;color:#a7967145;pointer-events:none;z-index:-1}.step,.step:first-child,.step:last-child,.step.active{border:0;box-shadow:none;border-radius:0;background:transparent;color:#a8b3ab;min-height:88px;padding:12px 32px;gap:20px;transition:color .32s ease}.step:hover:not(:disabled){background:transparent;color:#f2ead7;transform:none}.step-number{font:italic 43px/1 Georgia,serif;color:#87958b;min-width:55px}.step strong{font-size:17px;font-weight:400;letter-spacing:.12em}.step.active{color:#f2e8ce}.step.active .step-number{color:#d5bf91}.step.complete:not(.active) .step-number{color:#b4bea7}.step.active::after{display:none}.steps::after{content:"";position:absolute;bottom:10px;left:calc(33.333333% * var(--active-index) + 3%);width:27.333333%;height:2px;border-radius:50%;background:linear-gradient(90deg,transparent,#d5bf91 22%,#e4d5b8 72%,transparent);box-shadow:0 2px 14px #c7b18448;transition:left .5s cubic-bezier(.22,.72,.14,1)}.stage,.creation-progress{scroll-margin-top:188px}
.panel{font-size:16px}.panel-head h2{font-size:27px}.panel button,.panel .filelabel{font-size:15px}.panel .hint,.panel summary{font-size:13px}.panel .brief label,.panel .asset-head{font-size:15px}.panel input,.panel textarea,.panel select{font-size:16px}.panel .badge{font-size:12px}.direction-card{position:relative;padding:26px 24px 24px}.direction-card>.row:first-child{padding-right:34px}.direction-card h3{font-size:24px;line-height:1.5;margin-top:15px}.direction-card .story{font-size:16px;line-height:1.9;color:#3e5143}.direction-mood{display:flex;gap:12px;flex-wrap:wrap;font-size:13px;color:#78806c;line-height:1.8;margin-top:12px}.direction-mood span+span::before{content:"/";color:#9ba48f;margin-right:12px}.suitability{position:absolute;right:18px;top:18px;z-index:3}.panel .tip-trigger{width:28px;height:28px;border-radius:50%;border:0;background:#dfe7d5;color:#4d6650;font:italic 17px Georgia,serif;padding:0}.panel .tip-trigger:hover:not(:disabled){background:#cbdac3}.suitability-tip{display:none;position:absolute;right:0;top:35px;width:min(320px,calc(100vw - 82px));background:#293f33;color:#f3f0df;border-radius:11px;padding:19px 21px;font-size:14px;line-height:1.8;box-shadow:0 12px 40px #15271e4a;pointer-events:none}.suitability-tip strong{font-size:14px;font-weight:500;color:#e9d8b5}.suitability-tip p{margin-top:9px;color:#e6eddf}.suitability:not(.tip-touch):hover .suitability-tip,.suitability .tip-trigger:focus-visible + .suitability-tip,.suitability.tip-open .suitability-tip{display:block}
.plan-heading{display:grid;grid-template-columns:minmax(200px,.85fr) minmax(0,1.5fr);gap:35px;align-items:start;margin:27px 0 23px}.plan-title{font:31px/1.55 "Songti SC",SimSun,serif;color:#2e4436;margin:0;letter-spacing:.04em}.plan-intro{font-size:15px;line-height:1.9;color:#52654f;padding-left:24px;border-left:1px solid #b9c4af}.plan-intro p{margin:0}.plan-intro .direction-mood{margin-top:7px;color:#72826a}.version-change{margin-top:9px}.version-change summary{color:#7c603d;font-size:13px}.version-change p{font-size:14px}.timeline{display:flex;gap:4px;height:58px;margin:25px 0 31px;padding:0;overflow:visible;border:0;background:transparent;position:relative}.timeline::before{content:"";position:absolute;inset:9px -4px -9px;border-radius:50%;background:linear-gradient(90deg,#8b9f6f14,#8d7b5725,#7e929a14);filter:blur(12px);pointer-events:none}.panel .timeline button{display:flex;flex-direction:column;justify-content:center;gap:2px;min-width:0;padding:6px 3px;height:58px;border:0;border-radius:8px 20px 8px 20px;background:linear-gradient(140deg,#66886e,#385947);color:#fbf8e9;box-shadow:0 4px 8px #20362816;transform:none;position:relative;transition:transform .22s ease,filter .22s ease}.panel .timeline button:nth-child(3n+2){background:linear-gradient(140deg,#a4946f,#766647);border-radius:20px 8px 20px 8px}.panel .timeline button:nth-child(3n){background:linear-gradient(140deg,#859c9c,#4d686c)}.panel .timeline button:hover:not(:disabled){transform:translateY(-5px);filter:brightness(1.12)}.timeline span{display:block;max-width:100%;overflow:hidden;font:13px ui-monospace,monospace;white-space:nowrap}.timeline small{font-size:10px;opacity:.78;max-width:100%;overflow:hidden;white-space:nowrap}.music-suggestion{background:linear-gradient(110deg,#e4eada,#eeecdf);border:0;border-radius:12px;padding:22px 25px;margin-top:25px;color:#496048}.music-suggestion strong{font:20px "Songti SC",SimSun,serif;color:#39523c}.music-suggestion p{font-size:15px;line-height:1.9;margin-top:10px}.shot-body h3{font-size:17px}.shot-body details,.panel td{font-size:15px}.feedback-box h3{font-size:20px}
.statusbar{position:relative;inset:auto;z-index:auto;background:#23382d;color:#e4ebdc;border:0;border-radius:10px;margin:0 0 14px;box-shadow:none}.status-inner{max-width:none;padding:13px 20px;gap:18px}.status-inner .status{font-size:14px;color:#e2e9d9;line-height:1.7}.status-inner .pulse{width:5px;height:5px;background:#c2cca7}.status-inner .quiet{color:#e4e7d6;font-size:12px}.status-inner .status.error{color:#f7dfd1}.statusbar.notice-error{background:#594139}.status-inner button.secondary{font-size:13px}.status-inner .row{gap:10px}.status-inner>div:first-child{min-width:0}.creation-progress{margin-bottom:15px}
@media(max-width:850px){.hero{padding:24px}.hero h2{font-size:29px}.projectname{min-width:280px}.step{padding:12px 20px;gap:13px}.step-number{font-size:37px;min-width:44px}.step strong{font-size:16px}.plan-heading{gap:24px;grid-template-columns:1fr 1.35fr}.plan-title{font-size:27px}}
@media(max-width:650px){.hero{align-items:flex-start;flex-direction:column;gap:12px}.projectname{min-width:0;max-width:none;width:100%;margin:0}.projectname .row{justify-content:flex-end}.hero h2{font-size:28px}.projectname :is(input,textarea){font-size:19px}.steps{top:64px;padding:7px 0 17px}.step,.step:first-child,.step:last-child{padding:12px 5px;min-height:77px;gap:5px}.step-number{font-size:28px;min-width:33px}.step strong{font-size:13px;letter-spacing:0}.step-flow{height:48px;top:19px}.plan-heading{grid-template-columns:1fr;gap:12px}.plan-intro{padding-left:0;border:0}.plan-title{font-size:27px}.panel-head h2{font-size:23px}.timeline{gap:3px;height:52px}.panel .timeline button{height:52px;border-radius:5px 14px 5px 14px}.timeline span{font-size:10px}.timeline small{font-size:8px}.status-inner{flex-wrap:wrap;padding:12px 16px}.status-inner>.row{margin-left:auto}.stage,.creation-progress{scroll-margin-top:167px}}
@media(prefers-reduced-motion:reduce){.steps::after,.step,.timeline button{transition:none}.memory-frame video{display:none}}

.memory-poster{display:block;width:100%;height:100%;object-fit:cover;filter:saturate(.62) contrast(.9)}.memory-frame video{position:absolute;inset:0}

/* V0.3.3 — a canvas between two quiet studio rails */
html{overflow-y:auto;scrollbar-gutter:stable both-edges}
html:has(body.drawer-open){overflow-y:hidden}
body[data-view="home"]{overflow:visible}
@supports not (scrollbar-gutter:stable){html{overflow-y:scroll}}
.studio{max-width:1720px;padding:98px 38px 60px}
.workspace-layout{display:grid;grid-template-columns:158px minmax(0,1fr) 242px;gap:25px;align-items:start}
.workspace-core{grid-column:2;grid-row:1;min-width:0}
.workspace-title{grid-column:1;grid-row:1;position:sticky;top:196px;padding:30px 0 0;color:#ede6d5}
.studio-kicker{display:block;color:#b09a73;font:10px/1.9 ui-monospace,monospace;letter-spacing:.24em;margin-bottom:25px}
.workspace-title h2{font:35px/1.65 "Songti SC",SimSun,serif;letter-spacing:.09em}
.workspace-title svg{display:block;width:145px;margin-top:36px;color:#b99c6866}
.project-sidebar{grid-column:3;grid-row:1;position:sticky;top:196px;padding:25px 23px 24px;background:linear-gradient(155deg,#ebede1,#dfdfcf);border-radius:4px 22px 4px 22px;color:#294338;box-shadow:0 14px 40px #0002}
.projectname{min-width:0;max-width:none;width:100%;margin:0}
.projectname label{font-size:16px;color:#647261}
.projectname :is(input,textarea){font:22px/1.7 "Songti SC",SimSun,serif;color:#2d4739;letter-spacing:.02em;padding:10px 0 12px;width:100%;border-bottom-color:#8d9e86}
.projectname .row{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:24px}
.projectname .quiet,.projectname .filelabel{font-size:17px;padding:9px 5px;color:#365b47;border:0;justify-content:center;background:transparent}
.projectname #exportProject{grid-column:1/-1;background:#365b47;color:#fff9e6;padding:12px;border-radius:6px}
.projectname #exportProject:hover:not(:disabled){background:#446d56}
.projectname .save-note{font-size:12px;text-align:center;margin-top:15px;color:#6c7b66}
.steps{margin-bottom:24px;top:68px}
.step:hover:not(:disabled),.step.active:hover:not(:disabled){background:transparent;box-shadow:none;color:#fff4d6;border-color:transparent;transform:none}
.step-number,.step-copy{transition:transform .22s ease,color .22s ease;transform-origin:left center}
.step:hover:not(:disabled) .step-number,.step:hover:not(:disabled) .step-copy{transform:scale(1.055)}
.step:hover:not(:disabled) .step-number{color:#ead5a6}
.workspace-core .panel{padding:30px;min-width:0}
.workspace-core .panel-head{flex-wrap:wrap}
.workspace-core .setup-grid{grid-template-columns:1fr 1fr;gap:24px}
.version-label{white-space:nowrap}
.version-label select{min-width:0}
.script-toolbar{flex-wrap:wrap}
.plan-heading{grid-template-columns:1fr 1.4fr;gap:23px}
.plan-title{font-size:27px}
.sequence-composition{position:relative;isolation:isolate;margin:30px 0 35px;padding:25px 27px 18px;border-radius:6px 26px 6px 26px;background:radial-gradient(ellipse at 70% 100%,#8d796125,transparent 65%),linear-gradient(125deg,#142621,#162526 70%,#1d2926);color:#e8e5d5;overflow:hidden;box-shadow:0 18px 32px -22px #0d211b80}
.sequence-composition::before{content:"";position:absolute;width:380px;height:180px;right:-40px;top:-100px;border:1px solid #d8c79e19;border-radius:50%;transform:rotate(-16deg);pointer-events:none;z-index:-1}
.sequence-head{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:22px}
.sequence-label{display:flex;align-items:center;gap:13px}
.sequence-label small{font:9px ui-monospace,monospace;letter-spacing:.2em;color:#ab9674}
.sequence-label strong{font:20px "Songti SC",SimSun,serif;letter-spacing:.08em;font-weight:400;color:#efe7d2}
.sequence-total{font:11px ui-monospace,monospace;color:#aebbad;white-space:nowrap}
.sequence-ruler{position:relative;height:26px;border-top:1px solid #c9c8a631;margin:0}
.sequence-ruler span{position:absolute;top:7px;transform:translateX(-50%);font:10px ui-monospace,monospace;color:#9cac9d;white-space:nowrap}
.sequence-ruler span:first-child{transform:none}.sequence-ruler span:last-child{transform:translateX(-100%)}
.sequence-ruler span::before{content:"";position:absolute;height:5px;width:1px;background:#b7ba9657;top:-8px;left:50%}
.sequence-ruler span:first-child::before{left:0}.sequence-ruler span:last-child::before{left:auto;right:0}
.sequence-composition .timeline{gap:0;height:100px;margin:5px 0 10px;border-radius:0;overflow:visible;align-items:stretch;padding:0}
.sequence-composition .timeline::before{inset:18px 0 26px;background:linear-gradient(90deg,#97b88528,#c5a96430,#80aca92a);filter:blur(14px)}
.panel .sequence-composition .timeline button{--tone:#9aba94;display:flex;align-items:center;justify-content:flex-end;gap:3px;position:relative;padding:0 0 2px;min-width:0;height:100px;overflow:visible;border:0;border-radius:0;background:transparent;box-shadow:none;color:#e6e9d7;transform:none;transition:color .2s ease}
.panel .sequence-composition .timeline button.amber{--tone:#d2b77a}.panel .sequence-composition .timeline button.slate{--tone:#8fbab8}.panel .sequence-composition .timeline button.rose{--tone:#c5a99a}
.panel .sequence-composition .timeline button:hover:not(:disabled){background:transparent;transform:none;filter:none;color:#fff4cc}
.sequence-composition .sequence-light{position:absolute;inset:10px 1px 30px;display:block;max-width:none;border-radius:2px 9px 2px 9px;background:linear-gradient(100deg,#ffffff00,var(--tone) 60%,#ffffff20),linear-gradient(0deg,#0003,#ffffff09);opacity:.56;box-shadow:inset 0 1px 0 #ffffff42,inset 0 -1px 0 #0007;overflow:hidden;transition:opacity .25s ease,transform .25s ease,box-shadow .25s ease}
.sequence-composition .sequence-light::before{content:"";position:absolute;inset:16% -30% 18%;border-top:1px solid #fff5;border-bottom:1px solid #fff2;border-radius:50%;transform:rotate(-15deg)}
.sequence-composition .sequence-light::after{content:"";position:absolute;inset:0;background:repeating-linear-gradient(90deg,transparent 0 7px,#ffffff05 7px 8px)}
.panel .sequence-composition .timeline button:hover .sequence-light,.panel .sequence-composition .timeline button:focus-visible .sequence-light{opacity:.95;transform:translateY(-5px);box-shadow:0 8px 16px -8px var(--tone),inset 0 1px 0 #fff7}
.sequence-composition .sequence-id{font:10px ui-monospace,monospace;letter-spacing:0;max-width:100%;overflow:hidden;white-space:nowrap}
.sequence-composition .sequence-duration{font:9px ui-monospace,monospace;opacity:.55;max-width:100%;overflow:hidden;white-space:nowrap}
.sequence-composition .sequence-short .sequence-id,.sequence-composition .sequence-short .sequence-duration{visibility:hidden}
.sequence-preview{font-size:12px;line-height:1.8;color:#c2c9b5;min-height:22px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;border-top:1px solid #ffffff0c;padding-top:13px}
@media(max-width:1240px){.studio{padding-left:22px;padding-right:22px}.workspace-layout{grid-template-columns:126px minmax(0,1fr) 205px;gap:17px}.workspace-title h2{font-size:29px}.workspace-title svg{width:115px}.project-sidebar{padding:22px 16px}.projectname :is(input,textarea){font-size:20px}.projectname .quiet,.projectname .filelabel{font-size:16px}.workspace-core .panel{padding:25px}.workspace-core .setup-grid{grid-template-columns:1fr}.plan-heading{grid-template-columns:1fr}.plan-intro{padding-left:0;border:0}.plan-title{font-size:26px}.script-toolbar{align-items:flex-start;flex-direction:column}}
@media(max-width:1000px){.workspace-layout{grid-template-columns:110px minmax(0,1fr) 190px;gap:14px}.workspace-title h2{font-size:25px}.workspace-title svg{width:95px}.project-sidebar{padding:19px 13px}.projectname :is(input,textarea){font-size:18px}.projectname .quiet,.projectname .filelabel{font-size:15px}.workspace-core .panel-head h2{font-size:23px}.sequence-composition{padding:22px 18px 17px}.sequence-head{align-items:flex-start;flex-wrap:wrap}}
@media(max-width:760px){.studio{padding:89px 16px 45px}.workspace-layout{grid-template-columns:1fr 1.4fr;gap:18px 15px}.workspace-title{position:static;grid-column:1;grid-row:1;padding:15px 0 0}.workspace-title h2{font-size:27px}.studio-kicker{font-size:8px;margin-bottom:14px}.workspace-title svg{width:100px;margin-top:14px}.project-sidebar{position:static;grid-column:2;grid-row:1;padding:18px 15px}.workspace-core{grid-column:1/-1;grid-row:2}.projectname label{font-size:14px}.projectname :is(input,textarea){font-size:18px;padding:6px 0}.projectname .row{margin-top:14px;gap:4px}.projectname .quiet,.projectname .filelabel{font-size:15px;padding:6px 1px}.projectname #exportProject{padding:8px}.projectname .save-note{margin-top:9px;font-size:10px}.steps{top:64px;margin-bottom:14px}.workspace-core .panel{padding:23px 18px}.workspace-core .setup-grid{grid-template-columns:1fr}.sequence-composition{padding:21px 15px 15px;border-radius:4px 20px 4px 20px}.sequence-label{gap:10px}.sequence-label strong{font-size:18px}.sequence-head{gap:10px;margin-bottom:18px}.sequence-total{font-size:10px}.sequence-composition .sequence-id{font-size:8px}.sequence-composition .sequence-duration{font-size:7px}.sequence-preview{font-size:11px}.sequence-composition .timeline{height:90px}.panel .sequence-composition .timeline button{height:90px}.sequence-light{bottom:28px}.version-label select{max-width:245px}.creation-progress{grid-template-columns:55px 1fr;gap:12px;padding:17px}.projector{transform:scale(.65)}.creation-meta{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){.step-number,.step-copy,.sequence-light{transition:none}.step:hover:not(:disabled) .step-number,.step:hover:not(:disabled) .step-copy{transform:none}.panel .sequence-composition .timeline button:hover .sequence-light{transform:none}}

/* Notifications and request progress never occupy document flow. */
.feedback-layer{position:fixed;z-index:24;pointer-events:none;left:20px;top:186px;width:calc(100% - 40px)}
.feedback-layer>.statusbar,.feedback-layer>.creation-progress{pointer-events:auto;box-shadow:0 12px 35px #0003;margin:0}
.feedback-layer>.statusbar{animation:notice-appear .18s ease-out}
.feedback-layer .status-inner{align-items:center;padding:13px 18px}
.feedback-layer .status-inner>div:first-child{flex:1;min-width:0}
.feedback-layer .status-inner>.row{flex-shrink:0}
.feedback-layer .status{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;font-size:14px;line-height:1.7}
.feedback-layer .creation-progress{background:#edf0e7;grid-template-columns:100px minmax(0,1fr);padding:24px;max-height:calc(100svh - 190px);overflow:auto}
.creation-task{font-size:12px;color:#6b7764;line-height:1.7;margin:9px 0 3px}
.feedback-layer .creation-head{flex-wrap:wrap;gap:9px}.feedback-layer .creation-head h3{flex:1}
.feedback-layer #cancelCreation{font-size:12px;padding:5px 10px;white-space:nowrap}
@keyframes notice-appear{from{opacity:0}to{opacity:1}}
@media(max-width:760px){.feedback-layer .creation-progress{grid-template-columns:1fr;padding:21px 18px;max-height:calc(100svh - 170px)}.feedback-layer .projector{display:none}.feedback-layer .creation-title{font-size:20px}.feedback-layer .status-inner{padding:12px 15px;gap:8px}.feedback-layer .status{font-size:13px}.feedback-layer .status-inner>.row{margin-left:auto}.creation-task{font-size:11px}}
@media(prefers-reduced-motion:reduce){.feedback-layer>.statusbar{animation:none}}

/* V0.3.9 — an open work surface, cut intervals and centered waiting. */
.workspace-core>.panel{background:transparent;border-color:transparent;box-shadow:none;border-radius:0;color:#edece4}
.workspace-core>.panel>.panel-head h2{color:#eeeade}
.workspace-core>.panel>.panel-head .badge{background:#ffffff08;color:#d6d5bf;border-color:#ffffff20}
.workspace-core>.panel>.asset-head,.brief>label,.brief-footer>label{color:#dfdfd0}
.workspace-core>.panel>.footer-actions{border-color:#ffffff1c}
.workspace-core>.panel>.footer-actions>.hint,#scriptStatus{color:#afb9ab}
.brief-footer>.optional>summary,#candidateDetails>summary{color:#bfc8b8}
#candidateDetails>#contextNote{color:#b0bba9}
.script-toolbar>.version-label{color:#d4dccb}
.plan-title{color:#ebe6d7}.plan-intro{color:#c5cebe;border-left-color:#ffffff24}
.plan-intro .direction-mood{color:#a5b39c}.version-change summary{color:#d4bf92}
.version-change p{color:#c8d0be}
.sequence-composition{padding:10px 0 0;margin:28px 0 30px;background:transparent;border:0;border-radius:0;box-shadow:none;color:#e8e5d5;overflow:visible}
.sequence-composition::before,.sequence-composition .timeline::before{display:none}
.sequence-head{margin-bottom:17px}.sequence-label small{color:#a89370}.sequence-label strong{color:#e8e1cc}
.sequence-ruler{border-top:0;height:22px}.sequence-ruler span{color:#99a68e}
.sequence-ruler span::before{background:#ffffff2a}
.sequence-composition .timeline{height:72px;margin:3px 0 0;align-items:stretch}
.panel .sequence-composition .timeline button{height:72px;color:#c5cfb9;gap:0;padding-bottom:0}
.sequence-composition .sequence-light{inset:8px 1.5px 34px;border-radius:2px;background:var(--tone);opacity:.7;box-shadow:none}
.sequence-composition .sequence-light::before,.sequence-composition .sequence-light::after{display:none}
.panel .sequence-composition .timeline button:hover .sequence-light,.panel .sequence-composition .timeline button:focus-visible .sequence-light{opacity:1;transform:none;box-shadow:0 3px 18px -9px var(--tone)}
.sequence-composition .sequence-id{font-size:10px}.sequence-composition .sequence-duration{font-size:9px;opacity:.65}
.sequence-preview{border:0;padding-top:12px;color:#9ca98f;font-size:12px}
.feedback-layer>.statusbar{width:100%;left:auto;right:auto}
.feedback-layer .creation-progress{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);width:min(720px,calc(100vw - 48px));max-height:calc(100dvh - 32px);margin:0;z-index:25;overflow:auto;background:#edf0e7;color:#344c38;box-shadow:0 18px 80px #0008;border-color:#b8bea9}
@media(max-width:760px){.feedback-layer .creation-progress{width:calc(100vw - 32px);padding:23px 20px;max-height:calc(100dvh - 32px)}.sequence-composition{padding:8px 0 0}.sequence-composition .sequence-id{font-size:8px}.sequence-composition .sequence-duration{font-size:7px}.sequence-preview{font-size:11px}.sequence-label strong{font-size:18px}}
.workspace-core>.panel .card,.workspace-core>.panel .shot-card,.workspace-core>.panel .feedback-box,.workspace-core>.panel .dropzone,.workspace-core>.panel .tablewrap,.workspace-core>.panel #workerPanel{color:var(--ink)}
#assetProgress{color:#afb9ab}.brief-footer>.optional label{color:#dfdfd0}

/* V0.3.10 — visible material controls and a fixed, open project rail. */
html{overflow-anchor:none}
.project-sidebar{position:fixed;top:50%;transform:translateY(-50%);width:242px;z-index:12;padding:0 12px;background:transparent;border:0;border-radius:0;box-shadow:none;color:#e7e3d8}
.projectname label{font-size:12px;letter-spacing:.08em;color:#a8afa5}
.projectname :is(input,textarea){font-size:24px;color:#eee7d6;border-bottom-color:#ffffff24;padding:9px 0 15px}
.projectname .row{grid-template-columns:1fr;gap:4px;margin-top:20px}
.projectname .quiet,.projectname .filelabel,.projectname #exportProject{width:100%;display:flex;justify-content:flex-start;align-items:center;gap:15px;font-size:16px;padding:10px 4px;background:transparent;border:0;color:#c4ccbb;border-radius:0;letter-spacing:.03em;transform:none}
.projectname #newProject::before{content:'＋';font-size:23px;font-weight:300;color:#ac9670}
.projectname :is(.filelabel,#openCloudProject)::before{content:'↗';font-size:23px;font-weight:300;color:#ac9670}
.projectname #exportProject::before{content:'↓';font-size:23px;font-weight:300;color:#d2bb8e}
.projectname #exportProject{color:#e0ceac}
.projectname .quiet:hover:not(:disabled),.projectname .filelabel:hover,.projectname #exportProject:hover:not(:disabled){background:transparent;color:#fff0cf;transform:none}
.projectname .save-note{text-align:left;font-size:11px;margin-top:21px;color:#909c8c;min-height:38px}
.steps::after{left:var(--indicator-left,0px);top:var(--indicator-top,90px);bottom:auto;width:var(--indicator-width,0px);height:2px;background:#d5bf91;border-radius:2px;transition:left .32s ease,width .22s ease,top .22s ease}
.dropzone{cursor:pointer;transition:background .2s,border-color .2s}
.dropzone:hover,.dropzone:focus-visible{border-color:#af9866;background:#e2e8d6}
.dropzone:focus-visible{outline:2px solid var(--gold);outline-offset:4px}
#intent::placeholder{color:#a9b2a1;opacity:.5}
.brief-footer{grid-template-columns:130px minmax(0,1fr);align-items:start}
.duration-field,.atmosphere-options{font-size:12px;color:#dfdfd0;min-width:0}
.duration-field input{outline:none;box-shadow:none}
.duration-field input:focus{outline:2px solid var(--gold);outline-offset:3px}
.atmosphere-options textarea{min-height:74px;font-size:13px;margin-top:12px}
.atmosphere-chips{display:flex;flex-wrap:wrap;gap:7px 6px;margin-top:10px}
.atmosphere-chips .atmosphere-chip{padding:5px 10px;border:1px solid #ffffff24;background:transparent;color:#b6c1ae;font-size:12px;font-weight:400;border-radius:20px;transform:none}
.atmosphere-chips .atmosphere-chip:hover:not(:disabled){border-color:#b5a27c;color:#f1e3c7;background:#ffffff08;transform:none}
.atmosphere-chips .atmosphere-chip[aria-pressed="true"]{color:#f0d9aa;background:#b4a07118;border-color:#baa17180}
.asset-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,255px),1fr));align-items:start}
.asset-grid .card{padding:17px}
.asset-heading{display:flex;align-items:flex-start;flex-wrap:wrap;gap:9px}
.asset-heading .asset-title{flex:1 1 100%;max-width:100%;white-space:normal;overflow-wrap:anywhere;line-height:1.6;font-size:15px}
.asset-heading .asset-delete{margin-left:auto;padding:3px 0;border:0;border-radius:0;background:transparent;color:#987262;font-size:12px;font-weight:400;transform:none}
.asset-heading .asset-delete:hover:not(:disabled){color:#a94430;background:transparent;transform:none}
.asset-options{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px 12px;margin-top:14px;padding-top:12px}
.asset-options label{margin:0;font-size:11px;color:#657260}
.asset-options input,.asset-options select{margin-top:5px;padding:7px 8px;font-size:12px;min-width:0}
.asset-options .asset-note{grid-column:1/-1}
.asset-options textarea{min-height:68px;margin-top:5px}
.asset-grid .card>.row{margin-top:15px;gap:8px}
.asset-grid .card>.hint{margin-top:4px}
.asset-grid .card>details{margin-top:9px}
.progress-track[aria-valuenow]::after{width:var(--measured-progress,100%);animation:none;transform:none;background:#698263}
@media(max-width:1240px){.project-sidebar{width:205px;padding:0 8px}.projectname :is(input,textarea){font-size:21px}}
@media(max-width:1000px){.project-sidebar{width:190px}.projectname :is(input,textarea){font-size:20px}}
@media(max-width:760px){.workspace-layout{grid-template-columns:minmax(0,1fr) 96px;gap:18px 12px}.workspace-title{grid-column:1;grid-row:1}.workspace-core{grid-column:1;grid-row:2}.project-sidebar{position:fixed;top:50%;width:96px;padding:0;transform:translateY(-50%)}.projectname label{font-size:10px;letter-spacing:0}.projectname :is(input,textarea){font-size:16px;padding:8px 0}.projectname .row{grid-template-columns:1fr;margin-top:15px;gap:3px}.projectname .quiet,.projectname .filelabel,.projectname #exportProject{padding:8px 0;font-size:12px;gap:7px}.projectname .save-note{margin-top:16px;font-size:10px}.projectname #newProject::before,.projectname :is(.filelabel,#openCloudProject)::before,.projectname #exportProject::before{font-size:18px}.workspace-core .panel{padding:20px 10px}.workspace-core .panel-head h2{font-size:20px}.brief-footer{grid-template-columns:1fr}.dropzone{padding:24px 10px}.cards{grid-template-columns:minmax(0,1fr)}.footer-actions{flex-wrap:wrap}.version-label{max-width:100%;white-space:normal;flex-wrap:wrap}.version-label select{max-width:100%}.feedback-box .grid{grid-template-columns:1fr}.feedback-box{padding:14px}.shot-card{grid-template-columns:1fr;gap:13px;padding:15px}.plan-title{font-size:23px}.step strong{font-size:13px;letter-spacing:0}}
@media(prefers-reduced-motion:reduce){.steps::after{transition:none}}

/* Script source preview stays over the current script and never changes steps. */
.clip-preview{width:min(860px,calc(100vw - 48px));max-height:calc(100dvh - 40px);border:1px solid #acb4a0;border-radius:12px;padding:24px;background:#edf0e7;color:#334b38;box-shadow:0 24px 90px #0008;overflow:auto}
.clip-preview::backdrop{background:#090e11b5;backdrop-filter:blur(5px)}
.clip-head{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:18px}.clip-kicker{font:9px ui-monospace,monospace;color:#89977b;letter-spacing:.2em}.clip-head h3{font-size:18px;margin-top:5px;color:#344b3b}.clip-head .quiet{color:#62705e;white-space:nowrap;font-size:13px}
.clip-preview video{display:block;width:100%;max-height:calc(100dvh - 235px);background:#101619;border-radius:7px;min-height:150px}
.clip-footer{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:17px;font-size:12px;color:#6a7863}.clip-footer p{flex:1}.clip-footer span{font:11px ui-monospace,monospace;white-space:nowrap}.clip-footer .secondary{color:#456047;border-color:#b8c2ae;background:transparent}
.clip-actions{display:inline-flex}.clip-actions .filelabel{font-size:12px;padding:7px 10px}
@media(max-width:650px){.clip-preview{width:calc(100vw - 24px);padding:17px}.clip-head h3{font-size:15px}.clip-footer{gap:12px}.clip-footer p{flex-basis:100%}.clip-preview video{max-height:calc(100dvh - 280px)}}

/* V0.3.12 — centered steps, a quieter rail and a readable cutting list. */
.studio{--title-column:158px;--project-column:242px;--workspace-gap:25px}
.workspace-layout{grid-template-columns:var(--title-column) minmax(0,1fr) var(--project-column);gap:var(--workspace-gap)}
.steps{margin-left:calc(var(--title-column) + var(--workspace-gap));margin-right:calc(var(--project-column) + var(--workspace-gap));padding:6px 0 15px;margin-bottom:12px;min-height:0}
.steps .step{display:flex;flex-direction:row;align-items:center;justify-content:center;min-height:60px;padding:8px 6px;gap:14px}
.step-number{font-size:36px;min-width:42px}.step strong{font-size:16px;letter-spacing:.08em}
.steps::after{height:1.5px;border-radius:50%;background:linear-gradient(90deg,transparent,#d5bf91 22%,#e4d5b8 72%,transparent);box-shadow:0 1px 7px #c7b18424;transition:left .4s cubic-bezier(.22,.72,.14,1),width .22s ease,top .22s ease}
.workspace-core .tablewrap{background:#f5f6ef;border:1px solid #c3ccba;border-radius:10px;color:#26332f}
.workspace-core .tablewrap table{background:#f5f6ef;color:#26332f;min-width:760px;table-layout:fixed}
.workspace-core .tablewrap th:nth-child(1){width:13%}.workspace-core .tablewrap th:nth-child(2){width:15%}.workspace-core .tablewrap th:nth-child(3),.workspace-core .tablewrap th:nth-child(4){width:28%}.workspace-core .tablewrap th:nth-child(5){width:16%}
.workspace-core .tablewrap th{background:#dfe7d9;color:#334b3b;font-size:13px;font-weight:600;padding:15px 12px}
.workspace-core .tablewrap td{background:#f5f6ef;color:#26332f;border-bottom-color:#cbd4c2;padding:17px 12px;line-height:1.85;overflow-wrap:anywhere}
.workspace-core .tablewrap tbody tr:nth-child(even) td{background:#edf1e7}
.workspace-core .tablewrap td .hint{color:#52634d;line-height:1.8}
.workspace-core .tablewrap .shot-select{color:#405b42}
.workspace-core .tablewrap .clip-actions .filelabel{background:#e3eadd;border-color:#b4c1aa;color:#344f39}
.workspace-core .tablewrap .clip-actions .filelabel:hover{background:#d8e3d0}
@media(max-width:1240px){.studio{--title-column:126px;--project-column:205px;--workspace-gap:17px}.steps .step{gap:10px}.step-number{font-size:32px;min-width:38px}.step strong{font-size:15px}}
@media(max-width:1000px){.studio{--title-column:110px;--project-column:190px;--workspace-gap:14px}.steps .step{gap:8px;padding-left:4px;padding-right:4px}.step-number{font-size:29px;min-width:34px}.step strong{font-size:14px;letter-spacing:0}}
@media(max-width:760px){.studio{--title-column:0px;--project-column:96px;--workspace-gap:12px}.workspace-layout{grid-template-columns:minmax(0,1fr) var(--project-column);row-gap:18px}.steps{margin-left:0;margin-right:0;padding:4px 0 14px;margin-bottom:9px}.steps .step{min-height:52px;padding:5px 3px;gap:5px}.step-number{font-size:25px;min-width:30px}.step strong{font-size:13px}.workspace-core .tablewrap td{font-size:14px}}
@media(prefers-reduced-motion:reduce){.steps::after{transition:none}}

/* V0.3.17: balanced film rows; the entire gate responds to hover. */
.workspace-core .film-composition{padding:8px 0 0;margin:27px 0 32px;overflow:visible}
.film-composition .sequence-head{margin-bottom:24px}
.film-composition .sequence-label small{font-size:10px;letter-spacing:.14em}
.film-strip{position:relative;display:flex;flex-direction:column;gap:29px;isolation:isolate;padding:5px 4px 14px}
.film-row{display:flex;gap:8px;align-items:flex-start}
.workspace-core .film-composition .film-shot{display:flex;flex-direction:column;align-items:stretch;flex:1 1 0;min-width:0;position:relative;padding:0;margin:0;border:0;border-radius:0;background:transparent;color:#adb8a5;box-shadow:none;transform:translateX(0);font-weight:400;transition:transform .38s cubic-bezier(.22,1,.36,1),color .28s ease}
.workspace-core .film-composition .film-shot:hover:not(:disabled){background:transparent;box-shadow:none}
.workspace-core .film-composition .film-shot.is-hovered{color:#f1e4c9;z-index:2;transform:translateX(0)}
.workspace-core .film-composition .film-shot.is-neighbor-left{transform:translateX(calc(-1 * var(--film-push,3px)))}
.workspace-core .film-composition .film-shot.is-neighbor-right{transform:translateX(var(--film-push,3px))}
.film-slot{position:relative;display:block;width:100%;aspect-ratio:1.7;height:auto;overflow:hidden;contain:paint;isolation:isolate;clip-path:inset(0 round 2px);background:#202922;border-radius:2px;transform:scale(1);transform-origin:center;transition:transform .38s cubic-bezier(.22,1,.36,1)}
.film-slot::before,.film-slot::after{content:"";position:absolute;left:0;right:0;height:var(--film-perf,7px);z-index:3;pointer-events:none;background-color:#171e1b;background-image:radial-gradient(ellipse 18% 23% at 50% 50%,#b2b99b70 90%,transparent 100%);background-size:calc(var(--film-perf,7px) * 1.7) var(--film-perf,7px)}
.film-slot::before{top:0}.film-slot::after{bottom:0}
.film-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:saturate(.58) brightness(.78);transform:none;transition:filter .28s ease}
.film-shot.is-hovered .film-slot{transform:scale(1.045)}
.film-shot.is-hovered .film-image{filter:saturate(.85) brightness(1.06)}
.film-empty{display:grid;place-items:center;position:absolute;inset:0;color:#a4b599;background:radial-gradient(ellipse at 60% 35%,#61705125,transparent 70%),#202922;font:clamp(9px,1vw,13px) ui-monospace,monospace}
.film-label{display:flex;flex-direction:column;gap:2px;align-items:center;margin-top:10px;font:11px/1.5 ui-monospace,monospace;color:inherit;white-space:nowrap}
.film-label small{font:inherit;color:#a4b09b;transition:color .28s ease}.film-shot.is-hovered .film-label small{color:#d7cbae}
.film-indicator{position:absolute;left:0;top:0;pointer-events:none;height:1px;width:var(--film-width,0px);transform:translate(var(--film-x,0px),var(--film-y,0px));background:linear-gradient(90deg,transparent,#b9a47b 22%,#e1cfa8 50%,#b9a47b 78%,transparent);border-radius:50%;box-shadow:0 2px 9px #cdb48418;transition:transform .38s cubic-bezier(.22,1,.36,1),width .38s cubic-bezier(.22,1,.36,1)}
.film-legend{font-size:11px;color:#9faa93;margin-top:16px}
@media(max-width:760px){.film-composition .sequence-head{gap:10px;flex-wrap:wrap}.film-composition .sequence-total{font-size:11px}.film-label{font-size:10px}.film-strip{gap:26px}.film-row{gap:8px}}
@media(prefers-reduced-motion:reduce){.film-shot,.film-slot,.film-image,.film-indicator,.film-label small{transition:none!important}}
.clip-actions{height:36px;vertical-align:middle}
.clip-actions>button,.clip-actions>.filelabel{display:inline-flex;align-items:center;justify-content:center;height:36px;font-size:12px;line-height:20px;padding:7px 10px}
.script-utilities{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:5px 0 18px}
.workspace-core .script-utilities #openInsert{background:transparent;border-color:#b9ac8052;color:#dfc99e;white-space:nowrap}
.insert-panel{padding:24px;margin:22px 0 32px;border-radius:10px;background:#f0f2e9;color:#263a30;color-scheme:light}
.insert-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:18px}
.insert-panel .hint{color:#5b6c5c}.insert-heading h3{font-size:19px;color:#283d31}
.insert-assets{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,235px),1fr));gap:10px;margin-bottom:14px}
.workspace-core .insert-panel .insert-asset{display:flex;align-items:center;gap:12px;min-width:0;padding:12px;background:#fcfcf6;color:#293d32;border:1px solid #c3ccba;border-radius:8px;transform:none;text-align:left;font-weight:400}
.workspace-core .insert-panel .insert-asset:hover{background:#e8eedf;transform:none}.workspace-core .insert-panel .insert-asset[aria-pressed="true"]{background:#e4eddc;border-color:#708866;box-shadow:inset 0 0 0 1px #708866}
.insert-asset-picture{display:grid;place-items:center;width:76px;height:53px;flex:none;background:#dce4d4;color:#526847;overflow:hidden;border-radius:3px}.insert-asset-picture img{width:100%;height:100%;object-fit:cover}
.insert-asset-copy{display:flex;flex-direction:column;gap:3px;min-width:0}.insert-asset-copy strong{font-size:13px;overflow-wrap:anywhere}.insert-asset-copy small{font-size:11px;color:#586e51}.insert-asset-description{font-size:11px;color:#586e51;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.insert-import{margin-bottom:10px}.insert-settings{margin-top:18px;gap:16px}.insert-settings label{min-width:0;font-size:12px}.insert-settings select,.insert-settings input,.insert-settings textarea{width:100%;max-width:100%;min-width:0}.insert-settings textarea{min-height:77px}
#insertAdjustBox{margin-top:20px}#insertAdjustBox strong{font-size:13px}.insert-adjust{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:10px;max-height:240px;overflow:auto}
.insert-adjust-choice{display:flex;align-items:flex-start;gap:8px;padding:9px 10px;background:#fcfcf6;border-radius:5px;font-size:12px;cursor:pointer;min-width:0}.insert-adjust-choice input{width:15px;height:15px;flex:none;margin:3px 0 0;accent-color:#45633d}.insert-adjust-choice span{min-width:0;overflow-wrap:anywhere}
.insert-budget{min-height:48px;padding:13px 0;color:#365133;font-size:12px}.insert-budget[data-issue="true"]{color:#805e33}
.per-shot-details{margin-top:14px}.per-shot-details>summary{font-size:13px;font-weight:500;color:#385136}.revision-issue{min-height:25px;color:#875334;font-size:12px;margin:8px 0}
@media(max-width:760px){.script-utilities{align-items:flex-start;flex-direction:column}.insert-panel{padding:16px}.insert-heading{gap:8px}.insert-heading h3{font-size:17px}.insert-settings,.insert-adjust{grid-template-columns:minmax(0,1fr)}.insert-assets{grid-template-columns:minmax(0,1fr)}.insert-asset-picture{width:54px;height:44px}.insert-import .filelabel{font-size:11px;padding:7px 9px}}
@media(prefers-reduced-motion:reduce){.film-image,.film-indicator{transition:none}}

/* Three fixed-size film-making scenes: capture, storyboarding, projection. */
.progress-cinema{width:100px;height:82px;position:relative;justify-self:center;color:#8c7955;pointer-events:none}
.progress-cinema .cinema-scene{position:absolute;inset:0;display:none}
.progress-cinema svg{display:block;width:100%;height:100%}
.creation-progress[data-motion="capture"] .cinema-capture,.creation-progress[data-motion="storyboard"] .cinema-storyboard,.creation-progress[data-motion="projection"] .cinema-projection{display:block}
.progress-cinema .projector{display:flex;width:100%;height:82px;transform:none}
.progress-cinema .film-reel{width:47px;height:47px;color:inherit}
.progress-cinema .capture-aperture{transform-origin:44px 43px;animation:capture-focus 4.8s ease-in-out infinite}
.progress-cinema .capture-corners{animation:capture-breathe 3.2s ease-in-out infinite}
.progress-cinema .capture-light{animation:capture-breathe 3.2s ease-in-out infinite}
.progress-cinema .story-frame{animation:story-arrange 3.6s ease-in-out infinite}
.progress-cinema .story-second{animation-delay:.3s}.progress-cinema .story-third{animation-delay:.6s}
.progress-cinema .story-path{opacity:.45}
.progress-cinema .story-cursor{animation:story-trace 3.6s ease-in-out infinite}
.creation-progress .progress-cinema *,.creation-progress .progress-cinema *::after{animation-play-state:paused}
.creation-progress[data-state="waiting"]:not([hidden]) .progress-cinema *,.creation-progress[data-state="waiting"]:not([hidden]) .progress-cinema *::after{animation-play-state:running}
@keyframes capture-focus{0%,20%,100%{transform:rotate(0deg)}55%,75%{transform:rotate(60deg)}}
@keyframes capture-breathe{0%,100%{opacity:.4}50%{opacity:1}}
@keyframes story-arrange{0%,100%{transform:translateY(0);opacity:.65}40%,60%{transform:translateY(-3px);opacity:1}}
@keyframes story-trace{0%,12%{transform:translate(0,0);opacity:0}25%{opacity:1}48%{transform:translate(36px,-5px)}80%{transform:translate(75px,-4px);opacity:1}94%,100%{transform:translate(75px,-4px);opacity:0}}
@media(max-width:760px){.feedback-layer .creation-progress{grid-template-columns:1fr;gap:10px}.feedback-layer .progress-cinema{width:90px;height:64px}.feedback-layer .progress-cinema .projector{display:flex;height:64px}.progress-cinema .projector::after{bottom:0}.feedback-layer .progress-cinema .film-reel{width:40px;height:40px}}
@media(prefers-reduced-motion:reduce){.progress-cinema *,.progress-cinema *::after{animation:none!important}.progress-cinema .story-cursor{opacity:0}}

/* V0.3.16: quiet film ribbon signature and matching project controls. */
.workspace-title{position:fixed;top:50%;transform:translateY(-50%);width:145px;padding:0;z-index:9;pointer-events:none}
.studio-signature{position:relative;width:100%;height:220px}
.workspace-title .signature-art{position:absolute;inset:0;width:100%;height:100%;margin:0;color:rgb(193 169 123 / .43)}
.workspace-title .studio-signature h2{position:absolute;left:22%;top:28%;font:400 30px/1.55 "Songti SC","Noto Serif CJK SC",SimSun,serif;letter-spacing:.065em;color:rgb(232 225 205 / .62);white-space:nowrap}
.workspace-title .studio-kicker{position:absolute;left:22%;bottom:13px;margin:0;color:rgb(183 170 143 / .48);font:6px/1.8 ui-monospace,monospace;letter-spacing:.22em}
.project-sidebar{width:208px;padding:0 10px;opacity:.84;transition:opacity .24s ease}
.project-sidebar:focus-within{opacity:1}
.projectname label{font-size:11px;letter-spacing:.06em}
.projectname :is(input,textarea){font-size:19px;padding:7px 0 11px;border-bottom-color:#ffffff18}
.projectname .row{margin-top:16px;gap:2px}
.projectname .quiet,.projectname .filelabel,.projectname #exportProject{font-size:14px;font-weight:400;padding:9px 3px;gap:12px;min-height:40px}
.projectname #newProject::before,.projectname :is(.filelabel,#openCloudProject)::before,.projectname #exportProject::before{font-size:19px;color:#ae9a76}
.projectname #exportProject{color:#c5b595}
.projectname .save-note{font-size:10px;margin-top:15px;min-height:34px}
@media(max-width:1240px){.workspace-title{width:116px}.studio-signature{height:184px}.workspace-title .studio-signature h2{font-size:24px}.workspace-title .studio-kicker{font-size:5.5px;bottom:10px}.project-sidebar{width:178px;padding:0 7px}.projectname :is(input,textarea){font-size:18px}.projectname .quiet,.projectname .filelabel,.projectname #exportProject{font-size:13px}}
@media(max-width:1000px){.workspace-title{width:100px}.studio-signature{height:164px}.workspace-title .studio-signature h2{font-size:21px}.project-sidebar{width:164px;padding:0 6px}.projectname :is(input,textarea){font-size:17px}}
@media(max-width:760px){.workspace-title{position:static;top:auto;transform:none;width:95px;padding:0}.studio-signature{height:120px}.workspace-title .studio-signature h2{font-size:19px;top:20%}.workspace-title .studio-kicker{font-size:5px;bottom:5px}.project-sidebar{width:88px;padding:0;opacity:.9}.projectname label{font-size:10px;letter-spacing:0}.projectname :is(input,textarea){font-size:14px;padding:7px 0 9px}.projectname .row{margin-top:12px;gap:2px}.projectname .quiet,.projectname .filelabel,.projectname #exportProject{font-size:11px;padding:9px 0;gap:6px}.projectname #newProject::before,.projectname :is(.filelabel,#openCloudProject)::before,.projectname #exportProject::before{font-size:16px}.projectname .save-note{font-size:9px;margin-top:12px}}
@media(prefers-reduced-motion:reduce){.project-sidebar{transition:none}}

/* V0.3.17 — the approved C opening, with compact, unframed typography. */
.landing{height:100svh;min-height:100svh;padding:0 24px;background:#101614}
.landing::before{display:none}.landing::after{background:linear-gradient(180deg,#07100e25,transparent 28%,#07100e12 72%,#07100e55);z-index:1}
.intro-background{position:absolute;inset:0;z-index:0;overflow:hidden;pointer-events:none}
.intro-background video,.intro-final{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;object-position:center}
.intro-final{opacity:0}.intro-still .intro-final{opacity:1}
.landing-content{z-index:4;animation:none;width:100%;max-width:760px;text-align:center;opacity:0;transform:translateY(8px);transition:opacity .8s ease,transform .9s cubic-bezier(.22,1,.36,1);pointer-events:none;text-shadow:0 3px 35px #0008}
.intro-ready .landing-content{opacity:1;transform:translateY(0);pointer-events:auto}
.landing-title{font:400 clamp(50px,5.6vw,84px)/1.18 "Songti SC","Noto Serif CJK SC",SimSun,serif;letter-spacing:.2em;padding-left:.2em;color:#eee9db}
.landing-title span{font:9px/1.5 ui-monospace,monospace;letter-spacing:.65em;margin-top:17px;color:#d5d5ca}
.landing-slogan{font:400 clamp(17px,1.7vw,24px)/1.65 "Songti SC",SimSun,serif;letter-spacing:.12em;margin:29px 0 0;color:#eee9db}.landing-slogan em{color:inherit}
.landing-actions{margin-top:35px}
.landing .start-button{display:inline-flex;align-items:center;justify-content:center;gap:21px;min-width:0;padding:12px 8px;border:0;border-radius:0;background:transparent;box-shadow:none;color:#ddccb0;font-size:13px;font-weight:400;letter-spacing:.14em}
.landing .start-button:hover:not(:disabled){background:transparent;transform:none;color:#fff0cf}.landing .start-button .arrow{font-size:18px;transition:transform .28s ease}.landing .start-button:hover .arrow{transform:translate(3px,-3px)}
.landing .scroll-cue{bottom:25px;color:#d1d0bf99;font-size:12px;opacity:0;pointer-events:none;transition:opacity .8s ease}.landing .scroll-cue::after{display:none}.intro-ready .scroll-cue{opacity:.65;pointer-events:auto}
.intro-hint{position:absolute;z-index:4;bottom:28px;left:50%;transform:translateX(-50%);color:#dfddd0a6;white-space:nowrap;font-size:10px;letter-spacing:.12em;pointer-events:none}
.intro-replay{position:absolute;z-index:4;right:30px;bottom:24px;border:0;background:transparent;padding:5px;color:#d6d4c5a0;font-size:10px;font-weight:400;letter-spacing:.08em}
.intro-replay:hover:not(:disabled){background:transparent;transform:none;color:#eee9db}
body[data-view="home"] .topbar{background:linear-gradient(#0d16134a,transparent);border:0;backdrop-filter:none}
body[data-view="home"] .topbar{transition:opacity .6s ease}
body[data-view="home"]:has(.landing:not(.intro-ready)) .topbar{opacity:0;pointer-events:none}
.studio-signature{height:268px}.workspace-title .studio-signature h2{line-height:1.8;top:29%}
@media(max-width:1240px){.studio-signature{height:226px}}
@media(max-width:1000px){.studio-signature{height:202px}}
@media(max-width:760px){.studio-signature{height:140px}.workspace-title .studio-signature h2{top:20%;line-height:1.7}.landing-title{font-size:54px}.landing-slogan{font-size:17px;letter-spacing:.07em}.landing-actions{margin-top:28px}.intro-replay{right:20px;bottom:22px}.intro-background video,.intro-final{object-position:38% center}}
@media(max-height:550px){.landing-title{font-size:50px}.landing-title span{margin-top:10px}.landing-slogan{margin-top:20px;font-size:17px}.landing-actions{margin-top:16px}.landing .scroll-cue{display:none}}
@media(prefers-reduced-motion:reduce){.landing-content,.landing .scroll-cue,.landing .start-button .arrow{transition:none}}

@font-face{font-family:StoryTripSerif;src:url('/media/storytrip-serif.woff') format('woff');font-display:swap}
.landing-title,.landing-slogan,.workspace-title .studio-signature h2{font-family:StoryTripSerif,"Songti SC","Noto Serif CJK SC",SimSun,serif}

/* V0.3.18: native continuous motion and one opening music cue. */
#introTail{opacity:0}.intro-holding #introTail{opacity:1}.intro-final{z-index:2}
.intro-sound{position:absolute;z-index:4;left:30px;bottom:24px;border:0;background:transparent;padding:8px;color:#d6d4c5b8;font-size:10px;font-weight:400;letter-spacing:.08em;min-height:32px}
.intro-sound:hover:not(:disabled){background:transparent;transform:none;color:#eee9db}
.intro-sound:focus-visible,.intro-replay:focus-visible{outline:1px solid #eee9db80;outline-offset:3px}
.workspace-core>.panel .shot-card{background:#ece5d8;border-color:#b9baaa}
.workspace-core>.panel .shot-body .caption{background:#e3dac5;color:#604d31}
@media(max-width:760px){.intro-sound{left:14px;bottom:18px}}

/* V0.3.19: option 02, scoped exclusively to the central work area. */
.workspace-core>.panel{
 --ink:#e4dbc5;--muted:#b0baaa;--line:transparent;--gold:#c4af84;--green:#bd9f6c;
 --surface:#1d2a24;--raised:#2a392d;color:#e4dbc5;color-scheme:dark;
 background:radial-gradient(ellipse at 94% 28%,#9679470c,transparent 56%);
}
.workspace-core>.panel .card,.workspace-core>.panel .shot-card{
 position:relative;border:0;border-radius:28px 8px;
 background:radial-gradient(ellipse at 5% 0,#73886b30,transparent 60%),linear-gradient(100deg,#26372d,#1a2822 70%);
 color:var(--ink);box-shadow:0 15px 35px #0002;
}
.workspace-core>.panel .card::before,.workspace-core>.panel .shot-card::before{
 content:'';position:absolute;left:3%;right:32%;top:0;height:1px;
 background:linear-gradient(90deg,transparent,#b3aa7855,transparent);pointer-events:none;
}
.workspace-core>.panel .card.selected{
 background:radial-gradient(ellipse at 5% 0,#85906650,transparent 68%),linear-gradient(100deg,#304135,#203126 70%);
 box-shadow:0 12px 38px #0002,0 0 30px #b39a5720;
}
.workspace-core>.panel button{
 border:0;background:linear-gradient(105deg,#c5aa7b,#9e8254);color:#1f3025;
 border-radius:25px;box-shadow:0 7px 24px #b19b6820;font-weight:500;
}
.workspace-core>.panel button:hover:not(:disabled){background:linear-gradient(105deg,#dcc298,#b39a6a);transform:none}
.workspace-core>.panel button.secondary,.workspace-core>.panel .filelabel{
 border:0;background:linear-gradient(110deg,#7c8d6833,#53655015);color:#cbd4bb;
 border-radius:20px;box-shadow:none;
}
.workspace-core>.panel button.secondary:hover:not(:disabled),.workspace-core>.panel .filelabel:hover{background:#70845833;color:#e8e5ce}
.workspace-core>.panel button.quiet{background:transparent;color:#c1c9b5;box-shadow:none}
.workspace-core>.panel button.quiet:hover:not(:disabled){background:#82947714;color:#efe5ca}
.workspace-core>.panel :is(button,.filelabel,input,textarea,select):focus-visible{outline:2px solid #c4af84;outline-offset:3px}
.workspace-core>.panel button:disabled{opacity:.42;box-shadow:none}
.workspace-core>.panel :is(input,textarea,select){
 border:0;background:#3a4c3b73;color:#e4dbc5;box-shadow:none;border-radius:10px;
}
.workspace-core>.panel :is(input,textarea)::placeholder{color:#a4af9a;opacity:.8}
.workspace-core>.panel #intent::placeholder{color:#a4af9a;opacity:.6}
.workspace-core>.panel .duration-field input:focus{outline:2px solid #c4af84;outline-offset:3px}
.workspace-core>.panel input[type="checkbox"]{accent-color:#bea673;box-shadow:none}
.workspace-core>.panel :is(.hint,summary,.empty){color:#b0baaa}
.workspace-core>.panel :is(.error,.revision-issue){color:#efb19a}
.workspace-core>.panel :is(label,.brief label,.asset-options label){color:#c2ccb7}
.workspace-core>.panel .badge{background:#8fa8781b;color:#c5d3b3;border:0;border-radius:20px}
.workspace-core>.panel .badge.ready{background:#9ea97c29;color:#d1dabb}
.workspace-core>.panel .dropzone{
 border:0;border-radius:42px;background:radial-gradient(ellipse at center,#5d725545,transparent 78%);
 color:#e4dbc5;box-shadow:none;
}
.workspace-core>.panel .dropzone:hover,.workspace-core>.panel .dropzone.dragging{
 background:radial-gradient(ellipse at center,#84936750,transparent 78%);
}
.workspace-core>.panel .drop-icon{background:transparent;border:0;color:#c4af84;width:46px;height:46px;font-size:32px}
.workspace-core>.panel .dropzone strong{color:#e4dbc5;font-family:"Songti SC",SimSun,serif;font-size:19px;font-weight:400}
.workspace-core>.panel .dropzone .filelabel{background:linear-gradient(105deg,#c5aa7b,#9e8254);color:#1f3025;box-shadow:0 7px 24px #b19b6820}
.workspace-core>.panel .dropzone .filelabel:hover{background:linear-gradient(105deg,#dcc298,#b39a6a)}
.workspace-core>.panel .atmosphere-chips .atmosphere-chip{border:0;background:#a8bc8e0d;color:#b6c5a8;border-radius:20px;box-shadow:none;font-weight:400}
.workspace-core>.panel .atmosphere-chips .atmosphere-chip:hover:not(:disabled){background:#a8bc8e24;color:#ece8cb}
.workspace-core>.panel .atmosphere-chips .atmosphere-chip[aria-pressed="true"]{background:#b3b997;color:#293d30}
.workspace-core>.panel .asset-media{background:radial-gradient(ellipse at center,#60724d35,transparent),#1c2a21;color:#c2ceaf;border-radius:16px 4px}
.workspace-core>.panel .asset-title{color:#e4dbc5;font-family:"Songti SC",SimSun,serif;font-weight:400}
.workspace-core>.panel .asset-options{border:0;padding-top:8px}
.workspace-core>.panel .asset-heading .asset-delete{background:transparent;box-shadow:none;border:0;color:#d1b9a1;border-radius:0}
.workspace-core>.panel .asset-heading .asset-delete:hover:not(:disabled){background:transparent;color:#f1baa0}
.workspace-core>.panel .pre{background:#11201999;color:#c3cdb6;border:0;border-radius:12px;line-height:1.9}
.workspace-core>.panel #workerPanel{background:linear-gradient(110deg,#2b3c2f,#1c2b23);border:0;border-radius:22px 8px;color:var(--ink)}
.workspace-core>.panel .direction-card h3{color:#e4dbc5}
.workspace-core>.panel .direction-card .story{color:#bdc7b4;line-height:1.9}
.workspace-core>.panel .direction-mood{color:#bec5a4;border:0}
.workspace-core>.panel .direction-mood span{border:0;background:#a1976d17;color:#ccc4a4}
.workspace-core>.panel .direction-empty{border:0;background:radial-gradient(ellipse at center,#53684722,transparent 78%);color:#b0baaa;border-radius:35px}
.workspace-core>.panel .direction-empty strong{color:#d9d8bd}
.workspace-core>.panel .tip-trigger{background:#a8b89016;border:0;color:#bfc8a8;box-shadow:none}
.workspace-core>.panel .tip-trigger:hover:not(:disabled){background:#a8b89028}
.workspace-core>.panel .suitability-tip{background:#364331;color:#e3ddc7;border:0;box-shadow:0 12px 38px #0005}
.workspace-core>.panel .suitability-tip p{color:#c6cfb6}
.workspace-core>.panel .suitability-tip strong{color:#e9dcc0}
.workspace-core>.panel .switch{border:0;background:transparent;gap:12px;padding:0}
.workspace-core>.panel .switch button{background:transparent;color:#bbc7ae;box-shadow:none;font-weight:400}
.workspace-core>.panel .switch button:hover:not(:disabled){color:#e9ddc2;background:#a6a87912}
.workspace-core>.panel .switch button.active{background:#b6a37221;color:#edddba;box-shadow:none}
.workspace-core>.panel .plan-title{color:#e4dbc5}
.workspace-core>.panel .plan-intro{border:0;color:#c3cbb6;padding-left:0;line-height:1.9}
.workspace-core>.panel .shot-position{color:#b0baaa}
.workspace-core>.panel .shot-position strong{color:#c4af84;font-weight:400}
.workspace-core>.panel .source-window strong{color:#c7d1b8}
.workspace-core>.panel .shot-body h3{color:#e4dbc5;font-size:15px;line-height:1.9;font-weight:400}
.workspace-core>.panel .shot-body .caption{background:#a58a5420;color:#dcc49a;border-radius:3px}
.workspace-core>.panel .shot-body details{color:#bac6ac;line-height:1.9}
.workspace-core>.panel .shot-select{color:#c3ccaf}
.workspace-core>.panel .clip-actions>button,.workspace-core>.panel .clip-actions>.filelabel{
 background:linear-gradient(110deg,#7c8d6833,#53655015);color:#cbd4bb;border:0;box-shadow:none;border-radius:20px;
}
.workspace-core>.panel .clip-actions>button:hover:not(:disabled),.workspace-core>.panel .clip-actions>.filelabel:hover{background:#70845833;color:#efe5ca}
.workspace-core>.panel .feedback-box{
 background:radial-gradient(ellipse at 10% 0,#667d5530,transparent 82%);border:0;border-radius:24px;color:var(--ink);
}
.workspace-core>.panel .feedback-box :is(textarea,select){background:#52644745;color:#e5dcc8}
.workspace-core>.panel :is(.multi-box,.edit-requirement){border:0;background:#7d906216;border-radius:16px;color:var(--ink)}
.workspace-core>.panel .per-shot-details>summary{color:#cbd4b9}
.workspace-core>.panel .edit-requirement legend{color:#d4c6a2}
.workspace-core>.panel .shot-choice{border:0;background:#71805e22;color:#b6c3a5;border-radius:20px}
.workspace-core>.panel .shot-choice:has(input:checked){background:#b3b997;color:#293d30}
.workspace-core>.panel .ending-box article{background:transparent;border:0;padding:10px 0}
.workspace-core>.panel .ending-box strong{color:#d8d4b7}
.workspace-core>.panel .ending-box p{color:#b0baaa}
.workspace-core>.panel .music-suggestion{background:transparent;border:0;padding:12px 0;color:#d8d4b7}
.workspace-core>.panel .music-suggestion p{color:#b0baaa}
.workspace-core>.panel .footer-actions{border:0}
.workspace-core>.panel .script-utilities #openInsert{border:0;background:#b6a37215;box-shadow:none;color:#ddc9a4}
.workspace-core>.panel .insert-panel{border:0;background:radial-gradient(ellipse at 5% 0,#667d5530,transparent 85%),#1b2922;color:var(--ink);border-radius:24px 8px;color-scheme:dark}
.workspace-core>.panel .insert-heading h3{color:#e4dbc5}
.workspace-core>.panel .insert-panel .hint{color:#b0baaa}
.workspace-core>.panel .insert-panel .insert-asset{border:0;border-radius:18px 6px;background:#53684a22;color:#d5d9c2;box-shadow:none}
.workspace-core>.panel .insert-panel .insert-asset:hover{background:#7a8b5933}
.workspace-core>.panel .insert-panel .insert-asset[aria-pressed="true"]{background:#7b906350;box-shadow:0 0 20px #a99b4820}
.workspace-core>.panel :is(.insert-asset-copy small,.insert-asset-description){color:#b4c2a5}
.workspace-core>.panel .insert-asset-picture{background:#40553642;color:#c2ceaf}
.workspace-core>.panel .insert-adjust-choice{background:#53684a22;color:#c3cfb3;border:0;border-radius:12px}
.workspace-core>.panel .insert-budget{color:#c8d2b7}
.workspace-core>.panel .insert-budget[data-issue="true"]{color:#e2bd8f}
/* Preserve the familiar film interaction and the pale reading surface of the list. */
.workspace-core>.panel .film-composition .film-shot{background:transparent;border:0;border-radius:0;color:#adb8a5;box-shadow:none;font-weight:400}
.workspace-core>.panel .film-composition .film-shot:hover:not(:disabled){background:transparent}
.workspace-core>.panel .film-composition .film-shot.is-hovered{color:#f1e4c9}
.workspace-core>.panel .tablewrap{border:0;border-radius:18px 6px;--ink:#26332f;--muted:#52634d;--gold:#80572c;color:#26332f;color-scheme:light}
.workspace-core>.panel .tablewrap .shot-select{color:#405b42}
.workspace-core>.panel .tablewrap .clip-actions>button,.workspace-core>.panel .tablewrap .clip-actions>.filelabel{background:#dfe7d8;color:#344f39;box-shadow:none;border:0}
.workspace-core>.panel .tablewrap .clip-actions>button:hover:not(:disabled),.workspace-core>.panel .tablewrap .clip-actions>.filelabel:hover{background:#d2dfc6}
/* Floating progress remains in the central area without affecting document layout. */
.workspace-core .feedback-layer .creation-progress{--ink:#e4dbc5;--muted:#b0baaa;--gold:#c4af84;background:radial-gradient(ellipse at 5% 0,#71866138,transparent 70%),#203026;color:#e4dbc5;border:0;border-radius:28px 8px;box-shadow:0 18px 80px #0008}
.workspace-core .creation-progress :is(.creation-title,.creation-copy,.creation-task,.creation-elapsed,.creation-estimate){color:#cbd4bb}
.workspace-core .creation-progress .creation-title{color:#e4dbc5}
.workspace-core .creation-progress .creation-phases{color:#aeba9f}
.workspace-core .creation-progress .creation-phases [data-state="active"]{color:#e5cb9b}
.workspace-core .creation-progress .creation-phases [data-state="done"]{color:#c0d3a9}
.workspace-core .creation-progress .progress-cinema{color:#ccb483}
.workspace-core .creation-progress .progress-track{background:#aab4962b}
.workspace-core .creation-progress .progress-track::after{background:linear-gradient(90deg,transparent,#beab75,#d5be8c)}
.workspace-core .creation-progress .quiet{background:#a0ad8020;color:#ded6bc;border:0;border-radius:20px}
.workspace-core .creation-progress[data-state="error"] .creation-title{color:#efb19a}
.workspace-core .feedback-layer>.statusbar{border:0;border-radius:16px 5px;background:#29382cf5;box-shadow:0 9px 38px #0003}
.workspace-core .feedback-layer .status-inner .status{color:#e0ddc8}
.workspace-core .feedback-layer .status-inner .status.error{color:#f0b39a}

.workspace-core>.panel .music-suggestion strong{color:#d8d4b7}

/* V0.3.20: original-footage reference posters, direction stage only. */
.workspace-core #stage2 #directionCards{grid-template-columns:repeat(3,minmax(0,1fr));gap:19px}
.workspace-core #stage2 .direction-poster{position:relative;isolation:isolate;min-height:565px;padding:23px 22px 20px;border:0;border-radius:24px 7px;background:#1b2b22;display:flex;flex-direction:column;box-shadow:0 15px 36px #0003;overflow:visible;min-width:0}
.workspace-core #stage2 .direction-poster.selected{border:0;background:#1b2b22;box-shadow:0 15px 36px #0004,0 0 38px #b4a06b20}
.workspace-core #stage2 .direction-poster.selected::after{content:'';position:absolute;left:20%;right:20%;bottom:0;height:1px;background:linear-gradient(90deg,transparent,#c1a36c,transparent)}
.workspace-core #stage2 .poster-backdrop{position:absolute;inset:0;border-radius:inherit;overflow:hidden;z-index:-1;background:radial-gradient(ellipse at 75% 0,#9da77f35,transparent 64%),linear-gradient(150deg,#354838,#14251c)}
.workspace-core #stage2 .poster-backdrop::after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,#0d1b1120,transparent 14%,#101e1966 32%,#101e19eb 64%,#101e19 93%)}
.workspace-core #stage2 .poster-image{display:block;width:100%;height:100%;object-fit:cover;object-position:center;filter:saturate(.58) brightness(.75);transform:scale(1.025);transition:transform .9s cubic-bezier(.22,1,.36,1),filter .6s}
.workspace-core #stage2 .poster-image[hidden]{display:none}
.workspace-core #stage2 .direction-poster:hover .poster-image{transform:scale(1.065);filter:saturate(.7) brightness(.9)}
.workspace-core #stage2 .poster-letter{position:absolute;top:28px;left:24px;font:italic 160px/1 Georgia,serif;color:#dfd3a71c;transform:rotate(-8deg);pointer-events:none}
.workspace-core #stage2 [data-cover=ready] .poster-letter{display:none}
.workspace-core #stage2 .poster-top{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin-bottom:85px}
.workspace-core #stage2 .poster-top .badge{font-size:10px;color:#e1d8bc;background:#17251a50;border:0;border-radius:14px;padding:5px 8px}
.workspace-core #stage2 .poster-body{display:flex;flex:1;flex-direction:column;min-width:0}
.workspace-core #stage2 .poster-body h3{font:29px/1.55 "Noto Serif CJK SC","Songti SC",SimSun,serif;font-weight:400;color:#eee7d5;text-shadow:0 3px 14px #0007;letter-spacing:.04em;margin-bottom:7px}
.workspace-core #stage2 .poster-body .story{flex:1;color:#c6cfbc;font-size:13px;line-height:1.95;margin-top:9px}
.workspace-core #stage2 .poster-body .direction-mood{display:flex;flex-wrap:wrap;gap:5px;margin-top:15px;padding:0;font-size:11px;line-height:1.8}
.workspace-core #stage2 .poster-body .direction-mood span{padding:2px 0;background:none;color:#d3c49d}
.workspace-core #stage2 .poster-body .suitability{position:relative;top:auto;right:auto;margin:16px 0 0;align-self:flex-start;z-index:3}
.workspace-core #stage2 .poster-body .tip-trigger{display:block;width:auto;height:auto;border:0;border-radius:0;padding:6px 0;background:none;box-shadow:none;font-size:11px;font-weight:400;color:#b7c5a6;margin:0;text-align:left}
.workspace-core #stage2 .poster-body .tip-trigger:hover:not(:disabled){color:#e7d8b2;background:none;transform:none}
.workspace-core #stage2 .poster-body .suitability-tip{left:0;right:auto;top:auto;bottom:100%;max-width:min(300px,calc(100vw - 110px));width:280px;font-size:12px;line-height:1.9;padding:17px 19px}
.workspace-core #stage2 .poster-body>button{display:flex;justify-content:space-between;align-items:center;border:0;border-radius:0;padding:10px 0;background:none;color:#e8d3a3;box-shadow:none;font-size:13px;margin-top:8px;text-align:left}
.workspace-core #stage2 .poster-body>button::after{content:'↗';font-size:17px;transition:transform .3s}
.workspace-core #stage2 .poster-body>button:hover:not(:disabled){background:none;color:#ffedc6;transform:none}
.workspace-core #stage2 .poster-body>button:hover::after{transform:translate(2px,-2px)}
.workspace-core #stage2 .poster-note{display:block;font-size:10px;color:#9fac94;line-height:1.7;min-height:17px;margin-top:5px}
@media(max-width:1450px){.workspace-core #stage2 .direction-poster{padding:21px 17px}.workspace-core #stage2 .poster-body h3{font-size:25px}.workspace-core #stage2 #directionCards{gap:13px}}
@media(max-width:1000px){.workspace-core #stage2 #directionCards{grid-template-columns:1fr}.workspace-core #stage2 .direction-poster{min-height:490px;padding:25px}.workspace-core #stage2 .poster-body h3{font-size:29px;max-width:500px}.workspace-core #stage2 .poster-top{margin-bottom:85px}}
@media(prefers-reduced-motion:reduce){.workspace-core #stage2 .poster-image,.workspace-core #stage2 .poster-body>button::after{transition:none}}

/* V0.3.21: approved script-supervisor sheet, editing list only. */
.workspace-core>.panel .slate-list{border:0;border-radius:22px 6px;background:linear-gradient(110deg,#ede6d4,#e4dfce);color:#29382e;box-shadow:0 15px 36px #0003;color-scheme:light;--gold:#687747}
.workspace-core>.panel .slate-list table{min-width:900px;background:transparent;color:#29382e;table-layout:fixed;border-collapse:collapse;font-size:14px}
.workspace-core>.panel .slate-list th:nth-child(1){width:15%}.workspace-core>.panel .slate-list th:nth-child(2){width:19%}.workspace-core>.panel .slate-list th:nth-child(3){width:30%}.workspace-core>.panel .slate-list th:nth-child(4){width:21%}.workspace-core>.panel .slate-list th:nth-child(5){width:15%}
.workspace-core>.panel .slate-list thead{background:#d8d4bf80}
.workspace-core>.panel .slate-list th{background:transparent;border:0;color:#53604c;font-size:13px;font-weight:400;padding:17px 16px}
.workspace-core>.panel .slate-list td,.workspace-core>.panel .slate-list tbody tr:nth-child(even) td{background:transparent;border:0;border-bottom:1px solid #6a755127;padding:24px 16px;color:#455541;font-size:14px;line-height:1.9;vertical-align:top;overflow-wrap:anywhere}
.workspace-core>.panel .slate-list tbody tr:last-child td{border-bottom:0}
.workspace-core>.panel .slate-list tbody tr:hover{background:#c4ccb534}
.workspace-core>.panel .slate-list tbody tr:has(input:checked){background:#c6cfa768}
.workspace-core>.panel .slate-list .slate-position{position:relative;padding-left:25px}
.workspace-core>.panel .slate-list .slate-position::before{content:'';position:absolute;left:0;top:26px;bottom:26px;width:2px;background:linear-gradient(180deg,transparent,#9d9e76,transparent)}
.workspace-core>.panel .slate-list .slate-kicker{display:block;font:10px/1.8 ui-monospace,monospace;letter-spacing:.14em;color:#6b7457}
.workspace-core>.panel .slate-list .slate-number{display:block;font:italic 36px/1.4 Georgia,serif;font-weight:400;color:#69724e;margin:2px 0 9px}
.workspace-core>.panel .slate-list .slate-time{font:12px/1.8 ui-monospace,monospace;color:#374a36;margin:0}
.workspace-core>.panel .slate-list .slate-duration{font:12px/1.8 ui-monospace,monospace;color:#647052;margin-top:4px}
.workspace-core>.panel .slate-list .shot-select{color:#4f6240;font-size:12px;display:flex;gap:6px;margin-top:15px}
.workspace-core>.panel .slate-list .shot-select input{width:14px;height:14px;accent-color:#64774e}
.workspace-core>.panel .slate-list .slate-asset{font:14px/1.8 ui-monospace,monospace;color:#40513b;font-weight:400}
.workspace-core>.panel .slate-list .slate-filename{font-size:12px;color:#59694d;margin:6px 0 9px}
.workspace-core>.panel .slate-list .clip-actions{margin-top:14px}
.workspace-core>.panel .slate-list .clip-actions>button,.workspace-core>.panel .slate-list .clip-actions>.filelabel{display:inline-flex;align-items:center;gap:7px;padding:6px 0;margin:0;background:none;color:#46623b;box-shadow:none;border:0;border-radius:0;font-size:12px;font-weight:400;white-space:normal;text-align:left}
.workspace-core>.panel .slate-list .clip-actions>button::after,.workspace-core>.panel .slate-list .clip-actions>.filelabel::after{content:'↗';font-size:14px}
.workspace-core>.panel .slate-list .clip-actions>button:hover:not(:disabled),.workspace-core>.panel .slate-list .clip-actions>.filelabel:hover{background:none;color:#253f20;transform:none}
.workspace-core>.panel .slate-list td p{margin:0;color:#455541;font-size:14px;line-height:1.9}
.workspace-core>.panel .slate-list .slate-visual>p{font:17px/1.85 "Noto Serif CJK SC","Songti SC",SimSun,serif;color:#293e2d}
.workspace-core>.panel .slate-list .slate-caption{border-left:2px solid #a79c7938;padding:2px 0 2px 10px;color:#706044;font-size:13px;line-height:1.85;margin-top:16px}
.workspace-core>.panel .slate-list .slate-caption small{display:block;font-size:11px;color:#786b51;letter-spacing:.12em;margin-bottom:3px}
.workspace-core>.panel .slate-list .slate-cut{font-size:12px;color:#5f6f4d;line-height:1.9;margin-top:14px}
.workspace-core>.panel .slate-list .slate-soundmark{display:block;color:#717b54;font-size:20px;margin-bottom:6px}

/* V0.3.24: approved open travel index; compact horizontal entries. */
.workspace-core #stage1 #assets{display:grid;grid-template-columns:minmax(0,1fr);gap:0;padding-top:2px}
.workspace-core #stage1 #assets>.material-index{position:relative;display:grid;grid-template-columns:32px 190px minmax(0,1fr);gap:0 22px;min-width:0;padding:14px 0;background:radial-gradient(ellipse at 25% 50%,#7282590c,transparent 85%);color:#d6dcc5;border:0;border-radius:0;box-shadow:none;align-items:start;color-scheme:dark;--ink:#d6dcc5;--muted:#aaba9a;--gold:#d9c393}
.workspace-core #stage1 #assets>.material-index::before{content:attr(data-index);white-space:nowrap;overflow-wrap:normal;word-break:normal;font-variant-numeric:tabular-nums;position:static;inset:auto;width:auto;height:auto;background:none;transform:none;pointer-events:none;grid-column:1;grid-row:1/6;align-self:start;margin-top:3px;font:italic 28px/1.3 Georgia,serif;color:#aaad8380}
.workspace-core #stage1 #assets>.material-index::after{content:'';position:absolute;left:5%;right:0;bottom:0;height:1px;background:linear-gradient(90deg,transparent,#96a87b35,transparent);pointer-events:none}
.workspace-core #stage1 #assets .asset-media{grid-column:2;grid-row:1/6;position:relative;align-self:center;justify-self:center;display:grid;place-items:center;width:190px;height:122px;aspect-ratio:auto;overflow:hidden;background:radial-gradient(ellipse at 50% 30%,#64806c3b,transparent),#283a2f;color:#c7cfb4;border-radius:10px 3px;margin:0;font:italic 32px Georgia,serif}
.workspace-core #stage1 #assets>.material-index:nth-child(4n+2) .asset-media{width:146px;height:126px}
.workspace-core #stage1 #assets>.material-index:nth-child(4n+3) .asset-media{height:96px}
.workspace-core #stage1 #assets>.material-index:nth-child(4n) .asset-media{width:104px;height:134px}
.workspace-core #stage1 #assets .asset-media img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;filter:saturate(.65) brightness(.88);transition:transform .7s cubic-bezier(.22,1,.36,1),filter .5s}
.workspace-core #stage1 #assets .asset-media:has(img)::after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,transparent 55%,#0a171568);pointer-events:none}
.workspace-core #stage1 #assets .material-index:hover .asset-media img{transform:scale(1.025);filter:saturate(.75) brightness(.95)}
.workspace-core #stage1 #assets .journal-photo-id,.workspace-core #stage1 #assets .journal-photo-time{position:absolute;bottom:8px;z-index:1;font:10px/1.7 ui-monospace,monospace;color:#f0e8d6;text-shadow:0 2px 8px #0008;max-width:calc(50% - 10px);overflow-wrap:anywhere}
.workspace-core #stage1 #assets .journal-photo-id{left:8px}.workspace-core #stage1 #assets .journal-photo-time{right:8px;text-align:right}
.workspace-core #stage1 #assets .asset-heading{grid-column:3;grid-row:1;display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:2px 12px;align-items:center;min-width:0}
.workspace-core #stage1 #assets .asset-name{display:contents}
.workspace-core #stage1 #assets .asset-name-label{grid-column:1;grid-row:1;color:#aaba9a;font-size:11px;line-height:1.8}
.workspace-core #stage1 #assets .asset-heading .asset-title{grid-column:1/-1;grid-row:2;font:18px/1.55 "Noto Serif CJK SC","Songti SC",SimSun,serif;font-weight:400;max-width:100%;min-width:0;margin:0;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;color:#e0dcc5}
.workspace-core #stage1 #assets .asset-heading .badge{grid-column:2;grid-row:1;justify-self:start;color:#aaba9a;background:none;border:0;border-radius:0;padding:2px 0;font-size:11px;font-weight:400}
.workspace-core #stage1 #assets .asset-heading .asset-delete{grid-column:3;grid-row:1;padding:2px 0;min-height:26px;margin:0;background:none;box-shadow:none;border:0;color:#cbb29b;border-radius:0;font-size:12px;font-weight:400}
.workspace-core #stage1 #assets .asset-heading .asset-delete:hover:not(:disabled){background:none;color:#f1bd99;transform:none}
.workspace-core #stage1 #assets .material-index>.hint{grid-column:3;grid-row:2;font-size:11px;line-height:1.7;color:#aaba9a;margin:2px 0 4px}
.workspace-core #stage1 #assets .asset-options{grid-column:3;grid-row:3;display:grid;grid-template-columns:minmax(65px,.55fr) minmax(110px,.9fr) minmax(0,1.8fr);gap:12px;border:0;padding:0;margin:3px 0 0;align-items:start}
.workspace-core #stage1 #assets .asset-options label{color:#aaba9a;font-size:11px;line-height:1.8;margin:0;min-width:0}
.workspace-core #stage1 #assets .asset-note{grid-column:auto}
.workspace-core #stage1 #assets .asset-options input,.workspace-core #stage1 #assets .asset-options select{margin-top:3px;padding:5px 0;border:0;border-bottom:1px solid #a6b18b38;border-radius:0;background:none;box-shadow:none;color:#d1cba7;font-size:13px;line-height:1.8;min-width:0;color-scheme:dark}
.workspace-core #stage1 #assets .asset-options input{font-family:ui-monospace,monospace;letter-spacing:.04em}
.workspace-core #stage1 #assets .asset-options textarea{display:block;background:#a7b58b0c;border:0;border-radius:4px;padding:6px 8px;font-size:13px;line-height:1.7;min-height:54px;height:54px;margin-top:3px;resize:vertical;color:#c5d0b3;box-shadow:none;width:100%;max-width:100%}
.workspace-core #stage1 #assets .asset-options textarea::placeholder{color:#a0ae94}
.workspace-core #stage1 #assets .asset-options :is(input,select,textarea):focus{outline:1px solid #bdc79b;outline-offset:3px}
.workspace-core #stage1 #assets .material-index>.row{grid-column:3;grid-row:4;gap:20px;margin-top:6px;align-items:center;max-width:calc(100% - 112px)}
.workspace-core #stage1 #assets .material-index>.row :is(button,.filelabel){font-size:12px;line-height:1.8;font-weight:400;color:#d9c393;background:none;border:0;border-radius:0;box-shadow:none;padding:4px 0;min-height:28px}
.workspace-core #stage1 #assets .material-index>.row :is(button,.filelabel):hover:not(:disabled){background:none;color:#ede3c3;transform:none}
.workspace-core #stage1 #assets .material-index>details{grid-column:3;grid-row:4;justify-self:end;margin-top:6px;font-size:12px;min-width:0;max-width:100%}
.workspace-core #stage1 #assets .material-index>details[open]{grid-row:5;justify-self:stretch}
.workspace-core #stage1 #assets .material-index>details summary{color:#a8ba96;font-size:12px;padding:4px 0;min-height:28px}
.workspace-core #stage1 #assets .material-index>details .pre{background:#a7b58b0c;color:#d6dcc5;font-size:12px;line-height:1.9;max-height:260px;border-radius:4px;overflow-wrap:anywhere}
.workspace-core #stage1 #assets .material-index>details button{background:#a7b58b12;color:#d9c393;box-shadow:none;border:0;font-size:12px}
.workspace-core #stage1 #assets .material-index>.error{grid-column:3;grid-row:6;color:#efb39a}
@media(max-width:1240px){.workspace-core #stage1 #assets>.material-index{grid-template-columns:26px 126px minmax(0,1fr);gap:0 16px}.workspace-core #stage1 #assets .asset-media,.workspace-core #stage1 #assets>.material-index:nth-child(4n+3) .asset-media{width:126px;height:92px}.workspace-core #stage1 #assets>.material-index:nth-child(4n+2) .asset-media{width:105px;height:106px}.workspace-core #stage1 #assets>.material-index:nth-child(4n) .asset-media{width:82px;height:112px}}
@media(max-width:1100px){.workspace-core #stage1 #assets .asset-options{grid-template-columns:minmax(0,.65fr) minmax(104px,1fr);gap:8px 14px}.workspace-core #stage1 #assets .asset-note{grid-column:1/-1}.workspace-core #stage1 #assets .material-index>.row{max-width:100%}.workspace-core #stage1 #assets .material-index>details{grid-row:5;justify-self:start}.workspace-core #stage1 #assets .asset-heading{gap:2px 7px}.workspace-core #stage1 #assets .asset-heading .asset-title{font-size:17px}}
@media(max-width:600px){.workspace-core #stage1 #assets>.material-index{grid-template-columns:22px minmax(0,1fr);gap:0 10px;padding:12px 0}.workspace-core #stage1 #assets>.material-index::before{font-size:22px;grid-row:1/8}.workspace-core #stage1 #assets .asset-media,.workspace-core #stage1 #assets>.material-index:nth-child(n) .asset-media{grid-column:2;grid-row:1;width:100%;max-width:190px;height:106px;justify-self:start;margin-bottom:9px}.workspace-core #stage1 #assets .asset-heading{grid-column:2;grid-row:2;grid-template-columns:minmax(0,1fr) auto}.workspace-core #stage1 #assets .asset-heading .asset-name-label{grid-column:1;grid-row:1}.workspace-core #stage1 #assets .asset-heading .asset-delete{grid-column:2;grid-row:1}.workspace-core #stage1 #assets .asset-heading .asset-title{grid-row:2}.workspace-core #stage1 #assets .asset-heading .badge{grid-column:1/-1;grid-row:3}.workspace-core #stage1 #assets .material-index>.hint{grid-column:2;grid-row:3}.workspace-core #stage1 #assets .asset-options{grid-column:2;grid-row:4;gap:8px 10px}.workspace-core #stage1 #assets .material-index>.row{grid-column:2;grid-row:5;gap:12px}.workspace-core #stage1 #assets .material-index>details,.workspace-core #stage1 #assets .material-index>details[open]{grid-column:2;grid-row:6}.workspace-core #stage1 #assets .material-index>.error{grid-column:2;grid-row:7}}
@media(prefers-reduced-motion:reduce){.workspace-core #stage1 #assets .asset-media img{transition:none}}

.workspace-core #stage1 #assets>.material-index:nth-child(4n) .journal-photo-id{bottom:25px;max-width:calc(100% - 16px)}
.workspace-core #stage1 #assets>.material-index:nth-child(4n) .journal-photo-time{max-width:calc(100% - 16px);white-space:nowrap}

/* V0.3.29: readable native menus and source navigation. */
.workspace-core select,.workspace-core select option,.workspace-core select optgroup {background:#18241e;color:#eee8d9;color-scheme:dark;}
.workspace-core select:disabled {background:#26322b;color:#aab5a9;}
.insert-asset[aria-pressed="true"] {outline:1px solid #dbc497;background:#314337;}
.clip-footer {flex-wrap:wrap;gap:10px;}
.clip-footer #clipMessage {flex:1 1 100%;}

.insert-duration-item{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:16px;color:#e1ddca;font-size:13px;}
.insert-duration-item input{max-width:120px;margin:0;}

.creation-handoff-hint{margin:.65rem 0;color:#e1d3b6;font-size:12px;line-height:1.6;letter-spacing:.03em}.creation-handoff-hint[data-phase="handoff"]{color:#edce93}

/* V0.3.33 — concise progress, direction words and contextual explanations. */
.creation-task,.creation-handoff-hint{display:none!important}
.workspace-core .creation-progress .creation-copy{margin:15px 0 17px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px;line-height:1.8}
.workspace-core .creation-progress .progress-track{height:34px;border-radius:7px;isolation:isolate}
.workspace-core .creation-progress .progress-track::after{z-index:-1;opacity:.25;height:100%}
.workspace-core .creation-progress .creation-phases{position:absolute;inset:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;font-size:11px}
.workspace-core .creation-progress .creation-phases span{display:flex;justify-content:center;align-items:center;padding:0 6px;color:#9eae95;border-left:1px solid #b9c69e22;white-space:nowrap}
.workspace-core .creation-progress .creation-phases span:first-child{border-left:0}
.workspace-core .creation-progress .creation-phases span::before{display:none}
.workspace-core .creation-progress .creation-phases [data-state="active"]{background:#c7b78224;color:#f1dfb4}
.workspace-core .creation-progress .creation-phases [data-state="done"]{color:#d4dfc2;background:#a5bb8810}
.workspace-core .creation-progress .creation-meta{justify-content:flex-end;gap:14px;margin-top:9px}
.workspace-core .creation-progress .creation-estimate{flex:initial;font-size:11px;text-align:right}
.workspace-core .creation-progress .creation-estimate:empty{display:none}
.workspace-core .creation-progress .creation-elapsed{font-size:11px}
.workspace-core #stage2 .poster-body .direction-keywords,.workspace-core #stage3 .direction-keywords{display:block;font-size:12px;line-height:1.8;letter-spacing:.06em;color:#d3c49d}
.workspace-core #stage2 .poster-body .tip-trigger{display:flex;align-items:center;justify-content:center;width:28px;height:28px;padding:0;border:1px solid #c3cead77;border-radius:50%;font:italic 18px/1 Georgia,serif;color:#d3dbbb;background:#b6c2950c}
.workspace-core #stage2 .poster-body .tip-trigger:hover:not(:disabled),.workspace-core #stage2 .poster-body .tip-trigger:focus-visible{background:#c5c69320;border-color:#dfd5ad;color:#fff0c9}
.workspace-core #stage2 .poster-body>button{justify-content:center;min-height:45px;padding:11px 17px;font-size:18px;letter-spacing:.05em;font-weight:500;background:#b7be9020;border:1px solid #c7c49a4a;border-radius:7px;margin-top:14px}
.workspace-core #stage2 .poster-body>button::after{display:none;content:none}
.workspace-core #stage2 .poster-body>button:hover:not(:disabled){background:#c6c68d32;border-color:#d9cc9b8a;color:#fff0cb}
.workspace-core .film-composition .sequence-total{font-size:14px;line-height:1.7}
.film-legend,.sequence-label small:empty{display:none}
#scriptStatus:empty{display:none}
.workspace-core #stage3 .shot-card{position:relative;overflow:visible}
.workspace-core #stage3 .shot-body{padding-right:42px}
.workspace-core #stage3 .shot-card .information-trigger{position:absolute;right:20px;top:22px;display:flex;align-items:center;justify-content:center;width:29px;height:29px;min-height:0;padding:0;border:1px solid #c3cead77;border-radius:50%;font:italic 18px/1 Georgia,serif;color:#d3dbbb;background:#b6c2950c;box-shadow:none}
.workspace-core #stage3 .shot-card .information-trigger:hover:not(:disabled),.workspace-core #stage3 .shot-card .information-trigger:focus-visible{background:#c5c69320;border-color:#dfd5ad;color:#fff0c9}
.information-card{position:fixed;z-index:80;width:min(860px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;padding:23px 25px;background:#29372d;color:#dae1ca;border:1px solid #b9c09940;border-radius:12px;box-shadow:0 16px 65px #0008;font:13px/1.9 system-ui,sans-serif}
.information-card[hidden]{display:none}
.information-columns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0}
.information-card section{padding:0 20px;border-left:1px solid #b8c29545;min-width:0}
.information-card section:first-child{border-left:0;padding-left:0}.information-card section:last-child{padding-right:0}
.information-card strong{display:block;color:#ebd9af;font-size:14px;font-weight:500;margin-bottom:10px}
.information-card p{color:#c7d0b7;line-height:1.9;margin:0;overflow-wrap:anywhere;white-space:pre-wrap}
.workspace-core #stage1 #assets .asset-heading{grid-template-columns:minmax(0,1fr) auto auto;gap:8px 12px;margin-bottom:7px}
.workspace-core #stage1 #assets .asset-name{display:flex;flex-wrap:wrap;align-items:baseline;gap:5px 14px;min-width:0;grid-column:1;grid-row:1}
.workspace-core #stage1 #assets .asset-heading .asset-title{font-size:18px;flex:0 1 auto;min-width:0}
.workspace-core #stage1 #assets .asset-copy-label{font-size:11px;line-height:1.8;color:#aaba9a;white-space:nowrap}
.workspace-core #stage1 #assets .asset-heading .badge{grid-column:2;grid-row:1;white-space:nowrap}
.workspace-core #stage1 #assets .asset-heading .asset-delete{grid-column:3;grid-row:1;white-space:nowrap}
.workspace-core #stage1 #assets .asset-options{grid-row:2}
.workspace-core #stage1 #assets .material-index>.row{grid-row:3;max-width:100%;flex-wrap:wrap;gap:14px;margin-top:9px}
.workspace-core #stage1 #assets .material-index>.row .asset-report-toggle{padding:5px 12px;min-height:30px;border:1px solid #b0bc9155;border-radius:5px;background:#a9b58b12;color:#d1d9b6;margin-left:auto}
.workspace-core #stage1 #assets .material-index>.row .asset-report-toggle:hover:not(:disabled){background:#b8c19025;border-color:#d1d2a577}
.workspace-core #stage1 #assets .asset-report{grid-column:3;grid-row:4;min-width:0;margin-top:12px}
.workspace-core #stage1 #assets .asset-report .pre{background:#a7b58b0c;color:#d6dcc5;font-size:12px;line-height:1.9;max-height:260px;border-radius:4px;overflow-wrap:anywhere}
.workspace-core #stage1 #assetHint.materials-ready{font-size:16px;letter-spacing:.06em;color:#d7dfc3}
@media(max-width:760px){.workspace-core .creation-progress .creation-copy{font-size:12px}.workspace-core .creation-progress .creation-meta{flex-direction:row;align-items:center}.workspace-core .creation-progress .creation-estimate{flex-basis:auto;order:0}.workspace-core .film-composition .sequence-total{font-size:13px}.information-card{padding:18px}.information-card section{padding:0 12px}.workspace-core #stage3 .shot-card .information-trigger{right:14px;top:17px}}
@media(max-width:600px){.workspace-core #stage1 #assets .asset-heading{grid-column:2;grid-row:2;grid-template-columns:minmax(0,1fr) auto auto}.workspace-core #stage1 #assets .asset-heading .asset-title{font-size:16px}.workspace-core #stage1 #assets .asset-options{grid-column:2;grid-row:3}.workspace-core #stage1 #assets .material-index>.row{grid-column:2;grid-row:4}.workspace-core #stage1 #assets .asset-report{grid-column:2;grid-row:5}.workspace-core #stage1 #assets .material-index>.error{grid-column:2;grid-row:6}.workspace-core #stage1 #assets .material-index>.row .asset-report-toggle{margin-left:0}.information-columns{grid-template-columns:1fr;gap:15px}.information-card section{padding:15px 0 0;border-left:0;border-top:1px solid #b8c29545}.information-card section:first-child{border-top:0;padding-top:0}}

/* V0.3.34: requirements remain visible before an executable revision. */
.requirement-review{max-width:620px;width:calc(100vw - 48px);max-height:calc(100vh - 64px);overflow:auto;padding:28px;border:1px solid #a88d53;border-radius:18px;background:#17241f;color:#e6dcc2;box-shadow:0 18px 80px #0009}
.requirement-review::backdrop{background:#0008}.requirement-review h3{font-size:22px;margin:0 0 18px}.requirement-review p,.requirement-review li{line-height:1.7}.requirement-review li{margin:10px 0}.requirement-review button{margin-top:12px}
.request-notices{border:1px solid #a88d5370;border-left:3px solid #b7a06a;padding:12px 18px;margin:12px 0 24px;border-radius:8px;background:#b7a06a0c;color:#e2d7b9}.request-notices p{margin:4px 0;line-height:1.65;font-size:14px}

/* V0.3.35: story-fold identity and actual local-copy location. */
.brandmark{width:29px;height:32px}.brand-name{font-family:StoryTripSerif,"Songti SC",SimSun,serif;font-size:23px;font-weight:400;letter-spacing:.1em}
.landing-slogan{max-width:760px;text-wrap:balance}.landing-slogan em{display:inline}
.workspace-core #stage1 #assets .asset-copy-trigger{background:transparent;border:0;border-radius:2px;padding:0;font-weight:400;text-decoration:underline;text-decoration-style:dotted;text-underline-offset:4px;cursor:pointer}
.workspace-core #stage1 #assets .asset-copy-trigger:hover,.workspace-core #stage1 #assets .asset-copy-trigger:focus-visible{color:#e1e8d7;background:transparent;transform:none}
.local-copy-card{width:min(420px,calc(100vw - 24px));padding:16px 18px;user-select:text}.local-copy-card .copy-location-heading{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 12px;margin-bottom:10px}.local-copy-card .copy-location-heading strong{font-size:13px;margin:0;flex-shrink:0}.local-copy-card .copy-location-description{font-size:11px;line-height:1.5;color:#aeba9e}.local-copy-card p{overflow-wrap:anywhere;white-space:pre-wrap}.local-copy-card .copy-location-path{font-size:12px;line-height:1.65}.local-copy-card .copy-location-status{font-size:11px;line-height:1.6;margin:8px 0 0;color:#aeba9e}.local-copy-card .copy-location-status:empty{display:none}.local-copy-card button{margin-top:12px;padding:6px 10px;font-size:12px}
@media(max-width:550px){.brand-name{font-size:19px}.landing-slogan{max-width:300px;margin-left:auto;margin-right:auto}}

/* Brand copy uses one complete Chinese font, avoiding mixed subset glyphs. */
.landing-title,.landing-slogan,.brand-name{font-family:"Songti SC","Noto Serif CJK SC",SimSun,serif}

/* Script actions: import is separate from the paired view selector. */
.script-actions{display:flex;align-items:center;gap:22px;flex-wrap:wrap}
.workspace-core>.panel .script-actions #openInsert{background:transparent;border:1px solid #b9ac8052;color:#dfc99e;white-space:nowrap;padding:8px 13px;border-radius:6px;box-shadow:none}
.workspace-core>.panel .script-actions #openInsert:hover{background:#b6a37218;border-color:#b9ac8090}
.workspace-core>.panel .script-actions .switch{display:flex;gap:0;padding:3px;border:1px solid #ffffff18;border-radius:8px;background:#00000020}
.workspace-core>.panel .script-actions .switch button{border:0;border-radius:5px}
.script-utilities:has(#scriptStatus[hidden]){display:none}
.workspace-core>.panel button.version-change-toggle{border:1px solid #b9ac803b;border-radius:5px;background:#b6a3720a;color:#d4bf92;font-size:12px;font-weight:400;letter-spacing:0;padding:6px 11px;box-shadow:none}
.workspace-core>.panel button.version-change-toggle:hover,.workspace-core>.panel button.version-change-toggle[aria-expanded="true"]{background:#b6a3721a;border-color:#b9ac8070}
.version-change-body p{margin:9px 0 0;max-width:620px;line-height:1.8;color:#c8d0be;font-size:13px}
@media(max-width:760px){.script-toolbar{align-items:flex-start;gap:12px;flex-wrap:wrap}.script-actions{gap:12px}.workspace-core>.panel .script-actions .switch button{padding:8px 12px}}

/* Independent home actions: create a project or open the existing demo. */
.landing-actions{gap:18px;flex-wrap:wrap}
.landing-actions .start-button{min-width:150px;padding:12px 22px;border:1px solid #e8ddc64d;border-radius:3px}
.landing-actions #startStudio{background:#e8ddc6;color:#202a29;border-color:#e8ddc6}
.landing-actions #startStudio:hover:not(:disabled){background:#f7eedb;color:#202a29}
.landing-actions .demo-button{background:#10191870;color:#e8ddc6;border-color:#e8ddc66b;backdrop-filter:blur(8px)}
.landing-actions .demo-button:hover:not(:disabled){background:#e8ddc61c;border-color:#e8ddc6b3}
.landing-actions .start-button:focus-visible{outline:2px solid #e8ddc6;outline-offset:5px}
@media(max-width:550px){.landing-actions{gap:12px}.landing-actions .start-button{min-width:0;padding:12px 18px;gap:18px}}

.edit-export-dialog{width:min(580px,90vw);max-height:88vh;overflow:auto;background:#171a1d;color:#eee;border:1px solid #62666a;border-radius:12px;padding:24px}.edit-export-dialog::backdrop{background:#000b}.edit-export-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.edit-export-dialog label{display:grid;gap:8px;margin:16px 0}.edit-export-dialog small{overflow-wrap:anywhere;color:#b9c0c7}.edit-export-dialog select,.edit-export-dialog input{width:100%}.edit-export-dialog #editMessage{white-space:pre-wrap;overflow-wrap:anywhere}

/* Music selection, matching the existing script cards. */
.music-heading{display:block;font:inherit;font-size:22px}
.music-recommendations{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));align-items:stretch;gap:18px;margin:22px 0;padding:5px 3px}
.workspace-core>.panel button.music-track{position:relative;display:grid;grid-template-columns:48px minmax(0,1.25fr) minmax(0,1fr);align-items:center;gap:12px;min-width:0;min-height:128px;padding:22px 20px;text-align:left;border:1px solid rgb(205 184 138 / .32);border-radius:12px;background:transparent;color:inherit;cursor:pointer;box-shadow:none;transform:translateY(0);transition:transform .24s ease,background-color .24s ease,border-color .24s ease}
.workspace-core>.panel button.music-track::before{content:'';position:absolute;inset:4px;border:1px solid rgb(205 184 138 / .2);border-radius:8px;pointer-events:none}
.workspace-core>.panel button.music-track::after{content:'';position:absolute;left:11px;top:8px;bottom:8px;width:1px;background:linear-gradient(transparent,#c9b68b66 12%,#c9b68b22 48%,transparent 49%,transparent 61%,#c9b68b33 62%,#c9b68b66 88%,transparent);pointer-events:none}
.music-disc{position:relative;display:block;width:48px;height:48px;border:1px solid rgb(213 193 151 / .65);border-radius:50%;box-shadow:inset 0 0 0 3px #c6b48a0a;pointer-events:none}
.music-disc::before{content:'';position:absolute;width:10px;height:10px;left:50%;top:50%;transform:translate(-50%,-50%);border:1px solid rgb(213 193 151 / .7);border-radius:50%}
.music-disc::after{content:'';position:absolute;left:9px;top:11px;width:12px;height:1px;background:#d5c19780;transform:rotate(-46deg);box-shadow:0 3px 0 #d5c19733}
.music-track .music-track-title{min-width:0;font-size:19px;font-weight:650;line-height:1.45;overflow-wrap:anywhere;letter-spacing:0}
.music-track .music-track-meta{min-width:0;font-family:system-ui,sans-serif;font-size:12px;font-weight:400;line-height:1.6;color:#c3bba6;overflow-wrap:anywhere}
.music-track-meta>span{display:block}.music-track-artist{white-space:nowrap}.music-track-style{margin-top:2px}
.workspace-core>.panel button.music-track.is-selected{background:rgb(211 185 128 / .16);border-color:rgb(222 194 139 / .65);transform:translateY(-1px) scale(1.008)}
.workspace-core>.panel button.music-track.is-selected::before{border-color:rgb(222 194 139 / .4)}
.workspace-core>.panel .music-recommendations.is-interacting button.music-track.is-active{background:rgb(211 185 128 / .1);border-color:rgb(222 194 139 / .6);transform:translateY(-2px) scale(1.012)}
.workspace-core>.panel .music-recommendations.is-interacting button.music-track.is-selected{background:rgb(211 185 128 / .18)}
.workspace-core>.panel .music-recommendations.is-interacting button.music-track.is-neighbor-left{transform:translateX(-2px)}
.workspace-core>.panel .music-recommendations.is-interacting button.music-track.is-neighbor-right{transform:translateX(2px)}
.workspace-core>.panel button.music-track:focus-visible{outline:2px solid #ddc28c;outline-offset:5px}
@media(prefers-reduced-motion:reduce){.workspace-core>.panel button.music-track{transition:none;transform:none!important}}
.music-controls{display:flex;align-items:end;gap:16px;flex-wrap:wrap;margin:16px 0}.music-controls label{display:grid;gap:8px;flex:1;min-width:160px}.music-audio{width:100%;margin:8px 0}.music-controls input[type=range]{padding:0;min-height:32px}.music-suggestion a{margin-left:8px;text-decoration:underline}@media(max-width:700px){.music-recommendations{flex-direction:column}.music-controls{display:grid;grid-template-columns:1fr}}

.version-label{justify-content:flex-start;margin-left:0}.version-label select{margin-left:0}#saveStatus:empty,#editHint:empty,#editMessage:empty{display:none}

/* V0.4.11: approved home actions and wrapping project name. */
.projectname textarea{display:block;width:100%;min-height:48px;resize:none;overflow:hidden;white-space:pre-wrap;overflow-wrap:anywhere;border-radius:0;background:transparent;box-shadow:none;line-height:1.7}
.landing-actions{gap:26px;flex-wrap:nowrap}
.landing-actions .start-button,.landing-actions #startStudio,.landing-actions .demo-button{min-width:0;gap:0;padding:10px 0;border:0;border-radius:0;background:transparent;color:#ddccb0;backdrop-filter:none;box-shadow:none;font-size:18px;font-weight:500;letter-spacing:.08em;transition:color .22s ease,text-shadow .22s ease}
.landing-actions .start-button:hover:not(:disabled),.landing-actions #startStudio:hover:not(:disabled),.landing-actions .demo-button:hover:not(:disabled){background:transparent;color:#fff5db;transform:none;text-shadow:0 0 14px #f2dca880}
.landing-divider{display:block;flex:0 0 1px;height:18px;background:#d9c6a252}
@media(max-width:760px){.projectname textarea{min-height:38px}}
@media(max-width:550px){.landing-actions{gap:18px}.landing-actions .start-button{padding:10px 0;font-size:15px;letter-spacing:.05em}.landing-divider{height:16px}}
@media(prefers-reduced-motion:reduce){.landing-actions .start-button{transition:none}}

/* V0.4.12 — shared header icons. The original night palette is the default. */
.topbar .header-icon{display:inline-grid;place-items:center;width:36px;height:36px;padding:0;min-width:36px;transition:color .2s,background .2s,border-color .2s}
.header-icon svg{width:20px;height:20px;pointer-events:none}
#themeButton .theme-moon,html[data-theme="light"] #themeButton .theme-sun{display:none}
html[data-theme="light"] #themeButton .theme-moon{display:block}
.topbar .header-icon:hover:not(:disabled){color:#f8e7bb;background:#c4af841a;border-color:#c4af8470;transform:none}
.topbar .header-icon:focus-visible{outline:2px solid #c4af84;outline-offset:4px}
@media(max-width:550px){.topbar .header-icon{width:31px;height:33px;min-width:31px}.header-icon svg{width:18px;height:18px}}

/* Daylight: approved cream-white, pale grey sage and restrained champagne. */
html[data-theme="light"]{
 color-scheme:light;--day-paper:#faf8f2;--day-header:#fdfbf7;--day-ink:#344036;--day-muted:#59665b;--day-green:#52694f;--day-gold:#896c38;--day-line:#d9d6c9;--day-card:#eef0e5;--day-field:#e8ebdf;--day-secondary:#dce3d2;--day-champagne:#dfcda3;--day-error:#963f32;
 --ink:var(--day-ink);--muted:var(--day-muted);--paper:var(--day-paper);--surface:var(--day-card);--raised:var(--day-header);--line:var(--day-line);--gold:var(--day-gold);--green:var(--day-green);--lime:#e8e1ca;
 background:var(--day-paper)
}
html[data-theme="light"] body{background:var(--day-paper);color:var(--day-ink)}
/* Opening footage remains cinematic: recolour interface chrome, not photographs/video. */
html[data-theme="light"] body[data-view="home"]{background:#101614;color-scheme:dark}
html[data-theme="light"] .topbar{background:#fdfbf7f5;border-bottom-color:var(--day-line)}
html[data-theme="light"] .topbar .brand,html[data-theme="light"] .topbar .brand:hover{color:var(--day-ink)}
html[data-theme="light"] .brandmark svg path:first-child{fill:#465b46}
html[data-theme="light"] .brandmark svg path:last-child{fill:#a6b59a}
html[data-theme="light"] .connection{color:var(--day-muted)}
html[data-theme="light"] .topbar .quiet{color:var(--day-ink);border-color:#d9cdb6;background:transparent}
html[data-theme="light"] .topbar .header-icon:hover:not(:disabled){background:#e9e4d5;color:#6c542f;border-color:#b8a278}
html[data-theme="light"] .steps{background:#faf8f2f7}
html[data-theme="light"] .step-flow{color:#bbaa866a}
html[data-theme="light"] .steps .step{background:transparent;color:var(--day-muted)}
html[data-theme="light"] .steps .step-number,html[data-theme="light"] .steps .step.complete:not(.active) .step-number{color:#617560}
html[data-theme="light"] .steps .step.active,html[data-theme="light"] .steps .step:hover:not(:disabled){color:#263c32}
html[data-theme="light"] .steps .step.active .step-number,html[data-theme="light"] .steps .step:hover:not(:disabled) .step-number{color:var(--day-gold)}
html[data-theme="light"] .steps::after{background:linear-gradient(90deg,transparent,#aa8c54 40%,#aa8c54 60%,transparent);box-shadow:none}
html[data-theme="light"] .workspace-title .studio-signature h2{color:#697b67}
html[data-theme="light"] .workspace-title .signature-art{color:#a28650a6}
html[data-theme="light"] .project-sidebar{color:var(--day-ink);opacity:1}
html[data-theme="light"] .projectname label,html[data-theme="light"] .projectname .save-note{color:var(--day-muted)}
html[data-theme="light"] .projectname :is(input,textarea){color:var(--day-ink);border-bottom-color:var(--day-line)}
html[data-theme="light"] .projectname :is(.quiet,.filelabel,#exportProject){color:var(--day-ink)}
html[data-theme="light"] .projectname :is(.quiet,.filelabel,#exportProject):hover{color:var(--day-gold)}
html[data-theme="light"] .projectname :is(#newProject,.filelabel,#openCloudProject,#exportProject)::before{color:var(--day-gold)}

/* Central panels and editable fields. */
html[data-theme="light"] .workspace-core>.panel{
 --ink:var(--day-ink);--muted:var(--day-muted);--gold:var(--day-gold);--green:var(--day-green);--line:var(--day-line);--surface:var(--day-card);--raised:var(--day-header);color:var(--day-ink);color-scheme:light;background:transparent
}
html[data-theme="light"] .workspace-core>.panel :is(.panel-head h2,.plan-title,.shot-body h3,.asset-title,.direction-card h3,.insert-heading h3,.direction-empty strong,.dropzone strong,.ending-box strong,.music-suggestion){color:var(--day-ink)}
html[data-theme="light"] .workspace-core>.panel :is(.hint,summary,.empty,label,.brief label,.asset-options label,.plan-intro,.shot-position,.source-window strong,.shot-body details,.shot-select,.ending-box p,.music-suggestion p,.per-shot-details>summary,.insert-budget,.version-change-body p,.direction-card .story){color:var(--day-muted)}
html[data-theme="light"] .workspace-core>.panel :is(.error,.revision-issue,.insert-budget[data-issue="true"]){color:var(--day-error)}
html[data-theme="light"] .workspace-core>.panel :is(.card,.shot-card,#workerPanel,.insert-panel){background:var(--day-card);color:var(--day-ink);box-shadow:none;color-scheme:light}
html[data-theme="light"] .workspace-core>.panel :is(.card,.shot-card)::before{background:linear-gradient(90deg,transparent,#b7c09f66,transparent)}
html[data-theme="light"] .workspace-core>.panel .card.selected{background:#e1e8d7;box-shadow:inset 0 0 0 1px #a8b49a}
html[data-theme="light"] .workspace-core>.panel .shot-position strong{color:var(--day-gold)}
html[data-theme="light"] .workspace-core>.panel .shot-body .caption{background:#e9dfc6;color:#66502b}
html[data-theme="light"] .workspace-core #stage3 .shot-card .information-trigger{color:var(--day-green);border-color:#92a084;background:#e5eadb}
html[data-theme="light"] .workspace-core #stage3 .shot-card .information-trigger:hover{background:#d7e0ca;color:#283f2d}
html[data-theme="light"] .workspace-core>.panel :is(input,textarea,select),html[data-theme="light"] .workspace-core>.panel .feedback-box :is(textarea,select){background:var(--day-field);color:var(--day-ink);color-scheme:light}
html[data-theme="light"] .workspace-core select :is(option,optgroup){background:#f5f5ed;color:var(--day-ink);color-scheme:light}
html[data-theme="light"] .workspace-core select:disabled{background:#eff0e8;color:#72796d}
html[data-theme="light"] .workspace-core>.panel :is(input,textarea)::placeholder,html[data-theme="light"] .workspace-core>.panel #intent::placeholder{color:#788173;opacity:1}
html[data-theme="light"] .workspace-core>.panel input[type="checkbox"],html[data-theme="light"] .workspace-core>.panel input[type="range"]{accent-color:#9a814e}
html[data-theme="light"] .workspace-core>.panel button,html[data-theme="light"] .workspace-core>.panel .dropzone .filelabel{background:#c7b084;color:#293b2e;box-shadow:none}
html[data-theme="light"] .workspace-core>.panel button:hover:not(:disabled),html[data-theme="light"] .workspace-core>.panel .dropzone .filelabel:hover{background:#d6c297;color:#223329}
html[data-theme="light"] .workspace-core>.panel :is(button.secondary,.filelabel,.clip-actions>button,.clip-actions>.filelabel){background:var(--day-secondary);color:#354d38;box-shadow:none}
html[data-theme="light"] .workspace-core>.panel :is(button.secondary,.filelabel,.clip-actions>button,.clip-actions>.filelabel):hover{background:#cfdac4;color:#283d2c}
html[data-theme="light"] .workspace-core>.panel button.quiet{background:transparent;color:var(--day-green)}
html[data-theme="light"] .workspace-core>.panel button.quiet:hover{background:#e7ebde;color:#354d38}
html[data-theme="light"] .workspace-core>.panel :is(.badge,.badge.ready){background:#e2e9d8;color:#456045}
html[data-theme="light"] .workspace-core>.panel .dropzone{background:radial-gradient(ellipse at center,#e3e9d9,transparent 80%);color:var(--day-ink)}
html[data-theme="light"] .workspace-core>.panel .dropzone:hover,html[data-theme="light"] .workspace-core>.panel .dropzone.dragging{background:radial-gradient(ellipse at center,#d9e3cc,transparent 80%)}
html[data-theme="light"] .workspace-core>.panel .drop-icon{color:var(--day-gold)}
html[data-theme="light"] .workspace-core>.panel :is(.atmosphere-chips .atmosphere-chip,.shot-choice){background:#e8ebdf;color:var(--day-green)}
html[data-theme="light"] .workspace-core>.panel .atmosphere-chips .atmosphere-chip:hover{background:#dae3ce;color:#344b32}
html[data-theme="light"] .workspace-core>.panel :is(.atmosphere-chips .atmosphere-chip[aria-pressed="true"],.shot-choice:has(input:checked)){background:#c8d5b5;color:#293d2a}
html[data-theme="light"] .workspace-core>.panel :is(.pre,.multi-box,.edit-requirement,.feedback-box){background:var(--day-card);color:var(--day-ink)}
html[data-theme="light"] .workspace-core>.panel .edit-requirement legend{color:var(--day-gold)}
html[data-theme="light"] .workspace-core>.panel .direction-empty{background:radial-gradient(ellipse at center,#e5e9dd,transparent 80%);color:var(--day-muted)}
html[data-theme="light"] .workspace-core>.panel .script-actions #openInsert,html[data-theme="light"] .workspace-core>.panel button.version-change-toggle{background:#f0ebe0;color:#705b38;border-color:#d5c6aa}
html[data-theme="light"] .workspace-core>.panel .script-actions #openInsert:hover,html[data-theme="light"] .workspace-core>.panel button.version-change-toggle:hover,html[data-theme="light"] .workspace-core>.panel button.version-change-toggle[aria-expanded="true"]{background:#e7dec8}
html[data-theme="light"] .workspace-core>.panel .script-actions .switch{background:transparent;border-color:#d8ccba}
html[data-theme="light"] .workspace-core>.panel .switch button{background:transparent;color:var(--day-ink)}
html[data-theme="light"] .workspace-core>.panel .switch button:hover,html[data-theme="light"] .workspace-core>.panel .switch button.active{background:#e8e2d1;color:#5e502f}
html[data-theme="light"] .workspace-core>.panel .insert-panel .insert-asset{background:#e1e7d7;color:var(--day-ink)}
html[data-theme="light"] .workspace-core>.panel .insert-panel .insert-asset:hover,html[data-theme="light"] .workspace-core>.panel .insert-panel .insert-asset[aria-pressed="true"]{background:#cedbbd;box-shadow:none}
html[data-theme="light"] .workspace-core>.panel :is(.insert-asset-copy small,.insert-asset-description,.insert-adjust-choice,.insert-duration-item){color:var(--day-muted)}
html[data-theme="light"] .workspace-core>.panel .insert-adjust-choice{background:#e3e9da}
html[data-theme="light"] .workspace-core>.panel .slate-list{background:#f0ede2;box-shadow:none}

/* Light film perforations and the existing music CD cases. */
html[data-theme="light"] .workspace-core .film-composition .film-shot,html[data-theme="light"] .sequence-total,html[data-theme="light"] .film-label small{color:var(--day-muted)}
html[data-theme="light"] .workspace-core .film-composition .film-shot.is-hovered,html[data-theme="light"] .film-shot.is-hovered .film-label small{color:var(--day-gold)}
html[data-theme="light"] .film-slot{background:#e4e8d8}
html[data-theme="light"] .film-slot::before,html[data-theme="light"] .film-slot::after{background-color:#f3f3e9;background-image:radial-gradient(ellipse 18% 23% at 50% 50%,#9dab83aa 90%,transparent 100%)}
html[data-theme="light"] .film-indicator{background:linear-gradient(90deg,transparent,#ac915e 50%,transparent);box-shadow:none}
html[data-theme="light"] .workspace-core>.panel button.music-track{background:transparent;color:var(--day-ink);border-color:#bcb08e;box-shadow:none}
html[data-theme="light"] .workspace-core>.panel button.music-track::before{border-color:#d7c9a9}
html[data-theme="light"] .workspace-core>.panel button.music-track::after{background:linear-gradient(transparent,#b29b69 15%,#b29b6940 50%,#b29b69 85%,transparent)}
html[data-theme="light"] .music-disc,html[data-theme="light"] .music-disc::before{border-color:#9b8557}
html[data-theme="light"] .music-disc::after{background:#9b8557;box-shadow:0 3px 0 #9b855750}
html[data-theme="light"] .music-track .music-track-meta{color:var(--day-muted)}
html[data-theme="light"] .workspace-core>.panel button.music-track.is-selected,html[data-theme="light"] .workspace-core>.panel .music-recommendations.is-interacting button.music-track.is-selected{background:#eadebf;border-color:#b19863}
html[data-theme="light"] .workspace-core>.panel button.music-track.is-selected::before{border-color:#c6b181}
html[data-theme="light"] .workspace-core>.panel .music-recommendations.is-interacting button.music-track.is-active:not(.is-selected){background:#f0eadd;border-color:#bba775}
html[data-theme="light"] .music-suggestion a{color:var(--day-gold)}

/* Material list and image-based direction posters. */
html[data-theme="light"] .workspace-core #stage1 #assets>.material-index{--ink:var(--day-ink);--muted:var(--day-muted);--gold:var(--day-gold);background:radial-gradient(ellipse at 25% 50%,#e7ecdd55,transparent 85%);color:var(--day-ink);color-scheme:light}
html[data-theme="light"] .workspace-core #stage1 #assets>.material-index::before{color:#839374}
html[data-theme="light"] .workspace-core #stage1 #assets :is(.asset-name-label,.asset-copy-label,.asset-heading .badge,.material-index>.hint,.asset-options label){color:var(--day-muted)}
html[data-theme="light"] .workspace-core #stage1 #assets .asset-heading .asset-title{color:var(--day-ink)}
html[data-theme="light"] .workspace-core #stage1 #assets .asset-heading .asset-delete{color:#8b5d45}
html[data-theme="light"] .workspace-core #stage1 #assets .asset-heading .asset-delete:hover{color:var(--day-error)}
html[data-theme="light"] .workspace-core #stage1 #assets .asset-options :is(input,select){color:var(--day-ink);border-bottom-color:#b7c2ac;background:transparent;color-scheme:light}
html[data-theme="light"] .workspace-core #stage1 #assets .material-index>.row :is(button,.filelabel),html[data-theme="light"] .workspace-core #stage1 #assets .material-index>details button{color:var(--day-green)}
html[data-theme="light"] .workspace-core #stage1 #assets .material-index>.row .asset-report-toggle{background:#e5eadc;border-color:#bfccb3;color:#3d573d}
html[data-theme="light"] .workspace-core #stage1 #assets .asset-report .pre{background:#e9ede2;color:var(--day-ink)}
html[data-theme="light"] .workspace-core #stage1 #assetHint.materials-ready{color:var(--day-green)}
html[data-theme="light"] .workspace-core #stage1 #assets .material-index>.error{color:var(--day-error)}
html[data-theme="light"] .workspace-core #stage2 .direction-poster{background:#eef0e5;box-shadow:0 6px 20px #52654b12}
html[data-theme="light"] .workspace-core #stage2 .direction-poster.selected{background:#e8edde;box-shadow:0 0 0 1px #b0bca2,0 8px 24px #52654b18}
html[data-theme="light"] .workspace-core #stage2 .poster-backdrop{background:linear-gradient(145deg,#c4d0b7,#eef0e5)}
html[data-theme="light"] .workspace-core #stage2 .poster-backdrop::after{background:linear-gradient(180deg,#263b3010,transparent 8%,#eef0e566 27%,#eef0e5f5 44%,#eef0e5 75%)}
html[data-theme="light"] .workspace-core #stage2 .poster-image{filter:saturate(.8) brightness(1.03)}
html[data-theme="light"] .workspace-core #stage2 .direction-poster:hover .poster-image{filter:saturate(.95) brightness(1.03)}
html[data-theme="light"] .workspace-core #stage2 .poster-letter{color:#79907145}
html[data-theme="light"] .workspace-core #stage2 .poster-top .badge{background:#faf8f2ed;color:#344036}
html[data-theme="light"] .workspace-core #stage2 .poster-body h3{color:#304437;text-shadow:none}
html[data-theme="light"] .workspace-core #stage2 .poster-body .story,html[data-theme="light"] .workspace-core #stage2 .poster-note{color:var(--day-muted)}
html[data-theme="light"] .workspace-core #stage2 .poster-body :is(.direction-keywords,.direction-mood span){color:#80663a}
html[data-theme="light"] .workspace-core #stage2 .poster-body .tip-trigger{border-color:#a2b093;background:#dce5d1;color:#3a553b}
html[data-theme="light"] .workspace-core #stage2 .poster-body>button{background:#dfe6d6;border-color:#bcc7b1;color:#3c5338}
html[data-theme="light"] .workspace-core #stage2 .poster-body>button:hover{background:#d1dcc5;color:#293f2c}

/* Contextual help, progress, settings and import dialogs. */
html[data-theme="light"] :is(.drawer-card,.edit-export-dialog,.requirement-review,.information-card,.clip-preview){--ink:var(--day-ink);--muted:var(--day-muted);--gold:var(--day-gold);--line:var(--day-line);background:var(--day-header);color:var(--day-ink);border-color:var(--day-line);color-scheme:light}
html[data-theme="light"] :is(.edit-export-dialog,.requirement-review,.clip-preview) :is(button,.filelabel){background:#c7b084;color:#293b2e;border-color:#c7b084}
html[data-theme="light"] :is(.edit-export-dialog,.requirement-review,.clip-preview) :is(button.secondary,button.quiet){background:#e4e9d9;color:#374e38;border-color:#c6cfb9}
html[data-theme="light"] :is(.edit-export-dialog,.requirement-review,.clip-preview) button:hover{background:#d3c3a0;color:#344036}
html[data-theme="light"] :is(.edit-export-dialog,.requirement-review,.drawer-card) :is(input,select,textarea){background:#f0f1e8;color:var(--day-ink);border-color:#bcc7b4;color-scheme:light}
html[data-theme="light"] :is(.edit-export-dialog,.requirement-review,.clip-preview,.information-card) :is(p,small,label,.hint){color:var(--day-ink)}
html[data-theme="light"] .information-card strong{color:var(--day-gold)}
html[data-theme="light"] .information-card section{border-color:var(--day-line)}
html[data-theme="light"] .local-copy-card :is(.copy-location-description,.copy-location-status){color:var(--day-muted)}
html[data-theme="light"] .workspace-core>.panel .suitability-tip{background:var(--day-header);border:1px solid var(--day-line);color:var(--day-ink);box-shadow:0 10px 30px #34403620}
html[data-theme="light"] .workspace-core>.panel .suitability-tip p{color:var(--day-muted)}
html[data-theme="light"] .workspace-core>.panel .suitability-tip strong{color:var(--day-gold)}
html[data-theme="light"] .workspace-core .feedback-layer .creation-progress{--ink:var(--day-ink);--muted:var(--day-muted);--gold:var(--day-gold);background:#f2f3e9;color:var(--day-ink);box-shadow:0 12px 42px #34403630}
html[data-theme="light"] .workspace-core .creation-progress :is(.creation-title,.creation-copy,.creation-task,.creation-elapsed,.creation-estimate,.creation-phases span){color:var(--day-muted)}
html[data-theme="light"] .workspace-core .creation-progress .creation-title{color:var(--day-ink)}
html[data-theme="light"] .workspace-core .creation-progress .creation-phases [data-state="active"]{background:#e5d9bc;color:#6d542e}
html[data-theme="light"] .workspace-core .creation-progress .creation-phases [data-state="done"]{background:#dce5d1;color:#375737}
html[data-theme="light"] .workspace-core .creation-progress .progress-cinema{color:var(--day-gold)}
html[data-theme="light"] .workspace-core .creation-progress .progress-track{background:#e2e8da}
html[data-theme="light"] .workspace-core .creation-progress .quiet{background:#e1e7d7;color:#43573f}
html[data-theme="light"] .statusbar{background:#e3ead9;color:#394c36}
html[data-theme="light"] .statusbar.notice-error{background:#f3e2dc}
html[data-theme="light"] .status-inner .status{color:#394c36}
html[data-theme="light"] .status-inner .status.error{color:var(--day-error)}
html[data-theme="light"] .status-inner button.secondary{color:#43573f;background:#f2f4eb;border-color:#bdc8af}
html[data-theme="light"] .request-notices{background:#f0e8d6;color:#70552f;border-color:#c6b28b}
html[data-theme="light"] .error-link{color:var(--day-error)!important}

/* Restore legibility for small labels that had independent night colours. */
html[data-theme="light"] .workspace-core>.panel>.asset-head,
html[data-theme="light"] .workspace-core>.panel .sequence-label strong,
html[data-theme="light"] .workspace-core>.panel .music-suggestion strong,
html[data-theme="light"] .workspace-core>.panel .music-suggestion .music-track-title{color:var(--day-ink)}
html[data-theme="light"] .workspace-core>.panel :is(.duration-field,.atmosphere-options,#assetProgress,#candidateDetails>summary,.sequence-label small,.sequence-ruler span,.sequence-preview){color:var(--day-muted)}
html[data-theme="light"] .workspace-core>.panel .asset-head>span{color:var(--day-muted)}
html[data-theme="light"] .workspace-core>.panel .film-composition .film-shot:hover:not(:disabled){background:transparent;color:var(--day-gold)}
html[data-theme="light"] .workspace-core #stage1 #assets .asset-note::placeholder{color:#6b7865}


/* V0.4.13: fixed icon column for aligned project actions. */
.projectname .row>#newProject::before,
.projectname .row>:is(.filelabel,#openCloudProject)::before,
.projectname .row>#exportProject::before{
 flex:0 0 1.25em;
 width:1.25em;
 text-align:center;
}
.projectname .row>#newProject,
.projectname .row>:is(.filelabel,#openCloudProject),
.projectname .row>#exportProject{white-space:nowrap}

/* Cloud project picker uses existing dialog and theme colors. */
.cloud-project-dialog{width:min(560px,calc(100vw - 32px));max-height:80vh;overflow:auto}
.cloud-project-head{justify-content:space-between;align-items:center}
.cloud-project-list{display:grid;gap:8px;margin:16px 0;max-height:48vh;overflow:auto}
.cloud-project-item{display:flex;flex-direction:column;align-items:flex-start;gap:6px;text-align:left;padding:14px 16px;background:transparent;border:1px solid currentColor;border-radius:10px;color:inherit}
.cloud-project-item strong{font-size:1rem;overflow-wrap:anywhere}
.cloud-project-item[aria-current="true"]{border-color:#ad9262}
.cloud-project-item:hover{background:rgba(186,160,108,.14)}
#cloudProjectFooter{justify-content:flex-end}

#openCloudProject[hidden]{display:none!important}
/* The assistant dialog follows the existing day/night theme. */
.assistant-dialog{width:min(560px,calc(100vw - 32px));}
.assistant-head{justify-content:space-between;align-items:center;}
.assistant-dialog label{display:block;margin:10px 0;}
.assistant-dialog select{width:100%;}
.assistant-dialog #assistantMessage{white-space:pre-line;line-height:1.7;overflow-wrap:anywhere;}
.assistant-actions{gap:8px;flex-wrap:wrap;margin-top:12px;}
.assistant-action{display:inline-flex;align-items:center;padding:11px 18px;border-radius:12px;border:1px solid currentColor;color:inherit;text-decoration:none;font-weight:600;cursor:pointer;}
.assistant-action:hover{filter:brightness(1.18);}
.assistant-action[hidden]{display:none!important;}

/* V0.5.7: a single-column, touch-first studio. Desktop rules stay intact.
   At tablet and landscape-phone widths, coarse-pointer devices use the same layout. */
@media (max-width:760px), (max-width:1024px) and (pointer:coarse) {
 html{--mobile-chrome:calc(60px + env(safe-area-inset-top,0px));--mobile-gutter:16px;scrollbar-gutter:auto;scroll-padding-top:calc(var(--mobile-chrome) + 76px);-webkit-text-size-adjust:100%}
 body[data-view="studio"]{min-width:0}
 .topbar{padding-top:env(safe-area-inset-top,0px)}
 .topbar-inner{height:60px;padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(12px,env(safe-area-inset-right,0px));gap:8px}
 .topbar-inner>.row{gap:4px}
 .topbar .header-icon{min-width:44px;width:44px;height:44px}
 .topbar .brand{min-height:44px}
 .brand-name{font-size:21px}
 .landing{height:100svh;min-height:100svh;padding:0 max(20px,env(safe-area-inset-right,0px)) 0 max(20px,env(safe-area-inset-left,0px))}
 .landing-title{font-size:clamp(54px,14vw,76px)}
 .landing-slogan{font-size:17px;line-height:1.85;max-width:320px;text-wrap:balance}
 .landing-actions{display:flex;gap:16px;flex-wrap:nowrap;margin-top:32px}
 .landing .landing-actions .start-button{font-size:16px;min-height:48px;padding:10px 6px;letter-spacing:.05em;white-space:nowrap}
 .landing .intro-background video,.landing .intro-final{object-position:38% center}
 .intro-sound,.intro-replay{bottom:calc(13px + env(safe-area-inset-bottom,0px));min-height:44px;font-size:12px}
 .intro-sound{left:max(12px,env(safe-area-inset-left,0px))}.intro-replay{right:max(12px,env(safe-area-inset-right,0px))}
 .landing .scroll-cue{bottom:calc(19px + env(safe-area-inset-bottom,0px));min-width:44px;min-height:44px;display:grid;place-items:center}
 .intro-hint{bottom:calc(62px + env(safe-area-inset-bottom,0px))}
 .studio{--title-column:0px;--project-column:0px;--workspace-gap:0px;max-width:680px;width:100%;padding:calc(var(--mobile-chrome) + 6px) max(var(--mobile-gutter),env(safe-area-inset-right,0px)) calc(144px + env(safe-area-inset-bottom,0px)) max(var(--mobile-gutter),env(safe-area-inset-left,0px));min-height:100svh}
 .steps{position:sticky;top:var(--mobile-chrome);z-index:18;margin:0 0 10px;padding:4px 0 12px;gap:2px;min-width:0}
 .steps .step{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px;padding:3px 2px 6px;min-height:62px;min-width:0}
 .steps .step .step-number{font-size:25px;line-height:1.12;min-width:0;text-align:center;transform:none}
 .steps .step strong{font-size:12px;letter-spacing:.04em;line-height:1.3;white-space:nowrap}
 .steps .step-copy,.steps .step:hover:not(:disabled) .step-copy,.steps .step:hover:not(:disabled) .step-number{transform:none}
 .steps .step-flow{height:45px;bottom:0;top:auto;opacity:.62}
 .workspace-layout{display:flex;flex-direction:column;gap:12px;min-width:0}
 .workspace-title{display:none}
 .project-sidebar{position:static;inset:auto!important;transform:none;width:100%;min-width:0;max-width:none;padding:0 0 8px;opacity:1;border-bottom:1px solid var(--line);z-index:auto}
 .project-sidebar .projectname{width:100%;max-width:none;min-width:0;margin:0}
 .projectname label{display:block;font-size:11px;line-height:1.4}
 .projectname textarea{font-size:16px;line-height:1.45;min-height:32px;margin:4px 0 0;padding:2px 0 7px;border-bottom:0}
 .projectname .row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;margin-top:0}
 .projectname .row>:is(.quiet,.filelabel,#exportProject){width:100%;min-height:44px;min-width:0;justify-content:flex-start;margin:0;padding:4px 3px;font-size:13px;gap:7px;border-radius:6px}
 .projectname .row>:is(.quiet,.filelabel,#exportProject):focus-visible{outline-offset:0}
 .projectname .save-note{font-size:11px;min-height:0;margin:3px 0}
 .workspace-core{width:100%;min-width:0;max-width:none}
 .workspace-core>.panel{width:100%;min-width:0;padding:12px 0 20px;box-shadow:none;scroll-margin-top:calc(var(--mobile-chrome) + 80px)}
 .workspace-core>.panel .panel-head{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:18px;padding:0}
 .workspace-core>.panel .panel-head h2{font-size:clamp(20px,5.8vw,24px);line-height:1.45;letter-spacing:.01em;margin:0;overflow-wrap:anywhere}
 .workspace-core>.panel .panel-head>.row{flex-wrap:wrap;gap:8px;max-width:100%}
 .workspace-core>.panel :is(button,.filelabel){min-height:44px;touch-action:manipulation;max-width:100%}
 .workspace-core>.panel :is(input:not([type=checkbox]):not([type=range]):not([type=file]),textarea,select){font-size:16px;max-width:100%;min-width:0}
 .workspace-core>.panel :is(select,input:not([type=checkbox]):not([type=range]):not([type=file])){min-height:44px}
 .workspace-core>.panel textarea{line-height:1.65;resize:vertical}
 .workspace-core>.panel :is(.setup-grid,.brief-footer,.feedback-box .grid,.insert-settings,.insert-adjust){grid-template-columns:minmax(0,1fr);gap:14px}
 .workspace-core>.panel .brief{min-width:0}
 .workspace-core>.panel #intent{min-height:100px}
 .workspace-core>.panel .dropzone{min-height:0;padding:18px 12px 20px;border-radius:20px}
 .workspace-core>.panel .drop-icon{width:38px;height:38px;font-size:29px;margin-bottom:6px}
 .workspace-core>.panel .dropzone strong{font-size:18px}
 .workspace-core>.panel .dropzone .hint{max-width:100%;font-size:12px;line-height:1.55}
 .workspace-core>.panel .dropzone .filelabel{padding:10px 18px}
 .workspace-core>.panel .atmosphere-chips{display:flex;flex-wrap:wrap;gap:6px}
 .workspace-core>.panel .atmosphere-chips .atmosphere-chip{min-height:40px;font-size:13px;padding:9px 13px}
 .workspace-core>.panel .footer-actions{flex-wrap:wrap;gap:12px;margin-top:22px}
 .workspace-core>.panel .footer-actions>.row{flex-wrap:wrap;gap:8px;width:100%}
 .workspace-core>.panel .footer-actions>button,.workspace-core>.panel .footer-actions>.row>button{flex:1 1 auto;min-height:48px;max-width:100%;white-space:normal}
 .workspace-core>.panel .asset-head{margin-top:20px}
 .workspace-core #stage1 #assets>.material-index{display:grid;grid-template-columns:minmax(88px,.38fr) minmax(0,.62fr);gap:10px 12px;padding:14px 0;background:none}
 .workspace-core #stage1 #assets>.material-index::before{display:none}
 .workspace-core #stage1 #assets :is(.material-index,.material-index:nth-child(4n+2),.material-index:nth-child(4n+3),.material-index:nth-child(4n)) .asset-media{grid-column:1;grid-row:1;width:100%;height:auto;aspect-ratio:1.35;align-self:start;min-width:0;max-width:none;justify-self:stretch;border-radius:8px 3px}
 .workspace-core #stage1 #assets .material-index .journal-photo-id{left:6px;bottom:17px;font-size:9px;max-width:calc(100% - 12px)}
 .workspace-core #stage1 #assets .material-index .journal-photo-time{right:6px;bottom:4px;font-size:9px;max-width:calc(100% - 12px)}
 .workspace-core #stage1 #assets .asset-heading{grid-column:2;grid-row:1;grid-template-columns:minmax(0,1fr) auto;gap:3px 5px;align-items:start;margin:0;min-width:0}
 .workspace-core #stage1 #assets .asset-name{grid-column:1/-1;grid-row:1;display:block}
 .workspace-core #stage1 #assets .asset-heading .asset-title{font-size:15px;line-height:1.55;overflow-wrap:anywhere}
 .workspace-core #stage1 #assets .asset-copy-label{white-space:normal;font-size:11px;line-height:1.45}
 .workspace-core #stage1 #assets .asset-heading .badge{grid-column:1;grid-row:2;font-size:11px;align-self:center}
 .workspace-core #stage1 #assets .asset-heading .asset-delete{grid-column:2;grid-row:2;font-size:12px;min-height:44px;padding:4px 2px;align-self:start}
 .workspace-core #stage1 #assets .asset-options{grid-column:1/-1;grid-row:2;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:8px 12px;margin:0}
 .workspace-core #stage1 #assets .asset-options label{font-size:12px}
 .workspace-core #stage1 #assets .asset-options :is(input,textarea,select){font-size:16px}
 .workspace-core #stage1 #assets .asset-options textarea{min-height:58px;height:58px}
 .workspace-core #stage1 #assets .asset-note{grid-column:1/-1}
 .workspace-core #stage1 #assets .material-index>.row{grid-column:1/-1;grid-row:3;gap:6px;flex-wrap:wrap;margin:0;min-width:0}
 .workspace-core #stage1 #assets .material-index>.row :is(button,.filelabel){min-height:44px;font-size:12px;padding:8px 11px;white-space:normal}
 .workspace-core #stage1 #assets .material-index>.row .asset-report-toggle{margin-left:0;min-height:44px}
 .workspace-core #stage1 #assets .asset-report{grid-column:1/-1;grid-row:4;margin:0}
 .workspace-core #stage1 #assets .material-index>.error{grid-column:1/-1;grid-row:5}
 .workspace-core #stage2 #directionCards{grid-template-columns:minmax(0,1fr);gap:18px}
 .workspace-core #stage2 .direction-poster{min-height:0;padding:20px 20px 18px;border-radius:20px 7px;overflow-wrap:anywhere}
 .workspace-core #stage2 .poster-top{margin-bottom:86px}
 .workspace-core #stage2 .poster-body h3{font-size:26px;line-height:1.4;max-width:none}
 .workspace-core #stage2 .poster-body .story{font-size:14px;line-height:1.8}
 .workspace-core #stage2 .poster-body .tip-trigger{min-width:44px;min-height:44px;width:44px;height:44px}
 .workspace-core #stage2 .poster-body>button{min-height:48px;font-size:15px}
 .workspace-core #stage2 .poster-note{font-size:11px}
 .workspace-core>.panel .script-toolbar{display:flex;align-items:stretch;flex-direction:column;gap:10px;margin-bottom:18px}
 .workspace-core>.panel :is(.version-label,.version-label select){width:100%;min-width:0;max-width:100%}
 .workspace-core>.panel .script-actions{width:100%;justify-content:space-between;gap:8px;flex-wrap:wrap}
 .workspace-core>.panel .script-actions #openInsert{min-height:44px;padding:8px 12px}
 .workspace-core>.panel .script-actions .switch{flex:1 1 auto;min-width:0;justify-content:space-between}
 .workspace-core>.panel .script-actions .switch button{flex:1 1 0;min-height:44px;min-width:0;padding:7px 8px;white-space:nowrap;font-size:13px}
 .workspace-core>.panel .script-actions .switch{padding:2px}
 .workspace-core>.panel .plan-heading{display:grid;grid-template-columns:minmax(0,1fr);gap:9px}
 .workspace-core>.panel .plan-title{font-size:24px;line-height:1.45;overflow-wrap:anywhere}
 .workspace-core>.panel .plan-intro{font-size:14px;line-height:1.8;min-width:0;overflow-wrap:anywhere}
 .workspace-core>.panel .film-composition .film-row{gap:8px}
 .workspace-core>.panel .film-composition .film-strip{gap:20px}
 .workspace-core .film-composition .film-shot{min-height:58px;transform:none!important}
 .workspace-core .film-composition .film-shot .film-slot{transform:none!important}
 .film-label{font-size:11px;gap:1px;margin-top:5px}
 .workspace-core #stage3 .shot-list{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
 .workspace-core #stage3 .shot-card{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;padding:15px 16px;border-radius:18px 7px;min-width:0}
 .workspace-core #stage3 .shot-position{display:flex;align-items:baseline;flex-wrap:wrap;gap:5px 11px;padding:0 52px 6px 0;border:0;min-width:0;font-size:12px}
 .workspace-core #stage3 .shot-position strong{font-size:20px;line-height:1.2}
 .workspace-core #stage3 .source-window{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px;margin:0;flex-basis:100%}
 .workspace-core #stage3 .source-window strong{font-size:12px}
 .workspace-core #stage3 .shot-body{min-width:0;padding:0}
 .workspace-core #stage3 .shot-body h3{font-size:15px;line-height:1.75;overflow-wrap:anywhere}
 .workspace-core #stage3 .shot-body .caption{display:block;max-width:100%;padding:7px 9px;line-height:1.75;font-size:14px;white-space:normal;overflow-wrap:anywhere}
 .workspace-core #stage3 .shot-card .information-trigger{right:12px;top:12px;width:44px;height:44px;min-height:44px}
 .workspace-core #stage3 .shot-body>.row{flex-wrap:wrap;gap:6px 12px}
 .workspace-core>.panel .shot-select{min-height:44px;align-items:center;font-size:13px}
 .workspace-core>.panel .shot-select input[type=checkbox],.workspace-core>.panel .shot-choice input[type=checkbox]{width:18px;height:18px;flex-shrink:0}
 /* Reflow the same five-column editing list into progressively readable shot cards. */
 .workspace-core>.panel .slate-list{overflow:visible;border-radius:0;background:transparent;box-shadow:none}
 .workspace-core>.panel .slate-list :is(table,tbody){display:block;width:100%;min-width:0;max-width:100%;overflow:visible}
 .workspace-core>.panel .slate-list thead{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .workspace-core>.panel .slate-list tbody{display:grid;gap:12px}
 .workspace-core>.panel .slate-list tbody tr{display:grid;grid-template-columns:minmax(0,1fr);min-width:0;padding:14px 16px;border-radius:18px 6px;background:#ede6d4;overflow-wrap:anywhere}
 .workspace-core>.panel .slate-list td,.workspace-core>.panel .slate-list tbody tr:nth-child(even) td{display:block;width:auto;min-width:0;padding:9px 0;border-bottom:1px solid #52634d26}
 .workspace-core>.panel .slate-list tbody tr td:last-child{border-bottom:0}
 .workspace-core>.panel .slate-list .slate-position{display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px;padding-left:0}
 .workspace-core>.panel .slate-list .slate-position::before{display:none}
 .workspace-core>.panel .slate-list .slate-kicker{display:none}
 .workspace-core>.panel .slate-list .slate-number{font-size:25px;margin:0}
 .workspace-core>.panel .slate-list .slate-duration{margin:0}
 .workspace-core>.panel .slate-list .shot-select{flex-basis:100%;margin:0}
 .workspace-core>.panel .slate-list :is(.slate-source,.slate-visual,.slate-connect,.slate-sound)::before{display:block;font-size:11px;color:#5d6955;letter-spacing:.06em;margin-bottom:4px}
 .workspace-core>.panel .slate-list .slate-source::before{content:'原片定位'}
 .workspace-core>.panel .slate-list .slate-visual::before{content:'画面与字幕'}
 .workspace-core>.panel .slate-list .slate-connect::before{content:'连接与入出点'}
 .workspace-core>.panel .slate-list .slate-sound::before{content:'声音'}
 .workspace-core>.panel .slate-list .slate-soundmark{display:none}
 .workspace-core>.panel .slate-list .slate-caption{margin-top:8px}
 .workspace-core>.panel .slate-list .slate-filename{overflow-wrap:anywhere}
 .workspace-core>.panel .slate-list .clip-actions{margin-top:4px}
 .workspace-core>.panel .slate-list .slate-visual>p{font-size:16px;line-height:1.75}
 .workspace-core>.panel .music-recommendations{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
 .workspace-core>.panel button.music-track{display:grid;grid-template-columns:45px minmax(0,1fr);grid-template-rows:auto auto;gap:4px 14px;min-height:88px;padding:14px 18px;transform:none!important}
 .workspace-core>.panel button.music-track .music-disc{grid-column:1;grid-row:1/3;width:44px;height:44px}
 .workspace-core>.panel button.music-track .music-track-title{grid-column:2;grid-row:1;font-size:17px;white-space:normal;overflow-wrap:anywhere;line-height:1.35}
 .workspace-core>.panel button.music-track .music-track-meta{grid-column:2;grid-row:2;font-size:12px;line-height:1.45;overflow-wrap:anywhere}
 .workspace-core>.panel .music-controls{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;margin:14px 0}
 .workspace-core>.panel .music-controls label{min-width:0}
 .workspace-core>.panel .music-controls input[type=range]{min-height:44px}
 .workspace-core>.panel .music-audio{width:100%;max-width:100%}
 .workspace-core>.panel .feedback-box{padding:14px 12px}
 .workspace-core>.panel .insert-panel{padding:14px 12px;min-width:0}
 .workspace-core>.panel :is(.multi-picker,.multi-rows,.insert-import,.insert-assets){min-width:0;max-width:100%;flex-wrap:wrap}
 .workspace-core>.panel .insert-assets{display:grid;grid-template-columns:minmax(0,1fr)}
 .workspace-core>.panel .insert-heading{flex-wrap:wrap;gap:8px}
 .workspace-core>.panel .insert-asset{min-width:0;max-width:100%}
 .workspace-core>.panel .shot-choice{min-height:44px}
 .workspace-core>.panel .insert-budget{overflow-wrap:anywhere}
 .feedback-layer{left:max(12px,env(safe-area-inset-left,0px))!important;right:max(12px,env(safe-area-inset-right,0px));width:auto!important;top:auto!important;bottom:calc(12px + env(safe-area-inset-bottom,0px))}
 .feedback-layer .status-inner{padding:10px 12px;gap:6px;flex-wrap:wrap}
 .feedback-layer .status-inner .status{font-size:13px;line-height:1.6;-webkit-line-clamp:4}
 .feedback-layer .status-inner>.row{gap:4px}
 .feedback-layer .status-inner button{min-height:44px;white-space:nowrap;padding:6px 10px}
 .feedback-layer .creation-progress{width:min(540px,calc(100vw - 24px));max-height:calc(100dvh - 24px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));padding:20px 16px;grid-template-columns:minmax(0,1fr);overflow:auto}
 .workspace-core .creation-progress .creation-copy{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
 .workspace-core .creation-progress .creation-task{overflow-wrap:anywhere}
 .feedback-layer #cancelCreation,.feedback-layer #dismissProgress{min-height:44px}
 .workspace-core .creation-progress .creation-phases{font-size:11px}
 .drawer-card{width:100%;max-width:560px;padding:calc(18px + env(safe-area-inset-top,0px)) 18px calc(20px + env(safe-area-inset-bottom,0px))}
 .drawer-card .drawer-head{position:sticky;top:0;z-index:2;background:inherit;padding:4px 0 8px;gap:10px}
 .drawer-card :is(button,.filelabel){min-height:44px}
 .drawer-card :is(input,textarea,select){font-size:16px}
 .requirement-review,.clip-preview{width:min(560px,calc(100vw - 24px));max-height:calc(100dvh - 24px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));padding:16px;overflow:auto}
 .requirement-review :is(button,.filelabel),.clip-preview button{min-height:44px}
 .requirement-review :is(input,textarea,select){font-size:16px}
 .cloud-project-dialog .cloud-project-list{max-height:50dvh}
 .clip-preview .clip-head{gap:8px}
 .clip-preview video{width:100%;max-width:100%;max-height:min(48dvh,400px);object-fit:contain}
 .clip-preview .clip-footer{gap:6px;flex-wrap:wrap}
 .clip-preview .clip-footer button{flex:1 1 36%;min-width:0;white-space:normal}
 .information-card{width:min(380px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;overscroll-behavior:contain;padding:16px}
 .information-card.information-columns{grid-template-columns:minmax(0,1fr);gap:10px}
 .information-card section{border-left:0;border-top:1px solid #b8c29545;padding:10px 0 0}
 .information-card section:first-child{padding-top:0;border-top:0}
}
@media (max-width:380px){
 html{--mobile-gutter:12px}
 .steps .step strong{font-size:11px}
 .landing .landing-actions{gap:12px}
 .landing .landing-slogan{font-size:16px;max-width:290px}
 .workspace-core>.panel .script-actions #openInsert{padding-left:7px;padding-right:7px;font-size:12px}
 .workspace-core>.panel .script-actions .switch button{padding-left:5px;padding-right:5px;font-size:12px}
}
@media (max-height:480px) and (pointer:coarse){
 .landing-title{font-size:46px}.landing-slogan{font-size:15px;margin-top:12px;max-width:520px}
 .landing-actions{margin-top:14px}
 .studio{padding-top:calc(var(--mobile-chrome) + 1px)}
 .steps .step{min-height:48px;flex-direction:row;gap:5px}.steps .step .step-number{font-size:20px}
 .steps{padding-bottom:6px}
 .clip-preview video{max-height:42dvh}
 .feedback-layer .creation-progress .progress-cinema{display:none}
}
@media (max-width:760px), (max-width:1024px) and (pointer:coarse) {
 .projectname #exportProject{grid-column:auto}
 .landing .intro-background video,.landing .intro-final{object-position:28% center}
}
@media (max-width:760px), (max-width:1024px) and (pointer:coarse) {
 .workspace-core>.panel .slate-list tbody tr:hover{background:#ede6d4}
 .workspace-core>.panel .slate-list tbody tr:has(input:checked){background:#d9dfc2}
 html[data-theme="light"] .workspace-core>.panel .slate-list{background:transparent}
}
@media (max-width:1024px) and (pointer:coarse) {
 .workspace-core>.panel .music-recommendations.is-interacting button.music-track.is-active:not(.is-selected){background:transparent}
 html[data-theme="light"] .workspace-core>.panel .music-recommendations.is-interacting button.music-track.is-active:not(.is-selected){background:transparent}
}

/* V0.5.8: approved mobile bottom project bar, 55px before the safe-area inset. */
@media (max-width:760px), (max-width:1024px) and (pointer:coarse) {
 html{scroll-padding-bottom:calc(68px + env(safe-area-inset-bottom,0px))}
 body[data-view="studio"] .project-sidebar{
   position:fixed;inset:auto 0 0 0!important;transform:none;z-index:20;
   width:100%;max-width:none;margin:0;
   padding:5px max(14px,env(safe-area-inset-right,0px)) calc(5px + env(safe-area-inset-bottom,0px)) max(14px,env(safe-area-inset-left,0px));
   border:0;border-top:1px solid #b3a17c30;border-radius:0;
   background:#181c1df5;backdrop-filter:blur(18px);box-shadow:0 -4px 24px #0003;
 }
 html[data-theme="light"] body[data-view="studio"] .project-sidebar{background:#faf8f2f5;border-top-color:#d9d6c9;box-shadow:0 -4px 24px #3440360a}
 body[data-view="studio"] .project-sidebar .projectname{
   display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center;
   min-width:0;width:100%;max-width:650px;margin:0 auto;
 }
 body[data-view="studio"] .projectname>label{min-width:0;font-size:10px;line-height:1.3;letter-spacing:.04em;display:block;white-space:nowrap}
 body[data-view="studio"] .projectname textarea#title{
   width:100%;font-size:14px;line-height:20px;min-height:20px;max-height:20px;
   padding:0;margin:2px 0 0;border:0;white-space:nowrap;overflow:hidden;
   text-overflow:ellipsis;resize:none;
 }
 body[data-view="studio"] .projectname textarea#title:focus{font-size:16px;overflow-x:auto;outline-offset:1px}
 body[data-view="studio"] .projectname .row{display:grid;grid-template-columns:repeat(3,46px);gap:2px;padding-left:7px;border-left:1px solid #b3a17c24;margin:0;align-items:center}
 body[data-view="studio"] .projectname .row>:is(.quiet,.filelabel,#exportProject){
   display:flex;flex-direction:column;justify-content:center;align-items:center;
   padding:3px 0;gap:1px;min-height:44px;height:44px;min-width:42px;
   border-radius:5px;line-height:1.3;white-space:nowrap;font-size:11px;
 }
 body[data-view="studio"] .projectname .row>:is(.quiet,.filelabel,#exportProject)::before{
   flex:0 0 auto;line-height:18px;width:20px;height:18px;min-height:0;font-size:18px;font-family:system-ui,sans-serif;text-align:center;
 }
 body[data-view="studio"] .projectname :is(#openCloudProject,#localOpenLabel)::before{
   content:'';width:16px;height:16px;display:block;
   background:currentColor;opacity:.88;
   mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6a2 2 0 0 1 2-2h5l2 2h7a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2Z'/%3E%3Cpath d='M3 9h18'/%3E%3C/svg%3E");mask-size:contain;mask-repeat:no-repeat;mask-position:center;
 }
 /* Keep real save warnings accessible without expanding the permanent bottom bar. */
 body[data-view="studio"] .projectname .save-note:not(:empty){
   position:absolute;bottom:100%;left:max(14px,env(safe-area-inset-left,0px));right:max(14px,env(safe-area-inset-right,0px));
   padding:7px 10px;margin:0 0 4px;min-height:0;border-radius:7px;background:var(--raised);color:var(--ink);box-shadow:0 3px 14px #0002;font-size:11px;overflow-wrap:anywhere;
 }
 body[data-view="studio"] .feedback-layer{bottom:calc(66px + env(safe-area-inset-bottom,0px))}
}

@media (max-width: 768px), (max-width: 950px) and (pointer: coarse) {
    html body [data-cixing-home-font] {
        font-size: 16px !important;
    }
}
