/* Proposed scoped account palette. Approved source tokens; explicit functional mixes. */
html[data-mend-theme]{--mend-blue:#B3C6D1;--mend-orange:#E59E4C;--mend-ink:#172026;--mend-white:#FFFFFF;--mend-black:#000000;--ui-bg:var(--mend-white);--ui-panel:var(--mend-white);--ui-text:var(--mend-ink);--ui-muted:color-mix(in srgb,var(--mend-ink) 80%,var(--mend-white));--ui-line:color-mix(in srgb,var(--mend-ink) 25%,var(--mend-white));--ui-accent:var(--mend-orange);--ui-on-accent:var(--mend-ink);--ui-selected:var(--mend-blue);color-scheme:light}
html[data-mend-theme=night]{--ui-bg:var(--mend-black);--ui-panel:var(--mend-ink);--ui-text:var(--mend-white);--ui-muted:var(--mend-blue);--ui-line:color-mix(in srgb,var(--mend-blue) 45%,var(--mend-ink));--ui-accent:var(--mend-blue);--ui-selected:color-mix(in srgb,var(--mend-blue) 20%,var(--mend-ink));color-scheme:dark}
html[data-mend-theme=blue]{--ui-bg:var(--mend-blue);--ui-panel:color-mix(in srgb,var(--mend-blue) 70%,var(--mend-white));--ui-muted:color-mix(in srgb,var(--mend-ink) 80%,var(--mend-blue));--ui-line:color-mix(in srgb,var(--mend-ink) 35%,var(--mend-blue))}
html[data-mend-theme=gray]{--ui-bg:color-mix(in srgb,var(--mend-ink) 18%,var(--mend-white));--ui-panel:color-mix(in srgb,var(--mend-ink) 7%,var(--mend-white));--ui-line:color-mix(in srgb,var(--mend-ink) 30%,var(--mend-white));--ui-accent:var(--mend-blue)}
html[data-mend-theme],html[data-mend-theme] body,html[data-mend-theme] #space{--ink:var(--ui-text);--muted:var(--ui-muted);--deep:var(--ui-muted);--blue:var(--mend-blue);--orange:var(--ui-accent);--line:var(--ui-line);--paper:var(--ui-panel);--wash:var(--ui-selected);--brand-orange:var(--ui-accent);--brand-blue-gray:var(--ui-selected);--brand-blue-deep:var(--ui-muted);--mend-rule:var(--ui-line);--prefs-panel:var(--ui-panel);--prefs-bg:var(--ui-bg);--prefs-text:var(--ui-text);--prefs-line:var(--ui-line);--prefs-accent:var(--ui-accent);--prefs-on:var(--ui-on-accent);background:var(--ui-bg);color:var(--ui-text)}
html[data-mend-theme] :is(.space-top,.space-footer,.side,.mobile,.panel,.topbar,.session-player,.session-detail,.session-preference-bar,.session-information-page>section){background:var(--ui-panel);color:var(--ui-text);border-color:var(--ui-line)}
html[data-mend-theme] :is(button,.button,select){background:var(--ui-panel);color:var(--ui-text);border-color:var(--ui-line)}
html[data-mend-theme] :is(button,.button).primary{background:var(--ui-accent);color:var(--ui-on-accent);border-color:var(--ui-accent)}
html[data-mend-theme] :is(button,.button).primary:hover{background:var(--ui-accent);filter:brightness(.96)}
html[data-mend-theme] :is(.message,.chapter-controls [aria-current=step]){background:var(--ui-selected);color:var(--ui-text);border-color:var(--ui-line)}
html[data-mend-theme] :is(.small,.status,.eyebrow,.page-intro p,.session-information-link,.session-information-link a,.session-detail summary,.session-detail summary span){color:var(--ui-muted)}
html[data-mend-theme] :is(.page-intro h1,#space main>h1,#space main>p,#preferences-content>h1,#preferences-content>p){color:var(--ui-text)}
html[data-mend-theme] .session-information-page>section{border:1px solid var(--ui-line)}
html[data-mend-theme] :is(input,select){accent-color:var(--ui-muted)}
html[data-mend-theme] :is(.session-viewport,.appearance-preview){background:var(--mend-black);color:var(--mend-white)}
html[data-mend-theme] :is(.session-stage-heading,.preview-stage-heading){color:var(--mend-white)}
html[data-mend-theme] #space .theme-swatch{background:var(--mend-white);border-color:var(--ui-line)}
html[data-mend-theme] #space .theme-swatch span:first-child{background:var(--mend-orange)}
html[data-mend-theme] #space .theme-swatch span:last-child{background:var(--mend-blue)}
html[data-mend-theme] #space .theme-swatch.night{background:var(--mend-black)}
html[data-mend-theme] #space .theme-swatch.night span:first-child{background:var(--mend-ink)}
html[data-mend-theme] #space .theme-swatch.blue{background:var(--mend-blue)}
html[data-mend-theme] #space .theme-swatch.blue span:first-child{background:var(--mend-orange)}
html[data-mend-theme] #space .theme-swatch.blue span:last-child{background:color-mix(in srgb,var(--mend-blue) 70%,var(--mend-white))}
html[data-mend-theme] #space .theme-swatch.gray{background:color-mix(in srgb,var(--mend-ink) 18%,var(--mend-white))}
html[data-mend-theme] #space .theme-swatch.gray span:first-child{background:var(--mend-blue)}
html[data-mend-theme] #space .theme-swatch.gray span:last-child{background:color-mix(in srgb,var(--mend-ink) 7%,var(--mend-white))}
html[data-mend-theme] #space .mobile{background:var(--ui-panel);border-color:var(--ui-line)}

html[data-mend-theme] .session-experience .information-actions .button{background:var(--ui-accent);color:var(--ui-on-accent);border-color:var(--ui-accent)}
