/* Small, accessible header controls keep table content visible. */
th .table-sort-button{display:inline-flex;align-items:center;justify-content:flex-start;gap:5px;min-height:32px;padding:2px 0;border:0;background:transparent;color:inherit;font:inherit;letter-spacing:inherit;text-transform:inherit;text-align:inherit;white-space:nowrap;box-shadow:none;border-radius:3px}th .table-sort-button:hover{color:var(--link)}.table-sort-arrow{font-size:12px;opacity:.5;line-height:1}th[aria-sort=ascending] .table-sort-arrow,th[aria-sort=descending] .table-sort-arrow{opacity:1;color:var(--link);font-weight:800}th[aria-sort=ascending],th[aria-sort=descending]{color:var(--ink)!important}.context-empty{padding:20px 16px;background:var(--bg);border-radius:10px;margin-top:12px}.context-empty p{margin:0 0 12px;color:var(--muted);font-size:13px}.context-empty button,.context-empty>a{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:8px 12px;border:1px solid var(--line);border-radius:7px;background:var(--surface);color:var(--link);font-size:12px;font-weight:600}.context-empty button:hover{border-color:var(--link)}
/* Neutral shapes reserve content space without presenting invented records. */
.page-loading{display:grid;gap:20px;padding:20px 0;min-height:440px}.loading-card{padding:24px;background:var(--surface);border:1px solid var(--line);border-radius:14px;min-height:190px}.loading-line{height:14px;width:38%;background:var(--bg);border-radius:4px;margin-bottom:18px}.loading-line.loading-title{height:26px;width:50%;margin-bottom:24px}.loading-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.loading-grid>div{height:70px;background:var(--bg);border-radius:8px}.loading-table-row{display:grid;grid-template-columns:minmax(0,2fr) repeat(3,minmax(0,1fr));gap:20px;padding:15px 0;border-bottom:1px solid var(--line)}.loading-table-row>span{height:12px;border-radius:4px;background:var(--bg)}.loading-status{font-size:12px;color:var(--muted);margin:0}.hero #season:empty{min-height:24px}.hero #league-details:empty{min-height:20px}.hero h1:has(.player-profile-identity){min-height:100px}.scoreboard-strip:empty{min-height:140px}
@media(max-width:520px){
 .header .topbar:has(.home-nav){padding:8px 0;gap:7px;min-height:0}.header .topbar .official-logo{width:156px}.header .home-nav{padding-top:6px;gap:3px}.header .home-nav a{font-size:10px;min-height:36px;gap:3px;line-height:1.2}.header .home-nav .nav-icon{width:17px;height:17px}.header .site-header-tools{gap:5px}.header .site-header-tools button,.header .site-header-tools .color-mode-toggle{min-height:36px;min-width:36px;width:36px;padding:7px}.header .site-header-tools svg{width:18px;height:18px}.sticky-page-identity>.shell{padding-top:4px;padding-bottom:5px;gap:8px}.sticky-identity-value{font-size:17px;line-height:1.12}.sticky-identity-label{font-size:7px}.tabs .tab-inner{gap:20px}.tabs .tab-inner a{font-size:11px!important;min-height:40px;padding-top:11px!important;padding-bottom:9px!important}.league-statistics .statistics-controls,.profile-statistics-controls{padding:6px!important}.statistics-controls .statistics-filters label,.profile-statistics-controls label{font-size:8px!important}.profile-statistics-controls h2{font-size:17px!important}.page-loading{gap:14px;padding-top:16px;min-height:360px}.loading-card{padding:16px;min-height:150px}.loading-line.loading-title{height:22px;margin-bottom:18px}.loading-grid{gap:12px}.loading-grid>div{height:60px}.loading-table-row{gap:12px;padding:12px 0}.context-empty{padding:16px 12px}.context-empty p{font-size:11px}.context-empty button,.context-empty>a{font-size:11px;min-height:40px}.hero h1:has(.player-profile-identity){min-height:64px}th .table-sort-button{min-height:30px;gap:3px}.table-sort-arrow{font-size:10px}
}

/* Reserve the avatar/name area before identity markup arrives. */
body[data-profile=player] .hero h1,body[data-history-view=player] .hero h1{min-height:100px}
.hero #league-header-info[hidden]{display:block!important;visibility:hidden;min-height:76px}
@media(max-width:520px){body[data-profile=player] .hero h1,body[data-history-view=player] .hero h1{min-height:64px}.hero #league-header-info[hidden]{min-height:64px}}
