/* Dua mode, keduanya dipilih (bukan dibalik otomatis): nilai gelap diambil dari kolom gelap palet referensi
   dataviz dan diukur terhadap permukaan aplikasi ini, bukan terhadap permukaan referensi. Setiap token warna di
   :root wajib punya nilai gelap di kedua blok di bawah; dijaga `tests/test_theme.py` (S-026). Palet antarmuka
   dirapikan di S-044: biru tua sebagai aksen, permukaan netral kebiruan, warna status gaya aplikasi bisnis. */
:root {
  color-scheme: light;
  /* Seri chart: slot kategori 1–2 palet referensi dataviz, divalidasi (CVD ΔE 24.7, kontras ≥ 3:1 di #ffffff). */
  --series-1: #2a78d6;
  --series-2: #eb6834;
  --grid: #e6e8ec;
  --bg: #f3f5f9;
  --surface: #ffffff;
  --surface-2: #f6f8fb;
  --surface-hover: #eef2f8;
  --field: #ffffff;
  --text: #0f1b2d;
  --muted: #566375;
  --border: #e1e6ee;
  --border-strong: #c9d2de;
  --accent: #1d4ed8;
  --accent-hover: #1e40af;
  --accent-text: #ffffff;
  --accent-soft: #eaf0ff;
  --ink: #0b1a33;
  --ink-text: #ffffff;
  --ink-muted: #b4c2d9;
  --danger: #b42318;
  --danger-text: #ffffff;
  --danger-bg: #fef3f2;
  --ok: #067647;
  --ok-bg: #ecfdf3;
  --warn: #93370d;
  --warn-bg: #fffaeb;
  --info: #1849a9;
  --info-bg: #eef4ff;
  --shadow: #0f1b2d14;
  --focus-ring: #1d4ed840;
  --radius: 12px;
  --radius-sm: 8px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Nilai gelap; sama persis di kedua scope (dijaga test). `data-theme` hanya hook untuk pemeriksaan visual. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    /* Seri chart mode gelap: slot 1–2 kolom gelap palet referensi, divalidasi terhadap #171b21
       (CVD ΔE 26.8, kontras 4.75 dan 4.45 : 1). */
    --series-1: #3987e5;
    --series-2: #d95926;
    --grid: #2f3742;
    --bg: #0f1216;
    --surface: #171b21;
    --surface-2: #1c222a;
    --surface-hover: #212833;
    --field: #12161b;
    --text: #e8ebef;
    --muted: #a7b1bd;
    --border: #2a313b;
    --border-strong: #3a4350;
    --accent: #7aa5f8;
    --accent-hover: #9dbcfa;
    --accent-text: #0f1216;
    --accent-soft: #1b2840;
    --ink: #0a1220;
    --ink-text: #ffffff;
    --ink-muted: #a9b8d0;
    --danger: #ff8f85;
    --danger-text: #2a0f0c;
    --danger-bg: #3a1a17;
    --ok: #7fd79a;
    --ok-bg: #16301f;
    --warn: #e8c06a;
    --warn-bg: #33270f;
    --info: #a9c6f5;
    --info-bg: #17243a;
    --shadow: #00000059;
    --focus-ring: #7aa5f866;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --series-1: #3987e5;
  --series-2: #d95926;
  --grid: #2f3742;
  --bg: #0f1216;
  --surface: #171b21;
  --surface-2: #1c222a;
  --surface-hover: #212833;
  --field: #12161b;
  --text: #e8ebef;
  --muted: #a7b1bd;
  --border: #2a313b;
  --border-strong: #3a4350;
  --accent: #7aa5f8;
  --accent-hover: #9dbcfa;
  --accent-text: #0f1216;
  --accent-soft: #1b2840;
  --ink: #0a1220;
  --ink-text: #ffffff;
  --ink-muted: #a9b8d0;
  --danger: #ff8f85;
  --danger-text: #2a0f0c;
  --danger-bg: #3a1a17;
  --ok: #7fd79a;
  --ok-bg: #16301f;
  --warn: #e8c06a;
  --warn-bg: #33270f;
  --info: #a9c6f5;
  --info-bg: #17243a;
  --shadow: #00000059;
  --focus-ring: #7aa5f866;
}

/* ---------- Dasar ---------- */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 15px;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.25; letter-spacing: -0.01em; }
h1 { font-size: 1.6rem; font-weight: 700; margin: 0 0 6px; }
h2 { font-size: 1.05rem; font-weight: 650; margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
h3 { font-size: 0.98rem; font-weight: 650; margin: 20px 0 8px; }
p { margin: 0 0 12px; }
ul, ol { margin: 0 0 12px; padding-left: 22px; }
li { margin: 4px 0; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.88em; background: var(--surface-2); border: 1px solid var(--border); padding: 1px 5px; border-radius: 5px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.icon { width: 18px; height: 18px; flex: 0 0 auto; vertical-align: -3px; }
.icon.lg { width: 22px; height: 22px; }
.icon.xl { width: 28px; height: 28px; }

.skip-link { position: absolute; left: 12px; top: -48px; z-index: 50; padding: 8px 14px; border-radius: var(--radius-sm); background: var(--accent); color: var(--accent-text); }
.skip-link:focus { top: 12px; }

/* ---------- Kerangka halaman ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 2px var(--shadow);
}
.topbar-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 1.02rem; }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-text);
}
.brand-mark .icon { width: 19px; height: 19px; }
.brand-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--muted);
  font: inherit;
  font-weight: 550;
  cursor: pointer;
}
.nav-link:hover { background: var(--surface-hover); color: var(--text); text-decoration: none; }
.nav-link.active { background: var(--accent-soft); color: var(--accent); }
.nav-sep { width: 1px; height: 24px; background: var(--border); margin: 0 6px; }
.topbar-note { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.85rem; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 32px 24px 64px; flex: 1 0 auto; }
.container.narrow-page { max-width: 820px; }

.footer { border-top: 1px solid var(--border); background: var(--surface); }
.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.82rem;
}
.footer-inner span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Kepala halaman ---------- */

.back-link { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; color: var(--muted); font-size: 0.875rem; font-weight: 550; }
.back-link:hover { color: var(--accent); text-decoration: none; }
.back-link .icon { width: 16px; height: 16px; }

.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head h1 { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.page-head .actions { margin-top: 0; }
.page-title { display: flex; align-items: center; gap: 14px; min-width: 0; }
.page-sub { color: var(--muted); margin: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.9rem; }
.page-sub > span { display: inline-flex; align-items: center; gap: 6px; }
.page-sub .icon { width: 16px; height: 16px; }
.eyebrow { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin: 0 0 6px; display: inline-flex; align-items: center; gap: 6px; }
.eyebrow .icon { width: 15px; height: 15px; }

.avatar {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
}
.avatar.lg { width: 52px; height: 52px; font-size: 1.25rem; }

/* ---------- Kartu ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 20px;
  box-shadow: 0 1px 2px var(--shadow);
}
.card > :last-child { margin-bottom: 0; }
.card.narrow { max-width: 460px; margin: 40px auto; }
.card.flush { padding: 0; overflow: hidden; }
.card.flush > .card-head { padding: 18px 24px; margin: 0; border-bottom: 1px solid var(--border); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.card-head h2 { margin: 0; }
.card-desc { color: var(--muted); font-size: 0.875rem; margin: -6px 0 16px; }
.h-icon {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  flex: 0 0 auto;
}
.h-icon .icon { width: 17px; height: 17px; }
.h-icon.danger { background: var(--danger-bg); color: var(--danger); }
.h-icon.warn { background: var(--warn-bg); color: var(--warn); }
.h-icon.ok { background: var(--ok-bg); color: var(--ok); }

.card.danger-zone { border-color: var(--danger-bg); }

/* Ringkasan angka di atas daftar. */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: 0 1px 2px var(--shadow);
}
.stat .h-icon { width: 42px; height: 42px; border-radius: 11px; }
.stat .h-icon .icon { width: 20px; height: 20px; }
.stat-value { font-size: 1.5rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-label { color: var(--muted); font-size: 0.82rem; font-weight: 550; }

/* ---------- Form ---------- */

label { display: block; margin: 14px 0; font-weight: 600; font-size: 0.9rem; }
label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 0.92rem; }
label.check input { margin-top: 3px; width: auto; flex: 0 0 auto; accent-color: var(--accent); }
.hint { display: block; font-weight: 400; color: var(--muted); font-size: 0.82rem; margin-top: 2px; }

input[type=text], input[type=email], input[type=password], input[type=number], input[type=file], select, textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 9px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 0.93rem;
  font-weight: 400;
  background: var(--field);
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus-ring); }
input[type=file] { padding: 8px; background: var(--surface-2); }
input[type=file]::file-selector-button {
  margin-right: 12px;
  padding: 6px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
input[type=radio], input[type=checkbox] { accent-color: var(--accent); width: 16px; height: 16px; }
textarea { min-height: 76px; resize: vertical; }
input[readonly] { background: var(--surface-2); }

fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 6px 18px 14px; margin: 16px 0; background: var(--surface); }
legend { font-weight: 700; padding: 0 8px; font-size: 0.92rem; }

/* ---------- Tombol ---------- */

button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 1px 2px var(--shadow);
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
button:hover, .button:hover { background: var(--surface-hover); text-decoration: none; }
button.primary, .button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
button.primary:hover, .button.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
button.danger, .button.danger { background: var(--danger); border-color: var(--danger); color: var(--danger-text); }
button.danger:hover { filter: brightness(0.92); }
button.ghost, .button.ghost { background: none; border-color: transparent; box-shadow: none; color: var(--muted); }
button.ghost:hover, .button.ghost:hover { background: var(--surface-hover); color: var(--text); }
button.link { border: none; background: none; color: var(--accent); padding: 0; min-height: 0; box-shadow: none; }
button.lg, .button.lg { min-height: 46px; padding: 0 22px; font-size: 0.98rem; }
button.block, .button.block { width: 100%; }
button:disabled, button:disabled:hover { opacity: 0.5; cursor: not-allowed; background: var(--surface); filter: none; }
button.primary:disabled, button.primary:disabled:hover { background: var(--accent); }

form.inline { display: inline; }
.copy-field { display: flex; gap: 8px; }
.copy-field input { flex: 1 1 auto; margin-top: 0; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.84rem; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 18px; }

/* ---------- Tabel ---------- */

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; background: var(--surface); font-size: 0.92rem; }
.table th, .table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table thead th {
  background: var(--surface-2);
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.table tbody tr:last-child td, .table tbody tr:last-child th { border-bottom: 0; }
.table tbody tr:hover td { background: var(--surface-hover); }
.table td.top, .table.top td { vertical-align: top; }
.table tbody th { font-weight: 650; width: 56px; color: var(--muted); }
.table.compact th, .table.compact td { padding: 9px 12px; }
.card .table-wrap { margin: 0 -24px; }
.card .table-wrap .table th:first-child, .card .table-wrap .table td:first-child { padding-left: 24px; }
.card .table-wrap .table th:last-child, .card .table-wrap .table td:last-child { padding-right: 24px; }
.card.flush .table-wrap { margin: 0; }
.row-link { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; white-space: nowrap; }
.row-link .icon { width: 16px; height: 16px; }
.cell-main { display: flex; align-items: center; gap: 12px; }
.cell-main strong { display: block; font-weight: 600; }
.cell-main a { color: var(--text); font-weight: 600; }
.cell-main a:hover { color: var(--accent); }

/* ---------- Lencana dan peringatan ---------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  vertical-align: middle;
}
.badge.dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge .icon { width: 13px; height: 13px; }
.badge.warn, .badge.tone-warn { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.badge.ok, .badge.tone-ok { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.badge.tone-danger { background: var(--danger-bg); color: var(--danger); border-color: transparent; }
.badge.tone-info { background: var(--info-bg); color: var(--info); border-color: transparent; }
.badge.tone-neutral { background: var(--surface-2); color: var(--muted); }
.badge.accent { background: var(--accent-soft); color: var(--accent); border-color: transparent; }

/* Ikon di kiri lewat posisi absolut, supaya isi peringatan (teks, <strong>, daftar, form) tidak ikut jadi item flex. */
.alert { position: relative; padding: 12px 16px 12px 46px; border-radius: var(--radius-sm); margin: 12px 0 16px; border: 1px solid transparent; font-size: 0.92rem; }
.alert > .icon:first-child { position: absolute; left: 16px; top: 13px; }
.alert p:last-child, .alert ul:last-child, .alert form:last-child { margin-bottom: 0; }
.alert ul { margin-top: 6px; }
.alert.error { background: var(--danger-bg); color: var(--danger); }
.alert.ok { background: var(--ok-bg); color: var(--ok); }
.alert.warn { background: var(--warn-bg); color: var(--warn); }
.alert.info { background: var(--info-bg); color: var(--info); }
.alert.small { font-size: 0.84rem; padding-top: 9px; padding-bottom: 9px; }
.alert.small > .icon:first-child { top: 10px; }

/* ---------- Isi khusus ---------- */

.muted { color: var(--muted); }
.small { font-size: 0.86rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.grid-2 > form, .grid-2 > div { min-width: 0; }
.split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.sticky { position: sticky; top: 88px; }

blockquote { margin: 8px 0; padding: 8px 14px; border-left: 3px solid var(--accent); background: var(--surface-2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--muted); font-size: 0.9rem; }
pre.cv { white-space: pre-wrap; max-height: 460px; overflow: auto; background: var(--surface-2); border: 1px solid var(--border); padding: 16px; border-radius: var(--radius-sm); font-size: 0.85rem; line-height: 1.6; margin: 0; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.empty .h-icon { width: 52px; height: 52px; border-radius: 14px; margin-bottom: 12px; }
.empty .h-icon .icon { width: 24px; height: 24px; }
.empty strong { display: block; color: var(--text); font-size: 1rem; margin-bottom: 4px; }
.empty p { max-width: 420px; margin: 0 auto 16px; }

/* Daftar dengan ikon centang/info di kiri (pemberitahuan kandidat, fitur login). */
.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; margin: 0; padding: 10px 0; border-bottom: 1px solid var(--border); }
.feature-list li:last-child { border-bottom: 0; }
.feature-list li > .icon { margin-top: 2px; color: var(--accent); }

.finding { list-style: none; padding: 0; margin: 0; }
.finding li { padding: 14px 0; border-bottom: 1px solid var(--border); margin: 0; }
.finding li:first-child { padding-top: 0; }
.finding li:last-child { border-bottom: 0; padding-bottom: 0; }

.kv { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: 0.88rem; margin-bottom: 16px; }
.kv span { display: inline-flex; align-items: center; gap: 6px; }
.kv .icon { width: 16px; height: 16px; }

.next-step { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius); background: var(--info-bg); color: var(--info); margin-bottom: 20px; border: 1px solid transparent; }
.next-step > .icon { margin-top: 2px; }
.next-step p { margin: 0; }

/* Transkrip: gelembung percakapan, AI di kiri dan kandidat di kanan. Pembicara dari atribut data-speaker. */
ol.transcript { list-style: none; padding: 4px 4px 4px 0; margin: 0; max-height: 520px; overflow: auto; display: flex; flex-direction: column; gap: 10px; }
ol.transcript li { margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); max-width: 88%; font-size: 0.92rem; align-self: flex-start; }
ol.transcript li[data-speaker="candidate"] { align-self: flex-end; background: var(--accent-soft); border-color: transparent; }
ol.transcript li strong { font-weight: 650; }
ol.transcript:empty::before { content: "Transkrip akan muncul di sini."; color: var(--muted); font-size: 0.9rem; }
#text-form textarea { flex: 1 1 320px; margin-top: 0; }
.sticky ol.transcript { max-height: calc(100vh - 200px); }
.table-wrap + p { margin-top: 14px; }

.radar-wrap { position: relative; max-width: 540px; margin: 16px auto 0; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
/* Catatan di bawah angka (catatan HR, run AI) boleh turun baris, supaya tabel Hasil tidak melebar keluar kartu. */
.num .small { white-space: normal; }
.table.top .badge { white-space: normal; margin-bottom: 4px; }
.table.top td:last-child { min-width: 280px; }
.score-big { font-size: 2.2rem; font-weight: 750; line-height: 1; font-variant-numeric: tabular-nums; }
.claim { border-top: 1px solid var(--border); padding-top: 16px; margin-top: 16px; }
.claim:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
details summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* Halaman masuk: panel merek di kiri, form di kanan. */
.auth { display: grid; grid-template-columns: 1fr 1fr; max-width: 940px; margin: 24px auto; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; box-shadow: 0 12px 32px var(--shadow); }
.auth-brand { background: var(--ink); color: var(--ink-text); padding: 40px; display: flex; flex-direction: column; gap: 28px; }
.auth-brand .brand { color: var(--ink-text); }
.auth-brand h2 { font-size: 1.5rem; font-weight: 700; margin: 0; line-height: 1.3; display: block; }
.auth-brand p { color: var(--ink-muted); margin: 0; }
.auth-brand .feature-list li { border-color: var(--ink-muted); border-bottom-style: dashed; color: var(--ink-muted); }
.auth-brand .feature-list li strong { color: var(--ink-text); display: block; }
.auth-brand .feature-list li > .icon { color: var(--ink-text); }
.auth-form { padding: 44px 40px; display: flex; flex-direction: column; justify-content: center; }
.auth-form h1 { font-size: 1.45rem; }

/* Ruang interview kandidat. */
.room-status { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--border); margin-bottom: 16px; }
.room-status .h-icon { width: 48px; height: 48px; border-radius: 50%; }
.room-status .h-icon .icon { width: 22px; height: 22px; }
.room-status p { margin: 0; }
#status { font-weight: 600; color: var(--text); }
#caption { min-height: 1.5em; font-style: italic; }

.hero { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 24px; }
.hero .h-icon { width: 52px; height: 52px; border-radius: 14px; }
.hero .h-icon .icon { width: 24px; height: 24px; }
.hero p { color: var(--muted); max-width: 680px; margin: 0; }

.success { text-align: center; }
.success .h-icon { width: 60px; height: 60px; border-radius: 50%; margin-bottom: 14px; }
.success .h-icon .icon { width: 28px; height: 28px; }
.success h2 { justify-content: center; }
.transcript-head { margin-top: 24px; }

/* ---------- Layar sempit ---------- */

@media (max-width: 900px) {
  .split, .auth { grid-template-columns: 1fr; }
  .sticky { position: static; }
  .auth-brand { padding: 28px; }
  .auth-form { padding: 32px 28px; }
}
@media (max-width: 720px) {
  .grid-2 { grid-template-columns: 1fr; }
  .container { padding: 20px 16px 48px; }
  .topbar-inner { padding: 0 16px; height: 58px; }
  .nav-link span, .topbar-note span, .brand-tag { display: none; }
  .card { padding: 18px 16px; }
  .card .table-wrap { margin: 0 -16px; }
  .card .table-wrap .table th:first-child, .card .table-wrap .table td:first-child { padding-left: 16px; }
  .card .table-wrap .table th:last-child, .card .table-wrap .table td:last-child { padding-right: 16px; }
  .page-head .actions { width: 100%; }
  h1 { font-size: 1.35rem; }
  ol.transcript li { max-width: 100%; }
  .hide-sm { display: none; }
  .table .badge { white-space: normal; }
  .table thead th { white-space: normal; }
  .cell-main > .h-icon { display: none; }
}
