/* Shared app stylesheet — navigation guide.
 * Base: shell, Calendar, search/settings, competition tables and views.
 * Themes: light-theme overrides follow the shared base rules.
 * Refinements: Fixtures/History, Calendar controls/dialogs, shared statistics.
 * Keep source order: later refinements intentionally override earlier rules.
 * Compact declarations and media bodies retain existing source contracts.
 */
:root{--fa-flag-width:20px;--fa-flag-height:16px;--fa-crest-shield-shape:polygon(50% 1%,91% 16%,90% 59%,79% 80%,50% 99%,21% 80%,10% 59%,9% 16%);--fa-crest-shield-fill:#7F9F96}
html[data-theme="light"]{--fa-crest-shield-fill:#789688}
/* HOME-01: historical UX-SHELL proportions, adapted to the Graphite & Petrol site. */
html:has(>body.app-body){overflow:hidden;scrollbar-gutter:auto}
.app-body{height:100vh;height:100svh;height:100dvh;overflow:hidden;--fa-shell-border:#294a49;--fa-shell-accent:#64cba9;--app-page-pad-inline:clamp(16px,2vw,28px);--app-page-pad-top:clamp(16px,2vw,28px);--app-page-pad-bottom:40px;--app-page-section-gap:28px;--app-page-title-size:clamp(28px,3vw,40px);min-width:0}
.app-body a{color:inherit;text-decoration:none}
.fa-career-shell{display:grid;grid-template-columns:210px minmax(0,1fr);min-height:0;height:100vh;height:100svh;height:100dvh;overflow:hidden}
.fa-shell-sidebar{grid-column:1;grid-row:1;position:sticky;top:0;z-index:12;height:100vh;height:100svh;height:100dvh;display:flex;flex-direction:column;min-width:0;background:#0e2026;border-right:1px solid var(--fa-shell-border)}
.fa-shell-sidebar-head{height:60px;min-height:60px;display:flex;align-items:center;padding:0 12px;border-bottom:1px solid var(--fa-shell-border)}
.app-brand{display:flex;align-items:center;gap:8px;min-width:0;width:100%;border-radius:8px}
.app-brand-symbol{width:28px;height:30px;flex:none;display:block;object-fit:contain}
.app-brand-copy{min-width:0;color:#eaf6f0;font-size:11px;font-weight:850;line-height:1.12;letter-spacing:.08em;white-space:nowrap}
.app-brand-copy b{color:#64cba9}
.app-brand-copy small{display:block;margin-top:3px;color:#7caaa0;font-size:7px;font-weight:650;letter-spacing:.16em}
.fa-shell-nav{display:flex;flex:1 1 auto;min-height:0;flex-direction:column;gap:4px;padding:18px 9px 10px;min-width:0}
.fa-shell-nav-group{display:grid;gap:3px;margin:0;min-width:0}
.fa-shell-nav-secondary{margin-top:auto;padding-top:14px;border-top:1px solid #2e4f4c}
.fa-shell-nav-group-title{min-height:13px;margin:0;padding:0 8px;color:#79958d;font-size:8px;font-weight:800;letter-spacing:.11em;line-height:13px;text-transform:uppercase}
.fa-shell-nav-group-items{display:grid;gap:2px;min-width:0}
.fa-shell-link{width:100%;height:34px;min-height:34px;min-width:0;display:flex;align-items:center;justify-content:flex-start;gap:8px;padding:0 9px;border:1px solid transparent;border-radius:11px;background:transparent;color:#b8d2c9!important;font-size:10.5px;font-weight:700;white-space:nowrap}
.fa-shell-link .fa-icon{flex:none}
@media(min-width:721px) and (hover:hover) and (pointer:fine){.fa-shell-link:not(.is-active):not([aria-current]):not([aria-disabled=true]):hover{background:#1b3838;color:#e5f5ed!important}}
.fa-shell-link.is-active{color:#ddfff0!important;background:linear-gradient(90deg,#22483e,#1a3934);border-color:#537369;box-shadow:inset 0 0 0 1px #57d9af22}
.fa-shell-link:focus-visible,.app-brand:focus-visible,.app-link:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.fa-shell-workspace{grid-column:2;grid-row:1;display:flex;flex-direction:column;min-width:0;min-height:0;height:100%;overflow:hidden}
.fa-shell-content-scroll{display:flex;flex:1 1 auto;flex-direction:column;min-width:0;min-height:0;overflow-y:auto;scrollbar-gutter:stable;scroll-padding-top:12px;scrollbar-width:thin;scrollbar-color:var(--scroll-thumb) transparent;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch}
.fa-shell-content-scroll::-webkit-scrollbar{width:9px}
.fa-shell-content-scroll::-webkit-scrollbar-track{background:transparent}
.fa-shell-content-scroll::-webkit-scrollbar-thumb{background:var(--scroll-thumb);border:2px solid transparent;background-clip:padding-box;border-radius:10px}
html{scroll-padding-top:72px}
.fa-shell-topbar{position:sticky;top:0;z-index:20;flex-shrink:0;width:100%;min-width:0;min-height:60px;display:flex;align-items:center;gap:clamp(8px,1.4vw,20px);padding:8px clamp(12px,2.5vw,28px);background:#102a2d;border-bottom:1px solid #2b514d}
.fa-shell-club{display:flex;align-items:center;gap:9px;flex:1 1 170px;min-width:0}
.app-crest{min-width:33px;width:33px;height:33px;display:grid;place-items:center;flex:none;border-radius:9px;border:1px solid #3b6260;background:#193a3b;color:#c2ded2;font-size:15px}
.fa-shell-club strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}
.fa-shell-time{display:flex;align-items:center;gap:5px;flex:0 1 auto;min-width:0;white-space:nowrap;color:#c3d9d2;font-size:12px}
.fa-shell-time .fa-icon{color:#7fcaab;flex:none}
.fa-shell-date-short{display:none}
.fa-shell-primary{flex:none}
.app-continue{min-height:39px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:7px 12px;border:1px solid #506c62;border-radius:10px;background:#244b40;color:#eaf6ef;font-size:12px;font-weight:700;white-space:nowrap}
.app-continue:disabled{opacity:.58;cursor:not-allowed}
.app-main{width:100%;max-width:none;flex:1 0 auto;min-width:0;margin:0;padding:var(--app-page-pad-top) var(--app-page-pad-inline) var(--app-page-pad-bottom)}
.app-view[hidden]{display:none}
.app-view>.app-page-title,.app-admin-view>.admin-page-heading>.app-page-title{margin:0;color:#f2f7f4;font-size:var(--app-page-title-size);font-weight:780;letter-spacing:-.035em;line-height:1.2;text-align:left}
.app-panels{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--fa-space-4);margin-top:var(--app-page-section-gap)}
.app-panel{min-width:0;padding:clamp(17px,2.4vw,26px);border:1px solid var(--border);border-radius:var(--fa-radius-panel);background:var(--surface)}
.app-panel h2{margin:0 0 12px;font-size:var(--fa-text-panel-heading);line-height:1.3;letter-spacing:-.01em}
.app-panel p{margin:0;color:var(--muted);font-size:13px;line-height:1.65}
.app-panel-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:25px}
.app-link{display:inline-flex;align-items:center;justify-content:center;min-height:var(--fa-control-height-regular);min-width:0;padding:10px 14px;border:1px solid var(--border);border-radius:var(--fa-radius-control);font-size:12px;font-weight:700;text-align:center}
.app-link-primary{border-color:var(--primary);background:var(--primary);color:#fff!important}
.app-link-primary:hover{background:var(--primary-hover)}
.app-link-secondary{color:var(--text)!important;background:transparent}
.app-link-secondary:hover{background:rgba(255,255,255,.05)}
.app-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--fa-space-3);margin-top:24px;padding-top:20px;border-top:1px solid var(--line)}
.app-stats strong{display:block;font-size:25px;line-height:1.2;font-variant-numeric:tabular-nums}
.app-stats span{display:block;margin-top:5px;color:var(--muted);font-size:11px;line-height:1.4;overflow-wrap:anywhere}
.app-calendar-empty{margin-top:var(--app-page-section-gap);max-width:750px}
.app-calendar-empty .app-link{margin-top:22px}
/* Calendar: base grid and controls; current presentation refinements follow below. */
/* CAL-IMP-02: one shared set of day buttons in Season and Week views. */
.world-calendar{max-width:1140px;min-width:0;margin-top:var(--app-page-section-gap);padding:clamp(12px,2vw,24px);border:1px solid var(--line);border-radius:14px;background:var(--surface)}
.calendar-heading{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:4px 16px;margin-bottom:20px}
.calendar-heading h2{margin:0;font-size:18px;line-height:1.4;letter-spacing:-.02em}
.calendar-cycle{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}
.calendar-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-bottom:16px;min-width:0}
.calendar-modes{display:flex;gap:3px;padding:3px;border:1px solid var(--line);border-radius:10px;min-width:0}
.calendar-mode{min-height:38px;min-width:78px;max-width:100%;padding:6px 14px;border:1px solid transparent;border-radius:7px;color:var(--muted);background:transparent;font:inherit;font-size:12px;font-weight:700;cursor:pointer}
html[data-calendar-view="season"] #calendar-season,html[data-calendar-view="week"] #calendar-week{color:var(--text);border-color:var(--border);background:rgba(91,142,121,.18)}
.calendar-controls{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0}
.calendar-controls[hidden],html[data-calendar-view="season"] .calendar-controls{display:none}
.calendar-controls>span{font-size:12px;font-weight:700;font-variant-numeric:tabular-nums}
.calendar-arrow{display:grid;place-items:center;width:38px;height:38px;flex:none;padding:0;border:1px solid var(--line);border-radius:9px;background:transparent;color:var(--text);font:inherit;font-size:24px;cursor:pointer}
.calendar-arrow:disabled{opacity:.35;cursor:default}
.calendar-days{display:grid;gap:8px;min-width:0}
.calendar-week-row{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;min-width:0}
.calendar-week-row[hidden]{display:none}
html[data-calendar-view="week"][data-calendar-week="1"] .calendar-week-row:not([data-week="1"]),
html[data-calendar-view="week"][data-calendar-week="2"] .calendar-week-row:not([data-week="2"]),
html[data-calendar-view="week"][data-calendar-week="3"] .calendar-week-row:not([data-week="3"]),
html[data-calendar-view="week"][data-calendar-week="4"] .calendar-week-row:not([data-week="4"]),
html[data-calendar-view="week"][data-calendar-week="5"] .calendar-week-row:not([data-week="5"]),
html[data-calendar-view="week"][data-calendar-week="6"] .calendar-week-row:not([data-week="6"]),
html[data-calendar-view="week"][data-calendar-week="7"] .calendar-week-row:not([data-week="7"]),
html[data-calendar-view="week"][data-calendar-week="8"] .calendar-week-row:not([data-week="8"]){display:none}
.calendar-day{display:flex;flex-direction:column;align-items:stretch;gap:8px;min-width:0;min-height:88px;padding:9px;border:1px solid var(--line);border-radius:8px;background:transparent;color:var(--text);font:inherit;text-align:left;cursor:pointer}
.calendar-day:hover{background:rgba(91,142,121,.10);border-color:var(--border)}
.calendar-day-number{font-size:18px;line-height:1.2;font-weight:700;font-variant-numeric:tabular-nums}
.calendar-day-kind{display:none;min-width:0;color:var(--muted);font-size:12px;line-height:1.4;overflow-wrap:anywhere}
.calendar-day-events{display:flex;flex-direction:column;gap:4px;min-width:0;max-width:100%}
.calendar-event{display:block;min-width:0;padding:2px 5px;border-radius:4px;font-size:11px;line-height:1.3;font-weight:750;letter-spacing:.02em;white-space:nowrap;text-align:center}
.calendar-event--national{background:#21483D;color:#C7EBDD}
.calendar-event--international{background:#393650;color:#E8E0FF}
.calendar-day-mark{font-size:13px;line-height:1.4;color:var(--muted);text-align:center}
.calendar-day[data-kind="transition"]{border-style:dashed}
html[data-calendar-ready="true"] .calendar-day[aria-pressed="true"]{border-color:var(--focus);background:rgba(91,142,121,.20);box-shadow:inset 0 0 0 1px var(--focus)}
.calendar-day:focus-visible,.calendar-mode:focus-visible,.calendar-arrow:focus-visible{outline:2px solid var(--focus);outline-offset:3px}
html[data-calendar-view="week"] .calendar-week-row{grid-template-columns:minmax(0,1fr)}
html[data-calendar-view="week"] .calendar-day{display:grid;grid-template-columns:38px minmax(0,1fr) 48px;align-items:center;gap:12px;min-height:64px;padding:10px 14px}
html[data-calendar-view="week"] .calendar-day-kind{display:block}
.calendar-selected{margin:16px 0 0;font-size:12px;font-weight:650;line-height:1.6;overflow-wrap:anywhere}
.calendar-key{margin:14px 0 0;padding-top:14px;border-top:1px solid var(--line);font-size:11px;line-height:1.8;color:var(--muted);white-space:pre-wrap;overflow-wrap:anywhere}
.calendar-note{margin:8px 0 0;font-size:11px;line-height:1.6;color:var(--muted);overflow-wrap:anywhere}
html[data-theme="light"] .calendar-event--national{background:#DFEDE5;color:#1E543B}
html[data-theme="light"] .calendar-event--international{background:#EEE8F8;color:#51426C}
@media(max-width:620px){
  .calendar-heading{margin-bottom:14px}.calendar-heading h2{font-size:16px}
  .calendar-cycle{font-size:11px}.calendar-toolbar{gap:10px}.calendar-modes{width:100%}
  .calendar-mode{flex:1;min-width:0;min-height:38px;padding-inline:6px}
  .calendar-controls{width:100%}.calendar-arrow{width:44px;height:38px}
  .calendar-days,.calendar-week-row{gap:3px}
  .calendar-day{min-height:68px;padding:4px 2px;gap:6px;border-radius:5px}
  .calendar-day-number{font-size:14px}.calendar-event{padding:2px 1px;font-size:9px;letter-spacing:0}
  html[data-calendar-view="week"] .calendar-day{padding:10px;grid-template-columns:28px minmax(0,1fr) 40px;gap:8px}
  html[data-calendar-view="week"] .calendar-event{font-size:10px}
}
/* The historical Settings and saves page is the sole app language-control location. */
.app-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px;margin-top:var(--app-page-section-gap)}
.app-settings-panel{min-width:0;overflow:visible;padding:0}
.app-settings-panel>h2{margin:0;padding:18px 20px;border-bottom:1px solid #32464e;font-size:17px}
.app-settings-panel-content{display:grid;gap:16px;min-width:0;padding:20px}
.app-settings-panel-content p{line-height:1.65}
.app-settings-hint{max-width:500px}
.settings-language-control{position:relative;display:flex;align-items:center;min-width:0;max-width:100%;width:100%;z-index:5}
.settings-language-control .language-trigger{min-width:164px;width:min(260px,100%);min-height:44px}
.settings-language-control .language-menu{left:0;right:auto;width:min(260px,100%);min-width:164px}
.app-setting-fact{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px 16px;min-width:0;border-bottom:1px solid var(--line);padding-bottom:14px}
.app-setting-fact:last-child{border-bottom:0;padding-bottom:0}
.app-setting-fact span{font-size:11px;font-weight:750;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.app-setting-fact strong{font-size:12px;font-weight:700;color:var(--text)}
.app-about-guide{justify-self:start}
.app-footer{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px 15px;width:100%;max-width:none;margin:0;padding:17px var(--app-page-pad-inline);border-top:1px solid var(--line);color:var(--muted);font-size:11px}
@media(max-width:1024px){
  .fa-career-shell{grid-template-columns:180px minmax(0,1fr)}
  .fa-shell-sidebar-head{padding-inline:10px}
  .app-brand-copy{font-size:10px}
  .fa-shell-nav{padding:16px 7px 9px}
  .fa-shell-link{height:33px;min-height:33px;padding-inline:8px;gap:7px;font-size:10px}
  .fa-shell-nav-group-title{padding-inline:7px}
}
@media(max-width:800px){.app-panels,.app-settings-grid{grid-template-columns:1fr}}
@media(max-width:720px){
  html{scroll-padding-top:66px}
  .fa-career-shell{grid-template-columns:58px minmax(0,1fr)}
  .fa-shell-sidebar-head{height:54px;min-height:54px;justify-content:center;padding:8px 4px}
  .app-brand{width:100%;justify-content:center}
  .app-brand-symbol{width:31px;height:33px}
  .app-brand-copy,.fa-shell-link span{display:none}
  .fa-shell-nav{padding:10px 7px 8px;gap:2px}
  .fa-shell-nav-group{gap:1px}
  .fa-shell-nav-secondary{margin-top:auto;padding-top:10px}
  .fa-shell-nav-group-title{height:5px;min-height:5px;margin:1px 4px;padding:0;border-top:1px solid #2e4f4c;font-size:0;line-height:0}
  .fa-shell-nav-group:first-child .fa-shell-nav-group-title{border-top:0;margin-top:0}
  .fa-shell-link{width:44px;height:35px;min-height:35px;justify-content:center;gap:0;padding:0}
  .fa-shell-topbar{min-height:54px;gap:7px;padding:8px 10px}
  .fa-shell-club{flex:1 1 0}
  .app-crest{min-width:27px;width:27px;height:27px;font-size:12px}
  .fa-shell-club strong{font-size:11px}
  .fa-shell-time{font-size:10px}
  .fa-shell-time .fa-icon,.fa-shell-date-full{display:none}
  .fa-shell-date-short{display:inline}
  .app-continue{width:36px;height:36px;min-height:36px;padding:0}
  .app-continue span{display:none}
  .app-body{--app-page-pad-inline:16px;--app-page-pad-top:18px;--app-page-pad-bottom:36px;--app-page-section-gap:24px}
  .app-settings-panel>h2,.app-settings-panel-content{padding:16px}
}
@media(max-width:390px){
  .fa-career-shell{grid-template-columns:52px minmax(0,1fr)}
  .fa-shell-topbar{gap:4px;padding:7px}
  .fa-shell-club{gap:4px}
  .fa-shell-club strong{max-width:54px;font-size:10px}
  .app-crest{min-width:25px;width:25px;height:25px;font-size:10px}
  .fa-shell-time{font-size:9px}
  .app-continue{width:34px;height:34px;min-height:34px}
  .fa-shell-nav{padding:10px 4px}
  .fa-shell-nav-secondary{margin-top:auto}
  .app-stats{gap:8px}
  .app-stats strong{font-size:22px}
  .app-panel-actions{flex-direction:column}
  .app-link{width:100%}
}
@media(prefers-reduced-motion:reduce){.fa-shell-link,.app-link{transition:none}}

/* HOME-02 SEARCH-01: shared responsive top-bar search and animated modal. */
.fa-shell-search{flex:0 1 330px;min-width:0}
@media(min-width:1025px){.fa-shell-club,.fa-shell-time{flex:1 1 0}.fa-shell-time{justify-content:flex-end}}
.app-search-trigger{display:flex;align-items:center;gap:10px;width:100%;height:38px;min-width:0;padding:0 12px;border:1px solid #365452;border-radius:10px;background:#152e31;color:#d9e7e0;font:inherit;font-size:12px;text-align:left;cursor:pointer}
.app-search-trigger svg{flex:none;color:#9dbab0}
.app-search-trigger:hover{background:#1a3738;border-color:#506c64}
.app-search-trigger span{overflow:hidden;min-width:0;text-overflow:ellipsis;white-space:nowrap}
.app-search-trigger:focus-visible,.app-search-close:focus-visible,.app-search-result:focus-visible{outline:2px solid #a2c0b4;outline-offset:2px}
.app-search-trigger.app-search-escape-return:focus-visible{outline:none}
.app-search-dialog{width:min(520px,calc(100vw - 28px));max-width:520px;max-height:min(78dvh,560px);margin:auto;padding:0;border:0;background:transparent;color:#f2f7f4;overflow:visible}
.app-search-dialog::backdrop{background:rgba(5,12,17,.65);animation:app-search-backdrop-in 160ms ease-out both}
.app-search-panel{display:flex;flex-direction:column;max-height:min(78dvh,560px);min-height:0;overflow:hidden;border:1px solid #385451;border-radius:12px;background:#142b2e;box-shadow:0 18px 52px rgba(0,0,0,.34);animation:app-search-in 160ms ease-out both}
.app-search-input-row{display:flex;align-items:center;gap:10px;padding:9px 12px;border-bottom:1px solid #344e4b}
.app-search-input-row:focus-within{box-shadow:inset 0 -2px #718c83}
.app-search-input-row>svg{flex:none;color:#94b8aa}
.app-search-input-row input{flex:1 1 auto;min-width:0;width:100%;height:39px;padding:0 2px;border:0;background:transparent;color:#f2f7f4;font:inherit;font-size:16px;outline:none;-webkit-user-select:text;user-select:text;-webkit-touch-callout:default}
.app-search-input-row input:focus-visible{outline:none}
.app-search-input-row input::placeholder{color:#a1bdb4}
.app-search-input-row input::-webkit-search-cancel-button{cursor:pointer}
.app-search-close{display:grid;place-items:center;flex:none;width:36px;height:36px;padding:0;border:0;border-radius:8px;background:transparent;color:#c8d8d0;cursor:pointer}
.app-search-close:hover{background:#244040}
.app-search-status{margin:0;padding:9px 13px 4px;color:#9eb7af;font-size:11px;font-weight:650}
.app-search-results{display:grid;gap:2px;min-height:0;margin:0;padding:2px 7px 10px;overflow-y:auto;overscroll-behavior:contain;list-style:none;scrollbar-width:thin;scrollbar-color:#486f63 transparent}
.app-search-results::-webkit-scrollbar{width:5px}
.app-search-results::-webkit-scrollbar-track{background:transparent}
.app-search-results::-webkit-scrollbar-thumb{background:#486f63;border-radius:9px}
.app-search-results[hidden]{display:none}
.app-search-results li{min-width:0}
.app-body a.app-search-result{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;min-height:46px;padding:11px 13px;border:0;border-radius:8px;background:transparent;color:#f2f7f4;text-decoration:none;transition:background-color 120ms ease,box-shadow 120ms ease}
.app-body a.app-search-result:hover{background:#355e55;box-shadow:inset 0 0 0 1px #648f81}
.app-body a.app-search-result:focus-visible{background:#355e55;box-shadow:none;outline:none}
.app-search-kind{color:#9cafaa;font-size:11px;font-weight:600;white-space:nowrap}
.app-search-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:650;line-height:1.35}
.app-search-empty{margin:0;padding:18px 13px 20px;color:#c6d6d0;font-size:13px}
.app-search-empty[hidden]{display:none}
.app-search-dialog.is-closing .app-search-panel{animation:app-search-out 140ms ease-in both}
.app-search-dialog.is-closing::backdrop{animation:app-search-backdrop-out 140ms ease-in both}
@keyframes app-search-in{from{opacity:0;transform:translateY(-10px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes app-search-out{from{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-8px)}}
@keyframes app-search-backdrop-in{from{opacity:0}to{opacity:1}}
@keyframes app-search-backdrop-out{from{opacity:1}to{opacity:0}}
@media(max-width:1024px){
  .fa-shell-search{flex:0 0 38px}
  .app-search-trigger{width:38px;justify-content:center;padding:0}
  .app-search-trigger span{display:none}
}
@media(max-width:390px){
  .fa-shell-search{flex:0 0 34px}
  .app-search-trigger{width:34px;height:34px}
  .app-search-panel,.app-search-dialog{max-height:calc(100dvh - 28px)}
}
@media(prefers-reduced-motion:reduce){
  .app-search-dialog::backdrop,.app-search-dialog.is-closing::backdrop,
  .app-search-panel,.app-search-dialog.is-closing .app-search-panel{animation:none!important}
  .app-body a.app-search-result{transition:none}
}

/* Competitions: compact directory and provisional standings. */
.app-world-countries{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:var(--app-page-section-gap)}
.app-world-country{min-width:0;padding:16px 18px;border:1px solid var(--border);border-radius:12px;background:var(--surface)}
.app-world-country h2{display:flex;align-items:center;gap:10px;margin:0 0 10px;font-size:16px;font-weight:750}
.app-world-flag-frame{display:inline-flex;align-items:center;justify-content:center;width:var(--fa-flag-width);height:var(--fa-flag-height);flex:none}
.app-world-flag{display:block;width:100%;height:100%;flex:none;object-fit:contain;border:0;border-radius:0;clip-path:none}
.app-world-grid{display:grid;gap:2px}
.app-division-card{display:flex;align-items:center;gap:11px;min-width:0;min-height:0;padding:3px 12px;border-radius:8px}
.app-competition-logo-placeholder{display:grid;place-items:center;flex:none;width:36px;height:36px;border:1px dashed #567e70;border-radius:9px;background:#1d3532;color:#b6d9c7;font-size:10px;font-weight:750;letter-spacing:-.015em}
.app-competition-logo-approved{border:0!important;background:transparent!important;padding:0!important;overflow:visible}
/* Each declarative shadow root contains the unchanged SVG and proportional sizing. */
.app-world-grid .app-competition-logo-placeholder{width:48px;height:48px}
.app-competition-header{--app-competition-logo-size:82px}
.app-competition-header .app-competition-logo-approved{width:var(--app-competition-logo-size);height:var(--app-competition-logo-size)}
@media(max-width:620px){
 .app-world-grid .app-competition-logo-placeholder{width:40px;height:40px}
 .app-competition-header{--app-competition-logo-size:64px}
 
}
@media(max-width:360px){.app-competition-header{--app-competition-logo-size:58px}}

.app-division-card:hover{background:#24433d}
.app-division-card:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.app-division-card-copy{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:4px 12px;width:100%;min-width:0}
.app-division-card-copy strong{font-size:14px;font-weight:700;color:var(--text);overflow-wrap:anywhere}
.app-division-card-copy small{font-size:11px;color:var(--muted)}
/* An open season menu must escape the header's lower stacking level and paint
   above mobile matchday navigation without raising the closed header. */
.app-competition-header:has(#app-competition-season-menu:not([hidden])){z-index:20}
.app-competition-header{position:relative;z-index:2;--app-competition-heading-size:var(--app-page-title-size);--app-competition-logo-size:82px;display:flex;align-items:flex-start;gap:18px;flex-wrap:wrap;margin:0}
.app-competition-logo-placeholder-large{width:var(--app-competition-logo-size);height:var(--app-competition-logo-size);border-radius:13px;font-size:15px}
.app-competition-identity{flex:1 1 260px;min-width:0;align-self:center}
.app-competition-identity .app-page-title{margin:0;color:#f2f7f4;font-size:var(--app-competition-heading-size);font-weight:780;letter-spacing:-.035em;line-height:1.2;overflow-wrap:anywhere}
.app-world-detail-meta{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:9px 0 0;color:var(--muted);font-size:12px}
.app-competition-return{display:inline-flex;align-items:center;justify-content:center;flex:none;min-height:44px;height:44px;padding:8px 13px;margin-left:auto;white-space:nowrap;border-radius:9px;text-decoration:none}
.app-competition-return:focus-visible{outline:2px solid var(--focus);outline-offset:3px}
/* IT-1 demonstration: temporary numbers only, not official match or league data. */
.app-world-stat-value{font-weight:650}
.app-world-form-strip{display:inline-flex;align-items:center;justify-content:center;gap:5px;white-space:nowrap}
.app-world-form-dot{display:inline-flex;align-items:center;justify-content:center;flex:none;width:16px;height:16px;padding:0;border:0;border-radius:3px;font:inherit;font-size:9px;font-weight:800;line-height:1;color:#f7fbf8;cursor:pointer}
.app-world-form-w{background:#237c59}
.app-world-form-d{background:#667b82}
.app-world-form-l{background:#98504d}
.app-world-form-last{outline:2px solid var(--focus);outline-offset:1px}
.app-world-form-dot:focus-visible{outline:2px solid #effff4;outline-offset:2px}
.app-world-form-control{box-sizing:border-box;width:32px;height:32px;border-radius:8px;background:transparent;position:relative;touch-action:manipulation;transition:background-color 130ms ease,outline-color 130ms ease}
.app-world-form-strip .app-world-form-control{width:18px;height:18px;border-radius:5px}
.app-world-form-strip .app-world-form-control + .app-world-form-control{margin-left:-4px}
.app-world-form-control:hover{background:var(--surface-raised)}
.app-world-form-control .app-world-form-glyph{display:grid;place-items:center;text-align:center;width:15px;height:15px;border-radius:4px;font-size:9px;font-weight:850;line-height:1;color:#f7fbf8}
.app-world-form-control.app-world-form-w .app-world-form-glyph{background:#237c59}
.app-world-form-control.app-world-form-d .app-world-form-glyph{background:#667b82}
.app-world-form-control.app-world-form-l .app-world-form-glyph{background:#98504d}
.app-world-form-control.app-world-form-last{outline:0}
.app-world-form-control.app-world-form-last .app-world-form-glyph{box-shadow:0 0 0 2px var(--focus)}
.app-world-form-control:focus-visible{outline:2px solid var(--focus);outline-offset:1px;background:var(--surface-raised)}
.app-world-form-control:focus-visible .app-world-form-glyph{box-shadow:none}
/* Standings stays visually still under the pointer. Result tooltips and keyboard focus remain available. */
.app-world-standing-table .app-world-form-control{transition:none}
.app-world-standing-table .app-world-form-control:hover:not(:focus-visible){background:transparent}
/* Viewport-scaled, content-independent 155:64 border-box proportions. */
.app-world-form-tooltip{--app-form-tooltip-width:clamp(240px,80vw,350px);position:fixed;z-index:80;box-sizing:border-box;display:flex;flex-direction:column;justify-content:flex-start;gap:clamp(5px,1.8vw,8px);width:var(--app-form-tooltip-width);min-height:clamp(100px,29vw,114px);height:auto;max-height:min(60vh,260px);aspect-ratio:auto;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;pointer-events:none;padding:clamp(9px,3vw,13.5px) clamp(10px,3.4vw,15.8px);border:1px solid #537369;border-radius:clamp(9px,3.1vw,13px);background:#142b2e;color:#f2f7f4;box-shadow:0 16px 40px rgba(0,0,0,.38);font-size:clamp(10px,2.8vw,12.5px);line-height:1.4;animation:app-world-tooltip-in 170ms ease-out both}
.app-world-form-tooltip[hidden]{display:none}
.app-world-form-tooltip.is-closing{animation:app-world-tooltip-out 130ms ease-in both}
@keyframes app-world-tooltip-in{from{opacity:0;transform:translateY(6px) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes app-world-tooltip-out{from{opacity:1;transform:translateY(0) scale(1)}to{opacity:0;transform:translateY(4px) scale(.985)}}
@media(prefers-reduced-motion:reduce){.app-world-form-tooltip,.app-world-form-tooltip.is-closing{animation:none!important}}
.app-world-form-tooltip-meta{display:flex;align-items:center;justify-content:space-between;gap:4px 12px;flex-wrap:wrap;min-height:clamp(11px,3.6vw,16px);color:#b5c9c1;font-size:clamp(9px,2.5vw,11.3px);font-weight:400}
.app-world-form-tooltip-round{display:inline-flex;gap:clamp(3px,1.3vw,6px);white-space:nowrap}
.app-world-form-tooltip-scoreline{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:clamp(6px,2.3vw,10px);min-height:clamp(26px,9vw,40px)}
.app-world-form-tooltip-team{min-width:0;overflow-wrap:anywhere;white-space:normal;font-weight:400}
.app-world-form-tooltip-team:last-child{text-align:right}
.app-world-form-tooltip-score{font-size:clamp(15px,4.5vw,20.3px);display:grid;grid-template-columns:minmax(2ch,1fr) 1ch minmax(2ch,1fr);column-gap:.25ch;align-items:center;text-align:center;font-weight:850;white-space:nowrap;font-variant-numeric:tabular-nums}
.app-world-form-tooltip-context{display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center;margin-top:0;padding-top:clamp(6px,2.05vw,9px);border-top:1px solid #34524d;color:#b5c9c1;font-size:clamp(9px,2.5vw,11.3px)}
.app-world-form-tooltip-stadium,.app-world-form-tooltip-date{max-width:100%;overflow-wrap:anywhere}
.app-world-form-tooltip-context [hidden]{display:none}
/* Shared competition standings: dedicated crest slot for every club. */
.app-world-standings{width:100%;max-width:100%;min-width:0;margin-top:0;border:1px solid var(--border);border-radius:12px;background:var(--surface)}
.app-world-standing-scroll{max-width:100%;overflow-x:auto;overflow-y:hidden;border-radius:12px;scrollbar-width:thin;scrollbar-color:var(--border) transparent;overscroll-behavior-x:contain}
.app-world-standing-scroll::-webkit-scrollbar{height:5px}
.app-world-standing-scroll::-webkit-scrollbar-track{background:transparent}
.app-world-standing-table{width:100%;min-width:766px;table-layout:fixed;border-collapse:separate;border-spacing:0;font-size:11.5px;color:var(--text);font-variant-numeric:tabular-nums}
.app-world-standing-table tr>*{padding:3px 4px;border:0;border-bottom:1px solid var(--line);text-align:center;vertical-align:middle;white-space:nowrap}
.app-world-standing-table thead th{height:36px;background:#172d30;color:var(--muted);font-size:11px;font-weight:750;letter-spacing:.03em}
.app-world-standing-table tbody tr>*{height:68px;background:var(--surface)}
.app-world-standing-table tbody tr:nth-child(even)>*:not(:nth-child(10)){background:rgba(100,203,169,.025)}
.app-world-standing-table tbody tr:last-child>*{border-bottom:0}
.app-world-standing-table tr>*:first-child{position:sticky;left:0;z-index:2;width:38px;min-width:38px;max-width:38px;background:var(--surface)}
.app-world-standing-table tr>*:nth-child(2){position:sticky;left:38px;z-index:2;width:auto;min-width:148px;text-align:left;background:var(--surface);box-shadow:1px 0 var(--line)}
.app-world-standing-table thead tr>*:first-child,.app-world-standing-table thead tr>*:nth-child(2){z-index:3;background:#172d30}
.app-world-standing-table tr>*:nth-child(n+3):nth-child(-n+10){width:55px;min-width:55px;max-width:55px}
.app-world-standing-table tr>*:nth-child(10){background:#26473e;color:#e6ffed;font-weight:800;box-shadow:inset 1px 0 #3b7060,inset -1px 0 #3b7060}
.app-world-standing-table thead tr>*:nth-child(10){background:#305c4c;color:#effff4}
.app-world-standing-table tr>*:last-child{width:140px;min-width:140px;max-width:140px}
.app-world-club-identity{display:flex;align-items:center;gap:8px;min-width:0}
.app-world-club-crest-placeholder{display:grid;place-items:center;position:relative;flex:0 0 48px;width:48px;height:48px;box-sizing:border-box;border:0;border-radius:0;background:transparent}
.app-world-club-crest-placeholder::before{content:"";display:block;width:85%;height:90%;background:var(--fa-crest-shield-fill);clip-path:var(--fa-crest-shield-shape);opacity:.78}
.app-world-club-name{min-width:0;white-space:normal;overflow-wrap:anywhere;font-size:11.5px;font-weight:650;line-height:1.35}
.app-world-stat-unknown{color:var(--muted)}
@media(max-width:1024px){.app-world-countries{grid-template-columns:1fr}}
@media(max-width:620px){.app-competition-header{gap:10px;--app-competition-heading-size:clamp(20px,6vw,26px)}.app-competition-logo-placeholder-large{font-size:12px}.app-competition-identity{flex:1 1 calc(100% - var(--app-competition-logo-size) - 10px)}.app-competition-return{display:none}.app-world-country{padding:12px}.app-division-card{padding:3px 8px;gap:8px}.app-world-grid .app-competition-logo-placeholder{width:40px;height:40px;font-size:9px}.app-world-standing-table{min-width:696px}.app-world-standing-table tr>*{padding:3px 4px}.app-world-standing-table tbody tr>*{height:64px}.app-world-standing-table tr>*:nth-child(n+3):nth-child(-n+10){width:50px;min-width:50px;max-width:50px}.app-world-standing-table tr>*:first-child{width:30px;min-width:30px;max-width:30px}.app-world-standing-table tr>*:nth-child(2){left:30px;min-width:126px}.app-world-club-identity{gap:7px}.app-world-club-crest-placeholder{flex-basis:40px;width:40px;height:40px}.app-world-club-name{font-size:10.5px}}

@media(max-width:360px){.app-world-standing-table{min-width:686px}.app-world-standing-table tr>*:nth-child(2){min-width:116px}.app-world-club-identity{gap:7px}}

/* UX-01A: mobile projection preserving the canonical 11-column table. */
.app-world-standings [hidden]{display:none!important}
.app-world-mobile-list{margin:0;padding:0;list-style:none}
.app-world-mobile-item{border-bottom:1px solid var(--line)}
.app-world-mobile-item:last-child{border-bottom:0}
.app-world-mobile-details{min-width:0}
.app-world-mobile-summary{display:grid;grid-template-columns:25px minmax(0,1fr) 40px;grid-template-areas:"position name points" ". form points";column-gap:6px;row-gap:5px;align-items:center;min-height:78px;padding:9px 8px;cursor:pointer;list-style:none}
.app-world-mobile-summary::-webkit-details-marker{display:none}
.app-world-mobile-summary:focus-visible{outline:2px solid var(--focus);outline-offset:-2px;border-radius:8px}
.app-world-mobile-details[open]>.app-world-mobile-summary,.app-world-mobile-summary:hover{background:rgba(100,203,169,.065)}
.app-world-mobile-position{grid-area:position;padding-left:4px;color:var(--muted);font-size:12px;font-variant-numeric:tabular-nums}
.app-world-mobile-name{grid-area:name;min-width:0;overflow-wrap:anywhere;font-size:12px;line-height:1.35;font-weight:700}
.app-world-mobile-points{grid-area:points;display:flex;flex-direction:column;align-items:center;gap:3px;padding:7px 3px;border-radius:7px;background:#26473e;color:#effff4;font-size:16px;font-weight:850;font-variant-numeric:tabular-nums}
.app-world-mobile-form{grid-area:form;display:flex;align-items:center;gap:3px;min-width:0}
.app-world-mobile-form .app-world-form-dot{width:16px;height:16px;cursor:default}
.app-world-mobile-form .app-world-form-last{outline:2px solid var(--focus);outline-offset:1px}
.app-world-mobile-no-form{font-size:13px;color:var(--muted)}
.app-world-mobile-panel{padding:6px 9px}
.app-world-mobile-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:0}
.app-world-mobile-stat{min-width:0;padding:7px 2px;text-align:center;background:rgba(100,203,169,.045);border:1px solid var(--line);border-radius:7px;font-variant-numeric:tabular-nums}
.app-world-mobile-stat dt{color:var(--muted);font-size:10px;font-weight:700}
.app-world-mobile-stat dd{margin:4px 0 0;font-size:13px;font-weight:750}
@media(min-width:621px){.app-world-compact{display:none!important}}
@media(max-width:620px){.app-world-standing-scroll{display:none!important}.app-world-standings{overflow:hidden}.app-world-mobile-name{font-size:12px}}
@media(max-width:360px){.app-world-mobile-summary{grid-template-columns:21px minmax(0,1fr) 36px;column-gap:4px;padding:8px 5px}.app-world-mobile-points{font-size:15px}.app-world-mobile-name{font-size:11.5px}}
.app-world-mobile-empty{padding:12px 14px}
.app-world-mobile-empty .app-competition-status{margin:0}
.app-world-mobile-form [data-published-form]{cursor:pointer;touch-action:manipulation}
/* Verified recent-form results are native match links; keep badge dimensions and glyphs unchanged. */
.app-world-form-strip a.app-world-form-control,.app-world-mobile-form a[data-published-match]{text-decoration:none}
.app-world-mobile-form a[data-published-match]{cursor:pointer}

/* Competition views share the same page and never fabricate data. */
.app-competition-tabs{display:flex;gap:4px;overflow-x:auto;overflow-y:hidden;margin-top:var(--app-page-section-gap);padding:0 0 7px;border-bottom:1px solid var(--line);scrollbar-width:thin;scrollbar-color:var(--border) transparent;overscroll-behavior-x:contain}
.app-competition-tabs::-webkit-scrollbar{height:5px}
.app-competition-tabs::-webkit-scrollbar-track{background:transparent}
.app-competition-tab{flex:0 0 var(--fa-tab-width-regular);box-sizing:border-box;width:var(--fa-tab-width-regular);min-width:var(--fa-tab-width-regular);max-width:var(--fa-tab-width-regular);overflow:hidden;text-overflow:ellipsis;text-align:center;border:0;border-radius:8px;padding:10px 6px;min-height:40px;background:transparent;color:var(--muted);font:inherit;font-size:12px;font-weight:650;white-space:nowrap;cursor:pointer}
.app-competition-tab:hover{color:var(--text);background:rgba(100,203,169,.08)}
html:not([data-competition-view]) .app-competition-tab.is-active,
html[data-competition-view="standings"] #competition-tab-standings,
html[data-competition-view="postseason"] #competition-tab-postseason,
html[data-competition-view="fixtures"] #competition-tab-fixtures,
html[data-competition-view="stats"] #competition-tab-stats,
html[data-competition-view="history"] #competition-tab-history,
html[data-competition-view="rules"] #competition-tab-rules,
html[data-competition-view="awards"] #competition-tab-awards,
html[data-competition-view="rewards"] #competition-tab-rewards{color:var(--text);background:#21483d}
.app-competition-tab:focus-visible,.app-competition-panel:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
@media(hover:none){.app-competition-tab:hover{background:transparent;color:var(--muted)}.app-competition-tab:focus:not(:focus-visible),.app-competition-panel:focus:not(:focus-visible){outline:none;box-shadow:none}.app-competition-panel:focus-visible{outline:none}}
.app-competition-panel{margin-top:14px;min-width:0}
.app-competition-panel[hidden]{display:none}
/* The combobox box stays mounted; its unverified public season numeral does not flash. */
#app-competition-season-value[data-season-pending="true"]{display:inline-block;min-width:1.4ch;line-height:1;vertical-align:middle}
/* No season-picker skeleton: a verified initial server value is visible, while
   an unavailable canonical clock reserves width without fabricating a numeral. */
.app-competition-panel>.app-world-standings{margin-top:0}

/* STANDINGS-SUBVIEWS: same compact second-level navigation as Club Roster. */
#competition-panel-standings>.app-standings-subviews{display:flex;align-items:center;gap:4px;min-width:0;height:42px;min-height:42px;overflow-x:auto;overflow-y:hidden;margin:0;padding:0;border:0;scrollbar-width:none;overscroll-behavior-x:contain}
#competition-panel-standings>.app-standings-subviews::-webkit-scrollbar{display:none}
#competition-panel-standings>.app-standings-subviews .app-competition-tab{box-sizing:border-box;flex:0 0 92px;width:92px;min-width:92px;max-width:92px;height:32px;min-height:32px;padding:5px;border-radius:6px;font-size:11px;line-height:1.2}
#competition-panel-standings>.app-standings-subviews .app-competition-tab[aria-pressed="true"]{color:var(--text);background:#21483d}
html[data-theme="light"] #competition-panel-standings>.app-standings-subviews .app-competition-tab[aria-pressed="true"]{background:#D9EEE1;color:#174C37}
#competition-panel-standings>.app-standings-subviews .app-competition-tab[hidden]{display:none!important}
#competition-panel-standings>.app-standings-subviews .app-competition-tab:focus-visible{outline:2px solid var(--focus);outline-offset:-2px}
@media(max-width:620px){
 #competition-panel-standings>.app-standings-subviews{--app-tabs-fade-left:0px;--app-tabs-fade-right:16px;scroll-padding-inline:0;-webkit-mask-image:linear-gradient(to right,transparent,#000 var(--app-tabs-fade-left),#000 calc(100% - var(--app-tabs-fade-right)),transparent);mask-image:linear-gradient(to right,transparent,#000 var(--app-tabs-fade-left),#000 calc(100% - var(--app-tabs-fade-right)),transparent)}
 #competition-panel-standings>.app-standings-subviews[data-can-scroll-left="true"]{--app-tabs-fade-left:16px}
 #competition-panel-standings>.app-standings-subviews[data-can-scroll-right="false"]{--app-tabs-fade-right:0px}
 #competition-panel-standings>.app-standings-subviews .app-competition-tab{flex:0 0 calc(40% - 3.2px);width:calc(40% - 3.2px);min-width:calc(40% - 3.2px);max-width:calc(40% - 3.2px);padding-inline:4px}
}

.app-competition-panel>h2{margin:0 0 12px;font-size:17px;font-weight:750}
.app-competition-status{margin:0;color:var(--muted);font-size:13px;line-height:1.6}
.app-competition-facts{display:flex;flex-wrap:wrap;gap:22px;margin:18px 0 0}
.app-competition-facts dt{color:var(--muted);font-size:11px}
.app-competition-facts dd{margin:5px 0 0;font-weight:700;font-size:14px}
/* RULES-04: shared responsive regulations, separate from competition navigation. */
.app-rules-content{display:grid;gap:20px;width:100%;max-width:none;min-width:0}
.app-rules-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0}
.app-rules-metric{min-width:0;border:1px solid var(--line);border-radius:10px;padding:12px 14px;background:var(--panel,transparent)}
.app-rules-metric dt{color:var(--muted);font-size:12px;line-height:1.4}
.app-rules-metric dd{margin:6px 0 0;font-size:22px;font-weight:750;line-height:1.2;color:var(--text)}
.app-rules-section{min-width:0;border-top:1px solid var(--line);padding-top:18px}
.app-rules-content>.app-rules-section:first-child{border-top:0;padding-top:0}
.app-rules-section>.app-rules-metrics{margin-top:16px}
.app-rules-section h3{font-size:16px;line-height:1.4;margin:0 0 10px;font-weight:750;color:var(--text)}
.app-rules-section p{color:var(--text);font-size:14px;line-height:1.7;margin:0;overflow-wrap:anywhere}
.app-rules-points{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:0}
.app-rules-points .app-rules-metric dd{font-size:20px}
.app-rules-outcomes{display:grid;gap:7px;margin:0}
.app-rules-outcome{display:grid;grid-template-columns:minmax(58px,90px) minmax(0,1fr);align-items:center;gap:12px;border:1px solid var(--line);border-inline-start:3px solid var(--line);border-radius:7px;padding:10px 12px;min-width:0}
.app-rules-outcome .app-rules-range{font-weight:750;white-space:nowrap}
.app-rules-outcome span{font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.app-rules-outcome:not([data-outcome="stay"]){border-inline-start-color:var(--standing-outcome-color);background:color-mix(in srgb,var(--surface) 92%,var(--standing-outcome-color) 8%)}
.app-rules-outcomes + p{margin-top:10px}
@media(max-width:520px){.app-rules-content{gap:16px}.app-rules-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.app-rules-metric{padding:11px}.app-rules-metric dd{font-size:20px}.app-rules-section{padding-top:14px}.app-rules-outcome{gap:8px;padding:9px}}
/* Scale the competition tabs as one group, regardless of translated label length. */
@media(max-width:620px){.app-competition-tabs{--app-competition-tab-mobile-width:max(92px,calc((100% - 8px)/2.5))}.app-competition-tab{flex:0 0 var(--app-competition-tab-mobile-width);width:var(--app-competition-tab-mobile-width);min-width:var(--app-competition-tab-mobile-width);max-width:var(--app-competition-tab-mobile-width);min-height:34px;padding:7px 4px;font-size:clamp(10px,2.55vw,11px)}}


/* A partial next tab and edge fades expose horizontal navigation on phones. */
@media(max-width:620px){
 /* View navigation keeps touch/keyboard scrolling; hide only its visual scrollbar.
  * Other scrollable surfaces (tables, menus, page content) retain their scrollbars. */
 .app-competition-tabs{scrollbar-width:none;-ms-overflow-style:none;--app-tabs-fade-left:0px;--app-tabs-fade-right:0px;scroll-padding-inline:16px;-webkit-mask-image:linear-gradient(to right,transparent,#000 var(--app-tabs-fade-left),#000 calc(100% - var(--app-tabs-fade-right)),transparent);mask-image:linear-gradient(to right,transparent,#000 var(--app-tabs-fade-left),#000 calc(100% - var(--app-tabs-fade-right)),transparent)}
 .app-competition-tabs::-webkit-scrollbar{display:none;width:0;height:0}
 .app-competition-tabs[data-can-scroll-left="true"]{--app-tabs-fade-left:16px}
 .app-competition-tabs[data-can-scroll-right="true"]{--app-tabs-fade-right:16px}
}

/* Light theme: overrides for the shared shell and competition views. */
/* UI-THEME #96: light-only overrides preserve the historic dark appearance. */
html[data-theme="light"] .app-body{--fa-shell-border:#D4E0DA;--fa-shell-accent:#17664E}
html[data-theme="light"] .fa-shell-sidebar{background:#E9F1ED}
html[data-theme="light"] .app-brand-copy{color:#1D4237}
html[data-theme="light"] .app-brand-copy b{color:#17664E}
html[data-theme="light"] .app-brand-copy small{color:#486E60}
html[data-theme="light"] .fa-shell-nav-secondary{border-top-color:#C8D8D0}
html[data-theme="light"] .fa-shell-nav-group-title{color:#536C61}
html[data-theme="light"] .fa-shell-link{color:#315449!important}
@media(min-width:721px) and (hover:hover) and (pointer:fine){html[data-theme="light"] .fa-shell-link:not(.is-active):not([aria-current]):not([aria-disabled=true]):hover{background:#D9E8DE;color:#154735!important}}
html[data-theme="light"] .fa-shell-link.is-active{color:#124C37!important;background:linear-gradient(90deg,#CAE6D7,#DAEEE2);border-color:#91B9A5;box-shadow:inset 0 0 0 1px #BEDDCB}
html[data-theme="light"] .fa-shell-topbar{background:#FFFFFF;border-bottom-color:#D4E0DA}
html[data-theme="light"] .app-crest{border-color:#B7D1C3;background:#EAF4EC;color:#285B44}
html[data-theme="light"] .fa-shell-time{color:#49665C}
html[data-theme="light"] .fa-shell-time .fa-icon{color:#23765B}
html[data-theme="light"] .app-continue{border-color:#A0BAAB;background:#E3F0E9;color:#315748}
html[data-theme="light"] .app-view>.app-page-title,html[data-theme="light"] .app-admin-view>.admin-page-heading>.app-page-title,html[data-theme="light"] .app-competition-identity .app-page-title{color:var(--text)}
html[data-theme="light"] .app-link-secondary:hover{background:#EDF4EF}
html[data-theme="light"] .app-settings-panel>h2{border-bottom-color:var(--line)}
html[data-theme="light"] .app-search-trigger{border-color:#A8C3B7;background:#F2F7F3;color:#385B4E}
html[data-theme="light"] .app-search-trigger svg{color:#426B5B}
html[data-theme="light"] .app-search-trigger:hover{background:#E5F1E9;border-color:#67917D}
html[data-theme="light"] .app-search-trigger:focus-visible,html[data-theme="light"] .app-search-close:focus-visible,html[data-theme="light"] .app-search-result:focus-visible{outline-color:var(--focus)}
html[data-theme="light"] .app-search-dialog{color:var(--text)}
html[data-theme="light"] .app-search-dialog::backdrop{background:rgba(16,34,29,.38)}
html[data-theme="light"] .app-search-panel{border-color:#A8C2B4;background:#FFFFFF;box-shadow:0 18px 52px rgba(23,46,37,.18)}
html[data-theme="light"] .app-search-input-row{border-bottom-color:#D7E5DC}
html[data-theme="light"] .app-search-input-row:focus-within{box-shadow:inset 0 -2px #377F60}
html[data-theme="light"] .app-search-input-row>svg{color:#497666}
html[data-theme="light"] .app-search-input-row input{color:var(--text)}
html[data-theme="light"] .app-search-input-row input::placeholder{color:#617A6C}
html[data-theme="light"] .app-search-close{color:#3D6555}
html[data-theme="light"] .app-search-close:hover{background:#E8F3EB}
html[data-theme="light"] .app-search-status{color:#537365}
html[data-theme="light"] .app-search-results{scrollbar-color:var(--scroll-thumb) transparent}
html[data-theme="light"] .app-search-results::-webkit-scrollbar-thumb{background:var(--scroll-thumb)}
html[data-theme="light"] .app-body a.app-search-result{color:var(--text)}
html[data-theme="light"] .app-body a.app-search-result:hover,html[data-theme="light"] .app-body a.app-search-result:focus-visible{background:#E3F2E9;box-shadow:inset 0 0 0 1px #B7D4C3}
html[data-theme="light"] .app-search-kind{color:#587267}
html[data-theme="light"] .app-search-empty{color:#527064}
html[data-theme="light"] .app-competition-logo-placeholder{border-color:#96B9A6;background:#E8F4EB;color:#416A55}
html[data-theme="light"] .app-division-card:hover{background:#EBF5EE}
html[data-theme="light"] .app-world-form-tooltip{border-color:#A8C2B4;background:#FFFFFF;color:var(--text);box-shadow:0 16px 40px rgba(28,50,41,.19)}
html[data-theme="light"] .app-world-form-tooltip-meta,html[data-theme="light"] .app-world-form-tooltip-context{color:#526F62}
html[data-theme="light"] .app-world-form-tooltip-context{border-top-color:#D3E3D9}
html[data-theme="light"] .app-world-standing-table thead th,html[data-theme="light"] .app-world-standing-table thead tr>*:first-child,html[data-theme="light"] .app-world-standing-table thead tr>*:nth-child(2){background:#E8F1EB;color:#31594A}
html[data-theme="light"] .app-world-standing-table tbody tr:nth-child(even)>*:not(:nth-child(10)){background:#F5F9F6}
html[data-theme="light"] .app-world-standing-table tr>*:nth-child(10){background:#D4EBDD;color:#174936;box-shadow:inset 1px 0 #A5CCB2,inset -1px 0 #A5CCB2}
html[data-theme="light"] .app-world-standing-table thead tr>*:nth-child(10){background:#B7DCC7;color:#173F30}
html[data-theme="light"] .app-world-club-crest-placeholder{border:0;background:transparent}
html[data-theme="light"] .app-competition-tab:hover{background:#EAF4EE}
html[data-theme="light"]:not([data-competition-view]) .app-competition-tab.is-active,
html[data-theme="light"][data-competition-view="standings"] #competition-tab-standings,
html[data-theme="light"][data-competition-view="postseason"] #competition-tab-postseason,
html[data-theme="light"][data-competition-view="fixtures"] #competition-tab-fixtures,
html[data-theme="light"][data-competition-view="stats"] #competition-tab-stats,
html[data-theme="light"][data-competition-view="history"] #competition-tab-history,
html[data-theme="light"][data-competition-view="rules"] #competition-tab-rules,
html[data-theme="light"][data-competition-view="awards"] #competition-tab-awards,
html[data-theme="light"][data-competition-view="rewards"] #competition-tab-rewards{background:#D9EEE1;color:#174C37}
.app-theme-choices{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.app-theme-choice{display:inline-flex;align-items:center;justify-content:center;min-width:112px;min-height:44px;padding:9px 18px;border:1px solid var(--border);border-radius:10px;background:var(--surface);color:var(--text);font:inherit;font-size:13px;font-weight:700;cursor:pointer}
.app-theme-choice:hover{border-color:var(--primary);background:rgba(91,142,121,.12)}
.app-theme-choice[aria-pressed="true"]{border-color:var(--border);background:#21483D;color:#F2F7F4}
html[data-theme="light"] .app-theme-choice[aria-pressed="true"]{border-color:#2E8061;background:#D6EDE0;color:#164A35}
.app-theme-choice:focus-visible{outline:2px solid var(--focus);outline-offset:2px}

/* Keep division logos and placeholders identical at each breakpoint. */
@media(max-width:620px){.app-competition-header{--app-competition-logo-size:64px}}
@media(max-width:360px){.app-competition-header{--app-competition-logo-size:58px}}

/* UX-01A: keep the mobile projection readable in the existing Light theme. */
html[data-theme="light"] .app-world-mobile-details[open]>.app-world-mobile-summary,
html[data-theme="light"] .app-world-mobile-summary:hover{background:#E7F4EB}
html[data-theme="light"] .app-world-mobile-points{background:#D4EBDD;color:#174936}
html[data-theme="light"] .app-world-mobile-stat{background:#F5F9F6;border-color:var(--line)}

/* STANDINGS-UX-01B: desktop presentation only. */
@media (min-width:621px) {
  .app-world-standing-table{font-size:12.5px}
  .app-world-standing-table thead th{height:40px;font-size:11.5px}
  .app-world-standing-table tbody tr>*{height:68px}
  .app-world-club-name{font-size:13px;font-weight:700;line-height:1.25}
  .app-world-standing-table tbody tr>*:nth-child(10){font-size:14px;font-weight:800}
  .app-world-standing-table tbody tr:focus-within>*:not(:nth-child(10)){background:rgba(100,203,169,.075)}
  html[data-theme="light"] .app-world-standing-table tbody tr:focus-within>*:not(:nth-child(10)){background:#E7F4EB}
  html[data-theme="light"] .app-world-form-dot:focus-visible{outline-color:var(--focus)}
}
@media (min-width:1160px) {
  .app-world-standing-table{min-width:852px}
  .app-world-standing-table tr>*{padding:3px 4px}
  
  .app-world-standing-table tr>*:first-child{width:44px;min-width:44px;max-width:44px}
  .app-world-standing-table tr>*:nth-child(2){left:44px;min-width:210px}
  .app-world-standing-table tr>*:nth-child(n+3):nth-child(-n+6){width:54px;min-width:54px;max-width:54px}
  .app-world-standing-table tr>*:nth-child(n+7):nth-child(-n+9){width:58px;min-width:58px;max-width:58px}
  .app-world-standing-table tr>*:nth-child(10){width:64px;min-width:64px;max-width:64px}
  .app-world-standing-table tr>*:last-child{width:144px;min-width:144px;max-width:144px}
}

/* Fixtures: shared round controls and match presentation. */
/* Competition Fixtures: one eight-match round, shared desktop/mobile markup. */
.app-fixtures-toolbar{position:relative;z-index:1;display:flex;justify-content:center;align-items:center;min-height:32px;margin:0 0 16px}
.app-fixtures-toolbar[hidden],.app-fixtures-current[hidden]{display:none}
.app-fixtures-current{position:absolute;inset-inline-end:0;top:0;width:auto;min-width:0;min-height:32px;height:32px;padding:5px 8px;justify-content:center;gap:6px;white-space:nowrap}
.app-fixtures-navigation{position:relative;display:flex;gap:4px;align-items:center}
.app-fixtures-arrow{width:var(--fa-control-height-compact);min-width:var(--fa-control-height-compact)!important;min-height:var(--fa-control-height-compact);height:var(--fa-control-height-compact);padding:0;justify-content:center}
.app-fixtures-select{width:120px;font-size:13px}
.app-fixtures-trigger{width:100%;min-width:0!important;min-height:var(--fa-control-height-compact);height:var(--fa-control-height-compact);padding:5px 8px;gap:4px;font-size:inherit}
.app-fixtures-navigation :disabled{opacity:.45;cursor:default}
.app-fixtures-arrow:disabled{pointer-events:none}
.app-fixtures-navigation button:disabled,.app-fixtures-navigation button:disabled:hover{background:var(--surface);border-color:var(--border);color:var(--text);transition:none;animation:none;transform:none;box-shadow:none}
.app-fixtures-navigation button:focus-visible,.app-competition-season .language-trigger:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
@media(max-width:1000px){.app-fixtures-current{width:32px;min-width:32px;height:32px;padding:0}.app-fixtures-current span{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}}
@media(max-width:360px){.app-fixtures-select{width:100px;font-size:12px}.app-fixtures-trigger{font-size:12px;padding-inline:6px;gap:3px}.app-fixtures-arrow{width:28px;min-width:28px!important}}
.app-fixtures-picker{width:100%;min-width:0;inset-inline-end:0;padding:3px;font-size:inherit}
.app-fixtures-picker .language-option{min-height:32px;padding:5px 6px;gap:3px;font-size:inherit}
.app-competition-season{display:flex;align-items:center;gap:8px;margin-inline-start:auto;font-size:13px}
.app-competition-season>span{font-weight:700}
.app-competition-season .language-control{width:88px}
#app-competition-season-value{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.app-competition-season .language-trigger{width:100%;min-width:0;height:44px}
.app-competition-season .language-menu{width:100%;min-width:0}
#app-competition-season-unavailable[hidden]{display:none}
@media(max-width:620px){.app-competition-season{margin-inline-start:0}}
.app-fixtures-list{list-style:none;display:grid;gap:8px;padding:0;margin:0}
.app-fixture-match{min-height:60px;display:grid;grid-template-columns:minmax(0,1fr) 140px minmax(0,1fr);align-items:center;gap:8px 14px;padding:14px 16px;border:1px solid var(--border);border-radius:10px;background:var(--surface)}
.app-fixture-club .app-world-club-crest-placeholder{flex-basis:64px;width:64px;height:64px}
.app-fixture-club{display:flex;align-items:center;gap:8px;min-width:0;font-size:14px;font-weight:700}
.app-fixture-home{flex-direction:row-reverse;text-align:right}
.app-fixture-name{min-width:0;overflow-wrap:anywhere;line-height:1.25}
.app-fixture-name-compact{display:none}
.app-fixture-score{display:grid;grid-template-columns:2ch 1ch 2ch;text-align:center;font-size:20px;font-weight:800;font-variant-numeric:tabular-nums;white-space:nowrap}
/* #605: keep the score as the keyboard match link. A native whole-card
 * anchor allows right-click, middle-click and Ctrl/Cmd-click to open a new tab
 * without forcing normal clicks into another tab or nesting team links. */
.app-fixture-match.is-match-link{cursor:pointer;transition:background-color .15s ease,border-color .15s ease}
.app-fixture-match.is-match-link{position:relative}
.app-fixture-native-link{position:absolute;inset:0;z-index:1;display:block}
.app-fixture-match.is-match-link .app-fixture-name,
.app-fixture-match.is-match-link .app-fixture-score-link{position:relative;z-index:2}
html:not([data-fa-fixture-hover-suspended]) .app-fixture-match.is-match-link:hover,
.app-fixture-match.is-match-link:has(.app-fixture-score-link:focus-visible){
 background:color-mix(in srgb,var(--fa-shell-accent) 11%,var(--surface));
 border-color:color-mix(in srgb,var(--fa-shell-accent) 45%,var(--border));
}
.app-fixture-score-link{display:block;color:inherit;text-decoration:none}
.app-fixture-score-link:focus-visible{outline:none}
/* Block pointer use immediately on loading transitions; DOM sync removes the
 * anchor nodes themselves, so keyboard/new-tab navigation is also disabled. */
html[data-fa-standings-loading="true"] :is(.app-fixture-score-link,.app-fixture-native-link,.fa-bracket-match-link){pointer-events:none}
.app-fixture-match.is-match-link:has(.app-fixture-score-link:focus-visible){
 outline:2px solid var(--focus);outline-offset:2px;
}
/* Scrolling removes the hover target, but the existing 150ms transition still
 * fades the accent away. Only reduced-motion users skip this animation. */
@media(prefers-reduced-motion:reduce){.app-fixture-match.is-match-link{transition:none}}
.app-fixture-pending{grid-column:2;justify-self:center;text-align:center}
/* A single pending score occupies the centre track, regardless of surrounding placeholders. */
.app-fixture-score:has(.app-fixture-pending){justify-content:center}
.app-fixture-separator{white-space:normal}
.app-fixture-result{display:flex;flex-direction:column;align-items:center;gap:5px;min-width:0;text-align:center}
.app-fixture-status,.app-fixture-stadium{color:var(--muted);font-size:11px;line-height:1.4;max-width:100%;overflow-wrap:anywhere}
.app-fixture-status{font-weight:650}
.app-fixture-stadium{min-width:0;width:320px;max-width:none;white-space:nowrap}
.app-fixtures-list[hidden]{display:none}
/* Competition Fixtures: compact two-row mobile cards; both hydrated rows
   and the first-paint skeleton share these exact grid tracks and heights. */
@media(max-width:620px){.app-fixture-match{grid-template-columns:minmax(0,1fr) 86px;gap:4px 6px;padding:7px 8px}.app-fixture-club{font-size:12px;gap:6px;min-height:42px}.app-fixture-club .app-world-club-crest-placeholder{flex-basis:36px;width:36px;height:36px}.app-fixture-score{font-size:16px}.app-fixture-name-full{display:none}.app-fixture-name-compact{display:inline}.app-fixture-club-pending{font-size:11px}}
@media(max-width:620px){
 .app-fixture-home{grid-column:1;grid-row:1;flex-direction:row;text-align:left}
 .app-fixture-club:not(.app-fixture-home){grid-column:1;grid-row:2}
 /* The score sits on the exact midline between home and away. Equal flexible
    tracks above/below the score accommodate status and stadium independently,
    both for a loaded match and its first-paint skeleton. */
 .app-fixture-result{grid-column:2;grid-row:1/3;align-self:stretch;display:grid;
  grid-template-rows:minmax(0,1fr) auto minmax(0,1fr);align-items:center;
  justify-items:center;gap:0}
 .app-fixture-result>.app-fixture-status{align-self:end}
 .app-fixture-result>:is(.app-fixture-score,.app-fixture-score-link){align-self:center;justify-self:center}
 .app-fixture-result>.app-fixture-stadium{align-self:start}
 .app-fixture-status,.app-fixture-stadium{font-size:9.5px}
 .app-fixture-stadium{width:auto;max-width:100%;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;white-space:normal;height:2.8em;overflow:hidden}
}
@media(max-width:420px){.app-fixture-match{grid-template-columns:minmax(0,1fr) 78px;gap:4px 5px;padding-inline:7px}.app-fixture-club{gap:5px}.app-fixture-club .app-world-club-crest-placeholder{flex-basis:30px;width:30px;height:30px}}
@media(max-width:360px){.app-fixture-club .app-world-club-crest-placeholder{flex-basis:24px;width:24px;height:24px}}
/* Retain canonical compactNames at 320–620px. The general standings-link
   flex:none/max-content rule must not force the club past its fixture track. */
@media(max-width:620px){
 .app-fixture-club>.app-fixture-name{display:-webkit-box;flex:0 1 auto;width:auto;min-width:0;max-width:100%;
  -webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;
  white-space:normal;overflow-wrap:anywhere}
}

/* Prevent a different view/season flashing before URL state is bound. */
html[data-competition-view="standings"] .app-competition-panel:not(#competition-panel-standings){display:none}
html[data-competition-view="postseason"] .app-competition-panel:not(#competition-panel-postseason){display:none}
html[data-competition-view="fixtures"] .app-competition-panel:not(#competition-panel-fixtures){display:none}
html[data-competition-view="stats"] .app-competition-panel:not(#competition-panel-stats){display:none}
html[data-competition-view="history"] .app-competition-panel:not(#competition-panel-history){display:none}
html[data-competition-view="rules"] .app-competition-panel:not(#competition-panel-rules){display:none}
html[data-competition-view="awards"] .app-competition-panel:not(#competition-panel-awards){display:none}
html[data-competition-view="rewards"] .app-competition-panel:not(#competition-panel-rewards){display:none}
html[data-competition-season-unavailable="true"] .app-competition-panel{display:none}

/* Keep DEV restoration guards effective when a running server has an older injected style. */


/* Statistics and History: shared cards and record layouts. */
/* Single card primitive for Stats/History; variants own only their required height. */
.app-competition-stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.app-competition-stat-card{--fa-record-heading:42px;box-sizing:border-box;display:grid;grid-template-rows:minmax(var(--fa-record-heading),max-content) auto;align-content:start;gap:4px;min-width:0;padding:10px 12px;border:1px solid rgba(128,145,145,.14);border-radius:12px}
.app-competition-stat-label{min-width:0;position:static;margin:0;padding:0;border:0;font-family:inherit;font-size:.875rem;font-weight:700;line-height:1.2;letter-spacing:normal;text-transform:none;color:var(--muted);overflow-wrap:anywhere;hyphens:auto}
.app-competition-stat-card>.app-competition-stat-label{align-self:start;justify-self:stretch}
.app-competition-stat-value{display:block;align-self:start;margin:0;font-size:clamp(1.25rem,2.5vw,1.8rem);line-height:1.25;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.app-competition-stat-card>.app-competition-empty,.app-competition-stat-card>.fa-dev-stats-empty{align-self:start;justify-self:stretch;max-width:100%;margin:0!important;padding:0!important;color:var(--muted);font-size:.78rem;line-height:1.3;text-align:left;opacity:1;overflow-wrap:anywhere}
.app-competition-stat-card--compact{grid-template-rows:minmax(var(--fa-record-heading),max-content) minmax(0,1fr);height:auto;min-height:108px;max-height:none;overflow:visible}
.app-competition-stat-card--compact>.app-competition-stat-label{overflow-wrap:anywhere}
.app-competition-stat-card--fluid{grid-template-rows:minmax(var(--fa-record-heading),max-content) auto;height:auto;min-height:108px;max-height:none;overflow:visible}
.app-competition-empty{font-size:.85rem;opacity:.65}
.app-competition-empty-row{display:block!important;margin:0;font-size:.85rem;opacity:.65;text-align:center;padding:18px 8px!important}
@media(max-width:650px){.app-competition-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.app-competition-stat-card{--fa-record-heading:56px}}
@media(max-width:360px){.app-competition-stat-grid{grid-template-columns:1fr}}

/* Local History follows existing competition rows, identities and standings. */
.app-history-dev,.app-history-empty{display:grid;gap:20px;min-width:0}
.app-history-empty[hidden],.app-history-empty [hidden]{display:none!important}
.app-history-dev [hidden]{display:none!important}
.app-history-dev-section{display:grid;gap:12px;min-width:0;scroll-margin-top:90px}
.app-history-dev-section>h3{margin:0;font-size:.95rem;font-weight:700}
.app-history-record-group{display:grid;gap:12px;min-width:0}
.app-history-record-group>h4{margin:0;font-size:.9rem;font-weight:650}
/* Stats and History use one shared card label slot, padding and typography. */
.app-history-record-group .app-competition-stat-grid{align-items:stretch}
.app-history-record-group .app-competition-stat-card{box-sizing:border-box;height:180px;min-height:180px}
.app-history-record-group .app-competition-stat-card:has(.app-competition-stat-value){min-height:160px}
/* QA-05: shrink actual History grid tracks at every phone width; no page-level clipping. */
@media(max-width:620px){
 #competition-panel-history,
 #competition-panel-history>.app-competition-view-skeleton,
 #competition-panel-history>.app-history-empty,
 #competition-panel-history .app-history-dev,
 #competition-panel-history .app-history-dev-section,
 #competition-panel-history .app-history-record-group,
 #competition-panel-history .app-history-record-group .app-competition-stat-grid,
 #competition-panel-history .app-world-standings{min-width:0;max-width:100%}
 /* Prevent the 160px Season/All-time buttons from determining the grid's min-content width. */
 #competition-panel-history .app-history-empty,
 #competition-panel-history .app-history-dev,
 #competition-panel-history .app-history-dev-section,
 #competition-panel-history .app-history-record-group{grid-template-columns:minmax(0,1fr)}
 #competition-panel-history .app-history-record-controls{box-sizing:border-box;width:100%;min-width:0;max-width:100%}
 #competition-panel-history .app-history-record-controls button{box-sizing:border-box;flex:1 1 0;width:auto;max-width:160px}
 #competition-panel-history .app-competition-stat-grid{grid-template-columns:minmax(0,1fr)}
 #competition-panel-history .app-competition-stat-card{box-sizing:border-box;width:100%;min-width:0;max-width:100%}
 #competition-panel-history .app-history-record-holders,
 #competition-panel-history .app-history-dev-record-entry,
 #competition-panel-history .app-world-club-identity{min-width:0;max-width:100%}
 #competition-panel-history .app-history-dev-record-entry .app-world-club-name{overflow-wrap:anywhere}
}
/* Preserve DEV History's local Safari touch guard without masking page overflow. */
@media(max-width:520px){
 #competition-panel-history #app-history-records{min-width:0;max-width:100%;overflow-x:clip;touch-action:pan-y}
}
.app-history-dev-section>h3:focus-visible{outline:2px solid var(--focus);outline-offset:4px}
.app-history-dev-season{font-size:12px;font-weight:700}
.app-history-dev-archive{list-style:none;margin:0;padding:0}
.app-history-dev-archive li:not(:last-child){border-bottom:1px solid var(--line)}
/* Loaded and loading archive rows share a 72px desktop footprint.
   Real multiline names may still grow instead of being clipped. */
@media(min-width:621px){
 .app-history-dev-archive li{box-sizing:border-box;min-height:72px}
 .app-history-dev-archive .app-history-dev-season-button{min-height:70px;padding-block:10px}
}

.app-history-dev-archive-head,.app-history-dev-season-button{display:grid;grid-template-columns:76px repeat(3,minmax(0,1fr));align-items:center;gap:12px;padding:12px 10px}
.app-history-dev-archive-head{border-bottom:1px solid var(--line);border-radius:12px 12px 0 0;background:#172d30;color:var(--muted);font-size:11px;font-weight:750}
html[data-theme="light"] .app-history-dev-archive-head{background:#E8F1EB;color:#31594A}
.app-history-dev-season-button{width:100%;min-height:46px;box-sizing:border-box;border:0;border-radius:0;background:transparent;color:var(--text);font:inherit;text-align:left;cursor:pointer}
.app-history-dev-archive li:last-child .app-history-dev-season-button{border-radius:0 0 12px 12px}
.app-history-dev-archive li:nth-child(even){background:rgba(100,203,169,.025)}
.app-history-dev-season-button:hover{background:rgba(100,203,169,.075)}
html[data-theme="light"] .app-history-dev-season-button:hover{background:#E7F4EB}
.app-history-dev-archive-club{display:flex;align-items:center;gap:6px;min-width:0;opacity:.82}
.app-history-dev-archive-clubs{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,8.5rem),1fr));flex:1;gap:6px;min-width:0}
.app-history-dev-archive-champion{opacity:1;font-weight:750}
.app-history-dev-archive-champion .app-world-club-name{font-weight:750}
.app-history-dev-archive-champion::before{content:"";display:block;flex:0 0 3px;align-self:stretch;border-radius:5px;background:#69cba9}
.app-history-dev-season-button .app-history-dev-season{font-weight:750}
.app-history-dev-season-button:hover .app-history-dev-season{text-decoration:underline;text-underline-offset:3px}
.app-history-dev-podium-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.app-history-dev button:focus:not(:focus-visible){outline:none;box-shadow:none}
.app-history-dev button:focus-visible{outline:2px solid var(--focus);outline-offset:-2px}
.app-history-dev-record .app-world-club-name{font-size:.85rem;font-weight:650}
.app-history-record-holders{display:grid;align-content:start;gap:8px;min-width:0}
.app-history-record-expand{display:inline-flex;align-items:center;justify-self:start;gap:6px;min-height:28px;min-width:0;padding:2px 0;border:0;background:transparent;color:var(--muted);font:inherit;font-size:.78rem;text-align:left;cursor:pointer}
.app-history-record-expand:hover{color:var(--text);text-decoration:underline;text-underline-offset:3px}
.app-history-record-more-count{font-weight:750;font-variant-numeric:tabular-nums}
.app-history-dev-record-entry{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;min-width:0}
.app-history-records-empty{grid-column:1/-1;padding:12px 2px}
.app-history-dev-record-entry .app-history-dev-season{color:var(--muted);font-weight:400}
.app-history-record-controls{display:flex;justify-content:center;gap:8px;margin:12px 0 16px}
.app-history-dev-records,.app-history-empty .app-competition-stat-grid{align-content:start}
.app-history-record-controls button{display:flex;align-items:center;justify-content:center;flex:0 1 160px;min-width:0;width:160px;padding:11px 8px;border:1px solid rgba(128,145,145,.25);border-radius:8px;background:transparent;color:inherit;font:inherit;font-size:.85rem;text-align:center;cursor:pointer}
.app-history-record-controls button[aria-pressed="true"]{background:#176d61;color:#fff;font-weight:700}
.app-history-record-controls button:focus:not(:focus-visible){outline:none;box-shadow:none}
.app-history-record-controls button:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
[data-history-scope][hidden]{display:none!important}
@media(max-width:620px){
 .app-history-dev-archive-head{display:none}
 .app-history-dev-season-button{grid-template-columns:minmax(0,1fr);gap:8px;padding:12px}
 .app-history-dev-archive-club{width:100%}
 .app-history-dev-archive-champion{padding:4px 0}
 .app-history-dev-archive-club .app-world-club-identity{min-width:0}
 .app-history-dev-podium-label{position:static;width:76px;height:auto;overflow:visible;clip-path:none;flex-shrink:0;color:var(--muted);font-size:10px}
}

/* Keep the current-matchday shortcut beside, not over, mobile round controls. */
@media(max-width:620px){
 .app-fixtures-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:8px}
 .app-fixtures-navigation{grid-column:2;grid-row:1;justify-self:center;min-width:0;z-index:2}
 .app-fixtures-current{position:relative;inset-inline-end:auto;top:auto;grid-column:3;grid-row:1;justify-self:end;align-self:center;flex:0 0 32px;margin:0;z-index:1}
}


/* Populated records retain a 160px minimum, and grow for verified metadata. */
.app-history-player-card{min-height:180px}
.app-history-player-card[data-history-filled="true"]{grid-template-rows:minmax(var(--fa-record-heading),max-content) auto minmax(0,1fr);min-height:160px!important}
.app-history-player-card[data-history-filled="true"] .app-history-player-footer{align-self:end}
.app-history-player-footer{align-self:end}
.app-history-player-footer{display:grid;gap:4px;min-width:0}
.app-history-player-name-row{display:flex;align-items:center;gap:6px;min-width:0}
.app-history-player-name{min-width:0;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;font-size:.86rem;font-weight:650}
.app-history-player-detail,.app-history-player-context-button{font:inherit;color:var(--text);cursor:pointer}
.app-history-player-detail{flex-shrink:0;padding:3px 6px;border:1px solid var(--line);border-radius:7px;background:transparent;font-size:.78rem}
#competition-panel-history .app-history-player-detail:hover{
 border-color:var(--focus);background:rgba(100,203,169,.075);
 color:var(--text);text-decoration:none
}
.app-history-player-context{font-size:.76rem;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.app-history-player-context-button{width:max-content;max-width:100%;padding:0;border:0;background:transparent;text-decoration:underline;text-underline-offset:3px}
.app-history-player-detail:focus-visible,.app-history-player-context-button:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.app-history-player-dialog{box-sizing:border-box;width:min(480px,calc(100vw - 32px));max-height:min(80vh,700px);padding:18px;border:1px solid var(--line);border-radius:14px;background:var(--surface,#172426);color:var(--text);box-shadow:0 14px 48px rgba(0,0,0,.28)}
.app-history-player-dialog::backdrop{background:rgba(0,0,0,.62)}
.app-history-player-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:16px}
.app-history-player-dialog-header h3{margin:0;font-size:1.05rem}
.app-history-player-close{margin-left:auto}
.app-history-player-dialog-value{display:grid;justify-items:center;gap:4px;margin:18px 0;padding:14px;border-radius:10px;background:rgba(100,203,169,.065);font-size:.8rem;color:var(--muted)}
.app-history-player-dialog-value strong{font-size:1.9rem;color:var(--text);font-variant-numeric:tabular-nums}
.app-history-player-holders{list-style:none;padding:0;margin:0;display:grid;gap:0}
.app-history-player-holders>li{padding:6px 0;border-top:1px solid var(--line);min-width:0}
.app-history-player-clubs{list-style:none;margin:0;padding:0;color:var(--muted);font-size:.85rem;display:grid;gap:2px}
/* Club and player record popups use the same compact, centered holder rows. */
.app-history-dialog-player,.app-history-dialog-club{display:flex;align-items:center;gap:8px;min-width:0;width:100%}
.app-history-dialog-player-info,.app-history-dialog-club-info{display:grid;align-content:center;gap:2px;min-width:0;flex:1}
.app-history-dialog-player-info>:is(a,strong){min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* Lower only the club metadata: keep the player name and portrait fixed. */
.app-history-dialog-player-info>.app-history-player-clubs{position:relative;top:4px}
.app-history-dialog-club-info>.app-world-club-name{min-width:0;overflow-wrap:anywhere}
.app-history-dialog-club-seasons{min-width:0;line-height:1.35;color:var(--muted)}
.app-history-dialog-club-seasons .app-history-dev-season-link{min-height:0}
@media(max-width:620px){.app-history-player-dialog{max-height:calc(100dvh - 32px)}}

/* Historical player records show one localized empty state until approved data exists. */
/* Empty Team and Player groups share the same container, baseline, inset and rhythm. */
.app-history-record-group>.app-history-record-empty-state{box-sizing:border-box;display:block;align-self:start;justify-self:stretch;min-width:0;margin:0;padding:14px 2px;font-family:inherit;font-size:.85rem;font-weight:400;line-height:1.45;color:var(--muted);text-align:left}
.app-history-record-group .app-competition-stat-grid[hidden]{display:none!important}
@media(max-width:620px){
 .app-history-record-holders{gap:6px}
 .app-history-dev-archive-club .app-world-club-name{overflow-wrap:anywhere}
}
@media(max-width:360px){
 .app-history-dev-season-button{padding:10px}
 .app-history-record-controls{gap:6px}
 .app-history-record-controls button{padding:10px 6px}
}

/* Known crests reserve a blank loading slot; absent/failed crests use the placeholder. */
.app-world-mobile-name{display:flex;align-items:center;gap:7px}
.app-world-mobile-name>.app-world-club-crest-placeholder{flex-shrink:0}
.app-world-mobile-club-name{min-width:0;overflow-wrap:anywhere}
.app-club-crest-image{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;display:block;visibility:hidden}
html .app-world-club-crest-placeholder[data-club-crest-pending="true"],
html .app-world-club-crest-placeholder[data-club-crest-loaded="true"]{border-color:transparent;background:transparent}
.app-world-club-crest-placeholder[data-club-crest-pending="true"]::before,
.app-world-club-crest-placeholder[data-club-crest-loaded="true"]::before{display:none}
/* PAGE-LOAD-04 B02: one crest loading primitive for Standings, Clubs,
   Fixtures and Stats. Geometry is set by each containing slot. */
/* This loading token is independent of the responsive postseason bracket rules. */
:root{--fa-crest-skeleton-fill:color-mix(in srgb,var(--muted) 12%,var(--surface))}
.app-world-club-crest-placeholder.fa-crest-loading,
#competition-panel-fixtures .app-fixtures-skeleton-crest{display:grid;place-items:center}
.app-world-club-crest-placeholder.fa-crest-loading::before,
.app-world-club-crest-placeholder.fa-crest-loading[data-club-crest-pending="true"]::before,
#competition-panel-fixtures .app-fixtures-skeleton-crest::before{
 content:"";display:block;width:85%;height:auto;aspect-ratio:1;border-radius:50%;
 clip-path:none;background:var(--fa-crest-skeleton-fill);opacity:1;
}
.app-world-club-crest-placeholder.fa-crest-loading[data-club-crest-loaded="true"]::before{display:none}
.app-world-club-crest-placeholder.fa-crest-loading[data-club-crest-fallback="true"]::before{
 display:block;width:85%;height:90%;aspect-ratio:auto;border-radius:0;
 clip-path:var(--fa-crest-shield-shape);background:var(--fa-crest-shield-fill);opacity:.78;
}

/* Respect hidden standings while DEV prepares the reordered rows on refresh. */
.app-world-club-crest-placeholder[data-club-crest-loaded="true"]>.app-club-crest-image{visibility:inherit}

/* Standings bands mirror the Rules palette and retain the existing points column. */
[data-standing-outcome="champion"],.app-rules-outcome[data-outcome="champion"]{--standing-outcome-color:#D4AF37}
[data-standing-outcome="sovereign"]{--standing-outcome-color:#6B8FE3}
[data-standing-outcome="federation"]{--standing-outcome-color:#8D72C8}
[data-standing-outcome="promoted"],.app-rules-outcome[data-outcome="promoted"]{--standing-outcome-color:#31966B}
[data-standing-outcome="quarterfinals"],.app-rules-outcome[data-outcome="quarterfinals"]{--standing-outcome-color:#31966B}
[data-standing-outcome="playoff"],.app-rules-outcome[data-outcome="playoff"]{--standing-outcome-color:#4A8FD8}
[data-standing-outcome="playout"],.app-rules-outcome[data-outcome="playout"]{--standing-outcome-color:#D98A32}
[data-standing-outcome="relegated"],.app-rules-outcome[data-outcome="relegated"]{--standing-outcome-color:#C75C61}
html[data-theme] .app-world-standing-table tbody tr[data-standing-outcome]>*:not(:nth-child(10)){background:color-mix(in srgb,var(--surface) 92%,var(--standing-outcome-color) 8%)}
html[data-theme] .app-world-standing-table tbody tr[data-standing-outcome]>:first-child{box-shadow:inset 3px 0 var(--standing-outcome-color)}
/* Ranked-row outcome bands must not suppress keyboard focus highlighting. */
@media(min-width:621px){
 html[data-theme] .app-world-standing-table tbody tr[data-standing-outcome]:focus-within>*:not(:nth-child(10)){background:rgba(100,203,169,.075)}
 html[data-theme="light"] .app-world-standing-table tbody tr[data-standing-outcome]:focus-within>*:not(:nth-child(10)){background:#E7F4EB}
}
.app-world-mobile-item[data-standing-outcome]{box-shadow:inset 3px 0 var(--standing-outcome-color);background:color-mix(in srgb,var(--surface) 92%,var(--standing-outcome-color) 8%)}
.app-standings-legend{margin-top:12px;padding:12px 14px;border:1px solid var(--line);border-radius:10px;color:var(--text);font-size:12px;line-height:1.5}
.app-standings-legend p{margin:0 0 8px;font-weight:750}
.app-standings-legend ul{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr));gap:8px 20px;list-style:none;margin:0;padding:0}
.app-standings-legend li{display:flex;align-items:center;gap:8px;min-width:0}
.app-standings-legend-label{display:grid;grid-template-columns:max-content minmax(0,1fr);align-items:baseline;gap:8px;min-width:0;overflow-wrap:anywhere}
.app-standings-legend-range{font-variant-numeric:tabular-nums;white-space:nowrap;text-align:start}
.app-standings-legend-swatch{flex:none;width:12px;height:12px;border-radius:3px;background:var(--standing-outcome-color)}
@media(max-width:620px){.app-standings-legend ul{gap:8px}.app-standings-legend{padding:10px}}

/* Postseason bracket: responsive card tracks and first-paint connections. */
/* Keep at least ~260px per card including the 14px gap: 540/820/1100px container widths. */
/* Every connector is anchored to its source round; row-wrapped rounds never connect. */
.fa-bracket-layout{container-type:inline-size;overflow-x:auto}
.fa-bracket-board{position:relative;display:grid;grid-template-columns:minmax(0,1fr);gap:20px 14px;width:100%;min-width:0}
.fa-bracket-board[data-bracket-columns="1"]{max-width:520px}
.fa-bracket-board[data-bracket-columns="2"]{max-width:974px}
.fa-bracket-board[data-bracket-columns="3"]{max-width:1468px}
.fa-bracket-board[data-bracket-columns="4"]{max-width:1962px}
.fa-bracket-links{display:none;position:absolute;top:0;inset-inline-start:100%;width:14px;height:auto;overflow:visible;pointer-events:none;fill:none;stroke:var(--border);stroke-width:1}
@container (min-width:540px){
 .fa-bracket-board[data-bracket-columns="2"],.fa-bracket-board[data-bracket-columns="3"],.fa-bracket-board[data-bracket-columns="4"]{grid-template-columns:repeat(2,minmax(0,1fr))}
 .fa-bracket-board .fa-bracket-links[data-bracket-layout="2"]{display:block}
}
@container (min-width:820px){
 .fa-bracket-board[data-bracket-columns="3"]{grid-template-columns:repeat(3,minmax(0,1fr))}
 .fa-bracket-board[data-bracket-columns="3"] .fa-bracket-links[data-bracket-layout="2"]{display:none}
 .fa-bracket-board[data-bracket-columns="3"] .fa-bracket-links[data-bracket-layout="3"]{display:block}
}
@container (min-width:1100px){
 .fa-bracket-board[data-bracket-columns="4"]{grid-template-columns:repeat(4,minmax(0,1fr))}
 .fa-bracket-board[data-bracket-columns="4"] .fa-bracket-links[data-bracket-layout="2"]{display:none}
 .fa-bracket-board[data-bracket-columns="4"] .fa-bracket-links[data-bracket-layout="4"]{display:block}
}
.fa-bracket-round{position:relative;display:grid;grid-template-rows:32px 1fr;min-width:0;gap:10px}
.fa-bracket-round>h3{display:grid;place-items:center;min-height:28px;margin:0;padding:4px 6px;border-radius:4px;background:color-mix(in srgb,var(--surface) 70%,var(--border) 30%);color:var(--text);font-size:11px;font-weight:750;line-height:1.25;letter-spacing:.03em;text-align:center;text-transform:uppercase}
.fa-bracket-ties{display:grid;grid-auto-rows:1fr;gap:8px}
.fa-bracket-tie{--fa-bracket-score-inset:18px;min-width:0;height:138px;align-self:center}
.fa-bracket-card{--fa-bracket-score-width:26px;box-sizing:border-box;height:120px;display:grid;grid-template-rows:repeat(2,1fr);padding-inline-start:10px;padding-inline-end:calc(var(--fa-bracket-score-inset) - 1px);border:1px solid var(--border);border-radius:5px;background:var(--surface)}
.fa-bracket-row{display:grid;grid-template-columns:minmax(0,1fr) repeat(2,var(--fa-bracket-score-width));align-items:center;gap:4px;min-height:0}
.fa-bracket-single{grid-template-columns:minmax(0,1fr) var(--fa-bracket-score-width)}
.fa-bracket-row+.fa-bracket-row{border-top:1px solid var(--line)}
.fa-bracket-identity{min-width:0}
.fa-bracket-team{--fa-bracket-crest-size:28px;display:flex;align-items:center;gap:8px;min-width:0;color:var(--text);font-size:15px;line-height:1.4;white-space:nowrap}
.fa-bracket-team>:last-child{min-width:0;overflow:hidden;text-overflow:ellipsis}
.fa-bracket-team>strong{flex:none}
.fa-bracket-team .app-world-club-crest-placeholder,
html[data-fa-standings-loading="true"] .fa-bracket-team:not(:has([data-club-crest]))::before{flex:0 0 var(--fa-bracket-crest-size);width:var(--fa-bracket-crest-size);height:var(--fa-bracket-crest-size)}
html[data-fa-standings-loading="true"] .fa-bracket-team:not(:has([data-club-crest]))>*{display:none}
html[data-fa-standings-loading="true"] .fa-bracket-team:not(:has([data-club-crest]))::before,
html .fa-bracket-team .app-world-club-crest-placeholder[data-club-crest-pending="true"]{border-radius:50%;background:color-mix(in srgb,var(--muted) 12%,var(--surface))}
html[data-fa-standings-loading="true"] .fa-bracket-team:not(:has([data-club-crest]))::before{content:""}
html[data-fa-standings-loading="true"] .fa-bracket-team:not(:has([data-club-crest]))::after{content:"";flex:0 1 112px;min-width:0;height:13px;border-radius:4px;background:color-mix(in srgb,var(--muted) 22%,var(--surface))}
.fa-bracket-score{box-sizing:border-box;display:grid;place-items:center;inline-size:var(--fa-bracket-score-width);block-size:28px;border:1px solid var(--line);border-radius:4px;background:color-mix(in srgb,var(--surface) 86%,var(--muted) 14%);color:var(--text);font-size:14px;font-variant-numeric:tabular-nums;text-align:center;pointer-events:none;transition:background-color .15s ease,border-color .15s ease}
.fa-bracket-row[data-postseason-winner="true"] .fa-bracket-team{font-weight:750}
.fa-bracket-row[data-postseason-winner="true"] .fa-bracket-score{color:var(--focus)}
.fa-bracket-resolution{margin:2px 0 0;margin-inline-end:var(--fa-bracket-score-inset);color:var(--muted);font-size:12px;line-height:1.3;text-align:end}
.fa-bracket-resolution strong{margin-inline-start:5px;color:var(--text)}

.app-fixture-stage{list-style:none;margin:14px 0 2px}
.app-fixture-stage h3{margin:0;font-size:14px;line-height:1.5;color:var(--muted)}

.app-fixtures-picker [hidden]{display:none}
\n/* CAL-IMP-03: inline event details, never an overlay. */\n.calendar-details{min-width:0;margin-top:20px;padding-top:18px;border-top:1px solid var(--line)}\n.calendar-details h3{margin:0 0 14px;font-size:18px}\n.calendar-details-content{display:grid;gap:12px;min-width:0}\n.calendar-detail-card{min-width:0;padding:16px;border:1px solid var(--line);border-radius:10px;background:var(--surface)}\n.calendar-detail-card h4{margin:0 0 8px;font-size:15px;overflow-wrap:anywhere}\n.calendar-detail-summary,.calendar-details-empty{margin:0;color:var(--muted);font-size:13px;line-height:1.6}\n.calendar-detail-disclosure{margin-top:12px;font-size:13px}\n.calendar-detail-disclosure>summary{cursor:pointer;font-weight:700;list-style-position:inside;min-height:32px}\n.calendar-detail-disclosure>summary:focus-visible{outline:2px solid var(--focus);outline-offset:3px}\n.calendar-detail-more{padding-top:8px;color:var(--muted);overflow-wrap:anywhere}\n.calendar-detail-more p{margin:4px 0}\n@media(prefers-reduced-motion:reduce){.calendar-details *{scroll-behavior:auto;transition:none!important}}\n
/* Compact standings and accessible club links. */
.app-world-standing-club-link{color:inherit;text-decoration:none;text-underline-offset:3px}
.app-world-standing-club-link:hover,.app-world-standing-club-link:focus-visible{text-decoration:underline}
.app-world-standing-club-link:focus-visible{outline:2px solid var(--focus);outline-offset:2px;border-radius:2px}

/* Align linked History seasons with club identities in record rows. */
#competition-panel-history .app-history-dev-record-entry{align-items:center}
#competition-panel-history .app-history-dev-record-entry .app-world-club-identity{align-items:center}
#competition-panel-history .app-history-dev-season-link{display:inline-flex;align-items:center;min-height:24px;line-height:1.35;white-space:nowrap;color:var(--muted)}
#competition-panel-history .app-history-dev-season-link:hover,#competition-panel-history .app-history-dev-season-link:focus-visible{color:var(--text)}

/* History record: crest in its own column, club name and season on one text baseline. */
#competition-panel-history :is(.app-history-player-footer,.app-view-skeleton-record-holder),#competition-panel-history .app-history-dev-record-entry:has(.app-history-dev-season-link){display:grid;grid-template-columns:48px minmax(0,1fr) max-content;column-gap:8px;align-items:center}
#competition-panel-history .app-history-dev-record-entry:has(.app-history-dev-season-link)>.app-world-club-identity{display:contents}
#competition-panel-history .app-history-dev-record-entry:has(.app-history-dev-season-link) .app-world-club-crest-placeholder{grid-column:1;grid-row:1}
#competition-panel-history .app-history-dev-record-entry:has(.app-history-dev-season-link) .app-world-club-name{grid-column:2;grid-row:1;min-width:0;line-height:1.35}
#competition-panel-history .app-history-dev-record-entry:has(.app-history-dev-season-link) .app-history-dev-season-link{grid-column:3;grid-row:1;min-height:0;align-self:center}
@media(max-width:620px){
 #competition-panel-history :is(.app-history-player-footer,.app-view-skeleton-record-holder),#competition-panel-history .app-history-dev-record-entry:has(.app-history-dev-season-link){grid-template-columns:40px minmax(0,1fr) minmax(0,auto);column-gap:6px}
 #competition-panel-history .app-history-dev-season-link{min-width:0;white-space:normal;overflow-wrap:anywhere}
 #competition-panel-history .app-history-dev-archive .app-world-club-identity .app-world-club-name{width:auto;max-width:100%;min-width:0;white-space:normal;overflow-wrap:anywhere}
}

/* Country flags: shared 5:4 slots; source SVG owns its native rounded mask. */
.app-world-flag-frame{overflow:visible;border-radius:0;clip-path:none}
.app-world-flag{border-radius:0;clip-path:none;object-fit:contain}
/* Navigation targets follow glyph bounds, not grid/flex column widths. */
.app-world-standing-club-link{display:inline;width:max-content;max-width:100%;align-self:center;justify-self:start;flex:none;min-height:0;padding:0;border:0;background:transparent;box-shadow:none}
.app-history-dev-season-button{cursor:default}
.app-history-dev-season-button:hover{background:transparent}
.app-history-dev-archive .app-history-dev-season-link{display:inline-flex;justify-self:start;align-self:center;min-height:0;white-space:nowrap}
/* Archive identities reserve crest space so text links cannot overflow narrow desktop columns. */
.app-history-dev-archive .app-world-club-identity{display:grid;grid-template-columns:48px minmax(0,1fr);flex:1;min-width:0}
.app-history-dev-archive .app-world-club-identity .app-world-club-name{display:inline;width:max-content;max-width:100%}
@media(max-width:620px){.app-history-dev-archive .app-world-club-identity{grid-template-columns:40px minmax(0,1fr)}}
.app-history-dev-archive .app-history-dev-season-button:hover .app-history-dev-season{text-decoration:none}
.app-history-dev-archive .app-history-dev-season-link:hover .app-history-dev-season,.app-history-dev-archive .app-history-dev-season-link:focus-visible .app-history-dev-season{text-decoration:none}
/* CAL-IMP-04 */
.calendar-detail-card a{display:inline-block;margin-top:10px;overflow-wrap:anywhere}

/* CAL-IMP-05A: read-only clock status, never a game-advance control. */
.calendar-clock{display:flex;flex-wrap:wrap;align-items:center;gap:10px;min-width:0;margin:12px 0;padding:12px;border:1px solid currentColor;border-radius:9px}
.calendar-clock #calendar-clock-source{font-size:12px;opacity:.76}
.calendar-clock input{max-width:160px}
.calendar-days [data-clock-relative="current"]{outline:2px solid currentColor;outline-offset:-2px}
@media(max-width:620px){.calendar-clock{flex-direction:column;align-items:stretch}.calendar-clock input{width:100%;max-width:none}}

/* Calendar: current simplified layout, controls and event dialogs. */
/* CAL-SIMPLE-01: full-width calendar; compact season and event dialog. */
.world-calendar{width:100%;max-width:none}
#world-calendar>.calendar-heading,#world-calendar>.calendar-clock,#world-calendar>.calendar-details,#world-calendar>.calendar-selected,#world-calendar>.calendar-note{display:none!important}
.calendar-season-picker{display:flex;align-items:center;justify-content:center;gap:10px;margin:0 0 16px;font-weight:700}
.calendar-season-picker select{border:1px solid var(--line);border-radius:9px;padding:9px 30px 9px 12px;background:var(--surface);color:var(--text);font:inherit;cursor:pointer}
.calendar-event{cursor:pointer}
.calendar-event:hover{filter:brightness(1.23);outline:none;outline-offset:0}
@media(hover:none),(pointer:coarse){.calendar-event:hover{filter:none;outline:none}.calendar-marker-tooltip{display:none!important}}
.calendar-event:focus-visible{filter:brightness(1.23);outline:2px solid var(--focus);outline-offset:1px}
.calendar-event-dialog{width:min(560px,calc(100vw - 28px));max-height:85dvh;margin:auto;padding:0;border:0;border-radius:14px;background:var(--surface);color:var(--text);box-shadow:0 24px 70px #0008;animation:calendar-popup-in .2s ease both}
.calendar-event-dialog::backdrop{background:#0009;animation:calendar-backdrop-in .2s ease both}
.calendar-event-panel{padding:24px;position:relative}
.calendar-event-close{position:absolute;right:12px;top:12px;border:1px solid var(--line);border-radius:8px;background:transparent;color:inherit;font-size:24px;width:38px;height:38px;cursor:pointer}
.calendar-event-panel h2{margin:4px 40px 12px 0;font-size:20px}
.calendar-event-panel p{line-height:1.6;color:var(--muted)}
@keyframes calendar-popup-in{from{opacity:0;transform:translateY(12px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes calendar-backdrop-in{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){.calendar-event-dialog,.calendar-event-dialog::backdrop{animation:none}}

/* CAL-SIMPLE-02: no persistent day selection, legend, or divider. */
#world-calendar>.calendar-key{display:none!important}
#world-calendar{border:0;border-radius:0;padding:0;background:transparent}
.calendar-day[aria-pressed="true"],html[data-calendar-ready="true"] .calendar-day[aria-pressed="true"]{border-color:var(--line);background:transparent;box-shadow:none}
.calendar-day:hover{background:rgba(91,142,121,.10)}
.calendar-marker-tooltip{position:fixed;z-index:2147482000;max-width:min(330px,calc(100vw - 20px));padding:9px 13px;border:1px solid var(--border);border-radius:9px;background:var(--surface);color:var(--text);box-shadow:0 12px 30px #0007;pointer-events:none;animation:calendar-tooltip-in .16s ease both;font-size:12px;font-weight:700}
@keyframes calendar-tooltip-in{from{opacity:0;transform:translateY(5px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(prefers-reduced-motion:reduce){.calendar-marker-tooltip{animation:none}}

/* World-day progress is global DEV state, not a selected calendar tile. */
.calendar-days [data-clock-relative="current"]{outline:0!important;box-shadow:none!important}

/* CAL-SIMPLE-03: season selector top right, DEV current world day marker. */
#world-calendar .calendar-day[data-dev-current-day="true"]{border:2px solid var(--focus)!important;background:rgba(91,142,121,.14)!important;box-shadow:inset 0 0 0 1px var(--focus)!important}
.calendar-event--postseason{background:#274A80;color:#E8F1FF}
html[data-theme="light"] .calendar-event--postseason{background:#D9E6F9;color:#224A7C}

/* CAL-SIMPLE-04: constant day tile dimensions independent of marker count/current highlight. */
#world-calendar .calendar-week-row{align-items:stretch}
#world-calendar .calendar-day{box-sizing:border-box;height:96px;min-height:96px;max-height:96px;border-width:2px;overflow:hidden}
#world-calendar .calendar-day-events{min-height:36px;justify-content:flex-start}
@media(max-width:620px){#world-calendar .calendar-day{height:82px;min-height:82px;max-height:82px}}
html[data-calendar-view="week"] #world-calendar .calendar-day{height:76px;min-height:76px;max-height:76px}

/* CAL-REFINE-01/04: Fixtures-aligned controls, canonical season positioning and hover. */
#app-calendar{position:relative}
#app-calendar>.calendar-season-picker{position:absolute;inset-inline-end:0;top:0;margin:0;display:flex;align-items:center;gap:8px;z-index:12}
#app-calendar>.app-page-title{padding-inline-end:130px}
#app-calendar>.calendar-season-picker .language-control{width:88px;min-width:88px;max-width:88px}
#app-calendar>.calendar-season-picker .language-trigger{box-sizing:border-box;width:100%;min-width:0;height:44px;min-height:44px;padding:8px 10px}
#app-calendar>.calendar-season-picker .language-menu{width:100%;min-width:0}
#world-calendar .calendar-heading,#world-calendar .calendar-clock,
#world-calendar .calendar-key,#world-calendar .calendar-selected,#world-calendar .calendar-note,
#world-calendar .calendar-details{display:none!important}
#world-calendar>.calendar-toolbar{display:flex;justify-content:flex-start;align-items:center}
#world-calendar #calendar-controls{align-items:center;justify-content:center;gap:4px;margin:0 0 16px;max-width:100%;min-width:0}
html[data-calendar-view="season"] #world-calendar #calendar-controls,
#world-calendar #calendar-controls[hidden]{display:none!important}
html[data-calendar-view="week"] #world-calendar #calendar-controls:not([hidden]){display:flex}
#world-calendar #calendar-controls:not(.app-fixtures-navigation){visibility:hidden;pointer-events:none}
#world-calendar #calendar-controls.app-fixtures-navigation{visibility:visible}
#world-calendar #calendar-controls #calendar-previous,
#world-calendar #calendar-controls #calendar-next{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:0 0 32px;box-sizing:border-box;width:32px;min-width:32px;height:32px;min-height:32px;padding:0;border-radius:9px}
#world-calendar #calendar-controls #calendar-previous{order:0}
#world-calendar #calendar-controls .app-fixtures-select{position:relative;flex:0 0 88px;width:88px;min-width:88px;max-width:88px;order:1}
#world-calendar #calendar-controls #calendar-week-trigger{box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:100%;min-width:0;max-width:100%;height:32px;min-height:32px;padding:4px 7px;gap:3px;font-size:12px}
#world-calendar #calendar-controls #calendar-next{order:2}
#world-calendar #calendar-controls #calendar-current-week{order:3;position:static;display:inline-flex;align-items:center;justify-content:center;min-width:32px;height:32px;min-height:32px;gap:6px;padding:5px 8px;font-size:12px}
#world-calendar #calendar-controls #calendar-current-week[hidden],
#world-calendar #calendar-controls #calendar-week-menu[hidden]{display:none!important}
#world-calendar #calendar-controls .language-menu{z-index:25}
#world-calendar #calendar-controls #calendar-week-menu{box-sizing:border-box;width:88px;min-width:88px;max-width:88px;max-height:260px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--muted) transparent}
#world-calendar #calendar-controls #calendar-week-menu .language-option{box-sizing:border-box;display:flex;align-items:center;min-height:32px;height:32px;padding:0 8px;font-size:12px}
#world-calendar #calendar-controls #calendar-week-menu::-webkit-scrollbar{width:5px}
#world-calendar #calendar-controls #calendar-week-menu::-webkit-scrollbar-thumb{background:var(--muted);border-radius:6px}
#world-calendar #calendar-controls #calendar-week-menu::-webkit-scrollbar-track{background:transparent}
#world-calendar #calendar-controls :is(#calendar-previous,#calendar-next,#calendar-week-trigger,#calendar-current-week):not(:disabled){cursor:pointer;opacity:1;transform:none;transition:background-color .18s ease,border-color .18s ease,color .18s ease}
#world-calendar #calendar-controls #calendar-previous:not(:disabled):hover,
#world-calendar #calendar-controls #calendar-next:not(:disabled):hover,
#world-calendar #calendar-controls #calendar-week-trigger:not(:disabled):hover,
#world-calendar #calendar-controls #calendar-current-week:not(:disabled):not([hidden]):hover{background:rgba(91,142,121,.18);border-color:var(--border);box-shadow:none;transform:none}
#world-calendar #calendar-controls #calendar-previous:disabled,
#world-calendar #calendar-controls #calendar-next:disabled{opacity:.45;cursor:default;pointer-events:none;transform:none;transition:none;box-shadow:none}
#world-calendar #calendar-controls :is(button,[role="option"]):focus-visible{outline:2px solid var(--focus);outline-offset:2px}
@media(max-width:1000px){#world-calendar #calendar-controls #calendar-current-week{width:32px;min-width:32px;padding:0}#world-calendar #calendar-controls #calendar-current-week span{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}}
@media(prefers-reduced-motion:reduce){#world-calendar #calendar-controls button{transition:none!important}}

/* CAL-REFINE-05/06: accessible marker and event-dialog focus states. */
#world-calendar .calendar-event:focus-visible,.calendar-event-close:focus-visible{outline:2px solid var(--focus);outline-offset:3px}
.calendar-event-dialog[open] .calendar-event-panel{overflow-wrap:anywhere}
@media(max-width:620px){.calendar-event-panel{padding:18px}.calendar-event-dialog{max-height:calc(100dvh - 28px)}}

/* CAL-UX-10: no first-paint relocation of Week controls; matching neutral controls. */
/* Week navigation is present at its final position in the HTML; no readiness hide. */
#world-calendar #calendar-controls #calendar-previous,
#world-calendar #calendar-controls #calendar-next{background:var(--surface);color:var(--text);border:1px solid var(--line);box-shadow:none}
#world-calendar #calendar-controls #calendar-previous:disabled,
#world-calendar #calendar-controls #calendar-next:disabled{background:var(--surface)!important;color:var(--muted)!important;border-color:var(--line)!important;filter:none!important;transform:none!important;animation:none!important;transition:none!important;box-shadow:none!important}
#world-calendar #calendar-controls #calendar-current-week{margin-inline-start:auto}
#world-calendar #calendar-controls{width:100%;position:relative;justify-content:center!important}
#world-calendar #calendar-controls #calendar-current-week{position:absolute!important;inset-inline-end:0;top:0}
/* Mirror search modal structure and close control across light/dark themes. */
.calendar-event-dialog.app-search-dialog{width:min(520px,calc(100vw - 28px));max-width:520px;max-height:min(78dvh,560px);background:transparent;overflow:visible}
.calendar-event-dialog .calendar-event-panel.app-search-panel{position:relative;display:block;max-height:min(78dvh,560px);overflow-y:auto;padding:24px 22px;background:#142b2e;color:#f2f7f4;border:1px solid #385451;border-radius:12px}
.calendar-event-dialog .calendar-event-panel.app-search-panel h2{color:#f2f7f4}
.calendar-event-dialog .calendar-event-close.app-search-close{position:absolute;right:10px;top:10px;display:grid;place-items:center;width:36px;height:36px;padding:0;border:0;border-radius:8px;background:transparent;color:#c8d8d0}
.calendar-event-dialog .calendar-event-close.app-search-close:hover{background:#244040}
.calendar-event-dialog::backdrop{background:rgba(5,12,17,.65)}
@media(max-width:620px){.calendar-event-dialog .calendar-event-panel.app-search-panel{padding:18px}}

/* CAL-UX-11: search-equivalent close animation and Escape return focus. */
.calendar-event-dialog.app-search-dialog::backdrop{animation:app-search-backdrop-in 160ms ease-out both}
.calendar-event-dialog.app-search-dialog .calendar-event-panel.app-search-panel{animation:app-search-in 160ms ease-out both}
.calendar-event-dialog.app-search-dialog.is-closing::backdrop{animation:app-search-backdrop-out 150ms ease-in both}
.calendar-event-dialog.app-search-dialog.is-closing .calendar-event-panel.app-search-panel{animation:app-search-out 150ms ease-in both}
.calendar-day.app-search-escape-return:focus-visible{outline:none!important}
@media(prefers-reduced-motion:reduce){.calendar-event-dialog.app-search-dialog::backdrop,.calendar-event-dialog.app-search-dialog .calendar-event-panel.app-search-panel,.calendar-event-dialog.app-search-dialog.is-closing::backdrop,.calendar-event-dialog.app-search-dialog.is-closing .calendar-event-panel.app-search-panel{animation:none!important}}

/* CAL-UX-12: Week selector adopts the existing arrow-box border; arrow rules are unchanged. */
#world-calendar #calendar-controls #calendar-week-trigger{
 border:1px solid var(--line)!important;border-radius:9px;background:var(--surface);box-shadow:none
}
#world-calendar .calendar-day.app-search-escape-return:focus-visible{outline:none!important;box-shadow:none!important}
.calendar-event-dialog.app-search-dialog:focus{outline:none}
.calendar-event-dialog .calendar-event-close.app-search-close:focus:not(:focus-visible){outline:none;box-shadow:none}

/* CAL-UX-13: match arrow hover border; normal Week border stays --line. */
#world-calendar #calendar-controls #calendar-week-trigger:is(:hover,:active):not(:disabled){border-color:var(--border)!important}

/* FIXTURES-BORDER-01: Matchday and arrows follow Calendar Week normal/hover border. */
.app-fixtures-navigation :is(.app-fixtures-trigger,.app-fixtures-arrow):not(#calendar-week-trigger):not(#calendar-previous):not(#calendar-next){border:1px solid var(--line)!important;border-radius:9px}
.app-fixtures-navigation :is(.app-fixtures-trigger,.app-fixtures-arrow):not(#calendar-week-trigger):not(#calendar-previous):not(#calendar-next):is(:hover,:active):not(:disabled){border-color:var(--border)!important}

/* CAL-POPUP-01 Essential: event code + localized meaning only. */
.calendar-event-dialog #calendar-event-dialog-subtitle[hidden]{display:none!important}
.calendar-event-dialog #calendar-event-dialog-details{display:grid;gap:10px}
.calendar-event-dialog .calendar-event-summary{display:flex;align-items:center;gap:14px;min-width:0}
.calendar-event-dialog .calendar-event-code{display:flex;align-items:center;justify-content:center;flex:0 0 68px;min-height:44px;box-sizing:border-box;padding:8px;border:1px solid #385451;border-radius:9px;background:#244040;color:#f2f7f4;font-size:15px;font-weight:750;overflow-wrap:anywhere;text-align:center}
.calendar-event-dialog .calendar-event-description{min-width:0;color:#f2f7f4;font-size:14px;font-weight:600;overflow-wrap:anywhere}

/* CAL-POPUP-01: reuse calendar marker palette; finals have a dedicated gold. */
.calendar-event-dialog .calendar-event-code[data-event-type="national"]{background:#21483D;color:#C7EBDD;border-color:#21483D}
.calendar-event-dialog .calendar-event-code[data-event-type="international"]{background:#393650;color:#E8E0FF;border-color:#393650}
.calendar-event-dialog .calendar-event-code[data-event-type="postseason"]{background:#274A80;color:#E8F1FF;border-color:#274A80}
.calendar-event-dialog .calendar-event-code[data-event-type="final"]{background:#B58A36;color:#17130A;border-color:#B58A36}
html[data-theme="light"] .calendar-event-dialog .calendar-event-code[data-event-type="national"]{background:#DFEDE5;color:#1E543B;border-color:#C5DBCD}
html[data-theme="light"] .calendar-event-dialog .calendar-event-code[data-event-type="international"]{background:#EEE8F8;color:#51426C;border-color:#D6CCEA}
html[data-theme="light"] .calendar-event-dialog .calendar-event-code[data-event-type="postseason"]{background:#D9E6F9;color:#224A7C;border-color:#BDD1F0}
html[data-theme="light"] .calendar-event-dialog .calendar-event-code[data-event-type="final"]{background:#F1D99A;color:#624513;border-color:#D6B45B}

/* CAL-FINAL-MARKER-01: gold final markers in the Calendar grid. */
#world-calendar .calendar-event--final{background:#B58A36;color:#17130A}
html[data-theme="light"] #world-calendar .calendar-event--final{background:#F1D99A;color:#624513}

/* CLUBS-LAYOUT-02G: center chevrons in Fixtures arrow buttons. */
.app-fixtures-navigation .app-fixtures-arrow{display:inline-grid;place-items:center;align-content:center;justify-content:center;line-height:0}
.app-fixtures-navigation .app-fixtures-arrow>.site-chevron,.app-fixtures-navigation .app-fixtures-arrow>svg{display:block;margin:0;flex:none}

/* Center directional SVGs geometrically in all Calendar/Fixtures arrow boxes. */
.calendar-arrow:has(> .site-chevron),.app-fixtures-navigation .app-fixtures-arrow:has(> .site-chevron){position:relative}
.calendar-arrow> .site-chevron,.app-fixtures-navigation .app-fixtures-arrow> .site-chevron{position:absolute;inset-block-start:50%;inset-inline-start:50%;translate:-50% -50%;margin:0;flex:none;display:block}

/* Align the entire icon viewport to the arrow box, including mixed language-trigger buttons. */
.calendar-arrow:has(>svg.site-chevron),.app-fixtures-navigation .app-fixtures-arrow:has(>svg.site-chevron){position:relative;box-sizing:border-box;padding:0!important}
.calendar-arrow>svg.site-chevron,.app-fixtures-navigation .app-fixtures-arrow>svg.site-chevron{position:absolute;inset:0;margin:auto;width:20px;height:20px;translate:none;display:block;flex:none}
/* Original 20x20 chevron path spans y=7..12: shift the path 0.5px to its optical center before rotation. */
svg.site-chevron>path{translate:0 .5px}
/* Competition statistics: totals, leaders and detail dialogs. */
/* Shared competition statistics: preserved presentation from the protected adapter. */
.fa-dev-stats-nav{display:flex;justify-content:center;gap:8px;margin-bottom:16px}
.fa-dev-stats-nav button{display:flex;align-items:center;justify-content:center;flex:0 1 132px;min-width:0;width:132px;max-width:33%;padding:11px 8px;border:1px solid rgba(128,145,145,.25);border-radius:8px;background:transparent;color:inherit;text-align:center}
.fa-dev-stats-nav button[aria-pressed=true]{background:#176d61;color:#fff;font-weight:700}
.fa-dev-stats-nav button:focus:not(:focus-visible){outline:none;box-shadow:none}
.fa-dev-stats-nav button:focus-visible{outline:2px solid currentColor;outline-offset:2px}
.fa-dev-stats-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.fa-dev-stats-card.app-competition-stat-card--compact{display:grid;grid-template-rows:minmax(var(--fa-record-heading),max-content) 50px;gap:4px;min-width:0;padding:10px 12px;border:1px solid rgba(128,145,145,.14);border-radius:12px}
.fa-dev-stats-card strong{display:block;font-size:clamp(1.25rem,2.5vw,1.8rem);overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
/* Overview uses one stable 50px numeric track for values, empty copy and first-paint bars. */
.fa-dev-stats-card .app-competition-stat-value{display:flex;align-items:center;align-self:stretch;height:50px;min-height:0}
.fa-dev-stats-section{margin:0 0 20px}
.fa-dev-stats-leader-grid{--fa-stats-row-height:60px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.fa-dev-stats-leader-card{min-width:0;border:1px solid rgba(128,145,145,.14);border-radius:12px;padding:10px 12px;background:transparent}
.fa-dev-stats-leader-card.app-competition-stat-card--compact{padding:10px 12px;grid-template-rows:minmax(var(--fa-record-heading),max-content) minmax(0,1fr)}
.fa-dev-stats-leader-card:is(.app-competition-stat-card--compact,.app-competition-stat-card--fluid){grid-template-rows:minmax(var(--fa-record-heading),max-content) calc(var(--fa-stats-row-height)*5) 36px}
.fa-dev-stats-top{list-style:none;min-width:0;margin:0;padding:0}
.fa-dev-stats-leader-card>.fa-dev-stats-top{height:calc(var(--fa-stats-row-height)*5)}
.fa-dev-stats-top li{display:grid;grid-template-columns:24px minmax(0,1fr) minmax(3.5ch,auto);align-items:center;column-gap:8px;min-width:0;height:var(--fa-stats-row-height);min-height:var(--fa-stats-row-height);box-sizing:border-box;padding:5px 0;border-bottom:1px solid rgba(128,145,145,.2)}
.fa-dev-stats-top li:last-child{border-bottom:0}
.fa-dev-stats-top li>strong{justify-self:end;min-width:3.5ch;max-width:100%;text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums;font-size:.84rem;line-height:1.3}
.fa-dev-stats-empty{font-size:.85rem;opacity:.65}
/* Keep the empty message in the same value track, without resizing the card. */
.fa-dev-stats-grid .fa-dev-stats-card>.fa-dev-stats-empty{
 display:flex;align-items:center;align-self:stretch;
 height:50px;min-height:0;box-sizing:border-box;
 transform:none;
}
.fa-dev-stats-player-empty{display:block!important;font-size:.85rem;opacity:.65;text-align:center;padding:18px 8px!important}
/* Teams and Players: align empty-state copy with the first skeleton row,
   whose 48px crest slot determines its minimum height. */
.fa-dev-stats-leader-card>.fa-dev-stats-empty{
 display:flex;align-items:center;justify-content:center;height:calc(var(--fa-stats-row-height)*5);min-height:0;box-sizing:border-box;
 margin:0!important;padding:0!important;
 transform:none;
}
@media(max-width:620px){.fa-dev-stats-leader-grid{--fa-stats-row-height:52px}}
.fa-dev-stats-rank{justify-self:center;min-width:0;font-size:.82rem;opacity:.7;font-variant-numeric:tabular-nums;text-align:center}
.fa-dev-stats-top .app-world-club-identity{display:flex;align-items:center;min-width:0;gap:7px}
.fa-dev-stats-expand{display:flex;align-items:center;justify-content:center;gap:6px;margin:10px auto 0;padding:5px 9px;min-height:26px;box-sizing:border-box;border:0;border-radius:6px;background:transparent;color:inherit;font:inherit;font-size:.82rem;opacity:.75;cursor:pointer;transition:opacity .15s}
.fa-dev-stats-expand-placeholder{display:block;height:26px;margin:10px auto 0}
.fa-dev-stats-expand:hover{opacity:1;text-decoration:underline}
.fa-dev-stats-expand:focus,.fa-dev-stats-expand:focus-visible{outline:none;box-shadow:none}
.fa-dev-stats-dialog{width:min(520px,calc(100vw - 32px));max-height:min(80vh,760px);overflow:auto;padding:12px 20px 20px;border:1px solid rgba(128,145,145,.3);border-radius:12px;background:var(--surface,#20292a);color:inherit;box-shadow:0 16px 48px rgba(0,0,0,.35)}
.fa-dev-stats-dialog[open]{animation:fa-stats-dialog-in .2s ease-out both}
.fa-dev-stats-dialog.fa-dev-stats-closing{animation:fa-stats-dialog-out .16s ease-in both}
.fa-dev-stats-dialog::backdrop{background:rgba(0,0,0,.65);animation:fa-stats-backdrop-in .2s ease-out both}
.fa-dev-stats-dialog.fa-dev-stats-closing::backdrop{animation:fa-stats-backdrop-out .16s ease-in both}
@keyframes fa-stats-dialog-in{from{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes fa-stats-dialog-out{from{opacity:1;transform:translateY(0) scale(1)}to{opacity:0;transform:translateY(8px) scale(.98)}}
@keyframes fa-stats-backdrop-in{from{background:rgba(0,0,0,0)}to{background:rgba(0,0,0,.65)}}
@keyframes fa-stats-backdrop-out{from{background:rgba(0,0,0,.65)}to{background:rgba(0,0,0,0)}}
@media(prefers-reduced-motion:reduce){.fa-dev-stats-dialog[open],.fa-dev-stats-dialog.fa-dev-stats-closing,.fa-dev-stats-dialog::backdrop{animation:none!important}}
.fa-dev-stats-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px;min-height:40px}
.fa-dev-stats-dialog-header h3{margin:0;font-size:1rem}
.fa-dev-stats-dialog-close{flex:0 0 36px}
@media(max-width:760px){.fa-dev-stats-leader-grid{grid-template-columns:1fr}}
@media(max-width:650px){.fa-dev-stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.fa-dev-stats-card{padding:12px}}
@media(max-width:420px){.fa-dev-stats-nav button{width:auto;flex:1;padding:10px 5px}}
@media(max-width:360px){.fa-dev-stats-grid{grid-template-columns:1fr}}

.fa-dev-stats-top .app-world-club-crest-placeholder{flex-shrink:0}
.fa-dev-stats-top .fa-dev-stats-team-name{display:block;min-width:0;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;line-height:1.3;font-size:.82rem;font-weight:650}
/* Generic face crop of the original full portrait; fixed slots match first paint. */
.fa-dev-stats-player-portrait{display:block;position:relative;overflow:hidden;isolation:isolate;width:48px;height:48px;flex:0 0 48px;border-radius:50%;background:var(--surface-raised);color:var(--muted,#839994)}
.fa-dev-stats-player-portrait img{display:block;position:absolute;width:280%;max-width:none;height:auto;left:50%;top:0;transform:translateX(-50%)}
.fa-dev-stats-player-portrait:not([data-portrait-state="ready"]) img{visibility:hidden}
.fa-dev-stats-player-portrait[data-portrait-state="missing"]::before{content:"";position:absolute;left:32%;top:17%;width:36%;height:39%;border-radius:50%;background:currentColor;opacity:.65}
.fa-dev-stats-player-portrait[data-portrait-state="missing"]::after{content:"";position:absolute;left:17%;bottom:-9%;width:66%;height:48%;border-radius:50% 50% 0 0;background:currentColor;opacity:.65}
.fa-dev-stats-player-label{display:grid;grid-template-rows:1.3em 1.3em;align-content:center;align-items:center;row-gap:2px;min-width:0;flex:1 1 0}
.fa-dev-stats-player-label .fa-dev-stats-team-name,.fa-dev-stats-player-label .fa-dev-stats-club-link{max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fa-dev-stats-player-label .fa-dev-stats-club-link{display:block;width:max-content;max-width:100%;font-size:.68rem;line-height:1.3;opacity:.7;overflow-wrap:anywhere;color:inherit;text-decoration:none;text-underline-offset:3px}
.fa-dev-stats-player-label a.fa-dev-stats-club-link:hover,.fa-dev-stats-player-label a.fa-dev-stats-club-link:focus-visible{text-decoration:underline}
.fa-dev-stats-player-label a.fa-dev-stats-club-link:focus-visible{outline:2px solid var(--focus);outline-offset:2px;border-radius:2px}
@media(max-width:620px){.fa-dev-stats-player-portrait{width:40px;height:40px;flex-basis:40px}}

@media(max-width:420px){.fa-dev-stats-top li{grid-template-columns:20px minmax(0,1fr) minmax(3ch,auto);column-gap:6px}}

/* UI refinement: compact Rules and international standings qualification. */
.app-rules-outcome[data-rule-cup="sovereign"]{--standing-outcome-color:#6B8FE3}
.app-rules-outcome[data-rule-cup="federation"]{--standing-outcome-color:#8D72C8}
.app-rules-content{width:100%;max-width:none;justify-self:stretch}
.app-rules-section{padding-top:12px}
.app-rules-section p{line-height:1.5}
.app-rules-outcomes{gap:4px}
.app-rules-outcome{padding:7px 10px;border-radius:5px}
.app-rules-metric{padding:9px 12px}
.app-rules-metric dd{font-size:19px}
.app-world-flag-frame{width:var(--fa-flag-width);height:var(--fa-flag-height);aspect-ratio:5/4}
.app-world-flag{width:100%;height:100%;object-fit:contain}

/* UI-HOVER-02: Search-derived hover applies only to actual editable fields, not cards, labels or feedback. */
.app-body :is(input:not([type="checkbox"]):not([type="radio"]),textarea,select,.language-trigger){
 transition:var(--fa-field-transition);
}
@media(hover:hover){
 .app-body :is(input:not([type="checkbox"]):not([type="radio"]),textarea,select,.language-trigger):not(:disabled):not([aria-disabled="true"]):hover:not(:focus){
  background:var(--fa-field-hover-bg);border-color:var(--fa-field-hover-border);
 }
}
.app-body :is(input:not([type="checkbox"]):not([type="radio"]),textarea,select,.language-trigger):focus-visible{
 border-color:var(--fa-field-focus-border);box-shadow:inset 0 0 0 1px var(--fa-field-focus-border);
}
@media(prefers-reduced-motion:reduce){
 .app-body :is(input,textarea,select,.language-trigger){transition:none}
}

/* Standings first paint and refresh share the final table/compact row geometry. */
.app-standings-skeleton{display:none;width:100%;min-width:0;border:1px solid var(--border);border-radius:12px;background:var(--surface);overflow:hidden}
.app-standings-skeleton .app-skeleton-mobile{display:none}
.app-skeleton-bar{display:block;width:50%;height:10px;margin-inline:auto;border-radius:4px;background:color-mix(in srgb,var(--muted) 22%,var(--surface))}
/* Catalog ID order is not a verified standings order. Reserve a neutral
   identity slot per participant (16 domestic / 24 international) until
   ranked season data arrives from the selected source. */
.app-standings-skeleton [data-skeleton-identity]{display:none;min-width:0;align-items:center}
.app-standings-skeleton [data-skeleton-identity-placeholder]{display:flex;align-items:center;background:transparent;margin:0}
.app-standings-skeleton tr>:nth-child(2) :is([data-skeleton-identity-placeholder],.app-skeleton-bar){
 /* Anonymous international spans and domestic identity placeholders must both
    be flex rows; otherwise desktop international shows one oversized bar. */
 display:flex;align-items:center;width:148px;max-width:100%;height:48px;
 margin:0;gap:7px;background:transparent;
}
.app-standings-skeleton tr>:nth-child(2) :is([data-skeleton-identity-placeholder],.app-skeleton-bar)::before{
 content:"";flex:0 0 48px;height:48px;border-radius:50%;
 background:var(--fa-crest-skeleton-fill);
}
.app-standings-skeleton tr>:nth-child(2) :is([data-skeleton-identity-placeholder],.app-skeleton-bar)::after{
 content:"";flex:1 1 auto;min-width:0;height:10px;border-radius:4px;
 background:color-mix(in srgb,var(--muted) 22%,var(--surface));
}
.app-standings-skeleton [data-skeleton-identity] .app-world-club-name{min-width:0}
/* Published SVGs start loading in parser time: no shield flash for supported crests. */
.app-standings-skeleton [data-club-crest-pending="true"]>.app-club-crest-image{visibility:visible}
@media(max-width:620px){
 .app-standings-skeleton .app-world-mobile-name[data-skeleton-identity]{width:auto;max-width:100%;margin-left:0;min-height:40px}
 .app-standings-skeleton .app-world-mobile-name .app-world-club-crest-placeholder{flex:0 0 40px;width:40px;height:40px}
}
/* Match Roster subview spacing: the 42px row centers 32px buttons with 5px above and below. */
#competition-panel-standings{position:relative;margin-top:0}
html:is([data-fa-standings-loading="true"],[data-fa-dev-standings-pending="true"],[data-fa-debug-pending="true"],[data-fa-dev-season-transition="true"]) #competition-panel-standings>.app-world-standings{position:absolute;inset-inline:0;top:0;visibility:hidden;pointer-events:none}
html:is([data-fa-standings-loading="true"],[data-fa-dev-standings-pending="true"],[data-fa-debug-pending="true"],[data-fa-dev-season-transition="true"]) #competition-panel-standings>.app-standings-skeleton{display:block}
/* Club names and points lead the standings hierarchy; other statistics stay normal. */
#competition-panel-standings .app-world-standing-table :is(th,td),
#competition-panel-standings :is(.app-world-mobile-name,.app-world-mobile-position,.app-world-mobile-stat dt,.app-world-mobile-stat dd){font-weight:400}
#competition-panel-standings :is(.app-world-club-name,.app-world-mobile-club-name){font-weight:700}
#competition-panel-standings .app-world-standing-table tr>:nth-child(10),
#competition-panel-standings .app-world-mobile-points{font-weight:800}
@media(max-width:620px){
 .app-standings-skeleton .app-skeleton-mobile{display:block}
 /* Identical grid tracks and offsets in first-paint, unknown and loaded rows. */
 #competition-panel-standings .app-world-mobile-summary{
  height:84px;min-height:84px;box-sizing:border-box;
  grid-template-rows:40px 21px;align-content:center;
 }
 #competition-panel-standings .app-world-mobile-position{
  height:16px;line-height:16px;box-sizing:border-box;
 }
 #competition-panel-standings .app-world-mobile-name{min-height:40px}
 #competition-panel-standings .app-world-mobile-points{
  height:56px;min-height:56px;box-sizing:border-box;justify-content:center;
 }
 #competition-panel-standings .app-world-mobile-form{align-self:start}
 .app-standings-skeleton .app-world-mobile-position{
  width:12px;margin:0;justify-self:start;
 }
 /* Anonymous crest slot followed by a name bar at the real text origin. */
 .app-standings-skeleton .app-world-mobile-name:is([data-skeleton-identity-placeholder],.app-skeleton-bar){
  display:flex;width:148px;max-width:100%;height:40px;margin:0;
  align-items:center;gap:7px;background:transparent;
 }
 .app-standings-skeleton .app-world-mobile-name:is([data-skeleton-identity-placeholder],.app-skeleton-bar)::before{
  content:"";flex:0 0 40px;height:40px;border-radius:50%;
  background:color-mix(in srgb,var(--muted) 12%,var(--surface));
 }
 .app-standings-skeleton .app-world-mobile-name:is([data-skeleton-identity-placeholder],.app-skeleton-bar)::after{
  content:"";flex:1 1 auto;min-width:0;height:10px;border-radius:4px;
  background:color-mix(in srgb,var(--muted) 22%,var(--surface));
 }
 .app-standings-skeleton .app-world-mobile-name[data-skeleton-identity]{
  height:40px;min-height:40px;align-self:center;
 }
 .app-standings-skeleton .app-world-mobile-points{
  width:100%;padding:7px 3px;margin:0;
 }
 /* The skeleton Form occupies the same flex box and grid origin as the
    published 16px W/D/L glyphs. The generic .app-skeleton-bar otherwise
    overrides .app-world-mobile-form with display:block, placing its 10px
    pseudo bar above the actual glyph's vertical center. */
 .app-standings-skeleton .app-world-mobile-form{
  display:flex;width:60px;height:16px;margin:0;justify-self:start;
  align-self:start;align-items:center;background:transparent;
 }
 .app-standings-skeleton .app-world-mobile-form::before{
  content:"";display:block;flex:0 0 60px;width:60px;height:10px;
  border-radius:4px;background:color-mix(in srgb,var(--muted) 22%,var(--surface));
 }
}
/* DEV hides the canonical table until commit; the decorative table remains visible. */
#competition-panel-standings>.app-standings-skeleton .app-world-standing-table{visibility:visible}

/* Form keeps its compact glyphs legible; only the tooltip result is emphasized. */
#competition-panel-standings .app-world-form-glyph{font-weight:800}
.app-world-form-tooltip-context{font-weight:400}
.app-world-form-tooltip-score>:first-child{text-align:right}
.app-world-form-tooltip-score>:last-child{text-align:left}

/* Fixtures keep static navigation visible while only the supplied match list loads. */
#competition-panel-fixtures .app-fixtures-select{width:280px;max-width:calc(100vw - 128px);font-size:13px}
#competition-panel-fixtures .app-fixtures-trigger{position:relative;white-space:nowrap;justify-content:center;flex-wrap:nowrap;padding-inline:28px;text-align:center}
#competition-panel-fixtures .app-fixtures-trigger>.language-chevron{position:absolute;inset-inline-end:8px;top:50%;transform:translateY(-50%);margin:0;flex:none}
#competition-panel-fixtures .app-fixtures-trigger-label{display:inline-flex;justify-content:center;align-items:center;gap:4px;min-width:0}
#competition-panel-fixtures :is(.app-fixtures-picker .language-option,#app-fixtures-round-number){white-space:nowrap}
#competition-panel-fixtures .app-fixtures-skeleton{display:none}
#competition-panel-fixtures .app-fixtures-skeleton-crest{display:grid;place-items:center;flex:0 0 64px;width:64px;height:64px}
.app-fixture-score{line-height:1.55;min-height:1.55em;align-items:center}
#competition-panel-fixtures .app-fixtures-skeleton .app-fixture-name{display:flex;align-items:center;min-height:1.55em;width:140px;max-width:calc(100% - 72px)}
#competition-panel-fixtures .app-fixtures-skeleton .app-fixture-name>.app-skeleton-bar{width:100%;margin:0}
#competition-panel-fixtures .app-fixtures-skeleton :is(.app-fixture-status,.app-fixture-stadium){display:flex;align-items:center;justify-content:center;min-height:1.4em}
#competition-panel-fixtures .app-fixtures-skeleton .app-fixture-status{width:100%}
#competition-panel-fixtures .app-fixtures-skeleton .app-fixture-status>.app-skeleton-bar{width:min(72px,100%);margin:0}
#competition-panel-fixtures .app-fixtures-skeleton .app-fixture-score>.app-skeleton-bar{grid-column:1/-1;justify-self:center;width:4ch;max-width:100%;margin:0}
#competition-panel-fixtures .app-fixtures-skeleton .app-fixture-stadium>.app-skeleton-bar{width:min(120px,100%);margin:0}
html[data-fa-standings-loading="true"] #competition-panel-fixtures .app-fixtures-skeleton{display:grid}
html[data-fa-standings-loading="true"] #competition-panel-fixtures :is(#app-fixtures-list,#app-fixtures-empty,#app-fixtures-summary){display:none!important}
html[data-fa-standings-loading="true"] #competition-panel-fixtures[data-fa-content-state="empty"] .app-fixtures-skeleton{display:none!important}
html[data-fa-standings-loading="true"] #competition-panel-fixtures[data-fa-content-state="empty"] #app-fixtures-empty{display:block!important}
/* An unresolved Fixtures request is not a confirmed empty calendar. The global bootstrap may finish first. */
#competition-panel-fixtures[data-fa-content-state="unknown"] .app-fixtures-skeleton{display:grid}
#competition-panel-fixtures[data-fa-content-state="unknown"] :is(#app-fixtures-list,#app-fixtures-empty,#app-fixtures-summary){display:none!important}
/* Compatibility with a local server still injecting the old whole-panel visibility gate. */
html:is([data-fa-dev-standings-pending="true"],[data-fa-debug-pending="true"],[data-fa-dev-season-transition="true"]):not([data-fa-competition-prepaint]):not([data-nav01-fragment="pending"]) #app-divisions #competition-panel-fixtures{visibility:visible!important}
@media(max-width:620px){
 #competition-panel-fixtures .app-fixtures-select{font-size:clamp(12px,3vw,13px)}
 #competition-panel-fixtures .app-fixtures-skeleton-crest{flex-basis:36px;width:36px;height:36px}
 #competition-panel-fixtures .app-fixtures-skeleton .app-fixture-name{max-width:calc(100% - 42px)}
 #competition-panel-fixtures .app-fixtures-skeleton .app-fixture-stadium{width:100%;height:2.8em}
}
@media(max-width:420px){
 #competition-panel-fixtures .app-fixtures-skeleton-crest{flex-basis:30px;width:30px;height:30px}
 #competition-panel-fixtures .app-fixtures-skeleton .app-fixture-name{max-width:calc(100% - 35px)}
}
@media(max-width:360px){
 #competition-panel-fixtures .app-fixtures-skeleton-crest{flex-basis:24px;width:24px;height:24px}
 #competition-panel-fixtures .app-fixtures-skeleton .app-fixture-name{max-width:calc(100% - 29px)}
}
@media(max-width:620px){
 /* Reserve the current-round action below the wider selector on narrow screens. */
 #competition-panel-fixtures .app-fixtures-toolbar{padding-bottom:0}
 #competition-panel-fixtures .app-fixtures-current{grid-column:3;grid-row:2;top:auto;bottom:auto}
}

/* Shared, decorative Stats/History/Awards shells persist through runtime mounts. */
.app-competition-view-skeleton{display:none;min-width:0;width:100%}
:is(#competition-panel-stats,#competition-panel-history,#competition-panel-awards){position:relative}
.app-competition-view-skeleton .app-skeleton-bar{width:100%;max-width:100%;margin:0}
.app-competition-view-skeleton .app-competition-stat-value{display:flex;align-items:center;min-height:1.25em}
.app-competition-view-skeleton .fa-dev-stats-grid .app-competition-stat-value>.app-skeleton-bar{display:block;height:.95em;width:4ch;border-radius:5px}
.app-competition-view-skeleton .fa-dev-stats-grid .fa-dev-stats-card:nth-child(1) .app-competition-stat-value>.app-skeleton-bar{width:3ch}
.app-competition-view-skeleton .fa-dev-stats-grid .fa-dev-stats-card:nth-child(2) .app-competition-stat-value>.app-skeleton-bar{width:4ch}
.app-competition-view-skeleton .fa-dev-stats-grid .fa-dev-stats-card:nth-child(3) .app-competition-stat-value>.app-skeleton-bar{width:4.5ch}
/* Stats loading uses the same anonymous circular crest skeleton as Standings, not the missing-logo shield. */
.app-view-skeleton-crest-slot{display:block;flex:0 0 48px;width:48px;height:48px;border-radius:50%;background:var(--fa-crest-skeleton-fill)}
.app-competition-view-skeleton .fa-dev-stats-team-name{width:110px;max-width:100%;min-width:0}
.app-competition-view-skeleton .fa-dev-stats-rank{width:12px}
.app-competition-view-skeleton .fa-dev-stats-top li>strong{width:3.5ch;display:flex;align-items:center;min-height:1.3em}
/* Reserve the same footer geometry as a real Show all button during Stats loading. */
.app-competition-view-skeleton .app-view-skeleton-stats-expand{position:relative;pointer-events:none;cursor:default}
.app-competition-view-skeleton .app-view-skeleton-stats-expand-label{visibility:hidden}
.app-competition-view-skeleton .app-view-skeleton-stats-expand>.app-skeleton-bar{position:absolute;left:50%;top:50%;translate:-50% -50%;width:56px;height:10px}

/* The loading bars match the typography/footprints of recorded Stats values.
   Keep the circular player portrait and both identity lines in their final slots. */
.app-competition-view-skeleton .fa-dev-stats-leader-card{--fa-stats-skeleton-value-width:3.5ch}
.app-competition-view-skeleton .fa-dev-stats-leader-card:not(.fa-dev-stats-team-card):nth-child(1){--fa-stats-skeleton-value-width:8.5ch}
.app-competition-view-skeleton .fa-dev-stats-leader-card:not(.fa-dev-stats-team-card):nth-child(5){--fa-stats-skeleton-value-width:5.5ch}
.app-competition-view-skeleton .fa-dev-stats-leader-card:not(.fa-dev-stats-team-card):nth-child(6){--fa-stats-skeleton-value-width:7.5ch}
.app-competition-view-skeleton .fa-dev-stats-leader-card:not(.fa-dev-stats-team-card):nth-child(7){--fa-stats-skeleton-value-width:7ch}
.app-competition-view-skeleton .fa-dev-stats-leader-card:not(.fa-dev-stats-team-card):nth-child(8){--fa-stats-skeleton-value-width:5.5ch}
.app-competition-view-skeleton .fa-dev-stats-team-card:nth-child(5){--fa-stats-skeleton-value-width:5ch}
.app-competition-view-skeleton .fa-dev-stats-top li>strong{width:var(--fa-stats-skeleton-value-width);min-width:var(--fa-stats-skeleton-value-width);display:flex;align-items:center;justify-content:flex-end;min-height:1.3em}
.app-competition-view-skeleton .fa-dev-stats-top li>strong>.app-skeleton-bar{height:.85em;border-radius:3px}
.app-competition-view-skeleton .fa-dev-stats-top .fa-dev-stats-rank>.app-skeleton-bar{height:.8em;border-radius:3px}
.app-competition-view-skeleton .fa-dev-stats-top .fa-dev-stats-team-name>.app-skeleton-bar{height:.83em;border-radius:3px}
/* Simulate natural name lengths without changing row geometry or introducing randomness.
   Every card uses the same deterministic width per rank, on desktop and mobile. */
.app-competition-view-skeleton .fa-dev-stats-top li{--fa-stats-skeleton-player-name:15ch;--fa-stats-skeleton-club-name:11ch}
.app-competition-view-skeleton .fa-dev-stats-top li:nth-child(2){--fa-stats-skeleton-player-name:12ch;--fa-stats-skeleton-club-name:15ch}
.app-competition-view-skeleton .fa-dev-stats-top li:nth-child(3){--fa-stats-skeleton-player-name:18ch;--fa-stats-skeleton-club-name:13ch}
.app-competition-view-skeleton .fa-dev-stats-top li:nth-child(4){--fa-stats-skeleton-player-name:11ch;--fa-stats-skeleton-club-name:9ch}
.app-competition-view-skeleton .fa-dev-stats-top li:nth-child(5){--fa-stats-skeleton-player-name:16ch;--fa-stats-skeleton-club-name:14ch}
/* The Teams view represents club names, so its bar follows the same pattern. */
.app-competition-view-skeleton .fa-dev-stats-team-card .fa-dev-stats-team-name{width:min(var(--fa-stats-skeleton-club-name),100%)}
.app-competition-view-skeleton .fa-dev-stats-player-label .fa-dev-stats-team-name{display:flex;align-items:center;width:min(var(--fa-stats-skeleton-player-name),100%);height:1.3em}
.app-competition-view-skeleton .fa-dev-stats-player-label .fa-dev-stats-club-link{display:flex;align-items:center;width:min(var(--fa-stats-skeleton-club-name),100%);height:1.3em}
.app-competition-view-skeleton .fa-dev-stats-player-label .fa-dev-stats-club-link>.app-skeleton-bar{height:.75em;border-radius:3px}
.app-view-skeleton-record-holder{display:flex;align-items:center;min-height:48px}
.app-view-skeleton-record-holder>.app-skeleton-bar{max-width:140px}
.app-view-skeleton-history-archive{border:1px solid var(--border);border-radius:12px;overflow:hidden;background:var(--surface)}
/* The outer border owns the bottom edge even if extra rows are hidden.
   Only visible following rows receive a separator, never the last visible row. */
.app-view-skeleton-history-archive .app-history-dev-archive li{border-bottom:0}
.app-view-skeleton-history-archive .app-history-dev-archive li:not([hidden])~li:not([hidden]){border-top:1px solid var(--line)}
/* Keep loading decoration scoped to the skeleton; History also uses the archive wrapper for live rows. */
.app-competition-view-skeleton .app-view-skeleton-history-archive .app-history-dev-season-link{pointer-events:none}
.app-competition-view-skeleton .app-view-skeleton-history-archive .app-history-dev-season{display:flex;align-items:center;min-width:0}
.app-competition-view-skeleton .app-view-skeleton-history-archive .app-history-dev-season .app-skeleton-bar{width:9ch;max-width:100%}
.app-competition-view-skeleton .app-view-skeleton-history-archive .app-world-club-name{display:block;width:148px;max-width:100%}
.app-competition-view-skeleton .app-view-skeleton-history-archive .app-world-club-name .app-skeleton-bar{width:100%;max-width:100%}
@media(min-width:621px){.app-competition-view-skeleton .app-view-skeleton-history-archive .app-history-dev-season-button{min-height:71px}}
.app-view-skeleton-champion{display:flex;align-items:center;min-height:24px}
.app-view-skeleton-champion>.app-skeleton-bar{max-width:180px}
.app-view-skeleton-history-table{width:100%;table-layout:fixed;border-collapse:collapse}
.app-view-skeleton-history-table th:first-child{width:2em}
.app-view-skeleton-history-table th:nth-child(n+3){width:4em}
.app-view-skeleton-history-table td{height:24px;padding:4px}
.app-view-skeleton-awards-pitch{width:min(100%,380px);aspect-ratio:4/3;border-radius:8px;background:color-mix(in srgb,var(--muted) 18%,var(--surface))}
.app-view-skeleton-award-recipient{box-sizing:border-box;display:flex;align-items:center;min-width:110px;min-height:calc(1.55em + 14px)}
@media(max-width:620px){.app-view-skeleton-crest-slot{flex-basis:40px;width:40px;height:40px}}
html:is([data-fa-standings-loading="true"],[data-fa-stats-loading="true"]) #competition-panel-stats>.app-competition-view-skeleton{display:block}
html:is([data-fa-standings-loading="true"],[data-fa-stats-loading="true"]) #competition-panel-stats>:not(.app-competition-view-skeleton){position:absolute;inset-inline:0;top:0;visibility:hidden;pointer-events:none}
/* QA-12: first paint must reserve History skeleton until historical archive hydration settles.
   An unresolved archive is never a verified empty state. The Season-0 DEV static
   exception below remains explicit and is not overridden by this pending gate. */
html:not([data-fa-history-loading="false"]) #competition-panel-history>.app-competition-view-skeleton{display:block}
html:not([data-fa-history-loading="false"]) #competition-panel-history>.app-history-empty{position:absolute;inset-inline:0;top:0;visibility:hidden;pointer-events:none}
html[data-fa-history-loading="true"] #competition-panel-history>.app-competition-view-skeleton{display:block}
html[data-fa-history-loading="true"] #competition-panel-history>:not(.app-competition-view-skeleton){position:absolute;inset-inline:0;top:0;visibility:hidden;pointer-events:none}
html:is([data-fa-standings-loading="true"],[data-fa-awards-loading="true"]) #competition-panel-awards>.app-competition-view-skeleton{display:block}
html:is([data-fa-standings-loading="true"],[data-fa-awards-loading="true"]) #competition-panel-awards>:not(.app-competition-view-skeleton){position:absolute;inset-inline:0;top:0;visibility:hidden;pointer-events:none}
html:is([data-fa-standings-loading="true"],[data-fa-stats-loading="true"]) #competition-panel-stats[data-fa-content-state="empty"]>.app-competition-view-skeleton,
html:is([data-fa-standings-loading="true"],[data-fa-awards-loading="true"]) #competition-panel-awards[data-fa-content-state="empty"]>.app-competition-view-skeleton{display:none!important}
html:is([data-fa-standings-loading="true"],[data-fa-stats-loading="true"]) #competition-panel-stats[data-fa-content-state="empty"]>:not(.app-competition-view-skeleton),
html:is([data-fa-standings-loading="true"],[data-fa-awards-loading="true"]) #competition-panel-awards[data-fa-content-state="empty"]>:not(.app-competition-view-skeleton){position:static;visibility:visible;pointer-events:auto}
/* Compatibility with a DEV server retaining the old History panel gate. */
html:is([data-fa-dev-standings-pending="true"],[data-fa-debug-pending="true"]):not([data-fa-competition-prepaint]):not([data-nav01-fragment="pending"]) #app-divisions #competition-panel-history{visibility:visible!important}


/* An enabled Debug world in Season 0 has a fully known, static empty History. */
html[data-fa-dev-seasons][data-fa-history-static="true"] #competition-panel-history>.app-competition-view-skeleton{display:none!important}
html[data-fa-dev-seasons][data-fa-history-static="true"] #competition-panel-history>:not(.app-competition-view-skeleton){position:static!important;visibility:visible!important;pointer-events:auto!important}

/* Static History matches the archive top edge without an intermediate loading shell. */




/* FE-02 (#366): viewport geometry and approved mobile touch targets.
 * FE-01 tokens, loaded markup, and FE-04 control semantics are unchanged. */
.app-body .language-control > .language-menu[data-menu-placement="above"],
.app-body .nav01-filter > .language-menu[data-menu-placement="above"]{
  top:auto;bottom:calc(100% + 6px);
}
.app-body .language-control > .language-menu[data-menu-placement="below"],
.app-body .nav01-filter > .language-menu[data-menu-placement="below"]{bottom:auto}

/* The canonical standings link defaults to flex:none. In fixture club rows
 * it must shrink inside narrow desktop/tablet tracks without changing size
 * on wide screens; keep the existing min-width:0 and overflow-wrap:anywhere. */
@media(min-width:621px){
 .app-fixture-club>.app-fixture-name.app-world-standing-club-link{flex-shrink:1}
}
/* 621–800px: preserve full single-line stadium text below, not across clubs. */
@media(min-width:621px) and (max-width:800px){
 .app-fixture-match{position:relative;padding-bottom:44px}
 .app-fixture-stadium{
  position:absolute;inset-inline-start:50%;bottom:12px;transform:translateX(-50%);
  box-sizing:border-box;width:320px;max-width:calc(100% - 24px);text-align:center;
 }
}
@media(max-width:620px){
 .fa-shell-link{height:var(--fa-control-height-regular);min-height:var(--fa-control-height-regular)}
 .app-competition-tab,.club-tabs .app-competition-tab{min-height:var(--fa-control-height-regular)}
 .app-fixtures-toolbar{min-height:var(--fa-control-height-regular)}
 .app-fixtures-arrow{width:44px;min-width:44px!important;height:44px;min-height:44px}
 .app-fixtures-trigger{height:44px;min-height:44px}
 .app-fixtures-current{width:44px;min-width:44px;height:44px;min-height:44px}
 .app-fixtures-picker .language-option{min-height:44px;padding-block:8px}
 #world-calendar #calendar-controls{box-sizing:border-box;padding-inline-end:44px}
 #world-calendar #calendar-controls #calendar-previous,
 #world-calendar #calendar-controls #calendar-next{
  box-sizing:border-box;flex-basis:44px;width:44px;min-width:44px;height:44px;min-height:44px;
 }
 #world-calendar #calendar-controls #calendar-week-trigger{height:44px;min-height:44px}
 #world-calendar #calendar-controls #calendar-current-week{
  width:44px;min-width:44px;height:44px;min-height:44px;
 }
 #world-calendar #calendar-controls #calendar-week-menu .language-option{
  height:auto;min-height:44px;padding-block:8px;
 }
 .app-history-record-expand{min-height:44px}
}
/* Keep the existing 100px selector label readable at 320px: 40×44px
 * arrows/shortcut replace the previous 28px arrows when width is constrained. */
@media(max-width:360px){
 .app-fixtures-toolbar{column-gap:4px}
 .app-fixtures-navigation{gap:2px}
 .app-fixtures-arrow{width:40px;min-width:40px!important}
 .app-fixtures-current{width:40px;min-width:40px}
}
/* Calendar still uses seven columns and unchanged day cell heights. */
@media(max-width:390px){
 #world-calendar .calendar-event{
  max-width:100%;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
 }
}

/* SAF-01: current matchday stays on the same row as the shrinkable navigation. */
@media(max-width:620px){
 #competition-panel-fixtures .app-fixtures-toolbar{display:grid;grid-template-columns:minmax(0,1fr) 44px;column-gap:8px;align-items:center;justify-items:stretch;padding-bottom:0}
 #competition-panel-fixtures .app-fixtures-toolbar[hidden]{display:none}
 #competition-panel-fixtures .app-fixtures-navigation{grid-column:1;grid-row:1;box-sizing:border-box;width:100%;max-width:100%;min-width:0;justify-self:stretch}
 #competition-panel-fixtures .app-fixtures-select{flex:1 1 0;width:auto;max-width:100%;min-width:0}
 #competition-panel-fixtures .app-fixtures-current{position:static;grid-column:2;grid-row:1;justify-self:end}
 #competition-panel-fixtures .app-fixtures-trigger-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}
@media(max-width:360px){#competition-panel-fixtures .app-fixtures-toolbar{grid-template-columns:minmax(0,1fr) 40px;column-gap:4px}}
/* Calendar uses the Fixtures control geometry with a permanent shortcut slot. */
#world-calendar #calendar-controls.app-fixtures-navigation{position:relative;box-sizing:border-box;width:100%;min-height:36px;padding-inline:40px}
#world-calendar #calendar-controls .app-fixtures-select{flex:0 1 168px;width:168px;min-width:0;max-width:100%}
#world-calendar #calendar-controls #calendar-week-menu{width:100%;min-width:0;max-width:100%}
#world-calendar #calendar-controls :is(#calendar-previous,#calendar-next,#calendar-week-trigger,#calendar-current-week){height:36px;min-height:36px}
#world-calendar #calendar-controls #calendar-current-week{position:absolute;inset-inline-end:0;top:0;width:36px;min-width:36px;padding:0}
#world-calendar #calendar-controls #calendar-current-week span{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#world-calendar .calendar-week-preview{display:none;pointer-events:none}
#world-calendar .calendar-week-preview .app-skeleton-bar{margin:0;max-width:100%}
#world-calendar .calendar-week-preview .calendar-day-number{width:2ch;height:.72em}
#world-calendar .calendar-week-preview .calendar-day-kind{width:13ch;height:.8em}
html[data-calendar-view="week"][data-calendar-week-pending] #world-calendar .calendar-week-row[data-week]{display:none}
html[data-calendar-view="week"][data-calendar-week-pending] #world-calendar .calendar-week-preview{display:grid}
@media(max-width:620px){
 #world-calendar #calendar-controls.app-fixtures-navigation{padding-inline:48px}
 #world-calendar #calendar-controls .app-fixtures-select{flex-basis:120px;width:120px}
 #world-calendar #calendar-controls :is(#calendar-previous,#calendar-next,#calendar-week-trigger,#calendar-current-week){height:44px;min-height:44px}
 #world-calendar #calendar-controls :is(#calendar-previous,#calendar-next){flex-basis:30px;width:30px;min-width:30px}
 #world-calendar #calendar-controls #calendar-current-week{width:44px;min-width:44px}
}


/* SAF-05: keep selector labels optically centered, with chevrons at the far right. */
#competition-panel-fixtures .app-fixtures-trigger-label{flex:1 1 auto;justify-content:center;text-align:center}
#world-calendar #calendar-controls #calendar-week-trigger{padding-inline:28px}
#world-calendar #calendar-controls #calendar-week-value{display:block;flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center}
#world-calendar #calendar-controls #calendar-week-trigger>.language-chevron{position:absolute;inset-inline-end:8px;top:50%;transform:translateY(-50%);margin:0;flex:none}
@media(max-width:360px){
 #world-calendar #calendar-controls.app-fixtures-navigation{gap:3px}
 #world-calendar #calendar-controls .app-fixtures-select{flex-basis:104px;width:104px}
 #world-calendar #calendar-controls :is(#calendar-previous,#calendar-next){flex-basis:28px;width:28px;min-width:28px}
 #world-calendar #calendar-controls #calendar-week-trigger{padding-inline:21px}
 #world-calendar #calendar-controls #calendar-week-trigger>.language-chevron{inset-inline-end:3px}
}

/* Unidentified Fixtures slots remain transparent; Stats uses the visible circular skeleton above. */
.app-fixtures-skeleton-crest{box-sizing:border-box;border:0;background:transparent}


/* QA-02 V06: center the matchday trio against the full Fixtures toolbar.
   Equal side tracks reserve a permanent right slot for the Current/Reset
   shortcut: toggling that action never shifts the matchday selector. */
/* Keep the open matchday list above linked fixture cards. The card's
   focusable/navigational anchors use z-index:2 and must not outrank the menu. */
#competition-panel-fixtures .app-fixtures-toolbar{
 display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
 column-gap:0;align-items:center;min-height:36px;z-index:10;
}
#competition-panel-fixtures .app-fixtures-list{position:relative;z-index:0}
#competition-panel-fixtures .app-fixtures-select:has(.app-fixtures-trigger[aria-expanded="true"]){z-index:11}
#competition-panel-fixtures .app-fixtures-picker{z-index:12}
#competition-panel-fixtures .app-fixtures-toolbar[hidden]{display:none}
#competition-panel-fixtures .app-fixtures-navigation{
 grid-column:2;grid-row:1;display:flex;align-items:center;justify-self:center;
 flex:0 0 auto;width:max-content;max-width:100%;min-width:0;gap:4px;
}
#competition-panel-fixtures .app-fixtures-select{
 flex:0 0 168px;width:168px;max-width:168px;min-width:0;font-size:12px;
}
#competition-panel-fixtures .app-fixtures-arrow{
 width:32px;min-width:32px!important;height:36px;min-height:36px;
}
#competition-panel-fixtures .app-fixtures-trigger{
 height:36px;min-height:36px;padding-inline:22px 26px;font-size:inherit;
}
#competition-panel-fixtures .app-fixtures-current{
 position:static;inset:auto;grid-column:3;grid-row:1;justify-self:end;align-self:center;
 width:36px;min-width:36px;height:36px;min-height:36px;margin:0;padding:0;
}
#competition-panel-fixtures .app-fixtures-current span{
 position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
 clip-path:inset(50%);white-space:nowrap;
}
@media(max-width:620px){
 #competition-panel-fixtures .app-fixtures-navigation{gap:3px}
 #competition-panel-fixtures .app-fixtures-arrow{
  width:30px;min-width:30px!important;height:36px;min-height:36px;
 }
 #competition-panel-fixtures .app-fixtures-select{
  flex:0 0 132px;width:132px;max-width:132px;font-size:12px;
 }
 #competition-panel-fixtures .app-fixtures-trigger{
  height:36px;min-height:36px;padding-inline:16px 24px;
 }
}
@media(max-width:360px){
 #competition-panel-fixtures .app-fixtures-arrow{
  width:28px;min-width:28px!important;height:36px;min-height:36px;
 }
 /* At 320px the perfectly centered 118px picker left a 9px overlap
    with Reset. Use 110px + a 24px Reset, keeping a real 3px separation
    and >=24px horizontal / 44px vertical pointer targets. */
 #competition-panel-fixtures .app-fixtures-select{
  flex:0 0 110px;width:110px;max-width:110px;font-size:11.5px;
 }
 #competition-panel-fixtures .app-fixtures-trigger{padding-inline:12px 24px}
 #competition-panel-fixtures .app-fixtures-current{width:24px;min-width:24px}
}

/* QA-02 accessibility: the compact 36px visual controls retain a 44px
   vertical pointer target. The transparent hit extension does not change
   the owner-approved widths, center alignment, or toolbar geometry. */
#competition-panel-fixtures :is(.app-fixtures-arrow,.app-fixtures-trigger,.app-fixtures-current){
 position:relative;
}
#competition-panel-fixtures :is(.app-fixtures-arrow,.app-fixtures-trigger,.app-fixtures-current)::before{
 content:"";position:absolute;inset-block:-4px;inset-inline:0;
 background:transparent;pointer-events:auto;
}

/* Explore Players uses the same inline SVG presentation as the other sidebar icons. */
/* Players header: stable first-paint count, aligned with the other Explore directories. */
.app-players-header{min-width:0}
.app-players-header>.app-page-title{margin:0;color:#f2f7f4;font-size:var(--app-page-title-size);font-weight:780;letter-spacing:-.035em;line-height:1.2;text-align:left}
html[data-theme="light"] .app-players-header>.app-page-title{color:var(--text)}
.app-players-count{box-sizing:border-box;display:flex;align-items:center;justify-content:flex-end;flex:0 0 132px;width:132px;height:44px;margin:0;white-space:nowrap;text-align:end;color:var(--muted);font-size:13px;font-weight:650;line-height:20px;font-variant-numeric:tabular-nums}
.app-players-count-placeholder{display:block;flex:0 0 98px;width:98px;height:14px;margin-inline-start:auto;background:transparent}

/* Player directory: fixed flag/name columns; every remaining column receives a share of the available width. */
.app-players-table-scroll{width:100%;max-width:100%;min-width:0;margin-top:var(--app-page-section-gap);overflow-x:auto;border:1px solid var(--border);border-radius:var(--fa-radius-panel);background:var(--surface);scrollbar-width:thin}
.app-players-table-scroll:focus-visible{outline:2px solid var(--focus);outline-offset:3px}
.app-players-table{--app-players-flag-width:54px;--app-players-name-width:248px;--app-players-positions-width:200px;width:100%;min-width:782px;table-layout:fixed;border-collapse:separate;border-spacing:0;color:var(--text);font-size:14px;font-variant-numeric:tabular-nums}
.app-players-table col.app-players-flag-column{width:var(--app-players-flag-width)}
.app-players-table col.app-players-name-column{width:var(--app-players-name-width)}
.app-players-table[data-players-table-mode="attributes"] col.app-players-view-third-column{width:var(--app-players-positions-width)}
.app-players-table th,.app-players-table td{box-sizing:border-box;padding:2px 16px;border:0;border-bottom:1px solid var(--line);vertical-align:middle;text-align:center}
.app-players-table thead th{height:42px;padding-block:2px;background:#172d30;color:var(--muted);font-size:12px;font-weight:700;line-height:1.2;letter-spacing:.02em;white-space:nowrap}
/* Sort is still interactive, but labels never display arrows, hover highlights,
 * click focus boxes or selectable text. Keyboard focus uses a text underline only. */
.app-players-sort-button{display:flex;align-items:center;justify-content:center;gap:0;line-height:1.2;box-sizing:border-box;width:100%;min-width:0;height:36px;min-height:36px;margin:0;padding:0;border:0;background:transparent;color:inherit;font:inherit;font-weight:inherit;letter-spacing:inherit;text-align:inherit;white-space:nowrap;cursor:pointer;user-select:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent}
.app-players-sort-button:hover,.app-players-sort-button:active,.app-players-sort-button:focus{color:inherit;background:transparent;box-shadow:none;outline:none;text-shadow:none;filter:none}
.app-players-sort-button:focus-visible{text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
/* The label owns the alignment; an active chevron sits beside it without shifting text. */
.app-players-sort-label{position:relative;display:inline-block;max-width:100%;white-space:nowrap;line-height:1.2}
.app-players-sort-chevron{position:absolute;display:block;left:calc(100% + 7px);top:50%;width:16px;height:16px;visibility:hidden;opacity:0;transform:translateY(-50%) rotate(0deg);transform-origin:50% 50%;pointer-events:none}
.app-players-table th[aria-sort="ascending"] .app-players-sort-chevron,.app-players-table th[aria-sort="descending"] .app-players-sort-chevron{visibility:visible;opacity:1}
.app-players-table th[aria-sort="ascending"] .app-players-sort-chevron{transform:translateY(-50%) rotate(180deg)}
/* The flag column has no visible label: center its chevron in the flag column. */
.app-players-flag-col .app-players-sort-label{width:16px;height:16px}
.app-players-flag-col .app-players-sort-chevron{left:0}

.app-players-table th:nth-child(2) .app-players-sort-button,.app-players-table:not([data-players-table-mode="attributes"]) th:nth-child(4) .app-players-sort-button,.app-players-table:not([data-players-table-mode="attributes"]) th:nth-child(6) .app-players-sort-button,.app-players-table[data-players-table-mode="attributes"] th:nth-child(3) .app-players-sort-button{justify-content:flex-start}
/* Preserve real table row geometry during loading: five empty rows, no data skeletons. */
.app-players-table tbody tr:not(.app-players-empty-row){height:36px}
.app-players-table .app-players-loading-row td{height:36px;padding:0 16px}
.app-players-table th:first-child{width:var(--app-players-flag-width);padding-inline:8px}
.app-players-table th:nth-child(2){width:var(--app-players-name-width);text-align:left}
.app-players-table th:nth-child(3){width:calc((100% - var(--app-players-flag-width) - var(--app-players-name-width)) * 0.17)}
.app-players-table th:nth-child(4){width:calc((100% - var(--app-players-flag-width) - var(--app-players-name-width)) * 0.42)}
.app-players-table th:nth-child(5){width:calc((100% - var(--app-players-flag-width) - var(--app-players-name-width)) * 0.21)}
.app-players-table th:nth-child(6){width:calc((100% - var(--app-players-flag-width) - var(--app-players-name-width)) * 0.20)}
/* Public Overview: the first three fixed tracks are shared with Attributes.
 * Remaining tracks are specified by #763 below. */
.app-players-table[data-players-public]:not([data-players-table-mode="attributes"]){min-width:982px}
.app-players-table[data-players-public]:not([data-players-table-mode="attributes"]) col.app-players-view-third-column{width:var(--app-players-positions-width)}
.app-players-table[data-players-public]:not([data-players-table-mode="attributes"]) th:nth-child(3){width:var(--app-players-positions-width);text-align:left}
.app-players-table[data-players-public]:not([data-players-table-mode="attributes"]) :is(th,td):nth-child(3),
.app-players-table[data-players-public]:not([data-players-table-mode="attributes"]) :is(th,td):nth-child(6),
.app-players-table[data-players-public]:not([data-players-table-mode="attributes"]) :is(th,td):nth-child(8){text-align:left}
.app-players-table[data-players-public]:not([data-players-table-mode="attributes"]) :is(th,td):nth-child(4),
.app-players-table[data-players-public]:not([data-players-table-mode="attributes"]) :is(th,td):nth-child(5){text-align:center}
.app-players-table[data-players-public]:not([data-players-table-mode="attributes"]) th:nth-child(3) .app-players-sort-button,
.app-players-table[data-players-public]:not([data-players-table-mode="attributes"]) th:nth-child(6) .app-players-sort-button{justify-content:flex-start}
.app-players-table[data-players-public]:not([data-players-table-mode="attributes"]) th:nth-child(4) .app-players-sort-button,
.app-players-table[data-players-public]:not([data-players-table-mode="attributes"]) th:nth-child(5) .app-players-sort-button{justify-content:center}
/* Shared six-column player tables (Club Roster and Admin preview) match the
 * first three fixed tracks from public /players: Flag | Player | Positions.
 * Their remaining columns are Age | Height | Foot (Club is public-only). */
.app-players-table:not([data-players-public]):not([data-players-table-mode="attributes"]) col.app-players-view-third-column{width:var(--app-players-positions-width)}
.app-players-table:not([data-players-public]):not([data-players-table-mode="attributes"]) th:nth-child(3){width:var(--app-players-positions-width)}
.app-players-table:not([data-players-public]):not([data-players-table-mode="attributes"]) th:nth-child(4){width:calc((100% - var(--app-players-flag-width) - var(--app-players-name-width) - var(--app-players-positions-width)) * 0.28)}
.app-players-table:not([data-players-public]):not([data-players-table-mode="attributes"]) th:nth-child(5){width:calc((100% - var(--app-players-flag-width) - var(--app-players-name-width) - var(--app-players-positions-width)) * 0.36)}
.app-players-table:not([data-players-public]):not([data-players-table-mode="attributes"]) th:nth-child(6){width:calc((100% - var(--app-players-flag-width) - var(--app-players-name-width) - var(--app-players-positions-width)) * 0.36)}
.app-players-table:not([data-players-public]):not([data-players-table-mode="attributes"]) :is(th,td):nth-child(3),
.app-players-table:not([data-players-public]):not([data-players-table-mode="attributes"]) :is(th,td):nth-child(6){text-align:left}
.app-players-table:not([data-players-public]):not([data-players-table-mode="attributes"]) :is(th,td):nth-child(4),
.app-players-table:not([data-players-public]):not([data-players-table-mode="attributes"]) :is(th,td):nth-child(5){text-align:center}
.app-players-table:not([data-players-public]):not([data-players-table-mode="attributes"]) th:nth-child(3) .app-players-sort-button,
.app-players-table:not([data-players-public]):not([data-players-table-mode="attributes"]) th:nth-child(6) .app-players-sort-button{justify-content:flex-start}
.app-players-table:not([data-players-public]):not([data-players-table-mode="attributes"]) th:nth-child(4) .app-players-sort-button,
.app-players-table:not([data-players-public]):not([data-players-table-mode="attributes"]) th:nth-child(5) .app-players-sort-button{justify-content:center}

/* The 24px crest sits in a centered 28px track independent of hover underline metrics. */
.app-players-club-cell{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.app-players-club-content{display:flex;align-items:center;min-width:0;max-width:100%;height:28px;gap:8px}
/* Keep the wrapper transparent to the approved desktop flex layout. */
.app-players-club-label-anchor{display:contents}
.app-players-club-mark{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:0 0 24px;width:24px;height:24px;overflow:hidden}
.app-players-club-mark::before{content:"";display:block;width:20px;height:23px;clip-path:var(--fa-crest-shield-shape);background:var(--muted);opacity:.45}
/* Only display the neutral shield when no validated real crest image exists.
   This applies equally to Players Directory, Player Stats and Player Matches. */
.app-players-club-mark:has(>img.app-players-club-crest)::before{display:none}
.app-players-club-crest{position:absolute;inset:0;display:block;width:24px;height:24px;object-fit:contain}
.app-players-table .app-player-club-link{flex:0 1 auto;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.app-players-table .app-player-club-name{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* Positions contains position codes and is left-aligned like Player, including the static Overview header. */
.app-players-table:not([data-players-table-mode="attributes"]) :is(th,td):nth-child(4){text-align:left}
/* Foot is a descriptive value (Left / Right), so align its heading and values with other text columns. */
.app-players-table:not([data-players-table-mode="attributes"]) :is(th,td):nth-child(6){text-align:left}
.app-players-table tbody tr:last-child td{border-bottom:0}
.app-players-empty-row td{height:148px;padding:26px 18px;text-align:center;white-space:normal}
.app-players-empty-row strong{display:block;font-size:14px;font-weight:700;line-height:1.5}
html[data-theme="light"] .app-players-table thead th{background:#E8F1EB;color:#31594A}
@media(max-width:720px){.app-players-table th,.app-players-table td{padding-inline:10px}}

/* D1-backed Players directory: matching row heights, country flags and optional pagination. */
.app-players-table tbody td:nth-child(2){text-align:left;font-weight:650;vertical-align:middle;line-height:18px}
/* #532 compact shared player tables: center proportionate flags in first-paint and loaded rows. */
.app-players-table tbody td:first-child{text-align:center;vertical-align:middle}
.app-players-nationality-flag{display:block;width:20px;height:15px;object-fit:contain;margin-inline:auto}
.app-players-pagination{display:flex;align-items:center;justify-content:center;gap:14px;margin-top:12px}
.app-players-pagination[hidden]{display:none}
.app-players-page-count{min-width:88px;text-align:center;font-size:13px;color:var(--muted)}
.app-players-page-button{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;flex:0 0 112px;width:112px;min-width:112px;max-width:112px;height:36px;min-height:36px;font:inherit;font-size:13px;font-weight:650;text-align:center;white-space:nowrap;color:var(--text);background:var(--surface);border:1px solid var(--border);border-radius:var(--fa-radius-panel);padding:7px 8px;cursor:pointer}
.app-players-page-button:not(:disabled):hover{border-color:var(--focus)}
.app-players-page-button:disabled{opacity:.45;cursor:default}
.app-players-page-button:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
/* #532: manual progressive loading only in the public directory; preview keeps numbered pagination. */
.app-players-pagination[data-players-progress]{min-height:48px;gap:12px;flex-wrap:wrap}
.app-players-pagination[data-players-progress] .app-players-page-count{min-width:0}
.app-players-pagination[data-players-progress] .app-players-page-button{flex:0 0 auto;width:auto;min-width:112px;max-width:none;padding-inline:16px}
.app-players-end-sentinel{display:block;width:100%;height:1px;flex:none;pointer-events:none}
@media(max-width:420px){.app-players-pagination{gap:8px}.app-players-page-button{flex-basis:88px;width:88px;min-width:88px;max-width:88px}.app-players-page-count{min-width:0;overflow-wrap:anywhere}}

/* PLAYERS-505: same active-tab treatment as Standings, with an always-reserved toolbar.
 * Group tabs remain in flow while visually hidden in Overview, so the table never shifts. */
.app-players-tabs{margin-top:var(--app-page-section-gap);min-height:40px}
.app-players-tabs .app-competition-tab{position:relative;display:flex;align-items:center;justify-content:center;box-sizing:border-box;flex:0 0 136px;width:136px;min-width:136px;max-width:136px;height:40px;min-height:40px;padding:7px 9px;font-size:12px;line-height:1.2;text-align:center;text-decoration:none;transition:background-color .18s ease,color .18s ease}
.app-players-tabs .app-competition-tab:focus-visible,.app-players-group:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.app-players-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;height:44px;min-width:0;margin-top:0}
.app-players-groups{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:34px;flex:1 1 auto;gap:8px;max-width:472px;min-width:0}
html:not([data-players-view="attributes"]) .app-players-groups{visibility:hidden;pointer-events:none}
.app-players-group{box-sizing:border-box;flex:none;width:100%;min-width:0;max-width:none;height:34px;min-height:34px;padding:6px 5px;font-size:11px;white-space:normal;line-height:1.2;transition:background-color .18s ease,color .18s ease}
.app-players-toolbar+.app-players-table-scroll{margin-top:0}
.app-players-table[data-players-table-mode="attributes"]{min-width:982px}
.app-players-table[data-players-table-mode="attributes"] :is(th,td):nth-child(2){width:var(--app-players-name-width);text-align:left}
.app-players-table[data-players-table-mode="attributes"] :is(th,td):nth-child(n+3){text-align:center}
.app-players-table[data-players-table-mode="attributes"] :is(th,td):nth-child(3){text-align:left}
.app-players-table[data-players-table-mode="attributes"] th:nth-child(3){width:var(--app-players-positions-width)}
.app-players-table[data-players-table-mode="attributes"] th:nth-child(n+4){width:calc((100% - var(--app-players-flag-width) - var(--app-players-name-width) - var(--app-players-positions-width)) / 4)}
html[data-players-group="technical"] .app-players-table[data-players-table-mode="attributes"]{min-width:1462px}
html[data-players-group="technical"] .app-players-table[data-players-table-mode="attributes"] th:nth-child(n+4){width:calc((100% - var(--app-players-flag-width) - var(--app-players-name-width) - var(--app-players-positions-width)) / 8)}
.app-players-table[data-players-table-mode="attributes"] tbody td:nth-child(n+4){font-variant-numeric:tabular-nums}
/* #532: responsive player-table column geometry. Desktop approved widths stay
 * unchanged; smaller viewports use compact columns and deliberate horizontal
 * scrolling, never hidden columns or a changed reading/sort order. */
@media(max-width:720px){
 .app-players-table-scroll{overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
 .app-players-table{--app-players-flag-width:32px;--app-players-name-width:128px;--app-players-positions-width:112px;min-width:484px}
 .app-players-table[data-players-table-mode="attributes"]{min-width:648px}
 html[data-players-group="technical"] .app-players-table[data-players-table-mode="attributes"]{min-width:1024px}
 .app-players-table tbody td:nth-child(2){white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .app-players-table :is(.app-player-name-link,.club-roster-player-link){max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .app-players-table:not([data-players-public]):not([data-players-table-mode="attributes"]) tbody td:nth-child(4),
 .app-players-table[data-players-public]:not([data-players-table-mode="attributes"]) tbody td:nth-child(3),
 .app-players-table[data-players-table-mode="attributes"] tbody td:nth-child(3){white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
}
/* 320–420px: make the name and first numeric column visible sooner while
 * preserving readable attribute columns, consistent first paint and iOS scroll. */
@media(max-width:420px){
 .app-players-table{--app-players-flag-width:30px;--app-players-name-width:120px;--app-players-positions-width:104px;min-width:464px}
 .app-players-table[data-players-table-mode="attributes"]{min-width:624px}
 html[data-players-group="technical"] .app-players-table[data-players-table-mode="attributes"]{min-width:1000px}
}
@media(max-width:720px){.app-players-table[data-players-public]:not([data-players-table-mode="attributes"]){min-width:634px}}
@media(max-width:420px){.app-players-table[data-players-public]:not([data-players-table-mode="attributes"]){min-width:596px}}
@media(max-width:620px){
 .app-players-tabs{margin-top:18px}
 .app-players-tabs .app-competition-tab{flex:0 0 min(136px,calc((100% - 4px)/2));width:min(136px,calc((100% - 4px)/2));min-width:0;max-width:136px;height:40px;min-height:40px;padding:7px 5px;font-size:12px}
 /* Match the Club Roster mobile subviews: two complete buttons and a partial third,
    with the total count outside the horizontally scrollable strip. */
 .app-players-toolbar{height:44px;align-items:center;gap:8px}
 .app-players-groups{display:flex;align-items:center;gap:4px;flex:1 1 auto;width:auto;max-width:none;min-width:0;min-height:34px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}
 /* Match the Club Roster edge fades: only shade the side with hidden tabs. */
 .app-players-groups{--app-tabs-fade-left:0px;--app-tabs-fade-right:16px;scroll-padding-inline:0;-webkit-mask-image:linear-gradient(to right,transparent,#000 var(--app-tabs-fade-left),#000 calc(100% - var(--app-tabs-fade-right)),transparent);mask-image:linear-gradient(to right,transparent,#000 var(--app-tabs-fade-left),#000 calc(100% - var(--app-tabs-fade-right)),transparent)}
 .app-players-groups[data-can-scroll-left="true"]{--app-tabs-fade-left:16px}
 .app-players-groups[data-can-scroll-right="true"]{--app-tabs-fade-right:16px}
 .app-players-groups[data-can-scroll-right="false"]{--app-tabs-fade-right:0px}
 .app-players-groups::-webkit-scrollbar{display:none}
 .app-players-group{flex:0 0 calc(40% - 3.2px);width:calc(40% - 3.2px);min-width:calc(40% - 3.2px);max-width:calc(40% - 3.2px);min-height:34px;height:34px;padding:5px 4px;font-size:clamp(10px,2.8vw,11px);white-space:nowrap}
 .app-players-count{align-self:center;flex-basis:102px;min-width:102px;width:102px;margin-top:0;font-size:11px}
 .app-players-count-placeholder{flex-basis:86px;width:86px}
}
@media(prefers-reduced-motion:reduce){.app-players-tabs .app-competition-tab,.app-players-group{transition:none}}

/* PLAYERS-FILTERS-01: accessible native modal drawer. The table never reflows when opened. */
.app-players-header{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:44px}
.app-players-filter-trigger{display:inline-flex;align-items:center;justify-content:center;gap:8px;flex:0 0 auto;box-sizing:border-box;min-width:108px;height:40px;padding:6px 12px;border:1px solid var(--border);border-radius:var(--fa-radius-panel);background:var(--surface);color:var(--text);font:inherit;font-size:13px;font-weight:650;line-height:1.2;cursor:pointer}
.app-players-filter-trigger:hover{border-color:var(--focus)}
.app-players-filter-trigger:focus-visible,.app-players-filter-control :is(select,input):focus-visible,.app-players-reset:focus-visible,.app-players-apply:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.app-players-filter-active{display:inline-grid;place-items:center;flex:0 0 24px;width:24px;height:24px;padding:0;box-sizing:border-box;border:1px solid var(--border);border-radius:50%;background:var(--line);color:var(--text);font-size:11px;line-height:1;font-weight:750;font-variant-numeric:tabular-nums}
.app-players-filter-active[hidden]{display:none}
.app-players-filter-dialog{position:fixed;inset:var(--players-filter-top,60px) 0 0 auto;box-sizing:border-box;width:min(420px,100vw);max-width:100vw;height:calc(100dvh - var(--players-filter-top,60px));max-height:calc(100dvh - var(--players-filter-top,60px));margin:0;padding:0;border:0;border-left:1px solid var(--border);border-radius:0;background:var(--surface);color:var(--text);box-shadow:-16px 0 48px rgba(0,0,0,.28);overflow:hidden;z-index:2147483647}
.app-players-filter-dialog:not(:popover-open){display:none}
.app-players-filter-dialog:popover-open{display:flex;flex-direction:column;animation:players-filter-slide-in .24s cubic-bezier(.2,.85,.2,1) both}
.app-players-filter-dialog:popover-open.is-closing{animation:players-filter-slide-out .22s cubic-bezier(.4,0,.75,.25) both}
/* No scrim or scroll lock: page/header and existing scrollbar remain untouched. */
.app-players-filter-dialog::backdrop{background:transparent;pointer-events:none}
@keyframes players-filter-slide-in{from{transform:translate3d(100%,0,0)}to{transform:translate3d(0,0,0)}}
@keyframes players-filter-slide-out{from{transform:translate3d(0,0,0)}to{transform:translate3d(100%,0,0)}}
.app-players-filter-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:66px;padding:12px 20px;border-bottom:1px solid var(--border);box-sizing:border-box}
.app-players-filter-dialog-header h2{margin:0;font-size:20px;font-weight:750;line-height:1.3}
.app-players-filter-form{display:flex;flex-direction:column;flex:1 1 auto;min-height:0;margin:0}
.app-players-filters{display:grid;grid-template-columns:minmax(0,1fr);align-content:start;gap:0;flex:1 1 auto;min-height:0;padding:8px 16px 24px;box-sizing:border-box;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:var(--scroll-thumb) transparent}
.app-players-filter-control{display:flex;flex-direction:column;gap:7px;min-width:0;font-size:12px;font-weight:650;color:var(--muted)}

/* Expandable sections preserve panel geometry; only their internal content scrolls. */
.app-players-filter-section{display:block;min-width:0;border:0;border-bottom:1px solid var(--border);border-radius:0;background:transparent;overflow:visible}
.app-players-filter-section-header{display:flex;align-items:center;gap:10px;min-height:44px;padding:9px 6px;box-sizing:border-box;cursor:pointer;color:var(--text);font-size:13px;font-weight:750;list-style:none}
.app-players-filter-section-header::-webkit-details-marker{display:none}
.app-players-filter-section-header::marker{content:""}
.app-players-filter-section-header>span:first-child{flex:1;min-width:0}
.app-players-filter-section-header>.language-chevron,.app-players-attribute-category>summary>.language-chevron{display:block;flex:0 0 16px;width:16px;height:16px;margin:0;transform:rotate(0deg);transform-origin:50% 50%;transition:transform .16s ease;pointer-events:none}
.app-players-filter-section-header .language-chevron{transition:transform .16s ease}
.app-players-filter-section[open]:not(.is-collapsing) .app-players-filter-section-header .language-chevron{transform:rotate(180deg)}
.app-players-filter-section-header:focus-visible{outline:2px solid var(--focus);outline-offset:-2px}
/* The section titles are interactive, but no hover/tap selection or highlight is painted. */
.app-players-filter-section-header,.app-players-attribute-category>summary,.app-players-filter-control>span,.app-players-attribute-pick,.app-players-scope-control{user-select:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent}
.app-players-filter-section-header:hover,.app-players-filter-section-header:active,.app-players-attribute-category>summary:hover,.app-players-attribute-category>summary:active,.app-players-attribute-pick:hover,.app-players-attribute-pick:active,.app-players-scope-control:hover,.app-players-scope-control:active{color:inherit;background:transparent;box-shadow:none;text-shadow:none;filter:none}
@media(prefers-reduced-motion:reduce){.app-players-filter-section-header>.language-chevron,.app-players-attribute-category>summary>.language-chevron{transition:none}}

.app-players-filter-section-count{display:grid;place-items:center;flex:0 0 22px;width:22px;height:22px;padding:0;border:1px solid var(--border);border-radius:50%;background:var(--line);color:var(--text);font-size:11px;line-height:1;font-variant-numeric:tabular-nums}
.app-players-filter-section-count[hidden]{display:none}
.app-players-filter-section-body{display:grid;gap:12px;min-width:0;padding:4px 6px 16px;border-top:0}
.app-players-scope-control{display:flex;align-items:center;gap:10px;cursor:default;min-width:0;color:var(--text);font-size:12px;font-weight:650;line-height:1.5}
.app-players-scope-control input{width:17px;height:17px;min-width:17px;accent-color:var(--focus);cursor:pointer}
.app-players-filter-menu .app-players-filter-option-tick{display:grid;place-items:center;flex:0 0 17px;width:17px;height:17px;border:1px solid var(--border);border-radius:4px;color:transparent;font-size:12px;line-height:1}
.app-players-filter-menu .language-option{display:flex;align-items:center;gap:8px}
.app-players-filter-menu .language-option[hidden]{display:none}
.app-players-filter-menu .language-option[aria-selected="true"] .app-players-filter-option-tick{color:var(--text);border-color:var(--focus);background:rgba(91,142,121,.22)}
.app-players-filter-search{position:sticky;top:-5px;z-index:1;padding:4px 4px 8px;background:var(--surface)}
.app-players-filter-search input{box-sizing:border-box;width:100%;height:38px;padding:7px 10px;border:1px solid var(--border);border-radius:var(--fa-radius-control);background:var(--surface);color:var(--text);font:inherit;font-size:13px}
.app-players-filter-search input:focus-visible,.app-players-scope-control input:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.app-players-filter-section .app-players-age-range{gap:8px}
/* Age and Height both have fixed-size plain boxes, without browser stepper arrows. */
.app-players-age-range input{appearance:textfield;-moz-appearance:textfield;text-align:center;font-variant-numeric:tabular-nums}
.app-players-age-range input::-webkit-inner-spin-button,.app-players-age-range input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
/* Attributes: four compact nested categories, only selected rows reveal min/max. */
.app-players-name-section .app-players-filter-section-header{cursor:default}
.app-players-name-section .app-players-filter-section-body{padding-top:4px}
.app-players-name-control{padding:0}
.app-players-name-control input{width:100%;height:44px;border:1px solid var(--border);border-radius:var(--fa-radius-control);background:var(--surface);color:var(--text);padding:10px 12px;font-size:14px}
.app-players-name-control input:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
/* Native search-field clear X remains a direct pointer target on Chrome and Safari. */
.app-players-name-control input::-webkit-search-cancel-button{cursor:pointer}
.app-players-filter-control:has(.app-players-filter-multi)>span{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.app-players-attribute-categories{gap:9px}
.app-players-attribute-category{min-width:0;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent}
.app-players-attribute-category:last-child{border-bottom:0}
.app-players-attribute-category>summary{display:flex;align-items:center;gap:10px;box-sizing:border-box;min-height:40px;padding:8px 4px;list-style:none;font-size:13px;font-weight:700;cursor:pointer}
.app-players-attribute-category>summary::-webkit-details-marker{display:none}
.app-players-attribute-category>summary::marker{content:""}
.app-players-attribute-category>summary>span:first-child{flex:1}
.app-players-attribute-category>summary>.language-chevron{transition:transform .16s ease}
.app-players-attribute-category[open]:not(.is-collapsing)>summary>.language-chevron{transform:rotate(180deg)}
.app-players-attribute-category>summary:focus-visible{outline:2px solid var(--focus);outline-offset:-2px}
.app-players-attribute-count{display:grid;place-items:center;flex:0 0 22px;width:22px;height:22px;padding:0;border:1px solid var(--border);border-radius:50%;background:var(--line);color:var(--text);font-size:11px;line-height:1;font-variant-numeric:tabular-nums}
.app-players-attribute-count[hidden],.app-players-attribute-bounds[hidden]{display:none!important}
.app-players-attribute-options{display:grid;gap:8px;padding:8px 4px 14px;border-top:0}
.app-players-attribute-item{display:grid;gap:8px;min-width:0;padding-block:4px}
.app-players-attribute-item+.app-players-attribute-item{border-top:1px solid var(--border);padding-top:12px}
.app-players-attribute-pick{display:flex;align-items:center;gap:9px;min-width:0;color:var(--text);font-size:13px;cursor:default}
.app-players-attribute-pick input{width:17px;height:17px;min-width:17px;accent-color:var(--focus);cursor:pointer}
.app-players-attribute-pick input:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.app-players-attribute-bounds{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding-left:25px}
.app-players-attribute-bounds input{box-sizing:border-box;width:100%;min-width:0;height:40px;padding:8px 10px;border:1px solid var(--border);border-radius:var(--fa-radius-control);background:var(--surface);color:var(--text);font-size:13px;text-align:center;font-variant-numeric:tabular-nums;appearance:textfield;-moz-appearance:textfield}
.app-players-attribute-bounds input::-webkit-inner-spin-button,.app-players-attribute-bounds input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.app-players-attribute-bounds input:focus-visible{outline:2px solid var(--focus);outline-offset:2px}


.app-players-filter-control>span{min-height:16px;line-height:16px}
/* #763: captions and wrapper space are inert, never proxy input activation.
 * Actual inputs, dropdown triggers and section summaries keep their native
 * keyboard/focus behaviour; no hover state is propagated from captions. */
.app-players-filter-form :is(.app-players-filter-control,.app-players-scope-control,.app-players-attribute-pick)>span{cursor:default;user-select:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent}
.app-players-filter-form :is(.app-players-filter-control,.app-players-scope-control,.app-players-attribute-pick){cursor:default}
.app-players-filter-form :is(.app-players-scope-control,.app-players-attribute-pick):is(:hover,:active){color:var(--text);background:transparent;box-shadow:none}
.app-players-filter-form :is(.app-players-scope-control,.app-players-attribute-pick)>input[type="checkbox"]{cursor:pointer}
.app-players-filter-control input{box-sizing:border-box;width:100%;min-width:0;height:44px;min-height:44px;padding:10px 12px;border:1px solid var(--border);border-radius:var(--fa-radius-control);background:var(--surface);color:var(--text);font:inherit;font-size:14px;line-height:1.3}
.app-players-filter-native[hidden]{display:none!important}
.app-players-filter-select.language-control{width:100%;min-width:0;z-index:1}
.app-players-filter-select.language-control:has(.language-trigger[aria-expanded="true"]){z-index:45}
.app-players-filter-select .language-trigger{box-sizing:border-box;width:100%;min-width:0;min-height:44px;height:44px;font-size:14px;line-height:1.3}
/* Keep the selected value and dropdown chevron in fixed positions.
 * Opening rotates the chevron around its own center without translation. */
.app-players-filter-dropdown-trigger[aria-expanded="true"]>.language-chevron{transform:translateY(-50%) rotate(180deg)}
/* Keep the selected All/value perfectly centered without shifting the chevron. */
.app-players-filter-dropdown-trigger{position:relative;padding-inline:34px}
.app-players-filter-dropdown-trigger>[data-players-filter-value]{display:block;flex:1 1 auto;min-width:0;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.app-players-filter-dropdown-trigger>.language-chevron{position:absolute;right:10px;top:50%;transform:translateY(-50%);pointer-events:none}
.app-players-filter-menu .language-option[data-players-filter-option=""]{justify-content:center;text-align:center}
.app-players-filter-menu .language-option[data-players-filter-option=""] .app-players-filter-option-tick{display:none}
.app-players-filter-dialog>.app-players-filter-menu .language-option[data-players-filter-option=""]{justify-content:center;text-align:center}
.app-players-filter-dialog>.app-players-filter-menu .language-option[data-players-filter-option=""] .app-players-filter-option-tick{display:none}

.app-players-filter-select .language-trigger>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.app-players-filter-select .language-menu{box-sizing:border-box;inset-inline:0;width:100%;min-width:0;max-height:280px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--scroll-thumb) transparent}
/* Portaled to the top-layer dialog while open: escaped from the scroller clipping context. */
.app-players-filter-dialog>.app-players-filter-menu{position:absolute;inset:auto;z-index:100;box-sizing:border-box;min-width:0;max-height:none;overflow-y:auto;overscroll-behavior:contain;pointer-events:auto;box-shadow:var(--fa-dropdown-shadow)}
.app-players-filter-dialog>.app-players-filter-menu .language-option{display:flex;align-items:center;gap:8px}
.app-players-filter-dialog>.app-players-filter-menu .language-option[hidden]{display:none}
.app-players-filter-dialog>.app-players-filter-menu .language-option[aria-selected="true"] .app-players-filter-option-tick{color:var(--text);border-color:var(--focus);background:rgba(91,142,121,.22)}
@media(prefers-reduced-motion:reduce){.app-players-filter-section-header .language-chevron{transition:none}}
.app-players-filter-select .language-option{min-height:44px;padding:10px;font-size:13px}
.app-players-filter-select .language-option:focus-visible{outline:2px solid var(--focus);outline-offset:-2px}
.app-players-filter-control input:invalid{border-color:var(--focus)}
.app-players-age-range{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.app-players-filter-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;flex:0 0 auto;padding:16px 20px calc(16px + env(safe-area-inset-bottom,0px));border-top:1px solid var(--border);box-sizing:border-box;background:var(--surface)}
.app-players-reset,.app-players-apply{box-sizing:border-box;width:100%;min-width:0;min-height:44px;padding:8px;border:1px solid var(--border);border-radius:var(--fa-radius-panel);background:var(--surface);color:var(--text);font:inherit;font-size:13px;font-weight:700;line-height:1.2;cursor:pointer}
.app-players-apply{background:var(--focus);border-color:var(--focus);color:var(--surface)}
.app-players-reset:hover,.app-players-apply:hover{filter:brightness(1.1)}
.app-players-filter-dialog+.app-players-table-scroll{margin-top:0}
@media(max-width:620px){.app-players-header{gap:8px}.app-players-filter-trigger{min-width:104px;padding-inline:10px}.app-players-filter-dialog{width:min(420px,100vw)}}
@media(prefers-reduced-motion:reduce){.app-players-filter-trigger,.app-players-filter-dialog{transition:none;animation:none!important}}

/* Shared fixed tooltip, above scrolling Players and Admin preview tables. */
.app-players-nationality-tooltip{position:fixed;z-index:2147482000;max-width:min(260px,calc(100vw - 16px));padding:9px 13px;border:1px solid var(--border);border-radius:9px;background:var(--surface);color:var(--text);box-shadow:0 12px 30px #0007;pointer-events:none;font-size:12px;line-height:1.4;animation:app-world-tooltip-in 170ms ease-out both}
.app-players-nationality-tooltip[hidden]{display:none}
.app-players-nationality-tooltip.is-closing{animation:app-world-tooltip-out 130ms ease-in both}
.app-players-nationality-flag:focus-visible{outline:2px solid var(--focus);outline-offset:3px;border-radius:2px}
@media(prefers-reduced-motion:reduce){.app-players-nationality-tooltip,.app-players-nationality-tooltip.is-closing{animation:none!important}}

/* Admin generator preview deliberately shares the exact Players table, tabs, toolbar
 * and loading geometry. These rules style ONLY the three actions and save dialog. */
.app-players-preview-page{min-width:0;width:100%}
.app-players-preview-page[hidden]{display:none!important}
.app-players-preview-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px;min-width:0;flex:1 1 auto}
.app-players-preview-actions .app-players-filter-trigger{min-width:0;white-space:nowrap;text-decoration:none}
.app-players-preview-actions .app-players-filter-trigger:disabled{opacity:.45;cursor:default}
.app-players-preview-message{flex:1 1 160px;min-width:0;margin:0;font-size:13px;text-align:right;line-height:1.35;color:var(--muted);overflow-wrap:anywhere}
.app-players-preview-message[hidden]{display:none!important}
.app-players-preview-confirm-dialog{width:min(430px,calc(100vw - 28px));max-width:430px;max-height:calc(100dvh - 28px);margin:auto;padding:0;border:1px solid var(--border);border-radius:var(--fa-radius-panel);background:var(--surface);color:var(--text);box-shadow:0 18px 52px rgba(0,0,0,.34)}
.app-players-preview-confirm-dialog:not([open]){display:none}
.app-players-preview-confirm-dialog::backdrop{background:rgba(5,12,17,.65)}
.app-players-preview-confirm-content{display:grid;gap:14px;padding:22px}
.app-players-preview-confirm-header{display:flex;align-items:center;justify-content:space-between;gap:12px}
.app-players-preview-confirm-content h2{margin:0;min-width:0;font-size:18px;font-weight:700}
.app-players-preview-confirm-content label{font-size:13px;line-height:1.5}
.app-players-preview-confirm-content input{box-sizing:border-box;width:100%;min-height:40px;border:1px solid var(--border);border-radius:var(--fa-radius-panel);padding:8px 12px;background:var(--surface);color:var(--text);font:inherit}
.app-players-preview-confirm-content input:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.app-players-preview-confirm-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px}
.app-players-preview-confirm-actions .app-players-filter-trigger:disabled{opacity:.45;cursor:default}
html[data-theme="light"] .app-players-preview-confirm-dialog::backdrop{background:rgba(16,34,29,.38)}
@media(max-width:800px){.app-players-preview-page .app-players-header{flex-wrap:wrap;align-items:flex-start}.app-players-preview-actions{width:100%;justify-content:flex-start}.app-players-preview-message{text-align:left}}

/* Align Player names as inline text, matching Admin Contracts' native
 * table-cell baseline. The underline is a text decoration, not a generated
 * flex/absolute box; it cannot influence line-box centering or link geometry. */
.app-players-table :is(.app-player-name-link,.club-roster-player-link){display:inline;color:inherit;font:inherit;line-height:inherit;text-decoration:none;white-space:nowrap}
.app-players-table .app-player-club-link{position:relative;display:inline-flex;align-items:center;vertical-align:middle;max-width:100%;min-height:18px;color:inherit;font:inherit;line-height:18px;text-decoration:none;overflow-wrap:anywhere}
.app-players-table :is(.app-player-name-link,.club-roster-player-link,.app-player-club-link):is(:hover,:focus-visible){text-decoration-line:underline;text-underline-offset:3px;text-decoration-thickness:1px;text-decoration-skip-ink:auto}
.app-players-table :is(.app-player-name-link,.club-roster-player-link,.app-player-club-link):focus-visible{outline:2px solid var(--focus);outline-offset:2px;border-radius:2px}

/* UI-VIEWS-01 (#559): view/subview controls only. No Club History content styles.
 * Desktop: narrower view buttons. Mobile: preserve the established 2.5-tab
 * scroll geometry and touch heights, but rebalance labels; Players main tabs
 * become shorter in width without changing their font size. */
body.app-body{--fa-tab-width-regular:100px}
body.app-body .app-players-tabs:not(.club-roster-tabs) .app-competition-tab{
 flex:0 0 116px;width:116px;min-width:116px;max-width:116px;padding-inline:7px
}
@media(min-width:621px){
 body.app-body .app-players-groups{max-width:424px}
 body.app-body .club-roster .club-roster-tabs .app-competition-tab{
  flex:0 0 84px;width:84px;min-width:84px;max-width:84px;padding-inline:4px
 }
}
@media(max-width:620px){
 body.app-body .app-players-tabs:not(.club-roster-tabs) .app-competition-tab{
  flex:0 0 min(116px,calc((100% - 4px)/2));width:min(116px,calc((100% - 4px)/2));min-width:0;max-width:116px
 }
 body.app-body .app-competition-tabs:not(.app-players-tabs) .app-competition-tab{font-size:12px}
}

/* PLAYERS-MOBILE-01 (#574): keep the scrolling table inside the phone viewport.
 * A border on width:100% must not add to its outer width. All desktop geometry
 * and the approved responsive table column tracks remain unchanged. */
@media(max-width:720px){
 .app-players-table-scroll{box-sizing:border-box;scroll-padding-inline:10px}
}

/* #574: retain full names on desktop and for assistive technology. Table
 * edges fade only where scrolling in that direction is possible. */
.fa-player-short-name{display:none}
@media(max-width:720px){
 .app-players-table .fa-player-full-name,
 .app-admin-view .admin-contracts-table .fa-player-full-name{display:none}
 .app-players-table .fa-player-short-name,
 .app-admin-view .admin-contracts-table .fa-player-short-name{display:inline}
 .app-players-table :is(th,td){padding-inline:7px}
 .app-players-table :is(th,td):first-child{padding-inline:4px}
 .app-players-table-scroll{
  --fa-table-fade-left:0px;--fa-table-fade-right:16px;
  -webkit-mask-image:linear-gradient(to right,transparent,#000 var(--fa-table-fade-left),#000 calc(100% - var(--fa-table-fade-right)),transparent);
  mask-image:linear-gradient(to right,transparent,#000 var(--fa-table-fade-left),#000 calc(100% - var(--fa-table-fade-right)),transparent)
 }
 .app-players-table-scroll[data-can-scroll-left="true"]{--fa-table-fade-left:16px}
 .app-players-table-scroll[data-can-scroll-right="true"]{--fa-table-fade-right:16px}
 .app-players-table-scroll[data-can-scroll-right="false"]{--fa-table-fade-right:0px}
}

/* #574: mobile labels from render-time attributes; desktop text and full
 * accessibility names remain unchanged. No async DOM replacement. */
@media(max-width:720px){
 /* Explicit full/short spans preserve the same native text baseline on
  * mobile and desktop; no font-size:0 or generated ::before content. */
 /* Mobile Player names use the same inline typography as Admin Contracts.
  * The cell keeps the 18px line box; the link is not a flex layout box.
  * Only linked names get a zero-sized cell strut, preserving unlinked names. */
 .app-players-table tbody td:nth-child(2):has(> :is(.app-player-name-link,.club-roster-player-link)[data-mobile-name]){font-size:0}
 .app-players-table tbody td:nth-child(2) > :is(.app-player-name-link,.club-roster-player-link)[data-mobile-name]{display:inline;box-sizing:content-box;width:auto;max-width:none;min-height:0;height:auto;margin:0;padding:0;font-size:14px;line-height:18px;text-align:left;white-space:nowrap;overflow:visible;text-overflow:clip}
 .app-players-table tbody td:nth-child(2) > :is(.app-player-name-link,.club-roster-player-link)[data-mobile-name] > :is(.fa-player-full-name,.fa-player-short-name){display:none}
 .app-players-table tbody td:nth-child(2) > :is(.app-player-name-link,.club-roster-player-link)[data-mobile-name]::before{content:attr(data-mobile-name);font-size:14px;line-height:18px;white-space:nowrap}
 /* iOS/mobile visual adjustment: lower the inline name glyph/link together.
  * Relative positioning preserves row geometry, underline, and keyboard focus;
  * scope to linked Player names only, never Admin Contracts or desktop. */
 .app-players-table tbody td:nth-child(2) > :is(.app-player-name-link,.club-roster-player-link)[data-mobile-name]{position:relative;top:2px}
 /* The native underline belongs to the inline text, not a separate box. */
 .app-admin-view .admin-contracts-table td.admin-contracts-player-name[data-mobile-name]{font-size:0}
 .app-admin-view .admin-contracts-table td.admin-contracts-player-name[data-mobile-name]::before{content:attr(data-mobile-name);font-size:14px;line-height:18px}
 .app-players-table .app-player-club-name[data-mobile-club-name]{font-size:0}
 .app-players-table .app-player-club-name[data-mobile-club-name]::before{content:attr(data-mobile-club-name);font-size:14px;line-height:18px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
}
@media(max-width:420px){
}

/* #574: mobile Club header and rows follow the desktop left alignment.
 * Crest and short name stay on one line; hover underline remains anchored to
 * the 18px intrinsic text link and never changes the row geometry. */
@media(max-width:720px){
 .app-players-table[data-players-public]:not([data-players-table-mode="attributes"]) tbody td.app-players-club-cell{text-align:left}
 .app-players-table[data-players-public]:not([data-players-table-mode="attributes"]) .app-players-club-content{display:flex;align-items:center;justify-content:flex-start;gap:0;width:100%;max-width:100%;height:28px;margin:0;padding:0}
 .app-players-table[data-players-public]:not([data-players-table-mode="attributes"]) .app-players-club-label-anchor{position:relative;display:inline-flex;align-items:center;justify-content:flex-start;gap:4px;flex:0 1 auto;min-width:0;max-width:100%}
 .app-players-table[data-players-public]:not([data-players-table-mode="attributes"]) .app-players-club-mark{position:relative;right:auto;top:auto;transform:none}
 .app-players-table[data-players-public]:not([data-players-table-mode="attributes"]) .app-player-club-link{display:inline-flex;align-items:center;justify-content:flex-start;flex:0 1 auto;width:max-content;min-width:0;max-width:calc(100% - 28px);height:18px;min-height:18px;line-height:18px;vertical-align:middle;text-align:left;overflow:hidden}
 .app-players-table[data-players-public]:not([data-players-table-mode="attributes"]) .app-player-club-name{display:inline-block;width:max-content;max-width:100%;min-width:0;height:18px;line-height:18px;vertical-align:middle;text-align:left;overflow:hidden}
 .app-players-table[data-players-public]:not([data-players-table-mode="attributes"]) .app-player-club-name[data-mobile-club-name]::before{display:inline-block;line-height:18px;vertical-align:middle}
 /* The static first-paint and hydrated Club headers share this class. */
 .app-players-table[data-players-public]:not([data-players-table-mode="attributes"]) th.app-players-club-col{text-align:left}
}
@media(max-width:420px){
 .app-players-table :is(th,td){padding-inline:6px}
 .app-players-table :is(th,td):first-child{padding-inline:4px}
}

@media(max-width:720px){
 /* Show a plus button only if the full comma-separated list cannot fit. */
 .fa-positions-layout{display:flex;align-items:center;gap:4px;min-width:0;width:100%;height:28px;white-space:nowrap}
 .fa-positions-visible{display:block;flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .fa-positions-cell[data-fa-compact="true"] .fa-positions-more{display:inline-flex}
 .fa-positions-more{display:none;align-items:center;justify-content:center;flex:0 0 auto;min-width:22px;width:auto;height:22px;min-height:22px;border:1px solid var(--border);border-radius:5px;background:var(--surface);color:var(--text);font:inherit;font-size:13px;font-weight:700;line-height:1;cursor:pointer;padding:0 4px;-webkit-tap-highlight-color:transparent}
 .fa-positions-more:hover,.fa-positions-more[aria-expanded="true"]{border-color:var(--focus)}
 .fa-positions-more:focus-visible{outline:2px solid var(--focus);outline-offset:1px}
}
.fa-positions-popup{position:fixed;z-index:1100;box-sizing:border-box;max-width:min(280px,calc(100vw - 16px));width:max-content;padding:9px 12px;border:1px solid var(--border);border-radius:8px;background:var(--surface);color:var(--text);font-size:14px;line-height:1.4;white-space:normal;overflow-wrap:anywhere;box-shadow:0 6px 18px #0005;pointer-events:none;animation:app-world-tooltip-in 170ms ease-out both}
.fa-positions-popup[data-placement="above"]{transform-origin:bottom center}
.fa-positions-popup[data-placement="below"]{transform-origin:top center}
.fa-positions-popup.is-closing{animation:app-world-tooltip-out 130ms ease-in both}
.fa-positions-popup[hidden]{display:none}
@media(prefers-reduced-motion:reduce){.fa-positions-popup,.fa-positions-popup.is-closing{animation:none!important}}

/* Restored desktop text must not expose mobile-only controls between frames. */
.fa-positions-more{display:none}

/* #605: native links occupy the two real 26x28px score boxes for each
 * match leg. Separate elements avoid Safari BFCache pseudo hit-test failures.
 * The central gap, card and club labels are never covered by match links. */
.fa-bracket-card.is-match-link{position:relative}
.fa-bracket-match-link{position:absolute;z-index:2;display:block;block-size:28px;cursor:pointer;pointer-events:auto}
.fa-bracket-match-link[data-fa-match-row="1"]{inset-block-start:calc(25% - 14px)}
.fa-bracket-match-link[data-fa-match-row="2"]{inset-block-start:calc(75% - 14px)}
.fa-bracket-match-link[data-fa-match-leg="1"]{inset-inline-end:calc(var(--fa-bracket-score-inset) + var(--fa-bracket-score-width) + 3px);width:var(--fa-bracket-score-width)}
.fa-bracket-match-link[data-fa-match-leg="2"],
.fa-bracket-card[data-fa-match-legs="1"] .fa-bracket-match-link[data-fa-match-leg="1"]{inset-inline-end:calc(var(--fa-bracket-score-inset) - 1px);width:var(--fa-bracket-score-width)}
/* The shared html[data-fa-standings-loading] rule disables the anchors while loading. */
.fa-bracket-match-link:focus-visible{outline:none}
.fa-bracket-card .fa-bracket-identity a{position:relative;z-index:3}
.fa-bracket-card .fa-bracket-score strong{position:relative;z-index:3}
html:not([data-fa-fixture-hover-suspended]) .fa-bracket-card[data-fa-match-legs="1"]:has(.fa-bracket-match-link[data-fa-match-leg="1"]:hover) .fa-bracket-row .fa-bracket-score:nth-child(2),
.fa-bracket-card[data-fa-match-legs="1"]:has(.fa-bracket-match-link[data-fa-match-leg="1"]:focus-visible) .fa-bracket-row .fa-bracket-score:nth-child(2),
html:not([data-fa-fixture-hover-suspended]) .fa-bracket-card[data-fa-match-legs="2"]:has(.fa-bracket-match-link[data-fa-match-leg="1"]:hover) .fa-bracket-row .fa-bracket-score:nth-child(2),
.fa-bracket-card[data-fa-match-legs="2"]:has(.fa-bracket-match-link[data-fa-match-leg="1"]:focus-visible) .fa-bracket-row .fa-bracket-score:nth-child(2),
html:not([data-fa-fixture-hover-suspended]) .fa-bracket-card[data-fa-match-legs="2"]:has(.fa-bracket-match-link[data-fa-match-leg="2"]:hover) .fa-bracket-row .fa-bracket-score:nth-child(3),
.fa-bracket-card[data-fa-match-legs="2"]:has(.fa-bracket-match-link[data-fa-match-leg="2"]:focus-visible) .fa-bracket-row .fa-bracket-score:nth-child(3){
 background:color-mix(in srgb,var(--fa-shell-accent) 20%,var(--surface));
 border-color:color-mix(in srgb,var(--fa-shell-accent) 65%,var(--border));
}
.fa-bracket-card:has(.fa-bracket-match-link[data-fa-match-leg="1"]:focus-visible) .fa-bracket-row .fa-bracket-score:nth-child(2),
.fa-bracket-card[data-fa-match-legs="2"]:has(.fa-bracket-match-link[data-fa-match-leg="2"]:focus-visible) .fa-bracket-row .fa-bracket-score:nth-child(3){outline:2px solid var(--focus);outline-offset:1px}
@media(prefers-reduced-motion:reduce){.fa-bracket-score{transition:none}}

/* A verified empty standings state occupies a visible region, rather than one
   68px table row. Center the translated message within that region while
   retaining the actual table header and the mobile/desktop shell geometry. */
#competition-panel-standings #app-standings-body tr.app-standings-empty-row{
 height:clamp(240px,40vh,360px);
}
#competition-panel-standings #app-standings-body td.app-competition-empty-row{
 display:table-cell!important;
 height:clamp(240px,40vh,360px);
 vertical-align:middle;
 padding:16px!important;
 text-align:center;
}
#competition-panel-standings #app-standings-compact-list .app-world-mobile-empty{
 display:flex;
 align-items:center;
 justify-content:center;
 box-sizing:border-box;
 min-height:clamp(240px,40vh,360px);
 text-align:center;
}

.app-history-tied-club{grid-column:2;grid-row:1;display:inline-flex;align-items:center;gap:5px;min-width:0;max-width:100%;width:max-content;justify-self:start}
.app-history-tied-club .app-world-club-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.app-history-tied-club>.app-history-player-detail{flex:0 0 auto;white-space:nowrap}
/* First paint and hydrated team holders use the same inline text wrapper.
   The +N button can appear without moving the name slot. */
#competition-panel-history .history-team-placeholder .app-history-tied-club{
 grid-column:2;grid-row:1
}

.app-history-dev-record:has([aria-expanded="true"]){height:auto}

.app-history-player-name-row a,.app-history-player-holders a{width:fit-content;max-width:100%;text-underline-offset:.16em}
/* A record has the same three slots before and after the season response. */
.app-history-record-group .app-competition-stat-card{grid-template-rows:minmax(var(--fa-record-heading),max-content) auto minmax(0,1fr)}
.app-history-record-group .app-competition-stat-value>.app-skeleton-bar{width:2.4ch;height:.7em;max-width:100%}
.app-history-player-footer,.app-history-dialog-player,.history-team-placeholder,.history-player-placeholder{display:flex;align-items:center;gap:8px;min-width:0}
.app-history-record-holders,.app-history-player-footer,.history-team-placeholder,.history-player-placeholder{align-self:end}
.app-history-player-labels,.history-placeholder-lines{display:grid;align-content:center;gap:4px;min-width:0;flex:1}
.app-history-player-context{display:flex;align-items:baseline;gap:.3em}
.app-history-player-context a{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.app-history-player-context a:last-child{flex-shrink:0}
.history-placeholder-lines>.app-skeleton-bar{display:block;width:min(13ch,92%);height:.78em}
.history-placeholder-meta{display:flex;align-items:center;gap:6px;font-size:.76rem}
.history-placeholder-meta>.app-skeleton-bar{width:min(8ch,50%);height:.72em}
.history-placeholder-meta>.app-skeleton-bar:last-child,.history-placeholder-season{width:5.5ch}
.history-placeholder-season>.app-skeleton-bar{display:block;width:100%;height:.72em}
@media(max-width:620px){.app-history-player-footer,.history-player-placeholder,.history-team-placeholder{gap:6px}}

[data-history-scope-preview="all-time"] .history-team-placeholder .history-placeholder-season{display:none}
#competition-panel-history .app-history-player-footer>.app-history-dev-season-link{grid-column:3;grid-row:1;min-height:0;justify-self:end}
.app-history-record-group .app-competition-stat-value:has(>.app-skeleton-bar){display:flex;align-items:center;min-height:1.25em}
.history-placeholder-season{position:relative;width:auto;font-size:inherit;line-height:1.35}
.history-placeholder-season>span:first-child{visibility:hidden}
.history-placeholder-season>.app-skeleton-bar{position:absolute;inset-inline:0;top:50%;transform:translateY(-50%)}
@media(max-width:620px){.app-view-skeleton-record-holder{min-height:40px}}

/* Record holders and their placeholders share the same type scale and line boxes. */
:is(#competition-panel-history,.app-history-player-dialog){
 --history-name-size:.875rem;
 --history-meta-size:.8125rem;
}
:is(#competition-panel-history,.app-history-player-dialog) :is(.app-history-dev-record-entry .app-world-club-name,.app-history-player-name,.app-history-dialog-player-info>:is(a,strong),.app-history-dialog-club-info>.app-world-club-name,.history-placeholder-lines){
 font-size:var(--history-name-size);line-height:1.35;font-weight:650;color:var(--text)
}
:is(#competition-panel-history,.app-history-player-dialog) :is(.app-history-dev-season-link,.app-history-season,.history-placeholder-season,.app-history-player-context,.app-history-player-clubs,.app-history-dialog-club-seasons,.history-placeholder-meta){
 font-size:var(--history-meta-size);line-height:1.35;font-weight:400;color:var(--muted)
}
:is(#competition-panel-history,.app-history-player-dialog) .app-history-dev-season-link .app-history-dev-season{font:inherit;color:inherit}
:is(#competition-panel-history,.app-history-player-dialog) a.app-world-standing-club-link:is(:hover,:focus-visible){color:var(--text);text-decoration:underline}
.history-placeholder-lines>.app-skeleton-bar{margin-block:0;height:1.35em;background:none;display:flex;align-items:center}
.history-placeholder-lines>.app-skeleton-bar::after{content:"";width:100%;height:.76em;border-radius:4px;background:color-mix(in srgb,var(--muted) 22%,var(--surface))}
.history-placeholder-meta{height:1.35em}
.history-placeholder-meta>.app-skeleton-bar:only-child{width:min(11ch,86%)}

/* Record skeletons borrow hydrated team/player DOM and typography instead of
   approximating the club line with a separate flex layout. */
.app-competition-view-skeleton .app-world-club-crest-placeholder.app-view-skeleton-crest-slot{
 background:var(--fa-crest-skeleton-fill);border-radius:50%
}
.app-competition-view-skeleton .app-world-club-crest-placeholder.app-view-skeleton-crest-slot::before{content:none}
.app-competition-view-skeleton .app-view-skeleton-name-slot{
 display:inline-block;position:relative;box-sizing:border-box;vertical-align:baseline;
 width:min(13ch,100%);max-width:100%;line-height:1.35;white-space:nowrap
}
/* Lengthen only the club-name skeleton in Competition History Team Records. */
.app-competition-view-skeleton .app-view-skeleton-team-name{width:20ch;max-width:100%}
@media(max-width:620px){.app-competition-view-skeleton .app-view-skeleton-team-name{width:14ch}}
.app-competition-view-skeleton .app-view-skeleton-player-club{width:min(11ch,100%)}
.app-competition-view-skeleton .app-view-skeleton-name-slot>span:first-child{visibility:hidden}
.app-competition-view-skeleton .app-view-skeleton-name-slot>.app-skeleton-bar{
 display:block;position:absolute;left:0;top:50%;transform:translateY(-50%);
 width:100%;max-width:100%;height:.76em;border-radius:4px
}

/* Team-record ties now sit inline with the club name inside the existing holder
   row; the card's fixed value/holder rows remain identical to first paint. */
#competition-panel-history .app-history-dev-record{
 grid-template-columns:minmax(0,1fr) auto;
 grid-template-rows:minmax(var(--fa-record-heading),max-content) auto minmax(0,1fr)
}
#competition-panel-history .app-history-dev-record>.app-competition-stat-label{grid-column:1/-1;grid-row:1}
#competition-panel-history .app-history-dev-record>.app-competition-stat-value{grid-column:1;grid-row:2;min-width:0}
#competition-panel-history .app-history-dev-record>.app-history-record-holders{grid-column:1/-1;grid-row:3;min-width:0;align-self:end}
/* The player +N immediately follows the visible name, never the right-hand
   edge of the text column. One consistent line keeps club name and skeleton
   directly underneath, with or without the expander. */
#competition-panel-history .app-history-player-labels{row-gap:2px}
/* Also applies to the first-paint skeleton, avoiding a loaded-state jump. */
#competition-panel-history .app-history-player-labels>.app-history-player-context{position:relative;top:4px}
#competition-panel-history .app-history-player-name-row{
 display:flex;align-items:center;justify-content:flex-start;gap:5px;
 height:calc(1.35 * var(--history-name-size, .875rem));min-height:0
}
#competition-panel-history .app-history-player-name-row>.app-history-player-name{
 display:block;flex:0 1 auto;max-width:100%;min-width:0;line-height:1.35;
 overflow:hidden;text-overflow:ellipsis;white-space:nowrap
}
#competition-panel-history .app-history-player-name-row>.app-history-player-detail{
 flex:0 0 auto;white-space:nowrap
}

@media(max-width:620px){
 :is(#competition-panel-history,.club-records) .app-history-record-group .app-competition-stat-value{font-size:1.625rem}
 :is(#competition-panel-history,.app-history-player-dialog){--history-name-size:1rem;--history-meta-size:.875rem}
}
@media(max-width:620px){
 :is(.app-history-player-name,.app-history-dialog-player-info) .fa-player-full-name{display:none}
 :is(.app-history-player-name,.app-history-dialog-player-info) .fa-player-short-name{display:inline}
}

/* #763: Public Overview — Flag | Player | Positions | Age | Height | Foot |
 * Market value | Club. Explicit compact widths leave all extra space to Club;
 * unchanged fixed identity tracks keep exact first-paint geometry in Players and Club Roster.
 * Roster omits the redundant Club column and distributes surplus width among its four remaining tracks.
 * All value columns reserve room for 9,999,999 $ARC plus the localized header and sort indicator. */
.app-players-table :is(th,td).app-market-value-col{width:196px;text-align:center;font-variant-numeric:tabular-nums;white-space:nowrap}
.app-players-table th.app-market-value-col .app-players-sort-button{justify-content:center}
.app-players-table:is([data-players-public]:not([data-players-table-mode="attributes"]),.club-roster-table[data-players-table-mode="overview"]){--app-players-age-width:78px;--app-players-height-width:96px;--app-players-foot-width:90px;--app-players-market-width:196px;--app-players-club-min:210px;min-width:calc(var(--app-players-flag-width) + var(--app-players-name-width) + var(--app-players-positions-width) + var(--app-players-age-width) + var(--app-players-height-width) + var(--app-players-foot-width) + var(--app-players-market-width) + var(--app-players-club-min))}
.app-players-table:is([data-players-public]:not([data-players-table-mode="attributes"]),.club-roster-table[data-players-table-mode="overview"]) th:nth-child(4){width:var(--app-players-age-width)}
.app-players-table:is([data-players-public]:not([data-players-table-mode="attributes"]),.club-roster-table[data-players-table-mode="overview"]) th:nth-child(5){width:var(--app-players-height-width)}
.app-players-table:is([data-players-public]:not([data-players-table-mode="attributes"]),.club-roster-table[data-players-table-mode="overview"]) th:nth-child(6){width:var(--app-players-foot-width)}
.app-players-table:is([data-players-public]:not([data-players-table-mode="attributes"]),.club-roster-table[data-players-table-mode="overview"]) th.app-market-value-col{width:var(--app-players-market-width)}
.app-players-table[data-players-public]:not([data-players-table-mode="attributes"]) th.app-players-club-col{width:calc(100% - var(--app-players-flag-width) - var(--app-players-name-width) - var(--app-players-positions-width) - var(--app-players-age-width) - var(--app-players-height-width) - var(--app-players-foot-width) - var(--app-players-market-width));text-align:left}
.app-players-table:is([data-players-public]:not([data-players-table-mode="attributes"]),.club-roster-table[data-players-table-mode="overview"]) :is(th,td).app-market-value-col{text-align:center;width:var(--app-players-market-width);vertical-align:middle}
.app-players-table:is([data-players-public]:not([data-players-table-mode="attributes"]),.club-roster-table[data-players-table-mode="overview"]) th.app-market-value-col .app-players-sort-button{justify-content:center}
.app-players-table:is([data-players-public]:not([data-players-table-mode="attributes"]),.club-roster-table[data-players-table-mode="overview"]) th.app-market-value-col .app-players-sort-chevron{left:calc(100% + 5px);right:auto}
.app-players-table:is([data-players-public]:not([data-players-table-mode="attributes"]),.club-roster-table[data-players-table-mode="overview"]) :is(th,td):nth-child(4),.app-players-table:is([data-players-public]:not([data-players-table-mode="attributes"]),.club-roster-table[data-players-table-mode="overview"]) :is(th,td):nth-child(5){text-align:center}
.app-players-table:is([data-players-public]:not([data-players-table-mode="attributes"]),.club-roster-table[data-players-table-mode="overview"]) :is(th,td):nth-child(6),.app-players-table[data-players-public]:not([data-players-table-mode="attributes"]) :is(th,td).app-players-club-cell{text-align:left}
@media(max-width:720px){
 .app-players-table:is([data-players-public]:not([data-players-table-mode="attributes"]),.club-roster-table[data-players-table-mode="overview"]){--app-players-age-width:62px;--app-players-height-width:76px;--app-players-foot-width:74px;--app-players-market-width:172px;--app-players-club-min:176px}
}
@media(max-width:420px){
 .app-players-table:is([data-players-public]:not([data-players-table-mode="attributes"]),.club-roster-table[data-players-table-mode="overview"]){--app-players-age-width:60px;--app-players-height-width:72px;--app-players-foot-width:70px;--app-players-market-width:172px;--app-players-club-min:156px}
}

.app-players-table:is([data-players-public]:not([data-players-table-mode="attributes"]),.club-roster-table[data-players-table-mode="overview"]) col.app-players-view-third-column{width:var(--app-players-positions-width)}
.app-players-table:is([data-players-public]:not([data-players-table-mode="attributes"]),.club-roster-table[data-players-table-mode="overview"]) th:nth-child(3){width:var(--app-players-positions-width);text-align:left}
.app-players-table:is([data-players-public]:not([data-players-table-mode="attributes"]),.club-roster-table[data-players-table-mode="overview"]) :is(th,td):nth-child(3){text-align:left}
.app-players-table:is([data-players-public]:not([data-players-table-mode="attributes"]),.club-roster-table[data-players-table-mode="overview"]) th:nth-child(3) .app-players-sort-button{justify-content:flex-start}
.app-players-table:is([data-players-public]:not([data-players-table-mode="attributes"]),.club-roster-table[data-players-table-mode="overview"]) th:nth-child(4) .app-players-sort-button,.app-players-table:is([data-players-public]:not([data-players-table-mode="attributes"]),.club-roster-table[data-players-table-mode="overview"]) th:nth-child(5) .app-players-sort-button{justify-content:center}
.app-players-table:is([data-players-public]:not([data-players-table-mode="attributes"]),.club-roster-table[data-players-table-mode="overview"]) th:nth-child(6) .app-players-sort-button{justify-content:flex-start}

/* #763: Roster shares the three fixed identity columns and responsive minimum
 * field widths with Players. Only the remaining four columns absorb surplus
 * space, equally, so neither the identity nor the market value track expands alone. */
.app-players-table.club-roster-table[data-players-table-mode="overview"]{--app-players-club-min:0px;--app-roster-extra-width:calc(100% - var(--app-players-flag-width) - var(--app-players-name-width) - var(--app-players-positions-width) - var(--app-players-age-width) - var(--app-players-height-width) - var(--app-players-foot-width) - var(--app-players-market-width))}
.app-players-table.club-roster-table[data-players-table-mode="overview"] th:nth-child(4){width:calc(var(--app-players-age-width) + var(--app-roster-extra-width) / 4)}
.app-players-table.club-roster-table[data-players-table-mode="overview"] th:nth-child(5){width:calc(var(--app-players-height-width) + var(--app-roster-extra-width) / 4)}
.app-players-table.club-roster-table[data-players-table-mode="overview"] th:nth-child(6){width:calc(var(--app-players-foot-width) + var(--app-roster-extra-width) / 4)}
.app-players-table.club-roster-table[data-players-table-mode="overview"] th.app-market-value-col{width:calc(var(--app-players-market-width) + var(--app-roster-extra-width) / 4)}
.app-players-table.club-roster-table[data-players-table-mode="overview"] td.app-market-value-col{width:auto}

/* #763: the protected preview has the same identity tracks and seven-digit value reserve. */
.app-players-preview-page .app-players-table[data-players-table-mode="overview"]{--preview-age:78px;--preview-height:96px;--preview-foot:90px;--preview-value:196px;--preview-extra:calc((100% - var(--app-players-flag-width) - var(--app-players-name-width) - var(--app-players-positions-width) - var(--preview-age) - var(--preview-height) - var(--preview-foot) - var(--preview-value))/4);min-width:calc(var(--app-players-flag-width) + var(--app-players-name-width) + var(--app-players-positions-width) + var(--preview-age) + var(--preview-height) + var(--preview-foot) + var(--preview-value))}
.app-players-preview-page .app-players-table[data-players-table-mode="overview"] th:nth-child(4){width:calc(var(--preview-age) + var(--preview-extra))}
.app-players-preview-page .app-players-table[data-players-table-mode="overview"] th:nth-child(5){width:calc(var(--preview-height) + var(--preview-extra))}
.app-players-preview-page .app-players-table[data-players-table-mode="overview"] th:nth-child(6){width:calc(var(--preview-foot) + var(--preview-extra))}
.app-players-preview-page .app-players-table[data-players-table-mode="overview"] th.app-market-value-col{width:calc(var(--preview-value) + var(--preview-extra))}
.app-players-preview-page .app-players-table[data-players-table-mode="overview"] td.app-market-value-col{width:auto}
@media(max-width:720px){.app-players-preview-page .app-players-table[data-players-table-mode="overview"]{--preview-age:62px;--preview-height:76px;--preview-foot:74px;--preview-value:172px}}
@media(max-width:420px){.app-players-preview-page .app-players-table[data-players-table-mode="overview"]{--preview-age:60px;--preview-height:72px;--preview-foot:70px}}

.app-players-preview-page .app-preview-cell-skeleton{display:inline-block;width:var(--preview-skeleton-width);max-width:100%;height:14px;vertical-align:middle;margin:0}
.app-players-preview-page .app-players-loading-row td:nth-child(2),.app-players-preview-page .app-players-loading-row td:nth-child(3),.app-players-preview-page .app-players-loading-row td:nth-child(6){text-align:left}
.app-players-preview-page .app-players-table[data-players-table-mode="overview"] :is(th,td):nth-child(4){text-align:center}
