/* Keep profile content comfortably bounded inside the existing game shell. */
#view-profile>*{max-width:1040px!important;margin-left:auto!important;margin-right:auto!important}
#view-profile>.button{display:table;margin-bottom:12px}
#view-profile .profile-stat-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important}
#view-profile .profile-stat-grid>div{padding:10px 12px!important}
#view-profile .profile-stat-grid strong{font-size:18px!important}
#view-profile .profile-stat-grid span,#view-profile .manager-profile-copy p,#view-profile .rank-current-copy p{font-size:13px!important;color:#385745!important}
#view-profile .manager-profile-hero{padding:16px!important;border-radius:12px!important}
#view-profile .manager-profile-copy h2{font-size:22px!important}
#view-profile .own-squad{overflow-x:auto;padding:14px!important}
#view-profile #profile-roster{min-width:650px}
#view-profile .rank-progress-meta{font-size:12px!important}
#view-profile .manager-rank-overview{margin-top:12px!important;margin-bottom:12px!important}
#view-championship>.back-button{color:#fff!important;background:#163f31!important;border:1px solid #c6ac6c!important;padding:10px 16px!important;border-radius:8px;margin:4px 0 12px;min-height:44px}
#view-championship{min-width:0}
@media(max-width:600px){#view-profile .profile-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}#view-profile .manager-profile-hero{padding:12px!important}}

.app-header .main-nav{grid-template-columns:repeat(7,minmax(0,1fr))!important}.ranking-panel{padding:20px!important}.ranking-panel h2{font-size:24px!important}.ranking-panel p{font-size:14px!important;color:#385745!important;line-height:1.6}.ranking-scroll{overflow:auto}.ranking-table{width:100%;border-collapse:collapse;min-width:900px;color:#173b2a;font-size:14px}.ranking-table th{background:#16452f;color:#fff;text-align:left;white-space:nowrap;padding:12px 10px}.ranking-table td{padding:12px 10px;border-bottom:1px solid #cddbcf}.ranking-table tr:nth-child(even){background:#e7eee5}.ranking-table a{color:#145235;font-weight:700}.ranking-table td span,.ranking-table small{display:block;margin-top:5px}.ranking-table small{font-size:12px;color:#73591e}.ranking-table .ranking-me{background:#e6dbac!important}.ranking-pagination{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:18px 0}#ranking-filters{display:flex;gap:14px;align-items:end;flex-wrap:wrap;margin:18px 0}#ranking-filters label{display:grid;gap:7px;font-size:14px;color:#234c34}#ranking-filters input,#ranking-filters select{min-height:42px;background:white;color:#183f2b;border:1px solid #809c86;padding:10px;border-radius:6px;font:inherit}#ranking-filters input{width:min(330px,100%)}@media(max-width:700px){.app-header .main-nav{grid-template-columns:repeat(4,minmax(0,1fr))!important}.ranking-panel{padding:12px!important}}

#team-lineup-mode{grid-template-columns:280px minmax(360px,620px) minmax(170px,220px)!important;gap:12px!important;justify-content:center;align-items:start!important}
#team-lineup-mode .pitch{height:430px!important;min-height:430px!important;max-width:620px;margin:auto;overflow:hidden}
#team-lineup-mode .pitch-slot{width:68px!important;min-height:48px!important;padding:2px!important}
#team-lineup-mode .player-token{width:64px!important}#team-lineup-mode .token-name{color:#fff!important;font-size:10px!important;line-height:1.2!important;display:block!important;max-width:64px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#team-lineup-mode .token-role{color:#ecf5e4!important;font-size:10px!important}#team-lineup-mode .shirt{width:25px!important;height:26px!important}
#team-lineup-mode .roster-panel{padding:10px!important;min-width:0}#team-lineup-mode .roster{max-height:490px!important;overflow:auto!important}
#team-lineup-mode .player-row{display:grid!important;grid-template-columns:28px minmax(0,1fr) 30px!important;gap:5px!important;padding:5px 6px!important;min-height:37px!important;color:#193f2d!important}
#team-lineup-mode .player-row .form{display:none!important}#team-lineup-mode .player-name{font-size:12px!important;line-height:1.2!important}#team-lineup-mode .player-pos{font-size:11px!important}#team-lineup-mode .player-row.already-used{opacity:1!important;background:#e0eddf!important;border-left:3px solid #397c4c}#team-lineup-mode .player-row.manual-selected{background:#f0dfa8!important;outline:2px solid #93752b}
.roster-search{display:grid;gap:6px;margin:8px 0}.roster-search input,.roster-search select{width:100%;min-height:34px;font-size:13px;padding:6px;background:#fff;color:#173d2b;border:1px solid #89a18c;border-radius:5px}
.pitch-goal{position:absolute;z-index:2;pointer-events:none;bottom:1%;left:42%;width:16%;height:4%;border:3px solid #fff;background:repeating-linear-gradient(90deg,transparent 0 7px,#fff7 7px 8px),repeating-linear-gradient(0deg,transparent 0 5px,#fff7 5px 6px);box-shadow:0 2px 4px #001a0c}
.pitch-penalty-box{position:absolute;z-index:1;pointer-events:none;bottom:3.5%;left:30%;width:40%;height:17%;border:2px solid #fff9}
#team-lineup-mode .scoreboard{position:static!important;transform:none!important;margin:0 auto 6px!important;background:#173e2e!important;color:#fff!important;width:auto!important;max-width:620px!important}
.cup-enrolled{display:grid;gap:7px;background:#174c32;color:#fff;padding:16px;border-radius:8px;border-left:5px solid #d5b76c}.cup-enrolled strong{font-size:19px}.cup-enrolled span{font-size:14px}.cup-lobby-metrics{display:flex;gap:30px;margin:20px 0}.cup-lobby-metrics div{display:grid;gap:5px}.cup-lobby-metrics strong{font-size:24px}.cup-lobby-slots{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.cup-lobby-slot{display:flex;gap:12px;padding:12px;border:1px dashed #93a38e;background:#e9eee5;border-radius:6px;font-size:14px}.cup-lobby-slot small{display:block;margin-top:5px;font-size:12px;color:#53674d}.cup-lobby-slot.occupied{background:#e8dbab;border:2px solid #987d35;font-weight:700}.cup-waiting-room{grid-column:1/-1;padding:20px!important}.cup-waiting-room p{font-size:14px!important;color:#365338!important}
@media(max-width:1100px){#team-lineup-mode{grid-template-columns:250px minmax(340px,1fr)!important}#team-lineup-mode>.right-column{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:12px}.cup-lobby-slots{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){#team-lineup-mode:not(.hidden){display:flex!important;flex-direction:column!important}#team-lineup-mode>.center-column{order:0;width:100%}#team-lineup-mode>.roster-panel{order:1;width:100%}#team-lineup-mode>.right-column{order:2;width:100%}#team-lineup-mode .roster{max-height:300px!important}#team-lineup-mode .pitch{height:410px!important;min-height:410px!important}.cup-lobby-slots{grid-template-columns:repeat(2,minmax(0,1fr))}.cup-lobby-metrics{gap:16px}}

#view-finances .panel,#view-finances .page-title{color:#193d2b!important;background:#f1f5ec!important}#view-finances p,#view-finances small,#view-finances label,#view-finances .eyebrow{color:#3a563e!important;font-size:13px!important}#view-finances h2{font-size:20px!important;color:#193d2b!important}#view-finances .weekly-finance-grid>div,#view-finances .weekly-finance-grid>span,#view-finances .weekly-finance-breakdown span,#view-finances .sponsor-terms span,#view-finances .ticket-estimate span{background:#e0eadd!important;color:#304d34!important;border:1px solid #a6b9a1!important}#view-finances strong{color:#1e4d2e!important}#view-finances .negative{color:#963b2f!important}#view-finances .button{color:#fff!important;background:#27613e!important;font-size:13px!important}#view-finances .button:disabled{background:#d9e3d4!important;color:#4c624b!important}#view-finances .finance-overview{gap:10px!important}#view-finances .finance-stat strong{font-size:20px!important}#view-finances .ledger-row{font-size:13px!important}#view-finances .ledger-row strong{white-space:normal!important}#view-finances .sponsor-card p{font-size:13px!important}

#view-home .hero-fixture,#view-home #daily-status,#view-home .hero-actions .open-team,#view-home .hero-club-stats>div:first-child,#view-home .home-cup-card{display:none!important}#home-online-cup{margin:14px 0;padding:18px!important;border:2px solid #b5a066!important}#home-online-summary{font-size:16px!important;color:#23442e!important}#home-online-clock{display:inline-block;font-size:30px;color:#8b4520;margin-right:20px;font-variant-numeric:tabular-nums}#home-online-prepare{margin-right:10px}
#home-online-prepare[hidden]{display:none!important}

.manager-sidebar #home-online-cup{display:block!important;position:sticky;bottom:10px;z-index:20;width:100%;box-sizing:border-box;margin:12px 0 0;padding:10px!important;background:#163f30!important;color:#f5e9b8!important;border:1px solid #d6b65f!important;border-radius:8px}.manager-sidebar #home-online-cup h2{font-size:14px;margin:0 0 7px;color:#f5e9b8}.manager-sidebar #home-online-summary{font-size:13px;line-height:1.4;color:#f5f4e9;margin:5px 0}.manager-sidebar #home-online-clock{display:block;font-size:28px;color:#ffe2a1}.manager-sidebar #home-online-cup button{display:block;width:100%;font-size:13px;padding:6px 3px;min-height:30px;margin-top:5px}.manager-sidebar #home-online-prepare[hidden]{display:none!important}
#manager-rank-road{grid-template-columns:repeat(auto-fit,minmax(155px,1fr))!important;gap:9px!important}.manager-rank-card{display:flex!important;flex-direction:column;transform:none!important}.manager-rank-state{position:static!important;align-self:flex-end;max-width:100%;font-size:12px!important;padding:4px 7px!important;margin:6px!important;white-space:normal}.manager-rank-picture{height:60px!important;min-height:60px!important;display:flex;align-items:center;justify-content:center}.manager-rank-picture .trophy-art-frame{width:54px!important;height:59px!important;flex:none!important}.manager-rank-card-copy strong{min-height:0!important;font-size:14px!important;margin:3px 0 6px}.manager-rank-card-copy span{font-size:12px!important;color:#415345!important}.manager-rank-card.future{opacity:1!important}
@media(max-width:800px){.manager-sidebar #home-online-cup{position:fixed;bottom:8px;left:8px;width:210px;max-width:calc(100vw - 16px);box-shadow:0 4px 20px #0005}.manager-sidebar #home-online-summary{max-height:38px;overflow:auto}.manager-sidebar #home-online-cup h2{display:none}}

#view-ranking .ranking-panel{max-width:1050px;margin:0 auto;padding:14px!important;border-radius:9px!important}#view-ranking .panel-head{padding:10px 12px;margin:-14px -14px 10px;background:#1c4935;border-bottom:2px solid #bea458;border-radius:8px 8px 0 0}#view-ranking .panel-head h2{font-size:20px;color:#f2e4ae;margin:3px 0}#view-ranking .panel-head p{display:none}#view-ranking .eyebrow{font-size:12px;color:#d5dfce}#ranking-filters{display:flex;align-items:end;gap:8px;margin:6px 0!important;flex-wrap:wrap}#ranking-filters label{font-size:12px}#ranking-filters input,#ranking-filters select{height:32px;padding:4px 7px;font-size:14px}#ranking-filters button,#ranking-refresh{min-height:32px;padding:5px 12px;font-size:13px}#ranking-status{font-size:13px;margin:7px 0}.ranking-scroll{overflow:auto}.ranking-table{width:100%;border-collapse:collapse;min-width:780px;font-size:14px}.ranking-table th{padding:7px 6px!important;background:#244d37;color:#f3e9c9;font-size:12px;white-space:nowrap}.ranking-table td{height:30px;box-sizing:border-box;padding:4px 6px!important;line-height:20px;border-bottom:1px solid #d5dfd4;font-size:14px;white-space:nowrap;text-align:right}.ranking-table td:nth-child(2){text-align:left;max-width:270px;overflow:hidden;text-overflow:ellipsis}.ranking-table td:first-child{text-align:center;width:35px}.ranking-table td a{display:inline!important;font-size:14px}.ranking-table .ranking-club{display:inline!important;font-size:12px;color:#52604f}.ranking-table td small{display:inline!important;font-size:12px;margin-left:5px}.ranking-table tr:nth-child(even){background:#eaf0e7}.ranking-table tr.ranking-me{background:#f4e7b7!important}.ranking-pagination{margin:8px 0!important;display:flex;justify-content:center;align-items:center;gap:18px}.ranking-pagination button{padding:5px 10px;min-height:30px;font-size:13px}.ranking-note{font-size:12px!important;line-height:1.4;margin:8px 0 0!important;color:#566251}

/* Compact global match notice; never inherit panel paragraph sizing. */
.manager-sidebar #home-online-cup{height:auto!important;min-height:0!important;max-height:none!important;padding:7px!important;gap:3px!important;display:block!important;flex:none!important}.manager-sidebar #home-online-cup h2{display:none!important}.manager-sidebar #home-online-summary{display:block!important;visibility:visible!important;opacity:1!important;position:static!important;min-height:0!important;height:auto!important;max-height:none!important;margin:0 0 4px!important;padding:0!important;font-size:13px!important;line-height:1.35!important;color:#f4f4e8!important;overflow:visible!important}.manager-sidebar #home-online-clock{display:inline-block!important;font-size:18px!important;line-height:24px!important;min-width:52px;font-variant-numeric:tabular-nums;margin:0!important;padding:0!important}.manager-sidebar #home-online-cup button{display:inline-block!important;width:auto!important;min-height:24px!important;padding:3px 5px!important;font-size:12px!important;line-height:18px!important;margin:2px 0!important}.manager-sidebar #home-online-prepare[hidden]{display:none!important}.manager-sidebar #home-online-cup button:last-child{background:transparent!important;color:#dfd8af!important;text-decoration:underline;box-shadow:none!important;border:0!important}.manager-sidebar .manager-strip-item{padding:5px 7px!important;min-height:36px!important}.manager-sidebar .status-icon{width:27px!important;height:27px!important}.manager-sidebar .status-copy strong{font-size:14px!important}.manager-sidebar .status-copy span{font-size:12px!important}
#trophies{display:grid!important;grid-template-columns:repeat(auto-fill,100px)!important;gap:8px!important;justify-content:start}.trophy-item{position:relative!important;min-height:0!important;width:100px!important;box-sizing:border-box;padding:5px!important;border-radius:8px!important;text-align:center}.trophy-item .trophy-art-frame{width:76px!important;height:82px!important;margin:0 auto!important;display:block!important}.trophy-item>img{width:76px!important;height:82px!important}.trophy-item strong{display:block;font-size:12px!important;line-height:1.2!important;margin:4px 0 0!important}.trophy-item .trophy-count{position:absolute;left:4px;top:77px;z-index:3;display:block;min-width:22px;padding:2px 4px;border-radius:12px;background:#fff;color:#223f2e;font-size:13px;font-weight:800;border:1px solid #bdc9b5}.trophy-stars{font-size:12px!important;line-height:14px!important;height:14px!important}.empty-trophy{grid-column:1/-1}
.view.content-page,.view.dashboard-page{padding:12px!important}.view .panel{padding:12px!important;border-radius:8px!important}.view .panel h2,.view .page-title h2{font-size:19px!important;margin:4px 0 8px!important}.view .panel-head{margin-bottom:8px!important}.view .button{min-height:30px;padding:5px 9px;font-size:13px}.profile-stat-grid>div,.finance-stat{padding:7px!important}.home-hero{height:170px!important}.home-hero-content h2{font-size:23px!important}.home-hero-content p{margin:5px 0!important}.manager-rank-card-copy{padding:7px!important}

.ranking-table th{text-align:right!important}.ranking-table th:first-child{text-align:center!important}.ranking-table th:nth-child(2){text-align:left!important}#view-ranking .panel-head h2{color:#f2e4ae!important}.management-next-benefit{padding:7px;background:#e3ecdc;border-left:3px solid #9a843b;color:#23402b;font-size:13px}.management-next-benefit p{margin:3px 0!important;min-height:0!important;font-size:13px!important}.management-card>p{min-height:0!important}.management-benefit{margin-top:7px!important}.facility-card{gap:7px!important}.squad-table-head,.squad-row{display:grid!important;grid-template-columns:35px 66px 38px minmax(150px,1fr) 48px 48px 55px 48px 48px 95px!important;gap:0!important;min-width:760px!important;padding:0!important;align-items:center!important}.squad-table-card{overflow-x:auto!important}.squad-table-body{max-height:none!important;overflow:visible!important}.squad-table-head>*,.squad-row>*{padding:5px 6px!important;box-sizing:border-box;font-size:13px!important;line-height:20px!important;min-width:0}.squad-row{min-height:30px!important;border-bottom:1px solid #cbd8c8!important}.squad-row:nth-child(even){background:#e6ede2!important}.squad-table-head{background:#244d37!important;color:#f2e9c8!important}.squad-workspace{grid-template-columns:minmax(0,1fr) 270px!important;gap:10px!important}.transfer-table-head,.market-row{display:grid!important;grid-template-columns:minmax(145px,1.5fr) 36px 58px 48px 48px 48px minmax(100px,1fr) 75px 68px 95px!important;gap:0!important;min-width:850px!important;padding:0!important}.transfer-table-head>*,.market-row>*{padding:5px!important;font-size:13px!important;line-height:20px!important;box-sizing:border-box;display:block!important}.transfer-table-head{background:#244d37!important;color:#f2e9c8!important}.market-row{min-height:30px!important;border-bottom:1px solid #cbd8c8!important}.market-row:nth-child(even){background:#e6ede2!important}.transfer-market-card{overflow-x:auto!important}.market-list{max-height:none!important}.profile-roster-table th,.profile-roster-table td{padding:4px 6px!important;text-align:left}.profile-roster-table{border-collapse:collapse}.profile-roster-table td{border-bottom:1px solid #cbd8c8}@media(max-width:1050px){.squad-workspace{grid-template-columns:1fr!important}}

/* Continuous column rules throughout player lists. */
.profile-roster-row,.squad-row,.squad-table-head,.public-squad-row,.public-squad-head,.market-row,.transfer-table-head,.contract-row,.contracts-table-head,.academy-row,.academy-table-head{gap:0!important;border-bottom:1px solid #aebfad!important;border-left:1px solid #aebfad!important;border-right:0!important;border-radius:0!important;align-items:stretch!important;padding-left:0!important;padding-right:0!important}.profile-roster-row>*,.squad-row>*,.squad-table-head>*,.public-squad-row>*,.public-squad-head>*,.market-row>*,.transfer-table-head>*,.contract-row>*,.contracts-table-head>*,.academy-row>*,.academy-table-head>*{border-right:1px solid #aebfad!important;padding:4px 6px!important;display:flex;align-items:center;min-width:0;box-sizing:border-box}.profile-roster-row.head,.squad-table-head,.transfer-table-head{border-top:1px solid #aebfad!important}.profile-roster-row{grid-template-columns:36px 70px 44px minmax(160px,1fr) 58px 58px 64px 58px!important;min-width:650px!important;min-height:28px!important;line-height:20px!important}.profile-roster-row>strong{font-size:13px!important}.ranking-table th,.ranking-table td,.view table th,.view table td{border:1px solid #aebfad!important}.view table{border-collapse:collapse!important}

#facilities-grid,#staff-grid{align-items:start!important}.management-card{align-self:start!important;height:auto!important;min-height:0!important}.management-card .management-benefit{margin-top:7px!important}.base-levels{max-height:310px;overflow-y:auto;overscroll-behavior:contain;padding-right:4px}.base-levels figure{margin:7px 0!important}.base-levels img{height:110px!important;width:100%!important;object-fit:cover!important}.base-levels figcaption{font-size:12px!important;padding:4px!important}.transfer-table-head>span,.squad-table-head>span,.profile-roster-row.head>span{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;font-size:12px!important;letter-spacing:0!important;text-transform:none!important}.transfer-table-head,.squad-table-head{min-height:28px!important}.transfer-table-head>span:nth-child(9){font-size:11px!important}

#squad-table-body .status-chip{background:transparent!important;border:0!important;color:#526655;padding:0!important;font-size:12px;white-space:nowrap}#squad-table-body .status-chip.bad{color:#ba242c!important;font-weight:700}

.health-legend{font-size:12px!important;margin:8px 0!important;color:#526655}

.header .tactenio-home-link,.tactenio-home-link{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;border-radius:6px;overflow:hidden}.tactenio-home-link .tactenio-mark{width:58px;height:58px;object-fit:contain;position:static;margin:0;background:white}.tactenio-home-link:focus-visible{outline:2px solid #e5c461;outline-offset:3px}

.app-header .brand{padding-left:64px;min-height:58px}.app-header .brand .tactenio-home-link{position:absolute;left:0;top:50%;transform:translateY(-50%)}.app-header .brand .tactenio-home-link .tactenio-mark{position:static;transform:none;width:58px;height:58px}
