                       
                                                                 
                                                                  
  
                                                                              
                                                                              

                                                    
[data-theme="dark"] {
    color-scheme: dark;
                                          
    --primary: #60a5fa;
    --primary-hover: #3b82f6;
    --primary-soft: #172554;
    --bg-main: #0f172a;
    --card-bg: #1e293b;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --border: #334155;
    --success: #22c55e;
    --danger: #f87171;
    --warning: #fbbf24;
    --surface-muted: #334155;
    --surface-info: #172554;
    --surface-success: #052e16;
    --surface-warning: #422006;
    --surface-danger: #450a0a;
    --border-info: #1e40af;
    --border-success: #166534;
    --border-warning: #854d0e;
    --border-danger: #7f1d1d;

                                                                             
    --apt-accent: #60a5fa;
    --apt-accent-dark: #3b82f6;
    --apt-accent-soft: #172554;
    --apt-text: #e2e8f0;
    --apt-muted: #94a3b8;
    --apt-border: #334155;
    --apt-card: #1e293b;
    --doc-accent: #60a5fa;
    --doc-accent-dark: #3b82f6;
    --doc-accent-soft: #172554;
    --doc-text: #e2e8f0;
    --doc-muted: #94a3b8;
    --doc-border: #334155;
    --doc-card: #1e293b;
    --doc-success: #86efac;
    --doc-danger: #f87171;
    --prof-accent: #60a5fa;
    --prof-accent-dark: #3b82f6;
    --prof-accent-soft: #172554;
    --prof-text: #e2e8f0;
    --prof-muted: #94a3b8;
    --prof-border: #334155;
    --prof-card: #1e293b;
    --prof-success: #86efac;
    --prof-danger: #f87171;
    --cmp-accent: #60a5fa;
    --cmp-accent-dark: #3b82f6;
    --cmp-accent-soft: #172554;
    --cmp-text: #e2e8f0;
    --cmp-muted: #94a3b8;
    --cmp-border: #334155;
    --cmp-card: #1e293b;
    --cmp-danger: #f87171;
    --dash-primary: #60a5fa;
    --dash-primary-dark: #3b82f6;
    --dash-accent: #38bdf8;
    --dash-gold: #fbbf24;
    --dash-text: #e2e8f0;
    --dash-muted: #94a3b8;
    --dash-border: #334155;
    --dash-bg: #0f172a;
    --dash-card: #1e293b;

                       
    --landing-primary: #60a5fa;
    --landing-primary-dark: #3b82f6;
    --landing-accent: #38bdf8;
    --landing-text: #e2e8f0;
    --landing-muted: #94a3b8;
    --landing-border: #334155;
    --landing-bg: #0f172a;
    --landing-card: #1e293b;
    --landing-contact-bg: #111f36;
    --landing-contact-border: #1e3a8a;
    --landing-contact-number-border: #1e40af;
    --landing-contact-hover: #172554;
    --landing-emergency-border: #7f1d1d;
    --landing-emergency-text: #fca5a5;
    --landing-emergency-label: #f87171;

                          
    --nav-accent: #60a5fa;
    --nav-accent-soft: #1e293b;
    --nav-text: #e2e8f0;
    --nav-muted: #94a3b8;
    --nav-border: #334155;
    --nav-bg: #0f172a;
}

[data-theme="light"] {
    color-scheme: light;
    --surface-muted: #f1f5f9;
    --surface-info: #eff6ff;
    --surface-success: #dcfce7;
    --surface-warning: #fef3c7;
    --surface-danger: #fef2f2;
    --border-info: #bae6fd;
    --border-success: #bbf7d0;
    --border-warning: #fed7aa;
    --border-danger: #fecaca;
}

                                                           
[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group select,
[data-theme="dark"] .form-group textarea,
[data-theme="dark"] select option,
[data-theme="dark"] .form-control,
[data-theme="dark"] .field,
[data-theme="dark"] .modal {
    background: #1e293b;
    color: #e2e8f0;
}

                                                                             
                                                                           
[data-theme="dark"] .field:disabled,
[data-theme="dark"] select.field:disabled,
[data-theme="dark"] textarea.field:disabled,
[data-theme="dark"] .reg-dropzone.is-disabled {
    background-color: #0f172a;
    color: #94a3b8;
}
[data-theme="dark"] .field-hint { background: #1e293b; }
[data-theme="dark"] .auth-alert.auth-alert-success {
    background: #052e16;
    color: #86efac;
    border-color: #166534;
}
[data-theme="dark"] .auth-alert.auth-alert-error {
    background: #450a0a;
    color: #fca5a5;
    border-color: #7f1d1d;
}
[data-theme="dark"] .password-toggle:hover,
[data-theme="dark"] .reset-resend:hover:not(:disabled) { background: #172554; }
[data-theme="dark"] .password-rules li::before { background: #450a0a; }
[data-theme="dark"] .reg-dropzone {
    background: #172554;
    border-color: #334155;
}
[data-theme="dark"] .reg-dropzone:hover,
[data-theme="dark"] .reg-dropzone.is-dragover {
    background: #1e3a8a;
    border-color: #60a5fa;
}
[data-theme="dark"] .reg-dropzone.is-error { background: #450a0a; border-color: #f87171; }
[data-theme="dark"] .reg-dropzone-icon {
    background: linear-gradient(135deg, #1e293b 0%, #172554 100%);
}
[data-theme="dark"] .reg-preview-thumb { background: #0f172a; }
[data-theme="dark"] .reg-preview-thumb.is-pdf,
[data-theme="dark"] .reg-remove:hover { background: #450a0a; }

                                                                            
[data-theme="dark"] .verify-pin-input:disabled {
    background: #0f172a;
    border-color: #334155;
    color: #64748b;
}
[data-theme="dark"] .verify-error { color: #fca5a5; }
[data-theme="dark"] .verify-modal p { color: #94a3b8; }
[data-theme="dark"] .verify-email,
[data-theme="dark"] .verify-resend { color: #93c5fd; }
[data-theme="dark"] .verify-status.is-success { color: #86efac; }
[data-theme="dark"] .apt-cal-day:hover:not(.is-disabled):not(.is-selected),
[data-theme="dark"] .bd-cal-day:hover:not(:disabled):not(.is-disabled):not(.is-selected) {
    background: #172554;
    border-color: #1e40af;
}

[data-theme="dark"] th {
    background: #1e293b;
}

[data-theme="dark"] .btn-secondary {
    background: #334155;
    color: #e2e8f0;
}

                                                           
                                                                         
                                                                          
[data-theme="dark"] .pembo-confirm-dialog {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}
[data-theme="dark"] .pembo-confirm-cancel {
    background: #334155;
    color: #e2e8f0;
    border-color: #475569;
}
[data-theme="dark"] .pembo-confirm-ok {
    color: #0f172a;
}
[data-theme="dark"] .btn-secondary:hover {
    background: #475569;
}

                                                    
[data-theme="dark"] .queue-role-badge { background: #422006; color: #fcd34d; }
[data-theme="dark"] .updates-badge { background: #172554; color: #93c5fd; }

                                                                                 
[data-theme="dark"] .apt-slot-badge.badge-available,
[data-theme="dark"] .apt-status-attended,
[data-theme="dark"] .cmp-status-RESOLVED,
[data-theme="dark"] .prof-alert.is-success {
    background: #052e16;
    color: #86efac;
}
[data-theme="dark"] .apt-slot-badge.badge-limited,
[data-theme="dark"] .apt-status-no_show,
[data-theme="dark"] .cmp-status-HEARING_SCHEDULED,
[data-theme="dark"] .dash-role-badge.role-admin {
    background: #422006;
    color: #fcd34d;
}
[data-theme="dark"] .apt-slot-badge.badge-taken,
[data-theme="dark"] .prof-alert.is-error,
[data-theme="dark"] .cmp-alert.is-error {
    background: #450a0a;
    color: #fca5a5;
}
[data-theme="dark"] .apt-slot-badge.badge-passed,
[data-theme="dark"] .apt-status-cancelled,
[data-theme="dark"] .cmp-status-FILED,
[data-theme="dark"] .cmp-status-DISMISSED,
[data-theme="dark"] .dash-role-badge.role-staff {
    background: #1e1b4b;
    color: #c7d2fe;
}
[data-theme="dark"] .apt-status-booked,
[data-theme="dark"] .cmp-status-UNDER_INVESTIGATION,
[data-theme="dark"] .apt-status-confirmed {
    background: #172554;
    color: #93c5fd;
}
[data-theme="dark"] .status-pill-pending,
[data-theme="dark"] .status-pill-no_show { background: #422006; color: #fcd34d; }
[data-theme="dark"] .status-pill-verifying,
[data-theme="dark"] .status-pill-booked { background: #1e1b4b; color: #c7d2fe; }
[data-theme="dark"] .status-pill-approved,
[data-theme="dark"] .status-pill-confirmed { background: #172554; color: #93c5fd; }
[data-theme="dark"] .status-pill-ready_for_pickup,
[data-theme="dark"] .status-pill-attended { background: #052e16; color: #86efac; }
[data-theme="dark"] .status-pill-completed { background: #16a34a; color: #ffffff; }
[data-theme="dark"] .status-pill-rejected { background: #450a0a; color: #fca5a5; }
[data-theme="dark"] .status-pill-cancelled { background: #334155; color: #cbd5e1; }
[data-theme="dark"] .apt-slot.is-taken,
[data-theme="dark"] .apt-slot:disabled {
    background: #0f172a;
    border-color: #334155;
    color: #64748b;
}
[data-theme="dark"] .apt-hint.apt-hint-error { color: #f87171; }
[data-theme="dark"] .cmp-alert.is-success { background: #052e16; color: #86efac; }

                                                                           
                                                                              
[data-theme="dark"] .hc-status-pill.status-PENDING,
[data-theme="dark"] .vet-status-pill.status-PENDING { background: #422006; color: #fcd34d; border-color: #854d0e; }
[data-theme="dark"] .hc-status-pill.status-CONFIRMED,
[data-theme="dark"] .vet-status-pill.status-CONFIRMED { background: #052e16; color: #86efac; border-color: #166534; }
[data-theme="dark"] .hc-status-pill.status-ATTENDED,
[data-theme="dark"] .vet-status-pill.status-ATTENDED { background: #052e16; color: #86efac; border-color: #166534; }
[data-theme="dark"] .hc-status-pill.status-CANCELLED,
[data-theme="dark"] .vet-status-pill.status-CANCELLED { background: #450a0a; color: #fca5a5; border-color: #7f1d1d; }
[data-theme="dark"] .hc-status-pill.status-NO_SHOW,
[data-theme="dark"] .vet-status-pill.status-NO_SHOW { background: #334155; color: #cbd5e1; border-color: #475569; }
[data-theme="dark"] .hc-badge-ptype { background: #0c4a6e; color: #7dd3fc; }
[data-theme="dark"] .hc-slot-card .badge-past,
[data-theme="dark"] .vet-slot-badge.badge-past { background: #334155; color: #cbd5e1; }
[data-theme="dark"] .vet-slot-badge.badge-available { background: #052e16; color: #86efac; }
[data-theme="dark"] .vet-slot-badge.badge-full { background: #450a0a; color: #fca5a5; }
[data-theme="dark"] .hc-btn-cancel,
[data-theme="dark"] .vet-btn-cancel {
    background: #450a0a;
    color: #fca5a5;
    border-color: #7f1d1d;
}
[data-theme="dark"] .hc-btn-cancel:hover,
[data-theme="dark"] .vet-btn-cancel:hover { background: #7f1d1d; border-color: #f87171; }

                                                                            
[data-theme="dark"] .doc-preview-thumb { background: #0f172a; border-color: #334155; }
[data-theme="dark"] .doc-preview-thumb.is-pdf,
[data-theme="dark"] .doc-remove:hover {
    background: #450a0a;
    color: #fca5a5;
    border-color: #7f1d1d;
}
[data-theme="dark"] .badge-pending-pay { background: #422006; color: #fcd34d; }
[data-theme="dark"] .badge-rejected-pay { background: #450a0a; color: #fca5a5; }
[data-theme="dark"] .doc-pay-paid { background: #052e16; color: #86efac; }
[data-theme="dark"] .doc-pay-unpaid { background: #450a0a; color: #fca5a5; }
[data-theme="dark"] .doc-pay-status-box.doc-pay-status-pending {
    background: #422006;
    border-color: #854d0e;
    color: #fcd34d;
}
[data-theme="dark"] .doc-pay-status-box.doc-pay-status-rejected {
    background: #450a0a;
    border-color: #7f1d1d;
    color: #fca5a5;
}

                                                                                  
[data-theme="dark"] .site-nav a:hover,
[data-theme="dark"] .btn-ghost:hover { background: #1e293b; }
[data-theme="dark"] .about-facts li .fact-icon { background: #172554; color: #93c5fd; }

                                                                
[data-theme="dark"] .badge-status-pending { background: #422006; color: #fcd34d; }
[data-theme="dark"] .badge-status-rejected { background: #450a0a; color: #fca5a5; }
[data-theme="dark"] .badge-status-cancelled { background: #334155; color: #cbd5e1; }
[data-theme="dark"] .badge-status-verifying { background: #1e1b4b; color: #c7d2fe; }
[data-theme="dark"] .badge-status-approved { background: #172554; color: #93c5fd; }
[data-theme="dark"] .badge-status-ready_for_pickup { background: #052e16; color: #86efac; }
[data-theme="dark"] .badge-status-completed { background: #16a34a; color: #ffffff; }
[data-theme="dark"] .badge-paid { background: #052e16; color: #86efac; }
[data-theme="dark"] .badge-unpaid { background: #450a0a; color: #fca5a5; }

                                                    
[data-theme="dark"] .auth-body {
    background: linear-gradient(180deg, #0b1220 0%, var(--bg-main) 100%);
}
[data-theme="dark"] .verify-modal,
[data-theme="dark"] .reset-modal,
[data-theme="dark"] .auth-card {
    background: #1e293b;
    border-color: var(--border);
}
[data-theme="dark"] .verify-pin-input,
[data-theme="dark"] .reset-pin-input {
    background: #0f172a;
    border-color: #334155;
    color: #e2e8f0;
}
[data-theme="dark"] .verify-modal h2,
[data-theme="dark"] .reset-title,
[data-theme="dark"] .auth-title {
    color: #e2e8f0;
}

                                                     
[data-theme="dark"] .auth-tabs {
    background: #0f172a;
}
[data-theme="dark"] .auth-tab.active {
    background: #1e293b;
    color: #60a5fa;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
[data-theme="dark"] .auth-tab:not(.active) {
    color: #94a3b8;
}
                        
[data-theme="dark"] .bd-calendar {
    background: #1e293b;
    border-color: #334155;
}
[data-theme="dark"] .bd-cal-head {
    border-color: #334155;
}
[data-theme="dark"] .bd-cal-select {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}
[data-theme="dark"] .bd-cal-day:not(.is-disabled):not(.is-selected) {
    color: #e2e8f0;
}
[data-theme="dark"] .bd-cal-day.is-disabled {
    color: #475569;
}

                                  
[data-theme="dark"] .site-header {
    background: rgba(15, 23, 42, 0.92);
}
[data-theme="dark"] .hero {
    background: transparent;
}
[data-theme="dark"] .service-card,
[data-theme="dark"] .step {
    background: #1e293b;
}
[data-theme="dark"] .service-icon {
    background: #172554;
}
[data-theme="dark"] .cta {
    background: #1e3a8a;
}
[data-theme="dark"] .site-footer {
    background: #0f172a;
}

                     
[data-theme="dark"] .summary-card,
[data-theme="dark"] .action-card,
[data-theme="dark"] .record-item,
[data-theme="dark"] .state-box {
    background: #1e293b;
    border-color: #334155;
}
[data-theme="dark"] .action-icon,
[data-theme="dark"] .summary-card-icon,
[data-theme="dark"] .state-box-icon {
    background: linear-gradient(135deg, #172554 0%, #1e1b4b 100%);
    color: var(--primary);
}
[data-theme="dark"] .action-card:hover,
[data-theme="dark"] .summary-card:hover,
[data-theme="dark"] .record-item:hover {
    border-color: rgba(96, 165, 250, 0.4);
}
[data-theme="dark"] .action-card-title,
[data-theme="dark"] .summary-card-value,
[data-theme="dark"] .record-item-title,
[data-theme="dark"] .state-box-title,
[data-theme="dark"] .dash-section-head h3 {
    color: #e2e8f0;
}
[data-theme="dark"] .action-card-sub,
[data-theme="dark"] .summary-card-label,
[data-theme="dark"] .record-item-meta,
[data-theme="dark"] .state-box-sub {
    color: #94a3b8;
}
[data-theme="dark"] .dash-section-eyebrow {
    color: #60a5fa;
}
[data-theme="dark"] .record-icon {
    background: #1e293b;
    border-color: #334155;
    color: #94a3b8;
}

                     
[data-theme="dark"] .doc-card,
[data-theme="dark"] .doc-type-card,
[data-theme="dark"] .doc-preview {
    background: #1e293b;
    border-color: #334155;
}
[data-theme="dark"] .doc-type-card.is-selected {
    background: #172554;
    border-color: #60a5fa;
}
[data-theme="dark"] .doc-dropzone {
    background: #1e293b;
    border-color: #334155;
}
[data-theme="dark"] .doc-dropzone:hover,
[data-theme="dark"] .doc-dropzone.is-dragover {
    border-color: #60a5fa;
    background: #172554;
}
[data-theme="dark"] .doc-dropzone.is-error {
    background: #450a0a;
    border-color: #f87171;
}
[data-theme="dark"] .doc-dropzone-icon {
    background: linear-gradient(135deg, #172554 0%, #1e1b4b 100%);
    color: #60a5fa;
}
[data-theme="dark"] .doc-textarea {
    background: #1e293b;
    color: #e2e8f0;
}
[data-theme="dark"] .doc-intro h1,
[data-theme="dark"] .doc-section-head h2,
[data-theme="dark"] .doc-type-name,
[data-theme="dark"] .doc-dropzone-text,
[data-theme="dark"] .doc-preview-name {
    color: #e2e8f0;
}
[data-theme="dark"] .doc-preview-thumb {
    background: #0f172a;
    border-color: #334155;
}
[data-theme="dark"] .doc-preview-thumb.is-pdf {
    background: #450a0a;
    color: #fca5a5;
}

                        
[data-theme="dark"] .apt-card,
[data-theme="dark"] .apt-service-card,
[data-theme="dark"] .apt-slot {
    background: #1e293b;
    border-color: #334155;
}
[data-theme="dark"] .apt-service-card.is-selected {
    background: #172554;
    border-color: #60a5fa;
}
[data-theme="dark"] .apt-service-icon {
    background: linear-gradient(135deg, #172554 0%, #1e1b4b 100%);
    color: #60a5fa;
}
[data-theme="dark"] .apt-date {
    background: #1e293b;
    color: #e2e8f0;
}
[data-theme="dark"] .apt-intro h1,
[data-theme="dark"] .apt-section-head h2,
[data-theme="dark"] .apt-service-name,
[data-theme="dark"] .apt-slot {
    color: #e2e8f0;
}
[data-theme="dark"] .apt-slot:hover {
    background: #172554;
    border-color: #60a5fa;
}
[data-theme="dark"] .apt-calendar {
    background: #1e293b;
    border-color: #334155;
}
[data-theme="dark"] .apt-cal-head {
    border-color: #334155;
}
[data-theme="dark"] .apt-cal-title,
[data-theme="dark"] .apt-cal-day:not(.is-disabled):not(.is-selected) {
    color: #e2e8f0;
}
[data-theme="dark"] .apt-cal-day.is-disabled {
    color: #475569;
}
[data-theme="dark"] .apt-cal-nav {
    border-color: #334155;
    color: #94a3b8;
}

                                                                          
                                                                                
[data-theme="dark"] .leaflet-bar a {
    background-color: #1e293b;
    border-bottom-color: #334155;
    color: #e2e8f0;
}
[data-theme="dark"] .leaflet-bar a:hover,
[data-theme="dark"] .leaflet-bar a:focus,
[data-theme="dark"] .leaflet-bar a.leaflet-disabled { background-color: #334155; }
[data-theme="dark"] .leaflet-control-layers,
[data-theme="dark"] .leaflet-control-layers-expanded {
    background: #1e293b;
    color: #e2e8f0;
}
[data-theme="dark"] .leaflet-control-layers-separator { border-top-color: #475569; }
[data-theme="dark"] .leaflet-div-icon { background: #1e293b; border-color: #64748b; }
[data-theme="dark"] .leaflet-container .leaflet-control-attribution,
[data-theme="dark"] .leaflet-control-scale-line {
    background: rgba(15, 23, 42, .86);
    color: #cbd5e1;
    text-shadow: none;
}
[data-theme="dark"] .leaflet-control-attribution a { color: #93c5fd; }
[data-theme="dark"] .leaflet-control-scale-line { border-color: #64748b; }
[data-theme="dark"] .leaflet-popup-content-wrapper,
[data-theme="dark"] .leaflet-popup-tip {
    background: #1e293b;
    color: #e2e8f0;
}
[data-theme="dark"] .leaflet-container a.leaflet-popup-close-button { color: #94a3b8; }
[data-theme="dark"] .leaflet-container a.leaflet-popup-close-button:hover,
[data-theme="dark"] .leaflet-container a.leaflet-popup-close-button:focus { color: #e2e8f0; }
[data-theme="dark"] .leaflet-tooltip {
    background-color: #1e293b;
    border-color: #475569;
    color: #e2e8f0;
}
[data-theme="dark"] .leaflet-tooltip-top:before { border-top-color: #1e293b; }
[data-theme="dark"] .leaflet-tooltip-bottom:before { border-bottom-color: #1e293b; }
[data-theme="dark"] .leaflet-tooltip-left:before { border-left-color: #1e293b; }
[data-theme="dark"] .leaflet-tooltip-right:before { border-right-color: #1e293b; }

           
[data-theme="dark"] .pembo-toast {
    background: #1e293b;
    border-color: #334155;
}
[data-theme="dark"] .pembo-toast-code {
    background: #0f172a;
}
[data-theme="dark"] .pembo-toast-success .pembo-toast-icon { background: #052e16; color: #86efac; }
[data-theme="dark"] .pembo-toast-error .pembo-toast-icon { background: #450a0a; color: #fca5a5; }
[data-theme="dark"] .pembo-toast-info .pembo-toast-icon { background: #1e1b4b; color: #c7d2fe; }

                   
[data-theme="dark"] .prof-card,
[data-theme="dark"] .state-box {
    background: #1e293b;
    border-color: #334155;
}
[data-theme="dark"] .prof-field {
    border-color: #334155;
}
[data-theme="dark"] .prof-intro h1,
[data-theme="dark"] .prof-section-head h2,
[data-theme="dark"] .prof-avatar-name,
[data-theme="dark"] .prof-field-value,
[data-theme="dark"] .state-box-title {
    color: #e2e8f0;
}
[data-theme="dark"] .prof-avatar-sub,
[data-theme="dark"] .prof-field-label,
[data-theme="dark"] .state-box-sub {
    color: #94a3b8;
}
[data-theme="dark"] .prof-field-value.is-empty {
    color: #94a3b8;
}


                                                                              
                                                                               
                                                                              
[data-theme="dark"] {
    --admin-primary: #60a5fa;
    --admin-primary-dark: #3b82f6;
    --admin-gold: #fcd34d;
    --admin-gold-bg: #422006;
    --admin-green: #86efac;
    --admin-green-bg: #052e16;
    --admin-red: #fca5a5;
    --admin-red-bg: #450a0a;
    --admin-card: #1e293b;
    --admin-border: #334155;
    --admin-text: #e2e8f0;
    --admin-muted: #94a3b8;
    --admin-bg: #0f172a;
}

                                                                        
[data-theme="dark"] .admin-badge-good { background: #052e16; color: #86efac; }
[data-theme="dark"] .admin-badge-warn { background: #422006; color: #fcd34d; }
[data-theme="dark"] .admin-badge-danger { background: #450a0a; color: #fca5a5; }

                                                                   
[data-theme="dark"] .admin-table tr:hover td { background: rgba(96, 165, 250, 0.08); }
[data-theme="dark"] .admin-tab-btn.active { background: rgba(96, 165, 250, 0.12); }
[data-theme="dark"] .admin-filter-bar input::placeholder,
[data-theme="dark"] .admin-search-input::placeholder { color: #64748b; }

                                                   
[data-theme="dark"] .resident-announcements {
    --notice-paper: #111827;
    --notice-feature-surface: #172337;
    --notice-ink: #e2e8f0;
    --notice-muted: #94a3b8;
    --notice-rule: #334155;
    --announcement-card-end: #172337;
}
[data-theme="dark"] .resident-announcements-heading { border-color: #60a5fa; }
[data-theme="dark"] .resident-announcements-eyebrow,
[data-theme="dark"] .resident-announcement-latest { color: #93c5fd; }
[data-theme="dark"] .resident-announcements-count {
    border-color: #1e3a5f;
    border-left-color: #60a5fa;
    background: #172b49;
    color: #dbeafe;
}
[data-theme="dark"] .resident-announcement-card {
    --announcement-card-end: #172337;
    --notice-tint: #253449;
    --notice-ink: #cbd5e1;
    --notice-rule: #334155;
}
[data-theme="dark"] .resident-announcement-card[data-category="announcement"] {
    --notice-tint: #172b49;
    --notice-ink: #93c5fd;
    --notice-accent: #60a5fa;
}
[data-theme="dark"] .resident-announcement-card[data-category="resolution"] {
    --notice-tint: #2e2350;
    --notice-ink: #c4b5fd;
    --notice-accent: #a78bfa;
}
[data-theme="dark"] .resident-announcement-card[data-category="ordinance"] {
    --notice-tint: #123d3c;
    --notice-ink: #5eead4;
    --notice-accent: #2dd4bf;
}
[data-theme="dark"] .resident-announcement-card[data-category="notice"] {
    --notice-tint: #273449;
    --notice-ink: #cbd5e1;
    --notice-accent: #94a3b8;
    --notice-rule: #334155;
}
[data-theme="dark"] .resident-announcement-date-label { color: #94a3b8; }
[data-theme="dark"] .resident-announcement-time-zone { color: #94a3b8; }
[data-theme="dark"] .announcement-empty-state {
    --announcement-card-end: #172337;
    --empty-mark-border: #1e3a5f;
    --empty-mark-bg: #172b49;
    --empty-mark-ink: #93c5fd;
}
[data-theme="dark"] .announcement-empty-state.announcement-error-state {
    --empty-mark-border: #7f1d1d;
    --empty-mark-bg: #450a0a;
    --empty-mark-ink: #fca5a5;
    --empty-error-ink: #fca5a5;
}
[data-theme="dark"] .announcement-editor-form,
[data-theme="dark"] .announcement-manager-list {
    border-color: var(--border);
    background: var(--card-bg);
}
[data-theme="dark"] .announcement-form-field input,
[data-theme="dark"] .announcement-form-field select,
[data-theme="dark"] .announcement-form-field textarea {
    border-color: var(--border);
    background: #0f172a;
    color: var(--text-main);
}
[data-theme="dark"] .announcement-table tbody tr:hover {
    background: rgba(96, 165, 250, 0.08);
}
[data-theme="dark"] .announcement-type--announcement {
    --announcement-type-tint: #172b49;
    --announcement-type-ink: #93c5fd;
}
[data-theme="dark"] .announcement-type--resolution {
    --announcement-type-tint: #2e2350;
    --announcement-type-ink: #c4b5fd;
}
[data-theme="dark"] .announcement-type--ordinance {
    --announcement-type-tint: #123d3c;
    --announcement-type-ink: #5eead4;
}
[data-theme="dark"] .announcement-type--notice {
    --announcement-type-tint: #273449;
    --announcement-type-ink: #cbd5e1;
}
[data-theme="dark"] .announcement-status-published {
    background: #052e16;
    color: #86efac;
}
[data-theme="dark"] .announcement-status-archived,
[data-theme="dark"] .announcement-status-unknown {
    background: #334155;
    color: #cbd5e1;
}
[data-theme="dark"] .announcement-manager-empty {
    border-color: var(--border);
    background: #172337;
}
[data-theme="dark"] .announcement-manager-empty-mark {
    border-color: #1e3a5f;
    background: #172b49;
}
[data-theme="dark"] .announcement-manager-empty-mark::before {
    border-color: #93c5fd;
}
[data-theme="dark"] .announcement-manager-empty-error {
    border-color: #7f1d1d;
    background: #450a0a;
}
[data-theme="dark"] .announcement-manager-empty-error h3,
[data-theme="dark"] .announcement-manager-empty-error p,
[data-theme="dark"] .announcement-manager-feedback.is-error {
    color: #fca5a5;
}
[data-theme="dark"] .announcement-manager-feedback.is-error {
    border-color: #7f1d1d;
    background: #450a0a;
}
[data-theme="dark"] .announcement-form-field .announcement-field-error:not([hidden]) {
    color: #fca5a5;
}

                                            
                                                                             
                                                                               
                                                                         
                                       
body > .theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1100;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--card-bg);
    color: var(--text-main);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    transition: transform 0.12s, background 0.15s, color 0.15s;
}

body > .theme-toggle:hover {
    transform: translateY(-1px);
}

body > .theme-toggle svg {
    width: 20px;
    height: 20px;
}

                                                                         
                                                                         
                                                                         
                                                                         
                                                                             
                                                                
::view-transition-group(root),
::view-transition-old(root),
::view-transition-new(root) {
    animation: none;
    mix-blend-mode: normal;
}

::view-transition-old(root) {
    z-index: 1;
}

::view-transition-new(root) {
    z-index: 2;
}
