/* Atlas component system v1. Shared by the light revision atlas and dark observatory. */
:root{--atlas-body:17px;--atlas-small:14px;--atlas-panel:#fff;--atlas-soft:#f4f7fb;--atlas-ink:#172238;--atlas-muted:#475569;--atlas-line:#d5deea;--atlas-accent:#1d4ed8;--atlas-focus:#cbdaf4}
body[data-page]{--atlas-panel:#101c2f;--atlas-soft:#142339;--atlas-ink:#e7edf7;--atlas-muted:#b2c0d4;--atlas-line:#35465e;--atlas-accent:#efc281;--atlas-focus:#544630}
body{font-size:var(--atlas-body);line-height:1.75}
body[data-page] main{padding:32px clamp(20px,3.5vw,52px) 0}
body[data-page] .sidebar nav a{font-size:13px;line-height:1.55;padding-block:9px}
body[data-page] .nav-group summary{font-size:11px;letter-spacing:.6px;line-height:1.5}
body[data-page] .top-nav a,body[data-page] .hero p,body[data-page] .row-copy p,body[data-page] .row-kind,body[data-page] .learning-context,body[data-page] .learning-links,body[data-page] .filter-bar{font-size:14px}
body[data-page] .row-copy h3{font-size:19px}body[data-page] .hero{min-height:300px}body[data-page] .hero h1{font-size:clamp(40px,4vw,64px)}
body[data-page] .section-heading h2{font-size:30px}body[data-page] .stage-heading h3{font-size:13px}body[data-page] .stage-heading p{font-size:13px}
body[data-page] .global-search input,body[data-page] .filter-bar select,body[data-page] .filters button{font-size:14px}
article.learning-article,article.atlas-article{color:var(--atlas-ink);background:var(--atlas-panel);font-size:var(--atlas-body);overflow:hidden}
.learning-article .head,.atlas-article .head{padding:26px 28px 18px;border-bottom:1px solid var(--atlas-line)}
.learning-article .head h2,.atlas-article .head h2{font-size:clamp(25px,2.5vw,34px);line-height:1.25;letter-spacing:-.5px;margin:0 0 14px}
.learning-article .subtitle,.atlas-article .subtitle{font-size:17px;color:var(--atlas-muted);line-height:1.7;max-width:78ch}
.learning-article .tag,.atlas-article .tag{font-size:11px;letter-spacing:.35px}
.learning-article .body,.atlas-article .body{padding:0 28px 28px;max-width:none}
article .atlas-section{padding:28px 0;border-bottom:1px solid var(--atlas-line);scroll-margin-top:100px}
article .atlas-section>h3{font-size:24px!important;line-height:1.35;margin:0 0 18px!important;letter-spacing:-.3px;color:var(--atlas-ink)}
article .atlas-section h4{font-size:18px;line-height:1.45;margin:14px 0 9px;color:var(--atlas-ink)}
article .body p,article .body li{font-size:17px!important;line-height:1.75!important;margin:10px 0!important;color:inherit}
article .body p{max-width:86ch}article .body ul{padding-left:24px}
article code{font:14px/1.6 Consolas,monospace;overflow-wrap:anywhere;background:var(--atlas-soft);padding:2px 4px;border-radius:4px}
article abbr[title]{text-decoration:underline dotted;color:inherit;text-underline-offset:4px;cursor:help}
.article-family{padding:14px 28px 0;font:600 12px/1.5 "Segoe UI",sans-serif;letter-spacing:1px;text-transform:uppercase;color:var(--atlas-accent)}
.article-mode{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:16px 28px}
.article-mode button,.atlas-diagram-tools button{font:600 13px/1.5 "Segoe UI",sans-serif;padding:8px 12px;border:1px solid var(--atlas-line);background:var(--atlas-panel);color:var(--atlas-ink);border-radius:6px;cursor:pointer;min-height:38px}
.article-mode button[aria-pressed=true]{border-color:var(--atlas-accent);background:var(--atlas-focus)}
.article-mode span{color:var(--atlas-muted);font-size:13px}
.article-toc{margin:0 28px 10px;padding:12px 16px;background:var(--atlas-soft);border:1px solid var(--atlas-line);border-radius:8px}
.article-toc summary,.article-glossary summary,.technical-walkthrough>summary{cursor:pointer;font-weight:600;font-size:15px}
.article-toc ol{columns:2;column-gap:24px;margin:12px 0 0;padding-left:22px}.article-toc li{font-size:14px;line-height:1.7;break-inside:avoid;margin:4px 0}
.article-toc a,article .related-topics a{color:var(--atlas-accent)}
.atlas-table{margin:16px 0;overflow:auto;border:1px solid var(--atlas-line);border-radius:8px;max-width:100%}
article .atlas-table table{border-collapse:collapse;width:100%;font-size:15px;line-height:1.65;text-align:left}
article .atlas-table th,article .atlas-table td{font-size:15px!important;padding:14px 16px!important;vertical-align:top;border-bottom:1px solid var(--atlas-line)!important;min-width:170px;color:var(--atlas-ink)!important}
article .atlas-table th{background:var(--atlas-soft)!important;font-weight:650}article .atlas-table tr:last-child td{border-bottom:0!important}
.atlas-diagram{margin:18px 0 24px;border:1px solid var(--atlas-line);border-radius:10px;background:var(--atlas-soft);overflow:hidden}
.atlas-diagram>figcaption{padding:14px 18px;font-size:16px;font-weight:650;border-bottom:1px solid var(--atlas-line)}
.atlas-diagram-tools{display:flex;align-items:center;flex-wrap:wrap;gap:7px;padding:10px 14px;border-bottom:1px solid var(--atlas-line);background:var(--atlas-panel)}
.atlas-canvas{overflow:auto;padding:14px;max-height:640px;min-height:260px;background-image:radial-gradient(var(--atlas-line) .65px,transparent .65px);background-size:20px 20px;overscroll-behavior:contain;scrollbar-width:thin}
.atlas-canvas svg{display:block;max-width:none;max-height:none;height:auto;margin:0 auto;min-width:0}
.atlas-hld>.graph>polygon{fill:transparent;stroke:none}.atlas-hld .node{cursor:pointer;outline:none}
.atlas-hld .node path,.atlas-hld .node polygon{stroke-width:1.4;fill:var(--node-fill);stroke:var(--node-stroke)}
.atlas-hld .node text{fill:var(--node-ink);font-family:"Segoe UI",Arial,sans-serif}
.atlas-hld .node:hover path,.atlas-hld .node:focus path,.atlas-hld .node.is-selected path{stroke-width:3;stroke:var(--atlas-accent)}
.atlas-hld .edge path{stroke:#71839c;fill:none;stroke-width:1.5}.atlas-hld .edge polygon{fill:#71839c;stroke:#71839c}
.atlas-hld .edge text{font-family:"Segoe UI",Arial,sans-serif;fill:var(--atlas-muted);paint-order:stroke;stroke:var(--atlas-soft);stroke-width:4px;stroke-linejoin:round}
.atlas-hld .edge.is-active path{stroke:var(--atlas-accent);stroke-width:2.5;animation:none}.atlas-hld .edge.is-active polygon{stroke:var(--atlas-accent);fill:var(--atlas-accent)}
.atlas-hld.is-tracing .edge:not(.is-active){opacity:.22}.atlas-hld.is-tracing .node:not(.is-active):not(.is-selected){opacity:.55}
.atlas-hld .flow-dot{display:none;fill:var(--atlas-accent);stroke:none;pointer-events:none}.atlas-hld .edge.is-active .flow-dot{display:block}
.architecture-legend{display:flex;flex-wrap:wrap;gap:8px 18px;padding:14px 18px!important;margin:0!important;list-style:none;background:var(--atlas-panel);border-top:1px solid var(--atlas-line)}
article .architecture-legend li{display:flex;align-items:center;gap:7px;font-size:12px!important;line-height:1.5!important;margin:0!important;color:var(--atlas-muted)}
.architecture-legend i{width:11px;height:11px;display:inline-block;border-radius:3px;background:var(--node-stroke)}
article .flow-legend{display:flex;flex-wrap:wrap;gap:20px;font-size:12px!important;max-width:none;padding:0 18px;color:var(--atlas-muted)}
.atlas-inspector{padding:16px 18px;border-top:1px solid var(--atlas-line);background:var(--atlas-panel);min-height:100px}
.atlas-inspector strong{font-size:16px}.atlas-inspector p{font-size:14px!important;line-height:1.65!important;margin:6px 0!important}
.component-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.component-card{border:1px solid var(--atlas-line);border-left:4px solid var(--node-stroke);border-radius:8px;padding:16px;background:var(--atlas-soft);scroll-margin-top:100px}
.component-type{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.8px;color:var(--atlas-muted)}
article .component-card p{font-size:15px!important;line-height:1.65!important}.component-card summary{font-size:13px;color:var(--atlas-accent);cursor:pointer}.component-card.is-selected{outline:2px solid var(--atlas-accent);outline-offset:2px}
.decision-grid{display:grid;grid-template-columns:1fr;gap:14px}.decision-card{border:1px solid var(--atlas-line);border-left:3px solid var(--atlas-accent);border-radius:8px;padding:18px;background:var(--atlas-soft)}
article .decision-card p{font-size:16px!important;line-height:1.7!important}.technical-walkthrough{margin:22px 0;padding:18px;border:1px solid var(--atlas-line);border-radius:8px}.technical-walkthrough>summary{color:var(--atlas-accent);margin-bottom:12px}
.atlas-flow-list{list-style:none;padding:0!important;margin:12px 0!important}.atlas-flow-list li{margin:8px 0!important}
.flow-step{display:flex;gap:14px;text-align:left;width:100%;padding:12px;background:var(--atlas-panel);color:var(--atlas-ink);border:1px solid var(--atlas-line);border-radius:7px;cursor:pointer;font:14px/1.65 "Segoe UI",sans-serif}
.flow-step>span:last-child{min-width:0}.flow-step strong{display:block;font-size:15px}.flow-step small{display:inline-block;font-size:10px;letter-spacing:1px;margin-right:9px;color:var(--atlas-muted)}
.flow-number{flex:0 0 28px;font:600 12px/24px Consolas,monospace;color:var(--atlas-accent)}.flow-step[aria-pressed=true]{border-color:var(--atlas-accent);background:var(--atlas-focus)}
.interview-summary{margin:0;padding:18px 22px;border-left:4px solid var(--atlas-accent);background:var(--atlas-soft);border-radius:5px}
.article-glossary{margin:20px 0;border:1px solid var(--atlas-line);border-radius:7px;padding:16px}.article-glossary dl{display:grid;grid-template-columns:90px 1fr;gap:12px;font-size:14px}.article-glossary dt{font-weight:700}.article-glossary dd{margin:0;color:var(--atlas-muted)}
.revision-mode .learning-only{display:none}.revision-mode .article-toc a[href$="-requirements"],.revision-mode .article-toc a[href$="-scale"],.revision-mode .article-toc a[href$="-model"],.revision-mode .article-toc a[href$="-apis"],.revision-mode .article-toc a[href$="-components"]{display:none}
.atlas-diagram.is-expanded{position:fixed;inset:12px;z-index:1000;margin:0;overflow:auto;background:var(--atlas-panel);box-shadow:0 0 0 30px #0009}.atlas-diagram.is-expanded .atlas-canvas{max-height:calc(100vh - 310px);min-height:300px}
.atlas-diagram button:focus-visible,.flow-step:focus-visible,.article-mode button:focus-visible,.atlas-canvas:focus-visible{outline:3px solid var(--atlas-accent);outline-offset:3px}
@media(max-width:1000px){.component-grid{grid-template-columns:1fr}.article-mode span{width:100%}body[data-page] .global-search{width:210px}}
@media(max-width:760px){:root{--atlas-body:16px}.learning-article .body,.atlas-article .body{padding:0 16px 20px}.learning-article .head,.atlas-article .head{padding:20px 16px}.article-family,.article-mode{padding-inline:16px}.article-toc{margin-inline:16px}.article-toc ol{columns:1}.atlas-section>h3{font-size:22px!important}.atlas-canvas{max-height:480px;padding:10px}.atlas-diagram-tools button{padding:8px 10px;min-height:42px}.article-mode span{font-size:12px}.atlas-diagram.is-expanded{inset:5px}.stage-heading{flex-wrap:wrap}.stage-heading p{margin-left:0!important}.filter-bar{flex-wrap:wrap}.atlas-table{font-size:14px}.atlas-table td{min-width:180px}.article-glossary dl{grid-template-columns:1fr;gap:4px}.article-glossary dd{margin-bottom:10px}}
@media(prefers-reduced-motion:reduce){.atlas-hld .flow-dot{display:none!important}html{scroll-behavior:auto!important}}
@media print{.article-mode,.atlas-diagram-tools,.atlas-inspector,.article-toc,.flow-dot{display:none!important}.revision-mode .learning-only{display:block}.atlas-canvas{max-height:none;overflow:visible}.atlas-canvas svg{width:100%!important}.atlas-table{overflow:visible}.atlas-section{break-inside:auto}.component-grid{grid-template-columns:1fr}.atlas-diagram{break-inside:avoid}}

[data-kind="client"]{--node-stroke:#2563eb;--node-fill:#eff6ff;--node-ink:#183663}
body[data-page] [data-kind="client"]{--node-fill:color-mix(in srgb,#2563eb 20%,#102037);--node-ink:#eef3fa;--node-stroke:color-mix(in srgb,#2563eb 68%,#fff)}
[data-kind="gateway"]{--node-stroke:#6366f1;--node-fill:#eef2ff;--node-ink:#37306b}
body[data-page] [data-kind="gateway"]{--node-fill:color-mix(in srgb,#6366f1 20%,#102037);--node-ink:#eef3fa;--node-stroke:color-mix(in srgb,#6366f1 68%,#fff)}
[data-kind="service"]{--node-stroke:#0d9488;--node-fill:#f0fdfa;--node-ink:#134e4a}
body[data-page] [data-kind="service"]{--node-fill:color-mix(in srgb,#0d9488 20%,#102037);--node-ink:#eef3fa;--node-stroke:color-mix(in srgb,#0d9488 68%,#fff)}
[data-kind="sql"]{--node-stroke:#b7791f;--node-fill:#fffbeb;--node-ink:#713f12}
body[data-page] [data-kind="sql"]{--node-fill:color-mix(in srgb,#b7791f 20%,#102037);--node-ink:#eef3fa;--node-stroke:color-mix(in srgb,#b7791f 68%,#fff)}
[data-kind="nosql"]{--node-stroke:#9333ea;--node-fill:#faf5ff;--node-ink:#581c87}
body[data-page] [data-kind="nosql"]{--node-fill:color-mix(in srgb,#9333ea 20%,#102037);--node-ink:#eef3fa;--node-stroke:color-mix(in srgb,#9333ea 68%,#fff)}
[data-kind="cache"]{--node-stroke:#ea580c;--node-fill:#fff7ed;--node-ink:#7c2d12}
body[data-page] [data-kind="cache"]{--node-fill:color-mix(in srgb,#ea580c 20%,#102037);--node-ink:#eef3fa;--node-stroke:color-mix(in srgb,#ea580c 68%,#fff)}
[data-kind="queue"]{--node-stroke:#e11d48;--node-fill:#fff1f2;--node-ink:#881337}
body[data-page] [data-kind="queue"]{--node-fill:color-mix(in srgb,#e11d48 20%,#102037);--node-ink:#eef3fa;--node-stroke:color-mix(in srgb,#e11d48 68%,#fff)}
[data-kind="stream"]{--node-stroke:#0891b2;--node-fill:#ecfeff;--node-ink:#164e63}
body[data-page] [data-kind="stream"]{--node-fill:color-mix(in srgb,#0891b2 20%,#102037);--node-ink:#eef3fa;--node-stroke:color-mix(in srgb,#0891b2 68%,#fff)}
[data-kind="object"]{--node-stroke:#64748b;--node-fill:#f1f5f9;--node-ink:#334155}
body[data-page] [data-kind="object"]{--node-fill:color-mix(in srgb,#64748b 20%,#102037);--node-ink:#eef3fa;--node-stroke:color-mix(in srgb,#64748b 68%,#fff)}
[data-kind="coord"]{--node-stroke:#7c3aed;--node-fill:#f5f3ff;--node-ink:#4c1d95}
body[data-page] [data-kind="coord"]{--node-fill:color-mix(in srgb,#7c3aed 20%,#102037);--node-ink:#eef3fa;--node-stroke:color-mix(in srgb,#7c3aed 68%,#fff)}
[data-kind="monitor"]{--node-stroke:#15803d;--node-fill:#f0fdf4;--node-ink:#14532d}
body[data-page] [data-kind="monitor"]{--node-fill:color-mix(in srgb,#15803d 20%,#102037);--node-ink:#eef3fa;--node-stroke:color-mix(in srgb,#15803d 68%,#fff)}
[data-kind="external"]{--node-stroke:#6b7280;--node-fill:#f9fafb;--node-ink:#374151}
body[data-page] [data-kind="external"]{--node-fill:color-mix(in srgb,#6b7280 20%,#102037);--node-ink:#eef3fa;--node-stroke:color-mix(in srgb,#6b7280 68%,#fff)}

/* V2 architecture workbench: shared across every article. */
body[data-page]{font-family:"Segoe UI",sans-serif;background:#101719;color:#e1e8e6}
.atlas-stage{display:grid;grid-template-columns:minmax(0,7fr) minmax(260px,3fr);align-items:stretch}
.atlas-stage .atlas-canvas{min-width:0;height:620px;background-color:#132023;background-image:radial-gradient(#38504e 1px,transparent 1px);background-size:22px 22px}
.atlas-stage .atlas-inspector{margin:0;border:0;border-left:2px solid #b2d976;max-height:620px;overflow:auto;background:#1c2a29;padding:22px;font-size:16px;line-height:1.65}
.atlas-inspector .component-card{background:transparent;border:0;padding:0;box-shadow:none}
.atlas-inspector h4{font-size:22px;color:#d6efa7}.atlas-inspector summary{list-style:none;font-weight:600}
.has-live-inspector [id$="-components"]{display:none}
body[data-page] .decision-grid{display:block;counter-reset:decision}
body[data-page] .decision-card{position:relative;margin:18px 0;padding:24px 28px 24px 66px;border:0;border-left:3px solid #b2d976;border-radius:0 20px 20px 0;background:linear-gradient(110deg,#22342d,#172123);counter-increment:decision}
body[data-page] .decision-card:before{content:counter(decision,decimal-leading-zero);position:absolute;left:18px;top:25px;color:#b2d976;font-size:22px}
body[data-page] .atlas-diagram{border-radius:18px;border:1px solid #4a6258;box-shadow:0 12px 40px #0003}
body[data-page] .atlas-hld .node polygon,body[data-page] .atlas-hld .node path{fill:#203332;stroke-width:2}
body[data-page] .atlas-hld .node.is-selected path{stroke:#d5f49b;stroke-width:3}
body[data-page] h2,body[data-page] h3{font-family:"Trebuchet MS","Segoe UI",sans-serif;letter-spacing:-.03em}
.article-toc ol{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;list-style:none;padding:0}.article-toc li{border-bottom:1px solid #40514e;padding:9px 12px}.article-toc a{display:block}
@media(max-width:900px){.atlas-stage{grid-template-columns:minmax(0,1fr)}.atlas-stage .atlas-canvas{height:440px}.atlas-stage .atlas-inspector{max-height:260px;border-left:0;border-top:2px solid #b2d976}.article-toc ol{grid-template-columns:1fr}}

.catalog-stage .topic-row{border-radius:0;border-bottom:1px solid #354c48;background:transparent;box-shadow:none}.catalog-stage .topic-row:hover{background:#243a32}.row-kind{color:#d6efa7;font-size:13px}.stage-heading{border-bottom:2px solid #b2d976;padding-bottom:12px}

/* Requirements brief: capabilities and engineering constraints share one spread. */
.requirements-workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0;margin:28px 0;border:1px solid #40564e;border-radius:16px;overflow:hidden;background:#172523}
.requirements-workspace>.atlas-section{min-width:0;margin:0;padding:26px;border:0;background:transparent}
.requirements-workspace>.atlas-section+ .atlas-section{border-left:1px solid #40564e;background:#1b2929}
.requirements-workspace h3{margin:0 0 20px!important;font-size:23px!important;line-height:1.3}
.requirements-workspace li{margin-bottom:16px;line-height:1.65}
.requirements-workspace table{margin:0;font-size:15px;table-layout:fixed;width:100%}
.requirements-workspace td,.requirements-workspace th{overflow-wrap:anywhere;padding:12px}
.requirements-workspace .table-wrap{max-width:100%}
body[data-page] .atlas-section>h3{color:#def0cd}
body[data-page] .article-toc{border-left:3px solid #b2d976;border-radius:0;background:#192724}
@media(max-width:1100px){.requirements-workspace{grid-template-columns:1fr}.requirements-workspace>.atlas-section+ .atlas-section{border-left:0;border-top:1px solid #40564e}}
.revision-mode .requirements-workspace{display:none}

/* API contracts use a dedicated code voice; explanations remain prose. */
body[data-page] .api-table code,body[data-page] .api-method{font-family:Consolas,"Cascadia Code","SFMono-Regular",monospace;font-size:15px;line-height:1.7;letter-spacing:0;font-variant-ligatures:none}
body[data-page] .api-table .api-contract{display:block;margin-top:9px;padding:10px 12px;background:#10201e;border-left:2px solid #8fb9ad;color:#d6e9e1;white-space:pre-wrap;overflow-wrap:anywhere;border-radius:0}
.api-method{display:inline-block;font-weight:700;color:#c7e996;letter-spacing:.06em!important}.api-method[data-method="GET"]{color:#8bc7ed}.api-method[data-method="PUT"],.api-method[data-method="PATCH"]{color:#edcb88}.api-method[data-method="DELETE"]{color:#f3a7b3}
body[data-page] .api-status{color:#c7e996;background:#253c31;padding:3px 7px;border-radius:5px}
.api-table td{vertical-align:top}.api-table td:first-child{width:42%}

/* Reader audit: consistent tokens, accessible navigation and narrow-screen tables. */
body[data-page]{--atlas-panel:#152322;--atlas-soft:#1d302c;--atlas-line:#40564e;--atlas-accent:#c7e996;--atlas-focus:#304333;--atlas-muted:#bbccc5}
body[data-page] article .body,body[data-page] .atlas-inspector,body[data-page] .atlas-table{font-family:"Segoe UI",Arial,sans-serif}
.component-picker-label{display:flex;align-items:center;gap:16px;padding:12px 18px;font-size:14px;background:var(--atlas-soft)}
.component-picker{min-width:0;max-width:100%;flex:1;padding:10px;background:var(--atlas-panel);color:var(--atlas-ink);border:1px solid var(--atlas-line);border-radius:6px;font:inherit}
article .body .diagram-help{font-size:13px!important;line-height:1.5!important;margin:0!important;padding:8px 18px;max-width:none;color:var(--atlas-muted)}
.component-picker:focus-visible,article a:focus-visible,article summary:focus-visible{outline:3px solid #c7e996;outline-offset:3px}
.article-toc li[hidden]{display:none!important}
@media(max-width:760px){
 .atlas-table table,.atlas-table tbody,.atlas-table tr,.atlas-table td{display:block;width:100%;box-sizing:border-box}
 .atlas-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 article .atlas-table td{min-width:0!important;border:0!important;overflow-wrap:anywhere;padding:10px 14px!important}
 .atlas-table td:before{content:attr(data-label);display:block;font:600 12px/1.5 "Segoe UI",sans-serif;color:#c7e996;margin-bottom:5px}
 .atlas-table tr{border-bottom:1px solid var(--atlas-line);padding:8px 0}.atlas-table tr:last-child{border:0}
 .api-table td:first-child{width:100%}.component-picker-label{display:block}.component-picker{display:block;width:100%;margin-top:6px}
 .atlas-stage .atlas-canvas{height:340px;min-height:220px}.atlas-stage .atlas-inspector{max-height:320px}
 body[data-page] .decision-card{padding:20px 18px 20px 48px}.decision-card:before{left:10px!important;font-size:18px!important}
}

/* Architecture Lab composition — shared layout and interaction tokens. */
body[data-page]{--atlas-panel:#232321;--atlas-soft:#2d2d28;--atlas-line:#4e4d43;--atlas-ink:#f0eee5;--atlas-muted:#c3c1b5;--atlas-accent:#efbf77;--atlas-focus:#443c2d;background:#191a18;color:var(--atlas-ink)}
body[data-page] .topbar,body[data-page] .sidebar{background:#20221f}
article .atlas-section{padding:20px 0}article .atlas-section>h3{margin-bottom:12px!important}
.lab-brief{display:grid;grid-template-columns:1.1fr 1fr;gap:28px;align-items:start}.lab-brief .atlas-section{border-bottom:0}
.lab-brief p,.lab-brief li{max-width:70ch}.lab-disclosure{margin:18px 0;border:1px solid var(--atlas-line);border-radius:10px;padding:14px 18px;background:var(--atlas-panel)}
.lab-disclosure>summary{font-weight:650;color:var(--atlas-accent);cursor:pointer;min-height:28px}
body[data-page] .decision-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:16px;align-items:start}
body[data-page] .decision-card{margin:0;padding:18px 20px;border-left:3px solid var(--atlas-accent);border-radius:0 10px 10px 0;background:#2d2c26}
body[data-page] .decision-card:before{display:none}.decision-card details{border-top:1px solid var(--atlas-line);padding-top:10px}.decision-card summary{cursor:pointer;font-size:14px;color:var(--atlas-accent)}
.atlas-flow-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,330px),1fr));gap:10px}.atlas-flow-list li{margin:0!important}.flow-step{height:100%;padding:10px}.flow-step strong{font-size:14px}
body[data-page] .api-table .api-contract{display:inline;margin:0 0 0 9px;padding:2px 0;border:0;background:none}.api-method{white-space:nowrap}
article .api-table td{padding:11px 14px!important}
.lab-synthesis{display:grid;grid-template-columns:1fr 1.15fr;gap:24px;align-items:start}.lab-synthesis blockquote{margin:0;padding:14px 18px}.lab-synthesis p{max-width:70ch}
.lab-exercises,.recall-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:14px;align-items:start}
.lab-exercises details,.recall-grid details{padding:16px;border:1px solid var(--atlas-line);border-top:3px solid #80bcb3;border-radius:8px;background:var(--atlas-soft)}
.lab-exercises summary,.recall-grid summary{cursor:pointer;font-weight:600;line-height:1.5}.practice-state{display:flex;flex-wrap:wrap;gap:14px;align-items:center;margin-top:18px;font-size:14px}.practice-state select{padding:10px;background:var(--atlas-panel);color:var(--atlas-ink);border:1px solid var(--atlas-line);border-radius:6px}
.atlas-stage{align-items:start;background:#202724}.atlas-stage .atlas-inspector{height:auto;min-height:0;align-self:start;padding:18px;background:#2b332e;scrollbar-gutter:auto}
.atlas-stage .atlas-canvas{height:520px}.atlas-inspector .component-card{margin:0!important}
body[data-page] .atlas-section>h3{color:var(--atlas-ink)}body[data-page] .article-toc{background:var(--atlas-soft);border-color:var(--atlas-line)}
.revision-mode .decision-card details{display:none}.revision-mode .lab-reference{display:none}
@media(min-width:1900px){.lab-brief{grid-template-columns:1fr 1fr}.atlas-flow-list{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1100px){.lab-brief,.lab-synthesis{grid-template-columns:1fr;gap:0}}
@media(max-width:760px){.atlas-stage .atlas-canvas{height:320px}.lab-disclosure{padding:12px}.decision-grid{grid-template-columns:1fr!important}.lab-synthesis blockquote{padding:12px}.practice-state{display:block}.practice-state span{display:block;margin-top:10px}}
@media(prefers-reduced-motion:no-preference){.decision-card details[open],.lab-exercises details[open]{animation:lab-reveal .16s ease-out}@keyframes lab-reveal{from{opacity:.7}to{opacity:1}}}
/* Engineering control room: one shared identity and responsive blueprint workspace. */
body[data-page]{--atlas-panel:#111827;--atlas-soft:#172235;--atlas-line:#334155;--atlas-ink:#edf2f7;--atlas-muted:#b7c5d6;--atlas-accent:#f6c76b;--atlas-focus:#3a3021;background:#0b0f19;color:var(--atlas-ink)}
body[data-page] .topbar,body[data-page] .sidebar{background:#0e1421}body[data-page] .brand{color:#f1f5f9}body[data-page] .brand strong{font-weight:700}
.control-room{padding:16px 18px;border-block:1px solid var(--atlas-line);background:linear-gradient(115deg,#152636,#111827)}
.control-heading{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.control-heading strong{font-size:16px}.simulation-label{font:12px/1.5 Consolas,monospace;color:#b8c8d8;margin-left:auto}
.control-status{height:7px;width:7px;border-radius:50%;background:#65dfb5;box-shadow:0 0 10px #65dfb560}
.simulation-controls{display:flex;flex-wrap:wrap;align-items:end;gap:10px;margin:14px 0}.simulation-controls button,.simulation-controls select{min-height:40px;border:1px solid #41556f;border-radius:6px;background:#152235;color:#edf2f7;font:600 13px/1.5 "Segoe UI",sans-serif;padding:8px 12px;cursor:pointer}.simulation-controls button:first-child{background:#164638;border-color:#4ec9a3}.simulation-controls label{display:grid;gap:4px;font-size:12px;color:var(--atlas-muted)}
.simulation-controls :focus-visible,.model-assumptions summary:focus-visible{outline:3px solid #f6c76b;outline-offset:3px}
.simulation-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0}.simulation-metrics>div{border-left:2px solid #3c7f72;padding:6px 10px;background:#0e1826}.simulation-metrics dt{font-size:11px;color:#b7c5d6}.simulation-metrics dd{margin:0;font:600 22px/1.5 Consolas,monospace;color:#8ae2c4}
.queue-meter{display:flex;align-items:center;gap:12px;margin-top:12px;font-size:12px;color:#bcc9d8}.queue-meter progress{flex:1;accent-color:#f6c76b;height:12px}
article .body .model-event{font-size:13px!important;margin:8px 0!important;line-height:1.5!important}.model-assumptions{font-size:12px;color:#b7c5d6}.model-assumptions summary{cursor:pointer}article .body .model-assumptions p{font-size:13px!important;line-height:1.6!important}
.telemetry-card{border-top:1px solid #476478;margin-top:16px;padding-top:14px}.telemetry-label{font:11px/1.5 Consolas,monospace;color:#8ae2c4}.telemetry-card h5{font-size:12px;margin:12px 0 4px;color:#f6c76b}.telemetry-live{font-family:Consolas,monospace;color:#8ae2c4}
.atlas-stage{background:#101c29}.atlas-stage .atlas-canvas{background-color:#101c29;background-image:radial-gradient(#304251 .7px,transparent .7px)}.atlas-stage .atlas-inspector{background:#142130}.atlas-diagram{border-color:#3e536b!important}.component-picker-label{background:#172235}.component-picker{background:#111827}.diagram-help{background:#101827}
body[data-page] .decision-card{background:#182333;border-color:#f6c76b}.lab-exercises details{background:#172333;border-top-color:#f6c76b}.recall-grid details{background:#15282b}.lab-exercises summary:before{content:'PREDICT → ';font:11px Consolas,monospace;color:#f6c76b}
.sim-backlog path,.sim-backlog polygon{stroke:#f6c76b!important;stroke-width:3!important}.sim-error path,.sim-error polygon{stroke:#f0958d!important;stroke-width:3!important}
.simulation-running .edge .flow-dot{opacity:1;fill:#71e7bc;display:block}.simulation-running .edge path{stroke:#64a997}
@media(min-width:1400px){article.learning-article{position:relative;overflow:visible}.article-toc{float:right;position:sticky;top:100px;width:190px;max-height:calc(100vh - 125px);overflow:auto;margin:18px 20px 0 0;box-sizing:border-box}.article-toc ol{display:block;columns:1;padding:0}.article-toc li{padding:7px 0;font-size:12px!important}.learning-article>.body{margin-right:230px}.article-toc>summary{font-size:13px}.article-toc:not([open]){width:190px}}
@media(max-width:760px){.simulation-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.simulation-label{margin-left:0}.control-room{padding:12px}.simulation-controls label{flex:1;min-width:120px}.queue-meter{flex-wrap:wrap}.telemetry-card h4{font-size:18px}}
@media(prefers-reduced-motion:reduce){.simulation-running .flow-dot{display:none!important}.control-status{box-shadow:none}}


@media(min-width:1400px) and (max-width:1799px){.article-toc{width:150px;margin-right:12px}.learning-article>.body{margin-right:175px}.article-toc:not([open]){width:150px}.article-toc li{font-size:11px!important}}

/* Full-screen blueprint viewer: fit the whole connected graph without page scrolling. */
.atlas-diagram.inspector-hidden .atlas-stage{grid-template-columns:minmax(0,1fr)}.atlas-diagram.inspector-hidden .atlas-inspector{display:none}
.atlas-diagram.is-expanded{inset:0;display:flex;flex-direction:column;border-radius:0!important;overflow:hidden;height:100dvh;box-sizing:border-box}
.atlas-diagram.is-expanded>.control-room,.atlas-diagram.is-expanded>.diagram-help,.atlas-diagram.is-expanded>.component-picker-label,.atlas-diagram.is-expanded>.flow-legend{display:none}
.atlas-diagram.is-expanded .atlas-stage{flex:1;min-height:0;align-items:stretch;overflow:hidden}
.atlas-diagram.is-expanded .atlas-canvas{height:100%;max-height:none;min-height:0;box-sizing:border-box;overflow:auto}
.atlas-diagram.is-expanded .atlas-inspector{max-height:100%;box-sizing:border-box;overflow:auto}
.atlas-diagram.is-expanded .architecture-legend{margin:0;padding-block:6px;flex:none}
.atlas-diagram.is-expanded figcaption{padding-block:8px}.atlas-diagram.is-expanded .atlas-diagram-tools{padding-block:6px;flex:none}
@media(max-width:900px){.atlas-diagram.is-expanded .atlas-stage{grid-template-columns:minmax(0,1fr) minmax(160px,.55fr)}}
@media(max-width:600px){.atlas-diagram.is-expanded .atlas-stage{grid-template-columns:minmax(0,1fr)}.atlas-diagram.is-expanded .atlas-inspector{display:none}.atlas-diagram.is-expanded .architecture-legend{display:none}}

.visible-specifications{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:start}.visible-specifications>.atlas-section{min-width:0}@media(max-width:1000px){.visible-specifications{grid-template-columns:1fr;gap:0}}
/* Audience and navigation components: one shared skin, explicit content metadata. */
.sidebar-search{display:block;margin:12px 18px;color:var(--atlas-muted);font-size:12px}.sidebar-search input{display:block;width:100%;box-sizing:border-box;margin-top:5px;padding:9px 10px;border:1px solid #3c4e63;border-radius:6px;background:#131d2b;color:#edf2f7;font:14px "Segoe UI",sans-serif}.sidebar [hidden]{display:none!important}
body[data-page] .row-kind{display:flex;flex-wrap:wrap;gap:6px;max-width:230px}.topic-badge{display:inline-block;padding:3px 7px;border:1px solid #41516a;border-radius:5px;font:11px/1.5 "Segoe UI",sans-serif;color:#c7d6e5;background:#142033}.difficulty-1{color:#91e5be;border-color:#32705c}.difficulty-2{color:#f5cf88;border-color:#796139}.difficulty-3{color:#f4aaa2;border-color:#7d494a}
body[data-page] .hero{grid-template-columns:1.05fr 1fr;min-height:0;gap:28px;padding-block:24px}body[data-page] .hero h1{font-size:clamp(34px,4vw,58px)}.signal-preview{background:linear-gradient(135deg,#172c37,#111c2b);border:1px solid #39576a;border-radius:16px;padding:24px;align-self:center}.preview-heading{display:flex;gap:10px;align-items:center}.preview-nodes{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:22px 0}.preview-nodes button{border:1px solid #516780;border-radius:6px;padding:10px 12px;background:#122033;color:#c4d1df;font:13px Consolas,monospace;cursor:pointer}.preview-nodes button[aria-pressed=true]{color:#8ae2c4;border-color:#6bd8b2;background:#163d35;box-shadow:0 0 14px #65dfb51a}.signal-preview>a{display:block;margin-top:14px;font-size:13px}.signal-preview p{min-height:70px;line-height:1.7;font-size:15px}
.entry-paths{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:10px 0 24px}.entry-paths>a{display:grid;gap:10px;align-content:start;padding:18px;background:#121f2e;border:1px solid #34485e;border-radius:10px;color:#edf2f7;text-decoration:none}.entry-paths .topic-badge{justify-self:start}.entry-paths>a>span:last-child{font-size:14px;color:#b8c7d6;line-height:1.6}
.mental-model{padding:16px 20px;border-left:3px solid #76cdbb;background:#142b2c;border-radius:0 10px 10px 0;margin-bottom:14px}.production-case{padding:18px 20px;border-left:3px solid #f6c76b;background:#292738;border-radius:0 10px 10px 0;margin:16px 0}.production-case h4{font-size:20px!important}.node-tooltip{position:absolute;inset:auto 16px 12px;max-width:580px;background:#203148;color:#edf2f7;border:1px solid #7393b4;padding:12px 16px;border-radius:8px;font-size:13px;line-height:1.6;z-index:5;pointer-events:none}.node-tooltip[hidden]{display:none}.atlas-diagram{position:relative}.atlas-diagram.is-expanded .node-tooltip{bottom:36px}
.reference-grid{display:block!important}.reference-group{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:18px;margin:28px 0}.reference-group>h2{grid-column:1/-1}.reference-group .reference-card{margin:0;min-width:0}.reference-card h3 a{color:#e7edf7}.reference-card .reading-when{padding-top:12px;border-top:1px solid #36495e;font-size:14px}.map-link-reason{font-size:13px!important;line-height:1.6!important;color:#b9c6d5;margin-top:3px!important}.drill-shortcut{border-left:2px solid #f6c76b;padding-left:10px}.release li{line-height:1.8;margin:12px 0}
button:focus-visible,.entry-paths a:focus-visible,.sidebar-search input:focus-visible{outline:3px solid #f6c76b;outline-offset:3px}
@media(max-width:1000px){body[data-page] .hero{grid-template-columns:1fr}.entry-paths{grid-template-columns:1fr}}
@media(max-width:760px){body[data-page] .row-kind{max-width:none}.topic-row .row-kind{grid-column:2}.signal-preview{padding:18px}.preview-nodes button{min-height:44px}.production-case,.mental-model{padding:14px}.reference-group{grid-template-columns:1fr}.node-tooltip{font-size:12px;inset:auto 8px 8px}}
@media(prefers-reduced-motion:no-preference){.preview-nodes button,.entry-paths>a{transition:background .15s,border-color .15s}.entry-paths>a:hover{border-color:#76cdbb;background:#19302f}}


body[data-page] .catalog-stage{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:22px}.catalog-stage>.stage-heading{grid-column:1/-1;margin-bottom:0}.catalog-stage .topic-row{display:grid;grid-template-columns:22px minmax(0,1fr) 18px;gap:8px 12px;padding:18px;border:1px solid #31475b;border-radius:9px;background:#101b29;align-items:start;min-width:0}.topic-row .row-copy{grid-column:2;min-width:0}.topic-row .row-arrow{grid-column:3;grid-row:1}.topic-row .row-kind{grid-column:2;max-width:none;gap:5px}.topic-row .row-copy h3{margin:0 0 8px}.topic-row .row-copy p{margin-bottom:4px;font-size:14px!important}
@media(max-width:1100px){body[data-page] .catalog-stage{grid-template-columns:1fr}}
@media(max-width:760px){.type-select{flex-wrap:wrap;gap:8px;min-width:0}.type-select>span{flex-basis:100%}.type-select select{flex:1;min-width:0;max-width:100%;width:calc(50% - 4px)}.filter-bar{min-width:0}.signal-preview{min-width:0}.catalog-stage .topic-row{padding:15px}}

/* Readable deep dives and spaced request particles. */
body[data-page] .decision-grid:has(.expanded-decision){grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr));align-items:start;gap:18px}
.expanded-decision h5{margin:18px 0 6px;color:#f6c76b;font-size:14px;font-weight:650}.expanded-decision details>summary{font-size:13px;line-height:1.6}.expanded-decision details p{max-width:68ch}.expanded-decision details{margin-top:14px}.expanded-decision p{line-height:1.8!important}
.term-inline{color:#becfdd;font-size:.94em;line-height:inherit}.mental-model .term-inline{color:#c9e2dc}.atlas-hld .flow-dot{fill:#85d3bc;filter:drop-shadow(0 0 2px #79c8ae88)}
@media(prefers-reduced-motion:reduce){.atlas-hld .flow-dot{display:none!important}}
@media print{.expanded-decision details{display:block!important}.term-inline{color:#334155}}

/* Compact paired briefs, visible progress and glossary bubbles. */
.paired-sections{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;align-items:start}.paired-sections>.atlas-section{min-width:0}.paired-sections:has(>.atlas-section:only-child){grid-template-columns:minmax(0,1fr)}
.paired-sections .atlas-table{margin-top:0}.paired-sections .atlas-section{padding-top:18px;padding-bottom:18px}
.practice-tracker{display:flex;flex-wrap:wrap;gap:10px 16px;align-items:center;margin:0 28px 18px;padding:12px 16px;border:1px solid #3c5362;border-radius:10px;background:#12262a}.practice-tracker>span:first-child{font-weight:600;font-size:13px;color:#c9d9df}.practice-toggles{display:flex;flex-wrap:wrap;gap:6px}.practice-toggles button{padding:7px 11px;min-height:38px;border:1px solid #40586d;border-radius:20px;background:#142031;color:#cbd8e3;font:13px/1.5 "Segoe UI",sans-serif;cursor:pointer}.practice-toggles button[aria-pressed=true]{background:#19483b;color:#a9efcf;border-color:#78d5b2;box-shadow:inset 0 0 0 1px #78d5b233}.practice-toggles button[aria-pressed=true]:before{content:'✓ ';font-weight:700}.practice-feedback{font-size:12px;color:#a9dfc7}.reader-kicker #complete-topic{display:none}
article .term-help{display:inline;vertical-align:baseline;min-height:0;padding:0;border:0;border-bottom:1px dotted #86cdbd;border-radius:0;background:transparent;color:inherit;font:inherit;line-height:inherit;cursor:help;text-transform:none;letter-spacing:inherit}.term-help:hover{color:#a9efd6;background:#234238}.term-help:focus-visible{outline:2px solid #f6c76b;outline-offset:3px}
.term-bubble{position:fixed;z-index:3000;max-width:min(360px,calc(100vw - 24px));padding:13px 16px;border:1px solid #6ea594;border-radius:10px;background:#192f32;color:#eff7f4;font:14px/1.65 "Segoe UI",sans-serif;box-shadow:0 10px 28px #0007;box-sizing:border-box}.term-bubble[hidden]{display:none!important}
.control-room-disclosure{border-block:1px solid #354b60;background:#111e2c}.control-room-disclosure>summary{padding:13px 18px;cursor:pointer;color:#a1e5cc;font:600 14px/1.6 "Segoe UI",sans-serif}.control-room-disclosure .control-room{border:0}.atlas-diagram.is-expanded>.control-room-disclosure{display:none}
.spoken-summary{max-width:90ch;padding:20px 24px;border-left:3px solid #89d7b6;border-radius:0 12px 12px 0;background:#162a2d}.spoken-summary p{max-width:none}.spoken-summary p:first-child{margin-top:0!important}.spoken-summary p:last-child{margin-bottom:0!important}
@media(max-width:1050px){.paired-sections{grid-template-columns:1fr;gap:0}}
@media(max-width:760px){.practice-tracker{margin-inline:16px;padding:12px}.practice-toggles{gap:6px}.practice-toggles button{min-height:42px;padding:8px 10px}.spoken-summary{padding:16px}.control-room-disclosure>summary{padding:12px}}

/* Two readable columns, independent of monitor width. */
body[data-page] .decision-grid:has(.expanded-decision){grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start}
.expanded-decision>h4{font-size:21px!important;line-height:1.4}.expanded-decision>p{margin-bottom:12px!important}.expanded-decision details>summary{color:#a9e3ce;min-height:36px;cursor:pointer}
@media(max-width:1000px){body[data-page] .decision-grid:has(.expanded-decision){grid-template-columns:minmax(0,1fr)}}
.requirements-pair ul{margin-top:8px}.requirements-pair li{margin:7px 0!important;line-height:1.6!important}

/* Adaptive diagram workspace and optional topic navigation. */
body[data-page] main{max-width:none}
body[data-page] article.learning-article{overflow:visible}
#menu{display:inline-flex;align-items:center;justify-content:center;min-height:40px;white-space:nowrap;font-size:13px;padding:8px 12px;gap:6px}
.sidebar-heading #close-menu{display:inline-flex;font-size:13px;min-height:36px;padding:6px 10px}
@media(min-width:761px){body.sidebar-hidden .sidebar{visibility:hidden;transform:translateX(-100%);pointer-events:none}body.sidebar-hidden main{margin-left:0}}
/* Keep section navigation reachable without reserving a permanent diagram rail. */
body[data-page] .article-toc{float:none;position:sticky;top:86px;z-index:25;width:max-content;max-width:calc(100% - 56px);max-height:none;overflow:visible;margin:0 28px 14px auto;padding:8px 14px;border:1px solid #40556c;border-radius:8px;background:#172235;box-sizing:border-box}
body[data-page] .article-toc:not([open]){width:max-content}
body[data-page] .article-toc>summary{font-size:14px;min-height:30px;line-height:30px}
body[data-page] .article-toc ol{position:absolute;right:0;top:100%;display:grid;grid-template-columns:1fr 1fr;gap:0;width:min(560px,calc(100vw - 96px));max-height:65dvh;overflow:auto;padding:10px;margin:6px 0 0;border:1px solid #40556c;border-radius:10px;background:#142130;box-shadow:0 15px 35px #0008}
body[data-page] .article-toc li{font-size:14px!important;padding:8px 10px;margin:0!important}
body[data-page] .learning-article>.body{margin-right:0}
body[data-page] .atlas-diagram{overflow:clip;container-type:inline-size}
.atlas-stage{grid-template-columns:minmax(0,1fr) 12px minmax(240px,var(--inspector-width,320px));align-items:start}
.atlas-stage .atlas-canvas{max-height:none;min-height:0;box-sizing:border-box;overscroll-behavior:auto;scrollbar-width:auto;cursor:grab;touch-action:pan-x pan-y}
.atlas-stage .atlas-canvas.is-panning{cursor:grabbing;user-select:none;touch-action:none}
.atlas-stage .atlas-inspector{position:sticky;top:92px;max-height:calc(100dvh - 120px);height:auto;min-height:0;border:0;align-self:start;scrollbar-width:thin}
.inspector-divider{align-self:stretch;cursor:col-resize;touch-action:none;background:#172b3b;position:relative;min-height:80px}
.inspector-divider:after{content:'';position:absolute;top:50%;left:4px;width:4px;height:48px;border-radius:3px;background:#5d9d95;transform:translateY(-50%)}
.inspector-divider:hover,.inspector-divider.is-dragging{background:#2b5a59}
.inspector-divider:focus-visible,.canvas-height-grip:focus-visible{outline:3px solid #f6c76b;outline-offset:-3px}
.canvas-height-grip{padding:4px 12px;text-align:center;min-height:30px;box-sizing:border-box;background:#172638;border-top:1px solid #39516a;color:#bdd2dc;font:12px/22px "Segoe UI",sans-serif;cursor:row-resize;touch-action:none;user-select:none}
.canvas-height-grip:hover,.canvas-height-grip.is-dragging{background:#25443f;color:#d8f6eb}
.canvas-sizing{display:flex;align-items:center;gap:7px;margin-left:auto;color:#bacbd9;font:12px/1.5 "Segoe UI",sans-serif}
.canvas-sizing select{max-width:160px;min-height:38px;padding:6px 8px;border:1px solid #40556c;border-radius:6px;background:#111d2b;color:#edf2f7;font:13px "Segoe UI",sans-serif}
.diagram-zoom{font:12px/1.5 Consolas,monospace;min-width:40px;text-align:center;color:#a8dfd2}
.atlas-diagram-tools [data-action=expand]{background:#17463f;border-color:#66bba7;color:#d7f7ea}
.atlas-diagram-tools{position:sticky;top:76px;z-index:30}
.atlas-diagram.inspector-hidden .inspector-divider{display:none}
body[data-page] .atlas-diagram.is-expanded{overflow:hidden;inset:0;width:100%;max-width:none;height:100dvh}
.atlas-diagram.is-expanded .atlas-stage{align-items:stretch;grid-template-columns:minmax(0,1fr) 12px minmax(240px,var(--inspector-width,320px))}
.atlas-diagram.is-expanded .atlas-canvas{height:100%!important;min-height:0}
.atlas-diagram.is-expanded .atlas-inspector{position:static;max-height:100%;align-self:stretch}
.atlas-diagram.is-expanded .canvas-height-grip,.atlas-diagram.is-expanded .canvas-sizing{display:none}
.atlas-diagram.is-expanded .atlas-diagram-tools{position:static}
.atlas-diagram.inspector-hidden .atlas-stage{grid-template-columns:minmax(0,1fr)}
.atlas-diagram.inspector-hidden .atlas-inspector{display:none!important}
@container(max-width:820px){
 .atlas-stage{grid-template-columns:minmax(0,1fr)}
 .inspector-divider{display:none}
 .atlas-stage .atlas-inspector{position:static;max-height:360px;border-top:1px solid #426579}
 .atlas-diagram.is-expanded .atlas-stage{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto}
 .atlas-diagram.is-expanded .atlas-inspector{display:block;max-height:35dvh}
}
@media(max-width:760px){
 .topbar #menu{margin-left:0;margin-right:10px;min-height:40px;padding:6px 9px;font-size:12px}
 .topbar .brand{margin-right:auto}
 body[data-page] .article-toc{top:120px;margin-right:16px;max-width:calc(100% - 32px)}
 body[data-page] .article-toc ol{width:calc(100vw - 76px);grid-template-columns:1fr}
 .atlas-diagram-tools{gap:6px;padding:10px}
 .atlas-diagram-tools{top:112px}
 .canvas-sizing{margin-left:0;flex:1 1 100%;justify-content:space-between}
 .canvas-sizing select{max-width:none;flex:1}
 .atlas-diagram.is-expanded .atlas-stage{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto}
 .atlas-diagram.is-expanded .atlas-inspector{display:block;max-height:35dvh}
 .atlas-diagram.is-expanded.inspector-hidden .atlas-stage{grid-template-rows:minmax(0,1fr)}
 .atlas-diagram.is-expanded.inspector-hidden .atlas-inspector{display:none}
 .atlas-diagram.is-expanded .atlas-diagram-tools button{min-height:38px;padding:6px 9px}
}
@media print{body[data-page] main{margin:0!important}.canvas-height-grip,.canvas-sizing,.inspector-divider,#menu{display:none!important}.atlas-stage{display:block}.atlas-stage .atlas-canvas{height:auto!important;overflow:visible}.atlas-stage .atlas-inspector{display:none!important}}

/* Component colors and shapes come from component-visuals.json, not label matching. */
body[data-page] .semantic-hld .node .node-outline{fill:var(--node-fill);stroke:var(--node-stroke);stroke-width:1.6}
body[data-page] .semantic-hld .node .node-detail{fill:none;stroke:var(--node-stroke);stroke-width:1.3}
body[data-page] .semantic-hld .node .queue-message{fill:var(--node-stroke);fill-opacity:.48;stroke:var(--node-stroke);stroke-width:1}
body[data-page] .semantic-hld .node text{fill:var(--node-ink);font-family:"Segoe UI",Arial,sans-serif}
body[data-page] .semantic-hld .node:hover .node-outline,body[data-page] .semantic-hld .node:focus .node-outline,body[data-page] .semantic-hld .node.is-selected .node-outline{stroke:#ffe0a1;stroke-width:2.8}
body[data-page] .semantic-hld .node.is-active .node-outline{stroke-width:2.5}
body[data-page] .semantic-hld .edge .edge-line{fill:none;stroke:#8d9cab;stroke-width:1.35}
body[data-page] .semantic-hld .edge .edge-arrow{fill:#8d9cab;stroke:#8d9cab}
body[data-page] .semantic-hld .edge .edge-label-bg{fill:#081824;stroke:#35566c;stroke-width:1}
body[data-page] .semantic-hld .edge text{fill:#a8d8f5;stroke:none;font-family:"Segoe UI",Arial,sans-serif}
body[data-page] .semantic-hld .edge.is-active .edge-line{stroke:var(--atlas-accent);stroke-width:2.5}
body[data-page] .semantic-hld .edge.is-active .edge-arrow{fill:var(--atlas-accent);stroke:var(--atlas-accent)}
body[data-page] .semantic-hld .edge.is-active .edge-label-bg{stroke:#c9a662;fill:#262719}
body[data-page] .semantic-hld .edge.is-active text{fill:#ffe0a1}
/* These illustrative failure states apply to node outlines, not label tiles. */
body[data-page] .semantic-hld .node.sim-backlog .node-outline{stroke:#f6c76b!important;stroke-width:3!important}
body[data-page] .semantic-hld .node.sim-error .node-outline{stroke:#f0958d!important;stroke-width:3!important}
@media print{
 body[data-page] .semantic-hld .node .node-outline{fill:#f6f8fa!important;stroke:var(--node-stroke)!important}
 body[data-page] .semantic-hld .node text{fill:#182334!important}
 body[data-page] .semantic-hld .edge .edge-label-bg{fill:#fff!important;stroke:#8a9caf!important}
 body[data-page] .semantic-hld .edge text{fill:#183654!important}
}
