/* Satu HR — sistem desain
   Motif: lembar jawaban komputer (LJK). Bulatan pensil 2B, kuning pensil untuk "ragu-ragu",
   hijau pinus sebagai warna institusi. */
:root {
  --paper: #eff3f1;
  --surface: #ffffff;
  --surface-2: #f5f8f6;
  --ink: #12291f;
  --ink-2: #4a5f56;
  --ink-3: #82948c;
  --line: #dbe3df;
  --line-2: #e9eeeb;
  --pine: #1e5b49;
  --pine-2: #27735c;
  --pine-ink: #ffffff;
  --pine-soft: #dfeee7;
  --deep: #0f3328;
  --deep-2: #164537;
  --deep-ink: #e7f1ec;
  --deep-ink-2: #9dbcb0;
  --graphite: #262b31;
  --pencil: #e8b22a;
  --pencil-soft: #fcf0cc;
  --sky: #2f6ea8;
  --sky-soft: #e2edf7;
  --danger: #b0392a;
  --danger-soft: #f8e3df;
  --shadow: 0 1px 2px rgba(15, 51, 40, .06), 0 4px 16px rgba(15, 51, 40, .06);
  --shadow-lg: 0 12px 40px rgba(15, 51, 40, .18);
  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 20px;
  --font: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color-scheme: light;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0b1512;
    --surface: #121f1a;
    --surface-2: #172821;
    --ink: #e3ede8;
    --ink-2: #a3b8af;
    --ink-3: #74897f;
    --line: #26392f;
    --line-2: #1d2f27;
    --pine: #5cbb98;
    --pine-2: #74cba9;
    --pine-ink: #06170f;
    --pine-soft: #183a2e;
    --deep: #0a1f18;
    --deep-2: #123025;
    --graphite: #e3ede8;
    --pencil-soft: #3a3014;
    --sky: #7fb2e5;
    --sky-soft: #172b3d;
    --danger: #ee8a78;
    --danger-soft: #3a1c17;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}
*, *::before, *::after { box-sizing: inherit; }
html { scroll-padding-top: env(safe-area-inset-top, 0px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.015em; }
h1 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); font-weight: 800; }
h2 { font-size: 1.15rem; font-weight: 750; }
h3 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 .8em; }
a { color: var(--pine); }
.muted { color: var(--ink-2); }
.small { font-size: .84rem; }
.num { font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Kontrol ---------- */
button, .btn {
  font: inherit; font-weight: 650; line-height: 1.2;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  padding: .6rem 1rem; border-radius: var(--radius-s);
  cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: .45rem;
  transition: background .15s, border-color .15s, box-shadow .15s;
  white-space: nowrap;
}
button:hover, .btn:hover { border-color: var(--ink-3); }
button.primary, .btn.primary { background: var(--pine); border-color: var(--pine); color: var(--pine-ink); box-shadow: 0 2px 8px rgba(30, 91, 73, .25); }
button.primary:hover, .btn.primary:hover { background: var(--pine-2); border-color: var(--pine-2); }
button.danger, .btn.danger { color: var(--danger); }
button.ghost, .btn.ghost { border-color: transparent; background: transparent; box-shadow: none; }
button.ghost:hover, .btn.ghost:hover { background: var(--surface-2); }
button:disabled { opacity: .45; cursor: not-allowed; }
button.sm, .btn.sm { padding: .38rem .7rem; font-size: .84rem; border-radius: 7px; }
button.icon-only { padding: .45rem; }
:focus-visible { outline: 3px solid var(--pencil); outline-offset: 2px; }

label { display: block; font-weight: 650; font-size: .88rem; margin-bottom: .35rem; }
input, select, textarea {
  font: inherit; width: 100%;
  padding: .62rem .8rem;
  border: 1px solid var(--line); border-radius: var(--radius-s);
  background: var(--surface); color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--pine); box-shadow: 0 0 0 3px var(--pine-soft); }
textarea { min-height: 5rem; resize: vertical; }
input[type='checkbox'], input[type='radio'] { width: auto; accent-color: var(--pine); }
.field { margin-bottom: 1rem; }
.field .hint { font-size: .8rem; color: var(--ink-3); margin-top: .3rem; }
.input-icon { position: relative; }
.input-icon svg { position: absolute; left: .75rem; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.input-icon input { padding-left: 2.4rem; }
.row { display: flex; gap: .65rem; flex-wrap: wrap; align-items: center; }
.row > .grow, .grow { flex: 1 1 200px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 1rem; }
.error-box { background: var(--danger-soft); color: var(--danger); padding: .75rem .95rem; border-radius: var(--radius-s); margin-bottom: 1rem; font-weight: 550; }
.switch { display: flex; gap: .6rem; align-items: center; font-weight: 550; }

/* ---------- Motif bulatan LJK ---------- */
.ljk { display: grid; grid-template-columns: repeat(5, 1.5rem); gap: .55rem .8rem; }
.ljk span { width: 1.5rem; height: 1.5rem; border-radius: 50%; border: 2px solid currentColor; opacity: .45; display: grid; place-items: center; font-size: .66rem; font-weight: 800; }
.ljk span.fill { background: var(--pencil); border-color: var(--pencil); color: var(--deep); opacity: 1; }
.logo { width: 30px; height: 30px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 3px; flex: none; }
.logo i { border-radius: 50%; border: 2px solid currentColor; opacity: .55; }
.logo i:nth-child(2) { background: var(--pencil); border-color: var(--pencil); opacity: 1; }
.logo i:nth-child(3) { background: currentColor; opacity: 1; }
.brand { font-weight: 800; font-size: 1.05rem; display: flex; gap: .6rem; align-items: center; letter-spacing: -0.01em; }

/* ---------- Halaman masuk ---------- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.15fr 1fr; }
.auth-side {
  background: var(--deep); color: var(--deep-ink);
  padding: 3rem clamp(2rem, 5vw, 4.5rem);
  display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
  position: relative; overflow: hidden;
}
.auth-side::after {
  content: ''; position: absolute; right: -120px; bottom: -120px; width: 420px; height: 420px; border-radius: 50%;
  border: 60px solid rgba(232, 178, 42, .08);
}
.auth-side h1 { font-size: clamp(2.2rem, 4vw, 3.3rem); max-width: 13ch; line-height: 1.05; color: #fff; letter-spacing: -0.03em; }
.auth-side p { max-width: 44ch; color: var(--deep-ink-2); }
.auth-hero { display: grid; grid-template-columns: 1fr auto; gap: 2.5rem; align-items: center; position: relative; z-index: 1; }
.auth-feats { list-style: none; padding: 0; margin: 1.75rem 0 0; display: grid; gap: .75rem; }
.auth-feats li { display: flex; gap: .7rem; align-items: center; color: var(--deep-ink); font-weight: 550; }
.auth-feats li span { width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .08); display: grid; place-items: center; color: var(--pencil); }
.auth-main { display: grid; place-items: center; padding: 2rem; }
.auth-card { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 2.25rem; box-shadow: var(--shadow); }
.auth-card h2 { font-size: 1.45rem; font-weight: 800; }
@media (max-width: 900px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { padding: 2rem; }
  .auth-hero { grid-template-columns: 1fr; }
  .auth-hero .ljk, .auth-feats { display: none; }
  .auth-card { padding: 1.5rem; box-shadow: none; }
}

/* ---------- Kerangka admin ---------- */
.shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.side {
  background: var(--deep); color: var(--deep-ink);
  padding: 1.4rem 1rem 1rem;
  display: flex; flex-direction: column; gap: 1.25rem;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.side .brand { padding: 0 .5rem; color: #fff; }
.side nav { display: flex; flex-direction: column; gap: 2px; }
.side nav .nav-label { font-size: .74rem; color: var(--deep-ink-2); padding: .9rem .75rem .35rem; font-weight: 650; }
.side nav a {
  color: var(--deep-ink-2); text-decoration: none;
  padding: .58rem .75rem; border-radius: 10px; font-weight: 600;
  display: flex; align-items: center; gap: .7rem; position: relative;
}
.side nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.side nav a.active { background: rgba(255, 255, 255, .1); color: #fff; }
.side nav a.active::before { content: ''; position: absolute; left: -1rem; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--pencil); transform: translateX(.35rem); }
.company-pick { background: rgba(255, 255, 255, .06); border-radius: 12px; padding: .7rem; }
.company-pick label { color: var(--deep-ink-2); font-size: .74rem; font-weight: 650; }
.company-pick select { background: var(--deep-2); border-color: rgba(255, 255, 255, .14); color: #fff; font-weight: 650; padding: .5rem .6rem; }
.side .who { margin-top: auto; display: flex; gap: .7rem; align-items: center; padding: .75rem .5rem 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .84rem; color: var(--deep-ink-2); }
.side .who b { color: #fff; display: block; font-size: .9rem; }
.side .who button { color: var(--deep-ink-2); margin-left: auto; }
.side .who button:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.main { padding: 2.2rem clamp(1rem, 3vw, 2.75rem) 4rem; max-width: 1280px; width: 100%; min-width: 0; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.page-head h1 { margin: 0; }
.page-head .sub { color: var(--ink-2); margin: .3rem 0 0; max-width: 64ch; }
.eyebrow { color: var(--ink-2); font-weight: 600; margin: 0 0 .25rem; }
.mobile-top { display: none; }
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; inset: 0 auto 0 0; width: 270px; z-index: 30; transform: translateX(-100%); transition: transform .22s; padding-top: calc(1.4rem + env(safe-area-inset-top, 0px)); }
  .side.open { transform: none; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .4); }
  .mobile-top { display: flex; align-items: center; gap: .7rem; padding: .7rem 1rem; background: var(--deep); color: #fff; position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; }
  .mobile-top button { color: #fff; }
  .main { padding-top: 1.4rem; }
}
body.admin::before { content: ''; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 25; background: var(--deep); }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 1.35rem 1.4rem; margin-bottom: 1.25rem; box-shadow: var(--shadow); }
.panel > h2:first-child, .panel > h3:first-child { margin-top: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1rem; }
.panel-head h2 { margin: 0; }
.dash-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1.25rem; }
.dash-grid > .panel { margin-bottom: 0; }
@media (max-width: 1000px) { .dash-grid { grid-template-columns: 1fr; } }

/* kartu statistik */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 1.1rem 1.2rem; box-shadow: var(--shadow); display: grid; grid-template-columns: auto 1fr; gap: .2rem .9rem; align-items: center; }
.stat .chip { grid-row: span 2; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-2); }
.stat b { font-size: 1.85rem; line-height: 1; font-variant-numeric: tabular-nums; font-weight: 800; letter-spacing: -0.02em; }
.stat span { color: var(--ink-2); font-size: .85rem; font-weight: 550; }
.stat.hero { background: var(--deep); border-color: var(--deep); color: #fff; }
.stat.hero .chip { background: rgba(255, 255, 255, .1); color: var(--pencil); }
.stat.hero span { color: var(--deep-ink-2); }
.stat .chip.pine { background: var(--pine-soft); color: var(--pine); }
.stat .chip.pencil { background: var(--pencil-soft); color: #8a6408; }
.stat .chip.sky { background: var(--sky-soft); color: var(--sky); }
@media (prefers-color-scheme: dark) { .stat .chip.pencil { color: var(--pencil); } }

/* grafik ringan */
.chart-bars { display: flex; align-items: flex-end; gap: 6px; height: 150px; padding-top: 1rem; }
.chart-bars .col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .35rem; height: 100%; justify-content: flex-end; }
.chart-bars .col i { width: 100%; max-width: 30px; border-radius: 6px 6px 2px 2px; background: var(--pine-soft); min-height: 3px; position: relative; }
.chart-bars .col i.has { background: var(--pine); }
.chart-bars .col i em { position: absolute; top: -1.3rem; left: 50%; transform: translateX(-50%); font-style: normal; font-size: .72rem; font-weight: 700; color: var(--ink-2); }
.chart-bars .col small { font-size: .68rem; color: var(--ink-3); white-space: nowrap; }
.donut-wrap { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.legend { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.legend li { display: flex; align-items: center; gap: .55rem; font-size: .9rem; }
.legend li i { width: 10px; height: 10px; border-radius: 50%; }
.legend li b { margin-left: auto; padding-left: 1rem; font-variant-numeric: tabular-nums; }
.stack { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: var(--line-2); }
.stack i { display: block; height: 100%; }
.pos-row { display: grid; grid-template-columns: minmax(120px, 1fr) 2.2fr auto; gap: 1rem; align-items: center; padding: .6rem 0; border-bottom: 1px solid var(--line-2); font-size: .9rem; }
.pos-row:last-child { border-bottom: 0; }
.c-done { background: var(--pine); } .c-prog { background: var(--pencil); } .c-inv { background: var(--ink-3); opacity: .45; } .c-exp { background: var(--danger); opacity: .7; }

/* daftar orang */
.person { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.person b { display: block; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person .small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .8rem; flex: none; color: #fff; position: relative; letter-spacing: .02em; }
.avatar.lg { width: 44px; height: 44px; font-size: .95rem; }
.avatar .dot { position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; background: #3fbf7f; border: 2px solid var(--surface); }
.side .avatar .dot { border-color: var(--deep); }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: center; gap: .9rem; padding: .7rem 0; border-bottom: 1px solid var(--line-2); }
.list li:last-child { border-bottom: 0; }
.ring { flex: none; }
.ring text { font-weight: 800; font-size: 11px; fill: var(--ink); font-family: var(--font); }

/* tabel */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--surface); box-shadow: var(--shadow); }
table { border-collapse: collapse; width: 100%; font-size: .9rem; }
th, td { text-align: left; padding: .8rem .95rem; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
th { font-weight: 700; color: var(--ink-2); background: var(--surface-2); white-space: nowrap; font-size: .8rem; }
tbody tr { transition: background .12s; }
tbody tr:hover { background: var(--surface-2); }
tr:last-child td { border-bottom: 0; }
td.actions { white-space: nowrap; text-align: right; }
.empty { padding: 3rem 1rem; text-align: center; color: var(--ink-2); }
.empty .ljk { justify-content: center; margin: 0 auto 1rem; color: var(--ink-3); grid-template-columns: repeat(5, 1.1rem); gap: .4rem; }
.empty .ljk span { width: 1.1rem; height: 1.1rem; font-size: 0; }
.toolbar { display: flex; gap: .65rem; flex-wrap: wrap; align-items: center; margin-bottom: 1rem; }
.toolbar .input-icon { flex: 1 1 240px; }
.toolbar select { width: auto; min-width: 160px; }

.tabs { display: flex; gap: .3rem; border-bottom: 1px solid var(--line); margin-bottom: 1.25rem; overflow-x: auto; }
.tabs button { border: 0; background: none; border-radius: 0; padding: .75rem .9rem; color: var(--ink-2); border-bottom: 2.5px solid transparent; margin-bottom: -1px; box-shadow: none; }
.tabs button.on { color: var(--ink); border-bottom-color: var(--pine); }
.tabs button .count { background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 0 .45rem; font-size: .75rem; }

.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .16rem .6rem; border-radius: 999px; font-size: .76rem; font-weight: 700; white-space: nowrap; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }
.badge.ok { background: var(--pine-soft); color: var(--pine); border-color: transparent; }
.badge.warn { background: var(--pencil-soft); color: #7a5806; border-color: transparent; }
.badge.bad { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.badge.info { background: var(--sky-soft); color: var(--sky); border-color: transparent; }
@media (prefers-color-scheme: dark) { .badge.warn { color: var(--pencil); } }

.progress-dots { display: inline-flex; gap: 4px; vertical-align: middle; }
.progress-dots i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--ink-3); }
.progress-dots i.done { background: var(--graphite); border-color: var(--graphite); }
.progress-dots i.started { background: var(--pencil); border-color: var(--pencil); }

/* menu aksi */
.menu { position: relative; display: inline-block; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 4px); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: .35rem; min-width: 210px; width: max-content; max-width: 290px; z-index: 40; text-align: left; }
.menu-pop button { white-space: nowrap; width: 100%; border: 0; background: none; justify-content: flex-start; padding: .55rem .7rem; font-weight: 600; box-shadow: none; }
.menu-pop button:hover { background: var(--surface-2); }
.menu-pop hr { border: 0; border-top: 1px solid var(--line-2); margin: .3rem 0; }

/* modal */
.modal-back { position: fixed; inset: 0; background: rgba(8, 25, 19, .5); display: grid; place-items: center; padding: 1rem; z-index: 50; backdrop-filter: blur(2px); }
.modal { background: var(--surface); border-radius: var(--radius-l); width: min(720px, 100%); max-height: 92vh; overflow: auto; padding: 1.6rem 1.75rem; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.modal.wide { width: min(1000px, 100%); }
.modal h2 { font-size: 1.3rem; font-weight: 800; }
.modal-foot { display: flex; justify-content: flex-end; gap: .6rem; margin-top: 1.25rem; position: sticky; bottom: -1.6rem; background: var(--surface); padding: 1rem 0 .3rem; border-top: 1px solid var(--line-2); flex-wrap: wrap; align-items: center; }
.toast { position: fixed; bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); background: var(--deep); color: #fff; padding: .7rem 1.15rem; border-radius: 999px; z-index: 60; font-weight: 650; max-width: 90vw; box-shadow: var(--shadow-lg); display: flex; gap: .5rem; align-items: center; }
.toast::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--pencil); }

.test-pick { border: 1px solid var(--line); border-radius: 12px; padding: .8rem .9rem; display: grid; grid-template-columns: auto 1fr auto; gap: .75rem; align-items: start; margin-bottom: .45rem; cursor: pointer; transition: border-color .15s, background .15s; }
.test-pick:hover { border-color: var(--ink-3); }
.test-pick.on { border-color: var(--pine); background: var(--pine-soft); }
.test-pick input[type='number'] { width: 6rem; }
.cat-head { font-weight: 750; margin: 1.1rem 0 .45rem; color: var(--ink-2); font-size: .85rem; }
.q-edit { border: 1px solid var(--line); border-radius: 12px; padding: 1rem; margin-bottom: .75rem; background: var(--surface-2); }
.q-edit .opt { display: grid; grid-template-columns: auto 1fr auto; gap: .5rem; align-items: center; margin-bottom: .35rem; }
.q-edit .opt input[type='number'] { width: 4.5rem; }
.pw-box { display: flex; gap: .5rem; }
.pw-box input { font-family: ui-monospace, Consolas, monospace; }

/* ---------- Portal kandidat ---------- */
.cand-top { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; }
body.cand::before { content: ''; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--surface); }
.cand-top .in { max-width: 880px; margin: 0 auto; padding: .75rem 1rem; display: flex; gap: 1rem; align-items: center; justify-content: space-between; }
.cand-top .brand { color: var(--pine); }
.cand-top .brand span.name { color: var(--ink); }
.timer { font-variant-numeric: tabular-nums; font-weight: 800; font-size: 1.1rem; padding: .3rem .8rem; border-radius: 999px; border: 2px solid var(--ink); display: inline-flex; gap: .4rem; align-items: center; }
.timer.low { border-color: var(--danger); color: var(--danger); background: var(--danger-soft); }
.cand-main { max-width: 880px; margin: 0 auto; padding: 1.75rem 1rem 5rem; }
.welcome h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.cand-hero {
  background: var(--deep); color: var(--deep-ink); border-radius: var(--radius-l);
  padding: 2rem clamp(1.25rem, 4vw, 2.5rem); display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center;
  position: relative; overflow: hidden; margin-bottom: 1.5rem;
}
.cand-hero::after { content: ''; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; border: 40px solid rgba(232, 178, 42, .09); }
.cand-hero h1 { color: #fff; margin-bottom: .4rem; }
.cand-hero p { color: var(--deep-ink-2); margin: 0; max-width: 56ch; }
.cand-hero .ring text { fill: #fff; }
.cand-hero .eyebrow { color: var(--pencil); }
@media (max-width: 600px) { .cand-hero { grid-template-columns: 1fr; } }
.test-list { list-style: none; padding: 0; margin: 0 0 1.5rem; counter-reset: t; display: grid; gap: .65rem; }
.test-list li { counter-increment: t; display: grid; grid-template-columns: 2.6rem 1fr auto; gap: 1rem; align-items: center; padding: 1rem 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); box-shadow: var(--shadow); }
.test-list li::before { content: counter(t); width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 2px solid var(--graphite); display: grid; place-items: center; font-weight: 800; }
.test-list li.done { box-shadow: none; background: var(--surface-2); }
.test-list li.done::before { content: '✓'; background: var(--graphite); color: var(--surface); }
.test-list li.next { border-color: var(--pine); box-shadow: 0 0 0 3px var(--pine-soft); }
.test-list li.next::before { border-color: var(--pencil); background: var(--pencil); color: #2a2f37; }
.tips { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .75rem; margin-bottom: 1.25rem; }
.tips div { display: flex; gap: .6rem; align-items: flex-start; font-size: .86rem; color: var(--ink-2); }
.tips svg { color: var(--pine); margin-top: .1rem; }

.question { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--shadow); }
.q-no { color: var(--ink-2); font-weight: 650; margin-bottom: .7rem; display: flex; justify-content: space-between; gap: .5rem; font-size: .9rem; }
.q-progress { height: 5px; border-radius: 3px; background: var(--line-2); overflow: hidden; margin-bottom: 1.25rem; }
.q-progress i { display: block; height: 100%; background: var(--pine); transition: width .25s; }
.q-text { font-size: 1.15rem; font-weight: 650; margin-bottom: 1.35rem; max-width: 70ch; line-height: 1.5; }
.choices { display: flex; flex-direction: column; gap: .55rem; }
.choice { white-space: normal; display: grid; grid-template-columns: 2.2rem 1fr; gap: .85rem; align-items: center; text-align: left; font-weight: 500; padding: .75rem .9rem; width: 100%; background: var(--surface); border-radius: 12px; }
.choice:hover { border-color: var(--pine); background: var(--surface-2); }
.bubble { width: 2.1rem; height: 2.1rem; border-radius: 50%; border: 2px solid var(--graphite); display: grid; place-items: center; font-weight: 800; font-size: .85rem; transition: background .12s, transform .12s; }
.choice[aria-pressed='true'] { border-color: var(--graphite); background: var(--surface-2); }
.choice[aria-pressed='true'] .bubble { background: var(--graphite); color: var(--surface); transform: scale(1.05); }
.likert { display: grid; grid-template-columns: repeat(5, 1fr); gap: .45rem; }
.likert .choice { grid-template-columns: 1fr; justify-items: center; text-align: center; font-size: .8rem; padding: .85rem .3rem; gap: .5rem; }
@media (max-width: 560px) { .likert { grid-template-columns: 1fr; } .likert .choice { grid-template-columns: 2.2rem 1fr; justify-items: start; text-align: left; font-size: .9rem; } }
.disc-table { width: 100%; border-collapse: separate; border-spacing: 0 .45rem; }
.disc-table td, .disc-table th { border: 0; padding: .3rem .4rem; background: transparent; }
.disc-table tbody tr:hover { background: transparent; }
.disc-table th { text-align: center; font-size: .8rem; background: transparent; }
.disc-table td.word { background: var(--surface-2); border-radius: 10px; padding: .8rem .9rem; font-weight: 600; }
.disc-table td.pick { text-align: center; width: 4.5rem; }
.disc-table .bubble { margin: 0 auto; cursor: pointer; background: var(--surface); padding: 0; justify-content: center; color: var(--ink); }
.disc-table .bubble[aria-pressed='true'] { background: var(--graphite); color: var(--surface); }
.q-nav { display: flex; justify-content: space-between; gap: .6rem; margin-top: 1.25rem; flex-wrap: wrap; }
.sheet { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .4rem; padding: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); }
.sheet button { width: 2.35rem; height: 2.35rem; padding: 0; justify-content: center; border-radius: 50%; font-size: .8rem; border: 2px solid var(--line); }
.sheet button.ans { background: var(--graphite); color: var(--surface); border-color: var(--graphite); }
.sheet button.flag { background: var(--pencil); border-color: var(--pencil); color: #2a2f37; }
.sheet button.cur { outline: 3px solid var(--pine); outline-offset: 2px; }
.flag-btn[aria-pressed='true'] { background: var(--pencil); border-color: var(--pencil); color: #2a2f37; }
.krae { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: start; }
.krae-col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 1rem 1.25rem; font-variant-numeric: tabular-nums; font-size: 1.65rem; font-weight: 800; display: flex; flex-direction: column; align-items: center; min-width: 8rem; box-shadow: var(--shadow); }
.krae-col .d { height: 2.4rem; display: flex; align-items: center; gap: .8rem; color: var(--ink-3); }
.krae-col .d.on { color: var(--ink); }
.krae-col .gap { height: 2rem; width: 100%; display: flex; align-items: center; justify-content: center; position: relative; }
.krae-col .gap .a { position: absolute; left: calc(50% + 1.6rem); font-size: 1rem; font-weight: 800; color: var(--pine); }
.krae-col .gap.cur span { width: 2.2rem; height: 2.2rem; border: 2px dashed var(--pencil); border-radius: 50%; }
.keypad { display: grid; grid-template-columns: repeat(5, 3.6rem); gap: .5rem; }
.keypad button { height: 3.6rem; font-size: 1.35rem; justify-content: center; padding: 0; border-radius: 14px; font-weight: 750; }
.keypad button:active { background: var(--graphite); color: var(--surface); }
.krae-bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; margin: .8rem 0; }
.krae-bar i { display: block; height: 100%; background: var(--pine); }
@media (max-width: 640px) { .krae { grid-template-columns: 1fr; } .keypad { grid-template-columns: repeat(5, 1fr); } }

/* ---------- Laporan ---------- */
.report { max-width: 920px; margin: 0 auto; padding: 2rem 1.25rem 4rem; }
.report-actions { display: flex; gap: .6rem; justify-content: flex-end; margin-bottom: 1rem; }
.report-head { background: var(--deep); color: var(--deep-ink); border-radius: var(--radius-l); padding: 1.75rem 2rem; margin-bottom: 1.75rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.report-head h1 { margin: .2rem 0; color: #fff; }
.report-head .muted { color: var(--deep-ink-2); }
.report-head b { color: #fff; }
.verdict { text-align: right; }
.verdict b { display: block; font-size: 3rem; line-height: 1; font-variant-numeric: tabular-nums; margin: .2rem 0 .4rem; }
.r-section { margin-bottom: 1.5rem; break-inside: avoid; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 1.35rem 1.5rem; }
.r-section h2 { margin-bottom: .3rem; }
.r-section .table-wrap { box-shadow: none; }
.bar-row { display: grid; grid-template-columns: minmax(140px, 1.2fr) 3fr 3.2rem; gap: .75rem; align-items: center; margin-bottom: .5rem; font-size: .9rem; }
.bar { height: 12px; background: var(--line-2); border-radius: 6px; overflow: hidden; position: relative; }
.bar i { display: block; height: 100%; background: var(--pine); border-radius: 6px; }
.bar .min { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--danger); }
.dim-desc { font-size: .84rem; color: var(--ink-2); margin: -.2rem 0 .8rem; }
.signoff { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 3rem; }
.signoff div { border-top: 1px solid var(--ink); padding-top: .4rem; font-size: .85rem; color: var(--ink-2); }
.disclaimer { font-size: .8rem; color: var(--ink-2); border-left: 3px solid var(--pencil); padding-left: .8rem; }

@media print {
  :root { --paper: #fff; --surface: #fff; --surface-2: #f4f6f5; --ink: #111; --ink-2: #444; --line: #ccc; --line-2: #e3e3e3; --pine: #1e5b49; --graphite: #222; --deep: #0f3328; color-scheme: light; --shadow: none; }
  body { background: #fff; font-size: 12px; }
  .no-print, .report-actions { display: none !important; }
  .report { padding: 0; max-width: none; }
  .report-head { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .r-section { page-break-inside: avoid; border: 0; padding: 0 0 1rem; border-bottom: 1px solid #ddd; border-radius: 0; }
  .bar i, .bar .min, .badge { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  textarea { border: 0; padding: 0; min-height: 0; resize: none; }
  @page { margin: 16mm 14mm; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
/* Logo Satu HR (SVG) */
svg.logo { display: block; width: 30px; height: 30px; flex: none; overflow: visible; }

/* ======================================================================
   Tema keluarga "Satu" (selaras dengan Satu ERP) — aksen Satu HR: hijau & sian
   ====================================================================== */
:root, :root[data-theme="light"] {
  --paper: #EDF1FB; --surface: #FFFFFF; --surface-2: #F2F5FD;
  --ink: #0C1433; --ink-2: #566089; --ink-3: #8790B4; --line: #DCE2F0; --line-2: #E8ECF7;
  --pine: #0E9F74; --pine-2: #0B87BA; --pine-ink: #FFFFFF; --pine-soft: rgba(16, 185, 129, .12);
  --deep: #0B1230; --deep-2: #141D45; --deep-ink: #E8EDFF; --deep-ink-2: #9AA6D1;
  --pencil: #F59E0B; --pencil-soft: rgba(245, 158, 11, .14); --sky: #0B87BA; --sky-soft: rgba(11, 135, 186, .12);
  --danger: #CF2F55; --danger-soft: rgba(207, 47, 85, .11);
  --glass: rgba(255, 255, 255, .72); --glass-b: rgba(70, 90, 180, .16); --glass-hi: rgba(255, 255, 255, .9);
  --aur1: rgba(40, 170, 230, .18); --aur2: rgba(16, 185, 129, .13); --aur3: rgba(120, 90, 240, .10); --gridc: rgba(40, 60, 140, .06);
  --grad: linear-gradient(135deg, #0B87BA, #10B981);
  --shadow: 0 10px 30px -14px rgba(30, 50, 120, .22); --shadow-lg: 0 24px 60px -20px rgba(20, 30, 80, .35);
  --radius-m: 14px; --radius-l: 18px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #050916; --surface: #0E1630; --surface-2: #121C3A;
    --ink: #E8EDFF; --ink-2: #A3ADD6; --ink-3: #7B86B3; --line: #1F2B4E; --line-2: #18223F;
    --pine: #34E3A6; --pine-2: #46D6FF; --pine-ink: #04101C; --pine-soft: rgba(52, 227, 166, .12);
    --deep: #070D22; --deep-2: #0E1630; --pencil: #FFC25E; --pencil-soft: rgba(255, 194, 94, .13); --sky: #46D6FF; --sky-soft: rgba(70, 214, 255, .12);
    --danger: #FF6E8E; --danger-soft: rgba(255, 110, 142, .13);
    --glass: rgba(16, 25, 52, .62); --glass-b: rgba(130, 165, 255, .15); --glass-hi: rgba(20, 30, 62, .72);
    --aur1: rgba(40, 190, 255, .14); --aur2: rgba(52, 227, 166, .10); --aur3: rgba(140, 100, 255, .12); --gridc: rgba(130, 170, 255, .05);
    --grad: linear-gradient(135deg, #46D6FF, #34E3A6);
    --shadow: 0 20px 50px -20px rgba(0, 0, 0, .7); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #050916; --surface: #0E1630; --surface-2: #121C3A;
  --ink: #E8EDFF; --ink-2: #A3ADD6; --ink-3: #7B86B3; --line: #1F2B4E; --line-2: #18223F;
  --pine: #34E3A6; --pine-2: #46D6FF; --pine-ink: #04101C; --pine-soft: rgba(52, 227, 166, .12);
  --deep: #070D22; --deep-2: #0E1630; --pencil: #FFC25E; --pencil-soft: rgba(255, 194, 94, .13); --sky: #46D6FF; --sky-soft: rgba(70, 214, 255, .12);
  --danger: #FF6E8E; --danger-soft: rgba(255, 110, 142, .13);
  --glass: rgba(16, 25, 52, .62); --glass-b: rgba(130, 165, 255, .15); --glass-hi: rgba(20, 30, 62, .72);
  --aur1: rgba(40, 190, 255, .14); --aur2: rgba(52, 227, 166, .10); --aur3: rgba(140, 100, 255, .12); --gridc: rgba(130, 170, 255, .05);
  --grad: linear-gradient(135deg, #46D6FF, #34E3A6);
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, .7); color-scheme: dark;
}
body { background: radial-gradient(55vw 45vh at 8% -5%, var(--aur1), transparent 70%), radial-gradient(45vw 50vh at 105% 15%, var(--aur3), transparent 70%), radial-gradient(60vw 40vh at 50% 110%, var(--aur2), transparent 70%), var(--paper); background-attachment: fixed; }
body.admin::after { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; background-image: linear-gradient(var(--gridc) 1px, transparent 1px), linear-gradient(90deg, var(--gridc) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 80%); -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 80%); }
body.admin::before { background: var(--paper); }
.logo-word .hr, .brand .hr { color: #10B981; }
:root[data-theme="dark"] .brand .hr { color: #34E3A6; }

/* menu samping melayang */
.shell { grid-template-columns: 278px minmax(0, 1fr); }
.side { position: sticky; top: 14px; align-self: start; margin: 14px 0 14px 14px; height: calc(100vh - 28px); border-radius: 18px; background: var(--glass); -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid var(--glass-b); color: var(--ink); box-shadow: var(--shadow); padding: .95rem .75rem .8rem; overflow-y: auto; }
.side .brand { color: var(--ink); }
.side nav .nav-label { color: var(--ink-3); font-size: .72rem; font-weight: 700; padding: .95rem .7rem .3rem; letter-spacing: .01em; }
.side nav a { color: var(--ink-2); border-radius: 10px; font-weight: 600; }
.side nav a:hover { background: var(--surface-2); color: var(--ink); }
.side nav a.active { background: var(--glass-hi); color: var(--ink); font-weight: 700; box-shadow: inset 0 0 0 1px var(--glass-b); }
.side nav a.active::before { left: -.75rem; top: 22%; width: 3px; height: 56%; margin-top: 0; border-radius: 3px; background: var(--grad); transform: none; }
.side nav a .i { color: inherit; }
.side .who { border-top: 1px solid var(--line); color: var(--ink-2); }
.side .who b { color: var(--ink); }
.side .who button { color: var(--ink-2); }
.side .who button:hover { background: var(--surface-2); color: var(--ink); }
.side .avatar .dot { border-color: var(--surface); }
.side .company-pick label { color: var(--ink-3); }
.side .company-pick select { background: var(--surface); color: var(--ink); border-color: var(--line); }
.co-block { display: flex; gap: .7rem; align-items: center; padding: .15rem .35rem .55rem; text-decoration: none; color: var(--ink); }
.co-tile { width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--grad); color: #fff; font-weight: 800; font-size: .92rem; display: grid; place-items: center; box-shadow: 0 6px 16px -8px var(--pine); }
.co-tile svg { width: 40px; height: 40px; }
.co-block b { display: block; font-size: .95rem; line-height: 1.2; }
.co-block small { display: block; color: var(--ink-3); font-size: .76rem; }
.side-tools { display: flex; gap: .35rem; padding: .5rem .2rem 0; flex-wrap: wrap; }
.side-tools button { font-size: .78rem; padding: .32rem .6rem; border-radius: 9px; }
.sub-pill { background: var(--surface-2); color: var(--ink); border: 1px solid var(--glass-b); }
.sub-pill span { color: var(--ink-2); }
.sub-pill.warn span { color: var(--pencil); }
.sub-pill.bad { background: var(--danger-soft); }
.sub-pill.bad span { color: var(--danger); }
.nav-badge { background: var(--grad); color: #fff; }
.ctx-banner { background: var(--sky-soft); color: var(--sky); border: 1px solid color-mix(in srgb, var(--sky) 25%, transparent); border-radius: 10px; padding: .55rem .9rem; margin: 0 0 1.1rem; font-size: .9rem; }
.ctx-banner a { color: inherit; font-weight: 700; }
.main-wrap { min-width: 0; }
.main { padding-top: 1.6rem; }
.page-head h1 { font-size: clamp(1.6rem, 2.4vw, 2rem); letter-spacing: -.01em; }

/* kartu, tabel, tombol, tab */
.panel, .table-wrap, .an-kpi, .tr-card, .modal { background: var(--glass-hi); border-color: var(--glass-b); box-shadow: var(--shadow); }
.panel, .table-wrap { -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.modal { background: var(--surface); border-radius: 18px; }
.modal-foot { background: var(--surface); }
.modal-back { background: rgba(8, 14, 40, .45); }
.an-kpi { position: relative; overflow: hidden; border-radius: 14px; padding: 1rem 1.1rem; }
.an-kpi::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--grad); opacity: .9; }
button.primary, .btn.primary { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 8px 18px -10px var(--pine); }
button.primary:hover, .btn.primary:hover { background: var(--grad); filter: brightness(1.06); border-color: transparent; }
:root[data-theme="dark"] button.primary, :root[data-theme="dark"] .btn.primary { color: #04101C; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) button.primary, :root:not([data-theme="light"]) .btn.primary { color: #04101C; } }
button, .btn { border-radius: 10px; }
.tabs { display: inline-flex; max-width: 100%; gap: .25rem; padding: .25rem; border: 1px solid var(--glass-b); border-radius: 12px; background: var(--glass); margin-bottom: 1.2rem; }
.tabs button { border: 0; border-radius: 9px; padding: .48rem .95rem; margin: 0; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.tabs button:hover { color: var(--ink); background: var(--surface-2); }
.tabs button.on { background: var(--grad); color: #fff; border: 0; box-shadow: 0 6px 14px -8px var(--pine); }
input, select, textarea { border-radius: 10px; }
.mobile-top { background: var(--glass); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); color: var(--ink); border-bottom: 1px solid var(--glass-b); }
.mobile-top button { color: var(--ink); }
.oc-loose { border-style: dashed; opacity: .85; }
/* palet perintah (Ctrl+K) */
.cmdk-list { list-style: none; margin: .6rem 0 0; padding: 0; max-height: 50vh; overflow: auto; }
.cmdk-list li a { display: flex; gap: .6rem; align-items: center; padding: .55rem .7rem; border-radius: 9px; color: var(--ink); text-decoration: none; }
.cmdk-list li a .g { margin-left: auto; color: var(--ink-3); font-size: .78rem; }
.cmdk-list li a.sel, .cmdk-list li a:hover { background: var(--pine-soft); }
.kbd { border: 1px solid var(--line); border-radius: 6px; padding: 0 .35rem; font-size: .72rem; color: var(--ink-3); }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; top: 0; left: 0; margin: 0; height: 100vh; border-radius: 0 18px 18px 0; z-index: 40; }
}

.side .who > div > span { display: block; }
.side .who-ver { opacity: .75; font-size: .72rem; }
.side .who-ver .hr { display: inline; font-size: inherit; color: #10B981; font-weight: 800; }
.side-tools { margin-top: auto; padding: .6rem .2rem .6rem; }
.side .who { margin-top: 0; }
/* status sukses selalu hijau, tidak mengikuti warna merek perusahaan */
:root, :root[data-theme="light"] { --ok: #11845A; --ok-soft: rgba(17, 132, 90, .12); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --ok: #46E3A2; --ok-soft: rgba(70, 227, 162, .12); } }
:root[data-theme="dark"] { --ok: #46E3A2; --ok-soft: rgba(70, 227, 162, .12); }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
input[type="color"] { height: 42px; padding: 4px; cursor: pointer; background: var(--surface); }

/* ======================= Menu rel + panel (gaya SunFish) ======================= */
.shell { grid-template-columns: 248px minmax(0, 1fr); }
body.rail-mini .shell { grid-template-columns: 92px minmax(0, 1fr); }
.side { padding: .8rem .6rem .7rem; }
.rail { display: flex; flex-direction: column; gap: .42rem; margin-top: .4rem; }
.rail-btn { position: relative; display: flex; align-items: center; gap: .7rem; width: 100%; text-align: left; padding: .62rem .8rem; border-radius: 12px; border: 1px solid transparent;
  background: var(--surface-2); color: var(--ink); font-weight: 600; font-size: .92rem; box-shadow: none; cursor: pointer; }
.rail-btn .i { width: 20px; height: 20px; flex: none; color: var(--ink-2); }
.rail-btn:hover { border-color: var(--glass-b); background: var(--glass-hi); }
.rail-btn.active { background: var(--grad); color: #fff; box-shadow: 0 8px 18px -10px var(--pine); }
.rail-btn.active .i { color: #fff; }
.rail-btn .rail-l { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail-btn .nav-badge { margin-left: auto; }
.rail-min { margin-top: .9rem; background: transparent; border-color: var(--glass-b); font-size: .82rem; }
.rail-min .i { width: 18px; height: 18px; }
body.rail-mini .rail-btn { justify-content: center; padding: .62rem; }
body.rail-mini .rail-btn .rail-l, body.rail-mini .co-block > span:last-child, body.rail-mini .side-tools, body.rail-mini .who > div, body.rail-mini .company-pick, body.rail-mini .sub-pill span { display: none; }
body.rail-mini .rail-min .i { transform: rotate(180deg); }
body.rail-mini .rail-btn .nav-badge { position: absolute; top: 2px; right: 2px; margin: 0; }
body.rail-mini .co-block { justify-content: center; }
body.rail-mini .who { justify-content: center; }
.flyout { position: fixed; top: 14px; bottom: 14px; left: 272px; width: min(700px, calc(100vw - 300px)); z-index: 45; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--glass-b); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 1.6rem 1.9rem 2rem; animation: flyIn .16s ease-out; }
body.rail-mini .flyout { left: 116px; width: min(700px, calc(100vw - 140px)); }
@keyframes flyIn { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
.fly-head { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.fly-head h2 { margin: 0; font-size: 1.45rem; flex: 1; }
.fly-head .i { color: var(--ink-2); }
.flyout #fly-q { width: 100%; margin-bottom: 1.4rem; }
.fly-body { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.4rem 2rem; align-items: start; }
.fly-group h4 { margin: 0 0 .5rem; font-size: .95rem; font-weight: 800; color: var(--ink); }
.fly-group ul { list-style: none; margin: 0; padding: 0 0 0 .9rem; border-left: 2px solid var(--line); }
.fly-group li { display: flex; align-items: center; gap: .3rem; }
.fly-group li a { flex: 1; padding: .55rem .5rem; color: var(--ink-2); text-decoration: none; font-size: .9rem; border-radius: 8px; }
.fly-group li a:hover, .fly-group li a.on { color: var(--ink); background: var(--pine-soft); }
.fly-group li a.on { font-weight: 700; }
.fly-star { border: 0; background: none; padding: .3rem; color: var(--ink-3); opacity: 0; box-shadow: none; cursor: pointer; }
.fly-star .i { width: 15px; height: 15px; }
.fly-group li:hover .fly-star, .fly-star:focus-visible, .fly-star.on { opacity: 1; }
.fly-star.on { color: var(--pencil); }
.fly-star.on .i { fill: currentColor; }
@media (max-width: 900px) {
  .flyout, body.rail-mini .flyout { left: 0; right: 0; top: 0; bottom: 0; width: auto; border-radius: 0; }
  body.rail-mini .shell { grid-template-columns: 1fr; }
  .fly-star { opacity: 1; }
}
/* Beranda */
.home-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(300px, 1fr); gap: 1.25rem; align-items: start; }
@media (max-width: 1100px) { .home-grid { grid-template-columns: 1fr; } }
.task-list { display: flex; flex-direction: column; gap: .7rem; }
.task-card { display: flex; align-items: center; gap: 1rem; padding: .9rem 1rem; border: 1px solid var(--glass-b); border-radius: 14px; background: var(--surface); }
.task-n { min-width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-size: 1.25rem; font-weight: 800; background: var(--pine-soft); color: var(--pine); }
.task-t { flex: 1; min-width: 0; } .task-t b { display: block; } .task-t span { font-size: .86rem; color: var(--ink-2); }
.task-card .btn { border-radius: 999px; }
.home-side .tab-title { display: inline-block; margin: 0 0 .9rem; padding-bottom: .4rem; border-bottom: 2.5px solid var(--pine); font-size: 1.05rem; color: var(--pine); }
.ag-day { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: .8rem; padding: .6rem 0; border-top: 1px solid var(--line-2); }
.ag-day:first-of-type { border-top: 0; }
.ag-date { text-align: center; } .ag-date b { display: block; font-size: 1.7rem; line-height: 1.1; color: var(--pine); } .ag-date span { font-size: .82rem; color: var(--ink-3); }
.ag-day ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .3rem; font-size: .88rem; }
@media (max-width: 600px) { .task-card { flex-wrap: wrap; } }
.rail-btn .nav-badge, .fly-group .nav-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; font-size: .72rem; font-weight: 800; line-height: 1; background: var(--danger); color: #fff; }
.rail-btn .nav-badge.hidden { display: none; }
.home-grid .an-kpis { grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); }
.ck-list { list-style: none; margin: .6rem 0 .4rem; padding: 0; display: flex; flex-direction: column; gap: .35rem; }
.ck-list li { display: flex; justify-content: space-between; gap: .8rem; align-items: center; flex-wrap: wrap; border-bottom: 1px solid var(--line-2); padding: .3rem 0; }
.ck-list label { display: flex; gap: .5rem; align-items: center; margin: 0; font-weight: 500; }
.rs-t th, .rs-t td { white-space: nowrap; }
.rs-t th.rs-hol { color: var(--danger); }
.rs-c select { width: auto; min-width: 64px; padding: .3rem .35rem; min-height: 0; font-size: .82rem; }
.rs-c .badge { margin-left: .2rem; font-size: .66rem; padding: 1px 5px; }
.rate { display: flex; gap: .4rem; flex-wrap: wrap; }
.rate label { display: inline-flex; align-items: center; gap: .3rem; border: 1px solid var(--line); border-radius: 9px; padding: .3rem .7rem; margin: 0; font-weight: 600; cursor: pointer; }
.rate label:has(input:checked) { border-color: var(--pine); background: var(--pine-soft); }
.dist { display: grid; grid-template-columns: repeat(5, 1fr); gap: .8rem; text-align: center; margin-bottom: .6rem; }
.dist > div { display: flex; flex-direction: column; align-items: center; gap: .15rem; }
.dist-bar { height: 110px; width: 46px; display: flex; align-items: flex-end; background: var(--surface-2); border-radius: 8px; overflow: hidden; }
.dist-bar i { display: block; width: 100%; background: var(--grad); border-radius: 8px 8px 0 0; }
.dist span { font-size: .78rem; color: var(--ink-2); } .dist small { color: var(--ink-3); }
.comp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem 1.6rem; }
.comp-grid h4 { margin: 0 0 .4rem; font-size: .9rem; color: var(--ink-2); }
.home-short .btn { border-radius: 999px; }
/* Pusat laporan */
.rpt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.rpt { display: flex; flex-direction: column; gap: .35rem; margin: 0; }
.rpt h3 { margin: 0; font-size: 1rem; }
.rpt p { margin: 0 0 .4rem; flex: 1; }
.an-kpi b { overflow-wrap: anywhere; }
#prBox .an-kpis { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
#prBox .an-kpi b { font-size: clamp(1.1rem, 1.5vw, 1.45rem); }
