/* v5.9.69 compatibility marker: transparent PNG wordmark with light BOARDGAME letters */
/* v5.9.123 - Header logo uses a transparent PNG wordmark with light BOARDGAME letters for black backgrounds. */
/* v5.9.61 - Official BoardGameNite SVG logo installed in the top-left header. */
/* v5.9.61 - Public Schedule Matrix and QR controls dark-mode contrast fix */
/* v5.9.61 - Finalized table results mobile compaction */
/* v5.9.61 - Social/Friends Phase 3 friend-group event visibility controls */
/* v5.9.61 - Sitemap/Search Console, homepage promotion card, and public friend-group capability copy */
/* v5.9.61 - Friend / Group Social Stats cards and mobile-safe social stat tables */
/* v5.9.61 - Social Notifications Center badge, preference, and mobile-row hardening */
/* v5.9.61 - Controlled organizer announcement audience targeting */
/* BoardGameNite Platform UI - Copyright 2026 BoardGamesNMore Inc. */
/* Copyright (c) 2026 BoardGamesNMore Inc. All rights reserved. */
/* Revision History
v5.8.175 - 2026-05-14
- Added mobile diagnostic page compatibility styling and preserved safe-area/touch-target checks for iPhone and Samsung Android.
v5.8.89 - 2026-05-10
- Removed the mobile floating quick-panel Report shortcut and keep quick-panel links on one compact row.
v5.8.87 - 2026-05-10
- Dynamically fit public schedule-matrix slot height so session table rows remain visible without inner scrollbars.
v5.3.75 - 2026-04-16
- Replaced the top-left navbar branding with the BoardGameNite logo asset and aligned schedule-matrix lane height to the actual slot count so the time column and session blocks stay synchronized.
v5.3.63 - 2026-04-15
- Added compact responsive header styling with icon-first primary navigation, a collapsible mobile navbar, and a smaller account menu to reduce visual clutter.
v4.3.0 - 2026-04-08
- Added layout styling for the BoardGamesNMore logo in the header and home hero area.
v3.0.0 - 2026-04-08
- Preserved simple base styling for the v3 web UI.
*/
body {
    background: #f8f9fa;
}
.card {
    border-radius: 1rem;
}
.app-navbar {
    box-shadow: 0 0.2rem 0.75rem rgba(15, 23, 42, 0.12);
}
.app-navbar-container {
    gap: 0.75rem;
}
.site-logo-nav {
    height: 64px;
    width: auto;
    max-width: min(300px, 48vw);
    display: block;
}
.brand-title {
    font-size: 1.45rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
}
.app-primary-nav {
    gap: 0.15rem;
}
.app-primary-nav .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.75rem;
    border-radius: 0.85rem;
    color: rgba(255, 255, 255, 0.88);
}
.app-primary-nav .nav-link:hover,
.app-primary-nav .nav-link:focus,
.app-primary-nav .nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}
.nav-icon {
    width: 1.05rem;
    height: 1.05rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}
.nav-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}
.app-account-toggle,
.app-login-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 0.85rem;
    padding: 0.5rem 0.8rem;
    white-space: nowrap;
}
.app-account-menu {
    min-width: 17rem;
    border-radius: 1rem;
    padding: 0.45rem;
}
.app-account-menu .dropdown-item {
    border-radius: 0.7rem;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
}
.hero-panel {
    overflow: hidden;
}
.hero-logo {
    max-height: 140px;
    width: auto;
}
@media (max-width: 1199.98px) {
    .site-logo-nav {
        height: 52px;
        max-width: min(280px, 62vw);
    }
    .brand-title {
        font-size: 1.15rem;
    }
    .app-navbar .navbar-collapse {
        background: rgba(33, 37, 41, 0.98);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 1rem;
        margin-top: 0.85rem;
        padding: 0.9rem;
        box-shadow: 0 0.65rem 1.4rem rgba(15, 23, 42, 0.22);
    }
    .app-primary-nav .nav-link {
        width: 100%;
        padding: 0.7rem 0.8rem;
    }
    .app-nav-actions {
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        margin-top: 0.75rem;
        padding-top: 0.75rem;
        width: 100%;
    }
    .app-account-toggle,
    .app-login-button {
        width: 100%;
    }
}
@media (max-width: 575.98px) {
    .site-logo-nav {
        height: 46px;
        max-width: 68vw;
    }
    .brand-title {
        font-size: 1rem;
    }
    .hero-logo {
        max-height: 100px;
    }
}

.testing-login-panel {
    border-radius: 1rem;
}


:root {
    --slot-height: 38px;
    --session-accent: #4c6ef5;
    --session-border: #8ea2ff;
    --session-fill: #eef2ff;
    --table-accent: #f59f00;
    --table-border: #f7cf78;
    --table-fill: #fff7db;
}
.schedule-day-matrix {
    background: #fff;
    overflow: hidden;
}
.schedule-day-header {
    background: #f1f3f5;
    padding: 0.75rem 1rem;
    font-weight: 600;
    border-bottom: 1px solid #dee2e6;
}
.matrix-legend {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}
.matrix-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.7);
    border: 1px solid rgba(0,0,0,0.08);
    font-size: 0.78rem;
    font-weight: 600;
    color: #495057;
}
.matrix-legend-swatch {
    width: 0.85rem;
    height: 0.85rem;
    border-radius: 0.3rem;
    display: inline-block;
}
.matrix-legend-session {
    background: var(--session-fill);
    border: 2px solid var(--session-accent);
}
.matrix-legend-table {
    background: var(--table-fill);
    border: 2px solid var(--table-accent);
}
.schedule-day-grid {
    display: grid;
    grid-template-columns: 90px 1fr;
}
.schedule-time-column {
    border-right: 1px solid #dee2e6;
    background: #fafafa;
}
.schedule-time-slot {
    height: var(--slot-height);
    padding: 0.4rem 0.5rem;
    font-size: 0.85rem;
    color: #6c757d;
    border-bottom: 1px solid #edf0f2;
}
.schedule-time-slot-filler {
    color: transparent;
}
.schedule-lane {
    position: relative;
    min-height: calc(var(--slot-height) * var(--slot-count, 1));
    background-image: linear-gradient(to bottom, #edf0f2 1px, transparent 1px);
    background-size: 100% var(--slot-height);
    background-color: #fff;
}
.schedule-empty-slot {
    display: block;
    height: var(--slot-height);
    border-bottom: 1px solid transparent;
    text-decoration: none;
}
.schedule-empty-slot:hover,
.schedule-empty-slot.selected {
    background: rgba(13, 110, 253, 0.08);
    outline: 1px dashed rgba(13, 110, 253, 0.35);
    outline-offset: -3px;
}
.schedule-empty-slot.matrix-range-selected {
    background: rgba(25, 135, 84, 0.12);
    outline: 1px solid rgba(25, 135, 84, 0.45);
    outline-offset: -3px;
}
.schedule-empty-slot.matrix-range-start {
    border-top: 2px solid rgba(25, 135, 84, 0.7);
}
.schedule-empty-slot.matrix-range-end {
    border-bottom: 2px solid rgba(25, 135, 84, 0.7);
}
.schedule-block-card {
    position: absolute;
    left: 8px;
    right: 8px;
    display: block;
    border-radius: 0.8rem;
    padding: 0.55rem 0.7rem;
    color: #212529;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    overflow: hidden;
    z-index: 2;
    border: 1px solid var(--session-border);
    border-left: 5px solid var(--session-accent);
    background: var(--session-fill);
}
.schedule-block-card:hover {
    color: #212529;
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}
.block-type-playable { background: #e9f0ff; }
.block-type-lunch,
.block-type-snack,
.block-type-break { background: #fff6db; }
.block-type-free_time,
.block-type-other { background: #f1f3f5; }
.block-status-cancelled { opacity: 0.7; }
.block-status-closed { filter: saturate(0.7); }

[id^='block-'] { scroll-margin-top: 90px; }


.collapsible-panel {
    background: #fff;
    overflow: hidden;
}
.collapsible-toggle {
    width: 100%;
    border: 0;
    background: #f8f9fa;
    padding: 0.9rem 1rem;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font: inherit;
}
.collapsible-toggle:hover {
    background: #eef1f4;
}
.toggle-indicator {
    font-size: 1.25rem;
    line-height: 1;
    min-width: 1rem;
    text-align: center;
}
.collapsible-body[hidden] {
    display: none !important;
}

.admin-setup-group {
    border-width: 1px;
}
.admin-setup-group-toggle {
    background: linear-gradient(90deg, #f8f9fa, #eef3f8);
    font-weight: 700;
}
.admin-setup-group-body > .p-3 {
    background: #fbfcfe;
}
.admin-nested-panel {
    background: #fff;
}
.admin-nested-panel > .collapsible-toggle {
    padding-left: 1.25rem;
    font-weight: 600;
}
@media (max-width: 767.98px) {
    .admin-setup-group-body > .p-3 {
        padding: 0.75rem !important;
    }
    .admin-nested-panel > .collapsible-toggle {
        padding-left: 1rem;
    }
}


.schedule-block-card { overflow: auto; }
.schedule-day-matrix-admin .schedule-block-card {
    overflow: hidden;
}
.schedule-day-matrix-admin .schedule-time-slot,
.schedule-day-matrix-admin .schedule-empty-slot {
    min-height: var(--slot-height);
}
.schedule-day-matrix-admin .schedule-lane {
    overflow: visible;
}
.schedule-table-list { display: flex; flex-direction: column; gap: 0.35rem; }
@media (min-width: 768px) {
    .schedule-table-list {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: stretch;
    }
    .schedule-table-list > .matrix-table-row-card {
        flex: 1 1 220px;
        margin-top: 0;
        height: 100%;
    }
}
.schedule-table-mini { background: rgba(255,255,255,0.72); border: 1px solid rgba(0,0,0,0.08); border-radius: 0.65rem; padding: 0.35rem 0.45rem; }
.schedule-table-mini-title { font-size: 0.82rem; font-weight: 600; line-height: 1.15; }


.inert-slot {
    pointer-events: none;
}
.public-matrix-table-card {
    background: rgba(255,255,255,0.7);
    border-radius: 0.5rem;
    padding: 0.35rem 0.45rem;
    margin-top: 0.3rem;
}


.matrix-block-header-line {
    line-height: 1.15;
    margin-bottom: 0.2rem;
}
.matrix-table-row-card {
    background: var(--table-fill);
    border: 1px solid var(--table-border);
    border-left: 4px solid var(--table-accent);
    border-radius: 0.5rem;
    padding: 0.35rem 0.5rem;
    margin-top: 0.3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}
.matrix-table-row-main {
    min-width: 0;
}
.matrix-table-row-action {
    flex: 0 0 auto;
}
.matrix-table-row-action form {
    margin: 0;
}
.public-matrix-table-card {
    display: none;
}

.event-action-row td {
    padding-top: 0;
    border-top: 0;
}


.schedule-block-card .matrix-table-row-card,
.matrix-table-row-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}
.schedule-block-card .matrix-table-row-main,
.matrix-table-row-main {
    min-width: 0;
    flex: 1 1 auto;
}
.schedule-block-card .matrix-table-row-action,
.matrix-table-row-action {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}


@media (max-width: 767.98px) {
    .matrix-legend {
        width: 100%;
    }

    .matrix-legend-item {
        font-size: 0.74rem;
    }
}

/* v5.3.66 schedule matrix session/table color cues */
/* v4.15.0 schedule matrix usability pass */
.matrix-enhanced {
    overflow-x: auto;
    overflow-y: auto;
    padding-bottom: 0.5rem;
}
.schedule-matrix-usable.matrix-enhanced {
    overflow-x: auto;
    overflow-y: visible;
}
.schedule-matrix-usable .schedule-lane {
    overflow: visible;
}
.schedule-matrix-usable .schedule-block-card {
    overflow: hidden;
}


.game-archive-list {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
}

.game-archive-row {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.game-archive-row:last-child {
    border-bottom: 0;
}

.game-archive-thumb-link {
    text-decoration: none;
}

.game-archive-thumb,
.game-detail-image {
    object-fit: cover;
}

.game-archive-thumb {
    width: 68px;
    height: 68px;
    border-radius: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #f8f9fa;
}

.game-archive-thumb-placeholder,
.game-detail-image-placeholder {
    background: #f8f9fa;
}

.game-archive-title {
    font-weight: 600;
    font-size: 1rem;
}

.game-archive-main {
    min-width: 0;
}

.game-archive-meta span {
    white-space: nowrap;
}

.game-detail-image {
    width: 100%;
}

.game-detail-image-placeholder {
    min-height: 320px;
}

@media (max-width: 767.98px) {
    .game-archive-row {
        align-items: flex-start !important;
        flex-wrap: wrap;
    }

    .game-archive-actions {
        width: 100%;
        justify-content: flex-start;
        margin-left: 80px;
    }

    .game-archive-meta {
        row-gap: 0.35rem;
    }
}

.event-live-results-loading {
    opacity: 0.65;
}

.game-archive-thumb {
    object-fit: cover;
}


.leaderboard-game-thumb-link {
    display: inline-flex;
    text-decoration: none;
}

.leaderboard-game-thumb,
.leaderboard-game-thumb-placeholder {
    width: 64px;
    height: 64px;
    border-radius: 0.75rem;
    border: 1px solid var(--bs-border-color);
    background: var(--bs-light);
    overflow: hidden;
}

.leaderboard-game-thumb {
    object-fit: cover;
}

.leaderboard-game-thumb-placeholder {
    text-align: center;
    line-height: 1.15;
    padding: 0.4rem;
}

@media (max-width: 575.98px) {
    .leaderboard-game-thumb,
    .leaderboard-game-thumb-placeholder {
        width: 54px;
        height: 54px;
    }
}


.btn-touch-action {
    min-height: 44px;
    padding-inline: 0.95rem;
}
.mobile-action-dock {
    position: sticky;
    bottom: 0.75rem;
    z-index: 1030;
}
.mobile-action-dock-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1.5rem rgba(15, 23, 42, 0.14);
    backdrop-filter: blur(8px);
}
.mobile-action-dock-summary {
    font-size: 0.92rem;
    font-weight: 600;
    color: #495057;
}
.mobile-action-dock-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.mobile-action-dock-secondary {
    display: flex;
    justify-content: flex-end;
    flex: 0 1 auto;
}
.mobile-action-dock [data-mobile-dock-link].active,
.mobile-action-dock [data-mobile-dock-link][aria-current="location"] {
    box-shadow: 0 0.35rem 0.85rem rgba(13, 110, 253, 0.18);
}
.mobile-feedback-compact .btn {
    min-height: 44px;
    border-radius: 999px;
}
@media (max-width: 991.98px) {
    body {
        padding-bottom: calc(6rem + env(safe-area-inset-bottom, 0px));
    }
    .mobile-action-dock {
        position: fixed;
        left: max(0.75rem, env(safe-area-inset-left, 0px));
        right: max(0.75rem, env(safe-area-inset-right, 0px));
        bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
    }
    .mobile-action-dock-inner {
        align-items: flex-start;
    }
    .mobile-action-dock-actions,
    .mobile-action-dock-secondary {
        width: 100%;
    }
    .mobile-action-dock-secondary {
        justify-content: stretch;
    }
    .mobile-action-dock-actions .btn {
        flex: 1 1 calc(33.333% - 0.5rem);
        min-width: 0;
    }
    .mobile-action-dock-secondary .btn {
        width: 100%;
    }
}


.mobile-page-nav {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: thin;
}
.mobile-page-nav .btn {
    white-space: nowrap;
    min-height: 44px;
    border-radius: 999px;
}
.mobile-info-card,
.mobile-stat-card,
.mobile-data-card,
.mobile-review-card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 0.25rem 0.75rem rgba(15, 23, 42, 0.06);
}
.mobile-info-card {
    padding: 1rem;
}
.mobile-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}
.mobile-stat-card {
    padding: 0.85rem 0.9rem;
}
.mobile-stat-label {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #6c757d;
    margin-bottom: 0.25rem;
}
.mobile-stat-value {
    font-size: 1rem;
    font-weight: 700;
    color: #212529;
}
.mobile-card-list {
    display: grid;
    gap: 0.9rem;
}

.mobile-score-sheet-list {
    gap: 0.55rem;
}
.mobile-score-sheet-list .mobile-data-card {
    padding: 0.75rem 0.8rem;
    border-radius: 0.875rem;
}
.mobile-score-sheet-list .mobile-card-header {
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.mobile-score-sheet-list .mobile-card-title {
    font-size: 0.96rem;
    line-height: 1.2;
    margin-bottom: 0;
}
.mobile-score-sheet-list .badge {
    font-size: 0.68rem;
    padding: 0.32rem 0.45rem;
}
.mobile-score-sheet-list .mobile-field-grid {
    gap: 0.5rem;
}
.mobile-score-sheet-list .mobile-field-label {
    font-size: 0.7rem;
    margin-bottom: 0.15rem;
}
.mobile-score-sheet-list .mobile-field-value {
    font-size: 0.92rem;
}
.mobile-score-sheet-list .mobile-card-note {
    font-size: 0.8rem;
    margin-top: 0.45rem;
}
.mobile-score-sheet-list .mobile-review-card {
    padding: 0.75rem;
    margin-top: 0.6rem !important;
    border-radius: 0.875rem;
}
.mobile-data-card,
.mobile-review-card {
    padding: 1rem;
}
.mobile-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.mobile-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 0.2rem;
}
.mobile-card-meta {
    font-size: 0.88rem;
    color: #6c757d;
}
.mobile-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}
.mobile-field {
    min-width: 0;
}
.mobile-field-label {
    display: block;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #6c757d;
    margin-bottom: 0.2rem;
}
.mobile-field-value {
    font-size: 0.98rem;
    font-weight: 600;
    color: #212529;
    word-break: break-word;
}
.mobile-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.85rem;
}
.mobile-card-actions .btn,
.mobile-card-actions form,
.mobile-card-actions form .btn {
    min-height: 44px;
}
.mobile-card-actions form {
    display: inline-flex;
}
.mobile-card-note {
    font-size: 0.88rem;
    color: #6c757d;
    margin-top: 0.75rem;
}
.mobile-surface-section {
    scroll-margin-top: 5rem;
}
.mobile-scroll-offset {
    scroll-margin-top: 6rem;
}
@media (max-width: 991.98px) {
    .mobile-field-grid {
        grid-template-columns: 1fr;
    }
    .mobile-score-sheet-list .mobile-field-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .mobile-stack-form .btn,
    .mobile-stack-form .form-control,
    .mobile-stack-form .form-select {
        min-height: 44px;
    }
    .mobile-stack-form .col-md-2,
    .mobile-stack-form .col-md-3,
    .mobile-stack-form .col-md-4,
    .mobile-stack-form .col-md-6,
    .mobile-stack-form .col-lg-2,
    .mobile-stack-form .col-lg-3,
    .mobile-stack-form .col-lg-7 {
        width: 100%;
    }
    .table-mobile-compact thead {
        display: none;
    }
}


.mobile-status-strip {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.2rem;
    scrollbar-width: thin;
}
.mobile-status-chip {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    min-height: 36px;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(13, 110, 253, 0.08);
    color: #0b5ed7;
    border: 1px solid rgba(13, 110, 253, 0.16);
    font-size: 0.83rem;
    font-weight: 600;
}
.mobile-filter-sheet {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 0.25rem 0.75rem rgba(15, 23, 42, 0.06);
}
.mobile-filter-sheet + .mobile-filter-sheet {
    margin-top: 1rem;
}
.mobile-filter-sheet-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    cursor: pointer;
    list-style: none;
    padding: 0.95rem 1rem;
    font-weight: 600;
}
.mobile-filter-sheet-summary::-webkit-details-marker {
    display: none;
}
.mobile-filter-sheet-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: rgba(108, 117, 125, 0.12);
    color: #495057;
    font-size: 0.78rem;
    font-weight: 600;
}
.mobile-filter-sheet-body {
    padding: 0 1rem 1rem;
}
/* v5.9.61 - Quick Search Filters dark-mode contrast for Events and Game Archive filter cards. */
.theme-dark .mobile-filter-sheet,
.theme-dark #event-filter-form,
.theme-dark #game-filter-form {
    background-color: var(--bgnm-dark-surface) !important;
    color: var(--bgnm-dark-text) !important;
    border-color: var(--bgnm-dark-border) !important;
}
.theme-dark .mobile-filter-sheet-summary,
.theme-dark .mobile-filter-sheet-body {
    background-color: var(--bgnm-dark-surface-2) !important;
    color: var(--bgnm-dark-heading) !important;
    border-color: var(--bgnm-dark-border) !important;
}
.theme-dark .mobile-filter-sheet-pill,
.theme-dark .mobile-active-filter-chip {
    background: rgba(59, 130, 246, 0.18) !important;
    border-color: rgba(147, 197, 253, 0.30) !important;
    color: #bfdbfe !important;
}
.theme-dark .mobile-active-filter-chip-label {
    color: var(--bgnm-dark-muted) !important;
}
.theme-dark .mobile-active-filter-chip-value {
    color: var(--bgnm-dark-link-hover) !important;
}
.theme-dark .public-events-page #event-live-search-status,
.theme-dark .public-games-page #game-live-search-status {
    color: var(--bgnm-dark-muted) !important;
}
.mobile-active-filter-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.85rem;
}
.mobile-active-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 36px;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    background: rgba(13, 110, 253, 0.08);
    color: #0b5ed7;
    border: 1px solid rgba(13, 110, 253, 0.16);
    font-size: 0.82rem;
    font-weight: 600;
}
.mobile-active-filter-chip-label {
    color: #495057;
}
.mobile-active-filter-chip-value {
    color: #0b5ed7;
}
.mobile-my-registrations-layout {
    display: block;
}
@media (max-width: 991.98px) {
    .mobile-my-registrations-layout {
        display: flex;
        flex-direction: column;
    }
    .mobile-my-registrations-tasks {
        order: 1;
    }
    .mobile-my-registrations-account {
        order: 2;
    }
}
@media (min-width: 992px) {
    .mobile-filter-sheet {
        border: 0;
        box-shadow: none;
        border-radius: 0;
        background: transparent;
    }
    .mobile-filter-sheet > summary {
        display: none;
    }
    .mobile-filter-sheet:not([open]) > :not(summary) {
        display: block;
    }
    .mobile-filter-sheet-body {
        padding: 0;
    }
}
@media (max-width: 991.98px) {
    .mobile-filter-sheet-body .form-control,
    .mobile-filter-sheet-body .form-select,
    .mobile-filter-sheet-body .btn {
        min-height: 44px;
    }
}


.mobile-utility-sheet,
.inline-confirm-sheet {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 0.25rem 0.75rem rgba(15, 23, 42, 0.06);
}
.mobile-utility-sheet summary,
.inline-confirm-sheet summary {
    cursor: pointer;
    list-style: none;
}
.mobile-utility-sheet summary::-webkit-details-marker,
.inline-confirm-sheet summary::-webkit-details-marker {
    display: none;
}
.mobile-utility-sheet-summary,
.inline-confirm-sheet > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.95rem 1rem;
    font-weight: 600;
}
.mobile-utility-sheet-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: rgba(13, 110, 253, 0.1);
    color: #0b5ed7;
    font-size: 0.78rem;
    font-weight: 600;
}
.mobile-utility-sheet-body,
.inline-confirm-sheet-body {
    padding: 0 1rem 1rem;
}
.mobile-qr-sheet {
    display: flex;
    justify-content: center;
}
.mobile-inline-qr {
    max-width: 240px;
    width: 100%;
}
.inline-confirm-sheet > summary.btn,
.mobile-utility-sheet > summary.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.desktop-registration-actions {
    min-width: 0;
}
.desktop-row-action-sheet {
    max-width: 17rem;
}
.desktop-row-action-sheet .mobile-utility-sheet-body {
    min-width: 15rem;
}
.inline-confirm-sheet[data-disabled="true"] {
    opacity: 0.7;
}
.inline-confirm-sheet[data-disabled="true"] .inline-confirm-sheet-body {
    display: none;
}
@media (max-width: 991.98px) {
    .mobile-utility-sheet-body .btn,
    .inline-confirm-sheet-body .btn {
        min-height: 44px;
    }
}


/* v5.5.21 public game detail option A refresh */
.game-detail-hero-card,
.game-detail-stats-card,
.game-detail-upcoming-card {
    border-radius: 1.35rem;
}

.game-detail-kicker {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--bs-secondary-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.game-detail-media-panel {
    border-radius: 1.5rem;
    padding: 0.9rem;
    background: linear-gradient(180deg, #f8fafc 0%, #eef3f9 100%);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.game-detail-image {
    aspect-ratio: 4 / 5;
    border-radius: 1.25rem;
}

.game-detail-image-placeholder {
    min-height: 420px;
    border-radius: 1.25rem;
    background: linear-gradient(180deg, #f8f9fa 0%, #eef2f6 100%);
}

.game-detail-scope-badge {
    font-size: 0.86rem;
    padding: 0.65rem 0.9rem;
}

.game-detail-description-card {
    background: #f8fafc;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 1.15rem;
    padding: 1rem 1.1rem;
}

.game-detail-description-body {
    color: var(--bs-body-color);
    line-height: 1.65;
}

.game-detail-spec-card,
.game-detail-stat-pill,
.game-detail-upcoming-mobile-item {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 1.1rem;
    background: #fff;
    padding: 1rem 1rem 0.95rem;
}

.game-detail-spec-card {
    background: #fbfcfd;
}

.game-detail-spec-label,
.game-detail-stat-label {
    font-size: 0.74rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--bs-secondary-color);
    font-weight: 700;
    margin-bottom: 0.45rem;
}

.game-detail-spec-value,
.game-detail-stat-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--bs-body-color);
    line-height: 1.35;
}

.game-detail-stat-pill {
    height: 100%;
    background: #fbfcfd;
}

.game-detail-upcoming-mobile-list {
    display: grid;
    gap: 0.9rem;
}

.game-detail-upcoming-mobile-item a {
    text-decoration: none;
}

.game-detail-action-row .btn {
    min-height: 44px;
}

@media (max-width: 991.98px) {
    .game-detail-heading-wrap {
        flex: 1 1 100%;
    }

    .game-detail-image-placeholder {
        min-height: 320px;
    }
}

@media (max-width: 767.98px) {
    .game-detail-hero-card .card-body,
    .game-detail-stats-card .card-body,
    .game-detail-upcoming-card .card-body {
        padding: 1.15rem !important;
    }

    .game-detail-kicker {
        margin-top: 0.2rem;
    }

    .game-detail-scope-badge {
        order: 3;
    }

    .game-detail-action-row .btn {
        flex: 1 1 100%;
    }

    .game-detail-spec-value,
    .game-detail-stat-value {
        font-size: 1rem;
    }
}

@media (max-width: 399.98px) {
    .mobile-score-sheet-list .mobile-field-grid {
        grid-template-columns: 1fr;
    }
}


/* v5.5.46 broad mobile card compaction */
@media (max-width: 767.98px) {
    .card {
        border-radius: 0.95rem;
    }

    .card.shadow-sm,
    .mobile-filter-sheet,
    .mobile-utility-sheet,
    .inline-confirm-sheet,
    .game-detail-description-card,
    .game-detail-spec-card,
    .game-detail-stat-pill,
    .game-detail-upcoming-mobile-item {
        border-radius: 0.95rem;
        box-shadow: 0 0.2rem 0.55rem rgba(15, 23, 42, 0.06);
    }

    .card-body {
        padding: 0.95rem;
    }

    .card-body.p-4,
    .card-body.p-5,
    .card-body.p-lg-5 {
        padding: 1rem !important;
    }

    .card-body.p-3 {
        padding: 0.85rem !important;
    }

    .mobile-info-card {
        padding: 0.85rem;
    }

    .mobile-stat-grid,
    .mobile-card-list,
    .game-detail-upcoming-mobile-list {
        gap: 0.65rem;
    }

    .mobile-stat-card {
        padding: 0.7rem 0.75rem;
    }

    .mobile-data-card,
    .mobile-review-card {
        padding: 0.85rem;
        border-radius: 0.9rem;
    }

    .mobile-card-header {
        gap: 0.55rem;
        margin-bottom: 0.55rem;
    }

    .mobile-card-title {
        font-size: 0.96rem;
        line-height: 1.2;
    }

    .mobile-card-meta,
    .mobile-card-note {
        font-size: 0.82rem;
    }

    .mobile-field-grid {
        gap: 0.55rem;
    }

    .mobile-field-label,
    .mobile-stat-label {
        font-size: 0.72rem;
        margin-bottom: 0.12rem;
    }

    .mobile-field-value,
    .mobile-stat-value {
        font-size: 0.94rem;
    }

    .mobile-card-actions {
        gap: 0.45rem;
        margin-top: 0.65rem;
    }

    .mobile-filter-sheet-summary,
    .mobile-utility-sheet-summary,
    .inline-confirm-sheet > summary {
        padding: 0.8rem 0.85rem;
        gap: 0.55rem;
    }

    .mobile-filter-sheet-body,
    .mobile-utility-sheet-body,
    .inline-confirm-sheet-body {
        padding: 0 0.85rem 0.85rem;
    }

    .mobile-filter-sheet + .mobile-filter-sheet {
        margin-top: 0.75rem;
    }

    .card .display-6 {
        font-size: 1.75rem;
    }

    .card h1,
    .card .h1,
    .card h2,
    .card .h2,
    .card h3,
    .card .h3,
    .card h4,
    .card .h4,
    .card h5,
    .card .h5 {
        line-height: 1.2;
    }
}


/* v5.5.47 page-by-page mobile tuning for the longest remaining public screens */
@media (max-width: 767.98px) {
    .public-events-page > .card > .card-body,
    .public-events-page #event-filter-form > .card-body {
        padding: 0.85rem !important;
    }

    .public-events-page .mobile-filter-sheet-summary,
    .public-events-page .mobile-utility-sheet-summary,
    .public-events-page .inline-confirm-sheet > summary {
        padding: 0.72rem 0.8rem;
    }

    .public-events-page .public-event-results-mobile-list {
        gap: 0.55rem;
    }

    .public-events-page .public-event-result-card {
        padding: 0.78rem;
    }

    .public-events-page .public-event-result-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.45rem 0.6rem;
    }

    .public-events-page .public-event-result-card .mobile-card-title {
        font-size: 0.94rem;
    }

    .public-events-page .public-event-result-card .badge {
        font-size: 0.68rem;
    }

    .public-events-page .public-event-result-card .mobile-card-actions {
        margin-top: 0.55rem;
    }

    .public-events-page .public-event-result-card .mobile-card-actions .btn {
        width: 100%;
    }

    .public-events-page #event-live-results .alert {
        margin-bottom: 0.7rem;
        padding: 0.55rem 0.7rem;
    }

    .my-registrations-page > .d-flex.flex-wrap.justify-content-between.align-items-center.gap-3.mb-4 {
        margin-bottom: 0.75rem !important;
    }

    .my-registrations-page h1 {
        font-size: 1.3rem;
        margin-bottom: 0.25rem !important;
    }

    .my-registrations-page .mobile-feedback-compact,
    .my-registrations-page .mobile-status-strip {
        margin-bottom: 0.75rem !important;
    }

    .my-registrations-page .mobile-status-chip {
        min-height: 32px;
        padding: 0.35rem 0.65rem;
        font-size: 0.76rem;
    }

    .my-registrations-page .mobile-my-registrations-account .card,
    .my-registrations-page .mobile-surface-section {
        margin-bottom: 0.75rem !important;
    }

    .my-registrations-page .mobile-my-registrations-account .card-body,
    .my-registrations-page .mobile-surface-section .card-body {
        padding: 0.85rem !important;
    }

    .my-registrations-page .account-rollup > summary {
        gap: 0.5rem;
        margin-bottom: 0.55rem !important;
    }

    .my-registrations-page .account-rollup summary .h5,
    .my-registrations-page .account-rollup summary span.h5 {
        font-size: 1rem;
    }

    .my-registrations-page .account-rollup summary .small,
    .my-registrations-page .account-rollup .form-text {
        font-size: 0.78rem;
        line-height: 1.3;
    }

    .my-registrations-page #pending-results .mobile-field-grid,
    .my-registrations-page #played-history .mobile-field-grid,
    .my-registrations-page #registrations-list .mobile-field-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.45rem 0.6rem;
    }

    .my-registrations-page #pending-results .mobile-data-card,
    .my-registrations-page #played-history .mobile-data-card,
    .my-registrations-page #registrations-list .mobile-data-card {
        padding: 0.78rem;
    }

    .my-registrations-page .mobile-card-actions .btn,
    .my-registrations-page .mobile-card-actions .btn-touch-action {
        flex: 1 1 calc(50% - 0.25rem);
        min-height: 42px;
    }

    .my-registrations-page .mobile-utility-sheet-summary,
    .my-registrations-page .inline-confirm-sheet > summary {
        padding: 0.72rem 0.82rem;
        font-size: 0.92rem;
    }

    .my-registrations-page .mobile-utility-sheet-pill {
        min-height: 28px;
        font-size: 0.72rem;
    }

    .my-registrations-page .mobile-utility-sheet-body,
    .my-registrations-page .inline-confirm-sheet-body {
        padding: 0 0.82rem 0.82rem;
    }

    .my-registrations-page .mobile-inline-qr {
        max-width: 180px;
    }

    .public-event-detail-page .public-detail-hero > .card-body,
    .public-event-detail-page .card.shadow-sm.mb-4 > .card-body {
        padding: 0.92rem !important;
    }

    .public-event-detail-page .public-detail-hero h1 {
        font-size: 1.2rem;
        line-height: 1.2;
    }

    .public-event-detail-page .public-detail-hero .badge,
    .public-event-detail-page .public-block-card .badge {
        font-size: 0.68rem;
    }

    .public-event-detail-page .public-detail-view-switch {
        width: 100%;
    }

    .public-event-detail-page .public-detail-view-switch .btn {
        flex: 1 1 calc(50% - 0.25rem);
        padding: 0.55rem 0.7rem;
    }

    .public-event-detail-page .public-detail-hero img {
        max-height: 220px !important;
    }

    .public-event-detail-page .public-event-detail-meta {
        gap: 0.55rem 0;
    }

    .public-event-detail-page .public-event-detail-meta > [class*="col-"] {
        flex: 0 0 50%;
        max-width: 50%;
        font-size: 0.86rem;
        line-height: 1.35;
    }

    .public-event-detail-page .public-block-card {
        padding: 0.8rem !important;
    }

    .public-event-detail-page .public-block-card .d-flex.justify-content-between.align-items-start.gap-2.flex-wrap {
        gap: 0.45rem !important;
        margin-bottom: 0.45rem !important;
    }

    .public-event-detail-page .public-block-card .table-responsive {
        margin-top: 0.65rem !important;
    }

    .public-event-detail-page .public-event-table-mobile-list {
        gap: 0.55rem;
    }

    .public-event-detail-page .public-event-table-mobile-card {
        padding: 0.78rem;
    }

    .public-event-detail-page .public-event-table-mobile-card .mobile-card-header {
        gap: 0.55rem;
        margin-bottom: 0.55rem;
    }

    .public-event-detail-page .public-event-table-mobile-card .mobile-card-title {
        font-size: 0.94rem;
    }

    .public-event-detail-page .public-event-table-mobile-card .mobile-card-meta,
    .public-event-detail-page .public-event-table-mobile-card .mobile-card-meta a {
        font-size: 0.84rem;
        word-break: break-word;
    }

    .public-event-detail-page .public-event-table-mobile-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.45rem 0.6rem;
    }

    .public-event-detail-page .public-event-table-mobile-card .mobile-field-label {
        font-size: 0.7rem;
        margin-bottom: 0.15rem;
    }

    .public-event-detail-page .public-event-table-mobile-card .mobile-field-value {
        font-size: 0.92rem;
    }

    .public-event-detail-page .public-event-table-mobile-card .badge {
        font-size: 0.68rem;
    }

    .public-event-detail-page .public-event-table-mobile-card .mobile-card-note {
        margin-top: 0.45rem;
        font-size: 0.8rem;
    }

    .public-event-detail-page .public-event-table-mobile-card .mobile-card-actions {
        margin-top: 0.55rem;
    }

    .public-event-detail-page .public-event-table-mobile-card .mobile-card-actions .btn,
    .public-event-detail-page .public-event-table-mobile-card .mobile-card-actions .mobile-utility-sheet {
        width: 100%;
    }

    .public-event-detail-page .public-event-table-mobile-card .mobile-utility-sheet-summary {
        padding: 0.72rem 0.8rem;
        font-size: 0.9rem;
    }

    .public-event-detail-page .public-event-table-mobile-card .mobile-utility-sheet-body {
        padding: 0 0.8rem 0.8rem;
    }

    .public-event-detail-page .public-empty-state {
        padding: 1rem !important;
    }
}

@media (max-width: 399.98px) {
    .public-events-page .public-event-result-grid,
    .my-registrations-page #pending-results .mobile-field-grid,
    .my-registrations-page #played-history .mobile-field-grid,
    .my-registrations-page #registrations-list .mobile-field-grid {
        grid-template-columns: 1fr;
    }

    .my-registrations-page .mobile-card-actions .btn,
    .my-registrations-page .mobile-card-actions .btn-touch-action,
    .public-event-detail-page .public-detail-view-switch .btn {
        flex-basis: 100%;
    }

    .public-event-detail-page .public-event-detail-meta > [class*="col-"] {
        flex-basis: 100%;
        max-width: 100%;
    }

    .public-event-detail-page .public-event-table-mobile-grid {
        grid-template-columns: 1fr;
    }
}

.legal-page-card {
    max-width: 980px;
    margin: 0 auto;
}

.legal-page-card .legal-page-header {
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.legal-page-card .legal-section + .legal-section {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 1.25rem;
}

.legal-page-card .legal-meta {
    margin-bottom: 0.35rem;
}

.legal-page-card .legal-draft-notice {
    border-radius: 0.85rem;
}

.legal-page-card .legal-download-actions .btn {
    white-space: nowrap;
}

@media (max-width: 767.98px) {
    .legal-page-card .legal-page-header {
        padding-bottom: 0.9rem;
    }

    .legal-page-card .legal-download-actions .btn {
        width: 100%;
    }
}


/* v5.7.130 mobile compaction for table registration and played-result screens */
@media (max-width: 767.98px) {
    .table-registration-page > .col-lg-8 > .card {
        margin-bottom: 0.65rem !important;
    }

    .table-registration-page > .col-lg-8 > .card > .card-body {
        padding: 0.7rem !important;
    }

    .table-registration-page h1 {
        font-size: 1.08rem;
        line-height: 1.15;
        margin-bottom: 0.15rem !important;
    }

    .table-registration-page .d-flex.flex-wrap.justify-content-between.align-items-start.gap-3.mb-3 {
        gap: 0.45rem !important;
        margin-bottom: 0.55rem !important;
    }

    .table-registration-mobile-summary {
        padding: 0.58rem 0.65rem;
    }

    .table-registration-mobile-summary .mobile-card-meta {
        margin-bottom: 0.45rem !important;
    }

    .table-registration-mobile-summary .mobile-stat-grid {
        gap: 0.4rem;
    }

    .table-registration-mobile-summary .mobile-stat-card {
        padding: 0.46rem 0.5rem;
    }

    .table-registration-mobile-summary .mobile-stat-label,
    .table-registration-mobile-status .mobile-status-chip {
        font-size: 0.68rem;
    }

    .table-registration-mobile-summary .mobile-stat-value {
        font-size: 0.88rem;
    }

    .table-registration-mobile-status {
        gap: 0.35rem;
        margin-bottom: 0.45rem !important;
    }

    .table-registration-mobile-status .mobile-status-chip {
        min-height: 28px;
        padding: 0.26rem 0.48rem;
    }

    .table-registration-compact-alert {
        padding: 0.45rem 0.55rem !important;
        margin-bottom: 0.45rem !important;
        line-height: 1.25;
    }

    .table-registration-qr-sheet .mobile-utility-sheet-summary {
        padding: 0.56rem 0.65rem;
        font-size: 0.86rem;
    }

    .table-registration-qr-sheet .mobile-utility-sheet-body {
        padding: 0 0.65rem 0.65rem;
    }

    .table-registration-page #table-registration-form {
        row-gap: 0.55rem !important;
    }

    .table-registration-page #table-registration-form .registration-readonly-cost,
    .table-registration-page #table-registration-form .registration-readonly-total {
        display: none;
    }

    .table-registration-page #table-registration-form .registration-seat-field {
        width: 100%;
    }

    .table-registration-page #table-registration-form .form-label {
        margin-bottom: 0.22rem;
        font-size: 0.84rem;
    }

    .table-registration-page #table-registration-form textarea {
        min-height: 64px;
    }

    .table-registration-page #table-registration-form .mobile-card-actions,
    .table-registration-page .mobile-action-dock {
        margin-top: 0.45rem !important;
    }

    .table-registration-page .mobile-action-dock-inner,
    .table-results-page .mobile-action-dock-inner {
        padding: 0.58rem 0.68rem;
        gap: 0.42rem;
        border-radius: 0.78rem;
    }

    .table-registration-page .mobile-action-dock-summary,
    .table-results-page .mobile-action-dock-summary {
        font-size: 0.78rem;
        line-height: 1.18;
    }

    .table-registration-page .mobile-action-dock-actions,
    .table-results-page .mobile-action-dock-actions {
        gap: 0.35rem;
    }

    .table-registration-page .btn-touch-action,
    .table-results-page .btn-touch-action {
        min-height: 38px;
        padding: 0.42rem 0.62rem;
        font-size: 0.86rem;
    }

    .table-results-page .table-results-hero-card {
        margin-bottom: 0.65rem !important;
    }

    .table-results-page .table-results-hero-card > .card-body,
    .table-results-page .table-results-actions-section > .card > .card-body,
    .table-results-page .table-results-score-sheet-section > .card > .card-body {
        padding: 0.72rem !important;
    }

    .table-results-page .table-results-hero-card h1 {
        font-size: 1.08rem;
        line-height: 1.15;
    }

    .table-results-page .table-results-hero-card .text-uppercase.small {
        margin-bottom: 0.25rem !important;
        font-size: 0.68rem;
    }

    .table-results-mobile-nav {
        margin-bottom: 0.45rem !important;
        gap: 0.35rem;
    }

    .table-results-mobile-nav .btn {
        min-height: 34px;
        padding: 0.34rem 0.55rem;
        font-size: 0.8rem;
    }

    .table-results-mobile-status {
        gap: 0.35rem;
        margin-bottom: 0.45rem !important;
    }

    .table-results-mobile-status .mobile-status-chip {
        min-height: 28px;
        padding: 0.26rem 0.48rem;
        font-size: 0.68rem;
    }

    .table-results-mobile-summary {
        padding: 0.58rem 0.65rem;
        margin-bottom: 0.5rem !important;
    }

    .table-results-mobile-summary .mobile-card-meta {
        margin-bottom: 0.45rem !important;
    }

    .table-results-mobile-summary .mobile-stat-grid {
        gap: 0.4rem;
    }

    .table-results-mobile-summary .mobile-stat-card {
        padding: 0.46rem 0.5rem;
    }

    .table-results-mobile-summary .mobile-stat-label {
        font-size: 0.68rem;
    }

    .table-results-mobile-summary .mobile-stat-value {
        font-size: 0.88rem;
    }

    .table-results-page-closed .table-results-mobile-summary {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 0.55rem;
    }

    .table-results-page-closed .table-results-mobile-summary .mobile-card-meta {
        margin-bottom: 0 !important;
        font-size: 0.78rem;
    }

    .table-results-page-closed .table-results-signoff-qr {
        display: none;
    }

    .table-results-page #my-actions h2,
    .table-results-page #shared-score-sheet h2 {
        font-size: 1rem;
        margin-bottom: 0.5rem !important;
    }

    .table-results-page #my-actions .small.text-muted.mb-3 {
        margin-bottom: 0.5rem !important;
        line-height: 1.25;
    }

    .table-results-page .inline-confirm-sheet {
        margin-bottom: 0.6rem !important;
    }

    .table-results-page .inline-confirm-sheet > summary {
        padding: 0.55rem 0.65rem;
        font-size: 0.86rem;
    }

    .table-results-page .inline-confirm-sheet-body {
        padding: 0 0.65rem 0.65rem;
    }

    .table-results-score-form {
        row-gap: 0.5rem !important;
        margin-bottom: 0.6rem !important;
    }

    .table-results-score-form .col-md-4 {
        width: 50%;
        flex: 0 0 50%;
    }

    .table-results-score-form .form-label {
        font-size: 0.8rem;
        margin-bottom: 0.18rem;
    }

    .table-results-score-form .form-control,
    .table-results-score-form .form-select {
        min-height: 38px;
        padding: 0.42rem 0.55rem;
        font-size: 0.9rem;
    }

    .table-results-score-form .form-text,
    .table-results-score-form .small.text-muted {
        font-size: 0.72rem;
        line-height: 1.2;
    }

    .table-results-difficulty-field {
        margin-top: 0.1rem;
    }

    .table-results-difficulty-field .d-flex.align-items-center.gap-3 {
        gap: 0.55rem !important;
    }

    .table-results-difficulty-field .form-range {
        height: 1.25rem;
    }

    .table-results-notes-field textarea {
        min-height: 58px;
    }

    .table-results-mobile-review-card {
        padding: 0.58rem !important;
        margin-top: 0.45rem !important;
    }

    .table-results-mobile-review-card .mobile-stack-form {
        row-gap: 0.42rem !important;
    }

    .table-results-mobile-review-card .form-label {
        font-size: 0.78rem;
        margin-bottom: 0.15rem !important;
    }

    .table-results-mobile-review-card .form-control,
    .table-results-mobile-review-card .form-select {
        min-height: 38px;
        padding: 0.42rem 0.55rem;
        font-size: 0.88rem;
    }

    .table-results-page .mobile-score-sheet-list {
        gap: 0.42rem;
    }

    .table-results-page .mobile-score-sheet-list .mobile-data-card {
        padding: 0.58rem 0.65rem;
    }

    .table-results-page .mobile-score-sheet-list .mobile-card-header {
        gap: 0.35rem;
        margin-bottom: 0.35rem;
    }

    .table-results-page .mobile-score-sheet-list .badge {
        font-size: 0.62rem;
        padding: 0.24rem 0.34rem;
    }

    .table-results-page .mobile-score-sheet-list .mobile-field-grid {
        gap: 0.32rem 0.45rem;
    }

    .table-results-page .mobile-score-sheet-list .mobile-field-label {
        font-size: 0.64rem;
    }

    .table-results-page .mobile-score-sheet-list .mobile-field-value {
        font-size: 0.84rem;
    }

    .table-results-page .mobile-score-sheet-list .mobile-card-note {
        margin-top: 0.3rem;
        font-size: 0.72rem;
    }

    .my-registrations-page #played-history .played-history-mobile-card {
        padding: 0.58rem 0.65rem;
    }

    .my-registrations-page #played-history .played-history-mobile-card .mobile-card-header {
        margin-bottom: 0.35rem;
    }

    .my-registrations-page #played-history .played-history-mobile-card .mobile-card-title {
        font-size: 0.9rem;
    }

    .my-registrations-page #played-history .played-history-mobile-card .mobile-card-meta,
    .my-registrations-page #played-history .played-history-mobile-card .mobile-field-label {
        font-size: 0.66rem;
    }

    .my-registrations-page #played-history .played-history-mobile-card .mobile-field-grid {
        gap: 0.32rem 0.45rem;
    }

    .my-registrations-page #played-history .played-history-mobile-card .mobile-field-value {
        font-size: 0.84rem;
    }

    .my-registrations-page #played-history .played-history-mobile-card .mobile-card-actions {
        margin-top: 0.42rem;
    }

    .my-registrations-page #played-history .played-history-mobile-card .btn-touch-action {
        min-height: 36px;
        padding: 0.36rem 0.55rem;
        font-size: 0.82rem;
    }
}

@media (max-width: 399.98px) {
    .table-results-score-form .col-md-4 {
        width: 100%;
        flex-basis: 100%;
    }
}

/* v5.7.130: mobile score entry compaction and multi-format scoring controls */
.table-results-score-actions .btn {
    white-space: normal;
}

@media (max-width: 575.98px) {
    .table-results-score-actions {
        gap: 0.4rem !important;
    }
    .table-results-score-actions .btn {
        min-height: 38px;
        padding-left: 0.45rem;
        padding-right: 0.45rem;
        font-size: 0.82rem;
        line-height: 1.12;
    }
    .table-results-score-type-row .col-md-6 {
        width: 50%;
        flex: 0 0 50%;
    }
    .table-results-score-type-row .form-text {
        display: none;
    }
    .table-results-opt-out-confirm {
        margin-top: 0.45rem;
    }
}


/* v5.8.89: Persistent authenticated mobile quick navigation without Report shortcut so the panel stays single-line. */
.mobile-quick-panel {
    position: fixed;
    left: max(0.5rem, env(safe-area-inset-left, 0px));
    right: max(0.5rem, env(safe-area-inset-right, 0px));
    bottom: max(0.5rem, env(safe-area-inset-bottom, 0px));
    z-index: 1040;
    pointer-events: none;
}
.mobile-quick-panel-inner {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.25rem;
    padding: 0.45rem;
    border-radius: 1rem;
    background: rgba(15, 23, 42, 0.96);
    box-shadow: 0 0.75rem 2rem rgba(15, 23, 42, 0.32);
    pointer-events: auto;
}
.mobile-quick-panel-link {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.1rem;
    min-height: 48px;
    padding: 0.25rem 0.15rem;
    border-radius: 0.8rem;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.05;
    text-align: center;
    text-decoration: none;
}
.mobile-quick-panel-link:hover,
.mobile-quick-panel-link:focus {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    outline: none;
}
.mobile-quick-panel-link.active {
    color: #111827;
    background: #fff;
}
.mobile-quick-panel-icon {
    font-size: 1rem;
    line-height: 1;
}
@media (max-width: 991.98px) {
    body {
        padding-bottom: calc(7.5rem + env(safe-area-inset-bottom, 0px));
    }
    main.container {
        padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
    }
}
@media (min-width: 992px) {
    .mobile-quick-panel {
        display: none !important;
    }
}

/* v5.7.130 compact mobile score review cards */
@media (max-width: 991.98px) {
    .table-results-actions-minimized .card-body {
        padding: 0.75rem;
    }

    .table-results-actions-minimized h2 {
        font-size: 0.95rem;
        margin-bottom: 0.5rem !important;
    }

    .table-results-actions-minimized .small.text-muted.mb-3 {
        display: none;
    }

    .scorecard-review-compact-card,
    .scorecard-pending-compact-card {
        margin-bottom: 0 !important;
    }

    .mobile-score-sheet-compact-card,
    .mobile-score-sheet-list {
        border: 1px solid rgba(0, 0, 0, 0.08);
        border-radius: 0.85rem;
        overflow: hidden;
        background: #fff;
    }

    .mobile-score-sheet-compact-row,
    .mobile-score-sheet-list .mobile-field-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 0.35rem 0.5rem;
        align-items: center;
        padding: 0.55rem 0.65rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }

    .mobile-score-sheet-compact-row:last-child,
    .mobile-score-sheet-list .mobile-field-grid:last-child {
        border-bottom: 0;
    }

    .mobile-score-sheet-player {
        min-width: 0;
    }

    .mobile-score-sheet-name {
        display: block;
        font-weight: 700;
        font-size: 0.9rem;
        line-height: 1.15;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-score-sheet-note {
        display: inline-block;
        font-size: 0.68rem;
        color: #6c757d;
    }

    .mobile-score-sheet-values {
        grid-column: 1 / -1;
        display: flex;
        flex-wrap: wrap;
        gap: 0.35rem 0.75rem;
        font-size: 0.78rem;
        line-height: 1.15;
    }

    .mobile-score-sheet-value {
        white-space: nowrap;
    }

    .mobile-score-sheet-badges {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 0.25rem;
    }

    .mobile-score-sheet-badges .badge {
        font-size: 0.65rem;
        padding: 0.25rem 0.4rem;
    }

    .mobile-score-sheet-review-details {
        grid-column: 1 / -1;
        font-size: 0.78rem;
    }

    .mobile-score-sheet-review-details > summary {
        color: #0d6efd;
        cursor: pointer;
        font-weight: 600;
    }

    .mobile-score-sheet-review-form {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }

    /* v5.8.89: mobile scorecard reviews requiring the current user are visible without manual expansion. */
    .mobile-review-action-alert {
        margin-bottom: 0.6rem;
        padding: 0.65rem 0.75rem;
        border-left: 0.28rem solid var(--bs-warning);
        font-size: 0.86rem;
        line-height: 1.25;
    }

    .mobile-review-required-row {
        background: rgba(var(--bs-warning-rgb), 0.13);
        border-left: 0.28rem solid var(--bs-warning);
        padding-left: 0.48rem;
    }

    .mobile-score-sheet-review-details.mobile-review-action-needed {
        padding: 0.45rem 0.55rem;
        border: 1px solid rgba(var(--bs-warning-rgb), 0.55);
        border-radius: 0.7rem;
        background: rgba(var(--bs-warning-rgb), 0.12);
    }

    .mobile-score-sheet-review-details.mobile-review-action-needed > summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.45rem;
        color: #664d03;
    }

    .mobile-review-action-pill {
        display: inline-flex;
        align-items: center;
        border-radius: 999px;
        background: var(--bs-warning);
        color: #111827;
        padding: 0.15rem 0.42rem;
        font-size: 0.64rem;
        font-weight: 800;
        line-height: 1.1;
        text-transform: uppercase;
        white-space: nowrap;
    }

    .mobile-review-action-needed-text {
        color: #664d03;
        font-weight: 700;
        line-height: 1.25;
    }
}

/* v5.7.130: scoring-type specific result controls */
.table-results-score-mode-panel[hidden],
[data-score-type-help][hidden] {
  display: none !important;
}
.table-results-outcome-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
}
.table-results-outcome-toggle .btn {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 575.98px) {
  .table-results-score-type-row {
    gap: .75rem !important;
  }
  .table-results-score-mode-panel {
    padding: .75rem;
    border: 1px solid var(--bs-border-color);
    border-radius: .75rem;
    background: var(--bs-body-bg);
  }
}

/* v5.8.89: My Actions scoring controls keep submit/opt-out buttons on their own row on desktop and mobile. */
.table-results-compact-action-row {
  display: grid;
  grid-template-columns: minmax(10rem, 1.05fr) minmax(9rem, 1fr);
  gap: 0.55rem;
  align-items: end;
}
.table-results-compact-field {
  min-width: 0;
}
.table-results-compact-actions {
  grid-column: 1 / -1;
  min-width: 0;
}
.table-results-compact-actions .btn {
  min-height: 2.25rem;
  white-space: normal;
  line-height: 1.1;
}
.table-results-outcome-toggle-compact {
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
}
.table-results-outcome-toggle-compact .btn {
  min-height: 2.25rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
@media (max-width: 767.98px) {
  .table-results-compact-action-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.45rem;
  }
  .table-results-compact-actions {
    grid-column: 1 / -1;
  }
  .table-results-compact-type-field .form-label,
  .table-results-score-mode-panel .form-label {
    font-size: 0.72rem;
    white-space: nowrap;
  }
  .table-results-compact-actions .btn {
    font-size: 0.78rem;
    padding-left: 0.35rem;
    padding-right: 0.35rem;
  }
}
@media (max-width: 399.98px) {
  .table-results-compact-action-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .table-results-compact-actions {
    grid-column: 1 / -1;
  }
}

/* v5.9.123 - Keep scoring type and score/result controls side-by-side on mobile while Optional Game Data stays above score actions. */
.table-results-score-form .table-results-optional-attributes {
  order: 2;
}


/* v5.7.130: compact help bubbles use a body-level portal tooltip to avoid rollup clipping */
.help-bubble {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  margin-left: 0.25rem;
  border: 1px solid var(--bs-border-color);
  border-radius: 999px;
  background: var(--bs-light);
  color: var(--bs-primary);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  cursor: help;
  vertical-align: middle;
}
.help-bubble:focus-visible {
  outline: 0.15rem solid rgba(13, 110, 253, 0.45);
  outline-offset: 0.1rem;
}
.help-bubble[aria-expanded="true"] {
  background: #e7f1ff;
  border-color: rgba(13, 110, 253, 0.45);
}
.global-help-tooltip {
  position: fixed;
  z-index: 2147483000;
  display: none;
  max-width: min(22rem, calc(100vw - 1rem));
  padding: 0.55rem 0.65rem;
  border-radius: 0.65rem;
  background: rgba(33, 37, 41, 0.97);
  color: #fff;
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,.22);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.25;
  text-align: left;
  white-space: normal;
  pointer-events: none;
}
.global-help-tooltip.is-visible {
  display: block;
}
.help-label-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
}

/* v5.7.130: keep collapsible header labels/help bubbles and +/- indicators on one row.
   Header help controls use non-button elements because nested buttons are invalid HTML. */
.collapsible-toggle > .help-label-wrap {
  min-width: 0;
  flex: 1 1 auto;
}
.collapsible-toggle > .toggle-indicator {
  margin-left: auto;
  flex: 0 0 auto;
}
.collapsible-toggle .help-label-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.collapsible-toggle .help-bubble {
  flex: 0 0 auto;
}

/* v5.7.130 profile avatar selection */
/* v5.8.175 - Board-game avatar library stays compact for mobile and desktop profile preferences. */
.profile-avatar-picker-scroll {
    max-height: 21rem;
    overflow-y: auto;
    padding: .5rem;
    border: 1px solid rgba(0,0,0,.12);
    border-radius: .85rem;
    background: rgba(248,249,250,.72);
    -webkit-overflow-scrolling: touch;
}
.profile-avatar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
    gap: .75rem;
}
.profile-avatar-grid--compact {
    grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
    gap: .45rem;
}
.profile-avatar-option {
    border: 1px solid rgba(0,0,0,.15);
    border-radius: .75rem;
    padding: .55rem;
    display: flex;
    align-items: center;
    gap: .45rem;
    cursor: pointer;
    background: #fff;
    min-width: 0;
}
.profile-avatar-option.selected, .profile-avatar-option:has(input:checked) {
    border-color: #0d6efd;
    box-shadow: 0 0 0 .15rem rgba(13,110,253,.15);
}
.profile-avatar-option input {
    margin: 0;
    flex: 0 0 auto;
}
.profile-avatar-option img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    flex: 0 0 auto;
    background: #fff;
    object-fit: contain;
}
.profile-avatar-option span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .86rem;
}
.profile-avatar-count {
    border: 1px solid rgba(0,0,0,.08);
}
.public-profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,.12);
    background: #fff;
    object-fit: contain;
}
@media (max-width: 575.98px) {
    .profile-avatar-picker-scroll { max-height: 17rem; padding: .4rem; }
    .profile-avatar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .profile-avatar-grid--compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .profile-avatar-option { flex-direction: column; justify-content: center; text-align: center; font-size: .78rem; padding: .45rem .3rem; min-height: 5.25rem; }
    .profile-avatar-option img { width: 34px; height: 34px; }
    .profile-avatar-option span { width: 100%; font-size: .72rem; }
}


/* v5.7.130: Mobile game archive width and floating quick panel containment. */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

.app-navbar {
    width: 100%;
    max-width: 100%;
}

.public-games-page,
.public-games-page .card,
.public-games-page .card-body,
.public-games-page #game-live-results,
.public-games-page .game-archive-list,
.public-games-page .game-archive-row,
.public-games-page .game-archive-main {
    max-width: 100%;
    box-sizing: border-box;
}

.public-games-page .game-archive-main,
.public-games-page .game-archive-title,
.public-games-page .game-archive-meta {
    min-width: 0;
}

.public-games-page .game-archive-title,
.public-games-page .game-archive-meta span {
    overflow-wrap: anywhere;
    word-break: normal;
}

@media (max-width: 767.98px) {
    .public-games-page .game-archive-row {
        display: grid !important;
        grid-template-columns: 72px minmax(0, 1fr);
        align-items: start !important;
        gap: 0.65rem 0.8rem !important;
        overflow: hidden;
    }

    .public-games-page .game-archive-thumb {
        width: 64px;
        height: 64px;
    }

    .public-games-page .game-archive-actions {
        grid-column: 1 / -1;
        width: 100%;
        margin-left: 0;
        justify-content: stretch;
    }

    .public-games-page .game-archive-actions .btn {
        flex: 1 1 100%;
        min-height: 42px;
    }

    .public-games-page .game-archive-meta {
        gap: 0.35rem 0.75rem !important;
    }

    .public-games-page .game-archive-meta span {
        white-space: normal;
    }
}

@media (max-width: 991.98px) {
    .mobile-quick-panel {
        left: max(0.5rem, env(safe-area-inset-left, 0px));
        right: max(0.5rem, env(safe-area-inset-right, 0px));
        width: auto;
        max-width: calc(100vw - 1rem - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px));
        box-sizing: border-box;
    }

    .mobile-quick-panel-inner {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        overflow: hidden;
    }

    .mobile-quick-panel-link {
        min-width: 0;
        overflow: hidden;
    }

    .mobile-quick-panel-link span:not(.mobile-quick-panel-icon) {
        display: block;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

.event-table-game-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
}

.event-table-game-thumb {
    width: 34px;
    height: 34px;
    border-radius: 0.5rem;
    object-fit: cover;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: #f8f9fa;
    flex: 0 0 auto;
}

@media (max-width: 575.98px) {
    .event-table-game-thumb {
        width: 30px;
        height: 30px;
    }
}

/* Event and table share QR codes */

.event-share-qr-details > summary,
.event-table-qr-details > summary {
    list-style: none;
    cursor: pointer;
}
.event-share-qr-details > summary::-webkit-details-marker,
.event-table-qr-details > summary::-webkit-details-marker {
    display: none;
}
.event-share-qr-body {
    overflow-wrap: anywhere;
}
.event-table-qr-details {
    display: inline-block;
}
.event-table-qr-details[open] {
    display: block;
}
.event-table-qr-toggle {
    white-space: nowrap;
}
.event-share-qr-card {
    max-width: 180px;
    padding: 0.65rem;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 0.75rem;
    background: #fff;
    box-shadow: 0 0.25rem 0.75rem rgba(15, 23, 42, 0.08);
}
.event-share-qr-img {
    width: 112px;
    height: 112px;
}
.event-share-qr-url {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.event-table-qr-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
}
.event-table-qr-strip-table {
    min-width: 118px;
}
.event-table-qr-item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    font-size: 0.72rem;
    color: #6c757d;
}
.event-table-qr-item img {
    width: 52px;
    height: 52px;
    padding: 0.15rem;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 0.35rem;
    background: #fff;
}
@media (max-width: 767.98px) {
    .event-share-qr-card {
        align-self: stretch;
        max-width: none;
        width: 100%;
    }
    .event-share-qr-url {
        max-width: 100%;
    }
}

/* v5.8.9 - Compact event table QR action sheet and mobile registration/capacity display. */
.event-table-qr-action-sheet {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
}
.event-table-qr-action-sheet .event-table-qr-help {
    flex-basis: 100%;
}
.event-table-qr-action {
    min-width: 6.75rem;
}
.public-event-table-mobile-grid-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 575.98px) {
    .event-table-qr-action-sheet {
        align-items: stretch;
    }
    .event-table-qr-action-sheet .btn {
        flex: 1 1 100%;
    }
}

/* v5.8.14: Desktop score action alignment and game rating optional attribute */
.table-results-compact-actions[data-score-action-group] {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
}
.table-results-compact-actions[data-score-action-group] .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  line-height: 1.12;
}
@media (min-width: 768px) {
  .table-results-compact-actions[data-score-action-group] {
    align-self: end;
  }
}

/* v5.8.17 - scan-friendly table QR display pages */
.table-qr-display-page {
  min-height: 70vh;
}

.table-qr-display-card {
  border-radius: 1rem;
}

.table-qr-display-image {
  width: min(72vw, 360px);
  max-width: 360px;
}

/* v5.9.61 - Home Carousel public banner scales 8:3 / 960x360 artwork without vertical cropping. */
/* v5.8.43 - Admin-configurable homepage carousel banner. */
.main-page-banner.carousel {
    aspect-ratio: 8 / 3;
    min-height: 0;
    background: #111827;
}
.main-page-banner .carousel-item {
    aspect-ratio: 8 / 3;
    min-height: 0;
    background: #111827;
}
.main-page-banner-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 8 / 3;
    min-height: 0;
    max-height: none;
    object-fit: contain;
    object-position: center;
    background: #111827;
}
.main-page-banner-caption {
    left: 6%;
    right: auto;
    bottom: 12%;
    max-width: min(560px, 80%);
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    background: rgba(0, 0, 0, 0.48);
    backdrop-filter: blur(2px);
}
.main-page-banner-caption h2,
.main-page-banner-caption p {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}
.homepage-carousel-settings-form textarea {
    resize: vertical;
}
@media (max-width: 767.98px) {
    .main-page-banner.carousel,
    .main-page-banner .carousel-item,
    .main-page-banner-image {
        min-height: 0;
    }
    .main-page-banner-caption {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        max-width: none;
        padding: 0.75rem 1rem;
    }
    .main-page-banner-caption h2 {
        font-size: 1rem;
    }
}


/* v5.8.53 - Scoring action feedback and desktop opt-out placement. */
@media (min-width: 768px) {
  .table-results-compact-actions[data-score-action-group] .table-results-submit-score-button {
    flex: 1 1 auto;
  }
  .table-results-compact-actions[data-score-action-group] .table-results-opt-out-button {
    flex: 0 0 auto;
    min-width: 11.5rem;
    max-width: 14rem;
  }
}
@media (max-width: 767.98px) {
  .table-results-compact-actions[data-score-action-group] .table-results-submit-score-button,
  .table-results-compact-actions[data-score-action-group] .table-results-opt-out-button {
    flex: 1 1 50%;
  }
}

/* v5.8.61 private event dashboard and public Events highlighting */
.dashboard-event-row-private > td,
.dashboard-event-action-row-private > td,
.public-event-row-private > td {
    background: linear-gradient(90deg, rgba(255, 193, 7, 0.16), rgba(255, 255, 255, 0.98));
}
.dashboard-event-row-private > td:first-child,
.dashboard-event-action-row-private > td:first-child,
.public-event-row-private > td:first-child,
.dashboard-event-card-private,
.public-event-card-private {
    border-left: 0.35rem solid rgba(255, 193, 7, 0.95);
}
.dashboard-event-card-private,
.public-event-card-private {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.14), #fff 68%);
}
.dashboard-private-event-invite-link {
    font-weight: 700;
}


/* v5.8.63 - Highlight changed table rows before bulk Update All. */
.table-edit-form.table-edit-changed {
    border-left: 4px solid #0d6efd;
    background: #f5f9ff;
}
.table-edit-form.table-edit-changed::before {
    content: "Changed";
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #0d6efd;
    margin-bottom: 0.35rem;
}

/* v5.8.91 - Admin Snapshot grouped metric styling */
.admin-snapshot-group {
    border-color: rgba(13, 110, 253, 0.14) !important;
}

.admin-snapshot-metric {
    min-height: 5.4rem;
}

.admin-snapshot-label {
    line-height: 1.15;
}

.admin-snapshot-value {
    line-height: 1.1;
}

@media (max-width: 575.98px) {
    .admin-snapshot-metric {
        min-height: 4.8rem;
    }
}

/* v5.8.117 - Public How BoardGameNite works guide diagrams and user workflow cards. */
.how-guide-hero .alert {
    border-radius: 0.85rem;
}
.how-flow {
    display: grid;
    gap: 0.75rem;
}
.how-flow-five {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}
.how-flow-vertical {
    grid-template-columns: 1fr;
}
.how-flow-step {
    position: relative;
    min-height: 100%;
    padding: 1rem;
    border: 1px solid rgba(13, 110, 253, 0.2);
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 0.2rem 0.85rem rgba(15, 23, 42, 0.06);
}
.how-flow-five .how-flow-step:not(:last-child)::after {
    content: "→";
    position: absolute;
    top: 50%;
    right: -0.62rem;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 999px;
    background: #f8f9fa;
    color: var(--bs-primary, #0d6efd);
    text-align: center;
    line-height: 1.2rem;
    font-weight: 700;
    z-index: 2;
}
.how-flow-step strong,
.how-flow-step small {
    display: block;
}
.how-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.8rem;
    height: 1.8rem;
    margin-bottom: 0.55rem;
    border-radius: 999px;
    background: var(--bs-primary, #0d6efd);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
}
.how-score-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}
.how-score-card {
    padding: 1rem;
    border: 1px solid rgba(25, 135, 84, 0.22);
    border-radius: 1rem;
    background: #fff;
}
.how-score-card strong,
.how-score-card span {
    display: block;
}
.how-score-card span {
    color: #6c757d;
    font-size: 0.875rem;
}
@media (max-width: 991.98px) {
    .how-flow-five,
    .how-score-grid {
        grid-template-columns: 1fr;
    }
    .how-flow-five .how-flow-step:not(:last-child)::after {
        content: "↓";
        top: auto;
        right: 50%;
        bottom: -0.62rem;
        transform: translateX(50%);
    }
}

/* v5.8.175 - Compact attendance tracking action row. */
.attendance-actions-row td {
    background: #fff;
    border-top: 0;
    padding-top: 0.25rem;
}
.attendance-action-details {
    max-width: 100%;
}
.attendance-action-button-row .btn {
    white-space: nowrap;
}
.attendance-action-note {
    min-width: min(100%, 14rem);
}

/* v5.8.175 - Mobile attendance tracking cards and touch-friendly action controls. */
.attendance-mobile-cards {
    display: grid;
    gap: 0.75rem;
}
.attendance-mobile-card {
    border: 1px solid rgba(13, 110, 253, 0.16);
    border-radius: 0.9rem;
    background: #fff;
    padding: 0.75rem;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.04);
}
.attendance-mobile-card-header {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 0.65rem;
}
.attendance-mobile-person {
    min-width: 0;
}
.attendance-mobile-seats {
    flex: 0 0 auto;
    max-width: 44%;
}
.attendance-mobile-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
    margin-bottom: 0.65rem;
}
.attendance-mobile-meta-item {
    border: 1px solid rgba(108, 117, 125, 0.2);
    border-radius: 0.65rem;
    padding: 0.45rem 0.5rem;
    min-width: 0;
}
.attendance-mobile-meta-item span,
.attendance-mobile-meta-item small {
    display: block;
    color: #6c757d;
    font-size: 0.76rem;
    line-height: 1.2;
}
.attendance-mobile-meta-item strong {
    display: block;
    font-size: 0.92rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}
.attendance-mobile-meta-wide {
    grid-column: 1 / -1;
}
.attendance-mobile-action-details summary {
    min-height: 2.3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.attendance-mobile-button-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.attendance-mobile-button-row .btn {
    min-height: 2.35rem;
    white-space: normal;
    line-height: 1.15;
}
@media (max-width: 575.98px) {
    .attendance-mobile-card {
        padding: 0.65rem;
        border-radius: 0.8rem;
    }
    .attendance-mobile-card-header {
        gap: 0.5rem;
    }
    .attendance-mobile-seats {
        max-width: 46%;
    }
    .attendance-mobile-meta-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.38rem;
    }
    .attendance-mobile-meta-item {
        padding: 0.4rem 0.45rem;
    }
    .attendance-mobile-button-row {
        gap: 0.4rem !important;
    }
}

/* v5.8.175 - Condensed card-based leaderboard summary for desktop and mobile. */
.leaderboard-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 0.65rem;
}
.leaderboard-summary-card {
    background: rgba(248, 249, 250, 0.75);
}
.leaderboard-summary-meta {
    display: grid;
    gap: 0.15rem;
}
@media (max-width: 575.98px) {
    .leaderboard-summary-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    .leaderboard-summary-card {
        padding: 0.65rem !important;
    }
}

/* v5.8.209 - My Friends actions stay inline on desktop and collapse behind the name card on mobile. */
.friend-list-card {
    background: rgba(255, 255, 255, 0.9);
}
.friend-card-main {
    min-width: 0;
}
.friend-name-card {
    appearance: none;
    background: transparent;
    border: 0;
    color: inherit;
    flex: 1 1 auto;
    min-width: 0;
    padding: 0;
}
.friend-name-card:focus-visible {
    border-radius: 0.5rem;
    outline: 2px solid rgba(13, 110, 253, 0.45);
    outline-offset: 3px;
}
.friend-name-card::after {
    content: none;
}
.friend-actions-row {
    align-items: center;
    flex: 0 0 auto;
    justify-content: flex-end;
}
.friend-actions-row .btn {
    min-height: 36px;
}
@media (max-width: 575.98px) {
    .friend-list-card {
        padding: 0.65rem !important;
    }
    .friend-card-main {
        display: block !important;
    }
    .friend-name-card {
        display: block;
        position: relative;
        width: 100%;
        padding-right: 1.35rem;
    }
    .friend-name-card::after {
        content: "⋯";
        position: absolute;
        right: 0;
        top: 0;
        color: rgba(33, 37, 41, 0.65);
        font-weight: 700;
        line-height: 1;
    }
    .friend-list-card.friend-actions-expanded .friend-name-card::after {
        content: "×";
    }
    .friend-actions-row {
        display: none !important;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        margin-top: 0.55rem;
        padding-top: 0.55rem;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
    }
    .friend-list-card.friend-actions-expanded .friend-actions-row {
        display: grid !important;
    }
    .friend-actions-row form,
    .friend-actions-row .btn {
        width: 100%;
    }
}

/* v5.8.175 - Admin Add Player / Waive payment form is available on Attendees page with compact mobile layout. */
.admin-add-player-attendees {
    overflow: hidden;
}
.admin-add-player-attendees-summary {
    white-space: normal;
    text-align: left;
}
.admin-add-player-attendees-form .form-select,
.admin-add-player-attendees-form .form-control {
    min-width: 0;
}
@media (max-width: 767.98px) {
    .admin-add-player-attendees-form {
        row-gap: 0.5rem;
    }
    .admin-add-player-attendees-form .btn {
        min-height: 2.5rem;
    }
}

/* v5.8.181 - Profile settings rollups moved from My Registrations into Account > My Profile Settings. */
.account-rollup summary {
    cursor: pointer;
    list-style: none;
}
.account-rollup summary::-webkit-details-marker {
    display: none;
}
.account-rollup summary::after {
    content: "Show";
    font-size: .875rem;
    color: var(--bs-primary, #0d6efd);
    margin-left: auto;
}
.account-rollup[open] summary::after {
    content: "Hide";
}
.empty-summary {
    color: var(--bs-danger, #dc3545) !important;
    font-weight: 600;
}

/* v5.8.182 - Cookie-backed dark mode controlled from Account > My Profile Settings. */
.theme-dark {
    background: #0f172a;
    color: #e5e7eb;
}
.theme-dark main,
.theme-dark .container {
    color: #e5e7eb;
}
.theme-dark .card,
.theme-dark .modal-content,
.theme-dark .dropdown-menu,
.theme-dark .list-group-item,
.theme-dark .accordion-item,
.theme-dark .friend-list-card,
.theme-dark .schedule-day-matrix {
    background-color: #111827;
    color: #e5e7eb;
    border-color: rgba(148, 163, 184, 0.28);
}
.theme-dark .card-header,
.theme-dark .card-footer,
.theme-dark .schedule-day-header,
.theme-dark .table-light,
.theme-dark .bg-light {
    background-color: #1f2937 !important;
    color: #f8fafc !important;
    border-color: rgba(148, 163, 184, 0.24);
}
.theme-dark .text-muted,
.theme-dark .form-text,
.theme-dark .dropdown-header,
.theme-dark .small.text-muted {
    color: #cbd5e1 !important;
}
.theme-dark .border,
.theme-dark .border-top,
.theme-dark .border-bottom,
.theme-dark .table,
.theme-dark .table td,
.theme-dark .table th {
    border-color: rgba(148, 163, 184, 0.24) !important;
}
.theme-dark .table,
.theme-dark .table-striped > tbody > tr:nth-of-type(odd) > * {
    --bs-table-bg: #111827;
    --bs-table-color: #e5e7eb;
    --bs-table-striped-bg: #172033;
    --bs-table-striped-color: #e5e7eb;
    color: #e5e7eb;
}
.theme-dark .link-dark,
.theme-dark a.link-dark {
    color: #93c5fd !important;
}
.theme-dark a:not(.btn):not(.dropdown-item):not(.nav-link):not(.mobile-quick-panel-link) {
    color: #93c5fd;
}
.theme-dark .btn-outline-dark {
    color: #f8fafc;
    border-color: #94a3b8;
}
.theme-dark .btn-outline-dark:hover,
.theme-dark .btn-outline-dark:focus {
    color: #0f172a;
    background-color: #e5e7eb;
    border-color: #e5e7eb;
}
.theme-dark .btn-outline-secondary {
    color: #cbd5e1;
    border-color: #64748b;
}
.theme-dark .empty-summary {
    color: #fca5a5 !important;
}
.theme-dark .account-rollup summary::after {
    color: #93c5fd;
}
.theme-dark .profile-theme-card {
    box-shadow: 0 0.65rem 1.4rem rgba(0, 0, 0, 0.35) !important;
}
.theme-dark .mobile-quick-panel-inner {
    background: rgba(15, 23, 42, 0.96);
    border-color: rgba(148, 163, 184, 0.32);
}
.theme-dark .mobile-quick-panel-link {
    color: #cbd5e1;
}
.theme-dark .mobile-quick-panel-link.active {
    color: #ffffff;
    background: rgba(37, 99, 235, 0.48);
}
.theme-dark .global-help-tooltip {
    background: #e5e7eb;
    color: #0f172a;
}


/* v5.8.184 profile image upload/public gallery */
.profile-image-settings-thumb,
.public-profile-gallery-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: 0.5rem;
}
.public-profile-image-card .public-profile-gallery-image {
  border-radius: 0;
}
.profile-image-settings-card {
  background: var(--bs-body-bg);
}
.theme-dark .profile-image-settings-card,
.theme-dark .public-profile-image-card {
  border-color: rgba(255, 255, 255, 0.2) !important;
}
@media (max-width: 575.98px) {
  .profile-image-upload-card .form-text,
  .profile-image-upload-card .small.text-muted {
    font-size: 0.78rem;
  }
}

/* v5.8.186 uploaded profile-avatar selection and optimized upload preview */
.uploaded-profile-avatar-preview {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(0,0,0,.12);
  background: #fff;
}
.public-profile-avatar--uploaded {
  object-fit: cover;
}
.theme-dark .uploaded-profile-avatar-current {
  background: rgba(59, 130, 246, 0.16);
  border-color: rgba(147, 197, 253, 0.36);
  color: var(--bs-body-color);
}

/* v5.8.209 profile image optimization/hardening and mobile browser compatibility */
.profile-image-settings-card,
.public-profile-image-card {
  min-width: 0;
}
.profile-image-settings-thumb,
.public-profile-gallery-image {
  background: var(--bs-tertiary-bg, #f8f9fa);
  image-rendering: auto;
}
@media (max-width: 575.98px) {
  .public-profile-image-grid > [class*="col-"] {
    min-width: 0;
  }
  .profile-image-settings-card .btn,
  .public-profile-images-card .btn {
    min-height: 2.5rem;
  }
}

/* v5.8.209 - Profile Images controls live inside Profile Preferences; verbose helper copy uses compact help bubbles. */
.profile-preferences-card .profile-image-upload-panel {
    background: rgba(248, 249, 250, 0.72);
}
body.theme-dark .profile-preferences-card .profile-image-upload-panel {
    background: rgba(255, 255, 255, 0.04);
}
.profile-preferences-card .form-check-label .help-bubble,
.profile-preferences-card .form-label .help-bubble {
    margin-left: 0.25rem;
}
@media (max-width: 575.98px) {
    .profile-preferences-card .profile-image-upload-panel {
        padding: 0.75rem !important;
    }
    .profile-preferences-card .form-text:not(.keep-mobile-form-text) {
        display: none;
    }
}

/* v5.8.209 - Admin Dashboard dark-mode contrast hardening. */
.theme-dark .bg-white {
    background-color: #0f172a !important;
    color: #f8fafc !important;
    border-color: rgba(148, 163, 184, 0.28) !important;
}
.theme-dark #admin-snapshot-section {
    background-color: #111827;
    color: #e5e7eb;
}
.theme-dark #admin-snapshot-section .admin-snapshot-group {
    background-color: #1f2937 !important;
    color: #e5e7eb;
    border-color: rgba(148, 163, 184, 0.32) !important;
}
.theme-dark #admin-snapshot-section .admin-snapshot-metric {
    background-color: #0f172a !important;
    color: #f8fafc !important;
    border-color: rgba(147, 197, 253, 0.28) !important;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.35);
}
.theme-dark #admin-snapshot-section .admin-snapshot-label {
    color: #cbd5e1 !important;
}
.theme-dark #admin-snapshot-section .admin-snapshot-value {
    color: #ffffff !important;
}
.theme-dark #admin-snapshot-section .badge.text-bg-light {
    background-color: #e5e7eb !important;
    color: #0f172a !important;
}
.theme-dark .collapsible-panel {
    background-color: #111827;
    color: #e5e7eb;
    border-color: rgba(148, 163, 184, 0.28) !important;
}
.theme-dark .collapsible-toggle {
    background-color: #1f2937;
    color: #f8fafc;
    border-color: rgba(148, 163, 184, 0.28);
}
.theme-dark .collapsible-toggle:hover,
.theme-dark .collapsible-toggle:focus {
    background-color: #263244;
    color: #ffffff;
}

.theme-dark .admin-setup-group-toggle {
    background: linear-gradient(90deg, #1f2937, #243246);
    color: #f8fafc;
}
.theme-dark .admin-setup-group-body > .p-3 {
    background-color: #0f172a;
}
.theme-dark .admin-nested-panel {
    background-color: #111827;
}
.theme-dark .collapsible-toggle .toggle-indicator,
.theme-dark .collapsible-toggle .help-label-wrap {
    color: #f8fafc;
}
.theme-dark .collapsible-body {
    background-color: #111827;
    color: #e5e7eb;
}


/* v5.8.209 - Leaderboards dark-mode contrast hardening for desktop and Android/iPhone mobile browsers. */
.theme-dark .leaderboard-dark-surface,
.theme-dark .leaderboard-summary-card-list,
.theme-dark [data-leaderboard-summary-cards],
.theme-dark [data-leaderboard-dark-mode-surface] {
    background-color: #111827 !important;
    color: #e5e7eb !important;
    border-color: rgba(148, 163, 184, 0.32) !important;
}
.theme-dark .leaderboard-summary-card {
    background-color: #1f2937 !important;
    color: #f8fafc !important;
    border-color: rgba(147, 197, 253, 0.26) !important;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.35);
}
.theme-dark .leaderboard-summary-card .leaderboard-summary-meta,
.theme-dark .leaderboard-summary-card .small,
.theme-dark .leaderboard-summary-card .text-muted {
    color: #cbd5e1 !important;
}
.theme-dark .leaderboard-summary-card a,
.theme-dark .leaderboard-summary-card a.link-dark,
.theme-dark .leaderboard-table-game-cell a,
.theme-dark .card .leaderboard-table-game-cell a.link-dark {
    color: #93c5fd !important;
}
.theme-dark .leaderboard-summary-card .leaderboard-game-thumb,
.theme-dark .leaderboard-summary-card .leaderboard-game-thumb-placeholder {
    border-color: rgba(147, 197, 253, 0.32);
}
.theme-dark .card .border.rounded,
.theme-dark .card section.border.rounded {
    background-color: rgba(15, 23, 42, 0.42);
    border-color: rgba(148, 163, 184, 0.28) !important;
    color: #e5e7eb;
}
.theme-dark .table-responsive .table > :not(caption) > * > * {
    background-color: transparent;
    color: #e5e7eb;
    border-color: rgba(148, 163, 184, 0.24);
}
@media (max-width: 575.98px) {
    .theme-dark .leaderboard-summary-card {
        box-shadow: none;
    }
}

/* v5.8.209 - Schedule-matrix empty-slot click and desktop drag selection sets Add Session Block start/end times while preserving mobile tap behavior. */


/* v5.8.209 - My Registrations dark-mode contrast hardening for pending/history cards and mobile tabs. */
.theme-dark .mobile-info-card,
.theme-dark .mobile-stat-card,
.theme-dark .mobile-data-card,
.theme-dark .mobile-review-card,
.theme-dark .my-registrations-page .mobile-surface-section,
.theme-dark .my-registrations-page .mobile-action-dock-inner,
.theme-dark .my-registrations-page .mobile-utility-sheet,
.theme-dark .my-registrations-page .inline-confirm-sheet {
    background: #111827 !important;
    color: #e5e7eb !important;
    border-color: rgba(148, 163, 184, 0.28) !important;
}
.theme-dark .mobile-card-title,
.theme-dark .mobile-stat-value,
.theme-dark .mobile-field-value,
.theme-dark .mobile-action-dock-summary,
.theme-dark .my-registrations-page .mobile-card-actions,
.theme-dark .my-registrations-page .mobile-utility-sheet-body {
    color: #f8fafc !important;
}
.theme-dark .mobile-card-meta,
.theme-dark .mobile-field-label,
.theme-dark .mobile-stat-label,
.theme-dark .mobile-card-note,
.theme-dark .my-registrations-page .mobile-utility-sheet .small.text-muted,
.theme-dark .my-registrations-page .mobile-data-card.text-center.text-muted {
    color: #cbd5e1 !important;
}
.theme-dark .my-registrations-page .mobile-utility-sheet-summary,
.theme-dark .my-registrations-page .inline-confirm-sheet > summary {
    background-color: #172033 !important;
    color: #f8fafc !important;
    border-color: rgba(148, 163, 184, 0.28) !important;
}
.theme-dark .my-registrations-page .mobile-utility-sheet-pill {
    background: rgba(59, 130, 246, 0.16) !important;
    color: #bfdbfe !important;
    border: 1px solid rgba(147, 197, 253, 0.28);
}
.theme-dark .my-registrations-page .mobile-action-dock .btn-outline-primary,
.theme-dark .my-registrations-page .mobile-action-dock .btn-outline-secondary {
    color: #bfdbfe;
    border-color: rgba(147, 197, 253, 0.45);
    background-color: #111827;
}
.theme-dark .my-registrations-page .mobile-action-dock .btn-outline-primary:hover,
.theme-dark .my-registrations-page .mobile-action-dock .btn-outline-secondary:hover,
.theme-dark .my-registrations-page .mobile-action-dock .btn-outline-primary:focus,
.theme-dark .my-registrations-page .mobile-action-dock .btn-outline-secondary:focus {
    background-color: #1d4ed8;
    color: #ffffff;
}
.theme-dark .my-registrations-page .mobile-action-dock .btn-primary,
.theme-dark .my-registrations-page .mobile-action-dock .btn.active {
    background-color: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}
.theme-dark .my-registrations-page .mobile-inline-qr,
.theme-dark .my-registrations-page img.bg-white,
.theme-dark .my-registrations-page .bg-white.mobile-inline-qr {
    background-color: #f8fafc !important;
    border-color: rgba(148, 163, 184, 0.28) !important;
    color: #0f172a !important;
}

/* v5.8.209 - Application-wide dark-mode tokens and shared surface hardening. */
body.theme-dark {
    --bgnm-dark-bg: #0f172a;
    --bgnm-dark-surface: #111827;
    --bgnm-dark-surface-2: #1f2937;
    --bgnm-dark-surface-3: #172033;
    --bgnm-dark-border: rgba(148, 163, 184, 0.30);
    --bgnm-dark-border-strong: rgba(147, 197, 253, 0.36);
    --bgnm-dark-text: #e5e7eb;
    --bgnm-dark-heading: #f8fafc;
    --bgnm-dark-muted: #cbd5e1;
    --bgnm-dark-link: #93c5fd;
    --bgnm-dark-link-hover: #bfdbfe;
    --bs-body-bg: var(--bgnm-dark-bg);
    --bs-body-color: var(--bgnm-dark-text);
    --bs-secondary-color: var(--bgnm-dark-muted);
    --bs-tertiary-bg: var(--bgnm-dark-surface-2);
    --bs-border-color: var(--bgnm-dark-border);
    color-scheme: dark;
}
body.theme-dark,
.theme-dark main,
.theme-dark .container,
.theme-dark .container-fluid {
    background-color: var(--bgnm-dark-bg);
    color: var(--bgnm-dark-text);
}
.theme-dark h1,
.theme-dark h2,
.theme-dark h3,
.theme-dark h4,
.theme-dark h5,
.theme-dark h6,
.theme-dark .h1,
.theme-dark .h2,
.theme-dark .h3,
.theme-dark .h4,
.theme-dark .h5,
.theme-dark .h6,
.theme-dark label,
.theme-dark .form-label,
.theme-dark .form-check-label,
.theme-dark .fw-semibold,
.theme-dark .fw-bold {
    color: var(--bgnm-dark-heading);
}
.theme-dark .text-muted,
.theme-dark .form-text,
.theme-dark .small.text-muted,
.theme-dark .dropdown-header,
.theme-dark .mobile-card-meta,
.theme-dark .mobile-field-label,
.theme-dark .mobile-stat-label,
.theme-dark .mobile-card-note,
.theme-dark .leaderboard-summary-meta,
.theme-dark .help-text,
.theme-dark .empty-state-copy {
    color: var(--bgnm-dark-muted) !important;
}
.theme-dark .text-dark,
.theme-dark .link-dark,
.theme-dark a.link-dark,
.theme-dark a:not(.btn):not(.dropdown-item):not(.nav-link):not(.mobile-quick-panel-link) {
    color: var(--bgnm-dark-link) !important;
}
.theme-dark a:not(.btn):not(.dropdown-item):not(.nav-link):not(.mobile-quick-panel-link):hover,
.theme-dark .link-dark:hover,
.theme-dark a.link-dark:hover {
    color: var(--bgnm-dark-link-hover) !important;
}
.theme-dark .bg-light,
.theme-dark .bg-light-subtle,
.theme-dark .bg-white,
.theme-dark .alert-light,
.theme-dark .text-bg-light,
.theme-dark .table-light,
.theme-dark .list-group-item-light,
.theme-dark .border-light,
.theme-dark .card.bg-light,
.theme-dark .card.bg-white,
.theme-dark section.bg-light,
.theme-dark section.bg-white,
.theme-dark div.bg-light,
.theme-dark div.bg-white {
    background-color: var(--bgnm-dark-surface-2) !important;
    color: var(--bgnm-dark-text) !important;
    border-color: var(--bgnm-dark-border) !important;
}
.theme-dark .card,
.theme-dark .modal-content,
.theme-dark .dropdown-menu,
.theme-dark .accordion-item,
.theme-dark .list-group-item,
.theme-dark .toast,
.theme-dark .popover,
.theme-dark .offcanvas,
.theme-dark .friend-list-card,
.theme-dark .profile-preferences-card,
.theme-dark .profile-theme-card,
.theme-dark .profile-image-settings-card,
.theme-dark .public-profile-image-card,
.theme-dark .profile-image-upload-panel,
.theme-dark .schedule-day-matrix,
.theme-dark .schedule-block-card,
.theme-dark .event-card,
.theme-dark .game-card,
.theme-dark .public-event-result-card,
.theme-dark .public-event-table-mobile-card,
.theme-dark .dashboard-event-card,
.theme-dark .collapsible-panel,
.theme-dark .mobile-info-card,
.theme-dark .mobile-stat-card,
.theme-dark .mobile-data-card,
.theme-dark .mobile-review-card,
.theme-dark .mobile-utility-sheet,
.theme-dark .inline-confirm-sheet,
.theme-dark .account-rollup,
.theme-dark .account-rollup > summary,
.theme-dark .admin-snapshot-group,
.theme-dark .leaderboard-dark-surface,
.theme-dark .leaderboard-summary-card-list,
.theme-dark .leaderboard-summary-card,
.theme-dark .profile-avatar-option,
.theme-dark .uploaded-profile-avatar-current {
    background-color: var(--bgnm-dark-surface) !important;
    color: var(--bgnm-dark-text) !important;
    border-color: var(--bgnm-dark-border) !important;
}
.theme-dark .card-header,
.theme-dark .card-footer,
.theme-dark .accordion-header,
.theme-dark .accordion-button,
.theme-dark .collapsible-toggle,
.theme-dark .schedule-day-header,
.theme-dark .mobile-card-header,
.theme-dark .mobile-utility-sheet-summary,
.theme-dark .inline-confirm-sheet > summary,
.theme-dark .account-rollup summary,
.theme-dark .profile-avatar-picker-scroll,
.theme-dark .profile-image-upload-panel,
.theme-dark .friend-actions-row,
.theme-dark .admin-toolbar,
.theme-dark .filter-panel,
.theme-dark .search-panel {
    background-color: var(--bgnm-dark-surface-2) !important;
    color: var(--bgnm-dark-heading) !important;
    border-color: var(--bgnm-dark-border) !important;
}
.theme-dark .mobile-card-title,
.theme-dark .mobile-stat-value,
.theme-dark .mobile-field-value,
.theme-dark .mobile-action-dock-summary,
.theme-dark .score-value,
.theme-dark .stat-value,
.theme-dark .metric-value,
.theme-dark .admin-snapshot-value,
.theme-dark .leaderboard-summary-card .fw-semibold,
.theme-dark .leaderboard-summary-card .fw-bold {
    color: var(--bgnm-dark-heading) !important;
}
.theme-dark .form-control,
.theme-dark .form-select,
.theme-dark textarea,
.theme-dark input[type="text"],
.theme-dark input[type="email"],
.theme-dark input[type="number"],
.theme-dark input[type="date"],
.theme-dark input[type="time"],
.theme-dark input[type="datetime-local"],
.theme-dark input[type="search"],
.theme-dark input[type="password"] {
    background-color: #0b1220 !important;
    color: var(--bgnm-dark-text) !important;
    border-color: rgba(148, 163, 184, 0.42) !important;
}
.theme-dark .form-control:focus,
.theme-dark .form-select:focus,
.theme-dark textarea:focus,
.theme-dark input:focus {
    background-color: #0b1220 !important;
    color: var(--bgnm-dark-heading) !important;
    border-color: var(--bgnm-dark-border-strong) !important;
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.20) !important;
}
.theme-dark .form-control::placeholder,
.theme-dark textarea::placeholder,
.theme-dark input::placeholder {
    color: #94a3b8 !important;
    opacity: 1;
}
.theme-dark .input-group-text,
.theme-dark .btn-light,
.theme-dark .btn-outline-light {
    background-color: var(--bgnm-dark-surface-2) !important;
    color: var(--bgnm-dark-heading) !important;
    border-color: var(--bgnm-dark-border) !important;
}
.theme-dark .btn-outline-secondary,
.theme-dark .btn-outline-dark,
.theme-dark .btn-outline-primary {
    color: #bfdbfe;
    border-color: rgba(147, 197, 253, 0.45);
}
.theme-dark .btn-outline-secondary:hover,
.theme-dark .btn-outline-dark:hover,
.theme-dark .btn-outline-primary:hover,
.theme-dark .btn-outline-secondary:focus,
.theme-dark .btn-outline-dark:focus,
.theme-dark .btn-outline-primary:focus {
    background-color: #1d4ed8;
    border-color: #60a5fa;
    color: #ffffff;
}
.theme-dark .table,
.theme-dark .table > :not(caption) > * > *,
.theme-dark .table-striped > tbody > tr:nth-of-type(odd) > *,
.theme-dark .table-hover > tbody > tr:hover > * {
    --bs-table-bg: transparent;
    --bs-table-color: var(--bgnm-dark-text);
    --bs-table-striped-bg: rgba(30, 41, 59, 0.72);
    --bs-table-striped-color: var(--bgnm-dark-text);
    --bs-table-hover-bg: rgba(37, 99, 235, 0.18);
    --bs-table-hover-color: var(--bgnm-dark-heading);
    color: var(--bgnm-dark-text) !important;
    border-color: var(--bgnm-dark-border) !important;
}
.theme-dark thead,
.theme-dark .table thead th {
    color: var(--bgnm-dark-heading) !important;
    border-color: var(--bgnm-dark-border) !important;
}

/* v5.9.123 - Keep yellow warning badges readable in light and dark themes. */
.badge.text-bg-warning,
.badge.bg-warning,
.badge.text-bg-warning.text-dark,
.badge.bg-warning.text-dark {
    background-color: #ffc107 !important;
    color: #111827 !important;
    border-color: rgba(120, 53, 15, 0.35) !important;
    text-shadow: none !important;
}
.theme-dark .badge.text-bg-warning,
.theme-dark .badge.bg-warning,
.theme-dark .badge.text-bg-warning.text-dark,
.theme-dark .badge.bg-warning.text-dark,
[data-bs-theme="dark"] .badge.text-bg-warning,
[data-bs-theme="dark"] .badge.bg-warning,
[data-bs-theme="dark"] .badge.text-bg-warning.text-dark,
[data-bs-theme="dark"] .badge.bg-warning.text-dark {
    background-color: #facc15 !important;
    color: #111827 !important;
    border-color: rgba(250, 204, 21, 0.65) !important;
    text-shadow: none !important;
}

.theme-dark .badge.text-bg-light,
.theme-dark .badge.bg-light,
.theme-dark .badge.bg-white {
    background-color: #334155 !important;
    color: var(--bgnm-dark-heading) !important;
    border: 1px solid rgba(148, 163, 184, 0.30);
}
.theme-dark .alert,
.theme-dark .alert-secondary,
.theme-dark .alert-info,
.theme-dark .alert-warning,
.theme-dark .alert-success,
.theme-dark .alert-danger {
    border-color: var(--bgnm-dark-border) !important;
}
.theme-dark .alert-info {
    background-color: rgba(14, 165, 233, 0.14) !important;
    color: #e0f2fe !important;
}
.theme-dark .alert-warning {
    background-color: rgba(245, 158, 11, 0.16) !important;
    color: #fde68a !important;
}
.theme-dark .alert-success {
    background-color: rgba(34, 197, 94, 0.14) !important;
    color: #bbf7d0 !important;
}
.theme-dark .alert-danger {
    background-color: rgba(239, 68, 68, 0.14) !important;
    color: #fecaca !important;
}
.theme-dark .alert-secondary,
.theme-dark .alert-light {
    background-color: var(--bgnm-dark-surface-2) !important;
    color: var(--bgnm-dark-text) !important;
}
.theme-dark .dropdown-item {
    color: var(--bgnm-dark-text);
}
.theme-dark .dropdown-item:hover,
.theme-dark .dropdown-item:focus {
    background-color: rgba(59, 130, 246, 0.20);
    color: var(--bgnm-dark-heading);
}
.theme-dark .dropdown-divider,
.theme-dark hr {
    border-color: var(--bgnm-dark-border) !important;
}
.theme-dark .nav-tabs,
.theme-dark .nav-tabs .nav-link {
    border-color: var(--bgnm-dark-border) !important;
}
.theme-dark .nav-tabs .nav-link:not(.active) {
    color: var(--bgnm-dark-link);
    background-color: transparent;
}
.theme-dark .nav-tabs .nav-link.active {
    background-color: var(--bgnm-dark-surface-2);
    color: var(--bgnm-dark-heading);
    border-color: var(--bgnm-dark-border) var(--bgnm-dark-border) var(--bgnm-dark-surface-2) !important;
}
.theme-dark .mobile-action-dock-inner,
.theme-dark .mobile-quick-panel-inner {
    background: rgba(15, 23, 42, 0.96) !important;
    color: var(--bgnm-dark-text) !important;
    border-color: rgba(148, 163, 184, 0.32) !important;
}
.theme-dark .mobile-action-dock .btn-outline-primary,
.theme-dark .mobile-action-dock .btn-outline-secondary,
.theme-dark .mobile-page-nav .btn-outline-primary,
.theme-dark .mobile-page-nav .btn-outline-secondary {
    background-color: var(--bgnm-dark-surface) !important;
    color: #bfdbfe !important;
    border-color: rgba(147, 197, 253, 0.45) !important;
}
.theme-dark .mobile-action-dock .btn-primary,
.theme-dark .mobile-action-dock .btn.active,
.theme-dark .mobile-page-nav .btn-primary,
.theme-dark .mobile-page-nav .btn.active {
    background-color: #2563eb !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
}
.theme-dark .profile-avatar-option,
.theme-dark .profile-avatar-thumb,
.theme-dark .profile-image-settings-thumb,
.theme-dark .public-profile-gallery-image,
.theme-dark .uploaded-profile-avatar-preview {
    background-color: var(--bgnm-dark-surface-2) !important;
    border-color: var(--bgnm-dark-border) !important;
}
.theme-dark .profile-avatar-option.is-selected,
.theme-dark .profile-avatar-option:has(input:checked) {
    background-color: rgba(37, 99, 235, 0.24) !important;
    border-color: var(--bgnm-dark-border-strong) !important;
}
.theme-dark .schedule-slot,
.theme-dark .schedule-matrix-cell,
.theme-dark .matrix-cell,
.theme-dark .time-slot {
    border-color: rgba(148, 163, 184, 0.20) !important;
}
.theme-dark .schedule-slot-empty,
.theme-dark .schedule-matrix-empty,
.theme-dark .matrix-cell-empty {
    background-color: rgba(15, 23, 42, 0.50) !important;
}
.theme-dark .schedule-slot-selected,
.theme-dark .schedule-matrix-selection,
.theme-dark .matrix-cell-selected {
    background-color: rgba(37, 99, 235, 0.34) !important;
    color: var(--bgnm-dark-heading) !important;
}


/* v5.9.61 - Public Schedule Matrix and QR controls dark-mode contrast fix. */
.theme-dark .schedule-day-matrix {
    background-color: var(--bgnm-dark-surface) !important;
}
.theme-dark .schedule-day-grid {
    background-color: var(--bgnm-dark-surface) !important;
}
.theme-dark .schedule-time-column {
    background-color: var(--bgnm-dark-surface-2) !important;
    border-right-color: var(--bgnm-dark-border) !important;
}
.theme-dark .schedule-time-slot {
    color: var(--bgnm-dark-muted) !important;
    border-bottom-color: rgba(148, 163, 184, 0.22) !important;
}
.theme-dark .schedule-lane {
    background-color: var(--bgnm-dark-surface-3) !important;
    background-image: linear-gradient(to bottom, rgba(148, 163, 184, 0.22) 1px, transparent 1px) !important;
}
.theme-dark .schedule-block-card {
    background: rgba(30, 41, 59, 0.96) !important;
    color: var(--bgnm-dark-text) !important;
    border-color: rgba(96, 165, 250, 0.52) !important;
    border-left-color: #60a5fa !important;
    box-shadow: 0 0.45rem 1.1rem rgba(0, 0, 0, 0.34) !important;
}
.theme-dark .schedule-block-card:hover,
.theme-dark .schedule-block-card:focus-within {
    color: var(--bgnm-dark-heading) !important;
    box-shadow: 0 0.55rem 1.25rem rgba(0, 0, 0, 0.42) !important;
}
.theme-dark .matrix-block-header-line,
.theme-dark .schedule-block-card .matrix-block-header-line,
.theme-dark .schedule-block-card .matrix-block-header-line .text-muted {
    color: var(--bgnm-dark-heading) !important;
}
.theme-dark .matrix-legend-item {
    background-color: rgba(15, 23, 42, 0.78) !important;
    color: var(--bgnm-dark-text) !important;
    border-color: var(--bgnm-dark-border) !important;
}
.theme-dark .matrix-legend-session {
    background: rgba(37, 99, 235, 0.28) !important;
    border-color: #93c5fd !important;
}
.theme-dark .matrix-legend-table {
    background: rgba(217, 119, 6, 0.28) !important;
    border-color: #fbbf24 !important;
}
.theme-dark .matrix-table-row-card,
.theme-dark .matrix-table-row-card-public,
.theme-dark .schedule-block-card .matrix-table-row-card {
    background: rgba(120, 53, 15, 0.38) !important;
    color: #fff7ed !important;
    border-color: rgba(251, 191, 36, 0.72) !important;
    border-left-color: #fbbf24 !important;
}
.theme-dark .matrix-table-row-card .fw-semibold,
.theme-dark .matrix-table-row-card .small,
.theme-dark .matrix-table-row-card .text-muted,
.theme-dark .matrix-table-row-card .event-table-replay-note {
    color: #fde68a !important;
}
.theme-dark .matrix-table-row-card a:not(.btn),
.theme-dark .matrix-table-row-card a.link-dark {
    color: #bfdbfe !important;
}
.theme-dark .matrix-table-row-card .badge.text-bg-light,
.theme-dark .schedule-block-card .badge.text-bg-light {
    background-color: rgba(15, 23, 42, 0.72) !important;
    color: #e5e7eb !important;
    border-color: rgba(148, 163, 184, 0.36) !important;
}
.theme-dark .event-share-qr-card {
    background-color: var(--bgnm-dark-surface-2) !important;
    color: var(--bgnm-dark-text) !important;
    border-color: var(--bgnm-dark-border) !important;
    box-shadow: 0 0.45rem 1.1rem rgba(0, 0, 0, 0.30) !important;
}
.theme-dark .event-qr-toggle,
.theme-dark .event-table-qr-toggle,
.theme-dark .event-table-qr-print-link,
.theme-dark .event-table-qr-action {
    background-color: var(--bgnm-dark-surface) !important;
    color: #bfdbfe !important;
    border-color: rgba(147, 197, 253, 0.48) !important;
}
.theme-dark .event-qr-toggle:hover,
.theme-dark .event-qr-toggle:focus,
.theme-dark .event-table-qr-toggle:hover,
.theme-dark .event-table-qr-toggle:focus,
.theme-dark .event-table-qr-print-link:hover,
.theme-dark .event-table-qr-print-link:focus,
.theme-dark .event-table-qr-action:hover,
.theme-dark .event-table-qr-action:focus {
    background-color: #1d4ed8 !important;
    border-color: #60a5fa !important;
    color: #ffffff !important;
}
.theme-dark .event-share-qr-body .event-share-qr-img {
    background-color: #ffffff !important;
    border: 1px solid rgba(17, 24, 39, 0.20) !important;
    border-radius: 0.5rem;
    padding: 0.25rem;
}
.theme-dark .event-share-qr-url,
.theme-dark .event-table-qr-help {
    color: var(--bgnm-dark-muted) !important;
}
/* Keep QR / print scan surfaces intentionally light even when the page is in dark mode. */
.theme-dark .qr-print-page,
.theme-dark .qr-pass,
.theme-dark .qr-card,
.theme-dark .print-sheet,
.theme-dark .print-area,
.theme-dark .mobile-qr-sheet,
.theme-dark .qr-code-surface,
.theme-dark img.mobile-inline-qr,
.theme-dark img[src*="qr.svg"],
.theme-dark img[src*="/qr"],
.theme-dark .bg-white.mobile-inline-qr {
    background-color: #ffffff !important;
    color: #111827 !important;
    border-color: rgba(17, 24, 39, 0.20) !important;
}
@media print {
    .theme-dark .qr-print-page,
    .theme-dark .qr-pass,
    .theme-dark .qr-card,
    .theme-dark .print-sheet,
    .theme-dark .print-area,
    .theme-dark img[src*="qr.svg"],
    .theme-dark img[src*="/qr"] {
        background-color: #ffffff !important;
        color: #000000 !important;
    }
}

/* v5.8.209 - Compact mobile Reliability/Community Score cards and help-first explanatory copy on My Registrations. */
.community-score-inner-card {
    transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.community-score-details summary {
    cursor: pointer;
    list-style: none;
    font-size: .82rem;
    font-weight: 700;
    color: var(--bs-primary, #0d6efd);
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}
.community-score-details summary::-webkit-details-marker {
    display: none;
}
.community-score-details summary::after {
    content: "+";
    font-weight: 800;
}
.community-score-details[open] summary::after {
    content: "−";
}
.community-score-mobile-chipline {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}
.community-score-mobile-chipline span {
    border: 1px solid rgba(13, 110, 253, 0.16);
    border-radius: 999px;
    background: rgba(13, 110, 253, 0.08);
    color: #334155;
    font-size: .75rem;
    font-weight: 700;
    padding: .15rem .48rem;
}
@media (max-width: 991.98px) {
    .community-scorecard .card-body {
        padding: .85rem;
    }
    .community-scorecard .row.g-3 {
        --bs-gutter-y: .55rem;
    }
    .community-score-inner-card {
        padding: .75rem !important;
        border-radius: 1rem !important;
    }
    .community-score-compact-header {
        align-items: center !important;
    }
    .community-score-value {
        font-size: 1.75rem;
        line-height: 1.05;
    }
    .community-score-inner-card .badge {
        font-size: .72rem;
        padding: .3rem .48rem;
    }
    .community-score-inner-card .help-bubble {
        width: 1.35rem;
        height: 1.35rem;
        font-size: .78rem;
    }
    .community-score-details .mobile-field-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .45rem;
    }
    .my-registrations-page .text-muted:not(.d-lg-block) + .help-bubble,
    .my-registrations-page .help-label-wrap .help-bubble {
        flex-shrink: 0;
    }
}
.theme-dark .community-score-inner-card,
.theme-dark .community-score-details .mobile-field {
    background-color: var(--bgnm-dark-surface-2) !important;
    color: var(--bgnm-dark-text) !important;
    border-color: var(--bgnm-dark-border) !important;
}
.theme-dark .community-score-mobile-chipline span {
    background: rgba(59, 130, 246, 0.18);
    border-color: rgba(147, 197, 253, 0.30);
    color: #bfdbfe;
}
.theme-dark .community-score-details summary {
    color: #bfdbfe;
}
/* v5.9.61 - Profile Settings help bubbles and compact Community Reliability mobile metrics. */
.profile-settings-page .help-label-wrap,
.profile-theme-card .help-label-wrap,
.account-rollup .help-label-wrap {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    flex-wrap: wrap;
}
.community-score-status-row {
    display: flex;
    align-items: center;
    gap: .35rem;
    flex-wrap: wrap;
}
.community-score-status-row .community-score-mobile-chipline {
    display: inline-flex;
    margin-top: 0 !important;
}
@media (max-width: 991.98px) {
    .community-score-status-row .community-score-mobile-chipline span {
        font-size: .7rem;
        padding: .12rem .42rem;
    }
}
.theme-dark .profile-theme-card .help-bubble,
.theme-dark .account-rollup .help-bubble,
.theme-dark .profile-preferences-card .help-bubble {
    background-color: rgba(59, 130, 246, 0.18) !important;
    color: #bfdbfe !important;
    border-color: rgba(147, 197, 253, 0.36) !important;
}
.theme-dark .account-rollup .form-text,
.theme-dark .profile-theme-card .form-text {
    color: var(--bgnm-dark-muted) !important;
}

/* v5.8.209 - Dark-mode hardening plus compact mobile pending/history result cards. */
.compact-mobile-result-card {
    padding: 0.62rem 0.68rem;
    border-radius: 0.9rem;
}
.compact-mobile-card-header {
    align-items: flex-start;
    gap: 0.45rem;
    margin-bottom: 0.42rem;
}
.compact-mobile-card-title {
    font-size: 0.93rem;
    line-height: 1.16;
    margin-bottom: 0.12rem;
    overflow-wrap: anywhere;
}
.mobile-card-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.5rem;
    color: #6c757d;
    font-size: 0.72rem;
    line-height: 1.25;
}
.compact-status-badge {
    flex: 0 0 auto;
    max-width: 42%;
    white-space: normal;
    text-align: center;
    line-height: 1.1;
}
.compact-mobile-primary-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem;
    margin-top: 0.25rem;
}
.compact-mobile-stat {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 0.72rem;
    background: rgba(248, 250, 252, 0.88);
    padding: 0.34rem 0.42rem;
    min-width: 0;
}
.compact-mobile-stat-label {
    display: block;
    color: #64748b;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.025em;
    line-height: 1.1;
    text-transform: uppercase;
}
.compact-mobile-stat-value {
    display: block;
    color: #111827;
    font-size: 0.84rem;
    font-weight: 800;
    line-height: 1.18;
    overflow-wrap: anywhere;
}
.compact-mobile-details {
    margin-top: 0.36rem;
}
.compact-mobile-details summary {
    cursor: pointer;
    list-style: none;
    color: var(--bs-primary, #0d6efd);
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    font-size: 0.74rem;
    font-weight: 800;
    line-height: 1.2;
}
.compact-mobile-details summary::-webkit-details-marker {
    display: none;
}
.compact-mobile-details summary::after {
    content: "+";
    font-weight: 900;
}
.compact-mobile-details[open] summary::after {
    content: "−";
}
.compact-mobile-details .mobile-field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.32rem;
}
.compact-mobile-details .mobile-field {
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 0.65rem;
    padding: 0.3rem 0.38rem;
    background: rgba(248, 250, 252, 0.72);
}
.compact-mobile-details .mobile-field-label {
    font-size: 0.62rem;
    margin-bottom: 0.05rem;
}
.compact-mobile-details .mobile-field-value {
    font-size: 0.78rem;
}
.compact-mobile-actions {
    margin-top: 0.42rem;
}
.compact-mobile-actions .btn-touch-action {
    min-height: 34px;
    padding: 0.32rem 0.5rem;
    font-size: 0.82rem;
}
.compact-mobile-qr-sheet .mobile-utility-sheet-summary {
    padding: 0.52rem 0.62rem;
    font-size: 0.84rem;
}
.compact-mobile-qr-sheet .mobile-utility-sheet-body {
    padding: 0 0.62rem 0.62rem;
}
@media (max-width: 991.98px) {
    .my-registrations-page #pending-results .card-body,
    .my-registrations-page #played-history .card-body {
        padding: 0.76rem;
    }
    .my-registrations-page #pending-results .d-flex.justify-content-between.align-items-center.gap-2.flex-wrap.mb-3,
    .my-registrations-page #played-history .d-flex.justify-content-between.align-items-center.gap-2.flex-wrap.mb-3 {
        margin-bottom: 0.58rem !important;
    }
    .my-registrations-page #pending-results h2,
    .my-registrations-page #played-history h2 {
        font-size: 1rem;
        line-height: 1.18;
    }
    .my-registrations-page #pending-results > .card-body > .d-flex .btn,
    .my-registrations-page #played-history > .card-body > .d-flex .btn {
        min-height: 32px;
        padding: 0.28rem 0.48rem;
        font-size: 0.78rem;
    }
    .my-registrations-page #pending-results .mobile-card-list,
    .my-registrations-page #played-history .mobile-card-list {
        gap: 0.48rem;
    }
    .my-registrations-page #pending-results .mobile-data-card,
    .my-registrations-page #played-history .mobile-data-card {
        padding: 0.62rem 0.68rem;
    }
    .my-registrations-page .mobile-utility-sheet .help-bubble,
    .my-registrations-page .inline-confirm-sheet .help-bubble {
        width: 1.28rem;
        height: 1.28rem;
        font-size: 0.72rem;
    }
}
.theme-dark .compact-mobile-result-card,
.theme-dark .compact-mobile-stat,
.theme-dark .compact-mobile-details .mobile-field {
    background: var(--bgnm-dark-surface-2) !important;
    color: var(--bgnm-dark-text) !important;
    border-color: var(--bgnm-dark-border) !important;
}
.theme-dark .mobile-card-meta-line,
.theme-dark .compact-mobile-stat-label,
.theme-dark .compact-mobile-details .mobile-field-label {
    color: var(--bgnm-dark-muted) !important;
}
.theme-dark .compact-mobile-stat-value,
.theme-dark .compact-mobile-details .mobile-field-value,
.theme-dark .compact-mobile-card-title,
.theme-dark .compact-mobile-card-title a {
    color: var(--bgnm-dark-heading) !important;
}
.theme-dark .compact-mobile-details summary {
    color: var(--bgnm-dark-link) !important;
}
.theme-dark .help-bubble {
    background-color: rgba(147, 197, 253, 0.14) !important;
    color: #bfdbfe !important;
    border-color: rgba(147, 197, 253, 0.42) !important;
}
.theme-dark .help-bubble:hover,
.theme-dark .help-bubble:focus,
.theme-dark .help-bubble[aria-expanded="true"] {
    background-color: rgba(37, 99, 235, 0.42) !important;
    color: #ffffff !important;
}
.theme-dark .accordion-item,
.theme-dark .accordion-button,
.theme-dark .offcanvas,
.theme-dark .toast,
.theme-dark .popover {
    background-color: var(--bgnm-dark-surface) !important;
    color: var(--bgnm-dark-text) !important;
    border-color: var(--bgnm-dark-border) !important;
}
.theme-dark .accordion-button:not(.collapsed) {
    background-color: var(--bgnm-dark-surface-2) !important;
    color: var(--bgnm-dark-heading) !important;
}
.theme-dark .btn-close {
    filter: invert(1) grayscale(100%) brightness(190%);
}
.theme-dark .form-control::placeholder,
.theme-dark .form-select::placeholder,
.theme-dark textarea::placeholder {
    color: #94a3b8 !important;
    opacity: 1;
}
.theme-dark [style*="background: #fff"],
.theme-dark [style*="background:#fff"],
.theme-dark [style*="background-color: #fff"],
.theme-dark [style*="background-color:#fff"],
.theme-dark [style*="background: white"],
.theme-dark [style*="background-color: white"] {
    background-color: var(--bgnm-dark-surface) !important;
    color: var(--bgnm-dark-text) !important;
}
.theme-dark [style*="color: #212529"],
.theme-dark [style*="color:#212529"],
.theme-dark [style*="color: black"],
.theme-dark [style*="color:black"] {
    color: var(--bgnm-dark-text) !important;
}
.theme-dark .mobile-qr-sheet [style*="background"],
.theme-dark .qr-print-page [style*="background"],
.theme-dark .qr-pass [style*="background"],
.theme-dark .print-area [style*="background"] {
    background-color: #ffffff !important;
    color: #111827 !important;
}

/* v5.8.213 - Played Game Results mobile compaction and dark-mode contrast hardening. */
@media (max-width: 575.98px) {
    .table-results-page .table-results-hero-card {
        margin-bottom: 0.45rem !important;
    }
    .table-results-page .table-results-hero-card > .card-body {
        padding: 0.62rem 0.72rem !important;
    }
    .table-results-page .table-results-hero-card .d-flex.justify-content-between {
        gap: 0.45rem !important;
    }
    .table-results-page .table-results-hero-kicker {
        margin-bottom: 0.15rem !important;
        letter-spacing: .02em;
    }
    .table-results-page .table-results-hero-card h1 {
        font-size: 1rem;
        line-height: 1.12;
        margin-bottom: 0.18rem !important;
    }
    .table-results-page .table-results-hero-meta {
        font-size: 0.78rem;
        line-height: 1.2;
    }
    .table-results-page .table-results-hero-card .badge {
        font-size: 0.68rem;
        padding: 0.24rem 0.42rem;
    }
    .table-results-page .table-results-replay-guidance {
        margin-top: 0.5rem !important;
        padding: 0.48rem 0.58rem;
        border-radius: 0.65rem;
    }
    .table-results-page .table-results-replay-guidance .d-flex {
        gap: 0.35rem !important;
    }
    .table-results-page .table-results-replay-heading {
        margin: 0;
    }
    .table-results-page .table-results-mobile-nav {
        margin-bottom: 0.35rem !important;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.12rem;
    }
    .table-results-page .table-results-mobile-nav .btn {
        flex: 0 0 auto;
        min-height: 32px;
        padding: 0.28rem 0.48rem;
        font-size: 0.76rem;
    }
    .table-results-page .table-results-mobile-progress-strip {
        align-items: center;
        gap: 0.3rem;
        margin-bottom: 0.35rem !important;
    }
    .table-results-page .table-results-mobile-progress-strip .mobile-status-chip {
        min-height: 26px;
        padding: 0.2rem 0.42rem;
        font-size: 0.66rem;
    }
    .table-results-page .table-results-mobile-progress-help {
        width: 1.42rem;
        height: 1.42rem;
        min-width: 1.42rem;
        font-size: 0.76rem;
    }
    .table-results-page .table-results-mobile-summary {
        display: none !important;
    }
    .table-results-page .table-results-signoff-qr {
        margin-bottom: 0.55rem !important;
        border-radius: 0.7rem;
    }
    .table-results-page .table-results-signoff-qr .mobile-utility-sheet-summary {
        min-height: 42px;
        padding: 0.5rem 0.65rem;
        font-size: 0.9rem;
    }
    .table-results-page .table-results-signoff-qr .mobile-utility-sheet-pill {
        min-height: 28px;
        padding: 0.22rem 0.55rem;
        font-size: 0.72rem;
    }
    .table-results-page .table-results-signoff-qr .mobile-utility-sheet-body {
        padding: 0 0.65rem 0.7rem;
    }
    .table-results-page .table-results-actions-section,
    .table-results-page .table-results-score-sheet-section {
        margin-top: 0.55rem;
    }
    .table-results-page .table-results-actions-section > .card > .card-body,
    .table-results-page .table-results-score-sheet-section > .card > .card-body {
        padding: 0.68rem !important;
    }
    .table-results-page .table-results-actions-heading {
        margin-bottom: 0.42rem !important;
        font-size: 1rem;
    }
    .table-results-page .scorecard-end-only-card {
        padding: 0.58rem 0.65rem;
        margin-bottom: 0.5rem !important;
        border-radius: 0.65rem;
    }
    .table-results-page .scorecard-end-only-card .btn {
        min-height: 38px;
        padding: 0.42rem 0.55rem;
        font-size: 0.86rem;
    }
    .table-results-page .table-results-phase-help-compact {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        margin-top: 0.35rem;
    }
    .table-results-page .table-results-phase-help-compact .help-bubble,
    .table-results-page .table-results-actions-heading .help-bubble,
    .table-results-page .scorecard-end-only-card .help-bubble,
    .table-results-page .table-results-replay-heading .help-bubble,
    .table-results-page .table-results-hero-kicker .help-bubble,
    .table-results-page .table-results-signoff-qr .help-bubble {
        width: 1.35rem;
        height: 1.35rem;
        min-width: 1.35rem;
        font-size: 0.76rem;
    }
}

.theme-dark .table-results-page .table-results-hero-card,
.theme-dark .table-results-page .table-results-actions-section > .card,
.theme-dark .table-results-page .table-results-score-sheet-section > .card,
.theme-dark .table-results-page .table-results-signoff-qr,
.theme-dark .table-results-page .mobile-info-card,
.theme-dark .table-results-page .mobile-stat-card,
.theme-dark .table-results-page .mobile-score-sheet-list,
.theme-dark .table-results-page .mobile-data-card {
    background-color: var(--bgnm-dark-surface) !important;
    color: var(--bgnm-dark-text) !important;
    border-color: var(--bgnm-dark-border) !important;
}
.theme-dark .table-results-page .table-results-hero-card .table-results-hero-meta,
.theme-dark .table-results-page .table-results-replay-copy,
.theme-dark .table-results-page .table-results-actions-progress,
.theme-dark .table-results-page .table-results-phase-help,
.theme-dark .table-results-page .table-results-signoff-qr .small.text-muted,
.theme-dark .table-results-page .table-results-end-confirmation-copy,
.theme-dark .table-results-page .mobile-card-meta,
.theme-dark .table-results-page .mobile-stat-label,
.theme-dark .table-results-page .mobile-field-label,
.theme-dark .table-results-page .mobile-card-note {
    color: var(--bgnm-dark-muted) !important;
}
.theme-dark .table-results-page .table-results-replay-guidance.alert-light {
    background-color: var(--bgnm-dark-surface-2) !important;
    color: var(--bgnm-dark-text) !important;
    border-color: var(--bgnm-dark-border) !important;
}
.theme-dark .table-results-page .table-results-signoff-qr .mobile-utility-sheet-summary {
    background-color: var(--bgnm-dark-surface-2) !important;
    color: var(--bgnm-dark-heading) !important;
    border-color: var(--bgnm-dark-border) !important;
}
.theme-dark .table-results-page .table-results-signoff-qr .mobile-utility-sheet-pill,
.theme-dark .table-results-page .table-results-mobile-progress-strip .mobile-status-chip {
    background-color: rgba(37, 99, 235, 0.24) !important;
    color: #bfdbfe !important;
    border: 1px solid rgba(147, 197, 253, 0.32) !important;
}
.theme-dark .table-results-page .scorecard-end-only-card.alert-warning {
    background-color: rgba(245, 158, 11, 0.16) !important;
    color: #fde68a !important;
    border-color: rgba(251, 191, 36, 0.34) !important;
}
.theme-dark .table-results-page .scorecard-end-only-card.alert-light,
.theme-dark .table-results-page .scorecard-pending-compact-card,
.theme-dark .table-results-page .scorecard-review-compact-card {
    background-color: var(--bgnm-dark-surface-2) !important;
    color: var(--bgnm-dark-text) !important;
    border-color: var(--bgnm-dark-border) !important;
}
.theme-dark .table-results-page .scorecard-end-only-card .btn-outline-dark,
.theme-dark .table-results-page .inline-confirm-sheet .btn-outline-dark {
    background-color: var(--bgnm-dark-surface) !important;
    color: #bfdbfe !important;
    border-color: rgba(147, 197, 253, 0.48) !important;
}
.theme-dark .table-results-page .scorecard-end-only-card .btn-outline-dark:hover,
.theme-dark .table-results-page .scorecard-end-only-card .btn-outline-dark:focus,
.theme-dark .table-results-page .inline-confirm-sheet .btn-outline-dark:hover,
.theme-dark .table-results-page .inline-confirm-sheet .btn-outline-dark:focus {
    background-color: #1d4ed8 !important;
    color: #ffffff !important;
    border-color: #60a5fa !important;
}
.theme-dark .table-results-page .table-results-phase-help-compact {
    color: var(--bgnm-dark-heading) !important;
}
.theme-dark .table-results-page .mobile-score-sheet-list .mobile-field-grid,
.theme-dark .table-results-page .mobile-score-sheet-compact-row {
    border-bottom-color: rgba(148, 163, 184, 0.22) !important;
}


/* v5.9.61 - Finalized table results mobile compaction and dark-mode score-sheet fixes. */
@media (max-width: 575.98px) {
    .table-results-page-closed .table-results-actions-section > .card > .card-body {
        padding: 0.58rem 0.65rem !important;
    }
    .table-results-page-closed .table-results-actions-heading,
    .table-results-page-closed .table-results-shared-heading {
        font-size: 0.96rem;
        margin-bottom: 0.42rem !important;
    }
    .table-results-page-closed .scorecard-finalized-compact-card {
        margin-bottom: 0 !important;
        padding: 0.5rem 0.58rem !important;
        border-radius: 0.65rem;
    }
    .table-results-finalized-summary {
        display: inline-flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.25rem;
        line-height: 1.15;
        color: inherit;
    }
    .table-results-page-closed .table-results-phase-help-compact {
        margin-top: 0.28rem;
    }
    .table-results-page-closed .table-results-score-sheet-section > .card > .card-body {
        padding: 0.58rem 0.65rem !important;
    }
    .table-results-page-closed .mobile-score-sheet-compact-card,
    .table-results-page-closed .mobile-score-sheet-list {
        border-radius: 0.68rem;
    }
    .table-results-page-closed .mobile-score-sheet-compact-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 0.22rem 0.42rem;
        padding: 0.4rem 0.5rem;
    }
    .table-results-page-closed .mobile-score-sheet-name {
        font-size: 0.82rem;
        line-height: 1.1;
    }
    .table-results-page-closed .mobile-score-sheet-note,
    .table-results-page-closed .mobile-score-sheet-values {
        font-size: 0.68rem;
        line-height: 1.1;
    }
    .table-results-page-closed .mobile-score-sheet-values {
        gap: 0.18rem 0.5rem;
    }
    .table-results-page-closed .mobile-score-sheet-badges .badge {
        font-size: 0.56rem;
        padding: 0.16rem 0.28rem;
        line-height: 1.05;
    }
    .table-results-page-closed .table-results-shared-copy {
        display: none !important;
    }
    .table-results-page-closed .table-results-shared-timing {
        margin-top: 0.42rem !important;
        font-size: 0.72rem;
        line-height: 1.15;
    }
}

.theme-dark .table-results-page .scorecard-finalized-compact-card,
.theme-dark .table-results-page .table-results-finalized-state,
.theme-dark .table-results-page .mobile-score-sheet-compact-card,
.theme-dark .table-results-page .mobile-score-sheet-list,
.theme-dark .table-results-page .mobile-score-sheet-compact-row,
.theme-dark .table-results-page .table-results-shared-timing {
    background-color: var(--bgnm-dark-surface-2) !important;
    color: var(--bgnm-dark-text) !important;
    border-color: var(--bgnm-dark-border) !important;
}
.theme-dark .table-results-page .mobile-score-sheet-compact-row:nth-child(odd) {
    background-color: rgba(15, 23, 42, 0.18) !important;
}
.theme-dark .table-results-page .mobile-score-sheet-name,
.theme-dark .table-results-page .table-results-finalized-summary strong,
.theme-dark .table-results-page .table-results-shared-heading {
    color: var(--bgnm-dark-heading) !important;
}
.theme-dark .table-results-page .mobile-score-sheet-note,
.theme-dark .table-results-page .mobile-score-sheet-values,
.theme-dark .table-results-page .table-results-shared-copy,
.theme-dark .table-results-page .table-results-shared-timing,
.theme-dark .table-results-page .scorecard-finalized-compact-card .small:not(.fw-semibold) {
    color: var(--bgnm-dark-muted) !important;
}
.theme-dark .table-results-page .mobile-score-sheet-values .text-muted {
    color: #bfdbfe !important;
}
.theme-dark .table-results-page .scorecard-finalized-compact-card.alert-success {
    background-color: rgba(22, 163, 74, 0.16) !important;
    color: #dcfce7 !important;
    border-color: rgba(74, 222, 128, 0.35) !important;
}
.theme-dark .table-results-page .mobile-score-sheet-review-details > summary {
    color: var(--bgnm-dark-link) !important;
}

/* v5.8.213 - Admin dashboard Events mobile compact details. */
@media (max-width: 767.98px) {
    .dashboard-events-mobile-list {
        gap: 0.6rem;
    }
    .dashboard-event-card.dashboard-event-mobile-details {
        display: block;
        padding: 0;
        overflow: hidden;
    }
    .dashboard-event-mobile-summary {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 0.65rem;
        padding: 0.72rem 0.85rem;
        list-style: none;
        cursor: pointer;
        min-height: 4.25rem;
    }
    .dashboard-event-mobile-summary::-webkit-details-marker {
        display: none;
    }
    .dashboard-event-mobile-title-block {
        display: flex;
        flex-direction: column;
        gap: 0.14rem;
        min-width: 0;
        flex: 1 1 auto;
    }
    .dashboard-event-mobile-summary .mobile-card-title {
        margin: 0;
        line-height: 1.14;
    }
    .dashboard-event-mobile-summary .mobile-card-meta {
        line-height: 1.18;
    }
    .dashboard-event-mobile-quickline {
        display: flex;
        flex-wrap: wrap;
        gap: 0.28rem;
        align-items: center;
        font-size: 0.75rem;
        line-height: 1.15;
        color: #6c757d;
    }
    .dashboard-event-mobile-summary-side {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        flex: 0 0 auto;
        max-width: 44%;
        justify-content: flex-end;
    }
    .dashboard-event-mobile-summary-side .badge {
        white-space: normal;
        text-align: right;
        line-height: 1.05;
    }
    .dashboard-event-mobile-chevron {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 1.35rem;
        height: 1.35rem;
        border-radius: 999px;
        border: 1px solid rgba(108, 117, 125, 0.35);
        font-size: 0.86rem;
        line-height: 1;
        transition: transform 0.15s ease;
    }
    .dashboard-event-card[open] .dashboard-event-mobile-chevron {
        transform: rotate(180deg);
    }
    .dashboard-event-mobile-detail-body {
        padding: 0 0.85rem 0.85rem;
        border-top: 1px solid rgba(108, 117, 125, 0.18);
    }
    .dashboard-event-mobile-status-strip {
        display: flex;
        flex-wrap: wrap;
        gap: 0.32rem;
        padding: 0.6rem 0 0.5rem;
    }
    .dashboard-event-mobile-status-strip .mobile-status-chip {
        min-height: 28px;
        padding: 0.24rem 0.52rem;
        font-size: 0.72rem;
    }
    .dashboard-event-card .dashboard-event-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.45rem;
    }
    .dashboard-event-card .dashboard-event-card-grid .mobile-field {
        padding: 0.42rem 0.5rem;
        border: 1px solid rgba(108, 117, 125, 0.2);
        border-radius: 0.7rem;
    }
    .dashboard-event-mobile-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.42rem !important;
        margin-top: 0.6rem;
    }
    .dashboard-event-mobile-actions .btn,
    .dashboard-event-mobile-actions form .btn {
        min-height: 38px;
        padding: 0.42rem 0.55rem;
        font-size: 0.84rem;
    }
    .dashboard-event-mobile-actions > .btn:first-child,
    .dashboard-event-mobile-actions > .dashboard-friend-invite-link,
    .dashboard-event-mobile-actions > form,
    .dashboard-event-mobile-actions > div {
        grid-column: 1 / -1;
    }
    .dashboard-event-mobile-actions > .btn:nth-child(2),
    .dashboard-event-mobile-actions > .btn:nth-child(3) {
        grid-column: auto;
    }
    .dashboard-event-mobile-actions .d-flex {
        gap: 0.42rem !important;
    }
    .dashboard-event-mobile-actions .d-flex form {
        min-width: 0;
    }
    .dashboard-event-card .mobile-card-note {
        margin-top: 0.5rem;
        font-size: 0.8rem;
    }
}

.theme-dark .dashboard-event-mobile-summary {
    background-color: var(--bgnm-dark-surface-2) !important;
    color: var(--bgnm-dark-text) !important;
}
.theme-dark .dashboard-event-mobile-summary .mobile-card-title {
    color: var(--bgnm-dark-heading) !important;
}
.theme-dark .dashboard-event-mobile-summary .mobile-card-meta,
.theme-dark .dashboard-event-mobile-quickline {
    color: var(--bgnm-dark-muted) !important;
}
.theme-dark .dashboard-event-mobile-chevron,
.theme-dark .dashboard-event-mobile-detail-body,
.theme-dark .dashboard-event-card .dashboard-event-card-grid .mobile-field {
    border-color: var(--bgnm-dark-border) !important;
}
.theme-dark .dashboard-event-mobile-detail-body {
    background-color: var(--bgnm-dark-surface) !important;
}
.theme-dark .dashboard-event-card .dashboard-event-card-grid .mobile-field {
    background-color: rgba(15, 23, 42, 0.72) !important;
}
.theme-dark .dashboard-event-card .dashboard-event-card-grid .mobile-field-label,
.theme-dark .dashboard-event-card .mobile-card-note {
    color: var(--bgnm-dark-muted) !important;
}
.theme-dark .dashboard-event-card .dashboard-event-card-grid .mobile-field-value {
    color: var(--bgnm-dark-heading) !important;
}
.theme-dark .dashboard-event-mobile-status-strip .mobile-status-chip {
    background-color: rgba(37, 99, 235, 0.22) !important;
    color: #bfdbfe !important;
    border: 1px solid rgba(147, 197, 253, 0.32) !important;
}
.theme-dark .dashboard-event-mobile-status-strip .mobile-status-chip-success {
    background-color: rgba(22, 163, 74, 0.22) !important;
    color: #bbf7d0 !important;
    border-color: rgba(134, 239, 172, 0.34) !important;
}
.theme-dark .dashboard-event-mobile-status-strip .mobile-status-chip-warning {
    background-color: rgba(245, 158, 11, 0.2) !important;
    color: #fde68a !important;
    border-color: rgba(251, 191, 36, 0.34) !important;
}

/* v5.9.61 - Quick event friend invite holds and compact footer revision display. */
.quick-play-friend-invites {
    background: rgba(13, 110, 253, 0.04);
}
.quick-play-friend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.5rem 1rem;
}
[data-bs-theme="dark"] .quick-play-friend-invites,
.theme-dark .quick-play-friend-invites,
body.dark-mode .quick-play-friend-invites {
    background: rgba(96, 165, 250, 0.08);
    border-color: rgba(148, 163, 184, 0.42) !important;
}
@media (max-width: 576px) {
    .quick-play-friend-grid { grid-template-columns: 1fr; }
}

/* v5.9.61 - How It Works dark-mode contrast hardening for guide cards, workflow diagrams, and help surfaces. */
.theme-dark .how-it-works-page {
    color: var(--bgnm-dark-text);
}
.theme-dark .how-it-works-page .how-guide-hero,
.theme-dark .how-it-works-page .card,
.theme-dark .how-it-works-page .how-flow-step,
.theme-dark .how-it-works-page .how-score-card,
.theme-dark .how-it-works-page .border.rounded,
.theme-dark .how-it-works-page .rounded-4,
.theme-dark .how-public-private-hosting .bg-light {
    background-color: var(--bgnm-dark-surface-2) !important;
    color: var(--bgnm-dark-text) !important;
    border-color: var(--bgnm-dark-border) !important;
    box-shadow: 0 0.35rem 1rem rgba(0, 0, 0, 0.28);
}
.theme-dark .how-it-works-page .how-flow-step,
.theme-dark .how-it-works-page .how-score-card,
.theme-dark .how-it-works-page .border.rounded {
    background-color: var(--bgnm-dark-surface-3) !important;
}
.theme-dark .how-it-works-page h1,
.theme-dark .how-it-works-page h2,
.theme-dark .how-it-works-page h3,
.theme-dark .how-it-works-page strong,
.theme-dark .how-it-works-page .lead {
    color: var(--bgnm-dark-heading) !important;
}
.theme-dark .how-it-works-page .text-muted,
.theme-dark .how-it-works-page .small.text-muted,
.theme-dark .how-it-works-page .how-flow-step small,
.theme-dark .how-it-works-page .how-score-card span,
.theme-dark .how-it-works-page li,
.theme-dark .how-it-works-page p {
    color: var(--bgnm-dark-muted) !important;
}
.theme-dark .how-it-works-page .alert-info {
    background-color: rgba(37, 99, 235, 0.18) !important;
    color: #dbeafe !important;
    border-color: rgba(147, 197, 253, 0.36) !important;
}
.theme-dark .how-it-works-page .how-step-number {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 0 0 1px rgba(191, 219, 254, 0.28);
}
.theme-dark .how-it-works-page .how-flow-five .how-flow-step:not(:last-child)::after {
    background: var(--bgnm-dark-surface);
    color: var(--bgnm-dark-link);
    border: 1px solid var(--bgnm-dark-border-strong);
}
.theme-dark .how-it-works-page .btn-outline-primary {
    color: var(--bgnm-dark-link);
    border-color: var(--bgnm-dark-border-strong);
}
.theme-dark .how-it-works-page .btn-outline-primary:hover,
.theme-dark .how-it-works-page .btn-outline-primary:focus {
    color: #0f172a;
    background-color: var(--bgnm-dark-link-hover);
    border-color: var(--bgnm-dark-link-hover);
}

/* v5.9.61 - Friend-invite held-seat summaries stay compact and dark-mode safe. */
.event-invite-hold-summary {
    display: inline-block;
    line-height: 1.25;
}
body.theme-dark .event-invite-hold-summary,
html[data-bs-theme="dark"] .event-invite-hold-summary {
    color: #cfd6e4 !important;
}

/* v5.9.61 - Friendly private/unavailable game detail page and late-invite no-hold guidance. */
.game-unavailable-card {
    max-width: 760px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(148, 163, 184, 0.26) !important;
}
.game-unavailable-illustration {
    max-width: min(220px, 70vw);
    height: auto;
}
.late-invite-no-hold-note {
    background: rgba(13, 110, 253, 0.06);
    border-color: rgba(13, 110, 253, 0.18) !important;
}
body.theme-dark .game-unavailable-card,
html[data-bs-theme="dark"] .game-unavailable-card,
body.theme-dark .late-invite-no-hold-note,
html[data-bs-theme="dark"] .late-invite-no-hold-note {
    background: var(--bgnm-dark-surface-2) !important;
    color: var(--bgnm-dark-text) !important;
    border-color: var(--bgnm-dark-border) !important;
    box-shadow: 0 0.5rem 1.35rem rgba(0, 0, 0, 0.35) !important;
}
body.theme-dark .game-unavailable-card h1,
html[data-bs-theme="dark"] .game-unavailable-card h1,
body.theme-dark .late-invite-no-hold-note strong,
html[data-bs-theme="dark"] .late-invite-no-hold-note strong {
    color: var(--bgnm-dark-heading) !important;
}
body.theme-dark .game-unavailable-card .text-muted,
html[data-bs-theme="dark"] .game-unavailable-card .text-muted,
body.theme-dark .late-invite-no-hold-note .text-muted,
html[data-bs-theme="dark"] .late-invite-no-hold-note .text-muted {
    color: var(--bgnm-dark-muted) !important;
}
body.theme-dark .game-unavailable-illustration,
html[data-bs-theme="dark"] .game-unavailable-illustration {
    filter: drop-shadow(0 0.5rem 1rem rgba(0, 0, 0, 0.35));
}


/* v5.9.61 - Site copyright footer requirement and performance-safe shared footer styling. */
.site-footer {
    background: rgba(248, 250, 252, 0.6);
}
.site-footer-revision,
.site-footer-copyright {
    line-height: 1.5;
}
.theme-dark .site-footer,
[data-bs-theme="dark"] .site-footer,
body.dark-mode .site-footer {
    background: rgba(15, 23, 42, 0.82);
    border-color: rgba(148, 163, 184, 0.24) !important;
    color: #cbd5e1 !important;
}
.theme-dark .site-footer a,
[data-bs-theme="dark"] .site-footer a,
body.dark-mode .site-footer a {
    color: #93c5fd !important;
}

/* v5.9.61 - My Registrations separates owned My Events from joined registrations with dark-mode-safe shortcut surfaces. */
.my-events-shortcut-card,
.my-registered-events-card {
    scroll-margin-top: 5rem;
}
.my-events-shortcut-card .my-events-empty {
    background: var(--bs-body-bg, #fff);
}
.theme-dark .my-events-shortcut-card,
.theme-dark .my-registered-events-card {
    background: #111827;
    border-color: rgba(148, 163, 184, 0.28);
    color: #e5e7eb;
}
.theme-dark .my-events-shortcut-card .text-muted,
.theme-dark .my-registered-events-card .text-muted,
.theme-dark .my-events-owned-registration-note {
    color: #cbd5e1 !important;
}
.theme-dark .my-events-shortcut-card .my-events-empty {
    background: #0f172a;
    border-color: rgba(148, 163, 184, 0.32) !important;
    color: #cbd5e1 !important;
}
.theme-dark .my-events-shortcut-table .table,
.theme-dark .my-events-shortcut-table .table > :not(caption) > * > * {
    background-color: #111827;
    color: #e5e7eb;
    border-color: rgba(148, 163, 184, 0.24);
}

/* v5.9.61 - My Registrations joined-event mobile cards are minimized with details/actions tucked into compact disclosure rows. */
@media (max-width: 991.98px) {
    .my-registrations-page #registrations-list .compact-registration-card-list {
        gap: 0.46rem;
    }
    .my-registrations-page #registrations-list .compact-mobile-registration-card {
        padding: 0.58rem 0.64rem;
        border-radius: 0.86rem;
    }
    .my-registrations-page #registrations-list .compact-mobile-registration-card .compact-mobile-card-header {
        margin-bottom: 0.34rem;
    }
    .my-registrations-page #registrations-list .compact-mobile-registration-card .compact-mobile-card-title {
        font-size: 0.9rem;
        line-height: 1.13;
    }
    .my-registrations-page #registrations-list .compact-registration-primary-row {
        grid-template-columns: minmax(0, 1.6fr) minmax(4rem, 0.6fr);
        gap: 0.3rem;
        margin-top: 0.16rem;
    }
    .my-registrations-page #registrations-list .compact-mobile-registration-card .compact-mobile-stat {
        padding: 0.28rem 0.36rem;
        border-radius: 0.64rem;
    }
    .my-registrations-page #registrations-list .compact-mobile-registration-card .compact-mobile-stat-label {
        font-size: 0.58rem;
        margin-bottom: 0.04rem;
    }
    .my-registrations-page #registrations-list .compact-mobile-registration-card .compact-mobile-stat-value {
        font-size: 0.78rem;
        line-height: 1.13;
    }
    .my-registrations-page #registrations-list .compact-mobile-registration-card .compact-registration-details,
    .my-registrations-page #registrations-list .compact-mobile-registration-card .compact-registration-actions {
        margin-top: 0.28rem;
    }
    .my-registrations-page #registrations-list .compact-mobile-registration-card .compact-mobile-details summary {
        font-size: 0.72rem;
    }
    .my-registrations-page #registrations-list .compact-mobile-registration-card .mobile-field-grid {
        gap: 0.3rem;
    }
    .my-registrations-page #registrations-list .compact-mobile-registration-card .mobile-field {
        padding: 0.28rem 0.34rem;
    }
    .my-registrations-page #registrations-list .compact-mobile-registration-card .mobile-card-actions {
        gap: 0.38rem;
        margin-top: 0.38rem;
    }
    .my-registrations-page #registrations-list .compact-mobile-registration-card .compact-mobile-actions .btn-touch-action,
    .my-registrations-page #registrations-list .compact-mobile-registration-card .inline-confirm-sheet > summary {
        min-height: 32px;
        padding: 0.28rem 0.46rem;
        font-size: 0.8rem;
    }
    .my-registrations-page #registrations-list .compact-mobile-registration-card .compact-mobile-qr-sheet .mobile-utility-sheet-summary {
        padding: 0.48rem 0.58rem;
        font-size: 0.8rem;
    }
    .my-registrations-page #registrations-list .compact-mobile-registration-card .compact-mobile-qr-sheet .mobile-utility-sheet-body {
        padding: 0 0.58rem 0.58rem;
    }
    .my-registrations-page #registrations-list .compact-registration-note {
        font-size: 0.72rem;
        margin-top: 0.28rem;
    }
}
.theme-dark .my-registrations-page #registrations-list .compact-mobile-registration-card,
.theme-dark .my-registrations-page #registrations-list .compact-mobile-registration-card .bg-light-subtle {
    background: var(--bgnm-dark-surface-2) !important;
    color: var(--bgnm-dark-text) !important;
    border-color: var(--bgnm-dark-border) !important;
}
.theme-dark .my-registrations-page #registrations-list .compact-mobile-registration-card a {
    color: var(--bgnm-dark-link) !important;
}
.theme-dark .my-registrations-page #registrations-list .compact-registration-note {
    color: var(--bgnm-dark-muted) !important;
}

/* v5.9.0-dev1 - Game Archive detail dark-mode hardening and Top 5 Results surfaces. */
.game-detail-top-results-card {
    border-radius: 1.35rem;
}
.game-detail-top-results-mobile-list {
    display: grid;
    gap: 0.75rem;
}
.game-detail-top-result-mobile-item {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 1rem;
    background: #fbfcfd;
    padding: 0.85rem 0.95rem;
}
.leaderboard-archive-link-form {
    max-width: 100%;
}
.leaderboard-archive-link-select {
    min-width: min(100%, 20rem);
    max-width: 34rem;
}
.theme-dark .game-detail-page .game-detail-hero-card,
.theme-dark .game-detail-page .game-detail-stats-card,
.theme-dark .game-detail-page .game-detail-top-results-card,
.theme-dark .game-detail-page .game-detail-upcoming-card,
.theme-dark .game-detail-page .card,
.theme-dark .leaderboard-archive-link-form {
    background-color: var(--bgnm-dark-surface) !important;
    color: var(--bgnm-dark-text) !important;
    border-color: var(--bgnm-dark-border) !important;
}
.theme-dark .game-detail-page .game-detail-media-panel,
.theme-dark .game-detail-page .game-detail-description-card,
.theme-dark .game-detail-page .game-detail-spec-card,
.theme-dark .game-detail-page .game-detail-stat-pill,
.theme-dark .game-detail-page .game-detail-upcoming-mobile-item,
.theme-dark .game-detail-page .game-detail-top-result-mobile-item {
    background: var(--bgnm-dark-surface-2) !important;
    color: var(--bgnm-dark-text) !important;
    border-color: var(--bgnm-dark-border) !important;
}
.theme-dark .game-detail-page .game-detail-spec-label,
.theme-dark .game-detail-page .game-detail-stat-label,
.theme-dark .game-detail-page .game-detail-kicker,
.theme-dark .game-detail-page .text-muted,
.theme-dark .leaderboard-archive-link-form .text-muted {
    color: var(--bgnm-dark-muted) !important;
}
.theme-dark .game-detail-page .game-detail-spec-value,
.theme-dark .game-detail-page .game-detail-stat-value,
.theme-dark .game-detail-page h1,
.theme-dark .game-detail-page h2,
.theme-dark .game-detail-page .fw-semibold {
    color: var(--bgnm-dark-heading) !important;
}
.theme-dark .game-detail-page a,
.theme-dark .game-detail-page a.link-dark,
.theme-dark .leaderboard-archive-link-form a,
.theme-dark .leaderboard-archive-link-form .link-dark {
    color: #93c5fd !important;
}
.theme-dark .game-detail-page .table,
.theme-dark .game-detail-page .table > :not(caption) > * > * {
    color: var(--bgnm-dark-text) !important;
    background-color: transparent !important;
    border-color: var(--bgnm-dark-border) !important;
}
.theme-dark .game-detail-page .badge.text-bg-light,
.theme-dark .game-detail-page .game-detail-scope-badge {
    background-color: #1f2937 !important;
    color: var(--bgnm-dark-heading) !important;
    border-color: var(--bgnm-dark-border) !important;
}

/* v5.9.61 - Social Phase 3/4, profile play statistics, notification center dark-mode surfaces. */
.profile-statistics-card .profile-stat-tile,
.public-profile-statistics .card,
.public-profile-top-games,
.friend-groups-card,
.friend-group-card,
.notification-center-card,
.notification-row,
.event-communication-card {
    border-color: var(--bs-border-color);
}
.profile-stat-tile {
    border: 1px solid var(--bs-border-color);
    border-radius: 0.85rem;
    padding: 0.75rem;
    height: 100%;
    background: var(--bs-body-bg);
}
.profile-stat-tile span {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--bs-secondary-color);
    font-weight: 700;
    margin-bottom: 0.25rem;
}
.profile-stat-tile strong {
    display: block;
    font-size: 1.1rem;
}
.notification-row-unread {
    border-left: 0.25rem solid var(--bs-primary);
}
[data-bs-theme="dark"] .profile-statistics-card,
[data-bs-theme="dark"] .profile-stat-tile,
[data-bs-theme="dark"] .public-profile-statistics .card,
[data-bs-theme="dark"] .public-profile-top-games,
[data-bs-theme="dark"] .friend-groups-card,
[data-bs-theme="dark"] .friend-group-card,
[data-bs-theme="dark"] .notification-center-card,
[data-bs-theme="dark"] .notification-row,
[data-bs-theme="dark"] .event-communication-card,
[data-bs-theme="dark"] .event-communication-card article {
    background: #111827;
    color: #f8fafc;
    border-color: #334155 !important;
}
[data-bs-theme="dark"] .event-communication-card .text-muted,
[data-bs-theme="dark"] .notification-center-page .text-muted,
[data-bs-theme="dark"] .friend-groups-card .text-muted,
[data-bs-theme="dark"] .profile-statistics-card .text-muted,
[data-bs-theme="dark"] .public-profile-top-games .text-muted,
[data-bs-theme="dark"] .public-profile-statistics .text-muted {
    color: #cbd5e1 !important;
}
[data-bs-theme="dark"] .friend-groups-card .badge.text-bg-light,
[data-bs-theme="dark"] .public-profile-top-games .badge.text-bg-light,
[data-bs-theme="dark"] .event-communication-card .badge.text-bg-light {
    background: #1f2937 !important;
    color: #f8fafc !important;
    border-color: #475569 !important;
}
@media (max-width: 575.98px) {
    .profile-stat-tile { padding: 0.6rem; }
    .profile-stat-tile strong { font-size: 1rem; }
}

/* v5.9.61 - Social/Friends Phase 3 friend-group event visibility controls. */
.friend-group-selector,
[data-friend-group-event-visibility] {
    border-radius: 0.85rem;
}
.friend-group-selector select[multiple] {
    min-height: 7.5rem;
}
[data-bs-theme="dark"] .friend-group-selector,
[data-bs-theme="dark"] [data-friend-group-event-visibility] {
    color: #f8fafc;
}
[data-bs-theme="dark"] .friend-group-selector .form-text,
[data-bs-theme="dark"] [data-friend-group-event-visibility] .form-text {
    color: #cbd5e1 !important;
}
[data-bs-theme="dark"] .friend-group-selector select,
[data-bs-theme="dark"] [data-friend-group-event-visibility] select {
    background-color: #0f172a;
    color: #f8fafc;
    border-color: #475569;
}
@media (max-width: 575.98px) {
    .friend-group-selector select[multiple] {
        min-height: 6rem;
    }
    .friend-group-selector .form-check {
        padding-top: 0.25rem;
    }
}

/* v5.9.61 - Sitemap/Search Console, homepage promotion card, and public friend-group capability copy. */
.homepage-promo-card {
    border-left: 0.35rem solid var(--bs-primary) !important;
}
.homepage-promo-badge {
    color: var(--bs-primary);
    letter-spacing: 0.04em;
}
[data-bs-theme="dark"] .homepage-promo-card,
[data-bs-theme="dark"] .homepage-feature-highlight-card,
[data-bs-theme="dark"] .how-public-private-hosting .bg-light,
[data-bs-theme="dark"] .how-social-friend-groups-card {
    background: #111827 !important;
    color: #f8fafc;
    border-color: #334155 !important;
}
[data-bs-theme="dark"] .homepage-promo-card .text-muted,
[data-bs-theme="dark"] .homepage-feature-highlight-card .text-muted,
[data-bs-theme="dark"] .how-public-private-hosting .text-muted,
[data-bs-theme="dark"] .how-social-friend-groups-card .text-muted {
    color: #cbd5e1 !important;
}
[data-bs-theme="dark"] [data-card-error-scope="homepage-promo"] .form-text {
    color: #cbd5e1 !important;
}
@media (max-width: 575.98px) {
    .homepage-promo-card .card-body {
        padding: 0.85rem !important;
    }
    .homepage-promo-card .btn {
        width: 100%;
    }
}

/* v5.9.123 - Promotions page and compact main-page promotion image derivative without cropping. */
.homepage-promo-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.homepage-promo-copy {
    text-align: left;
}
.homepage-promo-image-peek {
    display: block;
    width: min(26.25rem, 42vw);
    aspect-ratio: 420 / 160;
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: rgba(15, 23, 42, 0.04);
}
.homepage-promo-image-peek img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}
.promotions-page-hero {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.12), rgba(15, 23, 42, 0.02));
}
.promotions-page-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 960 / 460;
    object-fit: cover;
    border-top-left-radius: var(--bs-card-inner-border-radius);
    border-top-right-radius: var(--bs-card-inner-border-radius);
}
.promotions-page-copy {
    max-width: 68rem;
}
.promotions-rules-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}
.promotion-raffle-item-image {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    border-radius: 1rem;
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(15, 23, 42, 0.12);
}
.promotion-raffle-item-placeholder {
    min-height: 14rem;
    border: 1px dashed rgba(15, 23, 42, 0.25);
    background: rgba(15, 23, 42, 0.03);
}
[data-bs-theme="dark"] .homepage-promo-image-peek,
[data-bs-theme="dark"] .promotions-page-card,
[data-bs-theme="dark"] .promotions-page-hero,
[data-bs-theme="dark"] .promotions-empty-state,
[data-bs-theme="dark"] .promotions-rule-card,
[data-bs-theme="dark"] .promotion-raffle-item-card,
[data-bs-theme="dark"] .promotion-raffle-item-placeholder {
    background-color: #111827 !important;
    color: #f8fafc;
    border-color: #334155 !important;
}
[data-bs-theme="dark"] .homepage-promo-card .link-dark,
[data-bs-theme="dark"] .promotions-page-card .text-muted,
[data-bs-theme="dark"] .promotions-page-hero .text-muted,
[data-bs-theme="dark"] .promotions-empty-state .text-muted {
    color: #cbd5e1 !important;
}
@media (max-width: 767.98px) {
    .homepage-promo-layout {
        flex-direction: column;
    }
    .homepage-promo-image-peek {
        width: 100%;
    }
    .promotions-rules-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}


/* v5.9.61 - Friend / Group Social Stats cards, last-seen login indicator, and mobile rollups. */
.social-stats-card,
.social-stats-panel,
.group-social-stat-row {
    border-color: var(--bs-border-color);
}
.social-stats-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
}
.social-stats-panel {
    background: var(--bs-body-bg);
}
.social-stats-table th,
.social-stats-table td {
    vertical-align: middle;
}
.social-stats-table-expanded th,
.social-stats-table-expanded td {
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}
.social-stat-kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
}
.social-stat-kpi-grid > div {
    border: 1px solid var(--bs-border-color);
    border-radius: 0.75rem;
    padding: 0.55rem 0.65rem;
    min-width: 0;
}
.social-stat-kpi-grid .stat-value {
    display: block;
    font-weight: 700;
    line-height: 1.1;
}
.social-stat-kpi-grid .stat-label {
    display: block;
    font-size: 0.78rem;
    color: var(--bs-secondary-color);
    text-transform: lowercase;
}
.social-stat-mobile-row {
    background: var(--bs-body-bg);
    overflow: hidden;
}
.social-stat-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.8rem;
    cursor: pointer;
    min-width: 0;
}
.social-stat-summary::-webkit-details-marker {
    display: none;
}
.social-stat-summary::after {
    content: "⌄";
    flex: 0 0 auto;
    color: var(--bs-secondary-color);
}
.social-stat-mobile-row[open] .social-stat-summary::after {
    content: "⌃";
}
.social-stat-mobile-details {
    border-top: 1px solid var(--bs-border-color);
    padding: 0.65rem 0.8rem 0.8rem;
}
@media (max-width: 575.98px) {
    .social-stats-card .card-body {
        padding: 0.9rem;
    }
    .social-stats-panel {
        padding: 0.8rem !important;
    }
    .social-stat-summary {
        padding: 0.62rem 0.7rem;
    }
}
[data-bs-theme="dark"] .social-stats-card,
[data-bs-theme="dark"] .social-stats-panel,
[data-bs-theme="dark"] .group-social-stat-row,
[data-bs-theme="dark"] .social-stat-mobile-row {
    background: #111827;
    color: #f8fafc;
    border-color: #334155 !important;
}
[data-bs-theme="dark"] .social-stats-card .text-muted,
[data-bs-theme="dark"] .social-stats-panel .text-muted,
[data-bs-theme="dark"] .group-social-stat-row .text-muted,
[data-bs-theme="dark"] .social-stat-kpi-grid .stat-label {
    color: #cbd5e1 !important;
}
[data-bs-theme="dark"] .social-stats-card .badge.text-bg-light,
[data-bs-theme="dark"] .group-social-stat-row .badge.text-bg-light {
    background: #1f2937 !important;
    color: #f8fafc !important;
    border-color: #475569 !important;
}
[data-bs-theme="dark"] .social-stats-card .table {
    color: #f8fafc;
    border-color: #334155;
}
[data-bs-theme="dark"] .social-stat-kpi-grid > div,
[data-bs-theme="dark"] .social-stat-mobile-details {
    border-color: #334155;
}

/* v5.9.61 - Notification primary-nav badge, preference, and mobile-row hardening. */
.notification-unread-badge,
.mobile-notification-badge {
    min-width: 1.5rem;
}
.mobile-notification-link {
    position: relative;
}
.nav-notification-link .notification-unread-badge {
    line-height: 1;
}

.mobile-notification-badge {
    position: absolute;
    top: 0.15rem;
    right: 0.4rem;
    border-radius: 999px;
    padding: 0.05rem 0.35rem;
    font-size: 0.7rem;
    line-height: 1.1;
    background: var(--bs-danger);
    color: #fff;
}
.notification-feed-list .notification-row {
    border-radius: 0.75rem;
    margin-bottom: 0.55rem;
    border: 1px solid var(--bs-border-color);
}
.notification-row-copy {
    min-width: 0;
    flex: 1 1 16rem;
}
.notification-open-form {
    flex: 0 0 auto;
}
.notification-preferences-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}
.notification-preference-row {
    background: var(--bs-body-bg);
}
[data-bs-theme="dark"] .notification-preferences-card,
[data-bs-theme="dark"] .notification-preference-row,
[data-bs-theme="dark"] .notification-feed-list .notification-row {
    background: #111827 !important;
    color: #f8fafc;
    border-color: #334155 !important;
}
[data-bs-theme="dark"] .notification-preferences-card .text-muted,
[data-bs-theme="dark"] .notification-preference-row .text-muted,
[data-bs-theme="dark"] .notification-feed-list .text-muted {
    color: #cbd5e1 !important;
}
@media (max-width: 575.98px) {
    .notification-preferences-grid {
        grid-template-columns: 1fr;
    }
    .notification-open-form,
    .notification-open-form .btn {
        width: 100%;
    }
    .notification-feed-list .notification-row {
        padding: 0.75rem;
    }
}


/* v5.9.61 - Controlled organizer announcement audience targeting and mobile-safe communication forms. */
.event-announcement-form {
    background: var(--bs-body-bg);
}
.event-announcement-form .form-text {
    font-size: 0.8rem;
}
[data-bs-theme="dark"] .event-announcement-form,
[data-bs-theme="dark"] .event-communication-card article {
    background: #111827 !important;
    color: #f8fafc;
    border-color: #334155 !important;
}
[data-bs-theme="dark"] .event-announcement-form .form-text,
[data-bs-theme="dark"] .event-announcement-form .form-label,
[data-bs-theme="dark"] .event-communication-card article .text-muted {
    color: #cbd5e1 !important;
}
[data-bs-theme="dark"] .event-announcement-form .form-control,
[data-bs-theme="dark"] .event-announcement-form .form-select {
    background-color: #0f172a;
    color: #f8fafc;
    border-color: #475569;
}
@media (max-width: 575.98px) {
    .event-announcement-form .btn,
    .event-announcement-form .form-select {
        width: 100%;
    }
    .event-communication-card .card-body {
        padding: 0.85rem;
    }
}


/* v5.9.61 - Event discussion comments and moderation dark-mode/mobile hardening. */
.event-discussion-panel .event-comment-form,
.event-discussion-panel .event-comment {
    background: rgba(255, 255, 255, 0.96);
}
.event-comment-reply {
    margin-left: 1rem;
    border-left: 0.25rem solid rgba(13, 110, 253, 0.25) !important;
}
.event-comment-body {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.event-comment-report-box summary,
.event-comment-reply-box summary {
    cursor: pointer;
}
.admin-moderation-page blockquote {
    border-left: 0.25rem solid rgba(13, 110, 253, 0.25);
    padding-left: 0.75rem;
    margin-top: 0.35rem;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
[data-bs-theme="dark"] .event-discussion-panel .event-comment-form,
[data-bs-theme="dark"] .event-discussion-panel .event-comment,
[data-bs-theme="dark"] .admin-moderation-page .card,
[data-bs-theme="dark"] .admin-moderation-page .table {
    background: #121820;
    color: #f5f7fb;
    border-color: #2b3645 !important;
}
[data-bs-theme="dark"] .event-discussion-panel .form-text,
[data-bs-theme="dark"] .event-discussion-panel .text-muted,
[data-bs-theme="dark"] .admin-moderation-page .text-muted {
    color: #b9c4d0 !important;
}
[data-bs-theme="dark"] .event-discussion-panel .form-control,
[data-bs-theme="dark"] .admin-moderation-page .form-control {
    background: #0b1118;
    color: #f5f7fb;
    border-color: #344256;
}
@media (max-width: 575.98px) {
    .event-comment-reply { margin-left: 0.35rem; }
    .event-discussion-panel .event-comment-form .btn,
    .event-discussion-panel .event-comment .btn { width: 100%; }
    .admin-moderation-page .btn { width: 100%; margin-bottom: 0.25rem; }
}

/* v5.9.61 - Account menu grouping, compact notification preference rollup, and Attendance invite/held-seat mobile summaries. */
.app-account-menu .app-account-section-label {
    color: var(--bs-secondary-color);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 0.35rem 0.75rem 0.15rem;
    text-transform: uppercase;
}
.app-account-signed-in {
    padding-bottom: 0.25rem;
}
.notification-preferences-rollup > summary {
    cursor: pointer;
    list-style: none;
}
.notification-preferences-rollup > summary::-webkit-details-marker {
    display: none;
}
.notification-preference-row-header .help-bubble {
    flex: 0 0 auto;
}
.attendance-invite-summary {
    border: 1px solid rgba(13, 110, 253, 0.14);
    border-radius: 0.85rem;
    background: rgba(13, 110, 253, 0.04);
    padding: 0.75rem;
}
.attendance-invite-chip-row,
.attendance-table-seat-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}
.attendance-invite-details > summary {
    width: auto;
}
.attendance-invite-mobile-list {
    display: grid;
    gap: 0.4rem;
}
.attendance-invite-mobile-row {
    align-items: center;
    border: 1px solid var(--bs-border-color);
    border-radius: 0.65rem;
    display: flex;
    gap: 0.5rem;
    justify-content: space-between;
    padding: 0.45rem 0.55rem;
}
.attendance-invite-mobile-row span {
    color: var(--bs-secondary-color);
    font-size: 0.82rem;
    white-space: nowrap;
}
[data-bs-theme="dark"] .attendance-invite-summary,
[data-bs-theme="dark"] .attendance-invite-mobile-row {
    background: #111827 !important;
    border-color: #334155 !important;
    color: #f8fafc;
}
[data-bs-theme="dark"] .app-account-menu .app-account-section-label,
[data-bs-theme="dark"] .attendance-invite-summary .text-muted,
[data-bs-theme="dark"] .attendance-invite-mobile-row span {
    color: #cbd5e1 !important;
}
@media (max-width: 575.98px) {
    .app-account-menu {
        min-width: 15.75rem;
    }
    .app-account-menu .dropdown-item,
    .app-account-menu .dropdown-item-text {
        padding-top: 0.42rem;
        padding-bottom: 0.42rem;
    }
    .notification-preference-row {
        padding: 0.65rem !important;
    }
    .notification-preference-switches {
        gap: 0.85rem !important;
    }
    .attendance-invite-summary {
        padding: 0.6rem;
    }
    .attendance-invite-chip-row .badge,
    .attendance-table-seat-summary .badge {
        font-size: 0.72rem;
    }
    .attendance-table-seat-summary {
        width: 100%;
    }
}

/* v5.9.61 - Mobile homepage feature cards collapse detailed How it works capabilities, and Events results group by month/year. */
.homepage-feature-mobile-card,
.homepage-feature-mobile-details .homepage-feature-highlight-card {
    line-height: 1.25;
}
.homepage-feature-mobile-details summary {
    list-style: none;
    cursor: pointer;
}
.homepage-feature-mobile-details summary::-webkit-details-marker {
    display: none;
}
.public-event-month-grouped-results .event-month-group-row th {
    background: rgba(13, 110, 253, 0.08);
    border-top: 1px solid rgba(13, 110, 253, 0.22);
    color: #0b2447;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
}
.event-month-group-mobile-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin: 0.75rem 0 0.35rem;
    padding: 0.55rem 0.75rem;
    border-radius: 0.85rem;
    background: rgba(13, 110, 253, 0.08);
    color: #0b2447;
    font-weight: 700;
}
.event-month-group-mobile-heading:first-child {
    margin-top: 0;
}
[data-bs-theme="dark"] .homepage-feature-mobile-card,
[data-bs-theme="dark"] .homepage-feature-mobile-details .homepage-feature-highlight-card {
    background: #16213a !important;
    border-color: rgba(148, 163, 184, 0.36) !important;
    color: #f8fafc;
}
[data-bs-theme="dark"] .homepage-feature-mobile-card .text-muted,
[data-bs-theme="dark"] .homepage-feature-mobile-details .text-muted {
    color: #cbd5e1 !important;
}
[data-bs-theme="dark"] .public-event-month-grouped-results .event-month-group-row th,
[data-bs-theme="dark"] .event-month-group-mobile-heading {
    background: rgba(96, 165, 250, 0.16);
    border-color: rgba(147, 197, 253, 0.28);
    color: #e0f2fe;
}
@media (max-width: 767.98px) {
    .homepage-feature-highlights .card-body {
        padding: 1rem !important;
    }
    .homepage-feature-mobile-summary .small {
        font-size: 0.82rem;
    }
    .homepage-feature-mobile-card {
        padding: 0.75rem !important;
    }
    .homepage-feature-mobile-detail-list .homepage-feature-highlight-card {
        padding: 0.75rem !important;
    }
}

/* v5.9.61 - Compact sponsored-by logo carousel with clickable sponsor logos and Sponsorship page grid. */
.homepage-sponsorship-banner {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.08), rgba(255, 193, 7, 0.12));
    overflow: hidden;
}
.homepage-sponsorship-label {
    color: #0d6efd;
    letter-spacing: 0.08em;
}
.homepage-sponsorship-header {
    min-height: 42px;
}
.homepage-sponsorship-body {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.homepage-sponsor-carousel-viewport {
    overflow: hidden;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(13, 110, 253, 0.12);
    min-height: 78px;
    max-height: 86px;
}
.homepage-sponsor-carousel-track {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: max-content;
    padding: 0.55rem 1rem;
    animation: homepage-sponsor-logo-scroll 28s linear infinite;
}
.homepage-sponsorship-banner[data-carousel-paused="true"] .homepage-sponsor-carousel-track,
.homepage-sponsor-carousel-viewport:hover .homepage-sponsor-carousel-track,
.homepage-sponsor-carousel-viewport:focus-within .homepage-sponsor-carousel-track {
    animation-play-state: paused;
}
.homepage-sponsor-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 132px;
    min-width: 132px;
    height: 54px;
    padding: 0.25rem 0.55rem;
    border-radius: 0.65rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.homepage-sponsor-logo-link:hover,
.homepage-sponsor-logo-link:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 0.35rem 1rem rgba(0, 0, 0, 0.10);
}
.homepage-sponsor-logo {
    max-width: 112px;
    max-height: 44px;
    object-fit: contain;
}
.sponsorship-page-note,
.sponsorship-logo-card {
    background: rgba(248, 249, 250, 0.92);
}
.sponsorship-logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
}
.sponsorship-logo-card {
    display: flex;
    min-height: 112px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    border: 1px solid rgba(13, 110, 253, 0.12);
    border-radius: 1rem;
    text-align: center;
    text-decoration: none;
}
.sponsorship-logo-card img {
    max-width: 144px;
    max-height: 58px;
    object-fit: contain;
}
.sponsorship-logo-card span {
    color: var(--bs-body-color);
    font-size: 0.9rem;
    font-weight: 600;
}
@keyframes homepage-sponsor-logo-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
[data-bs-theme="dark"] .homepage-sponsorship-banner {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.18), rgba(255, 193, 7, 0.10));
}
[data-bs-theme="dark"] .homepage-sponsor-carousel-viewport,
[data-bs-theme="dark"] .homepage-sponsor-logo-link,
[data-bs-theme="dark"] .sponsorship-page-note,
[data-bs-theme="dark"] .sponsorship-logo-card {
    background: rgba(20, 25, 32, 0.92);
    border-color: rgba(255, 255, 255, 0.12);
}
[data-bs-theme="dark"] .homepage-sponsorship-banner .text-muted,
[data-bs-theme="dark"] [data-card-error-scope="homepage-sponsorship"] .form-text {
    color: rgba(255, 255, 255, 0.78) !important;
}
@media (prefers-reduced-motion: reduce) {
    .homepage-sponsor-carousel-track {
        animation: none;
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
    }
}
@media (max-width: 575.98px) {
    .homepage-sponsorship-banner .card-body {
        padding: 0.85rem !important;
    }
    .homepage-sponsorship-header {
        align-items: flex-start !important;
    }
    .homepage-sponsorship-body {
        -webkit-line-clamp: 2;
    }
    .homepage-sponsor-carousel-viewport {
        min-height: 70px;
        max-height: 78px;
    }
    .homepage-sponsor-logo-link {
        width: 116px;
        min-width: 116px;
        height: 48px;
    }
    .homepage-sponsor-logo {
        max-width: 96px;
        max-height: 38px;
    }
    .homepage-sponsorship-banner .btn {
        width: 100%;
    }
}

/* v5.9.61 - Newsletter and upcoming activities admin/user controls stay compact on mobile. */
.newsletter-broadcast-panel textarea {
    min-height: 8rem;
}
.newsletter-recent-mobile-row {
    background: rgba(13, 110, 253, 0.04);
}
.newsletter-create-account-optin {
    background: rgba(13, 110, 253, 0.04);
}
.newsletter-email-only-note {
    align-self: center;
}
[data-bs-theme="dark"] .newsletter-broadcast-panel .form-text,
[data-bs-theme="dark"] .newsletter-broadcast-panel .text-muted,
[data-bs-theme="dark"] .newsletter-email-only-note {
    color: #cbd5e1 !important;
}
[data-bs-theme="dark"] .newsletter-recent-mobile-row,
[data-bs-theme="dark"] .newsletter-create-account-optin {
    background: rgba(96, 165, 250, 0.12);
    border-color: rgba(147, 197, 253, 0.25) !important;
}
@media (max-width: 575.98px) {
    .newsletter-broadcast-panel .p-3 {
        padding: 0.85rem !important;
    }
    .newsletter-broadcast-panel textarea {
        min-height: 6rem;
    }
    .newsletter-create-account-optin {
        padding-top: 0.75rem !important;
        padding-bottom: 0.75rem !important;
    }
}

/* v5.9.61 - Newsletter default template fields and unsubscribe confirmation page. */
.newsletter-broadcast-panel [data-newsletter-default-template="true"] .form-text {
    font-size: 0.82rem;
}
.newsletter-unsubscribe-page .card {
    border-radius: 1.25rem;
}
[data-bs-theme="dark"] .newsletter-unsubscribe-page .card {
    background: #111827;
    color: #e5e7eb;
    border: 1px solid rgba(148, 163, 184, 0.22) !important;
}
[data-bs-theme="dark"] .newsletter-unsubscribe-page .text-muted {
    color: #cbd5e1 !important;
}
@media (max-width: 575.98px) {
    .newsletter-broadcast-panel [data-newsletter-default-template="true"] input,
    .newsletter-broadcast-panel [data-newsletter-default-template="true"] textarea {
        font-size: 0.95rem;
    }
}

/* v5.9.61 - Preferred-language account preference and newsletter localization controls. */
.preferred-language-card .preferred-language-form {
    min-height: 2.75rem;
}
.preferred-language-select {
    min-width: 9.5rem;
}
[data-bs-theme="dark"] .preferred-language-card {
    background: #111827 !important;
    color: #f8fafc;
    border-color: #334155 !important;
}
[data-bs-theme="dark"] .preferred-language-card .text-muted,
[data-bs-theme="dark"] .preferred-language-card .form-text {
    color: #cbd5e1 !important;
}
@media (max-width: 575.98px) {
    .preferred-language-card .preferred-language-form {
        align-items: stretch !important;
    }
    .preferred-language-card .preferred-language-form > div {
        width: 100%;
    }
    .preferred-language-select {
        min-width: 0;
        flex: 1 1 9rem;
    }
}

/* v5.9.61 - Compact table-results signoff window ratio for mobile score review. */
.table-results-signoff-window-card .mobile-stat-value {
  white-space: nowrap;
}

/* v5.9.61 - Played Game Results action-needed rollup for pending scores, corrections, and peer reviews. */
.table-results-needed-actions-card {
  background: var(--bs-light-bg-subtle, #f8f9fa);
}
.table-results-needed-grid {
  display: grid;
  gap: 0.35rem;
}
.table-results-needed-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.4rem;
  align-items: baseline;
}
.table-results-needed-label {
  font-weight: 700;
}
.table-results-needed-mobile summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}
.table-results-needed-summary {
  font-size: 0.82rem;
  color: var(--bs-secondary-color, #6c757d);
  text-align: right;
}
.table-results-needed-mobile-body {
  display: grid;
  gap: 0.35rem;
}
[data-bs-theme="dark"] .table-results-needed-actions-card,
.dark-mode .table-results-needed-actions-card,
body.dark-mode .table-results-needed-actions-card {
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(148, 163, 184, 0.38) !important;
  color: #e2e8f0;
}
[data-bs-theme="dark"] .table-results-needed-summary,
.dark-mode .table-results-needed-summary,
body.dark-mode .table-results-needed-summary {
  color: #cbd5e1;
}
@media (max-width: 991.98px) {
  .table-results-needed-actions-card {
    margin-bottom: 0.75rem !important;
    padding: 0.6rem 0.7rem;
  }
}

/* v5.9.61 - Played Game Results mobile finalized progress strip spacing and replay expiry window. */
@media (max-width: 575.98px) {
    .table-results-page .table-results-mobile-progress-strip-finalized {
        margin-bottom: 0.9rem !important;
        padding-bottom: 0.38rem;
        position: relative;
        z-index: 1;
    }
    .table-results-page .table-results-mobile-progress-strip-finalized + .table-results-mobile-summary,
    .table-results-page .table-results-mobile-progress-strip-finalized ~ .table-results-actions-section {
        clear: both;
    }
    .table-results-page .table-results-mobile-progress-strip-finalized ~ .row .table-results-actions-section {
        margin-top: 0.9rem;
    }
    .table-results-page .table-results-finalized-state {
        margin-top: 0.15rem;
    }
}

/* v5.9.61 - Game selection source chooser and inline profile-game creation fields. */
.game-source-selector {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.75rem;
    padding: 0.6rem 0.75rem;
    background: rgba(248, 249, 250, 0.9);
}
.quick-play-new-game-fields {
    background: rgba(248, 249, 250, 0.82);
}
.quick-play-new-game-fields .form-label {
    font-size: 0.84rem;
    margin-bottom: 0.25rem;
}
.theme-dark .game-source-selector,
.theme-dark .quick-play-new-game-fields {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
}
@media (max-width: 575.98px) {
    .quick-play-new-game-fields {
        padding: 0.75rem !important;
    }
}

/* v5.9.61 - Event Communication and Event Discussion in-development placeholders. */
.event-communication-card [aria-disabled="true"] {
    opacity: 0.82;
}
.event-communication-card button[disabled],
.event-communication-card textarea[disabled],
.event-communication-card input[disabled],
.event-communication-card select[disabled] {
    cursor: not-allowed;
}
.feature-in-development {
    margin-top: 2rem;
}
[data-bs-theme="dark"] .feature-in-development {
    background: #121820;
    color: #f5f7fb;
}
[data-bs-theme="dark"] .feature-in-development .text-muted {
    color: #b9c4d0 !important;
}

/* v5.9.61 - Prototype placeholder artwork and disabled prototype/profile upload reservations. */
.prototype-game-placeholder-image {
    object-fit: cover;
    background: var(--bs-light, #f8f9fa);
}
.prototype-game-upload-disabled-section,
.profile-image-upload-disabled-form {
    background: rgba(108, 117, 125, 0.06);
}
[data-bs-theme="dark"] .prototype-game-placeholder-image {
    background: rgba(255, 255, 255, 0.08);
}
[data-bs-theme="dark"] .prototype-game-upload-disabled-section,
[data-bs-theme="dark"] .profile-image-upload-disabled-form {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.16) !important;
}
@media (max-width: 575.98px) {
    .prototype-game-upload-disabled-section,
    .profile-image-upload-disabled-form {
        padding: .75rem;
    }
}

/* v5.9.61 - My Registrations mobile dock uses a compact summary row plus View dropdown. */
.my-registrations-page .mobile-action-dock-compact {
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.6rem;
    padding: 0.55rem 0.7rem;
    border-radius: 0.85rem;
}
.my-registrations-page .mobile-action-dock-compact .mobile-action-dock-summary {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.84rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.my-registrations-page .mobile-action-dock-select-wrap {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    width: auto;
}
.my-registrations-page .mobile-action-dock-view-label {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 700;
    color: #495057;
    white-space: nowrap;
}
.my-registrations-page .mobile-action-dock-view-select {
    width: auto;
    min-width: 8.75rem;
    max-width: 10.5rem;
    min-height: 38px;
    border-radius: 0.7rem;
    font-weight: 600;
}
@media (max-width: 991.98px) {
    .my-registrations-page .mobile-action-dock-compact {
        align-items: center;
    }
    .my-registrations-page .mobile-action-dock-compact .mobile-action-dock-actions,
    .my-registrations-page .mobile-action-dock-compact .mobile-action-dock-secondary {
        width: auto;
    }
}
@media (max-width: 420px) {
    .my-registrations-page .mobile-action-dock-compact {
        gap: 0.45rem;
        padding-inline: 0.55rem;
    }
    .my-registrations-page .mobile-action-dock-view-label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }
    .my-registrations-page .mobile-action-dock-view-select {
        min-width: 7.4rem;
        max-width: 8.5rem;
    }
}
.theme-dark .my-registrations-page .mobile-action-dock-view-label {
    color: #cbd5e1 !important;
}
.theme-dark .my-registrations-page .mobile-action-dock-view-select {
    background-color: #111827 !important;
    color: #f8fafc !important;
    border-color: rgba(147, 197, 253, 0.45) !important;
}

/* v5.9.61 - Friends page mobile compaction for requests, groups, and social stats. */
.friend-search-result-inner,
.friend-request-compact-row,
.friend-group-compact-summary,
.friend-compact-summary {
    min-width: 0;
}
.friend-compact-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    cursor: pointer;
    list-style: none;
    min-height: 2.25rem;
}
.friend-compact-summary::-webkit-details-marker {
    display: none;
}
.friend-compact-summary::after {
    content: "⌄";
    flex: 0 0 auto;
    color: var(--bs-secondary-color);
    font-weight: 700;
}
.friend-request-compact-row[open] .friend-compact-summary::after,
.friend-group-compact-details[open] .friend-compact-summary::after {
    content: "⌃";
}
.friend-compact-actions,
.friend-group-compact-body {
    border-top: 1px solid var(--bs-border-color);
}
.friend-compact-actions {
    padding-top: 0.55rem;
}
.friend-search-person,
.friend-request-compact-row .min-w-0,
.friend-group-compact-summary .text-truncate {
    min-width: 0;
}
.friend-inline-actions .btn,
.friend-compact-actions .btn,
.friend-request-sent-row .btn,
.friend-blocked-row .btn {
    white-space: nowrap;
}
.friend-group-compact-details {
    overflow: hidden;
    background: var(--bs-body-bg);
}
.friend-group-compact-summary {
    padding: 0.6rem 0.75rem;
}
.friend-group-add-member-form {
    min-width: min(100%, 18rem);
}
.social-stat-mobile-row-compact .social-stat-summary {
    min-height: 2.25rem;
    padding-top: 0.52rem;
    padding-bottom: 0.52rem;
}
.social-stat-mobile-row-compact .social-stat-summary > span:first-child {
    min-width: 0;
}
.social-stat-mobile-row-compact .social-stat-summary > .small {
    flex: 0 0 auto;
    white-space: nowrap;
}
@media (max-width: 575.98px) {
    .friend-search-result-inner {
        align-items: center !important;
        gap: 0.45rem !important;
    }
    .friend-search-result-row {
        padding-top: 0.45rem;
        padding-bottom: 0.45rem;
    }
    .friend-search-person .small {
        line-height: 1.15;
    }
    .friend-inline-actions {
        flex-wrap: nowrap !important;
        gap: 0.35rem !important;
        overflow-x: auto;
        padding-bottom: 0.05rem;
        -webkit-overflow-scrolling: touch;
    }
    .friend-inline-actions .btn,
    .friend-inline-actions .badge,
    .friend-compact-actions .btn,
    .friend-request-sent-row .btn,
    .friend-blocked-row .btn {
        font-size: 0.78rem;
        min-height: 2rem;
        padding: 0.28rem 0.48rem;
    }
    .friend-request-compact-row {
        padding-top: 0.4rem !important;
        padding-bottom: 0.4rem !important;
    }
    .friend-compact-summary {
        min-height: 2rem;
    }
    .friend-request-sent-row,
    .friend-blocked-row {
        min-height: 2.35rem;
    }
    .friend-group-compact-summary {
        padding: 0.48rem 0.65rem;
        min-height: 2.1rem;
    }
    .friend-group-compact-body {
        padding: 0.65rem !important;
    }
    .friend-group-add-member-form,
    .friend-group-add-member-form select,
    .friend-group-add-member-form button {
        width: 100%;
        max-width: none !important;
    }
    .social-stat-mobile-stack {
        display: grid;
        gap: 0.35rem;
    }
    .social-stat-mobile-row-compact {
        margin-bottom: 0 !important;
    }
    .social-stat-mobile-row-compact .social-stat-summary {
        gap: 0.45rem;
    }
    .social-stat-mobile-row-compact .social-stat-mobile-details {
        padding: 0.55rem 0.65rem 0.65rem;
    }
    .friend-groups-card .card-body,
    .social-stats-card .card-body {
        padding: 0.8rem;
    }
}
[data-bs-theme="dark"] .friend-group-compact-details,
[data-bs-theme="dark"] .friend-request-compact-row {
    background: #111827;
    color: #f8fafc;
    border-color: #334155 !important;
}
[data-bs-theme="dark"] .friend-compact-actions,
[data-bs-theme="dark"] .friend-group-compact-body {
    border-color: #334155;
}
[data-bs-theme="dark"] .friend-request-compact-row .badge.text-bg-light,
[data-bs-theme="dark"] .friend-group-compact-summary .text-muted {
    color: #cbd5e1 !important;
}

/* v5.9.61 - Friend group social stats use full-width compact desktop rows while keeping mobile disclosure cards. */
.group-social-stats-desktop-grid > [class*="col-"] {
    width: 100%;
}
.group-social-stat-card-desktop {
    width: 100%;
}
.group-social-stat-desktop-line {
    display: grid;
    grid-template-columns: minmax(10rem, 0.8fr) minmax(18rem, 1.1fr) minmax(16rem, 1.1fr);
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}
.group-social-stat-desktop-name,
.group-social-stat-desktop-kpis,
.group-social-stat-desktop-games {
    min-width: 0;
}
.group-social-stat-desktop-kpis,
.group-social-stat-desktop-games {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
}
@media (max-width: 991.98px) {
    .group-social-stat-desktop-line {
        grid-template-columns: minmax(9rem, 0.8fr) minmax(12rem, 1fr);
    }
    .group-social-stat-desktop-games {
        grid-column: 1 / -1;
    }
}
[data-bs-theme="dark"] .group-social-stat-card-desktop {
    background: #111827;
    color: #f8fafc;
    border-color: #334155 !important;
}

/* v5.9.61 - Friends page desktop layout and scalable staff social-record filters. */
.friends-page-layout [data-find-friends-panel],
.friends-page-layout [data-friends-main-panels] {
    min-width: 0;
}
.staff-social-records-filter .form-label {
    font-size: 0.875rem;
    font-weight: 600;
}
.staff-social-records-table {
    max-height: 26rem;
    overflow: auto;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 0.75rem;
}
.staff-social-records-table table {
    margin-bottom: 0;
}
.staff-social-records-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--bs-body-bg);
}
[data-bs-theme="dark"] .staff-social-records-table {
    border-color: rgba(148, 163, 184, 0.35);
}

/* v5.9.61 - Private game edit/delete controls and BGG-only link guidance. */
.private-game-edit-details {
    min-width: 18rem;
}
.private-game-edit-details > summary {
    list-style: none;
}
.private-game-edit-details > summary::-webkit-details-marker {
    display: none;
}
.private-game-edit-form {
    min-width: min(34rem, 80vw);
    background: var(--bgnm-card-bg, rgba(255, 255, 255, 0.02));
}
@media (max-width: 767.98px) {
    .private-game-edit-details,
    .private-game-edit-form {
        min-width: 100%;
    }
}


/* v5.9.123 - Event address book creation panel. */
.event-address-book-panel {
  background: rgba(248, 249, 250, 0.82);
}
.theme-dark .event-address-book-panel,
[data-bs-theme="dark"] .event-address-book-panel,
body.dark-mode .event-address-book-panel {
  background: rgba(30, 41, 59, 0.92) !important;
  border-color: rgba(148, 163, 184, 0.35) !important;
}

/* v5.9.123 - Sponsor logos can display without a website URL. */
.homepage-sponsor-logo-link-static {
    cursor: default;
}
.sponsorship-logo-card-static {
    cursor: default;
}

/* v5.9.123 - Promotion scored-games progress display on homepage and Promotions page. */
.homepage-promo-score-progress,
.promotion-scored-games-progress {
    color: #dbeafe;
}
.homepage-promo-score-progress-value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.18);
    color: #eff6ff;
}
[data-bs-theme="light"] .homepage-promo-score-progress,
[data-bs-theme="light"] .promotion-scored-games-progress {
    color: #0f172a;
}
[data-bs-theme="light"] .homepage-promo-score-progress-value {
    background: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
}


/* v5.9.123 - Keep Diagnostics copy actions visible on the far right while the table scrolls horizontally. */
.diagnostics-copy-toolbar .diagnostics-copy-visible-btn {
    white-space: nowrap;
}
.diagnostics-copy-table .diagnostics-copy-action-col {
    position: sticky;
    right: 0;
    z-index: 2;
    min-width: 7.75rem;
    text-align: right;
    background: var(--bs-body-bg);
    box-shadow: -0.35rem 0 0.8rem rgba(15, 23, 42, 0.12);
}
.diagnostics-copy-table thead .diagnostics-copy-action-col {
    z-index: 3;
}
.theme-dark .diagnostics-copy-table .diagnostics-copy-action-col {
    background: #111827;
    box-shadow: -0.35rem 0 0.8rem rgba(0, 0, 0, 0.28);
}


/* v5.9.123 - Event form missing-field highlighting. */
.bgnm-missing-required,
.bgnm-event-form-has-missing-fields .bgnm-missing-required {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.18) !important;
}
.bgnm-required-feedback {
    display: block;
}


/* v5.9.123 - Compact Player History and My Registrations mobile-card hardening. */
.played-history-compact-card {
    display: grid;
    gap: 0.75rem;
}
.played-history-player-lines {
    display: grid;
    gap: 0.35rem;
}
.played-history-player-line {
    display: grid;
    grid-template-columns: minmax(110px, 1.4fr) repeat(4, minmax(58px, auto));
    gap: 0.5rem;
    align-items: center;
    font-size: 0.86rem;
    padding: 0.45rem 0.55rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 0.7rem;
    background: rgba(248, 249, 250, 0.85);
}
.played-history-player-name {
    font-weight: 700;
    min-width: 0;
    overflow-wrap: anywhere;
}
.played-history-older-summary {
    cursor: pointer;
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--bs-primary);
}
.played-history-older-summary::-webkit-details-marker {
    display: none;
}
.compact-registration-qr-actions,
.compact-registration-main-actions {
    align-items: stretch;
}
.compact-registration-qr-actions .mobile-utility-sheet {
    flex-basis: 100%;
}
[data-compact-my-registrations-cards] .compact-mobile-registration-card .compact-mobile-primary-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.theme-dark .my-registrations-page .mobile-data-card,
.theme-dark .my-registrations-page .compact-mobile-result-card,
.theme-dark .my-registrations-page .compact-mobile-registration-card,
.theme-dark .my-registrations-page .played-history-compact-card,
.theme-dark .my-registrations-page .played-history-player-line,
.theme-dark .my-registrations-page .mobile-field,
.theme-dark .my-registrations-page .mobile-utility-sheet,
.theme-dark .my-registrations-page .mobile-utility-sheet-body,
.theme-dark .my-registrations-page .inline-confirm-sheet-body,
.theme-dark .my-registrations-page .bg-light-subtle,
.theme-dark .my-registrations-page .border.rounded,
body.theme-dark .my-registrations-page .mobile-data-card,
body.theme-dark .my-registrations-page .compact-mobile-result-card,
body.theme-dark .my-registrations-page .compact-mobile-registration-card,
body.theme-dark .my-registrations-page .played-history-compact-card,
body.theme-dark .my-registrations-page .played-history-player-line,
body.theme-dark .my-registrations-page .mobile-field,
body.theme-dark .my-registrations-page .mobile-utility-sheet,
body.theme-dark .my-registrations-page .mobile-utility-sheet-body,
body.theme-dark .my-registrations-page .inline-confirm-sheet-body,
body.theme-dark .my-registrations-page .bg-light-subtle,
body.theme-dark .my-registrations-page .border.rounded {
    background-color: var(--bgnm-dark-surface-2) !important;
    color: var(--bgnm-dark-text) !important;
    border-color: var(--bgnm-dark-border) !important;
}
.theme-dark .my-registrations-page .mobile-card-title,
.theme-dark .my-registrations-page .mobile-card-title a,
.theme-dark .my-registrations-page .compact-mobile-card-title,
.theme-dark .my-registrations-page .compact-mobile-card-title a,
.theme-dark .my-registrations-page .mobile-field-value,
.theme-dark .my-registrations-page .compact-mobile-stat-value,
.theme-dark .my-registrations-page .played-history-player-name,
.theme-dark .my-registrations-page .fw-semibold,
body.theme-dark .my-registrations-page .mobile-card-title,
body.theme-dark .my-registrations-page .mobile-card-title a,
body.theme-dark .my-registrations-page .compact-mobile-card-title,
body.theme-dark .my-registrations-page .compact-mobile-card-title a,
body.theme-dark .my-registrations-page .mobile-field-value,
body.theme-dark .my-registrations-page .compact-mobile-stat-value,
body.theme-dark .my-registrations-page .played-history-player-name,
body.theme-dark .my-registrations-page .fw-semibold {
    color: var(--bgnm-dark-heading) !important;
}
.theme-dark .my-registrations-page .text-muted,
.theme-dark .my-registrations-page .small.text-muted,
.theme-dark .my-registrations-page .mobile-card-meta,
.theme-dark .my-registrations-page .mobile-card-meta-line,
.theme-dark .my-registrations-page .mobile-card-note,
.theme-dark .my-registrations-page .mobile-field-label,
.theme-dark .my-registrations-page .compact-mobile-stat-label,
body.theme-dark .my-registrations-page .text-muted,
body.theme-dark .my-registrations-page .small.text-muted,
body.theme-dark .my-registrations-page .mobile-card-meta,
body.theme-dark .my-registrations-page .mobile-card-meta-line,
body.theme-dark .my-registrations-page .mobile-card-note,
body.theme-dark .my-registrations-page .mobile-field-label,
body.theme-dark .my-registrations-page .compact-mobile-stat-label {
    color: var(--bgnm-dark-muted) !important;
}
.theme-dark .my-registrations-page .link-dark,
body.theme-dark .my-registrations-page .link-dark {
    color: var(--bgnm-dark-link) !important;
}
.theme-dark .my-registrations-page .mobile-qr-sheet img,
body.theme-dark .my-registrations-page .mobile-qr-sheet img {
    background-color: #ffffff !important;
}
@media (max-width: 575.98px) {
    .played-history-player-line:not(.played-history-player-line-compact-mobile) {
        grid-template-columns: 1fr 1fr;
    }
}


/* v5.9.123 - Phase 6 mobile QA hardening for operations, late invites, and game session cards. */
.late-player-workflow-summary,
.game-session-summary-card,
.correction-audit-status {
    overflow-wrap: anywhere;
}
.game-session-summary-table th,
.game-session-summary-table td {
    white-space: nowrap;
}
.theme-dark .late-player-workflow-summary,
.theme-dark .game-session-summary-card,
.theme-dark .correction-audit-status,
.theme-dark .game-session-summary-card .border,
body.theme-dark .late-player-workflow-summary,
body.theme-dark .game-session-summary-card,
body.theme-dark .correction-audit-status,
body.theme-dark .game-session-summary-card .border {
    background-color: var(--bgnm-dark-surface-2) !important;
    color: var(--bgnm-dark-text) !important;
    border-color: var(--bgnm-dark-border) !important;
}
.theme-dark .game-session-summary-card .text-muted,
.theme-dark .late-player-workflow-summary .text-muted,
body.theme-dark .game-session-summary-card .text-muted,
body.theme-dark .late-player-workflow-summary .text-muted {
    color: var(--bgnm-dark-muted) !important;
}
.theme-dark .game-session-summary-card .table,
body.theme-dark .game-session-summary-card .table {
    --bs-table-bg: var(--bgnm-dark-surface-2);
    --bs-table-color: var(--bgnm-dark-text);
    --bs-table-border-color: var(--bgnm-dark-border);
}
@media (max-width: 767.98px) {
    .admin-snapshot-groups .admin-snapshot-metric,
    .game-session-summary-card .border,
    .late-player-workflow-summary {
        border-radius: 0.85rem !important;
    }
    .game-session-summary-card .table-responsive {
        max-height: 360px;
    }
    .game-session-summary-table th,
    .game-session-summary-table td {
        font-size: 0.82rem;
        padding: 0.45rem;
    }
}


/* v5.9.123 - Payment policy and event discovery diagnostics hardening. */
.payment-policy-summary-card,
.event-discovery-diagnostics {
    overflow-wrap: anywhere;
}
.theme-dark .payment-policy-summary-card,
.theme-dark .payment-policy-summary-card .border,
.theme-dark .event-discovery-diagnostics,
body.theme-dark .payment-policy-summary-card,
body.theme-dark .payment-policy-summary-card .border,
body.theme-dark .event-discovery-diagnostics {
    background-color: var(--bgnm-dark-surface-2) !important;
    color: var(--bgnm-dark-text) !important;
    border-color: var(--bgnm-dark-border) !important;
}
.theme-dark .payment-policy-summary-card .text-muted,
.theme-dark .event-discovery-diagnostics .text-muted,
body.theme-dark .payment-policy-summary-card .text-muted,
body.theme-dark .event-discovery-diagnostics .text-muted {
    color: var(--bgnm-dark-muted) !important;
}
@media (max-width: 767.98px) {
    .payment-policy-summary-card .border,
    .event-discovery-diagnostics {
        border-radius: 0.85rem !important;
    }
    .event-discovery-diagnostics .badge,
    .payment-policy-summary-card .badge {
        white-space: normal;
        text-align: left;
    }
}


/* v5.9.123 - Responsive Notification Audit, larger header logo, compact mobile played-history rows, and safe correction/audit labels. */
.notification-audit-responsive {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
}
.notification-audit-table {
    table-layout: fixed;
    min-width: 1060px;
    width: 100%;
}
.notification-audit-table th,
.notification-audit-table td {
    vertical-align: top;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.notification-audit-col-created { width: 8rem; }
.notification-audit-col-correlation { width: 15rem; }
.notification-audit-col-recipient { width: 17rem; }
.notification-audit-col-role { width: 8rem; }
.notification-audit-col-template { width: 14rem; }
.notification-audit-col-status { width: 7rem; }
.notification-audit-col-event { width: 11rem; }
.notification-audit-col-message { width: 21rem; }
.notification-audit-message-text {
    max-width: 100%;
    white-space: normal;
}
.correction-audit-status .badge {
    white-space: normal;
    text-align: left;
}
.theme-dark .notification-audit-table,
body.theme-dark .notification-audit-table {
    --bs-table-bg: var(--bgnm-dark-surface-2);
    --bs-table-color: var(--bgnm-dark-text);
    --bs-table-border-color: var(--bgnm-dark-border);
}
.theme-dark .notification-audit-table .text-muted,
body.theme-dark .notification-audit-table .text-muted {
    color: var(--bgnm-dark-muted) !important;
}
@media (max-width: 767.98px) {
    .notification-audit-responsive {
        overflow-x: visible;
    }
    .notification-audit-table {
        min-width: 0;
        table-layout: auto;
    }
    .notification-audit-table thead {
        display: none;
    }
    .notification-audit-table,
    .notification-audit-table tbody,
    .notification-audit-table tr,
    .notification-audit-table td {
        display: block;
        width: 100%;
    }
    .notification-audit-table tr {
        border: 1px solid var(--bs-border-color);
        border-radius: 0.9rem;
        margin-bottom: 0.75rem;
        padding: 0.45rem;
        background: var(--bs-body-bg);
    }
    .notification-audit-table td {
        display: grid;
        grid-template-columns: minmax(6.5rem, 36%) minmax(0, 1fr);
        gap: 0.5rem;
        border-bottom: 1px solid var(--bs-border-color);
        padding: 0.5rem;
    }
    .notification-audit-table td:last-child {
        border-bottom: 0;
    }
    .notification-audit-table td::before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--bs-secondary-color);
    }
    .played-history-player-lines {
        gap: 0.2rem;
    }
    .played-history-player-line.played-history-player-line-compact-mobile {
        grid-template-columns: minmax(7.25rem, 1.4fr) minmax(3.25rem, auto) minmax(2.5rem, auto) minmax(2.5rem, auto) minmax(4.25rem, auto);
        gap: 0.35rem;
        padding: 0.3rem 0.45rem;
        border-radius: 0.45rem;
        font-size: 0.78rem;
        line-height: 1.2;
        align-items: center;
    }
    .played-history-player-line.played-history-player-line-compact-mobile > span {
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .played-history-player-line.played-history-player-line-compact-mobile .played-history-player-name {
        white-space: normal;
    }
    .theme-dark .notification-audit-table tr,
    body.theme-dark .notification-audit-table tr {
        background-color: var(--bgnm-dark-surface-2) !important;
        color: var(--bgnm-dark-text) !important;
        border-color: var(--bgnm-dark-border) !important;
    }
    .theme-dark .notification-audit-table td,
    body.theme-dark .notification-audit-table td {
        border-color: var(--bgnm-dark-border) !important;
    }
    .theme-dark .notification-audit-table td::before,
    body.theme-dark .notification-audit-table td::before {
        color: var(--bgnm-dark-muted) !important;
    }
}
@media (max-width: 420px) {
    .played-history-player-line.played-history-player-line-compact-mobile {
        grid-template-columns: minmax(6rem, 1fr) minmax(2.75rem, auto) minmax(2.25rem, auto) minmax(2rem, auto) minmax(3.75rem, auto);
        font-size: 0.74rem;
        gap: 0.25rem;
    }
}


/* v5.9.123 - Played Game Results completed-action acknowledgements and Friend Group form guard. */
.table-results-completed-action {
    overflow-wrap: anywhere;
}
.theme-dark .table-results-completed-action,
body.theme-dark .table-results-completed-action {
    background-color: rgba(25, 135, 84, 0.16) !important;
    color: var(--bgnm-dark-text) !important;
    border-color: rgba(25, 135, 84, 0.45) !important;
}
.theme-dark .table-results-completed-action .text-muted,
body.theme-dark .table-results-completed-action .text-muted {
    color: var(--bgnm-dark-muted) !important;
}
@media (max-width: 767.98px) {
    .table-results-completed-action {
        border-radius: 0.85rem !important;
        padding: 0.75rem;
    }
}

/* v5.9.123 - Mobile header logo uses most of the current navbar height without changing the transparent PNG asset. */
@media (max-width: 420px) {
    .site-logo-nav {
        height: 44px;
        max-width: 66vw;
    }
}


/* v5.9.123 - Admin Snapshot single rollup element. */
.admin-snapshot-rollup {
    overflow: hidden;
}
.admin-snapshot-rollup-grid {
    display: grid;
    gap: 0.85rem;
}
.admin-snapshot-rollup-group {
    min-width: 0;
}
.admin-snapshot-rollup-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
    gap: 0.5rem;
}
#admin-snapshot-section .admin-snapshot-rollup .admin-snapshot-metric {
    min-height: 4.75rem;
}
@media (min-width: 1200px) {
    .admin-snapshot-rollup-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        align-items: start;
    }
    .admin-snapshot-rollup-metrics {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 575.98px) {
    .admin-snapshot-rollup {
        padding: 0.75rem !important;
    }
    .admin-snapshot-rollup-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.45rem;
    }
}
.theme-dark #admin-snapshot-section .admin-snapshot-rollup,
body.theme-dark #admin-snapshot-section .admin-snapshot-rollup {
    background-color: var(--bgnm-dark-surface-2) !important;
    border-color: var(--bgnm-dark-border) !important;
}
