/* Light working surfaces. The authored adult home/about and Academy palette
   remain unchanged; routes and existing components retain their geometry. */
body[data-theme=adult]:is(.auth-screen,[data-surface=website]:has(main:is(.route-events,.route-event,.route-locations,.route-profile,.route-bookings,.route-login))){
 --bg:#fff;--bg-deep:#fff;--surface:#f3f6fa;--surface-raised:#eaf1f8;
 --surface-hover:#eaf2fc;--border:#d5dfeb;--text:#142747;--muted:#52647b;
 --blue:#0868d7;--blue-solid:#0868d7;--focus:#155bd6;--success:#15794a;
 --danger:#a02730;--danger-surface:#fff1f1;--success-surface:#edf8f1;
 background:#fff;color:var(--text);color-scheme:light;
}
body[data-surface=website][data-theme=adult]:has(main:is(.route-events,.route-event,.route-locations,.route-profile,.route-bookings,.route-login)) .site-polished[data-site-theme=adult]{
 --site-bg:#fff;--site-panel:#f3f6fa;--site-ink:#142747;--site-muted:#52647b;
 --site-line:#d5dfeb;--site-accent:#0868d7;--site-action:#0868d7;
 color:var(--site-ink);background:var(--site-bg);
}
body[data-surface=website][data-theme=adult]:has(main:is(.route-events,.route-event,.route-locations,.route-profile,.route-bookings,.route-login)) .site-polished[data-site-theme=adult] :is(h1,h2,h3,p,summary){color:var(--site-ink)!important}
body[data-surface=website][data-theme=adult]:has(main:is(.route-events,.route-event,.route-locations,.route-profile,.route-bookings,.route-login)) .site-polished[data-site-theme=adult] :is(.site-heading-fragment,.site-step-number){color:var(--site-accent)!important}
body[data-surface=website][data-theme=adult]:has(main:is(.route-events,.route-event,.route-locations,.route-profile,.route-bookings,.route-login)) .site-polished[data-site-theme=adult] .pb-section:not(.pb-navigation) .pb-button:not(.pb-button-outline){background:#0868d7!important;color:#fff!important;border-color:#0868d7!important}
body[data-surface=website][data-theme=adult]:has(main:is(.route-events,.route-event,.route-locations,.route-profile,.route-bookings,.route-login)) .site-polished[data-site-theme=adult] .pb-button-outline{background:#fff!important;color:#0868d7!important;border-color:#0868d7!important}
body[data-surface=website][data-theme=adult]:has(main:is(.route-events,.route-event,.route-locations,.route-profile,.route-bookings,.route-login)) .site-polished[data-site-theme=adult] .pb-navigation .pb-button{color:#142747!important}
body[data-surface=website][data-theme=adult]:has(main:is(.route-events,.route-event,.route-locations,.route-profile,.route-bookings,.route-login)) .site-polished[data-site-theme=adult] .pb-navigation .pb-button:is(:hover,:focus-visible,:active){color:#142747!important;background:#eaf2fc!important}
body[data-surface=website][data-theme=adult]:has(main:is(.route-events,.route-event,.route-locations,.route-profile,.route-bookings,.route-login)) .site-polished[data-site-theme=adult] .reference-empty{color:#52647b!important;background:#f3f6fa!important}
body[data-surface=website][data-theme=adult]:has(main:is(.route-events,.route-event,.route-locations,.route-profile,.route-bookings,.route-login)) :is(input,select,textarea){background:#fff;color:#142747;border-color:#8b9db3}
body[data-surface=website][data-theme=adult]:has(main:is(.route-events,.route-event,.route-locations,.route-profile,.route-bookings,.route-login)) .avatar-small{color:#0868d7}
body[data-surface=website][data-theme=adult]:has(main:is(.route-events,.route-event,.route-locations,.route-profile,.route-bookings,.route-login)) .header{background:#fff!important;border-color:#d5dfeb}
body[data-surface=website][data-theme=adult]:has(main:is(.route-events,.route-event,.route-locations,.route-profile,.route-bookings,.route-login)) .header .account-control{color:#142747}
body[data-surface=website][data-theme=adult]:has(main:is(.route-events,.route-event,.route-locations,.route-profile,.route-bookings,.route-login)) .site-polished[data-site-theme=adult].site-utility .pb-hero .pb-visual-node{background-color:transparent!important}
body[data-surface=website][data-theme=adult]:has(main:is(.route-events,.route-event,.route-locations,.route-profile,.route-bookings,.route-login)) .site-polished[data-site-theme=adult] .site-split-hero::before{background:linear-gradient(90deg,#fff 0%,#fff 27%,#ffffffed 43%,#ffffff00 70%)}
body.auth-screen[data-theme=adult] .auth-header{background:#fff;border-color:#d5dfeb}
body.auth-screen[data-theme=adult] .auth-header .brand-wordmark,
body.auth-screen[data-theme=adult] .auth-header .brand-wordmark strong{color:#142747!important}
body.auth-screen[data-theme=adult] .auth-header .secondary{color:#0868d7;background:#fff;border-color:#8b9db3}
body.auth-screen[data-theme=adult] .account-login{background:#fff;border-color:#d5dfeb;box-shadow:0 12px 35px #1831510c}
body.auth-screen[data-theme=adult] .auth-panel :is(h1,h2,p,label){color:#142747!important}
body.auth-screen[data-theme=adult] .auth-panel :is(input,select,textarea){background:#fff!important;color:#142747!important;border-color:#8b9db3!important}
body.auth-screen[data-theme=adult] .auth-panel input::placeholder{color:#52647b}
body.auth-screen[data-theme=adult] .auth-panel .secondary{color:#142747;border-color:#8b9db3}
/* 16 px avoids iOS focus auto-zoom while leaving intentional browser zoom
   and the existing standalone gesture policy untouched. */
body:is(.auth-screen,.app-ui) :is(input,select,textarea),
body[data-surface=website][data-theme=adult]:has(main:is(.route-events,.route-event,.route-locations,.route-profile,.route-bookings,.route-login)) :is(input,select,textarea){font-size:16px}

/* Legacy booking controls carry fixed dark colors outside the page tokens. */
body[data-surface=website][data-theme=adult]:has(main:is(.route-events,.route-event,.route-locations,.route-profile,.route-bookings,.route-login)) .booking-state{background:#f3f6fa;border-color:#d5dfeb;box-shadow:none}
body[data-surface=website][data-theme=adult]:has(main:is(.route-events,.route-event,.route-locations,.route-profile,.route-bookings,.route-login)) .booking-state>.secondary,body[data-surface=website][data-theme=adult]:has(main:is(.route-events,.route-event,.route-locations,.route-profile,.route-bookings,.route-login)) .booking-state>.danger{background:#fff;border-color:#8b9db3;color:#142747}
body[data-surface=website][data-theme=adult]:has(main:is(.route-events,.route-event,.route-locations,.route-profile,.route-bookings,.route-login)) .booking-state>.status-pill{color:#142747}
body[data-surface=website][data-theme=adult]:has(main:is(.route-events,.route-event,.route-locations,.route-profile,.route-bookings,.route-login)) .primary{background:#0868d7;color:#fff}
body[data-surface=website][data-theme=adult]:has(main:is(.route-events,.route-event,.route-locations,.route-profile,.route-bookings,.route-login)) .primary:hover{background:#075bbd}
body[data-surface=website][data-theme=adult]:has(main:is(.route-events,.route-event,.route-locations,.route-profile,.route-bookings,.route-login)) .site-polished[data-site-theme=adult] .pb-section>.pb-overlay{display:none}

/* VA-02: explicit readable values and local light quick-action cards. */
body[data-surface=website] main:is(.route-profile,.route-academy) .profile-editor{color:#142747;background:#f3f6fb}
body[data-surface=website] main:is(.route-profile,.route-academy) .profile-editor :is(dt,dd){color:#142747!important;opacity:1;font-size:16px;line-height:1.5}
body[data-surface=website] .site-utility [data-name="Быстрые действия"]{color:#142747!important;background:#f3f6fb!important;border-color:#d5dfeb!important}
body[data-surface=website] .site-utility [data-name="Быстрые действия"] :is(h2,h3){color:#142747!important;opacity:1;font-size:24px!important}
