/* My Preparation (2026-09-04): the private saved-work index and detail.
   Page-scoped `.mp-*` rules only; buttons reuse `.rf-btn` (2px accent border,
   44px, card-fx glow via `cardfx-pop`) so THE BUTTON LAW holds without a
   second button style. Both themes come from the shared tokens. */
.mp-main { padding-top: var(--space-5); padding-bottom: var(--space-6); }
.mp-card { max-width: 1040px; margin: 0 auto; }
.mp-h1 { margin: 0 0 var(--space-2); font-family: var(--font-serif); font-size: var(--text-2xl, 1.9rem); line-height: 1.2; color: var(--color-text-strong, var(--color-text)); overflow-wrap: anywhere; }
.mp-h2 { margin: 0 0 var(--space-2); font-size: var(--text-lg); line-height: 1.25; color: var(--color-text-strong, var(--color-text)); }
.mp-lead { margin: 0 0 var(--space-4); font-size: var(--text-body); line-height: 1.55; color: var(--color-text); max-width: var(--prose-measure); margin-inline: auto; }
.mp-note { margin: 0 0 var(--space-3); font-size: var(--text-sm); line-height: 1.5; color: var(--color-text-muted); }
.mp-status { margin: 0 0 var(--space-3); font-size: var(--text-sm); line-height: 1.5; color: var(--color-text); min-height: 1.2em; }
.mp-status.is-error { color: var(--color-danger, #a12626); font-weight: 600; }
.mp-status.is-ok { color: var(--color-success, #1f6b3a); font-weight: 600; }
.mp-state { text-align: center; padding: var(--space-5) 0; }
.mp-state .mp-lead { margin-bottom: var(--space-3); }
.mp-state-actions, .mp-top-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: center; margin: 0 0 var(--space-5); }
.mp-top-actions { justify-content: flex-start; }

/* Index cards. The card is not itself a link; its two actions are. */
.mp-claims { display: grid; gap: var(--space-3); margin-bottom: var(--space-5); }
.mp-claim { border: 2px solid var(--color-accent); border-radius: var(--radius-md); background: var(--color-surface); padding: var(--space-4); min-width: 0; }
.mp-claim h3 { margin: 0 0 var(--space-1); font-size: var(--text-md); line-height: 1.3; overflow-wrap: anywhere; }
.mp-claim-situation, .mp-claim-conditions, .mp-claim-count, .mp-claim-phase { margin: 0 0 var(--space-1); font-size: var(--text-sm); line-height: 1.5; color: var(--color-text-muted); overflow-wrap: anywhere; }
.mp-claim-conditions { color: var(--color-text); }
.mp-claim-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }
.mp-claim-actions .rf-btn { flex: 1 1 200px; }
.mp-empty { padding: var(--space-4); border: 1px dashed var(--color-border); border-radius: var(--radius-md); font-size: var(--text-sm); color: var(--color-text-muted); }
.mp-guidance-list { display: grid; gap: var(--space-2); }
.mp-guidance-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2); padding: var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); }
.mp-guidance-row strong { overflow-wrap: anywhere; }
.mp-guidance-row .rf-btn { min-width: 140px; }

/* Detail head: the packet action is visible without scrolling at 375x812. */
.mp-back { margin: 0 0 var(--space-3); font-size: var(--text-sm); }
.mp-back a { color: var(--color-primary); font-weight: 600; }
.mp-head { margin-bottom: var(--space-3); }
.mp-situation { margin: 0 0 var(--space-1); font-size: var(--text-sm); color: var(--color-text-muted); }
.mp-conditions { margin: 0; font-size: var(--text-sm); line-height: 1.5; color: var(--color-text); overflow-wrap: anywhere; }
.mp-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--space-2); margin-bottom: var(--space-4); }
.mp-actions .rf-btn { width: 100%; }

/* The six claim sections (Phase 1, P1-2, 2026-09-08). A row of real buttons,
   not a tab widget: the audience is older veterans, and a plain labelled
   button that stays put is easier to trust than an arrow-key tablist. Each
   carries the 2px accent border and the cursor glow THE BUTTON LAW requires
   (cardfx-pop in the markup; this page already loads card-fx). At 44px they
   clear the touch-target floor, and on a phone they wrap to a grid rather
   than scrolling sideways, because a control you have to swipe to discover is
   a control an older veteran will not find. */
/* ONE TAB PER SAVED CLAIM (2026-09-10). Above the section row, and visually
   ahead of it: the claim is chosen first, the section second. Hidden entirely
   with fewer than two claims, which is the normal case. The current claim is
   a <span>, not a link, and is stated by weight and an underline as well as
   colour (WCAG 1.4.1), the same way the open section is. */
.mp-claims-tabs { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0 0 var(--space-3); padding: 0 0 var(--space-3); border-bottom: 1px solid var(--color-border); }
.mp-claim-tab-label { font-weight: 700; }
/* The claim's own checklist words, under its name. The server's sentence, not
   a percentage and not a score; an unreadable checklist says so here. */
.mp-claim-tab-chk { display: block; font-weight: 400; font-size: .82rem; line-height: 1.35; color: var(--color-text-muted); }
.mp-claim-tab-on .mp-claim-tab-chk { color: var(--color-on-primary); }
.mp-claim-tab {
  display: inline-flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: .1rem; min-height: 44px; padding: .5rem 1rem;
  font-size: .95rem; font-weight: 600; text-decoration: none;
  border: 2px solid var(--color-accent); border-radius: var(--radius-sm);
  background: var(--color-surface); color: var(--color-primary);
  max-width: 22rem; overflow-wrap: anywhere;
}
a.mp-claim-tab:hover, a.mp-claim-tab:focus-visible { border-color: var(--color-primary); text-decoration: underline; text-underline-offset: 3px; }
.mp-claim-tab-on {
  background: var(--color-primary); color: var(--color-on-primary);
  border-color: var(--color-primary); text-decoration: underline; text-underline-offset: 3px; cursor: default;
}
@media (max-width: 640px) {
  .mp-claims-tabs { display: grid; grid-template-columns: 1fr; }
  .mp-claim-tab { max-width: none; }
}
/* Steps you have finished (2026-09-10). The veteran's own record on this claim,
   newest first, kept when the next step changes. Read-only, and never styled
   as a score: it says what they did, not how ready the claim is. */
.mp-next-done { margin: 1rem 0 0; padding: .85rem 1rem; border-top: 1px solid var(--color-border); }
.mp-next-done-h { margin: 0 0 .5rem; font-size: 1rem; color: var(--color-text-strong, var(--color-text)); }
.mp-next-done-list { margin: 0 0 .5rem; padding-left: 1.3em; display: flex; flex-direction: column; gap: .7rem; }
.mp-next-done-text { margin: 0 0 .25rem; font-weight: 600; color: var(--color-text); }
.mp-next-done-pages { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .2rem; }
.mp-next-done-pages li { font-size: .9rem; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.mp-next-done-pages li.is-done .mp-next-item-link { text-decoration: line-through; color: var(--color-text-muted); }

/* The pages ticked for a next step (2026-09-10): each opens, each is marked
   done on its own. A done row is stated by a strike AND the button's own label
   flipping to "Not done", never by colour alone (WCAG 1.4.1). */
.mp-next-picks { margin: .75rem 0; padding: .75rem .9rem; border: 1px solid var(--color-border); border-radius: var(--radius-sm); }
.mp-next-picks legend { font-weight: 700; font-size: .95rem; padding: 0 .3rem; }
.mp-next-picks-list { list-style: none; margin: .5rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.mp-next-pick { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; min-height: 44px; }
.mp-next-pick input[type="checkbox"] { width: 22px; height: 22px; flex: none; }
.mp-next-pick label { font-size: .95rem; }
.mp-next-pick-open { color: var(--color-primary); font-weight: 600; font-size: .88rem; min-height: 44px; display: inline-flex; align-items: center; }
.mp-next-items { list-style: none; margin: .5rem 0 .4rem; padding: 0; display: flex; flex-direction: column; gap: .45rem; }
.mp-next-item { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.mp-next-item-link { color: var(--color-primary); font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; overflow-wrap: anywhere; }
.mp-next-item.is-done .mp-next-item-link { text-decoration: line-through; color: var(--color-text-muted); }

/* Common next steps (2026-09-10). A catalogue in a fixed order, drawn inside
   the next-step block. Numbered, because the order is the point; never ticked,
   scored or greyed out, because nothing here is checked against what this
   veteran has done. */
.mp-cns { margin: 0; }
.mp-cns-h { margin: 0 0 .35rem; font-size: 1.05rem; color: var(--color-text-strong, var(--color-text)); }
.mp-cns-list { margin: .9rem 0 1rem; padding-left: 1.4em; display: flex; flex-direction: column; gap: 1rem; }
.mp-cns-item { padding-left: .2rem; }
.mp-cns-t { margin: 0 0 .2rem; font-size: 1rem; font-weight: 700; color: var(--color-text); }
.mp-cns-n { margin: 0 0 .5rem; font-size: .88rem; line-height: 1.5; color: var(--color-text-muted); }
.mp-cns-links { list-style: none; margin: 0 0 .6rem; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem .5rem; }
.mp-cns-link {
  display: inline-flex; align-items: center; min-height: 44px; padding: .45rem .85rem;
  border: 2px solid var(--color-accent); border-radius: var(--radius-sm);
  background: var(--color-surface); color: var(--color-primary);
  font-size: .9rem; font-weight: 600; text-decoration: none; overflow-wrap: anywhere;
}
.mp-cns-link:hover, .mp-cns-link:focus-visible { border-color: var(--color-primary); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) {
  .mp-cns-links { flex-direction: column; }
  .mp-cns-link { width: 100%; }
}
.mp-views { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0 0 var(--space-4); }
.mp-view-btn {
  min-height: 44px; padding: .5rem 1rem; font-size: .95rem; font-weight: 600;
  border: 2px solid var(--color-accent); border-radius: var(--radius-sm);
  background: var(--color-surface); color: var(--color-text); cursor: pointer;
}
.mp-view-btn:hover { border-color: var(--color-primary); }
/* The open section is stated two ways, colour AND weight plus an underline,
   so it does not rest on colour alone (WCAG 1.4.1). */
.mp-view-btn[aria-current="true"], .mp-view-btn.mp-view-on {
  background: var(--color-primary); color: var(--color-on-primary);
  border-color: var(--color-primary); text-decoration: underline; text-underline-offset: 3px;
}
@media (max-width: 640px) {
  .mp-views { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mp-view-btn { width: 100%; }
}

/* My next step */
.mp-next { margin-bottom: var(--space-4); padding: var(--space-4); border: 1px solid var(--color-accent); border-radius: var(--radius-md); background: var(--color-surface); }
.mp-next-text { margin: 0 0 var(--space-2); font-size: var(--text-body); line-height: 1.5; overflow-wrap: anywhere; }
.mp-next-text.is-done { text-decoration: line-through; color: var(--color-text-muted); }
.mp-next-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.mp-next-form { display: grid; gap: var(--space-2); }
.mp-next-form label { display: grid; gap: 4px; font-size: var(--text-sm); font-weight: 600; }
.mp-next-form input, .mp-next-form select, .mp-filter select { min-height: 44px; font-size: 16px; padding: var(--space-2); border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-bg); color: var(--color-text); }

/* Connection pathways (2026-09-06): one card per condition instance, the
   summary of chosen paths, and the per-condition form. Not clickable cards,
   so a 1px accent border like .mp-next; every action is a .rf-btn. */
.mp-paths { margin-bottom: var(--space-4); padding: var(--space-4); border: 1px solid var(--color-accent); border-radius: var(--radius-md); background: var(--color-surface); }
.mp-paths-footer { margin: var(--space-2) 0 0; }
.mp-path-card { margin: 0 0 var(--space-3); padding: var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-bg); }
.mp-path-card:last-of-type { margin-bottom: 0; }
.mp-path-h { margin: 0 0 2px; font-size: var(--text-body); line-height: 1.3; overflow-wrap: anywhere; }
.mp-path-rel { margin: 0 0 var(--space-2); font-size: var(--text-sm); color: var(--color-text-muted); }
.mp-path-lead { margin: 0 0 4px; font-size: var(--text-sm); font-weight: 700; }
.mp-path-list { margin: 0 0 var(--space-2); padding-left: 1.2em; font-size: var(--text-sm); line-height: 1.5; }
.mp-path-list li { margin: 0 0 3px; overflow-wrap: anywhere; }
.mp-path-form { display: grid; gap: var(--space-2); }
.mp-path-fs { margin: 0; padding: 0; border: 0; min-width: 0; }
.mp-path-legend { padding: 0; font-size: var(--text-body); font-weight: 700; }
.mp-path-checks { display: grid; gap: 2px; }
.mp-path-check { display: flex; align-items: flex-start; gap: var(--space-2); min-height: 44px; padding: 6px 4px; font-size: var(--text-sm); line-height: 1.45; cursor: pointer; }
.mp-path-check input { width: 22px; height: 22px; flex: 0 0 22px; margin: 2px 0 0; accent-color: var(--color-primary); }
.mp-path-check span { flex: 1 1 auto; min-width: 0; }
.mp-path-check:focus-within { outline: 2px solid var(--color-primary); outline-offset: 2px; border-radius: var(--radius-sm); }
.mp-path-guide { flex: 0 0 auto; color: var(--color-primary); font-weight: 600; text-decoration: underline; min-height: 32px; display: inline-flex; align-items: center; }
.mp-path-sub { display: grid; gap: var(--space-3); margin-top: var(--space-2); }
.mp-path-block { padding: var(--space-3); border-left: 3px solid var(--color-accent); background: var(--color-surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.mp-path-block-h { margin: 0 0 var(--space-2); font-size: var(--text-sm); font-weight: 700; }
.mp-path-qs { display: grid; gap: var(--space-2); }
.mp-path-q { display: grid; gap: 4px; font-size: var(--text-sm); }
.mp-path-q-label { font-weight: 600; }
.mp-path-q-hint { font-weight: 400; color: var(--color-text-muted); }
.mp-path-q textarea, .mp-path-q select { min-height: 44px; font-size: 16px; padding: var(--space-2); border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-bg); color: var(--color-text); width: 100%; box-sizing: border-box; font-family: inherit; }
.mp-path-windows { margin: 0 0 var(--space-2); padding-left: 1.2em; font-size: var(--text-sm); line-height: 1.5; }
.mp-path-chronic, .mp-path-dev { margin-top: var(--space-2); padding-top: var(--space-2); border-top: 1px solid var(--color-border); }

/* My preparation checklist (2026-09-06, Phase 0). One panel above the
   connection paths: eight task rows, each with a mark, the words Done / Not
   done / Not needed, what the status is based on, the next step, and a
   compact status disclosure. Not a clickable card, so a 1px accent border
   like .mp-next and .mp-paths; every action is a .rf-btn. Never a score
   colour bar, never a progress meter. */
.mp-checklist { margin-bottom: var(--space-4); padding: var(--space-4); border: 1px solid var(--color-accent); border-radius: var(--radius-md); background: var(--color-surface); }
.pc-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: var(--space-3); padding-bottom: var(--space-3); border-bottom: 1px solid var(--color-border); }
.pc-h2 { margin: 0 0 4px; font-size: var(--text-lg); line-height: 1.25; color: var(--color-text-strong, var(--color-text)); }
.pc-intro { margin: 0; font-size: var(--text-sm); line-height: 1.5; color: var(--color-text-muted); }
.pc-total-wrap { text-align: right; }
.pc-total { margin: 0; font-size: var(--text-md); font-weight: 700; white-space: nowrap; color: var(--color-text-strong, var(--color-text)); }
.pc-total-na { margin: 2px 0 0; font-size: var(--text-sm); color: var(--color-text-muted); }
.pc-unavailable { margin: var(--space-3) 0; font-size: var(--text-sm); line-height: 1.5; color: var(--color-text); }
.pc-list { display: grid; }
.pc-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) 190px; gap: var(--space-3); padding: var(--space-3) 0; border-bottom: 1px solid var(--color-border); }
.pc-row:last-child { border-bottom: 0; }
.pc-icon { font-size: 1.5rem; line-height: 1.25; font-weight: 700; color: var(--color-text-muted); }
.pc-row[data-pc-status="complete"] .pc-icon, .pc-row[data-pc-status="complete"] .pc-state { color: var(--color-success, #1f6b3a); }
.pc-row[data-pc-status="incomplete"] .pc-icon { color: var(--color-danger, #a12626); }
.pc-body { min-width: 0; }
.pc-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px var(--space-3); }
.pc-title h3 { margin: 0; font-size: var(--text-body); line-height: 1.3; overflow-wrap: anywhere; }
.pc-state { font-size: var(--text-sm); font-weight: 700; }
.pc-changed { padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--color-accent) 22%, transparent); color: var(--color-text); font-size: var(--text-xs, .78rem); font-weight: 700; }
.pc-detail { margin: 6px 0 0; font-size: var(--text-sm); line-height: 1.5; color: var(--color-text); overflow-wrap: anywhere; }
.pc-note { margin-top: 4px; font-size: var(--text-sm); }
.pc-note summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; color: var(--color-primary); font-weight: 600; }
.pc-note p { margin: 0 0 var(--space-2); font-size: var(--text-sm); line-height: 1.5; color: var(--color-text-muted); }
.pc-children { list-style: none; margin: var(--space-2) 0 0; padding: 0; display: grid; gap: 4px; }
.pc-child { display: flex; flex-wrap: wrap; align-items: center; gap: 4px var(--space-2); padding: 6px var(--space-2); min-height: 44px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-bg); font-size: var(--text-sm); }
.pc-child-name { flex: 1 1 190px; min-width: 0; overflow-wrap: anywhere; }
.pc-child-state { font-weight: 700; }
.pc-child[data-pc-status="complete"] .pc-child-state { color: var(--color-success, #1f6b3a); }
.pc-child-meta { color: var(--color-text-muted); overflow-wrap: anywhere; }
/* Why a condition was ruled out by the task itself (2026-09-10). Its own line,
   because the veteran needs the reason and not a bare status mark. */
.pc-child-na { flex-basis: 100%; color: var(--color-text-muted); font-size: .86rem; line-height: 1.45; overflow-wrap: anywhere; }
.pc-mark { min-height: 44px; padding: 8px 12px; border: 2px solid var(--color-accent); border-radius: var(--radius-sm); background: var(--color-surface); color: var(--color-text); font: inherit; font-size: var(--text-sm); font-weight: 700; cursor: pointer; }
.pc-mark:hover:not(:disabled) { border-color: var(--color-primary); }
.pc-mark:disabled { opacity: .55; cursor: default; }
.pc-actions { margin-top: var(--space-2); }
.pc-side { min-width: 0; }
.pc-menu { font-size: var(--text-sm); }
.pc-menu summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; color: var(--color-primary); font-weight: 600; text-decoration: underline; }
.pc-options { display: grid; gap: 6px; padding: 4px 0; }
.pc-option { min-height: 44px; padding: 8px 10px; text-align: left; border: 2px solid var(--color-accent); border-radius: var(--radius-sm); background: var(--color-bg); color: var(--color-text); font: inherit; font-size: var(--text-sm); font-weight: 600; cursor: pointer; }
.pc-option:hover:not(:disabled) { border-color: var(--color-primary); }
.pc-option:disabled { opacity: .55; cursor: default; }
.pc-help { margin: 4px 0 0; font-size: var(--text-xs, .78rem); line-height: 1.45; color: var(--color-text-muted); }
.pc-row-status { margin: 6px 0 0; min-height: 1.2em; font-size: var(--text-sm); line-height: 1.45; color: var(--color-text); }
.pc-row-status.is-ok { color: var(--color-success, #1f6b3a); font-weight: 600; }
.pc-row-status.is-error { color: var(--color-danger, #a12626); font-weight: 600; }
/* Offered ONLY while a save ended with the state unknown: it re-reads the
   saved status, and is never a second attempt at the write. */
.pc-recheck { margin-top: 6px; min-height: 44px; padding: 8px 12px; border: 2px solid var(--color-accent); border-radius: var(--radius-sm); background: var(--color-surface); color: var(--color-text); font: inherit; font-size: var(--text-sm); font-weight: 700; cursor: pointer; }
.pc-recheck:hover:not(:disabled) { border-color: var(--color-primary); }
.pc-recheck:disabled { opacity: .55; cursor: default; }
.pc-live { margin: var(--space-2) 0 0; min-height: 1.2em; font-size: var(--text-sm); color: var(--color-text); }
.pc-footer { margin: var(--space-3) 0 0; font-size: var(--text-sm); line-height: 1.5; color: var(--color-text-muted); }
.mp-claim-checklist { margin: 0 0 var(--space-1); font-size: var(--text-sm); line-height: 1.5; color: var(--color-text); }
@media (max-width: 640px) {
  .pc-head { display: block; }
  .pc-total-wrap { text-align: left; margin-top: var(--space-2); }
  .pc-row { grid-template-columns: 24px minmax(0, 1fr); gap: var(--space-2); }
  .pc-side { grid-column: 2; }
  .pc-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Filters + results */
.mp-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: var(--space-4); align-items: start; margin-bottom: var(--space-5); }
.mp-filters { display: grid; gap: var(--space-3); padding: var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); position: sticky; top: 90px; }
.mp-filter { display: grid; gap: 4px; font-size: var(--text-sm); font-weight: 600; }
.mp-filter select { width: 100%; }
.mp-count { margin: 0 0 var(--space-2); font-size: var(--text-sm); color: var(--color-text-muted); }
.mp-list { display: grid; gap: var(--space-2); }
.mp-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-2); align-items: start; padding: var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); }
.mp-row:focus-within, .mp-row.is-focus { border-color: var(--color-primary); }
.mp-row strong { display: block; font-size: var(--text-body); line-height: 1.35; overflow-wrap: anywhere; }
.mp-row-meta { display: block; margin-top: 2px; font-size: var(--text-sm); line-height: 1.45; color: var(--color-text-muted); overflow-wrap: anywhere; }
.mp-row-review { display: inline-block; margin-top: 4px; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--color-danger, #a12626) 10%, transparent); color: var(--color-danger, #a12626); font-size: var(--text-xs, .78rem); font-weight: 700; }
.mp-row-actions { display: grid; gap: var(--space-1); }
.mp-row-actions .rf-btn-quiet { min-width: 96px; }
.mp-more { margin: var(--space-3) 0 0; }

.mp-add, .mp-links { margin-bottom: var(--space-5); }
.mp-add-actions, .mp-links-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: var(--space-2); margin-bottom: var(--space-3); }
/* auto-FILL, not auto-fit, for the section link rows (2026-09-08): several of
   the six claim sections hold ONE button, and auto-fit collapses the empty
   tracks so that single button stretched the whole 1150px column. A lone
   "Continue my guidance" the width of the page reads as a banner, not a
   control. auto-fill keeps the empty tracks, so one button is button-sized and
   a row of six still fills the width. */
.mp-links-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.mp-add-actions .rf-btn, .mp-links-grid .rf-btn { width: 100%; }
.mp-family { margin-bottom: var(--space-4); }
.mp-phase { max-width: 420px; }

@media (max-width: 860px) {
  .mp-layout { grid-template-columns: minmax(0, 1fr); }
  .mp-filters { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mp-filters .rf-btn { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .mp-main { padding-top: var(--space-4); }
  .mp-h1 { font-size: 1.5rem; }
  .mp-actions { grid-template-columns: minmax(0, 1fr); }
  .mp-filters { grid-template-columns: minmax(0, 1fr); }
  .mp-row { grid-template-columns: minmax(0, 1fr); }
  .mp-row-actions { grid-auto-flow: column; }
  .mp-claim-actions .rf-btn, .mp-top-actions .rf-btn, .mp-state-actions .rf-btn { width: 100%; }
}
@media print {
  /* A native print of this page outside the packet prints its notice only;
     the packet's own print stylesheet governs the reviewed copy. */
  .mp-filters, .mp-add, .mp-links, .mp-family, .mp-next, .mp-paths, .mp-checklist, .mp-actions, .mp-back { display: none !important; }
}
