/* Personal appearance only. Printed clinical documents keep their original palette. */
@media screen {
html[data-theme="dark"] {color-scheme:dark;background:#101722;color:#e2e9f3}
html[data-theme="dark"] body {background:#101722;color:#e2e9f3;--consult-border:#354256;--consult-muted:#aebed3;--fc-border-color:#354256;--fc-page-bg-color:#192333;--fc-neutral-bg-color:#202d40;--fc-list-event-hover-bg-color:#28394f}
html[data-theme="dark"] :is(.admin-sidebar,.admin-topbar,.admin-header,.dashboard-header,.settings-card,.home-card,.home-metrics>div,.home-links>a,.consult-workspace,.consult-card,.module-card,.module-placeholder,.form-panel,.login-shell,[class$="-panel"],[class$="-toolbar"],[class$="-filters"],[class$="-card"],[class$="-table-wrap"]) {background:#192333;border-color:#354256;color:#e2e9f3}
html[data-theme="dark"] :is(h1,h2,h3,h4,label,legend,strong,th,td,summary):not(#rx-paper *) {color:#e2e9f3}
html[data-theme="dark"] :is(p,small,figcaption,.section-label,.prototype-note,.nav-group-title,.sidebar-version,.home-metrics span,.consult-info>span):not(#rx-paper *) {color:#adbed4}
html[data-theme="dark"] :is(a,.nav-item):not(#rx-paper *) {color:#a9bfff}
html[data-theme="dark"] :is(.nav-item:hover,.nav-item.active,.workspace-badge,.settings-notice,.home-alert,.consult-day,.consult-medication-lookup,.consult-package-line,.consult-badge,thead,th) {background:#24344c;border-color:#3b4c65;color:#cddcf8}
html[data-theme="dark"] .home-quote {background:linear-gradient(115deg,#25335a,#1c3a3c);border-color:#3b4c65}
html[data-theme="dark"] .home-quote blockquote {color:#e0e9ff}
html[data-theme="dark"] :is(input,select,textarea,button):not(#rx-paper *) {background-color:#1d2b3f;color:#e2e9f3;border-color:#465874}
html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder {color:#9daec4}
html[data-theme="dark"] :is(.consult-primary,#settings-save,.login-button,[class$="-primary"]) {background:#4564dd;color:#fff;border-color:#6884ed}
html[data-theme="dark"] :is(fieldset,table,tr,td,th,[class$="-heading"],[class$="-footer"],.home-appointment,.consult-medication) {border-color:#354256}
html[data-theme="dark"] #main-content dialog.mb-modal[id],html[data-theme="dark"] #main-content dialog.mb-modal[id] :is(.mb-modal-header,.mb-modal-footer) {background:#192333;border-color:#354256;color:#e2e9f3}
html[data-theme="dark"] #main-content dialog.mb-modal[id] .mb-modal-header h2 {color:#e2e9f3}
html[data-theme="dark"] #main-content dialog.mb-modal[id] .mb-modal-header button {background:#24344c;color:#e2e9f3;border-color:#465874}
html[data-theme="dark"] #settings-app :is(h2,label) {color:#e2e9f3}
html[data-theme="dark"] #settings-app p {color:#adbed4}
html[data-theme="dark"] #settings-app button {background:#24344c;color:#c4d4ff;border-color:#465874}
html[data-theme="dark"] #settings-error {color:#ffa9b6!important}
html[data-theme="dark"] #settings-message {color:#85dbc3!important}
html[data-theme="dark"] canvas {background:#fff;border-radius:8px}
html[data-theme="dark"] #rx-paper {color-scheme:light;background:#fff;color:#17243c}
html[data-theme="dark"] .brand-mark {background:#2947dc;color:#fff}
html[data-theme="dark"] :is(.agenda-board,.pos-checkout,.pos-catalog,.pos-ticket,.history-summary,.history-sticky,.rx-editor,.rx-preview,.audit-metrics>div,.inv-metrics>div,.home-refresh,.cash-fees>summary,.patient-search-field) {background:#192333;border-color:#354256;color:#e2e9f3}
html[data-theme="dark"] :is(.rx-paper-scroll,.rx-line,.user-avatar,.sidebar-bottom) {background:#24344c;border-color:#354256}
html[data-theme="dark"] :is(input,select,textarea):not(#rx-paper *) {background-color:#1d2b3f!important;color:#e2e9f3!important;border-color:#465874!important}
html[data-theme="dark"] #main-content dialog.mb-modal[id] :is(.mb-modal-footer button,.mb-modal-body button) {background:#24344c;color:#c4d4ff;border-color:#465874}
html[data-theme="dark"] .admin-header {background:#192333;color:#adbed4;border-color:#354256}
}
#settings-theme-status {min-height:1.7em}
@media screen {
html[data-text-size="large"] #main-content :is(p,label,input,select,textarea,button,td,th,li):not(#rx-paper *){font-size:16px!important;line-height:1.65}
html[data-motion="reduce"] *,html[data-motion="reduce"] *::before,html[data-motion="reduce"] *::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
}
@media screen and (prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
@media screen {
html[data-theme=dark] .login-page .input-wrap{background:#1d2b3f;border-color:#465874}
html[data-theme=dark] .login-page .input-wrap input{background:transparent!important;color:#e2e9f3!important}
html[data-theme=dark] .login-page .input-wrap input::placeholder{color:#adbed4}
html[data-theme=dark] .login-page .input-wrap svg{stroke:#adbed4}
html[data-theme=dark] .login-page .password-toggle{background:transparent;color:#e2e9f3}
html[data-theme=dark] .login-page .demo-note{background:#24344c;border-color:#465874}
html[data-theme=dark] .login-page .demo-note :is(p,strong){color:#c3d0e2}
html[data-theme=dark] .login-page .primary-button{background:#4867e5;color:white}
html[data-theme=dark] .login-page input:autofill{-webkit-text-fill-color:#e2e9f3;box-shadow:0 0 0 100px #1d2b3f inset}
}

@media screen{html[data-theme=dark] .login-page #login-form .primary-button{background:#4867e5!important;color:#fff!important;border-color:#4867e5}html[data-theme=dark] .login-page #login-form .primary-button:hover{background:#5b7af4!important}}
