.table-scroll{overflow-x:auto}
.group-score th,.group-score td{text-align:center;vertical-align:middle}
.group-score th:first-child,.group-score td:first-child{text-align:left;min-width:190px}
.game-cell{width:78px;min-width:72px;text-align:center;font-weight:700;margin:0}
.group-score .winner{font-size:.78rem;margin-top:5px}
.group-score .live-winner{font-size:1rem;color:var(--green);font-weight:900;white-space:nowrap}
.group-score tbody tr:first-child td{border-bottom:0}
.group-score tbody tr:last-child td{border-bottom:3px solid var(--line)}
.team-score-sheet .rubber-label{display:block;width:max-content;margin:0 0 6px}
.team-score-sheet .compact{display:block;margin:8px auto 0;padding:7px 10px;font-size:.78rem}
.team-sheet-actions{display:flex;justify-content:flex-end;margin-top:18px}
.group-order{margin-top:28px;padding-top:22px;border-top:2px solid var(--line)}
.group-order h3{font-size:1.25rem}
.group-order .qualifying{background:#f0faf5}
.group-order td:first-child{width:60px}
@media(max-width:600px){.group-score th:first-child,.group-score td:first-child{min-width:145px}}
.page-heading{margin:8px 0 18px}.page-heading h2{font-size:1.65rem;margin-bottom:4px}
.competition-grid,.live-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(275px,1fr));gap:16px;margin-bottom:22px}
.competition-tile,.group-tile,.live-card{display:block;width:100%;text-align:left;background:#fff;color:var(--ink);border:2px solid var(--line);border-radius:14px;padding:18px;box-shadow:0 3px 12px #16243a0d}
.competition-tile{cursor:pointer;font:inherit}.competition-tile:hover{border-color:var(--blue);transform:translateY(-1px)}
.competition-title{font-size:1.45rem;font-weight:800;margin-bottom:7px}.stage-label{font-weight:700;color:var(--blue);margin-bottom:12px}
.progress-track{height:10px;background:#e5ebf2;border-radius:99px;overflow:hidden;margin:13px 0 7px}.progress-track span{display:block;height:100%;background:var(--green)}.progress-copy{font-size:.92rem;color:var(--muted)}
.schedule-warning,.schedule-ok{display:inline-block;margin-top:13px;padding:5px 10px;border-radius:99px;font-size:.82rem;font-weight:800}.schedule-warning{background:#fdeaea;color:var(--red)}.schedule-ok{background:#e7f6ef;color:var(--green)}
.live-card{position:relative;min-height:260px}.table-number{font-size:1.5rem;font-weight:900;color:var(--navy);margin-bottom:14px}.player-list{font-size:1.08rem;font-weight:700;line-height:1.7;margin:12px 0}.umpire-line{border-top:1px solid var(--line);padding-top:10px;margin:12px 0;color:var(--red);font-weight:700}.umpire-line.assigned-person{color:var(--green)}.card-status{font-weight:800;margin:10px 0}
.status-assigned{border:4px solid var(--blue)}.status-overdue{border:4px solid var(--red);background:#fff8f8}.status-completed{border:4px solid var(--green);background:var(--green);color:white}.status-completed .table-number,.status-completed .stage-label,.status-completed .umpire-line,.status-completed .meta,.status-completed .progress-copy{color:white}.status-completed .progress-track{background:#ffffff55}.status-completed .progress-track span{background:white}.status-completed .schedule-ok{background:white;color:var(--green)}.status-completed .umpire-line{border-color:#ffffff66}.status-waiting{border:2px solid var(--line);background:#fff}.free-table{border:2px dashed #94a3b6;background:#fff}.free-table h3{color:var(--green)}
.competition-picker{min-width:260px}.competition-picker select{font-size:1.08rem;font-weight:700;margin-bottom:0}.competition-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:var(--line);border:1px solid var(--line);border-radius:14px;overflow:hidden;margin:16px 0 24px}.competition-summary>div{background:#fff;padding:16px}.competition-summary span{display:block;color:var(--muted);font-size:.82rem;margin-bottom:5px}.competition-summary strong{font-size:1.08rem}.competition-summary.behind>div:last-child{background:#fdeaea;color:var(--red)}
.match-allocation{display:grid;grid-template-columns:150px 1fr;gap:10px;margin:12px 0}.match-allocation select,.match-allocation input{margin:4px 0 0}
.section-title{margin:22px 0 12px}.group-tile-head{display:flex;gap:8px;justify-content:space-between;align-items:start}.allocation-line{margin:12px 0 16px}.free-tables{background:#edf8f2;border:1px solid #bfe3d2;border-radius:14px;padding:18px;margin-bottom:20px}.free-table-badge{display:inline-block;background:#fff;border:2px solid var(--green);color:var(--green);font-weight:800;border-radius:9px;padding:9px 12px;margin:4px}
.allocation-panel{border-top:5px solid var(--blue)}.allocation-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.allocation-actions{margin:4px 0 8px}
.table-picker{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 16px}.table-picker label{display:flex;align-items:center;gap:6px;width:auto;margin:0;padding:9px 12px;border:2px solid var(--blue);border-radius:9px;background:#eef6fd;cursor:pointer;font-weight:800}.table-picker label:has(input:checked){background:var(--blue);color:#fff}.table-picker label.unavailable{border-color:var(--line);background:#f3f5f8;color:#8a96a5;cursor:not-allowed}.table-picker input{width:auto;margin:0;accent-color:var(--green)}
@media(max-width:760px){.competition-summary{grid-template-columns:1fr 1fr}.allocation-grid,.match-allocation{grid-template-columns:1fr}.competition-picker{width:100%}.live-grid,.competition-grid{grid-template-columns:1fr}}
.competition-kind{text-transform:uppercase;letter-spacing:.08em;font-size:.72rem;font-weight:800;color:var(--muted);margin-bottom:6px}.status-completed .competition-kind{color:white}
.setup-card{max-width:950px}.setup-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.setup-card textarea{font-family:Segoe UI,Arial,sans-serif;line-height:1.6}.team-rosters{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px}.team-rosters details{border:1px solid var(--line);border-radius:9px;padding:10px}.team-rosters summary{font-weight:800;cursor:pointer}.team-rosters li{padding:3px}
.team-score{font-size:2rem;font-weight:900;color:var(--navy);margin:12px 0}.status-completed .team-score{color:white}.team-score-large{font-size:2.2rem;font-weight:900;color:var(--green)}.team-lineups{display:grid;grid-template-columns:1fr 1fr;gap:14px}.doubles-row{display:grid;grid-template-columns:130px 1fr 1fr;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}.doubles-row>div{display:grid;grid-template-columns:1fr 1fr;gap:6px}.doubles-row span{grid-column:1/-1;font-weight:700}.doubles-row select{margin:0}.rubber-row{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:14px 0;border-bottom:1px solid var(--line)}.rubber-row>div:first-child{display:grid;grid-template-columns:110px 1fr;gap:8px;align-items:center}.rubber-row .meta{grid-column:2}.versus{font-size:.8rem;font-weight:400;color:var(--muted)}
@media(max-width:760px){.setup-grid,.team-lineups{grid-template-columns:1fr}.doubles-row{grid-template-columns:1fr}.rubber-row{align-items:flex-start;flex-direction:column}.rubber-row>div:first-child{grid-template-columns:90px 1fr}}
