/* Centralized responsive rules. Breakpoints are ordered from broad to narrow so smaller layouts override larger ones predictably. */
@media (min-width:1181px) {
  .game-page .fixed-global-header .profile-name{display:inline!important}
  .game-page .fixed-global-header .game-actions .counter{display:flex!important}
}
@media (max-width:1380px) and (min-width:981px) {
  .game-page .fixed-global-header .game-header-inner,.compact-game-ui .fixed-global-header .game-header-inner{grid-template-columns:166px minmax(620px,1fr) auto!important;padding:0 12px!important;gap:10px!important}
  .game-page .fixed-global-header .game-brand{width:166px!important;min-width:166px!important}
  .game-page .fixed-global-header .game-brand img{width:150px!important;max-width:150px!important}
  .game-page .fixed-global-header .game-nav{min-width:620px!important;grid-template-columns:64px 62px 82px 108px 86px 72px 78px!important}
  .game-page .fixed-global-header .nav-trigger{font-size:11.5px!important;padding:0 4px!important}
  .game-page .fixed-global-header .nav-search{width:78px!important;min-width:78px!important;padding:0 4px!important}
  .game-page .fixed-global-header .search-label{font-size:11.5px!important}
  .game-page .fixed-global-header .profile-name{display:none!important}
  .game-page .fixed-global-header .profile-trigger{min-width:53px!important}
  .game-page .fixed-global-header .chat-action b{display:none}
  .game-page .fixed-global-header .game-actions{padding-left:8px!important}
  .game-page .fixed-global-header .game-brand img[src*="soccersim-main-logo.png"],.compact-game-ui .fixed-global-header .game-brand img[src*="soccersim-main-logo.png"]{height:54px!important;max-height:54px!important;max-width:154px!important}
  .game-page .fixed-global-header .game-brand img[src*="soccersim-classic-logo.png"],.compact-game-ui .fixed-global-header .game-brand img[src*="soccersim-classic-logo.png"]{width:174px!important;max-width:174px!important;max-height:58px!important}
}
@media (max-width:1180px) {
  .transfer-market-table{font-size:9.2px}
  .transfer-market-table th{font-size:8.8px}
  .transfer-market-table th,.transfer-market-table td{padding-left:1px;padding-right:1px}
  .market-name-wrap{gap:3px}
  .market-name-wrap .player-flag{width:14px;height:9px}
}
@media (max-width:1100px) {
  .europe-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  .south-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
  .region-map-wrap{height:350px}
  .coaching-table .coach-inline-progress{max-width:138px;min-width:84px}
  .coaching-table td:nth-child(4),.coaching-table td:nth-child(5),.coaching-table td:nth-child(6),.coaching-table td:nth-child(7){min-width:132px}
}
@media (max-width:1080px) {
  .game-header-inner{gap:16px}
  .game-nav{gap:0}
  .nav-trigger{padding:0 9px}
  .counter{display:none}
  .profile-name{display:none}
  .game-brand img{width:160px}
  .system-panel{width:min(900px,100%)}
  .compact-game-ui .intl-page-shell,.compact-game-ui .national-cups-shell{width:min(1080px,calc(100% - 16px));}
  .intl-stage-groups .intl-main-grid,.national-world-groups .national-cup-grid{grid-template-columns:1fr;}
  .intl-stage-groups .intl-right-panel,.national-world-groups .national-cup-right{display:grid;grid-template-columns:1fr 1fr;gap:10px;}
  .intl-stage-groups .intl-competition-select{grid-column:1/-1;}
  .intl-stage-groups .intl-right-panel .info-card+.info-card,.national-world-groups .national-cup-right .info-card+.info-card{margin-top:0;}
}
@media (max-width:1050px) {
  .league-two-col{grid-template-columns:1fr}
  .side-box{grid-template-columns:1fr 1fr;gap:28px}
  .champion-row{grid-template-columns:120px 1fr 1fr}
  .admin-overview-grid{grid-template-columns:repeat(3,1fr)}
  .admin-overview-grid>div:nth-child(3){border-right:0}
  .admin-panel-grid{grid-template-columns:1fr}
  .admin-audit-row{grid-template-columns:130px 170px 1fr}
  .admin-user-summary{grid-template-columns:repeat(3,1fr)}
  .admin-users-toolbar{grid-template-columns:1fr 1fr}
  .admin-user-search{grid-column:1/-1}
  .admin-recent-user{grid-template-columns:34px minmax(160px,1.5fr) minmax(120px,1fr) 68px}
  .admin-recent-country{display:none}
}
@media (max-width:980px) {
  .team-dashboard-grid{grid-template-columns:1fr}
  .team-tabs{width:100%;grid-column:1/-1}
  .club-hero{grid-template-columns:76px 1fr}
  .club-crest{width:72px;height:72px;font-size:22px}
  .club-identity h1{font-size:31px}
  .recent-match-row{grid-template-columns:38px 90px 1fr 50px 1fr 30px}
  .team-card-title{flex-wrap:wrap;height:auto;padding-top:12px;padding-bottom:12px}
  .history-mode{margin-left:0}
  .intl-main-grid{grid-template-columns:1fr}
  .intl-competition-head{grid-template-columns:1fr}
  .goal-match-controls{align-items:flex-start;flex-direction:column}
  .intl-main-grid,.national-cup-grid{grid-template-columns:1fr}
  .intl-stage-groups .intl-main-grid,.national-world-groups .national-cup-grid{grid-template-columns:1fr}
  .intl-group-list,.intl-group-match-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .game-page .fixed-global-header .game-header-inner,.compact-game-ui .fixed-global-header .game-header-inner{height:auto!important;min-height:62px!important;grid-template-columns:150px 1fr!important;grid-template-rows:62px 42px!important;padding:0 10px!important;gap:0 8px!important}
  .game-page .fixed-global-header .game-brand{width:150px!important;min-width:150px!important;height:62px!important}
  .game-page .fixed-global-header .game-brand img{width:140px!important;max-width:140px!important}
  .game-page .fixed-global-header .game-actions{height:62px!important;grid-column:2!important;grid-row:1!important;border-left:0!important;padding-left:0!important;overflow:hidden!important}
  .game-page .fixed-global-header .game-nav{grid-column:1/-1!important;grid-row:2!important;width:100%!important;min-width:0!important;height:42px!important;display:flex!important;overflow-x:auto!important;overflow-y:visible!important;border-top:1px solid rgba(255,255,255,.12)!important}
  .game-page .fixed-global-header .game-nav>.nav-menu{width:auto!important;min-width:max-content!important;height:42px!important}
  .game-page .fixed-global-header .nav-trigger{width:auto!important;height:42px!important;min-height:42px!important;padding:0 12px!important}
  .game-page .fixed-global-header .nav-search{width:auto!important;min-width:86px!important;height:42px!important}
  .game-page .fixed-global-header .nav-dropdown{top:42px!important}
  .game-page .fixed-global-header .profile-dropdown{top:62px!important}
  .game-page .fixed-global-header .counter{height:62px!important}
  .game-page .fixed-global-header .profile-menu{height:62px!important}
  .game-page .fixed-global-header .profile-trigger{height:62px!important;min-height:62px!important}
  .game-page .fixed-global-header .chat-action{height:62px}
  .recent-match-row{grid-template-columns:34px 94px minmax(130px,1fr) 46px minmax(130px,1fr) 26px}
  .recent-match-row{grid-template-columns:32px 88px minmax(125px,1fr) 42px minmax(125px,1fr) 22px!important;}
  .league-match-row{grid-template-columns:minmax(170px,1fr) 72px minmax(170px,1fr) 58px!important;}
  .game-page .fixed-global-header .game-brand img[src*="soccersim-main-logo.png"],.compact-game-ui .fixed-global-header .game-brand img[src*="soccersim-main-logo.png"]{height:50px!important;max-height:50px!important;max-width:140px!important}
  .game-page .fixed-global-header .game-brand img[src*="soccersim-classic-logo.png"],.compact-game-ui .fixed-global-header .game-brand img[src*="soccersim-classic-logo.png"]{width:150px!important;max-width:150px!important;max-height:52px!important}
}
@media (max-width:920px) {
  .investments-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .investments-grid .investment-card:nth-child(4),.investments-grid .investment-card:nth-child(5){grid-column:auto}
  .investments-summary{grid-template-columns:1fr}
  .investments-summary span:nth-child(2),.investments-summary span:nth-child(3){text-align:left}
}
@media (max-width:900px) {
  .compact-league-heading{grid-template-columns:1fr auto}
  .compact-league-heading .detail-select{grid-column:1/-1;justify-self:end}
  .player-detail-grid{grid-template-columns:1fr}
  .player-profile-header{align-items:flex-start;flex-direction:column}
  .player-profile-tabs{width:100%;display:grid;grid-template-columns:repeat(4,1fr)}
  .player-profile-tab{text-align:center;padding:10px 5px}
  .ability-grid{grid-template-columns:1fr}
  .goal-player-layout{grid-template-columns:1fr}
  .goal-player-header{align-items:flex-start;flex-direction:column}
  .goal-player-tabs{width:100%;display:grid;grid-template-columns:repeat(4,1fr)}
  .goal-player-tabs .player-profile-tab{border-radius:3px}
  .goal-player-page{width:100%}
  .national-team-info-grid{grid-template-columns:1fr}
  .national-team-hero{grid-template-columns:1fr}
  .national-team-hero .team-tabs{width:100%;display:grid;grid-template-columns:repeat(4,1fr)}
  .national-recent-row{grid-template-columns:30px 1fr 46px 1fr}
  .national-recent-row .national-competition-cell,.national-recent-row .national-report{grid-column:2/-1}
  .national-recent-row .national-report{text-align:left}
  .inactive-tools input{width:150px}
  .goal-player-tabs.owner-tabs{grid-template-columns:repeat(3,1fr)}
  .coaching-layout{grid-template-columns:1fr}
  .coach-attributes{grid-row:auto}
  .coach-report-grid{grid-template-columns:1fr 1fr}
  .coaching-tip{grid-column:auto}
  .global-search-form{grid-template-columns:1fr}
  .global-search-form input{border-right:1px solid #cfd7d2;border-radius:4px;margin-bottom:8px}
  .global-search-form select{border-right:1px solid #cfd7d2;border-radius:4px;margin-bottom:8px}
  .global-search-form .workspace-button{border-radius:4px}
  .loaned-squad-heading b{font-size:17px}
  .player-name-stars{font-size:12px}
  .match-report-grid{grid-template-columns:1fr}
  .match-summary-stats{order:-1}
  .match-report-managers{grid-template-columns:1fr;text-align:left}
  .match-report-managers>div:last-child{text-align:left}
  .match-report-team-heads{grid-template-columns:1fr 90px 1fr}
  .match-report-meta{grid-template-columns:1fr}
  .match-report-meta>div:last-child{justify-self:start}
  .match-lineup-row{grid-template-columns:20px 22px minmax(0,1fr) 10px 14px 34px}
  .match-summary-stats>div{grid-template-columns:1fr 130px 1fr}
  .scout-report-row{grid-template-columns:1fr 1fr}
  .scout-report-row>div:nth-child(5){grid-column:1/-1}
  .board-overall{flex-direction:column}
  .board-overall>small{text-align:left}
  .board-review-history>div{grid-template-columns:1fr 1fr}
  .board-review-history small{grid-column:1/-1}
}
@media (max-width:850px) {
  .footer-inner{grid-template-columns:1fr;justify-items:center;text-align:center;padding:16px 0}
  .footer-credit{justify-self:center}
  .server-head{display:none}
  .server-row{grid-template-columns:1fr 1fr;gap:10px 16px;padding:17px}
  .server-info{grid-column:1/-1}
  .stat{text-align:left;border-top:1px solid #edf0f2;padding-top:8px}
  .stat:before{content:attr(data-label);display:block;font-size:9px;font-weight:800;color:#7a838d;margin-bottom:3px}
  .enter-cell{grid-column:1/-1}
  .enter{width:100%}
  .header-inner{width:calc(100% - 28px)}
  .world-map-wrap{height:auto}
  .country-groups{grid-template-columns:1fr 1fr}
  .country-group:last-child{grid-column:1/-1}
  .countries-shell{width:100%}
  .ruby-pack-grid{grid-template-columns:1fr}
  .mailbox-grid{grid-template-columns:1fr}
  .mail-reader-pane{min-height:270px}
  .mail-empty-reader{min-height:270px}
  .online-table-head,.online-manager-row{grid-template-columns:1fr 1fr 80px}
  .online-table-head>b:nth-child(3),.online-manager-row>span:nth-child(3){display:none}
  .ruby-history-head,.ruby-history-row{grid-template-columns:60px 45px 60px 1fr}
  .ruby-history-head>*:nth-child(n/**/+5),.ruby-history-row>*:nth-child(n/**/+5){display:none}
  .ruby-history-head,.ruby-history-row{grid-template-columns:60px 45px 60px 1fr}
}
@media (max-width:820px) {
  .finance-power-grid,.finance-summary,.manager-settings-form,.scout-general-grid,.scout-skills-grid,.scout-bottom-grid{grid-template-columns:1fr}
  .finance-period-row{flex-direction:column;gap:5px}
  .board-metric-head,.board-metric-row{grid-template-columns:90px 1fr}
  .board-metric-head>*:last-child,.board-metric-row>*:last-child{grid-column:1/-1}
  .manager-page-head{align-items:flex-start;flex-direction:column}
  .manager-page-head nav{width:100%;overflow:auto}
  .settings-save{grid-column:auto}
  .manager-achievement-grid{grid-template-columns:1fr}
  .manager-history-head{align-items:flex-start;flex-direction:column}
  .manager-history-mode{margin-left:0;width:100%;overflow:auto}
  .manager-title-row{grid-template-columns:38px 1fr}
  .manager-title-row small{grid-column:2}
}
@media (max-width:760px) {
  .game-header-inner{height:auto;min-height:74px;flex-wrap:wrap;padding:8px 0}
  .game-nav{order:3;width:100%;height:42px;overflow-x:auto}
  .nav-trigger{white-space:nowrap}
  .nav-dropdown{top:40px}
  .game-actions{margin-left:auto}
  .game-statusbar-inner{width:calc(100% - 28px);gap:14px}
  .status-server{display:none}
  .game-main{padding:24px 12px 50px}
  .system-panel{width:100%}
  .system-panel-body{padding:20px 17px}
  .welcome-title h1{font-size:21px}
  .game-footer-inner{width:calc(100% - 28px);padding:17px 0;align-items:flex-end}
  .game-footer-brand p{max-width:380px}
  .country-group.europe .country-list,.country-group.south-america .country-list{grid-template-columns:1fr}
  .map-pin{width:25px;height:25px}
  .map-pin svg{width:15px;height:15px}
  .region-map-wrap{height:300px}
  .europe-grid,.south-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .region-flag-pin{width:20px;height:13px}
  .south-grid .region-country{font-size:11px}
  .region-map-wrap{min-height:330px;padding:10px}
  .region-south-america.region-map-wrap{min-height:420px}
  .region-canvas-europe{width:min(100%,680px)}
  .region-canvas-north-america{width:min(100%,650px)}
  .region-canvas-south-america{width:min(58%,270px)}
  .region-flag-pin{width:13px;height:9px}
  .region-map-canvas > img.region-flag-pin{width:13px!important;height:9px!important;max-width:13px!important;max-height:9px!important}
  .region-canvas-north-america{width:min(96%,650px)}
  .region-north-america.region-map-wrap{min-height:340px;padding:12px}
  .country-header-row h1{font-size:24px}
  .country-tabs{gap:6px}
  .country-tab{padding:8px 11px;font-size:12px}
  .detail-section-title{padding:12px}
  .league-two-col{padding:14px 12px}
  .scorer-row{grid-template-columns:22px minmax(0,1fr) 30px minmax(100px,1fr)}
  .cup-match{grid-template-columns:1fr;gap:3px}
  .cup-vs{display:none}
  .cup-score{text-align:left}
  .side-box{grid-template-columns:1fr}
  .champion-row{grid-template-columns:1fr}
  .detail-season-row{width:100%;justify-content:space-between}
  .league-match-row{grid-template-columns:minmax(0,1fr) 74px minmax(0,1fr);font-size:12px}
  .match-report{display:none}
  .form-track{gap:7px}
  .form-result{width:22px;height:22px;font-size:10px}
  .matches-box>.league-subtabs{margin:12px 10px 5px}
  .matches-body{padding:0 10px 12px}
  .club-hero{grid-template-columns:62px 1fr}
  .club-crest{width:58px;height:58px}
  .club-identity h1{font-size:24px}
  .manager-availability{margin-left:12px;margin-right:12px}
  .recent-match-row{grid-template-columns:32px 1fr 34px 1fr 22px}
  .team-info-list>div{grid-template-columns:118px minmax(0,1fr)}
  .player-subtabs{padding-left:8px;padding-right:8px}
  .player-subtabs .player-subtab{padding:8px 10px;font-size:11.5px}
  .goal-sub-table{font-size:11.5px;min-width:820px}
  .goal-sub-table th{font-size:11px}
  .subtable-search input{width:145px}
  .statistics-subpage .stats-topline{align-items:flex-start;flex-direction:column}
  .team-history-head,.team-history-row{grid-template-columns:56px 46px 120px minmax(0,1fr);font-size:11px}
  .nav-drop-heading{font-size:9.5px}
  .intl-page-title-row,.national-cups-title-row{align-items:flex-start}
  .intl-page-title-row h1,.national-cups-title-row h1{font-size:23px}
  .intl-zone-tab,.national-cup-tab{padding:8px 9px;font-size:10.5px}
  .intl-main-grid,.national-cup-grid{padding:10px}
  .intl-match-row,.national-match-row{grid-template-columns:1fr 18px 1fr}
  .intl-score-result,.national-score{grid-column:1/-1;text-align:center;padding-bottom:3px}
  .intl-scorer-row,.national-scorer-row,.intl-champion-row,.national-champion-row{grid-template-columns:24px 1fr 30px 1fr}
  .intl-champion-row,.national-champion-row{grid-template-columns:90px 1fr 1fr}
  .intl-group-block h3{font-size:16px;margin-bottom:10px}
  .intl-group-table{min-width:500px}
  .intl-group-subtabs{gap:16px}
  .season-fixture-note{align-items:flex-start;flex-direction:column;gap:4px}
  .team-season-schedule-note{line-height:1.35}
  .transfer-market-toolbar{align-items:stretch;flex-direction:column}
  .transfer-filter-controls select{flex:1;width:auto}
  .transfer-market-search{justify-content:flex-end}
  .transfer-market-search input{flex:1;max-width:260px}
  .transfer-market-title .league-name-block span{display:none}
  .cup-box .cup-match{grid-template-columns:minmax(0,1fr) 22px minmax(0,1fr) 34px!important;
    min-height:31px;
    font-size:11.5px;}
  .cup-box .cup-vs{display:block!important}
  .cup-box .cup-score{text-align:right!important}
  .cup-box .cup-team.home{padding-right:6px}
  .cup-box .cup-team.away{padding-left:6px}
  .cup-box .cup-match{grid-template-columns:minmax(0,1fr) 26px minmax(0,1fr) 54px!important;
    min-height:28px!important;
    font-size:11px!important;}
  .cup-box .cup-team.home{padding-right:6px!important;}
  .cup-box .cup-team.away{padding-left:6px!important;}
  .cup-box .cup-team-inline,.cup-box .cup-team-inline.universal-team-nav{column-gap:4px!important;}
  .negotiations-layout{grid-template-columns:1fr}
  .negotiations-detail{padding-top:0}
  .negotiation-row{grid-template-columns:16px minmax(0,1fr)}
  .negotiation-row>span{grid-column:2}
  /* Current Negotiations uses self-wrapping cards in styles.css. */
  .intl-group-list,.intl-group-match-grid{grid-template-columns:1fr;}
  .intl-stage-groups .intl-right-panel,.national-world-groups .national-cup-right{display:block;}
  .intl-stage-groups .intl-right-panel .info-card+.info-card,.national-world-groups .national-cup-right .info-card+.info-card{margin-top:10px;}
  .country-ranking-main{padding-left:6px;padding-right:6px;}
  .country-ranking-shell{width:100%;}
  .country-ranking-regions{justify-content:flex-start;overflow-x:auto;padding-right:0;}
  .country-ranking-region{padding:0 10px;}
  .country-ranking-table{min-width:650px;}
  .manager-ranking-search{flex-wrap:wrap}
  .manager-ranking-search input{width:100%;flex:1 1 100%}
  .manager-ranking-info{font-size:10px}
  .ranking-mode-tabs{overflow-x:auto}
  .ranking-mode-tab{min-width:72px;padding:0 10px}
  .league-ranking-controls{flex-wrap:wrap}
  .league-ranking-controls label{margin-left:0;width:100%}
  .league-ranking-controls input{flex:1}
  .team-ranking-table,.league-ranking-table{min-width:720px}
  .mailbox-card-head{align-items:flex-start!important}
  .mailbox-new-message{font-size:9px!important}
  .mail-compose-title{align-items:flex-start!important;flex-direction:column!important}
  .mail-compose-recipient{grid-template-columns:44px 1fr!important}
}
@media (max-width:700px) {
  .game-header-inner{width:calc(100% - 20px);gap:10px}
  .game-brand img{width:145px}
  .game-actions .counter{display:none}
  .game-nav{overflow-x:auto}
  .nav-trigger{padding:0 9px;font-size:11px}
  .team-page-main{padding:14px 10px 36px}
  .team-page-shell{width:100%}
  .team-breadcrumb{overflow-x:auto;white-space:nowrap}
  .club-hero{grid-template-columns:64px 1fr;padding-left:0;padding-right:0}
  .club-crest{width:60px;height:60px;border-width:3px}
  .club-identity h1{font-size:25px}
  .team-tabs{grid-column:1/-1;display:grid;grid-template-columns:repeat(4,1fr)}
  .team-tab{min-width:0;padding:12px 7px;font-size:10px}
  .team-info-list>div{grid-template-columns:130px 1fr}
  .recent-match-row{grid-template-columns:36px 1fr 44px 1fr 28px}
  .competition-mini{display:none}
  .history-view-switch{display:none}
  .team-match-full-row{grid-template-columns:55px 1fr 32px 1fr}
  .team-match-full-row>span:nth-child(5),.team-match-full-row>button{display:none}
  .players-toolbar{align-items:flex-start;flex-direction:column}
  .players-toolbar label{width:100%}
  .players-toolbar input{flex:1}
  .game-statusbar-inner{width:calc(100% - 20px)}
  .compact-status-list>div{grid-template-columns:105px minmax(0,1fr)}
  .manage-club-note,.job-application-note,.stadium-simple-row{margin-left:14px;margin-right:14px}
  .compact-game-ui .game-header-inner{height:58px}
  .compact-game-ui .game-main,.player-page-main{padding-left:10px!important;padding-right:10px!important}
  .compact-game-ui .country-header-row h1,.compact-game-ui .club-identity h1,.player-profile-title h1{font-size:23px}
  .compact-game-ui .league-two-col{grid-template-columns:1fr}
  .compact-game-ui .team-tabs{grid-template-columns:repeat(4,1fr)}
  .compact-game-ui .team-tab{min-width:0}
  .player-info-rows>div{grid-template-columns:100px minmax(0,1fr)}
  .team-link .team-tier-icon{width:10px;height:14px}
  .team-page-tier,.player-tier-icon{width:14px;height:18px}
  .league-tier-icon{width:13px;height:17px}
  .compact-game-ui{font-size:12.5px}
  .goal-player-title h1{font-size:24px}
  .goal-info-list>div{grid-template-columns:100px minmax(0,1fr);font-size:12.5px}
  .goal-attribute-list>div,.contract-content,.player-season-stats,.goal-traits{font-size:12.5px}
  .goal-player-tabs .player-profile-tab{min-width:0;padding:9px 6px;font-size:11.5px}
  .manager-status-icon,.compact-game-ui .manager-status-icon{width:14px;height:14px;flex-basis:14px}
  .manager-status-icon.computer,.compact-game-ui .manager-status-icon.computer{width:15px;height:15px;flex-basis:15px}
  .goal-match-table thead{display:none}
  .goal-match-table,.goal-match-table tbody,.goal-match-table tr,.goal-match-table td{display:block;width:100%}
  .goal-match-table tr{padding:10px 0;border-bottom:1px solid #dfe6e1}
  .goal-match-table td{padding:4px 0;border-bottom:none}
  .intl-match-row{grid-template-columns:1fr 20px 1fr}
  .intl-score-result{grid-column:1/-1;text-align:center}
  .loan-club-details{gap:2px}
  .competition-cell-link{white-space:normal}
  .recent-match-row{grid-template-columns:32px minmax(0,1fr) 42px minmax(0,1fr) 24px}
  .recent-match-row .competition-mini{display:none}
  .goal-match-table .home-cell,.goal-match-table .away-cell{text-align:left;padding-left:0;padding-right:0}
  .goal-match-table .match-team-inline.match-team-side.home{justify-content:flex-start;text-align:left}
  .recent-match-row{grid-template-columns:30px minmax(0,1fr) 38px minmax(0,1fr) 20px!important;}
  .recent-match-row .competition-mini{display:none!important}
  .goal-match-table .match-team-inline.match-team-side.home{grid-template-columns:16px minmax(0,1fr);
    text-align:left!important;}
  .goal-match-table .match-team-inline.match-team-side.away{grid-template-columns:minmax(0,1fr) 16px;
    text-align:right!important;}
  .league-match-row{grid-template-columns:minmax(0,1fr) 58px minmax(0,1fr)!important;}
  .game-page .fixed-global-header .game-actions{margin-right:0!important}
  .admin-overview-grid{grid-template-columns:repeat(2,1fr)}
  .admin-overview-grid>div{border-right:0;border-bottom:1px solid #e5ebe7}
  .admin-server-form{grid-template-columns:1fr}
  .admin-readonly-row{grid-template-columns:1fr}
  .admin-users-table{min-width:720px}
  .admin-audit-row{grid-template-columns:1fr}
  .admin-button-row{flex-wrap:wrap}
  .admin-control-full .admin-server-form{grid-template-columns:1fr}
  .admin-server-transport{grid-template-columns:1fr}
  .admin-simulator-state{display:grid;gap:4px}
  .club-workspace-shell.admin-workspace-shell{width:calc(100% - 12px)}
  .admin-user-summary{grid-template-columns:1fr 1fr;padding:9px}
  .admin-user-summary .admin-user-stat:first-child{grid-column:1/-1}
  .admin-users-toolbar{grid-template-columns:1fr;padding:9px}
  .admin-table-pagination{align-items:flex-start;flex-direction:column;padding:9px}
  .admin-coin-pagination-toolbar{justify-content:flex-start;padding:0 9px 9px}
  .admin-user-search{grid-column:auto}
  .admin-recent-wrap{margin:9px}
  .admin-recent-user{grid-template-columns:30px 1fr 62px;padding:7px}
  .admin-recent-time,.admin-recent-country{display:none}
  .admin-section-title small{display:none}
}
@media (max-width:680px) {
  .intl-group-list,.intl-group-match-grid{grid-template-columns:1fr}
  .intl-group-table{min-width:0}
  .intl-group-table th:nth-child(n/**/+3),.intl-group-table td:nth-child(n/**/+3){width:24px}
}
@media (max-width:620px) {
  .goal-player-tabs.owner-tabs{grid-template-columns:repeat(2,1fr)}
  .coach-report-grid{grid-template-columns:1fr}
  .owner-form-back{width:100%;margin-left:0}
  .game-page .fixed-global-header .game-header-inner,.compact-game-ui .fixed-global-header .game-header-inner{grid-template-columns:128px 1fr!important;padding:0 7px!important}
  .game-page .fixed-global-header .game-brand{width:128px!important;min-width:128px!important}
  .game-page .fixed-global-header .game-brand img{width:120px!important;max-width:120px!important}
  .game-page .fixed-global-header .game-actions .counter{display:none!important}
  .game-page .fixed-global-header .profile-name{display:none!important}
  .game-page .fixed-global-header .profile-trigger{min-width:44px!important;padding:0 4px!important}
  .game-page .fixed-global-header .chat-action b{display:none}
  .game-page .fixed-global-statusbar .game-statusbar-inner{padding:0 10px!important;gap:10px!important}
  .game-page .fixed-global-statusbar .status-divider,.game-page .fixed-global-statusbar .status-server{display:none!important}
  .game-page .fixed-global-statusbar .status-season,.game-page .fixed-global-statusbar .status-season b,.game-page .fixed-global-statusbar .status-tick,.game-page .fixed-global-statusbar .status-tick span,.game-page .fixed-global-statusbar .status-tick b{font-size:9.5px!important}
  .match-report-shell{width:calc(100% - 16px)}
  .match-report-content{padding:13px 9px 18px}
  .match-report-team-heads{grid-template-columns:1fr}
  .match-report-team-heads>strong{order:-1}
  .match-report-team-heads>a,.match-report-team-heads>a.away{justify-content:center;text-align:center}
  .match-report-grid{gap:14px}
  .match-report-tabs{overflow:auto}
  .match-report-title{font-size:11.5px}
  .match-stat-team-title>a{font-size:16px}
  .investments-grid{grid-template-columns:1fr}
  .investment-card{min-height:0}
  .game-page .fixed-global-header .game-brand img[src*="soccersim-main-logo.png"],.compact-game-ui .fixed-global-header .game-brand img[src*="soccersim-main-logo.png"]{height:45px!important;max-height:45px!important;max-width:120px!important}
  .register-name-grid{grid-template-columns:1fr;gap:0}
  .register-card{width:100%}
  .game-page .fixed-global-header .profile-trigger{min-width:44px!important}
  .game-page .fixed-global-header .game-brand img[src*="soccersim-classic-logo.png"],.compact-game-ui .fixed-global-header .game-brand img[src*="soccersim-classic-logo.png"]{width:124px!important;max-width:124px!important;max-height:46px!important}
  .form-track{gap:7px!important}
  .form-result{flex-basis:22px!important;width:22px!important;min-width:22px!important;max-width:22px!important;height:22px!important;min-height:22px!important;max-height:22px!important;line-height:18px!important}
  .form-track::before{left:16px!important;right:16px!important}
}
@media (max-width:600px) {
  .national-team-title img{width:40px;height:27px}
  .national-team-title h1{font-size:25px}
  .inactive-card-body{padding:10px}
  .inactive-table{min-width:620px}
  .inactive-table-footer{align-items:flex-start;flex-direction:column}
  .inactive-vote-btn{width:100%}
}
@media (max-width:560px) {
  .auth-main{justify-content:flex-start;padding-top:18px}
  .brand img{width:280px}
  .card{padding:23px 18px}
  .card-head h1{font-size:22px}
  .header .brand img{width:170px}
  .avatar{display:none}
  .logout{padding-left:10px;margin-left:4px}
  .server-main-wrap{width:calc(100% - 24px);padding-top:24px}
  .server-row{grid-template-columns:1fr}
  .server-info,.enter-cell{grid-column:1}
  .footer-inner{width:calc(100% - 24px)}
  .countries-main{padding-top:14px}
  .world-map-wrap{height:auto}
  .country-groups{grid-template-columns:1fr;gap:20px}
  .country-group:last-child{grid-column:auto}
  .country-info-banner{font-size:11px}
  .map-pin{width:22px;height:22px;font-size:16px;border-width:2px}
  .map-pin:after{width:8px;height:2px;right:-6px}
}
@media (max-width:520px) {
  .game-brand img{width:142px}
  .game-actions .icon-action{display:none}
  .profile-avatar{width:32px;height:32px}
  .game-statusbar-inner{height:auto;min-height:42px;flex-wrap:wrap;padding:7px 0}
  .system-panel-title{padding:0 14px}
  .system-panel-body{font-size:12px}
  .welcome-title{align-items:center}
  .welcome-options li{grid-template-columns:24px 1fr}
  .important-box{padding:12px}
  .game-footer-inner{display:block}
  .back-top{margin-top:10px;padding-left:0}
  .game-watermark{background-size:230px auto}
}
@media (max-width:480px) {
  .region-map-wrap{height:245px}
  .europe-grid,.south-grid{grid-template-columns:1fr}
  .region-map-wrap{min-height:270px}
  .region-south-america.region-map-wrap{min-height:360px}
  .region-canvas-south-america{width:min(70%,230px)}
  .region-flag-pin{width:12px;height:8px}
  .region-map-canvas > img.region-flag-pin{width:12px!important;height:8px!important;max-width:12px!important;max-height:8px!important}
  .region-north-america.region-map-wrap{min-height:285px;padding:8px}
}

/* federation crest remains legible on compact layouts. */
@media (max-width:720px){.national-team-title img.national-team-federation-crest{width:42px;height:42px}}

/* tablet/phone navigation only. Mouse/desktop layouts remain unchanged. */
.mobile-nav-quick-actions{display:none}
@media (max-width:1024px), (hover:none) and (pointer:coarse) and (max-width:1366px){
  .game-page .fixed-global-header,
  .compact-game-ui .fixed-global-header{height:64px!important;min-height:64px!important}
  .game-page .fixed-global-header .game-header-inner,
  .compact-game-ui .fixed-global-header .game-header-inner{
    height:64px!important;min-height:64px!important;
    grid-template-columns:minmax(132px,1fr) 46px 56px!important;
    grid-template-rows:64px!important;
    gap:8px!important;padding:0 10px!important;position:relative!important;
  }
  .game-page .fixed-global-header .game-brand,
  .compact-game-ui .fixed-global-header .game-brand{width:150px!important;min-width:132px!important;height:64px!important}
  .game-page .fixed-global-header .game-brand img,
  .compact-game-ui .fixed-global-header .game-brand img{width:144px!important;max-width:144px!important;max-height:54px!important}
  .mobile-nav-toggle{
    display:inline-flex!important;align-items:center;justify-content:center;
    grid-column:2!important;grid-row:1!important;align-self:center;justify-self:end;
    width:44px;height:42px;min-width:44px;padding:0!important;font-size:23px!important;
    border:1px solid rgba(255,255,255,.32)!important;background:rgba(255,255,255,.04)!important;
    color:#fff!important;border-radius:5px!important;touch-action:manipulation;
  }
  .mobile-nav-toggle:active{background:rgba(255,255,255,.13)!important}
  .game-page .fixed-global-header .game-actions,
  .compact-game-ui .fixed-global-header .game-actions{
    grid-column:3!important;grid-row:1!important;height:64px!important;min-width:0!important;
    gap:0!important;padding:0!important;margin:0!important;border-left:0!important;overflow:visible!important;
  }
  .game-page .fixed-global-header .game-actions>.counter,
  .compact-game-ui .fixed-global-header .game-actions>.counter{display:none!important}
  .game-page .fixed-global-header .profile-menu,
  .compact-game-ui .fixed-global-header .profile-menu{height:64px!important;margin:0!important}
  .game-page .fixed-global-header .profile-trigger,
  .compact-game-ui .fixed-global-header .profile-trigger{
    width:52px!important;min-width:52px!important;height:64px!important;min-height:64px!important;
    padding:0 5px!important;justify-content:center!important;gap:3px!important;
  }
  .game-page .fixed-global-header .profile-name,
  .compact-game-ui .fixed-global-header .profile-name{display:none!important}
  .game-page .fixed-global-header .profile-dropdown,
  .compact-game-ui .fixed-global-header .profile-dropdown{
    position:absolute!important;top:68px!important;right:8px!important;left:auto!important;
    width:min(232px,calc(100vw - 18px))!important;min-width:198px!important;max-height:calc(100dvh - 86px)!important;
    overflow-y:auto!important;-webkit-overflow-scrolling:touch!important;z-index:1500!important;
    padding:8px!important;border:1px solid #d9e3dc!important;border-radius:12px!important;
    background:#f7faf8!important;box-shadow:0 18px 40px rgba(0,0,0,.22)!important;
  }
  .game-page .fixed-global-header .game-nav,
  .compact-game-ui .fixed-global-header .game-nav{
    display:none!important;position:absolute!important;left:0!important;right:auto!important;top:64px!important;
    width:min(430px,100vw)!important;min-width:0!important;height:auto!important;max-height:calc(100dvh - 76px)!important;
    overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch!important;
    background:#054d27!important;border-top:1px solid rgba(255,255,255,.18)!important;border-right:1px solid rgba(255,255,255,.12)!important;
    box-shadow:0 12px 28px rgba(0,0,0,.34)!important;z-index:1400!important;
    flex-direction:column!important;align-items:stretch!important;gap:0!important;padding:8px!important;
  }
  .game-page .fixed-global-header.mobile-nav-open .game-nav,
  .compact-game-ui .fixed-global-header.mobile-nav-open .game-nav{display:flex!important}
  .mobile-nav-quick-actions{
    display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;
    padding:2px 0 8px;margin-bottom:4px;border-bottom:1px solid rgba(255,255,255,.18);
  }
  .mobile-nav-quick-action{
    min-width:0;min-height:52px;border:1px solid rgba(255,255,255,.17);border-radius:5px;
    background:rgba(255,255,255,.06);color:#fff!important;text-decoration:none!important;
    display:grid;grid-template-columns:22px minmax(0,1fr) auto;align-items:center;gap:5px;padding:7px 8px;
    font:600 11px/1.1 "Segoe UI",Arial,sans-serif;cursor:pointer;touch-action:manipulation;
  }
  .mobile-nav-quick-action img{display:block!important;width:20px!important;height:20px!important;max-width:20px!important;object-fit:contain}
  .mobile-nav-quick-action span{overflow:visible;text-overflow:clip;overflow-wrap:anywhere;white-space:normal!important;}
  .mobile-nav-quick-action b{font-size:10.5px;color:#dff4e5}
  .mobile-nav-quick-action:active{background:rgba(255,255,255,.14)}
  .game-page .fixed-global-header .game-nav>.nav-menu,
  .compact-game-ui .fixed-global-header .game-nav>.nav-menu{
    width:100%!important;min-width:0!important;height:auto!important;display:block!important;border-bottom:1px solid rgba(255,255,255,.10);
  }
  .game-page .fixed-global-header .nav-trigger,
  .compact-game-ui .fixed-global-header .nav-trigger,
  .game-page .fixed-global-header .nav-search,
  .compact-game-ui .fixed-global-header .nav-search{
    width:100%!important;min-width:0!important;height:48px!important;min-height:48px!important;
    padding:0 12px!important;justify-content:space-between!important;font-size:13px!important;touch-action:manipulation;
  }
  .game-page .fixed-global-header .nav-menu.open>.nav-trigger .chev,
  .compact-game-ui .fixed-global-header .nav-menu.open>.nav-trigger .chev{transform:rotate(180deg)}
  .game-page .fixed-global-header .chev,.compact-game-ui .fixed-global-header .chev{transition:transform .14s ease}
  .game-page .fixed-global-header .nav-dropdown:not(.profile-dropdown),
  .compact-game-ui .fixed-global-header .nav-dropdown:not(.profile-dropdown){
    position:static!important;top:auto!important;left:auto!important;right:auto!important;
    width:100%!important;min-width:0!important;max-width:none!important;max-height:none!important;
    margin:0!important;padding:4px 5px 7px!important;border:0!important;border-radius:0!important;
    box-shadow:none!important;background:#fff!important;overflow:visible!important;
  }
  .game-page .fixed-global-header .nav-drop-item,
  .compact-game-ui .fixed-global-header .nav-drop-item{
    min-height:44px!important;padding:10px 12px!important;display:flex!important;align-items:center!important;font-size:13px!important;line-height:1.25!important;
    touch-action:manipulation;
  }
  .game-page .fixed-global-header .account-dropdown,
  .compact-game-ui .fixed-global-header .account-dropdown{
    background:#f7faf8!important;
  }
  .game-page .fixed-global-header .account-dropdown .nav-drop-item,
  .compact-game-ui .fixed-global-header .account-dropdown .nav-drop-item{
    min-height:42px!important;
    margin:0 0 4px!important;
    padding:11px 12px!important;
    border:1px solid #e3e9e5!important;
    border-radius:9px!important;
    background:#fff!important;
    color:#2e3833!important;
    box-shadow:0 1px 0 rgba(19,44,28,.03)!important;
  }
  .game-page .fixed-global-header .account-dropdown .nav-drop-item:hover,
  .game-page .fixed-global-header .account-dropdown .nav-drop-item:active,
  .compact-game-ui .fixed-global-header .account-dropdown .nav-drop-item:hover,
  .compact-game-ui .fixed-global-header .account-dropdown .nav-drop-item:active{
    background:#f2f8f4!important;
    color:#167e38!important;
    border-color:#cfe0d4!important;
  }
  .game-page .fixed-global-header .account-dropdown .nav-drop-heading,
  .compact-game-ui .fixed-global-header .account-dropdown .nav-drop-heading{
    padding:6px 4px 5px!important;
    margin:2px 0 4px!important;
    background:transparent!important;
    color:#8a948e!important;
    font-size:10px!important;
    font-weight:800!important;
    letter-spacing:.08em!important;
  }
  .game-page .fixed-global-header .account-dropdown .profile-menu-separator,
  .compact-game-ui .fixed-global-header .account-dropdown .profile-menu-separator{
    height:1px!important;
    margin:6px 2px!important;
    background:#dfe6e1!important;
  }
  .game-page .fixed-global-header .account-dropdown .admin-menu-heading,
  .compact-game-ui .fixed-global-header .account-dropdown .admin-menu-heading{
    color:#a97b08!important;
  }
  .game-page .fixed-global-header .account-dropdown .admin-panel-menu-link,
  .compact-game-ui .fixed-global-header .account-dropdown .admin-panel-menu-link{
    font-weight:800!important;
    color:#8a6505!important;
    background:#fff7e7!important;
    border:1px solid #ecd79a!important;
    border-left:4px solid #d4a62b!important;
    padding-left:10px!important;
  }
  .game-page .fixed-global-header .account-dropdown .admin-panel-menu-link:hover,
  .game-page .fixed-global-header .account-dropdown .admin-panel-menu-link:active,
  .compact-game-ui .fixed-global-header .account-dropdown .admin-panel-menu-link:hover,
  .compact-game-ui .fixed-global-header .account-dropdown .admin-panel-menu-link:active{
    background:#fff2cd!important;
    color:#765300!important;
    border-color:#e2cb86!important;
  }
  .game-page .fixed-global-header .account-dropdown .account-bottom-action,
  .compact-game-ui .fixed-global-header .account-dropdown .account-bottom-action{
    font-weight:700!important;
  }
  .game-page .fixed-global-header .nav-drop-heading,
  .compact-game-ui .fixed-global-header .nav-drop-heading{padding:9px 12px 5px!important}
  .game-page .fixed-global-header .nav-search,
  .compact-game-ui .fixed-global-header .nav-search{justify-content:flex-start!important;gap:9px!important;border-bottom:0!important}
  .game-page .fixed-global-header .profile-dropdown,
  .compact-game-ui .fixed-global-header .profile-dropdown{
    position:absolute!important;
    top:68px!important;
    right:8px!important;
    left:auto!important;
    width:min(212px,calc(100vw - 18px))!important;
    min-width:196px!important;
    max-width:calc(100vw - 18px)!important;
    max-height:calc(100dvh - 86px)!important;
    margin:0!important;
    padding:6px!important;
    border:1px solid #d8e1dc!important;
    border-radius:12px!important;
    box-shadow:0 18px 40px rgba(0,0,0,.22)!important;
    background:#fff!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    transform:none!important;
  }
  .game-page .fixed-global-header .account-dropdown,
  .compact-game-ui .fixed-global-header .account-dropdown{background:#fff!important}
  .game-page .fixed-global-header .account-dropdown .nav-drop-item,
  .compact-game-ui .fixed-global-header .account-dropdown .nav-drop-item{
    margin:0!important;
    padding:10px 11px!important;
    min-height:40px!important;
    border:0!important;
    border-bottom:1px solid #ebf0ec!important;
    border-radius:8px!important;
    background:#fff!important;
    box-shadow:none!important;
  }
  .game-page .fixed-global-header .account-dropdown .nav-drop-item:last-of-type,
  .compact-game-ui .fixed-global-header .account-dropdown .nav-drop-item:last-of-type{border-bottom:0!important}
  .game-page .fixed-global-header .account-dropdown .nav-drop-item:hover,
  .game-page .fixed-global-header .account-dropdown .nav-drop-item:active,
  .compact-game-ui .fixed-global-header .account-dropdown .nav-drop-item:hover,
  .compact-game-ui .fixed-global-header .account-dropdown .nav-drop-item:active{background:#f3f8f4!important}
  .game-page .fixed-global-header .account-dropdown .nav-drop-heading,
  .compact-game-ui .fixed-global-header .account-dropdown .nav-drop-heading{
    padding:7px 4px 4px!important;
    margin:0!important;
    background:#fff!important;
  }
  .game-page .fixed-global-header .account-dropdown .profile-menu-separator,
  .compact-game-ui .fixed-global-header .account-dropdown .profile-menu-separator{
    margin:4px 0!important;
  }
  .game-page .fixed-global-statusbar .game-statusbar-inner,
  .compact-game-ui .fixed-global-statusbar .game-statusbar-inner{padding:0 12px!important;gap:12px!important;overflow:hidden!important}
}

@media (max-width:820px){
  /* Neutralize the old large mobile top spacer; the responsive header is in normal document flow. */
  .game-page .game-main{padding-top:24px!important}
}

@media (max-width:600px){
  .game-page .fixed-global-header,
  .compact-game-ui .fixed-global-header{height:58px!important;min-height:58px!important}
  .game-page .fixed-global-header .game-header-inner,
  .compact-game-ui .fixed-global-header .game-header-inner{
    height:58px!important;min-height:58px!important;grid-template-columns:minmax(108px,1fr) 44px 50px!important;grid-template-rows:58px!important;
    gap:6px!important;padding:0 7px!important;
  }
  .game-page .fixed-global-header .game-brand,
  .compact-game-ui .fixed-global-header .game-brand{width:126px!important;min-width:108px!important;height:58px!important}
  .game-page .fixed-global-header .game-brand img,
  .compact-game-ui .fixed-global-header .game-brand img{width:120px!important;max-width:120px!important;max-height:48px!important}
  .mobile-nav-toggle{width:42px!important;height:40px!important;min-width:42px!important;font-size:22px!important}
  .game-page .fixed-global-header .profile-menu,
  .compact-game-ui .fixed-global-header .profile-menu{height:58px!important}
  .game-page .fixed-global-header .profile-trigger,
  .compact-game-ui .fixed-global-header .profile-trigger{width:48px!important;min-width:48px!important;height:58px!important;min-height:58px!important;padding:0 3px!important}
  .game-page .fixed-global-header .game-nav,
  .compact-game-ui .fixed-global-header .game-nav{top:58px!important;left:0!important;right:0!important;width:100vw!important;max-height:calc(100dvh - 66px)!important;border-right:0!important;padding:7px!important}
  .game-page .fixed-global-header .profile-dropdown,
  .compact-game-ui .fixed-global-header .profile-dropdown{top:62px!important;right:6px!important;width:min(206px,calc(100vw - 14px))!important;max-width:calc(100vw - 14px)!important}
  .game-page .fixed-global-statusbar .game-statusbar-inner,
  .compact-game-ui .fixed-global-statusbar .game-statusbar-inner{padding:0 8px!important;gap:8px!important}
  .game-page .fixed-global-statusbar .status-server,
  .compact-game-ui .fixed-global-statusbar .status-server{display:none!important}
  .game-page .fixed-global-statusbar .status-divider,
  .compact-game-ui .fixed-global-statusbar .status-divider{display:none!important}
  .game-page .fixed-global-statusbar .status-tick span,
  .compact-game-ui .fixed-global-statusbar .status-tick span{display:none!important}
  .mobile-nav-quick-actions{gap:5px}
  .mobile-nav-quick-action{grid-template-columns:20px minmax(0,1fr);grid-template-rows:auto auto;min-height:56px;padding:6px 7px}
  .mobile-nav-quick-action img{grid-row:1/3}
  .mobile-nav-quick-action b{grid-column:2;font-size:10px}
}

@media (max-width:380px){
  .game-page .fixed-global-header .game-brand img,
  .compact-game-ui .fixed-global-header .game-brand img{width:108px!important;max-width:108px!important}
  .mobile-nav-quick-action span{font-size:10px}
}

/* mobile/tablet Matches + ServerOne lobby only. */
.server-free-teams-stat #serverFreeTeams{
  display:inline-grid!important;
  grid-template-columns:auto auto auto;
  align-items:baseline;
  justify-content:center;
  gap:6px;
  white-space:nowrap!important;
}
.server-free-team-count{display:inline-block;min-width:1ch;text-align:center;}
.server-free-team-separator{display:inline-block;color:#7b857f;font-weight:500;}

@media(max-width:900px){
  .server-main-wrap{width:min(100% - 24px,760px)!important;padding:22px 0 24px!important;}
  .server-title{margin-bottom:18px!important;}
  .server-title h1{font-size:clamp(27px,7vw,36px)!important;line-height:1.08!important;}
  .server-title p{font-size:14px!important;line-height:1.45!important;padding:0 8px!important;}
  .server-card{overflow:visible!important;}
  .server-head{display:none!important;}
  .server-row{display:grid!important;grid-template-columns:1fr 1fr!important;gap:0!important;padding:0!important;min-height:0!important;}
  .server-info{grid-column:1/-1!important;padding:18px 18px 14px!important;border-bottom:1px solid #e2e8e4!important;}
  .server-row .stat{min-width:0!important;padding:13px 12px!important;border-bottom:1px solid #e7ece8!important;text-align:left!important;}
  .server-row .stat:nth-of-type(even){border-left:1px solid #e7ece8!important;}
  .server-row .stat::before{content:attr(data-label);display:block;margin-bottom:5px;color:#77817b;font-size:10px;font-weight:800;letter-spacing:.03em;}
  .server-row .stat>b,.server-row .stat #serverFreeTeams{font-size:14px!important;}
  .server-tick-stat{grid-column:1/-1!important;border-left:0!important;}
  .server-countdown{justify-content:flex-start!important;}
  .server-simulation-progress{width:min(100%,250px)!important;}
  .server-free-teams-stat{display:block!important;text-align:left!important;justify-content:start!important;}
  .server-free-teams-stat #serverFreeTeams{justify-content:start!important;gap:7px!important;}
  .enter-cell{grid-column:1/-1!important;padding:14px 18px 18px!important;}
  .enter-cell .enter{width:100%!important;min-height:44px!important;font-size:13px!important;}
  .server-manager-notice{max-width:100%!important;margin-top:18px!important;padding:16px!important;}

  .goal-team-matches-card{padding-bottom:12px!important;}
  .goal-team-matches-card .team-card-title{padding-left:14px!important;padding-right:14px!important;}
  .goal-team-matches-card .match-season-tools{padding-left:14px!important;padding-right:14px!important;}
  .goal-match-table-wrap{padding:0 12px 6px!important;overflow:visible!important;}
  .goal-match-table.single-result-table{display:block!important;min-width:0!important;width:100%!important;font-size:13px!important;}
  .goal-match-table.single-result-table colgroup,.goal-match-table.single-result-table thead{display:none!important;}
  .goal-match-table.single-result-table tbody{display:grid!important;gap:12px!important;width:100%!important;}
  .goal-match-table.single-result-table tr{display:grid!important;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)!important;grid-template-areas:
    "turn turn turn"
    "home score away"
    "result result result"
    "competition competition report"!important;align-items:center!important;gap:8px 10px!important;padding:12px!important;border:1px solid #dfe6e1!important;border-radius:8px!important;background:#fff!important;box-shadow:0 3px 10px rgba(30,54,38,.04)!important;}
  .goal-match-table.single-result-table td{display:block!important;height:auto!important;min-width:0!important;padding:0!important;border:0!important;white-space:normal!important;}
  .goal-match-table.single-result-table .turn-cell{grid-area:turn!important;color:#727d76!important;font-size:11px!important;font-weight:700!important;}
  .goal-match-table.single-result-table .turn-cell::before{content:"TURN ";font-size:10px;color:#89928c;}
  .goal-match-table.single-result-table .home-cell{grid-area:home!important;text-align:left!important;}
  .goal-match-table.single-result-table .score-cell{grid-area:score!important;min-width:46px!important;padding:6px 8px!important;border-radius:5px!important;background:#f3f6f4!important;font-size:14px!important;font-weight:700!important;text-align:center!important;}
  .goal-match-table.single-result-table .away-cell{grid-area:away!important;text-align:right!important;}
  .goal-match-table.single-result-table .result-cell{grid-area:result!important;text-align:center!important;}
  .goal-match-table.single-result-table .competition-cell{grid-area:competition!important;font-size:12px!important;color:#5c675f!important;}
  .goal-match-table.single-result-table .competition-cell::before{content:"Competition: ";font-weight:700;color:#37423b;}
  .goal-match-table.single-result-table .match-statistics-cell{grid-area:report!important;text-align:right!important;font-size:12px!important;}
  .goal-match-table.single-result-table .home-cell .match-team-inline,.goal-match-table.single-result-table .away-cell .match-team-inline{display:flex!important;width:100%!important;max-width:100%!important;min-width:0!important;gap:5px!important;}
  .goal-match-table.single-result-table .home-cell .match-team-inline{justify-content:flex-start!important;text-align:left!important;}
  .goal-match-table.single-result-table .away-cell .match-team-inline{justify-content:flex-end!important;text-align:right!important;}
  .goal-match-table.single-result-table .match-team-name{white-space:normal!important;overflow-wrap:anywhere!important;line-height:1.25!important;}
}

@media(max-width:520px){
  .server-main-wrap{width:calc(100% - 20px)!important;padding-top:18px!important;}
  .server-row{grid-template-columns:1fr 1fr!important;}
  .server-info{padding:16px 14px 13px!important;}
  .server-row .stat{padding:12px 10px!important;}
  .server-free-teams-stat #serverFreeTeams{font-size:14px!important;gap:5px!important;}
  .goal-match-table.single-result-table tr{grid-template-columns:minmax(0,1fr) 42px minmax(0,1fr)!important;gap:7px 6px!important;padding:11px 9px!important;}
  .goal-match-table.single-result-table .home-cell,.goal-match-table.single-result-table .away-cell{font-size:12px!important;}
  .goal-match-table.single-result-table .competition-cell{font-size:11px!important;}
}

/* =========================================================================
   Soccersim 3.22 - phone and tablet layout.
   Everything that works on the desktop must work on a phone and on a tablet
   as well: nothing may scroll sideways, every control must be large enough to
   be tapped with a finger and the content must stay readable.
   ========================================================================= */

/* ---- 1. the five-column match preview becomes a card on small screens --- */
@media (max-width:760px){
  .recent-match-row.goal-ref-match-row{
    grid-template-columns:minmax(0,1fr) 54px minmax(0,1fr)!important;
    grid-template-areas:
      "turn turn turn"
      "home score away"
      "competition competition competition"!important;
    column-gap:8px!important;
    row-gap:4px!important;
    padding:10px 10px!important;
    min-height:0!important;
  }
  .recent-match-row.goal-ref-match-row .turn-num{grid-area:turn!important;font-size:11px!important;color:#77817b!important;}
  .recent-match-row.goal-ref-match-row .goal-ref-home{grid-area:home!important;text-align:left!important;}
  .recent-match-row.goal-ref-match-row .score.compact{grid-area:score!important;}
  .recent-match-row.goal-ref-match-row .goal-ref-away{grid-area:away!important;text-align:right!important;padding-right:0!important;}
  .recent-match-row.goal-ref-match-row .goal-ref-competition{
    grid-area:competition!important;
    padding-left:0!important;
    font-size:12px!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
  }
  .recent-match-row.goal-ref-match-row .match-team-name{
    white-space:normal!important;
    overflow-wrap:anywhere!important;
    line-height:1.25!important;
  }
  .recent-match-row.goal-ref-match-row .goal-ref-away .match-team-inline.match-team-side.away{
    justify-content:flex-end!important;
  }
}

/* ---- 2. finger sized controls on every touch screen -------------------- */
@media (max-width:1180px),(hover:none) and (pointer:coarse){
  .intl-zone-tab,
  .workspace-tab,
  .team-tab,
  .national-cup-tab,
  .player-profile-tabs a,
  .goal-player-tabs a,
  .intl-phase-row a,
  .national-phase-row a,
  .country-tab,
  .mail-folder-tabs a,
  .market-tab{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    min-height:44px!important;
    padding-top:0!important;
    padding-bottom:0!important;
    line-height:1.2!important;
  }
  .game-nav a,
  .game-nav .nav-item>a,
  .mobile-nav-quick-action{
    min-height:44px!important;
    display:inline-flex!important;
    align-items:center!important;
  }
  .enter,
  .owner-form-btn,
  .coach-report-btn,
  .coach-cancel-btn,
  .coach-all-btn{
    min-height:44px!important;
  }
}

/* ---- 3. readable content text on phone and tablet ---------------------- */
@media (max-width:1180px),(hover:none) and (pointer:coarse){
  .game-main{font-size:13px!important;}
  .game-main p,
  .game-main li,
  .game-main label,
  .game-main a,
  .game-main td,
  .game-main th,
  .game-main .scorer-row,
  .game-main .intl-scorer-row,
  .game-main .intl-champion-row{
    font-size:12.5px!important;
    line-height:1.4!important;
  }
  .game-main small,
  .game-main .table-footer-line,
  .game-main .intl-format-summary,
  .game-main .intl-bracket-note,
  .game-main .intl-format-note{
    font-size:11.5px!important;
    line-height:1.45!important;
  }
}

/* ---- 4. nothing may ever scroll sideways ------------------------------- */
@media (max-width:1180px){
  html,body{max-width:100%!important;overflow-x:hidden!important;}
  .game-main,
  .game-page,
  .countries-shell,
  .workspace-card,
  .country-detail-card,
  .player-page-shell{max-width:100%!important;}
  /* Wide data tables stay usable by scrolling inside their own wrapper
     instead of pushing the whole page sideways. */
  .workspace-table-wrap,
  .goal-match-table-wrap,
  .intl-league-table-wrap,
  .table-scroll,
  .league-table-wrap{
    width:100%!important;
    max-width:100%!important;
    overflow-x:auto!important;
    -webkit-overflow-scrolling:touch;
  }
}

/* ---- 5. pagination and page numbers are tap targets too ---------------- */
@media (max-width:1180px),(hover:none) and (pointer:coarse){
  .ruby-history-pagination a,
  .ruby-history-pagination span,
  .mailbox-pagination a,
  .mailbox-pagination span,
  .hall-pagination .hall-page,
  .manager-history-pagination a,
  .manager-page-number,
  .manager-rank-page,
  .table-pagination a{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    min-width:44px!important;
    min-height:44px!important;
    padding-top:0!important;
    padding-bottom:0!important;
  }
  .ruby-history-pagination,
  .mailbox-pagination,
  .hall-pagination,
  .manager-history-pagination{
    flex-wrap:wrap!important;
    gap:4px!important;
  }
}

/* mobile team match score stays on one line.
   Keep the existing card layout exactly as-is; only prevent "4 x 0" from
   wrapping into two lines on narrow phones. */
@media(max-width:900px){
  .goal-match-table.single-result-table .score-cell{
    min-width:62px!important;
    white-space:nowrap!important;
    overflow-wrap:normal!important;
    word-break:keep-all!important;
    line-height:1.2!important;
  }
  .goal-match-table.single-result-table tr{
    grid-template-columns:minmax(0,1fr) 62px minmax(0,1fr)!important;
  }
}
@media(max-width:520px){
  .goal-match-table.single-result-table tr{
    grid-template-columns:minmax(0,1fr) 58px minmax(0,1fr)!important;
  }
  .goal-match-table.single-result-table .score-cell{min-width:58px!important;padding-left:5px!important;padding-right:5px!important;}
}

/* ---- 3.69: coaching controls on phone and tablet ----------------------- */
/* The report cards laid out fine, but the controls inside them did not:
   the buttons kept their desktop auto width pinned to the left of a
   full-width card, the pending Cancel row had no layout of its own, and the
   long attribute list pushed "Request All Reports" far below the fold. */
@media (max-width:900px),(hover:none) and (pointer:coarse){
  .coach-attribute-content{padding:12px}
  /* the primary action moves above the long attribute list on touch layouts */
  .coach-attribute-content{display:flex;flex-direction:column}
  .coach-attribute-content .coach-all-btn{order:-1;margin:0 0 12px}
  .coach-all-btn{
    width:100%!important;
    justify-content:center!important;
    font-size:13px!important;
    padding:0 14px!important;
  }
  .coach-report-card{min-height:0}
  .coach-report-card h3{height:auto;min-height:38px;padding:8px 12px;font-size:13.5px;line-height:1.3}
  .coach-report-card p{margin:10px 12px 8px;font-size:13px}
  .coach-report-card small{margin:0 12px 12px}
  .coach-report-card .coach-report-btn{
    align-self:stretch!important;
    width:auto!important;
    justify-content:center!important;
    margin:auto 12px 12px!important;
    font-size:13px!important;
  }
  .coach-report-actions{display:flex;margin:0 12px 12px}
  .coach-report-actions .coach-cancel-btn{
    flex:1 1 auto;
    justify-content:center!important;
    font-size:13px!important;
  }
  .coach-report-card .coach-progress-block{margin:10px 12px 4px}
  .coach-progress-label{font-size:12px}
  .coach-progress-track b{font-size:12px}
  .coach-progress-track{height:20px}
}

/* MESSAGE TO MANAGERS stays readable on phones and narrow tablets. */
@media(max-width:520px){
  .server-announcement-current{padding:14px!important;}
  .server-announcement-current h2{font-size:15px!important;}
  .server-announcement-body{font-size:12px!important;line-height:1.62!important;}
  .server-announcement-archive-row{grid-template-columns:1fr!important;gap:4px!important;padding:10px 11px!important;}
  .server-announcement-archive-row time{white-space:normal!important;}
  .server-announcement-pagination{max-width:100%!important;gap:4px!important;}
  .server-announcement-page{min-width:28px!important;padding:0 7px!important;}
}

/* manager announcement admin controls */
@media (max-width:560px){
  .server-announcement-current-head{display:grid!important;grid-template-columns:1fr!important;gap:9px!important;}
  .server-announcement-current-actions{justify-content:flex-start!important;}
  .server-announcement-current-head .server-announcement-admin-actions{justify-content:flex-start!important;}
  .server-announcement-admin-toolbar{align-items:flex-start!important;flex-direction:column!important;}
  .server-announcement-archive-row{grid-template-columns:1fr!important;gap:0!important;}
  .server-announcement-archive-open{grid-template-columns:1fr!important;gap:4px!important;padding:10px 11px!important;}
  .server-announcement-archive-row>.server-announcement-admin-actions{justify-content:flex-start!important;padding:0 10px 9px!important;}
  .server-announcement-draft-row{grid-template-columns:1fr!important;}
  .server-announcement-draft-row .server-announcement-admin-actions{justify-content:flex-start!important;}
  .server-announcement-admin-modal-backdrop{padding:10px!important;align-items:start!important;overflow:auto!important;}
  .server-announcement-admin-modal{max-height:none!important;margin:10px 0!important;}
  .server-announcement-editor-actions{justify-content:stretch!important;}
  .server-announcement-editor-button{flex:1 1 auto!important;}
}

/* ---- 3.19: Coaching uses the canonical responsive table rail ------------
   Root cause hardening: the Coaching card lives in a CSS-grid workspace.  On
   narrow WebKit/touch layouts an implicit `auto` grid track can retain the
   table's 930px min-content contribution.  When the page itself is clipped to
   the viewport this makes the table look cut off while its wrapper has no
   useful local scroll range.  Force the Coaching workspace track and every
   item in the rail chain to be shrinkable; only the table keeps its deliberate
   desktop-compatible minimum width. */
.coaching-workspace-shell{
  grid-template-columns:minmax(0,1fr)!important;
  min-width:0!important;
  max-width:100%!important;
}
.coaching-workspace-shell>.coaching-card,
.coaching-card{
  min-width:0!important;
  max-width:100%!important;
}
.coaching-table-wrap{
  display:block!important;
  box-sizing:border-box!important;
  inline-size:100%!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  overflow:auto!important;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior-inline:contain;
  touch-action:pan-x pan-y;
}
.coaching-table{
  width:100%!important;
  min-width:930px!important;
  table-layout:auto!important;
}
.coaching-table th{white-space:nowrap}
.coaching-table th:nth-child(4),.coaching-table td:nth-child(4),
.coaching-table th:nth-child(5),.coaching-table td:nth-child(5),
.coaching-table th:nth-child(6),.coaching-table td:nth-child(6),
.coaching-table th:nth-child(7),.coaching-table td:nth-child(7){min-width:150px}

@media (max-width:1100px){
  .coaching-table .coach-inline-progress{max-width:138px;min-width:84px}
  .coaching-table th:nth-child(4),.coaching-table td:nth-child(4),
  .coaching-table th:nth-child(5),.coaching-table td:nth-child(5),
  .coaching-table th:nth-child(6),.coaching-table td:nth-child(6),
  .coaching-table th:nth-child(7),.coaching-table td:nth-child(7){min-width:132px}
}

/* mobile transfer market reuses the desktop table.
   This deliberately overrides the historical 2.66/3.20 card transforms:
   one renderer, one 18-column table, one horizontally scrollable table rail. */
@media (max-width:900px), (hover:none) and (pointer:coarse) and (max-width:1024px) {
  .transfer-market-card{
    max-width:100%!important;
    overflow:hidden!important;
  }
  .transfer-market-title{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(150px,44%)!important;
    align-items:center!important;
    gap:6px!important;
    min-height:0!important;
    padding-top:6px!important;
    padding-bottom:6px!important;
  }
  .transfer-market-title .league-name-block{
    display:block!important;
    min-width:0!important;
  }
  .transfer-market-title .league-name-block strong{
    display:block!important;
    font-size:14px!important;
    line-height:1.1!important;
  }
  .transfer-market-title .league-name-block span{display:none!important}
  .transfer-league-select{
    width:100%!important;
    display:grid!important;
    grid-template-columns:auto minmax(0,1fr)!important;
    align-items:center!important;
    gap:4px!important;
    min-width:0!important;
  }
  .transfer-league-select label{font-size:9.5px!important;line-height:1!important}
  .transfer-league-select select{
    width:100%!important;
    min-width:0!important;
    height:30px!important;
    padding:0 4px!important;
    font-size:10.5px!important;
    border-radius:4px!important;
  }
  .transfer-market-toolbar{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    align-items:center!important;
    gap:5px!important;
    padding:5px 6px!important;
  }
  .transfer-filter-controls{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    gap:4px!important;
    min-width:0!important;
  }
  .transfer-filter-controls select{
    width:100%!important;
    min-width:0!important;
    height:30px!important;
    padding:0 4px!important;
    font-size:10.5px!important;
    border-radius:4px!important;
  }
  .transfer-filter-controls button{
    min-width:48px!important;
    min-height:0!important;
    height:30px!important;
    padding:0 6px!important;
    font-size:10px!important;
    border-radius:4px!important;
  }
  .transfer-market-search{
    display:grid!important;
    grid-template-columns:auto minmax(0,1fr)!important;
    align-items:center!important;
    gap:4px!important;
    min-width:0!important;
    font-size:9.5px!important;
    line-height:1!important;
  }
  .transfer-market-search input{
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    height:30px!important;
    padding:0 5px!important;
    font-size:10.5px!important;
    border-radius:4px!important;
  }

  /* The rail is the only horizontal scrolling surface. The page itself stays
     viewport-wide while the real desktop-style table keeps readable columns. */
  .transfer-market-table-wrap{
    display:block!important;
    box-sizing:border-box!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    padding:0 6px 5px!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior-inline:contain;
    touch-action:pan-x pan-y;
  }
  .transfer-market-table{
    display:table!important;
    width:1070px!important;
    min-width:1070px!important;
    max-width:none!important;
    table-layout:fixed!important;
    border-collapse:collapse!important;
    font-size:9.5px!important;
    line-height:1.15!important;
  }
  .transfer-market-table colgroup{display:table-column-group!important}
  .transfer-market-table thead{display:table-header-group!important}
  .transfer-market-table tbody{display:table-row-group!important;width:auto!important;min-width:0!important}
  .transfer-market-table tr{
    display:table-row!important;
    width:auto!important;
    min-width:0!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    overflow:visible!important;
  }
  .transfer-market-table tbody tr:hover{background:#f4f8f5!important}
  .transfer-market-table th,
  .transfer-market-table td{
    display:table-cell!important;
    box-sizing:border-box!important;
    min-width:0!important;
    height:26px!important;
    padding:3px 4px!important;
    border:0!important;
    border-bottom:1px solid #dde3df!important;
    background:transparent!important;
    vertical-align:middle!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    font-size:9.5px!important;
    line-height:1.15!important;
  }
  .transfer-market-table th{
    height:25px!important;
    font-size:9px!important;
    font-weight:800!important;
    color:#222b25!important;
    background:#fff!important;
    border-bottom-color:#aab4ad!important;
  }
  .transfer-market-table td::before{display:none!important;content:none!important}
  /* Higher-specificity legacy card selectors must also be reset to genuine
     table cells. */
  .transfer-market-table td.market-name-col,
  .transfer-market-table td.market-club-col,
  .transfer-market-table td.market-pressure-col,
  .transfer-market-table td.market-money-col,
  .transfer-market-table td.market-action-col{display:table-cell!important}
  .transfer-market-table td.market-name-col{
    padding:3px 4px!important;
    background:transparent!important;
  }

  /* Explicit pixel columns make th/td alignment deterministic while preserving
     the desktop information order. */
  .transfer-market-table col.market-col-name{width:140px!important}
  .transfer-market-table col.market-col-club{width:130px!important}
  .transfer-market-table col.market-col-pos{width:34px!important}
  .transfer-market-table col.market-col-side{width:40px!important}
  .transfer-market-table col.market-col-age{width:36px!important}
  .transfer-market-table col.market-col-skill{width:38px!important}
  .transfer-market-table col.market-col-pressure{width:78px!important}
  .transfer-market-table col.market-col-wage{width:72px!important}
  .transfer-market-table col.market-col-value{width:84px!important}
  .transfer-market-table col.market-col-price{width:90px!important}
  .transfer-market-table col.market-col-action{width:62px!important}

  .transfer-market-table th:nth-child(1),.transfer-market-table td:nth-child(1),
  .transfer-market-table th:nth-child(2),.transfer-market-table td:nth-child(2){text-align:left!important}
  .transfer-market-table th:nth-child(n+3):nth-child(-n+14),
  .transfer-market-table td:nth-child(n+3):nth-child(-n+14){text-align:center!important}
  .transfer-market-table th:nth-child(15),.transfer-market-table td:nth-child(15),
  .transfer-market-table th:nth-child(16),.transfer-market-table td:nth-child(16),
  .transfer-market-table th:nth-child(17),.transfer-market-table td:nth-child(17){text-align:right!important}
  .transfer-market-table th:nth-child(18),.transfer-market-table td:nth-child(18){text-align:right!important}

  .market-name-wrap{
    display:flex!important;
    align-items:center!important;
    gap:4px!important;
    width:100%!important;
    min-width:0!important;
  }
  .market-name-wrap .player-flag{
    flex:0 0 14px!important;
    width:14px!important;
    height:9px!important;
    margin:0!important;
  }
  .market-player-cell{
    display:flex!important;
    align-items:center!important;
    flex-wrap:nowrap!important;
    gap:3px!important;
    min-width:0!important;
    max-width:100%!important;
    overflow:hidden!important;
  }
  .market-player-cell>a,
  .transfer-market-table td.market-club-col a,
  .transfer-market-table td.market-club-col .market-free-agent{
    display:block!important;
    min-width:0!important;
    max-width:100%!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    font-size:9.5px!important;
    line-height:1.15!important;
    font-weight:500!important;
  }
  .market-player-cell>a{font-weight:600!important}
  .market-player-tier{width:9px!important;height:12px!important;flex:0 0 9px!important;margin:0!important}
  .transfer-market-table td.market-pressure-col{font-size:9px!important}
  .transfer-market-table td.market-money-col{font-size:9px!important;font-variant-numeric:tabular-nums!important}

  /* Restore the desktop-style compact action link; the legacy card CSS turned
     this into a large green full-width button. */
  .transfer-market-table td.market-action-col{padding:3px 4px!important}
  .transfer-market-table td.market-action-col a,
  .transfer-market-table td.market-action-col .market-own-listing{
    display:inline!important;
    width:auto!important;
    min-width:0!important;
    min-height:0!important;
    height:auto!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    color:#157b39!important;
    font-size:9px!important;
    font-weight:500!important;
    line-height:1.15!important;
    white-space:nowrap!important;
    text-align:right!important;
    text-decoration:none!important;
  }
  .transfer-market-table td.market-action-col .market-own-listing{color:#4b5950!important}

  .transfer-market-table tr.market-empty-row,
  .transfer-market-table tr.market-loading-row{display:table-row!important;background:#fafcfa!important}
  .transfer-market-table tr.market-empty-row td,
  .transfer-market-table tr.market-loading-row td{
    display:table-cell!important;
    height:auto!important;
    padding:14px 8px!important;
    text-align:center!important;
    border-bottom:0!important;
  }
  .transfer-market-table tr.market-empty-row td::before,
  .transfer-market-table tr.market-loading-row td::before{display:none!important;content:none!important}
  .transfer-market-summary{
    display:flex!important;
    flex-direction:row!important;
    flex-wrap:wrap!important;
    gap:3px 8px!important;
    padding:5px 8px 8px!important;
    font-size:9.5px!important;
    line-height:1.2!important;
  }

  /* Existing search writes inline display:none. It must win over every mobile
     display reset and hide the real table row, not a card clone. */
  .transfer-market-table tbody tr[style*="display: none"]{display:none!important}
}

@media (max-width:340px){
  .transfer-market-title{grid-template-columns:minmax(0,1fr) 136px!important}
  .transfer-market-toolbar{grid-template-columns:1fr!important}
  .transfer-filter-controls button{min-width:52px!important}
}



/* 2.14: one compact coaching table on desktop and mobile. */
.coaching-card .coaching-table{table-layout:fixed!important;min-width:1020px!important;border-collapse:collapse}
.coaching-table .coach-col-player{width:16%}.coaching-table .coach-col-pos{width:4%}.coaching-table .coach-col-age{width:4%}
.coaching-table .coach-col-profile{width:16%}.coaching-table .coach-col-potential{width:17%}.coaching-table .coach-col-stage{width:20%}
.coaching-table .coach-col-next{width:13%}.coaching-table .coach-col-action{width:10%}
.coaching-card .coaching-table th,.coaching-card .coaching-table td{min-width:0!important;padding:7px 8px!important;vertical-align:middle;font-size:11px;line-height:1.35;white-space:normal;overflow-wrap:break-word;border-bottom:1px solid #e5ebe7}
.coaching-card .coaching-table th{background:#eef5f0;color:#365743;font-weight:700;text-align:left}
.coaching-card .coaching-table th:nth-child(2),.coaching-card .coaching-table td:nth-child(2),.coaching-card .coaching-table th:nth-child(3),.coaching-card .coaching-table td:nth-child(3){text-align:center}
.coaching-card .coaching-table tbody tr:nth-child(even){background:#f7faf8}
.coaching-card .coaching-table tbody tr:hover{background:#eef6f0}
.coaching-card .coaching-table tr[hidden]{display:none!important}
.coaching-card .coach-row-action{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:28px;padding:4px 7px;margin:0;border:1px solid #b9d2c1;border-radius:3px;background:#fff;color:#176832;font:inherit;font-size:11px;line-height:1.2;white-space:nowrap;text-decoration:none;cursor:pointer}
.coaching-card .coach-row-action:hover{background:#eaf4ed;border-color:#247b43}
.coaching-card .coach-row-action:focus-visible,.coaching-table-wrap:focus-visible{outline:2px solid #247b43;outline-offset:-2px}
.coaching-card .coach-row-action:disabled{opacity:.55;cursor:default}
.coaching-card .coach-not-analyzed{color:#77867c;font-style:italic}
.coaching-card .coach-progress-label{display:none}
.coaching-card .coach-progress-block{margin:0;padding:0}
.coaching-card .coach-progress-track{height:18px;min-width:0}
.coach-table-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px}
.coach-season-note,.coach-table-summary{font-size:11px;color:#68796d}
.coach-table-summary{padding:8px 12px;border-top:1px solid #e5ebe7}
.coaching-card .coaching-search-row{display:flex;align-items:center;gap:7px;padding:0;font-size:11px}
.coaching-card .coaching-search-row input{box-sizing:border-box;width:160px;max-width:100%;height:28px;margin:0;border:1px solid #bdcbbf;border-radius:3px;background:#fff;font:inherit}
@media (max-width:600px){
 .coach-table-toolbar{flex-wrap:wrap;gap:8px;padding:9px 10px}
 .coach-season-note{flex-basis:100%}
 .coaching-card .coaching-search-row{margin-left:auto}
 .coaching-card .coaching-search-row input{height:32px}
 .coaching-card .coach-row-action{min-height:32px}
 .coaching-card .workspace-tabs{display:flex;flex-wrap:nowrap;overflow-x:auto}
 .coaching-card .workspace-tab{flex:0 0 auto}
}
