/* Nordlicht Karriere – design tokens, light + dark */
:root {
  --bg: #f5f7fb;
  --bg-soft: #eef2f8;
  --surface: #ffffff;
  --surface-2: #f7f9fc;
  --ink: #0d1526;
  --ink-2: #3a4960;
  --ink-3: #6a7a92;
  --line: #e2e8f1;
  --line-strong: #cfd8e5;
  --brand: #2563eb;
  --brand-600: #1d4fd8;
  --brand-soft: #e8efff;
  --brand-ink: #ffffff;
  --teal: #12b39a;
  --violet: #7c5cf6;
  --aurora: linear-gradient(115deg, #19c3a3 0%, #3a86ff 50%, #8b5cf6 100%);
  --ok: #138a54;      --ok-soft: #e3f6ec;
  --warn: #a8660b;    --warn-soft: #fdf2df;
  --bad: #c43a31;     --bad-soft: #fde8e6;
  --info: #2563eb;    --info-soft: #e8efff;
  --muted-soft: #eef1f5;
  --radius-lg: 22px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(13, 21, 38, .05);
  --shadow: 0 1px 2px rgba(13, 21, 38, .05), 0 8px 24px rgba(13, 21, 38, .07);
  --shadow-lg: 0 2px 6px rgba(13, 21, 38, .06), 0 24px 48px rgba(13, 21, 38, .12);
  --focus: 0 0 0 3px color-mix(in srgb, var(--brand) 35%, transparent);
  --font: "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, "SF Pro Text", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0f1c;
    --bg-soft: #0f1628;
    --surface: #111a2e;
    --surface-2: #0f1729;
    --ink: #e8eef9;
    --ink-2: #b8c4d8;
    --ink-3: #8595b0;
    --line: #1f2b45;
    --line-strong: #2b3a5a;
    --brand: #5b8cff;
    --brand-600: #7aa2ff;
    --brand-soft: #16254a;
    --ok: #4ad295;     --ok-soft: #0f2d22;
    --warn: #f0b457;   --warn-soft: #33260f;
    --bad: #ff7b72;    --bad-soft: #3a1714;
    --info: #7aa2ff;   --info-soft: #16254a;
    --muted-soft: #172036;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
    --shadow-lg: 0 24px 48px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-600); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 750; }
h2 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); font-weight: 700; }
h3 { font-size: 1.08rem; font-weight: 650; }
p { margin: 0 0 1em; }
img, svg { display: block; }
.icon { width: 1.1em; height: 1.1em; flex: none; display: inline-block; vertical-align: -.18em; }
.muted { color: var(--ink-3); }
.soft { color: var(--ink-2); }
.small { font-size: .88rem; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); margin-inline: auto; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 8px; }

/* header / footer */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 750; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.brand:hover { color: var(--ink); }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand small { font-weight: 550; color: var(--ink-3); }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a, .nav button.linklike {
  color: var(--ink-2); text-decoration: none; font-weight: 550; font-size: .95rem;
  padding: 8px 12px; border-radius: 999px;
}
.nav a:hover, .nav a[aria-current="page"] { background: var(--bg-soft); color: var(--ink); }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--aurora); color: #fff; font-weight: 700; font-size: .85rem;
}
.site-footer { border-top: 1px solid var(--line); color: var(--ink-3); font-size: .88rem; padding: 28px 0 40px; margin-top: 64px; }
.site-footer .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* buttons */
.btn {
  --b: var(--brand); display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 12px; padding: 11px 18px; min-height: 44px;
  font: inherit; font-weight: 650; cursor: pointer; text-decoration: none; line-height: 1.2;
  transition: background .15s, border-color .15s, transform .05s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--b); color: var(--brand-ink); box-shadow: 0 6px 16px color-mix(in srgb, var(--b) 28%, transparent); }
.btn-primary:hover { background: var(--brand-600); color: var(--brand-ink); }
.btn-aurora { background: var(--aurora); color: #fff; box-shadow: 0 8px 22px rgba(58, 134, 255, .28); }
.btn-aurora:hover { color: #fff; filter: saturate(1.1) brightness(1.04); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { background: var(--surface-2); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--bg-soft); color: var(--ink); }
.btn-danger { background: var(--bad); color: #fff; }
.btn-danger:hover { color: #fff; filter: brightness(1.05); }
.btn-ok { background: var(--ok); color: #fff; }
.btn-lg { padding: 14px 24px; min-height: 52px; font-size: 1.05rem; border-radius: 14px; }
.btn-sm { padding: 7px 12px; min-height: 34px; font-size: .88rem; border-radius: 10px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
button.linklike { background: none; border: 0; font: inherit; cursor: pointer; color: var(--brand); padding: 0; }

/* chips, badges */
.chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 600;
  padding: 5px 11px; border-radius: 999px; background: var(--bg-soft); color: var(--ink-2); white-space: nowrap;
}
.chip-brand { background: var(--brand-soft); color: var(--brand); }
.chip-filter { border: 1px solid var(--line-strong); background: var(--surface); cursor: pointer; font: inherit; font-size: .9rem; font-weight: 600; padding: 8px 14px; }
.chip-filter[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 650; padding: 4px 10px; border-radius: 8px; white-space: nowrap; background: var(--muted-soft); color: var(--ink-2); }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .85; }
.tone-ok, .st-shortlist, .st-next_round, .st-hired, .rec-strong_yes, .rec-yes { background: var(--ok-soft); color: var(--ok); }
.tone-info, .st-review, .ist-done { background: var(--info-soft); color: var(--info); }
.tone-action, .st-on_hold, .rec-maybe, .ist-in_call, .ist-processing, .ist-submitted { background: var(--warn-soft); color: var(--warn); }
.tone-bad, .st-rejected, .rec-no, .ist-failed { background: var(--bad-soft); color: var(--bad); }
.tone-muted, .st-withdrawn, .rec-insufficient_data { background: var(--muted-soft); color: var(--ink-3); }

/* cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 24px; }
.card-lg { border-radius: var(--radius-lg); padding: clamp(20px, 4vw, 36px); box-shadow: var(--shadow); }
.card + .card { margin-top: 16px; }
.card-title { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.card-title .icon-bubble { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }

/* hero */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 9vw, 110px) 0 clamp(40px, 6vw, 72px); isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto -10%; height: 140%; z-index: -1;
  background:
    radial-gradient(40% 50% at 20% 30%, rgba(25, 195, 163, .28), transparent 70%),
    radial-gradient(35% 45% at 60% 20%, rgba(58, 134, 255, .26), transparent 70%),
    radial-gradient(35% 45% at 85% 45%, rgba(139, 92, 246, .24), transparent 70%);
  filter: blur(10px);
}
.hero .eyebrow { display: inline-flex; gap: 8px; align-items: center; font-weight: 650; font-size: .9rem; color: var(--brand); background: var(--brand-soft); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
.hero h1 { max-width: 16ch; }
.gradient-text { background: var(--aurora); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 60ch; }
.hero-stats { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 28px; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.5rem; letter-spacing: -.02em; }
.hero-stats span { color: var(--ink-3); font-size: .9rem; }

/* job list */
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 8px 0 22px; }
.search { position: relative; flex: 1 1 280px; }
.search input[type=search] { padding-left: 44px; }
.search .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.job-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.job-card {
  position: relative; display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s;
}
.job-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); color: inherit; }
.job-card h3 { font-size: 1.2rem; margin: 0; }
.job-card .meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--ink-3); font-size: .9rem; }
.job-card .meta span { display: inline-flex; align-items: center; gap: 6px; }
.job-card .go { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 650; color: var(--brand); }
.job-card .go .icon { transition: transform .15s; }
.job-card:hover .go .icon { transform: translateX(3px); }
.empty-state { text-align: center; padding: 48px 16px; color: var(--ink-3); }

/* process + faq */
.section { padding: 56px 0 0; }
.section-head { max-width: 640px; margin-bottom: 24px; }
.process { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; counter-reset: step; }
.process .card { position: relative; padding-top: 56px; }
.process .card::before {
  counter-increment: step; content: counter(step); position: absolute; top: 18px; left: 24px;
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--aurora); color: #fff; font-weight: 750; font-size: .9rem;
}
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; }
.faq details + details { margin-top: 10px; }
.faq summary { cursor: pointer; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--ink-3); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--ink-2); }

/* job detail */
.breadcrumb { display: flex; gap: 8px; align-items: center; color: var(--ink-3); font-size: .92rem; margin: 24px 0 18px; }
.breadcrumb a { color: var(--ink-2); text-decoration: none; }
.job-header { padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-lg); position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.job-header::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--aurora); }
.job-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; margin-top: 24px; align-items: start; }
@media (max-width: 920px) { .job-layout { grid-template-columns: 1fr; } }
.sticky { position: sticky; top: 88px; }
.prose ul { padding-left: 0; list-style: none; margin: 0 0 1.2em; }
.prose li { position: relative; padding-left: 28px; margin: .45em 0; }
.prose li::before { content: ""; position: absolute; left: 4px; top: .6em; width: 10px; height: 10px; border-radius: 3px; background: var(--aurora); }
.facts { list-style: none; margin: 0 0 20px; padding: 0; }
.facts li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.facts li:last-child { border-bottom: 0; }
.facts .icon { color: var(--brand); margin-top: 3px; }
.facts small { display: block; color: var(--ink-3); font-size: .8rem; }
.mobile-cta { display: none; }
@media (max-width: 920px) {
  .mobile-cta { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
  .mobile-cta .btn { flex: 1; }
  .has-mobile-cta { padding-bottom: 88px; }
}

/* forms */
label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; color: var(--ink); }
label .opt { font-weight: 450; color: var(--ink-3); }
input[type=text], input[type=email], input[type=tel], input[type=url], input[type=password], input[type=search], select, textarea {
  width: 100%; padding: 12px 14px; min-height: 46px; border: 1px solid var(--line-strong); border-radius: 12px;
  font: inherit; background: var(--surface); color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: var(--focus); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--bad); }
.field { margin-bottom: 18px; }
.field .hint { font-size: .82rem; color: var(--ink-3); margin-top: 6px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 600px) { .grid-2 { grid-template-columns: 1fr; } }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 450; font-size: .93rem; color: var(--ink-2); padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); cursor: pointer; }
.check + .check { margin-top: 10px; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.counter { float: right; font-weight: 450; font-size: .8rem; color: var(--ink-3); }
.dropzone {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
  padding: 28px 16px; border: 2px dashed var(--line-strong); border-radius: 14px; background: var(--surface-2); cursor: pointer;
  transition: border-color .15s, background .15s;
}
.dropzone.is-over, .dropzone:hover { border-color: var(--brand); background: var(--brand-soft); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone .icon { width: 30px; height: 30px; color: var(--brand); }
.dropzone .file { font-weight: 650; color: var(--ink); }

/* wizard + status stepper */
.stepper { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0 0 24px; counter-reset: s; }
.stepper li { flex: 1; min-width: 0; }
.stepper .bar { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.stepper .bar::after { content: ""; display: block; height: 100%; width: 0; background: var(--aurora); transition: width .35s ease; }
.stepper li.done .bar::after, .stepper li.current .bar::after { width: 100%; }
.stepper li.current .bar::after { width: 55%; }
.stepper .label { display: block; margin-top: 8px; font-size: .82rem; font-weight: 600; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stepper li.current .label, .stepper li.done .label { color: var(--ink); }
.wizard [data-step] { animation: fade .25s ease; }
.wizard.js [data-step]:not(.active) { display: none; }
.wizard-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; padding-top: 20px; border-top: 1px solid var(--line); }
.wizard-actions .spacer { flex: 1; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.review { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; font-size: .93rem; margin: 0 0 20px; padding: 16px 18px; background: var(--surface-2); border-radius: 12px; border: 1px solid var(--line); }
.review dt { color: var(--ink-3); }
.review dd { margin: 0; word-break: break-word; }

.progress-track { display: flex; align-items: flex-start; gap: 0; margin: 18px 0 6px; }
.progress-track .pt { flex: 1; text-align: center; position: relative; font-size: .78rem; color: var(--ink-3); font-weight: 600; }
.progress-track .pt::before { content: ""; position: absolute; top: 11px; left: -50%; right: 50%; height: 3px; background: var(--line); z-index: 0; }
.progress-track .pt:first-child::before { display: none; }
.progress-track .dot { position: relative; z-index: 1; width: 24px; height: 24px; border-radius: 50%; margin: 0 auto 8px; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--line-strong); }
.progress-track .pt.done .dot { background: var(--teal); border-color: var(--teal); color: #fff; }
.progress-track .pt.done::before, .progress-track .pt.current::before { background: var(--teal); }
.progress-track .pt.current .dot { border-color: var(--brand); box-shadow: 0 0 0 5px color-mix(in srgb, var(--brand) 18%, transparent); }
.progress-track .pt.current { color: var(--ink); }
.progress-track.bad .pt.current .dot { border-color: var(--bad); background: var(--bad); }

/* alerts */
.alert { border-radius: 14px; padding: 14px 18px; margin-bottom: 16px; display: flex; gap: 12px; align-items: flex-start; }
.alert .icon { margin-top: 3px; }
.alert-error { background: var(--bad-soft); color: var(--bad); }
.alert-ok { background: var(--ok-soft); color: var(--ok); }
.alert-warn { background: var(--warn-soft); color: var(--warn); }
.alert-info { background: var(--info-soft); color: var(--info); }
.alert ul { margin: 6px 0 0; padding-left: 1.1em; }
.alert strong { color: inherit; }

/* auth */
.auth { display: grid; place-items: center; padding: 48px 16px; }
.auth .card { width: min(440px, 100%); }
.auth h1 { font-size: 1.7rem; }

/* candidate portal */
.page-head { padding: 36px 0 20px; }
.app-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 24px; align-items: center; }
.app-card + .app-card { margin-top: 14px; }
.app-card h3 { margin: 0 0 4px; }
@media (max-width: 700px) { .app-card { grid-template-columns: 1fr; } }
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 18px 38px; }
.timeline li::before { content: ""; position: absolute; left: 5px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 3px solid var(--brand); }
.timeline li.k-note::before { border-color: var(--warn); }
.timeline li.k-assessment::before { border-color: var(--violet); }
.timeline li.k-mail::before { border-color: var(--teal); }
.timeline .when { font-size: .8rem; color: var(--ink-3); }
.timeline .msg { margin-top: 6px; padding: 12px 14px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; white-space: pre-wrap; color: var(--ink-2); font-size: .93rem; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; font-size: .93rem; margin: 0; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; word-break: break-word; }

/* interview widget */
.interview [data-show] { display: none; }
.interview[data-state="ready"] [data-show~="ready"],
.interview[data-state="connecting"] [data-show~="connecting"],
.interview[data-state="live"] [data-show~="live"],
.interview[data-state="finished"] [data-show~="finished"],
.interview[data-state="phone"] [data-show~="phone"],
.interview[data-state="error"] [data-show~="error"],
.interview[data-state="closed"] [data-show~="closed"],
.interview[data-state="unavailable"] [data-show~="unavailable"] { display: block; }
.checklist { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 12px; align-items: center; color: var(--ink-2); }
.checklist .icon-bubble { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: none; }
.orb-wrap { display: grid; place-items: center; padding: 28px 0 8px; }
.orb { width: 140px; height: 140px; border-radius: 50%; background: var(--aurora); box-shadow: 0 0 0 calc(var(--level, 0) * 28px) color-mix(in srgb, var(--brand) 18%, transparent), 0 18px 40px rgba(58, 134, 255, .35); transition: box-shadow .08s linear; display: grid; place-items: center; color: #fff; }
.orb .icon { width: 44px; height: 44px; }
.orb.speaking { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.05); } }
.live-status { text-align: center; font-weight: 650; margin: 12px 0 18px; min-height: 1.6em; }
.captions { max-height: 240px; overflow-y: auto; border-top: 1px solid var(--line); margin-top: 16px; padding-top: 14px; font-size: .93rem; }
.captions p { margin: 0 0 .5em; }
.captions .who { font-weight: 650; color: var(--brand); }
.captions .who.me { color: var(--teal); }
.spinner { width: 30px; height: 30px; border: 3px solid var(--brand-soft); border-top-color: var(--brand); border-radius: 50%; animation: spin 1s linear infinite; margin: 14px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.note { display: flex; gap: 12px; background: var(--info-soft); color: var(--ink-2); border-radius: 12px; padding: 14px 16px; font-size: .92rem; }
.note .icon { color: var(--info); margin-top: 2px; }

/* recruiter backend */
.admin-body { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
@media (max-width: 880px) { .admin-body { grid-template-columns: 1fr; } .sidebar { position: static !important; height: auto !important; } }
.sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--surface); border-right: 1px solid var(--line); padding: 20px 14px; display: flex; flex-direction: column; gap: 18px; }
.sidebar .brand { padding: 4px 10px 8px; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav .label { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); font-weight: 700; padding: 12px 12px 6px; }
.side-nav a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-weight: 560; font-size: .93rem; }
.side-nav a:hover { background: var(--bg-soft); color: var(--ink); }
.side-nav a.active { background: var(--brand-soft); color: var(--brand); }
.side-nav .count { font-size: .78rem; background: var(--bg-soft); color: var(--ink-3); border-radius: 999px; padding: 1px 8px; font-weight: 650; }
.sidebar .me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.admin-main { padding: 28px clamp(16px, 3vw, 36px) 48px; min-width: 0; }
.admin-main h1 { font-size: 1.7rem; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin: 18px 0 22px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.kpi span { color: var(--ink-3); font-size: .85rem; font-weight: 600; }
.kpi strong { display: block; font-size: 1.9rem; letter-spacing: -.02em; margin-top: 4px; }
.pill-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.pill-tabs a { text-decoration: none; padding: 7px 13px; border-radius: 999px; font-size: .88rem; font-weight: 600; color: var(--ink-2); border: 1px solid var(--line); background: var(--surface); }
.pill-tabs a.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pill-tabs a .n { opacity: .6; margin-left: 4px; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.filters .search { max-width: 420px; }
.filters select { width: auto; min-width: 220px; }
.table-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); font-weight: 700; background: var(--surface-2); }
tbody tr { cursor: pointer; transition: background .12s; }
tbody tr:hover td { background: var(--surface-2); }
tbody tr:last-child td { border-bottom: 0; }
.cand { display: flex; align-items: center; gap: 12px; }
.cand .avatar { width: 36px; height: 36px; font-size: .8rem; }
.cand small { display: block; color: var(--ink-3); }
.ref { font-family: var(--mono); font-size: .8rem; color: var(--ink-3); background: var(--bg-soft); padding: 2px 6px; border-radius: 6px; }
.score { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.score-ring { --v: 0; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 1.2rem;
  background: conic-gradient(var(--brand) calc(var(--v) * 10%), var(--line) 0); position: relative; }
.score-ring::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--surface); }
.score-ring span { position: relative; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
@media (max-width: 1100px) { .detail-grid { grid-template-columns: 1fr; } }
.actionbar { display: flex; gap: 8px; flex-wrap: wrap; }
.comp { padding: 12px 0; border-bottom: 1px solid var(--line); }
.comp:last-child { border-bottom: 0; }
.meter { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; margin: 8px 0 6px; }
.meter i { display: block; height: 100%; background: var(--aurora); border-radius: 999px; }
.transcript { white-space: pre-wrap; font-size: .9rem; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 16px; max-height: 560px; overflow-y: auto; }
dialog { border: 0; border-radius: 20px; padding: 0; width: min(560px, 100% - 32px); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); }
dialog::backdrop { background: rgba(8, 12, 24, .5); backdrop-filter: blur(3px); }
dialog form { padding: 24px; }
dialog h2 { font-size: 1.3rem; }
/* key/value lists inside narrow sidebars: label above value */
aside .kv { grid-template-columns: 1fr; gap: 0; }
aside .kv dt { font-size: .8rem; margin-top: 12px; }
aside .kv dt:first-child { margin-top: 0; }
