/* Shared geometry for two, three or four published teams. A team is not a match side. */
.round-team-groups,.team-group-builder{--team-group-ink:#f2f6ed;--team-group-muted:#c1cfc3;--team-group-surface:#17251e;--team-group-line:#536b5b;--team-group-lime:#b7ff39;--team-group-orange:#ffb76b;--team-group-blue:#8dc6ff;--team-group-purple:#d7b1ff;min-width:0;color:var(--team-group-ink)}
.round-team-groups{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;gap:16px;margin-block:16px}
.round-team-groups[data-team-count="2"],.round-team-groups[data-team-count="4"]{grid-template-columns:repeat(2,minmax(0,1fr))}
.round-team-groups .round-team-group{display:flex;flex-direction:column;min-width:0;margin:0;padding:16px;border:1px solid var(--team-group-line);border-radius:var(--bdr-radius-panel,12px);background:var(--team-group-surface);color:var(--team-group-ink)}
.round-team-groups .round-team-group>header{display:flex;align-items:center;gap:12px;margin:0 0 16px;padding:0;border:0}
.round-team-groups .team-group-kit{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;color:var(--team-group-lime)}
.round-team-groups [data-team-key="orange"] .team-group-kit{color:var(--team-group-orange)}
.round-team-groups [data-team-key="blue"] .team-group-kit{color:var(--team-group-blue)}
.round-team-groups [data-team-key="purple"] .team-group-kit{color:var(--team-group-purple)}
.round-team-groups .team-group-kit svg{width:32px;height:32px}
.round-team-groups h3{margin:0;color:var(--team-group-ink);font-size:20px;line-height:1.3;overflow-wrap:anywhere}
.round-team-groups p,.round-team-groups small{margin:4px 0 0;color:var(--team-group-muted);font-size:13px;line-height:1.5}
.round-team-groups ul{display:grid;align-content:start;gap:12px;min-width:0;margin:0;padding:0;list-style:none}
.round-team-groups li{display:flex;align-items:center;gap:12px;min-width:0;margin:0;padding:0;border:0;background:transparent}
.round-team-groups li>span{display:grid;gap:2px;min-width:0}
.round-team-groups strong{color:var(--team-group-ink);font-size:15px;line-height:1.4;overflow-wrap:anywhere}
.team-group-builder .team-group-count-select{display:flex;flex-wrap:wrap;gap:8px;margin:0}
.team-group-builder .team-group-count-select button{min-height:44px;min-width:44px;margin:0;padding:10px 16px;border:1px solid var(--team-group-line);border-radius:var(--bdr-radius-control,8px);background:#21352a;color:var(--team-group-ink);font:700 14px/1.4 var(--body,system-ui,sans-serif);cursor:pointer}
.team-group-builder .team-group-count-select button[aria-pressed="true"]{border-color:var(--team-group-lime);background:var(--team-group-lime);color:#15220d}
.team-group-builder .team-group-count-select button:disabled{border-color:var(--team-group-line);background:#304237;color:#c6d3c8;opacity:1;cursor:default}
.team-group-builder .team-group-help{margin:0;color:var(--team-group-muted);font-size:14px;line-height:1.55}
.team-group-builder .manual-team-counts [data-side="blue"]{color:var(--team-group-blue)}
.team-group-builder[data-team-count="3"] .manual-team-choices{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
.team-group-builder[data-team-count="4"] .manual-team-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
.team-group-builder[data-team-count="4"] .manual-team-choices button{min-width:0;overflow-wrap:anywhere}
.team-group-builder .manual-team-counts [data-side="purple"]{color:var(--team-group-purple)}
.team-group-builder .manual-team-choices button[data-side="purple"]{color:var(--team-group-ink)}
.team-group-builder .manual-team-choices button[data-side="purple"][aria-pressed="true"]{border-color:var(--team-group-purple);background:var(--team-group-purple);color:#21102f}
.team-group-builder .manual-team-choices button[data-side="blue"]{color:var(--team-group-ink)}
.team-group-builder .manual-team-choices button[data-side="blue"][aria-pressed="true"]{border-color:var(--team-group-blue);background:var(--team-group-blue);color:#102033}
.team-group-builder button:focus-visible{outline:2px solid var(--team-group-lime);outline-offset:3px}
@media(max-width:780px){.round-team-groups,.round-team-groups[data-team-count="2"],.round-team-groups[data-team-count="4"]{grid-template-columns:minmax(0,1fr);gap:12px}.round-team-groups .round-team-group{padding:16px}.round-team-groups .round-team-group>header{margin-bottom:12px}.team-group-builder[data-team-count="3"] .manual-team-choices,.team-group-builder[data-team-count="4"] .manual-team-choices{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(hover:hover){.team-group-builder .manual-team-choices button[data-side="purple"]:not(:disabled):hover{border-color:var(--team-group-purple)}.team-group-builder .team-group-count-select button:not(:disabled):hover{border-color:var(--team-group-lime)}.team-group-builder .manual-team-choices button[data-side="blue"]:not(:disabled):hover{border-color:var(--team-group-blue)}}
#roundMatchesRoot .round-matches .rm-team[data-team-key="lime"]>span{color:#b7ff39}
#roundMatchesRoot .round-matches .rm-team[data-team-key="orange"]>span{color:#ffbc82}
#roundMatchesRoot .round-matches .rm-team[data-team-key="blue"]>span{color:#8dc6ff}
#roundMatchesRoot .round-matches .rm-matchup-sides{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:0;min-width:0}
#roundMatchesRoot .round-matches .rm-matchup-sides section{min-width:0;padding:12px;border:1px solid var(--rm-line,#536b5b);border-radius:var(--bdr-radius-control,8px);background:#17251e}
#roundMatchesRoot .round-matches .rm-matchup-sides h5{margin:0 0 8px;color:#f2f6ed;font:700 16px/1.4 var(--body,system-ui,sans-serif)}
#roundMatchesRoot .round-matches .rm-matchup-sides [data-team-key="lime"] h5{color:#b7ff39}
#roundMatchesRoot .round-matches .rm-matchup-sides [data-team-key="orange"] h5{color:#ffbc82}
#roundMatchesRoot .round-matches .rm-matchup-sides [data-team-key="blue"] h5{color:#8dc6ff}
#roundMatchesRoot .round-matches .rm-matchup-sides ul{display:grid;gap:6px;margin:0;padding:0;list-style:none;color:#f2f6ed;font-size:14px;line-height:1.5}
#roundMatchesRoot .round-matches [data-rm-matchup-preview]{display:grid;gap:16px;min-width:0}
#roundMatchesRoot .round-matches .rm-matchup-waiting{display:grid;gap:8px;padding:12px;border:1px solid var(--rm-line,#536b5b);border-radius:var(--bdr-radius-control,8px);background:#17251e;color:#f2f6ed;min-width:0}
#roundMatchesRoot .round-matches .rm-matchup-waiting p{margin:0;color:#f2f6ed;overflow-wrap:anywhere;font-size:14px;line-height:1.5}
#roundMatchesRoot .round-matches .rm-matchup-waiting small{color:#c1cfc3;font-size:13px;line-height:1.5}
@media(max-width:520px){#roundMatchesRoot .round-matches .rm-matchup-sides{grid-template-columns:minmax(0,1fr);gap:12px}}
#roundMatchesRoot .round-matches .rm-waiting-origin{margin:0;color:#c1cfc3;font-size:13px;line-height:1.5;overflow-wrap:anywhere}
#roundMatchesRoot .round-matches .rm-waiting-origin strong{color:#f2f6ed;font-weight:600}
#roundMatchesRoot .round-matches .rm-pregame-tools{min-width:0;margin:0;padding:0;border:1px solid var(--rm-line,#536b5b);border-radius:var(--bdr-radius-control,8px);background:var(--rm-surface,#17251e)}
#roundMatchesRoot .round-matches .rm-pregame-tools>summary{min-height:48px;padding:14px 16px;color:var(--rm-text,#f2f6ed);font-size:14px;font-weight:650;line-height:1.5;cursor:pointer}
#roundMatchesRoot .round-matches .rm-pregame-tools>div{display:grid;gap:20px;min-width:0;padding:0 16px 16px}
#roundMatchesRoot .round-matches .rm-pregame-tools>summary:focus-visible{outline:2px solid var(--rm-accent,#b7ff39);outline-offset:3px}

#roundMatchesRoot .round-matches .rm-team[data-team-key="purple"]>span,#roundMatchesRoot .round-matches .rm-matchup-sides [data-team-key="purple"] h5{color:#d7b1ff}

.team-drawer-card[data-tone="purple"]{border-color:#806298;background:#2c2235;color:#f2f6ed}
.team-drawer-card[data-tone="purple"] span,.team-drawer-card[data-tone="purple"] strong{color:#d7b1ff}
