/* Flexible configurations retain readable cards and give longer competitions room to grow. */
/* The standalone launch shell uses the same daytime palette as public pages. */
html[data-theme="light"] .tournament-setup-page {
  --launch-navy:var(--surface-0);
  --launch-panel:var(--surface-1);
  --launch-line:var(--line-strong);
  --launch-text:var(--text-1);
  --launch-muted:var(--text-3);
  --launch-lime:var(--lime);
}
html[data-theme="light"] .tournament-setup-page :is(.launch-primary,.launch-steps .active i) { color:var(--lime-ink); }
html[data-theme="light"] .tournament-setup-page :is(.crest-picker,.crest-upload) { color:var(--text-2) !important; }
html[data-theme="light"] .tournament-setup-page .ceremony-team-card :is(.team-card-mark,input):focus-visible { outline-color:var(--lime); }
.tournament-setup-page > .platform-theme-toggle { position:absolute; }
.tournament-setup-page .event-launch-head { padding-inline-end:80px; }
.tournament-setup-page [hidden], .schedule-centre-page [hidden], .event-settings-page [hidden] { display:none !important; }
.configuration-note,.setup-team-count { color:var(--text-2);font-size:15px;line-height:1.6; }
.configuration-note { grid-column:1/-1;margin:0;padding:12px 14px;border:1px solid var(--line);background:var(--surface-inset); }
.rule-grid label { min-width:0; }
.rule-grid select { width:100%;min-width:0; }
.launch-submit-row { gap:18px; }
.launch-submit-row .format-summary { min-width:0; }
.launch-submit-row .launch-primary { flex-shrink:0;white-space:nowrap; }
.points-rule-section>small { color:var(--muted);font-size:14px; }
.large-team-setup .team-setup-stage { height:auto;min-height:0;overflow:visible; }
.large-team-setup .ceremony-team-grid { grid-auto-rows:auto; }
.large-team-setup .ceremony-team-card form { min-height:132px;padding:14px; }
.large-team-setup .ceremony-team-card input { min-height:40px;font-size:16px; }
.large-team-setup .setup-next { position:sticky;bottom:0;z-index:4;padding:12px;background:var(--panel-2);border-top:1px solid var(--line); }
.credential-copy span { overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.schedule-phase-nav { grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); }
.has-many-groups .mobile-group-round-filter { display:grid;gap:10px;margin-bottom:16px; }
.has-many-groups .mobile-group-switcher,.has-many-groups .mobile-round-switcher { display:flex;flex-wrap:wrap;gap:8px; }
.has-many-groups .mobile-group-switcher a,.has-many-groups .mobile-round-switcher a { display:flex;align-items:center;gap:8px;padding:8px 12px;border:1px solid var(--line);color:var(--text-2);background:var(--surface-inset);text-decoration:none; }
.has-many-groups .mobile-group-switcher a.active,.has-many-groups .mobile-round-switcher a.active { border-color:var(--lime);color:var(--lime); }
.has-many-groups .compact-standings-grid { grid-template-columns:1fr; }
.has-many-groups .compact-standings-grid>article:not(.is-selected-group) { display:none; }
.has-many-groups .draw-groups-grid { grid-template-columns:repeat(auto-fit,minmax(240px,1fr));align-items:start; }
.has-large-group .group-overview-column,.has-large-group .compact-standings-panel { min-height:0;height:auto; }
.has-large-group .compact-standings-grid { flex:none;grid-template-columns:1fr; }
.has-large-group .compact-standings-grid>article { height:auto;grid-template-rows:auto;grid-auto-rows:minmax(42px,auto); }
.has-large-group .compact-standing-row { min-height:42px !important; }
.has-large-group .group-fixture-workbench { height:clamp(600px,75vh,900px);min-height:0; }
.league-champion { border:1px solid var(--lime);padding:12px;font-size:18px;color:var(--lime); }
.flexible-bracket-hint { margin:0;padding:14px 20px;color:var(--muted);font-size:14px; }
.flexible-bracket-scroll { max-width:100%;overflow-x:auto;padding:0 18px 22px; }
.flexible-bracket-scroll:focus-visible,.control-flexible-bracket:focus-visible { outline:2px solid var(--lime);outline-offset:-2px; }
.flexible-bracket-rounds { display:grid;grid-template-columns:repeat(var(--round-count),minmax(310px,1fr));gap:22px;min-width:max-content;align-items:start; }
.flexible-bracket-round { min-width:310px;max-width:420px; }
.flexible-bracket-round>header { border-bottom:1px solid var(--line);margin-bottom:12px;padding:10px 0; }
.flexible-bracket-round h3 { margin:0 0 5px;color:var(--lime);font-size:20px; }
.flexible-bracket-round small { color:var(--muted);font-size:14px; }
.flexible-round-matches { display:grid;gap:12px; }
.flexible-round-matches .knockout-match { width:100%;box-sizing:border-box;min-height:150px;padding:12px; }
.flexible-round-matches .knockout-team-row>b { font-size:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.flexible-round-matches .knockout-team-row { grid-template-columns:28px minmax(0,1fr) 38px 30px;gap:6px;min-height:34px; }
.control-flexible-bracket { display:grid;grid-auto-flow:column;grid-auto-columns:minmax(240px,320px);gap:14px;overflow-x:auto;padding-bottom:12px; }
.control-flexible-bracket .knockout-match { margin:8px 0; }
.control-flexible-bracket .knockout-match>b { overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.group-board { grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); }
.group-entry span { overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
@media(min-width:2400px) {
  .flexible-bracket-rounds { grid-template-columns:repeat(var(--round-count),minmax(380px,1fr));gap:28px; }
  .flexible-bracket-round { min-width:380px;max-width:520px; }
  .flexible-round-matches .knockout-team-row>b { font-size:20px; }
  .flexible-round-matches .knockout-match { padding:18px; }
  .large-team-setup .ceremony-team-card form { padding:18px;min-height:172px; }
}
@media(max-width:980px) {
  .has-large-group .group-fixture-workbench { height:auto; }
  .flexible-bracket-rounds { grid-template-columns:repeat(var(--round-count),310px); }
  .configuration-note { font-size:14px; }
}
@media(min-width:761px) and (max-width:1300px) {
  .large-team-setup .ceremony-team-grid { min-width:0;grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); }
  .tournament-setup-page .review-grid { min-width:0;grid-template-columns:minmax(0,1fr); }
}
@media(max-width:760px) {
  .tournament-setup-page .event-launch-head { padding-top:40px;padding-inline-end:0; }
}
