/* ==========================================================================
   Rekrutmen — satu stylesheet untuk halaman publik & panel HR.
   Konsep: kertas & tinta stempel. Tanpa framework, tanpa build step.
   ========================================================================== */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url(fonts/plus-jakarta-sans-latin.woff2) format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url(fonts/plus-jakarta-sans-latin-ext.woff2) format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #F6F7F4;
  --surface: #FFFFFF;
  --ink: #1C2629;
  --ink-2: #475357;
  --ink-3: #5F6A6D;
  --rule: #DDE1DC;
  --rule-2: #C5CBC4;
  --stamp: #4136A0;
  --stamp-600: #33298A;
  --stamp-50: #EEECF9;
  --pass: #1E7A4F;
  --pass-50: #E5F3EB;
  --fail: #B3261E;
  --fail-50: #FBE9E7;
  --wait: #8F5406;
  --wait-50: #FBF1E1;
  --neutral-50: #EDF0EE;

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-xs: .8125rem;
  --fs-sm: .875rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.375rem;
  --fs-xl: 1.75rem;
  --fs-2xl: clamp(2rem, 4.5vw, 2.75rem);

  --radius: 6px;
  --radius-lg: 10px;
  --gutter: clamp(16px, 4vw, 32px);
  --measure: 68ch;
  --focus: 0 0 0 3px #FFFFFF, 0 0 0 5px var(--stamp);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  font-feature-settings: "tnum" 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: var(--fs-2xl); font-weight: 800; letter-spacing: -.028em; }
h2 { font-size: var(--fs-lg); font-weight: 750; }
h3 { font-size: var(--fs-md); font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--stamp); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--stamp-600); text-decoration-thickness: 2px; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 3px; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 32px 0; }
small, .small { font-size: var(--fs-sm); }
.muted { color: var(--ink-3); }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: 8px; top: -60px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: var(--radius); z-index: 50; }
.skip-link:focus { top: 8px; color: #fff; }

/* ---------- Tata letak publik ---------- */
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 760px; }

.site-header { border-bottom: 1px solid var(--rule); background: var(--paper); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.0625rem; letter-spacing: -.01em; }
.brand:hover { color: var(--ink); }
.brand__mark {
  width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid var(--stamp); color: var(--stamp);
  display: grid; place-items: center; font-size: .72rem; font-weight: 800; letter-spacing: .02em;
  box-shadow: inset 0 0 0 2px var(--paper), inset 0 0 0 3.5px var(--stamp);
}
.site-nav { display: flex; gap: 20px; font-size: var(--fs-sm); font-weight: 600; }
.site-nav a { color: var(--ink-2); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--stamp); text-decoration: underline; }

.site-main { padding: 40px 0 72px; min-height: calc(100vh - 68px - 90px); }
.site-footer { border-top: 1px solid var(--rule); padding: 28px 0; color: var(--ink-3); font-size: var(--fs-sm); }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.site-footer a { color: var(--ink-2); }

/* ---------- Tombol ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px;
  border: 1.5px solid transparent; border-radius: var(--radius);
  font: inherit; font-weight: 700; font-size: .9375rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn--primary { background: var(--stamp); color: #fff; }
.btn--primary:hover { background: var(--stamp-600); color: #fff; }
.btn--secondary { background: var(--surface); color: var(--ink); border-color: var(--rule-2); }
.btn--secondary:hover { border-color: var(--ink-2); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--stamp); padding-left: 8px; padding-right: 8px; }
.btn--ghost:hover { background: var(--stamp-50); color: var(--stamp-600); }
.btn--danger { background: var(--fail); color: #fff; }
.btn--danger:hover { background: #911D17; color: #fff; }
.btn--success { background: var(--pass); color: #fff; }
.btn--success:hover { background: #17613F; color: #fff; }
.btn--sm { min-height: 34px; padding: 6px 12px; font-size: var(--fs-sm); }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-busy { opacity: .6; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ---------- Form ---------- */
.field { display: grid; gap: 6px; margin-bottom: 18px; align-content: start; }
.field > label, .field-label { font-weight: 650; font-size: .9375rem; }
.field .req { color: var(--fail); font-weight: 700; }
.field .opt { color: var(--ink-3); font-weight: 500; font-size: var(--fs-sm); }
.hint { font-size: var(--fs-sm); color: var(--ink-3); margin: 0; }
.input, .select, .textarea {
  width: 100%; min-height: 44px; padding: 10px 12px;
  background: var(--surface); color: var(--ink);
  border: 1.5px solid var(--rule-2); border-radius: var(--radius);
  font: inherit; font-size: 1rem;
  transition: border-color .15s;
}
.input:hover, .select:hover, .textarea:hover { border-color: #A3ABA3; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--stamp); box-shadow: 0 0 0 3px var(--stamp-50); }
.textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.select { appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23475357' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.is-invalid .input, .is-invalid .select, .is-invalid .textarea, .is-invalid .file { border-color: var(--fail); }
.field-error { color: var(--fail); font-size: var(--fs-sm); font-weight: 600; margin: 0; }
.file {
  width: 100%; padding: 8px; background: var(--surface);
  border: 1.5px dashed var(--rule-2); border-radius: var(--radius); font: inherit; font-size: var(--fs-sm); color: var(--ink-2);
}
.file::file-selector-button {
  font: inherit; font-weight: 700; margin-right: 12px; padding: 8px 14px; cursor: pointer;
  border: 1.5px solid var(--rule-2); border-radius: var(--radius); background: var(--paper); color: var(--ink);
}
.file:hover::file-selector-button { border-color: var(--ink-2); }
.file-status { font-size: var(--fs-sm); margin: 0; color: var(--ink-2); }
.file-status.is-bad { color: var(--fail); font-weight: 600; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9375rem; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--stamp); flex: none; }
.radio-row { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 20px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Notifikasi ---------- */
.notice {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 16px; margin: 0 0 24px;
  border-radius: var(--radius); border: 1px solid; font-size: .9375rem;
}
.notice::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; margin-top: 8px; background: currentColor; }
.notice p:last-child { margin: 0; }
.notice--success { background: var(--pass-50); border-color: #B9DEC9; color: #14573A; }
.notice--error { background: var(--fail-50); border-color: #F0C2BD; color: #8C1D17; }
.notice--info { background: var(--stamp-50); border-color: #CFCAF0; color: var(--stamp-600); }
.notice--warn { background: var(--wait-50); border-color: #EFD4A8; color: #6F4104; }

/* ---------- Status badge ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px;
  font-size: var(--fs-xs); font-weight: 700; line-height: 1.7; white-space: nowrap;
  background: var(--neutral-50); color: var(--ink-2);
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--submitted { background: var(--neutral-50); color: #33454C; }
.badge--screening { background: var(--stamp-50); color: var(--stamp); }
.badge--interview { background: var(--wait-50); color: var(--wait); }
.badge--passed { background: var(--pass-50); color: var(--pass); }
.badge--rejected { background: var(--fail-50); color: var(--fail); }
.badge--withdrawn, .badge--closed, .badge--draft { background: var(--neutral-50); color: var(--ink-3); }
.badge--open { background: var(--pass-50); color: var(--pass); }

/* ---------- Beranda karier ---------- */
.hero { padding: 8px 0 32px; max-width: 760px; }
.hero h1 { margin-bottom: 14px; }
.lead { font-size: var(--fs-md); color: var(--ink-2); max-width: 60ch; }
.careers { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.filters .input { flex: 1 1 240px; width: auto; }
.filters .select { flex: 0 1 auto; width: auto; min-width: 150px; }
.filters .input, .filters .select { min-height: 42px; }
.result-count { font-size: var(--fs-sm); color: var(--ink-3); margin: 18px 0 0; }

.job-list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--rule); }
.job-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 24px; align-items: baseline;
  padding: 22px 4px; border-top: 1px solid var(--rule); color: inherit; text-decoration: none;
}
.job-row:hover { color: inherit; background: linear-gradient(90deg, var(--surface), transparent); }
.job-row__title { font-size: var(--fs-md); font-weight: 750; letter-spacing: -.01em; }
.job-row:hover .job-row__title { color: var(--stamp); text-decoration: underline; text-underline-offset: 4px; }
.job-row__summary { grid-column: 1 / -1; color: var(--ink-2); margin: 0; max-width: 70ch; font-size: .9375rem; }
.job-row__meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: var(--fs-sm); color: var(--ink-3); }
.job-row__meta span { display: inline-flex; align-items: center; gap: 6px; }
.job-row__deadline { font-size: var(--fs-sm); color: var(--ink-2); text-align: right; white-space: nowrap; }
.job-row__deadline strong { color: var(--ink); font-weight: 700; }
.icon { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.aside-block { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 22px; margin-bottom: 20px; }
.aside-block h2 { font-size: var(--fs-md); margin-bottom: 6px; }
.aside-block .field { margin-bottom: 12px; }
.steps { list-style: none; counter-reset: step; margin: 12px 0 0; padding: 0; display: grid; gap: 14px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 28px 1fr; gap: 10px; font-size: .9375rem; color: var(--ink-2); }
.steps li::before {
  content: counter(step); width: 28px; height: 28px; border-radius: 50%;
  border: 1.5px solid var(--stamp); color: var(--stamp); font-weight: 800; font-size: var(--fs-sm);
  display: grid; place-items: center;
}
.steps strong { color: var(--ink); display: block; }

.empty { padding: 48px 24px; text-align: center; border: 1.5px dashed var(--rule-2); border-radius: var(--radius-lg); color: var(--ink-2); }
.empty h2, .empty h3 { color: var(--ink); }

/* ---------- Detail lowongan ---------- */
.backlink { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: var(--fs-sm); text-decoration: none; margin-bottom: 20px; }
.backlink:hover { text-decoration: underline; }
.job-head { margin-bottom: 32px; max-width: 820px; }
.job-head .job-row__meta { font-size: .9375rem; margin-top: 6px; }
.job-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; }
.prose { max-width: var(--measure); font-size: 1.0313rem; }
.prose h2 { font-size: var(--fs-md); margin: 32px 0 10px; padding-top: 24px; border-top: 1px solid var(--rule); }
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--stamp); }
.facts { position: sticky; top: 24px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 22px; }
.facts dl { margin: 0 0 18px; display: grid; gap: 12px; }
.facts dt { font-size: var(--fs-xs); color: var(--ink-3); font-weight: 600; }
.facts dd { margin: 0; font-weight: 650; }

.apply { margin-top: 56px; padding-top: 40px; border-top: 2px solid var(--ink); max-width: 820px; }
.apply > header { margin-bottom: 28px; }
.apply fieldset { border: 0; padding: 0; margin: 0 0 36px; }
.apply legend { display: flex; align-items: center; gap: 12px; font-size: var(--fs-lg); font-weight: 750; margin-bottom: 18px; padding: 0; letter-spacing: -.015em; }
.apply legend .n {
  width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--paper);
  display: grid; place-items: center; font-size: .9375rem; font-weight: 800; flex: none;
}
.upload-note { display: flex; gap: 12px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); font-size: var(--fs-sm); color: var(--ink-2); margin-bottom: 20px; }
.upload-note .icon { width: 20px; height: 20px; color: var(--pass); margin-top: 1px; }
.submit-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding-top: 8px; }

/* ---------- Tiket kode tracking (elemen utama) ---------- */
.ticket {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 220px;
  background: var(--surface); border: 1.5px solid var(--ink); border-radius: var(--radius-lg);
  overflow: hidden; margin: 28px 0;
}
.ticket__main { padding: 26px 30px 24px; min-width: 0; }
.ticket__label { font-size: var(--fs-sm); color: var(--ink-3); font-weight: 600; margin: 0 0 4px; }
.ticket__code {
  display: block; font-size: clamp(1.9rem, 6vw, 2.75rem); font-weight: 800; line-height: 1.1;
  letter-spacing: .05em; color: var(--stamp); font-variant-numeric: tabular-nums; word-break: break-all;
  margin-bottom: 14px;
}
.ticket__meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 24px; margin: 0; }
.ticket__meta dt { font-size: var(--fs-xs); color: var(--ink-3); font-weight: 600; }
.ticket__meta dd { margin: 0; font-weight: 650; }
.ticket__stub {
  position: relative; padding: 24px; border-left: 2px dashed var(--rule-2);
  display: flex; flex-direction: column; justify-content: center; gap: 10px; background: var(--paper);
}
.ticket__stub::before, .ticket__stub::after {
  content: ""; position: absolute; left: -12px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--paper); border: 1.5px solid var(--ink);
}
.ticket__stub::before { top: -12px; }
.ticket__stub::after { bottom: -12px; }
.ticket__stub .status-now { font-size: var(--fs-xs); color: var(--ink-3); font-weight: 600; margin: 0; }
.ticket__stub .status-name { font-size: var(--fs-md); font-weight: 800; margin: 0; line-height: 1.25; }
.copy-btn[data-copied="1"] { color: var(--pass); }

.stamp {
  position: absolute; right: 250px; top: 50%;
  transform: translateY(-50%) rotate(-9deg);
  padding: 8px 18px; border: 3.5px solid currentColor; border-radius: 10px;
  box-shadow: inset 0 0 0 3px var(--surface), inset 0 0 0 5px currentColor;
  font-size: clamp(1.1rem, 3vw, 1.6rem); font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  opacity: .9; mix-blend-mode: multiply; pointer-events: none; line-height: 1.2;
  animation: stamp-in .45s cubic-bezier(.2, 1.4, .4, 1) .25s both;
}
.stamp--passed { color: var(--pass); }
.stamp--rejected { color: var(--fail); }
.stamp--withdrawn { color: var(--ink-3); }
@keyframes stamp-in {
  from { opacity: 0; transform: translateY(-50%) rotate(-9deg) scale(1.6); }
  to { opacity: .9; transform: translateY(-50%) rotate(-9deg) scale(1); }
}

/* ---------- Halaman status ---------- */
.track-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: start; }
.progress { list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.progress li { position: relative; padding-top: 34px; font-size: var(--fs-sm); color: var(--ink-3); font-weight: 600; padding-right: 8px; }
.progress li::before {
  content: ""; position: absolute; top: 0; left: 0; width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--rule-2); background: var(--paper); z-index: 1;
}
.progress li::after { content: ""; position: absolute; top: 10px; left: 22px; right: 0; height: 2px; background: var(--rule-2); }
.progress li:last-child::after { display: none; }
.progress li.is-done { color: var(--ink); }
.progress li.is-done::before { background: var(--stamp); border-color: var(--stamp); box-shadow: inset 0 0 0 4px var(--stamp), inset 0 0 0 11px #fff; }
.progress li.is-done::after { background: var(--stamp); }
.progress li.is-current { color: var(--stamp); }
.progress li.is-current::before { border-color: var(--stamp); box-shadow: 0 0 0 4px var(--stamp-50); }
.progress li.is-failed { color: var(--fail); }
.progress li.is-failed::before { border-color: var(--fail); background: var(--fail); }

.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--rule); }
.timeline li { position: relative; padding: 0 0 22px 22px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink-3); }
.timeline li.t-pass::before { border-color: var(--pass); background: var(--pass); }
.timeline li.t-fail::before { border-color: var(--fail); background: var(--fail); }
.timeline li.t-stamp::before { border-color: var(--stamp); }
.timeline li.t-wait::before { border-color: var(--wait); }
.timeline time { display: block; font-size: var(--fs-xs); color: var(--ink-3); font-weight: 600; }
.timeline .t-title { font-weight: 700; }
.timeline .t-msg { margin: 4px 0 0; color: var(--ink-2); font-size: .9375rem; white-space: pre-line; }
.timeline .t-msg.is-hr { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 10px 12px; }

.panel { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 22px; margin-bottom: 20px; }
.panel > h2, .panel > h3 { font-size: var(--fs-md); margin-bottom: 12px; }
.panel--accent { border-color: var(--wait); box-shadow: inset 4px 0 0 var(--wait); }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 18px; margin: 0 0 16px; }
.kv dt { color: var(--ink-3); font-size: var(--fs-sm); font-weight: 600; }
.kv dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
details.disclosure { border-top: 1px solid var(--rule); padding-top: 14px; margin-top: 14px; }
details.disclosure > summary { cursor: pointer; font-weight: 700; color: var(--stamp); list-style: none; }
details.disclosure > summary::-webkit-details-marker { display: none; }
details.disclosure > summary::before { content: "+"; display: inline-block; width: 1.1em; font-weight: 800; }
details.disclosure[open] > summary::before { content: "−"; }
details.disclosure[open] > summary { margin-bottom: 14px; }

.auth-box { max-width: 440px; margin: 24px auto; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 32px; }
.auth-box h1 { font-size: var(--fs-xl); }

/* ---------- Panel admin ---------- */
.admin { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; background: linear-gradient(to right, var(--ink) 240px, var(--paper) 240px); }
.admin__nav { background: var(--ink); color: #C9D1D3; padding: 20px 14px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin__nav .brand { color: #fff; padding: 4px 10px 18px; }
.admin__nav .brand__mark { border-color: #B7AEF5; color: #B7AEF5; box-shadow: inset 0 0 0 2px var(--ink), inset 0 0 0 3.5px #B7AEF5; }
.nav-group { font-size: var(--fs-xs); color: #8A979A; font-weight: 600; padding: 16px 10px 6px; }
.nav-link { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--radius); color: #DCE3E5; text-decoration: none; font-size: .9375rem; font-weight: 600; }
.nav-link .icon { width: 18px; height: 18px; opacity: .85; }
.nav-link:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.nav-link[aria-current="page"] { background: rgba(183, 174, 245, .16); color: #fff; box-shadow: inset 3px 0 0 #B7AEF5; }
.nav-count { margin-left: auto; background: #B7AEF5; color: var(--ink); font-size: var(--fs-xs); font-weight: 800; border-radius: 999px; padding: 0 8px; line-height: 1.6; }
.nav-foot { margin-top: auto; padding: 14px 10px 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: var(--fs-sm); }
.nav-foot strong { color: #fff; display: block; }
.nav-foot form { margin-top: 8px; }
.nav-foot .linklike { color: #B7AEF5; }
.admin__main { padding: 28px clamp(16px, 3vw, 40px) 64px; min-width: 0; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 24px; }
.page-head h1 { font-size: var(--fs-xl); margin: 0; }
.page-head .sub { color: var(--ink-3); margin: 4px 0 0; font-size: .9375rem; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--stamp); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--rule); border-radius: var(--radius-lg); background: var(--surface); margin-bottom: 24px; }
.stat { padding: 18px 20px; border-left: 1px solid var(--rule); text-decoration: none; color: inherit; }
.stat:first-child { border-left: 0; }
.stat:hover { background: var(--paper); color: inherit; }
.stat__value { font-size: var(--fs-xl); font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat__label { font-size: var(--fs-sm); color: var(--ink-3); font-weight: 600; }

.funnel { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.funnel li { display: grid; grid-template-columns: 130px minmax(0, 1fr) 40px; gap: 12px; align-items: center; font-size: var(--fs-sm); }
.funnel .bar { height: 10px; border-radius: 999px; background: var(--neutral-50); overflow: hidden; }
.funnel .bar span { display: block; height: 100%; border-radius: 999px; background: var(--stamp); min-width: 2px; }
.funnel .bar--passed span { background: var(--pass); }
.funnel .bar--rejected span { background: var(--fail); }
.funnel .bar--interview span { background: var(--wait); }
.funnel .bar--withdrawn span, .funnel .bar--submitted span { background: var(--ink-3); }

.cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.cols--detail { grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr); align-items: start; }
.list-plain { list-style: none; margin: 0; padding: 0; }
.list-plain > li { padding: 12px 0; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.list-plain > li:first-child { border-top: 0; padding-top: 0; }
.list-plain .title { font-weight: 700; }

.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.toolbar .input, .toolbar .select { width: auto; min-height: 38px; padding-top: 6px; padding-bottom: 6px; }
.toolbar .input { min-width: 220px; flex: 1; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--rule); margin-bottom: 16px; }
.tabs a { padding: 8px 12px; text-decoration: none; color: var(--ink-2); font-weight: 650; font-size: var(--fs-sm); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="true"] { color: var(--stamp); border-bottom-color: var(--stamp); }
.tabs .count { color: var(--ink-3); font-weight: 600; margin-left: 4px; }

.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); }
.table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.table th { text-align: left; font-size: var(--fs-xs); color: var(--ink-3); font-weight: 700; padding: 10px 14px; border-bottom: 1px solid var(--rule); white-space: nowrap; background: var(--paper); }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #FAFBF9; }
.table .col-check { width: 36px; }
.table a.row-title { font-weight: 700; color: var(--ink); text-decoration: none; }
.table a.row-title:hover { color: var(--stamp); text-decoration: underline; }
.table .sub { font-size: var(--fs-sm); color: var(--ink-3); display: block; }
.bulk-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 10px 14px; background: var(--stamp-50); border: 1px solid #CFCAF0; border-radius: var(--radius); margin-bottom: 12px; font-size: var(--fs-sm); }
.bulk-bar .select { width: auto; min-height: 34px; padding-top: 4px; padding-bottom: 4px; }
.pagination { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 16px; align-items: center; font-size: var(--fs-sm); }
.pagination a, .pagination span { padding: 6px 12px; border: 1px solid var(--rule); border-radius: var(--radius); text-decoration: none; background: var(--surface); }
.pagination [aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }

.stars { display: inline-flex; gap: 2px; }
.stars button { background: none; border: 0; padding: 2px; cursor: pointer; color: var(--rule-2); font-size: 1.25rem; line-height: 1; }
.stars button.is-on { color: #C88A12; }
.stars button:hover { color: #C88A12; }
.rating-static { color: #C88A12; letter-spacing: 1px; white-space: nowrap; }

.applicant-head { display: flex; flex-wrap: wrap; gap: 16px 20px; align-items: center; margin-bottom: 24px; }
.avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--stamp-50); color: var(--stamp); display: grid; place-items: center; font-weight: 800; font-size: 1.25rem; overflow: hidden; flex: none; border: 1px solid var(--rule); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.applicant-head h1 { font-size: var(--fs-xl); margin: 0 0 4px; }
.applicant-head .meta { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: var(--fs-sm); color: var(--ink-2); }
.code-pill { font-weight: 800; letter-spacing: .06em; color: var(--stamp); font-variant-numeric: tabular-nums; }

.doc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.doc { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--rule); border-radius: var(--radius); }
.doc__type { width: 40px; height: 48px; border-radius: 4px; background: var(--fail-50); color: var(--fail); display: grid; place-items: center; font-size: var(--fs-xs); font-weight: 800; flex: none; }
.doc__type--img { background: var(--stamp-50); color: var(--stamp); }
.doc__body { min-width: 0; flex: 1; }
.doc__name { font-weight: 700; overflow-wrap: anywhere; }
.doc__meta { font-size: var(--fs-xs); color: var(--ink-3); }
.doc__actions { display: flex; gap: 6px; }
.safe-tag { display: inline-flex; align-items: center; gap: 4px; color: var(--pass); font-weight: 700; }

.action-panel { border: 1.5px solid var(--ink); }
.action-panel .next { font-size: var(--fs-sm); color: var(--ink-2); margin-top: -4px; }
.iv { border: 1px solid var(--rule); border-radius: var(--radius); padding: 14px; margin-bottom: 12px; }
.iv__head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.iv__when { font-weight: 750; }
.answers dt { font-weight: 700; margin-top: 14px; }
.answers dt:first-child { margin-top: 0; }
.answers dd { margin: 4px 0 0; color: var(--ink-2); white-space: pre-line; }
.note { padding: 12px 0; border-top: 1px solid var(--rule); }
.note:first-of-type { border-top: 0; }
.note__meta { font-size: var(--fs-xs); color: var(--ink-3); font-weight: 600; }
.note__body { white-space: pre-line; margin: 4px 0 0; }
.transcript { background: var(--ink); color: #DCE3E5; padding: 14px; border-radius: var(--radius); font-size: var(--fs-xs); overflow-x: auto; max-height: 280px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.template-vars { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 0; padding: 0; list-style: none; }
.template-vars code { background: var(--stamp-50); color: var(--stamp); padding: 2px 8px; border-radius: 4px; font-size: var(--fs-xs); }
.day-group { margin-bottom: 28px; }
.day-group > h2 { font-size: var(--fs-md); margin-bottom: 10px; }
.email-frame { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 16px; white-space: pre-wrap; font-size: .9375rem; }
.checklist { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 6px; font-size: .9375rem; }
.checklist li { display: flex; gap: 8px; }
.checklist .ok { color: var(--pass); font-weight: 800; }
.checklist .no { color: var(--fail); font-weight: 800; }

/* ---------- Responsif ---------- */
@media (max-width: 960px) {
  .careers, .job-layout, .track-layout, .cols, .cols--detail { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .facts { position: static; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .admin { grid-template-columns: minmax(0, 1fr); background: var(--paper); }
  .admin__nav { position: static; height: auto; flex-direction: row; flex-wrap: nowrap; overflow-x: auto; padding: 10px; gap: 4px; align-items: center; }
  .admin__nav .brand { padding: 4px 10px; }
  .nav-group { display: none; }
  .nav-link { white-space: nowrap; }
  .nav-foot { margin: 0 0 0 auto; border: 0; padding: 0 10px; white-space: nowrap; }
  .nav-foot strong { display: none; }
  .nav-foot form { margin: 0; }
}
@media (max-width: 720px) {
  .filters .input { flex-basis: 100%; }
  .filters .select { flex: 1 1 40%; min-width: 0; }
  .filters .btn { flex-basis: 100%; }
  .site-header__inner { min-height: 60px; }
  .brand { font-size: .9375rem; }
  .site-nav .nav-long { display: none; }
  .site-nav { gap: 14px; flex: none; }
  .site-nav a { white-space: nowrap; }
  .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .job-row { grid-template-columns: minmax(0, 1fr); }
  .job-row__deadline { text-align: left; grid-row: 2; }
  .ticket { grid-template-columns: minmax(0, 1fr); }
  .ticket__main { padding: 22px 20px 20px; }
  .ticket__stub { border-left: 0; border-top: 2px dashed var(--rule-2); padding: 18px 20px; }
  .ticket__stub::before, .ticket__stub::after { top: -12px; bottom: auto; }
  .ticket__stub::before { left: -12px; }
  .ticket__stub::after { left: auto; right: -12px; }
  .stamp { right: 14px; top: 118px; transform: rotate(-9deg); font-size: 1rem; padding: 5px 10px; }
  @keyframes stamp-in {
    from { opacity: 0; transform: rotate(-9deg) scale(1.6); }
    to { opacity: .9; transform: rotate(-9deg) scale(1); }
  }
  .progress { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .progress li { padding: 0 0 18px 34px; }
  .progress li::after { top: 22px; left: 10px; right: auto; width: 2px; height: calc(100% - 22px); }
  .kv { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .kv dd { margin-bottom: 8px; }
  .funnel li { grid-template-columns: 100px minmax(0, 1fr) 32px; }
  .site-nav { gap: 14px; }
  .site-main { padding-top: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .site-header, .site-footer, .admin__nav, .btn, form { display: none !important; }
  body { background: #fff; }
}

/* ---------- Utilitas kecil (CSP melarang atribut style inline) ---------- */
.mt-0 { margin-top: 0 !important; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-0 { margin-bottom: 0 !important; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.text-right { text-align: right; }
.inline-form { display: inline; }
.w-auto { width: auto; }
.gap-8 { gap: 8px; }
.hidden { display: none !important; }

/* Lebar bar (kelas, karena CSP melarang style inline) */
.w-0 { width: 0%; }
.w-5 { width: 5%; }
.w-10 { width: 10%; }
.w-15 { width: 15%; }
.w-20 { width: 20%; }
.w-25 { width: 25%; }
.w-30 { width: 30%; }
.w-35 { width: 35%; }
.w-40 { width: 40%; }
.w-45 { width: 45%; }
.w-50 { width: 50%; }
.w-55 { width: 55%; }
.w-60 { width: 60%; }
.w-65 { width: 65%; }
.w-70 { width: 70%; }
.w-75 { width: 75%; }
.w-80 { width: 80%; }
.w-85 { width: 85%; }
.w-90 { width: 90%; }
.w-95 { width: 95%; }
.w-100 { width: 100%; }
.d-block { display: block; }
.empty .btn-row { justify-content: center; }
