.observer{grid-template-rows:auto auto minmax(0,1fr) auto}
.mode-bar{display:flex;align-items:center;justify-content:center;gap:12px;min-height:44px;padding:0 8px;border-bottom:1px solid #D7E0E566}
.mode-buttons{display:flex;flex-shrink:0;border:1px solid #CFDAE1;border-radius:7px;overflow:hidden}
.mode-buttons button{height:42px;min-width:60px;border:0;padding:0 14px;background:transparent;font-size:13px}
.mode-buttons button[aria-pressed=true]{background:#DFEAF1;color:#365F7A}
.topic-choice{display:flex;align-items:center;gap:5px;min-width:0;font-size:12px;color:var(--muted)}
.topic-choice select{height:44px;min-height:44px;min-width:0;max-width:210px;border:0;background:transparent;font-size:13px}
.topic-choice input[type=checkbox]{width:18px;height:18px;accent-color:#647F91}
.scene-host{overflow:hidden}#scene-wrap,#flow-wrap{position:absolute;inset:0;width:100%;height:100%}
#flow-svg{display:block;width:100%;height:100%;overflow:visible;font-family:inherit}#flow-buttons{position:absolute;inset:0;pointer-events:none}
#scene [data-select]{cursor:pointer}#scene [data-select]:focus-visible{outline:none;filter:drop-shadow(0 0 2px #365F7A)}
.observer-footer .stage h2{max-width:none}.panel-scroll .node-nav{display:flex;gap:8px;flex-wrap:wrap}.panel-scroll .node-nav button{flex:1}
.panel-scroll .pending-link{color:var(--muted);font-size:14px}.panel-scroll h3{font-size:16px;font-weight:500}
.panel-scroll dt{font-size:13px;color:var(--muted);margin-top:12px}.panel-scroll dd{margin:2px 0}
.bridge-note{font-size:13px;color:var(--muted)}
@media(max-width:500px){.mode-bar{gap:7px;padding:0 5px}.mode-buttons button{min-width:50px;padding:0 11px}.topic-choice select{max-width:165px;font-size:12px}.topic-choice>span{display:none}.status-row{min-height:48px}.stage h2{font-size:12px}.time-speed{gap:2px}#time{font-size:11px;min-width:75px}}
/* Material tracking uses the same current science state in both modes. */
#scene .material-focus{stroke:#365F7A;stroke-width:2.5px}
#scene [data-material-focus]{cursor:pointer;outline:none}
#scene [data-material-focus]:focus-visible>rect:first-child{stroke:#365F7A;stroke-width:2px}

.panel-scroll table{width:100%;font-size:13px;border-collapse:collapse}.panel-scroll th,.panel-scroll td{padding:6px 4px;border-bottom:1px solid #D7E0E5;text-align:left;overflow-wrap:anywhere}.panel-scroll th{font-weight:500}#scene [data-record]{cursor:pointer}
@media(max-width:500px){.topic-choice select{max-width:112px}.mode-bar{gap:3px}.mode-buttons button{min-width:47px;padding:0 8px}}
