:root {
    color-scheme: light;
    font-family: "Inter", "Segoe UI", Roboto, sans-serif;
    background: #0f172a;
    color: #0f172a;
}

body {
    margin: 0;
    background: #e2e8f0;
    min-height: 100vh;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2.5rem;
    background: #0f172a;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.35);
}

.admin-header__brand a {
    color: inherit;
    text-decoration: none;
}

.admin-header__brand-link {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
}

.admin-header__brand-logo {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.85rem;
    background: rgba(248, 250, 252, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.admin-header__brand-logo--placeholder {
    font-weight: 700;
    color: #cbd5f5;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.admin-header__brand-logo img {
    max-width: 100%;
    max-height: 100%;
    display: block;
}

.admin-header__brand-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    line-height: 1.1;
}

.portal-header__branding-title {
    font-size: 1.05rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
}

.portal-header__branding-subtitle {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.75;
    color: #cbd5f5;
}

.admin-header__nav ul {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.admin-header__nav-item--tournaments {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-header__nav a,
.nav-button {
    color: #e2e8f0;
    font-weight: 600;
    font-size: 0.95rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.35rem 0;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.admin-header__nav-link--disabled {
    color: rgba(226, 232, 240, 0.55);
    cursor: not-allowed;
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0;
    font-weight: 600;
    font-size: 0.95rem;
}

.nav-button::after {
    content: "▾";
    font-size: 0.85rem;
}

.logout {
    color: #facc15;
}

.has-submenu {
    position: relative;
}

.submenu {
    position: absolute;
    right: 0;
    top: calc(100% + 0.35rem);
    background: #1e293b;
    border-radius: 0.75rem;
    padding: 0.5rem 0.75rem;
    min-width: 12rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.4);
    display: none;
}

.submenu.is-open {
    display: grid;
    gap: 0.5rem;
}

.submenu a {
    color: #f8fafc;
    padding: 0.35rem 0.25rem;
    border-radius: 0.5rem;
    transition: background 0.2s ease-in-out;
}

.submenu a:hover {
    background: rgba(148, 163, 184, 0.2);
}

.admin-main {
    max-width: 1200px;
    margin: 2.5rem auto;
    padding: 0 2.5rem 3rem;
    display: grid;
    gap: 1.5rem;
}

a {
    color: inherit;
    text-decoration: none;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.card {
    background: #fff;
    border-radius: 1.25rem;
    padding: 1.75rem;
    box-shadow: 0 25px 50px rgba(15, 23, 42, 0.08);
}

.card--auth {
    width: min(50%, 600px);
    margin: 0 auto;
}

.auth-form input[type="text"],
.auth-form input[type="password"] {
    width: 50%;
    max-width: 100%;
    margin: 0 auto;
}

@media (max-width: 800px) {
    .card--auth {
        width: 100%;
    }
}

.card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.card__header--dashboard h1 {
    margin: 0;
}

.card__header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.card h1,
.card h2 {
    margin-top: 0;
    font-weight: 700;
    color: #0f172a;
}

.card__title-link {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.card__title-link:hover,
.card__title-link:focus-visible {
    color: #0f172a;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.2em;
}

.round-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    /*margin-bottom: 0.75rem;*/
}

.round-header__title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.round {
    margin-bottom: 1.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.round-body {
    margin-top: 0.75rem;
}

.round-header__unassigned {
    margin-left: auto;
}

.round-toggle {
    color: #0f172a;
    border-color: #cbd5e1;
    background: #fff;
    box-shadow: none;
    padding: 0.45rem 1rem;
}

.round-toggle:hover,
.round-toggle:focus-visible {
    background: #e2e8f0;
    color: #0f172a;
}

.round-results {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.round-result {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem;
    background: #fff;
}

.round-result__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.round-result__title {
    margin: 0;
}

.round-result__body {
    margin-top: 0.75rem;
}

.card p {
    color: #475569;
    line-height: 1.6;
}

.tutorial-list {
    margin: 0;
    padding-left: 1.5rem;
    color: #475569;
    line-height: 1.65;
}

.tutorial-list li + li {
    margin-top: 0.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.75rem 1.25rem;
    border-radius: 999px;
    background: #2563eb;
    color: #fff;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    box-shadow: 0 12px 25px rgba(37, 99, 235, 0.25);
}

.btn[disabled],
.btn.is-disabled {
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
    transform: none;
}

.btn[disabled]:hover,
.btn.is-disabled:hover {
    transform: none;
}

.btn.secondary {
    background: #0ea5e9;
    box-shadow: 0 12px 25px rgba(14, 165, 233, 0.25);
}

.btn.danger {
    background: #ef4444;
    box-shadow: 0 12px 25px rgba(239, 68, 68, 0.25);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn--small {
    padding: 0.5rem 0.95rem;
    font-size: 0.85rem;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.2);
}

.btn--ghost {
    background: transparent;
    color: #f8fafc;
    box-shadow: none;
    border: 1px solid rgba(148, 163, 184, 0.4);
}

.btn--ghost:hover {
    background: rgba(148, 163, 184, 0.2);
}

.btn.is-loading {
    opacity: 0.7;
    cursor: wait;
}

[data-close-button][hidden],
[data-generate-form][hidden],
[data-tournament-finished][hidden] {
    display: none !important;
}

.btn.tournament-finished-indicator {
    background: #475569;
    color: #e2e8f0;
    cursor: default;
    pointer-events: none;
    box-shadow: none;
}

.btn.tournament-finished-indicator:hover {
    transform: none;
}

.actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.season-filter {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.season-filter label {
    font-weight: 600;
    color: #e2e8f0;
    white-space: nowrap;
}

.season-filter--header {
    padding: 0.4rem 0.65rem;
    background: rgba(15, 23, 42, 0.55);
    border-radius: 0.85rem;
}

.season-filter--header label {
    color: #e2e8f0;
}

.season-filter--header select {
    background: #0f172a;
    color: #e2e8f0;
    border-color: rgba(226, 232, 240, 0.35);
}

.card .season-filter label {
    color: #475569;
}

.season-filter select {
    width: auto;
    min-width: 0;
    flex: 0 0 auto;
}

.inline-form {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
    margin: 0;
}

.inline-form .btn {
    padding: 0.45rem 0.9rem;
}

.grid {
    display: grid;
    gap: 1rem;
}

.grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.tournament-list {
    display: grid;
    gap: 1.5rem;
}

.dashboard-panels {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.dashboard-next h2,
.dashboard-calendar h2,
.dashboard-season-ranking h2 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.dashboard-next__title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0;
}

.dashboard-next__body {
    display: flex;
    gap: 1.5rem;
    justify-content: space-between;
    align-items: stretch;
    flex-wrap: wrap;
}

.dashboard-next__meta {
    display: grid;
    gap: 1rem;
    margin: 0;
}

.dashboard-next__meta div {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.dashboard-next__meta dt {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
    margin: 0;
}

.dashboard-next__meta dd {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
}

.dashboard-next__actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
}

.dashboard-next__actions .btn {
    width: 80%;
}

.dashboard-calendar__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1rem;
}

.dashboard-calendar__item {
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(241, 245, 249, 0.6);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.dashboard-calendar__date {
    font-weight: 600;
    color: #0f172a;
}

.dashboard-calendar__details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    font-size: 0.9rem;
    color: #475569;
}

.dashboard-season-ranking table {
    min-width: 100%;
}

.dashboard-season-ranking table th,
.dashboard-season-ranking table td {
    white-space: nowrap;
}

.dashboard-season-ranking table td:first-child {
    font-weight: 600;
}

.tournament-card__header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    flex-wrap: wrap;
}

.tournament-card__title {
    margin: 0;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tournament-card__title span:last-child {
    font-size: 1.25rem;
    font-weight: 600;
    color: #0f172a;
}

.tournament-card__status {
    margin-left: 0.25rem;
}

.tournament-card__status.badge.secondary {
    background: rgba(59, 130, 246, 0.18);
    color: #1d4ed8;
}

.tournament-card__status.badge.warning {
    background: rgba(245, 158, 11, 0.25);
    color: #b45309;
}

.tournament-card__status.badge.success {
    background: rgba(34, 197, 94, 0.24);
    color: #15803d;
}

.tournament-card__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.tournament-card__details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    text-align: center;
}

.tournament-card__detail {
    font-weight: 600;
    color: #1e293b;
}

.tournament-card__actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    width: 100%;
}

.grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

input,
select,
textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 0.9rem;
    border: 1px solid #cbd5f5;
    background: #f8fafc;
    font-size: 0.95rem;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.inline-field {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.inline-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
}

.inline-label input {
    margin: 0;
}

.input--ch-3 {
    width: 4.5ch;
    min-width: 0;
    text-align: center;
}

.modal__body .input--auto-width {
    width: auto;
    min-width: 0;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
    outline: none;
}

.form-help {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: -0.25rem;
}

.form-help.form-help--spaced {
    margin-top: 1rem;
}

.form-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.75rem;
    color: #0f172a;
}

.radio {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    cursor: pointer;
}

.radio input {
    margin: 0;
}

.radio span {
    line-height: 1.4;
}

.form-divider {
    border: 0;
    border-top: 1px solid #e2e8f0;
    margin: 2rem 0 1.5rem;
}

.form-help--list {
    margin-top: 0.5rem;
}

.form-help--list ul {
    margin: 0.35rem 0 0;
    padding-left: 1.2rem;
    list-style: disc;
}

.form-help--list li + li {
    margin-top: 0.25rem;
}

.form-help--list strong {
    color: #0f172a;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

/* TOOLTIP MULTI-LIGNES SUR data-tooltip */

[data-tooltip] {
    position: relative;
    cursor: help;
}

[data-tooltip]::after,
[data-tooltip]::before {
    position: absolute;
    left: 50%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 20;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    bottom: calc(100% + 8px);
    transform: translate(-50%, -6px);
    background: #0f172a;
    color: #ffffff;
    padding: 0.45rem 0.65rem;
    border-radius: 0.65rem;
    font-size: 0.85rem;
    white-space: pre-line;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25);
    max-width: 24rem;
}

[data-tooltip]::before {
    content: "";
    bottom: calc(100% + 4px);
    transform: translate(-50%, -6px);
    border: 6px solid transparent;
    border-top-color: #0f172a;
}

[data-tooltip]:hover::after,
[data-tooltip]:hover::before,
[data-tooltip]:focus::after,
[data-tooltip]:focus::before {
    opacity: 1;
    transform: translate(-50%, -2px);
}

.table-scroll {
    overflow-x: auto;
}

.table-scroll table {
    min-width: 720px;
}

.admin-log-table th,
.admin-log-table td {
    text-align: left;
    vertical-align: top;
}

.admin-log-table__details {
    margin: 0;
    padding-left: 1rem;
}

.admin-log-table__details li {
    margin-bottom: 0.25rem;
}

.admin-log-table__empty {
    color: #6b7280;
}

.admin-log-pagination {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.admin-log-pagination__actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tournaments-table th,
.tournaments-table td {
    vertical-align: middle;
}

.tournaments-table td:nth-child(2),
.tournaments-table td:nth-child(3),
.tournaments-table td:nth-child(4) {
    text-align: center;
}

.tournaments-table td:nth-child(5) {
    text-align: center;
}

.tournaments-table .actions {
    justify-content: center;
    margin-top: 0;
}

.players-table th,
.players-table td {
    vertical-align: middle;
}

.players-table td:nth-child(2),
.players-table td:nth-child(3),
.players-table td:nth-child(6),
.players-table td:nth-child(7) {
    text-align: center;
}

.card__header--matches h1 {
    margin: 0;
}

.card__header-actions--matches {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.card__header--round {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.card__header--round h2 {
    margin: 0;
}

.card__header-actions--round {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.card__meta {
    margin: 0 0 1rem;
    color: #475569;
    font-size: 0.95rem;
}

.matches-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.matches-actions form {
    margin: 0;
}

.matches-table th,
.matches-table td {
    vertical-align: top;
}

.matches-table td:first-child {
    width: 9rem;
}

.match-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-weight: 600;
    background: rgba(248, 113, 113, 0.18);
    color: #b91c1c;
}

.match-status--done {
    background: rgba(34, 197, 94, 0.18);
    color: #15803d;
}

.match-status__icon {
    font-size: 1rem;
}

.round-content {
    margin-top: 0.75rem;
}

[data-round-section].is-collapsed .round-content {
    display: none;
}

.match-players {
    margin-top: 0.35rem;
    font-size: 0.8rem;
    color: #475569;
}

.match-players__label {
    margin: 0 0 0.25rem;
    font-weight: 600;
    color: #0f172a;
}

.match-actions {
    display: grid;
    gap: 0.75rem;
}

.match-actions__group {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.match-actions button {
    margin: 0;
}

.match-exempt {
    font-weight: 600;
    color: #0f172a;
}

.match-score {
    display: grid;
    gap: 0.35rem;
}

.match-score__teams {
    display: flex;
    gap: 0.35rem;
    font-weight: 600;
    color: #0f172a;
}

.match-score__inputs {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.match-score__inputs label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
    color: #475569;
}

.match-score__separator {
    font-weight: 600;
    color: #475569;
}

.match-score input[type="number"] {
    width: 3.25rem;
    padding: 0.35rem 0.5rem;
    text-align: center;
}

.is-busy {
    opacity: 0.7;
}

[data-match-row].is-saving {
    background-color: rgba(37, 99, 235, 0.06);
}

.players-table .actions {
    justify-content: center;
    margin-top: 0;
}

.seasons-table th,
.seasons-table td {
    vertical-align: middle;
}

.seasons-table td:nth-child(3),
.seasons-table td:nth-child(4) {
    text-align: center;
}

.seasons-table .actions {
    justify-content: center;
    margin-top: 0;
}

thead {
    background: #e2e8f0;
}

th,
td {
    text-align: left;
    padding: 0.4rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.95rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(37, 99, 235, 0.15);
    color: #1d4ed8;
}

.badge.secondary {
    background: rgba(245, 158, 11, 0.15);
    color: #b45309;
}

.badge[data-genre="F"] {
    background: rgba(236, 72, 153, 0.18);
    color: #be185d;
}

.badge[data-genre="H"] {
    background: rgba(37, 99, 235, 0.15);
    color: #1d4ed8;
}

.badge[data-genre="NC"] {
    background: rgba(148, 163, 184, 0.25);
    color: #475569;
}

.badge.success {
    background: rgba(34, 197, 94, 0.18);
    color: #15803d;
}

.badge.danger {
    background: rgba(239, 68, 68, 0.18);
    color: #b91c1c;
}

.badge.warning {
    background: rgba(245, 158, 11, 0.2);
    color: #b45309;
}

.badge.inactive {
    background: rgba(148, 163, 184, 0.25);
    color: #475569;
}

.badge[data-profil] {
    background: rgba(79, 70, 229, 0.18);
    color: #4338ca;
}

.badge[data-profil="pointeur"] {
    background: rgba(245, 158, 11, 0.15);
    color: #b45309;
}

.badge[data-profil="polyvalent"] {
    background: rgba(147, 51, 234, 0.18);
    color: #7c3aed;
}

.badge[data-profil="tireur"] {
    background: rgba(239, 68, 68, 0.18);
    color: #b91c1c;
}

.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    z-index: 200;
}

.modal.is-open {
    display: flex;
}

.modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    z-index: 0;
}

.modal__dialog {
    position: relative;
    background: #fff;
    border-radius: 1.25rem;
    box-shadow: 0 35px 65px rgba(15, 23, 42, 0.35);
    width: min(960px, 100%);
    max-height: 90vh;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1;
}

.modal__dialog[data-modal-size="medium"] {
    width: min(600px, 100%);
}

.modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.modal__title {
    margin: 0;
    font-size: 1.35rem;
    color: #0f172a;
}

.modal__header-extra {
    margin-left: auto;
    font-size: 0.95rem;
    font-weight: 500;
    color: #475569;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.modal__header-extra:empty {
    display: none;
}

.modal__close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #0f172a;
}

.modal__body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.modal__section {
    display: grid;
    gap: 1.25rem;
}

.modal__section[data-operation-fields] {
    display: none;
}

.modal__section[data-operation-fields].is-visible {
    display: grid;
}

.modal__section--compact {
    gap: 0.75rem;
}

.modal__field {
    display: grid;
    gap: 0.5rem;
}

.participant-selector__search {
    gap: 0.35rem;
}

.participant-selector__search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.modal__actions--sticky {
    position: sticky;
    bottom: 0;
    background: #fff;
    padding-top: 1rem;
    padding-bottom: 1rem;
    margin-top: 0;
    border-top: 1px solid #e2e8f0;
}

.modal__options {
    gap: 0.75rem;
}

.modal__options--stacked {
    align-items: flex-start;
    justify-items: start;
}

.modal__options--stacked .radio {
    display: flex;
    width: 100%;
    justify-content: flex-start;
}

.modal__loading,
.modal__error {
    margin: 0;
    text-align: center;
    color: #64748b;
}

.modal__error {
    color: #b91c1c;
    font-weight: 600;
}

.modal__feedback {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #2563eb;
}

.modal__feedback.is-error {
    color: #b91c1c;
}

body.modal-open {
    overflow: hidden;
}

.alert {
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
    font-weight: 600;
}

.alert.alert--info {
    background: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
}

.alert.alert--success {
    background: rgba(34, 197, 94, 0.18);
    color: #15803d;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.9rem;
}

.checkbox.team-creation__item {
    justify-content: space-between;
    flex-wrap: wrap;
}

.participant-selector__table {
    max-height: 340px;
    overflow-y: auto;
}

.participant-selector__table table {
    min-width: 600px;
}

.participant-selector__table tbody tr {
    cursor: pointer;
    transition: background 0.2s ease-in-out;
}

.participant-selector__table tbody tr:hover {
    background: rgba(37, 99, 235, 0.08);
}

.participant-selector__table tbody tr.is-selected {
    background: rgba(37, 99, 235, 0.18);
}

.participant-selector__table tr.is-inactive {
    opacity: 0.6;
}

.participant-selector__table.is-locked tbody tr {
    cursor: default;
}

.team-creation__table {
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    overflow: hidden;
    background: #f8fafc;
}

.team-creation__header {
    display: grid;
    grid-template-columns: 2.75rem 3fr 2fr 2fr;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background: #e2e8f0;
    color: #0f172a;
}

.team-creation__column--checkbox {
    text-align: left;
}

.team-creation__list {
    max-height: 320px;
    overflow-y: auto;
    display: block;
}

.checkbox.team-creation__item {
    display: grid;
    grid-template-columns: 2.75rem 3fr 2fr 2fr;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid #e2e8f0;
    transition: background 0.2s ease-in-out;
}

.team-creation__list .team-creation__item:last-child {
    border-bottom: none;
}

.team-creation__item:hover {
    background: rgba(37, 99, 235, 0.08);
}

.team-creation__item.is-checked {
    background: rgba(37, 99, 235, 0.18);
}

.team-creation__item input {
    margin: 0;
}

.team-creation__item span.badge {
    margin-left: 0;
    justify-self: start;
}

.team-members {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.5rem;
}

.team-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    justify-content: flex-start;
    align-content: center;
    height: 100%;
}

.team-actions > * {
    margin-top: 0;
    margin-bottom: 0;
}

.team-actions form {
    margin: 0;
}

.form-help--warning {
    color: #b45309;
    font-weight: 500;
}

.team-members .badge,
.team-members--modal .badge {
    margin-left: 0.25rem;
}

.team-members--modal {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.team-members--modal li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.team-members--modal form {
    margin-left: auto;
}

[data-team-member] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

[data-team-member] .inline-form {
    margin-left: auto;
}

.checkbox input {
    width: auto;
}

.club-settings-form {
    align-items: start;
}

.club-settings-form__fields {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 520px;
    width: 100%;
}

.club-settings-form__fields input,
.club-settings-form__fields textarea,
.club-settings-form__fields select {
    max-width: 100%;
}

.club-settings-preview {
    background: #f8fafc;
    border-radius: 1.25rem;
    padding: 1.5rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    color: #0f172a;
}

.club-settings-preview__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.club-settings-preview__branding {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.club-settings-preview__logo {
    width: 72px;
    height: 72px;
    border-radius: 1rem;
    background: rgba(15, 23, 42, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    overflow: hidden;
}

.club-settings-preview__logo--placeholder {
    background: rgba(15, 23, 42, 0.12);
}

.club-settings-preview__logo img {
    max-width: 100%;
    max-height: 100%;
    display: block;
}

.club-settings-preview__text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.club-settings-preview__text strong {
    font-size: 1rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.club-settings-preview__text span {
    font-size: 0.85rem;
    color: #64748b;
}

.club-settings-preview__details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    color: #475569;
}

.club-settings-preview__details ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.35rem;
}

@media (max-width: 1024px) {
    .admin-main {
        padding: 0 1.5rem 2rem;
        margin: 1.5rem auto;
    }

    .grid.two,
    .grid.three {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    .admin-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .club-settings-form {
        gap: 1.5rem;
    }

    .tournament-card__meta-item,
    .tournament-card__meta-item--center,
    .tournament-card__meta-item--right {
        text-align: left;
    }
}