*{box-sizing:border-box}:root{color-scheme:dark;font:16px/1.35 Arial,sans-serif;background:#09171d;color:#edf5f6}html,body{margin:0;width:100%;height:100%;overflow:hidden}body{display:grid;grid-template-rows:44px minmax(0,1fr) 256px;height:100dvh}header{display:flex;align-items:center;gap:8px;padding:4px 12px;border-bottom:1px solid #3c5961;background:#0d2027}header strong{margin-right:auto;font-size:20px}header strong span{color:#39ddc7}header small{font-size:14px;font-weight:normal;margin-left:8px}header #ready{font-size:13px;max-width:260px}button,select,input,textarea{font:inherit;color:inherit}button,select,input[type=number],input[type=text],input:not([type]),textarea{background:#142c35;border:1px solid #688b95;border-radius:4px}button{cursor:pointer;min-height:36px;padding:5px 9px}button.primary{background:#12675f;border-color:#54e5cf}button:hover:not(:disabled){background:#24515a}button[aria-pressed=true],button[aria-selected=true]{background:#175a54;border:2px solid #58e7d2}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #ffd78a;outline-offset:-2px}:disabled{opacity:.45;cursor:default}[hidden]{display:none!important}main{display:grid;grid-template-columns:minmax(0,1fr) 310px;min-height:0}#stage{position:relative;min-height:0;min-width:0;overflow:hidden;background:#030b10}canvas{display:block}aside{display:flex;flex-direction:column;gap:6px;min-height:0;padding:8px 10px;border-left:1px solid #45616a;background:#0e2028}aside>select{width:100%;min-height:36px}#panel-body{overflow:auto;min-height:0;flex:1}h2{font-size:18px;margin:3px 0 8px}p{margin:5px 0 9px}ol{padding-left:22px;margin:8px 0}li{margin-bottom:8px}.small{font-size:12px;line-height:1.3;color:#c3d4d9}.session{font-size:12px;line-height:1.3;margin:0;border-top:1px solid #45616a;padding-top:5px}#task-nav,.actions{display:flex;gap:6px;align-items:center}#task-nav{margin-top:8px}#task-nav button{flex:1}#reset-task{width:100%;margin-top:8px}#tabs{display:flex;gap:4px}#tabs button{flex:1;font-size:14px;padding:4px}#transport{border-top:1px solid #45616a;padding-top:5px;font-size:13px}#transport p{margin:0 0 4px}#go{font-size:20px;min-width:70px;min-height:44px}#transport .actions button:last-child{font-size:12px}#transport .actions{justify-content:space-between}#cue-panel>label{display:block;font-size:14px}#cue-name{width:100%;height:36px;padding:5px}.cue-fields{display:flex;gap:7px;margin:6px 0;font-size:13px}.cue-fields label:first-child{width:85px}.cue-fields label:last-child{flex:1;min-width:0}.cue-fields input,.cue-fields select{width:100%;height:36px;padding:3px}#draft-label{font-size:13px;color:#83ead7}#save-cue{flex:1}#new-cue{font-size:12px;max-width:118px}#cue-list{max-height:110px;overflow:auto;margin:7px 0}#cue-list button{display:block;width:100%;text-align:left;margin:3px 0}#blackout{font-size:13px}#script-lines button{display:block;text-align:left;width:100%;padding:7px;min-height:44px;margin-bottom:4px}#script-lines p{margin:0}.marker{display:block;color:#91efdb;font-size:13px}textarea{width:100%;padding:6px;font-size:15px}summary{cursor:pointer;min-height:40px}#desk{display:grid;grid-template-columns:565px minmax(390px,1fr) 320px;min-height:0;border-top:1px solid #66828a;background:#0c2027}#desk>section{padding:7px;border-right:1px solid #45616a;min-width:0;overflow:hidden}#desk h2{font-size:15px;margin:0 0 5px}#desk h2 .small{font-weight:normal;margin-left:5px}#faders{display:grid;grid-template-columns:repeat(12,44px);justify-content:space-between;height:215px}.channel{display:flex;flex-direction:column;align-items:center;border-radius:4px;padding:2px 0}.channel.selected{background:#173e43}.channel button{width:44px;min-height:44px;padding:0}.channel output{font-size:14px;height:23px;padding-top:3px}.channel input{writing-mode:vertical-lr;direction:rtl;width:44px;height:134px;accent-color:#43d6c0;margin:0;cursor:pointer}.identity-row{height:34px;display:flex;align-items:flex-start;gap:4px}.identity-row h2{flex:1;font-size:13px!important;line-height:16px}.on{font-size:14px;display:flex;align-items:center;gap:3px}.on input{width:20px;height:20px;margin:0}.editor-columns{display:grid;grid-template-columns:132px minmax(0,1fr);gap:8px}.colour{display:flex;flex-direction:column;align-items:center;gap:3px}#wheel{width:112px;height:112px;touch-action:none;border-radius:50%;cursor:crosshair}.colour #gel{height:15px;white-space:nowrap;margin:0}.colour #white{min-height:30px;padding:2px 5px;font-size:13px}.hsv{display:flex;gap:3px;font-size:12px;width:100%}.hsv label{width:33.3%;text-align:center}.hsv input{width:100%;min-width:0;height:30px;padding:2px;font-size:13px}.focus>label{font-size:14px;display:block}.focus input[type=range]{width:100%;height:32px;accent-color:#55dcca;margin:0;cursor:pointer}.focus select{width:100%;height:32px;font-size:14px}.focus output{float:right}#beam-note{height:14px;margin:0 0 3px}.gobo-heading{font-size:14px;margin-top:4px}#gobos{display:flex;gap:3px;margin-top:4px}#gobos button{width:44px;height:44px;min-height:44px;padding:2px;font-size:10px;display:flex;flex-direction:column;align-items:center;justify-content:center}#gobos svg{width:26px;height:25px}.rig h2{font-size:14px}#plan{position:relative;height:180px;width:100%}#plan svg{width:100%;height:100%}#plan rect{fill:#132d35;stroke:#63838d}#plan path{fill:none;stroke:#94aeb5;stroke-width:2}#plan text{font-size:11px;fill:#b6cbd0;text-anchor:middle}#plan button{position:absolute;transform:translate(-50%,-50%);width:44px;height:44px;min-height:44px;border-radius:50%;padding:0;font-size:14px;background:#1a323d}#plan button.lit{border-color:#e4c68e}#plan button[aria-pressed=true]{background:#17675e;border:2px solid #66ecd7}.rig>p{font-size:11px;margin:0}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}#status{position:fixed;bottom:267px;left:10px;max-width:65vw;background:#16413f;padding:8px;border-radius:4px;pointer-events:none;font-size:14px;z-index:5}#status:empty{display:none}dialog{max-width:410px;background:#132d35;color:#edf5f6;border:1px solid #8bd2c6;border-radius:8px}dialog::backdrop{background:#0009}#technical{position:fixed;top:44px;left:0;max-height:50vh;max-width:55vw;overflow:auto;background:#0c2027;z-index:10}pre{white-space:pre-wrap;font-size:11px}@media(max-width:1250px){#desk{grid-template-columns:550px minmax(350px,1fr) 300px}#faders{grid-template-columns:repeat(12,42px)}.channel button{width:42px}header small{display:none}}
#task-nav{flex:0 0 38px;margin:0}#task-nav button{font-size:13px;min-height:38px;padding:4px}#reset-task{width:auto;margin:0}#wheel{width:104px;height:104px}.hsv label{white-space:nowrap}.hsv input{height:28px}
.hsv label{display:flex;flex-direction:column;gap:1px;align-items:stretch}.hsv input{display:block}

body.creative #task,body.creative #task-nav{display:none!important}#creative-bar{display:flex;gap:6px;flex:0 0 28px}#creative-bar button{flex:1;min-height:28px;height:28px;padding:2px 5px;font-size:13px}body.creative aside{padding:6px 10px;gap:2px}body.creative #tabs{height:30px;flex:0 0 30px}body.creative #tabs button{min-height:30px;height:30px}body.creative #transport{flex:0 0 66px;padding-top:2px}body.creative #transport p{font-size:12px;height:14px;line-height:14px;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}body.creative #transport .actions{margin-top:2px}body.creative #transport button{min-height:34px;height:34px;padding:2px 7px}body.creative #transport #go{font-size:20px}body.creative .session{font-size:11px;line-height:14px;height:16px;padding-top:1px;white-space:nowrap}body.creative #panel-body{overflow:hidden}body.creative #script-panel{height:100%;display:flex;flex-direction:column;min-height:0}body.creative #script-lines{flex:1;min-height:0;overflow:auto}body.creative #cue-panel,body.creative #guidance{height:100%;overflow:auto}#record-area{display:flex;gap:5px;margin-top:5px}#record-area button{min-height:34px;height:34px;padding:2px 7px;font-size:13px}#record{flex:1}#new-cue{max-width:none}.focus input[type=range]{height:28px}.focus select{height:30px}#beam-note:empty{display:none}.focus:has(#beam:disabled) #beam{display:none}.colour #gel{white-space:normal;text-align:center;height:28px;line-height:14px}#wheel{width:96px;height:96px}#record-dialog{width:360px}#record-dialog>label{display:block}#record-dialog .cue-fields{margin:10px 0}#record-dialog #draft-label{margin:0 0 8px}#script-dialog{width:520px;max-width:90vw}#script-edit{min-height:190px}#script-lines button[aria-pressed=true]{border-color:#5ce6cf;background:#18483f}

/* R01d: the Creative script owns the available reading area. */
body.creative #creative-bar{flex:0 0 30px;height:30px}
body.creative #creative-bar button{height:30px;min-height:30px}
body.creative #creative-bar #cue-help{flex:0 0 30px;font-size:17px}
body.creative #transport{flex:0 0 56px;padding-top:3px}
body.creative #transport #current{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
body.creative #transport #next-trigger{font-size:13px;height:16px;line-height:16px}
body.creative #script-panel{background:#233943;border:1px solid #597682;border-radius:5px}
body.creative #script-lines{padding:5px;scrollbar-gutter:stable}
body.creative #script-lines button{background:transparent;border:1px solid transparent;line-height:1.45;padding:8px 7px;margin-bottom:3px}
body.creative #script-lines button:hover{background:#304f59}
body.creative #script-lines button[aria-pressed=true]{background:#155c58;border:2px solid #65ead5;border-left:5px solid #65ead5;padding:7px 6px 7px 3px}
.marker{font-size:12px;color:#b3fff0;border-left:2px solid #65ead5;padding-left:5px;margin-top:3px}
#record-area{display:block;margin-top:5px}#record-area h3{font-size:12px;line-height:15px;font-weight:normal;margin:0 0 3px}
.record-buttons{display:flex;gap:5px}.record-buttons button{flex:1;min-width:0;white-space:nowrap}#record-area button{padding:2px 4px;font-size:12px;height:32px;min-height:32px}
body.creative .focus .gobo-heading{margin-top:2px}body.creative .focus #gobos{margin-top:2px}
body.creative .focus input[type=range]{height:25px}body.creative .focus select{height:28px}

body.creative .identity-row{height:28px}body.creative #record-area{margin-top:3px}body.creative #record-area h3{line-height:14px;margin-bottom:2px}

/* R01d: displayed WebGL size is independent of the drawing buffer density. */
#stage > canvas{width:100%;height:100%;display:block}
/* Four desk areas in Creative; the recorder never belongs to .focus. */
body.creative #desk{grid-template-columns:543px minmax(387px,1fr) 174px 250px}
body.creative #faders{grid-template-columns:repeat(12,44px)}
body.creative .recorder{display:block;padding:7px;min-width:0;border-left:1px solid #45616a}
body.creative .recorder #record-area{margin:0;display:block}
body.creative .recorder #record-area h3{font-size:14px;line-height:19px;margin:0 0 8px}
body.creative .record-buttons{display:flex;gap:5px}
body.creative .record-buttons button{flex:1;min-width:0;height:44px!important;min-height:44px!important;padding:3px!important;font-size:12px!important}
body.creative .editor-columns{grid-template-columns:132px minmax(232px,1fr)}
body.creative #gobos{gap:3px}
body.creative #gobos button{flex:0 0 44px}

body.lesson-six #app{display:contents}body.lesson-six .skip-link{position:fixed;left:0;top:-100px;z-index:100}body.lesson-six .skip-link:focus{top:0;background:#142c35;padding:8px}
#l6-back{font-size:13px;color:#b5f4e7;white-space:nowrap}#l6-files{white-space:nowrap}#l6-files-dialog{width:590px;max-width:94vw;max-height:calc(100dvh - 30px);overflow:auto}#l6-files-dialog>label{display:block;margin-top:10px}#l6-files-dialog input:not([type=checkbox]):not([type=file]),#l6-files-dialog select{width:100%;min-height:38px;padding:5px}#l6-files-dialog .actions{flex-wrap:wrap;margin:10px 0}#l6-files-dialog button,#l6-replace-dialog button,#l6-remove-dialog button{min-height:44px;margin:3px}#l6-files-dialog .file-label{display:flex;flex-direction:column;font-size:14px;gap:4px}#l6-files-dialog .file-label input{max-width:270px}.remember-option{display:flex!important;gap:8px;align-items:center}.remember-option input{width:22px;height:22px}#l6-file-status{padding:8px;border-left:3px solid #54e5cf;min-height:44px}body.lesson-six main,body.lesson-six header,body.lesson-six #desk{min-width:0}
@media(max-width:1200px){body.lesson-six #desk{overflow-x:auto;overflow-y:hidden}body.lesson-six header{overflow-x:auto;white-space:nowrap}body.lesson-six header>*{flex-shrink:0}body.lesson-six header small{display:none}body.lesson-six main{grid-template-columns:minmax(0,1fr) 280px}}
