/* Prept for Recruiters.
   Calm surfaces, one accent, status said in plain words with a coloured dot.
   Serif only for page titles; monospace only for numbers and timestamps. */
:root {
  --bg: #F4F5F3; --panel: #FFFFFF; --panel-2: #F8F9F8; --sunken: #EEF0EE; --hover: #F1F4F3;
  --line: #E1E5E3; --line-strong: #CDD3D0;
  --ink: #141917; --ink-2: #47524D; --ink-3: #6B7671;
  --accent: #0B5D52; --accent-hover: #094D44; --accent-ink: #FFFFFF; --accent-soft: #E6F1EF; --accent-line: #B9D7D1;
  --ok: #2F6B2A; --ok-soft: #E9F3E6; --ok-dot: #3E9A36;
  --warn: #8A5A00; --warn-soft: #FBF1DD; --warn-dot: #D69A1F;
  --crit: #A63A2B; --crit-soft: #FBEBE8; --crit-dot: #D9533F;
  --info-dot: #8A9692;
  --shadow-sm: 0 1px 2px rgba(20,25,23,.05);
  --shadow: 0 1px 2px rgba(20,25,23,.04), 0 4px 16px rgba(20,25,23,.06);
  --shadow-lg: 0 12px 40px rgba(20,25,23,.16);
  --r: 12px; --r-sm: 8px;
  --font-display: "Fraunces", Georgia, serif;
  --font-sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0E1211; --panel: #161B1A; --panel-2: #1A201E; --sunken: #121716; --hover: #1D2422;
  --line: #262E2C; --line-strong: #34403D;
  --ink: #E8EEEB; --ink-2: #B3BEB9; --ink-3: #8C9994;
  --accent: #5FBFAC; --accent-hover: #74CDBB; --accent-ink: #0E1211; --accent-soft: rgba(95,191,172,.12); --accent-line: rgba(95,191,172,.35);
  --ok: #96C988; --ok-soft: rgba(150,201,136,.12); --ok-dot: #7FC06D;
  --warn: #E2B566; --warn-soft: rgba(226,181,102,.12); --warn-dot: #E2B566;
  --crit: #EC8E80; --crit-soft: rgba(236,142,128,.12); --crit-dot: #EC8E80;
  --info-dot: #6E7B76;
  --shadow-sm: none; --shadow: 0 1px 0 rgba(255,255,255,.02); --shadow-lg: 0 16px 48px rgba(0,0,0,.5);
  color-scheme: dark;
} }
/* Chosen with the toggle, either way round the system setting. */
:root[data-theme="dark"] {
  --bg: #0E1211; --panel: #161B1A; --panel-2: #1A201E; --sunken: #121716; --hover: #1D2422;
  --line: #262E2C; --line-strong: #34403D;
  --ink: #E8EEEB; --ink-2: #B3BEB9; --ink-3: #8C9994;
  --accent: #5FBFAC; --accent-hover: #74CDBB; --accent-ink: #0E1211; --accent-soft: rgba(95,191,172,.12); --accent-line: rgba(95,191,172,.35);
  --ok: #96C988; --ok-soft: rgba(150,201,136,.12); --ok-dot: #7FC06D;
  --warn: #E2B566; --warn-soft: rgba(226,181,102,.12); --warn-dot: #E2B566;
  --crit: #EC8E80; --crit-soft: rgba(236,142,128,.12); --crit-dot: #EC8E80;
  --info-dot: #6E7B76;
  --shadow-sm: none; --shadow: 0 1px 0 rgba(255,255,255,.02); --shadow-lg: 0 16px 48px rgba(0,0,0,.5);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 400 14px/1.5 var(--font-sans); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font: 500 1.75rem/1.2 var(--font-display); }
h2 { font: 600 1rem/1.3 var(--font-sans); }
h3 { font: 600 .95rem/1.3 var(--font-sans); }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
input, select, textarea { background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: 8px 10px; min-width: 0; transition: border-color .15s, box-shadow .15s; }
input:hover, select:hover, textarea:hover { border-color: var(--ink-3); }
textarea { width: 100%; min-height: 96px; resize: vertical; line-height: 1.5; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); width: 16px; height: 16px; padding: 0; }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line-strong); background: var(--panel); color: var(--ink); border-radius: var(--r-sm); padding: 8px 14px; cursor: pointer; font-weight: 500; white-space: nowrap; text-decoration: none !important; transition: background .15s, border-color .15s, color .15s; box-shadow: var(--shadow-sm); }
.btn:hover { background: var(--hover); border-color: var(--ink-3); }
.btn.p { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.p:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.sm { padding: 5px 10px; font-size: 13px; }
.btn.lg { padding: 11px 18px; font-size: 15px; }
.btn.ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--ink-2); }
.btn.ghost:hover { background: var(--hover); color: var(--ink); }
.btn.danger { color: var(--crit); }
.btn.icon { padding: 5px 7px; min-width: 30px; }
.btn:disabled { opacity: .55; cursor: progress; }
.btn .spin { width: 13px; height: 13px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------------ text */
.eb { font: 600 11px/1.3 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.mono { font-family: var(--font-mono); }
.num { font-variant-numeric: tabular-nums; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack.tight { gap: 6px; }
.spread { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1 1 auto; min-width: 0; }
.err { color: var(--crit); }
.hidden { display: none !important; }

/* ----------------------------------------------------------------- pills */
.pill, .chip { display: inline-flex; align-items: center; gap: 6px; font: 500 12px/1.2 var(--font-sans); padding: 4px 9px; border-radius: 999px; background: var(--sunken); color: var(--ink-2); white-space: nowrap; }
.pill::before, .chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--info-dot); flex: none; }
.pill.ok, .chip.ok { background: var(--ok-soft); color: var(--ok); } .pill.ok::before, .chip.ok::before { background: var(--ok-dot); }
.pill.warn, .chip.warn { background: var(--warn-soft); color: var(--warn); } .pill.warn::before, .chip.warn::before { background: var(--warn-dot); }
.pill.crit, .chip.crit { background: var(--crit-soft); color: var(--crit); } .pill.crit::before, .chip.crit::before { background: var(--crit-dot); }
.pill.acc, .chip.acc { background: var(--accent-soft); color: var(--accent); } .pill.acc::before, .chip.acc::before { background: var(--accent); }
.pill.plain::before, .chip.plain::before { display: none; }
.tag { display: inline-flex; align-items: center; font: 500 11px/1.2 var(--font-sans); padding: 2px 7px; border-radius: 6px; border: 1px solid var(--line-strong); color: var(--ink-2); white-space: nowrap; }
.tag.crit { border-color: var(--crit-dot); color: var(--crit); }
.tag.warn { border-color: var(--warn-dot); color: var(--warn); }
.tag.acc { border-color: var(--accent-line); color: var(--accent); }
.src { font: 400 12px/1.4 var(--font-sans); color: var(--ink-3); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; background: var(--info-dot); }
.dot.ok { background: var(--ok-dot); } .dot.warn { background: var(--warn-dot); } .dot.crit { background: var(--crit-dot); } .dot.acc { background: var(--accent); }

/* ----------------------------------------------------------------- shell */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 24px; height: 56px; padding: 0 max(20px, env(safe-area-inset-left, 0px)); background: color-mix(in srgb, var(--panel) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.logo { display: flex; align-items: center; gap: 10px; font: 600 18px/1 var(--font-display); color: var(--ink); text-decoration: none !important; }
.logo .mark { width: 26px; height: 26px; border-radius: 7px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font: 600 14px/1 var(--font-display); }
.logo small { font: 500 12px/1 var(--font-sans); color: var(--ink-3); padding-left: 10px; border-left: 1px solid var(--line); }
.nav { display: flex; gap: 2px; }
.nav a { color: var(--ink-2); padding: 7px 12px; border-radius: 8px; font-weight: 500; text-decoration: none !important; }
.nav a:hover { background: var(--hover); color: var(--ink); }
.nav a.on { color: var(--ink); background: var(--sunken); }
.me { margin-left: auto; position: relative; }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font: 600 12px/1 var(--font-sans); background: var(--accent-soft); color: var(--accent); flex: none; border: 0; cursor: pointer; }
.avatar.lg { width: 44px; height: 44px; font-size: 15px; }
.avatar.sm { width: 26px; height: 26px; font-size: 10.5px; }
.menu { position: absolute; right: 0; top: 42px; min-width: 220px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 6px; z-index: 30; }
.menu .who { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.menu button, .menu a { display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: 6px; background: none; border: 0; cursor: pointer; color: var(--ink); }
.menu button:hover, .menu a:hover { background: var(--hover); text-decoration: none; }
main { max-width: 1280px; margin: 0 auto; padding: 28px max(20px, env(safe-area-inset-right, 0px)) 80px max(20px, env(safe-area-inset-left, 0px)); display: flex; flex-direction: column; gap: 20px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.page-head .sub { color: var(--ink-3); margin-top: 6px; }
.back { font-size: 13px; color: var(--ink-3); display: inline-flex; gap: 4px; align-items: center; }
.back:hover { color: var(--ink); }

/* ----------------------------------------------------------------- cards */
.panel, .card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: flex; flex-direction: column; gap: 14px; min-width: 0; box-shadow: var(--shadow); }
.panel > header, .card > header { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; }
.panel.flat { box-shadow: none; background: var(--panel-2); }
.empty { padding: 40px 24px; text-align: center; color: var(--ink-3); border: 1px dashed var(--line-strong); border-radius: var(--r); display: flex; flex-direction: column; gap: 12px; align-items: center; }
.empty h2 { color: var(--ink); }
.note { padding: 12px 14px; border-radius: var(--r-sm); background: var(--warn-soft); color: var(--ink); }
.okbox { padding: 12px 14px; border-radius: var(--r-sm); background: var(--ok-soft); color: var(--ink); }
.infobox { padding: 12px 14px; border-radius: var(--r-sm); background: var(--accent-soft); color: var(--ink); }
.quote { border-left: 2px solid var(--accent-line); padding-left: 10px; color: var(--ink-2); font-style: italic; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(24px + env(safe-area-inset-bottom, 0px)); background: var(--ink); color: var(--bg); padding: 11px 16px; border-radius: 10px; z-index: 50; max-width: min(520px, calc(100vw - 32px)); box-shadow: var(--shadow-lg); animation: rise .2s ease-out; }
.toast.bad { background: var(--crit); color: #fff; }
@keyframes rise { from { opacity: 0; transform: translate(-50%, 8px); } }

/* --------------------------------------------------------------- tables */
.tbl { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font: 500 12px/1.3 var(--font-sans); color: var(--ink-3); }
tr:last-child td { border-bottom: 0; }
tr.click { cursor: pointer; } tr.click:hover td { background: var(--hover); }
td.num, .score { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.score { font-weight: 600; font-size: 15px; }

/* -------------------------------------------------------------- dialogs */
dialog { border: 0; border-radius: 16px; padding: 0; width: min(560px, calc(100vw - 32px)); background: var(--panel); color: var(--ink); box-shadow: var(--shadow-lg); }
dialog::backdrop { background: rgba(10,14,13,.45); backdrop-filter: blur(2px); }
dialog .dlg { padding: 24px 24px 0; display: flex; flex-direction: column; gap: 14px; max-height: calc(100vh - 48px); overflow: auto; }
/* The actions stay in view however long the dialog is. */
dialog .dlg > .row:last-child { position: sticky; bottom: 0; background: var(--panel); padding: 14px 0 20px; margin-top: 4px; border-top: 1px solid var(--line); }
dialog .dlg h2 { font: 500 1.3rem/1.2 var(--font-display); }
dialog .toast { position: fixed; }
dialog.wide { width: min(720px, calc(100vw - 32px)); }
.pick-list { max-height: 240px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; padding: 4px 10px; }
.pick { display: flex; gap: 10px; align-items: center; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13.5px; cursor: pointer; }
.pick:first-child { border-top: 0; }
.stack.tight > .pick { border-top: 1px solid var(--line); }
.answer { padding: 8px 12px; border-radius: 8px; background: var(--panel-2); border: 1px solid var(--line); }
.answer.bad { background: var(--crit-soft); border-color: var(--crit-dot); }
.import-row { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
label.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink-2); font-weight: 500; }
label.field > input, label.field > textarea, label.field > select { color: var(--ink); font-weight: 400; font-size: 14px; }

/* ------------------------------------------------------------- sign in */
/* The form on the left, as on candidate Prept's sign-in; on the right a
   walkthrough of what the product does, opening on a crowd of faces: the
   people already in an agency's database. Phones get the form alone. */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(380px, 45fr) 55fr; }
.auth-main { display: flex; flex-direction: column; padding: 40px 48px 28px; background: var(--bg); }
.auth-form { margin: auto; width: min(360px, 100%); display: flex; flex-direction: column; gap: 18px; }
.auth-form .brandline { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.auth-form .word { font: 600 30px/1 var(--font-display); letter-spacing: -0.02em; display: flex; align-items: baseline; gap: 10px; }
.auth-form .word small { font: 600 11px/1 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.auth-form .tag-line { color: var(--ink-2); font-size: 14.5px; line-height: 1.5; }
.auth-form label.field > input { padding: 11px 12px; font-size: 15px; }
.pw { position: relative; }
.pw input { width: 100%; padding-right: 64px !important; }
.pw button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--ink-3); font: 500 12.5px/1 var(--font-sans); padding: 8px; cursor: pointer; border-radius: 6px; }
.pw button:hover { color: var(--ink); background: var(--hover); }
.auth-form .btn.p { padding: 12px 18px; font-size: 15px; }
.auth-foot { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 12.5px; color: var(--ink-3); text-align: center; }
.theme-toggle { border: 0; background: none; color: var(--ink-3); cursor: pointer; padding: 6px; border-radius: 8px; display: grid; place-items: center; }
.theme-toggle:hover { color: var(--ink); background: var(--hover); }
.auth-aside { position: relative; overflow: hidden; background: var(--panel-2); border-left: 1px solid var(--line); }
.slide { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: 56px 64px 96px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .5s ease, transform .5s ease, visibility 0s linear .5s; }
.slide.on { opacity: 1; visibility: visible; transform: none; transition: opacity .5s ease .2s, transform .5s ease .2s, visibility 0s; }
.slide .eb { font-family: var(--font-mono); font-weight: 500; letter-spacing: .12em; }
.slide h2 { font: 600 clamp(2rem, 3.2vw, 3rem)/1.05 var(--font-display); letter-spacing: -0.02em; max-width: 15ch; margin: 0; }
.slide h2 em { font-style: normal; color: var(--accent); }
.slide .lede { font-size: 1.1rem; line-height: 1.6; color: var(--ink-2); max-width: 32rem; }
.slide.crowd { padding: 0; justify-content: flex-end; transform: none; transition: visibility 0s linear .7s; }
.slide.crowd.on { transition: none; }
.tiles { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(var(--cols, 11), 1fr); grid-auto-rows: 1fr; gap: 2px; }
.tile { overflow: hidden; background: var(--sunken); opacity: 0; transform: scale(.6); transition: opacity .3s ease var(--out), transform .35s ease var(--out); }
.crowd.on .tile { opacity: 1; transform: none; transition-delay: var(--in); }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .5; filter: grayscale(.45); }
.tile.hit img { opacity: 1; filter: none; }
.tile.hit { outline: 2px solid var(--accent); outline-offset: -2px; }
.tile img { transition: opacity .6s ease, filter .6s ease; }
.crowd-copy { position: relative; display: flex; flex-direction: column; gap: 18px; padding: 72px 64px 112px; background: linear-gradient(to bottom, transparent, var(--panel-2) 64px); opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
.crowd.on .crowd-copy { opacity: 1; transform: none; transition-delay: .7s; }
.count { font-family: var(--font-display); font-weight: 600; color: var(--accent); }
/* Small samples of the product, drawn with the product's own pieces. */
.sample { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; max-width: 30rem; }
.sample .row-s { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 14px; align-items: center; font-size: 14px; }
.sample .strip { width: 150px; }
.sample .strip i { height: 18px; }
.sample .q2 { font-size: 13.5px; color: var(--ink-2); font-style: italic; border-left: 2px solid var(--accent-line); padding-left: 10px; }
.dots { position: absolute; left: 64px; bottom: 40px; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; }
.dots button { position: relative; overflow: hidden; width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: var(--line-strong); cursor: pointer; transition: width .25s ease; }
.dots button[aria-current="true"] { width: 28px; }
.dots button[aria-current="true"]::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform-origin: left; animation: fill var(--hold, 6s) linear forwards; }
.dots.held button[aria-current="true"]::after { animation-play-state: paused; }
.dots.reset button[aria-current="true"]::after { animation: none; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .slide, .slide.on, .tile, .crowd.on .tile, .crowd-copy, .crowd.on .crowd-copy { transition: none; transform: none; } .dots button[aria-current="true"]::after { animation: none; transform: none; } }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth-aside { display: none; } .auth-main { padding: 32px 24px 24px; } }

/* ----------------------------------------------------------- jobs list */
.jobs { display: flex; flex-direction: column; gap: 12px; }
.job-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.6fr) auto; gap: 24px; align-items: center; padding: 18px 20px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); cursor: pointer; transition: border-color .15s, transform .15s; color: inherit; text-decoration: none !important; }
.job-row:hover { border-color: var(--accent-line); }
.job-row .title { font-weight: 600; font-size: 15px; }
.funnel { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
.funnel div { display: flex; flex-direction: column; gap: 3px; }
.funnel i { height: 6px; border-radius: 3px; background: var(--sunken); display: block; }
.funnel i.on { background: var(--accent); opacity: .85; }
.funnel span { font-size: 11px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.funnel b { font: 600 13px/1 var(--font-mono); color: var(--ink); }
@media (max-width: 860px) { .job-row { grid-template-columns: 1fr; gap: 12px; } }

/* --------------------------------------------------------------- board */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); }
.tabs a, .tabs button { padding: 10px 14px; color: var(--ink-3); font-weight: 500; border: 0; background: none; border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; text-decoration: none !important; }
.tabs .on { color: var(--ink); border-bottom-color: var(--accent); }
.tabs .count { font: 500 11px/1 var(--font-mono); color: var(--ink-3); margin-left: 4px; }
.board { display: grid; gap: 10px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; }
.col.empty-col { background: transparent; border-style: dashed; }
.col.empty-col .hint { display: none; }
.col { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; display: flex; flex-direction: column; gap: 8px; min-height: 160px; scroll-snap-align: start; }
.col > header { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; padding: 4px 4px 2px; }
.col > header b { font-size: 13px; }
.col > header .n { font: 600 12px/1 var(--font-mono); color: var(--ink-3); }
.col .hint { font-size: 11.5px; color: var(--ink-3); padding: 0 4px 4px; line-height: 1.35; }
.col.closed { opacity: .8; }
.cand { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 8px; cursor: pointer; text-decoration: none !important; color: inherit; box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s; }
.cand:hover { border-color: var(--accent-line); box-shadow: var(--shadow); }
.cand .top-line { display: flex; gap: 10px; align-items: center; }
.cand .name { font-weight: 600; line-height: 1.25; }
.cand .meta { font-size: 12px; color: var(--ink-3); }
.cand .fit { margin-left: auto; font: 600 14px/1 var(--font-mono); }
.cand .next { font-size: 12.5px; color: var(--ink-2); display: flex; gap: 6px; align-items: center; }
.col .none { font-size: 12px; color: var(--ink-3); padding: 10px 4px; text-align: center; }

/* ------------------------------------------------------- candidate page */
.cand-head { position: sticky; top: 56px; z-index: 10; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); margin: -28px calc(-1 * max(20px, env(safe-area-inset-right, 0px))) 0; padding: 18px max(20px, env(safe-area-inset-right, 0px)) 0; border-bottom: 1px solid var(--line); }
.cand-head .inner { max-width: 1280px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.cand-head .who { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.cand-head h1 { font-size: 1.6rem; }
.cand-head .facts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.overall { margin-left: auto; text-align: right; }
.overall .v { font: 600 26px/1 var(--font-mono); }
.overall .l { font-size: 12px; color: var(--ink-3); }
.stepper { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; }
.stepper button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 6px 12px; text-align: left; cursor: pointer; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 2px 10px; align-items: center; color: var(--ink-3); }
.stepper button:hover { color: var(--ink); }
.stepper .n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font: 600 12px/1 var(--font-sans); border: 1.5px solid var(--line-strong); grid-row: span 2; color: var(--ink-3); background: var(--panel); }
.stepper .t { font-weight: 600; font-size: 13.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stepper .s { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stepper .done .n { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.stepper .current { border-bottom-color: var(--accent); }
.stepper .current .n { border-color: var(--accent); color: var(--accent); }
.stepper .current .t { color: var(--ink); }
@media (max-width: 760px) { .stepper .t, .stepper .s { display: none; } .stepper button { grid-template-columns: 24px; justify-content: center; } .cand-head { position: static; } }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
.layout > aside { position: sticky; top: 210px; max-height: calc(100vh - 230px); overflow: auto; display: flex; flex-direction: column; gap: 16px; padding-bottom: 4px; }
@media (max-width: 1040px) { .layout { grid-template-columns: minmax(0, 1fr); } .layout > aside { position: static; max-height: none; } }
.nextcard { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 18px 20px; border-radius: var(--r); background: var(--accent-soft); border: 1px solid var(--accent-line); }
.nextcard .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: 18px; }
.nextcard.warn { background: var(--warn-soft); border-color: var(--warn-dot); }
.nextcard.warn .ic { background: var(--warn-dot); color: #fff; }
.nextcard h2 { font-size: 15px; }
.nextcard p { color: var(--ink-2); font-size: 13px; margin-top: 2px; }
@media (max-width: 640px) { .nextcard { grid-template-columns: 1fr; } .nextcard .ic { display: none; } }
details.step { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); scroll-margin-top: 220px; }
details.step > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 16px 20px; }
details.step > summary::-webkit-details-marker { display: none; }
details.step > summary .n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 600 13px/1 var(--font-sans); border: 1.5px solid var(--line-strong); color: var(--ink-3); }
details.step.done > summary .n { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
details.step.current > summary .n { border-color: var(--accent); color: var(--accent); }
details.step > summary h2 { font-size: 15px; }
details.step > summary .sum { font-size: 13px; color: var(--ink-3); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
details.step > summary .chev { color: var(--ink-3); transition: transform .2s; font-size: 15px; }
details.step[open] > summary .chev { transform: rotate(180deg); }
details.step > .body { padding: 0 20px 20px 60px; display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 640px) { details.step > .body { padding: 0 16px 16px; } details.step > summary { padding: 14px 16px; } }
.sub-h { font: 600 12px/1.3 var(--font-sans); color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }

/* requirement rows (fit, scorecard) */
.reqs { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.req-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--panel); }
.req-row:last-child { border-bottom: 0; }
.req-row .why { grid-column: 1 / -1; font-size: 12.5px; color: var(--ink-3); }
.cov { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.cov.asked { color: var(--ink-3); }
.cov.strong { color: var(--ok); } .cov.partial { color: var(--warn); } .cov.missing, .cov.none { color: var(--crit); }

/* the call guide */
.q { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: start; }
.q .n { font: 600 12.5px/1.6 var(--font-mono); color: var(--accent); }
.q .acts { display: flex; gap: 2px; opacity: .55; transition: opacity .15s; }
.q:hover .acts { opacity: 1; }

/* the scorecard */
.sc-row { display: grid; grid-template-columns: minmax(0, 1fr) 48px 48px 70px 54px; gap: 10px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.sc-row.head { font-size: 12px; color: var(--ink-3); padding-top: 8px; padding-bottom: 8px; background: var(--panel-2); }
.sc-row .c { text-align: center; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.sc-row .detail { grid-column: 1 / -1; }
.sc-row select { padding: 5px 6px; width: 64px; }
.weights { display: flex; height: 28px; border-radius: 8px; overflow: hidden; font: 500 12px/1 var(--font-sans); }
.weights span { display: flex; align-items: center; padding: 0 10px; white-space: nowrap; overflow: hidden; }
.weights .w1 { background: var(--accent); color: var(--accent-ink); } .weights .w2 { background: var(--accent-soft); color: var(--accent); } .weights .w3 { background: var(--sunken); color: var(--ink-2); }
.seg { display: inline-flex; background: var(--sunken); border-radius: 10px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 7px 14px; border-radius: 8px; cursor: pointer; font-weight: 500; color: var(--ink-2); }
.seg button:hover { color: var(--ink); }
.seg button.on { background: var(--panel); color: var(--ink); box-shadow: var(--shadow); }
.seg button.on.yes { color: var(--ok); } .seg button.on.no { color: var(--crit); }
.verdicts { display: flex; gap: 6px; flex-wrap: wrap; }

/* the profile sidebar */
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.kv div { background: var(--panel); padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kv span { font-size: 11.5px; color: var(--ink-3); }
.kv b { font-weight: 500; font-size: 13.5px; overflow-wrap: anywhere; }
.kv b.unknown { color: var(--ink-3); font-weight: 400; }
.kind { font: 600 11px/1 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin: 10px 0 2px; }
.fact { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; padding: 9px 0; border-top: 1px solid var(--line); }
.fact:first-of-type { border-top: 0; }
.fact .t { font-size: 13.5px; line-height: 1.4; }
.fact .m { display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--ink-3); flex-wrap: wrap; }
.fact .acts { display: flex; gap: 0; align-items: start; opacity: 0; transition: opacity .15s; }
.fact:hover .acts, .fact:focus-within .acts { opacity: 1; }
@media (hover: none) { .fact .acts { opacity: 1; } }
.fact .edit { grid-column: 1 / -1; }

/* the debrief */
.coach { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.coach .item { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 10px; font-size: 13.5px; }
.coach .item .dot { margin-top: 6px; }

/* ----------------------------------------------------------------- search */
.hero-search { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 6px; }
.hero-search textarea { border: 0; box-shadow: none !important; min-height: 84px; font-size: 16px; padding: 14px 16px; background: transparent; resize: none; }
.hero-search .bar { display: flex; gap: 8px; align-items: center; padding: 6px 8px 8px; flex-wrap: wrap; }
.jobpicks { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.jobpicks button { border: 1px solid var(--line-strong); background: var(--panel); border-radius: 999px; padding: 6px 12px; cursor: pointer; font-size: 13px; color: var(--ink-2); }
.jobpicks button:hover { border-color: var(--accent); color: var(--accent); }
.crit-edit { display: grid; grid-template-columns: 26px minmax(160px, 2fr) 136px minmax(160px, 3fr) auto; gap: 8px; align-items: center; }
.crit-edit .k { font: 600 12px/1 var(--font-mono); color: var(--accent); text-align: center; }
.crit-edit.head { font-size: 12px; color: var(--ink-3); }
.crit-edit .terms { font: 400 12.5px/1.4 var(--font-mono); color: var(--ink-2); }
@media (max-width: 760px) { .crit-edit { grid-template-columns: 22px minmax(0, 1fr) 120px; } .crit-edit .terms { grid-column: 2 / -1; } .crit-edit .rm { grid-column: 3; } .crit-edit.head { display: none; } }
.filters { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end; }
.filters label.field { min-width: 140px; }
.legend { display: flex; gap: 6px 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-2); }
.legend span b { font: 600 11px/1 var(--font-mono); color: var(--accent); margin-right: 4px; }
.group-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.group-h h2 { font: 500 1.15rem/1.2 var(--font-display); }
.results { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.res { border-bottom: 1px solid var(--line); }
.res:last-child { border-bottom: 0; }
.res-main { display: grid; grid-template-columns: 22px minmax(170px, 1.2fr) minmax(150px, 1fr) minmax(160px, 1.1fr) 64px 24px; gap: 14px; align-items: center; padding: 12px 16px; cursor: pointer; }
.res-main:hover { background: var(--hover); }
.res.ready .res-main { box-shadow: inset 3px 0 0 var(--accent); }
.res .nm { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.res .nm b { font-size: 14.5px; }
.res .nm span { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.strip { display: flex; gap: 3px; }
.strip i { flex: 1 1 0; height: 22px; border-radius: 4px; display: grid; place-items: center; font: 600 10px/1 var(--font-mono); font-style: normal; color: rgba(255,255,255,.9); min-width: 16px; }
.strip i.strong { background: var(--ok-dot); } .strip i.partial { background: var(--warn-dot); } .strip i.none { background: var(--sunken); color: var(--ink-3); border: 1px dashed var(--line-strong); }
.strip i.nice { opacity: .75; }
.logi-mini { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--ink-2); min-width: 0; }
.logi-mini div { display: flex; gap: 6px; align-items: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.res .sc { text-align: right; }
.res .sc b { font: 600 18px/1 var(--font-mono); }
.res .sc span { display: block; font-size: 11px; color: var(--ink-3); margin-top: 2px; }
.res .chev { color: var(--ink-3); font-size: 12px; transition: transform .2s; }
.res.open .chev { transform: rotate(180deg); }
.res-more { padding: 4px 16px 18px 52px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 28px; }
.res-more .crit-why b { font-size: 13px; display: flex; gap: 6px; align-items: center; }
.res-more .crit-why .why-line { font-size: 12.5px; color: var(--ink-2); padding: 3px 0 0 20px; display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 900px) {
  .res-main { grid-template-columns: 22px minmax(0, 1fr) 56px 20px; }
  .res-main .strip { grid-column: 2 / -1; grid-row: 2; }
  .res-main .logi-mini { grid-column: 2 / -1; grid-row: 3; }
  .res-more { grid-template-columns: 1fr; padding-left: 16px; }
}
.actbar { position: sticky; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); display: flex; gap: 12px; align-items: center; flex-wrap: wrap; background: var(--ink); color: var(--bg); border-radius: 14px; padding: 12px 14px 12px 18px; box-shadow: var(--shadow-lg); z-index: 15; animation: rise .2s ease-out; }
.actbar select { background: transparent; color: inherit; border-color: color-mix(in srgb, var(--bg) 35%, transparent); }
.actbar select option { color: var(--ink); background: var(--panel); }
.actbar label { color: inherit; }
.actbar .btn.p { background: var(--accent); }

/* ------------------------------------------- the candidate and client pages */
.agency { font: 600 18px/1.2 var(--font-display); color: var(--accent); }
.choices { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13.5px; }
.choices label { display: inline-flex; gap: 6px; align-items: center; }
.slot { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--panel); cursor: pointer; transition: border-color .15s; }
.slot:hover { border-color: var(--accent); }
.slot:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.brief-line { display: flex; gap: 8px; flex-wrap: wrap; align-items: baseline; padding: 4px 0; }
.srcbtn { font: 500 11.5px/1.2 var(--font-sans); background: var(--sunken); color: var(--ink-2); border: 0; border-radius: 999px; padding: 3px 9px; cursor: pointer; }
.srcbtn:hover { color: var(--accent); }
.why { font-size: 13px; color: var(--ink-2); background: var(--panel-2); border-radius: 8px; padding: 8px 10px; margin: 2px 0 6px; }
.req { padding: 12px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.req:first-of-type { border-top: 0; }
.grid-cell { min-width: 130px; }
.rec { color: var(--crit); font-weight: 600; }
details > summary { cursor: pointer; }

/* Phones: the agency name and the Settings tab give way (Settings is in the
   account menu); the board scrolls sideways a column at a time. */
@media (max-width: 640px) {
  .top { gap: 10px; padding: 0 14px; }
  .logo small { display: none; }
  .nav a { padding: 7px 9px; }
  .nav a[href="#/settings"] { display: none; }
  main { padding-top: 20px; }
  .board { grid-template-columns: repeat(6, minmax(250px, 82vw)) !important; }
  .col.empty-col { min-height: 100px; }
  .legend { font-size: 12px; }
}

/* ---------------------------------------------------------------- advert */
.ad { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.ad-text { min-height: 560px; font-size: 14.5px; line-height: 1.65; padding: 16px 18px; resize: vertical; }
.ad-side { position: sticky; top: 76px; max-height: calc(100vh - 96px); overflow: auto; }
.ad-flags { display: flex; flex-direction: column; gap: 10px; }
.ad-flag { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; background: var(--panel-2); }
.ad-flag.kept { opacity: .7; }
.ad-flag .linkish { background: none; border: 0; padding: 0; font: 600 13.5px/1.3 var(--font-sans); color: var(--ink); cursor: pointer; text-align: left; text-decoration: underline; text-decoration-color: var(--warn-dot); text-underline-offset: 3px; }
.ad-sum .row { flex-wrap: wrap; }
.sep { border: 0; border-top: 1px solid var(--line); margin: 2px 0; width: 100%; }
.btn.is-off:disabled { opacity: .45; cursor: not-allowed; }
.ad-start { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 32px; display: flex; flex-direction: column; gap: 22px; max-width: 760px; }
.ad-title { font: 600 1.6rem/1.2 var(--font-display); letter-spacing: -0.015em; }
.ad-points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ad-points li { border-top: 2px solid var(--accent); padding-top: 10px; display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; color: var(--ink-2); }
.ad-points b { color: var(--ink); font-weight: 600; }
@media (max-width: 900px) { .ad { grid-template-columns: 1fr; } .ad-side { position: static; max-height: none; } .ad-text { min-height: 420px; } }
@media (max-width: 640px) { .ad-points { grid-template-columns: 1fr; } .ad-start { padding: 22px 18px; } }

/* The evidence line ("3 facts · in their current role · 5.7 years · confirmed")
   sits under the criterion, not squeezed beside it. */
.res-more .crit-why b { flex-wrap: wrap; }
.crit-why .ev { font: 400 12px/1.4 var(--font-sans); color: var(--ink-3); flex-basis: 100%; padding-left: 14px; }
.tbl td.mono { white-space: nowrap; }

/* ------------------------------------------------- UX audit, 2026-11-10 */
/* A thin bar while a page loads. */
.loadbar { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; pointer-events: none; background: linear-gradient(90deg, transparent, var(--accent), transparent); background-size: 40% 100%; background-repeat: no-repeat; opacity: 0; transition: opacity .2s; }
.loadbar.on { opacity: 1; animation: load 1s ease-in-out infinite; }
@keyframes load { from { background-position: -40% 0; } to { background-position: 140% 0; } }
@media (prefers-reduced-motion: reduce) { .loadbar.on { animation: none; background-size: 100% 100%; } }

/* The undo toast. */
.toast.undo { display: flex; gap: 16px; align-items: center; }
.toast.undo button { background: none; border: 0; color: var(--accent-soft); font: 600 14px/1 var(--font-sans); cursor: pointer; padding: 4px 6px; border-radius: 6px; text-decoration: underline; text-underline-offset: 3px; }
:root[data-theme="dark"] .toast.undo button { color: var(--accent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .toast.undo button { color: var(--accent); } }

/* Find a candidate, in the header. */
.find { position: relative; margin-left: auto; }
.find + .me { margin-left: 0; }
.find-input { width: 240px; padding: 7px 12px; border-radius: 999px; background: var(--sunken); border-color: transparent; }
.find-input:focus-visible { background: var(--panel); }
.find-list { position: absolute; right: 0; top: 44px; width: min(420px, calc(100vw - 24px)); max-height: 70vh; overflow: auto; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 6px; z-index: 30; }
.find-row { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border-radius: 8px; cursor: pointer; }
.find-row:hover { background: var(--hover); }
.find-row .pill { cursor: pointer; border: 0; margin-top: 6px; }
.find-row select { padding: 4px 8px; font-size: 13px; max-width: 180px; }
@media (max-width: 640px) { .find-input { width: 120px; } .find-list { position: fixed; left: 12px; right: 12px; top: 60px; width: auto; } }

/* Page-head actions: on a phone, the main one and a "More" menu. */
.hacts { display: flex; gap: 8px; align-items: center; position: relative; flex-wrap: wrap; }
.more-wrap { display: contents; }
.more-btn { display: none; }
@media (max-width: 640px) {
  .more-btn { display: inline-flex; }
  .more-wrap { display: none; position: absolute; right: 0; top: 46px; z-index: 25; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 6px; flex-direction: column; min-width: 220px; }
  .more-wrap.open { display: flex; }
  .more-wrap .btn { border: 0; box-shadow: none; justify-content: flex-start; width: 100%; }
}
.btn[disabled][title] { cursor: not-allowed; }
.tabs .tab-off { padding: 10px 14px; color: var(--ink-3); opacity: .6; cursor: not-allowed; }

/* Jobs list. */
.job-row .todo { display: inline-flex; gap: 6px; align-items: center; color: var(--ink-2); margin-top: 2px; }
.job-row .todo.acc { color: var(--accent); font-weight: 500; }
.job-row .todo.warn { color: var(--warn); }
.list-tools { margin-top: -6px; }

/* Pipeline cards: the link is the card; the next step can be a button. */
.cand { cursor: default; }
.cand-link { display: flex; flex-direction: column; gap: 8px; color: inherit; text-decoration: none !important; }
.cand .next-btn { align-self: flex-start; }
.strip.mini { gap: 2px; }
.strip.mini i { height: 6px; min-width: 6px; border-radius: 3px; border-width: 0; }
.strip.mini i.none { background: var(--sunken); border: 1px dashed var(--line-strong); height: 6px; }

/* The requirements editor. */
.req-edit-list { display: flex; flex-direction: column; gap: 10px; }
.req-edit { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; background: var(--panel); }
.req-edit .req-text { width: 100%; font-weight: 500; }
.req-opts { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.req-src { font-style: italic; overflow-wrap: anywhere; }
.seg.sm button { padding: 5px 10px; font-size: 13px; }

/* The candidate page: one progress line under the name. */
.progress { display: flex; gap: 14px; align-items: center; padding: 4px 0 14px; flex-wrap: wrap; }
.progress .bars { display: grid; grid-template-columns: repeat(5, 36px); gap: 4px; }
.progress .bars button { height: 6px; border: 0; padding: 0; border-radius: 3px; background: var(--sunken); cursor: pointer; }
.progress .bars button.done { background: var(--accent); }
.progress .bars button.current { background: var(--accent-line); box-shadow: inset 0 0 0 1px var(--accent); }
.layout > aside { top: 170px; max-height: calc(100vh - 190px); }
details.step { scroll-margin-top: 180px; }
.overall .strip.mini i { height: 8px; }
.fact .m { flex-wrap: nowrap; align-items: baseline; }
.fact .m .dot { transform: translateY(-1px); }
.rec-box { display: flex; justify-content: space-between; gap: 14px; align-items: center; flex-wrap: wrap; padding: 14px 16px; border-radius: 10px; background: var(--accent-soft); border: 1px solid var(--accent-line); }
.rec-box .btn:not(.rec) { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.rec { background: var(--crit); border-color: var(--crit); color: #fff; }
details.alt > summary { color: var(--accent); }

/* Availability: chips to pick, chips to take off. */
.avail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
@media (max-width: 760px) { .avail { grid-template-columns: 1fr; } }
.avail-add { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chipbtn { border: 1px solid var(--line-strong); background: var(--panel); color: var(--ink-2); border-radius: 999px; padding: 5px 11px; font: 500 13px/1.2 var(--font-sans); cursor: pointer; }
.chipbtn:hover { border-color: var(--accent); }
.chipbtn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.slot-days { display: flex; flex-direction: column; gap: 10px; }
.slot-day { display: flex; flex-direction: column; gap: 6px; }
.slotchip { font-family: var(--font-mono); padding-right: 4px; }
.slotchip button { border: 0; background: none; color: var(--ink-3); cursor: pointer; padding: 0 4px; font-size: 12px; }
.slotchip button:hover { color: var(--crit); }

/* Search results: the key, and how scores work behind a click. */
.key { display: inline-flex; gap: 6px; align-items: center; }
.key .k { width: 14px; height: 10px; border-radius: 3px; display: inline-block; }
.key .k.strong { background: var(--ok-dot); } .key .k.partial { background: var(--warn-dot); } .key .k.none { background: var(--sunken); border: 1px dashed var(--line-strong); }
details.how > summary { color: var(--accent); }
details.how[open] { flex-basis: 100%; }

/* The client brief. */
.verdict-card { border-left: 3px solid var(--accent); }
.verdict-card .lede { font-size: 15.5px; line-height: 1.6; }
.test-q { padding: 10px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.test-q:first-of-type { border-top: 0; }

/* The candidate's link: a progress line that stays in view, and the end. */
.lprog { position: sticky; top: 0; z-index: 5; display: flex; gap: 4px; align-items: center; flex-wrap: wrap; padding: 10px 14px; margin: 0 -14px; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); font-size: 13px; border-bottom: 1px solid var(--line); }
.lprog .bars { display: inline-flex; gap: 3px; margin-left: auto; }
.lprog .bars i { width: 22px; height: 4px; border-radius: 2px; background: var(--sunken); }
.lprog .bars i.on { background: var(--accent); }
.thanks .booked { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: 10px; background: var(--accent-soft); border: 1px solid var(--accent-line); }
.thanks .booked b { font: 600 1.2rem/1.3 var(--font-display); }

/* Dialogs become a sheet on a phone: one scroll, actions at the bottom. */
@media (max-width: 640px) {
  dialog, dialog.wide { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
  dialog .dlg { max-height: 100dvh; height: 100%; padding: 20px 16px 0; }
  dialog .pick-list { max-height: none; overflow: visible; }
}
/* On a phone the header keeps the mark, not the word, to make room for Find. */
@media (max-width: 640px) { .logo { font-size: 0; gap: 0; } .logo .mark { font-size: 14px; } }
/* The board's empty-column dash is also called "none": keep its padding out of strip cells. */
.strip i, .strip i.none { padding: 0; }
.req-edit textarea.req-text { min-height: 0; resize: none; overflow: hidden; line-height: 1.4; }
.pick input { flex: none; }
@media (max-width: 640px) { .tabs .tab-off .xs { display: none; } }

/* Branding (R-ORG-08): the agency's logo beside its name, and the settings preview. */
.logo small { display: inline-flex; align-items: center; gap: 8px; }
.org-logo { height: 20px; max-width: 90px; object-fit: contain; border-radius: 3px; }
.brand-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 760px) { .brand-grid { grid-template-columns: 1fr; } }
.br-logo-preview { height: 40px; max-width: 180px; object-fit: contain; border: 1px solid var(--line); border-radius: 6px; padding: 4px; background: #fff; }
.brand-preview { display: flex; flex-direction: column; gap: 8px; }
.pv-card { border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.pv-logo { height: 28px; max-width: 120px; object-fit: contain; }
.pv-name { font: 600 17px/1.2 var(--font-display); }
.pv-h { font: 500 1.15rem/1.25 var(--font-display); }
.pv-line { height: 8px; border-radius: 4px; background: var(--sunken); width: 90%; }
.pv-line.short { width: 60%; }
.pv-btn { align-self: stretch; text-align: center; border-radius: var(--r-sm); padding: 10px; font-weight: 500; font-size: 14px; margin-top: 4px; }
.agency { display: inline-flex; align-items: center; gap: 10px; }
.agency-logo { height: 32px; max-width: 160px; object-fit: contain; }
/* An agency's colour may be dark (navy, maroon): as text on a dark page it is
   brightened so it stays readable. Buttons keep the colour itself. */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .agency { color: color-mix(in srgb, var(--accent) 45%, #ffffff); } }
:root[data-theme="dark"] .agency { color: color-mix(in srgb, var(--accent) 45%, #ffffff); }
/* The settings preview shows the link as most candidates see it: on light. */
.pv-card { background: #F4F5F3; color: #141917; border-color: #E1E5E3; }
.pv-line { background: #E4E7E5; }
