/* Keep the overview compact without clipping records or expanded categories. */
@media (min-width:1101px) {
  #appShell > .main > .content:has(> #pg_dashboard.is-summary:not([style*="display:none"]):not([style*="display: none"])) { padding:16px 24px; }
  #pg_dashboard.is-summary .dashboard-heading { gap:16px; margin-bottom:12px; padding:0; }
  #pg_dashboard.is-summary .dashboard-eyebrow { margin-bottom:5px; font-size:10px; }
  #pg_dashboard.is-summary .ph-title { font-size:28px; line-height:1.15; }
  #pg_dashboard.is-summary .ph-sub { margin-top:5px; font-size:12px; }
  #pg_dashboard.is-summary .btn { min-height:34px; padding:7px 12px; font-size:11px; }
  #pg_dashboard.is-summary .dashboard-filters { grid-template-columns:minmax(180px,250px) minmax(0,1fr) auto; padding:10px 16px; gap:16px; margin-bottom:12px; }
  #pg_dashboard.is-summary .dashboard-filters .players-filter-field select { min-height:34px; padding:6px 10px; font-size:12px; }
  #pg_dashboard.is-summary .dashboard-filters .players-filter-field { gap:4px; }
  #pg_dashboard.is-summary #recordDataStatus { margin:0; max-width:380px; line-height:1.45; }
  #pg_dashboard.is-summary #loadCompleteDashboard { margin:0; }
  #pg_dashboard.is-summary .dashboard-kpis { gap:12px; margin-bottom:12px; }
  #pg_dashboard.is-summary .dashboard-kpi { min-height:110px; padding:13px 16px; grid-template-rows:auto 32px auto; row-gap:3px; overflow:visible; }
  #pg_dashboard.is-summary .dashboard-kpi::before { top:15px; bottom:15px; }
  #pg_dashboard.is-summary .dashboard-kpi .stat-lbl { margin:0 32px 0 0; font-size:10px; }
  #pg_dashboard.is-summary .dashboard-kpi .stat-num { font-size:30px; }
  #pg_dashboard.is-summary .dashboard-kpi .stat-meta { margin-top:3px; font-size:10px; line-height:1.4; overflow:visible; }
  #pg_dashboard.is-summary .dashboard-kpi-icon { width:27px; height:27px; top:11px; right:12px; }
  #pg_dashboard.is-summary .dashboard-focus-grid { gap:16px; }
  #pg_dashboard.is-summary .dashboard-focus-grid > .card { padding:16px; }
  #pg_dashboard.is-summary .dashboard-card-head { margin-bottom:12px; gap:10px; }
  #pg_dashboard.is-summary .card-title { font-size:14px; }
  #pg_dashboard.is-summary .card-sub { margin-top:3px; font-size:10px; }
  #pg_dashboard.is-summary .dashboard-priority-list { gap:8px; }
  #pg_dashboard.is-summary .dashboard-priority-item { min-height:64px; padding:10px 12px; gap:10px; grid-template-columns:34px minmax(0,1fr) 14px; }
  #pg_dashboard.is-summary .dashboard-priority-count { width:34px; height:34px; font-size:17px; }
  #pg_dashboard.is-summary .dashboard-priority-copy { gap:3px; }
  #pg_dashboard.is-summary .dashboard-priority-copy strong { font-size:12px; }
  #pg_dashboard.is-summary .dashboard-priority-copy small { font-size:10px; line-height:1.4; }
  #pg_dashboard.is-summary .dashboard-training-list .ev-item { min-height:64px; gap:12px; padding:9px 0; }
  #pg_dashboard.is-summary .dashboard-training-list .ev-date { min-width:38px; width:38px; padding:5px 3px; font-size:16px; }
  #pg_dashboard.is-summary .dashboard-training-list .ev-name { font-size:11px; line-height:1.4; }
  #pg_dashboard.is-summary .dashboard-training-list .ev-meta { margin-top:2px; font-size:10px; line-height:1.4; }
  #pg_dashboard.is-summary .dashboard-training-badges { margin-top:4px; gap:4px; }
  #pg_dashboard.is-summary .dashboard-training-badges .badge,
  #pg_dashboard.is-summary .dashboard-training-categories { font-size:9px; }
  #pg_dashboard.is-summary .dashboard-training-badges .badge { padding:2px 6px; }
  #pg_dashboard.is-summary .dashboard-training-categories summary { padding:2px 6px; }
  #pg_dashboard.is-summary .dashboard-distribution-card { display:grid; grid-template-columns:minmax(0,.9fr) minmax(0,1.2fr); align-items:center; gap:16px; padding:12px 16px; margin-top:12px; }
  #pg_dashboard.is-summary .dashboard-distribution-card .dashboard-card-head { margin-bottom:0; }
  #pg_dashboard.is-summary .dashboard-distribution-preview { padding:10px 12px; gap:12px; }
  #pg_dashboard.is-summary .dashboard-preview-icon { width:30px; height:30px; flex-basis:30px; }
  #pg_dashboard.is-summary .dashboard-distribution-preview p { margin-top:3px; font-size:10px; line-height:1.4; }
  #pg_dashboard.is-summary .dashboard-empty-state { min-height:176px; }
}
@media (min-width:1101px) and (max-height:800px) {
  #appShell > .main > .content:has(> #pg_dashboard.is-summary:not([style*="display:none"]):not([style*="display: none"])) { padding:12px 20px; }
  #pg_dashboard.is-summary .ph-title { font-size:25px; }
  #pg_dashboard.is-summary .dashboard-kpi { min-height:100px; padding:10px 14px; }
  #pg_dashboard.is-summary .dashboard-focus-grid > .card { padding:12px 14px; }
  #pg_dashboard.is-summary .dashboard-card-head { margin-bottom:8px; }
  #pg_dashboard.is-summary .dashboard-priority-item { min-height:59px; padding:8px 10px; }
  #pg_dashboard.is-summary .dashboard-training-list .ev-item { min-height:59px; padding:7px 0; }
  #pg_dashboard.is-summary .dashboard-distribution-card { padding:10px 14px; }
}

/* The authentication code still owns visibility, retry and error messaging. */
#authLoading.auth-loading { background:#75beee; color:#fff; }
#authLoading .auth-loading-card { width:min(100%,440px); gap:18px; padding:28px 16px; }
#authLoading .auth-loading-brand { display:flex; align-items:center; justify-content:center; gap:16px; color:#fff; font-family:AcademyLandingBrand,Arial,sans-serif; font-weight:700; }
#authLoading .auth-loading-brand img { width:66px; height:91px; flex:0 0 66px; object-fit:cover; }
#authLoading .auth-loading-club { font-size:24px; line-height:.98; text-align:left; letter-spacing:-.3px; }
#authLoading .auth-loading-academy { padding-left:16px; border-left:1px solid #ffffff80; font-size:16px; line-height:1.15; text-align:left; }
#authLoading .auth-loading-track { position:relative; width:160px; height:4px; margin-top:12px; overflow:hidden; background:#ffffff40; border-radius:999px; }
#authLoading .auth-loading-track::after { content:""; position:absolute; inset:0 auto 0 0; width:45%; border-radius:inherit; background:#fff; animation:academy-boot-progress 1.4s ease-in-out infinite; }
#authLoading .auth-loading-title { color:#fff; font-size:13px; font-weight:500; letter-spacing:0; }
#authLoading .auth-loading-sub { color:#fff; font-size:12px; line-height:1.5; }
#authLoading .boot-retry { min-height:40px; padding:10px 18px; color:#205678; background:#fff; border:1px solid #fff; border-radius:8px; font:inherit; cursor:pointer; }
#authLoading .boot-retry:focus-visible { outline:2px solid #fff; outline-offset:4px; }
@keyframes academy-boot-progress { 0% { transform:translateX(-110%); } 100% { transform:translateX(225%); } }
@media (max-width:400px) {
  #authLoading .auth-loading-brand { gap:10px; }
  #authLoading .auth-loading-brand img { width:52px; height:72px; flex-basis:52px; }
  #authLoading .auth-loading-club { font-size:20px; }
  #authLoading .auth-loading-academy { font-size:13px; padding-left:10px; }
}
@media (prefers-reduced-motion:reduce) {
  #authLoading .auth-loading-track::after { animation:none; left:27.5%; }
}
