/* Tournament operations share the umpire palette and touch targets. */
.tournament-dialog h2{padding-right:35px;margin:0 0 16px;font-size:clamp(23px,4vw,30px)}
#modal:has(.tournament-dialog){width:min(760px,calc(100% - 24px));padding:22px;max-height:94dvh;overflow:auto}
.tournament-dialog form{margin:0}.tournament-dialog .small{font-size:13px;line-height:1.5}.tournament-dialog input,.tournament-dialog select{min-width:0;max-width:100%}
.tournament-match-names{display:flex;flex-wrap:wrap;gap:10px;align-items:center;font-size:22px;font-weight:750;line-height:1.4}.tournament-match-names span{font-size:16px;opacity:.7}
.tournament-court-options,.tournament-plan-courts{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:18px 0}.tournament-plan-courts{border:0;padding:0}.tournament-plan-courts legend{font-weight:700;margin-bottom:10px}
.tournament-choice{position:relative;display:block!important;margin:0!important;cursor:pointer}.tournament-choice input{position:absolute;opacity:0;width:1px;height:1px}.tournament-choice>span{display:flex;flex-direction:column;justify-content:center;min-height:54px;border:1px solid #9daea8;border-radius:8px;padding:10px 12px;background:#eff3e5;color:#173944;font-size:15px;font-weight:750;line-height:1.35}.tournament-choice small{font:500 12px/1.5 Manrope,Arial,sans-serif}.tournament-choice:has(:checked)>span{background:#d6e8ac;border-color:#5a793e;box-shadow:inset 0 0 0 1px #5a793e}.tournament-choice:has(:focus-visible)>span{outline:3px solid #479c92;outline-offset:2px}.tournament-choice:has(:disabled)>span{background:#dfe5df;color:#64716b;border-color:#c6cec8;cursor:default}
.tournament-inherited-format{font-size:14px;line-height:1.5;margin:16px 0}.tournament-dialog .auth-error{margin:12px 0;min-height:0}.tournament-dialog .auth-error:empty{display:none}.tournament-dialog form>.btn{width:100%;margin-top:14px}
.tournament-picker-list{display:grid;gap:10px;margin-top:16px;max-height:60dvh;overflow:auto}.tournament-picker-row{display:flex;flex-direction:column;align-items:flex-start;gap:8px;text-align:left;border:1px solid #8ba39d;border-radius:9px;padding:14px;background:#edf2e5;color:#173944;font-family:Manrope,Arial,sans-serif}.tournament-picker-row small{font-size:12px}.tournament-picker-row strong{font-size:18px;line-height:1.35;overflow-wrap:anywhere}.tournament-picker-row>span{font-size:13px}.tournament-picker-row:disabled{opacity:.6}.tournament-picker-row:hover:not(:disabled){background:#d6e8ac}
.tournament-picker-row[hidden],.tournament-picker-empty[hidden],.tournament-dialog button[hidden]{display:none!important}
.tournament-schedule{margin-top:24px}.tournament-schedule .tournament-section-head{flex-wrap:wrap}.tournament-schedule h2{font-size:26px;margin:0}.tournament-schedule-list{display:grid;gap:10px;margin-top:18px}.tournament-schedule-row{display:grid;grid-template-columns:130px minmax(0,1fr) auto;align-items:center;gap:18px;padding:16px;border:1px solid var(--line);border-radius:10px;background:#fff8}.tournament-schedule-row>div{display:flex;flex-direction:column;gap:6px;min-width:0}.tournament-schedule-row strong{font-size:16px;line-height:1.4;overflow-wrap:anywhere}.tournament-schedule-row small,.tournament-schedule-row span{font-size:12px;line-height:1.4}.tournament-schedule-time b{font-size:24px;font-variant-numeric:tabular-nums}.tournament-schedule-actions .btn{font:750 13px/1.4 Manrope,Arial,sans-serif;min-height:44px;padding:10px 14px;white-space:normal}.tournament-form-actions{display:flex;gap:10px;margin-top:18px}.tournament-form-actions .btn{flex:1}.draw-match-schedule{font-size:11px;line-height:1.5;color:var(--muted)}.draw-match>[data-public-match]{margin-top:12px;font-size:13px;padding:10px;min-height:44px;white-space:normal;width:100%}
.tournament-plan-preview{margin:14px 0;max-height:35dvh;overflow:auto}.tournament-plan-preview>div{display:grid;grid-template-columns:48px 1fr;gap:5px 12px;padding:10px 0;border-top:1px solid #9ea99d}.tournament-plan-preview>div>span:last-child{grid-column:2}.tournament-plan-preview span{font-size:12px;line-height:1.4}.tournament-entry-form{display:grid;grid-template-columns:1fr 1fr;gap:14px}.tournament-entry-form>.player-fields{margin:0;padding:12px}.tournament-entry-form>.form-grid,.tournament-entry-form>p,.tournament-entry-form>.btn{grid-column:1/-1}.tournament-entry-form>.player-fields:only-of-type{grid-column:1/-1}.tournament-entry-form>.btn{margin-top:0}.tournament-entry-form .form-grid{gap:12px}.tournament-entry-form .player-fields label{font-size:13px}.tournament-entry-form .player-fields input{font-size:15px}
@media(max-width:600px){.tournament-schedule-row{grid-template-columns:85px minmax(0,1fr);gap:12px;padding:12px}.tournament-schedule-row>.tournament-schedule-actions{grid-column:1/-1;flex-direction:row;justify-content:flex-end;flex-wrap:wrap}.tournament-schedule-time b{font-size:21px}.tournament-schedule-row strong{font-size:15px}.tournament-schedule-actions .btn{flex:1}.tournament-section-head>.btn{white-space:normal;max-width:100%}.tournament-entry-form{grid-template-columns:1fr}.tournament-entry-form>.player-fields{grid-column:1}.tournament-dialog .form-grid{grid-template-columns:1fr 1fr;gap:12px}.tournament-dialog label{font-size:13px}.tournament-dialog input,.tournament-dialog select{font-size:15px;padding:11px 9px}.tournament-form-actions{flex-wrap:wrap}.tournament-court-options{gap:8px}.tournament-choice>span{font-size:14px}}
@media(max-width:360px){.tournament-dialog .form-grid{grid-template-columns:1fr}#modal:has(.tournament-dialog){padding:16px}.tournament-court-options,.tournament-plan-courts{grid-template-columns:1fr 1fr}.tournament-choice>span{font-size:12px;padding:8px}}
.tournament-dialog,.tournament-dialog form,.tournament-dialog .form-grid,.tournament-dialog .form-grid>label{min-width:0}
.tournament-dialog .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.tournament-dialog input:not([type=radio]):not([type=checkbox]),.tournament-dialog select{box-sizing:border-box;width:100%;min-width:0;max-width:100%;min-inline-size:0}
.tournament-dialog .tournament-form-actions .btn{min-width:0;white-space:normal;line-height:1.4;font-size:14px;padding:12px}
.tournament-roster-search{grid-column:1/-1;margin-bottom:12px;font-size:15px!important}
@media(max-width:600px){.tournament-dialog .form-grid{grid-template-columns:1fr}.tournament-dialog .tournament-plan-courts{grid-template-columns:1fr 1fr}}
