/* ============================================================
   REFINED STAFF — Private staff platform
   Design tokens + base styles
   ============================================================ */

:root {
  /* Warm paper neutrals */
  --bg:        oklch(0.984 0.005 85);
  --surface:   #ffffff;
  --surface-2: oklch(0.972 0.006 85);
  --surface-3: oklch(0.958 0.007 84);

  --ink:       oklch(0.22 0.012 60);
  --ink-soft:  oklch(0.44 0.012 62);
  --muted:     oklch(0.49 0.012 70);
  --faint:     oklch(0.49 0.010 75);

  --line:      oklch(0.905 0.006 82);
  --line-2:    oklch(0.86 0.007 82);

  /* Accent — tweakable. Electric indigo by default. */
  --accent:        oklch(0.50 0.185 270);
  --accent-press:  oklch(0.44 0.185 270);
  --accent-soft:   color-mix(in oklch, var(--accent) 12%, var(--surface));
  --accent-line:   color-mix(in oklch, var(--accent) 28%, var(--line));
  --on-accent:     #ffffff;

  /* Trust / status */
  --ok:        oklch(0.58 0.125 158);
  --ok-soft:   color-mix(in oklch, var(--ok) 14%, var(--surface));
  --warn:      oklch(0.74 0.135 72);
  --warn-soft: color-mix(in oklch, var(--warn) 18%, var(--surface));
  --pend:      oklch(0.66 0.02 80);

  /* Type — warm editorial (matches site). "Tech" (Geist) available via tweak. */
  --display: "Bricolage Grotesque", "Hanken Grotesk", system-ui, sans-serif;
  --body:    "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --mono:    "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --radius:   14px;
  --radius-sm: 9px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px oklch(0.3 0.02 70 / 0.05), 0 1px 1px oklch(0.3 0.02 70 / 0.04);
  --shadow:    0 2px 4px oklch(0.3 0.02 70 / 0.05), 0 8px 24px oklch(0.3 0.02 70 / 0.07);
  --shadow-lg: 0 4px 8px oklch(0.3 0.02 70 / 0.06), 0 24px 60px oklch(0.3 0.02 70 / 0.12);

  --maxw: 1140px;
}

/* Dark mode — default. Cool near-black + electric indigo (matches site). */
[data-mode="dark"] {
  --bg:        oklch(0.165 0.013 265);
  --surface:   oklch(0.205 0.015 265);
  --surface-2: oklch(0.235 0.016 265);
  --surface-3: oklch(0.275 0.017 265);

  --ink:       oklch(0.97 0.004 265);
  --ink-soft:  oklch(0.80 0.010 265);
  --muted:     oklch(0.63 0.012 265);
  --faint:     oklch(0.50 0.012 265);

  --line:      oklch(0.30 0.016 265);
  --line-2:    oklch(0.40 0.020 265);

  --accent:        oklch(0.68 0.170 277);
  --accent-press:  oklch(0.74 0.160 277);
  --accent-soft:   color-mix(in oklch, var(--accent) 18%, var(--surface));
  --accent-line:   color-mix(in oklch, var(--accent) 38%, var(--line));
  --on-accent:     oklch(0.16 0.02 277);

  --ok:        oklch(0.82 0.150 145);
  --ok-soft:   color-mix(in oklch, var(--ok) 18%, var(--surface));
  --warn:      oklch(0.80 0.130 75);
  --warn-soft: color-mix(in oklch, var(--warn) 22%, var(--surface));

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
  --shadow:    0 2px 4px oklch(0 0 0 / 0.3), 0 10px 30px oklch(0 0 0 / 0.4);
  --shadow-lg: 0 6px 12px oklch(0 0 0 / 0.35), 0 30px 70px oklch(0 0 0 / 0.5);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv01";
  overflow-x: hidden;
}
[data-mode="dark"] body {
  background-image: radial-gradient(circle at 1px 1px, oklch(0.30 0.02 265) 1px, transparent 0);
  background-size: 26px 26px;
  background-attachment: fixed;
}

#root { min-height: 100%; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.02; letter-spacing: -0.02em; }

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; color: inherit; }
a { color: inherit; }

::selection { background: var(--accent); color: var(--on-accent); }

/* Scrollbar */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 8px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* ---------- App shell ---------- */
.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 22px;
  padding: 0 28px; height: 64px;
  background: color-mix(in oklch, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar .spacer { flex: 1; }

.stepper { display: flex; align-items: center; gap: 5px; }
.stepper .seg {
  height: 4px; width: 30px; border-radius: 99px; background: var(--line-2);
  transition: background .35s ease, width .35s ease;
}
.stepper .seg.done { background: var(--accent); }
.stepper .seg.active { background: var(--accent); width: 46px; }
.stepper .stepmark { display: grid; gap: 4px; justify-items: center; font-size: 10.5px; font-weight: 700; color: var(--muted); line-height: 1; }
.stepper .stepmark.active { color: var(--accent); }
.stepmark-label { white-space: nowrap; }
@media (max-width: 720px) { .stepmark-label { display: none; } }

.page {
  flex: 1;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 46px 28px 96px;
}
.page.wide { max-width: 1240px; }

/* ---------- Wordmark ---------- */
.wordmark { display: flex; align-items: center; gap: 10px; user-select: none; }
.wordmark .mark {
  width: 32px; height: 32px; position: relative; flex: none;
}
.wordmark .mark svg, .wordmark .mark img { display: block; width: 100%; height: 100%; }
.wordmark .name {
  font-family: var(--display); font-weight: 700; font-size: 21px;
  letter-spacing: -0.03em; color: var(--ink); white-space: nowrap;
}
.wordmark .name b { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 46px; padding: 0 22px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 15px; letter-spacing: -0.01em;
  transition: transform .12s ease, background .18s ease, box-shadow .18s ease, border-color .18s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-press); box-shadow: var(--shadow); }
.btn-primary:disabled { background: var(--line-2); color: var(--faint); cursor: not-allowed; box-shadow: none; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-2); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--muted); }
.btn-quiet { background: transparent; color: var(--ink-soft); padding: 0 12px; }
.btn-quiet:hover { color: var(--ink); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 54px; padding: 0 28px; font-size: 16px; }

/* ---------- Chips / badges ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  min-height: 34px; padding: 0 13px; border-radius: 99px;
  font-size: 13px; font-weight: 600; letter-spacing: -0.01em;
  background: var(--surface-2); color: var(--ink-soft);
  border: 1px solid var(--line);
}
.chip.accent { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-line); }
.chip.warn { background: var(--warn-soft); color: color-mix(in oklch, var(--warn) 80%, black); border-color: color-mix(in oklch, var(--warn) 36%, var(--line)); }
[data-mode="dark"] .chip.warn { color: var(--warn); }

.badge {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  height: 26px; padding: 0 9px 0 8px; border-radius: 7px;
  font-size: 12.5px; font-weight: 650; letter-spacing: -0.005em;
  background: var(--ok-soft); color: var(--ok);
}
.badge.pend { background: var(--surface-3); color: var(--muted); }
.badge.warn { background: var(--warn-soft); color: color-mix(in oklch, var(--warn) 80%, black); }
.badge svg { width: 13px; height: 13px; }
[data-mode="dark"] .badge.warn { color: var(--warn); }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}

/* ---------- Utility ---------- */
.eyebrow {
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
}
.muted { color: var(--muted); }
.ink-soft { color: var(--ink-soft); }
.mono { font-family: var(--mono); }

/* Base state is fully visible; we animate transform only, never opacity, so
   content can never be stuck invisible if the animation timeline is frozen. */
.fade-up { animation: fadeUp .55s cubic-bezier(.2,.7,.3,1) both; }
@keyframes fadeUp { from { transform: translateY(14px); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .fade-up { animation: none; } }

.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }


/* ============================================================
   REFINED STAFF — screen styles
   ============================================================ */

/* ---------- ENTRY / HERO ---------- */
.hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; min-height: calc(100vh - 200px); }
.hero h1 { font-size: clamp(40px, 5.4vw, 68px); line-height: 0.98; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede { font-size: 19px; color: var(--ink-soft); max-width: 30em; margin-top: 22px; line-height: 1.5; }
.hero-cta { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 30px; margin-top: 44px; flex-wrap: wrap; }
.hero-trust .t { }
.hero-trust .t .n { font-family: var(--display); font-weight: 700; font-size: 27px; letter-spacing: -0.03em; white-space: nowrap; }
.hero-trust .t .l { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.press { display: flex; align-items: center; gap: 24px; margin-top: 52px; opacity: .72; flex-wrap: wrap; }
.press .lbl { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.press .name { font-family: var(--display); font-weight: 600; font-size: 16px; color: var(--ink-soft); letter-spacing: -0.01em; }

/* hero visual */
.hero-vis { position: relative; }
.preview-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 22px; }
.pv-head { display: flex; align-items: center; gap: 13px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.pv-head .nm { font-family: var(--display); font-weight: 700; font-size: 17px; }
.pv-head .ro { font-size: 13px; color: var(--muted); }
.pv-match { margin-left: auto; text-align: right; }
.pv-match b { font-family: var(--display); font-size: 22px; color: var(--accent); }
.pv-match span { display: block; font-size: 11px; color: var(--muted); letter-spacing: .02em; }
.pv-checks { margin-top: 16px; display: flex; flex-direction: column; gap: 9px; }
.pv-check { display: flex; align-items: center; gap: 11px; font-size: 14px; font-weight: 550; white-space: nowrap; }
.pv-check .ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-soft); flex: none; }
.pv-check .tk { margin-left: auto; width: 22px; height: 22px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; }
.pv-check.in { animation: fadeUp .5s both; }
.pv-fee { margin-top: 18px; display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: var(--radius-sm); }
.pv-fee .big { font-family: var(--display); font-weight: 700; font-size: 21px; color: var(--accent); }
.pv-fee .old { text-decoration: line-through; color: var(--muted); font-size: 14px; }
.pv-fee .lbl { font-size: 12.5px; color: var(--ink-soft); white-space: nowrap; }
.pv-float { position: absolute; right: 22px; top: -16px; z-index: 3; white-space: nowrap; background: var(--ink); color: var(--bg); border-radius: 99px; padding: 8px 15px; font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 7px; box-shadow: var(--shadow); }
[data-mode="dark"] .pv-float { background: var(--accent); color: var(--on-accent); }

/* ---------- SECTION HEADER ---------- */
.shead { margin-bottom: 30px; }
.shead h2 { font-size: clamp(28px, 3.4vw, 40px); }
.shead p { color: var(--ink-soft); font-size: 17px; margin-top: 10px; max-width: 44em; }
.back-link { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 14px; font-weight: 600; color: var(--ink-soft); margin-bottom: 18px; }
.back-link:hover { color: var(--accent); }

/* ---------- ROLE GRID ---------- */
.role-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.role-card { text-align: left; padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm); transition: transform .15s, border-color .15s, box-shadow .15s; position: relative; }
.role-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.role-card.sel { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow); }
.role-card .ic { width: 42px; height: 42px; border-radius: 11px; background: var(--surface-2); color: var(--accent); display: grid; place-items: center; margin-bottom: 16px; }
.role-card.sel .ic { background: var(--accent); color: var(--on-accent); }
.role-card .rt { font-family: var(--display); font-weight: 700; font-size: 16.5px; letter-spacing: -0.02em; }
.role-card .rb { font-size: 13px; color: var(--muted); margin-top: 5px; line-height: 1.4; min-height: 2.5em; }
.role-card .role-status { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 4px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 11.5px; font-weight: 750; }
.role-card .role-status.qualified { background: var(--warn-soft); color: color-mix(in oklch, var(--warn) 76%, var(--ink)); border: 1px solid color-mix(in oklch, var(--warn) 34%, var(--line)); }
.role-card .role-status.consultant { background: var(--surface-2); color: var(--ink-soft); border: 1px solid var(--line); }
.role-card .rm { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--line); font-size: 12.5px; }
.role-card .rm .band { font-weight: 650; color: var(--ink-soft); }
.role-card .rm .pool { color: var(--muted); font-family: var(--mono); font-size: 11.5px; }
.role-card .pick { position: absolute; top: 16px; right: 16px; width: 22px; height: 22px; border-radius: 50%; border: 1.6px solid var(--line-2); display: grid; place-items: center; color: transparent; }
.role-card.sel .pick { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.role-grid-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: -8px 0 14px; }
.role-grid-title { color: var(--ink-soft); font-size: 13.5px; font-weight: 700; }
.role-more {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  height: 36px; padding: 0 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-2); background: var(--surface-2);
  color: var(--ink-soft); font-size: 13px; font-weight: 700;
  transition: color .14s, background .14s, border-color .14s, transform .12s;
}
.role-more:hover { color: var(--ink); border-color: var(--muted); background: var(--surface); }
.role-more:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.role-more svg { transition: transform .16s ease; }
.role-more.open svg { transform: rotate(180deg); }

/* ---------- BRIEF ---------- */
.brief-grid { display: grid; grid-template-columns: minmax(0, 1.38fr) minmax(300px, .82fr); gap: 28px; align-items: start; }
.brief-grid > *, .brief-contact > *, .brief-extra-grid > *, .field { min-width: 0; }
.field { margin-bottom: 22px; }
.field > label { display: block; font-size: 13.5px; font-weight: 650; margin-bottom: 9px; letter-spacing: -0.01em; }
.field .hint { color: var(--muted); font-weight: 450; }
.brief-subhead { margin: 2px 0 16px; padding: 15px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); color: var(--ink-soft); font-size: 14px; line-height: 1.45; }
.brief-subhead b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 3px; }
.brief-route { display: flex; gap: 10px; align-items: flex-start; margin: -8px 0 20px; padding: 12px 14px; border: 1px solid var(--accent-line); border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--ink-soft); font-size: 13px; line-height: 1.45; }
.brief-route.qualified { background: var(--warn-soft); border-color: color-mix(in oklch, var(--warn) 34%, var(--line)); }
.brief-route.consultant { background: var(--surface-2); border-color: var(--line); }
.brief-route svg { flex: none; color: var(--accent); margin-top: 2px; }
.brief-route strong { display: block; color: var(--ink); font-size: 13.5px; margin-bottom: 1px; }
.ai-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 8px; }
.ai-box textarea { width: 100%; border: none; outline: none; resize: vertical; background: transparent; font-size: 15.5px; line-height: 1.5; padding: 13px 14px 8px; min-height: 116px; }
.ai-box textarea::placeholder { color: var(--faint); }
.ai-bar { display: flex; align-items: center; gap: 8px; padding: 8px; border-top: 1px solid var(--line); }
.ai-bar .tag { font-family: var(--mono); font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.auto-fill-note { display: inline-flex; align-items: center; gap: 5px; min-height: 28px; padding: 0 9px; border-radius: 99px; background: var(--ok-soft); color: var(--ok); font-size: 12px; font-weight: 700; white-space: nowrap; }
.auto-fill-note svg { flex: none; }
.brief-intel { margin: -4px 0 24px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: color-mix(in oklch, var(--accent) 5%, var(--surface)); }
.brief-intel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.brief-intel-title { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.brief-strength { min-width: 126px; }
.brief-strength-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); }
.brief-strength-top b { font-family: var(--display); font-size: 18px; color: var(--accent); }
.brief-strength-bar { height: 6px; margin-top: 6px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.brief-strength-bar span { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.brief-intel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.brief-signal { display: flex; gap: 8px; align-items: flex-start; padding: 10px 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font-size: 13px; line-height: 1.35; }
.brief-signal svg { color: var(--accent); flex: none; margin-top: 1px; }
.brief-signal b { display: block; font-size: 11px; font-family: var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.brief-warning { display: flex; gap: 9px; align-items: flex-start; margin-top: 10px; padding: 11px 12px; border-radius: 8px; border: 1px solid color-mix(in oklch, var(--warn) 34%, var(--line)); background: var(--warn-soft); color: color-mix(in oklch, var(--warn) 76%, var(--ink)); font-size: 13px; font-weight: 600; line-height: 1.4; }
.brief-warning svg { flex: none; margin-top: 1px; }
.txt-input { width: 100%; height: 48px; padding: 0 15px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--surface); font-size: 15px; outline: none; transition: border-color .15s, box-shadow .15s; }
.txt-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.textarea-field { min-height: 92px; height: auto; padding-top: 12px; line-height: 1.45; resize: vertical; }
.brief-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 18px; margin-bottom: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.brief-contact .field:nth-child(3), .brief-contact .photo-field { grid-column: 1 / -1; }
.brief-contact .field { margin-bottom: 0; }
.brief-extra-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 4px; }
.brief-extra-grid .brief-wide { grid-column: 1 / -1; }
.sms-opt { display: flex; align-items: flex-start; gap: 10px; margin-top: 10px; padding: 11px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); cursor: pointer; }
.sms-opt input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.sms-opt span { display: grid; gap: 2px; font-size: 13px; line-height: 1.35; color: var(--ink-soft); }
.sms-opt strong { color: var(--ink); font-size: 13.5px; }
.sms-opt em { font-style: normal; color: var(--muted); }
.sms-opt.is-disabled { opacity: .64; cursor: not-allowed; }
.sms-opt.is-disabled input { cursor: not-allowed; }
.api-error { display: flex; align-items: flex-start; gap: 8px; color: color-mix(in oklch, var(--warn) 75%, var(--ink)); background: var(--warn-soft); border: 1px solid color-mix(in oklch, var(--warn) 35%, var(--line)); border-radius: var(--radius-sm); padding: 11px 12px; font-size: 13px; font-weight: 600; margin-top: 14px; }
.api-error svg { flex: none; margin-top: 1px; }
.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 3px; gap: 2px; }
.seg button { padding: 8px 15px; border-radius: 6px; font-size: 14px; font-weight: 600; color: var(--ink-soft); transition: all .14s; }
.seg button:hover { color: var(--ink); background: color-mix(in oklch, var(--surface) 70%, var(--accent-soft)); }
.seg button:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.seg button.on { background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-sm); }
[data-mode="dark"] .seg button.on { background: var(--accent); color: var(--on-accent); }
.availability-seg { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; width: 100%; max-width: 100%; padding: 0; border: 0; background: transparent; }
.availability-seg button { min-height: 38px; padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-soft); line-height: 1.15; white-space: nowrap; box-shadow: none; }
.availability-seg button:hover { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent); }
.availability-seg button.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); box-shadow: none; }
.chips-wrap { display: flex; flex-wrap: wrap; gap: 9px 8px; }
.chip-toggle { cursor: pointer; user-select: none; appearance: none; font: inherit; }
.chip-toggle.on { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-line); }
.chips-note { margin-top: 9px; font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.chip-soft { background: var(--surface-2); color: var(--ink-soft); border-color: var(--line); }
.salary-row { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.salary-row .v { font-family: var(--display); font-weight: 700; font-size: 30px; letter-spacing: -0.03em; }
.salary-row .band { font-size: 13px; color: var(--muted); }
input[type=range].rng { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 99px; background: var(--line-2); outline: none; }
input[type=range].rng::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); border: 3px solid var(--surface); box-shadow: var(--shadow-sm); cursor: pointer; }
input[type=range].rng::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); border: 3px solid var(--surface); cursor: pointer; }

.brief-summary { position: sticky; top: 86px; padding: 22px; }
.brief-summary h4 { font-size: 12px; font-family: var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.sum-role { display: flex; align-items: center; gap: 12px; margin: 16px 0; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.sum-role .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.sum-list { display: flex; flex-direction: column; gap: 13px; margin-bottom: 20px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.sum-row .k { color: var(--muted); }
.sum-row .val { font-weight: 600; text-align: right; white-space: nowrap; }
.sum-next { font-size: 13px; color: var(--ink-soft); background: var(--surface-2); border-radius: var(--radius-sm); padding: 13px 14px; display: flex; gap: 10px; }
.sum-next svg { flex: none; color: var(--accent); margin-top: 1px; }
.sum-section { margin: 18px 0 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.sum-section-title { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.pool-funnel { display: flex; flex-direction: column; gap: 9px; }
.pool-step { display: grid; grid-template-columns: 68px 1fr; gap: 10px; align-items: center; font-size: 13px; color: var(--ink-soft); }
.pool-step b { font-family: var(--mono); color: var(--ink); font-size: 12px; font-weight: 650; letter-spacing: .02em; }
.pool-line { height: 6px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.pool-line span { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.summary-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.summary-tag { display: inline-flex; align-items: center; gap: 6px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); font-size: 12.5px; font-weight: 600; color: var(--ink-soft); }
.summary-tag svg { color: var(--accent); flex: none; }

/* ---------- MATCHING (loader) ---------- */
.matching { min-height: calc(100vh - 220px); display: grid; place-items: center; text-align: center; }
.matching .orb { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 32px; display: grid; place-items: center; background: var(--accent-soft); position: relative; }
.matching .orb::before, .matching .orb::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent); opacity: .5; animation: pulse 2s ease-out infinite; }
.matching .orb::after { animation-delay: 1s; }
@keyframes pulse { from { transform: scale(.7); opacity: .6; } to { transform: scale(1.7); opacity: 0; } }
.matching h2 { font-size: 32px; }
.matching .ticks { margin-top: 30px; display: flex; flex-direction: column; gap: 12px; text-align: left; width: 340px; }
.matching .tk { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 550; color: var(--muted); transition: color .3s; }
.matching .tk.on { color: var(--ink); }
.matching .tk .b { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); flex: none; }
.matching .tk.on .b { background: var(--ok); color: #fff; }

/* ---------- MATCHES LIST ---------- */
.fee-banner { display: flex; align-items: center; gap: 18px; padding: 16px 20px; border-radius: var(--radius); background: var(--ink); color: var(--bg); margin-bottom: 24px; }
[data-mode="dark"] .fee-banner { background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); }
.fee-banner .ic { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.12); display: grid; place-items: center; flex: none; }
[data-mode="dark"] .fee-banner .ic { background: var(--accent-soft); color: var(--accent); }
.fee-banner strong { font-family: var(--display); }
.fee-banner .save { margin-left: auto; text-align: right; }
.fee-banner .save b { font-family: var(--display); font-size: 22px; white-space: nowrap; }
.fee-banner .save span { display: block; font-size: 12px; opacity: .7; }

.matches-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.matches-bar .count { font-weight: 600; }
.matches-bar .count b { color: var(--accent); }

.cand-list { display: flex; flex-direction: column; gap: 14px; }
.cand-card { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; padding: 20px; cursor: pointer; transition: transform .15s, box-shadow .15s, border-color .15s; }
.cand-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-2); }
.cand-info .nm { font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px; }
.cand-info .meta { font-size: 13.5px; color: var(--muted); margin-top: 3px; }
.cand-vets { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.cand-reasons, .score-chips, .cand-fit-details { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.cand-reasons span, .score-chip, .fit-detail { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-2); color: var(--ink-soft); font-size: 12px; font-weight: 600; }
.score-chip b { color: var(--accent); font-family: var(--display); font-size: 14px; }
.fit-detail strong { color: var(--ink); font-weight: 750; }
.fit-detail.warn { background: var(--warn-soft); border-color: color-mix(in oklch, var(--warn) 42%, var(--line)); color: color-mix(in oklch, var(--warn) 76%, var(--ink)); }
.confidence-chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 9px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-soft); font-size: 12px; font-weight: 700; }
.confidence-chip b { font-family: var(--display); color: var(--accent); font-size: 14px; }
.confidence-chip.warn { background: var(--warn-soft); border-color: color-mix(in oklch, var(--warn) 42%, var(--line)); color: color-mix(in oklch, var(--warn) 78%, var(--ink)); }
.confidence-chip.warn b { color: color-mix(in oklch, var(--warn) 78%, var(--ink)); }
.confidence-chip.ok { background: var(--ok-soft); border-color: color-mix(in oklch, var(--ok) 32%, var(--line)); color: var(--ok); }
.confidence-chip.ok b { color: var(--ok); }
.near-misses { margin-top: 26px; padding: 22px; border: 1px dashed var(--line-2); border-radius: var(--radius); background: var(--surface-2); }
.near-misses h3 { font-family: var(--display); font-size: 22px; margin-bottom: 6px; }
.near-misses p { color: var(--ink-soft); font-size: 14px; line-height: 1.5; margin-bottom: 14px; }
.near-list { display: grid; gap: 10px; }
.near-card { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: start; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); text-align: left; cursor: pointer; transition: transform .15s, box-shadow .15s, border-color .15s; }
.near-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); border-color: var(--accent-line); }
.near-card:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.near-card strong { font-family: var(--display); font-size: 16px; }
.near-card .why { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; }
.near-card .why span { padding: 4px 7px; border-radius: 6px; background: var(--warn-soft); color: color-mix(in oklch, var(--warn) 78%, var(--ink)); font-size: 12px; font-weight: 650; }
.near-card-side { display: grid; justify-items: end; gap: 10px; }
.near-card-action { display: inline-flex; align-items: center; gap: 5px; color: var(--accent); font-size: 12.5px; font-weight: 750; }
.alternative-review-card { position: sticky; top: 98px; padding: 20px; }
.alternative-review-card h3 { font-size: 22px; margin: 7px 0 8px; }
.alternative-review-card > p { color: var(--ink-soft); font-size: 13.5px; line-height: 1.5; }
.alternative-review-gaps { display: grid; gap: 8px; margin: 16px 0; }
.alternative-review-gap { display: flex; align-items: flex-start; gap: 8px; padding: 9px 10px; border-radius: 8px; background: var(--warn-soft); color: color-mix(in oklch, var(--warn) 78%, var(--ink)); font-size: 12.5px; font-weight: 650; line-height: 1.35; }
.alternative-review-gap svg { flex: none; margin-top: 1px; }
.alternative-review-success { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; padding: 11px 12px; border: 1px solid color-mix(in oklch, var(--ok) 34%, var(--line)); border-radius: 8px; background: var(--ok-soft); color: var(--ok); font-size: 13px; font-weight: 650; line-height: 1.4; }
.alternative-review-success svg { flex: none; margin-top: 1px; }
.match-intel { margin: 22px 0; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.match-intel h4 { font-size: 12px; font-family: var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 12px; }
.score-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.score-row { padding: 10px 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.score-row .top { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); }
.score-row b { color: var(--accent); font-family: var(--display); font-size: 17px; }
.score-row .desc { margin-top: 3px; font-size: 12.5px; color: var(--ink-soft); line-height: 1.35; }
.evidence-list { display: grid; gap: 7px; margin-top: 12px; }
.evidence-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 10px; border-radius: 7px; background: var(--surface); border: 1px solid var(--line); font-size: 12.5px; }
.evidence-row span:first-child { color: var(--muted); font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.evidence-row span:last-child { text-align: right; font-weight: 650; color: var(--ink); }
.trust-panel { margin: 18px 0 22px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.trust-panel h4 { margin: 0 0 8px; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 550; }
.trust-panel p { margin: 0 0 12px; color: var(--ink-soft); font-size: 13.5px; line-height: 1.45; }
.trust-list { display: grid; gap: 8px; }
.trust-item { display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: start; font-size: 13px; color: var(--ink); }
.trust-dot { width: 8px; height: 8px; border-radius: 999px; margin-top: 5px; background: var(--warn); }
.trust-fix { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; line-height: 1.35; }
.no-clean-match { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink-soft); line-height: 1.55; }
.cand-right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.match-pill { display: inline-flex; align-items: baseline; gap: 3px; white-space: nowrap; }
.match-pill b { font-family: var(--display); font-size: 26px; color: var(--accent); letter-spacing: -0.03em; }
.match-pill span { font-size: 12px; color: var(--muted); }
.cand-right .rate { font-weight: 650; font-size: 15px; }
.cand-right .avail { font-size: 12.5px; color: var(--muted); white-space: nowrap; }

/* ---------- CANDIDATE DETAIL ---------- */
.cand-detail { display: grid; grid-template-columns: 1fr 1.1fr; gap: 34px; align-items: start; }
.profile .phead { display: flex; gap: 18px; align-items: center; }
.profile .nm { font-size: 30px; }
.profile .ro { color: var(--ink-soft); font-size: 15px; margin-top: 4px; }
.profile .bio { font-size: 16px; line-height: 1.6; color: var(--ink-soft); margin: 22px 0; }
.candidate-primary-action { display: grid; gap: 12px; margin-top: 28px; }
.candidate-primary-action-row { display: flex; gap: 12px; align-items: center; }
.candidate-primary-action p { margin: 0; font-size: 13px; line-height: 1.5; }
.prof-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 22px; }
.prof-grid .cell { background: var(--surface); padding: 15px 16px; }
.prof-grid .k { font-size: 12px; color: var(--muted); font-family: var(--mono); letter-spacing: .04em; }
.prof-grid .v { font-weight: 600; font-size: 15px; margin-top: 4px; }
.prof-tags { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- VETTING PANEL ---------- */
.vet { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 26px; position: sticky; top: 86px; }
.vet-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }
.ring { position: relative; width: 68px; height: 68px; flex: none; }
.ring-num { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 1px; font-family: var(--display); line-height: 1; }
.ring-num b { font-size: 22px; letter-spacing: -0.03em; }
.ring-num span { transform: translateY(2px); font-size: 12px; color: var(--muted); font-weight: 700; }
.vet-list { display: flex; flex-direction: column; gap: 4px; }
.vet-row { display: flex; align-items: center; gap: 14px; padding: 13px; border-radius: var(--radius-sm); transition: background .25s; }
.vet-row.running { background: var(--accent-soft); }
.vet-row.clear { background: transparent; }
.vet-ic { width: 36px; height: 36px; border-radius: 9px; background: var(--surface-2); color: var(--ink-soft); display: grid; place-items: center; flex: none; transition: all .25s; }
.vet-row.running .vet-ic { background: var(--accent); color: var(--on-accent); }
.vet-row.clear .vet-ic { background: var(--ok-soft); color: var(--ok); }
.vet-row.review { background: var(--warn-soft); }
.vet-row.review .vet-ic { background: var(--surface); color: var(--warn); }
.vet-row.review .vet-res { color: color-mix(in oklch, var(--warn) 78%, var(--ink)); }
.vet-main { flex: 1; min-width: 0; }
.vet-label { font-weight: 650; font-size: 15px; display: flex; flex-direction: column; gap: 2px; }
.vet-det, .vet-res { font-weight: 450; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vet-det { color: var(--muted); }
.vet-res { color: var(--ok); font-size: 12px; }
.vet-track { height: 3px; background: var(--line); border-radius: 99px; margin-top: 9px; overflow: hidden; }
.vet-fill { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 99px; transition: width .25s; }
.vet-row.running .vet-fill[data-on="true"] { width: 70%; transition: width 2.4s ease; }
.vet-row.clear .vet-fill[data-on="true"] { width: 100%; background: var(--ok); }
.vet-stat { width: 24px; display: grid; place-items: center; flex: none; }
.dot-idle { width: 9px; height: 9px; border-radius: 50%; border: 1.6px solid var(--line-2); }
.vet-tick { width: 22px; height: 22px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; }
.vet-foot { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.vet-progress { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; color: var(--accent); }
.vet-pack { display: flex; align-items: center; gap: 12px; padding: 14px; background: var(--ok-soft); border-radius: var(--radius-sm); }
.vet-pack-ic { width: 36px; height: 36px; border-radius: 9px; background: var(--ok); color: #fff; display: grid; place-items: center; flex: none; }
.vet-pack strong { font-size: 14.5px; }
.vet-pack.pending { background: var(--warn-soft); }
.vet-pack.pending .vet-pack-ic { background: var(--warn); color: var(--ink); }
.vet-meta { font-size: 12px; margin-top: 12px; text-align: center; }

.vet-labrow { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; min-width: 0; }
.vet-lab { font-weight: 650; font-size: 15px; white-space: nowrap; }
.vet-prov { font-family: var(--mono); font-size: 10px; letter-spacing: .02em; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line); padding: 1px 6px; border-radius: 5px; white-space: nowrap; }
.vet-human { display: flex; align-items: center; gap: 11px; margin-top: 16px; padding: 12px 14px; background: var(--surface-2); border-radius: var(--radius-sm); font-size: 13px; line-height: 1.4; }
.vet-human strong { font-weight: 650; }
.vet-providers { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.vp-lbl { font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.vp-names { font-size: 12px; color: var(--ink-soft); font-weight: 600; }
.vp-orch { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 650; color: var(--accent); white-space: nowrap; }

/* ---------- PLACE / SCHEDULE ---------- */
.place-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: start; }
.slot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 8px; }
.slot { padding: 14px 12px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); text-align: center; background: var(--surface); transition: all .14s; }
.slot:hover { border-color: var(--accent-line); }
.slot.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.slot .d { font-weight: 700; font-family: var(--display); font-size: 15px; }
.slot .t { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.slot .tz { font-size: 11.5px; color: var(--muted); margin-top: 5px; line-height: 1.3; }
.slot.on .t, .slot.on .tz { color: var(--accent); }
.slot-timezone-note { margin: 7px 0 10px; color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.fee-card { padding: 24px; }
.fee-card h4 { font-size: 12px; font-family: var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 16px; }
.fee-line { display: flex; justify-content: space-between; padding: 11px 0; font-size: 15px; border-bottom: 1px solid var(--line); }
.fee-line .k { color: var(--ink-soft); white-space: nowrap; }
.fee-line.old .v { text-decoration: line-through; color: var(--muted); }
.fee-line.total { padding-top: 16px; font-size: 17px; border-bottom: none; }
.fee-line.total .v { font-family: var(--display); font-weight: 700; font-size: 26px; color: var(--accent); }
.fee-note { font-size: 12.5px; color: var(--muted); margin-top: 14px; display: flex; gap: 8px; }
.fee-note svg { color: var(--ok); flex: none; }
.meeting-notice { display: flex; gap: 10px; margin-top: 16px; padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--ink-soft); font-size: 13px; line-height: 1.45; }
.meeting-notice svg { color: var(--accent); flex: none; margin-top: 1px; }

/* ---------- DONE ---------- */
.done-wrap { max-width: 620px; margin: 40px auto 0; text-align: center; }
.done-check { width: 84px; height: 84px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; margin: 0 auto 28px; box-shadow: 0 0 0 10px var(--ok-soft); animation: pop .5s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes pop { from { transform: scale(.4); } to { transform: scale(1); } }
.done-wrap h2 { font-size: 38px; }
.done-wrap p { font-size: 17px; color: var(--ink-soft); margin-top: 12px; }
.done-card { text-align: left; padding: 22px; margin: 30px 0; display: flex; align-items: center; gap: 16px; }
.done-steps { display: flex; flex-direction: column; gap: 12px; text-align: left; margin: 26px 0; }
.done-step { display: flex; gap: 13px; align-items: flex-start; font-size: 15px; }
.done-step .n { width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; font-family: var(--display); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero, .brief-grid, .place-grid { grid-template-columns: 1fr; gap: 36px; }
  .cand-detail { grid-template-columns: 1fr; row-gap: 52px; }
  .role-grid { grid-template-columns: repeat(2, 1fr); }
  .vet, .brief-summary, .alternative-review-card { position: static; }
  .hero { min-height: 0; }
  .score-grid { grid-template-columns: 1fr; }
  .near-card { grid-template-columns: 1fr; }
  .near-card .match-pill { justify-self: start; }
  .near-card-side { justify-items: start; }
}
@media (max-width: 700px) {
  .topbar { gap: 10px; padding: 0 16px; }
  .topbar .btn-sm { padding: 0 12px; }
}
@media (max-width: 560px) {
  .topbar { gap: 8px; padding: 0 16px; }
  .topbar .spacer { display: none; }
  .topbar .wordmark { margin-right: auto; }
  .topbar .btn-sm { height: 34px; padding: 0 9px; font-size: 13px; }
  .topbar .btn-ghost { width: 38px; padding: 0; gap: 0; font-size: 0; }
  .topbar .btn-ghost svg { width: 15px; height: 15px; }
  .topbar > .btn-quiet { width: 38px; padding: 0; gap: 0; font-size: 0; flex: none; }
  .topbar .auth-email { display: none; }
  .topbar .auth-badge { gap: 0; }
  .ai-bar { flex-wrap: wrap; }
  .auto-fill-note { order: 3; width: 100%; justify-content: center; }
  .role-grid { grid-template-columns: 1fr; }
  .brief-contact { grid-template-columns: 1fr; gap: 0; }
  .brief-contact .field:nth-child(3), .brief-contact .photo-field { grid-column: auto; }
  .brief-extra-grid { grid-template-columns: 1fr; }
  .brief-extra-grid .brief-wide { grid-column: auto; }
  .slot-grid { grid-template-columns: repeat(2, 1fr); }
  .page { padding: 28px 18px 80px; }
}


/* ============================================================
   REFINED STAFF — dashboard styles
   ============================================================ */
.dash { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }

/* ---------- sidebar ---------- */
.dash-side {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; gap: 8px;
  padding: 22px 16px; border-right: 1px solid var(--line);
  background: var(--surface-2);
}
.dash-brand { padding: 6px 8px 18px; }
.dash-nav { display: flex; flex-direction: column; gap: 3px; }
.dash-navi {
  display: flex; align-items: center; gap: 12px; white-space: nowrap;
  padding: 11px 12px; border-radius: var(--radius-sm);
  font-size: 14.5px; font-weight: 600; color: var(--ink-soft);
  transition: background .14s, color .14s; text-align: left;
}
.dash-navi svg { color: var(--muted); transition: color .14s; }
.dash-navi:hover { background: var(--surface-3); color: var(--ink); }
.dash-navi.on { background: var(--accent-soft); color: var(--accent); }
.dash-navi.on svg { color: var(--accent); }
.navi-dot { margin-left: auto; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; background: var(--warn); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
[data-mode="dark"] .navi-dot { color: var(--bg); }

.dash-start {
  margin-top: 8px; display: flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
  height: 44px; border-radius: var(--radius-sm); background: var(--accent); color: var(--on-accent);
  font-weight: 650; font-size: 14.5px; box-shadow: var(--shadow-sm); transition: background .15s;
}
.dash-start:hover { background: var(--accent-press); }

.dash-user { margin-top: auto; display: flex; align-items: center; gap: 11px; padding: 10px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); }
.du-meta { min-width: 0; flex: 1; }
.du-name { font-weight: 650; font-size: 14px; }
.du-sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.du-out { color: var(--muted); padding: 4px; border-radius: 6px; }
.du-out:hover { color: var(--ink); background: var(--surface-2); }

/* ---------- main ---------- */
.dash-main { min-width: 0; display: flex; flex-direction: column; }
.dash-top {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 14px; padding: 14px 30px; height: 66px;
  background: color-mix(in oklch, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line);
}
.dt-search { flex: 1; max-width: 460px; display: flex; align-items: center; gap: 9px; height: 40px; padding: 0 14px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); }
.dt-search input { flex: 1; border: none; background: none; outline: none; font-size: 14px; color: var(--ink); }
.dt-search input::placeholder { color: var(--faint); }
.dt-bell { position: relative; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-soft); border: 1px solid var(--line); margin-left: auto; }
.dt-bell:hover { background: var(--surface-2); }
.bell-dot { position: absolute; top: 9px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--warn); border: 2px solid var(--bg); }

.dash-body { padding: 30px; max-width: 1180px; }

.dash-hello { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.dash-hello h2 { font-size: 32px; line-height: 1.12; white-space: nowrap; }
.dash-hello p { font-size: 15px; margin-top: 8px; }

/* ---------- stat row ---------- */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 30px; }
.stat { text-align: left; padding: 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm); transition: transform .14s, box-shadow .14s, border-color .14s; }
.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-2); }
.stat-ic { width: 36px; height: 36px; border-radius: 9px; background: var(--surface-2); color: var(--accent); display: grid; place-items: center; margin-bottom: 14px; }
.stat-ic.warn { background: var(--warn-soft); color: color-mix(in oklch, var(--warn) 78%, black); }
.stat-ic.ok { background: var(--ok-soft); color: var(--ok); }
[data-mode="dark"] .stat-ic.warn { color: var(--warn); }
.stat-n { font-family: var(--display); font-weight: 700; font-size: 30px; letter-spacing: -0.03em; }
.stat-sub { font-family: var(--body); font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.stat-l { font-size: 13px; color: var(--muted); margin-top: 3px; }

/* ---------- columns ---------- */
.dash-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; }
.sec-head h3 { font-size: 17px; }
.sec-link { font-size: 13.5px; font-weight: 600; color: var(--accent); }
.sec-link:hover { text-decoration: underline; }

/* ---------- search card ---------- */
.search-card { padding: 18px; margin-bottom: 12px; }
.sc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.sc-role { font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: -0.02em; }
.sc-stage { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-soft); margin-top: 4px; }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.sc-bar { height: 6px; border-radius: 99px; background: var(--line); margin: 15px 0; overflow: hidden; }
.sc-bar span { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.sc-note { display: flex; gap: 10px; align-items: flex-start; margin: -2px 0 14px; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--accent-line); background: var(--accent-soft); color: var(--ink-soft); font-size: 12.5px; line-height: 1.4; }
.sc-note svg { flex: none; color: var(--accent); margin-top: 1px; }
.sc-note strong { display: block; color: var(--ink); font-size: 13px; margin-bottom: 2px; }
.sc-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sc-who { display: flex; align-items: center; gap: 11px; min-width: 0; }
.sc-who > div { min-width: 0; }
.sc-whon { font-weight: 650; font-size: 14.5px; white-space: nowrap; }

/* ---------- staff mini ---------- */
.staff-mini { display: flex; flex-direction: column; gap: 2px; }
.smini { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--radius-sm); transition: background .14s; width: 100%; text-align: left; background: none; border: none; cursor: pointer; font: inherit; color: inherit; }
.smini:hover { background: var(--surface-2); }
.smini-meta { flex: 1; min-width: 0; }
.smini-nm { font-weight: 650; font-size: 14.5px; }
.smini-ro { font-size: 12.5px; color: var(--muted); }

/* ---------- pills ---------- */
.pill { display: inline-flex; align-items: center; height: 25px; padding: 0 11px; border-radius: 99px; font-size: 12px; font-weight: 650; white-space: nowrap; }
.pill.ok   { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: color-mix(in oklch, var(--warn) 78%, black); }
.pill.prog { background: var(--accent-soft); color: var(--accent); }
[data-mode="dark"] .pill.warn { color: var(--warn); }

/* ---------- compliance monitor ---------- */
.mon-card { padding: 20px; }
.mon-card.big { padding: 10px 22px; }
.mon-intro { font-size: 14px; color: var(--ink-soft); line-height: 1.5; margin-bottom: 16px; }
.mon-list { display: flex; flex-direction: column; }
.mon-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.mon-row:last-child { border-bottom: none; }
.mon-ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.mon-ic.ok { background: var(--ok-soft); color: var(--ok); }
.mon-ic.warn { background: var(--warn-soft); color: color-mix(in oklch, var(--warn) 78%, black); }
.mon-ic.prog { background: var(--accent-soft); color: var(--accent); }
[data-mode="dark"] .mon-ic.warn { color: var(--warn); }
.mon-main { flex: 1; min-width: 0; }
.mon-top { font-size: 14.5px; }
.mon-top strong { font-weight: 650; }
.mon-note { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.mon-when { font-size: 13px; font-weight: 650; white-space: nowrap; }
.mon-when.ok { color: var(--muted); }
.mon-when.warn { color: color-mix(in oklch, var(--warn) 78%, black); }
.mon-when.prog { color: var(--accent); }
[data-mode="dark"] .mon-when.warn { color: var(--warn); }

.auto-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 20px; padding: 14px 16px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 13.5px; line-height: 1.45; color: var(--ink-soft); }
.auto-note svg { color: var(--accent); flex: none; margin-top: 1px; }

/* ---------- household grid ---------- */
.staff-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.staff-card { padding: 20px; }
.stc-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; width: 100%; background: none; border: none; cursor: pointer; font: inherit; color: inherit; padding: 0; border-radius: var(--radius-sm); }
.stc-head:hover .stc-nm { color: var(--accent); }
.stc-nm { font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.stc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stc-k { font-size: 11.5px; color: var(--muted); font-family: var(--mono); letter-spacing: .03em; }
.stc-v { font-weight: 600; font-size: 14px; margin-top: 3px; }
.stc-foot { display: flex; gap: 10px; margin-top: 16px; }

/* ---------- searches: new brief card ---------- */
.new-brief-card { display: flex; align-items: center; gap: 16px; width: 100%; text-align: left; padding: 22px; margin-top: 14px; border-radius: var(--radius); border: 1.5px dashed var(--line-2); background: var(--surface); transition: border-color .15s, background .15s; }
.new-brief-card:hover { border-color: var(--accent); background: var(--accent-soft); }
.nbc-ic { width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.nbc-t { font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: -0.02em; }

/* ---------- billing ---------- */
.bill-card { padding: 22px; }
.bill-card h4 { font-size: 12px; font-family: var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 14px; }
.bill-line { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; font-size: 15px; border-bottom: 1px solid var(--line); }
.bill-line:last-child { border-bottom: none; }
.bill-line .bk { color: var(--ink-soft); white-space: nowrap; }
.bill-line .bv { font-weight: 650; white-space: nowrap; }
.bill-line.old .bv { text-decoration: line-through; color: var(--muted); font-weight: 500; }
.bill-line.save .bv { font-family: var(--display); font-size: 22px; color: var(--ok); }

/* ---------- certified providers ---------- */
.prov-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.prov-card { padding: 16px 18px; }
.prov-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.prov-name { font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: -0.02em; }
.prov-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 650; color: var(--ok); background: var(--ok-soft); border-radius: 99px; padding: 2px 8px; white-space: nowrap; }
.prov-for { font-size: 13px; color: var(--muted); }
.portfolio-card { margin: 0 0 20px; padding: 18px; }
.portfolio-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.portfolio-head h3 { margin: 0; font-size: 18px; }
.portfolio-head p { margin: 4px 0 0; font-size: 13px; line-height: 1.45; color: var(--muted); }
.portfolio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.portfolio-group { padding: 13px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); }
.portfolio-label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.portfolio-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.portfolio-empty { color: var(--muted); font-size: 13px; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .dash { grid-template-columns: 1fr; }
  .dash-side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .dash-brand { padding: 6px 8px; }
  .dash-nav { flex-direction: row; flex-wrap: wrap; }
  .dash-start { margin: 0 0 0 auto; padding: 0 16px; }
  .dash-user { width: 100%; margin-top: 4px; }
  .dash-cols, .staff-grid, .portfolio-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .prov-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .stat-row { grid-template-columns: 1fr; }
  .dash-body, .dash-top { padding-left: 18px; padding-right: 18px; }
  .prov-grid { grid-template-columns: 1fr; }
}


/* ============================================================
   REFINED STAFF — staff drawer + messaging
   ============================================================ */
.drawer-scrim {
  position: fixed; inset: 0; z-index: 60;
  background: oklch(0.2 0.02 270 / 0.34);
  backdrop-filter: blur(2px);
  display: flex; justify-content: flex-end;
  animation: scrimIn .2s ease both;
}
@keyframes scrimIn { from { background: oklch(0.2 0.02 270 / 0); } to { background: oklch(0.2 0.02 270 / 0.34); } }

.drawer {
  width: 460px; max-width: 94vw; height: 100%;
  background: var(--surface); border-left: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
  animation: drawerIn .26s cubic-bezier(.2,.7,.3,1) both;
}
@keyframes drawerIn { from { transform: translateX(26px); } to { transform: none; } }

.drawer-head { display: flex; align-items: center; gap: 14px; padding: 22px 22px 16px; border-bottom: 1px solid var(--line); }
.dh-meta { flex: 1; min-width: 0; }
.dh-nm { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.dh-ro { font-size: 13.5px; color: var(--muted); }
.drawer-x { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; color: var(--muted); }
.drawer-x:hover { background: var(--surface-2); color: var(--ink); }

.drawer-tabs { display: flex; gap: 4px; padding: 10px 16px 0; border-bottom: 1px solid var(--line); }
.drawer-tabs button {
  position: relative; padding: 10px 14px 14px; font-size: 14.5px; font-weight: 600; color: var(--muted);
}
.drawer-tabs button.on { color: var(--ink); }
.drawer-tabs button.on::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2.5px; background: var(--accent); border-radius: 2px; }
.dt-count { margin-left: 7px; font-size: 11px; font-weight: 700; background: var(--surface-3); color: var(--ink-soft); border-radius: 99px; padding: 1px 7px; }

.drawer-body { flex: 1; overflow-y: auto; padding: 22px; display: flex; flex-direction: column; }
.dp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 14px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dp-sec { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14.5px; margin: 20px 0 12px; font-family: var(--display); letter-spacing: -0.01em; }
.dp-block { margin: 18px 0 2px; padding: 15px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); }
.dp-block-title { margin-bottom: 10px; font-family: var(--display); font-size: 14.5px; font-weight: 700; letter-spacing: -0.01em; }
.dp-form { display: grid; gap: 9px; }
.dp-form input, .dp-form select, .replace-form textarea {
  width: 100%; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface);
  color: var(--ink); font: inherit; font-size: 14px; outline: none;
}
.dp-form input, .dp-form select { min-height: 42px; padding: 0 11px; }
.dp-form input:focus, .dp-form select:focus, .replace-form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.replace-form { margin-top: 16px; padding: 15px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); }
.replace-form strong { display: block; margin-bottom: 5px; font-family: var(--display); }
.replace-form p { margin: 0 0 10px; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.replace-form textarea { min-height: 88px; resize: vertical; padding: 10px 11px; }
.replace-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }

.doc-list { display: flex; flex-direction: column; gap: 2px; }
.doc-row { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: var(--radius-sm); transition: background .14s; width: 100%; background: none; border: none; cursor: pointer; font: inherit; color: inherit; text-align: left; }
.doc-row:hover { background: var(--surface-2); }
.doc-ic { width: 32px; height: 32px; border-radius: 8px; background: var(--surface-2); color: var(--ink-soft); display: grid; place-items: center; flex: none; }
.doc-main { flex: 1; min-width: 0; }
.doc-lbl { font-weight: 600; font-size: 14px; }
.doc-meta { font-size: 12px; color: var(--muted); }
.doc-ok { width: 22px; height: 22px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; flex: none; }

.drawer-foot { display: flex; gap: 10px; margin-top: auto; padding-top: 20px; }

/* ---- messaging ---- */
.thread-wrap { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.thread { flex: 1; overflow-y: auto; padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; }
.thread-day { text-align: center; font-size: 11.5px; color: var(--faint); font-family: var(--mono); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 6px; }
.bubble-row { display: flex; align-items: flex-end; gap: 9px; max-width: 86%; }
.bubble-row.me { align-self: flex-end; flex-direction: row-reverse; }
.bubble { padding: 11px 15px; border-radius: 18px; font-size: 14.5px; line-height: 1.45; }
.bubble.them { background: var(--surface-2); color: var(--ink); border-bottom-left-radius: 5px; }
.bubble.me { background: var(--accent); color: var(--on-accent); border-bottom-right-radius: 5px; }
.bubble-notice { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.35; }
.bubble.me .bubble-notice { border-top-color: color-mix(in srgb, var(--on-accent) 28%, transparent); color: color-mix(in srgb, var(--on-accent) 82%, transparent); }
.thread-state { margin: auto; max-width: 320px; text-align: center; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.thread-state strong { display: block; color: var(--ink); font-size: 14.5px; margin-bottom: 4px; }

.composer { display: flex; align-items: center; gap: 9px; padding: 14px 16px; border-top: 1px solid var(--line); }
.composer input { flex: 1; height: 44px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--surface-2); outline: none; font-size: 14.5px; transition: border-color .15s, box-shadow .15s; }
.composer input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.composer-send { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; flex: none; transition: background .15s; }
.composer-send:hover { background: var(--accent-press); }
.composer-send:disabled { background: var(--line-2); color: var(--faint); cursor: not-allowed; }

@media (max-width: 560px) { .drawer { width: 100vw; } }


/* ============================================================
   REFINED STAFF — candidate portal + document viewer
   ============================================================ */

/* ---- overview hero ---- */
.p-hero { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; align-items: stretch; }
.p-status { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.ps-top { }
.ps-role { font-family: var(--display); font-weight: 700; font-size: 23px; letter-spacing: -0.02em; }
.ps-meta { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-soft); font-weight: 600; }
.ps-meta svg { color: var(--accent); }
.ps-note { font-size: 14px; color: var(--muted); line-height: 1.5; margin: 2px 0 6px; }

.p-vet { padding: 22px; display: flex; flex-direction: column; align-items: center; gap: 10px; justify-content: center; }
.pv-title { font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }

/* ---- documents ---- */
.docu-row { display: flex; align-items: center; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.docu-row:last-child { border-bottom: none; }

/* ---- applications ---- */
.app-list { display: flex; flex-direction: column; gap: 14px; }
.app-card { display: flex; align-items: center; gap: 16px; padding: 18px 20px; }
.app-main { flex: 1; min-width: 0; }
.app-role { font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.app-stage { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; margin-top: 8px; padding: 4px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 650; }
.app-stage.interview { background: var(--ok-soft); color: var(--ok); }
.app-stage.match { background: var(--accent-soft); color: var(--accent); }

/* ---- availability switch ---- */
.avail-toggle { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; padding: 16px; border-radius: var(--radius-sm); background: var(--surface-2); }
.switch { width: 48px; height: 28px; border-radius: 99px; background: var(--line-2); position: relative; transition: background .18s; flex: none; }
.switch span { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .18s; }
.switch.on { background: var(--accent); }
.switch.on span { transform: translateX(20px); }

/* ============================================================
   DOCUMENT VIEWER
   ============================================================ */
.dv-scrim { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 24px;
  background: oklch(0.2 0.02 270 / 0.4); backdrop-filter: blur(3px); animation: scrimIn .2s ease both; }
.dv-sheet { width: 480px; max-width: 100%; max-height: 92vh; overflow: hidden; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  animation: dvIn .24s cubic-bezier(.2,.7,.3,1) both; }
@keyframes dvIn { from { transform: translateY(14px) scale(.98); } to { transform: none; } }

.dv-bar { display: flex; align-items: center; gap: 11px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.dv-bar strong { font-size: 15.5px; font-family: var(--display); letter-spacing: -0.01em; }
.dv-ic { width: 32px; height: 32px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }

.dv-doc { position: relative; margin: 20px; padding: 26px; border: 1px solid var(--line-2); border-radius: var(--radius);
  background: repeating-linear-gradient(135deg, var(--surface) 0 22px, var(--surface-2) 22px 23px); overflow: hidden; }
.dv-doc-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.dv-stamp { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 99px; font-size: 12px; font-weight: 700;
  background: var(--ok-soft); color: var(--ok); border: 1px solid color-mix(in oklch, var(--ok) 30%, transparent); }
.dv-ref { font-size: 11.5px; color: var(--muted); }
.dv-title { font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: -0.025em; margin-bottom: 18px; }
.dv-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.dv-field { display: flex; flex-direction: column; gap: 3px; }
.dv-k { font-size: 11px; font-family: var(--mono); letter-spacing: .04em; color: var(--muted); text-transform: uppercase; }
.dv-v { font-weight: 650; font-size: 14.5px; }
.dv-note { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-soft); line-height: 1.5; }
.dv-watermark { position: absolute; right: -8px; bottom: -14px; font-family: var(--display); font-weight: 800; font-size: 76px;
  letter-spacing: -0.04em; color: var(--ink); opacity: 0.04; pointer-events: none; }

.dv-foot { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--line); }
.dv-verified { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); }
.dv-verified svg { color: var(--ok); }

@media (max-width: 1000px) { .p-hero { grid-template-columns: 1fr; } }

/* ---- CV upload (profile) ---- */
.cv-drop { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 18px; border: 1.5px dashed var(--line-2); border-radius: var(--radius); background: var(--surface); cursor: pointer; transition: border-color .15s, background .15s; }
.cv-drop:hover, .cv-drop.is-dragging { border-color: var(--accent); background: var(--accent-soft); }
.cv-ic { width: 46px; height: 46px; border-radius: 12px; background: var(--surface-2); color: var(--accent); display: grid; place-items: center; flex: none; }
.cv-t { display: block; font-weight: 650; font-size: 15px; line-height: 1.25; }
.cv-drop .muted { line-height: 1.4; margin-top: 3px; }
.cv-drop > div { min-width: 0; }
.cv-row { display: flex; align-items: center; gap: 14px; padding: 15px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.cv-row .cv-ic { width: 40px; height: 40px; background: var(--surface); border: 1px solid var(--line); }
.cv-main { flex: 1; min-width: 0; }
.cv-name { font-weight: 650; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv-meta { font-size: 12.5px; color: var(--muted); }
.cv-error { margin-top: 8px; color: var(--danger); font-size: 12.5px; font-weight: 650; }
.photo-field { margin-top: 22px; }
.photo-field > label { display: block; font-size: 13.5px; font-weight: 650; margin-bottom: 8px; }
.photo-pick { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; align-items: center; column-gap: 14px; width: 100%; padding: 14px; border-radius: var(--radius); border: 1px dashed var(--line-2); background: var(--surface); text-align: left; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.photo-pick:hover { border-color: var(--accent); background: var(--accent-soft); }
.photo-pick:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.photo-thumb { width: 54px; height: 54px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: var(--accent); display: grid; place-items: center; flex: none; overflow: hidden; }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-copy { min-width: 0; display: grid; gap: 4px; }
.photo-title { display: block; font-weight: 650; font-size: 14px; line-height: 1.25; }
.photo-note { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.photo-pick > .btn { justify-self: end; white-space: nowrap; }
.photo-error { margin-top: 7px; color: var(--danger); font-size: 12.5px; font-weight: 650; }
.photo-remove { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); background: var(--surface-2); }
.photo-remove:hover { color: var(--ink); background: var(--line); }

/* ============================================================
   APPLY FLOW
   ============================================================ */
.apply { min-height: 100vh; display: flex; flex-direction: column; }
.apply-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 22px; padding: 0 28px; height: 64px; background: color-mix(in oklch, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.apply-steps { display: flex; align-items: center; gap: 10px; margin: 0 auto; }
.apply-stepmark { display: grid; gap: 6px; justify-items: center; color: var(--muted); font-size: 11px; font-weight: 700; line-height: 1; }
.apply-stepmark .as { width: 34px; height: 4px; border-radius: 99px; background: var(--line-2); transition: background .3s, width .3s; }
.apply-stepmark.done .as, .apply-stepmark.on .as { background: var(--accent); }
.apply-stepmark.on .as { width: 44px; }
.apply-step-label { max-width: 68px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.apply-exit { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.apply-exit:hover { color: var(--ink); }
.apply-main { flex: 1; display: grid; place-items: start center; padding: clamp(38px, 5vw, 62px) 24px 96px; background: linear-gradient(180deg, color-mix(in oklch, var(--surface-2) 62%, transparent), transparent 330px); }
.apply-card { width: 100%; max-width: 760px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 22px 56px oklch(0.30 0.02 70 / 0.10), 0 2px 6px oklch(0.30 0.02 70 / 0.05); padding: clamp(32px, 4vw, 44px); }
.apply-card .eyebrow { margin-bottom: 12px; }
.apply-h { font-size: clamp(29px, 3.1vw, 37px); line-height: 1.04; margin: 0; letter-spacing: -0.03em; max-width: 15em; }
.apply-sub { font-size: 15.5px; line-height: 1.6; color: var(--ink-soft); margin: 12px 0 26px; max-width: 48em; }
.apply-trust-row { display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 24px; }
.trust-pill { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface-2); color: var(--ink-soft); font-size: 12.5px; font-weight: 650; }
.trust-pill svg { color: var(--accent); flex: none; }
.apply-panel-link { display: inline-flex; align-items: center; gap: 7px; width: fit-content; color: var(--accent); font-size: 13.5px; font-weight: 700; text-align: left; }
.apply-panel-link:hover { color: var(--accent-press); }
.required-label { display: inline-flex; align-items: center; gap: 7px; }
.required-label::after {
  content: "Required";
  display: inline-flex; align-items: center; height: 20px; padding: 0 8px;
  border-radius: 999px; background: var(--accent-soft); color: var(--accent);
  font-family: var(--mono); font-size: 10px; letter-spacing: .05em; text-transform: uppercase;
}
.apply-role-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 28px 0 12px; padding-top: 22px; border-top: 1px solid var(--line); }
.apply-role-title { color: var(--ink); font-size: 13.5px; font-weight: 750; letter-spacing: -0.01em; }
.apply-role-more {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  height: 34px; padding: 0 11px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-2); background: var(--surface-2);
  color: var(--ink-soft); font-size: 13px; font-weight: 700;
  transition: color .14s, background .14s, border-color .14s;
}
.apply-role-more:hover { color: var(--ink); border-color: var(--muted); background: var(--surface); }
.apply-role-more:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.apply-role-more svg { transition: transform .16s ease; }
.apply-role-more.open svg { transform: rotate(180deg); }
.apply-roles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 26px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.arole { display: flex; align-items: center; gap: 11px; min-height: 64px; padding: 13px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: color-mix(in oklch, var(--surface) 82%, var(--surface-2)); font-weight: 650; font-size: 14.5px; text-align: left; transition: transform .14s, border-color .14s, background .14s, box-shadow .14s; }
.arole:hover { transform: translateY(-1px); border-color: var(--muted); background: var(--surface); box-shadow: var(--shadow-sm); }
.arole:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.arole.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.ar-ic { width: 32px; height: 32px; border-radius: 9px; background: var(--surface-2); color: var(--accent); display: grid; place-items: center; flex: none; }
.arole.on .ar-ic { background: var(--accent); color: var(--on-accent); }
.arole-check { margin-left: auto; color: var(--accent); opacity: 0; display: grid; place-items: center; }
.arole.on .arole-check { opacity: 1; }
.role-count { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding: 5px 10px; border-radius: 99px; background: var(--surface-2); color: var(--ink-soft); font-size: 12.5px; font-weight: 650; }
.role-count svg { color: var(--accent); }
.apply-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; align-items: start; margin-top: 20px; }
.apply-row:first-of-type { margin-top: 0; }
.apply-row + .apply-row { margin-top: 22px; }
.apply-row + .afield.apply-wide { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.apply-wide { grid-column: 1 / -1; }
.apply-wide > .seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: min(560px, 100%); }
.apply-wide > .seg button { min-height: 40px; }
.afield { margin-bottom: 0; }
.afield > label { display: block; font-size: 13.5px; font-weight: 650; margin-bottom: 9px; }
.afield .hint { color: var(--muted); font-weight: 450; }
.afield.required-missing .seg { border-color: var(--accent-line); background: color-mix(in oklch, var(--accent) 5%, var(--surface)); }
.field-alert {
  display: flex; align-items: center; gap: 7px; margin-top: 8px;
  color: var(--muted);
  font-size: 12.5px; font-weight: 650;
}
.field-alert svg { flex: none; color: var(--accent); }
.tel-stack { display: flex; flex-direction: column; gap: 9px; }
.tel-row { display: grid; grid-template-columns: minmax(112px, 132px) 1fr auto; gap: 8px; align-items: center; }
.tel-row.single { grid-template-columns: minmax(112px, 132px) 1fr; }
.tel-code { height: 48px; min-width: 0; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); padding: 0 10px; font: inherit; font-size: 14px; font-weight: 650; }
.tel-code:focus, .tel-row .txt-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.tel-remove { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); background: var(--surface-2); }
.tel-remove:hover { color: var(--ink); background: var(--line); }
.tel-add { align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; margin-top: 2px; color: var(--accent); font-size: 13px; font-weight: 650; }
.tel-add:hover { color: var(--accent-press); }
.language-field { margin-top: 22px; }
.apply-profile-row { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.apply-card .photo-field { padding-top: 22px; border-top: 1px solid var(--line); }
.occupational-requirement-field { margin-top: 4px; padding-top: 22px; border-top: 1px solid var(--line); }
.occupational-requirement-field > label { font-size: 15px; }
.or-box { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); padding: 16px; display: grid; gap: 14px; }
.or-box.active { border-color: var(--accent-line); background: color-mix(in oklch, var(--accent) 4%, var(--surface)); box-shadow: 0 0 0 3px color-mix(in oklch, var(--accent) 7%, transparent); }
.or-intro { color: var(--ink-soft); font-size: 13.5px; line-height: 1.5; }
.or-box .seg { flex-wrap: wrap; }
.or-box .seg button { flex: 1 1 140px; }
.or-steps { display: grid; gap: 12px; }
.or-step { display: grid; gap: 9px; padding: 13px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.or-step.missing { border-color: color-mix(in oklch, var(--warn) 35%, var(--line)); }
.or-step-head { display: grid; gap: 2px; }
.or-step-head strong { font-size: 13.5px; color: var(--ink); }
.or-step-head span { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.or-reasons { display: flex; flex-wrap: wrap; gap: 8px; }
.or-reason { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 7px 10px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-soft); font-size: 12.5px; font-weight: 650; }
.or-reason input { accent-color: var(--accent); }
.or-counter { font-size: 12px; color: var(--muted); text-align: right; }
.or-counter.missing { color: color-mix(in oklch, var(--warn) 78%, var(--ink)); font-weight: 650; }
.or-status { display: flex; align-items: flex-start; gap: 8px; padding: 10px 11px; border-radius: var(--radius-sm); font-size: 12.5px; font-weight: 650; line-height: 1.4; }
.or-status svg { flex: none; margin-top: 1px; }
.or-status.missing { border: 1px solid color-mix(in oklch, var(--warn) 35%, var(--line)); background: var(--warn-soft); color: color-mix(in oklch, var(--warn) 78%, var(--ink)); }
.or-status.complete { border: 1px solid color-mix(in oklch, var(--ok) 34%, var(--line)); background: var(--ok-soft); color: var(--ok); }
.or-note { font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.brief-readiness-note { display: flex; align-items: flex-start; gap: 9px; margin-top: 15px; padding: 11px 12px; border: 1px solid color-mix(in oklch, var(--warn) 35%, var(--line)); border-radius: var(--radius-sm); background: var(--warn-soft); color: color-mix(in oklch, var(--warn) 78%, var(--ink)); font-size: 12.5px; line-height: 1.4; }
.brief-readiness-note.ready { border-color: color-mix(in oklch, var(--ok) 34%, var(--line)); background: var(--ok-soft); color: var(--ok); }
.brief-readiness-note svg { flex: none; margin-top: 1px; }
.brief-readiness-note strong { display: block; font-size: 13px; margin-bottom: 2px; }
.brief-readiness-note span { display: block; }
.readiness-grid { display: grid; gap: 18px; margin-top: 22px; }
.readiness-field { display: grid; gap: 8px; }
.readiness-field > label { font-size: 13.5px; font-weight: 650; }
.readiness-field .seg { flex-wrap: wrap; width: 100%; }
.readiness-field .seg button { flex: 1 1 130px; min-height: 38px; }
.doc-ready-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.doc-ready { display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-soft); font-size: 13.5px; font-weight: 650; text-align: left; transition: border-color .14s, background .14s, color .14s; }
.doc-ready:hover { border-color: var(--muted); color: var(--ink); }
.doc-ready.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.doc-ready .box { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--line-2); display: grid; place-items: center; flex: none; color: transparent; }
.doc-ready.on .box { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.evidence-upload { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--accent-line); border-radius: var(--radius); background: var(--accent-soft); }
.evidence-upload-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.evidence-upload-head strong { display: block; font-size: 14.5px; }
.evidence-upload-head p { margin: 4px 0 0; color: var(--ink-soft); font-size: 12.5px; line-height: 1.45; }
.evidence-picker { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 14px; border-radius: 9px; background: var(--accent); color: var(--on-accent); font-size: 13px; font-weight: 750; cursor: pointer; white-space: nowrap; }
.evidence-picker input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.evidence-list { display: grid; gap: 8px; }
.evidence-file { display: grid; grid-template-columns: minmax(0,1fr) minmax(180px,.8fr) auto; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.evidence-file-name { min-width: 0; }
.evidence-file-name strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; }
.evidence-file-name span { color: var(--muted); font-size: 11.5px; }
.evidence-file select { width: 100%; min-height: 38px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); color: var(--ink); padding: 0 9px; font: inherit; font-size: 12.5px; }
.evidence-remove { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); color: var(--muted); font-weight: 800; }
.evidence-error { color: var(--bad); font-size: 12.5px; font-weight: 650; }
.evidence-private { display: flex; align-items: flex-start; gap: 7px; color: var(--ink-soft); font-size: 12px; line-height: 1.4; }
.evidence-private svg { flex: none; margin-top: 1px; color: var(--accent); }
.consent-line { display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; padding: 13px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-soft); font-size: 13.5px; line-height: 1.45; }
.consent-line input { margin-top: 3px; accent-color: var(--accent); flex: none; }
.review-panel { display: grid; gap: 16px; margin-top: 22px; }
.review-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 16px; }
.review-card h3 { font-size: 15.5px; margin-bottom: 12px; }
.review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.review-item { padding: 11px 12px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line); min-width: 0; }
.review-k { font-family: var(--mono); font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.review-v { color: var(--ink); font-size: 14px; font-weight: 650; line-height: 1.35; overflow-wrap: anywhere; }
.review-empty { color: var(--muted); font-weight: 550; }
.next-steps { display: grid; gap: 10px; margin-top: 22px; }
.next-step { display: flex; gap: 11px; align-items: flex-start; padding: 13px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-soft); font-size: 13.5px; line-height: 1.45; }
.next-step b { color: var(--ink); }
.next-step svg { color: var(--accent); flex: none; margin-top: 2px; }

/* location autocomplete */
.loc { position: relative; max-width: 100%; min-width: 0; }
.loc-input { display: flex; align-items: center; gap: 9px; height: 48px; padding: 0 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--surface); transition: border-color .15s, box-shadow .15s; color: var(--muted); }
.loc-input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.loc-input input { flex: 1; min-width: 0; border: none; outline: none; background: none; font-size: 15px; color: var(--ink); }
.loc-input input::placeholder { color: var(--faint); }
.loc-clear { color: var(--muted); display: grid; place-items: center; padding: 4px; border-radius: 7px; }
.loc-clear:hover { color: var(--ink); background: var(--surface-2); }
.loc-pop { position: absolute; top: calc(100% + 6px); left: 0; right: auto; width: min(430px, calc(100vw - 32px)); max-width: 100%; max-height: min(420px, calc(100vh - 150px)); box-sizing: border-box; z-index: 30; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 6px; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; }
.loc-group { padding: 8px 10px 4px; font-size: 10.5px; font-family: var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.loc-opt { display: grid; grid-template-columns: 18px minmax(0, 1fr); align-items: start; gap: 10px; width: 100%; min-width: 0; text-align: left; padding: 10px 11px; border-radius: var(--radius-sm); font-size: 14.5px; color: var(--ink-soft); transition: background .1s; }
.loc-opt svg { color: var(--muted); flex: none; }
.loc-opt.on { background: var(--accent-soft); color: var(--ink); }
.loc-opt.on svg { color: var(--accent); }
.loc-opt b { color: var(--accent); font-weight: 700; }
.loc-main { display: block; min-width: 0; padding-top: 1px; }
.loc-title { display: block; font-weight: 650; color: var(--ink); line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.loc-detail { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.3; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.loc-kbd { display: none; }
.loc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.loc-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 6px 10px; border-radius: 99px; border: 1px solid var(--line); background: color-mix(in oklch, var(--surface) 82%, var(--surface-2)); color: var(--ink-soft); font-size: 12.5px; font-weight: 650; }
.loc-chip:hover, .loc-chip.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.loc-selected { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 9px; color: var(--muted); font-size: 12.5px; }
.loc-selected span { display: inline-flex; align-items: center; gap: 6px; min-width: 0; padding: 5px 9px; border-radius: 99px; background: var(--surface-2); color: var(--ink-soft); font-weight: 650; }
.loc-selected .loc-precision { background: var(--accent-soft); color: var(--accent); }
.loc-selected .loc-precision b { color: inherit; }
.loc-empty { padding: 13px 11px; color: var(--muted); font-size: 13.5px; }
.loc-powered { padding: 8px 10px 6px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; font-weight: 650; text-align: right; }
.loc-status { min-height: 18px; margin-top: 7px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.loc-status strong { color: var(--accent); }
.loc-spinner { width: 14px; height: 14px; border: 2px solid var(--line-2); border-top-color: var(--accent); border-radius: 50%; animation: locSpin .65s linear infinite; }
@keyframes locSpin { to { transform: rotate(360deg); } }

/* ============================================================
   OPS / STAFF CONSOLE
   ============================================================ */
.ops-badge { margin: 2px 8px 10px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }
.ops-list { display: flex; flex-direction: column; gap: 12px; }
.ops-card { display: grid; grid-template-columns: auto 1fr auto auto; gap: 16px; align-items: center; padding: 18px 20px; }
.ops-card.rejected { opacity: .62; }
.ops-main { min-width: 0; }
.ops-nm { font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: -0.02em; }
.ops-meta { font-size: 13px; color: var(--muted); margin-top: 2px; }
.ops-note { font-size: 13px; color: var(--ink-soft); margin-top: 6px; }
.ops-actions { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.ops-thead { display: grid; grid-template-columns: 1.7fr 1fr 1fr .8fr; gap: 14px; padding: 13px 4px; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
.ops-crow { display: grid; grid-template-columns: 1.7fr 1fr 1fr .8fr; gap: 14px; align-items: center; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.ops-crow:last-child { border-bottom: none; }
.ops-cclient { display: flex; align-items: center; gap: 11px; min-width: 0; }
.ops-cn { font-weight: 650; font-size: 14.5px; }
.ops-cv { font-size: 14px; font-weight: 550; }

/* ============================================================
   BIOMETRIC IDV (phone)
   ============================================================ */
.bio-sheet { width: 420px; max-width: 100%; max-height: 94vh; overflow: hidden; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); animation: dvIn .24s cubic-bezier(.2,.7,.3,1) both; }
.bio-body { padding: 22px; display: grid; place-items: center; }
.phone { width: 250px; background: oklch(0.18 0.012 265); border-radius: 30px; padding: 12px; box-shadow: var(--shadow-lg), inset 0 0 0 2px var(--line-2); position: relative; }
[data-mode="dark"] .phone { background: oklch(0.12 0.012 265); }
.phone-notch { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 70px; height: 16px; background: oklch(0.12 0.012 265); border-radius: 0 0 12px 12px; z-index: 2; }
.phone-screen { background: var(--surface); border-radius: 20px; min-height: 380px; padding: 26px 18px 18px; display: grid; }
.bio-stage { text-align: center; align-self: center; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.bio-stage h3 { font-size: 19px; }
.bio-stage p { font-size: 13px; color: var(--ink-soft); line-height: 1.45; min-height: 2.6em; }
.bio-glyph { width: 60px; height: 60px; border-radius: 16px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 2px; }
.bio-step-lbl { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.bio-busy { display: flex; align-items: center; justify-content: center; gap: 9px; font-size: 13px; font-weight: 600; color: var(--accent); }

/* passport */
.passport { width: 170px; height: 112px; border-radius: 10px; background: linear-gradient(135deg, oklch(0.42 0.08 268), oklch(0.32 0.07 275)); position: relative; overflow: hidden; padding: 12px; box-shadow: var(--shadow); }
.pp-photo { width: 38px; height: 46px; border-radius: 4px; background: repeating-linear-gradient(135deg, oklch(0.7 0.03 268) 0 5px, oklch(0.62 0.03 268) 5px 10px); }
.pp-lines { position: absolute; left: 60px; top: 14px; display: flex; flex-direction: column; gap: 6px; }
.pp-lines span { display: block; height: 5px; border-radius: 2px; background: oklch(0.72 0.03 268); }
.pp-lines span:nth-child(1) { width: 84px; } .pp-lines span:nth-child(2) { width: 64px; } .pp-lines span:nth-child(3) { width: 74px; }
.pp-mrz { position: absolute; left: 12px; right: 12px; bottom: 10px; font-family: var(--mono); font-size: 8px; letter-spacing: .5px; color: oklch(0.82 0.02 268); white-space: nowrap; overflow: hidden; }
.nfc { position: absolute; top: 10px; right: 10px; color: oklch(0.85 0.04 268); }
.scanline { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--accent-2, var(--accent)); box-shadow: 0 0 12px 3px var(--accent); animation: scanmove 2.2s ease-in-out; }
@keyframes scanmove { 0% { top: 4%; } 100% { top: 94%; } }

/* liveness */
.liveness { position: relative; width: 150px; height: 150px; display: grid; place-items: center; }
.face-outline { width: 96px; height: 96px; border-radius: 50%; background: var(--surface-2); color: var(--faint); display: grid; place-items: center; }
.live-ring { position: absolute; inset: 0; }
.liveness.go .face-outline { color: var(--accent); }

.bio-result { width: 100%; display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; background: var(--surface-2); border-radius: var(--radius-sm); }
.bio-rr { display: flex; justify-content: space-between; font-size: 12.5px; }
.bio-rr span { color: var(--muted); } .bio-rr b { font-weight: 650; }

@media (max-width: 800px) {
  .ops-card { grid-template-columns: auto 1fr; }
  .ops-vet, .ops-actions { grid-column: 2; justify-self: start; }
  .ops-thead { display: none; }
  .ops-crow { grid-template-columns: 1fr 1fr; }
}
.apply-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); }
.apply-foot.is-sticky {
  position: sticky; bottom: 12px; z-index: 5;
  margin: 28px -18px -18px; padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  background: color-mix(in oklch, var(--surface) 94%, transparent);
  backdrop-filter: saturate(1.15) blur(12px);
  box-shadow: 0 -18px 28px color-mix(in oklch, var(--surface) 70%, transparent), var(--shadow-sm);
}
.apply-foot .btn:only-child { margin-left: auto; }
.apply-note { font-size: 13.5px; color: var(--muted); }
.apply-foot-copy { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.continue-hint {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 650; color: var(--accent);
}
.continue-hint svg { flex: none; }
.apply-recap { display: flex; align-items: center; gap: 13px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); margin: 24px 0; text-align: left; }

@media (max-width: 560px) {
  .apply-roles, .apply-row, .doc-ready-grid { grid-template-columns: 1fr; }
  .apply-wide { grid-column: auto; }
  .apply-wide > .seg { grid-template-columns: 1fr 1fr; width: 100%; }
  .apply-top { gap: 12px; padding: 0 14px; }
  .apply-top .wordmark .name { font-size: 18px; }
  .apply-steps { gap: 4px; }
  .apply-stepmark { gap: 0; }
  .apply-stepmark .as { width: 20px; }
  .apply-stepmark.on .as { width: 30px; }
  .apply-step-label { display: none; }
  .apply-main { padding: 32px 12px 80px; }
  .apply-card { width: calc(100vw - 24px); max-width: calc(100vw - 24px); padding: 24px; }
  .review-grid { grid-template-columns: 1fr; }
  .evidence-upload-head { display: grid; }
  .evidence-picker { width: 100%; }
  .evidence-file { grid-template-columns: minmax(0,1fr) auto; }
  .evidence-file select { grid-column: 1 / -1; grid-row: 2; }
  .cv-drop, .photo-pick { grid-template-columns: 44px minmax(0, 1fr); }
  .cv-drop > .btn, .photo-pick > .btn { grid-column: 1 / -1; justify-self: stretch; width: 100%; margin-left: 0 !important; }
  .apply-foot.is-sticky { position: static; flex-direction: column; align-items: stretch; margin: 26px -10px -10px; padding: 13px 14px; box-shadow: none; }
  .apply-foot.is-sticky .btn { width: 100%; }
}

/* ============================================================
   NOTIFICATIONS popover
   ============================================================ */
.bell-wrap { position: relative; }
.notif-pop {
  position: absolute; top: 50px; right: 0; width: 348px; max-width: 90vw;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); z-index: 80; overflow: hidden;
  animation: dvIn .18s cubic-bezier(.2,.7,.3,1) both;
}
.notif-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.notif-head strong { font-family: var(--display); font-size: 15px; letter-spacing: -0.01em; }
.notif-list { max-height: 380px; overflow-y: auto; }
.notif-item { display: flex; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.notif-item:last-child { border-bottom: none; }
.notif-item.unread { background: var(--accent-soft); }
[data-mode="dark"] .notif-item.unread { background: color-mix(in oklch, var(--accent) 13%, var(--surface)); }
.notif-ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex: none; background: var(--surface-2); color: var(--ink-soft); }
.notif-ic.ok { background: var(--ok-soft); color: var(--ok); }
.notif-ic.warn { background: var(--warn-soft); color: color-mix(in oklch, var(--warn) 78%, black); }
.notif-ic.prog { background: var(--accent-soft); color: var(--accent); }
[data-mode="dark"] .notif-ic.warn { color: var(--warn); }
.notif-main { flex: 1; min-width: 0; }
.notif-t { font-size: 13.5px; line-height: 1.42; }
.notif-time { font-size: 11.5px; color: var(--muted); margin-top: 3px; }

/* ============================================================
   INTRO CALL modal
   ============================================================ */
.intro-sheet {
  width: 520px; max-width: 100%; max-height: 92vh; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); animation: dvIn .24s cubic-bezier(.2,.7,.3,1) both;
}
.intro-top { display: flex; align-items: center; gap: 11px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.intro-top strong { font-family: var(--display); font-size: 16px; letter-spacing: -0.01em; }
.intro-body { padding: 22px; }
.intro-when { display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: var(--radius); background: var(--accent-soft); border: 1px solid var(--accent-line); margin-bottom: 20px; }
.intro-cal { width: 56px; height: 56px; border-radius: 12px; background: var(--surface); display: grid; place-items: center; flex: none; box-shadow: var(--shadow-sm); }
.intro-cal .m { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.intro-cal .d { font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1; }
.intro-when .w-role { font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: -0.02em; }
.intro-when .w-time { font-size: 13.5px; color: var(--ink-soft); margin-top: 3px; }
.intro-fam { display: flex; align-items: center; gap: 13px; padding: 14px 0; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.intro-sec { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.agenda { display: flex; flex-direction: column; gap: 11px; margin-bottom: 18px; }
.agenda-item { display: flex; align-items: center; gap: 11px; font-size: 14.5px; }
.agenda-item .ab { width: 22px; height: 22px; border-radius: 6px; background: var(--surface-2); color: var(--accent); display: grid; place-items: center; flex: none; }
.intro-foot { display: flex; gap: 10px; padding: 16px 22px; border-top: 1px solid var(--line); }

/* ============================================================
   ONBOARDING / contract
   ============================================================ */
.ob-sheet { width: 560px; }
.ob-parties { display: flex; align-items: center; gap: 12px; padding: 14px; background: var(--surface-2); border-radius: var(--radius); margin-bottom: 20px; }
.ob-party { display: flex; align-items: center; gap: 11px; flex: 1; min-width: 0; }
.ob-pn { font-weight: 650; font-size: 14.5px; white-space: nowrap; }
.ob-link { width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.ob-terms { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.ob-term { display: flex; flex-direction: column; gap: 3px; }
.ob-k { font-size: 11px; font-family: var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.ob-v { font-weight: 650; font-size: 14.5px; }
.ob-handled { display: flex; flex-direction: column; gap: 10px; }
.ob-h { display: flex; align-items: center; gap: 11px; font-size: 14px; }
.ob-h-ic { width: 28px; height: 28px; border-radius: 7px; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; flex: none; }

.sign-pad { position: relative; height: 100px; border: 1px dashed var(--line-2); border-radius: var(--radius); background: var(--surface-2); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; overflow: hidden; }
.sign-ink { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-size: 40px; color: var(--accent); letter-spacing: .01em; padding: 0 24px; }
.sign-ink.empty { color: var(--faint); font-size: 22px; font-style: normal; font-family: var(--body); }
.sign-line { position: absolute; left: 24px; right: 24px; bottom: 26px; border-bottom: 1.5px solid var(--line-2); }
.ob-field-l { display: block; font-size: 13px; font-weight: 650; margin-bottom: 8px; }
.ob-check { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-size: 13.5px; color: var(--ink-soft); cursor: pointer; user-select: none; }
.ob-box { width: 20px; height: 20px; border-radius: 5px; border: 1.6px solid var(--line-2); display: grid; place-items: center; flex: none; color: transparent; transition: all .14s; }
.ob-check.on .ob-box { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.ob-receipt { margin: 22px auto 0; text-align: left; display: flex; flex-direction: column; gap: 10px; padding: 16px 20px; background: var(--surface-2); border-radius: var(--radius); max-width: 320px; }
.ob-r-row { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 550; white-space: nowrap; }
.ob-r-row svg { color: var(--ok); flex: none; }

/* ============================================================
   ACTIVITY FEED (dashboard overview)
   ============================================================ */
.act-card { padding: 8px 20px; }
.act-row { display: flex; align-items: center; gap: 13px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.act-row:last-child { border-bottom: none; }
.act-ic { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; flex: none; background: var(--surface-2); color: var(--ink-soft); }
.act-ic.ok { background: var(--ok-soft); color: var(--ok); }
.act-ic.prog { background: var(--accent-soft); color: var(--accent); }
.act-ic.warn { background: var(--warn-soft); color: color-mix(in oklch, var(--warn) 78%, black); }
[data-mode="dark"] .act-ic.warn { color: var(--warn); }
.act-main { flex: 1; min-width: 0; }
.act-t { font-size: 14px; line-height: 1.4; }
.act-t strong { font-weight: 650; }
.act-time { font-size: 12px; color: var(--muted); white-space: nowrap; }





/* Refined Staff launch accessibility/nav */
.skip-link{position:absolute;left:12px;top:8px;z-index:200;transform:translateY(-140%);display:inline-flex;align-items:center;min-height:44px;background:var(--ink);color:var(--bg);padding:0 13px;border-radius:8px;font-weight:700;font-size:14px;box-shadow:var(--shadow)}
.skip-link:focus{transform:none;outline:2px solid var(--accent);outline-offset:2px}
.mobile-menu{display:none;margin-left:auto;position:relative;flex:none}
.mobile-menu summary{list-style:none;width:44px;height:44px;border:1px solid var(--line-2);border-radius:9px;background:var(--surface);display:grid;place-items:center;cursor:pointer;color:var(--ink);box-shadow:var(--shadow-sm)}
.mobile-menu summary::-webkit-details-marker{display:none}
.mobile-menu summary span{display:block;width:18px;height:2px;background:currentColor;border-radius:99px;margin:2px 0}
.mobile-menu[open] summary{background:var(--accent-soft);border-color:var(--accent-line);color:var(--accent)}
.mobile-menu:not([open]) .mobile-menu-panel{display:none}
.mobile-menu-panel{position:absolute;right:0;top:calc(100% + 10px);width:min(72vw,260px);max-width:calc(100vw - 32px);padding:8px;background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);z-index:120}
.mobile-menu-panel a{display:flex;align-items:center;min-height:44px;padding:0 12px;border-radius:8px;font-size:14px;font-weight:650;color:var(--ink-soft)}
.mobile-menu-panel a:hover,.mobile-menu-panel a.on{background:var(--accent-soft);color:var(--accent)}
.acard .rt{display:inline-flex;color:var(--accent);font-weight:650}
@media(max-width:960px){.nav-links{display:none!important}.mobile-menu{display:block}.nav-in{gap:12px}.nav-cta .signin,.nav-cta .si{display:none}}
@media(max-width:520px){.nav-cta .btn-sm{height:40px;padding:0 12px;font-size:13px}.brand b{font-size:20px}.wrap{padding-left:20px;padding-right:20px}}
@media (max-width:560px){
  .topbar{min-width:0}
  .topbar .wordmark .name{display:none}
  .topbar .auth-badge{display:none}
  .topbar .btn-sm{min-height:44px;height:44px}
  .topbar .btn-quiet.btn-sm{width:44px;padding:0;gap:0;font-size:0;flex:none}
  .topbar .btn-quiet.btn-sm svg{width:16px;height:16px}
  .back-link{min-height:44px;align-items:center;margin-bottom:12px}
  .cand-card{grid-template-columns:auto minmax(0,1fr);gap:14px;padding:16px;align-items:start}
  .cand-info{min-width:0}
  .cand-info .nm{min-width:0;flex-wrap:wrap;line-height:1.1}
  .cand-info .meta{overflow-wrap:anywhere}
  .cand-right{grid-column:1/-1;flex-direction:row;align-items:center;justify-content:space-between;text-align:left;gap:10px;width:100%;min-width:0}
  .cand-right .btn{min-height:44px;height:44px;margin-left:auto}
  .match-pill b{font-size:24px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.01ms!important}.cursor{animation:none!important}}
/* /Refined Staff launch accessibility/nav */


/* Iteration 1 design polish: prevent salary range wrap & unify badge semantics */
.role-card .rm { gap: 12px; align-items: baseline; }
.role-card .rm .band, .salary-row .band { white-space: nowrap; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.role-status { display: inline-flex; align-items: center; font-weight: 650; border-radius: 99px; background: var(--ok-soft, #e8f5ee); color: var(--ok, #2d6a4f); border: 1px solid color-mix(in srgb, var(--ok, #2d6a4f) 24%, transparent); }
.role-status.qualified { background: var(--accent-soft, #eeecfc); color: var(--accent, #4c42ce); border-color: color-mix(in srgb, var(--accent, #4c42ce) 24%, transparent); }
.role-status.consultant { background: #fdf3e3; color: #8a5612; border-color: #ecd2a6; }

/* Iteration 3 polish: crisp single-line role card footer + mobile stepper & Sign in typography */
.role-card .rm { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.role-card .rm .role-avail-note { white-space: nowrap; font-size: 12.5px; }
@media (max-width: 440px) {
  .role-card .rm .role-avail-note { font-size: 12px; }
}

.role-card .rm .pool { white-space: nowrap; font-size: 12.5px; text-align: right; }
@media (max-width: 440px) { .role-card .rm .pool { font-size: 11.5px; } }

/* Harmonize hiring-flow with quiet-luxury editorial palette */
:root {
  --bg: #fbf9f5;
  --surface: #ffffff;
  --surface-2: #f4f1ea;
  --accent: #4036bd;
  --accent-press: #31289c;
  --accent-soft: #efedfc;
  --line: #e7e2d9;
  --line-2: #d6cfc3;
}
.role-card {
  border-radius: 16px !important;
  border-color: var(--line) !important;
  box-shadow: 0 2px 8px rgba(29, 26, 36, 0.03);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease !important;
}
.role-card:hover {
  transform: translateY(-2px);
  border-color: #d4cef2 !important;
  box-shadow: 0 14px 32px rgba(29, 26, 36, 0.08) !important;
}
.role-card .role-status.qualified {
  background: #efedfc !important;
  color: #4036bd !important;
  border-color: #d4cef2 !important;
}
.role-card .role-status.consultant {
  background: #fbf3e4 !important;
  color: #82500f !important;
  border-color: #ebd3aa !important;
}

/* Prevent 4-column role grid from ever overflowing 1140px container */
.role-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
@media (max-width: 1020px) { .role-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 600px) { .role-grid { grid-template-columns: 1fr !important; } }
.role-card { min-width: 0; }
.role-card .rm { min-width: 0; gap: 8px; }
.role-card .rm .pool { font-size: 11.5px; letter-spacing: -0.01em; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Audit P1 polish: H1 parity, collapsible breakdown & static meta */
.shead h1 {
  font-family: var(--display);
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.028em;
  font-weight: 700;
  color: var(--ink);
  margin: 10px 0 0;
}
.matches-meta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.cand-breakdown {
  margin-top: 10px;
}
.cand-breakdown summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.cand-breakdown summary::-webkit-details-marker { display: none; }
.cand-breakdown summary::after {
  content: "+";
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
}
.cand-breakdown[open] summary::after {
  content: "−";
}
.cand-breakdown[open] summary {
  color: var(--accent);
  margin-bottom: 8px;
}

/* Audit round 2 polish */
.phead h1.nm {
  font-family: var(--display);
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}
.fit-detail strong {
  margin-right: 6px;
}
.candidate-primary-action {
  margin: 20px 0 24px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--accent-line, var(--line));
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.lp-chip-count {
  display: none !important;
}
.phone-split select,
.phone-row select,
select.txt-input {
  height: 46px;
  min-height: 46px;
  padding-top: 0;
  padding-bottom: 0;
  line-height: 44px;
  vertical-align: middle;
}
.apply-wrap,
.cand-apply {
  padding-bottom: 96px;
}

/* Audit round 3: Step 4 390px overflow fix, static apply-foot, centered tel-code select, trust-item spacing */
.cand-detail {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
}
.cand-detail > *,
.profile,
.profile * {
  min-width: 0;
  max-width: 100%;
}
.profile .bio {
  overflow-wrap: break-word;
  word-wrap: break-word;
}
.trust-item strong,
.trust-item span,
.trust-item em.trust-fix {
  display: block;
}
.apply-foot.is-sticky {
  position: static;
  margin: 28px 0 0;
  box-shadow: var(--shadow-sm);
}
.tel-code {
  -webkit-appearance: none;
  appearance: none;
  line-height: 46px;
  padding: 0 28px 0 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b665e' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}
@media (max-width: 1000px) {
  .cand-detail {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 640px) {
  .profile .phead {
    flex-wrap: wrap;
    gap: 14px;
  }
  .prof-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .evidence-row {
    flex-wrap: wrap;
    gap: 4px;
  }
  .candidate-primary-action-row {
    flex-direction: column;
    align-items: stretch;
  }
  .candidate-primary-action-row .btn {
    width: 100%;
    justify-content: center;
  }
}
