/*
 * The recruiter's console.
 *
 * Same palette and faces as the game (tokens.css); different job. The candidate's screen
 * is a room you sit in — generous, one thing at a time, serif carrying the voice. This is
 * an instrument: it gets scanned, not read, so the craft moves from typography to
 * information design.
 *
 * What that means concretely, and what each rule below is serving:
 *
 *   · State is legible without reading. A status is a pill with its own colour, a grade is
 *     a weighted glyph, a problem is a coloured edge on the row. You should be able to see
 *     which of nine candidates needs attention from across a desk.
 *   · Numbers line up. Tabular figures everywhere a column of digits appears, because a
 *     ragged column of scores is unreadable and looks amateur, which is the same thing.
 *   · The serif still does the talking. Headings, verdicts and candidate prose stay in the
 *     book face — it is what stops this looking like every other admin panel, and it is the
 *     visual thread back to the simulation the results came from.
 *
 * The one flourish is the grade: set large in the serif, because it is the single thing a
 * hiring manager looks for and the page should admit that rather than bury it in a table
 * cell at 13px like everything else does.
 */

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 15px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

/* ── top bar ─────────────────────────────────────────────────────────── */

.top {
  display: flex; align-items: center; gap: 12px;
  padding: 0 20px; height: 56px; flex: none;
  background: var(--card);
  border-bottom: 1px solid var(--rule);
}
.wordmark {
  font: 600 19px/1 var(--serif); letter-spacing: .01em;
}
.sub {
  font: 600 10.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-3); padding-top: 3px;
}
.grow { flex: 1; }

/* Says out loud when invites are only in memory. Silence here caused a lost afternoon. */
.env {
  font: 600 11px/1 var(--sans); letter-spacing: .05em; text-transform: uppercase;
  color: var(--warn); background: var(--warn-bg);
  padding: 5px 9px; border-radius: 4px;
}

/* Who is signed in. Quiet, because it answers a question rather than announcing anything —
   and it matters most on a shared machine, where the answer might not be you. */
.who {
  font: 500 12.5px/1 var(--sans);
  color: var(--ink-3);
  max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ── the frame: role rail + working surface ──────────────────────────── */

.frame { flex: 1; display: flex; min-height: 0; }

.rail {
  width: 232px; flex: none; overflow-y: auto;
  background: var(--room);
  border-right: 1px solid var(--rule);
  padding: 14px 10px;
}
.rail h3 {
  font: 600 10.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3); margin: 4px 0 9px 8px;
}
.role {
  display: block; width: 100%; text-align: left; cursor: pointer;
  background: none; border: 0; border-radius: 6px;
  padding: 9px 10px; margin-bottom: 2px; color: var(--ink);
  font: 500 14px/1.35 var(--sans);
}
.role:hover { background: rgba(180,86,42,.07); }
.role[aria-current="true"] { background: var(--accent-bg); color: var(--accent-2); }
.role .n {
  display: block; font: 400 12px/1.4 var(--sans); color: var(--ink-3); margin-top: 1px;
}
.role[aria-current="true"] .n { color: var(--accent-2); opacity: .8; }
.rail .empty { font-size: 13px; color: var(--ink-3); padding: 8px 10px; line-height: 1.5; }

.surface { flex: 1; overflow-y: auto; padding: 22px 26px 60px; min-width: 0; }
.wrap { max-width: 1080px; }

/* ── headings and panels ─────────────────────────────────────────────── */

h1 { font: 600 25px/1.2 var(--serif); margin: 0 0 3px; text-wrap: balance; }
h2 { font: 600 17px/1.25 var(--serif); margin: 0 0 10px; }
.lede { font-size: 14px; color: var(--ink-2); margin: 0 0 20px; max-width: 62ch; line-height: 1.55; }

.panel {
  background: var(--card); border: 1px solid var(--rule); border-radius: 9px;
  padding: 18px 20px; margin-bottom: 16px; box-shadow: var(--shadow);
}
.panel > h2 { margin-bottom: 12px; }

.hint { font-size: 13px; color: var(--ink-3); line-height: 1.55; margin: 8px 0 0; }
.hint b { color: var(--ink-2); font-weight: 600; }

/* ── form ────────────────────────────────────────────────────────────── */

.fields { display: flex; flex-wrap: wrap; gap: 14px; }
.f { display: flex; flex-direction: column; gap: 5px; flex: 1; min-width: 210px; }
.f label {
  font: 600 10.5px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3);
}
.f input {
  font: 400 14.5px/1.4 var(--sans); color: var(--ink);
  border: 1px solid var(--rule); border-radius: 6px; padding: 9px 11px; background: #fff;
}
.f input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }

/* Level as three cards rather than a dropdown: the differences between them are the
   point, and a <select> hides exactly the information the recruiter is choosing on. */
.levels { display: flex; gap: 10px; flex-wrap: wrap; }
.level {
  flex: 1; min-width: 215px; cursor: pointer; text-align: left;
  background: #fff; border: 1.5px solid var(--rule); border-radius: 8px;
  padding: 12px 14px; color: var(--ink); font: inherit;
}
.level:hover { border-color: var(--desk); }
.level[aria-pressed="true"] {
  border-color: var(--accent); background: var(--accent-bg);
}
.level .t { display: block; font: 600 15px/1.2 var(--serif); }
.level .y {
  display: block; font: 600 10.5px/1 var(--sans); letter-spacing: .09em;
  text-transform: uppercase; color: var(--ink-3); margin: 5px 0 7px;
}
.level[aria-pressed="true"] .y { color: var(--accent-2); }
.level .g { display: block; font-size: 12.5px; line-height: 1.5; color: var(--ink-2); }
.level .m {
  display: inline-block; margin-top: 8px; font: 600 12px/1 var(--sans);
  font-variant-numeric: tabular-nums; color: var(--ink-2);
  background: var(--room); border-radius: 4px; padding: 5px 8px;
}
.level[aria-pressed="true"] .m { background: #fff; color: var(--accent-2); }

/* The writing toggle carries a policy note, so it gets a row of its own rather than
   being a checkbox squeezed into the field grid. */
.toggle-row {
  display: flex; gap: 13px; align-items: flex-start;
  border: 1px solid var(--rule); border-radius: 8px; padding: 13px 15px; background: #fff;
}
.toggle-row input { margin: 2px 0 0; width: 17px; height: 17px; accent-color: var(--accent); flex: none; }
.toggle-row .body { flex: 1; }
.toggle-row .t { display: block; font: 600 14px/1.3 var(--sans); margin-bottom: 4px; }
.toggle-row .d { font-size: 12.8px; line-height: 1.55; color: var(--ink-2); margin: 0; }

/*
 * Buttons, and the links that have to look like them.
 *
 * These were `button.primary` and `button.ghost`, qualified by element, which was true for
 * as long as every control on the console was a real <button>. The admin page broke it: its
 * header links to the hiring console and its no-access screen offers a way out, and both
 * are navigation, so both are anchors. They came out as bare blue underlined text sitting
 * in an unstyled header — the page looked broken before it had said anything.
 *
 * Unqualified, with the anchor rule that gives an <a> the box a <button> gets for free.
 * style.css reached the same conclusion for the candidate's screen; this is the same fix on
 * the other side of the product.
 */
.primary {
  cursor: pointer; border: 0; border-radius: 6px;
  background: var(--accent); color: #fff;
  font: 600 14px/1 var(--sans); padding: 11px 17px;
}
.primary:hover { background: var(--accent-2); }
.primary:disabled { background: var(--ink-3); cursor: default; }
.ghost {
  cursor: pointer; border: 1px solid var(--rule); border-radius: 6px; background: #fff;
  font: 500 13.5px/1 var(--sans); padding: 9px 13px; color: var(--ink-2);
}
.ghost:hover { border-color: var(--desk); color: var(--ink); }

/* An <a> is inline and underlined by default; a <button> is neither. */
a.primary, a.ghost {
  display: inline-flex; align-items: center; text-decoration: none;
}
a.primary:hover { color: #fff; }
.actions { display: flex; gap: 10px; align-items: center; margin-top: 16px; }

/* ── the minted link ─────────────────────────────────────────────────── */

.minted { border-color: var(--teal); background: var(--teal-bg); }
.linkbox { display: flex; gap: 8px; align-items: stretch; margin: 10px 0 4px; }
.linkbox input {
  flex: 1; font: 400 13px/1.4 var(--mono); color: var(--ink);
  border: 1px solid var(--rule); border-radius: 6px; padding: 10px 12px; background: #fff;
}
.facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 12px; }
.fact { font-size: 12.5px; color: var(--ink-2); }
.fact b {
  display: block; font: 600 10px/1 var(--sans); letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px;
}

/* ── candidate table ─────────────────────────────────────────────────── */

.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th {
  text-align: left; font: 600 10.5px/1 var(--sans); letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-3);
  padding: 0 12px 9px; border-bottom: 1px solid var(--rule); white-space: nowrap;
}
.tbl td { padding: 12px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.tbl tbody tr { cursor: pointer; }
.tbl tbody tr:hover td { background: rgba(180,86,42,.045); }
.tbl .who { font-weight: 600; }
.tbl .who span { display: block; font-weight: 400; font-size: 12.5px; color: var(--ink-3); }
.tbl .num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.tbl .when { color: var(--ink-3); font-size: 13px; white-space: nowrap; }

/* A row with something wrong on it earns an edge, so it reads before the text does. */
.tbl tr.flagged td:first-child { box-shadow: inset 3px 0 0 var(--bad); }

.pill {
  display: inline-block; font: 600 11px/1 var(--sans); letter-spacing: .04em;
  padding: 5px 9px; border-radius: 999px; white-space: nowrap;
}
.pill.sent      { background: var(--room);      color: var(--ink-2); }
.pill.started   { background: var(--warn-bg);   color: var(--warn); }
.pill.submitted { background: var(--teal-bg);   color: var(--teal); }
.pill.expired   { background: var(--bad-bg);    color: var(--bad); }

/* The grade is what they came for. Let it be the biggest thing in the row. */
.grade { font: 600 21px/1 var(--serif); font-variant-numeric: tabular-nums; }
.grade.g-A, .grade.g-B\+ { color: var(--teal); }
.grade.g-B, .grade.g-C   { color: var(--ink); }
.grade.g-D, .grade.g-F   { color: var(--bad); }
.grade.none { color: var(--ink-3); font-size: 15px; }

/* ── report ──────────────────────────────────────────────────────────── */

.crumb {
  display: flex; align-items: center; gap: 9px; margin-bottom: 14px;
  font-size: 13px; color: var(--ink-3);
}

.headline { display: flex; align-items: flex-start; gap: 22px; flex-wrap: wrap; }
.headline .big { font: 600 46px/1 var(--serif); font-variant-numeric: tabular-nums; }
.headline .of { font-size: 13px; color: var(--ink-3); margin-top: 6px; }
.verdict {
  flex: 1; min-width: 280px; font: 400 16px/1.55 var(--serif); color: var(--ink);
}

/*
 * The recommendation, at the top and impossible to miss.
 *
 * The report used to open with a grade letter and six bars, which is evidence without a
 * conclusion — a recruiter had to assemble the verdict themselves, and a raw point total
 * means nothing without knowing what was available. Colour carries the verdict so it reads
 * before the words do, and the percentage sits beside it because that is the number people
 * actually compare candidates on.
 */
.verdict-panel { border-left: 4px solid var(--ink-3); }
.verdict-panel.v-advance { border-left-color: var(--teal); background: linear-gradient(90deg, var(--teal-bg), var(--card) 42%); }
.verdict-panel.v-discuss { border-left-color: var(--warn); background: linear-gradient(90deg, var(--warn-bg), var(--card) 42%); }
.verdict-panel.v-not_on_this_evidence { border-left-color: var(--bad); background: linear-gradient(90deg, var(--bad-bg), var(--card) 42%); }
.verdict-panel.v-incomplete { border-left-color: var(--ink-3); }
/*
 * Ended for leaving the page. Red like the other negative verdict, because that is what it
 * is — but the banner above the card carries the explanation, so this only has to match it.
 */
.verdict-panel.v-disqualified { border-left-color: var(--bad); background: linear-gradient(90deg, var(--bad-bg), var(--card) 42%); }

.verdict-top { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; margin-bottom: 10px; }
.verdict-top .stamp { font: 600 27px/1.1 var(--serif); letter-spacing: -.02em; }
.v-advance .stamp { color: var(--teal); }
.v-discuss .stamp { color: var(--warn); }
.v-not_on_this_evidence .stamp { color: var(--bad); }
.v-disqualified .stamp { color: var(--bad); }
.verdict-top .pct {
  font: 600 27px/1.1 var(--sans); font-variant-numeric: tabular-nums; margin-left: auto;
}
.verdict-top .pct small {
  display: block; font: 500 11.5px/1.3 var(--sans); color: var(--ink-3);
  text-align: right; margin-top: 2px;
}
.verdict-top .gr {
  font: 600 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3); align-self: center;
}
.because { font: 400 15.5px/1.6 var(--serif); margin: 0 0 14px; max-width: 74ch; }

.sc { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.sc > div { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sc b {
  font: 600 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-3); width: 100%;
}
.sc span {
  font: 500 12.5px/1 var(--sans); padding: 6px 10px; border-radius: 999px;
  background: var(--room); color: var(--ink-2);
}
.sc > div:first-child span:not(.muted) { background: var(--teal-bg); color: var(--teal); }
.sc > div:last-child span:not(.muted) { background: var(--bad-bg); color: var(--bad); }
.sc span.muted { background: none; color: var(--ink-3); font-style: italic; padding-left: 0; }

/* Never let the verdict be read without the sample size attached to it. */
.caveat { font-size: 12.5px; line-height: 1.55; color: var(--ink-3); margin: 14px 0 0; }

.bands { display: flex; flex-direction: column; gap: 12px; }
.band .row { display: flex; align-items: center; gap: 12px; }
.band .l { flex: none; width: 152px; font-weight: 600; font-size: 13.5px; }
.band .track {
  flex: 1; height: 7px; border-radius: 4px; background: var(--room); overflow: hidden;
}
.band .track i { display: block; height: 100%; background: var(--desk); border-radius: 4px; }
.band.strong .track i { background: var(--teal); }
.band.weak   .track i { background: var(--bad); }
.band .b {
  flex: none; width: 62px; text-align: right;
  font: 600 10.5px/1 var(--sans); letter-spacing: .08em; color: var(--ink-3);
}
.band .h { font-size: 13px; color: var(--ink-2); margin: 5px 0 0 164px; }
.band .d { font-size: 12.5px; color: var(--ink-3); margin: 2px 0 0 164px; line-height: 1.5; }

.flags { display: flex; flex-direction: column; gap: 7px; }
.flag {
  font-size: 13.5px; line-height: 1.55; color: var(--bad);
  background: var(--bad-bg); border-radius: 6px; padding: 10px 13px;
}

.calls { display: flex; flex-direction: column; gap: 8px; }
.call {
  display: flex; gap: 12px; align-items: baseline;
  border-radius: 7px; padding: 11px 14px; font-size: 14px; background: var(--bad-bg);
}
.call.right { background: var(--teal-bg); }
.call .mark { font-weight: 700; color: var(--bad); }
.call.right .mark { color: var(--teal); }
.call .q { flex: 1; }
.call .a { display: block; color: var(--ink-2); font-size: 13px; margin-top: 3px; }

/*
 * A skipped question, and a question somebody asked for help on.
 *
 * Neither is a wrong answer and neither should read as one. A skip is a decision — the
 * candidate judged the question not worth their remaining minutes — so it gets a dash rather
 * than a cross and a neutral ground rather than a red one. Help is a fact about how somebody
 * works, which is the sort of thing a hiring team wants to see plainly rather than infer.
 */
.call.skipped { background: var(--sunken); }
.call.skipped .mark { color: var(--ink-3); }
.call .a.asked { color: var(--warn); font-weight: 500; }

.writes { display: flex; flex-direction: column; gap: 11px; }
.write { border-radius: 7px; padding: 13px 15px; background: var(--sunken); border: 1px solid var(--rule); }
.write.bad { background: var(--bad-bg); border-color: var(--bad); }
.write .q {
  display: block; font: 600 12px/1.3 var(--sans); letter-spacing: .03em;
  color: var(--ink-3); margin-bottom: 7px;
}
.write p { font: 400 15px/1.65 var(--serif); margin: 0 0 8px; }
.write .a { display: block; color: var(--ink-2); font-size: 12.5px; }
.write .tn { color: var(--warn); }

b.ok { background: var(--teal-bg); color: var(--teal); border-radius: 3px; padding: 0 3px; }
b.qm {
  background: var(--warn-bg); color: var(--warn); border-radius: 3px; padding: 0 3px;
  text-decoration: underline wavy currentColor 1px; text-underline-offset: 3px;
}

/* ── comparison ──────────────────────────────────────────────────────── */

.cmp { width: 100%; border-collapse: collapse; font-size: 14px; }
.cmp th, .cmp td { padding: 11px 13px; border-bottom: 1px solid var(--rule); text-align: left; }
.cmp th {
  font: 600 10.5px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3); vertical-align: bottom;
}
.cmp td.num { font-variant-numeric: tabular-nums; text-align: right; }
.cmp .rowlabel { font-weight: 600; font-size: 13.5px; }
/* The best score in each row, marked. The whole reason for a comparison view. */
.cmp td.best { background: var(--teal-bg); color: var(--teal); font-weight: 600; }

.pickbar {
  display: flex; align-items: center; gap: 11px; flex-wrap: wrap;
  margin-bottom: 14px; font-size: 13px; color: var(--ink-2);
}
.pickbar label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.pickbar input { accent-color: var(--accent); width: 16px; height: 16px; }

/* ── states ──────────────────────────────────────────────────────────── */

.empty-state { text-align: center; padding: 56px 20px; color: var(--ink-3); }
.empty-state h2 { color: var(--ink); }
.empty-state p { max-width: 44ch; margin: 0 auto 18px; line-height: 1.6; font-size: 14px; }
.err {
  background: var(--bad-bg); color: var(--bad); border-radius: 6px;
  padding: 11px 14px; font-size: 13.5px; margin-top: 12px;
}

@media (max-width: 820px) {
  .rail { display: none; }
  .surface { padding: 16px 14px 50px; }
  .band .h, .band .d { margin-left: 0; }
  .band .l { width: 110px; }
}

/*
 * Where this score sits against others.
 *
 * A raw percentage is unreadable on its own — a recruiter compares, they do not score. Rank
 * for the role because "3rd of 7" is exact; percentile only once a norm group exists, and
 * always with its denominator, because "top 15%" from a sample of nine is the claim that
 * discredits everything else on the page.
 */
.standing {
  margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--rule);
  font: 500 13px/1.5 var(--sans); color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.standing b { color: var(--ink); font-weight: 600; }

/* Paste boxes: the batch input and the list of links that comes back. */
#bulk, #links {
  width: 100%; font: 400 13px/1.6 var(--mono); color: var(--ink);
  border: 1px solid var(--rule); border-radius: 6px; padding: 10px 12px;
  background: #fff; resize: vertical;
}
#links { background: var(--card); }


/* ── change password ──────────────────────────────────────────────────────
 *
 * The only modal in the console. Everything else is a surface, because a tool should not
 * interrupt itself — but changing a password is genuinely modal: you are doing one thing,
 * and you finish it or you cancel.
 */

dialog.pw {
  border: 1px solid var(--rule-2);
  border-radius: 4px;
  background: var(--card);
  color: var(--ink);
  padding: 26px 28px 24px;
  max-width: 400px;
  width: calc(100vw - 32px);
  box-shadow: 0 24px 60px -30px rgba(21, 26, 33, .5);
}

dialog.pw::backdrop { background: rgba(21, 26, 33, .38); }

dialog.pw h2 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -.01em;
}

dialog.pw .pw-note {
  margin: 0 0 18px;
  font-size: .85rem;
  color: var(--ink-3);
  line-height: 1.5;
}

dialog.pw label {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0 0 5px;
}

dialog.pw input {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 11px;
  margin: 0 0 14px;
  border: 1px solid var(--rule-2);
  border-radius: 3px;
  background: var(--sunken);
  color: var(--ink);
  font: inherit;
  font-size: .95rem;
}

dialog.pw input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

dialog.pw .pw-hint {
  margin: -8px 0 16px;
  font-size: .78rem;
  color: var(--ink-3);
  line-height: 1.45;
}

dialog.pw .pw-error {
  margin: 0 0 14px;
  padding: 9px 11px;
  border-radius: 3px;
  background: var(--bad-bg);
  color: var(--bad);
  font-size: .85rem;
  line-height: 1.45;
}

dialog.pw .pw-actions {
  display: flex;
  gap: 9px;
  justify-content: flex-end;
  margin-top: 4px;
}

/* ── row actions, the validity chips, and the edit dialog ────────────────── */

td.rowacts {
  white-space: nowrap;
  text-align: right;
  width: 1%;
}

button.mini {
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 9px;
  margin-left: 5px;
  border: 1px solid var(--rule-2);
  border-radius: 3px;
  background: var(--card);
  color: var(--ink-2);
  cursor: pointer;
}
button.mini:hover { border-color: var(--desk); color: var(--ink); }
button.mini:disabled { opacity: .55; cursor: default; }
button.mini.danger:hover { border-color: var(--bad); color: var(--bad); }
button.mini:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

/* The chips that choose how long a link stays open. */
.validity { display: flex; flex-wrap: wrap; gap: 8px; }

button.chip {
  font: inherit;
  font-size: 14px;
  padding: 7px 14px;
  border: 1px solid var(--rule-2);
  border-radius: 3px;
  background: var(--card);
  color: var(--ink-2);
  cursor: pointer;
}
button.chip:hover { border-color: var(--desk); color: var(--ink); }
button.chip[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent-bg);
  color: var(--accent-2);
  font-weight: 600;
}
button.chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

/* The edit dialog reuses the password dialog's shell, one size wider. */
dialog.pw.wide { max-width: 520px; }

dialog.pw select {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 11px;
  margin: 0 0 14px;
  border: 1px solid var(--rule-2);
  border-radius: 3px;
  background: var(--sunken);
  color: var(--ink);
  font: inherit;
  font-size: .95rem;
}
dialog.pw select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

/*
 * Two or three across, whichever it is given.
 *
 * `1fr 1fr` was right while every row here held two fields. The role dialog now sets three
 * — languages, seniority and link validity — and a fixed two-column grid wraps the third
 * underneath at half width, which reads as a mistake rather than as a layout. auto-fit
 * takes as many as fit and collapses on a narrow window without a second breakpoint.
 */
dialog.pw .ed-pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0 14px;
}
@media (max-width: 460px) {
  dialog.pw .ed-pair { grid-template-columns: 1fr; }
}

dialog.pw .ed-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 2px 0 6px;
  font-size: .92rem;
  color: var(--ink-2);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  cursor: pointer;
}
dialog.pw .ed-check input { width: auto; margin: 3px 0 0; }

/* ── what needs a person today ────────────────────────────────────────────
 *
 * Three cards above the list. Each is a button, because each one is something to do
 * rather than a number to look at — clicking narrows the list to that group.
 */

.attention {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  margin: 0 0 18px;
}

button.att {
  font: inherit;
  text-align: left;
  padding: 14px 16px 15px;
  border: 1px solid var(--rule-2);
  border-left: 3px solid var(--ink-3);
  border-radius: 4px;
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  display: block;
}
button.att:hover { border-color: var(--desk); }
button.att[aria-pressed="true"] { background: var(--accent-bg); border-color: var(--accent); }
button.att:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

button.att b {
  display: block;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.02em;
}
button.att span {
  display: block;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.4;
  margin-top: 3px;
}
button.att em {
  display: block;
  font-style: normal;
  font-size: 11.5px;
  color: var(--ink-3);
  margin-top: 7px;
}

button.att.warn { border-left-color: var(--warn); }
button.att.warn b { color: var(--warn); }
button.att.live { border-left-color: var(--teal); }
button.att.live b { color: var(--teal); }
button.att.bad  { border-left-color: var(--bad); }
button.att.bad b { color: var(--bad); }

/* ── search ─────────────────────────────────────────────────────────────── */

.searchbar {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
}

.searchbar input {
  flex: 1 1 auto;
  max-width: 340px;
  padding: 8px 11px;
  border: 1px solid var(--rule-2);
  border-radius: 3px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}
.searchbar input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.searchbar .found { font-size: 13px; color: var(--ink-3); }

.nomatch {
  margin: 0;
  padding: 22px 14px;
  text-align: center;
  color: var(--ink-3);
  font-size: 14px;
}

/* The practice link sits quieter than the settings around it — it is an offer, not a step. */
.panel.practice { background: var(--sunken); }

/* ── picking a role when composing ───────────────────────────────────────── */

.rolepick {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.rolepick select {
  flex: 1 1 240px;
  min-width: 200px;
  padding: 9px 11px;
  border: 1px solid var(--rule-2);
  border-radius: 3px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
}
.rolepick select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

/* What was decided when the role was set up, so nobody has to remember it. */
.rolesummary {
  margin: 12px 0 0;
  padding: 10px 12px;
  background: var(--sunken);
  border-radius: 3px;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.5;
}
.rolesummary b { color: var(--ink); }

dialog.pw .pw-hint code {
  font-size: .95em;
  background: var(--room);
  padding: 1px 4px;
  border-radius: 2px;
}

/* Managing roles from the rail. */
.rail .addrole {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 9px 12px;
  font: inherit;
  font-size: 14px;
  text-align: left;
  border: 1px dashed var(--rule-2);
  border-radius: 3px;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
}
.rail .addrole:hover { border-color: var(--accent); color: var(--accent); }
.rail .addrole:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

.rail h3.closed-head {
  margin-top: 18px;
  opacity: .65;
}

/*
 * A benchmark sitting in the candidate list.
 *
 * Marked rather than hidden. Somebody looking for their own analyst's result should find it
 * where they expect it, and nobody should ever mistake one for an applicant — the tag is
 * the whole distinction, so it is a colour rather than a shade of grey.
 */
.benchtag {
  display: inline-block; margin-left: 7px; padding: 1px 6px;
  border-radius: 4px; background: var(--accent-bg); color: var(--accent);
  font: 600 10.5px/1.5 var(--sans); letter-spacing: 0.06em; text-transform: uppercase;
  vertical-align: 1px;
}

/*
 * Why a candidate has not started, when the reason is ours.
 *
 * Under the status pill rather than replacing it, because the status is still accurate —
 * the link was sent and has not been used. What this adds is the part the status cannot
 * carry: that the person on the other end tried and could not get through.
 *
 * Coloured as a warning rather than an error. Nothing is broken and nobody has failed; the
 * invitation needs reissuing to an address they can prove, which is a two-minute errand and
 * should not read like an incident.
 */
.stuck-why {
  display: block; margin-top: 4px;
  font: 500 12px/1.4 var(--sans); color: var(--warn);
}

/* ── the recommendation, in the candidate list ────────────────────────── */

/*
 * Where Grade and Score used to be.
 *
 * Two columns that asked a recruiter to know what 1,175 means out of a total they were
 * never shown, and to turn a letter into a hiring decision themselves. The report had
 * always answered the real question — advance, worth a conversation, not on this evidence —
 * and the list was the one screen that did not carry it.
 *
 * Same colour language as the verdict panel on the report, deliberately: a row that reads
 * teal in the list opens onto a page whose verdict block is teal. Two vocabularies for one
 * judgement would make the list something to be translated rather than read.
 */
.verdict { white-space: nowrap; }
.rec {
  display: inline-block; padding: 4px 10px; border-radius: 5px;
  font: 600 12.5px/1.35 var(--sans); white-space: nowrap;
}
.rec.v-advance { background: var(--teal-bg); color: var(--teal); }
.rec.v-discuss { background: var(--warn-bg); color: var(--warn); }
.rec.v-not_on_this_evidence { background: var(--bad-bg); color: var(--bad); }
/* A pipeline row for a sitting that ended itself. Same red; the report says why. */
.rec.v-disqualified { background: var(--bad-bg); color: var(--bad); }
/* A non-result is grey on purpose: it is not a poor verdict, it is the absence of one. */
.rec.v-incomplete { background: var(--sunken); color: var(--ink-2); }
/* Finished before verdicts were recorded, and honest about it rather than guessing. */
.rec.old { background: var(--sunken); color: var(--ink-3); font-weight: 500; }
.rec.none { background: none; color: var(--ink-3); padding-left: 0; }

/* ── what is left to send ─────────────────────────────────────────────── */

/*
 * Quiet until it matters.
 *
 * A cap the customer cannot see arrives as a refusal in the middle of sending a shortlist,
 * which is the product failing at the moment it is most in the way. So the number is always
 * there, in the neutral colour, and only takes on weight as it runs down: amber from four
 * fifths, red when it is gone. Hidden altogether on an unlimited allowance — a figure that
 * never moves teaches the reader to stop looking at the ones that do.
 */
.quota {
  font: 500 12.5px/1 var(--sans);
  color: var(--ink-3);
  padding: 5px 9px; border-radius: 4px;
  border: 1px solid var(--rule);
  white-space: nowrap;
}
.quota.low { color: var(--warn); background: var(--warn-bg); border-color: var(--warn-bg); }
.quota.out { color: var(--bad);  background: var(--bad-bg);  border-color: var(--bad-bg); }

/*
 * The wordmark is a link now, on this page and on the report.
 *
 * Both were dead ends — the console had no route anywhere and the report had no link at all,
 * so a prospect clicking "see a finished report" from the landing page had only the back
 * button. Anchors inherit their own colour and underline, so both need saying explicitly.
 */
.top a.wordmark, .rep-head a.wordmark {
  color: inherit; text-decoration: none;
}
.top a.wordmark:hover, .rep-head a.wordmark:hover { color: var(--accent); }

/*
 * The console's footer.
 *
 * The page had no route to anything outside itself — a recruiter could not reach the public
 * site, or the demo they might want to forward to a colleague. In a footer rather than the
 * header so it is reachable without competing with the work.
 */
/*
 * A status bar under the frame, not a page footer inside it.
 *
 * It was styled as an article footer — sixty pixels of vertical padding, centred in a
 * 1180px column — which is right at the bottom of a document and wrong here. The console is
 * a full-height application: the header is fixed, the frame fills what is left, and the
 * surface scrolls inside it. Nothing on this page is ever "the bottom of the page", so a
 * footer that waits to be scrolled to is a footer nobody reaches.
 *
 * So it is a permanent slim rail instead. `flex: none` matters — as a row in the body column
 * it would otherwise be handed a share of the height that the candidate list needs.
 */
.console-foot {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  flex: none; width: 100%;
  padding: 11px 24px; border-top: 1px solid var(--rule);
  background: var(--card);
  font: 400 12.5px/1.4 var(--sans);
}
.console-foot .dim { color: var(--ink-3); font-weight: 600; }
.console-foot a { color: var(--ink-2); text-decoration: none; }
.console-foot a:hover { color: var(--accent); text-decoration: underline; }

/* ── integrations ────────────────────────────────────────────────────── */

/*
 * A section heading inside a dialog.
 *
 * Three distinct jobs sit on this one screen — verify what we send, fetch it yourself, see
 * whether it worked — and without headings they read as one long paragraph of
 * configuration. Small, because a dialog with h2-sized subheadings looks like a page that
 * escaped.
 */
.int-h {
  margin: 22px 0 6px;
  font: 600 13px/1.4 var(--sans);
  letter-spacing: .03em; text-transform: uppercase;
  color: var(--ink-3);
}
.int-h:first-of-type { margin-top: 14px; }

/*
 * A credential, meant to be selected and copied.
 *
 * Monospace and wrapping rather than truncated: a secret shown with an ellipsis in the
 * middle is a secret somebody copies wrong and then spends an hour debugging a signature
 * mismatch that was never in the code.
 */
.int-code {
  display: block; margin: 0 0 4px; padding: 10px 12px;
  background: var(--sunken); border: 1px solid var(--rule); border-radius: 8px;
  font: 500 13px/1.5 var(--mono); color: var(--ink);
  word-break: break-all; user-select: all;
}

/*
 * The two credential blocks.
 *
 * Their contents are swapped between three states — a value, a hint about a value that
 * cannot be shown again, or nothing yet — so the spacing belongs on the container rather
 * than on each of the three, which would otherwise have to agree with each other.
 */
.int-secret, .int-key { margin: 0 0 4px; }
.int-secret p, .int-key p { margin: 0; }

.int-none { font-style: italic; }

/* The one line in this dialog that is genuinely urgent: it will not be shown again. */
.int-warn { color: var(--warn); font-weight: 500; }

.int-log { margin-top: 4px; }
.int-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.int-tbl td {
  padding: 7px 10px 7px 0; border-bottom: 1px solid var(--rule);
  color: var(--ink-2); vertical-align: top;
}
/*
 * A failed delivery is the only reason this list exists, so it is the only row that is
 * coloured. Marking successes green as well would make a wall of green that a failure hides
 * inside.
 */
.int-tbl tr.bad td { color: var(--bad); }
.int-tbl tr.bad b { color: var(--bad); }
.int-url { font-family: var(--mono); font-size: 12px; word-break: break-all; }
.int-when { white-space: nowrap; color: var(--ink-3); }

/* A URL field with its own save button, so the dialog's main action stays "Done". */
.int-row { display: flex; gap: 8px; align-items: center; margin-bottom: 4px; }
.int-input {
  flex: 1; min-width: 0; padding: 9px 11px;
  font: 400 13.5px/1.4 var(--mono); color: var(--ink);
  background: #fff; border: 1px solid var(--rule); border-radius: 6px;
}
.int-input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
