/* Final host integration of the supplied ERA XI component typography and layout. */
:root{--font:Era,'Pretendard','Malgun Gothic',system-ui,sans-serif;--heading-font:var(--font);--number:Bahnschrift,Arial,var(--font);--game-font:var(--font);--game-display:var(--number);--line-soft:var(--theme-line-soft);--panel-raised:var(--theme-panel-raised)}
body,button,input,select,textarea,dialog{font-family:var(--font);font-size:14px;line-height:1.5}
button,input,select,textarea{font-synthesis:none}
body{font-variant-numeric:tabular-nums}
:root .game-shell{font-size:14px;--rail:104px}
:root .game-shell .page-title h1{font-size:32px;line-height:1.2;letter-spacing:-1px}
:root .game-shell .page-title p{font-size:13px;line-height:1.5}
:root .game-shell .page-title .eyebrow{font-size:12px;letter-spacing:1.5px}
:root .game-shell .nav-link{font-size:14px}
:root .game-shell :is(.btn,input,select){font-size:13px;min-height:34px}
:root .game-shell .section-heading h2,:root .game-shell .command-heading h2{font-size:17px}
:root .game-shell :is(.player-cell,.player-status,.position-tag,.filters select,.filters input){font-size:14px}
:root .game-shell :is(.squad-table,.market-table) td{font-size:14px;height:44px;padding:5px 8px}
:root .game-shell :is(.squad-table,.market-table) th{font-size:13px;height:42px;padding:4px 8px}
:root .game-shell .squad-table .player-cell{height:auto;min-height:32px}
:root .game-shell .player-cell>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
:root .game-shell .filters{flex-wrap:wrap;gap:8px;padding:10px 12px;flex-shrink:0}
:root .game-shell .filters .player-search{flex:1 1 160px;min-width:140px}
:root .game-shell .filter-count{font-size:12px}
:root .game-shell .squad-layout{grid-template-columns:minmax(0,1.45fr) minmax(350px,1fr)}
:root .game-shell .squad-list{min-width:0}
:root .game-shell .squad-table-scroll{min-height:0;overflow:auto}
:root .game-shell .squad-detail{overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--theme-accent-deep) transparent}
:root .game-shell .squad-profile{flex:0 0 170px}
:root .game-shell .squad-profile .profile-face{height:170px}
:root .game-shell .squad-profile h2{font-size:28px;overflow-wrap:anywhere}
:root .game-shell .profile-rating strong{font-family:var(--number)}
:root .game-shell .squad-detail .career-strip{gap:12px;flex-wrap:wrap;font-size:13px}
:root .game-shell .profile-attribute-views{flex:1 0 auto}
:root .game-shell .profile-attribute-list>div{min-height:31px;font-size:13px}
:root .game-shell .profile-attribute-list b{font-size:15px}
:root .game-shell .rating-legend{margin:4px 0 10px;padding:8px 0;font-size:12px;flex-shrink:0}
:root .game-shell .profile-detail-action{margin-top:14px}
:root .game-shell .market-layout{grid-template-columns:minmax(0,1fr) 290px}
:root .game-shell .market-board{min-width:0}
:root .game-shell .market-guide{display:flex;min-width:0;overflow-y:auto}
:root .game-shell .market-scroll{overflow:auto;min-height:0}
:root .game-shell .market-tabs{flex-wrap:wrap}
:root .game-shell .market-tabs>span{display:none}
:root .game-shell .component-table .grid-sort{border:0;min-height:30px;white-space:nowrap;font-size:13px}
:root .game-shell .component-table .ovr-number{font-family:var(--number);font-size:17px}
:root .game-shell .component-table th.grid-pinned{z-index:4}
:root .game-shell .component-table .grid-sort:focus-visible{outline-offset:-2px}
.column-options-dialog .dialog-header{display:flex;align-items:center;justify-content:space-between}
.column-options-dialog :is(.btn,.icon-btn,select){background:var(--panel-raised);color:var(--text);border:1px solid var(--line);padding:6px 10px}
.column-options-dialog .btn.primary{background:var(--gold);color:var(--theme-accent-ink)}
.column-options-dialog .column-choice input{min-height:16px}

/* Use one theme palette across every live-game panel, including the paper theme. */
:root .game-shell :is(.command-match,.command-schedule,.command-news,.command-readiness,.command-league,.club-access-board,.club-brand-board,.academy-roster,.academy-candidates,.finance-summary,.finance-ledger,.cup-draw,.cup-schedule,.league-side,.scout-report,.market-guide){background:var(--theme-panel);color:var(--theme-text);border-color:var(--theme-line);box-shadow:none}
:root .game-shell :is(.roster-summary,.filters,.list-footer,.profile-physical,.league-banner,.broadcast-score,.replay-view-options,.replay-control,.replay-match-desk,.replay-quick-stats>div){background:var(--theme-panel-raised);color:var(--theme-text);border-color:var(--theme-line)}
:root .game-shell :is(.command-heading,.command-fixture,.command-standing,.command-league .command-standing,.command-readiness>a,.command-condition,.command-availability,.career-strip,.squad-profile,.profile-attribute-list>div,.scout-row,.league-form,.facility-row,.finance-ledger tr,.market-guide .founding-facts>div){border-color:var(--theme-line-soft)}
:root .game-shell :is(.command-heading h2,.command-versus h3,.command-opponent b,.command-standing b,.command-feature p,.command-leader,.command-lineup strong,.command-lineup span,.squad-profile h2,.profile-physical span,.player-cell,.replay-now strong,.replay-match-desk h2,.replay-highlight-card strong,.broadcast-score b,.league-club,.league-season-record h2,.market-guide h2,.scout-subject h2,.facility-row h3,.academy-player b,.profile-attribute-list>div){color:var(--theme-text)}
:root .game-shell :is(.command-heading a,.command-competition span,.command-competition b,.command-feature>div>span,.command-versus small,.command-match-time,.command-round,.command-opponent small,.command-fixture-state,.command-recent h3,.command-condition>span,.command-availability,.command-lineup small,.command-standing small,.career-strip,.profile-physical small,.profile-kicker,.squad-profile p,.roster-summary,.list-footer,.finance-ledger th,.league-note,.league-legend,.league-form>span,.league-side p,.market-guide p,.founding-facts dt,.scout-policy p,.scout-known span,.facility-staff,.academy-note,.youth-row small,.feed small,.match-replay-note,.replay-now span,.replay-now>small,.replay-highlight-card small,.replay-highlight-card>i,.replay-subtitle-toggle,.broadcast-score small,.hud-save,.meta small){color:var(--theme-muted)}
:root .game-shell :is(.command-feature strong,.command-lineup>b,.command-condition>strong,.command-availability b,.command-standing>strong,.career-strip b,.profile-kicker,.league-table td:last-child b,.league-season-record>strong,.budget-number,.replay-now>b,.replay-now>time,.replay-highlight-card>time,.broadcast-score>strong,.match-stat b,.replay-control>span,.replay-match-desk>header>span,.replay-quick-stats b){color:var(--theme-accent)}
:root .game-shell :is(.squad-table tr.selected,.league-table tr.me,.command-standing.me,.scout-row.selected,.fixture-choice.selected,.replay-highlight-card.is-active,.replay-now){background:var(--theme-glow);border-color:var(--theme-accent-deep);box-shadow:inset 3px 0 var(--theme-accent)}
:root .game-shell .screen-tabs{border-color:var(--theme-line)}
:root .game-shell .screen-tabs [role=tab]{font-size:14px;color:var(--theme-muted)}
:root .game-shell .screen-tabs [role=tab][aria-selected=true]{background:var(--theme-glow);border-color:var(--theme-accent);color:var(--theme-accent)}
:root .game-shell .game-operations .dev-clock[open]{background:var(--theme-panel);color:var(--theme-text);border-color:var(--theme-line)}
:root .game-shell .player-status{background:var(--theme-glow);color:var(--theme-text);border-color:var(--theme-line)}
:root .game-shell .player-status:is(.injured,.suspended){color:var(--theme-red)}
:root .game-shell .fitness{font-size:13px;color:var(--theme-muted)}
:root .game-shell .command-news .feed,:root .game-shell .feed li{color:var(--theme-text)}
:root .game-shell .command-readiness,:root .game-shell .command-news,:root .game-shell .command-league{overflow:auto}

/* Three columns at desktop sizes, with scrolling only inside the two desks. */
:root .game-shell .era-tactics{grid-template-columns:minmax(330px,1.05fr) minmax(285px,.88fr) minmax(300px,.92fr);gap:12px;overflow:auto}
:root .game-shell .tactic-main{min-height:0}
:root .game-shell .era-tactic-pitch{min-height:0;height:100%;aspect-ratio:auto}
:root .game-shell .era-tactic-player{--face:clamp(24px,6cqh,50px);width:24cqw;max-width:108px;top:clamp(55px,var(--player-y),calc(100% - 55px))!important}
:root .game-shell .pitch-name{font-size:13px;height:26px;line-height:24px;padding:0 3px}
:root .game-shell .pitch-name b{font-size:12px}
:root .game-shell .era-tactic-player .role-select{font-size:12px;height:25px;min-height:25px;padding:1px}
:root .game-shell .pitch-position,:root .game-shell .pitch-rating{font-size:13px}
:root .game-shell .tactics-toolbar{flex-wrap:wrap;gap:6px;justify-content:flex-start}
:root .game-shell .tactics-toolbar :is(select,button){font-size:13px;padding:5px 7px}
:root .game-shell .tactic-column-head{padding:10px 12px;min-height:60px}
:root .game-shell .tactic-column-head small{font-size:11px}
:root .game-shell .tactic-column-head>span{display:none}
:root .game-shell .lineup-editor-row{min-height:52px;grid-template-columns:28px 28px minmax(0,1fr) 38px;gap:5px}
:root .game-shell .lineup-player-select select{font-size:14px;padding-left:3px}
:root .game-shell .lineup-player-select small{font-size:12px;padding-left:3px}
:root .game-shell .lineup-editor-summary span,:root .game-shell .lineup-editor-summary p{font-size:12px}
:root .game-shell .lineup-editor-summary b{font-size:23px}
:root .game-shell .lineup-editor-heading span{font-size:12px}
:root .game-shell .tactic-range input{min-height:20px;height:20px}
:root .game-shell .tactic-settings .form-label{font-size:14px;margin:0 0 15px}
:root .game-shell .instruction-board>.tactic-range{grid-template-columns:86px minmax(0,1fr) 30px;font-size:14px;min-height:42px}
:root .game-shell .tactic-detail-grid{grid-template-columns:1fr;gap:8px}
:root .game-shell .tactic-detail{grid-template-columns:1fr 130px;align-items:center;font-size:13px}
:root .game-shell .tactic-engine-note,:root .game-shell .tactic-settings .tactic-note{font-size:13px}

/* The default match view gives its full width to the pitch. Open the event desk on demand. */
:root .game-shell .match-centre{grid-template-columns:minmax(0,1fr);grid-template-rows:58px minmax(0,1fr);gap:8px;min-height:0}
:root .game-shell .match-fixture-rail{display:grid;grid-template-columns:90px minmax(0,1fr) 105px;gap:10px;padding:5px 10px;height:58px;min-height:0}
:root .game-shell .match-fixture-rail>.section-heading{padding:0;margin:0;align-self:center;border:0}
:root .game-shell .match-fixture-rail>.section-heading h2{font-size:13px}
:root .game-shell .match-fixture-rail>.section-heading span{display:none}
:root .game-shell .fixture-window{display:flex;gap:5px;margin:0;overflow-x:auto;overflow-y:hidden;min-width:0}
:root .game-shell .fixture-window .fixture-choice{flex:0 0 220px;height:44px;min-height:0;grid-template-columns:27px minmax(0,1fr) 45px 19px;padding:4px 6px;gap:5px}
:root .game-shell .fixture-window .fixture-choice small{display:none}
:root .game-shell .fixture-choice :is(b,span,strong,i){color:var(--theme-text);font-size:12px}
:root .game-shell .fixture-pagination{margin:0;padding:0;border:0;align-self:center;gap:3px}
:root .game-shell .fixture-pagination>span{font-size:12px}:root .game-shell .fixture-pagination small{display:none}
:root .game-shell .match-stage{display:flex;flex-direction:column;min-height:0;height:100%;overflow:hidden}
:root .game-shell .broadcast-score{min-height:64px;padding:5px 18px;grid-template-columns:1fr 135px 1fr;gap:12px;flex-shrink:0}
:root .game-shell .broadcast-score svg{height:35px;width:30px}
:root .game-shell .broadcast-score b{font-size:17px}
:root .game-shell .broadcast-score>strong{font-size:32px;letter-spacing:3px}
:root .game-shell .broadcast-score>strong>small{font-size:12px;letter-spacing:.6px;margin-top:1px}
:root .game-shell .broadcast-score>div>small{display:none}
:root .game-shell .match-stage>.screen-tabs [role=tab]{padding:7px 12px;min-height:36px}
:root .game-shell .match-replay-view{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);position:relative;flex:1;min-height:0;overflow:hidden;background:var(--theme-bg)}
:root .game-shell .match-replay-view .broadcast-pitch{padding:5px 8px;gap:4px;background:var(--theme-bg)}
:root .game-shell .replay-match-desk{display:none}
:root .game-shell .show-match-desk .match-replay-view{grid-template-columns:minmax(0,1fr) 300px}
:root .game-shell .show-match-desk .replay-match-desk{display:flex}
:root .game-shell .replay-view-options{padding:3px 6px;min-height:34px;font-size:12px;gap:8px;flex-wrap:wrap;backdrop-filter:none}
:root .game-shell .replay-view-options:before{display:none}
:root .game-shell .replay-view-options select{margin:0;font-size:13px;min-height:30px}
:root .game-shell .replay-view-options #replayClip{margin-right:auto;font-size:12px}
:root .game-shell .replay-view-options .btn{min-height:30px;font-size:12px;padding:3px 9px}
:root .game-shell .replay-control{min-height:41px;padding:4px 8px;gap:8px;backdrop-filter:none}
:root .game-shell .replay-control input{min-height:24px;height:24px;background:transparent}
:root .game-shell .replay-control :is(.btn,select){min-height:30px}
:root .game-shell .replay-field{min-height:180px;background:#081a14}
:root .game-shell .replay-subtitle{max-width:min(85%,760px);bottom:12px}
:root .game-shell .replay-subtitle>strong{font-size:18px}
:root .game-shell .replay-subtitle>small{font-size:13px}
:root .game-shell .replay-subtitle>span{font-size:12px;max-width:95px}
:root .game-shell .replay-highlight-card{min-height:78px;flex-shrink:0}
:root .game-shell .replay-highlight-card strong{font-size:14px}
:root .game-shell .replay-highlight-card small,:root .game-shell .replay-highlight-card>i{font-size:12px}
:root .game-shell .replay-highlight-list{scrollbar-color:var(--theme-accent-deep) var(--theme-panel)}
:root .game-shell .replay-now strong{font-size:14px}:root .game-shell .replay-now span,:root .game-shell .replay-now>small{font-size:12px}
:root .game-shell .replay-quick-stats span{font-size:12px;writing-mode:horizontal-tb}
:root .game-shell .replay-quick-stats{grid-template-columns:1fr}:root .game-shell .replay-quick-stats>div{grid-template-columns:1fr 2fr 1fr}
:root .game-shell .match-stage>.match-replay-note{font-size:12px;padding:3px 12px}
:root .game-shell .match-stage.is-expanded{position:fixed;inset:10px;z-index:80;width:auto;height:auto;box-shadow:0 0 0 20px var(--theme-bg);background:var(--theme-bg)}
:root .game-shell .is-expanded .replay-field{min-height:0}
dialog#detail{font-family:var(--font);color:var(--theme-text);background:var(--theme-panel);border-color:var(--theme-line)}
#detail .profile-top p,#detail .attribute{font-size:14px;color:var(--theme-muted)}
#detail .profile-top h2{font-size:30px}
#detail .attribute b{font-size:16px}
#detail .detail-tabs{color:var(--theme-text);border-color:var(--theme-line);font-size:15px}
#detail .detail-tabs small{font-size:12px;color:var(--theme-muted)}
#detail :is(.btn,select){font-size:14px;background:var(--theme-panel-raised);color:var(--theme-text)}
#detail .attribute{border-color:var(--theme-line-soft);min-height:35px}
#detail .rating-legend{font-size:12px}

/* Explicit positions are visible independently of the attribute tabs. */
.position-strip{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin:8px 0;font-size:12px;flex-shrink:0}
.position-strip-label{color:var(--muted)}
.position-chip{display:flex;align-items:center;gap:4px;padding:2px 7px;border:1px solid var(--line);color:var(--text)}
.position-chip small{font-size:11px}.position-chip.is-primary{color:var(--gold);border-color:var(--gold)}
.position-module{margin:16px 0;padding:14px 16px;border:1px solid var(--line);background:var(--panel-raised)}
.position-module-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.position-module-heading h3{font-size:16px}.position-module-heading>span{font-size:12px;color:var(--muted)}
.position-module-grid{display:grid;grid-template-columns:160px 1fr;gap:20px}
.position-pitch{position:relative;height:208px;background:var(--theme-pitch-a);border:1px solid var(--theme-pitch-line)}
.position-pitch-lines{position:absolute;inset:5%;width:90%;height:90%;fill:none;stroke:var(--theme-pitch-line);stroke-width:1}
.position-attack{position:absolute;top:3px;left:6px;font-size:11px;color:var(--muted)}
.position-dot,.position-ghost{position:absolute;left:calc(var(--x)*1%);top:clamp(20px,calc(var(--y)*1%),calc(100% - 16px));transform:translate(-50%,-50%)}
.position-dot{display:flex;align-items:center;gap:3px;border:1px solid var(--line);padding:1px 5px;background:var(--panel);color:var(--text);font-size:12px}
.position-dot.is-selected{outline:2px solid var(--gold);outline-offset:2px}
.position-ghost{width:3px;height:3px;border-radius:50%;background:var(--theme-pitch-line)}
.position-detail{display:flex;flex-direction:column;justify-content:space-between;gap:10px}
.position-detail span,.position-detail p{font-size:13px;color:var(--muted)}
.position-primary strong{font:24px var(--number);margin-left:12px}
.position-alternatives>div{display:flex;gap:6px;flex-wrap:wrap;margin-top:6px}
.position-alt{font-size:13px;padding:4px 8px;background:var(--panel);color:var(--text);border:1px solid var(--line)}
.position-alt small{font-size:12px}
.position-selected{display:flex;gap:12px;align-items:center}
.position-legend{display:flex;gap:15px;margin-top:12px;font-size:12px;color:var(--muted)}
.position-legend i{font-style:normal;color:var(--gold)}
.position-unknown-note{font-size:12px;margin:8px 0 0;color:var(--muted)}
.theme-choice:focus-within{outline:2px solid var(--theme-accent);outline-offset:3px}
.theme-choice>strong{font-size:16px}.theme-choice>span:not(.theme-preview),.theme-choice>small{font-size:13px}
.theme-dialog-head p,.theme-dialog-foot p{font-size:14px}
@media(min-width:901px) and (max-height:800px){
 :root .game-shell .page-title{margin-bottom:8px}
 :root .game-shell .tactic-column-head{min-height:48px;padding-block:7px}
 :root .game-shell .tactic-column-head small{display:none}
 :root .game-shell .lineup-editor-summary{padding:8px 10px}
 :root .game-shell .lineup-editor-summary p{margin:0}
 :root .game-shell .era-tactic-player{--face:26px;max-width:97px}
 :root .game-shell .tactic-save-status{font-size:12px;margin-bottom:6px}
 :root .game-shell .match-centre{grid-template-rows:52px minmax(0,1fr)}
 :root .game-shell .match-fixture-rail{height:52px}
 :root .game-shell .fixture-window .fixture-choice{height:39px}
 :root .game-shell .broadcast-score{min-height:52px}:root .game-shell .broadcast-score svg{height:30px}
 :root .game-shell .match-stage>.match-replay-note{display:none}
}
@media(max-width:1100px){
 :root .game-shell .market-layout{grid-template-columns:minmax(0,1fr)}
 :root .game-shell .market-guide{display:flex;min-height:230px}
 :root .game-shell .market-layout{overflow:auto}
 :root .game-shell .market-board{min-height:460px}
 :root .game-shell .squad-layout{grid-template-columns:minmax(0,1fr) 330px}
 :root .game-shell .replay-view-options #replayClip{display:none}
}
@media(max-width:900px){
 :root .game-shell .era-tactics{grid-template-columns:1fr;overflow:visible}
 :root .game-shell .tactic-main{height:720px;min-height:0}
 :root .game-shell .tactic-roster-panel{height:600px;min-height:0}
 :root .game-shell .tactic-settings{height:auto;min-height:0}
 :root .game-shell .era-tactic-player{max-width:125px}
 :root .game-shell .squad-layout{grid-template-columns:1fr}
 :root .game-shell .squad-table-scroll{height:460px}
 :root .game-shell .squad-detail{min-height:550px;max-height:none}
 :root .game-shell .match-centre{display:grid;height:780px;min-height:0;grid-template-rows:58px minmax(0,1fr)}
 :root .game-shell .match-stage{height:100%;min-height:0}
 :root .game-shell .match-fixture-rail{grid-template-columns:minmax(0,1fr) 105px}
 :root .game-shell .match-fixture-rail>.section-heading{display:none}
 :root .game-shell .show-match-desk .match-replay-view{grid-template-columns:1fr}
 :root .game-shell .show-match-desk .replay-match-desk{position:absolute;inset:45px 8px 51px auto;width:min(300px,80%);z-index:10;border:1px solid var(--line);box-shadow:-8px 0 24px #0005;min-height:0}
 :root .game-shell .broadcast-score b{font-size:14px}
 :root .game-shell .replay-subtitle{grid-template-columns:1fr;max-width:92%;padding:8px 10px;bottom:8px;gap:2px}
 :root .game-shell .replay-subtitle>span{display:none}
 :root .game-shell .replay-subtitle>strong{font-size:15px}
 :root .game-shell .replay-subtitle>small{font-size:12px}
 :root .game-shell .match-stage.is-expanded{inset:0;height:100dvh}
}
@media(max-width:560px){
 :root .game-shell .page-title h1{font-size:28px}
 :root .game-shell .squad-layout{gap:14px}
 :root .game-shell .replay-view-options{gap:5px}
 :root .game-shell .replay-view-options .btn{font-size:12px;padding-inline:5px}
 :root .game-shell .replay-control{gap:4px}
 :root .game-shell .replay-control .btn{padding-inline:5px;font-size:12px}
 :root .game-shell .broadcast-score{grid-template-columns:1fr 88px 1fr;padding:5px;gap:5px}
 :root .game-shell .broadcast-score>div{flex-direction:column;gap:2px}
 :root .game-shell .broadcast-score>strong{font-size:27px}
 :root .game-shell .match-centre{height:690px}
 :root .game-shell .replay-view-options select{max-width:100px}
 :root .game-shell .match-title-actions{flex-wrap:wrap}
 .position-module-grid{grid-template-columns:135px minmax(0,1fr);gap:12px}
 .position-module{padding:12px}.position-legend{flex-wrap:wrap;gap:6px 12px}
 .theme-choice{grid-template-rows:105px auto auto auto}
}
/* Text previously embedded in the old gold skin must follow the active palette. */
:root .game-shell :is(.position-tag,.roster-summary b,.squad-profile .player-status,.list-footer a,.hud-footer-brand,.tactic-save-status,.hud-location>svg){color:var(--theme-accent)}
:root .game-shell :is(.filter-count,.nav-icon,.profile-rating>span,.club-id>span,.hud-motto,.game-status .game-operations,.hud-save,.logout){color:var(--theme-muted)}
:root .game-shell #headerFunds{color:var(--theme-accent)}
:root .game-shell .filters .player-search input{background:var(--theme-panel);color:var(--theme-text);border-color:var(--theme-line)}
:root .game-shell .filters .player-search input::placeholder{color:var(--theme-muted);opacity:1}
:root .game-shell .filters .player-search>span{color:var(--theme-muted)}
:root .game-shell .squad-profile .player-status{background:var(--theme-glow);border-color:var(--theme-line)}
:root .game-shell .component-table [data-rating-tier]{font-style:normal}
:root [data-rating-tier]{font-style:normal;font-family:var(--number);font-variant-numeric:tabular-nums}
:root .game-shell .component-table td{color:var(--theme-text)}
:root .game-shell .theme-tool{width:auto;min-width:92px;padding:4px 8px}
:root .game-shell .theme-tool>span{display:inline;font-size:12px}
:root .game-shell .command-feature:before{background:linear-gradient(110deg,var(--theme-panel-raised),transparent);border-color:var(--theme-line-soft)}
:root .game-shell .command-feature>div{text-shadow:none}
:root .game-shell .command-report:before{background:var(--theme-bg);border-color:var(--theme-line-soft)}
:root .game-shell .command-feature .text-btn,:root .game-shell .command-secondary{color:var(--theme-accent)}
:root .game-shell .command-first p,:root .game-shell .command-feature strong small{color:var(--theme-muted)}
:root .game-shell .career-engine-picker select{max-width:110px}
:root .game-shell .career-engine-picker>span{font-size:12px;color:var(--theme-muted)}
:root #detail .eyebrow{color:var(--theme-accent)}
:root .game-shell .match-loading-pitch>h2{color:#f1f5ee;text-shadow:0 2px 6px #000;font-size:24px}
:root .game-shell .match-loading-pitch>p{color:#d1dcd5}
:root .game-shell .career-engine-picker{background:var(--theme-panel-raised);border-color:var(--theme-line)}
:root .game-shell .broadcast-score{min-height:52px;padding-block:3px}
:root .game-shell .match-stage>.screen-tabs [role=tab]{min-height:32px;padding-block:5px}
:root .game-shell .replay-view-options{min-height:34px;padding-block:2px}
:root .game-shell .replay-control{min-height:39px;padding-block:3px}
:root .game-shell .replay-highlight-list{flex-direction:column;overflow-y:auto;overflow-x:hidden}
.career-engine-info{position:relative;flex:none;font-size:13px}
.career-engine-info summary{list-style:none;cursor:pointer;padding:5px;color:var(--theme-muted)}
:root .game-shell .era-tactic-player{width:min(24cqw,calc((100cqw - 32px)/var(--row-columns,4)))}
:root .game-shell .era-tactic-pitch{min-height:calc(var(--pitch-rows,5)*90px)}
.career-engine-info>span{position:absolute;top:100%;right:0;z-index:20;white-space:nowrap;padding:12px;background:var(--theme-panel);color:var(--theme-text);border:1px solid var(--theme-line);box-shadow:0 5px 15px #0003}
@media(max-width:560px){.career-engine-info>span{right:-20px;max-width:260px;white-space:normal;overflow-wrap:anywhere}}
@media(max-width:700px){
 :root .game-shell{--rail:64px;min-width:0}
 :root .game-shell .sidebar{width:64px}
 :root .game-shell .nav-link{font-size:12px;min-height:52px;padding:7px 2px;gap:3px}
 :root .game-shell>.content,:root .game-shell[data-page=matches]>.content{padding:10px 8px;min-width:0;overflow-x:hidden}
 :root .game-shell .topbar{padding-inline:10px}
 :root .game-shell .page-title{flex-wrap:wrap;gap:10px}
 :root .game-shell .page-title>div{min-width:0}
 :root .game-shell .match-title-actions{display:flex;flex-wrap:wrap;gap:6px;width:100%;max-width:100%;min-width:0}
 :root .game-shell .match-title-actions>.btn{font-size:12px;min-height:32px;padding:5px 7px}
 :root .game-shell .career-engine-picker{min-width:0;max-width:100%;gap:6px}
 :root .game-shell .career-engine-picker select{max-width:102px;min-width:0}
 :root .game-shell .career-engine-picker>span{font-size:12px}
 :root .game-shell .show-match-desk .replay-match-desk{top:78px}
 :root .game-shell .replay-subtitle{max-width:95%}
 :root .game-shell .game-status{overflow:hidden}
 :root .game-shell .game-status .hud-save{display:none}
 :root .game-shell .broadcast-score b{font-size:13px;overflow-wrap:anywhere}
 :root .game-shell .broadcast-score>div{min-width:0}
 :root .game-shell .era-tactic-player{width:24cqw;max-width:94px}
 :root .game-shell .era-tactic-pitch{min-width:0}
 :root .game-shell .tactics-toolbar .segmented button{padding-inline:6px}
}
:root .game-shell .era-tactic-player{width:min(24cqw,calc((100cqw - 32px)/var(--row-columns,4)))}
@media(max-width:560px){:root .game-shell .theme-tool{min-width:32px}:root .game-shell .theme-tool>span{display:none}}
:root .game-shell[data-page=matches]>.content{padding:12px 16px}
:root .game-shell[data-page=matches] .page-title{min-height:40px;margin:0 0 8px;padding:0;align-items:center}
:root .game-shell[data-page=matches] .page-title h1{font-size:26px}
:root .game-shell[data-page=matches] .page-title p{display:none}
:root .game-shell .match-centre{grid-template-rows:minmax(0,1fr)}
:root .game-shell .match-fixture-rail{display:none}
:root .game-shell .match-centre.show-fixtures{grid-template-rows:58px minmax(0,1fr)}
:root .game-shell .show-fixtures .match-fixture-rail{display:grid}
:root .game-shell .match-stage.is-expanded>.screen-tabs,:root .game-shell .match-stage.is-expanded>.match-replay-note{display:none}
:root .game-shell .market-preview{border-bottom:1px solid var(--theme-line);padding:0 0 16px;margin-bottom:18px;flex-shrink:0}
:root .game-shell .market-preview-hero{display:flex;align-items:center;gap:12px}
:root .game-shell .market-preview-face{width:95px;height:125px;flex-shrink:0}
:root .game-shell .market-preview h2{font-size:24px;margin:5px 0}
:root .game-shell .market-preview strong{font:30px var(--number)}
:root .game-shell .market-preview strong small{font:12px var(--font)}
:root .game-shell .market-preview p{font-size:13px;margin-bottom:10px}
:root #detail:has(.player-detail-layout){width:min(1160px,calc(100vw - 36px));padding:0;max-height:calc(100dvh - 36px)}
:root #detail .close-dialog{z-index:4;right:14px;top:10px;background:var(--theme-panel-raised);color:var(--theme-text)}
.player-detail-layout{display:grid;grid-template-columns:310px minmax(0,1fr);min-height:0;max-height:calc(100dvh - 38px)}
.player-detail-identity,.player-detail-attributes{min-width:0;overflow-y:auto;scrollbar-width:thin;padding:22px}
.player-detail-identity{background:var(--theme-panel-raised);border-right:1px solid var(--theme-line)}
:root #detail .player-detail-identity .profile-top{display:flex;gap:10px;min-height:165px;align-items:center}
:root #detail .player-detail-identity .profile-top .portrait{width:110px;height:155px;flex-shrink:0}
:root #detail .player-detail-identity .profile-top h2{font-size:26px;white-space:normal;overflow-wrap:anywhere}
:root #detail .player-detail-identity .profile-top .rating{font-size:36px}
.profile-vitals{display:grid;grid-template-columns:repeat(4,1fr);text-align:center;padding:12px 0;border-block:1px solid var(--theme-line);font-size:15px}
.profile-vitals small{display:block;font-size:12px;color:var(--theme-muted)}
.profile-career{font-size:13px;color:var(--theme-muted);padding-top:12px}
.player-detail-identity .position-module{padding:12px 0;margin:12px 0;border:0;border-block:1px solid var(--theme-line)}
.player-detail-identity .position-module-heading h3{font-size:15px}
.player-detail-identity .position-module-heading>span{display:none}
.player-detail-identity .position-module-grid{grid-template-columns:108px minmax(0,1fr);gap:13px}
.player-detail-identity .position-pitch{height:155px}
.player-detail-identity .position-primary strong{font-size:20px}
.player-detail-identity .position-primary p{font-size:12px}
.player-detail-identity .position-detail span{font-size:12px}
.player-detail-identity .position-legend{flex-wrap:wrap;gap:5px 10px}
.player-detail-identity .position-legend small{display:none}
.player-detail-identity .position-unknown-note{font-size:12px}
:root #detail .profile-actions{display:flex;flex-wrap:wrap;gap:8px}
:root #detail .profile-actions label{display:flex;align-items:center;gap:8px;order:-1;width:100%}
.player-detail-attributes>header h3{font-size:24px}
.player-detail-attributes>header>p:last-child{font-size:13px;color:var(--theme-muted);margin-top:6px;max-width:90%}
.profile-attribute-groups{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.profile-attribute-groups>section:first-child{grid-row:span 2}
.profile-attribute-groups h4{font-size:16px;margin:10px 0 7px;color:var(--theme-accent)}
:root #detail .profile-attribute-groups .attribute{padding:5px 0;min-height:30px}
@media(min-width:1400px){.profile-attribute-groups{grid-template-columns:1fr 1fr 1fr}.profile-attribute-groups>section:first-child{grid-row:span 2}}
@media(max-width:700px){
 .player-detail-layout{grid-template-columns:1fr;max-height:none}
 .player-detail-identity,.player-detail-attributes{overflow:visible;padding:18px}
 .player-detail-identity .position-module-grid{grid-template-columns:120px minmax(0,1fr)}
 :root #detail .profile-top{max-width:none}
 :root #detail:has(.player-detail-layout){overflow:auto}
 .profile-attribute-groups{gap:16px}
 :root .game-shell[data-page=matches] .page-title{flex-wrap:wrap;gap:6px}
}
