.fi-body {
    font-size: 16px;
    line-height: 1.6;
}

.fi-main {
    padding-bottom: 7rem;
}

.dark .fi-body {
    background:
        radial-gradient(circle at top right, rgb(245 158 11 / 0.1), transparent 24%),
        linear-gradient(180deg, #111114 0%, #09090b 100%);
    color: rgb(245 245 247);
}

.dark .fi-topbar,
.dark .fi-sidebar,
.dark .fi-sidebar-header {
    background-color: rgb(24 24 27 / 0.92) !important;
    backdrop-filter: blur(18px);
}

.dark .fi-topbar,
.dark .fi-sidebar-header {
    border-color: rgb(39 39 42 / 0.95) !important;
}

.dark .fi-sidebar {
    border-inline-end: 1px solid rgb(39 39 42 / 0.95);
}

.dark .fi-sidebar-nav {
    gap: 1.6rem;
    padding-top: 1.6rem;
}

.dark .fi-sidebar-item-button {
    min-height: 2.9rem;
    border-radius: 1rem;
    color: rgb(244 244 245);
}

.dark .fi-sidebar-item-button:hover,
.dark .fi-sidebar-item-button:focus-visible {
    background-color: rgb(255 255 255 / 0.06) !important;
    color: rgb(255 255 255);
}

.dark .fi-sidebar-item.fi-active .fi-sidebar-item-button {
    background: linear-gradient(180deg, rgb(245 158 11 / 0.24), rgb(245 158 11 / 0.16)) !important;
    box-shadow: inset 0 0 0 1px rgb(251 191 36 / 0.25);
    color: rgb(253 230 138) !important;
}

.dark .fi-sidebar-item-label {
    font-size: 0.98rem;
    font-weight: 600;
}

.dark .fi-sidebar-group-label {
    color: rgb(212 212 216);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dark .fi-breadcrumbs-item-label,
.dark .fi-fo-field-wrp-helper-text,
.dark .fi-section-header-description,
.dark .fi-ta-empty-state-description,
.dark .fi-ta-summary,
.dark .fi-no-notification-title {
    color: rgb(196 196 208) !important;
}

.dark .fi-section,
.dark .fi-ta-ctn,
.dark .fi-wi-stats-overview-stat,
.dark .fi-modal-window {
    background: linear-gradient(180deg, rgb(31 31 35 / 0.98), rgb(24 24 27 / 0.98)) !important;
    box-shadow: 0 18px 40px rgb(0 0 0 / 0.22);
    ring-color: transparent;
}

.dark .fi-section-header-heading,
.dark .fi-ta-header-heading,
.dark .fi-modal-heading,
.dark .fi-wi-stats-overview-stat-label {
    color: rgb(250 250 250) !important;
    letter-spacing: -0.01em;
}

.dark .fi-input-wrp {
    background-color: rgb(255 255 255 / 0.06) !important;
    box-shadow: inset 0 0 0 1px rgb(63 63 70 / 0.95);
}

.dark .fi-input-wrp:focus-within {
    box-shadow:
        inset 0 0 0 1px rgb(245 158 11 / 0.85),
        0 0 0 3px rgb(245 158 11 / 0.16);
}

.dark .fi-input-wrp input,
.dark .fi-input-wrp textarea,
.dark .fi-input-wrp select,
.dark .fi-fo-date-time-picker-display-text-input,
.dark .fi-fo-rich-editor-editor,
.dark .fi-input {
    color: rgb(250 250 250) !important;
    font-size: 1rem;
}

.dark .fi-input-wrp ::placeholder {
    color: rgb(161 161 170) !important;
}

.dark .fi-btn {
    min-height: 2.9rem;
    border-radius: 0.95rem;
    font-size: 0.95rem;
    font-weight: 700;
}

.dark .fi-btn.fi-btn-color-gray {
    background-color: rgb(255 255 255 / 0.06) !important;
    box-shadow: inset 0 0 0 1px rgb(63 63 70 / 0.95);
    color: rgb(244 244 245) !important;
}

.dark .fi-btn.fi-btn-color-gray:hover,
.dark .fi-btn.fi-btn-color-gray:focus-visible {
    background-color: rgb(255 255 255 / 0.11) !important;
}

.dark .fi-btn.fi-btn-color-primary {
    box-shadow: 0 12px 26px rgb(245 158 11 / 0.2);
}

.dark .fi-icon-btn,
.dark .fi-pagination-item-button {
    color: rgb(212 212 216) !important;
}

.dark .fi-ta-header-cell,
.dark .fi-ta-cell {
    padding-top: 0.95rem;
    padding-bottom: 0.95rem;
}

.dark .fi-ta-table th {
    color: rgb(212 212 216);
    font-size: 0.83rem;
    letter-spacing: 0.03em;
}

.dark .fi-ta-table td {
    color: rgb(244 244 245);
    font-size: 0.96rem;
}

.dark .fi-badge {
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.15;
}

.participant-hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    width: 100%;
}

.participant-hero-actions .fi-btn,
.participant-hero-actions .fi-icon-btn {
    width: 100%;
    justify-content: center;
}

.dark .participant-hero-fact {
    background-color: rgb(39 39 42 / 0.72) !important;
}

.dark .dark\:bg-gray-800\/50 {
    background-color: rgb(39 39 42) !important;
}

.dark .dark\:bg-gray-800\/70 {
    background-color: rgb(39 39 42 / 0.7) !important;
}

.dark .leaflet-bar,
.dark .leaflet-control-zoom {
    border-color: rgb(63 63 70) !important;
}

.dark .leaflet-bar a,
.dark .leaflet-control-attribution {
    background-color: rgb(24 24 27 / 0.92) !important;
    color: rgb(228 228 231) !important;
    border-color: rgb(63 63 70) !important;
}

.dark .leaflet-bar a:hover,
.dark .leaflet-bar a:focus-visible {
    background-color: rgb(39 39 42 / 0.96) !important;
    color: rgb(255 255 255) !important;
}

.dark .leaflet-control-attribution a {
    color: rgb(252 211 77) !important;
}

.dark .leaflet-popup-content-wrapper,
.dark .leaflet-popup-tip {
    background-color: rgb(24 24 27) !important;
    color: rgb(228 228 231) !important;
}

.dark .leaflet-container a.leaflet-popup-close-button {
    color: rgb(161 161 170) !important;
}

.dark .ask-reentrydb-panel,
.dark .ask-reentrydb-minimized,
.dark .ask-reentrydb-panel header,
.dark .ask-reentrydb-panel form,
.dark .ask-reentrydb-panel textarea {
    border-color: rgb(63 63 70) !important;
}

.dark .angel-team-map-card,
.dark .participant-map-card {
    background-color: rgb(24 24 27 / 0.4) !important;
}

.dark .angel-team-map-card:hover,
.dark .angel-team-map-card:focus-visible,
.dark .participant-map-card:hover,
.dark .participant-map-card:focus-visible {
    background-color: rgb(39 39 42 / 0.8) !important;
}

@media (min-width: 1280px) {
    .fi-main {
        max-width: min(108rem, calc(100vw - 3rem)) !important;
    }
}

@media (max-width: 1023px) {
    .dark .fi-sidebar {
        width: min(21rem, 88vw) !important;
    }

    .fi-main {
        padding-inline: 0.9rem;
        padding-bottom: 8rem;
    }
}

@media (min-width: 640px) {
    .participant-hero-actions {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
        width: auto;
    }

    .participant-hero-actions .fi-btn,
    .participant-hero-actions .fi-icon-btn {
        width: auto;
    }
}
