/* CBT ilmuve — antarmuka peserta.
   Arah: tenang, terpercaya, fokus. Navy logo sebagai dasar, teal sebagai aksen & penanda "dijawab", amber untuk
   ragu-ragu (mengikuti kebiasaan CBT nasional). Satu momen merek (panel login), layar ujian sengaja sunyi. */
:root {
  --navy-950: #061430;
  --navy-900: #0a1f47;
  --navy-800: #0e2a5f;
  --navy-700: #15397a;
  --navy-600: #1f4d97;
  --teal-400: #3cc6b7;
  --teal-500: #22ada3;
  --teal-600: #138d84;
  --teal-ink: #0b6f68;
  --teal-50: #e8f7f5;
  --ink: #0b1b3a;
  --ink-2: #34425e;
  --muted: #66718a;
  --faint: #98a1b4;
  --ground: #f3f5f9;
  --surface: #ffffff;
  --surface-2: #f8fafd;
  --line: #e2e7ef;
  --line-strong: #c9d1de;
  --answered: #12866f;
  --answered-soft: #e3f5ef;
  --flag: #d99400;
  --flag-soft: #fff5d9;
  --flag-ink: #6a4900;
  --danger: #c23a2b;
  --danger-soft: #fdeeec;
  --danger-ink: #7c2117;
  --info-soft: #ebf1fb;
  --brand: var(--navy-800);
  --accent: var(--teal-500);
  --font: "Jakarta", "CBT Arab", "CBT Jawa", "CBT Sunda", "CBT Bali", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  --mono: "CBT Mono", ui-monospace, "Cascadia Mono", Consolas, "Roboto Mono", monospace;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(11, 27, 58, .05), 0 2px 8px rgba(11, 27, 58, .04);
  --shadow-md: 0 1px 2px rgba(11, 27, 58, .04), 0 10px 32px rgba(11, 27, 58, .08);
  --shadow-lg: 0 2px 6px rgba(11, 27, 58, .05), 0 24px 60px rgba(11, 27, 58, .14);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --text-scale: 1;
  --pad-x: max(16px, env(safe-area-inset-left, 0px));
  --pad-x-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}
* { box-sizing: border-box; }
/* Atribut hidden selalu menang atas display komponen (overlay, formulir mulai, dll.). */
[hidden] { display: none !important; }
html, body { height: 100%; }
/* Font aksara Arab/Jawa/Sunda/Bali (public/vendor/fonts) hanya diunduh bila aksaranya muncul (unicode-range). */
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 calc(16px * var(--text-scale))/1.55 var(--font);
  letter-spacing: -.006em;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
:focus-visible { outline: 3px solid rgba(34, 173, 163, .55); outline-offset: 2px; }
a { color: var(--navy-700); }
h1, h2, h3 { text-wrap: balance; letter-spacing: -.02em; }
p { text-wrap: pretty; }
.cbt-app { min-height: 100%; display: flex; flex-direction: column; }
.cbt-boot { margin: auto; display: grid; justify-items: center; gap: 14px; color: var(--muted); font-weight: 500; }
.cbt-boot::before { content: ""; width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--teal-500); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Sumber gambar kamera langsung (tidak terlihat; pratinjau kamera peserta ada di panel Pengawasan). */
.frame-source { position: fixed; left: -4px; top: -4px; width: 2px; height: 2px; opacity: 0; pointer-events: none; }
.mono { font-family: var(--mono); letter-spacing: .04em; }
/* Plus Jakarta Sans memberi ruang kiri lebar pada titik/koma; dirapatkan pada judul besar. */
.tp { margin-left: -.08em; }

/* ---------- Tombol ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 20px;
  border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
  font-weight: 650; text-decoration: none; letter-spacing: -.005em;
  transition: background-color .2s var(--ease-out), border-color .2s var(--ease-out), box-shadow .2s var(--ease-out), transform .15s var(--ease-out);
}
.btn:hover:not(:disabled) { border-color: #aeb9cc; }
.btn:active:not(:disabled) { transform: translateY(1px) scale(.99); }
.btn-primary {
  background: linear-gradient(180deg, var(--navy-700), var(--navy-800));
  border-color: var(--navy-800); color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .12) inset, 0 6px 16px rgba(14, 42, 95, .22);
}
.btn-primary:hover:not(:disabled) { background: linear-gradient(180deg, var(--navy-600), var(--navy-700)); border-color: var(--navy-700); }
.btn-teal { background: var(--teal-500); border-color: var(--teal-500); color: #04201d; box-shadow: 0 6px 16px rgba(34, 173, 163, .28); }
.btn-teal:hover:not(:disabled) { background: var(--teal-400); border-color: var(--teal-400); }
.btn-flag { background: var(--flag-soft); border-color: #efd389; color: var(--flag-ink); }
.btn-flag[aria-pressed="true"] { background: var(--flag); border-color: var(--flag); color: #241900; }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; box-shadow: 0 6px 16px rgba(194, 58, 43, .22); }
.btn-block { width: 100%; }
.btn-ghost { min-height: 40px; padding: 6px 14px; background: transparent; border-color: transparent; color: var(--navy-700); }
.btn-ghost:hover:not(:disabled) { background: var(--info-soft); border-color: transparent; }
.btn-soft { background: var(--surface-2); border-color: var(--line); }
.btn .ico { width: 20px; height: 20px; flex: none; }

/* ---------- Halaman masuk ---------- */
.cbt-login { flex: 1; display: grid; grid-template-columns: minmax(380px, 1fr) minmax(0, 1.08fr); min-height: 100vh; min-height: 100svh; }
.login-hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  padding: clamp(36px, 5vw, 72px) clamp(32px, 5vw, 80px);
  color: #eaf0fb;
  background:
    radial-gradient(120% 80% at 100% 100%, rgba(34, 173, 163, .32), transparent 55%),
    radial-gradient(90% 70% at 0% 0%, rgba(41, 92, 170, .55), transparent 60%),
    linear-gradient(165deg, var(--navy-800) 0%, var(--navy-900) 55%, var(--navy-950) 100%);
}
/* Garis halus melingkar — gema lingkaran pada logo. */
.login-hero::before, .login-hero::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .07); pointer-events: none; }
.login-hero::before { width: 760px; height: 760px; right: -330px; bottom: -330px; }
.login-hero::after { width: 520px; height: 520px; right: -210px; bottom: -210px; border-color: rgba(60, 198, 183, .16); }
.hero-inner { display: grid; gap: 26px; max-width: 460px; }
.hero-logo { width: clamp(112px, 11vw, 148px); height: auto; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .28)); }
.overline { margin: 0; font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--teal-400); }
.hero-title { margin: -10px 0 0; font-size: clamp(2rem, 3.1vw, 2.9rem); line-height: 1.06; font-weight: 800; letter-spacing: -.035em; color: #fff; }
.hero-title > span:not(.tp) { color: #9fb3d6; font-weight: 700; }
.hero-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.hero-points li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start; color: #b9c7e2; font-size: .95rem; line-height: 1.5; }
.hero-points b { color: #fff; font-weight: 650; }
.hero-points .tick { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: rgba(34, 173, 163, .16); border: 1px solid rgba(60, 198, 183, .32); }
.hero-points .tick svg { width: 15px; height: 15px; stroke: var(--teal-400); }
.hero-foot { margin: 0; font-size: .8rem; color: #8193b8; letter-spacing: .01em; }
.login-panel { display: grid; align-content: center; justify-items: center; gap: 18px; padding: clamp(28px, 5vw, 64px) var(--pad-x-r) clamp(28px, 5vw, 64px) var(--pad-x); background: var(--ground); }
.login-form { width: min(100%, 440px); }
.login-mobile-brand { display: none; }
.login-form h1 { margin: 0; font-size: clamp(1.7rem, 2.2vw, 2rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.login-form .sub { margin: 8px 0 26px; color: var(--muted); }
.login-card { padding: clamp(22px, 3vw, 32px); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.qr-button { width: 100%; margin-bottom: 18px; justify-content: flex-start; gap: 12px; padding-inline: 14px; border-style: dashed; border-color: #9ed9d2; background: var(--teal-50); color: var(--teal-ink); }
.qr-button:hover:not(:disabled) { border-color: var(--teal-500); }
.qr-button small { display: block; font-weight: 500; color: #3f7f79; font-size: .8rem; }
.qr-button .ico { width: 26px; height: 26px; }
.login-help { margin: 16px 0 0; color: var(--muted); font-size: .86rem; line-height: 1.55; }
.cbt-login-foot { width: min(100%, 440px); display: grid; gap: 12px; justify-items: center; text-align: center; color: var(--muted); font-size: .9rem; }
.cbt-login-foot > a, .cbt-login-foot > button { color: var(--navy-700); font-weight: 650; text-decoration: none; background: none; border: 0; padding: 4px 8px; border-radius: 8px; }
.cbt-login-foot > a:hover, .cbt-login-foot > button:hover { background: var(--info-soft); }
.login-links { margin: 0; display: flex; gap: 8px; justify-content: center; font-size: .84rem; color: var(--faint); }
.login-links a { color: var(--muted); text-decoration: none; }
.login-links a:hover { color: var(--navy-700); text-decoration: underline; }
.login-support { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 10px; }
.login-support-links { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.app-promo { width: min(100%, 440px); display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink); box-shadow: var(--shadow-sm); transition: border-color .2s, box-shadow .2s, transform .2s var(--ease-out); }
.app-promo:hover { border-color: #b7c4da; box-shadow: var(--shadow-md); transform: translateY(-1px); }
.app-promo img { width: 44px; height: 44px; border-radius: 12px; }
.app-promo b { display: block; font-size: .93rem; }
.app-promo small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.35; }
.app-promo .go { font-weight: 700; color: var(--teal-ink); font-size: .88rem; white-space: nowrap; }
/* Aplikasi Android: versi baru tersedia (tidak memblokir). */
.app-update { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding: 12px 12px 12px 14px; border-radius: 12px; border: 1px solid #a9ddd6; border-left-width: 4px; border-left-color: var(--teal-500); background: var(--teal-50); color: var(--teal-ink); }
.app-update span { flex: 1; min-width: 0; }
.app-update b { display: block; font-size: .92rem; color: var(--ink); }
.app-update small { display: block; font-size: .8rem; line-height: 1.4; color: var(--teal-ink); }
.app-update .btn { flex: none; min-height: 40px; padding-inline: 16px; }
.device-required { display: grid; gap: 12px; }
.device-required .btn { justify-self: start; }

/* ---------- Kartu umum (tata tertib, simulasi, cek perangkat, lobi, selesai) ---------- */
.cbt-shell { flex: 1; display: flex; flex-direction: column; }
.cbt-topbar { display: flex; align-items: center; gap: 12px; padding: 12px var(--pad-x-r) 12px var(--pad-x); background: var(--surface); border-bottom: 1px solid var(--line); }
.cbt-topbar img { width: 34px; height: 34px; border-radius: 10px; }
.cbt-topbar .brandline { display: grid; line-height: 1.2; min-width: 0; }
.cbt-topbar .brandline b { font-size: .95rem; font-weight: 750; letter-spacing: -.015em; }
.cbt-topbar .brandline small { color: var(--muted); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cbt-center { flex: 1; display: grid; place-items: center; padding: clamp(18px, 4vw, 40px) var(--pad-x-r) clamp(24px, 5vw, 48px) var(--pad-x); }
.cbt-card { width: min(100%, 560px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 3.5vw, 34px); box-shadow: var(--shadow-md); animation: rise .5s var(--ease-out) both; }
.cbt-card.wide { width: min(100%, 900px); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.cbt-card h1 { margin: 0 0 4px; font-size: clamp(1.35rem, 2.4vw, 1.7rem); line-height: 1.2; font-weight: 800; }
.cbt-card .sub { margin: 0 0 20px; color: var(--muted); }
.cbt-card h2 { margin: 22px 0 8px; font-size: 1.12rem; font-weight: 750; }
.cbt-card h2:first-child { margin-top: 0; }
.cbt-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.cbt-brand img { width: 40px; height: 40px; border-radius: 11px; flex: none; }
.cbt-brand span { display: grid; line-height: 1.25; min-width: 0; }
.cbt-brand b { font-size: .9rem; font-weight: 800; letter-spacing: -.01em; color: var(--teal-ink); }
.cbt-brand small { font-size: .95rem; font-weight: 650; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field label { font-weight: 650; font-size: .92rem; color: var(--ink-2); }
.field input { width: 100%; min-height: 52px; padding: 10px 16px; border: 1.5px solid var(--line-strong); border-radius: 12px; background: var(--surface); transition: border-color .2s, box-shadow .2s; }
.field input::placeholder { color: #b3bbca; }
.field input:hover { border-color: #aeb9cc; }
.field input:focus { outline: none; border-color: var(--teal-500); box-shadow: 0 0 0 4px rgba(34, 173, 163, .16); }
.token-input { font: 700 1.3rem/1 var(--mono); letter-spacing: .24em; text-transform: uppercase; }
.help { color: var(--muted); font-size: .9rem; }
.alert { display: block; padding: 12px 14px 12px 16px; border-radius: 12px; border: 1px solid #f3c9c3; border-left-width: 4px; background: var(--danger-soft); color: var(--danger-ink); margin-bottom: 16px; line-height: 1.5; animation: shake .4s var(--ease-out); }
.alert.info { border-color: #cbd9f1; background: var(--info-soft); color: var(--navy-700); animation: none; }
.alert.warn { border-color: #efd389; background: var(--flag-soft); color: var(--flag-ink); animation: none; }
@keyframes shake { 20% { transform: translateX(-4px); } 40% { transform: translateX(4px); } 60% { transform: translateX(-2px); } 80% { transform: translateX(2px); } }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0 0 18px; }
.facts dt { color: var(--muted); font-size: .9rem; }
.facts dd { margin: 0; font-weight: 650; }
.password-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.password-field .btn { min-height: 52px; padding-inline: 14px; font-size: .88rem; }

/* Langkah sebelum ujian: tata tertib → simulasi → cek perangkat → mulai */
.flow-steps { list-style: none; display: flex; gap: 0; margin: 0 0 24px; padding: 0; counter-reset: step; }
.flow-steps li { flex: 1; position: relative; display: grid; justify-items: center; gap: 6px; text-align: center; color: var(--faint); font-size: .8rem; font-weight: 600; line-height: 1.25; }
.flow-steps li::before { content: ""; position: absolute; top: 14px; left: calc(-50% + 18px); right: calc(50% + 18px); height: 2px; border-radius: 2px; background: var(--line); }
.flow-steps li:first-child::before { display: none; }
.flow-steps span { position: relative; z-index: 1; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--line-strong); font: 700 .8rem/1 var(--mono); color: var(--muted); transition: all .3s var(--ease-out); }
.flow-steps .done { color: var(--teal-ink); }
.flow-steps .done::before, .flow-steps .current::before { background: var(--teal-500); }
.flow-steps .done span { background: var(--teal-500); border-color: var(--teal-500); color: #fff; font-size: 0; }
.flow-steps .done span::after { content: ""; width: 10px; height: 6px; border: 2.5px solid #fff; border-top: 0; border-right: 0; transform: translateY(-2px) rotate(-45deg); }
.flow-steps .current { color: var(--ink); }
.flow-steps .current span { background: var(--navy-800); border-color: var(--navy-800); color: #fff; box-shadow: 0 0 0 5px rgba(14, 42, 95, .1); }

/* Tata tertib */
.rules-text { white-space: pre-wrap; max-height: 52vh; overflow: auto; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2); line-height: 1.7; color: var(--ink-2); }
.consent { display: flex; gap: 12px; align-items: flex-start; margin: 18px 0; padding: 14px 16px; border-radius: var(--r-md); border: 1.5px solid var(--line); background: var(--surface-2); cursor: pointer; transition: border-color .2s, background-color .2s; }
.consent:has(input:checked) { border-color: var(--teal-500); background: var(--teal-50); }
.consent input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--teal-600); }
.rules { margin: 0 0 16px; padding-left: 22px; color: var(--ink-2); }
.rules li { padding-left: 4px; }
.rules li + li { margin-top: 6px; }
.rules li::marker { color: var(--teal-600); font-weight: 700; }

/* Pemeriksaan perangkat */
.check-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.camera-box { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-md); overflow: hidden; background: radial-gradient(circle at 50% 40%, #1a2f5e, var(--navy-950)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.camera-box::after { content: ""; position: absolute; inset: 14% 28% 18%; border: 2px dashed rgba(255, 255, 255, .35); border-radius: 50% 50% 46% 46%; pointer-events: none; }
.camera-box video, .camera-box img { width: 100%; height: 100%; object-fit: cover; }
.camera-box video { transform: scaleX(-1); }
.camera-box img:not([hidden]) ~ .camera-hint { display: none; }
.camera-box .camera-hint { position: absolute; inset: auto 12px 12px; padding: 7px 12px; border-radius: 10px; background: rgba(6, 20, 48, .72); color: #fff; font-size: .82rem; text-align: center; backdrop-filter: blur(6px); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.checks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); transition: border-color .3s, background-color .3s; }
.checks li b { display: block; font-size: .93rem; }
.checks li small { color: var(--muted); font-size: .84rem; }
.checks .dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #e6eaf1; margin-top: 1px; }
.checks .dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #aab3c3; }
.checks .ok { border-color: #bfe6dd; background: #f4fbf9; }
.checks .ok .dot { background: var(--answered); }
.checks .ok .dot::after { width: 9px; height: 5px; border-radius: 0; background: none; border: 2.2px solid #fff; border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.checks .bad { border-color: #f1c6c0; background: #fff8f7; }
.checks .bad .dot { background: var(--danger); }
.checks .bad .dot::after { background: #fff; width: 10px; height: 2.4px; border-radius: 2px; }
.checks .warn .dot { background: var(--flag); }
.checks .warn .dot::after { background: #fff; }
.meter { height: 8px; border-radius: 6px; background: #e6e9f0; overflow: hidden; margin-top: 6px; }
.meter i { display: block; height: 100%; width: 0; background: var(--teal-500); transition: width .15s; }

/* Simulasi */
.practice-card { border: 0; padding: 0; box-shadow: none; background: transparent; }
.practice-numbers { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.practice-numbers button { min-width: 42px; min-height: 42px; border-radius: 10px; border: 1.5px solid var(--line-strong); background: var(--surface); font: 700 .9rem/1 var(--mono); }
.practice-numbers .answered { background: var(--answered); border-color: var(--answered); color: #fff; }
.practice-numbers .flagged { background: var(--flag); border-color: var(--flag); color: #241900; }
.practice-numbers .current { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--navy-800); }

/* Biodata & mulai ujian: kartu peserta digital */
.biodata { position: relative; display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 20px; align-items: start; margin: 6px 0 10px; padding: 20px; border-radius: var(--r-md); background: linear-gradient(135deg, #fbfcfe, #f2f6fb); border: 1px solid var(--line); overflow: hidden; }
.biodata::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: linear-gradient(var(--teal-500), var(--navy-700)); }
.biodata-photo { width: 112px; aspect-ratio: 3 / 4; border-radius: 12px; border: 1px solid var(--line); background: #e9edf4; display: grid; place-items: center; overflow: hidden; color: var(--faint); font-size: .8rem; box-shadow: var(--shadow-sm); }
.biodata-photo img { width: 100%; height: 100%; object-fit: cover; }
.biodata .facts { margin: 0; }
.lobby-status { margin: 18px 0 6px; padding: 22px 18px; border-radius: var(--r-md); text-align: center; color: #c6d3ea; background: radial-gradient(120% 120% at 100% 100%, rgba(34, 173, 163, .25), transparent 55%), linear-gradient(160deg, var(--navy-800), var(--navy-950)); box-shadow: var(--shadow-md); }
.lobby-status .help { margin: 0; color: #b6c4de; }
.countdown { font: 700 clamp(2.4rem, 7vw, 3.4rem)/1 var(--mono); letter-spacing: .02em; color: #fff; margin: 10px 0 2px; font-variant-numeric: tabular-nums; }
.start-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; margin-top: 18px; }
.start-form .btn { min-height: 52px; padding-inline: 26px; }

/* ---------- Ujian ---------- */
.exam-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 14px;
  padding: 10px var(--pad-x-r) 10px var(--pad-x);
  background: linear-gradient(180deg, var(--navy-800), var(--navy-900)); color: #fff;
  box-shadow: 0 6px 18px rgba(6, 20, 48, .18);
}
.exam-header .exam-logo { width: 34px; height: 34px; border-radius: 10px; flex: none; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); }
.exam-header .who { min-width: 0; flex: 1; line-height: 1.3; }
.exam-header .who b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 700; letter-spacing: -.01em; }
.exam-header .who small { color: #a9b8d4; font-size: .82rem; }
/* Tes berjenjang: bagian yang sedang dikerjakan, di bawah nama peserta. */
.exam-header .section-chip { display: inline-block; margin-top: 3px; padding: 2px 9px; border-radius: 999px; background: rgba(60, 198, 183, .16); color: #8fe3d8; font-size: .76rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.exam-progress { position: sticky; top: var(--header-h, 58px); z-index: 19; height: 3px; background: #dbe2ec; }
.exam-progress i { display: block; height: 100%; width: var(--progress, 0%); background: linear-gradient(90deg, var(--teal-500), var(--teal-400)); transition: width .5s var(--ease-out); }
.timer { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 12px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .12); font: 700 1.35rem/1.1 var(--mono); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.timer.low { background: var(--flag); border-color: var(--flag); color: #241900; }
.timer.critical { background: var(--danger); border-color: var(--danger); color: #fff; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(194, 58, 43, .25); } }
.net { width: 10px; height: 10px; border-radius: 50%; background: #4fd8a3; box-shadow: 0 0 0 4px rgba(79, 216, 163, .18); flex: none; }
.net.off { background: #ff8a7a; box-shadow: 0 0 0 4px rgba(255, 138, 122, .22); }
.text-size { border: 1px solid rgba(255, 255, 255, .22); background: transparent; color: #fff; border-radius: 10px; min-height: 38px; padding: 0 11px; font-weight: 700; }
.text-size:hover { background: rgba(255, 255, 255, .08); }
/* Ponsel: pilihan ukuran teks di panel nomor (header terlalu sempit untuk tombol A±). */
.text-size-panel { display: none; }
.text-size-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.text-size-options button { display: grid; justify-items: center; align-content: center; gap: 3px; min-height: 58px; padding: 6px 4px; border-radius: 12px; border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink-2); font: 600 .74rem/1.2 var(--font); }
.text-size-options button b { font: 800 1rem/1 var(--font); color: var(--ink); }
.text-size-options .ts-0 b { font-size: .86rem; }
.text-size-options .ts-2 b { font-size: 1.2rem; }
.text-size-options button[aria-pressed="true"] { border-color: var(--navy-800); background: var(--info-soft); color: var(--navy-800); box-shadow: 0 0 0 2px rgba(14, 42, 95, .12); }
.exam-body { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; padding: 20px var(--pad-x-r) 28px var(--pad-x); max-width: 1340px; width: 100%; margin: 0 auto; }
.question-card { align-self: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(18px, 3vw, 30px); min-width: 0; box-shadow: var(--shadow-sm); }
/* Layar pembuka bagian (tes berjenjang). */
.section-intro { max-width: 680px; margin: 0 auto; }
.section-intro h2 { margin: 4px 0 14px; font-size: clamp(1.4rem, 2.6vw, 1.8rem); font-weight: 800; }
.section-kicker { margin: 0; color: var(--teal-ink); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; }
.section-instructions { margin: 0 0 16px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2); line-height: 1.7; }
.section-instructions p { margin: 0 0 8px; white-space: pre-line; }
.section-instructions p:last-child { margin-bottom: 0; }
.section-intro .btn-block { margin-top: 14px; }
.section-scores { margin: 14px auto 18px; text-align: left; max-width: 380px; }
.question-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 16px; }
.question-top b { display: inline-flex; align-items: baseline; gap: 6px; color: var(--ink); font-size: .95rem; font-weight: 700; }
.question-top b::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal-500); align-self: center; }
.save-state { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--answered-soft); color: var(--answered); font-size: .8rem; font-weight: 650; }
.save-state.pending { background: var(--flag-soft); color: var(--flag-ink); }
.save-state.error { background: var(--danger-soft); color: var(--danger-ink); }
.prompt { font-size: calc(1.1rem * 1); line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; margin-bottom: 20px; color: var(--ink); }
.options { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; }
.option { position: relative; display: flex; align-items: flex-start; gap: 14px; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); cursor: pointer; text-align: left; transition: border-color .2s var(--ease-out), background-color .2s var(--ease-out), box-shadow .2s var(--ease-out); }
.option:hover { border-color: #b3c0d6; background: var(--surface-2); }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option:has(input:focus-visible) { outline: 3px solid rgba(34, 173, 163, .5); outline-offset: 2px; }
.option .letter { flex: 0 0 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; border: 1.5px solid var(--line-strong); background: var(--surface); font: 700 .95rem/1 var(--mono); color: var(--ink-2); transition: all .2s var(--ease-out); }
.option .text { padding-top: 5px; overflow-wrap: anywhere; white-space: pre-wrap; }
.option.selected { border-color: var(--teal-500); background: var(--teal-50); box-shadow: 0 0 0 3px rgba(34, 173, 163, .12); }
.option.selected .letter { background: var(--teal-500); border-color: var(--teal-500); color: #fff; animation: pop .3s var(--ease-spring); }
@keyframes pop { from { transform: scale(.82); } to { transform: none; } }
.option .body { flex: 1; min-width: 0; display: grid; gap: 8px; }
.option .text:empty { display: none; }
/* Pilihan bergambar: kisi 2 kolom, gambar dapat diperbesar. */
.options.has-media { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.option-media { position: relative; justify-self: start; max-width: 100%; }
.option-media img { display: block; max-width: 100%; max-height: 220px; height: auto; border-radius: 10px; background: #fff; }
.zoom { position: absolute; right: 6px; bottom: 6px; width: 36px; height: 36px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .6); background: rgba(6, 20, 48, .78); color: #fff; font-size: 1.05rem; line-height: 1; display: grid; place-items: center; backdrop-filter: blur(4px); }
.stimulus .media-wrap { position: relative; display: inline-block; max-width: 100%; }
dialog.zoom-dialog { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; }
dialog.zoom-dialog::backdrop { background: rgba(6, 20, 48, .9); backdrop-filter: blur(4px); }
dialog.zoom-dialog img { display: block; max-width: 96vw; max-height: 86vh; border-radius: 12px; background: #fff; }
dialog.zoom-dialog button { display: flex; margin: 12px auto 0; }

/* Teks soal kaya: arah kanan-ke-kiri (Arab) ditentukan per paragraf; rumus KaTeX tidak terpotong. */
.rich { unicode-bidi: plaintext; text-align: start; }
.rich .katex { font-size: 1.08em; }
.rich .katex-display { margin: .5em 0; overflow-x: auto; overflow-y: hidden; padding: 2px 0; }
.math-error { color: var(--danger); background: var(--danger-soft); border-radius: 4px; padding: 0 4px; }

/* Pemutar audio soal menyimak: tanpa geser/lompat, batas putar dihitung server. */
.audio-player { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.audio-player .btn { min-width: 176px; }
.audio-track { flex: 1; min-width: 140px; height: 8px; border-radius: 6px; background: #dfe5ee; overflow: hidden; }
.audio-track i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--teal-500), var(--teal-400)); transition: width .2s linear; }
.audio-left { color: var(--ink-2); font-size: .88rem; }
.audio-player.exhausted .audio-left { color: var(--danger); }
.question-nav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.question-nav .spacer { flex: 1; }

/* Stimulus */
.stimulus { margin: 0 0 18px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2); }
.stimulus figcaption { font-weight: 700; margin-bottom: 8px; }
.stimulus p { margin: 0 0 8px; }
.stimulus small { color: var(--muted); }
.stimulus img { display: block; max-width: 100%; height: auto; border-radius: 10px; }
.table-wrap { overflow-x: auto; border-radius: 10px; border: 1px solid var(--line); }
.stimulus table { border-collapse: collapse; min-width: 100%; background: #fff; }
.stimulus th, .stimulus td { border-bottom: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.stimulus th { background: #eef2f8; font-weight: 700; font-size: .92rem; }
.stimulus tr:last-child td { border-bottom: 0; }
.stimulus svg { width: 100%; height: auto; }
.chart-grid { stroke: #e3e7ef; }
.chart-axis { stroke: #8892a8; }
.chart-text { fill: var(--ink-2); font-size: 12px; font-family: var(--font); }

/* Panel samping */
.side { display: grid; gap: 14px; align-content: start; position: sticky; top: calc(var(--header-h, 58px) + 20px); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--shadow-sm); }
.panel h2 { margin: 0 0 12px; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.number-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
.number-grid button { min-height: 42px; border-radius: 10px; border: 1.5px solid var(--line-strong); background: var(--surface); font: 700 .88rem/1 var(--mono); font-variant-numeric: tabular-nums; color: var(--ink-2); transition: transform .15s var(--ease-out), background-color .2s; }
.number-grid button:hover { border-color: #9fadc4; }
.number-grid button:active { transform: scale(.94); }
.number-grid button.answered { background: var(--answered); border-color: var(--answered); color: #fff; }
.number-grid button.flagged { background: var(--flag); border-color: var(--flag); color: #241900; }
.number-grid button.current { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--navy-800); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 14px 0 0; font-size: .8rem; color: var(--muted); }
.legend span::before { content: ""; display: inline-block; width: 11px; height: 11px; border-radius: 4px; margin-right: 6px; vertical-align: -1px; background: #fff; border: 1.5px solid var(--line-strong); }
.legend .l-answered::before { background: var(--answered); border-color: var(--answered); }
.legend .l-flagged::before { background: var(--flag); border-color: var(--flag); }
.progress-line { display: flex; justify-content: space-between; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: .86rem; color: var(--ink-2); font-weight: 600; }
.proctor-mini { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: center; }
.proctor-mini.no-camera { grid-template-columns: 1fr; }
.proctor-mini video { width: 96px; height: 72px; object-fit: cover; border-radius: 10px; background: var(--navy-950); transform: scaleX(-1); }
.proctor-mini small { color: var(--muted); display: block; font-size: .82rem; margin-top: 2px; }
.violation-count { font-weight: 700; font-size: .92rem; }
.violation-count.high { color: var(--danger); }
.side-toggle { display: none; }

/* Lapisan: layar penuh, kunci, pesan pengawas, konfirmasi */
/* Lapisan pekat penuh: soal tidak terbaca saat keluar layar penuh atau dikunci. */
.overlay { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; padding: 24px; color: #fff; text-align: center; background: radial-gradient(100% 80% at 50% 0%, rgba(41, 92, 170, .45), transparent 60%), linear-gradient(170deg, var(--navy-900), var(--navy-950)); animation: fade .3s ease both; }
@keyframes fade { from { opacity: 0; } }
.overlay .box { margin: auto; max-width: 480px; display: grid; gap: 14px; justify-items: center; }
.overlay .box::before { content: ""; width: 64px; height: 64px; margin-bottom: 6px; border-radius: 18px; background: rgba(255, 255, 255, .08) url("/brand/mark-sm.webp") center / 70% no-repeat; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1); }
.overlay h2 { margin: 0; font-size: 1.55rem; font-weight: 800; }
.overlay p { margin: 0; color: #c3cfe6; line-height: 1.6; }
.overlay.lock { background: radial-gradient(100% 80% at 50% 0%, rgba(194, 58, 43, .45), transparent 60%), linear-gradient(170deg, #3a0f0b, #1d0605); }
.banner { position: sticky; top: calc(var(--header-h, 58px) + 10px); z-index: 15; margin: 12px var(--pad-x-r) 0 var(--pad-x); padding: 13px 16px; border-radius: var(--r-md); border: 1px solid #efd389; background: var(--flag-soft); color: #4d3500; display: flex; gap: 12px; align-items: flex-start; box-shadow: var(--shadow-md); animation: rise .4s var(--ease-out) both; }
.banner.info { border-color: #cbd9f1; background: var(--info-soft); color: var(--navy-800); }
.banner p { margin: 0; flex: 1; }
.banner button { border: 0; background: transparent; font-weight: 700; color: inherit; padding: 2px 6px; border-radius: 8px; }
dialog.confirm { --dlg-pad: 26px; border: 0; border-radius: var(--r-lg); padding: var(--dlg-pad); width: min(92vw, 520px); background: var(--surface); box-shadow: 0 40px 100px rgba(6, 20, 48, .4); }
dialog.confirm[open] { animation: rise .35s var(--ease-out) both; }
dialog.confirm::backdrop { background: rgba(6, 20, 48, .7); backdrop-filter: blur(3px); }
dialog.confirm h2 { margin: 0 0 8px; font-size: 1.3rem; font-weight: 800; }
/* Tombol dialog menempel di bawah: tetap terlihat walau isi dialog harus digulir (layar pendek / banyak soal kosong). */
dialog.confirm .actions { position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin: 6px calc(-1 * var(--dlg-pad)) calc(-1 * var(--dlg-pad)); padding: 14px var(--dlg-pad) var(--dlg-pad); background: var(--surface); }
.summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 16px 0; }
.summary div { padding: 12px 8px; border-radius: 12px; background: var(--ground); text-align: center; color: var(--muted); font-size: .85rem; }
.summary b { display: block; font: 700 1.6rem/1.1 var(--mono); color: var(--ink); font-variant-numeric: tabular-nums; margin-bottom: 2px; }

/* Selesai */
.finish-mark { width: 76px; height: 76px; margin: 4px auto 14px; display: grid; place-items: center; border-radius: 50%; background: var(--answered-soft); }
.finish-mark svg { width: 40px; height: 40px; stroke: var(--answered); stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 48; stroke-dashoffset: 48; animation: draw .7s .15s var(--ease-out) forwards; }
.finish-mark.closed { background: var(--info-soft); }
.finish-mark.closed svg { stroke: var(--navy-700); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.finished { text-align: center; }
.finished h2 { font-size: 1.5rem; font-weight: 800; margin: 0 0 6px; }
.finished .facts { text-align: left; }
.score { font: 800 clamp(3.2rem, 9vw, 4.6rem)/1 var(--font); color: var(--navy-800); margin: 16px 0 6px; font-variant-numeric: tabular-nums; letter-spacing: -.04em; }

.cbt-toasts { position: fixed; right: var(--pad-x-r); bottom: max(16px, env(safe-area-inset-bottom, 0px)); z-index: 80; display: grid; gap: 8px; max-width: min(92vw, 400px); }
.cbt-toast { padding: 12px 16px; border-radius: 12px; background: var(--navy-900); color: #fff; box-shadow: 0 14px 40px rgba(6, 20, 48, .35); font-size: .92rem; font-weight: 500; animation: rise .35s var(--ease-out) both; }
.cbt-toast.warn { background: #6e4a00; }

.cbt-foot { padding: 16px var(--pad-x-r) max(18px, env(safe-area-inset-bottom, 0px)) var(--pad-x); text-align: center; color: var(--faint); font-size: .78rem; }

/* ---------- Layar sedang ---------- */
@media (max-width: 1080px) {
  .cbt-login { grid-template-columns: minmax(340px, .9fr) minmax(0, 1fr); }
  .hero-points li:nth-child(n + 3) { display: none; }
}
@media (max-width: 920px) {
  .exam-body { grid-template-columns: 1fr; padding-top: 14px; }
  .side { position: fixed; inset: auto 0 0 0; top: auto; z-index: 30; max-height: 74vh; overflow: auto; padding: 18px var(--pad-x-r) max(18px, env(safe-area-inset-bottom, 0px)) var(--pad-x); background: var(--ground); border-radius: 22px 22px 0 0; border-top: 1px solid var(--line); box-shadow: 0 -20px 50px rgba(6, 20, 48, .22); transform: translateY(105%); transition: transform .35s var(--ease-out); }
  .side::before { content: ""; display: block; width: 44px; height: 5px; margin: -6px auto 12px; border-radius: 4px; background: var(--line-strong); }
  .side.open { transform: none; }
  .exam-header .side-toggle { display: inline-flex; min-height: 38px; padding: 6px 12px; border-color: rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .1); color: #fff; font-size: .88rem; }
  .exam-header .who small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .number-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .check-grid { grid-template-columns: 1fr; }
  /* Navigasi soal di ponsel: Sebelumnya | Berikutnya, lalu Ragu-ragu | Kosongkan. */
  .question-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .question-nav .spacer { display: none; }
  .question-nav #prevQ { order: 1; }
  .question-nav #nextQ, .question-nav #finishQ { order: 2; }
  .question-nav #flagQ { order: 3; }
  .question-nav #clearQ { order: 4; }
  .question-nav:not(:has(#clearQ)) #flagQ { grid-column: 1 / -1; }
  .exam-header { gap: 10px; }
  .timer { font-size: 1.1rem; padding: 6px 10px; }
  .start-form { grid-template-columns: 1fr; }
}
/* Tablet mendatar & Chromebook: panel nomor yang lebih tinggi dari layar dapat digulir sendiri. */
@media (min-width: 921px) {
  .side { max-height: calc(100vh - var(--header-h, 58px) - 32px); max-height: calc(100dvh - var(--header-h, 58px) - 32px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 2px 6px 8px; margin: -2px -6px 0; }
}

/* ---------- Ponsel: panel merek menjadi pita di atas, formulir naik menumpuk ---------- */
@media (max-width: 820px) {
  .cbt-login { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .login-hero { padding: max(28px, env(safe-area-inset-top, 0px)) var(--pad-x-r) 76px var(--pad-x); gap: 0; align-items: center; text-align: center; }
  .hero-inner { justify-items: center; gap: 12px; max-width: none; }
  .hero-logo { width: 86px; }
  .hero-title { font-size: 1.35rem; margin: 0; }
  .hero-title br { display: none; }
  .hero-title > span:not(.tp) { display: none; }
  .hero-points, .hero-foot { display: none; }
  .overline { font-size: .68rem; }
  .login-panel { align-content: start; padding-top: 0; margin-top: -56px; position: relative; z-index: 1; background: transparent; }
  .login-panel::before { content: ""; position: absolute; inset: 56px 0 0; z-index: -1; background: var(--ground); }
  .login-form h1 { font-size: 1.5rem; }
  .login-form .sub { margin-bottom: 20px; }
}
@media (max-width: 560px) {
  .options.has-media { grid-template-columns: 1fr; }
  .biodata { grid-template-columns: 84px minmax(0, 1fr); gap: 14px; padding: 16px; }
  .biodata-photo { width: 84px; }
  .facts { grid-template-columns: 1fr; gap: 0; }
  .facts dt { margin-top: 8px; font-size: .8rem; }
  .flow-steps li { font-size: 0; gap: 0; }
  .flow-steps li.current { font-size: .78rem; gap: 6px; }
  .exam-header .exam-logo { display: none; }
  .text-size { display: none; }
  .text-size-panel { display: block; }
  .cbt-card { border-radius: 18px; }
  .summary b { font-size: 1.35rem; }
  dialog.confirm { --dlg-pad: 22px; }
  dialog.confirm .actions { flex-direction: column-reverse; align-items: stretch; }
  dialog.confirm .actions .btn { width: 100%; }
}
/* Ponsel sangat sempit (320–380 px): tautan Unduh turun ke bawah teks promo aplikasi. */
@media (max-width: 380px) {
  .app-promo { grid-template-columns: 44px minmax(0, 1fr); align-items: start; }
  .app-promo .go { grid-column: 2; }
}
/* Ponsel mendatar (tinggi layar pendek): jarak dirapatkan agar soal & pilihan lebih banyak terlihat. */
@media (orientation: landscape) and (max-height: 520px) {
  .exam-header { padding-block: 6px; }
  .exam-header .who small { display: none; }
  .timer { font-size: 1.02rem; padding: 5px 10px; }
  .exam-body { padding-top: 10px; padding-bottom: 16px; gap: 12px; }
  .question-card { padding: 14px 18px; }
  .options { gap: 7px; }
  .option { padding: 8px 12px; gap: 12px; }
  .option .letter { flex-basis: 30px; height: 30px; border-radius: 9px; }
  .option .text { padding-top: 3px; }
  .question-nav { margin-top: 14px; padding-top: 12px; }
  .cbt-center { padding-block: 12px 18px; }
  .login-hero { padding-bottom: 64px; }
  .hero-logo { width: 64px; }
  dialog.confirm { --dlg-pad: 18px; }
  dialog.confirm .actions { flex-direction: row; padding-top: 10px; }
  dialog.confirm .actions .btn { width: auto; }
  .summary { margin: 10px 0; }
  .summary div { padding: 6px; }
  .summary b { font-size: 1.15rem; }
}
@media (orientation: landscape) and (max-height: 520px) and (max-width: 920px) {
  .side { max-height: 88vh; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
