/* The decision spine.
   One path through the building: what to decide now, what to do about it,
   why you can trust it, and how it gets proved. */

.spine {
  /* Two tiers per hue, because text and a drawn mark are held to different
     bars and one colour cannot meet both. Text has to reach 4.5:1 against its
     background; a chart mark or a border is a graphical object and has to reach
     3:1, but it also has to carry enough chroma to read as a colour at all.
     The -mark values are the ones validated for chart use; the plain ones are
     darkened until they pass as text. Measured, not judged:

       accent text  #0d5f70 on white  7.27:1     mark #1183a0  4.09:1 on page
       warn text    #a8321a on white  6.70:1     mark #c03a17  5.44:1
       money text   #1c6b4a on white  6.46:1     mark #2f9455  3.83:1

     Using the mark colours as text is the mistake this comment exists to stop. */
  --ink: #10202a;
  --muted: #5a6b78;
  --ink-muted: var(--muted);
  --line: #dde4e9;
  /* --line is a divider and measures 1.28:1, which is correct for a rule and a
     failure for anything clickable. WCAG 2.2 SC 1.4.11 asks 3:1 for the visual
     information needed to identify a control, so anything with a hit area gets
     the stronger one. Measured 3.4:1 on --panel. */
  --line-strong: #7c8994;
  --panel: #ffffff;
  --panel-muted: #f7f9fa;
  --page: #f4f7f9;
  /* Legacy surface aliases remain here while older cards are consolidated
     onto the decision-spine tokens. Keeping the aliases defined prevents a
     valid older surface from becoming transparent during that work. */
  --paper: var(--panel);
  --paper-soft: var(--panel-muted);
  --accent: #0d5f70;
  --accent-mark: #1183a0;
  --accent-soft: #e8f2f4;
  --now: #a8321a;
  --now-mark: #c03a17;
  --now-soft: #fdf0ec;
  --money: #1c6b4a;
  --money-mark: #2f9455;
  /* The soft companion the other two marks already have. Same job: a tint that
     carries a state behind a block without being read as text. */
  --money-soft: #edf6f1;
  /* The neutral member of the same family, which nine rules asked for and
     nobody ever defined. An undefined custom property does not fail, it
     resolves to nothing, so nine backgrounds that were meant to carry a tint
     have been transparent since they were written and a tab gave no feedback at
     all on hover. It is the page colour, because that is what a quiet tint on a
     white panel already is here, and no new colour is invented by saying so. */
  --soft: var(--page);
  /* Three more of the same. `--surface` is read as the colour to draw a halo
     against, which is the panel behind it. `--wash` is read as a background on
     blocks and hover states, which is the same quiet tint as `--soft`. Between
     them and `--soft` they account for 21 declarations that have never applied. */
  --surface: var(--panel);
  --wash: var(--page);

  /* One type scale. Every size in the product comes from this list, and the
     list is short on purpose: eighteen sizes on a page is the difference
     between a designed screen and a defaulted one. */
  --t-micro: 11px;
  --t-small: 12px;
  --t-body-s: 13px;
  --t-body: 14px;
  --t-body-l: 16px;
  --t-lead: 18px;
  --t-h3: 20px;
  --t-h2: 26px;
  --t-h1: 34px;
  /* Legacy type aliases used by retained cards. */
  --text-xs: var(--t-small);
  --text-sm: var(--t-body);
  --text-lg: var(--t-h3);

  /* Each size carries its own leading, so a heading cannot end up with body
     spacing by accident. The ratios follow the published pairings: dense text
     gets more, display text gets less. --lh-data is the row of a table, which
     Carbon sets tighter than prose at the same size. */
  --lh-micro: 1.45;
  --lh-small: 1.33;
  --lh-body-s: 1.54;
  --lh-body: 1.43;
  --lh-data: 1.29;
  --lh-body-l: 1.5;
  --lh-lead: 1.56;
  /* Longer-form reading, which is what the lead height already is. Read by ten
     rules and defined by none, so all ten fell back to the browser's default. */
  --lh-prose: var(--lh-lead);
  --lh-h3: 1.4;
  --lh-h2: 1.23;
  --lh-h1: 1.18;

  /* Three tracking values, not ten. Uppercase needs opening out, small
     lowercase needs a little, and anything 20px and over needs none. */
  --track-caps: 0.1em;
  --track-small: 0.03em;

  /* Four radii. */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-full: 999px;

  /* Three elevation steps that mean something, rather than one shadow used
     everywhere. A card is not at the same height as a sticky header. */
  --elev-1: 0 1px 2px rgba(16, 32, 42, 0.06);
  --elev-2: 0 1px 2px rgba(16, 32, 42, 0.06), 0 8px 24px rgba(16, 32, 42, 0.05);

  /* A four point spacing scale, so gaps are chosen rather than guessed. */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;

  --shadow: 0 1px 2px rgba(16, 32, 42, 0.06), 0 8px 24px rgba(16, 32, 42, 0.05);
  background: var(--page);
  color: var(--ink);
  min-height: 100vh;
  font-family: var(--font-ui);
}

.reader-depth {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  justify-content: space-between;
  margin-bottom: var(--s-4);
  padding: var(--s-3) 0;
}

.reader-depth > div {
  display: grid;
  gap: var(--s-1);
}

.reader-depth span {
  color: var(--muted);
  font-size: var(--t-small);
}

.reader-depth nav,
.reader-depth form {
  display: flex;
  gap: var(--s-1);
}

.reader-depth a,
.reader-depth button {
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  color: var(--accent);
  font: inherit;
  min-height: 32px;
  padding: 6px var(--s-2);
}

.reader-depth a[aria-current="page"] {
  background: var(--accent);
  color: var(--panel);
}

.reader-depth-full-link {
  display: inline-flex;
  margin: var(--s-2) 0;
}

[data-reader-depth="brief"] [data-depth-section="full-standard"] > :not(.reader-depth-full-link) {
  display: none;
}

.reader-depth-facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin: 0 0 var(--s-4);
}

.reader-depth-facts > div {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  min-width: 11rem;
  padding: var(--s-2) var(--s-3);
}

.reader-depth-facts dt {
  color: var(--muted);
  font-size: 0.78rem;
}

.reader-depth-facts dd { margin: var(--s-1) 0 0; }

.technical-inspection {
  background: var(--panel-muted);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  margin: 0 0 var(--s-4);
  padding: var(--s-3);
}

.technical-inspection h2,
.technical-inspection p { margin-top: 0; }

.technical-inspection dl { margin: 0; }

.technical-inspection dl > div {
  border-top: 1px solid var(--line);
  display: grid;
  gap: var(--s-1);
  padding: var(--s-2) 0;
}

.technical-inspection dt { font-weight: 700; }

.technical-inspection dd {
  color: var(--muted);
  margin: 0;
  overflow-wrap: anywhere;
}

.presentation-notice {
  background: var(--panel-muted);
  border-left: 3px solid var(--accent);
  margin: 0 0 var(--s-3);
  padding: var(--s-2) var(--s-3);
}

.go-to-trigger {
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  color: var(--accent);
  font: inherit;
  margin: 0 0 var(--s-3);
  min-height: 36px;
  padding: 6px var(--s-3);
}

.go-to-dialog {
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  box-shadow: var(--elev-2);
  color: var(--ink);
  max-width: 620px;
  padding: var(--s-5);
  width: min(620px, calc(100vw - 32px));
}

.go-to-dialog::backdrop { background: rgba(16, 32, 42, 0.45); }
.go-to-dialog header { align-items: start; display: flex; justify-content: space-between; gap: var(--s-3); }
.go-to-dialog h2, .go-to-dialog p { margin: 0; }
.go-to-dialog input { box-sizing: border-box; font: inherit; margin: var(--s-4) 0; min-height: 40px; padding: var(--s-2); width: 100%; }
.go-to-dialog ul { display: grid; gap: var(--s-2); list-style: none; margin: 0; padding: 0; }
.go-to-dialog a { border: 1px solid var(--line); display: grid; gap: var(--s-1); padding: var(--s-3); }
.go-to-dialog a span { color: var(--muted); font-size: var(--t-small); }

.explain-this-trigger {
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  color: var(--accent);
  font: inherit;
  justify-self: start;
  margin-top: var(--s-2);
  min-height: 32px;
  padding: 5px var(--s-2);
}

.explain-this-dialog {
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  box-shadow: var(--elev-2);
  color: var(--ink);
  max-width: 620px;
  padding: var(--s-5);
  width: min(620px, calc(100vw - 32px));
}

.explain-this-dialog::backdrop { background: rgba(16, 32, 42, 0.45); }
.explain-this-dialog header { align-items: start; display: flex; justify-content: space-between; gap: var(--s-3); }
.explain-this-dialog h2, .explain-this-dialog h3, .explain-this-dialog p { margin-top: 0; }
.explain-this-dialog section { border-top: 1px solid var(--line); margin-top: var(--s-3); padding-top: var(--s-3); }

@media (max-width: 640px) {
  .reader-depth { align-items: stretch; }
  .reader-depth nav,
  .reader-depth form { width: 100%; }
  .reader-depth nav a,
  .reader-depth button { flex: 1; text-align: center; }
}

.next-best-move {
  display: grid;
  gap: var(--s-3);
  margin: 0 0 var(--s-6);
  border: 1px solid var(--line-strong);
  border-left: 5px solid var(--accent);
  border-radius: var(--r-md);
  background: var(--panel);
  box-shadow: var(--elev-1);
  padding: var(--s-5);
}

.next-best-move.is-act-now,
.next-best-move.is-blocked-by-access {
  border-left-color: var(--now);
}

.next-best-move.is-clear {
  border-left-color: var(--money);
}

.next-best-move header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: var(--s-3);
}

.next-best-move h2,
.next-best-move p {
  margin: 0;
}

.next-best-move-state {
  flex: 0 0 auto;
  border-radius: var(--r-full);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: var(--t-small);
  font-weight: 700;
  line-height: var(--lh-small);
  padding: var(--s-1) var(--s-2);
}

.next-best-move.is-act-now .next-best-move-state,
.next-best-move.is-blocked-by-access .next-best-move-state {
  background: var(--now-soft);
  color: var(--now);
}

.next-best-move.is-clear .next-best-move-state {
  background: var(--money-soft);
  color: var(--money);
}

.next-best-move-evidence {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.next-best-move a {
  justify-self: start;
  color: var(--accent);
  font-weight: 700;
}

.spatial-twin { margin: 0 0 var(--s-6); }
.chart-decision-meta { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--panel-muted); margin: 0 0 var(--s-3); padding: var(--s-3); }
.readiness-projection { border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--panel); margin: 0 0 var(--s-5); padding: var(--s-4); }
.readiness-projection > * { max-width: 74ch; }
.readiness-projection h2, .readiness-projection p { margin: 0 0 var(--s-2); }
.readiness-projection details { margin-top: var(--s-3); }
.readiness-projection li + li { margin-top: var(--s-2); }
.chart-decision-meta dl { display: grid; gap: var(--s-2); grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 0 0 var(--s-2); }
.chart-decision-meta dt { color: var(--muted); font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.chart-decision-meta dd { margin: var(--s-1) 0 0; }
.chart-decision-meta a { font-weight: 700; }
.investigation-controls { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin: 0 0 var(--s-3); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--panel-muted); padding: var(--s-3); }
.investigation-controls p { margin: 0; }
.investigation-controls div { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.investigation-controls a { font-weight: 700; }
.spatial-twin-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr); gap: var(--s-4); }
.spatial-twin svg, .spatial-twin aside, .spatial-unplaced { border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--panel); padding: var(--s-4); }
.spatial-twin svg { min-height: 460px; width: 100%; }
.spatial-controls { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: 0 0 var(--s-3); }
.spatial-controls button { border: 1px solid var(--line-strong); border-radius: var(--r-full); background: var(--panel); color: var(--ink); padding: var(--s-1) var(--s-2); }
.spatial-controls button[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.spatial-twin svg .is-motion { transition: transform 160ms ease-out; }
.spatial-twin svg .is-reduced-motion { transition: none; }
.spatial-twin circle { fill: var(--accent-mark); cursor: pointer; stroke: var(--panel); stroke-width: 1; }
.spatial-twin circle.is-selected { fill: var(--now-mark); stroke: var(--ink); stroke-width: 1.5; }
.spatial-twin text { fill: var(--ink); font-size: 3px; pointer-events: none; }
.spatial-twin line.is-read { stroke: var(--line-strong); stroke-width: 0.65; }
.spatial-twin line.is-inferred { stroke: var(--muted); stroke-width: 0.65; stroke-dasharray: 1.5 1.5; }
.spatial-unplaced { margin-top: var(--s-4); }
@media (max-width: 720px) { .spatial-twin-layout { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .investigation-controls { align-items: flex-start; flex-direction: column; } }

@media (max-width: 620px) {
  .next-best-move header {
    align-items: start;
    flex-direction: column;
  }
}

/* Connected AI setup and evidence-bound results. */
.scan-model,
.scan-live,
.scan-rehearsal-intro {
  margin-top: 20px;
  border: 1px solid #cad6dc;
  border-radius: 18px;
  background: #fff;
  padding: clamp(18px, 2vw, 28px);
}

.scan-model {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(360px, 1.25fr);
  gap: 20px 32px;
}

.scan-model h2,
.scan-live h2,
.scan-rehearsal-intro h2 {
  margin: 4px 0 9px;
}

.scan-model-copy p:last-child,
.scan-live-head p,
.scan-rehearsal-intro p:last-child {
  color: #526773;
  line-height: 1.55;
}

.scan-model-form {
  display: grid;
  grid-template-columns: minmax(130px, 0.45fr) minmax(230px, 1fr);
  gap: 14px;
  align-items: end;
}

.scan-model-form label,
.scan-live-controls label {
  display: grid;
  gap: 6px;
  color: #344d5a;
  font-size: 13px;
  font-weight: 750;
}

.scan-model-form label:nth-child(3) {
  grid-column: 1 / -1;
}

.scan-model-form input,
.scan-model-form select,
.scan-live-controls select {
  min-height: 44px;
  border: 1px solid #aebfc8;
  border-radius: 9px;
  background: #fff;
  color: #172b36;
  padding: 10px 12px;
  font: inherit;
}

.scan-model-form button,
.scan-model-actions button,
.scan-live-controls button {
  min-height: 44px;
  border: 1px solid #075d72;
  border-radius: 9px;
  background: #075d72;
  color: #fff;
  padding: 10px 16px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.scan-model-form button {
  grid-column: 1 / -1;
  justify-self: start;
}

.scan-model-state {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(300px, 1.3fr) auto;
  gap: 16px;
  align-items: center;
  border-top: 1px solid #dbe4e8;
  padding-top: 16px;
}

.scan-model-state > div:first-child {
  display: grid;
  gap: 3px;
}

.scan-model-state span,
.scan-model-state time {
  color: #60747f;
  font-size: 12px;
}

.scan-model-state p {
  margin: 0;
  color: #526773;
}

.scan-model-state p.is-good {
  color: #1d7549;
}

.scan-model-state p.is-caution {
  color: #8a5b05;
}

.scan-model-state time {
  display: block;
  margin-top: 3px;
}

.scan-model-actions {
  display: flex;
  gap: 8px;
}

.scan-model-actions button {
  background: #fff;
  color: #075d72;
}

.scan-model-actions button:disabled,
.scan-live-controls button:disabled {
  border-color: #b9c4ca;
  background: #e8edef;
  color: #778891;
  cursor: not-allowed;
}

.scan-live-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.scan-live-head > span {
  align-self: start;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 850;
}

.scan-live-head > span.is-ready {
  background: #e3f4ea;
  color: #176a41;
}

.scan-live-head > span.is-waiting {
  background: #f7ead0;
  color: #76500a;
}

.scan-live-controls {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-top: 16px;
}

.scan-live-status {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
  border-radius: 10px;
  background: #eef4f6;
  padding: 12px 14px;
  color: #405964;
}

.scan-live-status span {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #7b919c;
}

.scan-live-status.is-running span {
  background: #07809c;
  animation: scan-live-pulse 1s ease-in-out infinite;
}

.scan-live-status.is-complete span {
  background: #268c58;
}

.scan-live-status.is-error span {
  background: #b73d32;
}

.scan-live-status p {
  margin: 0;
}

@keyframes scan-live-pulse {
  50% {
    opacity: 0.3;
    transform: scale(0.72);
  }
}

.scan-live-result {
  margin-top: 16px;
  border-top: 1px solid #dbe4e8;
  padding-top: 16px;
}

.scan-live-result header h3 {
  margin: 3px 0 6px;
  font-size: 22px;
}

.scan-live-boundary {
  margin: 13px 0;
  border-left: 4px solid #c89223;
  background: #fbf5e8;
  padding: 12px 14px;
  color: #5f4a20;
}

.scan-live-result > ol {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.scan-live-result > ol > li {
  border: 1px solid #d5e0e4;
  border-radius: 12px;
  padding: 16px;
}

.scan-live-result h4 {
  margin: 0 0 6px;
  font-size: 16px;
}

.scan-live-result dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.scan-live-result dt {
  color: #60747f;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.scan-live-result dd {
  margin: 3px 0 0;
}

.scan-live-result details {
  margin-top: 12px;
}

.scan-live-result summary {
  color: #075d72;
  font-weight: 800;
  cursor: pointer;
}

.scan-live-result details li {
  margin-top: 7px;
  color: #445c67;
}

.scan-rehearsal-intro {
  background: #f4f8f9;
}

@media (max-width: 860px) {
  .scan-model,
  .scan-model-state {
    grid-template-columns: 1fr;
  }

  .scan-model-state {
    align-items: start;
  }
}

@media (max-width: 620px) {
  .scan-model-form,
  .scan-live-controls,
  .scan-live-result dl {
    grid-template-columns: 1fr;
  }

  .scan-model-form label:nth-child(3),
  .scan-model-form button {
    grid-column: auto;
  }

  .scan-live-head,
  .scan-model-actions {
    flex-direction: column;
  }
}

.setup-source-review .chart-note,
.source-confirmation .chart-note {
  max-width: 920px;
}

.setup-source-list {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.setup-source-list > li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  border: 1px solid #d3dee3;
  border-radius: 12px;
  padding: 14px;
  background: #fff;
}

.setup-source-list > li.is-confirmed {
  border-color: #a9d1bc;
}

.setup-source-list > li.is-saved {
  border-color: #dfc58e;
}

.setup-source-number {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: #e7f1f4;
  color: #075d72;
  font-weight: 850;
}

.setup-source-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.setup-source-title span {
  color: #60747f;
  font-size: 12px;
  font-weight: 750;
}

.setup-source-list p {
  margin: 5px 0;
}

.setup-source-list small {
  display: block;
  color: #60747f;
  line-height: 1.45;
}

.setup-source-list .setup-source-question {
  margin-top: 10px;
  font-weight: 750;
}

.setup-source-list a {
  display: inline-block;
  margin-top: 5px;
  color: #075d72;
  font-weight: 800;
}

.source-confirmation-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0;
}

.source-confirmation-grid a {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 8px;
  min-height: 92px;
  border: 1px solid #d2dde2;
  border-radius: 10px;
  padding: 10px;
  color: #233b47;
  text-decoration: none;
}

.source-confirmation-grid a:hover,
.source-confirmation-grid a:focus-visible {
  border-color: #075d72;
  background: #f3f8f9;
}

.source-confirmation-grid a > span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: #e7f1f4;
  color: #075d72;
  font-size: 12px;
  font-weight: 850;
}

.source-confirmation-grid strong,
.source-confirmation-grid small {
  display: block;
}

.source-confirmation-grid small {
  margin-top: 5px;
  color: #60747f;
  line-height: 1.35;
}

.source-confirmation-grid a.is-confirmed {
  border-color: #a9d1bc;
  background: #f4fbf7;
}

.source-confirmation-grid a.is-saved {
  border-color: #dfc58e;
  background: #fffaf0;
}

.source {
  scroll-margin-top: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 5px solid var(--line-strong);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  margin-bottom: var(--s-4);
}

.source-proposal {
  margin: 14px 0;
  border-left: 4px solid #9aacb5;
  background: #f3f7f8;
  padding: 12px 14px;
}

.source-proposal.is-confirmed {
  border-left-color: #2e8b59;
  background: #f0f8f3;
}

.source-proposal.is-saved {
  border-left-color: #c08a22;
  background: #fff8e9;
}

.source-proposal p {
  margin: 4px 0;
}

.source-proposal small {
  display: block;
  color: #60747f;
}

.source-proposal b {
  display: block;
  margin-top: 9px;
}

@media (max-width: 980px) {
  .source-confirmation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .source-confirmation-grid {
    grid-template-columns: 1fr;
  }

  .setup-source-title {
    flex-direction: column;
    gap: 3px;
  }
}

.spine-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px 96px;
}

/* --- the strip that follows you through every screen --------------------- */

.spine-context {
  box-shadow: var(--elev-2);
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.spine-context-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  align-items: baseline;
}

.spine-context-facts {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 8px 28px;
  align-items: baseline;
  margin: 0;
}

.spine-context dt {
  font-size: var(--t-micro);
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}

.spine-context dd {
  margin: 0;
  font-size: var(--t-body);
  font-weight: 600;
}

.spine-context .stub-flag {
  display: inline-block;
  margin-left: auto;
  align-self: center;
  font-size: var(--t-micro);
  color: var(--now);
  background: var(--now-soft);
  border: 1px solid #f0d3c9;
  border-radius: var(--r-full);
  padding: 3px 10px;
  font-weight: 600;
}

/* --- steps --------------------------------------------------------------- */

.spine-steps {
  display: flex;
  gap: 4px;
  margin: 28px 0 0;
  padding: 6px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--elev-1);
  overflow-x: auto;
}

.spine-steps a {
  flex: 1 1 0;
  min-width: 168px;
  text-decoration: none;
  color: var(--ink);
  padding: 10px 14px;
  border-radius: var(--r-md);
  display: block;
}

.spine-steps a:hover {
  background: var(--accent-soft);
}

.spine-steps .step-number {
  display: block;
  font-size: var(--t-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.spine-steps .step-label {
  display: block;
  font-size: var(--t-body);
  font-weight: 600;
  margin-top: 2px;
}

.spine-steps .step-sub {
  display: block;
  font-size: var(--t-small);
  color: var(--muted);
  margin-top: 2px;
}

/* --- sections ------------------------------------------------------------ */

.spine-section {
  padding-top: 56px;
  scroll-margin-top: 64px;
}

.spine-section > header {
  margin-bottom: 20px;
}

.spine-eyebrow {
  font-size: var(--t-micro);
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.spine-section h2 {
  font-size: var(--t-h2);
  line-height: var(--lh-h2);
  margin: 6px 0 8px;
  letter-spacing: -0.015em;
}

.spine-section h2 > .spine-eyebrow {
  display: block;
  margin-bottom: var(--s-1);
}

.spine-lede {
  font-size: var(--t-body-l);
  color: var(--muted);
  max-width: 68ch;
  margin: 0;
}

.spine-carry {
  font-size: var(--t-body);
  color: var(--ink);
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  padding: 10px 14px;
  border-radius: 0 8px 8px 0;
  margin: 16px 0 0;
  max-width: 68ch;
}

/* --- decision cards ------------------------------------------------------ */

.decision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.decision {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px;
  box-shadow: var(--elev-1);
  display: flex;
  flex-direction: column;
  /* The corner the working mark is pinned to. */
  position: relative;
}

.decision h2 {
  font-size: var(--t-body-s);
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.decision .question {
  font-size: var(--t-body);
  color: var(--muted);
  margin: 2px 0 12px;
}

.decision .answer {
  font-size: var(--t-h2);
  line-height: var(--lh-h2);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
}

.decision .answer.is-warning {
  color: var(--now);
}

.decision p {
  margin: 0 0 12px;
  font-size: var(--t-body);
  line-height: var(--lh-body);
}

.decision .do-this {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: auto;
}

.decision .do-this strong {
  display: block;
  font-size: var(--t-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}

.daily-action-venue-effect {
  margin: var(--s-2) 0;
  padding: var(--s-2) var(--s-3);
  border-left: 3px solid var(--accent);
  background: var(--soft);
}

.daily-action-venue-effect > strong {
  display: block;
  margin-bottom: 4px;
  font-size: var(--t-small);
}

.daily-action-venue-effect ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.daily-action-venue-effect li {
  color: var(--muted);
}

.daily-action-venue-effect li span {
  color: var(--ink);
  font-weight: 700;
}

.daily-action-venue-effect li span::after {
  content: ": ";
}

.daily-action-record {
  display: grid;
  gap: var(--s-2);
  margin-top: var(--s-3);
}

.daily-action-record label { display: grid; gap: 4px; font-weight: 700; }
.daily-action-record input,
.daily-action-record select {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--panel);
  padding: var(--s-2);
  font: inherit;
}
.daily-action-record button {
  justify-self: start;
  border: 1px solid var(--accent);
  border-radius: var(--r-sm);
  background: var(--accent);
  color: var(--panel);
  padding: var(--s-2) var(--s-3);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.daily-action-record button:hover { background: var(--ink); border-color: var(--ink); }
.disclosure-summary { display: inline-grid; gap: 2px; }
.disclosure-summary small { font-weight: 400; color: var(--muted); }
.safe-operation-frame { display: grid; gap: var(--s-1); margin: var(--s-3) 0; padding: var(--s-3); border-left: 3px solid var(--accent-mark); background: var(--paper-soft); color: var(--ink); }
.safe-operation-frame span, .safe-operation-frame a { font-size: var(--text-sm); }
.action-continuity { display: grid; gap: var(--s-3); margin: var(--s-4) 0; padding: var(--s-4); border: 1px solid var(--line); background: var(--paper-soft); }
.action-continuity h2 { margin: 0; font-size: var(--text-lg); }
.action-continuity ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: var(--s-2); margin: 0; padding: 0; list-style: none; }
.action-continuity li { display: grid; gap: var(--s-1); padding: var(--s-2); border-left: 3px solid var(--accent-mark); background: var(--paper); }
.action-continuity li a { display: flex; justify-content: space-between; gap: var(--s-2); color: var(--ink); }
.action-continuity li small { color: var(--muted); }
.mutation-feedback { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin: var(--s-3) 0; padding: var(--s-3); border-left: 3px solid var(--accent-mark); background: var(--paper-soft); }
.mutation-feedback p { margin: var(--s-1) 0 0; }
.daily-action-record input:focus-visible,
.daily-action-record select:focus-visible,
.daily-action-record button:focus-visible { outline: 3px solid var(--accent-mark); outline-offset: 2px; }

.outcome-record {
  margin-top: var(--s-3);
  padding: var(--s-3);
  border-left: 3px solid var(--accent);
  background: var(--soft);
}

.outcome-record p { margin: var(--s-1) 0; }
.outcome-record summary { color: var(--accent); cursor: pointer; font-weight: 700; }
.outcome-record ul { margin: var(--s-2) 0 0; padding-left: 1.25rem; }

.daily-plan-more { margin-top: var(--s-2); }
.daily-plan-more > summary { color: var(--accent); font-weight: 700; cursor: pointer; }
.daily-plan-more > details { margin-top: var(--s-2); }
.daily-handover { margin: var(--s-4) 0; padding: var(--s-3); border: 1px solid var(--line); background: var(--surface); }
.daily-handover h3 { margin: 0 0 var(--s-1); }
.daily-handover ul { display: grid; gap: var(--s-2); margin: var(--s-3) 0 0; padding: 0; list-style: none; }
.daily-handover li { display: grid; gap: 3px; }
.daily-handover span { color: var(--muted); }
.daily-handover-form { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: end; margin-top: var(--s-3); }
.daily-handover-form label { display: grid; flex: 1 1 20rem; gap: 4px; font-weight: 700; }
.daily-handover-form input { border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--panel); padding: var(--s-2); font: inherit; }
.daily-handover-form button { border: 1px solid var(--accent); border-radius: var(--r-sm); background: var(--accent); color: var(--panel); padding: var(--s-2) var(--s-3); font: inherit; font-weight: 700; cursor: pointer; }

.decision .who {
  font-size: var(--t-small);
  color: var(--muted);
  margin-top: 8px;
}

.money-line {
  font-size: var(--t-body-s);
  font-weight: 600;
  color: var(--money);
}

.money-line.is-unpriced {
  color: var(--muted);
  font-weight: 500;
}

/* --- workings ------------------------------------------------------------ */





/* --- cases --------------------------------------------------------------- */

.case-group {
  margin-bottom: 28px;
}

.case-group > h2 {
  font-size: var(--t-body-s);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

.case-group > h2 .count {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  padding: 2px 9px;
  font-size: var(--t-small);
  letter-spacing: 0;
  color: var(--ink);
}

.case {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 4px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  margin-bottom: 12px;
  box-shadow: var(--elev-1);
}

.case.is-now {
  border-left-color: var(--now);
}

.case.is-safety {
  border-left-color: var(--now);
}

.case.is-money {
  border-left-color: var(--money);
}

.case-top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.tag {
  font-size: var(--t-micro);
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--r-full);
  background: var(--accent-soft);
  color: var(--accent);
}

.tag.is-safety {
  background: var(--now-soft);
  color: var(--now);
}

.case h3,
.case h4 {
  font-size: var(--t-lead);
  line-height: var(--lh-lead);
  margin: 0 0 8px;
  letter-spacing: -0.015em;
}

.case p {
  margin: 0 0 10px;
  font-size: var(--t-body);
  line-height: var(--lh-body);
  max-width: 68ch;
}

.case-flow {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
}

.case-flow div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
  align-items: baseline;
}

.case-flow dt,
.case-flow .flow-label {
  font-size: var(--t-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.case-flow .flow-body {
  font-size: var(--t-body);
  line-height: var(--lh-body);
}

@media (max-width: 640px) {
  .case-flow div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* --- wide tables scroll inside themselves -------------------------------- */

/*
 * A table narrower than the window is a table. A table wider than the window
 * used to be a page that scrolled sideways, which moves the heading, the
 * navigation and every other paragraph off the screen to read one more column.
 *
 * Seven of the twenty-one screens did that at phone width: `/outlook` ran 262
 * pixels past the edge, `/trust` 242, `/water` 151. All of them were clean at
 * 768 and above, which is why it had not been seen. These tables carry a
 * sentence of prose in one of their columns, so there is a width below which
 * they cannot be squeezed and should not be.
 *
 * So the table scrolls and the page does not. It is written without a
 * breakpoint on purpose: the rule is that a table too wide for its container
 * scrolls, and a window is a container at every size, so a 900 pixel table in
 * an 800 pixel window is the same problem as this one. At full width nothing
 * changes, because a table that already fits has nothing to scroll.
 */
.feed-table,
.trail-terms,
.trail-days {
  display: block;
  overflow-x: auto;
  /*
   * Per axis, and the shorthand is gone from `.feed-table` below. That rule
   * used to say `overflow: hidden` to clip its own rounded corners, which is
   * later in the file and took the horizontal scroll straight back out: the
   * tables stopped running off the page and started clipping their last two
   * columns instead, with no way to reach them. Vertical clipping is what the
   * corners needed, and it is all they get.
   */
  overflow-y: hidden;
}

/* --- trust and proof ----------------------------------------------------- */

.feed-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  /* Clipping to the rounded corners is set per axis above, so that the
     horizontal axis is left free to scroll. */
  box-shadow: var(--elev-1);
  font-size: var(--t-body);
}

.feed-table:focus-visible {
  outline: 3px solid var(--accent-mark);
  outline-offset: 3px;
}

.feed-table th {
  text-align: left;
  background: #eef3f5;
  font-size: var(--t-micro);
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: var(--muted);
  padding: 10px 14px;
}

.feed-table td {
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  vertical-align: top;
}

/*
 * The row-group heading down the left of the trust table, which names the thing
 * somebody connects and spans the feeds it supplies. It takes the header cell's
 * styling above and needs the rest of a row's rules: a top border so a group
 * starts where the eye expects, and top alignment so the name sits beside the
 * first of its feeds rather than floating in the middle of five.
 */
.feed-table tbody th[scope="rowgroup"] {
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  vertical-align: top;
  white-space: normal;
}

/*
 * Three words that mean one thing. "Reading the building" broke over three lines
 * in a column sized for "Sample data", which made a live feed the hardest row on
 * the page to read.
 */
.feed-table[aria-label="Data feeds and where they are used"] td:nth-last-child(2) {
  min-width: 8.5rem;
}

.gap {
  background: var(--now-soft);
  border: 1px solid #f0d3c9;
  border-radius: var(--r-lg);
  padding: 16px 18px;
  margin-bottom: 12px;
}

.gap h2,
.gap h3,
.gap h4 {
  margin: 0 0 6px;
  font-size: var(--t-body-l);
}

.gap p {
  margin: 0 0 8px;
  font-size: var(--t-body);
  line-height: var(--lh-body);
}

.gap .ask {
  background: #fff;
  border: 1px solid #f0d3c9;
  border-radius: var(--r-md);
  padding: 10px 12px;
  font-size: var(--t-body);
}

/* --- filter -------------------------------------------------------------- */

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.filter-row button {
  font: inherit;
  font-size: var(--t-body-s);
  font-weight: 600;
  padding: 7px 14px;
  border-radius: var(--r-full);
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  cursor: pointer;
}

.filter-row button[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.filter-empty {
  font-size: var(--t-body);
  color: var(--muted);
  padding: 20px;
  background: var(--panel);
  border: 1px dashed var(--line);
  border-radius: var(--r-lg);
}

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

.spine-masthead {
  padding: 44px 0 4px;
}

.spine-masthead h1 {
  font-size: var(--t-h1);
  line-height: var(--lh-h1);
  letter-spacing: -0.015em;
  margin: 8px 0 10px;
  max-width: 22ch;
}

.spine-masthead p {
  font-size: var(--t-body-l);
  color: var(--muted);
  max-width: 68ch;
  margin: 0;
  line-height: var(--lh-body-l);
}

/* --- diagnosis ----------------------------------------------------------- */

.waiting {
  font-size: var(--t-body-s);
  font-weight: 600;
  color: var(--now);
  background: var(--now-soft);
  border-radius: var(--r-md);
  padding: 8px 12px;
  display: inline-block;
}

.case-flow em {
  font-style: normal;
  font-weight: 700;
  color: var(--accent);
}

.fold-note {
  font-size: var(--t-body-s);
  color: var(--muted);
  margin: 10px 0 8px;
  line-height: var(--lh-body-s);
}

.folded-list {
  margin: 0;
  padding-left: 18px;
  font-size: var(--t-body-s);
  color: var(--ink);
}

.folded-list li {
  margin-bottom: 4px;
}

.where-line {
  font-size: var(--t-body-s);
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: var(--r-md);
  padding: 9px 12px;
  margin: 0 0 10px;
  line-height: var(--lh-body-s);
}

/* --- one bar across every screen ---------------------------------------- */

.spine-nav {
  display: flex;
  gap: 6px;
  padding: 14px 0 0;
  flex-wrap: wrap;
}

.spine-nav a {
  text-decoration: none;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: var(--r-full);
  border: 1px solid var(--line);
  background: var(--panel);
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.spine-nav a:hover {
  border-color: var(--accent);
  color: var(--ink);
}

.spine-nav a[aria-current="page"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.spine-nav .nav-label {
  font-size: var(--t-body-s);
  font-weight: 700;
}

.spine-nav .nav-sub {
  font-size: var(--t-micro);
  opacity: 0.85;
}

/* --- charts -------------------------------------------------------------- */

.chart-row {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.chart {
  /*
   * The scroll lives here, so the box itself has to fit. It was already the
   * scrolling container and was still 430 pixels wide inside a 390 pixel
   * window, because a container that scrolls its content still takes its own
   * width from that content unless it is told not to. That is what pushed
   * `/building` off the side of a phone.
   */
  max-width: 100%;
  overflow-x: auto;
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 16px 18px 12px;
  box-shadow: var(--elev-1);
}

.chart figcaption {
  font-size: var(--t-body-s);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.chart svg {
  width: 100%;
  height: auto;
  display: block;
  min-width: 460px;
}

.chart-note {
  font-size: var(--t-small);
  color: var(--muted);
  margin: 8px 0 0;
  line-height: var(--lh-small);
}

.change-summary {
  margin: 0 0 var(--s-4);
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--r-md);
  background: var(--soft);
}

.change-summary h2 {
  margin: 0 0 var(--s-2);
  font-size: var(--t-body-l);
}

.change-summary ul {
  display: grid;
  gap: var(--s-1);
  margin: 0;
  padding-left: 1.25rem;
}

.change-summary a {
  color: var(--accent);
  font-weight: 700;
}

.page-decision {
  margin: 0 0 var(--s-4);
  padding: var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--panel);
}

.page-decision h2 {
  margin: 0 0 var(--s-2);
}

.page-decision p {
  margin: var(--s-1) 0;
}

.page-decision a {
  display: inline-block;
  margin-top: var(--s-2);
  color: var(--accent);
  font-weight: 700;
}

.module-more {
  margin-top: var(--s-3);
}

.module-more > summary {
  color: var(--accent);
  cursor: pointer;
  font-weight: 700;
}

.module-more > summary h2 {
  display: inline;
  color: inherit;
  font-size: var(--t-body);
}

.module-more > .limit-grid,
.module-more > .feed-chips {
  margin-top: var(--s-3);
}

.setup-next-step {
  margin: 0 0 var(--s-4);
  padding: var(--s-4);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--r-md);
  background: var(--soft);
}

.setup-next-step h2,
.setup-next-step p {
  margin: 0 0 var(--s-2);
}

.visual-summary {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-3);
  align-items: baseline;
  margin: 0 0 var(--s-3);
  padding: var(--s-3);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--soft);
}

.visual-summary span {
  color: var(--muted);
}

.visual-summary a {
  color: var(--accent);
  font-weight: 700;
}

/* --- the lockup ---------------------------------------------------------- */

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 56px;
  height: 56px;
  flex: none;
}

.brand-words {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand-name {
  font-size: var(--t-h2);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: var(--lh-h2);
}

.brand-mark-lead { color: #10305e; }
/*
  The second half of the wordmark, set a shade lighter than the first.

  It was the Texas Rangers red, beside their navy, which is the demonstration
  venue's identity and not this product's. A one-color wordmark in two weights
  says the same thing without borrowing a team's palette, and it does not invent
  a brand palette either: that is a decision for whoever draws the mark.
*/
.brand-mark-tail { color: #4a6fa5; }

.brand-tagline {
  font-size: var(--t-small);
  color: var(--muted);
  letter-spacing: var(--track-small);
}

@media (prefers-color-scheme: dark) {
  .brand-mark-lead { color: #9db6de; }
  .brand-mark-tail { color: #6f8fc4; }
}

/* --- the ballpark plan --------------------------------------------------- */

.park {
  display: flex;
  flex-direction: column;
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--panel);
  box-shadow: var(--elev-1);
  overflow: hidden;
}

.park-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}

.park-tabs button {
  flex: 1 1 0;
  border-bottom: 3px solid transparent;
  min-width: 132px;
  text-align: left;
  padding: 12px 16px;
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font: inherit;
  color: var(--muted);
}

.park-tabs button:hover { background: var(--soft); }

.park-tabs button.is-on {
  color: var(--ink);
  border-bottom-color: var(--accent);
  background: var(--soft);
}

.tab-name { font-size: var(--t-body-s); font-weight: 700; }
.tab-sub { font-size: var(--t-small); }

.park-body {
  display: grid;
  /* The map is the thing on this page. The panel beside it is a caption for
     whatever is selected, and a caption does not need half the width. */
  grid-template-columns: minmax(0, 1.9fr) minmax(280px, 0.85fr);
  gap: 0;
}

@media (max-width: 900px) {
  .park-body { grid-template-columns: 1fr; }
  .park-plan { border-right: 0; border-bottom: 1px solid var(--line); }
  .park-panel { max-height: none; overflow-y: visible; }
}

.park-plan {
  margin: 0;
  padding: 16px;
  border-right: 1px solid var(--line);
}

.park-plan svg {
  max-height: 620px;
  width: 100%;
  height: auto;
  display: block;
}

/* The Canvas uses a restrained plan hierarchy: site first, building mass
   second, public areas next, then current operating state. These strokes are
   only spatial context. They do not represent equipment, routes, or weather. */
.park-architectural-site {
  fill: #e7eef0;
  fill-opacity: 0.28;
  stroke: #b9c8cf;
  stroke-width: 12;
  stroke-linejoin: round;
}

.park-architectural-mass {
  fill: #f8fafb;
  fill-opacity: 0.06;
  stroke: #294d68;
  stroke-width: 6;
  stroke-linejoin: round;
  filter: drop-shadow(8px 10px 0 rgba(16, 32, 42, 0.1));
}

.park-section-selection-ring {
  stroke: #10202a;
  stroke-width: 12;
  stroke-linejoin: round;
  stroke-dasharray: 18 10;
  vector-effect: non-scaling-stroke;
}

@media (prefers-reduced-motion: reduce) {
  .park-architectural-mass { filter: none; }
}

.park-hover-card {
  display: grid;
  gap: 3px;
  margin-top: 12px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  background: #f6fafb;
  color: var(--ink);
  font-size: var(--t-body-s);
}

.park-hover-card strong { font-size: var(--t-body); }
.park-hover-card small { color: var(--muted); }

/*
 * A wedge or a marker has to look like something you can press, and it has to
 * answer when you are on it.
 *
 * Growing under the pointer is the whole of that answer. Section numbers on the
 * inner decks are small enough to be hard to read at a glance, and a block that
 * comes up to meet you is legible without anybody clicking to find out what they
 * are on.
 *
 * Scaled about its own middle. `fill-box` is what makes that possible on an SVG
 * shape: without it the origin is the viewport corner and a scale sends the
 * wedge across the picture.
 *
 * There were two of these rules, in two places in this file, one fading opacity
 * and one brightening. They are one rule now. A stylesheet holding the same
 * selector twice is the same failure as an engine holding the same constant
 * twice: both applied, nobody could see the whole of what a hover did.
 */
.park-section {
  cursor: pointer;
  transform-box: fill-box;
  transform-origin: center;
  transition:
    opacity var(--dur-fast, 110ms) ease,
    filter var(--dur-fast, 110ms) ease,
    transform var(--dur-fast, 110ms) ease;
}

.park-section:hover,
.park-section:focus-visible {
  opacity: 1;
  filter: brightness(1.06);
  transform: scale(1.28);
}

.park-section:focus-visible { outline: 3px solid #10202a; outline-offset: 2px; }

.park-venue-feature {
  cursor: help;
  transform-box: fill-box;
  transform-origin: center;
}

.park-venue-feature:hover,
.park-venue-feature:focus-visible { filter: brightness(0.9); }

/* A marker is a small target, so it grows further than a seat block does. */
.park-space:hover,
.park-space:focus-visible {
  transform: scale(1.75);
}

@media (prefers-reduced-motion: reduce) {
  .park-section { transition: none; }
  .park-section:hover,
  .park-section:focus-visible,
  .park-space:hover,
  .park-space:focus-visible {
    transform: none;
  }
}

.park-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: var(--t-small);
  color: var(--muted);
  margin-top: 10px;
  align-items: center;
}

.park-legend i {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: var(--r-sm);
  margin-right: 5px;
  vertical-align: -1px;
}

.park-source { font-style: normal; }

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

.park-panel {
  padding: 18px 20px;
  max-height: 620px;
  overflow-y: auto;
}

.park-kicker {
  font-size: var(--t-small);
  color: var(--muted);
  margin: 0 0 2px;
  text-transform: none;
}

.park-detail h3 {
  font-size: var(--t-h3);
  margin: 0 0 6px;
  letter-spacing: -0.015em;
}

.park-detail h4 {
  font-size: var(--t-body-s);
  margin: 16px 0 6px;
}

.park-note, .park-caveat {
  font-size: var(--t-small);
  color: var(--muted);
  line-height: var(--lh-small);
  margin: 6px 0 0;
}

.park-facts {
  margin: 14px 0 0;
  display: grid;
  gap: 10px;
}

.park-facts dt {
  font-size: var(--t-micro);
  font-weight: 700;
  letter-spacing: var(--track-small);
  text-transform: uppercase;
  color: var(--muted);
}

.park-facts dd {
  margin: 2px 0 0;
  font-size: var(--t-body-s);
  line-height: var(--lh-body-s);
}

.park-conclusion {
  margin: 14px 0 0;
  font-size: var(--t-body-s);
  line-height: var(--lh-body-s);
}

.park-do {
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--soft);
  border-radius: var(--r-md);
}

.park-do strong {
  font-size: var(--t-micro);
  letter-spacing: var(--track-small);
  text-transform: uppercase;
  color: var(--muted);
}

.park-do p { margin: 5px 0 0; font-size: var(--t-body-s); line-height: var(--lh-body-s); }
.park-do .who { font-size: var(--t-small); color: var(--muted); }

.park-cases details {
  border-top: 1px solid var(--line);
  padding: 9px 0;
  font-size: var(--t-body-s);
}

.park-cases summary { cursor: pointer; line-height: 1.45; }
.park-cases p { margin: 8px 0 0; line-height: 1.5; }

.park-back {
  background: none;
  border: 0;
  padding: 0 0 8px;
  font: inherit;
  font-size: var(--t-small);
  color: var(--accent);
  cursor: pointer;
}

.park-back:hover { text-decoration: underline; }

/* --- the frame: sidebar and content -------------------------------------- */

.spine-frame {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 276px minmax(0, 1fr);
  gap: var(--s-7);
  max-width: 1360px;
  width: min(100%, 1360px);
  /* Both ordinary and wide workspaces start at this edge. Keeping the
     padding inside the measured width prevents the navigation rail from
     shifting when a reader enters a drawing or executive screen. */
  margin-left: max(0px, calc((100vw - 1360px) / 2));
  margin-right: auto;
  padding: 0 var(--s-5) var(--s-8);
  align-items: start;
}

@media (max-width: 940px) {
  .spine-frame {
    grid-template-columns: 1fr;
    gap: var(--s-5);
  }

  .spine-frame > .spine-side {
    display: none;
  }
}

.spine-side {
  position: sticky;
  top: 64px;
  align-self: start;
  box-sizing: border-box;
  padding: var(--s-5) 0 var(--s-6);
  /* Pinned to the top with no way down. The nav is taller than a laptop screen
     once every section is in it, and sticky alone means the bottom entries are
     simply unreachable: the page scrolls past them and they stay put. It gets
     its own scroll, bounded by what is left of the viewport below the bar. */
  height: calc(100vh - 64px);
  height: calc(100dvh - 64px);
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

@media (max-width: 940px) {
  .spine-side {
    position: static;
    padding-bottom: 0;
    /* Stacked above the page, it is just part of the document again. */
    max-height: none;
    overflow-y: visible;
  }
}

.side-brand {
  padding: 0 var(--s-3) var(--s-5);
}

.side-version {
  color: var(--muted);
  font-size: var(--t-micro);
  letter-spacing: var(--track-caps);
  margin: var(--s-2) 0 0;
  text-transform: uppercase;
}

.side-group {
  margin-bottom: var(--s-5);
}

.side-heading {
  align-items: center;
  list-style: none;
  font-size: var(--t-micro);
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin: 0 0 var(--s-2);
  padding: 0 var(--s-3);
  cursor: pointer;
  display: flex;
}

.side-heading::-webkit-details-marker {
  display: none;
}

.side-heading::after {
  color: var(--muted);
  content: "+";
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
  margin-left: auto;
}

.side-group[open] .side-heading::after {
  content: "−";
}

.side-group-links {
  display: grid;
  gap: var(--s-1);
}

.spine-side a {
  display: block;
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-md);
  text-decoration: none;
  color: var(--ink);
  border-left: 3px solid transparent;
}

.spine-side a:hover {
  background: var(--panel);
}

.spine-side a.is-here {
  background: var(--accent-soft);
  border-left-color: var(--accent);
}

.side-label {
  display: block;
  font-size: var(--t-body);
  font-weight: 600;
  line-height: var(--lh-body);
}

.spine-side a.is-here .side-label {
  color: var(--accent);
}

.side-sub {
  display: block;
  font-size: var(--t-small);
  color: var(--muted);
  margin-top: 1px;
  line-height: var(--lh-small);
}

.spine-main {
  /*
    Leading space, trimmed.

    The first control on a screen was landing below the fold on a laptop with
    nothing but gaps above it: a sticky context bar, this padding, the title
    block, and two 48px gaps before the first section. None of that is content,
    and on a 712px viewport it added up to more than the viewport itself.

    Only the space ABOVE the fold is reduced. The rhythm between sections
    further down a page is left alone, because that spacing is doing a job once
    somebody is reading rather than looking for where to start.
  */
  padding-top: var(--s-5);
  min-width: 0;
  /*
   * A word with nowhere to break in it breaks the page instead.
   *
   * Not prose. These screens print the things the product reads: endpoints,
   * point names, meter identifiers. `POST /digitaltwins/{id}/components/
   * {componentPath}/telemetry` is one string with no spaces in it, and on a
   * phone it ran straight out of its own box and took `/catalogue` sideways
   * with it. That is why nothing turned up when the boxes were measured. Every
   * box fitted. The text inside one did not.
   *
   * `break-word` rather than `anywhere`, so a long word is only ever broken
   * when leaving it whole would overflow, and ordinary sentences are laid out
   * exactly as they were.
   */
  overflow-wrap: break-word;
}

.decision-context {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  margin: 0 0 1.25rem;
  color: var(--ink-muted);
  font-size: 0.82rem;
}

.decision-context-row {
  display: inline-flex;
  gap: 0.35rem;
  align-items: baseline;
}

.decision-context-row > span {
  color: var(--ink-muted);
}

.decision-context-row strong,
.decision-context-row a {
  color: var(--ink);
  font-weight: 650;
}

.spine-mobile-nav {
  display: none;
}

@media (max-width: 940px) {
  .spine-mobile-nav {
    display: block;
    margin-bottom: var(--s-5);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--panel);
    box-shadow: var(--elev-1);
  }

  .spine-mobile-nav > summary {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--s-1) var(--s-3);
    align-items: center;
    padding: var(--s-3) var(--s-4);
    color: var(--accent);
    cursor: pointer;
    list-style: none;
  }

  .spine-mobile-nav > summary::-webkit-details-marker {
    display: none;
  }

  .spine-mobile-nav > summary::after {
    content: "Menu";
    grid-column: 2;
    grid-row: 1 / span 2;
    padding: var(--s-1) var(--s-2);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-full);
    color: var(--ink);
    font-size: var(--t-small);
    font-weight: 650;
  }

  .spine-mobile-nav[open] > summary::after {
    content: "Close";
  }

  .spine-mobile-nav > summary span {
    font-size: var(--t-micro);
    font-weight: 700;
    letter-spacing: var(--track-caps);
    text-transform: uppercase;
  }

  .spine-mobile-nav > summary strong {
    color: var(--ink);
    font-size: var(--t-body);
  }

  .spine-mobile-links {
    padding: var(--s-4);
    border-top: 1px solid var(--line);
  }

  .spine-mobile-links .side-brand {
    display: none;
  }

  .spine-mobile-links .side-group:last-child {
    margin-bottom: 0;
  }
}

/* --- page furniture ------------------------------------------------------ */

.page-head {
  margin-bottom: var(--s-5);
}

.page-head h1 {
  font-size: var(--t-h1);
  line-height: var(--lh-h1);
  letter-spacing: -0.015em;
  margin: var(--s-2) 0 var(--s-3);
  max-width: 24ch;
}

.page-block {
  margin-top: var(--s-7);
}
/*
  The first two blocks on a page sit closer to the title than the rest do.

  A 48px gap is right between two sections somebody is reading through, and it
  is a lot of nothing between a page title and the first thing on the page.
*/
.page-head + .page-block,
.page-head + .page-block + .page-block {
  margin-top: var(--s-5);
}

.page-block h2 {
  font-size: var(--t-h3);
  letter-spacing: -0.015em;
  margin: 0 0 var(--s-3);
}

.proof-readiness-grid,
.proof-source-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-3);
  margin-top: var(--s-4);
}

.proof-readiness-grid > article,
.proof-source-grid > article,
.proof-run-list > article {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--panel);
  padding: var(--s-4);
}

.proof-readiness-grid > article {
  border-top: 4px solid var(--money-mark);
}

.proof-readiness-grid > article.is-open {
  border-top-color: var(--now-mark);
}

.proof-readiness-grid h3,
.proof-source-grid h3,
.proof-run-list h3 {
  margin: var(--s-1) 0 var(--s-2);
  font-size: var(--t-body-l);
}

.proof-readiness-grid p,
.proof-source-grid p,
.proof-run-list p {
  overflow-wrap: anywhere;
}

.proof-state,
.proof-source-class {
  margin: 0;
  color: var(--accent);
  font-size: var(--t-micro);
  font-weight: 700;
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
}

.proof-source-grid details {
  margin: var(--s-3) 0;
}

.proof-source-grid summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 700;
}

.proof-source-grid a {
  color: var(--accent);
  font-weight: 700;
}

.proof-run-list {
  display: grid;
  gap: var(--s-3);
  margin-top: var(--s-4);
}

.proof-run-list dl {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}

.proof-run-list dl > div {
  border-radius: var(--r-sm);
  background: var(--accent-soft);
  padding: var(--s-2) var(--s-3);
}

.proof-run-list dt {
  color: var(--muted);
  font-size: var(--t-micro);
}

.proof-run-list dd {
  margin: 0;
  font-weight: 700;
}

@media (max-width: 42rem) {
  .proof-readiness-grid,
  .proof-source-grid {
    grid-template-columns: 1fr;
  }
}

.page-note {
  margin-top: var(--s-3);
}

.page-next {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
}

.page-next a {
  flex: 1 1 260px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-3) var(--s-4);
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--elev-1);
}

.page-next a:hover {
  border-color: var(--accent);
}

.next-kicker {
  display: block;
  font-size: var(--t-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.next-label {
  display: block;
  font-size: var(--t-body);
  font-weight: 600;
  margin-top: 2px;
}

/* --- start here ---------------------------------------------------------- */

.start-first {
  margin-top: var(--s-6);
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 4px solid var(--now);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  box-shadow: var(--elev-1);
}

.start-urgent {
  font-size: var(--t-lead);
  line-height: var(--lh-lead);
  margin: var(--s-2) 0 var(--s-3);
  max-width: 62ch;
}

.start-do {
  font-size: var(--t-body);
  line-height: var(--lh-body);
  margin: 0 0 var(--s-4);
  max-width: 68ch;
}

.start-cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-size: var(--t-body);
  font-weight: 600;
  padding: var(--s-2) var(--s-4);
  border-radius: var(--r-md);
}

.start-cta:hover {
  background: #0a4c5a;
}

.start-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  align-items: center;
}

.start-secondary {
  color: var(--accent);
  font-size: var(--t-body);
  font-weight: 650;
  text-underline-offset: 3px;
}

.step-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--s-4);
}

.step-cards li {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-4);
  box-shadow: var(--elev-1);
}

.step-cards h3 {
  font-size: var(--t-body-l);
  margin: var(--s-1) 0 var(--s-2);
}

.step-cards p {
  font-size: var(--t-body-s);
  line-height: var(--lh-body-s);
  margin: 0 0 var(--s-2);
}

.step-why {
  color: var(--muted);
}

/* --- one event from planning through proof ------------------------------ */

.event-head { margin-bottom: var(--s-5); }

.event-at-a-glance {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: var(--s-4);
  margin-bottom: var(--s-7);
}

.event-now {
  padding: var(--s-5);
  border: 1px solid #c7dce1;
  border-left: 4px solid var(--accent-mark);
  border-radius: var(--r-lg);
  background: var(--accent-soft);
}

.event-now h2 {
  margin: var(--s-1) 0 var(--s-2);
  font-size: var(--t-h2);
  line-height: var(--lh-h2);
}

.event-now > p:not(.spine-eyebrow) {
  max-width: 58ch;
  margin: 0 0 var(--s-4);
  line-height: var(--lh-body);
}

.event-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--panel);
}

.event-facts > div {
  min-width: 0;
  padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--line);
}

.event-facts > div:nth-child(odd) { border-right: 1px solid var(--line); }
.event-facts > div:nth-last-child(-n + 2) { border-bottom: 0; }

.event-facts dt,
.event-phase {
  display: block;
  color: var(--muted);
  font-size: var(--t-micro);
  font-weight: 700;
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
}

.event-facts dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
  font-size: var(--t-body);
  font-weight: 650;
}

.event-journey > ol {
  position: relative;
  display: grid;
  gap: var(--s-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.event-journey > ol::before {
  position: absolute;
  top: 28px;
  bottom: 28px;
  left: 23px;
  width: 2px;
  background: var(--line-strong);
  content: "";
}

.event-step {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: var(--s-4);
  align-items: start;
}

.event-step-number {
  position: relative;
  z-index: 1;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 2px solid var(--line-strong);
  border-radius: var(--r-full);
  background: var(--panel);
  color: var(--ink);
  font-size: var(--t-body-l);
  font-weight: 750;
}

.event-step.is-current .event-step-number {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.event-step > article {
  padding: var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--panel);
  box-shadow: var(--elev-1);
}

.event-step.is-current > article {
  border-color: var(--accent-mark);
  box-shadow: inset 4px 0 0 var(--accent-mark), var(--elev-1);
}

.event-step-head {
  display: flex;
  gap: var(--s-3);
  align-items: start;
  justify-content: space-between;
}

.event-step-head h2 {
  margin: 2px 0 0;
  font-size: var(--t-h3);
  line-height: var(--lh-h3);
}

.event-status {
  flex: 0 0 auto;
  padding: 3px 9px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-full);
  background: var(--page);
  color: var(--muted);
  font-size: var(--t-micro);
  font-weight: 700;
}

.event-status.is-now,
.event-status.is-attention {
  border-color: #e1aa9c;
  background: var(--now-soft);
  color: var(--now);
}

.event-status.is-ready,
.event-status.is-proved {
  border-color: #add1bd;
  background: var(--money-soft);
  color: var(--money);
}

.event-summary {
  max-width: 72ch;
  margin: var(--s-3) 0;
  font-size: var(--t-body-l);
  line-height: var(--lh-body-l);
}

.event-step-detail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-3);
  margin: 0;
}

.event-step-detail > div {
  padding: var(--s-3);
  border-radius: var(--r-md);
  background: var(--page);
}

.event-step-detail dt {
  margin-bottom: var(--s-1);
  color: var(--accent);
  font-size: var(--t-small);
  font-weight: 750;
}

.event-step-detail dd {
  margin: 0;
  color: var(--muted);
  font-size: var(--t-body-s);
  line-height: var(--lh-body-s);
}

.event-step-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  align-items: center;
  margin-top: var(--s-4);
}

.event-step-links a {
  color: var(--accent);
  font-size: var(--t-body-s);
  font-weight: 650;
  text-underline-offset: 3px;
}

.event-step-links .event-step-go {
  padding: var(--s-2) var(--s-3);
  border: 1px solid var(--accent);
  border-radius: var(--r-md);
  background: var(--accent);
  color: #ffffff;
  text-decoration: none;
}

.event-step-links .event-step-go:hover,
.event-step-links .event-step-go:focus-visible {
  background: #0a4c5a;
}

.event-rule {
  padding: var(--s-4);
  border: 1px solid var(--line);
  border-left: 4px solid var(--line-strong);
  border-radius: var(--r-lg);
  background: var(--panel);
}

.event-rule h2 { margin-bottom: var(--s-2); }
.event-rule .spine-carry { margin: 0; }

@media (max-width: 820px) {
  .event-at-a-glance { grid-template-columns: minmax(0, 1fr); }
  .event-step-detail { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 540px) {
  .event-facts { grid-template-columns: minmax(0, 1fr); }
  .event-facts > div:nth-child(odd) { border-right: 0; }
  .event-facts > div:nth-last-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .event-facts > div:last-child { border-bottom: 0; }
  .event-journey > ol::before { left: 17px; }
  .event-step { grid-template-columns: 36px minmax(0, 1fr); gap: var(--s-3); }
  .event-step-number { width: 36px; height: 36px; font-size: var(--t-body); }
  .event-step-head { display: grid; }
  .event-status { justify-self: start; }
  .event-now, .event-step > article { padding: var(--s-4); }
}

/* --- deterministic rehearsal of a future AI scan ----------------------- */

.scan-head { margin-bottom: var(--s-5); }

.scan-boundary {
  display: grid;
  grid-template-columns: minmax(180px, 0.45fr) minmax(0, 1.55fr);
  gap: var(--s-4);
  align-items: start;
  margin-bottom: var(--s-5);
  padding: var(--s-4);
  border: 1px solid #e1aa9c;
  border-left: 4px solid var(--now);
  border-radius: var(--r-lg);
  background: var(--now-soft);
}

.scan-boundary h2 {
  margin: var(--s-1) 0 0;
  font-size: var(--t-h3);
}

.scan-boundary > p {
  max-width: 76ch;
  margin: 0;
  line-height: var(--lh-body);
}

.scan-controls,
.scan-pack,
.scan-progress,
.scan-result {
  margin-bottom: var(--s-5);
  padding: var(--s-5);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--panel);
  box-shadow: var(--elev-1);
}

.scan-controls > div:first-child h2,
.scan-pack h2,
.scan-progress h2 {
  margin: var(--s-1) 0 var(--s-2);
  font-size: var(--t-h2);
}

.scan-controls > div:first-child p:last-child {
  max-width: 72ch;
  margin: 0 0 var(--s-4);
  color: var(--muted);
  line-height: var(--lh-body);
}

.scan-picker {
  display: grid;
  gap: var(--s-1);
  max-width: 720px;
}

.scan-picker > span {
  font-size: var(--t-small);
  font-weight: 750;
}

.scan-picker select {
  width: 100%;
  min-height: 44px;
  padding: var(--s-2) var(--s-3);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}

.scan-picker select:focus-visible,
.scan-run:focus-visible,
.scan-stop:focus-visible,
.scan-finding summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.scan-condition {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-3);
  margin: var(--s-4) 0;
}

.scan-condition > div,
.scan-stage-detail > div {
  padding: var(--s-3);
  border-radius: var(--r-md);
  background: var(--page);
}

.scan-condition dt,
.scan-stage-detail dt,
.scan-four dt {
  margin-bottom: var(--s-1);
  color: var(--accent);
  font-size: var(--t-small);
  font-weight: 750;
}

.scan-condition dd,
.scan-stage-detail dd,
.scan-four dd {
  margin: 0;
  color: var(--muted);
  font-size: var(--t-body-s);
  line-height: var(--lh-body-s);
}

.scan-run-controls {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  align-items: center;
}

.scan-run,
.scan-stop {
  min-height: 44px;
  padding: var(--s-2) var(--s-4);
  border: 1px solid var(--accent);
  border-radius: var(--r-md);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.scan-run {
  background: var(--accent);
  color: #ffffff;
}

.scan-run:hover { background: #0a4c5a; }

.scan-stop {
  border-color: var(--now);
  background: var(--surface);
  color: var(--now);
}

.scan-run-controls p {
  flex: 1 1 320px;
  margin: 0;
  color: var(--muted);
  font-size: var(--t-body-s);
}

.scan-pack-head,
.scan-progress-head,
.scan-verdict {
  display: flex;
  gap: var(--s-4);
  align-items: start;
  justify-content: space-between;
}

.scan-pack-head > span,
.scan-verdict > strong {
  flex: 0 0 auto;
  padding: 5px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-full);
  color: var(--muted);
  font-size: var(--t-small);
  font-weight: 750;
}

.scan-pack-counts,
.scan-result-counts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: var(--s-4) 0;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}

.scan-pack-counts > div,
.scan-result-counts > div {
  padding: var(--s-3);
  border-right: 1px solid var(--line);
}

.scan-pack-counts > div:last-child,
.scan-result-counts > div:last-child { border-right: 0; }

.scan-pack-counts dt,
.scan-result-counts dt {
  color: var(--muted);
  font-size: var(--t-micro);
  font-weight: 700;
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
}

.scan-pack-counts dd,
.scan-result-counts dd {
  margin: var(--s-1) 0 0;
  font-size: var(--t-h3);
  font-weight: 750;
}

.scan-pack-rule {
  display: grid;
  gap: var(--s-2);
  padding: var(--s-3);
  border-radius: var(--r-md);
  background: var(--page);
}

.scan-pack-rule p {
  margin: 0;
  font-size: var(--t-body-s);
  line-height: var(--lh-body-s);
}

.scan-progress {
  border-color: #bfd7de;
  background: #f8fbfc;
}

.scan-progress-head > strong {
  color: var(--accent);
  font-size: var(--t-h2);
  font-variant-numeric: tabular-nums;
}

.scan-progress-bar {
  height: 8px;
  margin: var(--s-3) 0 var(--s-4);
  overflow: hidden;
  border-radius: var(--r-full);
  background: var(--line);
}

.scan-progress-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent-mark);
  transition: width 180ms ease;
}

.scan-stage-list {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: var(--s-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.scan-stage-list li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: var(--s-2);
  align-items: start;
  min-width: 0;
  padding: var(--s-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--panel);
}

.scan-stage-list li > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-full);
  font-size: var(--t-small);
  font-weight: 750;
}

.scan-stage-list strong,
.scan-stage-list small { display: block; }

.scan-stage-list strong {
  overflow-wrap: anywhere;
  font-size: var(--t-small);
  line-height: var(--lh-small);
}

.scan-stage-list small {
  margin-top: 3px;
  color: var(--muted);
  font-size: var(--t-micro);
}

.scan-stage-list li.is-active {
  border-color: var(--accent-mark);
  background: var(--accent-soft);
}

.scan-stage-list li.is-active > span {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.scan-stage-list li.is-done > span {
  border-color: var(--money);
  background: var(--money-soft);
  color: var(--money);
}

.scan-stage-detail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-3);
  margin: var(--s-4) 0 0;
}

.scan-waiting {
  max-width: 76ch;
  margin: var(--s-4) 0 0;
  color: var(--muted);
  font-size: var(--t-body-s);
  line-height: var(--lh-body-s);
}

.scan-result {
  padding: 0;
  overflow: hidden;
}

.scan-verdict {
  padding: var(--s-5);
  border-left: 5px solid var(--line-strong);
  background: var(--page);
}

.scan-verdict.is-stop {
  border-left-color: var(--now);
  background: var(--now-soft);
}

.scan-verdict.is-boundary {
  border-left-color: #b47816;
  background: #fdf6e8;
}

.scan-verdict.is-attention { border-left-color: var(--accent-mark); }
.scan-verdict.is-clear { border-left-color: var(--money); }

.scan-verdict h2 {
  margin: var(--s-1) 0 var(--s-2);
  font-size: var(--t-h2);
}

.scan-verdict p:last-child {
  max-width: 72ch;
  margin: 0;
  line-height: var(--lh-body);
}

.scan-result-counts {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: var(--s-4) var(--s-5);
}

.scan-findings {
  display: grid;
  gap: var(--s-3);
  padding: 0 var(--s-5) var(--s-5);
}

.scan-finding {
  border: 1px solid var(--line);
  border-left: 4px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--panel);
}

.scan-finding.is-stop { border-left-color: var(--now); }
.scan-finding.is-attention { border-left-color: var(--accent-mark); }
.scan-finding.is-boundary { border-left-color: #b47816; }

.scan-finding summary {
  display: grid;
  grid-template-columns: minmax(140px, 0.35fr) minmax(0, 1fr) auto;
  gap: var(--s-3);
  align-items: center;
  min-height: 52px;
  padding: var(--s-3) var(--s-4);
  cursor: pointer;
}

.scan-finding summary > span {
  color: var(--muted);
  font-size: var(--t-small);
  font-weight: 650;
}

.scan-finding summary > strong {
  font-size: var(--t-body);
}

.scan-finding summary > small {
  color: var(--muted);
  font-size: var(--t-small);
}

.scan-finding[open] summary { border-bottom: 1px solid var(--line); }

.scan-finding-body {
  padding: var(--s-4);
}

.scan-four {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-3);
  margin: 0;
}

.scan-four > div {
  padding: var(--s-3);
  border-radius: var(--r-md);
  background: var(--page);
}

.scan-evidence {
  margin: var(--s-4) 0;
}

.scan-evidence h3 {
  margin: 0 0 var(--s-2);
  font-size: var(--t-body);
}

.scan-evidence ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: var(--s-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.scan-evidence li {
  display: grid;
  gap: 3px;
  padding: var(--s-3);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

.scan-evidence span,
.scan-evidence small {
  color: var(--muted);
  font-size: var(--t-small);
}

.scan-finding-body > a {
  color: var(--accent);
  font-weight: 700;
  text-underline-offset: 3px;
}

.scan-guardrails {
  padding: var(--s-5);
  border-top: 1px solid var(--line);
  background: var(--page);
}

.scan-guardrails h2 {
  margin: 0 0 var(--s-3);
  font-size: var(--t-h3);
}

.scan-guardrails ul {
  display: grid;
  gap: var(--s-2);
  margin: 0;
  padding-left: 1.2rem;
}

.scan-guardrails li {
  padding-left: var(--s-1);
  font-size: var(--t-body-s);
  line-height: var(--lh-body-s);
}

@media (max-width: 1050px) {
  .scan-stage-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .scan-boundary,
  .scan-condition,
  .scan-stage-detail,
  .scan-four { grid-template-columns: minmax(0, 1fr); }

  .scan-controls,
  .scan-pack,
  .scan-progress { padding: var(--s-4); }

  .scan-pack-head,
  .scan-progress-head,
  .scan-verdict { display: grid; }

  .scan-pack-head > span,
  .scan-verdict > strong { justify-self: start; }

  .scan-pack-counts,
  .scan-result-counts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .scan-pack-counts > div,
  .scan-result-counts > div { border-bottom: 1px solid var(--line); }

  .scan-pack-counts > div:nth-child(even),
  .scan-result-counts > div:nth-child(even) { border-right: 0; }

  .scan-pack-counts > div:last-child,
  .scan-result-counts > div:nth-last-child(-n + 2) { border-bottom: 0; }

  .scan-result-counts,
  .scan-findings { margin-left: var(--s-4); margin-right: var(--s-4); }

  .scan-findings { padding: 0 0 var(--s-4); }
  .scan-verdict, .scan-guardrails { padding: var(--s-4); }

  .scan-finding summary {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s-1);
  }
}

@media (max-width: 520px) {
  .scan-stage-list,
  .scan-pack-counts,
  .scan-result-counts { grid-template-columns: minmax(0, 1fr); }

  .scan-pack-counts > div,
  .scan-result-counts > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .scan-pack-counts > div:last-child,
  .scan-result-counts > div:last-child { border-bottom: 0; }
}

.limit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--s-4);
  margin-top: var(--s-4);
}

.limit {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-4);
  box-shadow: var(--elev-1);
}

.limit h3 {
  font-size: var(--t-body);
  margin: 0 0 var(--s-2);
  color: var(--accent);
}

.limit p {
  font-size: var(--t-body-s);
  line-height: var(--lh-body-s);
  margin: 0;
}

.feed-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  padding: 0;
  margin: var(--s-4) 0 0;
}

.feed-chips li {
  /*
    A card rather than a pill, because each one now carries what it reads as
    well as whether it reads. Ten endpoints are sentences, not words, and a pill
    row wrapped them into an unreadable ribbon.
  */
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--s-2) var(--s-3);
  background: var(--panel);
  font-size: var(--t-small);
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 13rem;
  flex: 1 1 13rem;
  max-width: 22rem;
}

.feed-chips li small {
  color: var(--muted);
  line-height: var(--lh-small);
}

/* What each feed is for: the source, what it feeds, and what stops without it. */
.feed-chain {
  margin-top: var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--panel);
}

.feed-chain > summary {
  cursor: pointer;
  padding: var(--s-3) var(--s-4);
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-weight: 600;
}

.feed-chain > summary small {
  font-weight: 400;
  color: var(--muted);
  font-size: var(--t-small);
}

.feed-chain-body {
  padding: 0 var(--s-4) var(--s-4);
}

.feed-chain-rows {
  list-style: none;
  padding: 0;
  margin: var(--s-3) 0 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

.feed-chain-rows > li {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) minmax(14rem, 1.2fr) minmax(14rem, 1.4fr);
  gap: var(--s-3);
  padding: var(--s-3);
  border: 1px solid var(--line);
  border-left: 3px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper, #fff);
}

.feed-chain-rows > li.is-reading {
  border-left-color: var(--accent);
}

.feed-chain-rows > li.is-partly {
  border-left-color: var(--now);
}

.feed-chain-source strong {
  display: block;
}

.feed-chain-endpoint,
.feed-chain-state {
  display: block;
  font-size: var(--t-small);
  line-height: var(--lh-small);
  color: var(--muted);
}

.feed-chain-heading {
  display: block;
  font-size: var(--t-small);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 2px;
}

.feed-chain-what p,
.feed-chain-breaks p {
  margin: 0;
  font-size: var(--t-body-s);
  line-height: var(--lh-body);
}

.feed-chain-what ul {
  list-style: none;
  padding: 0;
  margin: var(--s-2) 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.feed-chain-what ul li {
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  padding: 0 var(--s-2);
  font-size: var(--t-small);
  color: var(--muted);
}

.feed-chain-what ul li.is-live {
  border-color: var(--accent);
  color: var(--accent);
}

@media (max-width: 900px) {
  .feed-chain-rows > li {
    grid-template-columns: 1fr;
  }
}

.feed-chips strong {
  font-weight: 600;
}

.feed-chips span {
  color: var(--muted);
  margin-left: var(--s-2);
}

.feed-chips li.is-live {
  border-color: var(--money);
  /* A live feed is marked down its edge as well as by its border colour, so it
     reads as connected at a glance in a column of ten. */
  border-left-width: 3px;
}

/* --- patterns ------------------------------------------------------------ */

.tally-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--s-4);
}

.tally {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-4);
  box-shadow: var(--elev-1);
}

.tally-value {
  display: block;
  font-size: var(--t-h2);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--accent);
}

.tally-name {
  display: block;
  font-size: var(--t-body);
  font-weight: 600;
  margin: var(--s-1) 0 var(--s-2);
}

.tally-plain {
  display: block;
  font-size: var(--t-body-s);
  color: var(--muted);
  line-height: var(--lh-body-s);
}

.case-conclusion {
  border-left: 3px solid var(--accent);
  padding-left: var(--s-3);
  margin: var(--s-3) 0;
}

.case-verify {
  font-size: var(--t-body-s);
  color: var(--muted);
  margin-top: var(--s-3);
}

/* Section rhythm inside a page. Every top level section of a screen gets the
   same gap above it and the same heading size, so the eye can find the seams
   without reading. Without this the headings inherit body size and a page
   reads as one undifferentiated column. */

.spine-main > section {
  margin-top: var(--s-7);
}

.spine-main > section > h2,
.spine-main > section h2 {
  font-size: var(--t-h3);
  line-height: var(--lh-h3);
  letter-spacing: -0.015em;
  margin: 0 0 var(--s-3);
}

.spine-main > section > h2 + .spine-lede {
  margin-bottom: var(--s-4);
}

.chart-unit {
  font-weight: 400;
  color: var(--muted);
}

.park-list {
  margin: var(--s-2) 0 0;
  padding-left: 18px;
  font-size: var(--t-body-s);
  line-height: 1.6;
}

/* A screen whose content is a drawing needs the width more than prose does.
   The sidebar stays put so the reader does not lose their place. */
.spine-frame.is-wide {
  max-width: 1680px;
  /* Let the workspace use the room to the right of the shared rail without
     changing the rail's measured left edge. */
  width: min(1680px, calc(100% - max(0px, calc((100vw - 1360px) / 2))));
  /* A wide canvas may extend to the right, but the navigation begins on the
     same vertical line as every ordinary page. Centering this larger frame
     moved the rail left whenever a reader opened a wide workspace. */
  margin-left: max(0px, calc((100vw - 1360px) / 2));
  margin-right: auto;
}

.get-ready {
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  background: var(--panel);
  border-radius: var(--r-md);
  box-shadow: var(--elev-1);
  margin: 0 0 var(--s-5);
  padding: var(--s-4);
}

.get-ready-head {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  justify-content: space-between;
}

.get-ready h2 { margin: 0; }
.get-ready .spine-lede { margin: var(--s-2) 0 0; }
.get-ready-steps { margin-top: var(--s-3); }
.get-ready-steps summary { color: var(--accent); cursor: pointer; font-weight: 700; }
.get-ready-steps ol { display: grid; gap: var(--s-2); margin: var(--s-3) 0 0; padding: 0; }
.get-ready-steps li { border-left: 3px solid var(--line-strong); display: grid; gap: 2px; list-style: none; padding-left: var(--s-3); }
.get-ready-steps li.is-complete { border-left-color: var(--money); }
.get-ready-steps li.is-needs-attention { border-left-color: var(--now); }
.get-ready-steps li.is-current { border-left-color: var(--accent); }
.get-ready-steps li > span { color: var(--muted); font-size: var(--t-small); }
.get-ready-steps p { margin: 0; }
.get-ready-steps a { color: var(--accent); font-size: var(--t-body-s); font-weight: 700; }

.financial-readiness {
  background: var(--panel-muted);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-md);
  margin: 0 0 var(--s-5);
  padding: var(--s-4);
}
.financial-readiness.is-unavailable { border-left-color: var(--now); }
.financial-readiness.is-measured-outcome { border-left-color: var(--money); }
.financial-readiness h2 { margin: 0 0 var(--s-2); }
.financial-readiness p { margin: var(--s-2) 0; }
.financial-readiness a { color: var(--accent); font-weight: 700; }

@media (max-width: 640px) {
  .get-ready-head { align-items: stretch; flex-direction: column; }
  .get-ready-head .start-cta { justify-content: center; }
}

/* The drawing is the content on this screen, so it gets the room. The reading
   panel is capped rather than sharing the width evenly, because a panel of
   short facts does not improve past about 380px while a plan does. */
.spine-frame.is-wide .park-body {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
}

.spine-frame.is-wide .park-plan {
  padding: var(--s-2) var(--s-3);
}

.spine-frame.is-wide .park-plan svg {
  max-height: 860px;
}

.spine-frame.is-wide .park-panel {
  max-height: 900px;
}

/* The wide canvas reserves a reading panel on desktop. That selector is more
   specific than the ordinary narrow-screen rule above, so it must be reset at
   the same specificity. Without this, a phone kept a 320px detail column and
   compressed the plan into the remaining sliver. */
@media (max-width: 900px) {
  .spine-frame.is-wide .park-body { grid-template-columns: minmax(0, 1fr); }
  .spine-frame.is-wide .park-plan { padding: var(--s-3); border-right: 0; border-bottom: 1px solid var(--line); }
  .spine-frame.is-wide .park-plan svg { width: 100%; max-height: none; }
  .spine-frame.is-wide .park-panel { max-height: none; overflow-y: visible; }
}

/* The plan breaks out past the reading column on a wide screen, because a
   measure that suits prose is far too narrow for a map. */
@media (min-width: 1500px) {
  .spine-frame.is-wide {
    grid-template-columns: 276px minmax(0, 1fr);
    gap: var(--s-6);
    max-width: none;
    padding-right: var(--s-6);
  }
}

/* Two pictures across once there is room, rather than one long column. */
.chart-row.is-two-up {
  /*
   * Two charts side by side where there is room for two, and one where there
   * is not. `minmax(430px, 1fr)` says the second half of that and not the
   * first: below 430 the track stays 430 and hangs over the edge of whatever
   * is holding it, so on a phone this one line scrolled the whole of
   * `/building` sideways. `min(430px, 100%)` is the same intent written so it
   * also holds when the window is the smaller of the two.
   */
  grid-template-columns: repeat(auto-fit, minmax(min(430px, 100%), 1fr));
}

.chart-row.is-two-up .chart svg {
  min-width: 0;
}

/* The lead line above the map: the answer before the picture. */
.park-lead {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}

.park-lead p {
  margin: 0;
  font-size: var(--t-body);
  line-height: var(--lh-body);
}

.park-lead.is-warm {
  background: var(--now-soft);
  border-left: 4px solid var(--now);
}

.park-lead.is-clear {
  background: var(--accent-soft);
  border-left: 4px solid var(--money);
}

.park-jump {
  margin-left: auto;
  flex: none;
  background: var(--now);
  color: #fff;
  border: 0;
  border-radius: var(--r-md);
  padding: var(--s-2) var(--s-4);
  font: inherit;
  font-size: var(--t-body-s);
  font-weight: 600;
  cursor: pointer;
}

.park-jump:hover { background: #8d2a16; }

.tab-sub.is-warm {
  color: var(--now);
  font-weight: 600;
}

.chart-dot { cursor: pointer; }
.chart-dot:hover { filter: brightness(1.12); }

.chart-picked {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--s-2) var(--s-4);
  margin-top: var(--s-3);
  padding: var(--s-2) var(--s-3);
  background: var(--soft);
  border-radius: var(--r-md);
  font-size: var(--t-body-s);
}

.chart-picked span { color: var(--muted); }

.chart-picked button {
  margin-left: auto;
  background: none;
  border: 0;
  font: inherit;
  font-size: var(--t-small);
  color: var(--accent);
  cursor: pointer;
}

.chart-more {
  margin-top: var(--s-3);
  border-top: 1px solid var(--line);
  padding-top: var(--s-2);
}

.chart-more summary {
  cursor: pointer;
  font-size: var(--t-body-s);
  font-weight: 600;
  color: var(--accent);
}

.chart-more p {
  font-size: var(--t-body-s);
  line-height: var(--lh-body-s);
  color: var(--muted);
  margin: var(--s-2) 0 0;
  max-width: 68ch;
}

.chart-purpose {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: var(--s-3) 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--line);
}

.chart-purpose > div {
  min-width: 0;
  padding: 10px 12px;
  background: var(--surface);
}

.chart-purpose span,
.replay-comparison-purpose span {
  display: block;
  margin-bottom: 3px;
  color: var(--accent);
  font-size: var(--t-micro);
  font-weight: 800;
  letter-spacing: var(--track-small);
  text-transform: uppercase;
}

.chart-purpose p,
.replay-comparison-purpose p {
  margin: 0;
  color: var(--ink);
  font-size: var(--t-small);
  line-height: var(--lh-small);
}

/* --- playing the night ---------------------------------------------------- */

.park-player {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.park-play {
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: var(--r-md);
  padding: var(--s-2) var(--s-4);
  font: inherit;
  font-size: var(--t-body-s);
  font-weight: 600;
  cursor: pointer;
  flex: none;
}

.park-play:hover { background: #0a4c5a; }

.park-player input[type="range"] {
  flex: 1 1 220px;
  accent-color: var(--accent);
}

.park-clock {
  font-size: var(--t-body-l);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  min-width: 3.2em;
}

.park-readout {
  font-size: var(--t-body-s);
  color: var(--muted);
  flex: 1 1 100%;
}

.park-readout b { color: var(--ink); }

.park-demand {
  padding: var(--s-3) var(--s-4);
  background: var(--now-soft);
  border-bottom: 1px solid var(--line);
  border-left: 4px solid var(--now);
}

.park-demand strong {
  display: block;
  font-size: var(--t-micro);
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: var(--now);
  margin-bottom: var(--s-1);
}

.park-demand ul {
  margin: 0;
  padding-left: 18px;
  font-size: var(--t-body-s);
  line-height: var(--lh-body-s);
}

.park-inputs {
  flex: 1 1 100%;
  margin-top: var(--s-1);
}

.park-inputs summary {
  cursor: pointer;
  font-size: var(--t-small);
  font-weight: 600;
  color: var(--accent);
}

.park-inputs ul {
  list-style: none;
  margin: var(--s-2) 0 0;
  padding: 0;
  display: grid;
  gap: var(--s-2);
}

.park-inputs li {
  display: grid;
  gap: 1px;
  font-size: var(--t-small);
  padding-left: var(--s-3);
  border-left: 3px solid var(--money);
}

.park-inputs li.is-missing { border-left-color: var(--now); }
.park-inputs li strong { font-size: var(--t-body-s); }
.park-inputs li span { color: var(--muted); }
.park-cost { font-style: normal; }

/* --- the systems diagram -------------------------------------------------- */

.data-center-topology {
  border: 1px solid #c9d7dc;
  background: #f7fafb;
  padding: 18px;
  margin: 18px 0;
}

.data-center-topology header p,
.data-center-topology h3,
.data-center-topology h4 {
  margin: 0;
}

.data-center-topology header p {
  margin-top: 6px;
  color: #526772;
}

.data-center-topology-rooms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.data-center-topology-rooms > section {
  border: 1px solid #d5e0e4;
  background: #fff;
  padding: 12px;
}

.data-center-topology-rooms ul,
.data-center-topology-paths {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
}

.data-center-topology-rooms li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 0;
  border-top: 1px solid #e7eef0;
}

.data-center-topology-rooms li span {
  color: #526772;
  text-transform: capitalize;
}

.data-center-topology-paths {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.data-center-topology-paths li {
  display: grid;
  grid-template-columns: minmax(110px, 0.7fr) minmax(0, 1fr) 32px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  border-left: 4px solid #236477;
  background: #fff;
  padding: 10px 12px;
}

.data-center-topology-paths li.is-alternate { border-left-color: #9a6b16; }
.data-center-topology-paths li span { color: #526772; font-weight: 700; }
.data-center-topology-paths li i { height: 1px; background: #607882; position: relative; }
.data-center-topology-paths li i::after { content: ""; position: absolute; right: 0; top: -3px; border: 3px solid transparent; border-left-color: #607882; }

.decision-card,
.decision-record > section {
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--panel);
  padding: var(--s-4);
}

.decision-card { margin-top: var(--s-4); }
.decision-card header,
.decision-clauses article header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-3);
}

.decision-card h3,
.decision-clauses h3 { margin: 0; }
.decision-freshness { color: var(--muted); font-size: var(--t-small); }
.decision-state,
.decision-clauses article header strong {
  border: 1px solid currentColor;
  border-radius: var(--r-full);
  padding: 0.25rem 0.65rem;
  white-space: nowrap;
}
.decision-state.is-supported,
.decision-clauses article.is-satisfied header strong { color: var(--money); }
.decision-state.is-conditional,
.decision-state.is-stale,
.decision-clauses article.is-partial header strong,
.decision-clauses article.is-stale header strong { color: var(--accent); }
.decision-state.is-unknown,
.decision-state.is-conflicted,
.decision-clauses article.is-missing header strong,
.decision-clauses article.is-conflicted header strong { color: var(--now); }

.decision-head .decision-actions,
.decision-actions { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-3); }
.decision-notice { border-left: 4px solid var(--accent); background: var(--wash); padding: var(--s-3); }
.decision-record { display: grid; gap: var(--s-4); }
.decision-record section > h2 { max-width: 32ch; }
.decision-summary dl,
.decision-clauses article dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: var(--s-3);
}
.decision-summary dl div,
.decision-clauses article dl div { border-top: 1px solid var(--line); padding-top: var(--s-2); }
.decision-summary dt,
.decision-clauses dt { color: var(--muted); font-size: var(--t-small); }
.decision-summary dd,
.decision-clauses dd { margin: 0.2rem 0 0; font-weight: 700; }
.decision-clauses { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); gap: var(--s-3); }
.decision-clauses article { border-left: 4px solid var(--line-strong); background: var(--wash); padding: var(--s-3); }
.decision-clauses article.is-satisfied { border-left-color: var(--money); }
.decision-clauses article.is-partial,
.decision-clauses article.is-stale { border-left-color: var(--accent); }
.decision-clauses article.is-missing,
.decision-clauses article.is-conflicted { border-left-color: var(--now); }
.decision-boundary { border-left: 4px solid var(--accent); background: var(--wash); padding: var(--s-3); }
.decision-provenance,
.decision-handoffs { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.decision-provenance li,
.decision-handoffs li { border-top: 1px solid var(--line); padding-top: var(--s-2); }
.decision-provenance li { display: flex; justify-content: space-between; gap: var(--s-3); }
.decision-handoffs span { display: block; color: var(--muted); font-size: var(--t-small); }
.decision-handoff-form,
.decision-mode-form { display: grid; gap: var(--s-2); max-width: 48rem; margin-top: var(--s-3); }
.decision-handoff-form textarea { width: 100%; resize: vertical; border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: var(--s-2); font: inherit; }
.decision-mode-form select { border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--panel); padding: var(--s-2); font: inherit; }
.decision-handoff-form button,
.decision-mode-form button {
  justify-self: start;
  border: 1px solid var(--accent);
  border-radius: var(--r-sm);
  background: var(--accent);
  color: var(--panel);
  padding: var(--s-2) var(--s-3);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.decision-handoff-form button:hover,
.decision-mode-form button:hover { background: var(--ink); border-color: var(--ink); }
.decision-handoff-form button:focus-visible,
.decision-mode-form button:focus-visible { outline: 3px solid var(--accent-mark); outline-offset: 2px; }

.data-center-module-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  margin-top: var(--s-4);
  padding: var(--s-4);
  border: 1px solid var(--line-strong);
  border-left: 5px solid var(--accent);
  border-radius: var(--r-md);
  background: var(--wash);
}
.data-center-module-link h3,
.data-center-module-link p { margin: 0; }
.data-center-module-link .spine-eyebrow { margin-bottom: 4px; }
.data-center-module-link h3 + p { margin-top: 6px; color: var(--muted); }
.data-center-module-link .source-save { flex: none; }

.data-center-brief-head { border-bottom: 1px solid var(--line); padding-bottom: var(--s-5); }
.data-center-empty {
  max-width: 54rem;
  padding: var(--s-5);
  border: 1px solid var(--line-strong);
  border-left: 5px solid var(--accent);
  border-radius: var(--r-md);
  background: var(--panel);
}
.data-center-empty h2 { margin-bottom: var(--s-2); }
.data-center-brief { display: grid; gap: var(--s-6); }
.data-center-demo-note {
  align-items: baseline;
  background: #fff7ed;
  border: 1px solid #c2410c;
  color: #7c2d12;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-1) var(--s-3);
  padding: var(--s-3) var(--s-4);
}
.data-center-demo-note strong { text-transform: uppercase; }
.data-center-brief > section {
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
}
.data-center-leading {
  padding: var(--s-5);
  border: 1px solid var(--line-strong);
  border-left: 6px solid var(--accent);
  border-radius: var(--r-lg);
  background: var(--panel);
  box-shadow: var(--elev-1);
}
.data-center-leading.is-supported { border-left-color: var(--money); }
.data-center-leading.is-conflicted,
.data-center-leading.is-unknown { border-left-color: var(--now); }
.data-center-leading-title,
.data-center-decision-grid article > header,
.data-center-change-list article > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-4);
}
.data-center-leading-title h2,
.data-center-decision-grid h3,
.data-center-change-list h3 { margin: 0; }
.data-center-decision-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-3);
  margin: var(--s-4) 0 0;
}
.data-center-decision-facts div { padding-top: var(--s-2); border-top: 1px solid var(--line); }
.data-center-decision-facts dt { color: var(--muted); font-size: var(--t-small); }
.data-center-decision-facts dd { margin: 4px 0 0; font-weight: 700; overflow-wrap: anywhere; }
.data-center-action {
  padding: var(--s-5);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  background: var(--wash);
}
.data-center-action h2 { max-width: 36ch; }
.data-center-clause-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: var(--s-3);
}
.data-center-clause-strip article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px var(--s-2);
  padding: var(--s-3);
  border: 1px solid var(--line);
  border-top: 4px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--panel);
}
.data-center-clause-strip article.is-satisfied { border-top-color: var(--money); }
.data-center-clause-strip article.is-partial,
.data-center-clause-strip article.is-stale { border-top-color: var(--accent); }
.data-center-clause-strip article.is-missing,
.data-center-clause-strip article.is-conflicted { border-top-color: var(--now); }
.data-center-clause-strip article > span { font-weight: 700; }
.data-center-clause-strip small { grid-column: 1 / -1; color: var(--muted); line-height: var(--lh-small); }
.module-verify-grid,
.data-center-verify-grid,
.data-center-decision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
  gap: var(--s-3);
}
.module-verify-grid article,
.data-center-verify-grid article,
.data-center-decision-grid > article,
.data-center-change-list > article {
  padding: var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--panel);
}
.module-verify-grid p,
.data-center-verify-grid p { margin-bottom: 0; color: var(--muted); }
.data-center-decision-grid article > small,
.data-center-change-list header small { color: var(--muted); }
.data-center-decision-grid .decision-actions,
.data-center-change-list .decision-actions { margin-top: var(--s-3); }
.data-center-change-list { display: grid; gap: var(--s-4); }
.data-center-change-list ol {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  list-style: none;
  margin: var(--s-4) 0;
  padding: 0;
}
.data-center-change-list li { position: relative; display: grid; gap: 4px; padding-right: var(--s-3); }
.data-center-change-list li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 0.8rem;
  left: 2rem;
  right: 0;
  height: 2px;
  background: var(--line-strong);
}
.data-center-change-list li > span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--panel);
  font-weight: 700;
}
.data-center-change-list li small { color: var(--muted); overflow-wrap: anywhere; }
.data-center-detail-timeline { display: grid; gap: var(--s-2); padding: 0; list-style: none; }
.data-center-detail-timeline li { display: flex; justify-content: space-between; gap: var(--s-3); padding-top: var(--s-2); border-top: 1px solid var(--line); }
.data-center-detail-timeline span { color: var(--muted); text-align: right; }

.ai-readiness-package { display: grid; gap: var(--s-6); }
.ai-readiness-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-5);
  border: 1px solid var(--line-strong);
  border-left: 6px solid var(--accent);
  border-radius: var(--r-lg);
  background: var(--panel);
  box-shadow: var(--elev-1);
}
.ai-readiness-head h2,
.ai-readiness-head p { margin-bottom: var(--s-2); }
.ai-readiness-head > span {
  flex: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-full);
  padding: var(--s-1) var(--s-3);
  color: var(--accent);
  font-weight: 700;
}
.ai-evidence-key { display: block; color: var(--muted); font-size: var(--t-small); }
.ai-evidence-key.is-modeled { border-left: 3px solid var(--accent); padding-left: var(--s-2); }
.ai-readiness-group { display: grid; gap: var(--s-3); }
.ai-readiness-group h3 { margin: 0; }
.ai-readiness-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 30rem), 1fr));
  gap: var(--s-4);
}
.ai-readiness-grid > article {
  min-width: 0;
  padding: var(--s-4);
  border: 1px solid var(--line);
  border-top: 5px solid var(--accent);
  border-radius: var(--r-md);
  background: var(--panel);
}
.ai-readiness-grid > article.is-supported { border-top-color: var(--money); }
.ai-readiness-grid > article.is-conflicted,
.ai-readiness-grid > article.is-unknown { border-top-color: var(--now); }
.ai-readiness-grid > article > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-3);
}
.ai-readiness-grid h4 { margin: var(--s-1) 0 var(--s-3); }
.ai-readiness-grid header small { color: var(--muted); overflow-wrap: anywhere; }
.liquid-path-flow {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(9rem, 1fr);
  gap: var(--s-2);
  max-width: 100%;
  margin: var(--s-4) 0;
  padding: 0 0 var(--s-2);
  list-style: none;
  overflow-x: auto;
}
.liquid-path-flow li {
  position: relative;
  display: grid;
  align-content: start;
  gap: 3px;
  min-width: 0;
  padding: var(--s-3);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--wash);
}
.liquid-path-flow li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: calc(-1 * var(--s-2));
  width: var(--s-2);
  height: 2px;
  background: var(--accent-mark);
}
.liquid-path-flow li.is-target { border-color: var(--accent); background: var(--accent-soft); }
.liquid-path-flow span { color: var(--accent); font-size: var(--t-small); font-weight: 700; text-transform: capitalize; }
.liquid-path-flow small { color: var(--muted); overflow-wrap: anywhere; }
.ai-readiness-metrics,
.heat-balance {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr));
  gap: var(--s-2);
  margin: var(--s-3) 0;
}
.ai-readiness-metrics div,
.heat-balance div { padding: var(--s-3); border: 1px solid var(--line); background: var(--wash); }
.ai-readiness-metrics dt,
.heat-balance dt { color: var(--muted); font-size: var(--t-small); }
.ai-readiness-metrics dd,
.heat-balance dd { margin: var(--s-1) 0 0; font-weight: 700; overflow-wrap: anywhere; }
.heat-balance div:nth-child(2) { border-top: 3px solid var(--accent); }
.heat-balance div:nth-child(3) { border-top: 3px solid var(--now); }
.heat-balance div:nth-child(4) { border-top: 3px solid var(--money); }
.ai-readiness-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-2); margin-top: var(--s-3); }
.ai-readiness-actions p { margin: 0; color: var(--muted); }
.ai-readiness-actions strong { display: block; margin-bottom: 3px; color: var(--ink); }
.ai-commissioning-sequence {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
  gap: var(--s-2);
  margin: var(--s-4) 0;
  padding: 0;
  list-style: none;
}
.ai-commissioning-sequence li { display: grid; gap: 3px; padding: var(--s-3); border: 1px solid var(--line); background: var(--wash); }
.ai-commissioning-sequence span { color: var(--accent); font-size: var(--t-small); font-weight: 700; text-transform: capitalize; }
.ai-commissioning-sequence small { color: var(--muted); overflow-wrap: anywhere; }
.ai-commissioning-sequence p { grid-column: 1 / -1; margin: var(--s-1) 0 0; }
.liquid-path-flow.is-detail,
.heat-balance.is-detail,
.ai-commissioning-sequence.is-detail { margin-top: var(--s-4); }

.cruise-brief-head { border-bottom: 1px solid var(--line); padding-bottom: var(--s-5); }
.cruise-brief { display: grid; gap: var(--s-6); }
.cruise-brief > section { padding-top: var(--s-5); border-top: 1px solid var(--line); }
.cruise-leading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--s-2) var(--s-4);
  padding: var(--s-5);
  border: 1px solid var(--line-strong);
  border-left: 6px solid var(--accent);
  border-radius: var(--r-lg);
  background: var(--panel);
  box-shadow: var(--elev-1);
}
.cruise-leading.is-supported { border-left-color: var(--money); }
.cruise-leading.is-conflicted,
.cruise-leading.is-unknown { border-left-color: var(--now); }
.cruise-leading h2,
.cruise-leading p { margin: 0; }
.cruise-leading > p { grid-column: 1 / -1; color: var(--muted); }
.cruise-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: var(--s-3);
  margin: var(--s-4) 0 0;
}
.cruise-facts div { min-width: 0; padding-top: var(--s-2); border-top: 1px solid var(--line); }
.cruise-facts dt { color: var(--muted); font-size: var(--t-small); }
.cruise-facts dd { margin: var(--s-1) 0 0; font-weight: 700; overflow-wrap: anywhere; }
.cruise-first-action {
  padding: var(--s-5);
  border: 1px solid var(--line-strong);
  border-left: 5px solid var(--accent);
  border-radius: var(--r-lg);
  background: var(--wash);
}
.cruise-family { display: grid; gap: var(--s-4); }
.cruise-family > header,
.cruise-card-grid > article > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-3);
}
.cruise-family > header h2,
.cruise-card-grid h3 { margin: 0; }
.cruise-family > header > span {
  flex: none;
  padding: var(--s-1) var(--s-3);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-full);
  color: var(--accent);
  font-weight: 700;
}
.cruise-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 28rem), 1fr));
  gap: var(--s-4);
}
.cruise-card-grid > article {
  min-width: 0;
  padding: var(--s-4);
  border: 1px solid var(--line);
  border-top: 5px solid var(--accent);
  border-radius: var(--r-md);
  background: var(--panel);
}
.cruise-water-path {
  display: grid;
  grid-template-columns: minmax(6rem, 1fr) minmax(2rem, 0.25fr) minmax(6rem, 1fr) minmax(2rem, 0.25fr) minmax(6rem, 1fr);
  align-items: center;
  gap: var(--s-2);
  margin: var(--s-4) 0;
}
.cruise-water-path div { display: grid; gap: 3px; padding: var(--s-3); border: 1px solid var(--line); background: var(--wash); }
.cruise-water-path span { color: var(--accent); font-size: var(--t-small); font-weight: 700; }
.cruise-water-path i { height: 2px; background: var(--accent-mark); }
.cruise-water-path.is-detail { margin-top: var(--s-4); }
.cruise-impact-visual {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0 var(--s-3);
  align-items: center;
  margin: var(--s-4) 0;
  padding: var(--s-4);
  border: 1px solid var(--line);
  border-left: 5px solid var(--money);
  background: var(--wash);
}
.cruise-impact-visual > strong { grid-row: 1 / 3; font-size: clamp(2rem, 8vw, 4rem); line-height: 1; color: var(--money); }
.cruise-impact-visual > span { font-weight: 700; }
.cruise-impact-visual > small { color: var(--muted); }
.cruise-shore-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  gap: var(--s-2);
  margin: var(--s-4) 0;
  padding: 0;
  list-style: none;
}
.cruise-shore-timeline li { display: grid; gap: 3px; padding: var(--s-3); border: 1px solid var(--line); border-top: 4px solid var(--accent); background: var(--wash); }
.cruise-shore-timeline span { color: var(--accent); font-size: var(--t-small); font-weight: 700; text-transform: capitalize; }
.cruise-shore-timeline small { color: var(--muted); overflow-wrap: anywhere; }

@media (max-width: 42rem) {
  .decision-card header,
  .decision-clauses article header,
  .decision-provenance li,
  .data-center-module-link,
  .data-center-leading-title,
  .data-center-decision-grid article > header,
  .data-center-change-list article > header { align-items: flex-start; flex-direction: column; }
  .data-center-decision-facts,
  .data-center-change-list ol { grid-template-columns: 1fr; }
  .data-center-change-list li { grid-template-columns: auto minmax(0, 1fr); }
  .data-center-change-list li small { grid-column: 2; }
  .data-center-change-list li:not(:last-child)::after { top: 1.6rem; bottom: calc(-1 * var(--s-2)); left: 0.75rem; right: auto; width: 2px; height: auto; }
  .data-center-detail-timeline li { flex-direction: column; }
  .data-center-detail-timeline span { text-align: left; }
  .ai-readiness-head,
  .ai-readiness-grid > article > header { flex-direction: column; }
  .ai-readiness-actions { grid-template-columns: 1fr; }
  .liquid-path-flow { grid-auto-flow: row; grid-auto-columns: auto; overflow-x: visible; }
  .liquid-path-flow li:not(:last-child)::after { top: auto; right: auto; bottom: calc(-1 * var(--s-2)); left: var(--s-4); width: 2px; height: var(--s-2); }
  .cruise-leading,
  .cruise-water-path { grid-template-columns: 1fr; }
  .cruise-leading > p { grid-column: 1; }
  .cruise-water-path i { width: 2px; height: var(--s-3); margin-left: var(--s-4); }
  .cruise-family > header,
  .cruise-card-grid > article > header { flex-direction: column; }
}

@media (max-width: 620px) {
  .data-center-topology-paths li { grid-template-columns: 1fr; }
  .data-center-topology-paths li i { width: 24px; transform: rotate(90deg); margin: 4px 0; }
}

.systems {
  margin: var(--s-4) 0 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-4);
  box-shadow: var(--elev-1);
  overflow-x: auto;
}

.systems figcaption {
  font-size: var(--t-body-s);
  font-weight: 700;
  margin-bottom: var(--s-2);
}

.systems svg {
  height: auto;
  /* The diagram has eight columns of real names in it. Squeezing that into the
     page width makes it unreadable, so it keeps its natural size and the
     figure scrolls. */
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  display: block;
}

.systems-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-5);
  font-size: var(--t-small);
  color: var(--muted);
  margin-top: var(--s-3);
}

.systems-legend i {
  display: inline-block;
  width: 26px;
  height: 0;
  margin-right: var(--s-2);
  vertical-align: 4px;
}

.systems-legend i.is-read { border-top: 2px solid var(--accent-mark); }
.systems-legend i.is-inferred { border-top: 2px dashed #9aa9b4; }

.systems-legend i.is-standalone {
  height: 12px;
  width: 12px;
  border-radius: 50%;
  border-top: 0;
  background: #2f9455;
  opacity: 0.3;
  vertical-align: -1px;
}

.systems-card { cursor: pointer; }
.systems-card:hover { filter: brightness(0.97); }

.systems-detail {
  margin-top: var(--s-4);
  padding: var(--s-4);
  background: var(--soft);
  border-radius: var(--r-lg);
  border-left: 4px solid var(--accent);
}

.systems-detail h3 {
  margin: 0 0 var(--s-1);
  font-size: var(--t-body-l);
}

.systems-does {
  margin: 0 0 var(--s-3);
  font-size: var(--t-body-s);
  color: var(--muted);
}

.systems-detail dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--s-3);
}

.systems-detail dt {
  font-size: var(--t-micro);
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.systems-detail dd {
  margin: 2px 0 0;
  font-size: var(--t-body-s);
}

/* The device detail, as a popup over the diagram it came from. */
.systems-scrim {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(16, 32, 42, 0.42);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s-5);
}

.systems-scrim .systems-detail {
  position: relative;
  margin: 0;
  max-width: 640px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  background: var(--panel);
  border-radius: var(--r-lg);
  border-left: 5px solid var(--accent);
  box-shadow: var(--elev-2);
  padding: var(--s-5);
}

.systems-close {
  position: absolute;
  top: var(--s-3);
  right: var(--s-3);
  background: none;
  border: 0;
  font-size: var(--t-h3);
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: var(--s-1) var(--s-2);
}

.systems-close:hover { color: var(--ink); }

.park-tabs button.is-trouble {
  box-shadow: inset 0 -3px 0 var(--now);
}

/* The transport belongs beside the thing it drives. The lead line and the deck
   tabs are orientation and come first; play sits directly above the plan. */
.park > .park-lead { order: 1; }
.park > .park-tabs { order: 2; }
.park > .park-player {
  order: 3;
  border-bottom: 0;
  border-top: 1px solid var(--line);
  background: var(--soft);
}
.park > .park-demand { order: 4; }
.park > .park-body { order: 5; }

/* --- what is coming ------------------------------------------------------- */

.outlook {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--elev-1);
  overflow: hidden;
}

.outlook-tabs {
  display: flex;
  align-items: center;
  gap: var(--s-1);
  padding: var(--s-2) var(--s-3);
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}

.outlook-tabs button {
  background: none;
  border: 0;
  border-radius: var(--r-md);
  padding: var(--s-2) var(--s-4);
  font: inherit;
  font-size: var(--t-body-s);
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}

.outlook-tabs button.is-on {
  background: var(--panel);
  color: var(--accent);
  box-shadow: var(--elev-1);
}

.outlook-horizon {
  margin-left: auto;
  font-size: var(--t-small);
  color: var(--muted);
}

.outlook-month {
  margin: var(--s-4) var(--s-4) 0;
  font-size: var(--t-body-l);
  font-weight: 700;
}

.outlook-week,
.outlook-grid {
  display: grid;
  gap: var(--s-2);
  padding: var(--s-4);
}

.outlook-week { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.outlook-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); }

.outlook-pad { min-height: 10px; }

.outlook-day {
  text-align: left;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 4px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--s-3);
  font: inherit;
  cursor: pointer;
  display: grid;
  gap: 2px;
  align-content: start;
}

.outlook-day:hover { border-color: var(--accent); }
.outlook-day.is-picked { outline: 3px solid var(--ink); outline-offset: 1px; }
.outlook-day.is-hard { border-left-color: #c03a17; background: var(--now-soft); }
.outlook-day.is-busy { border-left-color: #c98a1a; }
.outlook-day.is-steady { border-left-color: var(--accent-mark); }

.outlook-date {
  font-size: var(--t-body);
  font-weight: 700;
}

.outlook-date em {
  font-style: normal;
  font-weight: 400;
  color: var(--muted);
  margin-left: var(--s-2);
  font-size: var(--t-small);
}

.outlook-what { font-size: var(--t-body-s); }
.outlook-crowd,
.outlook-heat {
  font-size: var(--t-small);
  color: var(--muted);
}

.outlook-tag {
  justify-self: start;
  margin-top: var(--s-1);
  color: #fff;
  font-size: var(--t-micro);
  font-weight: 700;
  letter-spacing: var(--track-small);
  border-radius: var(--r-full);
  padding: 2px 8px;
}

.outlook-watch {
  font-size: var(--t-micro);
  font-weight: 700;
  color: var(--now);
}

.outlook-detail {
  border-top: 1px solid var(--line);
  padding: var(--s-4);
  background: var(--soft);
}

.outlook-detail h2 { margin: 0 0 var(--s-3); font-size: var(--t-h3); }

.outlook-reasons {
  margin: 0 0 var(--s-3);
  padding-left: 18px;
  font-size: var(--t-body-s);
  line-height: var(--lh-body-s);
}

/* The month grid runs across two months now, so the weekday letters sit above
   it and the cells get small. A small cell carries less, which is why the
   component drops the crowd figure and shortens the tags in month view. */
.outlook-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin: 0 0 4px;
  padding: 0;
  list-style: none;
}
.outlook-days li {
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.outlook-grid .outlook-day { min-height: 74px; padding: 6px 7px; gap: 2px; }
.outlook-grid .outlook-what { font-size: 0.72rem; }
.outlook-grid .outlook-heat { font-size: 0.7rem; }
.outlook-grid .outlook-tag { font-size: 0.62rem; padding: 1px 5px; }
.outlook-heat.is-normal { font-style: italic; color: var(--muted); }

/* The plan. Every step is a clock time on the left and the reasoning on the
   right, because the first question is always "when" and the reader should not
   have to hunt for it inside a paragraph. */
.outlook-plan-head {
  margin: 18px 0 8px;
  font-size: 1rem;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.outlook-plan-head em {
  font-style: normal;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--muted);
}
.outlook-plan {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--line);
}
.outlook-plan li {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 14px;
  padding: 12px 0 12px 16px;
  position: relative;
}
.outlook-plan li + li { border-top: 1px solid var(--rule-soft, #e6eaee); }
.outlook-plan li::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 19px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-mark);
  border: 2px solid var(--surface);
}
.outlook-at {
  font-weight: 650;
  font-size: 0.86rem;
  color: var(--ink);
  padding-top: 1px;
}
.outlook-step strong { display: block; font-size: 0.95rem; margin-bottom: 4px; }
.outlook-does { margin: 0 0 6px; font-size: 0.88rem; }
.outlook-why,
.outlook-rests { margin: 0 0 4px; font-size: 0.82rem; color: var(--muted); }
.outlook-why b,
.outlook-rests b { color: var(--ink); font-weight: 600; }
.outlook-overnight {
  margin: 14px 0 0;
  padding: 10px 14px;
  border-left: 3px solid #c98a1a;
  background: #fdf6e8;
  font-size: 0.88rem;
}
@media (max-width: 640px) {
  .outlook-plan li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

/* The incident history. One row per machine, time left to right. */
.incidents { margin-top: 4px; }
.incident-chart { width: 100%; height: auto; }
.incident-grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 4; }
.incident-rule { stroke: var(--line); stroke-width: 1; }
.incident-tick { font-size: 11px; fill: var(--muted); text-anchor: middle; }
.incident-name { font-size: 13px; font-weight: 650; fill: var(--ink); text-anchor: end; }
.incident-sub { font-size: 11px; fill: var(--muted); text-anchor: end; }
.incident-dot { stroke: var(--surface); stroke-width: 2; }
.incident-dot.is-failed { stroke: var(--surface); stroke-width: 2.5; }
/* The gap in days sits on the gap itself, which is where the eye already is. */
.incident-gap { font-size: 10.5px; fill: var(--muted); text-anchor: middle; }
.incident-gap.is-closing { fill: #b8371a; font-weight: 650; }
.incident-key {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 5px 18px;
  font-size: 0.78rem;
  color: var(--muted);
}
.incident-key li { display: flex; align-items: baseline; gap: 7px; }
.incident-key b { color: var(--ink); font-weight: 600; white-space: nowrap; }
.incident-swatch {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex: 0 0 auto;
  transform: translateY(1px);
}
.incident-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
  margin-top: 22px;
  align-items: start;
}
.hour-chart { width: 100%; height: auto; }
.hour-bar { fill: #2d7f9c; }
.hour-value { font-size: 10px; fill: var(--muted); text-anchor: middle; }
.hour-tick { font-size: 10px; fill: var(--muted); text-anchor: middle; }
.hour-note { font-size: 10.5px; fill: var(--muted); }
.hour-axis { stroke: var(--line); stroke-width: 1; }
.incident-how h3 { margin: 0 0 6px; font-size: 1rem; }
.incident-how ul { list-style: none; margin: 12px 0 0; padding: 0; }
.incident-how li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 2px;
}
.incident-how li b { font-size: 0.92rem; }
/* What the rules were watching, one to a line. Run together on one line as a
   comma list of code names it was unreadable, which is what it was. */
.incident-rules {
  list-style: none;
  margin: 4px 0 6px;
  padding: 0;
}
.incident-rules li {
  border: 0;
  padding: 2px 0 2px 16px;
  display: block;
  font-size: 0.83rem;
  color: var(--ink);
  position: relative;
}
.incident-rules li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #1f6f8b;
}
.incident-when { font-size: 0.78rem; color: var(--muted); }
@media (max-width: 900px) {
  .incident-split { grid-template-columns: minmax(0, 1fr); }
}

/* A caption with a heading and an explanation needs them on separate lines.
   Run together they read as one broken sentence. */
.chart figcaption strong { display: block; }
.chart figcaption span {
  display: block;
  margin-top: 3px;
  font-weight: 400;
  font-size: var(--t-small);
  color: var(--muted);
  line-height: var(--lh-small);
}
/* An SVG with a minimum width scrolls inside its own figure rather than
   pushing the page sideways. */
/* The line between two visits, so the days-apart number has something to sit
   on and the eye reads the gap as a gap. */
.incident-span { stroke: var(--line); stroke-width: 2; }
.incident-sub.is-closing { fill: #b8371a; }
.incident-watch { fill: none; stroke: var(--muted); stroke-width: 2; stroke-dasharray: 3 3; }
.incident-key-plain {
  margin: 10px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.6;
}
.incident-key-plain .incident-swatch {
  display: inline-block;
  margin: 0 5px 0 0;
  transform: translateY(1px);
}
.incident-key-plain .incident-swatch:not(:first-child) { margin-left: 14px; }

/* A mark is small, so the thing you click is bigger than the thing you see. */
.incident-target { fill: transparent; }
.incident-hit { cursor: pointer; }
.incident-hit:hover .incident-dot { stroke: var(--ink); stroke-width: 2; }
.incident-hit:focus { outline: none; }
.incident-hit:focus-visible .incident-dot { stroke: var(--ink); stroke-width: 3; }

/* What a truncated chart is not showing, said before the key rather than after
   it. A chart that quietly drops rows reads as though it covered everything. */
.incident-truncated {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--ink);
}

/* A job that is the same job on many machines says so on the card. */
.tag.is-many {
  background: #0d5c75;
  color: #fff;
  border-color: #0d5c75;
}
.count-note {
  font-size: var(--t-small);
  font-weight: 400;
  color: var(--muted);
  margin-left: var(--s-2);
}

/* What is broken now. Four questions, always in the same order, because that is
   the order somebody asks them in. */
.broken {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  margin-bottom: var(--s-4);
}
.broken.is-safety { border-left-color: var(--now); }
.broken-top { display: flex; gap: var(--s-2); flex-wrap: wrap; margin-bottom: var(--s-3); }
.tag.is-clock { background: var(--now-soft); border-color: var(--now); color: var(--now); font-weight: 650; }
.broken h2 { margin: 0 0 4px; font-size: var(--t-h3); }
.broken-where { margin: 0 0 var(--s-4); color: var(--muted); font-size: var(--t-body-s); }
.broken-four { display: grid; gap: var(--s-4); margin: 0; }
.broken-four > div { display: grid; gap: 3px; align-content: start; }
.broken-four dt {
  font-size: var(--t-small);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.broken-four dd {
  margin: 0;
  font-size: var(--t-body-s);
  line-height: var(--lh-body);
  display: grid;
  gap: 6px;
  align-content: start;
}
.broken-confidence,
.broken-others { color: var(--muted); font-size: var(--t-small); }
.broken-check {
  margin: var(--s-4) 0 0;
  padding: var(--s-3) var(--s-4);
  background: var(--wash);
  border-radius: var(--r-md);
  font-size: var(--t-body-s);
}
@media (min-width: 900px) {
  .broken-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Why the animation stopped, beside the button that carries it on. A problem
   going past at four frames a second is a problem nobody read. */
.park-stopped {
  font-size: var(--t-small);
  font-weight: 650;
  color: var(--now);
  order: -1;
  flex-basis: 100%;
}

/* Each answer sits at the top of its cell. Stretched to fill the row, a short
   answer floats away from the question it belongs to. */

/* A data source, and what it needs before it will answer. */
.source-posture {
  margin: 0 0 8px;
  font-weight: 650;
  font-size: var(--t-body-s);
}
.source.is-ready { border-left-color: #2d7f9c; }
.source.is-filled { border-left-color: #2f7d4f; }
.source.is-empty { border-left-color: #c98a1a; }
.source-top { display: flex; gap: var(--s-2); flex-wrap: wrap; margin-bottom: var(--s-3); }
.tag.is-ready { background: #e4f1f5; border-color: #2d7f9c; color: #0d5c75; }
.tag.is-filled { background: #e6f2ea; border-color: #2f7d4f; color: #22603c; }
.tag.is-empty { background: #fdf6e8; border-color: #c98a1a; color: #8a5a12; }
.source h2 { margin: 0 0 4px; font-size: var(--t-h3); }
.source-what { margin: 0 0 var(--s-4); color: var(--muted); font-size: var(--t-body-s); }
.source-facts { display: grid; gap: var(--s-3); margin: 0 0 var(--s-4); }
.source-facts dt {
  font-size: var(--t-small);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.source-facts dd { margin: 2px 0 0; font-size: var(--t-body-s); line-height: var(--lh-body); }
.source-form {
  display: grid;
  gap: var(--s-3);
  padding-top: var(--s-4);
  border-top: 1px solid var(--line);
}
.source-form label { display: grid; gap: 4px; }
.source-form label span { font-size: var(--t-small); font-weight: 600; }
.source-form input,
.source-form select,
.source-form textarea {
  font: inherit;
  font-size: var(--t-body-s);
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--ink);
  width: 100%;
}
.source-form textarea { resize: vertical; }
.source-form input:focus-visible,
.source-form select:focus-visible,
.source-form textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
.source-buttons { display: flex; gap: var(--s-2); flex-wrap: wrap; }
/* Matched `button` only, and the one control in here that downloads a file is
   an anchor, because it points at a route. It picked up the colours and none of
   the shape, so the ask this whole page exists to produce came out looking like
   a line of selected text rather than something to press. */
.source-buttons button,
.source-buttons a {
  font: inherit;
  font-size: var(--t-body-s);
  font-weight: 650;
  padding: 9px 18px;
  border-radius: var(--r-md);
  border: 1px solid var(--accent);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.source-save { background: var(--accent); color: #fff; }
.source-test { background: var(--surface); color: var(--accent); }
.source-forget { background: var(--surface); color: var(--now); border-color: var(--now); }
.source-check {
  margin: var(--s-3) 0 0;
  padding: 9px 14px;
  background: var(--wash);
  border-radius: var(--r-md);
  font-size: var(--t-body-s);
}
.source-check.is-ok { background: #e6f2ea; }
.source-check.is-failed { background: #fbe8e4; color: #7d2410; font-weight: 650; }
.source-check-mark { display: inline-block; min-width: 1.2em; font-size: 1.15em; font-weight: 800; }
.source-check.is-ok .source-check-mark { color: #1f7a45; }
.source-check.is-failed .source-check-mark { color: #a62510; }
.bacnet-evidence {
  display: grid;
  gap: var(--s-3);
  margin-top: var(--s-4);
  padding: var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}
.bacnet-evidence > div:first-child { display: grid; gap: 3px; }
.bacnet-evidence span,
.bacnet-evidence small { display: block; color: var(--muted); }
.bacnet-evidence td small { margin-top: 3px; }
.bacnet-spaces {
  display: grid;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-4);
  border-left: 3px solid var(--accent);
  background: var(--wash);
  border-radius: var(--r-sm);
}
.bacnet-spaces strong { color: var(--ink); }
.bacnet-spaces p { margin: 0; color: var(--muted); }
.bacnet-spaces ul {
  margin: 0;
  padding-left: var(--s-4);
  display: grid;
  gap: 2px;
  color: var(--ink);
}
.bacnet-spaces li small { color: var(--muted); }
.bms-supervisors {
  display: grid;
  gap: var(--s-4);
  min-width: 0;
  margin-top: var(--s-4);
  padding: var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--wash);
}
.bms-supervisors > *,
.bms-supported-platforms,
.bms-supported-platforms .feed-table-wrap {
  min-width: 0;
  max-width: 100%;
}
.bms-supported-platforms .feed-table-wrap { overflow-x: auto; }
.bms-supervisor-heading p { margin: 4px 0 0; color: var(--muted); }
.bms-supervisor-card {
  display: grid;
  gap: var(--s-3);
  padding: var(--s-4);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--surface);
}
.bms-supervisor-card h3 { margin: var(--s-2) 0 0; }
.bms-supervisor-card p { margin: 0; }
.bms-supervisor-card ol { margin-bottom: 0; }
.bms-platform-needs {
  display: grid;
  gap: var(--s-1);
  padding: var(--s-3);
  border-left: 3px solid var(--accent-mark);
  background: var(--wash);
}
.bms-connection-form {
  grid-template-columns: minmax(0, 1fr);
}
.bms-connection-form label small {
  display: block;
  margin-top: var(--s-1);
  color: var(--muted);
  font-size: var(--t-small);
  line-height: var(--lh-body);
}
.bms-connection-form > details,
.bms-connection-form > .source-buttons,
.bms-connection-form > small { grid-column: 1 / -1; }
.bms-certificate-fields {
  padding: var(--s-3);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.bms-certificate-fields summary { cursor: pointer; font-weight: 700; color: var(--accent); }
.bms-certificate-fields[open] { display: grid; gap: var(--s-3); }
.bms-connections { display: grid; gap: var(--s-3); }
.bms-supported-platforms summary { cursor: pointer; font-weight: 700; color: var(--accent); }
.bms-inventory-summary {
  display: grid;
  gap: var(--s-3);
  padding: var(--s-4);
  border: 1px solid #2f7d4f;
  border-radius: var(--r-md);
  background: #e6f2ea;
}
.bms-inventory-summary h3 { margin: var(--s-2) 0 0; }
.bms-inventory-summary p { margin: 0; }
.bms-inventory-summary dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-3);
  margin: 0;
}
.bms-inventory-summary dt { color: var(--muted); font-size: var(--t-small); }
.bms-inventory-summary dd { margin: 2px 0 0; font-size: var(--t-h3); font-weight: 700; }
@media (min-width: 760px) {
  .source-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bms-connection-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* An hour with nobody in the building is a floor, not a reading, and it should
   not look like one. */
.tab-sub.is-held { font-style: italic; opacity: 0.8; }

/* Which night the animation is showing. The engine runs any date the calendar
   can see, and a picker is the only thing that was missing. */
.park-night {
  display: grid;
  gap: 6px;
  padding: var(--s-3) 0 0;
}
.park-night label {
  font-size: var(--t-small);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.park-night select {
  font: inherit;
  font-size: var(--t-body-s);
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--ink);
  max-width: 520px;
}
.park-night select:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
.park-certainty {
  margin: 0;
  font-size: var(--t-small);
  color: var(--muted);
  line-height: var(--lh-small);
  max-width: 70ch;
}

/* Whether a change worked, measured against what the building would
   have used on the same day rather than against last month. */
.verified {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 5px solid var(--line-strong);
  border-radius: var(--r-lg);
  padding: var(--s-5);
}
.verified.is-real { border-left-color: #2f7d4f; }
.verified-answer { margin: 0 0 var(--s-3); font-size: var(--t-body); font-weight: 600; }
.verified-drivers { display: grid; gap: var(--s-3); margin: var(--s-4) 0 0; }
.verified-drivers dt {
  font-size: var(--t-small);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.verified-drivers dd { margin: 2px 0 0; font-size: var(--t-body-s); }
@media (min-width: 760px) {
  .verified-drivers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Every figure in dollars in one place. */
.ledger-caveat {
  margin: 0 0 var(--s-3);
  padding: 10px 14px;
  border-left: 3px solid #c98a1a;
  background: #fdf6e8;
  font-size: var(--t-body-s);
  line-height: var(--lh-body);
}

.setup-feedback {
  margin: 0 0 var(--s-4);
  padding: 10px 14px;
  border-left: 3px solid #b54a3a;
  background: #f9ece9;
  font-size: var(--t-body-s);
  line-height: var(--lh-body);
}

.setup-feedback.is-ok {
  border-left-color: #2f7d4f;
  background: #e6f2ea;
}

.setup-feedback p {
  margin: var(--s-1) 0 0;
}

.setup-home {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-bottom: var(--s-5);
  color: var(--accent);
  font-size: var(--t-body-s);
  font-weight: 700;
  text-decoration: none;
}

.setup-home::before {
  content: "‹";
  margin-right: 7px;
  font-size: 1.4em;
  line-height: 1;
}

.setup-home:hover,
.setup-home:focus-visible {
  text-decoration: underline;
}
.ledger-split {
  display: grid;
  gap: var(--s-3);
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.ledger-group {
  display: grid;
  gap: 3px;
  padding: var(--s-4);
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent-mark);
  border-radius: var(--r-lg);
}
.ledger-group.is-assumed { border-left-color: #c98a1a; }
.ledger-group.is-bill { border-left-color: #2f7d4f; }
.ledger-group strong { font-size: var(--t-h3); }
.ledger-group-name { font-size: var(--t-body-s); font-weight: 650; }
.ledger-group-plain { font-size: var(--t-small); color: var(--muted); line-height: var(--lh-small); }
.ledger-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: var(--s-4);
  padding: var(--s-4) 0;
  border-top: 1px solid var(--line);
}
.ledger-row.is-shared { background: #eef2f4; }
.ledger-amount { display: grid; gap: 1px; align-content: start; }
.ledger-amount strong { font-size: var(--t-h3); }
.ledger-amount span { font-size: var(--t-small); color: var(--muted); }
.ledger-amount em {
  font-style: normal;
  font-size: var(--t-small);
  color: #8a5a12;
  font-weight: 650;
}
.ledger-body h3 { margin: 0 0 var(--s-3); font-size: var(--t-body); }
.ledger-body dl { display: grid; gap: var(--s-3); margin: 0; }
.ledger-body dt {
  font-size: var(--t-small);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.ledger-body dd { margin: 2px 0 0; font-size: var(--t-body-s); line-height: var(--lh-body); }
@media (max-width: 640px) {
  .ledger-row { grid-template-columns: minmax(0, 1fr); gap: var(--s-2); }
}

/* Whether the air inside is close to the temperature things start sweating at. */
.dew-list { list-style: none; margin: var(--s-3) 0 0; padding: 0; display: grid; gap: var(--s-2); }
.dew-list li {
  padding: 10px 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 4px solid var(--line-strong);
  border-radius: var(--r-md);
  font-size: var(--t-body-s);
  line-height: var(--lh-body);
}
.dew-list li.is-close { border-left-color: #c98a1a; }
.dew-list li.is-wet { border-left-color: var(--now); }

/* Playing a night back, comparing it, and running it again differently. */
.replay-guide > p:not(.spine-eyebrow) {
  max-width: 72ch;
}

.replay-guide > ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-2);
  margin: var(--s-4) 0 0;
  padding: 0;
  list-style: none;
}

.replay-guide li {
  min-width: 0;
  padding: var(--s-3);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}

.replay-guide a {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: var(--s-2);
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}

.replay-guide a > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--surface);
  font-weight: 800;
}

.replay-guide a:hover strong {
  color: var(--accent);
  text-decoration: underline;
}

.replay-guide li p {
  margin: var(--s-2) 0 0 38px;
  color: var(--muted);
  font-size: var(--t-small);
  line-height: var(--lh-small);
}

.replay-advanced {
  padding: 0;
  overflow: hidden;
}
.replay-advanced > summary {
  display: grid;
  /* A fourth column for the marker below, so the three that were here keep
     their widths and nothing moves sideways when it opens. */
  grid-template-columns: 130px minmax(0, 1fr) auto 1rem;
  gap: var(--s-3);
  align-items: center;
  padding: var(--s-3) var(--s-4);
  cursor: pointer;
  list-style: none;
}
/*
  Something that says this opens.
  
  `display: grid` on a summary suppresses the browser's own disclosure triangle,
  so this row had a pointer cursor and no other sign it was a control: the only
  hint was small muted text at the far right, which reads as a caption rather
  than as a thing to press. It looked inert and was reported as doing nothing.
  
  The same plus and minus `details.workings` already uses, rather than a new
  chevron, so the product has one way of saying "this opens" instead of two.
*/
.replay-advanced > summary::-webkit-details-marker {
  display: none;
}
.replay-advanced > summary::after {
  content: "+";
  justify-self: end;
  color: var(--accent);
  font-weight: 700;
}
.replay-advanced[open] > summary::after {
  content: "\2212";
}
.replay-advanced > summary > span {
  color: var(--accent);
  font-size: var(--t-small);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.replay-advanced > summary > small {
  color: var(--muted);
  font-size: var(--t-small);
}
.replay-advanced-body {
  display: grid;
  gap: var(--s-3);
  padding: var(--s-4);
  border-top: 1px solid var(--line);
  background: var(--wash);
}
/*
  How the record gets made, under the sentence that introduces the player.

  This used to be the third paragraph inside a closed disclosure headed "Saved
  record", which is a poor place for the one thing that explains why a screen
  full of days fills itself. Said quietly and always, rather than loudly and
  behind a click.
*/
.replay-recorder {
  margin: calc(var(--s-2) * -1) 0 var(--s-3);
  color: var(--muted);
  font-size: var(--t-small);
  line-height: var(--lh-small);
}

.replay-inline-help,
.replay-side-more {
  margin-top: var(--s-3);
  border-top: 1px solid var(--line);
}
.replay-inline-help > summary,
.replay-side-more > summary {
  padding: var(--s-2) 0;
  color: var(--accent);
  cursor: pointer;
  font-size: var(--t-small);
  font-weight: 650;
}
.replay-inline-help p {
  margin: 0;
  color: var(--muted);
  font-size: var(--t-small);
  line-height: var(--lh-small);
}
.replay-side-more dl {
  /* The same, for the facts behind the disclosure. */
  grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
  padding-top: var(--s-2);
  border-top: 1px solid var(--line);
}
.replay-advanced-section {
  display: grid;
  gap: var(--s-3);
}
.replay-advanced-body > .page-block {
  margin: 0;
  box-shadow: none;
}

.replay-comparison-purpose {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: var(--s-3) 0 var(--s-4);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--line);
}

.replay-comparison-purpose > div {
  padding: var(--s-3);
  background: var(--surface);
}

.replay-record { display: flex; gap: var(--s-3); flex-wrap: wrap; align-items: center; }
.replay-record form { margin: 0; }
.replay-record .chart-note { flex-basis: 100%; margin: 0; }
.replay-pick { display: flex; gap: var(--s-3); flex-wrap: wrap; align-items: end; margin-bottom: var(--s-4); }
/*
 * A night is named by its date, its opponent and what the weather did, so these
 * options are long. A select takes its width from its longest option and will
 * not shrink below it on its own, which put the picker 447 pixels wide in a 390
 * pixel window and scrolled the whole of `/replay` sideways. The label is a grid
 * item and needs the same cap, or it holds the width open from above.
 */
.replay-pick label { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; min-width: 0; max-width: 100%; }
.replay-pick span { font-size: var(--t-small); font-weight: 650; color: var(--muted); }
.replay-pick select {
  width: 100%;
  min-width: 0;
  font: inherit;
  font-size: var(--t-body-s);
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--ink);
}
.replay-split { display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.replay-side {
  padding: var(--s-4);
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent-mark);
  border-radius: var(--r-lg);
}
.replay-side strong { font-size: var(--t-h3); display: block; }
.replay-side-name { font-size: var(--t-small); color: var(--muted); }
/*
  The facts about one day, across rather than down.

  Four short pairs, stacked because the grid had no column rule, so comparing
  two days meant scrolling past eight of them to reach the comparison itself.
  A narrower track than the block above it, because these sit inside a
  two-column comparison and each side has half the width to work with.
*/
.replay-side dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
  align-items: start;
  gap: 6px var(--s-3);
  margin: var(--s-3) 0 0;
}
.replay-side dt { font-size: var(--t-small); color: var(--muted); }
.replay-side dd { margin: 0; font-size: var(--t-body-s); font-weight: 600; }

.building-question-list {
  display: grid;
  gap: var(--s-2);
  margin: var(--s-4) 0;
}
.building-question-list > details {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.building-question-list > details > summary {
  display: grid;
  grid-template-columns: 150px minmax(240px, 1fr) minmax(260px, 0.9fr);
  gap: var(--s-3);
  align-items: center;
  padding: var(--s-3) var(--s-4);
  cursor: pointer;
}
.building-question-list > details > summary:hover {
  background: var(--wash);
}
.building-question-list > details > summary span {
  color: var(--accent);
  font-size: var(--t-small);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.building-question-list > details > summary strong {
  font-size: var(--t-body);
}
.building-question-list > details > summary small {
  color: var(--muted);
  font-size: var(--t-small);
  line-height: var(--lh-small);
}
.building-question-list > details > .chart {
  margin: 0;
  padding: var(--s-4);
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

.plain-chart {
  display: grid;
  gap: var(--s-4);
}
.plain-chart-answer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--line);
}
.plain-chart-answer > div {
  display: grid;
  align-content: start;
  gap: 4px;
  padding: var(--s-3);
  background: var(--panel);
}
.plain-chart-answer span {
  color: var(--accent);
  font-size: var(--t-micro);
  font-weight: 800;
  letter-spacing: var(--track-small);
  text-transform: uppercase;
}
.plain-chart-answer strong {
  font-size: var(--t-body-s);
  line-height: var(--lh-body);
}
.plain-chart-answer p {
  margin: 0;
  color: var(--muted);
  font-size: var(--t-small);
  line-height: var(--lh-small);
}
.plain-hour-bars {
  display: grid;
  gap: var(--s-2);
}
.plain-hour-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-4);
  color: var(--muted);
  font-size: var(--t-small);
}
.plain-hour-bars > div:not(.plain-hour-legend) {
  display: grid;
  grid-template-columns: 48px minmax(180px, 1fr) 116px 58px;
  gap: var(--s-3);
  align-items: center;
}
.plain-hour-bars > div.is-peak {
  padding: var(--s-2);
  border-radius: var(--r-md);
  background: var(--now-soft);
}
.plain-hour-track {
  position: relative;
  height: 22px;
  overflow: hidden;
  border-radius: 3px;
  background: var(--wash);
}
.plain-hour-track b {
  display: block;
  height: 100%;
  background: var(--accent);
}
.plain-hour-track i {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--line-strong);
}
.plain-hour-bars strong {
  font-size: var(--t-small);
  text-align: right;
}
.plain-hour-bars em {
  color: var(--now);
  font-size: var(--t-small);
  font-style: normal;
  font-weight: 700;
}
.plain-status-list {
  display: grid;
  gap: var(--s-2);
}
.plain-status-list > div {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 88px 92px minmax(220px, 1fr);
  gap: var(--s-3);
  align-items: center;
  padding: var(--s-3);
  border: 1px solid var(--line);
  border-left: 4px solid var(--money);
  border-radius: var(--r-md);
  background: var(--panel);
}
.plain-status-list > div.is-fail {
  border-left-color: var(--now);
  background: var(--now-soft);
}
.plain-status-list span,
.plain-status-list em,
.plain-status-list small {
  font-size: var(--t-small);
}
.plain-status-list em {
  color: var(--money);
  font-style: normal;
  font-weight: 700;
}
.plain-status-list .is-fail em {
  color: var(--now);
}
.plain-status-list small {
  color: var(--muted);
  line-height: var(--lh-small);
}
.plain-event-timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-3);
  margin: 0;
  padding: 0;
  list-style: none;
}
.plain-event-timeline li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 3px var(--s-2);
  align-items: center;
  padding: var(--s-3);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--panel);
}
.plain-event-timeline li > span {
  grid-row: span 2;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
}
.plain-event-timeline small {
  color: var(--muted);
}
.plain-comparison-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--s-3);
}
.plain-comparison-cards article {
  display: grid;
  gap: 4px;
  padding: var(--s-3);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--panel);
}
.plain-comparison-cards span,
.plain-comparison-cards small,
.plain-comparison-cards p {
  color: var(--muted);
  font-size: var(--t-small);
}
.plain-comparison-cards strong {
  font-size: var(--t-h2);
}
.plain-comparison-cards p {
  margin: 4px 0 0;
}
.plain-data-details {
  border-top: 1px solid var(--line);
}
.plain-data-details > summary {
  padding: var(--s-2) 0;
  color: var(--accent);
  cursor: pointer;
  font-size: var(--t-small);
  font-weight: 700;
}
.plain-data-details table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--t-small);
}
.plain-data-details th,
.plain-data-details td {
  padding: var(--s-2);
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.plain-event-rows {
  display: grid;
}
.plain-event-rows > div {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) repeat(4, minmax(100px, 0.8fr));
  gap: var(--s-3);
  padding: var(--s-2);
  border-bottom: 1px solid var(--line);
  font-size: var(--t-small);
}
.plain-event-rows span {
  color: var(--muted);
}

@media (max-width: 760px) {
  .building-question-list > details > summary {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
  .plain-chart-answer,
  .plain-event-timeline {
    grid-template-columns: minmax(0, 1fr);
  }
  .plain-hour-bars > div:not(.plain-hour-legend),
  .plain-status-list > div,
  .plain-event-rows > div {
    grid-template-columns: minmax(0, 1fr);
  }
  .plain-hour-bars strong {
    text-align: left;
  }
}

.sim { display: grid; gap: var(--s-4); grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr); }
.sim-levers {
  display: grid;
  gap: var(--s-4);
  align-content: start;
  margin: var(--s-3) 0 var(--s-4);
}
.sim-beginner-note {
  padding: var(--s-3);
  border-left: 4px solid var(--accent-mark);
  border-radius: var(--r-md);
  background: var(--accent-soft);
}
.sim-beginner-note strong { font-size: var(--t-body-s); }
.sim-beginner-note p { margin: 4px 0 0; font-size: var(--t-small); line-height: var(--lh-small); }
.sim-lever { display: grid; gap: 4px; }
.sim-lever-name { font-size: var(--t-body-s); font-weight: 650; }
.sim-lever-plain { font-size: var(--t-small); color: var(--muted); line-height: var(--lh-small); }
.sim-lever input[type="range"] { width: 100%; accent-color: var(--accent); }
.sim-lever b { font-size: var(--t-body-s); color: var(--accent); }
.sim-lever select {
  font: inherit;
  padding: 7px 11px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--surface);
  max-width: 200px;
}
.sim-answer {
  padding: var(--s-4);
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 5px solid #2f7d4f;
  border-radius: var(--r-lg);
  align-content: start;
  display: grid;
  gap: 6px;
  /* The corner the mark is pinned to, the same corner every card in this
     product pins it to. */
  position: relative;
}
.sim-answer strong { font-size: 2rem; line-height: 1.1; }
.sim-answer strong.is-warm { color: var(--now); }
.sim-answer-gap { font-size: var(--t-small); color: var(--muted); }
.sim-verdict { margin: var(--s-2) 0 0; font-size: var(--t-body-s); line-height: var(--lh-body); }
.sim-verdict.is-warm { color: var(--now); font-weight: 600; }
.sim-break { margin-top: var(--s-4); }
.sim-break h3 { margin: 0 0 4px; font-size: var(--t-body); }
.sim-break-list { display: grid; gap: var(--s-2); grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: var(--s-3); }
.sim-break-list label {
  display: flex;
  gap: 9px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--panel);
  cursor: pointer;
  font-size: var(--t-small);
  line-height: var(--lh-small);
}
.sim-break-list label.is-on { border-color: var(--now); background: var(--now-soft); }
.sim-break-list b { display: block; font-size: var(--t-body-s); margin-bottom: 2px; }
.sim-broken { margin: var(--s-3) 0 0; font-weight: 600; color: var(--now); font-size: var(--t-body-s); }
.simulation-mini-steps {
  display: grid;
  gap: var(--s-2);
  margin: var(--s-3) 0;
  padding-left: 1.4rem;
}
.simulation-mini-steps li { padding-left: 4px; font-size: var(--t-body-s); }
.simulation-mini-steps strong { display: block; }
.simulation-mini-steps span { color: var(--muted); font-size: var(--t-small); }
.evidence-label {
  color: var(--muted);
  font-size: var(--t-micro);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.event-compare {
  margin-top: var(--s-5);
}
.simulator-evidence-body {
  display: grid;
  gap: var(--s-4);
  padding: var(--s-4);
  border-top: 1px solid var(--line);
  background: var(--wash);
}
.simulation-result-intro {
  display: grid;
  gap: var(--s-3);
  padding: var(--s-4);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  background: var(--panel);
}
.simulation-result-intro header h3 {
  margin: 3px 0;
  font-size: var(--t-h2);
}
.simulation-result-intro header p {
  margin: 0;
  color: var(--muted);
  font-size: var(--t-body-s);
  line-height: var(--lh-body);
}
.simulation-result-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-3);
}
.simulation-result-cards article {
  display: grid;
  gap: 4px;
  padding: var(--s-3);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}
.simulation-result-cards article.is-pass {
  border-color: #72a486;
  background: var(--money-soft);
}
.simulation-result-cards article.is-fail {
  border-color: #c98775;
  background: var(--now-soft);
}
.simulation-result-cards span,
.simulation-result-cards small {
  color: var(--muted);
  font-size: var(--t-small);
  line-height: var(--lh-small);
}
.simulation-result-cards strong {
  font-size: var(--t-h2);
}
.simulation-next {
  margin: 0;
  padding: var(--s-3);
  border-left: 4px solid var(--accent-mark);
  border-radius: var(--r-md);
  background: var(--accent-soft);
  font-size: var(--t-body-s);
  line-height: var(--lh-body);
}
.simulation-next.is-pass {
  border-left-color: var(--money);
  background: var(--money-soft);
}
.simulation-proof {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.simulation-proof > summary {
  display: grid;
  gap: 3px;
  padding: var(--s-3) var(--s-4);
  cursor: pointer;
}
.simulation-proof > summary strong {
  color: var(--accent);
  font-size: var(--t-body-s);
}
.simulation-proof > summary span {
  color: var(--muted);
  font-size: var(--t-small);
}
.simulation-proof-body {
  display: grid;
  gap: var(--s-4);
  padding: var(--s-4);
  border-top: 1px solid var(--line);
}
.event-compare-head {
  display: flex;
  gap: var(--s-4);
  align-items: start;
  justify-content: space-between;
}
.event-compare-head h3,
.zone-comparison h3 {
  margin: 0 0 4px;
  font-size: var(--t-h3);
}
.event-compare-head p,
.zone-comparison > p {
  max-width: 78ch;
  margin: 0;
  color: var(--muted);
  font-size: var(--t-body-s);
  line-height: var(--lh-body);
}
.calibration-state {
  flex: none;
  padding: 5px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  font-size: var(--t-small);
  font-weight: 700;
}
.calibration-state.is-ready {
  border-color: #72a486;
  background: var(--money-soft);
  color: var(--money);
}
.calibration-state.is-caution {
  border-color: #c79a61;
  background: #fff8ed;
  color: #784b17;
}
.comparison-changes {
  display: grid;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  font-size: var(--t-body-s);
}
.comparison-changes p { margin: 0; color: var(--muted); }
.comparison-changes ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.comparison-changes li {
  display: flex;
  gap: var(--s-3);
  justify-content: space-between;
}

@media (max-width: 760px) {
  .simulation-result-cards {
    grid-template-columns: minmax(0, 1fr);
  }
    .replay-advanced > summary {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
}
.comparison-changes li span { color: var(--muted); }
.comparison-changes li b { text-align: right; }
.comparison-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-3);
}
.comparison-card {
  display: grid;
  gap: 5px;
  padding: var(--s-4);
  border: 1px solid var(--line);
  border-top: 4px solid var(--line-strong);
  border-radius: var(--r-lg);
  background: var(--panel);
}
.comparison-card.is-recorded { border-top-color: var(--accent-mark); }
.comparison-card.is-as-run { border-top-color: #75818a; }
.comparison-card.is-proposed { border-top-color: var(--money-mark); }
.comparison-card h4 { margin: 0; font-size: var(--t-body); }
.comparison-card > strong { font-size: var(--t-h2); font-variant-numeric: tabular-nums; }
.comparison-card > span:not(.evidence-label) {
  font-size: var(--t-small);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.comparison-card p {
  margin: var(--s-2) 0 0;
  color: var(--muted);
  font-size: var(--t-small);
  line-height: var(--lh-small);
}
.comparison-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.comparison-table {
  width: 100%;
  min-width: 740px;
  border-collapse: collapse;
  background: var(--panel);
  font-size: var(--t-body-s);
  font-variant-numeric: tabular-nums;
}
.comparison-table caption {
  padding: var(--s-3);
  text-align: left;
  color: var(--muted);
  font-size: var(--t-small);
}
.comparison-table th,
.comparison-table td {
  padding: 9px var(--s-3);
  border-top: 1px solid var(--line);
  text-align: right;
  vertical-align: top;
}
.comparison-table th:first-child,
.comparison-table td:first-child { text-align: left; }
.comparison-table thead th {
  color: var(--muted);
  font-size: var(--t-small);
}
.comparison-table tbody tr:last-child { font-weight: 700; }
.comparison-table .is-good,
.zone-comparison .is-good { color: var(--money); font-weight: 700; }
.comparison-table .is-warm,
.zone-comparison .is-warm { color: var(--now); font-weight: 700; }
.calibration-detail {
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
  align-items: baseline;
  padding: var(--s-3);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent-mark);
  border-radius: var(--r-md);
  font-size: var(--t-body-s);
}
.calibration-detail span { color: var(--muted); }
.zone-comparison {
  display: grid;
  gap: var(--s-3);
  margin-top: var(--s-3);
}
.zone-comparison-list { display: grid; gap: var(--s-2); }
.zone-comparison-list details {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--panel);
}
.zone-comparison-list summary {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(220px, auto) auto;
  gap: var(--s-3);
  align-items: center;
  padding: var(--s-3) var(--s-4);
  cursor: pointer;
}
.zone-comparison-list summary > span { font-size: var(--t-body-s); }
.zone-comparison-list summary strong,
.zone-comparison-list summary small { display: block; }
.zone-comparison-list summary small { color: var(--muted); }
.zone-comparison-list summary b { font-size: var(--t-body-s); font-variant-numeric: tabular-nums; }
.zone-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-2);
  padding: 0 var(--s-4) var(--s-3);
}
.zone-summary-grid > div {
  display: grid;
  gap: 2px;
  padding: var(--s-3);
  background: var(--surface);
  border-radius: var(--r-md);
}
.zone-summary-grid span,
.zone-summary-grid small { color: var(--muted); font-size: var(--t-small); }
.zone-summary-grid strong { font-size: var(--t-h3); }
.zone-explanation {
  margin: 0 var(--s-4) var(--s-3);
  color: var(--muted);
  font-size: var(--t-small);
  line-height: var(--lh-small);
}
.zone-comparison-list .comparison-table-wrap {
  width: calc(100% - (2 * var(--s-4)));
  margin: 0 var(--s-4) var(--s-4);
}
.comparison-table.is-hourly tbody tr:last-child { font-weight: inherit; }
.sim-changes { margin: var(--s-3) 0; padding-left: 20px; display: grid; gap: var(--s-3); }
.sim-change-head { display: flex; gap: var(--s-2); flex-wrap: wrap; align-items: baseline; }
.sim-change-head em { font-style: normal; color: #22603c; font-weight: 650; font-size: var(--t-small); }
.sim-changes p { margin: 2px 0 0; font-size: var(--t-small); color: var(--muted); }
@media (max-width: 860px) {
  .sim { grid-template-columns: minmax(0, 1fr); }
  .comparison-cards { grid-template-columns: minmax(0, 1fr); }
  .event-compare-head { display: grid; }
  .zone-comparison-list summary { grid-template-columns: minmax(0, 1fr) auto; }
  .zone-comparison-list summary > span:nth-child(2) { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .zone-summary-grid { grid-template-columns: minmax(0, 1fr); }
  .zone-comparison-list summary { grid-template-columns: minmax(0, 1fr); }
}

.breadcrumbs {
  margin: 0 0 var(--s-3);
  padding: 0;
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: var(--t-small);
}
.breadcrumbs li {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.breadcrumbs li + li::before {
  content: "/";
  color: var(--line-strong);
}
.breadcrumbs a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.breadcrumbs [aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
}

.executive-head-compact {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-2) var(--s-5);
  align-items: end;
  margin-bottom: var(--s-3);
}
.executive-head-compact .spine-eyebrow,
.executive-head-compact h1 {
  grid-column: 1;
}
.executive-head-compact h1 {
  margin-bottom: 0;
}
.executive-head-compact .spine-lede {
  grid-column: 1;
  max-width: 72ch;
  margin: 0;
  font-size: var(--t-body-s);
}
.executive-head-compact .ledger-caveat {
  grid-column: 1 / -1;
}
.executive-head-compact + .executive-summary-disclosure,
.executive-summary-disclosure + #executive-trend {
  margin-top: var(--s-3);
}
.executive-record-coverage {
  margin: var(--s-3) 0 0;
  color: var(--muted);
  font-size: var(--t-small);
  text-align: right;
}
.executive-summary-disclosure {
  padding: 0;
}
.executive-summary-disclosure > summary {
  display: flex;
  gap: var(--s-4);
  align-items: center;
  justify-content: space-between;
  padding: var(--s-3) var(--s-4);
  cursor: pointer;
}
.executive-summary-disclosure > summary span {
  display: grid;
  gap: 2px;
}
.executive-summary-disclosure > summary small {
  color: var(--muted);
  font-size: var(--t-small);
}
.executive-summary-disclosure > summary em {
  color: var(--accent);
  font-size: var(--t-small);
  font-style: normal;
  font-weight: 700;
}
.executive-summary-disclosure-body {
  padding: 0 var(--s-4) var(--s-4);
}
.executive-largest-opportunity-link {
  cursor: pointer;
}
.executive-largest-opportunity-summary {
  display: grid;
  grid-template-columns: minmax(180px, 1.1fr) minmax(190px, 1fr) auto;
  gap: var(--s-3);
  align-items: center;
  margin-top: var(--s-2);
  padding: 10px 14px;
  border: 1px solid #dcc892;
  border-left: 4px solid #8f6b20;
  border-radius: var(--r-md);
  color: var(--ink);
  background: #fffdf8;
  text-decoration: none;
}
.executive-largest-opportunity-summary:hover {
  border-color: #b89543;
  background: #fff9eb;
}
.executive-largest-opportunity-summary span {
  display: grid;
  gap: 2px;
}
.executive-largest-opportunity-summary small {
  color: var(--muted);
  font-size: var(--t-micro);
}
.executive-largest-opportunity-summary strong {
  font-size: var(--t-small);
  font-variant-numeric: tabular-nums;
}
.executive-largest-opportunity-summary em {
  color: #6f5115;
  font-size: var(--t-small);
  font-style: normal;
  font-weight: 800;
  text-align: right;
  text-decoration: underline;
}
.executive-year-totals {
  display: grid;
  gap: var(--s-3);
  margin-top: var(--s-3);
}
.executive-year-totals > header {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-4);
  align-items: baseline;
}
.executive-year-totals > header span {
  color: var(--muted);
  font-size: var(--t-small);
}
.executive-year-totals > div {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--s-2);
}
.executive-year-totals article {
  display: grid;
  gap: 4px;
  padding: var(--s-3);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent-mark);
  border-radius: var(--r-md);
  background: var(--panel);
}
.executive-year-totals article > span,
.executive-year-totals article > small {
  color: var(--muted);
  font-size: var(--t-small);
}
.executive-year-totals article > em {
  margin-top: var(--s-2);
  color: var(--muted);
  font-size: var(--t-small);
  font-style: normal;
  font-weight: 700;
}
.executive-year-totals article > strong {
  font-size: clamp(1.15rem, 1.55vw, 1.4rem);
  line-height: 1.08;
  font-variant-numeric: tabular-nums;
}
.executive-year-totals dl {
  display: grid;
  gap: 3px;
  margin: var(--s-2) 0 0;
  padding-top: var(--s-2);
  border-top: 1px solid var(--line);
}
.executive-year-totals dl div {
  display: flex;
  gap: var(--s-2);
  justify-content: space-between;
}
.executive-year-totals dt {
  color: var(--muted);
}
.executive-year-totals dd {
  margin: 0;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 900px) {
  .executive-controls .executive-controls-actions {
    width: 100%;
    margin-left: 0;
  }
}

/* What the sky is doing, beside the clock, because it contributes to the load
   as well as the picture. */
.park-sky {
  font-size: var(--t-small);
  color: var(--muted);
  flex-basis: 100%;
}

/* The trust trail.
   The recommendation above it is four numbers. This is the search behind them,
   and it is laid out to be argued with: counts first, then the bill in parts,
   then every lever drawn across its whole range with the comfort edge shaded.
   Nothing in here is decoration and nothing in here is a summary. */
.trail-counts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--s-3);
  margin: var(--s-4) 0;
}
.trail-counts div {
  display: grid;
  gap: 2px;
  padding: var(--s-3);
  background: var(--surface, #f8fafb);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.trail-counts strong { font-size: var(--t-h2); line-height: 1.1; }
.trail-counts strong.is-good { color: var(--money); }
.trail-counts span { font-size: var(--t-small); color: var(--muted); line-height: var(--lh-small); }

.comfort-exclusions {
  display: grid;
  gap: 4px;
  margin-top: var(--s-3);
  padding: var(--s-3);
  border-left: 4px solid var(--now);
  border-radius: var(--r-md);
  background: var(--now-soft);
}
.comfort-exclusions strong {
  color: var(--now);
  font-size: var(--t-body-s);
  line-height: var(--lh-body);
}
.comfort-exclusions p {
  margin: 0;
  color: var(--ink);
  font-size: var(--t-small);
  line-height: var(--lh-small);
}

.search-decision {
  display: grid;
  gap: var(--s-4);
}
.search-filter,
.search-cost-range {
  display: grid;
  gap: var(--s-3);
  padding: var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--panel);
}
.search-filter header,
.search-cost-range header {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: var(--s-3);
  align-items: start;
}
.search-filter header > span,
.search-cost-range header > span {
  display: grid;
  place-items: center;
  min-height: 32px;
  border-radius: var(--r-md);
  background: var(--accent);
  color: #fff;
  font-size: var(--t-small);
  font-weight: 700;
}
.search-filter header strong,
.search-cost-range header strong {
  font-size: var(--t-body-l);
}
.search-filter header p,
.search-cost-range header p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: var(--t-small);
}
.search-filter-bar {
  display: flex;
  min-height: 72px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
}
.search-filter-bar > div {
  display: flex;
  min-width: 74px;
  gap: 7px;
  align-items: center;
  justify-content: center;
  padding: var(--s-3);
  text-align: center;
}
.search-filter-bar strong {
  font-size: var(--t-h2);
  line-height: 1;
}
.search-filter-bar span {
  font-size: var(--t-small);
  font-weight: 650;
}
.search-filter-bar .is-safe {
  background: var(--money-soft);
  color: var(--money);
}
.search-filter-bar .is-refused {
  background: var(--now-soft);
  color: var(--now);
}
.search-filter-counts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-2);
  margin: 0;
}
.search-filter-counts > div {
  display: grid;
  gap: 2px;
  padding-top: var(--s-2);
  border-top: 1px solid var(--line);
}
.search-filter-counts dt {
  color: var(--muted);
  font-size: var(--t-small);
}
.search-filter-counts dd {
  margin: 0;
  font-size: var(--t-body-l);
  font-weight: 700;
}
.search-cost-plot {
  position: relative;
  min-height: 148px;
  margin: var(--s-3) 78px 0;
}
.search-cost-rail {
  position: absolute;
  inset: 57px 0 auto;
  height: 8px;
  border-radius: 8px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-mark);
}
.search-cost-marker {
  position: absolute;
  top: 20px;
  display: grid;
  width: 130px;
  gap: 1px;
  transform: translateX(-50%);
  text-align: center;
}
.search-cost-marker i {
  width: 3px;
  height: 43px;
  margin: 0 auto 4px;
  background: var(--ink);
}
.search-cost-marker strong {
  font-size: var(--t-small);
}
.search-cost-marker span {
  color: var(--muted);
  font-size: var(--t-small);
}
.search-cost-marker.is-best {
  top: 9px;
  color: var(--money);
  text-align: left;
  transform: translateX(0);
}
.search-cost-marker.is-best i {
  margin-left: 0;
  background: var(--money);
}
.search-cost-marker.is-high {
  text-align: right;
  transform: translateX(-100%);
}
.search-cost-marker.is-high i {
  margin-right: 0;
}
.search-cost-marker.is-median {
  top: 72px;
}
.search-cost-marker.is-median i {
  order: -1;
  height: 17px;
}
.search-cost-marker.is-as-run {
  top: 3px;
  color: var(--now);
}
.search-cost-marker.is-as-run i {
  height: 49px;
  background: var(--now);
}
.search-decision-answer {
  margin: 0;
  padding: var(--s-3) var(--s-4);
  border-left: 4px solid var(--money);
  border-radius: var(--r-md);
  background: var(--money-soft);
  font-size: var(--t-body-s);
  line-height: var(--lh-body);
}

@media (max-width: 700px) {
  .search-filter-counts {
    grid-template-columns: minmax(0, 1fr);
  }
  .search-filter-bar > div {
    display: grid;
  }
  .search-cost-plot {
    min-height: 220px;
    margin-inline: 8px;
  }
  .search-cost-marker {
    width: 100px;
  }
  .search-cost-marker.is-median {
    top: 78px;
  }
}

.trail-space { list-style: none; margin: var(--s-3) 0; padding: 0; display: grid; gap: var(--s-2); }
.trail-space li {
  display: grid;
  gap: 2px;
  padding-left: var(--s-3);
  border-left: 3px solid var(--accent-mark);
}
.trail-space li.is-pinned { border-left-color: var(--line-strong); }
.trail-space strong { font-size: var(--t-body-s); }
.trail-space span { font-size: var(--t-small); color: var(--muted); line-height: var(--lh-small); }

.trail-terms, .trail-days {
  width: 100%;
  border-collapse: collapse;
  margin: var(--s-3) 0 var(--s-4);
  font-size: var(--t-body-s);
}
.trail-terms th, .trail-terms td, .trail-days th, .trail-days td {
  text-align: left;
  padding: var(--s-2) var(--s-3);
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: var(--lh-data);
}
.trail-terms thead th, .trail-days thead th {
  font-size: var(--t-small);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  border-bottom: 2px solid var(--line-strong);
}
.trail-terms tbody th span, .trail-days tbody th span {
  display: block;
  font-weight: 400;
  font-size: var(--t-small);
  color: var(--muted);
  line-height: var(--lh-small);
}
.trail-terms td { font-variant-numeric: tabular-nums; }
.trail-terms td.is-good { color: var(--money); font-weight: 650; }
.trail-terms tr.is-total th, .trail-terms tr.is-total td {
  border-top: 2px solid var(--line-strong);
  border-bottom: none;
  font-weight: 700;
}
.trail-days td { font-variant-numeric: tabular-nums; }
.trail-days tr.is-quiet { color: var(--muted); }
.trail-days .is-flag {
  display: inline-block;
  margin-left: var(--s-2);
  padding: 1px 6px;
  border-radius: 3px;
  background: var(--now-soft);
  color: var(--now);
  font-size: var(--t-micro);
  font-weight: 650;
}

.trail-solo { list-style: none; margin: var(--s-3) 0; padding: 0; display: grid; gap: var(--s-3); }
.trail-solo li { padding-left: var(--s-3); border-left: 3px solid var(--money-mark); }
.trail-solo li.is-still { border-left-color: var(--line); }
.trail-solo-head { display: flex; gap: var(--s-2); flex-wrap: wrap; align-items: baseline; }
.trail-solo-head strong { font-size: var(--t-body-s); }
.trail-solo-head span { font-size: var(--t-small); color: var(--muted); }
.trail-solo-head em { font-style: normal; font-weight: 650; font-size: var(--t-small); color: #22603c; }
.trail-solo-head em.is-refused { color: var(--now); }
.trail-solo-head em.is-still { color: var(--muted); }
.trail-solo p { margin: 2px 0 0; font-size: var(--t-small); color: var(--muted); line-height: var(--lh-small); }

.trail-curves {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--s-4);
  margin: var(--s-3) 0 var(--s-4);
}
.trail-curve { margin: 0; }
.trail-curve figcaption { font-size: var(--t-body-s); font-weight: 650; margin-bottom: 4px; }
.trail-curve svg { width: 100%; height: auto; }

.trail-keep {
  margin-top: var(--s-5);
  padding-top: var(--s-4);
  border-top: 1px solid var(--line);
  display: grid;
  gap: var(--s-3);
  max-width: 520px;
}
.trail-keep h3 { margin: 0; }
.trail-keep label { display: grid; gap: 4px; }
.trail-keep label span { font-size: var(--t-small); font-weight: 600; }
.trail-keep input {
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  font: inherit;
  font-size: var(--t-body-s);
  background: var(--panel);
  color: var(--ink);
}
.trail-keep input:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
.trail-keep a.source-test { text-decoration: none; display: inline-flex; align-items: center; }

/* The hour being shown sits above the control that changes it.
   One row holding the sky, the hour, what it was like and the way back, so a
   reader gets the reading before they get the slider rather than after it. */
.park-state {
  flex: 1 1 100%;
  display: flex;
  align-items: baseline;
  gap: var(--s-3);
  flex-wrap: wrap;
}
.park-state .park-readout { flex: 1 1 240px; }
.park-state .park-sky { flex-basis: 100%; }
.park-state .park-back { flex: none; margin-left: auto; }

/* What to do, before the argument for it.
   The search produces four settings and a number. An operator asked what to do,
   when to do it, what it is worth and why, so that is the shape of the list and
   the settings are the evidence underneath it. */
.do-list {
  list-style: none;
  counter-reset: doing;
  margin: var(--s-4) 0;
  padding: 0;
  display: grid;
  gap: var(--s-4);
}
.do-list li {
  counter-increment: doing;
  display: grid;
  gap: var(--s-2);
  padding: var(--s-4) var(--s-4) var(--s-4) 56px;
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent-mark);
  border-radius: 8px;
}
.do-list li::before {
  content: counter(doing);
  position: absolute;
  left: 16px;
  top: var(--s-4);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: var(--t-body-s);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.do-what { font-size: var(--t-body-l); line-height: var(--lh-body-l); }
.do-detail { display: grid; gap: var(--s-2); margin: 0; }
.do-detail > div { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: var(--s-3); }
.do-detail dt {
  font-size: var(--t-small);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.do-detail dd { margin: 0; font-size: var(--t-body-s); line-height: var(--lh-body); }
.do-detail dd.is-good { color: var(--money); font-weight: 650; }

@media (max-width: 620px) {
  .do-detail > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

/* The deeper half of the work, folded away until somebody wants it. */
.trail-more > summary {
  cursor: pointer;
  font-size: var(--t-body-s);
  font-weight: 650;
  color: var(--accent);
  padding: var(--s-2) 0;
}
.trail-more[open] > summary { margin-bottom: var(--s-3); }

/* Where the weather is on this night, as a control and not a caption. A night
   that rains between five and eight looks dry at every other hour, so somebody
   who opens it and sees cloud has been told nothing.
 *
 * This was written as a second `.park-jump` rule, which is the same selector the
 * lead line's "Show me" button uses. Later rule wins, so every jump button in
 * the drawing inherited `flex-basis: 100%`: the button stretched the full width
 * of the lead box and squeezed the sentence beside it into a column two words
 * wide. Two rules under one name, and neither file showed the whole of what a
 * jump button did. */
.park-wet {
  flex-basis: 100%;
  text-align: left;
  background: #eef4f8;
  border: 1px solid #9fb8ca;
  border-radius: 8px;
  padding: 6px 12px;
  font: inherit;
  font-size: var(--t-body-s);
  font-weight: 600;
  color: #2a4a5e;
  cursor: pointer;
}
.park-wet:hover { background: #e2edf4; }
.park-wet:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }

/* The three worth considering.
 *
 * Colour carries rank and nothing else, and it comes from the three marks this
 * product already has rather than a palette invented for one block. Green is
 * what the search picked, teal is behind it, slate is third. Nobody has to tell
 * them apart by colour: the rank is a numeral, the heading says first, second
 * and third in words, and a fallback says so on its face. */
.podium {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: var(--s-3);
  margin: var(--s-3) 0 var(--s-5);
}

.podium-option {
  border: 1px solid var(--line);
  border-top: 3px solid var(--muted);
  border-radius: 6px;
  background: var(--panel);
  padding: var(--s-3) var(--s-3) var(--s-4);
}
.podium-option.is-rank-1 { border-top-color: var(--money-mark); background: var(--money-soft); }
.podium-option.is-rank-2 { border-top-color: var(--accent-mark); }
.podium-option.is-rank-3 { border-top-color: var(--line-strong); }
.podium-option.is-fallback { background: var(--page); }

.podium-option header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 var(--s-2);
  align-items: baseline;
  margin-bottom: var(--s-3);
}
.podium-rank {
  grid-row: span 2;
  font-size: var(--t-h2);
  font-weight: 700;
  line-height: 1;
  color: var(--muted);
}
.is-rank-1 .podium-rank { color: var(--money); }
.is-rank-2 .podium-rank { color: var(--accent); }

.podium-option h4 {
  margin: 0;
  font-size: var(--t-body);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2);
}
.podium-tag {
  font-size: var(--t-micro);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 650;
  padding: 2px 6px;
  border-radius: 3px;
  background: var(--money);
  color: #ffffff;
}
.podium-tag.is-quiet { background: var(--muted); }

.podium-money {
  margin: 0;
  font-size: var(--t-body-l);
  font-weight: 700;
  color: var(--money);
}
.is-rank-2 .podium-money, .is-rank-3 .podium-money { color: var(--ink); }
.podium-money span {
  display: block;
  font-size: var(--t-small);
  font-weight: 400;
  color: var(--muted);
}

.podium-settings, .podium-facts { margin: 0 0 var(--s-3); }
.podium-settings > div, .podium-facts > div {
  display: flex;
  justify-content: space-between;
  gap: var(--s-3);
  padding: var(--s-1) 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--t-body-s);
}
.podium-settings dt, .podium-facts dt { color: var(--muted); }
.podium-settings dd, .podium-facts dd {
  margin: 0;
  text-align: right;
  font-weight: 650;
  line-height: var(--lh-data);
}
.podium-note {
  display: block;
  font-weight: 400;
  font-size: var(--t-small);
  color: var(--muted);
}

.podium-why {
  margin: 0;
  font-size: var(--t-body-s);
  line-height: var(--lh-prose);
}
.podium-why strong { color: var(--ink); }

/* The method, explained. Two definition lists doing different jobs: the levers
 * carry a count beside the name, the glossary is a plain term and its meaning. */
.sim-levers > div {
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--line);
}
.sim-levers dt {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--s-2);
  font-weight: 650;
}
.sim-levers dt span {
  font-weight: 400;
  font-size: var(--t-small);
  color: var(--muted);
}
.sim-levers dd {
  margin: var(--s-1) 0 0;
  color: var(--muted);
  line-height: var(--lh-prose);
}

.sim-glossary { margin: var(--s-3) 0 0; }
.sim-glossary > div {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  gap: var(--s-3);
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--line);
}
.sim-glossary dt { font-weight: 650; }
.sim-glossary dd { margin: 0; color: var(--muted); line-height: var(--lh-prose); }
@media (max-width: 620px) {
  .sim-glossary > div { grid-template-columns: 1fr; gap: var(--s-1); }
}

/* The size comparison on the money page. Same rows as the podium's facts, wider
   left column because the terms are longer. */
.sim-intensity > div { padding: var(--s-2) 0; }
.sim-intensity dt { max-width: 46%; }

/* A link inside a sentence.
   Every other link in this product is a card, a tab, a nav item or a button and
   carries its own shape. These are words in prose, and they had no style at all:
   nine of them across seven pages, rendering as body text, so "the trust screen
   names every feed" gave a reader nothing to press. Scoped to a bare anchor
   directly inside a paragraph, which is what a prose link is and what none of
   the shaped ones are. */
.spine p > a:not([class]) {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.spine p > a:not([class]):hover { text-decoration-thickness: 2px; }

/* Setup: the first screen a fresh install shows. Wider than a page block needs
   because it is read once, standing up, by somebody who has just unboxed this. */
.setup { max-width: 44rem; margin: 0 auto; padding: var(--s-5) var(--s-4) var(--s-6); }
.setup .page-head { margin-bottom: var(--s-5); }

.setup-address { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: flex-end; }
.setup-address label { flex: 1 1 22rem; }
.setup-location {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-3);
}
.setup-location span {
  color: var(--muted);
  font-size: var(--t-small);
}
.setup-location button {
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: 4px;
  color: var(--accent);
  cursor: pointer;
  font: inherit;
  font-weight: 650;
  padding: var(--s-2) var(--s-4);
}
.setup-first-run-steps {
  display: grid;
  gap: var(--s-2);
  margin: var(--s-4) 0 0;
  padding-left: 1.25rem;
}
.setup-readiness-summary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: var(--s-5);
  padding: var(--s-4);
}
.setup-readiness-summary > div:first-child {
  align-items: baseline;
  display: flex;
  gap: var(--s-2);
}
.setup-readiness-summary > div:first-child strong {
  color: var(--ink);
  font-size: 2rem;
  line-height: 1;
}
.setup-readiness-summary > div:first-child span,
.setup-readiness-summary small {
  color: var(--muted);
}
.setup-readiness-summary > small {
  display: block;
  margin-top: var(--s-2);
  line-height: var(--lh-small);
}
.setup-readiness-meter {
  background: var(--wash);
  border-radius: 999px;
  height: 8px;
  margin: var(--s-3) 0;
  overflow: hidden;
}
.setup-readiness-meter > span {
  background: var(--accent);
  display: block;
  height: 100%;
}
.setup-readiness-summary p {
  margin: 0 0 var(--s-2);
}
.setup-readiness-summary .setup-go {
  margin: var(--s-2) 0;
}
.setup-readiness-summary .setup-go:disabled {
  cursor: wait;
  opacity: 0.7;
}
.setup-readiness-summary .setup-run-error {
  display: block;
  color: var(--now);
}
.setup-run-events {
  display: grid;
  gap: var(--s-1);
  list-style: none;
  margin: var(--s-2) 0 0;
  max-height: 16rem;
  overflow-y: auto;
  padding: 0;
}
.setup-run-events li {
  align-items: baseline;
  border-left: 2px solid var(--line);
  display: grid;
  gap: var(--s-1);
  grid-template-columns: 10rem 1fr auto;
  padding-left: var(--s-2);
}
.setup-run-events li.is-failed {
  border-left-color: var(--now);
}
.setup-run-events li.is-complete {
  border-left-color: var(--money-mark);
}
.setup-run-event-task {
  font-weight: 600;
}
.setup-run-event-when {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.setup-orchestration-list {
  display: grid;
  gap: var(--s-3);
  list-style: none;
  margin: 0;
  padding: 0;
}
.setup-orchestration-list > li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--muted);
  border-radius: 8px;
  display: grid;
  gap: var(--s-3);
  grid-template-columns: 2rem 1fr;
  padding: var(--s-4);
}
.setup-orchestration-list > li.is-complete {
  border-left-color: var(--money-mark);
}
.setup-orchestration-list > li.is-automatic {
  border-left-color: var(--accent);
}
.setup-orchestration-list > li.is-needs-person {
  border-left-color: var(--now-mark);
}
.setup-orchestration-number {
  align-items: center;
  background: var(--wash);
  border-radius: 50%;
  display: flex;
  font-size: var(--t-small);
  font-weight: 800;
  height: 2rem;
  justify-content: center;
  width: 2rem;
}
.setup-orchestration-heading {
  align-items: flex-start;
  display: flex;
  gap: var(--s-3);
  justify-content: space-between;
}
.setup-orchestration-heading h2 {
  font-size: 1.05rem;
  margin: 0;
}
.setup-orchestration-heading span {
  background: var(--wash);
  border-radius: 999px;
  color: var(--muted);
  flex: 0 0 auto;
  font-size: var(--t-small);
  font-weight: 700;
  padding: var(--s-1) var(--s-2);
}
.setup-orchestration-list p {
  color: var(--muted);
  margin: var(--s-2) 0 var(--s-3);
}
.setup-orchestration-list dl {
  display: grid;
  gap: var(--s-2);
  margin: 0;
}
.setup-orchestration-list dl > div {
  display: grid;
  gap: var(--s-1);
  grid-template-columns: 8rem 1fr;
}
.setup-orchestration-list dt {
  color: var(--muted);
  font-size: var(--t-small);
  font-weight: 700;
}
.setup-orchestration-list dd {
  margin: 0;
}
.setup-orchestration-list a,
.source-readiness-link > a {
  color: var(--accent);
  display: inline-block;
  font-weight: 700;
  margin-top: var(--s-3);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.source-readiness-link {
  align-items: center;
  display: flex;
  gap: var(--s-4);
  justify-content: space-between;
}
.source-readiness-link h2,
.source-readiness-link p {
  margin-bottom: var(--s-1);
}
.source-readiness-link > a {
  flex: 0 0 auto;
  margin-top: 0;
}
@media (max-width: 42rem) {
  .setup-orchestration-heading,
  .source-readiness-link {
    align-items: stretch;
    flex-direction: column;
  }
  .setup-orchestration-heading span {
    align-self: flex-start;
  }
  .setup-orchestration-list dl > div {
    grid-template-columns: 1fr;
  }
}
.setup-readiness-list {
  display: grid;
  gap: var(--s-3);
  margin-top: var(--s-4);
}
.setup-readiness-list details {
  border-left: 3px solid var(--accent);
  padding: var(--s-2) 0 var(--s-2) var(--s-3);
}

.capability-head {
  align-items: flex-start;
  display: grid;
  gap: var(--s-5);
  grid-template-columns: minmax(0, 1fr) auto;
}
.capability-status {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--now-mark);
  border-radius: 8px;
  display: grid;
  gap: 2px;
  min-width: 11rem;
  padding: var(--s-3);
}
.capability-status.is-confirmed {
  border-left-color: var(--money-mark);
}
.capability-status span,
.capability-grid small {
  color: var(--muted);
  font-size: var(--t-small);
}
.setup-notice {
  background: var(--wash);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  padding: var(--s-3);
}
.capability-confirm {
  align-items: start;
  display: grid;
  gap: var(--s-5);
  grid-template-columns: minmax(0, 1.35fr) minmax(17rem, 0.65fr);
}
.capability-confirm form,
.point-evidence form {
  background: var(--wash);
  border-radius: 8px;
  display: grid;
  gap: var(--s-3);
  padding: var(--s-4);
}
.capability-confirm label,
.point-evidence label {
  display: grid;
  font-size: var(--t-small);
  font-weight: 700;
  gap: var(--s-1);
}
.capability-confirm input,
.capability-confirm select,
.point-evidence input,
.point-evidence select {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: inherit;
  font: inherit;
  min-height: 2.75rem;
  padding: 0 var(--s-2);
}
.capability-grid {
  display: grid;
  gap: var(--s-3);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.capability-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: var(--s-3);
}
.capability-grid article > div {
  align-items: start;
  display: flex;
  gap: var(--s-3);
  justify-content: space-between;
}
.capability-grid h3,
.capability-grid p {
  margin: 0 0 var(--s-2);
}
.capability-grid article > div span {
  background: var(--wash);
  border-radius: 999px;
  color: var(--muted);
  flex: 0 0 auto;
  font-size: var(--t-small);
  padding: 3px var(--s-2);
}
.medical-gas-panel {
  border-left: 4px solid var(--accent);
  padding-left: var(--s-4);
}
.capability-metrics {
  display: grid;
  gap: var(--s-3);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: var(--s-4) 0;
}
.capability-metrics > div {
  background: var(--wash);
  border-radius: 8px;
  display: grid;
  padding: var(--s-3);
}
.capability-metrics strong {
  font-size: 1.5rem;
}
.capability-metrics span {
  color: var(--muted);
  font-size: var(--t-small);
}
.safety-boundary {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: var(--s-3);
}
.medical-gas-policy {
  align-items: start;
  display: grid;
  gap: var(--s-4);
  grid-template-columns: minmax(0, 1fr) minmax(19rem, 0.75fr);
  margin: var(--s-4) 0;
}
.medical-gas-policy form {
  background: var(--wash);
  border-radius: 8px;
  display: grid;
  gap: var(--s-2);
  padding: var(--s-3);
}
.medical-gas-policy label {
  display: grid;
  font-size: var(--t-small);
  font-weight: 700;
  gap: var(--s-1);
}
.medical-gas-policy input,
.medical-gas-policy select {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: inherit;
  font: inherit;
  min-height: 2.5rem;
  padding: 0 var(--s-2);
}
.capability-table-wrap {
  margin-top: var(--s-3);
  max-width: 100%;
  overflow-x: auto;
}
.capability-table {
  border-collapse: collapse;
  min-width: 44rem;
  width: 100%;
}
.capability-table th,
.capability-table td {
  border-bottom: 1px solid var(--line);
  padding: var(--s-2);
  text-align: left;
  vertical-align: top;
}
.point-review-list {
  display: grid;
  gap: var(--s-2);
  margin-top: var(--s-4);
}
.point-model-pass {
  align-items: center;
  background: var(--wash);
  border-radius: 8px;
  display: grid;
  gap: var(--s-4);
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: var(--s-4);
  padding: var(--s-4);
}
.point-model-pass h3,
.point-model-pass p {
  margin: 0 0 var(--s-2);
}
.point-model-pass form {
  display: grid;
  gap: var(--s-1);
}
.point-model-pass small {
  color: var(--muted);
  text-align: center;
}
.point-review-list > details {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: var(--s-3);
}
.point-review-list summary {
  cursor: pointer;
  display: grid;
  font-weight: 700;
  gap: 2px;
}
.point-review-list summary small {
  color: var(--muted);
  font-weight: 400;
}
.point-evidence {
  display: grid;
  gap: var(--s-4);
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.8fr);
  padding-top: var(--s-4);
}
.point-evidence dl {
  display: grid;
  gap: var(--s-2);
  margin: 0;
}
.point-evidence dl > div {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: var(--s-2);
  grid-template-columns: 8rem 1fr;
  padding-bottom: var(--s-2);
}
.point-evidence dt {
  color: var(--muted);
  font-size: var(--t-small);
  font-weight: 700;
}
.point-evidence dd {
  margin: 0;
}
@media (max-width: 48rem) {
  .capability-head,
  .capability-confirm,
  .medical-gas-policy,
  .point-model-pass,
  .point-evidence {
    grid-template-columns: 1fr;
  }
  .capability-grid,
  .capability-metrics {
    grid-template-columns: 1fr;
  }
}
.setup-readiness-list summary {
  cursor: pointer;
  list-style-position: outside;
  margin-left: 1rem;
}
.setup-readiness-list summary > span {
  color: var(--accent);
  display: block;
  font-size: var(--t-small);
  font-weight: 750;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}
.setup-readiness-list summary > strong {
  display: block;
  font-size: 1rem;
  margin-top: var(--s-1);
}
.setup-readiness-list dl,
.setup-readiness-list dl > div {
  display: grid;
  gap: var(--s-1);
}
.setup-readiness-list dl {
  margin: var(--s-3) 0 0 1rem;
}
.setup-readiness-list dl > div {
  grid-template-columns: 7rem 1fr;
}
.setup-readiness-list dt {
  color: var(--muted);
  font-size: var(--t-small);
  font-weight: 700;
}
.setup-readiness-list dd {
  margin: 0;
}
@media (max-width: 34rem) {
  .setup-readiness-list dl > div {
    grid-template-columns: 1fr;
  }
}
.setup-advanced > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--s-2);
  align-items: start;
  color: var(--accent);
  cursor: pointer;
  font-weight: 700;
}
.setup-advanced > summary > span:first-child { min-width: 0; }
.setup-advanced > summary .disclosure-summary { justify-self: end; text-align: right; }
.setup-advanced[open] > summary {
  margin-bottom: var(--s-4);
}
.setup-advanced .page-block {
  padding-left: 0;
  padding-right: 0;
}
.setup label { display: block; }
/* A field label directly under a paragraph sat on top of it, because the label
   carries the gap and a paragraph before it does not. Every form on these
   screens explains itself in prose first, so this is every one of them. */
.setup p + label,
.setup p + .setup-fields,
.setup p + .setup-choice { margin-top: var(--s-3); }
.setup label > span {
  display: block;
  font-size: var(--t-small);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: var(--s-1);
}
.setup input {
  width: 100%;
  padding: var(--s-2) var(--s-3);
  font: inherit;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--panel);
  color: var(--ink);
}
.setup input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

.setup-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: var(--s-3); }

.setup-brand {
  display: grid;
  grid-template-columns: minmax(10rem, 14rem) 1fr;
  gap: var(--s-4);
  align-items: start;
}

.setup-brand-preview {
  display: grid;
  min-height: 9rem;
  place-items: center;
  padding: var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #ffffff;
}

.setup-brand-preview img {
  display: block;
  width: 100%;
  max-height: 8rem;
  object-fit: contain;
}

.setup-brand dd {
  overflow-wrap: anywhere;
}

@media (max-width: 580px) {
  .setup-brand {
    grid-template-columns: 1fr;
  }
}

.setup-go, .setup-danger {
  font: inherit;
  font-weight: 650;
  padding: var(--s-2) var(--s-4);
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
}
.setup-go { background: var(--accent); color: #ffffff; }
.setup-danger { background: var(--panel); color: var(--now); border-color: var(--now); }

.setup-candidates, .setup-asks { list-style: none; padding: 0; margin: var(--s-3) 0; }
.setup-candidates li, .setup-asks li {
  padding: var(--s-2) 0;
  border-bottom: 1px solid var(--line);
}
.setup-candidates strong, .setup-asks strong { display: block; }
.setup-candidates span, .setup-asks span {
  display: block;
  color: var(--muted);
  font-size: var(--t-body-s);
  line-height: var(--lh-prose);
}

/* One question on the seating import, which is the only thing on that screen
   somebody has to know rather than look up. Radios rather than a select, because
   both answers need a sentence and a dropdown hides one of them. */
.setup-choice { display: grid; gap: var(--s-2); }
.setup-choice label {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-2);
  align-items: start;
  padding: var(--s-2) var(--s-3);
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
  cursor: pointer;
}
.setup-choice label:has(input:checked) { border-color: var(--accent); }
.setup-choice input { margin-top: 3px; }
/* These are sentences, and `.setup label > span` shouts every field label in
   this form. A field label is two words and reads fine that way; "THE SEATING
   WRAPS AROUND A FLOOR OR A FIELD, THE WAY A BOWL DOES" does not. */
.setup-choice label > span {
  color: var(--ink);
  font-size: var(--t-body);
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  margin-bottom: 0;
}

.setup textarea {
  width: 100%;
  padding: var(--s-2) var(--s-3);
  font-family: inherit;
  font-size: var(--t-body-s);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--panel);
  color: var(--ink);
  resize: vertical;
}

/* The install's own record, offered as a file somebody can send. */
.install-logs {
  list-style: none;
  margin: var(--s-3) 0;
  padding: 0;
  display: grid;
  gap: var(--s-3);
}

.install-logs li {
  padding: var(--s-3);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--wash);
}

.install-logs a {
  font-weight: 600;
}

.install-logs small {
  display: block;
  font-size: var(--t-small);
  color: var(--muted);
  overflow-wrap: anywhere;
}

.install-logs p {
  margin: var(--s-2) 0 0;
}

.install-record .install-note {
  font-size: var(--t-small);
  color: var(--muted);
}

/* Which version is running, and what to open to change it. */
.install-versions .install-running {
  font-size: var(--t-h3);
  margin-bottom: var(--s-2);
}

.install-versions .install-waiting {
  padding: var(--s-3);
  border: 1px solid #bdd5c8;
  border-left: 4px solid var(--money-mark);
  border-radius: var(--r-md);
  background: var(--money-soft);
}

.install-versions dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--s-3);
  margin: var(--s-3) 0;
}

.install-versions dt {
  font-size: var(--t-small);
  color: var(--muted);
}

.install-versions dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.install-versions .install-note {
  font-size: var(--t-small);
  color: var(--muted);
}

/* Startup identity: the exact evidence behind "this is the same install." */
.install-verdict {
  margin-bottom: var(--s-5);
  padding: var(--s-4);
  border: 1px solid #bdd5c8;
  border-left: 4px solid var(--money-mark);
  border-radius: var(--r-md);
  background: var(--money-soft);
}

.install-verdict.is-review {
  border-color: #dec991;
  border-left-color: #a66d08;
  background: #fdf6e8;
}

.install-verdict.is-blocked,
.install-verdict.is-unchecked {
  border-color: #e4b9ad;
  border-left-color: var(--now-mark);
  background: var(--now-soft);
}

.install-verdict h2 {
  margin: var(--s-1) 0 var(--s-2);
  font-size: var(--t-h3);
}

.install-verdict > p:last-of-type {
  margin-bottom: var(--s-3);
}

.install-verdict dl,
.install-changes dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: var(--s-2);
  margin: 0;
}

.install-verdict dl > div,
.install-changes dl > div {
  padding-top: var(--s-2);
  border-top: 1px solid rgba(16, 32, 42, 0.16);
}

.install-verdict dt,
.install-changes dt {
  color: var(--muted);
  font-size: var(--t-micro);
  font-weight: 700;
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
}

.install-verdict dd,
.install-changes dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
  font-size: var(--t-body-s);
}

.install-changes,
.install-history {
  list-style: none;
  margin: var(--s-3) 0 0;
  padding: 0;
}

.install-changes {
  display: grid;
  gap: var(--s-3);
}

.install-changes li {
  padding: var(--s-3);
  border: 1px solid #dec991;
  border-left: 4px solid #a66d08;
  border-radius: var(--r-md);
  background: #fdf6e8;
}

.install-changes li.is-blocked {
  border-color: #e4b9ad;
  border-left-color: var(--now-mark);
  background: var(--now-soft);
}

.install-changes p {
  margin: var(--s-1) 0 var(--s-3);
  color: var(--muted);
}

.install-evidence {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--s-3);
  margin-top: var(--s-3);
}

.install-evidence > div {
  min-width: 0;
  padding: var(--s-3);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--panel);
}

.install-evidence h3 {
  margin: 0 0 var(--s-1);
  font-size: var(--t-body);
}

.install-evidence p,
.install-evidence small {
  overflow-wrap: anywhere;
}

.install-evidence p {
  margin: 0;
  font-size: var(--t-body-s);
}

.install-evidence small {
  display: block;
  margin-top: var(--s-1);
  color: var(--muted);
  line-height: var(--lh-small);
}

.install-check-page form {
  display: grid;
  gap: var(--s-3);
  margin-top: var(--s-3);
}

.install-check-page form button {
  justify-self: start;
}

.install-history li {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) auto;
  gap: var(--s-2);
  padding: var(--s-2) 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.install-history strong {
  text-transform: capitalize;
}

.install-history span,
.install-history small {
  color: var(--muted);
  font-size: var(--t-small);
}

@media (max-width: 540px) {
  .install-history li {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}
.setup textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

/* The shortlist, once picking one of them became a thing somebody does. A city
   address returns ten buildings inside sixty metres and the difference between
   the right one and the tower next door is every figure on the screen. */
.setup-candidates li a {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: var(--s-2);
  margin: calc(var(--s-2) * -1);
  border-radius: 4px;
}
.setup-candidates li a:hover { background: var(--wash); }
.setup-candidates li.is-chosen { border-left: 3px solid var(--accent); padding-left: var(--s-3); }
.setup-candidates li em {
  display: block;
  margin-top: var(--s-1);
  font-style: normal;
  font-size: var(--t-small);
  color: var(--accent);
}

/* The ordered walk through the credentials. A numbered list rather than five
   equal panels, because the controls turn on almost everything and the work
   history turns on one screen, and a list of equals says neither. */
.walk { list-style: none; padding: 0; margin: var(--s-3) 0 0; display: grid; gap: var(--s-2); }
.walk li {
  display: grid;
  grid-template-columns: 1.75rem 1fr;
  gap: var(--s-3);
  padding: var(--s-3);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--panel);
}
.walk li.is-proved { border-left: 3px solid var(--good, var(--accent)); }
.walk li.is-saved { border-left: 3px solid var(--warn, var(--now)); }
.walk-at {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--muted);
}
.walk li strong { display: block; }
.walk li span,
.walk li em {
  display: block;
  color: var(--muted);
  font-size: var(--t-body-s);
  line-height: var(--lh-prose);
}
.walk li em { font-style: normal; margin-top: var(--s-1); color: var(--ink); }

/* Two ways in, shown side by side, because a person supplying this has one of
   two things in hand and the screen should not make them guess which it wants. */
.two-ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: var(--s-3); margin: var(--s-3) 0; }
.two-ways > div { border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-3); background: var(--panel); }
.two-ways h3 { margin: 0 0 var(--s-2); font-size: var(--t-body); }
.two-ways pre {
  margin: 0 0 var(--s-2);
  padding: var(--s-2);
  background: var(--wash);
  border-radius: 4px;
  overflow-x: auto;
  font-size: var(--t-small);
  line-height: 1.5;
}
.two-ways p { margin: 0; font-size: var(--t-body-s); color: var(--muted); line-height: var(--lh-prose); }

/* What was read, before anything is kept. */
.preview { width: 100%; border-collapse: collapse; margin: var(--s-3) 0; font-size: var(--t-body-s); }
.preview th {
  text-align: left;
  font-size: var(--t-small);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding: var(--s-2) var(--s-3) var(--s-2) 0;
  border-bottom: 1px solid var(--line);
}
.preview td { padding: var(--s-2) var(--s-3) var(--s-2) 0; border-bottom: 1px solid var(--line); }

.setup select {
  width: 100%;
  padding: var(--s-2) var(--s-3);
  font: inherit;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--panel);
  color: var(--ink);
}
.setup-back {
  align-self: center;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Where a file lands. The file input itself is hidden because the browser's own
   control says "No file chosen" next to a button nobody styled, and the sentence
   beside it does the same job better. */
.dropit {
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
  padding: var(--s-3);
  margin: var(--s-3) 0;
  background: var(--panel);
  text-align: center;
}
.dropit.is-over { border-color: var(--accent); background: var(--wash); }
.dropit input[type="file"] { display: none; }
.dropit p { margin: 0; font-size: var(--t-body-s); color: var(--muted); line-height: var(--lh-prose); }
.dropit button {
  font: inherit;
  font-size: var(--t-body-s);
  color: var(--accent);
  background: none;
  border: 0;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.dropit-read { margin-top: var(--s-2); color: var(--ink); }
.dropit-trouble { margin-top: var(--s-2); color: var(--now); }

/* What is happening on a deck other than the one being watched: named, and set
   apart from the list of things to do here so the two cannot be confused. */
.park-elsewhere {
  margin: var(--s-2) 0 0;
  padding-top: var(--s-2);
  border-top: 1px solid var(--line);
  font-size: var(--t-body-s);
  color: var(--muted);
}

/* The one line under a rate box that says where that half of the bill comes
   from. The two halves have different provenance and entering them through one
   anonymous box would flatten a distinction the rest of the product keeps. */
.setup-hint {
  font-size: var(--t-small);
  color: var(--muted);
  line-height: var(--lh-small);
}

/* Executive reporting. The overview stays short and every event opens a
   task-focused detail view with the hourly record and engine evidence. */
.executive-head .source-buttons {
  margin-top: var(--s-4);
}

.executive-controls {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-5);
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--panel);
  box-shadow: var(--elev-1);
}

.executive-controls > div {
  display: flex;
  gap: var(--s-3);
  align-items: center;
}
.executive-controls .executive-controls-actions {
  margin-left: auto;
}
@media (max-width: 900px) {
  .executive-controls .executive-controls-actions {
    width: 100%;
    margin-left: 0;
  }
}

.executive-controls strong {
  font-size: var(--t-small);
  color: var(--muted);
}

.executive-controls nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-1);
}

.executive-controls a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: var(--r-full);
  color: var(--accent);
  font-size: var(--t-body-s);
  text-decoration: none;
}

.executive-controls a:hover {
  border-color: var(--line-strong);
}

.executive-controls a[aria-current="page"] {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--ink);
  font-weight: 700;
}

.executive-section-head {
  display: flex;
  justify-content: space-between;
  gap: var(--s-4);
  align-items: end;
  margin-bottom: var(--s-4);
}

.executive-section-head h2,
.executive-section-head p {
  margin: 0;
}

.executive-section-head > p {
  max-width: 48ch;
  color: var(--muted);
  font-size: var(--t-body-s);
  line-height: var(--lh-prose);
  text-align: right;
}

.executive-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-3);
}

.executive-kpis article {
  min-width: 0;
  padding: var(--s-4);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent-mark);
  border-radius: var(--r-lg);
  background: var(--panel);
  box-shadow: var(--elev-1);
}

.executive-kpis span,
.executive-kpis small {
  display: block;
}

.executive-kpis span {
  color: var(--muted);
  font-size: var(--t-small);
  font-weight: 700;
}

.executive-kpis strong {
  display: block;
  margin: var(--s-2) 0;
  font-size: clamp(1.55rem, 2.5vw, 2.15rem);
  line-height: 1;
}

.executive-kpis strong.is-good {
  color: var(--money);
}

.executive-kpis strong.is-warm {
  color: var(--now);
}

.executive-kpis small {
  color: var(--muted);
  line-height: var(--lh-small);
}

.executive-decision {
  display: grid;
  grid-template-columns: minmax(320px, 1.25fr) minmax(420px, 1fr);
  gap: var(--s-3);
}

.executive-decision-outcome,
.executive-decision-facts article {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--panel);
}

.executive-decision-outcome {
  padding: var(--s-5);
  border-left: 5px solid var(--money-mark);
}

.executive-decision-outcome > span,
.executive-decision-facts span {
  display: block;
  color: var(--muted);
  font-size: var(--t-micro);
  font-weight: 800;
  letter-spacing: var(--track-small);
  text-transform: uppercase;
}

.executive-decision-outcome h3 {
  margin: 5px 0 var(--s-2);
  color: var(--money);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
}

.executive-decision-outcome p {
  max-width: 62ch;
  margin: 0 0 var(--s-3);
  font-size: var(--t-body-l);
  line-height: var(--lh-body-l);
}

.executive-decision-outcome small {
  display: block;
  max-width: 78ch;
  color: var(--muted);
  line-height: var(--lh-small);
}

.executive-decision-facts {
  display: grid;
  gap: var(--s-2);
}

.executive-decision-facts article {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) minmax(100px, auto);
  gap: 2px var(--s-3);
  align-items: baseline;
  padding: var(--s-3) var(--s-4);
}

.executive-decision-facts strong {
  grid-column: 2;
  grid-row: 1 / 3;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: var(--t-h3);
  text-align: right;
}

.executive-decision-facts small {
  grid-column: 1;
  color: var(--muted);
  line-height: var(--lh-small);
}

.executive-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-3);
}

.executive-actions a {
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-full);
  color: var(--accent);
  background: var(--panel);
  font-size: var(--t-small);
  font-weight: 750;
  text-decoration: none;
}

.executive-actions a:first-child {
  border-color: var(--accent);
  color: var(--panel);
  background: var(--accent);
}

.executive-actions a:hover {
  border-color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.executive-role-brief {
  padding: var(--s-4);
  border-color: var(--line-strong);
}

.executive-role-brief-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: var(--s-4);
}

.executive-role-brief-head h2 {
  max-width: 45ch;
  margin: 0;
}

.executive-role-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 6px;
}

.executive-role-tabs a {
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-full);
  color: var(--accent);
  font-size: var(--t-small);
  font-weight: 700;
  text-decoration: none;
}

.executive-role-tabs a[aria-current="page"] {
  border-color: var(--accent);
  color: var(--panel);
  background: var(--accent);
}

.executive-role-tabs a:hover,
.executive-role-tabs a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.executive-role-brief-summary {
  max-width: 75ch;
  margin: var(--s-3) 0;
  font-size: var(--t-body-l);
  line-height: var(--lh-body-l);
}

.executive-role-trend {
  display: grid;
  gap: var(--s-3);
  margin-top: var(--s-4);
  padding: var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--wash);
}

.executive-role-trend h3,
.executive-role-trend p { margin: 0; }

.executive-role-trend p { color: var(--muted); }

.executive-role-narrative {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-3);
  margin: var(--s-3) 0;
}

.executive-role-narrative p {
  display: grid;
  gap: 5px;
  min-width: 0;
  margin: 0;
  padding: var(--s-3);
  border-left: 3px solid var(--accent);
  background: var(--soft);
  color: var(--muted);
}

.executive-role-narrative strong {
  color: var(--ink);
  font-size: var(--t-small);
}

.executive-role-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-3);
}

.executive-role-metrics article {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: var(--s-3);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--panel);
}

.executive-role-metrics span {
  color: var(--muted);
  font-size: var(--t-micro);
  font-weight: 800;
  letter-spacing: var(--track-small);
  text-transform: uppercase;
}

.executive-role-metrics strong {
  font-size: var(--t-h2);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.executive-role-metrics small {
  color: var(--muted);
  line-height: var(--lh-small);
}

.executive-role-metrics a {
  color: var(--accent);
  font-size: var(--t-small);
  font-weight: 700;
}

.executive-mini-trend {
  display: grid;
  grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
  align-items: center;
  gap: var(--s-3);
  margin: var(--s-3) 0 0;
  padding: var(--s-3);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--soft);
}

.executive-mini-trend svg {
  display: block;
  width: min(100%, 280px);
  height: auto;
}

.executive-mini-trend figcaption,
.executive-mini-trend-gap {
  margin: 0;
  color: var(--muted);
  font-size: var(--t-small);
  line-height: var(--lh-small);
}

.executive-mini-trend-gap {
  margin-top: var(--s-3);
}

.daily-venue-factors {
  margin-top: var(--s-3);
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--r-md);
  background: var(--soft);
}

.daily-venue-factors h3 {
  margin: 0 0 var(--s-2);
  font-size: var(--t-body);
}

.daily-venue-factors ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: var(--s-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.daily-venue-factors li {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.daily-venue-factors span,
.daily-venue-factors small {
  color: var(--muted);
  font-size: var(--t-small);
  line-height: var(--lh-small);
}

.daily-handover-form input:focus-visible,
.daily-handover-form button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.onboarding-orientation {
  display: grid;
  gap: var(--s-3);
  margin: var(--s-5) 0;
  padding: var(--s-5);
  border: 1px solid var(--line-strong);
  border-left: 6px solid var(--accent);
  border-radius: var(--r-lg);
  background: var(--panel);
  box-shadow: var(--elev-1);
}

.onboarding-orientation-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-3);
}

.onboarding-orientation-head h2 { margin-bottom: 0; }

.onboarding-progress {
  flex: none;
  padding: var(--s-1) var(--s-3);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-full);
  color: var(--accent);
  font-size: var(--t-small);
  font-weight: 700;
}

.onboarding-stages {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.onboarding-stages li {
  display: flex;
  align-items: flex-start;
  gap: var(--s-2);
  min-width: 0;
  padding-top: var(--s-2);
  border-top: 3px solid var(--line);
}

.onboarding-stages li.is-current { border-top-color: var(--accent); }
.onboarding-stages li.is-complete { border-top-color: var(--money); }
.onboarding-stages li.is-needs-attention { border-top-color: var(--now); }

.onboarding-stages li > span {
  display: grid;
  flex: none;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--muted);
  font-size: var(--t-small);
  font-weight: 700;
}

.onboarding-stages .is-current > span { border-color: var(--accent); color: var(--accent); }
.onboarding-stages .is-complete > span { border-color: var(--money); color: var(--money); }
.onboarding-stages strong,
.onboarding-stages small { display: block; overflow-wrap: anywhere; }
.onboarding-stages small { margin-top: 3px; color: var(--muted); font-size: var(--t-small); }

.onboarding-power-paths { border-top: 1px solid var(--line); padding-top: var(--s-3); }
.onboarding-power-paths summary { font-weight: 700; cursor: pointer; }
.onboarding-power-paths ul { display: grid; gap: var(--s-2); margin: var(--s-3) 0 0; padding: 0; list-style: none; }
.onboarding-power-paths li { display: grid; gap: 2px; }
.onboarding-power-paths span { color: var(--muted); font-size: var(--t-small); }

.role-route-guide ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); margin: var(--s-4) 0 0; padding: 0; list-style: none; }
.role-route-guide li { display: grid; gap: var(--s-2); align-content: space-between; padding: var(--s-4); border: 1px solid var(--line); background: var(--paper); }
.role-route-guide li span { display: block; margin-top: var(--s-1); color: var(--muted); }

@media (max-width: 700px) {
  .role-route-guide ul { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .onboarding-orientation { padding: var(--s-4); }
  .onboarding-orientation-head { display: grid; }
  .onboarding-progress { justify-self: start; }
  .onboarding-stages { grid-template-columns: 1fr 1fr; }
}

.executive-chart {
  margin: 0;
  padding: var(--s-4);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--panel);
}

.executive-chart figcaption {
  margin-bottom: var(--s-3);
  font-weight: 700;
}

.executive-chart figcaption strong,
.executive-chart figcaption span {
  display: block;
}

.executive-chart figcaption span {
  max-width: 72ch;
  margin-top: 4px;
  color: var(--muted);
  font-size: var(--t-small);
  font-weight: 400;
  line-height: var(--lh-small);
}

.executive-chart svg {
  display: block;
  width: 100%;
  height: auto;
}

.executive-key {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  margin: var(--s-2) 0;
  color: var(--muted);
  font-size: var(--t-small);
}

.executive-key span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.executive-key i {
  width: 18px;
  height: 8px;
  border-radius: 2px;
}

.executive-key i.is-actual {
  background: var(--accent-mark);
}

.executive-key i.is-target {
  background: var(--money-mark);
}

.executive-chart-context {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-top: var(--s-3);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--line);
}

.executive-chart-context > div {
  min-width: 0;
  padding: var(--s-3);
  background: var(--wash);
}

.executive-chart-context span,
.executive-chart-context strong {
  display: block;
}

.executive-chart-context span {
  color: var(--muted);
  font-size: var(--t-micro);
  font-weight: 700;
  letter-spacing: var(--track-small);
  text-transform: uppercase;
}

.executive-chart-context strong {
  margin-top: 3px;
  overflow-wrap: anywhere;
  font-size: var(--t-body-l);
}

.executive-chart-legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--s-2);
  margin-top: var(--s-3);
  color: var(--muted);
  font-size: var(--t-small);
}

.executive-chart-legend > div {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: var(--s-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--wash);
}
.executive-chart-legend span,
.executive-chart-legend strong,
.executive-chart-legend small {
  display: block;
}
.executive-chart-legend strong {
  color: var(--ink);
  font-size: var(--t-small);
}
.executive-chart-legend small {
  margin-top: 2px;
  color: var(--muted);
  line-height: var(--lh-small);
}

.executive-chart-legend i {
  width: 22px;
  height: 4px;
  border-radius: 2px;
}

.executive-chart-legend .is-actual { background: var(--accent-mark); }
.executive-chart-legend .is-target {
  height: 0;
  border-top: 3px dashed var(--money-mark);
}
.executive-chart-legend .is-gap {
  width: 22px;
  height: 8px;
  background: #d9a62e;
  opacity: 0.3;
}
.executive-chart-legend .is-actual-range,
.executive-chart-legend .is-target-range {
  height: 10px;
}
.executive-chart-legend .is-actual-range {
  border: 1px solid var(--accent-mark);
  background: color-mix(in srgb, var(--accent-mark) 18%, white);
}
.executive-chart-legend .is-target-range {
  border: 1px solid var(--money-mark);
  background: color-mix(in srgb, var(--money-mark) 18%, white);
}
.executive-chart-legend .is-selected {
  width: 10px;
  height: 10px;
  border: 3px solid var(--accent-mark);
  border-radius: 50%;
  background: var(--panel);
}

.executive-chart-scroll-hint {
  display: none;
  margin: var(--s-2) 0 0;
  color: var(--accent);
  font-size: var(--t-small);
  font-weight: 750;
}

.executive-services,
.executive-negotiation {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-3);
}

.executive-services article,
.executive-negotiation article {
  min-width: 0;
  padding: var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--panel);
}

.executive-negotiation {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.executive-services h3,
.executive-negotiation h3 {
  margin: 0 0 var(--s-3);
  font-size: var(--t-body-l);
}

.executive-negotiation h4 {
  margin: var(--s-4) 0 var(--s-2);
  font-size: var(--t-body-s);
}

.executive-services dl,
.executive-negotiation dl,
.executive-compare dl {
  margin: 0;
}

.executive-services dl div,
.executive-negotiation dl div,
.executive-compare dl div {
  display: flex;
  justify-content: space-between;
  gap: var(--s-3);
  padding: var(--s-2) 0;
  border-bottom: 1px solid var(--line);
}

.executive-services dt,
.executive-negotiation dt,
.executive-compare dt {
  color: var(--muted);
  font-size: var(--t-small);
}

.executive-services dd,
.executive-negotiation dd,
.executive-compare dd {
  margin: 0;
  font-size: var(--t-body-s);
  font-weight: 700;
  text-align: right;
}

.executive-services p,
.executive-negotiation li {
  color: var(--muted);
  font-size: var(--t-small);
  line-height: var(--lh-prose);
}

.executive-negotiation ul {
  padding-left: 1.1rem;
}

.executive-negotiation ol {
  margin: 0;
  padding-left: 1.35rem;
}

.executive-negotiation ol li {
  padding: 5px 0 5px 4px;
  color: var(--muted);
  font-size: var(--t-small);
  line-height: var(--lh-prose);
}

.executive-negotiation-lead {
  display: flex;
  gap: var(--s-5);
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--s-4);
  padding: var(--s-4);
  border-left: 4px solid var(--accent-mark);
  border-radius: var(--r-md);
  background: var(--panel);
}

.executive-negotiation-lead h3 {
  max-width: 760px;
  margin: 0 0 var(--s-2);
  font-size: var(--t-h3);
}

.executive-negotiation-lead p:last-child {
  max-width: 78ch;
  margin: 0;
  color: var(--muted);
  font-size: var(--t-body-s);
  line-height: var(--lh-prose);
}

.executive-negotiation-lead .source-test {
  flex: 0 0 auto;
  text-decoration: none;
}

.executive-negotiation-readiness {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-bottom: var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--line);
}

.executive-negotiation-readiness > div {
  min-width: 0;
  padding: var(--s-3);
  background: var(--panel);
}

.executive-negotiation-readiness span,
.executive-negotiation-readiness strong,
.executive-negotiation-readiness small {
  display: block;
}

.executive-negotiation-readiness span {
  color: var(--muted);
  font-size: var(--t-micro);
  font-weight: 700;
  letter-spacing: var(--track-small);
  text-transform: uppercase;
}

.executive-negotiation-readiness strong {
  margin-top: 4px;
  font-size: var(--t-body-l);
}

.executive-negotiation-readiness small {
  margin-top: 4px;
  color: var(--muted);
  line-height: var(--lh-small);
}

.executive-peak-list {
  border-top: 1px solid var(--line);
}

.executive-peak-list a {
  display: flex;
  gap: var(--s-3);
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.executive-peak-list a:hover strong,
.executive-peak-list a:focus-visible strong {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.executive-peak-list span,
.executive-peak-list small {
  display: block;
}

.executive-peak-list small {
  margin-top: 2px;
  color: var(--muted);
}

.executive-peak-list b {
  flex: 0 0 auto;
}

.executive-provider-note {
  margin-top: var(--s-4);
  padding: var(--s-3);
  border-left: 3px solid var(--money-mark);
  background: var(--money-soft);
}

.executive-provider-note p {
  margin: 4px 0 0;
  color: var(--ink);
}

.executive-package-contents {
  margin-top: var(--s-4);
  padding: var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--panel);
}

.executive-package-contents h3 {
  margin: 0 0 var(--s-3);
}

.executive-package-contents ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-2) var(--s-5);
  margin: 0;
  padding: 0;
  list-style: none;
}

.executive-package-contents li {
  display: grid;
  gap: 3px;
  padding: var(--s-2) 0;
  border-top: 1px solid var(--line);
}

.executive-package-contents span {
  color: var(--muted);
  font-size: var(--t-small);
  line-height: var(--lh-small);
}

.executive-events {
  display: grid;
  gap: var(--s-2);
}

.executive-event-scope {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-2);
  margin: var(--s-3) 0 var(--s-4);
  color: var(--muted);
  font-size: var(--t-small);
}

.executive-event-scope a {
  color: var(--accent);
  font-weight: 700;
}

.executive-event {
  overflow: hidden;
  border: 1px solid var(--line);
  border-left: 4px solid var(--line-strong);
  border-radius: var(--r-lg);
  background: var(--panel);
  box-shadow: var(--elev-1);
}

.executive-event.is-over,
.executive-event.is-gap,
.executive-event.is-partial {
  border-left-color: var(--now-mark);
}

.executive-event.is-under,
.executive-event.is-on-target {
  border-left-color: var(--money-mark);
}

.executive-event.is-scenario,
.executive-event.is-modelled,
.executive-event.is-demonstration,
.executive-event.is-opportunity,
.executive-event.is-needs-model,
.executive-event.is-already-best {
  border-left-color: var(--accent-mark);
}

.executive-event > summary,
.executive-event-link {
  display: grid;
  grid-template-columns: minmax(150px, 1.2fr) minmax(140px, 0.9fr) minmax(180px, 1fr) auto;
  gap: var(--s-4);
  align-items: start;
  padding: var(--s-3) var(--s-4);
  cursor: pointer;
  list-style: none;
}

.executive-event-link {
  color: inherit;
  text-decoration: none;
}

.executive-event > summary::-webkit-details-marker {
  display: none;
}

.executive-event > summary:hover,
.executive-event-link:hover {
  background: var(--wash);
}

.executive-event > summary:focus-visible,
.executive-event-link:focus-visible {
  outline: 3px solid var(--accent-mark);
  outline-offset: -3px;
}

.executive-event-name,
.executive-event-weather,
.executive-event-money {
  display: grid;
  grid-template-rows: 16px minmax(28px, auto) minmax(34px, auto);
  align-content: start;
  min-width: 0;
}

.executive-event-name small,
.executive-event-name strong,
.executive-event-name em,
.executive-event-weather small,
.executive-event-weather strong,
.executive-event-weather em,
.executive-event-money small,
.executive-event-money strong,
.executive-event-money em {
  display: block;
  overflow-wrap: anywhere;
}

.executive-event summary small,
.executive-event-link small {
  color: var(--muted);
  font-size: var(--t-micro);
  letter-spacing: var(--track-small);
  text-transform: uppercase;
}

.executive-event summary strong,
.executive-event-link strong {
  margin: 2px 0;
  font-size: var(--t-body);
}

.executive-event summary em,
.executive-event-link em {
  color: var(--muted);
  font-size: var(--t-small);
  font-style: normal;
  line-height: var(--lh-small);
}

.executive-indicator {
  display: inline-block;
  justify-self: end;
  padding: 5px 9px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-full);
  color: var(--ink);
  background: var(--wash);
  font-size: var(--t-micro);
  font-weight: 700;
  white-space: nowrap;
}

.executive-event-link > .executive-indicator {
  margin-top: 18px;
}

.executive-record-attention {
  margin-top: var(--s-4);
  border: 1px solid var(--line);
  border-left: 4px solid var(--now-mark);
  border-radius: var(--r-md);
  background: var(--panel);
}

.executive-record-attention > summary {
  display: flex;
  gap: var(--s-3);
  align-items: center;
  justify-content: space-between;
  padding: var(--s-3) var(--s-4);
  cursor: pointer;
  list-style: none;
}

.executive-record-attention > summary::-webkit-details-marker {
  display: none;
}

.executive-record-attention > summary span,
.executive-record-attention > summary small,
.executive-record-attention > summary strong {
  display: block;
}

.executive-record-attention > summary small {
  color: var(--now);
  font-size: var(--t-micro);
  font-weight: 800;
  letter-spacing: var(--track-small);
  text-transform: uppercase;
}

.executive-record-attention > summary em {
  color: var(--muted);
  font-size: var(--t-small);
  font-style: normal;
}

.executive-record-attention > div {
  border-top: 1px solid var(--line);
}

.executive-record-attention > div > a {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) auto minmax(260px, 1.4fr);
  gap: var(--s-4);
  align-items: start;
  padding: var(--s-3) var(--s-4);
  color: inherit;
  text-decoration: none;
}

.executive-record-attention > div > a + a {
  border-top: 1px solid var(--line);
}

.executive-record-attention > div > a:hover {
  background: var(--wash);
}

.executive-record-attention > div span small,
.executive-record-attention > div span strong {
  display: block;
}

.executive-record-attention > div span small {
  color: var(--muted);
  font-size: var(--t-micro);
}

.executive-record-attention > div .executive-indicator {
  margin: 0;
}

.executive-record-attention > div p {
  margin: 0;
  color: var(--muted);
  font-size: var(--t-small);
  line-height: var(--lh-small);
}

.executive-indicator.is-over,
.executive-indicator.is-gap,
.executive-indicator.is-partial {
  border-color: var(--now-mark);
  color: var(--now);
  background: var(--now-soft);
}

.executive-indicator.is-under,
.executive-indicator.is-on-target {
  border-color: var(--money-mark);
  color: var(--money);
  background: var(--money-soft);
}

.executive-indicator.is-scenario,
.executive-indicator.is-modelled,
.executive-indicator.is-demonstration,
.executive-indicator.is-opportunity,
.executive-indicator.is-needs-model,
.executive-indicator.is-already-best {
  border-color: var(--accent-mark);
  color: var(--accent);
  background: var(--accent-soft);
}

.executive-event-body {
  padding: var(--s-4);
  border-top: 1px solid var(--line);
  background: var(--wash);
}

.executive-indicator-plain {
  margin: 0 0 var(--s-4);
  max-width: 78ch;
  font-weight: 700;
}

.executive-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-4);
}

.executive-compare section {
  min-width: 0;
  padding: var(--s-3);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--panel);
}

.executive-compare h3 {
  margin: 0 0 var(--s-2);
  font-size: var(--t-body);
}

.executive-event-body .source-buttons {
  margin-top: var(--s-4);
}

.executive-method {
  margin-top: var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--panel);
}

.executive-method summary {
  padding: var(--s-3);
  cursor: pointer;
  font-weight: 700;
}

.executive-method > div {
  padding: 0 var(--s-4) var(--s-4);
  color: var(--muted);
  line-height: var(--lh-prose);
}

.executive-type {
  display: inline-block;
  padding: 3px 7px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-full);
  color: var(--ink);
  background: var(--wash);
  font-size: var(--t-micro);
  font-style: normal;
  font-weight: 700;
  line-height: 1.2;
}

.executive-type.is-baseball {
  border-color: var(--accent-mark);
  color: var(--accent);
  background: var(--accent-soft);
}

.executive-type.is-game {
  border-color: var(--accent-mark);
  color: var(--accent);
  background: var(--accent-soft);
}

.executive-type.is-concert {
  border-color: var(--money-mark);
  color: var(--money);
  background: var(--money-soft);
}

.executive-type.is-other-event {
  border-color: var(--now-mark);
  color: var(--now);
  background: var(--now-soft);
}

.executive-type.is-no-public-event {
  border-color: var(--line-strong);
  color: var(--muted);
  background: var(--wash);
}

.executive-disclosure {
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--panel);
}

.executive-disclosure > summary {
  display: flex;
  min-height: 64px;
  justify-content: space-between;
  gap: var(--s-4);
  align-items: center;
  padding: var(--s-4);
  cursor: pointer;
  list-style: none;
}

.executive-disclosure > summary::-webkit-details-marker {
  display: none;
}

.executive-disclosure > summary:hover {
  background: var(--wash);
}

.executive-disclosure > summary span,
.executive-disclosure > summary small,
.executive-disclosure > summary strong {
  display: block;
}

.executive-disclosure > summary small {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: var(--t-micro);
  font-weight: 700;
  letter-spacing: var(--track-small);
  text-transform: uppercase;
}

.executive-disclosure > summary em {
  color: var(--accent);
  font-size: var(--t-small);
  font-style: normal;
  font-weight: 700;
}

.executive-disclosure-body {
  padding: var(--s-4);
  border-top: 1px solid var(--line);
  background: var(--wash);
}

.executive-chart-head {
  display: flex;
  gap: var(--s-3);
  align-items: center;
  justify-content: space-between;
}
.executive-chart-toolbar {
  display: grid;
  grid-template-columns: repeat(3, auto) minmax(150px, auto);
  gap: var(--s-3);
  align-items: end;
  margin-top: var(--s-3);
  padding: var(--s-3);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--wash);
}
.executive-chart-toolbar > div {
  display: grid;
  gap: 5px;
}
.executive-chart-toolbar > div > strong {
  color: var(--muted);
  font-size: var(--t-small);
}
.executive-chart-toolbar nav {
  display: flex;
  gap: 4px;
}
.executive-chart-toolbar nav a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: var(--r-full);
  color: var(--accent);
  font-size: var(--t-small);
  font-weight: 700;
  text-decoration: none;
}
.executive-chart-toolbar nav a[aria-current="page"] {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--ink);
}
.executive-chart-toolbar > a,
.executive-board-download > summary {
  justify-self: end;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--accent);
  border-radius: var(--r-full);
  color: var(--accent);
  background: var(--panel);
  font-size: var(--t-small);
  font-weight: 750;
  text-decoration: none;
}
.executive-board-download {
  position: relative;
  justify-self: end;
}
.executive-board-download > summary {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  list-style: none;
}
.executive-board-download > summary::-webkit-details-marker {
  display: none;
}
.executive-board-download > summary::after {
  margin-left: 8px;
  content: "+";
}
.executive-board-download[open] > summary::after {
  content: "−";
}
.executive-board-download > div {
  position: absolute;
  z-index: 8;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  width: min(360px, calc(100vw - 48px));
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--panel);
  box-shadow: var(--elev-2);
}
.executive-board-download > div a {
  display: grid;
  gap: 3px;
  padding: 13px 15px;
  color: var(--ink);
  text-decoration: none;
}
.executive-board-download > div a + a {
  border-top: 1px solid var(--line);
}
.executive-board-download > div a:hover,
.executive-board-download > div a:focus-visible {
  background: var(--accent-soft);
}
.executive-board-download > div small {
  color: var(--muted);
  line-height: var(--lh-small);
}
.executive-chart-toolbar > p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: var(--t-small);
}
@media (max-width: 1080px) {
  .executive-chart-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .executive-chart-toolbar > a,
  .executive-board-download {
    justify-self: start;
  }
}
@media (max-width: 680px) {
  .executive-chart-toolbar {
    grid-template-columns: minmax(0, 1fr);
  }
  .executive-chart-toolbar > p {
    grid-column: 1;
  }
}

.park-night-summary,
.replay-event-context {
  display: grid;
  gap: var(--s-2);
  margin: var(--s-3) 0 var(--s-4);
  padding: var(--s-3);
  border: 1px solid var(--line-strong);
  border-left: 4px solid var(--accent-mark);
  border-radius: var(--r-lg);
  background: var(--surface);
}
/*
  Five facts about the night, across rather than down.

  This was `display: grid` with no columns, which is one column, so the five
  facts stacked and the controls they belong to were pushed most of a screen
  below them. The facts block directly underneath has laid out this way all
  along; this one was simply never given the rule.

  auto-fit rather than a fixed count, so it is five across on a wide screen, two
  or three on a laptop and one on a phone, with no media query to keep in step.
*/
.park-night-summary {
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  align-items: start;
}
.replay-event-context > strong {
  color: var(--accent);
  font-size: var(--t-small);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.replay-event-context .replay-event-facts {
  margin: 0;
}
.replay-window-context {
  border-left-color: var(--now);
  background: var(--now-soft);
}

.replay-event-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1px;
  margin: var(--s-3) 0;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--line);
}

.park-night-summary > div,
.replay-event-facts > div {
  min-width: 0;
  padding: 10px 12px;
  background: var(--panel);
}
.replay-event-facts > div:last-child {
  grid-column: span 2;
}

.park-night-summary span,
.park-night-summary strong,
.park-night-summary small,
.replay-event-facts dt,
.replay-event-facts dd {
  display: block;
}

.park-night-summary span,
.replay-event-facts dt {
  color: var(--muted);
  font-size: var(--t-micro);
  font-weight: 800;
  letter-spacing: var(--track-small);
  text-transform: uppercase;
}

.park-night-summary strong,
.replay-event-facts dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: var(--t-body-s);
  font-weight: 750;
  line-height: var(--lh-small);
}

.park-night-summary small {
  margin-top: 3px;
  color: var(--muted);
  font-size: var(--t-small);
  line-height: var(--lh-small);
}

@media (max-width: 520px) {
  .replay-event-facts > div:last-child {
    grid-column: auto;
  }
}

.executive-chart-ranges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.executive-chart-ranges button {
  min-height: 40px;
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-full);
  color: var(--ink);
  background: var(--panel);
  cursor: pointer;
  font: inherit;
  font-size: var(--t-small);
  font-weight: 700;
}

.executive-chart-ranges button[aria-pressed="true"] {
  border-color: var(--accent);
  color: var(--panel);
  background: var(--accent);
}

.executive-trend-plot {
  overflow-x: auto;
  margin-top: var(--s-3);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--panel);
}

.executive-trend-plot svg {
  display: block;
  width: 100%;
  min-width: 680px;
  height: auto;
}

.executive-year-total-rail {
  display: flex;
  min-width: 680px;
  border-bottom: 1px solid var(--line);
  background: var(--wash);
}

.executive-year-total-rail > strong {
  display: flex;
  align-items: center;
  padding: 9px 14px;
  color: var(--muted);
  font-size: var(--t-micro);
  letter-spacing: var(--track-small);
  text-transform: uppercase;
}

.executive-year-total-rail a {
  display: grid;
  flex: 1 0 250px;
  grid-template-columns: auto 1fr 1fr;
  gap: var(--s-2);
  align-items: baseline;
  padding: 9px 14px;
  border-left: 1px solid var(--line);
  color: var(--ink);
  font-size: var(--t-small);
  text-decoration: none;
}

.executive-year-total-rail a:hover {
  background: var(--panel);
}

.executive-year-total-rail b {
  font-size: var(--t-small);
}

.executive-year-total-rail span {
  color: var(--muted);
  font-size: var(--t-micro);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.executive-trend-point {
  cursor: pointer;
  outline: none;
}

.executive-trend-point:focus circle {
  stroke: var(--ink);
  stroke-width: 3px;
}

.executive-trend-point:focus .executive-gap-mark {
  stroke: var(--ink);
  stroke-width: 2px;
}

.executive-range-instruction {
  display: flex;
  gap: var(--s-2);
  align-items: center;
  margin-top: var(--s-3);
  padding: 11px 14px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
  color: var(--muted);
  background: var(--wash);
  font-size: var(--t-small);
}

.executive-range-instruction strong {
  color: var(--ink);
}

@media (max-width: 760px) {
  .executive-largest-opportunity-summary {
    grid-template-columns: 1fr;
  }

  .executive-largest-opportunity-summary em {
    text-align: left;
  }
}

.executive-range-summary {
  overflow: hidden;
  margin-top: var(--s-3);
  border: 1px solid var(--accent);
  border-radius: var(--r-lg);
  background: var(--panel);
  box-shadow: 0 12px 28px rgb(16 32 42 / 9%);
}

.executive-range-summary-head {
  display: flex;
  gap: var(--s-3);
  align-items: center;
  justify-content: space-between;
  padding: var(--s-3) var(--s-4);
  color: var(--panel);
  background: var(--accent);
}

.executive-range-summary-head span,
.executive-range-summary-head strong,
.executive-range-summary-head small {
  display: block;
}

.executive-range-summary-head span {
  color: rgb(255 255 255 / 76%);
  font-size: var(--t-micro);
  font-weight: 800;
  letter-spacing: var(--track-small);
  text-transform: uppercase;
}

.executive-range-summary-head strong {
  margin-top: 3px;
  font-size: var(--t-body-l);
}

.executive-range-summary-head small {
  margin-top: 2px;
  color: rgb(255 255 255 / 78%);
}

.executive-range-summary-head button {
  min-height: 38px;
  padding: 7px 11px;
  border: 1px solid rgb(255 255 255 / 55%);
  border-radius: var(--r-full);
  color: var(--panel);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: var(--t-small);
  font-weight: 800;
}

.executive-range-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.executive-range-metrics > div {
  min-width: 0;
  padding: var(--s-3);
  background: var(--panel);
}

.executive-range-metrics span,
.executive-range-metrics strong,
.executive-range-metrics small {
  display: block;
}

.executive-range-metrics span {
  color: var(--muted);
  font-size: var(--t-micro);
  font-weight: 800;
  letter-spacing: var(--track-small);
  text-transform: uppercase;
}

.executive-range-metrics strong {
  margin-top: 4px;
  font-size: var(--t-body-l);
}

.executive-range-metrics small {
  margin-top: 4px;
  color: var(--muted);
  font-size: var(--t-small);
  line-height: var(--lh-small);
}

.executive-range-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-4);
  border-top: 1px solid var(--line);
  background: var(--wash);
}

.executive-range-actions a {
  color: var(--accent);
  font-size: var(--t-small);
  font-weight: 800;
}

.executive-chart-selection {
  display: grid;
  /* Two cells carry a sentence each now rather than five carrying a count each,
     so they are given room to be read rather than a fifth of the width. */
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-top: var(--s-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--line);
}

.executive-selected-period-details {
  margin-top: var(--s-2);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--panel);
}

.executive-selected-period-details > summary {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(260px, 1.4fr) auto;
  gap: var(--s-4);
  align-items: center;
  padding: 10px var(--s-3);
  cursor: pointer;
}

.executive-selected-period-details > summary:hover {
  background: var(--wash);
}

.executive-selected-period-details > summary span:first-child {
  display: grid;
  gap: 2px;
}

.executive-selected-period-details > summary small {
  color: var(--muted);
  font-size: var(--t-micro);
  font-weight: 800;
  letter-spacing: var(--track-small);
  text-transform: uppercase;
}

.executive-selected-period-details > summary span:nth-child(2) {
  color: var(--muted);
  font-size: var(--t-small);
}

.executive-selected-period-details > summary em {
  color: var(--accent);
  font-size: var(--t-small);
  font-style: normal;
  font-weight: 800;
}

.executive-selected-period-details > .executive-chart-selection {
  margin: 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
}

.executive-selected-period-details > .executive-projection-note {
  margin: 0;
  border-right: 0;
  border-bottom: 0;
  border-left-width: 4px;
  border-radius: 0;
}

.executive-chart-selection > div {
  min-width: 0;
  padding: var(--s-3);
  background: var(--panel);
}

.executive-chart-selection span,
.executive-chart-selection strong {
  display: block;
}

.executive-chart-selection span {
  color: var(--muted);
  font-size: var(--t-micro);
  font-weight: 700;
  letter-spacing: var(--track-small);
  text-transform: uppercase;
}

.executive-chart-selection strong {
  margin-top: 3px;
  overflow-wrap: anywhere;
  font-size: var(--t-body);
}

/* What the fraction above it means. A count with no consequence beside it is
   the thing this panel was criticized for. */
.executive-chart-selection small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: var(--t-small);
  line-height: var(--lh-small);
}

/* The headline and the way into it, on one line, with the mark after the words
   rather than pinned to a corner: a page heading has no card to pin it to. */
.work-headline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2);
}
.work-headline h1 { margin: 0; }

/* What is due, and when. A column of weeks read down, then what it is, then why
   that date. */
.service-schedule { margin: var(--s-3) 0 0; padding: 0; list-style: none; display: grid; gap: 0; }
.service-schedule li {
  display: grid;
  grid-template-columns: minmax(72px, auto) minmax(140px, 1fr) minmax(0, 2fr);
  gap: 2px var(--s-3);
  padding: var(--s-2) 4px;
  border-top: 1px solid var(--line);
  align-items: baseline;
  font-size: var(--t-small);
}
.service-when { font-weight: 700; font-variant-numeric: tabular-nums; }
.service-schedule li.is-over .service-when { color: var(--now); }
.service-schedule li.is-untested .service-when { color: var(--muted); }
.service-what { display: grid; gap: 1px; }
.service-what small { color: var(--muted); font-size: var(--t-micro); }
.service-why { color: var(--muted); line-height: var(--lh-small); }
.service-why em { font-style: normal; color: var(--ink); }

/* What a night ahead has been worth on the nights like it. The figure sits with
   the weather it was matched on, because the two are one claim. */
.outlook-worth {
  display: grid;
  gap: 1px;
  margin-top: 4px;
}
.outlook-worth strong {
  font-size: var(--t-body-s);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.outlook-worth em {
  font-style: normal;
  font-size: var(--t-micro);
  color: var(--muted);
}
.outlook-worth.is-unknown strong { font-weight: 600; color: var(--muted); }

/* --- the months a year total is made of, and the events in each ------------
   Opened from the year card, so it is inside the card and reads as part of it
   rather than as a panel that arrived from somewhere else. */
.executive-year-months {
  margin-top: var(--s-2);
  border-top: 1px solid var(--line);
  padding-top: var(--s-2);
}
.executive-year-months > summary {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  align-items: baseline;
  justify-content: space-between;
  cursor: pointer;
  font-size: var(--t-small);
  color: var(--muted);
}
.executive-year-months > summary:hover { color: var(--ink); }
.executive-year-months > summary em {
  color: var(--accent);
  font-style: normal;
  font-weight: 800;
}
.executive-year-months > ol {
  margin: var(--s-2) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--s-2);
  /* A year is twelve months and a month can be twenty events, so the panel
     scrolls inside itself rather than pushing the rest of the screen down. */
  max-height: 60vh;
  overflow-y: auto;
}
.executive-year-months > ol > li {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--s-2);
  background: var(--wash);
}
.executive-year-month-head {
  display: grid;
  gap: 2px;
}
.executive-year-month-head a { font-weight: 700; }
.executive-year-month-head span {
  font-size: var(--t-micro);
  font-weight: 800;
  letter-spacing: var(--track-small);
  text-transform: uppercase;
  color: var(--muted);
}
.executive-year-month-head strong { font-size: var(--t-body); font-variant-numeric: tabular-nums; }
.executive-year-month-head small { font-size: var(--t-small); color: var(--muted); }
.executive-year-months ul {
  margin: var(--s-2) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 4px;
}
.executive-year-months ul li {
  border-top: 1px solid var(--line);
  font-size: var(--t-small);
}
/* A day, what was on, and what it was worth. The money is its own column and
   right aligned, because a column of figures is read down rather than across and
   it has to be possible to add it up by eye.

   The grid is on the row's summary, so the whole row is the hit area and there
   is no mark sitting on top of the figure. */
.executive-year-months ul li > details > summary,
.executive-year-months ul li.is-quiet,
.executive-year-months ul li.is-total {
  display: grid;
  grid-template-columns: minmax(96px, auto) minmax(0, 1fr) minmax(72px, auto);
  gap: 2px var(--s-3);
  padding: 6px 4px;
  align-items: baseline;
}
.executive-year-months ul li > details > summary {
  cursor: pointer;
  border-radius: var(--r-sm);
  list-style: none;
}
.executive-year-months ul li > details > summary::-webkit-details-marker { display: none; }
.executive-year-months ul li > details > summary:hover,
.executive-year-months ul li > details > summary:focus-visible {
  background: var(--wash);
}
.executive-year-months ul li > details[open] > summary { background: var(--wash); }
.executive-year-months ul li > details > summary span:first-child { font-weight: 650; }
/* The figure is what a reader presses, so it says so on hover rather than
   leaving the row looking like text. */
.executive-year-months ul li > details > summary:hover strong { text-decoration: underline; }
.executive-year-months ul li > details > .working-body { margin: 0 4px 8px; }
.executive-year-event-open { margin: 0 4px 10px; font-size: var(--t-small); }
.executive-year-months ul li strong {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.executive-year-months ul li small {
  grid-column: 1 / -1;
  color: var(--muted);
}
.executive-year-months ul li.is-quiet { color: var(--muted); }
.executive-year-months ul li.is-total {
  margin-top: 4px;
  padding-top: 6px;
  border-top: 2px solid var(--line);
  font-weight: 700;
}
.executive-year-months > ol > li > p {
  margin: var(--s-2) 0 0;
  font-size: var(--t-small);
  color: var(--muted);
}

.executive-projection-note {
  display: flex;
  gap: var(--s-5);
  align-items: center;
  justify-content: space-between;
  margin-top: var(--s-3);
  padding: var(--s-4);
  border: 1px solid #dec991;
  border-left: 4px solid #b27b12;
  border-radius: var(--r-md);
  background: #fdf6e8;
}

.executive-projection-note p {
  max-width: 78ch;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: var(--t-small);
  line-height: var(--lh-prose);
}

.executive-projection-note a {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  color: var(--accent);
  background: var(--panel);
  font-size: var(--t-small);
  font-weight: 800;
  text-decoration: none;
}

.executive-projection-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-3);
}

.executive-projection-summary article {
  min-width: 0;
  padding: var(--s-4);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent-mark);
  border-radius: var(--r-lg);
  background: var(--panel);
  box-shadow: var(--elev-1);
}

.executive-projection-summary article.is-primary {
  border-top-color: #b27b12;
  background: #fdfaf1;
}

.executive-projection-summary span,
.executive-projection-summary strong,
.executive-projection-summary small {
  display: block;
}

.executive-projection-summary span {
  color: var(--muted);
  font-size: var(--t-micro);
  font-weight: 800;
  letter-spacing: var(--track-small);
  text-transform: uppercase;
}

.executive-projection-summary strong {
  margin: var(--s-4) 0 var(--s-2);
  overflow-wrap: anywhere;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: var(--lh-h2);
}

.executive-projection-summary small {
  color: var(--muted);
  font-size: var(--t-small);
  line-height: var(--lh-small);
}

.executive-projection-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-3);
}

.executive-projection-columns > article {
  padding: var(--s-5);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--panel);
}

.executive-projection-columns h2 {
  font-size: var(--t-h3);
}

.executive-projection-columns dl {
  margin: var(--s-4) 0;
}

.executive-projection-columns dl > div {
  display: flex;
  gap: var(--s-3);
  justify-content: space-between;
  padding: var(--s-2) 0;
  border-bottom: 1px solid var(--line);
}

.executive-projection-columns dt {
  color: var(--muted);
  font-size: var(--t-small);
}

.executive-projection-columns dd {
  margin: 0;
  font-size: var(--t-body-s);
  font-weight: 800;
  text-align: right;
}

.executive-projection-columns p {
  color: var(--muted);
  font-size: var(--t-body-s);
  line-height: var(--lh-prose);
}

.executive-projection-columns a {
  color: var(--accent);
  font-size: var(--t-small);
  font-weight: 800;
}

.executive-projection-calendar {
  display: grid;
  gap: var(--s-2);
}

.executive-projection-calendar a {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(190px, auto);
  gap: var(--s-4);
  min-height: 64px;
  align-items: center;
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent-mark);
  border-radius: var(--r-md);
  color: inherit;
  background: var(--panel);
  text-decoration: none;
}

.executive-projection-calendar a:hover {
  border-color: var(--accent-mark);
  background: var(--wash);
}

.executive-projection-calendar span,
.executive-projection-calendar strong,
.executive-projection-calendar small {
  display: block;
}

.executive-projection-calendar span:last-child {
  text-align: right;
}

.executive-projection-calendar small {
  margin-top: 3px;
  color: var(--muted);
  font-size: var(--t-small);
}

.executive-projection-method ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-3) var(--s-5);
  margin: 0;
  padding-left: 1.4rem;
}

.executive-projection-method li,
.executive-projection-method p {
  color: var(--muted);
  font-size: var(--t-body-s);
  line-height: var(--lh-prose);
}

.executive-projection-method p {
  margin: var(--s-4) 0 0;
  padding: var(--s-3);
  border-left: 3px solid var(--now-mark);
  background: var(--panel);
}

.executive-event-heading {
  display: flex;
  gap: var(--s-2);
  align-items: center;
}

.executive-event-heading .spine-eyebrow {
  margin: 0;
}

.executive-detail-tabs {
  position: sticky;
  z-index: 3;
  top: 0;
  display: flex;
  gap: var(--s-1);
  padding: var(--s-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: color-mix(in srgb, var(--panel) 94%, transparent);
  box-shadow: var(--elev-1);
}

.executive-detail-tabs button {
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: var(--r-full);
  color: var(--accent);
  background: transparent;
  font: inherit;
  font-size: var(--t-body-s);
  font-weight: 700;
  cursor: pointer;
}

.executive-detail-tabs button[aria-selected="true"] {
  border-color: var(--accent);
  color: var(--ink);
  background: var(--accent-soft);
}

.executive-detail-tabs button:focus-visible {
  outline: 3px solid var(--accent-mark);
  outline-offset: 2px;
}

.executive-detail-panel {
  margin-top: var(--s-4);
  padding: var(--s-5);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--panel);
  box-shadow: var(--elev-1);
}

.executive-hourly-chart {
  margin: 0 0 var(--s-4);
}

.executive-hourly-chart figcaption {
  margin-bottom: var(--s-3);
  font-size: var(--t-body-l);
  font-weight: 700;
}

.executive-hourly-chart svg {
  display: block;
  width: 100%;
  height: auto;
}

.executive-hour-point {
  cursor: pointer;
  outline: none;
}

.executive-hour-point:focus rect {
  stroke: var(--ink);
  stroke-width: 3px;
}

.executive-hourly-intro {
  max-width: 78ch;
  margin: 0 0 var(--s-4);
  color: var(--muted);
  line-height: var(--lh-prose);
}

.executive-event-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-3);
  margin-bottom: var(--s-4);
}

.executive-event-facts section,
.executive-selected-hour {
  padding: var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--wash);
}

.executive-event-facts h2 {
  margin: 0 0 var(--s-2);
  font-size: var(--t-body-l);
}

.executive-event-facts dl,
.executive-selected-hour dl {
  margin: 0;
}

.executive-event-facts dl div,
.executive-selected-hour dl div {
  display: flex;
  justify-content: space-between;
  gap: var(--s-3);
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.executive-event-facts dl div:last-child,
.executive-selected-hour dl div:last-child {
  border-bottom: 0;
}

.executive-event-facts dt,
.executive-selected-hour dt {
  color: var(--muted);
  font-size: var(--t-small);
}

.executive-event-facts dd,
.executive-selected-hour dd {
  margin: 0;
  font-size: var(--t-body-s);
  font-weight: 700;
  text-align: right;
}

.executive-selected-hour {
  margin: 0 0 var(--s-4);
  border-left: 4px solid var(--accent);
  background: var(--panel);
}

.executive-selected-hour-head {
  display: flex;
  justify-content: space-between;
  gap: var(--s-3);
  align-items: end;
  margin-bottom: var(--s-2);
}

.executive-selected-hour-head span,
.executive-selected-hour-head strong {
  display: block;
}

.executive-selected-hour-head span {
  color: var(--muted);
  font-size: var(--t-micro);
  font-weight: 700;
  letter-spacing: var(--track-small);
  text-transform: uppercase;
}

.executive-selected-hour-head strong {
  font-size: var(--t-h2);
}

.executive-selected-hour-head p {
  margin: 0;
  color: var(--muted);
}

.comparison-table tbody tr {
  cursor: pointer;
}

.comparison-table tbody tr.is-selected td,
.comparison-table tbody tr.is-selected th {
  background: var(--accent-soft);
}

.comparison-table th button {
  padding: 3px 6px;
  border: 0;
  color: var(--accent);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.executive-event-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(190px, 0.8fr) auto;
  gap: var(--s-3);
  align-items: end;
  margin-bottom: var(--s-5);
}

.executive-event-filters label,
.executive-event-filters label span {
  display: block;
}

.executive-event-filters label span {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: var(--t-small);
  font-weight: 700;
}

.executive-event-filters input,
.executive-event-filters select {
  width: 100%;
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  color: var(--ink);
  background: var(--panel);
  font: inherit;
}

.executive-event-index {
  display: grid;
  gap: var(--s-2);
}

.executive-event-index-row {
  display: grid;
  grid-template-columns:
    minmax(0, 1.3fr)
    minmax(0, 0.8fr)
    minmax(0, 0.7fr)
    minmax(0, 0.8fr)
    minmax(0, 0.8fr)
    minmax(0, 0.9fr);
  gap: var(--s-3);
  align-items: center;
  padding: var(--s-3);
  border: 1px solid var(--line);
  border-left: 5px solid var(--line-strong);
  border-radius: var(--r-md);
  color: inherit;
  background: var(--panel);
  box-shadow: var(--elev-1);
  text-decoration: none;
}

.executive-event-index-row:has(.executive-type.is-game) {
  border-left-color: var(--accent-mark);
}

.executive-event-index-row:has(.executive-type.is-concert) {
  border-left-color: var(--money-mark);
}

.executive-event-index-row:has(.executive-type.is-other-event) {
  border-left-color: var(--now-mark);
}

.executive-event-index-row:hover {
  border-color: var(--accent-mark);
  background: var(--wash);
  transform: translateY(-1px);
}

.executive-event-index-row:focus-visible {
  outline: 3px solid var(--accent-mark);
  outline-offset: 2px;
}

.executive-event-index-row > span,
.executive-event-index-row small,
.executive-event-index-row strong {
  display: block;
  min-width: 0;
}

.executive-event-index-row strong {
  overflow-wrap: anywhere;
  font-size: var(--t-body-s);
}

.executive-event-index-row small {
  margin-top: 3px;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: var(--t-small);
  line-height: var(--lh-small);
}

.executive-pagination {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--s-3);
  align-items: center;
  margin-top: var(--s-4);
}

.executive-pagination a:last-child {
  justify-self: end;
}

.executive-pagination > span {
  color: var(--muted);
  font-size: var(--t-small);
}

.executive-simulation-rules {
  margin-top: var(--s-5);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
}

.executive-simulation-rules > p {
  max-width: 78ch;
  color: var(--muted);
  line-height: var(--lh-prose);
}

.executive-variable-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-3);
}

.executive-variable-grid article {
  padding: var(--s-4);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent-mark);
  border-radius: var(--r-md);
  background: var(--wash);
}

.executive-variable-grid h3 {
  margin: 0 0 var(--s-2);
  font-size: var(--t-body-l);
}

.executive-variable-grid dl,
.executive-rule-list {
  margin: 0;
}

.executive-variable-grid dl div,
.executive-rule-list > div {
  display: flex;
  justify-content: space-between;
  gap: var(--s-3);
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.executive-variable-grid dt,
.executive-rule-list dt {
  color: var(--muted);
  font-size: var(--t-small);
}

.executive-variable-grid dd,
.executive-rule-list dd {
  margin: 0;
  font-size: var(--t-body-s);
  font-weight: 700;
  text-align: right;
}

.executive-variable-grid p {
  margin: var(--s-3) 0 0;
  color: var(--muted);
  font-size: var(--t-small);
  line-height: var(--lh-prose);
}

.executive-rule-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 var(--s-5);
}

.simulation-purpose {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(360px, 1.2fr);
  gap: var(--s-5);
  align-items: start;
}

.simulation-purpose h2 {
  margin: 0;
}

.simulation-purpose dl {
  margin: 0;
}

.simulation-purpose dl div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: var(--s-3);
  padding: var(--s-2) 0;
  border-bottom: 1px solid var(--line);
}

.simulation-purpose dt {
  color: var(--muted);
  font-size: var(--t-small);
  font-weight: 700;
}

.simulation-purpose dd {
  margin: 0;
  font-size: var(--t-body-s);
  line-height: var(--lh-prose);
}

.simulation-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-3);
  margin: var(--s-5) 0;
}

.simulation-flow article {
  min-width: 0;
  padding: var(--s-4);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent-mark);
  border-radius: var(--r-lg);
  background: var(--panel);
  box-shadow: var(--elev-1);
}

.simulation-flow span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: var(--panel);
  background: var(--accent);
  font-size: var(--t-small);
  font-weight: 800;
}

.simulation-flow h2 {
  margin: var(--s-3) 0 var(--s-2);
  font-size: var(--t-body-l);
}

.simulation-flow p {
  margin: 0;
  color: var(--muted);
  font-size: var(--t-body-s);
  line-height: var(--lh-prose);
}

.simulation-disclosure {
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--panel);
}

.simulation-disclosure > summary {
  display: grid;
  grid-template-columns: 105px 1fr auto;
  gap: var(--s-3);
  align-items: center;
  padding: var(--s-4);
  cursor: pointer;
  list-style: none;
}

.simulation-disclosure > summary::-webkit-details-marker {
  display: none;
}

.simulation-disclosure > summary:hover {
  background: var(--wash);
}

.simulation-disclosure > summary span {
  color: var(--muted);
  font-size: var(--t-micro);
  font-weight: 800;
  letter-spacing: var(--track-small);
  text-transform: uppercase;
}

.simulation-disclosure > summary strong {
  font-size: var(--t-body-l);
}

.simulation-disclosure > summary em {
  color: var(--accent);
  font-size: var(--t-small);
  font-style: normal;
  font-weight: 700;
}

.simulation-disclosure-body {
  padding: var(--s-4);
  border-top: 1px solid var(--line);
  background: var(--wash);
}

.simulation-disclosure-body > :first-child {
  margin-top: 0;
}

.simulation-disclosure-body > :last-child {
  margin-bottom: 0;
}

.simulation-task-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-2);
  margin: var(--s-4) 0;
  padding: 0;
  list-style: none;
}

.simulation-task-strip li {
  display: grid;
  grid-template-columns: 30px 1fr;
  column-gap: var(--s-2);
  align-items: center;
  min-width: 0;
  padding: var(--s-3);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}

.simulation-task-strip li > span {
  grid-row: 1 / 3;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--surface);
  font-weight: 800;
}

.simulation-task-strip strong {
  font-size: var(--t-body-s);
}

.simulation-task-strip small {
  overflow: hidden;
  color: var(--muted);
  font-size: var(--t-small);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.money-brief {
  display: grid;
  grid-template-columns: minmax(320px, 1.1fr) minmax(420px, 1.4fr);
  gap: var(--s-4);
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.money-brief-total,
.money-brief-facts article {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--panel);
  box-shadow: var(--elev-1);
}

.money-brief-total {
  padding: var(--s-5);
  border-left: 5px solid var(--money-mark);
}

.money-brief-total > span,
.money-brief-facts span {
  display: block;
  color: var(--muted);
  font-size: var(--t-micro);
  font-weight: 800;
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
}

/* The figure keeps its size now that a wrapper holds it beside its working.
   Written as a descendant rather than a direct child for that reason: the
   direct-child rule stopped matching the moment the mark needed a parent that
   was not phrasing content. */
.money-brief-total strong {
  display: block;
  margin-top: var(--s-2);
  color: var(--money);
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.money-brief-total p {
  margin: var(--s-4) 0 var(--s-2);
  max-width: 58ch;
  font-size: var(--t-body-l);
  line-height: var(--lh-body-l);
}

.money-brief-total small,
.money-brief-facts small {
  display: block;
  color: var(--muted);
  font-size: var(--t-small);
  line-height: var(--lh-small);
}

.money-brief-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-3);
}

.money-brief-facts article {
  display: flex;
  min-width: 0;
  padding: var(--s-4);
  flex-direction: column;
}

.money-brief-facts strong {
  display: block;
  margin: auto 0 var(--s-2);
  padding-top: var(--s-5);
  font-size: clamp(1.15rem, 1.65vw, 1.55rem);
  line-height: var(--lh-h2);
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.plan-history-disclosure {
  padding: 0;
  overflow: hidden;
}

.plan-history-disclosure > summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s-4);
  align-items: center;
  padding: var(--s-4);
  cursor: pointer;
  list-style: none;
}

.plan-history-disclosure > summary::-webkit-details-marker {
  display: none;
}

.plan-history-disclosure > summary:hover {
  background: var(--wash);
}

.plan-history-disclosure > summary span,
.plan-history-disclosure > summary small,
.plan-history-disclosure > summary strong {
  display: block;
}

.plan-history-disclosure > summary small {
  color: var(--muted);
  font-size: var(--t-micro);
  font-weight: 800;
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
}

.plan-history-disclosure > summary strong {
  margin-top: var(--s-1);
  font-size: var(--t-h3);
}

.plan-history-disclosure > summary em {
  color: var(--accent);
  font-size: var(--t-small);
  font-style: normal;
  font-weight: 800;
}

.plan-history-disclosure > div {
  padding: var(--s-4);
  border-top: 1px solid var(--line);
}

.plan-history-disclosure > div > p {
  margin-top: 0;
  color: var(--muted);
}

.money-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin: calc(-1 * var(--s-2)) 0 var(--s-5);
}

.money-actions a {
  min-height: 40px;
  padding: 9px 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  color: var(--accent);
  background: var(--panel);
  font-size: var(--t-small);
  font-weight: 800;
  text-decoration: none;
}

.money-actions a:hover {
  border-color: var(--accent-mark);
  background: var(--accent-soft);
}

.money-actions a:focus-visible,
.money-bars a:focus-visible,
.money-choice > summary:focus-visible,
.money-disclosure > summary:focus-visible,
.money-ledger-row > summary:focus-visible {
  outline: 3px solid var(--accent-mark);
  outline-offset: 2px;
}

.money-bars {
  display: grid;
  gap: var(--s-2);
}

.money-bars > a {
  display: grid;
  grid-template-columns: minmax(230px, 1fr) minmax(180px, 1.25fr) minmax(100px, auto);
  gap: var(--s-4);
  align-items: center;
  min-height: 66px;
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: inherit;
  background: var(--panel);
  text-decoration: none;
}

.money-bars > a:hover {
  border-color: var(--accent-mark);
  background: var(--wash);
}

.money-bars span,
.money-bars strong,
.money-bars small {
  display: block;
  min-width: 0;
}

.money-bars strong {
  overflow-wrap: anywhere;
  font-size: var(--t-body);
}

.money-bars small {
  margin-top: 3px;
  color: var(--muted);
  font-size: var(--t-small);
}

.money-bars i {
  display: block;
  height: 10px;
  overflow: hidden;
  border-radius: var(--r-full);
  background: var(--money-soft);
}

.money-bars i b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--money-mark);
}

.money-bars em {
  color: var(--money);
  font-size: var(--t-body-l);
  font-style: normal;
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
}

.money-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-3);
}

.money-choice {
  min-width: 0;
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent-mark);
  border-radius: var(--r-md);
  background: var(--panel);
  box-shadow: var(--elev-1);
}

.money-choice.is-firm {
  border-top-color: var(--money-mark);
}

.money-choice.is-assumed {
  border-top-color: var(--now-mark);
}

.money-choice > summary {
  display: flex;
  min-height: 134px;
  padding: var(--s-4);
  cursor: pointer;
  flex-direction: column;
  list-style: none;
}

.money-choice > summary::-webkit-details-marker,
.money-disclosure > summary::-webkit-details-marker,
.money-ledger-row > summary::-webkit-details-marker {
  display: none;
}

.money-choice > summary:hover {
  background: var(--wash);
}

.money-choice > summary span,
.money-choice > summary strong,
.money-choice > summary small {
  display: block;
}

.money-choice > summary span {
  font-size: var(--t-body);
  font-weight: 800;
}

.money-choice > summary strong {
  margin: auto 0 var(--s-2);
  padding-top: var(--s-4);
  color: var(--money);
  font-size: var(--t-h3);
}

.money-choice > summary small {
  color: var(--muted);
  font-size: var(--t-small);
}

.money-choice > summary::after,
.money-disclosure > summary::after,
.money-ledger-row > summary::after {
  content: "+";
  color: var(--accent);
  font-size: var(--t-body-l);
  font-weight: 800;
}

.money-choice > summary::after {
  position: absolute;
  align-self: flex-end;
}

.money-choice[open] > summary::after,
.money-disclosure[open] > summary::after,
.money-ledger-row[open] > summary::after {
  content: "−";
}

.money-choice > p {
  margin: 0;
  padding: var(--s-4);
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: var(--wash);
  font-size: var(--t-body-s);
  line-height: var(--lh-prose);
}

.money-disclosure {
  padding: 0;
  overflow: hidden;
}

.money-disclosure > summary {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: var(--s-4);
  align-items: center;
  min-height: 76px;
  padding: var(--s-4) var(--s-5);
  cursor: pointer;
  list-style: none;
}

.money-disclosure > summary:hover {
  background: var(--wash);
}

.money-disclosure > summary span,
.money-disclosure > summary small,
.money-disclosure > summary strong {
  display: block;
}

.money-disclosure > summary small {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: var(--t-micro);
  font-weight: 800;
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
}

.money-disclosure > summary strong {
  font-size: var(--t-body-l);
}

.money-disclosure > summary em {
  color: var(--accent);
  font-size: var(--t-small);
  font-style: normal;
  font-weight: 800;
  text-align: right;
}

.money-disclosure > div {
  padding: var(--s-4) var(--s-5);
  border-top: 1px solid var(--line);
  background: var(--wash);
}

.money-disclosure > div > :first-child {
  margin-top: 0;
}

.money-disclosure > div > :last-child {
  margin-bottom: 0;
}

.money-ledger {
  display: grid;
  gap: var(--s-2);
}

.money-ledger-row {
  scroll-margin-top: 92px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-left: 4px solid var(--money-mark);
  border-radius: var(--r-md);
  background: var(--panel);
}

.money-ledger-row.is-shared {
  border-left-color: var(--line-strong);
}

.money-ledger-row > summary {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(165px, auto) 20px;
  gap: var(--s-4);
  align-items: center;
  min-height: 70px;
  padding: var(--s-3) var(--s-4);
  cursor: pointer;
  list-style: none;
}

.money-ledger-row > summary:hover {
  background: var(--wash);
}

.money-ledger-row > summary span,
.money-ledger-row > summary strong,
.money-ledger-row > summary small,
.money-ledger-row > summary b {
  display: block;
}

.money-ledger-row > summary strong {
  font-size: var(--t-body);
}

.money-ledger-row > summary small {
  margin-top: 3px;
  color: var(--muted);
  font-size: var(--t-small);
}

.money-ledger-row > summary span:nth-child(2) {
  text-align: right;
}

.money-ledger-row > summary b {
  color: var(--money);
  font-size: var(--t-body-l);
}

.money-ledger-detail {
  padding: var(--s-4);
  border-top: 1px solid var(--line);
  background: var(--wash);
}

.money-ledger-detail dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 var(--s-5);
  margin: 0;
}

.money-ledger-detail dl > div {
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--line);
}

.money-ledger-detail dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: var(--t-micro);
  font-weight: 800;
  letter-spacing: var(--track-small);
  text-transform: uppercase;
}

.money-ledger-detail dd {
  margin: 0;
  font-size: var(--t-body-s);
  line-height: var(--lh-prose);
}

.decision-rationale {
  margin-top: var(--s-3);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--panel);
}

.decision-rationale > summary {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding: var(--s-3);
  cursor: pointer;
  list-style: none;
}

.decision-rationale > summary::-webkit-details-marker,
.decision-action-detail > summary::-webkit-details-marker {
  display: none;
}

.decision-rationale > summary:hover,
.decision-action-detail > summary:hover {
  background: var(--wash);
}

.decision-rationale > summary span,
.decision-rationale > summary small {
  display: block;
}

.decision-rationale > summary span {
  font-size: var(--t-body-s);
  font-weight: 800;
}

.decision-rationale > summary small {
  color: var(--muted);
  font-size: var(--t-small);
  text-align: right;
}

.decision-rationale > summary::after {
  content: "+";
  color: var(--accent);
  font-size: var(--t-body-l);
  font-weight: 800;
}

.decision-rationale[open] > summary::after {
  content: "−";
}

.decision-rationale > div {
  padding: var(--s-3);
  border-top: 1px solid var(--line);
  background: var(--wash);
}

.decision-rationale > div > :first-child {
  margin-top: 0;
}

.decision-rationale > div > :last-child {
  margin-bottom: 0;
}

.decision-action-detail {
  margin: var(--s-2) 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--panel);
}

.decision-action-detail > summary {
  min-height: 54px;
  padding: var(--s-3);
  cursor: pointer;
  list-style: none;
}

.decision-action-detail > summary span,
.decision-action-detail > summary em {
  display: block;
}

.decision-action-detail > summary span {
  color: var(--ink);
  font-size: var(--t-body-s);
  font-weight: 650;
  line-height: var(--lh-prose);
}

.decision-action-detail > summary em {
  margin-top: var(--s-1);
  color: var(--accent);
  font-size: var(--t-small);
  font-style: normal;
  font-weight: 800;
}

.decision-action-detail > p {
  margin: 0;
  padding: var(--s-3);
  border-top: 1px solid var(--line);
  color: var(--ink);
  background: var(--wash);
  font-size: var(--t-body-s);
  line-height: var(--lh-prose);
}

@media (max-width: 980px) {
  .money-brief {
    grid-template-columns: 1fr;
  }

  .executive-projection-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .executive-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .executive-event > summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .executive-event-link {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .executive-indicator {
    justify-self: start;
  }

  .simulation-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .executive-event-index-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .executive-negotiation-readiness {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .executive-decision {
    grid-template-columns: 1fr;
  }

  .executive-range-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .spine-context {
    position: static;
  }

  .page-head {
    margin-bottom: var(--s-5);
  }

  .page-head h1 {
    font-size: 28px;
  }

  .page-block {
    margin-top: var(--s-6);
  }

  .money-brief-facts,
  .money-choice-grid {
    grid-template-columns: 1fr;
  }

  .money-brief-facts article {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--s-2) var(--s-4);
  }

  .money-brief-facts strong {
    grid-column: 2;
    grid-row: 1 / 3;
    margin: 0;
    padding: 0;
    text-align: right;
  }

  .money-brief-facts small {
    grid-column: 1;
  }

  .money-choice > summary {
    min-height: 106px;
  }

  .executive-projection-note {
    align-items: flex-start;
    flex-direction: column;
  }

  .executive-projection-columns,
  .executive-projection-method ol {
    grid-template-columns: 1fr;
  }

  .executive-section-head {
    display: block;
  }

  .executive-section-head > p {
    margin-top: var(--s-2);
    text-align: left;
  }

  .executive-services,
  .executive-negotiation,
  .executive-compare {
    grid-template-columns: 1fr;
  }

  .simulation-purpose {
    grid-template-columns: 1fr;
  }

  .executive-negotiation-lead {
    align-items: flex-start;
    flex-direction: column;
  }

  .executive-event-filters,
  .executive-event-facts,
  .executive-variable-grid,
  .executive-rule-list,
  .executive-package-contents ul {
    grid-template-columns: 1fr;
  }

  .executive-event-index-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .executive-record-attention > div > a {
    grid-template-columns: 1fr auto;
  }

  .executive-record-attention > div p {
    grid-column: 1 / -1;
  }

  .executive-chart-context {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .executive-selected-period-details > summary {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .executive-range-metrics {
    grid-template-columns: 1fr;
  }

  .executive-range-summary-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .executive-chart-scroll-hint {
    display: block;
  }

  .executive-decision-facts article {
    grid-template-columns: 1fr;
  }

  .executive-decision-facts strong,
  .executive-decision-facts small {
    grid-column: 1;
    grid-row: auto;
    text-align: left;
  }

  .executive-role-brief-head {
    display: grid;
  }

  .executive-role-tabs {
    justify-content: start;
  }

  .executive-role-metrics {
    grid-template-columns: 1fr;
  }

  .executive-mini-trend {
    grid-template-columns: 1fr;
  }

  .executive-role-narrative {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .decision-rationale > summary {
    display: grid;
    grid-template-columns: 1fr auto;
  }

  .decision-rationale > summary small {
    grid-column: 1;
    text-align: left;
  }

  .decision-rationale > summary::after {
    grid-column: 2;
    grid-row: 1;
  }

  .money-brief {
    gap: var(--s-3);
  }

  .money-brief-total {
    padding: var(--s-4);
  }

  .money-brief-facts article {
    display: block;
  }

  .money-brief-facts strong {
    margin: var(--s-3) 0 var(--s-2);
    text-align: left;
  }

  .money-bars > a {
    grid-template-columns: 1fr auto;
    gap: var(--s-2);
  }

  .money-bars i {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .money-bars em {
    grid-column: 2;
    grid-row: 1;
  }

  .money-disclosure > summary {
    grid-template-columns: 1fr auto;
    padding: var(--s-4);
  }

  .money-disclosure > summary em {
    grid-column: 1 / -1;
    text-align: left;
  }

  .money-disclosure > div {
    padding: var(--s-4);
  }

  .money-ledger-row > summary {
    grid-template-columns: 1fr 20px;
    gap: var(--s-2);
  }

  .money-ledger-row > summary span:nth-child(2) {
    grid-column: 1;
    text-align: left;
  }

  .money-ledger-row > summary::after {
    grid-column: 2;
    grid-row: 1;
  }

  .money-ledger-detail dl {
    grid-template-columns: 1fr;
  }

  .executive-projection-summary {
    grid-template-columns: 1fr;
  }

  .executive-projection-calendar a {
    grid-template-columns: 1fr;
  }

  .executive-projection-calendar span:last-child {
    text-align: left;
  }

  .executive-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--s-2);
  }

  .executive-kpis article {
    padding: var(--s-3);
  }

  .executive-kpis strong {
    font-size: 1.45rem;
  }

  .executive-event > summary,
  .executive-event-link {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--s-2);
    padding: var(--s-3);
  }

  .executive-controls > div {
    align-items: flex-start;
    flex-direction: column;
    gap: var(--s-2);
  }

  .executive-event-weather {
    display: none;
  }

  .executive-event-money {
    grid-column: 1 / -1;
    grid-row: 2;
    padding-top: var(--s-2);
    border-top: 1px solid var(--line);
  }

  .executive-indicator {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
  }

  .executive-detail-tabs {
    position: static;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .executive-detail-tabs button {
    min-width: 0;
    padding: 8px 4px;
    border-radius: var(--r-md);
    line-height: var(--lh-small);
    white-space: normal;
  }

  .executive-detail-panel {
    padding: var(--s-3);
  }

  .executive-chart-selection {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .executive-chart-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .executive-event-index-row {
    grid-template-columns: 1fr;
  }

  .executive-record-attention > summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .executive-negotiation-readiness {
    grid-template-columns: 1fr;
  }

  .simulation-flow {
    grid-template-columns: 1fr;
  }

  .replay-guide > ol,
  .replay-comparison-purpose,
  .chart-purpose {
    grid-template-columns: 1fr;
  }

  .simulation-task-strip {
    grid-template-columns: 1fr 1fr;
  }

  .simulation-disclosure > summary {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
.public-interior { margin: 22px 0; border: 1px solid var(--line); background: var(--panel); }
.public-interior > header { display: flex; align-items: end; justify-content: space-between; gap: 16px;
  padding: 16px 18px 10px; border-bottom: 1px solid var(--line); }
.public-interior h2 { margin: 3px 0 0; font-size: 1.2rem; }
.public-interior .spine-lede { padding: 0 18px; }
.public-interior-controls { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.public-interior-controls button { border: 1px solid var(--line-strong); background: transparent;
  color: inherit; padding: 6px 9px; border-radius: 6px; cursor: pointer; }
.public-interior-controls button[aria-pressed="true"] { background: var(--accent-mark); color: white; }
.public-interior-viewport { margin: 12px 18px; overflow: auto; background: var(--page);
  border: 1px solid var(--line); }
.public-interior-viewport svg { display: block; width: min(100%, 960px); min-width: 520px; margin: auto; }
.public-interior-viewport polygon, .public-interior-viewport polyline, .public-interior-viewport circle {
  fill: color-mix(in srgb, var(--accent-mark) 14%, transparent);
  stroke: var(--accent-mark); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
/* A line that does not come back to where it started encloses nothing. Filled, it
   drew a solid sail across the floor, which is what every wall on the plan became. */
.public-interior-viewport polyline { fill: none; }
.public-interior-viewport g[role="button"] { cursor: pointer; }
.public-interior-viewport g.is-selected polygon, .public-interior-viewport g.is-selected polyline,
.public-interior-viewport g.is-selected circle { stroke: var(--ink); stroke-width: 3; }
.public-interior-viewport [data-kind="corridor"] { fill: color-mix(in srgb, #2f9455 16%, transparent); stroke: #2f9455; }
.public-interior-viewport polyline[data-kind="corridor"] { fill: none; }
.public-interior-viewport [data-kind="door"], .public-interior-viewport [data-kind="steps"],
.public-interior-viewport [data-kind="elevator"] { fill: #c99232; stroke: #c99232; }
.public-interior-proof { display: grid; gap: 4px; padding: 12px 18px 16px; border-top: 1px solid var(--line); }
.public-interior-proof span, .public-interior-proof small, .public-interior-empty { color: var(--muted); }
.public-interior-empty { padding: 20px 18px; }
@media (max-width: 720px) { .public-interior > header { align-items: start; flex-direction: column; }
  .public-interior-controls { justify-content: flex-start; } }
.case-record { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px;
  padding-top: 12px; border-top: 1px solid var(--line); }
.case-record .flow-label { margin: 0; }
.case-record input { flex: 1 1 180px; min-width: 140px; padding: 6px 9px; border: 1px solid var(--line-strong);
  border-radius: 6px; background: var(--page); color: inherit; font: inherit; font-size: 0.86rem; }
.case-record button { border: 1px solid var(--line-strong); background: transparent; color: inherit;
  padding: 6px 10px; border-radius: 6px; cursor: pointer; font-size: 0.86rem; }
.case-record button:hover { border-color: var(--accent-mark); color: var(--accent-mark); }
.interval-import textarea { width: 100%; font-family: inherit; font-size: 0.86rem; padding: 8px 10px;
  border: 1px solid var(--line-strong); border-radius: 6px; background: var(--page); color: inherit; }
.building-stack { margin: 22px 0; border: 1px solid var(--line); background: var(--panel); }
.building-stack > header { display: flex; align-items: end; justify-content: space-between; gap: 16px;
  padding: 16px 18px 10px; border-bottom: 1px solid var(--line); }
.building-stack h2 { margin: 3px 0 0; font-size: 1.2rem; }
.building-stack .spine-lede { padding: 0 18px 16px; }
.building-stack-controls { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.building-stack-controls button { border: 1px solid var(--line-strong); background: transparent; color: inherit;
  padding: 6px 9px; border-radius: 6px; cursor: pointer; font-size: 0.86rem; }
.building-stack-controls button[aria-pressed="true"] { background: var(--accent-mark); color: white; }
.stack-placement-controls { align-items: center; display: flex; flex-wrap: wrap; gap: var(--s-2); margin: 0 18px var(--s-3); }
.stack-placement-controls button { border: 1px solid var(--line-strong); border-radius: var(--r-sm); color: var(--accent); font: inherit; min-height: 32px; padding: 5px var(--s-2); }
.building-stack-viewport { margin: 12px 18px; overflow: auto; background: var(--page); border: 1px solid var(--line); }
.building-stack-viewport svg { display: block; width: min(100%, 980px); min-width: 560px; margin: auto; }
.stack-plate { fill: color-mix(in srgb, var(--ink) 5%, transparent); stroke: var(--line-strong); stroke-width: 3;
  vector-effect: non-scaling-stroke; }
.stack-field { fill: color-mix(in srgb, #2f9455 16%, transparent); stroke: #2f9455; stroke-width: 2;
  vector-effect: non-scaling-stroke; }
.stack-section { fill: color-mix(in srgb, var(--accent-mark) 26%, transparent); stroke: var(--accent-mark);
  stroke-width: 1; vector-effect: non-scaling-stroke; }
/*
  Shapes the public map publishes, drawn in the material each one is.

  Distinct from the seating and the spaces on purpose: these are a survey of the
  building rather than anything this product modelled, and a reader who can see
  which is which can tell what the drawing knows from what it assumed. Ice reads
  cold, water reads as water, a playing surface is the same green the field
  already uses, and a stand is drawn as structure.
*/
.stack-mapped { fill: color-mix(in srgb, var(--ink) 10%, transparent); stroke: var(--line-strong);
  stroke-width: 2; vector-effect: non-scaling-stroke; }
.stack-mapped.is-ice { fill: color-mix(in srgb, #7fb8d4 30%, transparent); stroke: #4a8fb0; }
.stack-mapped.is-water { fill: color-mix(in srgb, #1183a0 26%, transparent); stroke: #0d5f70; }
.stack-mapped.is-playing-surface { fill: color-mix(in srgb, #2f9455 18%, transparent); stroke: #2f9455; }
.stack-mapped.is-stand { fill: color-mix(in srgb, var(--accent-mark) 22%, transparent); stroke: var(--accent-mark); }
.stack-mapped.is-room { fill: color-mix(in srgb, #c99232 18%, transparent); stroke: #c99232; }
.stack-space { fill: #c99232; opacity: 0.85; }
.stack-space.is-selected { fill: var(--accent-mark); stroke: var(--ink); stroke-width: 3; }
.stack-label { fill: var(--muted); font-size: 46px; }
@media (max-width: 720px) { .building-stack > header { align-items: start; flex-direction: column; }
  .building-stack-controls { justify-content: flex-start; } }
.stack-machine rect { fill: var(--panel); stroke: var(--ink); stroke-width: 3; vector-effect: non-scaling-stroke; }
.stack-machine text { fill: var(--ink); font-size: 30px; font-weight: 650; }
.stack-machine.is-pump rect { stroke: #2f9455; }
.stack-machine.is-fan rect { stroke: #1FA9E0; }
.stack-machine.is-air-handler rect { stroke: #E36419; }
.stack-machine.is-outside rect { stroke: #6A7788; stroke-dasharray: 8 5; }
.building-stack-viewport svg.is-placing { cursor: crosshair; }
.stack-unplaced { padding: 0 18px 4px; }
.stack-unplaced-row { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; margin: 8px 0 4px; }
.stack-unplaced-row button { border: 1px solid var(--line-strong); background: transparent; color: inherit;
  padding: 6px 10px; border-radius: 6px; cursor: grab; font-size: 0.86rem;
  display: grid; gap: 2px; text-align: left; }
.stack-unplaced-row button:active { cursor: grabbing; }
/* The room it is in, under the name, so nobody is asked for what is already known. */
.stack-unplaced-row button small { font-size: 0.74rem; color: var(--muted); }
.stack-unplaced-row button[aria-pressed="true"] small { color: rgba(255, 255, 255, 0.85); }
.stack-unplaced-row button[aria-pressed="true"] { background: var(--accent-mark); color: white; }
.stack-unplaced-row button:disabled { opacity: 0.45; cursor: not-allowed; }
.stack-unplaced-row label { display: grid; gap: 3px; font-size: 0.8rem; color: var(--muted); }
.stack-unplaced-row input { padding: 6px 9px; border: 1px solid var(--line-strong); border-radius: 6px;
  background: var(--page); color: inherit; font: inherit; font-size: 0.86rem; }
.stack-machine.is-byhand rect { stroke-dasharray: none; stroke-width: 4; }

/*
  The way in, before there is anything to show.

  Narrow on purpose. This screen is one short form and the reasoning behind it,
  and the full 1360px frame every other screen uses would set a 60-character
  question across a metre of glass.
*/
.signin-page {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--s-7) var(--s-5) var(--s-8);
}
.signin-page .page-head {
  margin-bottom: var(--s-6);
}
.signin-page .page-block + .page-block {
  margin-top: var(--s-6);
}

/*
  Choosing permissions, and choosing groups.

  These were laid out with `source-facts`, which is a definition-list grid for
  term-and-value pairs, so every checkbox landed above its own label in the next
  column: readable as text and wrong as a control. A chooser is a list of rows,
  each one a box, its label, and what it means.
*/
.permission-choice {
  display: grid;
  gap: var(--s-4);
  margin: var(--s-4) 0;
  padding: var(--s-4);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.permission-choice > legend {
  padding: 0 var(--s-2);
  color: var(--muted);
  font-size: var(--t-small);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.permission-choice > div {
  display: grid;
  gap: 4px;
}
.permission-choice label {
  display: flex;
  gap: var(--s-3);
  align-items: baseline;
  font-weight: 600;
}
.permission-choice input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  flex: 0 0 auto;
}
.permission-choice > div > p {
  margin: 0 0 0 calc(18px + var(--s-3));
  color: var(--muted);
  font-size: var(--t-body-s);
  line-height: var(--lh-body);
}

/* One person, and a button per group they are or are not in. */
.membership-row {
  display: flex;
  gap: var(--s-3);
  align-items: center;
  flex-wrap: wrap;
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--line);
}
.membership-row > b {
  min-width: 260px;
}

/* ---------------------------------------------------------------------------
   The working behind a result.

   One control, one mark, wherever a figure is presented as an answer. It has to
   read as an offer rather than a warning, so it takes the accent color and not
   the alert one, and it has to be small enough to sit beside a number without
   competing with it.

   The marker is removed and replaced by the mark itself, because a disclosure
   triangle beside a figure reads as "there is more text here" and this is a
   specific promise: the arithmetic, its inputs, and what the answer is only as
   good as.
--------------------------------------------------------------------------- */

.working {
  display: inline-block;
  vertical-align: baseline;
  margin-left: 0.35em;
}

/*
  Sized in pixels, not in em.

  `Workings` is used on a dozen screens and inherits whatever surrounds it. Beside
  body text at 14px an em-relative circle came out about 15px, which is right. In
  a decision card the answer is `--t-h2`, which is 26px, so the same rule drew a
  27px circle holding a 23px letter next to the word it annotates. One mark that
  changes size depending on which screen it is on is not one mark.
*/
/* What the number on a comparison card is, under the number. */
.comparison-card-basis {
  font-size: var(--t-small);
  line-height: var(--lh-small);
  color: var(--muted);
}

/* What the simulator's headline figure covers, under the figure itself. */
.sim-answer-covers {
  display: block;
  margin-top: 4px;
  font-size: var(--t-small);
  line-height: var(--lh-small);
  color: var(--muted);
  max-width: 34rem;
}

.working > summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  cursor: pointer;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  background: var(--paper, #fff);
  line-height: 1;
  transition: background-color 120ms ease, color 120ms ease;
}

.working > summary::-webkit-details-marker,
.working > summary::marker {
  display: none;
  content: "";
}

.working > summary:hover,
.working > summary:focus-visible {
  background: var(--accent);
  color: #fff;
}

.working > summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.working[open] > summary {
  background: var(--accent);
  color: #fff;
}

.working-mark {
  /*
    Sized and centred for a letter rather than for a symbol. The nudge that used
    to be here was tuned for U+2235, whose three dots sit low in the em box; a
    lowercase i carries a dot and a stem and centres on its own.
  */
  font-size: 12px;
  font-weight: 600;
  font-style: normal;
  line-height: 1;
}

/*
  On a decision card the mark sits in the corner rather than after the answer.

  Inline, it followed the answer text, so eleven cards put eleven circles at
  eleven different distances from the left: after "Closed", after "$5.48/kW",
  after "76.6 F". The eye reads that as eleven different things. The card is the
  same size on every one of them, so the corner is the same place on every one of
  them.

  Only the control moves. The panel it opens stays where it was, under the answer
  it explains, which is what it is about.
*/
.decision .working > summary {
  position: absolute;
  top: 16px;
  right: 16px;
}

.working-body {
  display: block;
  position: relative;
  z-index: 2;
  margin-top: 0.6rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 4px;
  max-width: 34rem;
  text-align: left;
  font-size: var(--t-small);
  color: var(--ink);
}

.working-head {
  margin: 0 0 0.5rem;
  font-weight: 600;
  color: var(--accent);
}

.working-steps {
  margin: 0;
  padding-left: 1.4rem;
  /* Numbered, and visibly so. The whole promise of this panel is that a reader
     can follow it in order, and a list with its markers suppressed is a pile of
     assertions in a box. */
  list-style: decimal;
  display: grid;
  gap: 0.6rem;
}

.working-steps > li {
  margin: 0;
  list-style: decimal;
}

.working-steps > li::marker {
  color: var(--accent);
  font-weight: 700;
}



.working-name {
  font-weight: 600;
}

.working-value {
  margin-left: 0.5ch;
  padding: 0.05rem 0.4rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
  white-space: nowrap;
}

.working-steps p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  /* The step is the claim and this is the working behind it, so it has to read
     as the quieter of the two wherever this panel lands. Inside a decision card
     everything inherits the card's weight, which made the two identical. */
  font-weight: 400;
}

.working-rests,
.working-source {
  margin: 0.7rem 0 0;
  padding-top: 0.55rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  /* These sit inside decision cards, which set their own weight, so the body of
     each section inherited bold and competed with its own label. The label is
     the only bold thing in here. */
  font-weight: 400;
}

.working-rests > span,
.working-source > span {
  display: block;
  font-weight: 600;
  color: var(--ink);
}

@media (max-width: 40rem) {
  .working-body {
    max-width: none;
  }
}

.working-worth,
.working-feeds {
  margin: 0.7rem 0 0;
  padding-top: 0.55rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-weight: 400;
}

.working-worth > span,
.working-feeds > span {
  display: block;
  font-weight: 600;
  color: var(--ink);
}

.working-feeds ul {
  margin: 0.35rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.35rem;
}

.working-feeds li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.1rem 0.5rem;
  align-items: baseline;
  padding-left: 0.6rem;
  /* The standing of a feed is the thing a reader is checking here, so it is
     carried by a color as well as by the words. Rust for standing in, because
     that is the one that changes what the figure may be used for. */
  border-left: 3px solid var(--now-mark);
}

.working-feeds li.is-live {
  border-left-color: var(--accent-mark);
}

.working-feeds li strong {
  color: var(--ink);
  font-weight: 600;
}

.working-feeds li em {
  font-style: normal;
  font-size: 0.92em;
}

.working-feeds li.is-live em {
  color: var(--accent);
}

.working-feeds li > span {
  grid-column: 1 / -1;
  font-size: 0.92em;
}

/* The folded-findings disclosure, which is a list rather than a working.
   It shared a class with the old methodology panel and inherited its styles by
   accident of naming; now that the panel is a mark it has its own. */
details.folded {
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

details.folded > summary {
  cursor: pointer;
  font-size: var(--t-body-s);
  font-weight: 600;
  color: var(--accent);
  list-style: none;
}

details.folded > summary::-webkit-details-marker {
  display: none;
}

details.folded > summary::before {
  content: "+ ";
  font-weight: 700;
}

details.folded[open] > summary::before {
  content: "- ";
}

.working-why {
  margin: 0 0 0.7rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line);
  font-weight: 400;
  color: var(--ink);
}

.executive-projection-basis {
  margin: 1.2rem 0 0;
  color: var(--muted);
  font-size: var(--t-small);
}

.money-brief-headline {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.2rem;
}

/* The panel is a block inside a flex row, so it takes the whole width beneath
   the figure rather than being squeezed beside it. */
.money-brief-headline .working[open] {
  flex-basis: 100%;
}

.money-fact-value {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.2rem;
}

.money-fact-value .working[open] {
  flex-basis: 100%;
}

/* A figure with its working beside it, wherever a stat tile carries one. */
.count-value {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.2rem;
}

.count-value .working[open] {
  flex-basis: 100%;
}

.sim-answer-value {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.25rem;
}

/*
  The mark stays where it was put.

  It sat inline after the figure, so opening it pushed the panel into the flow
  and the mark moved down the card with it: the control jumped out from under
  the pointer that had just pressed it. Pinned to the card's corner it is in the
  same place open or shut, which is what `.decision` already does and what a
  reader has learned everywhere else.
*/
.sim-answer .working > summary {
  position: absolute;
  top: 16px;
  right: 16px;
}
.sim-answer-value .working[open] {
  flex-basis: 100%;
}
.sim-answer-value .working[open] > .working-body {
  margin-top: var(--s-2);
}

.executive-outcome-working {
  margin: -0.35rem 0 0.4rem;
}

.working-rests p {
  margin: 0.25rem 0 0;
}

/* --- what rests on what -------------------------------------------------- */

/*
 * The grid above the trust table. Ten feeds down, the answers they carry
 * across, and a mark where one holds the other up.
 *
 * Built on a real table so the marks cannot say anything the data does not, and
 * styled here rather than drawn, because a picture assembled from divs would
 * need its own idea of which cell belongs to which header and would be free to
 * be wrong about it.
 */
.feed-grid-figure {
  margin: 0 0 var(--s-6);
}

.feed-grid-figure figcaption {
  color: var(--muted);
  font-size: var(--t-body-s);
  line-height: var(--lh-body-s);
  margin-bottom: var(--s-3);
  max-width: 62ch;
}

.feed-grid-figure figcaption strong {
  color: var(--ink);
}

/*
 * Per axis, for the reason the tables above give: the rounded corners want
 * vertical clipping and the horizontal axis has to stay free to scroll, because
 * this grid is the widest thing on the page and a narrow window must not clip a
 * column with no way to reach it.
 */
.feed-grid-scroll {
  overflow-x: auto;
  overflow-y: hidden;
}

.feed-grid {
  border-collapse: collapse;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--elev-1);
  font-size: var(--t-body-s);
}

.feed-grid:focus-visible {
  outline: 3px solid var(--accent-mark);
  outline-offset: 3px;
}

/*
 * The answers, written up the page.
 *
 * Nine of them at their full width is a table nothing can read on a laptop.
 * Turned rather than shortened, and turned with `writing-mode` rather than a
 * transform, so it is still text: selectable, searchable, and read out in the
 * right order.
 */
.feed-grid thead th {
  vertical-align: bottom;
  padding: 10px 0 8px;
  font-weight: 600;
  color: var(--ink);
  font-size: var(--t-small);
  border-bottom: 1px solid var(--line-strong);
}

.feed-grid thead th span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
  text-align: left;
}

.feed-grid .feed-grid-corner {
  border-bottom: 1px solid var(--line-strong);
}

.feed-grid tbody th[scope="rowgroup"] {
  text-align: left;
  vertical-align: top;
  padding: 10px 14px 10px 12px;
  font-size: var(--t-micro);
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: var(--muted);
  background: #eef3f5;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  white-space: nowrap;
}

.feed-grid tbody th[scope="row"] {
  text-align: left;
  font-weight: 600;
  color: var(--ink);
  padding: 10px 16px 10px 12px;
  border-top: 1px solid var(--line);
  white-space: nowrap;
}

.feed-grid tbody td {
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  width: 34px;
  min-width: 34px;
  height: 34px;
  padding: 0;
}

/*
 * The mark itself. Filled where the feed behind it is reading this building,
 * open where it is standing in with sample data.
 *
 * The difference has to survive being printed in grey and being looked at by
 * somebody who cannot separate the two colors, so it is fill against outline
 * rather than one color against another. Color agrees with the shape; it does
 * not carry it alone.
 */
.feed-grid tbody td.is-mark::after {
  content: "";
  display: block;
  width: 11px;
  height: 11px;
  margin: auto;
  border-radius: var(--r-full);
  border: 1.5px solid var(--line-strong);
  background: transparent;
}

.feed-grid tbody tr.is-live td.is-mark::after {
  border-color: var(--accent);
  background: var(--accent);
}

.feed-grid tbody tr.is-live th[scope="row"] {
  color: var(--accent);
}

/*
 * The count under each column, which is the sentence the picture is making: how
 * many feeds this answer rests on and how many of them are reading the
 * building. A zero is the point, so it is marked rather than left to be noticed.
 */
.feed-grid tfoot th {
  text-align: right;
  font-weight: 500;
  color: var(--muted);
  font-size: var(--t-micro);
  padding: 10px 12px;
  border-top: 1px solid var(--line-strong);
  white-space: nowrap;
}

.feed-grid tfoot td {
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line);
  padding: 8px 2px;
  text-align: center;
  line-height: 1.2;
}

.feed-grid tfoot td strong {
  display: block;
  font-size: var(--t-body);
  color: var(--ink);
}

.feed-grid tfoot td span {
  display: block;
  font-size: 10px;
  color: var(--muted);
}

.feed-grid tfoot td.is-partly strong {
  color: var(--accent);
}

.feed-grid tfoot td.is-none strong {
  color: var(--now);
}

/*
 * A feed that reaches nothing yet.
 *
 * Its row is empty across every column, which reads as a grid that failed to
 * draw rather than as an answer. The row says why under the feed's own name and
 * sits back a shade, so it is legible as a state rather than as a gap.
 */
.feed-grid tbody tr.is-unreached th[scope="row"] {
  color: var(--muted);
}

.feed-grid tbody tr.is-unreached th[scope="row"] small {
  display: block;
  font-weight: 400;
  font-size: var(--t-micro);
  color: var(--muted);
  white-space: nowrap;
}

.feed-grid tbody tr.is-unreached td {
  background: color-mix(in srgb, var(--page) 55%, transparent);
}


/* --- connect and get ------------------------------------------------------ */

/*
 * Seven on one side, four on the other.
 *
 * The grid on `/trust` is the same chain with every cell marked, which is what
 * somebody connecting things needs. This is what somebody deciding needs, so it
 * carries no marks to decode and nothing that has to be read twice.
 */
.connect-figure {
  margin: 0 0 var(--s-5);
}

.connect-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1.15fr);
  align-items: stretch;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--elev-1);
  overflow: hidden;
}

/*
 * One column under the other on a narrow screen, and the join between them goes
 * with it: an arrow pointing right is wrong the moment the thing it points at
 * is underneath.
 */
@media (max-width: 720px) {
  .connect-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .connect-join {
    display: none;
  }
}

.connect-side {
  padding: var(--s-4);
}

.connect-side h3 {
  margin: 0 0 var(--s-3);
  font-size: var(--t-micro);
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.connect-side ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.connect-side > ul > li {
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding: 7px 0;
  border-top: 1px solid var(--line);
}

.connect-side > ul > li:first-child {
  border-top: 0;
}

.connect-dot {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: var(--r-full);
  border: 1.5px solid var(--line-strong);
  transform: translateY(-1px);
}

/*
 * Fill against outline rather than one colour against another, so the two
 * states survive greyscale and survive a reader who cannot separate the hues.
 */
.connect-side li.is-live .connect-dot {
  background: var(--accent);
  border-color: var(--accent);
}

.connect-name {
  color: var(--ink);
  font-size: var(--t-body);
}

.connect-side li.is-live .connect-name {
  color: var(--accent);
  font-weight: 600;
}

.connect-side li small {
  margin-left: auto;
  font-size: var(--t-micro);
  color: var(--muted);
  white-space: nowrap;
}

.connect-count {
  margin: var(--s-3) 0 0;
  padding-top: var(--s-3);
  border-top: 1px solid var(--line-strong);
  font-size: var(--t-body-s);
  color: var(--muted);
}

.connect-count strong {
  font-size: var(--t-lead);
  color: var(--ink);
}

/*
 * The join. One mark rather than nine lines: which feed reaches which answer is
 * a real question and it is the other screen's question, and drawn here it would
 * be nine crossings saying one thing.
 */
.connect-join {
  position: relative;
  background: var(--page);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.connect-join span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  margin: -5px 0 0 -6px;
  border-top: 2px solid var(--line-strong);
  border-right: 2px solid var(--line-strong);
  transform: rotate(45deg);
}

.connect-answers {
  background: var(--page);
}

.connect-answers > ul > li {
  display: block;
  padding: 10px 0;
}

.connect-answer-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.connect-answer-head strong {
  font-size: var(--t-body-l);
  color: var(--ink);
}

.connect-state {
  font-size: var(--t-micro);
  letter-spacing: var(--track-small);
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-full);
  padding: 1px 8px;
}

.connect-answers li.is-measured .connect-state {
  color: var(--accent);
  border-color: var(--accent);
}

/*
 * An answer with nothing behind it is marked warm rather than quiet. Life safety
 * is the one, and an empty safety answer that reads like the others is the
 * failure this whole product is written against.
 */
.connect-answers li.is-absent .connect-state {
  color: var(--now);
  border-color: var(--now);
}

.connect-what {
  display: block;
  margin-top: 3px;
  font-size: var(--t-body-s);
  line-height: var(--lh-body-s);
  color: var(--muted);
}

.connect-figure figcaption {
  margin-top: var(--s-3);
  font-size: var(--t-body-s);
  line-height: var(--lh-body-s);
  color: var(--muted);
  max-width: 68ch;
}

/*
 * Raising a work order, kept apart from recording what already happened.
 *
 * The two sit next to each other and mean opposite things: one writes down the
 * past, the other asks for something to be done. A shared row of buttons would
 * have somebody press the wrong one.
 */
.case-raise {
  border-top: 1px dashed var(--line);
  margin-top: 6px;
  padding-top: 8px;
}

/* --- the work report ----------------------------------------------------- */

.work-report-figures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--s-3);
  margin: var(--s-3) 0 var(--s-4);
}

.work-report-figures > div {
  border-top: 2px solid var(--line-strong);
  padding-top: var(--s-2);
}

/*
 * A job that came back is marked warm rather than left to be counted. It is the
 * figure the whole record exists to surface: a fault fixed and reopened is not a
 * fixed fault, and it is invisible in a completion rate.
 */
.work-report-figures > div.is-warm {
  border-top-color: var(--now);
}

.work-report-figures > div.is-warm dd {
  color: var(--now);
}

.work-report-figures dt {
  font-size: var(--t-micro);
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: var(--muted);
}

.work-report-figures dd {
  margin: 3px 0 0;
  font-size: var(--t-lead);
  font-weight: 600;
  color: var(--ink);
}


/*
  The work queue: what is late, what is due, what is coming.

  Grouped rather than filtered, because a person working a list in the morning
  wants the late ones in front of them, not a control that would show them.
*/
.work-queue-groups { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.work-queue-group {
  display: grid;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  align-content: start;
}
.work-queue-group h3 {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-2);
  margin: 0; font-size: 0.95rem; color: var(--ink);
}
.work-queue-group h3 span { font-variant-numeric: tabular-nums; font-size: 1.4rem; font-weight: 700; }
.work-queue-group p { margin: 0; }
.work-queue-group ul { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s-2); }
.work-queue-group li { display: grid; gap: 1px; }
.work-queue-group li strong { font-weight: 600; font-size: 0.9rem; }
.work-queue-group li span { color: var(--muted); font-size: 0.8rem; }
/* Late is the only one that gets a colour. Colouring all of them makes none of
   them mean anything. */
.work-queue-group.is-overdue { border-left: 3px solid var(--warn, #b3421a); }
.work-queue-group.is-overdue h3 span { color: var(--warn, #b3421a); }
.work-queue-group.is-today { border-left: 3px solid var(--accent); }

/* --- what a building is spending that nobody needed it to spend -------------
   The figure is the point of the card, so it is the largest thing on it, and
   nothing else grows to compete. Restrained on purpose: a number this size does
   not need colour to be noticed, and a screen an owner reads every morning
   should not look like it is selling to them. */
.waste { display: grid; gap: var(--s-3); }
.waste-figure {
  font-size: clamp(38px, 7vw, 62px);
  line-height: 1.02;
  font-weight: 680;
  letter-spacing: -0.02em;
  color: var(--ink);
  /* Tabular figures so a number that changes on refresh does not shuffle the
     characters either side of it. */
  font-variant-numeric: tabular-nums;
  margin: 0;
  /* It has to survive a long figure on a narrow screen rather than run off it. */
  overflow-wrap: anywhere;
}
.waste-clear { font-size: var(--t-h3); font-weight: 640; color: #2f7d4f; margin: 0; }
.waste-where { font-size: var(--t-body-s); font-weight: 650; margin: var(--s-3) 0 0; }

/* The money cards are `.decision` cards in a `.decision-grid`, so there is
   nothing to say about their width, their padding or their figure: they are the
   same card as every other card on the screen, which is the whole point of using
   it. Only the money's own tabular figures are added, so a number that changes
   on refresh does not shuffle the characters either side of it. */
.waste-headline .answer,
.recommends .answer {
  font-variant-numeric: tabular-nums;
}
.waste-through { margin: 0; font-size: var(--t-body-s); }

/* --- what to do about it ---------------------------------------------------- */
.recommends { display: grid; gap: var(--s-3); }
.recommends-what { font-size: var(--t-h3); font-weight: 620; margin: 0; line-height: var(--lh-lead); }
.recommends-changes summary { font-size: var(--t-body-s); font-weight: 640; cursor: pointer; }
.recommends-changes[open] summary { margin-bottom: var(--s-3); }
.recommends-actions { align-items: center; flex-wrap: wrap; gap: var(--s-3); }
.recommends-approved { margin: 0; font-size: var(--t-body-s); color: #2f7d4f; font-weight: 620; }
.source-save.is-quiet {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

/* A BACnet sweep in progress. It runs until the building is read rather than
   for a fixed half minute, so at a venue this is on screen for minutes. Built
   from the same tokens as the evidence block it sits above. */
.bacnet-progress {
  display: grid;
  gap: var(--s-3);
  margin-top: var(--s-4);
  padding: var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}
.bacnet-progress progress { width: 100%; }

/* The address lookup while it runs, which is the same problem as the sweep
   above: work happening somewhere the screen cannot see, and a wait that reads
   as a hang. Same shape, so the two say "this is working" the same way. */
.lookup-progress {
  display: grid;
  gap: var(--s-3);
  margin-top: var(--s-4);
  padding: var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}
.lookup-progress progress { width: 100%; }
.lookup-progress p { margin: 0; }

/* The measured charts.

   Drawn the way a reporting tool draws: the data in the accent colour, the grid
   behind it in the divider colour and never competing with it, ticks in the
   muted text colour, and one reference mark where a comparison belongs. Nothing
   here is decorative, because every one of these is read by somebody deciding
   whether to start a plant earlier. */
.measured-chart {
  margin: var(--s-4) 0 0;
  padding: var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--panel);
}
.measured-chart figcaption {
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--s-2);
}
/* Wide charts scroll inside their own frame rather than pushing the page
   sideways, which is what a table of hours does on a laptop. */
.measured-chart-frame { overflow-x: auto; }
.measured-chart svg { width: 100%; min-width: 320px; height: auto; display: block; }

.chart-grid { stroke: var(--line); stroke-width: 1; }
.chart-tick { fill: var(--muted); font-size: 10px; }
.chart-axis-label { fill: var(--muted); font-size: 10px; letter-spacing: 0.04em; text-transform: uppercase; }
.chart-annotation { fill: var(--now); font-size: 10px; }
.chart-line { stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; }
.chart-area { fill: var(--accent-soft); }
.chart-reference { stroke: var(--now-mark); stroke-width: 1.5; stroke-dasharray: 4 3; }
.chart-fit { stroke: var(--now-mark); stroke-width: 2; }
/* A fit that explains little is drawn as little: the line is still true and
   trusting it would not be. */
.chart-fit.is-weak { stroke-dasharray: 5 4; opacity: 0.75; }
.scatter-dot { fill: var(--accent-mark); opacity: 0.55; }
.chart-series { stroke-width: 2; stroke-linejoin: round; }
.chart-series.is-0 { stroke: var(--accent); }
.chart-series.is-1 { stroke: var(--money-mark); stroke-dasharray: 6 4; }

.carpet-cell { fill: var(--accent); }
.carpet-cell.is-missing { fill: var(--page); stroke: var(--line); }

.chart-key { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-4); margin: var(--s-3) 0 0; padding: 0; }
.chart-key li { display: flex; align-items: center; gap: var(--s-2); color: var(--muted); font-size: 0.9em; }
.chart-key-mark { width: 18px; height: 3px; border-radius: 2px; background: var(--accent); }
.chart-key .is-1 .chart-key-mark { background: var(--money-mark); }

/* A bar chart with a reference mark, for the two calibrations. The mark is what
   makes it a comparison rather than a number. */
.measured-bars { list-style: none; margin: var(--s-3) 0 0; padding: 0; display: grid; gap: var(--s-3); }
.measured-bars li { display: grid; grid-template-columns: minmax(9rem, 14rem) 1fr; gap: var(--s-2) var(--s-3); align-items: center; }
.measured-bars-label { color: var(--ink); font-weight: 600; }
.measured-bars-track {
  position: relative;
  height: 20px;
  border-radius: var(--r-sm);
  background: var(--page);
  border: 1px solid var(--line);
  overflow: hidden;
}
.measured-bars-fill { position: absolute; inset: 0 auto 0 0; background: var(--accent); }
.measured-bars-worst { position: absolute; inset: 0 auto 0 0; background: var(--accent-soft); }
.measured-bars-reference { position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--now-mark); }
.measured-bars-value { grid-column: 2; color: var(--muted); font-size: 0.9em; }
.measured-bars-thin { position: absolute; left: var(--s-2); top: 2px; color: var(--muted); font-size: 0.85em; }
.measured-bars li.is-thin .measured-bars-label { color: var(--muted); font-weight: 500; }

@media (max-width: 40rem) {
  .measured-bars li { grid-template-columns: 1fr; }
  .measured-bars-value { grid-column: 1; }
}

/* The other venues the map shows near this server. A list of presses rather
   than a list to read: taking one is the whole interaction. */
.setup-address-others { margin-top: var(--s-3); }
.setup-address-others p { margin: 0 0 var(--s-2); color: var(--ink-2, inherit); }
.setup-address-others ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.setup-address-others li { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-2); }
.setup-address-others button {
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  padding: var(--s-2) var(--s-3);
  cursor: pointer;
  font: inherit;
}
.setup-address-others button:hover { border-color: var(--ink-2, var(--line)); }

/* Which conversation an answer belongs to, and whether it is enough by itself.
   Both are read while somebody decides what to go and ask their contractor
   for, so they sit on the field rather than in a paragraph above it. */
.field-protocol,
.field-alone,
.field-required,
.field-optional {
  display: inline-block;
  margin-left: var(--s-2);
  padding: 0 var(--s-2);
  border-radius: var(--r-sm);
  font-size: 0.75em;
  font-style: normal;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.field-required { background: var(--accent-soft); color: var(--accent); }
.field-optional { background: var(--page); color: var(--muted); }
.field-protocol { background: var(--page); color: var(--ink); border: 1px solid var(--line); }
.field-alone { background: var(--money-soft); color: var(--money); }

/* The two ways of reading a building, side by side, so nobody has to work out
   which half of a list belongs to their site. */
.read-paths { display: grid; gap: var(--s-4); margin: var(--s-4) 0; }
.read-paths > div {
  padding: var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--panel);
}
.read-paths strong { display: block; margin-bottom: var(--s-2); }

/* What the building itself says about a limit, offered beside the box rather
   than typed into it. Taking it is one press, and the press saves the form as
   it stands with that one field replaced. */
.setup-measured {
  display: block;
  margin-top: var(--s-2);
  padding: var(--s-2) var(--s-3);
  border-left: 3px solid var(--money-mark);
  background: var(--money-soft);
  color: var(--ink);
  font-size: 0.9em;
}
.setup-take {
  margin-left: var(--s-2);
  padding: 0 var(--s-2);
  border: 1px solid var(--money-mark);
  border-radius: var(--r-sm);
  background: var(--panel);
  color: var(--money);
  font: inherit;
  font-size: 0.95em;
  cursor: pointer;
}
.setup-take:hover { background: var(--money-soft); }
.read-paths p { margin: 0 0 var(--s-2); }
@media (min-width: 60rem) { .read-paths { grid-template-columns: 1fr 1fr; } }

/* The role visual is a written decision aid first. Each mark has labels and
   reading guidance so it can be understood without color, hover, or a legend. */
.executive-role-visual {
  display: grid;
  gap: var(--s-3);
  margin: var(--s-4) 0;
  padding: var(--s-4);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--panel-muted);
}
.executive-role-visual header,
.executive-role-visual h3,
.executive-role-visual h4,
.executive-role-visual p { margin: 0; }
.executive-role-visual-question { color: var(--ink); font-weight: 600; }
.executive-role-visual-mark {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-2);
}
.executive-role-visual-mark > div,
.executive-role-visual-mark li,
.executive-role-visual-mark dl > div {
  display: grid;
  gap: var(--s-1);
  padding: var(--s-3);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--panel);
}
.executive-role-visual-mark span,
.executive-role-visual-mark dt { color: var(--muted); font-size: var(--t-small); }
.executive-role-visual-mark strong,
.executive-role-visual-mark dd { margin: 0; overflow-wrap: anywhere; }
.executive-role-visual-mark small { grid-column: 1 / -1; color: var(--muted); }
.executive-role-visual-coo { display: grid; grid-template-columns: 1fr; }
.executive-role-visual-coo ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-2); margin: 0; padding: 0; list-style: none; }
.executive-role-visual-coo p,
.executive-role-visual-cio p { color: var(--muted); }
.executive-role-visual-cio { grid-template-columns: 1fr; }
.executive-role-visual-cio dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-2); margin: 0; }
.executive-role-visual-guide { display: grid; gap: var(--s-1); padding-top: var(--s-3); border-top: 1px solid var(--line); }
.visual-recovery { display: grid; gap: var(--s-1); padding: var(--s-3); border-left: 4px solid var(--accent); background: var(--panel); }
.visual-recovery p { color: var(--muted); }
.visual-recovery a,
.executive-role-visual nav a { width: fit-content; color: var(--accent); font-weight: 700; }
.executive-role-visual a:focus-visible { outline: 3px solid var(--now-mark); outline-offset: 3px; }
@media (max-width: 40rem) {
  .executive-role-visual { padding: var(--s-3); }
  .executive-role-visual-mark,
  .executive-role-visual-coo ol,
  .executive-role-visual-cio dl { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .executive-role-visual,
  .executive-role-visual * { transition: none; animation: none; }
}

/* How a platform is switched on, folded away until somebody needs it: the
   people who need these steps are doing them at the BMS, and everybody else is
   reading the screen above them. */
.bms-enablement {
  margin-top: var(--s-3);
  padding: var(--s-3);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}
.bms-enablement summary { cursor: pointer; font-weight: 600; }
.bms-enablement ol,
.bms-enablement ul { margin: var(--s-3) 0 0; padding-left: var(--s-4); }
.bms-enablement li { margin-bottom: var(--s-2); }
.bms-enablement pre {
  overflow-x: auto;
  padding: var(--s-3);
  border-radius: var(--r-sm);
  background: var(--surface-2, var(--surface));
}

/* A runbook reads from the clock down. The time is fixed in a narrow first
   column so an operator can scan the next move without searching through the
   explanation. */
.daily-runbook {
  margin: var(--s-4) 0;
  padding: var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--panel);
}
.daily-runbook h3 { margin: 0 0 var(--s-3); }
.daily-runbook ol { display: grid; gap: var(--s-3); margin: 0; padding: 0; list-style: none; }
.daily-runbook li { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: var(--s-3); align-items: start; }
.daily-runbook time { color: var(--accent); font-weight: 700; white-space: nowrap; }
.daily-runbook p { margin: var(--s-1) 0 0; color: var(--muted); }
.daily-runbook-label { color: var(--ink); font-weight: 600; }
@media (max-width: 40rem) {
  .daily-runbook li { grid-template-columns: 1fr; gap: var(--s-1); }
}

/* Executive intelligence keeps the question, evidence, and next route close
   together. The detailed operational record remains at the named link. */
.executive-change-brief ol,
.executive-decision-register-list,
.executive-evidence-acquisition-grid,
.executive-venue-intelligence-grid,
.executive-board-meeting ol {
  display: grid;
  gap: var(--s-3);
  margin: var(--s-3) 0 0;
  padding: 0;
  list-style: none;
}
.executive-change-brief li,
.executive-decision-register-list article,
.executive-escalation-lane article,
.executive-evidence-acquisition-card,
.executive-venue-intelligence-grid article,
.executive-board-meeting li {
  min-width: 0;
  padding: var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--panel);
}
.executive-change-brief li,
.executive-escalation-lane article,
.executive-board-meeting li {
  display: grid;
  gap: var(--s-2);
}
.executive-change-brief li > div,
.executive-decision-register-list article,
.executive-board-meeting li {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(15rem, 1fr) auto;
  gap: var(--s-3);
  align-items: start;
}
.executive-change-brief strong,
.executive-decision-register-list h3,
.executive-escalation-lane h3,
.executive-venue-intelligence-grid h3,
.executive-board-meeting strong { color: var(--ink); }
.executive-change-brief span,
.executive-decision-register-list dt,
.executive-evidence-acquisition-card dt,
.executive-board-meeting span {
  color: var(--muted);
  font-size: var(--t-small);
}
.executive-change-brief p,
.executive-decision-register-list p,
.executive-escalation-lane p,
.executive-evidence-acquisition-card p,
.executive-venue-intelligence-grid p,
.executive-board-meeting p { margin: var(--s-1) 0 0; }
.executive-decision-register-list dl,
.executive-evidence-acquisition-card dl { display: grid; gap: var(--s-2); margin: 0; }
.executive-decision-register-list dl > div,
.executive-evidence-acquisition-card dl > div { display: grid; gap: 2px; }
.executive-decision-register-list dd,
.executive-evidence-acquisition-card dd { margin: 0; overflow-wrap: anywhere; }
.executive-decision-register a,
.executive-change-brief a,
.executive-escalation-lane a,
.executive-evidence-acquisition-card a,
.executive-venue-intelligence-grid a,
.executive-board-meeting a { width: fit-content; color: var(--accent); font-weight: 700; }
.executive-decision-register a:focus-visible,
.executive-change-brief a:focus-visible,
.executive-escalation-lane a:focus-visible,
.executive-evidence-acquisition-card a:focus-visible,
.executive-venue-intelligence-grid a:focus-visible,
.executive-board-meeting a:focus-visible { outline: 3px solid var(--now-mark); outline-offset: 3px; }
.executive-evidence-acquisition-grid,
.executive-venue-intelligence-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.executive-evidence-acquisition-status { display: flex; justify-content: space-between; gap: var(--s-2); margin-bottom: var(--s-3); }
.executive-evidence-acquisition-status span { color: var(--accent); font-size: var(--t-small); font-weight: 700; }
.executive-board-meeting > .spine-lede { max-width: 68ch; }
@media (max-width: 40rem) {
  .executive-change-brief li > div,
  .executive-decision-register-list article,
  .executive-board-meeting li,
  .executive-evidence-acquisition-grid,
  .executive-venue-intelligence-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .executive-change-brief *,
  .executive-decision-register *,
  .executive-escalation-lane *,
  .executive-evidence-acquisition *,
  .executive-venue-intelligence *,
  .executive-board-meeting * { transition: none; animation: none; }
}
@media print {
  .executive-board-meeting { break-inside: avoid; }
  .executive-board-meeting a { color: var(--ink); text-decoration: none; }
}

/* The source queue is deliberately short. Its detailed connector form remains
   below, so this answers the next choice without duplicating every field. */
.decision-enablement-list {
  display: grid;
  gap: var(--s-3);
  margin: var(--s-4) 0 0;
  padding: 0;
  list-style: none;
}
.decision-enablement-list li {
  display: grid;
  gap: var(--s-1);
  padding: var(--s-3);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--panel);
}
.decision-enablement-list li > div { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; }
.decision-enablement-list p,
.decision-enablement-list small { margin: 0; }
.decision-enablement-list small { color: var(--muted); }
.decision-enablement-list a { width: fit-content; margin-top: var(--s-1); }

/* Setup must show the drawing the installer is about to accept without turning
   a confirmation screen into a full-size operating canvas. */
.venue-profile-preview {
  width: min(100%, 34rem);
  margin: var(--s-3) 0;
  padding: var(--s-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--panel);
}
.venue-profile-preview svg {
  display: block;
  width: 100%;
  max-height: 18rem;
  height: auto;
}
.venue-profile-preview-site { fill: #e7eef0; stroke: #b9c8cf; stroke-width: 3; }
.venue-profile-preview-mass { fill: #f8fafb; fill-opacity: 0.52; stroke: #294d68; stroke-width: 2.2; }
.venue-profile-preview-area { fill: #b7d8c9; stroke: #326c61; stroke-width: 0.9; }
.venue-profile-preview figcaption {
  margin: var(--s-2) 0 0;
  color: var(--muted);
  font-size: var(--t-small);
}
