:root[data-bs-theme="dark"] {
    --ac-bg: #19231f;
    --ac-surface: #222f29;
    --ac-ink: #e2ece5;
    --ac-muted: #aabdb0;
    --ac-line: #3c4e42;
    --ac-primary: #9ad2b8;
    --ac-soft: #2d4135;
    --bs-body-bg: #19231f;
    --bs-body-color: #e2ece5;
    --bs-border-color: #3c4e42;
    --bs-secondary-color: #aabdb0;
}

:root[data-bs-theme="dark"] body {
    color: var(--ac-ink);
    background: var(--ac-bg);
}

:root[data-bs-theme="dark"] :is(.download-panel, .presentation-card, .presentation-copy,
    .questionnaire-card, .pdf-mobile-fallback, .video-card, .material-link:not(.material-link-strong),
    .devices-summary, .devices-table-wrap, .admin-table-wrapper, .empty-state,
    .auth-illustration .illustration-card, .dbg-tooltip) {
    color: var(--ac-ink);
    background: var(--ac-surface);
    border-color: var(--ac-line);
}

:root[data-bs-theme="dark"] :is(.download-panel h1, .section-heading h2, .presentation-copy h3,
    .pdf-mobile-fallback h3, .video-card h3, .devices-heading h1, .devices-toolbar h2,
    .devices-summary dd, .devices-table td, .devices-table th) {
    color: var(--ac-ink);
}

:root[data-bs-theme="dark"] :is(.download-description, .download-note, .section-heading p,
    .presentation-copy p, .pdf-mobile-fallback p, .video-card p, .devices-intro,
    .devices-summary dt, .devices-toolbar p, .devices-filter span, .dbg-legend) {
    color: var(--ac-muted);
}

:root[data-bs-theme="dark"] :is(.section-kicker, .download-eyebrow, .devices-kicker,
    .auth-story h1 em, .material-link:not(.material-link-strong)) {
    color: var(--ac-primary);
}

:root[data-bs-theme="dark"] :is(.admin-nav .nav-link:not(.active), .admin-table-wrapper thead th,
    .devices-back-link, .devices-filter select, .devices-table th,
    .devices-table tbody tr:nth-child(even), .devices-table tbody tr:hover) {
    color: var(--ac-ink);
    background: var(--ac-soft);
    border-color: var(--ac-line);
}

:root[data-bs-theme="dark"] :is(.bundle-section, .bundle-selection, .bundle-file,
    .admin-nav, .admin-section-card, .admin-form-card, .license-result-card) {
    border-color: var(--ac-line);
}

:root[data-bs-theme="dark"] .account-button:not(.secondary) {
    color: #fff !important;
    background: #33765e;
}

:root[data-bs-theme="dark"] :is(.tool-card.featured, .account-status, .illustration-line) {
    background: var(--ac-soft);
    border-color: var(--ac-line);
}

:root[data-bs-theme="dark"] .account-error {
    color: #ffaca5;
}
