/* Three presentation palettes; the existing sombre palette remains the default. */
.theme-control{display:flex!important;align-items:center;gap:8px;flex-shrink:0;margin:0;font-size:12px;color:#ded8f0}
.theme-control select{width:auto;min-width:100px;margin:0;padding:7px 10px}
.theme-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
html[data-theme=mauve]{--theme-bg:#141122;--theme-surface:#211c35;--theme-raised:#2c2444;--theme-ink:#f5efff;--theme-muted:#c4b5dc;--theme-border:#514169;--theme-accent:#d3a7ff;--theme-button:#7943c6;--theme-scheme:dark}
html[data-theme=blanc]{--theme-bg:#f6f8ff;--theme-surface:#fff;--theme-raised:#eeebfa;--theme-ink:#21183f;--theme-muted:#625578;--theme-border:#d8d3e9;--theme-accent:#6130bd;--theme-button:#6933c5;--theme-scheme:light}
html:is([data-theme=mauve],[data-theme=blanc]) .private-ui:not(.auth-layout){--ink:var(--theme-ink);--muted:var(--theme-muted);--line:var(--theme-border);--accent:var(--theme-accent);--bg:var(--theme-bg);color:var(--ink);background:var(--bg);color-scheme:var(--theme-scheme)}
html[data-theme=mauve] .private-ui:not(.auth-layout){background:radial-gradient(ellipse at 70% 0,#693c9133,transparent 60%),var(--bg)}
html:is([data-theme=mauve],[data-theme=blanc]) .private-ui:not(.auth-layout) :is(.app-topbar,.shell>nav){background:#131323;color:#f5efff;border-color:#37304d;color-scheme:dark}
html:is([data-theme=mauve],[data-theme=blanc]) .private-ui:not(.auth-layout) .shell>main :is(.panel,.module-card,.dossier-banner,.dossier-tabs,.blueprint-paper,.blueprint-contents,.blueprint-reading,.editorial-calendar,.editorial-detail,.editorial-reader,.neo-composer){background:var(--theme-surface);color:var(--ink);border-color:var(--line);color-scheme:var(--theme-scheme)}
html:is([data-theme=mauve],[data-theme=blanc]) .private-ui:not(.auth-layout) .shell>main :is(input,textarea,select,.context-chip,.source-kind,.empty-source,.availability-note,.blueprint-context-card,.blueprint-missing,.assistant-trial-question){background:var(--theme-raised)!important;color:var(--ink)!important;border-color:var(--line)}
html:is([data-theme=mauve],[data-theme=blanc]) .private-ui:not(.auth-layout) .shell>main :is(p,li,dd,dt,label,legend,summary,h1,h2,h3,h4,strong,.today-sales-entry,.assistant-trial-response,.capacity-answer){color:var(--ink);border-color:var(--line)}
html:is([data-theme=mauve],[data-theme=blanc]) .private-ui:not(.auth-layout) .shell>main :is(small,.muted,.intro,.module-card>span:last-child,.topic-intro>p,.neo-welcome p,.assistant-context-label,.neo-history,.hub-mantra,.blueprint-section,.blueprint-reading-kicker,.blueprint-section-count){color:var(--muted)}
html:is([data-theme=mauve],[data-theme=blanc]) .private-ui:not(.auth-layout) .shell>main a{color:var(--theme-accent)}
html:is([data-theme=mauve],[data-theme=blanc]) .private-ui:not(.auth-layout) .shell>main button{background:var(--theme-button);color:#fff;border-color:var(--theme-border)}
html:is([data-theme=mauve],[data-theme=blanc]) .private-ui:not(.auth-layout) .shell>main :is(button.secondary,button.suggestion,.capacity-choices button,.blueprint-workspace-tabs button,.topic-assistant){background:var(--theme-raised);color:var(--ink);border-color:var(--line)}
html:is([data-theme=mauve],[data-theme=blanc]) .private-ui:not(.auth-layout) .shell>main :is(button,.module-card):hover:not(:disabled){filter:brightness(1.08);border-color:var(--theme-accent)}
html:is([data-theme=mauve],[data-theme=blanc]) .private-ui:not(.auth-layout) :is(a,button,input,textarea,select,summary):focus-visible{outline:3px solid var(--theme-accent);outline-offset:3px}
html:is([data-theme=mauve],[data-theme=blanc]) .private-ui:not(.auth-layout) .shell>main :is(input,textarea)::placeholder{color:var(--muted);opacity:1}
html:is([data-theme=mauve],[data-theme=blanc]) .private-ui:not(.auth-layout) .module-card .module-icon{color:var(--theme-accent)}
html:is([data-theme=mauve],[data-theme=blanc]) .private-ui:not(.auth-layout) nav .os-link.active{background:#49306f;color:#fff}
html:is([data-theme=mauve],[data-theme=blanc]) .private-ui:not(.auth-layout) nav :is(.os-context,.sidebar-search){background:#242039;color:#eee4ff;border-color:#514169}
html[data-theme=blanc] .private-ui:not(.auth-layout) .shell>main .error{color:#a02145}
html[data-theme=mauve] .private-ui:not(.auth-layout) .shell>main .error{color:#ffafc9}
@media(max-width:760px){.theme-control{margin-left:auto;font-size:11px}.theme-control select{min-width:88px}.app-topbar{flex-wrap:wrap}}
