:root {
  color-scheme: light;
  --bg: oklch(1 0 0);
  --surface: oklch(0.978 0.007 285);
  --surface-strong: oklch(0.95 0.018 285);
  --ink: oklch(0.205 0.09 285);
  --muted: oklch(0.47 0.055 285);
  --faint: oklch(0.68 0.04 285);
  --line: oklch(0.885 0.024 285);
  --primary: oklch(0.76 0.16 80);
  --primary-hover: oklch(0.69 0.16 80);
  --primary-ink: oklch(0.205 0.09 285);
  --primary-soft: oklch(0.945 0.055 80);
  --accent: oklch(0.435 0.19 285);
  --accent-ink: oklch(1 0 0);
  --success: oklch(0.53 0.13 154);
  --success-soft: oklch(0.94 0.04 154);
  --warning: oklch(0.64 0.15 77);
  --warning-soft: oklch(0.95 0.05 77);
  --danger: oklch(0.55 0.19 28);
  --danger-soft: oklch(0.95 0.035 28);
  --focus-ring: oklch(0.76 0.16 80 / 0.45);
  --shadow: 0 8px 8px oklch(0.205 0.09 285 / 0.08);
  --radius: 12px;
  --radius-small: 8px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); color: var(--ink); font-family: var(--font); }
body { margin: 0; min-height: 100vh; }
button, input, textarea, select { font: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.52; }
a { color: inherit; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 60; padding: 10px 14px; background: var(--ink); color: var(--bg); border-radius: 8px; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 256px minmax(0, 1fr); background: var(--bg); }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 26px 16px 18px; border-right: 1px solid var(--line); display: flex; flex-direction: column; background: var(--surface); }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 10px 28px; font-size: 15px; font-weight: 760; letter-spacing: -0.015em; text-decoration: none; }
.brand-mark { display: block; width: 28px; height: 28px; flex: 0 0 auto; object-fit: contain; }
.brand-dot { color: var(--primary); }
.sidebar-nav { display: grid; gap: 4px; }
.nav-link { display: flex; align-items: center; gap: 11px; min-height: 42px; padding: 0 11px; color: var(--muted); border-radius: 8px; font-size: 14px; font-weight: 600; text-decoration: none; }
.nav-link:hover { background: var(--surface-strong); color: var(--ink); }
.nav-link.is-active { background: oklch(0.94 0.045 285); color: var(--accent); }
.nav-icon, .icon { width: 18px; height: 18px; flex: none; stroke-width: 1.9; }
.sidebar-bottom { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); }
.profile-button { display: flex; width: 100%; align-items: center; gap: 10px; border: 0; padding: 8px 7px; border-radius: 8px; color: var(--ink); text-align: left; background: transparent; }
.profile-button:hover { background: var(--surface-strong); }
.avatar { display: grid; flex: 0 0 auto; width: 34px; height: 34px; place-items: center; overflow: hidden; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 800; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-name { display: block; max-width: 145px; overflow: hidden; font-size: 13px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.profile-company { display: block; max-width: 145px; overflow: hidden; margin-top: 2px; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.scrim { display: none; }
.main-area { min-width: 0; }
.topbar { display: flex; min-height: 76px; align-items: center; justify-content: space-between; padding: 0 38px; border-bottom: 1px solid var(--line); }
.breadcrumb { color: var(--muted); font-size: 13px; }
.breadcrumb strong { color: var(--ink); font-weight: 700; }
.topbar .mobile-menu { display: none; }
.content { max-width: 1360px; margin: 0 auto; padding: 38px; }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 8px; font-size: 28px; line-height: 1.18; letter-spacing: -0.025em; text-wrap: balance; }
h2 { margin-bottom: 8px; font-size: 18px; letter-spacing: -0.015em; text-wrap: balance; }
h3 { margin-bottom: 6px; font-size: 15px; letter-spacing: -0.01em; }
.page-intro, .field-help { margin-bottom: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.heading-actions, .inline-actions, .toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

.button { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; gap: 8px; padding: 0 13px; border: 1px solid transparent; border-radius: 8px; background: var(--surface-strong); color: var(--ink); font-size: 13px; font-weight: 700; line-height: 1; text-decoration: none; transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease; }
.button:hover { background: var(--line); }
.button:active { transform: translateY(1px); }
.button.primary { background: var(--primary); color: var(--primary-ink); }
.button.primary:hover { background: var(--primary-hover); }
.button.outline { border-color: var(--line); background: var(--bg); }
.button.outline:hover { border-color: var(--faint); background: var(--surface); }
.button.ghost { background: transparent; color: var(--muted); }
.button.ghost:hover { background: var(--surface-strong); color: var(--ink); }
.button.danger { color: var(--danger); }
.button.icon-only { width: 36px; min-width: 36px; min-height: 36px; padding: 0; }
.button.small { min-height: 33px; padding: 0 10px; font-size: 12px; }

.overview { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.8fr); gap: 24px; margin-bottom: 32px; }
.attention-panel { padding: 22px; border-radius: var(--radius); background: var(--ink); color: var(--bg); }
.attention-panel h2 { margin-bottom: 4px; color: var(--bg); }
.attention-panel p { max-width: 53ch; margin-bottom: 18px; color: oklch(0.84 0.01 320); font-size: 14px; line-height: 1.55; }
.attention-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.attention-panel .button { background: var(--primary); color: var(--primary-ink); }
.attention-panel .button.ghost { border-color: oklch(1 0 0 / 0.28); background: transparent; color: oklch(0.9 0.01 320); }
.attention-panel .button.ghost:hover { background: oklch(1 0 0 / 0.1); color: white; }
.pulse-panel { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); }
.pulse-label { margin-bottom: 11px; color: var(--muted); font-size: 12px; font-weight: 700; }
.pulse-number { margin-bottom: 5px; font-size: 38px; font-weight: 780; letter-spacing: -0.045em; }
.pulse-copy { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.pulse-bar { display: flex; height: 6px; gap: 3px; margin-top: 18px; overflow: hidden; border-radius: 999px; background: var(--surface-strong); }
.pulse-bar span:first-child { background: var(--primary); }
.pulse-bar span:last-child { flex: 1; background: var(--warning); }
.pulse-legend { margin: 9px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }

.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.section-heading h2 { margin: 0; }
.section-count { color: var(--muted); font-size: 13px; }
.job-list { display: grid; gap: 10px; }
.job-row { display: grid; grid-template-columns: minmax(200px, 1.5fr) minmax(260px, 1.2fr) auto; gap: 24px; align-items: center; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); transition: border-color 160ms ease, box-shadow 160ms ease; }
.job-row:hover { border-color: var(--faint); box-shadow: var(--shadow); }
.job-title-link { display: inline-block; margin-bottom: 5px; color: var(--ink); font-size: 16px; font-weight: 760; letter-spacing: -0.015em; text-decoration: none; }
.job-title-link:hover { color: var(--primary-hover); text-decoration: underline; text-underline-offset: 3px; }
.job-description { max-width: 45ch; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
/* Kartu dashboard dijaga tetap seragam; deskripsi panjang dipotong dua baris. */
.job-row .job-description { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.job-metrics { display: grid; grid-template-columns: repeat(3, minmax(70px, 1fr)); gap: 8px; }
.metric { min-width: 0; }
.metric-value { display: block; font-size: 19px; font-weight: 760; letter-spacing: -0.025em; }
.metric-label { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; line-height: 1.2; }
.metric.attention .metric-value { color: var(--primary); }
.row-actions { display: flex; justify-content: flex-end; gap: 4px; }
.row-actions .button { white-space: nowrap; }
.status, .tag { display: inline-flex; align-items: center; gap: 5px; min-height: 24px; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 750; white-space: nowrap; }
.status::before { width: 6px; height: 6px; border-radius: 50%; background: currentColor; content: ""; }
.status.active, .tag.success { background: var(--success-soft); color: oklch(0.38 0.1 154); }
.status.draft, .tag.neutral { background: var(--surface-strong); color: var(--muted); }
.status.closed, .tag.danger { background: var(--danger-soft); color: oklch(0.42 0.15 28); }
.status.interview, .tag.accent { background: oklch(0.93 0.035 245); color: oklch(0.42 0.15 264); }
.status.liked, .tag.liked { background: var(--primary-soft); color: var(--primary-hover); }
.status.review, .tag.warning { background: var(--warning-soft); color: oklch(0.42 0.09 77); }

.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 20px 16px; border-bottom: 1px solid var(--line); }
.card-body { padding: 20px; }
.split-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(310px, 0.85fr); gap: 24px; align-items: start; }
.editor-grid { display: grid; gap: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 7px; }
.field.span-2 { grid-column: span 2; }
.job-description-input { min-height: 220px; }
.field label, .field-label { color: var(--ink); font-size: 13px; font-weight: 700; }
input, textarea, select { width: 100%; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); outline: none; transition: border-color 160ms ease, box-shadow 160ms ease; }
input, select { min-height: 41px; padding: 0 11px; }
textarea { min-height: 118px; padding: 10px 11px; line-height: 1.5; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
input:focus, textarea:focus, select:focus, button:focus-visible, a:focus-visible, [tabindex]:focus-visible { border-color: var(--primary); outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.form-footer { display: flex; justify-content: flex-end; gap: 10px; padding-top: 2px; }
.question-list { display: grid; gap: 10px; }
.question-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 10px; }
.question-order { display: grid; width: 26px; height: 26px; place-items: center; border-radius: 7px; background: var(--surface-strong); color: var(--muted); font-size: 12px; font-weight: 800; }
.question-text { margin: 0 0 4px; font-size: 13px; font-weight: 680; line-height: 1.4; }
.question-meta { color: var(--muted); font-size: 12px; }
.question-actions { display: flex; gap: 2px; }
.question-empty { color: var(--faint); font-weight: 600; }
.question-item.is-editing { grid-template-columns: auto minmax(0, 1fr); align-items: start; border-color: var(--primary); background: var(--surface); }
.question-form { display: grid; gap: 14px; }
.option-list { display: grid; gap: 8px; }
.option-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; align-items: center; }
.question-form-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 2px; }
.empty-inline { padding: 20px; border: 1px dashed var(--faint); border-radius: 10px; color: var(--muted); font-size: 13px; text-align: center; }
.preview-panel { position: sticky; top: 26px; }
.preview-top { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; color: var(--muted); font-size: 12px; font-weight: 700; }
.preview-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--primary); }
.candidate-preview { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.candidate-preview h2 { margin-bottom: 7px; font-size: 19px; }
/* Deskripsi ditulis HR dengan baris dan penanda daftar sendiri, jadi jeda
   barisnya dipertahankan. Pratinjau dibatasi tingginya agar panel editor
   tidak ikut memanjang saat deskripsinya penuh. */
.candidate-preview .job-description { max-width: none; margin-bottom: 18px; max-height: 260px; overflow-y: auto; white-space: pre-wrap; overscroll-behavior: contain; }
.candidate-preview .job-description:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; }
.preview-field { display: grid; gap: 6px; margin-top: 14px; }
.preview-field label { font-size: 12px; font-weight: 700; }
.fake-input { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 38px; padding: 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--bg); color: var(--faint); font-size: 12px; }
.fake-caret { flex: none; }
.fake-checklist { display: grid; gap: 6px; }
.fake-check { display: flex; align-items: center; gap: 8px; color: var(--faint); font-size: 12px; }
.fake-box { flex: none; width: 13px; height: 13px; border: 1px solid var(--line); border-radius: 3px; background: var(--bg); }

/* Penanda wajib dan opsional dipakai di label formulir kandidat maupun
   pratinjau HR, sehingga status pertanyaan terbaca tanpa membuka penyunting. */
.label-required { margin-left: 3px; color: var(--danger); font-weight: 800; }
.label-optional { margin-left: 6px; padding: 1px 6px; border-radius: 999px; background: var(--surface-strong); color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: 0.01em; text-transform: lowercase; vertical-align: middle; }

/* Checklist pada formulir kandidat. Seluruh baris dapat diklik agar mudah
   ditekan di layar sentuh. */
.checklist { display: grid; gap: 8px; }
.check-option { display: flex; align-items: flex-start; gap: 10px; min-height: 40px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); font-size: 14px; font-weight: 500; line-height: 1.45; cursor: pointer; }
.check-option:hover { border-color: var(--faint); background: var(--surface); }
.check-option input { flex: none; width: 17px; height: 17px; margin-top: 1px; accent-color: var(--accent); cursor: pointer; }
.check-option:focus-within { border-color: var(--accent); outline: 3px solid var(--focus-ring); outline-offset: 1px; }
.check-option:has(input:checked) { border-color: var(--accent); background: oklch(0.965 0.025 285); }

/* Sakelar wajib diisi di dalam penyunting pertanyaan. */
.switch-row { display: flex; align-items: flex-start; gap: 10px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); cursor: pointer; }
.switch-row input { flex: none; width: 17px; height: 17px; margin-top: 1px; accent-color: var(--accent); cursor: pointer; }
.switch-row span { display: grid; gap: 2px; font-size: 13px; }
.switch-row strong { font-weight: 700; }
.switch-row:focus-within { border-color: var(--accent); outline: 3px solid var(--focus-ring); outline-offset: 1px; }

.ranking-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.filter-group { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-button { min-height: 33px; padding: 0 10px; border: 1px solid transparent; border-radius: 999px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 700; }
.filter-button:hover { background: var(--surface-strong); color: var(--ink); }
.filter-button.is-active { border-color: var(--line); background: var(--bg); color: var(--ink); }
.candidate-table { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.candidate-table:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.candidate-table table { width: 100%; min-width: 800px; border-collapse: collapse; }
.candidate-table th { padding: 12px 18px; border-bottom: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 11px; font-weight: 760; text-align: left; }
.candidate-table td { padding: 15px 18px; border-bottom: 1px solid var(--line); font-size: 13px; vertical-align: middle; }
.candidate-table tbody tr:last-child td { border-bottom: 0; }
.candidate-table tbody tr:hover { background: var(--surface); }
.rank { color: var(--muted); font-size: 12px; font-weight: 750; }
.candidate-person { display: flex; align-items: center; gap: 10px; }
.candidate-name { display: block; margin-bottom: 3px; font-weight: 750; }
.candidate-role { display: block; color: var(--muted); font-size: 12px; }
.score { display: inline-flex; min-width: 46px; align-items: baseline; gap: 2px; font-weight: 810; letter-spacing: -0.025em; }
.score small { font-size: 11px; font-weight: 650; }
.score.high { color: var(--success); }.score.medium { color: oklch(0.48 0.11 77); }.score.low { color: var(--danger); }
.score-pending { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border-radius: 999px; background: var(--surface-strong); color: var(--muted); font-size: 11px; font-weight: 750; white-space: nowrap; }
.table-actions { display: flex; justify-content: flex-end; gap: 3px; }

.detail-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: start; margin-bottom: 26px; }
.detail-person { display: flex; gap: 14px; align-items: flex-start; }
.detail-person .avatar { width: 48px; height: 48px; font-size: 15px; }
.detail-person h1 { margin-bottom: 5px; }
.detail-person p { margin-bottom: 6px; color: var(--muted); font-size: 14px; }
.detail-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.detail-contact span, .detail-contact a { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); text-decoration: none; }
.detail-contact a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.detail-contact .icon { width: 15px; height: 15px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr); gap: 24px; align-items: start; }
.detail-main { display: grid; gap: 24px; }
.detail-side { display: grid; gap: 16px; }
.insight { padding: 20px; background: var(--ink); color: var(--bg); border-radius: var(--radius); }
.insight-top { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 12px; }
.insight-label { color: oklch(0.84 0.01 320); font-size: 12px; font-weight: 700; }
.insight-score { font-size: 31px; font-weight: 830; letter-spacing: -0.045em; }
.insight p { margin: 0; color: oklch(0.87 0.01 320); font-size: 13px; line-height: 1.55; }
.strength-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 15px; }
.strength-list .tag { background: oklch(1 0 0 / 0.12); color: white; }
.insight-group { margin: 16px 0 0; }
.insight-meta { margin: 12px 0 0; color: oklch(0.87 0.01 320); font-size: 12px; }
.insight-meta strong { color: var(--primary); font-weight: 750; }
.cv-missing { margin: 20px; }
.insight-actions { display: flex; justify-content: flex-end; margin-top: 18px; }
.insight-actions .button { background: oklch(1 0 0 / 0.14); color: white; }
.insight-actions .button:hover:not(:disabled) { background: oklch(1 0 0 / 0.22); }
.answer-list { display: grid; gap: 0; }
.answer { padding: 18px 0; border-bottom: 1px solid var(--line); }
.answer:first-child { padding-top: 0; }.answer:last-child { padding-bottom: 0; border-bottom: 0; }
.answer-question { margin-bottom: 7px; font-size: 13px; font-weight: 750; line-height: 1.45; }
.answer-copy { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; white-space: pre-wrap; }
.cv-viewer { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.cv-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 48px; padding: 0 12px; border-bottom: 1px solid var(--line); background: var(--bg); }
.cv-file { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 12px; font-weight: 700; }.cv-file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zoom-actions { display: flex; align-items: center; gap: 3px; color: var(--muted); font-size: 11px; }
.cv-paper-wrap { overflow: auto; max-height: 520px; padding: 20px; }
.cv-paper { width: min(100%, 520px); min-height: 430px; margin: 0 auto; padding: 34px; background: white; box-shadow: 0 1px 3px oklch(0.2 0.02 320 / 0.16); transform-origin: top center; transition: transform 180ms ease; }
.cv-embed { display: block; width: min(100%, 720px); height: 520px; margin: 0 auto; border: 0; background: white; }
.cv-paper h3 { margin-bottom: 4px; font-size: 19px; }.cv-paper p { color: var(--muted); font-size: 12px; line-height: 1.55; }.cv-rule { height: 1px; margin: 18px 0; background: var(--line); }.cv-paper h4 { margin: 0 0 6px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; }.cv-paper pre { color: var(--muted); font-family: var(--font); font-size: 12px; line-height: 1.65; white-space: pre-wrap; }
.note-card textarea { min-height: 120px; }.status-actions { display: grid; gap: 7px; }.status-option { display: flex; width: 100%; align-items: center; justify-content: space-between; min-height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); font-size: 12px; font-weight: 700; text-align: left; }.status-option:hover { border-color: var(--faint); background: var(--surface); }.status-option.is-selected { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-hover); }

.settings-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 32px; }.settings-menu { display: grid; align-content: start; gap: 3px; }.settings-menu a { padding: 9px 10px; border-radius: 7px; color: var(--muted); font-size: 13px; font-weight: 700; text-decoration: none; }.settings-menu a:hover { background: var(--surface-strong); color: var(--ink); }.settings-content { max-width: 680px; display: grid; gap: 20px; }.photo-row { display: flex; align-items: center; gap: 14px; }.photo-row .avatar { width: 62px; height: 62px; font-size: 18px; }.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); }.toggle-row:last-child { border: 0; padding-bottom: 0; }.toggle-title { margin: 0 0 3px; font-size: 13px; font-weight: 730; }.toggle-copy { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }.switch { position: relative; display: inline-flex; flex: 0 0 auto; width: 42px; height: 24px; padding: 0; border: 0; border-radius: 999px; background: var(--faint); transition: background 180ms ease; }.switch span { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: white; transition: transform 180ms ease; }.switch[aria-checked="true"] { background: var(--primary); }.switch[aria-checked="true"] span { transform: translateX(18px); }

.auth-layout { display: grid; min-height: 100vh; grid-template-columns: minmax(0, 1fr) minmax(400px, 0.8fr); }.auth-aside { display: flex; flex-direction: column; justify-content: space-between; padding: 38px; background: var(--ink); color: white; }.auth-aside .brand { padding: 0; color: white; }.auth-aside-copy { max-width: 540px; margin: auto 0; }.auth-aside h1 { max-width: 12ch; font-size: 42px; line-height: 1.04; letter-spacing: -0.04em; }.auth-aside p { max-width: 48ch; color: oklch(0.82 0.015 320); font-size: 15px; line-height: 1.6; }.auth-points { display: grid; gap: 12px; margin-top: 28px; }.auth-point { display: flex; align-items: center; gap: 9px; color: oklch(0.87 0.01 320); font-size: 13px; }.auth-point svg { color: var(--primary); }.auth-footnote { color: oklch(0.65 0.015 320); font-size: 12px; }.auth-form-wrap { display: grid; place-items: center; padding: 28px; }.auth-card { width: min(100%, 396px); }.auth-card .brand { display: none; }.auth-card h1 { margin-bottom: 8px; }.auth-card > p { margin-bottom: 28px; color: var(--muted); font-size: 14px; line-height: 1.5; }.auth-form { display: grid; gap: 16px; }.auth-form .button { width: 100%; margin-top: 4px; }.auth-links { display: flex; justify-content: space-between; gap: 10px; color: var(--primary-hover); font-size: 13px; font-weight: 700; }.auth-helper { margin-top: 22px; color: var(--muted); font-size: 13px; text-align: center; }.auth-helper a { color: var(--primary-hover); font-weight: 750; }.demo-login { margin-top: 22px; padding: 13px; border-radius: 8px; background: var(--surface); color: var(--muted); font-size: 12px; line-height: 1.5; }.demo-login strong { color: var(--ink); }

.application-shell { min-height: 100vh; background: var(--surface); }.application-nav { display: flex; align-items: center; justify-content: space-between; max-width: 900px; margin: 0 auto; padding: 20px 24px; }.application-main { width: min(100% - 32px, 760px); margin: 10px auto 64px; }.application-hero { padding: 30px 0 26px; }.application-hero h1 { max-width: 20ch; margin-bottom: 10px; font-size: 34px; }.application-hero p { max-width: 62ch; margin-bottom: 0; color: var(--muted); font-size: 15px; line-height: 1.6; white-space: pre-wrap; }.application-card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }.application-card h2 { margin-bottom: 4px; }.application-section { padding: 24px 0; border-bottom: 1px solid var(--line); }.application-section:last-child { border: 0; padding-bottom: 0; }.application-section h2 { margin-bottom: 16px; }.upload-drop { display: grid; min-height: 118px; place-items: center; padding: 18px; border: 1px dashed var(--faint); border-radius: 9px; color: var(--muted); text-align: center; }.upload-drop input { width: 1px; height: 1px; opacity: 0; position: absolute; }.upload-drop label { color: var(--primary-hover); cursor: pointer; font-size: 13px; font-weight: 750; }.application-submit { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 24px; }.application-submit p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }.success-state { padding: 46px 24px; text-align: center; }.success-icon { display: grid; width: 50px; height: 50px; place-items: center; margin: 0 auto 16px; border-radius: 50%; background: var(--success-soft); color: var(--success); }.success-state h1 { margin-bottom: 9px; }.success-state p { max-width: 45ch; margin: 0 auto; color: var(--muted); line-height: 1.6; }

.confirm-dialog { width: min(100% - 32px, 430px); padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); color: var(--ink); box-shadow: 0 18px 44px oklch(0.205 0.09 285 / 0.24); }
.confirm-dialog::backdrop { background: oklch(0.205 0.09 285 / 0.45); }
.confirm-dialog form { padding: 22px; }
.confirm-dialog h2 { margin-bottom: 9px; text-wrap: pretty; }
.confirm-dialog p { margin: 0 0 20px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.confirm-dialog strong { color: var(--ink); font-weight: 750; }
.confirm-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.button.danger-solid { background: var(--danger); color: oklch(1 0 0); }
.button.danger-solid:hover { background: oklch(0.47 0.19 28); }
.button.outline.danger { color: var(--danger); }
.button.outline.danger:hover { border-color: var(--danger); background: var(--danger-soft); }

.progress-panel { margin: 18px 0 0; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.progress-steps { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.progress-steps li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; color: var(--faint); font-size: 13px; }
.progress-dot { width: 16px; height: 16px; border: 2px solid var(--line); border-radius: 50%; }
.progress-time { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.progress-steps li[data-state="active"] { color: var(--ink); font-weight: 700; }
.progress-steps li[data-state="active"] .progress-dot { border-color: var(--primary); border-right-color: transparent; animation: progress-spin 900ms linear infinite; }
.progress-steps li[data-state="done"] { color: var(--muted); }
.progress-steps li[data-state="done"] .progress-dot { border-color: var(--success); background: var(--success); }
.progress-steps li[data-state="failed"] .progress-dot { border-color: var(--danger); background: var(--danger); }
.progress-steps li[data-state="skipped"] .progress-dot { border-color: var(--warning); background: var(--warning); }
.progress-note { margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.progress-note:empty { display: none; }
@keyframes progress-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .progress-steps li[data-state="active"] .progress-dot { animation: none; border-right-color: var(--primary); } }

.toast-region { position: fixed; right: 20px; bottom: 20px; z-index: 50; display: grid; gap: 8px; width: min(360px, calc(100vw - 40px)); }.toast { display: flex; align-items: flex-start; gap: 10px; padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); box-shadow: var(--shadow); color: var(--ink); font-size: 13px; line-height: 1.4; animation: toast-in 190ms ease-out; }.toast.success svg { color: var(--success); }.toast.error svg { color: var(--danger); }.toast button { margin-left: auto; border: 0; background: transparent; color: var(--muted); }.loading { display: grid; gap: 12px; }.skeleton { height: 82px; border-radius: 10px; background: linear-gradient(100deg, var(--surface) 25%, var(--surface-strong) 42%, var(--surface) 58%); background-size: 200% 100%; animation: skeleton 1.2s linear infinite; }.empty-state { padding: 48px 22px; border: 1px dashed var(--faint); border-radius: var(--radius); text-align: center; }.empty-state h2 { margin-bottom: 7px; }.empty-state p { max-width: 42ch; margin: 0 auto 18px; color: var(--muted); font-size: 14px; line-height: 1.5; }

@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes skeleton { to { background-position: -200% 0; } }
@media (max-width: 980px) { .app-shell { grid-template-columns: 1fr; }.sidebar { position: fixed; z-index: 30; width: 256px; transform: translateX(-102%); transition: transform 200ms ease; box-shadow: var(--shadow); }.app-shell.menu-open .sidebar { transform: translateX(0); }.scrim { position: fixed; inset: 0; z-index: 20; display: block; border: 0; padding: 0; background: oklch(0.205 0.09 285 / 0.45); }.scrim[hidden] { display: none; }.topbar .mobile-menu { display: inline-flex; }.topbar { padding: 0 22px; }.content { padding: 30px 22px; }.overview, .split-layout, .detail-grid { grid-template-columns: 1fr; }.preview-panel { position: static; }.auth-layout { grid-template-columns: 1fr; }.auth-aside { display: none; }.auth-card .brand { display: flex; padding-bottom: 32px; }.settings-layout { grid-template-columns: 1fr; gap: 16px; }.settings-menu { display: flex; flex-wrap: wrap; }.settings-menu a { border: 1px solid var(--line); } }
@media (max-width: 660px) { .topbar { min-height: 64px; padding: 0 16px; }.content { padding: 24px 16px; }.page-heading, .detail-header { display: grid; gap: 14px; margin-bottom: 24px; }.page-heading .heading-actions { width: 100%; }.page-heading .heading-actions .button { flex: 1; }.overview { gap: 14px; }.attention-panel, .pulse-panel { padding: 18px; }.job-row { grid-template-columns: 1fr; gap: 14px; padding: 16px; }.job-metrics { max-width: 310px; }.row-actions { justify-content: flex-start; }.form-grid { grid-template-columns: 1fr; }.field.span-2 { grid-column: auto; }.form-footer { justify-content: stretch; }.form-footer .button { flex: 1; }.question-item { grid-template-columns: auto minmax(0, 1fr); }.question-actions { grid-column: 2; }.detail-person { gap: 10px; }.application-nav { padding: 16px; }.application-main { width: min(100% - 24px, 760px); margin-top: 0; }.application-hero { padding: 24px 0; }.application-hero h1 { font-size: 28px; }.application-card { padding: 20px; }.application-submit { align-items: stretch; flex-direction: column; }.application-submit .button { width: 100%; }.auth-form-wrap { padding: 22px; }.auth-card .brand { padding-bottom: 24px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; } }

/* Deskripsi lowongan bisa sangat panjang. Tanpa dilipat, formulirnya
   tenggelam jauh di bawah dan kandidat harus menggulir lama sebelum sampai ke
   kolom pertama. */
.job-desc-wrap { max-width: 62ch; }
.job-desc { position: relative; max-height: 11rem; overflow: hidden; }
.job-desc.is-open { max-height: none; }
.job-desc:not(.is-open)::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 3.5rem; background: linear-gradient(to bottom, transparent, var(--surface)); pointer-events: none; }
.job-desc-toggle { margin-top: 10px; border: 0; padding: 0; background: transparent; color: var(--primary-hover); font-size: 13px; font-weight: 750; }
.job-desc-toggle:hover { text-decoration: underline; text-underline-offset: 3px; }
.job-desc-toggle[hidden] { display: none; }

.pick-cell { width: 44px; text-align: center; }
.pick-cell input { width: 16px; min-height: 16px; padding: 0; accent-color: var(--primary); cursor: pointer; }
.bulk-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; padding: 12px 16px; border: 1px solid var(--primary); border-radius: var(--radius); background: var(--primary-soft); color: var(--ink); font-size: 13px; font-weight: 700; }
.bulk-bar[hidden] { display: none; }
tr[data-scoring] { background: var(--primary-soft); }
tr[data-scoring] .rank::after { content: " menilai…"; color: var(--primary-hover); font-weight: 700; }

.score-dialog { width: min(100% - 32px, 460px); padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); color: var(--ink); box-shadow: 0 18px 44px oklch(0.205 0.09 285 / 0.24); }
.score-dialog::backdrop { background: oklch(0.205 0.09 285 / 0.5); }
.score-dialog h2 { margin: 0; padding: 22px 22px 14px; }
.score-meter { height: 8px; margin: 0 22px; overflow: hidden; border-radius: 999px; background: var(--surface-strong); }
.score-meter-fill { width: 0; height: 100%; background: var(--primary); transition: width 240ms ease; }
.score-status { margin: 12px 22px 0; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.score-list { display: grid; gap: 8px; max-height: 220px; margin: 14px 0 0; padding: 0 22px; overflow-y: auto; list-style: none; }
.score-list li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 9px; align-items: center; color: var(--faint); font-size: 13px; }
.score-dot { width: 14px; height: 14px; border: 2px solid var(--line); border-radius: 50%; }
.score-list li[data-state="active"] { color: var(--ink); font-weight: 700; }
.score-list li[data-state="active"] .score-dot { border-color: var(--primary); border-right-color: transparent; animation: progress-spin 900ms linear infinite; }
.score-list li[data-state="done"] { color: var(--muted); }
.score-list li[data-state="done"] .score-dot { border-color: var(--success); background: var(--success); }
.score-list li[data-state="failed"] { color: var(--danger); }
.score-list li[data-state="failed"] .score-dot { border-color: var(--danger); background: var(--danger); }
.score-note { margin: 16px 22px 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.score-dialog .confirm-actions { padding: 18px 22px 22px; }
@media (prefers-reduced-motion: reduce) { .score-list li[data-state="active"] .score-dot { animation: none; border-right-color: var(--primary); } .score-meter-fill { transition: none; } }

.notice { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 18px 18px 18px 20px; border: 1px solid var(--primary); border-radius: var(--radius); background: var(--primary-soft); }
.notice-title { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 14px; font-weight: 780; }
.notice-title .icon { flex: none; color: var(--primary-hover); }
.notice-list { display: grid; gap: 9px; margin: 0; padding-left: 20px; color: var(--ink); font-size: 13px; line-height: 1.55; }
.notice-list strong { font-weight: 780; }
