:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  background: var(--background);
  font-size: 15px;
  line-height: 1.5;
  --radius: 12px;
  --background: #f5f7fb;
  --surface: #fff;
  --surface-hover: #f6f8fc;
  --surface-muted: #edf1f7;
  --surface-inset: #e0e7f2;
  --text: #1c2534;
  --text-secondary: #34455c;
  --muted: #606d81;
  --line: #e0e6ef;
  --field: #bfc9d7;
  --field-hover: #aec0dc;
  --accent: #095ec9;
  --accent-solid: #095ec9;
  --accent-hover: #084fa9;
  --accent-soft: #eaf2ff;
  --accent-soft-hover: #e2edfc;
  --accent-ink: #194f95;
  --accent-line: #caddf7;
  --accent-edge: #86a4d0;
  --decorative: #7084a0;
  --success-ink: #226246;
  --success-soft: #e5f4eb;
  --warning-ink: #82570c;
  --warning-soft: #fff2d9;
  --warning-line: #ecd6a9;
  --danger: #a32032;
  --vacancy-draft: #81858d;
  --stage-neutral: #627994;
  --stage-new: #3579cf;
  --stage-questionnaire: #7560b2;
  --stage-meeting: #a1662e;
  --stage-success: #2c805a;
  --stage-paused: #b37a1c;
  --stage-rejected: #ad4d59;
  --shadow: #283a5710;
  --shadow-raised: #20375226;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --background: #1d1d1f;
  --surface: #242426;
  --surface-hover: #2c2c2e;
  --surface-muted: #303033;
  --surface-inset: #3b3b3f;
  --text: #f5f5f7;
  --text-secondary: #d4d4d8;
  --muted: #aeaeb2;
  --line: #48484a;
  --field: #626269;
  --field-hover: #8f8f97;
  --accent: #6cb0ff;
  --accent-solid: #0869d8;
  --accent-hover: #075cbe;
  --accent-soft: #152e4c;
  --accent-soft-hover: #203e61;
  --accent-ink: #afd1ff;
  --accent-line: #3c5d83;
  --accent-edge: #6cb0ff;
  --decorative: #a2a2ab;
  --success-ink: #a0ebba;
  --success-soft: #183827;
  --warning-ink: #f6dc91;
  --warning-soft: #41391f;
  --warning-line: #796032;
  --danger: #ffabb9;
  --vacancy-draft: #a2a2ab;
  --stage-neutral: #a6abb8;
  --stage-new: #6cb0ff;
  --stage-questionnaire: #bea7fa;
  --stage-meeting: #efb773;
  --stage-success: #71d99b;
  --stage-paused: #e5bf6c;
  --stage-rejected: #ff8c9f;
  --shadow: #00000032;
  --shadow-raised: #00000073;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
a { color: var(--accent); }
button, input, textarea, select { font: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
p, ul, ol, dl, dd, h1, h2, h3 { margin: 0; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  height: 19px;
  width: 19px;
  display: inline-block;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 8px 12px;
  z-index: 3;
  background: var(--surface);
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

.workspace { min-height: 100vh; display: grid; grid-template-columns: 246px minmax(0, 1fr); }
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 25px 14px 16px;
  border-right: 1px solid var(--line);
  background: var(--surface);
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 8px;
  text-decoration: none;
  color: var(--text);
}
.brand-icon {
  position: relative;
  width: 37px;
  height: 37px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 10px;
  background: #162540;
}
.brand-icon img {
  position: absolute;
  top: 0;
  left: 50%;
  width: 155%;
  height: auto;
  max-width: none;
  transform: translate(-50%, -15%);
}
.brand strong, .brand small { display: block; }
.brand strong { font-size: 17px; line-height: 1.3; letter-spacing: -.035em; }
.brand small { color: var(--muted); font-size: 12px; }
.navigation { display: grid; gap: 5px; margin-top: 26px; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  min-height: 42px;
  border-radius: 8px;
  color: var(--text-secondary);
  font-weight: 600;
  text-decoration: none;
}
.nav-link:hover { background: var(--surface-hover); }
.nav-link[aria-current] { background: var(--accent-soft); color: var(--accent-ink); }
.vacancy-navigation {
  min-height: 0;
  margin-top: 21px;
  margin-bottom: 15px;
  padding: 13px 0 3px;
  border-top: 1px solid var(--line);
  overflow-y: auto;
  scrollbar-width: thin;
}
.vacancy-navigation summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 10px;
  list-style: none;
  font-size: 14px;
  font-weight: 670;
  cursor: pointer;
}
.vacancy-navigation summary::-webkit-details-marker { display: none; }
.vacancy-navigation summary .icon { width: 15px; height: 15px; color: var(--muted); }
.vacancy-navigation[open] summary .icon { transform: rotate(90deg); }
.vacancy-group { margin-top: 11px; }
.vacancy-group + .vacancy-group { margin-top: 20px; }
.vacancy-group h2 {
  min-height: 24px;
  justify-content: space-between;
  padding: 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0;
}
.vacancy-group h2 span { font-variant-numeric: tabular-nums; }
.vacancy-group ul { display: grid; gap: 3px; list-style: none; padding: 4px 0 0; }
.vacancy-group-empty { padding: 5px 10px; color: var(--muted); font-size: 12px; }
.vacancy-link {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 8px 9px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
}
.vacancy-link:hover { background: var(--surface-hover); }
.vacancy-link[aria-current] { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-ink); }
.vacancy-dot { flex: 0 0 7px; height: 7px; margin-top: 7px; border-radius: 50%; background: var(--vacancy-draft); }
.vacancy-link[data-status="active"] .vacancy-dot { background: var(--stage-success); }
.vacancy-link[data-status="paused"] .vacancy-dot { background: var(--stage-paused); }
.vacancy-link[data-status="cancelled"] .vacancy-dot { background: var(--stage-rejected); }
.vacancy-link[data-status="closed"] .vacancy-dot { background: var(--stage-new); }
.vacancy-link[data-status="draft"] { color: var(--muted); }
.vacancy-link-text { min-width: 0; }
.vacancy-link strong, .vacancy-link small { display: block; overflow-wrap: anywhere; }
.vacancy-link strong { font-size: 13px; line-height: 1.4; font-weight: 650; }
.vacancy-link small { color: var(--muted); font-size: 11px; margin-top: 2px; }
.account-summary {
  display: grid;
  gap: 5px;
  margin-top: auto;
  padding: 13px 8px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.account-summary strong { color: var(--text); overflow-wrap: anywhere; }
.account-summary .button { min-height: 31px; margin-top: 3px; padding: 4px 9px; font-size: 12px; }
.login-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 64px 20px;
  background: #f5f5f7;
}
:root[data-theme="dark"] .login-page { background: var(--background); }
.login-layout { display: grid; gap: 28px; width: min(100%, 500px); }
.login-brand { display: flex; align-items: center; gap: 12px; justify-self: center; }
.login-brand .brand-icon { width: 48px; height: 48px; border-radius: 13px; }
.login-brand h1 { font-size: 26px; line-height: 1.1; letter-spacing: -.04em; }
.login-brand p { margin-top: 3px; color: var(--muted); font-size: 12px; }
.login-panel { min-width: 0; padding: 40px 48px; border-radius: 36px; background: var(--surface); }
.login-theme {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  place-items: center;
  background: var(--surface);
  color: var(--accent);
  cursor: pointer;
}
.login-theme:not([hidden]) { display: grid; }
.login-theme:hover { background: var(--surface-hover); border-color: var(--field-hover); }
.auth-form { display: grid; gap: 16px; }
.auth-field label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 14px; }
.auth-field input {
  width: 100%;
  min-height: 46px;
  padding: 8px 13px;
  border: 1px solid var(--field);
  border-radius: 15px;
  color: var(--text);
  background: var(--surface);
}
.auth-field input[readonly] { background: var(--surface-hover); }
.auth-field input[aria-invalid="true"] { border-color: var(--danger); }
.auth-field .helptext { margin-top: 6px; color: var(--muted); font-size: 13px; }
.login-panel .auth-submit, .google-sign-in { width: 100%; min-height: 46px; border-radius: 16px; }
.login-panel .auth-submit { margin-top: 8px; padding-inline: 18px; }
.login-panel .password-submit { justify-content: space-between; }
.google-form { margin-top: 10px; }
.google-sign-in {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid transparent;
  background: #f2f2f2;
  color: #1f1f1f;
  font-weight: 600;
  cursor: pointer;
}
.google-sign-in img { width: 18px; height: auto; flex: 0 0 auto; }
.google-sign-in:hover { background: #e9e9eb; }
:root[data-theme="dark"] .google-sign-in { background: #131314; border-color: #8e918f; color: #e3e3e3; }
:root[data-theme="dark"] .google-sign-in:hover { background: #303033; }
.auth-title { margin-bottom: 16px; font-size: 22px; line-height: 1.25; }
.auth-error { margin-bottom: 16px; color: var(--danger); font-size: 14px; }
.auth-description { color: var(--muted); }
.auth-link { justify-self: center; font-size: 14px; text-underline-offset: 3px; }
.employee-invite { margin-top: 16px; }
@media (max-width: 530px) {
  .login-page { padding: 66px 16px 32px; }
  .login-layout { gap: 22px; }
  .login-panel { padding: 26px 22px; border-radius: 26px; }
  .login-theme { top: 14px; right: 16px; }
}
.employee-email { display: block; font-weight: 400; }
.employee-vacancies fieldset { min-width: 0; margin: 0; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; }
.employee-vacancies legend { padding-inline: 4px; font-weight: 650; }
.employee-vacancies #id_assigned_vacancies { max-height: 230px; overflow: auto; margin-block: 8px 2px; }
.employee-vacancies label { display: flex; align-items: baseline; gap: 8px; font-weight: 400; }
.employee-vacancies input[type="checkbox"] { display: inline-block; width: auto; min-height: 0; accent-color: var(--accent-solid); }
.employee-access { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 8px; }
.employee-access label { grid-column: 2; grid-row: 1; font-weight: 650; }
.employee-access input[type="checkbox"] { grid-column: 1; grid-row: 1; margin: 0; accent-color: var(--accent-solid); }
.employee-access .helptext { grid-column: 2; }
.employee-form .helptext { color: var(--muted); font-size: 13px; }

.workspace-body { min-width: 0; }
.topbar { min-height: 63px; border-bottom: 1px solid var(--line); background: var(--surface); }
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1380px;
  min-height: 63px;
  margin: 0 auto;
  padding: 8px 36px;
}
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
}
.breadcrumbs .icon { width: 13px; height: 13px; color: var(--decorative); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs [aria-current] { font-weight: 650; color: var(--text-secondary); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs [aria-current] { min-width: 0; overflow-wrap: anywhere; }
.theme-picker:not([hidden]) { display: flex; align-items: center; gap: 7px; flex: 0 0 auto; }
.theme-picker { font-size: 13px; color: var(--muted); }
.theme-picker select {
  padding: 5px 6px 5px 8px;
  border: 1px solid var(--field);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text);
}
.theme-picker select:hover { border-color: var(--field-hover); }
.content { max-width: 1380px; margin: 0 auto; padding: 33px 36px 44px; }
.page-heading {
  display: flex;
  min-height: 43px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}
.detail-heading { margin-bottom: 24px; }
h1 { font-size: clamp(25px, 2.6vw, 34px); letter-spacing: -.035em; line-height: 1.2; overflow-wrap: anywhere; }
h2 { display: flex; gap: 9px; align-items: center; font-size: 16px; letter-spacing: -.015em; font-weight: 680; }
h3 { font-size: 14px; font-weight: 670; }
.heading-meta { display: flex; align-items: center; gap: 10px; margin-top: 9px; font-size: 13px; }
.heading-count { font-size: 12px; color: var(--muted); background: var(--surface-muted); border-radius: 999px; padding: 1px 7px; letter-spacing: 0; }
.muted { color: var(--muted); }
.number, time { font-variant-numeric: tabular-nums; }
time { white-space: nowrap; }

.button {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  min-height: 39px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 13px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
}
.button .icon { width: 17px; height: 17px; }
.primary { background: var(--accent-solid); color: #fff; }
.primary:hover { background: var(--accent-hover); }
.secondary { background: var(--surface); border-color: var(--field); color: var(--text-secondary); }
.secondary:hover { background: var(--surface-hover); border-color: var(--field-hover); }
.text-link { display: inline-flex; align-items: center; gap: 5px; text-decoration: none; }
.text-link .icon { width: 15px; height: 15px; }
.text-link:hover, .record-link:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.surface {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px var(--shadow);
}
.panel-heading { padding: 16px 20px; border-bottom: 1px solid var(--line); }
.panel-heading .icon { color: var(--muted); }
.panel-body { padding: 20px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(265px, 1fr); align-items: start; gap: 18px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.facts dt { color: var(--muted); font-size: 13px; }
.facts dd { margin-top: 4px; line-height: 1.5; font-weight: 580; overflow-wrap: anywhere; }
.facts dd .muted { font-weight: 450; }
.detail-description { margin-top: 20px; padding-top: 17px; border-top: 1px solid var(--line); }
.request-brief summary { cursor: pointer; font-weight: 650; }
.request-brief dl { display: grid; gap: 14px; margin-top: 14px; }
.request-brief dt { color: var(--muted); font-size: 13px; }
.prose { margin-top: 6px; white-space: pre-wrap; overflow-wrap: anywhere; }
.status {
  display: inline-block;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 650;
}
.status.linked { background: var(--accent-soft); color: var(--accent-ink); }
.status.neutral { background: var(--surface-muted); color: var(--muted); }
.empty-state { display: grid; justify-items: center; gap: 10px; padding: 42px 14px; color: var(--muted); }
.empty-inline { padding: 15px 20px 18px; color: var(--muted); font-size: 14px; }

.table-wrap { overflow: hidden; }
.records { width: 100%; border-spacing: 0; text-align: left; }
.records th, .records td { padding: 13px 19px; border-bottom: 1px solid var(--line); }
.records thead th { background: var(--surface-hover); color: var(--muted); font-size: 12px; font-weight: 650; }
.records tbody th { font-weight: 650; }
.records tbody tr:last-child > * { border-bottom: 0; }
.records tbody tr:hover { background: var(--surface-hover); }
.record-identity { display: flex; min-width: 0; align-items: center; gap: 10px; }
.record-identity > span:last-child { min-width: 0; }
.record-link { color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
.record-icon {
  display: grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.record-icon .icon { width: 17px; height: 17px; }
.narrow-label { display: none; color: var(--muted); font-weight: 400; font-size: 12px; }

.timeline { list-style: none; padding: 16px 20px 18px; }
.timeline li { position: relative; padding-left: 20px; padding-bottom: 16px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  position: absolute;
  top: 6px;
  left: 1px;
  width: 7px;
  height: 7px;
  border: 2px solid var(--accent-edge);
  border-radius: 50%;
  background: var(--surface);
  content: "";
  z-index: 1;
}
.timeline li:not(:last-child)::after {
  position: absolute;
  top: 13px;
  bottom: -6px;
  left: 5px;
  width: 1px;
  background: var(--line);
  content: "";
}
.timeline .event-title { display: block; font-size: 14px; overflow-wrap: anywhere; }
.timeline time { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }

.request-form { max-width: 770px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 20px; }
.span-all { grid-column: 1 / -1; }
.field { min-width: 0; }
.field label { display: block; margin-bottom: 5px; font-size: 14px; font-weight: 650; }
.field input, .field select, .field textarea {
  display: block;
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--field);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text);
}
.field textarea { resize: vertical; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--danger); }
.errorlist { padding-left: 18px; margin-bottom: 6px; color: var(--danger); font-size: 13px; }
.request-form > .errorlist { margin: 16px 20px 0; }
.form-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--line); }

.vacancy-heading { margin-bottom: 25px; align-items: center; }
.vacancy-identity { display: flex; gap: 14px; min-width: 0; align-items: center; }
.vacancy-heading-icon {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid var(--accent-line);
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.vacancy-heading-icon .icon { width: 24px; height: 24px; }
.vacancy-heading .heading-meta { flex-wrap: wrap; color: var(--muted); }
.vacancy-heading .heading-meta a { color: var(--accent); text-underline-offset: 3px; }
.vacancy-status { background: var(--surface-muted); color: var(--muted); }
.vacancy-status[data-status="active"] { background: var(--success-soft); color: var(--success-ink); }
.vacancy-status[data-status="paused"] { background: var(--warning-soft); color: var(--warning-ink); }
.vacancy-status[data-status="cancelled"] { background: color-mix(in srgb, var(--danger) 12%, var(--surface)); color: var(--danger); }
.vacancy-status[data-status="closed"] { background: var(--accent-soft); color: var(--accent-ink); }
.vacancy-actions { position: relative; display: flex; gap: 8px; flex: 0 0 auto; }
.action-menu summary { list-style: none; }
.action-menu summary::-webkit-details-marker { display: none; }
.action-panel {
  position: absolute;
  inset: calc(100% + 8px) 0 auto auto;
  z-index: 3;
  display: grid;
  gap: 13px;
  width: min(330px, calc(100vw - 32px));
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  box-shadow: 0 9px 30px var(--shadow-raised);
}
.board-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px 13px 17px;
  min-height: 62px;
}
.board-title, .board-controls, .board-paging { display: flex; align-items: center; gap: 8px; }
.board-title { gap: 12px; }
.board-title .icon { color: var(--accent-ink); }
.board-total {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-left: 1px solid var(--line);
  padding-left: 12px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.board-total strong { color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.board-paging[hidden] { display: none; }
.board-history { display: inline-flex; align-items: center; gap: 6px; padding: 5px; color: var(--text-secondary); text-decoration: none; font-size: 13px; }
.board-history:hover { color: var(--accent); }
.board-history .icon { width: 16px; height: 16px; }
.icon-button {
  display: inline-grid;
  width: 34px;
  min-height: 34px;
  padding: 0;
  place-items: center;
  background: var(--surface);
  color: var(--text-secondary);
  border-color: var(--line);
}
.icon-button:not(:disabled):hover { background: var(--surface-hover); border-color: var(--field-hover); }
.icon-button:disabled { opacity: .5; cursor: default; }
.icon-button.previous .icon { transform: rotate(180deg); }
.stage-jump { position: relative; color: var(--text-secondary); }
.stage-jump select {
  appearance: none;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px 27px 4px 10px;
  width: 98px;
  color: inherit;
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
}
.stage-jump .icon { position: absolute; right: 7px; top: 10px; width: 14px; height: 14px; transform: rotate(90deg); pointer-events: none; }
.kanban-scroller {
  display: grid;
  grid-auto-columns: 238px;
  grid-auto-flow: column;
  gap: 12px;
  overflow-x: auto;
  padding: 14px;
  border-top: 1px solid var(--line);
  border-radius: 0 0 var(--radius) var(--radius);
  background: var(--surface-hover);
  scrollbar-color: var(--field) var(--surface-inset);
}
.kanban-scroller:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.kanban-column {
  --stage-color: var(--stage-neutral);
  display: grid;
  grid-template-rows: 56px minmax(0, 1fr);
  scroll-margin-top: 100vh;
  height: clamp(373px, 58vh, 570px);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-muted);
}
.kanban-column[data-stage="new"] { --stage-color: var(--stage-new); }
.kanban-column[data-stage="questionnaire"],
.kanban-column[data-stage="questionnaire_done"], .kanban-column[data-stage="questionnaire_selected"] { --stage-color: var(--stage-questionnaire); }
.kanban-column[data-stage="manual_review"] { --stage-color: var(--stage-paused); }
.board-filters { align-items: end; grid-template-columns: repeat(2, minmax(125px, 265px)) auto auto; justify-content: start; }
@media (max-width: 600px) {
  .board-filters { grid-template-columns: 1fr 1fr; }
}
.kanban-column[data-stage="invited"],
.kanban-column[data-stage$="interview"] { --stage-color: var(--stage-meeting); }
.kanban-column[data-stage="offer"],
.kanban-column[data-stage="hired"] { --stage-color: var(--stage-success); }
.kanban-column[data-stage="rejected"] { --stage-color: var(--stage-rejected); }
.kanban-column h3 {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.25;
}
.stage-dot { height: 8px; border-radius: 50%; background: var(--stage-color); }
.stage-count {
  min-width: 22px;
  padding: 3px 5px;
  text-align: center;
  border-radius: 5px;
  background: var(--surface-inset);
  color: var(--muted);
  font-size: 11px;
  font-weight: 680;
  font-variant-numeric: tabular-nums;
}
.candidate-cards {
  padding: 0 8px 8px;
  overflow-y: auto;
  list-style: none;
  scrollbar-width: thin;
}
.candidate-card {
  margin-bottom: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 1px 2px var(--shadow);
}
.candidate-card[draggable="true"] { cursor: grab; }
.candidate-card:hover, .candidate-card:focus-within { border-color: var(--accent-edge); }
.candidate-card.is-dragging { opacity: .47; }
.candidate-card a { display: flex; align-items: center; gap: 9px; padding: 10px 9px 8px; color: var(--text); text-decoration: none; }
.candidate-card a:focus-visible { outline-offset: -2px; border-radius: 7px; }
.candidate-avatar {
  display: grid;
  width: 29px;
  height: 29px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: var(--accent-ink);
  background: var(--accent-soft);
  font-size: 11px;
  font-weight: 700;
}
.candidate-card-name { overflow-wrap: anywhere; font-size: 13px; font-weight: 670; line-height: 1.3; }
.candidate-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  padding: 6px 9px 7px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}
.card-grip { display: none; color: var(--decorative); height: 14px; }
.card-grip .icon { width: 14px; height: 14px; }
.candidate-card[draggable="true"] .card-grip { display: block; }
.column-empty { padding: 17px 8px; border: 1px dashed var(--field); border-radius: 8px; text-align: center; color: var(--muted); font-size: 12px; }
.kanban-column.is-drop-target { background: var(--accent-soft-hover); border-color: var(--accent-edge); }
.vacancy-timeline { margin-top: 18px; }
.event-transition { display: block; color: var(--accent); font-size: 13px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
  clip-path: inset(50%);
}
.candidate-card-name small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; font-weight: 450; }
.profile-back { margin-bottom: 13px; font-size: 13px; font-weight: 620; }
.profile-back .icon { transform: rotate(180deg); }
.profile-overview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(235px, .47fr); align-items: stretch; }
.profile-main { display: grid; align-content: center; gap: 15px; min-width: 0; padding: 23px 22px; }
.profile-identity { display: flex; align-items: center; min-width: 0; gap: 15px; }
.profile-identity .candidate-avatar { width: 61px; height: 61px; overflow: hidden; font-size: 19px; }
.profile-identity img { width: 100%; height: 100%; object-fit: cover; }
.profile-position { margin-top: 3px; color: var(--text-secondary); overflow-wrap: anywhere; }
.profile-location { margin-top: 3px; color: var(--muted); font-size: 13px; }
.profile-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.status.consent { background: var(--surface-muted); color: var(--muted); }
.status.consent[data-consent="granted"] { background: var(--success-soft); color: var(--success-ink); }
.status.consent[data-consent="absent"] { background: var(--warning-soft); color: var(--warning-ink); }
.profile-contacts { min-width: 0; padding: 18px 21px; border-left: 1px solid var(--line); }
.profile-contacts h2 { margin-bottom: 7px; }
.contact-list { display: grid; gap: 3px; }
.contact-list > div { display: grid; grid-template-columns: 74px minmax(0,1fr); gap: 8px; font-size: 13px; }
.contact-list dt { color: var(--muted); }
.contact-list dd { overflow-wrap: anywhere; }
.contact-list a, .response-facts a { text-underline-offset: 2px; }
.contact-matches { margin-top: 10px; padding: 9px 14px; border: 1px solid var(--warning-line); border-radius: 8px; background: var(--warning-soft); color: var(--warning-ink); font-size: 13px; }
.contact-matches summary { cursor: pointer; font-weight: 650; }
.contact-matches ul { margin-top: 6px; padding-left: 20px; }
.profile-edit { margin-top: 10px; }
.profile-edit summary, .inline-editor summary {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  color: var(--accent);
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}
.profile-edit summary { padding: 10px 15px; }
.profile-edit summary:hover, .inline-editor summary:hover { text-decoration: underline; text-underline-offset: 3px; }
.profile-edit summary::-webkit-details-marker, .inline-editor summary::-webkit-details-marker { display: none; }
.profile-edit summary .icon, .inline-editor summary .icon { width: 16px; height: 16px; }
.profile-edit[open] summary { border-bottom: 1px solid var(--line); }
.profile-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 20px;
  margin: 14px 0 15px;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.profile-nav a { color: var(--accent); font-weight: 650; text-decoration: none; }
.profile-nav a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.candidate-layout, .candidate-primary, .candidate-secondary { display: grid; align-content: start; gap: 15px; min-width: 0; }
.candidate-layout { grid-template-columns: minmax(0, 1.75fr) minmax(276px, 1fr); align-items: start; }
.candidate-panel-body { display: grid; gap: 15px; }
.candidate-panel-body .prose { font-size: 14px; }
.response-facts { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 12px; }
.response-facts dt { color: var(--muted); font-size: 12px; }
.response-facts dd { margin-top: 2px; font-size: 13px; font-weight: 620; overflow-wrap: anywhere; }
.stacked-form { display: grid; gap: 10px; }
.inline-editor[open] summary { margin-bottom: 10px; }
.inline-editor form { padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-hover); }
.resume-body { display: grid; gap: 11px; color: var(--text-secondary); font-size: 14px; overflow-wrap: anywhere; }
.materials-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.material-group { padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-hover); }
.material-group > .muted { margin-top: 3px; font-size: 12px; }
.material-entry { padding-top: 9px; margin-top: 9px; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.material-entry h4 { margin: 0; font-size: 13px; }
.material-entry a { margin-top: 6px; font-size: 13px; }
.material-entry .prose { font-size: 13px; }
.other-applications { list-style: none; padding: 4px 12px; }
.other-applications li + li { border-top: 1px solid var(--line); }
.other-applications a { display: flex; justify-content: space-between; gap: 7px; align-items: center; padding: 9px 7px; color: var(--text-secondary); text-decoration: none; }
.other-applications a:hover { color: var(--accent); }
.other-applications strong { display: block; font-size: 13px; overflow-wrap: anywhere; }
.other-applications small { display: block; color: var(--muted); }
.other-applications .icon { width: 14px; height: 14px; }
.timeline-comment { padding: 14px 20px; border-bottom: 1px solid var(--line); }
.timeline-comment label { font-size: 13px; }
.timeline-comment textarea { min-height: 72px; }
.event-description { color: var(--text-secondary); font-size: 13px; }
.report-period { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.report-table { overflow-x: auto; border-top: 1px solid var(--line); }
.report-table .records { min-width: 570px; }
.report-surface .empty-inline { border-top: 1px solid var(--line); font-size: 13px; }

@media (max-width: 1050px) {
  .response-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-overview { grid-template-columns: minmax(0, 1fr) minmax(210px, .52fr); }
}

@media (max-width: 1050px) {
  .workspace { grid-template-columns: 204px minmax(0, 1fr); }
  .topbar-inner { padding-inline: 24px; }
  .content { padding-inline: 24px; }
  .detail-grid { grid-template-columns: minmax(0, 1fr) minmax(245px, .85fr); gap: 14px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .records th, .records td { padding-inline: 13px; }
  .vacancy-heading { align-items: flex-start; flex-wrap: wrap; }
}
@media (max-width: 900px) {
  .candidate-primary, .candidate-secondary { display: contents; }
  .candidate-layout { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
  .candidate-secondary > section:first-child { order: -1; }
}
@media (max-width: 760px) {
  .workspace { display: block; }
  .sidebar { position: static; height: auto; padding: 13px 16px 9px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { padding: 0; }
  .brand-icon { width: 32px; height: 32px; border-radius: 8px; }
  .navigation { display: flex; gap: 7px; margin-top: 12px; }
  .nav-link { min-height: 36px; padding: 6px 10px; font-size: 14px; }
  .nav-link .icon { width: 16px; height: 16px; }
  .account-summary { grid-template-columns: minmax(0, 1fr) auto; align-items: center; margin-top: 9px; padding: 7px 0 0; }
  .account-summary span { grid-row: 2; }
  .account-summary form { grid-row: 1 / 3; grid-column: 2; }
  .topbar, .topbar-inner { min-height: 42px; }
  .topbar-inner { padding-inline: 16px; }
  .content { padding: 19px 16px 36px; }
  .page-heading { flex-wrap: wrap; margin-bottom: 16px; }
  .detail-grid { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .vacancy-navigation { margin-block: 9px 0; max-height: 270px; padding-top: 5px; }
  .vacancy-navigation summary { padding-inline: 0; }
  .vacancy-identity { gap: 10px; }
  .vacancy-heading-icon { width: 40px; height: 40px; }
  .vacancy-heading-icon .icon { width: 20px; height: 20px; }
  .action-panel { right: auto; left: 0; }
  .kanban-scroller { grid-auto-columns: 214px; gap: 9px; padding: 10px; }
  .profile-overview { grid-template-columns: minmax(0, 1fr); }
  .profile-main, .profile-contacts { padding: 15px; }
  .profile-contacts { border-left: 0; border-top: 1px solid var(--line); }
  .profile-identity .candidate-avatar { width: 46px; height: 46px; font-size: 15px; }
}
@media (max-width: 530px) {
  .theme-picker > span, .breadcrumb-root, .breadcrumb-root + .icon { display: none; }
  .theme-picker select { max-width: 112px; }
  .page-heading .button { font-size: 13px; }
  .records .wide-column { display: none; }
  .narrow-label { display: block; margin-top: 2px; }
  .records th, .records td { padding: 10px; }
  .record-identity { gap: 7px; }
  .record-icon { height: 28px; width: 28px; }
  .status { font-size: 11px; white-space: normal; }
  .facts, .form-grid { grid-template-columns: 1fr; }
  .facts { gap: 10px; }
  .board-toolbar { display: grid; gap: 8px; padding: 10px; }
  .board-controls { justify-content: space-between; }
  .profile-nav { gap: 8px 14px; }
  .materials-list { grid-template-columns: minmax(0,1fr); }
}

.recruiter-control { position: relative; color: var(--accent); }
.recruiter-control > summary { cursor: pointer; text-underline-offset: 3px; text-decoration: underline; }
.recruiter-control .action-panel { left: 0; right: auto; color: var(--text); }
.analytics-summary, .analytics-breakdown { display: grid; gap: 12px; margin-top: 14px; }
.analytics-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.analytics-summary > div { display: grid; gap: 7px; padding: 14px 17px; }
.analytics-summary span { color: var(--muted); font-size: 13px; }
.analytics-summary strong { color: var(--accent-ink); font-size: 26px; }
.analytics-breakdown { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.analytics-section { margin-top: 14px; }
.analytics-counts { display: grid; gap: 9px; padding: 16px 20px; }
.analytics-counts div { display: flex; justify-content: space-between; gap: 12px; }
.analytics-counts dt { overflow-wrap: anywhere; }
.analytics-counts dd { font-variant-numeric: tabular-nums; font-weight: 650; }
.analytics-bar { display: flex; align-items: center; gap: 9px; font-weight: 650; }
.analytics-bar meter { flex: 1; max-width: 120px; height: 12px; accent-color: var(--accent); }
.analytics-bar meter::-webkit-meter-optimum-value { background: var(--accent); }
.analytics-filters .field { min-width: 110px; max-width: min(100%, 240px); }
.analytics-filters .text-link { margin: 7px 0; }
@media (max-width: 800px) {
  .navigation { flex-wrap: wrap; }
  .analytics-breakdown { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .analytics-summary { grid-template-columns: 1fr; }
  .analytics-summary > div { display: flex; justify-content: space-between; align-items: center; }
}

.calendar-integration, .calendar-account, .calendar-paging, .calendar-source { display: flex; align-items: center; gap: 10px; }
.calendar-integration { flex-wrap: wrap; justify-content: space-between; margin-bottom: 14px; padding: 12px 15px; }
.calendar-account { margin-right: auto; }
.calendar-account p { margin: 3px 0 0; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.calendar-source select, .interview-outcome select { max-width: 100%; min-height: 36px; padding: 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--text); }
.calendar-source { flex-wrap: wrap; }
.calendar-warning { color: var(--warning-ink); background: var(--warning-soft); padding: 9px 12px; border-radius: 6px; }
.calendar-layout, .interview-layout { display: grid; gap: 15px; align-items: start; }
.calendar-layout { grid-template-columns: minmax(0, 3fr) minmax(210px, 1fr); }
.calendar-toolbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding: 13px; }
.calendar-paging { gap: 4px; }
.calendar-modes { display: flex; justify-self: end; padding: 3px; background: var(--surface-muted); border-radius: 8px; }
.calendar-modes a { display: block; padding: 6px 9px; text-decoration: none; color: var(--muted); border-radius: 6px; font-size: 13px; }
.calendar-modes a[aria-current] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px var(--shadow); font-weight: 650; }
.calendar-scroll { overflow-x: auto; border-top: 1px solid var(--line); }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); min-width: 545px; }
.calendar-weekday { text-align: center; padding: 7px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 650; background: var(--surface-hover); }
.calendar-day { display: grid; align-content: start; gap: 4px; min-height: 101px; padding: 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.calendar-day:nth-child(7n) { border-right: 0; }
.calendar-day.other-month { background: var(--surface-hover); }
.calendar-day.other-month .calendar-date { color: var(--muted); }
.calendar-day.selected { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-line); }
.calendar-grid[data-view="week"] .calendar-day { min-height: 240px; }
.calendar-date { justify-self: end; display: inline-grid; width: 25px; height: 25px; place-items: center; border-radius: 8px; color: var(--text); text-decoration: none; font-size: 13px; }
.calendar-date[aria-current] { color: #fff; background: var(--accent-solid); font-weight: 650; }
.calendar-date:hover, .calendar-chip:hover, .calendar-more:hover { text-decoration: underline; }
.calendar-chip { display: block; min-width: 0; padding: 3px 5px; background: var(--surface-muted); border-radius: 4px; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; font-size: 11px; }
.calendar-chip.is-interview { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.calendar-chip time { font-variant-numeric: tabular-nums; }
.calendar-more { padding-left: 4px; font-size: 11px; text-decoration: none; }
.calendar-agenda ul, .calendar-search-results, .interview-in-candidate ul { display: grid; gap: 0; list-style: none; padding: 0; }
.calendar-agenda li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; padding: 12px; }
.calendar-agenda li + li, .calendar-search-results li + li, .interview-in-candidate li + li { border-top: 1px solid var(--line); }
.calendar-agenda li > span { color: var(--muted); font-size: 12px; }
.calendar-agenda small, .calendar-search-results small, .interview-in-candidate small { display: block; color: var(--muted); margin-top: 3px; }
.calendar-agenda a, .calendar-search-results a, .interview-in-candidate a { overflow-wrap: anywhere; }
.calendar-search-results li { padding: 12px 20px; }
.interview-layout { grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr); }
.interview-editor { grid-column: 1; grid-row: 1; }
.interview-summary { grid-column: 2; }
.interview-summary .panel-body { display: grid; gap: 9px; }
.interview-start { color: var(--accent-ink); font-size: 19px; font-weight: 650; }
.interview-outcome { border-top: 1px solid var(--line); }
.interview-evaluation { margin-top: 20px; scroll-margin-top: 16px; }
.interview-evaluation-body { display: grid; gap: 18px; }
.evaluation-summary, .evaluation-state { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.evaluation-score { padding: 5px 15px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-ink); white-space: nowrap; }
.evaluation-score strong { font-size: 29px; font-variant-numeric: tabular-nums; }
.evaluation-recordings { display: flex; flex-wrap: wrap; gap: 8px 14px; padding: 0; list-style: none; }
.evaluation-sections { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 12px; }
.evaluation-sections section { padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; }
.evaluation-sections h3 { font-size: 15px; }
.evaluation-sections ul { padding-inline-start: 19px; margin: 8px 0 0; }
.evaluation-sections li + li { margin-top: 4px; }
.evaluation-transcript { border-top: 1px solid var(--line); padding-top: 15px; }
.evaluation-transcript summary { cursor: pointer; font-weight: 650; }
.evaluation-transcript .prose { max-height: 28rem; overflow: auto; padding-inline-end: 8px; }
.interview-check { display: grid; justify-content: start; align-content: start; }
.interview-in-candidate ul { margin-top: 9px; }
.interview-in-candidate li { padding: 7px 0; }
.availability { border-top: 1px solid var(--line); }
.availability dl > div { display: flex; gap: 8px; justify-content: space-between; padding: 6px 0; }
@media (max-width: 1100px) {
  .calendar-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .interview-layout { grid-template-columns: minmax(0, 1fr); }
  .interview-editor, .interview-summary { grid-column: 1; grid-row: auto; }
}
@media (max-width: 480px) {
  .calendar-toolbar { grid-template-columns: 1fr auto; }
  .calendar-toolbar h2 { grid-column: 1 / -1; grid-row: 1; }
}
.vacancy-create-card, .screening-overview { margin-top: 16px; }
.screening-overview { margin-bottom: 12px; padding: 12px 15px; }
.screening-overview summary { cursor: pointer; font-weight: 650; }
.screening-fields { min-width: 0; margin: 6px 20px 16px; padding: 0; border: 1px solid var(--line); border-radius: 8px; }
.screening-fields legend { margin-left: 10px; padding: 0 6px; font-weight: 650; }
.questionnaire-page { width: min(660px, calc(100% - 32px)); margin: 36px auto; }
.questionnaire-brand { width: max-content; margin-bottom: 18px; }
.questionnaire-page h1 { font-size: clamp(23px, 5vw, 34px); }
.screening-fields p { padding: 6px 16px 0; font-size: 13px; }
.screening-fields .form-grid { padding: 13px 16px; }
.screening-summary { display: grid; gap: 6px; margin: 8px 0 0; }
.screening-summary > div { display: grid; grid-template-columns: minmax(100px, 0.7fr) minmax(0, 1fr); gap: 8px; font-size: 13px; }
.screening-summary dt { color: var(--muted); }
.screening-summary dd { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.funnel-matrix th { min-width: 108px; }
.funnel-matrix th:first-child { min-width: 170px; }
