/* Owner-reference layout: direct working control columns, one authoritative native model. */
body.shared-rig.wide-dock.polish.classroom-active #lighting-dock #classroom-controls{display:none!important}
#shared-controls{display:none}
body.shared-rig #shared-controls{display:grid;grid-template-columns:minmax(0,1fr) 176px;gap:0;align-items:start;min-width:0}
body.shared-rig #lighting-dock{min-height:0;max-height:none!important;padding:10px 12px 8px;overflow:hidden;border-top:1px solid #425860;background:#101f25}
body:not(.shared-rig) #shared-controls,body:not(.shared-rig) #shared-brand{display:none!important}
#shared-brand{font-size:20px;white-space:nowrap;margin-right:14px;padding-right:20px;border-right:1px solid #7b9399;line-height:32px}
#shared-brand b{font-weight:650}#shared-brand b>span,#shared-brand .brand-short>span{color:#38dbcd}
#shared-brand small{font-size:14px;font-weight:400;color:#c1cdd0;margin-left:5px}
#shared-brand .brand-short{display:none}
#shared-primary{display:flex;align-items:flex-start;gap:0;overflow-x:auto;overflow-y:hidden;min-width:0;padding:0 0 8px;scroll-padding-inline:8px;scrollbar-color:#758e96 #17282f}
#shared-primary:focus-visible{outline:2px solid #ffe29d;outline-offset:-2px}
#shared-advanced{display:none!important}
.shared-group{box-sizing:border-box;flex:1 0 auto;min-width:0;margin:0;padding:0 10px;font-size:14px;line-height:1.35;border-right:1px solid #425860}
.shared-group>h2.control-heading,#shared-rig-title{font-size:14px;font-weight:650;line-height:20px;margin:0 0 10px;color:#f1f6f6}
#shared-identity{flex-basis:138px;padding-left:0;order:1}
#shared-mount{flex-basis:145px;order:2}
#shared-level{flex-basis:146px;order:3}
#shared-colour{flex-basis:196px;order:4}
#shared-aim{flex-basis:112px;order:5}
#shared-gobo{flex-basis:164px;order:6}
#shared-scene-actions{flex-basis:124px;order:7}
#shared-rig{width:176px;padding:0 0 0 10px;border:0}
#shared-stops{flex-basis:174px;order:6}
#shared-actions{flex-basis:180px;order:7}
#shared-controls [hidden]{display:none!important}
#shared-controls :is(button,select){box-sizing:border-box;min-height:36px;font-size:14px;line-height:1.2;padding:5px 7px}
#shared-controls :is(button,select,input,textarea,canvas):focus-visible{outline:3px solid #ffe29d;outline-offset:2px}
#shared-controls select{width:100%;max-width:100%;min-width:0}
#shared-controls label{display:block;margin:0 0 3px;font-size:14px}
#shared-controls input[type=range]{display:block;width:120px!important;max-width:100%;min-width:0;height:36px;margin:0}
#shared-lights{display:flex;flex-direction:column;gap:5px;margin-bottom:7px}
#shared-lights button{display:block;min-width:0;width:100%;text-align:left;font-weight:600}
#shared-lights button[aria-pressed=true],#shared-scene-actions button[aria-pressed=true]{background:#164e49;border-color:#38dbcd;box-shadow:inset 0 0 0 1px #38dbcd}
#shared-selected{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#shared-fixed-type{margin:8px 0 0;font-weight:600}
#shared-type{border:0;padding:0;margin:0;width:100%}
#shared-location{font-size:14px;line-height:1.45;margin:0 0 10px;max-width:175px}
#shared-level{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 6px;align-content:start}
#shared-level>h2,#shared-power,#shared-intensity,#shared-beam{grid-column:1/-1}
#shared-power{justify-self:start;min-width:60px;margin-bottom:4px}
#shared-level-output,#shared-beam-output{font-size:14px;text-align:right;white-space:normal}
#shared-beam{display:grid;grid-template-columns:minmax(0,1fr) auto;border:0;padding:0;margin-top:10px;width:100%;gap:3px 6px}
#shared-beam-value{grid-column:1/-1}
body.shared-rig.wide-dock #lighting-dock #shared-colour #polish-colour{display:block!important;padding:0}
body.shared-rig.wide-dock #lighting-dock #shared-colour .wheel-controls{display:block!important}
body.shared-rig.wide-dock #lighting-dock #shared-colour .wheel-picture{display:flex!important;flex-wrap:wrap;align-items:center;justify-content:flex-start!important;gap:8px;width:100%}
body.shared-rig #shared-colour .wheel-picture>canvas{width:132px!important;height:132px!important;touch-action:none}
body.shared-rig #shared-colour .colour-actions{display:flex!important;flex-direction:row!important;align-items:center;gap:8px;margin:0}
#shared-colour .colour-values,#shared-colour .session-note,#shared-colour h3{display:none!important}
#shared-colour .colour-actions canvas{width:28px;height:28px}
#shared-aim label{margin-bottom:5px}
#shared-gobo{display:flex;flex-wrap:wrap;gap:5px;align-content:flex-start}
#shared-gobo>.control-heading{width:100%;margin-bottom:5px}
#shared-gobo>.group-help{display:none}
#shared-gobo button{flex:1 0 42px;max-width:calc(50% - 3px);min-width:42px;min-height:52px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;white-space:normal;font-size:12px;line-height:1.1;padding:3px}
#shared-gobo svg{width:25px;height:25px}
#shared-gobo button[aria-pressed=true]{border:2px solid #38dbcd;background:#164e49}
#shared-gobo .gobo-none{display:block;height:auto;line-height:1.1;font-size:12px}
#shared-scene-actions{display:flex;flex-direction:column;gap:4px}
#shared-scene-actions>.control-heading{margin-bottom:6px}
#shared-scene-actions button{width:100%;min-height:32px;white-space:normal}
#shared-stops,#shared-actions{display:flex;flex-wrap:wrap;gap:5px;align-content:start}
#shared-rig-header{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:start}
#shared-scroll-hint{font-size:12px;line-height:20px;color:#c6d8dc}
#shared-map{display:grid;grid-template-columns:repeat(3,minmax(44px,1fr));grid-template-rows:repeat(3,44px);gap:3px;padding:3px;border:1px solid #5b737d;background:repeating-linear-gradient(to bottom,transparent 0,transparent 24px,#657d84 24px,#657d84 26px,transparent 26px,transparent 47px)}
body.shared-rig #shared-controls #shared-map button{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:44px;min-height:44px;height:44px;padding:1px;border-radius:4px;font-size:13px;line-height:1.05;gap:1px}
#shared-map button[aria-pressed=true]{border:2px solid #38dbcd;background:#164e49}
.spot-code{font-size:12px}.spot-lights:empty{display:none}.spot-lights{font-size:15px}
#shared-map .spot-unavailable{opacity:.4}
#shared-audience{font-size:12px;line-height:18px;text-align:center;border-top:2px solid #9fb4bc;margin:0;padding:0}
#shared-compatibility{font-size:13px;line-height:1.4;margin:8px 0 0}
.shared-rig-light[data-can-drag=true]{cursor:grab}.shared-dragging .shared-move:not(:disabled){outline:2px dashed #b7e9df}.shared-dragging{user-select:none}
body.shared-rig #wide-toolbar button{min-height:38px}
body.shared-rig #activity-select{font-size:17px;font-weight:600}
@media(max-width:1250px){#shared-brand .brand-full{display:none}#shared-brand .brand-short{display:inline}#shared-brand{font-size:17px;margin-right:8px;padding-right:10px}#shared-primary>.shared-group{flex-grow:0}#shared-controls :is(button,select){min-height:44px}#shared-scene-actions{display:grid;grid-template-columns:repeat(2,minmax(66px,1fr));flex-basis:154px;gap:5px}#shared-scene-actions>.control-heading,#shared-compare{grid-column:1/-1}#shared-scene-actions button{min-height:44px}#shared-identity{flex-basis:144px}#shared-gobo button{min-height:54px}#shared-colour{flex-basis:164px}}
@media(max-width:850px){body.shared-rig #lighting-dock{padding:9px 10px 6px}body.shared-rig #shared-controls{grid-template-columns:minmax(0,1fr) 176px}#shared-brand{font-size:15px;border:0;margin-right:2px;padding-right:2px}#shared-primary>.shared-group{padding-inline:9px}#shared-primary>#shared-identity{padding-left:0}#shared-colour{flex-basis:164px}#shared-scroll-hint{width:100%}}

#shared-controls h2.control-heading,#shared-rig-title{display:block;text-align:left;word-spacing:normal;white-space:normal}

@media(max-width:1250px){#shared-scene-actions{flex-basis:180px;grid-template-columns:repeat(2,minmax(76px,1fr))}}
#shared-gobo button{flex:0 0 calc(50% - 3px);max-width:calc(50% - 3px);min-width:64px}
@media(max-width:1250px){#shared-controls input[type=range]{height:44px}}

#persistent-held-note{grid-column:1/-1;margin:6px 0 0;font-size:13px;line-height:1.35;color:#d2e4e6}
#held-colour .readonly-wheel{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
#held-colour [data-held-spectrum]{width:132px;height:132px}
#held-colour .colour-actions{display:flex;align-items:center;gap:8px}
#held-colour [data-held-preview]{width:28px;height:28px}
#held-colour output{font-size:12px}
.capability-note{font-size:13px;line-height:1.4;margin:6px 0 0}
#shared-controls :is(button,select):disabled{opacity:.75;color:#d2e0e3}
body.shared-rig #lighting-dock #polish-colour[hidden],#held-colour[hidden]{display:none!important}
#held-colour output{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
body.shared-rig.wide-dock #lighting-dock #shared-colour #polish-colour[hidden],body.shared-rig.wide-dock #lighting-dock #shared-colour #held-colour[hidden]{display:none!important}

/* Staging candidate: accurate FOH codes and accessible dock navigation. */
#shared-primary{overscroll-behavior-x:contain}
#shared-rig-header{display:grid;grid-template-columns:1fr 36px 36px;gap:3px}
#shared-rig-title{grid-column:1/-1;margin-bottom:2px}
#shared-scroll-hint{font-size:12px;line-height:16px;align-self:center;width:auto}
#shared-rig-header #dock-scroll-back,#shared-rig-header #dock-scroll-forward{min-width:32px;min-height:32px;padding:3px;font-size:19px}
#shared-map .spot-code{font-size:11px}
@media(max-width:1250px){#shared-rig-header{grid-template-columns:1fr 44px 44px}#shared-rig-header #dock-scroll-back,#shared-rig-header #dock-scroll-forward{min-width:44px;min-height:44px}}

/* R1.2: reclaim dock rows while keeping every relevant working field. */
body.shared-rig.wide-dock #polish-footer{display:none!important}
body.shared-rig #lighting-dock{padding-top:6px;padding-bottom:5px}
#shared-primary{padding-bottom:5px}
#shared-controls h2.control-heading,#shared-rig-title{margin-bottom:6px}
#shared-controls #shared-lights button{min-height:32px}
#shared-mount-value-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
#persistent-held-note,#shared-compatibility,#session-export-note{font-size:14px;line-height:1.4;margin:6px 0;color:#d2e4e6}
#persistent-held-note:empty,#shared-compatibility:empty{display:none}
@media(max-width:1250px){#shared-controls #shared-lights button{min-height:44px}}

/* R1.6: one direct Position and focus column, recovered width for fixture selection. */
#shared-mount{flex-basis:188px}
#shared-identity{flex-basis:158px}
#shared-aim{width:100%;border:0;padding:0;margin-top:8px}
#shared-aim>h2.control-heading{display:none}
#shared-mount-value-label{position:static;width:auto;height:auto;overflow:visible;clip-path:none}
#shared-mount>#shared-location[hidden]{display:none!important}
#shared-mount :is(label,select){display:block;width:100%}
@media(max-width:1250px){#shared-identity{flex-basis:158px}#shared-mount{flex-basis:188px}}

#equipment-change-dialog button{min-height:44px;margin:6px 8px 0 0}#equipment-change-dialog p{font-size:17px;line-height:1.5}

/* R1.6 compact internal alignment. No stage/layout architecture change. */
body.shared-rig #lighting-dock{padding-top:4px;padding-bottom:3px}
#shared-primary{padding-bottom:3px}
#shared-controls h2.control-heading,#shared-rig-title{line-height:18px;margin-bottom:4px}
#shared-lights{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;margin-bottom:4px}
#shared-lights button:last-child:nth-child(odd){grid-column:1/-1}
#shared-controls #shared-lights button{min-width:0;white-space:nowrap;padding-inline:5px}
#shared-identity{flex-basis:168px}
#shared-type label{margin-bottom:2px}
#shared-level{row-gap:2px}
#shared-beam{margin-top:5px;gap:2px 6px}
#shared-aim{margin-top:5px}
#shared-aim label{margin-bottom:3px}
#shared-colour{flex-basis:218px}
body.shared-rig.wide-dock #lighting-dock #shared-colour .wheel-picture{flex-wrap:nowrap;gap:6px;align-items:center}
body.shared-rig #shared-colour .colour-actions{display:flex!important;flex-direction:column!important;gap:6px;align-items:center}
#shared-colour .colour-actions button{white-space:normal;max-width:64px;min-width:58px}
#held-colour .readonly-wheel{flex-wrap:nowrap;gap:6px}
#held-colour .colour-actions{flex-direction:column;gap:6px}
#shared-gobo{flex-basis:224px;gap:4px}
#shared-gobo button{flex:0 0 calc((100% - 8px)/3);max-width:calc((100% - 8px)/3);min-width:60px;min-height:52px}
#shared-gobo>.control-heading{margin-bottom:2px}
#shared-scene-actions{display:grid;grid-template-columns:repeat(2,minmax(66px,1fr));flex-basis:170px;gap:4px}
#shared-scene-actions>.control-heading,#shared-compare{grid-column:1/-1}
#shared-scene-actions>.control-heading{margin-bottom:2px}
#shared-rig-header{grid-template-columns:1fr 32px 32px;align-items:center}
#shared-rig-title{grid-column:1;grid-row:1;margin-bottom:0}
#shared-scroll-hint{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
#dock-scroll-back{grid-column:2;grid-row:1}#dock-scroll-forward{grid-column:3;grid-row:1}
#shared-map{gap:2px;padding:2px;margin-top:2px}
#shared-audience{line-height:16px}
@media(max-width:1250px){
 #shared-identity{flex-basis:174px}
 #shared-colour{flex-basis:218px}
 #shared-gobo{flex-basis:224px}
 #shared-gobo button{min-height:54px}
 #shared-scene-actions{flex-basis:180px;grid-template-columns:repeat(2,minmax(76px,1fr))}
 #shared-rig-header{grid-template-columns:1fr 44px 44px}
}

body.shared-rig.wide-dock #lighting-dock #shared-colour .colour-actions #polish-white{white-space:normal!important;min-width:76px;max-width:76px}
#shared-colour{flex-basis:230px}@media(max-width:1250px){#shared-colour{flex-basis:230px}}

/* R1.6: one full-height guidance scroll owner; stage/dock/divider dimensions untouched. */
body.guidance-flow.wide-dock.polish.classroom-active #polish-inspector{
 display:block!important;overflow-x:hidden!important;overflow-y:auto!important;
 scrollbar-width:auto;scrollbar-color:#91adb4 #17282f;scrollbar-gutter:stable;
 scroll-padding:12px;overscroll-behavior:contain;
}
body.guidance-flow #polish-inspector::-webkit-scrollbar{width:14px}
body.guidance-flow #polish-inspector::-webkit-scrollbar-track{background:#17282f}
body.guidance-flow #polish-inspector::-webkit-scrollbar-thumb{background:#91adb4;border:3px solid #17282f;border-radius:8px}
body.guidance-flow #polish-inspector:focus-visible{outline:3px solid #ffe29d;outline-offset:-3px}
body.guidance-flow #polish-inspector :is(#wide-lesson,#dock-navigation,#dock-task,#wide-support,#dock-reading,#wide-secondary,#classroom-teaching,#guidance-material,.activity-task,.hardware-comparison,[id$="-scene-reference"],[id$="-script"],.scene-plan){
 display:block!important;position:static!important;float:none!important;
 overflow:visible!important;height:auto!important;min-height:0!important;max-height:none!important;
 flex:none!important;width:auto!important;max-width:100%!important;
}
body.guidance-flow #polish-inspector #classroom-teaching{padding:10px 0!important;border:0;display:block!important}
body.guidance-flow #dock-teaching-toggle,body.guidance-flow #polish-guide-close{display:none!important}
body.guidance-flow #polish-inspector #dock-actions{position:static!important;display:block!important;bottom:auto;padding:12px 0 6px;margin:0;border-top:1px solid #425860;z-index:auto;background:transparent}
body.guidance-flow #dock-actions>button:not([hidden]):not(#dock-teaching-toggle){width:100%;min-height:44px}
body.guidance-flow #polish-inspector #dock-navigation{display:grid!important;margin:10px 0}
body.guidance-flow #polish-inspector #dock-task{margin:10px 0}
body.guidance-flow #classroom-teaching>header{position:static!important}
body.guidance-flow #polish-inspector textarea{overflow:auto;max-height:none}

body.guidance-flow.wide-dock.polish.classroom-active[data-workview=stage] #polish-inspector{display:none!important}
@media(max-width:850px){
 body.guidance-flow.wide-dock.polish.classroom-active:not([data-workview=stage]) #polish-inspector:has(#wide-support){display:grid!important;grid-template-columns:240px minmax(0,1fr)!important;grid-template-rows:max-content max-content max-content max-content!important;gap:5px 12px;align-content:start}
 body.guidance-flow #polish-inspector #wide-lesson{grid-column:1;grid-row:1}
 body.guidance-flow #polish-inspector #dock-navigation{grid-column:1;grid-row:2;margin:0!important}
 body.guidance-flow #polish-inspector #dock-task{grid-column:2;grid-row:1/3;margin:0!important}
 body.guidance-flow #polish-inspector #wide-support{grid-column:1/-1;grid-row:3}
 body.guidance-flow #polish-inspector #dock-actions{grid-column:1/-1;grid-row:4}
}

/* R1.6 compact capability feedback and direct copy; no workspace geometry changes. */
#shared-capabilities{display:flex;gap:10px;margin:3px 0 0;font-size:12px;line-height:16px}
#shared-capabilities span{white-space:nowrap}
#shared-scene-actions #shared-compare{grid-column:auto}
#shared-copy-A-B{white-space:normal;min-height:32px}
#shared-level:has(>#shared-intensity:disabled)>label,#shared-level:has(>#shared-intensity:disabled)>output{grid-column:1/-1;text-align:left}
#shared-beam:has(>#shared-beam-value:disabled)>label,#shared-beam:has(>#shared-beam-value:disabled)>output{grid-column:1/-1;text-align:left}
#shared-level-output,#shared-beam-output{line-height:16px}
#shared-level:has(>#shared-intensity:disabled)>output,#shared-beam:has(>#shared-beam-value:disabled)>output{font-size:12px;white-space:nowrap}
#copy-design-dialog p{font-size:17px;line-height:1.5}#copy-design-dialog button{min-height:44px;margin:6px 8px 0 0}
@media(max-width:1250px){#shared-copy-A-B{min-height:44px}}

/* Capability badges share the equipment row rather than adding dock height. */
#shared-type{position:relative;padding-right:66px;box-sizing:border-box}
#shared-capabilities{position:absolute;right:0;bottom:4px;flex-direction:column;gap:0;margin:0;font-size:11px;line-height:15px}
#shared-identity{flex-basis:210px}
@media(max-width:1250px){#shared-identity{flex-basis:210px}}

/* Keep the native teaching copy action readable at narrow panel widths. */
#lesson5-copy{display:block;flex-basis:100%;white-space:normal}

#shared-identity{position:relative}#shared-fixed-type{padding-right:66px}
