/* Isometric and flat diagrams carried over from the live site (tools/diagrams),
   recoloured from green to cobalt. Bridge: the live diagram tokens mapped onto v2's. */
:root{
  --accent:var(--a);--accent-contrast:var(--ax);--accent-wash:var(--aw);
  --bg-page:var(--bg);--bg-surface:var(--s1);--bg-elevated:var(--s1);--bg-inset:var(--bg2);
  --border-subtle:var(--l);--border-default:var(--l);--border-strong:var(--t3);
  --text-primary:var(--t1);--text-secondary:var(--t2);--text-muted:var(--t3);--text-faint:var(--t3);
  --sev-critical:var(--bad);--sev-critical-a:color-mix(in srgb,var(--bad) 12%,transparent);--sev-medium:var(--warn);
  --cyan-400:#22A7C9;
  --font-display:"Space Grotesk","IBM Plex Sans",system-ui,sans-serif;
  --font-body:"IBM Plex Sans",system-ui,sans-serif;
  --font-mono:"IBM Plex Mono",ui-monospace,monospace;
  --ease-out:cubic-bezier(.16,1,.3,1);
}
:root{
  --bg-page: #0B1017; --bg-sunken: #0E141C; --bg-surface: #141C27; --bg-inset: #10171F; --bg-elevated: #1B2430;
  --text-primary: #F5F8FB; --text-secondary: #93A2B3; --text-muted: #738294; --text-faint: #586676;
  --border-subtle: #1C2531; --border-default: #2A3645; --border-strong: #38485C;
  --accent: #7E9BFF; --accent-contrast: #06080B; --accent-wash: rgba(126,155,255,0.10);
  --text-link: #34D2F2; --cyan-400: #34D2F2;
  --sev-critical: #FF4D5E; --sev-high: #FF8A3D; --sev-medium: #FFC53D; --sev-low: #3DA8FF; --sev-info: #8A96A6;
  --sev-critical-a: rgba(255,77,94,0.12); --sev-high-a: rgba(255,138,61,0.12); --sev-medium-a: rgba(255,197,61,0.12);
  --black-950: #06080B; --selection-bg: rgba(126,155,255,0.22);
  --font-display: "Space Grotesk", "IBM Plex Sans", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --glow-accent: 0 0 24px rgba(126,155,255,0.28);
}
@media (prefers-color-scheme: light){:root:not([data-theme="dark"]){
    --bg-page: #F4F7FA; --bg-sunken: #EAEFF4; --bg-surface: #FFFFFF; --bg-inset: #F0F4F8; --bg-elevated: #FFFFFF;
    --text-primary: #0E1620; --text-secondary: #3B4859; --text-muted: #5A6A7B; --text-faint: #7A8899;
    --border-subtle: #E1E8EF; --border-default: #D2DCE6; --border-strong: #B7C4D2;
    --accent: #2F55D4; --accent-contrast: #FFFFFF; --accent-wash: rgba(47,85,212,0.10);
    --text-link: #18AFD6; --selection-bg: rgba(47,85,212,0.18);
    --sev-medium: #C08A00; --sev-critical-a: rgba(255,77,94,0.10); --sev-high-a: rgba(255,138,61,0.12); --sev-medium-a: rgba(214,158,0,0.14);
  }}
:root[data-theme="light"]{
    --bg-page: #F4F7FA; --bg-sunken: #EAEFF4; --bg-surface: #FFFFFF; --bg-inset: #F0F4F8; --bg-elevated: #FFFFFF;
    --text-primary: #0E1620; --text-secondary: #3B4859; --text-muted: #5A6A7B; --text-faint: #7A8899;
    --border-subtle: #E1E8EF; --border-default: #D2DCE6; --border-strong: #B7C4D2;
    --accent: #2F55D4; --accent-contrast: #FFFFFF; --accent-wash: rgba(47,85,212,0.10);
    --text-link: #18AFD6; --selection-bg: rgba(47,85,212,0.18);
    --sev-medium: #C08A00; --sev-critical-a: rgba(255,77,94,0.10); --sev-high-a: rgba(255,138,61,0.12); --sev-medium-a: rgba(214,158,0,0.14);
  }
.viz .iso-svg{display:block; width:100%; height:auto; min-width:760px}
:root{
  --viz-glow:rgba(126,155,255,.07);
  --iso-grid:rgba(147,162,179,.10); --iso-lead:#38485C;
  --g-t:#2A3645; --g-l:#151D27; --g-r:#1C2531;
  --sil-t:#3A4656; --sil-l:#1A222D; --sil-r:#232D3A;
  --tee-t:#1E5E6E; --tee-l:#0F2F38; --tee-r:#16424E;
  --att-t:#4A3F7A; --att-l:#231E3C; --att-r:#332B57;
  --img-t:#2C4A6E; --img-l:#142337; --img-r:#1D3350;
  --wrk-t:#2A3A78; --wrk-l:#141C3C; --wrk-r:#1E2A57;
  --core-t:#7E9BFF; --core-l:#3F5BC4; --core-r:#5A78E6;
  --in-t:#5A2A33; --in-l:#2C1418; --in-r:#3F1D23;
  --ven-t:#5B4A1E; --ven-l:#2D240E; --ven-r:#403417;
}
@media (prefers-color-scheme: light){:root:not([data-theme="dark"]){
  --viz-glow:rgba(47,85,212,.08);
  --iso-grid:rgba(59,72,89,.10); --iso-lead:#B7C4D2;
  --g-t:#FFFFFF; --g-l:#D2DCE6; --g-r:#E1E8EF;
  --sil-t:#E9EEF3; --sil-l:#B7C4D2; --sil-r:#CDD7E1;
  --tee-t:#D4F1F8; --tee-l:#8FCBDA; --tee-r:#B1DFEA;
  --att-t:#E6E0FA; --att-l:#B2A6E0; --att-r:#CBC2EE;
  --img-t:#DCE8F7; --img-l:#9FB8D6; --img-r:#BFD0E6;
  --wrk-t:#DCE4FB; --wrk-l:#9FB2EE; --wrk-r:#BFCDF5;
  --core-t:#5A7BEA; --core-l:#1E3A9E; --core-r:#2F55D4;
  --in-t:#FBE0E3; --in-l:#E39AA3; --in-r:#F0BCC2;
  --ven-t:#FBEFCF; --ven-l:#D9B964; --ven-r:#EAD39A;
}}
:root[data-theme="light"]{
  --viz-glow:rgba(47,85,212,.08);
  --iso-grid:rgba(59,72,89,.10); --iso-lead:#B7C4D2;
  --g-t:#FFFFFF; --g-l:#D2DCE6; --g-r:#E1E8EF;
  --sil-t:#E9EEF3; --sil-l:#B7C4D2; --sil-r:#CDD7E1;
  --tee-t:#D4F1F8; --tee-l:#8FCBDA; --tee-r:#B1DFEA;
  --att-t:#E6E0FA; --att-l:#B2A6E0; --att-r:#CBC2EE;
  --img-t:#DCE8F7; --img-l:#9FB8D6; --img-r:#BFD0E6;
  --wrk-t:#DCE4FB; --wrk-l:#9FB2EE; --wrk-r:#BFCDF5;
  --core-t:#5A7BEA; --core-l:#1E3A9E; --core-r:#2F55D4;
  --in-t:#FBE0E3; --in-l:#E39AA3; --in-r:#F0BCC2;
  --ven-t:#FBEFCF; --ven-l:#D9B964; --ven-r:#EAD39A;
}
.iso-svg .ft,.iso-svg .fl,.iso-svg .fr{stroke:rgba(255,255,255,.06); stroke-width:.8; stroke-linejoin:round}
.t-attest .ft{fill:var(--att-t)}
.t-attest .fl{fill:var(--att-l)}
.t-attest .fr{fill:var(--att-r)}
.t-work .ft{fill:var(--wrk-t)}
.t-work .fl{fill:var(--wrk-l)}
.t-work .fr{fill:var(--wrk-r)}
.t-core .ft{fill:var(--core-t)}
.t-core .fl{fill:var(--core-l)}
.t-core .fr{fill:var(--core-r)}
.t-vendor .ft{fill:var(--ven-t)}
.t-vendor .fl{fill:var(--ven-l)}
.t-vendor .fr{fill:var(--ven-r)}
.iso-svg .grid{stroke:var(--iso-grid); stroke-width:1}
.iso-svg .lead-dot{fill:var(--accent)}
.iso-svg .lbl{fill:var(--text-secondary); font-family:var(--font-body); font-size:13px}
.iso-svg .lbl-mono{font-family:var(--font-mono); font-size:11.5px; fill:var(--text-muted)}
.iso-svg .flow{fill:none; stroke-width:2; stroke-linecap:round; stroke-dasharray:6 8; animation:viz-flow 1.6s linear infinite}
.iso-svg .flow-bad{stroke:var(--sev-critical)}
.iso-svg .flow-ok{stroke:var(--accent)}
.iso-svg .flow-cy{stroke:var(--cyan-400)}
.iso-svg .flow-ven{stroke:var(--sev-medium)}
.iso-svg .flow-off{stroke:var(--text-faint); animation:none; stroke-dasharray:2 6}
.iso-svg .pulse{animation:viz-pulse 2.4s ease-in-out infinite; transform-box:fill-box; transform-origin:center}
.iso-svg .node-ring{fill:none; stroke:var(--accent); stroke-width:1.5; opacity:.5; animation:viz-ring 2.6s ease-out infinite; transform-box:fill-box; transform-origin:center}
@keyframes viz-flow{to{stroke-dashoffset:-28}}
@keyframes viz-scan{0%{transform:translateY(0); opacity:0} 10%{opacity:1} 85%{opacity:1} 100%{transform:translateY(var(--scan-rise, -168px)); opacity:0}}
@keyframes viz-pulse{50%{opacity:.75}}
@keyframes viz-ring{0%{transform:scale(.6); opacity:.7} 100%{transform:scale(1.6); opacity:0}}
@media (prefers-reduced-motion: reduce){.iso-svg .flow,.iso-svg .scan,.iso-svg .pulse,.iso-svg .node-ring{animation:none}.iso-svg .scan{opacity:0}}
.how-viz .iso-svg{min-width:0}
.iso-svg .docline{stroke:var(--text-faint); stroke-width:2; stroke-linecap:round}
.t-ghost .ft,.t-ghost .fl,.t-ghost .fr{fill:none; stroke:var(--border-strong); stroke-dasharray:3 3}
.t-post .ft{fill:var(--sil-t)}
.t-post .fl{fill:var(--sil-l)}
.t-post .fr{fill:var(--sil-r)}
:root{ --desk-t:#2B3542; --desk-l:#151C25; --desk-r:#1D2631; --dev-t:#5B6878; --dev-l:#2A333F; --dev-r:#3A4553; --scr:#081018;
  --zone-t:#121A23; --zone-l:#0B1118; --zone-r:#0E151D; --ped-t:#2C3746; --ped-l:#141B24; --ped-r:#1C2530;
  --srv-t:#3A4656; --srv-l:#18202A; --srv-r:#222C38; --bay:#0E141B; --bkt-t:#3B6A9A; --bkt-l:#1C3550; --bkt-r:#264666; --doc-t:#C9D4E0; --doc-l:#7D8B9B; --doc-r:#A4B1C0;
  --shade:rgba(0,0,0,.55); --edge:rgba(255,255,255,.22); }
@media (prefers-color-scheme: light){:root:not([data-theme="dark"]){ --desk-t:#FFFFFF; --desk-l:#C9D3DD; --desk-r:#DCE3EA; --dev-t:#E4E9EF; --dev-l:#9AA7B5; --dev-r:#BAC5D0; --scr:#0E1620;
  --zone-t:#FFFFFF; --zone-l:#D7DFE7; --zone-r:#E6ECF1; --ped-t:#F3F6F9; --ped-l:#B7C3CF; --ped-r:#D3DCE4;
  --srv-t:#E9EEF3; --srv-l:#A9B6C3; --srv-r:#C6D0DA; --bay:#5E6C7B; --bkt-t:#CFE2F6; --bkt-l:#7FA7CF; --bkt-r:#A6C3E2; --doc-t:#FFFFFF; --doc-l:#B7C3CF; --doc-r:#D7DFE7;
  --shade:rgba(30,45,65,.22); --edge:rgba(255,255,255,.7); }}
:root[data-theme="light"]{ --desk-t:#FFFFFF; --desk-l:#C9D3DD; --desk-r:#DCE3EA; --dev-t:#E4E9EF; --dev-l:#9AA7B5; --dev-r:#BAC5D0; --scr:#0E1620;
  --zone-t:#FFFFFF; --zone-l:#D7DFE7; --zone-r:#E6ECF1; --ped-t:#F3F6F9; --ped-l:#B7C3CF; --ped-r:#D3DCE4;
  --srv-t:#E9EEF3; --srv-l:#A9B6C3; --srv-r:#C6D0DA; --bay:#5E6C7B; --bkt-t:#CFE2F6; --bkt-l:#7FA7CF; --bkt-r:#A6C3E2; --doc-t:#FFFFFF; --doc-l:#B7C3CF; --doc-r:#D7DFE7;
  --shade:rgba(30,45,65,.22); --edge:rgba(255,255,255,.7); }
.t-desk .ft{fill:var(--desk-t)}
.t-desk .fl{fill:var(--desk-l)}
.t-desk .fr{fill:var(--desk-r)}
.t-device .ft{fill:var(--dev-t)}
.t-device .fl{fill:var(--dev-l)}
.t-device .fr{fill:var(--dev-r)}
.t-screen .ft,.t-screen .fl,.t-screen .fr{fill:var(--scr)}
.t-zone .ft{fill:var(--zone-t)}
.t-zone .fl{fill:var(--zone-l)}
.t-zone .fr{fill:var(--zone-r)}
.t-pedestal .ft{fill:var(--ped-t)}
.t-pedestal .fl{fill:var(--ped-l)}
.t-pedestal .fr{fill:var(--ped-r)}
.t-server .ft{fill:var(--srv-t)}
.t-server .fl{fill:var(--srv-l)}
.t-server .fr{fill:var(--srv-r)}
.t-bucket .ft{fill:var(--bkt-t)}
.t-bucket .fl{fill:var(--bkt-l)}
.t-bucket .fr{fill:var(--bkt-r)}
.t-doc .ft{fill:var(--doc-t)}
.t-doc .fl{fill:var(--doc-l)}
.t-doc .fr{fill:var(--doc-r)}
.iso-detail .ft,.iso-detail .fl,.iso-detail .fr{stroke:none}
.iso-detail .edge-hl{fill:none; stroke:var(--edge); stroke-width:1; stroke-linejoin:round}
.iso-detail .shade{fill:var(--shade)}
.iso-detail .bay{fill:var(--bay)}
.iso-detail .led{fill:var(--accent); animation:led-blink 1.8s steps(2) infinite}
.iso-detail .led:nth-child(3n){animation-delay:-.6s}
.iso-detail .led:nth-child(3n+1){animation-delay:-1.1s}
.iso-detail .band{fill:none; stroke:rgba(255,255,255,.12); stroke-width:1.2}
.iso-detail .rim{fill:none; stroke:rgba(0,0,0,.25); stroke-width:1}
.iso-detail .zone-line{fill:none; stroke:var(--border-strong); stroke-width:1.2; stroke-dasharray:6 5}
.iso-detail .zone-t{fill:var(--text-faint); font-family:var(--font-mono); font-size:11px; letter-spacing:.12em}
.iso-detail .ico{fill:none; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round}
.iso-detail .ico-acc{stroke:var(--accent)}
.iso-detail .ico-dim{stroke:var(--text-faint)}
.iso-detail .ico-key{stroke:var(--sev-medium)}
.iso-detail .ico-bad{stroke:var(--sev-critical)}
.iso-detail .ico-cy{stroke:var(--cyan-400)}
.iso-detail .flow{stroke-width:1.8; stroke-dasharray:5 7; opacity:.75}
.iso-detail .pkt{filter:drop-shadow(0 0 4px currentColor)}
.iso-detail .pkt-flow-ok{fill:var(--accent); color:var(--accent)}
.iso-detail .pkt-flow-cy{fill:var(--cyan-400); color:var(--cyan-400)}
.iso-detail .pkt-flow-bad{fill:var(--sev-critical); color:var(--sev-critical)}
.iso-detail .pkt-flow-ven{fill:var(--sev-medium); color:var(--sev-medium)}
.iso-detail .leader{stroke:var(--border-strong); stroke-width:1}
.iso-detail .anchor{fill:var(--bg-page); stroke:var(--text-muted); stroke-width:1.5}
.iso-detail .chip rect{fill:var(--bg-elevated); stroke:var(--border-default)}
.iso-detail .chip-e{fill:var(--text-faint); font-family:var(--font-mono); font-size:10px; letter-spacing:.1em}
.iso-detail .chip-t{fill:var(--text-primary); font-family:var(--font-body); font-size:12.5px; font-weight:600}
.iso-detail .chip-bad rect{stroke:rgba(255,77,94,.55)}
.iso-detail .chip-bad .chip-e{fill:var(--sev-critical)}
.iso-detail .chip-acc rect{stroke:rgba(126,155,255,.5)}
.iso-detail .chip-acc .chip-e{fill:var(--accent)}
.iso-detail .chip-ven rect{stroke:rgba(255,197,61,.5)}
.iso-detail .chip-ven .chip-e{fill:var(--sev-medium)}
.iso-detail .stat circle{stroke-width:1.5}
.iso-detail .stat path{fill:none; stroke-width:4; stroke-linecap:round; stroke-linejoin:round}
.iso-detail .stat-ok circle{fill:var(--accent-wash); stroke:var(--accent)}
.iso-detail .stat-ok path{stroke:var(--accent)}
.iso-detail .stat-bad circle{fill:var(--sev-critical-a); stroke:var(--sev-critical)}
.iso-detail .stat-bad path{stroke:var(--sev-critical)}
.iso-detail .pin{stroke:var(--border-strong); stroke-width:1}
@keyframes led-blink{50%{opacity:.25}}
@media (prefers-reduced-motion: reduce){.iso-detail .pkt{display:none}.iso-detail .led{animation:none}}
:root{ --belt-t:#1C2531; --belt-l:#0D1219; --belt-r:#141B24; --post-t:#5B6878; --post-l:#2A333F; --post-r:#3A4553; --gan-t:#2B3542; --gan-l:#151C25; --gan-r:#1D2631;
  --vp-t:#5B4A1E; --vp-l:#2D240E; --vp-r:#403417; --log-t:#3D3470; --log-l:#1D1838; --log-r:#2B2552; --fin:#4A3F7A; --tk-t:#5A2A33; --tk-l:#2C1418; --tk-r:#3F1D23; }
@media (prefers-color-scheme: light){:root:not([data-theme="dark"]){ --belt-t:#E3E9EF; --belt-l:#B7C3CF; --belt-r:#CDD7E1; --post-t:#F3F6F9; --post-l:#9AA7B5; --post-r:#BAC5D0; --gan-t:#FFFFFF; --gan-l:#B7C3CF; --gan-r:#D3DCE4;
  --vp-t:#FBEFCF; --vp-l:#D9B964; --vp-r:#EAD39A; --log-t:#E6E0FA; --log-l:#B2A6E0; --log-r:#CBC2EE; --fin:#B2A6E0; --tk-t:#FBE0E3; --tk-l:#E39AA3; --tk-r:#F0BCC2; }}
:root[data-theme="light"]{ --belt-t:#E3E9EF; --belt-l:#B7C3CF; --belt-r:#CDD7E1; --post-t:#F3F6F9; --post-l:#9AA7B5; --post-r:#BAC5D0; --gan-t:#FFFFFF; --gan-l:#B7C3CF; --gan-r:#D3DCE4;
  --vp-t:#FBEFCF; --vp-l:#D9B964; --vp-r:#EAD39A; --log-t:#E6E0FA; --log-l:#B2A6E0; --log-r:#CBC2EE; --fin:#B2A6E0; --tk-t:#FBE0E3; --tk-l:#E39AA3; --tk-r:#F0BCC2; }
.t-belt .ft{fill:var(--belt-t)}
.t-belt .fl{fill:var(--belt-l)}
.t-belt .fr{fill:var(--belt-r)}
.t-post .ft{fill:var(--post-t)}
.t-post .fl{fill:var(--post-l)}
.t-post .fr{fill:var(--post-r)}
.t-gantry .ft{fill:var(--gan-t)}
.t-gantry .fl{fill:var(--gan-l)}
.t-gantry .fr{fill:var(--gan-r)}
.t-logstore .ft{fill:var(--log-t)}
.t-logstore .fl{fill:var(--log-l)}
.t-logstore .fr{fill:var(--log-r)}
.t-stripe-a .ft,.t-stripe-a .fl,.t-stripe-a .fr{fill:var(--sev-critical)}
.t-stripe-b .ft,.t-stripe-b .fl,.t-stripe-b .fr{fill:#F5F8FB}
.iso-detail .belt-line{fill:rgba(255,255,255,.05)}
.iso-detail .laser{fill:rgba(126,155,255,.18); stroke:rgba(126,155,255,.6); stroke-width:1; animation:laser 1.6s ease-in-out infinite}
.iso-detail .beacon{fill:var(--sev-critical); filter:drop-shadow(0 0 6px var(--sev-critical)); animation:led-blink 1s steps(2) infinite}
@keyframes laser{50%{opacity:.35}}
@media (prefers-reduced-motion: reduce){.iso-detail .laser,.iso-detail .beacon,.iso-detail .alert-ring{animation:none}.iso-detail .carry{display:none}}
.iso-detail .t-ghost .ft,.iso-detail .t-ghost .fl,.iso-detail .t-ghost .fr{fill:rgba(147,162,179,.06); stroke:var(--text-faint); stroke-width:1; stroke-dasharray:4 3}
.how-viz .iso-svg{min-width:720px}
:root{ --cage:rgba(52,210,242,.10); --cage-s:rgba(52,210,242,.55); --inb-t:#5A2A33; --inb-l:#2C1418; --inb-r:#3F1D23; }
@media (prefers-color-scheme: light){:root:not([data-theme="dark"]){ --cage:rgba(24,175,214,.10); --cage-s:rgba(24,175,214,.6); --inb-t:#FBE0E3; --inb-l:#E39AA3; --inb-r:#F0BCC2; }}
:root[data-theme="light"]{ --cage:rgba(24,175,214,.10); --cage-s:rgba(24,175,214,.6); --inb-t:#FBE0E3; --inb-l:#E39AA3; --inb-r:#F0BCC2; }
.iso-detail .t-cage .ft,.iso-detail .t-cage .fl,.iso-detail .t-cage .fr{fill:var(--cage); stroke:var(--cage-s); stroke-width:1}
@keyframes viz-scan-big{0%{transform:translateY(0); opacity:0} 10%{opacity:1} 85%{opacity:1} 100%{transform:translateY(-300px); opacity:0}}
@media (prefers-reduced-motion: reduce){.iso-detail .scan-big{animation:none; opacity:0}}
.iso-detail .chip-ic-bg{fill:var(--bg-inset); stroke:var(--border-subtle)}
.iso-detail .chip-ic{fill:none; stroke:var(--text-secondary); stroke-width:3.2; stroke-linecap:round; stroke-linejoin:round}
.iso-detail .chip-bad .chip-ic{stroke:var(--sev-critical)}
.iso-detail .chip-acc .chip-ic{stroke:var(--accent)}
.iso-detail .chip-ven .chip-ic{stroke:var(--sev-medium)}
.iso-detail .chip-bad .chip-ic-bg{fill:var(--sev-critical-a)}
.iso-detail .chip-acc .chip-ic-bg{fill:var(--accent-wash)}
.iso-detail .win{fill:rgba(255,226,140,.35)}
.iso-detail .leader{fill:none}
.iso-detail .vent{fill:rgba(0,0,0,.22)}
:root{--rim-t:#202A36; --rim-l:#0A0F15; --rim-r:#0D131A}
@media (prefers-color-scheme: light){:root:not([data-theme="dark"]){--rim-t:#E9EEF3; --rim-l:#BAC5D0; --rim-r:#CDD7E1}}
:root[data-theme="light"]{--rim-t:#E9EEF3; --rim-l:#BAC5D0; --rim-r:#CDD7E1}
.t-rim .ft{fill:var(--rim-t)}
.t-rim .fl{fill:var(--rim-l)}
.t-rim .fr{fill:var(--rim-r)}
.iso-detail .corner{fill:none; stroke:var(--accent); stroke-width:1.6; opacity:.7}
.iso-detail .bay{fill:rgba(0,0,0,.28)}
.iso-detail .bay-slot{fill:rgba(255,255,255,.07)}
.iso-detail .rail{stroke:rgba(255,255,255,.12); stroke-width:1}
.iso-detail .vent{fill:rgba(0,0,0,.25)}
.iso-detail .key{fill:rgba(0,0,0,.28)}
.iso-detail .fin-top{fill:rgba(255,255,255,.1)}
.iso-detail .ftxt{fill:var(--text-muted); font-family:var(--font-mono); font-weight:600; letter-spacing:.08em}
.iso-detail .ftxt-acc{fill:var(--accent)}
.iso-detail .ui-row{fill:rgba(147,162,179,.35)}
.iso-detail .ico-core{stroke:#06281A; stroke-width:2}
.iso-detail .conduit{fill:none; stroke:var(--border-default); stroke-width:6; stroke-linecap:round; stroke-linejoin:round; opacity:.55}
.iso-detail .socket{fill:var(--bg-elevated); stroke-width:1.5}
.iso-detail .sk-flow-ok{stroke:var(--accent)}
.iso-detail .sk-flow-cy{stroke:var(--cyan-400)}
.iso-detail .sk-flow-bad{stroke:var(--sev-critical)}
.iso-detail .sk-flow-ven{stroke:var(--sev-medium)}
.iso-detail .sk-flow-off{stroke:var(--text-faint)}
.pk-flow-ok .ft{fill:#B9C8FF}
.pk-flow-ok .fl{fill:#3F5BC4}
.pk-flow-ok .fr{fill:#5A78E6}
.pk-flow-cy .ft{fill:#9BE8F8}
.pk-flow-cy .fl{fill:#1689A3}
.pk-flow-cy .fr{fill:#22AFCF}
.pk-flow-bad .ft{fill:#FF9AA4}
.pk-flow-bad .fl{fill:#A8202E}
.pk-flow-bad .fr{fill:#D93445}
.pk-flow-ven .ft{fill:#FFE29A}
.pk-flow-ven .fl{fill:#9A7418}
.pk-flow-ven .fr{fill:#C99A26}
.iso-detail .pkt{filter:none}
.iso-detail .orbit{fill:none; stroke:var(--accent); stroke-width:1.4; stroke-dasharray:3 9; opacity:.75; animation:orbit 6s linear infinite}
.iso-detail .orbit-2{stroke-dasharray:14 22; opacity:.45; animation-duration:9s; animation-direction:reverse}
@keyframes orbit{to{stroke-dashoffset:-120}}
@media (prefers-reduced-motion: reduce){.iso-detail .orbit{animation:none}}
:root{--wall-t:#2B3542; --wall-l:#151C25; --wall-r:#1D2631; --vault-t:#1E4E5E; --vault-l:#0E2730; --vault-r:#163A46; --ten-t:#1F6B4E; --ten-l:#0E3325; --ten-r:#154B37}
@media (prefers-color-scheme: light){:root:not([data-theme="dark"]){--wall-t:#FFFFFF; --wall-l:#C6D0DA; --wall-r:#DCE3EA; --vault-t:#D4F1F8; --vault-l:#8FCBDA; --vault-r:#B1DFEA; --ten-t:#D3F4E5; --ten-l:#86CDAE; --ten-r:#ACE0C8}}
:root[data-theme="light"]{--wall-t:#FFFFFF; --wall-l:#C6D0DA; --wall-r:#DCE3EA; --vault-t:#D4F1F8; --vault-l:#8FCBDA; --vault-r:#B1DFEA; --ten-t:#D3F4E5; --ten-l:#86CDAE; --ten-r:#ACE0C8}
.t-vault .ft{fill:var(--vault-t)}
.t-vault .fl{fill:var(--vault-l)}
.t-vault .fr{fill:var(--vault-r)}
.iso-detail .plate-grid{stroke:var(--iso-grid); stroke-width:1}
.iso-detail .halo{fill:var(--accent); opacity:.22}
.iso-detail .halo-bad{fill:var(--sev-critical); opacity:.22}
.iso-detail .fold{fill:rgba(0,0,0,.18)}
.iso-detail .seam{fill:none; stroke:rgba(0,0,0,.35); stroke-width:1.2}
.iso-detail .handle{fill:var(--cyan-400); opacity:.8}
.iso-detail .ui-dot-c{fill:var(--accent)}
.iso-detail .ui-dot-bad-c{fill:var(--sev-critical)}
.iso-detail .umark-bg{fill:var(--accent); filter:drop-shadow(0 4px 10px rgba(126,155,255,.45))}
.iso-detail .umark-t{fill:var(--accent-contrast); font-family:var(--font-display); font-weight:700; font-size:13px; letter-spacing:-.01em}
.iso-detail .umark-ic{fill:none; stroke:var(--accent-contrast); stroke-width:3; stroke-linecap:round; stroke-linejoin:round}
.iso-detail .umark-stem{stroke:var(--accent); stroke-width:1.5}
.iso-detail .umark-dot{fill:var(--accent)}
.iso-detail .umark{animation:umark 2.8s ease-in-out infinite}
@keyframes umark{50%{transform:translateY(-3px)}}
@media (prefers-reduced-motion: reduce){.iso-detail .umark{animation:none}}
:root{--bad-t:#6B2630; --bad-l:#341217; --bad-r:#4A1A21; --good-t:#1F6B4E; --good-l:#0E3325; --good-r:#154B37}
@media (prefers-color-scheme: light){:root:not([data-theme="dark"]){--bad-t:#FBD5DA; --bad-l:#E08A95; --bad-r:#EDAFB7; --good-t:#D3F4E5; --good-l:#86CDAE; --good-r:#ACE0C8}}
:root[data-theme="light"]{--bad-t:#FBD5DA; --bad-l:#E08A95; --bad-r:#EDAFB7; --good-t:#D3F4E5; --good-l:#86CDAE; --good-r:#ACE0C8}
.t-bad .ft{fill:var(--bad-t)}
.t-bad .fl{fill:var(--bad-l)}
.t-bad .fr{fill:var(--bad-r)}
.t-good .ft{fill:var(--good-t)}
.t-good .fl{fill:var(--good-l)}
.t-good .fr{fill:var(--good-r)}
.iso-detail .flow-fz{stroke:#B48CFF}
.iso-detail .sk-flow-fz{stroke:#B48CFF}
.pk-flow-fz .ft{fill:#D9C6FF}
.pk-flow-fz .fl{fill:#6E4BC2}
.pk-flow-fz .fr{fill:#8D69E0}
.iso-detail .zone-band{fill:rgba(147,162,179,.05); stroke:var(--border-strong); stroke-width:1.2; stroke-dasharray:6 5}
.iso-detail .ftag rect{fill:var(--bg-elevated); stroke-width:1.2}
.iso-detail .ftag text{font-family:var(--font-mono); font-size:10.5px; letter-spacing:.02em}
.iso-detail .ftag-ok rect{stroke:var(--accent)}
.iso-detail .ftag-ok text{fill:var(--accent)}
.iso-detail .ftag-cy rect{stroke:var(--cyan-400)}
.iso-detail .ftag-cy text{fill:var(--cyan-400)}
.iso-detail .ftag-ven rect{stroke:var(--sev-medium)}
.iso-detail .ftag-ven text{fill:var(--sev-medium)}
.iso-detail .ftag-bad rect{stroke:var(--sev-critical)}
.iso-detail .ftag-bad text{fill:var(--sev-critical)}
:root{--bp-t:#1D4E89; --bp-l:#0E2747; --bp-r:#163A66}
@media (prefers-color-scheme: light){:root:not([data-theme="dark"]){--bp-t:#CFE2FA; --bp-l:#7FA7D8; --bp-r:#A6C3E8}}
:root[data-theme="light"]{--bp-t:#CFE2FA; --bp-l:#7FA7D8; --bp-r:#A6C3E8}
.t-blueprint .ft{fill:var(--bp-t)}
.t-blueprint .fl{fill:var(--bp-l)}
.t-blueprint .fr{fill:var(--bp-r)}
.iso-detail .bp-line{fill:none; stroke:#8EC5FF; stroke-width:1.2; stroke-dasharray:3 2}
.how-viz .iso-svg{width:100%; height:100%; min-width:0 !important; display:block}
@media (max-width: 1099px){.how-viz .iso-svg{height:auto; min-width:720px !important}}
.iso-detail .ftag:not(.ftag-ok):not(.ftag-bad):not(.ftag-cy):not(.ftag-ven) rect{stroke:var(--border-strong)}
.iso-detail .ftag:not(.ftag-ok):not(.ftag-bad):not(.ftag-cy):not(.ftag-ven) text{fill:var(--text-muted)}
.t-glass .ft,.t-glass .fl,.t-glass .fr{stroke:rgba(255,255,255,.5); stroke-width:1}
.g-sil .fr{fill:rgba(147,162,179,.38)}
.g-sil .fl,.g-sil .ft{fill:rgba(147,162,179,.6)}
.g-tee .fr{fill:rgba(52,210,242,.30)}
.g-tee .fl,.g-tee .ft{fill:rgba(52,210,242,.55)}
.g-key .fr{fill:rgba(160,130,255,.30)}
.g-key .fl,.g-key .ft{fill:rgba(160,130,255,.55)}
.g-img .fr{fill:rgba(80,140,230,.30)}
.g-img .fl,.g-img .ft{fill:rgba(80,140,230,.55)}
.g-wrk .fr{fill:rgba(126,155,255,.30)}
.g-wrk .fl,.g-wrk .ft{fill:rgba(126,155,255,.55)}
.iso-detail .g-trace{fill:none; stroke:rgba(255,255,255,.55); stroke-width:1.1}
.iso-detail .g-ico{stroke:#fff; stroke-width:2.2; opacity:.9}
.iso-detail .g-lab{fill:#fff; opacity:.9}
.iso-detail .g-frame{fill:none; stroke:var(--accent); stroke-width:2.2; filter:drop-shadow(0 0 6px var(--accent))}
.iso-detail .axis{stroke:var(--sev-critical); stroke-width:2; stroke-dasharray:4 6; opacity:.6}
.iso-detail .axis-on{stroke:var(--accent); opacity:.9; filter:drop-shadow(0 0 5px var(--accent))}
.iso-detail .g-dim{opacity:.22}
.iso-detail .g-frame-bad{stroke:var(--sev-critical); filter:drop-shadow(0 0 6px var(--sev-critical))}
.iso-detail .axis-att{stroke:var(--cyan-400); opacity:.35}
.iso-detail .ftag-dim rect{stroke:var(--border-strong)}
.iso-detail .ftag-dim text{fill:var(--text-faint)}
.iso-detail .chip-cy rect{stroke:rgba(52,210,242,.55)}
.iso-detail .chip-cy .chip-e{fill:var(--cyan-400)}
.iso-detail .chip-cy .chip-ic{stroke:var(--cyan-400)}
@media (prefers-color-scheme: light){:root:not([data-theme="dark"]) .iso-detail .g-ico{stroke:#2B3A4C}:root:not([data-theme="dark"]) .iso-detail .g-lab{fill:#2B3A4C}:root:not([data-theme="dark"]) .iso-detail .g-trace{stroke:rgba(43,58,76,.35)}:root:not([data-theme="dark"]) .t-glass .ft,:root:not([data-theme="dark"]) .t-glass .fl,:root:not([data-theme="dark"]) .t-glass .fr{stroke:rgba(43,58,76,.35)}:root:not([data-theme="dark"]) .g-sil .fr{fill:rgba(147,162,179,.45)}:root:not([data-theme="dark"]) .g-tee .fr{fill:rgba(24,175,214,.28)}:root:not([data-theme="dark"]) .g-key .fr{fill:rgba(130,100,230,.28)}:root:not([data-theme="dark"]) .g-img .fr{fill:rgba(60,120,210,.28)}:root:not([data-theme="dark"]) .g-wrk .fr{fill:rgba(47,85,212,.28)}}
:root[data-theme="light"] .iso-detail .g-ico{stroke:#2B3A4C}
:root[data-theme="light"] .iso-detail .g-lab{fill:#2B3A4C}
:root[data-theme="light"] .iso-detail .g-trace{stroke:rgba(43,58,76,.35)}
:root[data-theme="light"] .t-glass .ft,:root[data-theme="light"] .t-glass .fl,:root[data-theme="light"] .t-glass .fr{stroke:rgba(43,58,76,.35)}
:root[data-theme="light"] .g-sil .fr{fill:rgba(147,162,179,.45)}
:root[data-theme="light"] .g-tee .fr{fill:rgba(24,175,214,.28)}
:root[data-theme="light"] .g-key .fr{fill:rgba(130,100,230,.28)}
:root[data-theme="light"] .g-img .fr{fill:rgba(60,120,210,.28)}
:root[data-theme="light"] .g-wrk .fr{fill:rgba(47,85,212,.28)}
.iso-detail .host-wall{fill:rgba(147,162,179,.10); stroke:var(--border-strong); stroke-width:1}
.iso-detail .host-glass{fill:rgba(147,162,179,.05); stroke:var(--text-faint); stroke-width:1.2; stroke-dasharray:5 4}
.iso-detail .ftxt-name{fill:var(--text-primary); font-family:var(--font-display); font-weight:700; letter-spacing:.12em; opacity:.85}
.iso-detail .ftxt-enc{fill:#0E8FB0}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .iso-detail .ftxt-enc{fill:var(--cyan-400)}}
:root[data-theme="dark"] .iso-detail .ftxt-enc{fill:var(--cyan-400)}
.flat-svg{display:block; width:100%; height:auto}
.flat-svg text{font-family:var(--font-body)}
.flat-svg .fcard rect:first-child{fill:var(--bg-surface); stroke:var(--border-default); stroke-width:1.2}
.flat-svg .fcard-acc rect:first-child{stroke:rgba(126,155,255,.5); fill:var(--bg-surface)}
.flat-svg .f-eb{fill:var(--text-faint); font-family:var(--font-mono); font-size:11.5px; letter-spacing:.14em}
.flat-svg .f-t{fill:var(--text-primary); font-size:14.5px; font-weight:600}
.flat-svg .f-t-bad{fill:var(--sev-critical)}
.flat-svg .f-s{fill:var(--text-muted); font-size:12.5px}
.flat-svg .f-field{fill:var(--text-secondary); font-family:var(--font-mono); font-size:11.5px; letter-spacing:.08em; font-weight:600}
.flat-svg .f-val{fill:var(--text-primary); font-family:var(--font-mono); font-size:13px}
.flat-svg .f-row{fill:var(--bg-inset); stroke:var(--border-subtle)}
.flat-svg .f-row-bad{stroke:rgba(255,77,94,.55); fill:var(--sev-critical-a)}
.flat-svg .f-chk{fill:var(--accent-wash); stroke:rgba(126,155,255,.35)}
.flat-svg .f-chk-bad{fill:var(--sev-critical-a); stroke:rgba(255,77,94,.55)}
.flat-svg .f-dot{fill:var(--accent)}
.flat-svg .f-dot-bad{fill:var(--sev-critical)}
.flat-svg .f-link{fill:none; stroke:var(--accent); stroke-width:1.6; stroke-dasharray:4 5; animation:viz-flow 1.6s linear infinite}
.flat-svg .f-link-bad{stroke:var(--sev-critical)}
.flat-svg .f-flow{fill:none; stroke-width:2; stroke-dasharray:5 6; animation:viz-flow 1.4s linear infinite}
.flat-svg .f-cy{stroke:var(--cyan-400)}
.flat-svg .f-ok{stroke:var(--accent)}
.flat-svg .f-ven{stroke:var(--sev-medium)}
.flat-svg .f-tag{font-family:var(--font-mono); font-size:11px}
.flat-svg .f-tag-cy{fill:var(--cyan-400)}
.flat-svg .f-chip{fill:var(--bg-elevated); stroke:var(--border-strong); stroke-width:1.5}
.flat-svg .f-die{fill:var(--bg-inset); stroke:var(--sev-medium); stroke-width:1.5}
.flat-svg .f-pin{stroke:var(--border-strong); stroke-width:3; stroke-linecap:round}
.flat-svg .fi{fill:none; stroke:var(--text-secondary); stroke-width:2; stroke-linecap:round; stroke-linejoin:round}
.flat-svg .fi-key{stroke:var(--sev-medium)}
.flat-svg .fi-ok{stroke:var(--accent); stroke-width:2.6}
.flat-svg .fi-bad{stroke:var(--sev-critical); stroke-width:2.6}
.flat-svg .fi-inv{stroke:var(--accent-contrast); stroke-width:2.6}
.flat-svg .f-badge{fill:var(--accent)}
.flat-svg .f-badge-t{fill:var(--accent-contrast); font-family:var(--font-display); font-weight:700; font-size:13.5px}
.flat-svg .f-cert{fill:var(--bg-surface); stroke:rgba(255,197,61,.55)}
@media (prefers-reduced-motion: reduce){.flat-svg .f-link,.flat-svg .f-flow{animation:none}}
.flat-svg .f-tag-ok{fill:var(--accent)}
.flat-viz .flat-svg{min-width:760px}
.iso-detail .ftag text{font-size:11.5px; font-weight:600}
.iso-detail .chip-e{font-size:10.5px}
.iso-detail .lbl-mono{fill:var(--text-muted)}
.how-viz .iso-svg{min-width:0}
@media (max-width: 860px){.viz .iso-svg, .how-viz .iso-svg, .flat-viz .flat-svg, .viz .flat-svg{min-width:0 !important; width:100%; height:auto}}
@media (max-width: 860px){.viz:target .iso-svg, .viz:target .flat-svg{width:960px !important; max-width:none !important; min-width:960px !important; height:auto}}
.flat-svg .f-strong{fill:var(--text-primary)}
.flat-svg .f-cap{fill:var(--text-faint); font-family:var(--font-mono); font-size:11.5px}
.iso-detail .chip-s{fill:var(--text-muted); font-family:var(--font-body); font-size:11.5px}
/* v2 containers */
.iso-box{border:1px solid var(--l);border-radius:14px;background:radial-gradient(circle at 50% 40%,var(--viz-glow),transparent 60%),var(--bg);overflow-x:auto;padding:8px}
.iso-box .iso-svg,.iso-box .flat-svg{display:block;width:100%;height:auto;min-width:720px}
.flat-box{border:1px solid var(--l);border-radius:14px;background:var(--bg);overflow-x:auto;padding:16px}
.flat-box .flat-svg{min-width:640px}

/* v2 additions: name pills that sit next to an object (tools/diagrams/scenes_v2.py) */
.iso-detail .ftag.ftag-name:not(.ftag-ok):not(.ftag-bad):not(.ftag-cy):not(.ftag-ven) rect{fill:var(--bg-elevated);stroke:var(--border-strong)}
.iso-detail .ftag.ftag-name:not(.ftag-ok):not(.ftag-bad):not(.ftag-cy):not(.ftag-ven) text{fill:var(--text-primary);font-weight:500}

/* use-case scenes: numbered findings, the "unverifiable" pin, and the tab container */
.iso-detail .fnum circle{fill:var(--sev-critical);stroke:var(--bg);stroke-width:2}
.iso-detail .fnum text{fill:#fff;font-family:var(--font-mono);font-size:12px;font-weight:700}
.iso-detail .chip .fnum circle{stroke:none}
.iso-detail .stat-unk circle{fill:var(--sev-medium-a,rgba(255,197,61,.16));stroke:var(--sev-medium)}
.iso-detail .stat-unk text{fill:var(--sev-medium);font-family:var(--font-mono);font-size:13px;font-weight:700}
.p-top>.uc-box{margin-top:28px;padding:10px;background-color:var(--bg)}
.iso-detail .airgap{stroke:var(--text-faint);stroke-width:1.4;stroke-dasharray:2 6;stroke-linecap:round}

/* light theme: the cyan used for labels has to hold 4.5:1 on white */
@media (prefers-color-scheme: light){:root:not([data-theme="dark"]){--cyan-400:#0B7896}}
:root[data-theme="light"]{--cyan-400:#0B7896}

/* contrast: small diagram text holds 4.5:1 on its background in both themes */
:root{--text-muted:#8B99AA;--text-faint:#8794A3}
@media (prefers-color-scheme: light){:root:not([data-theme="dark"]){--text-muted:#5A6A7B;--text-faint:#5F6C7B;--sev-critical:#C62A3B;--sev-medium:#8A6100}}
:root[data-theme="light"]{--text-muted:#5A6A7B;--text-faint:#5F6C7B;--sev-critical:#C62A3B;--sev-medium:#8A6100}
.iso-detail .fnum circle{fill:#C62A3B}
.iso-detail .ftxt-enc{fill:var(--cyan-400);opacity:1;fill-opacity:1}
.iso-detail text.g-dim{opacity:.7}
