/* Warm white text, blue-gray surfaces, mint accents. Artwork retains its colors. */
.theme-toggle{border:1px solid #58747d!important;background:#edf3f2!important;color:#142f39!important;border-radius:12px;padding:10px 14px;min-height:44px;flex-shrink:0;font:inherit;font-size:14px;cursor:pointer}
@media screen{
html[data-theme=dark]{color-scheme:dark;background:#101b22!important;color:#e7eff2!important;--ink:#e7eff2;--muted:#b1c2ca;--line:#4c646e;--lime:#c3f478}
html[data-theme=dark] body{background:#101b22!important;color:#e7eff2!important}
html[data-theme=dark] :is(.top,.choice,.result-card,.hub-tool,.i94-main section,dialog){background:#192a33!important;color:#e7eff2!important;border-color:#4c646e!important}
html[data-theme=dark] :is(.notice,.simulation-entry,.simulation-link,.program-reminder,.summary-card,.training-row,.tag,.pill,.visa-icon,.tool-category){background:#203740!important;color:#e7eff2!important;border-color:#58737d!important}
html[data-theme=dark] :is(h1,h2,h3,label,legend,strong,b,.days-total){color:#e7eff2}
html[data-theme=dark] :is(p,small,.intro,.hint,.footnote,.clockline,.rule-banner,.rail-bottom,.about-app,.review-date,.tool-number,.result-num,.result-card li,.review-answer span,.metric,.eyebrow,#newsStatus){color:#b9cbd2!important}
html[data-theme=dark] :is(a,.other-tools summary,.source-row span,.small-link){color:#91ded2!important}
html[data-theme=dark] :is(input,select,textarea){background:#11232d!important;color:#f0f5f7!important;border-color:#69828e!important;accent-color:#a2e3d1}
html[data-theme=dark] input::placeholder,html[data-theme=dark] textarea::placeholder{color:#adc1ca;opacity:1}
html[data-theme=dark] :is(button,.primary,.secondary,.tools-page button,.i94-main button){background:#294c58!important;color:#f0f5f7!important;border:1px solid #76949e!important}
html[data-theme=dark] button:hover{background:#365e6b!important}
html[data-theme=dark] button:disabled{background:#26363e!important;color:#a8b7be!important;border-color:#536973!important;opacity:1!important}
html[data-theme=dark] :is(.choice[aria-pressed=true],.step.current span){background:#294d48!important;border-color:#a2e3d1!important;color:#f0f5f7!important}
html[data-theme=dark] .choice[aria-pressed=true] .radio{border-color:#a2e3d1;background:#294d48}
html[data-theme=dark] .step span{background:#203740;color:#d7e6ec}
html[data-theme=dark] .step.done span{background:#294d48;color:#d7e6ec}
html[data-theme=dark] :is(.injunction-alert,.notice.amber){background:#352e20!important;border-color:#c4a269!important;color:#ffe0a6!important}
html[data-theme=dark] :is(.injunction-alert,.notice.amber) :is(p,h1,h2,.eyebrow,.banner-review,button){color:#ffe0a6!important}
html[data-theme=dark] :is(.error,.calc-error){color:#ffb5a9!important}
html[data-theme=dark] :is(.metric b,.tool-link){color:#c3f478!important}
html[data-theme=dark] iframe{border:2px solid #698e91!important;border-radius:16px;background:#192a33}
html[data-theme=dark] :is(button,a,input,select,textarea,summary):focus-visible{outline:3px solid #bdeaa0!important;outline-offset:4px}
html[data-theme=dark] dialog::backdrop{background:#000a}
html[data-theme=dark] .theme-toggle{background:#203740!important;color:#e7eff2!important}
}
@media print{.theme-toggle{display:none!important}}

/* Give the featured home card its own complementary palette in dark mode. */
html[data-theme=dark] body.hub #home-featured-tool{background:#d9e9d0!important;color:#16343e!important;border-color:#afc8a7!important}
html[data-theme=dark] body.hub #home-featured-tool h2{color:#16343e!important}
html[data-theme=dark] body.hub #home-featured-tool :is(p,small,.tool-number){color:#35535a!important}
html[data-theme=dark] body.hub #home-featured-tool .tool-category{background:#bfd2b7!important;color:#16343e!important;border-color:#afc8a7!important}
html[data-theme=dark] body.hub #home-featured-tool .tool-link{color:#285541!important;border-color:#99b59b!important}
html[data-theme=dark] body.hub #home-featured-tool:focus-visible{outline-color:#c3f478}
