.appearance-settings{border:0;padding:0;margin:0 0 24px}.appearance-settings legend{font-weight:700;font-size:17px;margin-bottom:14px}.theme-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.theme-option{display:flex;flex-direction:column;gap:8px;min-height:80px;padding:10px 6px}.theme-option[aria-pressed=true]{outline:2px solid #2558c5;outline-offset:1px}.theme-swatch{display:block;width:32px;height:22px;border:1px solid #7c8ba1;border-radius:5px}.swatch-light{background:#f5f7fb}.swatch-dark{background:#182235}.swatch-amoled{background:#000}.theme-auto{display:flex;align-items:center;gap:10px;margin:20px 0;font-size:14px;min-height:44px}.theme-auto input{width:20px;min-height:20px;height:20px;accent-color:#2558c5}
html[data-theme=dark],html[data-theme=amoled]{color-scheme:dark;--night-bg:#101722;--night-panel:#182235;--night-raised:#233149;--night-line:#52637b;--night-text:#edf3ff;--night-muted:#b8c7dc;--night-link:#a6c6ff;background:var(--night-bg);color:var(--night-text)}
html[data-theme=amoled]{--night-bg:#000;--night-panel:#000;--night-raised:#111;--night-line:#555;--night-text:#f5f5f5;--night-muted:#c3c3c3;--night-link:#a6c6ff}
html[data-theme=light]{color-scheme:light}
html:is([data-theme=dark],[data-theme=amoled]) body{background:var(--night-bg);color:var(--night-text)}
html:is([data-theme=dark],[data-theme=amoled]) :is(.page,main,header,.sidebar,nav,.admin-mobile-nav,.mobile-admin-nav,dialog,.panel,.assigned-card,.catalog-card,.service-card,.client-row,.profile-action-group,.calendar-main,.schedule-grid,.schedule-column,.schedule-hours,.schedule-slot,.schedule-scroll,.crm-table-scroll,.agenda-wrap,.appointment-reminder,.simple-login-card,.login-panel,.equipment,.equipment-card,.bottom-panel){background-color:var(--night-panel)!important;color:var(--night-text)!important;border-color:var(--night-line)!important}
html:is([data-theme=dark],[data-theme=amoled]) :is(h1,h2,h3,h4,strong,label,dt,dd,td,th,.client-row-info strong,.assigned-info h3){color:inherit}
html:is([data-theme=dark],[data-theme=amoled]) :is(.help-text,.sub,.eyebrow,.category,.client-row-info>span,.assigned-info p,.assigned-card p,dt,.schedule-hours,.calendar-sync-status,.table-category,.access-note){color:var(--night-muted)!important}
html:is([data-theme=dark],[data-theme=amoled]) :is(a,.text-btn,.table-action,.calendar-client-link){color:var(--night-link)}
html:is([data-theme=dark],[data-theme=amoled]) :is(input,textarea,select,.btn,.close,.profile-action,.wizard-client,.wizard-equipment-option,.wizard-choice,.wizard-add-equipment,.date-picker,.date-picker button,fieldset,.dialog-heading,.form-actions,.client-toolbar,.catalog-tools,.crm-client-toolbar,.calendar-draft-tray,.wizard-selected,.wizard-progress li,.schedule-heading,.schedule-day-heading,.schedule-day-options,.schedule-day-select,.agenda-caption,.context-bar,.access-note,.admin-summary>div,.empty-state){background-color:var(--night-raised)!important;color:var(--night-text)!important;border-color:var(--night-line)!important}
html:is([data-theme=dark],[data-theme=amoled]) :is(input,textarea)::placeholder{color:var(--night-muted);opacity:1}
html:is([data-theme=dark],[data-theme=amoled]) :is(.btn.primary,.wizard-progress li.active,.wizard-choice.selected,.wizard-equipment-option.selected,.theme-option[aria-pressed=true]){background:#2558c5!important;color:#fff!important;border-color:#8bb5ff!important}
html:is([data-theme=dark],[data-theme=amoled]) :is(.btn.danger,.form-error){color:#ffb7bf!important}
html:is([data-theme=dark],[data-theme=amoled]) :is(table,tbody,tr,td,th){background-color:var(--night-panel)!important;border-color:var(--night-line)!important;color:var(--night-text)!important}
html:is([data-theme=dark],[data-theme=amoled]) :is(thead,thead tr,th,tr:nth-child(even) td){background-color:var(--night-raised)!important}
html:is([data-theme=dark],[data-theme=amoled]) .schedule-slot{border-color:#34445c!important}
html:is([data-theme=dark],[data-theme=amoled]) .schedule-event{background:#26364e!important;color:#f1f5ff!important;border-color:#9cb1cf!important}
html:is([data-theme=dark],[data-theme=amoled]) .schedule-event.payment-paid{background:#153d30!important;color:#c9f8de!important;border-color:#72d5a1!important}
html:is([data-theme=dark],[data-theme=amoled]) .schedule-event.payment-unpaid{background:#48242c!important;color:#ffd7dc!important;border-color:#ff8e9e!important}
html:is([data-theme=dark],[data-theme=amoled]) .schedule-event.payment-partial{background:#443619!important;color:#ffe9b5!important;border-color:#e8bc64!important}
html:is([data-theme=dark],[data-theme=amoled]) .schedule-event :is(span,strong){color:inherit!important}
html:is([data-theme=dark],[data-theme=amoled]) .schedule-event.payment-covered{background:#263359!important;color:#e0e8ff!important}
html:is([data-theme=dark],[data-theme=amoled]) :is(.is-today,.schedule-day-heading.today){background-color:#233e70!important;color:#fff!important}
html:is([data-theme=dark],[data-theme=amoled]) :is(button,a,input,select,textarea):focus-visible{outline-color:#9cc3ff!important}
html:is([data-theme=dark],[data-theme=amoled]) dialog::backdrop{background:rgba(0,0,0,.7)}
html:is([data-theme=dark],[data-theme=amoled]) :is(.sidebar nav button,.rail-logout,.rail-toggle,.mobile-admin-nav button){color:var(--night-muted)!important}
html:is([data-theme=dark],[data-theme=amoled]) :is(.sidebar nav button.active,.mobile-admin-nav button[aria-current=page],.schedule-heading.selected){background:#233e70!important;color:#fff!important}
html:is([data-theme=dark],[data-theme=amoled]) :is(.schedule-column.day-reserved,.schedule-heading.day-reserved){background-color:#354154!important}
html:is([data-theme=dark],[data-theme=amoled]) .mobile-admin-nav::before{background:var(--night-raised)!important}
html:is([data-theme=dark],[data-theme=amoled]) .theme-option[aria-pressed=true]{outline-color:#9cc3ff}
html:is([data-theme=dark],[data-theme=amoled]) :is(.schedule-hours span,#calendar-sync-status,.calendar-views button,.date-picker-toggle){color:var(--night-muted)!important}
html:is([data-theme=dark],[data-theme=amoled]) .calendar-views{background:var(--night-raised)!important}
html:is([data-theme=dark],[data-theme=amoled]) .calendar-views button.selected{background:#2558c5!important;color:#fff!important}
/* Complete dark surfaces without painting decorative layout containers. */
html:is([data-theme=dark],[data-theme=amoled]) .simple-login{background:var(--night-bg)!important}
html:is([data-theme=dark],[data-theme=amoled]) :is(.record-toolbar,.product-current-photo,.view-toggle,.admin-menu-options){background:var(--night-panel)!important;color:var(--night-text)!important;border-color:var(--night-line)!important}
html:is([data-theme=dark],[data-theme=amoled]) :is(.table-record,.record-toolbar .field,.simple-login-card .field){color:var(--night-text)!important}
html:is([data-theme=dark],[data-theme=amoled]) :is(.simple-login-subtitle,.product-current-photo figcaption,.agenda-table td>span,.crm-contact-details,.admin-summary span,.catalog-count){color:var(--night-muted)!important}
html:is([data-theme=dark],[data-theme=amoled]) .agenda-table td::before{color:var(--night-muted)!important}
html:is([data-theme=dark],[data-theme=amoled]) :is(.password-toggle,.crm-contact-details summary){color:var(--night-link)!important}
html:is([data-theme=dark],[data-theme=amoled]) :is(.dialog-heading,.appearance-settings,.admin-summary>div){background:transparent!important;border-color:transparent!important;box-shadow:none!important}
html:is([data-theme=dark],[data-theme=amoled]) .form-actions{background:var(--night-panel)!important;border-color:transparent!important}
html:is([data-theme=dark],[data-theme=amoled]) :is(.simple-login-card,.product-current-photo,.record-toolbar,.crm-table-scroll,.agenda-wrap,.mobile-admin-nav){border-color:transparent!important}
html:is([data-theme=dark],[data-theme=amoled]) :is(.crm-table td,.agenda-table td,.agenda-table tr){border-color:color-mix(in srgb,var(--night-muted) 15%,transparent)!important}
html:is([data-theme=dark],[data-theme=amoled]) .agenda-table td>.status{background:#153d30!important;color:#c9f8de!important}
html:is([data-theme=dark],[data-theme=amoled]) .agenda-table td>.status.due{background:#443619!important;color:#ffe9b5!important}
@media(max-width:1000px){html:is([data-theme=dark],[data-theme=amoled]) .agenda-table tr:nth-child(even) td{background:transparent!important}}
html:is([data-theme=dark],[data-theme=amoled]) :is(.record-view,.client-more-menu){background:var(--night-raised)!important;border-color:transparent!important}
html:is([data-theme=dark],[data-theme=amoled]) :is(.record-count,.password-control button){color:var(--night-muted)!important}
