:root {
    --tsu-blue: #143180;
    --tsu-blue-2: #1f54b9;
    --tsu-sky: #7daee8;
    --union-red: #dc552f;
    --tennis-green: #88b93f;
    --ink: #172033;
    --muted: #647084;
    --line: #dbe1ea;
    --surface: #ffffff;
    --surface-soft: #f4f7fb;
    --surface-blue: #eef4ff;
    --shadow: 0 18px 45px rgba(23, 32, 51, .10);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

html {
    background: #eef2f7;
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
}

body {
    margin: 0;
    min-height: 100vh;
}

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

button,
input,
select,
textarea {
    font: inherit;
}

textarea {
    resize: vertical;
}

.site-header {
    align-items: center;
    background: rgba(255, 255, 255, .97);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 28px rgba(23, 32, 51, .08);
    display: flex;
    gap: 18px;
    justify-content: space-between;
    padding: 10px 28px;
    position: sticky;
    top: 0;
    z-index: 50;
}

.brand {
    align-items: center;
    display: flex;
    gap: 12px;
    min-width: 0;
}

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

.brand-copy {
    display: grid;
    gap: 1px;
    min-width: 0;
}

.brand-copy strong {
    color: var(--tsu-blue);
    font-size: 1.02rem;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.brand-copy small {
    color: var(--muted);
    font-size: .82rem;
    line-height: 1.2;
}

.top-nav {
    align-items: center;
    display: flex;
    gap: 12px;
}

.top-nav a,
.link-button {
    background: var(--surface-blue);
    border: 1px solid #cfe0ff;
    border-radius: 999px;
    color: var(--tsu-blue);
    cursor: pointer;
    padding: 9px 14px;
}

.link-button {
    appearance: none;
}

.page-shell {
    margin: 0 auto;
    max-width: 1440px;
    padding: 28px;
}

.compact-hero {
    min-height: 190px;
    padding: 32px;
}

.hero-band,
.admin-hero {
    align-items: end;
    background: linear-gradient(120deg, rgba(20, 49, 128, .95), rgba(23, 32, 51, .92));
    border-top: 5px solid var(--tennis-green);
    color: #fff;
    display: flex;
    justify-content: space-between;
    min-height: 260px;
    padding: 42px;
}

.hero-band h1,
.admin-hero h1,
.section-heading h1 {
    font-size: clamp(2.1rem, 4vw, 4.6rem);
    line-height: 1;
    margin: 8px 0 12px;
    max-width: 920px;
    overflow-wrap: anywhere;
}

.hero-band p,
.admin-hero p {
    color: rgba(255, 255, 255, .82);
    max-width: 740px;
}

.hero-meta {
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: var(--radius);
    min-width: 190px;
    padding: 18px;
}

.hero-meta span,
.quick-facts span,
label span,
.sidebar-section small {
    color: var(--muted);
    display: block;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hero-meta span {
    color: rgba(255, 255, 255, .70);
}

.hero-meta strong {
    display: block;
    font-size: 1.55rem;
    margin-top: 6px;
}

.control-bar {
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(320px, 520px) 1fr;
    margin-top: -28px;
    padding: 18px;
    position: relative;
    z-index: 5;
}

.detail-control {
    margin: 18px 0 0;
}

.quick-switch {
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1.35fr) minmax(150px, .75fr);
}

.detail-control .quick-switch {
    grid-template-columns: minmax(180px, 260px);
}

.selected-summary {
    align-items: center;
    display: flex;
    gap: 18px;
    justify-content: space-between;
}

.selected-summary h2 {
    margin: 4px 0 0;
}

.summary-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.summary-metrics span {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    display: inline-flex;
    font-size: .86rem;
    font-weight: 800;
    padding: 8px 10px;
}

.eyebrow {
    color: var(--union-red);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .12em;
    margin: 0;
    text-transform: uppercase;
}

.section-heading,
.panel-title-row {
    align-items: end;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin: 34px 0 16px;
}

.details-summary {
    cursor: pointer;
    list-style: none;
    margin: 0;
}

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

.details-summary::after {
    align-items: center;
    background: var(--surface-blue);
    border: 1px solid #cfe0ff;
    border-radius: 999px;
    color: var(--tsu-blue);
    content: "+";
    display: inline-flex;
    font-size: 1rem;
    font-weight: 900;
    height: 28px;
    justify-content: center;
    min-width: 28px;
}

.details-panel[open] > .details-summary::after {
    content: "-";
}

.details-panel[open] > .details-summary {
    margin-bottom: 16px;
}

.section-heading.compact {
    margin-top: 24px;
}

.section-heading h2,
.panel h2,
.panel h3,
.note-panel h3,
.sidebar-section h2 {
    margin: 0;
}

.section-heading p {
    color: var(--muted);
    margin: 6px 0 0;
}

.search-field {
    min-width: 280px;
}

label {
    display: grid;
    gap: 7px;
    min-width: 0;
}

input,
select,
textarea {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    min-height: 42px;
    padding: 10px 12px;
    width: 100%;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--tsu-blue-2);
    box-shadow: 0 0 0 3px rgba(31, 84, 185, .14);
    outline: none;
}

.competition-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.competition-card,
.panel,
.note-panel,
.login-panel,
.sidebar-section {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 1px 0 rgba(23, 32, 51, .03);
}

.competition-card {
    display: grid;
    gap: 14px;
    padding: 18px;
    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.competition-card:hover,
.competition-card.active {
    border-color: var(--tsu-blue-2);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.competition-card h3 {
    font-size: 1.25rem;
    margin: 0;
}

.card-topline,
.stats-row,
.form-actions,
.quick-facts,
.inline-create {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.stats-row {
    color: var(--muted);
    font-size: .88rem;
}

.progress {
    background: #e6ebf2;
    border-radius: 999px;
    height: 8px;
    overflow: hidden;
}

.progress span {
    background: linear-gradient(90deg, var(--tennis-green), var(--tsu-sky));
    display: block;
    height: 100%;
}

.badge,
.pill {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: .76rem;
    font-weight: 800;
    min-height: 26px;
    padding: 5px 9px;
}

.pill {
    background: var(--surface-soft);
    color: var(--muted);
}

.badge.is-success {
    background: rgba(136, 185, 63, .17);
    color: #486f13;
}

.badge.is-accent {
    background: rgba(220, 85, 47, .14);
    color: #9b351b;
}

.badge.is-muted {
    background: #edf0f5;
    color: #687386;
}

.badge.is-warning {
    background: #fff1cf;
    color: #946600;
}

.badge.is-neutral {
    background: var(--surface-blue);
    color: var(--tsu-blue);
}

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

.note-panel,
.panel {
    min-width: 0;
    padding: 20px;
}

.note-panel p,
.muted,
.form-hint {
    color: var(--muted);
}

.form-hint {
    background: var(--surface-blue);
    border: 1px solid #d4e3ff;
    border-radius: var(--radius);
    margin: 0;
    padding: 12px;
}

.small {
    font-size: .86rem;
}

.view-tabs {
    margin-top: 22px;
}

.menu-tabs {
    margin-top: 18px;
}

.tab-list {
    background: #dfe6f0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    display: inline-flex;
    gap: 4px;
    padding: 4px;
}

.sticky-tabs {
    position: sticky;
    top: 84px;
    z-index: 20;
}

.tab-button {
    background: transparent;
    border: 0;
    border-radius: 6px;
    color: var(--muted);
    cursor: pointer;
    font-weight: 800;
    padding: 10px 14px;
}

.tab-button.active {
    background: #fff;
    color: var(--tsu-blue);
    box-shadow: 0 1px 6px rgba(23, 32, 51, .10);
}

.tab-panel {
    display: none;
    margin-top: 16px;
}

.tab-panel.active {
    display: grid;
    gap: 16px;
}

.table-wrap {
    overflow-x: auto;
}

.mobile-match-list {
    display: none;
}

.match-action-cell {
    min-width: 210px;
    vertical-align: top;
}

.match-quick-entry {
    display: grid;
    gap: 8px;
}

.match-quick-entry summary {
    align-items: center;
    background: var(--surface-blue);
    border: 1px solid #cfe0ff;
    border-radius: var(--radius);
    color: var(--tsu-blue);
    cursor: pointer;
    display: inline-flex;
    font-weight: 900;
    justify-content: center;
    list-style: none;
    min-height: 36px;
    padding: 8px 12px;
    width: fit-content;
}

.match-quick-entry summary::-webkit-details-marker {
    display: none;
}

.match-quick-entry[open] summary {
    background: #fff;
    border-color: var(--tsu-blue-2);
}

.match-quick-entry form {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    display: grid;
    gap: 8px;
    margin-top: 6px;
    min-width: 230px;
    padding: 10px;
}

.data-table {
    border-collapse: collapse;
    min-width: 760px;
    width: 100%;
}

.data-table th,
.data-table td {
    border-bottom: 1px solid var(--line);
    padding: 11px 10px;
    text-align: left;
    vertical-align: middle;
}

.data-table th {
    color: var(--muted);
    font-size: .75rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.data-table tbody tr:hover {
    background: var(--surface-soft);
}

.rank {
    color: var(--tsu-blue);
    font-weight: 900;
}

.name-cell {
    font-weight: 700;
    min-width: 220px;
}

.bracket-scroll {
    overflow: auto;
    padding: 8px 8px 16px;
    position: relative;
}

.bracket-lines {
    inset: 0;
    min-height: 100%;
    min-width: 100%;
    pointer-events: none;
    position: absolute;
    z-index: 0;
}

.bracket-line-path {
    fill: none;
    stroke: rgba(65, 126, 188, .46);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.5;
    vector-effect: non-scaling-stroke;
}

.bracket {
    align-items: stretch;
    display: grid;
    gap: 54px;
    grid-template-columns: repeat(var(--rounds), minmax(250px, 1fr));
    min-width: max-content;
    position: relative;
    z-index: 1;
}

.bracket-round {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 250px;
}

.bracket-round h4 {
    color: var(--tsu-blue);
    margin: 0;
}

.bracket-matches {
    align-content: stretch;
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 20px;
    justify-content: space-around;
    min-height: 100%;
}

.bracket-match {
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 8px 16px rgba(30, 64, 96, .06);
    overflow: visible;
    position: relative;
    z-index: 2;
}

.slot {
    align-items: center;
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 10px;
    justify-content: space-between;
    min-height: 42px;
    padding: 10px;
}

.slot:last-child {
    border-bottom: 0;
}

.slot.winner {
    background: rgba(136, 185, 63, .15);
    color: #385d0c;
    font-weight: 900;
}

.slot-open {
    color: var(--muted);
}

.slot-name {
    min-width: 0;
    overflow-wrap: anywhere;
}

.bracket-score-inline {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    flex: 0 0 auto;
    font-size: .74rem;
    font-weight: 800;
    padding: 4px 7px;
}

.bracket-score-inline.is-open {
    background: transparent;
    border-color: transparent;
    color: #95a0b3;
    font-weight: 700;
}

.rules-panel {
    display: grid;
    gap: 14px;
}

.rules-panel p {
    color: var(--muted);
    margin: 8px 0 0;
}

.rules-panel details {
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px;
}

.rules-panel summary {
    color: var(--tsu-blue);
    cursor: pointer;
    font-weight: 900;
}

.admin-tabs .tab-panel.active {
    display: grid;
    gap: 18px;
}

.rules-editor {
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px;
}

.rules-editor summary {
    color: var(--tsu-blue);
    cursor: pointer;
    font-weight: 900;
}

.rules-editor .form-grid {
    margin-top: 12px;
}

.quick-ko-actions {
    margin: 14px 0;
}

.mini-panel {
    box-shadow: none;
    display: grid;
    gap: 10px;
}

.mini-panel p {
    color: var(--muted);
    margin: 0;
}

.quick-facts {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    display: grid;
    gap: 0;
    grid-template-columns: repeat(4, 1fr);
    overflow: hidden;
}

.quick-facts div {
    border-right: 1px solid var(--line);
    padding: 18px;
}

.quick-facts div:last-child {
    border-right: 0;
}

.quick-facts strong {
    display: block;
    margin-top: 6px;
}

.admin-layout {
    align-items: start;
    display: grid;
    gap: 22px;
    grid-template-columns: 300px minmax(0, 1fr);
    min-width: 0;
}

.admin-sidebar {
    display: grid;
    gap: 16px;
    min-width: 0;
    position: sticky;
    top: 104px;
}

.sidebar-section {
    display: grid;
    gap: 12px;
    min-width: 0;
    padding: 16px;
}

.side-list {
    display: grid;
    gap: 8px;
}

.side-list a {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    display: grid;
    gap: 4px;
    padding: 11px;
}

.side-list a.active {
    background: var(--surface-blue);
    border-color: var(--tsu-blue-2);
}

.admin-main {
    display: grid;
    gap: 18px;
    min-width: 0;
}

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

.form-grid > * {
    min-width: 0;
}

.form-grid.one-col {
    grid-template-columns: 1fr;
}

.span-2 {
    grid-column: span 2;
}

.checkbox-line {
    align-items: center;
    color: var(--muted);
    display: flex;
    font-weight: 700;
    gap: 8px;
}

.checkbox-line input {
    min-height: auto;
    width: auto;
}

.button {
    align-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    cursor: pointer;
    display: inline-flex;
    font-weight: 900;
    justify-content: center;
    min-height: 42px;
    padding: 10px 15px;
}

.button.primary {
    background: var(--tsu-blue);
    border-color: var(--tsu-blue);
    color: #fff;
}

.button.ghost {
    background: #fff;
    color: var(--tsu-blue);
}

.button.danger {
    background: #fff5f2;
    border-color: #efb6a5;
    color: #aa3215;
}

.button.whatsapp {
    background: #e9fbef;
    border-color: #9ad6ab;
    color: #166533;
}

.button.block {
    width: 100%;
}

.button.tiny {
    border-radius: 8px;
    font-size: .76rem;
    min-height: 30px;
    padding: 5px 9px;
}

.inline-form {
    margin: 0;
}

.inline-create {
    background: var(--surface-soft);
    border-radius: var(--radius);
    margin: 12px 0;
    padding: 12px;
}

.inline-create input:first-of-type {
    flex: 1;
}

.inline-create input[type="number"] {
    max-width: 120px;
}

.group-list,
.team-list {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.group-list article {
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    display: grid;
    gap: 7px;
    padding: 14px;
}

.group-list h3 {
    color: var(--tsu-blue);
    margin: 0 0 4px;
}

.group-list article > span {
    color: var(--muted);
    font-size: .92rem;
}

.team-list > span,
.team-row {
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    font-weight: 800;
    padding: 10px 12px;
}

.team-row {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    min-width: 0;
}

.team-row .team-name {
    min-width: 0;
    overflow-wrap: anywhere;
}

.team-row small {
    color: var(--muted);
    font-size: .76rem;
    margin-left: 6px;
}

.group-list .team-row {
    padding: 8px 10px;
}

.group-list .team-row .team-name {
    color: var(--muted);
    font-size: .92rem;
    font-weight: 800;
}

.team-row.is-inactive {
    background: #eef2f7;
    color: var(--muted);
}

.name-cell .badge {
    margin-left: 6px;
}

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

.quick-result-form {
    align-items: end;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(260px, 1.7fr) 150px minmax(150px, .75fr) 145px 120px;
    padding: 14px;
}

.quick-match-select {
    min-width: 0;
}

.match-edit-card {
    align-items: end;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    padding: 12px;
}

.match-title {
    display: grid;
    gap: 3px;
    grid-column: span 2;
    min-width: 220px;
}

.match-title span {
    color: var(--muted);
    font-size: .8rem;
}

.login-shell,
.empty-state {
    align-items: center;
    display: grid;
    justify-items: center;
    min-height: 54vh;
    text-align: center;
}

.empty-state.slim {
    min-height: 220px;
}

.login-panel {
    display: grid;
    gap: 16px;
    max-width: 420px;
    padding: 28px;
    text-align: left;
    width: 100%;
}

.login-panel h1,
.empty-state h1,
.empty-state h2,
.empty-state h3 {
    margin: 0;
}

.flash-stack {
    display: grid;
    gap: 8px;
    left: 50%;
    max-width: 620px;
    position: fixed;
    top: 96px;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    z-index: 100;
}

.flash {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    font-weight: 800;
    padding: 12px 14px;
}

.flash.success {
    background: #edf8dc;
    color: #385d0c;
}

.flash.error {
    background: #ffe5dd;
    color: #9b351b;
}

.debug {
    background: #101827;
    border-radius: var(--radius);
    color: #dbeafe;
    max-width: 900px;
    overflow-x: auto;
    padding: 16px;
    text-align: left;
}

[hidden] {
    display: none !important;
}

@media (max-width: 1100px) {
    .admin-layout,
    .notes-grid,
    .split-grid,
    .quick-facts,
    .control-bar {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
    }

    .admin-layout > *,
    .admin-main,
    .admin-sidebar,
    .panel,
    .sidebar-section {
        max-width: 100%;
        width: 100%;
    }

    .admin-main {
        display: block;
    }

    .admin-main > * + * {
        margin-top: 18px;
    }

    .selected-summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .summary-metrics {
        justify-content: flex-start;
    }

    .match-edit-card {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .quick-result-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .site-header {
        align-items: center;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
        padding: 10px 12px;
        position: static;
    }

    .brand {
        flex: 1 1 210px;
        max-width: 100%;
    }

    .brand img {
        height: 52px;
        object-fit: contain;
        width: 52px;
    }

    .brand-copy small {
        font-size: .78rem;
    }

    .top-nav {
        justify-content: space-between;
        padding: 0;
        width: 100%;
    }

    .page-shell {
        padding: 12px;
    }

    .hero-band,
    .admin-hero,
    .section-heading,
    .panel-title-row {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-band,
    .admin-hero {
        min-height: auto;
        padding: 22px;
    }

    .hero-band h1,
    .admin-hero h1,
    .section-heading h1 {
        font-size: 1.85rem;
    }

    .hero-meta {
        min-width: 0;
        padding: 14px;
    }

    .control-bar {
        margin-top: 12px;
        padding: 12px;
    }

    .quick-switch {
        grid-template-columns: 1fr;
    }

    .summary-metrics {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
    }

    .summary-metrics span {
        justify-content: center;
        min-width: 0;
        text-align: center;
    }

    .search-field {
        min-width: 0;
    }

    .form-grid,
    .match-edit-card,
    .quick-result-form {
        grid-template-columns: 1fr;
    }

    .match-title {
        grid-column: span 1;
        min-width: 0;
    }

    .span-2 {
        grid-column: span 1;
    }

    .inline-create,
    .form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .tab-list {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
        width: 100%;
    }

    .admin-tabs .tab-list {
        grid-template-columns: repeat(5, minmax(92px, 1fr));
        overflow-x: auto;
    }

    .sticky-tabs {
        top: 0;
    }

    .tab-button {
        min-width: 0;
        padding: 10px 6px;
    }

    .standings-table {
        min-width: 0;
        table-layout: fixed;
    }

    .standings-table th:nth-child(4),
    .standings-table th:nth-child(5),
    .standings-table th:nth-child(6),
    .standings-table th:nth-child(7),
    .standings-table td:nth-child(4),
    .standings-table td:nth-child(5),
    .standings-table td:nth-child(6),
    .standings-table td:nth-child(7) {
        display: none;
    }

    .standings-table th,
    .standings-table td {
        padding: 10px 7px;
    }

    .standings-table .name-cell {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .standings-table th:nth-child(1),
    .standings-table td:nth-child(1) {
        width: 44px;
    }

    .standings-table th:nth-child(3),
    .standings-table td:nth-child(3),
    .standings-table th:nth-child(8),
    .standings-table td:nth-child(8) {
        text-align: right;
        width: 68px;
    }

    .match-panel .table-wrap {
        display: none;
    }

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

    .mobile-match-card {
        background: #f8fafc;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        display: grid;
        gap: 9px;
        padding: 12px;
    }

    .mobile-match-card div:first-child {
        display: grid;
        gap: 2px;
    }

    .mobile-match-card div:first-child span,
    .mobile-match-card p {
        color: var(--muted);
        font-size: .86rem;
        margin: 0;
    }

    .mobile-match-meta {
        align-items: center;
        display: flex;
        justify-content: space-between;
    }

    .match-quick-entry summary,
    .match-quick-entry form {
        width: 100%;
    }

    .match-quick-entry form {
        min-width: 0;
    }
}
