/* ==========================================================================
   THEME SOMBRE — genere systematiquement depuis style.css
   Palette : fond #0f172a, surfaces #1e293b/#1a2740, bordures #334155,
   texte #e2e8f0, texte secondaire #94a3b8.
   Ne pas editer a la main : completer la section « retouches » en bas.
   ========================================================================== */
html[data-theme="dark"] { color-scheme: dark; }
html[data-theme="dark"] body { background-color: #0f172a; color: #e2e8f0; }
html[data-theme="dark"] ::selection { background: #334155; color: #f1f5f9; }
html[data-theme="dark"] ::-webkit-scrollbar { width: 10px; height: 10px; }
html[data-theme="dark"] ::-webkit-scrollbar-thumb { background: #334155; border-radius: 6px; }
html[data-theme="dark"] ::-webkit-scrollbar-track { background: #0f172a; }
html[data-theme="dark"] ::-webkit-scrollbar-thumb:hover { background: #475569; }
html[data-theme="dark"] hr { border-color: #334155; }

/* --- Sidebar --- */
html[data-theme="dark"] .sidebar { background-color: #020617; }
html[data-theme="dark"] .nav-links a, html[data-theme="dark"] .nav-group-title { color: #cbd5e1; }
html[data-theme="dark"] .nav-links a:hover, html[data-theme="dark"] .nav-links a.active {
    background-color: #1e293b; color: #fff;
}
html[data-theme="dark"] .header { border-bottom-color: #334155; }
/* Profil utilisateur : coins arrondis sur le bloc bleu */
html[data-theme="dark"] .user-profile {
    background-color: #16283f;
    border-radius: 12px;
    margin: 0 8px 8px;
    border-top: none;
    border: 1px solid #334155;
}
/* Bouton de repli : meme teinte que la sidebar */
html[data-theme="dark"] #sidebar-toggle { background: #020617; box-shadow: 2px 0 5px rgba(0,0,0,0.5); }

/* --- Modales / overlays --- */
html[data-theme="dark"] .modal, html[data-theme="dark"] #bug-report-modal,
html[data-theme="dark"] .ap-modal-signalements, html[data-theme="dark"] #saving-overlay {
    background-color: rgba(2, 6, 23, 0.6);
}

/* --- Formulaires --- */
html[data-theme="dark"] input, html[data-theme="dark"] select, html[data-theme="dark"] textarea {
    background-color: #0f172a; color: #e2e8f0; border-color: #334155;
}
html[data-theme="dark"] input::placeholder, html[data-theme="dark"] textarea::placeholder { color: #64748b; }
html[data-theme="dark"] select option { background-color: #1e293b; color: #e2e8f0; }
html[data-theme="dark"] input[type="checkbox"], html[data-theme="dark"] input[type="radio"] { accent-color: #38bdf8; }
html[data-theme="dark"] input:disabled, html[data-theme="dark"] select:disabled,
html[data-theme="dark"] textarea:disabled { background-color: #17202f; color: #64748b; }
html[data-theme="dark"] input[type="range"], html[data-theme="dark"] input[type="color"],
html[data-theme="dark"] input[type="file"], html[data-theme="dark"] input[type="checkbox"],
html[data-theme="dark"] input[type="radio"] { background-color: transparent; }

/* ==========================================================================
   SURCHARGES GENEREES depuis style.css (fond clair -> sombre, texte fonce
   -> clair, bordure claire -> #334155)
   ========================================================================== */
html[data-theme="dark"] body { background-color: #0f172a; color: #e2e8f0; }
html[data-theme="dark"] .header { background-color: #1e293b; }
html[data-theme="dark"] .header-sub { color: #94a3b8; }
html[data-theme="dark"] .btn-legende-couleurs { background-color: #1e293b; color: #e2e8f0; }
html[data-theme="dark"] .legende-separateur { border-top: 1px solid #334155; }
html[data-theme="dark"] .btn-toggle { background-color: #2b3b57; color: #cbd5e1; }
html[data-theme="dark"] .date-navigation { background-color: #0f172a; }
html[data-theme="dark"] .btn-nav { color: #e2e8f0; }
html[data-theme="dark"] .timeline-container { background-color: #1e293b; }
html[data-theme="dark"] .timeline-header { border-bottom: 2px solid #334155; }
html[data-theme="dark"] .hour-cell-header { color: #94a3b8; }
html[data-theme="dark"] .timeline-row { border-bottom: 1px solid #334155; }
html[data-theme="dark"] .grid-hour-block { border-right: 1px solid #334155; }
html[data-theme="dark"] .timeline-row.vi-planeur-row { background-color: #251d45; }
html[data-theme="dark"] .loading { color: #94a3b8; }
html[data-theme="dark"] .saving-overlay-box { background-color: #1e293b; color: #e2e8f0; }
html[data-theme="dark"] .saving-spinner { border: 3px solid #334155; }
html[data-theme="dark"] .glider-presence-section { background-color: #1e293b; }
html[data-theme="dark"] .glider-presence-section h3 { color: #e2e8f0; border-bottom: 2px solid #334155; }
html[data-theme="dark"] .presence-card { background-color: #1a2740; border: 1px solid #334155; }
html[data-theme="dark"] .presence-card h4 { background-color: #2b3b57; color: #e2e8f0; }
html[data-theme="dark"] .presence-list li { background-color: #1e293b; }
html[data-theme="dark"] .btn-remove-presence { color: #f87171; }
html[data-theme="dark"] .btn-inscription { color: #e2e8f0; }
html[data-theme="dark"] .btn-inscription:hover { color: #ff8a65; }
html[data-theme="dark"] .btn-inscription:disabled:hover { color: #e2e8f0; }
html[data-theme="dark"] .comment-text { color: #94a3b8; }
html[data-theme="dark"] .presence-heures { background-color: #123c28; color: #4ade80; }
html[data-theme="dark"] .presence-briefing { color: #e2e8f0; }
html[data-theme="dark"] .presence-heures-btn:hover { background-color: #1a5a38; }
html[data-theme="dark"] .modal-content { background-color: #1e293b; }
html[data-theme="dark"] .close-modal { color: #94a3b8; }
html[data-theme="dark"] .close-modal-vi { color: #94a3b8; }
html[data-theme="dark"] .close-modal-carnet { color: #94a3b8; }
html[data-theme="dark"] .close-modal-gerer-dispos { color: #94a3b8; }
html[data-theme="dark"] .close-modal-disponibilite { color: #94a3b8; }
html[data-theme="dark"] .close-modal-instructeur-suivi { color: #94a3b8; }
html[data-theme="dark"] .close-documents-aeronef { color: #94a3b8; }
html[data-theme="dark"] .close-documents-bilan { color: #94a3b8; }
html[data-theme="dark"] .close-bilan-membres { color: #94a3b8; }
html[data-theme="dark"] .close-bilan-comptes { color: #94a3b8; }
html[data-theme="dark"] .modal-close-x { color: #94a3b8; }
html[data-theme="dark"] .modal-close-x:hover { color: #e2e8f0; }
html[data-theme="dark"] .form-group input { border: 1px solid #3b4d68; }
html[data-theme="dark"] .form-group select { border: 1px solid #3b4d68; }
html[data-theme="dark"] .form-group textarea { border: 1px solid #3b4d68; }
html[data-theme="dark"] .checkbox-option { background-color: #1a2740; border: 1px solid #3b4d68; }
html[data-theme="dark"] .checkbox-option:hover { background-color: #2b3b57; }
html[data-theme="dark"] .checkbox-option.chip-disabled:hover { background-color: #1a2740; }
html[data-theme="dark"] .btn-secondary { background-color: #1e293b; color: #e2e8f0; border: 1px solid #3b4d68; }
html[data-theme="dark"] .btn-secondary:hover { background-color: #22304a; border-color: #475569; }
html[data-theme="dark"] .form-control { background-color: #1e293b; border: 1px solid #3b4d68; }
html[data-theme="dark"] .carnet-header-controls label { color: #e2e8f0; }
html[data-theme="dark"] #carnet-recherche { background-color: #1a2740; border: 1px solid #3b4d68; }
html[data-theme="dark"] #carnet-recherche:focus { background-color: #1e293b; }
html[data-theme="dark"] #docs-recherche { background-color: #1a2740; border: 1px solid #3b4d68; }
html[data-theme="dark"] #docs-recherche:focus { background-color: #1e293b; }
html[data-theme="dark"] #audit-search { background-color: #1a2740; border: 1px solid #3b4d68; }
html[data-theme="dark"] #audit-search:focus { background-color: #1e293b; }
html[data-theme="dark"] .carnet-table tbody tr:hover { background-color: #22304a; }
html[data-theme="dark"] #select-machine-suivi { background-color: #22304a; color: #e2e8f0; }
html[data-theme="dark"] #select-machine-suivi:hover { background-color: #2b3b57; }
html[data-theme="dark"] .col-potentiel-fin { background-color: #1a2740; }
html[data-theme="dark"] .drag-ghost-preview { color: #e2e8f0; }
html[data-theme="dark"] .initiation-tab { background-color: #2b3b57; color: #cbd5e1; }
html[data-theme="dark"] .initiation-filter-btn { background-color: #2b3b57; color: #cbd5e1; }
html[data-theme="dark"] .initiation-list { background-color: #1e293b; }
html[data-theme="dark"] .initiation-card { border: 1px solid #334155; }
html[data-theme="dark"] .initiation-card.disponible { background-color: #0f3440; }
html[data-theme="dark"] .initiation-card.pris { background-color: #1d2745; }
html[data-theme="dark"] .initiation-card.bloque { color: #94a3b8; border-left: 5px solid #3b4d68; }
html[data-theme="dark"] .initiation-info h4 { color: #e2e8f0; }
html[data-theme="dark"] .initiation-info p { color: #cbd5e1; }
html[data-theme="dark"] .initiation-meta { color: #94a3b8; }
html[data-theme="dark"] .initiation-empty { color: #94a3b8; }
html[data-theme="dark"] .initiation-jour-titre { color: #e2e8f0; border-bottom: 2px solid #334155; }
html[data-theme="dark"] .gv-date-chip { background-color: #2b3b57; color: #e2e8f0; border: 1px solid #3b4d68; }
html[data-theme="dark"] .gv-date-chip:hover { background-color: #5c2c30; color: #f87171; }
html[data-theme="dark"] .vi-choix-actions #btn-modifier-exception { background-color: #2b3b57; color: #e2e8f0; }
html[data-theme="dark"] .vi-choix-actions #btn-modifier-exception:hover { background-color: #3b4d68; }
html[data-theme="dark"] #manage-form .form-actions #btn-manage-annuler { background-color: #1e293b; color: #f87171; }
html[data-theme="dark"] #manage-form .form-actions #btn-manage-annuler:hover { background-color: #3d2228; }
html[data-theme="dark"] #manage-form .form-actions #btn-manage-changer { background-color: #22304a; color: #e2e8f0; border-color: #3b4d68; }
html[data-theme="dark"] #manage-form .form-actions #btn-manage-changer:hover { background-color: #2b3b57; }
html[data-theme="dark"] #gestion-vi-toolbar h3 { color: #e2e8f0; }
html[data-theme="dark"] .initiation-card.apourvoir { background-color: #402812; }
html[data-theme="dark"] .initiation-card.creneaux { background-color: #0f3440; }
html[data-theme="dark"] .initiation-card.type-vip:not(.bloque) { background-color: #0f3440; }
html[data-theme="dark"] .initiation-card.type-viulm:not(.bloque) { background-color: #3a2f14; }
html[data-theme="dark"] .initiation-card.type-via:not(.bloque) { background-color: #1d2745; }
html[data-theme="dark"] .initiation-selection-barre { background-color: #1a2740; color: #cbd5e1; border: 1px solid #334155; }
html[data-theme="dark"] .initiation-selection-barre label { color: #e2e8f0; }
html[data-theme="dark"] .carnet-table-container { background-color: #1e293b; }
html[data-theme="dark"] .carnet-table thead th { border-bottom: 2px solid #334155; }
html[data-theme="dark"] .carnet-table tbody td { border-bottom: 1px solid #334155; }
html[data-theme="dark"] .carnet-table tbody tr:nth-child(even) { background-color: #1a2740; }
html[data-theme="dark"] .carnet-table td { color: #e2e8f0; }
html[data-theme="dark"] .carnet-empty { color: #94a3b8; }
html[data-theme="dark"] .carnet-table tfoot .carnet-total-cumule td { background-color: #2b3b57; color: #e2e8f0; }
html[data-theme="dark"] .carnet-pagination { color: #e2e8f0; }
html[data-theme="dark"] .carnet-pagination button { background-color: #1e293b; color: #e2e8f0; border: 1px solid #3b4d68; }
html[data-theme="dark"] .carnet-pagination button:hover:not(:disabled) { background-color: #22304a; }
html[data-theme="dark"] #mini-calendrier { background-color: #1a2740; color: #e2e8f0; }
html[data-theme="dark"] .cal-header button { background-color: #2b3b57; color: #e2e8f0; }
html[data-theme="dark"] .cal-header button:hover { background-color: #3b4d68; }
html[data-theme="dark"] .cal-weekday { color: #94a3b8; }
html[data-theme="dark"] .cal-day:hover { background-color: #2b3b57; }
html[data-theme="dark"] .cal-day.today { background-color: #47222a; color: #f87171; }
html[data-theme="dark"] .cal-day.selected .cal-dot { background-color: #1e293b; }
html[data-theme="dark"] .cal-day.selected { background-color: #1e293b; color: #e2e8f0; }
html[data-theme="dark"] .prochains-evenements-header h4 { color: #94a3b8; }
html[data-theme="dark"] #prochains-evenements h4 { color: #94a3b8; }
html[data-theme="dark"] .prochains-evenements-empty { color: #94a3b8; }
html[data-theme="dark"] .evenement-empty { color: #94a3b8; }
html[data-theme="dark"] .evenement-card { background-color: #1a2740; color: #e2e8f0; }
html[data-theme="dark"] .btn-supprimer-evenement { color: #f87171; }
html[data-theme="dark"] .btn-supprimer-evenement:hover { background-color: #47222a; color: #f87171; }
html[data-theme="dark"] .btn-modifier-evenement:hover { background-color: #202a4a; }
html[data-theme="dark"] .evenement-titre { color: #e2e8f0; }
html[data-theme="dark"] .evenement-createur { color: #94a3b8; }
html[data-theme="dark"] .evenement-sous-titre { color: #94a3b8; }
html[data-theme="dark"] .evenement-description { color: #cbd5e1; }
html[data-theme="dark"] .evenement-inscrits { color: #e2e8f0; border-top: 1px solid #334155; border-bottom: 1px solid #334155; }
html[data-theme="dark"] .btn-remove-inscrit { color: #f87171; }
html[data-theme="dark"] .btn-remove-inscrit:hover { color: #f87171; }
html[data-theme="dark"] .btn-invit { background-color: #1d2745; color: #a5b4fc; }
html[data-theme="dark"] .btn-invit:hover { background-color: #202a4a; }
html[data-theme="dark"] #view-accueil-membre .accueil-profil { background-color: #1a2740; border: 1px solid #334155; }
html[data-theme="dark"] #view-accueil-membre .accueil-photo { background-color: #1e293b; border: 2px solid #3b4d68; }
html[data-theme="dark"] #view-accueil-membre .accueil-nom { color: #e2e8f0; }
html[data-theme="dark"] #view-accueil-membre .accueil-roles { color: #94a3b8; }
html[data-theme="dark"] .accueil-urgence { background-color: #40320f; }
html[data-theme="dark"] .accueil-urgence-titre { color: #fbbf24; }
html[data-theme="dark"] .accueil-urgence-nom { color: #e2e8f0; }
html[data-theme="dark"] .accueil-urgence-tel { color: #e2e8f0; }
html[data-theme="dark"] .validite-card { background-color: #1e293b; border: 1px solid #334155; }
html[data-theme="dark"] .validite-experience { background-color: #1e293b; border: 1px solid #334155; }
html[data-theme="dark"] .experience-row { background-color: #1a2740; border: 1px solid #334155; }
html[data-theme="dark"] .experience-row.suivi-inactif { background-color: #22304a; }
html[data-theme="dark"] .experience-titre { color: #cbd5e1; }
html[data-theme="dark"] .accueil-disclaimer { background-color: #22304a; color: #94a3b8; }
html[data-theme="dark"] .bandeau-informatif { background-color: #40320f; color: #fbbf24; }
html[data-theme="dark"] .bandeau-informatif strong { color: #fbbf24; }
html[data-theme="dark"] .validite-label { color: #cbd5e1; }
html[data-theme="dark"] .pastille-verte { background-color: #123c28; color: #4ade80; }
html[data-theme="dark"] .pastille-rouge { background-color: #47222a; color: #fca5a5; }
html[data-theme="dark"] .pastille-orange { background-color: #45300f; color: #fdba74; }
html[data-theme="dark"] .pastille-grise { background-color: #22304a; color: #94a3b8; }
html[data-theme="dark"] .validite-date { color: #94a3b8; }
html[data-theme="dark"] .accueil-admin-bar { background-color: #1a2740; border: 1px solid #334155; }
html[data-theme="dark"] .accueil-admin-bar label { color: #cbd5e1; }
html[data-theme="dark"] .accueil-admin-bar select { border: 1px solid #3b4d68; }
html[data-theme="dark"] .validite-input { border: 1px solid #3b4d68; }
html[data-theme="dark"] .accueil-documents { background-color: #1e293b; border: 1px solid #334155; }
html[data-theme="dark"] .accueil-documents h3 { color: #e2e8f0; }
html[data-theme="dark"] .accueil-doc-form label { color: #cbd5e1; }
html[data-theme="dark"] .accueil-doc-form select { border: 1px solid #3b4d68; }
html[data-theme="dark"] .accueil-doc-form input[type="file"] { border: 1px solid #3b4d68; }
html[data-theme="dark"] .accueil-doc-item { background-color: #1a2740; border: 1px solid #334155; }
html[data-theme="dark"] .accueil-doc-item a { color: #4ade80; }
html[data-theme="dark"] .doc-suppr-btn { color: #94a3b8; }
html[data-theme="dark"] .doc-suppr-btn:hover { background-color: #3d2228; color: #f87171; }
html[data-theme="dark"] .role-tag { background-color: #22304a; color: #e2e8f0; border: 1px solid #3b4d68; }
html[data-theme="dark"] .accueil-info-label { color: #94a3b8; }
html[data-theme="dark"] .accueil-info-val { color: #e2e8f0; }
html[data-theme="dark"] .accueil-info-input { border: 1px solid #3b4d68; }
html[data-theme="dark"] .activer-suivi { color: #94a3b8; }
html[data-theme="dark"] .suivi-inactif { background-color: #22304a !important; }
html[data-theme="dark"] #membres-list tr:hover { background-color: #1a2740; }
html[data-theme="dark"] .instructeur-dispo-row .machine-cell { color: #e2e8f0; }
html[data-theme="dark"] .dispo-hour { background-color: #47222a; }
html[data-theme="dark"] .dispo-hour.dispo-green { background-color: #123c28; }
html[data-theme="dark"] .dispo-hour.dispo-red { background-color: #47222a; }
html[data-theme="dark"] .dispo-discipline-label { color: #cbd5e1; }
html[data-theme="dark"] #instructeur-suivi-modal th { border: 1px solid #334155; }
html[data-theme="dark"] #instructeur-suivi-modal td { border: 1px solid #334155; }
html[data-theme="dark"] #instructeur-suivi-modal th { background-color: #22304a; color: #e2e8f0; }
html[data-theme="dark"] .comptes-solde.negatif { color: #f87171; }
html[data-theme="dark"] .comptes-solde.attente { color: #fbbf24; }
html[data-theme="dark"] .comptes-solde.positif { color: #4ade80; }
html[data-theme="dark"] .comptes-row.debit { background-color: #3d2228; color: #f87171; }
html[data-theme="dark"] .comptes-row.credit { background-color: #123324; color: #4ade80; }
html[data-theme="dark"] .comptes-row.attente { background-color: #3a2f14; color: #fbbf24; }
html[data-theme="dark"] .comptes-list table th { border-bottom: 1px solid #334155; }
html[data-theme="dark"] .comptes-list table td { border-bottom: 1px solid #334155; }
html[data-theme="dark"] .comptes-titres h2 { color: #e2e8f0; }
html[data-theme="dark"] .comptes-subtitle { color: #94a3b8; }
html[data-theme="dark"] .comptes-list-card { background-color: #1e293b; }
html[data-theme="dark"] .comptes-list-title { color: #e2e8f0; }
html[data-theme="dark"] .comptes-export-btn { color: #cbd5e1; border: 1px solid #334155; }
html[data-theme="dark"] .comptes-export-btn:hover { background-color: #1a2740; }
html[data-theme="dark"] .comptes-table th { color: #e2e8f0; border-bottom: 2px solid #334155; }
html[data-theme="dark"] .comptes-table td { border-bottom: 1px solid #334155; }
html[data-theme="dark"] .comptes-ref { color: #94a3b8; }
html[data-theme="dark"] .comptes-montant .comptes-delete { color: #94a3b8; }
html[data-theme="dark"] .membre-actions .membre-delete { color: #94a3b8; }
html[data-theme="dark"] .membre-actions .membre-delete:hover { color: #f87171; }
html[data-theme="dark"] .comptes-voir-toutes { color: #e2e8f0; }
html[data-theme="dark"] .comptes-vide { color: #94a3b8; }
html[data-theme="dark"] .app-version-watermark { color: #94a3b8; }
html[data-theme="dark"] .role-info { border-bottom: 1px dotted #475569; }
html[data-theme="dark"] .notifications-panel { background-color: #1e293b; color: #e2e8f0; }
html[data-theme="dark"] .notifications-header { border-bottom: 1px solid #334155; }
html[data-theme="dark"] .notifications-tout-lu { color: #93c5fd; }
html[data-theme="dark"] .notifications-tout-lu:hover { background-color: #172742; }
html[data-theme="dark"] .notifications-close { color: #94a3b8; }
html[data-theme="dark"] .notifications-vide { color: #94a3b8; }
html[data-theme="dark"] .notification-item { border-bottom: 1px solid #334155; }
html[data-theme="dark"] .notification-item:hover { background-color: #1a2740; }
html[data-theme="dark"] .notification-non-lue { background-color: #14283c; }
html[data-theme="dark"] .notification-meta { color: #94a3b8; }
html[data-theme="dark"] .notification-message { color: #e2e8f0; }
html[data-theme="dark"] .notification-list { color: #e2e8f0; }
html[data-theme="dark"] .notification-list li::marker { color: #94a3b8; }
html[data-theme="dark"] .planeur-box { background-color: #1a2740; color: #e2e8f0; }
html[data-theme="dark"] .planeur-box:hover { background-color: #1e293b; }
html[data-theme="dark"] .btn-doc-planeur { background-color: #2b3b57; color: #e2e8f0; border: 1px solid #3b4d68; }
html[data-theme="dark"] .btn-doc-planeur:hover { background-color: #3b4d68; }
html[data-theme="dark"] .btn-remarque { background-color: #40320f; }
html[data-theme="dark"] .btn-remarque:hover { background-color: #6b5413; }
html[data-theme="dark"] .planeur-section-title { color: #e2e8f0; }
html[data-theme="dark"] .audit-table { background-color: #1e293b; }
html[data-theme="dark"] .audit-table th { border-bottom: 1px solid #334155; }
html[data-theme="dark"] .audit-table td { border-bottom: 1px solid #334155; }
html[data-theme="dark"] .audit-table tbody tr:nth-child(even) { background-color: #1a2740; }
html[data-theme="dark"] .audit-table tbody tr:hover { background-color: #172742; }
html[data-theme="dark"] .audit-date { color: #cbd5e1; }
html[data-theme="dark"] .audit-user { color: #e2e8f0; }
html[data-theme="dark"] .audit-action { color: #e2e8f0; }
html[data-theme="dark"] .audit-target { color: #e2e8f0; }
html[data-theme="dark"] .audit-detail { color: #94a3b8; }
html[data-theme="dark"] .accueil-pilote-header h2 { color: #e2e8f0; }
html[data-theme="dark"] .accueil-pilote-header p { color: #94a3b8; }
html[data-theme="dark"] .ap-card-white { background-color: #1e293b; color: #e2e8f0; border: 1px solid #334155; }
html[data-theme="dark"] .ap-card-messages h3 { color: #e2e8f0; }
html[data-theme="dark"] .ap-card-messages p { color: #e2e8f0; }
html[data-theme="dark"] .ap-msg-input { border: 1px solid #334155; }
html[data-theme="dark"] .ap-msg-textarea { border: 1px solid #334155; }
html[data-theme="dark"] .ap-msg-cancel { background-color: #2b3b57; color: #e2e8f0; }
html[data-theme="dark"] .ap-message-item { border-bottom: 1px solid #334155; }
html[data-theme="dark"] .ap-message-title { color: #e2e8f0; }
html[data-theme="dark"] .ap-message-meta { color: #94a3b8; }
html[data-theme="dark"] .ap-message-body { color: #e2e8f0; }
html[data-theme="dark"] .ap-signalements-toggle { color: #94a3b8; }
html[data-theme="dark"] .ap-signalements-toggle:hover { color: #e2e8f0; }
html[data-theme="dark"] .ap-signalements-pop { background-color: #1e293b; border: 1px solid #334155; }
html[data-theme="dark"] .ap-signalements-close { color: #94a3b8; }
html[data-theme="dark"] .ap-signalements-close:hover { background-color: #22304a; color: #e2e8f0; }
html[data-theme="dark"] .ap-signalement-row { background-color: #1a2740; border: 1px solid #334155; }
html[data-theme="dark"] .ap-signalement-machine { color: #e2e8f0; }
html[data-theme="dark"] .ap-signalement-count { color: #94a3b8; }
html[data-theme="dark"] .ap-signalement-desc { color: #e2e8f0; }
html[data-theme="dark"] .ap-signalement-etat { color: #94a3b8; }
html[data-theme="dark"] .ap-validite-row { background-color: #1a2740; border: 1px solid #334155; }
html[data-theme="dark"] .ap-validite-label { color: #e2e8f0; }
html[data-theme="dark"] .ap-validite-detail { color: #94a3b8; }
html[data-theme="dark"] .ap-card-white h3 { color: #e2e8f0; }
html[data-theme="dark"] .ap-signalement-detail { background-color: #1a2740; border: 1px solid #334155; }
html[data-theme="dark"] .ap-signalement-detail-item { border-bottom: 1px solid #334155; }
html[data-theme="dark"] .ap-signalement-detail-desc { color: #e2e8f0; }
html[data-theme="dark"] .ap-signalement-detail-etat { color: #94a3b8; }
html[data-theme="dark"] .ap-signalement-row:hover { background-color: #22304a; }
html[data-theme="dark"] .ap-modal-signalements-content { background-color: #1e293b; }
html[data-theme="dark"] .ap-modal-signalements-header h3 { color: #e2e8f0; }
html[data-theme="dark"] .ap-modal-signalements-close { color: #94a3b8; }
html[data-theme="dark"] .ap-modal-signalements-close:hover { background-color: #22304a; }
html[data-theme="dark"] .ap-modal-signalements-item { background-color: #1a2740; border: 1px solid #334155; }
html[data-theme="dark"] .ap-modal-signalements-desc { color: #e2e8f0; }
html[data-theme="dark"] .ap-modal-signalements-etat { color: #94a3b8; }
html[data-theme="dark"] .ap-sig-statut-btn { background-color: #1e293b; color: #cbd5e1; border: 1px solid #3b4d68; }
html[data-theme="dark"] .ap-sig-statut-btn:hover { color: #93c5fd; }
html[data-theme="dark"] #reservation-modal .modal-content { background-color: #1e293b; color: #e2e8f0; }
html[data-theme="dark"] .nr-title { color: #e2e8f0; }
html[data-theme="dark"] .nr-section-title { color: #94a3b8; }
html[data-theme="dark"] .nr-option { background-color: #1e293b; border: 1px solid #334155; }
html[data-theme="dark"] .nr-check { background-color: #1e293b; border: 2px solid #3b4d68; }
html[data-theme="dark"] .nr-option:has(input:checked) { background-color: #172742; }
html[data-theme="dark"] .nr-option .nr-label { color: #e2e8f0; }
html[data-theme="dark"] .nr-maintenance-banner { background-color: #1a2740; color: #e2e8f0; border: 1px solid #334155; }
html[data-theme="dark"] .nr-maintenance-banner:has(input:checked) { background-color: #251d45; color: #c4b5fd; }
html[data-theme="dark"] .nr-select { background-color: #1a2740; color: #e2e8f0; border: 1px solid #334155; }
html[data-theme="dark"] .nr-input { background-color: #1a2740; color: #e2e8f0; border: 1px solid #334155; }
html[data-theme="dark"] .nr-textarea { background-color: #1a2740; color: #e2e8f0; border: 1px solid #334155; }
html[data-theme="dark"] .nr-datetime input[type="datetime-local"] { background-color: #1a2740; color: #e2e8f0; border: 1px solid #334155; }
html[data-theme="dark"] .nr-select:focus { background-color: #1e293b; }
html[data-theme="dark"] .nr-input:focus { background-color: #1e293b; }
html[data-theme="dark"] .nr-textarea:focus { background-color: #1e293b; }
html[data-theme="dark"] .nr-datetime input[type="datetime-local"]:focus { background-color: #1e293b; }
html[data-theme="dark"] .nr-stepper { background-color: #1e293b; border: 1px solid #334155; }
html[data-theme="dark"] .nr-stepper button { background-color: #22304a; color: #cbd5e1; }
html[data-theme="dark"] .nr-stepper button:hover { background-color: #2b3b57; }
html[data-theme="dark"] .nr-stepper input { background-color: #1e293b; color: #e2e8f0; border-left: 1px solid #334155; border-right: 1px solid #334155; }
html[data-theme="dark"] .nr-hint { color: #94a3b8; }
html[data-theme="dark"] .nr-footer { border-top: 1px solid #334155; }
html[data-theme="dark"] .nr-btn-cancel { background-color: #1e293b; color: #cbd5e1; border: 1px solid #334155; }
html[data-theme="dark"] .nr-btn-cancel:hover { background-color: #22304a; }
html[data-theme="dark"] #messages-list { background-color: #1e293b; }
html[data-theme="dark"] .messages-tab { background-color: #1a2740; color: #cbd5e1; border: 1px solid #3b4d68; }
html[data-theme="dark"] .messages-tab:hover { background-color: #1c2a3e; }
html[data-theme="dark"] .messages-archive-notice { background-color: #40320f; color: #fbbf24; }
html[data-theme="dark"] .messages-filter-select { background-color: #1e293b; color: #e2e8f0; border: 1px solid #3b4d68; }
html[data-theme="dark"] .form-close-x { color: #f87171; }
html[data-theme="dark"] .form-close-x:hover { background-color: #47222a; color: #f87171; }
html[data-theme="dark"] .messages-selection-info { color: #94a3b8; }
html[data-theme="dark"] .messages-selectall-label { background-color: #1e293b; color: #e2e8f0; border: 1px solid #3b4d68; }
html[data-theme="dark"] .messages-selectall-label:hover { background-color: #22304a; border-color: #475569; }
html[data-theme="dark"] .messages-delete-btn { color: #f87171; }
html[data-theme="dark"] .messages-delete-btn:hover { background-color: #3d2228; }
html[data-theme="dark"] .message-thread-item { border-bottom: 1px solid #334155; }
html[data-theme="dark"] .message-thread-item:hover { background-color: #1a2740; }
html[data-theme="dark"] .message-thread-selected { background-color: #1a2a3f; }
html[data-theme="dark"] .message-star:hover { color: #fbbf24; }
html[data-theme="dark"] .message-star-on { color: #fbbf24; }
html[data-theme="dark"] .message-restore { color: #94a3b8; }
html[data-theme="dark"] .message-restore:hover { color: #e2e8f0; }
html[data-theme="dark"] .message-detail-card { background-color: #1e293b; }
html[data-theme="dark"] .message-detail-subject { color: #e2e8f0; }
html[data-theme="dark"] .message-detail-meta { border-bottom: 1px solid #334155; }
html[data-theme="dark"] .message-detail-sender { color: #e2e8f0; }
html[data-theme="dark"] .message-detail-dest { color: #94a3b8; }
html[data-theme="dark"] .message-thread-sender { color: #e2e8f0; }
html[data-theme="dark"] .message-thread-subject { color: #e2e8f0; }
html[data-theme="dark"] .message-thread-preview { color: #94a3b8; }
html[data-theme="dark"] .message-thread-date { color: #94a3b8; }
html[data-theme="dark"] .message-thread-unread { background-color: #1a2a3f; }
html[data-theme="dark"] .message-thread-unread:hover { background-color: #1a2a3f; }
html[data-theme="dark"] .message-thread-unread.message-thread-selected { background-color: #1c2c44; }
html[data-theme="dark"] .message-thread-unread .message-thread-sender { color: #e2e8f0; }
html[data-theme="dark"] .message-thread-unread .message-thread-subject { color: #e2e8f0; }
html[data-theme="dark"] .message-replyzone { border-top: 1px solid #334155; }
html[data-theme="dark"] .message-reply-dests { background-color: #1a2740; border: 1px solid #3b4d68; }
html[data-theme="dark"] .message-reply-dest { background-color: #1e293b; color: #e2e8f0; border: 1px solid #3b4d68; }
html[data-theme="dark"] .message-reply-dest:has(input:checked) { background-color: #16283f; color: #e2e8f0; }
html[data-theme="dark"] .message-thread-header { border-bottom: 1px solid #334155; }
html[data-theme="dark"] .message-thread-header h3 { color: #e2e8f0; }
html[data-theme="dark"] .message-thread-participants { color: #94a3b8; }
html[data-theme="dark"] .message-bubble { background-color: #1e293b; border: 1px solid #334155; }
html[data-theme="dark"] .message-bubble-me { background-color: #142c3f; }
html[data-theme="dark"] .message-bubble-header { color: #94a3b8; }
html[data-theme="dark"] .message-bubble-sender { color: #e2e8f0; }
html[data-theme="dark"] .message-bubble-body { color: #e2e8f0; }
html[data-theme="dark"] .message-thread-actions { border-top: 1px solid #334155; }
html[data-theme="dark"] .carnet-champ-auto { background-color: #22304a; color: #cbd5e1; }
html[data-theme="dark"] #carnet-form.carnet-form-jvio .form-group label { color: #e2e8f0; }
html[data-theme="dark"] #carnet-form.carnet-form-jvio .checkbox-option { background-color: #1e293b; color: #e2e8f0; border: 1px solid #3b4d68; }
html[data-theme="dark"] #carnet-form.carnet-form-jvio .decollage-label { color: #e2e8f0; }
html[data-theme="dark"] .bilan-docs-legende { background-color: #1a2740; color: #cbd5e1; border: 1px solid #334155; }
html[data-theme="dark"] .doc-vide { background-color: #3b4d68; }
html[data-theme="dark"] .bilan-docs-table th { border: 1px solid #334155; }
html[data-theme="dark"] .bilan-docs-table td { border: 1px solid #334155; }
html[data-theme="dark"] .bilan-docs-table tbody tr:nth-child(even) { background-color: #1a2740; }
html[data-theme="dark"] .bilan-txt { color: #e2e8f0; }
html[data-theme="dark"] .bilan-txt a { color: #e2e8f0; }
html[data-theme="dark"] .bilan-machine { background-color: #22304a; }
html[data-theme="dark"] .bilan-machine-btn { color: #e2e8f0; }
html[data-theme="dark"] .bilan-machine-btn:hover { background-color: #2b3b57; }
html[data-theme="dark"] .carnet-table td.horametre-ecart { color: #f87171; }
html[data-theme="dark"] .carnet-table tr.carnet-row-maintenance td { background-color: #3a2f14; color: #fbbf24; }
html[data-theme="dark"] .carnet-table tr.carnet-row-maintenance:hover td { background-color: #40320f; }
html[data-theme="dark"] .badge-gvv { background-color: #123c28; color: #4ade80; }
html[data-theme="dark"] .badge-gvv-bleu { background-color: #16283f; color: #93c5fd; }
html[data-theme="dark"] #carnet-gvv-statut { color: #4ade80; }
html[data-theme="dark"] .machine-cell { background-color: #1e293b; }
html[data-theme="dark"] .machine-col-header { background-color: #1e293b; }
html[data-theme="dark"] .cv-badge-club { background-color: #142c3f; color: #7dd3fc; }
html[data-theme="dark"] .cv-badge-manuel { background-color: #40320f; color: #fbbf24; }
html[data-theme="dark"] .cv-ligne-manuelle { background-color: #3a2f14; }
html[data-theme="dark"] .carnet-vol-table tbody tr.cv-ligne-manuelle:hover { background-color: #40320f; }
html[data-theme="dark"] .cv-totaux td { background-color: #22304a; border-top: 2px solid #3b4d68; }
html[data-theme="dark"] .cv-check-label { color: #e2e8f0; }
html[data-theme="dark"] #carnet-vol-pilote-select { background-color: #1e293b; color: #e2e8f0; border: 1px solid #3b4d68; }
html[data-theme="dark"] #carnet-vol-machine-select { background-color: #1e293b; color: #e2e8f0; border: 1px solid #3b4d68; }
html[data-theme="dark"] .docs-breadcrumb { background-color: #1a2740; color: #94a3b8; border: 1px solid #334155; }
html[data-theme="dark"] .docs-breadcrumb-item { color: #e2e8f0; }
html[data-theme="dark"] .docs-breadcrumb-lien { color: #7dd3fc; }
html[data-theme="dark"] .docs-breadcrumb-sep { color: #94a3b8; }
html[data-theme="dark"] .doc-tile:hover { background-color: #1c2a3e; }
html[data-theme="dark"] .doc-tile.dragover { background-color: #1c2a3e; }
html[data-theme="dark"] .doc-tile-del { color: #94a3b8; }
html[data-theme="dark"] .doc-tile-ren { color: #94a3b8; }
html[data-theme="dark"] .doc-tile-del:hover { background-color: #47222a; color: #f87171; }
html[data-theme="dark"] .doc-tile-ren:hover { background-color: #202a4a; color: #e2e8f0; }
html[data-theme="dark"] .doc-tile-nom { color: #e2e8f0; }
html[data-theme="dark"] #reservation-info-modal .info-vol-photo { background-color: #1e293b; }
html[data-theme="dark"] #membre-info-modal .info-vol-photo { background-color: #1e293b; }
html[data-theme="dark"] #reservation-info-modal .info-vol-ligne:nth-child(odd) { background-color: #22304a; }
html[data-theme="dark"] #membre-info-modal .info-vol-ligne:nth-child(odd) { background-color: #22304a; }
html[data-theme="dark"] #reservation-info-modal .info-vol-label { color: #94a3b8; }
html[data-theme="dark"] #membre-info-modal .info-vol-label { color: #94a3b8; }
html[data-theme="dark"] #reservation-info-modal .info-vol-valeur { color: #e2e8f0; }
html[data-theme="dark"] #membre-info-modal .info-vol-valeur { color: #e2e8f0; }
html[data-theme="dark"] #reservation-info-modal .info-vol-commentaires { background-color: #3a2f14; }
html[data-theme="dark"] #membre-info-modal .info-vol-commentaires { background-color: #3a2f14; }
html[data-theme="dark"] .inscrit-nom-lien:hover { color: #e2e8f0; }
html[data-theme="dark"] .formation-section-titre { color: #e2e8f0; }
html[data-theme="dark"] .formation-section-pli:hover { color: #93c5fd; }
html[data-theme="dark"] .formation-section-chevron { color: #94a3b8; }
html[data-theme="dark"] .formation-sub-titre { color: #e2e8f0; }
html[data-theme="dark"] .formation-carte { background-color: #1e293b; border: 1px solid #334155; }
html[data-theme="dark"] .formation-carte-suppr { background-color: #1e293b; color: #94a3b8; border: 1px solid #334155; }
html[data-theme="dark"] .formation-carte-suppr:hover { background-color: #47222a; color: #f87171; }
html[data-theme="dark"] .formation-carte-sub { color: #94a3b8; }
html[data-theme="dark"] .formation-vide { background-color: #1e293b; color: #94a3b8; border: 1px dashed #3b4d68; }
html[data-theme="dark"] .formation-progress { background-color: #2b3b57; }
html[data-theme="dark"] .formation-progress-txt { color: #e2e8f0; }
html[data-theme="dark"] .formation-entete { background-color: #1e293b; border: 1px solid #334155; }
html[data-theme="dark"] .formation-phase-titre { color: #e2e8f0; }
html[data-theme="dark"] .formation-doc { background-color: #1e293b; border: 1px solid #334155; }
html[data-theme="dark"] .catalogue-ligne:hover { background-color: #1a2740; }
html[data-theme="dark"] .catalogue-icon-btn { background-color: #1a2740; border: 1px solid #334155; }
html[data-theme="dark"] .catalogue-icon-btn:hover { background-color: #2b3b57; border-color: #3b4d68; }
html[data-theme="dark"] .catalogue-icon-danger { color: #f87171; }
html[data-theme="dark"] .catalogue-icon-danger:hover { background-color: #47222a; }
html[data-theme="dark"] .doc-fnom { color: #94a3b8; }
html[data-theme="dark"] .formation-doc-depot .doc-date-input { border: 1px solid #3b4d68; }
html[data-theme="dark"] .formation-lecon { background-color: #1e293b; border: 1px solid #334155; }
html[data-theme="dark"] .formation-lecon-validee { background-color: #123324; }
html[data-theme="dark"] .formation-item { color: #e2e8f0; }
html[data-theme="dark"] .formation-item-ok { color: #4ade80; }
html[data-theme="dark"] .formation-item-rep { background-color: #402812; color: #fdba74; }
html[data-theme="dark"] .formation-item-check:hover { background-color: #22304a; }
html[data-theme="dark"] .seance-arbre { background-color: #1e293b; border: 1px solid #334155; }
html[data-theme="dark"] .seance-arbre-titre { color: #94a3b8; }
html[data-theme="dark"] .seance-lecon-bloc > strong { color: #e2e8f0; }
html[data-theme="dark"] .seance-item-row:hover { background-color: #22304a; }
html[data-theme="dark"] .seance-item-libelle { color: #e2e8f0; }
html[data-theme="dark"] .seance-tristate { border: 1px solid #334155; }
html[data-theme="dark"] .ts-btn { background-color: #1e293b; color: #94a3b8; }
html[data-theme="dark"] .ts-btn + .ts-btn { border-left: 1px solid #334155; }
html[data-theme="dark"] .ts-btn.ts-on.ts-arefaire { background-color: #47222a; color: #f87171; }
html[data-theme="dark"] .ts-btn.ts-on.ts-encours { background-color: #40320f; color: #fbbf24; }
html[data-theme="dark"] .ts-btn.ts-on.ts-acquis { background-color: #123c28; color: #4ade80; }
html[data-theme="dark"] .seance-formulaire { background-color: #1a2740; border: 1px solid #334155; }
html[data-theme="dark"] .seance-edition-note { background-color: #40320f; color: #fbbf24; }
html[data-theme="dark"] .seance-form-sous-titre { color: #94a3b8; }
html[data-theme="dark"] .seance-formulaire label { color: #cbd5e1; }
html[data-theme="dark"] .seance-formulaire input { background-color: #1e293b; border: 1px solid #3b4d68; }
html[data-theme="dark"] .seance-formulaire select { background-color: #1e293b; border: 1px solid #3b4d68; }
html[data-theme="dark"] .seance-formulaire textarea { background-color: #1e293b; border: 1px solid #3b4d68; }
html[data-theme="dark"] .formation-item-encours { background-color: #36300f; color: #fbbf24; }
html[data-theme="dark"] .formation-col { background-color: #1e293b; border: 1px solid #334155; }
html[data-theme="dark"] .formation-col-titre { color: #e2e8f0; }
html[data-theme="dark"] .formation-recherche { background-color: #1e293b; border: 1px solid #3b4d68; }
html[data-theme="dark"] .module-date-input { border: 1px solid #3b4d68; }
html[data-theme="dark"] .mini-tete { color: #e2e8f0; }
html[data-theme="dark"] .mini-tete strong { color: #e2e8f0; }
html[data-theme="dark"] .mini-bar { background-color: #2b3b57; }
html[data-theme="dark"] .formation-seance { background-color: #1e293b; border: 1px solid #334155; }
html[data-theme="dark"] .seance-vol-orphelin { color: #fbbf24; }
html[data-theme="dark"] .formation-commentaire { background-color: #1a2740; color: #e2e8f0; }
html[data-theme="dark"] .formation-signatures { color: #94a3b8; }
html[data-theme="dark"] .formation-signatures .sig-lien { color: #4ade80; }
html[data-theme="dark"] .seance-items { background-color: #1a2740; border: 1px solid #334155; }
html[data-theme="dark"] .formation-lecon-edit { background-color: #1a2740; border: 1px solid #334155; }
html[data-theme="dark"] .seance-tout-label { color: #94a3b8; }
html[data-theme="dark"] .cv-badge-gvv { background-color: #16283f; color: #93c5fd; }
html[data-theme="dark"] .cv-date-filtre { color: #e2e8f0; border: 1px solid #3b4d68; }
html[data-theme="dark"] .aeral-rapport { background-color: #1e293b; border: 1px solid #334155; }
html[data-theme="dark"] .aeral-rapport h3 { color: #e2e8f0; }
html[data-theme="dark"] .aeral-rapport h4 { color: #e2e8f0; }
html[data-theme="dark"] .aeral-table td { border-bottom: 1px solid #334155; }
html[data-theme="dark"] .aeral-table th { border-bottom: 1px solid #334155; }
html[data-theme="dark"] .aeral-table tbody tr:nth-child(even) td { background-color: #1a2740; }
html[data-theme="dark"] .aeral-table tr:nth-child(even) td { background-color: #1a2740; }
html[data-theme="dark"] .aeral-table td[style*="border:none"] { background-color: rgb(30, 41, 59); }
html[data-theme="dark"] .aeral-table td[style*="border:none"] { background-color: #1e293b; }
html[data-theme="dark"] .aeral-table th[style*="border:none"] { background-color: rgb(30, 41, 59); }
html[data-theme="dark"] .aeral-table th[style*="border:none"] { background-color: #1e293b; }
html[data-theme="dark"] .aeral-table tr td strong { color: #e2e8f0; }
html[data-theme="dark"] .aeral-num { color: #e2e8f0; }
html[data-theme="dark"] .aeral-sub { color: #94a3b8; }
html[data-theme="dark"] .aeral-note { color: #94a3b8; }
html[data-theme="dark"] .bandeau-sgs { background-color: #402812; color: #fdba74; }
html[data-theme="dark"] .bandeau-sgs-sup { color: #fdba74; }
html[data-theme="dark"] .aeral-table td.aeral-hors { color: #cbd5e1; }
html[data-theme="dark"] .aeral-table tr td.aeral-hors { color: #cbd5e1; }
html[data-theme="dark"] .aeral-table tr:nth-child(even) td.aeral-hors { color: #cbd5e1; }
html[data-theme="dark"] #mobile-unsupported .mu-card { background-color: #1e293b; }
html[data-theme="dark"] #mobile-unsupported .mu-card h1 { color: #e2e8f0; }
html[data-theme="dark"] #mobile-unsupported .mu-card p { color: #cbd5e1; }
html[data-theme="dark"] #mobile-unsupported .mu-card a { color: #94a3b8; }
html[data-theme="dark"] .cv-date-tag { color: #e2e8f0; }
html[data-theme="dark"] #view-carnet-vol .carnet-header-controls .cv-date-filtre { background-color: #1e293b; color: #e2e8f0; border: 1px solid #3b4d68; }
html[data-theme="dark"] #carnet-form input[type="time"] { background-color: #1e293b; color: #e2e8f0; }
html[data-theme="dark"] .bug-report-box { background-color: #1e293b; }
html[data-theme="dark"] .bug-report-head h3 { color: #e2e8f0; }
html[data-theme="dark"] .bug-report-close { color: #94a3b8; }
html[data-theme="dark"] .bug-report-close:hover { color: #e2e8f0; }
html[data-theme="dark"] .bug-report-hint { color: #94a3b8; }
html[data-theme="dark"] #bug-report-desc { border: 1px solid #334155; }
html[data-theme="dark"] .bug-report-photo-btn { background-color: #1a2740; color: #e2e8f0; border: 1px solid #334155; }
html[data-theme="dark"] .bug-report-photo-btn:hover { background-color: #1c2a3e; }
html[data-theme="dark"] #bug-report-photo-nom { color: #94a3b8; }
html[data-theme="dark"] #bug-report-preview { border: 1px solid #334155; }
html[data-theme="dark"] .role-badge { background-color: #1c2a3e; color: #e2e8f0; }
html[data-theme="dark"] .btn-invit.invit-jamais { background-color: #402812; color: #fdba74; }
html[data-theme="dark"] .btn-invit.invit-jamais:hover { background-color: #45300f; }
html[data-theme="dark"] .role-check { background-color: #1a2740; color: #e2e8f0; border: 1px solid #334155; }
html[data-theme="dark"] .role-check:hover { border-color: #475569; }

/* ==========================================================================
   STYLES INLINE injectes par le JS — variantes d'ecriture.
   Le groupe neutre passe en premier : « #fff » matche aussi « #fff7ed »
   par sous-chaine, les pastels doivent avoir le dernier mot.
   ========================================================================== */
html[data-theme="dark"] [style*="background:rgb(245, 240, 225)"],
html[data-theme="dark"] [style*="background:#f5f0e1"],
html[data-theme="dark"] [style*="background: rgb(245, 240, 225)"],
html[data-theme="dark"] [style*="background: #f5f0e1"],
html[data-theme="dark"] [style*="background-color:rgb(245, 240, 225)"],
html[data-theme="dark"] [style*="background-color:#f5f0e1"],
html[data-theme="dark"] [style*="background-color: rgb(245, 240, 225)"],
html[data-theme="dark"] [style*="background-color: #f5f0e1"] {
    background-color: #0f172a !important;
}
html[data-theme="dark"] [style*="background:rgb(248, 250, 252)"],
html[data-theme="dark"] [style*="background:#f8fafc"],
html[data-theme="dark"] [style*="background: rgb(248, 250, 252)"],
html[data-theme="dark"] [style*="background: #f8fafc"],
html[data-theme="dark"] [style*="background-color:rgb(248, 250, 252)"],
html[data-theme="dark"] [style*="background-color:#f8fafc"],
html[data-theme="dark"] [style*="background-color: rgb(248, 250, 252)"],
html[data-theme="dark"] [style*="background-color: #f8fafc"] {
    background-color: #1a2740 !important;
}
html[data-theme="dark"] [style*="background:rgb(255, 255, 255)"],
html[data-theme="dark"] [style*="background:#fff"],
html[data-theme="dark"] [style*="background: rgb(255, 255, 255)"],
html[data-theme="dark"] [style*="background: #fff"],
html[data-theme="dark"] [style*="background-color:rgb(255, 255, 255)"],
html[data-theme="dark"] [style*="background-color:#fff"],
html[data-theme="dark"] [style*="background-color: rgb(255, 255, 255)"],
html[data-theme="dark"] [style*="background-color: #fff"],
html[data-theme="dark"] [style*="background:rgb(255, 255, 255)"],
html[data-theme="dark"] [style*="background:#ffffff"],
html[data-theme="dark"] [style*="background: rgb(255, 255, 255)"],
html[data-theme="dark"] [style*="background: #ffffff"],
html[data-theme="dark"] [style*="background-color:rgb(255, 255, 255)"],
html[data-theme="dark"] [style*="background-color:#ffffff"],
html[data-theme="dark"] [style*="background-color: rgb(255, 255, 255)"],
html[data-theme="dark"] [style*="background-color: #ffffff"],
html[data-theme="dark"] [style*="background:rgb(255, 255, 255)"],
html[data-theme="dark"] [style*="background:white"],
html[data-theme="dark"] [style*="background: rgb(255, 255, 255)"],
html[data-theme="dark"] [style*="background: white"],
html[data-theme="dark"] [style*="background-color:rgb(255, 255, 255)"],
html[data-theme="dark"] [style*="background-color:white"],
html[data-theme="dark"] [style*="background-color: rgb(255, 255, 255)"],
html[data-theme="dark"] [style*="background-color: white"] {
    background-color: #1e293b !important;
}
html[data-theme="dark"] [style*="background:rgb(241, 245, 249)"],
html[data-theme="dark"] [style*="background:#f1f5f9"],
html[data-theme="dark"] [style*="background: rgb(241, 245, 249)"],
html[data-theme="dark"] [style*="background: #f1f5f9"],
html[data-theme="dark"] [style*="background-color:rgb(241, 245, 249)"],
html[data-theme="dark"] [style*="background-color:#f1f5f9"],
html[data-theme="dark"] [style*="background-color: rgb(241, 245, 249)"],
html[data-theme="dark"] [style*="background-color: #f1f5f9"] {
    background-color: #22304a !important;
}
html[data-theme="dark"] [style*="background:rgb(226, 232, 240)"],
html[data-theme="dark"] [style*="background:#e2e8f0"],
html[data-theme="dark"] [style*="background: rgb(226, 232, 240)"],
html[data-theme="dark"] [style*="background: #e2e8f0"],
html[data-theme="dark"] [style*="background-color:rgb(226, 232, 240)"],
html[data-theme="dark"] [style*="background-color:#e2e8f0"],
html[data-theme="dark"] [style*="background-color: rgb(226, 232, 240)"],
html[data-theme="dark"] [style*="background-color: #e2e8f0"] {
    background-color: #2b3b57 !important;
}
html[data-theme="dark"] [style*="background:rgb(240, 253, 244)"],
html[data-theme="dark"] [style*="background:#f0fdf4"],
html[data-theme="dark"] [style*="background: rgb(240, 253, 244)"],
html[data-theme="dark"] [style*="background: #f0fdf4"],
html[data-theme="dark"] [style*="background-color:rgb(240, 253, 244)"],
html[data-theme="dark"] [style*="background-color:#f0fdf4"],
html[data-theme="dark"] [style*="background-color: rgb(240, 253, 244)"],
html[data-theme="dark"] [style*="background-color: #f0fdf4"] {
    background-color: #123324 !important;
}
html[data-theme="dark"] [style*="background:rgb(220, 252, 231)"],
html[data-theme="dark"] [style*="background:#dcfce7"],
html[data-theme="dark"] [style*="background: rgb(220, 252, 231)"],
html[data-theme="dark"] [style*="background: #dcfce7"],
html[data-theme="dark"] [style*="background-color:rgb(220, 252, 231)"],
html[data-theme="dark"] [style*="background-color:#dcfce7"],
html[data-theme="dark"] [style*="background-color: rgb(220, 252, 231)"],
html[data-theme="dark"] [style*="background-color: #dcfce7"] {
    background-color: #123c28 !important;
}
html[data-theme="dark"] [style*="background:rgb(219, 234, 254)"],
html[data-theme="dark"] [style*="background:#dbeafe"],
html[data-theme="dark"] [style*="background: rgb(219, 234, 254)"],
html[data-theme="dark"] [style*="background: #dbeafe"],
html[data-theme="dark"] [style*="background-color:rgb(219, 234, 254)"],
html[data-theme="dark"] [style*="background-color:#dbeafe"],
html[data-theme="dark"] [style*="background-color: rgb(219, 234, 254)"],
html[data-theme="dark"] [style*="background-color: #dbeafe"] {
    background-color: #16283f !important;
}
html[data-theme="dark"] [style*="background:rgb(239, 246, 255)"],
html[data-theme="dark"] [style*="background:#eff6ff"],
html[data-theme="dark"] [style*="background: rgb(239, 246, 255)"],
html[data-theme="dark"] [style*="background: #eff6ff"],
html[data-theme="dark"] [style*="background-color:rgb(239, 246, 255)"],
html[data-theme="dark"] [style*="background-color:#eff6ff"],
html[data-theme="dark"] [style*="background-color: rgb(239, 246, 255)"],
html[data-theme="dark"] [style*="background-color: #eff6ff"] {
    background-color: #172742 !important;
}
html[data-theme="dark"] [style*="background:rgb(255, 251, 235)"],
html[data-theme="dark"] [style*="background:#fffbeb"],
html[data-theme="dark"] [style*="background: rgb(255, 251, 235)"],
html[data-theme="dark"] [style*="background: #fffbeb"],
html[data-theme="dark"] [style*="background-color:rgb(255, 251, 235)"],
html[data-theme="dark"] [style*="background-color:#fffbeb"],
html[data-theme="dark"] [style*="background-color: rgb(255, 251, 235)"],
html[data-theme="dark"] [style*="background-color: #fffbeb"] {
    background-color: #3a2f14 !important;
}
html[data-theme="dark"] [style*="background:rgb(254, 242, 242)"],
html[data-theme="dark"] [style*="background:#fef2f2"],
html[data-theme="dark"] [style*="background: rgb(254, 242, 242)"],
html[data-theme="dark"] [style*="background: #fef2f2"],
html[data-theme="dark"] [style*="background-color:rgb(254, 242, 242)"],
html[data-theme="dark"] [style*="background-color:#fef2f2"],
html[data-theme="dark"] [style*="background-color: rgb(254, 242, 242)"],
html[data-theme="dark"] [style*="background-color: #fef2f2"] {
    background-color: #3d2228 !important;
}
html[data-theme="dark"] [style*="background:rgb(255, 247, 237)"],
html[data-theme="dark"] [style*="background:#fff7ed"],
html[data-theme="dark"] [style*="background: rgb(255, 247, 237)"],
html[data-theme="dark"] [style*="background: #fff7ed"],
html[data-theme="dark"] [style*="background-color:rgb(255, 247, 237)"],
html[data-theme="dark"] [style*="background-color:#fff7ed"],
html[data-theme="dark"] [style*="background-color: rgb(255, 247, 237)"],
html[data-theme="dark"] [style*="background-color: #fff7ed"] {
    background-color: #402812 !important;
}
html[data-theme="dark"] [style*="background:rgb(254, 243, 199)"],
html[data-theme="dark"] [style*="background:#fef3c7"],
html[data-theme="dark"] [style*="background: rgb(254, 243, 199)"],
html[data-theme="dark"] [style*="background: #fef3c7"],
html[data-theme="dark"] [style*="background-color:rgb(254, 243, 199)"],
html[data-theme="dark"] [style*="background-color:#fef3c7"],
html[data-theme="dark"] [style*="background-color: rgb(254, 243, 199)"],
html[data-theme="dark"] [style*="background-color: #fef3c7"] {
    background-color: #40320f !important;
}
html[data-theme="dark"] [style*="background:rgb(254, 226, 226)"],
html[data-theme="dark"] [style*="background:#fee2e2"],
html[data-theme="dark"] [style*="background: rgb(254, 226, 226)"],
html[data-theme="dark"] [style*="background: #fee2e2"],
html[data-theme="dark"] [style*="background-color:rgb(254, 226, 226)"],
html[data-theme="dark"] [style*="background-color:#fee2e2"],
html[data-theme="dark"] [style*="background-color: rgb(254, 226, 226)"],
html[data-theme="dark"] [style*="background-color: #fee2e2"] {
    background-color: #47222a !important;
}
html[data-theme="dark"] [style*=" color:rgb(23, 185, 120)"],
html[data-theme="dark"] [style*=" color:#17b978"],
html[data-theme="dark"] [style*=" color: rgb(23, 185, 120)"],
html[data-theme="dark"] [style*=" color: #17b978"],
html[data-theme="dark"] [style*=";color:rgb(23, 185, 120)"],
html[data-theme="dark"] [style*=";color:#17b978"],
html[data-theme="dark"] [style*=";color: rgb(23, 185, 120)"],
html[data-theme="dark"] [style*=";color: #17b978"],
html[data-theme="dark"] [style^="color:#17b978"],
html[data-theme="dark"] [style^="color: #17b978"] {
    color: #34d399 !important;
}
html[data-theme="dark"] [style*=" color:rgb(22, 101, 52)"],
html[data-theme="dark"] [style*=" color:#166534"],
html[data-theme="dark"] [style*=" color: rgb(22, 101, 52)"],
html[data-theme="dark"] [style*=" color: #166534"],
html[data-theme="dark"] [style*=";color:rgb(22, 101, 52)"],
html[data-theme="dark"] [style*=";color:#166534"],
html[data-theme="dark"] [style*=";color: rgb(22, 101, 52)"],
html[data-theme="dark"] [style*=";color: #166534"],
html[data-theme="dark"] [style^="color:#166534"],
html[data-theme="dark"] [style^="color: #166534"] {
    color: #4ade80 !important;
}
html[data-theme="dark"] [style*=" color:rgb(29, 78, 216)"],
html[data-theme="dark"] [style*=" color:#1d4ed8"],
html[data-theme="dark"] [style*=" color: rgb(29, 78, 216)"],
html[data-theme="dark"] [style*=" color: #1d4ed8"],
html[data-theme="dark"] [style*=";color:rgb(29, 78, 216)"],
html[data-theme="dark"] [style*=";color:#1d4ed8"],
html[data-theme="dark"] [style*=";color: rgb(29, 78, 216)"],
html[data-theme="dark"] [style*=";color: #1d4ed8"],
html[data-theme="dark"] [style^="color:#1d4ed8"],
html[data-theme="dark"] [style^="color: #1d4ed8"],
html[data-theme="dark"] [style*=" color:rgb(30, 64, 175)"],
html[data-theme="dark"] [style*=" color:#1e40af"],
html[data-theme="dark"] [style*=" color: rgb(30, 64, 175)"],
html[data-theme="dark"] [style*=" color: #1e40af"],
html[data-theme="dark"] [style*=";color:rgb(30, 64, 175)"],
html[data-theme="dark"] [style*=";color:#1e40af"],
html[data-theme="dark"] [style*=";color: rgb(30, 64, 175)"],
html[data-theme="dark"] [style*=";color: #1e40af"],
html[data-theme="dark"] [style^="color:#1e40af"],
html[data-theme="dark"] [style^="color: #1e40af"] {
    color: #93c5fd !important;
}
html[data-theme="dark"] [style*=" color:rgb(85, 85, 85)"],
html[data-theme="dark"] [style*=" color:#555"],
html[data-theme="dark"] [style*=" color: rgb(85, 85, 85)"],
html[data-theme="dark"] [style*=" color: #555"],
html[data-theme="dark"] [style*=";color:rgb(85, 85, 85)"],
html[data-theme="dark"] [style*=";color:#555"],
html[data-theme="dark"] [style*=";color: rgb(85, 85, 85)"],
html[data-theme="dark"] [style*=";color: #555"],
html[data-theme="dark"] [style^="color:#555"],
html[data-theme="dark"] [style^="color: #555"],
html[data-theme="dark"] [style*=" color:rgb(100, 116, 139)"],
html[data-theme="dark"] [style*=" color:#64748b"],
html[data-theme="dark"] [style*=" color: rgb(100, 116, 139)"],
html[data-theme="dark"] [style*=" color: #64748b"],
html[data-theme="dark"] [style*=";color:rgb(100, 116, 139)"],
html[data-theme="dark"] [style*=";color:#64748b"],
html[data-theme="dark"] [style*=";color: rgb(100, 116, 139)"],
html[data-theme="dark"] [style*=";color: #64748b"],
html[data-theme="dark"] [style^="color:#64748b"],
html[data-theme="dark"] [style^="color: #64748b"],
html[data-theme="dark"] [style*=" color:rgb(119, 119, 119)"],
html[data-theme="dark"] [style*=" color:#777"],
html[data-theme="dark"] [style*=" color: rgb(119, 119, 119)"],
html[data-theme="dark"] [style*=" color: #777"],
html[data-theme="dark"] [style*=";color:rgb(119, 119, 119)"],
html[data-theme="dark"] [style*=";color:#777"],
html[data-theme="dark"] [style*=";color: rgb(119, 119, 119)"],
html[data-theme="dark"] [style*=";color: #777"],
html[data-theme="dark"] [style^="color:#777"],
html[data-theme="dark"] [style^="color: #777"] {
    color: #94a3b8 !important;
}
html[data-theme="dark"] [style*=" color:rgb(71, 85, 105)"],
html[data-theme="dark"] [style*=" color:#475569"],
html[data-theme="dark"] [style*=" color: rgb(71, 85, 105)"],
html[data-theme="dark"] [style*=" color: #475569"],
html[data-theme="dark"] [style*=";color:rgb(71, 85, 105)"],
html[data-theme="dark"] [style*=";color:#475569"],
html[data-theme="dark"] [style*=";color: rgb(71, 85, 105)"],
html[data-theme="dark"] [style*=";color: #475569"],
html[data-theme="dark"] [style^="color:#475569"],
html[data-theme="dark"] [style^="color: #475569"] {
    color: #cbd5e1 !important;
}
html[data-theme="dark"] [style*=" color:rgb(15, 23, 42)"],
html[data-theme="dark"] [style*=" color:#0f172a"],
html[data-theme="dark"] [style*=" color: rgb(15, 23, 42)"],
html[data-theme="dark"] [style*=" color: #0f172a"],
html[data-theme="dark"] [style*=";color:rgb(15, 23, 42)"],
html[data-theme="dark"] [style*=";color:#0f172a"],
html[data-theme="dark"] [style*=";color: rgb(15, 23, 42)"],
html[data-theme="dark"] [style*=";color: #0f172a"],
html[data-theme="dark"] [style^="color:#0f172a"],
html[data-theme="dark"] [style^="color: #0f172a"],
html[data-theme="dark"] [style*=" color:rgb(30, 61, 89)"],
html[data-theme="dark"] [style*=" color:#1e3d59"],
html[data-theme="dark"] [style*=" color: rgb(30, 61, 89)"],
html[data-theme="dark"] [style*=" color: #1e3d59"],
html[data-theme="dark"] [style*=";color:rgb(30, 61, 89)"],
html[data-theme="dark"] [style*=";color:#1e3d59"],
html[data-theme="dark"] [style*=";color: rgb(30, 61, 89)"],
html[data-theme="dark"] [style*=";color: #1e3d59"],
html[data-theme="dark"] [style^="color:#1e3d59"],
html[data-theme="dark"] [style^="color: #1e3d59"],
html[data-theme="dark"] [style*=" color:rgb(51, 65, 85)"],
html[data-theme="dark"] [style*=" color:#334155"],
html[data-theme="dark"] [style*=" color: rgb(51, 65, 85)"],
html[data-theme="dark"] [style*=" color: #334155"],
html[data-theme="dark"] [style*=";color:rgb(51, 65, 85)"],
html[data-theme="dark"] [style*=";color:#334155"],
html[data-theme="dark"] [style*=";color: rgb(51, 65, 85)"],
html[data-theme="dark"] [style*=";color: #334155"],
html[data-theme="dark"] [style^="color:#334155"],
html[data-theme="dark"] [style^="color: #334155"] {
    color: #e2e8f0 !important;
}
html[data-theme="dark"] [style*=" color:rgb(185, 28, 28)"],
html[data-theme="dark"] [style*=" color:#b91c1c"],
html[data-theme="dark"] [style*=" color: rgb(185, 28, 28)"],
html[data-theme="dark"] [style*=" color: #b91c1c"],
html[data-theme="dark"] [style*=";color:rgb(185, 28, 28)"],
html[data-theme="dark"] [style*=";color:#b91c1c"],
html[data-theme="dark"] [style*=";color: rgb(185, 28, 28)"],
html[data-theme="dark"] [style*=";color: #b91c1c"],
html[data-theme="dark"] [style^="color:#b91c1c"],
html[data-theme="dark"] [style^="color: #b91c1c"],
html[data-theme="dark"] [style*=" color:rgb(220, 38, 38)"],
html[data-theme="dark"] [style*=" color:#dc2626"],
html[data-theme="dark"] [style*=" color: rgb(220, 38, 38)"],
html[data-theme="dark"] [style*=" color: #dc2626"],
html[data-theme="dark"] [style*=";color:rgb(220, 38, 38)"],
html[data-theme="dark"] [style*=";color:#dc2626"],
html[data-theme="dark"] [style*=";color: rgb(220, 38, 38)"],
html[data-theme="dark"] [style*=";color: #dc2626"],
html[data-theme="dark"] [style^="color:#dc2626"],
html[data-theme="dark"] [style^="color: #dc2626"],
html[data-theme="dark"] [style*=" color:rgb(239, 68, 68)"],
html[data-theme="dark"] [style*=" color:#ef4444"],
html[data-theme="dark"] [style*=" color: rgb(239, 68, 68)"],
html[data-theme="dark"] [style*=" color: #ef4444"],
html[data-theme="dark"] [style*=";color:rgb(239, 68, 68)"],
html[data-theme="dark"] [style*=";color:#ef4444"],
html[data-theme="dark"] [style*=";color: rgb(239, 68, 68)"],
html[data-theme="dark"] [style*=";color: #ef4444"],
html[data-theme="dark"] [style^="color:#ef4444"],
html[data-theme="dark"] [style^="color: #ef4444"] {
    color: #f87171 !important;
}
html[data-theme="dark"] [style*=" color:rgb(133, 77, 14)"],
html[data-theme="dark"] [style*=" color:#854d0e"],
html[data-theme="dark"] [style*=" color: rgb(133, 77, 14)"],
html[data-theme="dark"] [style*=" color: #854d0e"],
html[data-theme="dark"] [style*=";color:rgb(133, 77, 14)"],
html[data-theme="dark"] [style*=";color:#854d0e"],
html[data-theme="dark"] [style*=";color: rgb(133, 77, 14)"],
html[data-theme="dark"] [style*=";color: #854d0e"],
html[data-theme="dark"] [style^="color:#854d0e"],
html[data-theme="dark"] [style^="color: #854d0e"],
html[data-theme="dark"] [style*=" color:rgb(146, 64, 14)"],
html[data-theme="dark"] [style*=" color:#92400e"],
html[data-theme="dark"] [style*=" color: rgb(146, 64, 14)"],
html[data-theme="dark"] [style*=" color: #92400e"],
html[data-theme="dark"] [style*=";color:rgb(146, 64, 14)"],
html[data-theme="dark"] [style*=";color:#92400e"],
html[data-theme="dark"] [style*=";color: rgb(146, 64, 14)"],
html[data-theme="dark"] [style*=";color: #92400e"],
html[data-theme="dark"] [style^="color:#92400e"],
html[data-theme="dark"] [style^="color: #92400e"],
html[data-theme="dark"] [style*=" color:rgb(180, 83, 9)"],
html[data-theme="dark"] [style*=" color:#b45309"],
html[data-theme="dark"] [style*=" color: rgb(180, 83, 9)"],
html[data-theme="dark"] [style*=" color: #b45309"],
html[data-theme="dark"] [style*=";color:rgb(180, 83, 9)"],
html[data-theme="dark"] [style*=";color:#b45309"],
html[data-theme="dark"] [style*=";color: rgb(180, 83, 9)"],
html[data-theme="dark"] [style*=";color: #b45309"],
html[data-theme="dark"] [style^="color:#b45309"],
html[data-theme="dark"] [style^="color: #b45309"],
html[data-theme="dark"] [style*=" color:rgb(217, 119, 6)"],
html[data-theme="dark"] [style*=" color:#d97706"],
html[data-theme="dark"] [style*=" color: rgb(217, 119, 6)"],
html[data-theme="dark"] [style*=" color: #d97706"],
html[data-theme="dark"] [style*=";color:rgb(217, 119, 6)"],
html[data-theme="dark"] [style*=";color:#d97706"],
html[data-theme="dark"] [style*=";color: rgb(217, 119, 6)"],
html[data-theme="dark"] [style*=";color: #d97706"],
html[data-theme="dark"] [style^="color:#d97706"],
html[data-theme="dark"] [style^="color: #d97706"] {
    color: #fbbf24 !important;
}
html[data-theme="dark"] [style*=" color:rgb(153, 27, 27)"],
html[data-theme="dark"] [style*=" color:#991b1b"],
html[data-theme="dark"] [style*=" color: rgb(153, 27, 27)"],
html[data-theme="dark"] [style*=" color: #991b1b"],
html[data-theme="dark"] [style*=";color:rgb(153, 27, 27)"],
html[data-theme="dark"] [style*=";color:#991b1b"],
html[data-theme="dark"] [style*=";color: rgb(153, 27, 27)"],
html[data-theme="dark"] [style*=";color: #991b1b"],
html[data-theme="dark"] [style^="color:#991b1b"],
html[data-theme="dark"] [style^="color: #991b1b"] {
    color: #fca5a5 !important;
}
html[data-theme="dark"] [style*=" color:rgb(154, 52, 18)"],
html[data-theme="dark"] [style*=" color:#9a3412"],
html[data-theme="dark"] [style*=" color: rgb(154, 52, 18)"],
html[data-theme="dark"] [style*=" color: #9a3412"],
html[data-theme="dark"] [style*=";color:rgb(154, 52, 18)"],
html[data-theme="dark"] [style*=";color:#9a3412"],
html[data-theme="dark"] [style*=";color: rgb(154, 52, 18)"],
html[data-theme="dark"] [style*=";color: #9a3412"],
html[data-theme="dark"] [style^="color:#9a3412"],
html[data-theme="dark"] [style^="color: #9a3412"],
html[data-theme="dark"] [style*=" color:rgb(194, 65, 12)"],
html[data-theme="dark"] [style*=" color:#c2410c"],
html[data-theme="dark"] [style*=" color: rgb(194, 65, 12)"],
html[data-theme="dark"] [style*=" color: #c2410c"],
html[data-theme="dark"] [style*=";color:rgb(194, 65, 12)"],
html[data-theme="dark"] [style*=";color:#c2410c"],
html[data-theme="dark"] [style*=";color: rgb(194, 65, 12)"],
html[data-theme="dark"] [style*=";color: #c2410c"],
html[data-theme="dark"] [style^="color:#c2410c"],
html[data-theme="dark"] [style^="color: #c2410c"] {
    color: #fdba74 !important;
}
html[data-theme="dark"] [style*="solid rgb(148, 163, 184)"],
html[data-theme="dark"] [style*="solid #94a3b8"],
html[data-theme="dark"] [style*="dashed rgb(148, 163, 184)"],
html[data-theme="dark"] [style*="dashed #94a3b8"],
html[data-theme="dark"] [style*="dotted rgb(148, 163, 184)"],
html[data-theme="dark"] [style*="dotted #94a3b8"],
html[data-theme="dark"] [style*="solid rgb(203, 213, 225)"],
html[data-theme="dark"] [style*="solid #cbd5e1"],
html[data-theme="dark"] [style*="dashed rgb(203, 213, 225)"],
html[data-theme="dark"] [style*="dashed #cbd5e1"],
html[data-theme="dark"] [style*="dotted rgb(203, 213, 225)"],
html[data-theme="dark"] [style*="dotted #cbd5e1"],
html[data-theme="dark"] [style*="solid rgb(226, 232, 240)"],
html[data-theme="dark"] [style*="solid #e2e8f0"],
html[data-theme="dark"] [style*="dashed rgb(226, 232, 240)"],
html[data-theme="dark"] [style*="dashed #e2e8f0"],
html[data-theme="dark"] [style*="dotted rgb(226, 232, 240)"],
html[data-theme="dark"] [style*="dotted #e2e8f0"],
html[data-theme="dark"] [style*="solid rgb(245, 240, 225)"],
html[data-theme="dark"] [style*="solid #f5f0e1"],
html[data-theme="dark"] [style*="dashed rgb(245, 240, 225)"],
html[data-theme="dark"] [style*="dashed #f5f0e1"],
html[data-theme="dark"] [style*="dotted rgb(245, 240, 225)"],
html[data-theme="dark"] [style*="dotted #f5f0e1"] {
    border-color: #334155 !important;
}

/* ==========================================================================
   RETOUCHES MANUELLES
   ========================================================================== */
/* Planning */
html[data-theme="dark"] .hours-grid-background { background-color: rgba(15, 23, 42, 0.6); }
html[data-theme="dark"] .grid-hour-block { border-right-color: #1e293b; }
html[data-theme="dark"] .timeline-row, html[data-theme="dark"] .timeline-header { border-bottom-color: #334155; }
html[data-theme="dark"] .timeline-row.vi-planeur-row { background-color: rgba(139, 92, 246, 0.08); }
html[data-theme="dark"] .reservation-bar { box-shadow: 0 2px 6px rgba(0,0,0,0.4); }
html[data-theme="dark"] .maintenance-bar { opacity: 0.9; }
html[data-theme="dark"] .night-civil { background: rgba(70, 110, 160, 0.22); }
/* Popups positionnes */
html[data-theme="dark"] .sig-pop, html[data-theme="dark"] .legende-popup, html[data-theme="dark"] .tooltip-box,
html[data-theme="dark"] .ap-signalements-pop, html[data-theme="dark"] .notifications-panel {
    background-color: #1e293b; color: #e2e8f0; border-color: #334155;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
/* Pastilles : garder la teinte, adoucir */
html[data-theme="dark"] .pastille, html[data-theme="dark"] .ap-pastille { filter: brightness(0.9); }
/* Liens dans le contenu */
html[data-theme="dark"] .view-section a { color: #7dd3fc; }
html[data-theme="dark"] .view-section a:hover { color: #bae6fd; }
/* Images photos des modales : leger voile */
html[data-theme="dark"] .info-vol-photo img { filter: brightness(0.92); }
/* Loader plein ecran (overlay blanc translucide -> sombre) */
html[data-theme="dark"] #message-loader { background: rgba(2, 6, 23, 0.92) !important; }
/* Legende planning : raye clair -> raye sombre */
html[data-theme="dark"] .legende-pastille[style*="repeating-linear-gradient(45deg, rgb(226, 232, 240)"],
html[data-theme="dark"] .legende-pastille[style*="repeating-linear-gradient(45deg, #e2e8f0"] {
    background: repeating-linear-gradient(45deg, #334155, #334155 4px, #1e293b 4px, #1e293b 8px) !important;
}
/* Zones de nuit — le motif clair (rayures rgba(240,244,248)) devient
   illisible sur fond sombre : hachures foncees, bandes civil/aero
   conservees visuellement distinctes. */
html[data-theme="dark"] .night-aero {
    background: repeating-linear-gradient(45deg,
        rgba(10, 16, 28, 0.5), rgba(10, 16, 28, 0.5) 10px,
        rgba(32, 48, 74, 0.45) 10px, rgba(32, 48, 74, 0.45) 20px) !important;
    border-color: rgba(120, 160, 210, 0.4) !important;
}
html[data-theme="dark"] .night-overlay-container div[style*="rgba(240, 244, 248, 0.4)"],
html[data-theme="dark"] .legende-pastille[style*="rgba(240, 244, 248, 0.4)"] {
    background: repeating-linear-gradient(-45deg,
        rgba(10, 16, 28, 0.5), rgba(10, 16, 28, 0.5) 6px,
        rgba(32, 48, 74, 0.45) 6px, rgba(32, 48, 74, 0.45) 12px) !important;
}
html[data-theme="dark"] .night-overlay-container div[style*="rgba(186, 215, 233, 0.45)"],
html[data-theme="dark"] .legende-pastille[style*="rgba(186, 215, 233, 0.45)"] {
    background: repeating-linear-gradient(-45deg,
        rgba(96, 130, 170, 0.30), rgba(96, 130, 170, 0.30) 6px,
        rgba(25, 38, 60, 0.5) 6px, rgba(25, 38, 60, 0.5) 12px) !important;
}
html[data-theme="dark"] .night-overlay-container div[style*="1px dashed rgb(30, 61, 89)"],
html[data-theme="dark"] .night-overlay-container div[style*="1px dashed #1e3d59"] {
    border-color: #64748b !important;
}
/* Grille horaire du previsionnel : filets de separation adoucis */
html[data-theme="dark"] [style*="border-right: 1px solid rgba(203, 213, 225, 0.4)"] {
    border-right-color: rgba(51, 65, 85, 0.7) !important;
}
/* Previsionnel : lignes de jour au meme fond que la grille du planning */
html[data-theme="dark"] #suivi-table-body [style*="background: rgb(255, 255, 255)"],
html[data-theme="dark"] #suivi-table-body [style*="background: #ffffff"],
html[data-theme="dark"] #suivi-table-body [style*="background:rgb(255, 255, 255)"],
html[data-theme="dark"] #suivi-table-body [style*="background:#ffffff"] {
    background-color: #16202f !important;
}
/* Navigation date : fond neutre + bordure pour la detacher du bandeau */
html[data-theme="dark"] #container-date-suivi,
html[data-theme="dark"] .date-navigation {
    background-color: #1e293b !important;
    border: 1px solid #334155;
}
/* Comptes : icones pastilles translucides lisibles sur sombre */
html[data-theme="dark"] .solde-icon, html[data-theme="dark"] .depense-icon,
html[data-theme="dark"] .recette-icon, html[data-theme="dark"] .gvv-icon { filter: brightness(1.15); }

/* --- Bouton theme : bas droite, au-dessus du bouton bug --- */
#theme-toggle {
    position: fixed; right: 18px; bottom: 78px; width: 48px; height: 48px;
    border-radius: 50%; border: none; background: #1e3d59; color: #fff;
    font-size: 22px; cursor: pointer; z-index: 50000;
    box-shadow: 0 4px 14px rgba(0,0,0,0.3);
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s, transform 0.15s ease;
}
#theme-toggle:hover { background: #2c5282; transform: scale(1.08); }
html[data-theme="dark"] #theme-toggle { background: #334155; }
html[data-theme="dark"] #theme-toggle:hover { background: #475569; }

