/* Explicitly scoped to desktop; the existing touch/portrait shell owns mobile. */
html.demo-shell-enhanced body[data-demo-pc]:not([data-mobile-lab-active]) > header{height:58px!important;min-height:58px!important;flex-shrink:0;padding:0 170px 0 22px!important;box-shadow:none!important}
html.demo-shell-enhanced body[data-demo-pc]:not([data-mobile-lab-active]) > header h1{font-size:22px!important;letter-spacing:.5px!important;text-shadow:none!important;filter:none!important}
html.demo-shell-enhanced body[data-demo-pc]:not([data-mobile-lab-active]) > header .brand{display:none!important}
.demo-pc-toolbar{height:54px;flex-shrink:0;display:flex;align-items:center;gap:8px;padding:6px 20px;background:#091a29;border-bottom:1px solid #345164;color:#d8e9f5;position:relative;z-index:25;font:13px 'Microsoft YaHei',sans-serif}
.demo-pc-toolbar[hidden],body[data-mobile-lab-active] .demo-pc-toolbar{display:none!important}
html.demo-shell-enhanced body[data-demo-pc=vibration]:not([data-mobile-lab-active]) .app{grid-template-rows:72px var(--demo-pc-toolbar-height,54px) minmax(0,1fr) 72px!important}
html.demo-shell-enhanced body[data-demo-pc=vibration].demo-pc-folded:not([data-mobile-lab-active]) .app>[data-pc-layout]:not([data-pc-grid]),html.demo-shell-enhanced body[data-demo-pc=vibration].demo-pc-presentation:not([data-mobile-lab-active]) .app>[data-pc-layout]:not([data-pc-grid]){height:100%!important}
.demo-pc-primary{display:flex;align-items:center;gap:8px}
.demo-pc-toolbar button,.demo-pc-toolbar select{min-height:40px;padding:7px 12px;margin:0!important;min-width:unset!important;background:#102b3d;color:#dcf0f8;border:1px solid #537585;border-radius:6px;box-shadow:none!important;font:13px 'Microsoft YaHei',sans-serif;white-space:nowrap}
.demo-pc-toolbar select{max-width:200px;overflow:hidden;text-overflow:ellipsis}
.demo-pc-status{margin-left:auto;max-width:170px;font-size:11px;line-height:1.35;color:#b6d8e8;order:10}
html.demo-shell-enhanced body[data-demo-pc]:not([data-mobile-lab-active]) [data-pc-grid]{display:grid!important;grid-template-columns:286px minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr) 234px!important;gap:12px!important;padding:12px 20px 18px!important;flex:1!important;min-height:0!important;height:calc(100dvh - 58px - var(--demo-pc-toolbar-height,54px))!important;overflow:hidden!important}
html.demo-shell-enhanced body[data-demo-pc]:not([data-mobile-lab-active]) [data-pc-grid]>[data-pc-controls]{grid-column:1;grid-row:1/3;width:auto!important;min-width:0!important;min-height:0!important;overflow:auto!important;padding:16px!important;gap:12px!important}
html.demo-shell-enhanced body[data-demo-pc]:not([data-mobile-lab-active]) [data-pc-grid]>[data-pc-stage]{grid-column:2;grid-row:1;width:auto!important;min-width:0!important;min-height:0!important;height:auto!important}
html.demo-shell-enhanced body[data-demo-pc]:not([data-mobile-lab-active]) [data-pc-grid]>[data-pc-stage]>canvas{min-height:0!important;max-height:100%!important;flex:1 1 0%;height:100%!important}
html.demo-shell-enhanced body[data-demo-pc]:not([data-mobile-lab-active]) [data-pc-grid]>[data-pc-analysis]{grid-column:2;grid-row:2;width:auto!important;min-width:0!important;min-height:0!important;overflow:auto!important;padding:12px!important;gap:10px!important}
html.demo-shell-enhanced body[data-demo-pc]:not([data-mobile-lab-active]) .panel,html.demo-shell-enhanced body[data-demo-pc]:not([data-mobile-lab-active]) .glass-panel{box-shadow:none!important;backdrop-filter:none!important;border-color:#365563!important}
html.demo-shell-enhanced body[data-demo-pc]:not([data-mobile-lab-active]) [data-pc-controls] .control-item{margin-bottom:12px!important}
html.demo-shell-enhanced body[data-demo-pc=alternating-current]:not([data-mobile-lab-active]) [data-pc-analysis]{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important}
html.demo-shell-enhanced body[data-demo-pc=alternating-current]:not([data-mobile-lab-active]) [data-pc-analysis]>.card{display:none}
html.demo-shell-enhanced body[data-demo-pc=alternating-current].demo-pc-data-open:not([data-mobile-lab-active]) [data-pc-analysis]>.card{display:block;grid-column:1/-1}
html.demo-shell-enhanced body[data-demo-pc=alternating-current]:not([data-mobile-lab-active]) .pc-chart-readout{grid-column:1/-1}
html.demo-shell-enhanced body[data-demo-pc=alternating-current]:not([data-mobile-lab-active]) .graph-card{height:196px!important;margin:0!important}
html.demo-shell-enhanced body[data-demo-pc=alternating-current]:not([data-mobile-lab-active]) .graph-card h3{position:static!important;height:18px;margin:0 0 6px!important}
html.demo-shell-enhanced body[data-demo-pc=alternating-current]:not([data-mobile-lab-active]) .graph-card>canvas{height:calc(100% - 24px)!important}
html.demo-shell-enhanced body[data-demo-pc=satellite]:not([data-mobile-lab-active]) [data-pc-analysis]{display:block!important}
html.demo-shell-enhanced body[data-demo-pc=satellite]:not([data-mobile-lab-active]) [data-pc-analysis] .metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
html.demo-shell-enhanced body[data-demo-pc=polarization]:not([data-mobile-lab-active]) [data-pc-analysis]{display:grid!important;grid-template-columns:180px minmax(0,1fr);grid-template-rows:28px minmax(0,1fr)}
html.demo-shell-enhanced body[data-demo-pc=polarization]:not([data-mobile-lab-active]) [data-pc-analysis] .intensity-grid{grid-column:1;grid-row:2;min-height:0!important;height:160px!important}
html.demo-shell-enhanced body[data-demo-pc=polarization]:not([data-mobile-lab-active]) [data-pc-analysis] .demo-priority-chart{display:block;grid-column:2;grid-row:1/3;min-width:0}
html.demo-shell-enhanced body[data-demo-pc=polarization]:not([data-mobile-lab-active]) [data-pc-analysis] #graph-canvas{height:170px!important}
html.demo-shell-enhanced body[data-demo-pc=polarization]:not([data-mobile-lab-active]) [data-pc-analysis]>h2:nth-of-type(2),html.demo-shell-enhanced body[data-demo-pc=polarization]:not([data-mobile-lab-active]) #screen-mock,html.demo-shell-enhanced body[data-demo-pc=polarization]:not([data-mobile-lab-active]) #screen-mock+p{display:none}
html.demo-shell-enhanced body[data-demo-pc]:not([data-mobile-lab-active]) [data-pc-empty-footer]{display:none!important}
html.demo-shell-enhanced body[data-demo-pc=hall]:not([data-mobile-lab-active]) main{height:calc(100dvh - 58px - var(--demo-pc-toolbar-height,54px))!important}
html.demo-shell-enhanced body[data-demo-pc]:not([data-mobile-lab-active]) footer{height:48px!important;min-height:48px!important;padding:4px 150px 4px 20px!important;gap:12px!important;font-size:13px!important}
html.demo-shell-enhanced body[data-demo-pc]:not([data-mobile-lab-active]) .hud-num,html.demo-shell-enhanced body[data-demo-pc]:not([data-mobile-lab-active]) .hud-val{font-size:24px!important;text-shadow:none!important}
html.demo-shell-enhanced body[data-demo-pc].demo-pc-folded:not([data-mobile-lab-active]) [data-pc-controls],html.demo-shell-enhanced body[data-demo-pc].demo-pc-presentation:not([data-mobile-lab-active]) [data-pc-controls]{display:none!important}
html.demo-shell-enhanced body[data-demo-pc].demo-pc-folded:not([data-mobile-lab-active]) [data-pc-grid],html.demo-shell-enhanced body[data-demo-pc].demo-pc-presentation:not([data-mobile-lab-active]) [data-pc-grid]{grid-template-columns:minmax(0,1fr)!important}
html.demo-shell-enhanced body[data-demo-pc].demo-pc-folded:not([data-mobile-lab-active]) [data-pc-grid]>[data-pc-stage],html.demo-shell-enhanced body[data-demo-pc].demo-pc-folded:not([data-mobile-lab-active]) [data-pc-grid]>[data-pc-analysis],html.demo-shell-enhanced body[data-demo-pc].demo-pc-presentation:not([data-mobile-lab-active]) [data-pc-grid]>[data-pc-stage],html.demo-shell-enhanced body[data-demo-pc].demo-pc-presentation:not([data-mobile-lab-active]) [data-pc-grid]>[data-pc-analysis]{grid-column:1}
html.demo-shell-enhanced body[data-demo-pc=hall].demo-pc-folded:not([data-mobile-lab-active]) main,html.demo-shell-enhanced body[data-demo-pc=hall].demo-pc-presentation:not([data-mobile-lab-active]) main{grid-template-columns:minmax(0,1fr)!important}
html.demo-shell-enhanced body[data-demo-pc=hall].demo-pc-folded:not([data-mobile-lab-active]) #hall-stage,html.demo-shell-enhanced body[data-demo-pc=hall].demo-pc-folded:not([data-mobile-lab-active]) #hall-analysis,html.demo-shell-enhanced body[data-demo-pc=hall].demo-pc-presentation:not([data-mobile-lab-active]) #hall-stage,html.demo-shell-enhanced body[data-demo-pc=hall].demo-pc-presentation:not([data-mobile-lab-active]) #hall-analysis{grid-column:1}
html.demo-shell-enhanced body[data-demo-pc].demo-pc-presentation:not([data-mobile-lab-active]) .hud-val,html.demo-shell-enhanced body[data-demo-pc].demo-pc-presentation:not([data-mobile-lab-active]) .hud-num,html.demo-shell-enhanced body[data-demo-pc].demo-pc-presentation:not([data-mobile-lab-active]) .hud-value{font-size:32px!important}
html.demo-shell-enhanced body[data-demo-pc].demo-pc-presentation:not([data-mobile-lab-active]) .info-bar,html.demo-shell-enhanced body[data-demo-pc].demo-pc-presentation:not([data-mobile-lab-active]) .demo-teaching-note p{font-size:18px!important;line-height:1.6}
html.demo-shell-enhanced body[data-demo-pc]:is(.demo-pc-folded,.demo-pc-presentation):not([data-mobile-lab-active]) [data-pc-layout]:not([data-pc-grid]){display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr) 210px!important;min-height:0!important;flex:1;height:calc(100dvh - 58px - var(--demo-pc-toolbar-height,54px))!important;overflow:hidden!important}
html.demo-shell-enhanced body[data-demo-pc]:is(.demo-pc-folded,.demo-pc-presentation):not([data-mobile-lab-active]) [data-pc-layout]:not([data-pc-grid])>[data-pc-stage]{grid-row:1;grid-column:1;width:100%!important;min-width:0!important;min-height:0!important;height:auto!important}
html.demo-shell-enhanced body[data-demo-pc]:is(.demo-pc-folded,.demo-pc-presentation):not([data-mobile-lab-active]) [data-pc-layout]:not([data-pc-grid])>[data-pc-analysis]{grid-row:2;grid-column:1;min-width:0!important;min-height:0!important;width:100%!important;overflow:auto!important}
.demo-pc-number{display:flex;align-items:center;gap:7px;margin:6px 0 10px;color:#ffcf88;font-size:11px}
.demo-pc-number input{width:92px;min-height:34px;padding:5px 8px;background:#071723;color:#e2f0fa;border:1px solid #547482;border-radius:5px;font-size:14px}
.demo-pc-number input[aria-invalid=true]{border-color:#ffc078}
.demo-pc-advanced>summary{cursor:pointer;min-height:36px;padding:8px;color:#cce4f0;font-size:13px}
.demo-pc-advanced:not([open])>.card{display:none}
body[data-mobile-lab-active] .demo-pc-number{display:none}
body[data-mobile-lab-active] .demo-pc-advanced>.card{display:block!important}
body[data-mobile-lab-active] .demo-pc-advanced>summary{display:none}
html.demo-shell-enhanced body[data-demo-pc]:not([data-mobile-lab-active]) :is(button,input,select,summary,a):focus-visible{outline:3px solid #ffcf83!important;outline-offset:3px!important}
.demo-pc-chart-dialog,.demo-pc-record-dialog{margin:auto;padding:24px;border:1px solid #62849a;border-radius:12px;background:#081827;color:#e5f1f8;width:min(980px,92vw);max-height:90dvh;overflow:auto;font:15px/1.6 'Microsoft YaHei',sans-serif}
.demo-pc-chart-dialog::backdrop,.demo-pc-record-dialog::backdrop{background:#000b}
.demo-pc-chart-dialog h2,.demo-pc-record-dialog h2{font-size:20px;color:#b8f1e4;margin:0 0 16px}
.demo-pc-chart-dialog button,.demo-pc-record-dialog button{min-height:44px;padding:8px 16px;background:#13374a;border:1px solid #62849a;color:#ecf7fb;border-radius:6px;font:14px 'Microsoft YaHei',sans-serif}
.demo-pc-chart-plot{height:min(54dvh,440px);min-height:240px;margin-top:18px;background:#06131f}
.demo-pc-chart-dialog canvas{position:static!important;inset:auto!important;width:100%!important;height:100%!important;display:block!important}
.demo-pc-record-row{display:flex;gap:10px;margin:16px 0}
.demo-pc-record-dialog p{color:#b9cedd}.demo-pc-record-dialog textarea{display:block;width:100%;min-height:160px;color:#e5f4fb;background:#092334}
.pc-chart-readout{font:12px/1.5 'Microsoft YaHei',sans-serif;color:#c2d9e7}
body[data-mobile-lab-active] .pc-chart-readout,body[data-mobile-lab-active] .pc-compare-readout{display:none}
.pc-compare-readout{position:static;background:#071827e8;border:1px solid #4c6e7e;padding:9px 12px;margin-bottom:10px;border-radius:7px;font:12px/1.65 'Microsoft YaHei',sans-serif;white-space:pre-line;color:#d5e9f5}
.pc-compare-readout[hidden]{display:none}
@media(max-width:1350px){.demo-pc-toolbar{padding-inline:12px;gap:6px}.demo-pc-toolbar button{padding-inline:8px}.demo-pc-toolbar select{max-width:155px}.demo-pc-status{max-width:115px}html.demo-shell-enhanced body[data-demo-pc]:not([data-mobile-lab-active]) [data-pc-grid]{grid-template-columns:264px minmax(0,1fr)!important}}
@media(max-height:800px){html.demo-shell-enhanced body[data-demo-pc]:not([data-mobile-lab-active]) [data-pc-grid]{grid-template-rows:minmax(0,1fr) 192px!important}html.demo-shell-enhanced body[data-demo-pc=alternating-current]:not([data-mobile-lab-active]) .graph-card{height:158px!important}html.demo-shell-enhanced body[data-demo-pc=polarization]:not([data-mobile-lab-active]) [data-pc-analysis] #graph-canvas{height:134px!important}}
@media(max-width:1000px){.demo-pc-toolbar{height:auto;min-height:54px;flex-wrap:wrap}.demo-pc-status{display:none}html.demo-shell-enhanced body[data-demo-pc]:not([data-mobile-lab-active]) [data-pc-grid]{grid-template-columns:230px minmax(0,1fr)!important}html.demo-shell-enhanced body[data-demo-pc]:not([data-mobile-lab-active]) >header h1{font-size:17px!important}}
@media(max-width:1000px){
  html.demo-shell-enhanced body[data-demo-pc=alternating-current]:not([data-mobile-lab-active]) [data-pc-grid]{grid-template-rows:minmax(0,1fr) 0!important}
  html.demo-shell-enhanced body[data-demo-pc=alternating-current]:not([data-mobile-lab-active]) [data-pc-analysis]{display:none!important}
  html.demo-shell-enhanced body[data-demo-pc=alternating-current].demo-pc-data-open:not([data-mobile-lab-active]) [data-pc-grid]{grid-template-rows:minmax(0,1fr) 192px!important}
  html.demo-shell-enhanced body[data-demo-pc=alternating-current].demo-pc-data-open:not([data-mobile-lab-active]) [data-pc-analysis]{display:grid!important}
  html.demo-shell-enhanced body[data-demo-pc=alternating-current]:not([data-mobile-lab-active]) .stage-topbar{height:48px!important;min-height:48px;padding:4px 10px!important;grid-template-columns:minmax(0,1fr) auto;flex-shrink:0}
  html.demo-shell-enhanced body[data-demo-pc=alternating-current]:not([data-mobile-lab-active]) .stage-tag{display:none}
  html.demo-shell-enhanced body[data-demo-pc=alternating-current]:not([data-mobile-lab-active]) .canvas-notice{white-space:nowrap!important;overflow:hidden;text-overflow:ellipsis}
  html.demo-shell-enhanced body[data-demo-pc=alternating-current]:not([data-mobile-lab-active]) .hud{position:absolute!important;inset:60px 10px auto auto!important;width:218px!important;margin:0!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
  html.demo-shell-enhanced body[data-demo-pc=alternating-current]:not([data-mobile-lab-active]) .stage-controls{position:absolute!important;inset:auto auto 10px 50%!important;transform:translateX(-50%)!important;width:calc(100% - 24px)!important;margin:0!important}
  html.demo-shell-enhanced body[data-demo-pc=alternating-current]:not([data-mobile-lab-active]) .legend{position:absolute!important;inset:auto auto 76px 10px!important;transform:none!important;width:240px!important;margin:0!important;font-size:11px}
}
