/* Nalara CBT — design system */
:root {
  --bg: #f6f4fb; --bg-2: #ece8f7; --surface: #ffffffcc; --surface-solid: #ffffff; --surface-2: #f3f0fa;
  --ink: #1a1633; --ink-2: #4a4568; --muted: #8a85a6; --line: #e3def0; --line-2: #d3cce6;
  --brand: #6d4aff; --brand-2: #b14bf4; --accent: #ff7a59; --teal: #14b8a6; --gold: #f5b83d;
  --ok: #12a37a; --ok-bg: #e2f7ef; --bad: #e2445c; --bad-bg: #fde7eb; --warn: #d98b0a; --warn-bg: #fff3d9; --info-bg: #ebe7ff;
  --grad: linear-gradient(135deg, #6d4aff 0%, #b14bf4 55%, #ff7a59 100%);
  --shadow: 0 1px 2px rgba(26,22,51,.05), 0 8px 30px -12px rgba(60,40,140,.18);
  --shadow-lg: 0 30px 80px -30px rgba(60,40,140,.35);
  --r: 18px; --r-sm: 12px;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, sans-serif;
  --display: 'Fraunces', Georgia, serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d0b1d; --bg-2: #15122b; --surface: #1a1733cc; --surface-solid: #1a1733; --surface-2: #221e40;
    --ink: #f1eefc; --ink-2: #c3bde0; --muted: #8b84ad; --line: #2c2750; --line-2: #3a3466;
    --ok-bg: #0f3a2f; --bad-bg: #44182a; --warn-bg: #3f2e0b; --info-bg: #2a2160;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px -12px rgba(0,0,0,.6); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d0b1d; --bg-2: #15122b; --surface: #1a1733cc; --surface-solid: #1a1733; --surface-2: #221e40;
  --ink: #f1eefc; --ink-2: #c3bde0; --muted: #8b84ad; --line: #2c2750; --line-2: #3a3466;
  --ok-bg: #0f3a2f; --bad-bg: #44182a; --warn-bg: #3f2e0b; --info-bg: #2a2160;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px -12px rgba(0,0,0,.6); color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); background: var(--bg); color: var(--ink); line-height: 1.55; -webkit-font-smoothing: antialiased; min-height: 100vh; overflow-x: hidden; }
.aurora { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.aurora i { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .45; animation: float 22s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { width: 520px; height: 520px; background: #8b6bff; top: -180px; left: -120px; }
.aurora i:nth-child(2) { width: 460px; height: 460px; background: #ff9a7a; top: 20%; right: -160px; animation-delay: -6s; }
.aurora i:nth-child(3) { width: 420px; height: 420px; background: #3fd8c5; bottom: -200px; left: 30%; opacity: .25; animation-delay: -12s; }
@keyframes float { to { transform: translate(60px, 40px) scale(1.12); } }
a { color: var(--brand); text-decoration: none; }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.2; letter-spacing: -.01em; }
.display { font-family: var(--display); font-weight: 600; letter-spacing: -.02em; }
.muted { color: var(--muted); } .small { font-size: .86rem; } .tiny { font-size: .76rem; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hidden { display: none !important; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; } .row.end { justify-content: flex-end; }
.stack > * + * { margin-top: 14px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* brand */
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: var(--ink); }
.brand img { width: 36px; height: 36px; filter: drop-shadow(0 6px 14px rgba(109,74,255,.35)); }
.brand small { display: block; font-weight: 600; font-size: .68rem; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; margin-top: -2px; }

/* surfaces */
.card { background: var(--surface); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 22px; }
.card.solid { background: var(--surface-solid); }
.card.pad-lg { padding: 32px; }
.card h3 { font-size: 1.05rem; }
.divider { height: 1px; background: var(--line); margin: 18px 0; border: 0; }

/* buttons */
.btn { --b: var(--surface-solid); display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line-2); background: var(--b); color: var(--ink); font: 600 .92rem var(--font); padding: 10px 16px; border-radius: 12px; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s, opacity .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn.primary { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 10px 24px -10px rgba(109,74,255,.7); }
.btn.dark { background: var(--ink); color: var(--bg); border-color: transparent; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--surface-2); box-shadow: none; }
.btn.danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 35%, transparent); background: transparent; }
.btn.danger:hover { background: var(--bad-bg); }
.btn.ok { background: var(--ok); color: #fff; border-color: transparent; }
.btn.sm { padding: 6px 11px; font-size: .82rem; border-radius: 10px; }
.btn.lg { padding: 14px 22px; font-size: 1rem; border-radius: 14px; }
.btn.block { width: 100%; }
.btn.icon { padding: 8px; width: 38px; height: 38px; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* forms */
label.f { display: block; font-weight: 600; font-size: .85rem; color: var(--ink-2); }
label.f > span { display: block; margin-bottom: 6px; }
.input, select.input, textarea.input { width: 100%; font: 500 .95rem var(--font); color: var(--ink); background: var(--surface-solid); border: 1.5px solid var(--line-2); border-radius: 12px; padding: 11px 13px; outline: none; transition: border .15s, box-shadow .15s; }
textarea.input { resize: vertical; min-height: 90px; line-height: 1.5; }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
.check { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: .9rem; cursor: pointer; user-select: none; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; font-size: .9rem; }
.switch input { appearance: none; width: 42px; height: 24px; border-radius: 99px; background: var(--line-2); position: relative; cursor: pointer; transition: background .2s; margin: 0; }
.switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.switch input:checked { background: var(--brand); }
.switch input:checked::after { transform: translateX(18px); }

/* chips / badges */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; font-size: .75rem; font-weight: 700; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap; }
.chip.brand { background: var(--info-bg); color: var(--brand); border-color: transparent; }
.chip.ok { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.chip.bad { background: var(--bad-bg); color: var(--bad); border-color: transparent; }
.chip.warn { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.chip.t-pg { background: #ebe7ff; color: #5a3be0; border-color: transparent; }
.chip.t-bs { background: #ddf6f2; color: #0f8f80; border-color: transparent; }
.chip.t-jodoh { background: #ffe9e2; color: #d2552f; border-color: transparent; }
.chip.t-uraian { background: #fff2d6; color: #b37400; border-color: transparent; }
:root[data-theme="dark"] .chip[class*="t-"] { filter: brightness(.9) saturate(1.2); }

/* tables */
.table-wrap { overflow-x: auto; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface-solid); }
table.t { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.t th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: 12px 14px; background: var(--surface-2); white-space: nowrap; }
table.t td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: middle; }
table.t tr:hover td { background: color-mix(in srgb, var(--brand) 4%, transparent); }

/* modal & toast */
.modal-bg { position: fixed; inset: 0; background: rgba(13,11,29,.55); backdrop-filter: blur(6px); z-index: 900; display: grid; place-items: center; padding: 16px; animation: fade .2s; }
.modal { width: min(720px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--surface-solid); border-radius: 22px; border: 1px solid var(--line); box-shadow: var(--shadow-lg); padding: 26px; animation: pop .25s cubic-bezier(.2,.9,.3,1.2); }
.modal.wide { width: min(1000px, 100%); }
.modal.narrow { width: min(460px, 100%); }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.modal-head h3 { margin: 0; font-size: 1.2rem; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.97); } }
#toasts { position: fixed; bottom: 20px; right: 20px; z-index: 1000; display: flex; flex-direction: column; gap: 10px; max-width: calc(100vw - 40px); }
.toast { background: var(--ink); color: var(--bg); padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow-lg); font-weight: 600; font-size: .9rem; animation: pop .25s; max-width: 420px; white-space: pre-line; }
.toast.bad { background: var(--bad); color: #fff; } .toast.ok { background: var(--ok); color: #fff; }

/* misc */
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 3px solid color-mix(in srgb, currentColor 25%, transparent); border-top-color: currentColor; animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty svg { width: 54px; height: 54px; opacity: .5; margin-bottom: 8px; }
.kpi { display: flex; flex-direction: column; gap: 4px; }
.kpi b { font-family: var(--display); font-size: 2rem; line-height: 1; }
.kpi span { font-size: .8rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.bar { height: 9px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: inherit; background: var(--grad); transition: width .8s cubic-bezier(.2,.8,.2,1); }
.bar.ok > i { background: var(--ok); } .bar.mid > i { background: var(--gold); } .bar.low > i { background: var(--bad); }
.q-text { font-size: 1.04rem; white-space: pre-line; }
.q-text img, .q-img { max-width: 100%; border-radius: 12px; margin-top: 10px; }
.katex { font-size: 1.05em; }
::selection { background: color-mix(in srgb, var(--brand) 25%, transparent); }

/* ------------------------------------------------ student landing */
.topbar { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(16px); background: color-mix(in srgb, var(--bg) 70%, transparent); border-bottom: 1px solid var(--line); }
.topbar .container { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 12px; }
.hero { padding: 56px 0 26px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; padding-top: 32px; gap: 24px; } }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-family: var(--display); font-weight: 600; letter-spacing: -.03em; line-height: 1.05; }
.hero p.lead { font-size: 1.1rem; color: var(--ink-2); max-width: 540px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); background: var(--info-bg); padding: 6px 12px; border-radius: 99px; margin-bottom: 16px; }
.identity { position: relative; }
.identity::before { content: ''; position: absolute; inset: -2px; border-radius: calc(var(--r) + 2px); background: var(--grad); z-index: -1; opacity: .6; filter: blur(14px); }
.feature-list { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 22px; color: var(--ink-2); font-size: .88rem; font-weight: 600; }
.feature-list span { display: inline-flex; gap: 7px; align-items: center; }
.feature-list svg { width: 18px; height: 18px; color: var(--teal); }
.tabs { display: inline-flex; background: var(--surface-2); padding: 4px; border-radius: 14px; gap: 4px; border: 1px solid var(--line); }
.tabs button { border: 0; background: transparent; font: 700 .88rem var(--font); color: var(--muted); padding: 9px 16px; border-radius: 10px; cursor: pointer; }
.tabs button.on { background: var(--surface-solid); color: var(--ink); box-shadow: var(--shadow); }
.as-card { position: relative; overflow: hidden; cursor: pointer; transition: transform .2s, box-shadow .25s, border-color .2s; display: flex; flex-direction: column; gap: 10px; }
.as-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.as-card .ribbon { position: absolute; top: 0; left: 0; right: 0; height: 5px; background: var(--grad); }
.as-card h3 { font-family: var(--display); font-weight: 600; font-size: 1.3rem; margin-top: 4px; }
.as-card .meta { display: flex; gap: 8px; flex-wrap: wrap; }
.as-card.match { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.as-card .go { margin-top: auto; display: flex; justify-content: space-between; align-items: center; font-weight: 700; color: var(--brand); }
.section-title { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin: 34px 0 16px; flex-wrap: wrap; }
.section-title h2 { font-family: var(--display); font-weight: 600; font-size: 1.7rem; margin: 0; }
footer.foot { padding: 40px 0; color: var(--muted); font-size: .85rem; text-align: center; }

/* rules */
.rules { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.rules li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); font-size: .92rem; }
.rules li svg { width: 20px; height: 20px; flex: none; color: var(--brand); margin-top: 1px; }

/* ------------------------------------------------ exam */
body.exam-mode { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
body.exam-mode .aurora { opacity: .35; }
.exam-top { position: sticky; top: 0; z-index: 60; background: color-mix(in srgb, var(--surface-solid) 88%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.exam-top .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.exam-title { font-weight: 800; font-size: .98rem; line-height: 1.2; }
.exam-title small { display: block; font-weight: 600; color: var(--muted); font-size: .76rem; }
.timer { font-family: var(--mono); font-weight: 700; font-size: 1.1rem; padding: 8px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); display: inline-flex; align-items: center; gap: 8px; }
.timer.warn { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.timer.crit { background: var(--bad); color: #fff; animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .75; } }
.progress-line { height: 3px; background: var(--line); }
.progress-line i { display: block; height: 100%; background: var(--grad); transition: width .4s; }
.exam-body { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 22px; padding: 24px 0 120px; }
@media (max-width: 960px) { .exam-body { grid-template-columns: 1fr; } .nav-panel { position: static !important; } }
.q-card { min-height: 420px; }
.q-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.q-num { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; }
.q-num b { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--grad); color: #fff; font-size: 1.05rem; }
.opt { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; transition: border .15s, background .15s, transform .1s; background: var(--surface-solid); margin-top: 10px; }
.opt:hover { border-color: var(--line-2); background: var(--surface-2); }
.opt.on { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, var(--surface-solid)); }
.opt .key { width: 32px; height: 32px; flex: none; border-radius: 10px; display: grid; place-items: center; font-weight: 800; background: var(--surface-2); border: 1px solid var(--line); }
.opt.on .key { background: var(--brand); color: #fff; border-color: transparent; }
.opt .val { padding-top: 4px; flex: 1; }
.tf { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.tf button { border: 1.5px solid var(--line); background: var(--surface-solid); border-radius: 16px; padding: 22px; font: 800 1.1rem var(--font); color: var(--ink); cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 8px; transition: all .15s; }
.tf button svg { width: 30px; height: 30px; }
.tf button.t.on { border-color: var(--ok); background: var(--ok-bg); color: var(--ok); }
.tf button.f.on { border-color: var(--bad); background: var(--bad-bg); color: var(--bad); }
.match { display: grid; gap: 12px; margin-top: 14px; }
.match-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) minmax(160px, 260px); gap: 12px; align-items: center; padding: 12px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface-solid); }
.match-row.on { border-color: color-mix(in srgb, var(--brand) 50%, var(--line)); }
.match-row .n { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-2); font-weight: 800; font-size: .85rem; }
@media (max-width: 640px) { .match-row { grid-template-columns: 30px 1fr; } .match-row select { grid-column: 1 / -1; } }
.bank-rights { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.bank-rights .chip.used { opacity: .45; text-decoration: line-through; }
.essay { min-height: 220px; font-size: 1rem; }
.q-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.nav-panel { position: sticky; top: 90px; align-self: start; }
.nav-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.nav-grid button { aspect-ratio: 1; border: 1.5px solid var(--line); background: var(--surface-solid); border-radius: 10px; font: 800 .85rem var(--font); color: var(--ink-2); cursor: pointer; position: relative; transition: all .12s; }
.nav-grid button.ans { background: var(--brand); color: #fff; border-color: transparent; }
.nav-grid button.flag::after { content: ''; position: absolute; top: -4px; right: -4px; width: 11px; height: 11px; border-radius: 50%; background: var(--gold); border: 2px solid var(--surface-solid); }
.nav-grid button.cur { outline: 3px solid color-mix(in srgb, var(--accent) 70%, transparent); outline-offset: 1px; }
.nav-legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: .76rem; color: var(--muted); font-weight: 600; margin-top: 12px; }
.nav-legend i { display: inline-block; width: 11px; height: 11px; border-radius: 4px; margin-right: 5px; vertical-align: -1px; }
.type-sep { grid-column: 1 / -1; font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.watermark { position: fixed; inset: 0; pointer-events: none; z-index: 70; opacity: .07; overflow: hidden; }
.watermark div { position: absolute; white-space: nowrap; font-weight: 800; font-size: 15px; transform: rotate(-24deg); color: var(--ink); }
.shield { position: fixed; inset: 0; z-index: 950; background: rgba(13,11,29,.94); backdrop-filter: blur(30px); display: grid; place-items: center; color: #fff; text-align: center; padding: 20px; }
.shield .box { max-width: 460px; }
.shield svg { width: 64px; height: 64px; color: var(--accent); margin-bottom: 12px; }
.shield h2 { font-family: var(--display); font-weight: 600; font-size: 1.8rem; }
.shield p { color: #c9c3e6; }
@media print { body * { display: none !important; } body::after { content: 'Mencetak halaman ujian tidak diizinkan.'; display: block !important; padding: 40px; font: 700 20px sans-serif; } }

/* ------------------------------------------------ result */
.result-hero { display: grid; grid-template-columns: auto 1fr; gap: 30px; align-items: center; }
@media (max-width: 700px) { .result-hero { grid-template-columns: 1fr; text-align: center; justify-items: center; } }
.ring { --p: 0; --c: var(--brand); width: 190px; height: 190px; border-radius: 50%; background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--surface-2) 0); display: grid; place-items: center; position: relative; transition: --p 1s; }
.ring::before { content: ''; position: absolute; inset: 14px; border-radius: 50%; background: var(--surface-solid); }
.ring .v { position: relative; text-align: center; }
.ring .v b { font-family: var(--display); font-size: 3rem; line-height: 1; display: block; }
.ring .v span { font-size: .78rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.rec { display: flex; gap: 14px; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); border-left: 4px solid var(--brand); }
.rec.great, .rec.good { border-color: var(--ok); } .rec.mid { border-color: var(--gold); } .rec.low { border-color: var(--bad); } .rec.info { border-color: var(--teal); }
.rec b { display: block; margin-bottom: 2px; }
.review-item { border: 1px solid var(--line); border-radius: 16px; padding: 18px; background: var(--surface-solid); }
.review-item + .review-item { margin-top: 12px; }
.review-item.ok { border-left: 5px solid var(--ok); } .review-item.bad { border-left: 5px solid var(--bad); } .review-item.pend { border-left: 5px solid var(--gold); } .review-item.part { border-left: 5px solid var(--gold); }
.ans-line { display: flex; gap: 8px; align-items: baseline; margin-top: 8px; font-size: .92rem; flex-wrap: wrap; }
.ans-line > span:first-child { font-weight: 700; color: var(--muted); min-width: 120px; }
.explain { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--info-bg); font-size: .9rem; }
.feedback { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--warn-bg); font-size: .9rem; }

/* ------------------------------------------------ admin */
.admin { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; padding: 22px 16px; border-right: 1px solid var(--line); background: color-mix(in srgb, var(--surface-solid) 70%, transparent); backdrop-filter: blur(16px); display: flex; flex-direction: column; gap: 22px; z-index: 80; }
.side nav { display: flex; flex-direction: column; gap: 4px; }
.side nav button { display: flex; align-items: center; gap: 12px; border: 0; background: transparent; padding: 11px 14px; border-radius: 12px; font: 600 .93rem var(--font); color: var(--ink-2); cursor: pointer; text-align: left; transition: background .15s; }
.side nav button svg { width: 19px; height: 19px; }
.side nav button:hover { background: var(--surface-2); }
.side nav button.on { background: var(--ink); color: var(--bg); }
.side nav button .badge { margin-left: auto; background: var(--accent); color: #fff; font-size: .7rem; padding: 2px 7px; border-radius: 99px; }
.main { padding: 26px 30px 80px; min-width: 0; }
.page-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { font-family: var(--display); font-weight: 600; font-size: 2rem; margin: 0; }
.mobile-bar { display: none; }
@media (max-width: 900px) {
  .admin { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; width: 270px; transform: translateX(-105%); transition: transform .25s; box-shadow: var(--shadow-lg); background: var(--surface-solid); }
  .side.open { transform: none; }
  .mobile-bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); z-index: 70; }
  .main { padding: 18px 16px 80px; }
}
.qitem { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-solid); align-items: flex-start; }
.qitem + .qitem { margin-top: 10px; }
.qitem .opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; margin-top: 8px; font-size: .88rem; color: var(--ink-2); }
.qitem .opts .c { color: var(--ok); font-weight: 700; }
@media (max-width: 640px) { .qitem { grid-template-columns: 22px 1fr; } .qitem > .row { grid-column: 1 / -1; } .qitem .opts { grid-template-columns: 1fr; } }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.toolbar .input { width: auto; min-width: 160px; padding: 9px 12px; }
.pair-row { display: grid; grid-template-columns: 1fr 1fr 38px; gap: 8px; margin-top: 8px; }
.opt-row { display: grid; grid-template-columns: 38px 1fr 38px; gap: 8px; margin-top: 8px; align-items: center; }
.opt-row input[type=radio] { width: 20px; height: 20px; accent-color: var(--ok); justify-self: center; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.notice { padding: 12px 14px; border-radius: 12px; background: var(--warn-bg); color: var(--warn); font-weight: 600; font-size: .88rem; }
.notice.info { background: var(--info-bg); color: var(--brand); }
.segmented { display: inline-flex; border: 1.5px solid var(--line-2); border-radius: 12px; overflow: hidden; }
.segmented button { border: 0; background: var(--surface-solid); padding: 10px 16px; font: 700 .9rem var(--font); color: var(--ink-2); cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.segmented button + button { border-left: 1.5px solid var(--line-2); }
.segmented button.on { background: var(--ink); color: var(--bg); }
.drop { border: 2px dashed var(--line-2); border-radius: 16px; padding: 28px; text-align: center; cursor: pointer; transition: border .2s, background .2s; }
.drop:hover, .drop.over { border-color: var(--brand); background: var(--info-bg); }

/* kolom rahasia tanpa memicu password manager */
.input.masked { -webkit-text-security: disc; text-security: disc; font-family: var(--mono); letter-spacing: .08em; }
