/* Legacy SOA pipeline: page shell and the few classes the pipeline screens add on top of the Studio bundle (ws-). */
/* Legacy's navy and blue (decided Wednesday, 11 November, from "Legacy Blue Palette"): the Studio tokens recoloured
   here, after tokens.css, so every ws- and lp- class takes them; layout, type and spacing unchanged. Light only for now.
   Navy for headings, the frame, the active nav pill, the dark cards and primary buttons; Legacy blue for the go
   actions, the current step, accents and the focus ring; green for passed, amber for to check. */
:root {
  --navy: #13213a; --blue: #1f6feb; --blue-hover: #1a5fcc; --blue-tint: #e3edfb; --blue-ink: #0b3d91;
  --blue-on-navy: #6fa8ff; --label-on-navy: #9cc3ff; --card-rule: #d9e3f3; --bg-wash: #eef3fa;
  --charcoal: var(--navy);
  --bg: #f3f5f8;
  --glow-butter: transparent; --glow-blush: transparent; --glow-sage: transparent;
  --surface: #ffffff; --surface-2: #eef2f8;
  --card-from: #ffffffe6; --card-to: #f8fafde6; --card-edge: #ffffffd9;
  --tray: #e9eef68c; --column: #e3e9f280; --field: #ffffffcc; --field-edge: #d7dde8;
  --line: #d7dde8; --line-2: #e4e9f1;
  --ink: #13213a; --ink-2: #2b3a56; --muted: #5b6a84; --faint: #9aa8bf;
  --on-dark: #ffffff; --on-dark-2: #e3edfb; --on-dark-muted: #c7d6ee; --rail-text: #b9c6da; --rail-active: #24365a;
  /* The accent is blue, a shade deeper than the buttons' where it's text, for 5:1 on the page; the dark cards navy */
  --pine: #1b63d9; --pine-from: #13213a; --pine-to: #1b2c4d;
  --butter: #fff1cc; --on-butter: #7a4b00; --on-butter-2: #7a4b00; --on-butter-muted: #8a6420;
  --good: #1f7a4d; --good-soft: #1f7a4d14;
  --warn: #b26a00; --warn-soft: #fff1cc;
  --focus: var(--blue);
  --notice: #eef3fa; --notice-edge: #d7dde8;
  --scrim: #13213a66;
  --avatar: #e3edfb; --avatar-ink: #0b3d91;
  --shadow-card: inset 0 1px 0 #ffffffb0, 0 1px 2px #13213a0d;
  --shadow-tile: 0 1px 2px #13213a0d; --shadow-lift: 0 8px 20px #13213a17; --shadow-rail: 0 10px 25px #13213a26;
  --shadow-segment: 0 2px 4px #13213a0a;
}
body { margin: 0; background: var(--charcoal); font-family: var(--font-sans); color: var(--ink); -webkit-font-smoothing: antialiased; }
.lp-frame { background: var(--charcoal); padding: var(--shell-inset); min-height: 100vh; box-sizing: border-box; }
.lp-ground { position: relative; min-height: calc(100vh - 24px); border-radius: var(--radius-shell); box-shadow: var(--shadow-shell); isolation: isolate; box-sizing: border-box;
  background:
    linear-gradient(180deg, var(--bg) 0%, var(--bg-wash) 100%); }
.lp-content { padding: var(--section-gap) clamp(24px, 3.2vw, 52px) 48px; box-sizing: border-box; }
.lp-head { display: flex; flex-direction: column; gap: 10px; margin-top: var(--topbar-gap); margin-bottom: var(--section-gap); }
.lp-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: var(--grid-gap); align-items: start; }
.lp-stack { display: flex; flex-direction: column; gap: var(--grid-gap); min-width: 0; }
/* The approve page: the side panel a fixed width, the documents the rest, never under it. */
.lp-grid.lp-side-fixed { grid-template-columns: minmax(0, 1fr) 380px; column-gap: max(16px, var(--grid-gap)); }
.lp-payload { font-size: 15px; line-height: 1.75; white-space: pre-wrap; }
.lp-ph { display: inline; padding: 1px 5px; border-radius: 5px; background: var(--blue-tint); border: 0; font-size: 0.86em; font-weight: 500; line-height: 1.5; color: var(--blue-ink); vertical-align: baseline; }
.lp-keep { display: inline; padding: 1px 5px; border-radius: 5px; background: color-mix(in srgb, var(--good) 9%, transparent); border: 0; font-size: 0.92em; font-weight: 500; line-height: 1.5; color: var(--good); vertical-align: baseline; }
.lp-flag { position: relative; background: var(--warn-soft); color: var(--on-butter); border-bottom: 2px dotted var(--warn); border-radius: 3px; padding: 0 2px; }
.lp-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.lp-rows { display: flex; flex-direction: column; }
.lp-row { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.lp-row:last-child { border-bottom: 0; }
.lp-row h3 { margin: 0; font-size: 15px; font-weight: 500; letter-spacing: -0.2px; }
.lp-row p { margin: 3px 0 0; font-size: 12px; color: var(--muted); }
.lp-check { display: flex; align-items: center; gap: 10px; font-size: 13px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.lp-check:last-child { border-bottom: 0; }
.lp-halted { color: var(--danger); }
.lp-sample { position: absolute; right: 22px; bottom: 16px; font-size: 11px; color: var(--muted); }
@media (max-width: 1100px) { .lp-grid, .lp-grid.lp-side-fixed { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) { .lp-content { padding-left: clamp(16px, 3.2vw, 52px); padding-right: clamp(16px, 3.2vw, 52px); } .lp-head { margin-top: 30px; } }

/* The queue: one list of next steps, one verb per row, then what's with Claude. */
.lp-next .lp-row p { max-width: 90ch; }
.lp-next .lp-row .ws-btn { text-decoration: none; }
.lp-claude { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 6px 0 0; padding-top: 14px; border-top: 1px solid var(--line-2); font-size: 13px; color: var(--muted); }
.lp-claude + .lp-claude { margin-top: 0; padding-top: 8px; border-top: 0; }
.lp-say { color: var(--ink); font-weight: 500; }

/* The approve page: an SOA's supporting documents fold to one line, and the action bar stays on screen. */
.lp-doc > summary { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 14px; align-items: center; cursor: pointer; font-size: 15px; font-weight: 500; }
.lp-doc > summary::-webkit-details-marker { display: none; }
.lp-doc > summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.lp-doc[open] > summary { margin-bottom: 16px; }
.lp-doc-counts { font-size: 12px; font-weight: 400; color: var(--muted); white-space: nowrap; }
.lp-show::before { content: "Show"; font-size: 12px; font-weight: 500; color: var(--pine); }
.lp-doc[open] .lp-show::before { content: "Hide"; }
.lp-actionbar { position: sticky; bottom: 16px; z-index: 5; margin-top: var(--grid-gap); background: var(--bg); box-shadow: var(--shadow-lift); }
.lp-actionbar-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; }
.lp-actionbar-field { min-width: 220px; margin: 0; }
.lp-actionbar-note { margin-left: auto; font-size: 12px; align-self: center; }
/* Text for screen readers only: the check name before each check sentence. */
.lp-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Legacy's logo in the top bar, our mark in the footer. */
.lp-brand { gap: 14px; }
/* Home and History in the top bar, beside the wordmark (decided Friday, 6 November: the floating rail is gone). Help and
   Sign out stay at the right. Home carries the count of cards waiting on you. */
.ws-topnav.lp-sections { margin-left: 0; }
.lp-sections a { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; }
.lp-nav-badge { min-width: 18px; padding: 1px 6px; border-radius: var(--radius-pill); background: var(--blue); color: #fff; font-size: 11px; font-weight: 600; line-height: 1.5; text-align: center; box-sizing: border-box; }
@media (max-width: 700px) { .ws-topbar { flex-wrap: wrap; gap: 12px 18px; } .lp-sections { order: 3; flex-basis: 100%; } }
.lp-logo { display: block; height: 30px; width: auto; }
.lp-footer { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-top: var(--section-gap); padding-top: 18px; font-size: 12px; color: var(--muted); }
.lp-footer .ws-mark { width: 16px; height: 16px; font-size: 11px; letter-spacing: -0.8px; padding-right: 1px; border-radius: 4px; }
/* Added for the built pages; not in the reference markup. */
[hidden] { display: none !important; }  /* the theme's display rules would otherwise show a hidden button */
.ws-btn:disabled, .ws-btn.primary:disabled { opacity: .45; cursor: not-allowed; }
a { color: var(--ink); }
a:hover { color: var(--pine); }
mark.lp-flag { color: inherit; }
.ws-tabs a.ws-tab { text-decoration: none; }
.lp-error { margin: 8px 0 0; font-size: 13px; color: var(--danger); }
.lp-edit { width: 100%; box-sizing: border-box; min-height: 420px; font: inherit; font-size: 15px; line-height: 1.6; resize: vertical; }
.lp-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--metric-gap); margin-bottom: var(--section-gap); }
@media (max-width: 900px) { .lp-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .lp-tiles { grid-template-columns: minmax(0, 1fr); } }
/* SOA approve page: documents grouped by role, each group ticked before approval. */
.lp-group { display: grid; gap: 12px; }
.lp-group + .lp-group { margin-top: 10px; }
.lp-group-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0 4px; }
.lp-group-head > div { min-width: 0; }
.lp-group-head h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 17px; font-weight: 500; }
.lp-group-head p { margin: 4px 0 0; font-size: 13px; }
/* "Right documents": on the group's heading row, right-aligned, one line. Its own class: .lp-tick is the review form's. */
.lp-group-tick { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border: 1px solid var(--field-edge); border-radius: var(--radius-pill); background: var(--field); font-size: 13px; color: var(--ink-2); white-space: nowrap; cursor: pointer; }
.lp-group-tick input { width: 15px; height: 15px; margin: 0; accent-color: var(--pine); }
.lp-group-tick:has(input:checked) { border-color: var(--pine); color: var(--pine); }
.lp-group-empty { margin: 0; padding: 0 4px; font-size: 13px; }
.lp-doc-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.lp-doc-name { flex: 1 1 260px; margin: 0; font-size: 15px; font-weight: 500; }
.lp-retag { display: flex; align-items: center; gap: 8px; }
.lp-retag .ws-input { width: auto; padding: 6px 10px; font-size: 13px; }
.lp-doc-text { margin-top: 12px; }
.lp-doc-text > summary { list-style: none; cursor: pointer; width: max-content; }
.lp-doc-text > summary::-webkit-details-marker { display: none; }
.lp-doc-text > summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.lp-doc-text[open] > summary { margin-bottom: 12px; }
.lp-doc-text[open] .lp-show::before { content: "Hide"; }
.lp-doc-card.lp-out { background: var(--tray); box-shadow: none; }
.lp-doc-card.lp-out .lp-doc-name { color: var(--muted); }
/* Insurer quotes by person (Thursday, 12 November): a heading per person, one card per file, the client's choice a
   radio per option under each card's line; an older round folded to one line. */
.lp-quote-person { display: grid; gap: 10px; }
.lp-quote-person + .lp-quote-person { margin-top: 8px; }
.lp-quote-who { margin: 4px 4px 0; font-size: 15px; font-weight: 600; }
.lp-quote-set { display: grid; gap: 8px; }
.lp-quote-set-head { margin: 0 4px; font-size: 13px; color: var(--ink-2); }
.lp-quote-same { margin: 0 4px; font-size: 13px; }
.lp-quote-card .lp-doc-name { font-size: 14px; }
.lp-quote-claude { font-weight: 400; }
.lp-quote-option { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 10px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.lp-quote-option input[type="radio"] { width: 15px; height: 15px; margin: 0; accent-color: var(--pine); }
.lp-quote-option:has(input[type="radio"]:checked) { color: var(--pine); font-weight: 500; }
.lp-quote-none { margin: 0 4px; }
.lp-quote-save { margin: 0 4px; }
.lp-quote-round { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; }
.lp-quote-round summary { cursor: pointer; font-size: 13px; color: var(--muted); }
.lp-quote-round summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.lp-quote-round-list { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 6px; font-size: 13px; }
.lp-quote-round-list li span { margin-right: 8px; }
/* Insurer quotes at the top (Thursday, 12 November): a line per insurer and round; Show opens its quotes. */
.lp-quote-line { border: 1px solid var(--line); border-radius: var(--radius-card, 14px); background: var(--surface); }
.lp-quote-line + .lp-quote-line { margin-top: 8px; }
.lp-quote-line-older { background: var(--tray); }
.lp-quote-more > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 16px; list-style: none; cursor: pointer; font-size: 14px; }
.lp-quote-more > summary::-webkit-details-marker { display: none; }
.lp-quote-more > summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 10px; }
.lp-quote-line-words { flex: 1 1 280px; }
.lp-quote-line-older .lp-quote-line-words { color: var(--muted); }
.lp-quote-line-actions { display: inline-flex; gap: 8px; }
.lp-quote-more .lp-show-open, .lp-quote-more[open] .lp-show-closed { display: none; }
.lp-quote-more[open] .lp-show-open { display: inline; }
.lp-quote-more[open] > summary { border-bottom: 1px solid var(--line); }
.lp-quote-more > :not(summary) { margin: 12px 16px; }
.lp-quote-choice { margin: 10px 4px 0; font-size: 14px; font-weight: 500; }
/* Add a file from this folder: each file with View, to look at it before adding it (Thursday, 12 November). */
.lp-add-file { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lp-add-file .q-option { flex: 1 1 auto; min-width: 0; }
.lp-add-file .lp-add-role { flex: 0 0 220px; width: 220px; padding-top: 6px; padding-bottom: 6px; font-size: 14px; }
.lp-add-wait { margin: 0; font-size: 13px; }
/* The approve page's words to check, each with Swap and Keep (Thursday, 12 November); This run's details folded. */
.lp-check-list { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 14px; color: var(--ink-2); }
.lp-check-head { margin: 12px 0 0; font-size: 14px; font-weight: 600; color: var(--ink); }
/* A document's older copies in one line, Show listing them (Thursday, 12 November). */
.lp-older-fold { margin: -4px 0 8px; }
.lp-older-fold > summary { list-style: none; cursor: pointer; padding: 6px 4px; font-size: 14px; color: var(--ink-2); }
.lp-older-fold > summary::-webkit-details-marker { display: none; }
.lp-older-fold > summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.lp-older-fold .lp-show-open, .lp-older-fold[open] .lp-show-closed { display: none; }
.lp-older-fold[open] .lp-show-open { display: inline; }
.lp-link-button { padding: 0; border: 0; background: none; font: inherit; color: var(--link, #1B63D9); text-decoration: underline; cursor: pointer; }
.lp-link-button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.lp-run-details { margin-top: 12px; }
/* The SOA approve page's files in one line, Show listing those left out (Thursday, 12 November). */
.lp-breakdown { margin: 8px 0 0; font-size: 15px; color: var(--ink-2); }
.lp-breakdown > summary { list-style: none; cursor: pointer; }
.lp-breakdown > summary::-webkit-details-marker { display: none; }
.lp-breakdown > summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.lp-breakdown .lp-show-open, .lp-breakdown[open] .lp-show-closed { display: none; }
.lp-breakdown[open] .lp-show-open { display: inline; }
.lp-breakdown-list { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 3px; font-size: 14px; }
/* The SOA approve page in six lines (Finn, Friday, 13 November): a line each, its label on the left, its documents
   in plain words with View on the right; the total; everything left out folded into one line. */
.lp-six { padding: 20px 24px; }
.lp-six-title { font-size: 18px; margin: 0 0 6px; }
/* Three steps over the six lines, so the instructions read as step 1 before Approve (Finn, 16 November) */
.lp-six-steps { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 14px; font-size: 14px; color: var(--ink-2); }
.lp-six-steps .lp-step b, .lp-step-number { display: inline-block; min-width: 20px; height: 20px; line-height: 20px; border-radius: 10px; background: var(--navy, #13213A); color: #fff; text-align: center; font-weight: 600; font-size: 12px; margin-right: 4px; }
.lp-six-step > dt { color: var(--navy, #13213A); }
.lp-instructions-state { display: inline-block; margin-left: 10px; font-size: 13px; }
/* Keep or Cancel on a policy the client has now (Finn, 16 November): the chosen one filled, the other an outline */
.lp-old-choice { display: inline-flex; align-items: center; gap: 6px; margin-left: 10px; }
.lp-old-choice .ws-btn.lp-chosen { background: var(--navy, #13213A); color: #fff; border-color: var(--navy, #13213A); }
.lp-old-undecided { font-size: 13px; }
.lp-six-lines { display: grid; margin: 0; }
.lp-six-line { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.lp-six-line:first-child { border-top: 0; }
.lp-six-line > dt { font-weight: 600; color: var(--ink); padding-top: 3px; }
.lp-six-line > dd { margin: 0; display: grid; gap: 6px; }
.lp-six-item { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.lp-six-words { color: var(--ink); }
.lp-six-actions { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-left: auto; }
.lp-six-actions form { display: inline-flex; gap: 6px; margin: 0; }
.lp-six-change { flex-basis: 100%; }
.lp-six-change > summary { cursor: pointer; font-size: 14px; }
.lp-six-change[open] > summary { margin-bottom: 8px; }
/* Approve is always clickable (Finn, Sunday, 15 November): what's still to answer is listed in the action bar, named
   and linked, quiet until Approve is clicked with any left, then red with each item outlined on the page. */
.lp-left { flex-basis: 100%; margin: 0; font-size: 13px; color: var(--ink-2); }
.lp-left.risk { color: var(--danger); font-weight: 500; }
.lp-left a { color: inherit; }
.lp-unanswered { outline: 2px solid var(--danger); outline-offset: 4px; border-radius: 6px; }
/* Choose opens the choices under its line: Keep their existing cover or Recommend a new one, then the quotes */
.lp-pick { flex-basis: 100%; }
.lp-pick > summary, .lp-pick-new > summary { list-style: none; display: inline-flex; cursor: pointer; }
.lp-pick > summary::-webkit-details-marker, .lp-pick-new > summary::-webkit-details-marker { display: none; }
.lp-pick-body { display: grid; gap: 10px; margin: 10px 0 4px; }
.lp-pick-keep { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px 12px; }
.lp-pick-keep form { margin: 0; }
.lp-pick-new { flex-basis: 100%; align-self: center; }
.lp-pick-new-link { font-size: 13px; }
.lp-pick-quotes { display: grid; gap: 8px; margin-top: 10px; }
.lp-answer { margin: 0; }
.lp-answer .ws-btn { margin-top: 8px; }
.lp-answer-error { margin: 6px 0 0; }
.lp-six-sub { font-size: 14px; color: var(--ink-2); }
.lp-six-note { margin: 0; font-size: 14px; color: var(--ink-2); }
.lp-six-table > summary, .lp-six-left > summary { list-style: none; cursor: pointer; font-size: 14px; color: var(--ink-2); }
.lp-six-table > summary::-webkit-details-marker, .lp-six-left > summary::-webkit-details-marker { display: none; }
.lp-six-table > summary:focus-visible, .lp-six-left > summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.lp-six-table .lp-show-open, .lp-six-table[open] .lp-show-closed,
.lp-six-left .lp-show-open, .lp-six-left[open] .lp-show-closed { display: none; }
.lp-six-table[open] .lp-show-open, .lp-six-left[open] .lp-show-open { display: inline; }
.lp-six-table .lp-payload { margin-top: 8px; font-size: 14px; overflow-x: auto; }
/* Real values beside their placeholders on the approve page (13 November): the real value first, the placeholder
   small; on a page picture, each swapped word lightly highlighted, its placeholder on hover, focus or tap */
.lp-ph.lp-ph-real { background: var(--blue-tint); }
.lp-ph-tag { font-size: 0.78em; color: var(--blue-ink); opacity: .75; white-space: nowrap; }
.lp-page-frame { position: relative; }
.lp-page-mark { position: absolute; background: rgba(31, 111, 235, .16); border-radius: 2px; cursor: help; }
.lp-page-mark:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.lp-page-tip { display: none; position: absolute; left: 0; bottom: 100%; margin-bottom: 2px; padding: 2px 6px;
  background: var(--navy); color: #fff; font-size: 12px; border-radius: 4px; white-space: nowrap; z-index: 2; }
.lp-page-mark:hover .lp-page-tip, .lp-page-mark:focus .lp-page-tip { display: block; }
/* A click working (13 November): the link or button it was, and one line in the action bar */
.lp-busy { opacity: .6; cursor: progress; pointer-events: none; }
.lp-working { margin: 0; font-size: 14px; color: var(--ink-2); }
.lp-six-alt { width: 100%; border-collapse: collapse; font-size: 14px; }
.lp-six-alt th, .lp-six-alt td { text-align: left; vertical-align: top; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.lp-six-alt th { font-weight: 600; color: var(--ink-2); }
.lp-six-total { margin: 12px 0 4px; padding-top: 12px; border-top: 1px solid var(--line); font-weight: 600; color: var(--ink); }
.lp-six-left-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.lp-six-left-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
@media (max-width: 700px) { .lp-six-line { grid-template-columns: 1fr; gap: 4px; } .lp-six-actions { margin-left: 0; } }
.lp-run-details > summary { cursor: pointer; font-size: 14px; color: var(--ink-2); }
.lp-run-details > summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.lp-run-details[open] > summary { margin-bottom: 8px; }
/* The View panel's Document view of a PDF: one page as a picture, the panel's width, with its page arrows. */
.lp-page-nav { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; }
.lp-viewer-page { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
/* Approved and not yet fetched by Claude: its three steps (Thursday, 12 November) */
.lp-progress-steps { margin: 0 0 10px; padding-left: 22px; font-size: 15px; color: var(--ink-2); display: grid; gap: 4px; }
.q-else > summary, .q-what > summary, .q-start-toggle > summary { list-style: none; width: max-content; cursor: pointer; }
.q-else > summary::-webkit-details-marker, .q-what > summary::-webkit-details-marker, .q-start-toggle > summary::-webkit-details-marker { display: none; }
.q-else > summary, .q-start-toggle > summary { font-size: 13px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.q-else > summary { font-size: 12px; }
.q-else-choices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.q-start-toggle { margin-bottom: var(--grid-gap); }
.q-start-toggle > summary { margin-left: auto; }
.q-start-toggle[open] > summary { margin-bottom: 10px; }
.q-start-toggle .q-start { margin-bottom: 0; }
.ws summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.q-picked { background: var(--pine); border-color: var(--pine); color: var(--on-dark); }
.q-picked:hover { background: var(--charcoal); border-color: var(--charcoal); }
.q-aside { border-color: transparent; color: var(--muted); }
.q-aside:hover { color: var(--ink); background: var(--tray); }
.q-choices .ws-btn:disabled { cursor: default; color: var(--muted); border-style: dashed; }
/* Start a run: the folder search, then the folder's Word files. */
.q-start { margin-bottom: var(--grid-gap); }
.q-find { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; gap: 12px 18px; }
.q-find h2 { margin: 0 0 9px; font-size: 15px; font-weight: 500; }
.q-matches ul { list-style: none; margin: 14px 0 0; padding: 0; }
.q-match { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 11px 4px; border: 0; border-top: 1px solid var(--line-2); background: transparent; font: inherit; font-size: 14px; color: var(--ink); text-align: left; cursor: pointer; }
.q-match:hover { background: var(--tray); }
.q-match .ws-icon { width: 14px; height: 14px; }
.q-none { margin: 12px 0 0; }
.ws .q-connect { margin: 0 0 14px; max-width: 90ch; font-size: 13px; color: var(--ink-2); }
.q-choose { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-2); }
.q-choose h3 { margin: 0; font-size: 17px; font-weight: 500; }
.q-choose fieldset { margin: 14px 0 0; padding: 0; border: 0; }
.q-choose legend { margin-bottom: 4px; padding: 0; font-size: 12px; color: var(--ink-2); }
.q-option { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 6px 0; font-size: 14px; color: var(--ink); cursor: pointer; }
.q-option input { margin: 0; accent-color: var(--pine); }
.q-option.q-off { color: var(--muted); cursor: default; }
.q-why { margin: 2px 0 0 24px; font-size: 13px; }
.q-go { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 14px; }
.q-go .ws-quiet { font-size: 13px; }
/* While a run starts: the clicked button says "Checking the file…", and nothing in that form can be clicked again. */
.q-busy .ws-btn { pointer-events: none; }
.q-busy .ws-btn:not([aria-disabled]) { opacity: .45; }
.q-busy .ws-btn[aria-disabled="true"] { cursor: progress; }
@media (max-width: 700px) { .q-find { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .q-tile .verb { transition: none; } }

/* Home, one card per client (decided Friday, 6 November): a stage strip on each card, a halted file as a line on its
   client's card, other things waiting as lines, and a quiet card for what waits on Claude or someone else. */
h2.q-attention { margin: 0 0 14px; font-size: 15px; font-weight: 500; letter-spacing: -0.2px; }
h2.q-waiting-head { margin-top: var(--section-gap); color: var(--ink-2); }
.q-connect-hint { margin: 0 0 14px; font-size: 13px; }  /* after a first run with Claude (Tuesday, 10 November) */
/* Home's Recent strip (Tuesday, 10 November): one quiet line, a row per client when open. */
.q-recent { margin-top: var(--section-gap); }  /* its width and centring are #q-recent's, with the cards' */
.q-recent > summary { display: inline-flex; align-items: center; gap: 6px; list-style: none; cursor: pointer; font-size: 14px; color: var(--ink-2); }
.q-recent > summary::-webkit-details-marker { display: none; }
.q-recent-arrow { width: 14px; height: 14px; transition: transform .15s; }
.q-recent[open] .q-recent-arrow { transform: rotate(90deg); }
.q-recent-rows { list-style: none; margin: 12px 0 10px; padding: 0; border-top: 1px solid var(--line-2); }
.q-recent-rows li { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr) minmax(0, .8fr) minmax(0, 1fr) auto; gap: 6px 16px; align-items: baseline; padding: 10px 2px; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.q-recent-client { font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
.q-recent-open, .q-recent-all { font-size: 13px; }
@media (max-width: 700px) { .q-recent-rows li { grid-template-columns: minmax(0, 1fr) auto; } .q-recent-rows li > span { grid-column: 1; } }
@media (prefers-reduced-motion: reduce) { .q-recent-arrow { transition: none; } }
.q-strip { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
.q-strip li { display: grid; align-content: start; gap: 6px; font-size: 12px; line-height: 1.25; }
.q-strip li::before { content: ""; height: 4px; border-radius: 2px; background: currentColor; opacity: .22; }
.q-strip li > span { opacity: .62; }
.q-strip li.done::before { opacity: .7; }
.q-strip li.now > span { opacity: 1; font-weight: 700; }
.q-strip li.now::before { opacity: 1; height: 6px; margin-top: -1px; }
/* The progress page's strip (the NNP6 end-to-end test, Saturday, 14 November): a step done or now opens that stage, a
   step to come is greyed and isn't a link */
.q-strip li > .lp-step-link { color: var(--link, #1B63D9); text-decoration: underline; text-underline-offset: 2px; }
.q-strip li > .lp-step-link > span { opacity: 1; }
.lp-progress-strip li:not(.done):not(.now) > span { opacity: .38; }
.lp-progress-files { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.lp-progress-files li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.lp-progress-signoff { margin: 14px 0 0; font-size: 14px; }
.q-also code { font: 500 12px/1.4 var(--font-sans); padding: 2px 7px; border-radius: 6px; background: var(--tray); border: 1px solid var(--card-edge); color: var(--ink); }
.q-also .ws-btn { padding: 5px 12px; font-size: 12px; }
/* Another open run on the card (decided Wednesday, 11 November): its own button, in the card's verb look, smaller. */
.q-tile .q-also .verb { gap: 6px; padding: 5px 12px; font-size: 12px; text-decoration: none; }
.q-tile .q-also .verb .ws-icon { width: 12px; height: 12px; }
/* Firm settings, People: a person's phone and email for the SOA cover. */
.lp-contact { display: grid; grid-template-columns: auto minmax(10em, 1fr); gap: 4px 8px; align-items: center; }
.lp-contact .ws-btn { grid-column: 2; justify-self: start; }

/* History, Clients: the same strip, smaller, in a table row. */
.lp-clients .q-strip { margin: 0; min-width: 300px; }
.lp-clients td { vertical-align: middle; }
.lp-nowrap { white-space: nowrap; }
/* Review the draft: the AI draft as a document, before it's saved. */
.lp-doc { font-size: 15px; line-height: 1.6; color: var(--ink); overflow-wrap: anywhere; }
.lp-doc h3, .lp-doc h4, .lp-doc h5, .lp-doc h6 { margin: 22px 0 8px; font-weight: 500; line-height: 1.3; }
.lp-doc h3 { font-size: 24px; }
.lp-doc > h3:first-child { margin-top: 0; }
.lp-doc h4 { font-size: 19px; }
.lp-doc h5 { font-size: 16px; }
.lp-doc h6 { font-size: 15px; color: var(--ink-2); }
.lp-doc p { margin: 0 0 10px; }
.lp-doc ul { margin: 0 0 10px; padding-left: 22px; }
.lp-doc .lp-num { padding-left: 18px; }
.lp-doc-wide { overflow-x: auto; margin: 6px 0 14px; }
.lp-doc table { width: 100%; border-collapse: collapse; font-size: 14px; }
.lp-doc th, .lp-doc td { border: 1px solid var(--line-2); padding: 6px 8px; text-align: left; vertical-align: top; }
.lp-doc th { background: var(--surface-2); font-weight: 500; }
.lp-doc .lp-guide { font-size: 13px; color: var(--ink-2); margin: 0 0 8px; }
.lp-doc .lp-box { border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 10px 12px; margin: 0 0 14px; }
.lp-doc .lp-box p:last-child { margin-bottom: 0; }
.lp-doc .lp-empty { color: var(--ink-2); font-size: 13px; font-style: italic; }
.lp-doc td { white-space: pre-line; }
/* "Where each figure came from", closed by default under the draft. Its Who and How columns hold single words
   ("household", "stated"): the document's overflow-wrap would let a narrow column break them mid-word. */
.lp-appendix { margin: 22px 0 0; border-top: 1px solid var(--line-2); padding-top: 14px; }
.lp-appendix > summary { list-style: none; display: flex; align-items: baseline; gap: 14px; cursor: pointer; width: max-content; max-width: 100%; }
.lp-appendix > summary::-webkit-details-marker { display: none; }
.lp-appendix > summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.lp-appendix-title { font-size: 17px; font-weight: 500; }
.lp-appendix[open] > summary { margin-bottom: 10px; }
.lp-appendix[open] .lp-show::before { content: "Hide"; }
.lp-appendix-table .col-who, .lp-appendix-table .col-how { overflow-wrap: normal; word-break: normal; hyphens: none; }
.lp-appendix-table .col-who { min-width: 9em; }
.lp-appendix-table .col-how { min-width: 7em; white-space: nowrap; }
.lp-tag { margin-left: 8px; font-size: 11px; vertical-align: middle; }
.lp-doc-footer { margin: 18px 0 0; padding-top: 10px; border-top: 1px solid var(--line-2); font-size: 12px; color: var(--ink-2); }
/* Home: the note after an action, with Open in Claude beside it after approving. */
.q-flash { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
/* SOA approve page: "Add a file from this folder". */
/* Approve page, View: one document as Claude gets it, in its file's shape, in a panel at the side (_viewer.html). */
body:has(.lp-viewer) { overflow: hidden; }
.lp-viewer-scrim { position: fixed; inset: 0; z-index: 20; background: var(--scrim); }
.lp-viewer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 21; display: flex; flex-direction: column; width: min(780px, 100%); background: var(--surface); box-shadow: var(--shadow-lift); border-radius: var(--radius-panel) 0 0 var(--radius-panel); outline: none; }
.lp-viewer:focus { outline: none; }  /* the panel takes focus to be read; its links and buttons keep their rings */
.lp-viewer-head { padding: 18px 24px 14px; border-bottom: 1px solid var(--line-2); }
.lp-viewer-top { display: flex; align-items: center; gap: 12px; }
.lp-viewer-x { margin-left: auto; display: inline-flex; padding: 6px; border-radius: var(--radius-sm); color: var(--ink); }
.lp-viewer-x .ws-icon { width: 18px; height: 18px; }
.lp-viewer-title { margin: 12px 0 8px; font-size: 20px; font-weight: 500; overflow-wrap: anywhere; }
.lp-viewer-meta { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0 0 14px; font-size: 13px; }
.lp-viewer-meta div { display: flex; gap: 6px; }
.lp-viewer-meta dt { color: var(--muted); }
.lp-viewer-meta dd { margin: 0; }
.lp-viewer-actions [aria-disabled="true"] { opacity: .45; cursor: default; }
.lp-viewer-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.lp-viewer-original { margin-left: auto; }
.lp-viewer-original .ws-icon { width: 14px; height: 14px; margin-left: 6px; }
.lp-viewer-note { margin: 10px 0 0; font-size: 12px; }
.lp-viewer-body { flex: 1; overflow-y: auto; padding: 20px 28px 48px; font-size: 15px; line-height: 1.6; }
.lp-doc-table { overflow-x: auto; margin: 0 0 14px; }
.lp-view-one { margin-left: auto; margin-right: 8px; }
@media (max-width: 700px) { .lp-viewer { border-radius: 0; } .lp-viewer-head { padding: 14px 16px 12px; } .lp-viewer-body { padding: 16px; } .lp-viewer-original { margin-left: 0; } }
/* The halt page: a safe stop, not an error. */
.lp-safe { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; background: var(--good-soft); border-color: var(--good); color: var(--ink); }
.lp-safe .ws-icon { flex: none; width: 20px; height: 20px; color: var(--good); margin-top: 2px; }
.lp-safe p { margin: 0; font-weight: 500; }
.lp-what { margin: 0 0 var(--grid-gap); font-size: 15px; color: var(--ink-2); max-width: 70ch; }
.lp-shape { margin: 8px 0; font-size: 20px; letter-spacing: 0.12em; color: var(--ink); font-variant-numeric: tabular-nums; }
/* Review the draft: typing from an earlier draft, carried or listed (views.carry_notice). */
.lp-carry p { margin: 0; }
.lp-carry p + p, .lp-carry ul + p { margin-top: 8px; }
.lp-carry ul { margin: 8px 0 0; padding-left: 1.2em; display: grid; gap: 4px; }
.lp-carry-place { color: var(--ink-2); }
/* Review the draft: the form's own text, folded, so what Claude wrote comes first (views.form_parts). */
.lp-formonly { margin: 6px 0 12px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); }
.lp-formonly > summary { display: flex; align-items: baseline; gap: 10px; padding: 8px 12px; cursor: pointer; font-size: 13px; color: var(--muted); list-style: none; }
.lp-formonly > summary::-webkit-details-marker { display: none; }
.lp-formonly-names { flex: 1; overflow-wrap: anywhere; }
.lp-formonly[open] { padding: 0 12px 8px; }
.lp-formonly[open] > summary { margin: 0 -12px 8px; border-bottom: 1px solid var(--line-2); }
.lp-client { margin-bottom: var(--grid-gap); padding-top: 16px; padding-bottom: 16px; }
.lp-client-line { margin: 0; font-size: 15px; }
.lp-client .q-find { margin-top: 14px; }
.lp-client-note { margin: 12px 0 0; }
.lp-add .ws-card-head { margin-bottom: 8px; }
.lp-add-files { border: 0; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 320px; overflow-y: auto; }
.lp-add-files legend { font-size: 13px; color: var(--ink-2); margin-bottom: 6px; }
/* Dashboard: By run / Activity, and the activity timeline. */
.lp-view-switch { display: inline-flex; margin: 0 0 14px; }
.lp-view-switch a { text-decoration: none; font: 500 13px/1.4 var(--font-sans); padding: 7px 16px; border-radius: var(--radius-pill); color: var(--muted); }
.lp-view-switch a.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-segment); }
.lp-day { margin: 18px 0 6px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.lp-day:first-of-type { margin-top: 0; }
.lp-activity { list-style: none; margin: 0; padding: 0; }
.lp-activity li { display: grid; grid-template-columns: 64px 10px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.lp-activity li:last-child { border-bottom: 0; }
.lp-when { font-variant-numeric: tabular-nums; color: var(--ink-2); font-size: 13px; }
.lp-code { font-size: 12px; font-weight: 600; letter-spacing: .04em; padding: 1px 8px; border-radius: var(--radius-pill); background: var(--surface-2); color: var(--ink); text-decoration: none; }
.lp-tone-ok { background: var(--good); } .lp-tone-warn { background: var(--warn); } .lp-tone-stop { background: var(--danger); } .lp-tone-neutral { background: var(--line); }
@media (max-width: 600px) { .lp-activity li { grid-template-columns: 56px 10px minmax(0, 1fr); } .lp-code { grid-column: 3; justify-self: start; } }
/* Printed approval records: white page, no frame, rail, top bar or buttons. */
/* Confirmations after an action (confirm.html): what happened, the steps in Claude, what's next. */
.lp-confirm { max-width: 760px; }
.lp-steps { list-style: none; counter-reset: step; margin: 6px 0 18px; padding: 0; display: grid; gap: 16px; }
.lp-steps li { counter-increment: step; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 8px 12px; align-items: center; }
.lp-steps li::before { content: counter(step); grid-row: span 3; align-self: start; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--pine); color: var(--on-dark); font-size: 13px; font-weight: 600; }
.lp-steps li > * { grid-column: 2; justify-self: start; }
.lp-step-text { font-size: 15px; }
.lp-say { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-width: 0; }
.lp-say code { font: 500 14px/1.4 var(--font-sans); background: var(--tray); border: 1px solid var(--card-edge); border-radius: var(--radius-sm); padding: 6px 12px; overflow-wrap: anywhere; }
.lp-confirm-line { margin: 0 0 8px; font-size: 15px; }
.lp-next { margin: 12px 0 0; font-size: 15px; font-weight: 500; color: var(--pine); }
.lp-confirm-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 22px; }
.lp-confirm-actions .lp-inline { margin: 0; }
.lp-back { font-size: 14px; color: var(--ink-2); }
/* Firm settings: the firm's CAR number (Tuesday, 10 November). */
.lp-firm { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; }
.lp-firm .ws-field { flex: 1 1 200px; margin: 0; }
/* Sign off an SOA in place (_signoff_confirm.html): Open in SharePoint, Sign off, one question. */
.q-signoff { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; }
.q-confirm > summary { list-style: none; cursor: pointer; }
.q-confirm > summary::-webkit-details-marker { display: none; }
.q-confirm[open] > summary { display: none; }
/* The checks unresolved when an SOA was saved, carried to sign-off (Codex's web audit, 16 November, High 4) */
.q-unresolved { flex-basis: 100%; padding: 8px 12px; border-radius: 8px; background: var(--flag-bg, #FFF1CC); color: var(--flag-ink, #7A4B00); font-size: 13px; }
.q-unresolved-head { margin: 0 0 4px; font-weight: 600; }
.q-unresolved-list { margin: 0; padding-left: 18px; }
.q-tick { flex-basis: 100%; display: flex; gap: 8px; align-items: flex-start; font-size: 13px; }
.q-tick input { margin-top: 3px; }
/* "Saving your changes…" over the review page's actions while a field save is in flight (Highs 2 and 5) */
.lp-saving { flex-basis: 100%; margin: 0; font-size: 13px; }
.q-confirm-box { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.q-confirm-box p { flex-basis: 100%; margin: 0 0 4px; font-size: 14px; font-weight: 500; }
/* The saved page: a tick, where the files went, the way on. */
.lp-saved-title { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.lp-saved-tick { flex: none; width: 48px; height: 48px; fill: none; stroke: var(--good); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.lp-saved-files { margin: 0; padding: 0; list-style: none; font-size: 15px; }
.lp-saved-files li { padding: 6px 0; overflow-wrap: anywhere; }
/* Review the draft (decided Tuesday, 10 November): the draft takes the width, the viewport less a 32px gutter each
   side (the frame's 12px and 20px here) at any width, with no cap; the checks are a strip on the right, open from
   1600px wide and closed below, with a toggle, and closed the draft takes its space but for the toggle's tab. Tables
   lay out by their content across the whole panel, a column never narrower than its longest word (the document's
   overflow-wrap would break words letter by letter); one still wider than the panel scrolls sideways in its own box. */
@media screen { .lp-content:has(#review-grid) { padding-left: 20px; padding-right: 20px; } }
.lp-review-grid { grid-template-columns: minmax(0, 1fr) 360px; }
.lp-review-grid.lp-side-closed { grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; }
.lp-doc table { table-layout: auto; }
.lp-review-grid.lp-side-closed .lp-review-side > :not(.lp-side-toggle) { display: none; }
.lp-side-toggle { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: var(--radius-pill); background: var(--surface); color: var(--ink-2); font: 500 13px/1.2 var(--font-sans); cursor: pointer; }
.lp-side-toggle .ws-icon { width: 14px; height: 14px; transform: rotate(180deg); }
.lp-side-toggle:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.lp-review-grid.lp-side-closed .lp-side-toggle { position: sticky; top: 24px; flex-direction: row; padding: 14px 8px; border-radius: var(--radius-sm); writing-mode: vertical-rl; }
.lp-review-grid.lp-side-closed .lp-side-toggle .ws-icon { transform: none; }
@media (max-width: 1100px) { .lp-review-grid, .lp-review-grid.lp-side-closed { grid-template-columns: minmax(0, 1fr); } .lp-side-toggle { display: none; } .lp-review-grid.lp-side-closed .lp-review-side > :not(.lp-side-toggle) { display: revert; } }
@media print { .lp-review-grid { grid-template-columns: minmax(0, 1fr); } }
.lp-doc table td, .lp-doc table th { overflow-wrap: normal; word-break: normal; hyphens: none; }
/* Review the draft, simplified (Monday, 9 November): guidance as a hover on its heading, one line under the gaps
   heading, a faint dash in an empty answer, the title page's lines, the line under Save. */
.lp-doc .lp-has-guide .lp-guide-hover { text-decoration: underline dotted var(--muted); text-underline-offset: 4px; cursor: help; }
.lp-doc .lp-gaps-help { font-size: 13px; margin: -4px 0 10px; }
.lp-doc .lp-blank { color: var(--muted); opacity: .55; }
.lp-doc .lp-cover-title { font-size: 22px; font-weight: 500; margin: 0 0 2px; }
.lp-doc .lp-cover-line { font-size: 14px; color: var(--ink-2); margin: 0 0 2px; }
.lp-doc .lp-cover-line + :not(.lp-cover-line) { margin-top: 14px; }
.lp-save-line { margin: 8px 0 0; font-size: 13px; }
/* The SOA approve page, compact (decided Monday, 9 November): a row per document, read in the View panel, which
   has the file's shape (bold labels, page breaks) and the flags; tray hints on hover; one-line "Missing a file?". */
.lp-viewer-flags { margin: 8px 0 0; padding: 6px 10px; border-radius: var(--radius-sm); background: var(--warn-soft); font-size: 13px; }
/* The View panel's Document | Text (decided Tuesday, 10 November): the Document view's PDF fills the panel; Text has
   Save and Discard at the panel's foot. The segmented look for links, as bundle.css gives buttons. */
.ws-segmented a { border: 0; font: 400 10px/1.4 var(--font-sans); padding: 7px 12px; border-radius: var(--radius-pill); background: transparent; color: var(--muted); text-decoration: none; cursor: pointer; }
.ws-segmented a[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-segment); }
.lp-viewer-switch { align-self: center; }
.lp-viewer-body > .lp-viewer-note:first-child { margin: 0 0 12px; }
.lp-viewer-doc { display: flex; flex-direction: column; overflow: hidden; padding-bottom: 20px; }
.lp-viewer-pdf { flex: 1; height: auto; min-height: 0; }
.lp-viewer .lp-payload { font-size: 15px; line-height: 1.75; }
.lp-viewer-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 12px 24px; border-top: 1px solid var(--line-2); background: var(--surface); }
.lp-viewer-foot[hidden] { display: none; }
.lp-viewer-foot-note { flex: 1 1 260px; margin: 0; font-size: 12px; }
.lp-viewer-foot .lp-save-error { flex-basis: 100%; margin: 0; }
.lp-viewer-foot [aria-disabled="true"] { opacity: .45; cursor: default; }
.lp-off { color: var(--muted); text-decoration: underline dotted; cursor: default; }
@media (max-width: 700px) { .lp-viewer-foot { padding: 12px 16px; } }
/* The Document view's frame when there's no PDF to show: one line, in the panel's look. */
body.lp-frame-note { margin: 0; padding: 24px; background: var(--surface); color: var(--ink-2); font: 400 14px/1.6 var(--font-sans); }
.lp-doc-flagged { color: inherit; background: var(--warn-soft); border-radius: 3px; padding: 0 4px; }
.lp-group-head h2.lp-has-hint { cursor: help; }
.lp-group-line { margin: 4px 4px 10px; font-size: 14px; }
.lp-add-line { margin: 4px 4px 0; font-size: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.lp-add-other { font-size: 13px; color: var(--ink-2); }
.lp-legend-how { margin: 10px 0 2px; font-size: 13px; }
.lp-doc-editing { margin-top: 12px; }
/* The reviewer's note on the progress and approve pages. */
.lp-reviewer-note { margin-bottom: var(--grid-gap); }
.lp-progress-col .lp-reviewer-note { margin-bottom: 0; }
.lp-reviewer-note .lp-reviewer-said { margin: 0 0 8px; font-size: 14px; color: var(--ink-2); }
.lp-reviewer-note .lp-reviewer-text { margin: 0; padding: 10px 14px; border-left: 3px solid var(--warn); background: color-mix(in srgb, var(--warn) 8%, transparent); white-space: pre-wrap; overflow-wrap: anywhere; }
.lp-reviewer-note .lp-reviewer-kept { margin: 8px 0 0; font-size: 12px; }
.lp-reviewer-note.lost .lp-reviewer-said { color: var(--ink); }
#ai-draft:focus { outline: none; }
#ai-draft:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

/* The grade card (templates/_grade.html): how the draft did, check by check, and what needs the adviser. */
.lp-grade-head { margin: 0 0 8px; font-size: 16px; font-weight: 500; }
.lp-grade-bar { height: 6px; border-radius: 3px; background: var(--line-2); overflow: hidden; margin: 0 0 14px; }
.lp-grade-bar span { display: block; height: 100%; background: var(--good); }
.lp-grade-rows { list-style: none; margin: 0; padding: 0; }
.lp-grade-rows li { display: grid; grid-template-columns: 18px 30px minmax(0, 1fr) auto; gap: 8px; align-items: baseline; padding: 7px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.lp-grade-mark { width: 18px; height: 18px; padding: 3px; border-radius: 50%; align-self: center; fill: none; stroke: currentColor; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.lp-grade-pass .lp-grade-mark { background: var(--good); color: var(--on-dark); }
.lp-grade-note .lp-grade-mark { background: var(--butter); color: var(--on-butter); }
.lp-grade-fail .lp-grade-mark { background: var(--danger); color: var(--on-dark); }
.lp-grade-info .lp-grade-mark { background: var(--line-2); color: var(--ink-2); }
.lp-grade-code { font-size: 12px; font-weight: 500; color: var(--muted); }
.lp-grade-detail { font-size: 13px; color: var(--ink-2); text-align: right; }
.lp-grade-note .lp-grade-detail, .lp-grade-fail .lp-grade-detail { font-weight: 500; color: var(--ink); }
.lp-grade-sub { margin: 16px 0 6px; font-size: 14px; font-weight: 500; }
.lp-grade-you { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14px; }
.lp-grade-clear { margin: 14px 0 0; font-size: 14px; color: var(--good); font-weight: 500; }
.lp-grade-left { margin: 14px 0 0; font-size: 14px; color: var(--ink-2); }

/* A newer file in the client folder: the notice on the approve and review pages, and the queue tile. */
.lp-newer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; }

/* The review page's markers in the form (views.mark_draft), and the grade card's links to them. */
/* A marker is a chip with its words in the flow (Finn, Monday, 16 November; the words were a hover tip) */
.lp-mark { position: relative; display: inline-flex; align-items: center; gap: 4px; height: 18px; margin: 0 0 0 6px; padding: 0 7px 0 4px; border: 0; border-radius: 9px; vertical-align: -3px; cursor: pointer; font: 500 11px/1 var(--font-sans, inherit); white-space: nowrap; }
.lp-mark-word { letter-spacing: .1px; }
.lp-mark svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.lp-mark-warn { background: var(--butter); color: var(--on-butter); }
.lp-mark-gap { background: var(--line-2); color: var(--ink-2); }
.lp-mark-ok { background: var(--good); color: var(--on-dark); }
.lp-anchor { display: inline; }
.lp-hit-all { background: color-mix(in srgb, var(--warn) 8%, transparent); transition: background .3s; }
.lp-hit { outline: 2px solid var(--warn); outline-offset: 2px; background: color-mix(in srgb, var(--warn) 18%, transparent); transition: background .3s; }
.lp-grade-go { color: inherit; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.lp-grade-go:hover { text-decoration-color: currentColor; }
.lp-grade-pos { font-size: 12px; color: var(--muted); }
@media print { .lp-mark, .lp-anchor { display: none; } .lp-hit, .lp-hit-all { outline: none; background: none; } }

/* The review page's form, filled in like the form itself (draft.html; pipeline/entries.py). Editable only once the
   script has run (.lp-edit-on); a place typed into carries a small grey "edited". */
.lp-edit-on .lp-edit { cursor: text; border-radius: 4px; }
.lp-edit-on td > .lp-edit, .lp-edit-on .lp-box > .lp-edit { display: block; min-height: 1.5em; margin: -2px -4px; padding: 2px 4px; }
.lp-edit-on .lp-edit:hover { background: color-mix(in srgb, var(--pine) 8%, transparent); }
.lp-edit-on .lp-edit:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.lp-edit-on .lp-edit[aria-busy="true"], .lp-ticks[aria-busy="true"] { opacity: .6; }
.lp-edit-input { width: 100%; font: inherit; font-size: 14px; resize: vertical; }
.lp-edited { display: inline-block; margin-left: 6px; padding: 0 7px; border-radius: var(--radius-pill); background: var(--tray); border: 1px solid var(--line-2); color: var(--muted); font-size: 11px; line-height: 17px; vertical-align: middle; white-space: nowrap; }
.lp-entry-error { display: block; }
.lp-struck { text-decoration: line-through; color: var(--ink-2); }
.lp-ticks { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin: 0 0 14px; font-size: 14px; }
.lp-tick { display: inline-flex; align-items: center; gap: 8px; font: inherit; background: none; border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 4px 10px; color: var(--ink); cursor: pointer; }
.lp-tick[aria-pressed="true"] { border-color: var(--pine); }
.lp-tick:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
@media print { .lp-edit-help, .lp-entry-error { display: none; } .lp-tick { border: 0; padding: 0; } }

/* The review page's send-back note. */
.lp-sendback summary { list-style: none; cursor: pointer; }
.lp-sendback summary::-webkit-details-marker { display: none; }
.lp-sendback[open] { flex-basis: 100%; }
.lp-sendback .ws-field { margin: 12px 0 10px; }
.lp-sendback textarea { width: 100%; min-height: 84px; }

@media print {
  body, .lp-frame { background: #fff; padding: 0; min-height: 0; }
  .lp-ground { background: #fff; box-shadow: none; border-radius: 0; min-height: 0; }
  .ws-topbar, .lp-actions, .ws-segmented, form .ws-btn, .lp-no-print, .q-start { display: none; }
  .lp-content { padding: 0; max-width: none; }
  .lp-grid, .lp-grid.lp-side-fixed { grid-template-columns: minmax(0, 1fr); }
  .ws-card { background: #fff; box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
}
/* The review page's Document tab: the PDF of the Word file Save makes (pipeline/pdf.py), page by page. */
.lp-pdf-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 0 0 12px; }
.lp-pdf-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.lp-pdf { display: block; width: 100%; height: 78vh; min-height: 520px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: #fff; }
.lp-print-only { display: none; }
@media print { .lp-pdf { display: none; } .lp-print-only { display: block; } }

/* The approve page's text, edited where it's read (decided Friday, 6 November): a light wash on hover says it can be
   typed into; Save and Discard come up in the action bar. */
.lp-payload[contenteditable="true"], .lp-payload[contenteditable="plaintext-only"] { cursor: text; margin: -6px -8px; padding: 6px 8px; border-radius: 8px; transition: background .15s; }
.lp-payload[contenteditable="true"]:hover, .lp-payload[contenteditable="plaintext-only"]:hover { background: color-mix(in srgb, var(--pine) 5%, transparent); }
.lp-payload[contenteditable]:focus-visible, .lp-payload[contenteditable]:focus { outline: 2px solid var(--focus); outline-offset: 2px; background: var(--surface, #fff); }
.lp-payload .lp-ph[contenteditable="false"] { cursor: default; user-select: all; }
.lp-inplace-actions { border-right: 1px solid var(--line-2); padding-right: 12px; }
.ws .lp-save-error { flex-basis: 100%; margin: 0; font-size: 13px; }
@media (prefers-reduced-motion: reduce) { .lp-payload[contenteditable] { transition: none; } }

/* Firm settings: End sessions asks in its own cell; a session already ended says when. */
.lp-people td { vertical-align: top; }
.lp-people .lp-tick-cell input { width: 18px; height: 18px; }
.ws .lp-end p { margin: 0 0 8px; font-size: 13px; max-width: 36ch; }
.lp-ended { display: block; margin-bottom: 6px; font-size: 12px; }
.lp-find { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin-bottom: 8px; }
.lp-find .ws-field { flex: 1 1 240px; margin: 0; }
.lp-signins { list-style: none; margin: 0; padding: 0; }
.lp-signins li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.lp-signins li:last-child { border-bottom: 0; }
.lp-signins .ws-quiet { white-space: nowrap; font-size: 13px; }

/* Home polish (decided Monday, 9 November): the heading row carries the folder search; nothing waiting has its own
   card with the last three runs. */
.q-results { margin-bottom: var(--grid-gap); }
.q-empty .q-recent { list-style: none; margin: 0 0 12px; padding: 0; }
.q-empty .q-recent li { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.q-empty .q-recent li:last-child { border-bottom: 0; }
.q-empty .q-recent .ws-quiet { font-size: 13px; }
@media (max-width: 700px) { }

/* Approve page polish (decided Monday, 9 November): one line under the title, the chips' meanings a click away, a
   reason and Keep / Swap for a placeholder on each flag, and the unresolved count beside Approve. */
.ws .lp-approve-line { margin: 0; font-size: 15px; color: var(--ink-2); }
.lp-approve-line strong { color: var(--ink); font-weight: 600; }
.lp-legend { margin: 0 0 14px; font-size: 13px; color: var(--ink-2); }
.lp-legend > summary { cursor: pointer; list-style: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-legend > summary::-webkit-details-marker { display: none; }
.lp-legend > summary::before { content: "+"; display: inline-block; width: 14px; color: var(--pine); font-weight: 600; }
.lp-legend[open] > summary::before { content: "\2212"; }
.lp-legend > summary strong { color: var(--ink); font-weight: 500; }
.lp-legend dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 14px; margin: 10px 0 0 14px; }
.lp-legend dt { margin: 0; } .lp-legend dd { margin: 0; color: var(--ink); }
.lp-flag:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.lp-flag-pop { display: none; position: absolute; z-index: 6; left: 0; top: calc(100% + 6px); width: max-content; max-width: 320px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--card-edge); box-shadow: var(--shadow-lift); font-size: 12.5px; line-height: 1.45; color: var(--ink); white-space: normal; text-align: left; cursor: default; user-select: none; }
.lp-flag:hover > .lp-flag-pop, .lp-flag:focus-within > .lp-flag-pop { display: block; }
.lp-flag-pop::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.lp-flag-why { display: block; margin-bottom: 8px; color: var(--ink-2); }
.lp-flag-pop .ws-btn { padding: 4px 10px; font-size: 12px; margin-right: 6px; }
.lp-flag.kept { background: none; border-bottom: 1px dotted var(--muted); padding: 0; }
.lp-unresolved { font-size: 13px; color: var(--ink-2); white-space: nowrap; }
@media print { .lp-flag-pop, .lp-legend > summary::before { display: none; } }
.ws .lp-swapped-line { margin: 14px 0 0; font-size: 13px; }
.lp-swapped-line a, .lp-approve-line a { color: inherit; text-underline-offset: 3px; }
.lp-ph:target, .lp-flag:target { outline: 2px solid var(--focus); outline-offset: 2px; }


/* Second batch (decided Monday, 9 November): the run's progress page, a card's client folder linking to it, and
   Firm settings' runs in progress. */
/* The run's progress page (laid out again Monday, 9 November): the stage strip across the top, the current step
   pulsing; one card, centred, 640px at most. */
/* Laid out again (Monday, 9 November): one column, 720px, centred, 48px from the top bar, and in the middle of the
   screen when nothing else is on the page; the strip inside it, the done line muted under the strip. */
.lp-progress-page { display: flex; flex-direction: column; justify-content: center; min-height: calc(100vh - 200px); padding-top: 48px; box-sizing: border-box; }
.lp-progress-col { width: 100%; max-width: 720px; margin: 0 auto; display: grid; gap: 16px; }
.lp-progress-head { display: grid; gap: 10px; }
.lp-progress-strip { margin: 0; gap: 6px; }
.lp-progress-strip li { font-size: 12px; gap: 8px; }
.lp-progress-strip li.now > span { font-weight: 700; }
.lp-progress-strip li::before { height: 6px; border-radius: 3px; }
.lp-progress-strip li.now::before { height: 8px; margin-top: -1px; background: var(--pine); opacity: 1; }
.lp-progress-strip li.now > span { color: var(--pine); }
.lp-progress-strip.live li.now::before { animation: lp-pulse 1.6s ease-in-out infinite; }
@keyframes lp-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .lp-progress-strip.live li.now::before { animation: none; } }
.lp-progress-done { margin: 0; font-size: 13px; color: var(--muted); }
.lp-progress-card { position: relative; padding: 46px 36px 30px; }
.lp-progress-corner { position: absolute; top: 18px; right: 22px; margin: 0; font-size: 12px; color: var(--muted); }
.ws h1.lp-progress-now { margin: 0 0 20px; font-size: 32px; font-weight: 500; letter-spacing: -1px; line-height: 1.15; text-wrap: balance; }
.ws .lp-progress-say { margin: 0 0 14px; font-size: 15px; }
.lp-progress-say code { font: 500 14px/1.4 var(--font-sans); background: var(--tray); border: 1px solid var(--card-edge); border-radius: var(--radius-sm); padding: 3px 9px; }
.ws .lp-progress-allow { margin: -6px 0 14px; font-size: 13px; }
.ws .lp-progress-then { margin: 20px 0 0; font-size: 14px; color: var(--muted); }
/* How long Claude usually takes, under Open Claude (Tuesday, 10 November). */
.ws .lp-progress-wait { margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.lp-progress-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.lp-copy-label { margin: 0 0 6px; font-size: 13px; color: var(--muted); }
.lp-copy-box { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; padding: 8px 8px 8px 14px; border: 1px solid var(--card-edge); border-radius: var(--radius-sm); background: var(--tray); }
.lp-copy-text { flex: 1; min-width: 0; font: 500 15px/1.4 var(--font-sans); overflow-wrap: anywhere; user-select: all; }
@media print { .lp-progress-page { min-height: 0; padding-top: 0; } }
@media (max-width: 700px) { .lp-progress-strip li { font-size: 11px; } .lp-progress-card { padding: 44px 20px 24px; } .ws h1.lp-progress-now { font-size: 26px; } }
.lp-reassign { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 160px) auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.lp-reassign:last-of-type { border-bottom: 0; }
@media (max-width: 700px) { .lp-reassign { grid-template-columns: minmax(0, 1fr); } }
/* Firm settings → Insurers (Wednesday, 11 November): a row per insurer, its logo, names and a folded form to change it. */
.lp-insurers { list-style: none; margin: 0 0 14px; padding: 0; }
.lp-insurers > li { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 10px 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.lp-insurers > li:last-child { border-bottom: 0; }
.lp-insurer-logo img { display: block; max-width: 100px; height: auto; }
.lp-insurer-edit { grid-column: 1 / -1; }
.lp-insurer-edit[open] > summary { margin-bottom: 10px; }
.lp-insurer-edit > summary { list-style: none; display: inline-flex; }
.lp-insurer-edit > summary::-webkit-details-marker { display: none; }
.lp-insurer-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; }
.lp-insurer-form .ws-field { flex: 1 1 180px; margin: 0; }
.lp-insurer-add { padding-top: 14px; border-top: 1px solid var(--line-2); }
.lp-insurers .lp-end { grid-column: 1 / -1; }
@media (max-width: 700px) { .lp-insurers > li { grid-template-columns: 80px minmax(0, 1fr); } }
/* The sign-in page (page 10): the frame and ground only, and one card in the middle. Mockup: design/screens/SignIn.html. */
.lp-signin { min-height: calc(100vh - 24px); display: grid; place-items: center; padding: 24px 16px; box-sizing: border-box; }
.lp-signin-card { width: 100%; max-width: 400px; box-sizing: border-box; padding: 44px 36px 36px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.lp-signin-logo { display: block; height: 44px; width: auto; margin-bottom: 28px; }
.lp-signin-card .ws-title { margin: 0 0 28px; font-size: 36px; letter-spacing: -1.2px; }
.lp-signin-card .ws-btn { width: 100%; }
.lp-signin-card p { margin: 14px 0 0; font-size: 14px; color: var(--ink-2); }
.lp-signin-card p.lp-signin-lapsed { margin: -8px 0 20px; font-size: 15px; color: var(--ink); }

/* Review the draft: what the adviser told Claude in the chat (Wednesday, 11 November). A chip beside its field, and a
   list in the checks panel for those with no one place. */
.lp-said { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 4px 0 0 6px; padding: 2px 4px 2px 8px; border-radius: var(--radius-sm); background: var(--warn-soft); color: var(--ink); font-size: 12px; line-height: 1.4; }
.lp-said-use { font: inherit; font-weight: 600; padding: 2px 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: inherit; cursor: pointer; }
.lp-said-use:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.lp-said-use[disabled] { opacity: .6; cursor: progress; }
.lp-said-list ul { margin: 0; padding-left: 18px; font-size: 14px; }
.lp-said-list li + li { margin-top: 6px; }

/* Review the draft: its actions at the top of the draft panel, beside Hide checks (Wednesday, 11 November). Send back's
   note opens under its button, over the draft. */
.lp-draft-head { flex-wrap: wrap; gap: 10px 14px; }
.lp-draft-actions { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-left: auto; }
.lp-draft-actions form { margin: 0; }
/* "I've read this draft" beside Save (Codex's three-snapshot recheck, Wednesday, 18 November) */
.lp-draft-actions .lp-save-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.lp-read { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.lp-read input { width: 16px; height: 16px; margin: 0; accent-color: var(--ink); }
.lp-draft-actions .lp-sendback > form { position: absolute; right: 0; top: calc(100% + 8px); z-index: 6; width: min(420px, calc(100vw - 64px)); padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-lift); }
.lp-why-not { font-size: 13px; max-width: 360px; }
/* The Document tab while the PDF is made: a cream panel, a spinner, one line (Wednesday, 11 November). */
.lp-pdf-frame { position: relative; border-radius: var(--radius-sm); background: var(--surface-2); }
.lp-pdf-frame .lp-pdf { position: relative; z-index: 1; background: transparent; }
.lp-pdf-wait { position: absolute; inset: 0; z-index: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--ink-2); font-size: 14px; }
.lp-pdf-ready .lp-pdf-wait { display: none; }
.lp-pdf-ready .lp-pdf { background: #fff; }
.lp-spinner { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--pine); border-radius: 50%; animation: lp-spin .9s linear infinite; }
@keyframes lp-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .lp-spinner { animation: none; } }
@media print { .lp-pdf-frame { display: none; } }

/* A "not stated" answer on the review page says what to do with it on hover and keyboard focus (Wednesday,
   11 November). */
.lp-edit-on .lp-edit[data-hint] { position: relative; }
.lp-edit-on .lp-edit[data-hint]:hover::after, .lp-edit-on .lp-edit[data-hint]:focus-visible::after { content: attr(data-hint); position: absolute; left: 0; top: calc(100% + 4px); z-index: 4; padding: 2px 8px; border-radius: 6px; background: var(--charcoal); color: var(--on-dark); font-size: 12px; font-weight: 500; white-space: nowrap; pointer-events: none; }
.lp-edit-on .lp-edit.is-editing[data-hint]::after { display: none; }

/* Home's type-ahead under "Find a client folder" (decided Wednesday, 11 November) */
.q-suggest-wrap { position: relative; display: inline-block; }
.q-suggest { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px 0;
  list-style: none; background: var(--surface, #fff); border-radius: var(--radius-md, 10px);
  box-shadow: var(--shadow-md, 0 8px 24px rgba(0, 0, 0, .12)); min-width: 280px; }
.q-suggest [role=option] { padding: 8px 12px; cursor: pointer; }
.q-suggest [role=option][aria-selected=true], .q-suggest [role=option]:hover { background: var(--blue-tint); color: var(--blue-ink); }

/* Legacy's navy and blue, the buttons (11 November): secondary buttons a 1.5px navy outline with navy text, and every
   button but the primary and danger ones the blue tint on hover; a picked choice in a list row the same tint. */
.ws-btn:not(.primary):not(.danger) { border: 1.5px solid var(--navy); color: var(--navy); }
.ws-btn:not(.primary):not(.danger):hover { background: var(--blue-tint); }
.q-option:has(input:checked) { background: var(--blue-tint); color: var(--blue-ink); border-radius: var(--radius-sm); }
@media print { :root { --bg: #fff; --bg-wash: #fff; } }

/* Still in plain text (Finn, Friday, 13 November: "show risk, not reassurance"; pipeline/final_check.py): what could
   still be personal, in red, on the approve page's list, in the text and over the page in the Document view */
.lp-still { color: var(--ink-2); font-weight: 600; }
.lp-still.risk { color: var(--danger); }
/* A word that looks like a person's name and wasn't swapped (layer 3, Thursday, 19 November) */
.lp-not-swapped { display: inline-block; margin-right: 4px; padding: 1px 6px; border-radius: 4px; font-size: 12px; font-weight: 600; color: var(--on-dark); background: var(--danger); }
.lp-plain { margin-top: 14px; padding: 16px 18px; border-left: 3px solid var(--danger); }
.lp-plain-head { margin: 0; font-size: 17px; color: var(--danger); }
.lp-plain-lede { margin: 4px 0 0; font-size: 13.5px; }
.lp-plain-list { max-height: 340px; overflow-y: auto; }
.lp-plain-kind { color: var(--ink-3, var(--ink-2)); font-size: 13px; }
.lp-plain-strong { font-weight: 600; }
mark.lp-flag.lp-risk { background: #fde4e0; color: inherit; border-bottom: 2px solid var(--danger); }
.lp-page-mark.risk { background: rgba(182, 61, 32, .22); box-shadow: inset 0 -2px 0 var(--danger); }
@media print { .lp-plain-list { max-height: none; overflow: visible; } }
.lp-privacy-off { color: var(--danger); font-weight: 600; }
p.lp-privacy-off { margin: 6px 0 0; font-size: 14px; }

/* Swap and Keep answered on the page (Finn, Saturday, 14 November): the answer shown on its button, the line quieter,
   until Save answers or Approve sends them */
button[form="flag-actions"][aria-pressed="true"] { font-weight: 700; text-decoration: none; }
button[form="flag-actions"][aria-pressed="true"]::before { content: "\2713  "; }
.lp-plain-list li.lp-answered > a, .lp-plain-list li.lp-answered > .lp-plain-kind { opacity: .55; }
/* The few words around each question (Finn, Sunday, 15 November), the word itself in bold */
.lp-plain-context { display: inline-block; margin: 0 4px; font-size: 12px; font-style: italic; }
.lp-plain-context b { font-weight: 600; font-style: normal; }
/* Phones (Codex's web audit, Monday, 16 November, Mediums 8, 12 and 15, Low 17): History's and Settings' rows stack
   as label and value with their links in reach; the approve page's action bar stays compact, its questions list
   scrolling in two lines and a focused field scrolling up above it; an insurer's logo stays in its cell; a stage
   strip keeps its six bars and names the current step alone, "SOA · Step 5 of 6", the rest for screen readers. */
html:has(.lp-actionbar) { scroll-padding-bottom: 170px; }
@media (max-width: 700px) {
  .lp-run-row, .lp-person-row { display: block; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
  .lp-run-row td, .lp-person-row td { display: block; padding: 3px 0; border: 0; }
  .lp-run-row td[data-label]::before, .lp-person-row td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); font-size: 12px; }
  .lp-run-row td.lp-open-cell { padding-top: 6px; }
  .lp-run-row td .q-strip { margin-top: 6px; }
  .ws-table:has(.lp-run-row) thead, .ws-table:has(.lp-person-row) thead { display: none; }
  .lp-people .lp-contact { max-width: 100%; }
  .lp-actionbar { bottom: 0; padding: 10px 12px; }
  .lp-actionbar .lp-actionbar-note { display: none; }
  .lp-actionbar .lp-left { max-height: 3.4em; overflow-y: auto; font-size: 12px; }
  .lp-actionbar .ws-btn { padding: 8px 12px; font-size: 14px; }
  .lp-insurers > li { grid-template-columns: 80px minmax(0, 1fr); }
  .lp-insurer-logo img { max-width: 100%; width: auto; }
  .q-strip { position: relative; padding-bottom: 20px; }
  .q-strip li:not(.now) > span, .q-strip li:not(.now) > .lp-step-link > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .q-strip li.now > span, .q-strip li.now > .lp-step-link > span { position: absolute; left: 0; top: 12px; white-space: nowrap; }
  .q-strip li.now > span[data-step]::after, .q-strip li.now > .lp-step-link > span[data-step]::after { content: " · " attr(data-step); font-weight: 400; opacity: .8; }
}
/* A kind of cover kept as it is, with Change (Medium 7); a refusal beside its field and a save's notice on its card
   (Medium 9); the grade card's unfilled sections (Medium 10) */
.lp-six-kept .lp-inline-form { display: inline; margin-left: 8px; }
.lp-field-error { flex-basis: 100%; margin: 0; }
.lp-card-notice { margin: 0 0 12px; }
.lp-grade-unfilled { margin: 10px 0 0; font-size: 13px; color: var(--ink-2); }
.lp-grade-unfilled a { color: inherit; }

/* One-click fixes beside a marker, the things-to-check list and the Document tab's pages (Finn, Monday, 16 November) */
.lp-fix { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-left: 6px; font-size: 12px; vertical-align: -2px; }
.lp-fix-use, .lp-fix-edit { padding: 1px 8px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--surface, #fff); color: var(--ink); font: 500 11px/1.5 inherit; cursor: pointer; }
.lp-fix-use:hover, .lp-fix-edit:hover { border-color: var(--ink-2); }
.lp-fix-use:focus-visible, .lp-fix-edit:focus-visible, .lp-doc-fix:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.lp-fix-use[disabled] { opacity: .5; cursor: progress; }
.lp-to-check { margin: 0 0 18px; padding: 12px 16px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface-2); }
.lp-to-check h3 { margin: 0 0 6px; font-size: 15px; }
.lp-to-check ol { margin: 0; padding-left: 22px; display: grid; gap: 4px; font-size: 14px; }
.lp-to-check a { color: inherit; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.lp-to-check a:hover { text-decoration-color: currentColor; }
.lp-to-check-done { margin: 8px 0 0; font-size: 12px; }
.lp-pdf-pages { display: grid; gap: 14px; justify-items: center; padding: 14px 0; }
.lp-pdf-page { position: relative; box-shadow: var(--shadow-lift); background: #fff; }
.lp-pdf-page canvas { display: block; }
.lp-doc-hit { position: absolute; z-index: 2; border: 2px solid var(--warn); border-radius: 3px; background: color-mix(in srgb, var(--warn) 22%, transparent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--warn) 18%, transparent); }
.lp-doc-fix { position: absolute; left: 0; top: 100%; margin-top: 6px; padding: 3px 9px; border-radius: 9px; background: var(--charcoal); color: var(--on-dark); font: 500 12px/1.4 inherit; text-decoration: none; white-space: nowrap; }
.lp-pdf-frame:not(.lp-pdf-ready) .lp-pdf-pages { min-height: 60vh; }
@media print { .lp-fix, .lp-to-check, .lp-doc-hit { display: none; } }
/* Another run on a client's card (Finn, Tuesday, 17 November): one Approve per card, the SOA's; any other run a small
   line under it, "Fact find · Approve 2JBQ", in the card's own colour, never a second button. */
.q-also-small { margin-top: 6px; font-size: 13px; }
.q-also-link { color: inherit; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.q-also-link:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

/* Home (Finn's redesign, Tuesday, 17 November, his list and Codex's merged). The page centred to the grid's width:
   four cards across on a wide screen, three on a laptop (to 1600px), then two, then one, each 400px at most so nothing
   stretches. A card is white with its status's colour on its left edge (blue ready, amber to check, red stopped, green
   done, grey waiting), its status in words where the stage strip was, 15px text, and one main action at its foot in
   blue, the foots lined up along the bottom of a row; View files and the run code small and grey. Blue is for actions
   only. The greeting is smaller, with the folder search beside it; tabs with their counts sit over the cards. */
:root { --q-card-max: 400px; --q-cols: 4; --q-gap: 16px; }
@media (max-width: 1600px) { :root { --q-cols: 3; } }
@media (max-width: 1100px) { :root { --q-cols: 2; } }
@media (max-width: 700px) { :root { --q-cols: 1; } }
.q-flash, .q-ask, .q-head, .q-search-error, .q-results, #q-board, #q-recent {
  max-width: calc(var(--q-cols) * var(--q-card-max) + (var(--q-cols) - 1) * var(--q-gap)); margin-inline: auto; }
.lp-head.q-head { gap: 6px; margin-bottom: 18px; }
.q-head-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.ws-title.q-greeting { margin: 0; font-size: 26px; letter-spacing: -0.6px; line-height: 1.2; }
.q-search { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; flex: 0 1 420px; min-width: 0; }
.q-search .q-suggest-wrap { display: block; flex: 1 1 auto; min-width: 0; }
.q-search .ws-input { width: 100%; box-sizing: border-box; padding-top: 8px; padding-bottom: 8px; font-size: 15px; }
.q-search .ws-btn { flex: none; }
.q-search-error { margin: -8px 0 12px; text-align: right; }
.ws h2.q-row-title { margin: 0 0 12px; font-size: 15px; font-weight: 600; letter-spacing: -0.2px; }
.q-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; }
.q-tab { display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: #fff; color: var(--ink-2); font-size: 14px; font-weight: 500; text-decoration: none; }
.q-tab:hover { border-color: var(--ink-2); color: var(--ink); }
.q-tab.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.q-tab:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.q-count { min-width: 1.4em; padding: 0 6px; border-radius: 9px; background: var(--surface-2); color: var(--ink-2); font-size: 12px; font-weight: 600; text-align: center; }
.q-tab.on .q-count { background: #ffffff2e; color: #fff; }
.q-tiles { display: grid; grid-template-columns: repeat(var(--q-cols), minmax(0, 1fr)); gap: var(--q-gap); }
.q-tiles[hidden], .q-tile[hidden], h2.q-waiting-head[hidden] { display: none; }
.q-tile { --q-edge: #c3ccda; position: relative; display: flex; flex-direction: column; min-width: 0; box-sizing: border-box; padding: 16px 18px 16px 20px; border: 1px solid var(--card-rule); border-left: 4px solid var(--q-edge); border-radius: 12px; background: #fff; color: var(--ink); box-shadow: 0 1px 2px #13213a0d; font-size: 15px; line-height: 1.45; }
.q-tile.q-edge-blue { --q-edge: var(--blue); }
.q-tile.q-edge-amber { --q-edge: var(--warn); }
.q-tile.q-edge-red { --q-edge: var(--danger); }
.q-tile.q-edge-green { --q-edge: var(--good); }
.q-tile.q-edge-grey { --q-edge: #c3ccda; }
.q-tile.waiting { background: #fbfcfe; }
.q-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13px; line-height: 1.3; }
.q-status { font-weight: 600; color: var(--ink-2); }
.q-tile .time { flex: none; font-size: 12px; color: var(--muted); white-space: nowrap; }
.q-tile h3 { margin: 6px 0 0; font-size: 18px; font-weight: 600; letter-spacing: -0.3px; line-height: 1.25; overflow-wrap: anywhere; }
.q-tile h3 .q-headline { color: inherit; text-decoration: none; }
.q-tile h3 .q-headline:hover { text-decoration: underline; text-underline-offset: 3px; }
.q-tile .co { margin: 6px 0 0; color: var(--ink-2); }
.q-stop { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 0; padding: 8px 10px; border-radius: 8px; background: #fbe8e3; color: #8a2a12; font-size: 14px; font-weight: 600; line-height: 1.35; }
.q-shield { flex: none; width: 15px; height: 15px; margin-top: 1px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.q-tile .q-in-claude { margin: 8px 0 0; }
.q-tile .q-in-claude code { font: 500 14px/1.4 var(--font-sans); color: var(--ink); background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 3px 9px; overflow-wrap: anywhere; }
.q-tile .q-also { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 8px 0 0; font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.q-tile .q-also a { color: var(--pine); text-underline-offset: 3px; }
.q-tile .q-also-stop { color: #8a2a12; }
.q-tile .q-also-stop .q-shield { width: 13px; height: 13px; margin-top: 0; }
.q-tile .foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: auto; padding-top: 14px; }
.q-tile .verb { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: var(--radius-pill); background: var(--blue); color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; transition: background .18s; }
.q-tile a.verb:hover { background: var(--blue-hover); }
.q-tile .verb .ws-icon { width: 14px; height: 14px; }
.q-tile .verb:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.q-tile .q-meta { display: flex; align-items: center; gap: 10px; margin: 0 0 0 auto; font-size: 12px; color: var(--muted); }
.q-tile .q-files { color: var(--pine); font-size: 13px; text-underline-offset: 3px; }
.q-tile .q-run { font-size: 12px; color: var(--muted); white-space: nowrap; }
.q-tile .q-wait { margin: 0; font-size: 14px; color: var(--ink-2); }
.q-tile .q-choices { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.q-tile .ws-btn.q-picked { gap: 8px; padding: 9px 16px; border: 0; border-radius: var(--radius-pill); background: var(--blue); color: #fff; font-size: 14px; font-weight: 600; }
.q-tile .ws-btn.q-picked:hover { background: var(--blue-hover); }
.q-tile .q-also-run { display: block; }  /* one sentence: "Also: SOA. With Tara Quinn to review, run 89DQ." */
.q-tile .q-restart { font: inherit; font-size: 13px; font-weight: 500; background: none; border: 0; padding: 4px 0; color: var(--pine); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
/* Sign off on its card: Sign off SOA and "Yes, sign off" are the card's blue action; Open in SharePoint and "Not yet"
   navy outlines. */
.q-tile .q-confirm > summary.ws-btn, .q-tile .q-confirm-box button.ws-btn { display: inline-flex; align-items: center; padding: 9px 16px; border: 0; border-radius: var(--radius-pill); background: var(--blue); color: #fff; font-size: 14px; font-weight: 600; }
.q-tile .q-confirm > summary.ws-btn:hover, .q-tile .q-confirm-box button.ws-btn:hover { background: var(--blue-hover); }
.q-tile .q-confirm[open] > summary { display: none; }  /* asked: the question takes its place */
.q-tile .q-signoff > a.ws-btn, .q-tile .q-confirm-box .q-aside { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.q-tile .q-confirm > summary:focus-visible, .q-tile .q-confirm-box button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.q-empty-tab, .q-no-match { margin: 4px 0 0; font-size: 15px; }
@media (max-width: 700px) {
  .q-head-row { flex-direction: column; align-items: stretch; }
  .q-search { flex: 1 1 auto; }
  .q-search-error { text-align: left; }
}
@media print { .q-tabs, .q-search { display: none; } }
/* The progress page's files the run read, where a Home card's View files lands (Tuesday, 17 November) */
.lp-progress-read { padding: 2px 4px; }
.ws .lp-progress-read-title { margin: 0 0 6px; font-size: 15px; font-weight: 600; }
.lp-progress-read ul { margin: 0; padding-left: 18px; display: grid; gap: 3px; font-size: 14px; color: var(--ink-2); overflow-wrap: anywhere; }
