/* Tema escuro do Frotas. GERADO por scripts/gerar_tema_escuro.py a partir do tema claro
   (panel-layout.css, parte de trabalho de brand-tmzx.css e appeal-form.css). Nao edite a mao:
   mude o tema claro e rode  python scripts/gerar_tema_escuro.py
   Vale quando a pessoa escolhe o tema escuro (html[data-theme="dark"]); o claro continua o padrao. */

html[data-theme="dark"] { color-scheme: dark; }
html[data-theme="dark"] #shell, html[data-theme="dark"] .modal, html[data-theme="dark"] .drawer, html[data-theme="dark"] .appeal-dialog { --ink: #e3eaf4; --muted: #a5b0c0; --line: #3c4450; --canvas: #191d23; --white: #212733; --green: #80aaea; --green-pale: #131a25; --amber: #f4c98b; --amber-pale: #281f0f; --red: #d97575; --red-pale: #281313; --tm-navy: #c7d8ee; --tm-navy-2: #bacee4; --tm-slate: #98a3b3; --tm-slate-300: #444d58; --tm-link: #80aaea; --tm-link-soft: #131b27; --tm-amber-soft: #24200e; --tm-amber-text: #f9e6b3; }
html[data-theme="dark"] #shell .dashboard-alert { background: #152b47; }
html[data-theme="dark"] .appeal-header { background: linear-gradient(120deg, var(--tm-ground), #152b47); }

/* ---- frontend/panel-layout.css ---- */
html[data-theme="dark"] #shell { background: var(--canvas); color: var(--ink); }
html[data-theme="dark"] body:has(#shell:not(.hidden)) { background: #191d23; }
html[data-theme="dark"] #shell .topbar-avatar { background: #16509b; color: #fff; }
html[data-theme="dark"] #shell .main-area { background: #191d23; }
html[data-theme="dark"] #shell .topbar { background: #212733; border-color: #3c4450; }
html[data-theme="dark"] #shell .topbar-search { border: 1px solid #3c4450; background: #191d23; color: #9ca8b9; }
html[data-theme="dark"] #shell .topbar-search input { border: 0; outline: none; background: transparent; color: #c7d0e2; }
html[data-theme="dark"] #shell .topbar-search input::placeholder { color: #97a3b3; }
html[data-theme="dark"] #shell .tenant-pill { background: #131a25; color: #92baef; }
html[data-theme="dark"] #shell .icon-button { background: transparent; border: 0; color: #a5b0c0; }
html[data-theme="dark"] #shell .topbar-avatar { border: 0; }
html[data-theme="dark"] #shell .account-menu { background: #212733; border: 1px solid #3c4450; box-shadow: 0 16px 38px #0b111b24; }
html[data-theme="dark"] #shell .account-menu button { border: 0; background: none; color: #c7d0e2; }
html[data-theme="dark"] #shell .account-menu button:hover { background: #191d23; }
html[data-theme="dark"] #shell .page-intro, html[data-theme="dark"] #shell #content.dashboard-view > .page-intro, html[data-theme="dark"] #shell #content.portal-view > .page-intro { background: none; border: 0; box-shadow: none; }
html[data-theme="dark"] #shell .page-intro h1, html[data-theme="dark"] #shell #content.dashboard-view > .page-intro h1, html[data-theme="dark"] #shell #content.portal-view > .page-intro h1 { color: #e3eaf4; }
html[data-theme="dark"] #shell .page-intro p, html[data-theme="dark"] #shell #content.dashboard-view > .page-intro p, html[data-theme="dark"] #shell #content.portal-view > .page-intro p, html[data-theme="dark"] #shell .panel-head p { color: #a5b0c0; }
html[data-theme="dark"] #shell .button { box-shadow: none; }
html[data-theme="dark"] #shell .button-primary { background: #16509b; color: #fff; }
html[data-theme="dark"] #shell .button-primary:hover { background: #0f3d78; }
html[data-theme="dark"] #shell .button-secondary { background: #212733; border-color: #3c4450; color: #c7d0e2; }
html[data-theme="dark"] #shell .button-secondary:hover { background: #161d27; }
html[data-theme="dark"] #shell .button-danger { background: #212733; border-color: #5b3535; color: #d97575; }
html[data-theme="dark"] #shell .stat-card, html[data-theme="dark"] #shell .panel, html[data-theme="dark"] #shell .info-card { background: #212733; border: 1px solid #3c4450; box-shadow: none; }
html[data-theme="dark"] #shell .stat-label, html[data-theme="dark"] #shell .stat-top, html[data-theme="dark"] #shell .detail-stat span { color: #a5b0c0; }
html[data-theme="dark"] #shell .stat-value { color: #e3eaf4; }
html[data-theme="dark"] #shell .stat-bottom { color: #a5b0c0; }
html[data-theme="dark"] #shell .stat-bottom strong { color: #92baef; }
html[data-theme="dark"] #shell .panel-head { border-color: #3c4450; }
html[data-theme="dark"] #shell .panel-head h2, html[data-theme="dark"] #shell .info-card h3, html[data-theme="dark"] #shell .empty h3, html[data-theme="dark"] #shell .detail-section h3 { color: #e3eaf4; }
html[data-theme="dark"] #shell .link-button, html[data-theme="dark"] #shell .row-button, html[data-theme="dark"] #shell .info-card button { color: #92baef; }
html[data-theme="dark"] #shell th { background: #212733; border-bottom: 1px solid #3c4450; color: #a5b0c0; }
html[data-theme="dark"] #shell td { border-color: #3a414b; color: #c7d0e2; }
html[data-theme="dark"] #shell td strong, html[data-theme="dark"] #shell .info-card .card-meta strong { color: #e3eaf4; }
html[data-theme="dark"] #shell tbody tr:hover { background: #171d28; }
html[data-theme="dark"] #shell .plate { background: transparent; border: 0; color: #e3eaf4; }
html[data-theme="dark"] #shell .badge { background: #191c20; color: #a5b0c0; }
html[data-theme="dark"] #shell .badge.green { background: #16201b; color: #9de9c8; }
html[data-theme="dark"] #shell .badge.amber { background: #281f0f; color: #f4c98b; }
html[data-theme="dark"] #shell .badge.red { background: #281313; color: #d97575; }
html[data-theme="dark"] #shell .mini-summary { color: #c7d0e2; }
html[data-theme="dark"] #shell .summary-line span, html[data-theme="dark"] #shell .info-card p, html[data-theme="dark"] #shell .info-card .card-meta { color: #a5b0c0; }
html[data-theme="dark"] #shell .progress-track { background: #191c20; }
html[data-theme="dark"] #shell .progress-fill { background: #16509b; }
html[data-theme="dark"] #shell .progress-fill.blue { background: #16509b; }
html[data-theme="dark"] #shell .progress-fill.amber { background: #f2a33e; }
html[data-theme="dark"] #shell .quick-links { border-color: #3c4450; }
html[data-theme="dark"] #shell .quick-links button { background: #191d23; color: #c7d0e2; }
html[data-theme="dark"] #shell .quick-links button span { color: #92baef; }
html[data-theme="dark"] #shell .info-card .card-meta { border-color: #3c4450; }
html[data-theme="dark"] #shell .search input, html[data-theme="dark"] #shell .toolbar select { background: #212733; border-color: #3c4450; color: #c7d0e2; }
html[data-theme="dark"] #shell .search input::placeholder { color: #97a3b3; }
html[data-theme="dark"] #shell .search::before { color: #97a3b3; }
html[data-theme="dark"] #shell .empty { color: #a5b0c0; }
html[data-theme="dark"] #shell .empty-icon { background: #131a25; color: #92baef; }
html[data-theme="dark"] #shell .guide { color: #a5b0c0; }
html[data-theme="dark"] #shell .guide strong { color: #e3eaf4; }
html[data-theme="dark"] #shell.role-driver { box-shadow: 0 16px 50px #0b111b16; }
html[data-theme="dark"] #shell.role-driver .portal-priority { border: 1px solid #3c4450; border-left: 5px solid #c93a3a; background: #212733; }
html[data-theme="dark"] #shell.role-driver .portal-priority small { color: #a5b0c0; }
html[data-theme="dark"] #shell.role-driver .portal-priority strong { color: #e3eaf4; }
html[data-theme="dark"] #shell.role-driver .portal-priority span { color: #a5b0c0; }
html[data-theme="dark"] #shell.role-driver .portal-case-card { border: 1px solid #3c4450; border-left: 4px solid #f2a33e; background: #212733; color: #e3eaf4; }
html[data-theme="dark"] #shell.role-driver .portal-case-card:hover { background: #171d28; }
html[data-theme="dark"] #shell.role-driver .portal-case-card > span { color: #a5b0c0; }
html[data-theme="dark"] #shell.role-driver .portal-case-card small { color: #f4c98b; }
html[data-theme="dark"] #shell.role-driver .portal-bottom-nav { background: #212733; border-top: 1px solid #3c4450; }
html[data-theme="dark"] #shell.role-driver .portal-bottom-nav button { border: 0; background: none; color: #a5b0c0; }
html[data-theme="dark"] #shell.role-driver .portal-bottom-nav button.active { color: #92baef; }
html[data-theme="dark"] .modal, html[data-theme="dark"] .drawer { background: #212733; color: #e3eaf4; border: 1px solid #3c4450; }
html[data-theme="dark"] .modal-header, html[data-theme="dark"] .drawer-hero, html[data-theme="dark"] .detail-section { border-color: #3c4450; }
html[data-theme="dark"] .modal-header h2, html[data-theme="dark"] .drawer-hero h2, html[data-theme="dark"] .detail-section h3 { color: #e3eaf4; }
html[data-theme="dark"] .drawer-hero { background: #191d23; }
html[data-theme="dark"] .drawer-hero p, html[data-theme="dark"] .timeline-item p, html[data-theme="dark"] .timeline-item span, html[data-theme="dark"] .doc-item small { color: #a5b0c0; }
html[data-theme="dark"] .close-button { background: #191c20; color: #a5b0c0; }
html[data-theme="dark"] .modal .field label, html[data-theme="dark"] .drawer .field label { color: #c7d0e2; }
html[data-theme="dark"] .modal .field small, html[data-theme="dark"] .drawer .field small { color: #a5b0c0; }
html[data-theme="dark"] .modal .field input, html[data-theme="dark"] .modal .field select, html[data-theme="dark"] .modal .field textarea, html[data-theme="dark"] .drawer .field input, html[data-theme="dark"] .drawer .field select, html[data-theme="dark"] .drawer .field textarea { background: #212733; border-color: #3c4450; color: #e3eaf4; }
html[data-theme="dark"] .modal .field input:focus, html[data-theme="dark"] .modal .field select:focus, html[data-theme="dark"] .modal .field textarea:focus, html[data-theme="dark"] .drawer .field input:focus, html[data-theme="dark"] .drawer .field select:focus, html[data-theme="dark"] .drawer .field textarea:focus { border-color: #16509b; box-shadow: 0 0 0 3px #2b3d5b; }
html[data-theme="dark"] .modal .form-note, html[data-theme="dark"] .drawer .form-note { background: #131a25; border-color: #16509b; color: #b4c5e3; }
html[data-theme="dark"] .modal .form-note .guide, html[data-theme="dark"] .drawer .form-note .guide { color: #b4c5e3; }
html[data-theme="dark"] .modal .form-note .guide strong, html[data-theme="dark"] .drawer .form-note .guide strong { color: #e3eaf4; }
html[data-theme="dark"] .modal .button-primary, html[data-theme="dark"] .drawer .button-primary { background: #16509b; color: #fff; }
html[data-theme="dark"] .modal .button-secondary, html[data-theme="dark"] .drawer .button-secondary { background: #212733; border-color: #3c4450; color: #c7d0e2; }
html[data-theme="dark"] .detail-stat, html[data-theme="dark"] .draft-preview { background: #191d23; border-color: #3c4450; color: #c7d0e2; }
html[data-theme="dark"] .detail-stat strong, html[data-theme="dark"] .guide strong { color: #e3eaf4; }
html[data-theme="dark"] .timeline { border-color: #334563; }
html[data-theme="dark"] .timeline-item::before { background: #16509b; box-shadow: 0 0 0 2px #334563; }
html[data-theme="dark"] .doc-item { border-color: #3c4450; }
html[data-theme="dark"] .doc-item a { color: #92baef; }
html[data-theme="dark"] .alert-strip { background: #281f0f; border-color: #745b32; color: #f9dfb3; }

/* ---- frontend/appeal-form.css ---- */
html[data-theme="dark"] .appeal-dialog { border: 1px solid #414d59; color: #c4d7e7; background: #171e26; box-shadow: 0 30px 110px #06142866; }
html[data-theme="dark"] .appeal-steps { background: #212733; border-bottom: 1px solid #3c4855; color: #96a3b0; }
html[data-theme="dark"] .appeal-steps b { background: #181d22; }
html[data-theme="dark"] .appeal-steps [aria-current] { color: #8ad1f1; }
html[data-theme="dark"] .appeal-steps [aria-current] b { background: #147aa7; color: #fff; }
html[data-theme="dark"] .appeal-section-heading p, html[data-theme="dark"] .appeal-section>p { color: #a3b3c2; }
html[data-theme="dark"] .appeal-count { border: 1px solid #3b4a55; background: #212733; }
html[data-theme="dark"] .appeal-search { border: 1px solid #46525d; background: #212733; color: #c4d7e7; }
html[data-theme="dark"] .appeal-search:focus { outline: 3px solid rgba(59, 97, 111, 0.376); border-color: #187a9b; }
html[data-theme="dark"] .appeal-dialog .guide { color: #b2bdce; }
html[data-theme="dark"] .appeal-dialog .guide strong { color: #e3eaf4; }
html[data-theme="dark"] .appeal-dialog .row-button { color: #92baef; }
html[data-theme="dark"] .appeal-resource { border: 1px solid #3d4955; color: #bed4e4; background: #212733; }
html[data-theme="dark"] .appeal-resource:hover, html[data-theme="dark"] .appeal-resource:focus-visible { border-color: #1587b0; box-shadow: 0 3px 14px #12384e12; outline: 2px solid #385b66; }
html[data-theme="dark"] .appeal-resource-meta { color: #9daebb; }
html[data-theme="dark"] .appeal-resource-link { color: #90ddf3; }
html[data-theme="dark"] .appeal-dialog fieldset { border: 0; }
html[data-theme="dark"] .appeal-section { border: 1px solid #3c4853; background: #212733; }
html[data-theme="dark"] .appeal-dialog .field label { color: #bccfdf; }
html[data-theme="dark"] .appeal-dialog .field input, html[data-theme="dark"] .appeal-dialog .field textarea, html[data-theme="dark"] .appeal-detail textarea { border: 1px solid #44505b; background: #212733; color: #c5d7e6; }
html[data-theme="dark"] .appeal-dialog input:focus-visible, html[data-theme="dark"] .appeal-dialog textarea:focus-visible { outline: 3px solid #8bcce855; border-color: #127ba5; }
html[data-theme="dark"] .appeal-dialog input:disabled, html[data-theme="dark"] .appeal-dialog textarea:disabled { background: #191e23; color: #a7b4c0; }
html[data-theme="dark"] .appeal-questions .appeal-question { border-top: 1px solid #394651; }
html[data-theme="dark"] .appeal-hint { color: #9dabb7; }
html[data-theme="dark"] .appeal-option { border: 1px solid #3b4753; }
html[data-theme="dark"] .appeal-option:has(input:checked) { border-color: #74b9d1; background: #152227; }
html[data-theme="dark"] .appeal-option .appeal-detail { color: #a9bdcd; }
html[data-theme="dark"] .appeal-footer { background: #212733; border-top: 1px solid #3b4957; box-shadow: 0 -6px 18px #1b3a5010; }
html[data-theme="dark"] .appeal-footer p { color: #9fb0bd; }
html[data-theme="dark"] .appeal-footer .is-error { color: #db8992; }
html[data-theme="dark"] .appeal-notice { background: #161f25; border: 1px solid #3c505c; color: #b2cad9; }
html[data-theme="dark"] .appeal-loading { color: #9dafbc; }
html[data-theme="dark"] .appeal-summary { background: #212733; border: 1px solid #3c4853; }
html[data-theme="dark"] .appeal-summary dt { color: #9aaab6; }
html[data-theme="dark"] .appeal-review li { background: #212733; border-bottom: 1px solid #384653; }
html[data-theme="dark"] .appeal-review strong::before { color: #9aabb7; }
html[data-theme="dark"] .appeal-review p { color: #acbdca; }
html[data-theme="dark"] .appeal-review .appeal-unanswered { color: #edc392; }
html[data-theme="dark"] .appeal-confirm { border: 1px solid #3e5660; background: #162327; }
html[data-theme="dark"] .appeal-complete-icon { background: #151e1a; color: #a4e3cf; }
@media(max-width:700px) {
  html[data-theme="dark"] .appeal-dialog { border: 0; }
}
html[data-theme="dark"] .appeal-documents h4 { color: #c7d4e4; }
html[data-theme="dark"] .appeal-documents ul { background: #212733; border: 1px solid #3c4853; }
html[data-theme="dark"] .appeal-documents li { border-top: 1px solid #384551; }
html[data-theme="dark"] .appeal-documents li:first-child { border-top: 0; }
html[data-theme="dark"] .appeal-documents a { color: #92baef; }
html[data-theme="dark"] .appeal-documents span { color: #a7b4c0; }

/* ---- frontend/brand-tmzx.css ---- */
html[data-theme="dark"] #shell .topbar-avatar { background: var(--tm-amber); color: var(--tm-amber-on); }
html[data-theme="dark"] #shell .topbar { background: #212733; border-color: #3b4451; }
html[data-theme="dark"] #shell .topbar-search { border-color: #3b4451; background: #191d23; }
html[data-theme="dark"] #shell .topbar-search input:focus { outline: none; }
html[data-theme="dark"] #shell .topbar-search:focus-within { border-color: var(--tm-gold); box-shadow: var(--tm-focus); background: #212733; }
html[data-theme="dark"] #shell .tenant-pill { background: var(--tm-amber-soft); color: var(--tm-amber-text); }
html[data-theme="dark"] #shell .icon-button:hover { color: var(--tm-navy); }
html[data-theme="dark"] #shell .page-intro h1, html[data-theme="dark"] #shell #content.dashboard-view > .page-intro h1, html[data-theme="dark"] #shell #content.portal-view > .page-intro h1 { color: var(--tm-navy); }
html[data-theme="dark"] #shell .button:focus-visible { outline: none; box-shadow: var(--tm-focus); }
html[data-theme="dark"] #shell .button-primary { background: var(--tm-amber); color: var(--tm-amber-on); }
html[data-theme="dark"] #shell .button-primary:hover { background: var(--tm-amber-hover); }
html[data-theme="dark"] #shell .button-secondary { background: #212733; border-color: var(--tm-slate-300); color: var(--tm-navy); }
html[data-theme="dark"] #shell .button-secondary:hover { background: var(--tm-link-soft); border-color: #46515f; }
html[data-theme="dark"] #shell .button-danger { color: #d78484; border-color: #5b3535; }
html[data-theme="dark"] #shell .stat-card, html[data-theme="dark"] #shell .panel, html[data-theme="dark"] #shell .info-card { border-color: #3b4451; }
html[data-theme="dark"] #shell .stat-value, html[data-theme="dark"] #shell .panel-head h2, html[data-theme="dark"] #shell .info-card h3, html[data-theme="dark"] #shell .empty h3, html[data-theme="dark"] #shell .detail-section h3 { color: var(--tm-navy); }
html[data-theme="dark"] #shell .stat-bottom strong { color: var(--tm-link); }
html[data-theme="dark"] #shell .link-button, html[data-theme="dark"] #shell .row-button, html[data-theme="dark"] #shell .info-card button, html[data-theme="dark"] #shell .doc-item a { color: var(--tm-link); }
html[data-theme="dark"] #shell th { color: var(--tm-slate); }
html[data-theme="dark"] #shell td { color: #bbcad9; }
html[data-theme="dark"] #shell td strong, html[data-theme="dark"] #shell .info-card .card-meta strong { color: var(--tm-navy); }
html[data-theme="dark"] #shell tbody tr:hover { background: #171d28; }
html[data-theme="dark"] #shell .plate { color: var(--tm-navy); }
html[data-theme="dark"] #shell .badge.green { background: #14221c; color: #a4ecd2; }
html[data-theme="dark"] #shell .badge.amber { background: var(--tm-amber-soft); color: var(--tm-amber-text); }
html[data-theme="dark"] #shell .badge.red { background: #281313; color: #d78484; }
html[data-theme="dark"] #shell .progress-track { background: #181c22; }
html[data-theme="dark"] #shell .progress-fill, html[data-theme="dark"] #shell .progress-fill.blue { background: var(--tm-link); }
html[data-theme="dark"] #shell .progress-fill.amber { background: var(--tm-gold); }
html[data-theme="dark"] #shell .quick-links button span { color: var(--tm-link); }
html[data-theme="dark"] #shell .search input, html[data-theme="dark"] #shell .toolbar select { border-color: #3b4451; }
html[data-theme="dark"] #shell .search input:focus, html[data-theme="dark"] #shell .toolbar select:focus { border-color: var(--tm-gold); box-shadow: var(--tm-focus); outline: none; }
html[data-theme="dark"] #shell .empty-icon { background: var(--tm-amber-soft); color: var(--tm-amber-text); }
html[data-theme="dark"] #shell .alert-strip { background: var(--tm-amber-soft); border-color: #F3DD8A; color: var(--tm-amber-text); }
html[data-theme="dark"] #shell .guide strong, html[data-theme="dark"] #shell .detail-stat strong { color: var(--tm-navy); }
html[data-theme="dark"] #shell.role-driver .portal-priority { border-left-color: var(--tm-danger); }
html[data-theme="dark"] #shell.role-driver .portal-priority strong { color: var(--tm-navy); }
html[data-theme="dark"] #shell.role-driver .portal-case-card { border-left-color: var(--tm-gold); }
html[data-theme="dark"] #shell.role-driver .portal-case-card small { color: var(--tm-amber-text); }
html[data-theme="dark"] #shell.role-driver .portal-bottom-nav button.active { color: var(--tm-link); }
html[data-theme="dark"] .modal, html[data-theme="dark"] .drawer { border-color: #3b4451; color: var(--tm-navy); }
html[data-theme="dark"] .modal-header h2, html[data-theme="dark"] .drawer-hero h2, html[data-theme="dark"] .detail-section h3 { color: var(--tm-navy); }
html[data-theme="dark"] .modal-header .eyebrow, html[data-theme="dark"] .drawer-hero .eyebrow { color: var(--tm-amber-text); }
html[data-theme="dark"] .drawer-hero { background: #191d23; }
html[data-theme="dark"] .modal .field label, html[data-theme="dark"] .drawer .field label { color: var(--tm-navy-2); }
html[data-theme="dark"] .modal .field input, html[data-theme="dark"] .modal .field select, html[data-theme="dark"] .modal .field textarea, html[data-theme="dark"] .drawer .field input, html[data-theme="dark"] .drawer .field select, html[data-theme="dark"] .drawer .field textarea { border-color: var(--tm-slate-300); }
html[data-theme="dark"] .modal .field input:focus, html[data-theme="dark"] .modal .field select:focus, html[data-theme="dark"] .modal .field textarea:focus, html[data-theme="dark"] .drawer .field input:focus, html[data-theme="dark"] .drawer .field select:focus, html[data-theme="dark"] .drawer .field textarea:focus { border-color: var(--tm-gold); box-shadow: var(--tm-focus); }
html[data-theme="dark"] .modal .form-note, html[data-theme="dark"] .drawer .form-note { background: var(--tm-amber-soft); border-color: var(--tm-gold); color: #faefc6; }
html[data-theme="dark"] .modal .form-note .guide, html[data-theme="dark"] .drawer .form-note .guide { color: #faefc6; }
html[data-theme="dark"] .modal .form-note .guide strong, html[data-theme="dark"] .drawer .form-note .guide strong { color: var(--tm-navy); }
html[data-theme="dark"] .modal .button-primary, html[data-theme="dark"] .drawer .button-primary { background: var(--tm-amber); color: var(--tm-amber-on); }
html[data-theme="dark"] .modal .button-primary:hover, html[data-theme="dark"] .drawer .button-primary:hover { background: var(--tm-amber-hover); }
html[data-theme="dark"] .modal .button-secondary, html[data-theme="dark"] .drawer .button-secondary { background: #212733; border-color: var(--tm-slate-300); color: var(--tm-navy); }
html[data-theme="dark"] .timeline { border-color: #334563; }
html[data-theme="dark"] .timeline-item::before { background: var(--tm-link); box-shadow: 0 0 0 2px #334563; }
html[data-theme="dark"] .doc-item a { color: var(--tm-link); }
html[data-theme="dark"] .toast { background: var(--tm-surface); color: var(--tm-ink); border: 1px solid var(--tm-line-strong); }
html[data-theme="dark"] .toast.error { background: #B43A3A; border-color: #B43A3A; color: #fff; }
html[data-theme="dark"] .appeal-dialog { color: var(--tm-navy); }
html[data-theme="dark"] .appeal-steps [aria-current] { color: var(--tm-link); }
html[data-theme="dark"] .appeal-steps [aria-current] b { background: var(--tm-amber); color: var(--tm-amber-on); }
html[data-theme="dark"] .appeal-search:focus, html[data-theme="dark"] .appeal-dialog input:focus-visible, html[data-theme="dark"] .appeal-dialog textarea:focus-visible { outline: none; border-color: var(--tm-gold); box-shadow: var(--tm-focus); }
html[data-theme="dark"] .appeal-resource:hover, html[data-theme="dark"] .appeal-resource:focus-visible { border-color: var(--tm-gold); outline: 2px solid rgba(244, 174, 18, .35); }
html[data-theme="dark"] .appeal-resource-link { color: var(--tm-link); }
html[data-theme="dark"] .appeal-option:has(input:checked) { border-color: var(--tm-gold); background: var(--tm-amber-soft); }
html[data-theme="dark"] .appeal-dialog .button-primary { background: var(--tm-amber); color: var(--tm-amber-on); }
html[data-theme="dark"] .appeal-dialog .button-primary:hover { background: var(--tm-amber-hover); }
html[data-theme="dark"] .drawer { box-shadow: 0 30px 100px #081c2b44; }
html[data-theme="dark"] .modal, html[data-theme="dark"] .drawer { color: #e3eaf4; }
html[data-theme="dark"] .modal .mini-summary, html[data-theme="dark"] .drawer .mini-summary { color: #c7d0e2; }
html[data-theme="dark"] .modal .summary-line strong, html[data-theme="dark"] .drawer .summary-line strong { color: #e3eaf4; }
html[data-theme="dark"] .modal .summary-line span, html[data-theme="dark"] .drawer .summary-line span { color: #b2bdce; }
html[data-theme="dark"] .modal .guide, html[data-theme="dark"] .drawer .guide { color: #b2bdce; }
html[data-theme="dark"] .modal .guide strong, html[data-theme="dark"] .drawer .guide strong { color: #e3eaf4; }
html[data-theme="dark"] .modal .detail-stat span, html[data-theme="dark"] .drawer .detail-stat span { color: #b2bdce; }
html[data-theme="dark"] .modal .detail-stat strong, html[data-theme="dark"] .drawer .detail-stat strong { color: #e3eaf4; }
html[data-theme="dark"] .modal small, html[data-theme="dark"] .drawer small { color: #b2bdce; }
html[data-theme="dark"] .modal .timeline-item p, html[data-theme="dark"] .drawer .timeline-item p, html[data-theme="dark"] .modal .timeline-item span, html[data-theme="dark"] .drawer .timeline-item span { color: #b2bdce; }
html[data-theme="dark"] .modal th, html[data-theme="dark"] .drawer th { background: #191d23; color: #b2bdce; }
html[data-theme="dark"] .modal td, html[data-theme="dark"] .drawer td { border-color: #3a414b; color: #c7d0e2; }
html[data-theme="dark"] .modal td strong, html[data-theme="dark"] .drawer td strong { color: #e3eaf4; }
html[data-theme="dark"] .modal tbody tr:hover, html[data-theme="dark"] .drawer tbody tr:hover { background: #171d28; }
html[data-theme="dark"] .modal .badge, html[data-theme="dark"] .drawer .badge { background: #191c20; color: #b2bdce; }
html[data-theme="dark"] .modal .badge.green, html[data-theme="dark"] .drawer .badge.green { background: #16201b; color: #adeed2; }
html[data-theme="dark"] .modal .badge.amber, html[data-theme="dark"] .drawer .badge.amber { background: #281f0f; color: #f7d29d; }
html[data-theme="dark"] .modal .badge.red, html[data-theme="dark"] .drawer .badge.red { background: #281313; color: #df8484; }
html[data-theme="dark"] .modal .row-button, html[data-theme="dark"] .drawer .row-button { color: var(--tm-link, #92baef); }
html[data-theme="dark"] .modal .empty, html[data-theme="dark"] .drawer .empty { color: #b2bdce; }
