/* Topic-local extension: the original shared shell and flow styles are retained. */
.mode-switch{display:flex;align-items:center;gap:2px;flex-shrink:0}
.mode-switch button{min-height:44px;padding:0 12px;background:transparent;border:1px solid transparent;border-radius:7px;color:var(--muted);font-size:13px;white-space:nowrap}
.mode-switch button[aria-checked=true]{background:#DFEAF1;border-color:#A8BDC9;color:#233F52;font-weight:600}
.mode-switch button:hover{background:#E7EEF2}
.observer-head>.mode-switch{margin-left:auto;margin-right:auto}
.identity .short-title{display:none}
.panel-mode{justify-content:center;border-bottom:1px solid var(--line);flex-shrink:0;padding:2px 8px}
.schematic-layer{position:absolute;inset:0;display:grid;grid-template-rows:auto minmax(0,1fr) auto;min-width:0;min-height:0;padding:4px 14px 6px}
.schematic-heading{min-width:0}
.scheme-context{display:flex;align-items:baseline;justify-content:space-between;gap:8px;color:var(--muted);font-size:12px;line-height:1.6}
.scheme-section{font-size:14px;font-weight:600;color:var(--ink);line-height:1.5;margin:0}
.scheme-section span{display:inline-block}
.scheme-progress{white-space:nowrap}
.active-steps{display:flex;flex-wrap:wrap;gap:4px;margin-top:5px}
.active-steps button{min-height:44px;padding:3px 9px;border:1.5px solid #365F7A;border-radius:6px;background:#D7E6F0;color:#233F52;font-size:14px;line-height:1.4;font-weight:600}
.active-steps button span{display:inline-block}
.active-steps button.in-between{background:#E5EEE9;border-color:#93AB9C}
.schematic-art{min-height:0;min-width:0;display:flex;align-items:center;justify-content:center}
#schematic-svg{width:100%;height:100%;font-family:inherit;overflow:hidden}
.material-summary{margin:0 auto;width:min(100%,850px);color:var(--ink);padding-top:4px}
.material-line{font-size:15px;line-height:1.5;margin:0 0 3px}
.material-detail{font-size:13px;line-height:1.5;margin:0;color:var(--muted);text-wrap:pretty}
.material-legend{display:flex;gap:6px 15px;flex-wrap:wrap;margin-top:5px;font-size:12px;color:var(--muted)}
.material-legend span::before{content:'';display:inline-block;width:11px;height:9px;margin-right:5px;border:1px solid #93A7B1;background:var(--swatch);border-radius:2px}
.scheme-note{font-size:12px;line-height:1.5;margin:5px 0 0;color:var(--muted)}
.schematic-layer text{fill:#374C56}
.schematic-layer .active-label{fill:#365F7A;font-weight:600}
.schematic-layer .muted-label{fill:#647D89}
.scheme-observation{font-weight:600}
@media(max-width:650px){
 .identity .brand-mark,.identity #topic-title{display:none}.identity .short-title{display:block;font-size:11px;color:var(--muted);white-space:nowrap}
 .observer-head{gap:4px}.mode-switch button{padding:0 8px}.observer-head>.mode-switch{margin:0 auto}
 .schematic-layer{padding:4px 8px 5px}.scheme-context{font-size:11px;gap:5px}.active-steps button{font-size:13px;padding:2px 6px}
 .material-line{font-size:15px}.material-detail{font-size:13px}.material-legend{gap:4px 10px}
}
@media(max-height:560px){.schematic-layer{padding-top:0}.scheme-context{line-height:1.3}.active-steps{margin-top:2px}.material-legend{display:none}.scheme-note{margin-top:2px;font-size:11px}.material-detail{font-size:12px}}
@media(max-height:600px) and (min-width:800px){.schematic-layer{grid-template-columns:minmax(0,1fr) 235px;grid-template-rows:auto minmax(0,1fr);column-gap:12px}.schematic-heading{grid-column:1 / -1;min-height:48px}.schematic-art{grid-column:1;grid-row:2}.material-summary{grid-column:2;grid-row:2;align-self:center;padding:0}.scheme-context{justify-content:flex-start}.active-steps{position:absolute;right:14px;top:0;max-width:62%;justify-content:flex-end}.active-steps button{font-size:12px;min-height:44px}.scheme-section{max-width:36%;font-size:13px}}
