/* Independent, responsive event workspace; all presentation stays inside #tfpevApp. */
body[data-page="tfp-events"] { margin:0; padding:0!important; background:#f4f7fb!important; color:#193247!important; }
body[data-page="tfp-events"]::before { display:none!important; }
body[data-page="tfp-events"] #tfpevApp { --event-accent:#245bce; --event-deep:#173b7a; --event-tint:#edf3ff; --event-line:#c9d9f4; --event-gold:#eeb94c; width:calc(100% - 64px); max-width:1760px; min-width:0; margin:var(--tfp-header-fixed-height,72px) auto 0; padding:24px 0 48px; font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif; font-size:14px; line-height:1.55; }
body[data-page="tfp-events"] #tfpevApp.tfe--amber { --event-accent:#a45108; --event-deep:#78400d; --event-tint:#fff5e2; --event-line:#ecd3ab; }
#tfpevApp *,#tfpevApp *::before,#tfpevApp *::after { box-sizing:border-box; }
#tfpevApp :where(h1,h2,h3,h4,p,ul,ol,dl,fieldset) { margin:0; }
#tfpevApp :where(a,button,input,select,textarea,summary) { -webkit-tap-highlight-color:transparent; }
#tfpevApp :where(a,button,input,select,textarea,summary):focus-visible { outline:3px solid var(--event-accent); outline-offset:3px; }
#tfpevApp :where(a) { color:inherit; text-decoration:none; }
#tfpevApp :where(button,input,select,textarea) { font:inherit; letter-spacing:normal; }
#tfpevApp :where(button,summary) { cursor:pointer; }
#tfpevApp :where(h1,h2,h3,h4) { color:#142f43; font-weight:750; letter-spacing:-.025em; line-height:1.25; }
#tfpevApp h1 { font-size:clamp(27px,2.6vw,38px); }
#tfpevApp h2 { font-size:23px; }
#tfpevApp h3 { font-size:18px; }
#tfpevApp h4 { font-size:15px; }
#tfpevApp p { color:#607489; }
#tfpevApp svg { width:20px; height:20px; flex-shrink:0; display:inline-block; vertical-align:middle; }
#tfpevApp [hidden] { display:none!important; }
#tfpevApp .tfe-sr { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
#tfpevApp .tfe-section-head { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:20px; min-width:0; }
#tfpevApp .tfe-section-head>div { min-width:0; }
#tfpevApp .tfe-section-head p { margin-top:6px; }
#tfpevApp .tfe-eyebrow { display:block; color:var(--event-accent); font-size:10px; font-weight:750; letter-spacing:.1em; text-transform:uppercase; }
#tfpevApp .tfe-breadcrumb { display:flex; gap:9px; flex-wrap:wrap; margin-bottom:16px; color:#607489; font-size:12px; }
#tfpevApp .tfe-breadcrumb>a { color:var(--event-accent); font-weight:650; }
#tfpevApp .tfe-actions { display:flex; flex-wrap:wrap; align-items:center; gap:10px; }
#tfpevApp .tfe-actions>form { margin:0; }
#tfpevApp .tfe-btn { display:inline-flex; align-items:center; justify-content:center; gap:9px; padding:11px 17px; min-height:44px; max-width:100%; border:1px solid transparent; border-radius:10px; background:var(--event-accent); color:#fff; font-size:13px; line-height:1.4; font-weight:700; text-align:center; text-decoration:none; box-shadow:none; }
#tfpevApp .tfe-btn:hover { filter:brightness(.94); }
#tfpevApp .tfe-btn--soft { background:#fff; border-color:#d8e2ed; color:#2d4a63; }
#tfpevApp .tfe-btn--quiet { background:transparent; color:#64758a; padding-inline:9px; }
#tfpevApp .tfe-btn--danger { color:#a83753; background:#fff2f4; border-color:#efcfda; }
#tfpevApp .tfe-btn:disabled { opacity:.55; cursor:wait; }
#tfpevApp .tfe-full { width:100%; }
#tfpevApp .tfe-text-link { display:inline-flex; align-items:center; gap:8px; color:var(--event-accent); font-weight:650; min-height:36px; }
#tfpevApp .tfe-text-link:hover { text-decoration:underline; text-underline-offset:3px; }
#tfpevApp .tfe-card { min-width:0; padding:22px; margin-bottom:18px; border:1px solid #dfe7ef; border-radius:17px; background:#fff; box-shadow:0 3px 15px #17324d03; }
#tfpevApp .tfe-card>h2,#tfpevApp .tfe-card>h3 { margin-bottom:14px; }
#tfpevApp .tfe-card>p+.tfe-actions,#tfpevApp .tfe-card>p+.tfe-btn { margin-top:18px; }
#tfpevApp .tfe-card-heading { display:flex; align-items:flex-start; gap:12px; margin-bottom:20px; }
#tfpevApp .tfe-card-heading h2 { font-size:20px; }
#tfpevApp .tfe-card-heading p { font-size:12px; margin-top:4px; }
#tfpevApp .tfe-step { display:inline-flex; align-items:center; justify-content:center; width:30px; height:30px; flex:0 0 30px; border-radius:9px; background:var(--event-tint); color:var(--event-accent); font-size:13px; font-weight:750; }
#tfpevApp .tfe-stack { display:grid; align-content:start; gap:18px; min-width:0; }
#tfpevApp .tfe-stack>.tfe-card { margin:0; }
#tfpevApp .tfe-stack>p { margin:0; }
#tfpevApp .tfe-type-grid,#tfpevApp .tfe-form-columns,#tfpevApp .tfe-team-grid,#tfpevApp .tfe-fixture-grid,#tfpevApp .tfe-rule-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; margin-bottom:26px; }
#tfpevApp .tfe-overview-grid { display:grid; grid-template-columns:minmax(0,1.65fr) minmax(280px,1fr); gap:20px; }
#tfpevApp .tfe-grid-2 { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; min-width:0; }
#tfpevApp .tfe-form-columns { align-items:start; }
#tfpevApp .tfe-type { display:flex; align-items:flex-start; gap:20px; min-width:0; padding:26px; background:var(--event-tint); border:1px solid var(--event-line); border-radius:19px; }
#tfpevApp .tfe-type--amber { --event-accent:#a45108; --event-deep:#78400d; --event-tint:#fff5e2; --event-line:#ecd3ab; }
#tfpevApp .tfe-type--blue { --event-accent:#245bce; --event-deep:#173b7a; --event-tint:#edf3ff; --event-line:#c9d9f4; }
#tfpevApp .tfe-type h2 { margin:8px 0 10px; font-size:26px; }
#tfpevApp .tfe-type p { color:#53677b; }
#tfpevApp .tfe-pills { display:flex; flex-wrap:wrap; gap:7px; align-items:center; margin:14px 0; }
#tfpevApp .tfe-tag { display:inline-flex; align-items:center; padding:5px 9px; border-radius:7px; background:#eff3f8; color:#5d7083; font-size:10px; font-weight:700; line-height:1.4; }
#tfpevApp .tfe-tag--open,#tfpevApp .tfe-tag--approved { background:#e6f6ed; color:#1c7151; }
#tfpevApp .tfe-tag--running { background:#e7edff; color:#3257a5; }
#tfpevApp .tfe-tag--pending { background:#fff0d2; color:#87500d; }
#tfpevApp .tfe-tag--archived { background:#f0f1f5; color:#6c7482; }
#tfpevApp .tfe-symbol { display:inline-flex; justify-content:center; align-items:center; width:45px; height:45px; flex:0 0 45px; border-radius:13px; background:var(--event-tint); color:var(--event-accent); border:1px solid var(--event-line); }
#tfpevApp .tfe-symbol svg { width:24px; height:24px; }
#tfpevApp .tfe-symbol--large { width:64px; height:64px; }
#tfpevApp .tfe-symbol--large svg { width:35px; height:35px; }
#tfpevApp .tfe-type>.tfe-symbol { background:#fff9; }
#tfpevApp .tfe-filters,#tfpevApp .tfe-block-tabs { display:flex; align-items:center; flex-wrap:wrap; gap:7px; }
#tfpevApp .tfe-filters a,#tfpevApp .tfe-block-tabs a { padding:10px 14px; min-height:42px; border:1px solid #dfe7ef; border-radius:9px; color:#5d7186; background:#fff; font-size:12px; font-weight:650; }
#tfpevApp .tfe-filters a[aria-current],#tfpevApp .tfe-block-tabs a[aria-current] { color:var(--event-deep); background:var(--event-tint); border-color:var(--event-line); }
#tfpevApp .tfe-block-tabs { margin-bottom:18px; }
#tfpevApp .tfe-catalog-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
#tfpevApp .tfe-event-link h3 { margin:8px 0; font-size:20px; overflow-wrap:anywhere; }
#tfpevApp .tfe-event-link .tfe-text-link { margin-top:20px; }
#tfpevApp .tfe-event-link:hover { border-color:var(--event-accent); box-shadow:0 6px 22px #17324d0b; }
#tfpevApp .tfe-hero { position:relative; display:flex; justify-content:space-between; gap:30px; align-items:center; min-height:190px; margin-bottom:20px; padding:30px 34px; border:1px solid #21415a; border-radius:21px; overflow:hidden; color:#fff; background:linear-gradient(122deg,#081e2f 0%,#11384b 70%,#16465a 100%); }
#tfpevApp .tfe-hero::after { content:""; position:absolute; right:-6%; bottom:-150px; width:48%; height:340px; border:1px solid #ffffff16; transform:rotate(-24deg); background:linear-gradient(90deg,transparent 49.6%,#ffffff10 49.6%,#ffffff10 50%,transparent 50%); pointer-events:none; }
#tfpevApp .tfe-hero-content { position:relative; z-index:1; min-width:0; }
#tfpevApp .tfe-hero h1 { color:#fff; max-width:980px; overflow-wrap:anywhere; }
#tfpevApp .tfe-hero .tfe-pills { margin:0 0 12px; }
#tfpevApp .tfe-hero .tfe-eyebrow { color:var(--event-gold); margin-right:6px; }
#tfpevApp .tfe-hero-meta { display:flex; flex-wrap:wrap; gap:8px 22px; margin-top:16px; color:#c6d8e5; font-size:13px; }
#tfpevApp .tfe-hero-meta>span { display:inline-flex; gap:7px; align-items:center; }
#tfpevApp .tfe-hero-meta svg { width:16px; height:16px; }
#tfpevApp .tfe-hero-side { position:relative; z-index:1; display:flex; gap:24px; align-items:center; flex:0 0 auto; }
#tfpevApp .tfe-hero-mark { display:flex; align-items:center; justify-content:center; color:var(--event-gold); width:76px; height:76px; border-radius:23px; background:#ffffff08; border:1px solid #ffffff1c; }
#tfpevApp .tfe-hero-mark svg { width:43px; height:43px; }
#tfpevApp .tfe-mini-stats { display:flex; gap:0; }
#tfpevApp .tfe-mini-stats>span { display:grid; gap:3px; padding:2px 20px; border-left:1px solid #ffffff24; color:#bcd1df; font-size:11px; }
#tfpevApp .tfe-mini-stats b { font-size:22px; line-height:1.25; font-weight:750; color:#fff; }
#tfpevApp .tfe-tabs { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:5px; margin-bottom:26px; padding:5px; border:1px solid #dfe7ef; background:#eaf0f7; border-radius:13px; }
#tfpevApp .tfe-tabs a { display:flex; align-items:center; justify-content:center; min-height:44px; padding:9px 8px; font-size:12px; font-weight:650; color:#5d7186; text-align:center; border-radius:9px; }
#tfpevApp .tfe-tabs a[aria-current] { color:var(--event-accent); background:#fff; box-shadow:0 3px 9px #19354f0a; }
#tfpevApp .tfe-tabs a:hover { color:var(--event-accent); }
#tfpevApp .tfe-notice,#tfpevApp .tfe-callout { padding:13px 16px; margin-bottom:18px; border:1px solid #cce7de; border-radius:10px; color:#24634f; background:#edf9f4; font-size:13px; }
#tfpevApp .tfe-notice--error { background:#fff2f4; border-color:#edc9d0; color:#a23750; }
#tfpevApp .tfe-callout { margin-top:18px; margin-bottom:0; }
#tfpevApp .tfe-tinted { background:var(--event-tint); border-color:var(--event-line); }
#tfpevApp .tfe-next { border-top:3px solid var(--event-accent); }
#tfpevApp .tfe-next h2 { margin:8px 0 10px; }
#tfpevApp .tfe-program { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:9px; }
#tfpevApp .tfe-program>div { display:grid; align-content:start; gap:7px; min-width:0; }
#tfpevApp .tfe-program strong { font-size:13px; }
#tfpevApp .tfe-program small { color:#697e91; font-size:11px; }
#tfpevApp .tfe-match-recipe { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; margin:18px 0; }
#tfpevApp .tfe-match-recipe>span { display:flex; gap:8px; align-items:center; justify-content:center; min-width:0; padding:11px 5px; background:var(--event-tint); color:var(--event-deep); border-radius:9px; font-size:12px; }
#tfpevApp .tfe-match-recipe b { display:flex; justify-content:center; align-items:center; width:23px; height:23px; border-radius:50%; background:#fff; font-weight:750; }
#tfpevApp .tfe-facts>div { display:flex; justify-content:space-between; gap:12px; padding:12px 0; border-bottom:1px solid #edf0f5; }
#tfpevApp .tfe-facts dt { color:#64798d; }
#tfpevApp .tfe-facts dd { margin:0; font-weight:650; text-align:right; }
#tfpevApp .tfe-fine { font-size:12px; line-height:1.6; color:#6b7d90; margin:14px 0 0; }
#tfpevApp .tfe-prose { line-height:1.8; overflow-wrap:anywhere; }
#tfpevApp .tfe-fields { display:grid; align-content:start; gap:17px; }
#tfpevApp .tfe-field { display:flex; flex-direction:column; align-items:stretch; min-width:0; gap:7px; color:#3b566e; font-size:12px; font-weight:550; }
#tfpevApp .tfe-field>span { min-height:18px; }
#tfpevApp .tfe-field b { color:#aa4a30; }
#tfpevApp :where(input:not([type="hidden"]):not([type="radio"]):not([type="checkbox"]),select,textarea) { display:block; width:100%; min-width:0; min-height:45px; padding:11px 12px; background:#fff; border:1px solid #d5e0ec; color:#233f57; border-radius:9px; font-size:14px; font-weight:400; line-height:1.4; box-shadow:none; }
#tfpevApp textarea { resize:vertical; min-height:110px; }
#tfpevApp input[readonly] { background:#f4f7fb; color:#66798c; }
#tfpevApp input::placeholder,#tfpevApp textarea::placeholder { color:#8996a6; }
#tfpevApp .tfe-choice-set { border:0; display:grid; gap:9px; padding:0; margin:0 0 12px; }
#tfpevApp .tfe-choice { display:flex; align-items:flex-start; gap:12px; padding:14px; border:1px solid #dce4ef; border-radius:11px; background:#fff; }
#tfpevApp .tfe-choice:has(input:checked) { border-color:var(--event-accent); background:var(--event-tint); }
#tfpevApp :where(input[type="radio"],input[type="checkbox"]) { width:19px; height:19px; min-width:19px; accent-color:var(--event-accent); margin:2px 0 0; padding:0; }
#tfpevApp .tfe-choice strong,#tfpevApp .tfe-choice small { display:block; }
#tfpevApp .tfe-choice small { margin-top:4px; color:#607489; font-size:12px; }
#tfpevApp .tfe-check { display:flex; align-items:flex-start; gap:11px; font-size:12px; line-height:1.6; color:#425d72; }
#tfpevApp .tfe-savebar { display:flex; justify-content:space-between; align-items:center; gap:20px; padding:17px 20px; margin:8px 0 24px; background:#eaf0f7; border:1px solid #dce5ef; border-radius:13px; }
#tfpevApp .tfe-savebar p { font-size:12px; }
#tfpevApp .tfe-savebar .tfe-btn { min-width:210px; }
#tfpevApp .tfe-details { margin-top:14px; border:1px solid #e1e7ef; border-radius:11px; padding:12px 14px; background:#f9fbfd; }
#tfpevApp .tfe-details summary { min-height:30px; padding:4px 0; font-size:12px; color:#45627a; font-weight:650; }
#tfpevApp .tfe-details[open]>summary { margin-bottom:14px; }
#tfpevApp .tfe-details>p { margin-bottom:13px; }
#tfpevApp .tfe-team-grid>.tfe-card,#tfpevApp .tfe-fixture-grid>.tfe-card,#tfpevApp .tfe-rule-grid>.tfe-card { margin-bottom:0; }
#tfpevApp .tfe-roster { list-style:none; padding:0; margin:0; }
#tfpevApp .tfe-roster li { display:flex; align-items:center; min-width:0; gap:10px; padding:12px 0; border-top:1px solid #edf1f6; }
#tfpevApp .tfe-roster li>div { min-width:0; flex:1; }
#tfpevApp .tfe-roster strong { display:block; font-size:13px; overflow-wrap:anywhere; font-weight:650; }
#tfpevApp .tfe-roster small { display:block; font-size:10px; color:#6b7f92; margin-top:3px; }
#tfpevApp .tfe-avatar { display:inline-flex; justify-content:center; align-items:center; width:32px; height:32px; flex:0 0 32px; border-radius:10px; background:var(--event-tint); color:var(--event-accent); font-size:12px; font-weight:700; }
#tfpevApp .tfe-private { position:relative; font-size:10px; }
#tfpevApp .tfe-private summary { color:#5d7186; padding:8px; }
#tfpevApp .tfe-private p { position:absolute; z-index:2; right:0; min-width:180px; margin:4px 0 0; padding:14px; border:1px solid #d5e0ec; border-radius:9px; box-shadow:0 5px 20px #16344b14; background:#fff; font-size:12px; }
#tfpevApp .is-muted { opacity:.7; background:#fafbfe; }
#tfpevApp .tfe-player-fields { min-width:0; padding:16px 0; margin:0; border:0; border-bottom:1px solid #e9eef5; }
#tfpevApp .tfe-player-fields legend { display:flex; align-items:center; gap:9px; padding:0; font-size:13px; color:#29485f; font-weight:650; }
#tfpevApp .tfe-player-fields .tfe-grid-2 { margin-top:12px; }
#tfpevApp .tfe-picker { position:relative; min-width:0; }
#tfpevApp .tfe-player-options { position:absolute; left:0; right:0; top:calc(100% - 14px); max-height:240px; overflow-y:auto; padding:5px; z-index:10; background:#fff; border:1px solid #d7e3ef; border-radius:9px; box-shadow:0 10px 30px #18334b20; }
#tfpevApp .tfe-player-options button { display:flex; justify-content:space-between; gap:10px; text-align:left; width:100%; padding:11px 8px; min-height:44px; border:0; border-radius:6px; background:#fff; color:#284761; font-size:13px; }
#tfpevApp .tfe-player-options button:hover { background:var(--event-tint); }
#tfpevApp .tfe-player-options small { color:#6d8094; white-space:nowrap; }
#tfpevApp .tfe-filter-form { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)) auto; align-items:end; gap:12px; padding:14px 16px; margin-bottom:20px; border:1px solid #dfe7ef; border-radius:12px; background:#fff; }
#tfpevApp .tfe-filter-form>.tfe-field { min-width:0; }
#tfpevApp .tfe-filter-form>.tfe-fine { grid-column:1/-1; margin:0; }
#tfpevApp .tfe-fixture { padding:0; align-self:start; overflow:hidden; }
#tfpevApp .tfe-fixture>summary { list-style:none; padding:17px 20px 11px; }
#tfpevApp .tfe-fixture>summary::-webkit-details-marker { display:none; }
#tfpevApp .tfe-fixture>summary:hover { background:#fafcfe; }
#tfpevApp .tfe-fixture-meta { display:flex; justify-content:space-between; gap:10px; color:#718498; font-size:10px; }
#tfpevApp .tfe-versus { display:grid; grid-template-columns:minmax(0,1fr) 62px minmax(0,1fr); align-items:center; gap:12px; min-height:70px; padding:14px 0; }
#tfpevApp .tfe-versus>strong { font-size:15px; overflow-wrap:anywhere; }
#tfpevApp .tfe-versus>strong:last-child { text-align:right; }
#tfpevApp .tfe-versus>b { text-align:center; color:var(--event-accent); background:var(--event-tint); padding:7px 4px; border-radius:9px; font-size:17px; }
#tfpevApp .tfe-fixture-open { display:flex; justify-content:space-between; gap:10px; align-items:center; border-top:1px solid #edf1f6; padding:10px 0 0; min-height:36px; color:var(--event-accent); font-size:12px; font-weight:650; }
#tfpevApp .tfe-fixture-open>span:last-child { font-size:18px; }
#tfpevApp .tfe-fixture[open] .tfe-fixture-open>span:last-child { transform:rotate(45deg); }
#tfpevApp .tfe-fixture-body { padding:0 20px 20px; border-top:1px solid #e5ecf3; }
#tfpevApp .tfe-game-name { font-size:11px; padding:14px 0; }
#tfpevApp .tfe-score-form { display:grid; gap:14px; }
#tfpevApp .tfe-score-line { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:14px; padding:12px 0; border-bottom:1px solid #edf1f6; }
#tfpevApp .tfe-score-caption b { display:block; font-size:12px; }
#tfpevApp .tfe-score-caption small { display:block; margin-top:4px; line-height:1.5; font-size:10px; color:#64798e; overflow-wrap:anywhere; }
#tfpevApp .tfe-score-caption small>span { color:#8a98a6; padding:0 2px; }
#tfpevApp .tfe-score-inputs { display:flex; align-items:center; justify-content:center; gap:6px; min-width:0; }
#tfpevApp .tfe-score-inputs input { width:49px; padding:9px 3px; min-height:44px; text-align:center; -moz-appearance:textfield; font-size:16px; font-weight:650; }
#tfpevApp .tfe-score-inputs input::-webkit-inner-spin-button { -webkit-appearance:none; margin:0; }
#tfpevApp .tfe-ranking { list-style:none; padding:0; display:grid; gap:10px; margin-bottom:18px; }
#tfpevApp .tfe-rank-row { position:relative; display:flex; flex-wrap:wrap; gap:18px; align-items:center; min-width:0; padding:17px 20px; border:1px solid #dfe7ef; border-radius:13px; background:#fff; }
#tfpevApp .tfe-rank-place { order:0; flex:0 0 33px; display:flex; justify-content:center; align-items:center; width:33px; height:33px; background:var(--event-tint); color:var(--event-accent); border-radius:10px; font-size:15px; font-weight:750; }
#tfpevApp .tfe-rank-team { order:1; flex:1 1 160px; min-width:0; }
#tfpevApp .tfe-rank-team strong { display:block; font-size:15px; overflow-wrap:anywhere; }
#tfpevApp .tfe-rank-team small { display:block; color:#718397; font-size:11px; }
#tfpevApp .tfe-rank-points { order:3; flex:0 0 70px; text-align:right; color:var(--event-accent); }
#tfpevApp .tfe-rank-points b { font-size:23px; line-height:1.2; }
#tfpevApp .tfe-rank-points small { display:block; font-size:10px; color:#708295; }
#tfpevApp .tfe-rank-details { display:flex; gap:12px; min-width:0; }
#tfpevApp .tfe-rank-row>.tfe-rank-details { order:2; flex:1 1 280px; }
#tfpevApp .tfe-rank-details>div { flex:1 1 0; min-width:0; }
#tfpevApp .tfe-rank-details small { display:block; color:#718397; font-size:10px; }
#tfpevApp .tfe-rank-details b { display:block; font-size:14px; font-weight:650; margin-top:3px; }
#tfpevApp .tfe-ranking-pending { order:5; flex:1 0 calc(100% - 51px); margin-left:51px; margin-top:-12px; font-size:10px; color:#9a6a20; }
#tfpevApp .tfe-fitness-totals { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
#tfpevApp .tfe-fitness-totals article { border-top:1px solid #e6edf4; padding-top:14px; }
#tfpevApp .tfe-fitness-totals h4 { margin-bottom:15px; }
#tfpevApp .tfe-fitness-entry-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
#tfpevApp .tfe-rule-grid h3 { margin:15px 0 10px; }
#tfpevApp .tfe-rule-grid h4 { margin-bottom:8px; }
#tfpevApp .tfe-table-scroll { max-width:100%; overflow-x:auto; }
#tfpevApp .tfe-points-table { border-collapse:collapse; table-layout:fixed; width:100%; font-size:12px; }
#tfpevApp .tfe-points-table th,#tfpevApp .tfe-points-table td { padding:9px 7px; text-align:center; border-bottom:1px solid #e7edf5; }
#tfpevApp .tfe-points-table thead { background:var(--event-tint); color:var(--event-deep); }
#tfpevApp .tfe-source-links { padding:0; list-style:none; }
#tfpevApp .tfe-source-links a { display:inline-flex; align-items:center; min-height:44px; color:var(--event-accent); text-decoration:underline; text-underline-offset:3px; font-size:13px; }
#tfpevApp .tfe-audit { list-style:none; padding:0; }
#tfpevApp .tfe-audit li { padding:13px 0; border-top:1px solid #edf1f6; }
#tfpevApp .tfe-audit strong { font-size:12px; font-weight:650; }
#tfpevApp .tfe-audit small { display:block; color:#718397; font-size:10px; margin-top:4px; }
#tfpevApp .tfe-audit p { margin-top:5px; font-size:12px; }
#tfpevApp .tfe-empty { display:grid; justify-items:center; gap:12px; padding:42px 24px; margin-bottom:24px; border:1px dashed #cdd9e6; border-radius:17px; background:#ffffff80; text-align:center; }
#tfpevApp .tfe-empty p { max-width:480px; font-size:13px; }
/* The older global theme uses broad !important rules; contain them on this page. */
body[data-page="tfp-events"] #tfpevApp { background:transparent!important; }
#tfpevApp .tfe-card { border-color:#dfe7ef!important; box-shadow:0 3px 15px #17324d03!important; }
#tfpevApp .tfe-card-heading { background:none!important; border:0!important; box-shadow:none!important; }
#tfpevApp .tfe-tinted { border-color:var(--event-line)!important; }
#tfpevApp .tfe-next { border-top-color:var(--event-accent)!important; }
#tfpevApp .tfe-btn { background:var(--event-accent)!important; color:#fff!important; border-color:transparent!important; box-shadow:none!important; border-radius:10px!important; transform:none!important; }
#tfpevApp .tfe-btn--soft { background:#fff!important; color:#2d4a63!important; border-color:#d8e2ed!important; }
#tfpevApp .tfe-btn--quiet { background:transparent!important; color:#64758a!important; }
#tfpevApp .tfe-btn--danger { background:#fff2f4!important; color:#a83753!important; border-color:#efcfda!important; }
#tfpevApp :where(input,select,textarea) { background:#fff!important; color:#233f57!important; border-color:#d5e0ec!important; box-shadow:none!important; }
#tfpevApp :where(a,button,input,select,textarea,summary):focus-visible { outline:3px solid var(--event-accent)!important; outline-offset:3px; }
#tfpevApp .tfe-points-table thead,#tfpevApp .tfe-points-table thead tr { background:var(--event-tint)!important; }
@media (max-width:1100px) {
    #tfpevApp .tfe-hero-mark { display:none; }
    #tfpevApp .tfe-type { padding:22px; gap:14px; }
    #tfpevApp .tfe-rank-row { gap:13px; }
}
@media (max-width:800px) {
    #tfpevApp .tfe-filter-form { grid-template-columns:repeat(2,minmax(0,1fr)); }
    body[data-page="tfp-events"] #tfpevApp { width:calc(100% - 32px); padding-top:18px; }
    #tfpevApp .tfe-overview-grid,#tfpevApp .tfe-form-columns { grid-template-columns:minmax(0,1fr); }
    #tfpevApp .tfe-catalog-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    #tfpevApp .tfe-hero { padding:24px; gap:20px; }
    #tfpevApp .tfe-hero-side { display:block; }
    #tfpevApp .tfe-mini-stats { flex-direction:column; gap:12px; }
    #tfpevApp .tfe-mini-stats>span { padding-inline:15px 0; }
    #tfpevApp .tfe-tabs { grid-template-columns:repeat(3,minmax(0,1fr)); gap:4px; }
    #tfpevApp .tfe-rank-row { gap:12px; }
    #tfpevApp .tfe-rank-team { flex:1 1 0; }
    #tfpevApp .tfe-rank-points { order:2; flex-basis:54px; }
    #tfpevApp .tfe-rank-row>.tfe-rank-details { order:4; flex:1 0 calc(100% - 45px); margin-left:45px; border-top:1px solid #eef2f6; padding-top:10px; }
    #tfpevApp .tfe-ranking-pending { flex-basis:calc(100% - 45px); margin-left:45px; margin-top:0; }
}
@media (max-width:600px) {
    body[data-page="tfp-events"] #tfpevApp { width:calc(100% - 24px); padding-bottom:30px; }
    #tfpevApp h1 { font-size:26px; }
    #tfpevApp h2 { font-size:21px; }
    #tfpevApp h3 { font-size:17px; }
    #tfpevApp .tfe-section-head { align-items:flex-start; flex-wrap:wrap; gap:12px; margin-bottom:16px; }
    #tfpevApp .tfe-section-head>div { flex:1 1 180px; }
    #tfpevApp .tfe-section-head>.tfe-symbol--large { display:none; }
    #tfpevApp .tfe-type-grid,#tfpevApp .tfe-catalog-grid,#tfpevApp .tfe-team-grid,#tfpevApp .tfe-fixture-grid,#tfpevApp .tfe-rule-grid,#tfpevApp .tfe-fitness-totals,#tfpevApp .tfe-fitness-entry-grid { grid-template-columns:minmax(0,1fr); gap:14px; }
    #tfpevApp .tfe-type { padding:20px 16px; gap:12px; }
    #tfpevApp .tfe-type>.tfe-symbol { width:35px; height:35px; flex-basis:35px; border-radius:10px; }
    #tfpevApp .tfe-type>.tfe-symbol svg { width:21px; height:21px; }
    #tfpevApp .tfe-type h2 { font-size:23px; }
    #tfpevApp .tfe-type p { font-size:13px; }
    #tfpevApp .tfe-hero { display:block; padding:22px 18px 18px; min-height:0; border-radius:17px; }
    #tfpevApp .tfe-hero h1 { font-size:26px; }
    #tfpevApp .tfe-hero-meta { display:grid; gap:7px; font-size:12px; margin-top:14px; }
    #tfpevApp .tfe-hero-side { margin-top:18px; }
    #tfpevApp .tfe-mini-stats { flex-direction:row; gap:0; padding-top:15px; border-top:1px solid #ffffff1b; }
    #tfpevApp .tfe-mini-stats>span { min-width:0; padding:0 18px; }
    #tfpevApp .tfe-mini-stats>span:first-child { padding-left:0; border-left:0; }
    #tfpevApp .tfe-mini-stats b { font-size:19px; }
    #tfpevApp .tfe-hero::after { width:80%; bottom:-200px; }
    #tfpevApp .tfe-card { padding:17px 15px; border-radius:14px; }
    #tfpevApp .tfe-tabs { margin-bottom:18px; }
    #tfpevApp .tfe-tabs a { font-size:11px; padding:8px 3px; }
    #tfpevApp .tfe-btn { font-size:12px; padding:11px 13px; }
    #tfpevApp .tfe-grid-2 { gap:13px 10px; }
    #tfpevApp .tfe-field { font-size:11px; }
    #tfpevApp :where(input:not([type="hidden"]):not([type="radio"]):not([type="checkbox"]),select,textarea) { font-size:16px; padding:10px; }
    #tfpevApp .tfe-savebar { flex-direction:column; align-items:stretch; gap:12px; padding:15px; }
    #tfpevApp .tfe-savebar .tfe-btn { min-width:0; width:100%; }
    #tfpevApp .tfe-card-heading h2 { font-size:18px; }
    #tfpevApp .tfe-roster li { padding:10px 0; }
    #tfpevApp .tfe-team-card .tfe-section-head { flex-wrap:nowrap; gap:10px; }
    #tfpevApp .tfe-team-card h3 { font-size:16px; }
    #tfpevApp .tfe-fixture { padding:0; }
    #tfpevApp .tfe-fixture>summary { padding:14px 14px 9px; }
    #tfpevApp .tfe-versus { gap:9px; grid-template-columns:minmax(0,1fr) 54px minmax(0,1fr); }
    #tfpevApp .tfe-versus>strong { font-size:13px; }
    #tfpevApp .tfe-fixture-body { padding:0 14px 16px; }
    #tfpevApp .tfe-score-line { gap:10px; }
    #tfpevApp .tfe-score-inputs input { width:44px; padding-inline:3px; }
    #tfpevApp .tfe-filter-form { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); padding:13px; gap:10px; }
    #tfpevApp .tfe-filter-form>.tfe-field { min-width:0; }
    #tfpevApp .tfe-filter-form>.tfe-btn { width:100%; }
    #tfpevApp .tfe-filter-form>.tfe-fine { grid-column:1/-1; margin:0; }
    #tfpevApp .tfe-rank-row { padding:14px 12px; gap:10px; }
    #tfpevApp .tfe-rank-team strong { font-size:13px; }
    #tfpevApp .tfe-rank-details { gap:7px; }
    #tfpevApp .tfe-rank-details b { font-size:13px; }
    #tfpevApp .tfe-rank-details small { font-size:9px; }
    #tfpevApp .tfe-rank-points b { font-size:21px; }
    #tfpevApp .tfe-program { gap:7px; }
    #tfpevApp .tfe-program strong { font-size:11px; }
    #tfpevApp .tfe-program small { font-size:10px; }
    #tfpevApp .tfe-points-table { font-size:10px; }
    #tfpevApp .tfe-points-table th,#tfpevApp .tfe-points-table td { padding:9px 3px; overflow-wrap:anywhere; }
}
@media (prefers-reduced-motion:reduce) { #tfpevApp * { scroll-behavior:auto!important; transition:none!important; animation:none!important; } }
