:root{color-scheme:dark;--bg:#080809;--panel:#100e0c;--panel2:#201c17;--line:#373228;--text:#f7f4ed;--muted:#c6bdad;--gold:#e5c477;--dark:#14110d;--green:#78d8ae;--red:#ff9999;--shadow:0 12px 30px #0003;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-size:14px}button,input,select{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid var(--gold);outline-offset:3px}button:disabled{opacity:.48;cursor:default}a{color:var(--gold)}h1,h2,h3,p{margin:0}h1{font-size:29px;letter-spacing:-.025em}h2{font-size:18px}h3{font-size:14px}p{line-height:1.6}.muted{color:var(--muted)}.gold{color:var(--gold)}.positive{color:var(--green)}.negative{color:var(--red)}.small{font-size:12px}.eyebrow{text-transform:uppercase;font-weight:800;letter-spacing:.12em;color:var(--gold);font-size:10px}.brand{display:flex;align-items:center;gap:12px;min-width:0}.brand img{width:48px;height:48px;object-fit:contain}.brand strong{font-size:15px;letter-spacing:.04em}.brand small{display:block;color:var(--gold);letter-spacing:.2em;font-size:10px;margin-top:3px}.auth{min-height:100vh;display:grid;grid-template-columns:1.1fr .9fr;align-items:center;max-width:1150px;margin:auto;padding:32px;gap:65px}.hero img{width:110px;height:110px;object-fit:contain}.hero h1{font-size:clamp(42px,6vw,72px);line-height:1.04;margin:26px 0 18px}.hero p{max-width:520px;font-size:17px;color:var(--muted)}.auth-card,.panel{border:1px solid var(--line);background:var(--panel);border-radius:12px;box-shadow:var(--shadow)}.auth-card{padding:30px}.auth-card h2{font-size:24px;margin:15px 0 8px}.auth-card p{margin-bottom:16px}.auth-tabs{display:flex;gap:8px}.btn,.auth-tabs button,.nav button{border:1px solid var(--line);border-radius:7px;background:var(--panel2);color:var(--text);font-weight:650;min-height:36px;padding:9px 13px}.btn:hover,.auth-tabs button:hover,.nav button:hover{background:#30291e;color:#fff}.btn.primary,.auth-tabs button.active,.nav button.active{background:var(--gold);color:var(--dark);border-color:var(--gold);font-weight:750}.btn.primary:hover,.auth-tabs button.active:hover,.nav button.active:hover{background:#f3d38e;color:var(--dark)}.btn.subtle{background:transparent}.btn.danger{color:var(--red)}.btn.full{width:100%}form{display:grid;gap:15px}label{display:grid;gap:7px;font-weight:650;color:var(--text)}input,select{border:1px solid var(--line);background:#0b0a09;color:var(--text);padding:10px 12px;border-radius:7px;min-width:0;max-width:100%}input[type=checkbox]{accent-color:var(--gold);width:18px;height:18px;vertical-align:middle}input::placeholder{color:#a9a08f}.error{color:var(--red);font-size:13px;line-height:1.4}.layout{display:grid;grid-template-columns:230px minmax(0,1fr);min-height:100vh}.sidebar{background:#13110f;border-right:1px solid var(--line);position:sticky;top:0;height:100vh;overflow:auto;display:flex;flex-direction:column;padding:20px 14px;gap:24px}.club-id{padding:12px;border:1px solid var(--line);border-radius:8px;display:grid;gap:5px;overflow-wrap:anywhere}.nav{display:grid;gap:5px}.nav button{text-align:left;display:flex;align-items:center;gap:12px;border:0;background:transparent;color:var(--muted);padding:12px 14px}.nav button.active{color:var(--dark)}.nav-label{padding:0 12px 5px}.sidebar-footer{margin-top:auto;display:grid;gap:9px}.workspace{min-width:0}.topbar{min-height:72px;border-bottom:1px solid var(--line);background:#13110f;display:flex;gap:15px;align-items:center;justify-content:space-between;padding:15px 25px}.topbar-left{display:flex;align-items:center;gap:15px}.topbar-right{display:flex;align-items:center;gap:16px;flex-wrap:wrap;justify-content:flex-end}.topbar-stat{display:grid;gap:3px;white-space:nowrap} .content{padding:26px;max-width:1840px;margin:auto;display:grid;gap:10px}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.page-heading p{margin-top:4px} .cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.metric{padding:17px;display:grid;gap:6px}.metric strong{font-size:26px;letter-spacing:-.04em;overflow-wrap:anywhere} .panel{min-width:0;padding:11px 13px;display:grid;gap:7px;align-content:start;grid-template-columns:minmax(0,1fr)} .panel-head{display:flex;align-items:center;justify-content:space-between;gap:6px;flex-wrap:wrap} .split{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:10px;align-items:start}.table-wrap{width:100%;overflow:auto}.data{border-collapse:collapse;width:100%;font-variant-numeric:tabular-nums;white-space:nowrap}.data th{font-size:10px;letter-spacing:.07em;text-transform:uppercase;color:var(--muted);text-align:left;background:#13110e} .data th,.data td{border-bottom:1px solid #25211c;vertical-align:middle}.data th{padding:5px 8px;line-height:1.25}.data td{padding:4px 8px;font-size:13px;line-height:1.35}.data td.num,.data th.num{text-align:right}.data tbody tr:hover{background:#211d17}.data tr.ours{background:#55482d}.data tr.ours td{color:#fff2d5;font-weight:650}.data tr.promote td:first-child{border-left:3px solid var(--green)}.data tr.relegate td:first-child{border-left:3px solid var(--red)}.pill{display:inline-flex;align-items:center;padding:3px 7px;border-radius:5px;background:#242018;color:var(--text);font-size:11px;font-weight:700}.pill.gold{background:#59472a;color:#ffe6ad}.pill.green{background:#254d3c;color:#b6f6d7} .match-card{padding:12px;border:1px solid var(--line);background:#0e0c0a;border-radius:9px;display:grid;gap:12px;text-align:center}.match-teams{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:10px;min-height:56px}.match-teams strong{overflow-wrap:anywhere;font-size:18px}.score{font-size:31px;color:var(--gold);font-weight:800;white-space:nowrap}.actions{display:flex;flex-wrap:wrap;gap:9px;align-items:center}.training-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px} .action-card{display:grid;gap:7px;padding:10px;background:#0e0c0a;border:1px solid var(--line);border-radius:8px}.action-card p{font-size:13px}.tactic-controls{display:flex;flex-wrap:wrap;gap:12px;align-items:end}.pitch{background:repeating-linear-gradient(0deg,#234b3e 0,#234b3e 45px,#295747 45px,#295747 90px);border:2px solid #80b39d;min-height:330px;display:grid;gap:10px;padding:15px;border-radius:8px}.pitch-row{display:flex;align-items:center;justify-content:space-around;gap:6px}.pitch-player{background:#142c27;border:1px solid #82ac99;border-radius:6px;padding:7px 5px;text-align:center;font-size:10px;max-width:90px;min-width:40px;overflow-wrap:anywhere}.pitch-player strong{display:block;font-size:12px;color:var(--gold)}.filters{display:flex;gap:10px;flex-wrap:wrap;align-items:end}.filters label{min-width:130px;flex:1}.market-footer{display:flex;justify-content:space-between;align-items:center;gap:10px}.legend{display:flex;gap:16px;flex-wrap:wrap}.event{padding:10px;border-bottom:1px solid var(--line);display:grid;grid-template-columns:48px 1fr auto;gap:10px}.event.goal{color:var(--gold);font-weight:700}.match-stats{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px;text-align:center}.stat-bar{height:9px;border-radius:4px;background:var(--panel2);overflow:hidden;display:flex}.stat-bar span{height:100%;background:var(--gold)}.notice{padding:13px;border:1px solid #6b5a37;background:#322a1c;border-radius:8px;color:#f8e8c6;line-height:1.5}#toast{position:fixed;bottom:20px;right:20px;max-width:calc(100vw - 40px);padding:13px 18px;background:#253b34;border:1px solid #5caa89;color:#f2fff7;border-radius:8px;box-shadow:var(--shadow);z-index:50}#toast.error{background:#41262a;border-color:#e79c9c;color:#fff1f1}.mobile-brand{display:none}.empty{padding:18px;color:var(--muted);text-align:center}.mobile-nav{display:none}@media(max-width:1050px){.layout{grid-template-columns:195px minmax(0,1fr)}.content{padding:18px}.cards{grid-template-columns:repeat(2,1fr)}.split{grid-template-columns:1fr}.topbar{padding:12px 18px}.training-grid{grid-template-columns:1fr}.topbar-stat.optional{display:none}}@media(max-width:700px){.auth{grid-template-columns:1fr;gap:25px;padding:20px}.hero h1{font-size:38px;margin:12px 0}.hero img{width:65px;height:65px}.hero p{font-size:14px}.layout{display:block}.sidebar{position:static;height:auto;border-right:0;border-bottom:1px solid var(--line);padding:10px;gap:10px}.sidebar .brand,.club-id,.nav-label{display:none}.nav{display:flex;overflow:auto;gap:5px;white-space:nowrap}.nav button{min-width:max-content;padding:9px 11px}.sidebar-footer{display:none}.mobile-brand{display:block}.topbar{gap:8px;padding:12px}.topbar-right{gap:10px}.topbar-stat{font-size:12px}.topbar-stat .small{font-size:10px}.topbar .btn{padding:6px 8px;font-size:12px} .content{padding:13px;gap:8px}.panel{padding:13px}.cards{gap:8px}.metric{padding:12px}.metric strong{font-size:22px}.match-teams strong{font-size:14px}h1{font-size:23px} .data th,.data td{padding:5px 7px}.auth-card{padding:20px}.pitch{min-height:280px}.pitch-player{font-size:9px}.score{font-size:26px}}

.hero-note{margin-top:15px}

:root{--bg:#080809;--panel:#100e0c;--panel2:#201c17;--line:#373228;--muted:#c6bdad;--gold:#e5c477;--text:#f7f4ed;--shadow:0 12px 30px #0004}.sidebar,.topbar{background:#13110f} .section-tabs{display:flex;flex-wrap:wrap;gap:7px;margin:0}.btn.textlink{background:none;border:0;color:var(--gold);padding:0;min-height:0;text-align:left;text-decoration:underline;text-underline-offset:3px;white-space:normal}.btn.textlink:hover{background:none;color:#fff}.roles-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:14px}.league-card{display:inline-flex;flex-direction:column;gap:8px;vertical-align:top;margin:6px;min-width:180px}.pitch{background-color:#182c20!important}
/* Opening splash: a genuine full-page first-load view, with original stadium artwork when installed. */
.startup{position:fixed;inset:0;isolation:isolate;overflow:hidden;display:flex;align-items:center;justify-content:flex-start;background:#080807;z-index:1000;color:#fff}
.startup::before{content:"";position:absolute;inset:0;z-index:-2;background:radial-gradient(ellipse at 85% 25%,#3b3427,transparent 55%),#080807}
.startup::after{content:"";position:absolute;inset:0;z-index:-1;background-image:linear-gradient(90deg,#080807 0%,#080807 29%,#080807ed 38%,#08080760 62%,#08080700 88%),linear-gradient(0deg,#080807 0%,transparent 29%),url('/elevenascend-stadium.webp');background-size:cover,cover,auto 100%;background-position:center,center,right center;background-repeat:no-repeat}
.startup-title{position:relative;margin-left:clamp(28px,6vw,110px);max-width:53vw;padding-bottom:70px}
.startup-brand{display:flex;align-items:center;gap:16px;width:min(100%,420px);margin-bottom:20px}
.startup-brand::before,.startup-brand::after{content:"";height:1px;background:linear-gradient(90deg,transparent,#caa65f);flex:1}
.startup-brand::after{background:linear-gradient(90deg,#caa65f,transparent)}
.startup-brand img{width:58px;height:58px;object-fit:contain}
.startup h1{font-size:clamp(55px,8.2vw,148px);font-weight:950;letter-spacing:.115em;line-height:.98;margin:0;color:#f8f6f0;text-shadow:0 4px 30px #000a}
.startup h1 span{color:#e4c477}
.startup-subtitle{font-weight:750;letter-spacing:.27em;color:#c9a968;font-size:clamp(10px,1.35vw,22px);margin-top:23px;text-transform:uppercase}
.startup-rule{width:min(100%,490px);height:1px;background:linear-gradient(90deg,#ad8846,transparent);margin-top:24px}
.startup-loading{position:absolute;bottom:clamp(24px,5vh,60px);left:50%;transform:translateX(-50%);width:min(590px,85vw);text-align:center}
.startup-loading progress{display:block;width:100%;height:13px;appearance:none;border:1px solid #76613c;border-radius:999px;overflow:hidden;background:#25221b;accent-color:#e4c477;box-shadow:0 0 26px #b78b3830}
.startup-loading progress::-webkit-progress-bar{background:#25221b;border-radius:999px}
.startup-loading progress::-webkit-progress-value{background:linear-gradient(90deg,#8e6924,#d7b369,#fff0bd,#cfa95d);border-radius:999px;transition:width .35s ease}
.startup-loading progress::-moz-progress-bar{background:linear-gradient(90deg,#8e6924,#d7b369,#fff0bd,#cfa95d);border-radius:999px}
.startup-loading p{margin-top:12px;color:#e3c885;font-weight:750;text-transform:uppercase;font-size:11px;letter-spacing:.18em;text-shadow:0 2px 8px #000}
.auth .hero .brand-name{font-weight:800;color:var(--gold);font-size:14px;letter-spacing:.16em;margin-top:10px;text-transform:uppercase}
input:-webkit-autofill,input:-webkit-autofill:focus,input:-webkit-autofill:hover{ -webkit-box-shadow:0 0 0 1000px #111110 inset; -webkit-text-fill-color:#f4f1eb;caret-color:#f4f1eb;}
@media(max-width:700px){.startup{align-items:center;justify-content:center}.startup::after{background-image:linear-gradient(0deg,#080807 0%,#0808079c 40%,#080807d9 100%),url('/elevenascend-stadium.webp');background-size:cover,cover;background-position:center,center}.startup-title{margin-left:0;max-width:91vw;text-align:center;padding:0 0 70px}.startup h1{font-size:clamp(51px,12vw,87px);letter-spacing:.08em}.startup-brand{margin:0 auto 20px}.startup-subtitle{letter-spacing:.2em}.startup-rule{margin:24px auto 0}}
@media(prefers-reduced-motion:reduce){.startup-loading progress::-webkit-progress-value{transition:none}}

/* Use the restored stadium artwork for the entire entrance, not just loading. */
.auth.auth-entrance{position:relative;isolation:isolate;overflow:hidden;min-height:100vh;min-height:100svh;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;max-width:none;margin:0;padding:clamp(20px,3vh,48px) clamp(24px,5.5vw,110px);gap:18px;background:#080807}
.auth-entrance::before,.startup::before{content:"";position:absolute;inset:0 0 0 31%;z-index:-2;background:#080807 url('/elevenascend-stadium.webp') center 40%/cover no-repeat}
.auth-entrance::after,.startup::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#080807 0%,#080807 29%,#080807e9 37%,#08080785 46%,#08080710 64%,transparent 88%),linear-gradient(0deg,#080807bd,transparent 26%);pointer-events:none}
.auth-entrance .entrance-brand,.auth-entrance .auth-card{width:min(100%,460px)}
.auth-entrance .entrance-brand .startup-brand{width:min(100%,420px);margin:0 0 8px;gap:12px}
.auth-entrance .entrance-brand .startup-brand img{width:36px;height:36px;object-fit:contain}
.auth-entrance .entrance-brand h1{font-size:clamp(46px,4.85vw,80px);font-weight:950;letter-spacing:.105em;line-height:.98;color:#f8f6f0;margin:0;text-shadow:0 4px 24px #000a}
.auth-entrance .entrance-subtitle{font-size:clamp(11px,1.1vw,17px);line-height:1.5;font-weight:750;letter-spacing:.27em;text-transform:uppercase;color:#c9a968;margin-top:9px}
.auth-entrance .entrance-tagline{color:#f4f1eb;font-size:15px;font-weight:650;margin-top:6px;letter-spacing:.04em}
.auth-entrance .hero-note{color:#b7b0a2;font-size:12px;margin:6px 0 0}
.auth-entrance .auth-card{padding:24px;background:#191816e8;border-color:#5c4e35;box-shadow:0 15px 65px #0009}
.auth-entrance .auth-card h2{margin:14px 0 5px}
.auth-entrance .auth-card form{gap:12px}
.auth-entrance .auth-card p:last-child{margin:12px 0 0;line-height:1.5}
.auth-entrance .auth-tabs .btn{flex:1}
@media(max-width:850px){
 .auth.auth-entrance{align-items:center;padding:20px 20px 24px;gap:16px;justify-content:center}
 .auth-entrance::before,.startup::before{inset:0;background-position:62% 35%;background-size:cover}
 .auth-entrance::after,.startup::after{background:linear-gradient(0deg,#080807e6 0%,#080807c9 36%,#08080780 71%,#080807ae 100%)}
 .auth-entrance .entrance-brand{text-align:center}
 .auth-entrance .entrance-brand .startup-brand{margin:0 auto 8px}
 .auth-entrance .entrance-brand h1{font-size:clamp(39px,8.8vw,62px)}
 .auth-entrance .auth-card{background:#151411ed}
}
@media(max-height:820px) and (min-width:851px){.auth.auth-entrance{padding-top:18px;padding-bottom:18px;gap:12px}.auth-entrance .entrance-brand h1{font-size:clamp(41px,4.2vw,63px)}.auth-entrance .entrance-brand .startup-brand{margin-bottom:8px}.auth-entrance .auth-card{padding:20px}.auth-entrance .auth-card form{gap:10px}}

@media(max-height:740px){.auth.auth-entrance{padding-top:12px;padding-bottom:12px;gap:10px}.auth-entrance .entrance-brand .startup-brand{margin-bottom:5px}.auth-entrance .entrance-brand .startup-brand img{width:30px;height:30px}.auth-entrance .entrance-brand h1{font-size:clamp(36px,4vw,54px)}.auth-entrance .entrance-subtitle{margin-top:6px}.auth-entrance .entrance-tagline{margin-top:3px}}
@media(max-height:740px) and (max-width:850px){.auth-entrance .entrance-brand h1{font-size:clamp(36px,8vw,52px)}}

/* League navigation stays compact even with hundreds of divisions. */
.league-browser{gap:10px}.league-browser>.actions{align-items:end}.league-filters{display:grid;grid-template-columns:minmax(130px,.7fr) minmax(180px,1fr) minmax(220px,1fr);gap:12px;align-items:end}.league-filters label,.league-search label{min-width:0}.league-filters select,.league-search input{width:100%}.league-search{display:flex;align-items:end;gap:8px}.league-search label{flex:1}.season-picker{align-items:end}.season-select{min-width:155px}.league-browser .market-footer{flex-wrap:wrap}.league-browser .market-footer .small{text-align:center}@media(max-width:850px){.league-filters{grid-template-columns:1fr 1fr}.league-search{grid-column:1/-1}}@media(max-width:480px){.league-filters{grid-template-columns:1fr}.league-search{grid-column:auto}.season-picker{display:grid;grid-template-columns:1fr 1fr}.season-select{grid-row:1;grid-column:1/-1}.league-browser .market-footer .btn{font-size:12px;padding:8px}}

/* League fixture calendar and full-world pyramid */
.calendar-controls{display:flex;flex-wrap:wrap;align-items:end;justify-content:space-between;gap:12px}.calendar-controls .actions{align-items:end}.calendar-controls input[type=date]{min-width:145px}.pyramid-overview{display:grid;justify-items:center;gap:24px;padding:8px 0 14px}.pyramid-level{position:relative;width:100%;max-width:800px;display:grid;gap:3px;text-align:center;padding:14px 12px;background:var(--panel2);border:1px solid #685638;border-radius:8px} .pyramid-level:first-child{max-width:270px}
.pyramid-level.pyramid-level-own{border-color:var(--gold);background:#30271a;box-shadow:0 0 0 1px var(--gold)}
.pyramid-your-division{justify-self:center}.pyramid-level:nth-child(2){max-width:400px}.pyramid-level:nth-child(3){max-width:530px}.pyramid-level:nth-child(4){max-width:660px}.pyramid-arrow{position:absolute;bottom:-24px;left:50%;transform:translateX(-50%);color:var(--gold);font-size:18px;line-height:23px}.pyramid-tree,.pyramid-branches{list-style:none;padding:0;margin:0;display:grid;gap:10px;min-width:0}.pyramid-branches{margin:9px 0 0 14px;padding-left:18px;border-left:1px solid #8c764c}.pyramid-branches>.pyramid-tree-item{position:relative}.pyramid-branches>.pyramid-tree-item:before{content:"";position:absolute;width:18px;height:1px;left:-18px;top:26px;background:#8c764c}.pyramid-node{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px;border:1px solid var(--line);border-radius:8px;background:#0e0c0a;min-width:0}.pyramid-node-info{display:grid;gap:4px;min-width:0;overflow-wrap:anywhere}.pyramid-node-info .pill{justify-self:start}.pyramid-node.pyramid-own{background:#322a1c;border-color:var(--gold)}.pyramid-node .actions{justify-content:flex-end;flex-shrink:0}.pyramid-node .btn{white-space:nowrap}@media(max-width:700px){.pyramid-branches{margin-left:5px;padding-left:8px}.pyramid-branches>.pyramid-tree-item:before{width:8px;left:-8px}.pyramid-node{align-items:flex-start;flex-direction:column;padding:10px}.pyramid-node .actions{justify-content:flex-start;flex-shrink:1}.calendar-controls .actions{flex-wrap:wrap}.calendar-controls .actions label{min-width:0}.pyramid-level{padding:10px 8px}}

/* Cup draws and competition navigation */
.cup-ties{display:grid;gap:10px;margin-top:14px;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr))}.cup-tie{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:10px;align-items:center;padding:14px;border:1px solid var(--line);border-radius:8px;background:var(--panel2)}.cup-tie>div{display:grid;gap:5px;overflow-wrap:anywhere}.cup-tie>div:last-child{text-align:right}.cup-tie-score{text-align:center;min-width:56px}.cup-tie.cup-own{border-color:var(--gold);background:#33291a}.cup-byes{display:flex;flex-wrap:wrap;gap:8px}.cup-byes>span{padding:6px 9px;border:1px solid var(--line);border-radius:6px}.cup-tie .textlink{white-space:normal}.score strong{font:inherit}.score .small{font-size:12px;line-height:1.4}@media(max-width:480px){.cup-tie{padding:9px;gap:6px}.cup-tie .btn{padding:5px}}

/* Keep league selection beside the page title and tabs on wide screens. */
.league-header-layout{display:flex;flex-wrap:wrap;align-items:flex-start;gap:16px 20px;min-width:0}
.league-header-main{flex:1 1 495px;min-width:0;display:grid;gap:14px}
.league-header-main>.section-tabs{margin:0;gap:7px}
.compact-league-browser{flex:1.25 1 540px;min-width:0;padding:12px;gap:9px;border-radius:10px;box-shadow:none}
.league-compact-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);gap:8px;align-items:end;min-width:0}
.league-compact-fields label{gap:4px;font-size:12px;min-width:0}
.compact-league-browser input,.compact-league-browser select,.compact-league-browser .btn{padding:7px 9px;min-height:34px;font-size:12px}
.league-compact-fields select,.league-compact-fields input{width:100%}


.league-compact-actions{display:flex;align-items:center;flex-wrap:wrap;gap:6px}
.league-compact-actions>select{max-width:100%;min-width:0}
.league-compact-pagination{display:flex;align-items:center;gap:6px;margin-left:auto;white-space:nowrap}
.league-compact-pagination .btn{min-width:30px;padding:4px 7px}
@media(max-width:700px){.league-header-main,.compact-league-browser{flex:1 1 100%}.league-compact-fields{grid-template-columns:minmax(0,1fr) minmax(0,1.3fr)}.league-compact-pagination{margin-left:0}.league-header-main{gap:10px}}
@media(max-width:360px){.league-compact-fields{grid-template-columns:minmax(0,1fr)}}


/* Stable page geometry: shorter tabs must not change the available viewport
   width, and wide table contents must scroll inside their own panels. */
html{overflow-y:scroll}
@supports(scrollbar-gutter:stable){html{overflow-y:auto;scrollbar-gutter:stable}}
.content{width:100%;grid-template-columns:minmax(0,1fr)}
.league-content>.panel,.league-content .table-wrap,.league-content>.split,.league-content>.cards,.league-content>.section-tabs{min-width:0;max-width:100%}
.league-content .panel{grid-template-columns:minmax(0,1fr)}
.league-content .section-tabs .btn{font-weight:750}
.league-content .league-header-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);align-items:start;gap:16px 20px}
.league-content .league-header-main{min-width:0}
@media(max-width:1340px){.league-content .league-header-layout{grid-template-columns:minmax(0,1fr)}}

/* Cup selection shares the league header, padding, breakpoint and button sizes. */
.cup-compact-fields{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:8px;min-width:0}
.cup-compact-fields label{gap:4px;font-size:12px;min-width:0}
.cup-compact-fields select{width:100%}
.compact-league-browser .market-footer{flex-wrap:wrap}
@media(max-width:360px){.cup-compact-fields{grid-template-columns:minmax(0,1fr)}}

/* History identities remain distinct from active game entities. */
.legacy-stamp{background:#252321;color:#c8bfb0;border:1px solid #514a40;font-size:11px;white-space:nowrap;vertical-align:middle}.league-content .legacy-stamp{margin-left:3px}

/* Keep fixture actions and scheduled status badges at the same compact size. */
.pill.fixture-status,.btn.fixture-status{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:84px;height:23px;min-height:23px;padding:3px 7px;font-size:11px;line-height:15px;font-weight:700;border-radius:5px;white-space:nowrap;border:1px solid transparent}
.btn.fixture-status{border-color:var(--line);padding:2px 6px}

.fixture-cancellation{max-width:240px;white-space:normal;margin-top:4px;line-height:1.35}

.ticket-form{display:grid;gap:14px}.ticket-form input[type=range]{width:100%;accent-color:var(--accent)}.ticket-form .cards{margin:0}.ticket-form>.btn{justify-self:start}.ticket-form>label{font-size:14px}


/* Squad and youth: match the league header and keep long rosters compact. */
.compact-squad-screen,.youth-prospects{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;min-width:0}
.compact-squad-screen .squad-header-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);align-items:start;gap:12px 20px}
.compact-squad-screen .league-header-main{gap:12px;min-width:0}
.compact-squad-screen .section-tabs{margin:0;gap:7px}
.compact-squad-screen .section-tabs .btn{font-weight:750}
.squad-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;min-width:0;align-self:start}
.squad-summary--youth{grid-template-columns:repeat(4,minmax(0,1fr))}
.compact-squad-screen .panel{padding:11px 13px;gap:7px;grid-template-columns:minmax(0,1fr);border-radius:9px;box-shadow:none}
.compact-squad-screen .panel-head{gap:6px}
.compact-squad-screen .panel-head h2{font-size:16px;line-height:1.35}
.compact-squad-screen .squad-summary .metric{padding:10px 11px;gap:4px;min-height:77px;align-content:start}
.squad-summary .metric strong{font-size:20px;line-height:1.25;letter-spacing:-.025em}
.squad-summary .metric .small{font-size:11px;line-height:1.3;overflow-wrap:anywhere}
.squad-summary .metric .small:empty{display:none}
.compact-squad-screen .table-wrap{min-width:0;max-width:100%}
.compact-squad-screen .data th{padding:5px 8px;font-size:10px;line-height:1.25}
.compact-squad-screen .data td{padding:4px 8px;font-size:13px;line-height:1.35;vertical-align:middle}
.compact-squad-screen .data tbody tr:last-child td{border-bottom:0}
.compact-squad-screen .data .btn:not(.textlink){min-height:26px;padding:4px 8px;font-size:11px;line-height:16px;border-radius:5px}
.compact-squad-screen .data .btn.textlink{font-size:inherit}
.compact-squad-screen .data .actions{gap:5px;flex-wrap:wrap}
.compact-squad-screen .data .pill{padding:2px 6px;font-size:10px}
.compact-squad-screen .data .small{white-space:normal;line-height:1.35;margin-top:3px}
.compact-squad-screen .notice{padding:8px 11px;font-size:12px;line-height:1.45}
.compact-squad-screen .notice p,.compact-squad-screen .panel p{line-height:1.45}
.senior-roster .data,.youth-prospects .data{table-layout:fixed}
.senior-roster .data{min-width:1230px}
.youth-prospects .data{min-width:960px}
.senior-roster{min-width:0;max-width:100%}
.senior-roster .data th,.senior-roster .data td{padding:5px 6px;font-size:12px}
.senior-roster .data th{font-size:10px;white-space:normal}
.senior-roster .data td:nth-child(-n+3),.youth-prospects .data td:nth-child(-n+3){white-space:normal;overflow-wrap:anywhere}
.senior-roster .data th:nth-child(1){width:14%}
.senior-roster .data th:nth-child(2){width:8%}
.senior-roster .data th:nth-child(3){width:12%}
.senior-roster .data th:nth-child(4){width:3%}
.senior-roster .data th:nth-child(5),.senior-roster .data th:nth-child(6),.senior-roster .data th:nth-child(8){width:4%}
.senior-roster .data th:nth-child(7),.senior-roster .data th:nth-child(9){width:5%}
.senior-roster .data th:nth-child(10){width:7%}
.senior-roster .data th:nth-child(11),.senior-roster .data th:nth-child(12){width:9%}
.senior-roster .data th:nth-child(13),.senior-roster .data th:nth-child(14){width:8%}
.youth-prospects .data th:nth-child(1){width:17%}
.youth-prospects .data th:nth-child(2){width:10%}
.youth-prospects .data th:nth-child(3){width:14%}
.youth-prospects .data th:nth-child(4),.youth-prospects .data th:nth-child(5),.youth-prospects .data th:nth-child(6){width:4%}
.youth-prospects .data th:nth-child(7){width:12%}
.youth-prospects .data th:nth-child(8){width:13%}
.youth-prospects .data th:nth-child(9){width:22%}
.player-career-details{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:9px}
.player-career-details p{display:grid;gap:3px;border:1px solid var(--line);background:var(--panel2);border-radius:6px;padding:9px 11px}
.player-career-details p span{font-size:11px}
.player-list-form{max-width:420px;gap:8px}
.player-list-form .btn{justify-self:start}
@media(max-width:1340px){.compact-squad-screen .squad-header-layout{grid-template-columns:minmax(0,1fr);gap:10px}.compact-squad-screen .squad-summary .metric{min-height:0}}
@media(max-width:700px){.compact-squad-screen,.youth-prospects{gap:8px}.compact-squad-screen .panel{padding:9px 10px}.compact-squad-screen .league-header-main{gap:10px}.squad-summary{gap:6px}.squad-summary--youth{grid-template-columns:repeat(2,minmax(0,1fr))}.squad-summary .metric strong{font-size:18px}}
@media(max-width:460px){.squad-summary--senior{grid-template-columns:repeat(2,minmax(0,1fr))}.squad-summary--senior .metric:last-child{grid-column:1/-1}}

/* Styled native game dialog; no browser confirm() for academy decisions. */
#youth-decision-dialog{color:var(--text);background:var(--panel);border:1px solid #79663f;border-radius:12px;padding:0;width:min(460px,calc(100vw - 28px));max-height:calc(100dvh - 28px);overflow:auto;box-shadow:0 20px 60px #0009}
#youth-decision-dialog::backdrop{background:#070706b8}
.youth-confirm-form{padding:22px;gap:13px;min-width:0}
.youth-confirm-form h2{font-size:23px;line-height:1.2}
.youth-confirm-player{display:grid;gap:5px;padding:12px;border:1px solid var(--line);border-radius:8px;background:var(--panel2);overflow-wrap:anywhere}
.youth-confirm-player>strong{font-size:17px;color:var(--gold)}
.youth-confirm-stats{display:grid;grid-template-columns:.75fr .75fr 1.5fr;gap:10px;margin-top:7px}
.youth-confirm-stats>div{display:grid;gap:3px;min-width:0}
.youth-confirm-stats strong{font-size:16px;overflow-wrap:anywhere}
#youth-decision-description{display:grid;gap:8px}
.youth-confirm-wage{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:9px 11px;border:1px solid var(--line);border-radius:6px;background:var(--panel2)}
.youth-confirm-wage strong{white-space:nowrap;color:var(--gold)}
.youth-release-warning{color:var(--red);font-size:13px}
.youth-confirm-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;padding-top:4px}
.btn.youth-release-confirm{color:#ffe5e5;background:#6d2929;border-color:#ae6262}
.btn.youth-release-confirm:hover{background:#8c3939;color:#fff}
@media(max-width:460px){.youth-confirm-form{padding:16px;gap:11px}.youth-confirm-actions .btn{flex:1}.youth-confirm-wage{flex-wrap:wrap}}

/* All screens share the content width; no roster-dependent sizing. */
.senior-roster .btn.textlink{font-size:inherit}


/* Final Whistle reference palette, sampled from the supplied game screenshot.
   These are signed-in presentation changes only: retain the existing layouts,
   responsive breakpoints, controls, splash artwork and semantic status colours. */
:root{
 --accent:var(--gold);
 --panel-gradient:linear-gradient(180deg,#14120f 0%,#100e0c 45%,#090909 100%);
 --control-gradient:linear-gradient(180deg,#29251e 0%,#1b1814 100%);
 --inset-gradient:linear-gradient(180deg,#110f0d 0%,#0b0a09 100%);
 --table-heading:#c8b58b;
}
.layout .workspace{
 background:linear-gradient(180deg,#0c0b0b 0,#090909 55vh,#060606 100%);
}
.layout .sidebar{
 background:linear-gradient(180deg,#151310 0%,#110f0d 38%,#0d0b0c 62%,#08080a 100%);
}
.layout .topbar{background:#13110f}
.layout .panel{
 background:var(--panel-gradient);
 border-color:var(--line);
 box-shadow:0 8px 20px #0002;
}
.layout .metric{background:var(--panel-gradient)}
.layout .compact-squad-screen .panel,.layout .compact-league-browser{box-shadow:none}
.layout .club-id,.layout .match-card,.layout .action-card,.layout .pyramid-node:not(.pyramid-own){
 background:var(--inset-gradient);
}
.layout .btn:not(.primary):not(.subtle):not(.textlink):not(.youth-release-confirm),
.layout .auth-tabs button:not(.active){
 background:var(--control-gradient);
}
.layout .btn:not(.primary):not(.subtle):not(.textlink):not(.youth-release-confirm):hover{
 background:#30291e;
}
.layout .nav button:not(.active){color:var(--text)}
.layout .nav button:not(.active):hover{background:#211d17}
.layout .nav button.active,.layout .btn.primary{
 background:linear-gradient(180deg,#e9cc80 0%,#e5c477 100%);
 color:var(--dark);
 border-color:#e5c477;
}
.layout .nav button.active:hover,.layout .btn.primary:hover{background:#f3d38e}
.layout .data th{
 background:transparent;
 color:var(--table-heading);
}
.layout .data th,.layout .data td{border-bottom-color:#25211c}
.layout .data tbody tr:not(.ours):hover{background:#211d17}
.layout .senior-roster .data .textlink{
 color:var(--text);
 text-decoration-color:#8d7a54;
}
.layout .senior-roster .data .textlink:hover{color:var(--gold)}
.layout .player-career-details p,.layout .cup-tie:not(.cup-own){
 background:var(--inset-gradient);
}
#youth-decision-dialog{background:var(--panel-gradient)}
.youth-confirm-player,.youth-confirm-wage{background:var(--inset-gradient)}
/* Keep the existing hover and selected-row meaning for league standings,
   cup ties, pyramid routes, and success/warning/danger states. */


/* Shared game screen geometry, based on the compact Squad page. Keep the
   existing viewport breakpoints, colour scheme and table overflow behaviour. */
.content>*,.content .split>*,.content .cards>*,.content .table-wrap{min-width:0;max-width:100%}
.content .panel{border-radius:9px}
.layout .content .panel{box-shadow:none}
.content .panel-head h2{font-size:16px;line-height:1.35}
.content .metric{padding:10px 11px;gap:4px;min-height:77px}
.content .metric strong{font-size:20px;line-height:1.25;letter-spacing:-.025em}
.content .metric .small{font-size:11px;line-height:1.3;overflow-wrap:anywhere}
.content .metric .small:empty{display:none}
.content .table-wrap{width:100%;overflow:auto}
.content .data tbody tr:last-child td{border-bottom:0}
:where(.content) .data .btn:not(.textlink):not(.fixture-status){min-height:26px;padding:4px 8px;font-size:11px;line-height:16px;border-radius:5px}
:where(.content) .data .actions{gap:5px;flex-wrap:wrap}
:where(.content) .data .pill:not(.fixture-status){padding:2px 6px;font-size:10px}
:where(.content) .notice{padding:8px 11px;font-size:12px;line-height:1.45}
:where(.content) .panel p{line-height:1.45}
:where(.content) form{gap:10px}
:where(.content) label{gap:5px}
:where(.content) .training-grid,:where(.content) .roles-grid{gap:10px}
.office-column{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;align-content:start;min-width:0}
.office-columns .match-card{gap:8px}
.office-columns .action-card .btn{min-height:32px;padding:6px 10px}
.content .league-header-main{gap:12px}
.content .squad-header-layout .page-heading>div{min-width:0}
.content .squad-header-layout .section-tabs{min-width:0}
@media(max-width:1050px){.content .split{grid-template-columns:minmax(0,1fr)}}
@media(max-width:700px){
 .content .panel{padding:9px 10px}
 .content .metric{padding:9px 10px;min-height:0}
 .content .metric strong{font-size:18px}
 .content .cards,.content .split,.office-column{gap:8px}
 .content .league-header-main{gap:10px}
 .content .data .btn:not(.textlink):not(.fixture-status){min-height:30px}
}


/* Unread news, not a count of outstanding actions. Keep the original
   keyboard focus outline and disabled-button double-submit protection. */
.inbox-count{display:inline-flex;align-items:center;justify-content:center;min-width:19px;height:19px;padding:0 5px;border-radius:5px;font-size:11px;font-weight:750;line-height:1;color:var(--dark);background:var(--gold);white-space:nowrap}
.inbox-count[hidden]{display:none}
.nav .inbox-count{margin-left:auto}
.nav button.active .inbox-count,.btn.primary .inbox-count{background:var(--dark);color:var(--gold)}
.btn .inbox-count{margin-left:7px;vertical-align:middle}
.subsection-tabs{min-width:0;display:grid;gap:0}
.subsection-tabs .section-tabs{margin:0;gap:6px}
.subsection-tabs .btn{min-height:30px;padding:5px 10px;font-size:12px}
.tactic-selection-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.tactic-selection-toolbar>.small{margin-right:auto}
.tactic-selection-toolbar .btn{min-height:30px;padding:5px 10px}

/* Transfer Market and Scout Players share the compact game geometry.
   Stable tab and table widths prevent the listed/unlisted data from shifting
   controls or columns when switching between the two views. */
.market-content>.section-tabs .btn{font-weight:750}
.market-content #market-form{width:100%;min-width:0;gap:10px}
.market-content #market-form label{flex:1 1 130px;min-width:0;gap:5px}
.market-content #market-form input,.market-content #market-form select{width:100%}
.market-expanded #market-form~.table-wrap .data:not(.free-transfer-table){table-layout:fixed;min-width:980px}
.market-expanded #market-form~.table-wrap .data:not(.free-transfer-table) th:nth-child(1),
.market-expanded #market-form~.table-wrap .data:not(.free-transfer-table) th:nth-child(2){width:17%}
.market-expanded #market-form~.table-wrap .data:not(.free-transfer-table) th:nth-child(3){width:11%}
.market-expanded #market-form~.table-wrap .data:not(.free-transfer-table) th:nth-child(4){width:5%}
.market-expanded #market-form~.table-wrap .data:not(.free-transfer-table) th:nth-child(5){width:4%}
.market-expanded #market-form~.table-wrap .data:not(.free-transfer-table) th:nth-child(6),
.market-expanded #market-form~.table-wrap .data:not(.free-transfer-table) th:nth-child(8){width:6%}
.market-expanded #market-form~.table-wrap .data:not(.free-transfer-table) th:nth-child(7){width:7%}
.market-expanded #market-form~.table-wrap .data:not(.free-transfer-table) th:nth-child(9){width:8%}
.market-expanded #market-form~.table-wrap .data:not(.free-transfer-table) th:nth-child(10){width:10%}
.market-expanded #market-form~.table-wrap .data:not(.free-transfer-table) th:nth-child(11){width:9%}
.market-expanded #market-form~.table-wrap .data:not(.free-transfer-table) td:nth-child(-n+3),
.market-expanded #market-form~.table-wrap .data:not(.free-transfer-table) td:nth-child(9),
.market-expanded #market-form~.table-wrap .data:not(.free-transfer-table) td:nth-child(10){white-space:normal;overflow-wrap:anywhere}
.market-content #market-form~.table-wrap .data td:last-child>.muted{display:inline-flex;align-items:center;min-height:26px}
.market-content .market-footer{flex-wrap:wrap}
@media(max-width:700px){
 .market-content #market-form~.table-wrap .data td:last-child>.muted{min-height:30px}
}

/* Club information and finances use the compact game spacing. */
.club-details{margin:0;display:grid;max-width:900px}
.club-detail-row{display:grid;grid-template-columns:minmax(135px,210px) minmax(0,1fr);gap:12px;align-items:center;border-bottom:1px solid var(--line);min-height:42px;padding:7px 2px}
.club-detail-row:last-child{border-bottom:0}
.club-detail-row dt{color:var(--muted)}
.club-detail-row dd{margin:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(135px,auto);gap:10px;align-items:center}
.club-detail-value{font-weight:600;overflow-wrap:anywhere}
.club-detail-action{justify-self:end}
.club-detail-action .btn{min-height:29px;padding:5px 10px;font-size:12px;white-space:nowrap}
.facility-cost-summary{display:flex;align-items:baseline;gap:7px 14px;flex-wrap:wrap;border-bottom:1px solid var(--line);padding:4px 0 9px}
.facility-cost-summary strong{font-size:19px}
@media(max-width:540px){.club-detail-row{grid-template-columns:minmax(95px,.85fr) minmax(0,1.2fr);gap:8px}.club-detail-row dd{grid-template-columns:minmax(0,1fr);gap:5px}.club-detail-action{justify-self:start}}
.stadium-layout{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(250px,1fr);gap:14px;align-items:center}
.stadium-map{display:grid;grid-template-areas:". north ." "west pitch east" ". south .";grid-template-columns:minmax(95px,1fr) minmax(0,2.7fr) minmax(95px,1fr);grid-template-rows:minmax(74px,auto) minmax(140px,auto) minmax(74px,auto);gap:6px;align-items:stretch;background:#0b0b0a;border:1px solid var(--line);border-radius:9px;padding:10px;min-width:0}
.stadium-stand{position:relative;isolation:isolate;overflow:hidden;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;text-align:center;background:#211d17;border:1px solid #574a35;color:var(--text);border-radius:5px;padding:8px 4px;min-width:0;font-size:12px}
.stadium-stand strong,.stadium-stand>span:not(.stand-seating){position:relative;z-index:1}
.stadium-stand.selected{border-color:var(--gold);box-shadow:inset 0 0 0 1px var(--gold);color:#fff0cf;background:#302719}
.stadium-stand:hover{border-color:var(--gold)}
.stand-north{grid-area:north}.stand-east{grid-area:east}.stand-south{grid-area:south}.stand-west{grid-area:west}
.stand-seating{position:absolute;inset:0;background:repeating-linear-gradient(0deg,#91764966 0 2px,#241d1677 2px 6px);height:var(--seat-fill);bottom:0;top:auto;opacity:.62;z-index:-1}
.stand-south .stand-seating{top:0;bottom:auto}
.stand-west .stand-seating,.stand-east .stand-seating{height:100%;width:var(--seat-fill);background:repeating-linear-gradient(90deg,#91764966 0 2px,#241d1677 2px 6px)}
.stand-west .stand-seating{left:auto;right:0}
.stand-east .stand-seating{right:auto;left:0}
.stadium-pitch{grid-area:pitch;display:flex;align-items:center;background:repeating-linear-gradient(90deg,#21683a 0 12.5%,#245e36 12.5% 25%);border:3px solid #173d24;border-radius:3px;min-width:0}
.stadium-pitch svg{display:block;width:100%;height:auto;min-height:110px}
.stadium-upgrade{display:grid;gap:8px;min-width:0;align-content:start}
.stadium-upgrade-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.stadium-upgrade-facts .metric{min-height:0}
.stadium-upgrade-facts .metric strong{font-size:17px;overflow-wrap:anywhere}
@media(max-width:1050px){.stadium-layout{grid-template-columns:minmax(0,1fr)}}
@media(max-width:540px){.stadium-map{grid-template-columns:minmax(58px,1fr) minmax(0,2.6fr) minmax(58px,1fr);grid-template-rows:minmax(62px,auto) minmax(105px,auto) minmax(62px,auto);padding:6px;gap:4px}.stadium-stand{font-size:10px;padding:5px 3px}.stadium-pitch svg{min-height:75px}}

/* Text-only navigation: consistent alignment and weight, including the active page. */
.layout .nav button,.layout .nav button.active{font-weight:400;justify-content:flex-start;gap:8px;text-align:left;padding-inline:14px}
.layout .nav-label{padding-left:14px}
.layout .nav-text{min-width:0;line-height:1.35}
@media(max-width:700px){.layout .nav button,.layout .nav button.active{padding-inline:11px}}

/* In-game identity editor shares the youth confirmation visual treatment. */
#club-edit-dialog{color:var(--text);background:var(--panel-gradient);border:1px solid #79663f;border-radius:12px;padding:0;width:min(460px,calc(100vw - 28px));max-height:calc(100dvh - 28px);overflow:auto;box-shadow:0 20px 60px #0009}
#club-edit-dialog::backdrop{background:#070706b8}
#club-edit-dialog input,#club-edit-dialog select{width:100%}

/* Commercial projections stay compact and scroll within their panels. */
.facility-cost-summary strong{font-variant-numeric:tabular-nums}

/* Sponsorship comparison and suggested matchday pricing. */
.ticket-benchmark{display:flex;align-items:center;gap:8px 14px;flex-wrap:wrap;padding:7px 0 12px;border-bottom:1px solid var(--line)}
.ticket-benchmark strong{font-size:21px;font-variant-numeric:tabular-nums}
.ticket-benchmark .btn{margin-left:auto}
.sponsor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.sponsor-offer{display:grid;grid-template-rows:auto auto auto 1fr auto;gap:9px;min-width:0}
.sponsor-offer h3,.sponsor-current h3{font-size:16px;color:var(--gold)}
.sponsor-terms{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;align-items:baseline;padding:8px 0;border-block:1px solid var(--line);font-variant-numeric:tabular-nums}
.sponsor-terms span{color:var(--muted);font-size:12px}
.sponsor-terms strong{text-align:right;white-space:nowrap}
.sponsor-bonuses{margin:6px 0 0;padding-left:18px;font-size:12px;line-height:1.65}
.sponsor-current{display:grid;gap:12px;max-width:700px}
#sponsor-confirm-dialog{color:var(--text);background:var(--panel-gradient);border:1px solid #79663f;border-radius:12px;padding:0;width:min(460px,calc(100vw - 28px));max-height:calc(100dvh - 28px);overflow:auto;box-shadow:0 20px 60px #0009}
#sponsor-confirm-dialog::backdrop{background:#070706b8}
@media(max-width:700px){.sponsor-grid{grid-template-columns:minmax(0,1fr)}.ticket-benchmark .btn{margin-left:0}}

/* Facility decisions use the same in-game dialog treatment as youth and sponsorship. */
#facility-upgrade-dialog{color:var(--text);background:var(--panel);border:1px solid #79663f;border-radius:12px;padding:0;width:min(560px,calc(100vw - 28px));max-height:calc(100dvh - 28px);overflow:auto;box-shadow:0 20px 60px #0009}
#facility-upgrade-dialog::backdrop{background:#070706b8}
.facility-upgrade-section{display:grid;gap:7px;min-width:0}.facility-upgrade-section h3{color:var(--gold);font-size:14px}.facility-upgrade-warning{color:var(--red);font-size:12px;line-height:1.5}
#facility-upgrade-dialog .sponsor-terms{grid-template-columns:minmax(0,1fr) minmax(0,auto)}#facility-upgrade-dialog .sponsor-terms strong{white-space:normal;overflow-wrap:anywhere}

/* Read-only rival ground layout, matching the manager's own stadium screen. */
.stadium-map-readonly{max-width:1000px}.stadium-stand-readonly{cursor:default;display:flex;flex-direction:column;justify-content:center;align-items:center}.stadium-stand-readonly:hover{border-color:var(--line);transform:none}

.page-heading p .btn.textlink{font-size:inherit;font-weight:inherit;display:inline;vertical-align:baseline}

.club-trophy-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px}.club-trophy{display:flex;align-items:center;gap:12px;padding:14px;border:1px solid var(--line);border-radius:8px;background:var(--panel2)}.club-trophy svg{width:38px;height:38px;color:var(--gold);flex:none}.club-trophy>div{flex:1;min-width:0}.club-trophy>strong{font-size:21px;white-space:nowrap}

#free-transfer-dialog{width:min(560px,calc(100vw - 24px));max-height:calc(100dvh - 32px);overflow:auto;border:1px solid var(--line);border-radius:12px;background:var(--panel);color:var(--text);padding:20px;box-shadow:var(--shadow)}#free-transfer-dialog::backdrop{background:#000a}

/* Free transfers use their own column layout. Keep the release reason,
   former club and signing action readable at every screen size. */
.market-expanded #market-form~.table-wrap .free-transfer-table{table-layout:fixed;width:100%;min-width:1140px}
.free-transfer-table th:nth-child(1){width:15%}
.free-transfer-table th:nth-child(2),.free-transfer-table th:nth-child(11){width:9%}
.free-transfer-table th:nth-child(3){width:11%}
.free-transfer-table th:nth-child(4),.free-transfer-table th:nth-child(5),.free-transfer-table th:nth-child(6),.free-transfer-table th:nth-child(10){width:4%}
.free-transfer-table th:nth-child(7){width:16%}
.free-transfer-table th:nth-child(8){width:14%}
.free-transfer-table th:nth-child(9){width:10%}
.free-transfer-table th,.free-transfer-table td:nth-child(-n+3),.free-transfer-table td:nth-child(7),.free-transfer-table td:nth-child(8){white-space:normal;overflow-wrap:anywhere}
.free-transfer-table td .btn.textlink{max-width:100%;overflow-wrap:anywhere;font-size:inherit}
.free-transfer-table td:last-child{white-space:nowrap;text-align:right}
.free-transfer-table td:last-child .btn{white-space:nowrap;max-width:100%}

/* Full-length, role-specific tactics pitch, shared by own and rival clubs. */
.tactics-formation-layout{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(240px,.7fr);align-items:start;gap:10px}
.tactics-formation-layout>.panel{min-width:0}
.tactics-pitch{position:relative;aspect-ratio:68/105;width:100%;max-width:500px;max-height:none;margin:8px auto;background:repeating-linear-gradient(0deg,#1c5132 0 9.52%,#24613a 9.52% 19.04%);border:2px solid #719c79;border-radius:7px;overflow:hidden;isolation:isolate}
.tactics-pitch-lines{position:absolute;inset:0;width:100%;height:100%;color:#b2d3b6;opacity:.8;pointer-events:none}
.pitch-slot{position:absolute;z-index:1;left:50%;top:50%;transform:translate(-50%,-50%);width:17%;min-width:0;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:2px;background:#101b16;border:1px solid #91b19a;border-radius:6px;padding:4px 3px;color:var(--text);text-align:center;line-height:1.18;font-size:11px;font-family:inherit}
button.pitch-slot{cursor:grab}button.pitch-slot:active{cursor:grabbing}.pitch-slot.selected,.pitch-slot.drop-target{border-color:var(--gold);box-shadow:0 0 0 2px var(--gold)}.pitch-slot.role-mismatch{border-color:#dba566}
.pitch-slot-label{font-size:10px;font-weight:800;color:var(--gold)}.pitch-slot strong{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.pitch-slot-rating{color:#c7d5c9;font-size:10px;white-space:nowrap}.pitch-role-warning{color:#ffd498}
.pitch-recruit-list{display:grid;grid-template-columns:1fr;gap:5px;max-height:680px;overflow:auto;min-width:0;padding:2px}
.pitch-recruit{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;background:var(--panel2);border:1px solid var(--line);border-radius:5px;padding:7px 9px;text-align:left;color:var(--text);font:inherit;cursor:grab}
.pitch-recruit.selected{border-color:#8a7547}.pitch-recruit:hover{border-color:var(--gold)}.pitch-recruit span{display:grid;gap:2px;min-width:0;overflow-wrap:anywhere}.pitch-recruit small{color:var(--muted);font-size:11px}
.tactical-selection-table{min-width:1150px}.tactical-selection-table td:nth-child(2),.tactical-selection-table td:nth-child(3){white-space:normal;overflow-wrap:anywhere}.pitch-position-select{width:100%;min-width:175px;max-width:260px;font-size:12px;padding:5px 7px}
@media(max-width:900px){.tactics-formation-layout{grid-template-columns:1fr}.pitch-recruit-list{grid-template-columns:repeat(auto-fit,minmax(160px,1fr));max-height:320px}}
@media(max-width:480px){.pitch-slot{font-size:9px;padding:3px 1px;gap:1px}.pitch-slot strong{font-size:10px}.pitch-slot-label,.pitch-slot-rating{font-size:9px}.pitch-recruit-list{grid-template-columns:1fr 1fr}}

.tactics-formation-layout>.panel:only-child{grid-column:1/-1}

/* Position classes are served by the external stylesheet. The game's CSP
   intentionally blocks inline style attributes, so never set pitch coordinates there. */
.pitch-slot.pitch-x-12{left:12%}
.pitch-slot.pitch-x-13{left:13%}
.pitch-slot.pitch-x-23{left:23%}
.pitch-slot.pitch-x-27{left:27%}
.pitch-slot.pitch-x-29{left:29%}
.pitch-slot.pitch-x-30{left:30%}
.pitch-slot.pitch-x-31{left:31%}
.pitch-slot.pitch-x-34{left:34%}
.pitch-slot.pitch-x-36{left:36%}
.pitch-slot.pitch-x-37{left:37%}
.pitch-slot.pitch-x-50{left:50%}
.pitch-slot.pitch-x-63{left:63%}
.pitch-slot.pitch-x-64{left:64%}
.pitch-slot.pitch-x-66{left:66%}
.pitch-slot.pitch-x-69{left:69%}
.pitch-slot.pitch-x-70{left:70%}
.pitch-slot.pitch-x-71{left:71%}
.pitch-slot.pitch-x-73{left:73%}
.pitch-slot.pitch-x-77{left:77%}
.pitch-slot.pitch-x-87{left:87%}
.pitch-slot.pitch-x-88{left:88%}
.pitch-slot.pitch-y-13{top:13%}
.pitch-slot.pitch-y-15{top:15%}
.pitch-slot.pitch-y-23{top:23%}
.pitch-slot.pitch-y-31{top:31%}
.pitch-slot.pitch-y-32{top:32%}
.pitch-slot.pitch-y-33{top:33%}
.pitch-slot.pitch-y-43{top:43%}
.pitch-slot.pitch-y-47{top:47%}
.pitch-slot.pitch-y-48{top:48%}
.pitch-slot.pitch-y-49{top:49%}
.pitch-slot.pitch-y-51{top:51%}
.pitch-slot.pitch-y-52{top:52%}
.pitch-slot.pitch-y-58{top:58%}
.pitch-slot.pitch-y-63{top:63%}
.pitch-slot.pitch-y-75{top:75%}
.pitch-slot.pitch-y-76{top:76%}
.pitch-slot.pitch-y-77{top:77%}
.pitch-slot.pitch-y-78{top:78%}
.pitch-slot.pitch-y-79{top:79%}
.pitch-slot.pitch-y-92{top:92%}

/* Competition group and independent compact tactics workspace. */
.nav-group{display:grid;gap:2px;min-width:0}
.layout .nav .nav-parent{width:100%;justify-content:space-between}
.layout .nav .nav-group.current>.nav-parent{color:var(--gold);background:#201b14}
.nav-chevron{width:7px;height:7px;border-right:1px solid currentColor;border-bottom:1px solid currentColor;transform:rotate(-45deg);margin-right:3px;flex:none}
.nav-parent[aria-expanded="true"] .nav-chevron{transform:rotate(45deg)}
.nav-submenu{display:grid;gap:2px;padding-left:10px;margin-left:14px;border-left:1px solid var(--line)}
.nav-submenu[hidden]{display:none}
.layout .nav .nav-submenu button{font-size:12px;min-height:29px;padding:6px 8px}
.tactics-content{padding-top:12px;padding-bottom:12px;gap:6px;align-content:start}
.tactics-screen{gap:6px}
.tactics-header{display:flex;align-items:center;gap:16px;flex-wrap:wrap;min-width:0}
.tactics-header h1{font-size:24px;line-height:1.2}
.tactics-header .section-tabs{gap:5px}
.tactics-header .section-tabs .btn{min-height:30px;padding:5px 12px;font-size:12px}
.tactics-screen .tactics-formation-layout{gap:8px}
.content .tactics-formation-layout>.formation-panel{padding:6px 8px;gap:5px}
.formation-controls{display:flex;align-items:center;flex-wrap:wrap;gap:6px 9px;min-width:0}
.formation-controls label{display:inline;font-size:12px}
.formation-controls select{width:auto;min-height:28px;padding:4px 8px;font-size:12px}
.formation-count{white-space:nowrap}
.formation-actions{display:flex;gap:5px;margin-left:auto}
.formation-actions .btn{min-height:28px;padding:4px 8px;font-size:11px}
.formation-panel .tactics-pitch{margin:0 auto;width:min(100%,500px,max(300px,calc((100dvh - 205px) * 68 / 105)))}
.formation-note{font-size:11px;line-height:1.3}
.tactics-screen .tactics-formation-layout>.panel:not(.formation-panel){padding:7px 9px;gap:5px}
.tactics-screen .pitch-recruit-list{max-height:max(280px,calc(100dvh - 225px))}
.tactics-screen .pitch-recruit{padding:5px 7px;gap:6px}
@media(max-width:700px){
 .nav-group{flex:none}
 .nav-submenu{padding-left:4px;margin-left:6px}
 .layout .nav .nav-submenu button{min-height:27px;padding:4px 8px}
 .tactics-content{padding-top:8px;padding-bottom:8px}
 .tactics-header{gap:7px}
 .tactics-header h1{font-size:21px}
 .formation-panel .tactics-pitch{width:min(100%,440px)}
 .tactics-screen .pitch-recruit-list{max-height:300px}
}

/* Tactics player ranking and compact position filter. */
.tactics-position-filter{display:flex;align-items:center;gap:8px;font-size:12px}.tactics-position-filter select{width:auto;min-width:130px;min-height:28px;padding:4px 8px;font-size:12px}
.pitch-recruit,.pitch-recruit-heading{display:grid;grid-template-columns:minmax(0,1fr) minmax(58px,auto) 48px;align-items:center;gap:8px}.pitch-recruit-heading{font-size:10px;font-weight:700;color:var(--muted);padding:0 9px}.pitch-recruit-heading span:not(:first-child),.pitch-recruit-score,.pitch-recruit-fitness{text-align:right;font-variant-numeric:tabular-nums}.pitch-recruit-score strong{color:var(--gold)}.pitch-recruit-fitness{font-size:12px}.pitch-ranking-note{font-size:11px}.tactical-selection-table{min-width:1230px}
@media(max-width:900px){.pitch-recruit-list{grid-template-columns:1fr}}

/* Seven substitute slots beside the pitch; retain a compact header and full-height pitch. */
.pitch-and-bench{display:grid;grid-template-columns:minmax(0,1fr) minmax(138px, .35fr);align-items:start;gap:8px;min-width:0}
.pitch-and-bench .tactics-pitch{width:min(100%,500px,max(270px,calc((100dvh - 205px) * 68 / 105)))}
.tactics-bench{display:grid;gap:5px;min-width:0}.bench-heading{display:flex;align-items:center;justify-content:space-between;gap:4px}.bench-heading h3{font-size:13px;margin:0}
.bench-slot{display:grid;grid-template-columns:21px minmax(0,1fr) auto;gap:4px;align-items:center;min-height:49px;padding:5px;background:var(--panel2);border:1px solid var(--line);border-radius:5px;color:var(--text);text-align:left;min-width:0;font:inherit}
button.bench-slot{cursor:pointer}button.bench-slot[draggable="true"]{cursor:grab}.bench-slot.selected,.bench-slot.drop-target{border-color:var(--gold);box-shadow:0 0 0 1px var(--gold)}.bench-number{font-weight:700;font-size:11px;color:var(--gold)}.bench-player,.bench-stats{display:grid;gap:2px;min-width:0}.bench-player strong{font-size:12px;overflow-wrap:anywhere}.bench-player small,.bench-stats small{font-size:10px;color:var(--muted)}.bench-stats{text-align:right;font-variant-numeric:tabular-nums}.bench-stats strong{font-size:12px;color:var(--gold)}
.tactics-screen .panel-head .tactics-instructions-save{margin-left:auto;min-height:30px;padding:5px 10px}
@media(max-width:600px){.pitch-and-bench{grid-template-columns:minmax(0,1fr)}.pitch-and-bench .tactics-pitch{width:min(100%,440px)}.tactics-bench{grid-template-columns:repeat(2,minmax(0,1fr))}.bench-heading{grid-column:1/-1}}

/* All four Selection tables share the same column geometry, regardless of player names or role labels. */
.content .tactical-selection-table{table-layout:fixed;width:100%;min-width:1200px;--selection-column-scale:1}
.content .tactical-selection-table.has-market{min-width:1320px;--selection-column-scale:.92}
.content .tactical-selection-table th,.content .tactical-selection-table td{padding:5px 6px;font-size:12px;vertical-align:middle;overflow-wrap:anywhere;white-space:normal}
.content .tactical-selection-table th{font-size:10px;line-height:1.25}
.content .tactical-selection-table th:nth-child(1){width:calc(18% * var(--selection-column-scale))}
.content .tactical-selection-table th:nth-child(2){width:calc(15% * var(--selection-column-scale))}
.content .tactical-selection-table th:nth-child(3){width:calc(12% * var(--selection-column-scale))}
.content .tactical-selection-table th:nth-child(4){width:calc(3.5% * var(--selection-column-scale))}
.content .tactical-selection-table th:nth-child(5){width:calc(4% * var(--selection-column-scale))}
.content .tactical-selection-table th:nth-child(6){width:calc(7% * var(--selection-column-scale))}
.content .tactical-selection-table th:nth-child(7){width:calc(4% * var(--selection-column-scale))}
.content .tactical-selection-table th:nth-child(8){width:calc(5% * var(--selection-column-scale))}
.content .tactical-selection-table th:nth-child(9){width:calc(8% * var(--selection-column-scale))}
.content .tactical-selection-table th:nth-child(10){width:calc(3.5% * var(--selection-column-scale))}
.content .tactical-selection-table th:nth-child(11){width:calc(3.5% * var(--selection-column-scale))}
.content .tactical-selection-table th:nth-child(12){width:calc(3.5% * var(--selection-column-scale))}
.content .tactical-selection-table th:nth-child(13){width:calc(3.5% * var(--selection-column-scale))}
.content .tactical-selection-table th:nth-child(14){width:calc(9.5% * var(--selection-column-scale))}
.content .tactical-selection-table.has-market th:nth-child(15){width:8%}
.content .tactical-selection-table th:nth-child(n+4):nth-child(-n+14),.content .tactical-selection-table td:nth-child(n+4):nth-child(-n+14){text-align:right;font-variant-numeric:tabular-nums}
.content .tactical-selection-table td:nth-child(9),.content .tactical-selection-table th:nth-child(9){text-align:left}
.content .tactical-selection-table .pitch-position-select{width:100%;min-width:0;max-width:100%;text-overflow:ellipsis}
.available-player-count{margin:0;font-variant-numeric:tabular-nums}

/* Team instructions and a live summary of the current tactical choices. */
.team-instruction-controls{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:8px;align-items:end}.team-instruction-controls label{font-size:12px}.team-instruction-controls select{width:100%;padding:6px 8px;min-height:32px}.team-instruction-controls select:disabled{opacity:.55}
.content .tactical-approach-table{table-layout:fixed;width:100%;min-width:0}.tactical-approach-table th:first-child{width:35%}.tactical-approach-table th,.tactical-approach-table td{white-space:normal;overflow-wrap:anywhere;text-align:left}

/* Read-only club team sheets open player profiles instead of dragging players. */
button.pitch-slot[data-action="player-profile"],button.bench-slot[data-action="player-profile"]{cursor:pointer}button.pitch-slot[data-action="player-profile"]:active{cursor:pointer}.rival-match-note{margin:6px 0 10px}

/* Manager profiles and Hall of Fame use the established history and table styles. */
.club-detail-value>.btn.textlink{padding:0;text-align:left;white-space:normal}.topbar-right>[data-action="go-hall"]{white-space:nowrap}

/* Stadium condition sits above the selected stand information. */
.stadium-condition-card{border:1px solid var(--line,#36363a);border-radius:8px;padding:12px;margin-bottom:14px}.stadium-condition-heading,.stadium-condition-status,.stadium-condition-price{display:flex;justify-content:space-between;align-items:center;gap:8px}.stadium-condition-heading h3{margin:0}.stadium-condition-heading>strong{font-size:1.35rem}.stadium-condition-track{height:7px;background:#303033;border-radius:5px;overflow:hidden;margin:8px 0}.stadium-condition-track>span{display:block;height:100%;border-radius:5px}.condition-good{background:#55b6a3}.condition-fair{background:#c7a15d}.condition-poor{background:#c76871}.stadium-condition-price{margin:8px 0}.stadium-condition-card .btn{width:100%;margin-top:4px}.stadium-condition-card p{margin:6px 0 0}

/* Facility construction: compact status, clear progress, no live upgrade button. */
.facility-construction{display:grid;gap:4px;min-width:145px;text-align:left}.facility-construction strong{font-size:12px;color:#c7a15d}.facility-construction progress{display:block;width:100%;height:7px;appearance:none;border:0;border-radius:5px;overflow:hidden;background:#303033}.facility-construction progress::-webkit-progress-bar{background:#303033;border-radius:5px}.facility-construction progress::-webkit-progress-value{background:#c7a15d;border-radius:5px}.facility-construction progress::-moz-progress-bar{background:#c7a15d;border-radius:5px}

/* Stadium works use the same compact construction treatment as facilities. */
.stadium-refurbishment-facts{margin:10px 0}.stadium-project{margin:10px 0}.stand-building{border-color:#c7a15d!important}.stand-construction-label{color:#c7a15d!important;font-size:10px!important}.stadium-project-restrictions{padding-left:18px;margin:8px 0;color:var(--muted,#a5a5a5);font-size:12px;line-height:1.5}.stadium-project-restrictions li+li{margin-top:5px}

.facility-development-actions{display:flex;flex-direction:column;align-items:flex-start;gap:5px}.facility-development-actions p{margin:0}.facility-development-actions .btn{white-space:nowrap}

/* Keep facility rows compact; native tooltips escape the table scroll area. */
.facility-name[title]{cursor:help;text-decoration:underline dotted;text-decoration-color:var(--muted);text-underline-offset:3px}.facility-rules{margin:6px 0 10px;color:var(--muted);font-size:12px}.facility-rules summary{cursor:pointer;width:fit-content}.facility-rules-content{padding-top:6px;display:grid;gap:5px}.facility-rules summary:focus-visible{outline:2px solid var(--gold);outline-offset:3px}

/* Commercial reports use independent native disclosure controls, just like Facility rules. */
.commercial-report{min-width:0;max-width:100%}.commercial-report-heading{display:list-item;cursor:pointer;color:var(--muted);line-height:1.35}.commercial-report-heading h2{display:inline;color:var(--text);font-size:16px;line-height:1.35;margin-left:3px}.commercial-report-heading:focus-visible{outline:2px solid var(--gold);outline-offset:3px}.commercial-report-content{display:grid;gap:10px;min-width:0;padding-top:7px}.commercial-report:not([open])>.commercial-report-content{display:none}

/* All commercial reports use the same fixed label/value track grid. Allow
   narrow screens to scroll wide summaries while short reports remain compact. */
.commercial-report .commercial-data{table-layout:fixed;width:100%;min-width:480px}.commercial-report .commercial-data.commercial-cols-7,.commercial-report .commercial-data.commercial-cols-8{min-width:900px}.commercial-report .commercial-data th,.commercial-report .commercial-data td{white-space:normal;overflow-wrap:anywhere;text-align:left;padding:5px 7px}.commercial-report .commercial-data th{line-height:1.3}.commercial-report .commercial-data td{font-variant-numeric:tabular-nums}.commercial-report .commercial-data td:first-child strong{overflow-wrap:normal}.commercial-report .commercial-data td p{margin:2px 0 0}
@media(max-width:700px){.commercial-report .commercial-data.commercial-cols-2{min-width:0}.commercial-report .commercial-data.commercial-cols-3,.commercial-report .commercial-data.commercial-cols-4{min-width:480px}}
