/* TACTENIO · Matchday. Clear working surfaces, emerald club identity, gold highlights. */
body.tactenio-modern{--bg:#e6eef1;--panel:#ffffff;--panel2:#f0f5f6;--line:#c7d5d9;--text:#17343a;--muted:#46616a;--accent:#087654;--accent2:#0a8862;--warn:#805400;--danger:#ad3043;color-scheme:light;background:linear-gradient(180deg,#eef4f6,#eef4f6),url('/game/assets/match/stadium-night.jpg') center/cover fixed!important;color:var(--text)!important;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-size:16px;line-height:1.5;margin:0}
body.tactenio-modern *{box-sizing:border-box;scrollbar-color:#b8cbd0 #b8cbd0;scrollbar-width:thin}
body.tactenio-modern :is(#game-content,#arena-app){color:var(--text)}
body.tactenio-modern :is(#game-content,#arena-app) :is(.panel,.page-title,.club,.staff-card,.facility-card,.finance-stat,.sponsor-card,.shop-product,.coin-pack,.premium-wallet,.training-skill,.manager-rank-card,.rank-card,.academy-toolbar,.transfer-filters,.profile-stat-grid>div,.overview-stats>div,.home-metrics article,.match-card,.shared-round,.shared-match,.entry,.fixture,.account-tools,.logo-review-note,.profile-active-benefits){background:var(--panel)!important;color:var(--text)!important;border:1px solid var(--line)!important;border-radius:12px!important;box-shadow:0 5px 16px #00000018!important}
body.tactenio-modern :is(#game-content,#arena-app) :is(.panel,.page-title){padding:18px!important}
body.tactenio-modern :is(#game-content,#arena-app) :is(h1,h2,h3,h4,strong,b,label,summary){color:var(--text)!important}
body.tactenio-modern :is(#game-content,#arena-app) :is(p,small,.empty,.muted,.training-table-note,.section-note,.shared-note,.shop-state,.bio,.squad-summary){color:var(--muted)!important}
body.tactenio-modern :is(#game-content,#arena-app) :is(h2,h3){letter-spacing:-.025em;line-height:1.25;font-weight:780}
body.tactenio-modern :is(#game-content,#arena-app) h2{font-size:22px!important;margin:0 0 12px}body.tactenio-modern :is(#game-content,#arena-app) h3{font-size:18px!important}
body.tactenio-modern :is(#game-content,#arena-app) .eyebrow{color:#26464f!important;font-size:12px!important;letter-spacing:1.6px;font-weight:750}
body.tactenio-modern :is(#game-content,#arena-app) a{color:#26464f!important;text-underline-offset:4px}
body.tactenio-modern :is(#game-content,#arena-app) :is(button,.button,.back-button,.club>a){border-radius:8px!important;font-family:inherit;font-weight:700!important;line-height:1.3;transition:background-color .15s,border-color .15s,box-shadow .15s}
body.tactenio-modern :is(#game-content,#arena-app) :is(.button,button.secondary,.back-button,.shared-tools button,.champ-tabs button,.club>a){min-height:38px;padding:9px 14px!important;border:1px solid #b8cbd0!important;background:#f4f8f9!important;color:#26464f!important;font-size:14px!important;box-shadow:none!important;text-decoration:none}
body.tactenio-modern :is(#game-content,#arena-app) :is(.button.primary,button[type=submit],#save-lineup){background:#f4f8f9!important;border-color:#b8cbd0!important;color:#26464f!important}
body.tactenio-modern :is(#game-content,#arena-app) :is(.button.primary,button[type=submit]) :is(span,b,strong){color:#26464f!important}
body.tactenio-modern :is(#game-content,#arena-app) button:not(:disabled):hover{filter:brightness(1.13)}
body.tactenio-modern :is(#game-content,#arena-app) button:disabled{background:#f4f8f9!important;color:#26464f!important;border-color:#b8cbd0!important;opacity:.8!important;cursor:not-allowed}
body.tactenio-modern :is(#game-content,#arena-app) :is(input:not([type=range]):not([type=checkbox]):not([type=radio]),select,textarea){background:#f4f8f9!important;color:#26464f!important;border:1px solid #b8cbd0!important;border-radius:7px!important;font-family:inherit;font-size:14px;min-width:0;accent-color:#69cfa4}
body.tactenio-modern :is(#game-content,#arena-app) input::placeholder{color:#26464f}body.tactenio-modern :is(#game-content,#arena-app) :is(input,select,textarea):focus{outline:2px solid #b8cbd0;outline-offset:2px}
body.tactenio-modern :is(#game-content,#arena-app) :is(table){border-collapse:collapse;color:#26464f;font-size:14px!important;font-variant-numeric:tabular-nums}
body.tactenio-modern :is(#game-content,#arena-app) table th{background:#f4f8f9!important;color:#26464f!important;padding:10px 9px!important;font-size:14px!important;font-weight:750;border-bottom:1px solid #b8cbd0!important}
body.tactenio-modern :is(#game-content,#arena-app) table td{background:#f4f8f9!important;color:#26464f!important;padding:8px 9px!important;border:0!important;border-bottom:1px solid #b8cbd0!important;box-shadow:none!important}
body.tactenio-modern :is(#game-content,#arena-app) table tr:nth-child(even) td{background:#f4f8f9!important}
body.tactenio-modern :is(#game-content,#arena-app) table tr:hover td{background:#f4f8f9!important}
body.tactenio-modern :is(#game-content,#arena-app) table tr:is(.selected,.ranking-me,.me) td{background:#f4f8f9!important;color:#26464f!important}
body.tactenio-modern :is(#game-content,#arena-app) :is(.squad-row,.public-squad-row,.contract-row,.market-row,.academy-row,.ledger-row,.result-row,.training-history-row,.mail-item,.player-row,.lineup-player){background:#f4f8f9!important;border-color:#b8cbd0!important;color:#26464f!important}
body.tactenio-modern :is(#game-content,#arena-app) :is(.squad-head,.public-squad-head,.contract-head,.market-head,.academy-head){background:#f4f8f9!important;color:#26464f!important;font-weight:750}
body.tactenio-modern :is(#game-content,#arena-app) :is(.pill,.badge,.shop-facts span,.profile-location span,.sponsor-terms span,.ticket-estimate span,.weekly-finance-grid>div,.weekly-finance-breakdown span,.academy-detail-stat,.player-detail-stat,.coach-limit-scale span){background:#f4f8f9!important;border-color:#b8cbd0!important;color:#26464f!important;border-radius:7px}
body.tactenio-modern :is(#game-content,#arena-app) :is(.positive,.win){color:#26464f!important}body.tactenio-modern :is(#game-content,#arena-app) :is(.negative,.danger-link,.loss){color:#26464f!important}
body.tactenio-modern :is(#game-content,#arena-app) :is(.danger,.error){border-color:#b8cbd0!important}body.tactenio-modern :focus-visible{outline:3px solid #b8cbd0!important;outline-offset:3px}
/* A compact two-row navigation; no full-height illustrated buttons. */
body.tactenio-modern #game-content .app-header{display:grid!important;grid-template-columns:195px minmax(0,1fr)!important;gap:4px 18px!important;position:sticky!important;top:0!important;z-index:80!important;padding:12px 20px 8px!important;background:#eef4f6!important;border:0!important;border-bottom:1px solid #b8cbd0!important;box-shadow:0 7px 24px #0003!important}
body.tactenio-modern #game-content .app-header .brand{grid-row:1/3!important;grid-column:1!important;align-self:center;min-width:0}
body.tactenio-modern #game-content .app-header .brand h1{font-size:18px!important;letter-spacing:2px;color:#26464f!important}
body.tactenio-modern #game-content .app-header .brand .eyebrow{font-size:12px!important;color:#26464f!important}
body.tactenio-modern #game-content .tactenio-mark{width:42px!important;height:42px!important}
body.tactenio-modern #game-content .app-header .main-nav{display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;grid-column:2!important;gap:5px!important;overflow:visible}
body.tactenio-modern #game-content .app-header .main-nav .nav-button{display:flex!important;flex-direction:row!important;justify-content:center!important;gap:7px!important;min-width:0!important;min-height:44px!important;height:44px!important;padding:6px 8px!important;background:transparent!important;border:1px solid transparent!important;border-radius:9px!important;color:#26464f!important;font-size:14px!important;box-shadow:none!important}
body.tactenio-modern #game-content .app-header .main-nav .nav-button span{color:inherit!important;white-space:nowrap!important;font-size:14px!important;font-weight:750}
body.tactenio-modern #game-content .app-header .main-nav .nav-picture{width:26px!important;height:26px!important;flex:0 0 26px!important;border-radius:7px!important;box-shadow:none!important;object-fit:cover}
body.tactenio-modern #game-content .app-header .main-nav .nav-button.active{background:#f4f8f9!important;color:#26464f!important;border-color:#b8cbd0!important}
body.tactenio-modern #game-content .app-header .section-nav{grid-column:2!important;grid-row:2!important;display:flex!important;flex-wrap:wrap!important;gap:3px 6px!important;margin:0!important;padding:3px 0 0!important;border:0!important;background:transparent!important}
body.tactenio-modern #game-content .section-nav button{padding:6px 10px!important;min-height:33px!important;font-size:13px!important;background:transparent!important;border:0!important;color:#26464f!important}
body.tactenio-modern #game-content .section-nav button.active{background:#f4f8f9!important;color:#26464f!important;box-shadow:inset 0 -2px #6cc796!important}
body.tactenio-modern #game-content .section-picture{width:21px!important;height:21px!important;border-radius:5px!important}
body.tactenio-modern .online-bar{position:static!important;min-height:26px!important;background:#f4f8f9!important;border:0!important;padding:2px 20px!important}
body.tactenio-modern .online-bar button{color:#26464f!important;font-size:12px!important}
body.tactenio-modern #game-content .manager-sidebar{position:fixed!important;left:16px!important;top:140px!important;width:202px!important;max-height:calc(100dvh - 154px)!important;overflow:auto!important;margin:0!important;padding:12px!important;display:flex!important;flex-direction:column!important;gap:6px!important;background:#eef4f6!important;border:1px solid #b8cbd0!important;border-radius:12px!important;box-shadow:none!important}
body.tactenio-modern #game-content .manager-sidebar-club{border-color:#b8cbd0!important;gap:9px!important;padding:4px 0 12px!important;display:flex!important;align-items:center!important;min-height:0!important}
body.tactenio-modern #game-content #sidebar-club-initials{position:static!important;width:44px!important;height:44px!important;min-width:44px!important;flex:0 0 44px!important;border:1px solid #b8cbd0!important;border-radius:10px!important;overflow:hidden;display:grid!important;place-items:center;background:#f4f8f9!important;color:#26464f!important;font-size:18px!important;box-shadow:none!important}
body.tactenio-modern #game-content #sidebar-club-initials img{width:100%!important;height:100%!important;object-fit:contain!important}
body.tactenio-modern #game-content .manager-sidebar-club>div{min-width:0}body.tactenio-modern #game-content #sidebar-club-name{font-size:16px!important;color:#26464f!important}
body.tactenio-modern #game-content .manager-sidebar :is(.manager-strip-item,.mailbox-button){padding:9px 7px!important;background:#f4f8f9!important;border:1px solid #b8cbd0!important;border-radius:8px!important;grid-template-columns:27px minmax(0,1fr)!important;gap:8px!important}
body.tactenio-modern #game-content .manager-sidebar .status-icon{width:27px!important;height:27px!important;border-radius:7px!important}
body.tactenio-modern #game-content .manager-sidebar :is(.status-copy span,.points-content span){font-size:12px!important;color:#26464f!important}body.tactenio-modern #game-content .manager-sidebar :is(.status-copy strong,.points-content strong){font-size:16px!important;line-height:1.3!important;color:#26464f!important}
body.tactenio-modern #game-content .manager-sidebar :is(.status-copy small,.points-content small){font-size:12px!important;color:#26464f!important}
body.tactenio-modern #game-content .manager-sidebar #home-online-cup{padding:10px!important;background:#f4f8f9!important;border:1px solid #b8cbd0!important;margin-top:5px!important}
body.tactenio-modern #game-content .manager-sidebar #home-online-summary{font-size:13px!important;color:#26464f!important}
body.tactenio-modern #game-content .view{margin:0 12px 0 230px!important;padding:18px 10px 30px!important;max-width:none!important;min-width:0!important}
/* Home: imagery stays; information has a deliberate hierarchy. */
body.tactenio-modern #game-content #view-home .home-hero{min-height:220px!important;height:auto!important;border-radius:15px!important;border:1px solid #b8cbd0!important;background:#f4f8f9!important;overflow:hidden!important;box-shadow:0 10px 26px #0003!important}
body.tactenio-modern #game-content #view-home .home-hero>img{opacity:.5!important;object-fit:cover!important}
body.tactenio-modern #game-content #view-home .home-hero-overlay{background:linear-gradient(90deg,#eef4f6 12%,#eef4f6 70%,#eef4f6)!important}
body.tactenio-modern #game-content #view-home .home-hero-content{padding:25px!important;max-width:75%;position:relative}
body.tactenio-modern #game-content #view-home .home-hero h2{font-size:clamp(24px,3vw,35px)!important;color:#26464f!important;margin:8px 0 12px!important}
body.tactenio-modern #game-content #view-home .home-hero p{font-size:15px!important;color:#26464f!important}
body.tactenio-modern #game-content .hero-club-stats{background:#eef4f6!important;border-color:#b8cbd0!important;border-radius:9px!important}
body.tactenio-modern #game-content .home-section-title{background:transparent!important;padding:16px 0 9px!important;border:0!important}
body.tactenio-modern #game-content .home-section-title h2{font-size:20px!important}
body.tactenio-modern #game-content :is(.home-action-card,.activity-card,.quick-card){background:#f4f8f9!important;border:1px solid #b8cbd0!important;border-radius:12px!important;overflow:hidden;box-shadow:none!important}
body.tactenio-modern #game-content :is(.home-action-card,.activity-card,.quick-card) img{object-fit:cover!important}
body.tactenio-modern #game-content .recent-panel{margin-top:14px!important}
/* Dense training retains its controls and uniform row separators. */
body.tactenio-modern #game-content #view-training .training-grid td{padding:4px 6px!important;font-size:13px!important;border-bottom:1px solid #b8cbd0!important;box-shadow:none!important}
body.tactenio-modern #game-content #view-training .train-ability button{width:24px!important;height:24px!important;min-height:24px!important;padding:0!important;background:#f4f8f9!important;color:#26464f!important;border:0!important;border-radius:5px!important}
body.tactenio-modern #game-content #view-training .train-ability button:disabled{background:#f4f8f9!important;color:#26464f!important}
body.tactenio-modern #game-content #view-training .train-ability small{color:#26464f!important;font-size:12px!important}
body.tactenio-modern #game-content #view-training .training-grid .train-name button{color:#26464f!important;font-size:13px!important;background:transparent!important}
body.tactenio-modern #game-content #view-training .staff-card-visual{background:linear-gradient(115deg,#f4f8f9,#f4f8f9)!important}
body.tactenio-modern #game-content #view-training :is(.staff-card span,.staff-card small,.staff-card strong){color:#26464f!important}
body.tactenio-modern #game-content #view-training :is(.coach-limits,.training-guide,.training-table-scroll,#position-training,.recovery-clock){background:#f4f8f9!important;border-color:#b8cbd0!important;color:#26464f!important;border-radius:9px!important}
body.tactenio-modern #game-content #view-training :is(.position-heading small,.position-rules summary,.position-explanation p,.position-form p){color:#26464f!important}
body.tactenio-modern #game-content #position-training .position-open{background:#f4f8f9!important;color:#26464f!important}
body.tactenio-modern #game-content .training-player-header{gap:10px 20px!important}
/* Profile and honours: green-black cabinets with controlled gold accents. */
body.tactenio-modern #game-content #view-profile>*{max-width:1220px!important}
body.tactenio-modern #game-content :is(.manager-profile-hero,.opponent-profile-hero){background:linear-gradient(115deg,#f4f8f9,#f4f8f9 75%)!important;display:flex!important;align-items:center!important;gap:25px!important;flex-wrap:wrap;min-height:0!important;padding:22px!important}
body.tactenio-modern #game-content .manager-profile-main{display:flex!important;align-items:center!important;gap:25px!important;min-width:0;flex:1 1 400px}
body.tactenio-modern #game-content :is(.manager-profile-copy,.opponent-profile-hero>div){min-width:0}
body.tactenio-modern #game-content :is(.manager-profile-copy h2,.opponent-profile-hero h2){color:#26464f!important;font-size:28px!important;overflow-wrap:anywhere}
body.tactenio-modern #game-content :is(.manager-profile-copy p,.rank-current-copy p,.profile-stat-grid span){color:#26464f!important}
body.tactenio-modern #game-content :is(.profile-stat-grid,.manager-rank-grid){gap:10px!important}
body.tactenio-modern #game-content .profile-stat-grid strong{font-size:25px!important;color:#26464f!important}
body.tactenio-modern #game-content :is(.trophy-item,.rank-card){background:linear-gradient(160deg,#f4f8f9,#f4f8f9)!important;border:1px solid #b8cbd0!important;border-radius:12px!important;padding:12px!important;text-align:center}
body.tactenio-modern #game-content .trophy-item strong{font-size:14px!important;line-height:1.4!important}
body.tactenio-modern #game-content :is(.rank-card .rank-status,.rank-card>span:first-child,.rank-status){background:#f4f8f9!important;color:#26464f!important;border-radius:6px!important}
body.tactenio-modern #game-content :is(.trophy-count,.rank-card.current){border-color:#b8cbd0!important;color:#26464f!important}
body.tactenio-modern #game-content :is(.profile-avatar-wrap,.opponent-avatar){flex:none!important}
/* Premium and club development. Existing illustrations remain unchanged. */
body.tactenio-modern #game-content #view-store .shop-product{border-color:#b8cbd0!important;border-radius:14px!important}
body.tactenio-modern #game-content #view-store :is(.shop-product p,.shop-price small,.shop-rules p){color:#26464f!important;font-size:14px!important}
body.tactenio-modern #game-content #view-store .shop-price strong{color:#26464f!important;font-size:26px!important}
body.tactenio-modern #game-content :is(.shop-notice,.premium-notice){background:#f4f8f9!important;border:1px solid #b8cbd0!important;color:#26464f!important;border-radius:9px!important}
body.tactenio-modern #game-content :is(.vip-benefits,.vip-benefits li){background:#f4f8f9!important;border-color:#b8cbd0!important;color:#26464f!important}
body.tactenio-modern #game-content .vip-art :is(h3,strong,small){color:#26464f!important}
body.tactenio-modern #game-content .premium-product-art h3{color:#26464f!important}
body.tactenio-modern #game-content #view-club :is(.staff-visual,.facility-visual){border-radius:9px!important;background:#f4f8f9!important}
body.tactenio-modern #game-content :is(.facility-current,.staff-current,.facility-next,.staff-next){background:#f4f8f9!important;border-color:#b8cbd0!important;color:#26464f!important}
/* Public pages and competition frames share the same visual system. */
body.tactenio-modern.arena-page{background:#f4f8f9!important}body.tactenio-modern.arena-page:not(.embedded){background:linear-gradient(#eef4f6,#eef4f6),url('/game/assets/match/stadium-night.jpg') center/cover fixed!important}
body.tactenio-modern.arena-page>header{background:#f4f8f9!important;border-color:#b8cbd0!important;color:#26464f!important;max-width:1400px;margin:auto}
body.tactenio-modern.arena-page>header a{color:#26464f!important}
body.tactenio-modern.arena-page main{max-width:1400px!important;margin:auto;padding:20px!important}
body.tactenio-modern.arena-page.embedded main{padding:4px!important}
body.tactenio-modern.arena-page footer{color:#26464f!important;border-color:#b8cbd0!important}
body.tactenio-modern #arena-app .heading{margin:0 0 20px!important;padding:4px!important}
body.tactenio-modern #arena-app .heading h1{font-size:28px!important;margin:8px 0!important}
body.tactenio-modern #arena-app .shared-card{background:linear-gradient(110deg,color-mix(in srgb,var(--cup-accent,#f4f8f9) 22%,#f4f8f9),#f4f8f9 80%)!important;border:1px solid color-mix(in srgb,var(--cup-accent,#b8cbd0) 60%,#b8cbd0)!important;border-left:4px solid var(--cup-accent,#b8cbd0)!important;border-radius:12px!important;padding:14px!important;color:#26464f!important}
body.tactenio-modern #arena-app .shared-card h2{background:transparent!important;border:0!important;color:#26464f!important;padding:0!important;font-size:19px!important}
body.tactenio-modern #arena-app :is(.shared-card p,.shared-card small,.shared-participant-list,.free-places){color:#26464f!important}
body.tactenio-modern #arena-app :is(.shared-tools,.shared-levels button,.shared-rules){background:#f4f8f9!important;border:1px solid #b8cbd0!important;border-radius:9px!important;color:#26464f!important}
body.tactenio-modern #arena-app :is(.shared-levels button.active,[aria-pressed=true]){background:#f4f8f9!important;border-color:#b8cbd0!important;color:#26464f!important}
body.tactenio-modern #arena-app .my-club{color:#26464f!important;background:#eef4f6!important;border-color:#b8cbd0!important}
body.tactenio-modern #arena-app .trophy{padding:12px!important;background:linear-gradient(145deg,#f4f8f9,#f4f8f9)!important;border:1px solid #b8cbd0!important;border-radius:12px!important}
body.tactenio-modern #arena-app .profile-hero{background:linear-gradient(110deg,#f4f8f9,#f4f8f9)!important;border-top:3px solid #b8cbd0!important;gap:28px!important;padding:28px!important}
body.tactenio-modern #arena-app .profile-hero h1{font-size:clamp(28px,4vw,44px)!important;color:#26464f!important}
body.tactenio-modern #arena-app .avatar{width:150px!important;height:150px!important;border:2px solid #b8cbd0!important;box-shadow:0 9px 25px #0004!important}
body.tactenio-modern #arena-app .metrics{color:#26464f!important;gap:12px!important}
body.tactenio-modern #arena-app .metrics span{background:#f4f8f9;border:1px solid #b8cbd0;padding:7px 12px;border-radius:7px;font-weight:700}
body.tactenio-modern :is(dialog,.setup-card,.import-card){background:#f4f8f9!important;color:#26464f!important;border:1px solid #b8cbd0!important;border-radius:13px!important;box-shadow:0 20px 80px #0009}body.tactenio-modern dialog::backdrop{background:#eef4f6;backdrop-filter:blur(5px)}
body.tactenio-modern :is(dialog,.setup-card,.import-card) :is(h2,p,label,summary){color:#26464f!important}body.tactenio-modern :is(dialog,.setup-card,.import-card) :is(input,textarea,select){background:#f4f8f9!important;color:#26464f!important;border-color:#b8cbd0!important}
body.tactenio-modern #game-content :is(.table-wrap,.ranking-scroll,.training-table-scroll,.academy-table-wrap,.transfer-table-wrap){border-radius:9px!important;overflow:auto!important;border-color:#b8cbd0!important}
body.tactenio-modern #game-content :is(.talent-badge,.talent-badge strong){color:inherit!important}
/* Mobile: small navigation rows, a horizontal club summary, then the page. */
@media(max-width:1150px){body.tactenio-modern #game-content .app-header{grid-template-columns:1fr!important;position:relative!important;top:auto!important;padding:10px 14px!important}body.tactenio-modern #game-content .app-header .brand{grid-column:1!important;grid-row:1!important;margin-bottom:4px}body.tactenio-modern #game-content .app-header .main-nav{grid-column:1!important;grid-row:2!important}body.tactenio-modern #game-content .app-header .section-nav{grid-column:1!important;grid-row:3!important}body.tactenio-modern #game-content .manager-sidebar{position:static!important;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;width:auto!important;max-height:none!important;margin:12px 14px 0!important;overflow:visible!important;gap:7px!important}body.tactenio-modern #game-content .manager-sidebar-club{grid-column:span 2}body.tactenio-modern #game-content .manager-sidebar #home-online-cup{grid-column:1/-1}body.tactenio-modern #game-content .view{margin:0!important;padding:14px!important}}
@media(max-width:760px){body.tactenio-modern #game-content .app-header .main-nav{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto!important;justify-content:flex-start!important;padding-bottom:5px!important;scroll-snap-type:x proximity}body.tactenio-modern #game-content .app-header .main-nav .nav-button{flex:0 0 auto!important;min-width:105px!important;scroll-snap-align:start}body.tactenio-modern #game-content .app-header .main-nav .nav-button:last-child{grid-column:auto!important}body.tactenio-modern #game-content .app-header .section-nav{flex-wrap:nowrap!important;overflow-x:auto!important;padding-bottom:5px!important}body.tactenio-modern #game-content .section-nav button{flex:none!important;white-space:nowrap}body.tactenio-modern #game-content .manager-sidebar{display:flex!important;flex-direction:row!important;overflow-x:auto!important;gap:8px!important;padding:9px!important;align-items:center!important;scroll-snap-type:x proximity}body.tactenio-modern #game-content .manager-sidebar>*{flex:0 0 150px!important;min-width:150px!important;scroll-snap-align:start}body.tactenio-modern #game-content .manager-sidebar #home-online-cup{flex-basis:230px!important;margin:0!important}body.tactenio-modern #game-content .manager-sidebar-club{border:0!important;padding:0!important}body.tactenio-modern #game-content .view{padding:12px!important}body.tactenio-modern :is(#game-content,#arena-app) :is(.panel,.page-title){padding:13px!important}body.tactenio-modern #game-content :is(.home-grid-new,.dashboard-grid,.two-column,.opponent-profile-layout,.finance-layout,.academy-layout){grid-template-columns:1fr!important}body.tactenio-modern #game-content #view-store .shop-grid{grid-template-columns:1fr!important}body.tactenio-modern #game-content #view-home .home-hero-content{max-width:100%;padding:20px!important}body.tactenio-modern #game-content #view-home .home-hero{min-height:235px!important}body.tactenio-modern #game-content .hero-club-stats{position:relative!important;right:auto!important;bottom:auto!important;margin:0 15px 15px!important}body.tactenio-modern #game-content .manager-profile-main{flex-direction:column!important;align-items:flex-start!important;gap:15px!important;flex-basis:100%}body.tactenio-modern #game-content :is(.manager-rank-grid,.profile-stat-grid){grid-template-columns:repeat(2,minmax(0,1fr))!important}body.tactenio-modern #arena-app .profile-columns{grid-template-columns:1fr!important}body.tactenio-modern #arena-app .profile-hero{align-items:flex-start!important;flex-wrap:wrap!important;padding:18px!important}body.tactenio-modern.arena-page main{padding:12px!important}}
@media(prefers-reduced-motion:reduce){body.tactenio-modern *{scroll-behavior:auto!important;transition:none!important}}
/* Component details and embedded competition surfaces. */
body.tactenio-modern{--border:var(--line)}
html.embedded body.tactenio-modern.arena-page{background:#f4f8f9!important}
html.embedded body.tactenio-modern.arena-page main{padding:4px!important}
body.tactenio-modern #game-content .home-quick-grid>button{background:#f4f8f9!important;border:1px solid #b8cbd0!important;border-radius:12px!important;overflow:hidden;padding:0!important;text-align:left;box-shadow:0 6px 18px #0003}
body.tactenio-modern #game-content .home-quick-grid>button>span{background:#f4f8f9!important;display:block;padding:12px 14px!important}
body.tactenio-modern #game-content .home-quick-grid>button img{width:100%;height:145px;object-fit:cover;display:block}
body.tactenio-modern #game-content :is(.squad-table-head,.academy-table-head){background:#f4f8f9!important;color:#26464f!important;font-weight:750}
body.tactenio-modern #game-content :is(.player-card-hero,.player-card-summary,.player-overview>div,.player-section,.player-contract-grid>div,.academy-detail-grid>div){background:#f4f8f9!important;color:#26464f!important;border-color:#b8cbd0!important;border-radius:9px}
body.tactenio-modern #game-content .talent-badge[data-talent]{color:#26464f!important}
body.tactenio-modern #game-content .talent-badge:is([data-talent="5"],[data-talent="6"],[data-talent="7"],[data-talent="8"],[data-talent="9"]){color:#26464f!important}
body.tactenio-modern #game-content .train-ability button:not(:disabled){background:#f4f8f9!important;color:#26464f!important;border-color:#b8cbd0!important}
@media(max-width:760px){body.tactenio-modern #game-content .squad-workspace{display:grid!important;grid-template-columns:minmax(0,1fr)!important}body.tactenio-modern #game-content :is(.squad-table,.academy-list-card){overflow-x:auto!important;min-width:0}body.tactenio-modern #game-content :is(.squad-table-head,.squad-row){min-width:700px}body.tactenio-modern #game-content :is(.academy-table-head,.academy-row){min-width:650px}body.tactenio-modern #game-content .home-quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}body.tactenio-modern #game-content .home-quick-grid>button img{height:110px}}
@media print{body.tactenio-modern.arena-page,body.tactenio-modern.arena-page #arena-app{background:white!important;color:black!important}body.tactenio-modern.arena-page #arena-app :is(h1,h2,h3,p,a,li,strong){color:black!important}}

/* The live deadline must stay readable within the dark cup frame. */
body.tactenio-modern #arena-app .my-live-match{background:#f4f8f9!important;color:#26464f!important;border:2px solid #b8cbd0!important;box-shadow:0 4px 18px #0004!important}
body.tactenio-modern #arena-app .my-live-match :is(h2,small,p){color:#26464f!important}
body.tactenio-modern #arena-app .my-live-match .live-clock{display:block;background:#f4f8f9!important;color:#26464f!important;border:1px solid #b8cbd0;border-radius:9px;padding:9px 16px;font-size:36px!important;font-weight:850;line-height:1.15;font-variant-numeric:tabular-nums}
body.tactenio-modern #arena-app .my-live-match .live-clock.urgent{color:#26464f!important;border-color:#b8cbd0}
body.tactenio-modern #arena-app .my-live-match button{min-height:44px;background:#f4f8f9!important;color:#26464f!important;font-size:15px!important;padding:12px 16px!important}
body.tactenio-modern #game-content #home-online-clock{color:#26464f!important;font-size:24px!important;font-weight:850!important;font-variant-numeric:tabular-nums}
/* Complete nested surfaces: every text-bearing card owns its foreground and background. */
body.tactenio-modern #game-content :is(#advanced-editor,#match-summary,#match-summary:not([hidden]),#match-archive,#shared-market,#tm-detail,#position-training,.summary-team,.match-metric,.summary-events p,.summary-events p:nth-child(even),.profile-roster-row,.profile-roster-row:nth-child(even),.profile-roster-row:nth-child(2n),.public-player-row,.training-player,.training-target-option,.training-target-option:nth-child(even),.mail-row,.mail-row.unread,.player-overview-item,.player-actions-section,.player-card-summary strong,.supporters-panel,.supporters-stats>div,.talent-guide,.management-next,.management-next-benefit,.management-benefit,.base-levels figure,.coach-limits,.training-detail,.training-day-status,.training-player-stats,.transfer-detail,.transfer-detail-grid>div,.contract-detail-grid>div,.player-detail-grid>div,.contract-quote>div,.opponent-stat-grid>div,.weekly-finance-breakdown>div,.weekly-finance-grid>span,.ticket-control,.schedule-row,.home-news-item,.daily-task,.club-budget-box,.transfer-head-stats,.academy-head-stats,.contract-head-stats,.contract-alert,.hero-fixture,.premium-product,.cup-view-note,.cup-lobby-slot,.cup-lobby-slot.occupied,.bracket-match,.bracket-standing,.bracket-group,.bracket-inspector,.stage-prizes span){background:#f4f8f9!important;color:#26464f!important;border-color:#b8cbd0!important}
body.tactenio-modern #game-content :is(.profile-roster-row.head,.transfer-table-head,.contracts-table-head,.group-table-head,.editor-table-head){background:#f4f8f9!important;color:#26464f!important}
body.tactenio-modern #game-content :is(.profile-roster-row:hover,.training-player.selected,.training-target-option:has(input:checked),.mail-row.selected,.bracket-match .winner,.bracket-standing.qualified){background:#f4f8f9!important;color:#26464f!important}
body.tactenio-modern #game-content :is(.training-attribute,.training-attribute.focus,.transfer-attributes span,.transfer-skill-details summary){background:#f4f8f9!important;color:#26464f!important;border-color:#b8cbd0!important}
body.tactenio-modern #game-content .panel :is([class$="-detail-grid"],[class$="-stats"])>div{background:#f4f8f9!important;color:#26464f!important}
body.tactenio-modern #game-content :is(.natural,.number,.form,.player-pos,.profile-roster-pages,.rank-progress-label,.manager-rank-progress,.finance-report-row,.contract-history-row,.academy-history-row,.ledger-row,.bracket-column h3){color:#26464f!important}
body.tactenio-modern #game-content :is(.income,.ok,.positive,.text-button,.market-owner){color:#26464f!important}
body.tactenio-modern #game-content :is(.expense,.negative,.warning,.academy-stars){color:#26464f!important}
body.tactenio-modern #game-content :is(#advanced-editor,#match-summary,.profile-roster-row,.match-metric,.summary-team) :is(span,strong,b,label,small,p,h2,h3){color:inherit!important}
body.tactenio-modern #game-content #advanced-editor{font-size:14px!important}
body.tactenio-modern #game-content #advanced-editor :is(p,label,small){font-size:14px!important;line-height:1.5}
body.tactenio-modern #game-content #advanced-editor button{background:#f4f8f9!important;color:#26464f!important;border-color:#b8cbd0!important;font-size:14px!important}
body.tactenio-modern #game-content #advanced-editor nav button.active{background:#f4f8f9!important;color:#26464f!important}
body.tactenio-modern #game-content #advanced-editor [data-error]{color:#26464f!important}
body.tactenio-modern #game-content :is(.filter,.button.glass,.player-action-link,.price-presets button,.user-listing button){background:#f4f8f9!important;color:#26464f!important;border-color:#b8cbd0!important}
body.tactenio-modern #game-content :is(.filter.active,.player-row.manual-selected){background:#f4f8f9!important;color:#26464f!important}
body.tactenio-modern #game-content .match-metric :is(strong,b){font-size:20px!important;font-weight:800!important}
body.tactenio-modern #game-content .match-metric small{color:#26464f!important;font-size:14px!important}
body.tactenio-modern #game-content #match-summary .summary-heading{background:#f4f8f9!important;color:#26464f!important}
body.tactenio-modern #game-content .home-quick-grid button:after{background:linear-gradient(transparent,#f4f8f9)!important}
body.tactenio-modern #game-content .manager-profile-hero.premium-frame{background:linear-gradient(110deg,#f4f8f9,#f4f8f9)!important;color:#26464f!important}
body.tactenio-modern #game-content .talent-badge[data-talent]{color:#26464f!important}
body.tactenio-modern #game-content .talent-badge:is([data-talent="5"],[data-talent="6"],[data-talent="7"],[data-talent="8"],[data-talent="9"]){color:#26464f!important}
/* Competition pages, help and dialogs use the same contrast pairs. */
body.tactenio-modern #arena-app :is(.calendar-day,.calendar-day.completed,.round,.fixture.mine,.shared-slots>div,.round-reward-info,.cup-tree,.cup-tree-match,.cup-tree-team.winner,.cup-tree-match.my-club,.logo-card,.notice,#contents,#recovery-code){background:#f4f8f9!important;color:#26464f!important;border-color:#b8cbd0!important}
body.tactenio-modern #arena-app :is(.cup-tree-team,.cup-tree-team b,.cup-tree-match small,.round-reward-info,.round-reward-info strong){color:#26464f!important}
body.tactenio-modern #arena-app .cup-return{background:#f4f8f9!important;color:#26464f!important;border-color:#b8cbd0!important}
body.tactenio-modern :is(#training-confirmation,#support-dialog,#about-game-dialog,#import-panel .import-card){background:#f4f8f9!important;color:#26464f!important;border-color:#b8cbd0!important}
body.tactenio-modern :is(#training-confirmation,#support-dialog,#about-game-dialog,#import-panel .import-card) :is(p,span,strong,b,small,label,h2,h3){color:#26464f!important}
body.tactenio-modern #support-thread article{background:#f4f8f9!important;color:#26464f!important}
body.tactenio-modern #support-dialog button{background:#f4f8f9!important;color:#26464f!important;border-color:#b8cbd0!important}
body.tactenio-modern #game-content .friendly-players{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:10px;margin:16px 0}
body.tactenio-modern #game-content .friendly-players label{display:grid;gap:4px}
body.tactenio-modern #game-content #friendly-form>label{display:block;margin:12px 0}
body.tactenio-modern #game-content #friendly-status{font-size:18px;font-weight:750;color:#26464f!important}

/* Matchday identity: bright workspace with a compact emerald command bar. */
body.tactenio-modern{background:#e6eef1!important;color:#17343a!important;--bg:#e6eef1;--panel:#fff;--panel2:#f0f5f6;--text:#17343a;--muted:#46616a;--line:#c7d5d9;--accent:#087654;--accent2:#0a8862;--border:#c7d5d9;--warn:#805400;--danger:#ad3043}
body.tactenio-modern :is(#game-content,#arena-app){font-weight:500}
body.tactenio-modern :is(#game-content,#arena-app) :is(.panel,.page-title){box-shadow:0 3px 12px #2446540a!important;border-color:#cedbdf!important;border-radius:12px!important}
body.tactenio-modern :is(#game-content,#arena-app) :is(h1,h2,h3,h4,strong,b,label,summary){color:var(--text)!important}
body.tactenio-modern :is(#game-content,#arena-app) :is(p,small,.muted,.empty){color:var(--muted)!important}
body.tactenio-modern :is(#game-content,#arena-app) .eyebrow{color:#087654!important}
body.tactenio-modern :is(#game-content,#arena-app) a{color:#086847!important}
body.tactenio-modern :is(#game-content,#arena-app) :is(button,.button){cursor:pointer}
body.tactenio-modern :is(#game-content,#arena-app) :is(.button,button.secondary,.back-button,.shared-tools button,.champ-tabs button,.club>a,.filter,.button.glass,.player-action-link,.price-presets button,.user-listing button){background:#fff!important;color:#155742!important;border:1px solid #a7bfc2!important;box-shadow:0 2px 0 #173e2910!important}
body.tactenio-modern :is(#game-content,#arena-app) :is(.button.primary,button[type=submit],#save-lineup){background:#087654!important;color:#fff!important;border-color:#086547!important;box-shadow:0 2px 0 #06463130!important}
body.tactenio-modern :is(#game-content,#arena-app) :is(.button.primary,button[type=submit]) :is(span,b,strong){color:#fff!important}
body.tactenio-modern :is(#game-content,#arena-app) :is(.danger-action,#terminate-player-contract,#leave-cup){background:#fff1f2!important;color:#9e203b!important;border:1px solid #d3a0aa!important}
body.tactenio-modern :is(#game-content,#arena-app) button:disabled{background:#e8edef!important;color:#586d73!important;border-color:#c4d0d5!important;opacity:1!important;box-shadow:none!important;cursor:not-allowed}
body.tactenio-modern :is(#game-content,#arena-app) :is(input:not([type=range]):not([type=checkbox]):not([type=radio]),select,textarea){background:#fff!important;color:#17343a!important;border-color:#9cb4bd!important;min-height:34px}
body.tactenio-modern :is(#game-content,#arena-app) input::placeholder{color:#59717b!important}
body.tactenio-modern :is(#game-content,#arena-app) :is(input,select,textarea):focus{outline:2px solid #087654;outline-offset:2px}
body.tactenio-modern :focus-visible{outline:3px solid #bb821e!important;outline-offset:3px}
/* Header stays recognisable while the workspace is light. */
body.tactenio-modern #game-content .app-header{background:linear-gradient(110deg,#123e35,#175344)!important;border-bottom:3px solid #d4b764!important;box-shadow:0 3px 12px #153d3526!important}
body.tactenio-modern #game-content .app-header :is(.brand h1,.brand .eyebrow){color:#fff!important}
body.tactenio-modern #game-content .app-header .main-nav .nav-button{color:#edf7f3!important}
body.tactenio-modern #game-content .app-header .main-nav .nav-button.active{background:linear-gradient(120deg,#fae6a9,#dfc071)!important;color:#243f33!important;border-color:#ffeabd!important;box-shadow:0 2px 7px #071e2630!important}
body.tactenio-modern #game-content .app-header .section-nav button{color:#e3f1ed!important;background:transparent!important}
body.tactenio-modern #game-content .app-header .section-nav button.active{background:#effaf5!important;color:#15533e!important;box-shadow:none!important}
body.tactenio-modern .online-bar{background:#e0eaeb!important;color:#23434c!important;border-bottom:1px solid #c1d0d5!important}
body.tactenio-modern .online-bar :is(button,a){color:#23434c!important}
body.tactenio-modern #game-content .manager-sidebar{background:#fff!important;border:1px solid #c3d4d9!important;box-shadow:0 4px 14px #2646530b!important}
body.tactenio-modern #game-content .manager-sidebar :is(.manager-strip-item,.mailbox-button){background:#f0f5f6!important;border-color:#dbe5e8!important}
body.tactenio-modern #game-content .manager-sidebar :is(.status-copy strong,.points-content strong,#sidebar-club-name){color:#173e35!important}
body.tactenio-modern #game-content .manager-sidebar :is(.status-copy span,.points-content span,.status-copy small,.points-content small){color:#48626a!important}
body.tactenio-modern #game-content .manager-sidebar #sidebar-club-initials{background:#15513d!important;color:#ffe6a4!important;border:2px solid #c3a660!important}
body.tactenio-modern #game-content .manager-sidebar #home-online-cup{background:#fff6dc!important;border-color:#d4b66e!important}
body.tactenio-modern #game-content .manager-sidebar #home-online-summary{color:#514625!important}
body.tactenio-modern #game-content #home-online-clock{color:#604716!important}
/* Legible rows; the selected club/player is marked without glowing text. */
body.tactenio-modern :is(#game-content,#arena-app) :is(table th,.squad-table-head,.academy-table-head,.contracts-table-head,.transfer-table-head,.profile-roster-row.head,.group-table-head,.editor-table-head){background:#dcebed!important;color:#23454c!important;font-size:14px!important;font-weight:750!important;line-height:1.35!important;text-transform:none!important;border-color:#b6cbd0!important}
body.tactenio-modern :is(#game-content,#arena-app) :is(table td,.squad-row,.public-squad-row,.contract-row,.market-row,.academy-row,.profile-roster-row,.public-player-row,.player-row,.lineup-player){background:#fff!important;color:#17343a!important;border-color:#d5e1e5!important}
body.tactenio-modern :is(#game-content,#arena-app) :is(table tr:nth-child(even) td,.squad-row:nth-child(even),.contract-row:nth-child(even),.market-row:nth-child(even),.academy-row:nth-child(even),.profile-roster-row:nth-child(even),.profile-roster-row:nth-child(2n)){background:#f0f5f7!important}
body.tactenio-modern :is(#game-content,#arena-app) :is(table tr:hover td,.squad-row:hover,.contract-row:hover,.market-row:hover,.academy-row:hover,.profile-roster-row:hover){background:#e5f1ed!important;color:#173e35!important}
body.tactenio-modern :is(#game-content,#arena-app) :is(table tr.selected td,.squad-row.selected,.contract-row.selected,.academy-row.selected,.player-row.manual-selected){background:#e2f1e9!important;color:#124d38!important;box-shadow:inset 3px 0 #138257!important}
body.tactenio-modern #game-content :is(.academy-table-head,.academy-row,.contracts-table-head,.contract-row,.management-card,.contract-detail-grid,.contract-quote) :is(span,strong,b,small,p,h3){color:inherit!important}
body.tactenio-modern #game-content :is(.natural,.number,.form,.player-pos,.rank-progress-label,.manager-rank-progress,.contract-history-row,.academy-history-row){color:#48616b!important}
body.tactenio-modern :is(#game-content,#arena-app) :is(.positive,.income,.ok,.win){color:#086540!important}
body.tactenio-modern :is(#game-content,#arena-app) :is(.negative,.expense,.error,.loss){color:#a52740!important}
/* Talent: one scale, a deliberate gold edge on the rarest level. */
body.tactenio-modern :is(#game-content,#arena-app) .talent-badge[data-talent]{background:var(--talent-bg)!important;color:var(--talent-fg)!important;border:1px solid #7fada0!important;box-shadow:inset 0 1px #ffffff55!important;min-width:28px!important;min-height:28px!important;font-size:14px!important;font-weight:800!important;line-height:1!important;border-radius:7px!important}
body.tactenio-modern :is(#game-content,#arena-app) .talent-badge[data-talent="5"]{--talent-bg:#63b388;--talent-fg:#12392a}
body.tactenio-modern :is(#game-content,#arena-app) .talent-badge[data-talent="9"]{--talent-bg:#134b38;--talent-fg:#ffe9ad;border:2px solid #c5983d!important;box-shadow:0 0 0 2px #f4e4bc,inset 0 1px #ffe9ad44!important}
body.tactenio-modern #game-content .talent-scale{display:flex;flex-wrap:wrap;gap:9px;padding:6px 2px}
/* Contract columns own their width. Flags have a dedicated column. */
body.tactenio-modern #game-content .contracts-layout{grid-template-columns:minmax(0,1fr) 310px!important;gap:16px!important}
body.tactenio-modern #game-content .contracts-table-card{min-width:0!important;overflow:hidden!important}
body.tactenio-modern #game-content .contracts-scroll{overflow:auto;max-height:620px;border:1px solid #ccdade;border-radius:8px}
body.tactenio-modern #game-content .contracts-list{max-height:none!important;overflow:visible!important}
body.tactenio-modern #game-content :is(.contracts-table-head,.contract-row){display:grid!important;grid-template-columns:minmax(158px,1fr) 50px 68px 42px 42px 48px 110px 65px 66px!important;gap:8px!important;min-width:835px!important;padding:9px 12px!important;font-size:14px!important;align-items:center!important}
body.tactenio-modern #game-content .contracts-table-head{position:sticky;top:0;z-index:2}
body.tactenio-modern #game-content :is(.contracts-table-head,.contract-row)>*{display:block!important;min-width:0;white-space:normal;overflow-wrap:normal;border:0!important;padding:0!important;line-height:1.3!important}
body.tactenio-modern #game-content .contract-row>strong:first-child{font-size:14px!important;line-height:1.35!important}
body.tactenio-modern #game-content .contract-row .country-flag{display:flex!important;align-items:center;gap:4px;font-size:12px!important}
body.tactenio-modern #game-content .contract-row .country-flag img{width:22px;height:15px;box-shadow:none}
body.tactenio-modern #game-content .contract-row .contract-status{display:inline-block!important;padding:4px 6px!important;border-radius:5px!important;background:#e1f2e8!important;color:#165f3b!important;font-size:12px!important;justify-self:start}
body.tactenio-modern #game-content .contract-row .contract-status.warning{background:#fff0c7!important;color:#79520a!important}
body.tactenio-modern #game-content .contract-row .contract-status.urgent{background:#ffe4e9!important;color:#9a1e36!important}
body.tactenio-modern #game-content .contract-detail-card{position:static!important}
body.tactenio-modern #game-content :is(.contract-detail-grid,.contract-quote)>div{background:#f0f5f6!important;border-color:#c7d7dd!important}
body.tactenio-modern #game-content :is(.contract-detail-grid,.contract-quote) span{font-size:13px!important;color:#4b626b!important}
body.tactenio-modern #game-content :is(.contract-detail-grid,.contract-quote) strong{font-size:15px!important;color:#183d35!important;line-height:1.4}
/* Personnel cards become compact collectible dossiers. */
body.tactenio-modern #game-content #view-club .management-grid{grid-template-columns:repeat(auto-fit,minmax(230px,1fr))!important;gap:16px!important}
body.tactenio-modern #game-content #view-club .management-card{background:#fff!important;border-top:3px solid #168362!important;padding:16px!important;min-height:0!important;overflow:hidden}
body.tactenio-modern #game-content #view-club .management-card-head{align-items:center;gap:8px}
body.tactenio-modern #game-content #view-club .management-level{background:#e3f0e9;color:#1a6546!important;padding:4px 8px;border-radius:5px;font-size:12px!important;white-space:nowrap}
body.tactenio-modern #game-content #view-club :is(.staff-visual,.facility-visual){background:#f0f5f6!important;border:1px solid #dce6e9!important;box-shadow:none!important;max-height:190px!important;margin:12px 0!important;overflow:hidden}
body.tactenio-modern #game-content #view-club .staff-visual img{height:170px!important;object-fit:contain!important}
body.tactenio-modern #game-content #view-club .management-card h3{color:#164e3b!important;font-size:19px!important;margin:5px 0 7px!important}
body.tactenio-modern #game-content #view-club .management-card p{font-size:14px!important;line-height:1.5!important;color:#46616b!important}
body.tactenio-modern #game-content #view-club .management-benefit{background:#e6f3ec!important;color:#125739!important;font-size:14px!important;border:1px solid #c6dfd0!important}
body.tactenio-modern #game-content #view-club .management-next-benefit{background:#f2f6f8!important;padding:10px!important;border-left:3px solid #c4a75f!important}
body.tactenio-modern #game-content #view-club .management-next-benefit strong{color:#745415!important;font-size:13px!important}
body.tactenio-modern #game-content #view-club .management-card button{margin-top:12px!important}
/* Stadium art remains the focal point instead of a dark overlay on every page. */
body.tactenio-modern #game-content #view-home .home-hero{background:#174f3d!important;border-color:#35735b!important}
body.tactenio-modern #game-content #view-home .home-hero>img{opacity:.85!important}
body.tactenio-modern #game-content #view-home .home-hero-overlay{background:linear-gradient(90deg,#103f36f5,#194d3999 60%,#16493111)!important}
body.tactenio-modern #game-content #view-home .home-hero :is(h2,p,strong,span){color:#fff8df!important}
body.tactenio-modern #game-content .hero-club-stats{background:#f4f9f4!important}
body.tactenio-modern #game-content #view-home .hero-club-stats :is(strong,span){color:#174c38!important}
body.tactenio-modern #game-content .home-quick-grid>button{background:#fff!important;border-color:#bccfd4!important;box-shadow:0 3px 12px #2344520a!important}
body.tactenio-modern #game-content .home-quick-grid>button>span{background:#fff!important}
body.tactenio-modern #game-content .home-quick-grid button:after{background:linear-gradient(transparent,#ffffff)!important}
body.tactenio-modern #game-content #view-training .train-ability button:not(:disabled){background:#f5d67e!important;color:#453712!important;border:1px solid #bb9848!important}
body.tactenio-modern #game-content #view-training .train-ability button:disabled{background:#e8eff1!important;color:#59727c!important}
body.tactenio-modern #game-content #view-training .training-grid :is(small,.train-name button){color:#21434c!important}
body.tactenio-modern #game-content #advanced-editor button{background:#e8f0f1!important;color:#24454d!important;border-color:#a5bcc3!important}
body.tactenio-modern #game-content #advanced-editor nav button.active{background:#087654!important;color:#fff!important}
body.tactenio-modern #game-content :is(.trophy-item,.rank-card){background:linear-gradient(150deg,#fff,#eef4f3)!important;border-color:#c5d7d0!important}
body.tactenio-modern #game-content .rank-card.current{border:2px solid #be9845!important;background:#fff6df!important}
body.tactenio-modern #game-content :is(.manager-profile-hero,.manager-profile-hero.premium-frame,.opponent-profile-hero){background:linear-gradient(115deg,#fff,#e4f1ed)!important;border-top:3px solid #b79950!important}
body.tactenio-modern #game-content :is(.manager-profile-copy h2,.opponent-profile-hero h2,.profile-stat-grid strong){color:#145139!important}
body.tactenio-modern #game-content :is(.rank-status,.rank-card .rank-status,.rank-card>span:first-child){background:#dfede6!important;color:#22503b!important}
body.tactenio-modern.arena-page,html.embedded body.tactenio-modern.arena-page{background:#e6eef1!important}
body.tactenio-modern.arena-page:not(.embedded){background:#e6eef1!important}
body.tactenio-modern #arena-app .shared-card{background:linear-gradient(105deg,color-mix(in srgb,var(--cup-accent,#287759) 12%,white),#fff 65%)!important;color:#173e35!important;border-color:#bacecf!important;border-left:4px solid var(--cup-accent,#287759)!important}
body.tactenio-modern #arena-app .my-club{background:#fff1cd!important;color:#76520d!important;border-color:#c9a452!important}
body.tactenio-modern #arena-app .my-live-match{background:#fff8e5!important;color:#29453b!important;border-color:#c7a34a!important}
body.tactenio-modern #arena-app .my-live-match .live-clock{background:#174f3e!important;color:#fff0bc!important;border-color:#174f3e!important}
body.tactenio-modern #game-content #friendly-status{color:#125b42!important}
body.tactenio-modern :is(dialog,.setup-card,.import-card,#training-confirmation,#support-dialog,#about-game-dialog){background:#fff!important;color:#17343a!important;border-color:#9dbabf!important}
body.tactenio-modern :is(dialog,#training-confirmation,#support-dialog,#about-game-dialog) :is(p,span,strong,b,small,label,h2,h3){color:#17343a!important}
body.tactenio-modern dialog::backdrop{background:#12352e75!important;backdrop-filter:blur(3px)}
body.tactenio-modern #game-content #match-summary .summary-heading{background:#176149!important;color:#fff!important}
body.tactenio-modern #game-content #match-summary .summary-heading :is(h2,h3,strong,b,span,p,small){color:#fff!important}
body.tactenio-modern #game-content #match-summary .summary-heading button{background:#fff!important;color:#18533d!important}
@media(max-width:1450px){body.tactenio-modern #game-content .contracts-layout{grid-template-columns:minmax(0,1fr)!important}body.tactenio-modern #game-content .contract-side{display:grid!important;grid-template-columns:1fr 1fr!important}}
@media(max-width:760px){body.tactenio-modern #game-content .contract-side{grid-template-columns:1fr!important}body.tactenio-modern #game-content #view-club .management-grid{grid-template-columns:minmax(0,1fr)!important}}
body.tactenio-modern #game-content .view>.page-title{background:#fff!important;border-left:4px solid #15845e!important;padding:18px 20px!important;color:#17343a!important;box-shadow:0 3px 12px #2344520a!important}
body.tactenio-modern #game-content .view>.page-title :is(h2,p,.eyebrow){color:#17343a!important;text-shadow:none!important}
body.tactenio-modern #game-content .view>.page-title .eyebrow{color:#087654!important}
body.tactenio-modern #game-content .view>.page-title p{color:#48636c!important}
body.tactenio-modern #game-content #view-home .home-section-title :is(h2,.eyebrow){color:#17343a!important}
body.tactenio-modern #game-content #view-home .home-quick-grid button :is(small,strong){color:#173e35!important;text-shadow:none!important}
body.tactenio-modern #game-content #view-home .hero-club-stats>div{background:#f4f9f4!important;border-color:#c3d7cd!important}
body.tactenio-modern #game-content #view-club .staff-visual:after{display:none!important}
body.tactenio-modern #game-content #view-club .staff-visual img{top:0!important;filter:none!important;background:#f0f5f6!important}
body.tactenio-modern #game-content .section-heading h2{color:#17343a!important}
body.tactenio-modern #game-content :is(.squad-table-head,.academy-table-head,.contracts-table-head) span{color:#23454c!important}
body.tactenio-modern #game-content .contract-head-stats>div{background:#f0f5f6!important;border-color:#c7d7dd!important}
body.tactenio-modern #game-content #view-academy :is(.academy-row,.academy-table-head){grid-template-columns:minmax(175px,1fr) 58px 75px 48px 52px 62px 98px!important;min-width:760px!important;gap:10px!important;min-height:42px!important;font-size:14px!important;padding:8px 12px!important}
body.tactenio-modern #game-content #view-academy :is(.academy-row,.academy-table-head)>*{display:block!important;color:inherit!important;min-width:0;border:0!important;padding:0!important}
body.tactenio-modern #game-content #view-academy .academy-list-card{overflow:auto!important}
body.tactenio-modern #game-content #view-academy .academy-stars{color:#80611b!important}
body.tactenio-modern #game-content #view-academy .academy-layout{grid-template-columns:minmax(0,1fr) 290px!important}
body.tactenio-modern #game-content #view-academy .academy-player-detail{min-width:0!important}
@media(max-width:1450px){body.tactenio-modern #game-content #view-academy .academy-layout{grid-template-columns:minmax(0,1fr)!important}}
/* Explicit badge foreground wins over inherited text in detailed roster cards. */
body.tactenio-modern #game-content :is(#view-academy,#view-contracts,#view-training,#view-team,#view-profile,#view-transfers) .talent-badge[data-talent]{color:var(--talent-fg)!important;background:var(--talent-bg)!important}
/* Text inside legacy branded blocks must not inherit the workspace palette. */
body.tactenio-modern #game-content .app-header #section-nav button span{color:inherit!important}
body.tactenio-modern #game-content #view-team #team-list-mode>.page-title{background:#fff!important;color:#17343a!important;border:1px solid #c7d5d9!important;border-left:4px solid #15845e!important;box-shadow:0 3px 12px #2344520a!important}
body.tactenio-modern #game-content #view-team #team-list-mode>.page-title :is(h2,p,.eyebrow){color:#17343a!important}
body.tactenio-modern #game-content #view-team #selected-player-name{color:#174e3b!important}
body.tactenio-modern #game-content #view-team :is(.player-card-identity>.eyebrow,.player-card-summary span){color:#46616a!important}
body.tactenio-modern #game-content #view-store .premium-product-art{background:linear-gradient(130deg,#f0f6f4,#e0ede8)!important;border-bottom:1px solid #bbcec4!important}
body.tactenio-modern #game-content #view-store .premium-product-art h3{color:#174e3b!important}
body.tactenio-modern #game-content #view-store .vip-art :is(h3,strong,small,.vip-duration){color:#fff4d5!important}
body.tactenio-modern #game-content #view-store .vip-art .vip-xp{color:var(--vip-color)!important}
body.tactenio-modern #game-content .manager-sidebar-club :is(a,small,span){color:#48616a!important}
body.tactenio-modern #game-content .manager-sidebar-club #sidebar-club-initials{color:#ffe6a4!important}

/* Profile rewards and readable upload action. */
body.tactenio-modern #game-content #view-profile .profile-avatar-wrap>label{background:#087654!important;color:#fff!important;font-weight:750;cursor:pointer;border:1px solid #06553c!important}
body.tactenio-modern #game-content #view-profile .profile-avatar-wrap>label:hover{background:#06553c!important}
body.tactenio-modern .rank-gift{margin-top:10px;padding:10px;border-radius:10px;background:#fff5d5;color:#49370b;border:1px solid #dbc57f;display:grid;gap:5px}
body.tactenio-modern .rank-gift b{font-size:12px;color:#49370b!important}
body.tactenio-modern .rank-gift small{font-size:11px;color:#5c4b24!important}
