.appearance-control{display:flex;align-items:center;gap:7px;margin-left:auto;color:#fff;font-size:.78rem;font-weight:700;white-space:nowrap}
.appearance-control label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.appearance-control select{width:118px;max-width:118px;min-height:32px;padding:4px 27px 4px 10px;border:1px solid rgba(255,255,255,.55);border-radius:999px;background:#fff;color:#18405a;font:700 .72rem "Segoe UI",Arial,sans-serif;cursor:pointer;flex:0 0 118px}
.topbar.appearance-simple-header{position:relative;min-height:70px;padding-right:clamp(164px,18vw,190px)}
.topbar.appearance-simple-header .appearance-control{position:absolute;right:clamp(18px,4vw,52px);top:50%;margin:0;transform:translateY(-50%)}
.appearance-control select:focus-visible,a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #f4d58b;outline-offset:3px}

html[data-theme="dark"]{--ink:#edf4f7;--blue:#8ec5df;--blue-dark:#d4ecf7;--blue-soft:#233b49;--dark:#d4ecf7;--gold:#f0c769;--green:#78cca1;--bg:#10181e;--card:#19252d;--line:#4d6471;--shadow:0 8px 28px rgba(0,0,0,.32);--danger:#ffb3b3}
html[data-theme="dark"] body{background:#10181e;color:#edf4f7}
html[data-theme="dark"] .topbar{background:#0a2535;color:#fff}
html[data-theme="dark"] .hero{background:linear-gradient(90deg,rgba(8,35,50,.98),rgba(30,72,77,.94)),linear-gradient(135deg,rgba(201,154,53,.28),rgba(47,125,89,.26))}
html[data-theme="dark"] :is(.intro,.path-card,.resource-row,.card,.story-card,.consultant-card,.profile-card,.contact-card,.how-card,.resource-card,.step-card,.review section,details){background:#19252d;color:#edf4f7;border-color:#4d6471}
html[data-theme="dark"] :is(.help-explainer,.about-effort){background:#19252d;color:#edf4f7;border-color:#4d6471}
html[data-theme="dark"] .temple-week{background:#302b20;color:#f7efd9;border-color:#8c7340}
html[data-theme="dark"] .temple-week .eyebrow{color:#ffe4a3}
html[data-theme="dark"] .temple-week-options a{background:#19252d;color:#edf4f7}
html[data-theme="dark"] .help-steps li{background:#233b49;color:#edf4f7}
html[data-theme="dark"] :is(.path-card p,.resource-card p,.resource-text p,.section-heading p,.lead,.prompt,.hint,.review p,.progress-copy,.count){color:#c7d4db}
html[data-theme="dark"] main :is(h2,h3,h4,.section-title,.resource-title,.tip-title,.group-title){color:#dff1f8}
html[data-theme="dark"] :is(.resource-description,.tip-summary,.consultant-body p,.story-meta,.story-body p,.story-footer,.site-notice,footer){color:#c7d4db}
html[data-theme="dark"] .new-badge{background:#f4d58b;color:#102c3d;border:1px solid #ffe3a0}
html[data-theme="dark"] :is(.choice,input[type=text],input[type=email],input[type=tel],select,textarea){background:#111c23;color:#f7fbfc;border-color:#718692}
html[data-theme="dark"] .choice:hover{background:#223641;border-color:#8ec5df}
html[data-theme="dark"] :is(.privacy,.launch-note){background:#352f20;color:#fff2c8}
html[data-theme="dark"] .prompt-card{background:#302b20;color:#f7efd9;border-color:#8c7340}
html[data-theme="dark"] .prompt-card h2{color:#ffe4a3}
html[data-theme="dark"] .prompt-card p{color:#f7efd9}
html[data-theme="dark"] :is(.btn.secondary,.quick-links a,.resource-button a,.path-jumps a){background:#e7f2f7;color:#12364b}
html[data-theme="dark"] .error{background:#4a2427;color:#ffd8d8}
html[data-theme="dark"] .thanks .mark{background:#183c2d;color:#9ce3bb}
html[data-theme="dark"] .next-steps>p{color:#c7d4db}
html[data-theme="dark"] .next-step-link{background:#233b49;color:#dff1f8;border-color:#5f7886}
html[data-theme="dark"] .next-step-link span{color:#c7d4db}
html[data-theme="dark"] .next-step-link:hover{background:#2a4654;border-color:#8ec5df}
html[data-theme="dark"] :is(.dashboard-status,.training-link){color:#c7d4db}
html[data-theme="dark"] .dashboard-error{background:#4a2427;color:#ffd8d8}
html[data-theme="dark"] img{filter:brightness(.9) contrast(1.04)}

html[data-theme="contrast"]{--ink:#000;--blue:#003b73;--blue-dark:#001f3f;--blue-soft:#fff;--dark:#001f3f;--gold:#7a4d00;--green:#005a28;--bg:#fff;--card:#fff;--line:#000;--shadow:none;--danger:#8b0000}
html[data-theme="contrast"] body{background:#fff;color:#000}
html[data-theme="contrast"] .topbar{background:#000;color:#fff;border-bottom:4px solid #ffd800}
html[data-theme="contrast"] .hero{background:#001f3f}
html[data-theme="contrast"] :is(.intro,.path-card,.resource-row,.card,.story-card,.consultant-card,.profile-card,.contact-card,.how-card,.resource-card,.step-card,.choice,.review section,details){background:#fff;color:#000;border:2px solid #000;box-shadow:none}
html[data-theme="contrast"] :is(.temple-week,.help-explainer,.about-effort){background:#fff;color:#000;border:2px solid #000;box-shadow:none}
html[data-theme="contrast"] .temple-week{border-left-width:7px;background:#fff4b3}
html[data-theme="contrast"] .temple-week .eyebrow{color:#000}
html[data-theme="contrast"] :is(.temple-week-options a,.help-steps li){background:#fff;color:#000;border:2px solid #000;box-shadow:none}
html[data-theme="contrast"] .path-actions a{border:2px solid #000}
html[data-theme="contrast"] :is(.path-card p,.resource-card p,.resource-text p,.section-heading p,.lead,.prompt,.hint,.review p,.progress-copy,.count){color:#000}
html[data-theme="contrast"] a:not(.btn){text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:2px}
html[data-theme="contrast"] :is(input[type=text],input[type=email],input[type=tel],select,textarea){background:#fff;color:#000;border:2px solid #000}
html[data-theme="contrast"] :is(.btn,.resource-button a,.quick-links a){border:2px solid #000;box-shadow:none}
html[data-theme="contrast"] .btn{background:#003b73;color:#fff}
html[data-theme="contrast"] .btn.secondary{background:#fff;color:#000}
html[data-theme="contrast"] :is(.privacy,.launch-note){background:#fff4b3;color:#000;border:2px solid #000;border-left-width:7px}
html[data-theme="contrast"] .progress{height:12px;background:#fff;border:2px solid #000}
html[data-theme="contrast"] .progress div{background:#003b73}
html[data-theme="contrast"] .appearance-control select{border:2px solid #fff;background:#000;color:#fff}
html[data-theme="contrast"] .next-steps>p{color:#000}
html[data-theme="contrast"] .next-step-link{background:#fff;color:#000;border:2px solid #000;box-shadow:none}
html[data-theme="contrast"] .next-step-link span{color:#000}
html[data-theme="contrast"] :is(.metric-card,.signal-card,.view-tabs,.privacy-note){border:2px solid #000;box-shadow:none}
html[data-theme="contrast"] :is(.dashboard-status,.training-link){color:#000}

@media(max-width:860px){.appearance-control{margin-left:0}.appearance-control select{min-height:36px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
