.kzs-list-filters>summary,.kzs-list-year,.kzs-list-rank{display:none}
@media(max-width:700px),(max-width:1000px) and (pointer:coarse){
 /* Clip sideways overflow without creating an extra vertical scroll owner for sticky headings. */
 html,body.kzs-design{overflow-x:clip;overflow-y:visible}
 /* Small, normal-flow page controls; profile dialogs intentionally keep their current design. */
 body.kzs-design #kzsPageChrome .hdr{height:50px;padding:5px 10px;gap:6px}
 body.kzs-design #kzsPageChrome .hdr button{height:36px!important;min-height:36px!important;min-width:36px!important}
 body.kzs-design #kzsPageChrome .hdr .logo-name{font-size:11px;line-height:1.3}
 body.kzs-design #kzsPageChrome .nav-row{min-height:42px;padding:4px 10px}
 body.kzs-design #catTabs{gap:5px}
 body.kzs-design #catTabs .cat-btn{min-width:51px;height:32px;min-height:32px;padding:5px 12px;font-size:12px}
 body.kzs-design .main{padding:10px 8px}
 body.kzs-design .kzs-heading{margin-bottom:9px}
 body.kzs-design .kzs-heading h1{font-size:22px;margin:0 0 4px}
 body.kzs-design .kzs-heading>p{display:none}
 body.kzs-design .kzs-heading .kzs-load-top{font-size:10px;margin-top:4px;line-height:1.4}
 body.kzs-design .kzs-mobile-search{display:none!important}
 body.kzs-design .kzs-phone-nav{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr));gap:2px;padding:5px max(7px,env(safe-area-inset-right,0px)) max(14px,env(safe-area-inset-bottom,0px)) max(7px,env(safe-area-inset-left,0px));border:0;box-shadow:0 -1px 0 var(--ln);isolation:isolate;z-index:400;background:var(--wh);overflow:visible}
 body.kzs-design .kzs-phone-nav button{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:2px;min-height:40px;min-width:0;width:100%;margin:0;border:1px solid transparent;border-radius:6px;font-size:10px;line-height:1.25;padding:3px 0;white-space:nowrap;box-sizing:border-box}
 body.kzs-design .kzs-phone-nav button[aria-current=page]{border-color:var(--ln);background:var(--bg)}
 body.kzs-design .kzs-phone-nav button span{font-size:16px;line-height:1.2;flex:none}
 .kzs-list-filters,.kzs-record-filters{border:1px solid var(--ln);border-radius:8px;background:var(--wh);margin:0 0 9px;min-width:0}
 body.kzs-design .kzs-list-filters>summary,body.kzs-design .kzs-record-filters>summary{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:8px 10px;min-height:36px;box-sizing:border-box;font-size:12px;cursor:pointer;list-style:none}
 .kzs-list-filters>summary::-webkit-details-marker{display:none}
 .kzs-list-filters>summary strong::before{content:'☰ ';color:var(--or)}
 .kzs-list-filters>summary span{font-size:10px;color:var(--mu);text-align:right}
 /* Explicitly hide author-styled filter bars in closed details, including on first paint. */
 body.kzs-design .kzs-list-filters:not([open])>.fbar,body.kzs-design .kzs-list-filters:not([open])>.refs-toolbar,body.kzs-design .kzs-record-filters:not([open])>.fbar{display:none!important}
 .kzs-list-filters:not([open])>.kzs-season-note,.kzs-list-filters:not([open])>.kzs-points-note{display:none}
 .kzs-list-filters:not([open])>#calActions,.kzs-list-filters:not([open])>#calMeta{display:none!important}
 body.kzs-design .kzs-list-filters>.kzs-season-note,body.kzs-design .kzs-list-filters>.kzs-points-note{margin:0;padding:8px 10px;border:0;border-radius:0;font-size:10px;line-height:1.4}
 body.kzs-design .kzs-list-filters>.fbar,body.kzs-design .kzs-record-filters>.fbar,body.kzs-design .kzs-list-filters>.refs-toolbar{position:relative!important;top:auto!important;left:auto!important;width:auto!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:10px!important;padding:4px 10px 12px!important;margin:0!important;border:0!important;border-radius:0;overflow:visible!important}
 body.kzs-design .kzs-list-filters .fbar>.fg,body.kzs-design .kzs-record-filters .fbar>.fg,body.kzs-design .kzs-list-filters .refs-field{flex:none!important;min-width:0!important;width:100%!important;max-width:100%;position:relative}
 .kzs-list-filters label,.kzs-record-filters label{font-size:10px}
 body.kzs-design .kzs-list-filters select,body.kzs-design .kzs-list-filters input,body.kzs-design .kzs-list-filters #fYearBtn{width:100%;min-width:0!important;max-width:100%;font-size:16px!important;min-height:40px!important;height:40px!important;box-sizing:border-box}
 .kzs-list-filters .sort-ps{display:flex;flex-wrap:wrap;height:auto}
 body.kzs-design .kzs-list-filters .sort-ps .sp{flex:1 1 auto;font-size:12px;white-space:normal;padding:8px;min-height:36px}
 .kzs-list-filters [id$=Dropdown]{max-width:calc(100vw - 40px);box-sizing:border-box}
 /* Fit all four scoring measures beside the player, with club, year and competition below the name. */
 body.kzs-design #twrap{overflow:visible}
 body.kzs-design #twrap table{display:block;width:100%;min-width:0!important;table-layout:fixed}
 body.kzs-design #twrap thead,body.kzs-design #twrap tbody{display:block;width:100%}
 body.kzs-design #twrap thead{position:sticky;top:0;z-index:80;background:var(--wh);box-shadow:0 1px 0 var(--ln)}
 body.kzs-design #twrap tr{display:grid;grid-template-columns:22px minmax(0,1fr) repeat(4,34px);align-items:center;gap:0;border-bottom:1px solid var(--ln)}
 body.kzs-design #twrap th,body.kzs-design #twrap td{display:block!important;min-width:0;width:auto!important;padding:7px 3px!important;border:0;white-space:normal;font-size:11px;text-align:right}
 body.kzs-design #twrap th{position:static!important;font-size:9px;letter-spacing:0;padding:9px 2px!important;cursor:pointer}
 body.kzs-design #twrap :is(th,td):nth-child(2),body.kzs-design #twrap :is(th,td):nth-child(4),body.kzs-design #twrap :is(th,td):nth-child(9){display:none!important}
 body.kzs-design #twrap :is(th,td):nth-child(3){text-align:left}
 body.kzs-design #twrap .pc{gap:5px;align-items:flex-start;min-width:0}
 body.kzs-design #twrap .pc>div:last-child{min-width:0}
 body.kzs-design #twrap .av,body.kzs-design #twrap .av-fb{width:24px;height:28px;flex:0 0 24px}
 body.kzs-design #twrap .pn{font-size:12px;line-height:1.25;white-space:normal;overflow-wrap:anywhere}
 body.kzs-design #twrap .pm,body.kzs-design #twrap .team-link{font-size:9px;line-height:1.35;white-space:normal;overflow-wrap:anywhere}
 body.kzs-design #twrap .cb{font-size:8px;padding:1px 3px;white-space:normal}
 body.kzs-design #twrap .pts-big{font-size:14px}
 body.kzs-design #twrap .star-btn{font-size:20px!important;min-width:22px;min-height:30px;padding:0}
 body.kzs-design #twrap .star-more{display:block;font-size:11px;line-height:12px;text-align:center}
 body.kzs-design #twrap .kzs-list-rank{display:block;font-size:9px;text-align:center;color:var(--mu);line-height:12px}
 body.kzs-design #twrap .kzs-list-year{display:inline}
 body.kzs-design #panel-scorers .meta{margin:6px 0;font-size:10px;gap:5px}
 body.kzs-design #panel-scorers .badge-filter{font-size:10px;padding:5px 7px;min-height:30px}
 body.kzs-design #panel-scorers .kzs-points-note{font-size:10px;line-height:1.4;margin:6px 0}
 /* Same record fields and click target, with substantially less padding between details. */
 body.kzs-design .kzs-record-cards{gap:5px}
 body.kzs-design .kzs-record-card{grid-template-columns:18px minmax(0,1fr) 33px;gap:2px 6px;padding:7px 8px;border-radius:7px}
 body.kzs-design .kzs-record-rank{font-size:10px}
 body.kzs-design .kzs-record-person{gap:5px!important}
 body.kzs-design .kzs-record-person .pn{font-size:12px;line-height:1.2}
 body.kzs-design .kzs-record-person .pm{font-size:9px;line-height:1.2}
 body.kzs-design .kzs-record-person img.av,body.kzs-design .kzs-record-person .av-fb{width:23px!important;height:26px!important;flex-basis:23px}
 body.kzs-design .kzs-record-score{font-size:20px}
 body.kzs-design .kzs-record-score small{font-size:8px;margin-top:1px}
 body.kzs-design .kzs-record-opponent,body.kzs-design .kzs-record-competition,body.kzs-design .kzs-record-meta{grid-column:1/-1;margin:0;line-height:1.3}
 body.kzs-design .kzs-record-opponent{font-size:10px}
 body.kzs-design .kzs-record-competition{font-size:9px}
 body.kzs-design .kzs-record-meta{gap:3px;font-size:9px}
 body.kzs-design .kzs-record-meta span{padding:1px 4px}
 /* Calendar actions and explanatory status now share the closed filter disclosure. */
 body.kzs-design #panel-calendar-filters #calActions{gap:5px!important;padding:4px 10px 8px!important}
 body.kzs-design #panel-calendar-filters #calActions>button{min-height:32px;font-size:11px!important;padding:6px 9px!important;white-space:normal}
 body.kzs-design #panel-calendar-filters #calActions>span{display:none}
 body.kzs-design #panel-calendar-filters #calActions>select{width:100%;max-width:100%!important}
 body.kzs-design #panel-calendar-filters #calMeta{padding:5px 10px 10px!important;font-size:10px;line-height:1.4;margin:0}
 body.kzs-design #panel-calendar .kzs-calendar-views{gap:6px!important;margin:7px 0!important;flex-wrap:wrap}
 body.kzs-design #panel-calendar [data-cal-view]{min-height:32px;padding:6px 10px;font-size:11px}
 body.kzs-design #calWrap .cal-day-summary{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px!important;margin-bottom:9px!important}
 body.kzs-design #calWrap .cal-day-summary>button{min-width:0!important;padding:7px 8px!important;border-radius:7px!important;font-size:10px;line-height:1.35;min-height:0}
 #calWrap .cal-day-summary strong{display:block;font-size:11px;margin-bottom:3px}
 body.kzs-design #calWrap .comp-section{margin-bottom:10px!important}
 body.kzs-design #calWrap .comp-section-hdr{position:static;padding:7px 8px;gap:5px;flex-wrap:wrap}
 body.kzs-design #calWrap .comp-section-hdr-name{font-size:12px!important}
 body.kzs-design #calWrap .comp-section-summary{font-size:10px}
 body.kzs-design #calWrap .cal-row{display:grid;grid-template-columns:55px minmax(0,1fr) auto;grid-template-areas:'time teams ics' 'comp comp cat' 'venue venue venue';row-gap:2px;column-gap:6px;padding:6px 8px;align-items:start}
 body.kzs-design #calWrap .cal-time{font-size:11px;line-height:1.4;width:auto;white-space:normal}
 body.kzs-design #calWrap .cal-time small{font-size:9px!important}
 body.kzs-design #calWrap .cal-teams{font-size:12px;line-height:1.35;overflow-wrap:anywhere}
 body.kzs-design #calWrap .cal-comp{font-size:10px;line-height:1.3;white-space:normal;width:auto;max-width:100%;overflow-wrap:anywhere}
 body.kzs-design #calWrap .cal-cat{font-size:9px;padding:1px 4px;justify-self:end}
 body.kzs-design #calWrap .cal-act{gap:6px;align-items:center;justify-self:end}
 body.kzs-design #calWrap .cal-ics,body.kzs-design #calWrap .cal-log{font-size:13px;padding:2px;line-height:1.2}
 body.kzs-design #calWrap .cal-venue{font-size:10px;line-height:1.3}
 /* Team lookup uses one compact row, with the existing roster-list control beside it. */
 body.kzs-design #panel-standings .team-lookup-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px;margin:8px 0}
 body.kzs-design #panel-standings .team-lookup-field{min-width:0;max-width:none}
 .team-lookup-field label,.team-lookup-hint{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%);white-space:nowrap}
 body.kzs-design #panel-standings .team-lookup-input{min-height:36px;gap:5px;padding:0 7px}
 body.kzs-design #panel-standings .team-lookup-input input{height:34px;font-size:16px}
 body.kzs-design #panel-standings #rosterToggle{min-height:36px;padding:6px 8px;margin:0;font-size:11px;gap:4px}
 body.kzs-design #panel-standings .team-lookup-team{padding:8px;gap:7px}
 body.kzs-design #panel-standings .team-lookup-avatar{flex-basis:28px;height:28px}
 body.kzs-design #refsCoverage{margin:7px 0;font-size:11px}
 #refsCoverage>details>summary{padding:6px 0;line-height:1.4}
 #refsCoverage>details>p{margin:6px 0}
}
