/* LearnIT – Prüfungssimulation (.exam-…) und Baustellen/Fehlertraining (.weak-…).
   Farben nur über die Variablen aus app.css (Hell/Dunkel). --g = Notenfarbe, --tc = Themenfarbe, --c = Fachfarbe. */

/* ---------- gemeinsame Bausteine ---------- */
.exam-msg, .weak-empty, .weak-done { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.exam-msg h2, .weak-empty h2, .weak-done h1 { margin: 10px 0 0; }
.exam-msg p, .weak-empty p, .weak-done p { max-width: 540px; margin: 0; }
.exam-msg-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 12px; }
.exam-grade { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; font-size: 1.2rem; font-weight: 900; line-height: 1; color: var(--g); background: color-mix(in srgb, var(--g) 16%, transparent); border: 2px solid color-mix(in srgb, var(--g) 55%, transparent); }
.exam-topic-actions .btn.sm, .weak-topic-actions .btn.sm, .exam-step-tools .btn.sm, .exam-items-tools .btn.sm { min-height: 44px; }
@media (min-width: 900px) { .exam-topic-actions .btn.sm, .weak-topic-actions .btn.sm, .exam-step-tools .btn.sm, .exam-items-tools .btn.sm { min-height: 36px; } }

/* =====================================================================
   /pruefung – Konfigurator + Verlauf
   ===================================================================== */
.exam-intro, .weak-intro { margin-bottom: 14px; }
.exam-draft-slot:empty { display: none; }
.exam-draft { display: flex; flex-direction: column; gap: 14px; margin-bottom: 16px; }
.exam-draft .card-title { overflow-wrap: anywhere; }
.exam-draft-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.exam-draft-actions .btn.primary { flex: 1 1 160px; }
@media (min-width: 700px) { .exam-draft { flex-direction: row; align-items: center; justify-content: space-between; } .exam-draft > .row { flex: 1; min-width: 0; } .exam-draft-actions { flex: none; } .exam-draft-actions .btn.primary { flex: none; } }

.exam-builder { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .exam-builder { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } .exam-side { position: sticky; top: calc(var(--top-h) + 16px); } }
.exam-config { display: flex; flex-direction: column; }
.exam-step { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.exam-step + .exam-step { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--border); }
.exam-step-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.exam-step-head h2 { margin: 0; font-size: 1.1rem; } .exam-step-head p { margin: 0; }
.exam-step-head .grow { flex: 1 1 180px; }
.exam-step-no { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 50%; font-weight: 900; color: var(--accent-ink); background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.exam-step-tools { display: flex; align-items: center; gap: 4px; margin-left: auto; }

/* Schritt 1: Art */
.exam-kinds { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 620px) and (max-width: 899px) { .exam-kinds { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1360px) { .exam-kinds { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.exam-kind { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 124px; padding: 14px; text-align: left; border-radius: 18px; border: 1.5px solid var(--border-strong); background: var(--surface-2); color: var(--text); cursor: pointer; transition: transform .12s ease, border-color .15s ease, background .15s ease, box-shadow .15s ease; }
.exam-kind:hover { border-color: color-mix(in srgb, var(--accent) 60%, transparent); transform: translateY(-1px); }
.exam-kind:active { transform: scale(.98); }
.exam-kind.active { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 3px var(--accent-soft); }
.exam-kind.active::after { content: "✓"; position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; font-size: .78rem; font-weight: 900; background: var(--accent); color: var(--accent-ink); }
.exam-kind-ico { font-size: 1.6rem; line-height: 1.25; }
.exam-kind-title { font-size: 1.02rem; font-weight: 900; overflow-wrap: break-word; hyphens: auto; }
.exam-kind-sub { font-size: .8rem; color: var(--muted); }
.exam-kind-meta { margin-top: auto; padding-top: 8px; font-size: .76rem; font-weight: 800; color: var(--accent); }
.exam-custom { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); padding: 14px; border-radius: 16px; border: 1px dashed var(--border-strong); background: var(--surface-2); }
.exam-stepper { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.exam-stepper-row { display: flex; align-items: center; gap: 8px; }
.exam-stepper-val { flex: 1; text-align: center; font-size: 1.08rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.exam-stepper-btn { flex: none; font-size: 1.4rem; line-height: 1; }

/* Schritt 2: Fach + Lehrjahr */
.exam-years { align-self: flex-start; }
.exam-years button { min-height: 40px; }
.exam-years button:disabled, .exam-filter button:disabled { opacity: .38; cursor: not-allowed; }
.exam-subjects { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 620px) { .exam-subjects { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } }
.exam-subject { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 56px; padding: 8px 12px; text-align: left; border-radius: 16px; border: 1.5px solid var(--border-strong); background: var(--surface-2); color: var(--text); cursor: pointer; transition: border-color .15s ease, background .15s ease, box-shadow .15s ease; }
.exam-subject:hover:not(:disabled) { border-color: color-mix(in srgb, var(--c) 60%, transparent); }
.exam-subject-ico { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 11px; font-size: 1.15rem; background: color-mix(in srgb, var(--c) 18%, transparent); }
.exam-subject-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.exam-subject-text b { font-weight: 900; } .exam-subject-text small { font-size: .74rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.exam-subject.active { border-color: var(--c); background: color-mix(in srgb, var(--c) 14%, var(--surface-2)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 18%, transparent); }
.exam-subject.active b { color: var(--c); }
.exam-subject:disabled { opacity: .4; cursor: not-allowed; }

/* Schritt 3: Bereiche */
.exam-mods { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .exam-mods { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.exam-mods > .empty { grid-column: 1 / -1; }
.exam-mod { display: flex; align-items: flex-start; gap: 10px; min-width: 0; min-height: 64px; padding: 12px; text-align: left; border-radius: 16px; border: 1.5px solid var(--border-strong); background: var(--surface-2); color: var(--text); cursor: pointer; transition: border-color .15s ease, background .15s ease, transform .1s ease; }
.exam-mod:hover { border-color: color-mix(in srgb, var(--c) 60%, transparent); }
.exam-mod:active { transform: scale(.99); }
.exam-mod-check { width: 24px; height: 24px; flex: none; margin-top: 2px; display: grid; place-items: center; border-radius: 8px; border: 2px solid var(--border-strong); background: var(--surface); color: transparent; transition: background .15s ease, border-color .15s ease; }
.exam-mod.active { border-color: var(--c); background: color-mix(in srgb, var(--c) 12%, var(--surface-2)); }
.exam-mod.active .exam-mod-check { background: var(--c); border-color: var(--c); color: var(--bg); }
.exam-mod-ico { flex: none; font-size: 1.3rem; line-height: 1.25; }
.exam-mod-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.exam-mod-title { font-weight: 800; line-height: 1.3; overflow-wrap: anywhere; }
.exam-mod-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }

/* Zusammenfassung */
.exam-summary { display: flex; flex-direction: column; gap: 14px; border-color: color-mix(in srgb, var(--accent) 40%, transparent); background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 12%, var(--surface)), color-mix(in srgb, var(--accent-2) 10%, var(--surface))); }
.exam-summary-kind { font-size: .84rem; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); }
.exam-summary-nums { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 8px 0 6px; }
.exam-summary .earny-say { align-items: flex-start; } .exam-summary .earny-bubble { flex: 1; background: var(--surface); }
.exam-summary-note, .exam-summary-error { margin: 0; } .exam-summary-note { font-weight: 700; }
.exam-start .spinner { width: 20px; height: 20px; border-color: color-mix(in srgb, var(--accent-ink) 30%, transparent); border-top-color: var(--accent-ink); }

/* Verlauf */
.exam-trend { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.exam-trend-head { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.exam-trend-stats { display: flex; gap: 22px; }
.exam-chart svg { display: block; width: 100%; height: auto; max-height: 210px; }
.exam-chart-grid { stroke: var(--border); stroke-width: 1; }
.exam-chart-axis { fill: var(--faint); font-size: 10px; font-weight: 700; }
.exam-chart-line { fill: none; stroke: var(--accent-2); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.exam-chart-dot { stroke: var(--surface); stroke-width: 2; }
.exam-hist { overflow: hidden; } .exam-hist-item { min-height: 66px; }

/* =====================================================================
   /pruefung/lauf – Vollbild-Prüfungsmodus
   ===================================================================== */
body.no-chrome .view.view-examRun { padding-bottom: 0; }
.exam-run { min-height: 100dvh; display: flex; flex-direction: column; }
.exam-top { position: sticky; top: 0; z-index: 30; padding-top: env(safe-area-inset-top); background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.exam-top-row { display: flex; align-items: center; gap: 8px; width: 100%; max-width: 900px; margin: 0 auto; padding: 8px 10px 8px 4px; }
.exam-top-title { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.exam-top-title b { font-size: .95rem; }
.exam-top-count { font-size: .74rem; font-weight: 700; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.exam-timer { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 999px; border: 1.5px solid var(--border-strong); background: var(--surface); font-size: 1rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.exam-timer.low { color: var(--bad); border-color: var(--bad); background: var(--bad-soft); animation: exam-pulse 1s ease-in-out infinite; }
@keyframes exam-pulse { 50% { transform: scale(1.06); } }
.exam-submit { flex: none; padding: 0 14px; }
.progress.exam-top-bar { height: 4px; border-radius: 0; } .exam-top-bar i { border-radius: 0 999px 999px 0; }
.exam-nav-row { display: flex; align-items: center; gap: 2px; width: 100%; max-width: 900px; margin: 0 auto; padding: 2px 6px 4px 4px; }
.exam-nav { flex: 1; min-width: 0; display: flex; gap: 6px; padding: 5px 4px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.exam-nav::-webkit-scrollbar { display: none; }
.exam-dot { position: relative; width: 44px; height: 44px; flex: none; display: grid; place-items: center; padding: 0; border-radius: 50%; border: 2px solid var(--border-strong); background: var(--surface); color: var(--muted); font-size: .92rem; font-weight: 900; font-style: normal; cursor: pointer; transition: background .15s ease, border-color .15s ease, box-shadow .15s ease; }
.exam-dot.is-answered { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.exam-dot.is-current { border-color: var(--accent-2); color: var(--text); box-shadow: 0 0 0 3px var(--accent-2-soft); }
.exam-dot.is-answered.is-current { color: var(--accent); }
.exam-dot.is-flagged::after { content: ""; position: absolute; top: -3px; right: -3px; width: 13px; height: 13px; border-radius: 50%; background: var(--brand-orange); border: 2px solid var(--bg); }
.exam-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.exam-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .8rem; font-weight: 700; color: var(--muted); }
.exam-legend span { display: inline-flex; align-items: center; gap: 7px; }
.exam-legend .exam-dot { width: 18px; height: 18px; cursor: default; }
.exam-legend .exam-dot.is-flagged::after { width: 9px; height: 9px; border-color: var(--surface); }
.exam-legend .exam-dot.is-current { box-shadow: 0 0 0 2px var(--accent-2-soft); }

.exam-body { flex: 1; width: 100%; max-width: 840px; margin: 0 auto; padding: 14px 12px 0; display: flex; flex-direction: column; gap: 14px; }
.exam-q { display: flex; flex-direction: column; gap: 14px; padding: 16px 14px 20px; border-top: 4px solid color-mix(in srgb, var(--c) 70%, transparent); }
.exam-q-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; }
.exam-q-head .spacer { flex: 1; }
.exam-q-no { font-size: 1.08rem; font-weight: 900; white-space: nowrap; } .exam-q-no small { font-size: .82rem; font-weight: 800; color: var(--faint); }
.exam-q-pts { font-size: .9rem; font-weight: 900; color: var(--muted); white-space: nowrap; }
.exam-q-mod { max-width: 100%; overflow: hidden; text-overflow: ellipsis; display: inline-block; }
.btn.exam-flag { min-height: 44px; }
.exam-flag.active { color: var(--brand-orange); background: color-mix(in srgb, var(--brand-orange) 16%, transparent); border-color: color-mix(in srgb, var(--brand-orange) 55%, transparent); }
.exam-q-input { min-width: 0; }
.exam-foot { position: sticky; bottom: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: auto -12px 0; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--border); }
.exam-foot .exam-next { min-width: 124px; }
@media (max-width: 479px) { .exam-foot-all span { display: none; } .exam-foot-all { width: 44px; padding: 0; } .exam-submit { padding: 0 11px; } .exam-timer { padding: 7px 9px; } .exam-timer .ico { display: none; } }
@media (min-width: 620px) { .exam-body { padding: 22px 20px 0; gap: 18px; } .exam-q { padding: 22px 24px 26px; gap: 16px; } .exam-foot { margin: 0; padding-left: 0; padding-right: 0; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-top: 0; position: static; padding-bottom: 28px; } .exam-top-row { padding: 10px 16px; } .exam-nav-row { padding: 2px 12px 6px; } .exam-top-title b { font-size: 1.05rem; } }

/* Auswertung läuft */
.exam-run.is-grading { align-items: center; justify-content: center; padding: 24px 18px; }
.exam-grading { width: 100%; max-width: 460px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.exam-grading h1 { margin: 12px 0 0; } .exam-grading p { margin: 0; }
.exam-grading-bar { width: 100%; margin-top: 14px; }
.exam-grading-stat { min-height: 3.2em; font-weight: 800; }

/* =====================================================================
   /pruefung/ergebnis/:id
   ===================================================================== */
.card.exam-hero { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 18px; padding: 24px 18px 8px; text-align: center; border-color: color-mix(in srgb, var(--g) 45%, transparent); background: linear-gradient(160deg, color-mix(in srgb, var(--g) 16%, var(--surface)), color-mix(in srgb, var(--accent-2) 12%, var(--surface))); }
.exam-hero-grade { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.exam-hero-cap { font-size: .74rem; font-weight: 900; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.exam-hero-grade .ring-label { font-size: 5.2rem; font-weight: 900; line-height: 1; letter-spacing: -.04em; color: var(--g); }
.exam-hero-grade .ring-bg { stroke: color-mix(in srgb, var(--g) 16%, var(--surface-3)); }
.exam-hero-label { font-size: 1.2rem; font-weight: 900; color: var(--g); }
.exam-hero-info { min-width: 0; max-width: 100%; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.exam-hero-info .row { justify-content: center; }
.exam-hero-info h1 { margin: 4px 0 0; overflow-wrap: anywhere; } .exam-hero-info p { margin: 0; }
.exam-hero-stats { display: grid; grid-template-columns: repeat(2, minmax(0, auto)); gap: 14px 28px; margin-top: 12px; }
.exam-hero-stats .stat b { font-size: 1.45rem; white-space: nowrap; }
.exam-hero-earny { width: 100%; display: flex; justify-content: center; }
.exam-hero-earny .earny-say { flex-direction: column; align-items: center; gap: 8px; }
.exam-hero-earny .earny-bubble { text-align: left; border-radius: 18px; margin-bottom: 16px; }
@media (min-width: 760px) {
  .card.exam-hero { grid-template-columns: auto minmax(0, 1fr); justify-items: start; align-items: center; column-gap: 34px; padding: 30px 32px 10px; text-align: left; }
  .exam-hero-info { align-items: flex-start; } .exam-hero-info .row { justify-content: flex-start; }
  .exam-hero-stats { grid-template-columns: repeat(4, minmax(0, auto)); }
  .exam-hero-earny { grid-column: 1 / -1; justify-content: flex-start; }
  .exam-hero-earny .earny-say { flex-direction: row; align-items: flex-end; gap: 4px; } .exam-hero-earny .earny-bubble { border-radius: 18px 18px 18px 6px; margin-bottom: 26px; }
}
.exam-estimated, .exam-scale { margin-top: 16px; }
.exam-estimated { margin-bottom: 0; }
.exam-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
@media (max-width: 519px) { .exam-actions .btn { flex: 1 1 150px; } .exam-actions .btn.primary { flex-basis: 100%; } }
.exam-scale .table-wrap { margin: 0 12px 12px; }
.exam-scale-cur td { background: var(--accent-soft); font-weight: 800; }
.card.exam-topics { padding-top: 4px; padding-bottom: 4px; }
.exam-topic { display: flex; flex-direction: column; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.exam-topic:last-child { border-bottom: 0; }
.exam-topic-head { display: flex; align-items: baseline; gap: 10px; }
.exam-topic-label { font-weight: 800; overflow-wrap: anywhere; }
.exam-topic-pts { flex: none; font-size: .84rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.exam-topic-pct { flex: none; min-width: 3.3em; text-align: right; white-space: nowrap; color: var(--tc); }
.exam-topic-actions, .weak-topic-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.exam-items-tools { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.exam-filter button { min-height: 40px; }

/* =====================================================================
   /baustellen
   ===================================================================== */
.weak-train-card { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.weak-train-card .grow { flex: 1 1 180px; }
.weak-train-card .card-title { font-size: 1.15rem; }
.weak-train-num { width: 72px; height: 72px; flex: none; display: grid; place-items: center; border-radius: 22px; font-size: 2rem; font-weight: 900; line-height: 1; color: var(--brand-orange); background: color-mix(in srgb, var(--brand-orange) 18%, transparent); }
.weak-train-num.zero { color: var(--ok); background: var(--ok-soft); }
.weak-train-go { flex: 1 1 100%; }
@media (min-width: 700px) { .weak-train-go { flex: none; } }
.weak-group { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.weak-group-head { display: flex; align-items: center; gap: 10px; font-size: 1.02rem; }
.weak-mod { overflow: hidden; border-left: 4px solid color-mix(in srgb, var(--c) 70%, transparent); }
.weak-mod-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; padding: 10px 14px; font-weight: 800; color: var(--text); background: var(--surface-2); border-bottom: 1px solid var(--border); }
.weak-mod-head:hover { text-decoration: none; background: var(--surface-3); }
.weak-mod-title { min-width: 0; overflow-wrap: anywhere; }
.weak-topic { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-bottom: 1px solid var(--border); }
.weak-topic:last-child { border-bottom: 0; }
.weak-topic-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.weak-topic-label { font-weight: 800; overflow-wrap: anywhere; }
.weak-topic-meta { font-size: .82rem; color: var(--muted); }
@media (min-width: 760px) { .weak-topic { flex-direction: row; align-items: center; gap: 18px; } .weak-topic-actions { flex: none; } }
.weak-rec .card-title { font-size: 1rem; }
.weak-none .earny-say, .exam-history-empty .earny-say { align-items: center; }

/* /baustellen/training */
.weak-train-head { margin-bottom: 14px; }
.weak-train-row { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 10px 12px; }
.weak-train-row h1 { margin-bottom: .1em; }
.weak-train-chips { display: flex; gap: 6px; }
.weak-train-chips .chip { padding: 4px 12px; font-size: .86rem; }
.weak-train-bar { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.weak-train-bar .progress { flex: 1; --c: var(--brand-orange); }
.weak-train-pos { font-size: .86rem; font-weight: 900; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.weak-train-retry { margin-bottom: 10px; font-weight: 800; color: var(--brand-orange); }
.weak-done-kpis { width: 100%; max-width: 540px; margin: 14px 0 8px; }
.weak-done-kpis .stat { align-items: center; }

/* =====================================================================
   Druck: Prüfungsergebnis als helles, schlichtes Blatt
   ===================================================================== */
@media print {
  .view.view-examResult {
    --bg: #fff; --bg-2: #f4f5f9; --surface: #fff; --surface-2: #f6f7fb; --surface-3: #e3e6ef;
    --border: rgba(0, 0, 0, .18); --border-strong: rgba(0, 0, 0, .36); --text: #111; --muted: #444; --faint: #666;
    --accent: #0b7d78; --accent-strong: #08645f; --accent-ink: #fff; --accent-soft: rgba(11, 125, 120, .1); --accent-2: #1d5fb8; --accent-2-soft: rgba(29, 95, 184, .1); --brand-orange: #b45f06;
    --ok: #0f7a37; --ok-soft: rgba(15, 122, 55, .08); --bad: #b91c3c; --bad-soft: rgba(185, 28, 60, .07); --warn: #8a5a00; --warn-soft: rgba(138, 90, 0, .09); --info: #1d4ed8; --info-soft: rgba(29, 78, 216, .07);
    color: #111; background: #fff; padding: 0 !important; margin: 0 !important; min-height: 0;
  }
  html:has(.view-examResult), html:has(.view-examResult) body { background: #fff !important; }
  html:has(.view-examResult) .offline-banner, html:has(.view-examResult) .modal { display: none !important; }
  .exam-noprint, .view-examResult .ex-ai, .view-examResult .q-actions, .view-examResult .tts-row, .view-examResult .loading { display: none !important; }
  .view-examResult .page { max-width: none; padding: 0; }
  .view-examResult .section { margin-top: 18px; }
  .view-examResult .card { box-shadow: none; }
  .view-examResult .card.exam-hero { background: #fff; padding-bottom: 0; }
  .view-examResult .earny img { animation: none !important; }
  .view-examResult .hidden.q-result { display: block !important; }
  .view-examResult .q-result { break-inside: auto; margin-bottom: 8px; }
  .view-examResult .q-res-head { break-after: avoid; }
  .view-examResult summary.q-res-head::after, .view-examResult .q-details > summary::before { display: none; }
  .view-examResult .q-res-title { white-space: normal; }
  .view-examResult .hide-mobile { display: inline-flex !important; }
  .view-examResult .codeblock { background: #f6f7fb; border-color: rgba(0, 0, 0, .25); }
  .view-examResult .codeblock pre { color: #111; white-space: pre-wrap; overflow: visible; }
  .view-examResult .tk-kw { color: #6b21a8; } .view-examResult .tk-str { color: #166534; } .view-examResult .tk-num { color: #9a3412; } .view-examResult .tk-com { color: #555; }
  .view-examResult .tk-fn { color: #1d4ed8; } .view-examResult .tk-ty { color: #92400e; } .view-examResult .tk-dec { color: #be123c; }
  .view-examResult .table-wrap { overflow: visible; }
  .exam-topics, .exam-scale, .exam-topic { break-inside: avoid; }
}
