@import url('player-sponsors-base.css?v=20260901-6');

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.navbar-brand__logo {
    width: 34px;
    height: 34px;
    object-fit: contain;
    flex: 0 0 auto;
}

.navbar-brand__text {
    line-height: 1.05;
}

main.hub-main {
    padding-bottom: 0;
}

.navbar .navbar-brand,
.navbar .navbar-brand:hover,
.navbar .navbar-brand:focus,
.navbar .navbar-brand:focus-visible {
    text-decoration: none !important;
}

.navbar-brand__text {
    text-transform: uppercase;
    transition: color 0.18s ease;
}

.navbar-brand__logo {
    transition: filter 0.18s ease, transform 0.18s ease;
}

.navbar .navbar-brand:hover .navbar-brand__text,
.navbar .navbar-brand:focus .navbar-brand__text,
.navbar .navbar-brand:focus-visible .navbar-brand__text {
    color: var(--brand-warning) !important;
}

.navbar .navbar-brand:hover .navbar-brand__logo,
.navbar .navbar-brand:focus .navbar-brand__logo,
.navbar .navbar-brand:focus-visible .navbar-brand__logo {
    filter: brightness(0) saturate(100%) invert(78%) sepia(66%) saturate(711%) hue-rotate(357deg) brightness(93%) contrast(88%);
}

@media (min-width: 1200px) {
    .navbar .navbar-brand {
        width: 100%;
        margin-right: 0;
        justify-content: center;
        text-align: center;
    }
}

/*
 * Desktop sidebar scrolling has one owner. Using overflow-x: hidden together
 * with overflow-y: visible on the nested flex containers makes the latter
 * compute to auto, which produced additional scrollbars at some zoom levels.
 */
@media (min-width: 1200px) {
    body.hub-shell #hubSideNavigation {
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    body.hub-shell #hubSideNavigation>.container-fluid {
        min-height: 0;
        height: auto;
        overflow: visible;
    }

    body.hub-shell #hubSideNavigation #navbarMain,
    body.hub-shell #hubSideNavigation #navbarMain>.nav-sections,
    body.hub-shell #hubSideNavigation .navbar-collapse>.d-flex {
        min-height: 0;
        overflow: visible;
    }
}

:root {
    --brand-darkest: #1f1a1d;
    --brand-dark: #4b0818;
    --brand-primary: #6a2036;
    --brand-accent: #b99b61;
    --brand-light: #f6ecde;
    --brand-success: #39bfb4;
    --brand-danger: #8f1f2f;
    --brand-warning: #e0b42a;
    --brand-warning-hover: #c99d19;
    --brand-warning-text: #1f1a1d;
    --brand-warning-text-hover: #1f1a1d;
    --bs-primary: #6a2036;
    --bs-primary-rgb: 106, 32, 54;
    --bs-link-color: #6a2036;
    --bs-link-color-rgb: 106, 32, 54;
    --bs-link-hover-color: #4b0818;
    --bs-focus-ring-color: rgba(106, 32, 54, 0.25);
}

body {
    background: var(--brand-light);
    color: var(--brand-darkest);
}

a {
    color: var(--brand-primary);
}

a:hover {
    color: var(--brand-dark);
}

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

.bg-primary,
.bg-brand-primary {
    background-color: var(--brand-primary) !important;
}

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

.btn-primary,
.btn-maroon {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    color: var(--brand-light);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-maroon:hover,
.btn-maroon:focus {
    background-color: var(--brand-dark);
    border-color: var(--brand-dark);
    color: var(--brand-light);
}

.btn-outline-primary {
    color: var(--brand-primary);
    border-color: var(--brand-primary);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    color: var(--brand-light);
}

/* League table design selector: replace every Bootstrap blue interaction token. */
.league-table-style-toggle .btn {
    --bs-btn-color: #4b0818;
    --bs-btn-border-color: #4b0818;
    --bs-btn-hover-color: #f6ecde;
    --bs-btn-hover-bg: #4b0818;
    --bs-btn-hover-border-color: #4b0818;
    --bs-btn-focus-shadow-rgb: 75, 8, 24;
    --bs-btn-active-color: #f6ecde;
    --bs-btn-active-bg: #4b0818;
    --bs-btn-active-border-color: #4b0818;
    --bs-btn-disabled-color: #4b0818;
    --bs-btn-disabled-border-color: #4b0818;
}

.league-table-style-toggle .btn.active,
.league-table-style-toggle .btn[aria-pressed="true"] {
    background-color: #4b0818 !important;
    border-color: #4b0818 !important;
    color: var(--brand-light) !important;
    box-shadow: none;
}

.league-table-style-toggle .btn:hover,
.league-table-style-toggle .btn:focus,
.league-table-style-toggle .btn:focus-visible,
.league-table-style-toggle .btn.active:hover,
.league-table-style-toggle .btn.active:focus,
.league-table-style-toggle .btn[aria-pressed="true"]:hover,
.league-table-style-toggle .btn[aria-pressed="true"]:focus {
    background-color: #4b0818 !important;
    border-color: #4b0818 !important;
    color: var(--brand-light) !important;
}

.league-table-style-toggle .btn:focus,
.league-table-style-toggle .btn:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 0.22rem rgba(75, 8, 24, 0.24) !important;
}

/* League table actions: joined controls with clear platform identities. */
.league-table-actions {
    flex-wrap: nowrap !important;
}

.league-table-actions .btn {
    min-width: 2.85rem;
    color: #fff;
}

.league-action--facebook {
    border-color: #1877f2;
    background: #1877f2;
}

.league-action--facebook:hover,
.league-action--facebook:focus {
    border-color: #1264cf;
    background: #1264cf;
    color: #fff;
}

.league-action--instagram {
    border-color: #c13584;
    background: linear-gradient(135deg, #833ab4 0%, #c13584 46%, #e1306c 68%, #f77737 100%);
}

.league-action--instagram:hover,
.league-action--instagram:focus {
    border-color: #a62c73;
    background: linear-gradient(135deg, #6f3199 0%, #a92e73 46%, #c6255d 68%, #dd642c 100%);
    color: #fff;
}

.league-action--twitter {
    border-color: #000;
    background: #000;
}

.league-action--twitter:hover,
.league-action--twitter:focus {
    border-color: #292929;
    background: #292929;
    color: #fff;
}

.navbar-dark,
.navbar {
    background: #2e2e2e;
}

.navbar .navbar-brand,
.navbar .nav-link,
.navbar .navbar-text {
    color: var(--brand-light) !important;
}

.navbar .nav-link.active {
    color: var(--brand-warning) !important;
}

.navbar .navbar-collapse {
    background: #2e2e2e;
}

@media (max-width: 991.98px) {

    .navbar .navbar-collapse .nav-link,
    .navbar .navbar-collapse .btn-link {
        color: var(--brand-light) !important;
    }

    .navbar .navbar-collapse .nav-link:hover,
    .navbar .navbar-collapse .nav-link:focus,
    .navbar .navbar-collapse .btn-link:hover,
    .navbar .navbar-collapse .btn-link:focus {
        color: var(--brand-accent) !important;
    }

    .navbar .navbar-collapse .nav-link.active {
        color: var(--brand-warning) !important;
    }
}

.page-hero {
    background: linear-gradient(135deg, var(--brand-dark), var(--brand-primary));
    border-radius: 0;
}

.page-hero--full-bleed {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    border-radius: 0;
}

.page-hero-eyebrow {
    color: rgba(246, 236, 222, 0.78);
}

.page-hero-subtitle {
    color: rgba(246, 236, 222, 0.88);
}

.page-hero-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.page-hero-actions .btn:empty {
    min-width: 2.75rem;
    padding-left: 0.85rem;
    padding-right: 0.85rem;
}

.players-summary-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.players-filter-card {
    border: 1px solid rgba(75, 8, 24, 0.09);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.players-filter-eyebrow {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--brand-primary);
}

.players-filter-subtitle {
    color: rgba(31, 26, 29, 0.72);
    font-size: 0.95rem;
}

.players-filter-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(31, 26, 29, 0.84);
}

.players-filter-form .form-control,
.players-filter-form .form-select {
    min-height: 2.8rem;
    border-color: rgba(75, 8, 24, 0.14);
    box-shadow: none;
}

.players-filter-form .form-control:focus,
.players-filter-form .form-select:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 0.2rem rgba(106, 32, 54, 0.12);
}

.players-filter-form .btn {
    min-height: 2.8rem;
}

.players-filter-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    box-shadow: 0 0.35rem 0.9rem rgba(31, 26, 29, 0.08);
}

.players-filter-toggle:focus {
    box-shadow: 0 0 0 0.2rem rgba(106, 32, 54, 0.18), 0 0.35rem 0.9rem rgba(31, 26, 29, 0.08);
}

.hub-mobile-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1030;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.25rem;
    padding: 0.4rem 0.55rem calc(0.4rem + env(safe-area-inset-bottom));
    background: rgba(31, 26, 29, 0.96);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 -0.35rem 1rem rgba(31, 26, 29, 0.18);
    backdrop-filter: blur(14px);
}

.hub-mobile-nav__item {
    min-height: 3.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    color: rgba(246, 236, 222, 0.78);
    text-decoration: none;
    border-radius: 0.85rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.hub-mobile-nav__item i {
    font-size: 1rem;
    line-height: 1;
}

.hub-mobile-nav__item:hover,
.hub-mobile-nav__item:focus {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.hub-mobile-nav__item.active {
    color: var(--brand-warning);
    background: rgba(185, 155, 97, 0.14);
}

.dashboard-card {
    border: 1px solid rgba(75, 8, 24, 0.08);
    box-shadow: 0 0.35rem 1rem rgba(31, 26, 29, 0.06);
}

.table-card {
    overflow: hidden;
    box-shadow: 0 0.45rem 1.25rem rgba(31, 26, 29, 0.08);
}

.table-card.save-image-mode {
    width: 1200px !important;
    max-width: none !important;
    overflow: visible !important;
}

.table-card.save-image-mode .table-card__body {
    width: 100%;
    padding: 1.75rem;
}

.table-card.save-image-mode .table-scroll {
    width: 100%;
    overflow: visible;
}

.table-card.save-image-mode .standings-table {
    width: 100%;
    min-width: 720px;
}

.table-card--expanded.save-image-mode .standings-table {
    min-width: 820px;
}

.table-card.save-image-mode .standings-table thead th.col-pos,
.table-card.save-image-mode .standings-table tbody td.col-pos,
.table-card.save-image-mode .standings-table thead th.col-club,
.table-card.save-image-mode .standings-table tbody th.col-club {
    position: static;
}

.compact-matchweek {
    display: none;
}

/* Compact card: premium broadcast surface and shared brand tokens */
.table-card--compact {
    --compact-maroon: #4b0818;
    --compact-burgundy: #651c30;
    --compact-amber: #e9bf27;
    --compact-cream: #f2e8d8;
    --compact-charcoal: #333333;
    position: relative;
    background:
        linear-gradient(135deg, transparent 0 22%, rgba(75, 8, 24, 0.025) 22% 36%, transparent 36% 58%, rgba(233, 191, 39, 0.035) 58% 72%, transparent 72%),
        linear-gradient(180deg, #ffffff 0%, #fbf8f3 100%);
    box-shadow:
        inset 0 0 0 1px rgba(75, 8, 24, 0.1),
        0 18px 42px rgba(51, 51, 51, 0.12);
}

/* Compact card: fixed hero rail and flexible standings area */
.table-card--compact .table-card__body {
    display: grid;
    grid-template-columns: clamp(110px, 20%, 220px) minmax(0, 1fr);
    grid-template-rows: 1fr auto;
    gap: 0;
    padding: 0;
}

/* Hero rail: layered club gradient, soft lighting and clean separation */
.table-card--compact .table-card__hero {
    position: relative;
    isolation: isolate;
    grid-column: 1;
    grid-row: 1 / span 2;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: column;
    min-height: 100%;
    margin: 0 !important;
    padding: clamp(1rem, 3vw, 2.5rem) clamp(0.65rem, 2vw, 1.5rem);
    overflow: hidden;
    border-radius: 0;
    background:
        radial-gradient(circle at 25% 8%, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.06) 21%, transparent 43%),
        radial-gradient(circle at 52% 92%, rgba(255, 228, 121, 0.3) 0%, rgba(233, 191, 39, 0.12) 25%, transparent 52%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.11) 0%, rgba(255, 255, 255, 0.035) 19%, transparent 44%),
        linear-gradient(180deg,
            #33040f 0%,
            #470817 15%,
            #561021 32%,
            #651c30 55%,
            #78302e 72%,
            #a96722 86%,
            #d8a61e 95%,
            #e9bf27 100%);
    box-shadow:
        inset -1px 0 0 rgba(255, 255, 255, 0.16),
        inset -3px 0 0 rgba(233, 191, 39, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.13),
        10px 0 30px rgba(51, 4, 15, 0.17);
}

.table-card--compact .table-card__hero::before,
.table-card--compact .table-card__hero::after {
    position: absolute;
    content: "";
    pointer-events: none;
}

/* Hero rail: restrained diagonal texture and glass highlight */
.table-card--compact .table-card__hero::before {
    z-index: 0;
    inset: 0;
    background:
        linear-gradient(110deg, transparent 0 56%, rgba(255, 255, 255, 0.08) 56.2% 56.8%, transparent 57%),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 14px);
}

/* Hero rail: subtle broadcast ring detail */
.table-card--compact .table-card__hero::after {
    z-index: 0;
    right: -62px;
    bottom: -54px;
    width: 170px;
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0 44%, transparent 45% 100%);
    box-shadow:
        inset 0 0 0 18px rgba(255, 255, 255, 0.025),
        0 0 0 22px rgba(255, 255, 255, 0.025);
}

/* Hero content: frosted logo plate with a restrained lift */
.table-card--compact .table-card__hero-link,
.table-card--compact .table-card__hero>.banner-img {
    position: relative;
    z-index: 1;
}

.table-card--compact .banner-img {
    content: url("/saltcoats/media/badges/league-logos/wosfl/wosfl-white.png");
    width: 100%;
    max-width: 175px;
    max-height: 210px;
    padding: clamp(0.35rem, 1vw, 0.65rem);
    object-fit: contain;
}

/* Matchweek: bold broadcast numeral anchored over the amber finish */
.table-card--compact .compact-matchweek {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    flex-direction: column;
    margin-top: auto;
    color: var(--brand-light);
    line-height: 1;
    text-shadow: -4px 10px 20px rgba(65, 65, 65, 0.68);
}

.table-card--compact .compact-matchweek span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.25rem;
    font-size: clamp(0.7rem, 0.9vw, 1rem);
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.table-card--compact .compact-matchweek span::before,
.table-card--compact .compact-matchweek span::after {
    width: clamp(8px, 1.4vw, 18px);
    height: 1px;
    content: "";
    background: currentColor;
    opacity: 0.5;
}

.table-card--compact .compact-matchweek strong {
    margin-right: 10px;
    font-size: clamp(2.5rem, 7vw, 5.25rem);
    font-weight: 900;
    letter-spacing: -0.07em;
}

/* Standings shell: light glass surface separated from the hero rail */
.table-card--compact .table-scroll {
    grid-column: 2;
    grid-row: 1;
    width: auto;
    margin: clamp(1rem, 3vw, 2.25rem) clamp(0.8rem, 3vw, 2.5rem) 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: none;
}

/* Standings table: clean typography and tabular broadcast alignment */
.table-card--compact .standings-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    border-radius: 0;
}

.table-card--compact .standings-table .col-promoted,
.table-card--compact .standings-table .col-won,
.table-card--compact .standings-table .col-drawn,
.table-card--compact .standings-table .col-lost {
    display: none;
}

/* Header: compact maroon score-bar */
.table-card--compact .standings-table thead th {
    position: static !important;
    padding: 0.65rem 0.45rem;
    color: var(--compact-maroon) !important;
    border-bottom: 0 !important;
    border-radius: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

/* Rows: subtle rhythm, separators and a lightweight live-page interaction */
.table-card--compact .standings-table tbody tr {
    background: transparent !important;
}

.table-card--compact .standings-table tbody td,
.table-card--compact .standings-table tbody th {
    position: static !important;
    padding: 0.62rem 0.45rem;
    border-bottom: 1px solid rgba(75, 8, 24, 0.07);
    background: rgba(255, 255, 255, 0.68) !important;
    box-shadow: none;
    color: var(--compact-charcoal);
    font-size: 0.95rem;
    transition: background-color 140ms ease, color 140ms ease;
}

.table-card--compact .standings-table tbody tr:nth-child(even) td,
.table-card--compact .standings-table tbody tr:nth-child(even) th {
    background: rgba(242, 232, 216, 0.38) !important;
}

.table-card--compact .standings-table tbody tr:hover td,
.table-card--compact .standings-table tbody tr:hover th {
    background: rgba(233, 191, 39, 0.13) !important;
    color: var(--compact-maroon);
}

.table-card--compact .standings-table tbody tr:last-child td,
.table-card--compact .standings-table tbody tr:last-child th {
    border-bottom: 0;
}

/* Current club: unmistakable but restrained editorial highlight */
.table-card--compact .standings-table tbody tr.table-warning,
.table-card--compact .standings-table tbody tr.highlight {
    background: linear-gradient(90deg, rgba(233, 191, 39, 0.22), rgba(101, 28, 48, 0.09)) !important;
}

.table-card--compact .standings-table tbody tr.table-warning td,
.table-card--compact .standings-table tbody tr.table-warning th,
.table-card--compact .standings-table tbody tr.highlight td,
.table-card--compact .standings-table tbody tr.highlight th {
    background: transparent !important;
    color: var(--compact-maroon) !important;
    font-weight: 700;
}

.table-card--compact .standings-table tbody tr.table-warning td:first-child,
.table-card--compact .standings-table tbody tr.table-warning th:first-child,
.table-card--compact .standings-table tbody tr.highlight td:first-child,
.table-card--compact .standings-table tbody tr.highlight th:first-child {
    box-shadow: inset 4px 0 0 var(--compact-amber);
}

/* Column sizing: narrower club field and balanced numeric columns */
.table-card--compact .col-pos {
    width: 9%;
}

.table-card--compact .club-cell {
    width: 48%;
}

.table-card--compact .col-played,
.table-card--compact .col-goal-difference {
    width: 14%;
}

.table-card--compact .col-points {
    width: 15%;
}

.table-card--compact .club-cell__content {
    gap: 0.6rem;
}

/* Club crests: small neutral plate improves definition on light rows */
.table-card--compact .club-cell img {
    width: 27px;
    height: 27px;
    padding: 2px;
    border: 1px solid rgba(75, 8, 24, 0.08);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 5px rgba(51, 51, 51, 0.1);
}

/* Numeric chips: remove app-style pills for a cleaner broadcast read */
.table-card--compact .position-chip,
.table-card--compact .points-chip {
    min-width: 0;
    padding: 0;
    border: 0 !important;
    background: transparent !important;
    color: inherit !important;
    box-shadow: none;
}

.table-card--compact .club-name,
.table-card--compact .points-chip {
    font-weight: 800;
}

.table-card--compact .col-pos,
.table-card--compact .col-played,
.table-card--compact .col-goal-difference,
.table-card--compact .col-points {
    font-variant-numeric: tabular-nums;
}

/* Timestamp: quiet footer treatment that does not compete with standings */
.table-card--compact .table-card__body>.text-muted {
    grid-column: 2;
    grid-row: 2;
    margin: 0 !important;
    padding: 0.8rem 2rem 1.5rem;
    color: rgba(51, 51, 51, 0.62) !important;
    font-size: 0.78rem;
    letter-spacing: 0.01em;
}

/* Export mode: use the 4:5 portrait format preferred by social feeds */
.table-card--compact.save-image-mode {
    width: 1080px !important;
    min-height: 1350px;
    height: 1350px;
}

.table-card--compact.save-image-mode .table-card__body {
    min-height: 1350px;
    height: 1350px;
}

.table-card--compact.save-image-mode .table-scroll {
    width: auto;
    margin-right: 0;
    overflow: hidden;
}

.table-card--compact.save-image-mode .standings-table {
    min-width: 0;
    height: 100%;
}

/* Small screens: preserve the two-panel composition at compact widths */
@media (max-width: 575.98px) {
    .table-card--compact .table-card__body {
        grid-template-columns: 78px minmax(0, 1fr);
    }

    .table-card--compact .table-card__hero {
        padding: 0.75rem 0.45rem;
        border-radius: 0 42px 42px 0;
    }

    .table-card--compact .banner-img {
        padding: 0.25rem;
        border-radius: 8px;
    }

    .table-card--compact .compact-matchweek span {
        font-size: 0.58rem;
    }

    .table-card--compact .compact-matchweek strong {
        font-size: 2.25rem;
    }

    .table-card--compact .table-scroll {
        margin: 0.65rem 0.45rem 0;

    }

    .table-card--compact .standings-table thead th {
        padding: 0.48rem 0.2rem;
        font-size: 0.58rem;
    }

    .table-card--compact .standings-table tbody td,
    .table-card--compact .standings-table tbody th {
        padding: 0.43rem 0.2rem;
        font-size: 0.68rem;
    }

    .table-card--compact .col-pos {
        width: 32px;
    }

    .table-card--compact .col-played {
        width: 28px;
    }

    .table-card--compact .col-goal-difference {
        width: 32px;
    }

    .table-card--compact .col-points {
        width: 34px;
    }

    .table-card--compact .club-cell__content {
        gap: 0.3rem;
    }

    .table-card--compact .club-cell img {
        width: 20px;
        height: 20px;
        padding: 1px;
    }

    .table-card--compact .table-card__body>.text-muted {
        padding: 0.6rem 0.6rem 0.8rem;
        font-size: 0.62rem;
    }
}

.table-card__body {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: clamp(1rem, 2vw, 1.75rem);
}

.table-card__hero {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 0.25rem;
}

.table-card__hero-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.banner-img {
    width: min(100%, 360px);
    max-width: 360px;
    filter: drop-shadow(0 12px 24px rgba(59, 7, 16, 0.12));
}

.banner-img--small {
    width: min(100%, 180px);
    max-width: 180px;
}

.table-scroll {
    overflow-x: auto;
    border: 1px solid rgba(75, 8, 24, 0.08);
    border-radius: 22px;
    background: linear-gradient(180deg, #fffefb 0%, #f8f2ea 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.table-scroll::-webkit-scrollbar {
    height: 12px;
}

.table-scroll::-webkit-scrollbar-track {
    background: rgba(104, 23, 43, 0.08);
}

.table-scroll::-webkit-scrollbar-thumb {
    background: rgba(104, 23, 43, 0.35);
    border-radius: 999px;
}

.standings-table {
    width: 100%;
    min-width: 720px;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    font-variant-numeric: tabular-nums;
}

.standings-table thead th {
    padding: 1rem 0.75rem;
    /*  background: linear-gradient(180deg, #7a1e35 0%, #4f0d1c 100%) !important; */
    color: var(--compact-maroon) !important;
    border-bottom: 3px solid var(--brand-warning) !important;
    box-shadow: inset 0 -1px 0 rgba(255, 247, 230, 0.18);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
    text-transform: uppercase;
}

.standings-table tbody tr:nth-child(odd):not(.highlight) {
    background: rgba(255, 255, 255, 0.94);
}

.standings-table tbody tr:nth-child(even):not(.highlight) {
    background: rgba(246, 236, 222, 0.9);
}

.standings-table tbody tr:hover:not(.highlight) {
    background: #fff8ec;
}

.standings-table tbody td,
.standings-table tbody th {
    padding: 0.9rem 0.75rem;
    border: none;
    background: transparent;
    color: var(--brand-darkest);
    vertical-align: middle;
    white-space: nowrap;
}

.standings-table tbody td {
    text-align: center;
}

.standings-table thead th.col-pos,
.standings-table tbody td.col-pos {
    position: sticky;
    left: 0;
    z-index: 4;
    box-shadow: 1px 0 0 rgba(104, 23, 43, 0.08);
}

.standings-table thead th.col-club,
.standings-table tbody th.col-club {
    position: sticky;
    left: 72px;
    z-index: 3;
    box-shadow: 1px 0 0 rgba(104, 23, 43, 0.08);
}

.standings-table thead th.col-club,
.standings-table thead th.col-pos {
    z-index: 5;
}

.standings-table tbody tr:nth-child(odd):not(.highlight) td.col-pos,
.standings-table tbody tr:nth-child(odd):not(.highlight) th.col-club {
    background: rgba(255, 255, 255, 0.94);
}

.standings-table tbody tr:nth-child(even):not(.highlight) td.col-pos,
.standings-table tbody tr:nth-child(even):not(.highlight) th.col-club {
    background: rgba(246, 236, 222, 0.9);
}

.standings-table tbody tr:hover:not(.highlight) td.col-pos,
.standings-table tbody tr:hover:not(.highlight) th.col-club {
    background: #fff8ec;
}

.standings-table tbody tr.table-warning td,
.standings-table tbody tr.table-warning th,
.standings-table tbody tr.highlight td,
.standings-table tbody tr.highlight th {
    background: linear-gradient(180deg, #f8e8ae 0%, #e1b53d 100%) !important;
    color: var(--brand-darkest) !important;
    font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), inset 0 -1px 0 rgba(104, 23, 43, 0.08);
}

.standings-table tbody tr.table-success td,
.standings-table tbody tr.table-success th {
    background: rgba(57, 191, 180, 0.08) !important;
}

.club-cell {
    width: 44%;
    text-align: left;
    font-weight: 400;
}

.club-cell__content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

/* Standard broadcast table: full statistics without the recent-form column. */
.table-card--standard .standings-table {
    min-width: 760px;
}

.table-card--standard .table-scroll {
    overflow-x: auto;
}

.table-card--standard .standings-table .col-promoted,
.table-card--standard .standings-table .col-won,
.table-card--standard .standings-table .col-drawn,
.table-card--standard .standings-table .col-lost {
    display: table-cell;
}

.table-card--standard .club-cell {
    width: 38%;
}

.table-card--standard .col-pos {
    width: 45px;
}

.table-card--standard .col-promoted {
    width: 32px;
}

.table-card--standard .col-stat {
    width: 46px;
}

.table-card--standard .col-points {
    width: 55px;
}

/* Expanded broadcast table: full statistics plus recent five-match form. */
.standings-table .col-form {
    display: none;
}

.table-card--expanded .standings-table {
    min-width: 820px;
}

.table-card--expanded .table-scroll {
    overflow-x: auto;
}

.table-card--expanded .standings-table .col-promoted,
.table-card--expanded .standings-table .col-won,
.table-card--expanded .standings-table .col-drawn,
.table-card--expanded .standings-table .col-lost {
    display: table-cell;
}

.table-card--expanded .standings-table .col-form {
    display: table-cell;
    width: 150px;
}

.table-card--expanded .club-cell {
    width: 34%;
}

.table-card--expanded .col-pos {
    width: 45px;
}

.table-card--expanded .col-promoted {
    width: 32px;
}

.table-card--expanded .col-stat {
    width: 44px;
}

.table-card--expanded .col-points {
    width: 54px;
}

.form-strip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.32rem;
    white-space: nowrap;
}

.form-result {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.55rem;
    height: 1.55rem;
    flex: 0 0 1.55rem;
    border-radius: 50%;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1;
}

.form-result.is-win {
    background: #238636;
}

.form-result.is-draw {
    background: #b07a12;
}

.form-result.is-loss {
    background: #b42335;
}

.club-cell img {
    flex: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: contain;
    background: #fff;
    border: 1px solid rgba(217, 165, 30, 0.75);
    box-shadow: 0 2px 4px rgba(59, 7, 16, 0.08);
}

.club-name {
    display: block;
    overflow: hidden;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.promoted-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    padding: 0;
    background: #2f7d32;
    color: #fff;
    font-size: 0.72rem;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.02em;
    flex: none;
    box-shadow: 0 0 0 3px rgba(47, 125, 50, 0.15);
}

.col-pos {
    width: 72px;
    font-weight: 700;
}

.col-stat {
    width: 74px;
}

.col-promoted {
    width: 76px;
    text-align: center;
}

.col-points {
    width: 86px;
    font-weight: 700;
}

.position-chip,
.points-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    padding: 0.38rem 0.7rem;
    border-radius: 999px;
    line-height: 1;
}

.position-chip {
    background: rgba(106, 32, 54, 0.08);
    color: var(--brand-dark);
    font-weight: 700;
}

.position-chip--top {
    background: rgba(185, 155, 97, 0.18);
    color: #744d00;
}

.points-chip {
    background: rgba(106, 32, 54, 0.12);
    color: var(--brand-dark);
    font-weight: 700;
}

.standings-table tbody tr.table-warning .club-name,
.standings-table tbody tr.table-warning .col-stat,
.standings-table tbody tr.table-warning .col-pos,
.standings-table tbody tr.highlight .club-name,
.standings-table tbody tr.highlight .col-stat,
.standings-table tbody tr.highlight .col-pos {
    color: var(--brand-dark) !important;
}

.standings-table tbody tr.table-warning .position-chip,
.standings-table tbody tr.table-warning .points-chip,
.standings-table tbody tr.highlight .position-chip,
.standings-table tbody tr.highlight .points-chip {
    background: rgba(255, 255, 255, 0.34) !important;
    color: var(--brand-dark) !important;
    border: 1px solid rgba(104, 23, 43, 0.12);
}

.standings-table tbody tr.table-warning .promoted-badge,
.standings-table tbody tr.highlight .promoted-badge {
    background: var(--brand-dark);
    color: #fff;
    box-shadow: 0 0 0 3px rgba(104, 23, 43, 0.15);
}

.players-page .dashboard-card .card-body {
    padding: 1rem 1.1rem;
}

.players-table-card {
    overflow: hidden;
}

.players-table-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    color: var(--brand-light);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.players-table-card__eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.8;
}

.players-table-card__meta .badge {
    font-weight: 600;
}

.players-table {
    margin-bottom: 0;
}

.players-table thead th {
    padding: 0.95rem 1rem;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(31, 26, 29, 0.72);
    background: rgba(246, 236, 222, 0.86);
    border-bottom-color: rgba(75, 8, 24, 0.08);
}

.players-table tbody td {
    padding: 1rem;
    border-top-color: rgba(75, 8, 24, 0.07);
    vertical-align: middle;
}

.players-table-row--inactive {
    background: rgba(245, 241, 234, 0.9);
}

.players-table-row--warning {
    background: rgba(224, 180, 42, 0.12);
}

.players-player {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.players-avatar--table {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 999px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-dark));
    color: var(--brand-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.22);
}

.players-avatar--table img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.players-avatar--table span {
    font-weight: 700;
    font-size: 1rem;
}

.players-player__meta {
    min-width: 0;
}

.players-player__name {
    font-weight: 700;
    color: var(--brand-darkest);
    line-height: 1.2;
}

.players-player__subtext {
    margin-top: 0.2rem;
    font-size: 0.84rem;
    color: rgba(31, 26, 29, 0.64);
}

.player-slot-grid {
    display: flex;
    gap: 1rem;
}

.player-slot {
    min-width: 0;
}

.player-slot__label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(31, 26, 29, 0.5);
    margin-bottom: 0.1rem;
}

.player-slot__value {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.player-slot__value--empty {
    font-weight: 400;
    color: rgba(31, 26, 29, 0.35);
}

.player-slot__value--paid {
    color: rgba(31, 26, 29, 0.85);
}

.player-slot__value--paid i {
    color: var(--brand-success);
    margin-left: 0.2rem;
}

.player-slot__value--unpaid {
    color: var(--brand-danger);
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 0.15rem;
}

a.player-slot__value--unpaid:hover,
a.player-slot__value--unpaid:focus {
    color: var(--brand-dark);
}

.players-row-actions .btn {
    min-width: 2.4rem;
}

.players-table__actions-col {
    width: 8.5rem;
}

/* Players: squad management workspace */
.players-page {
    max-width: 1500px;
    margin-inline: auto;
}

.players-overview {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.75rem;
}

.players-kpi {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 0;
    padding: 0.95rem;
    overflow: hidden;
    border: 1px solid rgba(75, 8, 24, 0.08);
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 0.35rem 1rem rgba(31, 26, 29, 0.045);
}

.players-kpi::after {
    position: absolute;
    right: -1.8rem;
    bottom: -2.2rem;
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    background: rgba(106, 32, 54, 0.025);
    content: "";
}

.players-kpi__icon {
    z-index: 1;
    display: grid;
    flex: 0 0 2.65rem;
    width: 2.65rem;
    height: 2.65rem;
    place-items: center;
    border-radius: 0.75rem;
    font-size: 0.95rem;
}

.players-kpi__icon--total {
    background: rgba(106, 32, 54, 0.09);
    color: var(--brand-primary);
}

.players-kpi__icon--current {
    background: rgba(35, 142, 103, 0.1);
    color: #197253;
}

.players-kpi__icon--left {
    background: rgba(91, 96, 102, 0.09);
    color: #5b6066;
}

.players-kpi__icon--sponsored {
    background: rgba(185, 155, 97, 0.13);
    color: #866b37;
}

.players-kpi__icon--attention {
    background: rgba(224, 180, 42, 0.12);
    color: #8a6700;
}

.players-kpi__content {
    z-index: 1;
    display: grid;
    min-width: 0;
}

.players-kpi__label {
    overflow: hidden;
    color: rgba(31, 26, 29, 0.7);
    font-size: 0.7rem;
    font-weight: 750;
    letter-spacing: 0.035em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.players-kpi__content strong {
    margin-top: 0.1rem;
    color: var(--brand-darkest);
    font-size: 1.35rem;
    line-height: 1.05;
}

.players-kpi__content small {
    margin-top: 0.2rem;
    overflow: hidden;
    color: rgba(31, 26, 29, 0.52);
    font-size: 0.67rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.players-toolbar {
    overflow: hidden;
    border: 1px solid rgba(75, 8, 24, 0.09);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 0.45rem 1.25rem rgba(31, 26, 29, 0.05);
}

.players-toolbar__body {
    padding: 1rem 1.1rem 1.1rem;
}

.players-toolbar__heading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.players-toolbar__icon {
    display: grid;
    flex: 0 0 2.65rem;
    width: 2.65rem;
    height: 2.65rem;
    place-items: center;
    border-radius: 0.75rem;
    background: rgba(106, 32, 54, 0.08);
    color: var(--brand-primary);
}

.players-toolbar__heading h2 {
    margin: 0.05rem 0 0.12rem;
    color: var(--brand-darkest);
    font-size: 1.05rem;
    font-weight: 750;
}

.players-toolbar__meta {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: rgba(31, 26, 29, 0.58);
    font-size: 0.75rem;
}

.players-toolbar__meta strong {
    color: var(--brand-darkest);
}

.players-toolbar__meta a {
    color: var(--brand-primary);
    font-weight: 700;
    text-decoration: none;
}

.players-toolbar__meta a:hover {
    text-decoration: underline;
}

.players-search-input {
    position: relative;
}

.players-search-input>i,
.players-search-input>svg {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 0.9rem;
    color: rgba(31, 26, 29, 0.38);
    pointer-events: none;
    transform: translateY(-50%);
}

.players-search-input .form-control {
    padding-left: 2.55rem;
}

.players-filter-form .btn-brand {
    display: inline-grid;
    place-items: center;
    min-width: 2.8rem;
    padding-inline: 0.8rem;
}

.players-section {
    --players-section-color: var(--brand-primary);
    overflow: hidden;
    border: 1px solid rgba(75, 8, 24, 0.09);
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 0.45rem 1.3rem rgba(31, 26, 29, 0.05);
}

.players-section--current,
.players-mobile-section--current {
    --players-section-color: #237d5e;
    --players-section-tint: rgba(35, 125, 94, 0.08);
}

.players-section--injured,
.players-mobile-section--injured {
    --players-section-color: #a66b00;
    --players-section-tint: rgba(224, 180, 42, 0.11);
}

.players-section--loan,
.players-mobile-section--loan {
    --players-section-color: #3e6579;
    --players-section-tint: rgba(62, 101, 121, 0.09);
}

.players-section--left,
.players-mobile-section--left {
    --players-section-color: #8f1f2f;
    --players-section-tint: rgba(143, 31, 47, 0.07);
}

.players-section--retired,
.players-mobile-section--retired {
    --players-section-color: #62656a;
    --players-section-tint: rgba(98, 101, 106, 0.08);
}

.players-section__header,
.players-mobile-section__header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(75, 8, 24, 0.07);
    background: linear-gradient(90deg, var(--players-section-tint), rgba(255, 255, 255, 0.88) 45%);
}

.players-section__header::before,
.players-mobile-section__header::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: var(--players-section-color);
    content: "";
}

.players-section__identity {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.players-section__icon {
    display: grid;
    flex: 0 0 2.35rem;
    width: 2.35rem;
    height: 2.35rem;
    place-items: center;
    border-radius: 0.7rem;
    background: var(--players-section-tint);
    color: var(--players-section-color);
}

.players-section__identity h2 {
    margin: 0;
    color: var(--brand-darkest);
    font-size: 0.98rem;
    font-weight: 750;
}

.players-section__identity p {
    margin: 0.1rem 0 0;
    color: rgba(31, 26, 29, 0.55);
    font-size: 0.7rem;
}

.players-section__count {
    display: inline-flex;
    align-items: center;
    min-height: 1.8rem;
    padding: 0.3rem 0.65rem;
    border: 1px solid rgba(75, 8, 24, 0.08);
    border-radius: 999px;
    background: #fff;
    color: rgba(31, 26, 29, 0.68);
    font-size: 0.7rem;
    font-weight: 700;
    white-space: nowrap;
}

.players-section__table {
    overflow-x: auto;
}

.players-section .players-table {
    --bs-table-bg: transparent;
}

.players-section .players-table thead th {
    padding: 0.68rem 1rem;
    border-bottom: 1px solid rgba(75, 8, 24, 0.07);
    background: rgba(250, 247, 241, 0.6);
    color: rgba(31, 26, 29, 0.52);
    font-size: 0.66rem;
    letter-spacing: 0.09em;
}

.players-section .players-table tbody td {
    padding: 0.78rem 1rem;
    border-color: rgba(75, 8, 24, 0.055);
}

.players-section .players-table tbody tr {
    transition: background-color 0.15s ease;
}

.players-section .players-table tbody tr:hover {
    background: rgba(106, 32, 54, 0.025);
}

.players-section .players-table-row--warning {
    background: rgba(224, 180, 42, 0.055);
}

.players-section .players-table-row--inactive {
    background: rgba(98, 101, 106, 0.035);
}

.players-section .players-avatar--table {
    width: 2.55rem;
    height: 2.55rem;
    flex-basis: 2.55rem;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px rgba(75, 8, 24, 0.1);
}

.players-section .players-player__name {
    font-size: 0.86rem;
}

.players-section .players-player__subtext {
    margin-top: 0.12rem;
    font-size: 0.68rem;
}

.players-section .players-row-actions {
    gap: 0.35rem;
}

.players-section .players-row-actions .btn {
    min-width: 2.15rem;
    border-radius: 0.55rem !important;
}

.players-empty-sponsor {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(31, 26, 29, 0.45);
    font-size: 0.72rem;
}

.players-empty-sponsor i {
    font-size: 0.45rem;
}

.players-mobile-section {
    --players-section-color: var(--brand-primary);
    --players-section-tint: rgba(106, 32, 54, 0.08);
}

.players-mobile-section__header {
    margin-bottom: 0.55rem;
    border: 1px solid rgba(75, 8, 24, 0.08);
    border-radius: 0.85rem;
}

.players-page .player-mobile-card {
    border: 1px solid rgba(75, 8, 24, 0.08);
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0.3rem 0.85rem rgba(31, 26, 29, 0.045);
}

.players-page .player-mobile-warning {
    border-left: 3px solid #d29c16;
    background: rgba(255, 252, 243, 0.97);
}

.players-page .player-mobile-left {
    border-left: 3px solid rgba(143, 31, 47, 0.65);
    background: rgba(253, 248, 249, 0.97);
}

.players-avatar--mobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 2.6rem;
    width: 2.6rem;
    height: 2.6rem;
    overflow: hidden;
    border: 2px solid #fff;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-dark));
    box-shadow: 0 0 0 1px rgba(75, 8, 24, 0.1);
    color: #fff;
}

.players-avatar--mobile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.players-avatar--mobile span {
    font-size: 0.85rem;
    font-weight: 750;
}

@media (max-width: 1199.98px) {
    .players-overview {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .players-page-hero .page-hero-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .players-page-hero .page-hero-actions .btn {
        width: 100%;
        min-width: 0;
        white-space: normal;
    }

    .players-page-hero .page-hero-actions .btn:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    .players-overview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .players-overview .players-kpi:last-child {
        grid-column: 1 / -1;
    }

    .players-kpi {
        gap: 0.65rem;
        padding: 0.8rem;
    }

    .players-kpi__icon {
        flex-basis: 2.35rem;
        width: 2.35rem;
        height: 2.35rem;
    }

    .players-kpi__content strong {
        font-size: 1.18rem;
    }

    .players-kpi__content small {
        display: none;
    }

    .players-toolbar__body {
        padding: 0.9rem;
    }

    .players-toolbar__icon {
        display: none;
    }

    .players-mobile-section__header {
        padding: 0.75rem;
    }

    .players-section__identity p {
        display: none;
    }

    body.hub-shell .players-avatar--mobile {
        display: inline-flex !important;
    }
}

/* Sponsor portfolio ledger */
.sponsor-ledger-identity {
    display: flex;
    min-width: 12rem;
    align-items: center;
    gap: 0.7rem;
}

.sponsor-ledger-logo {
    display: grid;
    width: 2.65rem;
    height: 2.65rem;
    flex: 0 0 2.65rem;
    overflow: hidden;
    place-items: center;
    border: 1px solid var(--hub-line);
    border-radius: 0.68rem;
    background: rgba(106, 32, 54, 0.08);
    color: var(--brand-primary);
    font-weight: 800;
}

.sponsor-ledger-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.18rem;
}

.sponsor-ledger-name {
    color: var(--hub-ink);
    font-weight: 750;
    line-height: 1.25;
    text-decoration: none;
}

.sponsor-ledger-name:hover {
    color: var(--brand-primary);
    text-decoration: underline;
}

.sponsor-ledger-flags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.3rem;
}

.sponsor-ledger-flags span,
.sponsor-package-list span,
.sponsor-coverage-list span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    border-radius: 999px;
    background: rgba(106, 32, 54, 0.07);
    color: var(--hub-muted);
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.2;
}

.sponsor-ledger-flags span {
    padding: 0.2rem 0.42rem;
}

.sponsor-portfolio-count {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
}

.sponsor-portfolio-count strong {
    color: var(--hub-ink);
    font-size: 1.05rem;
}

.sponsor-portfolio-count span,
.sponsors-mobile-portfolio>div:first-child span {
    color: var(--hub-muted);
    font-size: 0.72rem;
}

.sponsor-package-list,
.sponsor-coverage-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.38rem;
}

.sponsor-package-list span {
    max-width: 11.5rem;
    overflow: hidden;
    padding: 0.25rem 0.48rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sponsor-coverage-list {
    min-width: 7.5rem;
}

.sponsor-coverage-list span {
    padding: 0.28rem 0.5rem;
    background: rgba(39, 104, 132, 0.09);
    color: #315f70;
}

.sponsor-coverage-list span.is-empty {
    background: transparent;
    color: var(--hub-muted);
}

.sponsor-ledger-value strong,
.sponsor-ledger-value span {
    display: block;
    white-space: nowrap;
}

.sponsor-ledger-value strong {
    color: var(--hub-ink);
    font-size: 0.95rem;
}

.sponsor-ledger-value span {
    margin-top: 0.22rem;
    color: var(--hub-muted);
    font-size: 0.7rem;
}

.sponsor-ledger-payment {
    min-width: 11rem;
}

.sponsor-payment-progress {
    height: 0.32rem;
    overflow: hidden;
    margin-top: 0.48rem;
    border-radius: 999px;
    background: rgba(106, 32, 54, 0.1);
}

.sponsor-payment-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #218d67;
}

.sponsor-payment-detail {
    display: flex;
    justify-content: space-between;
    gap: 0.6rem;
    margin-top: 0.34rem;
    color: var(--hub-muted);
    font-size: 0.68rem;
    white-space: nowrap;
}

.sponsor-ledger-date {
    min-width: 7rem;
    color: var(--hub-muted);
    font-size: 0.78rem;
    white-space: nowrap;
}

.sponsor-ledger-row--attention>td:first-child {
    box-shadow: inset 3px 0 0 rgba(176, 48, 62, 0.55);
}

.sponsors-mobile-portfolio {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 0.9rem;
    padding-top: 0.8rem;
    border-top: 1px solid var(--hub-line);
}

.sponsors-mobile-portfolio>div:first-child {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
}

.sponsors-mobile-card>.sponsor-payment-progress {
    margin-top: 0.8rem;
}

.sponsors-page .hub-data-table>tbody>tr>td {
    padding-top: 0.82rem;
    padding-bottom: 0.82rem;
}

.sponsors-page .hub-row-actions {
    min-width: 5.45rem;
    flex-wrap: nowrap;
    justify-content: center;
}

.sponsors-page .hub-row-actions .btn {
    flex: 0 0 2.5rem;
}

/* Reports */
.reports-page {
    color: #24333a;
    background: #f3f6f6;
}

.reports-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.reports-kpi {
    display: flex;
    align-items: center;
    min-height: 116px;
    gap: 1rem;
    padding: 1.15rem;
    background: #fff;
    border: 1px solid #dce4e6;
    border-radius: 6px;
    box-shadow: 0 4px 14px rgba(22, 54, 60, 0.06);
}

.reports-kpi__icon {
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 6px;
    font-size: 1rem;
}

.reports-kpi__icon--portfolio {
    color: #185765;
    background: #e2f1f3;
}

.reports-kpi__icon--value {
    color: #73510b;
    background: #f7edcf;
}

.reports-kpi__icon--paid {
    color: #17633e;
    background: #dff1e7;
}

.reports-kpi__icon--due {
    color: #9b382f;
    background: #f8e4e1;
}

.reports-kpi__label {
    color: #66747b;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.reports-kpi__value {
    margin-top: 0.15rem;
    color: #173f45;
    font-size: 1.65rem;
    font-weight: 750;
    line-height: 1.15;
}

.reports-kpi__meta {
    margin-top: 0.3rem;
    color: #7a878d;
    font-size: 0.78rem;
}

.reports-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    margin-bottom: 1.5rem;
    background: #f5f7f7;
    border-bottom: 1px solid #ced9dc;
}

.reports-page .reports-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin: 0;
    border: 0;
}

.reports-page .reports-tabs .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 48px;
    margin: 0;
    padding: 0.7rem 1rem;
    color: #586970;
    border-bottom: 3px solid transparent;
    font-size: 0.88rem;
    font-weight: 650;
}

.reports-page .reports-tabs .nav-link:hover {
    color: #173f45;
    background: #eaf0f1;
}

.reports-page .reports-tabs .nav-link.active {
    color: #173f45;
    background: #fff;
    border-color: #b58a20;
}

.reports-content {
    min-height: 420px;
}

.reports-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.reports-section-heading__eyebrow {
    margin-bottom: 0.2rem;
    color: #8b6a18;
    font-size: 0.74rem;
    font-weight: 750;
    text-transform: uppercase;
}

.reports-section-heading h2 {
    margin: 0;
    color: #173f45;
    font-size: 1.3rem;
    font-weight: 750;
}

.reports-section-heading p,
.reports-panel__header p {
    margin: 0.2rem 0 0;
    color: #718087;
    font-size: 0.86rem;
}

.reports-actions {
    display: flex;
    gap: 0.45rem;
}

.reports-actions .btn {
    min-width: 68px;
}

.reports-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.9rem 1rem;
    border: 1px solid #dce4e6;
    border-radius: 10px;
    background: linear-gradient(135deg, #ffffff 0%, #f6fafb 100%);
    box-shadow: 0 8px 24px rgba(22, 54, 60, 0.05);
}

.reports-toolbar__search {
    position: relative;
    flex: 1 1 260px;
}

.reports-toolbar__search i {
    position: absolute;
    top: 50%;
    left: 0.85rem;
    color: #8a989d;
    transform: translateY(-50%);
}

.reports-toolbar__search .form-control {
    padding-left: 2.25rem;
}

.reports-toolbar__controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: end;
}

.reports-toolbar__controls .form-select,
.reports-toolbar__controls .form-control {
    min-width: 140px;
}

.reports-overview-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 1rem;
    align-items: start;
}

.reports-panel,
.reports-collection,
.reports-filter {
    background: #fff;
    border: 1px solid #dce4e6;
    border-radius: 6px;
    box-shadow: 0 4px 14px rgba(22, 54, 60, 0.05);
}

.reports-panel {
    overflow: hidden;
}

.reports-panel__header {
    padding: 1rem 1.15rem;
    border-bottom: 1px solid #e1e7e9;
}

.reports-panel__header h3 {
    margin: 0;
    color: #173f45;
    font-size: 1rem;
    font-weight: 750;
}

.reports-table {
    font-size: 0.86rem;
}

.reports-table thead th {
    padding: 0.75rem 0.9rem;
    color: #65737a;
    background: #f5f8f8;
    border-bottom: 1px solid #dce4e6;
    font-size: 0.7rem;
    font-weight: 750;
    text-transform: uppercase;
    white-space: nowrap;
}

.reports-table tbody td {
    padding: 0.8rem 0.9rem;
    border-color: #e7ecee;
}

.reports-table tbody tr:hover {
    background: #f8fafa;
}

.reports-table__primary,
.reports-table__link {
    color: #20383e;
    font-weight: 700;
}

.reports-table__link {
    text-decoration: none;
}

.reports-table__link:hover {
    color: #0c6a7a;
    text-decoration: underline;
}

.reports-table__muted {
    margin-top: 0.15rem;
    max-width: 280px;
    color: #7a878d;
    font-size: 0.76rem;
}

.reports-money {
    color: #34464d;
    font-variant-numeric: tabular-nums;
    font-weight: 650;
    white-space: nowrap;
}

.reports-money--paid {
    color: #17633e;
}

.reports-money--due {
    color: #a23e35;
}

.reports-scope-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.reports-scope,
.reports-badge {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0.2rem 0.48rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 750;
    line-height: 1;
    white-space: nowrap;
}

.reports-scope {
    margin-top: 0.25rem;
    color: #52646b;
    background: #edf1f2;
}

.reports-scope--club {
    color: #724f09;
    background: #f6eccf;
}

.reports-scope--digital {
    color: #185765;
    background: #e0f0f3;
}

.reports-scope--team {
    color: #5c477a;
    background: #eee7f5;
}

.reports-scope--match {
    color: #8a3b33;
    background: #f7e5e2;
}

.reports-scope--player {
    color: #17603c;
    background: #e1f0e7;
}

.reports-badge--success {
    color: #155c39;
    background: #dff1e7;
}

.reports-badge--warning {
    color: #785609;
    background: #f8edca;
}

.reports-badge--danger {
    color: #94362e;
    background: #f8e2df;
}

.reports-badge--info {
    color: #165667;
    background: #dff0f3;
}

.reports-badge--neutral {
    color: #5d696e;
    background: #e9edef;
}

.reports-collection {
    overflow: hidden;
}

.reports-collection__header {
    padding: 1.2rem;
    color: #fff;
    background: #173f45;
}

.reports-collection__header>div:first-child {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.reports-collection__header span {
    font-size: 0.8rem;
    font-weight: 650;
}

.reports-collection__header strong {
    font-size: 1.4rem;
}

.reports-collection .progress {
    height: 7px;
    background: rgba(255, 255, 255, 0.2);
}

.reports-collection .progress-bar {
    background: #d1ad4d;
}

.reports-breakdown {
    margin: 0;
    padding: 0.4rem 1.2rem;
}

.reports-breakdown>div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid #e5ebed;
}

.reports-breakdown>div:last-child {
    border: 0;
}

.reports-breakdown dt {
    color: #6b787e;
    font-size: 0.8rem;
    font-weight: 500;
}

.reports-breakdown dd {
    margin: 0;
    font-size: 0.9rem;
    font-variant-numeric: tabular-nums;
    font-weight: 750;
}

.reports-filter {
    display: flex;
    align-items: flex-end;
    gap: 0.65rem;
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
}

.reports-filter .form-label {
    margin-bottom: 0.25rem;
    color: #65737a;
    font-size: 0.72rem;
    font-weight: 700;
}

.reports-filter__total {
    display: flex;
    flex-direction: column;
    margin-left: auto;
    text-align: right;
}

.reports-filter__total span {
    color: #748188;
    font-size: 0.7rem;
    text-transform: uppercase;
}

.reports-filter__total strong {
    color: #173f45;
    font-size: 1.05rem;
}

.reports-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 150px;
    color: #7a878d;
    text-align: center;
}

.reports-empty i {
    color: #9aa8ad;
    font-size: 1.5rem;
}

@media (max-width: 1199.98px) {
    .reports-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .reports-overview-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .reports-kpi-grid {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    .reports-kpi {
        min-height: 96px;
        padding: 0.9rem;
    }

    .reports-kpi__value {
        font-size: 1.4rem;
    }

    .reports-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .reports-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .reports-actions .btn {
        flex: 1 1 120px;
    }

    .reports-toolbar,
    .reports-filter {
        align-items: stretch;
        flex-direction: column;
        gap: 0.6rem;
    }

    .reports-toolbar__controls,
    .reports-filter {
        width: 100%;
    }

    .reports-toolbar__controls {
        flex-direction: column;
        align-items: stretch;
    }

    .reports-toolbar__controls .form-select,
    .reports-toolbar__controls .form-control,
    .reports-toolbar__controls .btn,
    .reports-filter .form-control,
    .reports-filter .form-select,
    .reports-filter .btn {
        width: 100%;
        min-width: 0;
    }

    .reports-filter>div:not(.reports-filter__total) {
        flex: 1 1 140px;
    }

    .reports-filter__total {
        flex: 1 0 100%;
        margin: 0.4rem 0 0;
        padding-top: 0.65rem;
        border-top: 1px solid #e2e8ea;
        text-align: left;
    }

    .reports-page .reports-tabs {
        overflow-x: auto;
        padding-bottom: 0.25rem;
        scrollbar-width: thin;
    }

    .reports-page .reports-tabs .nav-link {
        flex: 0 0 auto;
        min-height: 44px;
        padding: 0.65rem 0.8rem;
    }
}

/* Venues */
.venues-page {
    color: #25363d;
    background: #f3f6f6;
}

.venues-notices .alert {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1rem;
    border: 1px solid #b9ddca;
    border-radius: 6px;
}

.venues-notices .btn-close {
    margin-left: auto;
}

.venues-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.venues-summary {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-height: 96px;
    padding: 1rem 1.1rem;
    background: #fff;
    border: 1px solid #d9e2e4;
    border-radius: 6px;
    box-shadow: 0 4px 14px rgba(23, 63, 69, 0.05);
}

.venues-summary__icon {
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 6px;
}

.venues-summary__icon--total {
    color: #185765;
    background: #e0f0f3;
}

.venues-summary__icon--used {
    color: #17613d;
    background: #dff1e7;
}

.venues-summary__icon--complete {
    color: #5b4775;
    background: #eee8f4;
}

.venues-summary__icon--attention {
    color: #8a5710;
    background: #f7eccd;
}

.venues-summary__label {
    color: #6b7980;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
}

.venues-summary__value {
    margin-top: 0.1rem;
    color: #173f45;
    font-size: 1.55rem;
    font-weight: 750;
    line-height: 1.1;
}

.venues-directory {
    overflow: hidden;
    background: #fff;
    border: 1px solid #d9e2e4;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(23, 63, 69, 0.06);
}

.venues-directory__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.25rem;
    border-bottom: 1px solid #e1e8ea;
}

.venues-directory__eyebrow {
    margin-bottom: 0.2rem;
    color: #8a6817;
    font-size: 0.7rem;
    font-weight: 750;
    text-transform: uppercase;
}

.venues-directory__header h2 {
    margin: 0;
    color: #173f45;
    font-size: 1.2rem;
    font-weight: 750;
}

.venues-directory__header p {
    margin: 0.2rem 0 0;
    color: #718087;
    font-size: 0.84rem;
}

.venues-directory__add {
    flex: 0 0 auto;
}

.venues-toolbar {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.85rem 1.25rem;
    background: #f7f9f9;
    border-bottom: 1px solid #dfe6e8;
}

.venues-search {
    position: relative;
    flex: 1 1 360px;
    height: 40px;
    max-width: 520px;
}

.venues-search .form-control {
    min-height: 40px;
    padding-left: 0.85rem;
    padding-right: 2.35rem;
    border-color: #cdd8db;
    border-radius: 5px;
    font-size: 0.86rem;
}

.venues-search__clear {
    position: absolute;
    top: 50%;
    right: 0.45rem;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    padding: 0;
    color: #65747a;
    background: transparent;
    border: 0;
    border-radius: 4px;
    transform: translateY(-50%);
}

.venues-search__clear:hover {
    color: #173f45;
    background: #e6ecee;
}

.venues-filter {
    display: inline-flex;
    flex: 0 0 auto;
    padding: 3px;
    background: #e7edef;
    border-radius: 5px;
}

.venues-filter__option {
    min-height: 32px;
    padding: 0.35rem 0.7rem;
    color: #5c6b71;
    background: transparent;
    border: 0;
    border-radius: 3px;
    font-size: 0.76rem;
    font-weight: 700;
}

.venues-filter__option:hover {
    color: #173f45;
}

.venues-filter__option.active {
    color: #173f45;
    background: #fff;
    box-shadow: 0 1px 4px rgba(23, 63, 69, 0.12);
}

.venues-toolbar__count {
    flex: 0 0 auto;
    margin-left: auto;
    color: #728087;
    font-size: 0.8rem;
}

.venues-toolbar__count strong {
    color: #173f45;
}

.venues-table {
    font-size: 0.86rem;
}

.venues-table thead th {
    padding: 0.75rem 1rem;
    color: #68777d;
    background: #fff;
    border-bottom: 1px solid #dce4e6;
    font-size: 0.69rem;
    font-weight: 750;
    text-transform: uppercase;
    white-space: nowrap;
}

.venues-table tbody td {
    padding: 0.82rem 1rem;
    border-color: #e5ebed;
}

.venues-table tbody tr:hover {
    background: #f8fafa;
}

.venues-primary {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 0.75rem;
}

.venues-primary__icon {
    display: grid;
    place-items: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    color: #176172;
    background: #e1f0f2;
    border-radius: 5px;
}

.venues-primary__name {
    display: block;
    color: #203a40;
    font-weight: 700;
    text-decoration: none;
}

.venues-primary__name:hover {
    color: #0c6a7a;
    text-decoration: underline;
}

.venues-primary__club,
.venues-address__secondary,
.venues-muted {
    margin-top: 0.12rem;
    color: #79868c;
    font-size: 0.76rem;
}

.venues-primary__club {
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.venues-address {
    color: #33464d;
    font-weight: 600;
}

.venues-usage {
    display: inline-flex;
    align-items: baseline;
    gap: 0.25rem;
    color: #53636a;
    font-size: 0.76rem;
}

.venues-usage strong {
    color: #173f45;
    font-size: 0.96rem;
}

.venues-status {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    gap: 0.35rem;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 750;
    white-space: nowrap;
}

.venues-status--complete {
    color: #155d3a;
    background: #dff1e7;
}

.venues-status--attention {
    color: #7c5709;
    background: #f8edca;
}

.venues-actions {
    display: inline-flex;
    gap: 0.35rem;
}

.venues-actions .btn {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
}

.venues-mobile {
    padding: 0.85rem;
    background: #f4f7f7;
}

.venues-mobile-card {
    padding: 1rem;
    background: #fff;
    border: 1px solid #dce4e6;
    border-radius: 6px;
}

.venues-mobile-card+.venues-mobile-card {
    margin-top: 0.7rem;
}

.venues-mobile-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.venues-mobile-card__header>.venues-status {
    flex: 0 0 24px;
    justify-content: center;
    width: 24px;
    padding: 0;
}

.venues-mobile-card__details {
    display: grid;
    gap: 0.5rem;
    margin-top: 0.85rem;
    padding: 0.75rem 0;
    color: #607077;
    border-top: 1px solid #e6ecee;
    border-bottom: 1px solid #e6ecee;
    font-size: 0.78rem;
}

.venues-mobile-card__details>div {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
}

.venues-mobile-card__details i {
    width: 16px;
    margin-top: 0.12rem;
    color: #75868c;
    text-align: center;
}

.venues-mobile-card__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.45rem;
    margin-top: 0.8rem;
}

.venues-mobile-card__actions .btn:last-child {
    width: 34px;
    padding-left: 0;
    padding-right: 0;
}

.venues-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    padding: 2rem;
    color: #738087;
    text-align: center;
}

.venues-empty[hidden] {
    display: none;
}

.venues-empty>i {
    margin-bottom: 0.8rem;
    color: #91a0a5;
    font-size: 2rem;
}

.venues-empty h3 {
    margin: 0;
    color: #294047;
    font-size: 1rem;
}

.venues-empty p {
    margin: 0.3rem 0 1rem;
    font-size: 0.84rem;
}

@media (max-width: 1199.98px) {
    .venues-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .venues-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.65rem;
    }

    .venues-summary {
        align-items: flex-start;
        min-height: 112px;
        padding: 0.85rem;
    }

    .venues-summary__icon {
        flex-basis: 36px;
        width: 36px;
        height: 36px;
    }

    .venues-summary__value {
        font-size: 1.35rem;
    }

    .venues-directory__header {
        align-items: flex-start;
    }

    .venues-directory__header p {
        display: none;
    }

    .venues-directory__add {
        display: inline-grid;
        place-items: center;
        width: 38px;
        height: 38px;
        padding: 0;
    }

    .venues-directory__add span {
        display: none;
    }

    .venues-toolbar {
        align-items: stretch;
        flex-wrap: wrap;
        padding: 0.75rem;
    }

    .venues-search {
        flex-basis: 100%;
        max-width: none;
    }

    .venues-filter {
        flex: 1 1 auto;
    }

    .venues-filter__option {
        flex: 1 1 auto;
    }

    .venues-toolbar__count {
        align-self: center;
    }
}

/* Venue editor */
.venue-editor-page,
.venue-delete-page {
    color: #26383f;
    background: #f3f6f6;
}

.venue-editor-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    max-width: 1180px;
    margin: 0 auto 1rem;
    border-radius: 6px;
}

.venue-editor-alert>i {
    margin-top: 0.2rem;
}

.venue-editor-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 1rem;
    max-width: 1180px;
    margin: 0 auto;
    align-items: start;
}

.venue-editor-panel,
.venue-editor-overview,
.venue-delete-panel {
    background: #fff;
    border: 1px solid #d9e2e4;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(23, 63, 69, 0.06);
}

.venue-editor-panel {
    overflow: hidden;
}

.venue-editor-panel__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.2rem 1.35rem;
    background: #f8fafa;
    border-bottom: 1px solid #dfe7e9;
}

.venue-editor-panel__eyebrow {
    margin-bottom: 0.2rem;
    color: #8b6817;
    font-size: 0.7rem;
    font-weight: 750;
    text-transform: uppercase;
}

.venue-editor-panel__header h2,
.venue-delete-panel__content h2 {
    margin: 0;
    color: #173f45;
    font-size: 1.25rem;
    font-weight: 750;
}

.venue-editor-panel__header p,
.venue-delete-panel__content>p {
    margin: 0.25rem 0 0;
    color: #718087;
    font-size: 0.84rem;
}

.venue-editor-id {
    flex: 0 0 auto;
    padding: 0.3rem 0.5rem;
    color: #65747a;
    background: #e8edef;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
}

.venue-editor-section {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 1.5rem;
    padding: 1.35rem;
    border-bottom: 1px solid #e4eaec;
}

.venue-editor-section__heading {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
}

.venue-editor-section__heading>span {
    display: grid;
    place-items: center;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    color: #176172;
    background: #e1f0f2;
    border-radius: 5px;
    font-size: 0.8rem;
}

.venue-editor-section__heading h3 {
    margin: 0;
    color: #294148;
    font-size: 0.9rem;
    font-weight: 750;
}

.venue-editor-section__heading p {
    margin: 0.2rem 0 0;
    color: #7a878d;
    font-size: 0.74rem;
    line-height: 1.45;
}

.venue-editor-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.venue-editor-field--full {
    grid-column: 1 / -1;
}

.venue-editor-field .form-label {
    margin-bottom: 0.35rem;
    color: #4f6067;
    font-size: 0.76rem;
    font-weight: 700;
}

.venue-editor-field .form-label span {
    color: #a43c33;
}

.venue-editor-field .form-control,
.venue-editor-field .form-select {
    min-height: 42px;
    color: #263a41;
    border-color: #cbd7da;
    border-radius: 5px;
    font-size: 0.88rem;
}

.venue-editor-field textarea.form-control {
    min-height: 105px;
    resize: vertical;
}

.venue-editor-field .form-control:focus,
.venue-editor-field .form-select:focus {
    border-color: #1c7180;
    box-shadow: 0 0 0 0.2rem rgba(28, 113, 128, 0.12);
}

.venue-editor-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.35rem;
    background: #f8fafa;
}

.venue-editor-footer__secondary {
    display: flex;
    gap: 0.5rem;
}

.venue-editor-overview {
    position: sticky;
    top: 1rem;
    padding: 1.15rem;
}

.venue-editor-overview__map {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8ea;
}

.venue-editor-overview__map>span {
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    color: #176172;
    background: #e1f0f2;
    border-radius: 6px;
}

.venue-editor-overview__label {
    color: #748188;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.venue-editor-overview__status {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.88rem;
}

.venue-editor-overview__details {
    margin: 0;
    padding: 0.35rem 0 1rem;
}

.venue-editor-overview__details>div {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid #e8edef;
}

.venue-editor-overview__details dt {
    color: #748188;
    font-size: 0.75rem;
    font-weight: 500;
}

.venue-editor-overview__details dd {
    margin: 0;
    color: #30464d;
    font-size: 0.78rem;
    font-weight: 650;
    text-align: right;
    overflow-wrap: anywhere;
}

.venue-delete-panel {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 1.1rem;
    max-width: 680px;
    margin: 0 auto;
    padding: 1.4rem;
}

.venue-delete-panel__icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    color: #a43c33;
    background: #f8e2df;
    border-radius: 6px;
    font-size: 1.25rem;
}

.venue-delete-impact {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
    padding: 0.9rem;
    background: #f5f8f8;
    border: 1px solid #dfe6e8;
    border-radius: 5px;
}

.venue-delete-impact>span {
    color: #6b7a80;
}

.venue-delete-impact strong {
    color: #30464d;
    font-size: 0.86rem;
}

.venue-delete-impact p {
    margin: 0.15rem 0 0;
    color: #728087;
    font-size: 0.78rem;
}

.venue-delete-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

@media (max-width: 991.98px) {
    .venue-editor-layout {
        grid-template-columns: 1fr;
    }

    .venue-editor-overview {
        position: static;
        grid-row: 1;
    }
}

@media (max-width: 767.98px) {
    .venue-editor-section {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }

    .venue-editor-section__heading p {
        display: none;
    }

    .venue-editor-fields {
        grid-template-columns: 1fr;
    }

    .venue-editor-field--full {
        grid-column: auto;
    }

    .venue-editor-panel__header,
    .venue-editor-footer {
        padding: 1rem;
    }

    .venue-editor-footer {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .venue-editor-footer>.btn,
    .venue-editor-footer__secondary .btn {
        flex: 1 1 0;
    }

    .venue-delete-panel {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .venue-delete-actions {
        flex-direction: column-reverse;
    }

    .venue-delete-actions .btn {
        width: 100%;
    }
}

/* Competitions */
.competitions-page {
    color: #26383f;
    background: #f3f6f6;
}

.competition-season-picker {
    overflow: hidden;
    border: 1px solid var(--hub-line, rgba(75, 8, 24, 0.12));
    border-radius: 0.85rem;
    background: #fff;
}

.competition-season-picker__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.75rem;
    border-bottom: 1px solid var(--hub-line, rgba(75, 8, 24, 0.12));
    background: rgba(243, 246, 246, 0.72);
}

.competition-season-search {
    position: relative;
    flex: 1 1 18rem;
    max-width: 30rem;
}

.competition-season-search i,
.competition-season-search svg {
    position: absolute;
    top: 50%;
    left: 0.75rem;
    z-index: 1;
    color: var(--hub-muted, #6f7779);
    transform: translateY(-50%);
    pointer-events: none;
}

.competition-season-search .form-control {
    padding-left: 2.25rem;
}

.competition-season-count {
    flex: 0 0 auto;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: rgba(224, 180, 42, 0.16);
    color: #745900;
    font-size: 0.76rem;
    font-weight: 800;
}

.competition-season-picker__list {
    display: grid;
    gap: 0.45rem;
    max-height: 19rem;
    padding: 0.65rem;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.competition-season-picker__item[hidden] {
    display: none;
}

.competition-season-option {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;
    width: 100%;
    min-height: 3.65rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid rgba(75, 8, 24, 0.1);
    border-radius: 0.65rem;
    background: #f8f9f9;
    cursor: pointer;
    transition: background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.competition-season-option:hover:not(.is-disabled) {
    border-color: rgba(224, 180, 42, 0.7);
    background: rgba(224, 180, 42, 0.08);
    transform: translateY(-1px);
}

.competition-season-option:focus-within {
    border-color: var(--brand-warning);
    box-shadow: 0 0 0 0.2rem rgba(224, 180, 42, 0.2);
}

.competition-season-option:has(.form-check-input:checked) {
    border-color: var(--brand-warning);
    background: rgba(224, 180, 42, 0.13);
    box-shadow: inset 4px 0 0 var(--brand-warning);
}

.competition-season-option__control {
    display: grid;
    place-items: center;
}

.competition-season-option__control .form-check-input {
    margin: 0;
}

.competition-season-option__content,
.competition-season-option__title,
.competition-season-option__meta {
    display: block;
    min-width: 0;
}

.competition-season-option__title {
    color: var(--hub-ink, #26383f);
    font-weight: 750;
}

.competition-season-option__meta {
    margin-top: 0.18rem;
    color: var(--hub-muted, #6f7779);
    font-size: 0.78rem;
}

.competition-season-option__meta .badge {
    margin-right: 0.3rem;
}

.competition-season-option.is-disabled {
    cursor: not-allowed;
    opacity: 0.62;
}

.competition-season-picker__empty {
    padding: 1.2rem;
    border-top: 1px solid var(--hub-line, rgba(75, 8, 24, 0.12));
    color: var(--hub-muted, #6f7779);
    text-align: center;
}

.competition-season-assignment {
    overflow: hidden;
    border: 1px solid var(--hub-line, rgba(75, 8, 24, 0.12));
    border-radius: 0.85rem;
    background: #fff;
}

.competition-season-assignment__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 0.9rem;
    border-bottom: 1px solid var(--hub-line, rgba(75, 8, 24, 0.12));
    background: rgba(243, 246, 246, 0.72);
}

.competition-season-assignment__header>span {
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    background: rgba(224, 180, 42, 0.16);
    color: #745900;
    font-size: 0.74rem;
    font-weight: 800;
}

.competition-season-assignment__list {
    display: grid;
    gap: 0.45rem;
    max-height: 17rem;
    padding: 0.65rem;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.competition-season-assignment__item {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
    min-height: 3.8rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid rgba(75, 8, 24, 0.1);
    border-radius: 0.65rem;
    background: #f8f9f9;
}

.competition-season-assignment__item[hidden] {
    display: none;
}

.competition-season-assignment__input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.competition-season-assignment__icon {
    display: grid;
    place-items: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 0.6rem;
    background: rgba(75, 8, 24, 0.09);
    color: var(--brand-primary);
}

.competition-season-assignment__content,
.competition-season-assignment__content>strong,
.competition-season-assignment__content>span {
    display: block;
    min-width: 0;
}

.competition-season-assignment__content>strong {
    color: var(--hub-ink, #26383f);
}

.competition-season-assignment__content>span {
    margin-top: 0.18rem;
    color: var(--hub-muted, #6f7779);
    font-size: 0.78rem;
}

.competition-season-assignment__content .badge {
    margin-right: 0.3rem;
}

.competition-season-assignment__remove:disabled {
    opacity: 0.48;
}

.competition-season-assignment__empty {
    padding: 1.15rem;
    color: var(--hub-muted, #6f7779);
    text-align: center;
}

.competition-season-assignment__add {
    padding: 0.85rem;
    border-top: 1px solid var(--hub-line, rgba(75, 8, 24, 0.12));
    background: rgba(243, 246, 246, 0.5);
}

.competition-league-toggle {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.9rem;
    align-items: center;
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(75, 8, 24, 0.18);
    border-radius: 0.85rem;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.competition-league-toggle:hover {
    border-color: rgba(224, 180, 42, 0.8);
}

.competition-league-toggle:focus-within {
    border-color: var(--brand-warning);
    box-shadow: 0 0 0 0.2rem rgba(224, 180, 42, 0.2);
}

.competition-league-toggle:has(.form-check-input:checked) {
    border-color: var(--brand-warning);
    background: rgba(224, 180, 42, 0.13);
    box-shadow: inset 5px 0 0 var(--brand-warning);
}

.competition-league-toggle__icon {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.7rem;
    background: rgba(75, 8, 24, 0.09);
    color: var(--brand-primary);
    font-size: 1.1rem;
}

.competition-league-toggle__copy,
.competition-league-toggle__copy strong,
.competition-league-toggle__copy small {
    display: block;
}

.competition-league-toggle__copy strong {
    color: var(--hub-ink, #26383f);
    font-size: 1rem;
}

.competition-league-toggle__copy small {
    margin-top: 0.18rem;
    color: var(--hub-muted, #6f7779);
}

.competition-league-toggle__switch {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0;
    padding: 0;
}

.competition-league-toggle__switch .form-check-input {
    float: none;
    width: 3rem;
    height: 1.55rem;
    margin: 0;
}

.competition-league-toggle__state {
    min-width: 1.7rem;
    color: var(--hub-muted, #6f7779);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
}

@media (max-width: 575.98px) {
    .competition-season-assignment__item {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .competition-season-assignment__remove {
        grid-column: 1 / -1;
        width: 100%;
    }

    .competition-league-toggle {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .competition-league-toggle__switch {
        grid-column: 1 / -1;
        justify-self: end;
    }
}

.competitions-notices .alert {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1rem;
    border: 1px solid #b9ddca;
    border-radius: 6px;
}

.competitions-notices .btn-close {
    margin-left: auto;
}

.competitions-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.competitions-summary {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-height: 96px;
    padding: 1rem 1.1rem;
    background: #fff;
    border: 1px solid #d9e2e4;
    border-radius: 6px;
    box-shadow: 0 4px 14px rgba(23, 63, 69, 0.05);
}

.competitions-summary__icon {
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 6px;
}

.competitions-summary__icon--total {
    color: #72520d;
    background: #f7edcf;
}

.competitions-summary__icon--used {
    color: #17613d;
    background: #dff1e7;
}

.competitions-summary__icon--fixtures {
    color: #185765;
    background: #e0f0f3;
}

.competitions-summary__icon--league {
    color: #5b4775;
    background: #eee8f4;
}

.competitions-summary__label {
    color: #6b7980;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
}

.competitions-summary__value {
    margin-top: 0.1rem;
    color: #173f45;
    font-size: 1.55rem;
    font-weight: 750;
    line-height: 1.1;
}

.competitions-directory {
    overflow: hidden;
    background: #fff;
    border: 1px solid #d9e2e4;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(23, 63, 69, 0.06);
}

.competitions-directory__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.25rem;
    border-bottom: 1px solid #e1e8ea;
}

.competitions-directory__eyebrow {
    margin-bottom: 0.2rem;
    color: #8a6817;
    font-size: 0.7rem;
    font-weight: 750;
    text-transform: uppercase;
}

.competitions-directory__header h2 {
    margin: 0;
    color: #173f45;
    font-size: 1.2rem;
    font-weight: 750;
}

.competitions-directory__header p {
    margin: 0.2rem 0 0;
    color: #718087;
    font-size: 0.84rem;
}

.competitions-directory__add {
    flex: 0 0 auto;
}

.competitions-toolbar {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.85rem 1.25rem;
    background: #f7f9f9;
    border-bottom: 1px solid #dfe6e8;
}

.competitions-search {
    position: relative;
    flex: 1 1 360px;
    height: 40px;
    max-width: 520px;
}

.competitions-search .form-control {
    min-height: 40px;
    padding-left: 0.85rem;
    padding-right: 2.35rem;
    border-color: #cdd8db;
    border-radius: 5px;
    font-size: 0.86rem;
}

.competitions-search__clear {
    position: absolute;
    top: 50%;
    right: 0.45rem;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    padding: 0;
    color: #65747a;
    background: transparent;
    border: 0;
    border-radius: 4px;
    transform: translateY(-50%);
}

.competitions-search__clear:hover {
    color: #173f45;
    background: #e6ecee;
}

.competitions-filter {
    display: inline-flex;
    flex: 0 0 auto;
    padding: 3px;
    background: #e7edef;
    border-radius: 5px;
}

.competitions-filter__option {
    min-height: 32px;
    padding: 0.35rem 0.7rem;
    color: #5c6b71;
    background: transparent;
    border: 0;
    border-radius: 3px;
    font-size: 0.76rem;
    font-weight: 700;
}

.competitions-filter__option:hover {
    color: #173f45;
}

.competitions-filter__option.active {
    color: #173f45;
    background: #fff;
    box-shadow: 0 1px 4px rgba(23, 63, 69, 0.12);
}

.competitions-toolbar__count {
    flex: 0 0 auto;
    margin-left: auto;
    color: #728087;
    font-size: 0.8rem;
}

.competitions-toolbar__count strong {
    color: #173f45;
}

.competitions-table {
    font-size: 0.86rem;
}

.competitions-table thead th {
    padding: 0.75rem 1rem;
    color: #68777d;
    background: #fff;
    border-bottom: 1px solid #dce4e6;
    font-size: 0.69rem;
    font-weight: 750;
    text-transform: uppercase;
    white-space: nowrap;
}

.competitions-table tbody td {
    padding: 0.82rem 1rem;
    border-color: #e5ebed;
}

.competitions-table tbody tr:hover {
    background: #f8fafa;
}

.competitions-primary {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 0.75rem;
}

.competitions-primary__mark {
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    overflow: hidden;
    color: #74540e;
    background: #f7edcf;
    border-radius: 5px;
}

.competitions-primary__mark--image {
    padding: 4px;
    background: #fff;
    border: 1px solid #dce4e6;
}

.competitions-primary__mark img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.competitions-primary__name {
    display: block;
    max-width: 430px;
    color: #203a40;
    font-weight: 700;
    text-decoration: none;
}

.competitions-primary__name:hover {
    color: #0c6a7a;
    text-decoration: underline;
}

.competitions-primary__meta,
.competitions-muted {
    margin-top: 0.12rem;
    color: #79868c;
    font-size: 0.76rem;
}

.competitions-primary__meta i {
    margin-right: 0.2rem;
}

.competitions-type,
.competitions-season {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    gap: 0.35rem;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 750;
    white-space: nowrap;
}

.competitions-type--league {
    color: #584373;
    background: #eee8f4;
}

.competitions-type--standard {
    color: #72520d;
    background: #f7edcf;
}

.competitions-season {
    color: #586970;
    background: #e9edef;
}

.competitions-season--current {
    color: #155d3a;
    background: #dff1e7;
}

.competitions-usage {
    display: inline-flex;
    align-items: baseline;
    gap: 0.25rem;
    color: #53636a;
    font-size: 0.76rem;
}

.competitions-usage strong {
    color: #173f45;
    font-size: 0.96rem;
}

.competitions-order {
    display: inline-grid;
    place-items: center;
    min-width: 32px;
    height: 28px;
    padding: 0 0.4rem;
    color: #4e6067;
    background: #edf1f2;
    border-radius: 4px;
    font-size: 0.74rem;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}

.competitions-actions {
    display: inline-flex;
    gap: 0.35rem;
}

.competitions-actions .btn {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
}

.competitions-mobile {
    padding: 0.85rem;
    background: #f4f7f7;
}

.competitions-mobile-card {
    padding: 1rem;
    background: #fff;
    border: 1px solid #dce4e6;
    border-radius: 6px;
}

.competitions-mobile-card+.competitions-mobile-card {
    margin-top: 0.7rem;
}

.competitions-mobile-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.competitions-mobile-card__header>.competitions-type {
    flex: 0 0 26px;
    justify-content: center;
    width: 26px;
    padding: 0;
}

.competitions-mobile-card__details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 0.85rem;
    padding: 0.75rem 0;
    border-top: 1px solid #e6ecee;
    border-bottom: 1px solid #e6ecee;
}

.competitions-mobile-card__details>div {
    min-width: 0;
    padding: 0 0.65rem;
    text-align: center;
}

.competitions-mobile-card__details>div:first-child {
    padding-left: 0;
}

.competitions-mobile-card__details>div:last-child {
    padding-right: 0;
}

.competitions-mobile-card__details>div+div {
    border-left: 1px solid #e4eaec;
}

.competitions-mobile-card__details span,
.competitions-mobile-card__details strong {
    display: block;
}

.competitions-mobile-card__details span {
    color: #78868c;
    font-size: 0.66rem;
}

.competitions-mobile-card__details strong {
    margin-top: 0.2rem;
    color: #294148;
    font-size: 0.76rem;
    overflow-wrap: anywhere;
}

.competitions-mobile-card__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.45rem;
    margin-top: 0.8rem;
}

.competitions-mobile-card__actions .btn:last-child {
    width: 34px;
    padding-left: 0;
    padding-right: 0;
}

.competitions-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    padding: 2rem;
    color: #738087;
    text-align: center;
}

.competitions-empty[hidden] {
    display: none;
}

.competitions-empty>i {
    margin-bottom: 0.8rem;
    color: #91a0a5;
    font-size: 2rem;
}

.competitions-empty h3 {
    margin: 0;
    color: #294047;
    font-size: 1rem;
}

.competitions-empty p {
    margin: 0.3rem 0 1rem;
    font-size: 0.84rem;
}

@media (max-width: 1199.98px) {
    .competitions-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .competitions-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.65rem;
    }

    .competitions-summary {
        align-items: flex-start;
        min-height: 112px;
        padding: 0.85rem;
    }

    .competitions-summary__icon {
        flex-basis: 36px;
        width: 36px;
        height: 36px;
    }

    .competitions-summary__value {
        font-size: 1.35rem;
    }

    .competitions-directory__header {
        align-items: flex-start;
    }

    .competitions-directory__header p {
        display: none;
    }

    .competitions-directory__add {
        display: inline-grid;
        place-items: center;
        width: 38px;
        height: 38px;
        padding: 0;
    }

    .competitions-directory__add span {
        display: none;
    }

    .competitions-toolbar {
        align-items: stretch;
        flex-wrap: wrap;
        padding: 0.75rem;
    }

    .competitions-search {
        flex-basis: 100%;
        max-width: none;
    }

    .competitions-filter {
        flex: 1 1 auto;
    }

    .competitions-filter__option {
        flex: 1 1 auto;
    }

    .competitions-toolbar__count {
        align-self: center;
    }
}

.fixtures-toolbar {
    margin-bottom: 1rem;
}

.fixtures-search {
    position: relative;
    flex: 1 1 320px;
    min-width: 220px;
}

.fixtures-search .form-control {
    min-height: 40px;
    padding-right: 2.4rem;
    padding-left: 2.35rem;
}

.fixtures-search__icon {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 0.85rem;
    color: var(--hub-muted);
    font-size: 0.8rem;
    transform: translateY(-50%);
    pointer-events: none;
}

.fixtures-search__clear {
    position: absolute;
    z-index: 2;
    top: 50%;
    right: 0.4rem;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    padding: 0;
    color: var(--hub-muted);
    background: transparent;
    border: 0;
    border-radius: 0.4rem;
    transform: translateY(-50%);
}

.fixtures-search__clear:hover {
    color: var(--hub-ink);
    background: rgba(106, 32, 54, 0.08);
}

.fixtures-filter-field {
    display: flex;
    align-items: center;
    flex: 0 1 auto;
    gap: 0.45rem;
}

.fixtures-filter-field label {
    margin: 0;
    color: var(--hub-muted);
    font-size: 0.72rem;
    font-weight: 750;
    white-space: nowrap;
}

.fixtures-filter-field .form-select {
    min-width: 135px;
    min-height: 40px;
}

.fixtures-reset {
    min-height: 40px;
    white-space: nowrap;
}

.fixtures-toolbar__count {
    white-space: nowrap;
}

.fixtures-toolbar__count strong {
    color: var(--hub-ink);
}

.fixtures-filter-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 2.5rem 1rem;
    color: var(--hub-muted);
    text-align: center;
}

.fixtures-filter-empty[hidden] {
    display: none;
}

.fixtures-filter-empty>i {
    margin-bottom: 0.25rem;
    color: rgba(106, 32, 54, 0.45);
    font-size: 1.6rem;
}

.fixtures-filter-empty strong {
    color: var(--hub-ink);
}

.fixtures-filter-empty span {
    font-size: 0.82rem;
}

@media (max-width: 767.98px) {
    .fixtures-search {
        flex-basis: 100%;
        max-width: none;
    }

    .fixtures-filter-field {
        flex: 1 1 calc(50% - 0.4rem);
        align-items: stretch;
        flex-direction: column;
        gap: 0.25rem;
    }

    .fixtures-filter-field .form-select {
        width: 100%;
        min-width: 0;
    }

    .fixtures-toolbar__count {
        order: 5;
    }
}

.fixtures-venue-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 999px;
    border: 1px solid transparent;
}

.fixtures-venue-icon--home {
    border-color: rgba(106, 32, 54, 0.2);
    background: rgba(106, 32, 54, 0.12);
    color: var(--brand-primary);
}

.fixtures-venue-icon--away {
    border-color: rgba(3, 105, 161, 0.22);
    background: rgba(14, 165, 233, 0.13);
    color: #0369a1;
}

.fixtures-mobile-venue {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand-primary);
}

.fixtures-venue-text {
    line-height: 1;
}

.fixtures-mobile-opponent {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--brand-darkest);
    line-height: 1.2;
}

.fixtures-mobile-opponent.is-deleted,
.fixtures-opponent-deleted {
    color: var(--brand-danger);
}

.fixtures-payment-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: rgba(31, 26, 29, 0.04);
    font-size: 1rem;
}

.fixtures-sponsorship-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.95rem;
    box-shadow: 0 2px 5px rgba(31, 26, 29, 0.12);
}

.fixtures-sponsorship-status i,
.fixtures-sponsorship-status svg {
    color: inherit !important;
    fill: currentColor;
}

.fixtures-sponsorship-status.is-available {
    border-color: #cbd5e1;
    background: #f1f5f9;
    color: #64748b !important;
    box-shadow: none;
}

.fixtures-sponsorship-status.is-unpaid {
    border-color: #b91c1c;
    background: #dc2626;
    color: #fff !important;
}

.fixtures-sponsorship-status.is-partial {
    border-color: #b45309;
    background: #f59e0b;
    color: #3f2500 !important;
}

.fixtures-sponsorship-status.is-paid {
    border-color: #15803d;
    background: #16a34a;
    color: #fff !important;
}

.fixtures-sponsorship-status.is-complimentary {
    border-color: #0369a1;
    background: #0ea5e9;
    color: #fff !important;
}

.fixtures-sponsorship-status.is-compact {
    width: 1.55rem;
    height: 1.55rem;
    font-size: 0.68rem;
    box-shadow: none;
}

.fixtures-status-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem 1rem;
    margin-bottom: 1rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid rgba(31, 26, 29, 0.08);
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.7);
}

.fixtures-status-legend>span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(31, 26, 29, 0.72);
    font-size: 0.78rem;
    font-weight: 700;
}

.fixtures-mobile-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fixtures-sponsor-col {
    width: 1%;
    min-width: 4.75rem;
    padding-right: 0.45rem !important;
    padding-left: 0.45rem !important;
    white-space: nowrap;
}

.sponsorship-paid-state {
    font-size: 1.1rem;
}

.sponsorship-action-btn {
    min-width: 2.4rem;
}

.sponsorship-action-btn.btn-success,
.sponsorship-action-btn.btn-danger {
    color: #fff;
}

.sponsorship-action-btn.btn-success:hover,
.sponsorship-action-btn.btn-success:focus,
.sponsorship-action-btn.btn-danger:hover,
.sponsorship-action-btn.btn-danger:focus {
    color: #fff;
}

.fixtures-mobile-card {
    cursor: pointer;
}

.fixture-row:hover,
.fixtures-mobile-card:hover {
    background: rgba(106, 32, 54, 0.04);
}

.fixture-row {
    cursor: pointer;
}

.fixture-row:focus-visible {
    outline: 3px solid rgba(224, 180, 42, 0.82);
    outline-offset: -3px;
    background: rgba(106, 32, 54, 0.07);
}

.fixtures-mobile-card--link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.fixtures-mobile-card--link:hover,
.fixtures-mobile-card--link:focus-visible {
    color: inherit;
    border-color: rgba(106, 32, 54, 0.28);
    box-shadow: 0 0.65rem 1.25rem rgba(31, 26, 29, 0.12);
}

.promotion-line {
    border-bottom: 3px solid #28a745 !important;
}

.relegation-line {
    border-top: 3px solid #c92a2a !important;
}

.settings-layout {
    display: grid;
    grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.settings-sidebar {
    position: sticky;
    top: 1rem;
}

.settings-sidebar .nav-pills {
    gap: 0.55rem;
}

.settings-sidebar .nav-link {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    padding: 0.95rem 1rem;
    border-radius: 0.95rem;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(75, 8, 24, 0.08);
    color: var(--brand-darkest);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

.settings-sidebar .nav-link:hover,
.settings-sidebar .nav-link:focus {
    border-color: rgba(106, 32, 54, 0.2);
    background: rgba(255, 255, 255, 0.95);
    color: var(--brand-darkest);
}

.settings-sidebar .nav-link.active {
    background: linear-gradient(135deg, rgba(75, 8, 24, 0.98), rgba(106, 32, 54, 0.96));
    color: #fff;
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 24px rgba(75, 8, 24, 0.22);
}

.settings-sidebar__label {
    font-size: 0.93rem;
    font-weight: 700;
    line-height: 1.2;
}

.settings-sidebar__copy {
    font-size: 0.8rem;
    opacity: 0.76;
    line-height: 1.25;
}

.settings-panel {
    display: grid;
    gap: 1rem;
}

.settings-panel__section {
    padding: 1.1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(18, 78, 102, 0.08);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.settings-panel__grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.settings-panel__grid--single {
    grid-template-columns: 1fr;
}

.settings-panel__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
}

.settings-note {
    border-left: 4px solid var(--brand-accent);
    background: rgba(185, 155, 97, 0.08);
    padding: 0.9rem 1rem;
    border-radius: 0.9rem;
    color: rgba(31, 26, 29, 0.88);
}

.settings-card {
    padding: 1.25rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(18, 78, 102, 0.08);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.settings-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.settings-card__eyebrow {
    margin: 0 0 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--brand-primary);
}

.settings-card__title {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
}

.settings-card__subtitle {
    margin: 0.35rem 0 0;
    color: rgba(31, 26, 29, 0.72);
    max-width: 72ch;
}

.settings-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.1rem;
}

.settings-form-grid--single {
    grid-template-columns: 1fr;
}

.settings-field .form-label {
    margin-bottom: 0.45rem;
}

.settings-field .form-control,
.settings-field .form-select {
    min-height: 3rem;
}

.settings-card__footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.25rem;
}

/* Settings: master template workspace */
.template-settings {
    --template-border: rgba(75, 8, 24, 0.1);
    --template-muted: rgba(31, 26, 29, 0.64);
}

.template-settings__hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1rem;
    padding: 1.35rem 1.5rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 1.15rem;
    background:
        radial-gradient(circle at 92% 0, rgba(224, 180, 42, 0.2), transparent 30%),
        linear-gradient(135deg, #31040e 0%, #4b0818 54%, #6a2036 100%);
    box-shadow: 0 0.8rem 2rem rgba(49, 4, 14, 0.16);
    color: #fff;
}

.template-settings__hero::after {
    position: absolute;
    z-index: -1;
    right: -4rem;
    bottom: -6rem;
    width: 15rem;
    height: 15rem;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 50%;
    content: "";
}

.template-settings__hero-copy {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.template-settings__hero-icon {
    display: grid;
    flex: 0 0 auto;
    width: 3.25rem;
    height: 3.25rem;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: var(--brand-warning);
    font-size: 1.25rem;
}

.template-settings__eyebrow,
.template-editor__type {
    margin: 0 0 0.2rem;
    color: var(--brand-primary);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.template-settings__hero .template-settings__eyebrow {
    color: rgba(246, 236, 222, 0.7);
}

.template-settings__title {
    margin: 0;
    font-size: clamp(1.35rem, 2vw, 1.7rem);
    font-weight: 750;
    letter-spacing: -0.02em;
}

.template-settings__subtitle {
    max-width: 62ch;
    margin: 0.35rem 0 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.9rem;
}

.template-settings__summary {
    display: flex;
    flex: 0 0 auto;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.9rem;
    background: rgba(20, 0, 6, 0.2);
    backdrop-filter: blur(8px);
}

.template-settings__stat {
    display: grid;
    min-width: 5.5rem;
    padding: 0.7rem 0.9rem;
    text-align: center;
}

.template-settings__stat+.template-settings__stat {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.template-settings__stat strong {
    color: #fff;
    font-size: 1.15rem;
    line-height: 1.1;
}

.template-settings__stat span {
    margin-top: 0.2rem;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.template-settings__note {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid rgba(185, 155, 97, 0.18);
    border-radius: 0.85rem;
    background: rgba(185, 155, 97, 0.08);
    color: rgba(31, 26, 29, 0.72);
    font-size: 0.82rem;
}

.template-settings__note i {
    color: var(--brand-accent);
}

.template-settings__list {
    display: grid;
    gap: 1rem;
}

.template-editor {
    overflow: hidden;
    border: 1px solid var(--template-border);
    border-radius: 1.15rem;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 0.45rem 1.4rem rgba(31, 26, 29, 0.055);
}

.template-editor__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1.1rem;
    border-bottom: 1px solid var(--template-border);
    background: linear-gradient(180deg, #fff, rgba(250, 247, 241, 0.55));
}

.template-editor__identity {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.template-editor__icon {
    display: grid;
    width: 2.55rem;
    height: 2.55rem;
    place-items: center;
    border-radius: 0.8rem;
    background: rgba(106, 32, 54, 0.09);
    color: var(--brand-primary);
}

.template-editor__title {
    margin: 0;
    color: var(--brand-darkest);
    font-size: 1.08rem;
    font-weight: 750;
}

.template-editor__status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.38rem 0.65rem;
    border-radius: 999px;
    background: rgba(224, 180, 42, 0.11);
    color: #7b5c00;
    font-size: 0.72rem;
    font-weight: 750;
}

.template-editor__status>span {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--brand-warning);
    box-shadow: 0 0 0 3px rgba(224, 180, 42, 0.14);
}

.template-editor__status.is-ready {
    background: rgba(35, 142, 103, 0.09);
    color: #176c50;
}

.template-editor__status.is-ready>span {
    background: #238e67;
    box-shadow: 0 0 0 3px rgba(35, 142, 103, 0.13);
}

.template-editor__content {
    display: grid;
    grid-template-columns: minmax(13rem, 17rem) minmax(0, 1fr);
    gap: 0;
}

.template-editor__media {
    padding: 1rem;
    border-right: 1px solid var(--template-border);
    background: rgba(250, 247, 241, 0.58);
}

.template-editor__preview {
    position: relative;
    display: grid;
    width: 100%;
    aspect-ratio: 4 / 3;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(75, 8, 24, 0.1);
    border-radius: 0.85rem;
    background:
        linear-gradient(45deg, rgba(75, 8, 24, 0.03) 25%, transparent 25% 75%, rgba(75, 8, 24, 0.03) 75%),
        linear-gradient(45deg, rgba(75, 8, 24, 0.03) 25%, #fff 25% 75%, rgba(75, 8, 24, 0.03) 75%);
    background-position: 0 0, 8px 8px;
    background-size: 16px 16px;
}

.template-editor__preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.template-editor__empty {
    display: grid;
    justify-items: center;
    gap: 0.3rem;
    padding: 1rem;
    color: var(--template-muted);
    text-align: center;
}

.template-editor__empty i {
    margin-bottom: 0.2rem;
    color: rgba(106, 32, 54, 0.35);
    font-size: 1.65rem;
}

.template-editor__empty strong {
    color: rgba(31, 26, 29, 0.78);
    font-size: 0.82rem;
}

.template-editor__empty span {
    font-size: 0.7rem;
}

.template-editor__media-meta {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.7rem;
    color: var(--template-muted);
    font-size: 0.7rem;
    line-height: 1.4;
}

.template-editor__media-meta i {
    margin-top: 0.1rem;
    color: var(--brand-accent);
}

.template-editor__form {
    min-width: 0;
    padding: 1rem 1.1rem;
}

.template-editor__upload {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--template-border);
}

.template-editor__label {
    display: block;
    margin: 0;
    color: var(--brand-darkest);
    font-size: 0.8rem;
    font-weight: 750;
}

.template-editor__upload p {
    display: block;
    margin: 0.18rem 0 0;
    color: var(--template-muted);
    font-size: 0.7rem;
}

.template-editor__file-button {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.35rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid rgba(106, 32, 54, 0.2);
    border-radius: 0.7rem;
    background: rgba(106, 32, 54, 0.045);
    color: var(--brand-primary);
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 750;
    transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}

.template-editor__file-button:hover {
    border-color: rgba(106, 32, 54, 0.35);
    background: rgba(106, 32, 54, 0.08);
    transform: translateY(-1px);
}

.template-editor__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.85rem;
}

.template-editor__actions>span {
    color: var(--template-muted);
    font-size: 0.68rem;
}

.template-editor__actions>span i {
    margin-right: 0.25rem;
    color: #238e67;
}

.template-editor__danger {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 0.6rem 1.1rem;
    border-top: 1px solid rgba(143, 31, 47, 0.08);
    background: rgba(143, 31, 47, 0.025);
}

.template-editor__danger>span {
    color: var(--template-muted);
    font-size: 0.68rem;
}

.template-editor__danger form {
    margin: 0;
}

@media (max-width: 991.98px) {
    .template-settings__hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .template-settings__summary {
        width: 100%;
    }

    .template-settings__stat {
        flex: 1 1 0;
    }

    .template-editor__content {
        grid-template-columns: 1fr;
    }

    .template-editor__media {
        display: grid;
        grid-template-columns: minmax(10rem, 15rem) minmax(0, 1fr);
        gap: 0.8rem;
        align-items: start;
        border-right: 0;
        border-bottom: 1px solid var(--template-border);
    }

    .template-editor__media-meta {
        margin-top: 0;
    }
}

@media (max-width: 767.98px) {
    .template-settings__hero {
        padding: 1.1rem;
    }

    .template-settings__hero-icon {
        display: none;
    }

    .template-settings__stat {
        min-width: 0;
        padding: 0.65rem 0.4rem;
    }

    .template-editor__header,
    .template-editor__upload,
    .template-editor__actions,
    .template-editor__danger {
        align-items: stretch;
        flex-direction: column;
    }

    .template-editor__status {
        align-self: flex-start;
    }

    .template-editor__media {
        display: block;
    }

    .template-editor__media-meta {
        margin-top: 0.7rem;
    }

    .template-editor__file-button,
    .template-editor__actions .btn,
    .template-editor__danger .btn {
        width: 100%;
    }

    .template-editor__danger {
        justify-content: flex-start;
    }
}

.settings-link-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 0.9rem;
    border: 1px solid rgba(75, 8, 24, 0.08);
    background: rgba(255, 255, 255, 0.9);
    color: var(--brand-darkest);
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

.settings-link-card:hover {
    border-color: rgba(106, 32, 54, 0.18);
    color: var(--brand-darkest);
    transform: translateY(-1px);
}

.settings-link-card__title {
    margin: 0 0 0.2rem;
    font-size: 1rem;
    font-weight: 700;
}

.settings-link-card__copy {
    margin: 0;
    color: rgba(31, 26, 29, 0.72);
}

.settings-link-card__action {
    flex: 0 0 auto;
    font-weight: 700;
    color: var(--brand-primary);
}

.publishing-settings__nav {
    display: flex;
    gap: 0.55rem;
    margin-bottom: 1rem;
    padding: 0.45rem;
    overflow-x: auto;
    border: 1px solid rgba(75, 8, 24, 0.08);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.72);
    scrollbar-width: thin;
}

.publishing-settings__tab {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.75rem;
    padding: 0.65rem 1rem;
    border: 0;
    border-radius: 0.75rem;
    background: transparent;
    color: rgba(31, 26, 29, 0.7);
    font-weight: 700;
}

.publishing-settings__tab:hover {
    background: rgba(75, 8, 24, 0.06);
    color: var(--brand-primary);
}

.publishing-settings__tab.active {
    background: var(--brand-primary);
    color: #fff;
    box-shadow: 0 6px 16px rgba(75, 8, 24, 0.18);
}

.publishing-settings__panel[hidden] {
    display: none;
}

.publishing-overview-grid,
.publishing-visual-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.publishing-health-card {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    border: 1px solid rgba(75, 8, 24, 0.09);
    border-radius: 0.9rem;
    background: rgba(250, 247, 241, 0.7);
}

.publishing-health-card__icon {
    display: grid;
    flex: 0 0 2.7rem;
    width: 2.7rem;
    height: 2.7rem;
    place-items: center;
    border-radius: 0.75rem;
    background: var(--brand-primary);
    color: #fff;
    font-size: 1.2rem;
}

.publishing-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.publishing-stat {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    border-radius: 0.8rem;
    background: rgba(75, 8, 24, 0.055);
}

.publishing-stat strong {
    color: var(--brand-primary);
    font-size: 1.5rem;
}

.publishing-stat span {
    color: rgba(31, 26, 29, 0.65);
    font-size: 0.8rem;
    font-weight: 700;
}

.publishing-automation-table .form-select,
.publishing-automation-table .form-control {
    min-width: 8rem;
}

.publishing-history-caption {
    display: inline-block;
    max-width: 28rem;
    white-space: normal;
}

.publishing-caption-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.publishing-template-platform-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.publishing-template-global-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: stretch;
}

.publishing-template-safeguards {
    display: grid;
    align-content: center;
    gap: 0.9rem;
    padding: 1rem;
    border: 1px solid rgba(75, 8, 24, 0.09);
    border-radius: 0.9rem;
    background: rgba(75, 8, 24, 0.035);
}

.publishing-channel-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.publishing-channel-card {
    min-width: 0;
    padding: 1rem;
    border: 1px solid rgba(75, 8, 24, 0.1);
    border-radius: 0.9rem;
    background: rgba(250, 247, 241, 0.72);
}

.publishing-channel-card__header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.publishing-caption-card {
    padding: 1rem;
    border: 1px solid rgba(75, 8, 24, 0.09);
    border-radius: 0.9rem;
    background: rgba(250, 247, 241, 0.65);
}

.publishing-presets {
    display: grid;
    gap: 0.8rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(75, 8, 24, 0.09);
}

.publishing-presets__heading {
    color: var(--brand-primary);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.publishing-badge-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.publishing-badge-card {
    display: grid;
    grid-template-columns: 4rem minmax(0, 1fr);
    gap: 0.85rem;
    align-items: center;
    padding: 0.85rem;
    border: 1px solid rgba(75, 8, 24, 0.09);
    border-radius: 0.9rem;
    background: rgba(250, 247, 241, 0.65);
}

.publishing-badge-card__preview {
    display: grid;
    width: 4rem;
    height: 4rem;
    place-items: center;
    overflow: hidden;
    border-radius: 0.75rem;
    background: #fff;
    color: rgba(31, 26, 29, 0.35);
}

.publishing-badge-card__preview img {
    width: 100%;
    height: 100%;
    padding: 0.3rem;
    object-fit: contain;
}

.publishing-badge-card__club {
    margin-bottom: 0.45rem;
    font-weight: 700;
}

.publishing-badge-card__club span {
    color: var(--brand-primary);
    font-size: 0.78rem;
}

.publishing-league-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(15rem, 0.7fr);
    gap: 1.25rem;
    align-items: start;
}

.publishing-banner-preview {
    padding: 0.8rem;
    border-radius: 0.9rem;
    background: rgba(250, 247, 241, 0.8);
}

.publishing-banner-preview__label {
    display: block;
    margin-bottom: 0.55rem;
    color: var(--brand-primary);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.publishing-banner-preview img {
    display: block;
    width: 100%;
    max-height: 15rem;
    border-radius: 0.65rem;
    background: #fff;
    object-fit: contain;
}

.publishing-settings__savebar {
    position: sticky;
    z-index: 5;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(75, 8, 24, 0.1);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -5px 20px rgba(31, 26, 29, 0.08);
    color: rgba(31, 26, 29, 0.68);
    font-size: 0.88rem;
}

@media (min-width: 992px) {
    .players-summary-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .players-filter-collapse.collapse {
        display: block !important;
        height: auto !important;
        visibility: visible !important;
    }
}

@media (max-width: 991.98px) {
    body.hub-shell {
        padding-bottom: 5.4rem;
    }

    .settings-layout {
        grid-template-columns: 1fr;
    }

    .settings-sidebar {
        position: static;
    }

    .settings-panel__grid {
        grid-template-columns: 1fr;
    }

    .settings-card__header,
    .settings-link-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .settings-form-grid {
        grid-template-columns: 1fr;
    }

    .publishing-caption-grid,
    .publishing-template-platform-grid,
    .publishing-template-global-grid,
    .publishing-channel-grid,
    .publishing-badge-grid,
    .publishing-league-layout,
    .publishing-overview-grid,
    .publishing-visual-grid {
        grid-template-columns: 1fr;
    }

    .publishing-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .publishing-settings__savebar {
        align-items: stretch;
        flex-direction: column;
    }

    .publishing-settings__savebar .btn {
        width: 100%;
    }
}

@media (min-width: 1200px) {

    html,
    body.hub-shell {
        min-height: 100%;
        overflow-x: hidden;
        overflow-y: auto;
    }

    body.hub-shell {
        overflow-x: hidden;
    }

    body.hub-shell .navbar {
        background: #2e2e2e;
    }

    body.hub-shell .navbar .container-fluid {
        min-height: 100vh;
    }

    body.hub-shell main.hub-main {
        margin-left: 300px;
        width: calc(100% - 300px);
        max-width: none;
        min-height: 100vh;
        height: auto;
        overflow-y: visible;
        overflow-x: hidden;

        transition: margin-left 0.25s ease, width 0.25s ease;
    }

    html.hub-nav-collapsed body.hub-shell main.hub-main {
        margin-left: 0;
        width: 100%;
    }
}

.fixture-starting11-frame {
    display: block;
    width: 100%;
    min-height: max(900px, calc(100vh - 260px));
    border: 0;
    background: transparent;
}

.users-table__username {
    font-weight: 700;
    color: var(--brand-darkest);
}

.users-table__email {
    overflow-wrap: anywhere;
}

@media (max-width: 991.98px) {
    .users-page {
        padding-right: 0;
        padding-left: 0;
    }
}

.users-mobile-card {
    overflow: hidden;
    border: 1px solid rgba(75, 8, 24, 0.1) !important;
    background: rgba(255, 255, 255, 0.92);
}

.users-mobile-card__title {
    overflow-wrap: anywhere;
}

.users-mobile-card__details {
    display: grid;
}

.users-mobile-card__row {
    display: grid;
    grid-template-columns: 6.5rem minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0.7rem 0;
    border-top: 1px solid rgba(75, 8, 24, 0.08);
}

.users-mobile-card__row dt {
    color: rgba(31, 26, 29, 0.62);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.users-mobile-card__row dd {
    margin: 0;
    text-align: right;
    overflow-wrap: anywhere;
}

/* Hub-wide interaction and layout system */
.hub-skip-link {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 2000;
    padding: 0.7rem 1rem;
    border-radius: 0.65rem;
    background: #fff;
    color: var(--brand-dark);
    font-weight: 700;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.2);
    transform: translateY(-160%);
    transition: transform 0.15s ease;
}

.hub-skip-link:focus {
    transform: translateY(0);
}

.hub-season-switcher {
    display: grid;
    gap: 0.35rem;
    width: 100%;
    padding: 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.055);
}

.hub-season-switcher label {
    color: rgba(246, 236, 222, 0.68);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hub-season-switcher__control {
    position: relative;
}

.hub-season-switcher__control i,
.hub-season-switcher__control svg {
    position: absolute;
    top: 50%;
    left: 0.65rem;
    z-index: 1;
    color: var(--brand-warning);
    transform: translateY(-50%);
    pointer-events: none;
}

.hub-season-switcher select {
    width: 100%;
    min-height: 2.65rem;
    padding: 0.45rem 2rem 0.45rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0.65rem;
    background: #262526;
    color: #fff;
    font-weight: 600;
}

.hub-season-switcher select:focus-visible {
    outline: 3px solid rgba(224, 180, 42, 0.5);
    outline-offset: 2px;
}

.nav-section-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.4rem 0.2rem;
    border: 0;
    background: transparent;
    color: rgba(246, 236, 222, 0.68);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-align: left;
    text-transform: uppercase;
}

.nav-section-toggle i,
.nav-section-toggle svg {
    transition: transform 0.15s ease;
}

.nav-section-toggle[aria-expanded="true"] i,
.nav-section-toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.nav-section-toggle:hover,
.nav-section-toggle:focus-visible,
.nav-section-toggle.active {
    color: var(--brand-warning);
}

.nav-submenu {
    padding-left: 0.55rem;
    border-left: 1px solid rgba(255, 255, 255, 0.11);
}

.nav-account__identity {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.65rem;
    align-items: center;
    color: #fff;
}

.nav-account__identity>i,
.nav-account__identity>svg {
    color: var(--brand-warning);
    font-size: 1.4rem;
}

.nav-account__identity strong,
.nav-account__identity small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-account__identity small {
    color: rgba(246, 236, 222, 0.62);
    font-size: 0.72rem;
}

.hub-context-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(75, 8, 24, 0.09);
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.7);
    color: rgba(31, 26, 29, 0.72);
    font-size: 0.86rem;
}

.hub-context-bar>div {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.hub-context-bar i,
.hub-context-bar svg {
    color: var(--brand-primary);
}

.dashboard-card--link {
    color: inherit;
    text-decoration: none;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.dashboard-card--link:hover,
.dashboard-card--link:focus-visible {
    color: inherit;
    border-color: rgba(106, 32, 54, 0.25);
    box-shadow: 0 0.75rem 1.5rem rgba(31, 26, 29, 0.1);
    transform: translateY(-2px);
}

.hub-main .card {
    border-radius: 1rem;
}

.hub-main .form-control,
.hub-main .form-select {
    min-height: 2.75rem;
    border-radius: 0.72rem;
    border-color: rgba(75, 8, 24, 0.16);
}

.hub-main textarea.form-control {
    min-height: auto;
}

.hub-main .form-control:focus,
.hub-main .form-select:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 0.2rem rgba(106, 32, 54, 0.14);
}

.hub-main .form-label {
    color: var(--brand-darkest);
    font-weight: 650;
}

/* Checkbox dropdown (multi-select filter, e.g. sponsor package picker) */
.hub-checkbox-dropdown {
    width: 100%;
}

/* The filter row is a flex container, so its own flex item (this field's
   column) needs an explicit stacking context above its siblings — otherwise
   the dropdown menu's z-index is trapped inside its own flex item and later
   fields (e.g. the Apply/Reset buttons column) paint over it regardless. */
.hub-checkbox-dropdown-field {
    position: relative;
    z-index: 3;
}

/* player-sponsors-base.css clips .sponsors-section-card to its rounded
   corners (overflow: hidden) for cards showing tables/images. The sponsor
   filter card carries that class too but only holds form fields, and the
   clip was cutting off this dropdown's menu since it has to escape the
   card's own box to render below the toggle. */
.sponsors-page .hub-form-card.sponsors-section-card {
    overflow: visible;
}

.hub-checkbox-dropdown__toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    text-align: left;
    background: #fff;
}

.hub-checkbox-dropdown__toggle::after {
    margin-left: auto;
}

.hub-checkbox-dropdown__summary {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hub-checkbox-dropdown__menu {
    padding: 0.5rem;
    min-width: 14rem;
    max-height: 16rem;
    overflow-y: auto;
    border-radius: 0.7rem;
    border-color: var(--hub-line);
    box-shadow: var(--hub-shadow);
    z-index: 1050;
}

.hub-checkbox-dropdown__item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.4rem 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
}

.hub-checkbox-dropdown__item:hover {
    background: var(--hub-surface-muted, #faf5ed);
}

.hub-checkbox-dropdown__item input {
    flex: 0 0 auto;
}

.hub-checkbox-dropdown__group-label {
    display: block;
    padding: 0.4rem 0.5rem 0.1rem;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--hub-muted);
}

.hub-checkbox-dropdown__empty {
    display: block;
    padding: 0.4rem 0.5rem;
    font-size: 0.8rem;
    color: var(--hub-muted);
}

.hub-checkbox-dropdown__select-all {
    font-weight: 800;
    margin-bottom: 0.3rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid var(--hub-line);
}

/* Custom box so the indeterminate ("some selected") state can render as a
   solid filled square, matching Excel's filter checkbox rather than the
   native dash-glyph browsers use for :indeterminate. */
.hub-checkbox-dropdown__select-all input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    width: 1rem;
    height: 1rem;
    margin: 0;
    border: 1.5px solid var(--hub-line);
    border-radius: 0.25rem;
    background: #fff;
    cursor: pointer;
}

.hub-checkbox-dropdown__select-all input[type="checkbox"]:checked,
.hub-checkbox-dropdown__select-all input[type="checkbox"]:indeterminate {
    background: var(--brand-primary, #6a2036);
    border-color: var(--brand-primary, #6a2036);
}

.hub-checkbox-dropdown__select-all input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 0.29rem;
    top: 0.07rem;
    width: 0.28rem;
    height: 0.52rem;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.hub-main .table-responsive {
    border-radius: 0.85rem;
}

.hub-main .table>thead>tr>th {
    border-bottom-width: 1px;
    background: rgba(75, 8, 24, 0.055);
    color: rgba(31, 26, 29, 0.7);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.hub-main .table>tbody>tr:hover>* {
    background-color: rgba(246, 236, 222, 0.55);
}

.hub-main .btn {
    min-height: 2.55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    border-radius: 0.68rem;
}

.hub-main .btn-sm,
.page-hero-actions .btn-sm {
    min-height: 2.35rem;
}

.hub-main .alert {
    border-radius: 0.85rem;
}

.hub-confirm-dialog {
    border: 0;
    border-radius: 1rem;
    overflow: hidden;
}

.hub-confirm-dialog__heading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hub-confirm-dialog__icon {
    display: grid;
    width: 2.6rem;
    height: 2.6rem;
    place-items: center;
    border-radius: 0.75rem;
    background: rgba(143, 31, 47, 0.1);
    color: var(--brand-danger);
}

.hub-list-card {
    overflow: hidden;
    border: 1px solid rgba(75, 8, 24, 0.09) !important;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0.45rem 1.25rem rgba(31, 26, 29, 0.07);
}

.hub-data-table {
    margin: 0;
}

.hub-record-empty {
    padding: 2.5rem 1rem !important;
    color: rgba(31, 26, 29, 0.62) !important;
    text-align: center;
}

.hub-row-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.4rem;
}

@media (max-width: 767.98px) {

    .hub-data-table--responsive,
    .hub-data-table--responsive tbody {
        display: block;
        width: 100%;
    }

    .hub-data-table--responsive thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .hub-data-table--responsive tbody tr {
        display: block;
        margin: 0.75rem;
        padding: 0.35rem 0.85rem;
        border: 1px solid rgba(75, 8, 24, 0.1);
        border-radius: 0.9rem;
        background: #fff;
        box-shadow: 0 0.3rem 0.9rem rgba(31, 26, 29, 0.05);
    }

    .hub-data-table--responsive tbody td {
        display: grid;
        grid-template-columns: minmax(6.5rem, 0.4fr) minmax(0, 1fr);
        gap: 0.75rem;
        align-items: center;
        width: 100%;
        padding: 0.7rem 0;
        border-bottom: 1px solid rgba(75, 8, 24, 0.075);
        text-align: right !important;
        white-space: normal !important;
    }

    .hub-data-table--responsive tbody td::before {
        content: attr(data-label);
        color: rgba(31, 26, 29, 0.58);
        font-size: 0.68rem;
        font-weight: 800;
        letter-spacing: 0.06em;
        text-align: left;
        text-transform: uppercase;
    }

    .hub-data-table--responsive tbody td:last-child {
        border-bottom: 0;
    }

    .hub-data-table--responsive tbody td>.badge {
        justify-self: end;
    }

    .hub-data-table--responsive .hub-record-empty {
        display: block;
        text-align: center !important;
    }

    .hub-data-table--responsive .hub-record-empty::before {
        content: none;
    }
}

@media (max-width: 991.98px) {
    .hub-mobile-nav {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .hub-mobile-nav__item {
        border: 0;
        background: transparent;
    }

    .hub-context-bar {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.25rem;
    }

    /* The mobile nav panel is dark (player-sponsors-base.css), so these
       labels need light / gold text, not the near-black they used to get. */
    .navbar .hub-season-switcher label {
        color: rgba(246, 236, 222, 0.66);
    }

    .navbar .nav-section-toggle {
        color: var(--brand-warning);
    }

    .navbar .nav-section-toggle i,
    .navbar .nav-section-toggle svg {
        color: var(--brand-warning);
    }

    .navbar .hub-season-switcher {
        border-color: rgba(75, 8, 24, 0.1);
        background: rgba(75, 8, 24, 0.04);
    }

    .navbar .hub-season-switcher select {
        border-color: rgba(75, 8, 24, 0.14);
        background: #fff;
        color: var(--brand-darkest);
    }

    .navbar .nav-submenu {
        border-left-color: rgba(75, 8, 24, 0.12);
    }

    .navbar .nav-account__identity {
        color: var(--brand-light);
    }

    .navbar .nav-account__identity small {
        color: rgba(246, 236, 222, 0.62);
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

body.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    margin: 0;
    padding: 1.5rem;
    background: radial-gradient(circle at top, rgba(224, 180, 42, 0.16), transparent 30%), linear-gradient(135deg, var(--brand-dark), #2d2b2c 72%);
}

.auth-card {
    width: min(30rem, 100%);
    padding: 2rem;
    border: 1px solid rgba(224, 180, 42, 0.4);
    border-radius: 1rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 236, 222, 0.98));
    box-shadow: 0 1.15rem 2.5rem rgba(0, 0, 0, 0.32);
}

.auth-card__mark {
    display: grid;
    width: 3rem;
    height: 3rem;
    margin-bottom: 1rem;
    place-items: center;
    border-radius: 0.8rem;
    background: var(--brand-primary);
    color: #fff;
    font-size: 1.25rem;
}

.auth-card h1 {
    color: var(--brand-dark);
    font-weight: 750;
}

.auth-card .form-control {
    min-height: 2.8rem;
    border-radius: 0.72rem;
}

/* ================================================================
   Hub design system
   Canonical shared primitives plus compatibility aliases for pages
   that pre-date the shared shell. Keep page-specific creative editors
   free to extend these foundations without inventing another UI theme.
================================================================ */
:root {
    --hub-canvas: #f6ecde;
    --hub-surface: #fffdf9;
    --hub-surface-muted: #faf5ed;
    --hub-ink: #1f1a1d;
    --hub-muted: #70676b;
    --hub-line: rgba(75, 8, 24, 0.12);
    --hub-line-strong: rgba(75, 8, 24, 0.2);
    --hub-shadow-sm: 0 0.35rem 1rem rgba(31, 26, 29, 0.055);
    --hub-shadow: 0 0.7rem 1.7rem rgba(31, 26, 29, 0.08);
    --hub-radius-sm: 0.7rem;
    --hub-radius: 1rem;
    --hub-space: clamp(1rem, 2vw, 1.35rem);
}

body.hub-shell,
.hub-main,
.reports-page,
.competitions-page,
.venues-page {
    color: var(--hub-ink);
    background: var(--hub-canvas);
}

.hub-main {
    min-width: 0;
}

/* The shared page container should run flush to the Hub content viewport. */
.hub-main>.container-fluid {
    --bs-gutter-x: 0;
    padding-left: 0;
    padding-right: 0;
}

.hub-main>.page-hero,
.hub-main>.container-fluid>.page-hero {
    margin-bottom: 1.25rem;
}

.page-hero {
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* border-radius: var(--hub-radius); */
    background:
        radial-gradient(circle at 92% 120%, rgba(224, 180, 42, 0.22), transparent 32%),
        linear-gradient(135deg, var(--brand-dark), var(--brand-primary));
    box-shadow: var(--hub-shadow);
}

.page-hero::after {
    background: radial-gradient(circle, rgba(224, 180, 42, 0.18), transparent 68%);
}

.page-hero-body {
    min-height: 8.25rem;
    padding: clamp(1.2rem, 2.5vw, 1.75rem);
}

.page-hero:not(:has(.page-hero-actions)) .page-hero-body {
    min-height: 6.75rem;
}

.page-hero-title {
    font-size: clamp(1.55rem, 2.4vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -0.025em;
}

.page-hero-eyebrow,
.page-kicker,
.section-kicker,
.settings-card__eyebrow {
    color: rgba(246, 236, 222, 0.76);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.page-kicker,
.section-kicker,
.settings-card__eyebrow {
    color: var(--brand-primary);
}

.page-hero-actions,
.hub-actions,
.dashboard-actions,
.reports-actions,
.venues-actions,
.competitions-actions,
.artwork-actions,
.editor-summary__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

/* Panels and cards */
.hub-panel,
.hub-section,
.hub-form-section,
.hub-form-card,
.hub-table-card,
.hub-list-card,
.dashboard-card,
.settings-card,
.reports-panel,
.utility-panel,
.players-toolbar,
.competitions-directory,
.venues-directory {
    border: 1px solid var(--hub-line) !important;
    border-radius: var(--hub-radius) !important;
    background: rgba(255, 253, 249, 0.96) !important;
    box-shadow: var(--hub-shadow-sm) !important;
}

/* Keeps popover-style controls (e.g. the checkbox dropdown) above cards/tables that follow in the DOM. */
.hub-form-card {
    position: relative;
    z-index: 2;
}

.hub-main .card {
    border-color: var(--hub-line);
    background: rgba(255, 253, 249, 0.96);
    box-shadow: var(--hub-shadow-sm);
}

.hub-main .card-header,
.hub-panel__header,
.hub-table-card__header,
.hub-form-section__header,
.reports-panel__header,
.settings-card__header {
    padding: 1rem var(--hub-space);
    border-bottom: 1px solid var(--hub-line);
    background: var(--hub-surface-muted);
    color: var(--hub-ink);
}

.hub-main .card-body,
.hub-panel__body,
.hub-form-section__body,
.hub-table-card__body {
    padding: var(--hub-space);
}

.hub-main .card-body.p-0 {
    padding: 0 !important;
}

.hub-main .card-title,
.hub-panel__title,
.hub-form-section__title,
.reports-panel__header h2,
.settings-card__title,
.competitions-directory__header h2,
.venues-directory__header h2 {
    margin: 0;
    color: var(--hub-ink);
    font-size: 1.05rem;
    font-weight: 750;
    letter-spacing: -0.015em;
}

/* Metrics: one geometry, with page-specific icon colours retained. */
.hub-metric-grid,
.hub-kpi-grid,
.players-overview,
.reports-kpi-grid,
.competitions-summary-grid,
.venues-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 11.5rem), 1fr));
    gap: 0.75rem;
}

/* Bootstrap row-cols sets percentage widths on direct children. When a
   canonical metric grid is layered onto an existing row, let CSS Grid own
   the columns so cards fill their tracks instead of retaining 25%/16% widths. */
.hub-metric-grid.row,
.hub-kpi-grid.row {
    margin-right: 0;
    margin-left: 0;
}

.hub-metric-grid.row>*,
.hub-kpi-grid.row>* {
    width: auto;
    max-width: none;
    padding-right: 0;
    padding-left: 0;
}

.hub-kpi-grid.row {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr));
}

.hub-metric-grid.row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 768px) {
    .hub-metric-grid.row {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.hub-metric-card,
.hub-kpi-card,
.players-kpi,
.reports-kpi,
.competitions-summary,
.venues-summary {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-height: 6.65rem;
    padding: 1rem;
    border: 1px solid var(--hub-line);
    border-radius: var(--hub-radius);
    background: rgba(255, 253, 249, 0.96);
    box-shadow: var(--hub-shadow-sm);
}

.hub-metric-card__icon,
.players-kpi__icon,
.reports-kpi__icon,
.competitions-summary__icon,
.venues-summary__icon {
    display: grid;
    flex: 0 0 2.75rem;
    width: 2.75rem;
    height: 2.75rem;
    place-items: center;
    border-radius: 0.75rem;
}

.hub-metric-card__label,
.players-kpi__label,
.reports-kpi__label,
.competitions-summary__label,
.venues-summary__label {
    color: var(--hub-muted);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.hub-metric-card__value,
.players-kpi__content strong,
.reports-kpi__value,
.competitions-summary__value,
.venues-summary__value {
    color: var(--hub-ink);
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.1;
}

.hub-metric-card__meta,
.players-kpi__content small,
.reports-kpi__meta {
    color: var(--hub-muted);
    font-size: 0.75rem;
}

/* Filter and list toolbars */
.hub-toolbar,
.competitions-toolbar,
.venues-toolbar,
.pack-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem var(--hub-space);
    border: 1px solid var(--hub-line);
    border-radius: var(--hub-radius);
    background: rgba(255, 253, 249, 0.96);
    box-shadow: var(--hub-shadow-sm);
}

.competitions-directory .competitions-toolbar,
.venues-directory .venues-toolbar {
    border-width: 1px 0 0 !important;
    border-radius: 0 !important;
    box-shadow: none;
}

.hub-toolbar__count,
.competitions-toolbar__count,
.venues-toolbar__count {
    margin-left: auto;
    color: var(--hub-muted);
    font-size: 0.8rem;
}

.competitions-toolbar__count strong,
.venues-toolbar__count strong {
    color: var(--hub-ink);
}

/* Forms */
.hub-main .form-control,
.hub-main .form-select,
.hub-main .input-group-text {
    border-color: var(--hub-line-strong);
    border-radius: var(--hub-radius-sm);
    background-color: #fff;
    color: var(--hub-ink);
}

.hub-main .input-group> :not(:first-child) {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.hub-main .input-group> :not(:last-child) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.hub-main .form-label,
.form-field>label,
.settings-field>label {
    margin-bottom: 0.4rem;
    color: var(--hub-ink);
    font-size: 0.86rem;
    font-weight: 700;
}

.hub-main .form-text,
.players-field__hint,
.settings-field__hint {
    color: var(--hub-muted);
    font-size: 0.78rem;
}

.hub-main .form-check-input:checked {
    border-color: var(--brand-primary);
    background-color: var(--brand-primary);
}

/* Buttons and action clusters */
.hub-main .btn-brand,
.hub-main .btn-primary,
.hub-main .btn-maroon {
    border-color: var(--brand-primary);
    background: var(--brand-primary);
    color: #fff;
}

.hub-main .btn-neutral {
    border-color: var(--hub-line-strong);
    background: #fff;
    color: var(--hub-ink);
}

.hub-main .btn-neutral:hover,
.hub-main .btn-neutral:focus {
    border-color: var(--brand-primary);
    background: var(--hub-surface-muted);
    color: var(--brand-primary);
}

.hub-row-actions,
.hub-actions--end {
    justify-content: flex-end;
}

.hub-row-actions .btn,
.players-row-actions .btn,
.sponsors-mobile-actions .btn,
.competitions-mobile-card__actions .btn,
.venues-mobile-card__actions .btn {
    min-width: 2.5rem;
}

/* Tables and DataTables use the same header, density and dividers. */
.hub-main .table-responsive {
    border: 1px solid var(--hub-line);
    border-radius: var(--hub-radius);
    background: var(--hub-surface);
}

.hub-list-card .table-responsive,
.hub-table-card .table-responsive,
.hub-main .card-body.p-0>.table-responsive {
    border: 0;
    border-radius: 0;
}

.hub-main .table>thead>tr>th,
.competitions-table thead th,
.venues-table thead th {
    padding: 0.8rem 1rem;
    border-color: var(--hub-line);
    background: var(--hub-surface-muted);
    color: var(--hub-muted);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.065em;
    text-transform: uppercase;
}

.hub-main .table>tbody>tr>* {
    padding: 0.85rem 1rem;
    border-color: var(--hub-line);
    color: var(--hub-ink);
    vertical-align: middle;
}

.hub-main .table-striped>tbody>tr:nth-of-type(odd)>* {
    --bs-table-accent-bg: rgba(246, 236, 222, 0.34);
}

.hub-main .dataTables_wrapper .dataTables_filter input,
.hub-main .dataTables_wrapper .dataTables_length select {
    border: 1px solid var(--hub-line-strong);
    border-radius: var(--hub-radius-sm);
    background: #fff;
}

.hub-main .dataTables_wrapper .page-link {
    color: var(--brand-primary);
}

.hub-main .dataTables_wrapper .active>.page-link {
    border-color: var(--brand-primary);
    background: var(--brand-primary);
    color: #fff;
}

/* Status and feedback */
.hub-status,
.player-profile-status,
.fixtures-sponsorship-status,
.reports-badge,
.venues-status,
.configuration-state,
.pack-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    width: fit-content;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 750;
    line-height: 1.2;
}

.hub-main .badge {
    padding: 0.42rem 0.62rem;
    border-radius: 999px;
    font-weight: 700;
}

.hub-main .alert {
    padding: 0.9rem 1rem;
    border-width: 1px 1px 1px 4px;
    border-radius: var(--hub-radius-sm);
    box-shadow: var(--hub-shadow-sm);
}

.hub-empty-state,
.hub-record-empty,
.reports-empty,
.competitions-empty,
.venues-empty,
.pack-empty,
.artwork-empty,
.layout-empty,
.layout-editor-empty,
.match-template-card__empty,
.matches-background-preview__empty {
    padding: clamp(2rem, 5vw, 3.25rem) 1rem !important;
    color: var(--hub-muted) !important;
    text-align: center;
}

.hub-empty-state {
    display: grid;
    gap: 0.35rem;
    justify-items: center;
}

.hub-empty-state> :where(h2, h3, h4, p) {
    margin: 0;
}

.hub-empty-state> :where(i, svg):first-child {
    margin-bottom: 0.35rem;
    color: var(--brand-primary);
    font-size: 1.35rem;
}

.hub-empty-state> :last-child,
.reports-empty> :last-child,
.competitions-empty> :last-child,
.venues-empty> :last-child {
    margin-bottom: 0;
}

/* Mobile record cards share the same surface language. */
.fixtures-mobile-card,
.hub-record-card,
.player-mobile-card,
.competitions-mobile-card,
.venues-mobile-card,
.users-mobile-card,
.sponsors-mobile-card {
    border: 1px solid var(--hub-line) !important;
    border-radius: var(--hub-radius) !important;
    background: var(--hub-surface) !important;
    box-shadow: var(--hub-shadow-sm) !important;
}

@media (max-width: 767.98px) {
    .page-hero-body {
        min-height: 0;
    }

    .page-hero-actions,
    .page-hero-actions .btn {
        width: 100%;
    }

    .hub-toolbar,
    .competitions-toolbar,
    .venues-toolbar,
    .pack-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .hub-toolbar__count,
    .competitions-toolbar__count,
    .venues-toolbar__count {
        margin-left: 0;
    }

    .hub-actions--stack-mobile,
    .hub-actions--stack-mobile .btn {
        width: 100%;
    }

    .hub-data-table--responsive tbody tr {
        border-color: var(--hub-line);
        border-radius: var(--hub-radius);
        background: var(--hub-surface);
        box-shadow: var(--hub-shadow-sm);
    }
}

/* Pass 2: align the remaining teal-era directory/report details with the
   shared club palette after reviewing the updated page implementations. */
.reports-nav {
    border-bottom-color: var(--hub-line);
    background: var(--hub-canvas);
}

.reports-page .reports-tabs .nav-link {
    color: var(--hub-muted);
}

.reports-page .reports-tabs .nav-link:hover {
    color: var(--brand-primary);
    background: var(--hub-surface-muted);
}

.reports-page .reports-tabs .nav-link.active {
    border-color: var(--brand-accent);
    background: var(--hub-surface);
    color: var(--brand-dark);
}

.reports-section-heading__eyebrow,
.competitions-directory__eyebrow,
.venues-directory__eyebrow {
    color: var(--brand-primary);
}

.reports-section-heading h2,
.reports-panel__header h3,
.reports-table__primary,
.reports-table__link,
.competitions-primary__name,
.venues-primary__name {
    color: var(--hub-ink);
}

.reports-section-heading p,
.reports-panel__header p,
.competitions-directory__header p,
.venues-directory__header p,
.reports-table__muted {
    color: var(--hub-muted);
}

.reports-collection,
.reports-filter {
    border-color: var(--hub-line);
    border-radius: var(--hub-radius);
    background: var(--hub-surface);
    box-shadow: var(--hub-shadow-sm);
}

.competitions-filter,
.venues-filter {
    border-radius: var(--hub-radius-sm);
    background: rgba(106, 32, 54, 0.075);
}

.competitions-filter__option,
.venues-filter__option {
    border-radius: 0.5rem;
    color: var(--hub-muted);
}

.competitions-filter__option.active,
.venues-filter__option.active {
    background: #fff;
    color: var(--brand-primary);
    box-shadow: 0 1px 4px rgba(75, 8, 24, 0.12);
}

.hub-main :where(a, button, input, select, textarea, [tabindex]):focus-visible {
    outline: 3px solid rgba(224, 180, 42, 0.82);
    outline-offset: 2px;
}

.hub-main .btn:focus-visible {
    box-shadow: 0 0 0 0.2rem rgba(224, 180, 42, 0.24);
}

::selection {
    background: rgba(106, 32, 54, 0.2);
    color: var(--hub-ink);
}

/* Canonical page actions */
.hub-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    margin: -0.25rem 0 1rem;
    color: var(--hub-muted);
    font-size: 0.8rem;
    font-weight: 650;
}

.hub-breadcrumb a {
    color: var(--brand-primary);
    text-decoration: none;
}

.hub-breadcrumb a:hover,
.hub-breadcrumb a:focus-visible {
    text-decoration: underline;
}

.hub-breadcrumb i {
    color: rgba(31, 26, 29, 0.38);
    font-size: 0.62rem;
}

.hub-local-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
}

.hub-local-actions .dropdown-menu {
    min-width: 13rem;
    padding: 0.4rem;
    border-color: var(--hub-line);
    border-radius: 0.72rem;
    box-shadow: var(--hub-shadow);
}

.hub-local-actions .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.62rem 0.7rem;
    border-radius: 0.45rem;
    color: var(--hub-ink);
    font-size: 0.82rem;
    font-weight: 650;
}

.hub-local-actions .dropdown-item i {
    width: 1.05rem;
    color: var(--brand-primary);
    text-align: center;
}

.hub-section-commandbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--hub-line);
    border-radius: var(--hub-radius);
    background: var(--hub-surface);
    box-shadow: var(--hub-shadow-sm);
}

.hub-section-commandbar h2 {
    margin: 0;
    color: var(--hub-ink);
    font-size: 1rem;
    font-weight: 800;
}

.hub-section-commandbar p {
    margin: 0.15rem 0 0;
    color: var(--hub-muted);
    font-size: 0.78rem;
}

@media (max-width: 575.98px) {
    .hub-section-commandbar {
        align-items: stretch;
        flex-direction: column;
    }

    .hub-local-actions,
    .hub-local-actions>.btn,
    .hub-local-actions>.dropdown,
    .hub-local-actions>.dropdown>.btn {
        width: 100%;
    }
}

.page-hero-actions {
    flex: 0 0 auto;
    gap: 0.45rem;
    padding: 0.45rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 0.85rem;
    background: rgba(43, 8, 20, 0.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.page-hero-action {
    min-height: 2.65rem;
    padding: 0.55rem 0.85rem;
    border-radius: 0.58rem;
    font-size: 0.82rem;
    font-weight: 750;
    line-height: 1.1;
    white-space: nowrap;
}

.page-hero-actions>.btn,
.page-hero-actions>form .btn,
.page-hero-actions>.dropdown>.btn {
    min-height: 2.65rem;
    padding: 0.55rem 0.85rem;
    border-radius: 0.58rem;
    font-size: 0.82rem;
    font-weight: 750;
    line-height: 1.1;
}

.page-hero-action i,
.page-hero-action-menu__item i {
    width: 1.05rem;
    text-align: center;
}

.page-hero-action--primary {
    border-color: #fffaf2;
    background: #fffaf2;
    color: var(--brand-primary);
    box-shadow: 0 5px 16px rgba(27, 4, 12, 0.2);
}

.page-hero-actions .btn-light,
.page-hero-actions .btn-brand {
    border-color: #fffaf2;
    background: #fffaf2;
    color: var(--brand-primary);
    box-shadow: 0 5px 16px rgba(27, 4, 12, 0.2);
}

.page-hero-action--primary:hover,
.page-hero-action--primary:focus-visible {
    border-color: #fff;
    background: #fff;
    color: var(--brand-dark);
}

.page-hero-action--secondary,
.page-hero-action--more {
    border-color: rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.page-hero-actions .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.page-hero-action--secondary:hover,
.page-hero-action--secondary:focus-visible,
.page-hero-action--more:hover,
.page-hero-action--more:focus-visible,
.page-hero-action--more.show {
    border-color: rgba(255, 255, 255, 0.62);
    background: rgba(255, 255, 255, 0.17);
    color: #fff;
}

.page-hero-action-menu .dropdown-menu {
    min-width: 13rem;
    padding: 0.4rem;
    border-color: var(--hub-line);
    border-radius: 0.72rem;
    box-shadow: var(--hub-shadow);
}

.page-hero-action-menu__item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.62rem 0.7rem;
    border-radius: 0.45rem;
    color: var(--hub-ink);
    font-size: 0.82rem;
    font-weight: 650;
}

.page-hero-action-menu__item:hover,
.page-hero-action-menu__item:focus {
    background: rgba(106, 32, 54, 0.09);
    color: var(--brand-primary);
}

/* Canonical summary metrics */
.hub-metric-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.hub-metric-card {
    display: grid;
    grid-template-columns: 2.75rem minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.8rem;
    min-width: 0;
    min-height: 7rem;
    padding: 1rem;
    border: 1px solid var(--hub-line);
    border-radius: var(--hub-radius);
    background: rgba(255, 253, 249, 0.98);
    color: inherit;
    text-decoration: none;
    box-shadow: var(--hub-shadow-sm);
}

.hub-metric-card__body {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
}

.hub-metric-card__icon {
    display: grid;
    width: 2.75rem;
    height: 2.75rem;
    place-items: center;
    border-radius: 0.72rem;
    font-size: 1rem;
}

.hub-metric-card__icon--primary {
    background: rgba(106, 32, 54, 0.11);
    color: var(--brand-primary);
}

.hub-metric-card__icon--success {
    background: rgba(24, 126, 91, 0.12);
    color: #187e5b;
}

.hub-metric-card__icon--warning {
    background: rgba(183, 126, 0, 0.14);
    color: #8a6100;
}

.hub-metric-card__icon--danger {
    background: rgba(176, 48, 62, 0.11);
    color: #a3313c;
}

.hub-metric-card__icon--info {
    background: rgba(39, 104, 132, 0.12);
    color: #276884;
}

.hub-metric-card__icon--neutral {
    background: rgba(84, 75, 72, 0.1);
    color: #625956;
}

.hub-metric-card__label {
    overflow: hidden;
    color: var(--hub-muted);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.055em;
    line-height: 1.3;
    text-overflow: ellipsis;
    text-transform: uppercase;
}

.hub-metric-card__value {
    overflow: hidden;
    margin-top: 0.18rem;
    color: var(--hub-ink);
    font-size: clamp(1.3rem, 2vw, 1.65rem);
    font-weight: 820;
    letter-spacing: -0.025em;
    line-height: 1.08;
    text-overflow: ellipsis;
}

.hub-metric-card__meta {
    overflow: hidden;
    margin-top: 0.22rem;
    color: var(--hub-muted);
    font-size: 0.72rem;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hub-metric-card__arrow {
    color: rgba(106, 32, 54, 0.45);
    font-size: 0.72rem;
    transition: transform 150ms ease, color 150ms ease;
}

.hub-metric-card--link {
    transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.hub-metric-card--link:hover {
    border-color: rgba(106, 32, 54, 0.28);
    color: inherit;
    box-shadow: 0 10px 24px rgba(75, 8, 24, 0.1);
    transform: translateY(-2px);
}

.hub-metric-card--link:hover .hub-metric-card__arrow {
    color: var(--brand-primary);
    transform: translateX(2px);
}

@media (min-width: 768px) {
    .hub-metric-grid {
        grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
    }

    .hub-metric-grid:has(> :nth-child(6)) {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .page-hero-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .page-hero-actions>.page-hero-action--primary,
    .page-hero-actions> :last-child:nth-child(2) {
        grid-column: 1 / -1;
    }

    .page-hero-action-menu,
    .page-hero-action-menu>.page-hero-action,
    .page-hero-action-menu .dropdown-menu {
        width: 100%;
    }

    .hub-metric-card {
        grid-template-columns: 2.35rem minmax(0, 1fr);
        gap: 0.65rem;
        min-height: 6.65rem;
        padding: 0.82rem;
    }

    .hub-metric-card__icon {
        width: 2.35rem;
        height: 2.35rem;
    }

    .hub-metric-card__arrow {
        display: none;
    }

    .hub-metric-card__label,
    .hub-metric-card__meta {
        white-space: normal;
    }

    .hub-metric-grid> :last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }
}

/* =================================================================
   Hub UI refresh layer
   Keeps the existing component names but tightens density, hierarchy,
   and repeated admin surfaces across the application.
================================================================= */
:root {
    --hub-canvas: #f4eadc;
    --hub-surface: #fffdf9;
    --hub-surface-muted: #f8f1e7;
    --hub-ink: #1f1a1d;
    --hub-muted: #675f62;
    --hub-line: rgba(75, 8, 24, 0.13);
    --hub-line-strong: rgba(75, 8, 24, 0.22);
    --hub-shadow-sm: 0 0.25rem 0.8rem rgba(31, 26, 29, 0.045);
    --hub-shadow: 0 0.55rem 1.35rem rgba(31, 26, 29, 0.07);
    --hub-radius-sm: 0.55rem;
    --hub-radius: 0.72rem;
    --hub-space: clamp(0.9rem, 1.5vw, 1.15rem);
}

body.hub-shell {
    background:
        linear-gradient(180deg, rgba(255, 253, 249, 0.36), rgba(255, 253, 249, 0) 18rem),
        var(--hub-canvas);
}

.hub-main {
    padding: clamp(0.85rem, 1.6vw, 1.25rem);
}

@media (min-width: 1200px) {
    body.hub-shell main.hub-main {
        margin-left: 280px;
        width: calc(100% - 280px);
    }

    body.hub-shell #hubSideNavigation {
        width: 280px;
        border-right: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 10px 0 24px rgba(31, 26, 29, 0.14);
    }

    .hub-desktop-nav-toggle {
        left: 280px;
    }
}

.page-hero {
    border-radius: var(--hub-radius);
    background:
        linear-gradient(135deg, rgba(75, 8, 24, 0.96), rgba(106, 32, 54, 0.96)),
        var(--brand-primary);
    box-shadow: var(--hub-shadow);
}

.page-hero::after {
    opacity: 0.5;
}

.page-hero-body {
    min-height: 5.8rem;
    padding: clamp(1rem, 1.8vw, 1.35rem);
}

.page-hero:not(:has(.page-hero-actions)) .page-hero-body {
    min-height: 5.6rem;
}

.page-hero-title {
    font-size: clamp(1.45rem, 2vw, 1.9rem);
    letter-spacing: 0;
}

.page-hero-subtitle {
    max-width: 78ch;
    font-size: 0.92rem;
}

.hub-main .card,
.hub-panel,
.hub-section,
.hub-form-card,
.hub-table-card,
.hub-list-card,
.hub-record-card,
.players-toolbar,
.competitions-directory,
.venues-directory {
    border-radius: var(--hub-radius) !important;
    box-shadow: var(--hub-shadow-sm) !important;
}

.hub-main .card-body,
.hub-panel__body,
.hub-form-section__body,
.hub-table-card__body {
    padding: var(--hub-space);
}

.hub-section-commandbar,
.hub-toolbar,
.competitions-toolbar,
.venues-toolbar,
.pack-toolbar {
    gap: 0.65rem;
    padding: 0.78rem var(--hub-space);
    border-radius: var(--hub-radius);
    box-shadow: none;
}

.hub-section-commandbar h2,
.hub-main .card-title,
.hub-panel__title,
.hub-form-section__title {
    letter-spacing: 0;
}

.hub-metric-grid {
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.hub-metric-card {
    min-height: 5.65rem;
    padding: 0.82rem;
    border-radius: var(--hub-radius);
    box-shadow: var(--hub-shadow-sm);
}

.hub-metric-card__value {
    letter-spacing: 0;
}

.hub-metric-card__meta {
    white-space: normal;
}

.hub-main .btn,
.page-hero-action {
    border-radius: var(--hub-radius-sm);
}

.hub-main .btn-neutral,
.hub-main .btn-outline-secondary {
    border-color: var(--hub-line-strong);
    background: #fff;
    color: var(--hub-ink);
}

.hub-main .btn-neutral:hover,
.hub-main .btn-neutral:focus-visible,
.hub-main .btn-outline-secondary:hover,
.hub-main .btn-outline-secondary:focus-visible {
    border-color: rgba(106, 32, 54, 0.35);
    background: var(--hub-surface-muted);
    color: var(--brand-primary);
}

.hub-main .badge.text-bg-light {
    border: 1px solid var(--hub-line);
    background: #fff !important;
    color: var(--hub-ink) !important;
}

.hub-empty-state,
.hub-record-empty {
    padding: clamp(1.35rem, 4vw, 2.35rem) 1rem !important;
}

.navbar-brand__logo {
    width: 30px;
    height: 30px;
}

body.hub-shell #hubSideNavigation {
    background: #2a2829;
}

.nav-sections {
    gap: 0.48rem;
}

.nav-section {
    gap: 0.28rem;
}

.nav-section-label,
.nav-section-toggle {
    padding-left: 0.3rem;
    color: rgba(246, 236, 222, 0.58);
    font-size: 0.64rem;
    letter-spacing: 0.085em;
}

.nav-section-label::after {
    opacity: 0.72;
}

.nav-main .nav-link {
    min-height: 2.25rem;
    padding: 0.52rem 0.68rem;
    border-radius: 0.55rem;
    background-color: #3a3739;
    color: rgba(246, 236, 222, 0.9) !important;
    font-size: 0.88rem;
    box-shadow: none;
}

.nav-main .nav-link:hover,
.nav-main .nav-link:focus {
    background-color: #454145;
    color: #fff !important;
    transform: none;
}

.nav-main .nav-link::after {
    content: none;
}

.nav-main .nav-link.active {
    background: var(--brand-primary);
    color: #fff !important;
    box-shadow: inset 3px 0 0 var(--brand-warning);
}

.nav-submenu {
    margin-left: 0.4rem;
    padding-left: 0.5rem;
}

.nav-submenu .nav-link {
    min-height: 2.1rem;
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
    font-size: 0.84rem;
}

.hub-season-switcher,
.nav-account {
    border-radius: var(--hub-radius);
}

/* Log out — red, deepening on hover. Id beats the generic .nav-main .nav-link
   rules; color needs !important to win player-sponsors-base's desktop rule. */
#logoutBtn.nav-link {
    background: var(--brand-danger, #8f1f2f);
    border-color: rgba(255, 255, 255, 0.16);
    color: #fff !important;
}

#logoutBtn.nav-link:hover,
#logoutBtn.nav-link:focus,
#logoutBtn.nav-link:focus-visible {
    background: #661120;
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff !important;
}

.hub-season-switcher {
    padding: 0.62rem;
}

.hub-season-switcher select {
    min-height: 2.35rem;
    border-radius: var(--hub-radius-sm);
}

.hub-context-bar {
    margin-bottom: 1rem !important;
    padding: 0.62rem 0.85rem;
    border-radius: var(--hub-radius);
    background: rgba(255, 253, 249, 0.78);
    font-size: 0.82rem;
}

.pos-overview-page .hub-panel {
    overflow: hidden;
}

.pos-kpi-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.pos-kpi-card,
.pos-card {
    border: 1px solid rgba(31, 26, 29, 0.08);
    border-radius: var(--hub-radius);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 0.85rem 2rem rgba(31, 26, 29, 0.06);
}

.pos-kpi-card {
    display: grid;
    gap: 0.2rem;
    min-height: 7rem;
    padding: 1rem;
}

.pos-kpi-card span {
    color: var(--hub-muted);
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.pos-kpi-card strong {
    color: var(--hub-ink);
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    font-weight: 900;
}

.pos-kpi-card small {
    color: var(--hub-muted);
    font-weight: 700;
}

.pos-kpi-card--primary {
    border-color: rgba(106, 32, 54, 0.24);
    background: linear-gradient(135deg, rgba(106, 32, 54, 0.1), #fff);
}

.pos-kpi-card--warning {
    border-color: rgba(184, 116, 0, 0.28);
    background: linear-gradient(135deg, rgba(255, 190, 92, 0.18), #fff);
}

.pos-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(18rem, 1fr) minmax(0, 1.5fr) minmax(16rem, 0.8fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.pos-insight-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.pos-card {
    min-width: 0;
    padding: 1rem;
}

.pos-card--wide {
    min-height: 18rem;
}

.pos-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.pos-card__head h2,
.pos-actions-panel h2 {
    margin: 0;
    color: var(--hub-ink);
    font-size: 1.02rem;
    font-weight: 850;
}

.pos-card__head>strong {
    color: var(--brand-primary);
    font-size: 1.15rem;
    white-space: nowrap;
}

.pos-open-till-control {
    display: grid;
    gap: 0.45rem;
    margin-bottom: 0.9rem;
    padding: 0.85rem;
    border: 1px solid rgba(106, 32, 54, 0.16);
    border-radius: var(--hub-radius);
    background: rgba(106, 32, 54, 0.055);
}

.pos-open-till-control label {
    color: var(--hub-muted);
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.pos-open-till-select {
    min-height: 2.8rem;
}

.pos-day-status {
    display: grid;
    gap: 0.15rem;
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    border-radius: var(--hub-radius);
    border: 1px solid rgba(31, 26, 29, 0.08);
}

.pos-day-status strong,
.pos-day-status span {
    display: block;
}

.pos-day-status strong {
    color: var(--hub-ink);
    font-size: 0.92rem;
}

.pos-day-status span {
    color: var(--hub-muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.pos-day-status--open {
    border-color: rgba(13, 122, 74, 0.22);
    background: rgba(13, 122, 74, 0.07);
}

.pos-day-status--closed {
    border-color: rgba(184, 116, 0, 0.26);
    background: rgba(255, 190, 92, 0.12);
}

.pos-day-form {
    display: grid;
    gap: 0.55rem;
    margin-bottom: 0.9rem;
}

.pos-till-session-list {
    display: grid;
    gap: 0.55rem;
    margin-bottom: 0.9rem;
}

.pos-till-session-list--page {
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
    gap: 1rem;
    margin-bottom: 0;
}

.pos-till-session {
    display: grid;
    gap: 0.55rem;
    padding: 0.7rem;
    border: 1px solid var(--hub-line);
    border-radius: var(--hub-radius-sm);
    background: #fff;
}

.pos-till-session strong,
.pos-till-session span {
    display: block;
}

.pos-till-session strong {
    color: var(--hub-ink);
    font-size: 0.88rem;
    font-weight: 850;
}

.pos-till-session span {
    color: var(--hub-muted);
    font-size: 0.75rem;
    font-weight: 750;
}

.pos-till-session--open {
    border-color: rgba(13, 122, 74, 0.22);
}

.pos-till-session__summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.pos-till-session__summary h2 {
    margin: 0;
    color: var(--hub-ink);
    font-size: 1rem;
    font-weight: 850;
}

.pos-till-session__summary>strong {
    color: var(--brand-primary);
    font-size: 1.05rem;
    white-space: nowrap;
}

.pos-till-session__metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
}

.pos-till-session__metrics span {
    padding: 0.55rem;
    border-radius: var(--hub-radius-sm);
    background: rgba(31, 26, 29, 0.035);
}

.pos-till-session__metrics small,
.pos-till-session__metrics strong {
    display: block;
}

.pos-till-session__metrics small {
    color: var(--hub-muted);
    font-size: 0.68rem;
    font-weight: 850;
    text-transform: uppercase;
}

.pos-till-session__metrics strong {
    color: var(--hub-ink);
    font-size: 0.88rem;
    font-weight: 850;
}

.pos-till-session__form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 0.45rem;
    align-items: center;
}

.pos-till-session--closed .pos-till-session__form {
    grid-template-columns: minmax(0, 1fr) auto;
}

.pos-till-session__form--open {
    grid-template-columns: minmax(0, 1fr) auto;
}

.pos-close-till-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.pos-close-till-summary span {
    padding: 0.7rem;
    border-radius: var(--hub-radius-sm);
    background: rgba(31, 26, 29, 0.035);
}

.pos-close-till-summary small,
.pos-close-till-summary strong {
    display: block;
}

.pos-close-till-summary small {
    color: var(--hub-muted);
    font-size: 0.68rem;
    font-weight: 850;
    text-transform: uppercase;
}

.pos-close-till-summary strong {
    color: var(--hub-ink);
    font-weight: 850;
}

.pos-close-till-check {
    display: grid;
    gap: 0.35rem;
    min-height: 8rem;
    padding: 1.15rem;
    border-radius: var(--hub-radius-sm);
    border: 1px solid var(--hub-line);
    align-content: center;
}

.pos-close-till-check strong,
.pos-close-till-check span {
    display: block;
}

.pos-close-till-check strong {
    color: var(--hub-ink);
    font-weight: 850;
}

.pos-close-till-check span {
    color: var(--hub-muted);
    font-size: 0.85rem;
    font-weight: 700;
}

.pos-close-till-check--balanced {
    border-color: rgba(13, 122, 74, 0.22);
    background: rgba(13, 122, 74, 0.07);
}

.pos-close-till-check--variance {
    border-color: rgba(184, 116, 0, 0.26);
    background: rgba(255, 190, 92, 0.12);
}

.pos-action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
}

.pos-action-grid--full {
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.pos-action-tile {
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr);
    gap: 0.55rem;
    align-items: center;
    min-height: 4rem;
    padding: 0.65rem;
    border: 1px solid var(--hub-line);
    border-radius: var(--hub-radius-sm);
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.pos-action-tile:hover,
.pos-action-tile:focus-visible,
.pos-bar-row:hover,
.pos-bar-row:focus-visible {
    border-color: rgba(106, 32, 54, 0.35);
    box-shadow: 0 0.55rem 1.2rem rgba(31, 26, 29, 0.08);
    color: inherit;
    transform: translateY(-1px);
}

.pos-action-tile i,
.pos-action-tile svg {
    display: grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border-radius: var(--hub-radius-sm);
    background: rgba(106, 32, 54, 0.09);
    color: var(--brand-primary);
}

.pos-action-tile strong,
.pos-action-tile small,
.pos-bar-row strong,
.pos-bar-row small {
    display: block;
}

.pos-action-tile strong,
.pos-bar-row strong {
    overflow: hidden;
    color: var(--hub-ink);
    font-size: 0.86rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pos-action-tile small,
.pos-bar-row small {
    color: var(--hub-muted);
    font-size: 0.72rem;
}

.pos-trend-chart {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(2.8rem, 1fr));
    gap: 0.5rem;
    min-height: 12rem;
    align-items: end;
}

.pos-trend-chart__bar {
    display: grid;
    grid-template-rows: minmax(7rem, 1fr) auto auto;
    gap: 0.35rem;
    justify-items: center;
    min-width: 0;
    text-align: center;
}

.pos-trend-chart__bar span {
    align-self: end;
    display: flex;
    align-items: end;
    justify-content: center;
    overflow: hidden;
    width: 0.55rem;
    height: 100%;
    border-radius: 999px;
    background: rgba(106, 32, 54, 0.08);
}

.pos-trend-chart__bar span i {
    display: block;
    width: 100%;
    min-height: 0.25rem;
    border-radius: inherit;
    background: var(--brand-primary);
}

.pos-trend-chart__bar small {
    color: var(--hub-muted);
    font-size: 0.72rem;
    font-weight: 800;
}

.pos-trend-chart__bar b {
    color: var(--hub-ink);
    font-size: 0.78rem;
    white-space: nowrap;
}

.pos-payment-bars {
    display: grid;
    gap: 0.75rem;
}

.pos-payment-bars article,
.pos-bar-row {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.65rem;
    align-items: center;
    overflow: hidden;
    padding: 0.75rem;
    border: 1px solid var(--hub-line);
    border-radius: var(--hub-radius-sm);
    background: #fff;
}

.pos-payment-bars span {
    color: var(--hub-muted);
    font-size: 0.75rem;
    font-weight: 850;
    text-transform: uppercase;
}

.pos-payment-bars strong,
.pos-bar-row b {
    position: relative;
    z-index: 1;
    color: var(--brand-primary);
    font-size: 0.9rem;
    white-space: nowrap;
}

.pos-payment-bars i,
.pos-bar-row i {
    position: absolute;
    inset: auto auto 0 0;
    height: 0.24rem;
    min-width: 0.24rem;
    border-radius: 999px;
    background: var(--brand-primary);
    opacity: 0.7;
}

.pos-bar-list {
    display: grid;
    gap: 0.65rem;
}

.pos-bar-row {
    color: inherit;
    text-decoration: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.pos-bar-row--disabled {
    opacity: 0.68;
}

.pos-transactions-card {
    padding: 0;
    overflow: hidden;
}

.pos-sale-row {
    cursor: pointer;
}

.pos-sale-row:hover,
.pos-sale-row:focus {
    background: rgba(106, 32, 54, 0.045);
    outline: 0;
}

.pos-sale-ref,
.pos-sale-ref small,
.pos-table-date,
.pos-table-date small {
    display: block;
}

.pos-table-date strong {
    display: block;
    color: var(--hub-ink);
    font-weight: 800;
    white-space: nowrap;
}

.pos-sale-ref small {
    color: var(--hub-muted);
    font-size: 0.75rem;
    font-weight: 700;
}

.pos-table-date small {
    color: var(--hub-muted);
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}

.pos-table-icon {
    color: var(--brand-primary);
}

@media (max-width: 991.98px) {
    .hub-main {
        padding: 0.8rem;
    }

    .navbar .navbar-collapse {
        border-radius: var(--hub-radius);
    }

    .pos-kpi-strip,
    .pos-dashboard-grid,
    .pos-insight-grid,
    .pos-action-grid--full {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pos-card--wide {
        grid-column: 1 / -1;
    }
}

@media (max-width: 575.98px) {
    .pos-kpi-strip,
    .pos-dashboard-grid,
    .pos-insight-grid,
    .pos-action-grid {
        grid-template-columns: 1fr;
    }

    .pos-card,
    .pos-kpi-card {
        padding: 0.85rem;
    }

    .pos-card__head {
        display: grid;
    }

    .pos-till-session__form,
    .pos-till-session--closed .pos-till-session__form,
    .pos-till-session__form--open {
        grid-template-columns: 1fr;
    }

    .pos-till-session__metrics {
        grid-template-columns: 1fr;
    }

    .pos-close-till-summary {
        grid-template-columns: 1fr;
    }

    .pos-trend-chart {
        gap: 0.35rem;
        overflow-x: auto;
        padding-bottom: 0.25rem;
    }

    .pos-trend-chart__bar {
        min-width: 2.4rem;
    }
}

/* Unified tab navigation
   Applies to Bootstrap tabs, report tabs and sponsor/setting/person tabs. */
.nav.nav-tabs,
.reports-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.35rem;
    margin: 0 0 1rem;
    padding: 0.35rem;
    overflow-x: auto;
    overflow-y: hidden;
    border: 1px solid var(--hub-line, rgba(75, 8, 24, 0.12));
    border-radius: 8px;
    background: var(--hub-surface, #fff);
    box-shadow: var(--hub-shadow-sm, 0 0.45rem 1rem rgba(15, 23, 42, 0.05));
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.nav.nav-tabs .nav-item,
.reports-tabs .nav-item {
    flex: 0 0 auto;
}

.nav.nav-tabs .nav-link,
.reports-tabs .nav-link,
.reports-page .reports-tabs .nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.55rem;
    margin: 0;
    padding: 0.58rem 0.85rem;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--hub-muted, #6f7779);
    font-size: 0.88rem;
    font-weight: 750;
    line-height: 1.1;
    text-decoration: none;
    transition: background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.nav.nav-tabs .nav-link i,
.reports-tabs .nav-link i {
    color: var(--brand-primary, #6a2036);
}

.nav.nav-tabs .nav-link:hover,
.nav.nav-tabs .nav-link:focus-visible,
.reports-tabs .nav-link:hover,
.reports-tabs .nav-link:focus-visible,
.reports-page .reports-tabs .nav-link:hover,
.reports-page .reports-tabs .nav-link:focus-visible {
    background: rgba(106, 32, 54, 0.07);
    color: var(--brand-dark, #4b0818);
}

.nav.nav-tabs .nav-link.active,
.nav.nav-tabs .nav-link[aria-selected="true"],
.reports-tabs .nav-link.active,
.reports-tabs .nav-link[aria-selected="true"],
.reports-page .reports-tabs .nav-link.active {
    background: var(--brand-primary, #6a2036);
    color: #fff;
    box-shadow: 0 0.45rem 0.9rem rgba(106, 32, 54, 0.16);
}

.nav.nav-tabs .nav-link.active i,
.nav.nav-tabs .nav-link[aria-selected="true"] i,
.reports-tabs .nav-link.active i,
.reports-tabs .nav-link[aria-selected="true"] i {
    color: var(--brand-warning, #e0b42a);
}

.nav.nav-tabs .nav-link .badge,
.reports-tabs .nav-link .badge {
    border: 1px solid rgba(106, 32, 54, 0.1);
    background: rgba(106, 32, 54, 0.08) !important;
    color: var(--brand-dark, #4b0818) !important;
    font-weight: 800;
}

.nav.nav-tabs .nav-link.active .badge,
.nav.nav-tabs .nav-link[aria-selected="true"] .badge,
.reports-tabs .nav-link.active .badge,
.reports-tabs .nav-link[aria-selected="true"] .badge {
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.16) !important;
    color: #fff !important;
}

@media (max-width: 575.98px) {
    .nav.nav-tabs,
    .reports-tabs {
        gap: 0.25rem;
        padding: 0.28rem;
    }

    .nav.nav-tabs .nav-link,
    .reports-tabs .nav-link,
    .reports-page .reports-tabs .nav-link {
        min-height: 2.4rem;
        padding: 0.52rem 0.68rem;
        font-size: 0.82rem;
    }
}
