/* =============================================================
   GMFJ PWA — Career DNA + journey components
   Stepper, score visualisation, match badge, vacancy card,
   archetype card, coach chat. All brand-token driven.
   ============================================================= */

/* ---------------------------------------------------------------
   Career DNA — stepper / progress
   --------------------------------------------------------------- */
.stepper { display: flex; gap: 0.4rem; margin-bottom: var(--space-5); }
.stepper .step { flex: 1; height: 6px; border-radius: var(--radius-pill); background: var(--soft-blue-200); }
.stepper .step.done { background: var(--brand-gradient); }
.stepper .step.current { background: var(--deep-pink-200); }

.step-count { font-size: var(--fnt-small); font-weight: 700; color: var(--text-muted); margin-bottom: var(--space-2); }

/* multi-select chip grid + single-select cards */
.select-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
.select-card {
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: var(--space-4);
  display: flex; align-items: center; gap: var(--space-3);
  text-align: left; color: var(--text-strong); font-weight: 700;
  transition: border-color 0.12s ease, background 0.12s ease, transform 0.08s ease;
}
.select-card:active { transform: scale(0.98); }
.select-card .material-icons { font-size: 1.5rem; color: var(--indigo-300); }
.select-card.is-selected { border-color: var(--deep-pink-200); background: var(--light-blue-100); box-shadow: var(--shadow-sm); }
.select-card.is-selected .material-icons { color: var(--deep-pink-200); }
.select-list { display: grid; gap: var(--space-3); }
.select-list .select-card { width: 100%; }

/* ---------------------------------------------------------------
   Career DNA — score visualisation
   --------------------------------------------------------------- */

/* Big radial headline (conic-gradient ring) */
.dna-radial {
  --val: 0;
  --ring: var(--deep-pink-200);
  width: 168px; height: 168px;
  border-radius: 50%;
  margin: 0 auto var(--space-4);
  display: grid; place-items: center;
  background:
    radial-gradient(closest-side, var(--surface) 78%, transparent 79% 100%),
    conic-gradient(var(--ring) calc(var(--val) * 1%), var(--soft-blue-200) 0);
}
.dna-radial .val { font-family: var(--font-display); font-weight: var(--font-display-weight); font-size: 2.6rem; line-height: 1; color: var(--text-strong); }
.dna-radial .lbl { font-size: var(--fnt-small); font-weight: 700; color: var(--text-muted); }

/* Dimension bars */
.dim-list { display: grid; gap: var(--space-3); }
.dim {  }
.dim .dim-top { display: flex; justify-content: space-between; font-weight: 700; font-size: var(--fnt-small); margin-bottom: 0.3rem; }
.dim .dim-top .v { color: var(--text-muted); }
.dim .track { height: 10px; background: var(--soft-blue-200); border-radius: var(--radius-pill); overflow: hidden; }
.dim .fill { height: 100%; border-radius: var(--radius-pill); background: var(--brand-gradient); width: 0; transition: width 0.7s cubic-bezier(.2,.8,.2,1); }
/* per-dimension hue accents (non-colour-only: value always shown as text too) */
.dim.interest    .fill { background: linear-gradient(90deg, var(--pink-100), var(--deep-pink-200)); }
.dim.skill       .fill { background: linear-gradient(90deg, var(--coral-100), var(--red-200)); }
.dim.personality .fill { background: linear-gradient(90deg, var(--purple-300), var(--dark-purple-400)); }
.dim.ambition    .fill { background: linear-gradient(90deg, var(--amber-300), var(--tangerine-400)); }
.dim.opportunity .fill { background: linear-gradient(90deg, var(--aqua-300), var(--indigo-300)); }
.dim.progression .fill { background: linear-gradient(90deg, var(--mint-100), var(--teal-200)); }

/* Sector affinity list */
.sector { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-2); }
.sector .name { width: 38%; font-weight: 700; font-size: var(--fnt-small); }
.sector .track { flex: 1; height: 8px; background: var(--soft-blue-200); border-radius: var(--radius-pill); overflow: hidden; }
.sector .fill { display: block; width: 0; height: 100%; background: var(--brand-gradient); border-radius: var(--radius-pill); transition: width 0.7s cubic-bezier(.2,.8,.2,1); }
.sector .v { width: 3rem; text-align: right; font-weight: 700; font-size: var(--fnt-small); color: var(--text-muted); }

/* ---------------------------------------------------------------
   Archetype card
   --------------------------------------------------------------- */
.archetype {
  background: var(--brand-gradient);
  color: #fff; border-radius: var(--radius-xl);
  padding: var(--space-5); text-align: center;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-md);
}
.archetype::after { content: ""; position: absolute; width: 200px; height: 200px; left: -50px; bottom: -80px; background: radial-gradient(circle, rgba(255,255,255,0.18), transparent 70%); }
.archetype .glyph { font-size: 3rem; }
/* Persona icon rendered as an image (SVG/PNG URL) rather than an emoji. */
.glyph-img { width: 64px; height: 64px; object-fit: contain; display: inline-block; }
.archetype .glyph-img { width: 88px; height: 88px; }
.coach-dna-glyph .glyph-img { width: 100%; height: 100%; }
.avatar .glyph-img { width: 78%; height: 78%; }
.archetype h2 { color: #fff; margin: var(--space-2) 0 0.25rem; font-size: 1.9rem; }
.archetype .tag { color: rgba(255,255,255,0.92); font-weight: 700; font-size: var(--fnt-small); }
.archetype p { color: rgba(255,255,255,0.92); margin: var(--space-3) 0 0; }

/* ---------------------------------------------------------------
   Match badge + reasons (the Career DNA "spine")
   --------------------------------------------------------------- */
.match-badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  font-weight: 700; font-size: 0.78rem;
  background: var(--soft-blue-200); color: var(--indigo-300);
}
.match-badge .material-icons { font-size: 0.95rem; }
.match-badge.high  { background: #d7f0e2; color: #1f7a4d; }
.match-badge.mid   { background: #fdeccb; color: #9a6a12; }
.match-badge.low   { background: var(--surface-alt); color: var(--text-muted); }

.match-ring {
  --val: 0; --ring: var(--teal-200);
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center; flex: none;
  background:
    radial-gradient(closest-side, var(--surface) 74%, transparent 75% 100%),
    conic-gradient(var(--ring) calc(var(--val) * 1%), var(--soft-blue-200) 0);
}
.match-ring .v { font-family: var(--font-display); font-weight: var(--font-display-weight); font-size: 1.05rem; color: var(--text-strong); }

.reasons { display: grid; gap: var(--space-2); }
.reasons li { display: flex; gap: var(--space-2); align-items: flex-start; font-size: var(--fnt-small); }
.reasons .material-icons { font-size: 1.05rem; color: var(--teal-200); flex: none; }

/* ---------------------------------------------------------------
   Vacancy card
   --------------------------------------------------------------- */
.vac-card { display: grid; gap: var(--space-3); }
.vac-card .vac-head { display: flex; gap: var(--space-3); align-items: flex-start; }
.vac-logo { width: 44px; height: 44px; border-radius: var(--radius); background: var(--surface-alt); display: grid; place-items: center; font-family: var(--font-display); font-weight: var(--font-display-weight); font-size: 1.1rem; color: var(--indigo-300); flex: none; overflow: hidden; position: relative; }
/* Real branding logo overlaid on the initials avatar (employer/provider). object-fit:contain on a
   white ground keeps logos undistorted; border-radius:inherit clips to the avatar's rounded corners. */
.vac-logo, .partner-logo, .partner-hero-logo { position: relative; }
.logo-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; border-radius: inherit; }
.vac-card .vac-title { font-family: var(--font-display); font-weight: var(--font-display-weight); font-size: 1.05rem; color: var(--text-strong); margin: 0; }
.vac-card .vac-emp { color: var(--text-muted); font-size: var(--fnt-small); font-weight: 700; }
.vac-card .save { margin-left: auto; }
.vac-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }

/* ---------------------------------------------------------------
   Opportunity detail hero
   --------------------------------------------------------------- */
.opp-hero { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/9; background: var(--primary-100); display: grid; place-items: center; }
.opp-hero img { width: 100%; height: 100%; object-fit: cover; }
.opp-hero .play { position: absolute; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: rgba(255,255,255,0.92); display: grid; place-items: center; box-shadow: var(--shadow-md); }
.opp-hero .play .material-icons { font-size: 2rem; color: var(--deep-pink-200); }

.kv { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
.kv .item { background: var(--surface-alt); border-radius: var(--radius); padding: var(--space-3); }
.kv .item .k { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); font-weight: 700; }
.kv .item .v { font-weight: 700; color: var(--text-strong); }

/* sticky apply bar inside opportunity — opaque band so the description text scrolling
   underneath never bleeds through behind the Apply button. */
.apply-bar { position: sticky; bottom: 0; z-index: 20; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -8px 20px -6px rgba(0,0,0,0.35); backdrop-filter: blur(6px); padding: var(--space-3) var(--space-4); display: flex; gap: var(--space-3); align-items: center; margin: var(--space-5) calc(-1 * var(--space-4)) calc(-1 * var(--space-5)); }

/* ---------------------------------------------------------------
   Timeline (application tracker)
   --------------------------------------------------------------- */
.timeline { position: relative; padding-left: 1.6rem; }
.timeline::before { content: ""; position: absolute; left: 0.45rem; top: 0.3rem; bottom: 0.3rem; width: 2px; background: var(--soft-blue-200); }
.timeline li { position: relative; padding-bottom: var(--space-4); }
.timeline li::before { content: ""; position: absolute; left: -1.6rem; top: 0.15rem; width: 0.9rem; height: 0.9rem; border-radius: 50%; background: var(--surface); border: 2px solid var(--soft-blue-200); }
.timeline li.done::before { background: var(--teal-200); border-color: var(--teal-200); }
.timeline li.current::before { background: var(--deep-pink-200); border-color: var(--deep-pink-200); box-shadow: 0 0 0 4px rgba(198,11,136,0.18); }
.timeline .t-title { font-weight: 700; color: var(--text-strong); }
.timeline .t-time { font-size: var(--fnt-small); color: var(--text-muted); }

/* ---------------------------------------------------------------
   AI Career Coach chat
   --------------------------------------------------------------- */
.coach { display: flex; flex-direction: column; min-height: 100%; }
.chat-stream { display: flex; flex-direction: column; gap: var(--space-3); flex: 1; padding-bottom: var(--space-4); }
.bubble { max-width: 80%; padding: 0.7rem 0.95rem; border-radius: var(--radius-lg); font-size: 0.92rem; line-height: 1.4; }
.bubble.bot { align-self: flex-start; background: var(--surface-alt); color: var(--text-strong); border-bottom-left-radius: 0.25rem; }
.bubble.me { align-self: flex-end; background: var(--brand-gradient); color: #fff; border-bottom-right-radius: 0.25rem; }
.chat-suggest { display: flex; gap: var(--space-2); overflow-x: auto; padding: var(--space-2) 0; scrollbar-width: none; }
.chat-suggest::-webkit-scrollbar { display: none; }

/* Opportunity hero: location map background + provider/employer roundels */
.opp-hero-bg { position: absolute; inset: 0; background: linear-gradient(135deg, #232a44, #12151f); }
.opp-map { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; }
/* 1px larger than the 256px grid so adjacent tiles overlap slightly — kills hairline seams at any DPR. */
.osm-tile { position: absolute; width: 257px; height: 257px; max-width: none; }
.osm-pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%); z-index: 1; color: #e5484d; }
.osm-pin .material-icons { font-size: 2.1rem; filter: drop-shadow(0 1px 2px rgba(0,0,0,.45)); }
.osm-attr { position: absolute; right: 4px; bottom: 3px; z-index: 1; font-size: .62rem; color: rgba(255,255,255,.85); background: rgba(0,0,0,.35); padding: 1px 5px; border-radius: 4px; }
/* Dark-blue wash over the map (vertical — no diagonal seam), darker at the bottom for the caption. */
.opp-hero-tint { position: absolute; inset: 0; background: linear-gradient(to top, rgba(18,21,31,.92) 0%, rgba(26,36,66,.55) 60%, rgba(26,36,66,.4) 100%); }
.opp-hero-logos { position: absolute; top: .75rem; left: .75rem; display: flex; gap: .5rem; z-index: 1; }
.opp-roundel { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.28); flex: none; display: grid; place-items: center; }
/* Bookmark roundel, right side, same diameter as the logos. */
.opp-hero-save { position: absolute; top: .75rem; right: .75rem; z-index: 1; border: 0; cursor: pointer; padding: 0; }
.opp-hero-save .material-icons { color: var(--indigo-300); font-size: 1.5rem; }
.opp-roundel img { width: 100%; height: 100%; object-fit: contain; padding: 6px; display: block; }
/* Hero caption: the role title + location, over the map. */
.opp-hero-caption { position: absolute; left: 1rem; right: 1rem; bottom: .85rem; z-index: 1; }
.opp-hero-title { margin: 0 0 .2rem; color: #fff; font-family: var(--font-display); font-weight: var(--font-display-weight); font-size: 1.25rem; line-height: 1.2; text-shadow: 0 1px 5px rgba(0,0,0,.65); }
.opp-hero-loc { color: rgba(255,255,255,.92); font-size: .9rem; text-shadow: 0 1px 4px rgba(0,0,0,.65); }

/* Career DNA quiz */
.quiz-progress { flex: 1; height: 6px; border-radius: 999px; background: var(--surface-alt); overflow: hidden; }
.quiz-progress-fill { height: 100%; background: var(--brand-gradient); transition: width .3s ease; }
/* The question body is admin-authored HTML (built for a dark theme with white text) — force readable
   colours in the PWA and give its cards/utility classes sane fallbacks. */
.dna-q-body { margin-bottom: var(--space-4); }
.dna-q-body, .dna-q-body * { color: var(--text-strong) !important; }
.dna-q-body h1, .dna-q-body h2, .dna-q-body h3, .dna-q-body h4 { font-family: var(--font-display); font-weight: var(--font-display-weight); margin: 0 0 .5rem; }
.dna-q-body h2 { font-size: 1.4rem; }
.dna-q-body h4 { font-size: 1.1rem; }
.dna-q-body p { margin: 0 0 .5rem; }
.dna-q-body .text-center { text-align: center; }
/* Quiz question as a chat-style speech bubble: an avatar "asking" the statement, then a short instruction. */
.quiz-bubble-wrap { display: flex; align-items: flex-start; gap: .7rem; margin: 0 0 var(--space-3); }
.quiz-avatar { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; background: var(--brand-gradient); display: grid; place-items: center; box-shadow: 0 4px 12px rgba(0,0,0,.18); margin-top: 2px; }
.quiz-avatar .material-icons { color: #fff !important; font-size: 22px; }
.quiz-bubble { position: relative; background: var(--surface-alt); color: var(--text-strong) !important; border-radius: 6px 18px 18px 18px; padding: .9rem 1.05rem; font-family: var(--font-display); font-weight: var(--font-display-weight); font-size: 1.2rem; line-height: 1.4; max-width: 30ch; }
.quiz-bubble::before { content: ""; position: absolute; top: 15px; left: -7px; width: 0; height: 0; border: 7px solid transparent; border-right-color: var(--surface-alt); border-left: 0; }
.quiz-instruction { text-align: center; color: var(--text-muted) !important; font-size: .95rem; margin: 0 0 var(--space-3); }
/* Legacy: the old centred quote (kept so any cached view still renders sanely). */
.quiz-quote { text-align: center; font-family: var(--font-display); font-weight: var(--font-display-weight); font-size: 1.35rem; line-height: 1.4; color: var(--text-strong) !important; margin: 0 auto var(--space-2); max-width: 32ch; }
.dna-q-body .white-box { background: var(--surface-alt); border-radius: var(--radius); padding: var(--space-3); margin-top: var(--space-2); }

/* Collapsible "more about your persona" panel. */
.persona-detail > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); cursor: pointer; font-family: var(--font-display); font-weight: var(--font-display-weight); color: var(--text-strong); font-size: 1.05rem; }
.persona-detail > summary::-webkit-details-marker { display: none; }
.persona-detail > summary .chev { color: var(--text-muted); transition: transform .2s ease; }
.persona-detail[open] > summary .chev { transform: rotate(180deg); }

/* Persona strengths/growth blocks on the DNA results page (admin HTML with Tailwind-ish classes). */
.persona-html, .persona-html * { color: var(--text-strong) !important; }
.persona-html h4 { font-family: var(--font-display); font-weight: var(--font-display-weight); margin: var(--space-2) 0 .15rem; font-size: 1rem; }
.persona-html p { margin: 0 0 var(--space-2); color: var(--text) !important; padding-left: 0 !important; }
.persona-html .text-left { text-align: left !important; }
/* Embedded illustrations in the persona HTML come through full-size — keep them small + centred. */
.persona-html img { display: block; max-width: 56px; max-height: 56px; width: auto; height: auto; margin: var(--space-2) auto; }

/* 1–10 rating slider (the backend scores "rate" answers on a 1–10 scale). */
.rate-slider { display: flex; flex-direction: column; gap: var(--space-2); padding: 0 2px; }
.rate-value { text-align: center; font-family: var(--font-display); font-weight: var(--font-display-weight); font-size: 2.6rem; line-height: 1; color: var(--brand-accent); }
.rate-value .rate-max { font-size: 1rem; color: var(--text-muted); margin-left: 3px; }
.rate-range { -webkit-appearance: none; appearance: none; width: 100%; height: 10px; border-radius: 999px; outline: none; cursor: pointer; background: linear-gradient(to right, var(--brand-accent) var(--fill, 50%), var(--surface-alt) var(--fill, 50%)); }
.rate-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 3px solid var(--brand-accent); box-shadow: 0 3px 10px rgba(0,0,0,.28); cursor: grab; transition: transform .05s ease; }
.rate-range::-webkit-slider-thumb:active { transform: scale(1.1); cursor: grabbing; }
.rate-range::-moz-range-thumb { width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 3px solid var(--brand-accent); box-shadow: 0 3px 10px rgba(0,0,0,.28); cursor: grab; }
.rate-range:focus-visible { box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-accent) 35%, transparent); }
.rate-hint { text-align: center; color: var(--text-muted); font-size: .85rem; margin: 2px 0 0; }
.rate-ends { display: flex; justify-content: space-between; margin-top: 0; font-size: .8rem; color: var(--text-muted); }

.rank-list { display: flex; flex-direction: column; gap: var(--space-2); }
.rank-card { display: flex; align-items: center; gap: var(--space-3); text-align: left; padding: var(--space-3); border-radius: var(--radius); border: 1.5px solid var(--border, rgba(127,127,127,.25)); background: var(--surface); cursor: pointer; }
.rank-card.is-selected { border-color: var(--indigo-300); background: var(--surface-alt); }
.rank-badge { width: 28px; height: 28px; border-radius: 50%; flex: none; display: grid; place-items: center; font-family: var(--font-display); font-weight: var(--font-display-weight); background: var(--surface-alt); color: var(--text-muted); }
.rank-card.is-selected .rank-badge { background: var(--brand-gradient); color: #fff; }
.rank-label { flex: 1; }
.rank-label * { margin: 0 !important; color: var(--text-strong) !important; font-size: 1rem !important; text-align: left !important; }

/* Profile field extras */
.field-hint { margin: .3rem 0 0; font-size: .8rem; color: var(--text-muted); }
.input[readonly] { background: var(--surface-alt); color: var(--text-muted); cursor: not-allowed; }

/* Radio-cards (e.g. "what are you doing now?") */
.radio-cards { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.radio-cards .radio-card { position: relative; display: inline-flex; align-items: center; padding: .55rem .95rem; border-radius: var(--radius-pill); border: 1.5px solid var(--border, rgba(127,127,127,.28)); background: var(--surface); cursor: pointer; font-size: .92rem; color: var(--text-strong); }
.radio-cards .radio-card input { position: absolute; opacity: 0; pointer-events: none; }
.radio-cards .radio-card:has(input:checked) { background: var(--brand-gradient); color: #fff; border-color: transparent; }

/* School / college / university type-ahead */
.school-picker { position: relative; }
.school-selected { display: flex; align-items: center; gap: var(--space-2); padding: .7rem .9rem; border-radius: var(--radius); border: 1.5px solid var(--indigo-300); background: var(--surface-alt); }
.school-selected .material-icons { color: var(--indigo-300); }
.school-selected .school-name { font-weight: 700; color: var(--text-strong); flex: 1; }
.school-results { margin-top: var(--space-2); border: 1px solid var(--border, rgba(127,127,127,.22)); border-radius: var(--radius); overflow: hidden; max-height: 280px; overflow-y: auto; background: var(--surface); }
.school-result { display: flex; flex-direction: column; gap: 1px; text-align: left; width: 100%; padding: .6rem .8rem; background: none; border: 0; border-bottom: 1px solid var(--border, rgba(127,127,127,.14)); cursor: pointer; }
.school-result:last-child { border-bottom: 0; }
.school-result:hover { background: var(--surface-alt); }
.school-result.is-note { cursor: default; }
.school-result-name { font-weight: 600; color: var(--text-strong); }
.link { background: none; border: 0; padding: 0; color: var(--indigo-300); cursor: pointer; font-size: .85rem; text-decoration: underline; }

/* Dataset-backed suggest picker (industry single / skills multi) */
.suggest { position: relative; }
.suggest-tags { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-2); }
.suggest-tags:empty { display: none; }
.suggest-chip { display: inline-flex; align-items: center; gap: .3rem; padding: .35rem .3rem .35rem .75rem; border-radius: var(--radius-pill); background: var(--brand-gradient); color: #fff; font-size: .88rem; }
.suggest-chip .chip-x { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 0; background: rgba(255,255,255,.25); color: #fff; cursor: pointer; font-size: 1rem; line-height: 1; }
.suggest-single { margin-bottom: 0; }

/* Registration form */
.check-row { display: flex; align-items: flex-start; gap: var(--space-3); font-size: 0.92rem; color: var(--text-strong); cursor: pointer; line-height: 1.4; }
.check-row input[type="checkbox"] { width: 20px; height: 20px; margin-top: 1px; flex: none; accent-color: var(--indigo-300); }
.req { color: #e5484d; }

/* Coach hub blocks */
.coach-dna { display: flex; align-items: center; gap: var(--space-3); }
.coach-dna-glyph { font-size: 1.9rem; width: 52px; height: 52px; border-radius: var(--radius); background: var(--surface-alt); display: grid; place-items: center; flex: none; }
.coach-nudge { display: flex; align-items: center; gap: var(--space-3); }
/* Inside a hub card the chat stream is bounded + scrolls (it's no longer the full-height flex child). */
.coach-chat { gap: var(--space-3); }
.coach-chat .chat-stream { flex: initial; max-height: 320px; overflow-y: auto; }
.chat-input { display: flex; gap: var(--space-2); align-items: center; position: sticky; bottom: 0; background: var(--surface); padding-top: var(--space-3); }
.typing { display: inline-flex; gap: 3px; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--text-muted); animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%,80%,100% { opacity: 0.3; } 40% { opacity: 1; } }

/* ---------------------------------------------------------------
   Profile
   --------------------------------------------------------------- */
.avatar { width: 72px; height: 72px; border-radius: 50%; background: var(--brand-gradient); display: grid; place-items: center; color: #fff; font-family: var(--font-display); font-weight: var(--font-display-weight); font-size: 1.8rem; }
.profile-head { display: flex; align-items: center; gap: var(--space-4); }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); text-align: center; }
.stat-row .stat { background: var(--surface-alt); border-radius: var(--radius); padding: var(--space-3); }
.stat-row .stat .n { font-family: var(--font-display); font-weight: var(--font-display-weight); font-size: 1.4rem; color: var(--text-strong); }
.stat-row .stat .l { font-size: 0.7rem; color: var(--text-muted); font-weight: 700; text-transform: uppercase; }

/* ---------------------------------------------------------------
   Profile sections (mirrors TH.Data.UserProfile)
   --------------------------------------------------------------- */
/* sticky section nav under the header */
.section-nav { position: sticky; top: 0; z-index: 10; background: var(--surface); padding: var(--space-2) 0; margin: 0 calc(-1 * var(--space-4)); padding-left: var(--space-4); padding-right: var(--space-4); }

.section-card { scroll-margin-top: var(--space-3); }
.section-subhead { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); margin: var(--space-3) 0 var(--space-2); }
.divider { height: 1px; background: var(--line); margin: var(--space-3) 0; }
.edit-link { font-size: var(--fnt-small); font-weight: 700; }

/* definition list (label / value rows) */
.dl { margin: 0; display: grid; gap: var(--space-2); }
.dl-row { display: grid; grid-template-columns: 42% 1fr; gap: var(--space-3); align-items: baseline; }
.dl-row dt { color: var(--text-muted); font-size: var(--fnt-small); font-weight: 700; }
.dl-row dd { margin: 0; color: var(--text-strong); font-weight: 500; word-break: break-word; }

/* repeated list items (qualifications, experience, references) */
.list-item { padding: var(--space-3) 0; border-bottom: 1px solid var(--line); }
.list-item:last-child { border-bottom: none; padding-bottom: 0; }
.list-item:first-of-type { padding-top: 0; }
.addr-block { padding: var(--space-2) 0; }

/* sensitive-data treatment */
.sensitive-ic { font-size: 1rem; color: var(--amber-300); vertical-align: -2px; }
.sensitive-note { color: var(--text-muted); background: var(--surface-alt); border-radius: var(--radius); padding: var(--space-2) var(--space-3); margin: 0 0 var(--space-4); display: flex; gap: .4rem; align-items: flex-start; }

/* ---- Profile hub: completeness + section rows ---- */
.completeness .track { height: 10px; background: var(--soft-blue-200); border-radius: var(--radius-pill); overflow: hidden; }
.completeness .fill { height: 100%; width: 0; border-radius: var(--radius-pill); background: var(--brand-gradient); transition: width 0.7s cubic-bezier(.2,.8,.2,1); }

.sec-list { display: grid; gap: var(--space-2); }
.sec-row {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  text-decoration: none; color: var(--text-strong);
  transition: box-shadow 0.15s ease, transform 0.08s ease;
}
.sec-row:active { transform: scale(0.995); }
.sec-row:hover { box-shadow: var(--shadow-md); }
.sec-ic { width: 2.4rem; height: 2.4rem; border-radius: var(--radius-pill); display: grid; place-items: center; flex: none; background: var(--surface-alt); color: var(--indigo-300); }
.sec-ic .material-icons { font-size: 1.25rem; }
.sec-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sec-title { font-weight: 700; }
.sec-sub { font-size: var(--fnt-small); color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sec-status .material-icons { font-size: 1.5rem; }
.sec-status.complete { color: var(--teal-200); }
.sec-status.todo { color: var(--line); }
:root[data-theme="dark"] .sec-status.todo { color: #3a4159; }

/* ---- Section detail (edit form) ---- */
.detail-head { display: flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-3); }
.detail-head h1 { margin: 0; font-size: 1.4rem; }
.list-edit { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-3); margin-bottom: var(--space-3); background: var(--surface-alt); }
.list-edit-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-2); }
/* direct-child only: must not uppercase the delete icon's <span class="material-icons"> (breaks the ligature) */
.list-edit-head > span { font-weight: 700; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); }
/* belt-and-braces: never let inherited text-transform break icon ligatures */
.material-icons { text-transform: none; }
.list-edit-head .icon-btn { width: 2rem; height: 2rem; background: transparent; color: var(--red-200); }
.list-edit .field:last-child { margin-bottom: 0; }
.form-actions { display: flex; gap: var(--space-3); margin-top: var(--space-5); position: sticky; bottom: 0; background: var(--surface); padding: var(--space-3) 0; }

/* notification item */
.note { display: flex; gap: var(--space-3); padding: var(--space-3) 0; border-bottom: 1px solid var(--line); }
.note .ic { width: 2.4rem; height: 2.4rem; border-radius: var(--radius-pill); display: grid; place-items: center; flex: none; }
.note.match .ic { background: #d7f0e2; color: #1f7a4d; }
.note.status .ic { background: var(--soft-blue-200); color: var(--indigo-300); }
.note.dna .ic { background: #e6d6f3; color: var(--dark-purple-400); }
.note.unread { background: var(--light-blue-100); margin: 0 calc(-1 * var(--space-4)); padding-left: var(--space-4); padding-right: var(--space-4); }
.note .t { font-weight: 700; color: var(--text-strong); }
.note .time { font-size: 0.72rem; color: var(--text-muted); }

/* ---------------------------------------------------------------
   Opportunity search: toolbar, active filters, filter sheet
   --------------------------------------------------------------- */
.toolbar { display: flex; align-items: center; gap: var(--space-2); }
.filter-btn { padding: 0.6rem 1rem; position: relative; }
.filter-count { background: var(--deep-pink-200); color: #fff; font-size: 0.7rem; font-weight: 700; min-width: 1.2rem; height: 1.2rem; border-radius: var(--radius-pill); display: inline-grid; place-items: center; padding: 0 0.3rem; }
.sort-select { margin-left: auto; display: inline-flex; align-items: center; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-pill); box-shadow: var(--shadow-sm); padding: 0 0.4rem 0 0.2rem; }
.sort-select select { appearance: none; -webkit-appearance: none; border: none; background: transparent; font: inherit; font-weight: 700; color: var(--text-strong); padding: 0.55rem 1.4rem 0.55rem 0.7rem; cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236b6e7c' stroke-width='2'><polyline points='6 9 12 15 18 9'/></svg>"); background-repeat: no-repeat; background-position: right 0.2rem center; }
.sort-select select:focus { outline: none; }
:root[data-theme="dark"] .sort-select select { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%238b91a7' stroke-width='2'><polyline points='6 9 12 15 18 9'/></svg>"); }

.active-head { display: flex; align-items: center; justify-content: space-between; font-size: var(--fnt-small); color: var(--text-muted); margin-bottom: var(--space-2); letter-spacing: 0.03em; }
.chip.is-active { background: var(--soft-blue-200); border-color: var(--indigo-300); color: var(--indigo-300); }
.chip.is-active .x { font-size: 0.95rem; opacity: 0.7; }
.link-btn { background: none; border: none; color: var(--indigo-300); font: inherit; font-weight: 700; font-size: var(--fnt-small); display: inline-flex; align-items: center; gap: 0.3rem; padding: var(--space-2) 0; cursor: pointer; }
.link-btn .material-icons { font-size: 1.05rem; }

.empty-card { text-align: center; padding: var(--space-6) var(--space-4); }

/* ---- bottom-sheet ---- */
.sheet-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.45); z-index: 60; display: flex; align-items: flex-end; }
.sheet { background: var(--surface); width: 100%; max-height: 92%; border-radius: var(--radius-xl) var(--radius-xl) 0 0; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); animation: sheetUp 0.25s cubic-bezier(.2,.8,.2,1) both; }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .sheet { animation: none; } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: var(--space-4); border-bottom: 1px solid var(--line); }
.sheet-body { padding: var(--space-4); overflow-y: auto; }

/* Confirmation dialog (App.confirm) — centred card */
.confirm-overlay { align-items: center; justify-content: center; padding: var(--space-5); }
.confirm-card { background: var(--surface); width: 100%; max-width: 21rem; border-radius: var(--radius-xl); padding: var(--space-5) var(--space-4) var(--space-4); text-align: center; box-shadow: var(--shadow-lg); animation: sheetUp 0.2s cubic-bezier(.2,.8,.2,1) both; }
.confirm-icon { width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; margin: 0 auto var(--space-3); background: var(--soft-blue-200); }
.confirm-icon .material-icons { font-size: 1.6rem; color: var(--indigo-300); }
.confirm-icon.danger { background: rgba(220,60,60,0.14); }
.confirm-icon.danger .material-icons { color: var(--red-200); }
.confirm-title { margin: 0 0 var(--space-2); font-size: 1.15rem; }
.confirm-msg { margin: 0; color: var(--text-muted); font-size: 0.9rem; line-height: 1.4; }
.confirm-actions { display: flex; gap: var(--space-3); margin-top: var(--space-4); }
.confirm-actions .btn { flex: 1; }
.confirm-presets { justify-content: center; margin-top: var(--space-3); }
.confirm-input { margin-top: var(--space-3); text-align: left; min-height: 4.5rem; }
.btn-danger { background: var(--red-200); color: #fff; }

/* "Show more" sentinel for the lazy-loaded opportunity list */
.load-more { display: flex; align-items: center; justify-content: center; gap: 0.4rem; width: 100%; padding: var(--space-3); margin-top: var(--space-1); background: var(--surface-alt); border: 1px dashed var(--line); border-radius: var(--radius-lg); color: var(--text-muted); font-weight: 700; font-size: 0.85rem; cursor: pointer; }
.load-more:hover { color: var(--text-strong); border-color: var(--indigo-300); }
.load-more .material-icons { font-size: 1.1rem; }

/* "+N more locations" chip on partner profiles */
.chip-more { background: var(--soft-blue-200); color: var(--indigo-300); font-weight: 700; border: none; cursor: pointer; }
.chip-more:hover { background: var(--indigo-300); color: #fff; }
.sheet-foot { display: flex; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-top: 1px solid var(--line); background: var(--surface); }

.facet-group { display: block; }
.facet-head { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: var(--space-3); display: flex; align-items: center; gap: 0.4rem; }
.facet-badge { background: var(--deep-pink-200); color: #fff; min-width: 1.1rem; height: 1.1rem; border-radius: var(--radius-pill); font-size: 0.65rem; display: inline-grid; place-items: center; padding: 0 0.3rem; }
.facet-sub { font-size: var(--fnt-small); font-weight: 700; color: var(--text-muted); margin: var(--space-3) 0 var(--space-2); }

/* segmented toggle (Postcode / By county) */
.seg { display: flex; background: var(--surface-alt); border-radius: var(--radius-pill); padding: 3px; margin-bottom: var(--space-3); }
.seg button { flex: 1; border: none; background: transparent; padding: 0.5rem; border-radius: var(--radius-pill); font: inherit; font-weight: 700; color: var(--text-muted); cursor: pointer; }
.seg button.active { background: var(--surface); color: var(--text-strong); box-shadow: var(--shadow-sm); }

.small-bar { padding: 0.1rem 0.3rem 0.1rem 0.85rem; margin-bottom: var(--space-2); }
.small-bar input { padding: 0.55rem 0; }
.small-bar .btn { padding: 0.5rem 0.9rem; }

/* level facet chips with count */
.facet { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.4rem 0.8rem; border-radius: var(--radius-pill); background: var(--surface); border: 1.5px solid var(--line); color: var(--text-strong); font-size: var(--fnt-small); font-weight: 700; cursor: pointer; }
.facet .count { color: var(--text-muted); font-weight: 700; font-size: 0.7rem; }
.facet.is-selected { background: var(--soft-blue-200); border-color: var(--indigo-300); color: var(--indigo-300); }
.facet.is-selected .count { color: var(--indigo-300); }
.facet.is-disabled { opacity: 0.4; cursor: default; }
.facet-list { max-height: 16rem; overflow-y: auto; }

/* ---------------------------------------------------------------
   CV Glow-Up ✨ (AI CV import)
   --------------------------------------------------------------- */
/* hub entry card */
.cv-glowup {
  display: flex; align-items: center; gap: var(--space-3);
  background: var(--brand-gradient); color: #fff;
  border-radius: var(--radius-lg); padding: var(--space-4);
  box-shadow: var(--shadow-md); text-decoration: none;
  position: relative; overflow: hidden;
}
.cv-glowup::after { content: ""; position: absolute; width: 160px; height: 160px; right: -40px; top: -60px; background: radial-gradient(circle, rgba(255,255,255,0.22), transparent 70%); }
.cv-glowup .glow-ic { font-size: 1.6rem; }
.cv-glowup-body { display: flex; flex-direction: column; flex: 1; }
.cv-glowup-body .small { color: rgba(255,255,255,0.9); }
.cv-glowup .material-icons:last-child { color: rgba(255,255,255,0.9); }

/* hero on the import screen */
.glowup-hero { text-align: center; padding: var(--space-5) var(--space-3) var(--space-4); }
.glowup-hero h1 { margin: var(--space-2) 0 .25rem; }
.glowup-hero p { color: var(--text-muted); margin: 0 auto; max-width: 30ch; }
.glow-sparkle { font-size: 3rem; line-height: 1; display: inline-block; }
.glow-sparkle.spin { animation: glowspin 1.4s ease-in-out infinite; }
@keyframes glowspin { 0%,100% { transform: rotate(-8deg) scale(1); } 50% { transform: rotate(8deg) scale(1.12); } }

/* dropzone */
.dropzone {
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  border: 2px dashed var(--indigo-300); border-radius: var(--radius-lg);
  background: var(--surface-alt); padding: var(--space-6) var(--space-4);
  text-align: center; cursor: pointer; transition: background 0.15s ease, border-color 0.15s ease;
}
.dropzone:hover { background: var(--soft-blue-200); }
.dropzone .material-icons { font-size: 2.4rem; color: var(--indigo-300); }
.dropzone strong { color: var(--text-strong); }

.glow-steps-card { display: grid; gap: var(--space-3); margin-top: var(--space-4); }
.glow-how { display: flex; gap: var(--space-3); align-items: flex-start; }
.glow-how .material-icons { color: var(--deep-pink-200); }

/* parsing steps */
.parse-steps { display: grid; gap: var(--space-3); margin-top: var(--space-4); }
.parse-steps li { display: flex; align-items: center; gap: var(--space-3); color: var(--text-muted); font-weight: 700; opacity: 0.5; transition: opacity 0.3s ease; }
.parse-steps li.active { opacity: 1; color: var(--text-strong); }
.parse-steps li.done { opacity: 1; color: var(--text); }
.parse-steps li.done .material-icons { color: var(--teal-200); }
.spinner { animation: spin 0.9s linear infinite; color: var(--indigo-300); }
@keyframes spin { to { transform: rotate(360deg); } }

/* review */
.confidence-pill { display: inline-flex; align-items: center; gap: 0.4rem; background: var(--soft-blue-200); color: var(--indigo-300); font-weight: 700; font-size: var(--fnt-small); padding: 0.4rem 0.8rem; border-radius: var(--radius-pill); }
.confidence-pill .material-icons { font-size: 1rem; }
.review-group .rg-head { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-2); }
.review-group .rg-title { font-weight: 700; flex: 1; }
.review-group .rg-body .t-title { font-weight: 700; color: var(--text-strong); }

/* toggle switch */
.switch { position: relative; width: 44px; height: 26px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider { position: absolute; inset: 0; background: var(--line); border-radius: var(--radius-pill); transition: background 0.2s ease; }
.switch .slider::before { content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform 0.2s ease; box-shadow: var(--shadow-sm); }
.switch input:checked + .slider { background: var(--deep-pink-200); }
.switch input:checked + .slider::before { transform: translateX(18px); }

/* ---------------------------------------------------------------
   Application questions (apply flow)
   --------------------------------------------------------------- */
.q-card { display: block; }
.q-card.has-error { border-color: var(--red-200); box-shadow: 0 0 0 3px rgba(235,74,38,0.12); }
.q-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-2); }
.q-type-badge { font-size: 0.62rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--indigo-300); background: var(--soft-blue-200); padding: 0.2rem 0.5rem; border-radius: var(--radius-pill); }
.q-num { font-size: 0.7rem; font-weight: 700; color: var(--text-muted); }
.q-text { font-weight: 700; color: var(--text-strong); margin: 0 0 var(--space-3); }
.req-star { color: var(--red-200); margin-left: 2px; }
.q-error { color: var(--red-200); font-size: var(--fnt-small); font-weight: 700; margin-top: var(--space-2); }
.q-error:empty { display: none; }
.file-name { margin-top: var(--space-2); }

/* Apply wizard — one question at a time (Career-DNA-quiz style stepper) */
.apply-wizard { min-height: calc(100dvh - var(--header-h)); display: flex; flex-direction: column; padding-bottom: var(--space-3); }
.apply-q { margin: var(--space-2) 0 var(--space-4); }
.apply-q .q-type-badge { display: inline-block; margin-bottom: var(--space-3); }
.apply-q .q-text-lg { font-family: var(--font-display); font-weight: var(--font-display-weight); font-size: 1.3rem; line-height: 1.3; color: var(--text-strong); margin: 0 0 var(--space-4); }
.apply-opts { display: flex; flex-direction: column; gap: var(--space-2); }
.apply-opt { display: flex; align-items: center; gap: var(--space-3); width: 100%; text-align: left; padding: var(--space-3) var(--space-4); border-radius: var(--radius); border: 1.5px solid var(--border, rgba(127,127,127,.25)); background: var(--surface); color: var(--text-strong); font-size: 1rem; cursor: pointer; }
.apply-opt > span:first-child { flex: 1; }
.apply-opt.is-selected { border-color: transparent; background: var(--brand-gradient); color: #fff; }
.apply-opt .material-icons { opacity: 0; font-size: 1.2rem; }
.apply-opt.is-selected .material-icons { opacity: 1; }
.apply-foot { position: sticky; bottom: 0; background: var(--surface); padding-top: var(--space-3); }
/* Ready-reckoner: a slim "what am I applying for" strip on every wizard step. */
.apply-rr { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-2) var(--space-3); margin-bottom: var(--space-3); border-radius: var(--radius); border: 1px solid var(--border, rgba(127,127,127,.2)); background: var(--surface-alt); }
.apply-rr .vac-logo { flex: none; }
.apply-rr-txt { min-width: 0; }
.apply-rr-title { font-family: var(--font-display); font-weight: var(--font-display-weight); font-size: .98rem; color: var(--text-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.apply-rr-sub { font-size: .8rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------------------------------------------------------------
   Partners directory (employers & training providers)
   --------------------------------------------------------------- */
.partner-card { display: flex; align-items: center; gap: var(--space-3); text-decoration: none; color: var(--text-strong); }
.partner-logo { width: 48px; height: 48px; border-radius: var(--radius); background: var(--surface-alt); display: grid; place-items: center; font-family: var(--font-display); font-weight: var(--font-display-weight); font-size: 1.15rem; color: var(--indigo-300); flex: none; }
.partner-body { flex: 1; min-width: 0; }
.partner-name { font-family: var(--font-display); font-weight: var(--font-display-weight); color: var(--text-strong); display: flex; align-items: center; gap: 0.3rem; }
.partner-name .feat { font-size: 1rem; color: var(--amber-300); }
.partner-meta { margin-top: var(--space-2); }

.partner-hero { text-align: center; padding: var(--space-5) var(--space-4) var(--space-5); background: var(--brand-gradient); color: #fff; border-radius: 0 0 var(--radius-xl) var(--radius-xl); position: relative; overflow: hidden; }
.partner-hero::after { content: ""; position: absolute; width: 200px; height: 200px; right: -50px; top: -70px; background: radial-gradient(circle, rgba(255,255,255,0.18), transparent 70%); }
.partner-hero h1 { color: #fff; margin: var(--space-3) 0 0.25rem; }
.partner-hero-logo { width: 72px; height: 72px; border-radius: var(--radius-lg); background: rgba(255,255,255,0.16); display: grid; place-items: center; font-family: var(--font-display); font-weight: var(--font-display-weight); font-size: 1.8rem; color: #fff; margin: 0 auto; backdrop-filter: blur(4px); }
.partner-hero-tag { color: rgba(255,255,255,0.92); font-weight: 700; font-size: var(--fnt-small); }

/* ---------------------------------------------------------------
   Header menu sheet
   --------------------------------------------------------------- */
.menu-overlay { align-items: stretch; justify-content: flex-end; }
.menu-sheet { width: 86%; max-width: 340px; max-height: 100%; height: 100%; border-radius: var(--radius-xl) 0 0 var(--radius-xl); animation: menuIn 0.22s ease both; }
@keyframes menuIn { from { transform: translateX(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .menu-sheet { animation: none; } }
.menu-group { margin-bottom: var(--space-5); }
.menu-h { font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: var(--space-2); }
.menu-item { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-2); border-radius: var(--radius); color: var(--text-strong); text-decoration: none; font-weight: 700; }
.menu-item:hover { background: var(--surface-alt); }
.menu-item .material-icons { color: var(--indigo-300); }
.menu-item.signout { color: var(--red-200); margin-top: var(--space-3); border-top: 1px solid var(--line); padding-top: var(--space-4); }
.menu-item.signout .material-icons { color: var(--red-200); }

/* ---------------------------------------------------------------
   Legal / info pages
   --------------------------------------------------------------- */
.legal-copy h3 { margin: var(--space-5) 0 var(--space-2); }
.legal-copy p { color: var(--text); }
.legal-copy .reasons { margin: var(--space-2) 0; }
.legal-table-stack { display: grid; gap: var(--space-3); margin: var(--space-2) 0 var(--space-3); }
.legal-table-row { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-3) var(--space-4); background: var(--surface-alt); }
.legal-table-title { font-weight: 700; color: var(--text-strong); }
.legal-table-field { font-size: var(--fnt-small); color: var(--text); margin-top: var(--space-2); }
.legal-table-label { display: block; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); margin-bottom: 0.15rem; }
.legal-footer a { font-weight: 700; }

/* TODO ribbon to mark stubbed/deferred areas in the prototype */
.todo-flag { display: inline-flex; gap: 0.3rem; align-items: center; font-size: 0.7rem; font-weight: 700; color: var(--tangerine-400); background: #fff4e0; border: 1px dashed var(--amber-300); border-radius: var(--radius); padding: 0.2rem 0.5rem; }
.todo-flag .material-icons { font-size: 0.9rem; }

/* =============================================================
   Dark-mode component adjustments
   The brand hues stay, but a few "soft pastel" backgrounds and
   low-contrast selected states are re-tinted for dark surfaces.
   ============================================================= */
:root[data-theme="dark"] .chip.is-selected {
  background: rgba(239, 85, 139, 0.18);
  border-color: var(--pink-100);
  color: var(--pink-100);
}
:root[data-theme="dark"] .select-card.is-selected {
  background: rgba(198, 11, 136, 0.16);
  border-color: var(--deep-pink-200);
}
:root[data-theme="dark"] .select-card.is-selected .material-icons { color: var(--pink-100); }

/* Skeletons: sit slightly above the card surface */
:root[data-theme="dark"] .skeleton { background: #2b3146; }
:root[data-theme="dark"] .skeleton::after {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
}

/* Status pills / match badges: tinted translucent fills instead of bright pastels */
:root[data-theme="dark"] .pill-applied   { background: rgba(60, 95, 156, 0.28);  color: #aebfe6; }
:root[data-theme="dark"] .pill-reviewing { background: rgba(238, 171, 68, 0.22);  color: #f2c878; }
:root[data-theme="dark"] .pill-interview { background: rgba(164, 72, 159, 0.28);  color: #d8a6e0; }
:root[data-theme="dark"] .pill-offer     { background: rgba(103, 192, 150, 0.24); color: #8fe0b6; }
:root[data-theme="dark"] .pill-rejected  { background: rgba(235, 74, 38, 0.22);   color: #f29b86; }

:root[data-theme="dark"] .match-badge        { background: var(--surface-alt); color: var(--text); }
:root[data-theme="dark"] .match-badge.high   { background: rgba(103, 192, 150, 0.22); color: #8fe0b6; }
:root[data-theme="dark"] .match-badge.mid    { background: rgba(238, 171, 68, 0.20);  color: #f2c878; }

:root[data-theme="dark"] .note.match .ic  { background: rgba(103, 192, 150, 0.22); color: #8fe0b6; }
:root[data-theme="dark"] .note.status .ic { background: rgba(60, 95, 156, 0.30);  color: #aebfe6; }
:root[data-theme="dark"] .note.dna .ic    { background: rgba(164, 72, 159, 0.28);  color: #d8a6e0; }

:root[data-theme="dark"] .todo-flag { background: rgba(238, 150, 68, 0.14); }
