:root{font-family:Inter,Segoe UI,Arial,sans-serif;color:var(--text,#e9f1ed);background:var(--canvas,#0a110f);font-synthesis:none;color-scheme:dark}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer;border:1px solid var(--border,#30473d);border-radius:9px;padding:11px 16px;background:var(--control,#1b3027);color:var(--text,#e9f1ed);font-weight:650}button:hover{border-color:var(--accent,#a4ef77)}button:disabled{opacity:.45;cursor:default}.primary{background:var(--accent,#b4f47b);color:var(--accent-ink,#14210e);border-color:var(--accent,#b4f47b)}.quiet{background:transparent}input,select{width:100%;border:1px solid var(--border,#31443b);background:var(--surface,#101e18);color:var(--text,#eff4f1);border-radius:8px;padding:12px;margin-top:7px}label{display:block;font-size:13px;color:var(--muted,#aebfb6);margin:17px 0}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(32px,5vw,64px);line-height:1.05;letter-spacing:-2px;font-weight:700}h2{font-size:23px;letter-spacing:-.5px}h3{font-size:16px}p{color:var(--muted,#9bb1a4);line-height:1.65}.eyebrow{color:var(--accent,#b4f47b);letter-spacing:3px;text-transform:uppercase;font-size:11px;font-weight:700}.muted{color:var(--muted,#8ca699)}.small{font-size:12px}.badge{display:inline-block;border:1px solid var(--border,#38533f);border-radius:99px;padding:6px 10px;font-size:11px;color:var(--accent,#b4f47b)}.brand{font-weight:750;letter-spacing:-.7px;font-size:20px;display:flex;gap:12px;align-items:center}.brand b{background:var(--accent,#b4f47b);color:var(--accent-ink,#12200d);border-radius:8px;padding:8px;font-size:18px}.topbar{border-bottom:1px solid var(--border,#26372e);display:flex;align-items:center;justify-content:space-between;padding:22px 4vw;gap:20px}.container{max-width:1400px;margin:auto;padding:40px 4vw}.hero{display:grid;grid-template-columns:1.25fr 1fr;gap:60px;padding:35px 0 45px}.hero-copy{padding:35px 0}.hero-copy p{max-width:500px}.accent{color:var(--accent,#b4f47b)}.metrics{display:flex;gap:34px;margin:35px 0}.metric strong{display:block;font-size:28px;color:#f0f6f2}.metric span{font-size:12px;color:var(--muted,#8ca699)}.panel{background:var(--surface,#111f18);border:1px solid var(--border,#293d31);border-radius:16px;padding:25px;box-shadow:0 12px 40px #0002}.panel+.panel{margin-top:20px}.tabs{display:flex;gap:8px;border-bottom:1px solid var(--border,#293d31);padding-bottom:15px;margin-bottom:20px}.tabs button{background:transparent;border-color:transparent}.tabs .active{color:var(--accent,#b4f47b);background:var(--selected,#223426)}.grid{display:grid;grid-template-columns:1.4fr 1fr;gap:24px}.workspace{display:grid;grid-template-columns:210px 1fr;min-height:calc(100vh - 80px)}aside{border-right:1px solid var(--border,#26372e);padding:30px 20px}aside button{display:block;width:100%;text-align:left;margin-bottom:8px;background:transparent;border:0;color:var(--muted,#98b2a3)}aside button.active{background:var(--selected,#203826);color:var(--accent,#b4f47b)}main{padding:32px;min-width:0}.headline{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:25px}.headline h2{margin:5px 0}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:24px}.cards .panel{margin:0;padding:20px}.cards strong{font-size:28px;display:block;margin-top:8px}.row{display:flex;align-items:center;justify-content:space-between;gap:12px}.row.wrap{flex-wrap:wrap}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:left;font-size:13px}th{color:var(--muted,#7f9a8b);font-size:11px;text-transform:uppercase;letter-spacing:1px;font-weight:500}td,th{padding:13px 9px;border-bottom:1px solid var(--border,#24362b)}tbody tr:last-child td{border:0}.mine{background:#a5df6710}.mine td:first-child{color:var(--accent,#b4f47b)}.score{font-weight:750;color:var(--accent,#d0f5b5);font-size:21px;white-space:nowrap}.fixture{padding:15px 0;border-bottom:1px solid var(--border,#293d31);display:grid;grid-template-columns:1fr 70px 1fr;gap:12px;font-size:13px;align-items:center}.fixture span:last-child{text-align:right}.fixture .score{text-align:center}.pitch{min-height:370px;background:repeating-linear-gradient(0deg,#203e2a 0,#203e2a 50px,#24462f 50px,#24462f 100px);border:1px solid #4a7152;border-radius:12px;position:relative;display:flex;flex-direction:column-reverse;justify-content:space-around;padding:22px 12px;margin-top:18px}.pitch:before{content:'';position:absolute;inset:15px;border:1px solid #86ae7455;pointer-events:none}.pitch-line{display:flex;justify-content:space-around;position:relative;gap:5px}.athlete{text-align:center;font-size:10px;max-width:80px}.athlete b{display:block;border-radius:10px 10px 4px 4px;background:#cff98c;color:#12260e;width:28px;height:30px;margin:0 auto 6px;line-height:30px}.check{width:auto;margin:0;accent-color:var(--accent,#b4f47b)}.roster td{padding:10px 6px}.roster label{margin:0;display:flex;gap:10px;align-items:center;font-size:13px;color:inherit}.position{color:var(--accent,#a4ef77);font-size:10px;border-radius:4px;background:#253e2c;padding:4px 6px}.notice{padding:15px;border:1px solid #435337;border-radius:10px;color:#bed0b3;background:var(--accent,#b4f47b)08;line-height:1.6;font-size:13px;margin:18px 0}.member{display:flex;justify-content:space-between;padding:14px 0;border-bottom:1px solid var(--border,#293d31)}.market{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.market .panel{margin:0}.footer{border-top:1px solid var(--border,#26372e);padding:20px 4vw;font-size:11px;color:#779482}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#e8f4de;color:#162713;border-radius:9px;max-width:90%;padding:14px 20px;display:none;z-index:5}#toast.show{display:block}.search{max-width:300px}.full{width:100%}.catalog-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.catalog-grid button{text-align:left}.catalog-grid small{display:block;color:#8fa697;margin-top:6px}.club-detail{margin-top:20px}.hero-visual{margin:24px 0;padding:25px;background:#122219;border:1px solid #354733;border-radius:16px}.hero-visual .pitch{min-height:220px}.hero-visual h3{margin:0}.ready{background:var(--accent,#b4f47b);color:#162710}@media(max-width:1050px){.hero{gap:30px}.grid{grid-template-columns:1fr}.market{grid-template-columns:repeat(2,1fr)}.workspace{grid-template-columns:170px 1fr}main{padding:24px}.catalog-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:720px){.hero{grid-template-columns:1fr;padding-top:0;gap:10px}.hero-copy{padding-bottom:0}.hero-visual{display:none}.workspace{display:block}aside{display:flex;overflow-x:auto;border-right:0;border-bottom:1px solid var(--border,#26372e);padding:12px}aside button{white-space:nowrap;width:auto;margin:0}main{padding:20px 14px}.cards{gap:8px}.cards .panel{padding:13px}.cards strong{font-size:20px}.headline{align-items:flex-start;flex-wrap:wrap}.topbar{padding:15px}.topbar .small{display:none}.panel{padding:18px}.market,.catalog-grid{grid-template-columns:1fr}.metrics{gap:22px}.container{padding:22px}.brand{font-size:17px}h1{letter-spacing:-1px}}
.country-field{border:1px solid var(--border,#31443b);border-radius:10px;padding:12px;margin:18px 0 8px}.country-field legend{color:var(--muted,#aebfb6);font-size:13px;padding:0 6px}.country-options{display:grid;grid-template-columns:1fr 1fr;gap:4px 14px;max-height:220px;overflow-y:auto}.country-options label{display:flex;gap:9px;align-items:center;margin:0;padding:9px 0;font-size:12px;cursor:pointer}.country-options small{color:var(--muted,#7f9a8b);margin-left:auto}.division-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 20px}.division-tabs .active{background:var(--accent,#b4f47b);color:#162710;border-color:var(--accent,#b4f47b)}.strength{display:inline-block;background:#b4f47220;color:#cdfa9d;min-width:28px;text-align:center;border-radius:5px;padding:4px;font-size:13px}.gain{color:var(--accent,#b4f47b)}.loss{color:#fda98d}#next-season{margin-left:12px}@media(max-width:480px){.country-options{grid-template-columns:1fr}.division-tabs button{padding:10px;font-size:12px}#next-season{margin:10px 0 0}}
.error{border-color:#b86850;color:#ffd1bd}.error[hidden]{display:none}
.scout-filters{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:14px}.inline-check{display:flex;gap:10px;align-items:center}[data-watch]{white-space:nowrap;font-size:12px;padding:8px}#inspect-club{margin:0}@media(max-width:800px){.scout-filters{grid-template-columns:1fr 1fr}}@media(max-width:450px){.scout-filters{grid-template-columns:1fr}}
.stadium-art{display:block;width:100%;max-width:440px;margin:8px auto}.cards>div>strong{display:block;font-size:24px;margin-top:6px}.loss{color:#fda98d}.gain{color:var(--accent,#b4f47b)}
.resume-panel{margin:24px 0}.session-choice{display:inline-flex;flex-direction:column;gap:6px;text-align:left;margin:0 12px 12px 0}.session-choice small{color:#a5b8ac}

/* Club identity is derived at render time; never persisted in career data. */
.club-label{display:inline-flex;align-items:center;gap:9px;vertical-align:middle;max-width:100%;text-align:left}
.club-label>span:last-child{overflow-wrap:anywhere}
.club-flag{display:inline-block;flex:none;width:30px;height:21px;border:1px solid #ffffff65;border-radius:2px 5px 5px 2px;background:#fff;box-shadow:0 2px 6px #0005;position:relative;vertical-align:middle}
.club-flag-large{width:60px;height:40px;border-radius:3px 8px 8px 3px}
.club-heading{display:flex;align-items:center;gap:16px;line-height:1.25}
.topbar{box-shadow:inset 0 3px var(--accent,#b4f47b)}
.mine{background:var(--selected,#203826)}
.gain{color:#b4f47b}
.fixture>span:last-child .club-label{justify-content:flex-end;text-align:right}
.catalog-grid .club-label{margin-bottom:6px}
@media(max-width:550px){.cards{grid-template-columns:1fr}.club-flag-large{width:45px;height:31px}.club-heading{gap:12px}.club-label{gap:6px}.club-flag:not(.club-flag-large){width:24px;height:17px}.headline{flex-wrap:wrap}.fixture{grid-template-columns:1fr 48px 1fr;gap:6px}}
dialog{width:min(540px,calc(100% - 24px));max-height:90vh;overflow:auto;background:var(--surface,#15181d);color:var(--text,#f0f2f5);border:1px solid var(--border,#3b4049);border-radius:16px;padding:24px;box-shadow:0 24px 90px #0009}dialog::backdrop{background:#000b}dialog .row h2{margin:0}dialog .notice{margin:16px 0}dialog strong{color:var(--accent,#b4f47b)}[data-price-cell]{min-width:185px}[data-price-cell] small{display:block;margin:5px 0;line-height:1.5}.quote-unavailable{color:var(--muted,#aab1bc)}
.match-theatre{margin:24px 0;border:1px solid var(--border,#3b4049);border-radius:16px;padding:24px;background:var(--canvas,#0b0d11);overflow:hidden}.match-clock{display:flex;justify-content:center;gap:12px;align-items:center;font-variant-numeric:tabular-nums}.match-clock b{color:var(--accent,#b4f47b);font-size:26px}.match-clock span{font-size:10px;letter-spacing:2px;color:var(--muted,#aab1bc)}.match-scoreboard{display:grid;grid-template-columns:1fr auto 1fr;gap:18px;align-items:center;margin:24px 0}.match-club{display:flex;flex-direction:column;align-items:center;text-align:center;gap:12px;min-width:0}.match-club strong{font-size:15px;overflow-wrap:anywhere}.match-score{display:flex;gap:18px;align-items:center;font-size:64px;font-weight:800;font-variant-numeric:tabular-nums;letter-spacing:-3px}.match-score span{font-size:30px;color:var(--muted,#aab1bc)}.match-progress{display:block;width:100%;height:5px;border:0;accent-color:var(--accent,#b4f47b)}.match-progress::-webkit-progress-bar{background:var(--control,#22262d);border-radius:5px}.match-progress::-webkit-progress-value{background:var(--accent,#b4f47b);border-radius:5px}.match-call{display:flex;flex-direction:column;text-align:center;gap:8px;padding:24px 8px}.match-call strong{font-size:25px;color:var(--accent,#b4f47b)}.match-call span{font-size:12px;color:var(--muted,#aab1bc)}.match-timeline{max-height:280px;overflow:auto;border-top:1px solid var(--border,#3b4049)}.match-line{display:flex;gap:16px;padding:13px 5px;border-bottom:1px solid var(--border,#3b4049)}.match-line time{min-width:32px;font-size:12px;color:var(--muted,#aab1bc)}.match-line b{font-size:13px}.match-line small{display:block;margin-top:5px;color:var(--muted,#aab1bc)}.goal-line b{color:var(--accent,#b4f47b)}.goal-moment .match-score{animation:goal-beat .8s ease-out}.goal-moment{border-color:var(--accent,#b4f47b)}@keyframes goal-beat{0%{transform:scale(.9)}45%{transform:scale(1.15)}100%{transform:scale(1)}}@media(prefers-reduced-motion:reduce){.goal-moment .match-score{animation:none}}@media(max-width:550px){.match-theatre{padding:16px 12px}.match-score{font-size:43px;gap:8px}.match-scoreboard{gap:10px}.match-club strong{font-size:12px}.match-call strong{font-size:21px}.match-clock span{letter-spacing:1px}}
.live-tactics,.penalty-choice{margin:24px 0;padding:22px;border:1px solid var(--border,#3b4049);border-radius:14px}.tactics-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(150px,1fr);gap:20px}.live-pitch{min-height:420px;padding:18px 10px;display:flex;flex-direction:column-reverse;justify-content:space-around;gap:22px;border:1px solid #71997f;border-radius:12px;background:repeating-linear-gradient(0deg,#173f2d 0 70px,#1d4833 70px 140px)}.live-pitch-line{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}.live-player{display:flex;flex-direction:column;align-items:center;gap:5px;padding:9px 6px;min-width:78px;max-width:125px;flex:1;position:relative;font-size:11px;text-align:center;background:#13271f;color:#f6f8f7;border-color:#6a8878;line-height:1.3}.live-player b{font-size:24px;font-variant-numeric:tabular-nums}.live-player .player-role{font-size:10px;letter-spacing:1px;color:#cadacf}.live-player.selected{outline:3px solid var(--accent,#b4f47b);background:var(--selected,#203826)}.live-player:disabled{opacity:.8;cursor:default}.live-bench{display:grid;grid-template-columns:1fr 1fr;gap:10px}.live-bench .live-player{max-width:none}.live-bench .live-player:disabled{opacity:.45}.empty-line{color:#c3d7cb;font-size:11px}.sub-preview{display:flex;flex-wrap:wrap;gap:12px;align-items:center;padding:18px 0;font-size:13px}.sub-preview b{color:var(--accent,#b4f47b)}.penalty-candidates{display:grid;grid-template-columns:repeat(auto-fit,minmax(100px,1fr));gap:10px;margin:18px 0}.penalty-candidates .live-player{max-width:none}.penalty-choice h2{color:var(--accent,#b4f47b)}
@media(max-width:700px){.tactics-grid{grid-template-columns:1fr}.live-bench{grid-template-columns:repeat(3,minmax(0,1fr))}.live-player{min-width:66px}.live-player b{font-size:20px}.live-tactics,.penalty-choice{padding:15px}.live-pitch-line{gap:6px}.penalty-candidates{grid-template-columns:repeat(3,minmax(0,1fr))}}
.live-player>span:last-child{overflow-wrap:anywhere;max-width:100%}

/* Original desk: persistent roster, detail tabs and grouped matchday. */
.classic-workspace{display:block;max-width:1600px;margin:auto;padding:16px}.classic-workspace>aside{position:static;width:auto;display:flex;flex-wrap:wrap;gap:4px;padding:8px;background:var(--surface);border:1px solid var(--border);border-radius:6px}.classic-workspace>aside button{width:auto;margin:0;padding:9px 13px;border-radius:3px}.classic-workspace>main{min-width:0;padding:18px 0}.classic-workspace .headline{padding:16px;border-top:4px solid var(--club-first);background:var(--surface);margin-bottom:14px}.classic-workspace>main>.cards{display:none}.classic-desk{display:grid;grid-template-columns:minmax(340px,42%) minmax(0,1fr);gap:16px;align-items:start}.classic-roster{position:sticky;top:12px;padding:12px;min-width:0}.classic-roster h2{font-size:18px}.classic-roster table{font-size:13px;width:100%}.classic-roster th,.classic-roster td{padding:7px 5px;white-space:nowrap}.classic-roster tbody+tbody{border-top:2px solid var(--accent)}.classic-roster td button{padding:2px 0;border:0;background:transparent;text-align:left;font-size:13px;color:inherit}.classic-roster .selected-player{background:var(--selected);outline:1px solid var(--accent);outline-offset:-1px}.classic-roster small{font-size:11px}.classic-detail{min-width:0}.classic-detail .grid{grid-template-columns:1fr}.classic-detail .panel{padding:18px}.classic-tabs{display:flex;flex-wrap:wrap;gap:4px;border-bottom:1px solid var(--border);padding-bottom:8px;margin-bottom:14px}.classic-tabs button{border-radius:4px;padding:8px 13px}.classic-tabs .active{background:var(--accent);color:var(--accent-ink)}.player-facts{display:grid;grid-template-columns:1fr 1fr;gap:15px;border:1px solid var(--border);padding:18px}.player-facts dd{margin:0;font-weight:bold}.classic-match-area{margin-top:18px}.round-board{padding:16px;border:1px solid var(--border);background:var(--surface);margin:16px 0}.round-board fieldset{border:1px solid var(--border);margin:8px 0;padding:10px}.round-board legend{color:var(--accent);font-weight:bold}.round-game{display:grid;grid-template-columns:minmax(0,1fr) 64px minmax(0,1fr) minmax(100px,1fr);gap:10px;align-items:center;padding:6px}.round-game .club-label{font-size:13px}.round-game>small{color:var(--accent)}.classic-auction{border:2px solid #e2c65a;background:#29270f;color:#fff4b5;padding:24px}.classic-auction h3{border-bottom:1px solid #e2c65a;padding-bottom:14px;font-size:20px}.classic-auction p{color:#fff4b5}
@media(max-width:1000px){.classic-desk{grid-template-columns:1fr}.classic-roster{position:static}.round-game{grid-template-columns:minmax(0,1fr) 46px minmax(0,1fr)}.round-game>small{grid-column:1/-1}.classic-workspace{padding:8px}.classic-workspace>aside{overflow:visible}.classic-workspace>aside button{font-size:12px;padding:7px}.classic-roster .table-wrap{max-height:430px;overflow:auto}}

.original-menu{display:flex;flex-wrap:wrap;align-items:center;gap:4px;background:var(--surface);border:1px solid var(--border);padding:6px;border-radius:4px}.original-menu details{position:relative}.original-menu summary{padding:9px 14px;cursor:pointer;font-weight:700;list-style:none}.original-menu details[open]>div{position:absolute;top:100%;left:0;z-index:5;min-width:220px;background:var(--surface);border:1px solid var(--border);padding:7px;box-shadow:0 8px 24px #0008}.original-menu details button{display:block;width:100%;text-align:left;border:0}.original-menu>button{margin-left:auto}.opponent-banner{background:var(--selected);border-left:4px solid var(--accent);padding:15px}.auction-profile{display:grid;grid-template-columns:2fr 1fr;gap:24px}.sub-list-layout .live-pitch{background:var(--selected);padding:10px;min-height:0}.sub-list-layout .live-pitch:before,.sub-list-layout .live-pitch:after{display:none}.sub-list-layout .live-pitch-line{display:block;padding:0;min-height:0}.sub-list-layout .live-player{display:grid;grid-template-columns:40px 35px 1fr;width:100%;max-width:none;text-align:left;padding:7px 10px;margin:2px 0;min-height:0;border-radius:2px}.sub-list-layout .live-player>b{grid-column:2;grid-row:1}.sub-list-layout .live-player>span:last-of-type{grid-column:3;grid-row:1}.sub-list-layout .live-bench{display:block}.sub-list-layout .tactics-grid{grid-template-columns:1.3fr 1fr}.sub-list-layout{border:2px solid var(--border);padding:18px}.sub-list-layout>div:first-child{border-bottom:2px solid var(--accent);padding-bottom:10px}
@media(max-width:650px){.auction-profile,.sub-list-layout .tactics-grid{grid-template-columns:1fr}.original-menu summary{padding:7px 9px;font-size:13px}.classic-roster td,.classic-roster th{font-size:12px}.original-menu>button{margin-left:0}}

.country-flag{width:42px;height:28px;object-fit:fill;vertical-align:middle;border:1px solid var(--border);margin-right:8px}.country-heading{display:flex;align-items:center}.round-game>[data-round-club]{padding:6px;border:1px solid;border-radius:2px}.round-game>[data-round-club] .club-label{color:inherit}

#auction-window{width:min(900px,94vw);max-height:88vh;overflow:auto;border-radius:5px}#auction-window::backdrop{background:#000b}

body:has(.classic-workspace) .topbar{padding:10px 20px}.classic-workspace .headline{padding:10px 14px}.classic-workspace .headline h2{font-size:22px;margin:6px 0}.classic-workspace .headline .club-flag-large{width:48px;height:32px}.classic-roster th,.classic-roster td{padding:4px 5px;line-height:1.3}.classic-roster td button{padding:1px 0;line-height:1.3}.classic-roster .row{margin-bottom:6px}

#match-decision-window{width:min(1000px,96vw);max-height:92vh;overflow:auto;background:var(--surface);color:var(--text);border:2px solid var(--accent);border-radius:6px;padding:20px}#match-decision-window::backdrop{background:#000b}#match-decision-window>.row:first-child{border-bottom:1px solid var(--border);padding-bottom:12px}#match-decision-window .live-tactics{margin:12px 0}#match-decision-window .live-pitch{min-height:360px}.scout-pages{margin:14px 0}.scout-pages span{font-size:13px}@media(max-width:650px){#match-decision-window{padding:12px}#match-decision-window h2{font-size:17px}}

#match-decision-window .sub-list-layout .live-pitch{display:block;min-height:0;background:var(--selected);padding:6px}#match-decision-window .sub-list-layout .live-pitch-line{display:block;margin:0;padding:0;min-height:0}#match-decision-window .sub-list-layout .live-player{padding:5px 8px;line-height:1.25;font-size:13px}#match-decision-window .sub-list-layout h4{font-size:13px;margin:6px 0}#match-decision-window .sub-list-layout p{font-size:12px;margin:8px 0}#match-decision-window .sub-list-layout{padding:12px}#match-decision-window>.notice{margin:8px 0;padding:8px 12px;font-size:13px}

#match-decision-window .match-decision-actions{display:flex;gap:12px;align-items:center;margin:10px 0}#match-decision-window .match-decision-actions>.notice{flex:1;margin:0;padding:9px 12px;font-size:13px}#match-decision-window .penalty-actions{display:block}#match-decision-window .sub-list-layout .live-player{padding:3px 8px}#match-decision-window .sub-list-layout .live-player>b{font-size:15px;line-height:18px}@media(max-width:650px){#match-decision-window .match-decision-actions{flex-wrap:wrap}}

.club-crest{object-fit:contain;border:0;background:transparent}.coach-morale{max-width:280px;margin-top:12px}.coach-morale .row{margin:0;gap:18px;font-size:13px}.coach-morale meter{width:100%;height:24px}.coach-morale small{font-size:11px;color:var(--muted)}#auction-result-window,#coach-offer-window{background:var(--surface);color:var(--text);border:2px solid var(--accent);border-radius:6px;width:min(650px,94vw);padding:24px;max-height:90vh;overflow:auto}#auction-result-window::backdrop,#coach-offer-window::backdrop{background:#000b}.auction-outcome{font-size:19px;line-height:1.8}#test-sound{margin-bottom:12px}

.discipline-status{display:block;color:#ff9e9e;font-size:11px;margin-top:3px}.auction-budget{border-color:#e2c65a;color:inherit}.auction-budget p{margin:6px 0 0}.match-line.discipline{border-left:3px solid #f45d65;padding-left:10px}

/* During a round the club desk remains available again after settlement. */
.live-workspace>main>.headline,.live-workspace>main>.classic-desk{display:none}
.live-workspace>main{padding:8px 0}.live-workspace .classic-match-area{margin:0}
.live-workspace .classic-match-area>.panel{padding:12px}
.live-workspace .match-theatre{margin:8px 0;padding:10px}
.live-workspace .match-scoreboard{padding:4px;gap:8px}
.live-workspace .match-clock{margin:0}.live-workspace .match-club img{height:32px;width:36px}
.live-workspace .match-call{padding:8px;margin:4px 0;min-height:0}
.live-workspace .match-timeline{max-height:65px;overflow:auto}
.live-workspace .match-theatre>p{display:none}
.live-workspace .round-board{margin:8px 0;padding:8px;display:grid;grid-template-columns:1fr 1fr;gap:4px 10px}
.live-workspace .round-board>.row{grid-column:1/-1}.live-workspace .round-board h3{margin:0;font-size:14px}
.live-workspace .round-board fieldset{margin:0;padding:3px;min-width:0}
.live-workspace .round-game{padding:3px;gap:5px;grid-template-columns:minmax(0,1fr) 42px minmax(0,1fr) minmax(70px,1fr)}
.live-workspace .round-game .club-label,.live-workspace .round-game>small{font-size:11px}
.live-workspace .round-game img{width:18px;height:18px}
@media(max-width:750px){.live-workspace .round-board{grid-template-columns:1fr}.live-workspace .round-game{grid-template-columns:minmax(0,1fr) 42px minmax(0,1fr)}.live-workspace .round-game>small{grid-column:1/-1}}

.live-workspace .round-game>span{padding:1px;line-height:18px}.live-workspace .round-game{padding:1px}
.live-workspace .match-scoreboard{margin:2px 0}.live-workspace .match-club{gap:2px}
.live-workspace .match-score{font-size:38px}.live-workspace .match-call strong{font-size:18px}
.live-workspace .match-call{gap:2px;padding:3px}.live-workspace .match-timeline{max-height:32px}
.live-workspace .match-line{padding:3px}.live-workspace .match-line small{display:none}
.live-workspace .classic-match-area>.panel>.row>h2{margin:0;font-size:18px}
.live-workspace .classic-match-area>.panel>button{padding:5px 12px}
.live-workspace .classic-match-area>.panel>.row:last-child{margin-top:5px}
.live-workspace .round-board fieldset legend{font-size:12px}

@media(min-width:900px){
body:has(.live-workspace) .topbar{height:40px;padding:4px 16px}
.live-workspace{padding:6px 12px}.live-workspace .original-menu{padding:2px}.live-workspace .original-menu summary{padding:5px 10px}.live-workspace .original-menu>button{padding:5px 10px}
.live-workspace .match-theatre{padding:5px;margin:4px 0}.live-workspace .match-clock b{font-size:19px}.live-workspace .match-scoreboard{margin:0}.live-workspace .match-score{font-size:30px}
.live-workspace .match-club{flex-direction:row;justify-content:center}.live-workspace .match-club strong{font-size:13px}
.live-workspace .match-call{padding:1px;margin:1px}.live-workspace .match-call strong{font-size:16px}.live-workspace .match-timeline{max-height:24px}
.live-workspace .round-board{margin:4px 0;padding:4px}.live-workspace .round-board fieldset{padding:1px}.live-workspace .round-game{line-height:18px}
.live-workspace .classic-match-area>.panel>.row:last-child button{padding:6px 12px}.live-workspace .classic-match-area>.panel>.row:last-child select{padding:5px}
}

@media(min-width:900px){.live-workspace .classic-match-area>.panel{padding:7px}.live-workspace>main{padding:4px 0}.live-workspace .match-theatre{margin:2px 0}}

.craque-mark{color:#f4cf43;font-weight:bold}.starter-mark{color:var(--accent);font-size:12px}[data-open-club]{cursor:pointer}[data-open-club]:hover{text-decoration:underline}[data-open-club]:focus-visible{outline:2px solid var(--accent)}
#club-roster-dialog{width:min(1080px,96vw);max-height:90vh;overflow:auto;background:var(--surface);color:var(--text);border:2px solid var(--accent);padding:18px;border-radius:5px}#club-roster-dialog::backdrop{background:#000b}#club-roster-dialog h2{display:flex;align-items:center;gap:10px}#club-roster-dialog table{font-size:13px}#club-roster-dialog td{padding:6px}#club-roster-dialog .focused-player{outline:2px solid var(--accent);outline-offset:-2px}

.injury-status,.discipline-status,.contract-status{display:block;font-size:11px;white-space:normal}.injury-status{color:#ffb5b5}.contract-status{color:var(--muted)}.renewal-dialog{max-width:600px;width:94vw;background:var(--surface);color:var(--text);border:2px solid var(--accent);padding:22px}.renewal-dialog::backdrop{background:#000b}.compact-club-roster tbody tr{border-bottom:1px solid var(--border)}

#club-roster-dialog .compact-club-roster td{padding:4px 5px;line-height:1.2}#club-roster-dialog .compact-club-roster small{margin:0;line-height:1.2}#club-roster-dialog .compact-club-roster [data-price-cell]>b{display:inline-block;margin-right:8px}#club-roster-dialog .compact-club-roster [data-price-cell]>button{padding:4px 9px;margin:2px}#club-roster-dialog .compact-club-roster th{padding:6px 5px}

.price-inline{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}.price-inline button{margin:0;padding:4px 8px;font-size:12px}.price-inline .buy-now{font-weight:bold}

.salary-cell{white-space:nowrap}.renewal-mark{font-weight:900;color:var(--text)}.player-status{white-space:nowrap;min-width:44px}.injury-icon{display:inline-flex;align-items:center;justify-content:center;width:19px;height:19px;background:#fff;color:#d80000;border:1px solid #aaa;font-size:17px;line-height:1;vertical-align:middle;margin:0 2px}.red-card-icon{display:inline-block;width:12px;height:18px;background:#e52222;border:1px solid #8f0000;border-radius:1px;vertical-align:middle;margin:0 3px}

#club-roster-dialog{width:min(1280px,98vw);padding:14px}#club-roster-dialog>.row h2{font-size:21px;margin-bottom:6px}#club-roster-dialog>p{margin-bottom:9px;font-size:12px}.club-roster-layout{display:grid;grid-template-columns:minmax(0,2.2fr) minmax(240px,.9fr);gap:14px;align-items:start}#club-roster-dialog .compact-club-roster{table-layout:auto;font-size:12px}#club-roster-dialog .compact-club-roster th,#club-roster-dialog .compact-club-roster td{padding:3px 4px;line-height:1.2;white-space:nowrap}#club-roster-dialog .compact-club-roster td:nth-child(2){width:150px;max-width:170px}#club-roster-dialog .club-player-name{max-width:145px;overflow:hidden;text-overflow:ellipsis;vertical-align:middle;border:0;background:transparent;color:inherit;padding:1px 0;font-size:12px;text-align:left}#club-roster-dialog .price-inline{gap:3px}#club-roster-dialog .price-inline button{padding:3px 5px;font-size:11px}#club-roster-dialog .player-status{min-width:27px}#club-player-detail{position:sticky;top:0;border:1px solid var(--border);padding:12px;border-radius:5px}#club-player-detail h3{font-size:18px;margin:0 0 10px}#club-player-detail .country-heading{gap:6px;font-size:12px;margin-bottom:12px}#club-player-detail .country-heading img{width:32px;height:22px}.club-player-facts{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;font-size:12px;margin:8px 0 18px}.club-player-facts dt{color:var(--muted)}.club-player-facts dd{margin:0;text-align:right;font-weight:600;max-width:145px}#club-player-detail h4{font-size:13px;margin:16px 0 8px}@media(max-width:950px){.club-roster-layout{grid-template-columns:1fr}#club-player-detail{position:static}.club-player-facts dd{max-width:none}}

/* Actual attendance is shown only once the match is under way. */
.match-attendance{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:5px;font-size:12px;color:var(--muted);margin:2px 0;font-variant-numeric:tabular-nums}.match-attendance strong{color:var(--text)}
.round-game{grid-template-columns:52px minmax(0,1fr) 64px minmax(0,1fr) minmax(100px,1fr)}
.round-attendance{font-size:11px;text-align:right;font-variant-numeric:tabular-nums;color:var(--muted)}
.live-workspace .round-game{grid-template-columns:44px minmax(0,1fr) 42px minmax(0,1fr) minmax(70px,1fr)}
@media(max-width:750px){.live-workspace .round-game{grid-template-columns:44px minmax(0,1fr) 42px minmax(0,1fr)}.match-attendance{font-size:11px}}

.match-revenue{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:5px;font-size:12px;color:var(--muted);margin:2px 0;font-variant-numeric:tabular-nums}.match-revenue strong{color:var(--text)}
.round-detail{display:flex;align-items:center;gap:6px;min-width:0}.round-gate{white-space:nowrap;font-variant-numeric:tabular-nums;color:var(--muted)}.round-event{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:750px){.match-revenue{font-size:11px}.round-detail{justify-content:space-between}}

.live-workspace .classic-match-area>.panel>p:last-child{margin-bottom:0}

.cup-panel{min-width:0}.cup-panel>.row h2{margin-bottom:0}.cup-follow{display:flex;align-items:center;gap:12px;font-size:12px;margin:12px 0}.cup-follow select{width:auto;max-width:270px;margin:0;padding:7px}.cup-bracket-hint{margin:6px 0 12px;line-height:1.5}.cup-stage-nav{display:flex;gap:5px;overflow:auto;padding:2px 0 9px}.cup-stage-nav button{padding:6px 9px;font-size:11px;white-space:nowrap}.cup-viewport{height:440px;max-height:62vh;overflow:auto;border:1px solid var(--border);border-radius:8px;background:var(--canvas);overscroll-behavior:contain}.cup-canvas{position:relative}.cup-headers{position:sticky;top:0;height:56px;background:var(--surface);z-index:3;border-bottom:1px solid var(--border)}.cup-stage-head{position:absolute;top:8px;width:224px;display:grid;gap:2px}.cup-stage-head b{font-size:13px}.cup-stage-head small{font-size:10px;color:var(--muted)}.cup-stage-head::after{content:'→';position:absolute;right:-36px;top:5px;color:var(--muted)}.cup-stage-head:last-child::after{display:none}.cup-links{position:absolute;left:0;top:56px;pointer-events:none}.cup-links path{fill:none;stroke:var(--muted);stroke-width:1.4;stroke-linejoin:round;opacity:.6}.cup-links path.is-focused{stroke:var(--accent);stroke-width:3;opacity:1}.cup-node{position:absolute;width:224px;height:82px;border:1px solid var(--border);background:var(--surface);border-radius:7px;padding:7px;overflow:hidden}.cup-node.is-focused{outline:2px solid var(--accent);outline-offset:1px}.cup-node.is-pending{border-style:dashed;color:var(--muted);background:var(--canvas)}.cup-team{display:grid;grid-template-columns:minmax(0,1fr) 30px;align-items:center;min-height:26px;gap:5px;font-size:12px}.cup-team .club-label,.cup-node-champion .club-label{gap:5px;min-width:0;font-size:11px}.cup-team .club-label>span:last-child,.cup-node-champion .club-label>span:last-child{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cup-team img,.cup-team svg,.cup-node-champion img,.cup-node-champion svg{width:22px;height:19px;flex-shrink:0}.cup-team b{text-align:right}.cup-team.is-winner{color:var(--accent);font-weight:700}.cup-team.is-eliminated{opacity:.55}.cup-node small{display:block;font-size:10px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:3px}.cup-node-bye,.cup-node-qualified{display:flex;flex-direction:column;justify-content:center}.cup-node-champion{border:2px solid var(--accent);display:flex;flex-direction:column;justify-content:center;gap:9px}.cup-winner-caption{font-size:10px;font-weight:750;letter-spacing:1.5px;color:var(--accent)}.cup-pending-team{font-size:11px;line-height:24px}.cup-results-list{margin-top:15px}.cup-results-list summary{cursor:pointer;font-weight:650}.cup-results-list h3{margin-top:18px}.cup-bracket-dialog{width:96vw;max-width:1600px;height:94vh;max-height:94vh;padding:20px;border:1px solid var(--border);border-radius:12px;color:var(--text);background:var(--surface)}.cup-bracket-dialog>.row h2{margin:0}.cup-bracket-dialog::backdrop{background:#000b}.cup-bracket-dialog .cup-viewport{height:calc(94vh - 185px);max-height:none}.cup-bracket-dialog .cup-follow{margin:10px 0}.cup-bracket-dialog .cup-bracket-hint{margin-bottom:7px}
@media(max-width:700px){.cup-panel{padding:12px}.cup-follow{align-items:flex-start;flex-direction:column;gap:5px}.cup-follow select{max-width:100%;width:100%}.cup-bracket-dialog{padding:12px}.cup-bracket-dialog .cup-viewport{height:calc(94vh - 245px)}.cup-viewport{height:380px}}

.cup-bracket-dialog[open]{display:flex;flex-direction:column;overflow:hidden}.cup-bracket-dialog>.row,.cup-bracket-dialog>.cup-follow,.cup-bracket-dialog>.cup-bracket-hint{flex-shrink:0}.cup-bracket-dialog>.cup-bracket-shell{display:flex;flex-direction:column;flex:1;min-height:0}.cup-bracket-dialog .cup-stage-nav{flex-shrink:0}.cup-bracket-dialog .cup-viewport{flex:1;min-height:0;height:auto}
