/* One light palette for web and installed app. Dark/OLED remain independent. */
html[data-theme=light]{color-scheme:only light!important;--bg:#f2eefc;--card:#fff;--surface:#fff;--text:#20213d;--muted:#63627b;--line:#ded7ee;--mobile-bg:#f2eefc;--mobile-card:#fff;--mobile-control:#fff;background:#f2eefc!important}
html[data-theme=light] body,html[data-theme=light] body .ux-shell,html[data-theme=light] body .ux-shell .main,html[data-theme=light] body .ux-shell .content{background:#f2eefc!important;color:#20213d}
html[data-theme=light] body .ux-shell :is(.topbar,.ux-bottom-nav,.card,.account-options,.account-identity,.account-option,.app-shortcut,.app-summary,.ux-metrics article,.ux-status-note){background:#fff!important;color:#20213d!important;border-color:#e5dcef!important}
html[data-theme=light] body .account-page :is(h1,h2,strong),html[data-theme=light] body .ux-welcome h1{color:#20213d!important}
html[data-theme=light] body :is(.account-option-text small,.account-identity>div>span,.account-page-heading p,.app-companion p){color:#63627b!important}
html[data-theme=light] body :is(dialog,.profile-dialog){background:#fff!important;color:#20213d!important;border-color:#e5dcef!important}
html[data-theme=light] body :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]),select,textarea){color-scheme:only light!important;background:#fff!important;color:#20213d!important;border-color:#d7cde7!important}
html[data-theme=light] body input:-webkit-autofill{-webkit-text-fill-color:#20213d;-webkit-box-shadow:0 0 0 1000px #fff inset}
html[data-theme=light] body .app-companion{background:linear-gradient(110deg,#eee5fb,#faf7ff)!important;border-color:#e3d7f0!important}
html[data-theme=light] body .ux-bottom-nav button{background:transparent!important;color:#726580!important}
html[data-theme=light] body .ux-bottom-nav button:is(.active,[aria-current=page]){background:#eee5fb!important;color:#6334df!important}
html.zaira-app-entry:not([data-theme=dark]){color-scheme:only light;background:#f2eefc}.zaira-app-entry .access-page,.zaira-app-entry .access-main{background:#f2eefc}

/* Explicit dialog palette, including Android automatic recoloring boundaries. */
html[data-theme=light] body dialog.profile-dialog{color-scheme:only light!important;background-color:#fff!important;background-image:linear-gradient(#fff,#fff)!important;color:#20213d!important;--card:#fff;--text:#20213d;--muted:#63627b;--line:#ded7ee}
html[data-theme=light] .profile-dialog :is(.profile-heading h2,.profile-identity>strong,.profile-appearance h3,.profile-theme-choice>strong,.profile-auto>span){color:#20213d!important;-webkit-text-fill-color:#20213d!important}
html[data-theme=light] .profile-dialog :is(.profile-heading p,.profile-identity>span,.profile-identity>small,.profile-theme-choice>small,.profile-auto small,.profile-theme-status){color:#63627b!important;-webkit-text-fill-color:#63627b!important}
html[data-theme=light] .profile-dialog .profile-theme-choice{background:#fff!important;border-color:#ded7ee!important}
html[data-theme=light] .profile-dialog .profile-theme-choice:has(input:checked){background:#f4edff!important;border-color:#8858ce!important}
html[data-theme=light] .profile-dialog .profile-theme-preview.light{background:#faf8ff!important;background-image:linear-gradient(#faf8ff,#faf8ff)!important}
html[data-theme=light] .profile-dialog .profile-theme-preview.dark{background:#24242d!important;background-image:linear-gradient(#24242d,#24242d)!important}
html[data-theme=light] .profile-dialog .profile-theme-preview.oled{background:#000!important;background-image:linear-gradient(#000,#000)!important}
