/* The signed-in app's base sheet, despite its name: every page under app/ except account.html loads
   it, after styles.css (btn, dropzone, upload__chosen, pill, mark, input, field) and before the
   page's own sheet (start.css, job.css, home.css, library.css, credits.css, changes.css,
   editor.css, advert.css), which wins where both set the same thing. Most of it is the check and
   results pages. Mobile first, like styles.css. A rule here that a page sheet always overrides is
   dead weight: roadmap step 19 (review Q17) removed those and the classes nothing uses, and
   tools/check_styles.py now reports any class styled here and used nowhere. */

.app-page { min-height: 100vh; display: flex; flex-direction: column; background: var(--tint); }
.app-page .site-header .btn { white-space: nowrap; }
@media (max-width: 419px) {
  .app-page .site-header .btn { padding: 0 12px; font-size: 14px; }
}
.app-page .auth-footer { background: var(--white); border-top: 1px solid var(--line-strong); }
.check-page { flex: 1 0 auto; }
.check__inner { display: flex; flex-direction: column; gap: 28px; padding-block: 28px 64px; }
.check__inner > * { min-width: 0; }

.preview-note {
  padding: 12px 16px; border-radius: var(--radius); background: var(--white);
  border: 1px dashed var(--accent); color: var(--body); font-size: 15px;
}
.preview-note strong { color: var(--accent); }

/* The page is the new check, so the header's New check would be a second bright button for it. */
.check-body .app-nav__new { display: none; }

/* ---------- A step: copy + card ---------- */
.check__step { display: grid; gap: 28px; align-items: start; }
.check__step > * { min-width: 0; }
.result-hero h1 {
  font-size: clamp(32px, 3.6vw, 52px); line-height: 1.08; font-weight: 800; letter-spacing: -0.04em;
}
.result-hero h1:focus { outline: none; }

.check-card {
  position: relative; display: flex; flex-direction: column; gap: 18px; padding: 20px;
  background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
}
.check-card__stack { display: flex; flex-direction: column; gap: 16px; }
.cv-upload .dropzone { min-height: 250px; }
.check__next { align-self: flex-start; }
.check__next svg { width: 18px; height: 18px; }
.check__back { font-weight: 600; }

@media (min-width: 640px) {
  .check-card { padding: 24px; }
}

/* The saved list is fetched after the page paints; check.ts unhides this once that has taken
   250ms. No CSS fade: styles.css kills every animation under prefers-reduced-motion with
   !important, so anything starting at opacity 0 would stay invisible for those readers. */
.saved-loading { display: flex; align-items: center; gap: 10px; padding: 10px 2px; font-size: 14.5px; color: var(--muted); }
.saved-loading .spinner { flex: none; width: 18px; height: 18px; border-width: 2.5px; }

/* ---------- Saved CVs ---------- */
.saved__list { display: flex; flex-direction: column; gap: 8px; }
.saved__item { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius); }
.saved__item svg { flex: none; width: 22px; height: 22px; }
.saved__item > div { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.saved__item strong { font-size: 15px; overflow-wrap: anywhere; }
.saved__item span { font-size: 13px; color: var(--muted); }
.saved__item .btn { flex: none; font-weight: 600; }

/* ---------- Upload progress ---------- */
.progress { display: flex; flex-direction: column; gap: 12px; font-size: 16px; }
.progress__item { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.progress__icon { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px dashed var(--input-line); position: relative; }
.progress__item[data-state="active"] { color: var(--ink); font-weight: 700; }
.progress__item[data-state="active"] .progress__icon { border: 3px solid var(--line-strong); border-top-color: var(--accent); animation: check-spin .9s linear infinite; }
.progress__item[data-state="done"] { color: var(--ink); }
.progress__item[data-state="done"] .progress__icon { border: 0; background: var(--green-dot); }
.progress__item[data-state="done"] .progress__icon::after {
  content: ""; position: absolute; left: 7px; top: 7px; width: 10px; height: 5px;
  border: solid var(--white); border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg);
}
.check-note { padding: 14px 16px; border-radius: var(--radius); background: var(--tint); color: var(--body); font-size: 15px; }

.spinner { display: block; width: 24px; height: 24px; border-radius: 50%; border: 3px solid var(--line-strong); border-top-color: var(--accent); animation: check-spin .9s linear infinite; }
.spinner--lg { width: 44px; height: 44px; border-width: 4px; }
@keyframes check-spin { to { transform: rotate(360deg); } }
/* styles.css stops all animation under reduced motion; keep a still, visible ring. */
@media (prefers-reduced-motion: reduce) {
  .spinner, .progress__item[data-state="active"] .progress__icon { border-color: var(--accent); }
}

.check-problem {
  display: flex; flex-direction: column; gap: 10px; padding: 18px 20px;
  background: var(--orange-soft); border: 1px solid var(--orange-line); border-radius: var(--radius);
}
.check-problem .pill { align-self: flex-start; }
.check-problem strong { font-size: 17px; }
.check-problem p { color: var(--body); font-size: 15px; }
.check-error { color: var(--orange); font-weight: 600; font-size: 15px; }
.field__hint .is-over { color: var(--orange); font-weight: 600; }

/* ---------- Job form ---------- */
/* Same job as last time (a retest): in place of the advert box. */
.using--job { padding: 14px 16px; border-radius: var(--radius); background: var(--tint); font-size: 15px; overflow-wrap: anywhere; }
.field label .field__hint { font-weight: 400; margin-left: 4px; }
.input--area { min-height: 300px; padding: 14px 16px; line-height: 1.55; resize: vertical; font: inherit; font-size: 15px; }
.input[aria-invalid="true"] { border-color: var(--orange); }
.field__row { align-items: center; flex-wrap: wrap; }
.field__row .link-button { font-size: 14px; }
/* One wait for reading the job and comparing, the same on the check page and the result page (doc 16h) */
.wait { display: flex; flex-direction: column; gap: 22px; }
.wait__status { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.wait__title { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.12; font-weight: 800; letter-spacing: -0.03em; }
.wait__title:focus { outline: none; }
.wait__text { color: var(--body); font-size: 16px; }
.job-stages { width: 100%; margin-top: 6px; text-align: left; }
.job-stages .progress__item { align-items: flex-start; }
.job-stages .progress__item > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.job-stages strong { font-size: 16px; color: inherit; }
.job-stages .progress__item span span { font-size: 14px; font-weight: 400; color: var(--muted); }

/* "While you wait" (learn.ts): one tip at a time. Each is a heading, a one-line summary, then a small
   visual that does the explaining -- a key, a pair, a short list (5 Nov 2026, design 3). */
.learn {
  display: flex; flex-direction: column; gap: 16px; padding: 18px 20px;
  background: var(--tint); border-radius: var(--radius); min-height: 13.5em;
}
.learn__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; font-weight: 700; }
.learn__eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--orange); text-transform: uppercase; letter-spacing: 0.06em; }
.learn__eyebrow svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.learn__count { color: var(--body); font-weight: 600; }
.learn__body { display: flex; flex-direction: column; gap: 12px; flex: 1; animation: learn-in .35s ease-out; }
.learn__title { font-size: 22px; line-height: 1.2; font-weight: 800; letter-spacing: -0.01em; }
.learn__text { color: var(--body); font-size: 15px; margin-top: -6px; }
.learn__note { color: var(--body); font-size: 14px; }
.learn__visual { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 14px; color: var(--ink); }
.learn__label { display: block; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
/* The colour key: one row per colour, the dot, its name, what it means */
.learn__visual--legend, .learn__visual--steps, .learn__visual--proof { display: block; }
.learn__legend { list-style: none; margin: 0; padding: 0; background: var(--white); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.learn__legend li { display: grid; grid-template-columns: 22px 5.5em minmax(0, 1fr); align-items: center; gap: 12px; padding: 11px 14px; font-size: 15px; }
.learn__legend li + li { border-top: 1px solid var(--line); }
.learn__legend .dot { width: 20px; height: 20px; }
.learn__legend span { color: var(--body); }
/* Must-haves first: the order, as a short numbered list */
.learn__steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.learn__steps li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 11px 14px; border-radius: 12px; background: var(--white); border: 1px solid var(--line); font-size: 15px; }
.learn__steps li > span:last-child { margin-left: auto; font-size: 13px; color: var(--body); }
.learn__step-n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--input-line); box-sizing: border-box; font-size: 13px; font-weight: 800; }
.learn__steps li.is-first { background: var(--brand); border-color: var(--brand); color: var(--white); }
.learn__steps li.is-first > span:last-child { color: #d9d4cb; }
.learn__steps li.is-first .learn__step-n { background: var(--cta); border: 0; color: var(--ink); }
/* Proof, not keywords: what they ask for, then the line that proves it */
.learn__ask, .learn__found { padding: 11px 14px; border-radius: 12px; font-size: 15px; }
.learn__ask { background: var(--white); font-weight: 700; }
.learn__ask .learn__label { margin-bottom: 3px; }
.learn__found { display: flex; align-items: flex-start; gap: 12px; margin-top: 8px; background: var(--white); border: 1px solid var(--line); }
.learn__found .dot { width: 22px; height: 22px; }
.learn__found .learn__label { color: var(--green-text); margin-bottom: 3px; }
.learn__found q { font-style: italic; }
/* Re-check: the same dots, before and after */
.learn__visual--before-after { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.learn__ba { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 12px; background: var(--white); border: 1px solid var(--line); }
.learn__ba .learn__label { color: var(--body); }
.learn__ba--after { background: var(--green-bg); border-color: #bfe6cf; }
.learn__ba--after .learn__label { color: var(--green-text); }
.learn__dots-row { display: flex; gap: 4px; }
.learn__dots-row .dot { width: 18px; height: 18px; }
.learn__chip {
  padding: 5px 12px; border-radius: 999px; background: var(--white); border: 1px solid var(--line-strong); font-size: 14px;
}
.learn__chip strong { color: var(--accent); font-weight: 800; }
.learn__chip--new { border-color: var(--green-dot); background: var(--green-bg); }
.learn__arrow { color: var(--muted); }
/* The foot: how far through, back, next, and the pause WCAG 2.2.2 asks of moving content */
.learn__nav { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.learn__bar { flex: 1 1 8em; display: flex; gap: 4px; }
.learn__seg { flex: 1; height: 4px; border-radius: 2px; background: var(--line-strong); }
.learn__seg.is-seen { background: var(--accent); }
.learn__btn, .learn__pause {
  min-width: 44px; min-height: 44px; padding: 0 16px; border-radius: 999px; font: inherit; font-size: 15px; font-weight: 700;
  border: 1px solid var(--input-line); background: var(--white); color: var(--ink); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.learn__btn svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.learn__btn--round { padding: 0; width: 44px; }
.learn__btn--next { border: 1.5px solid var(--brand); }
.learn__btn:hover, .learn__pause:hover { border-color: var(--brand); }
.learn__pause { font-size: 13px; padding: 0 12px; }
@media (max-width: 559px) {
  /* A phone: how far through on its own row, then the buttons, Next the widest */
  .learn__bar { flex-basis: 100%; }
  .learn__btn--next { flex: 1; }
}
@keyframes learn-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .learn__body { animation: none; } }

/* ---------- Results ---------- */
.check-wait { max-width: 720px; }

.result-page { max-width: 1100px; }
.result { display: flex; flex-direction: column; gap: 32px; }
/* Step 1's answer card (8 Nov 2026 design A): the pale wash at the top is the answer's own ground,
   fading into the card rather than a band with an edge, so the question card under it sits on the
   same surface as the answer it finishes. */
.result-hero {
  --hero-pad: clamp(22px, 3vw, 36px);
  display: flex; flex-direction: column; gap: 22px; padding: var(--hero-pad);
  background: linear-gradient(180deg, var(--tint), var(--white) 200px), var(--white);
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow-float);
}
.result-hero__band { display: flex; flex-direction: column; gap: 12px; }
.result-hero h1 { font-size: clamp(27px, 3vw, 38px); line-height: 1.15; }
.result-hero .lead { max-width: 38em; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 6px 12px; box-sizing: border-box;
  border-radius: 999px; background: var(--tint); font-size: 13px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere;
}
.chip svg { flex: none; width: 14px; height: 14px; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Progress through the to-do list */
.progress__ring { flex: none; width: 60px; height: 60px; }
.progress__ring circle { fill: none; stroke: var(--line); stroke-width: 7; }
.progress__ring .progress__done { stroke: var(--green); stroke-linecap: round; transition: stroke-dasharray 0.3s; }

/* The summary (doc 16g, simpler, 29 Oct 2026): a verdict, three cards with "What this means", a colour key, one plan */
.result-hero__accent { display: block; color: var(--accent); }
.verdict {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px;
  border-radius: 999px; font-size: 14px; font-weight: 800;
  --verdict-ink: var(--green-text); --verdict-dot: var(--green-dot); background: var(--green-bg); color: var(--verdict-ink);
}
@keyframes verdict-pulse { 0% { transform: scale(1); opacity: 0.7; } 80%, 100% { transform: scale(1.9); opacity: 0; } }

.info-btn {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: var(--tint); color: var(--accent); cursor: pointer;
}
.info-btn:hover, .info-btn[aria-expanded="true"] { background: var(--line-strong); }
.info-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.info-btn svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.info-note { padding: 12px 14px; border-radius: 12px; background: var(--tint); font-size: 15px; line-height: 1.5; color: var(--brand); }
.ring { display: block; width: 100%; height: 100%; }
.ring__track, .ring__arc { fill: none; stroke-width: 16; }
.ring__track { stroke: var(--line); }
.ring__arc--shown { stroke: var(--green); }
.ring__arc--partly { stroke: #e8833a; }
.ring__arc--missing { stroke: #8d887c; }
.ring__arc--unclear { stroke: var(--input-line); }
.ring__big { font-size: 30px; font-weight: 800; fill: var(--ink); text-anchor: middle; }
.ring__small { font-size: 13px; font-weight: 600; fill: var(--muted); text-anchor: middle; }
.dots { display: flex; flex-wrap: wrap; gap: 6px; }
.dot { flex: none; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; box-sizing: border-box; }
.dot--shown { background: var(--green-dot); color: var(--white); }
.dot--partly { background: var(--cta); color: var(--ink); }
.dot--missing { background: #ddd9d2; color: var(--body); }
.dot--unclear { background: var(--white); border: 2px dashed #8d887c; color: var(--body); }
.dot--must { box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--brand); margin: 0 3px; }
.dot__mark { width: 13px; height: 13px; }
.dot__line { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.dot--missing .dot__mark, .dot--unclear .dot__mark { width: 11px; height: 11px; }
.dot__ring { fill: none; stroke: currentColor; stroke-width: 2.5; }
.dot__fill { fill: currentColor; }
.dot--partly .dot__mark { width: 14px; height: 14px; }

/* How big a move: the band as a step on a hill */
.hill__art { display: block; width: 100%; height: auto; }
.hill__peak { fill: #ddd9d2; }
.hill__snow { fill: var(--white); }
.hill__pole { stroke: var(--brand); stroke-width: 2; stroke-linecap: round; }
.hill__flag { fill: var(--cta); }
.hill__step { fill: var(--tint); }
.hill__step--down { fill: var(--soft); }
.hill__step.is-here { fill: #cfe9da; }
.hill__edge { stroke: var(--green-dot); stroke-width: 3; stroke-linecap: round; }
.hill__name { font-size: 12.5px; font-weight: 600; fill: var(--muted); }
.hill__name.is-here { font-size: 15px; font-weight: 800; fill: var(--ink); }
.hill__way { fill: none; stroke: var(--green-dot); stroke-width: 2; stroke-dasharray: 3 4; stroke-linecap: round; stroke-linejoin: round; }
.hill__way--head { stroke-dasharray: none; }
.hill__walker { fill: none; stroke: var(--brand); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.hill__pack { fill: var(--cta); }
.hill__head { fill: var(--brand); }
.hill__tag { fill: var(--green); }
.hill__tag-text { font-size: 12px; font-weight: 700; fill: var(--white); }

.how-we { padding: clamp(20px, 3vw, 28px); border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line-strong); }
.how-we summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; list-style: none; }
.how-we summary::-webkit-details-marker { display: none; }
.how-we summary::after { content: "Show"; padding: 8px 16px; border: 1.5px solid var(--brand); border-radius: 999px; font-size: 14px; font-weight: 700; }
.how-we[open] summary::after { content: "Hide"; }
.how-we summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 8px; }
.how-we h2 { margin: 0; font-size: 20px; font-weight: 800; }
.how-we__steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(13em, 1fr)); gap: 14px; margin-top: 16px; }
.how-we__steps li { display: flex; align-items: flex-start; gap: 12px; }
.how-we__steps div { display: flex; flex-direction: column; gap: 4px; }
.how-we__steps div > span { font-size: 15px; line-height: 1.5; color: var(--body); }
.how-we__n { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--tint); color: var(--accent); font-weight: 800; }
.next-plan { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; padding: 16px 18px; border-radius: 16px; background: var(--brand); color: var(--white); }
.next-plan__progress { flex: none; display: flex; }
.next-plan .progress__ring { width: 52px; height: 52px; }
.next-plan .progress__ring circle { stroke: var(--brand-line); stroke-width: 8; }
.next-plan .progress__ring .progress__done { stroke: var(--cta); }
.next-plan__text { flex: 1 1 16em; display: flex; flex-direction: column; gap: 3px; }
.next-plan__text strong { font-size: 16px; font-weight: 800; }
.next-plan__text > span { font-size: 14px; color: #ded9ce; }
.next-plan__text a { color: var(--white); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* Edit the list (doc 16h): what the job asks for, changed on the result and checked again */
.edit-list { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line-strong); }
.edit-list__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; }
.edit-list__icon { flex: none; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: var(--tint); }
.edit-list__icon svg { width: 18px; height: 18px; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.edit-list__text { flex: 1 1 16em; display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--muted); }
.edit-list__text strong { font-size: 16px; color: var(--ink); }
.edit-list__panel { display: flex; flex-direction: column; gap: 14px; }
.edit-list__filters { display: flex; flex-wrap: wrap; gap: 8px; }
.edit-list__filters button {
  min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--input-line); background: var(--white);
  font: inherit; font-size: 13px; font-weight: 700; color: var(--ink); cursor: pointer;
}
.edit-list__filters button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--white); }
.edit-list__filters button:focus-visible, .segmented label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.edit-list__rows { display: flex; flex-direction: column; gap: 8px; }
.edit-list__all { align-self: flex-start; font-size: 14px; font-weight: 700; min-height: 44px; }
.edit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--white); }
.edit-row.is-moved { background: var(--orange-soft); }
.edit-row.is-removed { background: var(--soft); border-style: dashed; }
.edit-row.is-removed .edit-row__text strong { text-decoration: line-through; color: var(--muted); }
.edit-row.is-gone .status-dot { background: var(--line-strong); }
.edit-row > .status-dot { flex: none; }
.edit-row__text { flex: 1 1 16em; min-width: 0; display: flex; flex-direction: column; gap: 3px; overflow-wrap: anywhere; }
.edit-row__text strong { font-size: 15px; }
.edit-row__text span { font-size: 13px; color: var(--muted); }
.edit-row__remove { min-height: 40px; font-weight: 600; }
.segmented { display: flex; flex: none; gap: 2px; margin: 0; padding: 3px; border: 0; border-radius: 999px; background: var(--tint); }
.segmented label { position: relative; display: flex; }
.segmented input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.segmented label span { min-height: 34px; padding: 0 12px; border-radius: 999px; display: flex; align-items: center; font-size: 12px; font-weight: 700; color: var(--body); white-space: nowrap; }
.segmented input:checked + span { background: var(--white); color: var(--ink); box-shadow: 0 1px 3px rgba(25, 25, 28, 0.18); }
.edit-list__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.edit-list__changes { flex: 1 1 16em; font-size: 14px; color: var(--body); }
.edit-list__actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 639px) {
  .segmented { flex: 1 1 100%; }
  .segmented label { flex: 1 1 0; }
  .segmented label span { flex: 1; justify-content: center; padding: 0 6px; white-space: normal; text-align: center; }
}

/* Where you stand (doc 16g, option B): the map in a dialog, opened from the move card */
.scorecard__badge { align-self: flex-start; padding: 4px 11px; border-radius: 999px; background: var(--accent); color: var(--white); font-size: 12px; font-weight: 800; white-space: nowrap; }
.scorecard__badge--rt { background: var(--green-text); }
.scorecard__badge--rb, .scorecard__badge--lb { background: var(--orange); }
.stand-map__q { fill: var(--soft); }
.stand-map__q--rt { fill: var(--green-bg); }
.stand-map__q--rb { fill: var(--orange-bg); }
.stand-map__q--lt { fill: var(--tint); }
.stand-map__q.is-here { stroke: var(--cta); stroke-width: 3; }
.stand-map__name { font: 700 12px var(--font); fill: var(--muted); }
.stand-map__name.is-here { font-weight: 800; fill: var(--ink); }
.stand-map__axis { font: 700 12px var(--font); fill: var(--body); }
.stand-map__way { fill: none; stroke: var(--brand); stroke-width: 2.5; stroke-dasharray: 5 5; stroke-linecap: round; }
.stand-map__arrow { fill: none; stroke: var(--brand); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.stand-map__target { fill: var(--white); stroke: var(--green-dot); stroke-width: 3; stroke-dasharray: 3 3; }
.stand-map__halo { fill: var(--cta); opacity: 0.4; }
.stand-map__you { fill: var(--brand); }
.stand-map__pill { fill: var(--brand); }
.stand-map__pill-text { font: 800 11px var(--font); fill: var(--white); }
.stand-map__tag { fill: var(--white); stroke: var(--brand); stroke-width: 1.5; }
.stand-map__tag-text { font: 800 12px var(--font); fill: var(--brand); }
.stand-dialog { width: min(820px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow-card); color: var(--ink); }
.stand-dialog::backdrop { background: rgba(25, 25, 28, 0.45); }
.stand-dialog__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px 0; }
.stand-dialog__head h2 { font-size: 22px; font-weight: 800; }
.stand-dialog__body { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 24px; align-items: center; padding: 12px 24px 24px; }
.stand-dialog__map svg { display: block; width: 100%; height: auto; }
.stand-dialog__words { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.stand-dialog__lead { font-size: 17px; font-weight: 700; line-height: 1.45; }
.stand-dialog__facts { display: flex; flex-direction: column; gap: 6px; padding-left: 18px; list-style: disc; font-size: 15px; color: var(--body); }
.stand-dialog__how { font-size: 13px; line-height: 1.5; color: var(--muted); }

.seg { flex: 1 1 0; min-width: 0; }
.seg--start { margin-left: 3px; }
.seg--shown, .key--shown, .is-shown .status-dot, .is-shown .status::before { background: var(--green-dot); }
.seg--partly, .key--partly, .is-partly .status-dot, .is-partly .status::before { background: var(--cta); }
.seg--missing, .key--missing { background: #ddd9d2; }
.seg--unclear { background: repeating-linear-gradient(135deg, #ddd9d2 0 3px, var(--white) 3px 6px); }
.key { flex: none; width: 10px; height: 10px; border-radius: 50%; }
.key--unclear, .is-missing .status-dot, .is-unclear .status-dot, .is-missing .status::before, .is-unclear .status::before {
  background: var(--white); border: 2px solid #8d887c; box-sizing: border-box;
}
.is-unclear .status-dot, .is-unclear .status::before { border-style: dashed; }

/* Sections */
.req-group { display: flex; flex-direction: column; gap: 12px; }
.req-group h2 { font-size: 21px; font-weight: 800; letter-spacing: -0.01em; }
.req-group__count { color: var(--muted); font-weight: 600; }
.req-group__more { align-self: flex-start; font-size: 15px; font-weight: 600; min-height: 44px; }
/* "Show N more" (1 Nov 2026): a pill with a slow pulse, so the rest of the list isn't missed. */
.req-group__more { display: inline-flex; align-items: center; gap: 10px; padding: 0 18px; border: 1.5px solid #cfc3f5; border-radius: 999px; background: var(--tint); text-decoration: none; animation: more-pulse 2.4s ease-out infinite; }
.req-group__more::after { content: ""; width: 7px; height: 7px; margin-top: -4px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.req-group__more:hover { border-color: var(--accent); }
@keyframes more-pulse { 0% { box-shadow: 0 0 0 0 rgba(85, 54, 201, 0.35); } 70%, 100% { box-shadow: 0 0 0 10px rgba(85, 54, 201, 0); } }
@media (prefers-reduced-motion: reduce) { .req-group__more { animation: none; } }

.tag-must { padding: 3px 10px; border-radius: 999px; background: var(--brand); color: var(--white); font-size: 12px; font-weight: 700; white-space: nowrap; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--body); }
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; }
.req__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

/* The job map: the job in the middle, its requirements as leaves */
.job-map { background: var(--white); border: 1px solid var(--line-strong); border-radius: 20px; overflow: hidden; }
.job-map > summary { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 16px 20px; box-sizing: border-box; cursor: pointer; list-style: none; }
.job-map > summary::-webkit-details-marker { display: none; }
.job-map > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.job-map__summary { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.job-map__summary strong { font-size: 17px; font-weight: 800; color: var(--ink); }
.job-map__summary span { font-size: 14px; color: var(--muted); }
.job-map[open] .req-fold__toggle::after { content: "Hide"; }
.job-map__body { display: flex; flex-direction: column; gap: 20px; padding: 4px 20px 24px; }
.job-map__key { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--body); }
.job-map__key li { display: flex; align-items: center; gap: 6px; }
.job-map__num {
  flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; box-sizing: border-box;
  border-radius: 999px; background: var(--brand); color: var(--white); font-size: 11px; font-weight: 700; line-height: 1;
}
.todo__title .job-map__num { margin: 0 8px 0 0; vertical-align: 2px; }
.todo.is-done .todo__title .job-map__num { background: var(--muted); }

.job-map__hub {
  display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 16px 20px; box-sizing: border-box;
  border-radius: 18px; background: var(--brand); color: var(--white); box-shadow: 0 12px 30px rgba(25, 25, 28, 0.18);
}
.job-map__hub strong { font-size: 16px; font-weight: 800; overflow-wrap: anywhere; }
.job-map__hub span { font-size: 13px; color: #dbd6cb; }
.job-map__title { font-size: 12px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--brand); }
.job-map__title span { color: var(--body); }
.job-map__branch--duty .job-map__title { color: var(--muted); }
.job-map__leaves { position: relative; display: flex; flex-direction: column; gap: 10px; }
/* The spine: from the first leaf's middle to the last's (leaves are a fixed 48px) */
.job-map__leaves::before { content: ""; position: absolute; top: 24px; bottom: 24px; width: 0; border-left: 2px solid var(--input-line); }
.job-map__leaf { position: relative; }
.job-map__leaf::before { content: ""; position: absolute; top: 50%; width: 12px; border-top: 2px solid var(--input-line); }
.job-map__leaf > a, .job-map__more {
  display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 12px; box-sizing: border-box;
  border-radius: 12px; border: 1px solid var(--line-strong); background: var(--white);
  font-size: 13px; line-height: 16px; color: var(--ink); text-decoration: none;
}
.job-map__more { width: 100%; font: inherit; font-size: 13px; font-weight: 600; color: var(--accent); border-style: dashed; cursor: pointer; }
.job-map__more:hover { background: var(--tint); }
.job-map__more:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.job-map__leaf > a:hover .job-map__text { text-decoration: underline; text-underline-offset: 2px; }
.job-map__leaf > a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.job-map__text { min-width: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.job-map__leaf.is-shown > a { background: var(--green-bg); border-color: #bfe3cf; }
.job-map__leaf.is-partly > a { background: var(--orange-bg); border-color: #ffd0ad; font-weight: 700; }
.job-map__leaf.is-missing > a { border: 1.5px dashed #8d887c; font-weight: 700; }
.job-map__leaf.is-unclear > a { border: 1.5px dashed var(--input-line); }
.job-map__branch--duty .job-map__leaf > a { background: var(--tint); border: 1px solid var(--line-strong); font-weight: 400; color: var(--body); }
.job-map__leaf.is-done > a { background: var(--soft); border: 1px solid var(--line); font-weight: 400; color: var(--muted); }
.job-map__leaf.is-done .job-map__text { text-decoration: line-through; }
.job-map__leaf.is-done .job-map__num { background: var(--green); }

/* Two views of the same requirements */
.view-switch { display: inline-flex; flex-wrap: wrap; gap: 4px; align-self: flex-start; padding: 4px; border-radius: 999px; background: var(--tint); }
.view-switch button {
  min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 600; color: var(--body);
}
.view-switch button[aria-pressed="true"] { background: var(--white); color: var(--ink); box-shadow: 0 2px 8px rgba(25, 25, 28, 0.12); }
.view-switch button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.job-map__view { display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 559px) {
  .view-switch { display: flex; align-self: stretch; border-radius: 16px; }
  .view-switch button { flex: 1 1 0; min-height: 44px; padding: 6px 10px; border-radius: 12px; font-size: 13px; line-height: 1.25; }
}

/* "By where your CV shows it": requirements down the side, parts of the CV across the top */
.proof { display: flex; flex-direction: column; gap: 14px; }
.proof__intro { font-size: 14px; color: var(--body); }
.proof__scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
.proof__table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.proof__table th, .proof__table td { padding: 8px 10px; text-align: center; vertical-align: middle; }
.proof__table thead th { background: var(--soft); border-bottom: 1px solid var(--line); font-weight: 400; line-height: 1.3; min-width: 7.5em; padding: 6px 4px; }
.proof__pick {
  width: 100%; min-height: 64px; padding: 6px; border: 0; border-radius: 12px; background: transparent; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 2px; font: inherit; line-height: 1.3; color: var(--body);
}
.proof__pick:hover { background: var(--tint); }
.proof__pick:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.proof__place { display: block; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.proof__sub { display: block; font-size: 12px; color: var(--muted); }
.proof__current { padding: 1px 8px; border-radius: 999px; background: var(--brand); color: var(--white); font-size: 10px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.proof__table thead th:first-child, .proof__table tbody th[scope="row"], .proof__table tfoot th {
  position: sticky; left: 0; z-index: 1; text-align: left; background: var(--white); min-width: 13em; max-width: 18em;
}
.proof__table thead th:first-child { background: var(--soft); font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.proof__table tbody tr + tr > * { border-top: 1px solid var(--tint); }
.proof__table tbody th[scope="row"] a { display: flex; align-items: center; gap: 8px; min-height: 32px; color: var(--ink); text-decoration: none; font-weight: 400; }
.proof__table tbody th[scope="row"] a:hover .job-map__text { text-decoration: underline; text-underline-offset: 2px; }
.proof__table tbody th[scope="row"] a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.proof__table tr.is-partly th a, .proof__table tr.is-missing th a { font-weight: 700; }
.proof__table td.proof__col { cursor: pointer; }
/* "Must-haves" and "Nice-to-haves" stay put with the requirements when the table scrolls sideways. */
.proof__group th { position: sticky; left: 0; z-index: 1; background: var(--white); padding-top: 14px; text-align: left; font-size: 12px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--brand); }
.proof__dot { display: inline-block; width: 16px; height: 16px; border-radius: 50%; box-sizing: border-box; vertical-align: middle; }
.is-shown .proof__dot { background: var(--green-dot); }
.is-partly .proof__dot { background: var(--cta); }
.is-unclear .proof__dot { border: 2px dashed #8d887c; }
.proof__empty { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); vertical-align: middle; }
.proof__none { display: block; margin: 2px 0 0 28px; font-size: 12px; font-weight: 600; color: var(--orange); }
.is-unclear .proof__none { color: var(--muted); }
.proof__table tfoot th, .proof__table tfoot td { background: var(--soft); border-top: 1px solid var(--line); font-weight: 800; }
/* The picked column: one tall bubble from its heading to its count */
.proof__table .is-picked { background: #f1edff; border-left: 2px solid var(--accent); border-right: 2px solid var(--accent); }
.proof__table thead th.is-picked { border-top: 2px solid var(--accent); border-radius: 18px 18px 0 0; }
.proof__table tfoot td.is-picked { border-bottom: 2px solid var(--accent); border-radius: 0 0 18px 18px; color: var(--brand); }
.proof__table thead th.is-picked .proof__pick:hover { background: transparent; }
.proof__table .is-picked .proof__dot { width: 20px; height: 20px; }
/* Rows the picked part doesn't show step back: muted text (still 5:1) and faint dots; gaps never do */
.proof__table tbody tr:not(.is-here):not(.is-gap):not(.proof__group) th[scope="row"] a { color: var(--muted); }
.proof__table tbody tr:not(.is-here):not(.is-gap):not(.proof__group) .proof__dot,
.proof__table tbody tr:not(.is-here):not(.is-gap):not(.proof__group) .status-dot { opacity: 0.45; }
.proof__table tbody tr.is-here th[scope="row"] a { font-weight: 700; }
.proof__table tfoot th { font-size: 13px; font-weight: 700; color: var(--body); background: var(--soft); }
.proof__table tfoot td { font-size: 17px; color: var(--ink); }
@media (max-width: 559px) {
  .proof__table thead th:first-child, .proof__table tbody th[scope="row"], .proof__table tfoot th { min-width: 9.5em; max-width: 10.5em; }
  .proof__table th, .proof__table td { padding: 8px 6px; }
}
.proof__insight { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--soft); border: 1px solid var(--line); font-size: 14px; line-height: 1.5; color: var(--ink); }
.proof__insight.is-quiet { background: var(--orange-soft); border-color: var(--orange-line); }
.proof__insight svg { flex: none; width: 18px; height: 18px; margin-top: 2px; stroke: var(--orange); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Let us help (doc 16f): a few questions on a to-do, then a line made only from the answers */
.help-open {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border: 0; border-radius: 999px; background: var(--brand); color: var(--white); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
}
.help-open:hover { background: var(--brand-line); }
.help-open:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.help-open svg { width: 16px; height: 16px; stroke: var(--cta); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.todo.is-done .help-open { display: none; }
/* The actions and the tick share a row but are siblings: a done row hides its actions and the
   tick must outlive that, or a mis-tick cannot be undone (doc 20 §16.12). */
.todo__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.todo__foot:not(:has(:not([hidden]))) { display: none; }
.todo__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.todo__actions:not(:has(:not([hidden]))) { display: none; }
.todo__later { min-height: 44px; }
.todo__learn { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--white); border: 1px solid var(--line-strong); font-size: 14px; line-height: 1.5; color: var(--ink); }
.todo__learn svg { flex: none; width: 18px; height: 18px; margin-top: 2px; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.help { display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: 14px; background: var(--soft); border: 1px solid var(--line); }
.help__top { display: flex; align-items: center; gap: 10px; }
.help__step { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap; }
.help__bar { flex: 1 1 auto; display: flex; gap: 4px; }
.help__bar span { flex: 1 1 0; height: 4px; border-radius: 999px; background: var(--line-strong); }
.help__bar span.is-on { background: var(--accent); }
.help__close { flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 20px; cursor: pointer; }
.help__close:hover { background: var(--white); }
.help__close:focus-visible { outline: 2px solid var(--accent); }
.help__wait { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--body); }
.help__wait .spinner { width: 20px; height: 20px; }
.help__error { padding: 10px 12px; border-radius: 10px; background: var(--orange-bg); color: var(--ink); font-size: 14px; line-height: 1.45; }
.help__panel { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; border: 0; min-width: 0; }
.help__title { padding: 0; font-size: 17px; font-weight: 800; line-height: 1.35; color: var(--ink); }
.help__title:focus { outline: none; }
.help__title span { color: var(--accent); }
.help__note { font-size: 14px; line-height: 1.5; color: var(--body); }
.help__choice {
  display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; box-sizing: border-box;
  border-radius: 12px; background: var(--white); border: 1px solid var(--line-strong); font-size: 15px; cursor: pointer;
}
.help__choice:has(input:checked) { border: 1.5px solid var(--accent); font-weight: 600; }
.help__choice input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.help__fields { display: flex; flex-direction: column; gap: 12px; }
.help__field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; color: var(--ink); }
.help textarea, .help select { font-family: inherit; }
.help__field .input { font-weight: 400; font-size: 15px; line-height: 1.45; resize: vertical; }
.help__line { border: 1.5px solid var(--accent); font-size: 16px; line-height: 1.5; resize: vertical; }
.help__label { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.help__sources { display: flex; flex-direction: column; gap: 6px; }
.help__sources ul { display: flex; flex-direction: column; gap: 4px; font-size: 13px; line-height: 1.45; color: var(--body); }
.help__sources li { position: relative; padding-left: 16px; }
.help__sources li::before { content: ""; position: absolute; left: 0; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.help__sources strong { color: var(--ink); font-weight: 600; }
.help__warn { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: var(--orange-soft); font-size: 13px; line-height: 1.45; color: var(--ink); }
.help__warn svg { flex: none; width: 16px; height: 16px; margin-top: 1px; stroke: var(--orange); stroke-width: 2; stroke-linecap: round; }
.help__nav { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.help__nav--end { justify-content: flex-end; }
.help__nav-group { display: flex; flex-wrap: wrap; gap: 8px; }
.help__nav .btn { min-height: 44px; font-size: 15px; }
/* Your own version of the line: a save bar while it differs from what's kept, a note once saved */
.help__edited { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 10px 12px 10px 14px; border-radius: 10px; background: var(--orange-bg); }
.help__edited > svg { flex: none; width: 18px; height: 18px; stroke: var(--orange); stroke-width: 2; stroke-linecap: round; }
.help__edited p { flex: 1 1 260px; font-size: 14px; line-height: 1.45; color: var(--ink); }
.help__edited-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-left: auto; }
.help__edited-actions .link-button { font-size: 14px; }
.help__edited .btn { min-height: 44px; font-size: 15px; }
.help__saved { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 14px; line-height: 1.45; color: var(--body); }
.help__saved svg { flex: none; width: 18px; height: 18px; stroke: var(--green-text); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.help__saved strong { color: var(--green-text); }
.help__saved .link-button { margin-left: auto; font-size: 14px; }
.help__leave { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px 16px; border-radius: 14px; background: var(--white); border: 1.5px solid var(--line-strong); }
.help__leave p { flex: 1 1 240px; font-size: 14px; line-height: 1.45; color: var(--body); }
.help__leave strong { color: var(--ink); }
.help__leave .btn { min-height: 44px; font-size: 15px; }
/* Copied: the button says so, and the card under it says where to paste */
.help__copy.is-copied { border-color: var(--green-text); background: var(--green-bg); color: var(--green-text); font-weight: 700; }
.help__copy.is-copied::before { content: ""; width: 14px; height: 8px; margin: -4px 2px 0 0; border: solid currentColor; border-width: 0 0 2.4px 2.4px; transform: rotate(-45deg); }
.help__copied { container-type: inline-size; display: flex; flex-direction: column; gap: 12px; padding: 16px 18px; border-radius: 14px; background: var(--green-bg); border: 1px solid #cfe9da; }
.help__copied-title { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 800; color: var(--ink); }
.help__copied-icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--green-text); }
.help__copied-icon svg { width: 16px; height: 16px; stroke: var(--white); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.help__copied-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.help__copied-steps li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: var(--white); font-size: 14px; line-height: 1.4; color: var(--ink); }
.help__copied-num { flex: none; font-weight: 800; color: var(--green-text); }
/* By the card's own width, not the window's: beside the CV page the card is narrow on a wide screen. */
@container (max-width: 560px) { .help__copied-steps { grid-template-columns: minmax(0, 1fr); } }
/* A to-do's line, waiting for the person to come back to it */
.help-saved { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; border-radius: 14px; background: var(--white); border: 1.5px solid var(--line-strong); }
.help-saved__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.help-saved__head svg { flex: none; width: 18px; height: 18px; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.help-saved__title { font-size: 15px; font-weight: 800; color: var(--ink); }
.help-saved__title span { color: var(--accent); }
.help-saved__tag { padding: 3px 9px; border-radius: 999px; background: var(--tint); color: var(--accent); font-size: 12px; font-weight: 700; }
.help-saved__text { padding: 12px 14px; border-radius: 10px; background: var(--soft); font-size: 16px; line-height: 1.55; color: var(--ink); }
.help-saved__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.help-saved__actions .btn { min-height: 44px; font-size: 15px; }
.todo.is-done [data-help-saved-edit] { display: none; }
.btn--dark { background: var(--brand); color: var(--white); border: 0; }
.btn--dark:hover { background: var(--brand-line); }
.todo__skipped { display: none; padding: 3px 10px; border-radius: 999px; background: var(--line); color: var(--body); font-size: 12px; font-weight: 700; }
.todo.is-skipped .todo__done { display: none; }
.todo.is-skipped .todo__skipped { display: inline-block; }
.todo.is-skipped .todo__title { text-decoration: none; }

/* On a phone: a card per part of the CV instead of the table */
.proof-cards { display: none; }
@media (max-width: 639px) {
  .proof__scroll, .proof__insight { display: none; }
  .proof-cards { display: flex; flex-direction: column; gap: 12px; }
}
.proof-card { display: flex; flex-direction: column; gap: 12px; padding: 14px; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--white); }
.proof-card.is-quiet { background: var(--orange-soft); border-color: var(--orange-line); }
.proof-card--missing { border: 1.5px dashed #8d887c; gap: 10px; }
.proof-card__head { display: flex; gap: 12px; align-items: flex-start; }
.proof-card__icon { flex: none; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; background: var(--tint); }
.proof-card.is-quiet .proof-card__icon { background: var(--white); }
.proof-card__icon svg { width: 18px; height: 18px; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.proof-card__name { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; overflow-wrap: anywhere; }
.proof-card__name strong { font-size: 16px; font-weight: 800; color: var(--ink); }
.proof-card__name span { font-size: 13px; color: var(--muted); }
.proof-card__count { flex: none; padding: 4px 10px; border-radius: 999px; background: var(--green-bg); color: var(--green-text); font-size: 12px; font-weight: 700; }
.proof-card.is-quiet .proof-card__count { background: var(--white); color: var(--orange); }
.proof-card__bar { display: flex; gap: 2px; height: 8px; border-radius: 999px; overflow: hidden; }
.proof-card__bar .seg--none { background: var(--line); }
.proof-card__bar .seg--unclear { background: repeating-linear-gradient(135deg, #ddd9d2 0 3px, var(--white) 3px 6px); }
.proof-card__items { display: flex; flex-direction: column; gap: 6px; }
.proof-card__item > a {
  display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 10px; box-sizing: border-box;
  border-radius: 10px; background: var(--soft); color: var(--ink); text-decoration: none; font-size: 14px; line-height: 1.35;
}
.proof-card__item > a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.proof-card__item .job-map__text { -webkit-line-clamp: 3; }
.proof-card__item.is-shown > a { background: var(--green-bg); }
.proof-card__item.is-partly > a { background: var(--orange-bg); font-weight: 700; }
.proof-card__item.is-unclear > a { background: var(--white); border: 1.5px dashed var(--input-line); }
.proof-card--missing .proof-card__item > a { font-weight: 700; }
.proof-card__note { flex: none; margin-left: auto; font-size: 12px; font-weight: 600; color: var(--muted); }
.proof-card__item.is-partly .proof-card__note { color: var(--orange); }
.proof-card__tip { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--ink); }
.proof-card__tip svg { flex: none; width: 18px; height: 18px; margin-top: 1px; stroke: var(--orange); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Phones: a tree down the left */
.job-map__tree { display: flex; flex-direction: column; gap: 20px; }
.job-map__centre { display: contents; }
.job-map__hub { order: 0; }
.job-map__branch--must { order: 1; }
.job-map__branch--nice { order: 2; }
.job-map__branch--duty { order: 3; }
/* The job's conditions (where, hours, pay, right to work) are drawn as daily work is, below it */
.job-map__branch--terms { order: 4; }
.job-map__branch { display: flex; flex-direction: column; gap: 10px; }
.job-map__branch > .job-map__leaves { padding-left: 24px; }
.job-map__leaves::before { left: 11px; }
.job-map__leaf::before { right: 100%; }
.job-map__branch--duty .job-map__leaves::before { border-left-style: dashed; }
.job-map__branch--duty .job-map__leaf::before { border-top-style: dashed; }

/* Wider screens: the job at the top in the middle, must-haves down the left, nice-to-haves down the right, duties below */
@media (min-width: 760px) {
  .job-map__tree {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 15em) minmax(0, 1fr);
    grid-template-areas: "must centre nice"; column-gap: 32px; align-items: start; padding-top: 30px;
  }
  .job-map__centre { grid-area: centre; display: flex; flex-direction: column; gap: 52px; }
  .job-map__hub { height: 64px; padding: 8px 16px; text-align: center; }
  .job-map__hub strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .job-map__branch { position: relative; }
  .job-map__branch > .job-map__title { position: absolute; bottom: 100%; margin-bottom: 8px; }
  .job-map__branch--must { grid-area: must; }
  .job-map__branch--nice { grid-area: nice; }
  /* The first leaf lines up with the middle of the job (64px tall): 8px down, then half a 48px leaf */
  .job-map__branch--must, .job-map__branch--nice { padding-top: 8px; }
  .job-map__branch--must .job-map__leaves::before, .job-map__branch--nice .job-map__leaves::before { top: 24px; }
  .job-map__branch--must > .job-map__leaves { padding: 0 24px 0 0; }
  .job-map__branch--must .job-map__leaves::before { left: auto; right: 11px; }
  .job-map__branch--must .job-map__leaf::before { right: auto; left: 100%; }
  .job-map__branch--must > .job-map__title { left: 0; }
  .job-map__branch--nice > .job-map__title { left: 24px; }
  /* Spine to the job, across the column gap */
  .job-map__branch--must::after, .job-map__branch--nice::after { content: ""; position: absolute; top: 32px; width: 44px; border-top: 2px solid var(--input-line); }
  .job-map__branch--must::after { right: -32px; }
  .job-map__branch--nice::after { left: -32px; }
  .job-map__branch--duty > .job-map__leaves { padding-left: 0; }
  .job-map__branch--duty .job-map__leaves::before, .job-map__branch--duty .job-map__leaf::before { content: none; }
  .job-map__branch--duty::before { content: ""; position: absolute; bottom: 100%; left: 50%; height: 52px; border-left: 2px dashed var(--input-line); }
  .job-map__branch--duty > .job-map__title { position: static; margin: 0; text-align: center; }
}

/* The to-do list: a tick box, the tip on show, the evidence a click away */
.todos { display: flex; flex-direction: column; gap: 12px; }
[data-row] { scroll-margin-top: 88px; }
.todo {
  display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px;
  background: var(--white); border: 1px solid var(--orange-line); border-radius: 16px; transition: background 0.2s;
}
.todo__tick { flex: none; width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--green); cursor: pointer; }
.todo__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.todo__head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 6px 12px; }
.todo__title { flex: 1 1 16em; min-width: 0; font-size: 17px; line-height: 1.35; font-weight: 700; color: var(--ink); cursor: pointer; white-space: pre-line; overflow-wrap: anywhere; }
.todo .status { color: var(--orange); }
.todo__done { display: none; padding: 3px 10px; border-radius: 999px; background: var(--green-bg); color: var(--green-text); font-size: 12px; font-weight: 700; }
.todo.is-done { background: var(--soft); border-color: var(--line); }
.todo.is-done .todo__title { color: var(--muted); text-decoration: line-through; }
.todo.is-done .status, .todo.is-done .tag-must, .todo.is-done .req__tip { display: none; }
.todo.is-done .todo__done { display: inline-block; }
/* What the job and the CV say, always on show (doc 20 §16.12). They are three lines between
   them, so the control that folded them away cost a tap and a decision to get back less than
   the button explaining it. A label column rather than two filled boxes: both sets of words
   start at the same place, so the eye runs down them in one go instead of reading two panels
   in turn, and the card loses a level of nesting. */
.compare { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.compare__row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px 14px; padding: 10px 0; font-size: 14px; }
.compare__row + .compare__row { border-top: 1px solid var(--line); }
@media (min-width: 480px) { .compare__row { grid-template-columns: 7.5em minmax(0, 1fr); } }
.compare .req__label { font-size: 11.5px; line-height: 1.55; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.compare .req__job, .compare .req__quotes { font-size: 14px; }
.compare .req__job, .compare .req__none, .compare .req__structure { margin: 0; }
.req-group--check .todo { border-color: var(--line-strong); }
.req-group--check .status { color: var(--body); }

.req__job { color: var(--body); font-size: 15px; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
.req__structure { color: var(--muted); font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
.req__evidence { display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.req__label { font-size: 13px; font-weight: 700; color: var(--muted); }
.req__quotes { display: flex; flex-direction: column; gap: 6px; line-height: 1.5; }
.req__none { color: var(--body); }
.req__tip { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.55; color: var(--body); }
.req__tip strong { color: var(--ink); }
.req__tip { color: var(--ink); }
.req__tip svg { flex: none; width: 18px; height: 18px; margin-top: 3px; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.req__new { font-size: 14px; color: var(--accent); font-weight: 600; }

/* The lists, simpler (29 Oct 2026 design): an icon and a plain heading with What this means; each
   card a big tick box, labels with marks, the tip in its own box, one clear next action. */
.req-group { gap: 16px; }
.req-group h2 { font-size: 24px; }

.todo { gap: 16px; padding: 22px; border-radius: 20px; border-width: 1.5px; }
.todo__tick { width: 28px; height: 28px; margin: 0; }
.todo__body { gap: 14px; }
.todo__title { font-size: 19px; font-weight: 800; }
.req__tags { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tag-must { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; font-size: 13px; font-weight: 800; }
.tag-must svg { width: 12px; height: 12px; fill: currentColor; }
.todo .status { padding: 5px 11px; border-radius: 999px; background: var(--tint); color: var(--body); font-weight: 700; }
.req__tip { gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--orange-soft); }
.req__tip-icon { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--white); }
.req__tip .req__tip-icon svg { width: 18px; height: 18px; margin: 0; stroke: var(--orange); }
.req__tip-body > p { display: flex; flex-direction: column; gap: 4px; font-size: 16px; line-height: 1.55; color: var(--ink); }
.req__tip .req__tip-label { font-size: 13px; font-weight: 800; color: var(--orange); text-transform: uppercase; letter-spacing: 0.05em; }
.req-group--check .req__tip { background: var(--tint); }
.req-group--check .req__tip .req__tip-icon svg { stroke: var(--accent); }
.req-group--check .req__tip .req__tip-label { color: var(--accent); }
.todo .help-open { min-height: 48px; padding: 0 22px; border-radius: 999px; background: var(--cta); color: var(--ink); font-size: 16px; font-weight: 800; }
.todo .help-open:hover { background: var(--cta-hover); }
.todo .help-open svg { width: 18px; height: 18px; stroke: var(--ink); }
.todo__later, .todo__works { min-height: 48px; font-size: 15px; }
.todo__works { display: inline-flex; align-items: center; gap: 8px; }
.todo__works svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.todo__done-note { display: none; align-items: center; gap: 8px; color: var(--green-text); font-size: 15px; font-weight: 700; }
.todo__done-note svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.todo.is-done:not(.is-skipped) .todo__done-note { display: flex; }
.todo.is-done:not(.is-skipped) .todo__done { display: none; }
.todo.is-done { border-color: #cfe9da; }
.todo.is-done .todo__actions { display: none; }
.todo__ask-icon { display: none; }
.todo__undo { margin-left: 6px; font-size: 15px; font-weight: 700; }
/* Only you can answer: a question, not a task. A dashed card: the question on the left, the answer on
   the right; the answer replaces the buttons. No tick box: the buttons tick it. */
.req-group--check .todo { align-items: center; border: 2px dashed var(--input-line); }
.req-group--check .todo__tick, .req-group--check .status, .req-group--check .todo__more, .req-group--check .req__tip-icon,
.req-group--check .req__tip-label { display: none; }
.req-group--check .todo__ask-icon {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--tint); color: var(--accent);
}
.req-group--check .todo__ask-icon svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.req-group--check .todo__body { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 20px; }
.req-group--check .todo__body > * { grid-column: 1; }
.req-group--check .todo__body > .todo__actions, .req-group--check .todo__body > .todo__done-note { grid-column: 2; grid-row: 1 / span 2; justify-self: end; }
.req-group--check .todo__head { justify-content: flex-start; }
.req-group--check .req__tip { padding: 0; background: none; }
.req-group--check .req__tip-body > p { font-size: 16px; color: var(--body); }
.req-group--check .todo.is-done .req__tip { display: flex; }
.req-group--check .todo.is-done .todo__title { text-decoration: none; color: var(--ink); }
.req-group--check .todo.is-done { background: var(--white); border-color: #cfe9da; }
.req-group--check .todo.is-skipped { border-color: var(--line-strong); }
.req-group--check .todo.is-done .todo__done-note { display: flex; }
.req-group--check .todo.is-skipped .todo__done-note { color: var(--body); }
.req-group--check .todo__done, .req-group--check .todo__skipped { display: none !important; }
@media (max-width: 639px) {
  .req-group--check .todo { align-items: flex-start; }
  .req-group--check .todo__body { grid-template-columns: minmax(0, 1fr); }
  .req-group--check .todo__body > .todo__actions, .req-group--check .todo__body > .todo__done-note { grid-column: 1; grid-row: auto; justify-self: start; }
}
.req-group--check .todo__title { flex: 0 1 auto; }
/* The tick box, as drawn: a rounded square that turns green with a white tick */
.todo__tick {
  appearance: none; -webkit-appearance: none; display: grid; place-content: center; width: 36px; height: 36px;
  border: 2px solid var(--input-line); border-radius: 12px; background: var(--white); cursor: pointer;
}
.todo__tick:hover { border-color: var(--brand); }
.todo__tick:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.todo__tick::after {
  content: ""; width: 9px; height: 16px; margin-top: -3px; border: solid var(--white); border-width: 0 3px 3px 0;
  transform: rotate(45deg); opacity: 0;
}
.todo__tick:checked { border-color: var(--green); background: var(--green); }
.todo__tick:checked::after { opacity: 1; }
/* Daily tasks: optional, so lighter cards */
.req-group--extra .todo { padding: 16px 20px; border-color: var(--line); }
.req-group--extra .todo__title { font-size: 17px; font-weight: 700; }
.req-group--extra .req__tip { padding: 10px 14px; background: var(--soft); }
.req-group--extra .req__tip-body > p { font-size: 15px; }
.req-group--extra .help-open { min-height: 44px; padding: 0 16px; font-size: 14px; background: var(--tint); }
.req-group--extra .help-open:hover { background: var(--line-strong); }
.req-group--extra .todo__later { min-height: 44px; font-size: 14px; }
.req__change { font-size: 14px; color: var(--body); }
.req__change strong { color: var(--ink); }

/* Everything else: one line each, opens to the detail */
.req-rows { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line-strong); border-radius: 16px; overflow: hidden; }
.req-row + .req-row { border-top: 1px solid var(--line); }
.req-row summary {
  display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 14px 20px; box-sizing: border-box;
  cursor: pointer; list-style: none;
}
.req-row summary::-webkit-details-marker { display: none; }
.req-row summary:hover .req-row__title { text-decoration: underline; text-decoration-color: var(--input-line); text-underline-offset: 3px; }
.req-row summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.status-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; }
.req-row__title {
  flex: 1 1 auto; min-width: 0; font-size: 16px; font-weight: 600; line-height: 1.4; color: var(--ink);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere;
}
.req-row details[open] .req-row__title { display: block; white-space: pre-line; }
.req-row__meta { flex: none; display: flex; align-items: center; gap: 10px; }
.req-row__status { font-size: 13px; color: var(--muted); white-space: nowrap; }
.req-row__chevron {
  flex: none; width: 8px; height: 8px; margin: 0 2px 4px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform 0.15s;
}
.req-row details[open] .req-row__chevron { transform: rotate(-135deg); margin: 4px 2px 0; }
.req-row__body { display: flex; flex-direction: column; gap: 12px; padding: 0 20px 20px 44px; }
@media (max-width: 559px) {
  .req-row summary { flex-wrap: wrap; gap: 6px 12px; padding-inline: 16px; }
  .req-row__title { flex-basis: calc(100% - 52px); }
  .req-row__meta { order: 4; flex-basis: 100%; padding-left: 22px; }
  .req-row__chevron { order: 3; }
  .req-row__body { padding: 0 16px 18px 38px; }
}

/* Folded groups */
.req-fold__toggle { flex: none; font-size: 14px; font-weight: 600; color: var(--accent); }
.req-fold__toggle::after { content: "Show"; }

/* Retest history */
.versions { display: flex; flex-direction: column; gap: 8px; }
.versions__item { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; font-size: 14px; color: var(--body); }
.versions__item.is-current { background: var(--white); border-color: var(--accent); }
.versions__item a { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; color: var(--ink); text-decoration: none; }
.versions__item a:hover strong { text-decoration: underline; }
.versions__item strong { font-size: 15px; overflow-wrap: anywhere; }
.versions__item a span { font-size: 13px; color: var(--muted); }
.versions__item.is-current a span { color: var(--accent); font-weight: 700; }

/* Next step and the quiet footer */
.next-step {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  padding: 26px clamp(20px, 3vw, 32px); border-radius: var(--radius-lg); background: var(--brand); color: var(--white);
}
.next-step > div { flex: 1 1 18em; display: flex; flex-direction: column; gap: 6px; }
.next-step h2 { font-size: 22px; font-weight: 800; color: var(--white); }
.next-step p { font-size: 15px; color: #ded9ce; }
.result__foot { display: flex; flex-direction: column; gap: 12px; }
.result__links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; font-size: 15px; }
.result__links > * { min-height: 44px; display: inline-flex; align-items: center; }
.result__delete { color: var(--muted); font-weight: 600; }
.result__limits { font-size: 13px; color: var(--muted); max-width: 46em; }

/* Phones: progress and the upload button stay in reach */
.sticky-progress { display: none; }
@media (max-width: 639px) {
  .sticky-progress:not([hidden]) {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); background: var(--brand); color: var(--white);
    box-shadow: 0 -8px 24px rgba(25, 25, 28, 0.18);
  }
  .sticky-progress__text { flex: 1 1 auto; display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; }
  .sticky-progress progress { appearance: none; width: 100%; height: 6px; border: 0; border-radius: 999px; background: var(--brand-line); overflow: hidden; }
  .sticky-progress progress::-webkit-progress-bar { background: var(--brand-line); }
  .sticky-progress progress::-webkit-progress-value { background: var(--green-dot); border-radius: 999px; }
  .sticky-progress progress::-moz-progress-bar { background: var(--green-dot); }
  .sticky-progress .btn { flex: none; }
  body.has-sticky { padding-bottom: 76px; }
  .todo { padding: 16px; gap: 12px; }
}

/* ---------- Which account (doc 16 A17), version-limit list ---------- */
.upload-account { margin-top: -8px; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.upload-account strong { color: var(--ink); font-weight: 600; }
.check-problem__list { display: flex; flex-direction: column; gap: 4px; padding-left: 18px; list-style: disc; color: var(--body); font-size: 15px; }
.check-problem .text-link { align-self: flex-start; }

/* ---------- Confirm the requirements ---------- */
.review { display: flex; flex-direction: column; gap: 10px; }
.review__add-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.review__select { width: auto; min-height: 44px; padding: 0 12px; font: inherit; font-size: 15px; }
.review__add-row .input:not(select) { flex: 1 1 14em; min-width: 0; }

/* ---------- In-page confirmation ---------- */
.confirm {
  display: flex; flex-direction: column; gap: 12px; margin-top: 4px; padding: 14px 16px;
  border-radius: var(--radius); background: var(--orange-soft); border: 1px solid var(--orange-line);
}
.confirm__text { color: var(--ink); font-size: 15px; }
.confirm__text:focus, .confirm__title:focus { outline: none; }
.confirm__text:focus-visible, .confirm__title:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.confirm__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.confirm__actions .btn { font-weight: 600; }
/* Laid out (1 Nov 2026): the question and the name up top, then what goes and what stays. */
.confirm--rich { gap: 14px; padding: 18px; border-radius: 16px; }
.confirm__head { display: flex; align-items: flex-start; gap: 12px; }
.confirm__icon {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--white); color: var(--orange); box-shadow: 0 0 0 1px var(--orange-line);
}
.confirm__icon svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.confirm__words { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding-top: 1px; }
.confirm__title { color: var(--ink); font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.confirm__name { color: var(--body); font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.confirm__names { display: flex; flex-direction: column; gap: 2px; padding-left: 18px; list-style: disc; color: var(--body); font-size: 14.5px; font-weight: 600; }
.confirm__names li { overflow-wrap: anywhere; }
.confirm__lists { display: grid; gap: 8px; }
@media (min-width: 560px) { .confirm__lists { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); } }
.confirm__list { padding: 12px 14px; border-radius: 12px; background: var(--white); }
.confirm__label { margin-bottom: 6px; font-size: 12px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.confirm__list--gone .confirm__label { color: var(--orange); }
.confirm__list--kept .confirm__label { color: var(--green-text); }
.confirm__list ul { display: flex; margin: 0; padding: 0; list-style: none; flex-direction: column; gap: 6px; }
.confirm__list li { position: relative; padding-left: 26px; color: var(--ink); font-size: 14.5px; line-height: 1.45; }
.confirm__list li::before {
  position: absolute; left: 0; top: 1px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%;
  font-size: 10px; font-weight: 800; line-height: 1;
}
.confirm__list--gone li::before { content: "✕"; background: var(--orange-bg); color: var(--orange); }
.confirm__list--kept li::before { content: "✓"; background: var(--green-bg); color: var(--green-text); font-size: 11px; }
.confirm__error { color: var(--orange); font-size: 14px; font-weight: 600; }
.confirm__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.confirm__note { color: var(--muted); font-size: 14px; }
.confirm__foot .confirm__actions { margin-left: auto; }

/* ---------- Retest: what changed ---------- */
.result-hero__change { font-size: 16px; font-weight: 600; color: var(--green-text); }   /* --green is under 4.5:1 as text */
.method-note { padding: 12px 14px; border-radius: var(--radius); background: var(--tint); color: var(--body); font-size: 14px; }
.method-note strong { color: var(--ink); }

/* ---------- Your CVs and jobs: calm cards, one picture each (a CV page, a job's initial) ---------- */
.library__head { display: flex; }
.library__head h1 { font-size: clamp(32px, 3.6vw, 40px); line-height: 1.1; font-weight: 800; letter-spacing: -0.03em; }
.library__head h1:focus { outline: none; }
.library__head .lead { max-width: 36em; }
.library__section { display: flex; flex-direction: column; gap: 12px; }
.library__section:focus { outline: none; }
.library__panel {
  display: flex; flex-direction: column; border-radius: 24px;
}
.library__tab {
  flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; background: none; font-family: inherit; cursor: pointer;
}
.library__tab:hover { color: var(--ink); }
.library__tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.library__tab svg { flex: none; width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 479px) {
  .library__tab { gap: 6px; white-space: nowrap; }
  .library__tab svg { display: none; }
}
.library .info-note { margin: 0; }
.library__message { padding: 12px 14px; border-radius: var(--radius); background: var(--green-bg); color: var(--ink); font-size: 15px; }
/* The CVs and jobs tables: library.css (7 Nov 2026). */

/* styles.css's green on green-bg is 4.0:1, under WCAG AA for 12px pill text; a deeper green here (5.5:1). */
.app-page .pill--shown { color: var(--green-text); }

/* ---------- Credits (doc 18 step 3) ---------- */
.credits { display: flex; flex-direction: column; gap: 32px; padding-block: 24px 64px; }
.credits-muted { font-size: 14px; }
/* The balance, the packs and why credits: credits.css (7 Nov 2026). */

.table-scroll { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.credits-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; }
.credits-table th { padding: 12px 18px; text-align: left; font-size: 13px; font-weight: 600; color: var(--muted); }
.credits-table td { padding: 12px 18px; border-top: 1px solid var(--line); }
.credits-table td:first-child { color: var(--muted); white-space: nowrap; }
.credits-table .num { text-align: right; white-space: nowrap; }
.credits-table td.num:nth-child(3) { font-weight: 700; }
.credits-table .is-plus { color: var(--green-text); }   /* var(--green) is 4.3:1 on white, under AA */

.credits-return {
  display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; padding: 24px;
  border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line);
}
.credits-return[data-state="done"] { background: var(--green-bg); border-color: transparent; }
.credits-return[data-state="late"] { background: var(--orange-soft); border-color: var(--orange-line); }
.credits-return > div:last-child { flex: 1 1 280px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.credits-return h1 { font-size: 24px; font-weight: 800; }
.credits-return h1:focus { outline: none; }
.credits-return__icon { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; }
.credits-return__icon[data-return-icon="done"]::before { content: ""; width: 44px; height: 44px; border-radius: 50%; background: var(--green); mask: none; }
.credits-return__icon[data-return-icon="done"] { position: relative; }
.credits-return__icon[data-return-icon="done"]::after {
  content: ""; position: absolute; width: 18px; height: 10px; border: 4px solid var(--white); border-top: 0; border-right: 0;
  transform: translateY(-3px) rotate(-45deg);
}
.credits-return__icon[data-return-icon="late"]::before, .credits-return__icon[data-return-icon="cancelled"]::before {
  content: ""; width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--orange);
}
.credits-return__icon[data-return-icon="cancelled"]::before { border-color: var(--muted); }

/* The cost on the button, and running out (check page) */
.check-cost { font-size: 14px; color: var(--muted); }
/* Can't go on (design A, 14 Nov 2026, the same panel as the home page's): an orange panel with the
   only button on the page, Add credits, and the cheapest pack's price. The check button is hidden
   while it holds (check.ts showShort), so nothing else competes with it. It was a navy panel with
   See the packs, above a dashed check button and a second "You have 0" line. */
.credits-needed { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px; border-radius: var(--radius-lg); background: var(--orange-bg); }
.credits-needed__say { margin: 0; font-size: 15px; line-height: 1.5; color: var(--body); }
.credits-needed__say strong { display: block; color: var(--ink); }
.credits-needed__go { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.credits-needed__go .btn { gap: 10px; }
.credits-needed__from { font-size: 14px; color: var(--body); }
@media (max-width: 599px) {
  .credits-needed { padding: 14px; }
  .credits-needed__go .btn { width: 100%; }
  .credits-needed__from { width: 100%; text-align: center; }
}
/* The button it names is inert while the gate is up, so the page has one thing to press. */
.job-go__check.is-short { background: none; color: var(--body); border: 2px dashed var(--line-strong); }
.job-go__check.is-short:hover { background: none; }
.job-go__check.is-short::after { animation: none; box-shadow: none; }

/* The re-check gate on the results page (doc 18 D1) */
.btn.is-locked { border: 2px dashed var(--input-line); background: var(--soft); color: var(--muted); }
.btn.is-locked:hover { background: var(--soft); }
.gate-note { font-size: 14px; color: var(--muted); }

/* =====================================================================
   Step 1 (the CV): a calmer, plainer upload screen.

   Scoped to .check__step--cv and the new cv-* / helper classes so step 2, the
   results page and the home page's dropzone are untouched. The dropzone's calm
   treatment is scoped to .check-card: index.html keeps the loud orange one,
   where it is the single conversion point on a marketing page.
   ============================================================================ */

/* The shared .check__step grid is copy-beside-card. Step 1 stacks instead:
   hero, then the upload + reassurance row, then "What happens next". */
/* align-items: stretch undoes the shared .check__step's `align-items: start`, which in a
   column flex container sizes children to their content instead of the full width. */
.check__step--cv { display: flex; flex-direction: column; align-items: stretch; }

/* ---------- Dropzone, calm: orange is the response, not the resting state ---------- */
.cv-upload .dropzone {
  min-height: 236px; gap: 6px;
  background: var(--soft); border: 2.5px dashed var(--input-line);
}
.cv-upload .dropzone:hover,
.cv-upload .dropzone.is-dragover { background: var(--orange-soft); border-color: var(--cta); border-style: solid; }
.cv-upload .dropzone__icon { width: 112px; }
.dropzone__cta {
  display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 24px;
  margin-top: 6px; border-radius: 999px; background: var(--cta); color: var(--ink);
  font-size: 16px; font-weight: 800; transition: background-color .15s ease;
}
.cv-upload .dropzone:hover .dropzone__cta { background: var(--cta-hover); }
.cv-upload .dropzone__drag { font-size: 15px; font-weight: 600; color: var(--body); }
.cv-upload .dropzone__hint { font-size: 13.5px; font-weight: 500; color: var(--muted); }

/* ---------- "What does this mean?" ---------- */
.helper > summary {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer; list-style: none;
  padding: 3px 0; border-radius: 6px; font-size: 13.5px; font-weight: 700; color: var(--accent);
}
.helper > summary::-webkit-details-marker { display: none; }
.helper > summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.helper__q {
  flex: none; width: 19px; height: 19px; border-radius: 50%; display: grid; place-items: center;
  background: var(--tint); color: var(--accent); font-size: 12px; font-weight: 800;
  transition: background-color .15s ease, color .15s ease;
}
.helper > summary:hover .helper__q { background: var(--accent); color: var(--white); }
.helper__chev { width: 12px; height: 12px; transition: transform .18s ease; }
.helper[open] > summary .helper__chev { transform: rotate(180deg); }
.helper__body {
  margin-top: 8px; padding: 13px 15px; border-radius: var(--radius-sm);
  background: var(--tint); border-left: 3px solid var(--accent);
  font-size: 14px; color: var(--body); line-height: 1.6;
  max-width: 62em; /* the journey's helper spans the page; cap the line length to stay readable */
}
.helper__body p + p { margin-top: 8px; }
.helper__body strong { color: var(--ink); }

/* ---------- Saved CVs ----------
   The name is capped at two lines rather than forced onto one. `white-space: nowrap` was wrong
   twice over: a 50-character filename has a min-content width wider than a phone, and truncating
   "Patrick_Margey_Senior_Manager_CV..." to one line on a 390px screen hides the only part that
   tells two CVs apart. Wrapping stays allowed, so this can never widen the page. */
.saved__item strong {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  overflow: hidden; overflow-wrap: anywhere;
}
.saved__item { transition: border-color .15s ease, background-color .15s ease; }
.saved__item:hover { border-color: var(--brand-muted); background: var(--soft); }

/* Select, to delete several at once: a tick box per row and a bar that stays in view. */
.library__select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.library__pick { display: none; }
.is-selecting .library__pick { display: grid; place-items: center; flex: none; width: 44px; height: 44px; cursor: pointer; }
.library__pick input, .library__bulk-all input { width: 22px; height: 22px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.is-selecting [data-cv-confirm], .is-selecting [data-version-confirm] { display: none; }
.is-selecting .library__job { cursor: pointer; }
.is-selecting .library__job:has([data-pick]:checked), .is-selecting .doc-card:has([data-pick]:checked) { border-color: var(--accent); background: #faf8ff; }
.library__bulk {
  position: sticky; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 5;
  display: flex; flex-direction: column; gap: 10px; padding: 10px 10px 10px 16px; border-radius: 18px;
  background: var(--brand); color: var(--white); box-shadow: var(--shadow-float);
}
.library__bulk-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.library__bulk-all { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; font-weight: 700; cursor: pointer; }
.library__bulk-all input { accent-color: var(--cta); }
.library__bulk-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.library__bulk-actions .btn { min-height: 44px; font-weight: 600; }
.library__bulk-actions .btn--plain { border-color: var(--white); }
/* Delete on the dark bar: a pale red pill with dark red words (13 Nov 2026: the brown --orange fill
   all but vanished on the dark bar). 6.1:1. */
.library__bulk-actions .btn--danger { background: #ffe1dc; color: #a3200f; }
.library__bulk-actions .btn--danger:hover { background: #ffc9c0; }
.library__bulk .btn--danger:disabled { opacity: 0.5; cursor: not-allowed; }
.library__bulk:has(.confirm) [data-bulk-delete] { display: none; }   /* the question has its own */
.library__bulk [data-bulk-confirm]:empty { display: none; }
.library__bulk .confirm { margin-top: 0; }

/* The lists in folders (30 Oct 2026 design): four tabs over one panel, What this means always on show,
   and to-dos and extras folded to one line until opened. Phone first: the tabs two by two. */
.folders { display: flex; flex-direction: column; margin-top: 8px; }
.folders__head { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.folders__head h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.01em; }
.folders__head p { font-size: 16px; color: var(--body); }
.folders__head strong { color: var(--ink); }
.folders__tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
/* The tabs themselves are in styles.css, shared with the account page; here, each folder's colours. */
.folder-tab--todo[aria-selected="true"] { border-top-color: var(--cta); }
.folder-tab--check[aria-selected="true"] { border-top-color: var(--accent); }
.folder-tab--extra[aria-selected="true"] { border-top-color: var(--brand); }
.folder-tab--shown[aria-selected="true"] { border-top-color: var(--green-dot); }
.folder-tab--todo .folder-tab__icon { background: var(--brand); color: var(--cta); }
.folder-tab--check .folder-tab__icon { background: var(--tint); color: var(--accent); border: 1.5px dashed var(--brand-muted); }
.folder-tab--extra .folder-tab__icon { background: var(--orange-bg); color: var(--orange); }
.folder-tab--shown .folder-tab__icon { background: var(--green-bg); color: var(--green); }
.folder-tab--shown .folder-tab__icon svg { stroke-width: 2.6; }
.folder-tab--cv[aria-selected="true"] { border-top-color: var(--accent); }
.folder-tab--cv .folder-tab__icon { background: var(--tint); color: var(--accent); }
.folder { display: flex; flex-direction: column; gap: 16px; padding: 16px; background: var(--white); border: 1.5px solid var(--line-strong); border-radius: 20px; }
.folder__help { display: flex; gap: 12px; align-items: flex-start; margin: 0; padding: 12px 14px; border-radius: 14px; background: var(--soft); font-size: 15px; line-height: 1.5; color: var(--ink); }
.folder__help svg { flex: none; width: 32px; height: 32px; padding: 7px; box-sizing: border-box; border-radius: 999px; background: var(--white); stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#panel-todo .folder__help { background: var(--orange-soft); }
#panel-todo .folder__help strong, #panel-todo .folder__help svg { color: var(--orange); }
#panel-check .folder__help { background: var(--tint); }
#panel-check .folder__help strong, #panel-check .folder__help svg { color: var(--accent); }
#panel-shown .folder__help { background: var(--green-bg); }
#panel-shown .folder__help strong, #panel-shown .folder__help svg { color: var(--green-text); }
.folder .req-group { gap: 12px; }
.folder .todos { gap: 8px; }
.folder .todo { gap: 12px; padding: 14px 16px; border-radius: 14px; border-color: var(--line); }
.folder .todo__title { font-size: 17px; }
.folder .todo__tick { width: 26px; height: 26px; }
.todos--fold .todo__title .job-map__num { flex: none; }
.todo__head { align-items: baseline; }
.req-done { display: flex; flex-direction: column; gap: 8px; }
.req-done h3 { font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
@media (min-width: 720px) {
  /* One column per tab on show: four, or five once Your CV is offered */
  .folders__tabs { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); align-items: end; margin-bottom: 0; }
  .folder { padding: 20px; }
  .folders.is-first .folder { border-top-left-radius: 0; }
  .folders.is-last .folder { border-top-right-radius: 0; }
}
[data-folders] { scroll-margin-top: 88px; }

/* Making the row's help easy to spot (31 Oct 2026 design): "Why?" as a button inside the tip it
   explains. "I've never done this" used to be pushed to the far right from here; it sits beside
   "Help me write it" now, as the other answer to the same question (4 November 2026 design). */

.req__tip-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.req__tip-body > .compare { border-top-color: var(--orange-line); }
.req__tip-body > .compare .compare__row + .compare__row { border-top-color: var(--orange-line); }
.req__tip-body > .todo__more > summary::before { flex: none; }
/* Phones: the bulb above the tip, so the tip and "Why?" get the card's full width. */
@media (max-width: 559px) {
  .req__tip:has(.req__tip-body > .todo__more) { flex-direction: column; gap: 8px; }
}
/* Done: the tip goes, but "Why?" stays. */
.todo.is-done .req__tip:has(.todo__more) { display: flex; padding: 0; background: none; }
.todo.is-done .req__tip:has(.todo__more) > .req__tip-icon, .todo.is-done .req__tip-body > p { display: none; }

.next-plan__text > span strong { color: var(--white); }

/* The results page, simpler (31 Oct 2026 UX review): three steps, one headline, two cards, the to-do
   list second, everything else in More detail. One word for each thing, and one main button per card. */
.step-label { font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--orange); }
.step-label--dark { color: var(--cta); }

[data-card="day"] .hill { max-width: 22em; }

/* Step 2 is the heart of the page: the heading and the plan strip sit together over the folders */
.folders { margin-top: 0; }
.folders__head { margin-bottom: 10px; }
.folders__head h2 { font-size: clamp(24px, 2.6vw, 30px); }
.folders > .next-plan { margin-bottom: 14px; }

/* A to-do card: the tick says "Done", the marks read as one line, one main button */
/* The tick sits with the other answers at the foot, not in a 44px column of its own down the
   left: a card 356px wide was spending that gutter on a 24px box, and every line of text was
   44px shorter for it (doc 20 §16.12). */
.todo__tick-box { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; }
.todo__tick-word { font-size: 14px; font-weight: 800; color: var(--green-text); }
.req-group--check .todo__tick-box { display: none; }
.todo .req__tags { gap: 0; font-size: 13px; font-weight: 800; color: var(--body); }
.todo .tag-must { padding: 0; background: none; color: var(--ink); }
.todo .tag-must svg { fill: var(--orange); }
.todo .req__tags > .status { padding: 0; background: none; color: var(--body); }
.todo .req__tags > .status::before { content: "·"; width: auto; height: auto; margin: 0 6px; border: 0; border-radius: 0; background: none; }
.todo .req__tags > .tag-must[hidden] + .status::before { content: none; margin: 0; }
/* "I've never done this" is the only control on this tab that writes to your record -- it marks
   the item as never done and counts towards opening the re-check -- and as an underlined link
   beside a filled button it read as a footnote (4 November 2026 design). It is an outlined
   button at the height of the one beside it: clearly the other answer, not an aside. Outlined
   rather than filled, so it never competes with "Help me write it". */
:is([data-list="todo"], [data-list="extra"]) .todo__later { gap: 8px; }
.todo__later svg { flex: none; width: 15px; height: 15px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* Step 3: the button lights up once something is ticked */
.next-step:not(.is-ready) .btn--cta:not(.is-locked), .sticky-progress:not(.is-ready) .btn--cta:not(.is-locked) {
  background: transparent; color: var(--white); box-shadow: inset 0 0 0 1.5px #8d887c;
}

/* More detail: closed until asked for */
.more-detail { background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); }
.more-detail > summary {
  display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 16px 20px; box-sizing: border-box;
  cursor: pointer; list-style: none;
}
.more-detail > summary::-webkit-details-marker { display: none; }
.more-detail > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: var(--radius-lg); }
.more-detail__words { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.more-detail__words strong { font-size: 18px; font-weight: 800; }
.more-detail__words span { font-size: 14px; color: var(--muted); }
.more-detail[open] > summary .req-fold__toggle::after { content: "Hide"; }
.more-detail__body { display: flex; flex-direction: column; gap: 16px; padding: 0 clamp(12px, 2vw, 20px) clamp(12px, 2vw, 20px); }
.how-we h2 { font-size: 20px; }
/* Into the CV editor from the to-do list (doc 20 §8.1) */
.folder__edit { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 14px; }
.folder__edit-note { flex: 1; min-width: 220px; font-size: 14px; line-height: 1.5; color: var(--body); }

/* The top of the page (8 Nov 2026 design A): what was checked on one quiet line, the answer to
   "Should I apply?" as the page's headline, and the one question only the person can answer. */
.context { font-size: 14px; line-height: 1.45; color: var(--body); overflow-wrap: anywhere; }
.context__cv { font-weight: 700; color: var(--ink); }
.context__job {
  padding: 0; border: 0; background: none; font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; text-align: left;
  text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px;
}
.context__job:hover { text-decoration-color: currentColor; }
.context__job:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.answer { display: flex; align-items: center; gap: 18px; min-width: 0; }
.answer__words { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
/* The page's one pulsing control (6 Nov 2026 design A). It sits at the end of the verdict row and
   is vertically centred against the mark, so it fits inside a row that is already about 70px tall
   and costs no height -- which matters, because there are about 30px left above the fold.
   A halo on ::after rather than the button itself: a button that moves is harder to hit, and
   scaling it would change the row's height on every beat. It stops once it has been used. */
.answer__start {
  position: relative; flex: none; align-self: center; display: inline-flex; align-items: center; gap: 9px;
  min-height: 46px; padding: 0 22px; border: 0; border-radius: 999px;
  background: var(--cta); color: var(--ink); font: inherit; font-size: 15.5px; font-weight: 800; cursor: pointer;
}
.answer__start:hover { background: var(--cta-hover); }
.answer__start:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.answer__start svg { flex: none; width: 17px; height: 17px; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.answer__start::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 0 0 var(--cta); animation: start-pulse 2.4s ease-out infinite;
}
.answer__start:hover::after, .answer__start:focus-visible::after,
.answer__start.is-used::after { animation: none; box-shadow: none; }
@keyframes start-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 178, 122, 0.9); }
  70%  { box-shadow: 0 0 0 14px rgba(255, 178, 122, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 178, 122, 0); }
}
@media (prefers-reduced-motion: reduce) { .answer__start::after { animation: none; box-shadow: none; } }
/* The check page's way forward pulses like "Start here" (7 Nov 2026): Use this CV, Next: paste the
   job, and Check my CV. Each is the only one on its screen, so the beat still reads as "press this".
   Check my CV waits for an advert (is-ready): until then the thing to do is paste. It stops once
   the button is pressed, locked or in hand. */
.cv-latest__use, .cv-next .check__next, .job-go__check { position: relative; }
.cv-latest__use::after, .cv-next .check__next::after, .job-go__check.is-ready::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 0 0 var(--cta); animation: start-pulse 2.4s ease-out infinite;
}
.cv-latest__use:hover::after, .cv-latest__use:focus-visible::after,
.cv-next .check__next:hover::after, .cv-next .check__next:focus-visible::after,
.job-go__check:hover::after, .job-go__check:focus-visible::after,
.job-go__check:disabled::after, .job-go__check.is-locked::after { animation: none; box-shadow: none; }
/* Short of credits beats an advert being ready (14 Nov 2026). Both classes are on the button once an
   advert is pasted at 0 credits, and .is-short's own rule (above, with the dashed border) loses to
   .is-ready's on source order, so the one button that can't succeed was the only thing pulsing. */
.job-go__check.is-short.is-ready::after { animation: none; box-shadow: none; }
@media (prefers-reduced-motion: reduce) {
  .cv-latest__use::after, .cv-next .check__next::after, .job-go__check.is-ready::after { animation: none; box-shadow: none; }
}
/* On a phone the row stacks, so the button goes full width under the words rather than beside them. */
@media (max-width: 639px) {
  .answer { flex-wrap: wrap; }
  .answer__start { width: 100%; justify-content: center; }
}
.answer h1 { font-size: clamp(30px, 4.4vw, 52px); line-height: 1.06; letter-spacing: -0.03em; }
.answer .lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--body); }

/* How big a move, in More detail: the hill and the map that used to sit on the summary */
/* Centred: the hill is a picture, and a picture pinned to the left edge of a wide card reads
   as something that failed to load rather than something to look at. */
.move { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: clamp(20px, 3vw, 28px); border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line-strong); text-align: center; }
.move h3 { font-size: 20px; font-weight: 800; }
.move .hill { width: 100%; max-width: 26em; }
.move__text { font-size: 15.5px; line-height: 1.5; color: var(--body); max-width: 34em; }
.move__text strong { color: var(--ink); }

/* The question up top: dark, like the piles' totals and step 3, because it's the thing to do.
   Text on --brand is white or #d9d4cb, both well over 4.5:1. */
.ask { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding: 22px 24px; border-radius: 20px; background: var(--brand); color: var(--white); }
.ask__words { flex: 1 1 22em; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ask__label { font-size: 12.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cta); }
.ask__of { color: #d9d4cb; }
.ask__q { font-size: clamp(18px, 1.8vw, 22px); font-weight: 800; line-height: 1.3; color: var(--white); overflow-wrap: anywhere; }
.ask__why { font-size: 14.5px; line-height: 1.5; color: #d9d4cb; }
.ask__buttons { display: flex; gap: 10px; }
.ask__buttons .btn { min-width: 96px; min-height: 48px; justify-content: center; }
.ask__no { border: 1.5px solid #6e6386; background: transparent; color: var(--white); }
.ask__no:hover { background: var(--brand-line); }
.ask .btn:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
@media (max-width: 639px) {
  .answer { flex-direction: column; align-items: flex-start; gap: 12px; }
  .ask { padding: 18px; }
  .ask__buttons { width: 100%; }
  .ask__buttons .btn { flex: 1; }
}

/* A to-do's status as a pill with its dot (1 Nov 2026): "Missing" and "Needs more" read as marks, not loose words.
   The dot is the same one the dots, the proof table and the job map use: hollow, half, dashed, full. */
.todo .req__tags { gap: 8px; }
.todo .req__tags > .status {
  gap: 7px; padding: 4px 11px 4px 9px; border-radius: 999px; font-size: 13px; font-weight: 700; line-height: 1.35; white-space: nowrap;
  background: var(--tint); color: var(--body); box-shadow: inset 0 0 0 1px var(--line-strong);
}
.todo .req__tags > .status::before, .todo .req__tags > .tag-must[hidden] + .status::before {
  content: ""; flex: none; width: 10px; height: 10px; margin: 0; border-radius: 50%; box-sizing: border-box;
  border: 2px solid #8d887c; background: var(--white);
}
.todo.is-missing .req__tags > .status { background: #f5f4f1; color: var(--ink); box-shadow: inset 0 0 0 1px #e3dfd8; }
.todo.is-partly .req__tags > .status { background: var(--orange-bg); color: var(--orange); box-shadow: inset 0 0 0 1px var(--orange-line); }
.todo.is-partly .req__tags > .status::before { border-color: var(--cta); background: linear-gradient(90deg, var(--cta) 50%, var(--white) 50%); }
.todo.is-unclear .req__tags > .status { color: var(--accent); }
.todo.is-unclear .req__tags > .status::before { border-style: dashed; }
.todo.is-shown .req__tags > .status { background: var(--green-bg); color: var(--green-text); box-shadow: none; }
.todo.is-shown .req__tags > .status::before { border-color: var(--green-dot); background: var(--green-dot); }

/* Your CV (board 11): the page with every item on its line, and the picked card beside it.
   Colours by folder: to-do orange, your call purple, daily work violet, on your CV green. */
/* The folder's colours live on the panel, not on .cv-view, because "See it full size" MOVES
   the page view out of .cv-view and into the dialog. Custom properties inherit down the DOM,
   and the dialog is a sibling of .cv-view, so declaring them there left the key's swatches and
   every pin with no colour at all once the page was moved (2 November 2026). */
[data-folder-panel="cv"] { --cv-todo: #e8833a; --cv-check: var(--accent); --cv-extra: #2b7bb9; --cv-shown: var(--green); }
.cv-view { display: grid; gap: 20px; align-items: start; }
@media (min-width: 960px) {
  .cv-view { grid-template-columns: minmax(0, 1fr) minmax(18em, 24em); }
  /* Folded away, the page takes the whole panel: that is the point of folding it. */
  .cv-view:has(> [data-cv-side][hidden]) { grid-template-columns: minmax(0, 1fr); }
}
/* The two view switches as one segmented control (4 November 2026 design). Both only change how
   much of the page you can see and neither writes anything, so they share a border and a weight:
   an underlined link beside an outlined pill read as two unrelated things of different importance.
   Grouping them also lifts them out of the scale the content actions use -- filled for the one
   action most people should take, outlined for an answer, a link for going somewhere else.
   No fill for the "on" segment: each label says what pressing it does and swaps when it does it,
   so a fill would be saying the same thing in the opposite direction. */
.cv-switch {
  display: inline-flex; border: 1.5px solid var(--line-strong); border-radius: 12px;
  overflow: hidden; background: var(--white);
}
.cv-switch__btn {
  display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 13px;
  border: 0; background: none; color: var(--body);
  font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer;
}
.cv-switch__btn + .cv-switch__btn { border-left: 1.5px solid var(--line-strong); }
.cv-switch__btn:hover { background: var(--tint); color: var(--accent); }
.cv-switch__btn svg { flex: none; width: 15px; height: 15px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* The page on its own. A <dialog>, so the focus trap, Escape and the backdrop are the
   browser's. The page view is moved in and out of .cv-full__body, never copied. */
.cv-full {
  width: min(1100px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 0;
  border: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
  color: var(--ink); background: var(--white);
}
.cv-full[open] { display: flex; flex-direction: column; }
.cv-full::backdrop { background: rgba(25, 25, 28, 0.62); }
.cv-full__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.cv-full__title { font-size: 17px; font-weight: 800; }
.cv-full__body { overflow: auto; padding: 16px; }
/* The list is not in here -- only the page view is moved -- so the control for folding it away
   would be a button with nothing to act on (4 November 2026). */
.cv-full__body [data-cv-side-toggle] { display: none; }
.cv-full__body .cv-bubble__aside { display: none; }
/* With the sentence gone the steps are all that is left, so they take the row rather than
   sitting against one end of an empty one. */
.cv-full__body .cv-bubble__foot { justify-content: flex-end; }
.cv-full__body [data-cv-side-toggle] + .cv-switch__btn { border-left: 0; }
.cv-full__body .cv-view__paper { background: var(--soft); }
.cv-view__page { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.cv-view__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.cv-key { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 0; list-style: none; font-size: 13px; font-weight: 700; color: var(--body); }
.cv-key li { display: inline-flex; align-items: center; }
/* On your CV is not work to do, so it stands off the three that are, past a thin rule. */
.cv-key__apart { padding-left: 14px; border-left: 1.5px solid var(--line-strong); }
/* Each colour is a switch. Turned off it goes quiet and its swatch hollows out, so which are
   on is readable without relying on the colour -- the point of the key in the first place. */
.cv-key__btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 7px;
  border: 1.5px solid transparent; border-radius: 999px; background: none;
  font: inherit; font-size: 13px; font-weight: 700; color: var(--body); cursor: pointer;
}
.cv-key__n {
  min-width: 20px; padding: 1px 6px; border-radius: 999px; background: var(--line);
  color: var(--body); font-size: 11.5px; font-weight: 800; font-variant-numeric: tabular-nums;
}
.cv-key__btn[aria-pressed="false"] .cv-key__n { background: none; box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.cv-key__btn:hover { border-color: var(--line-strong); }
.cv-key__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cv-key__btn[aria-pressed="false"] { color: var(--muted); text-decoration: line-through; }
.cv-key__btn[aria-pressed="false"] .cv-key__swatch { background: none; box-shadow: inset 0 0 0 2px var(--line-strong); }
.cv-view__none { font-size: 14px; line-height: 1.5; color: var(--body); }
.cv-key__swatch { width: 12px; height: 12px; border-radius: 3px; }
.cv-key__swatch--todo { background: var(--cv-todo); }
.cv-key__swatch--check { background: var(--cv-check); }
.cv-key__swatch--extra { background: var(--cv-extra); }
.cv-key__swatch--shown { background: var(--cv-shown); }
.cv-pager { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--body); }
.cv-pager__btn { width: 40px; height: 40px; border: 1.5px solid var(--line-strong); border-radius: 12px; background: var(--white); color: var(--ink); font: inherit; font-size: 18px; cursor: pointer; }
.cv-pager__btn:disabled { opacity: 0.4; cursor: default; }
.cv-pager__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cv-view__kind:empty { display: none; }
.cv-view__kind { font-size: 14px; color: var(--muted); }
.cv-view__paper { padding: 12px 12px 12px 34px; border-radius: 14px; background: var(--soft); }
.cv-paper { position: relative; box-shadow: 0 6px 24px -12px rgba(25, 25, 28, 0.35); background: var(--white); }
.cv-paper__img { display: block; width: 100%; height: auto; }
.cv-paper__marks { position: absolute; inset: 0; }
.cv-paper__gone { padding: 24px; font-size: 15px; color: var(--ink); }
/* A highlighter pen, not a block: multiply keeps the person's own words readable underneath */
.cv-mark { position: absolute; border-radius: 3px; mix-blend-mode: multiply; pointer-events: none; }
.cv-mark--todo { background: rgba(232, 131, 58, 0.3); }
.cv-mark--check { background: rgba(85, 54, 201, 0.2); }
.cv-mark--extra { background: rgba(43, 123, 185, 0.22); }
.cv-mark--shown { background: rgba(47, 138, 95, 0.22); }
.cv-mark.is-chosen { outline: 2px solid var(--brand); outline-offset: 1px; }
/* 26px, not 24. 24 is the minimum a target may be, and sitting exactly on it means any
   sub-pixel rounding puts it under: measured 23.99999237060547 at 390px, which axe fails as
   target-size (serious). Two pixels of margin costs nothing and takes the rounding out of it. */
.cv-pin {
  /* flex: none because the pin is a flex item in .cv-bubble__head, where flex-shrink: 1 let a
     long heading squeeze it to 18.7x26 -- a circle rendered as a tall pill (27 Nov 2026). The
     ones on the CV page are absolutely positioned and were never affected, which is why this
     only shows in the card. */
  display: inline-grid; flex: none; place-items: center; width: 26px; height: 26px; padding: 0; border: 2px solid var(--white); border-radius: 999px;
  color: var(--white); font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; box-shadow: 0 1px 4px rgba(25, 25, 28, 0.3);
}
.cv-paper .cv-pin { position: absolute; transform: translate(-115%, -2px); }
.cv-pin--todo { background: var(--cv-todo); }
.cv-pin--check { background: var(--cv-check); }
.cv-pin--extra { background: var(--cv-extra); }
.cv-pin--shown { background: var(--cv-shown); }
.cv-pin[aria-pressed="true"] { outline: 3px solid var(--brand); outline-offset: 1px; }
.cv-pin:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.cv-pin--still { cursor: default; box-shadow: none; }
.cv-bubble {
  position: absolute; z-index: 2; width: min(24em, 92%); margin-top: 8px; padding: 12px 14px; box-sizing: border-box;
  border-radius: 14px; background: var(--brand); color: var(--white); box-shadow: 0 12px 30px -12px rgba(25, 25, 28, 0.6);
  display: flex; flex-direction: column; gap: 6px;
}
.cv-bubble--above { margin-top: 0; margin-bottom: 8px; }
.cv-bubble__head { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.cv-bubble__folder { margin-left: auto; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); font-size: 12px; font-weight: 800; white-space: nowrap; }
.cv-bubble__tip { font-size: 14px; line-height: 1.5; color: #ded9ce; }
.cv-bubble__steps { display: inline-flex; flex: none; gap: 8px; }
/* wrap, so the sentence and the buttons stack on a narrow card instead of squeezing each other:
   at 390px the two shared one line, and "<Back" broke after its chevron (27 Nov 2026). */
.cv-bubble__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--cta); }
.cv-bubble__aside { flex: 1 1 10em; }
.cv-bubble__next {
  /* nowrap is the fix for the broken label; the rest keeps the pair the same size as each other,
     which they were not -- "Next >" is a character wider than "< Back". */
  display: inline-flex; align-items: center; justify-content: center; flex: 1 1 auto;
  min-width: 6.5em; min-height: 40px; padding: 0 14px; white-space: nowrap;
  border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.14); color: var(--white);
  font: inherit; font-size: 13px; font-weight: 800; cursor: pointer;
}
.cv-bubble__next:hover { background: rgba(255, 255, 255, 0.22); }
.cv-bubble__next:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
/* A Word CV: its lines as text */
.cv-text { display: flex; flex-direction: column; gap: 4px; padding: 28px 32px; background: var(--white); font-size: 14px; line-height: 1.5; color: var(--ink); }
.cv-text__line { position: relative; padding: 2px 6px; border-radius: 4px; }
.cv-text__line .cv-pin { margin-right: 8px; vertical-align: -6px; }
.cv-text__line--todo { background: rgba(232, 131, 58, 0.2); }
.cv-text__line--check { background: rgba(85, 54, 201, 0.12); }
.cv-text__line--extra { background: rgba(43, 123, 185, 0.14); }
.cv-text__line--shown { background: rgba(47, 138, 95, 0.14); }
.cv-text__line.is-chosen { outline: 2px solid var(--brand); }
.cv-text .cv-bubble { position: static; width: auto; margin: 4px 0 8px; }
/* A Word CV set out as pages (wordpages.ts). Everything inside a sheet is sized in container
   units, so a sheet keeps the same layout -- and the same line boxes -- at any width. It is
   measured off screen at 1000px and drawn wherever a page picture would go. The font is a
   Word-like sans rather than the site's: it is the person's document, not our page. */
.word-sheet { position: relative; display: block; width: 100%; aspect-ratio: 595 / 842; container-type: inline-size; background: var(--white); color: #1f1f1f; text-align: left; }
.word-sheet__body { position: absolute; inset: 7.5cqw 9cqw; display: block; font-family: Aptos, Calibri, Carlito, "Segoe UI", "Helvetica Neue", Arial, sans-serif; font-size: 1.85cqw; line-height: 1.17; }
.word-sheet__line { position: relative; display: block; margin: 0; white-space: pre-wrap; tab-size: 4; overflow-wrap: anywhere; }
.word-sheet__line--bold { font-weight: 700; }
.word-sheet__line--italic { font-style: italic; }
.word-sheet__line--center { text-align: center; }
.word-sheet__line--right { text-align: right; }
.word-sheet__line--justify { text-align: justify; }
.word-sheet__line--bullet::before, .word-sheet__line--number::before { position: absolute; right: 100%; margin-right: 0.5em; font-weight: 400; font-style: normal; }
.word-sheet__line--bullet::before { content: "•"; }
.word-sheet__line--number::before { content: attr(data-n); }
.word-sheet-host { position: fixed; top: 0; left: -10000px; width: 1000px; visibility: hidden; pointer-events: none; }
.cv-view__side { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.cv-view__here-title { font-size: 15px; font-weight: 800; color: var(--ink); }
.cv-view__here { display: flex; flex-wrap: wrap; gap: 6px; }
.cv-dot { width: 36px; height: 36px; border: 3px solid var(--white); border-radius: 999px; color: var(--white); font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.cv-dot--todo { background: var(--cv-todo); }
.cv-dot--check { background: var(--cv-check); }
.cv-dot--extra { background: var(--cv-extra); }
.cv-dot--shown { background: var(--cv-shown); }

/* A gap has no line, so it is an outline rather than a disc: nothing to point at, and it says
   so without a word. The colour still says which folder it belongs to.
   After the fills and at a higher specificity, both deliberately. Written before them at one
   class each, `background: none` lost to `.cv-dot--todo` on source order while the colour rule
   won on specificity -- so the number was painted the same colour as the disc behind it and
   the whole list came out blank (reported from staging, 2 November 2026). */
.cv-dot.cv-dot--gap { background: none; box-shadow: inset 0 0 0 2.5px currentColor; }
.cv-dot.cv-dot--gap.cv-dot--todo { color: var(--cv-todo); }
.cv-dot.cv-dot--gap.cv-dot--check { color: var(--cv-check); }
.cv-dot.cv-dot--gap.cv-dot--extra { color: var(--cv-extra); }
.cv-dot.cv-dot--gap.cv-dot--shown { color: var(--cv-shown); }
/* Dealt with: a tick for done, a cross for "I haven't done this". The badge sits on the corner
   rather than replacing the number, because the number is how the dot is found and said aloud
   -- the answer is extra information about it, not a replacement for it. */
.cv-dot, .cv-pin { position: relative; }
/* The dot is faded by a white veil over its disc, not by opacity: opacity faded the badge with it,
   so the tick and cross came out a washed-out green and grey (4 November 2026). */
.cv-dot--done::before, .cv-dot--skipped::before, .cv-pin--done::before, .cv-pin--skipped::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.45); pointer-events: none;
}
.cv-dot--done::after, .cv-dot--skipped::after, .cv-pin--done::after, .cv-pin--skipped::after {
  content: "✓"; position: absolute; right: -4px; bottom: -4px;
  display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%;
  border: 2px solid var(--white); background: #16a34a; color: var(--white);
  font-size: 10px; font-weight: 900; line-height: 1; box-shadow: 0 1px 3px rgba(25, 25, 28, 0.25);
}
.cv-dot--skipped::after, .cv-pin--skipped::after { content: "✕"; background: #dc2626; }
.cv-pin--done::after, .cv-pin--skipped::after { width: 14px; height: 14px; font-size: 8px; right: -3px; bottom: -3px; }

.cv-view__gaps-title { margin-top: 4px; color: var(--body); font-weight: 700; }
.cv-view__gaps-title span { color: var(--muted); font-weight: 700; }
.cv-dot[aria-pressed="true"] { border-color: var(--brand); }
.cv-dot:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
/* The card is the real one, lifted out of its folder, so it arrives with a layout meant for a
   full-width list: a 44px tick column and 14-20px of padding either side. In a 24em sidebar
   that leaves a gulf between the tick and the words. Tightened here only -- the card in its own
   list is untouched. */
.cv-view__card .todo { gap: 9px; padding: 14px 15px; }
.cv-view__card .todo__tick-box { min-width: 0; }
.cv-view__card .todo__tick { width: 20px; height: 20px; }
.cv-view__card .todo__tick-word { font-size: 10.5px; }
.cv-view__card .todo__body { gap: 9px; }
.cv-view__card .todos--fold .todo__title { min-height: 0; }

/* The column is about 24em. The card arrives laid out for a full-width list, where an icon
   tile, three levels of padded panel and 48px buttons are all comfortable; stacked in a narrow
   column they push the useful words off the bottom of the screen. Everything below trims the
   frame, not the content: the tip's icon tile goes (the label already says WHAT TO ADD), the
   panels keep one level of padding instead of three, and the buttons come down to the 44px a
   touch target actually needs. */
.cv-view__card .todo__head { gap: 4px 8px; }
.cv-view__card .todo__title { flex: 1 1 100%; font-size: 15.5px; line-height: 1.3; }
.cv-view__card .req__tags { font-size: 12px; }
.cv-view__card .req__tip { gap: 0; padding: 11px 12px; font-size: 14px; }
.cv-view__card .req__tip-icon { display: none; }
.cv-view__card .req__tip-body > p { font-size: 14px; line-height: 1.5; }
.cv-view__card .req__tip .req__tip-label { font-size: 11.5px; }
.cv-view__card .req__quotes { gap: 4px; font-size: 13px; }
.cv-view__card .todo .help-open,
.cv-view__card .todo__later,
.cv-view__card .todo__works { min-height: 40px; font-size: 14px; }
.cv-view__card .todo .help-open { padding: 0 16px; font-size: 14.5px; }
.cv-view__card { margin: 0; padding: 0; list-style: none; }
.cv-view__card:empty { display: none; }
.cv-view__card > li { border-color: var(--accent); }
/* A Your call card lays itself out in two columns -- the question on the left, the answer or
   the "You said yes" note held to the right -- which is right across a folder's full width and
   wrong in this column. Beside the page it had about 90px for the question, so the title came
   out a word a line and "Open it in its list" came out a word a line under it (5 November 2026).
   One column here, the same way the phone breakpoint does it: the column is narrow at every
   viewport, so the width that matters is this one, not the window's. */
/* Compound, not descendant. park() builds the card's class list as the row's list classes, its
   section's classes and cv-view__card joined onto ONE element, so .cv-view__card
   .req-group--check never matched anything and a Your call card beside the page kept the
   two-column layout: the question came out a word a line (6 Nov 2026). */
.cv-view__card.req-group--check .todo__body { grid-template-columns: minmax(0, 1fr); }
.cv-view__card.req-group--check .todo__body > .todo__actions,
.cv-view__card.req-group--check .todo__body > .todo__foot,
.cv-view__card.req-group--check .todo__body > .todo__done-note { grid-column: 1; grid-row: auto; justify-self: start; }
.cv-view__card.req-group--check .todo { align-items: flex-start; }
.cv-view__card.req-group--check .todo__done-note { flex-wrap: wrap; }

/* The way out belongs to the card it leaves: in the footer beside the tick, at the far edge,
   with an arrow pointing where it takes you. It is a sibling of the actions rather than one of
   them, so a done card -- which hides its actions -- keeps it. */
.todo__foot > .cv-view__back {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 700;
}
.cv-view__back svg { flex: none; width: 14px; height: 14px; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.cv-view__back { align-self: flex-start; }
.show-me { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; font-size: 14px; }
.show-me svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cv-view__card .show-me { display: none; }   /* it's already on show */
.cv-paper-wrap { display: flex; flex-direction: column; gap: 10px; }
.cv-bubble--sheet { display: none; }
/* ‹ Back and Next › over the card (cvview.ts drawWalk), only where the card is beside the page. */
.cv-walk { display: none; }
.cv-walk__label { margin-right: auto; font-size: 13px; font-weight: 700; color: var(--muted); }
.cv-walk .cv-bubble__next { background: var(--brand); }
@media (min-width: 960px) {
  /* The page keeps you company down the column (staging walk, 16 Nov 2026): Help me write it
     makes the card far taller than the page, and the left went blank for a screen. A page taller
     than the window sticks by its foot (--cv-page-h, from cvview.ts), so none of it is out of
     reach; a shorter one sticks under the header. Only in .cv-view: full size moves it out. */
  .cv-view > .cv-view__page { position: sticky; top: min(88px, calc(100vh - var(--cv-page-h, 0px) - 16px)); }
  /* The card is beside the page, so the bubble on it only repeated the card, over the lines it
     pointed at. The walk takes its Back and Next. Hide the list, and the bubble is back. */
  .cv-view:not(:has(> [data-cv-side][hidden])) .cv-paper .cv-bubble { display: none; }
  .cv-view:not(:has(> [data-cv-side][hidden])) .cv-walk:not([hidden]) { display: flex; align-items: center; gap: 6px; margin: 0; }
}
/* With the list hidden, the card isn't beside the page any more. */
.cv-view:has(> [data-cv-side][hidden]) .cv-bubble__aside { display: none; }
@media (max-width: 640px) {
  .cv-paper .cv-bubble { display: none; }
  .cv-bubble--sheet { display: flex; position: static; width: auto; margin: 0; }
  .cv-view__paper { padding-left: 28px; }
  /* On a phone this card is the only way through the CV, so Back and Next get a full-width row
     of their own under the sentence, and the 44px target .show-me already uses. */
  .cv-bubble__foot { gap: 12px; }
  .cv-bubble__aside { flex: 1 1 100%; }
  .cv-bubble__steps { display: flex; width: 100%; gap: 10px; }
  .cv-bubble__next { min-height: 44px; font-size: 14px; }
}

/* A section's small label, over its heading. */
.hero-label { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

/* ---------- Results wait: two halves (5 Nov 2026, design 3) ----------
   While the check runs: what's happening on a dark panel, a tip beside it (stacked on a phone, the
   dark panel first). When it can't be shown (wait--done): one plain card, as before. */
.wait--split { max-width: 1040px; width: 100%; margin: clamp(8px, 6vh, 72px) auto; padding: 0; gap: 0; overflow: hidden; }
.wait--split:not(.wait--tips) { max-width: 560px; }
.wait--split.wait--done { max-width: 720px; padding: 24px; gap: 12px; }
.wait--split.wait--done .wait__step { display: none; }
.wait--split:not(.wait--done) [data-wait-spinner] { display: none; }   /* the current stage spins instead */
.wait--split:not(.wait--done) .wait__status {
  gap: 14px; align-items: stretch; padding: clamp(24px, 3.4vw, 40px) clamp(20px, 3.6vw, 44px);
  background: var(--brand); color: var(--white);
}
.wait--split:not(.wait--done) .wait__title { color: var(--white); }
.wait__job { color: #d9d4cb; font-size: 15px; margin-top: -6px; overflow-wrap: anywhere; }
.wait__job strong { color: var(--white); }
.check__inner > .wait--split { max-width: none; margin-block: 0; }   /* the check page's step 3: the width of steps 1 and 2 */
.wait--split:not(.wait--done) .wait__text { margin-top: auto; padding-top: 6px; color: #d9d4cb; font-size: 14px; }
.wait--split .job-stages { margin-top: 10px; gap: 18px; }
.wait--split .job-stages .progress__item { color: #d9d4cb; }
.wait--split .job-stages .progress__item[data-state="done"], .wait--split .job-stages .progress__item[data-state="active"] { color: var(--white); }
.wait--split .job-stages strong { font-size: 17px; }
.wait--split .job-stages .progress__item span span { color: #d9d4cb; }
.wait--split .job-stages .progress__item[data-state="done"] span span { color: #bfe6cf; }
.wait--split .progress__icon { width: 30px; height: 30px; border-color: #6e6386; }
.wait--split .progress__item[data-state="active"] .progress__icon { border: 4px solid var(--brand-line); border-top-color: var(--cta); }
.wait--split .progress__item[data-state="done"] .progress__icon { background: var(--green); }
.wait--split .progress__item[data-state="done"] .progress__icon::after { left: 10px; top: 10px; }
.wait--split .wait__learn .learn {
  height: 100%; box-sizing: border-box; border-radius: 0; background: var(--white);
  padding: clamp(24px, 3vw, 36px) clamp(20px, 3.4vw, 40px);
}
.wait--split .learn__ask { background: var(--tint); }
@media (prefers-reduced-motion: reduce) {
  .wait--split .progress__item[data-state="active"] .progress__icon { border-color: var(--cta); }
}
@media (min-width: 760px) {
  .wait--split.wait--tips:not(.wait--done) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 759px) {
  /* On a phone only the stage it's on says more */
  .wait--split .job-stages .progress__item:not([data-state="active"]) span span { display: none; }
  .wait--split .job-stages .progress__item:not([data-state="active"]) { align-items: center; }
}

/* ---------- Where you stand, as one table (6 Nov 2026, T1a) ----------
   The advert's lists down the side, the piles across the top: every number on the summary is a
   pile's, said by which list it came from. Dashed lines between the columns so the eye runs down
   each one to its pile's total. */
/* Its own card (8 Nov 2026 design A), the answer's partner: the table, a footnote, how big a move in
   one line, and Your CV at a glance at the foot. */
.where {
  --where-gap: 12px;
  display: flex; flex-direction: column; gap: var(--where-gap); min-width: 0; padding: clamp(22px, 3vw, 32px);
  background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
}
.where__title { margin: -4px 0 2px; font-size: clamp(20px, 2.2vw, 26px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.3; color: var(--ink); }
.where .move { gap: 10px; }

/* The two rows at the foot of the card, on the accent's pale: how big a move, and the way into
   Your CV at a glance. One shape, so they read as a pair of "more about this" rather than two
   unrelated controls. */
.where__more { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 14px; background: var(--tint); }
.where__more-text { flex: 1 1 auto; min-width: 0; font-size: 15px; line-height: 1.45; color: var(--body); }
.where__more-text strong { color: var(--ink); }
.where__more-go { flex: none; align-self: center; }
/* The four steps of the hill, small; the one you're on in the accent. */
.move-line__hill { flex: none; width: 46px; height: 28px; }
.move-line__hill rect { fill: #d4c6ff; }
.move-line__hill[data-step="down"] rect:nth-child(1), .move-line__hill[data-step="same"] rect:nth-child(2),
.move-line__hill[data-step="up"] rect:nth-child(3), .move-line__hill[data-step="leap"] rect:nth-child(4) { fill: var(--accent); }
@media (max-width: 559px) {
  .move-line { flex-wrap: wrap; }
  .move-line .where__more-text { flex-basis: calc(100% - 60px); }
}
.where__glance { width: 100%; border: 1.5px solid transparent; font: inherit; text-align: left; cursor: pointer; }
.where__glance:hover { border-color: var(--accent); }
.where__glance:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.where__glance-icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--white); color: var(--accent); }
.where__glance-icon svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
/* The chevron says this opens in place rather than taking you somewhere. */
.where__glance-v { flex: none; width: 20px; height: 20px; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s ease; }
.where__glance[aria-expanded="true"] .where__glance-v { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) { .where__glance-v { transition: none; } }

/* The panel is its own block under the button. Its summary is kept for the outline and for the
   keyboard, but the button is what anyone presses. Closed, it must cost nothing: a shut details
   still counts in the card's gap, so that is given back until it is open, and so is its border. */
.where .job-map:not([open]) { margin-bottom: calc(-1 * var(--where-gap)); border-width: 0; }
.where .job-map > summary { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.where__table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.where__table :is(th, td) { padding: 10px 14px; border-top: 1px solid var(--line); text-align: center; vertical-align: middle; font-size: 15px; }
.where__table :is(th, td) + :is(th, td) { border-left: 1.5px dashed var(--input-line); }
.where__table thead th { padding-block: 10px; border-top: 0; background: var(--soft); font-size: 13px; font-weight: 700; color: var(--body); }
.where__table .where__list { width: 34%; text-align: left; }
/* A pile column's heading is a button into that folder, and still has to read as a heading:
   it inherits the colour and weight the th already had, and says it is pressable by what it
   does under the pointer rather than by looking like a control in a row of labels (6 Nov 2026). */
.where__go {
  display: inline-block; width: 100%; padding: 0; border: 0; border-radius: 6px;
  background: none; color: inherit; font: inherit; cursor: pointer;
  text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px;
  transition: text-decoration-color .12s ease, background-color .12s ease;
}
.where__go:hover { text-decoration-color: currentColor; background: var(--soft); }
.where__go:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; text-decoration-color: currentColor; }
@media (prefers-reduced-motion: reduce) { .where__go { transition: none; } }

.where__table thead .where__pile--shown { color: var(--green-text); }
.where__table thead .where__pile--todo { color: var(--orange); }
.where__table thead .where__pile--check { color: var(--accent); }
.where__table thead .where__pile--extra { color: #5a3fbf; }
.where__row .where__list { font-weight: 400; }
.where__name { display: block; font-weight: 800; color: var(--ink); }
.where__sub { display: block; font-size: 13px; color: var(--body); }
.where__dealt { display: block; font-size: 12.5px; font-weight: 700; color: var(--green-text); }
.where__row [data-where-cell] { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ink); }
.where__row .where__pile--shown[data-where-cell] { color: var(--green-text); }
.where__table .is-none { color: var(--muted); }
/* The piles' totals: dark, like the question up top, with lighter dashes. */
.where__total :is(th, td) { border-top: 0; background: var(--brand); color: var(--white); }
.where__table .where__total :is(th, td) + :is(th, td) { border-left-color: #5a4d78; }
.where__total .where__list { font-weight: 800; }
.where__total .where__pile { font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; }
.where__total .where__pile--shown { color: #bfe6cf; }
.where__total .where__pile--todo { color: var(--cta); }
.where__total .where__pile--check { color: #b8a6f5; }
.where__total .where__pile--extra { color: #d4c6ff; }
.where__note { font-size: 13.5px; color: var(--body); }

/* On a phone the same table, laid out as a grid (it carries its table roles in the markup, so
   assistive tech still reads a table): the four piles as a strip across the top, then each list as
   its name on one line and its four numbers under the piles' names. */
@media (max-width: 759px) {
  .where__table, .where__table :is(thead, tbody, tfoot) { display: block; }
  .where__table tr { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .where__table :is(th, td) { padding: 8px 4px; border-top: 0; }
  .where__table :is(th, td) + :is(th, td) { border-left: 0; }
  .where__table tr > .where__pile ~ .where__pile { border-left: 1.5px dashed var(--input-line); }
  .where__table .where__total > .where__pile ~ .where__pile { border-left-color: #5a4d78; }
  .where__table thead .where__list {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
  .where__table thead th { font-size: 12px; line-height: 1.25; }
  .where__table tbody tr { border-top: 1px solid var(--line); }
  .where__table :is(tbody, tfoot) .where__list { grid-column: 1 / -1; grid-row: 1; width: auto; padding: 12px 14px 0; }
  .where__table :is(tbody, tfoot) .where__pile { grid-row: 2; padding: 6px 4px 10px; }
}

/* Simpler work items (8 Nov 2026 design): every card is the same four parts -- the title with its
   status, what to do as plain words, the two quotes in one grey panel, then the answers. The tip
   loses its bulb tile, its WHAT TO ADD label and its tinted box (the advice is the card, so it
   needs no frame of its own); the status is a dot and a word, not a pill; Help me write it is the
   one filled button on every list; Show me on my CV is a link; and Done is the same square tick
   wherever the card sits. Layout and order are unchanged. */
.todo .req__tip { gap: 0; padding: 0; border-radius: 0; background: none; }
.todo .req__tip-icon { display: none; }
.todo .req__tip-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.todo .req__tip-body > p { font-size: 15.5px; line-height: 1.6; color: var(--ink); }
.cv-view__card .todo .req__tip-body > p { font-size: 14.5px; }

.todo .req__tags > .status { padding: 0; background: none; box-shadow: none; }
.todo:is(.is-missing, .is-partly, .is-unclear, .is-shown) .req__tags > .status { background: none; box-shadow: none; }

.todo .compare { border-top: 0; padding: 4px 16px; border-radius: 12px; background: #f8f7f4; }
.todo .compare .compare__row + .compare__row { border-top: 0; padding-top: 0; }
.todo .compare .req__label { font-size: 12.5px; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--muted); }
.todo .mark, .req-row .mark { padding: 0 2px; border-radius: 3px; }

.req-group--extra .help-open { min-height: 48px; padding: 0 22px; background: var(--cta); color: var(--ink); font-size: 15px; font-weight: 800; }
.req-group--extra .help-open:hover { background: var(--cta-hover); }

.req-group--check .todo { border: 1.5px solid var(--line-strong); }
.req-group--check .todo__ask-icon { display: none; }

.show-me { min-height: 44px; padding: 0 6px; border: 0; background: none; box-shadow: none; color: var(--accent); font-weight: 700; }
.show-me:hover { background: none; color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.req-row__body > .show-me { align-self: flex-start; }

.todo .todo__tick { width: 26px; height: 26px; border-radius: 8px; }
.todo .todo__tick::after { width: 7px; height: 13px; margin-top: -2px; border-width: 0 2.5px 2.5px 0; }
.todo .todo__tick-word { font-size: 14.5px; color: var(--ink); }
.todo__foot > .todo__tick-box { margin-left: auto; }
.cv-view__card .todo__foot > .todo__tick-box { margin-left: 0; }
@media (max-width: 559px) {
  .todo__foot > .todo__tick-box { margin-left: 0; }   /* on its own line under the stacked buttons, it starts where they do */
}

/* Folder tabs, one colour per list (8 Nov 2026 design). Each list has one colour and it is the same
   everywhere: the tab's bar, icon and count when it is open, and the list's marks on the CV page.
   To-do orange, Your call purple, Daily work blue (set with the CV page's colours, --cv-extra),
   On your CV green; Your CV, the view of them all, is ink. The open tab is white and taller, joined to its panel; the others are flat grey with grey
   icons, so the one in colour is the one you are on. The icon tiles and the subtitles went: each
   tab's explanation is its tooltip, on hover or keyboard focus. Results page only -- the account
   page shares .folder-tab from styles.css and keeps its look. */
.folders { --list-todo: #e8833a; --list-check: var(--accent); --list-extra: #2b7bb9; --list-shown: var(--green); }
.cv-key__btn[aria-pressed="false"] { text-decoration: none; }

.folders__tabs { gap: 6px; }
.folders__tabs .folder-tab {
  --c: var(--brand); --cb: var(--brand); --ct: var(--white);
  position: relative; gap: 9px; min-height: 54px; padding: 0 16px; margin-bottom: 0;
  border: 0; border-top: 4px solid transparent; border-radius: 14px 14px 0 0; background: #ebe9e3; color: var(--body);
}
.folders__tabs .folder-tab--todo { --c: var(--list-todo); --cb: #ffe3cf; --ct: #8a3d0f; }
.folders__tabs .folder-tab--check { --c: var(--list-check); --cb: #e9e3fb; --ct: #3f27a0; }
.folders__tabs .folder-tab--extra { --c: var(--list-extra); --cb: #dcecf8; --ct: #1d5a8a; }
.folders__tabs .folder-tab--shown { --c: var(--list-shown); }
.folders__tabs .folder-tab:hover { background: #e3dfd7; }
.folders__tabs .folder-tab__icon { width: auto; height: auto; border: 0; border-radius: 0; background: none; color: #7e7970; }
.folders__tabs .folder-tab__icon svg { width: 20px; height: 20px; }
.folders__tabs .folder-tab--shown .folder-tab__icon { color: var(--list-shown); }
.folders__tabs .folder-tab--shown .folder-tab__icon svg { stroke-width: 2.6; }
.folders__tabs .folder-tab__name { flex-wrap: nowrap; white-space: nowrap; font-weight: 700; }
.folders__tabs .folder-tab__count { background: #ddd8d0; color: var(--ink); }
.folders__tabs .folder-tab--shown .folder-tab__count { display: none; }   /* nothing to do: a tick, not a number */
.folders__tabs .folder-tab[aria-selected="true"] {
  position: relative; z-index: 1; min-height: 62px; margin-bottom: -1.5px; background: var(--white); color: var(--ink); border-top-color: var(--c);
}
.folders__tabs .folder-tab[aria-selected="true"] .folder-tab__name { font-weight: 800; }
.folders__tabs .folder-tab[aria-selected="true"] .folder-tab__icon { color: var(--c); }
.folders__tabs .folder-tab[aria-selected="true"] .folder-tab__count { background: var(--cb); color: var(--ct); }

/* The tooltip: under its tab, on hover (where there is a pointer) and on keyboard focus. Escape
   hides it (foldertabs.ts). It lingers for a moment after the pointer leaves, so the pointer can
   cross the gap onto it (WCAG 1.4.13). */
.folder-tab__tip {
  position: absolute; top: calc(100% + 10px); left: 8px; z-index: 5; width: max-content; max-width: 260px;
  padding: 10px 12px; box-sizing: border-box; border-radius: 10px; background: var(--ink); color: var(--white);
  font-size: 13px; font-weight: 500; line-height: 1.45; white-space: normal; text-align: left;
  box-shadow: 0 8px 20px -8px rgba(25, 25, 28, 0.5);
  opacity: 0; visibility: hidden; transition: opacity 0.15s, visibility 0s linear 0.2s;
}
.folder-tab__tip::before { content: ""; position: absolute; top: -5px; left: 18px; width: 10px; height: 10px; background: var(--ink); transform: rotate(45deg); }
.folders__tabs .folder-tab--shown .folder-tab__tip { left: auto; right: 8px; }
.folders__tabs .folder-tab--shown .folder-tab__tip::before { left: auto; right: 18px; }
@media (hover: hover) {
  .folders__tabs .folder-tab:hover .folder-tab__tip { opacity: 1; visibility: visible; transition-delay: 0.25s, 0s; }
}
.folders__tabs .folder-tab:focus-visible .folder-tab__tip { opacity: 1; visibility: visible; transition-delay: 0s; }
.folders__tabs .folder-tab.is-tip-off .folder-tab__tip { opacity: 0; visibility: hidden; }
@media (prefers-reduced-motion: reduce) {
  .folder-tab__tip { transition: none; }
}

/* On a phone: one row that scrolls sideways, joined to the panel, instead of six rows of buttons.
   No tooltips here -- there is no pointer, and a tap opens the tab -- so each panel's first line,
   What this means, does that job. */
@media (max-width: 719px) {
  .folders__tabs {
    display: flex; overflow-x: auto; align-items: flex-end; margin-bottom: -1.5px; position: relative; z-index: 1;
    scrollbar-width: none;
  }
  .folders__tabs::-webkit-scrollbar { display: none; }
  .folders__tabs .folder-tab { flex: none; min-height: 50px; padding: 0 14px; }
  .folders__tabs .folder-tab[aria-selected="true"] { min-height: 56px; margin-bottom: 0; }
  .folder-tab__tip { display: none; }
  .folders .folder { border-top-left-radius: 0; }
}

/* ---------- Loading: the shape of what's coming (8 Nov 2026) ----------
   A soft bar for each line, a shine passing over them. styles.css stops the shine under reduced motion,
   which leaves the shapes. Each page lays its own out (home.css, library.css). */
.skel {
  display: block; height: 14px; border-radius: 8px;
  background: linear-gradient(100deg, #ece6db 30%, #f7f4ef 50%, #ece6db 70%) 0 0 / 300% 100%;
  animation: skel-shine 1.6s ease-in-out infinite;
}
@keyframes skel-shine { from { background-position: 100% 0; } to { background-position: 0 0; } }
.skel--title { height: clamp(30px, 5vw, 48px); border-radius: 12px; }
.skel--line { height: 14px; }
.skel--sm { height: 10px; }
.skel--icon { width: 56px; height: 56px; border-radius: 18px; }
.skel--pill { width: 160px; height: 48px; border-radius: 999px; }
.skel--pill.skel--sm { width: 72px; height: 36px; }
.skel--w30 { width: 30%; } .skel--w40 { width: 40%; } .skel--w50 { width: 50%; }
.skel--w60 { width: 60%; } .skel--w70 { width: 70%; } .skel--w75 { width: 75%; }

/* ---------- A finished result, loading (12 Nov 2026, in-between design B) ----------
   The result's own cards (.result-hero, .where, .next-plan) with grey bars where the words will be,
   so nothing moves when they arrive. The bars are the shared .skeleton (styles.css). */
.result-loading { display: flex; flex-direction: column; gap: clamp(20px, 3vw, 32px); }
.result-loading[hidden] { display: none; }
.result-loading .skeleton { max-width: 100%; }
.result-loading__context { width: min(34em, 80%); height: 14px; }
.result-loading__headline { width: min(15em, 90%); height: clamp(32px, 4.4vw, 52px); border-radius: 10px; }
.result-loading__lead { width: min(30em, 75%); height: 18px; margin-top: 8px; }
.result-loading__start { flex: none; width: 150px; height: 52px; border-radius: 999px; }
.result-loading__title { width: min(14em, 60%); height: 26px; }
.result-loading__table { border: 1px solid var(--line-strong); border-radius: 14px; overflow: hidden; }
.result-loading__row {
  display: grid; grid-template-columns: 2.2fr 1.2fr 0.8fr 1fr 1.1fr; align-items: center; justify-items: center;
  min-height: 64px; border-top: 1px solid var(--line);
}
.result-loading__row > span:first-child { justify-self: stretch; display: flex; flex-direction: column; gap: 6px; padding: 0 14px; }
.result-loading__row > span:first-child .skeleton { width: 55%; height: 14px; }
.result-loading__row > span:first-child .skeleton + .skeleton { width: 40%; height: 11px; }
.result-loading__row > .skeleton { width: 22px; height: 18px; }
.result-loading__row--head { min-height: 0; padding: 12px 0; border-top: 0; background: var(--soft); font-size: 13px; font-weight: 600; color: var(--body); }
.result-loading__row--head > span:first-child { display: block; }
.result-loading__row--head .where__pile--shown { color: var(--green-text); }
.result-loading__row--head .where__pile--todo { color: var(--orange); }
.result-loading__row--head .where__pile--check, .result-loading__row--head .where__pile--extra { color: var(--accent); }
.result-loading__row--total { min-height: 52px; background: var(--brand); border-top: 0; }
.result-loading__row--total .skeleton { background-color: var(--brand-line); }
.result-loading__h2 { display: block; font-size: clamp(24px, 2.6vw, 30px); font-weight: 800; letter-spacing: -0.01em; color: var(--ink); }
.result-loading .next-plan { flex-direction: column; align-items: flex-start; }
.result-loading .next-plan .skeleton { background-color: var(--brand-line); width: min(12em, 50%); height: 16px; }
.result-loading .next-plan .skeleton + .skeleton { width: min(26em, 80%); height: 13px; }
@media (max-width: 599px) {
  .result-loading .answer { flex-direction: column; align-items: stretch; }
  .result-loading__start { width: 100%; }
  .result-loading__row { grid-template-columns: 1.6fr repeat(4, 1fr); }
  .result-loading__row--head { font-size: 11px; }
}

/* "This isn't right" under each finding (support audit C10, flag.ts): a quiet link that opens a
   short form. Muted, not the accent: it's a way to tell us something, not a step in the plan. */
.flag { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.flag__open { min-height: 32px; color: var(--muted); font-size: 13px; font-weight: 600; }
.flag__form { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 12px; background: var(--white); border: 1px solid var(--line-strong); }
.flag__reasons { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.flag__title { padding: 0 0 4px; font-size: 15px; font-weight: 800; color: var(--ink); }
.flag__choice {
  display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; box-sizing: border-box;
  border-radius: 10px; border: 1px solid var(--line-strong); font-size: 14px; cursor: pointer;
}
.flag__choice:has(input:checked) { border: 1.5px solid var(--accent); font-weight: 600; }
.flag__choice input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.flag__label { font-size: 14px; font-weight: 700; color: var(--ink); }
.flag__optional { font-weight: 400; color: var(--muted); }
.flag__note { font-family: inherit; font-size: 15px; line-height: 1.45; resize: vertical; }
.flag__hint { font-size: 13px; color: var(--muted); }
.flag__nav { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.flag__nav-group { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.flag__nav .btn { min-height: 44px; font-size: 15px; }
.flag__sent { font-size: 13px; line-height: 1.45; color: var(--body); }
.flag__sent .link-button { min-height: 24px; font-size: 13px; }

/* ---------- try.html: the walkthrough beside Sam's results (28 Nov 2026) ----------
   Offered, not imposed: the interactive example is what a visitor meets first, and the video sits
   behind a disclosure for whoever wants guidance. <details> rather than a modal so closing it puts
   you back exactly where you were, and nothing is remembered anywhere -- try.spec asserts the page
   writes no storage. preload="none" on both videos: nothing downloads until someone presses play,
   and main.js gives a poster only to the one whose data-media matches, so a phone never fetches
   the wide poster. */
.try-walk {
  margin: 0 0 20px; padding: 16px 18px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--soft);
}
.try-walk__title { margin: 0; font-size: 17px; font-weight: 800; color: var(--ink); }
.try-walk__lede { margin: 6px 0 0; font-size: 15px; line-height: 1.55; color: var(--body); }
.try-walk__watch { margin-top: 12px; }
.try-walk__watch summary {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  border: 1px solid var(--input-line); border-radius: 999px; background: var(--white);
  font-size: 14px; font-weight: 700; color: var(--ink); cursor: pointer; list-style: none;
}
.try-walk__watch summary::-webkit-details-marker { display: none; }
.try-walk__watch summary:hover { background: var(--tint); }
.try-walk__watch summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.try-walk__watch summary svg { flex: none; width: 16px; height: 16px; fill: var(--ink); }
.try-walk__len { color: var(--muted); font-weight: 600; white-space: nowrap; }
.try-walk__watch[open] summary { margin-bottom: 12px; }
.try-walk__fig { margin: 0; }
.try-walk__fig video { display: block; width: 100%; height: auto; border-radius: var(--radius-sm); background: var(--brand); }
/* Each cut is its own box so the cover button below can sit exactly over its video. */
.try-walk__cut { position: relative; }
/* The whole cover is one tap target. js/main.js lays this button over the video, because on a phone
   a touch on <video controls> is taken by the native controls and never reaches the video's own
   listener. Transparent, so the poster and the native play button show through it. */
.try-walk__play { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0;
  background: none; cursor: pointer; border-radius: var(--radius-sm); }
.try-walk__play:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.try-walk__wide { aspect-ratio: 16 / 9; }
.try-walk__tall { aspect-ratio: 9 / 16; }
.try-walk__cut--tall { display: none; max-width: 360px; }
@media (max-width: 599px) {
  .try-walk__cut--wide { display: none; }
  .try-walk__cut--tall { display: block; }
}
