/**
 * Survivor Toolkit — design tokens (dayz-mod-hub reference)
 * Единый lime-акцент, тёмные surface/background.
 *
 * Canonical UI: .btn-brand, .btn-survivor-outline, .btn-survivor-ghost,
 * .text-brand, .text-dim, .surface-card, .catalog-card — see docs/UI.md
 */

:root {
    --survivor-background: #070b0e;
    --survivor-surface: #111418;
    --survivor-navbar: #060b0e;
    --survivor-foreground: #e2e4e8;
    --survivor-text-dim: #64748b;
    --survivor-brand: #73b512;
    --survivor-brand-bright: #84cc16;
    --survivor-brand-fg: #070b0e;
    --survivor-border: #0f1519;
    --survivor-brand-ring: rgba(115, 181, 18, 0.25);
    --survivor-brand-hover: rgba(115, 181, 18, 0.1);
    --survivor-table-hover: rgba(115, 181, 18, 0.05);
    --survivor-hero-gradient-start: #1a2e1a;
    --survivor-hero-gradient-mid: #0d1117;
    --survivor-hero-gradient-end: #070b0e;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --warning-text: #856404;
}

[data-bs-theme="dark"] {
    --bs-body-bg: var(--survivor-background);
    --bs-body-color: var(--survivor-foreground);
    --bs-secondary-color: var(--survivor-text-dim);
    --bs-tertiary-bg: var(--survivor-surface);
    --bs-secondary-bg: #1a1f26;
    --bs-border-color: var(--survivor-border);
    --bs-emphasis-color: var(--survivor-foreground);
    --bs-link-color: var(--survivor-brand);
    --bs-link-hover-color: var(--survivor-brand-bright);

    --site-surface: var(--survivor-surface);
    --site-border: var(--survivor-border);
    --site-muted: var(--survivor-text-dim);
    --site-text: var(--survivor-foreground);
    --primary-color: var(--survivor-brand);
    --warning-text: #ffda6a;
}

[data-bs-theme="dark"] .card {
    background-color: var(--survivor-surface);
    border: 1px solid var(--survivor-border);
    box-shadow: none;
}

[data-bs-theme="dark"] .card:hover {
    box-shadow: none;
    transform: none;
    border-color: color-mix(in srgb, var(--survivor-brand) 30%, var(--survivor-border));
}

[data-bs-theme="dark"] .card-header {
    background-color: var(--survivor-surface);
    border-bottom: 1px solid var(--survivor-border);
}

[data-bs-theme="dark"] .table {
    box-shadow: none;
    border: 1px solid var(--survivor-border);
    border-radius: 0.5rem;
}

[data-bs-theme="dark"] .table thead th {
    background-color: var(--survivor-surface);
    border-bottom: 1px solid var(--survivor-border);
    color: var(--survivor-text-dim);
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

[data-bs-theme="dark"] .table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

[data-bs-theme="dark"] .table thead a.text-dark,
[data-bs-theme="dark"] .table thead th a.text-dark {
    color: var(--site-text) !important;
}

[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
    background-color: var(--survivor-background);
    border-color: var(--survivor-border);
    color: var(--survivor-foreground);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--survivor-brand);
    box-shadow: 0 0 0 0.2rem var(--survivor-brand-ring);
}

[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-select:focus {
    border-color: var(--survivor-brand);
    box-shadow: 0 0 0 0.2rem var(--survivor-brand-ring);
}

[data-bs-theme="dark"] .detail-field,
[data-bs-theme="dark"] .json-viewer {
    background-color: var(--survivor-background);
    border-color: var(--survivor-border);
}

[data-bs-theme="dark"] .bg-light {
    background-color: var(--survivor-surface) !important;
    color: var(--survivor-foreground) !important;
}

[data-bs-theme="dark"] .dropdown-menu {
    background-color: var(--survivor-surface);
    border: 1px solid var(--survivor-border);
}

[data-bs-theme="dark"] .dropdown-item {
    color: var(--survivor-foreground);
}

[data-bs-theme="dark"] .dropdown-item:hover,
[data-bs-theme="dark"] .dropdown-item:focus {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--survivor-foreground);
}

[data-bs-theme="dark"] .modal-content {
    background-color: var(--survivor-surface);
    border: 1px solid var(--survivor-border);
}

[data-bs-theme="dark"] .btn:hover {
    transform: none;
}

/* Survivor utility classes */
.text-brand {
    color: var(--survivor-brand) !important;
}

.text-dim {
    color: var(--survivor-text-dim) !important;
}

.tool-card-icon {
    width: 3rem;
    height: 3rem;
    background: color-mix(in srgb, var(--survivor-brand) 10%, transparent);
}

.page-header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 0.375rem;
    background: color-mix(in srgb, var(--survivor-brand) 10%, transparent);
}

/* Status badges (semantic, not brand-colored) */
.badge-status-success {
    background-color: rgba(25, 135, 84, 0.15) !important;
    color: var(--success-color) !important;
    border: 1px solid rgba(25, 135, 84, 0.35);
}

.badge-status-warning {
    background-color: rgba(255, 193, 7, 0.15) !important;
    color: var(--warning-text) !important;
    border: 1px solid rgba(255, 193, 7, 0.35);
}

.badge-status-muted {
    background-color: var(--bs-tertiary-bg) !important;
    color: var(--site-muted) !important;
    border: 1px solid var(--site-border);
}

.badge-status-info {
    background-color: rgba(13, 202, 240, 0.12) !important;
    color: var(--info-color) !important;
    border: 1px solid rgba(13, 202, 240, 0.35);
}

.badge-status-danger {
    background-color: rgba(220, 53, 69, 0.12) !important;
    color: var(--danger-color) !important;
    border: 1px solid rgba(220, 53, 69, 0.35);
}

.modal-header--warning {
    background-color: color-mix(in srgb, var(--warning-color) 12%, transparent);
    border-bottom: 1px solid color-mix(in srgb, var(--warning-color) 35%, var(--site-border));
    color: var(--warning-text);
}

.modal-header--danger {
    background-color: color-mix(in srgb, var(--danger-color) 12%, transparent);
    border-bottom: 1px solid color-mix(in srgb, var(--danger-color) 35%, var(--site-border));
    color: var(--danger-color);
}

.modal-header--success {
    background-color: color-mix(in srgb, var(--success-color) 12%, transparent);
    border-bottom: 1px solid color-mix(in srgb, var(--success-color) 35%, var(--site-border));
    color: var(--success-color);
}

.toast-survivor-success {
    background-color: color-mix(in srgb, var(--success-color) 15%, var(--survivor-surface, var(--site-surface)));
    color: var(--site-text);
    border: 1px solid color-mix(in srgb, var(--success-color) 35%, var(--site-border));
}

/* Steam brand zone (auth profile — phase 7) */
.badge-steam {
    background: linear-gradient(90deg, #111d2e 0%, #1385b7 100%);
    color: #fff;
    padding: 0.5em 0.75em;
}

.card-header-steam {
    background: linear-gradient(90deg, #111d2e 0%, #1385b7 100%);
    color: #fff;
}

.steam-avatar {
    border: 3px solid transparent;
    background:
        linear-gradient(white, white) padding-box,
        linear-gradient(135deg, #111d2e 0%, #1385b7 100%) border-box;
    box-shadow: 0 4px 15px rgba(19, 133, 183, 0.3);
}

.bg-brand {
    background-color: var(--survivor-brand) !important;
    color: var(--survivor-brand-fg) !important;
}

.border-survivor {
    border-color: var(--survivor-border) !important;
}

.btn-brand {
    background-color: var(--survivor-brand) !important;
    border-color: var(--survivor-brand) !important;
    color: var(--survivor-brand-fg) !important;
    font-weight: 700;
    border-radius: 0.125rem;
}

.btn-brand:hover,
.btn-brand:focus {
    background-color: var(--survivor-brand-bright) !important;
    border-color: var(--survivor-brand-bright) !important;
    color: var(--survivor-brand-fg) !important;
}

.btn-survivor-ghost {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--survivor-border) !important;
    color: var(--survivor-foreground) !important;
    font-weight: 600;
    border-radius: 0.375rem;
}

.btn-survivor-ghost:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: var(--survivor-foreground) !important;
}

.btn-survivor-outline {
    background-color: transparent !important;
    border: 1px solid color-mix(in srgb, var(--survivor-brand) 45%, var(--survivor-border)) !important;
    color: var(--survivor-foreground) !important;
    font-weight: 700;
    border-radius: 0.125rem;
}

.btn-survivor-outline:hover {
    background-color: var(--survivor-brand-hover, rgba(115, 181, 18, 0.1)) !important;
    border-color: var(--survivor-brand) !important;
}

.surface-card {
    background-color: var(--survivor-surface);
    border: 1px solid var(--survivor-border);
    border-radius: 1rem;
    transition: border-color 0.2s ease;
}

.surface-card:hover {
    border-color: color-mix(in srgb, var(--survivor-brand) 30%, var(--survivor-border));
}

.objective-specific-fields > .surface-card {
    border-color: color-mix(in srgb, var(--survivor-brand) 30%, var(--survivor-border));
}

.objective-specific-fields > .surface-card:hover {
    border-color: color-mix(in srgb, var(--survivor-brand) 40%, var(--survivor-border));
}

[data-bs-theme="light"] .objective-specific-fields > .surface-card,
[data-bs-theme="light"] .objective-specific-fields > .surface-card:hover {
    border-color: var(--site-border);
}

.surface-card--tool {
    border-radius: 1rem;
}

.surface-card--tool:hover {
    border-color: color-mix(in srgb, var(--survivor-brand) 30%, var(--survivor-border));
}

.surface-muted {
    background: var(--bs-tertiary-bg);
    border: 1px solid var(--site-border);
}

.surface-muted--preview {
    height: 150px;
}

.surface-tint-success {
    background-color: color-mix(in srgb, var(--survivor-brand) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--survivor-brand) 25%, var(--site-border));
}

.hero-home-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 0.75rem;
    outline: 1px solid rgba(255, 255, 255, 0.05);
    outline-offset: -1px;
    background:
        linear-gradient(135deg, rgba(7, 11, 14, 0.35) 0%, rgba(17, 20, 24, 0.75) 100%),
        url('../img/hero-forest.svg') center / cover no-repeat,
        linear-gradient(180deg, var(--survivor-hero-gradient-start) 0%, var(--survivor-hero-gradient-mid) 40%, var(--survivor-hero-gradient-end) 100%);
    overflow: hidden;
}

.hero-home-image::after {
    content: "";
    position: absolute;
    inset: -1rem;
    background: rgba(115, 181, 18, 0.05);
    filter: blur(48px);
    z-index: -1;
    border-radius: 50%;
}

.admin-preview-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 0.5rem;
    outline: 1px solid rgba(255, 255, 255, 0.1);
    outline-offset: -1px;
    background:
        linear-gradient(145deg, rgba(17, 20, 24, 0.85) 0%, rgba(7, 8, 9, 0.9) 100%),
        url('../img/admin-dashboard.svg') center / cover no-repeat;
    border: 1px solid var(--survivor-border);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.hero-badge-pulse {
    animation: survivor-pulse 2s ease-in-out infinite;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin: 0;
    color: var(--survivor-foreground);
}

.hero-lead {
    font-size: 1.125rem;
    line-height: 1.625;
    max-width: 32rem;
}

.hero-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    border: 1px solid rgba(115, 181, 18, 0.2);
    background: rgba(115, 181, 18, 0.1);
}

/* Catalog filters & cards */
.catalog-filter {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    border: 1px solid transparent;
    background: transparent;
    color: var(--survivor-foreground);
    font-size: 0.875rem;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.catalog-filter:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--survivor-foreground);
}

.catalog-filter--active {
    background: var(--survivor-brand-hover);
    color: var(--survivor-brand);
    border-color: color-mix(in srgb, var(--survivor-brand) 30%, var(--survivor-border));
}

.catalog-card {
    background-color: var(--survivor-surface);
    border: 1px solid var(--survivor-border);
    border-radius: 0.75rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: border-color 0.2s ease;
}

.catalog-card:hover {
    border-color: color-mix(in srgb, var(--survivor-brand) 30%, var(--survivor-border));
}

.catalog-card__preview {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--survivor-background);
    border-bottom: 1px solid var(--survivor-border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.catalog-card__preview--tall {
    aspect-ratio: auto;
    height: 200px;
}

.catalog-card__preview--tall img,
img.catalog-card__preview--tall {
    height: 200px;
    object-fit: cover;
}

.package-preview-img--hero,
img.package-preview-img--hero,
.catalog-card__preview.package-preview-img--hero {
    height: 400px;
    object-fit: cover;
}

.map-preview {
    height: 300px;
    width: 100%;
}

.form-row-align {
    height: 38px;
}

.progress--tall {
    height: 25px;
}

.catalog-card__preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.catalog-card__preview-placeholder {
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--survivor-brand) 12%, transparent) 0%,
        transparent 60%
    );
}

.catalog-card__category {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    padding: 0.125rem 0.5rem;
    background: color-mix(in srgb, var(--survivor-background) 85%, transparent);
    border: 1px solid var(--survivor-border);
    border-radius: 0.25rem;
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--survivor-text-dim);
}

.catalog-card__body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.catalog-card__title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--survivor-foreground);
    text-decoration: none;
}

.catalog-card__title:hover {
    color: var(--survivor-brand);
}

.catalog-card__author {
    font-size: 0.75rem;
    color: var(--survivor-text-dim);
    margin-bottom: 0.75rem;
}

.catalog-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.catalog-card__tag {
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.125rem 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--survivor-border);
    border-radius: 0.25rem;
    color: var(--survivor-text-dim);
}

.catalog-card__meta {
    font-size: 0.75rem;
    color: var(--survivor-text-dim);
    margin-top: auto;
    margin-bottom: 0;
}

.catalog-card__meta .text-brand {
    font-family: "JetBrains Mono", ui-monospace, monospace;
}

.catalog-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    border-top: 1px solid var(--survivor-border);
}

.catalog-card__price {
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--survivor-brand);
    margin: 0;
}

.catalog-toolbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem 1rem;
    margin-bottom: 2rem;
}

.catalog-toolbar__back {
    grid-column: 1 / -1;
}

.catalog-toolbar__heading {
    min-width: 0;
}

.catalog-toolbar__search {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    align-items: center;
    min-width: 0;
}

.catalog-toolbar__input {
    flex: 1 1 12rem;
    min-width: 0;
    max-width: 18rem;
}

.catalog-toolbar__sort {
    flex: 0 0 auto;
    width: auto;
    min-width: 10rem;
}

@media (max-width: 767.98px) {
    .catalog-toolbar__search {
        flex-wrap: wrap;
    }

    .catalog-toolbar__input {
        flex: 1 1 100%;
        max-width: none;
    }
}

@media (min-width: 768px) {
    .catalog-toolbar {
        grid-template-columns: 1fr auto;
        align-items: end;
    }

    .catalog-toolbar__back {
        grid-column: 1 / -1;
    }

    .catalog-toolbar__heading {
        grid-column: 1;
        grid-row: 2;
    }

    .catalog-toolbar__search {
        grid-column: 2;
        grid-row: 2;
        justify-self: end;
    }
}

.catalog-toolbar__search .form-control {
    min-width: 0;
}

@keyframes survivor-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background-color: var(--survivor-border);
    border: 1px solid var(--survivor-border);
    border-radius: 0.75rem;
    overflow: hidden;
}

@media (min-width: 992px) {
    .kpi-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .kpi-grid--6 {
        grid-template-columns: repeat(6, 1fr);
    }
}

.kpi-grid__cell {
    background-color: var(--survivor-surface);
    padding: 2rem;
}

.kpi-grid__value {
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--survivor-foreground);
}

.kpi-grid__value--brand {
    color: var(--survivor-brand);
}

.kpi-grid__label {
    font-size: 0.875rem;
    color: var(--survivor-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

[data-bs-theme="light"] {
    /* Soft slate light — не чистый белый, ближе к Survivor-палитре */
    --survivor-background: #bcc5d0;
    --survivor-surface: #ccd4dd;
    --survivor-navbar: #b0bac6;
    --survivor-foreground: #141a22;
    --survivor-text-dim: #454f5c;
    --survivor-brand: #73b512;
    --survivor-brand-bright: #84cc16;
    --survivor-brand-fg: #070b0e;
    --survivor-border: #98a5b3;
    --survivor-brand-ring: rgba(115, 181, 18, 0.28);
    --survivor-brand-hover: rgba(115, 181, 18, 0.14);
    --survivor-table-hover: rgba(0, 0, 0, 0.06);

    --site-surface: #ccd4dd;
    --site-border: #98a5b3;
    --site-muted: #454f5c;
    --site-text: #141a22;
    --primary-color: #73b512;

    --bs-body-bg: var(--survivor-background);
    --bs-body-color: var(--survivor-foreground);
    --bs-secondary-color: var(--survivor-text-dim);
    --bs-secondary-bg: #b0bac6;
    --bs-tertiary-bg: var(--survivor-surface);
    --bs-border-color: var(--survivor-border);
    --bs-link-color: var(--survivor-brand);
    --bs-link-hover-color: var(--survivor-brand-bright);
}

[data-bs-theme="light"] .btn-survivor-ghost {
    background-color: rgba(0, 0, 0, 0.04) !important;
    border-color: var(--site-border) !important;
    color: var(--site-text) !important;
}

[data-bs-theme="light"] .btn-survivor-outline {
    border-color: var(--site-border) !important;
    color: var(--site-text) !important;
}

[data-bs-theme="light"] .btn-survivor-outline:hover {
    background-color: rgba(0, 0, 0, 0.04) !important;
}

[data-bs-theme="light"] .btn-brand {
    background-color: var(--survivor-brand) !important;
    border-color: var(--survivor-brand) !important;
    color: var(--survivor-brand-fg) !important;
}

[data-bs-theme="light"] .btn-brand:hover {
    background-color: var(--survivor-brand-bright) !important;
    border-color: var(--survivor-brand-bright) !important;
    color: var(--survivor-brand-fg) !important;
}

[data-bs-theme="light"] .kpi-grid {
    background-color: var(--site-border);
    border-color: var(--site-border);
}

[data-bs-theme="light"] .kpi-grid__cell {
    background-color: var(--site-surface);
}

[data-bs-theme="light"] .kpi-grid__value {
    color: var(--site-text);
}

[data-bs-theme="light"] .kpi-grid__value--brand {
    color: var(--survivor-brand);
}

[data-bs-theme="light"] .surface-card {
    background-color: var(--site-surface);
    border-color: var(--site-border);
}

[data-bs-theme="light"] .catalog-filter:hover {
    background: rgba(0, 0, 0, 0.04);
}

[data-bs-theme="light"] .catalog-card {
    background-color: var(--site-surface);
    border-color: var(--site-border);
}

[data-bs-theme="light"] .catalog-card:hover {
    border-color: color-mix(in srgb, var(--survivor-brand) 35%, var(--site-border));
}

[data-bs-theme="light"] .catalog-card__preview {
    background: #b0bac6;
    border-bottom-color: var(--site-border);
}

[data-bs-theme="light"] .hero-home-image {
    outline-color: rgba(0, 0, 0, 0.06);
}

[data-bs-theme="light"] .catalog-card__category {
    background: color-mix(in srgb, var(--site-surface) 90%, transparent);
    border-color: var(--site-border);
    color: var(--site-muted);
}

[data-bs-theme="light"] .catalog-card__tag {
    background: rgba(0, 0, 0, 0.04);
    border-color: var(--site-border);
    color: var(--site-muted);
}

[data-bs-theme="light"] .text-brand {
    color: var(--survivor-brand) !important;
}

[data-bs-theme="light"] .bg-light {
    background-color: var(--site-surface) !important;
}

[data-bs-theme="light"] body {
    background-color: var(--survivor-background);
    color: var(--survivor-foreground);
}

[data-bs-theme="light"] .form-control,
[data-bs-theme="light"] .form-select {
    background-color: var(--survivor-surface);
    border-color: var(--survivor-border);
    color: var(--survivor-foreground);
}

[data-bs-theme="light"] .form-control:focus,
[data-bs-theme="light"] .form-select:focus {
    background-color: var(--survivor-surface);
    border-color: color-mix(in srgb, var(--survivor-brand) 45%, var(--survivor-border));
    box-shadow: 0 0 0 0.2rem var(--survivor-brand-ring);
}

/* Bootstrap semantic bridge → Survivor tokens */
.btn-secondary,
.btn-outline-secondary {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--survivor-border) !important;
    color: var(--survivor-foreground) !important;
    font-weight: 600;
    border-radius: 0.125rem;
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: var(--survivor-border) !important;
    color: var(--survivor-foreground) !important;
}

[data-bs-theme="light"] .btn-secondary,
[data-bs-theme="light"] .btn-outline-secondary {
    background-color: rgba(0, 0, 0, 0.04) !important;
    border-color: var(--site-border) !important;
    color: var(--site-text) !important;
}

[data-bs-theme="light"] .btn-secondary:hover,
[data-bs-theme="light"] .btn-outline-secondary:hover {
    background-color: rgba(0, 0, 0, 0.08) !important;
}

[data-bs-theme="light"] .table thead a.text-dark,
[data-bs-theme="light"] .table thead th a.text-dark {
    color: var(--site-text) !important;
}

.text-primary {
    color: var(--survivor-brand) !important;
}
