/* =========================================================
   PSC's Exam Center — stylesheet tunggal
   Gaya: bersih, tenang, fokus. Tanpa gradient dekoratif, tanpa emoji.
   ========================================================= */

:root {
  --accent: #2347D6;
  --accent-deep: #1A35A6;
  --accent-soft: #E8EDFD;
  --ink: #14213D;
  --ink-soft: #2A3752;
  --muted: #4A5568;
  --bg: #F3F5F9;
  --surface: #FFFFFF;
  --surface-2: #FAFBFD;
  --line: #D8DEE9;
  --line-soft: #E7ECF3;

  --ok: #0B6B3A;
  --ok-bg: #DFF5E8;
  --warn: #8A4B00;
  --warn-bg: #FFF1D6;
  --bad: #A31F2B;
  --bad-bg: #FDE6E8;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;

  --shadow-sm: 0 1px 2px rgba(20, 33, 61, .05);
  --shadow-md: 0 10px 30px -18px rgba(20, 33, 61, .35);

  --max: 1140px;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

/* [hidden] harus selalu menang atas aturan display milik komponen */
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, ul, ol, dl { margin: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
strong { font-weight: 700; }

:focus-visible {
  outline: 3px solid rgba(35, 71, 214, .4);
  outline-offset: 2px;
  border-radius: 6px;
}

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

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.page { padding: 28px 0 72px; }
.page--narrow { max-width: 880px; margin: 0 auto; }

.ico { width: 18px; height: 18px; flex: 0 0 auto; display: inline-block; vertical-align: -3px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.stack > * + * { margin-top: 16px; }
.stack-sm > * + * { margin-top: 8px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.row--between { justify-content: space-between; }
.spacer { flex: 1 1 auto; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.break { word-break: break-word; overflow-wrap: anywhere; }

/* --------------------------------------------------------- Logo PSC */
.psc { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.psc:hover { text-decoration: none; }
.psc__mark { display: block; width: 42px; height: 42px; flex: 0 0 auto; }
.psc__mark svg { display: block; width: 100%; height: 100%; }
.psc__word { display: grid; line-height: 1; font-size: 21px; letter-spacing: -.01em; }
.psc__l1 { color: #209E55; font-weight: 500; font-size: .86em; letter-spacing: .01em; margin-bottom: 1px; }
.psc__l2 { color: #111111; font-weight: 800; }
.psc__l3 { color: #209E55; font-weight: 800; }
.psc--sm .psc__mark { width: 32px; height: 32px; }
.psc--sm .psc__word { font-size: 15px; }
.psc--lg .psc__mark { width: 58px; height: 58px; }
.psc--lg .psc__word { font-size: 27px; }

/* --------------------------------------------------------- Tombol */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px;
  border: 1px solid transparent; border-radius: var(--r-sm);
  background: var(--accent); color: #fff;
  font-weight: 700; font-size: 14.5px; line-height: 1.2;
  cursor: pointer; text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { background: var(--accent-deep); text-decoration: none; }
.btn:disabled, .btn[aria-disabled="true"] {
  background: #CBD3E1; color: #6B7689; cursor: not-allowed; border-color: #CBD3E1;
}
.btn .ico { width: 18px; height: 18px; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--surface-2); border-color: #BFC9D9; }
.btn--soft { background: var(--accent-soft); color: var(--accent-deep); border-color: #CFD9FA; }
.btn--soft:hover { background: #DCE4FB; }
.btn--danger { background: var(--bad); }
.btn--danger:hover { background: #871621; }
.btn--danger-ghost { background: transparent; color: var(--bad); border-color: #F1C7CC; }
.btn--danger-ghost:hover { background: var(--bad-bg); }
.btn--sm { min-height: 44px; padding: 0 13px; font-size: 13.5px; }
.btn--block { width: 100%; }

.linkbtn {
  background: none; border: 0; padding: 6px 4px; min-height: 44px;
  color: var(--accent); font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
}
.linkbtn:hover { text-decoration: underline; }

/* --------------------------------------------------------- Kartu & form */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.card--flat { box-shadow: none; }
.card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.card__title { font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.card + .card { margin-top: 20px; }

.section-title { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.section-sub { color: var(--muted); margin-top: 6px; font-size: 14.5px; }

.field { display: block; }
.field + .field { margin-top: 18px; }
.field__label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 7px; }
.field__hint { display: block; color: var(--muted); font-size: 12.5px; margin-top: 6px; }
.input, .select, .textarea {
  width: 100%; min-height: 46px; padding: 11px 13px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm);
  color: var(--ink); font-size: 15px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input:hover, .select:hover, .textarea:hover { border-color: #C2CBD9; }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(35, 71, 214, .14);
}
.textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.input--sm { min-height: 42px; padding: 8px 11px; font-size: 14px; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234A5568' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 38px; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid .field + .field { margin-top: 0; }
.form-grid .field--full { grid-column: 1 / -1; }

.field-error { color: var(--bad); font-size: 13px; margin-top: 6px; display: flex; gap: 6px; align-items: center; }
.input.has-error { border-color: var(--bad); box-shadow: 0 0 0 3px rgba(163, 31, 43, .1); }

/* --------------------------------------------------------- Badge & alert */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; line-height: 1.4; white-space: nowrap;
}
.badge .ico { width: 14px; height: 14px; }
.badge--ok { background: var(--ok-bg); color: var(--ok); }
.badge--warn { background: var(--warn-bg); color: var(--warn); }
.badge--bad { background: var(--bad-bg); color: var(--bad); }
.badge--muted { background: #EDF0F6; color: var(--muted); }
.badge--accent { background: var(--accent-soft); color: var(--accent-deep); }

.flash {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px; border-radius: var(--r-sm); margin-bottom: 20px;
  font-size: 14px; font-weight: 600; border: 1px solid transparent;
}
.flash--ok { background: var(--ok-bg); color: var(--ok); border-color: #BFE9D2; }
.flash--bad { background: var(--bad-bg); color: var(--bad); border-color: #F6C9CE; }

.note {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px; border-radius: var(--r-sm);
  background: var(--surface-2); border: 1px solid var(--line-soft);
  color: var(--muted); font-size: 13.5px;
}
.note .ico { margin-top: 2px; color: var(--muted); }
.note--warn { background: var(--warn-bg); border-color: #F3DFB8; color: var(--warn); }
.note--warn .ico { color: var(--warn); }
.note--bad { background: var(--bad-bg); border-color: #F6C9CE; color: var(--bad); }
.note--bad .ico { color: var(--bad); }
.note--ok { background: var(--ok-bg); border-color: #BFE9D2; color: var(--ok); }

.empty {
  padding: 32px 20px; text-align: center; color: var(--muted);
  border: 1px dashed var(--line); border-radius: var(--r-md); background: var(--surface-2);
}
.empty strong { display: block; color: var(--ink); margin-bottom: 4px; }

/* --------------------------------------------------------- Bilah atas */
.bar { background: var(--surface); border-bottom: 1px solid var(--line); }
.bar__in {
  max-width: var(--max); margin: 0 auto; padding: 10px 24px;
  display: flex; align-items: center; gap: 20px;
}
.bar__brand { flex: 0 0 auto; }
.bar__nav { display: flex; align-items: center; gap: 4px; flex: 1 1 auto; min-width: 0; flex-wrap: wrap; }
.bar__link {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 44px; padding: 0 12px; border-radius: 9px;
  color: var(--muted); font-weight: 600; font-size: 14px;
}
.bar__link:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.bar__link.is-active { background: var(--accent-soft); color: var(--accent-deep); }
.bar__link .ico { width: 17px; height: 17px; }
.bar__user { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.bar__who { display: flex; align-items: center; gap: 9px; }
.bar__avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: 0 0 auto;
  background: var(--accent-soft); color: var(--accent-deep);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px;
}
.bar__who-txt { display: grid; line-height: 1.25; }
.bar__who-txt strong { font-size: 13.5px; }
.bar__who-txt small { color: var(--muted); font-size: 11.5px; }
.bar__logout { margin: 0; }

@media (max-width: 860px) {
  .bar__in { flex-wrap: wrap; gap: 10px 14px; padding: 10px 16px; }
  .bar__brand { order: 1; }
  .bar__user { order: 2; margin-left: auto; }
  .bar__nav { order: 3; flex-basis: 100%; overflow-x: auto; padding-bottom: 2px; }
  .bar__who-txt { display: none; }
  .hide-sm { display: none; }
}

/* --------------------------------------------------------- Login */
.login { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); }
.login__brand {
  min-width: 0;
  background: #14213D; color: #fff;
  padding: 48px clamp(26px, 5vw, 64px);
  display: flex; flex-direction: column; gap: 36px;
}
.login__brandtop { display: flex; flex-direction: column; gap: 28px; }
.login__logo {
  background: #fff; border-radius: var(--r-md); padding: 14px 18px;
  display: inline-flex; width: fit-content;
}
.login__headline { font-size: clamp(28px, 3vw, 38px); line-height: 1.16; font-weight: 800; letter-spacing: -.02em; max-width: 15ch; }
.login__lead { color: #C3CCE0; font-size: 15px; max-width: 42ch; }
.login__points { list-style: none; padding: 0; display: grid; gap: 16px; }
.login__points li { display: flex; gap: 12px; align-items: flex-start; color: #DCE3F2; font-size: 14.5px; }
.login__points .ico { width: 20px; height: 20px; color: #9FB4EA; margin-top: 1px; }
.login__points strong { display: block; color: #fff; font-size: 14.5px; }
.login__brandfoot { margin-top: auto; color: #92A0BD; font-size: 12.5px; border-top: 1px solid rgba(255,255,255,.14); padding-top: 18px; }

.login__panel { min-width: 0; background: var(--bg); display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.login__card { width: 100%; max-width: 456px; min-width: 0; }
.login__title { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.login__sub { color: var(--muted); margin-top: 6px; font-size: 14.5px; }

.roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 22px 0 22px; }
.role {
  position: relative; min-width: 0; display: flex; gap: 10px; align-items: center;
  padding: 12px 14px; min-height: 58px;
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface);
  cursor: pointer; transition: border-color .15s ease, background-color .15s ease;
}
.role input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.role__ico { width: 34px; height: 34px; border-radius: 9px; background: #EDF0F6; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.role__txt { display: grid; line-height: 1.25; min-width: 0; }
.role__txt strong, .role__txt small { overflow-wrap: anywhere; }
.role__txt strong { font-size: 14px; }
.role__txt small { color: var(--muted); font-size: 11.5px; }
.role:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent) inset; }
.role.is-checked { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent) inset; }
.role.is-checked .role__ico { background: #fff; color: var(--accent-deep); }
.role input:focus-visible ~ .role__ico { outline: 3px solid rgba(35,71,214,.4); outline-offset: 2px; }

.login__demo { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 18px; }
.login__demo-title { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.login__demo dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 10px 0 0; font-size: 13px; }
.login__demo dt { color: var(--muted); font-weight: 600; }
.login__demo dd { margin: 0; min-width: 0; overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.demo-fill { display: inline-flex; align-items: center; min-height: 44px; border: 1px solid var(--line); background: var(--surface); border-radius: 7px; padding: 3px 10px; font-size: 12.5px; cursor: pointer; color: var(--accent-deep); font-weight: 600; }
.demo-fill:hover { background: var(--accent-soft); border-color: #C7D3F8; }

@media (max-width: 900px) {
  .login { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .login__brand { padding: 28px 20px 32px; gap: 22px; }
  .login__headline { font-size: 27px; max-width: none; }
  .login__points { gap: 12px; }
  .login__points li:nth-child(n+4) { display: none; }
  .login__brandfoot { margin-top: 4px; }
  .login__panel { padding: 24px 16px 40px; }
}

/* --------------------------------------------------------- Beranda peserta */
.hero {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px 28px; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.hero__title { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.hero__sub { color: var(--muted); font-size: 14.5px; margin-top: 4px; }
.hero__side { display: flex; gap: 22px; flex-wrap: wrap; }
.metric { display: grid; gap: 2px; }
.metric__num { font-size: 21px; font-weight: 800; letter-spacing: -.01em; }
.metric__label { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }

.exam-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-top: 20px; }
.exam-card { display: flex; flex-direction: column; gap: 16px; }
.exam-card__top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.exam-card__title { font-size: 17.5px; font-weight: 800; line-height: 1.3; letter-spacing: -.01em; }
.exam-card__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.exam-card__meta .metric__num { font-size: 16px; font-weight: 700; }
.exam-card__meta .metric__label { font-size: 11px; }
.exam-card__foot { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 4px; }
.exam-card__detail { font-size: 12.5px; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 620px; }
.table th, .table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.table thead th { background: var(--surface-2); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; white-space: nowrap; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #FBFCFE; }
.table__num { font-variant-numeric: tabular-nums; font-weight: 700; }
.table__aksi { text-align: right; white-space: nowrap; }

/* --------------------------------------------------------- Petunjuk */
.inst-head { display: flex; gap: 20px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; }
.tile__ico { width: 34px; height: 34px; border-radius: 9px; background: var(--accent-soft); color: var(--accent-deep); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.tile__num { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.tile__label { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.rules { margin: 0; padding-left: 20px; display: grid; gap: 10px; color: var(--ink-soft); font-size: 14.5px; }
.rules li::marker { color: var(--accent); font-weight: 700; }

.consent {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2);
  cursor: pointer; min-height: 56px;
}
.consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); flex: 0 0 auto; }
.consent strong { display: block; font-size: 14.5px; }
.consent small { color: var(--muted); font-size: 13px; }
.consent:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }

@media (max-width: 860px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* --------------------------------------------------------- Halaman ujian */
.examtop { position: sticky; top: 0; z-index: 50; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 6px 18px -18px rgba(20,33,61,.5); }
.examtop__bar { max-width: var(--max); margin: 0 auto; padding: 10px 24px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.examtop__title { font-weight: 800; font-size: 15.5px; letter-spacing: -.01em; min-width: 0; }
.examtop__title small { display: block; font-weight: 500; font-size: 12px; color: var(--muted); }
.examtop__mid { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.examtop__prog { min-width: 168px; }
.progress { height: 8px; border-radius: 999px; background: #E6EAF2; overflow: hidden; }
.progress__bar { height: 100%; background: var(--accent); border-radius: 999px; transition: width .25s ease; }
.progress__label { font-size: 11.5px; color: var(--muted); font-weight: 600; margin-top: 5px; display: block; }

.timer {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface-2); font-variant-numeric: tabular-nums;
  font-weight: 800; font-size: 17px; letter-spacing: .02em; min-height: 44px;
}
.timer .ico { width: 18px; height: 18px; color: var(--muted); }
.timer.is-critical { background: var(--bad-bg); border-color: #F0C3C9; color: var(--bad); }
.timer.is-critical .ico { color: var(--bad); }

.warnbar {
  background: var(--bad-bg); color: var(--bad); border-top: 1px solid #F0C3C9;
  font-weight: 700; font-size: 13.5px; padding: 9px 24px;
  display: flex; gap: 8px; align-items: center; justify-content: center; text-align: center;
}
.warnbar .ico { width: 17px; height: 17px; }

.exam-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 306px; gap: 22px; align-items: start; padding: 22px 0 48px; }
.exam-main { min-width: 0; }
.exam-side { position: sticky; top: 92px; display: grid; gap: 16px; }

.qcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; }
.qcard__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.qcard__num { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.qcard__num strong { color: var(--ink); }
.qcard__text { font-size: 17px; line-height: 1.6; font-weight: 600; white-space: pre-wrap; }
.qcard__flag {
  display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 13px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  color: var(--muted); font-weight: 700; font-size: 13px; cursor: pointer;
}
.qcard__flag:hover { background: var(--surface-2); border-color: #C2CBD9; }
.qcard__flag.is-on { background: var(--warn-bg); color: var(--warn); border-color: #F0D6A6; }

.options { display: grid; gap: 10px; margin-top: 22px; }
.opt {
  position: relative; display: flex; gap: 13px; align-items: flex-start;
  padding: 13px 15px; min-height: 52px;
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface);
  cursor: pointer; transition: border-color .12s ease, background-color .12s ease;
}
.opt:hover { border-color: #C2CBD9; background: var(--surface-2); }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt__mark {
  width: 30px; height: 30px; border-radius: 8px; flex: 0 0 auto;
  border: 1px solid var(--line); background: var(--surface-2);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13.5px; color: var(--muted);
}
.opt__txt { font-size: 15px; line-height: 1.5; padding-top: 3px; }
.opt.is-checked { border-color: var(--accent); background: var(--accent-soft); }
.opt.is-checked .opt__mark { background: var(--accent); border-color: var(--accent); color: #fff; }
.opt input:focus-visible ~ .opt__mark { outline: 3px solid rgba(35,71,214,.4); outline-offset: 2px; }

.essay-wrap { margin-top: 22px; }
.essay-count { display: flex; gap: 16px; color: var(--muted); font-size: 12.5px; margin-top: 8px; font-weight: 600; }
.essay-count strong { color: var(--ink); }

.qcard__foot { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.qcard__nav { display: flex; gap: 10px; }
.save-state { font-size: 12.5px; color: var(--muted); font-weight: 600; display: inline-flex; gap: 6px; align-items: center; min-height: 24px; }
.save-state.is-ok { color: var(--ok); }
.save-state.is-err { color: var(--bad); }

.qmap { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.qmap__btn {
  position: relative; min-height: 44px; padding: 0;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
  font-weight: 700; font-size: 14px; color: var(--muted); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.qmap__btn:hover { border-color: #C2CBD9; background: var(--surface-2); }
.qmap__btn.is-answered { background: var(--accent-soft); border-color: #BFCDF7; color: var(--accent-deep); }
.qmap__btn.is-flag { background: var(--warn-bg); border-color: #EFD3A0; color: var(--warn); }
.qmap__btn.is-answered.is-flag { background: var(--warn-bg); border-color: #EFD3A0; color: var(--warn); }
.qmap__btn.is-active { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent); }
.qmap__flag { position: absolute; top: -5px; right: -5px; width: 16px; height: 16px; border-radius: 50%; background: var(--warn); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.qmap__flag .ico { width: 10px; height: 10px; stroke-width: 2.6; }

.legend { display: grid; gap: 8px; margin-top: 14px; font-size: 12.5px; color: var(--muted); }
.legend__row { display: flex; align-items: center; gap: 9px; justify-content: space-between; }
.legend__key { display: inline-flex; align-items: center; gap: 8px; }
.swatch { width: 15px; height: 15px; border-radius: 5px; border: 1px solid var(--line); background: var(--surface); flex: 0 0 auto; }
.swatch--answered { background: var(--accent-soft); border-color: #BFCDF7; }
.swatch--flag { background: var(--warn-bg); border-color: #EFD3A0; }
.swatch--active { background: var(--surface); border-color: var(--accent); box-shadow: 0 0 0 2px rgba(35,71,214,.25); }
.legend__count { font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.panel-title { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 12px; }
.secure-tag { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; color: var(--ok); background: var(--ok-bg); padding: 6px 10px; border-radius: 999px; }

@media (max-width: 980px) {
  .exam-wrap { grid-template-columns: 1fr; }
  .exam-side { position: static; }
  .examtop__bar { padding: 10px 16px; }
  .examtop__title { font-size: 14px; }
  .examtop__prog { min-width: 120px; }
}
@media (max-width: 640px) {
  .qcard { padding: 20px 18px; }
  .qcard__text { font-size: 16px; }
  .examtop__title small { display: none; }
  .timer { font-size: 15.5px; padding: 6px 11px; }
  .qmap { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .qcard__foot { justify-content: stretch; }
  .qcard__nav { width: 100%; }
  .qcard__nav .btn { flex: 1 1 0; }
}

/* --------------------------------------------------------- Dialog */
dialog.modal {
  border: 0; padding: 0; border-radius: var(--r-lg); max-width: 460px; width: calc(100% - 32px);
  background: var(--surface); color: var(--ink); box-shadow: 0 30px 70px -30px rgba(20,33,61,.55);
}
dialog.modal::backdrop { background: rgba(20, 33, 61, .5); }
.modal__body { padding: 24px; }
.modal__title { font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.modal__text { color: var(--muted); margin-top: 6px; font-size: 14px; }
.modal__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.modal__stat { background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: var(--r-sm); padding: 10px 12px; text-align: center; }
.modal__stat b { display: block; font-size: 19px; letter-spacing: -.01em; }
.modal__stat span { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.modal__foot { display: flex; gap: 10px; justify-content: flex-end; padding: 0 24px 24px; flex-wrap: wrap; }
.modal__foot .btn { flex: 1 1 auto; }

/* --------------------------------------------------------- Hasil */
.result-head { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.ring { position: relative; width: 148px; height: 148px; flex: 0 0 auto; }
.ring svg { transform: rotate(-90deg); display: block; }
.ring__track { stroke: #E6EAF2; }
.ring__val { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset .8s ease; }
.ring--ok .ring__val { stroke: var(--ok); }
.ring--bad .ring__val { stroke: var(--bad); }
.ring__center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring__score { font-size: 34px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.ring__of { font-size: 11.5px; color: var(--muted); font-weight: 700; letter-spacing: .06em; margin-top: 4px; }
.result-head__main { flex: 1 1 260px; min-width: 0; }
.result-head__title { font-size: 23px; font-weight: 800; letter-spacing: -.02em; }
.result-head__sub { color: var(--muted); font-size: 14px; margin-top: 4px; }
.result-head__status { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 14px; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; }
.stat__label { font-size: 12px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.stat__val { font-size: 20px; font-weight: 800; margin-top: 4px; letter-spacing: -.01em; }
.stat__val small { font-size: 12.5px; color: var(--muted); font-weight: 600; }

.bars { display: grid; gap: 16px; margin-top: 8px; }
.bar-row__head { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; font-weight: 700; margin-bottom: 6px; }
.bar-row__head span:last-child { color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.bar-track { height: 10px; border-radius: 999px; background: #E6EAF2; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; background: var(--accent); }
.bar-fill--ok { background: var(--ok); }
.bar-fill--warn { background: #C08A1E; }
.bar-fill--bad { background: var(--bad); }

.review { display: grid; gap: 16px; margin-top: 20px; }
.rev { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.rev__top { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; margin-bottom: 12px; }
.rev__no { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.rev__q { font-size: 15.5px; font-weight: 600; line-height: 1.55; white-space: pre-wrap; margin-top: 4px; }
.rev__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.rev__box { background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: var(--r-sm); padding: 12px 14px; }
.rev__box h4 { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 6px; }
.rev__box p { font-size: 14px; white-space: pre-wrap; line-height: 1.55; }
.rev__box.is-ok { background: var(--ok-bg); border-color: #BFE9D2; }
.rev__box.is-ok h4 { color: var(--ok); }
.rev__box.is-bad { background: var(--bad-bg); border-color: #F6C9CE; }
.rev__box.is-bad h4 { color: var(--bad); }
.rev__foot { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 14px; font-size: 13px; color: var(--muted); }
.rev__poin { font-weight: 800; color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: #EDF0F6; color: var(--muted); }
.chip--ok { background: var(--ok-bg); color: var(--ok); }
.chip--bad { background: var(--bad-bg); color: var(--bad); }
.chip--warn { background: var(--warn-bg); color: var(--warn); }

@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rev__grid { grid-template-columns: 1fr; }
  .result-head { padding: 22px; gap: 20px; }
}

/* --------------------------------------------------------- Guru: editor */
.guru-head { display: flex; gap: 16px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; }
.editor-grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 20px; align-items: start; margin-top: 22px; }
.editor-side { display: grid; gap: 16px; position: sticky; top: 20px; }

.qlist { display: grid; gap: 8px; }
.qitem {
  display: flex; gap: 11px; align-items: flex-start; width: 100%; text-align: left;
  padding: 11px 12px; min-height: 56px;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface);
  cursor: pointer; text-decoration: none; color: inherit;
}
.qitem:hover { border-color: #C2CBD9; background: var(--surface-2); text-decoration: none; }
.qitem.is-active { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent) inset; }
.qitem__no {
  width: 26px; height: 26px; border-radius: 7px; flex: 0 0 auto;
  background: #EDF0F6; color: var(--muted); font-weight: 800; font-size: 12.5px;
  display: inline-flex; align-items: center; justify-content: center;
}
.qitem.is-active .qitem__no { background: var(--accent); color: #fff; }
.qitem__body { min-width: 0; flex: 1 1 auto; }
.qitem__text { font-size: 13.5px; font-weight: 600; line-height: 1.4; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.qitem__meta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 5px; }
.tag { font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 2px 7px; border-radius: 5px; background: #EDF0F6; color: var(--muted); }
.tag--pg { background: var(--accent-soft); color: var(--accent-deep); }
.tag--essay { background: #EFE8FB; color: #5B2FA8; }
.tag--warn { background: var(--warn-bg); color: var(--warn); }

.opts { display: grid; gap: 10px; }
.optrow { display: flex; gap: 10px; align-items: center; }
.optrow__pick { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2); cursor: pointer; }
.optrow__pick input { width: 19px; height: 19px; accent-color: var(--accent); margin: 0; }
.optrow.is-key .optrow__pick { border-color: var(--ok); background: var(--ok-bg); }
.optrow__letter { width: 26px; font-weight: 800; color: var(--muted); font-size: 13px; flex: 0 0 auto; text-align: center; }
.optrow .input { flex: 1 1 auto; }
.optrow__del { width: 44px; height: 44px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.optrow__del:hover { background: var(--bad-bg); border-color: #F1C7CC; color: var(--bad); }

.totals { display: flex; gap: 16px; flex-wrap: wrap; background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: var(--r-sm); padding: 12px 14px; font-size: 13.5px; }
.totals b { font-size: 15px; }
.totals .is-warn { color: var(--warn); }
.totals .is-ok { color: var(--ok); }

.guru-tabs { display: inline-flex; gap: 4px; background: #E9EDF4; padding: 4px; border-radius: 11px; }
.guru-tabs a { padding: 8px 14px; border-radius: 8px; font-weight: 700; font-size: 13.5px; color: var(--muted); min-height: 44px; display: inline-flex; align-items: center; gap: 7px; }
.guru-tabs a:hover { text-decoration: none; color: var(--ink); }
.guru-tabs a.is-active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

.summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.sumcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; }
.sumcard__label { font-size: 12px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.sumcard__val { font-size: 24px; font-weight: 800; letter-spacing: -.02em; margin-top: 3px; }
.sumcard__val small { font-size: 13px; color: var(--muted); font-weight: 600; }

.vlog { display: grid; gap: 8px; }
.vrow { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line-soft); border-radius: var(--r-sm); background: var(--surface-2); font-size: 13px; }
.vrow__time { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 700; white-space: nowrap; }
.vrow__jenis { font-weight: 600; flex: 1 1 auto; min-width: 0; }
.vrow__meta { color: var(--muted); white-space: nowrap; }

.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.koreksi { display: grid; gap: 10px; }
.koreksi__row { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 12px; border: 1px solid var(--line-soft); border-radius: var(--r-sm); background: var(--surface-2); }
.koreksi__row .input { width: 88px; min-height: 40px; text-align: center; }

@media (max-width: 1000px) {
  .editor-grid { grid-template-columns: 1fr; }
  .editor-side { position: static; }
  .summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .form-grid, .form-grid--3 { grid-template-columns: 1fr; }
  .card { padding: 18px; }
  .wrap { padding: 0 16px; }
  .hero { padding: 20px; }
  .exam-card__meta { grid-template-columns: 1fr 1fr; }
}

/* --------------------------------------------------------- Cetak */
@media print {
  .bar, .examtop, .btn, .flash { display: none !important; }
  body { background: #fff; }
  .card, .rev, .result-head { border-color: #ccc; box-shadow: none; }
}

/* =========================================================
   Tambahan: logo unggahan, pendaftaran, kelas, peserta, kartu cetak
   ========================================================= */

/* --- Logo: berkas asli TIDAK diubah; hanya tinggi tampilan yang diatur --- */
.logo-img {
  display: block;
  height: 38px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  object-position: left center;
}
.logo--login { height: 62px; max-width: 260px; }
.logo--preview { height: 56px; max-width: 240px; }
.logo--card { height: 34px; max-width: 170px; }
.logo-preview {
  display: flex; align-items: center; justify-content: flex-start;
  padding: 18px; border: 1px dashed var(--line); border-radius: var(--r-md); background: var(--surface-2);
}
.bar__brand .psc--sm .psc__mark { width: 32px; height: 32px; }

/* --- Halaman login: tautan alternatif & legal --- */
.login__alt {
  margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line);
  display: grid; gap: 6px;
}
.login__alt p { margin: 0; }
.login__legal { margin-top: 14px; text-align: center; }
.login__card--wide { max-width: 560px; }
.login--daftar .login__brand { gap: 26px; }
@media (max-width: 900px) {
  .logo--login { height: 46px; }
  .login__card--wide { max-width: none; }
}

/* --- Field error (pesan wajib diisi hanya saat benar-benar kosong) --- */
.field__hint--err { color: var(--bad); font-weight: 600; }
.field__hint:empty { display: none; }

/* --- Honeypot: tidak boleh terlihat pengguna, tapi tetap ada di DOM --- */
.hp {
  position: absolute !important;
  left: -9999px !important;
  top: auto;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* --- Key-value list --- */
.kv { display: grid; gap: 8px; }
.kv__row {
  display: flex; gap: 12px; align-items: baseline; justify-content: space-between;
  padding: 9px 12px; background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: var(--r-sm);
  font-size: 14px;
}
.kv__row span { color: var(--muted); font-size: 13px; }
.kv--tight .kv__row { padding: 6px 10px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .02em; }

/* --- Ikon status besar --- */
.stateico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 16px;
}
.stateico .ico { width: 28px; height: 28px; }
.stateico--accent { background: var(--accent-soft); color: var(--accent-deep); }
.stateico--warn { background: var(--warn-bg); color: var(--warn); }

/* --- Kelas --- */
.classlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.classrow {
  display: flex; gap: 12px; align-items: center; justify-content: space-between;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface);
  flex-wrap: wrap;
}
.classrow__main { min-width: 0; flex: 1 1 180px; }
.classrow__main strong { display: block; font-size: 14.5px; }

.checkgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px 14px; }
.checkline {
  display: flex; gap: 10px; align-items: flex-start; min-height: 44px;
  padding: 8px 10px; border-radius: var(--r-sm); font-size: 14px; cursor: pointer;
}
.checkline:hover { background: var(--surface-2); }
.checkline input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); flex: 0 0 auto; }
.checkline--tight { min-height: 40px; padding: 4px 6px; font-size: 12.5px; }

.copybtn {
  border: 1px solid var(--line); background: var(--surface-2); border-radius: 8px;
  padding: 6px 10px; font-size: 13px; font-weight: 800; cursor: pointer; color: var(--ink);
  min-height: 40px;
}
.copybtn:hover { background: var(--accent-soft); border-color: #C7D3F8; color: var(--accent-deep); }

/* --- Token ujian --- */
.tokenrow { display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.tokenbox {
  display: grid; gap: 2px; padding: 14px 20px; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid #CFD9FA;
}
.tokenbox__label { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tokenbox__code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 34px; font-weight: 800; letter-spacing: .22em; color: var(--accent-deep); line-height: 1.15; }
.tokenbox__time { font-size: 12px; color: var(--muted); }

/* --- Filter bar peserta --- */
.filterbar { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.filterbar > * { min-width: 0; }
.filterbar .select, .filterbar .input { min-width: 0; }
.filterbar .field + .field { margin-top: 0; }
.filterbar__aksi { display: flex; gap: 8px; align-items: center; }
.form-inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; margin: 0; }
@media (max-width: 860px) {
  .filterbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filterbar__aksi { grid-column: 1 / -1; flex-wrap: wrap; }
}
@media (max-width: 520px) {
  .filterbar { grid-template-columns: minmax(0, 1fr); }
}

/* --- Kartu login peserta (cetak) --- */
.printbar {
  display: flex; gap: 16px; align-items: center; justify-content: space-between;
  flex-wrap: wrap; margin-bottom: 24px;
}
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.idcard {
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface);
  padding: 18px; break-inside: avoid;
}
.idcard__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.idcard__label { font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.idcard__nama { font-size: 17px; font-weight: 800; letter-spacing: -.01em; margin: 2px 0 12px; }
.idcard__foot { font-size: 10.5px; color: var(--muted); margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 10px; }

@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } }

@media print {
  .no-print { display: none !important; }
  body.page-cetak { background: #fff; }
  .page-cetak .wrap { padding: 0; max-width: none; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10mm; }
  .idcard { border: 1px solid #999; }
}

/* Item grid tidak boleh melebar melebihi kolomnya (tabel lebar di dalam card) */
.detail-grid > *, .editor-grid > *, .exam-main, .exam-side, .card, .login__card { min-width: 0; }
.table-wrap { max-width: 100%; }

/* --- Lihat sandi + petunjuk Caps Lock --- */
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 54px; }
.pw-toggle {
  position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border: 0; background: transparent; color: var(--muted); border-radius: 9px; cursor: pointer;
}
.pw-toggle:hover { background: var(--surface-2); color: var(--ink); }
.pw-toggle.is-on { color: var(--accent); background: var(--accent-soft); }
.pw-toggle .ico { width: 20px; height: 20px; }
.field__hint--warn {
  display: flex; gap: 6px; align-items: center; color: var(--warn);
  background: var(--warn-bg); border: 1px solid #F0D6A6; border-radius: 8px;
  padding: 7px 10px; font-size: 12.5px; font-weight: 600; margin-top: 8px;
}
.field__hint--warn .ico { width: 15px; height: 15px; }

/* --- Bank soal & paket ujian (revisi Nov 2026) --- */
.bank-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; margin-top: 20px; }
.bank-card { display: flex; flex-direction: column; gap: 6px; }
.bank-card__head { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; }
.bank-card__title { font-size: 17px; font-weight: 800; line-height: 1.3; letter-spacing: -.01em; }
.bank-card.is-arsip { background: var(--surface-2); border-style: dashed; }
.bank-card.is-arsip .bank-card__title { color: var(--muted); }
.exam-card.is-locked { background: var(--surface-2); }
.exam-card.is-locked .exam-card__title { color: var(--ink-soft); }
.no-print { }

/* --- Info aturan pengumpulan di bar atas ujian --- */
.timer-note {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; color: var(--muted);
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 10px; min-height: 32px;
}
.timer-note .ico { width: 14px; height: 14px; }
@media (max-width: 860px) {
  .timer-note { order: 5; flex-basis: 100%; justify-content: center; }
}

/* --- Aksi massal (hapus) --- */
.bulkbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 14px; margin-bottom: 12px;
  background: var(--bad-bg); border: 1px solid #F0C3C9; border-radius: var(--r-sm);
  color: var(--bad); font-size: 13.5px; font-weight: 600; flex-wrap: wrap;
}
.columns-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 4px 14px; }
.tbl-scroll-x { overflow-x: auto; }

/* --- Ekspor & template laporan --- */
.download-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 620px) { .download-grid { grid-template-columns: 1fr; } }
.tpl-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 980px) { .tpl-grid { grid-template-columns: 1fr; } }
.preview-frame {
  width: 100%; border: 1px solid var(--line); border-radius: var(--r-md);
  background: #eef1f6; min-height: 520px; height: 70vh;
}
.preview-paper {
  background: #fff; margin: 0 auto; padding: 34px 38px; color: #14213D;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif; box-shadow: 0 2px 12px rgba(20,33,61,.08);
}
.preview-paper .pp-kop { display: flex; gap: 14px; align-items: flex-start; }
.preview-paper .pp-kop--tengah { flex-direction: column; align-items: center; text-align: center; }
.preview-paper .pp-logo { max-height: 52px; max-width: 110px; object-fit: contain; }
.preview-paper .pp-lembaga { font-weight: 800; font-size: 15px; }
.preview-paper .pp-kecil { font-size: 10px; color: #4A5568; }
.preview-paper .pp-garis { border: 0; border-top: 2px solid currentColor; margin: 10px 0 14px; }
.preview-paper .pp-judul { text-align: center; font-weight: 800; font-size: 15px; }
.preview-paper .pp-sub { text-align: center; font-size: 10.5px; color: #4A5568; margin-bottom: 14px; }
.preview-paper table { width: 100%; border-collapse: collapse; font-size: 9.5px; }
.preview-paper th { color: #fff; padding: 6px 5px; text-align: left; font-weight: 700; }
.preview-paper td { padding: 5px; border-bottom: 1px solid #e2e8f0; }
.preview-paper .pp-ringkas { margin-top: 12px; font-size: 10px; }
.preview-paper .pp-ringkas div { display: flex; justify-content: space-between; padding: 2px 0; }
.preview-paper .pp-ttd { display: flex; gap: 20px; margin-top: 26px; font-size: 10px; }
.preview-paper .pp-ttd > div { flex: 1; text-align: center; }
.preview-paper .pp-ttd .pp-nama { font-weight: 700; margin-top: 42px; border-top: 1px solid #94a3b8; padding-top: 4px; }
.preview-paper .pp-foot { margin-top: 18px; border-top: 1px solid #e2e8f0; padding-top: 6px; display: flex; justify-content: space-between; font-size: 8.5px; color: #4A5568; }
.preview-paper .pp-watermark {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 64px; font-weight: 800; color: rgba(20,33,61,.07); transform: rotate(-30deg);
  pointer-events: none;
}
.pp-wrap { position: relative; overflow: hidden; }
.upload-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.upload-row img { max-height: 46px; max-width: 120px; object-fit: contain; border: 1px solid var(--line); border-radius: 6px; padding: 3px; background: #fff; }

/* --- Mode trial: kotak pembahasan terkunci --- */
.locked-box {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; border-radius: var(--r-md);
  background: var(--surface-2); border: 1px dashed var(--line);
}
.locked-box__ico {
  width: 38px; height: 38px; flex: 0 0 auto; border-radius: 10px;
  background: var(--warn-bg); color: var(--warn);
  display: inline-flex; align-items: center; justify-content: center;
}
.locked-box strong { font-size: 14px; }
.locked-box .btn { margin-top: 4px; }
.page-hasil .locked-box { margin-top: 12px; }
