/* LewatSKD (semula Bank Soal). Arah desain: gaya Swiss yang lugas (grid rata kiri, garis
   tipis, angka besar), teal untuk tindakan, amber hanya untuk tanda
   ragu-ragu dan waktu yang menipis. Tanpa bayangan dan tanpa gradien. */
@font-face { font-family: "Outfit"; src: url("fonts/outfit-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Work Sans"; src: url("fonts/work-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #f5f8f7;
  --surface: #ffffff;
  --ink: #0f2a28;
  --muted: #50646a;
  --line: #d3dedc;
  --line-strong: #9fb4b1;
  --primary: #0f766e;
  --primary-ink: #ffffff;
  --primary-soft: #dcefec;
  --flag: #d97706;
  --flag-ink: #1c1203;
  --flag-soft: #fdeed3;
  --ok: #166534;
  --ok-soft: #dff2e3;
  --no: #b3261e;
  --no-soft: #fbe4e1;
  --display: "Outfit", "Segoe UI", system-ui, sans-serif;
  --body: "Work Sans", "Segoe UI", system-ui, sans-serif;
  --r: 6px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c1716; --surface: #13211f; --ink: #e6f0ee; --muted: #9db2af; --line: #263937; --line-strong: #47605c;
    --primary: #2dd4bf; --primary-ink: #06201d; --primary-soft: #143430;
    --flag: #f59e0b; --flag-ink: #1c1203; --flag-soft: #3a2a0c;
    --ok: #6ee7a0; --ok-soft: #133022; --no: #ff8a80; --no-soft: #3a1917;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c1716; --surface: #13211f; --ink: #e6f0ee; --muted: #9db2af; --line: #263937; --line-strong: #47605c;
  --primary: #2dd4bf; --primary-ink: #06201d; --primary-soft: #143430;
  --flag: #f59e0b; --flag-ink: #1c1203; --flag-soft: #3a2a0c;
  --ok: #6ee7a0; --ok-soft: #133022; --no: #ff8a80; --no-soft: #3a1917;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--body); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.15; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: clamp(28px, 4.4vw, 44px); }
h2 { font-size: 22px; }
h3 { font-size: 16px; }
p { margin: 0; }
a { color: var(--primary); text-underline-offset: 3px; }
small { font-size: 13px; color: var(--muted); }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 3px; }
.num, .timer, .facts dd, .big, .frac, .cell, .count { font-variant-numeric: tabular-nums; }

/* ----- kerangka ----- */
.top { display: flex; align-items: center; gap: 24px; padding: 14px clamp(16px, 4vw, 40px); border-bottom: 1px solid var(--line); background: var(--surface); }
.brand { font: 700 20px/1 var(--display); color: var(--ink); text-decoration: none; display: flex; flex-direction: column; gap: 4px; }
.brand span { font: 500 12px/1 var(--body); color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 10px 14px; border-radius: var(--r); color: var(--muted); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--ink); background: var(--bg); }
.nav a[aria-current] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--primary); border-radius: 0; }
.page { max-width: 1080px; margin: 0 auto; padding: clamp(24px, 5vw, 56px) clamp(16px, 4vw, 40px) 48px; display: flex; flex-direction: column; gap: 40px; }
.footmain { display: flex; flex-direction: column; gap: 10px; max-width: 62ch; }
.footmain strong { color: var(--ink); }
.footnav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footnav a { color: var(--muted); }
.footside { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.foot { max-width: 1080px; margin: 0 auto; padding: 24px clamp(16px, 4vw, 40px) 40px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; color: var(--muted); font-size: 14px; }
.eyebrow { font: 600 12px/1.3 var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.fine, .hint, .note { font-size: 14px; color: var(--muted); max-width: 70ch; }
.note { border-left: 3px solid var(--line-strong); padding-left: 12px; }
.empty { color: var(--muted); max-width: 60ch; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.scroll { overflow-x: auto; }
.block { display: flex; flex-direction: column; gap: 16px; }
.head { display: flex; flex-direction: column; gap: 10px; }
.head p:not(.eyebrow) { color: var(--muted); max-width: 62ch; }

/* ----- tombol ----- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border: 1px solid var(--primary); border-radius: var(--r); background: var(--primary); color: var(--primary-ink); font: 600 15px/1.2 var(--body); text-decoration: none; cursor: pointer; transition: filter 0.15s, background-color 0.15s; }
.btn:hover { filter: brightness(1.08); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; filter: none; }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-quiet:hover { background: var(--primary-soft); filter: none; }
.btn-small { min-height: 36px; padding: 6px 12px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-flag { background: transparent; color: var(--ink); border-color: var(--flag); }
.btn-flag.is-on { background: var(--flag); color: var(--flag-ink); }
.ghost, .link { background: none; border: 0; padding: 8px 10px; color: var(--muted); font: 500 14px/1.2 var(--body); cursor: pointer; border-radius: var(--r); }
.ghost:hover, .link:hover { color: var(--ink); }
.link { text-decoration: underline; text-underline-offset: 3px; padding: 0; }

/* ----- beranda dan kartu ujian ----- */
.hero { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.hero p { font-size: 18px; color: var(--muted); max-width: 58ch; }
.exams { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px 48px; }
.exam { display: flex; flex-direction: column; gap: 14px; padding-top: 18px; border-top: 3px solid var(--ink); }
.exam h2 { font-size: 30px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 32px; margin: 0; }
.facts dt { font-size: 13px; color: var(--muted); }
.facts dd { margin: 0; font: 600 26px/1.2 var(--display); }
.parts, .rule { color: var(--muted); }
.banner { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; padding: 14px 18px; background: var(--flag-soft); border-left: 4px solid var(--flag); border-radius: var(--r); }

/* ----- tabel ----- */
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { text-align: left; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table thead th { font: 600 12px/1.3 var(--body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); border-bottom-color: var(--line-strong); }
.table tbody th { font-weight: 600; }
.table .num { text-align: right; white-space: nowrap; }
.table .acts { text-align: right; white-space: nowrap; }
.table .acts .btn + .btn { margin-left: 6px; }
.table-tight th, .table-tight td { padding-top: 7px; padding-bottom: 7px; }
.topics { display: block; font-weight: 400; margin-top: 2px; max-width: 46ch; }
.meter { display: inline-block; width: 96px; height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; vertical-align: middle; }
.meter span { display: block; height: 100%; background: var(--primary); }
.frac { margin-left: 10px; color: var(--muted); font-size: 14px; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font: 600 13px/1.4 var(--body); white-space: nowrap; }
.pill-ok { background: var(--ok-soft); color: var(--ok); }
.pill-no { background: var(--no-soft); color: var(--no); }
.pill-mid { background: var(--flag-soft); color: var(--ink); }
.pill-dim { background: var(--line); color: var(--muted); }

/* ----- soal ----- */
.runhead { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: baseline; }
.count { color: var(--muted); }
.question { display: grid; gap: 28px; }
.passage { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; max-width: 70ch; }
.passage h2 { font-size: 18px; }
.stem { display: flex; flex-direction: column; gap: 18px; max-width: 70ch; }
.qtext { font-size: 18px; line-height: 1.6; }
.opts { display: flex; flex-direction: column; gap: 8px; }
.opt { display: flex; align-items: flex-start; gap: 14px; width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--surface); color: var(--ink); font: 400 16px/1.5 var(--body); text-align: left; cursor: pointer; transition: border-color 0.15s, background-color 0.15s; }
.opt:hover:not(:disabled) { border-color: var(--primary); }
.opt:disabled { cursor: default; }
.letter { flex: none; width: 26px; height: 26px; border: 1px solid var(--line-strong); border-radius: 4px; display: grid; place-items: center; font: 600 13px/1 var(--display); color: var(--muted); }
.otext { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.opt.is-chosen { border-color: var(--primary); background: var(--primary-soft); box-shadow: inset 3px 0 0 var(--primary); }
.opt.is-chosen .letter { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.opt.is-right { border-color: var(--ok); background: var(--ok-soft); box-shadow: inset 3px 0 0 var(--ok); }
.opt.is-wrong { border-color: var(--no); background: var(--no-soft); box-shadow: inset 3px 0 0 var(--no); }
.mark { flex: none; font: 600 13px/26px var(--body); white-space: nowrap; }
.is-right .mark { color: var(--ok); }
.is-wrong .mark { color: var(--no); }
.mark-dim { color: var(--muted); font-weight: 500; }
/* soal figural */
.fig { display: block; width: 64px; height: 64px; color: var(--ink); }
.fig .fs { fill: none; stroke: currentColor; stroke-width: 5; stroke-linejoin: round; stroke-linecap: round; }
.fig .ff { fill: currentColor; stroke: currentColor; stroke-width: 5; stroke-linejoin: round; }
.fig .fthin { stroke-width: 2.5; }
.fig .fq { font: 600 56px var(--display); fill: var(--muted); }
.figrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.figbox { display: grid; place-items: center; width: 88px; height: 88px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--surface); }
.figbox:last-child { border-style: dashed; }
.figsep { font: 600 24px/1 var(--display); color: var(--muted); padding: 0 2px; }
.opts-fig { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.opts-fig .opt { flex-direction: column; align-items: center; gap: 8px; padding: 12px 8px; }
.opts-fig .ofig { display: grid; place-items: center; }
.opts-fig .mark { line-height: 1.3; }
.why { max-width: 70ch; padding: 16px 18px; border-radius: var(--r); border-left: 4px solid var(--line-strong); background: var(--surface); display: flex; flex-direction: column; gap: 6px; }
.why .tip { font-size: 15px; color: var(--muted); }
.why .tip strong { color: var(--ink); }
.why-ok { border-left-color: var(--ok); }
.why-no { border-left-color: var(--no); }
.runfoot { padding-top: 4px; }

/* ----- layar ujian ----- */
.exambar { position: sticky; top: 0; z-index: 5; display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 12px clamp(16px, 4vw, 40px); background: var(--surface); border-bottom: 1px solid var(--line); }
.where { margin-top: 4px; }
.timer { font: 600 30px/1 var(--display); padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: var(--r); min-width: 4.6ch; text-align: center; }
.timer.is-low { border-color: var(--flag); background: var(--flag-soft); }
.timer.is-last { border-color: var(--no); background: var(--no-soft); color: var(--no); }
.examwrap { max-width: 1240px; margin: 0 auto; padding: 28px clamp(16px, 4vw, 40px) 56px; display: grid; grid-template-columns: minmax(0, 1fr) 272px; gap: 40px; align-items: start; }
.examleft { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.examside { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 16px; padding-left: 24px; border-left: 1px solid var(--line); }
.gridgroup { display: flex; flex-direction: column; gap: 8px; }
.gridgroup h3 { font: 600 12px/1.3 var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 6px; }
.cell { display: grid; place-items: center; height: 38px; min-width: 38px; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--surface); color: var(--ink); font: 600 14px/1 var(--display); cursor: pointer; padding: 0; }
.cell.is-done { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.cell.is-flag { background: var(--flag); border-color: var(--flag); color: var(--flag-ink); }
.cell[aria-current] { outline: 2px solid var(--ink); outline-offset: 2px; }
.legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); }
.legend li { display: flex; align-items: center; gap: 6px; }
.legend .cell { width: 16px; min-width: 16px; height: 16px; cursor: default; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 6px; }
.steps li { padding: 6px 8px; border: 1px solid var(--line); border-radius: 4px; font: 600 13px/1.2 var(--display); display: flex; flex-direction: column; gap: 2px; color: var(--muted); }
.steps small { font: 400 11px/1.2 var(--body); }
.steps .step-berjalan { border-color: var(--primary); color: var(--ink); background: var(--primary-soft); }
.steps .step-selesai { text-decoration: line-through; }
dialog { border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--ink); padding: 24px; max-width: min(440px, calc(100vw - 32px)); box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28); }
dialog::backdrop { background: rgba(8, 20, 19, 0.55); }
dialog form { display: flex; flex-direction: column; gap: 14px; }

/* ----- hasil ----- */
.result { display: flex; flex-direction: column; gap: 10px; padding: 20px 0; border-top: 3px solid var(--ink); border-bottom: 1px solid var(--line); }
.big { font: 600 clamp(48px, 9vw, 84px)/1 var(--display); letter-spacing: -0.02em; }
.big span { font: 500 20px/1 var(--body); color: var(--muted); letter-spacing: 0; margin-left: 10px; }
.rev { border-bottom: 1px solid var(--line); }
.rev summary { display: flex; align-items: center; gap: 14px; padding: 12px 0; cursor: pointer; list-style: none; }
.rev summary::-webkit-details-marker { display: none; }
.revno { font: 600 15px/1 var(--display); width: 2.4ch; color: var(--muted); font-variant-numeric: tabular-nums; }
.revsub { flex: 1; min-width: 0; }
.rev[open] { padding-bottom: 24px; display: flex; flex-direction: column; gap: 18px; }
.rev[open] summary { border-bottom: 1px dashed var(--line); }

/* ----- versi daring: formulir, akun, beli, peringkat ----- */
.acctlink { margin-left: 4px; max-width: 14ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; line-height: 22px; }
.form { display: flex; flex-direction: column; gap: 8px; max-width: 460px; }
.form h2 { margin-bottom: 2px; }
.form label { font-weight: 600; margin-top: 8px; }
.form .opt { font-weight: 400; color: var(--muted); }
.form input, .form select { min-height: 46px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--surface); color: var(--ink); font: 400 16px/1.3 var(--body); width: 100%; }
.form input:focus-visible, .form select:focus-visible { outline: 3px solid var(--primary); outline-offset: 1px; }
.help { font-size: 14px; color: var(--muted); }
.err { color: var(--no); font-weight: 500; }
.okmsg { color: var(--ok); font-weight: 600; }
.acct dd { font: 600 18px/1.3 var(--display); overflow-wrap: anywhere; }
.rankbox { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; border: 1px solid var(--line-strong); border-left: 4px solid var(--primary); border-radius: var(--r); background: var(--surface); max-width: 70ch; }
.pay { display: flex; flex-direction: column; gap: 12px; max-width: 520px; }
.pay ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.amount { font: 600 44px/1 var(--display); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.qris { margin: 0; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.qris img { border: 1px solid var(--line-strong); border-radius: var(--r); background: #fff; padding: 8px; height: auto; }
.qris figcaption { font-size: 14px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ink); text-decoration: none; font: 600 14px/1.2 var(--display); min-height: 40px; display: inline-flex; align-items: center; }
.chip[aria-current] { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.board tr.is-me { background: var(--primary-soft); }
.board tr.is-me th, .board tr.is-me td { border-bottom-color: var(--primary); }
.board td:first-child, .board th:first-child { padding-left: 8px; }

/* ----- grafik kemajuan ----- */
.charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px 28px; }
.chart { margin: 0; display: flex; flex-direction: column; gap: 6px; max-width: 380px; }
.chart figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font: 600 15px/1.3 var(--display); }
.chart figcaption span { font: 400 13px/1.3 var(--body); color: var(--muted); font-variant-numeric: tabular-nums; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.c-grid { stroke: var(--line); stroke-width: 1; }
.c-tick, .c-thl { font: 400 10px var(--body); fill: var(--muted); }
.c-th { stroke: var(--line-strong); stroke-width: 1.5; stroke-dasharray: 4 4; }
.c-line { fill: none; stroke: var(--primary); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.c-dot { fill: var(--primary); stroke: var(--bg); stroke-width: 2; }
.c-hit { fill: transparent; cursor: default; }
.c-last { font: 600 12px var(--display); fill: var(--ink); font-variant-numeric: tabular-nums; }
.subhead { margin-top: 8px; }

/* ----- panduan ----- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); }
.tabs a { padding: 12px 16px; color: var(--muted); text-decoration: none; font: 600 16px/1 var(--display); }
.tabs a[aria-current] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--primary); }
.guide { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; align-items: start; }
.toc { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.toc h2 { font: 600 12px/1.3 var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.toc ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; counter-reset: toc; }
.toc li { counter-increment: toc; display: flex; gap: 10px; }
.toc li::before { content: counter(toc, decimal-leading-zero); color: var(--muted); font-variant-numeric: tabular-nums; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.prose { display: flex; flex-direction: column; gap: 32px; min-width: 0; }
.prose section { display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 16px; }
.prose p, .prose li { max-width: 68ch; }
.prose ul, .prose ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.lead { font-size: 19px; color: var(--muted); }

@media (min-width: 901px) {      /* 110 nomor harus muat di samping soal */
  .examside .grid { grid-template-columns: repeat(7, 1fr); gap: 4px; }
  .examside .grid .cell { height: 30px; min-width: 0; font-size: 13px; }
}

/* ----- layar sempit ----- */
@media (max-width: 900px) {
  .examwrap { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .examside { position: static; padding-left: 0; border-left: 0; border-top: 1px solid var(--line); padding-top: 20px; }
  .guide { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .toc { position: static; }
  .timer { font-size: 24px; }
}
@media (max-width: 680px) {
  .top { gap: 12px; }
  .theme { margin-left: auto; }
  .nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; margin: 0; background: var(--surface); border-top: 1px solid var(--line); justify-content: space-around; gap: 0; padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); }
  .nav a { flex: 1; text-align: center; padding: 12px 2px; font-size: 13px; }
  .nav a[aria-current] { box-shadow: inset 0 2px 0 var(--primary); }
  body:not(.in-exam) { padding-bottom: 64px; }
  .table .acts { white-space: normal; }
  .table .acts .btn + .btn { margin: 6px 0 0; }
  .qtext { font-size: 17px; }
}
/* ----- ponsel ----- */
.short, .only-phone { display: none; }
@media (hover: none) { .only-keys { display: none; } }
@media (max-width: 900px) {
  /* nomor soal cukup besar untuk jari: tujuh per baris */
  .grid { grid-template-columns: repeat(7, 1fr); }
  .cell { height: 44px; min-width: 0; }
  /* tombol soal menempel di bawah layar, kisi nomor dibuka lewat tombol Nomor */
  .examfoot { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; flex-wrap: nowrap; gap: 6px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); }
  .examfoot .btn { flex: 1 1 0; min-width: 0; min-height: 48px; padding: 8px 6px; font-size: 14px; }
  .examfoot .only-phone { display: inline-flex; }
  body.in-exam { padding-bottom: 76px; }
  .examside { scroll-margin-top: 76px; }
}
@media (max-width: 680px) {
  .long { display: none; }
  .short { display: inline; }
  .opt-col { display: none; }
  .exambar { padding-top: 10px; padding-bottom: 10px; }
  .table th, .table td { padding-right: 10px; }
  .table .acts .btn { white-space: nowrap; }
  /* tabel latihan menjadi kartu bertumpuk */
  .table-stack thead { display: none; }
  .table-stack tr { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
  .table-stack th, .table-stack td { border: 0; padding: 0; }
  .table-stack tbody th { grid-column: 1 / -1; }
  .table-stack .num { display: none; }
  .table-stack .acts { grid-column: 1 / -1; text-align: left; display: flex; gap: 8px; }
  .table-stack .acts .btn + .btn { margin: 0; }
  .table-stack .acts .btn { flex: 1; min-height: 44px; }
  .topics { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: none; }
  /* gambar soal dikecilkan agar A : B = C : ? dan lima pilihan muat satu baris */
  .figrow { gap: 6px; }
  .figbox { width: 62px; height: 62px; }
  .figbox .fig { width: 46px; height: 46px; }
  .figsep { font-size: 18px; padding: 0; }
  .opts-fig { grid-template-columns: repeat(5, 1fr); gap: 6px; }
  .opts-fig .opt { padding: 8px 2px; gap: 6px; min-height: 96px; }
  .opts-fig .fig { width: 46px; height: 46px; }
  .opts-fig .mark { font-size: 11px; white-space: normal; text-align: center; }
  .btn { min-height: 46px; }
  .btn-small { min-height: 40px; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .top, .foot, .nav, .row, .examside { display: none; } }

/* Analisis hasil dan ajakan membuka semua paket sesudah paket gratis */
.gaps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; max-width: 70ch; }
.upsell { display: flex; flex-direction: column; gap: 14px; padding: 22px 24px 24px; border: 1px solid var(--line-strong); border-top: 3px solid var(--ink); border-radius: var(--r); background: var(--surface); max-width: 760px; }
.upsell h2 { margin: 0; }
.upsell > p { margin: 0; max-width: 62ch; }
.gains { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px 28px; }
.gains li { display: flex; flex-direction: column; gap: 2px; padding-left: 14px; border-left: 2px solid var(--primary); }
.gains span { color: var(--muted); font-size: 15px; }
.buy { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; padding-top: 16px; border-top: 1px solid var(--line); }
.price { margin: 0; font: 600 30px/1.1 var(--display); font-variant-numeric: tabular-nums; display: flex; flex-direction: column; gap: 4px; }
.price span { font: 400 14px/1.3 var(--body); color: var(--muted); }
.buy .btn { min-height: 48px; padding-left: 22px; padding-right: 22px; }
@media (max-width: 560px) { .upsell { padding: 18px 16px 20px; } .buy .btn { width: 100%; justify-content: center; text-align: center; } }
.guestform { gap: 8px; }
.guestform .row { align-items: stretch; }
.guestform input { flex: 1 1 220px; min-width: 0; width: auto; }
