/* ==========================================================================
   My Quinn — a candidate's own progress page. Same mobile-first shell as
   check-in, with the Quinn character and game elements on top.
   ========================================================================== */

.mq-wrap { max-width: 560px; }

/* Quinn character + speech bubble ---------------------------------------- */
.mq-quinn { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.mq-quinn-mark {
  width: 52px; height: 52px; border-radius: 16px; flex-shrink: 0;
  background: linear-gradient(145deg, #1E4FBF, #2F72E8); display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 24px; font-family: var(--font-head, inherit);
  box-shadow: var(--shadow-sm);
}
.mq-bubble {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 12px 14px; font-size: 14.5px; line-height: 1.5;
}
.mq-bubble.thanks { background: var(--green-bg); border-color: var(--green-line); font-weight: 550; }

/* "New here? Meet Quinn in 90 seconds" — optional, never a prerequisite */
.mq-watch-link {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 18px; padding: 8px 14px;
  border-radius: 999px; border: 1.5px solid var(--border); background: var(--surface-raised);
  color: var(--ink); font-size: 13.5px; font-weight: 650; cursor: pointer;
}

/* The explainer modal — identical to the one on the public homepage
   (public/index.html), reused here rather than redefined differently, so
   the same known-good, already-approved behaviour applies wherever it
   opens from. */
.ex-modal { position: fixed; inset: 0; z-index: 1000; background: rgba(13, 20, 28, .82); display: flex; align-items: center; justify-content: center; padding: 16px; }
.ex-modal-box { position: relative; width: min(92vw, 820px); height: min(90vh, 760px); min-height: 420px; border: 2.5px solid var(--ink); border-radius: 28px; overflow: hidden; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); background: #0F1620; }
.ex-modal-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ex-modal-close { position: absolute; top: -18px; right: -18px; z-index: 1001; width: 40px; height: 40px; border-radius: 50%; background: var(--yellow); border: 2.5px solid var(--ink); color: var(--ink); font-size: 20px; font-weight: 800; cursor: pointer; box-shadow: 3px 3px 0 rgba(0, 0, 0, .35); }

/* Level + points ----------------------------------------------------------*/
.mq-status { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 4px 0 20px; flex-wrap: wrap; }
.mq-level {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px;
  background: var(--yellow-bg); border: 1px solid var(--yellow-line); font-weight: 650; font-size: 13.5px;
}
.mq-points { font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.mq-points b { color: var(--ink); font-size: 16px; }

/* Streak ------------------------------------------------------------------*/
.mq-streak {
  display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 12px 14px; margin-bottom: 14px;
}
.mq-streak-flame { font-size: 22px; line-height: 1; }
.mq-streak-text { font-size: 14px; }
.mq-streak-text b { font-size: 16px; }
.mq-streak-grace { font-size: 12px; color: var(--ink-faint); margin-top: 2px; }

/* Progress summaries: two honest counts, never a bare percentage --------- */
.mq-progress-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px; margin-bottom: 12px; }
.mq-progress-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.mq-progress-label { font-size: 13px; font-weight: 650; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-faint); }
.mq-progress-text { font-size: 14.5px; color: var(--ink); }
.mq-next-step { font-size: 13px; color: var(--ink-soft); margin-top: 8px; }

/* Candidate's own identity strip ------------------------------------------ */
.mq-candidate-id { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.mq-candidate-photo {
  width: 64px; height: 64px; border-radius: 16px; flex-shrink: 0; object-fit: cover;
  border: 1px solid var(--border); background: var(--surface-sunken);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}
.mq-candidate-initial {
  display: grid; place-items: center; background: #1F74B3; color: #fff;
  font-weight: 700; font-size: 24px; font-family: var(--font-head, inherit);
}
.mq-candidate-initial .mq-avatar-fallback-icon { width: 58%; height: 58%; }
.mq-candidate-name { font-size: 15px; font-weight: 650; }

/* Badges --------------------------------------------------------------------*/
.mq-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 18px; }
.mq-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: var(--blue-bg); border: 1px solid var(--blue-line); font-size: 12.5px; font-weight: 600;
}

/* Compliance, calm evidence — no percentage, no bar ------------------------*/
.mq-evidence-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px; margin-bottom: 12px; }
.mq-evidence-label { font-size: 13px; font-weight: 650; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-faint); margin-bottom: 10px; }
.mq-evidence-list { display: grid; gap: 7px; margin-bottom: 4px; }
.mq-evidence-item { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; line-height: 1.4; }
.mq-evidence-item svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 1px; }
.mq-evidence-item.done { color: var(--ink); }
.mq-evidence-item.done svg { color: var(--green); }
.mq-evidence-item.open { color: var(--ink-soft); }
.mq-evidence-item.open svg { color: var(--ink-faint); }
.mq-evidence-calm { font-size: 13px; color: var(--ink-soft); margin-top: 8px; line-height: 1.5; }

/* Availability editor (reuses .ci-days / .ci-choice from checkin.css) ------*/
.mq-section-title { font-size: 15px; font-weight: 650; margin: 22px 0 4px; }
.mq-section-sub { font-size: 13px; color: var(--ink-soft); margin-bottom: 10px; }

/* Simple week-at-a-time availability (2026-10-22 rebuild) — one real week
   of big, plain tap targets, replacing the old normal-week/exceptions
   split entirely. Big text, high contrast, no native selects to decode. */
.mq-simple-week-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.mq-simple-week-arrow {
  font-size: 20px; font-weight: 700; width: 44px; height: 44px; border-radius: 12px;
  border: 1.5px solid var(--border); background: var(--surface-raised); color: var(--ink); cursor: pointer; flex-shrink: 0;
}
.mq-simple-week-arrow:disabled { opacity: .35; cursor: default; }
.mq-simple-week-label { font-size: 14.5px; font-weight: 650; color: var(--ink-soft); text-align: center; }
.mq-simple-week { display: grid; gap: 12px; }
.mq-simple-day { border: 1.5px solid var(--border); border-radius: 14px; padding: 12px; background: var(--surface); }
.mq-simple-day.booked { background: var(--green-bg); border-color: var(--green-line); }
.mq-simple-day-head { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.mq-simple-day-date { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.mq-simple-btn {
  display: block; width: 100%; font: inherit; font-size: 17px; font-weight: 700; text-align: center;
  padding: 16px; border-radius: 12px; border: 2px solid var(--border); background: var(--surface-raised);
  color: var(--ink); cursor: pointer; box-sizing: border-box;
}
.mq-simple-btn:disabled { opacity: .6; cursor: default; }
.mq-simple-btn.is-available { background: var(--green-bg); border-color: var(--green-line); color: #1E7A44; }
.mq-simple-btn.is-unavailable { background: var(--red-bg); border-color: var(--red-line); color: var(--red); }
.mq-simple-btn.is-unset { background: var(--surface); border-style: dashed; color: var(--ink-faint); }
.mq-simple-btn-booked {
  display: block; width: 100%; font-size: 15px; font-weight: 650; text-align: center; padding: 14px;
  color: #1E7A44; box-sizing: border-box;
}
.mq-simple-more {
  display: block; width: 100%; margin-top: 8px; font: inherit; font-size: 13px; font-weight: 650;
  padding: 8px; border: none; background: none; color: var(--blue); cursor: pointer; text-decoration: underline;
}
.mq-simple-options { display: flex; gap: 8px; margin-top: 8px; }
.mq-simple-opt {
  flex: 1; font: inherit; font-size: 14px; font-weight: 650; padding: 12px 8px; border-radius: 10px;
  border: 1.5px solid var(--blue-line); background: var(--blue-bg); color: #1F74B3; cursor: pointer;
}
.mq-simple-opt:disabled { opacity: .6; cursor: default; }
.mq-simple-saved-banner {
  background: var(--green-bg); border: 1.5px solid var(--green-line); border-radius: 12px;
  padding: 10px 14px; margin-bottom: 14px; font-weight: 700; color: #1E7A44; text-align: center;
}
@media (max-width: 420px) {
  .mq-simple-btn { font-size: 15.5px; padding: 14px; }
  .mq-simple-day-head { font-size: 14px; }
  .mq-simple-week-arrow { width: 40px; height: 40px; }
}

/* Quick success feedback (PART 4) ------------------------------------------*/
.mq-save-summary { background: var(--green-bg); border: 1.5px solid var(--green-line); border-radius: 14px; padding: 14px 16px; margin: 4px 0 18px; }
.mq-save-summary-title { font-weight: 700; font-size: 14.5px; color: #1E7A44; }
.mq-save-summary-line { font-size: 13px; color: var(--ink); margin-top: 6px; }

/* Profile photo / Quinn avatar (PARTS 5-9) ---------------------------------*/
.mq-photo-section { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 16px; margin: 4px 0 22px; }
.mq-photo-row { display: flex; align-items: center; gap: 14px; margin-top: 10px; flex-wrap: wrap; }
.mq-photo-current { width: 72px; height: 72px; border-radius: 18px; object-fit: cover; border: 1px solid var(--border); flex-shrink: 0; }
.mq-photo-actions { display: flex; flex-direction: column; gap: 8px; flex: 1 1 200px; min-width: 180px; }
.mq-photo-btn {
  display: flex; align-items: center; gap: 8px; font: inherit; font-size: 13.5px; font-weight: 650;
  padding: 10px 14px; border-radius: 12px; border: 1.5px solid var(--border); background: var(--surface-raised);
  color: var(--ink); cursor: pointer; text-align: left; width: 100%; box-sizing: border-box;
}
.mq-photo-btn.avatar { border-color: var(--blue-line); background: var(--blue-bg); color: #1F74B3; }
.mq-photo-privacy { font-size: 12px; color: var(--ink-soft); margin-top: 12px; line-height: 1.5; }

/* The photo/avatar modal panels — reuse .ex-modal/.ex-modal-box chrome, but
   .ex-modal-box's own fixed height (min(90vh,760px)) was sized for the
   explainer's absolutely-positioned, always-full-height iframe scenes, not
   for this short, normal-flow panel — on desktop that left a large block
   of empty space below the content. Here the box sizes to its content
   instead, capped at the same max so a long panel (the photo-guidance
   list) still scrolls inside rather than overflowing the viewport. */
.mq-modal-box { background: var(--surface); height: auto; max-height: min(90vh, 760px); min-height: 0; }
.mq-modal-panel { padding: 24px 22px; max-height: min(90vh, 760px); overflow-y: auto; box-sizing: border-box; }
.mq-modal-title { font-family: var(--font-head, inherit); font-size: 19px; font-weight: 650; }
.mq-modal-text { font-size: 14px; color: var(--ink-soft); margin-top: 8px; line-height: 1.6; }
.mq-guidance-list { margin: 14px 0; padding-left: 0; list-style: none; display: grid; gap: 7px; }
.mq-guidance-list li { font-size: 13.5px; display: flex; gap: 8px; align-items: flex-start; }
.mq-file-preview { width: 120px; height: 120px; border-radius: 16px; object-fit: cover; margin-top: 12px; border: 1px solid var(--border); display: block; }
.mq-avatar-choice-row { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.mq-avatar-choice-card {
  flex: 1 1 100px; border: 1.5px dashed var(--border); border-radius: 14px; padding: 12px 8px;
  text-align: center; font-size: 12.5px; font-weight: 620; color: var(--ink-soft); background: var(--surface-sunken);
}
.mq-avatar-make-btn { width: 100%; justify-content: center; margin-top: 18px; }

/* "Update your training" — a simple, focused page, not a step ------------ */
.mq-training-row-simple { border: 1.5px solid var(--border); border-radius: 14px; padding: 14px; margin-bottom: 12px; background: var(--surface); }
.mq-training-row-simple .mq-training-name { margin-bottom: 8px; }

/* Update journey: confirm/correct what Quinn already believes ------------- */
.mq-journey { display: flex; flex-direction: column; gap: 14px; margin-bottom: 12px; }
.mq-journey-field[hidden] { display: none; }
.mq-journey-field label { display: block; font-size: 13.5px; font-weight: 650; margin-bottom: 4px; }
.mq-field-hint { font-size: 12px; color: var(--ink-faint); margin-bottom: 6px; }
.mq-journey-source { display: inline-block; font-size: 11.5px; font-weight: 600; margin-bottom: 6px; padding: 2px 8px; border-radius: 999px; }
.mq-journey-source.you { background: var(--green-bg); color: #1E7A44; }
.mq-journey-source.quinn { background: var(--blue-bg); color: #1F74B3; }
.mq-journey-source.suggested { background: var(--yellow-bg); color: #7A5300; }
.mq-journey-source.unknown { background: var(--surface-sunken); color: var(--ink-faint); }

/* Pay check-up ------------------------------------------------------------ */
.mq-pay-result h4 { font-size: 13.5px; margin: 16px 0 6px; }
.mq-pay-table { width: 100%; border-collapse: collapse; margin: 6px 0; font-size: 13.5px; }
.mq-pay-table td { padding: 6px 2px; border-bottom: 1px dashed var(--border); }
.mq-pay-table td:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mq-pay-table .mq-pay-total td { font-weight: 700; border-bottom: 2px solid var(--ink); }
.mq-warn { background: var(--yellow-bg); border-radius: 12px; padding: 12px 14px; margin: 14px 0; font-size: 13px; }

/* Help me with today ------------------------------------------------------ */
.mq-help-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.mq-help-card { background: var(--surface-sunken); border-radius: 12px; padding: 12px 14px; text-align: left; }
.mq-help-title { font-size: 13.5px; font-weight: 650; margin-bottom: 3px; }
.mq-help-body { font-size: 13px; color: var(--ink-soft); line-height: 1.5; }

/* How we reach you (WhatsApp opt-in) -------------------------------------- */
.mq-checkbox-row { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; font-weight: 500; cursor: pointer; }
.mq-checkbox-row input { margin-top: 3px; width: auto; }
.mq-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mq-chip {
  font: inherit; font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 999px;
  border: 1.5px solid var(--border); background: var(--surface); color: var(--ink-soft); cursor: pointer;
}
.mq-chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.mq-role-family-picker { display: flex; flex-wrap: wrap; gap: 6px; }
.mq-family-chip {
  font: inherit; font-size: 12.5px; font-weight: 650; padding: 7px 12px; border-radius: 999px;
  border: 1.5px solid var(--blue); background: var(--blue-bg); color: var(--blue); cursor: pointer;
}
.mq-family-chip.on { background: var(--blue); color: #fff; }
.mq-role-family-group { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--border); }
.mq-role-family-group[hidden] { display: none; }
.mq-input {
  width: 100%; font: inherit; font-size: 14px; padding: 10px 12px; border-radius: 10px;
  border: 1.5px solid var(--border); background: var(--surface); color: var(--ink); box-sizing: border-box;
}

/* Compliance evidence review — historic on file, confirm or flag ---------- */
.mq-compliance { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.mq-compliance-item { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.mq-compliance-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.mq-compliance-label { font-size: 14px; font-weight: 650; }
.mq-compliance-evidence { font-size: 13px; color: var(--ink-soft); margin-top: 4px; }
.mq-compliance-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.mq-compliance-btns .ci-choice { flex: 1 1 auto; }
.mq-compliance-note { margin-top: 10px; }
.mq-compliance-note textarea { resize: vertical; }
.mq-compliance-note-send { margin-top: 6px; }

/* ==========================================================================
   Historic reactivation journey — a short, warm wizard shown instead of the
   ordinary Home view when My Quinn recognises a returning, dormant
   candidate. Screens: welcome -> Passport hero -> confirm/correct ->
   availability -> compliance, calmly -> closing.
   ========================================================================== */
.mq-wizard-dots { display: flex; justify-content: center; gap: 7px; margin-bottom: 18px; position: sticky; top: 10px; z-index: 5; }
.mq-wizard-dots[hidden] { display: none; }
.mq-wizard-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--surface-sunken); border: 1px solid var(--border); transition: background .2s, border-color .2s, transform .2s; }
.mq-wizard-dot.active { background: var(--ink); transform: scale(1.25); }
.mq-wizard-dot.done { background: var(--green); border-color: var(--green-line); }

/* One section shown at a time (my-quinn.js's wireSteps) ------------------- */
.mq-step { animation: mq-step-in .25s var(--ease, ease) both; }
@keyframes mq-step-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.mq-step-title { font-family: var(--font-head, inherit); font-size: 19px; font-weight: 650; letter-spacing: -.2px; margin: 2px 0 14px; }
.mq-step-nav { display: flex; align-items: center; gap: 12px; margin-top: 26px; }
.mq-step-nav .mq-wizard-next { flex: 1 1 auto; margin-top: 0; }
.mq-step-nav .mq-wizard-back { flex: 0 0 auto; width: auto; margin-top: 0; padding: 0 4px; }

.mq-welcome { text-align: center; padding: 10px 4px 4px; }
.mq-welcome-mark {
  width: 68px; height: 68px; border-radius: 20px; margin: 0 auto 18px;
  background: linear-gradient(145deg, #1E4FBF, #2F72E8); display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 30px; font-family: var(--font-head, inherit); box-shadow: var(--shadow-sm);
}
.mq-welcome-title { font-family: var(--font-head, inherit); font-size: 23px; font-weight: 650; letter-spacing: -.4px; }
.mq-welcome-text { font-size: 15px; color: var(--ink-soft); margin-top: 10px; line-height: 1.6; }

/* The Passport hero: a warm, personal reveal — deliberately not a data
   table. Photo (or an intentional Quinn-branded avatar) is the biggest
   thing on the card; achievements read like a story, not a spreadsheet. */
.mq-hero {
  position: relative; overflow: hidden; border-radius: var(--radius-lg, 22px);
  background: linear-gradient(165deg, var(--teal-bg) 0%, var(--surface) 55%);
  border: 1px solid var(--border); box-shadow: var(--shadow-md); padding: 28px 22px 24px;
  text-align: center; margin-bottom: 6px;
}
.mq-hero::before {
  content: ''; position: absolute; inset: -40% -20% auto auto; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, var(--yellow) 0%, transparent 70%); opacity: .35; pointer-events: none;
}
.mq-hero-photo-wrap { position: relative; width: 128px; height: 128px; margin: 0 auto 16px; }
.mq-hero-photo, .mq-hero-avatar {
  width: 128px; height: 128px; border-radius: 50%; object-fit: cover;
  border: 4px solid var(--surface); box-shadow: var(--shadow-sm);
  -webkit-user-select: none; user-select: none; -webkit-user-drag: none; -webkit-touch-callout: none;
}
.mq-hero-avatar {
  display: grid; place-items: center; background: linear-gradient(145deg, #1E4FBF, #2F72E8);
  color: #fff; font-family: var(--font-head, inherit); font-weight: 700; font-size: 42px;
}
.mq-hero-badge {
  position: absolute; bottom: -2px; right: 2px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--yellow); border: 3px solid var(--surface); display: grid; place-items: center; font-size: 16px;
}
.mq-hero-name { font-family: var(--font-head, inherit); font-size: 24px; font-weight: 650; letter-spacing: -.4px; }
.mq-hero-role { font-size: 14.5px; color: var(--ink-soft); font-weight: 600; margin-top: 3px; }
.mq-hero-voice {
  font-size: 14.5px; line-height: 1.6; color: var(--ink); margin: 16px auto 0; max-width: 380px;
  background: var(--surface-raised); border: 1px solid var(--border); border-radius: 14px; padding: 13px 15px;
}
.mq-hero-achievements { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 16px; }
.mq-hero-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px;
  background: var(--surface-raised); border: 1px solid var(--border); font-size: 13px; font-weight: 620;
}
.mq-hero-tags { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; margin-top: 10px; }
.mq-hero-tag {
  display: inline-flex; padding: 5px 11px; border-radius: 999px; background: var(--blue-bg);
  border: 1px solid var(--blue-line); font-size: 12px; font-weight: 600;
}

/* "Is this still you?" confirm/correct fields */
.mq-confirm-list { display: grid; gap: 10px; margin: 18px 0 6px; }
.mq-confirm-field { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; }
.mq-confirm-label { font-size: 11.5px; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint); }
.mq-confirm-value { font-size: 16px; font-weight: 600; margin-top: 4px; }
.mq-confirm-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mq-confirm-edit {
  flex-shrink: 0; font-size: 13px; font-weight: 650; color: var(--blue); padding: 6px 12px;
  border-radius: 999px; border: 1px solid var(--blue-line); background: var(--blue-bg);
}
.mq-confirm-input {
  width: 100%; margin-top: 8px; font-size: 15px; font-family: inherit; padding: 10px 12px;
  border: 1.5px solid var(--border-strong); border-radius: 10px; background: var(--surface-raised);
}
.mq-chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
/* NOTE: this wizard used to redefine .mq-chip/.mq-chip[aria-pressed="true"]
   here with a different visual style (border-strong, no .on class). That
   collided with the real, live .mq-chip defined above for the update
   journey (which uses a .on class, not aria-pressed) — removed rather than
   silently letting whichever rule loads last win. This wizard's own JS/HTML
   was never merged onto this branch, so nothing currently renders
   .mq-chip-row; if the wizard is ever finished for real, give its chips a
   distinct class name instead of reusing .mq-chip. */

/* Closing / celebration screen */
.mq-closing { text-align: center; padding: 8px 4px 4px; }
.mq-closing-mark { font-size: 46px; margin-bottom: 10px; }
.mq-closing-title { font-family: var(--font-head, inherit); font-size: 21px; font-weight: 650; letter-spacing: -.3px; line-height: 1.4; }
.mq-closing-sub { font-size: 14px; color: var(--ink-soft); margin-top: 10px; line-height: 1.6; }

.mq-wizard-next {
  width: 100%; min-height: 58px; border-radius: 15px; margin-top: 20px;
  background: var(--ink); color: #fff; font-size: 16.5px; font-weight: 650;
  display: grid; place-items: center; transition: transform .12s var(--ease), opacity .15s;
}
.mq-wizard-next:active { transform: scale(.99); }
.mq-wizard-next[disabled] { opacity: .45; pointer-events: none; }
.mq-wizard-back { display: block; width: 100%; text-align: center; margin-top: 12px; font-size: 13.5px; color: var(--ink-faint); font-weight: 600; }

/* Training: annual refreshers (KCSIE 2026 first), 2026-10-07 -------------- */
.mq-training-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.mq-training-name { font-weight: 650; font-size: 14px; }
.mq-chip.due { background: #FFF4CC; color: #7A5300; border-color: #EBD48A; }
.mq-chip.done { background: var(--green-bg); color: #1E7A44; border-color: var(--green-line); }
.mq-chip.bad { background: var(--red-bg); color: #8C2620; border-color: var(--red-line); }
#mq-training-section .mq-photo-btn { margin-top: 14px; }

.mq-tf-progress { display: flex; gap: 5px; margin-bottom: 14px; }
.mq-tf-progress i { flex: 1; height: 5px; border-radius: 3px; background: var(--border); font-style: normal; }
.mq-tf-progress i.on { background: var(--ink); }
.mq-tf-card-title { font-size: 20px; font-weight: 700; margin: 2px 0 10px; }
.mq-tf-card-list { margin: 0; padding-left: 18px; display: grid; gap: 7px; font-size: 14px; line-height: 1.5; }
.mq-tf-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; }
.mq-tf-nav .mq-photo-btn { width: auto; flex: 1; justify-content: center; }

.mq-tf-q { margin: 16px 0; }
.mq-tf-q p { margin: 0 0 8px; font-size: 14.5px; }
.mq-tf-opts { display: grid; gap: 7px; }
.mq-opt {
  text-align: left; font: inherit; font-size: 13.5px; padding: 9px 12px; border-radius: 11px;
  border: 1.5px solid var(--border); background: var(--surface); color: var(--ink); cursor: pointer;
}
.mq-opt.right { border-color: var(--green-line); background: var(--green-bg); color: #1E7A44; font-weight: 650; }
.mq-opt.wrong { border-color: #F0C9C5; background: #FBEAE8; color: #C8372D; }
.mq-tf-why { margin-top: 2px 0 0; }

.mq-tf-official {
  display: block; margin-bottom: 8px; padding: 12px 14px; border: 1.5px dashed var(--border);
  border-radius: 14px; text-decoration: none; color: var(--ink); font-size: 13.5px; line-height: 1.5;
}
.mq-tf-check { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0; padding: 12px; border-radius: 12px; background: var(--surface-sunken); font-size: 13px; line-height: 1.5; }
.mq-tf-check input { width: 20px; height: 20px; flex: none; margin-top: 2px; }

.mq-tf-cert { background: var(--surface-raised); border: 2px solid var(--ink); border-radius: 16px; padding: 20px; text-align: center; }
.mq-tf-cert-marks { font-weight: 800; font-size: 13px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; }
.mq-tf-cert h3 { font-size: 22px; font-weight: 700; margin: 10px 0 2px; }
.mq-tf-cert-who { font-size: 24px; font-weight: 700; margin: 10px 0 6px; }
.mq-tf-cert p { font-size: 13px; color: var(--ink-soft); max-width: 42ch; margin: 0 auto; }
.mq-tf-cert-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-top: 16px; text-align: left; font-size: 12.5px; }
.mq-tf-cert-meta div { border-top: 1px solid var(--border); padding-top: 6px; }
.mq-tf-cert-meta span { display: block; color: var(--ink-soft); }
.mq-tf-cert-meta b { font-size: 13.5px; }

/* Opportunity consent teaser (matching -> candidate permission loop) */
.mq-opp-card {
  border: 1.5px solid var(--border); border-radius: 14px; padding: 14px 16px; margin-bottom: 12px;
  background: var(--surface-raised);
}
.mq-quinn-line { display: flex; gap: 8px; align-items: center; font-size: 13.5px; font-weight: 600; margin-bottom: 10px; }
.mq-opp-facts { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.mq-opp-fact {
  font-size: 12.5px; padding: 4px 10px; border-radius: 999px; background: var(--surface-sunken); color: var(--ink-soft);
}
.mq-opp-reasons { margin: 0 0 10px; padding-left: 18px; font-size: 13px; color: var(--ink-soft); }
.mq-opp-reasons li { margin-bottom: 2px; }
.mq-opp-actions { display: grid; gap: 7px; }
.mq-opp-actions .mq-photo-btn { width: 100%; justify-content: center; }
.mq-opp-status { margin-top: 8px; }

/* Training action buttons (2026-10-22 brief, item 2): one big, bright,
   unmissable tap per out-of-date training item — the Quinn dashboard's
   own yellow/amber/blue trio (item 10), not a new palette. */
.mq-training-cta {
  width: 100%; justify-content: center; margin-top: 10px; font-weight: 700;
  background: var(--yellow-bg); border-color: var(--yellow-line); color: #7A5300;
}
.mq-opt.picked { border-color: var(--blue-line); background: var(--blue-bg); color: #1F74B3; font-weight: 650; }

/* Upload status pills — green done, orange needs updating, red missing
   (item 10's exact colour rule, reused here for upload status). */
.mq-upload-pill { margin-top: 8px; padding: 6px 10px; border-radius: 10px; font-weight: 600; }
.mq-upload-uploaded { background: var(--amber-bg); color: #7A3A05; }
.mq-upload-verified { background: var(--green-bg); color: #1E7A44; }
.mq-upload-rejected { background: var(--red-bg); color: #8C2620; }

/* Prevent course 3-step guide (item 14) ----------------------------------- */
.mq-guide-step {
  border: 1.5px solid var(--border); border-radius: 14px; padding: 14px 16px; margin-bottom: 12px;
  background: var(--surface);
}
.mq-guide-step-title { font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.mq-guide-step p { font-size: 13.5px; color: var(--ink-soft); margin: 0 0 8px; line-height: 1.5; }
.mq-guide-step .mq-photo-btn { width: 100%; justify-content: center; margin-top: 4px; }
/* Step 2 — "save your certificate straight away" — a bold orange warning
   box, exactly as asked: GOV.UK deletes the certificate after 30 minutes. */
.mq-guide-step-warning {
  background: var(--amber-bg); border-color: var(--amber); border-width: 2px;
}
.mq-guide-step-warning .mq-guide-step-title { color: #7A3A05; }
.mq-guide-step-warning p { color: #7A3A05; }

/* My Quinn Academy: Classroom Ready course cards (item 10/15b) ----------- */
.mq-academy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-top: 12px; }
.mq-academy-card {
  border: 2px solid var(--ink); border-radius: 16px; padding: 14px; background: var(--surface-raised);
  display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow-sm);
}
.mq-academy-card-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.mq-academy-card-topic { font-size: 11.5px; font-weight: 650; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-faint); }
.mq-academy-card-title { font-family: var(--font-head, inherit); font-size: 16px; font-weight: 650; line-height: 1.3; }
.mq-academy-card-outcome { font-size: 12.5px; color: var(--ink-soft); flex: 1; line-height: 1.4; }
.mq-academy-card-btn {
  width: 100%; justify-content: center; margin-top: 6px; font-weight: 700;
  background: var(--blue-bg); border-color: var(--blue-line); color: #1F74B3;
}

/* My certificates (item 15c) ---------------------------------------------- */
.mq-certificates-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.mq-cert-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border: 1.5px solid var(--border); border-radius: 14px; padding: 12px 14px; background: var(--surface);
}
.mq-cert-title { font-size: 14px; font-weight: 650; }
.mq-cert-download { flex-shrink: 0; width: auto; }

/* No current placement — welcome screen (2026-10-22 brief, job 7) ------- */
.mq-no-placement-card {
  margin-top: 16px; padding: 16px; border-radius: 16px; text-align: left;
  background: var(--yellow-bg); border: 2px solid var(--yellow-line);
}
.mq-no-placement-title { font-family: var(--font-head, inherit); font-size: 16px; font-weight: 650; margin-bottom: 6px; }
.mq-no-placement-text { font-size: 13.5px; color: var(--ink-soft); line-height: 1.5; margin-bottom: 12px; }
.mq-no-placement-card .mq-photo-btn { width: 100%; justify-content: center; }
