/* ---------- Check, step 1: one sheet (11 Nov 2026 design B) ----------
   Reached with a CV uploaded before only by Change on the check: then it's one list, the newest
   first with the bright button, the upload under it. Without one, the upload is the whole step.
   The small print is one line under the sheet. */

.check__step--cv { gap: 20px; }
.cv-sheet { overflow: hidden; border-radius: 24px; background: var(--white); box-shadow: 0 1px 2px rgba(25, 25, 28, 0.04), 0 8px 24px -12px rgba(25, 25, 28, 0.12); }
.cv-sheet__band {
  display: flex; flex-wrap: wrap; align-items: stretch; gap: 20px 28px; padding: 26px clamp(18px, 3vw, 32px) 24px;
  border-bottom: 1px solid var(--line); background: linear-gradient(var(--tint), var(--white));
}
.cv-sheet__words { flex: 1 1 26em; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cv-sheet__words .upload__chosen { margin-top: 10px; }
.cv-sheet__band .eyebrow { color: var(--orange); font-weight: 800; }
.cv-sheet__band h1 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; line-height: 1.08; letter-spacing: -0.03em; }
.cv-sheet__band h1:focus { outline: none; }
.cv-sheet__band .lead { max-width: 38em; font-size: 17px; }
.cv-sheet__body { display: flex; flex-direction: column; gap: 20px; padding: 24px clamp(16px, 3vw, 32px) 30px; }
.cv-sheet__body .upload-account { margin-top: 0; }
/* Which account it goes to matters while choosing; once a file is on its way, the band names it. */
.cv-sheet__body:has(> .cv-pick[hidden]) > .upload-account { display: none; }
.cv-pick { display: flex; flex-direction: column; gap: 16px; }
.cv-pick[hidden] { display: none; }

/* The list, then the upload, one column. */
.cv-choice { display: grid; gap: 20px; }
.cv-choice > * { min-width: 0; }
.cv-list { display: flex; flex-direction: column; gap: 8px; }
.cv-list[hidden] { display: none; }

.cv-latest {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 16px 16px 16px 18px; border-radius: 18px;
  border: 2px solid var(--accent); background: var(--tint);
}
.cv-latest[hidden] { display: none; }
.cv-latest__words { flex: 1 1 14em; min-width: 0; }
.cv-latest__tag { font-weight: 700; color: var(--accent); }
.cv-latest__icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--white); color: var(--accent); }
.cv-latest__icon svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cv-latest__name { font-size: 17px; font-weight: 800; line-height: 1.3; overflow-wrap: anywhere; }
.cv-latest__meta { margin-top: 2px; font-size: 14px; color: var(--body); }
.cv-latest__use { flex: none; }
@media (max-width: 559px) { .cv-latest__use { flex: 1 1 100%; justify-content: center; } }

.cv-upload { display: flex; flex-direction: column; gap: 10px; }
.cv-upload__title { font-size: 17px; font-weight: 800; }
.cv-upload .dropzone { flex: 1; border-radius: 18px; }
.dropzone__title { display: none; }
/* Under the list the upload is the second choice: smaller, its picture smaller. */
.has-latest .cv-upload .dropzone { min-height: 0; padding-block: 20px; }
.has-latest .cv-upload .dropzone__icon { width: 76px; }
.has-latest .cv-upload .dropzone__cta { background: var(--white); border: 1.5px solid var(--brand); }
.has-latest .cv-upload .dropzone:hover .dropzone__cta { background: var(--soft); }

/* The small print, as one line. */
.check-reassure { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; font-size: 14.5px; color: var(--body); }
.check-reassure > span { display: inline-flex; align-items: center; gap: 6px; }
.check-reassure svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 1.6; }
.check-reassure .text-link { font-weight: 700; }

/* ---------- Step 1 while the CV is read, and once it's ready (7 Nov 2026 design A) ----------
   The next step as a dark card in the band, so nobody waits here to move on. The three stages as the
   results page's folder tabs on a tinted panel: done in green, the open one raised with a white sheet
   under it, the rest to come. The sheet says what's happening now and holds the tips. */

.cv-next {
  flex: 1 1 17em; display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: 18px;
  border: 2px solid var(--cta); background: var(--brand); color: var(--white);
}
.cv-next[hidden] { display: none; }
.cv-next__tag { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cta); }
.cv-next__title { font-size: 20px; font-weight: 800; line-height: 1.25; color: var(--white); }
.cv-next__text { margin-bottom: 14px; font-size: 14.5px; line-height: 1.5; color: #d9d4cb; overflow-wrap: anywhere; }
.cv-next .check__next { align-self: stretch; justify-content: center; margin-top: auto; }
.cv-next .check__next:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }

.cv-progress { display: flex; flex-direction: column; padding: clamp(14px, 2.4vw, 22px); border-radius: 20px; background: var(--tint); }
.cv-progress[hidden] { display: none; }
.cv-progress__label { margin-bottom: 12px; font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

.cv-stages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; align-items: end; margin: 0; padding: 0; list-style: none; }
.cv-stages[hidden] { display: none; }
.cv-stage {
  display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; min-height: 76px; margin-bottom: 6px;
  padding: 10px 6px; box-sizing: border-box; text-align: center;
  border: 1.5px solid var(--input-line); border-top-width: 4px; border-radius: 14px; background: rgba(255, 255, 255, 0.55);
}
.cv-stage[data-state="done"] { border-top-color: var(--green-dot); }
.cv-stage.is-open {
  position: relative; z-index: 1; min-height: 86px; margin-bottom: -1.5px;
  background: var(--white); border-bottom-color: var(--white); border-radius: 14px 14px 0 0;
}
.cv-stage[data-state="active"] { border-top-color: var(--accent); }
.cv-stage__icon {
  flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; box-sizing: border-box;
  background: var(--white); color: var(--muted); border: 1.5px dashed var(--brand-muted);
}
.cv-stage__icon > * { grid-area: 1 / 1; }
.cv-stage__icon svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.cv-stage__n { font-size: 14px; font-weight: 800; }
.cv-stage__tick, .cv-stage__spin { display: none; }
.cv-stage[data-state="done"] .cv-stage__icon { background: var(--green-bg); color: var(--green-text); border: 0; }
.cv-stage[data-state="active"] .cv-stage__icon { background: var(--brand); color: var(--cta); border: 0; }
.cv-stage[data-state="done"] .cv-stage__n, .cv-stage[data-state="active"] .cv-stage__n { display: none; }
.cv-stage[data-state="done"] .cv-stage__tick { display: block; }
.cv-stage[data-state="active"] .cv-stage__spin { display: block; animation: check-spin 1s linear infinite; }
.cv-stage__words { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cv-stage__name { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 8px; font-size: 12.5px; font-weight: 800; line-height: 1.3; }
.cv-stage__sub { display: none; font-size: 13px; color: var(--muted); }
/* On a phone the chip is words for a screen reader only; the icon and the colour show it. */
.cv-stage__chip { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (min-width: 720px) {
  .cv-stages { gap: 10px; }
  .cv-stage { flex-direction: row; gap: 12px; min-height: 72px; margin-bottom: 8px; padding: 12px 14px; text-align: left; border-radius: 16px; }
  .cv-stage.is-open { min-height: 88px; border-radius: 16px 16px 0 0; }
  .cv-stage__icon { width: 40px; height: 40px; border-radius: 12px; }
  .cv-stage__icon svg { width: 22px; height: 22px; }
  .cv-stage__name { justify-content: flex-start; font-size: 15px; }
  .cv-stage__sub { display: block; }
  .cv-stage__chip {
    position: static; width: auto; height: 22px; overflow: visible; clip-path: none;
    display: inline-flex; align-items: center; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 800;
    background: var(--line); color: var(--body);
  }
  .cv-stage[data-state="done"] .cv-stage__chip { background: var(--green-bg); color: var(--green-text); }
  .cv-stage[data-state="active"] .cv-stage__chip { background: var(--accent); color: var(--white); }
}

/* The sheet hangs under the open tab: its corner is square where that tab meets it. */
.cv-progress__sheet { display: flex; flex-direction: column; padding: clamp(18px, 3vw, 28px); background: var(--white); border: 1.5px solid var(--input-line); border-radius: 18px; }
.cv-progress[data-at="uploading"] .cv-progress__sheet { border-top-left-radius: 0; }
.cv-progress[data-at="parsing"] .cv-progress__sheet, .cv-progress[data-at="ready"] .cv-progress__sheet { border-top-right-radius: 0; }
.cv-progress__working { display: flex; flex-direction: column; gap: 12px; }
.cv-progress__working[hidden] { display: none; }
.cv-progress__now { font-size: clamp(18px, 2vw, 22px); font-weight: 800; line-height: 1.3; }
.cv-progress__note { font-size: 14px; color: var(--body); }
.cv-progress__bar { position: relative; display: block; height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.cv-progress__bar span { position: absolute; inset: 0 auto 0 0; width: 40%; border-radius: 4px; background: var(--accent); animation: cv-slide 1.6s ease-in-out infinite; }
@keyframes cv-slide { from { transform: translateX(-100%); } to { transform: translateX(250%); } }

/* The tips sit in the sheet, under a rule, not in a box of their own. */
.cv-progress__tips { margin-top: 10px; padding-top: 20px; border-top: 1px solid var(--line); }
.cv-progress__tips .learn { padding: 0; background: none; border-radius: 0; min-height: 0; }

