html[data-theme="dark"] {
  color-scheme: dark;
  --t-bg: #111722; --t-bg-soft: #151d2a;
  --t-surface: #1b2432; --t-surface-2: #222e3e;
  --t-line: #344154; --t-line-strong: #47566c;
  --t-text: #edf2f8; --t-text-2: #c2cddd;
  --t-muted: #a5b2c5; --t-muted-2: #91a0b5;
  --t-brand: #83a7ff; --t-brand-hover: #a3beff; --t-brand-strong: #b3c8ff;
  --t-brand-soft: #263956; --t-brand-line: #405d89;
  --t-success: #6cdda2; --t-success-soft: #183c30;
  --t-warning: #f3c47b; --t-warning-soft: #403322;
  --t-danger: #ff939c; --t-danger-soft: #442933;
  --t-info: #7dc9f4; --t-info-soft: #203b50;
  --bs-body-bg: var(--t-bg); --bs-body-color: var(--t-text);
  --bs-border-color: var(--t-line);
  --ui-ink: var(--t-text); --ui-ink-2: var(--t-text-2); --ui-ink-3: var(--t-muted);
  --ui-line: var(--t-line); --ui-line-soft: var(--t-line);
  --ui-bg: var(--t-bg); --ui-fill: var(--t-surface-2);
  --ui-primary: #83a7ff; --ui-green: #6cdda2; --ui-amber: #f3c47b;
  --pf-bg: var(--t-bg); --pf-surface: var(--t-surface); --pf-surface-soft: var(--t-surface-2);
  --pf-text: var(--t-text); --pf-text-sub: var(--t-muted); --pf-border: var(--t-line);
  --pf-primary: #83a7ff; --pf-primary-soft: #263956;
  --color-cream: var(--t-bg); --color-cream-dark: var(--t-surface-2);
  --color-surface: var(--t-surface); --color-charcoal: var(--t-text);
  --color-warm-gray: var(--t-muted); --color-warm-border: var(--t-line);
  --color-coral: #83a7ff; --color-coral-light: #263956;
  --color-success-light: #183c30; --color-warning-light: #403322; --color-error-light: #442933;
}
html[data-theme="dark"] body { background: var(--t-bg) !important; color: var(--t-text); }
html[data-theme="dark"] .aside-default-enabled .aside,
html[data-theme="dark"] :is(.aside,.aside-logo,.aside-menu,.aside-footer) { background-color: var(--t-surface) !important; border-color: var(--t-line) !important; }
html[data-theme="dark"] .aside :is(.t-nav__link.is-active,.t-nav__subitem a.is-active) { background: var(--t-brand-soft) !important; color: var(--t-brand-strong) !important; box-shadow: inset 3px 0 0 var(--t-brand); }
html[data-theme="dark"] .aside .t-nav__link.is-active .t-nav__icon { color: var(--t-brand) !important; }
html[data-theme="dark"] .aside :is(.t-nav__link,.t-nav__subitem a):hover { background: var(--t-surface-2) !important; color: var(--t-text) !important; }
html[data-theme="dark"] .aside :is(.t-nav__link.is-active,.t-nav__subitem a.is-active):hover { background: var(--t-brand-soft) !important; color: var(--t-brand-strong) !important; }
html[data-theme="dark"] .table { --bs-table-bg: transparent; --bs-table-striped-bg: var(--t-bg-soft); --bs-table-hover-bg: var(--t-surface-2); --bs-table-active-bg: var(--t-brand-soft); --bs-table-hover-color: var(--t-text); --bs-table-active-color: var(--t-text); }
html[data-theme="dark"] .table > tbody > tr:hover > td { background: var(--t-surface-2) !important; color: var(--t-text); }
html[data-theme="dark"] .table > tbody > tr:is(.active,.selected,.table-active) > td { background: var(--t-brand-soft) !important; }
html[data-theme="dark"] :is(.badge-light-success,.el-tag--success) { background: var(--t-success-soft) !important; color: var(--t-success) !important; border-color: #326b50 !important; }
html[data-theme="dark"] :is(.badge-light-danger,.el-tag--danger) { background: var(--t-danger-soft) !important; color: var(--t-danger) !important; border-color: #79404c !important; }
html[data-theme="dark"] :is(.badge-light-warning,.el-tag--warning) { background: var(--t-warning-soft) !important; color: var(--t-warning) !important; border-color: #725b38 !important; }
html[data-theme="dark"] :is(.badge-light-info,.el-tag--info) { background: var(--t-info-soft) !important; color: var(--t-info) !important; border-color: #385d79 !important; }
html[data-theme="dark"] :is(.badge-light-primary,.el-tag) { background: var(--t-brand-soft) !important; color: var(--t-brand) !important; border-color: var(--t-brand-line) !important; }
html[data-theme="dark"] :is(.badge-light-secondary,.badge-light-dark) { background: var(--t-surface-2) !important; color: var(--t-muted) !important; }
html[data-theme="dark"] .form-check-input { background-color: var(--t-bg-soft) !important; border-color: var(--t-muted) !important; }
html[data-theme="dark"] .form-check-input:checked { background-color: #496cce !important; border-color: #83a7ff !important; }
html[data-theme="dark"] :is(.page-item.disabled .page-link,.el-pagination button:disabled) { background: var(--t-bg-soft) !important; color: var(--t-muted-2) !important; }
html[data-theme="dark"] :is(.card,.card-header,.card-body,.modal-content,.modal-header,.modal-footer,.t-topbar,.t-aside,.t-menu,.dropdown-menu,.menu-sub,.swal2-popup,.el-dialog,.el-message-box,.el-select-dropdown,.el-dropdown-menu,.el-picker-panel,dialog,.ui-card,.ui-dialog,.ui-input,.ui-detail-row,.ui-logo,#tSlowTip) {
  background-color: var(--t-surface) !important; color: var(--t-text); border-color: var(--t-line) !important;
}
html[data-theme="dark"] :is(.bg-white,.bg-light,.table-light,.table thead,.table-striped tbody tr:nth-of-type(odd),.ld-price,.ld-segment,.ld-order,.ui-dialog-head,.ui-dialog-foot) { background-color: var(--t-surface-2) !important; color: var(--t-text); }
html[data-theme="dark"] :is(.form-control,.form-select,.el-input__inner,.el-textarea__inner,.el-input-number,.el-pagination button,.el-pager li,textarea,input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),select) {
  background-color: var(--t-bg-soft) !important; color: var(--t-text) !important; border-color: var(--t-line-strong) !important;
}
html[data-theme="dark"] :is(input,textarea)::placeholder { color: var(--t-muted-2) !important; }
html[data-theme="dark"] :is(h1,h2,h3,h4,h5,h6,.text-dark,.text-gray-900,.text-gray-800,.text-gray-700,.form-label,.card-title,.modal-title,.ld-price b,.swal2-title,.swal2-html-container) { color: var(--t-text) !important; }
html[data-theme="dark"] :is(.text-muted,.text-gray-600,.text-gray-500,.ld-hint,.ld-table th) { color: var(--t-muted) !important; }
html[data-theme="dark"] :is(.table,.table th,.table td,.ld-table td,.ld-table th,.el-table,.el-table th,.el-table td,.el-table tr,.el-table__empty-block) { background-color: transparent; color: var(--t-text); border-color: var(--t-line) !important; }
html[data-theme="dark"] :is(.el-table__body tr:hover>td,.el-select-dropdown__item.hover,.el-dropdown-menu__item:hover,.dropdown-item:hover,.menu-link:hover) { background-color: var(--t-surface-2) !important; color: var(--t-brand) !important; }
html[data-theme="dark"] .el-table::before { background-color: var(--t-line); }
html[data-theme="dark"] :is(.btn-primary,.btn-success,.btn-danger,.btn-warning,.btn-info) { color: #111722 !important; }
html[data-theme="dark"] :is(.btn-light,.btn-white,.btn-secondary) { background-color: var(--t-surface-2) !important; border-color: var(--t-line) !important; color: var(--t-text) !important; }
html[data-theme="dark"] :is(.alert-warning,.ld-notice,#ldNoticeLepao,#ldNoticeLepao .card-body) { background-color: var(--t-warning-soft) !important; color: var(--t-warning) !important; border-color: #6b5536 !important; }
html[data-theme="dark"] :is(.alert-danger,.ld-msg.is-err) { color: var(--t-danger) !important; }
html[data-theme="dark"] :is(.alert-success,.ld-msg.is-ok) { color: var(--t-success) !important; }
html[data-theme="dark"] #toast-container > div { background: var(--t-surface) !important; border-color: var(--t-line) !important; }
html[data-theme="dark"] :is(.ld-detail,.ld-actions,.ld-dialog-head) { border-color: var(--t-line); }
html[data-theme="dark"] :is(.modal-backdrop.show,dialog::backdrop) { background-color: #000; opacity: .65; }
html[data-theme="dark"] *::-webkit-scrollbar-thumb { background: #4a5c75; }
html[data-theme="dark"] .btn-close { filter: invert(1); background-color: transparent !important; }
html[data-theme="dark"] :is(body#kt_body, body) .btn:is(.btn-white,.btn-default,.btn-light,.btn-secondary) { background: var(--t-surface-2) !important; color: var(--t-text) !important; border-color: var(--t-line) !important; }
html[data-theme="dark"] :is(body#kt_body, body) .btn:not(.btn-primary):not(.btn-success):not(.btn-danger):not(.btn-warning):not(.btn-info):not(.btn-light-primary):not(.btn-light-success):not(.btn-light-danger):not(.btn-light-warning) { background: var(--t-surface-2) !important; color: var(--t-text) !important; border-color: var(--t-line) !important; }
html[data-theme="dark"] :is(body#kt_body, body) .btn:is(:disabled,.disabled,[aria-disabled="true"]) { background: var(--t-surface-2) !important; color: var(--t-muted) !important; border-color: var(--t-line) !important; opacity: .65; }
html[data-theme="dark"] :is(body#kt_body, body) .btn.btn-light-success { background: var(--t-success-soft) !important; color: var(--t-success) !important; border-color: #326b50 !important; }
html[data-theme="dark"] :is(body#kt_body, body) .btn.btn-light-danger { background: var(--t-danger-soft) !important; color: var(--t-danger) !important; border-color: #79404c !important; }
html[data-theme="dark"] :is(body#kt_body, body) .btn.btn-light-warning { background: var(--t-warning-soft) !important; color: var(--t-warning) !important; border-color: #725b38 !important; }
html[data-theme="dark"] :is(body#kt_body, body) .btn.btn-light-primary { background: var(--t-brand-soft) !important; color: var(--t-brand) !important; border-color: var(--t-brand-line) !important; }
html[data-theme="dark"] :is(body#kt_body, body) .btn.btn-primary { background: var(--t-brand) !important; color: #111722 !important; border-color: var(--t-brand) !important; }
html[data-theme="dark"] :is(body#kt_body, body) .btn.btn-danger { background: var(--t-danger) !important; color: #111722 !important; border-color: var(--t-danger) !important; }
html[data-theme="dark"] :is(body#kt_body, body) .btn.btn-success { background: var(--t-success) !important; color: #111722 !important; border-color: var(--t-success) !important; }
html[data-theme="dark"] :is(body#kt_body, body) .btn.btn-warning { background: var(--t-warning) !important; color: #111722 !important; border-color: var(--t-warning) !important; }
html[data-theme="dark"] :is(body#kt_body, body) .btn.btn-info { background: var(--t-info) !important; color: #111722 !important; border-color: var(--t-info) !important; }
html[data-theme="dark"] :is(.bg-light,.badge-light) { background: var(--t-surface-2) !important; color: var(--t-muted) !important; }
html[data-theme="dark"] code { color: #f1a3ca; background-color: var(--t-surface-2) !important; }
[data-theme-toggle] { border: 1px solid var(--t-line); background: transparent; color: var(--t-text-2); flex-shrink: 0; }
[data-theme-toggle][aria-pressed="true"] { background: var(--t-brand-soft); color: var(--t-brand); }
html[data-theme="dark"] .ui-btn { background: #496cce; border-color: #496cce; color: #fff; }
html[data-theme="dark"] .ui-btn:is(:hover,:focus-visible,:active) { background: #3b5bb1; border-color: #83a7ff; color: #fff; }
html[data-theme="dark"] .ui-btn-ghost,
html[data-theme="dark"] .ui-btn-ghost:is(:hover,:focus-visible,:active) { background: var(--t-surface-2); color: var(--t-text); border-color: var(--t-line-strong); }
/* Project-specific panels and transient messages also use the shared palette. */
html[data-theme="dark"] { --t-fill: var(--t-surface-2); scrollbar-color: #4a5c75 var(--t-bg); }
html[data-theme="dark"] * { scrollbar-color: #4a5c75 var(--t-bg); }
html[data-theme="dark"] :is(.mo-stat,.ts-pill,.ss-pill,.xy-svc,.mb-service__card,.mb-picker__menu,.mb-picker__item,.mb-checks label,.ts-school__menu,.ts-school__item,.ss-school__menu,.ss-school__item,.ab-dlg__box,.on-cat,.on-adv-toggle,.pr-pg,.ui-search,.ui-empty,.ui-alert,.ui-toast,.ui-footer,.mb-kbd) { background: var(--t-surface) !important; color: var(--t-text) !important; border-color: var(--t-line) !important; }
html[data-theme="dark"] :is(.ts-price,.ss-price,.xy-price,.xt-price,.jz-price,.mb-total,.ts-status,.mb-status,.ss-school__tab) { background: var(--t-surface-2) !important; color: var(--t-text-2) !important; border-color: var(--t-line) !important; }
html[data-theme="dark"] :is(.ts-notice,.ss-notice,.xy-notice,.mb-notice) { background: var(--t-info-soft) !important; color: var(--t-text-2) !important; border-color: #385d79 !important; }
html[data-theme="dark"] :is(.ts-notice,.ss-notice,.xy-notice,.mb-notice) b { color: var(--t-info) !important; }
html[data-theme="dark"] :is(.ts-hint,.ss-hint,.xy-hint,.xt-hint,.jz-hint,.mb-hint,.ts-empty,.ss-empty,.xy-empty,.xt-empty,.jz-empty,.mb-empty,.mb-service__sub,.ts-pill small,.ss-pill small,.ts-school__hint,.ss-school__hint,.mb-picker__hint) { color: var(--t-muted) !important; }
html[data-theme="dark"] :is(.ts-price,.ss-price,.xy-price,.xt-price,.jz-price,.mb-total) b { color: var(--t-text) !important; }
html[data-theme="dark"] :is(.ts-pill,.ss-pill,.xy-svc,.mb-service__card,.mb-picker__item,.ts-school__item,.ss-school__item,.on-cat,.on-adv-toggle,.pr-pg):is(:hover,:focus-visible,.is-active,.is-on) { background: var(--t-brand-soft) !important; color: var(--t-brand-strong) !important; border-color: var(--t-brand-line) !important; }
html[data-theme="dark"] .mo-stat--warn .mo-stat__v { color: var(--t-warning); }
html[data-theme="dark"] .mo-stat--bad .mo-stat__v { color: var(--t-danger); }
html[data-theme="dark"] .mo-stat--ok .mo-stat__v { color: var(--t-success); }
html[data-theme="dark"] .t-toast { background: var(--t-surface) !important; color: var(--t-text); border-color: var(--t-line); }
html[data-theme="dark"] .t-toast--error { --t-toast-accent: var(--t-danger); --t-toast-soft: var(--t-danger-soft); }
html[data-theme="dark"] .t-toast--success { --t-toast-accent: var(--t-success); --t-toast-soft: var(--t-success-soft); }
html[data-theme="dark"] .t-toast--warning { --t-toast-accent: var(--t-warning); --t-toast-soft: var(--t-warning-soft); }
html[data-theme="dark"] .t-toast--info { --t-toast-accent: var(--t-brand); --t-toast-soft: var(--t-brand-soft); }
html[data-theme="dark"] .t-toast__msg { color: var(--t-text) !important; }
html[data-theme="dark"] .t-toast__close { background: var(--t-surface-2); color: var(--t-muted); }
html[data-theme="dark"] :is(.yf-notice,.t-savebar) { background: var(--t-surface) !important; color: var(--t-text-2) !important; border-color: var(--t-line) !important; }
html[data-theme="dark"] .yf-notice b { color: var(--t-info); }
html[data-theme="dark"] :is(.yf-price,.yf-status) { background: var(--t-surface-2); color: var(--t-text-2); border-color: var(--t-line); }
html[data-theme="dark"] :is([class*="-hint"],[class*="-empty"],.yf-price,.ts-school__item small,.ss-school__item small,.mb-picker__item small) { color: var(--t-muted) !important; }
html[data-theme="dark"] .ag-pill--ok { background: var(--t-success-soft); color: var(--t-success); }
html[data-theme="dark"] .t-switch__track { background: var(--t-line-strong); }
html[data-theme="dark"] .t-switch__input:checked + .t-switch__track { background: var(--t-brand); }
html[data-theme="dark"] .page-item .page-link { background: var(--t-surface-2) !important; color: var(--t-text-2) !important; border-color: var(--t-line) !important; }
html[data-theme="dark"] .page-item .page-link:is(:hover,:focus-visible),
html[data-theme="dark"] .page-item.active .page-link { background: var(--t-brand-soft) !important; color: var(--t-brand-strong) !important; border-color: var(--t-brand-line) !important; }
html[data-theme="dark"] :is(body#kt_body, body) .btn:is(:hover,:focus-visible,:active,.active),
html[data-theme="dark"] :is(body#kt_body, body) .btn.show { background: var(--t-surface-2) !important; color: var(--t-text) !important; border-color: var(--t-line-strong) !important; }
html[data-theme="dark"] :is(body#kt_body, body) .btn.btn-primary:is(:hover,:focus-visible,:active,.active),
html[data-theme="dark"] :is(body#kt_body, body) .btn.btn-primary.show { background: #a3beff !important; color: #111722 !important; border-color: #a3beff !important; }
html[data-theme="dark"] :is(body#kt_body, body) .btn:is(.btn-light-primary,.btn-outline-primary):is(:hover,:focus-visible,:active) { background: var(--t-brand-soft) !important; color: var(--t-brand-strong) !important; border-color: var(--t-brand-line) !important; }
html[data-theme="dark"] :is(body#kt_body, body) .btn:is(.btn-danger,.btn-light-danger,.btn-outline-danger):is(:hover,:focus-visible,:active) { background: var(--t-danger-soft) !important; color: var(--t-danger) !important; border-color: #79404c !important; }
html[data-theme="dark"] :is(body#kt_body, body) .btn:is(.btn-success,.btn-light-success):is(:hover,:focus-visible,:active) { background: var(--t-success-soft) !important; color: var(--t-success) !important; }
html[data-theme="dark"] :is(body#kt_body, body) .btn:is(.btn-warning,.btn-light-warning):is(:hover,:focus-visible,:active) { background: var(--t-warning-soft) !important; color: var(--t-warning) !important; }
html[data-theme="dark"] :is(.el-button,.el-button--default):is(:hover,:focus,:active) { background: var(--t-brand-soft) !important; color: var(--t-brand-strong) !important; border-color: var(--t-brand-line) !important; }
html[data-theme="dark"] :is(.t-iconbtn,.t-pill,.t-chip):is(:hover,:focus-visible) { background: var(--t-brand-soft) !important; color: var(--t-brand-strong) !important; }
