/* Production UI shell for the approved PRIMA monitor. Native widgets keep their behavior. */
#bw {
 color-scheme:dark;
 --base:#0c1921;--surface:#142832;--raised:#1c3540;--line:#2b4754;
 --text:#eef7f8;--sub:#bacfd7;--quiet:#9db7c3;--accent:#85e7b5;--cyan:#71d3e8;
 --blue:#9bb9f4;--amber:#ffc382;--red:#ff909d;
 --paper:var(--surface);--rail:#10232c;--hover:#213c48;--selected:#24443f;
 --rule:var(--line);--secondary:var(--sub);--muted-ink:var(--sub);--ink:var(--text);
 --surface-line:var(--line);--surface-soft:var(--raised);--green:var(--accent);
 --action:var(--accent);--action-text:#123225;--violet:var(--blue);
 --wb-paper:var(--surface);--wb-ink:var(--text);--wb-muted:var(--sub);--wb-line:var(--line);
 --muted:var(--sub);--dim:var(--quiet);--border:var(--line);
 --wb-white:var(--surface);--wb-surface:var(--surface);
 --wb-nav:var(--rail);--wb-nav-text:var(--sub);--wb-nav-active:var(--selected);--wb-nav-edge:var(--line);
 --prima-paper:var(--surface);--prima-soft:var(--raised);--prima-border:var(--line);
 --monitor-paper:var(--surface);--monitor-ink:var(--text);
 --wb-canvas:var(--base);--wb-action:var(--accent);--wb-space:clamp(14px,3.2vw,48px);
 --instrument-paper:var(--surface);--instrument-canvas:var(--base);--instrument-edge:var(--line);
 --instrument-ink:var(--text);--instrument-muted:var(--sub);--instrument-action:var(--accent);
 --instrument-tint:var(--raised);--instrument-plot:#142832;--stage-bg:#16313c;
 --stage-line:#345663;--stage-muted:var(--sub);--stage-ink:var(--text);--stage-accent:var(--accent);
 background:var(--base);color:var(--text);font:14px/1.46 "DM Sans","Aptos","Helvetica Neue",system-ui,sans-serif;
}
#bw,#bw .workflow-shell{
 --workflow-ink:var(--text);--workflow-muted:var(--sub);--workflow-line:var(--line);
 --workflow-paper:var(--surface);--workflow-soft:var(--raised);--workflow-active:var(--selected);--workflow-green:var(--accent);
}
#bw,#bw .domain-instrument{
 --domain-ink:var(--text);--domain-muted:var(--sub);--domain-edge:var(--line);--domain-paper:var(--surface);
 --domain-side:var(--raised);--domain-action:var(--accent);--domain-alert:var(--amber);
}
body:has(#bw){background:#0c1921}
#bw .topbar{
 min-height:62px;padding:0 var(--wb-space);border:0;border-bottom:1px solid var(--line);
 background:#10232c;color:var(--text);box-shadow:none;
}
#bw .topbar .compsec-logo{width:76px;height:auto;padding:3px 6px;background:#eff7f5;border-radius:5px}
#bw .topbar .brand-lockup .wordmark{color:var(--text);letter-spacing:.1em;font-weight:760}
#bw .topbar .brand-lockup .product{display:none}
#bw #workspace:not([hidden]){display:block;background:var(--base);position:relative}
#bw #workspace [hidden]{display:none!important}
#bw dialog[hidden]{display:none!important}
#bw #monitor-global{
 display:flex;align-items:center;justify-content:space-between;gap:12px;
 padding:0 var(--wb-space);min-height:44px;border-bottom:1px solid var(--line);background:#10232c;
}
#bw #monitor-primary{display:flex;gap:17px;align-items:stretch;overflow-x:auto;scrollbar-width:thin;white-space:nowrap}
#bw #monitor-primary>button{
 color:var(--sub);background:transparent;border:0;border-bottom:2px solid transparent;border-radius:0;
 padding:11px 1px;white-space:nowrap;font-weight:650
}
#bw #monitor-primary>button[aria-current=page]{color:var(--accent);border-bottom-color:var(--accent)}
#bw #monitor-nav-open{flex:none;font-size:12px}
#bw #workspace .sidebar{display:none}
#bw #workspace.monitor-menu-open .sidebar{
 display:block;background:var(--surface);color:var(--text);position:absolute;top:44px;right:var(--wb-space);
 width:min(335px,calc(100vw - 22px));height:auto;max-height:min(74vh,730px);overflow:auto;z-index:25;
 border:1px solid #476776;box-shadow:0 13px 40px #040b12b0;border-radius:10px;padding:8px;
}
#bw #workspace.monitor-menu-open .sidebar :is(.sidebar-tools,.environment,.bottom){display:none}
#bw #workspace.monitor-menu-open .sidebar .nav-copy{display:inline;white-space:normal}
#bw #workspace.monitor-menu-open .sidebar .nav-section-row>.nav-section-toggle{display:inline-flex}
#bw #workspace.monitor-menu-open .sidebar :is(nav>button,.nav-section-row>button[data-page]){
 justify-content:flex-start;min-height:40px;height:auto;text-align:start;white-space:normal;
}
#bw #workspace.monitor-menu-open .sidebar .subnav:not([hidden]){
 position:static;width:auto;max-height:none;overflow:visible;margin-inline:10px 0;
}
#bw #workspace .sidebar nav :is(button,.navlabel),#bw #workspace .sidebar .subnav button{color:var(--sub)}
#bw #workspace .sidebar .subnav:not([hidden]){background:#172f3b;border-color:var(--line)}
#bw #workspace .sidebar nav button:is(:hover,[aria-current=page],.area-active){background:#24453f;color:var(--accent)}
#bw #workspace #main-content{width:100%;margin:auto;max-width:1770px;min-height:70vh;background:var(--base);color:var(--text);overflow:visible}
#bw #workspace #main-content>.heading{
 padding:19px var(--wb-space) 12px;gap:12px;min-height:0;
 background:transparent;border:0;color:var(--text);
}
#bw #workspace #main-content>.heading::before{display:none}
#bw #workspace #main-content>.heading h1{font-size:clamp(26px,3.45vw,47px);line-height:1.04;color:var(--text);letter-spacing:-.06em}
#bw #workspace #main-content>.heading :is(#page-context,#page-description){color:var(--sub)}
#bw #workspace #main-content>.heading #page-context{color:var(--accent);font:11px/1.35 "SF Mono",Consolas,monospace;margin-bottom:9px}
#bw #workspace #source-state{padding-inline:var(--wb-space);margin:0;color:var(--sub)}
#bw #workspace #workspace-context .workbench-route-bar,#bw #workspace #workspace-context .workflow-context-nav{
 padding:4px;border:1px solid var(--line);border-radius:8px;background:var(--surface)
}
#bw #workspace #workspace-context :is(button,[aria-current]){
 color:var(--sub);background:transparent;border-color:transparent;
}
#bw #workspace #workspace-context [aria-current=page]{background:#24483f;color:var(--accent)}
#bw #workspace #native-monitor-frame{margin:1px var(--wb-space) 16px}
#bw #workspace #native-monitor-toggle{margin:6px var(--wb-space) 8px}
#bw #workspace #content{padding:12px var(--wb-space) 28px;margin:0;color:var(--text)}
#bw #workspace #content :is(.viz-panel,.infra-panel,.monitor-card,.workflow-panel,.admin-panel,.inspector,.domain-instrument,.source-card,.framework-card,.run-section,.run-card,.backup-overview,.execution-strip,.virtual-monitor,.native-chart,.report-feature,.configuration-hero,.section-intro,.detailbody,.detailhead,.firewall-head,.monitor-modal,.ai-live-header,.atlas-signals,.atlas-collection,.iris-hero,.iris-sidebar,.iris-chat,.workflow-support){
 background:var(--surface);border-color:var(--line);color:var(--text);box-shadow:none;
}
#bw #workspace #content :is(.instrument-stage,.storage-chart,.monitor-investigation-stage,.atlas-deck,.switch-port-panel,.studio-atlas){
 background-color:var(--stage-bg);border-color:#39606a;color:var(--text);
}
#bw #workspace #content :is(h1,h2,h3,h4,h5,dt,dd,.page-title,.eyebrow,.viz-title,.workflow-heading,.detailhead,.section-title){color:var(--text)}
#bw #workspace #content :is(.secondary,.infra-note,.domain-provenance,.workflow-footnote,.chart-foot,.chart-note,.observation-detail p,.viz-title p,.viz-title small,.workflow-heading small,.workflow-heading p,.detailhead p,.detailhead small,.section-intro p,.source-registry-entry small,.domain-ledger dt,.source-card small){color:var(--sub)}
#bw #workspace #content :is(.obs-badge,.source-pills,.observation-disclosure,.machine-analytics,.analysis-disclosure,.source-registry-entry,.domain-companion,.workflow-evidence,.node-resource-cards .infra-metric,.infra-metric,.map-hop,.network-tiles article,.tablefoot,.viewtabs,.detailtabs,.tools,.ai-metrics article,.fw-signal,.workflow-pick-list li,.workflow-form-section,.admin-form-grid,.config-change-bars,.comm-policy,.notice,.domain-flow-signal,.section-atlas-inspector,.workbench-route-bar,.monitor-plot-frame,.viz-hero,.domain-calendar,.host-network-index,.table-scroll,.domain-status-list li){
 background:var(--raised);border-color:var(--line);color:var(--text);
}
#bw #workspace #content :is(.fw-signal,.infra-metric,.domain-calendar,.domain-outcomes,.monitor-rank-pair) :is(strong,h2,h3,span,small,label){color:inherit}
#bw :is(#content,.login,.workflow-dialog,.topbar,#monitor-global) :is(button,input,select,textarea){
 color:var(--text);border-color:#3a5b69;background:#1d3945;
}
#bw :is(#content,.login,.workflow-dialog,.topbar,#monitor-global) :is(button,input,select,textarea):disabled{opacity:.58}
#bw :is(#content,.login,.workflow-dialog,.topbar,#monitor-global) :is(button,input,select,textarea):focus-visible,
#bw #workspace :is(summary,a):focus-visible{outline:2px solid var(--cyan);outline-offset:3px}
#bw :is(#content,.login,.workflow-dialog,.topbar) :is(button.primary,button[aria-pressed=true],button[aria-current=page],button.selected){
 color:#123225;background:var(--accent);border-color:var(--accent);
}
#bw :is(#content,.login,.workflow-dialog) :is(input,textarea)::placeholder{color:#9bb4c1;opacity:1}
#bw :is(#content,.login,.workflow-dialog) :is(label,legend,summary){color:var(--text)}
#bw #workspace #content :is(a,a:visited,.observation-disclosure>summary,.workflow-support>summary){color:var(--cyan)}
#bw #workspace #content :is(table,.tablewrap,.monitor-sample-table){background:var(--surface);color:var(--text);border-color:var(--line)}
#bw #workspace #content :is(td,th,tbody tr:nth-child(even),tbody tr[data-selected=true],.tablewrap td:first-child){
 background:var(--surface);color:var(--text);border-color:var(--line);
}
#bw #workspace #content :is(thead th,tbody tr:nth-child(even)>*,tbody tr[data-selected=true]>*){background:#1a333f}
#bw #workspace #content :is(thead th,th[scope=row]){color:var(--sub)}
#bw #workspace #content :is(.good,.online,.success,.source.good){color:var(--accent)}
#bw #workspace #content :is(.warn,.pending,.warning){color:var(--amber)}
#bw #workspace #content :is(.bad,.error,.danger){color:var(--red)}
#bw #workspace #content :is(.runtime-badge,.source-pill,.status){background:#1c3641;border-color:#395c69}
#bw #workspace #content .expiry-card .source-pill.paused{color:var(--sub)}
#bw #workspace #content :is(.comparison-track,.resource-track,.domain-outcome-rail,.monitor-distribution-track,.monitor-rank-track){background:#2d4854}
#bw #workspace #content .prima-plot .prima-plot-canvas{background:#101f29;border-color:#35515f}
#bw #workspace #content .prima-plot :is(.prima-plot-grid,.prima-plot-axis) text{fill:#b4ccd6}
#bw #workspace #content .prima-plot-grid path{stroke:#36525f}
#bw #workspace #content .prima-plot-canvas polyline[stroke="#305d9d"]{stroke:var(--blue)}
#bw #workspace #content .prima-plot-canvas polyline[stroke="#0b806f"]{stroke:var(--accent)}
#bw #workspace #content .prima-plot-canvas polyline[stroke="#6956a5"]{stroke:#c0b6ff}
#bw #workspace #content .prima-plot-canvas polyline[stroke="#9a5b18"]{stroke:var(--amber)}
#bw #workspace #content .prima-plot-canvas polyline[stroke="#aa4250"]{stroke:var(--red)}
#bw #workspace #content .prima-plot :is(.prima-plot-key li,.prima-plot-empty,.prima-plot-samples table){background:#1c3641;border-color:#385663;color:var(--text)}
#bw #workspace #content .prima-plot-samples summary{color:var(--cyan)}
#bw #workspace #content .section-intro:not([class*=atlas]){padding:9px 12px;border-radius:9px}
#bw :is(.login,.workflow-dialog){background:var(--surface);border:1px solid var(--line);color:var(--text)}
#bw .workflow-dialog :is(header,footer,fieldset,.source-editor-setup,.source-editor-body){background:var(--raised);border-color:var(--line);color:var(--text)}
#bw .workflow-dialog :is(h2,h3,h4,p,small,.secondary,.source-editor-copy){color:var(--text)}
#bw .workflow-dialog::backdrop{background:#07151dcc}
#bw .footer{color:var(--sub);background:#10232c;border-color:var(--line)}
@media(max-width:740px){
 #bw .topbar{padding-inline:12px}
 #bw .topbar .compsec-logo{width:58px}
 #bw #monitor-global{padding-inline:11px;gap:6px}
 #bw #monitor-primary{gap:12px}
 #bw #workspace #content{padding-inline:11px}
 #bw #workspace #main-content>.heading{padding-inline:11px}
 #bw #workspace #native-monitor-frame,#bw #workspace #native-monitor-toggle{margin-inline:11px}
}
#bw:has(#workspace:not([hidden])) .topbar{
 background:#10232c;color:var(--text);border-bottom-color:var(--line);box-shadow:none;
}
#bw:has(#workspace:not([hidden])) .topbar .wordmark{color:var(--text)}
#bw:has(#workspace:not([hidden])) .topbar .compsec-logo{background:#eff7f5;padding:3px 6px}
#bw:has(#workspace:not([hidden])) .topbar :is(button:not([hidden]),#workspace-search:not([hidden])){background:#1d3945;color:var(--text);border-color:#3a5b69}
#bw:has(#workspace:not([hidden])) .topbar :is(.identity-label,kbd){color:var(--sub)}
#bw:has(#workspace:not([hidden])) .topbar kbd{background:var(--raised);border-color:var(--line)}
#bw #workspace #monitor-global #monitor-primary>button{background:transparent;color:var(--sub);border-color:transparent}
#bw #workspace #monitor-global #monitor-primary>button[aria-current=page]{border-bottom-color:var(--accent);color:var(--accent)}
#bw #workspace #main-content[data-workbench-page]>.heading{background:transparent;border:0}
#bw #workspace #main-content[data-workbench-page]>.heading :is(button,.iris-point-pick){
 background:#1d3945;color:var(--text);border-color:#3a5b69;
}
#bw #workspace #main-content[data-workbench-page]>.heading #native-monitor-toggle{margin:0}
#bw #workspace #content :is(.workflow-access,.instrument-stage) .workflow-context-nav{
 background:#152b35;border:1px solid var(--line);color:var(--sub);
}
#bw #workspace #content :is(input:not([type=checkbox]):not([type=radio]),select,textarea),
#bw .workflow-dialog :is(input:not([type=checkbox]):not([type=radio]),select,textarea){
 background:#1d3945;color:var(--text);border-color:#466573;
}
#bw #workspace #content :is(.domain-status-list,.network-evidence,.access-user-list,.audit-list) :is(.notice,.domain-status){
 border-color:var(--line);color:var(--sub);
}
#bw #workspace #content .workflow-access .workflow-facts :is(div,dt){border-color:#476875}
#bw #workspace #content :is(.console-eyebrow,.page-context){color:var(--accent)}
#bw .source-editor.workflow-dialog .source-guide{
 background:#132a35;color:var(--text);border-color:#3c5663;
}
#bw .source-editor.workflow-dialog .source-guide :is(h2,h3,h4,p,li,strong,b,summary){color:var(--text)}
#bw .source-editor.workflow-dialog .source-guide :is(pre,code){
 background:#0d202a;color:#dff5ec;border-color:#456776;
}
#bw .source-editor.workflow-dialog .source-form :is(h3,legend,label){color:var(--text)}

/* Native drill-down surfaces pair their background and foreground. */
#bw #workspace #content :is(.correlation-link,.access-summary article,.monitor-node-group,
 .virtual-recap>summary,.operations-hero,.fw-history-stats,.vb-stat,.vb-job-ledger .vb-job,
 .comm-policy-group,.comm-nat-section,.iris-instructions,.iris-verified-context,
 .ipam-address-map,.atlas-home .domain-card,.managed-service .monitor-distribution,
 .managed-service .managed-kpis>.viz-panel,.nb-cloud-path>article,.map-endpoint-meta,.map-subpanel){
 background:var(--surface);color:var(--text);border-color:var(--line);
}
#bw #workspace #content .comm-secondary>summary{color:var(--text)}
#bw #workspace #content .comm-secondary>p{color:var(--sub)}
#bw #workspace #content .correlation-link{border-inline-start-color:var(--cyan)}
#bw #workspace #content .correlation-link.is-excluded{border-inline-start-color:var(--amber)}
#bw #workspace #content :is(.correlation-total,.correlation-link details,.correlation-focus pre){
 background:var(--raised);color:var(--sub);border-color:var(--line);
}
#bw #workspace #content .correlation-link details{padding:8px 12px;border-radius:6px}
#bw #workspace #content :is(.correlation-link>small,.correlation-link>button small,.correlation-focus>small){
 color:var(--sub);
}
#bw #workspace #content :is(.correlation-total strong,.correlation-direction){color:var(--cyan)}
#bw #workspace #content .correlation-filters button[aria-pressed=true] small{color:inherit}
#bw #workspace #content .correlation-link>button:hover{background:var(--hover);border-color:var(--cyan)}
#bw #workspace #content :is(.switch-port-grid,.monitor-status-grid) button:not([aria-pressed=true]){
 background:var(--raised);color:var(--text);
}
#bw #workspace #content :is(.switch-port-grid,.monitor-status-grid) button:not([aria-pressed=true]) :is(small,span){
 color:var(--sub);
}
#bw #workspace #content :is(.prima-plot-samples table,.prima-plot-empty,.instrument-stage .prima-plot-samples table){
 background:var(--surface);color:var(--text);
}
#bw #workspace-search-dialog,#bw .console-text-dialog{
 background:var(--surface);color:var(--text);border-color:var(--line);
}
#bw :is(#workspace-search-dialog,.console-text-dialog) :is(input,textarea,.workspace-search-result){
 background:var(--raised);color:var(--text);border-color:var(--line);
}
#bw #workspace-search-dialog .workspace-search-result :is(small,span){color:var(--sub)}
#bw #workspace #main-content[data-workbench-page=administration] .admin-panel>.viz-title,
#bw #workspace #content .machine-drilldown .machine-inspector .detailhead,
#bw #workspace #content #iris-workspace :is(#iris-question-form,.iris-evidence-board,.iris-evidence-board details){
 background:var(--surface);color:var(--text);border-color:var(--line);
}
#bw #workspace #content :is(.access-user-row,.runtime-badge,.status) :is(small,b,strong),
#bw #workspace #content :is(.access-user-row,.runtime-badge.stopped,.runtime-badge.unknown,.status.stopped),
#bw #workspace #content #iris-workspace #iris-question-form small{color:var(--sub)}
#bw #workspace #content #iris-workspace{
 --line:#365462;
}
#bw #workspace #content #iris-workspace :is(.iris-answer,.iris-welcome,.iris-performance,.iris-evidence details){
 background:var(--surface);color:var(--text);border-color:var(--line);
}
#bw #workspace #content #iris-workspace .iris-answer{border-top-color:var(--accent)}
#bw #workspace #content #iris-workspace :is(.iris-question,.iris-context-summary,
 .iris-answer-text code,.iris-answer-text pre,.iris-evidence pre,.iris-time-ledger){
 background:var(--raised);color:var(--text);border-color:var(--line);
}
#bw #workspace #content #iris-workspace .iris-answer-text pre code{background:transparent}
#bw #workspace #content #iris-workspace :is(.iris-sidebar>summary,.iris-verified-context>summary){color:var(--cyan)}
#bw #workspace #content #iris-workspace :is(.iris-answer-label,.iris-welcome>svg){color:var(--accent)}
#bw #workspace #content #iris-workspace :is(.iris-question small,.iris-answer-label span,.iris-welcome p,
 .iris-verified-context small,.iris-running,.iris-evidence,#iris-status,#iris-conversations small){
 color:var(--sub);
}
#bw #workspace #content #iris-workspace #iris-conversations [aria-pressed=true] small{color:inherit}
#bw #workspace #content #iris-workspace :is(.iris-answer-label,.iris-compose-actions){flex-wrap:wrap}
#bw #workspace #content #iris-workspace .iris-answer-label span{overflow-wrap:anywhere}
#bw #workspace #content #iris-workspace .iris-time-ledger div>span{background:var(--line)}
#bw #workspace #content #iris-workspace .iris-time-ledger i{background:var(--cyan)}
#bw #workspace #content #iris-workspace .iris-evidence summary{overflow-wrap:anywhere}
#bw #workspace #content button:not([aria-pressed=true]):not([aria-current=page]):not(.primary):not(.selected)>small{color:var(--sub)}
#bw #workspace #content :is(button[aria-pressed=true],button[aria-current=page],button.primary,button.selected)>small{color:inherit}
#bw #workspace #content .runtime-badge:not(.online,.good,.success,.warn,.pending,.warning,.bad,.error,.danger){
 color:var(--sub);
}
#bw #workspace #content :is(td,th) small,
#bw #workspace #content .firewall-selector button:not([aria-pressed=true]) small,
#bw #workspace #content #config-timeline p{color:var(--sub)}
#bw #workspace #content .firewall-selector button[aria-pressed=true] small{color:inherit}
#bw #workspace #content .config-scope{
 background:var(--raised);color:var(--text);border-color:var(--line);
}
#bw #workspace #content :is(.ipam-name-coverage,.workflow-operations .operations-totals>div,
 .domain-expiry .domain-primary,.domain-expiry.instrument-stage .domain-calendar){
 background:var(--raised);color:var(--text);border-color:var(--line);
}
#bw #workspace #content :is(.expiry-date span,.domain-status-list small,.workflow-panel>small,
 .workflow-signal-lane button[aria-pressed=false] .workflow-signal-state,
 .workflow-pick-list button[aria-pressed=false]>span){color:var(--sub)}
#bw #workspace #content .workflow-signal-lane button[aria-pressed=false] .workflow-signal-description{color:var(--text)}
#bw #workspace #content :is(.workflow-signal-lane,.workflow-pick-list,.domain-expiry-breakdown) button[aria-pressed=true] :is(span,small,strong){color:inherit}
#bw #workspace #content .domain-status{background:var(--raised);color:var(--sub)}
#bw #workspace #content .domain-status.domain-warning{background:#432e21;color:var(--amber)}
#bw #workspace #content .domain-status.domain-ok{background:var(--selected);color:var(--accent)}
#bw #workspace #content :is(.domain-instrument .domain-primary,.domain-bands>div){
 background:var(--surface);color:var(--text);border-color:var(--line);
}
#bw #workspace #content .domain-bands .domain-band-warning{border-top-color:var(--amber)}
#bw #workspace #content .domain-bands .domain-band-warning dd{color:var(--amber)}
#bw #workspace #content .domain-calendar .domain-day-empty,
#bw #workspace #content .domain-calendar .domain-day small{
 background:var(--raised);color:var(--sub);border-color:var(--line);
}
#bw #workspace #content .domain-calendar .domain-day[aria-pressed=true] small{
 background:var(--action-text);color:var(--text);
}
#bw #workspace #content .workflow-queue .workflow-heading small{color:var(--sub)}

/* Network drill-downs and Studio selection use the same readable palette as their detail panels. */
#bw #workspace #content #network-map-view :is(.comm-address,.comm-detail pre,.comm-policy-group,.comm-nat-section){
 background:var(--raised);color:var(--text);border-color:var(--line);
}
#bw #workspace #content #network-map-view :is(.comm-relation,.comm-basis button,.comm-direction button,.comm-view-tabs button,.comm-mode button){
 background:var(--raised);color:var(--text);border-color:#3a5b69;
}
#bw #workspace #content #network-map-view :is(.comm-relation,.comm-basis button,.comm-direction button,.comm-view-tabs button,.comm-mode button)[aria-pressed=true]{
 background:var(--selected);color:var(--accent);border-color:var(--accent);
}
#bw #workspace #content #network-map-view :is(.comm-relation,.comm-policy,.comm-peer,.comm-address,.comm-detail,.comm-heading) :is(small,label,.comm-vlan-context){
 color:var(--sub);
}
#bw #workspace #content #network-map-view .comm-detail .infra-note strong,
#bw #workspace #content #network-map-view .comm-detail .comm-vlan-context strong{color:inherit}
#bw #workspace #content #network-map-view :is(.comm-empty,.comm-empty-selection){color:var(--sub)}
#bw #workspace #content #network-map-view :is(.comm-count,.comm-rule-action){
 background:var(--raised);color:var(--cyan);
}
#bw #workspace #content #network-map-view .map-vlan-badge{
 background:hsl(var(--vlan-hue,180) 32% 21%);color:hsl(var(--vlan-hue,180) 72% 88%);
 border-color:hsl(var(--vlan-hue,180) 33% 49%);
}
#bw #workspace #content #physical-view :is(.physical-firewall>div,.physical-map-legend,.physical-neighbor,#physical-label-form){
 background:var(--raised);color:var(--text);border-color:var(--line);
}
#bw #workspace #content #physical-view :is(.physical-map-legend,.physical-legend,.physical-bonds,.physical-detail-metrics,.physical-assets button small){
 color:var(--sub);
}
#bw #workspace #content #physical-view .physical-map-legend .virtual{color:#c0b6ff}
#bw #workspace #content #physical-view .physical-map-legend .upstream{color:var(--amber)}
#bw #workspace #content #physical-label-form{border-radius:8px;padding:12px}
#bw #workspace #content .ai-dashboard .ai-live-header p{color:var(--sub)}
#bw #workspace #content .studio-atlas button.studio-flow[aria-pressed=true]{
 background:var(--selected);border-color:var(--accent);color:var(--text);
}
#bw #workspace #content #network-map-view :is(.comm-detail,.comm-policy-stack) pre{
 background:var(--base);color:var(--text);border-color:var(--line);
}
#bw #workspace #content #network-map-view :is(.comm-policy-group small,.comm-detail .comm-attachment strong){color:var(--sub)}
#bw #workspace #content #network-map-view .comm-policy-group>summary strong{color:var(--text)}
#bw #workspace #content #network-map-view .comm-detail :is(.comm-peer,.comm-attachment,.comm-hop-row,.comm-route-point,.comm-route-firewall) strong{
 color:var(--text);
}
#bw #workspace #content #network-map-view .comm-detail button[aria-pressed=true]{
 background:var(--selected);color:var(--accent);border-color:var(--accent);
}

#bw #physical-view .physical-node-focus{fill:var(--surface);fill-opacity:1;stroke:#587785;filter:none}
#bw #physical-view .physical-apparatus:is(.selected,:hover,:focus-within) .physical-node-focus{stroke:var(--accent)}
#bw #physical-view :is(.physical-terminal,.physical-face-port,.physical-bundle) rect{fill:var(--raised);stroke:#5c8392}
#bw #physical-view .physical-terminal .terminal-jack{fill:var(--cyan);stroke:var(--base)}
#bw #physical-view .physical-face-port.up rect{fill:var(--selected);stroke:var(--accent)}
#bw #physical-view .physical-face-port.bond rect{fill:#243b56;stroke:var(--blue)}
#bw #physical-view :is(.physical-node-name,.physical-terminal text,.physical-face-port text,.physical-bundle text){fill:var(--text)}
#bw #physical-view :is(.physical-node-kind,.physical-interface-list){fill:var(--sub)}
#bw #physical-view .physical-link-line{stroke:var(--accent)}
#bw #physical-view .physical-link.fdb .physical-link-line{stroke:var(--cyan)}
#bw #physical-view .physical-link.virtual .physical-link-line{stroke:#c0b6ff}
#bw #physical-view .physical-link.upstream .physical-link-line{stroke:var(--amber)}
#bw #physical-view .physical-cable-speed{fill:var(--text);stroke:var(--base)}
#bw #physical-view :is(.physical-link,.physical-apparatus).muted{opacity:1}
#bw #physical-view .physical-link.muted .physical-link-line{opacity:.28}
#bw #physical-view .physical-apparatus.muted .physical-node-focus{stroke:var(--line)}
#bw #workspace #content #physical-view :is(.physical-port,.physical-assets button).selected{
 background:var(--selected);color:var(--text);border-color:var(--accent);
}
#bw #workspace #content #physical-view :is(.physical-port,.physical-assets button).selected :is(small,span){
 color:var(--sub);
}

/* Keep the operational overviews readable when switching away from the charts. */
#bw #workspace #content .atlas-home :is(.atlas-filters,.atlas-signals) button :is(strong,small){
 color:inherit;
}
#bw #workspace #content :is(.monitor-state-summary,.monitor-rank-selector){
 background:var(--surface);color:var(--text);border-color:var(--line);
}
#bw #workspace #content .virtual-investigation .monitor-node-group :is(h3,h3 span),
#bw #workspace #content :is(.monitor-ranking button,.fw-interface-link) small{
 color:var(--sub);
}
#bw #workspace #content :is(.monitor-state-summary li button,.monitor-rank-selector .monitor-ranking button):hover{
 background:var(--hover);
}
#bw #workspace #content .dual-bars>span{background:var(--line)}
#bw #workspace #content .dual-bars b{background:var(--base);color:var(--text)}
#bw #workspace #content .atlas-home button.atlas-signal{color:var(--text)}
#bw #workspace #content .atlas-home .atlas-signal :is(.atlas-signal-text,.atlas-signal-meta){color:var(--text)}
#bw #workspace #content .ai-dashboard #ai-range-form{
 background:var(--raised);color:var(--text);border-color:var(--line);
}
#bw #workspace #content .ai-dashboard :is(.ai-metric small,.ai-metric span,.ai-memory-note){color:var(--sub)}
#bw #workspace #content .ai-dashboard .ai-metric strong{color:var(--text)}
#bw #workspace #content #network-map-view :is(.map-hop,.map-candidate,.map-sighting){
 background:var(--raised);color:var(--text);border-color:#456673;
}
#bw #workspace #content #network-map-view .map-hop.unresolved{border-style:dashed}
#bw #workspace #content #network-map-view :is(.map-hop,.map-subpanel,.map-sighting,.network-catalog) :is(p,small){
 color:var(--sub);
}
#bw #workspace #content #network-map-view :is(.map-evidence,.map-observed){color:var(--cyan)}
#bw #workspace #content #network-map-view .viz-panel>p{color:var(--sub)}
#bw #workspace #content #network-map-view .map-coverage p{color:var(--sub)}

#bw #workspace #content .machine-inspector .detailtabs{
 gap:6px;padding:8px 12px;background:var(--rail);
 border-block:1px solid var(--line);
}
#bw #workspace #content .machine-inspector .detailtabs button{
 flex:0 0 auto;min-block-size:38px;padding:7px 12px;
 background:transparent;border:1px solid transparent;color:var(--sub);
 font-size:.875rem;line-height:1.35;
}
#bw #workspace #content .machine-inspector .detailtabs button:hover{
 background:var(--hover);color:var(--text);
}
#bw #workspace #content .machine-inspector .detailtabs button[aria-pressed=true]{
 background:var(--selected);color:var(--accent);border-color:var(--accent);
}

/* Keep inventory cards and secondary analysis panels on dark surfaces. */
#bw #workspace #content .node-control-room :is(.cluster-panel,.node-detail-header),
#bw #workspace #content :is(.monitor-rank-pair,.switch-port-grid){
 background:var(--surface);color:var(--text);border-color:var(--line);
}
#bw #workspace #content .node-control-room .node-tile{
 background:var(--raised);border-color:var(--line);color:var(--text);
}
#bw #workspace #content .node-control-room .node-tile:is(.selected,[aria-pressed=true]){
 background:var(--selected);border-color:var(--accent);
}
#bw #workspace #content .node-control-room .node-tile small,
#bw #workspace #content .disk-health-card :is(small,.disk-capacity span,.disk-capacity strong){
 color:var(--sub);
}
#bw #workspace #content .disk-health-card :is(.disk-state-label,.disk-open){color:var(--sub)}
#bw #workspace #content :is(.disk-state-healthy .disk-state-label,.physical-disk-detail .disk-state-label.disk-state-healthy){background:var(--selected);color:var(--accent)}
#bw #workspace #content :is(.disk-state-warning .disk-state-label,.physical-disk-detail .disk-state-label.disk-state-warning){background:#432e21;color:var(--amber)}
#bw #workspace #content :is(.disk-state-critical .disk-state-label,.physical-disk-detail .disk-state-label.disk-state-critical){background:#47242c;color:var(--red)}
#bw #workspace #content :is(.disk-state-unknown .disk-state-label,.physical-disk-detail .disk-state-label.disk-state-unknown){background:var(--raised);color:var(--sub)}
#bw #workspace #content :is(.nb-topology article,.nb-cidr,#nb-period,.domain-expiry-settings-section,
 .mcp-panel .mcp-app,.account-security-summary,.backup-chain .chain-capacity,.sensor-grid>div){
 background:var(--raised);color:var(--text);border-color:var(--line);
}
#bw #workspace #content :is(#network-map-endpoint,#network-map-vlan){
 background:var(--raised);color:var(--text);border-color:var(--line);
}
#bw #workspace #content :is(.ai-live-header p,.ai-metric small,.ai-metric span,.fw-deltas span,
 .firewall-dashboard .viz-panel>small,.config-version p,.mcp-check small,.host-volume p,
 .access-permissions small,#access-mail-form p){color:var(--sub)}
#bw #workspace #content :is(.ai-metric strong,.vb-stat strong,.vb-job.is-selected .vb-job-header strong){color:var(--text)}
#bw #workspace #content .vb-stat small{color:var(--sub)}
#bw #workspace #content .fw-deltas .warning{background:transparent;color:var(--amber)}
#bw #workspace #content .repository-ledger-rows>button[aria-pressed=true] .resource-meter small{color:inherit}
#bw :is(#login-view,#password-view,#enroll-view) h1{color:var(--text)}

/* Apply the palette to nested controls and record details as well as their containers. */
#bw #workspace #content .instrument-stage .monitor-rank-pair,
#bw #workspace #content .postfix-workspace .domain-mail.instrument-stage .domain-outcomes,
#bw #workspace #content :is(#correlation-kind,#correlation-query,#correlation-object,#nb-cloud-resource,.access-effective-permissions){
 background:var(--raised);color:var(--text);border-color:var(--line);
}
#bw #workspace #content :is(#nb-period label,.nb-cloud-path>article>small,
 .nb-cloud-dashboard .comm-policy small,.vb-outcomes .vb-stat small,
 .workflow-comparison :is(.config-diff-heading p,.workflow-diff-status)){
 color:var(--sub);
}
#bw #workspace #content .nb-cloud-dashboard .comm-policy :is(summary>span,dd>p),
#bw #workspace #content .sensor-grid>div>strong,
#bw #workspace #content .workflow-comparison .config-diff-heading>strong{
 color:var(--accent);
}
#bw #workspace #content .access-user-row.selected :is(strong,small){color:inherit}
#bw #workspace #content .workflow-comparison .config-change-card{
 background:var(--surface);color:var(--text);border-color:var(--line);
}
#bw #workspace #content .workflow-comparison :is(.config-change-location,.config-before,.config-after){
 background:var(--raised);color:var(--text);border-color:var(--line);
}
#bw #workspace #content .nb-cloud-path>article small,
#bw #workspace #content .monitor-ranking .monitor-empty,
#bw #workspace #content .workflow-comparison .config-change-location code{
 color:var(--sub);
}
#bw #workspace #content .workflow-comparison .config-change-values pre{color:var(--text)}
#bw #workspace #content .access-user-row.selected{
 background:var(--selected);color:var(--text);border-color:var(--accent);
}
#bw #workspace #content :is(.run-summary,.guest-card){
 background:var(--surface);color:var(--text);border-color:var(--line);
}
#bw #workspace #content .ai-dashboard .ai-tabs button[aria-pressed=true]{
 background:var(--selected);color:var(--accent);border-color:var(--accent);
}

/* The collection, topology and structural atlas sit outside the usual detail cards. */
#bw #workspace :is(.instrument-collection>summary,#section-atlas-disclosure:not([hidden])){
 background:var(--surface);color:var(--sub);border-color:var(--line);
}
#bw #workspace .instrument-collection>summary strong{color:var(--accent)}
#bw #workspace #section-atlas-disclosure>summary{color:var(--cyan)}
#bw #workspace #section-atlas :is(.section-atlas-shell,.section-atlas-shell>header,
 .section-atlas-scene,.section-atlas-inspector){
 background-color:var(--surface);color:var(--text);border-color:var(--line);
}
#bw #workspace #section-atlas :is(.section-atlas-shell>header h2,.section-atlas-inspector h3,
 .section-atlas-inspector dd,.section-atlas-entry strong){color:var(--text)}
#bw #workspace #section-atlas :is(.section-atlas-shell>header p,.section-atlas-inspector dt,
 .section-atlas-entry small,.section-atlas-empty,.section-atlas-state){color:var(--sub)}
#bw #workspace #section-atlas .section-atlas-inspector dl>div{border-color:var(--line)}
#bw #workspace #section-atlas :is(.section-atlas-icon,.section-atlas-state.section-atlas-fresh){color:var(--accent)}
#bw #workspace #section-atlas .section-atlas-state:is(.section-atlas-warn,.section-atlas-warning,.section-atlas-stale){color:var(--amber)}
#bw #workspace #section-atlas :is(.section-atlas-entry,.section-atlas-shell button:not(.section-atlas-entry)){
 background:var(--raised);color:var(--text);border-color:var(--line);box-shadow:none;
}
#bw #workspace #section-atlas button:hover{background:var(--hover)}
#bw #workspace #section-atlas button[aria-pressed=true]{
 background:var(--selected);color:var(--accent);border-color:var(--accent);
}
#bw #workspace #content #network-map-view .comm-machine{
 background:var(--surface);color:var(--text);border-color:var(--line);border-top-color:var(--accent);
}
#bw #workspace #content #network-map-view .comm-machine :is(small,summary){color:var(--sub)}
#bw #workspace #content #physical-view :is(.physical-sheet,.physical-graph svg,.physical-map svg){
 background-color:var(--rail);
}
#bw #workspace #content .backup-home-canvas .backup-route{background:var(--line);border-color:var(--line)}
#bw #workspace #content .fw-signal .node-symbol{background:var(--selected);color:var(--accent);border-color:var(--line)}
#bw #workspace #content .atlas-home .atlas-empty,
#bw #workspace #content #network-map-view .comm-machine .comm-vlan-context{color:var(--sub)}
#bw #workspace .instrument-collection .source{
 background:var(--surface);border-color:var(--line);
}
#bw #workspace .instrument-collection .source.good{color:var(--accent)}
#bw #workspace .instrument-collection .source.warn{color:var(--amber)}
#bw #workspace #content :is(#storage-detail,.disk-native-detail>pre){
 background:var(--raised);color:var(--text);border-color:var(--line);
}
#bw #workspace #content .disk-health-card.selected{
 background:var(--selected);color:var(--text);border-color:var(--accent);
}
#bw #workspace #content .disk-detail-alert.disk-state-healthy{background:var(--selected);color:var(--accent)}
#bw #workspace #content .disk-detail-alert.disk-state-warning{background:#432e21;color:var(--amber)}
#bw #workspace #content .disk-detail-alert.disk-state-critical{background:#47242c;color:var(--red)}
#bw #workspace #content .disk-detail-alert.disk-state-unknown{background:var(--raised);color:var(--sub)}

/* Retheme controls and chart surfaces that had retained a light background. */
#bw #workspace #content #network-map-view .map-endpoint-grid>button,
#bw #workspace #content .physical-disk-detail .disk-value-card{
 background:var(--raised);color:var(--text);border-color:var(--line);
}
#bw #workspace #content #network-map-view .map-endpoint-grid>button:hover{
 background:var(--hover);border-color:var(--cyan);
}
#bw #workspace #content #network-map-view .map-endpoint-grid svg,
#bw #workspace #content .physical-disk-detail .disk-value-card strong{color:var(--accent)}
#bw #workspace #content .physical-disk-detail .disk-value-card small{color:var(--sub)}
#bw #workspace #content .visual-gauge .gauge-core{fill:var(--base)}
#bw #workspace #content .visual-gauge .gauge-track{stroke:var(--line)}

/* System diagrams stay compact and readable at the start of each workspace. */
#bw #workspace #content .system-map{
 --map-accent:var(--accent);--map-edge:#325461;
 margin:0 0 18px;padding:clamp(16px,2.6vw,34px);
 border:1px solid var(--map-edge);border-radius:15px;background:#102732;color:var(--text);
}
#bw #workspace #content .system-map-backup{--map-accent:#acd6ff;background:#122633}
#bw #workspace #content .system-map-network{--map-accent:var(--cyan);background:#102934}
#bw #workspace #content .system-map-firewall{--map-accent:#9de5cd;background:#112b31}
#bw #workspace #content .system-map-head{display:flex;align-items:center;flex-wrap:wrap;gap:14px;margin:0 0 24px}
#bw #workspace #content .system-map-head h2{margin:0 0 4px;font-size:clamp(23px,3vw,37px);line-height:1.13;overflow-wrap:anywhere}
#bw #workspace #content .system-map-head p{margin:0;color:var(--sub);font-size:13px}
#bw #workspace #content .system-map-emblem{display:grid;place-items:center;width:54px;height:54px;background:#1a3944;border:1px solid var(--map-edge);border-radius:12px;color:var(--map-accent)}
#bw #workspace #content .system-map-emblem svg{width:26px;height:26px}
#bw #workspace #content .system-map-actions{display:flex;flex-wrap:wrap;gap:8px;margin-inline-start:auto}
#bw #workspace #content .system-map-link{
 display:inline-flex;align-items:center;gap:7px;min-height:38px;padding:5px 10px;border:1px solid #466b78;border-radius:7px;
 background:#193741;color:var(--text);font-size:13px;text-align:left;text-decoration:none;
}
#bw #workspace #content .system-map-link:hover{background:#284b56;border-color:var(--map-accent)}
#bw #workspace #content .system-map-link:focus-visible{outline:2px solid var(--map-accent);outline-offset:3px}
#bw #workspace #content .system-map-link svg{width:15px;height:15px;color:var(--map-accent)}
#bw #workspace #content .system-map :is(ul,ol){padding-inline-start:0;list-style:none;margin:0}
#bw #workspace #content .system-map-racks{
 display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,215px),1fr));gap:14px;
 padding-top:17px;border-top:1px solid var(--map-edge);
}
#bw #workspace #content .system-map-rack{
 position:relative;display:grid;align-content:start;gap:10px;min-width:0;padding:13px;
 background:#183541;border:1px solid #3c6270;border-radius:9px;
}
#bw #workspace #content .system-map-rack::before{position:absolute;content:"";height:17px;width:1px;top:-18px;left:50%;background:var(--map-edge)}
#bw #workspace #content .system-map-rack header{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:0 9px}
#bw #workspace #content .system-map-rack header>span{grid-row:span 2;color:var(--map-accent)}
#bw #workspace #content .system-map-rack h3{margin:0;font-size:17px;overflow-wrap:anywhere}
#bw #workspace #content .system-map-rack header>small{color:var(--sub)}
#bw #workspace #content .system-map-rack[data-tone=good] header>small{color:var(--accent)}
#bw #workspace #content .system-map-rack[data-tone=warn] header>small{color:var(--amber)}
#bw #workspace #content .system-map-rack-slots{display:grid;gap:4px;padding:7px;background:#112833;border:1px solid #2c4d5a;border-radius:5px}
#bw #workspace #content .system-map-rack-slots i{height:6px;border:1px solid #446370;border-radius:2px;background:#213f4a}
#bw #workspace #content .system-map-rack-slots i::after{content:"";display:block;width:3px;height:3px;margin:1px 4px;background:var(--quiet);border-radius:50%}
#bw #workspace #content .system-map-rack[data-tone=good] .system-map-rack-slots i::after{background:var(--accent)}
#bw #workspace #content .system-map-meter{display:flex;gap:3px;height:6px}
#bw #workspace #content .system-map-meter i{min-width:3px;background:#8099a7;border-radius:3px}
#bw #workspace #content .system-map-meter i[data-tone=good]{background:var(--accent)}
#bw #workspace #content .system-map-meter i[data-tone=idle]{background:var(--amber)}
#bw #workspace #content .system-map-rack p{margin:0;color:var(--sub);font-size:12px}
#bw #workspace #content .system-map-rack .system-map-link{justify-self:start}
#bw #workspace #content :is(.system-map-lanes,.system-map-perimeter){display:grid;gap:10px}
#bw #workspace #content .system-map-lanes{grid-template-columns:repeat(3,minmax(0,1fr))}
#bw #workspace #content .system-map-perimeter{grid-template-columns:minmax(0,1.7fr) minmax(0,1fr)}
#bw #workspace #content :is(.system-map-lanes,.system-map-perimeter)>section{
 min-width:0;padding:13px;background:#0f242d;border-radius:9px;border:1px solid #31535f;
}
#bw #workspace #content :is(.system-map-lanes,.system-map-perimeter)>section>h3{
 margin:0 0 12px;padding-bottom:8px;border-bottom:1px solid #355664;color:var(--map-accent);font-size:15px;overflow-wrap:anywhere;
}
#bw #workspace #content :is(.system-map-lanes,.system-map-perimeter)>section>p{color:var(--sub);font-size:13px}
#bw #workspace #content .system-map-device{
 display:grid;grid-template-columns:28px minmax(0,1fr);gap:10px;margin:0 0 8px;padding:9px;
 background:#183542;border:1px solid #365b68;border-inline-start:3px solid var(--quiet);border-radius:7px;
}
#bw #workspace #content .system-map-device[data-tone=good]{border-inline-start-color:var(--accent)}
#bw #workspace #content .system-map-device[data-tone=available]{border-inline-start-color:var(--map-accent)}
#bw #workspace #content .system-map-device[data-tone=warn]{border-inline-start-color:var(--amber)}
#bw #workspace #content .system-map-device-icon{color:var(--map-accent)}
#bw #workspace #content .system-map-device :is(strong,small,p){display:block;overflow-wrap:anywhere}
#bw #workspace #content .system-map-device :is(small,p){margin:3px 0;color:var(--sub);font-size:12px}
#bw #workspace #content .system-map-device .system-map-link{margin-top:5px}
#bw #workspace #content .system-map-copy{display:flex;align-items:center;flex-wrap:wrap;gap:6px}
#bw #workspace #content .system-map-copy svg{width:15px;height:15px;color:var(--map-accent)}
#bw #workspace #content .system-map-job-list li{display:grid;gap:2px;padding:7px 0;border-top:1px solid var(--map-edge);overflow-wrap:anywhere}
#bw #workspace #content .system-map-job-list small{color:var(--sub)}
#bw #workspace #content .system-map-fw-selector{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr));gap:8px}
#bw #workspace #content .system-map-fw-selector>button{height:auto;min-width:0;text-align:left;white-space:normal;overflow-wrap:anywhere}
#bw #workspace #content .system-map-fw-selector>button small{display:block;margin-top:3px}
#bw #workspace #content .system-map-fw-selector>button[aria-pressed=true]{background:#244941;border-color:var(--map-accent)}
#bw #workspace #content .firewall-primary{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
#bw #workspace #content .firewall-findings{margin-bottom:12px}
#bw #workspace-context .workbench-route-more{min-width:0;color:var(--text)}
#bw #workspace-context .workbench-route-more>summary{cursor:pointer;padding:9px;color:var(--sub)}
#bw #workspace-context .workbench-route-more[open]{flex:1 0 100%}
#bw #workspace-context .workbench-route-more>div{display:flex;flex-wrap:wrap;gap:4px}
@media(max-width:800px){
 #bw #workspace #content :is(.system-map-lanes,.system-map-perimeter){grid-template-columns:minmax(0,1fr)}
 #bw #workspace #content .system-map-actions{margin-inline-start:0;flex-basis:100%}
}
#bw #workspace #content .system-map-fw-selector>button[aria-pressed=true] :is(strong,small){
 color:var(--text);
}
#bw #workspace #content .system-map-observed{margin-top:16px;padding-top:13px;border-top:1px solid var(--map-edge)}
#bw #workspace #content .system-map-observed h3{margin:0 0 3px;font-size:15px}
#bw #workspace #content .system-map-observed p{margin:0 0 10px;color:var(--sub);font-size:12px}
#bw #workspace #content .system-map-observed ul{display:flex;flex-wrap:wrap;gap:8px}
#bw #workspace #content .system-map-observed li{
 display:flex;align-items:center;flex-wrap:wrap;gap:6px;padding:6px 10px;
 border:1px solid var(--map-edge);border-radius:6px;background:#142e3a;color:var(--text);
}
#bw #workspace #content .system-map-observed li>span{display:inline-flex;gap:4px;align-items:center;color:var(--sub)}
#bw #workspace #content .system-map-observed svg{width:15px;height:15px;color:var(--map-accent)}
#bw #workspace #content .system-map-observed small{color:var(--sub)}
#bw #workspace #content .system-map-gateways{display:grid;gap:4px}
#bw #workspace #content .system-map-gateways li{display:flex;justify-content:space-between;gap:8px;border-bottom:1px solid var(--map-edge);font-size:12px}
@media(max-width:540px){
 #bw #workspace #content .system-map-head{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px;margin-bottom:15px}
 #bw #workspace #content .system-map-emblem{width:40px;height:40px}
 #bw #workspace #content .system-map-emblem svg{width:21px;height:21px}
 #bw #workspace #content .system-map-actions{
  grid-column:1/-1;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,125px),1fr));gap:6px;
 }
 #bw #workspace #content .system-map-actions .system-map-link{min-height:40px;overflow-wrap:anywhere}
}
