:root{color-scheme:dark;--bg:#0a0e10;--panel:#131b1e;--line:#3b4a50;--ink:#eef3f3;--muted:#b8c7cb;--teal:#03dac6}*{box-sizing:border-box}[hidden]{display:none!important}html,body{height:100%;margin:0}body{background:var(--bg);color:var(--ink);font:16px/1.35 system-ui,-apple-system,"Segoe UI",sans-serif;display:flex;flex-direction:column;overflow:hidden}button,input,select,textarea{font:inherit;color:inherit;background:#1c2a30;border:1px solid #63767f;border-radius:4px}button,select,input[type=text],input[type=search],input:not([type]){min-height:44px}button{padding:7px 10px;cursor:pointer;font-weight:600}button:hover{background:#2b3d44}button:disabled{opacity:.5;cursor:default}button[aria-pressed=true],button.primary{background:#193f38;border-color:var(--teal);color:#b8fff3}:focus-visible{outline:3px solid #ffdc8a;outline-offset:2px}.danger{border-color:#e49b9e;color:#ffd1d3}a{color:var(--teal)}.app-header{flex:0 0 54px;display:flex;align-items:center;gap:8px;padding:4px 12px;border-bottom:1px solid var(--line)}h1{font-size:19px;font-weight:650;margin:0 auto 0 0;white-space:nowrap}h1 span{font-size:14px;display:block;color:var(--muted);font-weight:500}h1 small{font-size:12px;color:var(--muted)}nav{display:flex;gap:5px}nav button{font-size:15px}main{min-height:0;flex:1;display:flex}#lesson-one{flex:1;min-height:0;display:flex}iframe{width:100%;height:100%;border:0}#lesson-two{flex:1;min-width:0;min-height:0;padding:8px 12px 0;display:flex;flex-direction:column}.project-bar{display:flex;align-items:end;gap:8px;flex:none}.project-bar label{min-width:0;display:flex;flex-direction:column;font-size:13px;gap:2px}.project-bar label:nth-child(1){flex:1}.project-bar label:nth-child(2){flex:1.1}.project-bar label:nth-child(3){flex:1}.project-bar input{width:100%;padding:6px 9px}.project-bar select{max-width:100%;padding:6px}.project-bar button{white-space:nowrap}.status-bar{display:flex;align-items:center;gap:12px;min-height:30px;font-size:14px;padding:3px 0}.status-bar p{margin:0;flex:1}#save-state{color:var(--teal);white-space:nowrap}.brief{font-size:15px;margin:0 0 7px;color:var(--muted);min-height:22px}.workspace{flex:1;min-height:0;display:grid;grid-template-columns:minmax(250px,.95fr) minmax(330px,1.3fr) minmax(290px,1fr);gap:12px}.panel{min-width:0;min-height:0;background:var(--panel);border:1px solid var(--line);border-radius:4px;display:flex;flex-direction:column;padding:9px}.panel-heading{min-height:44px;display:flex;align-items:center;gap:7px;flex:none}.panel-heading h2{font-size:18px;margin:0;flex:1}#library-count,#layer-count{font-size:13px;color:var(--muted)}.panel-heading button{font-size:14px}input[type=search]{width:100%;padding:5px 8px}.search-label{display:block}.hint{font-size:14px;color:var(--muted);margin:5px 0 8px;line-height:1.4}.scroll{overflow:auto;min-height:0;scrollbar-gutter:stable;overscroll-behavior:contain}.library .scroll,.layers .scroll{flex:1}.sound-row{display:flex;gap:6px;border-top:1px solid var(--line);padding:5px 0}.audition{flex:1;min-width:0;text-align:left;display:flex;align-items:center;gap:9px;font-size:15px;min-height:53px}.audition span:last-child{display:flex;flex-direction:column}.audition small{color:var(--muted);font-size:12px;font-weight:400}.audition[aria-pressed=true] small{color:#b8fff3}.sound-add{flex:0 0 58px;font-size:14px}.layer-row{border-top:1px solid var(--line);padding:5px 0}.layer-row.selected{border-left:3px solid var(--teal);padding-left:6px}.layer-top{display:flex;gap:5px}.layer-select{flex:1;min-width:0;text-align:left;font-size:15px}.layer-select span{display:block;font-size:12px;font-weight:400;color:var(--muted)}.layer-toggle{min-width:66px;font-size:14px}.remove{width:44px;flex:none;font-size:20px}.layer-mix{display:grid;grid-template-columns:auto minmax(45px,1fr) auto minmax(45px,1fr);align-items:center;gap:4px}.layer-mix label{font-size:12px}.layer-mix input{height:44px;width:100%;min-width:0;accent-color:var(--teal);margin:0}.controls #inspector{padding-right:5px;flex:1}.controls h3{font-size:18px;margin:3px 0}.controls label{display:flex;justify-content:space-between;gap:8px;font-size:15px;margin-top:5px}.controls input[type=range]{width:100%;height:44px;margin:0;accent-color:var(--teal)}.controls select{width:100%;padding:5px;font-size:15px}.controls output{color:var(--teal);font-size:14px}.controls #selected-play{width:100%;margin-top:4px}.fade-row{display:flex;gap:10px;align-items:center;margin:5px 0}.fade-row label{flex:1;margin:0}.fade-row select{width:86px}.two-buttons{display:grid;grid-template-columns:1fr 1fr;gap:6px}.two-buttons button{font-size:14px}#drone-controls{border-top:1px solid #665579;padding-top:7px;margin-top:10px}#empty,#select-hint{color:var(--muted);line-height:1.5;margin:8px 0}footer{flex:none;font-size:12px;padding:6px 0;color:var(--muted)}dialog{background:#131b1e;color:var(--ink);border:1px solid #71878c;border-radius:5px;width:min(680px,94vw);max-height:90dvh;overflow:auto;padding:20px}dialog::backdrop{background:#000b}dialog h2{font-size:21px;margin:14px 0 10px}dialog p,dialog li{font-size:17px;line-height:1.5}dialog li{margin-bottom:9px}dialog label{display:block;margin:10px 0 5px}dialog textarea{width:100%;padding:8px;resize:vertical;min-height:88px}dialog select{width:100%;padding:7px}.file-buttons{display:flex;flex-wrap:wrap;gap:7px;margin:10px 0}.skip{position:absolute;top:-100px;left:8px;background:var(--bg);padding:10px;z-index:50}.skip:focus{top:5px}.sr-only{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden;white-space:nowrap}
@media(max-width:1100px){.app-header{padding-inline:8px;gap:5px}h1{font-size:17px}h1 span{font-size:12px}nav button{font-size:14px;padding:6px}#help{font-size:14px}.workspace{gap:8px;grid-template-columns:minmax(240px,.9fr) minmax(330px,1.25fr) minmax(290px,1fr)}#lesson-two{padding-inline:8px}.panel{padding:7px}.panel-heading{flex-wrap:wrap;gap:4px}.layers .panel-heading h2{font-size:17px}.layers .panel-heading button{padding-inline:6px;font-size:13px}.status-bar{font-size:13px}.brief{font-size:14px}.controls #inspector{padding-right:3px}}
@media(max-width:900px){body{overflow:auto;min-height:100dvh;height:auto}.app-header{flex-wrap:wrap}.app-header nav{order:3;width:100%}.app-header nav button{flex:1}main{min-height:calc(100dvh - 110px)}#lesson-one{height:calc(100dvh - 110px)}#lesson-two{min-height:900px}.project-bar{flex-wrap:wrap}.project-bar label{flex:1 0 40%!important}.workspace{grid-template-columns:1fr 1.2fr;grid-template-rows:minmax(420px,60vh) auto}.controls{grid-column:1/-1;min-height:360px}.controls #inspector{max-height:600px}.brief{margin-top:5px}.status-bar{align-items:start}.status-bar p{min-height:38px}}

/* Keep selected drone shaping in view; secondary fades/classification stay in the same scroll area. */
.primary-mix{display:grid;grid-template-columns:1fr 1fr;gap:0 10px}.primary-mix label[for=volume]{grid-column:1;grid-row:1}.primary-mix label[for=pan]{grid-column:2;grid-row:1}.primary-mix #volume{grid-column:1;grid-row:2}.primary-mix #pan{grid-column:2;grid-row:2}.character-row{display:flex;align-items:center;gap:8px;min-height:44px}.controls .character-row label{flex:0 0 90px;font-size:14px;margin:0}.controls .character-row select{flex:1;min-width:0;width:auto}#drone-controls label{margin-top:2px}#drone-controls{padding-top:5px;margin-top:6px}

.drone-tone{display:grid;grid-template-columns:1fr 1fr;gap:0 10px}.drone-tone label[for=pitch]{grid-column:1;grid-row:1}.drone-tone #pitch{grid-column:1;grid-row:2}.drone-tone label[for=brightness]{grid-column:2;grid-row:1}.drone-tone #brightness{grid-column:2;grid-row:2}.fade-tools{display:grid;grid-template-columns:auto 64px 1fr 1fr;align-items:center;gap:5px;margin:5px 0}.fade-tools .fade-row,.fade-tools .two-buttons{display:contents}.controls .fade-tools select{width:64px;padding:4px;min-width:0}.controls .fade-tools label{font-size:14px;margin:0}.fade-tools button{padding:5px;font-size:14px}#motion-help{font-size:13px}

.layer-mix label{font-size:13px}

/* V0.3a: ten layers stay inside the list; essential inspector controls stay visible. */
#category{width:100%;min-height:44px;margin-top:5px;padding:5px}.layer-mix{grid-template-columns:1fr 1fr;gap:0 8px}.layer-mix label{grid-row:1;font-size:12px;padding-top:3px}.layer-mix input{grid-row:2}.layer-mix label:nth-child(3),.layer-mix input:nth-child(4){grid-column:2}.replay{width:44px;flex:none;font-size:20px}.layer-select{overflow-wrap:anywhere}.selected-transport{display:flex;gap:5px;margin:5px 0}.controls .selected-transport #selected-play{margin:0;flex:1;width:auto}.selected-transport #retrigger{min-width:75px}#layer-name{width:100%;padding:6px;font-size:15px}.controls label{font-size:14px;margin-top:3px}.behaviour-row{display:flex;gap:6px;margin:4px 0}.behaviour-row label{flex:1;display:flex;flex-direction:column;gap:2px}.behaviour-row #gap-label{flex:0 0 85px}.behaviour-row select{font-size:14px;min-width:0}.controls .fade-tools{display:flex;gap:5px}.fade-tools .fade-row{display:block}.fade-tools .two-buttons{display:grid;flex:1}.controls .fade-tools select{width:72px}#drone-controls{margin-top:5px;padding-top:5px}#motion-help.sr-only{margin:0}.controls #kind{font-size:14px}.controls #inspector{padding-right:3px}.layer-toggle{min-width:58px}.controls #character{font-size:14px}.controls #selected-name{margin:0}

#arrange{white-space:nowrap;font-size:14px}#arranger{flex:1;min-height:0}.arrange-toolbar{display:flex;align-items:center;gap:8px;flex:none;min-height:48px}.arrange-toolbar h2{font-size:19px;margin:0 auto 0 0}.arrange-toolbar label{display:flex;align-items:center;gap:5px;font-size:14px}.arrange-toolbar input{width:80px;min-height:44px;padding:6px}.arrange-toolbar output{font-variant-numeric:tabular-nums;white-space:nowrap;min-width:100px;font-size:16px}.sequence-help{font-size:14px;color:var(--muted);margin:0 0 8px}#seq-status{min-height:20px;margin:5px 0}#cue-events{list-style:none;padding:0;margin:0;flex:1}.cue-row{display:grid;grid-template-columns:28px 94px minmax(170px,1.5fr) minmax(140px,1fr) 90px 44px;align-items:end;gap:9px;padding:7px 5px;border-top:1px solid var(--line)}.cue-row label{display:flex;flex-direction:column;gap:3px;font-size:13px;min-width:0}.cue-row input,.cue-row select{width:100%;min-height:44px;padding:5px;font-size:15px;min-width:0}.cue-row .cue-number{align-self:center;text-align:center;font-size:16px}.cue-row.current{border-left:4px solid var(--teal);background:#16352f}.cue-row.next{outline:1px dashed #ffdc8a;outline-offset:-2px}.cue-row input:disabled,.cue-row select:disabled{opacity:.8}.cue-row button:disabled{opacity:.5}#seq-status{overflow-wrap:anywhere}@media(max-width:1100px){.project-bar{gap:5px}.project-bar #arrange{padding-inline:7px;font-size:13px}.arrange-toolbar{gap:6px}.arrange-toolbar h2{font-size:17px}.arrange-toolbar button{font-size:14px}.cue-row{gap:7px;grid-template-columns:24px 86px minmax(160px,1.4fr) minmax(130px,1fr) 80px 44px}}@media(max-width:900px){.arrange-toolbar{flex-wrap:wrap}.cue-row{grid-template-columns:24px 80px 1fr 1fr 70px 44px}#arranger{min-height:600px}}

#production{font-size:14px;white-space:nowrap}#production-dialog{width:min(1080px,96vw);padding:16px;max-height:94dvh;overflow:auto}.production-header{display:flex;align-items:center;gap:12px;margin-bottom:10px}.production-header h2{margin:0;flex:1;font-size:22px}.production-tabs{border-bottom:1px solid var(--line);padding-bottom:10px;margin-bottom:12px}.production-tabs button{min-height:44px}.production-actions{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}#audio-export-view{max-width:780px;margin-inline:auto}#audio-export-view h3{font-size:20px}#audio-export-view p{font-size:16px;line-height:1.45}#audio-export-view p.hint{font-size:14px}#background-choice{display:flex;align-items:center;gap:12px}#background-choice select{min-height:44px;padding:6px}#wav-preview{width:100%;height:54px}#wav-info{font-size:14px!important;font-variant-numeric:tabular-nums}#export-status{min-height:24px}#sheet-controls{display:flex;align-items:center;gap:12px;margin-bottom:12px}#sheet-controls p{flex:1;font-size:15px;margin:0}#sheet-paper{background:#38474b;overflow:auto;max-height:calc(94dvh - 200px);padding:16px}#sheet-paper .cue-sheet{width:794px;max-width:100%}@media(max-width:1100px){.project-bar #production{font-size:14px;padding-inline:7px}.production-header h2{font-size:22px}#production-dialog{padding:12px}}

#production-dialog.show-sheet[open]{height:94dvh;display:flex;flex-direction:column;overflow:hidden}.show-sheet .production-header,.show-sheet .production-tabs,.show-sheet #sheet-controls{flex:none}.show-sheet #sheet-view{display:flex;flex-direction:column;flex:1;min-height:0}.show-sheet #sheet-paper{flex:1;min-height:0;max-height:none}

/* Lesson 3 is contained, with the original mixer dimensions retained. */
.app-header nav{flex:1;min-width:0}.app-header nav button{flex:1;min-width:0;line-height:1.2}.app-header h1{margin-right:8px}.app-header #help{white-space:nowrap}
#lesson-three{display:flex;flex:1;min-width:0;min-height:0;flex-direction:column;padding:8px 12px 0}.sp-toolbar{display:flex;gap:8px;align-items:end}.sp-toolbar label{display:flex;flex-direction:column;flex:1;min-width:0;font-size:13px}.sp-toolbar input{width:100%;padding:7px}.sp-toolbar button{white-space:nowrap}.sp-workspace{display:grid;grid-template-columns:minmax(480px,1.65fr) minmax(300px,1fr);gap:12px;flex:1;min-height:0}.sp-workspace h2{font-size:19px;margin:0 0 6px}.sp-workspace h2 small{font-size:13px;color:var(--muted);font-weight:400;margin-left:8px}.sp-plan-panel{overflow:auto}.sp-choices{display:flex;gap:10px}.sp-choices label{flex:1;display:flex;flex-direction:column;font-size:14px}.sp-choices select{width:100%;padding:5px}#stage-orientation{min-height:40px;margin:6px 0}#theatre-plan{position:relative;flex:1;min-height:270px;border:1px solid #71878c;border-radius:4px;background:#10181c;overflow:hidden}#performance-area{position:absolute;left:22%;right:22%;top:25%;bottom:34%;border:2px solid #a8b9bc;background:#26343a;touch-action:manipulation;cursor:crosshair}.area-title{position:absolute;top:3px;left:0;width:100%;text-align:center;font-size:13px;pointer-events:none}.performer{position:absolute;bottom:3px;width:100%;text-align:center;font-size:12px;pointer-events:none}.audience{position:absolute;left:22%;right:22%;background:repeating-linear-gradient(0deg,#21453f 0px,#21453f 9px,#172d2c 9px,#172d2c 14px);border:1px solid #65938b;text-align:center;font-size:13px;padding:6px;line-height:1.3}#audience-a{top:80%;bottom:2%}#audience-b{top:2%;height:17%}.stage-right,.stage-left{position:absolute;top:40%;font-size:13px;text-align:center;width:20%}.stage-right{left:0}.stage-left{right:0}.speaker{position:absolute;text-align:center;transform:translate(-50%,-50%);font-size:12px;line-height:1.2;color:#ffdc8a}.source-marker{position:absolute;transform:translate(-50%,-50%);width:44px;height:44px;min-width:44px;border-radius:50%;background:#273b48;border:2px solid #d4e0e6;color:white;padding:0;z-index:2}.source-marker[aria-pressed=true]{z-index:3;outline:2px solid var(--teal);outline-offset:2px}.source-marker:focus-visible{z-index:4;outline:3px solid #ffdc8a}.sp-legend{font-size:13px;margin:7px 0 3px}.sp-honesty{margin-bottom:0}.sp-editor{overflow:hidden}.sp-editor label{display:flex;justify-content:space-between;font-size:14px;margin:5px 0 1px}.sp-editor select{width:100%;padding:5px}.sp-editor input[type=range]{width:100%;height:44px;margin:0;accent-color:var(--teal)}.sp-editor output{color:var(--teal)}#sp-controls{flex:1;margin-top:7px;padding-right:5px}#sp-play{width:100%}#sp-save-state{font-size:14px;color:var(--teal);white-space:nowrap}
@media(max-width:1100px){.app-header{gap:6px;padding-inline:8px}.app-header h1{font-size:17px;margin-right:2px}.app-header nav button{font-size:14px;padding-inline:6px}.app-header #help{font-size:14px;padding-inline:6px}.sp-toolbar{gap:6px}.sp-toolbar button{font-size:14px}.sp-workspace{grid-template-columns:minmax(470px,1.55fr) minmax(290px,1fr)}.sp-workspace h2 small{display:block;margin:2px 0 0}.sp-honesty{font-size:13px}#stage-orientation{font-size:13px}}
@media(max-width:900px){#lesson-three{overflow:auto}.sp-workspace{display:flex;flex-direction:column;flex:none}.sp-plan-panel{min-height:530px}.sp-editor{min-height:600px}.sp-toolbar{flex-wrap:wrap}.sp-toolbar label{flex-basis:100%}}

#audio-output{font-size:14px;line-height:1.2;min-width:64px}#audio-dialog p{line-height:1.5}#restart-audio{min-height:44px}

#lesson-one{flex-direction:column}.l1-project-bar{display:flex;align-items:end;gap:8px;padding:6px 12px 0;flex:none}.l1-project-bar label{display:flex;flex:1;min-width:0;flex-direction:column;font-size:13px}.l1-project-bar input{width:100%;padding:6px 9px}.l1-project-bar button{white-space:nowrap;font-size:14px}.l1-message{font-size:13px;color:var(--muted);margin:3px 12px 5px;min-height:18px}#cue-frame{flex:1;min-height:0}#name-input{display:block;width:100%;padding:8px;min-height:44px;margin-top:5px}#name-dialog h2{font-size:22px}#name-error{color:#ffcfce;min-height:24px}#name-dialog p{line-height:1.5}.project-bar #save,.project-bar #files{font-size:14px;padding-inline:7px}
.l1-project-bar input,.project-bar #project-name,.sp-toolbar #sp-title{font-size:15px}
.library-subheading{font-size:14px;margin:8px 0 4px;color:var(--muted)}#library-scroll{flex:1}#lesson-four{display:flex;flex-direction:column;flex:1;min-width:0;min-height:0}#l4-project-name{font-size:15px}.workshop-intro{width:min(850px,100%);margin:auto;padding:24px 32px;overflow:auto}.workshop-intro h2{font-size:28px;margin:0 0 18px}.workshop-intro p,.workshop-intro li{line-height:1.5}.workshop-intro li{margin:10px 0}.workshop-intro .hint{margin-top:15px}#sound-workshop{display:flex;flex-direction:column;flex:1;min-height:0;padding:6px 12px}.workshop-bar{display:flex;align-items:center;gap:8px;flex:none}.workshop-bar h2{font-size:20px;flex:1;margin:0}#workshop-status{font-size:14px;margin:5px 0;min-height:20px}.workshop-grid{display:grid;grid-template-columns:300px minmax(0,1fr);gap:12px;flex:1;min-height:0}.workshop-grid h3{font-size:18px;margin:0 0 6px}.workshop-source{display:block;padding-right:10px}.workshop-source label,.workshop-editor label{display:flex;justify-content:space-between;font-size:14px;margin:6px 0 3px}.workshop-source select,.workshop-editor input:not([type=range]):not([type=checkbox]){width:100%;min-height:44px;padding:6px}.workshop-source input[type=file]{font-size:14px;width:100%;min-height:44px}.workshop-source hr{border:0;border-top:1px solid var(--line);margin:14px 0}#use-library-sound{width:100%;margin-top:6px}#record-status{font-size:14px;margin:6px 0}#record-time{font-variant-numeric:tabular-nums;font-size:14px}#record-level{width:100%;height:24px;margin-bottom:6px}.workshop-editor{overflow:hidden}#original-sound{font-size:15px;margin:0 0 4px}#sound-wave{height:76px;min-height:76px;width:100%;background:#0c1417;border:1px solid var(--line)}#editing-tools{flex:1;padding-right:6px;margin-top:6px}.workshop-editor input[type=range]{width:100%;height:44px;accent-color:var(--teal);margin:0}.trim-row{display:flex;align-items:end;gap:8px}.trim-row label{display:block;flex:1;min-width:0}.trim-row input{width:100%}.trim-row button{white-space:nowrap}.workshop-editor .reverse-label{align-items:center;justify-content:start;min-height:44px;gap:10px}.reverse-label input{width:24px;height:24px}.workshop-editor output{color:var(--teal)}.workshop-challenge{border-top:1px solid var(--line);margin-top:14px;padding-top:10px}.workshop-challenge h3{font-size:17px}.workshop-challenge ol{font-size:14px;line-height:1.5;margin:5px 0;padding-left:22px}#sound-rename-input{width:100%;padding:8px;min-height:44px}@media(max-width:1100px){.app-header nav button{font-size:14px;padding-inline:5px}.workshop-grid{grid-template-columns:280px minmax(0,1fr)}.workshop-source .two-buttons button,.workshop-editor .two-buttons button{font-size:14px}.workshop-intro{padding:20px 28px}}
