.theme-toggle{font-size:19px;line-height:1;padding:10px;min-width:38px;min-height:38px}
.theme-sun{display:none}
[data-theme=dark] .theme-sun{display:inline}
[data-theme=dark] .theme-moon{display:none}
.auth-theme-toggle{position:fixed;top:20px;inset-inline-end:20px}
@media screen {
  html[data-theme=dark]{color-scheme:dark;background:#0b1425;color:#e0e8f4;--navy-panel:#132139;--navy-raised:#1b2d48;--navy-line:#2c3e59;--navy-muted:#a5b5cb;--navy-accent:#84b4ff}
  [data-theme=dark] body{background:transparent}
  [data-theme=dark] .sidebar{background:#080f1e;color:#c8d6e9;border-inline-end:1px solid #20304b}
  [data-theme=dark] .nav button{color:#a9bbd3}
  [data-theme=dark] .nav button.active{background:#203758;color:#f1f6ff;box-shadow:inset -3px 0 #84b4ff}
  html[dir=ltr][data-theme=dark] .nav button.active{box-shadow:inset 3px 0 #84b4ff}
  [data-theme=dark] .nav button:hover{background:#182a45;color:#fff}
  [data-theme=dark] :is(.nav-label,.admin-nav summary,.brand small,.sidebar-foot small){color:#9eb1cd}
  [data-theme=dark] :is(.topbar,.panel,.stat,dialog,.modal-head,.auth-card,.filter-tabs){background:var(--navy-panel);color:#e0e8f4;border-color:var(--navy-line)}
  [data-theme=dark] :is(.panel-head,.section-note,.modal-foot,.modal-head,.mini-row,td,th,hr,.intake-section+.intake-section,.customer-devices,.customer-documents){border-color:var(--navy-line)}
  [data-theme=dark] :is(.search input,input,select,textarea){background:#0f1b30;color:#e7eefb;border-color:#3b506e}
  [data-theme=dark] input::placeholder,[data-theme=dark] textarea::placeholder{color:#95a8c5;opacity:1}
  [data-theme=dark] :is(input,select,textarea):focus{border-color:#84b4ff;box-shadow:0 0 0 3px #84b4ff22}
  [data-theme=dark] input[type=checkbox]{accent-color:#639af0}
  [data-theme=dark] button{background:#1b2d48;border-color:#3b506e;color:#e0e8f4}
  [data-theme=dark] button:hover{background:#284263}
  [data-theme=dark] :is(button.primary,.primary,.brand-icon){background:#315fb4;border-color:#4475cb;color:#fff}
  [data-theme=dark] button.primary:hover{background:#3b6cc5}
  [data-theme=dark] :is(button.ghost,.row-link){background:transparent;border-color:transparent;color:#9cc4ff}
  [data-theme=dark] button.danger{color:#ffb0b4;border-color:#955667;background:#402538}
  [data-theme=dark] a{color:#9cc4ff}
  [data-theme=dark] :is(.muted,.fine,label,.pagehead p,.eyebrow,.stat-label,.stat-foot,.stat-value small,td small,.mini-row small,.detail-strip small,.form-hint,.quote-labels,.empty,.loading,.timeline-item p){color:var(--navy-muted)}
  [data-theme=dark] :is(.stat-value,.empty strong){color:#e4edff}
  [data-theme=dark] :is(th,.modal-foot){background:#101d32;color:#aabbd3}
  [data-theme=dark] tbody tr:hover{background:#192c47}
  [data-theme=dark] :is(.detail-strip,.balance-chip,.key,.customer-chip){background:#1b2d48;color:#dce8fc}
  [data-theme=dark] :is(.customer-chip small,.customer-result small){color:#b4c3d8}
  [data-theme=dark] :is(.intake-section h3,.intake-options summary,.intake-customer-options summary,.customer-devices summary,.customer-documents summary){color:#9cc4ff}
  [data-theme=dark] .service-choices .chosen,[data-theme=dark] .filter-tabs button.active{background:#294a77;border-color:#84b4ff;color:#fff;box-shadow:inset 0 0 0 1px #84b4ff}
  [data-theme=dark] .notice{background:#18382f;color:#b9e5d3;border-color:#376453}
  [data-theme=dark] .notice.warning{background:#352d21;color:#ead0a0;border-color:#64543a}
  [data-theme=dark] .error{background:#402637;color:#ffd1d3;border-color:#815064}
  [data-theme=dark] .badge.green{background:#203f38;color:#a8e4c8}
  [data-theme=dark] .badge.amber{background:#433623;color:#f0d193}
  [data-theme=dark] .badge.red{background:#472c3c;color:#ffbfc3}
  [data-theme=dark] .badge.blue{background:#243e62;color:#b6d3ff}
  [data-theme=dark] .stat-mark{background:#234334;color:#a6dbc0}
  [data-theme=dark] .stat:nth-child(2) .stat-mark{background:#433623;color:#f0d193}
  [data-theme=dark] .stat:nth-child(3) .stat-mark{background:#243e62;color:#b6d3ff}
  [data-theme=dark] .stat:nth-child(4) .stat-mark{background:#3b3257;color:#d5c1f7}
  [data-theme=dark] .avatar{background:#294a77;color:#dce9ff}
  [data-theme=dark] .progress-track{background:#263b56}
  [data-theme=dark] .progress-fill{background:#84b4ff}
  [data-theme=dark] .timeline{border-color:#3b506e}
  [data-theme=dark] dialog::backdrop{background:#030917b8}
  [data-theme=dark] .auth-body{background:radial-gradient(ellipse at 15% 25%,#21375c,transparent 65%),#0b1425}
  [data-theme=dark] #toast{background:#294a77;color:#f0f5ff;border:1px solid #6084b7}
  [data-theme=dark] :focus-visible{outline:2px solid #9cc4ff;outline-offset:3px}
}
