:root{color-scheme:light}html[data-theme="dark"]{color-scheme:dark}.theme-picker{position:relative;font-family:inherit}.theme-picker summary{list-style:none;display:inline-flex;align-items:center;gap:7px;height:38px;padding:0 11px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#475569;font-size:13px;font-weight:600;cursor:pointer;user-select:none}.theme-picker summary::-webkit-details-marker{display:none}.theme-picker summary:hover{background:#f8fafc;color:#0f172a}.theme-picker summary svg{width:17px;height:17px}.theme-picker-menu{position:absolute;z-index:100;top:calc(100% + 8px);right:0;width:224px;padding:6px;border:1px solid #dbe3e9;border-radius:10px;background:#fff;box-shadow:0 16px 40px rgba(15,23,42,.14)}.theme-picker-menu button{width:100%;display:grid;grid-template-columns:26px 1fr 16px;align-items:center;gap:10px;border:0;border-radius:7px;padding:9px;background:transparent;color:#334155;text-align:left;cursor:pointer}.theme-picker-menu button:hover,.theme-picker-menu button.is-selected{background:#f1f5f4}.theme-picker-menu button>span:nth-child(2){display:grid;gap:2px}.theme-picker-menu strong{font-size:13px;font-weight:650}.theme-picker-menu small{font-size:10px;color:#64748b}.theme-picker-menu i{display:none;color:#087f68;font-style:normal}.theme-picker-menu .is-selected i{display:block}.theme-swatch{width:24px;height:24px;border:1px solid #cbd5e1;border-radius:6px}.theme-swatch--light{background:#fff}.theme-swatch--dark{background:#17211f;border-color:#33413e}.theme-swatch--system{background:linear-gradient(135deg,#fff 0 50%,#17211f 50%)}.theme-picker--auth{position:fixed;z-index:210;top:20px;right:20px}.theme-picker--auth summary{background:rgba(255,255,255,.94);box-shadow:0 4px 18px rgba(15,23,42,.1)}
html[data-theme="dark"] body{background:#0d1514!important;color:#dce5e2!important}html[data-theme="dark"] body>header,html[data-theme="dark"] body>footer,html[data-theme="dark"] [class~="bg-white"]{background-color:#15201e!important}html[data-theme="dark"] [class*="border-slate-"]{border-color:#2c3a37!important}html[data-theme="dark"] [class~="text-slate-950"],html[data-theme="dark"] [class~="text-slate-900"],html[data-theme="dark"] [class~="text-slate-800"]{color:#f1f5f3!important}html[data-theme="dark"] [class~="text-slate-700"],html[data-theme="dark"] [class~="text-slate-600"]{color:#c2ceca!important}html[data-theme="dark"] [class~="text-slate-500"],html[data-theme="dark"] [class~="text-slate-400"]{color:#92a39e!important}html[data-theme="dark"] [class~="bg-slate-50"],html[data-theme="dark"] [class~="bg-slate-100"]{background-color:#202c29!important}html[data-theme="dark"] [class~="bg-emerald-50"]{background-color:#123128!important}html[data-theme="dark"] [class~="bg-amber-50"]{background-color:#302719!important}html[data-theme="dark"] [class~="bg-red-50"]{background-color:#342020!important}html[data-theme="dark"] input,html[data-theme="dark"] select,html[data-theme="dark"] textarea{background:#101a18!important;border-color:#3b4b47!important;color:#edf3f1!important}html[data-theme="dark"] input::placeholder{color:#70817c!important}html[data-theme="dark"] .shadow-sm{box-shadow:0 1px 2px rgba(0,0,0,.35)!important}
html[data-theme="dark"] .theme-picker summary,html[data-theme="dark"] .theme-picker-menu{background:#1a2623;border-color:#3a4945;color:#dce5e2}html[data-theme="dark"] .theme-picker summary:hover,html[data-theme="dark"] .theme-picker-menu button:hover,html[data-theme="dark"] .theme-picker-menu button.is-selected{background:#24322f}html[data-theme="dark"] .theme-picker-menu button{color:#dce5e2}html[data-theme="dark"] .theme-picker-menu small{color:#91a19d}
html[data-theme="dark"] .sidebar,html[data-theme="dark"] body>main>header,html[data-theme="dark"] .panel,html[data-theme="dark"] .stat,html[data-theme="dark"] .patient-table,html[data-theme="dark"] .modal,html[data-theme="dark"] .facility-card,html[data-theme="dark"] .facility-detail{background:#15201e;color:#dce5e2;border-color:#2c3a37}html[data-theme="dark"] .nav{color:#a9b8b4}html[data-theme="dark"] .nav:hover,html[data-theme="dark"] .nav.active{background:#19352d;color:#65d1ad}html[data-theme="dark"] .table-row,html[data-theme="dark"] .task,html[data-theme="dark"] .appt,html[data-theme="dark"] .activity{border-color:#2c3a37}html[data-theme="dark"] .table-row.head{background:#1b2825}html[data-theme="dark"] .search input,html[data-theme="dark"] .toolbar select,html[data-theme="dark"] .form-grid input,html[data-theme="dark"] .form-grid select,html[data-theme="dark"] .note-box textarea{background:#101a18;border-color:#3b4b47;color:#edf3f1}html[data-theme="dark"] .secondary,html[data-theme="dark"] .icon-btn{background:#202c29;color:#dce5e2;border-color:#3b4b47}html[data-theme="dark"] .modal-backdrop{background:rgba(0,0,0,.68)}
html[data-theme="dark"] .auth-page{background:#0d1514}html[data-theme="dark"] .auth-shell,html[data-theme="dark"] .auth-card{background:#15201e}html[data-theme="dark"] .auth-card h2{color:#f1f5f3}html[data-theme="dark"] .auth-card label{color:#c2ceca}html[data-theme="dark"] .auth-description{color:#92a39e}
html[data-theme="dark"] .page-skeleton{background:#0d1514}html[data-theme="dark"] .page-skeleton-header,html[data-theme="dark"] .page-skeleton-card,html[data-theme="dark"] .page-skeleton-sidebar,html[data-theme="dark"] .page-skeleton-auth-card{background:#15201e;border-color:#2c3a37}html[data-theme="dark"] .skeleton-block{background:linear-gradient(90deg,#22302d 25%,#2d3b38 45%,#22302d 65%);background-size:260% 100%}
@media(max-width:640px){.theme-picker summary span{display:none}.theme-picker summary{width:38px;justify-content:center;padding:0}.theme-picker--auth{top:14px;right:14px}}
