/* SPDX-License-Identifier: Apache-2.0
 * (c) 2026 Lutar, Stephen P. - SZL Holdings - ORCID 0009-0001-0110-4173
 * Console shell, System Health, Readiness and Models/Kernels. Palette, type and spacing use vendored SZL tokens.
 */
/* console.html declares its own :root --bg after KANCHAY, so the canvas is restated here with
   KANCHAY 1.3.0's graphite and paper tokens. */
html[data-console-style="restrained"] {
  --bg:var(--color-graphite-900); --bg-deep:var(--color-graphite-950);
  background:var(--bg);
}
html[data-console-style="restrained"][data-surface="light"] {
  --bg:var(--color-paper-100); --bg-deep:var(--color-paper-200);
}
/* Console aliases resolve on <html> and again on every nested dark or light surface, so a
   dark panel inside the light shell keeps its own ink, links and status colors. */
html[data-console-style="restrained"],
html[data-console-style="restrained"] :is([data-surface="dark"],[data-surface="light"]) {
  --ground:var(--bg); --void:var(--bg); --panel:var(--surface); --panel2:var(--surface-alt);
  --rail:var(--surface); --cream:var(--text); --paragraph:var(--text-sub);
  --muted:var(--text-sub); --dim:var(--text-sub); --gray:var(--text-sub);
  --gold:var(--text); --gold-bright:var(--text); --gold-line:var(--border);
  --teal:var(--link); --proof:var(--link) !important; --teal-line:var(--border);
  --lattice:var(--text-sub); --mono:var(--font-mono); --display:var(--font-display);
  --f1:var(--text-xs); --f2:var(--text-base); --f3:var(--text-lg);
  --f4:var(--text-xl); --f5:var(--text-2xl); --f6:var(--text-3xl);
  --f7:var(--text-4xl); --f8:var(--text-5xl); --f9:var(--text-6xl);
  --health-ok:var(--color-success-light); --health-warning:var(--color-warning-light);
  --health-error:var(--color-error-light);
  --live:var(--health-ok); --warn:var(--health-warning); --err:var(--health-error);
  --szl-holo-bg:var(--bg) !important; --szl-holo-bg-deep:var(--bg-deep) !important;
  --szl-holo-surface:var(--surface) !important; --szl-holo-surface-2:var(--surface-alt) !important;
  --szl-holo-ink:var(--text) !important; --szl-holo-muted:var(--text-sub) !important;
  --szl-holo-faint:var(--text-sub) !important;
  --szl-holo-accent:var(--accent) !important; --szl-holo-accent-2:var(--accent) !important;
  --szl-holo-line:var(--border); --szl-holo-line-soft:var(--border);
  --szl-holo-font:var(--font-body); --szl-holo-mono:var(--font-mono);
  --szl-holo-space-1:var(--space-2); --szl-holo-space-2:var(--space-4);
  --szl-holo-space-3:var(--space-6); --szl-holo-space-4:var(--space-8);
  --szl-holo-space-5:var(--space-12);
}
html[data-console-style="restrained"][data-surface="light"],
html[data-console-style="restrained"] [data-surface="light"] {
  --health-ok:var(--color-success-strong); --health-warning:var(--color-hatun-800);
  --health-error:var(--color-yawar-700);
}
html[data-console-style] body {
  background:var(--bg) !important; color:var(--text); font-family:var(--font-body);
}
html[data-console-style] body::before,
html[data-console-style] body::after,
html[data-console-style]:is([data-view="fleet"],[data-view="readiness"],[data-view="estate"]) .content::before,
html[data-console-style]:is([data-view="fleet"],[data-view="readiness"],[data-view="estate"]) .content::after { display:none !important; }
html[data-console-style] .szl-proof { color:var(--link) !important; }
html[data-console-style] .side .mark {
  width:40px; height:40px; flex:0 0 40px; object-fit:contain; padding:0;
  background:transparent !important; box-shadow:none; border:0;
}
html[data-console-style] :is(#szl-holo-ambient,.szl-holo-progress,.side .ico) { display:none !important; }
html[data-console-style] :is(.szl-hbar,.side,.szl-overflow-menu,.szl-pal,.szl-pal-panel) {
  background:var(--surface) !important; background-image:none !important;
  color:var(--text); border-color:var(--border) !important; box-shadow:none !important;
  backdrop-filter:none !important;
}
html[data-console-style] :is(.szl-hbar,.side,.szl-pal)::before,
html[data-console-style] :is(.szl-hbar,.side,.szl-pal)::after { display:none !important; }
html[data-console-style] .szl-hbar { padding:var(--space-2) var(--space-4) !important; gap:var(--space-2) !important; }
html[data-console-style] .szl-hbar-zone { padding:0; gap:var(--space-2); border:0; }
html[data-console-style] :is(.szl-origins,.szl-hbar-switch,.szl-hbar-live) { gap:var(--space-2); }
html[data-console-style] :is(.szl-hbar-crumb,.szl-hbar-crumb .now,.szl-hbar-crumb .sep) {
  color:var(--text-sub); font-size:var(--text-xs); letter-spacing:var(--tracking-normal);
}
html[data-console-style] :is(.szl-hbar button,.szl-hbar a,.szl-pal button,.szl-pal a,.side button,.side a,.side [role="button"]) {
  min-width:44px !important; min-height:44px !important;
  padding:var(--space-2) var(--space-3); font-size:var(--text-sm) !important;
  font-family:var(--font-body); letter-spacing:var(--tracking-normal); text-transform:none;
  color:var(--text); background:transparent; border-color:var(--border);
}
html[data-console-style] :is(.szl-origin.is-on,.side .nav-item.active) {
  color:var(--text) !important; background:var(--surface-raised) !important;
  border-color:var(--accent) !important; box-shadow:none !important;
}
html[data-console-style] :is(.szl-hbar a:hover,.szl-hbar button:hover,.side .nav-item:hover,.szl-pal-item:hover,.szl-pal-item.active) {
  background:var(--surface-raised) !important; color:var(--text) !important;
}
html[data-console-style] .szl-chip {
  background:var(--surface) !important; border-color:var(--border) !important;
  color:var(--text-sub) !important; box-shadow:none !important; backdrop-filter:none;
  font-size:var(--text-xs); padding:var(--space-1) var(--space-2); gap:var(--space-2);
}
html[data-console-style] .szl-chip--live .szl-dot { background:var(--health-ok); box-shadow:none; }
html[data-console-style] .side { padding:var(--space-4) !important; }
html[data-console-style] .side .nav-item { margin:0 0 var(--space-1); gap:var(--space-2); }
html[data-console-style] :is(.nav-group,.side-foot) { color:var(--text-sub) !important; font-size:var(--text-xs) !important; }
html[data-console-style] .szl-pal-input {
  color:var(--text); background:var(--surface); font:inherit; font-size:var(--text-base); min-height:44px;
}
html[data-console-style] .szl-pal-close {
  color:var(--text); background:var(--surface); border-color:var(--control-edge);
}
html[data-console-style] :is(.szl-pal-head,.szl-pal input) {
  color:var(--text); background:var(--surface); border-color:var(--border);
}
html[data-console-style] .szl-pal input::placeholder { color:var(--text-sub); }
html[data-console-style] :is(.szl-pal-hint,.szl-pal-sub,.szl-pal-empty) { color:var(--text-sub); font-size:var(--text-sm); }
html[data-console-style] :is(a,button,input,[tabindex]):focus-visible {
  outline:var(--border-focus) solid var(--focus) !important; outline-offset:var(--space-1);
  box-shadow:none !important;
}
html[data-console-style] .skip-link { min-height:44px; padding:var(--space-3); background:var(--surface); color:var(--text); }

/* Analytical views retain the light palettes built into their charts. Their explicit
   graphite workspace is independent of the surrounding paper or graphite shell.
   Opaque panels replace the older competing Flow/Holo gradients; source states and
   the chart data are unaffected. */
html[data-console-style] .content {
  padding:var(--space-8) !important; background:var(--bg) !important; color:var(--text);
}
html[data-console-style] .app {
  min-height:0 !important; height:calc(100dvh - var(--szl-console-header-height,68px)) !important;
  flex:0 0 auto; overflow:hidden;
}
html[data-console-style] .content {
  min-height:0; height:100% !important; overflow-y:auto !important; overflow-x:hidden !important;
}
html[data-console-style] .content::before,
html[data-console-style] .content::after { display:none !important; }
html[data-console-style] .view-head { gap:var(--space-4); align-items:baseline; }
html[data-console-style] .view-title {
  font:var(--weight-semibold) clamp(var(--text-2xl),2.5vw,var(--text-3xl))/var(--leading-snug) var(--font-display);
  color:var(--text); margin:0; overflow-wrap:anywhere;
}
html[data-console-style] .view-sub {
  font:var(--text-base)/var(--leading-normal) var(--font-body); color:var(--text-sub);
  max-width:90ch; margin:var(--space-4) 0 var(--space-6);
}
html[data-console-style] .view-badge {
  color:var(--text-sub); background:var(--surface); border-color:var(--border);
  font-size:var(--text-xs); line-height:var(--leading-normal); white-space:normal;
  max-width:100%; overflow-wrap:anywhere; box-shadow:none;
}
html[data-console-style] #vbody[data-console-workspace="analytical"] {
  background:var(--bg); color:var(--text); padding:var(--space-6);
  border:1px solid var(--border); border-radius:var(--radius-xl); min-width:0;
  font-size:var(--text-sm); line-height:var(--leading-normal);
}
html[data-console-style] [data-console-workspace="analytical"] :is(.card,.kpi,.panel,.atlas-card,.atlas-detail) {
  background:var(--surface) !important; background-image:none !important; color:var(--text);
  border:1px solid var(--border) !important; border-radius:var(--radius-lg) !important;
  box-shadow:none !important; backdrop-filter:none !important; -webkit-backdrop-filter:none !important;
  min-width:0; max-width:100%;
}
html[data-console-style] [data-console-workspace="analytical"] :is(.card,.kpi)::before,
html[data-console-style] [data-console-workspace="analytical"] :is(.card,.kpi)::after { display:none !important; }
html[data-console-style] [data-console-workspace="analytical"] :is(.card,.kpi) { padding:var(--space-5); }
html[data-console-style] [data-console-workspace="analytical"] .card { margin-bottom:var(--space-5); }
html[data-console-style] [data-console-workspace="analytical"] .card-h {
  gap:var(--space-3); align-items:baseline; margin-bottom:var(--space-4); flex-wrap:wrap;
}
html[data-console-style] [data-console-workspace="analytical"] .card-t {
  color:var(--text); font-size:var(--text-lg); line-height:var(--leading-snug); overflow-wrap:anywhere;
}
html[data-console-style] [data-console-workspace="analytical"] :is(.card-ep,.kpi .k,.kpi .d,.brain-note,.honesty) {
  color:var(--text-sub); font-size:var(--text-sm); line-height:var(--leading-normal); overflow-wrap:anywhere;
}
html[data-console-style] [data-console-workspace="analytical"] .kpis {
  grid-template-columns:repeat(auto-fit,minmax(min(100%,10rem),1fr)); gap:var(--space-4);
  margin-bottom:var(--space-5);
}
html[data-console-style] [data-console-workspace="analytical"] .kpi .v {
  font-size:var(--text-2xl); line-height:var(--leading-snug); font-variant-numeric:tabular-nums;
}
html[data-console-style] [data-console-workspace="analytical"] :is(button,summary,.btn,.vchip,.atlas-route) {
  min-width:44px !important; min-height:44px !important; max-width:100%;
  font-size:var(--text-sm) !important; white-space:normal; overflow-wrap:anywhere;
}
html[data-console-style] [data-console-workspace="analytical"] :is(.btn,.vchip,.atlas-route) {
  padding:var(--space-2) var(--space-3); color:var(--text) !important;
  background:var(--surface) !important; border-color:var(--control-edge) !important;
  border-radius:var(--radius-md); box-shadow:none; transform:none;
}
html[data-console-style] [data-console-workspace="analytical"] :is(.btn,.vchip,.atlas-route):hover {
  color:var(--text) !important; background:var(--surface-raised) !important;
}
html[data-console-style] [data-console-workspace="analytical"] :is(input,textarea,select) {
  color:var(--text); background:var(--surface); border-color:var(--control-edge);
  max-width:100%; min-width:0; min-height:44px; font-size:var(--text-base);
}
html[data-console-style] [data-console-workspace="analytical"] :is(pre,code) { overflow-wrap:anywhere; }
html[data-console-style] [data-console-workspace="analytical"] .atlas-grid {
  grid-template-columns:repeat(auto-fit,minmax(min(100%,24rem),1fr));
}
html[data-console-style] [data-console-workspace="analytical"] :is(.atlas-badge,.atlas-routes) {
  max-width:100%; white-space:normal; overflow-wrap:anywhere;
}
html[data-console-style] [data-console-workspace="analytical"] .atlas-badge {
  color:var(--text) !important; background:var(--surface-alt) !important; font-size:var(--text-xs);
}
html[data-console-style] [data-console-workspace="analytical"] .atlas-routes { flex-wrap:wrap; }
html[data-console-style] [data-console-workspace="analytical"] :is(.atlas-meta-row,.atlas-meta-row>*,.atlas-cites,.atlas-cites>*) {
  min-width:0; max-width:100%; overflow-wrap:anywhere;
}
html[data-console-style] [data-console-workspace="analytical"] .atlas-meta-row { flex-wrap:wrap; }
html[data-console-style] [data-console-workspace="analytical"] .atlas-cite {
  display:inline-flex; align-items:center; min-height:44px; white-space:normal; font-size:var(--text-sm);
}
html[data-console-style] .content .mb-measured { color:var(--text-sub); border-color:var(--control-edge); }
html[data-console-style] .content .formula-maturity {
  color:var(--text) !important; border-color:var(--control-edge) !important;
  background:var(--surface-alt) !important; font-size:var(--text-xs);
}
html[data-console-style] .content .formula-reference :is(.dim,code) {
  color:var(--text-sub) !important; font-size:var(--text-sm) !important;
}
html[data-console-style] #tk-panel-host {
  background:var(--surface) !important; color:var(--text); border-color:var(--border) !important;
  padding:var(--space-5) !important; border-radius:var(--radius-lg) !important;
}
html[data-console-style] #tk-panel-host :is(.tk-note,.tk-k) { color:var(--text-sub); font-size:var(--text-xs); }
html[data-console-style] #tk-panel-host :is(.tk-sub,.tk-v,textarea,button) { font-size:var(--text-sm); }
html[data-console-style] #tk-panel-host button { min-width:44px; min-height:44px; }
html[data-console-style] #wt-ung .row,
html[data-console-style] #cpq-tamper { color:var(--health-error) !important; }
html[data-console-style] [data-console-workspace="analytical"] .console-table-region {
  max-width:100%; overflow:auto; padding:var(--space-1); border:1px solid var(--border);
  border-radius:var(--radius-md); scrollbar-color:var(--control-edge) var(--surface);
}
html[data-console-style] [data-console-workspace="analytical"] .console-table-region table {
  min-width:40rem; width:100%; border-collapse:collapse;
}
html[data-console-style] [data-console-workspace="analytical"] .console-table-region :is(th,td) { padding:var(--space-3); }
html[data-console-style] [data-console-workspace="analytical"] .console-table-region a {
  display:inline-flex; align-items:center; min-height:44px; min-width:44px;
}
@media(max-width:820px) {
  html[data-console-style] .content { padding:var(--space-6) var(--space-4) !important; }
  html[data-console-style] #vbody[data-console-workspace="analytical"] { padding:var(--space-4); }
  html[data-console-style] [data-console-workspace="analytical"] :is(.card,.kpi) { padding:var(--space-4); }
  html[data-console-style] [data-console-workspace="analytical"] .view-sub { font-size:var(--text-sm); }
}
@media(forced-colors:active) {
  html[data-console-style] #vbody[data-console-workspace="analytical"],
  html[data-console-style] [data-console-workspace="analytical"] :is(.card,.kpi,.panel,.atlas-card,.atlas-detail) {
    background:Canvas !important; color:CanvasText; border-color:CanvasText !important;
    background-image:none !important;
  }
}
html[data-console-style]:is([data-view="fleet"],[data-view="readiness"],[data-view="estate"]) .content {
  padding:var(--space-8) !important; background:var(--bg) !important; color:var(--text);
}
html[data-console-style]:is([data-view="fleet"],[data-view="readiness"],[data-view="estate"]) :is(#vbody,.view-head,.view-sub) { max-width:var(--container); }
html[data-console-style]:is([data-view="fleet"],[data-view="readiness"],[data-view="estate"]) :is(.view-title,.view-sub,.view-badge) {
  font-family:var(--font-body); color:var(--text);
}
html[data-console-style]:is([data-view="fleet"],[data-view="readiness"],[data-view="estate"]) .view-title { font-size:var(--text-3xl); line-height:var(--leading-snug); }
html[data-console-style]:is([data-view="fleet"],[data-view="readiness"],[data-view="estate"]) .view-sub { font-size:var(--text-base); color:var(--text-sub); margin:var(--space-4) 0 var(--space-8); }
html[data-console-style]:is([data-view="fleet"],[data-view="readiness"],[data-view="estate"]) .view-badge { color:var(--text-sub); background:transparent; border-color:var(--border); font-size:var(--text-xs); padding:var(--space-1) var(--space-2); }
html[data-console-style]:is([data-view="fleet"],[data-view="readiness"],[data-view="estate"]) :is(.card,.health-evidence) {
  background:var(--surface) !important; background-image:none !important;
  box-shadow:none !important; border:1px solid var(--border) !important;
  border-radius:var(--radius-lg); padding:var(--space-6); margin:0 0 var(--space-6);
}
html[data-console-style]:is([data-view="fleet"],[data-view="readiness"],[data-view="estate"]) .card::before,
html[data-console-style]:is([data-view="fleet"],[data-view="readiness"],[data-view="estate"]) .card::after { display:none !important; }
html[data-console-style]:is([data-view="fleet"],[data-view="readiness"],[data-view="estate"]) .card-h { padding:0 0 var(--space-4); margin:0; border-color:var(--border); }
html[data-console-style]:is([data-view="fleet"],[data-view="readiness"],[data-view="estate"]) h2 { font-size:var(--text-lg); margin:0; }
html[data-console-style] .health-overview { display:flex; flex-wrap:wrap; gap:var(--space-8); margin:0 0 var(--space-8); }
html[data-console-style] .health-metric { flex:1 1 12rem; }
html[data-console-style] .health-metric .k { color:var(--text-sub); font-size:var(--text-sm); }
html[data-console-style] .health-metric .v { font-size:var(--text-2xl); font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
html[data-console-style] .health-label { display:inline-block; color:var(--text); font-size:var(--text-xs); font-weight:var(--weight-semibold); border-left:var(--border-focus) solid var(--accent); padding-left:var(--space-2); }
html[data-console-style] .health-evidence p { color:var(--text-sub); font-size:var(--text-sm); margin:var(--space-3) 0 0; }
html[data-console-style] .health-list { list-style:none; margin:0; padding:0; }
html[data-console-style] .health-list li { display:flex; align-items:center; justify-content:space-between; gap:var(--space-4); padding:var(--space-4) 0; border-bottom:1px solid var(--border); }
html[data-console-style] .health-service { display:grid; gap:var(--space-1); min-width:0; }
html[data-console-style] .health-service strong { font-size:var(--text-base); overflow-wrap:anywhere; }
html[data-console-style] .health-service span { font-size:var(--text-sm); color:var(--text-sub); }
html[data-console-style] .health-status { flex-shrink:0; color:var(--text-sub); font-size:var(--text-sm); }
html[data-console-style] .health-status[data-status="ok"] { color:var(--health-ok); }
html[data-console-style] .health-status[data-status="warning"] { color:var(--health-warning); }
html[data-console-style] .health-status[data-status="error"] { color:var(--health-error); }
html[data-console-style] .health-note { color:var(--text-sub); font-size:var(--text-sm); margin:var(--space-4) 0 0; }
html[data-console-style] #fl-grid { padding:var(--space-2) 0; }
@media(max-width:820px) {
  html[data-console-style]:is([data-view="fleet"],[data-view="readiness"],[data-view="estate"]) .content { padding:var(--space-6) var(--space-4) !important; }
  html[data-console-style] .szl-hbar .menu-btn { margin-right:var(--space-2); }
  html[data-console-style] .health-overview { gap:var(--space-4); }
  html[data-console-style] .health-metric { flex-basis:8rem; }
  html[data-console-style]:is([data-view="fleet"],[data-view="readiness"],[data-view="estate"]) :is(.card,.health-evidence) { padding:var(--space-4); }
  html[data-console-style] .szl-hbar {
    display:grid !important; grid-template-columns:44px minmax(0,1fr) auto;
    gap:var(--space-2) !important;
  }
  html[data-console-style] .szl-hbar .menu-btn { grid-column:1; grid-row:1; margin:0; }
  html[data-console-style] .szl-hbar-scope { grid-column:2; grid-row:1; max-width:none; }
  html[data-console-style] .szl-hbar-switch { display:contents; }
  html[data-console-style] .szl-cmdk { grid-column:3; grid-row:1; }
  html[data-console-style] .szl-origins { grid-column:1/3; grid-row:2; flex-wrap:nowrap; }
  html[data-console-style] .szl-origins .szl-origin {
    padding-inline:var(--space-2) !important; white-space:nowrap; flex-shrink:0;
  }
  html[data-console-style] .szl-origins a[href="/holographic"],
  html[data-console-style] .szl-origins a[href="/frontier-now"] { display:none; }
  html[data-console-style] .szl-overflow { grid-column:3; grid-row:2; }
  html[data-console-style] .szl-hbar-live { grid-column:1/-1; grid-row:3; min-width:0; }
  html[data-console-style] .szl-hbar .szl-more { padding-inline:var(--space-2); }
  html[data-console-style] .szl-overflow-menu :is(a,button) {
    width:100%; display:flex; text-align:left; justify-content:flex-start;
    border:0; border-radius:var(--radius-sm); margin:0;
  }
}
@media(prefers-reduced-motion:reduce) {
  html[data-console-style] :is(.szl-hbar,.side,.szl-pal,.content) *,
  html[data-console-style] :is(.szl-hbar,.side,.szl-pal,.content) *::before,
  html[data-console-style] :is(.szl-hbar,.side,.szl-pal,.content) *::after { animation:none !important; transition:none !important; scroll-behavior:auto !important; }
}

/* Inventory and readiness are observations, not delivery classifications. */
html[data-console-style][data-view="readiness"] :is(.row,.dim,.honesty) {
  font-size:var(--text-sm) !important; line-height:var(--leading-normal); overflow-wrap:anywhere;
}
html[data-console-style][data-view="readiness"] :is(.row,.rd-section-head) {
  display:flex; flex-wrap:wrap; align-items:baseline; gap:var(--space-3);
}
html[data-console-style][data-view="readiness"] .rd-section-head { justify-content:space-between; align-items:center; }
html[data-console-style][data-view="readiness"] .rd-section-body { margin-top:var(--space-4); }
html[data-console-style][data-view="readiness"] .rd-badge {
  color:var(--text-sub); border:1px solid var(--border); background:var(--surface-alt);
  padding:var(--space-1) var(--space-2); font-size:var(--text-xs); border-radius:var(--radius-lg);
}
html[data-console-style][data-view="readiness"] .rd-badge[data-tone="good"] { color:var(--health-ok); }
html[data-console-style][data-view="readiness"] .rd-badge[data-tone="warn"] { color:var(--health-warning); }
html[data-console-style][data-view="readiness"] .rd-badge[data-tone="bad"] { color:var(--health-error); }
html[data-console-style]:is([data-view="readiness"],[data-view="estate"]) #vbody :is(a,button,summary) {
  display:inline-flex; align-items:center; min-height:44px; min-width:44px;
  padding:var(--space-2) var(--space-3); font-size:var(--text-sm) !important;
  overflow-wrap:anywhere; max-width:100%;
}
html[data-console-style][data-view="estate"] :is(.szl-estate-tiles,.szl-estate-grid) {
  display:block; background:none; min-width:0;
}
html[data-console-style][data-view="estate"] .szl-holo-card {
  background:var(--surface) !important; background-image:none !important;
  border:1px solid var(--border); border-radius:var(--radius-lg);
  box-shadow:none !important; transform:none !important; padding:var(--space-6); margin-bottom:var(--space-6);
}
html[data-console-style][data-view="estate"] .szl-holo-card::before,
html[data-console-style][data-view="estate"] .szl-holo-card::after { display:none !important; }
html[data-console-style][data-view="estate"] :is(.szl-holo-title,.szl-estate-h) { font-family:var(--font-body); color:var(--text); font-size:var(--text-lg); }
html[data-console-style][data-view="estate"] :is(.szl-holo-one,.szl-holo-note,.szl-holo-facts,.szl-estate-foot,.szl-estate-legend,.szl-holo-lambda) {
  font-family:var(--font-body); color:var(--text-sub); font-size:var(--text-sm); line-height:var(--leading-normal); overflow-wrap:anywhere;
}
html[data-console-style][data-view="estate"] .szl-holo-facts div { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,3fr); gap:var(--space-4); }
html[data-console-style][data-view="estate"] .szl-holo-facts dd { min-width:0; margin:0; }
html[data-console-style][data-view="estate"] .szl-holo-chip { color:var(--text); background:var(--surface-alt); border-color:var(--border); box-shadow:none; }
html[data-console-style] .delivery-scope { color:var(--text-sub); font-size:var(--text-sm); line-height:var(--leading-normal); margin:var(--space-4) 0; }
@media(max-width:820px) {
  html[data-console-style][data-view="estate"] .szl-holo-card { padding:var(--space-4); }
  html[data-console-style][data-view="estate"] .szl-holo-facts div { grid-template-columns:minmax(0,1fr); gap:var(--space-1); margin-bottom:var(--space-3); }
}

html[data-console-style][data-view="estate"] .szl-holo-title {
  background:none; background-clip:initial; -webkit-background-clip:initial; -webkit-text-fill-color:currentColor;
}
html[data-console-style][data-view="estate"] :is(.szl-holo-facts dt,.szl-holo-facts dd,.szl-holo-chip,.szl-holo-k,.szl-holo-id) {
  font-size:var(--text-sm); line-height:var(--leading-normal); letter-spacing:var(--tracking-normal);
}
html[data-console-style][data-view="estate"] .szl-holo-chip { padding:var(--space-1) var(--space-2); gap:var(--space-2); }
html[data-console-style][data-view="readiness"] :is(.rd-toolbar,.rd-actions,.rd-summary) {
  display:flex; align-items:center; flex-wrap:wrap; gap:var(--space-3);
}
html[data-console-style][data-view="readiness"] .rd-toolbar { justify-content:space-between; }
html[data-console-style][data-view="readiness"] .rd-note { margin-top:var(--space-2); }

html[data-console-style][data-view="estate"] .szl-holo-card { gap:var(--space-3); backdrop-filter:none; -webkit-backdrop-filter:none; }
html[data-console-style][data-view="estate"] .szl-estate-legend { gap:var(--space-3) var(--space-4); margin-bottom:var(--space-4); letter-spacing:var(--tracking-normal); text-transform:none; }
html[data-console-style][data-view="estate"] .szl-estate-h { margin:var(--space-6) 0 var(--space-3); letter-spacing:var(--tracking-normal); text-transform:none; }
html[data-console-style][data-view="estate"] .szl-holo-act { gap:var(--space-3); }
html[data-console-style][data-view="estate"] .szl-holo-facts { gap:var(--space-2); }
html[data-console-style][data-view="estate"] .szl-holo-chip { margin-right:var(--space-2); border-radius:var(--radius-lg); }

/* Legacy decoration fixes pane heights to an obsolete header size and hides overflow. */
html[data-console-style]:is([data-view="fleet"],[data-view="readiness"],[data-view="estate"]) .app {
  min-height:0 !important; height:calc(100dvh - var(--szl-console-header-height,68px)) !important;
  flex:0 0 auto; overflow:hidden;
}
html[data-console-style]:is([data-view="fleet"],[data-view="readiness"],[data-view="estate"]) .content {
  min-height:0; height:100% !important; overflow-y:auto !important; overflow-x:hidden !important;
}

/* The front door shares the operator shell. Its foil is confined to the dark hero;
   evidence panels keep opaque, theme-local grounds for legibility. */
html[data-console-style][data-view="command"] .content {
  padding:var(--space-8) !important; color:var(--text); background:var(--bg) !important;
}
html[data-console-style][data-view="command"] :is(.view-head,.view-sub,#vbody) {
  max-width:var(--container); margin-inline:auto;
}
html[data-console-style][data-view="command"] .view-head { gap:var(--space-4); flex-wrap:wrap; }
html[data-console-style][data-view="command"] .view-title {
  font:var(--weight-semibold) var(--text-3xl)/var(--leading-snug) var(--font-display);
  letter-spacing:var(--tracking-tight); color:var(--text);
}
html[data-console-style][data-view="command"] .view-sub {
  margin-block:var(--space-3) var(--space-8); color:var(--text-sub);
  font-size:var(--text-base); line-height:var(--leading-normal);
}
html[data-console-style][data-view="command"] .view-badge {
  color:var(--text-sub); background:var(--surface); border-color:var(--border);
  font-size:var(--text-xs); white-space:normal; box-shadow:none;
}
html[data-console-style][data-view="command"] .hero {
  padding:var(--space-8); border-radius:var(--radius-xl); border-color:var(--control-edge);
  background:radial-gradient(120% 80% at 70% -10%,var(--hero-atmosphere),transparent 60%),var(--bg);
  color:var(--text); isolation:isolate;
}
html[data-console-style][data-view="command"] .hero-inner {
  max-width:none; display:grid; grid-template-columns:minmax(0,1.65fr) minmax(0,1fr);
  column-gap:var(--space-8); align-items:start;
}
html[data-console-style][data-view="command"] .hero-inner > :not(.hero-counters) { grid-column:1; }
html[data-console-style][data-view="command"] .hero-eyebrow {
  grid-row:1;
  margin:0 0 var(--space-4); color:var(--text-sub); font-size:var(--text-xs);
  letter-spacing:var(--tracking-caps); line-height:var(--leading-normal);
}
html[data-console-style][data-view="command"] .hero-h1 {
  grid-row:2;
  font-size:clamp(var(--text-2xl),3.6vw,var(--text-5xl)); line-height:var(--leading-snug);
  letter-spacing:var(--tracking-tight); color:var(--text); margin:0 0 var(--space-4);
}
html[data-console-style][data-view="command"] .hero-accent { color:var(--text); }
html[data-console-style][data-view="command"] .hero-sub {
  grid-row:3;
  font-size:var(--text-base); line-height:var(--leading-normal);
  color:var(--text-sub); max-width:52ch; margin:0 0 var(--space-6);
}
html[data-console-style][data-view="command"] .hero-counters {
  grid-column:2; grid-row:1/5; display:grid; grid-template-columns:minmax(0,1fr);
  gap:var(--space-3); margin:0; align-self:stretch;
}
html[data-console-style][data-view="command"] .hctr {
  min-width:0; padding:var(--space-4); border-radius:var(--radius-lg);
  background:var(--surface); border:1px solid var(--border);
}
html[data-console-style][data-view="command"] .hctr-k {
  color:var(--text-sub); font-size:var(--text-xs); flex-wrap:wrap;
  line-height:var(--leading-normal); gap:var(--space-2);
}
html[data-console-style][data-view="command"] .hctr-v {
  color:var(--text); font-size:var(--text-2xl); line-height:var(--leading-snug);
  margin:var(--space-2) 0; overflow-wrap:anywhere;
}
html[data-console-style][data-view="command"] :is(.hctr-d,.mlabel,.chip-locked) {
  color:var(--text-sub); border-color:var(--control-edge); font-size:var(--text-xs);
  line-height:var(--leading-normal); background:transparent;
}
html[data-console-style][data-view="command"] .hero-cta {
  grid-row:4; display:flex; align-items:stretch; flex-wrap:wrap; gap:var(--space-3); margin:0;
}
html[data-console-style][data-view="command"] .hero-cta a {
  display:inline-flex; align-items:center; justify-content:center; min-height:44px;
  margin:0; padding:var(--space-3) var(--space-4); max-width:100%;
  font-size:var(--text-sm); line-height:var(--leading-normal); white-space:normal;
  overflow-wrap:anywhere; border-radius:var(--radius-md); transform:none; box-shadow:none;
}
html[data-console-style][data-view="command"] .hero-cta .btn-primary {
  color:var(--action-ink,var(--accent-ink)); background:var(--action-bg,var(--accent));
  border-color:var(--action-bg,var(--accent));
}
html[data-console-style][data-view="command"] .hero-cta .btn-primary:hover {
  color:var(--action-ink,var(--accent-ink)); background:var(--action-hover-bg,var(--accent-hover));
  border-color:var(--action-hover-bg,var(--accent-hover));
}
html[data-console-style][data-view="command"] .hero-cta .btn-primary:active {
  color:var(--action-ink,var(--accent-ink)); background:var(--action-press-bg,var(--accent-press));
  border-color:var(--action-press-bg,var(--accent-press));
}
html[data-console-style][data-view="command"] .hero-cta .btn-ghost {
  color:var(--text); border-color:var(--control-edge); background:transparent;
}
html[data-console-style][data-view="command"] .hero-cta .btn-ghost:hover { background:var(--surface-raised); }
html[data-console-style][data-view="command"] .hero-cards {
  grid-template-columns:repeat(auto-fit,minmax(min(100%,13rem),1fr)); gap:var(--space-4); margin-top:var(--space-8);
}
html[data-console-style][data-view="command"] .vcard {
  padding:var(--space-5); border-radius:var(--radius-lg); border-color:var(--border);
  background:var(--surface); gap:var(--space-3); transform:none;
}
html[data-console-style][data-view="command"] .vcard:hover { border-color:var(--control-edge); background:var(--surface-raised); }
html[data-console-style][data-view="command"] .vcard h3 { color:var(--text); font-size:var(--text-base); }
html[data-console-style][data-view="command"] .vcard p { color:var(--text-sub); font-size:var(--text-sm); line-height:var(--leading-normal); }
html[data-console-style][data-view="command"] .vcard-go { color:var(--link); font-size:var(--text-sm); }
html[data-console-style][data-view="command"] :is(.hero-creds,.hero-hook) { margin-top:var(--space-6); }
html[data-console-style][data-view="command"] .cred {
  color:var(--text); background:var(--surface); border-color:var(--control-edge); min-height:44px;
  font-size:var(--text-xs); padding:var(--space-2) var(--space-3); overflow-wrap:anywhere;
}
html[data-console-style][data-view="command"] :is(.cred-cap,.hero-hook p) {
  color:var(--text-sub); font-size:var(--text-sm); line-height:var(--leading-normal);
}
html[data-console-style][data-view="command"] .hero-hook strong { color:var(--text); }
html[data-console-style][data-view="command"] .kpis {
  display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,10rem),1fr));
  gap:var(--space-4); margin:var(--space-6) 0;
}
html[data-console-style][data-view="command"] :is(.card,.kpi) {
  background:var(--surface) !important; color:var(--text); border:1px solid var(--border) !important;
  border-radius:var(--radius-lg); box-shadow:none !important; backdrop-filter:none;
  padding:var(--space-5); min-width:0;
}
html[data-console-style][data-view="command"] :is(.card,.kpi)::before,
html[data-console-style][data-view="command"] :is(.card,.kpi)::after { display:none !important; }
html[data-console-style][data-view="command"] :is(.card-t,.kpi .v) { color:var(--text); }
html[data-console-style][data-view="command"] :is(.card-ep,.kpi .k,.kpi .d,.brain-note,.honesty) {
  color:var(--text-sub); font-size:var(--text-sm); line-height:var(--leading-normal); overflow-wrap:anywhere;
}
html[data-console-style][data-view="command"] .card-h { flex-wrap:wrap; gap:var(--space-3); }
html[data-console-style][data-view="command"] :is(.kpi .v,.kpi .d,.row) { overflow-wrap:anywhere; }
html[data-console-style][data-view="command"] #source-runtime-evidence .row {
  display:flex; flex-wrap:wrap; gap:var(--space-3); font-size:var(--text-sm);
}
html[data-console-style][data-view="command"] #source-runtime-evidence .btns { display:flex; flex-wrap:wrap; gap:var(--space-3); }
html[data-console-style][data-view="command"] #source-runtime-evidence .btn {
  min-height:44px; display:inline-flex; align-items:center; white-space:normal;
  font-size:var(--text-sm); padding:var(--space-2) var(--space-3); color:var(--link);
}
@media(max-width:1100px) {
  html[data-console-style][data-view="command"] .hero-inner { grid-template-columns:minmax(0,1fr); }
  html[data-console-style][data-view="command"] .hero-counters {
    grid-column:1; grid-row:5; grid-template-columns:repeat(3,minmax(0,1fr)); margin:var(--space-6) 0 0;
  }
}
@media(max-width:820px) {
  html[data-console-style][data-view="command"] .content { padding:var(--space-6) var(--space-4) !important; }
  html[data-console-style][data-view="command"] .hero { padding:var(--space-5); }
  html[data-console-style][data-view="command"] .hero-h1 br { display:none; }
  html[data-console-style][data-view="command"] .hero-counters { grid-template-columns:minmax(0,1fr); }
  html[data-console-style][data-view="command"] .hero-counters .hctr:last-child { grid-column:auto; }
  html[data-console-style][data-view="command"] .hero-cta { display:grid; grid-template-columns:minmax(0,1fr); }
}
@media(max-width:540px) {
  html[data-console-style][data-view="command"] .hero-cards { grid-template-columns:minmax(0,1fr); }
}

/* Research notes and estate navigation inherit their local reading surface. */
html[data-console-style] .content .gnd { border:1px solid var(--border); border-radius:var(--radius-lg); padding:var(--space-4); background:var(--surface); color:var(--text); }
html[data-console-style] .content .gnd>summary { min-height:44px; flex-wrap:wrap; color:var(--text); font-size:var(--text-sm); line-height:var(--leading-normal); }
html[data-console-style] .content :is(.gnd-say,.gnd-cites li,.gnd-kernel,.gnd-chev,.gnd-tw) { color:var(--text-sub); font-size:var(--text-sm); line-height:var(--leading-relaxed); }
html[data-console-style] .content :is(.gnd a,.szl-estate-foot a) { color:var(--link); text-decoration:underline; text-underline-offset:3px; }
html[data-console-style] .content .gnd-cites a { min-height:44px; display:inline-flex; align-items:center; }
html[data-console-style] .content .gnd-cites { border-color:var(--border); }

/* Local draft editors share the canonical reading and interaction roles. */
.gdw-draft-panel{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);gap:var(--space-5);align-items:start}
html[data-console-style] .gdw-draft-panel>.card{min-width:0;padding:var(--space-6);background:var(--surface)!important;color:var(--text);border:1px solid var(--border)!important;border-radius:var(--radius-lg);box-shadow:none!important;backdrop-filter:none}
html[data-console-style] .gdw-draft-panel>.card::before,html[data-console-style] .gdw-draft-panel>.card::after{display:none!important}
html[data-console-style]:is([data-view="ask"],[data-view="decision"]) .view-badge{color:var(--text-sub);background:var(--surface);border-color:var(--border);white-space:normal}
.gdw-draft-panel h2{font-size:var(--text-2xl);line-height:var(--leading-snug);color:var(--text)}
.gdw-draft-panel p{color:var(--text-sub);font-size:var(--text-base);line-height:var(--leading-relaxed)}
html[data-console-style] .gdw-draft-panel .eyebrow{color:var(--text-sub)!important;font-size:var(--text-xs);letter-spacing:var(--tracking-caps)}
.gdw-draft-panel .brain-note{font-family:var(--font-body)}
.gdw-draft-panel .field{display:grid;gap:var(--space-2);margin-block:var(--space-5)}
.gdw-draft-panel .field__label{color:var(--text);font-size:var(--text-sm);font-weight:var(--weight-semibold)}
.gdw-draft-panel .input{box-sizing:border-box;width:100%;resize:vertical;min-height:7rem;border:1px solid var(--control-edge);border-radius:var(--radius-md);padding:var(--space-3);font:inherit;font-size:var(--text-base);line-height:var(--leading-relaxed);background:var(--bg-deep);color:var(--text)}
.gdw-draft-panel .input::placeholder{color:var(--text-ghost)}
.gdw-draft-panel .input:focus-visible{outline:2px solid var(--focus);outline-offset:3px}
.gdw-draft-panel .btn,.gdw-draft-panel summary{min-height:44px}
.gdw-draft-panel .btn{color:var(--text);background:var(--surface);border:1px solid var(--control-edge);padding:var(--space-3);font:var(--weight-medium) var(--text-sm)/var(--leading-normal) var(--font-body);white-space:normal}
.gdw-draft-panel .btn:hover:not(:disabled){background:var(--surface-raised)}
.gdw-draft-panel .btn-primary{color:var(--action-ink);background:var(--action-bg);border-color:var(--action-bg)}
.gdw-draft-panel .btn-primary:hover:not(:disabled){color:var(--action-ink);background:var(--action-hover-bg);border-color:var(--action-hover-bg)}
.gdw-draft-panel .btn-primary:active:not(:disabled){color:var(--action-ink);background:var(--action-press-bg);border-color:var(--action-press-bg)}
.gdw-draft-panel .btn:disabled{cursor:default;color:var(--text-ghost);background:var(--surface);border-color:var(--border)}
.gdw-draft-panel summary{display:flex;align-items:center;cursor:pointer}
.gdw-draft-panel :is(summary,pre){color:var(--text-sub);font-size:var(--text-sm)}
.gdw-draft-panel pre{max-width:100%;overflow-wrap:anywhere;white-space:pre-wrap}
@media(max-width:900px){.gdw-draft-panel{grid-template-columns:minmax(0,1fr)}html[data-console-style] .gdw-draft-panel>.card{padding:var(--space-4)}}
