.topbar { display:flex; position:relative; z-index:35; }
body:has(.learn-grid) .topbar { display:flex; }
.top-actions { max-width:none; gap:16px; }
.top-spacer { flex:1; }
.rail-stats { display:none; }
.subject-switcher, .settings-menu { position:relative; }
.subject-switcher summary, .settings-menu summary { display:flex; align-items:center; justify-content:center; gap:9px; min-height:46px; cursor:pointer; list-style:none; color:#244950; font-weight:800; }
.subject-switcher summary::-webkit-details-marker, .settings-menu summary::-webkit-details-marker { display:none; }
.subject-switcher summary { padding:4px 12px 4px 5px; border:2px solid #99e5ef; border-radius:12px; }
.subject-mark { display:grid; place-items:center; width:34px; height:34px; border-radius:9px; background:#ccf2f7; color:#007e8e; }
.subject-mark svg, .settings-menu summary svg { width:23px; height:23px; }
.settings-menu summary { width:46px; border:2px solid #99e5ef; border-radius:12px; }
.subject-menu, .settings-panel { position:absolute; top:calc(100% + 8px); z-index:50; background:#fff; color:#244950; border:2px solid #b5dce1; border-radius:14px; box-shadow:0 8px 22px #183c451f; padding:14px; }
.subject-menu { left:0; min-width:210px; display:grid; gap:5px; }
.subject-menu strong { padding:3px 8px 8px; }
.subject-menu a, .subject-current { display:flex; justify-content:space-between; padding:9px; border-radius:8px; font-weight:800; }
.subject-current, .subject-menu a:hover { background:#d5f3f7; }
.settings-panel { right:0; width:min(310px, calc(100vw - 32px)); }
.settings-panel h2 { font-size:19px; margin:0 0 12px; }
.setting-row { min-height:52px; display:flex; gap:12px; align-items:center; justify-content:space-between; border-top:1px solid #dce9eb; }
.setting-row button, .settings-account { color:#006f7d; background:transparent; padding:8px; border-radius:8px; }
.setting-choice { display:flex; gap:3px; padding:3px; background:#e7f5f6; border-radius:10px; }
.setting-choice button[aria-pressed="true"] { background:#fff; color:#005d69; box-shadow:0 2px 5px #123b4722; }
.settings-account { display:block; width:100%; text-align:left; border-top:1px solid #dce9eb; }
.welcome-page { min-height:100vh; background:#fff; }
.welcome-header { display:flex; align-items:center; justify-content:space-between; max-width:1000px; margin:auto; padding:28px; }
.welcome-header img { width:68px; }
.welcome-header button { background:transparent; color:#007d8d; padding:12px; }
.welcome-content { min-height:calc(100vh - 120px); display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; gap:24px; padding:30px 24px 90px; }
.welcome-mascot .quality-art { display:block; width:170px; height:150px; }
.welcome-mascot img { width:100%; height:100%; object-fit:contain; }
.welcome-content h1 { max-width:480px; }
.welcome-actions { display:grid; gap:14px; width:min(100%,330px); }
.welcome-actions .primary, .welcome-actions .secondary { display:block; width:100%; text-align:center; padding:13px 16px; }
.welcome-signup { color:#007d8d; font-weight:800; padding:8px; }
.geo-session .chapter-question-figure:has(> .question-diagram-key) { flex-direction:column; }
.geo-session .chapter-question-figure:has(> .question-diagram-key) > svg { position:static; flex:1 1 0; min-height:0; height:auto!important; }
.geo-session .chapter-question-figure > .question-diagram-key { display:flex; flex:0 0 auto; width:100%; height:auto; align-items:center; flex-wrap:wrap; justify-content:center; gap:6px 16px; margin:4px 0; color:var(--ink); font-size:14px; }
.question-diagram-key span { display:inline-flex; align-items:center; gap:6px; }
.key-line { display:inline-block; width:25px; border-top:3px solid #857356; }
.key-line.is-dashed { border-top:2px dashed #89978b; }
.key-belt { display:inline-block; width:25px; height:10px; background:#c6dfcb; }
@media(max-width:900px) { .topbar { position:sticky; top:0; margin-left:88px; background:#fff; } .top-actions { max-width:none; } .course-column>.path-header { top:85px; } }
@media(max-width:600px) { .topbar { margin-left:0; padding:10px 16px; } .course-column>.path-header { top:85px; } .top-actions { gap:10px; } .subject-switcher summary { font-size:14px; } .streak { display:none; } .xp { font-size:14px; } }

html[data-theme="dark"] { color-scheme:dark; --ink:#edf7f8; --muted:#bed0d3; --line:#375159; }
html[data-theme="dark"] body, html[data-theme="dark"] .welcome-page, html[data-theme="dark"] .geo-session, html[data-theme="dark"] .complete-screen { background:#13272d; color:#edf7f8; }
html[data-theme="dark"] .sidebar, html[data-theme="dark"] .topbar, html[data-theme="dark"] .geo-footer, html[data-theme="dark"] .subject-menu, html[data-theme="dark"] .settings-panel, html[data-theme="dark"] .duo-card, html[data-theme="dark"] .account-page { background:#1b353d; color:#edf7f8; border-color:#45636a; }
html[data-theme="dark"] .subject-switcher summary, html[data-theme="dark"] .settings-menu summary { color:#edf7f8; border-color:#4b8c98; }
html[data-theme="dark"] .subject-menu a:hover, html[data-theme="dark"] .subject-current, html[data-theme="dark"] .setting-choice { background:#264c55; }
html[data-theme="dark"] .setting-row button, html[data-theme="dark"] .settings-account, html[data-theme="dark"] .welcome-signup { color:#8de7f0; }
html[data-theme="dark"] .setting-choice button[aria-pressed="true"] { background:#46717a; color:#fff; }
html[data-theme="dark"] .nav-item, html[data-theme="dark"] .chapter-question { color:#c3d4d6; }
html[data-theme="dark"] .path-lesson-number, html[data-theme="dark"] .geo-session-header .icon-button, html[data-theme="dark"] .geo-session-header .lang { color:#c5dadd; }
html[data-theme="dark"] .right-rail p, html[data-theme="dark"] .right-rail a, html[data-theme="dark"] .course-overview-row span, html[data-theme="dark"] .stop-label, html[data-theme="dark"] .path-review-label { color:#c5dadd; }
html[data-theme="dark"] .nav-item.active { color:#d9fbff; background:#285a63; border-color:#4b929d; }
html[data-theme="dark"] .option, html[data-theme="dark"] .speech, html[data-theme="dark"] .lesson-popover, html[data-theme="dark"] .directory-course { background:#25444c; color:#f1fbfc; border-color:#54848d; }
html[data-theme="dark"] :focus-visible { outline-color:#8de7f0; }

/* Keep the sound control legible in both appearances. */
.settings-panel .sound-toggle { color:#00606c !important; background:#d6f4f7 !important; }

.rock-comparison { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.rock-comparison > div { display:flex; flex-direction:column; align-items:center; gap:4px; min-width:0; }
.rock-comparison svg { display:block; width:100%; height:auto; }
.rock-comparison span { font-weight:700; color:#345b62; }
html[data-theme="dark"] .rock-comparison span { color:#e1f5f6; }

.chapter-question-figure.rock-comparison > div > svg { width:100%; height:auto; flex:0 1 auto; }

.question-diagram-key .key-focus { display:inline-block; width:12px; height:12px; border-radius:50%; background:#dd7852; border:1px solid #9e4121; }

.chapter-question-figure:has(> .question-diagram-key) > svg[data-quake-propagation] { overflow:hidden; }

.geo-session .quiz-content:has(.matching-response) .chapter-question-figure.g72-history-evidence { flex:0 0 175px; min-height:175px; max-height:175px; }
.geo-session .g72-history-evidence > svg { width:100%; max-height:calc(100% - 18px); }

/* Give climate graphs enough room to read their axes on a phone. */
@media (max-width: 600px) {
  .geo-session .chapter-lesson[data-topic="G50"] .chapter-model:has(.g50-climate-focus:not(.is-map)) {
    min-height: 335px;
  }
}

/* The food web includes labels below the animals; keep the full diagram. */
.geo-session .chapter-question-figure:has(.g61-g64-neutral-panels svg[data-high-panel="web"]) {
  max-height: none !important;
  height: auto;
  flex: 0 0 auto !important;
}

.geo-session .chapter-question-figure.g58-key-evidence { max-height: none !important; height: auto; flex: 0 0 auto !important; display: flex; align-items: center; gap: 8px; }
.g58-key-map { width: 48%; flex: 0 0 48%; }
.g58-key-map svg { display: block; width: 100%; height: auto; }
.g58-key-items { display: grid; gap: 4px; font-size: 12px; line-height: 1.2; color: var(--text, #294b49); }
.g58-key-items span { display: flex; align-items: center; gap: 5px; }
.g58-key-items i { width: 12px; height: 12px; flex: 0 0 12px; border: 1px solid #687674; }
.geo-session .chapter-question-figure.g58-key-evidence > .g58-key-map { flex: 0 0 48%; min-width: 0; }
.geo-session .chapter-question-figure.g58-key-evidence > .g58-key-items { display: grid; flex: 1 1 0; min-width: 0; }
.geo-session .chapter-lesson[data-topic="G58"][data-step="0"] button[data-variant^="map-"]:not([data-variant="map-overview"])::before {
  content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 7px; vertical-align: -1px; border: 1px solid #687674;
}
.geo-session .chapter-lesson[data-topic="G58"][data-step="0"] button[data-variant="map-intrusive"]::before { background: #dfad9f; }
.geo-session .chapter-lesson[data-topic="G58"][data-step="0"] button[data-variant="map-volcanic"]::before { background: #a9bca0; }
.geo-session .chapter-lesson[data-topic="G58"][data-step="0"] button[data-variant="map-sedimentary"]::before { background: #e4ca86; }

.geo-session .chapter-question-figure.g55-finance-question { max-height: none !important; flex: 0 0 auto !important; display: block; padding: 10px; background: #e4f6f7; border-radius: 12px; }
.g55-finance-heading { font-size: 13px; font-weight: 700; color: #28545b; text-align: center; }
.g55-finance-question .g55-cooperation-focus { min-height: 130px; }
.geo-session .chapter-question-figure.g55-finance-question > .g55-finance-heading { display: block; height: auto; min-height: 0; }
.geo-session .chapter-question-figure.g55-finance-question > .g55-cooperation-focus { display: flex; flex-direction: column; height: auto; min-height: 0; gap: 6px; }
.geo-session .g55-finance-question .g55-route { width: 100%; }

.geo-session .g01-g10-neutral-question .quake-ground-label { display:block; text-align:center; font-size:13px; font-weight:700; line-height:1.3; color:var(--text,#294b49); }
.geo-session .chapter-question-figure.g01-g10-neutral-question > div:has(.quake-ground-label) { display:flex; flex-direction:column; align-items:center; min-width:0; }
.geo-session .chapter-question-figure.g01-g10-neutral-question:has(.quake-ground-label) { max-height:none !important; flex:0 0 auto !important; }
html[data-theme="dark"] .geo-session .g58-key-items,
html[data-theme="dark"] .geo-session .g01-g10-neutral-question .quake-ground-label { color: #e4f3f4; }
html[data-theme="dark"] .geo-session .g55-finance-question .g55-route-node,
html[data-theme="dark"] .geo-session .g55-finance-question .g55-route-note { color: #244b50; }

.question-diagram-key .key-stream { display:inline-block; width:22px; border-top:5px solid #329db9; }
.question-diagram-key .key-fault { display:inline-block; width:22px; border-top:3px dashed #685d58; }

.geo-session .quiz-content .chapter-question-figure.g72-history-evidence { display:flex; align-items:center; gap:10px; max-height:none !important; min-height:0 !important; height:auto; flex:0 0 auto !important; }
.geo-session .g72-history-evidence > .g72-map-panel { display:block; flex:0 0 48%; width:48%; min-width:0; }
.geo-session .g72-history-evidence > .g72-map-panel svg { display:block; width:100%; height:auto; max-height:none; }
.geo-session .g72-history-evidence > .g72-region-key { display:grid; gap:8px; flex:1 1 0; min-width:0; font-size:12px; line-height:1.3; color:#294b49; }
.g72-region-key i { display:inline-block; width:10px; height:10px; border-radius:50%; margin-right:5px; }
.g72-region-key i.g72-warm { background:#b96c4b; }
.g72-region-key i.g72-rain { background:#297d9d; }
html[data-theme="dark"] .geo-session .g72-region-key { color:#e4f3f4; }

.geo-session .quiz-content .chapter-question-figure.g72-history-evidence { flex-direction: row; position:relative; }
.geo-session .g72-history-evidence > .figure-credit { position:absolute; right:2px; bottom:0; }

.geo-session .chapter-question-figure.g54-web-evidence { display:flex; flex-direction:column; gap:5px; }
.geo-session .g54-web-evidence > .g54-web-key { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:4px 6px; width:100%; color:#294b49; font-size:12px; line-height:1.25; }
.g54-web-key span { display:flex; align-items:center; gap:4px; }
.g54-web-key i { display:inline-block; flex:0 0 10px; width:10px; height:10px; border-radius:50%; }
html[data-theme="dark"] .geo-session .g54-web-key { color:#e4f3f4; }
.geo-session .g54-web-evidence > .g61-g64-neutral-panels { flex:0 0 auto; height:auto; }
.geo-session .g54-web-evidence > .g54-web-key { height:auto; flex:0 0 auto; }
.geo-session .g54-web-evidence > .g61-g64-neutral-panels { flex:0 0 200px !important; height:200px !important; }
.geo-session .quiz-content .chapter-question-figure[data-g52-g53-question-figure^="G52-RECORD-"] { flex:0 0 auto !important; height:auto !important; min-height:0 !important; max-height:none !important; }
.geo-session .chapter-question-figure[data-g52-g53-question-figure^="G52-RECORD-"] > svg { flex:0 0 190px !important; height:190px !important; }
.geo-session .chapter-question-figure.g27-history-comparison { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.geo-session .chapter-question-figure.g27-history-comparison > div { display:flex; flex-direction:column; align-items:center; min-width:0; min-height:0; color:var(--ink); }
.geo-session .chapter-question-figure.g27-history-comparison svg { width:100%; height:100%; min-height:0; }
.geo-session .chapter-question-figure.g27-history-comparison { grid-template-rows:minmax(0,1fr) auto; }
.geo-session .chapter-question-figure.g27-history-comparison > .g27-map-key { grid-column:1 / -1; text-align:center; color:var(--ink); font-size:13px; }
.geo-session .quiz-content[data-question="G50-HIGHLAND-02"] .g50-question-figure { flex:0 0 auto !important; height:auto !important; min-height:0 !important; max-height:none !important; }
.geo-session .quiz-content[data-question="G50-HIGHLAND-02"] .g50-question-figure > svg { flex:0 0 190px !important; height:190px !important; }

.geo-session .quiz-content:has(.matching-response) .chapter-question-figure.g20-retreat-comparison{flex:0 0 195px;min-height:195px;max-height:none}

.geo-session .chapter-question-figure.g29-question-key{display:flex;flex-direction:column;gap:3px}.geo-session .g29-question-key>svg{width:100%;min-height:0;flex:1 1 auto}.geo-session .g29-question-key>.question-diagram-key{flex:none;text-align:center}

html[data-theme="dark"] .practice-hub{color:var(--ink)}
html[data-theme="dark"] .practice-hub .hub-title p,html[data-theme="dark"] .practice-hub .chapter-kicker,html[data-theme="dark"] .practice-hub .practice-card-body>p,html[data-theme="dark"] .practice-hub .practice-card-foot>span,html[data-theme="dark"] .practice-hub .hub-footnote{color:var(--muted)}

@media(max-width:600px){.course-switch{flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-inline:contain;padding-bottom:8px}.course-switch button{flex:0 0 auto;white-space:nowrap;min-width:max-content;padding:9px 14px}}
html[data-theme="dark"] .achievement-hub{color:var(--ink)}
html[data-theme="dark"] .achievement-hub :is(.achievement-heading p,.chapter-kicker,.hub-stats small,.hub-stats p>span,.hub-section-heading>span,.chapter-record-foot){color:var(--muted)}
html[data-theme="dark"] .achievement-hub .hub-stats strong{color:var(--ink)}
html[data-theme="dark"] .achievement-hub .achievement-card{background:#21373d;border-color:#496268}
html[data-theme="dark"] .achievement-hub .achievement-card p{color:var(--muted)}

.course-switch button[aria-pressed="true"]{background:#b2ebf1;color:#163d44;border-color:#008da3;box-shadow:0 3px 0 #008da3}

html[data-theme="dark"] .geo-session .quiz-content>.exercise-hint{color:var(--muted)}
html[data-theme="dark"] .geo-session .numeric-tap>label,html[data-theme="dark"] .geo-session .numeric-tap #numeric-unit{color:#294b50}

html[data-theme="dark"] .lesson-popover p{color:var(--ink)}
html[data-theme="dark"] .course-directory .directory-course-heading strong{color:var(--ink)}
html[data-theme="dark"] .course-directory .directory-progress-label{color:var(--muted)}

html[data-theme="dark"] .course-directory :is(.directory-status,.directory-chevron,.menu-home-link,.directory-heading>span){color:#82e0eb}

html[data-theme="dark"] .original-labs{color:var(--ink)}
html[data-theme="dark"] .original-labs :is(.original-labs-heading p,.original-labs-heading>span,.original-labs-filters label,.original-labs-count,.original-lab-code,.original-lab-subtitle,.original-lab-description,.original-lab-topic,.original-lab-empty){color:var(--muted)}
html[data-theme="dark"] .original-lab-action{color:#82e0eb}

.geo-session .chapter-question-figure.g70-cyclone-comparison{display:flex;flex-direction:column;gap:3px}.geo-session .g70-cyclone-comparison>div{display:flex;gap:8px;flex:1 1 auto;width:100%;min-height:0}.geo-session .g70-cyclone-comparison figure{display:flex;flex:1 1 0;flex-direction:column;align-items:center;min-width:0;min-height:0;margin:0}.geo-session .g70-cyclone-comparison svg{width:100%;min-height:0;flex:1 1 auto}.geo-session .g70-cyclone-comparison figcaption,.geo-session .g70-cyclone-comparison>span{flex:none;color:var(--ink);font-size:13px;line-height:1.2;text-align:center}.geo-session .quiz-content:has(.matching-response) .chapter-question-figure.g70-cyclone-comparison{flex:0 0 195px;min-height:195px;max-height:none}

.geo-session .quiz-content[data-question="G50-DRY-03"] .g50-question-figure{flex:0 0 185px;min-height:185px;max-height:none}

.geo-session .chapter-question-figure.g56-spacing-pair{display:flex;gap:8px;align-items:stretch}.geo-session .g56-spacing-pair figure{display:flex;flex:1 1 0;flex-direction:column;align-items:center;min-width:0;min-height:0;margin:0}.geo-session .g56-spacing-pair svg{width:100%;min-height:0;flex:1 1 auto}.geo-session .g56-spacing-pair figcaption{flex:none;color:var(--ink);font-size:13px;line-height:1.2;text-align:center}

.geo-session .chapter-question-figure.g56-stormwater-routes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;align-items:center}.geo-session .g56-stormwater-routes figure{display:flex;flex-direction:column;align-items:center;min-width:0;min-height:0;margin:0}.geo-session .g56-stormwater-routes svg{width:100%;min-height:0;flex:1 1 auto}.geo-session .g56-stormwater-routes figcaption{color:var(--ink);font-size:12px;font-weight:700;line-height:1.25;text-align:center}.geo-session .quiz-content:has(.matching-response) .chapter-question-figure.g56-stormwater-routes{flex:0 0 135px;min-height:135px;max-height:none}

/* Two processes are shown together so neither is implied to be the only one. */
.g12-process-comparison{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:center;padding:12px!important}
.g12-process-panel{min-width:0;position:relative;overflow:hidden;border-radius:10px;background:#e6f6f8}
.g12-process-panel svg{display:block;width:100%;height:auto}
.g12-process-panel span{position:absolute;top:7px;left:8px;background:#fff;color:#174f58;border-radius:50%;width:24px;height:24px;text-align:center;font-weight:800;line-height:24px;font-size:14px}
.g12-process-comparison .g12-process-panel svg{width:100%!important;height:auto!important;max-width:none!important;aspect-ratio:1000/630}

.wave-mechanism-compare{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:12px!important;background:transparent!important}
.wave-mechanism-compare>div{min-width:0;text-align:center;color:#254950;font-size:14px;font-weight:700}
.wave-mechanism-image{background:#d5f1f3;overflow:hidden;border-radius:8px;aspect-ratio:5/3;display:flex;align-items:center}
.wave-mechanism-compare .wave-mechanism-image svg{display:block;width:100%!important;height:100%!important;max-width:none!important;object-fit:contain}
.wave-mechanism-compare span{display:block;margin-top:6px}
[data-theme="dark"] .wave-mechanism-compare>div{color:#e1f5f7}
.wave-mechanism-compare>div{display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important}
.wave-mechanism-compare .wave-mechanism-image{width:100%;height:auto;min-height:0;aspect-ratio:5/3}

.wave-mechanism-compare .wave-mechanism-key{grid-column:1/-1;margin:0;text-align:center;color:#315f65;font-size:12px;line-height:1.3}
[data-theme="dark"] .wave-mechanism-compare .wave-mechanism-key{color:#d4ebee}
.chapter-question-figure.wave-mechanism-compare{height:auto!important;max-height:none!important;min-height:0!important}
.geo-session .chapter-question-figure.wave-mechanism-compare{flex:0 0 auto}
.geo-session .chapter-question-figure.wave-mechanism-compare{flex:0 0 auto!important}

.hazard-route-figure{width:100%;height:100%;display:flex;align-items:center;justify-content:center}
.hazard-route-figure svg{display:block;width:100%;height:auto;max-height:100%}
.hazard-question .wave-mechanism-image .hazard-route-figure{width:100%;height:100%}

.progress-save-notice{position:fixed;z-index:10000;bottom:12px;left:50%;transform:translateX(-50%);width:min(92vw,520px);display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border-radius:14px;background:#173d43;color:#fff;box-shadow:0 6px 24px #0003;font-size:15px;line-height:1.4}.progress-save-notice button{flex:none;border:2px solid #a6e8ee;border-radius:10px;padding:9px 12px;background:#fff;color:#074a55;font:inherit;font-weight:700;cursor:pointer}.progress-save-notice button:focus-visible{outline:3px solid #fff;outline-offset:3px}@media(max-width:380px){.progress-save-notice{align-items:flex-start;flex-direction:column}}

.sync-status{font-size:12px;line-height:1.25;font-weight:700;color:#6d3e08}.sync-status:empty{display:none}[data-theme=dark] .sync-status{color:#ffd49b}@media(max-width:600px){.sync-status{max-width:94px;font-size:11px}}

.subject-upcoming { display:flex; justify-content:space-between; gap:18px; padding:9px; color:#607c80; font-weight:800; }
.subject-upcoming small { font-size:12px; color:#68878b; font-weight:600; }
.lab-hub { max-width:860px; margin:0 auto; }
.lab-hub>p { color:var(--muted); margin:10px 0 24px; }
.lab-hub-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:14px; }
.lab-hub-card { display:flex; justify-content:space-between; align-items:center; min-height:92px; padding:20px; border:2px solid var(--maqua-blue40); border-bottom:5px solid var(--maqua-blue60); border-radius:16px; background:var(--maqua-blue20); color:#244950; font-size:18px; }
.lab-hub-card:hover { background:var(--maqua-blue40); }
html[data-theme="dark"] .lab-hub-card { background:#21454d; color:#edf7f8; border-color:#4b8c98; }

html[data-theme="dark"] .subject-upcoming{color:#e0f3f5}
html[data-theme="dark"] .subject-upcoming small{color:#b6d9de}
.subject-menu .subject-option{display:flex;justify-content:space-between;align-items:center;width:100%;padding:9px;border:0;border-radius:8px;background:transparent;color:inherit;text-align:left;font:inherit;font-weight:800;cursor:pointer}
.subject-menu .subject-option:hover,.subject-menu .subject-option.subject-current{background:#d5f3f7}
html[data-theme="dark"] .subject-menu .subject-option:hover,html[data-theme="dark"] .subject-menu .subject-option.subject-current{background:#264c55}
.subject-coming{max-width:620px;margin:80px auto;text-align:center}.subject-coming h1{font-size:32px}.subject-coming p{color:var(--muted);margin:22px 0}.subject-labs-link{display:inline-block;padding:14px 24px;background:#00bed6;border-radius:12px;color:#fff;font-weight:800;text-decoration:none}
.original-lab-placeholder{display:grid;place-items:center;width:62%;aspect-ratio:1;border-radius:24px;background:#d5f3f7;color:#006d7a;font-weight:900;font-size:clamp(25px,4vw,42px);letter-spacing:.03em}
html[data-theme="dark"] .original-lab-placeholder{background:#264c55;color:#bfeef3}
.account-page form { display:grid; gap:18px; margin:28px 0 24px; }
.account-page label { display:grid; gap:8px; font-weight:800; }
.account-page input { width:100%; min-height:52px; padding:12px 14px; border:2px solid #a5dfe6; border-radius:12px; background:transparent; color:inherit; font:inherit; }
.account-page input:focus-visible { outline:3px solid #00b6cb; outline-offset:2px; }
.account-page .account-error { margin:0; color:#b42a35; min-height:1.5em; }
.account-page .account-submit { min-height:52px; cursor:pointer; }
.account-page .account-switch { margin-top:24px; }
.account-page .account-switch a { color:#008da3; font-weight:800; }

/* Completion results remain legible on the dark learning background. */
html[data-theme="dark"] .complete-screen>p,
html[data-theme="dark"] .complete-screen .result-stats span { color:#c6dfe1; }
html[data-theme="dark"] .complete-screen .result-stats strong { color:#f3ffff; }
@media(max-width:600px){
 .complete-screen{padding:24px 20px}
 .complete-screen>.quality-art{width:160px;height:150px}
 .complete-screen .result-stats{margin:16px 0;padding:10px}
 .complete-screen .result-stats>div{padding:12px 8px}
 .complete-screen .result-stats span{font-size:14px}
}
html[data-theme="dark"] .crust-density-demo :is(.density-same-volume,.density-sample-label,.density-higher){color:#edf7f8}
html[data-theme="dark"] .crust-guided .speech:before{background:#25444c;border-color:#54848d}
