#tfpevApp .tfe-wizard-nav { display:flex; flex-wrap:wrap; gap:5px; padding:7px; margin:0 0 22px; border:1px solid #dce5ef; border-radius:14px; background:#eaf0f6; scroll-margin-top:calc(var(--tfp-header-fixed-height,72px) + 12px); }
#tfpevApp .tfe-wizard-nav button { display:flex; align-items:center; justify-content:center; flex:1 1 110px; gap:7px; min-height:45px; border:1px solid transparent!important; border-radius:9px!important; background:transparent!important; color:#5a7188!important; padding:9px 8px; font-size:12px; font-weight:650; box-shadow:none!important; transform:none!important; }
#tfpevApp .tfe-wizard-nav button span { display:flex; align-items:center; justify-content:center; width:23px; height:23px; flex:0 0 23px; border-radius:8px; background:#ffffff80; font-size:11px; }
#tfpevApp .tfe-wizard-nav button[aria-current] { background:#fff!important; color:var(--event-accent)!important; box-shadow:0 3px 8px #17334f08!important; }
#tfpevApp .tfe-wizard-nav button[aria-current] span { background:var(--event-tint); }
#tfpevApp .tfe-wizard-panel { min-width:0; }
#tfpevApp .tfe-wizard-panel>h2 { margin-bottom:18px; }
#tfpevApp .tfe-wizard-panel .tfe-card>p { margin-top:9px; }
#tfpevApp .tfe-wizard-panel .tfe-grid-2 { margin-top:16px; }
#tfpevApp [data-wizard-summary] dd { max-width:68%; overflow-wrap:anywhere; }
#tfpevApp .tfe-template-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-top:20px; }
#tfpevApp .tfe-template-grid legend { font-size:13px; color:#49647a; margin-bottom:10px; font-weight:650; }
#tfpevApp .tfe-template-grid .tfe-choice { align-self:stretch; min-width:0; }
#tfpevApp .tfe-rule-editors { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; min-width:0; }
#tfpevApp .tfe-rule-editors>div { min-width:0; }
#tfpevApp .tfe-rule-editor { min-width:0; }
#tfpevApp .tfe-rule-editor>legend,#tfpevApp .tfe-manual-team>legend { padding:0 6px; font-size:18px; color:#213e54; font-weight:700; }
#tfpevApp .tfe-rule-editor>.tfe-grid-2 { margin:16px 0; }
#tfpevApp .tfe-block-choices { display:flex; flex-wrap:wrap; gap:13px 24px; margin:17px 0; }
#tfpevApp .tfe-wizard-bar { position:sticky; bottom:10px; z-index:8; display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px; padding:13px 16px; margin-top:20px; border:1px solid #dce6f0; border-radius:13px; background:#f8fbfffa; box-shadow:0 6px 25px #15324d12; }
#tfpevApp .tfe-wizard-bar>.tfe-btn { width:auto; flex:0 0 auto; }
#tfpevApp .tfe-wizard-bar>[data-draft-status] { width:100%; margin:0; font-size:11px; }
#tfpevApp .tfe-wizard-bar>[data-draft-status]:empty { display:none; }
#tfpevApp [data-event-wizard]:not(.is-enhanced) :is([data-wizard-next],[data-wizard-back],[data-wizard-save]) { display:none; }
#tfpevApp [data-event-wizard]:not(.is-enhanced) .tfe-wizard-nav { display:none; }
#tfpevApp .tfe-manual-players { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px 22px; }
#tfpevApp .tfe-manual-team { margin-top:18px; }
#tfpevApp .tfe-find-types { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; margin-bottom:22px; }
#tfpevApp .tfe-find-types .tfe-card { margin:0; }
#tfpevApp .tfe-find-types h2 { margin:14px 0 18px; }
#tfpevApp .tfe-directory-search { display:grid; grid-template-columns:minmax(200px,2fr) minmax(100px,1fr) minmax(130px,1fr) minmax(120px,1fr) auto; align-items:end; gap:12px; }
#tfpevApp .tfe-directory-search>.tfe-field:has(input[name="q"]) { grid-column:1; grid-row:1; }
#tfpevApp .tfe-directory-search>.tfe-field:has(input[name="city"]) { grid-column:2; grid-row:1; }
#tfpevApp .tfe-directory-search>.tfe-field:has(select[name="stage"]) { grid-column:3; grid-row:1; }
#tfpevApp .tfe-directory-search>.tfe-field:has(input[name="from"]) { grid-column:4; grid-row:1; }
#tfpevApp .tfe-directory-search>.tfe-btn { width:100%; grid-column:5; grid-row:1; }
#tfpevApp .tfe-directory-search>.tfe-text-link { grid-column:1/6; grid-row:2; justify-self:start; font-size:12px; min-height:25px; }
#tfpevApp .tfe-phase-action { display:flex; align-items:center; justify-content:space-between; gap:20px; background:var(--event-tint); }
#tfpevApp .tfe-phase-action p { margin-top:7px; font-size:12px; }
#tfpevApp .tfe-rubber { padding:18px 0; border-bottom:1px solid #e8eef5; }
#tfpevApp .tfe-rubber .tfe-section-head { margin:0; }
#tfpevApp .tfe-rubber h3 { font-size:15px; }
#tfpevApp .tfe-rubber p { font-size:11px; }
#tfpevApp .tfe-set-scores { display:flex; flex-wrap:wrap; align-items:flex-start; gap:12px; margin-top:14px; }
#tfpevApp .tfe-set-cell { min-width:0; }
#tfpevApp .tfe-set-cell>span { display:block; color:#6a7f93; font-size:10px; margin-bottom:5px; }
#tfpevApp .tfe-set-cell .tfe-score-inputs { justify-content:flex-start; }
#tfpevApp .tfe-bye { display:flex; justify-content:space-between; align-items:center; gap:15px; color:#45647b; }
#tfpevApp .tfe-bye span { font-size:11px; }
#tfpevApp .tfe-table-heading { margin:24px 0 14px; }
#tfpevApp .tfe-criteria-list { margin-top:12px; padding-left:20px; color:#506a80; font-size:13px; }
#tfpevApp .tfe-points-source { white-space:pre-wrap; background:#f6f8fc; padding:14px; border-radius:9px; font-size:12px; }
#tfpevApp .tfe-draft-list { margin-top:30px; }
#tfpevApp .tfe-draft-list li { display:flex; align-items:center; flex-wrap:wrap; gap:15px; }
#tfpevApp .tfe-draft-list li>div { flex:1 1 180px; }
#tfpevApp .tfe-schedule-count { margin-bottom:14px; }
@media(max-width:1000px) {
    #tfpevApp .tfe-directory-search { grid-template-columns:repeat(2,minmax(0,1fr)); }
    #tfpevApp .tfe-directory-search>.tfe-field:has(input[name="q"]) { grid-column:1/3; grid-row:1; }
    #tfpevApp .tfe-directory-search>.tfe-field:has(input[name="city"]) { grid-column:1; grid-row:2; }
    #tfpevApp .tfe-directory-search>.tfe-field:has(select[name="stage"]) { grid-column:2; grid-row:2; }
    #tfpevApp .tfe-directory-search>.tfe-field:has(input[name="from"]) { grid-column:1; grid-row:3; }
    #tfpevApp .tfe-directory-search>.tfe-btn { grid-column:2; grid-row:3; }
    #tfpevApp .tfe-directory-search>.tfe-text-link { grid-column:1/3; grid-row:4; }
}
@media(max-width:760px) {
    #tfpevApp .tfe-rule-editors { grid-template-columns:minmax(0,1fr); }
    #tfpevApp .tfe-wizard-nav button { flex-basis:25%; font-size:11px; padding:8px 4px; gap:5px; }
    #tfpevApp .tfe-phase-action { flex-direction:column; align-items:stretch; }
}
@media(max-width:600px) {
    #tfpevApp .tfe-template-grid,#tfpevApp .tfe-find-types,#tfpevApp .tfe-manual-players { grid-template-columns:minmax(0,1fr); }
    #tfpevApp .tfe-wizard-bar { padding:10px; gap:7px; bottom:8px; }
    #tfpevApp .tfe-wizard-bar>.tfe-btn { padding-inline:9px; font-size:11px; }
    #tfpevApp .tfe-wizard-bar>[data-wizard-final] { width:100%; justify-content:stretch; }
    #tfpevApp .tfe-wizard-bar>[data-wizard-final]>.tfe-btn { flex:1 1 120px; }
    #tfpevApp .tfe-wizard-nav { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); padding:5px; gap:4px; margin-bottom:18px; }
    #tfpevApp .tfe-wizard-nav button { width:100%; min-width:0; flex-direction:column; font-size:10px; padding:7px 3px; overflow-wrap:anywhere; }
    #tfpevApp .tfe-wizard-nav button:last-child { grid-column:span 2; }
    #tfpevApp .tfe-wizard-nav button span { width:19px; height:19px; flex-basis:19px; font-size:10px; }
    #tfpevApp .tfe-directory-search { gap:13px 10px; }
    #tfpevApp .tfe-rule-editor>legend { font-size:17px; }
    #tfpevApp .tfe-set-scores { gap:10px; }
    #tfpevApp .tfe-set-cell .tfe-score-inputs input { width:43px; }
}
#tfpevApp .tfe-grid-2>.tfe-field { justify-content:flex-end; }
#tfpevApp fieldset[data-field-locked] { min-width:0; padding:0; margin:0; border:0; }
