/* Bogsworth selectable themes v2 — visual only. */
:root,[data-bog-theme="swamp"]{--bog-bg:#09170d;--bog-panel:#14261b;--bog-border:#406249;--bog-accent:#dbbd73;--bog-text:#edf4e6;--bog-muted:#aac4af;--bog-glow:#173f28;--bog-input:#0c1e12;--bog-input-border:#658468;--bog-on-accent:#132016;--bog-secondary:#274d36;--bog-choice:#1c3a29;--bog-selected:#375436}
[data-bog-theme="midnight"]{--bog-bg:#081526;--bog-panel:#132b45;--bog-border:#476789;--bog-accent:#84ccff;--bog-text:#eef6ff;--bog-muted:#b5cadd;--bog-glow:#194a6d;--bog-input:#0a2037;--bog-input-border:#5b80a0;--bog-on-accent:#082137;--bog-secondary:#21425c;--bog-choice:#183852;--bog-selected:#28516f}
[data-bog-theme="ember"]{--bog-bg:#1d1010;--bog-panel:#30201e;--bog-border:#765448;--bog-accent:#ffbb77;--bog-text:#fff0e2;--bog-muted:#ddc0ad;--bog-glow:#683225;--bog-input:#291815;--bog-input-border:#8c6754;--bog-on-accent:#2b160c;--bog-secondary:#50312b;--bog-choice:#472922;--bog-selected:#634033}
[data-bog-theme="crimson"]{--bog-bg:#09090b;--bog-panel:#1c1418;--bog-border:#71303b;--bog-accent:#f05b69;--bog-text:#fff0f1;--bog-muted:#d1b7bd;--bog-glow:#44101c;--bog-input:#160f13;--bog-input-border:#87414b;--bog-on-accent:#23080d;--bog-secondary:#3e1721;--bog-choice:#311821;--bog-selected:#582331}
[data-bog-theme="classic"]{--bog-bg:#0b1721;--bog-panel:#162b34;--bog-border:#35545b;--bog-accent:#b4ee91;--bog-text:#ecf5f4;--bog-muted:#b5cbd0;--bog-glow:#245145;--bog-input:#0d1e29;--bog-input-border:#64848a;--bog-on-accent:#102719;--bog-secondary:#243e47;--bog-choice:#24404b;--bog-selected:#345a57}
:root{color-scheme:dark;--bg:var(--bog-bg);--panel:var(--bog-panel);--border:var(--bog-border);--green:var(--bog-accent);--gold:var(--bog-accent);--copy:var(--bog-text);--muted:var(--bog-muted);--text:var(--bog-text);--accent:var(--bog-accent);--accent-color:var(--bog-accent);--surface:var(--bog-panel);--background:var(--bog-bg);--primary:var(--bog-accent);--secondary:var(--bog-secondary)}
html{background:var(--bog-bg)}
body{background:radial-gradient(circle at 50% -10%,var(--bog-glow),var(--bog-bg) 68%) fixed!important;color:var(--bog-text)}
body .card,body .panel,body .info,body .tile,body .stat-card,body .question-card,body .quiz-card{background-color:var(--bog-panel)!important;border-color:var(--bog-border)!important}
body .card:not(.scan-card):not(.chart-card),body .panel:not(.scan-panel){box-shadow:0 12px 32px #0002}
body input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),body select,body textarea{background-color:var(--bog-input)!important;border-color:var(--bog-input-border)!important;color:var(--bog-text)!important}
body input::placeholder,body textarea::placeholder{color:#a5baa5}
body button:not(.choice):not(.answer):not(.secondary):not(.danger):not(.error):not(.delete):not([aria-pressed=true]):not(.active),body .cta:not(.secondary),body a.btn:not(.secondary),body .card a:not(.secondary){background-color:var(--bog-accent)!important;color:var(--bog-on-accent)!important;border-color:var(--bog-accent)!important}
body button.secondary,body .cta.secondary,body a.secondary{background-color:var(--bog-secondary)!important;border-color:var(--bog-border)!important;color:var(--bog-text)!important}
body button.choice,body button.answer{background-color:var(--bog-choice)!important;border-color:var(--bog-border)!important;color:#f4f9ed!important}
body button.choice.selected,body button.answer.selected{background-color:var(--bog-selected)!important;border-color:var(--bog-accent)!important}
body .tag,body .badge,body .eyebrow,body .brand{color:var(--bog-accent)}
body .nav a:not([aria-current=page]){background:var(--bog-secondary)!important;border-color:var(--bog-border)!important;color:var(--bog-text)!important}
body .nav a[aria-current=page]{background:var(--bog-accent)!important;color:var(--bog-on-accent)!important}
body .muted,body .sub,body .lead,body .small{color:var(--bog-muted)}
body progress,body input[type=range]{accent-color:var(--bog-accent)}
body :focus-visible{outline:2px solid var(--bog-accent);outline-offset:2px}
/* Charts, rendered scans, images, status indicators and canvas displays are intentionally untouched. */

/* Compact, accessible and non-modal theme menu. */
#bog-theme-control{position:fixed;bottom:16px;left:16px;z-index:2147483000;font:14px/1.3 system-ui,sans-serif;color:var(--bog-text);width:auto;max-width:calc(100vw - 32px);filter:drop-shadow(0 6px 14px #0006)}
#bog-theme-toggle{border:1px solid var(--bog-border)!important;border-radius:999px!important;background:var(--bog-panel)!important;color:var(--bog-text)!important;padding:9px 13px!important;font:inherit!important;font-weight:700!important;min-height:40px;cursor:pointer}
#bog-theme-panel{margin:0 0 8px;padding:12px;border:1px solid var(--bog-border);border-radius:14px;background:var(--bog-panel);box-shadow:0 8px 24px #0008;min-width:210px}
#bog-theme-panel[hidden]{display:none!important}
#bog-theme-panel label{display:block;color:var(--bog-muted);font-size:12px;margin-bottom:7px}
#bog-theme-panel select{display:block;width:100%;background:var(--bog-input)!important;color:var(--bog-text)!important;border:1px solid var(--bog-border)!important;border-radius:8px;padding:9px;font:inherit}
@media print{#bog-theme-control{display:none!important}}

/* Main Test Maker — replace legacy navy chrome; preserve semantic success/error and scan plots. */
body:has(#methodChoices){--bg:var(--bog-bg)!important;--panel:var(--bog-panel)!important;--panel2:var(--bog-secondary)!important;--stroke:var(--bog-border)!important;--text:var(--bog-text)!important;--muted:var(--bog-muted)!important;--cyan:var(--bog-accent)!important;--green:var(--bog-accent)!important}
body:has(#methodChoices) .topbar{border-bottom-color:var(--bog-border)!important}
body:has(#methodChoices) .stat,body:has(#methodChoices) .pill,body:has(#methodChoices) .breakdown,body:has(#methodChoices) .reviewitem,body:has(#methodChoices) .reviewoptions,body:has(#methodChoices) .flag-row,body:has(#methodChoices) .explainbox{background:var(--bog-panel)!important;border-color:var(--bog-border)!important;color:var(--bog-text)!important}
body:has(#methodChoices) .panel{background:linear-gradient(145deg,var(--bog-panel),var(--bog-secondary))!important;border-color:var(--bog-border)!important}
body:has(#methodChoices) .chip,body:has(#methodChoices) .learning-switches button{background:var(--bog-input)!important;border-color:var(--bog-border)!important;color:var(--bog-text)!important}
body:has(#methodChoices) .chip[aria-pressed="true"],body:has(#methodChoices) .learning-switches button[aria-pressed="true"]{background:var(--bog-selected)!important;border-color:var(--bog-accent)!important;color:var(--bog-text)!important;box-shadow:inset 0 0 0 1px var(--bog-accent)!important}
body:has(#methodChoices) .primary{background:var(--bog-accent)!important;color:var(--bog-on-accent)!important;box-shadow:0 8px 24px #0003!important}
body:has(#methodChoices) .secondary{background:var(--bog-secondary)!important;color:var(--bog-text)!important;border-color:var(--bog-border)!important}
body:has(#methodChoices) .answer:not(.correct):not(.incorrect){background:var(--bog-choice)!important;color:var(--bog-text)!important;border-color:var(--bog-border)!important}
body:has(#methodChoices) .answer.selected:not(.correct):not(.incorrect){background:var(--bog-selected)!important;border-color:var(--bog-accent)!important}
body:has(#methodChoices) .answer:not(.correct):not(.incorrect):hover{border-color:var(--bog-accent)!important}
body:has(#methodChoices) .letter{border-color:var(--bog-border)!important;color:var(--bog-muted)!important}
body:has(#methodChoices) .progress,body:has(#methodChoices) .resultbar,body:has(#methodChoices) .readiness-track{background:var(--bog-input)!important}
body:has(#methodChoices) .progress>div,body:has(#methodChoices) .resultbar>div,body:has(#methodChoices) .readiness-track>div{background:var(--bog-accent)!important}
body:has(#methodChoices) .formula-card{background:var(--bog-secondary)!important;border-color:var(--bog-border)!important;border-left-color:var(--bog-accent)!important}
body:has(#methodChoices) .formula-label,body:has(#methodChoices) .formula-equation{color:var(--bog-text)!important}
body:has(#methodChoices) .lab-area,body:has(#methodChoices) .lab-feedback{background:var(--bog-panel)!important;border-color:var(--bog-border)!important;color:var(--bog-text)!important}
body:has(#methodChoices) .lab-control-grid input:not([type=range]),body:has(#methodChoices) .lab-solve input{background:var(--bog-input)!important;border-color:var(--bog-border)!important;color:var(--bog-text)!important}
body:has(#methodChoices) .offline{background:var(--bog-secondary)!important;border-color:var(--bog-border)!important;color:var(--bog-accent)!important}
body:has(#methodChoices) .fieldlabel,body:has(#methodChoices) .mixlabel{color:var(--bog-text)!important}
body:has(#methodChoices) .foot,body:has(#methodChoices) .foot summary{border-color:var(--bog-border)!important;color:var(--bog-muted)!important}
/* .answer.correct / .incorrect, warning and failure colors, canvas, SVG scan plots intentionally retain semantic colors. */
@media print{body:has(#methodChoices) .panel,body:has(#methodChoices) .reviewitem{background:white!important;color:black!important}}

/* Remaining legacy navigation, simulator control and launch button chrome. */
body:has(#methodChoices) .quicknav a,
body:has(#methodChoices) .asc-full-link,
body:has(#methodChoices) .learning-switches button,
body:has(#methodChoices) .question-tools button:not(.danger),
body:has(#methodChoices) .pa-controls button,
body:has(#methodChoices) .lab-solve button,
body:has(#methodChoices) .lab-control-grid button{background:var(--bog-secondary)!important;border-color:var(--bog-border)!important;color:var(--bog-text)!important}
body:has(#methodChoices) .quicknav a:hover,
body:has(#methodChoices) .asc-full-link:hover,
body:has(#methodChoices) .question-tools button:not(.danger):hover{background:var(--bog-selected)!important;border-color:var(--bog-accent)!important}
body:has(#methodChoices) .pa-controls select,
body:has(#methodChoices) .lab-control-grid select{background:var(--bog-input)!important;border-color:var(--bog-input-border)!important;color:var(--bog-text)!important}
body:has(#methodChoices) .learning-switches button[aria-pressed="true"],
body:has(#methodChoices) .question-tools button[aria-pressed="true"]{background:var(--bog-selected)!important;border-color:var(--bog-accent)!important}
