.topbar { position:relative; padding-left:58px; min-height:48px; }
.topbar .topbar__inner { min-height:48px; height:auto; }
#public-theme { position:absolute; top:50%; left:max(6px,env(safe-area-inset-left)); transform:translateY(-50%); width:44px; height:44px; padding:0; border:1px solid #8296ab; border-radius:50%; background:#213951; color:#fff; font:24px/1 system-ui,sans-serif; cursor:pointer; }
#public-theme:focus-visible { outline:3px solid #ffcf65; outline-offset:1px; }
html[data-theme=light] {color-scheme:light}
html[data-theme=dark],html[data-theme=dark] body {
 color-scheme:dark; --bg:#101923; --bg-alt:#152130; --surface:#1c2a3a; --inner:#213244; --border:#486079; --text:#e3eaf2; --muted:#bbcbda; --heading:#eff6fc; --ink:#eff6fc; --navy:#e8f4ff; --primary:#81baf3; --primary-light:#a8cdf9; --primary-dark:#b1d6fb; --soft:#283c51; --accent:#80ded1; --teal:#80ded1; --grad:#2f639c; background:#101923; color:var(--text);
}
html[data-theme=dark] body :is(.header,.header.is-scrolled,.nav__menu,.mobile-bar,.form,.quiz,.story-card,.front-plan-demo,.front-plan-demo__list li,.titi-features a,.home-topic,.home-slide,.tool-directory article,.hero__card,.card,.plan,.career-card,.career-note,.contact,.faq details,.compare,.article__body blockquote,details.est-pct) {background:var(--surface);color:var(--text);border-color:var(--border)}
html[data-theme=dark] body :is(.section--alt,.page-hero,.article__hero,.footer,.section--cta,.section--dark,.section--light,.quiz__option,.tab,.est-coverage,.est-hint,.career-result,th) {background:var(--bg-alt);color:var(--text)}
html[data-theme=dark] body :is(h1,h2,h3,h4,label,summary,.logo__en,.titi-features strong,.front-plan-demo strong,.story-card__title) {color:var(--heading)}
html[data-theme=dark] body :is(p,small,.titi-features span,.front-plan-demo__list li>span,.story-card__result,.article__lead,.quiz__note) {color:var(--muted)}
html[data-theme=dark] body :is(input,textarea,select,.btn--ghost,.nav__menu a) {background:var(--inner); color:var(--text)!important; border-color:var(--border)}
html[data-theme=dark] body .btn:not(.btn--ghost),html[data-theme=dark] body .tab.is-active {background:#285e93;color:white!important}
html[data-theme=dark] body .nav>a:not(.btn),html[data-theme=dark] body .article__back,html[data-theme=dark] body .season-guide a {color:var(--primary)}
html[data-theme=dark] body .hero.titi-front {background:#112842}
html[data-theme=dark] body .front-plan-demo__num,html[data-theme=dark] body .front-plan-demo__label {background:#28405b;color:#dcecff}
html[data-theme=dark] body .menu-toggle span {background:#dcecff}
html[data-theme=dark] body .compare tr:nth-child(even) td {background:var(--inner)}
@media(max-width:900px){html[data-theme=dark] body .nav.is-open {background:var(--surface)}}
.est-records {margin-block:1.2rem;}.est-records summary {cursor:pointer;font-weight:700}.est-records table {width:100%}.est-records a {text-decoration:underline}


body:has(.header > #public-theme) .header {position:relative;padding-left:56px}
