/* ==========================================================
   TOEFL ITP Progress Test — gaya antarmuka
   Nuansa lembar ujian resmi: navy, kertas krem, serif untuk soal
   ========================================================== */
:root {
  --navy: #14284b;
  --navy-2: #1f3a68;
  --ink: #1b1f2a;
  --muted: #5d6576;
  --line: #dfe3ea;
  --paper: #fbfaf6;
  --bg: #f1f3f7;
  --card: #ffffff;
  --accent: #c8891a;
  --accent-soft: #fdf3e1;
  --ok: #1d7a4f;
  --ok-soft: #e4f4ec;
  --danger: #b4322d;
  --danger-soft: #fbe9e8;
  --info-soft: #e8eef9;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(20, 40, 75, .06), 0 4px 16px rgba(20, 40, 75, .06);
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { font-family: var(--sans); color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.55; }
a { color: var(--navy-2); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5rem; }
h1 { font-size: 1.55rem; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1.02rem; }
p { margin: 0 0 .75rem; }
small, .muted { color: var(--muted); }
code, .mono { font-family: var(--mono); font-size: .9em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.25rem 0; }

/* ---------- Layout admin ---------- */
.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.sidebar { background: var(--navy); color: #cfd7e6; padding: 1.25rem 1rem; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; }
.brand { display: flex; gap: .65rem; align-items: center; color: #fff; text-decoration: none; margin-bottom: 1.75rem; }
.brand-mark { width: 38px; height: 38px; border-radius: 9px; background: var(--accent); color: var(--navy); display: grid; place-items: center; font-weight: 700; font-family: var(--serif); font-size: 1.1rem; }
.brand b { display: block; font-size: .98rem; }
.brand small { color: #9fb0cc; font-size: .75rem; }
.nav a { display: flex; align-items: center; gap: .6rem; padding: .6rem .75rem; border-radius: 8px; color: #cfd7e6; text-decoration: none; font-size: .93rem; margin-bottom: 2px; }
.nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav a.active { background: rgba(255, 255, 255, .12); color: #fff; font-weight: 600; }
.nav svg { width: 18px; height: 18px; flex: none; opacity: .85; }
.sidebar-foot { margin-top: auto; font-size: .85rem; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 1rem; }
.sidebar-foot button { background: none; border: 0; color: #9fb0cc; padding: 0; cursor: pointer; font: inherit; }
.main { padding: 1.75rem 2rem 3rem; max-width: 1240px; width: 100%; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.page-head p { margin: .2rem 0 0; color: var(--muted); }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: .35rem; }
.crumbs a { color: var(--muted); }

/* ---------- Komponen ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.25rem; margin-bottom: 1.25rem; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-bottom: .9rem; flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; }
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { padding: 1rem 1.1rem; }
.stat .label { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.stat .value { font-size: 1.9rem; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .55rem 1rem; border-radius: 8px; border: 1px solid var(--navy); background: var(--navy); color: #fff; font: inherit; font-family: var(--sans); font-weight: 600; font-size: .92rem; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--navy-2); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-outline:hover { background: var(--bg); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #1b1408; }
.btn-accent:hover { background: #b57a12; }
.btn-danger { background: #fff; color: var(--danger); border-color: #efc7c5; }
.btn-danger:hover { background: var(--danger-soft); }
.btn-ok { background: var(--ok); border-color: var(--ok); }
.btn-sm { padding: .32rem .65rem; font-size: .83rem; }
.btn-lg { padding: .8rem 1.4rem; font-size: 1rem; }
.btn-row { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
form.inline { display: inline; }

.badge { align-self: center; display: inline-block; padding: .15rem .55rem; border-radius: 99px; font-size: .76rem; font-weight: 600; background: var(--bg); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.badge-ok { background: var(--ok-soft); color: var(--ok); border-color: #bfe3cf; }
.badge-warn { background: var(--accent-soft); color: #8a5a07; border-color: #f0d7a7; }
.badge-danger { background: var(--danger-soft); color: var(--danger); border-color: #efc7c5; }
.badge-info { background: var(--info-soft); color: var(--navy-2); border-color: #cbd8f0; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #c3c9d4; margin-right: .35rem; vertical-align: middle; }
.dot.on { background: #22a865; box-shadow: 0 0 0 3px rgba(34, 168, 101, .18); }

.alert { padding: .8rem 1rem; border-radius: 8px; margin-bottom: 1rem; border: 1px solid; font-size: .93rem; }
.alert-ok { background: var(--ok-soft); border-color: #bfe3cf; color: #155c3b; }
.alert-error { background: var(--danger-soft); border-color: #efc7c5; color: #8e2520; }
.alert-warn { background: var(--accent-soft); border-color: #f0d7a7; color: #74500a; }
.alert-info { background: var(--info-soft); border-color: #cbd8f0; color: var(--navy-2); }
.alert ul { margin: .25rem 0 0; padding-left: 1.2rem; }

table.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; padding: .55rem .6rem; border-bottom: 1px solid var(--line); background: #fafbfc; }
.table td { padding: .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; margin: 0 -1.25rem; padding: 0 1.25rem; }
.empty { text-align: center; color: var(--muted); padding: 2rem 1rem; }

label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: .3rem; }
.field { margin-bottom: 1rem; }
.field .hint { font-size: .8rem; color: var(--muted); margin-top: .25rem; }
input[type=text], input[type=password], input[type=number], input[type=datetime-local], input[type=search], select, textarea {
  width: 100%; padding: .55rem .7rem; border: 1px solid #cdd3dd; border-radius: 8px; font: inherit; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(31, 58, 104, .25); border-color: var(--navy-2); }
textarea { min-height: 90px; resize: vertical; }
input[type=file] { font: inherit; font-size: .9rem; }
.check { font-family: var(--sans); display: flex; gap: .5rem; align-items: center; font-weight: 500; }
.error-text { color: var(--danger); font-size: .82rem; margin-top: .25rem; }
.form-row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--line); margin-bottom: 1rem; flex-wrap: wrap; }
.tabs a { padding: .55rem .9rem; text-decoration: none; color: var(--muted); font-weight: 600; font-size: .92rem; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.active { color: var(--navy); border-color: var(--accent); }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 .9rem 2.4rem; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -.1rem; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); display: grid; place-items: center; font-weight: 700; font-size: .85rem; color: var(--muted); }
.steps li.done::before { content: "✓"; background: var(--ok); border-color: var(--ok); color: #fff; }

details.box { border: 1px solid var(--line); border-radius: 8px; padding: .6rem .9rem; background: #fff; margin-bottom: .75rem; }
details.box summary { cursor: pointer; font-weight: 600; }

.we-mark { display: inline-flex; flex-direction: column; align-items: center; line-height: 1.2; margin: 0 .1rem; vertical-align: top; }
.we-mark u { text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.we-mark small { font-family: var(--sans); font-size: .7rem; font-weight: 700; color: var(--muted); }

/* ---------- Halaman login ---------- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-side { background: var(--navy); color: #dbe3f1; padding: 3rem; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-side h1 { font-family: var(--serif); color: #fff; font-size: 2.3rem; font-weight: 600; max-width: 14ch; }
.auth-side .sections { display: grid; gap: .6rem; max-width: 380px; }
.auth-side .sec { display: flex; justify-content: space-between; border-top: 1px solid rgba(255, 255, 255, .14); padding-top: .6rem; font-size: .92rem; }
.auth-side .sec b { color: #fff; font-weight: 600; }
.auth-form { display: grid; place-items: center; padding: 2rem; background: var(--paper); }
.auth-form .card { width: 100%; max-width: 380px; padding: 2rem; }

/* ---------- Layout peserta ---------- */
.topbar { background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: space-between; padding: .7rem 1.5rem; gap: 1rem; position: sticky; top: 0; z-index: 20; }
.topbar .brand { margin: 0; }
.topbar .who { font-size: .88rem; color: #cfd7e6; display: flex; align-items: center; gap: 1rem; }
.topbar .who button { background: none; border: 1px solid rgba(255, 255, 255, .25); color: #fff; border-radius: 7px; padding: .3rem .7rem; cursor: pointer; font: inherit; font-size: .85rem; }
.container { max-width: 980px; margin: 0 auto; padding: 1.75rem 1.25rem 3rem; }

/* ---------- Halaman ujian ---------- */
body.exam-body { background: var(--paper); }
.exam-bar { position: sticky; top: 0; z-index: 30; background: var(--navy); color: #fff; display: flex; align-items: center; gap: 1rem; padding: .55rem 1.25rem; }
.exam-bar .sec-name { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; }
.exam-bar .sec-sub { font-size: .82rem; color: #b8c4da; }
.exam-bar .spacer { flex: 1; }
.timer { font-family: var(--mono); font-size: 1.35rem; font-weight: 600; background: rgba(255, 255, 255, .1); padding: .25rem .8rem; border-radius: 8px; font-variant-numeric: tabular-nums; min-width: 6.2ch; text-align: center; }
.timer.warn { background: var(--accent); color: #1b1408; }
.timer.danger { background: var(--danger); color: #fff; animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .75; } }
.save-state { font-size: .8rem; color: #b8c4da; min-width: 9ch; text-align: right; }
.save-state.err { color: #ffb4ae; }
.section-steps { display: flex; gap: .35rem; }
.section-steps span { font-size: .75rem; padding: .2rem .55rem; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .2); color: #9fb0cc; }
.section-steps span.now { background: #fff; color: var(--navy); border-color: #fff; font-weight: 700; }
.section-steps span.done { color: #fff; border-color: rgba(255, 255, 255, .45); }

.exam-wrap { max-width: 1180px; margin: 0 auto; padding: 1.5rem 1.25rem 4rem; }
.screen { display: none; }
.screen.on { display: block; }

.paper { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.75rem; }
.paper h2 { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--navy); }
.directions { font-family: var(--serif); font-size: 1.05rem; line-height: 1.7; }
.directions p { margin-bottom: .9rem; }

.waiting { max-width: 640px; margin: 2rem auto; text-align: center; }
.waiting .big { font-family: var(--serif); font-size: 1.6rem; color: var(--navy); margin: .5rem 0 1rem; }
.progress { height: 10px; background: var(--bg); border-radius: 99px; overflow: hidden; border: 1px solid var(--line); }
.progress > div { height: 100%; width: 0; background: var(--navy-2); transition: width .2s; }
.checklist { text-align: left; list-style: none; padding: 0; margin: 1.25rem auto; max-width: 420px; }
.checklist li { padding: .45rem 0 .45rem 1.9rem; position: relative; border-bottom: 1px dashed var(--line); }
.checklist li::before { content: ""; position: absolute; left: 0; top: .6rem; width: 1.1rem; height: 1.1rem; border-radius: 50%; border: 2px solid #c3c9d4; }
.checklist li.done::before { background: var(--ok); border-color: var(--ok); }
.countdown { font-family: var(--mono); font-size: 3.2rem; font-weight: 600; color: var(--navy); }

/* Listening */
.listen-stage { max-width: 760px; margin: 0 auto; }
.listen-status { display: flex; align-items: center; gap: .9rem; margin-bottom: 1rem; color: var(--muted); font-size: .92rem; }
.eq { display: inline-flex; gap: 3px; align-items: flex-end; height: 18px; }
.eq i { width: 4px; background: var(--navy-2); border-radius: 2px; animation: eq 1s infinite ease-in-out; }
.eq i:nth-child(2) { animation-delay: .2s; } .eq i:nth-child(3) { animation-delay: .4s; } .eq i:nth-child(4) { animation-delay: .1s; }
.eq.paused i { animation: none; height: 4px; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 18px; } }
.audio-track { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; margin-bottom: 1.25rem; }
.audio-track div { height: 100%; background: var(--accent); width: 0; }
.qcard { font-family: var(--serif); }
.qcard .qnum { font-family: var(--sans); font-size: .8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: .5rem; display: flex; justify-content: space-between; }
.qcard .qtext { font-size: 1.12rem; line-height: 1.75; margin-bottom: 1rem; }
.answer-phase { margin-bottom: 1rem; }
.answer-head { display: flex; justify-content: space-between; align-items: baseline; font-size: .9rem; color: var(--muted); margin-bottom: .35rem; }
.answer-head b { font-family: var(--mono, monospace); font-size: 1.05rem; color: #8a6400; }
.answer-window { height: 8px; background: #f3ead2; border-radius: 99px; overflow: hidden; }
.answer-window div { height: 100%; background: #f2b705; width: 100%; transition: width .25s linear; }
.answer-phase.ending .answer-head b { color: #b42318; }
.listen-idle { text-align: center; padding: 3rem 1rem; font-family: var(--serif); font-size: 1.15rem; color: var(--muted); }

.options { display: grid; gap: .55rem; }
.opt { display: flex; gap: .8rem; align-items: flex-start; padding: .7rem .9rem; border: 1.5px solid var(--line); border-radius: 9px; cursor: pointer; background: #fff; font-family: var(--serif); font-size: 1.04rem; line-height: 1.5; text-align: left; width: 100%; color: var(--ink); transition: border-color .12s, background .12s; }
.opt:hover { border-color: #b7c2d6; }
.opt .letter { flex: none; width: 1.9rem; height: 1.9rem; border-radius: 50%; border: 1.5px solid #aab4c6; display: grid; place-items: center; font-family: var(--sans); font-weight: 700; font-size: .9rem; color: var(--muted); }
.opt.sel { border-color: var(--navy-2); background: var(--info-soft); }
.opt.sel .letter { background: var(--navy-2); border-color: var(--navy-2); color: #fff; }
.opt:disabled { cursor: not-allowed; opacity: .6; }
.opt.letter-only { justify-content: center; }

/* Structure & Reading */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 1.25rem; align-items: start; }
.split-reading { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.passage { position: sticky; top: 70px; max-height: calc(100vh - 90px); overflow-y: auto; font-family: var(--serif); font-size: 1.04rem; line-height: 1.85; }
.passage h3 { font-family: var(--serif); font-size: 1.1rem; color: var(--navy); }
.passage .para { margin-bottom: 1rem; }
.passage .tag { font-family: var(--sans); font-size: .75rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.navigator { position: sticky; top: 70px; }
.nav-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: .35rem; }
.nav-grid button { aspect-ratio: 1; border: 1.5px solid var(--line); border-radius: 7px; background: #fff; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; color: var(--muted); font-variant-numeric: tabular-nums; }
.nav-grid button.ans { background: var(--navy-2); border-color: var(--navy-2); color: #fff; }
.nav-grid button.cur { outline: 2.5px solid var(--accent); outline-offset: 1px; }
.nav-grid button.flag { border-color: var(--accent); }
.nav-grid button.flag::after { content: ""; display: block; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; margin: -2px auto 0; }
.legend { display: flex; gap: .9rem; flex-wrap: wrap; font-size: .78rem; color: var(--muted); margin-top: .8rem; }
.legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; border: 1.5px solid var(--line); vertical-align: -1px; margin-right: .25rem; }
.legend i.a { background: var(--navy-2); border-color: var(--navy-2); }
.legend i.f { border-color: var(--accent); }
.q-foot { display: flex; justify-content: space-between; gap: .5rem; margin-top: 1.25rem; flex-wrap: wrap; }
.part-label { font-family: var(--sans); font-size: .78rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; }

.modal-back { position: fixed; inset: 0; background: rgba(15, 25, 45, .55); display: none; place-items: center; z-index: 100; padding: 1rem; }
.modal-back.on { display: grid; }
.modal { background: #fff; border-radius: 12px; max-width: 460px; width: 100%; padding: 1.5rem; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
.modal h3 { font-family: var(--serif); font-size: 1.3rem; color: var(--navy); }

/* Hasil */
.score-hero { text-align: center; padding: 2rem 1rem; }
.score-hero .total { font-family: var(--serif); font-size: 4.2rem; font-weight: 700; color: var(--navy); line-height: 1; font-variant-numeric: tabular-nums; }
.score-hero .range { color: var(--muted); font-size: .9rem; }
.score-bars { display: grid; gap: 1rem; }
.score-bar .row { display: flex; justify-content: space-between; font-size: .92rem; margin-bottom: .3rem; }
.score-bar .track { height: 10px; background: var(--bg); border-radius: 99px; overflow: hidden; border: 1px solid var(--line); }
.score-bar .track div { height: 100%; background: var(--navy-2); border-radius: 99px; }

/* Penanda cue (admin) */
.cue-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 1.25rem; align-items: start; }
.cue-player { position: sticky; top: 1rem; }
.cue-player audio { width: 100%; margin-bottom: .75rem; }
.cue-time { font-family: var(--mono); font-size: 2rem; font-weight: 600; color: var(--navy); text-align: center; }
.cue-next { text-align: center; color: var(--muted); font-size: .9rem; margin: .25rem 0 1rem; }
.cue-table input { width: 6.5rem; font-family: var(--mono); padding: .35rem .45rem; }
.cue-table tr.current td { background: var(--accent-soft); }
.cue-table tr.missing td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.timeline { position: relative; height: 34px; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; margin-bottom: 1rem; overflow: hidden; cursor: pointer; }
.timeline .seg { position: absolute; top: 4px; bottom: 4px; background: rgba(31, 58, 104, .22); border-left: 2px solid var(--navy-2); font-size: .65rem; color: var(--navy); padding-left: 2px; overflow: hidden; }
.timeline .head { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--danger); }
kbd { font-family: var(--mono); font-size: .8rem; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; padding: .05rem .35rem; background: #fff; }

.preview-q { border: 1px solid var(--line); border-radius: 8px; padding: .8rem 1rem; margin-bottom: .6rem; background: #fff; }
.preview-q .meta { display: flex; gap: .5rem; align-items: center; margin-bottom: .35rem; flex-wrap: wrap; }
.preview-q .opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .15rem 1rem; font-size: .9rem; color: var(--muted); }
.preview-q .opts .correct { color: var(--ok); font-weight: 600; }

@media (max-width: 960px) {
  .admin-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: .5rem; }
  .sidebar .brand { margin: 0 1rem 0 0; }
  .nav { display: flex; flex-wrap: wrap; gap: .25rem; }
  .sidebar-foot { margin: 0 0 0 auto; border: 0; padding: 0; }
  .main { padding: 1.25rem 1rem 3rem; }
  .grid-2, .grid-3, .grid-4, .cue-layout { grid-template-columns: 1fr; }
  .split, .split-reading { grid-template-columns: 1fr; }
  .passage, .navigator, .cue-player { position: static; max-height: none; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { padding: 2rem 1.25rem; }
  .auth-side h1 { font-size: 1.7rem; }
  .exam-bar { flex-wrap: wrap; padding: .55rem 1rem; }
  .section-steps { display: none; }
}

/* Listening Part B/C: satu percakapan, beberapa soal sekaligus */
.group-note { font-size: .9rem; color: var(--muted); margin: -.25rem 0 .9rem; }
.gq { display: flex; gap: .75rem; padding: .6rem .7rem; border: 1.5px solid transparent; border-radius: 10px; margin-bottom: .35rem; transition: border-color .2s, background .2s; }
.gq.now { border-color: #f2b705; background: #fffbea; }
.gq-num { flex: none; width: 2.2rem; font-weight: 700; font-family: var(--serif); font-size: 1.1rem; padding-top: .45rem; }
.gq .options { flex: 1; }
.options.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; }
.options.compact .opt { padding: .45rem .6rem; font-size: .95rem; }
.options.compact .opt .letter { width: 1.6rem; height: 1.6rem; font-size: .8rem; }
@media (max-width: 720px) { .options.compact { grid-template-columns: 1fr; } }

/* ===== Pembahasan peserta ===== */
.review-nav { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: .4rem .9rem; align-items: center; background: var(--bg); padding: .6rem 0; margin-bottom: .6rem; border-bottom: 1px solid var(--line); font-size: .92rem; }
.review-nav a { font-weight: 600; text-decoration: none; }
.review-section { margin: 2rem 0 .8rem; font-family: var(--serif); }
.review-item { scroll-margin-top: 4rem; }
.review-head { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: .6rem; }
.skill-chip { font-size: .78rem; background: var(--info-soft); color: var(--navy-2); border-radius: 6px; padding: .15rem .5rem; }
.review-item .qtext { font-family: var(--serif); font-size: 1.05rem; margin: .4rem 0 .7rem; }
.review-opts { display: grid; gap: .35rem; }
.ropt { display: flex; gap: .6rem; align-items: flex-start; padding: .45rem .7rem; border: 1px solid var(--line); border-radius: 8px; font-family: var(--serif); }
.ropt .letter { flex: none; width: 1.5rem; height: 1.5rem; border-radius: 50%; border: 1.5px solid #aab4c6; display: grid; place-items: center; font: 700 .78rem var(--sans); color: var(--muted); }
.ropt .tag { margin-left: auto; flex: none; font: 600 .72rem var(--sans); color: var(--muted); white-space: nowrap; }
.ropt.key { border-color: #9fd6b8; background: var(--ok-soft); }
.ropt.key .letter { background: var(--ok); border-color: var(--ok); color: #fff; }
.ropt.key .tag { color: var(--ok); }
.ropt.mine-wrong { border-color: #efc7c5; background: var(--danger-soft); }
.ropt.mine-wrong .letter { background: var(--danger); border-color: var(--danger); color: #fff; }
.ropt.mine-wrong .tag { color: var(--danger); }
.explain { margin-top: .75rem; padding: .7rem .9rem; background: var(--paper); border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0; font-size: .95rem; line-height: 1.6; }
.transcript { font-family: var(--serif); font-size: .98rem; line-height: 1.65; background: #f6f7fa; border-radius: 8px; padding: .7rem .9rem; margin: .2rem 0 .6rem; }
.transcript-card { background: #fbfcfe; }
.passage-card summary { cursor: pointer; }
.skill-table td { vertical-align: middle; }
.skill-bar { height: 8px; background: #edf0f4; border-radius: 99px; overflow: hidden; }
.skill-bar div { height: 100%; border-radius: 99px; }
.skill-bar.good div { background: var(--ok); }
.skill-bar.mid div { background: #f2b705; }
.skill-bar.low div { background: var(--danger); }
.skill-nums { display: flex; flex-wrap: wrap; gap: .25rem; }
.skill-nums a { display: inline-grid; place-items: center; min-width: 1.7rem; height: 1.5rem; border-radius: 5px; font: 600 .75rem var(--mono, monospace); text-decoration: none; }
.skill-nums a.v { background: var(--ok-soft); color: var(--ok); }
.skill-nums a.x { background: var(--danger-soft); color: var(--danger); }
body.only-wrong .review-item.is-ok { display: none; }

.ropt .tag + .tag { margin-left: .6rem; }
.review-head .jump { margin-left: auto; font-size: .82rem; }
.transcript-card, .passage-card { scroll-margin-top: 4rem; }
@media (max-width: 640px) {
  .skill-table th:nth-child(3), .skill-table td:nth-child(3) { display: none; }
  .ropt .tag { display: none; }
}
