@import url('./league_space_fonts.css?v=1.0');

.league-space-shell .space-topbar {
    position: relative !important;
    z-index: 120 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    padding: 10px 12px !important;
    border-radius: 22px !important;
    background: linear-gradient(135deg, rgba(7, 16, 28, 0.78), rgba(9, 23, 36, 0.5)) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 18px 52px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(18px) !important;
}

html:has(.league-space-shell),
body.space-mode-body,
body.space-mode-body .overflow,
body.space-mode-body main.container-fluid {
    min-height: 100%;
    background:
        linear-gradient(145deg, color-mix(in srgb, var(--space-bg-from, #0f172a) 58%, transparent), color-mix(in srgb, var(--space-bg-to, #08111d) 64%, transparent)),
        radial-gradient(circle at top left, color-mix(in srgb, var(--space-accent, #5eead4) 14%, transparent), transparent 30%),
        var(--space-bg-image, none),
        linear-gradient(145deg, var(--space-bg-from, #0f172a) 0%, var(--space-bg-to, #08111d) 100%) !important;
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed !important;
}

.league-space-shell .space-topbar__brand {
    min-width: 0;
}

.league-space-shell .space-topbar__brand--link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
    color: #fff !important;
    font-weight: 800 !important;
    letter-spacing: 0.01em !important;
    text-decoration: none !important;
}

.league-space-shell .space-topbar__brand--link:hover {
    color: #fff !important;
}

.league-space-shell .space-topbar__brand img {
    width: 34px !important;
    height: 34px !important;
    object-fit: contain !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    padding: 4px !important;
}

.league-space-shell .space-topbar__brand span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.league-space-shell .space-topbar__actions {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}

.league-space-shell .space-nav-button,
.league-space-shell .space-icon-button,
.league-space-shell .space-social-link,
.league-space-shell .space-topbar .btn {
    min-height: 38px;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    border-radius: 999px !important;
    color: #fff !important;
    text-decoration: none !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease !important;
}

.league-space-shell .space-nav-button {
    padding: 0 14px !important;
    font-weight: 700 !important;
}

.league-space-shell .space-topbar .btn {
    padding: 0 14px !important;
    font-weight: 700 !important;
}

.league-space-shell .space-icon-button,
.league-space-shell .space-social-link {
    width: 38px !important;
    padding: 0 !important;
}

.league-space-shell .space-nav-button:hover,
.league-space-shell .space-icon-button:hover,
.league-space-shell .space-social-link:hover,
.league-space-shell .space-topbar .btn:hover {
    transform: translateY(-1px) !important;
    border-color: color-mix(in srgb, var(--space-accent) 50%, rgba(255, 255, 255, 0.16)) !important;
    background: color-mix(in srgb, var(--space-accent) 16%, rgba(255, 255, 255, 0.08)) !important;
}

.league-space-shell .space-nav-button--primary {
    background: color-mix(in srgb, var(--space-accent) 24%, rgba(255, 255, 255, 0.1)) !important;
    border-color: color-mix(in srgb, var(--space-accent) 52%, rgba(255, 255, 255, 0.16)) !important;
}

.league-space-shell .space-participants-dropdown {
    position: relative !important;
    z-index: 140 !important;
}

.league-space-shell .space-participants-dropdown::after {
    content: "";
    position: absolute;
    left: -6px;
    right: -6px;
    top: 100%;
    height: 16px;
}

.league-space-shell .space-participants-dropdown .dropdown-menu {
    top: calc(100% + 8px) !important;
    margin-top: 0 !important;
    padding: 8px !important;
    min-width: 190px !important;
    border-radius: 18px !important;
    background: rgba(6, 14, 24, 0.97) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.42) !important;
    backdrop-filter: blur(18px) !important;
    z-index: 2000 !important;
}

.league-space-shell .space-participants-dropdown:hover .dropdown-menu,
.league-space-shell .space-participants-dropdown:focus-within .dropdown-menu {
    display: block !important;
}

.league-space-shell .space-participants-dropdown .dropdown-item {
    border-radius: 13px !important;
    padding: 9px 12px !important;
}

.league-space-shell .space-vk-logo {
    width: 21px !important;
    height: 21px !important;
    display: block !important;
    filter: invert(1) !important;
}

@media (max-width: 767px) {
    .league-space-shell .space-topbar {
        align-items: flex-start !important;
    }

    .league-space-shell .space-topbar__actions {
        gap: 6px !important;
    }

    .league-space-shell .space-nav-button span {
        display: none;
    }

    .league-space-shell .space-nav-button {
        width: 38px !important;
        padding: 0 !important;
    }
}

.league-space-shell .space-main > .main-content > .container {
    max-width: none !important;
    margin-top: 0 !important;
    padding: 0 !important;
}

.league-space-shell .space-layout {
    display: grid !important;
    grid-template-columns: 280px minmax(0, 1fr) !important;
    gap: 24px !important;
    align-items: start !important;
}

.league-space-shell .space-layout.is-sidebar-collapsed {
    grid-template-columns: 78px minmax(0, 1fr) !important;
}

.league-space-shell .space-layout.is-sidebar-collapsed > .space-sidebar {
    display: block !important;
}

.league-space-shell .space-sidebar,
.league-space-shell .space-main {
    min-width: 0 !important;
}

.league-space-shell .space-panel {
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    background: color-mix(in srgb, var(--space-surface) 76%, rgba(5, 8, 14, 0.92)) !important;
    color: #fff !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18) !important;
    backdrop-filter: blur(18px) !important;
}

.league-space-shell .space-panel__header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 12px !important;
}

.league-space-shell .space-panel__header h2 {
    margin: 0 !important;
}

.league-space-shell .space-panel__header span {
    color: rgba(255, 255, 255, 0.54) !important;
}

.league-space-shell .space-stack {
    display: grid !important;
}

.league-space-shell .space-rail-card {
    text-decoration: none !important;
    color: #fff !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease !important;
}

.league-space-shell .space-rail-card:hover {
    color: #fff !important;
    transform: translateY(-1px) !important;
    border-color: color-mix(in srgb, var(--space-accent) 38%, rgba(255, 255, 255, 0.12)) !important;
    background: rgba(255, 255, 255, 0.06) !important;
}

.league-space-shell .space-rail-card span,
.league-space-shell .space-rail-card small {
    color: rgba(255, 255, 255, 0.62) !important;
}

.league-space-shell .space-rail-card--cup {
    background: linear-gradient(180deg, rgba(255, 208, 102, 0.10), rgba(255, 255, 255, 0.04)) !important;
}

.league-space-shell .space-sidebar .space-panel {
    padding: 14px !important;
    border-radius: 20px !important;
}

.league-space-shell .space-sidebar-shell {
    position: sticky !important;
    top: 14px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
}

.league-space-shell .space-sidebar-toolbar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
}

.league-space-shell .space-sidebar-eyebrow {
    display: block !important;
    font-size: 0.68rem !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    color: rgba(255, 255, 255, 0.44) !important;
    margin-bottom: 2px !important;
}

.league-space-shell .space-sidebar-toolbar__title strong {
    display: block !important;
    font-size: 1rem !important;
}

.league-space-shell .space-layout.is-sidebar-collapsed .space-sidebar-toolbar {
    justify-content: center !important;
}

.league-space-shell .space-layout.is-sidebar-collapsed .space-sidebar-toolbar__title {
    display: none !important;
}

.league-space-shell .space-sidebar-toggle {
    width: 38px !important;
    height: 38px !important;
    border-radius: 14px !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    background: rgba(255, 255, 255, 0.06) !important;
    color: #fff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease !important;
}

.league-space-shell .space-sidebar-toggle:hover {
    transform: translateY(-1px) !important;
    border-color: color-mix(in srgb, var(--space-accent) 42%, rgba(255, 255, 255, 0.16)) !important;
    background: color-mix(in srgb, var(--space-accent) 12%, rgba(255, 255, 255, 0.08)) !important;
}

.league-space-shell .space-sidebar-primary {
    display: grid !important;
    gap: 8px !important;
}

.league-space-shell .space-sidebar-link {
    width: 100% !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 10px 12px !important;
    border-radius: 14px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    background: rgba(255, 255, 255, 0.04) !important;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    text-align: left !important;
    transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease !important;
}

.league-space-shell .space-sidebar-link:hover,
.league-space-shell .space-sidebar-link.is-active {
    transform: translateY(-1px) !important;
    border-color: color-mix(in srgb, var(--space-accent) 45%, rgba(255, 255, 255, 0.16)) !important;
    background: color-mix(in srgb, var(--space-accent) 14%, rgba(255, 255, 255, 0.06)) !important;
    color: #fff !important;
}

.league-space-shell .space-sidebar-link i {
    width: 18px !important;
    text-align: center !important;
    flex: 0 0 18px !important;
}

.league-space-shell .space-sidebar-link__label {
    min-width: 0 !important;
}

.league-space-shell .space-sidebar-sections {
    display: grid !important;
    gap: 14px !important;
}

.league-space-shell .space-layout.is-sidebar-collapsed .space-sidebar-shell {
    padding: 12px 10px !important;
}

.league-space-shell .space-layout.is-sidebar-collapsed .space-sidebar-link {
    justify-content: center !important;
    padding: 10px !important;
}

.league-space-shell .space-layout.is-sidebar-collapsed .space-sidebar-link__label {
    display: none !important;
}

.league-space-shell .space-layout.is-sidebar-collapsed .space-sidebar-link i {
    margin: 0 !important;
}

.league-space-shell .space-sidebar .space-panel__header {
    margin-bottom: 10px !important;
}

.league-space-shell .space-sidebar .space-panel__header h2 {
    font-size: 0.9rem !important;
}

.league-space-shell .space-sidebar .space-panel__header span {
    font-size: 0.76rem !important;
}

.league-space-shell .space-sidebar .space-stack {
    display: grid !important;
    gap: 8px !important;
}

.league-space-shell .space-sidebar .space-rail-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 2px !important;
    padding: 9px 11px !important;
    border-radius: 14px !important;
    text-align: left !important;
    line-height: 1.18 !important;
    width: 100% !important;
}

.league-space-shell .space-sidebar .space-rail-card strong {
    font-size: 0.88rem !important;
    line-height: 1.18 !important;
}

.league-space-shell .space-sidebar .space-rail-card span,
.league-space-shell .space-sidebar .space-rail-card small {
    font-size: 0.72rem !important;
    line-height: 1.2 !important;
}

.league-space-shell .space-sidebar .space-rail-card.active {
    border-color: color-mix(in srgb, var(--space-accent) 58%, rgba(255, 255, 255, 0.14)) !important;
    background: color-mix(in srgb, var(--space-accent) 16%, rgba(255, 255, 255, 0.05)) !important;
}

.league-space-shell .space-mobile-sidebar {
    display: none !important;
}

.league-space-shell .space-bottom-nav {
    position: fixed !important;
    left: 12px !important;
    right: 12px !important;
    bottom: max(12px, env(safe-area-inset-bottom)) !important;
    z-index: 1200 !important;
    display: none !important;
    grid-template-columns: repeat(var(--space-bottom-nav-count, 4), minmax(0, 1fr)) !important;
    gap: 8px !important;
    padding: 8px !important;
    border-radius: 24px !important;
    background: rgba(6, 14, 24, 0.96) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.38) !important;
    backdrop-filter: blur(18px) !important;
}

body.space-mode-body .modal-backdrop {
    z-index: 1590 !important;
}

body.space-mode-body .modal {
    z-index: 1600 !important;
}

body.space-mode-body .offcanvas-backdrop {
    z-index: 1590 !important;
}

body.space-mode-body .offcanvas {
    z-index: 1600 !important;
}

.league-space-shell #spaceStatsModal .modal-dialog {
    max-width: min(980px, calc(100vw - 24px)) !important;
}

.league-space-shell #spaceStatsModal .modal-content {
    border-radius: 34px !important;
    border: 1px solid color-mix(in srgb, var(--space-block-color, #ffffff) 55%, rgba(255, 255, 255, 0.18)) !important;
    background: #ffffff !important;
    color: #142033 !important;
    box-shadow: 0 30px 90px rgba(36, 72, 118, 0.24) !important;
    backdrop-filter: none !important;
    overflow: hidden !important;
}

.league-space-shell #spaceStatsModal .modal-header {
    padding: 22px 24px 16px !important;
    border-bottom: 1px solid rgba(21, 84, 199, 0.10) !important;
    background: #ffffff !important;
}

.league-space-shell #spaceStatsModal .modal-title {
    color: #111827 !important;
    font-size: clamp(1.35rem, 2vw, 2.1rem) !important;
    font-weight: 900 !important;
    letter-spacing: -0.04em !important;
}

.league-space-shell #spaceStatsModal .modal-body {
    padding: 18px 24px 24px !important;
}

.league-space-shell #spaceStatsModal .space-frame-kicker {
    margin-bottom: 4px !important;
    color: var(--space-accent) !important;
    font-size: 0.72rem !important;
    font-weight: 950 !important;
    letter-spacing: 0.18em !important;
    text-transform: uppercase !important;
}

.league-space-shell #spaceStatsModal .form-label {
    margin-bottom: 8px !important;
    font-size: 0.76rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    color: color-mix(in srgb, var(--space-accent) 80%, #1f2937) !important;
}

.league-space-shell #spaceStatsDivisionSelect {
    min-height: 46px !important;
    border-radius: 18px !important;
    border: 1px solid rgba(21, 84, 199, 0.14) !important;
    background: rgba(255, 255, 255, 0.82) !important;
    color: #111827 !important;
    font-weight: 800 !important;
    box-shadow: 0 12px 30px rgba(34, 73, 120, 0.08) !important;
}

.league-space-shell #spaceStatsDivisionSelect option {
    background: #ffffff !important;
    color: #111827 !important;
}

.league-space-shell .space-stats-frame__control {
    display: grid !important;
    gap: 10px !important;
    padding: 14px !important;
    border-radius: 24px !important;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.56)),
        color-mix(in srgb, var(--space-block-color, #ffffff) 82%, #eef5ff) !important;
    border: 1px solid color-mix(in srgb, var(--space-accent) 14%, rgba(21, 84, 199, 0.10)) !important;
    box-shadow: 0 16px 40px rgba(34, 73, 120, 0.09) !important;
}

.league-space-shell .space-stats-frame__control-head {
    display: flex !important;
    align-items: flex-end !important;
    justify-content: space-between !important;
    gap: 12px !important;
}

.league-space-shell .space-stats-frame__control-head small {
    color: #7b8aa3 !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
}

.league-space-shell .space-stats-division-list {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)) !important;
    gap: 10px !important;
}

.league-space-shell .space-stats-division-card {
    min-height: 52px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    padding: 10px 14px !important;
    border-radius: 18px !important;
    border: 1px solid rgba(21, 84, 199, 0.12) !important;
    background: rgba(255, 255, 255, 0.72) !important;
    color: #132238 !important;
    font-weight: 900 !important;
    text-align: left !important;
    box-shadow: 0 10px 26px rgba(34, 73, 120, 0.07) !important;
    transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, color 0.16s ease !important;
}

.league-space-shell .space-stats-division-card span {
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.league-space-shell .space-stats-division-card i {
    color: color-mix(in srgb, var(--space-accent) 65%, #7b8aa3) !important;
    font-size: 0.8rem !important;
}

.league-space-shell .space-stats-division-card:hover,
.league-space-shell .space-stats-division-card.is-active {
    transform: translateY(-1px) !important;
    border-color: transparent !important;
    background: var(--space-frame-accent, #1554c7) !important;
    color: #ffffff !important;
}

.league-space-shell .space-stats-division-card:hover i,
.league-space-shell .space-stats-division-card.is-active i {
    color: #ffffff !important;
}

.league-space-shell #spaceStatsTabs {
    gap: 10px !important;
    margin-bottom: 16px !important;
}

.league-space-shell #spaceStatsTabs .btn {
    min-height: 38px !important;
    padding: 0 14px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(21, 84, 199, 0.12) !important;
    background: rgba(255, 255, 255, 0.7) !important;
    color: #526071 !important;
    font-weight: 800 !important;
    box-shadow: 0 10px 26px rgba(34, 73, 120, 0.08) !important;
    transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease !important;
}

.league-space-shell #spaceStatsTabs .btn:hover {
    transform: translateY(-1px) !important;
    border-color: color-mix(in srgb, var(--space-accent) 36%, rgba(21, 84, 199, 0.14)) !important;
    background: color-mix(in srgb, var(--space-accent) 10%, #ffffff) !important;
    color: #1f2937 !important;
}

.league-space-shell #spaceStatsTabs .btn.active,
.league-space-shell #spaceStatsTabs .btn.btn-primary {
    color: #ffffff !important;
    border-color: transparent !important;
    background: var(--space-frame-accent, #1554c7) !important;
    box-shadow: 0 14px 34px color-mix(in srgb, var(--space-frame-accent, #1554c7) 26%, transparent) !important;
}

.league-space-shell .space-stats-frame {
    display: grid !important;
    gap: 16px !important;
}

.league-space-shell .space-stats-frame__tabs {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
}

.league-space-shell .space-stats-frame__content {
    display: grid !important;
    gap: 10px !important;
    padding: 12px !important;
    border-radius: 24px !important;
    background: rgba(255, 255, 255, 0.56) !important;
    border: 1px solid rgba(21, 84, 199, 0.10) !important;
}

.league-space-shell .space-stats-frame-row {
    display: grid !important;
    grid-template-columns: 34px 34px minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 10px 12px !important;
    border-radius: 18px !important;
    background: rgba(255, 255, 255, 0.74) !important;
    box-shadow: 0 10px 26px rgba(34, 73, 120, 0.08) !important;
}

.league-space-shell .space-stats-frame-rank {
    width: 30px !important;
    height: 30px !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: color-mix(in srgb, var(--space-accent) 14%, #ffffff) !important;
    color: var(--space-accent) !important;
    font-weight: 950 !important;
}

.league-space-shell .space-stats-frame-logo {
    width: 30px !important;
    height: 30px !important;
    border-radius: 999px !important;
    object-fit: contain !important;
    background: #fff !important;
}

.league-space-shell .space-stats-frame-logo--empty {
    background: color-mix(in srgb, var(--space-accent) 10%, #ffffff) !important;
}

.league-space-shell .space-stats-frame-person {
    min-width: 0 !important;
    display: grid !important;
    gap: 2px !important;
}

.league-space-shell .space-stats-frame-person a {
    color: #111827 !important;
    font-weight: 900 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.league-space-shell .space-stats-frame-person span {
    color: #6b7280 !important;
    font-size: 0.78rem !important;
}

.league-space-shell .space-stats-frame-value {
    min-width: 58px !important;
    padding: 7px 10px !important;
    border-radius: 999px !important;
    background: var(--space-accent) !important;
    color: #fff !important;
    text-align: center !important;
    font-size: 0.85rem !important;
}

@media (max-width: 767px) {
    .league-space-shell #spaceStatsModal .modal-dialog {
        max-width: calc(100vw - 16px) !important;
        margin: 8px auto !important;
    }

    .league-space-shell #spaceStatsModal .modal-content {
        border-radius: 24px !important;
    }

    .league-space-shell #spaceStatsModal .modal-header {
        padding: 16px 16px 12px !important;
    }

    .league-space-shell #spaceStatsModal .modal-body {
        padding: 16px !important;
    }

    .league-space-shell #spaceStatsTabs {
        gap: 8px !important;
    }

    .league-space-shell #spaceStatsTabs .btn {
        min-height: 36px !important;
        padding: 0 12px !important;
        font-size: 0.78rem !important;
    }

    .league-space-shell .space-stats-frame__control {
        padding: 12px !important;
        border-radius: 20px !important;
    }

    .league-space-shell .space-stats-frame__control-head {
        align-items: flex-start !important;
        flex-direction: column !important;
        gap: 2px !important;
    }

    .league-space-shell .space-stats-division-list {
        grid-template-columns: 1fr !important;
    }

    .league-space-shell .space-stats-frame-row {
        grid-template-columns: 28px 30px minmax(0, 1fr) !important;
        gap: 8px !important;
        padding: 9px !important;
    }

    .league-space-shell .space-stats-frame-value {
        grid-column: 3 !important;
        justify-self: start !important;
        min-width: 0 !important;
        padding: 5px 9px !important;
    }
}

.league-space-shell .space-bottom-nav__item {
    min-height: 54px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    border-radius: 18px !important;
    border: 1px solid transparent !important;
    background: transparent !important;
    color: rgba(255, 255, 255, 0.72) !important;
    text-decoration: none !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
}

.league-space-shell .space-bottom-nav__item.is-active {
    color: #fff !important;
    background: color-mix(in srgb, var(--space-accent) 18%, rgba(255, 255, 255, 0.08)) !important;
    border-color: color-mix(in srgb, var(--space-accent) 48%, rgba(255, 255, 255, 0.12)) !important;
}

.league-space-shell .space-bottom-nav__item i {
    font-size: 1rem !important;
}

.league-space-shell .space-drawer {
    background: rgba(6, 14, 24, 0.98) !important;
    color: #fff !important;
    border-right: 1px solid rgba(255, 255, 255, 0.12) !important;
    backdrop-filter: blur(20px) !important;
}

.league-space-shell .space-drawer .offcanvas-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

@media (max-width: 767px) {
    .league-space-shell .space-layout {
        display: block !important;
    }

    .league-space-shell .space-layout > .space-sidebar {
        display: none !important;
    }

    .league-space-shell .space-mobile-sidebar {
        display: grid !important;
        gap: 12px !important;
        margin: 12px 0 !important;
    }

    .league-space-shell {
        padding-bottom: 92px !important;
    }

    .league-space-shell .space-bottom-nav {
        display: grid !important;
    }
}

.league-space-shell .space-main .card {
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 24px !important;
    background: color-mix(in srgb, var(--space-surface) 80%, rgba(5, 8, 14, 0.88)) !important;
    color: #fff !important;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.2) !important;
    overflow: hidden;
    backdrop-filter: blur(16px);
}

.league-space-shell .space-main .card + .card {
    margin-top: 18px;
}

.league-space-shell .space-main .card-body,
.league-space-shell .space-main .card-header {
    background: transparent !important;
}

.league-space-shell .space-main .card-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.league-space-shell .space-main .card:first-child {
    background:
        radial-gradient(circle at top left, color-mix(in srgb, var(--space-accent) 18%, transparent), transparent 34%),
        color-mix(in srgb, var(--space-surface) 78%, rgba(5, 8, 14, 0.9)) !important;
}

.league-space-shell .space-main .card:first-child .card-body {
    align-items: center;
    gap: 10px 0;
}

.league-space-shell .space-main .card:first-child .alert-info {
    background: transparent !important;
}

.league-space-shell .space-main .nav-tabs {
    border-bottom: 0 !important;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.league-space-shell .space-main .nav-tabs .nav-link {
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 999px !important;
    color: rgba(255, 255, 255, 0.72) !important;
    background: rgba(255, 255, 255, 0.06) !important;
    font-weight: 700;
    padding: 8px 14px;
}

.league-space-shell .space-main .nav-tabs .nav-link.active,
.league-space-shell .space-main .nav-tabs .nav-link:hover {
    color: #fff !important;
    background: var(--space-frame-accent, #1554c7) !important;
    border-color: var(--space-frame-accent, #1554c7) !important;
}

.league-space-shell .space-main .bg-dark,
.league-space-shell .space-main .bg-secondarys {
    background-color: rgba(255, 255, 255, 0.055) !important;
}

.league-space-shell .space-main .match-item,
.league-space-shell .space-main .standing-table tbody tr,
.league-space-shell .space-main .stats-table tbody tr {
    transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.league-space-shell .space-main .match-item:hover {
    transform: translateY(-1px);
    background: color-mix(in srgb, var(--space-accent) 12%, rgba(255, 255, 255, 0.06)) !important;
}

.league-space-shell .space-directory-search {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0 0 14px;
    padding: 12px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.045)),
        color-mix(in srgb, var(--space-surface) 72%, transparent);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.20);
    position: relative;
}

.league-space-shell .space-directory-search__field {
    min-width: min(100%, 430px);
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px 8px 8px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(5, 13, 25, 0.34);
    color: rgba(255, 255, 255, 0.72);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.league-space-shell .space-directory-search__field:focus-within {
    border-color: color-mix(in srgb, var(--space-accent) 66%, rgba(255, 255, 255, 0.2));
    background: rgba(5, 13, 25, 0.52);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--space-accent) 18%, transparent);
}

.league-space-shell .space-directory-search__icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 14px;
    color: #07111d;
    background: var(--space-accent);
    box-shadow: 0 10px 28px color-mix(in srgb, var(--space-accent) 28%, transparent);
}

.league-space-shell .space-directory-search__field input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff;
    font-weight: 700;
}

.league-space-shell .space-directory-search__field input::placeholder {
    color: rgba(255, 255, 255, 0.48);
    font-weight: 600;
}

.league-space-shell .space-directory-search button,
.league-space-shell .space-directory-search__reset,
.league-space-shell .space-pagination a,
.league-space-shell .space-pagination span {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.league-space-shell .space-directory-search button {
    border-color: color-mix(in srgb, var(--space-accent) 48%, rgba(255, 255, 255, 0.12));
    color: #07111d;
    background: var(--space-accent);
    box-shadow: 0 12px 32px color-mix(in srgb, var(--space-accent) 24%, transparent);
}

.league-space-shell .space-directory-search button:hover,
.league-space-shell .space-directory-search__reset:hover,
.league-space-shell .space-pagination a:hover {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--space-accent) 50%, rgba(255, 255, 255, 0.16));
}

.league-space-shell .space-directory-search__hint {
    flex-basis: 100%;
    padding: 0 6px 2px 58px;
    color: rgba(255, 255, 255, 0.54);
    font-size: 0.86rem;
}

.league-space-shell .space-directory-search.is-loading::after {
    content: "";
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.26);
    border-top-color: var(--space-accent);
    animation: space-search-spin 0.8s linear infinite;
}

@keyframes space-search-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 640px) {
    .league-space-shell .space-directory-search {
        padding: 10px;
    }

    .league-space-shell .space-directory-search__field {
        min-width: 100%;
    }

    .league-space-shell .space-directory-search__hint {
        padding-left: 4px;
    }
}

.league-space-shell .space-directory-count {
    margin: -4px 0 16px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.92rem;
}

.league-space-shell .space-directory-empty {
    padding: 28px;
    border-radius: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.68);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.league-space-shell .space-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.league-space-shell .space-pagination span {
    opacity: 0.48;
}

.league-space-shell .space-pagination a.is-active {
    color: #08111d;
    background: var(--space-accent);
    border-color: transparent;
}

.league-space-shell .space-division-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    margin-bottom: 18px;
    padding: 18px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background:
        radial-gradient(circle at top left, color-mix(in srgb, var(--space-accent) 18%, transparent), transparent 34%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.045)),
        color-mix(in srgb, var(--space-surface) 72%, transparent);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.24);
}

.league-space-shell .space-division-hero__identity {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.league-space-shell .space-division-hero__logo {
    width: 72px;
    height: 72px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 72px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.22);
    color: #0b1422;
    font-weight: 900;
    font-size: 1.8rem;
    overflow: hidden;
}

.league-space-shell .space-division-hero__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.league-space-shell .space-division-hero__copy {
    min-width: 0;
}

.league-space-shell .space-division-hero__kicker,
.league-space-shell .space-division-stat span,
.league-space-shell .space-division-season span {
    display: block;
    color: color-mix(in srgb, var(--space-accent) 78%, #ffffff);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.league-space-shell .space-division-hero__copy h1 {
    margin: 4px 0 4px;
    color: #fff;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 900;
    line-height: 1.05;
}

.league-space-shell .space-division-hero__copy p {
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    font-weight: 700;
}

.league-space-shell .space-division-hero__meta {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.league-space-shell .space-division-season,
.league-space-shell .space-division-stat {
    min-width: 158px;
    margin: 0;
    padding: 12px 14px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(5, 13, 25, 0.34);
}

.league-space-shell .space-division-season select {
    width: 100%;
    min-width: 180px;
    margin-top: 8px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 13px;
    background-color: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-weight: 800;
}

.league-space-shell .space-division-season select option {
    background: #111827;
    color: #fff;
}

.league-space-shell .space-division-stat strong {
    display: block;
    margin-top: 5px;
    color: #fff;
    font-size: 1.75rem;
    line-height: 1;
}

@media (max-width: 900px) {
    .league-space-shell .space-division-hero {
        grid-template-columns: 1fr;
    }

    .league-space-shell .space-division-hero__meta {
        flex-wrap: wrap;
    }
}

/* Unified configurable shell for all public pages inside a league space. */
.league-space-shell {
    min-height: 100vh !important;
    font-family: var(--space-font-family, inherit) !important;
    color: #132238 !important;
    background:
        var(--space-bg-image, none),
        radial-gradient(circle at top right, color-mix(in srgb, var(--space-accent, #1554c7) 12%, transparent), transparent 36%),
        linear-gradient(135deg, var(--space-bg-from, #f7fbff), var(--space-bg-to, #eef4fb)) !important;
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed !important;
}

html:has(.league-space-shell),
body.space-mode-body,
body.space-mode-body .overflow,
body.space-mode-body main.container-fluid {
    background:
        var(--space-bg-image, none),
        linear-gradient(135deg, var(--space-bg-from, #f7fbff), var(--space-bg-to, #eef4fb)) !important;
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed !important;
}

.league-space-shell .space-layout {
    display: grid !important;
    grid-template-columns: 240px minmax(0, 1fr) !important;
    gap: 24px !important;
    align-items: start !important;
}

.league-space-shell .space-main,
.league-space-shell .main-content {
    min-width: 0 !important;
}

.league-space-shell .space-topbar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    margin-bottom: 24px !important;
    padding: 10px 14px !important;
    border-radius: 22px !important;
    background: color-mix(in srgb, var(--space-header-bg, #ffffff) 92%, transparent) !important;
    border: 1px solid color-mix(in srgb, var(--space-accent, #1554c7) 12%, #dfe8f3) !important;
    color: #132238 !important;
    box-shadow: 0 12px 34px rgba(21, 84, 199, 0.08) !important;
    backdrop-filter: blur(16px) !important;
}

.league-space-shell .space-topbar__brand,
.league-space-shell .space-topbar__brand--link,
.league-space-shell .space-topbar__brand--link:hover {
    color: #132238 !important;
    text-decoration: none !important;
}

.league-space-shell .space-topbar__brand img {
    width: 30px !important;
    height: 30px !important;
    object-fit: contain !important;
}

.league-space-shell .space-topbar__actions {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    justify-content: flex-end !important;
}

.league-space-shell .space-nav-button,
.league-space-shell .space-icon-button,
.league-space-shell .space-social-link,
.league-space-shell .space-topbar .btn {
    min-height: 38px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    border-radius: 999px !important;
    border: 1px solid #dfe8f3 !important;
    background: rgba(255, 255, 255, 0.76) !important;
    color: #132238 !important;
    font-weight: 850 !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

.league-space-shell .space-nav-button--primary,
.league-space-shell .space-topbar .btn-primary {
    color: #ffffff !important;
    background: var(--space-accent, #1554c7) !important;
    border-color: var(--space-accent, #1554c7) !important;
}

.league-space-shell .space-account-dropdown {
    position: relative !important;
}

.league-space-shell .space-account-button {
    min-height: 38px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 4px 11px 4px 5px !important;
    border-radius: 999px !important;
    border: 1px solid color-mix(in srgb, var(--space-accent, #1554c7) 22%, #dfe8f3) !important;
    background: rgba(255, 255, 255, 0.82) !important;
    color: #132238 !important;
    font-weight: 850 !important;
    line-height: 1 !important;
    box-shadow: none !important;
    transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease !important;
}

.league-space-shell .space-account-button:hover,
.league-space-shell .space-account-button[aria-expanded="true"] {
    transform: translateY(-1px) !important;
    border-color: var(--space-accent, #1554c7) !important;
    background: color-mix(in srgb, var(--space-accent, #1554c7) 10%, #ffffff) !important;
}

.league-space-shell .space-account-avatar {
    width: 30px !important;
    height: 30px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    border-radius: 50% !important;
    background: var(--space-accent, #1554c7) !important;
    color: #ffffff !important;
    overflow: hidden !important;
}

.league-space-shell .space-account-avatar img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.league-space-shell .space-account-label {
    white-space: nowrap !important;
}

.league-space-shell .space-account-chevron {
    font-size: 0.72rem !important;
    color: #7b8aa3 !important;
}

.league-space-shell .space-account-menu {
    min-width: 210px !important;
    padding: 8px !important;
}

.league-space-shell .space-account-menu .dropdown-item {
    display: flex !important;
    align-items: center !important;
    border-radius: 12px !important;
    padding: 9px 11px !important;
    font-weight: 780 !important;
}

.league-space-shell .space-account-menu .dropdown-item.text-danger {
    color: #dc3545 !important;
}

.league-space-shell .space-account-menu .dropdown-item.text-danger:hover {
    color: #bb2d3b !important;
    background: rgba(220, 53, 69, 0.08) !important;
}

.league-space-shell .space-account-menu .dropdown-divider {
    margin: 6px 4px !important;
    border-color: rgba(19, 34, 56, 0.1) !important;
}

.league-space-shell .space-vk-logo {
    filter: none !important;
}

.league-space-shell .space-sidebar-shell {
    position: sticky !important;
    top: 16px !important;
    min-height: calc(100vh - 32px) !important;
    padding: 18px 14px !important;
    border-radius: 0 28px 28px 0 !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid #dfe8f3 !important;
    box-shadow: 0 22px 70px rgba(15, 35, 75, 0.09) !important;
    color: #132238 !important;
    backdrop-filter: blur(18px) !important;
}

.league-space-shell .space-sidebar-brand {
    justify-content: center !important;
    padding: 4px 0 22px !important;
}

.league-space-shell .space-sidebar-brand img,
.league-space-shell .space-sidebar-brand__mark {
    display: none !important;
}

.league-space-shell .space-sidebar-brand span {
    color: var(--space-accent, #1554c7) !important;
    font-weight: 950 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
}

.league-space-shell .space-sidebar-nav {
    display: grid !important;
    gap: 10px !important;
}

.league-space-shell .space-sidebar-link {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    min-height: 44px !important;
    padding: 10px 12px !important;
    border: 0 !important;
    border-radius: 16px !important;
    color: #9aa5b7 !important;
    background: transparent !important;
    text-decoration: none !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em !important;
}

.league-space-shell .space-sidebar-link i {
    width: 20px !important;
    text-align: center !important;
}

.league-space-shell .space-sidebar-link:hover,
.league-space-shell .space-sidebar-link.is-active,
.league-space-shell .space-sidebar-link.active {
    color: var(--space-accent, #1554c7) !important;
    background: rgba(21, 84, 199, 0.07) !important;
}

.league-space-shell .space-panel,
.league-space-shell .card,
.league-space-shell .bg-dark,
.league-space-shell .bg-secondarys,
.league-space-shell .list-group-item,
.league-space-shell .modal-content {
    background: color-mix(in srgb, var(--space-block-color, #ffffff) 90%, transparent) !important;
    border: 1px solid color-mix(in srgb, var(--space-accent, #1554c7) 12%, #dfe8f3) !important;
    color: #132238 !important;
    box-shadow: 0 20px 56px rgba(15, 35, 75, 0.08) !important;
    backdrop-filter: blur(14px) !important;
}

.league-space-shell .card,
.league-space-shell .space-panel,
.league-space-shell .modal-content {
    border-radius: 22px !important;
}

.league-space-shell .card-header,
.league-space-shell .modal-header,
.league-space-shell .modal-footer {
    background: transparent !important;
    border-color: rgba(19, 34, 56, 0.1) !important;
    color: #132238 !important;
}

.league-space-shell .text-white,
.league-space-shell .card-title,
.league-space-shell .space-panel__header h2,
.league-space-shell .space-panel__title,
.league-space-shell h1,
.league-space-shell h2,
.league-space-shell h3,
.league-space-shell h4,
.league-space-shell h5,
.league-space-shell h6 {
    color: #132238 !important;
}

.league-space-shell .text-muted,
.league-space-shell small,
.league-space-shell .small {
    color: #7b8aa3 !important;
}

.league-space-shell a:not(.btn):not(.space-sidebar-link):not(.space-nav-button):not(.space-icon-button):not(.space-social-link) {
    color: var(--space-accent, #1554c7) !important;
}

.league-space-shell .nav-tabs,
.league-space-shell .nav-pills {
    gap: 8px !important;
    border-bottom: 0 !important;
    flex-wrap: wrap !important;
}

.league-space-shell .nav-tabs .nav-link,
.league-space-shell .nav-pills .nav-link {
    min-height: 38px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid #dfe8f3 !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.78) !important;
    color: #7b8aa3 !important;
    font-weight: 850 !important;
}

.league-space-shell .nav-tabs .nav-link.active,
.league-space-shell .nav-tabs .nav-link:hover,
.league-space-shell .nav-pills .nav-link.active,
.league-space-shell .nav-pills .nav-link:hover {
    color: #ffffff !important;
    background: var(--space-frame-accent, #1554c7) !important;
    border-color: var(--space-frame-accent, #1554c7) !important;
}

.league-space-shell .btn,
.league-space-shell button.btn {
    border-radius: 999px !important;
    font-weight: 850 !important;
}

.league-space-shell .btn-primary,
.league-space-shell .btn-outline-primary:hover {
    color: #ffffff !important;
    background: var(--space-accent, #1554c7) !important;
    border-color: var(--space-accent, #1554c7) !important;
}

.league-space-shell .btn-outline-primary,
.league-space-shell .btn-outline-light,
.league-space-shell .btn-light {
    color: var(--space-accent, #1554c7) !important;
    background: rgba(255, 255, 255, 0.78) !important;
    border-color: color-mix(in srgb, var(--space-accent, #1554c7) 22%, #dfe8f3) !important;
}

.league-space-shell .table,
.league-space-shell .table-dark {
    --bs-table-bg: rgba(255, 255, 255, 0.9) !important;
    --bs-table-striped-bg: rgba(21, 84, 199, 0.04) !important;
    --bs-table-hover-bg: rgba(21, 84, 199, 0.07) !important;
    --bs-table-color: #132238 !important;
    --bs-table-striped-color: #132238 !important;
    --bs-table-hover-color: #132238 !important;
    --bs-table-border-color: rgba(19, 34, 56, 0.1) !important;
    color: #132238 !important;
    border-color: rgba(19, 34, 56, 0.1) !important;
}

.league-space-shell .table thead th,
.league-space-shell .table-dark thead th {
    color: #72819a !important;
    border-color: rgba(19, 34, 56, 0.18) !important;
}

.league-space-shell .table td,
.league-space-shell .table th {
    border-color: rgba(19, 34, 56, 0.08) !important;
}

.league-space-shell .form-control,
.league-space-shell .form-select {
    border-radius: 14px !important;
    border-color: #dfe8f3 !important;
    background-color: rgba(255, 255, 255, 0.86) !important;
    color: #132238 !important;
}

.league-space-shell .dropdown-menu {
    background: rgba(255, 255, 255, 0.96) !important;
    border: 1px solid #dfe8f3 !important;
    border-radius: 18px !important;
    box-shadow: 0 18px 46px rgba(15, 35, 75, 0.12) !important;
}

.league-space-shell .dropdown-item {
    color: #132238 !important;
}

.league-space-shell .dropdown-item:hover {
    color: var(--space-accent, #1554c7) !important;
    background: rgba(21, 84, 199, 0.07) !important;
}

.league-space-shell .space-mobile-nav {
    background: rgba(255, 255, 255, 0.92) !important;
    border: 1px solid #dfe8f3 !important;
    box-shadow: 0 18px 44px rgba(15, 35, 75, 0.14) !important;
}

.league-space-shell .space-mobile-nav a,
.league-space-shell .space-mobile-nav button {
    color: #72819a !important;
}

.league-space-shell .space-mobile-nav a.is-active,
.league-space-shell .space-mobile-nav button.is-active {
    color: var(--space-accent, #1554c7) !important;
}

@media (max-width: 1199px) {
    .league-space-shell .space-layout {
        grid-template-columns: 1fr !important;
    }

    .league-space-shell .space-sidebar-shell {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .league-space-shell {
        padding-bottom: 88px !important;
        background-attachment: scroll !important;
    }

    .league-space-shell .container-fluid {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .league-space-shell .space-topbar {
        margin-bottom: 14px !important;
        border-radius: 18px !important;
    }

    .league-space-shell .space-topbar__actions {
        gap: 6px !important;
    }

    .league-space-shell .space-nav-button,
    .league-space-shell .space-icon-button,
    .league-space-shell .space-social-link {
        min-height: 34px !important;
        padding: 6px 10px !important;
        font-size: 0.86rem !important;
    }

    .league-space-shell .space-account-button {
        min-height: 34px !important;
        padding: 2px 6px 2px 2px !important;
    }

    .league-space-shell .space-account-avatar {
        width: 30px !important;
        height: 30px !important;
    }

    .league-space-shell .space-account-label {
        display: none !important;
    }

    .league-space-shell .card,
    .league-space-shell .space-panel {
        border-radius: 18px !important;
    }
}

/* Offcanvas drawers opened from the league-space sidebar/bottom nav. */
.league-space-shell .space-drawer,
body.space-mode-body .space-drawer {
    color: #132238 !important;
    background:
        radial-gradient(circle at top right, color-mix(in srgb, var(--space-accent, #1554c7) 10%, transparent), transparent 34%),
        linear-gradient(145deg, #ffffff, color-mix(in srgb, var(--space-block-color, #ffffff) 88%, #f3f7fc)) !important;
    border-right: 1px solid #dfe8f3 !important;
    box-shadow: 24px 0 70px rgba(15, 35, 75, 0.16) !important;
    backdrop-filter: blur(20px) !important;
}

.league-space-shell .space-drawer .offcanvas-header,
body.space-mode-body .space-drawer .offcanvas-header {
    padding: 18px 20px !important;
    border-bottom: 1px solid #dfe8f3 !important;
    background: rgba(247, 250, 255, 0.86) !important;
}

.league-space-shell .space-drawer .offcanvas-title,
body.space-mode-body .space-drawer .offcanvas-title {
    color: var(--space-accent, #1554c7) !important;
    font-weight: 950 !important;
}

.league-space-shell .space-drawer .btn-close,
body.space-mode-body .space-drawer .btn-close {
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    border-radius: 999px !important;
    background-color: #eef5ff !important;
    opacity: 1 !important;
    filter: none !important;
}

.league-space-shell .space-drawer .offcanvas-body,
body.space-mode-body .space-drawer .offcanvas-body {
    padding: 16px !important;
}

.league-space-shell .space-drawer .space-stack,
body.space-mode-body .space-drawer .space-stack {
    display: grid !important;
    gap: 10px !important;
}

.league-space-shell .space-drawer .space-rail-card,
body.space-mode-body .space-drawer .space-rail-card {
    color: #132238 !important;
    background: rgba(255, 255, 255, 0.88) !important;
    border: 1px solid #dfe8f3 !important;
    border-radius: 18px !important;
    box-shadow: 0 12px 28px rgba(15, 35, 75, 0.07) !important;
}

.league-space-shell .space-drawer .space-rail-card:hover,
.league-space-shell .space-drawer .space-rail-card.active,
body.space-mode-body .space-drawer .space-rail-card:hover,
body.space-mode-body .space-drawer .space-rail-card.active {
    color: #ffffff !important;
    background: var(--space-frame-accent, #1554c7) !important;
    border-color: var(--space-frame-accent, #1554c7) !important;
}

.league-space-shell .space-drawer .space-rail-card span,
.league-space-shell .space-drawer .space-rail-card small,
body.space-mode-body .space-drawer .space-rail-card span,
body.space-mode-body .space-drawer .space-rail-card small {
    color: #7b8aa3 !important;
}

.league-space-shell .space-drawer .space-rail-card:hover span,
.league-space-shell .space-drawer .space-rail-card:hover small,
.league-space-shell .space-drawer .space-rail-card.active span,
.league-space-shell .space-drawer .space-rail-card.active small,
body.space-mode-body .space-drawer .space-rail-card:hover span,
body.space-mode-body .space-drawer .space-rail-card:hover small,
body.space-mode-body .space-drawer .space-rail-card.active span,
body.space-mode-body .space-drawer .space-rail-card.active small {
    color: rgba(255, 255, 255, 0.76) !important;
}
