.role-panel {display:flex;flex-direction:column;align-items:stretch;gap:38px;min-height:0}
.role-panel .role-copy {display:grid;grid-template-columns:1fr 1fr;column-gap:12%;align-items:start}
.role-copy>.small-label {grid-column:1;grid-row:1}
.role-panel .role-copy h3 {grid-column:1;grid-row:2 / 5;font-size:44px;margin:18px 0 0}
.role-panel .role-copy>p:not(.small-note) {grid-column:2;grid-row:1 / 3;max-width:540px;font-size:16px}
.role-panel .role-copy>.check-list {grid-column:2;grid-row:3;font-size:14px;margin:12px 0}
.role-panel .role-copy>.text-link,.role-panel .role-copy>.small-note {grid-column:2;grid-row:4}
.room-scene {position:relative;order:-1;margin:0;width:100%;min-width:0}
.scene-canvas {position:relative;width:100%;aspect-ratio:3/2;overflow:hidden;background:#151918}
.scene-canvas>img {width:100%;height:100%;object-fit:contain}
.scene-screen-layer {position:absolute;inset:0 auto auto 0;width:1536px;height:1024px;max-width:none;transform-origin:0 0;pointer-events:none;opacity:0}
.room-scene[data-ready=true] .scene-screen-layer {opacity:1}
.scene-screen {position:absolute;left:0;top:0;width:844px;height:390px;overflow:hidden;border-radius:32px;transform-origin:0 0;background:#151719}
.scene-screen video {width:844px;height:390px;max-width:none;object-fit:fill;filter:brightness(.92)}
.scene-screen>img {width:100%;height:100%;max-width:none;object-fit:contain;filter:brightness(.94)}
.scene-paths {position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.scene-flow {fill:none;stroke-width:2.2;vector-effect:non-scaling-stroke;stroke-linecap:round;opacity:.88;stroke-dasharray:8 12}
.scene-flow.control {stroke:#7be4ee;stroke-dasharray:4 10}
.scene-flow.digital {stroke:#c8ef8b}
.scene-flow.analog {stroke:#ffd594}
.room-scene[data-visible=true] .scene-flow {animation:scene-signal 2.2s linear infinite}
.scene-flow.focused {stroke-width:3.5;opacity:1}
.scene-leader {stroke:#fcfffa;stroke-width:1;fill:none;vector-effect:non-scaling-stroke;opacity:.6}
.room-scene[data-paths=false] .scene-flow {display:none}
.scene-pin {position:absolute;z-index:2;display:grid;place-items:center;width:23px;height:23px;transform:translate(-50%,-50%);font:500 11px var(--mono);background:#fcfff5;color:#122015;border:1px solid #273a2f;border-radius:50%;box-shadow:0 0 0 5px #efffda33;pointer-events:none}
.scene-labels {position:absolute;left:0;top:0;width:100%;aspect-ratio:3/2;pointer-events:none}
.scene-label {position:absolute;left:var(--label-x);top:var(--label-y);display:flex;align-items:center;gap:10px;max-width:230px;min-height:48px;padding:10px 13px;color:#f7faf5;background:#101814ed;border:1px solid #b5c8b277;border-radius:4px;text-align:left;pointer-events:auto;box-shadow:0 3px 18px #0002}
.scene-label>span:last-child {display:flex;flex-direction:column;gap:3px;min-width:0}
.scene-label strong {font:500 14px/1.3 var(--body)}
.scene-label small {font:11px/1.4 var(--body);color:#c5d3c8}
.scene-label[aria-pressed=true] {border-color:#d2f57b}
.scene-number {font:500 11px var(--mono);color:#d2f57b;flex:none}
.scene-footer {display:flex;align-items:center;gap:20px;flex-wrap:wrap;padding:18px 0;border-bottom:1px solid #cbd2c5}
.scene-legend {display:flex;gap:24px;flex-wrap:wrap;font:12px/1.4 var(--body);flex:1 1 300px}
.scene-legend>span {display:flex;align-items:center;gap:8px}
.scene-legend>span:before {content:'';display:inline-block;width:24px;border-top:3px solid #718e4f}
.scene-legend .control:before {border-top:3px dashed #198597}
.scene-legend .analog:before {border-color:#987035}
.scene-path-toggle {margin-left:auto;min-height:44px;padding:8px 0;display:flex;align-items:center;gap:9px;background:transparent;border:0;font:13px var(--body);color:#344334}
.scene-path-toggle svg {width:18px;height:18px}
.scene-path-toggle[aria-pressed=false] {opacity:.55}
.scene-footer .motion-toggle {width:44px;height:44px;padding:12px;flex:none;color:#344334;border-color:#a7b69b}
.scene-device-detail {flex:1 0 100%;font-size:14px;line-height:1.6;color:#414b40;max-width:960px}
.scene-concept-note {flex:1 0 100%;font:11px/1.6 var(--body);color:#657061}
html[data-motion-paused=true] .scene-flow {animation-play-state:paused!important}
@keyframes scene-signal {to{stroke-dashoffset:-40}}
@media (max-width:1000px) {
  .scene-label {padding:7px 9px;max-width:180px;gap:7px}
  .scene-label strong {font-size:12px}.scene-label small{font-size:10px}
}
@media (max-width:900px) {
  .role-panel{gap:25px}.role-panel .role-copy{display:block}
  .role-panel .role-copy h3{font-size:34px;margin:15px 0 20px}
  .role-panel .role-copy>p:not(.small-note){font-size:15px}
  .scene-labels{position:static;aspect-ratio:auto;display:grid;grid-template-columns:1fr 1fr;gap:0;pointer-events:auto;border-bottom:1px solid #cbd2c5}
  .scene-label{position:static;max-width:none;min-height:65px;color:#152015;background:transparent;border:0;border-bottom:1px solid #cbd2c5;border-radius:0;box-shadow:none;padding:12px 8px;gap:10px}
  .scene-label[aria-pressed=true]{background:#dce5d2;border-color:#a7b79b}
  .scene-label strong{font-size:13px}.scene-label small{font-size:11px;color:#596454}
  .scene-number{color:#4b692d}.scene-leader{display:none}
  .scene-pin{width:18px;height:18px;font-size:10px;box-shadow:0 0 0 3px #efffda33}
  .scene-flow{stroke-width:1.5}.scene-legend{gap:14px;font-size:11px}
  .scene-legend{flex-basis:100%}.scene-path-toggle{margin-left:0}.scene-footer .motion-toggle{margin-left:auto}
  .scene-footer{gap:12px;padding:12px 0}.scene-path-toggle{font-size:12px}
  .scene-device-detail{font-size:13px}.scene-concept-note{font-size:10px}
}
@media (prefers-reduced-motion:reduce){.scene-flow{animation:none!important}}
