/* Survey Legend. Shape and line style repeat each diagram meaning. */
:root {
  color-scheme: light;
  --paper: #f2efe8;
  --card: #fbfaf7;
  --rule: #ddd7cb;
  --survey-ink: #1c2430;
  --ink-2: #4b5566;
  --control: #737c8c;
  --route: #8f5a00;
  --route-fill: #e9a846;
  --hazard: #b8341b;
  --recovery: #2c5f9e;
  --sans: "IBM Plex Sans", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
  --judgment: "Newsreader", Georgia, serif;
}
body[data-page] {
  --bg: var(--paper); --ink: var(--survey-ink); --muted: var(--ink-2);
  --soft: var(--card); --panel: var(--card); --line: var(--rule);
  --accent: var(--route); --accent-soft: #f4e6cc; --mint: var(--survey-ink); --rose: var(--hazard);
  --atlas-panel: var(--card); --atlas-soft: var(--paper); --atlas-line: var(--rule);
  --atlas-ink: var(--survey-ink); --atlas-muted: var(--ink-2);
  --atlas-accent: var(--route); --atlas-focus: #eae5dc;
  font: 17px/1.6 var(--sans);
  color: var(--survey-ink); background: var(--paper);
}
[hidden] { display: none !important; }
body[data-page] h1, body[data-page] h2, body[data-page] h3, body[data-page] h4 {
  font-family: var(--sans); line-height: 1.15; letter-spacing: -.025em; color: var(--survey-ink);
}
body[data-page] h1 { font-size: clamp(33px,4vw,44px); font-weight: 600; }
body[data-page] h2 { font-size: 26px; }
body[data-page] h3 { font-size: 21px; }
body[data-page] a { color: var(--route); text-underline-offset: .16em; }
body[data-page] :is(button,select,input,textarea) {
  color: var(--survey-ink); font-family: var(--sans); font-size: 15px;
}
body[data-page] :is(button,select,textarea) {
  border-color: var(--control); background: var(--card); border-radius: 6px;
}
body[data-page] :is(button,select) { min-height: 32px; }
body[data-page] button:hover:not(:disabled) { background: #eae5dc; border-color: var(--survey-ink); }
body[data-page] button:disabled { border-style: dashed; color: var(--ink-2); opacity: 1; }
body[data-page] :is(button,[role="button"])[aria-pressed="true"] {
  color: var(--card); background: var(--survey-ink); border-color: var(--survey-ink);
}
body[data-page] :is(button,[role="button"])[aria-pressed="true"]:hover { color: var(--card); background: #344052; }
body[data-page] :focus-visible { outline: 2px solid var(--survey-ink); outline-offset: 2px; box-shadow: 0 0 0 5px var(--route-fill); }
body[data-page] svg :focus-visible { box-shadow: none; }
body[data-page] :is(.primary-button,[data-action="next"]:not(:disabled)) {
  background: var(--route-fill); color: var(--survey-ink); border: 1px solid var(--survey-ink);
  font: 600 15px/1.25 var(--sans); min-height: 44px;
}
body[data-page] :is(.eyebrow,.component-type,.sidebar-footer,.sidebar-footer small,.nav-group summary,.row-number,.stage-heading p,.row-kind,.map-legend,.node-kind,.global-search kbd,.flow-number,.simulation-label,.telemetry-label) {
  font: 400 13px/1.4 var(--mono); color: var(--ink-2); letter-spacing: 0;
}
body[data-page] .topbar, body[data-page] .sidebar { background: var(--paper); box-shadow: none; border-color: var(--rule); }
body[data-page] .topbar { backdrop-filter: none; }
body[data-page] .topbar .brand, body[data-page] .brand strong { color: var(--survey-ink); }
body[data-page] .brand svg { color: var(--survey-ink); stroke: var(--survey-ink); }
body[data-page] .global-search { position: relative; border: 1px solid var(--control); background: var(--card); }
.global-search input { min-height: 30px; }
body[data-page] .sidebar nav a { color: var(--survey-ink); font-size: 15px; }
body[data-page] .sidebar nav a[aria-current="page"] { border-inline-start: 3px solid var(--route-fill); background: var(--card); }
body[data-page] .top-nav a[aria-current="page"] { border-bottom: 2px solid var(--route-fill); }
body[data-page] .sidebar .topic-link span, body[data-page] .sidebar summary span { color: var(--ink-2); font-size: 13px; }
.nav-group > summary { min-height: 34px; }
body[data-page] .status-dot, body[data-page] .control-status { background: var(--control); box-shadow: none; animation: none; }
body[data-page] .level-dot { border: 1px solid var(--ink-2); background: transparent; width: .7rem; height: .7rem; border-radius: 100%; }
body[data-page] .level-dot.level-2 { background: linear-gradient(90deg,var(--ink-2) 50%,transparent 50%); }
body[data-page] .level-dot.level-3 { background: var(--ink-2); }
body[data-page] .topic-badge { color: var(--survey-ink); border-color: var(--control); background: var(--card); font: 13px/1.4 var(--mono); }

body[data-page] main { max-width: 1480px; }
body[data-page] main:has(.reading-layout) { max-width: none; }
body[data-page] .hero { min-height: auto; gap: 32px; padding-block: 24px; }
body[data-page] .hero h1 { font-size: clamp(33px,4vw,44px); }
body[data-page] .hero h1 em, .topic-thesis, .recall-card > p, .expanded-decision h5:last-of-type + p {
  font-family: var(--judgment); font-style: italic; color: var(--survey-ink); font-weight: 400;
}
body[data-page] .hero p, .method-copy p { font-size: 17px; color: var(--survey-ink); max-width: 68ch; }
body[data-page] .library-proof { color: var(--ink-2); font-size: 15px; }
.signal-preview, .entry-paths > a, #study-desk { color: var(--survey-ink); background: var(--card); border: 1px solid var(--rule); border-radius: 6px; box-shadow: none; }
body[data-page] .entry-paths > a { color: var(--survey-ink); }
body[data-page] .entry-paths > a:hover { background: #eae5dc; border-color: var(--control); }
body[data-page] .entry-paths > a > span:last-child { color: var(--ink-2); font-size: 15px; }
.preview-nodes button { color: var(--survey-ink); border-color: var(--control); background: #e4e7eb; min-height: 40px; }
.preview-nodes button[aria-pressed="true"] { box-shadow: none; }
.preview-fault [data-preview-node="2"] { border: 2px solid var(--hazard); background: repeating-linear-gradient(135deg,#fbede6 0 5px,#eac5b5 5px 7px); }
.preview-fault #preview-explanation { border-left: 2px dotted var(--recovery); padding-left: 12px; }
#study-desk { padding: 24px; margin-block: 12px 24px; }
#study-desk h1 { margin-top: 0; }
.desk-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.desk-actions button { padding: 8px 12px; }
#library { scroll-margin-top: 130px; }
body[data-page] .catalog-stage .topic-row { color: var(--survey-ink); background: var(--card); border-color: var(--rule); border-radius: 6px; box-shadow: none; }
body[data-page] .catalog-stage .topic-row:hover { border-color: var(--control); }
.failure-label { color: var(--hazard); font-weight: 600; }
.failure-label:not(:empty)::before, .fault-note strong::before {
  content: ""; display: inline-block; vertical-align: baseline; width: .75em; height: .75em; margin-right: .35em;
  border: 1px solid var(--hazard); background: repeating-linear-gradient(135deg,transparent 0 2px,var(--hazard) 2px 3px);
}
.topic-row .row-copy p, body[data-page] .row-copy p { color: var(--ink-2); font-size: 15px !important; }
.filter-bar select, .filters button { min-height: 36px; border: 1px solid var(--control); }
.method-copy, .reference-disclaimer { max-width: 68ch; }
.method-copy dt { font-weight: 600; }
.method-copy dd { margin: 0 0 12px; }
body[data-page] .page-intro p, body[data-page] .release p, body[data-page] .reference-card p { font-size: 17px; color: var(--survey-ink); }
body[data-page] .page-intro h1 em { color: inherit; font: italic 400 1em var(--judgment); }

#search-panel { position: absolute; z-index: 90; top: calc(100% + 8px); right: 0; width: min(420px,90vw); max-height: min(540px,70dvh); overflow: auto; padding: 12px; background: var(--card); border: 1px solid var(--control); border-radius: 6px; }
.search-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.search-panel-heading p { margin: 0; font-size: 15px; }
.search-result { display: grid; gap: 3px; padding: 10px 8px; border-bottom: 1px solid var(--rule); text-decoration: none; min-height: 44px; }
.search-result span { color: var(--ink-2); font-size: 13px; }
#search-all { display: inline-flex; min-height: 40px; align-items: center; padding: 8px; }
mark { color: inherit; background: #f2e2bb; }

body[data-page] article.learning-article { background: transparent; overflow: visible; }
body[data-page] .topic-head { position: relative; padding: 0 0 20px; margin-bottom: 24px; border-color: var(--rule); }
.topic-head h1 { margin: 8px 0 4px; }
.breadcrumb { font-size: 13px; color: var(--ink-2); }
.topic-head .topic-thesis { margin: 8px 0 20px; font-size: 21px; max-width: 65ch; }
.topic-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; }
.topic-meta > :is(span,a) { padding: 4px 8px; border: 1px solid var(--control); border-radius: 999px; }
.topic-meta > button { padding: 7px 12px; }
.topic-meta .practice-tracker { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 0; margin: 0; border: 0; background: transparent; }
.topic-meta .practice-toggles { display: flex; flex-wrap: wrap; gap: 4px; }
body[data-page] .practice-toggles button { min-height: 36px; font-size: 13px; padding: 4px 9px; box-shadow: none; border-radius: 6px; }
.practice-feedback { font-size: 13px; color: var(--ink-2); }
.topic-utilities { margin-top: 12px; color: var(--ink-2); font-size: 13px; }
.topic-utilities summary { cursor: pointer; min-height: 24px; }
.topic-utilities button { margin: 6px 6px 0 0; padding: 5px 8px; }
body[data-page] .learning-article > .body { padding: 0; margin: 0; }
.topic-hero > section { padding-top: 0; }
.architecture-guide { margin-block: 12px 24px; scroll-margin-top: 120px; }
.architecture-guide > h4 { margin: 0 0 10px; }
.architecture-boundaries, .architecture-notes {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(min(100%,21rem),1fr));
  gap: 10px;
  margin: 0;
}
.architecture-guide .architecture-boundaries { grid-template-columns: repeat(2,minmax(0,1fr)); }
.architecture-boundaries { padding-inline-start: 0; list-style-position: inside; }
body[data-page] .architecture-boundaries > li {
  margin: 0 !important;
  padding: 10px 14px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--card);
}
.architecture-boundaries > li::marker { color: var(--route); font-family: var(--mono); }
.architecture-boundaries > li > span { display: block; color: var(--ink-2); }
.architecture-notes > div { border-inline-start: 2px solid var(--rule); padding-inline-start: 10px; }
.architecture-notes dt { font-weight: 650; }
.architecture-notes dd { margin: 2px 0 0; }
@media (max-width: 760px) {
  .architecture-guide .architecture-boundaries { grid-template-columns: minmax(0,1fr); }
}
.diagram-introduction { margin-block: 24px 12px; scroll-margin-top: 120px; }
.diagram-introduction > h4 { margin: 0; }
.diagram-introduction > p { margin-bottom: 0 !important; }
.reading-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(180px,240px); gap: clamp(20px,3.5vw,48px); align-items: start; }
.reading-copy { min-width: 0; container: article-content / inline-size; }
.reading-copy .atlas-section > ul > li { max-width: 78ch; }
body[data-page] .reading-copy p, body[data-page] .reading-copy li { color: var(--survey-ink); font-size: 17px !important; line-height: 1.6 !important; }
body[data-page] .reading-copy :is(.paired-sections,.decision-grid) { grid-template-columns: minmax(0,1fr); }
@container article-content (min-width: 48rem) {
  body[data-page] .reading-copy :is(.paired-sections,.decision-grid):has(> :nth-child(2)) { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
body[data-page] .article-toc { position: sticky; top: 90px; float: none; width: 100%; max-width: none; margin: 0; padding: 8px 0 8px 12px; background: transparent; border: 0; border-left: 1px solid var(--rule); z-index: 2; }
body[data-page] .article-toc:not([open]) { width: 100%; }
body[data-page] .article-toc ol { position: static; display: block; columns: auto; width: auto; max-height: 55vh; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
body[data-page] .article-toc:not([open]) ol { display: none; }
body[data-page] .article-toc li { padding: 0; border: 0; font-size: 13px !important; }
body[data-page] .article-toc a { display: block; min-height: 24px; padding: 4px 8px; color: var(--ink-2); }
body[data-page] .article-toc [aria-current="location"] { color: var(--survey-ink); border-left: 3px solid var(--route-fill); font-weight: 600; }
body[data-page] .article-mode { padding: 12px 0; }
body[data-page] .article-mode button { font-size: 15px; }
.learning-context { scroll-margin-top: 130px; background: var(--card); border: 1px solid var(--rule); padding: 16px; margin-block: 24px; }
.learning-links h2 { font-size: 21px; }
.learning-links a, .reader-pagination a { display: inline-block; min-height: 24px; font-size: 15px; }

body[data-page] .atlas-diagram { background: var(--card); border: 1px solid var(--rule) !important; border-radius: 6px; box-shadow: none; }
.atlas-diagram > figcaption { display: none; }
body[data-page] .atlas-diagram-tools { position: static; z-index: auto; background: var(--card); gap: 6px; border-color: var(--rule); align-items: flex-start; }
body[data-page] .atlas-diagram-tools button { padding: 5px 10px; font-size: 15px; min-height: 36px; }
body[data-page] .atlas-diagram-tools [data-action="next"]:not(:disabled) { min-height: 36px; }
body[data-page] .atlas-diagram-tools [data-action="expand"] { background: var(--card); color: var(--survey-ink); }
.diagram-options { min-height: 36px; max-width: 100%; }
.diagram-options summary, .flow-reading summary { cursor: pointer; padding: 5px 8px; font-size: 15px; min-height: 36px; }
.diagram-options-panel { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px; border: 1px solid var(--control); border-radius: 6px; background: var(--card); }
body[data-page] .diagram-options-panel :is(.component-picker-label,.diagram-help,.canvas-sizing) { background: transparent; color: var(--ink-2); font-size: 13px; }
.diagram-options-panel .component-picker-label { flex-basis: 100%; padding: 0; }
.diagram-options-panel .diagram-help { margin: 0; padding: 0; }
.diagram-options-panel .canvas-sizing { margin-left: 0; }
body[data-page] .diagram-options-panel :is(select,.component-picker) { background: var(--card); color: var(--survey-ink); border-color: var(--control); }
body[data-page] :is(.atlas-stage,.atlas-inspector,.atlas-stage .atlas-inspector) { background: var(--card); color: var(--survey-ink); }
body[data-page] .atlas-stage .atlas-canvas { background-color: var(--card); background-image: radial-gradient(var(--rule) 1px,transparent 1px); background-size: 18px 18px; }
body[data-page] .atlas-diagram.is-expanded .atlas-canvas { touch-action: none; }
body[data-page] .inspector-divider, body[data-page] .canvas-height-grip { background: var(--paper); color: var(--ink-2); border-color: var(--rule); }
body[data-page] .inspector-divider::after { background: var(--control); }
.diagram-current-step { padding: 8px 12px; border-bottom: 1px solid var(--rule); }
.diagram-zoom { color: var(--ink-2); }
body[data-page] .flow-legend { color: var(--ink-2); margin-block: 8px; }
.flow-reading { padding: 8px 12px; border-top: 1px solid var(--rule); }
.flow-reading > summary { scroll-margin-top: 126px; }
.flow-reading .atlas-flow-list { margin: 8px 0; display: grid; gap: 6px; }
body[data-page] .flow-step { width: 100%; text-align: left; background: var(--card); padding: 8px; border-color: var(--control); font-size: 15px; }
body[data-page] .flow-step small { font: 13px/1.4 var(--mono); color: inherit; }
body[data-page] .flow-step[aria-pressed="true"] :is(small,.flow-number) { color: inherit; }
.is-expanded .flow-reading { display: none; }
body[data-page] .is-expanded .atlas-diagram-tools { z-index: 2; }
body[data-page] .semantic-hld .node .node-outline { stroke: #5e6776; }
body[data-page] .semantic-hld .node .node-detail, body[data-page] .semantic-hld .node .queue-message { stroke: #5e6776; fill: none; }
body[data-page] .semantic-hld .node .node-back { stroke: #5e6776; fill: var(--node-fill); }
body[data-page] .semantic-hld .node text, body[data-page] .semantic-hld .edge text { font-family: var(--sans); }
body[data-page] .semantic-hld .node .node-family { font-family: var(--mono); fill: var(--ink-2); }
body[data-page] .semantic-hld .node:is(:hover,:focus,.is-selected) .node-outline { stroke: var(--survey-ink); stroke-width: 3; }
body[data-page] .semantic-hld .edge .edge-line { stroke: var(--survey-ink); stroke-width: 1.5; }
body[data-page] .semantic-hld .edge .edge-arrow { fill: var(--survey-ink); stroke: var(--survey-ink); }
body[data-page] .semantic-hld .edge .edge-label-bg { fill: var(--card); stroke: var(--rule); }
body[data-page] .semantic-hld .edge text { fill: var(--survey-ink); }
body[data-page] .semantic-hld .edge[data-mode="async"] .edge-line { stroke: var(--ink-2); stroke-dasharray: 6 4; }
body[data-page] .semantic-hld .edge:is([data-mode="recovery"],.is-recovery-route) .edge-line { stroke: var(--recovery); stroke-width: 2.5; stroke-dasharray: 2 5; stroke-linecap: round; }
body[data-page] .semantic-hld .edge:is([data-mode="recovery"],.is-recovery-route) .edge-arrow { stroke: var(--recovery); fill: var(--recovery); }
body[data-page] .semantic-hld .edge.is-active .edge-line { stroke: var(--route-fill); stroke-width: 2.5; stroke-dasharray: none; }
body[data-page] .semantic-hld .edge.is-active .edge-arrow { stroke: var(--route); fill: var(--route); }
body[data-page] .semantic-hld .edge.is-active text { fill: var(--route); }
body[data-page] .semantic-hld .edge.is-active .edge-label-bg { fill: var(--card); stroke: var(--route); }
body[data-page] .semantic-hld .edge.is-recovery-route .edge-line { stroke: var(--recovery); stroke-dasharray: 2 5; }
body[data-page] .semantic-hld .edge.is-recovery-route .edge-arrow { stroke: var(--recovery); fill: var(--recovery); }
body[data-page] .semantic-hld .edge.is-recovery-route { opacity: 1; }
body[data-page] .semantic-hld .flow-dot { fill: var(--route); filter: none; }
body[data-page] .semantic-hld .node:is(.is-fault,.sim-error,.sim-backlog) .node-outline { fill: url(#survey-hatch); stroke: var(--hazard) !important; stroke-width: 2.5; }
body[data-page] .semantic-hld .node .fault-stamp { display: none; fill: var(--hazard); font: 700 13px var(--mono); }
body[data-page] .semantic-hld .node.is-fault .fault-stamp { display: block; }
body[data-page] .atlas-diagram.fault-injected .node.is-fault { opacity: 1; }
.fault-recovery { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); padding: 12px; gap: 8px; }
.fault-note, .recovery-note { border: 1px solid var(--hazard); padding: 10px; border-radius: 6px; background: var(--card); }
.fault-note strong { color: var(--hazard); }
.recovery-note { border: 2px dotted var(--recovery); }
.recovery-note strong { color: var(--recovery); }
body[data-page] .fault-recovery p { margin: 4px 0 !important; font-size: 15px !important; }
body[data-page] .atlas-diagram-tools .inject-fault[aria-pressed="true"] { border: 2px solid var(--hazard); color: var(--hazard); background: var(--card); }
body[data-page] :is(.mental-model,.spoken-summary,.production-case,.decision-card,.recall-card,.recall-grid details,.lab-exercises details,.control-room,.control-room-disclosure,.node-tooltip,.term-bubble,.simulation-metrics>div,.map-inspector,.reference-card) {
  background: var(--card); color: var(--survey-ink); border-color: var(--rule); box-shadow: none;
}
body[data-page] .production-case { border-left: 4px solid var(--hazard); }
body[data-page] .control-room-disclosure > summary, body[data-page] .expanded-decision details > summary,
body[data-page] .telemetry-card h4, body[data-page] .telemetry-card h5, body[data-page] .decision-card h5,
body[data-page] .simulation-metrics :is(dt,dd), body[data-page] .simulation-controls label,
body[data-page] :is(.model-assumptions,.model-event,.telemetry-live,.queue-meter,.map-link-reason) { color: var(--ink-2); }
body[data-page] .decision-card::before { color: var(--ink-2); }
body[data-page] .reference-card h3 a { color: var(--route); }
body[data-page] :is(.atlas-table th,.atlas-table td) { background: var(--card) !important; color: var(--survey-ink) !important; font: 15px/1.5 var(--sans); }
body[data-page] .atlas-table th { background: var(--paper) !important; }
.reading-copy code { font-family: var(--mono); }
body[data-page] .api-table :is(.api-method, .api-status, .api-contract) {
  font-family: var(--mono);
  color: var(--survey-ink);
  background: var(--paper);
}
.table-scroll-hint { display: none; }
.recall-card { padding: 12px; border: 1px solid var(--rule); border-radius: 6px; }
body[data-page] .recall-card > p { font-size: 21px !important; }
.recall-card summary, .drill-answer summary, .drill-reference summary { min-height: 32px; cursor: pointer; font-weight: 600; }
.review-actions { margin-top: 24px; }
.review-actions button, .drill-work button { min-height: 44px; padding: 8px 12px; }
[data-category="drills"] .topic-head { border-top: 6px solid var(--hazard); padding-top: 12px; background: repeating-linear-gradient(135deg,#fbede6 0 5px,#eac5b5 5px 7px) top right / 84px 12px no-repeat; }
.drill-work label { display: block; margin-top: 12px; }
.drill-work textarea { display: block; width: 100%; padding: 8px; }
.drill-work output { margin-left: 10px; font-family: var(--mono); }
.drill-answer, .drill-reference { padding: 10px 12px; margin: 8px 0; border: 1px solid var(--rule); border-radius: 6px; background: var(--card); }
body[data-page] .map-node { color: var(--survey-ink); border-color: var(--control); background: var(--card); }
body[data-page] .map-node strong, body[data-page] .map-node > span:first-child { color: inherit; font-size: 13px; }
body[data-page] .map-node.is-complete > span:first-child { color: inherit; }
body[data-page] .map-node[aria-pressed="true"]::before { content: "⊕"; color: var(--route-fill); font-size: 17px; }
body[data-page] #map-connections path { stroke: var(--control); }
body[data-page] #map-connections path.is-highlighted { stroke: var(--route); }
.survey-defs { position: absolute; }
.topology-glyph { width: 64px; height: 44px; object-fit: contain; }
.topic-row .topology-glyph { grid-column: 2; grid-row: 1; }
body[data-page] .topic-row:has(.topology-glyph) { grid-template-columns: 24px 64px minmax(0,1fr) 18px; }
.topic-row:has(.topology-glyph) .row-copy { grid-column: 3; grid-row: 1; }
.topic-row:has(.topology-glyph) .row-kind { grid-column: 3; }
.topic-row:has(.topology-glyph) .row-arrow { grid-column: 4; }
.map-node .topology-glyph { width: 36px; height: 28px; align-self: center; }
.you-are-here { display: inline-block; color: var(--route); font-size: 13px; }
.outline-leads { margin-top: 18px; }
.margin-map { display: none; }
@media (min-width: 1280px) {
  .margin-map { display: block; margin-top: 12px; padding: 8px; background: var(--card); border: 1px solid var(--rule); border-radius: 6px; }
  .margin-map svg { display: block; width: 100%; height: auto; max-height: 128px; }
}
body[data-page] .outline-leads h2 { font-size: 15px; }
body[data-page] .outline-leads a { color: var(--route); }
body[data-page] .practice-tracker > span:first-child, #saved-count, #result-count, .type-select > span, .page-footer, .reference-disclaimer, .map-footnote { color: var(--ink-2); font-size: 13px; }
body[data-page] .atlas-diagram-tools [data-action="expand"] { border-color: var(--control); }
body[data-page] .architecture-legend [data-diagram-family] i { background: var(--family-fill); border: 1px solid #5e6776; }
body[data-page] .architecture-legend [data-diagram-family="state"] i { border-radius: 50% / 25%; }
body[data-page] .architecture-legend [data-diagram-family="messaging"] i { box-shadow: 2px 2px 0 -1px var(--card),3px 3px 0 -1px #5e6776; }
body[data-page] .flow-legend { font-size: 13px !important; gap: 6px 14px; }
body[data-page] .flow-legend span:nth-child(3) { color: var(--recovery); }
body[data-page] .flow-legend .fault-legend { color: var(--hazard); }
body[data-page] .semantic-hld .node.is-fault .node-family { visibility: hidden; }
body[data-page] .semantic-hld.is-tracing .edge:not(.is-active),
body[data-page] .semantic-hld.is-tracing .node:not(.is-active):not(.is-selected) { opacity: 1; }
body[data-page] .atlas-section[id$="-failures"] td:first-child::before {
  content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 6px;
  border: 1px solid var(--hazard); background: repeating-linear-gradient(135deg,transparent 0 2px,var(--hazard) 2px 3px);
}
body[data-page] .atlas-section[id$="-failures"] td[data-label*="tradeoff"] { font-family: var(--judgment); font-style: italic; }
body[data-page] .review-actions p { font-size: 15px !important; }
.mobile-route { display: none !important; }
.topic-updated { color: var(--ink-2); font-size: 13px; }
#progress-tools { margin-block: 16px 24px; }
#progress-tools > summary { cursor: pointer; color: var(--route); min-height: 24px; }
.release-index { max-width: 68ch; }
.release-index td, .release-index th { padding: 8px; border-bottom: 1px solid var(--rule); text-align: left; }

@media (max-width: 1100px) {
  .reading-layout { display: flex; flex-direction: column; gap: 8px; }
  .reading-copy { width: 100%; }
  body[data-page] .article-toc { order: -1; position: static; padding: 4px 12px; border: 1px solid var(--rule); background: var(--card); border-radius: 6px; }
}
@media (max-width: 760px) {
  body[data-page] main { padding: 20px 12px 0; }
  body[data-page] .topbar { padding-inline: 12px; }
  body[data-page] .global-search { width: 100%; }
  #search-panel { position: fixed; inset: 112px 0 0; max-height: none; width: 100%; border-radius: 0; }
  body[data-page] .sidebar { top: auto; bottom: 0; width: 100%; max-height: 75dvh; transform: translateY(100%); border: 1px solid var(--control); border-radius: 12px 12px 0 0; }
  body.menu-open .sidebar { transform: translateY(0); }
  body[data-page] .atlas-diagram:not(.is-expanded) { display: flex; flex-direction: column; }
  .atlas-diagram:not(.is-expanded) > .atlas-stage { order: -2; }
  .atlas-diagram:not(.is-expanded) > .architecture-legend { order: -1; padding-block: 6px !important; }
  .atlas-diagram:not(.is-expanded) > .canvas-height-grip { display: none; }
  body[data-page] .atlas-diagram-tools button { min-height: 40px; padding: 4px 7px; }
  body[data-page] .atlas-diagram-tools [data-action="next"]:not(:disabled) { min-height: 44px; }
  .atlas-diagram:not(.is-expanded) > .atlas-diagram-tools { order: -1; }
  .atlas-diagram:not(.is-expanded) > .architecture-legend { order: 0; }
  body[data-page] .topic-meta .practice-tracker > span:first-child { display: none; }
  body[data-page] .topic-head .topic-thesis { font-size: 21px; margin-bottom: 12px; line-height: 1.35; }
  body[data-page] .topic-head { margin-bottom: 16px; padding-bottom: 12px; }
  body[data-page] .architecture-legend li { font-size: 13px !important; }
  body[data-page] .article-toc { position: sticky; top: 112px; z-index: 5; }
  body[data-page] .article-toc[open] ol { max-height: 48dvh; }
  .mobile-route { display: flex !important; }
  .fault-recovery { grid-template-columns: 1fr; }
  .table-scroll-hint { display: block; color: var(--ink-2); font-size: 13px; margin-top: 8px; }
  body[data-page] .map-layout { display: flex; flex-direction: column; }
  body[data-page] .map-board, body[data-page] .map-inspector { width: 100%; }
}
@media print {
  body[data-page] :is(.topbar,.sidebar,.topic-meta,.topic-utilities,.topic-hero,.article-toc,.article-mode,.review-actions,.reader-pagination,.learning-context,.page-footer,.topic-references) { display: none !important; }
  body[data-page] .reading-layout { display: block; }
  body[data-page] .topic-head { margin: 0 0 8pt; }
  .print-revision .reading-copy > :not([id$="-summary"]):not([id$="-recall"]) { display: none !important; }
  .print-revision .reading-copy section { padding: 6pt 0; }
  .print-revision .recall-card details { display: none !important; }
  .print-revision .recall-card { padding: 0 0 3pt; border: none; }
  body.print-revision .reading-copy p { font-size: 11pt !important; line-height: 1.4 !important; }
  body.print-revision .topic-head h1 { font-size: 22pt; }
}

/* Opt-in lesson layout. Other topics keep their existing learning modes. */
@media screen {
  .learning-article:not(.revision-mode) .lesson-rehearsal,
  .learning-article.revision-mode .lesson-reading { display: none; }
}
.journey-picker { display:flex; flex-wrap:wrap; gap:.5rem; margin:.65rem 0; }
.journey-picker button { min-height:40px; padding:.4rem .85rem; border:1px solid var(--control); border-radius:6px; font:inherit; background:var(--card); color:var(--survey-ink); cursor:pointer; }
.journey-picker button[aria-pressed=true] { border-color:var(--route); box-shadow:inset 0 -3px var(--route); }
.lesson-reading .flow-reading h5 { margin:1rem 0 .4rem; font-size:1rem; }
.lesson-reading .decision-card { align-self:start; }
@media print {
  body.print-revision .reading-copy > :is(.lesson-reading,.lesson-rehearsal),
  body.print-revision .lesson-reading > [id$="-summary"] { display:block !important; }
  body.print-revision .lesson-reading > :not([id$="-summary"]),
  body.print-revision .lesson-rehearsal .review-actions { display:none !important; }
}

.interview-question { font-weight:650; margin-bottom:.6rem; }
.interview-moves { margin:.6rem 0; border-inline-start:3px solid var(--route); padding-inline-start:1rem; }
.interview-moves div { display:grid; grid-template-columns:4.5rem minmax(0,1fr); gap:.6rem; padding:.35rem 0; }
.interview-moves dt { font-weight:650; }
.interview-moves dd { margin:0; max-width:65ch; line-height:1.5; }
.interview-signal { color:var(--survey-ink); }
.interview-followup summary { cursor:pointer; color:var(--route); padding:.45rem 0; }

.diagram-question summary { cursor: pointer; font-weight: 600; }
.diagram-question p { max-inline-size: 68ch; }
.diagram-question { margin: .5rem 1rem; padding: .65rem 1rem; border-inline-start: 3px solid var(--route); }
.atlas-diagram:has(.diagram-question[open]) [data-node="cache"] { outline: 2px dashed currentColor; outline-offset: 2px; }

.atlas-diagram .edge.route-blocked { opacity: .16 !important; }
.atlas-diagram .route-blocked .flow-dot { display: none !important; }
.atlas-diagram .flow-step:disabled { opacity: .5; }
.atlas-diagram .route-outcome { max-width: 75ch; margin-inline: 1rem; }
.atlas-diagram .route-outcome:empty { display: none; }

.bucket-lab { border: 1px solid var(--rule); border-inline-start: 3px solid var(--route); padding: clamp(1rem,2vw,1.6rem); margin-block: 1rem; border-radius: .6rem; background: var(--card); }

.bucket-lab header,.bucket-actions,.bucket-metrics { display:flex; align-items:center; gap:.6rem; flex-wrap:wrap; }
.bucket-lab header { justify-content:space-between; }
.bucket-lab header h3 { margin:0; }
.bucket-console { display:grid; grid-template-columns: minmax(0,2fr) minmax(0,3fr); gap:1.2rem; margin:1rem 0; }
.bucket-console label { display:block; margin-bottom:.75rem; font-weight:600; }
.bucket-console :is(select,input) { display:block; width:100%; box-sizing:border-box; }
.bucket-lab :is(button,select) { font:inherit; color:inherit; background:var(--card); border:1px solid currentColor; border-radius:.4rem; padding:.4rem .65rem; cursor:pointer; }
.bucket-lab [data-burst] { background:#18564d; color:#fff; }
.bucket-actions { margin-bottom:.75rem; }
.bucket-dashboard { padding:1rem; border-radius:.6rem; background:#172e32; color:#fff4dc; }
.bucket-dashboard strong,.bucket-dashboard dt,.bucket-dashboard dd { color:inherit; }
.token-tray { display:flex; flex-wrap:wrap; gap:.35rem; margin:.4rem 0 .7rem; }
.token-tray .token { width:1.35rem; height:1.35rem; border:1px dashed #aac0bb; border-radius:50%; }
.token-tray .filled { background:#f6bf67; border:1px solid #ffdb9e; }
.bucket-metrics { justify-content:space-between; border-block:1px solid #647b78; padding:.6rem 0; }
.bucket-metrics dd { margin:0; font:700 1.45rem monospace; }
.bucket-dashboard [data-history] { display:flex; flex-wrap:wrap; gap:.35rem; margin-top:.4rem; }
.bucket-dashboard [data-history] span { border:1px solid currentColor; padding:.15rem .3rem; border-radius:.3rem; font: .85rem monospace; }
.bucket-dashboard .admitted { color:#a4ecd6; }
.bucket-dashboard .limited { color:#ffbcaa; }
@media(max-width:720px){ .bucket-console {grid-template-columns:1fr;} }

.bucket-lab [data-compare] { margin-block-start:1rem; padding-block-start:.75rem; border-block-start:1px solid var(--rule); }
.bucket-lab [data-compare] summary { cursor:pointer; font-weight:650; }

.summary-practice {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,21rem),1fr));gap:1rem;align-items:start}
.summary-practice > section {min-width:0}
.decision-quiz fieldset {margin:.6rem 0;padding:0;border:0}
.decision-quiz legend {font-weight:650;margin-bottom:.5rem}
.decision-quiz label {display:flex;align-items:center;gap:.6rem;padding:.55rem .65rem;border:1px solid var(--rule);border-radius:.35rem;margin-bottom:.35rem;cursor:pointer}
.decision-quiz label:has(select) {flex-wrap:wrap;justify-content:space-between}
.decision-quiz :is(button,select) {font:inherit;color:inherit;background:var(--card);border:1px solid currentColor;border-radius:.35rem;padding:.35rem .55rem}
.quiz-feedback:empty {display:none}

.decision-quiz .quiz-step {display:block;width:100%;margin-bottom:.35rem;text-align:start}
.decision-quiz input[type=number] {max-width:7rem;font:inherit}

.account-controls { position: relative; display: flex; align-items: center; gap: .6rem; flex: none; }
.account-sign-in { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: .45rem 1rem; border-radius: 6px; background: #17191c; color: #fff !important; border: 1px solid #17191c; font-weight: 600; text-decoration: none !important; white-space: nowrap; }
.account-sign-in:hover { background: #30343a; }
.account-sign-in[aria-disabled="true"] { opacity: .72; }
.account-sign-in[hidden] { display: none; }
#atlas-account { position: relative; flex: none; }
#atlas-account[hidden] { display: none; }
#atlas-account summary { display: flex; align-items: center; gap: .5rem; cursor: pointer; color: var(--survey-ink); min-height: 42px; padding: .25rem .65rem .25rem .3rem; border: 1px solid var(--rule); border-radius: 999px; list-style: none; }
#atlas-account summary::-webkit-details-marker { display: none; }
.account-avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #d98121; color: white; font-weight: 700; }
.account-trigger-label { max-width: 12rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-panel { position: absolute; z-index: 35; top: calc(100% + .5rem); inset-inline-end: 0; width: min(19rem, 90vw); padding: 1rem; background: var(--card); border: 1px solid var(--control); border-radius: 8px; box-shadow: 0 10px 32px #1c243022; }
.account-panel p { margin: 0 0 .75rem; overflow-wrap: anywhere; }
.account-panel a { display: inline-flex; padding: .45rem 0; font-weight: 650; }
.account-panel small { display: block; margin-top: .6rem; color: var(--ink-2); }
@media (max-width: 760px) {
  .account-controls { gap: .35rem; }
  .account-sign-in { min-height: 38px; padding-inline: .7rem; }
  #atlas-account summary { min-height: 38px; }
  .account-trigger-label { display: none; }
  #atlas-account .account-panel { position: fixed; inset: 4rem .75rem auto auto; }
}
/* Account, sign-in, and Your Desk — matched to the supplied prototype. */
.account-controls{display:flex;align-items:center;gap:.55rem;flex:none}
.account-sign-in{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;min-height:40px;padding:.45rem 1rem;border:1px solid #18181b;border-radius:8px;background:#18181b;color:#fff!important;font:600 14px/1.3 var(--sans);text-decoration:none!important;white-space:nowrap}
.account-sign-in:hover{background:#30343a}
.account-user-pill{display:inline-flex;align-items:center;gap:.65rem;min-height:44px;padding:.25rem .65rem .25rem .3rem;border:1px solid var(--rule);border-radius:999px;background:var(--card);color:var(--survey-ink);text-align:left}
.account-user-pill[hidden]{display:none}
.account-avatar{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#d97706;color:#fff;font-size:12px;font-weight:700}
.account-trigger-copy{display:grid;line-height:1.25}
.account-trigger-copy strong{font-size:13px;font-weight:600}
.account-trigger-copy small{font:10px var(--mono);color:var(--ink-2)}
.account-chevron{color:var(--ink-2)}
.guest-sync-banner,.logged-in-desk-strip{max-width:1480px;margin:0 auto 1.2rem;padding:1rem 1.2rem;border:1px solid var(--rule);border-radius:12px;background:var(--card);display:flex;align-items:center;justify-content:space-between;gap:1rem}
.guest-sync-banner>div,.logged-in-desk-strip>div:first-child{display:grid;gap:.3rem}
.guest-sync-banner strong,.logged-in-desk-strip strong{font-size:15px}
.guest-sync-banner p{margin:0;color:var(--ink-2);font-size:14px;max-width:75ch}
.guest-signin,.desk-primary{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;padding:.62rem 1rem;border:1px solid #b45309;border-radius:8px;background:#d97706;color:#fff!important;font:600 14px var(--sans);white-space:nowrap}
.guest-signin:hover,.desk-primary:hover{background:#b45309}
.logged-in-desk-strip{min-height:76px}
.desk-strip-actions{display:flex;gap:.6rem;align-items:center}
.desk-strip-actions button{padding:.55rem .85rem;font-size:13px}
.profile-page{max-width:1480px!important;margin-inline:auto;padding:1.2rem 0 3rem}
.profile-heading{display:flex;align-items:center;justify-content:space-between;gap:1.5rem;padding-bottom:1.3rem;border-bottom:1px solid var(--rule);margin-bottom:1.8rem}
.profile-breadcrumb{display:flex;align-items:center;gap:.5rem;margin-bottom:.35rem;color:var(--ink-2);font:12px var(--mono)}
.profile-breadcrumb button{padding:0;border:0;background:none;color:var(--ink-2);font:inherit}
.profile-breadcrumb strong{color:var(--survey-ink);font-weight:600}
.profile-heading h1{margin:0;font-size:34px!important;font-weight:650!important}
.profile-heading p{margin:.4rem 0 0;color:var(--ink-2);font-size:16px}
.profile-heading-actions{display:flex;align-items:center;gap:.6rem}
.profile-heading-actions>button{padding:.5rem .9rem}
.profile-sync-status{padding:.45rem .75rem;border:1px solid #a7d8c7;border-radius:8px;background:#edf8f3;color:#047857;font:12px var(--mono)}
.profile-grid{display:grid;grid-template-columns:minmax(260px,4fr) minmax(420px,8fr);gap:1.4rem;align-items:start}
.profile-left,.profile-right{display:grid;gap:1.4rem;min-width:0}
.profile-card{min-width:0;padding:1.35rem 1.5rem;border:1px solid var(--rule);border-radius:14px;background:var(--card);color:var(--survey-ink)}
.profile-card-kicker{display:flex;align-items:center;justify-content:space-between;color:var(--ink-2);font:11px var(--mono);letter-spacing:.08em;text-transform:uppercase}
#profile-save-status{color:#b45309;letter-spacing:0;text-transform:none}
.avatar-choice-row{display:flex;align-items:center;gap:1rem;margin:1.25rem 0}
.profile-avatar-preview{display:grid;place-items:center;width:64px;height:64px;border-radius:16px;background:#d97706;color:white;font-size:22px;font-weight:700}
.field-label,.profile-field>span,.profile-field legend{display:block;margin-bottom:.42rem;font-size:13px;font-weight:550}
.accent-choices{display:flex;gap:.7rem}
.accent-choices button{width:30px;min-height:30px;padding:0;border:2px solid transparent;border-radius:50%}
.accent-choices button[aria-pressed=true]{outline:2px solid var(--route-fill);outline-offset:2px}
.accent-choices [data-accent=amber]{background:#d97706}.accent-choices [data-accent=blue]{background:#5558ee}.accent-choices [data-accent=green]{background:#059669}.accent-choices [data-accent=charcoal]{background:#27272a}
.profile-field{display:block;margin-top:1rem;border:0;padding:0}
.profile-field>span,.profile-field legend{display:flex;justify-content:space-between;gap:.5rem}
.profile-field>span small{color:#4f46e5;font:11px var(--mono)}
.profile-field input,.profile-field select{width:100%;min-height:42px;padding:.55rem .75rem;border:1px solid var(--rule);border-radius:8px;background:var(--paper);color:var(--survey-ink);font:15px var(--sans)}
.profile-readonly{display:flex;justify-content:space-between;gap:.6rem;min-height:42px;padding:.55rem .75rem;border:1px solid var(--rule);border-radius:8px;background:var(--paper);font:13px var(--mono);overflow-wrap:anywhere}
.profile-readonly small{color:#059669}
.focus-tracks{display:flex;flex-wrap:wrap;gap:.4rem}
.focus-tracks label{display:inline-flex;align-items:center;gap:.35rem;padding:.4rem .55rem;border:1px solid var(--rule);border-radius:7px;background:var(--paper);font-size:12px;cursor:pointer}
.focus-tracks input{accent-color:#d97706}
.provider-row{display:grid;grid-template-columns:34px 1fr auto;align-items:center;gap:.7rem;padding:.9rem 0;border-bottom:1px solid var(--rule)}
.provider-mark{display:grid;place-items:center;width:34px;height:34px;border-radius:9px;background:#18181b;color:white;font-weight:700}
.provider-mark.google-mark{border:1px solid var(--rule);background:var(--card);color:#4285f4}
.provider-row>div{display:grid;gap:.15rem}.provider-row strong{font-size:14px}.provider-row small{color:var(--ink-2);font:11px var(--mono)}
.provider-state{padding:.3rem .5rem;border:1px solid #a7d8c7;border-radius:6px;background:#edf8f3;color:#047857;font:11px var(--mono)}
.session-summary{display:grid;gap:.4rem;padding-top:.9rem;color:var(--ink-2);font-size:13px}.session-summary strong{color:var(--survey-ink)}.session-summary small{font:11px/1.5 var(--mono)}
.profile-section-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1.25rem}
.profile-section-heading h2{margin:.35rem 0 0;font-size:22px!important;font-weight:600!important}
.profile-section-heading>span{color:var(--ink-2);font-size:13px}
.coverage-badge{padding:.4rem .6rem;border:1px solid var(--rule);border-radius:6px;background:var(--paper);color:var(--survey-ink)!important;font:12px var(--mono)}
.telemetry-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.8rem}
.telemetry-kpis>div{display:grid;gap:.35rem;padding:.8rem;border:1px solid var(--rule);border-radius:10px;background:var(--paper)}
.telemetry-kpis>div>span{color:var(--ink-2);font:11px var(--mono)}
.telemetry-kpis strong{font:600 22px var(--mono)}.telemetry-kpis strong small{font:12px var(--mono);font-weight:400}
.telemetry-kpis i,.difficulty-row i{height:7px;overflow:hidden;border-radius:99px;background:#e5e2dc}.telemetry-kpis i b,.difficulty-row i b{display:block;height:100%;width:0;border-radius:inherit;background:#e9a32a}
.telemetry-kpis>div:nth-child(2) i b{background:#5558ee}.telemetry-kpis>div:nth-child(3) i b{background:#059669}.telemetry-kpis>div:nth-child(4)>small{font:11px var(--mono);color:var(--ink-2)}
.difficulty-progress{display:grid;gap:.8rem;margin-top:1.25rem;padding-top:1.1rem;border-top:1px solid var(--rule)}
.difficulty-row{display:grid;grid-template-columns:1fr auto;gap:.4rem .8rem;align-items:center;font-size:13px}.difficulty-row i{grid-column:1/-1}.difficulty-row span:last-of-type{font:12px var(--mono);color:var(--ink-2)}.difficulty-row:nth-child(2) i b{background:#e9a32a}.difficulty-row:nth-child(3) i b{background:#5558ee}
.recall-list{border:1px solid var(--rule);border-radius:9px;overflow:hidden}.recall-item{display:flex;align-items:center;justify-content:space-between;gap:.8rem;padding:.9rem 1rem;border-bottom:1px solid var(--rule)}.recall-item:last-child{border-bottom:0}.recall-title{display:flex;gap:.55rem;align-items:center}.recall-title small,.recall-meta{font:11px var(--mono);color:var(--ink-2)}.recall-meta{margin:.2rem 0 0}.recall-controls{display:flex;gap:.6rem;align-items:center;flex:none}.confidence-stars button{min-height:auto;padding:.2rem;color:#e9a32a;border:0;background:none}.confidence-stars button:hover{background:none}.empty-recall{display:none;padding:1.2rem;color:var(--ink-2);font-size:14px}.empty-recall.visible{display:block}
.cloud-note{display:grid;grid-template-columns:1fr auto;gap:.25rem .8rem;align-items:center;padding:1rem;border:1px solid #cbd5ff;border-radius:9px;background:#f5f6ff}.cloud-note strong{font-size:14px}.cloud-note span{color:var(--ink-2);font-size:13px}.cloud-note button{grid-column:2;grid-row:1/3;color:#4f46e5;border-color:#cbd5ff}
.portability-actions{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap;margin-top:1rem}.portability-actions button{padding:.6rem .8rem;font-size:13px}.portability-actions #desk-export{background:#18181b;color:white}.portability-actions #desk-reset-local{margin-left:auto;border:0;background:none;color:var(--ink-2);font:11px var(--mono)}#desk-json-preview{margin-top:.8rem;padding:1rem;border-radius:8px;background:#18181b;color:#fff;white-space:pre-wrap;overflow:auto;font:11px/1.5 var(--mono)}#profile-action-status{margin:.5rem 0 0;color:var(--ink-2);font-size:12px}
.signin-modal{width:min(100% - 2rem,460px);max-width:460px;padding:0;border:1px solid var(--rule);border-radius:18px;background:var(--card);color:var(--survey-ink);box-shadow:0 24px 80px #0004}
.signin-modal::backdrop{background:#0008;backdrop-filter:blur(3px)}.signin-card{position:relative;padding:2rem}.signin-close{position:absolute;right:1rem;top:1rem;width:34px;min-height:34px;padding:0;border:0;background:transparent;font-size:24px;color:var(--ink-2)}
.signin-eyebrow{display:inline-flex;gap:.45rem;padding:.25rem .6rem;border:1px solid #f3d4a4;border-radius:5px;background:#fff5e8;color:#9a5200;font:11px var(--mono);text-transform:uppercase;letter-spacing:.06em}
.signin-card h2{margin:1rem 0 .5rem;font-size:24px!important}.signin-card>p{color:var(--ink-2);font-size:14px;line-height:1.55}.signin-providers{display:grid;gap:.65rem;margin:1.4rem 0 .6rem}.signin-providers a,.signin-providers button{display:flex;align-items:center;justify-content:center;min-height:46px;padding:.7rem;border:1px solid var(--rule);border-radius:10px;font:600 14px var(--sans);text-decoration:none}.signin-providers a{background:#18181b;color:#fff!important}.signin-providers button{background:var(--card);color:var(--survey-ink)}.signin-providers button:disabled{opacity:.62;cursor:not-allowed}.signin-card>small{display:block;color:var(--ink-2);font-size:12px}.signin-footer{margin-top:1.2rem;padding-top:1rem;border-top:1px solid var(--rule);color:var(--ink-2);font-size:12px}
#desk-drawer-backdrop{position:fixed;inset:0;z-index:45;background:#0006;backdrop-filter:blur(1px)}#desk-drawer{position:fixed;top:0;right:0;bottom:0;z-index:46;width:min(100%,440px);display:flex;flex-direction:column;background:var(--card);border-left:1px solid var(--rule);box-shadow:-12px 0 40px #0002;transform:translateX(105%);transition:transform .25s ease}#desk-drawer.open{transform:translateX(0)}.drawer-heading{display:flex;align-items:center;gap:.8rem;padding:1.2rem;border-bottom:1px solid var(--rule)}.drawer-heading>div:nth-child(2){display:grid;gap:.2rem;min-width:0}.drawer-heading>div:nth-child(2) strong{font-size:15px}.drawer-heading>div:nth-child(2) small{color:var(--ink-2);font:11px var(--mono)}.drawer-heading>button:last-child{margin-left:auto;padding:.3rem .6rem;border:0;background:none;font-size:23px}.drawer-avatar{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:#d97706;color:white;font-weight:700}.drawer-content{display:grid;align-content:start;gap:1.25rem;overflow-y:auto;padding:1.25rem}.drawer-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:.6rem}.drawer-metrics>div{display:grid;gap:.2rem;padding:.8rem;border:1px solid var(--rule);border-radius:9px;background:var(--paper)}.drawer-metrics strong{font:600 16px var(--mono)}.drawer-metrics small{font-size:12px;color:var(--ink-2)}#drawer-revisits{display:grid;gap:.5rem;margin-top:.6rem}.drawer-revisit{display:flex;justify-content:space-between;gap:.6rem;padding:.75rem;border:1px solid var(--rule);border-radius:8px;font-size:13px}.drawer-content>.desk-primary{width:100%;margin-top:.5rem}.drawer-content>#drawer-sign-out{background:none;border:0;color:#b91c1c}
html.atlas-dark body[data-page]{--paper:#121316;--card:#1a1c20;--rule:#2e323a;--survey-ink:#f4f4f5;--ink-2:#a1a1aa;--control:#4a4f59;--route:#f59e0b;--route-fill:#f59e0b;background:var(--paper);color:var(--survey-ink)}html.atlas-dark .profile-readonly,html.atlas-dark .profile-field input,html.atlas-dark .profile-field select,html.atlas-dark .telemetry-kpis>div,html.atlas-dark .drawer-metrics>div,html.atlas-dark .coverage-badge{background:#22252a;color:var(--survey-ink)}html.atlas-dark .signin-eyebrow{background:#2c2419;border-color:#5e411b;color:#f59e0b}html.atlas-dark .cloud-note{background:#1b2131;border-color:#394564}html.atlas-dark .guest-signin,html.atlas-dark .desk-primary{background:#d97706;color:#fff!important}
@media(max-width:980px){.profile-grid{grid-template-columns:minmax(220px,4fr) minmax(340px,8fr)}.telemetry-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-section-heading{align-items:flex-start;flex-direction:column}}
@media(max-width:760px){.profile-page{padding:1rem 0 2rem}.profile-heading{align-items:flex-start;flex-direction:column}.profile-heading-actions{width:100%;justify-content:space-between}.profile-grid{grid-template-columns:1fr}.guest-sync-banner,.logged-in-desk-strip{align-items:stretch;flex-direction:column}.guest-signin{width:100%}.desk-strip-actions{flex-wrap:wrap}.desk-strip-actions button{flex:1}.profile-card{padding:1.1rem}.telemetry-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-section-heading>span{font-size:12px}.recall-item{align-items:flex-start;flex-direction:column}.recall-controls{width:100%;justify-content:flex-end}.cloud-note{grid-template-columns:1fr}.cloud-note button{grid-column:auto;grid-row:auto;justify-self:start}.portability-actions #desk-reset-local{margin-left:0}.account-trigger-copy small{display:none}}
@media(prefers-reduced-motion:reduce){#desk-drawer{transition:none}}

body[data-page] #drawer-open-profile, body[data-page] #atlas-open-login {background:#18181b;color:#fff;border-color:#18181b}
body[data-page] .guest-signin {background:#a85208;color:#fff;border-color:#a85208}
body[data-page] .account-avatar, body[data-page] .profile-avatar-preview {background:var(--desk-accent,#bd6912)}
body[data-page] .profile-field .focus-tracks input {width:1em;height:1em;min-height:0;margin:0;padding:0;accent-color:#944507}
body[data-page] .focus-tracks label {background:#faf9f6;color:#302e2c;border-color:#bfbab1}
body[data-page] .focus-tracks label:has(:checked) {background:#fff0dc;color:#783807;border-color:#bd772c}
body[data-page] .accent-choices button {background:var(--swatch);border:1px solid #0003}
[data-accent=amber]{--swatch:#d77e1f}[data-accent=blue]{--swatch:#5752e9}[data-accent=green]{--swatch:#10966f}[data-accent=charcoal]{--swatch:#25272b}
.recall-meta {display:block}.recall-item>div:first-child {min-width:0}
.recall-controls {flex-wrap:wrap}.recall-controls button {min-height:32px;font-size:13px}
body[data-page] .confidence-stars button {min-height:32px;padding-inline:.25rem;color:#985000}
#empty-recall:not([hidden]){display:block}
#drawer-revisits a {color:var(--survey-ink);background:var(--card)}
@media(max-width:1100px){.recall-item{align-items:flex-start;flex-direction:column}}
body[data-page] #open-full-desk {background:#18181b;color:white!important;border-color:#18181b}
body[data-page] .accent-choices button[data-accent][aria-pressed] {background:var(--swatch)!important}
body[data-page] .profile-avatar-preview, body[data-page] .account-avatar, body[data-page] .drawer-avatar {background:var(--desk-accent,#bd6912)}
body[data-page] .drawer-content {flex:1}
body[data-page] #drawer-open-profile {margin-top:auto}
dialog#signin-modal {height:fit-content;max-height:calc(100dvh - 2rem);margin:auto;overflow-y:auto}
