/* Light remains the established Medical&Stay design; dark uses the same brand. */
html[data-theme=dark]{color-scheme:dark;--paper:#101a29;--ink:#e2ebf5;--muted:#afbed0;--line:#3c5068;--clay:#007a51;--chat-ink:#e2ebf5;--chat-muted:#afbed0;--chat-line:#3c5068;background:#101a29;color:#e2ebf5}
html[data-theme=dark] body{background:#101a29;color:#e2ebf5}
html[data-theme=dark] :is(input,textarea,select){color-scheme:dark}
html[data-theme=dark] :is(input,textarea)::placeholder{color:#afbed0;opacity:1}
html[data-theme=dark] :is(a.text-link,h1 em,h2 em,h3 em){color:#78dbb3}
html[data-theme=dark] :is(.brand-logo,.login-brand){background:#f7f9fc;border-radius:8px;padding:5px}
html[data-theme=dark] ::selection{background:#345e89;color:#fff}
html[data-theme=dark] :focus-visible{outline-color:#78dbb3!important}
.theme-switcher{position:fixed;right:16px;bottom:max(16px,env(safe-area-inset-bottom));z-index:80;display:flex;align-items:center;gap:6px;height:42px;padding:0 9px;background:#fff;color:#183451;border:1px solid #dce4ec;border-radius:22px;box-shadow:0 3px 12px rgb(0 39 99 / .12);font:500 13px/1.3 Manrope,Arial,sans-serif}
.theme-switcher::before{display:none!important}.theme-switcher svg{width:19px;height:19px;flex:none}.theme-switcher select{width:104px;height:40px;min-height:40px;min-width:0;padding:0 2px;border:0;border-radius:16px;background:transparent;color:inherit;font:inherit;cursor:pointer}.theme-switcher select:focus-visible{outline:2px solid #007a51;outline-offset:0}
html[data-theme=dark] .theme-switcher{background:#182536;border-color:#3c5068;color:#e2ebf5;box-shadow:0 3px 12px rgb(0 0 0 / .25)}
body:has(dialog[open])>.theme-switcher,body[data-embedded-messages]>.theme-switcher{display:none}
