.compound-create{max-width:1040px;margin:auto;color:#243746}.compound-create *{box-sizing:border-box}.compound-create [hidden]{display:none!important}.compound-notice{padding:14px 18px;background:#f0f6fa;border:1px solid #cbdde8;border-radius:8px}.compound-section{padding:24px;margin:20px 0;border:1px solid #d8e1e8;border-radius:10px;background:#fff}.compound-section h2{font-size:1.2rem;margin:0 0 20px}.compound-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.compound-create label{display:flex;flex-direction:column;gap:8px;font-weight:600}.compound-create input,.compound-create select{font:inherit;padding:10px;border:1px solid #a8bac7;border-radius:6px;min-width:0;width:100%;background:#fff;color:inherit}.compound-create input[type=checkbox]{width:20px;height:20px;flex-shrink:0}.compound-create :focus-visible{outline:3px solid #1778b5;outline-offset:3px}.compound-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:18px}.compound-group{min-width:0;border:1px solid #d8e1e8;border-radius:6px;padding:16px;display:grid;grid-template-columns:1fr 1fr;gap:12px}.compound-group legend{font-weight:700;padding:0 5px}.compound-ranks{display:grid;gap:12px;grid-template-columns:repeat(2,minmax(0,1fr))}.compound-rank{border:1px solid #d8e1e8;padding:12px;border-radius:6px}.compound-rank>label{flex-direction:row;align-items:center}.compound-rank select{margin-top:10px}.compound-errors{color:#a12828}.compound-create button{padding:12px 24px;border:1px solid #12638a;border-radius:6px;background:#12638a;color:#fff;font:inherit;font-weight:700;cursor:pointer}#compoundSummary{margin-top:20px;padding:18px;background:#f3f7f9;border:1px solid #cbdde8;border-radius:6px;overflow-wrap:anywhere}@media(max-width:600px){.compound-section{padding:16px}.compound-grid,.compound-groups,.compound-ranks{grid-template-columns:1fr}.compound-group{gap:10px}.compound-section h2{font-size:1.1rem}}
.compound-create button:disabled{background:#e3e9ed;border-color:#cbd5dc;color:#667783;cursor:not-allowed}.compound-create button[type=button]{margin-top:22px}.compound-choice{border:0;padding:0;margin:20px 0;min-width:0}.compound-choice legend{font-weight:600;margin-bottom:10px}.compound-toggle{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;width:100%;max-width:400px}.compound-toggle label{position:relative;display:flex;min-width:0;cursor:pointer}.compound-toggle label:focus-within{z-index:1}.compound-toggle input{position:absolute;opacity:0;width:1px;height:1px}.compound-toggle span{display:flex;align-items:center;justify-content:center;text-align:center;width:100%;padding:12px 8px;border:1px solid #a8bac7;border-radius:0;background:#fff}.compound-toggle label:first-child span{border-radius:6px 0 0 6px}.compound-toggle label:last-child span{border-radius:0 6px 6px 0;border-left:0}.compound-toggle input:checked+span{background:#e7f3fa;border-color:#12638a;color:#125d82;box-shadow:inset 0 0 0 1px #12638a}.compound-toggle input:focus-visible+span{outline:3px solid #1778b5;outline-offset:3px}.compound-create input:read-only{background:#edf2f5;color:#526575}.compound-groups{grid-template-columns:1fr}.compound-section h2{scroll-margin-top:100px}#compoundGroupCount{max-width:360px;margin-top:20px}
.compound-group{display:flex;flex-wrap:wrap;align-items:center;gap:12px 24px;padding:12px 16px}.compound-group label{flex-direction:row;align-items:center;gap:8px;white-space:nowrap}.compound-group input{width:4.5rem;flex:0 0 4.5rem;padding:8px;min-height:44px}.compound-group legend{font-size:.95rem}@media(max-width:600px){.compound-group{gap:10px;padding:12px}.compound-group label{justify-content:space-between;width:100%;font-size:.9rem}}

/* Shared stage colors: use the same tokens for later brackets and results. */
:root {
    --tournament-qualifying-bg: #edf6fc;
    --tournament-qualifying-accent: #165e88;
    --tournament-qualifying-border: #b7d6e9;
    --tournament-qualifying-selected: #d6eaf7;
    --tournament-final-bg: #fff4e8;
    --tournament-final-accent: #91460d;
    --tournament-final-border: #e8c6a3;
    --tournament-final-selected: #ffe3c4;
}
.tournament-stage--qualifying {
    --stage-bg: var(--tournament-qualifying-bg);
    --stage-accent: var(--tournament-qualifying-accent);
    --stage-border: var(--tournament-qualifying-border);
    --stage-selected: var(--tournament-qualifying-selected);
}
.tournament-stage--final {
    --stage-bg: var(--tournament-final-bg);
    --stage-accent: var(--tournament-final-accent);
    --stage-border: var(--tournament-final-border);
    --stage-selected: var(--tournament-final-selected);
}
.compound-section.tournament-stage { background: var(--stage-bg); border: 1px solid var(--stage-border); }
.tournament-stage h2 { color: var(--stage-accent); font-size: 1.4rem; font-weight: 750; }
.compound-choice .compound-format-title { color: var(--stage-accent); font-size: clamp(1.5rem, 3vw, 1.8rem); font-weight: 750; line-height: 1.4; margin-bottom: 16px; }
.tournament-stage .compound-toggle input:checked + span { background: var(--stage-selected); color: var(--stage-accent); border-color: var(--stage-accent); box-shadow: inset 0 0 0 1px var(--stage-accent); }
.tournament-stage .compound-group, .tournament-stage .compound-rank { background: #fff; border-color: var(--stage-border); }
.tournament-stage button:not(:disabled) { background: var(--stage-accent); border-color: var(--stage-accent); }

.compound-final-intro{font-size:1rem;line-height:1.7}.compound-ranks{grid-template-columns:1fr}.compound-final-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,360px);align-items:center;gap:16px 24px;padding:20px;border:1px solid var(--stage-border);border-radius:8px;background:#fff}.compound-final-info{min-width:0}.compound-final-info h3{font-size:1.35rem;margin:8px 0;color:var(--stage-accent)}.compound-final-info p{font-size:.95rem;color:#526575;margin:8px 0 0}.compound-final-badge{display:inline-block;border-radius:4px;padding:4px 8px;background:var(--stage-bg);color:var(--stage-accent);font-size:.8rem;font-weight:700}.compound-final-info>label{flex-direction:row-reverse;justify-content:flex-end;align-items:center;gap:10px;font-size:1.15rem;color:var(--stage-accent);cursor:pointer}.compound-final-info input[type=checkbox]{accent-color:var(--stage-accent)}.compound-final-format{margin:0}.compound-final-format legend{font-size:1.15rem;color:var(--stage-accent);font-weight:750}.compound-final-format .compound-toggle{max-width:none}.compound-final-card.is-selected{background:#fffaf4}.compound-extra-title{margin:28px 0 8px;font-size:1.15rem}@media(max-width:700px){.compound-final-card{grid-template-columns:1fr;padding:16px;gap:18px}.compound-final-format{width:100%}}

.compound-detail{margin:20px 0;padding:20px;border:1px solid var(--stage-border);border-radius:8px;background:var(--stage-bg)}.compound-detail h3{margin:0 0 12px;color:var(--stage-accent);font-size:1.3rem}.compound-detail h4{font-size:1rem;margin:24px 0 12px}.compound-detail-note{color:#526575;line-height:1.7}.compound-placement-rows{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.compound-placement-rows label{flex-direction:row;align-items:center;gap:8px;padding:8px;background:#fff;border:1px solid var(--stage-border);border-radius:5px}.compound-placement-rows input,.compound-points input{width:4.5rem;flex:0 0 4.5rem;min-height:44px}.compound-first-round{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.compound-first-round p{margin:0;padding:12px;background:#fff;border:1px solid var(--stage-border);border-radius:5px;overflow-wrap:anywhere}.compound-rule-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.compound-points{display:flex;flex-wrap:wrap;gap:12px 20px;border:0;padding:12px 0;margin:12px 0}.compound-points label{flex-direction:row;align-items:center}.compound-criteria{display:grid;gap:8px;margin:12px 0 20px}.compound-criterion{display:flex;align-items:center;gap:8px;background:#fff;padding:8px;border:1px solid var(--stage-border);border-radius:5px}.compound-criterion label{flex:1;flex-direction:row-reverse;justify-content:flex-end;align-items:center}.compound-create .compound-criterion button{margin:0;padding:8px 14px;min-height:44px}.compound-detail>label{margin-top:20px}@media(max-width:650px){.compound-detail{padding:14px}.compound-placement-rows,.compound-first-round,.compound-rule-grid{grid-template-columns:1fr}.compound-criterion{gap:4px}.compound-create .compound-criterion button{padding:8px 10px}.compound-criterion label{font-size:.9rem}}

.compound-basic{border:1px solid #cbd8df;border-radius:8px;background:#f3f7fa;padding:20px;margin:20px 0}.compound-basic>h3{font-size:1.3rem;margin:0 0 16px}.compound-basic .compound-detail{margin-bottom:0}.compound-seed-rows{display:grid;gap:10px;margin-top:16px}.compound-seed-row{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center;background:#fff;padding:10px;border:1px solid var(--stage-border);border-radius:5px}.compound-seed-row>label{display:flex;flex-direction:row;align-items:center}.compound-seed-row>label input{width:4rem}.compound-create .bracket-seed-controls{display:flex;gap:4px;align-items:center}.compound-create .bracket-seed-controls .seed-num-input{width:3rem;padding:8px;text-align:center}.compound-create .bracket-seed-controls .seed-btn{margin:0;padding:8px;width:44px;height:44px}.compound-bracket-preview{margin-top:18px}.compound-bracket-preview>summary{cursor:pointer;font-weight:700;padding:12px;background:#fff;border:1px solid var(--stage-border);border-radius:5px}.compound-bracket-scroll{overflow:auto;max-height:650px;max-width:100%;padding:12px;background:#fff}.compound-bracket-scroll svg{display:block;max-width:none}.compound-seed-row input:read-only{background:#edf2f5}@media(max-width:650px){.compound-basic{padding:14px}.compound-seed-row>label{width:100%;justify-content:space-between}.compound-detail{min-width:0}}
.compound-order-name{min-width:110px}.compound-order-buttons{display:flex;gap:4px}.compound-create .compound-order-buttons button{margin:0;width:44px;height:44px;padding:8px}.compound-seed-row .compound-order-buttons{margin-right:8px}@media(max-width:650px){.compound-order-name{flex:1}.compound-order-buttons{flex-shrink:0}.compound-seed-row>.bracket-seed-controls{margin-left:auto}}

.compound-seed-row,.compound-criterion{display:grid;grid-template-columns:minmax(0,1fr) 32px;gap:6px;padding:0;border:0;background:transparent;align-items:center}.compound-sort-content{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;min-width:0;padding:10px;border:1px solid var(--stage-border);border-radius:6px;background:#fff}.compound-create .compound-order-buttons{display:flex;flex-direction:column;gap:2px;margin:0}.compound-create .compound-order-buttons button{width:32px;min-height:30px;height:30px;padding:0;background:transparent;border:1px solid transparent;color:#667783;font-size:16px}.compound-create .compound-order-buttons button:hover:not(:disabled){background:#fff;border-color:#cbd5dc}.compound-create .compound-order-buttons button:disabled{background:transparent;color:#b9c4cc;border-color:transparent}.compound-create button.compound-drag-handle{margin:0;padding:0;min-width:32px;width:32px;min-height:44px;height:44px;background:transparent;border:0;color:#738390;font-size:25px;cursor:grab;touch-action:none;user-select:none}.compound-create button.compound-drag-handle:active{cursor:grabbing}.is-dragging>.compound-sort-content{opacity:.65}.is-drop-target>.compound-sort-content{background:var(--stage-selected);outline:2px dashed var(--stage-accent);outline-offset:1px}.compound-rule-grid .compound-choice{margin:0}.compound-sort-content>.compound-order-name{min-width:90px}.compound-criterion .compound-sort-content{flex-wrap:nowrap}@media(max-width:650px){.compound-sort-content{gap:6px;padding:8px}.compound-sort-content>.compound-order-name{flex:1;min-width:100px}.compound-sort-content>.bracket-seed-controls{margin-left:auto}.compound-sort-content>.compound-drag-handle{flex-shrink:0}.compound-criterion label{min-width:0}}

.compound-team-group{background:var(--stage-bg);border:1px solid var(--stage-border);border-radius:8px;padding:20px;margin:20px 0}.compound-team-group h3{color:var(--stage-accent);font-size:1.3rem;margin:0 0 12px}.compound-team-bulk{margin:14px 0}.compound-team-bulk summary{cursor:pointer;font-weight:600;padding:10px 0}.compound-team-bulk textarea{width:100%;padding:12px;border:1px solid var(--stage-border);border-radius:6px;font:inherit;resize:vertical}.compound-team-rows{display:grid;gap:10px}.compound-team-row{display:grid;grid-template-columns:minmax(0,1fr) 32px;gap:6px;align-items:center}.compound-team-row .compound-sort-content{flex-wrap:nowrap}.compound-create .compound-team-name{flex:1;min-width:0;flex-direction:row;align-items:center}.compound-team-name span{color:#526575}.compound-team-name input{flex:1;min-width:0}.compound-team-row .compound-order-buttons[hidden]{display:none}@media(max-width:650px){.compound-team-group{padding:14px}.compound-team-row .compound-sort-content{padding:6px;gap:4px}}

.compound-review-fixtures{margin:12px 0;padding:12px;border:1px solid #cbd5df;border-radius:8px;min-width:0}
.compound-review-fixtures summary{cursor:pointer;font-weight:700;overflow-wrap:anywhere}
.compound-fixture-round{padding:8px 0;border-bottom:1px solid #dbe3ea}
.compound-fixture-round h4{margin:8px 0}.compound-fixture-round ul{padding-left:24px}.compound-fixture-round li{margin:6px 0;overflow-wrap:anywhere}

.compound-required{display:inline-block;margin:0 6px;color:#9b3021;background:#fff0eb;border:1px solid #e4bbb2;border-radius:4px;padding:1px 5px;font-size:11px;font-weight:700;vertical-align:middle}
.compound-guidance{margin:20px 0 8px;padding:12px 14px;background:#fff8ee;border:1px solid #ddc9a9;border-radius:8px;overflow-wrap:anywhere}
.compound-guidance p{margin:0;font-weight:600}.compound-guidance ul{margin:8px 0 0;padding-left:20px}.compound-guidance ul:empty{display:none}
.compound-create .compound-guidance button[type=button]{margin:3px 0;padding:4px 0;background:transparent;border:0;color:#804216;text-align:left;text-decoration:underline;line-height:1.6;white-space:normal}
.compound-guidance.is-complete{background:#f0f7f3;border-color:#bed7c6;color:#26593a}
.compound-create input.compound-needs-input:not([type=radio]):not([type=checkbox]),.compound-create select.compound-needs-input{border-color:#a86120;background:#fffaf1}
.compound-create input:focus,.compound-create select:focus,.compound-create .compound-guidance button:focus-visible{outline:3px solid #1778b5;outline-offset:3px}
.compound-toggle input:focus + span{outline:3px solid #1778b5;outline-offset:3px}

.compound-review-fixtures h3{margin:0 0 8px;overflow-wrap:anywhere}.compound-review-fixtures>p{margin:0 0 12px}
.compound-league-scroll{max-width:100%;overflow:auto;border:1px solid #cbd5df;border-radius:6px;background:#fff}
.compound-league-table{border-collapse:separate;border-spacing:0;width:100%;font-size:14px;text-align:center}
.compound-league-table caption{text-align:left;padding:10px;font-weight:600}
.compound-league-table th,.compound-league-table td{padding:10px;min-width:76px;border-right:1px solid #d8e1e8;border-bottom:1px solid #d8e1e8;overflow-wrap:anywhere}
.compound-league-table th{background:#f0f5f8;min-width:110px;max-width:180px}
.compound-league-table tbody th{position:sticky;left:0;text-align:left;z-index:1}
.compound-league-table td.is-self{background:#e2e8ee;color:#637381}

.compound-saved-settings{margin:20px 0;padding:20px;border:1px solid #cbd5df;border-radius:10px;background:#f5f8fb;scroll-margin-top:100px}
.compound-saved-settings h2{font-size:1.2rem}.compound-save-actions{display:flex;flex-wrap:wrap;gap:8px}.compound-saved-settings button{font-size:14px;padding:10px 14px}
.compound-saved-row{padding:12px 0;border-bottom:1px solid #d8e1e8;overflow-wrap:anywhere}.compound-saved-row button{margin-right:8px}

.compound-phase-gate{border:0;padding:0;margin:0;min-width:0}
.compound-phase-nav{position:sticky;top:0;z-index:20;background:#fff;border:1px solid #e0e8ed;border-radius:16px;padding:16px 20px 20px;margin:20px 0;box-shadow:0 4px 16px #203b4d06}
.compound-phase-nav ol{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));list-style:none;gap:0;margin:0;padding:8px 0 0}
.compound-phase-nav li{position:relative;display:flex;flex-direction:column;align-items:center;gap:10px;min-width:0;text-align:center;color:#778691;font-size:13px;line-height:1.4}
.compound-phase-nav li:not(:last-child)::after{content:"";position:absolute;height:1px;background:#dfe7ec;top:17px;left:calc(50% + 25px);width:calc(100% - 50px)}
.compound-phase-number{display:grid;place-items:center;width:34px;height:34px;border:1px solid #dce5eb;border-radius:50%;background:#f7f9fb;color:#778691;font-size:14px;font-weight:600;font-variant-numeric:tabular-nums}
.compound-phase-nav li[aria-current=step]{color:#12638a;font-weight:700}
.compound-phase-nav li[aria-current=step] .compound-phase-number{background:#12638a;border-color:#12638a;color:#fff;box-shadow:0 0 0 4px #edf5fa}
.compound-phase-nav li.is-complete{color:#438077}.compound-phase-nav li.is-complete .compound-phase-number{background:#eef7f3;border-color:#c7e0d7;color:#347566}.compound-phase-nav li.is-complete::after{background:#b8d6cd}
.compound-phase-status{font-size:12px;letter-spacing:.06em;font-weight:600;margin:0;color:#627988}
@media(max-width:600px){.compound-phase-nav{padding:12px 10px 16px;border-radius:12px}.compound-phase-nav li{font-size:11px;gap:9px}.compound-phase-number{width:28px;height:28px;font-size:12px}.compound-phase-nav li:not(:last-child)::after{top:14px;left:calc(50% + 18px);width:calc(100% - 36px)}.compound-phase-label{max-width:5em;min-height:2.8em}.compound-phase-status{font-size:11px;letter-spacing:.02em}}
.compound-create button.compound-phase-back{background:#fff;color:#365268;border:1px solid #a8bac7;margin-left:12px}
#compoundForm.is-phase-sliding{overflow-x:clip}

.compound-phase-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:22px}.compound-phase-actions>button:last-child{margin-left:auto}.compound-create .compound-phase-actions>button[type=button]{margin-top:0}.compound-create .compound-phase-actions>.compound-phase-back{margin-left:0}

.compound-saved-tools{position:sticky;top:0;z-index:40;display:flex;justify-content:flex-end;align-items:center;min-height:68px;padding:10px 0;pointer-events:none}.compound-saved-tools>button{pointer-events:auto}.compound-phase-nav>.compound-phase-status{margin-bottom:16px}
.compound-create button.compound-saved-trigger{margin:0;padding:13px 22px;min-height:46px;font-size:15px;font-weight:700;background:#12638a;color:#fff;border:1px solid #12638a;border-radius:999px;box-shadow:0 5px 16px #125d8233}.compound-create button.compound-saved-trigger:hover{background:#0c506f}.compound-create button.compound-saved-trigger[aria-expanded=true]{background:#0a4764}
.compound-create>.compound-saved-settings{position:fixed;right:16px;top:68px;width:min(480px,calc(100vw - 40px));max-height:calc(100dvh - 180px);overflow:auto;overscroll-behavior:contain;margin:0;padding:18px;background:#fff;border:1px solid #b9cbd6;box-shadow:0 8px 28px #17384b26;z-index:41}
.compound-saved-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.compound-saved-heading h2{margin:0;font-size:1.1rem}
.compound-create .compound-saved-heading button{margin:0;padding:5px 10px;background:#fff;border:1px solid #cbd5df;color:#365268;font-size:20px;line-height:1}
.compound-saved-settings p{font-size:14px;line-height:1.65}.compound-saved-settings .compound-save-actions{gap:6px}.compound-create .compound-save-actions button[type=button]{margin-top:10px}

.compound-forfeit .compound-toggle{max-width:none}

/* Shared drag feedback for teams, tournament slots and ranking criteria. */
.is-sort-shifting{transition:transform 220ms cubic-bezier(.2,.7,.2,1)}
.is-dragging{position:relative;z-index:5;will-change:transform}
.is-dragging>.compound-sort-content{opacity:1;box-shadow:0 12px 28px rgba(25,55,75,.2);outline:2px solid var(--stage-accent,#12638a);outline-offset:1px;transform:scale(1.015)}
.compound-sort-content{transition:box-shadow 180ms ease,transform 180ms ease}
@media(prefers-reduced-motion:reduce){.is-sort-shifting,.compound-sort-content{transition:none}.is-dragging>.compound-sort-content{transform:none}}

/* Keep the qualifying/finals palette through the final review. */
#compoundSummary{background:#fff}
.compound-review-fixtures{background:var(--stage-bg);border-color:var(--stage-border);padding:18px;margin:18px 0}
.compound-review-fixtures h3{color:var(--stage-accent);font-size:1.3rem}
.compound-review-fixtures .compound-league-scroll,.compound-review-fixtures .compound-bracket-scroll{border:1px solid var(--stage-border);border-radius:6px}
.compound-review-fixtures .compound-league-table caption{color:var(--stage-accent)}
.compound-review-fixtures .compound-league-table th{background:var(--stage-bg);color:var(--stage-accent)}
.compound-review-fixtures .compound-league-table th,.compound-review-fixtures .compound-league-table td{border-color:var(--stage-border)}
.compound-review-fixtures .compound-league-table td.is-self{background:var(--stage-selected);color:var(--stage-accent)}
@media(max-width:650px){.compound-review-fixtures{padding:12px}}

.compound-register{display:block;margin-top:20px!important}.compound-management{padding:24px;background:#fff;border:1px solid #d8e1e8;border-radius:10px}.compound-management>h2{scroll-margin-top:120px}.compound-overview-stats{display:flex;gap:12px;flex-wrap:wrap;margin:24px 0}.compound-overview-stats p{margin:0;padding:12px 18px;border:1px solid #cbdde8;border-radius:6px;background:#edf6fc;color:#165e88;font-weight:700}.compound-overview-stats p:last-child{background:#fff4e8;color:#91460d;border-color:#e8c6a3}.compound-competition-status{color:var(--stage-accent);font-weight:600}.compound-match-list{margin-top:16px}.compound-match-list>summary{padding:12px;background:#fff;border:1px solid var(--stage-border);border-radius:6px}.compound-management a{color:#165e88}.compound-registered-list{list-style:none;padding:0}.compound-registered-list li{padding:18px;border:1px solid #cbdde8;border-radius:8px;margin:12px 0}.compound-registered-list a{font-weight:700}.compound-registered-list p{margin-bottom:0}@media(max-width:650px){.compound-management{padding:14px}}

.compound-result-dialog{box-sizing:border-box;width:min(640px,calc(100vw - 24px));max-height:calc(100dvh - 32px);padding:24px;border:1px solid var(--stage-border,#cbdde8);border-radius:12px;background:#fff;overflow:auto;color:#243746}.compound-result-dialog::backdrop{background:rgba(18,40,55,.38)}.compound-result-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.compound-result-heading h3{margin:0;color:var(--stage-accent);overflow-wrap:anywhere}.compound-create .compound-result-heading button{margin:0;padding:6px 12px;background:#fff;color:#526575;border-color:#cbdde8;min-height:44px}.compound-result-scores{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.compound-result-scores>label{padding:14px;background:var(--stage-bg);border:1px solid var(--stage-border);border-radius:8px;overflow-wrap:anywhere}.compound-result-scores small{color:#a12828}.compound-score-stepper{display:flex;gap:4px;align-items:center}.compound-score-stepper input{min-width:0;text-align:center}.compound-create .compound-score-stepper button{padding:4px;margin:0;width:40px;min-width:40px;min-height:44px}.compound-result-dialog .compound-toggle{max-width:none}.compound-result-decisions{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr)}.compound-result-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}.compound-create .compound-result-actions button{margin-top:8px}.compound-create .compound-result-actions [data-close],.compound-create .compound-result-actions [data-clear]{background:#fff;color:#526575;border-color:#a8bac7}.compound-result-dialog [data-result-status]{color:#a12828;line-height:1.6}.compound-match-list li{display:flex;align-items:center;flex-wrap:wrap;gap:8px 16px;padding:10px 0}.compound-match-list li>span{flex:1;min-width:160px}.compound-match-list li>strong{color:var(--stage-accent)}.compound-create .compound-match-list li button{margin:0;padding:10px 16px}.compound-advancement{margin:20px 0;padding:20px;background:var(--stage-bg);border:1px solid var(--stage-border);border-radius:8px}.compound-advancement h3{margin:0 0 12px;color:var(--stage-accent)}.compound-advancement details>summary{cursor:pointer;font-weight:700}.compound-advancement ul{padding-left:24px;overflow-wrap:anywhere}.compound-ranking-editor{margin-top:20px}.compound-ranking-editor ol{padding-left:28px}.compound-ranking-editor li{padding:8px;background:#fff;border:1px solid var(--stage-border);border-radius:6px;margin:8px 0;overflow-wrap:anywhere}.compound-ranking-editor li>span{display:inline-block;vertical-align:middle;max-width:calc(100% - 92px)}.compound-ranking-moves{display:inline-flex;gap:4px;margin-left:10px;vertical-align:middle}.compound-create .compound-ranking-moves button{margin:0;width:36px;min-height:40px;padding:4px;background:#fff;color:var(--stage-accent);border-color:var(--stage-border)}.compound-progress-status{scroll-margin-top:120px}.compound-management [data-fixture-competition]>h3{scroll-margin-top:120px}@media(max-width:480px){.compound-result-dialog{padding:16px}.compound-result-scores{gap:8px}.compound-result-scores>label{padding:8px}.compound-score-stepper{gap:2px}.compound-create .compound-score-stepper button{width:30px;min-width:30px}.compound-score-stepper input{padding:8px 2px}.compound-advancement{padding:14px}}

/* Management entry points and the existing minmane score-board layout. */
.compound-management-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:20px 0}
.compound-create .compound-management-actions button{background:#16658a;color:#fff;font-size:18px;padding:14px 28px}
.compound-match-picker{width:min(760px,calc(100vw - 24px))}
.compound-match-picker select{width:100%;padding:12px;border:1px solid #abc4d3;border-radius:8px;background:#fff;font:inherit}
.compound-registration-list{margin:16px 0}
.compound-registration-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 0;border-bottom:1px solid #d5e3e8}
.compound-registration-row>div{min-width:0;display:grid;gap:6px;overflow-wrap:anywhere}
.compound-registration-row small{color:#526b7b}
.compound-registration-row button{flex-shrink:0}
.compound-result-dialog.match-entry-dialog{width:min(760px,calc(100vw - 24px))}
.compound-result-dialog .score-stepper[hidden]{display:none}
.compound-result-dialog .match-team-panel{align-content:start}
.compound-league-table td>small{display:block;color:#617988;font-size:11px;margin-bottom:6px;white-space:nowrap}
.compound-create .tournament-stage button.compound-league-register[type=button]{display:block;margin:0 auto;padding:7px 10px;min-height:36px;white-space:nowrap;background:#fff;color:var(--stage-accent,#16658a);border:1px solid var(--stage-border,#abc4d3)}
.compound-create .tournament-stage button.compound-league-register[type=button]:not(:disabled):hover{background:var(--stage-bg,#edf6fb)}
.compound-bracket-scroll .match-edit-button[aria-disabled=true]{cursor:not-allowed}

.compound-create .tournament-stage button.compound-league-register[type=button]:disabled{background:#e3e9ed;color:#526575;border-color:#cbd5dc}
.compound-score-details{margin:20px 0;border:1px solid #cbdde8;border-radius:8px;padding:12px}
.compound-score-details summary{cursor:pointer;font-weight:700;color:var(--stage-accent,#165e88);padding:6px 0}
.compound-result-dialog label.compound-inline-check{flex-direction:row;align-items:center;font-size:13px;margin:12px 0}
.compound-detail-grid{overflow:auto;max-width:100%;margin:14px 0}
.compound-detail-grid table{border-collapse:collapse}
.compound-detail-grid th,.compound-detail-grid td{border:1px solid #cbdde8;padding:6px;font-size:13px;text-align:center}
.compound-detail-grid th{min-width:70px;background:#f0f6fa}
.compound-detail-grid th:first-child{min-width:110px}
.compound-detail-grid input{width:60px;padding:8px;text-align:center}
.compound-score-details textarea{font:inherit;width:100%;padding:10px;border:1px solid #a8bac7;border-radius:6px;resize:vertical;margin:6px 0 12px}
.compound-result-dialog .match-extra-score input{padding:8px;width:70px}
.compound-stage-tabs{position:sticky;top:0;z-index:20;display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:6px;margin:20px 0;background:#fff;border:1px solid #d6e2e9;border-radius:12px;box-shadow:0 4px 12px #2437460a}
.compound-create .compound-stage-tabs button[type=button]{margin:0;border:1px solid transparent;border-radius:8px;background:#f3f6f8;color:#526575;font-size:18px;padding:13px}
.compound-create .compound-stage-tabs button[data-stage=qualifying][aria-selected=true]{background:var(--tournament-qualifying-selected);color:var(--tournament-qualifying-accent);border-color:var(--tournament-qualifying-border)}
.compound-create .compound-stage-tabs button[data-stage=final][aria-selected=true]{background:var(--tournament-final-selected);color:var(--tournament-final-accent);border-color:var(--tournament-final-border)}

.compound-rank-guidance{padding:14px 16px;border:1px solid var(--stage-border);border-radius:10px;background:var(--stage-selected);color:var(--stage-accent);font-weight:700;line-height:1.7;animation:compound-rank-arrive .45s ease-out both}
.compound-create .compound-ranking-editor .compound-rank-confirm{position:relative;display:block;margin:20px auto 0;overflow:hidden;min-width:min(210px,100%);max-width:100%;box-shadow:0 0 0 4px var(--stage-selected)}
.compound-rank-confirm::after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(110deg,transparent 25%,#ffffff70 50%,transparent 75%);transform:translateX(-130%)}
.compound-rank-confirm.is-highlighted::after{animation:compound-rank-shine 2.4s ease-in-out 3}
.compound-review-fixtures.is-rank-confirmed>:not(.compound-rank-undo){opacity:.48;transition:opacity .25s ease}
.compound-review-fixtures.is-rank-confirmed>:not(.compound-rank-undo):focus-within{opacity:1}
.compound-create .compound-review-fixtures .compound-rank-undo{margin-top:16px;background:#fff;color:var(--stage-accent);border-color:var(--stage-border)}
@keyframes compound-rank-arrive{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@keyframes compound-rank-shine{0%,20%{transform:translateX(-130%)}65%,100%{transform:translateX(130%)}}
@media(prefers-reduced-motion:reduce){.compound-rank-guidance,.compound-rank-confirm.is-highlighted::after{animation:none}.compound-rank-confirm::after{display:none}.compound-review-fixtures.is-rank-confirmed>:not(.compound-rank-undo){transition:none}}
.compound-ranking-editor li>span.compound-rank-name{display:inline-flex;align-items:center;flex-wrap:wrap;gap:6px 10px}
.compound-ranking-editor li:not(:has(.compound-ranking-moves))>span.compound-rank-name{max-width:100%}
.compound-rank-destination{display:inline-block;padding:3px 9px;border:1px solid var(--tournament-final-border);border-radius:999px;background:var(--tournament-final-bg);color:var(--tournament-final-accent);font-size:12px;font-weight:700;line-height:1.6;overflow-wrap:anywhere}
.compound-rank-notice{width:min(440px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;margin:auto;padding:28px;border:1px solid var(--stage-border);border-radius:16px;background:#fff;text-align:center;box-shadow:0 18px 60px #173b5030}
.compound-rank-notice[open]{animation:compound-rank-arrive .3s ease-out both}
.compound-rank-notice::backdrop{background:#173b5040}
.compound-rank-notice h3{margin:0 0 16px;color:var(--stage-accent);font-size:20px;line-height:1.6}
.compound-rank-notice p{line-height:1.8;margin:0}
.compound-rank-notice button{width:100%}
@media(prefers-reduced-motion:reduce){.compound-rank-notice[open]{animation:none}}

/* Finals retain their accent in navigation and headings, with quieter table surfaces. */
.compound-review-fixtures.tournament-stage--final{background:#fff;border-color:#deded9}
.compound-advancement.tournament-stage--final{background:#faf9f7;border-color:#deded9}
.compound-review-fixtures.tournament-stage--final .compound-league-scroll,.compound-review-fixtures.tournament-stage--final .compound-bracket-scroll{border-color:#dce2e6}
.compound-review-fixtures.tournament-stage--final .compound-league-table caption{color:#40525e}
.compound-review-fixtures.tournament-stage--final .compound-league-table th{background:#f6f7f8;color:#40525e}
.compound-review-fixtures.tournament-stage--final .compound-league-table th,.compound-review-fixtures.tournament-stage--final .compound-league-table td{border-color:#e2e6e9}
.compound-review-fixtures.tournament-stage--final .compound-league-table td.is-self{background:#edf0f2;color:#7a8790}
.compound-review-fixtures.tournament-stage--final .compound-competition-status{color:#61717c;font-weight:500}
.compound-create .tournament-stage--final button.compound-league-register[type=button]{background:#fff;border-color:#ccd5db;color:#526575}
.compound-create .tournament-stage--final button.compound-league-register[type=button]:not(:disabled):hover{background:#fff4e8;border-color:#d6b898;color:#91460d}
.compound-result-dialog .special-result-toggle{flex-direction:row;align-items:center}
.compound-result-dialog .special-result-toggle input{flex:0 0 20px;width:20px}
.compound-result-dialog .match-team-result label{flex-direction:row}
.compound-result-dialog .match-team-result input,.compound-result-dialog .match-draw-choice input{width:20px;flex-shrink:0}
.compound-forfeit-help{font-size:13px;color:#526b7b;line-height:1.7}
/* Summary columns share the tab bar's geometry. */
.compound-overview-stats{position:relative;display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:22px 0 14px;padding:18px 6px;border:1px solid #dce4e9;border-radius:12px;background:#fafcfd;text-align:center}
.compound-overview-stage{display:grid;grid-template-rows:20px 34px 20px;justify-items:center;align-items:center;gap:3px;min-width:0}
.compound-overview-label{font-size:12px;font-weight:700;letter-spacing:.12em}
.compound-overview-stage strong{font-size:23px;line-height:1.4;font-weight:750;letter-spacing:.02em}
.compound-overview-stage--qualifying{color:#165e88}
.compound-overview-stage--final{color:#91460d;grid-column:2}
.compound-overview-count{color:#71808b;font-size:12px;line-height:1.5}
.compound-overview-arrow{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:52px;height:36px}
@media(max-width:520px){.compound-overview-stats{padding-block:14px}.compound-overview-stage strong{font-size:20px}.compound-overview-arrow{width:38px;height:28px}}
.compound-league-table th.compound-summary-cell,.compound-league-table td.compound-summary-cell{width:1%;min-width:0;max-width:none;padding-inline:7px;white-space:nowrap;overflow-wrap:normal;font-variant-numeric:tabular-nums}

.compound-overview-arrow svg{display:block;width:100%;height:100%;overflow:visible}.compound-overview-arrow path{fill:#fff;stroke:#a5b5c0;stroke-width:1.5;stroke-linejoin:round}

/* League grids use quiet surfaces in qualifying too; stage identity stays in headings. */
.compound-review-fixtures.tournament-stage--qualifying[data-competition-type=league]{background:#fff;border-color:#dce2e6}
.compound-review-fixtures.tournament-stage--qualifying .compound-league-scroll{border-color:#dce2e6}
.compound-review-fixtures.tournament-stage--qualifying .compound-league-table caption{color:#40525e}
.compound-review-fixtures.tournament-stage--qualifying .compound-league-table th{background:#f6f7f8;color:#40525e}
.compound-review-fixtures.tournament-stage--qualifying .compound-league-table th,.compound-review-fixtures.tournament-stage--qualifying .compound-league-table td{border-color:#e2e6e9}
.compound-review-fixtures.tournament-stage--qualifying .compound-league-table td.is-self{background:#edf0f2;color:#7a8790}
.compound-review-fixtures.tournament-stage--qualifying[data-competition-type=league] .compound-competition-status{color:#61717c;font-weight:500}
.compound-create .tournament-stage--qualifying button.compound-league-register[type=button]{background:#fff;border-color:#ccd5db;color:#526575}
.compound-create .tournament-stage--qualifying button.compound-league-register[type=button]:not(:disabled):hover{background:#edf6fc;border-color:#b7d6e9;color:#165e88}

.compound-basic-heading-suffix{font-size:.8em}

.compound-setting-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px;min-width:0}
.compound-setting-heading>h3{margin:0;min-width:0;font-size:1.3rem}
.compound-format-illustration{flex:0 0 140px;color:var(--stage-accent,#26718d);line-height:0}
.compound-format-illustration svg{display:block;width:100%;height:auto}
@media(max-width:600px){.compound-format-illustration{flex-basis:90px}.compound-setting-heading{gap:10px}}

#compoundStep2,#compoundStep3{position:relative}
#compoundStep2>h2,#compoundStep3>h2{box-sizing:border-box;min-height:82px;padding-right:190px}
.compound-phase-badge{position:absolute;top:22px;right:24px;display:flex;align-items:center;justify-content:center;gap:12px;min-width:156px;padding:16px 20px;box-sizing:border-box;border:1px solid var(--stage-border);border-radius:12px;background:var(--stage-accent);color:#fff;box-shadow:0 6px 18px rgba(30,65,85,.16);pointer-events:none}
.compound-phase-badge strong{font-size:30px;line-height:1.2;letter-spacing:.06em}
.compound-phase-badge span{font-size:13px;white-space:nowrap}
@media(max-width:600px){#compoundStep2>h2,#compoundStep3>h2{min-height:64px;padding-right:118px}.compound-phase-badge{top:18px;right:14px;min-width:102px;padding:12px 10px;gap:6px;border-radius:8px}.compound-phase-badge strong{font-size:22px}.compound-phase-badge span{font-size:11px}}

.compound-forfeit-summary{display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:8px 16px;margin-bottom:12px;line-height:1.7}
.compound-create .tournament-stage button.compound-forfeit-change{margin:0;padding:6px 16px;min-height:40px;flex-shrink:0;background:#fff;color:var(--stage-accent);border:1px solid var(--stage-border);border-radius:6px}
.compound-forfeit .compound-toggle[hidden]{display:none}

.compound-placement-layout{min-width:0}
.compound-placement-layout>*{min-width:0}
.compound-placement-layout .compound-seed-row .compound-sort-content{display:grid;grid-template-columns:24px minmax(0,1fr) auto;gap:6px;padding:6px}
.compound-placement-layout .compound-seed-rows{gap:8px}
.compound-create .compound-placement-layout .compound-order-buttons button{height:26px;min-height:26px}
.compound-placement-layout .compound-sort-content>.compound-order-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}
.compound-create .compound-placement-layout button.compound-drag-handle{width:24px;min-width:24px}
.compound-placement-layout .bracket-seed-controls{margin:0;white-space:nowrap}
.compound-create .compound-placement-layout .seed-num-input{box-sizing:border-box;width:40px;min-width:40px;height:44px;min-height:44px;padding:8px 2px}
.compound-placement-layout .compound-bracket-scroll{max-height:none}
@media(max-width:650px){
.compound-create .compound-placement-layout .seed-btn{width:32px;min-width:32px;padding:8px 0}
.compound-create .compound-placement-layout .seed-num-input{width:28px;min-width:28px}
}
@media(min-width:1000px){
.compound-placement-layout.is-manual{display:grid;grid-template-columns:minmax(360px,.9fr) minmax(0,1.1fr);gap:24px;align-items:start}
.compound-placement-layout.is-manual>.compound-bracket-preview{margin-top:0}
.compound-create .compound-placement-layout.is-manual>div>button{margin-top:0}
.compound-placement-layout.is-manual .compound-sort-content{gap:8px}
.compound-placement-layout.is-manual .compound-order-name{min-width:70px}
}

.compound-fixture-flow{display:grid;gap:26px;margin:20px 0}
.compound-fixture-flow .compound-fixture-round{position:relative;display:grid;grid-template-columns:86px minmax(0,1fr);gap:8px 20px;align-items:start;padding:18px;border:1px solid var(--stage-border,#cbdde8);border-radius:8px;background:#fff}
.compound-fixture-flow .compound-fixture-round:not(:last-child)::after{content:'↓';position:absolute;bottom:-25px;left:52px;color:var(--stage-accent,#16658a);font-size:19px;line-height:24px}
.compound-fixture-flow .compound-fixture-round h4{margin:0;padding:8px 6px;text-align:center;border-radius:6px;background:var(--stage-selected,#e7f3fa);color:var(--stage-accent,#16658a);font-size:15px}
.compound-fixture-flow .compound-fixture-round ul{list-style:none;padding:0;margin:0;display:grid;gap:8px}
.compound-fixture-flow .compound-fixture-round li{display:grid;grid-template-columns:minmax(0,1fr) 32px minmax(0,1fr);align-items:center;gap:12px;margin:0;padding:9px 12px;background:#f6f9fb;border-radius:5px;text-align:center;overflow-wrap:anywhere}
.compound-fixture-versus{font-size:11px;font-weight:700;color:#748896}
.compound-fixture-flow .compound-fixture-rest{grid-column:2;margin:2px 0 0;font-size:13px;color:#647886;overflow-wrap:anywhere}
@media(max-width:600px){.compound-fixture-flow .compound-fixture-round{grid-template-columns:1fr;padding:12px;gap:10px}.compound-fixture-flow .compound-fixture-round h4{justify-self:start;min-width:64px}.compound-fixture-flow .compound-fixture-rest{grid-column:1}.compound-fixture-flow .compound-fixture-round li{padding:8px;gap:6px}}

.compound-phase-nav .compound-saved-tools{position:absolute;top:10px;right:16px;min-height:0;padding:0}
.compound-phase-nav>.compound-phase-status{box-sizing:border-box;min-height:40px;padding-right:140px;margin-bottom:8px;display:flex;align-items:center}
@media(max-width:600px){.compound-phase-nav .compound-saved-tools{right:10px;top:10px}.compound-create .compound-phase-nav button.compound-saved-trigger{padding:9px 14px;min-height:40px;font-size:13px}.compound-phase-nav>.compound-phase-status{padding-right:112px}}

.compound-review-actions{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-top:22px}
.compound-create .compound-review-actions>button{margin-top:0}
.compound-create button.compound-review-back{background:#fff;color:#365268;border:1px solid #a8bac7}

/* Keep stage colors subtle on the creation review; tables stay neutral. */
#compoundSummary .compound-review-fixtures.tournament-stage--qualifying{background:#f1f8fc;border-color:#c5deec}
#compoundSummary .compound-review-fixtures.tournament-stage--final{background:#fff7ef;border-color:#eed5bc}
#compoundSummary .compound-review-fixtures>h3{color:var(--stage-accent)}

.compound-basic>.compound-setting-heading>h3{font-size:clamp(26px,3vw,32px);line-height:1.4}
.compound-basic>.compound-setting-heading .compound-basic-heading-suffix{font-size:18px}
@media(max-width:600px){.compound-basic>.compound-setting-heading .compound-basic-heading-suffix{font-size:16px}}

.compound-forfeit-selected{display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px;padding:10px 14px;border:1px solid var(--stage-border,#b9d6e3);border-radius:6px;background:var(--stage-selected,#e7f3fa);color:var(--stage-accent,#165e88);font-weight:600}
.compound-forfeit-selected-badge{display:inline-block;flex-shrink:0;padding:2px 7px;border-radius:4px;background:var(--stage-accent,#165e88);color:#fff;font-size:12px;font-weight:700}

.compound-themed-league .compound-league-table :is(th,td,caption){background:var(--league-theme-bg)!important;color:var(--league-theme-text)!important;border-color:var(--league-theme-line)!important}
.compound-themed-league .compound-league-table :is(a,button){color:var(--league-theme-accent)}
.compound-themed-league .compound-league-table td.is-self{background:color-mix(in srgb,var(--league-theme-line) 15%,var(--league-theme-bg))!important}

.compound-create .compound-all-teams-open{margin:0 0 20px}
dialog.compound-all-teams-dialog{box-sizing:border-box;width:min(720px,calc(100vw - 32px));max-width:720px;max-height:85dvh;margin:auto;padding:24px;border:1px solid #c9dce7;border-radius:12px;overflow:auto;color:#173e52;background:#fff;box-shadow:0 20px 60px #15374730}
.compound-all-teams-dialog::backdrop{background:#142d3e66}
.compound-all-teams-dialog h2{margin-top:0}
.compound-all-teams-dialog label{display:grid;gap:8px;font-weight:700}
.compound-all-teams-dialog textarea{box-sizing:border-box;width:100%;resize:vertical;min-height:160px}
.compound-all-teams-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:20px}
.compound-all-teams-dialog .compound-all-teams-actions button{float:none;min-width:0;width:100%;margin:0;padding:12px;min-height:48px;line-height:1.5}
.compound-all-teams-actions .compound-all-teams-ranked{grid-column:1 / -1}
@media(max-width:600px){dialog.compound-all-teams-dialog{padding:18px}.compound-all-teams-actions{grid-template-columns:1fr}}

.compound-saved-tabs{display:flex;margin:12px 0 20px;border:1px solid #b9d2df;border-radius:8px;overflow:hidden}
.compound-create .compound-saved-tabs button{flex:1;margin:0;border:0;border-radius:0;background:#f4f8fa;color:#466475}
.compound-create .compound-saved-tabs button[aria-selected=true]{background:#156588;color:#fff}
.compound-create .compound-saved-row{display:flex;align-items:center;gap:12px;margin:12px 0;padding:14px;border:1px solid #d1e0e8;border-radius:8px;background:#fff}
.compound-create .compound-saved-row.is-selected{border-color:#16779d;background:#eef8fc;box-shadow:inset 0 0 0 1px #16779d}
.compound-create .compound-saved-choice{display:flex;align-items:center;gap:12px;flex:1;min-width:0;margin:0;cursor:pointer}
.compound-create .compound-saved-choice input{width:18px;height:18px;margin:0;flex-shrink:0;accent-color:#156588}
.compound-saved-choice span{display:grid;gap:6px;min-width:0;overflow-wrap:anywhere}.compound-saved-choice small{font-size:12px;color:#526b77;font-weight:400}
.compound-create .compound-saved-row>button{padding:6px 9px;font-size:12px;background:#fff;color:#8b4050;border:1px solid #e3c9ce}
.compound-create [data-saved-open]{width:100%;margin-top:12px}

.compound-create .compound-creation-publication{margin:24px 0;padding:22px;border:1px solid #c9dce7;border-radius:10px;background:#f3f8fa}
.compound-creation-publication legend{font-weight:700}
.compound-creation-publication label{display:block;margin:12px 0}
.compound-creation-publication select,.compound-creation-publication input[type=password]{display:block;width:min(100%,560px);box-sizing:border-box;margin-top:8px}

.compound-creation-publication input[aria-invalid="true"]{border:2px solid #b4233c;background:#fff7f8}
.compound-creation-publication .compound-errors{margin:6px 0 12px;color:#a11932;font-weight:600}
.compound-creation-publication .compound-errors:empty{display:none}

.compound-create .compound-registration-error{color:#a11932;font-weight:700}

.compound-creation-password-toggle{display:flex;align-items:center;gap:10px;margin:12px 0}
.compound-creation-password-toggle label{margin:0!important;cursor:pointer}
/* Palette roles: neutral playing surface, accent header, quiet row labels. */
.compound-themed-league .compound-league-table thead th{background:var(--league-theme-accent)!important;color:var(--league-theme-bg)!important;border-color:color-mix(in srgb,var(--league-theme-accent) 75%,var(--league-theme-bg))!important;}
.compound-themed-league .compound-league-table thead th :is(a,button){color:inherit;}
.compound-themed-league .compound-league-table tbody th{background:color-mix(in srgb,var(--league-theme-text) 5%,var(--league-theme-bg))!important;}

/* Registered-team selection shares the normal tournament entry editor. */
.compound-create.compound-registered-dialog{width:min(960px,calc(100vw - 24px));max-height:90dvh;box-sizing:border-box;padding:16px;overflow:auto;border:1px solid #ccd5db;border-radius:12px}
.compound-registered-dialog .te-layout input{margin:0;min-width:0}
.compound-registered-dialog .te-suggestions-overlay{z-index:10}
.compound-create .compound-team-display{display:block;width:100%;text-align:left;border:0;background:transparent;padding:8px 4px;white-space:normal;overflow-wrap:anywhere;min-height:40px}
.compound-create .compound-team-name{min-width:0}
.compound-create .compound-group-select{margin:0 0 8px}
@media(max-width:560px){.compound-create.compound-registered-dialog{padding:12px}.compound-registered-dialog .te-editor{min-height:240px}.compound-registered-dialog .compound-all-teams-actions{display:flex;flex-wrap:wrap;gap:6px}}
.compound-create.compound-registered-dialog{max-width:960px;color:#25323b;font-size:13px;line-height:1.5}
.compound-registered-dialog>h2{font-size:18px;margin:0 0 8px}
.compound-registered-dialog>.compound-detail-note{font-size:12px;line-height:1.5;margin:6px 0 10px}
.compound-create.compound-registered-dialog .te-workspace button{margin-top:0;font-weight:400}
.compound-create.compound-registered-dialog .te-chip button{background:transparent;border:0;color:inherit}
.compound-create.compound-registered-dialog .te-suggestion{background:#fff;color:#25323b;border:0;border-bottom:1px solid #eef0f2;padding:8px 10px}
.compound-create.compound-registered-dialog .compound-all-teams-actions{display:flex;flex-wrap:wrap;gap:6px;position:sticky;bottom:-16px;background:#fff;padding:10px 0;margin-top:8px}
.compound-create.compound-registered-dialog .compound-all-teams-actions button{flex:1 1 160px;width:auto;min-height:40px;padding:8px 10px;background:#fff;color:#34434e;border:1px solid #cbd5dc;font-size:12px}
.compound-create.compound-registered-dialog .compound-all-teams-actions button:nth-child(2){background:#26343e;color:#fff;border-color:#26343e}
.compound-create .compound-team-group .compound-team-display{margin:0;background:transparent;color:#25323b;border:0;font-weight:500}

/* Keep the shared selector independent of the compound form's blue button theme. */
.compound-create.compound-registered-dialog .te-library-team{display:flex;min-height:44px;margin:0;padding:8px 6px;border:0;border-bottom:1px solid #e9edef;border-radius:0;background:#fff;color:#26343e;text-align:left;font-size:13px;line-height:1.5}
.compound-create.compound-registered-dialog .te-library-team:hover{background:#f3f5f6}
.compound-create.compound-registered-dialog .te-library-team.is-selected{background:#f4f6f7;color:#77838c}
.compound-create.compound-registered-dialog .te-library-team .te-transfer{background:#fff;color:#4a5b67;border-color:#dce2e6}
.compound-create.compound-registered-dialog .te-library-team:hover .te-transfer{background:#26343e;color:#fff;border-color:#26343e}
.compound-create.compound-registered-dialog .te-library-team.is-selected .te-transfer{background:#e9eff2;color:#3d6176;border-color:transparent}
.compound-create.compound-registered-dialog .te-workspace button:focus-visible,.compound-create.compound-registered-dialog .te-input:focus-visible{outline:2px solid #697d8b;outline-offset:-2px}
.compound-create.compound-registered-dialog .te-composer{border:1px solid #d3dce2;border-radius:6px;padding:3px 4px 3px 8px;gap:4px}
.compound-create.compound-registered-dialog .te-composer:focus-within{border-color:#7d919f;box-shadow:0 0 0 2px #526a7b12}
.compound-create.compound-registered-dialog .te-input:focus-visible{outline:none}
.compound-create.compound-registered-dialog .te-empty{color:#6f7c87}

/* Participant rows: number, team and supplement, identity, then an explicit action. */
.compound-create .compound-personal-group{background:#fafbfc;border:1px solid #dbe2e7;padding:14px;margin:14px 0;color:#25323b}
.compound-personal-group .compound-team-heading{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;margin-bottom:8px}
.compound-personal-group .compound-team-heading h3{font-size:16px;color:#25323b;margin:0}
.compound-personal-group .compound-team-heading p{font-size:11px;color:#62717d;margin:0;flex:1}
.compound-create .compound-personal-group .compound-group-select{margin:0;min-height:36px;padding:6px 10px;border:1px solid #ccd6dd;border-radius:5px;background:#fff;color:#344653;font-size:12px;font-weight:500}
.compound-personal-group>.compound-detail-note{margin:6px 0 10px;font-size:11px;line-height:1.5;color:#6e7c87}
.compound-personal-group .compound-team-rows{gap:6px}
.compound-personal-group .compound-sort-content{border-color:#dce3e8;padding:0 6px;gap:6px;min-height:50px}
.compound-personal-group .compound-team-name{display:flex;gap:6px}
.compound-personal-group .compound-team-name>span{font-size:11px;font-weight:400;min-width:20px;max-width:78px;color:#70808b;font-variant-numeric:tabular-nums}
.compound-create .compound-personal-group .compound-team-display{display:flex;align-items:center;gap:10px;min-width:0;min-height:48px;padding:6px 0;text-align:left;line-height:1.4}
.compound-personal-group .compound-slot-text{flex:1;min-width:0}
.compound-personal-group .compound-slot-text .compound-slot-name{display:block;font-size:14px;font-weight:600;color:#25323b;overflow-wrap:anywhere}
.compound-personal-group .compound-slot-extra{display:block;font-size:11px;font-weight:400;color:#6f7b85;margin-top:2px}
.compound-personal-group .compound-team-display .compound-slot-state{flex:none;font-size:10px;font-weight:400;color:#496578;background:#edf2f5;padding:3px 6px;border-radius:4px;white-space:nowrap}
.compound-personal-group .compound-team-display .compound-slot-state[data-kind=new]{color:#79623a;background:#f6f2e9}
.compound-personal-group .compound-team-display .compound-slot-state[data-kind=pending]{color:#79623a;background:#f6f2e9}
.compound-personal-group .compound-team-display .compound-slot-action{flex:none;border:1px solid #d7dfe5;border-radius:5px;padding:6px 10px;background:#fff;color:#425b6c;font-size:12px;font-weight:500;white-space:nowrap}
.compound-personal-group .compound-team-display:hover .compound-slot-action{background:#edf2f5;border-color:#aebdc8}
.compound-personal-group .is-empty .compound-slot-text .compound-slot-name{font-size:13px;font-weight:400;color:#89949e}
.compound-personal-group .is-empty .compound-sort-content{border-style:dashed;background:#fff}
.compound-personal-group .compound-bracket-preview{margin-top:10px}
.compound-personal-group .compound-bracket-preview>summary{padding:9px 10px;border-color:#dce3e8;font-size:12px;font-weight:500;color:#536673}
@media(max-width:560px){.compound-create .compound-personal-group{padding:10px}.compound-personal-group .compound-team-heading{gap:6px}.compound-personal-group .compound-team-heading h3{font-size:15px}.compound-create .compound-personal-group .compound-team-display{gap:5px;flex-wrap:wrap}.compound-personal-group .compound-slot-text{flex-basis:calc(100% - 70px)}.compound-personal-group .compound-team-display .compound-slot-state{order:3;padding:2px 5px}.compound-personal-group .compound-team-display .compound-slot-action{padding:6px 8px}.compound-personal-group .compound-team-heading p{flex-basis:40px}.compound-personal-group .compound-team-name>span{max-width:48px}.compound-personal-group .compound-sort-content{gap:3px;padding:0 4px}}
.compound-personal-group .compound-team-name>span{flex:none;max-width:none;white-space:nowrap}
.compound-create .compound-personal-group .compound-order-buttons{gap:0}
.compound-create .compound-personal-group .compound-order-buttons button{min-height:24px;height:24px}

/* Block tournaments have one stage: show counts and direct block links. */
.compound-overview-stats.compound-block-summary{display:flex;align-items:center;justify-content:flex-start;gap:8px 20px;margin:12px 0;padding:10px 16px;border:1px solid #dce4e9;border-radius:8px;background:#fafcfd;text-align:left;color:#526575}
.compound-block-summary>span{display:inline-flex;align-items:baseline;gap:5px;white-space:nowrap;font-size:13px}
.compound-block-summary strong{font-size:18px;line-height:1.4;color:#21566f;font-variant-numeric:tabular-nums}

/* Keep the blue palette while separating each block with a white surface. */
.compound-block-tournament .compound-block-summary{background:#fff;border-color:#cbd9e4;color:#526575}
.compound-block-tournament .compound-review-fixtures{background:#fff;border-color:#b7cedf;padding:12px;margin-block:16px}
.compound-block-tournament .compound-review-fixtures>h3{color:#165e88;font-size:20px}
.compound-block-tournament .compound-competition-status{color:#526975}
.compound-block-tournament .compound-league-scroll{box-sizing:border-box;background:#fff;border:1px solid #cbd9e4}
.compound-block-tournament .compound-league-scroll:not(.compound-themed-league) .compound-league-table thead th{background:#e7f0f7;color:#335064;border-color:#cbd9e4}
.compound-block-tournament .compound-league-scroll:not(.compound-themed-league) .compound-league-table tbody th{background:#f2f6fa;color:#335064}
.compound-block-tournament .compound-league-scroll:not(.compound-themed-league) .compound-league-table td.is-self{background:#e6edf3;color:#526579}
.compound-block-tournament .compound-league-table caption{padding:10px 12px;color:#496677;font-size:12px}
