/* Attron Talent. Brand: Attron Brand Guidelines v1.0, as used by the Attron KPI portal.
   Attron Blue for structure, Signal Yellow for one or two highlights, white and light-grey paper, black ink, Poppins. See DESIGN.md. */
@font-face {
  font-family: Poppins;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/brand/poppins-400.woff") format("woff");
}
@font-face {
  font-family: Poppins;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/brand/poppins-500.woff") format("woff");
}
@font-face {
  font-family: Poppins;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/brand/poppins-700.woff") format("woff");
}

:root {
  --blue: #000080; /* Attron Blue: structure, actions, measured values */
  --blue-deep: #00006b;
  --on-blue: #ffffff;
  --on-blue-2: #d7d7f3;
  --yellow: #ffd008; /* Signal Yellow: one or two small highlights per screen */
  --ground: #ffffff;
  --surface: #ffffff;
  --raised: #efefef;
  --active: #ffffff;
  --border: #d9d9d9;
  --rule: #d9d9d9;
  --control: #bfbfbf;
  --text: #000000;
  --ink-2: #333333;
  --muted: #555555;
  --accent: #000080;
  --accent-pale: #e8e8f4;
  --primary: #000080;
  --positive: #000080;
  --negative: #a3001b;
  --error-wash: #fbecee;
  --error-line: #e3b3bb;
  --pill-positive-bg: #ffffff;
  --pill-positive-ink: #000080;
  --pill-negative-bg: #fbecee;
  --pill-negative-ink: #a3001b;
  --pill-warning-bg: #ffffff;
  --pill-warning-ink: #333333;
  --pill-neutral-bg: #ffffff;
  --pill-neutral-ink: #333333;
  --grid: #e6e6e6;
  --radius-card: 10px;
  --radius-control: 6px;
  --radius-sheet: 0;
  --gap: 24px;
  --pad: 32px 40px 56px;
  --control-height: 38px;
  --field-height: 38px;
  --sidebar-width: 248px;
  --fs-title: 26px;
  --fs-section: 18px;
  --fs-kpi: 30px;
  --fs-body: 14px;
  --fs-small: 13px;
  font-family: Poppins, "Segoe UI", Arial, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--text);
  background: var(--ground);
  -webkit-text-size-adjust: 100%;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--ground);
  font-variant-numeric: tabular-nums;
  min-height: 100vh;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  color: var(--text);
}
h1 {
  font-size: var(--fs-title);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
h2 {
  font-size: var(--fs-section);
  line-height: 24px;
}
h3 {
  font-size: 14px;
  line-height: 20px;
}
h4 {
  font-size: 14px;
  line-height: 20px;
  margin: 20px 0 8px;
}
p {
  margin: 0;
}
a {
  color: var(--accent);
  text-underline-offset: 2px;
}
code {
  font-family: inherit;
  background: var(--raised);
  border-radius: 4px;
  padding: 1px 5px;
}
.num,
.kpis,
table td {
  font-variant-numeric: tabular-nums;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 12px;
  top: 8px;
  z-index: 50;
  background: var(--surface);
  padding: 8px 12px;
  border-radius: var(--radius-control);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
::selection {
  background: var(--yellow);
  color: #000;
}

/* ---------- shell: Attron Blue rail with the white lockup, white work area (as the KPI portal) ---------- */
.topbar {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  background: var(--blue);
  color: var(--on-blue);
  position: relative;
  z-index: 20;
}
.topbar :focus-visible,
.sidebar :focus-visible {
  outline-color: var(--yellow);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--on-blue);
  text-decoration: none;
  white-space: nowrap;
}
.brand .logo {
  display: block;
  width: 180px;
  height: auto;
}
.brand .product {
  font-size: 13px;
  font-weight: 500;
  color: var(--on-blue-2);
  padding-left: 14px;
  border-left: 1px solid #ffffff33;
}
.scope {
  color: var(--on-blue-2);
  font-size: var(--fs-small);
  white-space: nowrap;
}
.top-search {
  flex: 1;
  display: flex;
  justify-content: center;
}
.top-search input {
  width: min(100%, 520px);
  height: 38px;
}
.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}
#site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  overflow-x: auto;
  min-width: 0;
}
#site-nav a {
  color: var(--on-blue-2);
  text-decoration: none;
  white-space: nowrap;
}
#site-nav a:hover,
#site-nav a[aria-current="page"] {
  color: #fff;
  text-decoration: underline;
}
.topbar button.quiet,
.menu-toggle {
  background: transparent;
  color: #fff;
  border: 1px solid #ffffff59;
}
.topbar button.quiet:hover,
.menu-toggle:hover {
  background: #ffffff14;
}

/* staff: the rail runs full height; the top bar becomes a white tool strip beside it */
body.staff {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  min-height: 100vh;
}
body.staff .layout {
  display: contents;
}
body.staff .sidebar {
  grid-column: 1;
  grid-row: 1 / 3;
}
body.staff .topbar {
  grid-column: 2;
  grid-row: 1;
  background: #fff;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  min-height: 56px;
  padding: 0 40px;
}
body.staff .topbar .brand {
  display: none;
}
body.staff .topbar .scope {
  color: var(--muted);
}
body.staff .topbar :focus-visible {
  outline-color: var(--blue);
}
body.staff .topbar button.quiet {
  color: var(--blue);
  border-color: var(--blue);
}
body.staff .topbar button.quiet:hover {
  background: var(--raised);
}
body.staff .sheet {
  grid-column: 2;
  grid-row: 2;
}
.layout {
  min-height: calc(100vh - 64px);
}
.sheet {
  background: var(--surface);
  padding: var(--pad);
  min-width: 0;
  position: relative;
}
body.staff .sheet {
  max-width: 1400px;
}
body.portal .sheet {
  max-width: 1152px;
  margin: 0 auto;
  padding: 40px 24px 56px;
}

/* ---------- rail ---------- */
.sidebar {
  background: var(--blue);
  color: var(--on-blue);
  padding: 28px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.rail-logo img {
  display: block;
  width: 188px;
  height: auto;
}
.rail-product {
  margin: 14px 0 22px;
  font-size: 12px;
  font-weight: 500;
  color: var(--on-blue-2);
}
.tabs {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tabs button {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  row-gap: 1px;
  width: 100%;
  height: auto;
  padding: 7px 12px;
  background: transparent;
  border: 0;
  border-radius: var(--radius-control);
  color: var(--on-blue-2);
  font: inherit;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
.tabs button:hover {
  color: #fff;
  background: #ffffff14;
}
.tabs button[aria-current="page"] {
  background: #fff;
  color: var(--blue);
  font-weight: 500;
}
/* One-line hint under each screen name, so the rail says what each screen is for. */
.tabs button small {
  grid-column: 1 / -1;
  font-size: 11.5px;
  line-height: 1.35;
  font-weight: 400;
  color: var(--on-blue-2);
  opacity: 0.85;
}
.tabs button[aria-current="page"] small {
  color: var(--blue);
  opacity: 0.75;
}
.nav-group {
  margin: 14px 0 4px;
  padding: 0 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--yellow);
}
.nav-group[hidden] {
  display: none;
}
/* Home: the four steps of a test round, each a way into its screen. */
.round-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  background: var(--surface);
  counter-reset: step;
}
.round-steps li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  counter-increment: step;
}
.round-steps li + li {
  border-left: 1px solid var(--rule);
}
.round-steps li::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.round-steps strong {
  font-size: 15px;
}
.round-steps p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-2);
  flex: 1;
}
.round-steps button {
  align-self: flex-start;
}
@media (max-width: 960px) {
  .round-steps {
    grid-template-columns: 1fr 1fr;
  }
  .round-steps li:nth-child(3) {
    border-left: 0;
  }
  .round-steps li:nth-child(n + 3) {
    border-top: 1px solid var(--rule);
  }
}
.count {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: inherit;
}
.count:empty {
  display: none;
}
.sidebar-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid #ffffff33;
  font-size: var(--fs-small);
  color: var(--on-blue-2);
}
.sidebar-foot a {
  color: var(--on-blue-2);
}
#admin-who strong {
  display: block;
  color: #fff;
  font-weight: 500;
}

/* ---------- title row ---------- */
.title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px 24px;
  flex-wrap: wrap;
  margin-bottom: var(--gap);
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}
.title-actions {
  display: flex;
  gap: 8px;
}
.subline {
  color: var(--muted);
  margin-top: 4px;
  max-width: 72ch;
}
.lede {
  color: var(--muted);
  font-size: 16px;
  line-height: 24px;
  margin-top: 6px;
  max-width: 64ch;
}
.crumb {
  font-size: var(--fs-small);
  color: var(--muted);
  margin-bottom: 2px;
}
.crumb a {
  color: var(--muted);
}
.crumb a::after {
  content: " /";
}
.meta {
  color: var(--muted);
  font-size: var(--fs-small);
}
.hint {
  color: var(--muted);
  font-size: var(--fs-small);
  line-height: 18px;
}

/* ---------- panels and cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 20px;
  min-width: 0;
}
.card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.card > .subline {
  margin: -4px 0 16px;
}
.main-rail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 384px;
  gap: var(--gap);
  align-items: start;
}
.rail {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.rail > h2 {
  margin: 0 0 8px;
}
.rail > h2 ~ h2 {
  margin-top: var(--gap);
}
.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
  align-items: start;
  margin-top: var(--gap);
}
.screen > * + * {
  margin-top: var(--gap);
}
.screen > .title-row + * {
  margin-top: 0;
}
#bulk-form {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}
.gate {
  padding: 8px 0 24px;
}

/* ---------- KPI strip: one container split by rules ---------- */
.kpis {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  margin-bottom: var(--gap);
}
.kpis:empty {
  display: none;
}
.kpi {
  padding: 16px 20px;
  min-width: 0;
}
.kpi + .kpi {
  border-left: 1px solid var(--rule);
}
.kpi dt {
  color: var(--muted);
  font-size: 13px;
}
.kpi dd {
  margin: 4px 0 0;
  font-size: var(--fs-kpi);
  line-height: 1.2;
  font-weight: 700;
  color: var(--blue);
}
.kpi dd.lead {
  color: var(--accent);
}
.kpi .cap {
  display: block;
  line-height: 16px;
  color: var(--muted);
  font-size: var(--fs-small);
  margin-top: 2px;
}

/* ---------- tables ---------- */
.table-wrap {
  position: relative;
  overflow-x: auto;
  margin: 0 -8px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-body);
}
th {
  text-align: left;
  font-size: var(--fs-small);
  font-weight: 700;
  color: #fff;
  background: var(--blue);
  padding: 10px 14px;
  white-space: nowrap;
}
thead th:first-child {
  border-top-left-radius: 4px;
}
thead th:last-child {
  border-top-right-radius: 4px;
}
tbody tr:nth-child(even) > td {
  background: var(--raised);
}
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--rule);
  vertical-align: middle;
}
th.num,
td.num {
  text-align: right;
}
td small,
td .sub {
  display: block;
  color: var(--muted);
  font-size: var(--fs-small);
  margin-top: 2px;
}
td.id {
  max-width: 14ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
}
td.act {
  text-align: right;
  white-space: nowrap;
  width: 1%;
}
tr.is-picked td {
  background: var(--accent-pale);
}
.empty {
  border: 1px dashed #a6a6a6;
  border-radius: var(--radius-card);
  padding: 10px 14px;
  color: var(--muted);
}

/* ---------- pills ---------- */
.pill,
.tag {
  display: inline-flex;
  align-items: center;
  flex: none;
  min-height: 22px;
  padding: 1px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  background: var(--pill-neutral-bg);
  color: var(--pill-neutral-ink);
  border: 1px solid var(--border);
  vertical-align: middle;
}
/* chips always carry a word: verified = blue outline, not yet = dashed, error = red wash */
.pill.positive {
  background: #fff;
  color: var(--blue);
  border-color: var(--blue);
}
.pill.negative {
  background: var(--error-wash);
  color: var(--negative);
  border-color: var(--error-line);
}
.pill.warning {
  background: #fff;
  color: var(--ink-2);
  border: 1px dashed #808080;
}
.tag {
  background: #fff;
  color: #000;
  border-color: #000;
}
.tag::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 1px #000;
  margin-right: 6px;
}
.pill.accent {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.ok {
  color: var(--positive);
  font-weight: 500;
}
.warn {
  color: var(--pill-warning-ink);
  font-weight: 500;
}
.bad {
  color: var(--negative);
  font-weight: 500;
}

/* ---------- controls ---------- */
button,
.button {
  font: inherit;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: var(--control-height);
  padding: 0 14px;
  border-radius: var(--radius-control);
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #ffffff;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background-color 0.12s,
    border-color 0.12s,
    transform 0.08s;
}
button:hover,
.button:hover {
  background: var(--blue-deep);
}
button:active {
  transform: translateY(1px);
}
button.secondary,
.button.secondary {
  background: var(--surface);
  color: var(--blue);
  border-color: var(--blue);
}
button.secondary:hover,
.button.secondary:hover {
  background: var(--raised);
}
button.quiet {
  background: transparent;
  border-color: transparent;
  color: var(--blue);
  padding: 0 8px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
button.quiet:hover {
  background: var(--raised);
}
button.danger {
  background: var(--surface);
  color: var(--negative);
  border-color: #e6b3b3;
}
button.danger:hover {
  background: var(--pill-negative-bg);
}
button:disabled,
.button[aria-disabled="true"] {
  background: var(--raised);
  border-color: var(--border);
  color: #6b7075;
  cursor: not-allowed;
  transform: none;
}
label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 500;
  min-width: 0;
}
input,
select,
textarea {
  font: inherit;
  font-weight: 400;
  color: var(--text);
  background: var(--surface);
  border: 1px solid #d9dde1;
  border-radius: var(--radius-control);
  min-height: var(--field-height);
  padding: 0 10px;
  width: 100%;
  min-width: 0;
}
select {
  border-color: var(--control);
}
textarea {
  padding: 8px 10px;
  line-height: 20px;
  resize: vertical;
}
input::placeholder,
textarea::placeholder {
  color: #6b7075;
}
input[type="checkbox"],
input[type="radio"] {
  width: 18px;
  height: 18px;
  min-height: 0;
  margin: 0;
  flex: none;
  accent-color: var(--accent);
}
input[type="number"] {
  width: 84px;
}
label.check {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
}
label.check input {
  margin-top: 1px;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
legend {
  font-weight: 500;
  margin-bottom: 10px;
  padding: 0;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.stack + .stack {
  margin-top: 20px;
}
.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.toolbar,
.inline-form {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
}
.toolbar .grow,
.bulk-bar .grow {
  flex: 1 1 240px;
}
.toolbar label,
.inline-form label {
  font-size: var(--fs-small);
  color: var(--muted);
  gap: 4px;
}
.inline-form select {
  min-width: 260px;
}
.inline-label {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}
.joined {
  display: flex;
}
.joined input {
  border-radius: var(--radius-control) 0 0 var(--radius-control);
}
.joined button {
  border-radius: 0 var(--radius-control) var(--radius-control) 0;
  height: var(--field-height);
  margin-left: -1px;
}
.pager {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
.confirm {
  margin-top: 16px;
  padding: 12px;
  background: var(--raised);
  border-radius: var(--radius-card);
}
.confirm p {
  margin-bottom: 10px;
}

/* ---------- underline tabs ---------- */
.underline-tabs {
  display: flex;
  gap: 20px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}
.underline-tabs button {
  height: 40px;
  padding: 0;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: var(--muted);
  font-weight: 400;
}
.underline-tabs button:hover {
  background: none;
  color: var(--text);
}
.underline-tabs button[aria-selected="true"] {
  color: var(--text);
  font-weight: 500;
  border-bottom-color: var(--text);
}
.underline-tabs .count {
  margin-left: 4px;
}

/* ---------- overview ---------- */
.list-card {
  padding: 4px 16px;
}
.attention-row,
.ready-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
}
.attention-row + .attention-row,
.ready-row + .ready-row {
  border-top: 1px solid var(--rule);
}
.attention-row p {
  color: var(--muted);
  font-size: var(--fs-small);
  margin-top: 2px;
}
.attention-row strong {
  font-weight: 500;
}
.funnel-svg {
  display: block;
  width: 100%;
  min-width: 140px;
  height: 10px;
}
.bar-svg {
  display: block;
  width: 96px;
  height: 6px;
}
.legend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: var(--fs-small);
  color: var(--muted);
}
.legend i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  margin-right: 6px;
  vertical-align: 0;
}
.sw-1 {
  background: #a9c4de;
}
.sw-2 {
  background: var(--accent);
}
.sw-3 {
  background: #0d3a63;
}
.sw-4 {
  background: #d3d8dd;
}

rect.sw-1 {
  fill: #a9c4de;
}
rect.sw-2 {
  fill: var(--accent);
}
rect.sw-3 {
  fill: #0d3a63;
}
rect.sw-4,
rect.track-bg {
  fill: #e6ebef;
}
rect.below {
  fill: #c9ced3;
}
line.cut-line {
  stroke: var(--text);
  stroke-width: 1;
  stroke-dasharray: 3 3;
}
line.axis {
  stroke: var(--border);
}
.funnel-cell {
  min-width: 160px;
}

/* ---------- screening: shortlist cut ---------- */
.cut-chart svg {
  display: block;
  width: 100%;
  height: 200px;
  margin-bottom: 8px;
}
.cut-chart text {
  font-family: inherit;
  font-size: 12px;
  fill: var(--muted);
}
.cut-card .toolbar {
  margin-top: 12px;
}
.bulk-bar {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  flex-wrap: wrap;
  position: sticky;
  bottom: 8px;
  z-index: 5;
  box-shadow: 0 6px 18px rgba(19, 20, 22, 0.08);
}
.bulk-bar textarea {
  min-height: var(--field-height);
}
.bulk-bar #bulk-result:empty {
  display: none;
}
.settings summary {
  cursor: pointer;
  font-weight: 700;
  font-size: var(--fs-section);
  list-style: none;
  display: flex;
  justify-content: space-between;
}
.settings summary::after {
  content: "Show";
  font-weight: 400;
  font-size: var(--fs-small);
  color: var(--muted);
}
.settings[open] summary::after {
  content: "Hide";
}
.settings[open] summary {
  margin-bottom: 16px;
}
#segment-settings table select {
  min-width: 120px;
}

/* ---------- detail ---------- */
.detail:empty {
  display: none;
}
.detail {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 20px;
}
.detail-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.detail-head .subline {
  margin-top: 4px;
}
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: var(--gap);
  align-items: start;
}
.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 16px;
  margin: 0;
}
.facts dt {
  color: var(--muted);
}
.facts dd {
  margin: 0;
}
.section-scores .row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px 56px;
  gap: 12px;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid var(--rule);
}
.section-scores svg {
  width: 140px;
  height: 8px;
  display: block;
}

/* ---------- question queue ---------- */
.questions article {
  padding: 16px 0;
  border-top: 1px solid var(--rule);
}
.questions article:first-child {
  border-top: 0;
}
.questions article h3 {
  font-weight: 500;
  margin: 4px 0 8px;
  max-width: 72ch;
}
.questions ol {
  margin: 0 0 8px;
  padding-left: 22px;
  color: var(--text);
}
.questions li.key {
  font-weight: 500;
}
.questions form > button {
  align-self: flex-start;
}
.questions .actions-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.review {
  margin-top: 8px;
}
.review summary {
  cursor: pointer;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  width: max-content;
}
.questions form {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 560px;
}
.q-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: var(--fs-small);
}
.pick {
  float: right;
  font-size: var(--fs-small);
  margin-left: 12px;
}
.bulk-review .checks {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: var(--fs-small);
}
#bulk-approve-result:empty {
  display: none;
}
.queue > * + * {
  margin-top: 16px;
}

/* ---------- candidate portal ---------- */
.portal-head {
  margin-bottom: var(--gap);
}
.portal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 384px;
  gap: var(--gap);
  align-items: start;
}
.portal-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.portal-side > #password-login {
  order: -1;
}
.block + .block,
#candidate-work + .block {
  margin-top: 40px;
}
.block > h2 {
  margin-bottom: 12px;
}
.block > .subline {
  margin: -6px 0 16px;
}
.next-step {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--raised);
  border-radius: var(--radius-card);
  padding: 20px 24px;
  margin-bottom: var(--gap);
}
.next-step strong {
  display: block;
  font-size: 18px;
  line-height: 26px;
  font-weight: 700;
}
.next-step span {
  color: var(--muted);
}
.record {
  padding: 16px 0;
  border-top: 1px solid var(--rule);
}
.record:first-child {
  border-top: 0;
  padding-top: 4px;
}
.record h3 {
  font-size: var(--fs-section);
  line-height: 24px;
  margin-bottom: 4px;
}
.record p {
  color: var(--muted);
  margin-bottom: 10px;
  max-width: 72ch;
}
.record.linked {
  background: var(--accent-pale);
  border-radius: var(--radius-card);
  padding: 16px;
  border-top: 0;
}
.job-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.knockout {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 520px;
  margin-top: 12px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}
.knockout fieldset {
  flex-direction: row;
  gap: 20px;
  flex-wrap: wrap;
}
.knockout legend {
  width: 100%;
}
.track {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 8px 0 12px;
}
.track li {
  font-size: var(--fs-small);
  height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
}
.track li.done {
  background: var(--raised);
  color: var(--text);
  border-color: var(--raised);
}
.track li.current {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  font-weight: 500;
}

/* ---------- assessment ---------- */
#assessment:empty {
  display: none;
}
#assessment {
  margin-top: 16px;
}
#assessment > p {
  color: var(--muted);
  margin: 6px 0 12px;
}
.test-bar {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  margin-bottom: 8px;
}
.timer {
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
#answered,
#save-state {
  color: var(--muted);
}
#test-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
#test-form fieldset {
  padding: 16px 0;
  border-top: 1px solid var(--rule);
  gap: 6px;
}
#test-form legend {
  font-weight: 500;
  line-height: 22px;
  float: left;
  width: 100%;
  margin-bottom: 8px;
}
.answer {
  flex-direction: row;
  align-items: center;
  gap: 12px;
  font-weight: 400;
  min-height: 40px;
  padding: 0 10px;
  border-radius: var(--radius-control);
  cursor: pointer;
}
.answer:hover {
  background: var(--raised);
}
.answer:has(input:checked) {
  background: var(--accent-pale);
}
#test-form > button {
  align-self: flex-start;
  margin-top: 8px;
}

/* ---------- toast ---------- */
.toast {
  position: fixed;
  top: 56px;
  right: 16px;
  z-index: 40;
  max-width: min(420px, calc(100vw - 32px));
  background: var(--primary);
  color: #ffffff;
  padding: 10px 14px;
  border-radius: var(--radius-card);
  box-shadow: 0 8px 24px rgba(19, 20, 22, 0.18);
  pointer-events: none;
  transition: opacity 0.2s;
}
.toast:empty {
  display: none;
}
.toast.fade {
  opacity: 0;
}

/* ---------- footer ---------- */
.foot {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-size: var(--fs-small);
  color: var(--muted);
}
.foot a {
  color: var(--muted);
}

/* ---------- tablet: the sidebar folds into a menu ---------- */
@media (max-width: 1100px) {
  .main-rail,
  .detail-grid,
  .portal-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 1024px) {
  /* the rail becomes a blue top bar with the lockup; navigation opens under Menu */
  body.staff {
    display: block;
  }
  body.staff .layout {
    display: block;
  }
  body.staff .topbar {
    background: var(--blue);
    color: #fff;
    border-bottom: 0;
    padding: 0 16px;
    min-height: 64px;
  }
  body.staff .topbar .brand {
    display: inline-flex;
  }
  body.staff .topbar .scope {
    color: var(--on-blue-2);
  }
  body.staff .topbar button.quiet {
    color: #fff;
    border-color: #ffffff59;
  }
  body.staff .topbar :focus-visible {
    outline-color: var(--yellow);
  }
  body.staff .menu-toggle {
    display: inline-flex;
  }
  body.staff .sidebar {
    display: none;
  }
  body.staff.menu-open .sidebar {
    display: flex;
    position: fixed;
    inset: 64px 0 0 0;
    height: auto;
    z-index: 30;
  }
  body.staff.menu-open .rail-logo,
  body.staff.menu-open .rail-product {
    display: none;
  }
  .sheet,
  body.staff .sheet {
    padding: 28px 24px 48px;
  }
  .top-search {
    display: none;
  }
}
@media (min-width: 1025px) {
  .menu-toggle {
    display: none !important;
  }
}

/* ---------- phone ---------- */
@media (max-width: 640px) {
  :root {
    --pad: 16px;
    --gap: 16px;
  }
  .topbar {
    padding: 0 16px;
    gap: 10px;
  }
  .scope {
    display: none;
  }
  .site-nav,
  #site-nav {
    gap: 12px;
  }
  body.staff #site-nav {
    display: none;
  }
  .sheet,
  body.staff .sheet,
  body.portal .sheet {
    margin: 0;
    padding: 20px 16px 40px;
  }
  .brand .product {
    display: none;
  }
  body.guest .portal-side {
    order: -1;
  }
  .kpis {
    grid-auto-flow: row;
    grid-template-columns: 1fr 1fr;
  }
  .kpi + .kpi {
    border-left: 0;
  }
  .kpi:nth-child(even) {
    border-left: 1px solid var(--rule);
  }
  .kpi:nth-child(n + 3) {
    border-top: 1px solid var(--rule);
  }
  .two-col,
  .pair {
    grid-template-columns: 1fr;
  }
  button,
  .button {
    min-height: 44px;
  }
  .tabs button,
  .underline-tabs button {
    min-height: 44px;
  }
  .inline-form select {
    min-width: 0;
  }
  .inline-form,
  .inline-form label {
    width: 100%;
  }
  .bulk-bar {
    position: static;
    box-shadow: none;
  }
  .next-step {
    padding: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- test page, home notice, Zoho Recruit screen ---------- */
#home-view,
#test-view {
  max-width: 760px;
}
.plain-list {
  margin: 8px 0 0;
  padding-left: 20px;
  color: var(--muted);
}
.plain-list li + li {
  margin-top: 6px;
}
.steps {
  margin: 0;
  padding-left: 22px;
}
.steps li {
  padding: 6px 0;
}
.steps li strong {
  display: block;
  font-weight: 500;
}
.test-intro {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
.test-intro .steps li strong {
  display: inline;
  margin-right: 8px;
}
.api-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: var(--fs-small);
}
.api-card pre,
.api-card code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}
.api-card pre {
  margin: 0;
  padding: 10px;
  background: var(--raised);
  border-radius: var(--radius-control);
  overflow-x: auto;
}
#zoho-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
#import-result:empty {
  display: none;
}
#key-made:empty {
  display: none;
}

/* ---------- Zoho Recruit ---------- */
.sync-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.sync-row .subline {
  margin: 0;
  max-width: 72ch;
}
.fallback > summary {
  cursor: pointer;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  width: max-content;
  margin-bottom: 12px;
}
ul.errors {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: var(--fs-small);
}
#recruit-settings fieldset {
  gap: 10px;
}
#recruit-settings legend {
  margin-bottom: 4px;
}
#manual-tools .two-col {
  margin-top: 8px;
}
#manual-tools h3 {
  font-size: var(--fs-section);
}
.ready-row small {
  display: block;
  margin-top: 2px;
}

/* ---------- candidate verification ---------- */
.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: var(--gap);
  align-items: start;
}
.verify-card .stack {
  margin-top: 16px;
}
.verify-card button {
  align-self: flex-start;
}
.form-error {
  color: var(--negative);
  font-size: var(--fs-small);
}
.form-error:empty {
  display: none;
}
#test-verify-slot .verify-card {
  max-width: 440px;
}
.test-choice {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--rule);
}
.test-choice:first-child {
  border-top: 0;
}
@media (max-width: 760px) {
  .home-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- test player (one question at a time) ---------- */
body.testing .topbar,
body.testing .foot,
body.testing #notice:empty {
  display: none;
}
body.testing .sheet {
  max-width: none;
  padding: 0;
}
.player {
  position: fixed;
  inset: 0;
  z-index: 25;
  display: grid;
  grid-template-rows: auto 1fr;
  background: #fff;
  user-select: none;
  -webkit-user-select: none;
}
.player-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 10px 28px;
  background: var(--blue);
  color: #fff;
  min-height: 84px;
}
.player-logo {
  width: 180px;
  height: auto;
  flex: none;
}
.player-title {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding-left: 24px;
  border-left: 1px solid #ffffff33;
}
.player-title strong {
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player-title span {
  color: var(--on-blue-2);
  font-size: 13px;
}
/* the clock: top right, the largest figure on screen */
.clock {
  margin-left: auto;
  display: grid;
  justify-items: end;
  padding: 6px 16px;
  border-radius: var(--radius-control);
  border: 1px solid #ffffff59;
  min-width: 200px;
}
.clock-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--on-blue-2);
}
.clock-time {
  font-size: 40px;
  line-height: 1.05;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}
.clock-window {
  font-size: 12px;
  color: var(--on-blue-2);
  font-variant-numeric: tabular-nums;
}
.clock.warn {
  background: var(--yellow);
  border-color: var(--yellow);
  color: #000;
}
.clock.warn .clock-label,
.clock.warn .clock-window {
  color: #000;
}
.clock.crit {
  background: #fff;
  border-color: #fff;
  color: var(--negative);
}
.clock.crit .clock-label,
.clock.crit .clock-window {
  color: var(--negative);
}
.player-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  min-height: 0;
}
.player-main {
  padding: 28px 40px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.q-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.q-head h1 {
  font-size: 20px;
}
.q-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px 28px 24px;
  min-height: 340px;
}
.q-stem {
  position: relative;
  font-size: 18px;
  line-height: 1.55;
  font-weight: 500;
  max-width: 72ch;
  margin-bottom: 22px;
}
.q-options {
  position: relative;
  display: grid;
  gap: 10px;
  max-width: 760px;
}
.q-option {
  flex-direction: row;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  padding: 10px 16px;
  border: 1px solid var(--control);
  border-radius: var(--radius-control);
  background: rgba(255, 255, 255, 0.92);
  font-weight: 400;
  font-size: 16px;
  cursor: pointer;
  transition: border-color 0.12s, background-color 0.12s;
}
.q-option:hover {
  border-color: var(--blue);
}
.q-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.q-option:has(input:focus-visible) {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.q-letter {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--blue);
  color: var(--blue);
  font-weight: 700;
  font-size: 13px;
}
.q-option.chosen {
  border-color: var(--blue);
  background: var(--accent-pale);
}
.q-option.chosen .q-letter {
  background: var(--blue);
  color: #fff;
}
/* name and Candidate ID behind the question, so photographs identify their source */
.watermark {
  position: absolute;
  inset: -40px;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 54px 70px;
  transform: rotate(-18deg);
  pointer-events: none;
  color: #000080;
  opacity: 0.055;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}
.q-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.q-spacer {
  flex: 1;
}
.q-keys {
  margin-top: -6px;
}
.player-side {
  border-left: 1px solid var(--border);
  background: #fff;
  padding: 24px 24px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.p-legend {
  list-style: none;
  margin: 0;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--border);
  display: grid;
  gap: 8px;
  font-size: 13px;
}
.p-legend li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.p-secname {
  font-size: 15px;
}
.palette {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
/* palette tiles: colour plus shape; the word is in each tile's label */
.tile {
  position: relative;
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-control);
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  border: 1px solid var(--control);
  background: var(--raised);
  color: var(--ink-2);
}
.p-legend .tile {
  min-width: 30px;
  height: 26px;
  font-size: 12px;
}
.tile.not-answered {
  background: #fff;
  color: var(--negative);
  border: 1.5px solid var(--negative);
}
.tile.answered {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.tile.marked {
  background: var(--yellow);
  border-color: #000;
  color: #000;
  border-radius: 50%;
}
.tile.answered-marked {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  border-radius: 50%;
}
.tile.answered-marked::after {
  content: "";
  position: absolute;
  right: -2px;
  top: -2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 1.5px #000;
}
.palette .tile:hover {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}
.palette .tile.current {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #000;
}
.p-submit {
  margin-top: 6px;
}
.p-rules {
  line-height: 1.45;
}
.guard {
  position: absolute;
  inset: 84px 0 0 0;
  z-index: 5;
  display: grid;
  place-items: center;
  background: #ffffff;
}
.guard-card {
  max-width: 520px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px;
  display: grid;
  gap: 14px;
}
.guard-card h2 {
  font-size: 20px;
}
.p-confirm {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px;
  max-width: 460px;
  box-shadow: -12px 0 40px rgba(0, 0, 40, 0.18);
}
.p-confirm::backdrop {
  background: rgba(0, 0, 40, 0.38);
}
.p-confirm p {
  margin: 10px 0 18px;
}
.section-intro .rules {
  margin: 14px 0;
}
.section-intro button {
  margin-top: 8px;
}
@media print {
  body.testing * {
    visibility: hidden !important;
  }
}
@media (max-width: 1100px) {
  .player-body {
    grid-template-columns: minmax(0, 1fr) 280px;
  }
  .player-main {
    padding: 20px 24px;
  }
}

/* ---------- drawers (native dialog): the one raised surface ---------- */
dialog.drawer {
  margin: 0 0 0 auto;
  height: 100vh;
  max-height: 100vh;
  width: min(560px, 94vw);
  border: 0;
  border-left: 1px solid var(--border);
  padding: 24px 28px 40px;
  box-shadow: -12px 0 40px rgba(0, 0, 40, 0.18);
  overflow-y: auto;
  animation: drawer-in 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
}
dialog.drawer.wide {
  width: min(1000px, 94vw);
}
dialog.drawer::backdrop {
  background: rgba(0, 0, 40, 0.38);
}
@keyframes drawer-in {
  from {
    transform: translateX(32px);
    opacity: 0;
  }
}
.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.drawer-head h2 {
  font-size: 22px;
}
.drawer-section {
  font-size: 18px;
  margin: 28px 0 12px;
}
.test-record {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 18px 20px;
  display: grid;
  gap: 12px;
}
.test-record + .test-record {
  margin-top: 14px;
}
.test-record .detail-head {
  margin-bottom: 0;
}
.timeline {
  margin: 10px 0 6px;
  padding-left: 20px;
  display: grid;
  gap: 4px;
  font-size: 13px;
}
table.people td small {
  white-space: nowrap;
}
#allot-form .grow {
  flex: 1 1 280px;
}
#allot-result:empty {
  display: none;
}
#team-made code {
  font-size: 15px;
  letter-spacing: 0.04em;
}
@media (prefers-reduced-motion: reduce) {
  dialog.drawer {
    animation: none;
  }
}
body.testing .toast {
  top: 96px;
}

/* Add candidates: pick from Zoho Recruit, or add by hand. */
#people-add .recruit-pick {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule);
}
#people-add .recruit-pick h3 {
  margin: 0;
}
#people-add .recruit-pick .subline {
  margin: 0;
}
#people-add .pick-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
#people-add .pick-actions .check {
  flex: 1 1 320px;
}
#people-add .by-hand {
  padding-top: 16px;
}
#people-add .by-hand summary {
  cursor: pointer;
  font-weight: 500;
  color: var(--blue);
}
#people-add .by-hand[open] summary {
  margin-bottom: 8px;
}
#people-add .table-wrap {
  margin: 0;
}

/* Shortlist: one view at a time. */
.subtabs {
  display: flex;
  gap: 4px;
  margin: 0 0 20px;
  border-bottom: 1px solid var(--rule);
}
.subtabs button {
  height: auto;
  padding: 10px 16px;
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  color: var(--ink-2);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  margin-bottom: -1px;
}
.subtabs button[aria-selected="true"] {
  color: var(--blue);
  border-bottom-color: var(--blue);
}
.subtabs button:hover {
  color: var(--blue);
}
@media (max-width: 640px) {
  .subtabs {
    overflow-x: auto;
  }
  .subtabs button {
    white-space: nowrap;
  }
}
#person-edit-note {
  margin-bottom: 16px;
}
.bulk-bar[hidden] {
  display: none;
}

/* Sign in with Microsoft: white button with the four-square mark, per Microsoft's sign-in guidance. */
.ms-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  padding: 10px 16px;
  background: #fff;
  color: #5e5e5e;
  border: 1px solid #8c8c8c;
  border-radius: var(--radius-control);
  font-weight: 500;
  text-decoration: none;
}
.ms-button:hover {
  background: #f3f3f3;
  color: #2b2b2b;
}
#ms-team-table select {
  width: 100%;
  min-width: 130px;
}
.ms-team {
  margin-bottom: 24px;
}
.ms-team .inline-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
}
.ms-team .inline-form .grow {
  flex: 1 1 260px;
}

/* ---------- hiring rounds ---------- */
/* Step tabs: each carries its count, so the tabs are the round's funnel. */
.round-tabs button {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}
.round-tabs .count {
  min-width: 22px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--accent-pale);
  color: var(--blue);
  font-weight: 600;
  text-align: center;
}
.round-tabs button[aria-selected="true"] .count {
  background: var(--blue);
  color: var(--on-blue);
}
.round-tabs .tab-end {
  margin-left: auto;
}
.round-tabs button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: -2px;
}
.tab-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 16px;
}
.tab-head .subline,
.tab-lede {
  margin: 0;
  max-width: 70ch;
}
.tab-lede {
  margin-bottom: 16px;
}
#screening .cut-card {
  margin-bottom: 20px;
}
#round-result:empty {
  display: none;
}
#round-result {
  margin-top: 20px;
}
#screening [data-subpanel="settings"] {
  display: grid;
  gap: 20px;
}
#screening [data-subpanel="settings"][hidden] {
  display: none;
}
#bulk-form[hidden] {
  display: none;
}
#bulk-form .bulk-bar {
  margin-top: 16px;
}
#bulk-note[hidden] {
  display: none;
}
/* A name opens the person's scorecard drawer; it reads as text with a link underline. */
.link-button {
  height: auto;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  font-weight: 500;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: var(--control);
  text-underline-offset: 3px;
  cursor: pointer;
}
.link-button:hover {
  color: var(--blue);
  text-decoration-color: currentColor;
}
table.rounds td a {
  color: var(--text);
  font-weight: 500;
  text-underline-offset: 3px;
}
table.rounds td.num a {
  color: var(--blue);
  font-weight: 600;
}
table.rounds .zero {
  color: var(--control);
}
table.rounds tr.is-closed td {
  color: var(--muted);
}
table.rounds td.act {
  white-space: nowrap;
}
#vacancies #new-group {
  margin-bottom: 24px;
}
.new-round {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px 32px;
}
.new-round .actions {
  grid-column: 1 / -1;
}
.check-list {
  display: grid;
  gap: 6px;
}
@media (max-width: 760px) {
  .new-round {
    grid-template-columns: 1fr;
  }
  .round-tabs .tab-end {
    margin-left: 0;
  }
}
#home-rounds {
  margin-bottom: var(--gap);
}
table.rounds td:first-child {
  min-width: 220px;
}
table.round-table td.signals {
  white-space: nowrap;
}
