.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    width: 100%;
    background: rgba(252, 250, 245, 0.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(23, 23, 23, 0.07);
}
.site-header__inner {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}
.brand-mark__icon,
.site-loader__mark {
    position: relative;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    box-shadow: inset 0 0 0 1px rgba(23, 23, 23, 0.08);
    overflow: hidden;
}
.brand-mark__core,
.site-loader__mark .brand-mark__core {
    position: absolute;
    inset: 8px;
    border-radius: 999px;
    border: 2px solid rgba(255,255,255,0.78);
    animation: pulse-core 2.2s ease-in-out infinite;
}
.brand-mark__core::before,
.brand-mark__core::after {
    content: '';
    position: absolute;
    border-radius: 999px;
}
.brand-mark__core::before {
    inset: 6px;
    border: 2px solid rgba(255,255,255,0.38);
}
.brand-mark__core::after {
    inset: -4px;
    border: 1px solid rgba(255,255,255,0.22);
    opacity: 0.88;
}
.brand-mark__orbit {
    position: absolute;
    inset: 4px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.22);
    animation: pulse-ring 2.2s ease-in-out infinite;
}
.brand-mark__ball {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 4px 10px rgba(23,23,23,0.16);
    animation: tennis-spin 2.4s linear infinite;
}
.brand-mark__ball::before,
.brand-mark__ball::after {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: 999px;
    border: 1.8px solid rgba(255, 204, 0, 0.96);
    clip-path: ellipse(36% 78% at 28% 50%);
}
.brand-mark__ball::after {
    clip-path: ellipse(36% 78% at 72% 50%);
}
.brand-mark__text { display: grid; gap: 2px; }
.brand-mark__text strong { font-size: 1.02rem; }
.brand-mark__text small { font-size: 0.78rem; }

.site-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.site-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 16px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-soft);
    position: relative;
    transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}
.site-nav a::before {
    content: '';
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 8px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #ffcc00, #ff9900);
    opacity: 0;
    transform: scaleX(0.4);
    transform-origin: center;
    transition: opacity 0.18s ease, transform 0.18s ease;
}
.site-nav a:hover,
.site-nav a.is-active { color: var(--text); }
.site-nav a:hover::before,
.site-nav a.is-active::before { opacity: 1; transform: scaleX(1); }
.site-nav a span,
.site-nav a { z-index: 1; }
.nav-cta {
    background: var(--text);
    color: #fff !important;
}
.nav-cta::before { display: none; }
.nav-toggle {
    display: none;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.78);
}
.nav-toggle span { display: block; width: 18px; height: 2px; border-radius: 999px; margin: 4px auto; background: var(--text); }

.site-footer {
    width: 100%;
    padding: 24px 0 34px;
    border-top: 1px solid rgba(23, 23, 23, 0.07);
    background: rgba(255,255,255,0.34);
}
.site-footer__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto;
    gap: 20px;
    align-items: start;
}
.footer-branding { display: grid; gap: 8px; max-width: 520px; }
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    align-content: start;
}
.footer-links a,
.footer-meta a { color: var(--text-soft); }
.footer-links a:hover,
.footer-meta a:hover { color: var(--text); }
.footer-meta { justify-self: end; }

.cookie-banner {
    position: fixed;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%) translateY(18px);
    width: min(920px, calc(100vw - 18px));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.97);
    box-shadow: 0 18px 44px rgba(23,23,23,0.12);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 95;
}
.cookie-banner.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.cookie-banner.is-hiding { opacity: 0; transform: translateX(-50%) translateY(18px); pointer-events: none; }
.cookie-banner__copy { display: grid; gap: 2px; }
.cookie-banner__copy strong { color: var(--text); }
.cookie-banner__actions { flex-shrink: 0; }

.button-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.button-row--end { justify-content: flex-end; }
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 18px;
    border-radius: 16px;
    border: 1px solid transparent;
    font-weight: 700;
    letter-spacing: -0.01em;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, opacity 0.18s ease;
}
.button__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.05rem;
    margin-right: 8px;
    font-size: 0.95em;
    flex-shrink: 0;
}
.button__label { display: inline-flex; align-items: center; }
.button--solid { background: var(--text); color: #fff; }
.button--solid:hover { background: #242424; }
.button--ghost { background: rgba(255,255,255,0.76); color: var(--text); border-color: var(--line); }
.button--ghost:hover { border-color: var(--line-strong); background: rgba(255,255,255,0.96); }
.button--small { min-height: 40px; padding: 0 13px; border-radius: 999px; font-size: 0.9rem; }
.button--ghost.button--small { background: rgba(255,255,255,0.84); border-color: rgba(23,23,23,0.1); }
.button--ghost.button--small .button__icon { margin-right: 6px; width: 0.95rem; }
.button--wide { width: 100%; }
.button[disabled] { opacity: 0.45; cursor: not-allowed; }
.inline-form { display: inline-flex; margin: 0; }
.button--danger-soft {
    border-color: rgba(203,76,76,0.18);
    color: #a13737;
    background: rgba(203,76,76,0.06);
}
.button--danger-soft:hover {
    border-color: rgba(203,76,76,0.3);
    background: rgba(203,76,76,0.1);
}
.button--success-soft,
.button[data-status-tone="completed"] {
    border-color: rgba(22,125,106,0.2);
    color: #146b5d;
    background: rgba(22,125,106,0.08);
}
.button--success-soft:hover,
.button[data-status-tone="completed"]:hover {
    border-color: rgba(22,125,106,0.32);
    background: rgba(22,125,106,0.12);
}
.button--current-soft,
.button[data-status-tone="current"],
.button[data-status-tone="live"] {
    border-color: rgba(255,153,0,0.24);
    color: #9c5c00;
    background: linear-gradient(135deg, rgba(255,204,0,0.14), rgba(255,153,0,0.1));
}
.button--current-soft:hover,
.button[data-status-tone="current"]:hover,
.button[data-status-tone="live"]:hover {
    border-color: rgba(255,153,0,0.34);
    background: linear-gradient(135deg, rgba(255,204,0,0.2), rgba(255,153,0,0.14));
}
.button--warning-soft,
.button[data-status-tone="warning"] {
    border-color: rgba(168,117,18,0.24);
    color: #7a5608;
    background: rgba(255,237,193,0.72);
}
.button--warning-soft:hover,
.button[data-status-tone="warning"]:hover {
    border-color: rgba(168,117,18,0.34);
    background: rgba(255,237,193,0.94);
}
.button[data-status-tone="draft"],
.button[data-status-tone="upcoming"] {
    border-color: rgba(23,23,23,0.12);
    background: rgba(255,255,255,0.88);
}
.button[data-status-tone="draft"]:hover,
.button[data-status-tone="upcoming"]:hover {
    border-color: rgba(23,23,23,0.18);
    background: rgba(255,255,255,1);
}
.button[data-status-tone="danger"] {
    border-color: rgba(203,76,76,0.18);
    color: #a13737;
    background: rgba(203,76,76,0.06);
}
.button[data-status-tone="danger"]:hover {
    border-color: rgba(203,76,76,0.3);
    background: rgba(203,76,76,0.1);
}
.invite-share-row--actions .button-row { justify-content: flex-end; }
.invite-share-row--actions > * {
    min-width: 0;
}
.invite-share-row--actions input {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.session-row__actions { align-items: center; }
.verification-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.auth-inline-links {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}
.auth-inline-links a {
    color: var(--text-soft);
    font-weight: 700;
}
.auth-inline-links a:hover { color: var(--text); }

.button.is-loading::after,
.loading-spinner::after {
    content: '';
    width: 16px;
    height: 16px;
    margin-left: 10px;
    border-radius: 999px;
    border: 2px solid rgba(255,255,255,0.28);
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
}
.button--ghost.is-loading::after { border-color: rgba(23,23,23,0.2); border-top-color: var(--text); }

.stack { display: grid; gap: 16px; }
.stack--spacious { gap: 22px; }
.stack--compact { gap: 10px; }
.field, .field-group-heading { display: grid; gap: 8px; }
.field-group-heading--tight { margin-top: 10px; }
.field-grid--two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
    margin-top: 10px;
}
label { font-weight: 700; color: var(--text); }
input,
select,
textarea {
    width: 100%;
    min-height: 54px;
    padding: 0 16px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.74);
    color: var(--text);
    transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}
select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 56px;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M3 5.25L7 9.25L11 5.25' stroke='%23171717' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 14px 14px;
}
select::-ms-expand { display: none; }
textarea { min-height: 140px; padding: 14px 16px; }
input:hover,
select:hover,
textarea:hover { border-color: var(--line-strong); }

.field.is-inactive label {
    color: rgba(23,23,23,0.46);
}
.field.is-inactive input,
.field.is-inactive select,
.field.is-inactive textarea {
    background: rgba(23,23,23,0.045);
    border-color: rgba(23,23,23,0.08);
    color: rgba(23,23,23,0.42);
    box-shadow: none;
}
.field.is-inactive select {
    cursor: not-allowed;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M3 5.25L7 9.25L11 5.25' stroke='%23171717' stroke-opacity='0.42' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.field.is-inactive .form-help,
.field.is-inactive small,
.field.is-inactive .field-note {
    color: rgba(23,23,23,0.42);
}
small.form-help,
.form-help,
.field-note,
.field-note p { color: var(--text-soft); }
.event-form-panel .form-help + .field,
.event-form-panel .form-help + .field-group-heading,
.event-form-panel .field small + .field {
    margin-top: 10px;
}
[data-event-builder] .event-form-panel .field { margin-top: 10px; }
[data-event-builder] .event-form-panel .field-group-heading + .field,
[data-event-builder] .event-form-panel .field-grid + .field { margin-top: 14px; }
[data-event-builder] select { padding-right: 70px; }
.icon-button {
    width: 42px;
    min-width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.72);
    color: var(--text);
}

.surface-block,
.panel,
.form-panel,
.event-form-panel,
.metric-card,
.table-shell,
.score-capture,
.current-match,
.round-card,
.chart-card,
.hero-demo-scoreboard {
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background: var(--surface);
}
.surface-block--ghost,
.leaderboard-shell--clean,
.form-panel,
.event-form-panel {
    background: transparent;
    border-color: rgba(23, 23, 23, 0.08);
    box-shadow: none;
}
.surface-block,
.panel,
.form-panel,
.event-form-panel,
.chart-card,
.current-match,
.round-card,
.metric-card,
.hero-demo-scoreboard {
    min-width: 0;
    padding: 18px;
}
.table-shell { overflow-x: auto; padding: 0; }
.metric-card { display: grid; gap: 6px; }
.metric-card strong { color: var(--text-soft); }
.metric-value { color: var(--text); font-weight: 700; }
.panel--sticky { position: sticky; top: 96px; align-self: start; }

.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 700;
    color: var(--text);
    background: linear-gradient(135deg, rgba(255,204,0,0.2), rgba(255,153,0,0.16));
    border: 1px solid rgba(23,23,23,0.08);
    overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1 / 1; }
.avatar--xs { width: 28px; height: 28px; font-size: 0.72rem; }
.avatar--sm { width: 38px; height: 38px; font-size: 0.82rem; }
.avatar--md { width: 48px; height: 48px; font-size: 1rem; }
.avatar--lg { width: 92px; height: 92px; min-width: 92px; aspect-ratio: 1 / 1; font-size: 1.45rem; }

.role-chip,
.elo-chip,
.status-pill,
.winner-pill,
.live-sync-pill,
.round-queue-count,
.round-tag {
    appearance: none;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 11px;
    border-radius: 999px;
    border: 1px solid var(--line);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text);
    background: rgba(255,255,255,0.76);
}
.role-chip--soft { background: rgba(255,255,255,0.42); }
.status-pill--current { background: linear-gradient(135deg, rgba(255,204,0,0.14), rgba(255,153,0,0.12)); border-color: rgba(255,153,0,0.2); }
.status-pill--completed { background: rgba(22,125,106,0.08); border-color: rgba(22,125,106,0.18); }
.status-pill--upcoming,
.status-pill--live,
.status-pill--draft { background: rgba(255,255,255,0.76); }
.status-pill--danger { background: rgba(203,76,76,0.08); border-color: rgba(203,76,76,0.22); color: #a13737; }
.role-chip--interactive { cursor: pointer; background: rgba(255,255,255,0.84); }
.role-chip--interactive:hover { border-color: rgba(23,23,23,0.16); background: rgba(255,255,255,1); }
.role-chip--user,
.role-chip--member { background: rgba(255,255,255,0.82); }
.role-chip--admin,
.role-chip--staff { background: rgba(36,93,196,0.08); border-color: rgba(36,93,196,0.2); color: #214c9d; }
.role-chip--owner,
.role-chip--super-admin { background: linear-gradient(135deg, rgba(255,204,0,0.14), rgba(255,153,0,0.12)); border-color: rgba(255,153,0,0.22); color: #7a5608; }
.role-chip--verified { background: rgba(22,125,106,0.08); border-color: rgba(22,125,106,0.18); color: #146b5d; }
.role-chip--pending { background: rgba(255,237,193,0.78); border-color: rgba(168,117,18,0.22); color: #7a5608; }
.winner-pill--a,
.winner-pill--b { background: rgba(22,125,106,0.08); border-color: rgba(22,125,106,0.2); }
.winner-pill--draw { background: linear-gradient(135deg, rgba(255,204,0,0.12), rgba(255,153,0,0.12)); border-color: rgba(255,153,0,0.2); }
.elo-badge-modern {
    display: inline-grid;
    gap: 2px;
    min-width: 92px;
    padding: 8px 12px;
    border-radius: 18px;
    border: 1px solid rgba(255, 204, 0, 0.32);
    background: linear-gradient(135deg, rgba(255,204,0,0.14), rgba(255,153,0,0.12) 58%, rgba(255,255,255,0.82));
    text-align: left;
}
.elo-badge-modern small { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.05em; }
.elo-badge-modern strong { color: var(--text); font-size: 1rem; }
.elo-badge-modern--inline { min-width: 84px; }

.group-listing,
.session-list,
.list-stack,
.player-picker-list { display: grid; gap: 10px; }
.group-listing--clean,
.session-list--modern { gap: 14px; }
.group-row,
.session-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 8px 0 18px;
    border-bottom: 1px solid rgba(23,23,23,0.08);
}
.group-row:last-child,
.session-row:last-child { border-bottom: 0; padding-bottom: 0; }
.session-row h3,
.group-row h3 { margin-top: 8px; }
.group-row__main,
.session-row__main,
.player-row-inline {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.group-row__meta,
.row-meta,
.player-row-inline__meta {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.group-row__side { display: flex; align-items: center; gap: 12px; }
.button-row--wrap { flex-wrap: wrap; }
.session-row--modern,
.group-row--modern { padding-bottom: 16px; }
.session-row--modern {
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: start;
}
.session-row--modern .session-row__main { align-items: flex-start; }
.session-row--modern .session-row__actions {
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    width: 100%;
}
.session-row--modern .session-row__actions .button,
.session-row--modern .session-row__actions .inline-form { flex: 0 0 auto; }

.small-table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap;
}
.small-table th,
.small-table td {
    padding: 12px 10px;
    border-bottom: 1px solid rgba(23,23,23,0.07);
    text-align: left;
    font-size: 0.95rem;
}
.leaderboard-table--event th,
.leaderboard-table--event td { text-align: center; }
.leaderboard-table--event th:nth-child(2),
.leaderboard-table--event td:nth-child(2) { text-align: left; }
.leaderboard-table--event tbody td:not(:nth-child(2)) { text-align: center; }
.small-table th {
    color: var(--text-soft);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.small-table tbody tr:last-child td { border-bottom: 0; }
.score-accent-cell { background: linear-gradient(180deg, rgba(255,204,0,0.12), rgba(255,153,0,0.12)); }
.leaderboard-player .name-short { display: none; }

.segmented-choice {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.segmented-choice__item { position: relative; }
.segmented-choice__item input { position: absolute; opacity: 0; inset: 0; }
.segmented-choice__item span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 16px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.76);
    color: var(--text);
    font-weight: 600;
    transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, opacity 0.18s ease;
}
[data-event-builder] .segmented-choice__item input:checked + span {
    background: linear-gradient(135deg, var(--brand), var(--accent));
    border-color: transparent;
    color: #171717;
    box-shadow: 0 10px 24px rgba(255, 153, 0, 0.14);
}
[data-event-builder] .segmented-choice__item input:disabled + span {
    background: rgba(23,23,23,0.04);
    border-color: rgba(23,23,23,0.08);
    color: rgba(23,23,23,0.34);
    box-shadow: none;
    opacity: 0.72;
    cursor: not-allowed;
}
.segmented-choice__item:active span { transform: scale(0.985); }
.segmented-choice--stacked { display: grid; }
.segmented-choice--triple .segmented-choice__item { flex: 1 1 170px; }

[data-event-builder] .player-select-row.is-selected {
    border-color: rgba(255, 153, 0, 0.28);
    background: linear-gradient(135deg, rgba(255, 204, 0, 0.1), rgba(255, 153, 0, 0.08));
}
[data-event-builder] .player-select-row.is-selected .player-select-chip__order {
    background: linear-gradient(135deg, var(--brand), var(--accent));
    border-color: transparent;
    color: #171717;
}

.court-list { display: grid; gap: 12px; margin-top: 10px; }
.court-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
}
.court-row__index {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255,255,255,0.76);
    border: 1px solid var(--line);
    color: var(--text);
    font-weight: 700;
}
[data-add-court] {
    background: linear-gradient(135deg, var(--brand), var(--accent));
    border-color: transparent;
    color: #171717;
    box-shadow: 0 10px 22px rgba(255, 153, 0, 0.14);
}
[data-add-court]:hover { filter: brightness(0.98); }
.court-row [data-remove-court] {
    width: 46px;
    min-width: 46px;
    height: 46px;
    border-radius: 16px;
    border: 1px solid rgba(203,76,76,0.24);
    background: rgba(203,76,76,0.1);
    color: #a13737;
    font-size: 1.28rem;
    font-weight: 800;
    line-height: 1;
}
.court-row [data-remove-court]:hover {
    background: rgba(203,76,76,0.16);
    border-color: rgba(203,76,76,0.34);
}

.player-select-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.58);
    transition: border-color 0.18s ease, background-color 0.18s ease;
}
.player-select-row input { position: absolute; opacity: 0; pointer-events: none; }
.player-select-row__main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.player-select-row__copy { display: grid; gap: 2px; min-width: 0; }
.player-select-row__copy strong { color: var(--text); }
.player-select-row__side { display: flex; align-items: center; gap: 10px; }
.player-select-chip__order {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.84);
    color: var(--text);
    font-weight: 700;
}
.player-order-strip { display: flex; flex-wrap: wrap; gap: 8px; }
.player-order-tag {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.78);
    border: 1px solid var(--line);
    color: var(--text);
    font-weight: 600;
}

.score-capture {
    display: grid;
    grid-template-columns: minmax(84px, 1fr) auto minmax(84px, 1fr);
    gap: 10px;
    align-items: center;
    padding: 10px;
    background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,250,236,0.92));
    border-color: rgba(255,153,0,0.16);
}
.score-capture--timed { background: rgba(255,255,255,0.72); }
.score-capture__separator { text-align: center; font-weight: 700; color: var(--text); }
.score-capture input,
.score-capture__mirror {
    min-height: 60px;
    border-radius: 18px;
    background: rgba(255,255,255,0.96);
    border: 1px solid rgba(23,23,23,0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    text-align: center;
}
.score-capture input::placeholder { color: rgba(23,23,23,0.32); }

.empty-state { text-align: left; }
.empty-state--compact { padding: 8px 0; }

.live-toast {
    position: fixed;
    right: 18px;
    bottom: 18px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(23,23,23,0.92);
    color: #fff;
    opacity: 0;
    transform: translateY(12px);
    transition: 0.18s ease;
    pointer-events: none;
}
.live-toast.is-visible { opacity: 1; transform: translateY(0); }
.live-toast.is-error { background: rgba(203,76,76,0.96); }

.manual-link-panel {
    display: grid;
    gap: 14px;
    align-items: start;
}
.manual-link-panel h2 {
    margin: 2px 0 0;
    font-size: clamp(1.1rem, 2vw, 1.35rem);
}
.manual-link-panel__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

site-loader {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(252,250,245,0.76);
    backdrop-filter: blur(10px);
    z-index: 98;
}
.site-loader[hidden] { display: none; }

@keyframes pulse-core {
    0%, 100% { transform: scale(0.92); opacity: 0.78; }
    50% { transform: scale(1); opacity: 1; }
}
@keyframes pulse-ring {
    0%, 100% { transform: scale(0.84); opacity: 0.22; }
    50% { transform: scale(1.04); opacity: 0.48; }
}
@keyframes tennis-spin { to { transform: rotate(360deg); } }
@keyframes spin { to { transform: rotate(360deg); } }


.footer-credit {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.footer-credit__logo {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid rgba(23,23,23,0.08);
    background: #171717;
}
.footer-credit__logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.copy-feedback {
    font-size: 0.82rem;
    color: var(--success);
}
.club-side-panel { display: grid; gap: 14px; }

.club-waitlist-note {
    margin-bottom: 18px;
    border-left: 4px solid rgba(255, 153, 0, 0.62);
    background: linear-gradient(135deg, rgba(255, 204, 0, 0.12), rgba(255, 153, 0, 0.08));
}
.member-management-lock {
    color: var(--text-soft);
    font-size: 0.86rem;
    line-height: 1.55;
}
.club-side-panel__subhead { margin-top: 4px; }
@media (max-width: 720px) {
    .leaderboard-table--event {
        width: 100%;
        table-layout: fixed;
    }
    .leaderboard-table--event th,
    .leaderboard-table--event td {
        padding: 8px 3px;
        font-size: 0.74rem;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .leaderboard-table--event th:nth-child(1),
    .leaderboard-table--event td:nth-child(1) { width: 7%; }
    .leaderboard-table--event th:nth-child(2),
    .leaderboard-table--event td:nth-child(2) { width: 31%; }
    .leaderboard-table--event th:nth-child(n+3),
    .leaderboard-table--event td:nth-child(n+3) { width: 10%; }
    .leaderboard-table--event .leaderboard-player { min-width: 0; }
    .small-table th { font-size: 0.68rem; }
}

@media (max-width: 960px) {
    .field-grid--two,
    .site-footer__inner,
    .group-row,
    .session-row,
    .group-row__side,
    .player-select-row,
    .court-row { grid-template-columns: 1fr; }
    .site-footer__inner { gap: 14px; }
    .footer-credit { align-items: flex-start; }
    .cookie-banner { flex-direction: column; align-items: stretch; }
    .verification-banner,
    .invite-share-row--actions,
    .session-row__actions { flex-direction: column; align-items: stretch; }
    .invite-share-row--actions .button-row { justify-content: stretch; }
    .nav-toggle { display: block; }
    .site-nav {
        position: absolute;
        top: calc(100% + 8px);
        right: 9px;
        left: 9px;
        padding: 12px;
        border-radius: 18px;
        border: 1px solid var(--line);
        background: rgba(255,255,255,0.98);
        box-shadow: var(--shadow-soft);
        display: grid;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-8px);
        transition: 0.18s ease;
    }
    .site-nav.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
    .site-nav a { justify-content: flex-start; }
    .site-nav a::before { left: 16px; right: auto; width: 44px; bottom: 8px; }
    .leaderboard-table--event .player-row-inline { display: block; }
    .small-table th,
    .small-table td { padding: 10px 6px; font-size: 0.82rem; }
    .leaderboard-table--event { min-width: 0; }
    .leaderboard-player .name-full { display: none; }
    .leaderboard-player .name-short { display: inline; }
    .panel--sticky { position: static; top: auto; }
    .manual-link-panel__actions { flex-direction: column; align-items: stretch; }
    .event-layout { display: block; }
    .event-side { position: static; margin-bottom: 22px; z-index: auto; }
    .event-main-flow { position: relative; z-index: 1; }
}


.role-chip--warning {
    border-color: rgba(255, 153, 0, 0.18);
    background: linear-gradient(135deg, rgba(255, 204, 0, 0.12), rgba(255, 153, 0, 0.08));
}

.audit-list { display: grid; gap: 12px; }
.audit-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(23,23,23,0.07);
}
.audit-item:last-child { border-bottom: 0; padding-bottom: 0; }
.audit-item p { color: var(--text-soft); margin-top: 4px; }
.audit-item__meta {
    display: grid;
    gap: 4px;
    min-width: 180px;
    text-align: right;
    color: var(--text-soft);
    font-size: 0.82rem;
}
.team-seed-list { display: grid; gap: 10px; }
.team-seed-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(23,23,23,0.07);
}
.team-seed-item:last-child { border-bottom: 0; padding-bottom: 0; }
.event-side .team-seed-panel { gap: 12px; display: grid; }


.audit-filter-bar {
    display: grid;
    gap: 14px;
}

.field-grid--three {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profile-stat-strip {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.metric-card--clean {
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(23,23,23,0.08);
    background: rgba(255,255,255,0.66);
}

.metric-card--clean .metric-value {
    margin-top: 6px;
}

.audit-item--rich {
    padding: 14px 0;
}

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

    .profile-stat-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .profile-stat-strip {
        grid-template-columns: 1fr 1fr;
    }
}


/* v2.3.7 footer polish pass start */
.footer-credit__logo {
    width: 54px;
    height: 54px;
    background: transparent;
    border: 0;
}

.footer-credit__logo img {
    object-fit: contain;
}

.footer-credit__text strong {
    transition: color 0.18s ease;
}

.footer-credit__text:hover strong,
.footer-credit__text:focus-visible strong {
    color: #ffcc00;
}
/* v2.3.7 footer polish pass end */
