/* ONE VISUAL LANGUAGE for the whole recovered product (§16).
 *
 * Every cockpit draws from this file; none styles itself. The priority order the
 * mission sets is followed literally: information hierarchy, then decision
 * clarity, then interaction consistency, then responsiveness, then polish. There
 * is no decoration here that does not carry meaning.
 *
 * TWO RULES THAT ARE NOT NEGOTIABLE:
 *
 *  1. NO STATE IS CARRIED BY COLOUR ALONE. Every indicator renders a word and a
 *     marker glyph as well as a tint, so it survives greyscale, colour-blindness
 *     and a screen reader. Orchestra tints the cell background and stops there
 *     (`x-grid-cell-warn`, `capacity-noavail-color`); Alpha deliberately does
 *     not copy that.
 *  2. DENSE GRIDS MAY SCROLL HORIZONTALLY, deliberately (§17). A load plan is a
 *     wide table and pretending otherwise produces an unusable one. The scroll
 *     is explicit, the row header is sticky, and navigation never scrolls with it.
 */

:root {
  color-scheme: light dark;

  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-sunken: #eef0f4;
  --border: #d7dbe2;
  --border-strong: #b9c0cc;
  --text: #1a1f29;
  --text-muted: #5a6475;
  --text-faint: #8891a1;
  --accent: #2b5fd9;
  --accent-contrast: #ffffff;

  /* Status tints. Each is paired with a word and a glyph in the markup. */
  --ok-bg: #e8f6ec;
  --ok-fg: #1c6b36;
  --watch-bg: #fdf3e0;
  --watch-fg: #8a5a00;
  --alert-bg: #fdeaea;
  --alert-fg: #a3231f;
  --unknown-bg: #eef0f4;
  --unknown-fg: #5a6475;

  --radius: 7px;
  --gutter: 16px;
  --row-h: 34px;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14171c;
    --surface: #1b1f26;
    --surface-sunken: #22272f;
    --border: #2f3641;
    --border-strong: #414a58;
    --text: #e7eaf0;
    --text-muted: #a3acbb;
    --text-faint: #7d8697;
    --accent: #7fa5ff;
    --accent-contrast: #11151b;
    --ok-bg: #16331f;
    --ok-fg: #86dba2;
    --watch-bg: #332a14;
    --watch-fg: #e8bd6a;
    --alert-bg: #3a1d1d;
    --alert-fg: #f0908c;
    --unknown-bg: #262c35;
    --unknown-fg: #a3acbb;
  }
}

:root[data-theme="dark"] {
  --bg: #14171c;
  --surface: #1b1f26;
  --surface-sunken: #22272f;
  --border: #2f3641;
  --border-strong: #414a58;
  --text: #e7eaf0;
  --text-muted: #a3acbb;
  --text-faint: #7d8697;
  --accent: #7fa5ff;
  --accent-contrast: #11151b;
  --ok-bg: #16331f;
  --ok-fg: #86dba2;
  --watch-bg: #332a14;
  --watch-fg: #e8bd6a;
  --alert-bg: #3a1d1d;
  --alert-fg: #f0908c;
  --unknown-bg: #262c35;
  --unknown-fg: #a3acbb;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.5 var(--sans);
  -webkit-text-size-adjust: 100%;
}

/* --------------------------------------------------------------- the shell */

.shell { display: flex; min-height: 100vh; }

.rail {
  width: 232px;
  flex: 0 0 232px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rail h1 {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 4px 8px 10px;
}

.rail .who {
  margin: 0 8px 12px;
  font-size: 12px;
  color: var(--text-muted);
}

.rail a,
.rail button.navlink {
  display: block;
  width: 100%;
  text-align: left;
  padding: 7px 10px;
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  border: 1px solid transparent;
  background: none;
  font: inherit;
  cursor: pointer;
}

.rail a:hover,
.rail button.navlink:hover { background: var(--surface-sunken); }
.rail a[aria-current="page"] { background: var(--accent); color: var(--accent-contrast); }
.rail a:focus-visible,
.rail button:focus-visible,
main :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* A workspace the customer did not buy is REMOVED, never shown disabled - so
 * there is deliberately no "absent" style here. One they may not reach is
 * shown and marked. */
.rail a.forbidden { color: var(--text-faint); }
.rail a.forbidden::after {
  content: " · no access";
  font-size: 11px;
}

.rail .group {
  margin-top: 14px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: 0 10px;
}

main {
  flex: 1 1 auto;
  min-width: 0;
  padding: 20px var(--gutter) 64px;
}

.page-head { margin-bottom: 18px; }
.page-head h2 { margin: 0 0 4px; font-size: 22px; line-height: 1.25; }
.page-head .question {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  max-width: 68ch;
}

/* ---------------------------------------------------------------- surfaces */

.cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  min-width: 0;
}

.card > h3 {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.card.wide { grid-column: 1 / -1; }

/* A figure: large, with its unit, and with an explicit unknown state. */
.figure { display: flex; align-items: baseline; gap: 6px; }
.figure .n { font-size: 26px; font-weight: 600; font-variant-numeric: tabular-nums; }
.figure .u { font-size: 12px; color: var(--text-muted); }
.figure.unknown .n { font-size: 15px; font-weight: 500; color: var(--text-muted); }
.figure .why { display: block; font-size: 11px; color: var(--text-faint); margin-top: 3px; max-width: 42ch; }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 13px; }
.kv dt { color: var(--text-muted); }
.kv dd { margin: 0; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------- indicators (never colour) */

.ind {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 1px 8px 1px 6px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.ind .glyph { font-family: var(--mono); font-weight: 700; }
.ind.ok { background: var(--ok-bg); color: var(--ok-fg); }
.ind.watch { background: var(--watch-bg); color: var(--watch-fg); }
.ind.alert { background: var(--alert-bg); color: var(--alert-fg); }
.ind.unknown { background: var(--unknown-bg); color: var(--unknown-fg); }

/* --------------------------------------------------------------- the grid */

/* A LoadPlan is intrinsically wide. The scroll is deliberate (§17), the row
 * header stays put, and the container is focusable so it can be scrolled with
 * the keyboard alone. */
.gridwrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.gridwrap:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

table.grid { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 13px; }
table.grid th, table.grid td { padding: 0 10px; height: var(--row-h); text-align: right; white-space: nowrap; }
table.grid th { font-weight: 600; color: var(--text-muted); background: var(--surface-sunken); position: sticky; top: 0; z-index: 2; }
table.grid th:first-child, table.grid td:first-child {
  text-align: left;
  position: sticky;
  left: 0;
  background: var(--surface);
  z-index: 1;
  min-width: 190px;
  border-right: 1px solid var(--border);
}
table.grid th:first-child { z-index: 3; background: var(--surface-sunken); }
table.grid tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--surface-sunken) 45%, var(--surface)); }
table.grid tbody tr:nth-child(even) td:first-child { background: color-mix(in srgb, var(--surface-sunken) 45%, var(--surface)); }
table.grid td.num { font-variant-numeric: tabular-nums; }
table.grid td.unknown { color: var(--text-faint); }
table.grid tfoot td { font-weight: 600; border-top: 2px solid var(--border-strong); background: var(--surface-sunken); }

/* A marked cell: tinted AND carrying a glyph, so the tint is never the only
 * signal. The glyph is real text, so it reads aloud and survives greyscale. */
td.mark-over { background: var(--alert-bg) !important; color: var(--alert-fg); }
td.mark-watch { background: var(--watch-bg) !important; color: var(--watch-fg); }
td .glyph { font-family: var(--mono); font-weight: 700; margin-left: 5px; }

[data-density="compact"] { --row-h: 27px; }
[data-density="compact"] table.grid { font-size: 12px; }

/* --------------------------------------------------------------- controls */

.bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin-bottom: 12px; }
.field { display: flex; flex-direction: column; gap: 3px; }
.field label { font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-faint); }

select, input[type="text"], input[type="month"] {
  font: inherit;
  padding: 5px 8px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  min-height: 32px;
}

button {
  font: inherit;
  padding: 6px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  min-height: 32px;
}
button:hover { background: var(--surface-sunken); }
button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); }
button[disabled] { opacity: 0.5; cursor: not-allowed; }

/* --------------------------------------------------- states, not blank space */

/* Four distinct emptinesses (§14). They look different because they MEAN
 * different things: one is a fact about the business, another about the viewer,
 * another about the commercial relationship. */
.state {
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  color: var(--text-muted);
  background: var(--surface);
}
.state strong { display: block; color: var(--text); margin-bottom: 4px; font-size: 15px; }
.state .hint { font-size: 12px; color: var(--text-faint); margin-top: 6px; }
.state.forbidden { border-style: solid; border-color: var(--border-strong); }
.state.unentitled { border-style: solid; background: var(--surface-sunken); }
.state.error { border-color: var(--alert-fg); color: var(--alert-fg); }

.loading { color: var(--text-muted); padding: 22px; }
.loading::after { content: "…"; }

/* ------------------------------------------------------------------ lists */

ul.plain { list-style: none; margin: 0; padding: 0; }
ul.plain li { padding: 6px 0; border-bottom: 1px solid var(--border); display: flex; gap: 8px; align-items: baseline; justify-content: space-between; }
ul.plain li:last-child { border-bottom: 0; }

/* The state diagram. Each state is a box; the ways out of it are indented
   under it, so the shape reads top-to-bottom without any drawing. */
ul.wf-diagram > li { display: block; padding: 10px 0; }
.wf-head { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.wf-head .meta { color: var(--text-faint); font-size: 12px; margin-left: auto; }
ul.wf-out { margin: 6px 0 0 18px; border-left: 2px solid var(--border); padding-left: 12px; }
ul.wf-out li { padding: 4px 0; }

/* The relation diagram (STU-068): two boxes and the line between them. The
   cardinality is a WORD on the line as well as a glyph, so the shape survives
   a missing stylesheet. */
.rel-graph { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.rel-box { border: 1px solid var(--border); border-radius: 6px; padding: 6px 10px; min-width: 110px; }
.rel-box .hint { font-size: 12px; color: var(--text-faint); }
.rel-link { display: flex; align-items: center; gap: 4px; font-family: var(--mono); }
.rel-card { font-family: var(--sans, inherit); font-size: 12px; color: var(--text-muted); white-space: nowrap; }
ul.plain .label { min-width: 0; overflow-wrap: anywhere; }
ul.plain .meta { color: var(--text-muted); font-size: 12px; white-space: nowrap; }
/* A row whose right-hand side carries a CONTROL (a pill and a button) wraps
   instead of pushing the button past the card's edge on a narrow screen. */
ul.plain .meta:has(button) { white-space: normal; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: flex-end; gap: 4px 6px; min-width: 0; }
ul.plain .meta:has(button) > .pill { white-space: nowrap; }

.why-list { margin: 10px 0 0; padding-left: 18px; font-size: 12px; color: var(--text-faint); }
.why-list li { margin: 2px 0; }

details.declared { margin-top: 14px; }
details.declared summary { cursor: pointer; font-size: 12px; color: var(--text-muted); }

.pill { display: inline-block; padding: 1px 7px; border-radius: 999px; background: var(--surface-sunken); color: var(--text-muted); font-size: 11px; }

/* A file chooser (§18): the browser's own control, bounded so it cannot force
 * the page to scroll sideways at 390px. `max-width`, not `overflow: hidden` -
 * the point is that the whole control stays usable, not that the overflow stops
 * being visible. */
input[type="file"] {
  font: inherit;
  font-size: 12px;
  max-width: 100%;
  min-width: 0;
}

/* ------------------------------------------------------------ responsive */

/* 1024px: the rail narrows to icons-and-labels but stays a rail, because the
 * personas are the primary navigation. */
@media (max-width: 1100px) {
  .rail { width: 180px; flex-basis: 180px; }
}

/* 390px: the rail becomes a horizontal strip above the content. Primary
 * actions and navigation must remain reachable (§17), so nothing is hidden
 * behind a hover or a drag. */
@media (max-width: 760px) {
  .shell { flex-direction: column; }
  .rail {
    width: auto;
    flex-basis: auto;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    flex-direction: row;
    overflow-x: auto;
    align-items: center;
    padding: 8px var(--gutter);
  }
  .rail h1, .rail .who, .rail .group { display: none; }
  .rail a, .rail button.navlink { width: auto; white-space: nowrap; }
  main { padding: 16px var(--gutter) 48px; }
  .cards { grid-template-columns: 1fr; }
  .page-head h2 { font-size: 19px; }
  table.grid th:first-child, table.grid td:first-child { min-width: 140px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* Visible only to assistive technology: used for the figures whose meaning is
 * otherwise carried by position in a dense grid. */
.sr {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Comparison sub-columns: the bucket is a parent header, the bases are its
 * children. The primary value stays visually dominant and the read-only
 * comparisons recede, so the relationship is obvious without a legend. */
table.grid th.bucket {
  text-align: center;
  border-left: 2px solid var(--border-strong);
}
table.grid th.sub {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-faint);
  text-transform: none;
  letter-spacing: 0;
}
table.grid th.sub.primary { color: var(--text); font-weight: 600; }
table.grid td.compare {
  color: var(--text-muted);
  background: color-mix(in srgb, var(--surface-sunken) 60%, transparent);
  font-size: 12px;
}
table.grid td.compare::before { content: ""; }

/* An invalid in-grid cell says so without relying on colour. */
input[aria-invalid="true"] {
  border-color: var(--alert-fg);
  outline: 2px solid var(--alert-bg);
}

/* A grid whose first column is a rank, not a name: the sticky name width would
 * leave a wide empty gutter beside a one-character heading. */
table.grid.narrow-head th:first-child,
table.grid.narrow-head td:first-child {
  min-width: 48px;
  text-align: right;
  padding-right: 14px;
}

/* ---------------------------------------------- horizontal overflow control
 *
 * §17 allows a DENSE GRID to scroll horizontally. It does not allow the PAGE
 * to. At 390px the cards were being clipped at the viewport edge because a wide
 * table inside a flex child propagates its intrinsic width outward unless the
 * child is explicitly allowed to shrink below its content.
 *
 * `min-width: 0` on every flex/grid child is what stops that propagation; the
 * `.gridwrap` then becomes the only thing that scrolls, which is the intent. */
/* NOT `overflow-x: hidden`: that does not fix an overflow, it CLIPS it, and
 * clipped content is worse than scrollable content because it is unreachable.
 * The cause is fixed instead, below. */
html, body { max-width: 100%; }
main { min-width: 0; max-width: 100%; }
.cards { min-width: 0; }
.card { min-width: 0; overflow-wrap: anywhere; }
.gridwrap {
  max-width: 100%;
  /* A scroll container still reports its CONTENT width up the tree, so a wide
   * grid was making documentElement 615px inside a 375px body — the page could
   * be dragged sideways even though every content box was correctly sized.
   * `contain: paint` stops descendants contributing to an ancestor's scroll
   * area, which is exactly the containment a scroll region should have. */
  contain: paint;
}

/* A definition list in a narrow card must wrap rather than force width. */
.kv { min-width: 0; }
.kv dd { overflow-wrap: anywhere; }

@media (max-width: 760px) {
  /* The control bar wraps instead of pushing the page wide. */
  .bar { width: 100%; }
  .bar > * { flex: 0 1 auto; min-width: 0; }
  .field { min-width: 0; }
  select, input[type="text"], input[type="month"] { max-width: 100%; }

  /* THE ACTUAL CAUSE. In a column flex container every child stretches to the
   * container, and the container is sized by its widest child — so the rail,
   * whose link row is intrinsically wide, was setting the page width and the
   * cards were being measured against THAT rather than the viewport. Pinning
   * both to the viewport makes the rail scroll inside itself, which is what its
   * own `overflow-x: auto` was always for. */
  .shell { width: 100%; max-width: 100vw; }
  .rail { width: 100%; max-width: 100vw; min-width: 0; }
  main { width: 100%; max-width: 100vw; }
  ul.plain li { flex-wrap: wrap; }
}

/* THE PROJECT REVIEW'S EVIDENCE PANELS.
   Named after the source's own JSP classes (`ind-block`, `ind-value`,
   `ind-label` in orchestra/project/closing/data.jsp), which draw a big value
   with a label under it. The point of the size is that the figure is what the
   person is looking at while they answer the question beneath it. */
.indrow { display: flex; flex-wrap: wrap; gap: 10px; }
.ind-block {
  min-width: 140px; flex: 0 1 auto; padding: 10px 14px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
  text-align: center;
}
.ind-value { font-size: 22px; font-weight: 600; line-height: 1.2; }
/* An UNKNOWN figure is a dash, never a zero, and carries its reason. */
.ind-value.unknown { color: var(--text-muted); font-weight: 500; }
.ind-label { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.ind-block .hint { font-size: 11px; color: var(--text-faint); margin-top: 4px; max-width: 24ch; }

@media (max-width: 560px) {
  /* At phone width the panels stack rather than shrinking below legibility. */
  .ind-block { flex: 1 1 100%; min-width: 0; }
}

/* THE LOADPLAN WINDOW STEPPER.
   `.field` stacks a label over its control, so the three stepping controls need
   a row of their own — putting them straight into the field stacked them
   vertically, which was found by looking at the rendered page rather than at the
   markup. */
.stepper { display: flex; align-items: center; gap: 4px; }
.stepper input { text-align: center; }
.stepper button { padding: 4px 8px; line-height: 1; }

/* ------------------------------------------------- dashboard tile slices
 *
 * A grouped tile is drawn as labelled bars with the number written beside each
 * one, NOT as a pie. The source's most-used chart is a pie and it is the least
 * honest one to approximate here: a pie says its slices are a whole, and a tile
 * measuring a selector carries no such guarantee. A bar plus its figure claims
 * exactly what is known — relative size, and the value. */
.slices { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.slice { display: flex; align-items: center; gap: 8px; min-width: 0; }
.slice-label { flex: 0 0 40%; min-width: 0; overflow-wrap: anywhere; font-size: 13px; }
.slice-bar { flex: 1 1 auto; min-width: 0; height: 10px; background: var(--border); border-radius: 5px; overflow: hidden; }
.slice-fill { height: 100%; background: var(--accent, #2d5bd7); border-radius: 5px; }
.slice-value { flex: 0 0 auto; font-variant-numeric: tabular-nums; font-size: 13px; }

@media (max-width: 760px) {
  /* The label stops competing with the bar for a narrow row. */
  .slice { flex-wrap: wrap; }
  .slice-label { flex: 1 1 100%; }
}

/* The plan over time (PRD-051): a read-only timeline, not a Gantt editor.
 *
 * Bars are positioned with inline percentages and carry `aria-hidden`, because
 * the DATES BESIDE THEM are the fact and the bar is the picture - the same rule
 * this product applies to colour. No chart library: adding a rendering
 * dependency to a no-build-step product would be a bigger decision than this
 * view is worth. */
.timeline { display: flex; flex-direction: column; gap: 4px; }
.tl-row { display: grid; grid-template-columns: minmax(180px, 38%) 1fr; gap: 10px; align-items: center; }
.tl-label { font-size: 13px; overflow-wrap: anywhere; }
.tl-track {
  position: relative; height: 14px; border-radius: var(--radius);
  background: var(--surface-sunken); border: 1px solid var(--border);
}
.tl-bar {
  position: absolute; top: 2px; bottom: 2px; min-width: 2px;
  background: var(--accent, #4a6fa5); border-radius: var(--radius);
}
/* A task with ONE date is a POINT, not a bar to the edge of the window: a
 * duration nobody planned must not be drawn. */
.tl-bar.point { background: var(--text-muted); width: 2px; }

@media (max-width: 560px) {
  /* At phone width the bars stack under their labels rather than being
   * squeezed into an unreadable sliver. */
  .tl-row { grid-template-columns: 1fr; gap: 2px; }
}

/* ------------------------------------------- access rights on timesheets */

/* One right per line: who, and what can be done about it. The two halves wrap
 * under each other on a narrow screen instead of pushing the page sideways. */
.access-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-top: 1px solid var(--border);
}
.access-row:first-of-type { border-top: 0; }
.access-list { margin-top: 12px; }
.access-who { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 180px; }
.access-row .bar { flex: 0 1 auto; }
.card .bar select { max-width: 100%; }

/* THE STEPS OF A PLAN (decision #319, point 8): what changes, then how it will be
   handled. The two sit side by side where there is room and stack where there is
   not; a badge wraps inside the card rather than running past its edge. */
.plan-steps ul { list-style: none; margin: 6px 0 0; padding: 0; }
.plan-steps li { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 6px 16px; padding: 8px 0; border-top: 1px solid var(--border); }
.plan-steps li:first-child { border-top: 0; }
.plan-step-what { flex: 1 1 220px; min-width: 0; }
.plan-step-why { font-size: 12px; color: var(--text-faint); overflow-wrap: anywhere; }
.plan-step-how { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; max-width: 100%; }
.plan-step-how .pill { white-space: normal; max-width: 100%; }
.plan-steps details code { overflow-wrap: anywhere; }
