* {
    box-sizing: border-box;
}

:root {
    --bg: #0b0f0d;

    --surface: #171d18;
    --surface-2: #202820;
    --surface-3: #263126;

    --text: #f3f4f2;
    --muted: #9aa69c;
    --border: #2d3a2f;

    --green: #7fb069;
    --green-soft: #263826;
    --green-dark: #132018;

    --nav-bg: #151b16;
    --nav-text: #c9d2ca;
    --nav-active-bg: #263826;
    --nav-active-text: #f3f4f2;

    --secondary-btn-bg: #202820;
    --secondary-btn-text: #f3f4f2;

    --forum-tag-bg: #263826;
    --forum-tag-text: #b8d8b0;

    --shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 16px;
    background: var(--bg);
    color: var(--text);
}

@media (min-width: 900px) {
    body {
        padding: 24px;
    }
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

.navbar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: var(--nav-bg);
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 20px;
    gap: 8px;
    flex-wrap: wrap;
}

.navbar a {
    display: inline-block;
    color: var(--nav-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 10px;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease;
}

.navbar a:hover {
    background: var(--surface-2);
    color: var(--text);
}

.navbar a.active {
    background: var(--nav-active-bg);
    color: var(--nav-active-text);
}

.hero {
    background: transparent;
    border-radius: 0;
    padding: 0;
    margin-bottom: 0;
    box-shadow: none;
}

.hero h1 {
    margin: 0 0 8px 0;
    font-size: 32px;
}

.hero p {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* --- Upcoming events (forside) --- */
.upcoming-events {
    position: relative;
    border-radius: 18px;
    margin-bottom: 16px;
    overflow: visible;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    min-height: 200px;
}

.upcoming-events__photo {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
    border-radius: 18px;
}

.upcoming-events__edge-fade {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    border-radius: 18px;
    box-shadow:
        inset 0 0 0 1px rgba(0, 0, 0, 0.12),
        inset 0 0 36px 22px var(--bg),
        inset 0 0 72px 40px rgba(11, 15, 13, 0.55);
}

.upcoming-events__inner {
    position: relative;
    z-index: 2;
    padding: 22px 24px 24px;
    background: linear-gradient(
        105deg,
        rgba(11, 15, 13, 0.94) 0%,
        rgba(11, 15, 13, 0.82) 38%,
        rgba(11, 15, 13, 0.62) 100%
    );
}

.upcoming-events--no-photo .upcoming-events__inner {
    background: var(--surface);
}

.upcoming-events__title {
    margin: 0 0 18px 0;
    font-size: 26px;
    letter-spacing: 0.02em;
}

.upcoming-events__title-link {
    color: inherit;
    text-decoration: none;
}

.upcoming-events__title-link:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* --- Forside-bokse med baggrundsbillede --- */
.home-panel {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.home-panel--hero {
    margin-bottom: 16px;
    min-height: 160px;
}

.home-panel--block {
    margin-bottom: 16px;
    min-height: 140px;
}

.home-panel--card {
    min-height: 200px;
    height: 100%;
}

.grid > .home-panel {
    margin-bottom: 0;
}

.home-panel__photo {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.home-panel__edge-fade {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    border-radius: 18px;
    box-shadow:
        inset 0 0 0 1px rgba(0, 0, 0, 0.12),
        inset 0 0 36px 22px var(--bg),
        inset 0 0 72px 40px rgba(11, 15, 13, 0.55);
}

.home-panel__inner {
    position: relative;
    z-index: 2;
    padding: 18px 20px;
    min-height: inherit;
    background: linear-gradient(
        105deg,
        rgba(11, 15, 13, 0.94) 0%,
        rgba(11, 15, 13, 0.82) 42%,
        rgba(11, 15, 13, 0.62) 100%
    );
}

.home-panel--no-photo .home-panel__inner {
    background: var(--surface);
}

.home-panel--has-photo .home-panel__content,
.home-panel--has-photo .hero {
    background: transparent;
    border: none;
    box-shadow: none;
}

.home-panel--hero.home-panel--has-photo .home-panel__inner {
    max-width: min(560px, 78%);
}

.home-panel--has-photo .home-panel__content h2,
.home-panel--has-photo .home-panel__content .meta-number {
    color: var(--text);
}

.home-panel--has-photo .round-highlights__label {
    color: rgba(255, 255, 255, 0.72);
}

.home-panel.forum-box {
    background: transparent;
    padding: 0;
    margin-bottom: 16px;
    box-shadow: none;
    border: none;
}

.admin-home-preview {
    height: 120px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    border: 1px solid var(--border);
}

.upcoming-events__layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.upcoming-events__calendar-col {
    display: flex;
    justify-content: center;
    padding-right: 20px;
    padding-left: 8px;
}

@media (min-width: 760px) {
    .upcoming-events__layout {
        flex-direction: row;
        align-items: stretch;
        gap: 28px;
    }

    .upcoming-events__list-col {
        flex: 0 0 34%;
        max-width: 340px;
    }

    .upcoming-events__calendar-col {
        flex: 1 1 auto;
        min-width: 280px;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        padding-right: clamp(16px, 4vw, 36px);
        padding-left: 0;
    }
}

.upcoming-events__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.upcoming-events__item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.upcoming-events--no-photo .upcoming-events__item {
    border-bottom-color: var(--border);
}

.upcoming-events__item:last-child {
    border-bottom: none;
}

.upcoming-events__item-date {
    font-size: 13px;
    color: var(--muted);
    font-weight: 600;
}

.upcoming-events__item-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
}

.upcoming-events__item--emphasis .upcoming-events__item-title {
    font-size: 18px;
    font-weight: 800;
}

.upcoming-events__item--empty {
    border: none;
    padding: 8px 0;
}

/* --- Begivenhedsside --- */
.events-page h1 {
    margin: 0 0 20px 0;
    font-size: 28px;
}

.events-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.event-banner {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    min-height: 220px;
}

.event-banner__photo {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.event-banner__edge-fade {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    box-shadow:
        inset 0 0 0 1px rgba(0, 0, 0, 0.12),
        inset 0 0 36px 22px var(--bg),
        inset 0 0 72px 40px rgba(11, 15, 13, 0.55);
}

.event-banner__inner {
    position: relative;
    z-index: 2;
    padding: 22px 24px;
    max-width: 420px;
    background: linear-gradient(
        105deg,
        rgba(11, 15, 13, 0.94) 0%,
        rgba(11, 15, 13, 0.82) 38%,
        rgba(11, 15, 13, 0.62) 100%
    );
}

.event-banner--no-photo .event-banner__inner {
    max-width: none;
    background: var(--surface);
}

.event-banner__date {
    display: block;
    font-size: 13px;
    color: var(--muted);
    font-weight: 600;
    margin-bottom: 6px;
}

.event-banner--has-photo .event-banner__date {
    color: rgba(255, 255, 255, 0.78);
}

.event-banner__title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.02em;
}

.event-banner--emphasis .event-banner__title {
    font-size: 26px;
    font-weight: 800;
}

.event-banner--link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.event-banner--link:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.event-banner--link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.upcoming-events__item-link {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-decoration: none;
    color: inherit;
}

.upcoming-events__item-link:hover .upcoming-events__item-title {
    text-decoration: underline;
}

.event-detail__back {
    margin: 0 0 14px 0;
}

.event-detail__back a {
    color: var(--muted);
    text-decoration: none;
}

.event-detail__back a:hover {
    color: var(--text);
}

.event-detail__hero {
    margin-bottom: 18px;
}

.event-detail__hero .event-banner__title {
    font-size: 28px;
}

.event-detail__badge {
    display: inline-block;
    margin: 10px 0 0 0;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.event-detail__badge--past {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.85);
}

.event-banner--no-photo .event-detail__badge--past {
    background: var(--border);
    color: var(--muted);
}

.event-detail__rsvp {
    margin-bottom: 18px;
}

.event-detail__rsvp h2 {
    margin: 0 0 14px 0;
    font-size: 18px;
}

.event-rsvp-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.event-rsvp-actions form {
    margin: 0;
}

.event-rsvp-btn {
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text);
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.event-rsvp-btn:hover {
    border-color: var(--accent);
}

.event-rsvp-btn--active {
    background: var(--accent);
    border-color: var(--accent);
    color: #0b0f0d;
}

.event-rsvp-btn--no.event-rsvp-btn--active {
    background: #3d4540;
    border-color: #5a6560;
    color: var(--text);
}

.event-detail__rsvp-hint {
    margin: 12px 0 0 0;
    font-size: 14px;
}

.event-detail__lists {
    display: grid;
    gap: 16px;
}

@media (min-width: 720px) {
    .event-detail__lists {
        grid-template-columns: repeat(3, 1fr);
    }
}

.event-detail__list-card h2 {
    margin: 0 0 12px 0;
    font-size: 17px;
}

.event-detail__count {
    font-weight: 600;
    color: var(--muted);
    font-size: 15px;
}

.leaderboard-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 16px;
    margin-bottom: 16px;
}

.leaderboard-header h1 {
    margin: 0;
}

.year-filter {
    display: flex;
    align-items: center;
    gap: 10px;
}

.year-filter label {
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
}

.year-filter select {
    min-width: 100px;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: 14px;
}

.leaderboard-extra {
    margin-top: 16px;
}

.round-highlights {
    margin-bottom: 16px;
}

.round-highlights h2 {
    margin-top: 0;
    margin-bottom: 6px;
}

.round-highlights__meta {
    margin: 0 0 14px 0;
}

.round-highlights__list {
    list-style: none;
    margin: 0 0 16px 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.round-highlights__item {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.round-highlights__item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.round-highlights__label {
    flex: 0 0 160px;
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.round-highlights__value {
    flex: 1 1 auto;
    font-weight: 600;
}

.qa-body {
    line-height: 1.6;
}

.course-stats {
    margin-top: 16px;
}

.course-stats-table th,
.course-stats-table td {
    font-size: 14px;
}

.me-dashboard__profile {
    margin-bottom: 16px;
}

.me-dashboard__grid {
    margin-bottom: 16px;
}

.me-dashboard__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 4px;
}

.me-stats-header {
    margin-bottom: 16px;
}

.me-stats-header h1 {
    margin: 0 0 6px 0;
}

.profile-back-link {
    margin: 0 0 12px 0;
    font-size: 14px;
}

.profile-back-link a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
}

.profile-back-link a:hover {
    color: var(--text);
    text-decoration: underline;
}

.stationary-cal {
    width: 100%;
    max-width: 340px;
    min-width: 260px;
    margin: 0;
    flex-shrink: 0;
}

.stationary-cal__nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.stationary-cal__title {
    flex: 1;
    text-align: center;
    font-weight: 800;
    font-size: 15px;
}

.stationary-cal__btn {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(0, 0, 0, 0.28);
    color: var(--text);
    cursor: pointer;
    font-size: 15px;
    line-height: 1;
    padding: 0;
}

.stationary-cal__btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

.upcoming-events--no-photo .stationary-cal__btn {
    background: var(--surface-2);
    border-color: var(--border);
}

/* Undgå globale table { min-width: 640px } / td-regler som klipper minikalenderen */
.stationary-cal__grid {
    width: 100%;
    min-width: 0 !important;
    max-width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    background: transparent !important;
    table-layout: fixed;
}

.stationary-cal__grid th {
    padding: 6px 1px !important;
    text-align: center;
    font-weight: 600;
    color: var(--muted);
    font-size: 11px;
    text-transform: lowercase;
    background: transparent !important;
    border: none !important;
    white-space: normal !important;
}

.stationary-cal__grid th,
.stationary-cal__grid td {
    text-align: center !important;
}

.stationary-cal__grid td {
    border: none !important;
    padding: 6px 1px !important;
    white-space: normal !important;
}

.stationary-cal__day {
    border-radius: 8px;
    font-weight: 600;
    color: var(--text);
}

.stationary-cal__day--empty {
    background: transparent;
}

.stationary-cal__day--event {
    background: rgba(127, 176, 105, 0.38);
    color: #f0fff0;
    box-shadow: inset 0 0 0 1px rgba(127, 176, 105, 0.55);
}

.stationary-cal__day--next {
    box-shadow: inset 0 0 0 2px rgba(200, 255, 200, 0.95);
    background: rgba(127, 176, 105, 0.55);
    font-weight: 800;
}

.field-checkbox label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 500;
}

.primary-btn,
.secondary-btn {
    display: inline-block;
    text-decoration: none;
    padding: 14px 18px;
    border-radius: 12px;
    font-weight: 700;
    border: none;
    cursor: pointer;
}

.primary-btn {
    background: var(--nav-active-bg);
    color: var(--nav-active-text);
}

.secondary-btn,
.button-link {
    background: var(--secondary-btn-bg);
    color: var(--secondary-btn-text);
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.card {
    background: var(--surface);
    border-radius: 16px;
    padding: 18px;
    box-shadow: var(--shadow);
}

.card h2 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 20px;
}

.meta-number {
    font-size: 34px;
    font-weight: 700;
    margin: 4px 0 0 0;
}

.muted {
    color: var(--muted);
    font-size: 14px;
}

.list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.list-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.list-row:last-child {
    border-bottom: none;
}

.list-row div:last-child {
    font-weight: 700;
}

.forum-box {
    background: var(--surface);
    border-radius: 16px;
    padding: 18px;
    box-shadow: var(--shadow);
    margin-bottom: 16px;
}

.forum-tag {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 10px;
    border-radius: 999px;
    background: var(--forum-tag-bg);
    font-size: 13px;
    font-weight: 600;
    color: var(--forum-tag-text);
}

.movement {
    font-size: 13px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 999px;
    display: inline-block;
}

.movement.up {
    background: #163323;
    color: #86efac;
}

.movement.down {
    background: #3b1618;
    color: #fca5a5;
}

.movement.same {
    background: #2b3240;
    color: #cbd5e1;
}

.movement.new {
    background: #172554;
    color: #93c5fd;
}

.value-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.player-link,
.round-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
}

.player-link:hover,
.round-link:hover {
    text-decoration: underline;
}

@media (max-width: 700px) {
    .grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 26px;
    }
}

.field {
    margin-bottom: 14px;
    min-width: 220px;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

input[type="date"],
input[type="number"],
select {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    font-size: 16px;
    background: var(--surface);
    color: var(--text);
    appearance: none;
    -webkit-appearance: none;
}
select option {
    background: var(--surface);
    color: var(--text);
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.checkbox-row input {
    width: 18px;
    height: 18px;
}

.player-card {
    background: var(--surface);
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
}

.player-name {
    font-weight: 700;
    margin-bottom: 12px;
    font-size: 17px;
}

.player-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.hint {
    color: var(--muted);
    font-size: 14px;
    margin-top: 10px;
}

button {
    width: 100%;
    padding: 14px;
    background: var(--nav-active-bg);
    color: var(--nav-active-text);
    border: none;
    border-radius: 12px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
}

@media (max-width: 480px) {
    .player-grid {
        grid-template-columns: 1fr;
    }
}

.profile {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 18px;
    align-items: center;
    margin-bottom: 16px;
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #111;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    font-weight: 700;
}

.avatar-img {
    object-fit: cover;
    border: 1px solid var(--border);
}

.avatar-upload-form {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 360px;
}

.avatar-upload-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.avatar-upload-form input[type="file"] {
    min-width: 0;
    flex: 1;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 6px 8px;
    color: var(--text);
    font-size: 13px;
}

.avatar-upload-form button {
    width: auto;
    padding: 8px 12px;
    font-size: 13px;
    border-radius: 8px;
    white-space: nowrap;
}

.avatar-help {
    font-size: 12px;
}

.players-list-name {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mini-avatar,
.mini-avatar-fallback {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    flex: 0 0 34px;
}

.mini-avatar {
    object-fit: cover;
    border: 1px solid var(--border);
}

.mini-avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
}

.profile h1 {
    margin: 0 0 8px 0;
}

.profile-handicap-line {
    margin: 10px 0 0 0;
    font-size: 15px;
}

.profile-edit-links {
    margin: 10px 0 0 0;
    font-size: 14px;
}

.profile-edit-links a {
    font-weight: 600;
}

.settings-card h2 {
    margin-top: 0;
}

.settings-form {
    margin-top: 16px;
    max-width: 420px;
}

.settings-form .field {
    margin-bottom: 14px;
}

.settings-form-error {
    color: #fca5a5;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.settings-form-success {
    color: #86efac;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.h2h-card__header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px 20px;
}

.h2h-card__header h2 {
    margin: 0 0 6px 0;
}

.h2h-card__intro {
    margin: 0;
    max-width: 42rem;
    font-size: 14px;
}

.h2h-year-filter {
    margin: 0;
    flex-shrink: 0;
}

table.h2h-table {
    min-width: 520px;
}

.h2h-record {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

.h2h-net {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}

.h2h-net--pos {
    color: #16a34a;
}

.h2h-net--neg {
    color: #dc2626;
}

.h2h-detail-btn {
    padding: 6px 12px;
    font-size: 13px;
}

.h2h-detail-hero .h2h-year-filter {
    margin-top: 14px;
}

.h2h-detail-players {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
}

.h2h-detail-player {
    display: flex;
    align-items: center;
    gap: 10px;
}

.h2h-detail-vs {
    color: var(--muted);
    font-size: 14px;
    text-transform: lowercase;
}

.h2h-detail-summary {
    margin: 14px 0 0 0;
    font-size: 15px;
}

.h2h-result {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}

.h2h-result--win {
    background: rgba(22, 163, 74, 0.15);
    color: #16a34a;
}

.h2h-result--loss {
    background: rgba(220, 38, 38, 0.12);
    color: #dc2626;
}

.h2h-result--draw {
    background: rgba(100, 116, 139, 0.15);
    color: var(--muted);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.stat-box {
    background: var(--surface);
    border-radius: 16px;
    padding: 18px;
    box-shadow: var(--shadow);
}

.stat-label {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
}

.charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.chart-card {
    background: var(--surface);
    border-radius: 16px;
    padding: 22px;
    box-shadow: var(--shadow);
    margin-top: 10px;
}

.chart-card h2 {
    margin-top: 0;
    margin-bottom: 8px;
}

.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    background: var(--surface);
}


th, td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    white-space: nowrap;
}

th {
    background: var(--surface-2);
}

canvas {
    width: 100%;
    max-width: 100%;
}

.leaderboard-chart-layout {
    display: flex;
    align-items: stretch;
    gap: 20px;
    margin-top: 12px;
}

.leaderboard-chart-wrap {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    height: 520px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.leaderboard-chart-hint {
    display: none;
    margin: 0;
    font-size: 13px;
}

.leaderboard-chart-scroll {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-gutter: stable;
}

.leaderboard-chart-inner {
    height: 100%;
    min-width: 100%;
}

.leaderboard-chart-scroll canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.leaderboard-html-legend {
    flex: 0 0 168px;
    max-width: 168px;
    padding-top: 8px;
}

.leaderboard-html-legend__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.leaderboard-html-legend__item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.3;
    user-select: none;
}

.leaderboard-html-legend__item.is-hidden {
    opacity: 0.45;
}

.leaderboard-html-legend__item.is-hidden .leaderboard-html-legend__label {
    text-decoration: line-through;
}

.leaderboard-html-legend__swatch {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex: 0 0 14px;
}

.leaderboard-html-legend__label {
    color: var(--text);
}

.leaderboard-progress-card {
    overflow: visible;
}

@media (max-width: 900px) {
    .leaderboard-chart-layout {
        flex-direction: column;
    }

    .leaderboard-chart-wrap {
        height: 420px;
    }

    .leaderboard-chart-hint {
        display: block;
    }

    .leaderboard-html-legend {
        flex: 1 1 auto;
        max-width: none;
        padding-top: 0;
    }

    .leaderboard-html-legend__list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px 14px;
    }

    .leaderboard-html-legend__item {
        font-size: 12px;
    }
}

@media (max-width: 600px) {
    .leaderboard-chart-wrap {
        height: 360px;
    }

    .leaderboard-chart-scroll {
        border-radius: 12px;
        background: var(--surface-2);
        padding-bottom: 4px;
    }
}

@media (max-width: 900px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

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

@media (max-width: 700px) {
    .profile {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .avatar {
        margin: 0 auto;
    }
}

@media (max-width: 520px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

.meta {
    line-height: 1.7;
}

.button-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.button-link {
    display: inline-block;
    text-decoration: none;
    background: var(--secondary-btn-bg);
    color: var(--secondary-btn-text);
    padding: 12px 16px;
    border-radius: 12px;
    font-weight: 700;
}

.danger-btn {
    width: auto;
    padding: 12px 16px;
    background: #7f1d1d;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
}

.sort-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: end;
}

table.stats-table {
    min-width: 720px;
}

th.th-sortable {
    vertical-align: bottom;
}

.th-sort-inner {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.th-sort-arrows {
    display: inline-flex;
    flex-direction: column;
    line-height: 1;
    gap: 1px;
}

.sort-arrow {
    display: block;
    font-size: 10px;
    text-decoration: none;
    color: var(--muted);
    padding: 1px 2px;
    border-radius: 4px;
    line-height: 1;
}

.sort-arrow:hover {
    color: var(--text);
    background: var(--surface);
}

.sort-arrow.is-active {
    color: var(--text);
    font-weight: 800;
}


.change {
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 999px;
    display: inline-block;
    min-width: 54px;
    text-align: center;
}

.change.up {
    background: #163323;
    color: #86efac;
}

.change.down {
    background: #3b1618;
    color: #fca5a5;
}

.change.same {
    background: #2b3240;
    color: #cbd5e1;
}

.page-wide {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}


.container-wide {
    max-width: 1400px;
    margin: 0 auto;
}

.container-wide > .card {
    margin-bottom: 16px;
}

.card + .card {
    margin-top: 16px;
}

.grid .card + .card {
    margin-top: 0;
}

.card,
.forum-box,
.stat-box,
.chart-card,
.player-card {
    background: var(--surface);
    border: 1px solid var(--border);
}

.hero:not(.home-panel__content) {
    background: var(--surface);
    border: 1px solid var(--border);
}

textarea,
input[type="text"] {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    font-size: 16px;
    background: var(--surface);
    color: var(--text);
}

.forum-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}

.thread-title {
    display: block;
    color: var(--text);
    text-decoration: none;
    font-weight: 800;
    font-size: 18px;
    margin-bottom: 8px;
}

.thread-title:hover {
    text-decoration: underline;
}

.forum-thread-card--unread {
    border-color: rgba(34, 197, 94, 0.55);
}

.forum-thread-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.thread-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    background: var(--surface-2);
    color: var(--muted);
    vertical-align: middle;
}

.thread-badge--new {
    background: rgba(34, 197, 94, 0.22);
    color: #86efac;
}

.forum-post-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.forum-quote {
    margin-bottom: 10px;
    padding: 10px 12px;
    border-left: 3px solid var(--accent);
    background: var(--surface-2);
    border-radius: 8px;
    font-size: 14px;
    color: var(--muted);
}

.forum-quote strong {
    color: var(--text);
    margin-right: 6px;
}

.forum-post-body {
    line-height: 1.6;
    white-space: pre-wrap;
}

.forum-post-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.forum-like-btn--active {
    border-color: rgba(239, 68, 68, 0.55);
}

.forum-reply-preview {
    margin-bottom: 12px;
}

.app-shell {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.topbar {
    position: sticky;
    top: 12px;
    z-index: 20;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 16px;
    margin-bottom: 16px;
    background: var(--nav-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
}

.topbar-left {
    min-width: 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--text);
}

.brand img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
}

.topnav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.topnav a {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    color: var(--nav-text);
    font-size: 14px;
    font-weight: 700;
    padding: 10px 16px;
    border-radius: 10px;
    transition: background 0.2s ease, color 0.2s ease;
}

.topnav a:hover {
    background: var(--surface-2);
    color: var(--text);
}

.topnav a.active {
    background: var(--nav-active-bg);
    color: var(--nav-active-text);
}

.topnav-icon {
    font-size: 15px;
    line-height: 1;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-action-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--text);
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 9px 12px;
    font-weight: 700;
    font-size: 14px;
}

.top-action-link:hover {
    background: var(--surface-3);
}

.sidebar-toggle {
    display: none;
    width: auto;
    padding: 9px 12px;
    background: var(--surface-2);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
}

.layout-shell {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.sidebar {
    position: sticky;
    top: 100px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 14px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--nav-text);
    font-weight: 600;
    padding: 10px 12px;
    border-radius: 10px;
    transition: background 0.2s ease, color 0.2s ease;
}

.notif-badge {
    margin-left: auto;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
}

.topnav-messages {
    position: relative;
}

.topnav .notif-badge.topnav-badge {
    margin-left: 6px;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    font-size: 11px;
    padding: 0 5px;
}

.messages-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.messages-header h1 {
    margin: 0;
}

.messages-back {
    margin: 0 0 12px;
}

.messages-inbox-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.messages-inbox-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
}

.messages-inbox-row:last-child {
    border-bottom: none;
}

.messages-inbox-row:hover {
    background: var(--surface-2);
    margin: 0 -12px;
    padding-left: 12px;
    padding-right: 12px;
    border-radius: 8px;
}

.messages-inbox-row--unread strong {
    font-weight: 800;
}

.messages-inbox-main {
    min-width: 0;
    flex: 1;
}

.messages-inbox-preview {
    margin-top: 4px;
    font-size: 14px;
}

.messages-inbox-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}

.messages-inbox-time {
    font-size: 13px;
    white-space: nowrap;
}

.messages-new-section {
    margin-bottom: 16px;
}

.messages-new-section h2 {
    margin-top: 0;
}

.messages-direct-form,
.messages-group-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

.messages-direct-form select,
.messages-group-form input[type="text"] {
    max-width: 420px;
}

.messages-member-picker {
    border: none;
    margin: 0;
    padding: 0;
}

.messages-member-picker legend {
    font-weight: 600;
    margin-bottom: 8px;
}

.messages-member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
}

.messages-member-option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.messages-thread-header h1 {
    margin-bottom: 4px;
}

.messages-thread-members {
    margin: 0 0 16px;
    font-size: 14px;
}

.messages-thread-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.messages-thread-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: min(60vh, 520px);
    overflow-y: auto;
    padding-right: 4px;
}

.messages-thread-empty {
    margin: 0;
}

.message-bubble {
    max-width: min(85%, 520px);
    padding: 10px 14px;
    border-radius: 12px;
    background: var(--surface-2);
}

.message-bubble--mine {
    align-self: flex-end;
    background: var(--nav-active-bg);
    color: var(--nav-active-text);
}

.message-bubble--mine .message-bubble-time {
    color: inherit;
    opacity: 0.75;
}

.message-bubble--theirs {
    align-self: flex-start;
}

.message-bubble-author {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 13px;
}

.message-bubble-body {
    white-space: pre-wrap;
    word-break: break-word;
}

.message-bubble-time {
    display: block;
    margin-top: 6px;
    font-size: 12px;
}

.messages-compose {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid var(--border);
    padding-top: 16px;
}

.messages-compose textarea {
    width: 100%;
    resize: vertical;
    min-height: 72px;
}

.players-list-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.form-error {
    color: #b91c1c;
    margin: 0 0 12px;
}

.sidebar-link:hover {
    background: var(--surface-2);
    color: var(--text);
}

.sidebar-link.active {
    background: var(--nav-active-bg);
    color: var(--nav-active-text);
}

.sidebar-icon {
    font-size: 15px;
    line-height: 1;
}

.online-card {
    border-top: 1px solid var(--border);
    padding-top: 12px;
}

.sidebar-updates-card {
    margin-top: 4px;
}

.sidebar-update-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.sidebar-update-form textarea {
    width: 100%;
    min-height: 72px;
    resize: vertical;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
    font-family: inherit;
    background: var(--surface-2);
    color: var(--text);
    line-height: 1.45;
}

.sidebar-update-form textarea:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
}

.sidebar-update-btn {
    align-self: flex-start;
    border: none;
    border-radius: 10px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    background: var(--accent);
    color: #0b0f0d;
}

.sidebar-update-btn:hover {
    filter: brightness(1.05);
}

.sidebar-updates-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 280px;
    overflow-y: auto;
}

.sidebar-update-item {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 12px;
}

.sidebar-update-body {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
}

.sidebar-update-meta {
    margin: 6px 0 0 0;
    font-size: 12px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.online-card h3 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.online-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.online-list li {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 14px;
}

.admin-pending-card {
    border-top: 1px solid var(--border);
    padding-top: 12px;
}

.admin-pending-card h3 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.admin-pending-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-pending-form {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-pending-form--page {
    margin-top: 12px;
    max-width: 28rem;
}

.admin-pending-name {
    margin: 0;
    font-weight: 600;
    font-size: 14px;
}

.admin-pending-meta {
    margin: 0;
    font-size: 12px;
}

.admin-pending-label {
    font-size: 12px;
    color: var(--muted);
}

.admin-pending-select {
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: inherit;
    font-size: 14px;
}

.admin-pending-btn {
    padding: 8px 12px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    cursor: pointer;
    background: var(--accent);
    color: var(--accent-contrast, #0b0e14);
}

.admin-pending-footer {
    margin: 12px 0 0 0;
    font-size: 13px;
}

.admin-pending-footer a {
    color: var(--accent);
}

.admin-section-title {
    margin: 28px 0 12px 0;
    font-size: 20px;
}

.admin-section-hint {
    margin: 0 0 14px 0;
    font-size: 14px;
}

.admin-reset-notice {
    margin-bottom: 18px;
    border-color: var(--accent);
}

.admin-reset-notice h2 {
    margin: 0 0 10px 0;
    font-size: 18px;
}

.admin-reset-notice__password {
    margin: 0 0 10px 0;
    padding: 12px 14px;
    border-radius: 10px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    font-family: ui-monospace, Consolas, monospace;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.admin-reset-error {
    margin-bottom: 18px;
    border-color: #b45309;
}

.admin-reset-error p {
    margin: 0;
    color: #fbbf24;
}

.admin-user-card__name {
    margin: 0 0 4px 0;
}

.admin-user-card__meta {
    margin: 0 0 12px 0;
    font-size: 13px;
}

.admin-reset-details {
    margin-top: 14px;
    font-size: 14px;
}

.admin-reset-details summary {
    cursor: pointer;
    color: var(--accent);
    font-weight: 600;
}

.admin-reset-form {
    margin-top: 12px;
    max-width: 28rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-reset-form .field {
    margin: 0;
}

.admin-reset-input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: inherit;
    font-size: 14px;
}

.admin-reset-generate {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
}

.main-content {
    min-width: 0;
}

.main-content .container,
.main-content .container-wide,
.main-content .page-wide {
    margin: 0;
    max-width: none;
}

@media (max-width: 920px) {
    .layout-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: fixed;
        top: 74px;
        left: 12px;
        right: 12px;
        z-index: 25;
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.22s ease, opacity 0.22s ease;
    }

    .sidebar.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .sidebar-toggle {
        display: inline-flex;
    }
}

@media (max-width: 760px) {
    .topbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: none;
        margin: 0 0 0 0;
        padding: 8px 10px;
        padding-top: calc(8px + env(safe-area-inset-top, 0px));
        flex-wrap: nowrap;
        align-items: center;
        gap: 8px;
        border-radius: 0;
        border-top: none;
        border-left: none;
        border-right: none;
        z-index: 40;
        box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
    }

    .layout-shell {
        padding-top: var(--mobile-topbar-height, 4.5rem);
    }

    .topbar-left {
        order: 1;
        flex: 0 0 auto;
    }

    .topbar-actions {
        order: 3;
        margin-left: 0;
        flex: 0 0 auto;
    }

    .topnav {
        order: 2;
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
        justify-content: center;
        gap: 4px;
    }

    .topnav a {
        flex: 0 1 auto;
        min-width: 0;
        padding: 8px 10px;
        font-size: 0;
        gap: 0;
    }

    .topnav a > span:not(.topnav-icon):not(.notif-badge) {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .topnav-icon {
        font-size: 18px;
    }

    .topnav .notif-badge.topnav-badge {
        margin-left: 0;
        position: absolute;
        top: 2px;
        right: 2px;
        min-width: 16px;
        height: 16px;
        line-height: 16px;
        font-size: 10px;
    }

    .topnav-messages {
        position: relative;
    }

    .top-action-link {
        padding: 8px 10px;
        font-size: 13px;
    }

    .sidebar-toggle {
        padding: 8px 10px;
        font-size: 13px;
    }

    .brand img {
        width: 44px;
        height: 44px;
    }

    .sidebar {
        top: var(--mobile-topbar-height, 4.5rem);
        left: 0;
        right: 0;
        border-radius: 0;
        max-height: calc(100dvh - var(--mobile-topbar-height, 4.5rem));
        overflow-y: auto;
    }
}