/* v142 theme -- scoped to catalog; keep login and printing unchanged. */
#aalsSettingsOverlay[hidden]{display:none!important}
#aalsSettingsOverlay{position:fixed;inset:0;z-index:2147483000;background:rgba(2,12,27,.65);display:flex;align-items:center;justify-content:center;padding:20px;backdrop-filter:blur(5px)}
#aalsSettingsOverlay *{box-sizing:border-box}
#aalsSettingsDialog{width:min(440px,100%);border-radius:16px;border:1px solid #dbe4ee;background:#fff;box-shadow:0 24px 75px rgba(0,0,0,.28);color:#0f2341;font-family:Inter,Segoe UI,system-ui,sans-serif;overflow:hidden}
.aals-settings-titlebar{background:#0f2341;color:#fff;padding:20px 22px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.aals-settings-titlebar h2{font-size:20px;margin:0;font-weight:750}.aals-settings-close{border:0;background:rgba(255,255,255,.12);border-radius:9px;color:white;font-size:23px;line-height:1;width:34px;height:34px}
.aals-settings-body{padding:24px}.aals-theme-row{display:flex;align-items:center;justify-content:space-between;gap:20px}.aals-theme-row strong{display:block;font-size:15px}.aals-theme-row p{margin:5px 0 0;color:#64748b;line-height:1.5;font-size:12px}
.aals-theme-switch{position:relative;display:inline-flex;flex:0 0 auto;align-items:center;width:48px;height:28px}.aals-theme-switch input{opacity:0;position:absolute;inset:0;width:100%;height:100%;cursor:pointer;margin:0;z-index:1}.aals-switch-track{width:48px;height:28px;background:#a4afbf;border-radius:20px;transition:background .2s;position:relative}.aals-switch-track:before{content:'';position:absolute;top:4px;left:4px;width:20px;height:20px;border-radius:50%;background:#fff;transition:transform .2s;box-shadow:0 1px 3px #0004}.aals-theme-switch input:checked+.aals-switch-track{background:#2563eb}.aals-theme-switch input:checked+.aals-switch-track:before{transform:translateX(20px)}
#aalsSettingsOverlay button:focus-visible,#aalsSettingsOverlay input:focus-visible + .aals-switch-track,#aalsSettingsMenuButton:focus-visible{outline:3px solid #72b4ff;outline-offset:3px}
#aalsSettingsMenuButton{display:flex;align-items:center;gap:10px;width:100%;text-align:left}
/* Only the application uses the dark palette. Existing red and amber status semantics remain. */
html[data-aals-theme="dark"] #app{--ink:#edf5ff;--muted:#a8bdd5;--line:#334f70;--bg:#091a30;--panel:#122b49;--soft:#183956;--shadow:0 14px 38px rgba(0,0,0,.3);color:#edf5ff;background:#091a30}
html[data-aals-theme="dark"] #app .layout,html[data-aals-theme="dark"] #app .main,html[data-aals-theme="dark"] #app main,html[data-aals-theme="dark"] #app .sidebar{background-color:#091a30;color:#edf5ff}
html[data-aals-theme="dark"] #app :is(.card,.panel,.product-card,.product-row,.store-card,.filter-card,.side-inner,.modal-card,.catalog-user-menu,.cart-drawer,.admin-order-card,.stat-card){background-color:#122b49;color:#edf5ff;border-color:#334f70}
html[data-aals-theme="dark"] #app :is(input,select,textarea){background-color:#102740;color:#f2f7ff;border-color:#3e5c7e}
html[data-aals-theme="dark"] #app :is(input,textarea)::placeholder{color:#a2b6cd}
html[data-aals-theme="dark"] #app :is(.muted,.text-muted,.small-muted,.subtle,.hint,.section-title,small){color:#adbfda}
html[data-aals-theme="dark"] #app :is(table,th,td){border-color:#345170;color:inherit}
html[data-aals-theme="dark"] #app :is(thead,tr:nth-child(even)){background-color:rgba(25,56,87,.48)}
html[data-aals-theme="dark"] #app :is(.btn-secondary,.btn-outline,.secondary-btn){background:#173755;color:#eaf3ff;border-color:#456482}
html[data-aals-theme="dark"] #app :is(.catalog-user-menu button,.catalog-user-menu a){color:#ecf5ff}
html[data-aals-theme="dark"] #app :is(.catalog-user-menu button:hover,.catalog-user-menu a:hover){background:#234565}
html[data-aals-theme="dark"] #aalsSettingsDialog{background:#102740;border-color:#385676;color:#f2f7ff}
html[data-aals-theme="dark"] #aalsSettingsDialog .aals-theme-row p{color:#b5c8df}
/* Include legacy modals outside #app, but never affect the auth card */
html[data-aals-theme="dark"] body > :is(.modal,.overlay,.dialog){color:#eaf3ff}
@media(prefers-reduced-motion:reduce){.aals-switch-track,.aals-switch-track:before{transition:none}}
