:root {
    color-scheme: light;
    --bg: #f2f4f2;
    --surface: #ffffff;
    --text: #17201b;
    --muted: #66726b;
    --line: #dfe5df;
    --accent: #167f5f;
    --accent-dark: #0f5e46;
    --accent-soft: #dff2ea;
    --focus: #d88f22;
    --shadow: none;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.competition-create,
.competition-group-heading {
    display: flex;
    align-items: end;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.competition-create label,
.competition-group-heading label:first-of-type {
    flex: 1;
}

.competition-page-header .button-row,
.competition-overview-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.competition-group-tabs {
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 0.35rem;
    margin: 1rem 0 1.25rem;
    overflow-x: auto;
    padding: 0 0.25rem;
}

.competition-group-tab {
    align-items: center;
    border: 1px solid transparent;
    border-bottom: 0;
    border-radius: 10px 10px 0 0;
    color: var(--muted);
    display: inline-flex;
    flex: 0 0 auto;
    gap: 0.55rem;
    min-height: 44px;
    padding: 0.65rem 0.9rem;
}

.competition-group-tab small {
    background: var(--bg);
    border-radius: 999px;
    padding: 0.15rem 0.45rem;
}

.competition-group-tab:hover,
.competition-group-tab.is-active {
    background: var(--surface);
    border-color: var(--line);
    color: var(--text);
}

.competition-group-tab.is-active {
    box-shadow: 0 2px 0 var(--surface);
}

.competition-overview-card,
.competition-focused-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: clamp(1rem, 2.5vw, 1.5rem);
}

.competition-overview-header {
    align-items: flex-start;
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding-bottom: 1rem;
}

.competition-overview-header > div {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.competition-overview-header h2,
.competition-overview-section h3 {
    margin: 0;
}

.competition-overview-header .status-badge {
    background: var(--accent-soft);
    border-radius: 999px;
    color: var(--accent-dark);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.25rem 0.55rem;
}

.competition-capacity-summary {
    color: var(--muted);
    white-space: nowrap;
}

.competition-overview-section {
    border-bottom: 1px solid var(--line);
    padding: 1.25rem 0;
}

.competition-moment-list {
    display: grid;
    gap: 0.55rem;
    margin-top: 0.8rem;
}

.competition-moment {
    align-items: baseline;
    background: var(--bg);
    border-radius: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
    justify-content: space-between;
    padding: 0.75rem 0.9rem;
}

.competition-moment span {
    color: var(--muted);
}

.competition-overview-players {
    display: grid;
    gap: 0.55rem 1.5rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0.9rem 0 0;
    padding-left: 1.5rem;
}

.competition-overview-actions {
    justify-content: flex-end;
    padding-top: 1rem;
}

.competition-focused-panel > .section-header {
    margin-bottom: 1rem;
}

.competition-editor-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
}

.competition-editor-section {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1rem;
}

.competition-add-session {
    border-top: 1px solid var(--line);
    margin-top: 1rem;
    padding-top: 0.75rem;
}

.competition-add-session summary {
    color: var(--accent-dark);
    cursor: pointer;
    font-weight: 750;
}

.competition-attendance-form + .competition-attendance-form {
    border-top: 1px solid var(--line);
    margin-top: 1.25rem;
    padding-top: 1.25rem;
}

.competition-empty-state {
    margin-top: 1rem;
}

.competition-group-list {
    display: grid;
    gap: 1rem;
}

.competition-group-card,
.competition-availability-panel {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface, #fff);
    padding: 1rem;
}

.competition-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.25rem;
}

.competition-session-row,
.competition-member-heading,
.competition-attendance-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.competition-session-row span,
.competition-attendance-row > span:first-child {
    display: grid;
    gap: 0.2rem;
}

.competition-session-form,
.competition-attendance-admin,
.competition-members-form {
    margin-top: 1rem;
}

.competition-group-state-form {
    display: flex;
    justify-content: flex-end;
    margin: -0.35rem 0 1rem;
}

.competition-selected-members {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0.75rem 0;
}

.competition-selection-empty,
.competition-selection-hint {
    margin: 0.35rem 0;
}

.competition-selection-hint {
    font-size: 0.9rem;
}

.competition-member-chip {
    align-items: center;
    background: var(--accent-soft);
    border: 1px solid #add8c9;
    border-radius: 999px;
    color: var(--accent-dark);
    display: inline-flex;
    gap: 0.35rem;
    min-height: 34px;
    padding: 0.2rem 0.25rem 0.2rem 0.7rem;
}

.competition-member-chip button {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 50%;
    color: inherit;
    cursor: pointer;
    display: inline-flex;
    font-size: 1.25rem;
    height: 28px;
    justify-content: center;
    line-height: 1;
    width: 28px;
}

.competition-member-chip button:hover,
.competition-member-chip button:focus-visible {
    background: rgba(15, 94, 70, 0.12);
}

.competition-player-search {
    display: grid;
    gap: 0.35rem;
}

.competition-court-options,
.competition-player-options,
.competition-attendance-options {
    border: 0;
    display: grid;
    gap: 0.45rem;
    margin: 0.75rem 0;
    padding: 0;
}

.competition-player-options {
    max-height: 24rem;
    overflow: auto;
}

.competition-player-options .checkbox-line {
    display: grid;
    grid-template-columns: auto 1fr auto;
}

.competition-availability-panel {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.competition-attendance-row {
    border-top: 1px solid var(--line);
    padding-top: 0.75rem;
}

.competition-attendance-control {
    align-items: center;
    display: inline-flex;
    gap: 0.45rem;
    white-space: nowrap;
}

@media (max-width: 760px) {
    .competition-columns,
    .competition-editor-grid,
    .competition-overview-players {
        grid-template-columns: 1fr;
    }

    .competition-create,
    .competition-group-heading,
    .competition-attendance-row {
        align-items: stretch;
        flex-direction: column;
    }

    .competition-page-header .button-row,
    .competition-overview-actions {
        width: 100%;
    }

    .competition-page-header .button,
    .competition-overview-actions .button {
        flex: 1;
    }
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    background: var(--bg);
    color: var(--text);
}

a {
    color: inherit;
    text-decoration: none;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px clamp(18px, 5vw, 56px);
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
}

.page-shell {
    scroll-padding-top: 96px;
}

.brand {
    font-size: 1.05rem;
    font-weight: 800;
}

.brand-icon-link {
    display: inline-flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
}

.brand-icon-link img {
    display: block;
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-size: 0.95rem;
}

.account-menu {
    position: relative;
}

.account-menu summary {
    position: relative;
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 0 12px;
    color: var(--text);
    font-weight: 750;
    cursor: pointer;
    list-style: none;
}

.account-menu summary::-webkit-details-marker {
    display: none;
}

.account-menu summary::after {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
}

.account-menu[open] summary {
    border-color: #b8c8bd;
    background: #f8faf8;
}

.account-menu-panel {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    z-index: 40;
    display: grid;
    width: max-content;
    min-width: 100%;
    max-width: calc(100vw - 40px);
    overflow: hidden;
    border: 1px solid #d9e2dc;
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 16px 38px rgba(23, 32, 27, 0.13), 0 2px 8px rgba(23, 32, 27, 0.06);
}

.account-menu-panel a,
.account-menu-panel button {
    display: flex;
    width: 100%;
    min-height: 42px;
    align-items: center;
    border: 0;
    border-bottom: 1px solid var(--line);
    padding: 0 14px;
    background: transparent;
    color: var(--text);
    font: inherit;
    text-align: left;
    white-space: nowrap;
    cursor: pointer;
}

.account-menu-panel a {
    gap: 12px;
    justify-content: space-between;
}

.nav-count {
    display: inline-flex;
    min-width: 22px;
    min-height: 22px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0 7px;
    background: #176b42;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 780;
    line-height: 1;
}

.account-menu summary .nav-count {
    position: absolute;
    top: -9px;
    left: -9px;
    z-index: 2;
    min-width: 21px;
    min-height: 21px;
    border: 2px solid var(--surface);
    padding: 0 6px;
    box-shadow: 0 4px 10px rgba(23, 32, 27, 0.22);
}

.account-menu-panel form:last-child button,
.account-menu-panel a:last-child {
    border-bottom: 0;
}

.account-menu-panel a:hover,
.account-menu-panel button:hover {
    background: #f4f7f4;
}

.page-shell {
    width: min(1560px, calc(100% - 36px));
    margin: 0 auto;
    padding: clamp(28px, 5vw, 56px) 0;
}

.page-shell:has(.settings-page) {
    padding-top: 28px;
}

.hero {
    display: grid;
    min-height: 360px;
    align-items: center;
}

.home-brand {
    display: grid;
    justify-items: center;
    text-align: center;
}

.home-brand img {
    width: clamp(96px, 18vw, 150px);
    height: clamp(96px, 18vw, 150px);
    object-fit: contain;
    margin-bottom: 18px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--accent-dark);
    font-size: 0.88rem;
    font-weight: 800;
    text-transform: uppercase;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    max-width: none;
    margin-bottom: 14px;
    font-size: clamp(1.8rem, 3.2vw, 2.8rem);
    line-height: 1.08;
    font-weight: 820;
}

h2 {
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.intro {
    max-width: 680px;
    color: var(--muted);
    font-size: 1.18rem;
    line-height: 1.65;
}

.hero h1 {
    max-width: 760px;
    margin-bottom: 18px;
    font-size: clamp(2.3rem, 6vw, 5.2rem);
    line-height: 1;
    font-weight: 800;
    text-align: center;
}

.hero .intro {
    text-align: center;
}

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

.button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--accent);
    border-radius: 6px;
    padding: 0 18px;
    background: var(--accent);
    color: #ffffff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.button:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
}

.button:disabled,
input:disabled {
    cursor: not-allowed;
    opacity: 0.62;
}

.button-secondary {
    background: var(--surface);
    color: var(--accent-dark);
}

.button-secondary:hover {
    background: var(--accent-soft);
    color: var(--accent-dark);
}

.button-danger-subtle {
    border-color: #e3afa6;
    background: #fff8f6;
    color: #8f2d22;
}

.button-danger-subtle:hover {
    border-color: #c85f51;
    background: #fff0ed;
    color: #7a2118;
}

.button-small {
    min-height: 36px;
    padding: 0 12px;
    font-size: 0.9rem;
}

.pwa-install-banner {
    position: fixed;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    left: max(16px, env(safe-area-inset-left));
    z-index: 60;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 12px;
    max-width: 680px;
    margin: 0 auto;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(23, 32, 27, 0.2);
}

.push-required-banner {
    position: fixed;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    left: max(16px, env(safe-area-inset-left));
    z-index: 70;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    max-width: 680px;
    margin: 0 auto;
    border: 1px solid #b7791f;
    border-radius: 8px;
    padding: 14px;
    background: #fffaf0;
    box-shadow: 0 18px 42px rgba(23, 32, 27, 0.2);
}

.push-required-banner[hidden],
.push-required-card[hidden] {
    display: none;
}

.push-required-banner div {
    display: grid;
    gap: 2px;
}

.push-required-banner strong {
    color: var(--text);
}

.push-required-banner span {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.35;
}

.push-required-banner small {
    color: #8a5a13;
    font-size: 0.86rem;
    line-height: 1.35;
}

.push-required-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    max-width: 760px;
    margin: 0 auto 18px;
    border: 1px solid #b7791f;
    border-radius: 8px;
    padding: 18px;
    background: #fffaf0;
    box-shadow: 0 12px 28px rgba(23, 32, 27, 0.12);
}

.push-required-card div {
    display: grid;
    gap: 6px;
}

.push-required-card h2 {
    margin: 0;
    font-size: 1.08rem;
}

.push-required-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.45;
}

.push-required-card small {
    color: #8a5a13;
    font-size: 0.9rem;
    line-height: 1.35;
}

.push-prelogin-modal small {
    color: #8a5a13;
    font-size: 0.9rem;
    line-height: 1.35;
}

.pwa-install-banner[hidden] {
    display: none;
}

.pwa-install-banner div {
    display: grid;
    gap: 2px;
}

.pwa-install-banner strong {
    color: var(--text);
}

.pwa-install-banner span {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.35;
}

.pwa-install-close {
    width: 36px;
    height: 36px;
}

.home-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.home-action {
    display: grid;
    min-height: 112px;
    align-content: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 20px;
    background: var(--surface);
}

.home-action:hover {
    border-color: #b8c8bd;
    background: #f8faf8;
}

.home-action span {
    color: var(--text);
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    font-weight: 820;
}

.home-action small {
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.45;
}

.home-action-primary {
    border-color: #9dcbb8;
    background: #f5fbf8;
}

.app-install-page {
    display: grid;
    gap: 28px;
    color: #111827;
}

.app-install-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid #d9e0dc;
    padding-bottom: 22px;
}

.app-install-hero h1 {
    margin: 0 0 10px;
    max-width: 820px;
    font-size: clamp(2.25rem, 5vw, 4.2rem);
    line-height: 1.02;
}

.app-install-hero p:not(.eyebrow) {
    margin: 0;
    max-width: 760px;
    color: #52627a;
    font-size: 1.1rem;
    line-height: 1.55;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--accent-dark);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.app-install-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    align-items: start;
}

.app-install-card {
    display: grid;
    gap: 20px;
    border: 1px solid #d9e0dc;
    border-radius: 8px;
    padding: 22px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.app-install-card-header {
    display: grid;
    gap: 8px;
}

.app-install-card-header span {
    width: fit-content;
    border: 1px solid #b7d6c4;
    border-radius: 999px;
    padding: 5px 10px;
    color: #2f6d45;
    background: #f1f8f4;
    font-size: 0.8rem;
    font-weight: 900;
}

.app-install-card h2 {
    margin: 0;
    font-size: clamp(1.45rem, 3vw, 2rem);
    line-height: 1.12;
}

.app-install-card p {
    margin: 0;
    color: #52627a;
    line-height: 1.5;
}

.app-install-card .app-install-primary {
    border-left: 4px solid var(--accent);
    padding: 2px 0 2px 14px;
    color: #173d2f;
    font-size: 1.02rem;
    font-weight: 850;
}

.app-install-steps {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: install-step;
}

.app-install-steps li {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    color: #23362f;
    line-height: 1.45;
    counter-increment: install-step;
}

.app-install-steps li::before {
    content: counter(install-step);
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: var(--accent);
    font-size: 0.9rem;
    font-weight: 900;
}

.app-install-note {
    display: grid;
    gap: 5px;
    border: 1px solid #c8dcce;
    border-radius: 8px;
    padding: 14px;
    background: #f7fbf8;
}

.app-install-note strong {
    color: #173d2f;
}

.app-install-toggle-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid #d5ded8;
    border-radius: 8px;
    padding: 13px 14px;
    color: #27362f;
    background: #f9fbfa;
    font-weight: 800;
}

.app-install-toggle-preview strong {
    position: relative;
    width: 58px;
    height: 32px;
    flex: 0 0 58px;
    border-radius: 999px;
    background: #30c76a;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.app-install-toggle-preview strong::after {
    content: "";
    position: absolute;
    top: 3px;
    right: 3px;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

.app-install-video {
    overflow: hidden;
    border: 1px solid #d9e0dc;
    border-radius: 8px;
    background: #111827;
    aspect-ratio: 16 / 9;
}

.app-install-video iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.app-install-video-link {
    width: fit-content;
}

.club-post-page {
    display: flex;
    justify-content: center;
}

.club-post-shell {
    display: grid;
    width: min(920px, 100%);
    gap: 18px;
}

.club-post-article {
    display: grid;
    gap: 24px;
    border: 1px solid #d9e0dc;
    border-radius: 8px;
    padding: clamp(20px, 4vw, 34px);
    background: #ffffff;
    box-shadow: var(--shadow);
}

.club-post-header {
    display: grid;
    gap: 10px;
    text-align: center;
}

.club-post-header span {
    color: var(--accent-dark);
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.club-post-header h1 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.7rem);
    line-height: 1.05;
}

.club-post-image {
    display: flex;
    justify-content: center;
    margin: 0;
}

.club-post-image img {
    display: block;
    width: min(100%, 680px);
    max-height: 720px;
    border-radius: 8px;
    object-fit: contain;
}

.club-post-body {
    display: grid;
    gap: 14px;
    color: #27362f;
    font-size: 1.05rem;
    line-height: 1.65;
}

.club-post-body p,
.club-post-body ul {
    margin: 0;
}

.club-post-body ul {
    padding-left: 1.25rem;
}

.club-post-response-panel {
    display: grid;
    gap: 14px;
    border-top: 1px solid #d9e0dc;
    padding-top: 20px;
}

.club-post-response-panel h2 {
    margin: 0;
    font-size: 1.25rem;
}

.club-post-response-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button-selected {
    box-shadow: 0 0 0 3px rgba(22, 127, 95, 0.22);
}

.club-post-admin-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.6fr);
    gap: 24px;
    align-items: start;
    margin-top: 24px;
}

.club-post-admin-list,
.club-post-admin-editor,
.club-post-responses-panel {
    display: grid;
    gap: 16px;
}

.club-post-admin-list,
.club-post-responses-panel {
    border: 1px solid #d9e0dc;
    border-radius: 8px;
    padding: 18px;
    background: #ffffff;
}

.club-post-admin-list {
    position: sticky;
    top: 94px;
}

.club-post-admin-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.club-post-admin-list h2,
.club-post-responses-panel h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 850;
}

.club-post-admin-list-header > span {
    display: inline-flex;
    min-width: 30px;
    min-height: 30px;
    align-items: center;
    justify-content: center;
    border: 1px solid #cfe0d7;
    border-radius: 999px;
    color: var(--accent-dark);
    background: #f4faf7;
    font-size: 0.84rem;
    font-weight: 850;
}

.club-post-list-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px;
    background: #fbfcfb;
}

.club-post-list-item:hover,
.club-post-list-item.is-active {
    border-color: #a9cdbd;
    background: #f4faf7;
}

.club-post-list-item.is-active {
    box-shadow: inset 3px 0 0 var(--accent);
}

.club-post-list-link {
    display: grid;
    min-width: 0;
    gap: 10px;
    padding: 4px;
}

.club-post-list-title {
    color: var(--text);
    font-weight: 820;
    line-height: 1.25;
}

.club-post-list-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    color: #66726b;
    font-size: 0.82rem;
    font-weight: 700;
}

.club-post-list-meta > span:not(.club-post-status) {
    border: 1px solid #e1e8e3;
    border-radius: 999px;
    padding: 4px 8px;
    background: #ffffff;
}

.club-post-list-item form {
    margin: 0;
}

.club-post-list-item .delete-button {
    width: 40px;
    height: 38px;
}

.club-post-status {
    border: 1px solid #b7d6c4;
    border-radius: 999px;
    padding: 4px 8px;
    color: #2f6d45;
    background: #f1f8f4;
    font-weight: 850;
}

.club-post-status-draft {
    border-color: #d8c9a5;
    color: #7a5520;
    background: #fff8e8;
}

.club-post-status-closed {
    border-color: #d8dde4;
    color: #586474;
    background: #f5f7f9;
}

.club-post-admin-form {
    display: grid;
    gap: 18px;
}

.club-post-form-section {
    display: grid;
    gap: 18px;
    border: 1px solid #d9e0dc;
    border-radius: 8px;
    padding: 22px;
    background: #ffffff;
}

.club-post-section-header {
    display: grid;
    gap: 8px;
    border-bottom: 1px solid #edf1ee;
    padding-bottom: 16px;
}

.club-post-form-section h2 {
    margin: 0;
    font-size: 1.28rem;
    font-weight: 850;
}

.club-post-form-section p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.club-post-form-section label {
    gap: 9px;
    font-size: 0.94rem;
    font-weight: 800;
}

.club-post-form-section .form-control {
    border-color: #ccd6cf;
    border-radius: 6px;
    background: #fbfcfb;
}

.club-post-form-section .form-control:focus {
    border-color: #98baa9;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(22, 127, 95, 0.08);
}

.club-post-form-section textarea.form-control {
    height: auto;
    min-height: 108px;
    padding: 11px 12px;
    line-height: 1.5;
    resize: vertical;
}

.club-post-form-section .club-post-body-field {
    min-height: 260px;
}

.form-section-kicker {
    width: fit-content;
    border: 1px solid #b7d6c4;
    border-radius: 999px;
    padding: 5px 10px;
    color: #2f6d45;
    background: #f1f8f4;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.club-post-upload-field {
    border: 1px dashed #bfd2c7;
    border-radius: 8px;
    padding: 16px;
    background: #f8fbf9;
}

.club-post-upload-field input[type="file"] {
    width: 100%;
    color: #52627a;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 650;
}

.club-post-upload-field input[type="file"]::file-selector-button {
    min-height: 36px;
    margin-right: 12px;
    border: 1px solid var(--accent);
    border-radius: 6px;
    padding: 0 12px;
    color: var(--accent-dark);
    background: #ffffff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.club-post-upload-field input[type="file"]::file-selector-button:hover {
    background: var(--accent-soft);
}

.club-post-admin-image-preview {
    display: flex;
    justify-content: center;
    margin: 0;
    border: 1px solid #e0e7e2;
    border-radius: 8px;
    padding: 14px;
    background: #fbfcfb;
}

.club-post-admin-image-preview img {
    display: block;
    max-width: min(100%, 420px);
    max-height: 360px;
    border-radius: 8px;
    object-fit: contain;
}

.club-post-toggle {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    border: 1px solid #dce5df;
    border-radius: 8px;
    padding: 13px 14px;
    background: #fbfcfb;
    cursor: pointer;
}

.club-post-toggle input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.club-post-toggle > span {
    position: relative;
    width: 42px;
    height: 24px;
    border: 1px solid #b9c7bf;
    border-radius: 999px;
    background: #e8eeeb;
}

.club-post-toggle > span::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(17, 24, 39, 0.18);
    transition: transform 0.16s ease;
}

.club-post-toggle input:checked + span {
    border-color: var(--accent);
    background: var(--accent);
}

.club-post-toggle input:checked + span::after {
    transform: translateX(18px);
}

.club-post-toggle input:focus-visible + span {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
}

.club-post-toggle strong {
    font-size: 0.95rem;
    font-weight: 800;
}

.club-post-admin-page .settings-save-bar .button-secondary {
    border-color: var(--accent);
    background: #ffffff;
    color: var(--accent-dark);
}

.club-post-admin-page .settings-save-bar {
    flex-wrap: wrap;
}

.club-post-admin-page .settings-save-bar .button-secondary:hover {
    background: var(--accent-soft);
    color: var(--accent-dark);
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.summary-grid article,
.panel,
.wide-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.summary-grid article {
    padding: 22px;
}

.summary-grid p,
.muted {
    color: var(--muted);
    line-height: 1.55;
}

.panel {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: clamp(22px, 5vw, 34px);
}

.login-brand {
    display: grid;
    justify-items: center;
    gap: 12px;
    margin: 0 auto 24px;
    text-align: center;
}

.login-brand img {
    display: block;
    width: clamp(72px, 22vw, 96px);
    height: clamp(72px, 22vw, 96px);
    object-fit: contain;
}

.login-brand p {
    margin: 0;
    color: var(--text);
    font-size: clamp(2rem, 8vw, 2.45rem);
    font-weight: 820;
    line-height: 1.05;
    white-space: nowrap;
}

.register-other-section {
    display: grid;
    gap: 14px;
    margin-top: 6px;
    border-top: 1px solid var(--line);
    padding-top: 18px;
}

.register-other-toggle {
    align-items: flex-start;
}

.register-other-fields {
    display: grid;
    gap: 16px;
    border: 1px solid #d9e0dc;
    border-radius: 8px;
    padding: 16px;
    background: #fbfdfc;
}

.register-other-fields[hidden],
.register-other-phone-fields[hidden] {
    display: none;
}

.register-other-fields h2 {
    margin: 0;
    color: var(--text);
    font-size: 1.1rem;
}

.register-phone-choice {
    display: grid;
    gap: 10px;
    margin: 0;
    border: 0;
    padding: 0;
}

.register-phone-choice legend {
    margin-bottom: 2px;
    padding: 0;
    color: var(--text);
    font-weight: 760;
}

.register-other-phone-fields {
    display: grid;
    gap: 16px;
}

.register-panel {
    max-width: 760px;
}

.register-section {
    display: grid;
    gap: 16px;
    border-top: 1px solid var(--line);
    padding-top: 20px;
}

.register-section:first-child {
    border-top: 0;
    padding-top: 0;
}

.register-section h2,
.register-player-card h3 {
    margin: 0;
    color: var(--text);
}

.register-section h2 {
    font-size: 1.15rem;
}

.register-section-heading {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.register-section-heading p {
    margin: 4px 0 0;
}

.register-player-list {
    display: grid;
    gap: 14px;
}

.register-player-card {
    display: grid;
    gap: 16px;
    border: 1px solid #d9e0dc;
    border-radius: 8px;
    padding: 16px;
    background: #fbfdfc;
}

.register-player-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.register-player-card h3 {
    font-size: 1rem;
}

.register-remove-player[hidden],
.register-other-phone-fields[hidden] {
    display: none;
}

.register-add-player {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.register-add-player span {
    font-size: 1.2rem;
    line-height: 1;
}

.register-summary {
    display: grid;
    gap: 4px;
    border: 1px solid #c7ded5;
    border-radius: 8px;
    padding: 14px 16px;
    background: #f4faf7;
}

.register-summary strong {
    color: var(--text);
}

.register-summary span {
    color: var(--muted);
    line-height: 1.45;
}

.wide-panel {
    width: 100%;
    padding: clamp(22px, 4vw, 34px);
}

.profile-panel {
    padding: clamp(24px, 3vw, 34px);
}

.profile-panel .section-header {
    margin-bottom: 18px;
    padding-bottom: 18px;
}

.profile-panel h1 {
    font-size: clamp(2rem, 3vw, 2.9rem);
}

.profile-person-name {
    margin: 0;
    color: var(--text);
    font-size: 1.08rem;
    font-weight: 760;
}

.section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 20px;
}

.section-header h1 {
    margin-bottom: 10px;
}

.meta-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.meta-strip span {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 560;
}

.meta-strip span + span::before {
    content: "/";
    margin-right: 8px;
    color: #a2aaa4;
}

.form {
    display: grid;
    gap: 18px;
    margin-top: 24px;
}

label {
    display: grid;
    gap: 8px;
    color: var(--text);
    font-weight: 750;
}

.check-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 650;
}

.check-row input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.check-row small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 500;
    line-height: 1.35;
}

.checkbox-line {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    font-weight: 650;
    line-height: 1.45;
}

.checkbox-line input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--accent);
}

.checkbox-line.is-muted {
    opacity: 0.55;
}

.form-control {
    width: 100%;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0 12px;
    background: #ffffff;
    color: var(--text);
    font: inherit;
}

textarea.form-control {
    height: auto;
    min-height: 116px;
    padding: 10px 12px;
    line-height: 1.45;
    resize: vertical;
}

.form-control:disabled {
    cursor: not-allowed;
    opacity: 0.62;
}

select.form-control {
    padding: 0 42px 0 12px;
    line-height: 44px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--muted) 50%),
        linear-gradient(135deg, var(--muted) 50%, transparent 50%);
    background-position:
        calc(100% - 20px) 50%,
        calc(100% - 14px) 50%;
    background-repeat: no-repeat;
    background-size:
        6px 6px,
        6px 6px;
}

.phone-field {
    display: grid;
    grid-template-columns: minmax(168px, 0.55fr) minmax(0, 1fr);
    gap: 10px;
}

.country-code {
    font-size: 0.95rem;
}

.form-control:focus,
.button:focus-visible,
a:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
}

.field-error {
    color: #a33a2d;
    font-size: 0.9rem;
    font-weight: 700;
}

.notice {
    margin: 18px 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px 16px;
    line-height: 1.5;
}

.toast-stack {
    position: fixed;
    top: 84px;
    left: 50%;
    z-index: 20;
    display: grid;
    gap: 10px;
    width: min(420px, calc(100vw - 32px));
    transform: translateX(-50%);
    transition: opacity 180ms ease, transform 180ms ease;
}

.toast-stack .notice {
    margin: 0;
    box-shadow: 0 10px 26px rgba(23, 32, 27, 0.12);
}

.notice-dismissible {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.toast-close {
    display: inline-flex;
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border: 1px solid #9fd4bd;
    border-radius: 6px;
    background: #f5fbf8;
    color: #103f30;
    font: inherit;
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
}

.toast-close:hover {
    border-color: var(--accent);
    background: #ffffff;
}

.toast-stack.is-fading {
    opacity: 0;
    transform: translate(-50%, -6px);
}

.notice p {
    margin: 8px 0 0;
}

.notice-success {
    border-color: #9fd4bd;
    background: #e6f6ef;
    color: #103f30;
}

.club-message-flash {
    margin: 0 0 18px;
    box-shadow: 0 8px 22px rgba(23, 32, 27, 0.08);
}

.notice-error {
    border-color: #e3afa6;
    background: #fff0ed;
    color: #7a2118;
}

.modal {
    width: min(460px, calc(100vw - 32px));
    border: 0;
    border-radius: 8px;
    padding: 0;
    background: transparent;
    color: var(--text);
}

.modal::backdrop {
    background: rgba(23, 32, 27, 0.42);
}

.modal-panel {
    display: grid;
    gap: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 20px;
    background: var(--surface);
}

.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 14px;
}

.modal-header h2 {
    margin: 0;
}

.modal-text {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.modal-text strong {
    display: block;
    margin-top: 6px;
    color: var(--text);
}

.modal-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

code {
    border-radius: 6px;
    padding: 2px 7px;
    background: rgba(0, 0, 0, 0.08);
    font-size: 0.95em;
}

.data-list {
    display: grid;
    gap: 10px;
    margin: 0;
}

.data-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px 16px;
    background: #fbfcfb;
}

.data-row span:first-child {
    font-weight: 760;
}

.data-row span:last-child {
    color: var(--muted);
}

.data-link:hover {
    border-color: #b9d8ca;
    background: #f7fbf9;
}

.membership-pay-panel {
    display: grid;
    gap: 18px;
}

.membership-admin-back-link {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    gap: 7px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.membership-admin-back-link:hover {
    color: var(--accent-dark);
    text-decoration: underline;
}

.membership-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    background: #fbfcfb;
}

.membership-summary div {
    display: grid;
    gap: 3px;
}

.membership-summary span {
    color: var(--muted);
    font-size: 0.86rem;
}

.membership-registration-summary {
    display: grid;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    background: #fbfcfb;
}

.membership-registration-list {
    display: grid;
    gap: 10px;
}

.membership-registration-player {
    display: grid;
    gap: 3px;
    border-bottom: 1px solid #e3ece7;
    padding-bottom: 10px;
}

.membership-registration-player:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.membership-registration-player span,
.membership-registration-total span {
    color: var(--muted);
    font-size: 0.86rem;
}

.membership-registration-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid var(--line);
    padding-top: 12px;
}

.membership-payment-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.membership-payment-option {
    display: grid;
    gap: 6px;
    border: 1px solid #d8e3de;
    border-radius: 8px;
    padding: 12px;
    background: #ffffff;
    color: var(--text);
    text-align: left;
}

.membership-payment-option span {
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.35;
}

.bizum-number-list {
    display: grid;
    gap: 8px;
    margin-top: 4px;
}

.bizum-number-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border: 1px solid #d7e8e0;
    border-radius: 8px;
    background: #f6fbf8;
    padding: 7px 8px 7px 10px;
}

.bizum-number-link {
    color: #0f6f53;
    font-weight: 800;
    text-decoration: none;
}

.bizum-number-link:hover,
.bizum-number-link:focus-visible {
    text-decoration: underline;
}

.bizum-copy-button {
    width: 34px;
    height: 34px;
    color: #167f5f;
    background: #ffffff;
}

.bizum-copy-button svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.bizum-copy-button.is-copied {
    color: #ffffff;
    background: #167f5f;
    border-color: #167f5f;
}

.membership-option-form,
.membership-notify-form {
    display: flex;
    justify-content: flex-start;
    margin-top: 6px;
}

.profile-player-list {
    display: grid;
    gap: 12px;
}

.profile-sections {
    display: grid;
    gap: 18px;
    max-width: 980px;
}

.profile-panel [data-edit-section="profile"] .profile-edit-form {
    max-width: 760px;
}

.profile-edit-section {
    position: relative;
}

.profile-edit-section .profile-edit-form {
    display: none;
}

.profile-edit-section.is-editing .profile-edit-form {
    display: grid;
}

.profile-edit-section.is-editing .profile-readonly {
    display: none;
}

.profile-edit-section.is-editing .profile-edit-toggle {
    display: none;
}

.profile-readonly {
    display: grid;
    gap: 10px;
}

.profile-field-row {
    display: flex;
    min-height: 46px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px 14px;
    background: #fbfcfb;
}

.profile-field-row span {
    color: var(--muted);
}

.profile-field-row small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 650;
    line-height: 1.3;
}

.profile-field-row strong {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-align: right;
}

.profile-payment-link {
    color: #167f5f;
    font-weight: 850;
    text-decoration: none;
}

.profile-edit-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.profile-edit-actions .button {
    min-width: 160px;
}

.profile-player-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: start;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px 16px;
    background: #fbfcfb;
}

.profile-player-summary {
    display: grid;
    gap: 4px;
}

.profile-player-row span {
    color: var(--muted);
    font-size: 0.92rem;
}

.profile-player-row .profile-readonly,
.profile-player-row .profile-edit-form {
    grid-column: 1 / -1;
}

.profile-danger-section {
    border-top: 1px solid var(--line);
    padding-top: 18px;
}

.profile-danger-section .muted {
    margin-bottom: 2px;
}

.profile-unsubscribe-list {
    display: grid;
    gap: 10px;
}

.profile-unsubscribe-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border: 1px solid #ead2cd;
    border-radius: 8px;
    padding: 12px 14px;
    background: #fffdfc;
}

.profile-unsubscribe-row span {
    color: var(--text);
    font-weight: 720;
}

.admin-players-layout {
    display: grid;
    gap: 22px;
    max-width: 1120px;
}

.admin-player-form {
    margin-top: 0;
}

.admin-player-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.admin-player-phone {
    grid-column: 1 / -1;
}

.admin-player-list-header {
    align-items: center;
}

.admin-player-title {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.admin-player-title h2 {
    margin: 0;
}

.admin-player-title span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    min-height: 2rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0 10px;
    color: var(--primary);
    background: #f7fbf9;
    font-weight: 760;
}

.fixed-template-actions,
.fixed-player-seasons,
.fixed-preference-form,
.fixed-time-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.fixed-time-form {
    align-items: end;
}

.fixed-time-form label {
    min-width: min(100%, 180px);
    flex: 1 1 180px;
}

.fixed-schedule-page .content-section + .content-section {
    margin-top: 18px;
    border-top: 1px solid var(--line);
    padding-top: 22px;
}

.fixed-schedule-page .content-section-header {
    align-items: flex-start;
}

.fixed-schedule-page .content-section-header p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.35;
}

.fixed-time-list {
    display: grid;
    gap: 14px;
    background: #ffffff;
}

.fixed-player-card {
    display: grid;
    gap: 14px;
    border: 1px solid #bfd5cb;
    border-radius: 8px;
    padding: 16px 18px;
    background: #f0f7f3;
    box-shadow: 0 8px 18px rgba(20, 40, 31, 0.05);
}

.fixed-player-card-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
}

.fixed-player-card-main {
    display: grid;
    gap: 10px;
}

.fixed-player-card-main h3 {
    margin: 0;
    font-size: 1.04rem;
}

.fixed-player-times {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.fixed-time-chip {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    border: 1px solid #d8e3dc;
    border-radius: 6px;
    padding: 0 12px;
    background: #f8fbf9;
    color: var(--muted);
    font: inherit;
    font-size: 0.92rem;
    font-weight: 760;
    cursor: pointer;
}

.fixed-time-chip:hover,
.fixed-time-chip:focus-visible,
.fixed-time-chip[aria-expanded="true"] {
    border-color: var(--primary);
    background: var(--accent-soft);
    color: var(--accent-dark);
    outline: none;
}

.fixed-time-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: 10px 12px;
    background: #f8fbf9;
}

.fixed-time-row span {
    display: grid;
    gap: 3px;
}

.fixed-time-row small {
    color: var(--muted);
}

.fixed-time-row-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.fixed-time-row-actions form {
    display: flex;
}

.fixed-time-row-actions .button {
    white-space: nowrap;
}

.fixed-time-inline-form {
    display: grid;
    grid-template-columns: minmax(110px, 0.75fr) minmax(120px, 1fr) minmax(120px, 1fr) auto;
    gap: 10px;
    align-items: end;
    border-top: 1px solid var(--border);
    padding-top: 12px;
}

.fixed-time-inline-form label {
    min-width: 0;
}

.fixed-time-inline-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fixed-player-list {
    display: grid;
    gap: 12px;
}

.fixed-player-row {
    display: grid;
    gap: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px;
    background: #fff;
}

.fixed-player-row header {
    display: grid;
    gap: 2px;
}

.fixed-player-row header span {
    color: var(--muted);
    font-size: 0.92rem;
}

.fixed-preference-form {
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #f7fbf9;
}

.fixed-preference-form strong {
    min-width: 58px;
}

.admin-player-header-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.admin-player-toolbar {
    width: min(520px, 100%);
}

.admin-player-list {
    display: grid;
    gap: 12px;
}

.admin-player-row {
    display: grid;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px 16px;
    background: #fbfcfb;
    transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.admin-player-row.is-recently-saved {
    border-color: #9fd4bd;
    background: #f3fbf7;
    box-shadow: inset 4px 0 0 var(--accent);
}

.admin-player-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 14px;
    align-items: center;
}

.admin-player-summary strong,
.admin-player-summary span {
    display: block;
}

.admin-player-summary span,
.admin-player-meta {
    color: var(--muted);
}

.admin-player-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    font-size: 0.92rem;
}

.admin-player-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-player-actions .button {
    min-width: 150px;
}

.admin-player-registration-panel {
    display: grid;
    gap: 14px;
    margin: 2px 0 18px;
    border: 1px solid #cfe1d6;
    border-radius: 8px;
    padding: 16px;
    background: #f8fbf9;
}

.admin-player-registration-panel.is-attention {
    border-color: #80b99b;
    box-shadow: 0 0 0 3px rgba(128, 185, 155, 0.22);
}

.admin-player-registration-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.admin-player-registration-heading h3 {
    margin: 0;
    color: var(--text);
    font-size: 0.98rem;
}

.admin-player-registration-heading p {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.admin-player-registration-heading p strong {
    display: inline-block;
    margin-left: 4px;
    color: var(--text);
}

.admin-player-registration-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.admin-player-access-code-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-player-registration-summary div {
    border: 1px solid #e2ebe6;
    border-radius: 6px;
    padding: 10px 12px;
    background: #ffffff;
}

.admin-player-registration-player {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    border: 1px solid #e2ebe6;
    border-radius: 6px;
    padding: 10px 12px;
    background: #ffffff;
}

.admin-player-registration-summary span,
.admin-player-registration-player span {
    display: block;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.35;
}

.admin-player-registration-summary strong,
.admin-player-registration-player strong {
    display: block;
    color: var(--text);
    font-size: 0.94rem;
    line-height: 1.3;
}

.admin-player-registration-list {
    display: grid;
    gap: 8px;
}

.admin-player-payment-panel {
    display: grid;
    gap: 12px;
    margin-top: 4px;
    border: 1px solid #dde6e1;
    border-radius: 8px;
    padding: 14px;
    background: #fbfcfb;
}

.admin-player-payment-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.admin-player-payment-heading h3 {
    margin: 0;
    color: var(--text);
    font-size: 0.98rem;
}

.admin-player-payment-heading p {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.admin-player-payment-grid {
    display: grid;
    grid-template-columns: minmax(0, 210px) minmax(0, 1fr);
    gap: 12px;
}

.admin-player-payment-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.admin-player-payment-actions [hidden] {
    display: none !important;
}

[data-set-player-unavailable][hidden],
[data-clear-player-unavailable][hidden] {
    display: none !important;
}

.admin-player-payment-actions > a {
    margin-right: auto;
}

.admin-player-payment-status-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.admin-player-payment-status-actions .text-button {
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 5px 9px;
}

.admin-player-payment-status-actions .text-button:not(.admin-player-payment-correction-cancel) {
    border-color: #9fc8b5;
    background: #eef8f3;
    color: #17643a;
}

.admin-player-payment-correct,
.admin-player-payment-correction-cancel {
    color: var(--muted);
}

.payment-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 26px;
    border: 1px solid #d7e2dc;
    border-radius: 999px;
    padding: 3px 10px;
    background: #ffffff;
    color: #49564f;
    font-size: 0.82rem;
    font-weight: 760;
    line-height: 1.2;
    white-space: nowrap;
}

.payment-badge-paid {
    border-color: #b9dbc8;
    background: #f1faf5;
    color: #2d6f4d;
}

.payment-badge-waived {
    border-color: #c7d8e6;
    background: #f2f7fb;
    color: #315f7e;
}

.payment-badge-open {
    border-color: #ead6aa;
    background: #fff9ec;
    color: #73551c;
}

.payment-badge-pending {
    border-color: #c8d5e8;
    background: #f4f7fc;
    color: #3d5f8f;
}

.payment-badge-failed {
    border-color: #e6c0bd;
    background: #fff5f4;
    color: #88342d;
}

.push-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 26px;
    border: 1px solid #d7e2dc;
    border-radius: 999px;
    padding: 3px 10px;
    background: #ffffff;
    color: #49564f;
    font-size: 0.82rem;
    font-weight: 760;
    line-height: 1.2;
    white-space: nowrap;
}

.push-status-badge-active {
    border-color: #b7d9c3;
    background: #f1faf4;
    color: #286a43;
}

.push-status-badge-untested {
    border-color: #c7d8e6;
    background: #f2f7fb;
    color: #315f7e;
}

.push-status-badge-missing {
    border-color: #ead6aa;
    background: #fff9ec;
    color: #73551c;
}

.push-status-badge-failed {
    border-color: #e6c0bd;
    background: #fff5f4;
    color: #88342d;
}

.admin-player-modal {
    width: min(720px, calc(100vw - 32px));
}

.admin-player-modal[open] {
    margin-top: 3vh;
    margin-bottom: auto;
}

select.status-select + .custom-select .custom-select-menu {
    top: auto;
    bottom: calc(100% + 4px);
}

select.level-select + .custom-select .custom-select-menu {
    top: auto;
    bottom: calc(100% + 4px);
}

.test-availability-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.test-availability-grid {
    display: grid;
    min-width: calc(260px + var(--availability-days) * 78px);
    grid-template-columns: 260px repeat(var(--availability-days), 78px);
}

.test-availability-head,
.test-availability-player,
.test-availability-cell {
    border-bottom: 1px solid #edf1ed;
    padding: 9px 10px;
}

.test-availability-head {
    position: sticky;
    top: 0;
    z-index: 2;
    display: grid;
    gap: 2px;
    border-bottom-color: var(--line);
    background: #f8faf8;
    color: var(--muted);
    font-size: 0.78rem;
    text-align: center;
}

.test-availability-player-head,
.test-availability-player {
    position: sticky;
    left: 0;
    z-index: 3;
    text-align: left;
}

.test-availability-player {
    display: grid;
    gap: 2px;
    background: #ffffff;
}

.test-availability-player strong {
    font-size: 0.92rem;
}

.test-availability-player span {
    color: var(--muted);
    font-size: 0.8rem;
}

.test-unavailable-all-week {
    display: grid;
    grid-template-columns: 16px minmax(0, 1fr);
    align-items: start;
    gap: 6px;
    margin-top: 5px;
    cursor: pointer;
}

.test-unavailable-all-week input {
    width: 16px;
    height: 16px;
    margin: 1px 0 0;
    accent-color: var(--accent);
}

.test-availability-player .test-unavailable-all-week span {
    color: #46544c;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.25;
}

.test-availability-cell {
    display: grid;
    justify-content: center;
    gap: 5px;
    background: #fbfcfb;
}

.tiny-check {
    display: block;
    position: relative;
    min-width: 42px;
    cursor: pointer;
}

.tiny-check input {
    position: absolute;
    inset: 0;
    opacity: 0;
}

.tiny-check span {
    display: flex;
    height: 24px;
    align-items: center;
    justify-content: center;
    border: 1px solid #cfd8d2;
    border-radius: 6px;
    background: #ffffff;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
}

.tiny-check input:checked + span {
    border-color: var(--accent);
    background: var(--accent);
    color: #ffffff;
}

.late-availability-chip {
    display: flex;
    min-width: 42px;
    height: 20px;
    align-items: center;
    justify-content: center;
    border: 1px solid #dc5c4f;
    border-radius: 6px;
    background: #ffe1de;
    color: #a6261c;
    font-size: 0.68rem;
    font-weight: 900;
    white-space: nowrap;
}

.schedule-availability-wrap .test-availability-grid,
.schedule-availability-headbar .test-availability-grid {
    min-width: calc(220px + var(--availability-days) * 88px);
    grid-template-columns: 220px repeat(var(--availability-days), 88px);
}

.schedule-availability-headbar {
    position: sticky;
    top: 81px;
    z-index: 19;
    align-self: start;
    overflow-x: hidden;
    border: 1px solid var(--line);
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
    background: #f8faf8;
    box-shadow: 0 6px 12px rgba(23, 32, 27, 0.08);
}

.schedule-availability-headbar .test-availability-head {
    position: static;
    border-bottom: 1px solid var(--line);
}

.schedule-availability-headbar .test-availability-player-head {
    left: auto;
}

.test-availability-toolbar {
    margin-bottom: 14px;
}

.test-availability-row {
    display: contents;
}

.test-player-status {
    display: inline-flex;
    min-height: 28px;
    width: fit-content;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 0 9px;
    font-size: 0.72rem;
    font-weight: 750;
    line-height: 1;
    text-align: center;
}

.test-player-status.is-scheduled {
    border-color: #168264;
    background: #d2f1e4;
    color: #075a43;
}

.test-player-status.is-not-scheduled {
    border-color: #cf5549;
    background: #ffdfdb;
    color: #851f17;
}

.test-player-status.is-not-submitted {
    border-color: #c28a00;
    background: #ffefb8;
    color: #674500;
}

.test-player-status.is-scheduled::before {
    content: "✓";
}

.test-player-status.is-not-scheduled::before {
    content: "!";
}

.test-player-status.is-not-submitted::before {
    content: "?";
}

.test-player-status-geblokkeerd {
    border-color: #e3aeb3;
    background: #f8d7da;
    color: #842029;
}

.schedule-availability-wrap {
    border-top: 0;
    border-radius: 0 0 8px 8px;
}

.schedule-readonly-check {
    cursor: default;
}

.schedule-readonly-check.is-waiting span {
    border-color: var(--accent);
    background: var(--accent);
    color: #ffffff;
}

.schedule-readonly-check.is-available span {
    border-color: var(--accent);
    background: var(--accent);
    color: #ffffff;
}

.schedule-readonly-check.is-late span {
    border-color: #dc5c4f;
    background: #ffe1de;
    color: #a6261c;
    font-weight: 900;
}

.schedule-readonly-check.is-late.is-used span {
    border-color: #0f8a68;
    background: #e8f7ef;
    color: #0c6b4f;
}

.schedule-availability-empty {
    display: flex;
    min-width: 42px;
    height: 24px;
    align-items: center;
    justify-content: center;
    color: #b7c0ba;
    font-size: 0.78rem;
    font-weight: 800;
}

.test-availability-save {
    align-items: center;
    gap: 14px;
}

.test-availability-save .checkbox-line {
    flex: 1 1 320px;
    max-width: 560px;
}

.schedule-page {
    color: #111827;
}

.schedule-empty-notice {
    margin: 18px 0 0;
}

.planning-steps {
    overflow-x: auto;
    margin-top: 18px;
    border: 1px solid #d9e0dc;
    border-radius: 6px;
    background: #ffffff;
}

.planning-steps ol {
    display: grid;
    grid-template-columns: repeat(6, minmax(132px, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
}

.planning-step {
    position: relative;
    min-width: 0;
    border-right: 1px solid #e5ebe7;
}

.planning-step:last-child {
    border-right: 0;
}

.planning-step a,
.planning-step-static {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 58px;
    padding: 10px 12px;
    color: #52627a;
    text-decoration: none;
}

.planning-step a:hover {
    background: #f8faf8;
}

.planning-step span span,
.planning-step a span {
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border: 1px solid #cfd8d2;
    border-radius: 999px;
    background: #ffffff;
    color: #52627a;
    font-size: 0.78rem;
    font-weight: 850;
}

.planning-step strong {
    overflow-wrap: anywhere;
    color: inherit;
    font-size: 0.82rem;
    font-weight: 820;
    line-height: 1.2;
}

.planning-step.is-complete a,
.planning-step.is-complete .planning-step-static {
    color: #0f6b50;
    background: #f1f8f4;
}

.planning-step.is-complete span span,
.planning-step.is-complete a span {
    border-color: #8fcfb4;
    background: #167f5f;
    color: #ffffff;
}

.planning-step.is-current a,
.planning-step.is-current .planning-step-static {
    color: #111827;
    box-shadow: inset 0 -3px 0 var(--accent);
}

.planning-step.is-current span span,
.planning-step.is-current a span {
    border-color: var(--accent);
    color: var(--accent-dark);
}

.schedule-board {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.schedule-status {
    width: fit-content;
    margin: 18px auto 0;
    border: 1px solid #cfe0ea;
    border-radius: 999px;
    padding: 6px 16px;
    background: #ffffff;
    color: var(--accent-dark);
    font-size: 0.92rem;
    font-weight: 800;
    text-transform: capitalize;
}

.schedule-command-panel {
    display: grid;
    gap: 16px;
    border-top: 1px solid #cfd4d7;
    border-bottom: 1px solid #dde5df;
    margin-top: 24px;
    padding: 18px 0;
}

.schedule-command-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
}

.schedule-command-summary h2 {
    margin: 0;
    font-size: 1.05rem;
}

.schedule-command-summary p {
    margin: 4px 0 0;
    color: var(--muted);
    line-height: 1.4;
}

.schedule-command-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(86px, 1fr));
    gap: 8px;
    margin: 0;
}

.schedule-command-metrics div {
    border: 1px solid #d8e4dd;
    border-radius: 8px;
    padding: 8px 10px;
    background: #f7fbf8;
}

.schedule-command-metrics dt {
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 760;
}

.schedule-command-metrics dd {
    margin: 2px 0 0;
    color: var(--text);
    font-size: 1.12rem;
    font-weight: 900;
}

.schedule-management-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    align-items: stretch;
    gap: 12px;
}

.schedule-action-item {
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 8px;
    min-width: 0;
    border: 1px solid #d8e4dd;
    border-radius: 8px;
    padding: 10px;
    background: #ffffff;
}

.schedule-action-item form {
    margin: 0;
}

.schedule-action-item .button,
.schedule-action-item form {
    width: 100%;
}

.schedule-action-item span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 680;
    line-height: 1.35;
}

.schedule-action-item .button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.schedule-review-modal {
    width: min(680px, calc(100vw - 32px));
}

.schedule-review-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.schedule-review-facts div,
.schedule-publish-review-list div {
    border: 1px solid #d8e4dd;
    border-radius: 8px;
    padding: 10px 12px;
    background: #f8fbf9;
}

.schedule-review-facts span,
.schedule-publish-review-list dt {
    display: block;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 760;
}

.schedule-review-facts strong,
.schedule-publish-review-list dd {
    display: block;
    margin: 3px 0 0;
    color: var(--text);
    font-size: 1rem;
    font-weight: 880;
}

.schedule-publish-review-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

.schedule-review-note {
    margin: 0;
    border-left: 3px solid var(--accent);
    padding: 2px 0 2px 12px;
    color: var(--muted);
    line-height: 1.5;
}

.schedule-insight-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 48px;
}

.schedule-insight-column {
    display: grid;
    align-content: start;
    gap: 10px;
}

.schedule-insight-title {
    margin: 0;
    color: #1f2a24;
    font-size: 1rem;
    line-height: 1.2;
}

.schedule-insight-panel {
    display: grid;
    min-width: 0;
}

.schedule-insight-panel > .empty-state {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    background: #ffffff;
}

.schedule-insight-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.schedule-insight-list li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px;
    border-top: 1px solid #edf1ed;
    padding-top: 8px;
    color: #44504a;
    font-size: 0.86rem;
}

.schedule-insight-list-players li,
.schedule-insight-list-moments li {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
}

.schedule-insight-list li:first-child {
    border-top: 0;
    padding-top: 0;
}

.schedule-insight-list strong,
.schedule-insight-list small,
.schedule-insight-list em {
    display: block;
}

.schedule-insight-list small {
    color: var(--muted);
    font-size: 0.74rem;
}

.schedule-insight-list em {
    border-radius: 999px;
    padding: 2px 7px;
    background: #f4f6f4;
    color: #5c6861;
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 780;
    white-space: nowrap;
}

.schedule-insight-list em.is-used {
    background: #e8f7ef;
    color: #0c6b4f;
}

.schedule-insight-player {
    display: grid;
    gap: 1px;
}

.schedule-insight-moments,
.schedule-insight-player-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.schedule-insight-list .schedule-insight-moments em {
    border: 1px solid #d8a09a;
    background: #fff1f0;
    color: #9f2f24;
}

.schedule-insight-list .schedule-insight-moments em.is-used {
    border-color: #9ad6b9;
    background: #e8f7ef;
    color: #0c6b4f;
}

.schedule-insight-moment-heading {
    color: #25332b;
    font-size: 0.9rem;
}

.schedule-insight-player-chip,
.schedule-insight-more {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    gap: 5px;
    border: 1px solid #dbe4dd;
    border-radius: 999px;
    padding: 3px 8px;
    background: #f8faf8;
    color: #34423a;
    font-size: 0.78rem;
    font-weight: 760;
}

.schedule-insight-player-chip small {
    display: inline;
    color: #6b766f;
    font-size: 0.72rem;
}

.schedule-insight-more {
    color: #5c6861;
}

.schedule-day {
    display: grid;
    align-content: start;
    gap: 12px;
    min-width: 0;
    border: 1px solid #cfe0ea;
    border-radius: 8px;
    padding: 14px;
    background: #ffffff;
}

.schedule-day-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid #e3e8e2;
    padding-bottom: 10px;
}

.schedule-day-header h2 {
    margin: 0;
    font-size: 1rem;
}

.schedule-day-header span {
    color: #2b87d5;
    font-size: 0.86rem;
    font-weight: 800;
}

.schedule-match-list {
    display: grid;
    gap: 10px;
}

.schedule-match-card {
    display: grid;
    gap: 10px;
    border-radius: 8px;
    padding: 12px;
    background: #eef7fd;
}

.schedule-slot-empty-card {
    border: 1px dashed #cfd8d2;
    background: #fbfcfb;
}

.schedule-match-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    color: #2784cf;
    font-weight: 800;
}

.schedule-match-title > div {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
}

.schedule-match-title strong {
    font-size: 1rem;
}

.schedule-card-action {
    display: inline-flex;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    align-items: center;
    justify-content: center;
    border: 1px solid #e3afa6;
    border-radius: 6px;
    background: #fff8f6;
    color: #8f2d22;
    font: inherit;
    font-size: 1.05rem;
    line-height: 1;
    cursor: pointer;
}

.schedule-card-actions {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
}

.schedule-card-action:hover {
    border-color: #c85f51;
    background: #fff0ed;
    color: #7a2118;
}

.schedule-card-action-neutral {
    border-color: #bdd0db;
    background: #f5fafc;
    color: #2f647a;
}

.schedule-card-action-neutral:hover {
    border-color: #7aa6ba;
    background: #eef7fb;
    color: #214c5e;
}

.compact-form {
    gap: 12px;
}

.compact-form small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.82rem;
}

.schedule-match-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.schedule-match-meta span {
    border-radius: 999px;
    padding: 2px 8px;
    background: #ffffff;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 760;
}

.schedule-slot-empty-reason {
    margin: 0;
    color: #6b766f;
    font-size: 0.82rem;
    line-height: 1.35;
}

.schedule-player-list {
    display: grid;
    gap: 5px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.schedule-player-list li {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: #44504a;
    font-size: 0.9rem;
}

.schedule-player-list li.is-recent-replacement {
    border-radius: 6px;
    margin: -2px -4px;
    padding: 2px 4px;
    background: #fff7d6;
}

.schedule-player-list li.is-recent-replacement span,
.schedule-player-list li.is-recent-replacement .schedule-admin-player,
.schedule-player-list li.is-recent-replacement .schedule-own-player {
    color: #6f5300;
    font-weight: 760;
}

.schedule-late-badge {
    border: 1px solid #d8a09a;
    border-radius: 999px;
    padding: 1px 6px;
    background: #fff1f0;
    color: #9f2f24;
    font-size: 0.68rem;
    font-weight: 850;
    line-height: 1.35;
}

.schedule-pending-replacement-badge {
    border: 1px solid #d9b65d;
    border-radius: 999px;
    padding: 1px 6px;
    background: #fff7dc;
    color: #7b5600;
    font-size: 0.68rem;
    font-weight: 850;
    line-height: 1.35;
}

.schedule-cancelled-player-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: #fff0e8;
    color: #9b3d16;
    font-size: 0.74rem;
    font-weight: 700;
}

.schedule-player-list small {
    color: #718077;
    white-space: nowrap;
}

.public-schedule-page .schedule-player-list li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 28px;
    align-items: center;
    min-height: 24px;
}

.public-schedule-page .schedule-player-list li > span,
.public-schedule-page .schedule-own-player {
    min-width: 0;
}

.public-schedule-page .schedule-player-list li > span {
    grid-column: 1 / 2;
}

.schedule-admin-player {
    border: 0;
    border-radius: 4px;
    padding: 0 3px;
    background: transparent;
    color: var(--accent-dark);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.schedule-guest-badge {
    margin-left: auto;
    color: #7a867f;
    font-size: 0.72rem;
    font-weight: 650;
    font-style: italic;
    line-height: 1.5;
}

.schedule-admin-empty-player {
    border: 0;
    padding: 0 3px;
    background: transparent;
    color: #287155;
    font-weight: 750;
}

.schedule-admin-empty-player:hover:not(:disabled) {
    background: #e9f8f0;
}

.schedule-admin-empty-player:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.schedule-own-player {
    border: 0;
    border-radius: 4px;
    padding: 0;
    background: transparent;
    color: var(--accent-dark);
    font: inherit;
    font-weight: 800;
    text-align: left;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.schedule-own-player:hover,
.schedule-own-player:focus-visible {
    padding: 0 3px;
    margin-left: -3px;
}

.schedule-calendar-icon {
    display: inline-grid;
    width: 24px;
    height: 24px;
    place-items: center;
    justify-self: end;
    border: 0;
    border-radius: 4px;
    padding: 0;
    background: transparent;
    color: var(--accent-dark);
    cursor: pointer;
}

.schedule-calendar-icon svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.schedule-admin-player:hover,
.schedule-admin-player:focus-visible,
.schedule-own-player:hover,
.schedule-own-player:focus-visible,
.schedule-calendar-icon:hover,
.schedule-calendar-icon:focus-visible {
    background: #d9f0e7;
    color: #073d2e;
}

.schedule-replace-modal {
    width: min(560px, calc(100vw - 32px));
}

.schedule-replace-modal.is-dragged {
    position: fixed;
    margin: 0;
}

.schedule-replace-modal .modal-header {
    cursor: move;
    user-select: none;
}

.schedule-replace-modal .modal-header .icon-button {
    cursor: pointer;
}

.modal-kicker {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.35;
}

.replacement-list {
    display: grid;
    gap: 8px;
    max-height: min(430px, 52vh);
    overflow: auto;
    padding-right: 2px;
}

.replacement-option {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px;
    width: 100%;
    border: 1px solid #d7e4dd;
    border-radius: 8px;
    padding: 10px 12px;
    background: #ffffff;
    color: var(--text);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.replacement-option:hover,
.replacement-option:focus-visible {
    border-color: #9ec7b8;
    background: #f2faf6;
}

.replacement-option.is-selected {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.replacement-option strong,
.replacement-option small {
    display: block;
}

.replacement-option strong {
    font-size: 0.95rem;
}

.replacement-option small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.82rem;
}

.replacement-option em {
    min-width: 88px;
    border-radius: 999px;
    padding: 4px 8px;
    background: #edf4f0;
    color: var(--accent-dark);
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 800;
    text-align: center;
}

.manual-replacement-picker {
    display: grid;
    gap: 9px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #dfe6e2;
}

.schedule-guest-picker {
    display: grid;
    gap: 9px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #dfe6e2;
}

.schedule-cancellation-restore {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    padding: 14px;
    border: 1px solid #eed49a;
    border-radius: 10px;
    background: #fffaf0;
}

.schedule-cancellation-restore > div {
    display: grid;
    gap: 3px;
}

.schedule-cancellation-restore small {
    color: var(--muted);
    line-height: 1.35;
}

.schedule-guest-picker[hidden],
.schedule-cancellation-restore[hidden] {
    display: none;
}

.schedule-guest-entry {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}

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

    .schedule-cancellation-restore {
        align-items: stretch;
        flex-direction: column;
    }
}

.manual-replacement-heading {
    display: grid;
    gap: 3px;
}

.manual-replacement-heading strong {
    font-size: 0.94rem;
}

.manual-replacement-heading small {
    color: var(--muted);
    line-height: 1.35;
}

.manual-replacement-results {
    display: grid;
    gap: 6px;
    max-height: 230px;
    overflow: auto;
    border: 1px solid #dce5e0;
    border-radius: 8px;
    padding: 6px;
    background: #ffffff;
}

.manual-replacement-option {
    display: grid;
    gap: 4px;
    width: 100%;
    border: 0;
    border-radius: 7px;
    padding: 9px 10px;
    background: #f7faf8;
    color: var(--text);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.manual-replacement-option:hover,
.manual-replacement-option:focus-visible {
    background: var(--accent-soft);
}

.manual-replacement-option:disabled {
    cursor: not-allowed;
    opacity: 0.62;
}

.manual-replacement-option-heading {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.manual-replacement-option-heading span,
.manual-replacement-option small {
    color: var(--muted);
    font-size: 0.78rem;
}

.manual-replacement-option small {
    color: #9b5f30;
    line-height: 1.35;
}

.manual-replacement-selection {
    margin: 0;
    border: 1px solid #9ec7b8;
    border-radius: 8px;
    padding: 9px 11px;
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-weight: 800;
}

.schedule-cancel-scope {
    margin: 1rem 0;
    padding: 0;
    border: 0;
}

.schedule-cancel-scope legend {
    margin-bottom: 0.65rem;
    font-weight: 700;
}

.replacement-case-panel {
    margin: 1rem 0 1.25rem;
    padding: 1rem;
    border: 1px solid #efc6ad;
    border-radius: 14px;
    background: #fffaf6;
}

.replacement-case-heading,
.replacement-case-card,
.replacement-case-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.replacement-case-heading h2,
.replacement-case-card p {
    margin: 0;
}

.replacement-case-heading span {
    min-width: 1.75rem;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    background: #9b3d16;
    color: #fff;
    text-align: center;
    font-weight: 700;
}

.replacement-case-list {
    display: grid;
    gap: 0.65rem;
    margin-top: 0.8rem;
}

.replacement-case-card {
    padding: 0.75rem;
    border-radius: 10px;
    background: #fff;
}

.replacement-case-status,
.replacement-case-note {
    color: #6d584d;
    font-size: 0.86rem;
}

@media (max-width: 720px) {
    .replacement-case-card {
        align-items: flex-start;
        flex-direction: column;
    }
}

.replacement-empty {
    margin: 0;
}

.schedule-incomplete {
    margin: 0;
    color: #9d5b12;
    font-size: 0.82rem;
    font-weight: 760;
}

.schedule-open-match-label {
    display: flex;
    width: fit-content;
    align-items: center;
    gap: 7px;
    margin: 0;
    border-radius: 999px;
    padding: 3px 9px;
    background: #dff4e9;
    color: #176746;
    font-size: 0.76rem;
    font-weight: 800;
}

.schedule-open-match-label span {
    color: #3f7460;
    font-weight: 700;
}

.public-schedule-page .schedule-player-list li.schedule-open-spot {
    min-height: 30px;
    border: 1px dashed #75b99c;
    border-radius: 6px;
    padding: 4px 8px;
    background: #f5fcf8;
    color: #35745a;
}

.schedule-open-match-join,
.schedule-open-match-manage {
    width: fit-content;
}

.schedule-open-match-help {
    color: var(--muted);
    line-height: 1.4;
}

.schedule-open-match-player-summary {
    display: grid;
    gap: 4px;
    border: 1px solid #b9d8ca;
    border-radius: 8px;
    padding: 11px 13px;
    background: #f2faf6;
}

.schedule-open-match-player-summary span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.schedule-open-match-player-summary strong {
    color: var(--accent-dark);
    font-size: 1rem;
}

.schedule-open-match-player-picker {
    min-width: 0;
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px;
}

.schedule-open-match-player-picker legend {
    padding: 0 5px;
    font-weight: 800;
}

.schedule-open-match-player-options {
    display: grid;
    gap: 7px;
}

.schedule-open-match-player-option {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    min-height: 42px;
    border: 1px solid #cddbd3;
    border-radius: 7px;
    padding: 8px 10px;
    background: #ffffff;
    cursor: pointer;
}

.schedule-open-match-player-option:has(input:checked) {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.schedule-open-match-player-option input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--accent);
}

.schedule-open-match-player-option span {
    font-weight: 750;
}

.open-match-player-picker {
    display: grid;
    gap: 8px;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
}

.open-match-player-picker legend {
    padding: 0 5px;
    font-weight: 800;
}

.open-match-player-picker > small {
    color: var(--muted);
}

.open-match-player-options {
    display: grid;
    max-height: 260px;
    gap: 4px;
    overflow-y: auto;
}

.schedule-player-move-shortcut,
.schedule-player-free-shortcut {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid #cfe0e8;
    border-radius: 8px;
    padding: 10px;
    background: #f5fafc;
}

.schedule-player-move-shortcut small,
.schedule-player-free-shortcut small {
    color: var(--muted);
    line-height: 1.35;
    text-align: right;
}

@media (max-width: 600px) {
    .schedule-player-move-shortcut,
    .schedule-player-free-shortcut {
        align-items: stretch;
        flex-direction: column;
    }

    .schedule-player-move-shortcut small,
    .schedule-player-free-shortcut small {
        text-align: left;
    }
}

.content-section {
    display: grid;
    gap: 14px;
}

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

.content-section-header h2 {
    margin: 0;
}

.admin-dashboard-links {
    margin-bottom: clamp(30px, 4vw, 46px);
}

.admin-activity-card {
    position: relative;
    overflow: hidden;
    border: 1px solid #cbded5;
    border-radius: 14px;
    padding: clamp(20px, 3vw, 30px);
    background: linear-gradient(145deg, #f5faf7 0%, #ffffff 54%);
    box-shadow: 0 10px 30px rgba(24, 70, 53, 0.07);
}

.admin-activity-card::before {
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    border-radius: 0 0 0 100%;
    background: rgba(22, 127, 95, 0.055);
    content: "";
    pointer-events: none;
}

.admin-activity-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.admin-activity-heading {
    display: flex;
    align-items: center;
    gap: 14px;
}

.admin-activity-heading-icon,
.admin-activity-empty-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    background: var(--accent);
    font-weight: 900;
}

.admin-activity-heading-icon {
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
    box-shadow: 0 6px 16px rgba(22, 127, 95, 0.2);
}

.admin-activity-eyebrow {
    display: block;
    margin-bottom: 3px;
    color: var(--accent-dark);
    font-size: 0.75rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-activity-heading h2 {
    margin: 0;
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    line-height: 1.2;
}

.admin-activity-week {
    position: relative;
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    border: 1px solid #c5ddd2;
    border-radius: 999px;
    padding: 6px 12px;
    color: #3d6555;
    background: rgba(255, 255, 255, 0.85);
    font-size: 0.82rem;
    font-weight: 760;
    white-space: nowrap;
}

.admin-activity-empty {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px dashed #cddbd4;
    border-radius: 10px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.72);
}

.admin-activity-empty-icon {
    width: 38px;
    height: 38px;
    color: var(--accent-dark);
    background: #e1f1e9;
}

.admin-activity-empty strong,
.admin-activity-empty p {
    margin: 0;
}

.admin-activity-empty p {
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.9rem;
}

.admin-activity-timeline {
    position: relative;
    display: grid;
    gap: 10px;
}

.admin-activity-item {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    border: 1px solid #e0e8e3;
    border-radius: 10px;
    padding: 13px 14px;
    background: rgba(255, 255, 255, 0.9);
}

.admin-activity-marker {
    display: inline-flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #3c6756;
    background: #e6f2ec;
    font-size: 0.9rem;
    font-weight: 900;
}

.admin-activity-item-urgent {
    border-color: #efc9c1;
    background: #fff9f7;
}

.admin-activity-item-urgent .admin-activity-marker {
    color: #9d382b;
    background: #fbe4df;
}

.admin-activity-item-success .admin-activity-marker {
    color: #267247;
    background: #def2e6;
}

.admin-activity-item-replacement .admin-activity-marker {
    color: #6c5618;
    background: #f8edc9;
}

.admin-activity-item-message .admin-activity-marker {
    color: #315f82;
    background: #e2eef7;
}

.admin-activity-content {
    display: grid;
    min-width: 0;
    gap: 4px;
}

.admin-activity-content > strong {
    line-height: 1.35;
}

.admin-activity-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    color: var(--muted);
    font-size: 0.84rem;
}

.admin-activity-meta small {
    font: inherit;
}

.admin-activity-item time {
    display: grid;
    justify-items: end;
    color: var(--muted);
    font-size: 0.77rem;
    line-height: 1.25;
    white-space: nowrap;
}

.admin-activity-item time strong {
    color: var(--text);
    font-size: 0.9rem;
}

@media (max-width: 600px) {
    .admin-activity-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-activity-item {
        grid-template-columns: 32px minmax(0, 1fr);
    }

    .admin-activity-item time {
        grid-column: 2;
        grid-template-columns: auto auto;
        justify-content: start;
        gap: 5px;
    }
}

.admin-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.settings-sections {
    display: grid;
    gap: 26px;
}

.settings-section {
    display: grid;
    gap: 12px;
}

.settings-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.settings-section-header h2 {
    margin: 0;
}

.settings-table {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.settings-table-head,
.settings-table-row {
    display: grid;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
}

.settings-table-courts .settings-table-head,
.settings-table-courts .settings-table-row {
    grid-template-columns: minmax(220px, 1fr) 92px 72px 92px 40px;
}

.settings-table-days .settings-table-head,
.settings-table-days .settings-table-row {
    grid-template-columns: 150px minmax(180px, 1fr) 92px 72px 92px 40px;
}

.settings-table-times .settings-table-head,
.settings-table-times .settings-table-row {
    grid-template-columns: 124px minmax(180px, 1fr) 92px 72px 92px 40px;
}

.settings-table-head {
    border-bottom: 1px solid var(--line);
    background: #f9faf8;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.settings-table-row + .settings-table-row {
    border-top: 1px solid #eef2ed;
}

.settings-table-row label {
    min-width: 0;
}

.settings-row-main {
    display: contents;
}

.settings-table-row .form-control {
    height: 36px;
    border-color: #e3e8e2;
    font-size: 0.94rem;
}

.settings-table-row .button {
    width: 100%;
}

.settings-row-new {
    background: #fbfcfb;
}

.settings-toggle {
    display: flex;
    justify-content: center;
}

.settings-toggle input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.settings-help {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.settings-page {
    margin: 0 auto;
    background: transparent;
    color: #111827;
}

.settings-titlebar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid #cfd4d7;
    padding: 0 0 18px;
}

.settings-titlebar h1 {
    margin: 0 0 4px;
    font-size: 1.9rem;
    font-weight: 540;
    line-height: 1.2;
}

.settings-titlebar p {
    margin: 0;
    color: #667085;
    font-size: 0.95rem;
}

.settings-titlebar-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
}

.settings-titlebar-actions form {
    margin: 0;
}

.admin-overview-link {
    flex: 0 0 auto;
    white-space: nowrap;
}

.roster-settings-grid {
    display: grid;
    grid-template-columns: 300px 300px minmax(260px, 1fr);
    gap: 24px;
    align-items: start;
    margin-top: 24px;
    border: 1px solid #d9e0dc;
    border-radius: 6px;
    padding: 22px;
    background: #ffffff;
}

.settings-add-bar {
    display: grid;
    grid-template-columns: 300px 300px minmax(260px, 1fr);
    grid-column: 1 / -1;
    gap: 24px;
    margin-top: 0;
    padding-top: 12px;
    align-items: start;
}

.add-action-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.settings-add-bar .add-action-group:nth-child(3) {
    margin-left: 46px;
}

.settings-add-bar .add-action-group:nth-child(3) .add-line-button {
    margin-left: 0;
}

.roster-settings-card {
    border: 0;
    border-radius: 6px;
    background: transparent;
    padding: 0;
}

.roster-settings-card h2 {
    margin: 0 0 16px;
    font-size: 1.05rem;
    font-weight: 800;
}

.roster-settings-card p {
    margin: -8px 0 14px;
    color: #667085;
    font-size: 0.88rem;
    line-height: 1.4;
}

.roster-settings-card-wide {
    grid-column: 1 / -1;
    border-top: 1px solid #e5ebe7;
    padding-top: 20px;
}

.fixed-court-settings {
    margin-top: 28px;
    border-top: 2px solid #cfd8d2;
    padding-top: 30px;
}

.fixed-court-settings > .content-section-header {
    margin-bottom: 22px;
    border: 1px solid #d9e0dc;
    border-left: 5px solid var(--accent);
    border-radius: 6px;
    padding: 18px 20px;
    background: #ffffff;
}

.fixed-court-settings > .content-section-header h2 {
    margin: 0;
    color: #111827;
    font-size: clamp(1.35rem, 2vw, 1.75rem);
    font-weight: 880;
}

.fixed-court-settings > .content-section-header p {
    margin: 5px 0 0;
    color: #52627a;
    font-size: 0.94rem;
}

.fixed-court-season-stack {
    display: grid;
    gap: 0;
}

.fixed-season-tabs {
    display: inline-grid;
    grid-template-columns: repeat(2, minmax(112px, 1fr));
    gap: 0;
    width: fit-content;
    margin: -6px 0 -1px;
    border: 1px solid #cfd8d2;
    border-bottom: 0;
    border-radius: 7px 7px 0 0;
    padding: 0;
    background: #eef4f1;
    overflow: hidden;
}

.fixed-season-tab {
    min-height: 42px;
    border: 0;
    border-right: 1px solid #d9e0dc;
    border-radius: 0;
    padding: 0 22px;
    background: transparent;
    color: #52627a;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 780;
    cursor: pointer;
}

.fixed-season-tab:last-child {
    border-right: 0;
}

.fixed-season-tab.is-inactive-season {
    color: #8a958f;
}

.fixed-season-tab.is-active {
    background: #ffffff;
    color: #0f5e46;
    box-shadow: none;
}

.fixed-season-tab:hover {
    color: #0f5e46;
}

.fixed-season-warning {
    margin: 8px 0 10px;
    border: 1px solid #ead49a;
    border-radius: 6px;
    padding: 10px 12px;
    background: #fff9e8;
    color: #75520d;
    font-size: 0.9rem;
    font-weight: 650;
    line-height: 1.4;
}

.week-planning-panel.fixed-court-panel {
    margin-top: 0;
    border-top-left-radius: 0;
}

.fixed-court-season h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    color: #111827;
    font-size: 1.18rem;
    font-weight: 860;
}

.fixed-court-season h3::after {
    content: "";
    height: 1px;
    flex: 1 1 auto;
    background: #d9e0dc;
}

.fixed-court-panel .day-slot-form input.form-control {
    width: 100%;
    height: 40px;
    border: 1px solid #b7c0ba;
    border-radius: 6px;
    padding: 0 12px;
    background: #ffffff;
    color: #111827;
    font: inherit;
    font-size: 0.96rem;
    font-weight: 760;
}

.fixed-court-board {
    display: grid;
    grid-template-columns: repeat(5, minmax(180px, 1fr));
    gap: 16px;
}

.fixed-court-day-column {
    min-width: 0;
    border: 1px solid #d9e0dc;
    border-radius: 6px;
    padding: 14px;
    background: #fbfdfc;
}

.fixed-court-day-column .week-day-header {
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5ebe7;
}

.fixed-court-day-column .week-day-header h4 {
    margin: 0;
    font-size: 1rem;
}

.fixed-court-day-list {
    display: grid;
    gap: 10px;
}

.fixed-court-slot-row {
    display: grid;
    grid-template-columns: minmax(74px, 0.75fr) minmax(0, 1fr) 40px;
    gap: 8px;
    align-items: start;
}

.fixed-court-slot-row input[type="text"] {
    width: 100%;
    height: 40px;
    border: 1px solid #b7c0ba;
    border-radius: 6px;
    padding: 0 10px;
    background: #ffffff;
    color: #111827;
    font: inherit;
    font-size: 0.92rem;
}

.fixed-court-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 10px;
    min-height: 40px;
    align-items: center;
    border: 1px solid #d9e0dc;
    border-radius: 6px;
    padding: 8px 10px;
    background: #ffffff;
}

.fixed-court-checkboxes label {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    color: #344054;
    font-size: 0.88rem;
    white-space: nowrap;
}

.fixed-court-slot-row .delete-button {
    width: 40px;
}

.messages-settings-panel {
    margin-top: 24px;
    border: 1px solid #d9e0dc;
    border-radius: 6px;
    padding: 24px;
    background: #ffffff;
}

.message-language-select {
    width: 100%;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 0 36px 0 12px;
    color: var(--text);
    background: #ffffff;
    font: inherit;
}

.message-template-section {
    margin-top: 30px;
    border-top: 1px solid #e5ebe7;
    padding-top: 24px;
}

.message-template-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: start;
    margin-bottom: 18px;
}

.message-template-header h2 {
    margin: 0 0 8px;
    font-size: 1.05rem;
    font-weight: 800;
}

.message-template-header p {
    margin: 0;
    max-width: 760px;
    color: #52627a;
    line-height: 1.45;
}

.message-template-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
}

.message-template-actions .button {
    min-height: 34px;
    padding: 7px 12px;
    white-space: nowrap;
}

.message-template-actions > span {
    flex: 0 0 auto;
    border: 1px solid #b7d6c4;
    border-radius: 999px;
    padding: 4px 10px;
    color: #2f6d45;
    background: #f1f8f4;
    font-size: 0.78rem;
    font-weight: 800;
}

.message-template-arrow {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border: 1px solid #d9e0dc;
    border-radius: 6px;
    background: #ffffff;
    position: relative;
}

.message-template-arrow::before {
    content: "";
    position: absolute;
    inset: 10px 11px 12px;
    border-right: 2px solid #52627a;
    border-bottom: 2px solid #52627a;
    transform: rotate(45deg);
}

.message-template-card[open] .message-template-arrow::before {
    inset: 13px 11px 9px;
    transform: rotate(225deg);
}

.message-template-list {
    display: grid;
    gap: 10px;
}

.message-template-card {
    border: 1px solid #d9e0dc;
    border-radius: 6px;
    background: #fbfcfb;
}

.message-template-card summary {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    min-height: 52px;
    padding: 12px 14px;
    cursor: pointer;
}

.message-template-card summary > span:first-child {
    min-width: 180px;
    color: var(--text);
    font-size: 0.98rem;
    font-weight: 800;
}

.message-template-fields {
    display: grid;
    gap: 14px;
    padding: 0 14px 14px;
}

.messages-page small {
    color: #6f7c90;
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.35;
}

.message-template-example {
    position: relative;
    display: block;
}

.message-template-name-field,
.message-template-body {
    height: auto;
    padding: 10px 12px;
    line-height: 1.45;
    color: #6c7688;
    background: #f6f7f8;
    cursor: text;
}

.message-template-name-field {
    height: 44px;
}

.message-template-body {
    min-height: 112px;
    resize: none;
}

.message-template-name-field:focus,
.message-template-body:focus {
    border-color: #9fb7aa;
    background: #ffffff;
    box-shadow: 0 0 0 2px rgba(22, 130, 92, 0.08);
}

.message-template-name-field.is-saving,
.message-template-body.is-saving {
    border-color: #d8bf75;
}

.message-template-name-field.is-saved,
.message-template-body.is-saved {
    border-color: #8fc7a6;
}

.message-template-name-field.is-error,
.message-template-body.is-error {
    border-color: #d66f6f;
}

.notification-variable-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.notification-variable-menu[hidden] {
    display: none;
}

.notification-variable-button {
    border: 1px solid #cfd8d4;
    border-radius: 6px;
    padding: 6px 9px;
    color: #345249;
    background: #f7faf8;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 750;
    cursor: pointer;
}

.notification-variable-button:hover,
.notification-variable-button:focus {
    border-color: #9fb7aa;
    background: #edf6f1;
}

.message-template-meta {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0 14px 14px;
    color: #52627a;
    font-size: 0.84rem;
}

.message-template-meta div {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 10px;
}

.message-template-meta dt {
    font-weight: 800;
}

.message-template-meta dd {
    margin: 0;
    white-space: pre-line;
}

.simple-list,
.time-list {
    display: grid;
    gap: 10px;
}

.simple-row,
.time-row {
    display: grid;
    gap: 8px;
    align-items: center;
}

.simple-row {
    grid-template-columns: minmax(0, 1fr) 48px;
}

.simple-row-day {
    grid-template-columns: minmax(0, 1fr) 48px;
}

.time-list {
    grid-template-columns: repeat(3, minmax(170px, 1fr));
    gap: 12px 32px;
}

.time-column {
    display: grid;
    align-content: start;
    gap: 12px;
}

.time-row {
    grid-template-columns: 34px minmax(90px, 1fr) 48px;
    column-gap: 12px;
}

.simple-row input,
.simple-row select,
.time-row input,
.time-row select {
    width: 100%;
    height: 40px;
    border: 1px solid #b7c0ba;
    border-radius: 6px;
    padding: 0 12px;
    background: #ffffff;
    color: #111827;
    font: inherit;
    font-size: 0.96rem;
}

.simple-row input.is-invalid,
.simple-row select.is-invalid,
.time-row input.is-invalid,
.time-row select.is-invalid {
    border: 2px solid #b45309;
    background: #fffaf0;
    box-shadow: 0 0 0 3px #fde7c7;
}

.simple-row select,
.time-row select {
    padding-right: 30px;
}

.delete-button {
    display: inline-flex;
    width: 48px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border: 1px solid #cbd5cf;
    border-radius: 6px;
    background: #ffffff;
    color: #64736b;
    font: inherit;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.delete-button span {
    display: block;
    width: 14px;
    height: 15px;
    position: relative;
    border: 1.8px solid currentColor;
    border-top: 0;
    border-radius: 0 0 2px 2px;
}

.delete-button span::before,
.delete-button span::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.delete-button span::before {
    top: -5px;
    width: 17px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
}

.delete-button span::after {
    top: -8px;
    width: 7px;
    height: 3px;
    border: 1.8px solid currentColor;
    border-bottom: 0;
    border-radius: 2px 2px 0 0;
}

.delete-button:hover {
    border-color: #c83232;
    background: #fff3f3;
    color: #c83232;
}

.simple-row-new input,
.simple-row-new select,
.time-row-new input,
.time-row-new select {
    border-color: var(--accent);
}

.add-line-button {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    justify-self: start;
    border: 1px solid var(--accent);
    border-radius: 6px;
    padding: 0 16px;
    background: #ffffff;
    color: var(--accent-dark);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.add-line-button:hover {
    background: var(--accent-soft);
}

.is-hidden {
    display: none !important;
}

.drag-handle {
    justify-self: end;
    color: #7f8a95;
    font-size: 1.3rem;
    line-height: 1;
    cursor: grab;
    user-select: none;
}

.time-list.is-sorting .time-row:not(.is-dragging):not(.time-drop-placeholder) {
    transition: border-color 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}

.time-row.is-dragging {
    display: none;
}

.time-drop-placeholder {
    pointer-events: none;
}

.time-drop-placeholder .drag-handle {
    color: var(--accent);
}

.time-drop-placeholder .drop-slot {
    display: flex;
    min-width: 0;
    height: 40px;
    align-items: center;
    border: 1px dashed var(--accent);
    border-radius: 6px;
    padding: 0 12px;
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-size: 0.86rem;
    font-weight: 800;
}

.time-drop-placeholder .drop-trash {
    width: 48px;
    height: 40px;
    border: 1px dashed #cbd5cf;
    border-radius: 6px;
    opacity: 0.45;
}

.settings-save-bar {
    position: fixed;
    right: max(18px, env(safe-area-inset-right));
    bottom: max(18px, env(safe-area-inset-bottom));
    z-index: 80;
    display: flex;
    max-width: min(720px, calc(100vw - 36px));
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    border: 1px solid rgba(217, 224, 220, 0.92);
    border-radius: 8px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 40px rgba(17, 24, 39, 0.16);
    backdrop-filter: blur(10px);
}

.settings-save-bar .button {
    border-color: var(--accent);
    border-radius: 6px;
    background: var(--accent);
    padding: 0 24px;
}

.settings-save-bar .button:hover {
    border-color: var(--accent-dark);
    background: var(--accent-dark);
}

.settings-page,
.admin-test-availability-panel,
.fixed-schedule-page {
    padding-bottom: 112px;
}

.admin-form {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) minmax(180px, 1fr) minmax(180px, 1fr) auto;
    gap: 14px;
    align-items: end;
    margin-bottom: 24px;
}

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

.admin-checks {
    display: grid;
    gap: 8px;
    margin: 0;
    border: 0;
    padding: 0;
}

.admin-checks legend {
    margin-bottom: 8px;
    padding: 0;
    font-weight: 750;
}

.week-board {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 24px;
}

.week-planning-panel {
    margin-top: 24px;
    border: 1px solid #d9e0dc;
    border-radius: 6px;
    padding: 22px;
    background: #ffffff;
}

.week-finalize-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 18px;
    border: 1px solid #d9e0dc;
    border-radius: 6px;
    padding: 16px 18px;
    background: #ffffff;
}

.week-finalize-panel.is-finalized {
    border-color: #9fd4bd;
    background: #f1f8f4;
}

.week-finalize-panel .week-reopen-warning {
    max-width: 420px;
    margin: 0 0 8px;
    color: #8a3b2d;
    font-size: 0.86rem;
}

.week-finalize-panel strong {
    display: block;
    margin-bottom: 4px;
    color: #111827;
    font-size: 1rem;
    font-weight: 850;
}

.week-finalize-panel p {
    margin: 0;
    color: #52627a;
    font-size: 0.92rem;
    line-height: 1.45;
}

.week-finalize-panel form {
    flex: 0 0 auto;
    margin: 0;
}

.week-slot-pause-help {
    margin: 14px 0 -8px;
    color: #52627a;
    font-size: 0.9rem;
    line-height: 1.45;
}

.week-day-column {
    display: grid;
    align-content: start;
    gap: 14px;
    min-width: 0;
}

.week-day-header {
    border-bottom: 1px solid #e3e8e2;
    padding: 0 0 12px;
}

.week-day-header h2 {
    margin-bottom: 4px;
    font-size: 1rem;
    font-weight: 820;
}

.week-day-header span {
    color: var(--muted);
    font-size: 0.9rem;
}

.day-slot-form {
    display: grid;
    gap: 10px;
}

select.is-native-hidden,
.day-slot-form select.is-native-hidden {
    display: none;
}

.custom-select {
    position: relative;
}

.custom-select-trigger {
    display: flex;
    width: 100%;
    height: 40px;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #b7c0ba;
    border-radius: 6px;
    padding: 0 34px 0 12px;
    background: #ffffff;
    color: #111827;
    font: inherit;
    font-size: 0.96rem;
    font-weight: 760;
    text-align: left;
    cursor: pointer;
}

.custom-select-trigger::after {
    content: "";
    position: absolute;
    right: 13px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #66726b;
}

.custom-select-trigger.is-placeholder {
    color: #111827;
}

.custom-select-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    z-index: 30;
    display: none;
    width: 100%;
    max-height: min(280px, 60vh);
    overflow-y: auto;
    border: 1px solid #cbd5cf;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 14px 28px rgba(23, 32, 27, 0.14);
}

.custom-select.is-open .custom-select-menu {
    display: grid;
}

.custom-select-search {
    position: sticky;
    top: 0;
    z-index: 1;
    border-bottom: 1px solid #eef2ed;
    padding: 8px;
    background: #ffffff;
}

.custom-select-search .form-control {
    min-height: 38px;
}

.custom-select-option {
    min-height: 38px;
    border: 0;
    border-bottom: 1px solid #eef2ed;
    padding: 0 12px;
    background: #ffffff;
    color: #111827;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.custom-select-option:last-child {
    border-bottom: 0;
}

.custom-select-option:hover,
.custom-select-option.is-selected {
    background: var(--accent-soft);
    color: var(--accent-dark);
}

.custom-select-option:disabled {
    background: #f4f6f4;
    color: #9aa39d;
    cursor: not-allowed;
    text-decoration: line-through;
}

.custom-select-option[hidden] {
    display: none;
}

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

.day-slot-actions .add-line-button {
    width: auto;
    min-width: 132px;
}

.text-button {
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 650;
    cursor: pointer;
}

.text-button.is-hidden {
    visibility: hidden;
}

.text-button:hover {
    color: var(--accent-dark);
    text-decoration: underline;
}

.slot-list {
    display: grid;
    gap: 8px;
}

.slot-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 40px;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 8px;
    background: #fbfcfb;
}

.slot-row-fixed {
    border-color: #c8ddd4;
    background: #f3faf7;
    box-shadow: inset 3px 0 0 #8fc5ad;
}

.slot-row-paused {
    border-color: #d8d0bb;
    border-style: dashed;
    background: #f7f5ef;
    box-shadow: inset 3px 0 0 #b6a77c;
}

.slot-row > div {
    display: grid;
    gap: 2px;
}

.slot-row .slot-time {
    font-weight: 720;
}

.slot-row .slot-court {
    color: var(--muted);
}

.slot-row-paused .slot-time,
.slot-row-paused .slot-court {
    opacity: 0.62;
    text-decoration: line-through;
}

.slot-paused-badge {
    justify-self: start;
    margin-top: 3px;
    border-radius: 999px;
    padding: 2px 7px;
    background: #e8e1ce;
    color: #685b38;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.035em;
    line-height: 1.35;
    text-transform: uppercase;
}

.slot-row form {
    margin: 0;
}

.slot-state-button {
    display: inline-flex;
    width: 40px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border: 1px solid #cabf9e;
    border-radius: 6px;
    background: #fffdf7;
    color: #725f27;
    font: inherit;
    font-size: 1rem;
    font-weight: 850;
    cursor: pointer;
}

.slot-state-button.is-resume {
    border-color: #9ccbb5;
    background: #f2faf6;
    color: #226d4b;
}

.slot-state-button:hover {
    filter: brightness(0.96);
}

.slot-state-button:focus-visible {
    outline: 3px solid rgba(42, 123, 87, 0.22);
    outline-offset: 2px;
}

.slot-row .delete-button {
    width: 40px;
    height: 36px;
}

.slot-row .delete-button span {
    transform: scale(0.88);
}

.icon-button {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    color: var(--muted);
    cursor: pointer;
}

.icon-button:hover {
    border-color: #e3afa6;
    background: #fff0ed;
}

.icon-button.danger:hover {
    color: #9d2f23;
}

.profile-edit-toggle:hover {
    border-color: #9dcbb8;
    background: #f5fbf8;
    color: var(--accent-dark);
}

.empty-state {
    margin: 0;
    border: 1px dashed #d8dfda;
    border-radius: 6px;
    padding: 12px;
    background: #fbfcfb;
    color: var(--muted);
    font-size: 0.9rem;
}

.club-messages-page {
    display: grid;
    gap: 18px;
    max-width: 880px;
}

.club-message-list {
    display: grid;
    gap: 12px;
}

.club-message-sensitive-warning {
    display: grid;
    gap: 4px;
    border: 1px solid #f1c27d;
    border-radius: 8px;
    padding: 12px 14px;
    background: #fff8e8;
    color: #553917;
    line-height: 1.45;
}

.club-message-sensitive-warning strong {
    font-size: 0.95rem;
}

.club-message-sensitive-warning span {
    font-size: 0.9rem;
}

.club-message-card {
    position: relative;
    display: grid;
    gap: 10px;
    border: 1px solid #d9e0dc;
    border-radius: 8px;
    padding: 14px 58px 14px 16px;
    background: #ffffff;
}

.club-message-card.is-unread {
    border-color: #9fc8b5;
    background: #f6fbf8;
}

.club-message-card.has-sensitive-code {
    border-color: #edc97c;
}

.club-message-main {
    display: grid;
    gap: 10px;
    border-radius: 6px;
    color: inherit;
    text-decoration: none;
}

a.club-message-main:focus-visible {
    outline: 3px solid rgba(22, 127, 95, 0.25);
    outline-offset: 4px;
}

a.club-message-main:hover h2 {
    color: var(--brand);
}

.club-message-head {
    display: block;
    padding-right: 4px;
}

.club-message-head > div {
    display: grid;
    gap: 6px;
    justify-items: start;
}

.club-message-head h2 {
    margin: 0;
    color: var(--text);
    font-size: 1rem;
    font-weight: 760;
    line-height: 1.35;
}

.club-message-badge {
    display: inline-flex;
    min-height: 22px;
    align-items: center;
    border: 1px solid #cfe5da;
    border-radius: 999px;
    padding: 2px 8px;
    background: #ffffff;
    color: #28745a;
    font-size: 0.76rem;
    font-weight: 780;
    white-space: nowrap;
}

.club-message-sensitive-badge {
    display: inline-flex;
    min-height: 22px;
    align-items: center;
    border: 1px solid #efd28f;
    border-radius: 999px;
    padding: 2px 8px;
    background: #fff8e8;
    color: #7b5116;
    font-size: 0.76rem;
    font-weight: 780;
    white-space: nowrap;
}

.club-message-body {
    margin: 0;
    color: #27332d;
    line-height: 1.55;
}

.club-message-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.club-message-actions .button {
    min-width: 150px;
}

.club-message-code-button {
    font-variant-numeric: tabular-nums;
}

.club-message-code-help {
    flex-basis: 100%;
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.club-message-delete {
    position: absolute;
    top: 12px;
    right: 12px;
}

.club-message-card time {
    color: var(--muted);
    font-size: 0.88rem;
}

.availability-subheader {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.availability-subheader h2 {
    margin: 0 0 5px;
    color: var(--text);
    font-size: 1.18rem;
}

.availability-subheader-regular {
    margin-bottom: 16px;
}

.availability-week-summary {
    display: grid;
    gap: 2px;
    margin: 4px 0 7px;
}

.availability-week-summary span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 780;
    text-transform: uppercase;
}

.availability-week-summary strong {
    color: var(--text);
    font-size: clamp(1.08rem, 2.8vw, 1.35rem);
    font-weight: 880;
    line-height: 1.16;
}

.availability-subheader p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 650;
}

.availability-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
    gap: 14px;
}

.availability-day {
    display: grid;
    align-content: start;
    gap: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px 16px 18px;
    background: #fbfcfb;
}

.availability-day h2 {
    display: grid;
    gap: 3px;
    margin-bottom: 0;
    font-size: 1.02rem;
    color: var(--text);
    text-align: left;
}

.availability-day h2 strong {
    font-weight: 860;
    line-height: 1.1;
}

.availability-day h2 span {
    color: #7a857e;
    font-size: 0.8rem;
    font-weight: 560;
}

.availability-check-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 28px;
    align-items: center;
    gap: 12px;
    border: 1px solid #e3e8e2;
    border-radius: 8px;
    padding: 10px 11px;
    background: #ffffff;
}

.availability-unavailable-all-week {
    border: 1px solid #cfdcd4;
    border-radius: 8px;
    padding: 14px;
    background: #f7faf8;
}

.availability-unavailable-all-week span {
    display: grid;
    gap: 3px;
}

.availability-unavailable-all-week small {
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 500;
}

.availability-check-row > div {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.availability-check-row strong {
    color: #334139;
    font-size: 0.92rem;
    font-weight: 780;
}

.availability-check-row span {
    color: #6f7a73;
    font-size: 0.78rem;
    font-weight: 620;
}

.availability-check {
    display: grid;
    position: relative;
    width: 28px;
    height: 28px;
    place-items: center;
    cursor: pointer;
}

.availability-check input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.availability-check > span {
    display: block;
    width: 22px;
    height: 22px;
    border: 2px solid #b8c7be;
    border-radius: 6px;
    background: #fbfcfb;
}

.availability-check input:checked + span {
    border-color: var(--accent);
    background: var(--accent);
    box-shadow: inset 0 0 0 4px #ffffff;
}

.availability-check input:focus-visible + span {
    outline: 3px solid rgba(68, 133, 103, 0.24);
    outline-offset: 2px;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid var(--line);
    margin-top: 24px;
    padding-top: 20px;
}

.form-actions .button {
    min-width: min(100%, 220px);
}

@media (max-width: 760px) {
    .site-header {
        align-items: center;
        flex-direction: row;
        justify-content: space-between;
        padding: 18px 20px;
    }

    .site-nav {
        width: auto;
        justify-content: flex-end;
    }

    .account-menu {
        width: auto;
    }

    .account-menu summary {
        min-height: 44px;
        width: auto;
        justify-content: space-between;
    }

    .account-menu-panel {
        position: absolute;
        top: calc(100% + 4px);
        right: 0;
        z-index: 30;
        width: max-content;
        min-width: 100%;
        max-width: calc(100vw - 40px);
    }

    .home-actions {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 28px;
    }

    .home-action {
        min-height: 88px;
        gap: 5px;
        padding: 16px 18px;
    }

    .home-action span {
        font-size: 1.35rem;
    }

    .home-action small {
        font-size: 1rem;
    }

    .app-install-hero {
        align-items: stretch;
        flex-direction: column;
    }

    .app-install-hero .button {
        width: 100%;
    }

    .app-install-grid {
        grid-template-columns: 1fr;
    }

    .app-install-card {
        padding: 18px;
    }

    .club-post-admin-layout {
        grid-template-columns: 1fr;
    }

    .club-post-response-actions .button {
        flex: 1 1 180px;
    }

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

    .schedule-command-summary,
    .schedule-review-facts,
    .schedule-publish-review-list {
        grid-template-columns: 1fr;
    }

    .schedule-management-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .schedule-command-metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .section-header {
        flex-direction: column;
    }

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

    .profile-player-row {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .profile-edit-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .profile-edit-actions .button {
        width: 100%;
        min-width: 0;
    }

    .profile-unsubscribe-row {
        align-items: stretch;
        flex-direction: column;
    }

    .membership-summary,
    .membership-payment-options {
        grid-template-columns: 1fr;
    }

    .membership-notify-form,
    .membership-notify-form .button {
        width: 100%;
    }

    .admin-player-form-grid,
    .admin-player-summary,
    .admin-player-registration-summary,
    .admin-player-payment-grid {
        grid-template-columns: 1fr;
    }

    .admin-player-registration-player {
        grid-template-columns: 1fr;
    }

    .admin-player-list-header {
        align-items: stretch;
    }

    .admin-player-header-actions,
    .admin-player-list-header .button,
    .admin-player-toolbar {
        width: 100%;
    }

    .admin-player-header-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .admin-player-meta {
        justify-content: flex-start;
    }

    .admin-player-registration-heading,
    .admin-player-payment-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-player-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-player-payment-actions {
        align-items: flex-start;
        flex-direction: column;
        justify-content: flex-start;
    }

    .admin-player-payment-actions > a {
        margin-right: 0;
    }

    .admin-player-payment-status-actions {
        justify-content: flex-start;
    }

    .settings-save-bar {
        right: max(12px, env(safe-area-inset-right));
        bottom: max(12px, env(safe-area-inset-bottom));
        left: max(12px, env(safe-area-inset-left));
        max-width: none;
        flex-wrap: wrap;
        align-items: stretch;
        justify-content: stretch;
    }

    .settings-save-bar .button {
        width: 100%;
        min-width: 0;
        flex: 1 1 180px;
    }

    .test-availability-save .checkbox-line {
        flex-basis: 100%;
        max-width: none;
    }

    .test-availability-grid {
        min-width: calc(210px + var(--availability-days) * 66px);
        grid-template-columns: 210px repeat(var(--availability-days), 66px);
    }

    .schedule-board {
        grid-template-columns: 1fr;
    }

    .schedule-day {
        gap: 14px;
        padding: 16px;
    }

    .schedule-day-header h2 {
        font-size: 1.15rem;
    }

    .schedule-day-header span {
        font-size: 0.98rem;
    }

    .schedule-match-card {
        gap: 12px;
        padding: 14px;
    }

    .schedule-match-title {
        font-size: 1.08rem;
    }

    .schedule-match-title strong {
        font-size: 1.12rem;
    }

    .schedule-replace-modal .modal-header {
        cursor: default;
        user-select: auto;
    }

    .schedule-management-actions {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .schedule-management-actions .button,
    .schedule-management-actions form {
        width: 100%;
    }

    .planning-steps ol {
        min-width: 780px;
    }

    .schedule-insight-grid {
        grid-template-columns: 1fr;
    }

    .schedule-insight-list li {
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
    }

    .schedule-player-list li {
        grid-template-columns: 1fr;
        font-size: 1rem;
        line-height: 1.45;
    }

    .schedule-player-list small {
        font-size: 0.9rem;
    }

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

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

    .settings-table-head {
        display: none;
    }

    .settings-table-courts .settings-table-row,
    .settings-table-days .settings-table-row,
    .settings-table-times .settings-table-row {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 12px;
    }

    .settings-toggle {
        justify-content: flex-start;
    }

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

    .message-template-header {
        display: grid;
    }

    .message-template-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .message-template-card summary {
        display: grid;
        grid-template-columns: 1fr auto;
    }

    .message-template-arrow {
        grid-column: 2;
        grid-row: 1;
    }

    .message-template-meta div {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .club-post-admin-layout {
        grid-template-columns: 1fr;
    }

    .club-post-admin-list {
        position: static;
    }

    .club-post-form-section {
        padding: 18px;
    }

    .roster-settings-grid > .roster-settings-card:nth-child(1) {
        order: 1;
    }

    .roster-settings-grid > .roster-settings-card:nth-child(2) {
        order: 3;
    }

    .roster-settings-grid > .roster-settings-card:nth-child(3) {
        order: 5;
    }

    .time-list {
        grid-template-columns: 1fr;
    }

    .fixed-court-board,
    .fixed-court-slot-row {
        grid-template-columns: 1fr;
    }

    .fixed-court-slot-row .delete-button {
        width: 100%;
    }

    .settings-titlebar {
        flex-direction: column;
    }

    .simple-row,
    .simple-row-day {
        grid-template-columns: minmax(0, 1fr) 48px;
    }

    .time-row {
        grid-template-columns: 34px 1fr 48px;
    }

    .simple-row-new {
        grid-template-columns: 1fr;
    }

    .add-line-button {
        width: 100%;
    }

    .settings-add-bar {
        display: contents;
    }

    .settings-add-bar .add-action-group {
        margin-top: -4px;
    }

    .settings-add-bar .add-action-group:nth-child(1) {
        order: 2;
    }

    .settings-add-bar .add-action-group:nth-child(2) {
        order: 4;
    }

    .settings-add-bar .add-action-group:nth-child(3) {
        order: 6;
    }

    .settings-add-bar .add-action-group:nth-child(3) {
        margin-left: 0;
    }

    .week-board {
        grid-template-columns: 1fr;
    }

    .week-planning-panel {
        padding: 16px;
    }

    .week-finalize-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .week-finalize-panel .button,
    .week-finalize-panel form {
        width: 100%;
    }

    .week-day-column {
        gap: 10px;
    }

    .day-slot-form {
        gap: 8px;
    }

    .day-slot-form .form-control {
        height: 38px;
        border-radius: 6px;
        padding-left: 10px;
        font-size: 0.92rem;
    }

    .day-slot-form select.form-control {
        line-height: 38px;
        padding-right: 34px;
        background-position: right 10px center;
    }

    .day-slot-actions .add-line-button {
        min-height: 38px;
        width: auto;
        min-width: 118px;
        padding: 0 14px;
        font-size: 0.92rem;
    }

    .phone-field,
    .data-row {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .fixed-time-inline-form {
        grid-template-columns: 1fr;
    }

    .fixed-player-card-summary {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .fixed-time-inline-form .button,
    .fixed-time-inline-actions,
    .fixed-time-row-actions,
    .fixed-time-row-actions .button,
    .fixed-time-row-actions form {
        width: 100%;
    }

    .fixed-time-row-actions,
    .fixed-time-inline-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .pwa-install-banner {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .pwa-install-banner .button {
        grid-column: 1 / -1;
        width: 100%;
    }

    .push-required-banner,
    .push-required-card {
        grid-template-columns: minmax(0, 1fr);
    }

    .push-required-banner .button,
    .push-required-card .button {
        width: 100%;
    }

    .hero {
        min-height: auto;
    }

    .hero h1 {
        font-size: clamp(2.3rem, 13vw, 3.25rem);
    }

    .intro {
        font-size: 1.12rem;
        line-height: 1.55;
    }
}

@media (max-width: 520px) {
    .schedule-management-actions,
    .schedule-command-metrics {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1280px) and (min-width: 761px) {
    .roster-settings-grid {
        grid-template-columns: 300px 300px minmax(320px, 1fr);
    }

    .settings-add-bar {
        grid-template-columns: 300px 300px minmax(320px, 1fr);
        gap: 24px;
    }

    .time-list {
        grid-template-columns: repeat(2, minmax(170px, 1fr));
        gap: 12px 28px;
    }
}
