.tournament-panel{margin-bottom:18px}.tournament-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap;margin-bottom:16px}.tournament-heading h2{margin:5px 0}.tournament-rounds{display:flex;gap:14px;overflow-x:auto;padding:4px 2px 16px;align-items:flex-start;scrollbar-width:thin}.tournament-round{flex:0 0 270px;min-width:0}.tournament-round h3{font-size:15px;color:#193e50;line-height:1.5;margin:0 0 12px}.tournament-game{border:1px solid #dce5ed;background:#fff;border-radius:14px;padding:12px;margin-bottom:12px;box-shadow:0 3px 10px rgba(17,33,50,.04)}.tournament-game-top{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:9px;font-size:12px}.tournament-tag{background:#edf3f8;color:#405b74;border-radius:999px;padding:5px 9px;white-space:nowrap;font-size:10px;font-weight:750}.tournament-tag.approved{background:#d7f4e8;color:#116448}.tournament-tag.pending{background:#fff0db;color:#975310}.tournament-team{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 8px;border-radius:8px;font-size:12px;line-height:1.5;border:1px solid #e9eef4;margin-top:5px;overflow-wrap:anywhere}.tournament-team span{min-width:0}.tournament-team.winner{background:#e5f6ed;color:#07583d;border-color:#b4e3cb;font-weight:800}.tournament-meta,.tournament-winner{font-size:11px;color:#60748a;margin-top:10px;line-height:1.5}.tournament-winner{color:#0b7754;font-weight:850}.tournament-details{border-top:1px solid #ecf0f5;margin-top:10px;padding-top:8px}.tournament-details summary{cursor:pointer;font-size:12px;font-weight:800;color:#21567c}.tournament-form{display:flex;flex-direction:column;gap:7px;margin-top:10px}.tournament-form label{font-size:11px;font-weight:800}.tournament-form :is(select,input){width:100%;min-width:0;box-sizing:border-box;padding:8px;border:1px solid #cad7e6;border-radius:8px;background:white;color:#173852;font-size:12px}.tournament-form .btn{min-height:34px;font-size:11px;line-height:1.4}.tournament-scores{display:grid;grid-template-columns:1fr 1fr;gap:7px}.tournament-scores>div{min-width:0}.tournament-form p{font-size:12px;line-height:1.6}.tournament-setup{display:flex;gap:12px;flex-wrap:wrap;align-items:end;margin-top:13px}.tournament-setup>div{flex:1 1 210px}.tournament-setup select,.tournament-setup input{width:100%;padding:10px;border:1px solid #cbd7e5;border-radius:11px;box-sizing:border-box}.tournament-note{font-size:12px;color:#50657a;line-height:1.7}.tournament-list{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.tournament-list a{display:inline-flex;align-items:center;border:1px solid #cfdbe8;border-radius:10px;padding:8px 12px;color:#164266;text-decoration:none;font-weight:750;font-size:12px}.tournament-list a.is-active{background:#135f50;color:white}.tournament-public-wrap{border:1px solid #dae3eb;border-radius:18px;background:#fff;padding:18px}.tournament-public-wrap .tournament-game{box-shadow:none}.tournament-public-wrap .tournament-heading .btn{background:#eff5fa;color:#1d415d;border-radius:9px;padding:9px 14px;text-decoration:none}
@media(max-width:700px){.tournament-round{flex-basis:242px}.tournament-public-wrap{padding:12px}.tournament-setup{display:block}.tournament-setup>div{margin:9px 0}.tournament-heading{align-items:flex-start}.tournament-panel{padding:12px!important}}

/* V70 multi-format scheduler + manual pairing */
.tournament-v70-setup{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px;align-items:end}
.tournament-v70-setup>div{flex:none;min-width:0}
.tournament-manual-wrap,.tournament-creation-preview{grid-column:1/-1;border:1px solid #d4e0ed;border-radius:13px;padding:12px;background:#f8fafc}
.tournament-manual-rows{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px;margin-top:10px}
.tournament-manual-row{display:flex;align-items:center;gap:8px}.tournament-manual-row span{font-size:12px;min-width:128px;font-weight:700}
.tournament-manual-row select{flex:1;min-width:0}
.tournament-v70-setup>button{justify-self:start}
.tournament-route-note{margin:8px 0 0;font-size:11px;color:#776046}
.tournament-standing{border-collapse:collapse;min-width:620px;width:100%}.tournament-standing th,.tournament-standing td{border-bottom:1px solid #e2eaf1;padding:9px;text-align:center;font-size:12px}.tournament-standing th:nth-child(2),.tournament-standing td:nth-child(2){text-align:left}
.tournament-manual-wrap[hidden]{display:none!important}
@media(max-width:700px){.tournament-v70-setup,.tournament-manual-rows{grid-template-columns:minmax(0,1fr)}.tournament-v70-setup{display:grid}}

/* V71: Stable draw position labels and pre-confirm pairing preview. */
.tournament-seed-code{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;font-size:11px!important;line-height:1.5;font-weight:850!important;letter-spacing:.015em;white-space:nowrap;color:#14543f!important;background:#e5f5ed!important;border:1px solid #b9dfcb;border-radius:7px;padding:2px 6px;margin-right:3px}
.tournament-code-key{margin:12px 0 16px;border:1px solid #d6e5e3;border-radius:12px;padding:11px 13px;background:#f8fcfa}
.tournament-code-key>summary{font-size:13px;font-weight:850;color:#185a49;cursor:pointer}
.tournament-code-key p{margin:9px 0}
.tournament-code-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:8px}
.tournament-code-entry{display:flex;align-items:center;gap:7px;background:white;border:1px solid #e4ece9;border-radius:9px;padding:8px;font-size:12px;min-width:0}
.tournament-code-entry>span:last-child{overflow-wrap:anywhere}
.tournament-manual-row .tournament-position-label{min-width:52px;font-size:13px;color:#185d49}
.tournament-manual-row .tournament-swap-buttons{display:flex;gap:4px}
.tournament-manual-row .tournament-swap-buttons button{border:1px solid #c5d8de;color:#1a4858;background:#fff;border-radius:8px;padding:7px 9px;cursor:pointer;min-height:36px}
.tournament-manual-row .tournament-swap-buttons button:disabled{opacity:.3;cursor:not-allowed}
.tournament-manual-row{background:#fff;border:1px solid #e2eaf0;border-radius:10px;padding:7px}
.tournament-creation-preview .tournament-preview-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(225px,1fr));gap:7px;margin-top:10px}
.tournament-preview-pair{border:1px solid #d7e4eb;background:#fff;border-radius:9px;padding:9px;font-size:12px;line-height:1.55}
.tournament-preview-pair b{display:block;margin-bottom:3px}
.tournament-preview-pair .tournament-seed-code{margin:2px}
.tournament-preview-summary{font-size:12px;color:#304c61;line-height:1.6}
.schedule-school-row .tournament-seed-code,.mobile-schedule-versus .tournament-seed-code{font-size:10px!important}
@media(max-width:700px){.tournament-manual-row{flex-wrap:wrap}.tournament-manual-row select{flex:1 1 160px}.tournament-manual-row .tournament-swap-buttons{margin-left:auto}.tournament-code-list{grid-template-columns:1fr}}
.tournament-manual-row .tournament-swap-buttons{min-width:0!important;flex-shrink:0}

/* V72 — method-aware results */
.tournament-v70-setup #tbStatOptions[hidden]{display:none!important}
.tournament-v70-setup #tbStatOptions{display:flex;flex-direction:column;gap:6px}
.tournament-v70-setup #tbStatOptions select{width:100%}
.tournament-schedule-result{max-width:280px;min-width:150px;overflow-wrap:anywhere;font-size:12px;color:#21516b}
.tournament-mobile-result{margin:9px 0 0;padding:9px 11px;background:#eff7f3;color:#1b5845;border-radius:10px;line-height:1.6;font-size:12px}
.tournament-form .tournament-scores input{font-variant-numeric:tabular-nums}

/* V72 individual heats; never grow wider than the results panel. */
.individual-heat-block{padding:16px;margin:16px 0;max-width:100%}
.individual-heat-block .tournament-standing{min-width:500px}
.individual-heat-block .tournament-standing td:first-child,.individual-heat-block .tournament-standing th:first-child{text-align:left}
.individual-heat-block .tournament-standing td:last-child{min-width:130px}
.individual-heat-block input{width:100%;min-width:0;padding:8px 10px;border:1px solid #cad7e6;border-radius:8px;font-variant-numeric:tabular-nums}
.individual-heat-block .tournament-form{display:block}
.individual-heat-block .tournament-form>button{margin:12px 0 0}
.individual-heat-block .tournament-winner{padding:9px 12px;border-radius:9px;background:#e8f6ee}
#ieStat[hidden]{display:none!important}
#ieStat{display:grid;gap:8px}
