@font-face { font-family: "DM Sans"; src: url("fonts/DMSans-variable.woff2") format("woff2"); font-weight: 100 1000; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("fonts/SpaceGrotesk-variable.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }

:root {
  color-scheme: light dark;
  accent-color: var(--accent);
  --bg: #f6f7fb; --surface: #ffffff; --rail: #f0f2f7; --wash: #eceff5;
  --line: #e1e5ed; --line-strong: #c4cad6;
  --ink: #121722; --ink-2: #4a5262; --ink-3: #636b7b;
  --accent: #3a5af5; --accent-hover: #2f4bd9; --accent-text: #2b46d9; --accent-soft: #e9edff; --on-accent: #ffffff;
  --good: #116b43; --good-soft: #dff4e8;
  --warn: #8a5300; --warn-soft: #fff1d6;
  --bad: #b42318; --bad-soft: #fde8e6;
  /* One colour per stage, used by every dot, lane and bar. Review, Shortlist and Interview take the three colours of the mark. */
  --st-new: #8b93a5; --st-review: #0c9bdc; --st-shortlist: #3a5af5; --st-interview: #7c5cfc; --st-offer: #14a37f; --st-hired: #116b43; --st-rejected: #c2706a;
  --av0-bg: #e9edff; --av0-ink: #2b46d9;
  --av1-bg: #ddf1fc; --av1-ink: #075f8c;
  --av2-bg: #eee8ff; --av2-ink: #5b34d6;
  --av3-bg: #dbf3ee; --av3-ink: #0d6659;
  --av4-bg: #e7eaf1; --av4-ink: #3d4658;
  --shadow: 0 1px 2px rgba(18, 23, 34, .06), 0 12px 32px rgba(18, 23, 34, .12);
  --shadow-sm: 0 1px 2px rgba(18, 23, 34, .08);
  --radius: 8px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1119; --surface: #131923; --rail: #0a0e15; --wash: #0a0e15;
    --line: #262f3f; --line-strong: #3b4659;
    --ink: #f2f3f5; --ink-2: #b6bcc9; --ink-3: #98a0b0;
    --accent: #4162ff; --accent-hover: #5674ff; --accent-text: #9db0ff; --accent-soft: #1d2748; --on-accent: #ffffff;
    --good: #6fdca6; --good-soft: #12392a;
    --warn: #f5bd6b; --warn-soft: #3b2b10;
    --bad: #ffb4ab; --bad-soft: #4a1d1a;
    --st-new: #7a8498; --st-review: #38b6f0; --st-shortlist: #5674ff; --st-interview: #a58bff; --st-offer: #3cc79d; --st-hired: #6fdca6; --st-rejected: #d98880;
    --av0-bg: #1d2748; --av0-ink: #9db0ff;
    --av1-bg: #0f3247; --av1-ink: #7fd0f7;
    --av2-bg: #2a1f52; --av2-ink: #c3b0ff;
    --av3-bg: #103a34; --av3-ink: #6fd6c3;
    --av4-bg: #232b3a; --av4-ink: #b6bcc9;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px rgba(0, 0, 0, .45);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5);
  }
}

* { box-sizing: border-box; }
html, body { height: 100%; }
/* Chrome gives extension pages `body { font-family: system-ui; font-size: 75% }`, so set both here. */
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "DM Sans", -apple-system, system-ui, "Segoe UI", Roboto, sans-serif; font-size: 14px; line-height: 1.45; font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
::selection { background: var(--accent); color: var(--on-accent); }
* { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
a { color: var(--accent-text); text-underline-offset: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
input, textarea { caret-color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.icon { flex: none; }
[hidden] { display: none !important; }

input[type="text"], input[type="search"], input[type="url"], input[type="email"], input[type="password"], input[type="number"], textarea, select {
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 7px 10px; min-width: 0;
  transition: border-color .15s;
}
input:hover, textarea:hover, select:hover { border-color: var(--ink-3); }
input::placeholder, textarea::placeholder { color: var(--ink-3); }
textarea { width: 100%; resize: vertical; line-height: 1.5; }
input[type="checkbox"] { accent-color: var(--accent); width: 15px; height: 15px; margin: 0; flex: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 12px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius);
  font-weight: 550; white-space: nowrap; text-decoration: none; color: var(--ink); cursor: pointer;
  transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--bg); border-color: var(--ink-3); }
.btn:active { background: var(--wash); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn--primary:hover, .btn--primary:active { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn--danger { color: var(--bad); border-color: var(--bad); background: transparent; }
.btn--danger:hover, .btn--danger:active { background: var(--bad-soft); border-color: var(--bad); }
.btn--sm { height: 30px; padding: 0 10px; font-size: 13px; }
.btn kbd { margin-left: 2px; }
.btn--primary kbd { background: rgba(255, 255, 255, .2); border-color: transparent; color: inherit; }
kbd { display: inline-block; min-width: 18px; padding: 0 4px; border: 1px solid var(--line-strong); border-radius: 4px; font: 600 11px/16px "DM Sans", system-ui, sans-serif; text-align: center; color: var(--ink-2); }

.icon-btn { display: inline-grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: var(--radius); background: transparent; color: var(--ink-2); cursor: pointer; transition: background .15s, color .15s; }
.icon-btn:hover { background: var(--wash); color: var(--ink); }
.icon-btn--sm { width: 24px; height: 24px; }
.link { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none; color: var(--accent-text); font-weight: 550; cursor: pointer; }
.link:hover { text-decoration: underline; }
.link:disabled { color: var(--ink-3); cursor: not-allowed; }
.fine { color: var(--ink-3); font-size: 12.5px; }
.lede { color: var(--ink-2); font-size: 15px; max-width: 68ch; }
.inline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tile { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 10px; background: var(--accent-soft); color: var(--accent-text); }

/* ---------- people, stages, scores ---------- */
.avatar { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--av0-bg); color: var(--av0-ink); font-size: 12.5px; font-weight: 650; line-height: 1; }
.avatar[data-initials]::before { content: attr(data-initials); }
.avatar--t1 { background: var(--av1-bg); color: var(--av1-ink); }
.avatar--t2 { background: var(--av2-bg); color: var(--av2-ink); }
.avatar--t3 { background: var(--av3-bg); color: var(--av3-ink); }
.avatar--t4 { background: var(--av4-bg); color: var(--av4-ink); }
.avatar--sm { width: 24px; height: 24px; font-size: 10.5px; }
.avatar--lg { width: 44px; height: 44px; font-size: 15.5px; }

.stage { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 12.5px; font-weight: 550; white-space: nowrap; }
.stage__dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--stage, var(--st-new)); }
.stage--new { --stage: var(--st-new); }
.stage--review { --stage: var(--st-review); }
.stage--shortlist { --stage: var(--st-shortlist); }
.stage--interview { --stage: var(--st-interview); }
.stage--offer { --stage: var(--st-offer); }
.stage--hired { --stage: var(--st-hired); }
.stage--rejected { --stage: var(--st-rejected); }
.stage.stage--rejected { color: var(--ink-3); }

.score { display: inline-flex; align-items: center; justify-content: center; gap: 3px; min-width: 32px; height: 22px; padding: 0 6px; border-radius: 6px; background: var(--wash); color: var(--ink); font-size: 13px; font-weight: 700; line-height: 1; white-space: nowrap; }
.score .icon { fill: currentColor; stroke: none; opacity: .7; }
.score--high { background: var(--good-soft); color: var(--good); }
.score--low { background: transparent; color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line-strong); }
.score--none { background: transparent; color: var(--ink-3); }
.score--lg { min-width: 44px; height: 32px; padding: 0 9px; gap: 4px; border-radius: 8px; font-size: 17px; }
.score--xl { min-width: 72px; height: 56px; padding: 0 13px; gap: 5px; border-radius: 12px; font-size: 27px; }
.score--pending { width: 32px; background: linear-gradient(90deg, var(--wash), var(--line), var(--wash)); background-size: 200% 100%; animation: shimmer 1.2s infinite linear; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- shell ---------- */
.app { display: grid; grid-template-columns: 248px minmax(0, 1fr); height: 100vh; }
.main { display: flex; flex-direction: column; min-height: 0; min-width: 0; }

.rail { display: flex; flex-direction: column; min-height: 0; padding: 16px 12px 12px; background: var(--rail); border-right: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; padding: 2px 8px 18px; white-space: nowrap; font: 600 17px/1 "Space Grotesk", "DM Sans", sans-serif; letter-spacing: -.02em; }
.brand img { display: block; width: 30px; height: 21px; }
.rail__top { padding-bottom: 10px; }
.rail__head { display: flex; align-items: center; justify-content: space-between; padding: 4px 2px 4px 10px; }
.rail__head h2 { font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.jobs { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; margin: 0 -2px; padding: 1px 2px 4px; }
.job { display: block; width: 100%; padding: 8px 10px; border: 0; border-radius: var(--radius); background: transparent; text-align: left; cursor: pointer; transition: background .15s; }
.job:hover { background: var(--wash); }
.job.is-on, .rail__nav.is-on { background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--shadow-sm); }
.job__title { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job__meta { display: block; color: var(--ink-3); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job-new { padding: 2px 0 6px; }
.job-new input { width: 100%; }
.rail__foot { display: flex; flex-direction: column; gap: 2px; padding-top: 10px; border-top: 1px solid var(--line); }
.rail__nav { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: var(--radius); background: transparent; color: var(--ink-2); font-weight: 550; text-align: left; cursor: pointer; transition: background .15s, color .15s; }
.rail__nav .icon { color: var(--ink-3); }
.rail__nav:hover { background: var(--wash); color: var(--ink); }
.rail__nav.is-on { color: var(--ink); }
.rail__nav.is-on .icon { color: var(--accent-text); }
.rail__nav kbd { margin-left: auto; }
.plan { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; padding: 9px 10px; border-radius: 10px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.plan-pill { padding: 2px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font-size: 12px; font-weight: 650; white-space: nowrap; }
.plan__cta { font-size: 13px; }
.plan:not(:has(.plan__cta)) { padding: 2px 10px 0; background: none; box-shadow: none; }

.top { padding: 14px 20px 0; background: var(--surface); border-bottom: 1px solid var(--line); }
.top__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 8px; }
.top__actions { display: flex; gap: 8px; flex: none; }
.job-title { display: flex; align-items: center; gap: 6px; min-width: 0; }
.job-title h1 { font: 600 22px/1.2 "Space Grotesk", "DM Sans", sans-serif; letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job-title__input { font-size: 18px; font-weight: 600; width: min(520px, 100%); }
.tabs { display: flex; gap: 4px; }
.top .tabs { margin-bottom: -1px; }
.tab { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px 10px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--ink-2); font-weight: 550; white-space: nowrap; cursor: pointer; transition: color .15s, border-color .15s; }
.tab:hover { color: var(--ink); }
.tab.is-on { color: var(--accent-text); border-bottom-color: var(--accent); }
.tab__n { min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--wash); color: var(--ink-2); font-size: 12px; font-weight: 650; line-height: 18px; text-align: center; }
.tab.is-on .tab__n { background: var(--accent-soft); color: var(--accent-text); }
.tab .tab__n.tab__n--warn { background: var(--warn-soft); color: var(--warn); }

.progress { display: none; align-items: center; gap: 12px; padding: 7px 20px; background: var(--accent-soft); color: var(--accent-text); font-weight: 550; font-size: 13px; }
.progress.is-open { display: flex; }
.meter { flex: 0 1 220px; height: 5px; border-radius: 999px; background: var(--line); overflow: hidden; }
.meter span { display: block; height: 100%; border-radius: inherit; background: var(--accent); transition: width .2s ease-out; }

/* ---------- triage ---------- */
.triage { flex: 1; display: grid; grid-template-columns: minmax(350px, 420px) minmax(0, 1fr); min-height: 0; }
.triage__list { position: relative; display: flex; flex-direction: column; min-height: 0; background: var(--surface); border-right: 1px solid var(--line); }
.filters { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px 10px; border-bottom: 1px solid var(--line); }
.filters__row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.search { display: flex; align-items: center; gap: 8px; padding: 0 11px; height: 36px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); color: var(--ink-3); transition: border-color .15s; }
.search:hover { border-color: var(--ink-3); }
.search:focus-within { outline: 2px solid var(--accent); outline-offset: 1px; }
.search input { flex: 1; border: 0; padding: 0; background: none; color: var(--ink); outline: none; }
.search--lg { height: 46px; margin: 4px 0 18px; padding: 0 14px; font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-2); font-size: 12.5px; font-weight: 550; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.chip:hover { border-color: var(--line-strong); color: var(--ink); }
.chip.is-on { background: var(--accent-soft); border-color: transparent; color: var(--accent-text); }
.chip__n { color: var(--ink-3); font-weight: 500; }
.chip.is-on .chip__n { color: inherit; }
.toggle { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-2); font-size: 13px; cursor: pointer; }
.sort { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-3); font-size: 13px; }
.sort select { padding: 3px 6px; font-size: 13px; color: var(--ink); }

.list { flex: 1; overflow-y: auto; }
.list:has(+ .bulk.is-open) { padding-bottom: 104px; }
.list__empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 48px 20px; color: var(--ink-2); text-align: center; }
.list__empty .icon { color: var(--ink-3); }
.row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 0 14px 0 12px; border-bottom: 1px solid var(--line); transition: background .12s; }
.row:hover { background: var(--bg); }
.row.is-selected { background: var(--accent-soft); }
.row__main { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px 0; border: 0; background: none; text-align: left; cursor: pointer; }
.row__main:focus-visible { outline-offset: -2px; border-radius: 6px; }
.row__text { display: block; flex: 1; min-width: 0; }
.row__name { display: flex; align-items: center; gap: 6px; min-width: 0; font-weight: 600; }
.row__nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row__sub { display: block; color: var(--ink-3); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row__meta { display: grid; grid-template-columns: 46px 74px; align-items: center; column-gap: 10px; }
.row__meta .score { justify-self: end; }
.row.is-selected .score--mid { background: var(--surface); }
.row__flag { display: inline-flex; flex: none; color: var(--warn); }

.bulk { display: none; position: absolute; left: 10px; right: 10px; bottom: 10px; flex-direction: column; gap: 8px; padding: 10px 12px 12px; background: var(--surface); border-radius: 12px; box-shadow: 0 0 0 1px var(--line-strong), 0 10px 28px rgba(18, 23, 34, .18); animation: rise .2s var(--ease); }
.bulk.is-open { display: flex; }
.bulk__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.bulk__head .link { font-size: 13px; }
.bulk__n { font-weight: 650; }
.bulk__actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.bulk__actions .icon-btn { margin-left: auto; }
.bulk select { height: 30px; padding: 0 6px; font-size: 13px; }

/* ---------- reader ---------- */
.reader { display: flex; flex-direction: column; min-height: 0; min-width: 0; background: var(--surface); container: reader / inline-size; }
.reader__empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; flex: 1; padding: 24px; background: var(--wash); color: var(--ink-3); text-align: center; }
.reader__empty p:first-of-type { color: var(--ink-2); font-weight: 550; }
.reader__head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; grid-template-areas: "av name actions actions" "av sub sub stars"; align-items: center; column-gap: 14px; row-gap: 2px; padding: 16px 20px 10px; }
.reader__head .avatar { grid-area: av; align-self: start; }
.reader__name { grid-area: name; font-size: 19px; font-weight: 700; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reader__sub { grid-area: sub; align-self: start; color: var(--ink-3); font-size: 13px; text-wrap: pretty; }
/* Wide: the decision sits beside the name and the rating under it. Narrow: both drop to one row of their own. */
.reader__actions { display: contents; }
.reader__decide { grid-area: actions; display: flex; align-items: center; gap: 8px; }
.stage-pick { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding-left: 11px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); cursor: pointer; transition: border-color .15s; }
.stage-pick:hover { border-color: var(--ink-3); }
.stage-pick:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.stage-pick .stage-select { height: 32px; padding: 0 6px 0 0; border: 0; background: transparent; font-weight: 550; outline: none; cursor: pointer; }
.stars { grid-area: stars; justify-self: end; align-self: start; display: inline-flex; gap: 0; margin-right: -4px; }
.star { display: inline-grid; place-items: center; width: 25px; height: 22px; border: 0; background: none; color: var(--line-strong); cursor: pointer; transition: color .12s; }
.star:hover { color: var(--warn); }
.star.is-on { color: var(--warn); }
.star.is-on .icon { fill: currentColor; }
@container reader (max-width: 660px) {
  .reader__head { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "av name" "av sub" "actions actions"; }
  .reader__actions { grid-area: actions; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding-top: 10px; }
  .stars { margin: 0 0 0 -4px; }
}

.strip { display: flex; align-items: center; gap: 10px 22px; flex-wrap: wrap; padding: 4px 20px 14px; }
.strip:empty { display: none; }
.strip__score { display: inline-flex; align-items: center; gap: 10px; padding: 0; border: 0; border-radius: var(--radius); background: none; text-align: left; }
button.strip__score { cursor: pointer; }
button.strip__score:hover .strip__label strong { color: var(--accent-text); }
.strip__label { display: flex; flex-direction: column; font-size: 12.5px; color: var(--ink-3); line-height: 1.3; }
.strip__label strong { color: var(--ink); font-size: 13.5px; font-weight: 600; }
.strip__chips { display: flex; flex-wrap: wrap; gap: 5px; }
.mini { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 12.5px; font-weight: 550; }
.mini--met { background: var(--good-soft); color: var(--good); }
.mini--missing { color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-strong); }
.strip__hint { padding: 0; border: 0; background: none; color: var(--accent-text); font-weight: 550; cursor: pointer; }
.strip__hint:hover { text-decoration: underline; text-underline-offset: 2px; }
.strip__flag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border: 0; border-radius: 999px; background: var(--warn-soft); color: var(--warn); font-weight: 600; font-size: 13px; cursor: pointer; }
.tabs--reader { padding: 0 14px; border-bottom: 1px solid var(--line); }

.reader__body { flex: 1; overflow-y: auto; background: var(--wash); }
.reader__body > .note { margin: 14px 18px 0; }
.pdf-host { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 18px; min-height: 100%; }
.pdf-page { position: relative; flex: none; background: #fff; box-shadow: var(--shadow); }
.pdf-marks { position: absolute; inset: 0; pointer-events: none; }
.pdf-mark { position: absolute; border-radius: 2px; mix-blend-mode: multiply; }
.pdf-mark--must { background: rgba(58, 90, 245, .30); }
.pdf-mark--nice { background: rgba(107, 70, 224, .20); }

.note { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border-radius: 10px; background: var(--bg); color: var(--ink-2); max-width: 72ch; }
.reader__body > .note { background: var(--surface); }
.note .icon { margin-top: 2px; }
.note--warn, .reader__body > .note--warn { background: var(--warn-soft); color: var(--warn); }

/* The review, checks and notes read as sheets on the same backdrop as the resume pages. */
.review, .checks, .notes, .review-start { width: min(760px, calc(100% - 36px)); margin: 18px auto; padding: 22px 24px; display: flex; flex-direction: column; gap: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.review-start { align-items: flex-start; gap: 10px; }
.review-start h3, .locked h3 { font-size: 16px; font-weight: 650; }
.review-start h3 { margin-top: 4px; }
.review-start p { color: var(--ink-2); max-width: 62ch; }
.review-start .btn { margin-top: 4px; }
.review__top { display: flex; align-items: flex-start; gap: 16px; }
.review__top strong { display: block; font-size: 17px; font-weight: 650; }
.review__top p { margin-top: 2px; color: var(--ink-2); max-width: 66ch; }
.decision { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 10px 14px; border-radius: 10px; background: var(--bg); color: var(--ink-2); font-size: 13px; font-weight: 550; }
.decision > span { margin-right: 6px; }
.findings h4, .notes h4 { font-size: 14px; font-weight: 650; margin-bottom: 8px; }
.findings__head { display: flex; justify-content: space-between; align-items: baseline; }
.finding { display: grid; grid-template-columns: 112px minmax(0, 1fr); column-gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.finding__status { display: inline-flex; align-items: center; gap: 5px; align-self: start; color: var(--ink-3); font-size: 12.5px; font-weight: 550; line-height: 20px; }
.finding--met .finding__status { color: var(--good); }
.finding--partial .finding__status { color: var(--ink-2); }
.finding__term { font-weight: 600; }
.finding__ev { grid-column: 2; margin-top: 2px; color: var(--ink-2); font-size: 13px; quotes: "“" "”"; }
.plain { padding-left: 18px; }
ul.plain { list-style: disc; }
ol.plain { list-style: decimal; }
.plain li { padding: 2px 0; color: var(--ink-2); max-width: 72ch; }
.plain li::marker { color: var(--ink-3); }

.flags { display: flex; flex-direction: column; gap: 8px; }
.flag { display: flex; gap: 10px; padding: 12px 14px; border-radius: 10px; background: var(--bg); }
.flag .icon { margin-top: 1px; }
.flag--high, .flag--medium { background: var(--warn-soft); }
.flag--high .icon, .flag--medium .icon { color: var(--warn); }
.flag--info .icon { color: var(--ink-3); }
.flag p { margin-top: 2px; color: var(--ink-2); overflow-wrap: anywhere; }
.flag--high p, .flag--medium p { color: color-mix(in srgb, var(--warn) 45%, var(--ink)); }
.flag strong { font-weight: 650; }
.checks__ok { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 10px; background: var(--good-soft); color: var(--good); font-weight: 600; }
.writing summary { cursor: pointer; font-weight: 600; color: var(--ink-2); }
.writing p { margin-top: 6px; color: var(--ink-2); max-width: 68ch; }
.writing .fine { color: var(--ink-3); }

.notes section { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.notes h4 { margin-bottom: 0; }
.notes textarea, .notes input { width: 100%; }
.contact { display: flex; flex-direction: column; gap: 2px; width: 100%; }
.contact li { display: flex; align-items: center; gap: 9px; min-height: 28px; color: var(--ink-2); overflow-wrap: anywhere; }
.contact li > .icon { color: var(--ink-3); }
.tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border: 0; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font-size: 12.5px; font-weight: 550; cursor: pointer; }
.tag:hover { background: color-mix(in srgb, var(--accent) 18%, var(--surface)); }
.note-list { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.note-list:empty { display: none; }
.note-list li { padding: 10px 12px; border-radius: 10px; background: var(--bg); }
.note-list p { white-space: pre-wrap; }
.note-list small { color: var(--ink-3); }
.screening dt { font-weight: 600; margin-top: 6px; }
.screening dd { color: var(--ink-2); }

.locked { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); max-width: 560px; color: var(--ink-2); }
.locked h3 { color: var(--ink); }
.locked p { margin: 3px 0 12px; }
.locked p:last-child { margin-bottom: 0; }
.reader__body > .locked { width: min(560px, calc(100% - 36px)); margin: 18px auto; }
.checks .locked { max-width: none; border: 0; background: var(--bg); }

/* ---------- board ---------- */
.board { flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); gap: 10px; padding: 16px 18px; overflow: auto; }
.column { display: flex; flex-direction: column; min-height: 0; min-width: 0; padding: 6px; border-radius: 12px; background: var(--wash); transition: background .15s, box-shadow .15s; }
.column.is-over { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); }
.column h3 { display: flex; align-items: center; gap: 7px; padding: 6px 6px 10px; font-size: 13px; font-weight: 650; }
.column__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.column__n { min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--surface); color: var(--ink-2); font-size: 12px; font-weight: 650; line-height: 18px; text-align: center; }
.column__cards { display: flex; flex-direction: column; gap: 6px; overflow-y: auto; flex: 1; }
.column__empty { padding: 16px 8px; border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--ink-3); font-size: 12.5px; text-align: center; }
.card { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 9px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-align: left; cursor: grab; transition: border-color .15s; }
.card:hover { border-color: var(--line-strong); }
.card:active { cursor: grabbing; }
.card.is-dragging { opacity: .5; }
.card__who { display: flex; align-items: flex-start; gap: 8px; min-width: 0; }
.card__name { min-width: 0; padding-top: 2px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.card__sub { color: var(--ink-3); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card__meta { display: flex; align-items: center; gap: 6px; min-height: 22px; }
.card__meta:empty { display: none; }
.card__rating { display: inline-flex; align-items: center; gap: 3px; margin-left: auto; color: var(--ink-2); font-size: 12.5px; font-weight: 550; }
.card__rating .icon { color: var(--warn); fill: currentColor; }

/* ---------- compare ---------- */
.compare { flex: 1; display: flex; flex-direction: column; min-height: 0; background: var(--surface); }
.compare__head { display: flex; align-items: center; gap: 12px; padding: 10px 20px; border-bottom: 1px solid var(--line); }
.compare__scroll { flex: 1; overflow: auto; }
.cmp { width: 100%; border-collapse: separate; border-spacing: 0; }
.cmp th, .cmp td { padding: 11px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; min-width: 230px; }
.cmp tbody th { min-width: 180px; max-width: 210px; font-weight: 550; color: var(--ink-2); position: sticky; left: 0; z-index: 1; background: var(--surface); }
.cmp thead th, .cmp thead td { position: sticky; top: 0; z-index: 2; padding-block: 14px; background: var(--surface); border-bottom-color: var(--line-strong); }
.cmp thead td { left: 0; z-index: 3; min-width: 180px; }
/* Everyone gets the same column width, however much their cells hold. */
.cmp--2 thead th { width: 42%; }
.cmp--3 thead th { width: 28%; }
.cmp--4 thead th { width: 21%; }
.cmp-who { display: flex; align-items: center; gap: 10px; }
.cmp small { display: block; color: var(--ink-3); font-weight: 400; font-size: 12.5px; }
.cmp-name { padding: 0; border: 0; background: none; color: var(--ink); font-size: 15px; font-weight: 700; text-align: left; cursor: pointer; }
.cmp-name:hover { color: var(--accent-text); text-decoration: underline; text-underline-offset: 2px; }
.cmp .cmp-group th { max-width: none; padding: 20px 16px 8px; background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 650; }
.cmp-group span { display: inline-block; position: sticky; left: 16px; }
.cmp-score { display: flex; align-items: center; gap: 10px; }
.cmp-score small { display: inline; }
.cmp-meter { display: block; flex: 0 1 110px; height: 5px; border-radius: 999px; background: var(--line); overflow: hidden; }
.cmp-meter span { display: block; height: 100%; border-radius: inherit; background: var(--ink-2); }
.cmp-meter--high span { background: var(--good); }
.cmp-meter--low span { background: var(--line-strong); }
.cmp-status { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-3); font-weight: 550; }
.cmp-status--met { color: var(--good); }
.cmp-status--partial { color: var(--ink-2); }
.cmp-rating { display: inline-flex; align-items: center; gap: 5px; }
.cmp-rating .icon { color: var(--warn); fill: currentColor; }

/* ---------- pages ---------- */
.page { flex: 1; overflow-y: auto; padding: 28px 40px 56px; background: var(--surface); }
.page--narrow > * { max-width: 720px; }
.page h2 { font: 600 22px/1.2 "Space Grotesk", "DM Sans", sans-serif; letter-spacing: -.02em; }
.page .lede { margin: 6px 0 18px; }
.page > h2 + .fine { margin-top: 6px; }
.field { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin: 18px 0; }
.field > label { font-weight: 600; }
.field input[type="text"], .field textarea { width: 100%; }
.field--inline { flex-direction: row; align-items: center; gap: 12px; }
.field--inline input { width: 90px; }
.field .inline input { flex: 1 1 200px; }
.page__actions { margin-top: 8px; }
.danger-zone { margin-top: 36px; padding-top: 16px; border-top: 1px solid var(--line); }
.danger-zone summary { cursor: pointer; color: var(--ink-2); font-weight: 550; }
.danger-zone p { margin: 8px 0; color: var(--ink-2); max-width: 66ch; }

.page--export > * { max-width: 920px; }
.exp-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.exp-head h2 { margin-right: auto; }
.exp-count { padding: 2px 10px; border-radius: 999px; background: var(--wash); color: var(--ink-2); font-size: 12.5px; font-weight: 600; }
.exp-set { margin-top: 28px; }
.exp-set:not(:has(.exp)) { display: none; }
.exp-set__title { padding-bottom: 10px; font-size: 15px; font-weight: 650; }
.exp-list { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.exp { display: flex; align-items: center; gap: 14px; margin-top: -1px; padding: 14px 16px; border-top: 1px solid var(--line); }
.exp .tile { align-self: flex-start; }
.exp.is-locked .tile { background: var(--wash); color: var(--ink-3); }
.exp__text { flex: 1; min-width: 0; }
.exp h3 { font-size: 14px; font-weight: 650; }
.exp p { max-width: 62ch; color: var(--ink-2); font-size: 13.5px; }
.exp__actions { display: flex; align-items: center; gap: 8px; flex: none; flex-wrap: wrap; justify-content: flex-end; max-width: 48%; }
.soon { color: var(--ink-3); font-size: 13px; }

/* Settings and the account pages: a title column, then the controls. */
.page--narrow.settings > * { max-width: 900px; }
.settings > h2 { margin-bottom: 14px; }
.settings > h2 + .fine { margin: -8px 0 14px; }
.settings section { display: grid; grid-template-columns: 200px minmax(0, 1fr); column-gap: 32px; row-gap: 10px; align-items: start; justify-items: start; padding: 22px 0; border-top: 1px solid var(--line); }
.settings section > h3 { grid-column: 1; grid-row: 1; font-size: 14.5px; font-weight: 650; }
.settings section > :not(h3) { grid-column: 2; }
.settings section > ul, .settings section > ol, .settings section > .field, .settings section > .conn, .settings section > .copy-line { justify-self: stretch; }
.settings .field { width: 100%; margin: 4px 0; }
.pool { display: flex; flex-direction: column; }
.pool__results > .fine { margin-bottom: 6px; }
.pool__item { display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 12px 2px; border: 0; border-top: 1px solid var(--line); background: none; text-align: left; cursor: pointer; }
.pool__text { display: flex; flex-direction: column; min-width: 0; }
.pool__item:hover strong { color: var(--accent-text); }
.pool__snip { margin-top: 2px; color: var(--ink-2); font-size: 13px; }

.welcome { margin: auto; padding: 40px 32px; width: 100%; max-width: 620px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.welcome__mark { display: block; width: 54px; height: 38px; margin-bottom: 6px; }
.welcome h1 { font: 600 32px/1.12 "Space Grotesk", "DM Sans", sans-serif; letter-spacing: -.03em; text-wrap: balance; }
.welcome .lede { font-size: 16px; }
.welcome .inline { margin-top: 4px; }
.steps { counter-reset: step; width: 100%; margin-top: 24px; border-top: 1px solid var(--line); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(step); grid-row: 1 / span 2; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); font-size: 13px; font-weight: 700; }
.steps strong { font-weight: 650; }
.steps span { color: var(--ink-2); }
.blank { margin: auto; padding: 32px; display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--ink-2); text-align: center; }
.blank .icon { color: var(--ink-3); }

/* ---------- overlays ---------- */
#toasts { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; width: max-content; max-width: calc(100vw - 24px); z-index: 20; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 12px; max-width: min(620px, 100%); padding: 10px 14px; border-radius: 10px; background: var(--ink); color: var(--surface); box-shadow: var(--shadow); font-weight: 500; pointer-events: auto; animation: rise .2s var(--ease); }
.toast--warn { background: var(--warn-soft); color: var(--warn); }
.toast__action { border: 0; background: none; color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
@keyframes rise { from { transform: translateY(8px); opacity: 0; } }
.dialog { width: min(460px, 92vw); padding: 22px; border: 0; border-radius: 14px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); animation: rise .2s var(--ease); }
.dialog::backdrop { background: rgba(9, 12, 18, .45); }
.dialog h2 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.dialog p { color: var(--ink-2); margin-bottom: 6px; }
.dialog__actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.keys { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; align-items: center; }
.keys dd { color: var(--ink-2); }

/* ---------- accounts, teams and cloud state ---------- */
.btn--on { color: var(--accent-text); border-color: var(--accent); background: var(--accent-soft); }
.people { display: flex; flex-direction: column; }
.person { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.person:first-child { border-top: 0; padding-top: 0; }
.person__text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.person select { padding: 3px 6px; font-size: 13px; }
.conn { padding: 10px 0; border-top: 1px solid var(--line); }
.conn:first-child { border-top: 0; padding-top: 0; }
.conn__row { display: flex; align-items: center; gap: 12px; }
.conn__form { display: flex; flex-direction: column; gap: 10px; padding: 12px 0 4px; }
.conn__form .field { display: flex; flex-direction: column; gap: 4px; }
.conn__form input { max-width: 420px; }
.copy-line { display: flex; align-items: center; gap: 8px; margin: 2px 0 6px; }
.copy-line code { flex: 1; min-width: 0; padding: 7px 10px; overflow-x: auto; white-space: nowrap; border: 1px solid var(--line); border-radius: var(--radius); background: var(--wash); font-size: 13px; }
.plain-list { list-style: disc; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; color: var(--ink-2); font-size: 14px; }
.exp-group { display: contents; }

/* ---------- overview ---------- */
.overview { display: flex; flex-direction: column; gap: 20px; padding: 28px 32px 48px; overflow: auto; min-height: 0; flex: 1; }
.overview > * { width: 100%; max-width: 1200px; }
.overview header h1 { font: 600 26px/1.2 "Space Grotesk", "DM Sans", sans-serif; letter-spacing: -.02em; }
.overview header .fine { margin-top: 2px; font-size: 13.5px; }
.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.stat { padding: 14px 18px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat dt { color: var(--ink-3); font-size: 13px; }
.stat dd { margin-top: 2px; font-size: 24px; font-weight: 650; line-height: 1.2; letter-spacing: -.01em; }
.stat--warn dd { color: var(--warn); }
.ov-columns { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.ov-main, .ov-side { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.ov-block { padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.ov-block__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.ov-block__head h2 { font-size: 15px; font-weight: 650; }
.funnel { display: flex; gap: 3px; height: 12px; }
.funnel__part { min-width: 6px; flex-basis: 0; border-radius: 3px; }
.funnel__part--new { background: var(--st-new); }
.funnel__part--review { background: var(--st-review); }
.funnel__part--shortlist { background: var(--st-shortlist); }
.funnel__part--interview { background: var(--st-interview); }
.funnel__part--offer { background: var(--st-offer); }
.funnel__part--hired { background: var(--st-hired); }
.funnel__key { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; color: var(--ink-2); font-size: 13px; }
.funnel__key li { display: inline-flex; align-items: center; gap: 6px; }
.funnel__key b { color: var(--ink); font-variant-numeric: tabular-nums; }
.dot { width: 8px; height: 8px; min-width: 0; border-radius: 50%; flex: none; }
.table-scroll { overflow-x: auto; }
.ov-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ov-table th, .ov-table td { padding: 10px 10px; border-top: 1px solid var(--line); text-align: left; font-weight: 400; white-space: nowrap; }
.ov-table thead th { padding-top: 0; border-top: 0; color: var(--ink-3); font-size: 12.5px; }
.ov-table th:first-child { padding-left: 0; width: 100%; min-width: 170px; white-space: normal; }
.ov-table td:last-child, .ov-table th:last-child { padding-right: 0; }
.ov-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.ov-table .is-zero { color: var(--ink-3); }
.ov-table .warn { color: var(--warn); font-weight: 600; }
.ov-table__job { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: var(--ink); font-weight: 600; text-align: left; cursor: pointer; }
.ov-table__job:hover { color: var(--accent-text); text-decoration: underline; text-underline-offset: 2px; }
.todo__row { display: flex; align-items: center; gap: 9px; width: 100%; padding: 10px 0; border: 0; border-top: 1px solid var(--line); background: none; text-align: left; cursor: pointer; color: var(--ink); }
.todo li:first-child .todo__row { border-top: 0; padding-top: 0; }
.todo li:last-child .todo__row { padding-bottom: 0; }
.todo__row:hover .todo__text { color: var(--accent-text); }
.todo__row > .icon:first-child { flex: none; color: var(--ink-3); }
.todo__row--flag > .icon:first-child { color: var(--warn); }
.todo__row > .icon:last-child { flex: none; margin-left: auto; color: var(--ink-3); }
.todo__text { flex: none; font-weight: 550; }
.todo__job { overflow: hidden; color: var(--ink-3); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.meter--wide { flex: none; width: 100%; height: 6px; margin-bottom: 8px; }

/* ---------- smaller windows ---------- */
@media (max-width: 1080px) {
  .app { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .rail { flex-direction: row; align-items: center; gap: 10px; padding: 8px 12px; border-right: 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
  .brand, .rail__head, .rail__top { padding: 0; }
  .brand { padding-right: 4px; }
  .rail__head h2 { display: none; }
  .jobs { flex-direction: row; flex: 1; overflow: visible; margin: 0; padding: 1px; }
  .job { width: auto; max-width: 200px; padding: 7px 10px; }
  .job__meta { display: none; }
  .rail__foot { flex-direction: row; align-items: center; padding: 0; border: 0; }
  .rail__nav { flex: none; width: auto; white-space: nowrap; }
  .rail__nav kbd { display: none; }
  .plan { flex: none; margin: 0 0 0 4px; padding: 0; background: none; box-shadow: none; }
  .triage { grid-template-columns: minmax(300px, 360px) minmax(0, 1fr); }
}
@media (max-width: 1000px) {
  .overview { padding: 20px 16px 40px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { border-left: 0; border-top: 1px solid var(--line); }
  .stat:nth-child(-n+2) { border-top: 0; }
  .stat:nth-child(even) { border-left: 1px solid var(--line); }
  .ov-columns { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .triage { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 42vh) minmax(0, 1fr); }
  .triage__list { border-right: 0; border-bottom: 1px solid var(--line); }
  .top { padding: 12px 14px 0; }
  .top__row { flex-wrap: wrap; }
  .tabs { overflow-x: auto; scrollbar-width: none; }
  .tabs--reader { padding: 0 8px; }
  .reader__head { padding: 14px 14px 10px; }
  .strip { padding: 4px 14px 12px; }
  .review, .checks, .notes, .review-start { width: calc(100% - 20px); margin: 10px auto; padding: 18px 16px; }
  .page { padding: 20px 16px 40px; }
  .exp { flex-wrap: wrap; }
  .exp__actions { max-width: none; width: 100%; justify-content: flex-start; padding-left: 50px; }
  .settings section { grid-template-columns: minmax(0, 1fr); }
  .settings section > :not(h3) { grid-column: 1; }
  .board { grid-auto-columns: 78vw; padding: 12px; }
  .cmp th, .cmp td { min-width: 190px; }
  .cmp tbody th, .cmp thead td { min-width: 120px; max-width: 140px; }
  .welcome { padding: 28px 20px; }
  .welcome h1 { font-size: 27px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
