/* l1-course.css — IPTPA Level I online course (learner side).
   Brand: navy #0f1d47 + green #22c55e, Oswald headings (uppercase), Inter body. Logo sits on white.
   #22c55e is decorative only (rules, rings, bars): text and white-on-colour buttons use --green-ink (5:1). */
:root {
  --navy-dark: #0f1d47; --navy: #1a2f6e; --navy-light: #29387b;
  --green: #22c55e; --green-ink: #15803d; --green-bright: #4ade80; --yellow: #fbbf24;
  --bg: #f4f6fb; --surface: #fff; --line: #d9deea; --muted: #475569; --text: #1e293b;
  --amber: #b45309; --red: #b91c1c; --focus: #2563eb;
  --radius: 12px; --shadow: 0 1px 2px rgba(15,29,71,.06), 0 4px 16px rgba(15,29,71,.07);
  --head: 'Oswald', 'Arial Narrow', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 88px; scroll-padding-bottom: 96px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--head); text-transform: uppercase; letter-spacing: .02em; line-height: 1.25; color: var(--navy-dark); margin: 0; font-weight: 600; }
a { color: var(--navy); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1:focus, h2:focus, #c-app:focus { outline: none; } /* programmatic focus after navigation: no ring */
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--navy-dark); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 50; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* ── top bar ── */
.bar-top { background: var(--surface); border-bottom: 3px solid var(--green); position: sticky; top: 0; z-index: 20; box-shadow: 0 2px 10px rgba(15,29,71,.08); }
.bar-in { max-width: 1040px; margin: 0 auto; padding: 8px 16px; display: flex; align-items: center; gap: 14px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand img { height: 48px; width: auto; display: block; }
.brand-txt { border-inline-start: 2px solid var(--line); padding-inline-start: 12px; line-height: 1.15; min-width: 0; }
.brand-eyebrow { font: 600 11px/1 'Inter', sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--green-ink); }
.brand-title { font-family: var(--head); text-transform: uppercase; font-weight: 600; font-size: 1.05rem; letter-spacing: .04em; color: var(--navy-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-portal { margin-inline-start: auto; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--navy-dark); text-decoration: none; font-weight: 600; font-size: .9rem; white-space: nowrap; }
.c-portal:hover { text-decoration: underline; }
.c-portal + .c-lang { margin-inline-start: 0; }
.c-lang[hidden] { display: none; }
.c-lang { margin-inline-start: auto; font-size: .85rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.c-lang select { min-height: 40px; padding-block: 4px; padding-inline: 10px 28px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--navy-dark); font: 600 .9rem 'Inter', sans-serif; }

.page { max-width: 1040px; margin: 0 auto; padding: 20px 16px 40px; }
#c-app { outline: none; }
.c-msg { color: var(--muted); }
.c-err { color: var(--red); font-weight: 600; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

/* ── buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border: 2px solid var(--green-ink); border-radius: 10px; background: var(--green-ink); color: #fff; font: 600 .95rem 'Inter', sans-serif; text-decoration: none; cursor: pointer; transition: background .15s, transform .05s; }
.btn:hover { background: #166534; border-color: #166534; }
.btn:active { transform: translateY(1px); }
.btn.secondary { background: #fff; color: var(--navy-dark); border-color: var(--line); }
.btn.secondary:hover { border-color: var(--navy); background: #f8fafc; }
.btn.navy { background: var(--navy-dark); border-color: var(--navy-dark); }
.btn.navy:hover { background: var(--navy); border-color: var(--navy); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn.lg { min-height: 52px; padding: 12px 28px; font-size: 1.05rem; }
.row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.partner-logo { margin-inline-end: 10px; }
.partner-draft { margin-inline-start: 8px; }

/* ── course home ── */
.hero { background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%); color: #fff; border-radius: var(--radius); padding: 24px; display: flex; flex-wrap: wrap; gap: 20px 28px; align-items: center; justify-content: space-between; box-shadow: var(--shadow); border-bottom: 4px solid var(--green); }
.hero h1 { color: #fff; font-size: clamp(1.4rem, 4vw, 1.9rem); }
.hero .eyebrow { font: 600 12px/1 'Inter', sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--green-bright); margin-bottom: 8px; }
.hero .next { color: #cbd5ee; margin: 8px 0 16px; font-size: .95rem; }
.hero .next strong { color: #fff; }
.hero .btn { background: var(--green); border-color: var(--green); color: var(--navy-dark); }
.hero .btn:hover { background: var(--green-bright); border-color: var(--green-bright); }
.ring { --p: 0; width: 112px; height: 112px; border-radius: 50%; background: conic-gradient(var(--green) calc(var(--p) * 1%), rgba(255,255,255,.18) 0); display: grid; place-items: center; flex: none; }
.ring > div { width: 86px; height: 86px; border-radius: 50%; background: var(--navy-dark); display: grid; place-items: center; text-align: center; }
.ring b { font: 600 1.6rem/1 var(--head); display: block; }
.ring small { font-size: .7rem; color: #cbd5ee; display: block; }
.stats { display: flex; gap: 24px; flex-wrap: wrap; font-size: .9rem; color: #cbd5ee; }
.stats b { color: #fff; font-size: 1.1rem; }
.final-card { margin-top: 16px; padding: 18px 20px; border-inline-start: 5px solid var(--yellow); }
.final-card.passed { border-inline-start-color: var(--green); }
.final-card h2 { font-size: 1.1rem; margin-bottom: 6px; }
.complete-banner { margin-top: 16px; padding: 14px 18px; border-radius: var(--radius); background: #f0fdf4; border: 1px solid #bbf7d0; color: #14532d; font-weight: 600; }

.sec-title { font-size: 1.05rem; margin: 26px 0 10px; display: flex; align-items: center; gap: 10px; }
.sec-title::after { content: ''; flex: 1; height: 2px; background: linear-gradient(90deg, var(--green), transparent); }
.mod { margin-bottom: 12px; overflow: hidden; }
.mod > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 14px 16px; min-height: 64px; }
.mod > summary::-webkit-details-marker { display: none; }
.mod > summary:hover { background: #f8fafc; }
.num { width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; background: #e8edf8; color: var(--navy-dark); font: 600 1.05rem var(--head); }
.mod.passed .num { background: var(--green-ink); color: #fff; }
.mod.progress .num { background: var(--navy-dark); color: #fff; }
.mod.locked .num { background: #eef1f6; color: #64748b; }
.mod-main { flex: 1; min-width: 0; }
.mod-h { display: block; font-size: 1rem; text-transform: none; font-family: 'Inter', sans-serif; letter-spacing: 0; font-weight: 700; color: var(--navy-dark); }
.mod-meta { display: block; font-size: .85rem; color: var(--muted); margin-top: 2px; }
.mod-bar { display: block; height: 5px; background: #e2e8f0; border-radius: 3px; margin-top: 8px; overflow: hidden; }
.mod-bar span { display: block; height: 100%; background: var(--green); }
.chip { display: inline-flex; align-items: center; gap: 5px; font: 600 .78rem/1 'Inter', sans-serif; padding: 6px 10px; border-radius: 999px; white-space: nowrap; flex: none; }
.chip.passed { background: #dcfce7; color: #14532d; }
.chip.progress { background: #e0e7ff; color: #1e3a8a; }
.chip.available { background: #f1f5f9; color: #334155; border: 1px solid var(--line); }
.chip.locked { background: #f1f5f9; color: #475569; }
.chev { flex: none; width: 10px; height: 10px; border-right: 2px solid #64748b; border-bottom: 2px solid #64748b; transform: rotate(45deg); transition: transform .15s; margin-block: 0 3px; margin-inline: 2px 4px; }
.mod[open] .chev { transform: rotate(225deg); margin-bottom: -3px; }
.mod-body { padding: 4px 16px 16px; border-top: 1px solid var(--line); }
.lessons { list-style: none; margin: 0; padding: 0; }
.lessons li a { display: flex; align-items: center; gap: 12px; padding: 12px 6px; min-height: 48px; border-bottom: 1px solid #eef1f6; color: var(--text); text-decoration: none; }
.lessons li a:hover { background: #f8fafc; }
.lessons li:last-child a { border-bottom: 0; }
.tick { width: 22px; height: 22px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: .75rem; border: 2px solid #cbd5e1; color: transparent; }
.tick.done { background: var(--green-ink); border-color: var(--green-ink); color: #fff; }
.lock-note { padding-block: 4px 16px; padding-inline: 70px 16px; color: var(--muted); font-size: .9rem; }
.eval-box { margin-top: 14px; padding: 14px 16px; background: #f8fafc; border: 1px solid var(--line); border-radius: 10px; }
.eval-box .mod-meta { margin: 0 0 10px; }

/* ── lesson page ── */
.crumbs { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.c-back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--navy-dark); text-decoration: none; font-weight: 600; font-size: .92rem; }
.c-back:hover { text-decoration: underline; }
.where { font-size: .88rem; color: var(--muted); font-weight: 600; }
.lbar { height: 6px; background: #e2e8f0; border-radius: 3px; overflow: hidden; margin-bottom: 16px; }
.lbar span { display: block; height: 100%; background: var(--green); border-radius: 3px; transition: width .3s; }
.lesson-head { margin-bottom: 14px; }
.lesson-head h1 { font-size: clamp(1.25rem, 3.4vw, 1.7rem); text-transform: none; font-family: 'Inter', sans-serif; font-weight: 700; letter-spacing: -.01em; }
.done-badge { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: .82rem; font-weight: 700; color: #14532d; background: #dcfce7; padding: 5px 10px; border-radius: 999px; }
.frame { position: relative; background: #0b1226; border-radius: var(--radius); overflow: hidden; user-select: none; -webkit-user-select: none; box-shadow: var(--shadow); }
.frame:fullscreen, .frame.pseudo-fs { display: flex; align-items: center; justify-content: center; border-radius: 0; }
.frame.pseudo-fs { position: fixed; inset: 0; z-index: 60; height: 100dvh; }
.slide-holder { position: relative; display: flex; align-items: center; justify-content: center; min-height: 200px; touch-action: pan-y; }
.slide-holder img { display: block; width: 100%; height: auto; max-height: calc(100dvh - 260px); object-fit: contain; -webkit-user-drag: none; pointer-events: none; }
.frame:fullscreen .slide-holder img, .frame.pseudo-fs .slide-holder img { max-height: 100dvh; width: auto; max-width: 100vw; }
.slide-state { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; color: #fff; background: #0b1226; gap: 12px; align-content: center; }
.slide-state[hidden] { display: none; }
.spinner { width: 34px; height: 34px; border: 4px solid rgba(255,255,255,.2); border-top-color: var(--green); border-radius: 50%; animation: spin .8s linear infinite; margin: 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.video-holder { position: relative; padding-top: 56.25%; }
.video-holder iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.frame:fullscreen .video-holder, .frame.pseudo-fs .video-holder { width: 100vw; height: 100dvh; padding-top: 0; }
.sarrow { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(15,29,71,.72); color: #fff; font-size: 1.4rem; cursor: pointer; z-index: 2; display: grid; place-items: center; }
.sarrow:hover { background: rgba(15,29,71,.95); }
.sarrow[disabled] { display: none; }
.sarrow.l { inset-inline-start: 10px; } .sarrow.r { inset-inline-end: 10px; }
.fs { position: absolute; inset-inline-end: 10px; top: 10px; z-index: 3; background: rgba(15,29,71,.72); color: #fff; border: 0; border-radius: 10px; width: 44px; height: 44px; font-size: 1.15rem; cursor: pointer; }
.fs:hover { background: rgba(15,29,71,.95); }
.wm { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 1; }
.wm span { position: absolute; white-space: nowrap; font: 600 .78rem/1 'Inter', sans-serif; color: rgba(255,255,255,.6); text-shadow: 0 0 3px rgba(0,0,0,.85), 0 0 1px rgba(0,0,0,.9); animation: wm-hop 48s steps(1) infinite; }
@keyframes wm-hop { 0% { left: 3%; top: 6%; } 25% { right: auto; left: 55%; top: 88%; } 50% { left: 52%; top: 6%; } 75% { left: 4%; top: 88%; } }
.sdots { display: flex; align-items: center; justify-content: center; gap: 0; flex-wrap: wrap; padding: 10px 6px 4px; }
.sdots button { width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.sdots button i { width: 11px; height: 11px; border-radius: 50%; background: #64748b; display: block; transition: background .15s, transform .15s; }
.sdots button.seen i { background: var(--green-ink); }
.sdots button[aria-current="true"] i { background: var(--navy-dark); transform: scale(1.4); }
.scount { text-align: center; font-size: .85rem; color: var(--muted); font-weight: 600; }
.text-item { line-height: 1.7; max-width: 65ch; }
.lesson-box { border: 2px dashed #cbd5e1; border-radius: var(--radius); padding: 32px 18px; text-align: center; color: var(--muted); background: #f8fafc; }
.lesson-items > * + * { margin-top: 16px; }

.actionbar { position: sticky; bottom: 0; z-index: 15; margin: 24px -16px -40px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(15,29,71,.07); }
.actionbar-in { max-width: 1040px; margin: 0 auto; display: flex; gap: 10px; align-items: center; }
.actionbar .btn.primary { flex: 1; }
.actionbar .status { font-size: .85rem; color: var(--muted); margin-inline-start: auto; display: none; }
.saved { color: var(--green-ink); font-weight: 700; }

/* outline drawer */
.drawer-bg { position: fixed; inset: 0; background: rgba(15,29,71,.5); z-index: 40; }
.drawer { position: fixed; z-index: 41; background: #fff; display: flex; flex-direction: column; box-shadow: 0 0 40px rgba(15,29,71,.3); }
.drawer.side { top: 0; inset-inline-end: 0; bottom: 0; width: min(380px, 92vw); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 1rem; }
.drawer-body { overflow: auto; padding: 8px 16px 24px; }
.drawer-body h3 { font: 700 .8rem 'Inter', sans-serif; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 16px 0 4px; }
.drawer-body a[aria-current="page"] { background: #eef2ff; font-weight: 700; border-radius: 8px; }

/* ── evaluations ── */
.progress { font-size: .88rem; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.bar { height: 8px; background: #e2e8f0; border-radius: 4px; overflow: hidden; margin-bottom: 12px; }
.bar.thin { height: 6px; margin-bottom: 16px; }
.bar span { display: block; height: 100%; background: var(--green); border-radius: 4px; }
.q-card { padding: 22px; }
.q-body { font-size: 1.1rem; line-height: 1.55; margin: 8px 0 18px; color: var(--navy-dark); }
.choice { display: flex; align-items: center; gap: 12px; width: 100%; text-align: start; min-height: 52px; padding: 13px 16px; margin: 10px 0; border: 2px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; font: 500 1rem/1.4 'Inter', sans-serif; color: var(--text); }
.choice[disabled] { color: var(--text); cursor: default; }
.choice:hover:not([disabled]) { border-color: var(--navy); background: #f8fafc; }
.choice.right { border-color: var(--green-ink); background: #f0fdf4; }
.choice.wrong { border-color: var(--red); background: #fef2f2; }
.choice.picked { border-color: var(--navy-dark); background: #eef2ff; }
.choice .letter { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #e8edf8; color: var(--navy-dark); font: 700 .85rem 'Inter', sans-serif; }
.choice.picked .letter { background: var(--navy-dark); color: #fff; }
.choice.right .letter { background: var(--green-ink); color: #fff; }
.choice.wrong .letter { background: var(--red); color: #fff; }
.choice.right::after { content: '✓'; margin-inline-start: auto; font-weight: 700; color: var(--green-ink); }
.choice.wrong::after { content: '✗'; margin-inline-start: auto; font-weight: 700; color: var(--red); }
.fb { flex-basis: 100%; font-weight: 600; padding: 10px 14px; border-radius: 10px; }
.fb.right { color: #14532d; background: #f0fdf4; }
.fb.wrong { color: #991b1b; background: #fef2f2; }
.hint { margin-top: 14px; font-size: .88rem; color: var(--muted); }
.result { text-align: center; padding: 28px 12px; }
.result h2 { margin: 8px 0 12px; font-size: 1.4rem; }
.result.pass h2 { color: var(--green-ink); } .result.fail h2 { color: var(--amber); }

footer.foot { text-align: center; color: var(--muted); font-size: .82rem; padding: 8px 16px 28px; }
footer.foot a { color: var(--navy); }

@media (max-width: 640px) {
  .brand img { height: 36px; } .brand-txt { padding-inline-start: 10px; }
  .brand-title { font-size: .9rem; } .c-lang span { display: none; }
  .hero { padding: 18px; } .ring { width: 92px; height: 92px; } .ring > div { width: 70px; height: 70px; } .ring b { font-size: 1.3rem; }
  .sarrow { width: 44px; height: 44px; }
  .mod > summary { padding: 12px; gap: 10px; } .chip { padding: 5px 8px; }
  .actionbar-in .btn.secondary .lbl { display: none; }
}
@media (min-width: 900px) { .sarrow.l { inset-inline-start: 16px; } .sarrow.r { inset-inline-end: 16px; } }

/* ── evaluations: header, number strip, timer, results ── */
.qhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.timer { font: 700 .95rem 'Inter', sans-serif; font-variant-numeric: tabular-nums; padding: 5px 12px; border-radius: 999px; background: #f1f5f9; color: var(--navy-dark); }
.timer.warn { background: #fef3c7; color: #92400e; } .timer.danger { background: #fee2e2; color: #991b1b; }
.qstrip { list-style: none; margin: 8px 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.qstrip li { width: 14px; height: 14px; border-radius: 50%; background: #dbe2f0; }
.qstrip li.done { background: var(--green); } .qstrip li.cur { background: var(--navy-dark); box-shadow: 0 0 0 3px rgba(15,29,71,.2); }
.ring.light { background: conic-gradient(var(--c, var(--green)) calc(var(--p) * 1%), #e2e8f0 0); margin: 4px auto 14px; }
.ring.light > div { background: var(--surface); } .ring.light b { color: var(--navy-dark); } .ring.light small { color: var(--muted); }
.result .score-line { color: var(--muted); }

/* ── dark mode: follows the device setting; the video/slide frame is dark in both ── */
@media (prefers-color-scheme: dark) {
  :root { --bg: #0b1330; --surface: #131d44; --line: #2b3a6b; --text: #e8ecf8; --muted: #a9b4d6; --focus: #60a5fa; --heading: #e8ecf8; color-scheme: dark; }
  body { background: var(--bg); color: var(--text); }
  h1, h2, h3, .q-body, .mod-h { color: var(--heading); }
  a { color: #93c5fd; } .c-back { color: #cbd5ee; }
  .bar-top { background: var(--navy-dark); box-shadow: 0 2px 10px rgba(0,0,0,.4); }
  .brand img { background: #fff; border-radius: 10px; padding: 2px; }
  .brand-title { color: #fff; } .brand-eyebrow { color: var(--green-bright); } .brand-txt { border-inline-start-color: rgba(255,255,255,.25); }
  .c-lang { color: #cbd5ee; } .c-portal { color: #cbd5ee; } .c-lang select { background: #18244f; color: #fff; border-color: var(--line); }
  .card { background: var(--surface); border-color: var(--line); box-shadow: none; }
  .btn.secondary { background: var(--surface); color: var(--heading); border-color: var(--line); } .btn.secondary:hover { background: #18244f; border-color: #5a6ba0; }
  .mod > summary:hover { background: #18244f; }
  .num { background: #243461; color: #e8ecf8; } .mod.progress .num { background: #3b4f94; color: #fff; } .mod.locked .num { background: #1b2750; color: #8d9ac4; }
  .mod-bar, .lbar, .bar { background: #22305c; }
  .chip.passed { background: #14532d; color: #bbf7d0; } .chip.progress { background: #1e3a8a; color: #dbeafe; }
  .chip.available { background: #1b2750; color: #cbd5ee; border-color: var(--line); } .chip.locked { background: #1b2750; color: #a9b4d6; }
  .chev { border-color: #a9b4d6; }
  .mod-body, .lessons li a { border-color: #22305c; } .lessons li a { color: var(--text); } .lessons li a:hover { background: #18244f; }
  .tick { border-color: #4a5b8f; }
  .eval-box, .lesson-box { background: #18244f; border-color: var(--line); color: var(--muted); }
  .actionbar { background: rgba(19,29,68,.96); border-top-color: var(--line); box-shadow: 0 -4px 16px rgba(0,0,0,.4); }
  .done-badge { background: #14532d; color: #bbf7d0; }
  .complete-banner { background: #052e16; border-color: #166534; color: #bbf7d0; }
  .sdots button i { background: #7d8dbd; } .sdots button.seen i { background: #22c55e; } .sdots button[aria-current="true"] i { background: #e8ecf8; }
  .drawer { background: var(--surface); color: var(--text); } .drawer-head { border-color: var(--line); }
  .drawer-body a[aria-current="page"] { background: #243461; } .drawer-body h3 { color: var(--muted); }
  .choice { background: #18244f; border-color: var(--line); color: var(--text); } .choice[disabled] { color: var(--text); } .choice:hover:not([disabled]) { background: #1f2d5e; border-color: #5a6ba0; }
  .choice .letter { background: #2b3a6b; color: #e8ecf8; }
  .choice.picked { background: #243461; border-color: #93c5fd; } .choice.right { background: #052e16; border-color: #22c55e; } .choice.wrong { background: #450a0a; border-color: #ef4444; }
  .choice.right::after { color: #4ade80; } .choice.wrong::after { color: #f87171; }
  .fb.right { background: #052e16; color: #bbf7d0; } .fb.wrong { background: #450a0a; color: #fecaca; }
  .timer { background: #243461; color: #e8ecf8; } .timer.warn { background: #78350f; color: #fde68a; } .timer.danger { background: #7f1d1d; color: #fecaca; }
  .qstrip li { background: #2b3a6b; } .qstrip li.cur { background: #e8ecf8; box-shadow: 0 0 0 3px rgba(232,236,248,.25); }
  .ring.light { background: conic-gradient(var(--c, var(--green)) calc(var(--p) * 1%), #2b3a6b 0); } .ring.light b { color: #fff; }
  .result.pass h2 { color: #4ade80; } .result.fail h2 { color: #fbbf24; }
  .saved { color: #4ade80; } .c-err { color: #f87171; }
  footer.foot a { color: #93c5fd; }
}
@media (prefers-reduced-motion: reduce) {
  .wm span { animation: none; left: 3%; top: 6%; }
  .spinner { animation-duration: 2.4s; } .lbar span, .sdots button i, .btn { transition: none; }
}
@media print { .bar-top, .actionbar, .fs, .sarrow { display: none; } }
