/* Shared density fixes for player/public surfaces. Loaded after base tokens. */
:where(.shell,.panel,.detail-grid,.stats-layout,.two-column,.draft-layout,.draft-team-card,.draft-player-card){min-width:0}
:where(.shell,.panel,.metric-card,.review-card,.draft-team-card,.draft-player-card) :where(h1,h2,h3,strong,p,small){overflow-wrap:anywhere}
:where(.table-scroll,.results){max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch}
:where(.table-scroll,.results) table{width:100%;min-width:max-content}
:where(.table-scroll,.results) th,:where(.table-scroll,.results) td{max-width:340px;overflow-wrap:anywhere}
:where(.table-scroll,.results):focus-visible{outline:2px solid var(--accent);outline-offset:3px}
:where(.review-card,.proof-history)>img{flex-shrink:0}
:where(.proof-full,.proof-thumb,.item-image){max-width:100%;height:auto}
:where(.filters,.action-row,.section-header,.profile-title,.account-strip){min-width:0}
:where(.filters) :where(input,select,button){min-height:44px}
:where(.board-scroll){max-width:100%;touch-action:pan-x pan-y}
:where(.board-controls) :where(button,.button,input[type=range]){min-height:44px}
:where(.draft-player-card,.draft-team-card,.rps-player,.rps-order-row){min-width:0}
:where(.draft-player-card,.draft-team-card) :where(strong,small){overflow-wrap:anywhere}
:where(.draft-player-card) button{min-height:44px}
:where(.player-hover-card){max-width:min(420px,calc(100vw - 20px));overflow-wrap:anywhere}
@media(max-width:760px){
 .filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,170px),1fr));align-items:end;gap:12px}
 .filters label{min-width:0!important}
 .review-card{display:grid;grid-template-columns:90px minmax(0,1fr);gap:12px;align-items:start}
 .review-card>img{width:90px;height:85px}
 .review-card>div{min-width:0}
 .detail-grid>*{min-width:0}
 .proof-full{max-height:65dvh;object-fit:contain}
 .pagination{flex-wrap:wrap}
 .board-controls{gap:10px}
 .board-controls button,.board-controls .button{min-height:44px}
 .rps-reveal-overlay{overflow-y:auto;align-items:start}
 .rps-reveal-stage{max-height:calc(100dvh - 24px);overflow-y:auto}
}
@media(max-width:480px){
 .review-card{grid-template-columns:72px minmax(0,1fr)}
 .review-card>img{width:72px;height:72px}
 .stats-layout .table-scroll{margin-inline:0}
 .filters{grid-template-columns:1fr}
}
0
/* Users: on phones a single readable card is faster than a four-column scroller. */
@media(max-width:620px){
 .people-responsive-table{min-width:0!important;display:block;width:100%}
 .people-responsive-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
 .people-responsive-table tbody{display:grid;gap:12px}
 .people-responsive-table tr{display:grid;gap:9px;padding:14px;border:1px solid var(--line);border-radius:15px;background:var(--surface-2);min-width:0}
 .people-responsive-table td{display:grid;grid-template-columns:minmax(95px,0.42fr) minmax(0,1fr);align-items:center;gap:10px;padding:0;border:0;min-width:0;max-width:none;overflow-wrap:anywhere}
 .people-responsive-table td::before{content:attr(data-label);font-size:11px;color:var(--muted);font-weight:650}
 .people-responsive-table td:first-child{grid-template-columns:minmax(0,1fr);padding-bottom:8px;border-bottom:1px solid var(--line)}
 .people-responsive-table td:first-child::before{display:none}
 .people-responsive-table td[colspan]{display:block}
 .people-responsive-table td[colspan]::before{display:none}
 .people-responsive-table .person-cell{min-width:0}
 .people-responsive-table .person-cell strong{overflow-wrap:anywhere}
 .people-responsive-table .person-actions{display:flex;flex-wrap:wrap;gap:8px}
 .people-responsive-table .person-actions a,.people-responsive-table .person-actions button{display:inline-flex;align-items:center;min-height:44px}
}


/* The team-settings-specific 260px second grid column overrides the generic
   tablet .stats-layout rule; collapse it before it can widen phone viewports. */
@media(max-width:900px){
 .stats-layout.team-settings-layout{grid-template-columns:minmax(0,1fr)}
 .team-settings-layout>*{min-width:0}
 .team-settings-layout .chip-row>.chip{max-width:100%;white-space:normal;overflow-wrap:anywhere}
}
