/* Keep English — sistem visual
   Warna: biru brand #003FB1 (struktur), navy #0A2A6B (teks judul), oranye #F67703 (hanya aksi utama),
   kabut #EEF2FA (latar sekunder), garis #D8DFEC. Font: Plus Jakarta Sans; serif formal khusus dokumen. */
:root {
  --blue: #003fb1;
  --blue-700: #002f86;
  --navy: #0a2a6b;
  --mist: #eef2fa;
  --mist-2: #f6f8fc;
  --line: #d8dfec;
  --orange: #f67703;
  --orange-700: #d96500;
  --ink: #16233f;
  --muted: #56617a;
  --green: #11804a;
  --red: #c42d2d;
  --r-sm: 8px;
  --r: 12px;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink); background: #fff; line-height: 1.6; font-size: 16px;
  min-height: 100vh; display: flex; flex-direction: column; -webkit-font-smoothing: antialiased;
}
main { flex: 1; outline: none; }
a { color: var(--blue); text-underline-offset: 3px; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid rgba(246, 119, 3, .55); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 520px; }
h1, h2, h3 { color: var(--navy); letter-spacing: -0.02em; line-height: 1.2; }

/* Topbar */
.topbar {
  position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px; min-height: 64px;
}
.brand img { height: 38px; display: block; }
#nav { display: flex; gap: 8px; align-items: center; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: var(--r-sm); padding: 11px 20px; font: inherit; font-weight: 700; font-size: 15px;
  cursor: pointer; text-decoration: none; transition: background .15s ease, border-color .15s ease, color .15s ease; white-space: nowrap;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-700); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-700); }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--mist) 0%, #fff 100%); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; padding-top: 64px; padding-bottom: 72px; }
.hero h1 { font-size: clamp(32px, 3.9vw, 48px); font-weight: 800; margin: 0 0 20px; max-width: 16ch; }
.hero .lead { font-size: 18px; color: var(--muted); margin: 0 0 32px; max-width: 52ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--muted); }
.hero-doc { position: relative; width: 100%; max-width: 600px; justify-self: end; }
.hero-doc .report { box-shadow: 0 30px 60px -20px rgba(10, 42, 107, .35), 0 0 0 1px var(--line); }

/* Content sections */
.block { padding: 80px 0; }
.block + .block { border-top: 1px solid var(--line); }
.block h2 { font-size: clamp(26px, 3vw, 34px); margin: 0 0 12px; font-weight: 800; }
.block .intro { color: var(--muted); margin: 0 0 36px; max-width: 60ch; font-size: 17px; }
.format-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.format-table th { text-align: left; font-weight: 700; color: var(--muted); font-size: 14px; padding: 12px 16px; border-bottom: 2px solid var(--navy); }
.format-table td { padding: 18px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.format-table td:first-child { font-weight: 700; color: var(--navy); width: 26%; }
.format-table td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.format-table tfoot td { font-weight: 800; color: var(--navy); border-bottom: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: 14px 0 14px 34px; border-bottom: 1px solid var(--line); position: relative; }
.checklist li::before { content: ""; position: absolute; left: 4px; top: 21px; width: 14px; height: 8px; border-left: 2.5px solid var(--blue); border-bottom: 2.5px solid var(--blue); transform: rotate(-45deg); }
.checklist b { color: var(--navy); }
.verify-box { background: var(--mist); border-radius: var(--r); padding: 28px; }
.verify-box h3 { margin: 0 0 8px; }
.verify-box p { color: var(--muted); margin: 0 0 18px; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 2px solid var(--navy); }
.steps li { counter-increment: s; padding: 22px 24px 0 0; }
.steps li::before { content: counter(s); display: block; font-weight: 800; color: var(--orange); font-size: 15px; margin-bottom: 10px; }
.steps b { display: block; color: var(--navy); margin-bottom: 6px; font-size: 17px; }
.steps span { color: var(--muted); font-size: 15px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { font-weight: 700; cursor: pointer; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 22px; line-height: 1; color: var(--blue); }
.faq details[open] summary::after { content: "–"; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { color: var(--muted); margin: 10px 0 0; max-width: 70ch; }
.cta-band { background: var(--navy); color: #fff; border-radius: var(--r); padding: 40px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { margin: 0; opacity: .8; }

/* ===== Sertifikat skor (dokumen landscape) ===== */
.report-frame { container-type: inline-size; width: 100%; }
.report {
  background: #fff; aspect-ratio: 297 / 210; width: 100%; position: relative; overflow: hidden;
  border-top: 1.2cqi solid var(--blue); border-bottom: .8cqi solid var(--blue);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif; color: var(--ink);
  padding: 3.4cqi 5cqi 3cqi; display: flex; flex-direction: column;
}
.report::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: .35cqi; background: var(--orange); }
.r-head { display: flex; justify-content: space-between; align-items: center; gap: 3cqi; padding-bottom: 2.2cqi; border-bottom: .17cqi solid var(--navy); }
.r-head img { width: 16cqi; }
.r-title { text-align: right; }
.r-title b { display: block; font-family: var(--serif); font-size: 2.9cqi; color: var(--navy); line-height: 1.2; font-weight: 700; white-space: nowrap; }
.r-title span { font-size: 1.5cqi; color: var(--muted); }
.r-body { display: grid; grid-template-columns: 1.1fr .9fr; gap: 4cqi; margin-top: 3cqi; align-items: start; }
.r-lead { margin: 0; font-size: 1.5cqi; color: var(--muted); line-height: 1.5; }
.r-name { font-family: var(--serif); font-size: 3.6cqi; font-weight: 700; color: var(--navy); line-height: 1.2; margin: .8cqi 0 1.2cqi; }
.r-info { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6cqi 3cqi; font-size: 1.5cqi; margin-top: 2.6cqi; }
.r-info div span { display: block; color: var(--muted); font-size: 1.3cqi; }
.r-info div b { color: var(--ink); font-weight: 700; }
.r-table { width: 100%; border-collapse: collapse; font-size: 1.5cqi; }
.r-table th { text-align: left; font-weight: 700; color: var(--muted); font-size: 1.3cqi; padding: 1cqi 1.3cqi; background: var(--mist); }
.r-table th:last-child, .r-table td.s { text-align: right; }
.r-table td { padding: 1.55cqi 1.3cqi; border-bottom: .1cqi solid var(--line); }
.r-table td.s { font-weight: 800; font-size: 2.2cqi; color: var(--navy); font-variant-numeric: tabular-nums; }
.r-table tfoot td { background: var(--navy); color: #fff; border: 0; font-weight: 700; font-size: 1.75cqi; padding: 1.6cqi 1.3cqi; }
.r-table tfoot td.s { color: #fff; font-size: 3.2cqi; }
.r-foot { margin-top: auto; display: flex; gap: 2.6cqi; align-items: center; padding-top: 2.2cqi; border-top: .1cqi solid var(--line); }
.r-foot img { width: 10.5cqi; flex: 0 0 auto; }
.r-foot b { display: block; font-size: 1.5cqi; color: var(--navy); }
.r-foot p { margin: .3cqi 0 0; font-size: 1.25cqi; color: var(--muted); line-height: 1.5; max-width: 110ch; }
.r-foot .legal { font-size: 1.1cqi; margin-top: .7cqi; }
.r-sample { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; font-weight: 800; font-size: 13cqi; letter-spacing: .12em; color: var(--blue); opacity: .055; transform: rotate(-18deg); }

/* Forms */
.page { padding: 48px 0 72px; }
.form-card { background: #fff; border-radius: var(--r); padding: 36px; border: 1px solid var(--line); margin: 0 auto; box-shadow: 0 1px 2px rgba(10,42,107,.04); }
.form-card h1 { font-size: 26px; margin: 0 0 6px; font-weight: 800; }
.form-card .sub { color: var(--muted); margin: 0 0 24px; }
label { display: block; font-weight: 700; margin: 18px 0 6px; font-size: 15px; color: var(--navy); }
.hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
input, select { width: 100%; padding: 12px 14px; border: 1px solid #c3cde0; border-radius: var(--r-sm); font: inherit; background: #fff; color: var(--ink); }
input:focus, select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,63,177,.15); }
.otp { letter-spacing: 10px; font-size: 26px; text-align: center; font-weight: 800; }
.form-actions { margin-top: 24px; display: flex; gap: 10px; flex-wrap: wrap; }
.alert { padding: 12px 14px; border-radius: var(--r-sm); margin-top: 16px; font-weight: 600; font-size: 15px; }
.alert-err { background: #fbeaea; color: var(--red); }
.alert-ok { background: #e5f4ec; color: var(--green); }
.alert-info { background: var(--mist); color: var(--navy); }
.pill { display: inline-block; padding: 3px 10px; border-radius: 6px; font-weight: 700; font-size: 13px; }
.pill-orange { background: #fff0e2; color: var(--orange-700); }
.pill-blue { background: var(--mist); color: var(--blue); }
.pill-green { background: #e5f4ec; color: var(--green); }

/* Dashboard */
.dash-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.dash-head h1 { margin: 2px 0 0; font-size: 28px; font-weight: 800; }
.dash-grid { display: grid; grid-template-columns: 1.4fr .6fr; gap: 24px; }
.test-card { background: var(--navy); color: #fff; border-radius: var(--r); padding: 32px; }
.test-card h2 { color: #fff; margin: 10px 0 4px; font-size: 24px; }
.test-card table { width: 100%; border-collapse: collapse; margin: 18px 0 24px; font-size: 15px; }
.test-card td { padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.15); }
.test-card td:last-child { text-align: right; opacity: .85; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.card h3 { margin: 0 0 8px; font-size: 18px; font-weight: 800; }
.card p { margin: 0; color: var(--muted); }
table.list { width: 100%; border-collapse: collapse; }
table.list th, table.list td { text-align: left; padding: 11px 8px; border-bottom: 1px solid var(--line); font-size: 15px; }
table.list th { color: var(--muted); font-size: 13px; font-weight: 700; }
.empty { color: var(--muted); padding: 18px 0; }

/* Exam */
.exam-bar { position: sticky; top: 64px; z-index: 15; background: var(--navy); color: #fff; }
.exam-bar .wrap { display: flex; justify-content: space-between; align-items: center; padding-top: 10px; padding-bottom: 10px; gap: 12px; flex-wrap: wrap; }
.exam-title { font-weight: 700; }
.timer { font-variant-numeric: tabular-nums; font-weight: 800; font-size: 20px; background: rgba(255,255,255,.12); padding: 4px 14px; border-radius: var(--r-sm); }
.timer.warn { background: var(--orange); }
.progress { height: 4px; background: rgba(255,255,255,.15); }
.progress > div { height: 100%; background: var(--orange); transition: width .3s; }
.intro-card { max-width: 720px; margin: 48px auto; }
.intro-card ul { color: var(--muted); padding-left: 20px; }
.intro-card li { margin-bottom: 8px; }
.q-layout { display: grid; grid-template-columns: 1fr 260px; gap: 24px; margin-top: 28px; padding-bottom: 48px; }
.q-layout.reading { grid-template-columns: 1.25fr 1fr 210px; }
.passage { background: #fff; border-radius: var(--r); border: 1px solid var(--line); padding: 26px; max-height: 72vh; overflow: auto; font-family: var(--serif); font-size: 17px; line-height: 1.7; }
.passage h3 { margin-top: 0; font-family: "Plus Jakarta Sans", sans-serif; }
.passage p { margin: 0 0 14px; text-indent: 1.5em; }
.q-card { background: #fff; border-radius: var(--r); border: 1px solid var(--line); padding: 28px; }
.q-num { color: var(--blue); font-weight: 700; font-size: 14px; }
.q-stem { font-size: 19px; font-weight: 600; margin: 10px 0 8px; color: var(--navy); line-height: 1.55; }
.q-ask { color: var(--muted); margin: 0 0 18px; }
.we u { text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: var(--blue); }
.we sub { color: var(--blue); font-weight: 800; font-size: 12px; margin-left: 1px; }
.opts { display: grid; gap: 10px; }
.opt { display: flex; gap: 12px; align-items: center; text-align: left; width: 100%; background: #fff; border: 1px solid #c3cde0; border-radius: var(--r-sm); padding: 12px 14px; font: inherit; cursor: pointer; color: var(--ink); }
.opt:hover { border-color: var(--blue); }
.opt .l { flex: 0 0 30px; height: 30px; border-radius: 6px; display: grid; place-items: center; background: var(--mist); color: var(--blue); font-weight: 800; font-size: 14px; }
.opt.sel { border-color: var(--blue); background: #f2f6ff; box-shadow: inset 0 0 0 1px var(--blue); }
.opt.sel .l { background: var(--blue); color: #fff; }
.q-nav { display: flex; justify-content: space-between; margin-top: 22px; gap: 10px; }
.grid-nav { background: #fff; border-radius: var(--r); border: 1px solid var(--line); padding: 18px; align-self: start; position: sticky; top: 140px; }
.grid-nav h4 { margin: 0 0 12px; color: var(--navy); }
.nums { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.nums button { border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 6px 0; font: inherit; font-weight: 700; font-size: 13px; cursor: pointer; color: var(--ink); }
.nums button.done { background: var(--blue); border-color: var(--blue); color: #fff; }
.nums button.cur { box-shadow: 0 0 0 2px var(--orange); }
.legend { font-size: 12px; color: var(--muted); margin-top: 12px; }
.lc-list { display: grid; gap: 10px; padding-bottom: 8px; }
.lc-item { background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px; }
.lc-item .head { font-weight: 800; margin-bottom: 8px; color: var(--navy); font-size: 14px; }
.lc-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lc-opts .opt { padding: 8px 10px; font-size: 15px; }
.lc-opts .opt .l { flex-basis: 26px; height: 26px; font-size: 13px; }
.part-head { margin: 26px 0 10px; font-weight: 800; color: var(--navy); font-size: 17px; }
.audio-box { background: var(--mist); border-radius: var(--r); padding: 16px 18px; display: flex; gap: 14px; align-items: center; margin-top: 24px; }
.audio-box .bar { flex: 1; height: 8px; border-radius: 999px; background: #fff; overflow: hidden; }
.audio-box .bar div { height: 100%; background: var(--blue); width: 0; }
.audio-time { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--muted); }

/* Result */
.result-hero { background: #fff; border-radius: var(--r); padding: 36px; text-align: center; border: 1px solid var(--line); }
.result-hero .label { color: var(--muted); font-weight: 700; }
.big-score { font-size: 76px; font-weight: 800; color: var(--navy); line-height: 1; margin: 10px 0 14px; letter-spacing: -0.03em; }
.score-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.score-box { background: var(--mist-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 18px; }
.score-box b { display: block; font-size: 30px; color: var(--navy); }
.score-box span { color: var(--muted); font-size: 14px; }
.bar-row { display: grid; grid-template-columns: 230px 1fr 60px; gap: 14px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.bar-bg { height: 8px; background: var(--mist); border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; }
.cert-page { display: grid; grid-template-columns: 1fr; gap: 28px; max-width: 980px; margin: 0 auto; }
.cert-page .report { box-shadow: 0 24px 50px -24px rgba(10,42,107,.35), 0 0 0 1px var(--line); }
.cert-side h1 { font-size: 26px; margin: 0 0 8px; }
.cert-side p { color: var(--muted); }
.cert-side { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cert-side .form-actions { margin-top: 0; }
.cert-side > p.small { flex-basis: 100%; margin: 0; }
.cert-side p { margin: 0; }

.center { text-align: center; }
.mt { margin-top: 24px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* Footer, toast, loading */
.footer { background: var(--navy); color: #c7d2ea; padding: 36px 0; margin-top: auto; }
.footer-logo { height: 32px; background: #fff; padding: 6px 10px; border-radius: var(--r-sm); }
.footer .disclaimer { font-size: 14px; max-width: 760px; }
.footer a { color: #fff; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(120px); background: var(--navy); color: #fff; padding: 12px 20px; border-radius: var(--r-sm); font-weight: 600; transition: transform .25s, visibility .25s; z-index: 50; max-width: 90vw; visibility: hidden; }
.toast.show { transform: translateX(-50%) translateY(0); visibility: visible; }
.loading { display: grid; place-items: center; padding: 120px 0; }
.spinner { width: 38px; height: 38px; border-radius: 50%; border: 4px solid var(--mist); border-top-color: var(--blue); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
body.exam-mode .footer { display: none; }

@media (max-width: 960px) {
  .hero-grid, .dash-grid, .q-layout, .q-layout.reading, .split, .cert-page { grid-template-columns: 1fr; }
  .hero-grid { gap: 40px; padding-top: 40px; }
  .hero-doc { max-width: 640px; justify-self: center; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 24px; }
  .grid-nav { position: static; }
  .passage { max-height: 45vh; }
  .bar-row { grid-template-columns: 1fr 1fr 50px; }
  .format-table thead { display: none; }
  .format-table, .format-table tbody, .format-table tr, .format-table td { display: block; width: 100% !important; }
  .format-table tr { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .format-table td { border: 0; padding: 2px 0; }
  .format-table td[data-l]::before { content: attr(data-l) ": "; color: var(--muted); }
  .format-table tfoot { display: none; }
}
@media (max-width: 560px) {
  .steps, .score-row, .lc-opts { grid-template-columns: 1fr; }
  .brand img { height: 30px; }
  .topbar { padding: 10px 16px; }
  #nav .btn-ghost.hide-sm { display: none; }
  .form-card { padding: 24px; }
  .block { padding: 56px 0; }
  .cta-band { padding: 28px; }
  .exam-bar { top: 56px; }
}
@media print {
  .topbar, .footer, .no-print { display: none !important; }
  body { background: #fff; }
}
.card h3.mt { margin-top: 24px; }

/* ===== Mode ujian: layar penuh, tanpa scroll halaman ===== */
body.exam-mode { height: 100vh; height: 100dvh; overflow: hidden; }
body.exam-mode .topbar { display: none; }
body.exam-mode #app { flex: 1; min-height: 0; display: flex; flex-direction: column; user-select: none; -webkit-user-select: none; }
body.exam-mode .exam-bar { position: static; }
.exam-body { flex: 1; min-height: 0; overflow: auto; }
.exam-body .grid-nav { top: 20px; }
.exam-body .q-layout { margin-top: 24px; }
@media (min-width: 961px) {
  .exam-body.reading-mode { overflow: hidden; }
  .exam-body.reading-mode > .wrap { height: 100%; display: flex; }
  .exam-body.reading-mode .q-layout { flex: 1; min-height: 0; margin: 0; padding: 20px 0; align-items: stretch; }
  .exam-body.reading-mode .passage,
  .exam-body.reading-mode .q-card,
  .exam-body.reading-mode .grid-nav { height: 100%; max-height: none; overflow: auto; position: static; }
}
.wm { position: fixed; inset: 0; z-index: 30; pointer-events: none; background-repeat: repeat; }
.shield { position: fixed; inset: 0; z-index: 60; background: rgba(238, 242, 250, .7); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); display: grid; place-items: center; padding: 20px; }
.shield[hidden] { display: none; }
.shield-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 28px; max-width: 380px; text-align: center; }
.shield-card b { font-size: 18px; color: var(--navy); }
.shield-card p { color: var(--muted); margin: 8px 0 18px; }
@media print { body.exam-mode #app, body.exam-mode .wm { display: none !important; } }

.btn-google { width: 100%; background: #fff; color: var(--ink); border-color: #c3cde0; padding: 12px 18px; gap: 10px; }
.btn-google:hover { border-color: var(--blue); }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 22px 0 4px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Persiapan tes */
.check-box { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 18px 20px; margin: 18px 0; background: var(--mist-2); }
.check-box > b { color: var(--navy); }
.check-box p { margin: 6px 0 12px; color: var(--muted); }
.name-preview { font-family: var(--serif); font-size: 24px; font-weight: 700; color: var(--navy) !important; margin: 8px 0 4px !important; }
label.check { display: flex; gap: 10px; align-items: center; font-weight: 600; margin: 8px 0 0; cursor: pointer; }
label.check input { width: 20px; height: 20px; accent-color: var(--blue); }
/* CTA kelas */
.cta-kelas { background: var(--navy); color: #fff; border-radius: var(--r); padding: 28px 32px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-kelas h3 { color: #fff; margin: 0 0 6px; font-size: 22px; }
.cta-kelas p { margin: 0; opacity: .85; max-width: 60ch; }
.cta-kelas.soft { background: var(--mist); color: var(--ink); }
.cta-kelas.soft h3 { color: var(--navy); }
/* Admin */
.stat-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.stat b { display: block; font-size: 30px; color: var(--navy); }
.stat span { color: var(--muted); font-size: 14px; }
.mini-chart { display: flex; gap: 6px; align-items: flex-end; height: 140px; padding-top: 10px; }
.mini-chart div { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; }
.mini-chart i { display: block; width: 100%; background: var(--blue); border-radius: 4px 4px 0 0; min-height: 2px; }
.mini-chart span { font-size: 12px; color: var(--muted); }
.admin-bar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.admin-search { display: flex; gap: 8px; flex: 1; max-width: 520px; }
.admin-search input { padding: 8px 12px; }
.table-scroll { overflow-x: auto; }
/* Legal */
.legal { max-width: 760px; }
.legal h1 { font-size: 34px; margin: 0 0 6px; }
.legal h2 { font-size: 20px; margin: 32px 0 8px; }
.legal p, .legal li { color: var(--ink); line-height: 1.75; }
.legal li { margin-bottom: 6px; }
@media (max-width: 960px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Latihan kosakata (prefix v-) ---------- */
.v-wrap { max-width: 860px; }
.v-wrap.page { padding: 40px 24px 72px; }
.v-wrap h1 { font-size: 30px; color: var(--navy); letter-spacing: -.025em; line-height: 1.15; margin: 0 0 6px; }
.v-wrap h2 { font-size: 22px; color: var(--navy); letter-spacing: -.02em; margin: 0 0 4px; }
.v-lead { color: var(--muted); margin: 0 0 22px; max-width: 62ch; }
.v-note { font-size: 14px; color: var(--muted); }
.v-mt { margin-top: 28px; }
.v-units { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.v-unit { text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; color: var(--ink); }
a.v-unit:hover { border-color: var(--blue); box-shadow: 0 0 0 3px var(--mist); }
.v-unit.off { opacity: .55; background: var(--mist-2); }
.v-unit .un { font-size: 13px; font-weight: 700; color: var(--blue); }
.v-unit .ut { font-size: 19px; font-weight: 800; color: var(--navy); letter-spacing: -.01em; }
.v-unit .uw { font-size: 14px; color: var(--muted); margin: 4px 0 8px; }
.v-unit .us { font-size: 13px; font-weight: 600; color: var(--muted); }
.v-unit .us.ok { color: var(--green); }
.v-subnav { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 64px; z-index: 15; }
.v-subnav-in { max-width: 860px; display: flex; align-items: center; gap: 14px; padding-top: 10px; padding-bottom: 10px; }
.v-back { font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none; white-space: nowrap; }
.v-back:hover { color: var(--blue); }
.v-steps { display: flex; gap: 4px; flex: 1; justify-content: flex-end; flex-wrap: wrap; }
.v-steps button { font: inherit; font-size: 13px; font-weight: 600; border: 1px solid var(--line); background: #fff; color: var(--muted); padding: 6px 11px; border-radius: 999px; cursor: pointer; }
.v-steps button[aria-current="step"] { background: var(--blue); color: #fff; border-color: var(--blue); }
.v-steps button.done { color: var(--green); border-color: #bfe3cd; }
.v-steps button.done[aria-current="step"] { color: #fff; }
.v-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 22px; }
.v-chips span { background: var(--mist); color: var(--blue-700); font-weight: 700; font-size: 14px; padding: 5px 12px; border-radius: 8px; }
.v-panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.v-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.v-w { font-family: var(--serif); font-size: 44px; font-weight: 600; color: var(--navy); line-height: 1.05; }
.v-pron { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-top: 6px; }
.v-cls { color: var(--muted); font-style: italic; font-family: var(--serif); font-size: 18px; }
.v-ipa { white-space: nowrap; font-family: "Charis SIL", "Doulos SIL", "Segoe UI", "Noto Sans", sans-serif; font-size: 19px; color: var(--blue-700); }
.v-ipa b, .v-legend b { color: var(--orange-700); font-weight: 800; }
.v-dl { display: grid; grid-template-columns: 120px 1fr; gap: 10px 16px; margin: 18px 0 0; }
.v-dl dt { color: var(--muted); font-size: 14px; font-weight: 600; padding-top: 2px; }
.v-dl dd { margin: 0; }
.v-ex { font-family: var(--serif); font-size: 18px; }
.v-fam { display: flex; flex-wrap: wrap; gap: 6px; }
.v-fam button { font: inherit; font-size: 14px; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 3px 10px; cursor: pointer; color: var(--blue-700); font-weight: 600; }
.v-fam button:hover { background: var(--mist); border-color: var(--blue); }
.v-fam button[aria-expanded="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.v-fam small { font-weight: 500; opacity: .75; }
.v-sub { margin-top: 14px; border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 10px; background: var(--mist-2); padding: 16px 18px; animation: v-in .18s ease-out; }
@keyframes v-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.v-sw { font-family: var(--serif); font-size: 28px; font-weight: 600; color: var(--navy); line-height: 1.1; }
.v-subact { display: flex; gap: 4px; align-items: center; }
.v-x { font: inherit; font-size: 13px; font-weight: 700; background: none; border: 0; color: var(--muted); cursor: pointer; padding: 6px; }
.v-tag { display: inline-block; font-size: 12px; font-weight: 700; color: var(--muted); background: var(--mist); border-radius: 6px; padding: 2px 8px; margin-bottom: 8px; }
.v-legend { font-size: 13px; color: var(--muted); margin: 16px 0 0; border-top: 1px dashed var(--line); padding-top: 10px; }
.v-cardnav { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; gap: 12px; }
.v-dots { display: flex; gap: 6px; }
.v-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.v-dots i.on { background: var(--blue); }
.v-play { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 700; font-size: 14px; color: var(--blue); background: var(--mist); border: 0; border-radius: 999px; padding: 8px 14px; cursor: pointer; }
.v-play svg { width: 16px; height: 16px; }
.v-q { border-top: 1px solid var(--line); padding: 20px 0; }
.v-panel > .v-q:first-child, .v-panel > .v-tag + .v-q { border-top: 0; padding-top: 4px; }
.v-qn { font-weight: 700; color: var(--blue); margin-right: 6px; }
.v-qt { margin: 0 0 12px; }
.v-opts { display: grid; gap: 8px; }
.v-opt { font: inherit; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; cursor: pointer; display: flex; gap: 10px; align-items: flex-start; color: var(--ink); }
.v-opt:hover:not(:disabled) { border-color: var(--blue); background: var(--mist-2); }
.v-opt b.l { color: var(--muted); min-width: 18px; }
.v-opt:disabled { cursor: default; }
.v-opt.ok, .v-err.ok { border-color: var(--green); background: #e7f5ed; }
.v-opt.no, .v-err.no { border-color: var(--red); background: #fbeaea; }
.v-fb { margin-top: 10px; font-size: 15px; padding: 10px 14px; border-radius: 10px; background: var(--mist); }
.v-fb .v { font-weight: 700; }
.v-fb .v.ok { color: var(--green); } .v-fb .v.no { color: var(--red); }
.v-script { margin-top: 8px; font-size: 14px; color: var(--muted); }
.v-script p { margin: 2px 0; }
.v-talk { margin-top: 24px; padding-top: 20px; border-top: 2px solid var(--line); }
.v-sent { font-family: var(--serif); font-size: 19px; line-height: 1.7; }
.v-err { display: inline; font: inherit; background: none; border: 0; border-bottom: 2px solid var(--blue); padding: 0 2px; cursor: pointer; color: var(--ink); }
.v-err sub { font-family: "Plus Jakarta Sans", sans-serif; font-size: 11px; font-weight: 700; color: var(--blue); margin-left: 1px; }
.v-err:disabled { cursor: default; }
.v-passage { font-family: var(--serif); font-size: 18px; line-height: 1.75; background: var(--mist-2); border: 1px solid var(--line); border-radius: 12px; padding: 20px 24px; margin-bottom: 8px; }
.v-passage h3 { font-family: "Plus Jakarta Sans", sans-serif; font-size: 17px; margin: 0 0 10px; color: var(--navy); }
.v-passage p { margin: 0 0 12px; text-indent: 1.5em; }
.v-passage mark { background: none; color: inherit; border-bottom: 2px solid rgba(246,119,3,.6); }
.v-passage mark.old { border-bottom-color: rgba(0,63,177,.55); }
.v-passage .pn { font-family: "Plus Jakarta Sans", sans-serif; font-size: 12px; color: var(--muted); font-weight: 700; margin-left: -1.5em; margin-right: .5em; }
.v-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; gap: 12px; flex-wrap: wrap; }
.v-score { font-weight: 700; color: var(--navy); }
.v-big { font-size: 56px; font-weight: 800; color: var(--blue); letter-spacing: -.03em; line-height: 1; }
.v-big span { font-size: 24px; color: var(--muted); }
.v-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 20px 0; }
.v-summary div { background: var(--mist-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.v-summary b { display: block; font-size: 26px; color: var(--navy); }
.v-summary span { font-size: 13px; color: var(--muted); }
.v-next { border-left: 3px solid var(--orange); padding: 4px 0 4px 14px; margin-top: 20px; }
.v-seg { border-radius: 4px; transition: background .15s; }
.v-seg.on { background: rgba(246,119,3,.13); box-shadow: 0 0 0 3px rgba(246,119,3,.13); }
.v-wd { border-radius: 3px; transition: background .08s, color .08s; }
.v-seg.on .v-wd.on { background: rgba(246,119,3,.38); color: var(--navy); }
.v-script .v-seg.on { color: var(--ink); }
@media (max-width: 640px) {
  .v-units { grid-template-columns: 1fr; }
  .v-subnav-in { flex-direction: column; align-items: flex-start; gap: 8px; }
  .v-steps { justify-content: flex-start; }
  .v-wrap h1 { font-size: 25px; }
  .v-w { font-size: 36px; }
  .v-dl { grid-template-columns: 1fr; gap: 2px; } .v-dl dd { margin-bottom: 10px; }
  .v-summary { grid-template-columns: repeat(2, 1fr); }
  .v-panel { padding: 18px; } .v-passage { padding: 16px 18px; }
  .v-dots { display: none; } .v-cardnav .btn { padding: 10px 12px; font-size: 14px; }
  .v-subnav { position: static; }
  .v-wrap.page { padding: 28px 16px 56px; }
  .v-subnav-in { padding-left: 16px; padding-right: 16px; }
}
