/* The client's Start pages (/start/:token). Built on /css/app.css tokens and components;
   only what app.css does not have lives here. Works from 360 px up with no sideways scroll. */

/* The footer sits at the bottom of the window on short pages. */
body.start { background: var(--paper); min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body.start > .start-main { flex: 1 0 auto; }
/* The hidden attribute wins over component display rules (.btn is inline-flex), so the Copy buttons
   stay hidden until start.js shows them, and a page without JavaScript has no buttons that do nothing. */
body.start [hidden], .copy-btn[hidden] { display: none !important; }
/* app.css scrolls smoothly; not for people who ask for less motion. */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.start-wrap { max-width: 860px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--surface); padding: 8px 12px; border-radius: var(--r-s); }
.skip:focus { left: 12px; }

/* Header: the Apter lockup, then the client's organisation */
.start-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.start-header .bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; min-height: 60px; padding-block: 10px; }
.start-header .lockup { color: var(--ink); }
.start-org { font-size: .95rem; color: var(--ink-2); min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) {
  .start-header .lockup .product { font-size: .85rem; }
  .start-org { flex-basis: 100%; font-size: .9rem; }
}

.start-main { padding: clamp(20px, 3vw, 36px) 0 64px; }
.start-main h1 { font-size: clamp(1.6rem, 3.2vw, 2.1rem); }
.start-main .lede { font-size: 1.05rem; }
.start-main section + section, .start-main .routes + section, .start-main .routes + form { margin-top: 32px; }
.start-main pre, .start-main textarea, .start-main dd, .start-main p { overflow-wrap: anywhere; }

.start-footer { border-top: 1px solid var(--line); padding: 24px 0 36px; color: var(--ink-3); font-size: .86rem; }
.start-footer p { margin: 0 0 6px; }

/* "What to do now": the first thing a person sees */
.now { border: 1px solid var(--ink); box-shadow: var(--shadow); }
.now .kicker { font-size: .74rem; font-weight: 400; margin-bottom: 8px; }
.now-text { font-size: clamp(1.1rem, 2.2vw, 1.3rem); line-height: 1.35; margin-bottom: 16px; max-width: 52ch; }
.flash { margin-bottom: 18px; }

/* The five-step strip */
.start-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.start-strip .st { margin: 0; min-width: 0; position: relative; }
.start-strip .st-link { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 14px 14px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); color: var(--ink); text-decoration: none; }
.start-strip a.st-link:hover { border-color: var(--ink); color: var(--ink); }
.start-strip .st.current .st-link { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.start-strip .st-n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: .78rem; background: var(--idle-soft); color: var(--ink-2); flex: none; }
.start-strip .st.done .st-n { background: var(--pass); color: #fff; }
.start-strip .st.current .st-n { background: var(--ink); color: #fff; }
.start-strip .st-body { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; min-width: 0; }
.start-strip .st-label { font-weight: 600; line-height: 1.25; }
.start-strip .st-short { font-size: .84rem; color: var(--ink-2); line-height: 1.35; }
.start-strip .chip { font-size: .74rem; }
@media (max-width: 760px) {
  .start-strip { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .start-strip .st-link { flex-direction: row; align-items: flex-start; gap: 12px; padding: 12px; }
}

/* Compact strip at the top of each step page */
.step-nav { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.step-nav .back { font-size: .88rem; color: var(--ink-2); align-self: flex-start; }
/* The pills wrap onto a second line, so every step is always in view. */
.start-strip.compact { display: flex; flex-wrap: wrap; gap: 4px; grid-template-columns: none; }
.start-strip.compact .st { flex: none; max-width: 100%; }
.start-strip.compact .st-link { flex-direction: row; align-items: center; gap: 7px; padding: 5px 10px 5px 5px; border-radius: 99px; font-size: .84rem; }
.start-strip.compact .st-short, .start-strip.compact .chip { display: none; }
.start-strip.compact .st-label { font-weight: 500; }
.start-strip.compact .st-n { width: 22px; height: 22px; font-size: .72rem; }
@media (max-width: 640px) {
  .start-strip.compact .st:not(.current) .st-label { display: none; }
  .start-strip.compact .st:not(.current) .st-link { padding: 3px; }
  .start-strip.compact { gap: 5px; }
}

.step-head { margin-bottom: 20px; }
.overview-head { margin-bottom: 16px; }
.form-alert { margin-bottom: 18px; }
.form-alert a { color: inherit; font-weight: 500; }
.banner .stack p { margin: 0; }
.lock-empty { font-size: .92rem; }
.lock-note { margin: 0 0 14px; }
.criteria-form.show-empty .crit-field.is-empty textarea { border-color: var(--amber-line); box-shadow: inset 3px 0 0 var(--amber-line); }
.crit-field.is-changed textarea { border-color: var(--amber-line); box-shadow: inset 3px 0 0 var(--amber-line); }
.crit-field .changed-note { margin: 6px 0 0; font-size: .85rem; color: var(--amber); }
.step-head .kicker { margin-bottom: 6px; }
.how .numbered > li p { color: var(--ink-2); }
.your-part { margin-top: 14px; font-weight: 500; }
/* "How it works" on the overview: one closed disclosure under the step cards */
.how-more { margin-top: 24px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.how-more > summary { cursor: pointer; padding: 12px 16px; min-height: 44px; display: flex; align-items: center; gap: 10px; list-style: none; }
/* Both disclosures: a chevron that turns when open, in place of the marker display:flex removes */
.agent-more > summary::-webkit-details-marker, .how-more > summary::-webkit-details-marker { display: none; }
.agent-more > summary::before, .how-more > summary::before { content: ""; flex: none; width: 7px; height: 7px; border-right: 1.5px solid var(--ink-2); border-bottom: 1.5px solid var(--ink-2); transform: rotate(-45deg); transition: transform .15s; }
.agent-more[open] > summary::before, .how-more[open] > summary::before { transform: rotate(45deg); }
@media (prefers-reduced-motion: reduce) { .agent-more > summary::before, .how-more > summary::before { transition: none; } }
.how-more > summary h2 { display: inline; font-size: 1.05rem; margin: 0; }
.how-more[open] > summary { border-bottom: 1px solid var(--line); }
.how-more .numbered { margin: 14px 16px 6px; }
.waiting p { margin: 0; font-size: 1.05rem; }

/* Route tabs: anchors without JS, tabs with it */
.route-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.route-tab { display: inline-flex; align-items: center; min-height: 40px; padding: 7px 16px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 500; font-size: .93rem; }
.route-tab:hover { border-color: var(--ink); color: var(--ink); }
.route-tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.route { margin-bottom: 16px; scroll-margin-top: 16px; }
.route > h2 { font-size: 1.2rem; margin-bottom: 4px; }
.route-hint { color: var(--ink-2); }
.routes.js-tabs .route > h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.route h3 { margin-top: 22px; }

/* The agent panel: three numbered actions, then the live status */
.agent-action { margin-top: 22px; }
.agent-action > h3 { margin: 0 0 8px; font-size: 1.05rem; }
.agent-action:first-child { margin-top: 10px; }
.agent-action .key-form { margin-top: 4px; }
.agent-more-list { display: grid; gap: 8px; margin-top: 4px; }
.agent-more { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.agent-more > summary { cursor: pointer; padding: 9px 14px; font-weight: 500; font-size: .93rem; min-height: 40px; display: flex; align-items: center; gap: 10px; list-style: none; }
.agent-more[open] > summary { border-bottom: 1px solid var(--line); }
.agent-more-body { padding: 12px 14px 2px; min-width: 0; }
.agent-more-body > p:first-child { margin-top: 0; }

/* Copy boxes */
.copy-box { position: relative; margin: 0 0 14px; }
.copy-box { display: flex; flex-direction: column; }
.copy-box pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; word-break: normal; }
.copy-box .copy-label { font-size: .86rem; font-weight: 500; margin-bottom: 5px; }
.copy-box .btn.copy-btn { align-self: flex-end; margin-top: 6px; min-height: 32px; padding: 3px 14px; font-size: .82rem; background: var(--surface); }
.copy-box .btn.copy-btn:hover { border-color: var(--ink); }
.key-shown { border: 1px solid var(--amber-line); background: var(--amber-soft); border-radius: var(--r); padding: 14px; margin-bottom: 8px; }
.key-shown .note { border-color: var(--amber-line); color: var(--ink); margin: 10px 0 0; }
.hint { font-size: .84rem; color: var(--ink-3); }
.agent-status { margin-top: 22px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); }
.agent-status h3 { margin: 0 0 6px; }
.agent-status p { margin: 0 0 4px; }
.agent-status [data-counts-line] { display: block; color: var(--ink-2); font-size: .9rem; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--idle-line); margin-right: 6px; }
.dot.on { background: var(--pass); }

/* Sources of answers */
.origin { vertical-align: middle; margin-left: 4px; font-weight: 400; }
.origin.src-person { background: var(--idle-soft); color: var(--ink-2); }
.origin.src-word { background: #e6f0fa; color: #1f4f80; }
.origin.src-apter { background: var(--amber-soft); color: var(--amber); }

.actions { margin-top: 8px; }
.answers-form textarea { min-height: 96px; }
.answers-form .files-form { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 18px; }

/* What Apter has received */
.received { border-top: 1px solid var(--line); padding-top: 20px; }
.answers { margin: 0; }
.answers dt { font-weight: 500; margin-top: 12px; }
.received h3 { margin-top: 22px; }
.answers dd { margin: 4px 0 0; white-space: pre-wrap; color: var(--ink-2); }
.file-list { list-style: none; padding: 0; margin: 0; }
.file-list li { padding: 8px 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.file-list li a { overflow-wrap: anywhere; min-width: 0; }
.file-list .meta { font-size: .82rem; color: var(--ink-3); }

/* Step 2: the map fits the column at every width. Fixed layout, so long words wrap inside their
   cell and the table never scrolls sideways; headers wrap too. Below 640 px it stacks (app.css). */
.map-table td.ref { font-family: var(--mono); white-space: nowrap; }
.map-table td { overflow-wrap: anywhere; }
.map-table table { table-layout: fixed; }
.map-table th { white-space: normal; overflow-wrap: break-word; line-height: 1.35; }
.map-table th:first-child { width: 4.75rem; white-space: nowrap; }
.map-table .map-cols-5 th:nth-child(2) { width: 20%; }
.map-table .map-cols-5 th:nth-child(4) { width: 20%; }
.map-table .map-cols-5 th:nth-child(5) { width: 22%; }
.map-table .map-cols-4 th:nth-child(2) { width: 34%; }
.map-table .map-cols-4 th:nth-child(4) { width: 28%; }
/* Stacked on a phone: a cell with nothing in it shows no label either */
@media (max-width: 640px) { .map-table td:empty { display: none; } }
.comments-block { margin-top: 28px; }
.comments { list-style: none; padding: 0; margin: 0 0 18px; }
.comment { border-left: 3px solid var(--line-2); padding: 4px 0 4px 12px; margin: 0 0 14px; }
.comment.resolved { border-left-color: var(--pass-line); }
.comment .meta { font-size: .82rem; color: var(--ink-3); margin: 0 0 4px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.comment .text { white-space: pre-wrap; margin: 0 0 4px; }
.comment .reply { margin: 0; font-size: .92rem; }
.confirm-form, .lock-form { margin-top: 28px; }
.confirm-form h2, .lock-form h2 { margin-bottom: 12px; }
.confirmed { margin-top: 24px; }
.banner { flex-wrap: wrap; }

/* Step 3: one card per check point */
.guidance { margin-bottom: 14px; }
.guidance > summary { cursor: pointer; list-style: none; }
.guidance > summary::-webkit-details-marker { display: none; }
.guidance > summary h2 { display: inline; font-size: 1rem; }
.guidance ul { margin: 10px 0 0; }
.start-with { font-weight: 500; }
/* minmax(0, 1fr) and overflow-wrap: a stage that is one long link or file name wraps at 390 px. */
.crit-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.crit-card { scroll-margin-top: 16px; min-width: 0; }
.crit-head h3 { font-size: 1.08rem; margin-bottom: 8px; overflow-wrap: anywhere; }
.crit-head .ref { font-family: var(--mono); font-size: .8rem; font-weight: 500; color: var(--ink-3); margin-right: 6px; }
.crit-meta, .crit-values { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 14px; font-size: .9rem; margin: 0 0 14px; }
.crit-meta dt, .crit-values dt { color: var(--ink-3); }
.crit-meta dd, .crit-values dd { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.crit-values { grid-template-columns: minmax(0, 1fr); }
.crit-values dt { margin-top: 8px; }
@media (max-width: 560px) { .crit-meta { grid-template-columns: minmax(0, 1fr); gap: 0; } .crit-meta dd { margin-bottom: 6px; } }
.crit-field { margin-bottom: 18px; }
.crit-field label { line-height: 1.35; }
.unknown-btn { font-size: .84rem; margin-top: 6px; min-height: 32px; }
.sticky-save { position: sticky; bottom: 0; background: linear-gradient(to top, var(--surface) 70%, transparent); padding: 12px 0 4px; margin-top: 12px; }
.lock-form .btn[disabled] { pointer-events: none; }
.lock-saves { margin: 0 0 12px; }
/* The hidden first button of the criteria form: Enter in the lock's name or role field locks. */
.default-submit { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; padding: 0; border: 0; }
.locked-banner { margin-bottom: 14px; }
/* What a Word upload could not read, and Send to Apter (steps 1 and 3). */
.word-result, .send-box { margin: 12px 0 16px; }
.word-result h3 { margin-top: 0; }
.word-result ul { margin: 4px 0 8px; padding-left: 20px; }
.word-comments { margin: 4px 0 0; padding: 8px 12px; border-left: 3px solid var(--line); white-space: pre-wrap; overflow-wrap: anywhere; }
.send-box p { margin-top: 0; }

/* Steps 4 and 5 */
.status-card .now-text { margin-bottom: 10px; }
.report-card { margin-bottom: 14px; }
.report-card.earlier { opacity: .85; }
.report-card .earlier-label { margin: 0 0 6px; }
.sign-form { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 14px; }
.sign-form fieldset { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.sign-form legend { padding: 0; }

/* admin */
/* Apter's /admin pages (B3). Everything below is scoped to body.admin. */
body.admin .admin-label { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; background: var(--ink); color: #fff; border-radius: 4px; padding: 2px 7px; }
body.admin .admin-next { margin: 0 0 14px; }
body.admin .admin-next .muted { display: block; font-size: .86rem; margin-top: 2px; }
body.admin .start-strip { margin-bottom: 22px; }
body.admin .admin-panels > .admin-panel { scroll-margin-top: 16px; }
body.admin .admin-panel h2 { font-size: 1.3rem; margin-bottom: 12px; }
body.admin .admin-panel h3 { font-size: 1rem; margin: 22px 0 8px; }
body.admin .admin-text { white-space: pre-wrap; overflow-wrap: anywhere; }
body.admin .admin-answers { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; margin: 0; }
body.admin .admin-answers dt { font-weight: 500; font-size: .9rem; margin-top: 10px; }
body.admin .admin-answers dd { margin: 0; }
body.admin .admin-answers .tiny { margin: 4px 0 0; }
body.admin .admin-once code.admin-secret { display: block; font-family: var(--mono); font-size: .85rem; overflow-wrap: anywhere; user-select: all; background: var(--surface); color: var(--ink); border: 1px solid var(--amber-line); border-radius: var(--r-s); padding: 8px 10px; }
body.admin .admin-copy textarea, body.admin .admin-copy input[readonly] { width: 100%; font-family: var(--mono); font-size: .84rem; background: var(--surface-2); }
body.admin .admin-email { margin: 12px 0; }
body.admin .admin-published { margin: 12px 0; }
body.admin .admin-published > summary { cursor: pointer; font-weight: 500; margin-bottom: 8px; }
body.admin .admin-row { border: 1px solid var(--line); margin: 0 0 12px; padding: 12px 14px 2px; min-width: 0; }
body.admin .admin-row-head { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: flex-end; margin-bottom: 8px; }
body.admin .admin-ref { margin: 0; width: 7.5em; }
body.admin .admin-ref input { font-family: var(--mono); }
body.admin .admin-row-actions { gap: 6px; margin-bottom: 2px; }
body.admin .admin-row textarea { min-height: 3.2em; }
body.admin .admin-editor-actions { margin-top: 8px; gap: 8px; }
body.admin .admin-editor-actions .grow { flex: 1 1 0; }
body.admin .admin-comments { list-style: none; padding: 0; margin: 0; }
body.admin .admin-comment { border-left: 3px solid var(--line-2); padding: 4px 0 4px 12px; margin: 0 0 16px; }
body.admin .admin-comment.resolved { border-left-color: var(--pass-line); }
body.admin .admin-comment .tiny { margin: 0 0 4px; }
body.admin .admin-reports { list-style: none; padding: 0; margin: 0; }
body.admin .admin-reopen { margin-top: 8px; }
body.admin .admin-record { margin-top: 12px; }
body.admin .admin-payload { display: block; font-family: var(--mono); overflow-wrap: anywhere; color: var(--ink-2); margin-top: 2px; }
body.admin .admin-list td { vertical-align: top; }
body.admin .admin-criteria { table-layout: fixed; width: 100%; }
body.admin .admin-criteria th:first-child { width: 3.5em; }
body.admin .admin-criteria th:nth-child(2) { width: 16%; }
body.admin .admin-criteria td { vertical-align: top; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  body.admin .app-header .admin-home { display: none; }
  body.admin .admin-editor-actions .grow { display: none; }
  body.admin .admin-row-actions .btn { flex: 1 1 auto; }
}

/* The report page, the workspace (docs/REPORT-FIRST.md §5). One column at every width; the cards stack. */
.report-banner { margin: 0 0 18px; padding: 10px 16px; border-radius: var(--r); border: 1px solid var(--amber-line); background: var(--amber-soft); color: var(--amber); font-weight: 600; }
.report-banner p { margin: 0; }
.report-banner.signed { border-color: var(--pass-line); background: var(--pass-soft); color: var(--pass); }
.run-line, .report-alerts { margin-bottom: 16px; }
.report-alerts ul { margin: 6px 0 0; }
.report-alerts li + li { margin-top: 4px; }
.report-summary { margin-bottom: 24px; }
.sum-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin: 10px 0 18px; }
.sum-cell { border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; background: var(--surface-2); min-width: 0; }
.sum-cell dt { font-size: .8rem; color: var(--ink-2); line-height: 1.3; }
.sum-cell dd { margin: 4px 0 0; font-size: 1.4rem; font-weight: 600; font-family: var(--mono); }
.sum-cell.pass dd { color: var(--pass); }
.sum-cell.fail { border-color: var(--fail-line); background: var(--fail-soft); }
.sum-cell.fail dd { color: var(--fail); }
.sum-cell.amber { border-color: var(--amber-line); background: var(--amber-soft); }
@media (max-width: 760px) { .sum-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 440px) { .sum-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.not-checked li { margin-bottom: 4px; overflow-wrap: anywhere; }
.report-cards { display: grid; gap: 16px; }
.report-cards > h2 { margin: 0; }
.cp-card { scroll-margin-top: 16px; min-width: 0; }
.cp-head h3 { font-size: 1.12rem; margin-bottom: 10px; overflow-wrap: anywhere; }
.cp-part { border: 0; margin: 0 0 14px; padding: 0; min-width: 0; }
.cp-part-h { font-weight: 600; font-size: .95rem; margin-bottom: 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.prov { display: inline-block; font-weight: 400; font-size: .76rem; padding: 1px 8px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--ink-2); background: var(--surface-2); }
.prov.confirmed { border-color: var(--pass-line); background: var(--pass-soft); color: var(--pass); }
.cp-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 14px; }
.cp-fields .field { min-width: 0; }
.cp-fields textarea, .cp-fields input[type="text"] { width: 100%; }
.cp-fields .field.is-changed textarea, .cp-fields .field.is-changed input { border-color: var(--amber-line); box-shadow: inset 3px 0 0 var(--amber-line); }
@media (max-width: 640px) { .cp-fields { grid-template-columns: minmax(0, 1fr); } }
.cp-actions { align-items: center; gap: 10px 14px; flex-wrap: wrap; }
.cp-actions .hint { margin: 0; flex: 1 1 220px; }
.cp-values { display: grid; grid-template-columns: minmax(0, 12rem) minmax(0, 1fr); gap: 4px 14px; margin: 0; }
.cp-values dt { color: var(--ink-2); font-size: .88rem; }
.cp-values dd { margin: 0; }
@media (max-width: 560px) { .cp-values { grid-template-columns: minmax(0, 1fr); } .cp-values dd { margin-bottom: 8px; } }
.cp-checks { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 12px; }
.cp-checks h4 { margin: 0 0 8px; font-size: 1rem; }
.check-list { display: grid; gap: 10px; }
.check { border: 1px solid var(--line); border-left: 4px solid var(--idle-line); border-radius: var(--r); padding: 10px 12px; min-width: 0; }
.check.st-pass { border-left-color: var(--pass); }
.check.st-fail { border-left-color: var(--fail); }
.check.st-not_enough_evidence, .check.st-waiting { border-left-color: var(--amber-line); }
.check p { margin: 0 0 6px; overflow-wrap: anywhere; }
.check-head { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.check-kind { font-weight: 500; }
.check-q { font-style: italic; }
.check-label { font-weight: 500; }
.quote { margin: 4px 0 8px; padding: 6px 12px; border-left: 3px solid var(--line-2); background: var(--surface-2); border-radius: 0 var(--r-s) var(--r-s) 0; }
.quote p { margin: 0 0 4px; font-family: var(--mono); font-size: .84rem; white-space: pre-wrap; }
.quote cite { font-style: normal; font-size: .78rem; color: var(--ink-3); overflow-wrap: anywhere; }
.report-foot { margin-top: 32px; display: grid; gap: 14px; }
.report-foot > h2, .report-foot > p { margin: 0; }
.report-versions { margin-top: 32px; }
.version-list li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.version-list p { margin: 0; }
.report-link { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 16px; }
.report-link p { margin: 0; flex: 1 1 240px; }
/* Admin additions on the report page */
.admin-report-controls { margin-bottom: 24px; }
.admin-plan { border-top: 1px dashed var(--line-2); margin-top: 14px; padding-top: 10px; }
.admin-plan h4 { margin: 0 0 8px; font-size: .95rem; }
.admin-check.off { opacity: .7; }
.admin-check-form { margin-top: 10px; }
.inline-form { display: inline; margin-left: 8px; }
.report-cards ul.plain, .report-alerts ul.plain, ol.version-list, ul.not-checked, .admin-plan ul.plain { list-style: none; margin: 0; padding: 0; }
.run-line[hidden], .report-alerts[hidden] { display: none !important; }
/* Review of 5 Dec 2026: results older than the card's text, Apter's coverage review, the lost-text block. */
.cp-checks .note.older, .step-head .note.behind { color: var(--amber); font-weight: 500; }
.review-line { margin: 0 0 8px; }
.admin-review { border-top: 1px dashed var(--line-2); margin-top: 14px; padding-top: 10px; }
.admin-review h4 { margin: 0 0 8px; font-size: .95rem; }
.admin-review .check-line { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0; }
.lost-edit { margin-bottom: 18px; }
.lost-edit textarea { width: 100%; }
/* Printed: the banner repeats at the top of every page (an @page margin box set by the page itself, which knows the
   banner's text; server/views/start/report.js printBanner). The live line and the forms' buttons are not printed. */
@media print {
  .run-line, .cp-actions, .report-foot button, .admin-report-controls form, .admin-plan, .admin-review { display: none !important; }
  .report-banner { break-inside: avoid; }
}
/* Approval links disabled while a content form holds unsaved typing (start.js), and the approval pages. */
.is-disabled { opacity: .5; pointer-events: none; cursor: not-allowed; }
.approval-note { color: var(--amber); margin-left: 8px; }
.approval-content { margin-bottom: 20px; }
.approval-item h3 { font-size: 1.05rem; overflow-wrap: anywhere; }
pre.wrap { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; font-family: var(--mono); font-size: .84rem; }
