/* AEGIS Command Center • Tabler 1.5.1 institutional appearance bridge.
   Shared theme.js dark/light/system; preserves real seven-view behavior. */
:root,html[data-aegis-theme=dark]{
 --theme-bg:#0c0e12;--theme-panel:#161a20;--theme-deep:#11151b;
 --theme-well:#1a1e25;--theme-line:#303640;--theme-text:#f3f4f4;
 --theme-muted:#b1bac4;--theme-accent:#d5b777;
}
html[data-aegis-theme=light]{
 --theme-bg:#f5f6f8;--theme-panel:#fff;--theme-deep:#fafbfc;
 --theme-well:#f1f3f5;--theme-line:#dce2e8;--theme-text:#19212a;
 --theme-muted:#536273;--theme-accent:#99733a;
 --bg:var(--theme-bg);--sidebar:var(--theme-panel);--top:var(--theme-panel);
 --panel:var(--theme-panel);--raised:var(--theme-well);--raised2:var(--theme-well);
 --border:var(--theme-line);--border-soft:var(--theme-line);
 --text:var(--theme-text);--sub:var(--theme-muted);--dim:#6c7784;
 --gold:var(--theme-accent);--gold-bg:#99733a12;--green:#287a64;--red:#b64552;--amber:#956f31;
}
html[data-aegis-theme=dark]{
 --bg:var(--theme-bg);--sidebar:var(--theme-panel);--top:var(--theme-deep);
 --panel:var(--theme-panel);--raised:var(--theme-well);--raised2:var(--theme-well);
 --border:var(--theme-line);--border-soft:var(--theme-line);
 --text:var(--theme-text);--sub:var(--theme-muted);--gold:var(--theme-accent);
}
.top-theme{min-width:40px;min-height:40px;width:40px;display:inline-grid;place-items:center;background:var(--raised);border:1px solid var(--border);border-radius:7px;color:var(--text);cursor:pointer}
.top-theme:hover{border-color:var(--gold);color:var(--gold)}
.top-theme .icon{width:17px;height:17px}
html[data-aegis-theme=light] body{background:var(--theme-bg)!important;color:var(--theme-text)}
html[data-aegis-theme=light] .shell{background:var(--theme-bg)}
html[data-aegis-theme=light] .sidebar{background:#fff!important;color:var(--theme-text)!important;border-right:1px solid var(--theme-line)}
html[data-aegis-theme=light] .sidebar-brand .brand-words strong{color:var(--theme-text)}
html[data-aegis-theme=light] .instance{background:#99733a0f;border-color:#99733a45;color:#8a6531}
html[data-aegis-theme=light] .instance-version{color:#735b37}
html[data-aegis-theme=light] .nav-link{color:#445264}
html[data-aegis-theme=light] .nav-link .icon{color:#637083}
html[data-aegis-theme=light] .nav-link:hover{color:#111b27;background:#eef0f3}
html[data-aegis-theme=light] .nav-link.active{color:#79552e;background:#99733a14;border-color:#99733a45}
html[data-aegis-theme=light] .nav-link.active .icon{color:#79552e}
html[data-aegis-theme=light] .nav-number{color:#79552e;background:#99733a14}
html[data-aegis-theme=light] .operator-card{background:#f6f7f9;border-color:var(--theme-line)}
html[data-aegis-theme=light] .operator-card strong{color:#6d502b}
html[data-aegis-theme=light] .sidebar-private{color:#344154}
html[data-aegis-theme=light] .sidebar-foot{color:#6b7480}
html[data-aegis-theme=light] .topbar{background:#fff!important;border-color:var(--theme-line)}
html[data-aegis-theme=light] .breadcrumb strong{color:var(--theme-text)}
html[data-aegis-theme=light] .language{color:#7c5b2a;border-color:var(--theme-line);background:#f7f8f9}
html[data-aegis-theme=light] .top-private{color:#fff;background:#946f35}
html[data-aegis-theme=light] .top-private:hover{color:#fff;background:#785626}
html[data-aegis-theme=light] .main{background:#f5f6f8}
html[data-aegis-theme=light] .view-title h1,html[data-aegis-theme=light] .section-heading h1,html[data-aegis-theme=light] .panel h2{color:var(--theme-text)}
html[data-aegis-theme=light] .view-title p,html[data-aegis-theme=light] .section-heading p{color:var(--theme-muted)}
html[data-aegis-theme=light] .research-banner{background:#99733a0d;border-color:#99733a3d;color:#624f35}
html[data-aegis-theme=light] .metric,html[data-aegis-theme=light] .panel{background:#fff!important;background-image:none!important;border-color:var(--theme-line)!important;box-shadow:0 8px 26px #111c2c08;color:var(--theme-text)}
html[data-aegis-theme=light] .metric-value,html[data-aegis-theme=light] .eval-legend strong{color:#16202a}
html[data-aegis-theme=light] .metric-top,html[data-aegis-theme=light] .metric-foot,html[data-aegis-theme=light] .mini-head{color:#586879}
html[data-aegis-theme=light] .metric-pill.gold{color:#815d2c}
html[data-aegis-theme=light] .version-comparison,html[data-aegis-theme=light] .system-mini,html[data-aegis-theme=light] .mini-result,html[data-aegis-theme=light] .chain-step,html[data-aegis-theme=light] .queue-stage,html[data-aegis-theme=light] .input-search,html[data-aegis-theme=light] .filter-switch,html[data-aegis-theme=light] .policy-summary>div,html[data-aegis-theme=light] .detail-pairs>div,html[data-aegis-theme=light] .policy-compare,html[data-aegis-theme=light] .receipt-field,html[data-aegis-theme=light] .source-links a,html[data-aegis-theme=light] .trace-card{background:#f6f8fa!important;border-color:var(--theme-line)!important;color:var(--theme-text)!important}
html[data-aegis-theme=light] .version-comparison strong,html[data-aegis-theme=light] .system-mini>span:nth-child(2),html[data-aegis-theme=light] .mini-result strong,html[data-aegis-theme=light] .chain-step span,html[data-aegis-theme=light] .mini-result .status,html[data-aegis-theme=light] .policy-compare strong,html[data-aegis-theme=light] .policy-summary strong,html[data-aegis-theme=light] .detail-pairs strong,html[data-aegis-theme=light] .receipt-field code{color:var(--theme-text)}
html[data-aegis-theme=light] .chain-step b,html[data-aegis-theme=light] .trace-number,html[data-aegis-theme=light] .panel-kicker,html[data-aegis-theme=light] .eyebrow{color:#8e682e}
html[data-aegis-theme=light] .donut-inner{background:#fff}
html[data-aegis-theme=light] .donut-inner strong{color:var(--theme-text)}
html[data-aegis-theme=light] .legend-swatch.positive{background:#2c997b}
html[data-aegis-theme=light] .legend-swatch.negative{background:#c76367}
html[data-aegis-theme=light] .table-scroll table{color:var(--theme-text)!important}
html[data-aegis-theme=light] .data-table td,html[data-aegis-theme=light] .data-table th{color:var(--theme-text)!important;border-color:var(--theme-line)!important}
html[data-aegis-theme=light] .data-table th{color:var(--theme-muted)!important}
html[data-aegis-theme=light] .source-links a:hover,html[data-aegis-theme=light] .trace-card:hover{border-color:var(--theme-accent)!important}
html[data-aegis-theme=light] .lineage-graph .trace-card.selected{background:#99733a17!important;border-color:#99733a88!important}
html[data-aegis-theme=light] .graph-detail,html[data-aegis-theme=light] .footer,html[data-aegis-theme=light] .microcopy,html[data-aegis-theme=light] .section-heading p{color:#586777}
html[data-aegis-theme=light] .report-options p,html[data-aegis-theme=light] .method-item p{color:#516073}
html[data-aegis-theme=light] .report-paper{background:#fff;color:#1c252e}
html[data-aegis-theme=light] .report-paper h2{color:#1c252e}
html[data-aegis-theme=light] .button.outline{color:#303b47;border-color:#9eabb9;background:#fff}
html[data-aegis-theme=light] .button.primary{color:#fff;background:#946f35;border-color:#946f35}
html[data-aegis-theme=light] .source-links a{color:#203040!important}
html[data-aegis-theme=light] .filter-switch button{color:#5b6977}
html[data-aegis-theme=light] .filter-switch button.selected{color:#1c2630;background:#e2e6e9}
html[data-aegis-theme=light] .input-search input{color:#172434}
html[data-aegis-theme=light] .top-theme:hover{color:#99733a}
@media(max-width:620px){.top-theme{min-height:40px;min-width:40px}}

/* Shared institutional finish — the seven original views and data remain intact. */
.top-home-link{font-size:11px;font-weight:700;color:var(--theme-muted);white-space:nowrap;padding:10px 12px;border:1px solid var(--theme-line);border-radius:6px}.top-home-link:hover{color:var(--theme-accent);border-color:var(--theme-accent)}.view-title{border-bottom:1px solid var(--theme-line);padding-bottom:23px}.view-title h1{font-weight:700}.metric,.panel{box-shadow:0 10px 28px #00000012}.metric{border-radius:10px}.panel{border-radius:12px}.metric .metric-value{font-variant-numeric:tabular-nums}.nav-link.active{box-shadow:inset 2px 0 var(--theme-accent)}.icon-button,.button,.nav-link,.refresh-button{transition:background .15s,border-color .15s,color .15s}.panel-head h2{font-weight:680}.statusline{letter-spacing:.025em}html[data-aegis-theme=light] .metric,html[data-aegis-theme=light] .panel{box-shadow:0 8px 24px #19253008}@media(max-width:760px){.top-home-link{display:none}.view-title{padding-bottom:13px}}@media(prefers-reduced-motion:reduce){.icon-button,.button,.nav-link{transition:none}}
