/* OGWA operator console.
   Tones (data-tone): blocked, caution, info, neutral, terminal. There is deliberately no
   "success" or green tone: a condition that is merely not yet known to be unsafe must never
   look reassuring. Every tone is also spelled out in words; colour is never the only cue. */

:root {
  color-scheme: light dark;
  --bg: #f6f5f1;
  --surface: #ffffff;
  --surface-2: #efede6;
  --text: #1b1d21;
  --muted: #555b66;
  --border: #c9c6bc;
  --link: #1d4f86;
  --focus: #b3470a;
  --blocked-bg: #fbe9e7;
  --blocked-fg: #8a1c11;
  --blocked-border: #c0392b;
  --caution-bg: #fdf2d8;
  --caution-fg: #6b4700;
  --caution-border: #b7791f;
  --info-bg: #e8eef6;
  --info-fg: #1f3b57;
  --info-border: #5b7a9a;
  --neutral-bg: #eeeeec;
  --neutral-fg: #33373d;
  --neutral-border: #8d9096;
  --terminal-bg: #3a3d42;
  --terminal-fg: #ffffff;
  --terminal-border: #3a3d42;
  /* Chart fills (dashboard): validated with the dataviz palette checks for this surface;
     separate from the tone borders, which are too close in lightness to tell apart as fills. */
  --chart-blocked: #bf3a2b;
  --chart-caution: #a98200;
  --chart-info: #3b6cb5;
  --chart-neutral: #8d9096;
  --chart-grid: #c9c6bc;
  --radius: 6px;
  --gap: 1rem;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  --sans: system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15171a;
    --surface: #1d2024;
    --surface-2: #262a2f;
    --text: #e9e7e1;
    --muted: #a9aeb6;
    --border: #3d434b;
    --link: #8fb8e8;
    --focus: #ffb070;
    --blocked-bg: #3a1714;
    --blocked-fg: #ffb4a8;
    --blocked-border: #e06350;
    --caution-bg: #33280f;
    --caution-fg: #f3d08a;
    --caution-border: #c99a3c;
    --info-bg: #1c2a3a;
    --info-fg: #bcd3ee;
    --info-border: #6f93ba;
    --neutral-bg: #2a2d31;
    --neutral-fg: #d6d8db;
    --neutral-border: #6c7178;
    --terminal-bg: #d6d8db;
    --terminal-fg: #15171a;
    --terminal-border: #d6d8db;
    --chart-blocked: #d94a5c;
    --chart-caution: #b28d10;
    --chart-info: #5f8ee0;
    --chart-neutral: #8a8f96;
    --chart-grid: #3d434b;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
}

a { color: var(--link); text-underline-offset: 0.15em; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 0.5rem; top: -4rem; z-index: 10;
  padding: 0.5rem 1rem; background: var(--surface); color: var(--text);
  border: 2px solid var(--focus); border-radius: var(--radius);
}
.skip-link:focus { top: 0.5rem; }

/* --- header ------------------------------------------------------------------------- */

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 16px 0;
}
.brand-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; }
.brand { margin: 0; font-size: 1.05rem; }
.brand-name { font-weight: 700; letter-spacing: 0.04em; }
.brand-sub { color: var(--muted); }
.env-badge { margin: 0; }
.account { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.account p { margin: 0; }
/* Demo Mode (docs/demo-mode.md): persistent, small, and expandable for the explanation.
   Expanded, the explanation takes its own row of the header and pushes the navigation down,
   so it never covers a navigation link (tests/browser/test_demo_null_meridian_ui.py). */
.demo-indicator { margin: 0; font-size: 0.85rem; }
.demo-indicator[open] { order: 1; flex-basis: 100%; }
.demo-indicator summary {
  width: fit-content; cursor: pointer; padding: 0.15rem 0.6rem; border-radius: 999px; font-weight: 700;
  background: var(--tone-bg); color: var(--tone-fg); border: 1px solid var(--tone-border);
}
.demo-sublabel { font-weight: 400; }
.demo-detail {
  max-width: 40rem; margin-top: 0.3rem; padding: 0.5rem 0.75rem;
  background: var(--surface); color: var(--text); border: 1px solid var(--tone-border); border-radius: var(--radius);
}
.demo-detail p { margin: 0.25rem 0; }
.policy-notice {
  margin: 0.5rem 0 0; padding: 0.35rem 0.6rem; font-weight: 600;
  background: var(--caution-bg); color: var(--caution-fg);
  border: 1px solid var(--caution-border); border-radius: var(--radius);
}
.safety-strip { margin: 0.5rem 0; color: var(--muted); font-size: 0.92rem; }

/* --- layout: a docked side navigation beside the page (OGWA-UI-IA-01) ------------------
   Expanded: icon and label. Collapsed: icon only, the label as a tooltip on hover and focus
   (and still the link's accessible name). Below 48rem it becomes a menu above the page. */

.app-body { display: flex; align-items: flex-start; }
.app-body > main { flex: 1 1 auto; min-width: 0; }

#primary-nav {
  flex: none; width: 15rem; position: sticky; top: 0; max-height: 100vh; overflow-y: auto;
  background: var(--surface); border-right: 1px solid var(--border); padding: 0.5rem;
}
.icon {
  width: 1.25rem; height: 1.25rem; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.nav-toggle {
  display: flex; align-items: center; gap: 0.6rem; width: 100%; padding: 0.45rem 0.6rem;
  background: none; border-color: transparent; color: var(--muted); text-align: left;
}
.nav-list, .nav-list ul { list-style: none; margin: 0.25rem 0 0; padding: 0; display: grid; gap: 0.15rem; }
/* OGWA-UI-REVIEW-01: Inventory, Review, Operations. Each group is a list named by its label. */
.nav-group { margin-top: 0.4rem; padding-top: 0.4rem; border-top: 1px solid var(--border); }
.nav-group-label { display: block; padding: 0 0.6rem; color: var(--muted); font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase; }
.nav-list a {
  position: relative; display: flex; align-items: center; gap: 0.6rem; padding: 0.45rem 0.6rem;
  border-radius: var(--radius); text-decoration: none; border: 1px solid transparent;
}
.nav-list a:hover { border-color: var(--border); }
.nav-list a[aria-current="page"] {
  background: var(--info-bg); color: var(--info-fg); border-color: var(--info-border); font-weight: 700;
  box-shadow: inset 4px 0 0 var(--info-border);
}

body.nav-collapsed #primary-nav { width: 3.75rem; overflow: visible; }
body.nav-collapsed .nav-label, body.nav-collapsed .nav-toggle-label, body.nav-collapsed .nav-group-label {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
body.nav-collapsed .nav-list a:hover::after, body.nav-collapsed .nav-list a:focus-visible::after {
  content: attr(data-label); position: absolute; left: calc(100% + 0.6rem); top: 50%; transform: translateY(-50%);
  z-index: 5; padding: 0.25rem 0.55rem; border-radius: var(--radius); white-space: nowrap; pointer-events: none;
  background: var(--terminal-bg); color: var(--terminal-fg); font-size: 0.85rem; font-weight: 600;
}

@media (max-width: 48rem) {
  .app-body { display: block; }
  #primary-nav, body.nav-collapsed #primary-nav {
    position: static; width: auto; max-height: none; border-right: 0; border-bottom: 1px solid var(--border);
  }
  .nav-list ul { grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); }
  .nav-list > li:not(.nav-group) { display: inline-block; min-width: 11rem; }
  body.nav-collapsed .nav-list { display: none; }
  body.nav-collapsed .nav-toggle-label { position: static; width: auto; height: auto; margin: 0; clip: auto; overflow: visible; }
}

/* --- layout ------------------------------------------------------------------------- */

main { display: block; max-width: 1200px; margin: 0 auto; padding: 1rem 16px 2rem; overflow-wrap: break-word; }
main:focus { outline: none; }
h1 { font-size: 1.5rem; line-height: 1.25; margin: 0.25rem 0 0.75rem; overflow-wrap: anywhere; }
h1:focus { outline: none; }
h1:focus-visible { outline: 3px solid var(--focus); }
h2 { font-size: 1.2rem; margin: 1.75rem 0 0.5rem; }
h3 { font-size: 1.05rem; margin: 1.25rem 0 0.4rem; }
p { margin: 0.5rem 0; }

.site-footer { border-top: 1px solid var(--border); color: var(--muted); padding: 0.75rem 16px; font-size: 0.9rem; text-align: center; }

.lede { color: var(--muted); max-width: 70ch; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: var(--gap); margin: 0.75rem 0; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.75rem 1rem; min-width: 0; }
.card h2, .card h3 { margin-top: 0; }

.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); }
@media (min-width: 64rem) {
  .detail-layout { grid-template-columns: minmax(0, 1fr) 22rem; align-items: start; }
  .detail-layout > aside { position: sticky; top: 0.5rem; max-height: calc(100vh - 1rem); overflow-y: auto; }
}

/* --- tones -------------------------------------------------------------------------- */

[data-tone="blocked"] { --tone-bg: var(--blocked-bg); --tone-fg: var(--blocked-fg); --tone-border: var(--blocked-border); }
[data-tone="caution"] { --tone-bg: var(--caution-bg); --tone-fg: var(--caution-fg); --tone-border: var(--caution-border); }
[data-tone="info"] { --tone-bg: var(--info-bg); --tone-fg: var(--info-fg); --tone-border: var(--info-border); }
[data-tone="neutral"] { --tone-bg: var(--neutral-bg); --tone-fg: var(--neutral-fg); --tone-border: var(--neutral-border); }
[data-tone="terminal"] { --tone-bg: var(--terminal-bg); --tone-fg: var(--terminal-fg); --tone-border: var(--terminal-border); }

.badge {
  display: inline-block; padding: 0.1rem 0.5rem; border-radius: 999px;
  font-size: 0.85rem; font-weight: 600; white-space: nowrap;
  background: var(--tone-bg, var(--neutral-bg)); color: var(--tone-fg, var(--neutral-fg));
  border: 1px solid var(--tone-border, var(--neutral-border));
}
.env-badge.badge, .env-badge { padding: 0.15rem 0.6rem; border-radius: 999px; font-size: 0.85rem; font-weight: 700;
  background: var(--tone-bg); color: var(--tone-fg); border: 1px solid var(--tone-border); }

.banner {
  margin: 0.5rem 0; padding: 0.6rem 0.8rem;
  background: var(--tone-bg, var(--neutral-bg)); color: var(--tone-fg, var(--neutral-fg));
  border: 1px solid var(--tone-border, var(--neutral-border)); border-left-width: 6px; border-radius: var(--radius);
}
.banner strong { display: block; }
.banner p { margin: 0.25rem 0 0; }
.banner-list { list-style: none; margin: 0.5rem 0; padding: 0; }
.banner-list > li { margin: 0; }

/* --- tables and definition lists ---------------------------------------------------- */

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); margin: 0.5rem 0; }
.table-wrap:focus-visible { outline: 3px solid var(--focus); }
table { border-collapse: collapse; width: 100%; font-size: 0.93rem; }
caption { text-align: left; font-weight: 600; padding: 0.5rem 0.75rem; }
th, td { text-align: left; vertical-align: top; padding: 0.45rem 0.75rem; border-top: 1px solid var(--border); }
thead th { background: var(--surface-2); border-top: 0; font-weight: 600; white-space: nowrap; }
/* A narrow screen scrolls a wide table inside its region rather than crushing its columns. */
th, td { min-width: 7rem; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; min-width: 4rem; }
tbody tr:hover { background: var(--surface-2); }

.facts { display: grid; grid-template-columns: minmax(10rem, 16rem) minmax(0, 1fr); gap: 0; margin: 0.5rem 0;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.facts dt, .facts dd { margin: 0; padding: 0.45rem 0.75rem; border-top: 1px solid var(--border); }
.facts dt { font-weight: 600; color: var(--muted); }
.facts dt:first-of-type, .facts dt:first-of-type + dd { border-top: 0; }
.facts dd { overflow-wrap: anywhere; }
@media (max-width: 40rem) {
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts dd { border-top: 0; padding-top: 0; }
}
/* In a dashboard card the term sits above its value, so values are not squeezed. */
.card .facts { grid-template-columns: minmax(0, 1fr); }
.card .facts dd { border-top: 0; padding-top: 0; }

.mono, code { font-family: var(--mono); font-size: 0.88em; overflow-wrap: anywhere; }
.muted { color: var(--muted); }
.plain-list { margin: 0.25rem 0; padding-left: 1.2rem; }

/* --- forms and buttons -------------------------------------------------------------- */

button, .button {
  font: inherit; cursor: pointer; padding: 0.45rem 0.9rem; border-radius: var(--radius);
  border: 1px solid var(--neutral-border); background: var(--surface); color: var(--text);
  min-height: 2.5rem;
}
button:hover { background: var(--surface-2); }
button[disabled] { cursor: not-allowed; opacity: 0.6; }
button.primary { background: var(--info-fg); color: var(--surface); border-color: var(--info-fg); }
button.primary:hover { filter: brightness(1.1); }

.actions-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.75rem 1rem; }
.actions-panel h2 { margin-top: 0; }
.action-list { list-style: none; margin: 0.5rem 0; padding: 0; display: grid; gap: 0.5rem; }
.action-list button { width: 100%; text-align: left; }
.action-help { font-size: 0.88rem; color: var(--muted); margin: 0.15rem 0 0; }

form.action-form, form.drill-form { margin: 0.75rem 0; padding: 0.75rem; border: 2px solid var(--info-border); border-radius: var(--radius); background: var(--surface); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font-weight: 700; font-size: 1.05rem; padding: 0; margin-bottom: 0.4rem; }
legend:focus-visible { outline: 3px solid var(--focus); }
.field { margin: 0.6rem 0; }
.field label { display: block; font-weight: 600; margin-bottom: 0.2rem; }
.field .hint { display: block; font-size: 0.88rem; color: var(--muted); margin-bottom: 0.25rem; }
textarea, input[type="text"], input[type="number"], select {
  font: inherit; width: 100%; padding: 0.4rem 0.5rem; border: 1px solid var(--neutral-border);
  border-radius: var(--radius); background: var(--surface); color: var(--text);
}
textarea { min-height: 5rem; resize: vertical; }
.check { display: flex; gap: 0.5rem; align-items: flex-start; margin: 0.6rem 0; }
.check input { margin-top: 0.3rem; width: 1.1rem; height: 1.1rem; flex: none; }
.form-buttons { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.form-error { margin-top: 0.5rem; }

.pager { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; margin: 0.5rem 0; }
.pager-status { color: var(--muted); font-variant-numeric: tabular-nums; }
button[aria-disabled="true"] { cursor: not-allowed; opacity: 0.6; }

/* --- tabs, sortable headers, identities, access paths (OGWA-UI-IA-01) ------------------- */

.tabs { display: flex; flex-wrap: wrap; gap: 0.25rem; margin: 1rem 0 0; border-bottom: 2px solid var(--border); }
.tabs [role="tab"] {
  margin-bottom: -2px; border: 1px solid var(--border); border-bottom: 2px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0; background: var(--surface-2); color: var(--text);
}
.tabs [role="tab"][aria-selected="true"] {
  background: var(--surface); font-weight: 700; border-color: var(--info-border); border-bottom-color: var(--surface);
  box-shadow: inset 0 4px 0 var(--info-border);
}
.tab-panel { padding-top: 0.25rem; }
.tab-panel:focus-visible { outline: 3px solid var(--focus); }

th .sort {
  display: inline-flex; align-items: center; gap: 0.35rem; min-height: 0; padding: 0;
  font: inherit; font-weight: 600; color: inherit; background: none; border: 0; text-align: left; white-space: nowrap;
}
th .sort:hover { background: none; text-decoration: underline; }
.sort-indicator { color: var(--muted); font-size: 0.8em; }
thead th[aria-sort] { background: var(--info-bg); color: var(--info-fg); }
thead th[aria-sort] .sort-indicator { color: inherit; }

.ref-qualifier { display: block; color: var(--muted); font-size: 0.8em; }
.chain { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.15rem 0.4rem; }
.chain > li { min-width: 0; overflow-wrap: anywhere; }
/* An access path keeps a readable width; on a phone its table scrolls inside its region. */
td:has(.chain) { min-width: 16rem; }
.chain > li + li::before { content: "›"; content: "›" / ""; color: var(--muted); margin-right: 0.4rem; }

/* --- dashboard (OGWA-UI-IA-01) ------------------------------------------------------- */

.kpis { list-style: none; margin: 0.5rem 0 0; padding: 0; display: grid; gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); }
.kpi {
  display: flex; flex-direction: column; gap: 0.1rem; height: 100%; padding: 0.75rem 1rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text); text-decoration: none;
}
.kpi:hover { border-color: var(--info-border); }
.kpi-value { font-size: 1.75rem; font-weight: 650; line-height: 1.2; }
.kpi-label { font-weight: 600; }
.kpi-detail { color: var(--muted); font-size: 0.85rem; }

.attention { list-style: none; margin: 0.5rem 0; padding: 0; display: grid; gap: 0.4rem; }

.chart-grid { display: grid; gap: 0 1.5rem; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }
.bars { list-style: none; margin: 0.5rem 0; padding: 0; display: grid; gap: 0.35rem; }
.bar-row {
  display: grid; grid-template-columns: 7.5rem minmax(0, 1fr) 3.5rem; align-items: center; gap: 0.6rem;
  padding: 0.3rem 0.4rem; border-radius: var(--radius); color: var(--text); text-decoration: none;
}
.bar-row:hover { background: var(--surface-2); }
.bar-row:hover .bar-label { text-decoration: underline; }
.bar-track { display: block; width: 100%; height: 0.875rem; }
.bar-value { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.bar-fill, .column { fill: var(--chart-info); }
.bar-fill[data-tone="blocked"] { fill: var(--chart-blocked); }
.bar-fill[data-tone="caution"] { fill: var(--chart-caution); }
.bar-fill[data-tone="neutral"] { fill: var(--chart-neutral); }
.columns { display: block; width: 100%; max-width: 36rem; height: auto; margin: 0.5rem 0 0; }
.chart-baseline { stroke: var(--chart-grid); stroke-width: 1; }
.chart-axis { fill: var(--muted); font-size: 11px; }
.chart-value { fill: var(--text); font-size: 11px; font-weight: 600; }
.chart-table > summary { cursor: pointer; color: var(--link); font-size: 0.9rem; }

details.profile { margin: 0.75rem 0; }
details.profile > summary { cursor: pointer; font-weight: 600; padding: 0.25rem 0; }
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: end; margin: 0.5rem 0; }
.filters .field { margin: 0; min-width: 14rem; }

.signin { max-width: 32rem; }

/* --- motion ------------------------------------------------------------------------- */

button, .nav-list a { transition: background-color 120ms ease, border-color 120ms ease; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0s !important;
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

@media (forced-colors: active) {
  .banner, .badge, .env-badge, .policy-notice, .demo-indicator summary { border: 2px solid CanvasText; }
  .tabs [role="tab"][aria-selected="true"], .nav-list a[aria-current="page"] { border: 3px solid Highlight; }
  .bar-fill, .column { fill: CanvasText; }
}

@media print {
  #primary-nav, .actions-panel, .skip-link { display: none; }
}

/* --- operator review (OGWA-UI-REVIEW-01) ---------------------------------------------------
   The lifecycle stepper: every stage writes its status in words, the mark beside it is hidden
   from assistive technology, and future stages are dashed and muted, never shown as reached. */

.review-headline { font-size: 1.1rem; }
.stepper { list-style: none; margin: 0.5rem 0; padding: 0; display: grid; gap: 0.4rem;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); }
.step {
  display: grid; gap: 0.1rem; align-content: start; padding: 0.4rem 0.6rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--tone-border, var(--border));
}
.step[aria-current="step"] { background: var(--tone-bg); color: var(--tone-fg); border-color: var(--tone-border); }
.step[data-status="future"], .step[data-status="not-reached"] { color: var(--muted); border-style: dashed; }
.step-mark { font-size: 1rem; line-height: 1; }
.step-label { font-weight: 700; overflow-wrap: anywhere; }
.step-status, .step-note { font-size: 0.85rem; overflow-wrap: anywhere; }
.status-filters ul { list-style: none; margin: 0.5rem 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem 0.5rem; }
.status-filters a { display: inline-block; padding: 0.2rem 0.6rem; border: 1px solid var(--border); border-radius: 999px; }
.status-filters a[aria-current="true"] {
  background: var(--info-bg); color: var(--info-fg); border-color: var(--info-border); font-weight: 700; text-decoration: none;
}

/* --- synthetic remediation drill (OGWA-DEMO-03) ------------------------------------------
   State labels are sentences, so they wrap (a badge does not), and the page keeps no
   sideways scroll at phone width. Tone is also spelled out in the label's words. */

.state-label {
  display: inline-block; padding: 0.1rem 0.5rem; border-radius: var(--radius);
  font-size: 0.85rem; font-weight: 700; white-space: normal; overflow-wrap: anywhere;
  background: var(--tone-bg, var(--neutral-bg)); color: var(--tone-fg, var(--neutral-fg));
  border: 1px solid var(--tone-border, var(--neutral-border));
}
.drill-banner .drill-state { font-size: 1.15rem; letter-spacing: 0.02em; overflow-wrap: anywhere; }
.drill-steps { margin: 0.5rem 0; padding-left: 1.5rem; }
.drill-step { margin: 0 0 0.75rem; }
.drill-step-head { margin: 0 0 0.2rem; }
.drill-outcome h3:focus-visible { outline: 3px solid var(--focus); }
.drill-outcome .mono { overflow-wrap: anywhere; }
/* OGWA-DEMO-04: the mode banner (DRY RUN / SYNTHETIC EXECUTION) sits above the outcome, heavier
   than it, so the boundary between planning, synthetic execution, and a real change is unmissable. */
.drill-mode-banner { border-width: 3px; }
.drill-mode-banner .drill-mode { font-size: 1.25rem; letter-spacing: 0.04em; overflow-wrap: anywhere; }
.walkthrough-part { margin: 1rem 0; }
.walkthrough-steps { margin: 0.5rem 0; padding-left: 1.5rem; }
.walkthrough-steps li { margin: 0 0 0.4rem; }
