/* Compact working surfaces: shared actions, content lists, and editing controls. */
@font-face{font-family:'Club Sans';src:url('assets/fonts/NotoSansSC-ui.woff2') format('woff2');font-style:normal;font-weight:100 900;font-display:swap}
:root{--work-ink:#183344;--work-muted:#536879;--work-line:#dce3e7;--work-surface:#fff;--work-soft:#edf1f3;--ink:var(--work-ink);--muted:var(--work-muted);--canvas:#f3f5f5;--paper:#fff;--blue:#285a9d;--blue-soft:#eaf0f8;--line:var(--work-line);--body-font:'Club Sans','PingFang SC','Microsoft YaHei',sans-serif;--score-font:'Manrope',var(--body-font);font-family:var(--body-font)}
body{background:var(--canvas);color:var(--work-ink);font-size:14px;line-height:1.6}
button,input,textarea,select{font-family:var(--body-font)}
button,a,input,textarea,select,summary{-webkit-tap-highlight-color:rgba(40,90,157,.12)}
input,textarea{caret-color:var(--blue)}
::selection{background:#cbdced;color:#163a5b}
input::placeholder,textarea::placeholder{color:#617487;opacity:1}
:focus-visible{outline:2px solid #285a9d!important;outline-offset:3px}
html{scrollbar-color:#a8b8c3 #f3f5f5;scrollbar-width:thin}
.btn{border-radius:9px;background:var(--blue);font-weight:600;box-shadow:none;transition:background-color .16s ease-out,color .16s ease-out,border-color .16s ease-out}
.btn:hover{transform:none;filter:none;background:#214e8a}
.btn-secondary,.btn-quiet{background:#fff;color:#28475e;border-color:var(--work-line)}
.btn-secondary:hover,.btn-quiet:hover{background:#eaf0f4;border-color:#b9cbd8}
.btn:disabled{background:#e2e8ed;color:#627586;border-color:transparent;opacity:1;cursor:default}
.text-link{color:#365e86;font-weight:500}
.panel{border-color:var(--work-line);box-shadow:none}
h2,h3{color:var(--work-ink);text-wrap:balance}
.panel-head h2,.home-section-head h2{font-weight:600;letter-spacing:0}
.topbar{background:rgba(243,245,245,.96);border-color:var(--work-line)}
.mobile-brand strong,.crumbs span:last-child{color:var(--work-ink);font-weight:600}
.crumbs,.crumb-slash{color:var(--work-muted)}
.sync-chip{color:var(--work-muted);font-size:11px}
.topbar .icon-button{background:#fff;border-color:var(--work-line);color:#3a5368}
.sidebar{background:#fff;border-color:var(--work-line)}
.sidebar .brand strong,.sidebar-team strong{color:var(--work-ink)}
.sidebar .nav-item{color:#536879}
.sidebar .nav-item.active{background:#eaf0f7;color:#234f83}
.mobile-nav{background:rgba(255,255,255,.98);border-top:1px solid #dfe5e9;box-shadow:none}
.mobile-nav-item{color:#576b7d;font-family:var(--body-font);font-size:11px;gap:5px}
.mobile-nav-item.active{color:#244f83}
.mobile-nav-item.active .icon{background:#eaf0f7;border-radius:8px;stroke-width:1.9}
.skip-link{position:fixed;top:8px;left:8px;z-index:150;padding:10px 16px;background:#fff;color:#183344;border-radius:8px;transform:translateY(-160%)}
.skip-link:focus{transform:none}
.page-tools{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:44px;margin:0 0 18px}
.page-tools:has(.btn:only-child){justify-content:flex-end}
.page-context{min-width:0;color:var(--work-muted);font-size:13px;line-height:1.5;font-variant-numeric:tabular-nums}
.page-tools>.btn{flex-shrink:0;min-height:44px;font-size:13px;padding:0 16px;border-radius:9px}
body[data-page=player] .page-tools,body[data-page=matchday] .page-tools{justify-content:flex-start}
.roster-tools.roster-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 12px;margin:0 0 16px;padding:0;border:0;background:none}
.roster-tools>.search-box{width:100%;min-width:0;height:46px;min-height:46px;margin:0;background:#fff;border:1px solid var(--work-line);border-radius:9px}
.roster-tools>.search-box input{width:100%;min-width:0;font:inherit;font-size:14px}
.roster-tools>.btn{min-width:104px;min-height:46px;padding:0 14px;border-radius:9px;font-size:13px}
.roster-meta{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;min-height:32px;font-size:12px;color:var(--work-muted)}
.roster-meta .roster-export{display:inline-flex;align-items:center;justify-content:flex-end;min-height:32px;margin:0;padding:0;font-size:12px}
.squad-groups{gap:14px}
.squad-group{border-radius:12px}
.squad-group{background:#fff;overflow:hidden;border:1px solid var(--work-line)}
.squad-group>header{min-height:42px;padding:10px 14px;background:#eaf0f3;color:#536879;border:0}
.squad-group>header h2{font-size:13px;font-weight:600}
.squad-member{min-height:78px;padding:14px;gap:12px;background:#fff;border-top:1px solid #e9eef1}
.squad-member:nth-child(odd){background:#f8fafb}
.squad-member .roster-avatar{width:44px;height:44px;flex-basis:44px;border-radius:9px}
.squad-member-name strong{font-size:14px;font-weight:600;color:#1e3a4e}
.squad-member-name>span{font-size:11px;color:#536879}
.squad-member-copy small{font-size:12px;margin-top:4px;color:#536879}
.balance-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:9px}
.balance-heading>.btn{min-height:40px;padding:0 14px;font-size:13px;background:#fff;color:#214d46;border:0}
.balance-heading>small{margin:0}
.balance-main>strong{display:block}
.ledger-row{grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center}
.ledger-row>.ledger-type{display:none}
.ledger-row>div{min-width:0}
.ledger-row .ledger-amount{white-space:nowrap;font-size:16px;font-variant-numeric:tabular-nums}
.auth-layout .auth-content{padding-top:20px}

/* Club photography belongs to fixtures; lists remain clear paper surfaces. */
.club-intro{border-radius:0;background:none;color:var(--work-ink);box-shadow:none;border-bottom:1px solid var(--work-line)}
.club-intro::before,.club-intro::after{display:none}
.intro-copy p,.intro-copy p>span{color:var(--work-muted)}
.intro-logo{background:#fff;border:1px solid var(--work-line);border-radius:12px}
.intro-season{background:#e7edf1;color:#28475e;border:0;border-radius:9px}
.intro-season strong{font-family:var(--score-font);font-weight:600;color:#28475e}
.fixture-feature{position:relative;isolation:isolate;overflow:hidden;background:#142e3e url('assets/club-pitch.jpg') center 54%/cover;color:#fff;border:0;border-radius:14px}
.fixture-feature::before{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(110deg,rgba(11,29,43,.94),rgba(11,29,43,.65)),linear-gradient(0deg,rgba(9,24,34,.78),transparent 60%)}
.fixture-heading h2,.fixture-team>strong,.fixture-empty h3{color:#fff;font-weight:500}
.fixture-date{background:rgba(219,234,244,.12);color:#edf3f7;border:1px solid rgba(225,238,247,.18);border-radius:6px}
.fixture-team>small,.fixture-versus{color:#d0dce5}
.fixture-fallback{background:#e6edf2;color:#385773;font-family:var(--body-font);font-size:26px;border-radius:12px}
.fixture-footer{border-color:rgba(218,232,242,.18)}
.fixture-footer>span,.fixture-schedule{color:#d0dfe9}
.home-stat-row .summary-value{color:#183344;font-weight:600}
.home-stat-row .summary-label,.home-form>span{color:#536879}
.home-form{border-color:#dce3e7}
.home-game-list,.home-leaders,.home-daily{border-color:var(--work-line)}
.home-game-opponent strong,.home-leader-person strong{color:#203d51;font-weight:600}
.home-game-score strong,.home-leader-goals{color:#285577}
.training-promo{border-radius:14px;background:linear-gradient(90deg,rgba(13,37,53,.95),rgba(13,37,53,.5)),url('assets/club-pitch.jpg') center 65%/cover}
.rank-tabs{gap:22px;border-color:var(--work-line)}
.rank-tab{color:#536879;font-size:14px;font-weight:500}
.rank-tab.active{color:#234f83;box-shadow:inset 0 -2px #285a9d}
.rank-feature{border-radius:14px}
.feature-person>strong{font-family:var(--body-font);font-weight:600}
.feature-kicker{font-size:13px;font-weight:500}
.season-table{border-radius:12px;overflow:hidden}
.season-table th{background:#203e52;color:#e0e9ef;font-weight:500;border:0}
.season-table td{border-color:#e4eaee}
.season-table tr:nth-child(even){background:#f5f8fa}
.season-table .leading-row{background:#eaf0f6}
.ranking-player strong{color:#1e3b50;font-weight:600}
.ranking-player small,.secondary-score{color:#536879}
.standing-rank,.standing-rank.top-rank{color:#526c7f}
.standing-value{color:#244f78;font-weight:600}
.ranking-shirt{background:#e4ebf1;color:#42637d;clip-path:none;border-radius:6px}
.moment-card,.honor-card,.ledger-list,.player-history,.team-cover{border-radius:14px}
.moment-card p{color:#29485b;line-height:1.9}
.moment-meta,.moment-tag{color:#536879}
.honor-icon{background:#f5f0e5;color:#79613a;border-color:#e8deca}
.honor-card h3{color:#253f51;font-weight:600}
.balance-card{background:#1e3e50;border-radius:14px}
.balance-main small,.balance-cell small{color:#c7d7e1}
.balance-main strong,.balance-cell strong{color:#f4f7f9}
.team-cover{background:#fff;border-color:var(--work-line)}
.team-image-settings{display:grid;grid-column:1/-1;grid-template-columns:minmax(0,1fr);gap:20px;margin:0 0 4px;padding-bottom:20px;border-bottom:1px solid #dce5eb}
.team-image-setting{min-width:0}
.team-image-label{margin-bottom:8px;font-size:13px;font-weight:500;color:#435e73}
.team-image-preview{position:relative;height:112px;overflow:hidden;border-radius:8px;background:#edf3f7}
.team-image-preview>img{display:block;width:100%;height:100%;object-fit:cover}
.team-image-preview.logo-preview>img{padding:8px;object-fit:contain;background:#fff;border:1px solid #dce5eb;border-radius:8px}
.team-image-preview.cover-preview::after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,rgba(8,27,43,.12),rgba(8,27,43,.75));pointer-events:none}
.team-image-preview>span{position:absolute;bottom:12px;left:12px;right:12px;z-index:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#fff;font-size:16px;font-weight:600}
.team-image-actions{display:flex;flex-wrap:wrap;gap:2px 10px;margin-top:8px}
.team-image-actions>.btn{width:100%;min-height:40px;padding:0 8px;font-size:13px}
.team-image-actions>.text-link{min-height:36px;padding:0;font-size:12px;color:#536879}
.team-image-setting [data-branding-status]{margin:4px 0 0;font-size:12px;line-height:1.5}
.team-image-setting [data-branding-status]:empty{display:none}
.team-image-setting [hidden]{display:none!important}
.team-logo-setting{display:grid;grid-template-columns:80px minmax(0,1fr);align-items:center;gap:16px}
.team-logo-setting .logo-preview{height:80px}
.team-logo-controls{min-width:0}
.team-logo-controls .team-image-actions{margin:0;align-items:center;gap:4px 12px}
.team-logo-controls .team-image-actions>.btn{width:auto;padding:0 14px}
.team-gallery-heading{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:10px;gap:12px}
.team-gallery-heading .team-image-label{margin:0}
.team-gallery-heading>span{color:#536879;font-size:12px;font-variant-numeric:tabular-nums}
.team-cover-gallery{display:grid;gap:8px}
.team-cover-item{display:grid;grid-template-columns:64px minmax(0,1fr) auto;gap:10px;align-items:center;min-width:0;padding:6px 0;border-bottom:1px solid #e6edf1}
.team-cover-item:last-child{border-bottom:0}
.team-cover-thumb{height:46px;overflow:hidden;border-radius:5px;background:#edf3f7}
.team-cover-thumb>img{display:block;width:100%;height:100%;object-fit:cover}
.team-cover-caption{display:grid;gap:3px;min-width:0}
.team-cover-caption>strong{font-size:13px;line-height:1.3;font-weight:600;color:#28465b;white-space:nowrap}
.team-cover-caption>span{font-size:11px;line-height:1.4;color:#536879;white-space:nowrap}
.team-cover-order{display:flex;align-items:center;gap:0}
.team-cover-order>button{display:grid;place-items:center;flex:0 0 34px;width:34px;min-width:0;min-height:40px;padding:7px;border:0;border-radius:5px;color:#385b73;background:transparent;cursor:pointer}
.team-cover-order>button:disabled{color:#9aaab4;opacity:.55;cursor:default}
.team-cover-order>button:hover:not(:disabled){background:#edf3f7}
.team-cover-order>button:focus-visible{outline:2px solid #315c87;outline-offset:-2px}
.team-cover-order svg{display:block;width:20px;height:20px}
.team-cover-empty{position:relative;height:90px;overflow:hidden;border-radius:6px;background:#16364a}
.team-cover-empty>img{width:100%;height:100%;object-fit:cover;filter:brightness(.6)}
.team-cover-empty>span{position:absolute;left:12px;bottom:10px;font-size:12px;color:#fff}
.team-cover-setting>.team-image-actions{align-items:center;margin-top:12px;gap:6px 16px}
.team-cover-setting>.team-image-actions>.btn{width:auto;min-height:40px;padding:0 16px}
@media(max-width:360px){.team-logo-setting{gap:12px}.team-cover-item{grid-template-columns:52px minmax(0,1fr) auto;gap:8px}.team-cover-order>button{flex-basis:30px;width:30px;padding:5px}}
.detail-row strong{color:#28465b}
.fixture-row{border:1px solid var(--work-line);border-radius:12px}
.fixture-upcoming{border:0}
.fixture-row>.fixture-teams,.match-scoreboard>.fixture-teams{display:grid;grid-template-columns:minmax(0,1fr) minmax(54px,max-content) minmax(0,1fr);align-items:start;gap:12px;margin:20px 0}
.fixture-teams>.match-team{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:48px 42px 18px;justify-items:center;align-items:center;gap:6px;min-width:0;text-align:center}
.match-team-emblem{display:grid;place-items:center;width:48px;height:48px;border-radius:10px;background:#edf3f7;color:#365b77;font:600 22px/1 var(--body-font)}
.match-team-emblem>img{display:block;width:40px;height:40px;object-fit:contain}
.fixture-teams .match-team-name{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;width:100%;min-width:0;margin:0;color:#28475f;font-size:14px;line-height:21px;font-weight:600;text-align:center;overflow-wrap:anywhere}
.match-team-side{color:#5a7183;font-size:11px;line-height:18px}
.fixture-teams>.fixture-result{align-self:start;margin:11px 0 0;padding:0;font-size:26px;line-height:28px;text-align:center;white-space:nowrap}
.fixture-upcoming .match-team-name,.match-scoreboard .match-team-name,.match-scoreboard .fixture-result{color:#f3f7fa}
.fixture-upcoming .match-team-side,.match-scoreboard .match-team-side{color:#c6d8e4}
.match-scoreboard>.fixture-teams{margin-bottom:0}
.match-filter,.auth-tabs{background:#e8edf1;border-radius:9px;padding:4px}
.auth-tabs{display:grid;grid-template-columns:1fr 1fr;gap:4px;border:0}
.auth-tabs button{border-radius:6px;color:#536879;min-height:42px}
.auth-tabs button.active{background:#fff;color:#234f83;box-shadow:none}
.auth-content .auth-field label{font-size:13px;color:#3f5b70;font-weight:500}
.auth-content .auth-field input{background:#fff;border-color:#dce3e7;border-radius:9px;color:#28465b;height:50px;min-height:50px;font-size:16px}
.auth-content .btn{min-height:48px}

/* Only visible pieces own the drag gesture; labels and blank pitch can scroll. */
.tactics-pitch,.tactics-pitch[data-tool=run],.tactics-pitch[data-tool=pass]{touch-action:pan-y;overscroll-behavior-y:auto;cursor:default}
.tactic-routes,.tactic-routes *,.opponent-layer{pointer-events:none}
.tactics-pitch .tactic-player,.tactics-pitch[data-tool=run] .tactic-player{pointer-events:none;touch-action:pan-y}
.tactics-pitch .tactic-dot{pointer-events:auto;touch-action:none}
.tactics-pitch .tactic-player small{pointer-events:none;user-select:none}
.tactics-pitch .tactic-opponent{pointer-events:auto;touch-action:none}
.tactic-football{pointer-events:none;touch-action:pan-y}
.tactic-football>svg{pointer-events:auto;touch-action:none}
.tactics-pitch{border-color:#254d40;background-color:#396d51;box-shadow:none}
.tactics-pitch .tactic-dot{background:#f6f8fa;border-color:#dbe5ed;color:#214969;box-shadow:0 2px 4px rgba(0,0,0,.18)}
.tactics-pitch .is-keeper .tactic-dot{background:#eed69d;border-color:#f6e5bd;color:#59491e}
.tactics-pitch .tactic-player small{font-family:var(--body-font);font-weight:500;font-size:11px;background:rgba(13,39,30,.78);color:#fff;text-shadow:none;border-radius:3px;padding:1px 4px}
.tactics-pitch .tactic-opponent{background:#a44841;border-color:#f8e8e4;color:#fff}
.tactics-toolbar .pitch-views{background:#e8eef1;border-radius:8px}
.tactic-timing-modes{background:#e7edf1;border-radius:8px}
.tactic-timing-modes button{color:#3f5d74;font-weight:500}
.tactic-timing-modes button[aria-pressed=true]{background:#24465d;color:#fff}
.tactic-command-row [data-tactic-save]{background:#285a9d}
.tactic-command-row [data-tactic-save]:disabled{background:#e2e8ed;color:#627586}
.tactic-command-row .btn{font-size:13px;font-weight:500}
.playback-pair{border-color:#dce3e7;background:#fff}
.playback-pair select{color:#2c4f6a;background-color:#fff;font-family:var(--score-font)}
.tactic-time{font-family:var(--score-font);font-variant-numeric:tabular-nums;color:#536879}
.tactic-transport .studio-heading strong,.tactic-transport .studio-heading small,.tactic-transport .tactic-time,.tactic-authoring-mode{font-size:11px}
.tactic-timeline input{accent-color:#285a9d}
.tactic-studio .pitch-tools button{color:#4b6578;font-size:12px}

/* One readable list replaces unexplained numbered frame chips. */
.studio-extras{font-size:14px;color:var(--work-ink)}
.studio-extras>details>summary{font-size:14px;font-weight:600}
.motion-heading{display:flex;align-items:center;justify-content:space-between;margin:0 0 10px;font-size:12px;color:var(--work-muted)}
.frame-strip.motion-list{display:grid;gap:0;max-height:340px;overflow:auto;padding:0;border:1px solid var(--work-line);border-radius:10px;background:var(--work-surface);scrollbar-width:thin}
.motion-list>.motion-row{display:grid;grid-template-columns:32px minmax(0,1fr) auto;align-items:center;gap:10px;min-height:66px;width:100%;margin:0;padding:12px;border:0;border-bottom:1px solid #e8edf1;border-radius:0;background:#fff;color:var(--work-ink);text-align:left;font:inherit;cursor:pointer}
.motion-list>.motion-row:last-child{border-bottom:0}
.frame-strip.motion-list>.motion-row[aria-pressed=true]{background:#edf3f7;color:var(--work-ink);border-color:#cad8e3;box-shadow:none}
.motion-icon{display:grid;place-items:center;width:32px;height:32px;border-radius:7px;background:#f1f4f7;color:#537084}
.motion-icon .icon{width:19px;height:19px}
.motion-copy{min-width:0}
.motion-copy>strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:600;line-height:1.5}
.motion-copy>small{display:block;margin-top:3px;color:var(--work-muted);font-size:11px;font-variant-numeric:tabular-nums;line-height:1.5}
.motion-row .motion-edit{display:flex;align-items:center;gap:2px;font-size:11px;color:#587487}
.motion-edit>.icon{width:13px;height:13px}
.motion-number{display:flex;align-items:center;gap:8px;max-width:160px;height:44px;padding:0 10px;border:1px solid var(--work-line);border-radius:8px;background:#fff}
.motion-number>input{width:100%;min-width:0;height:42px;min-height:42px;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;color:var(--work-ink);font:inherit;font-size:16px;text-align:left}
.motion-number>span{font-size:12px;color:var(--work-muted);white-space:nowrap}
.studio-extras .frame-actions{display:flex;align-items:end;justify-content:space-between;gap:12px;margin-top:14px}
.frame-actions:has(>button:only-child){margin:0}
.frame-actions>label,.frame-hold>label{display:grid;gap:8px;font-size:12px;color:var(--work-muted)}
.frame-actions [data-frame-delete]:disabled{display:none}
.studio-extras .frame-hold{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:12px;margin-top:14px}
.frame-hold .btn{height:44px;min-height:44px;padding:0 14px;border-radius:8px;background:#fff;color:#34576d;border:1px solid var(--work-line);font-size:12px}
.frame-hold .motion-number{max-width:none}
.frame-empty{display:block;padding:16px 0;color:var(--work-muted);font-size:13px;line-height:1.7}
.run-step-editor{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:10px;margin-top:14px;padding:0 0 14px;border:0}
.run-step-editor[hidden]{display:none}
.run-step-editor>label{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:12px;color:var(--work-muted)}
.run-step-editor input{width:82px;height:44px;min-height:44px;border:1px solid var(--work-line);border-radius:8px;padding:8px 10px;background:#fff;color:var(--work-ink);font:inherit;font-size:16px}
.run-step-editor>[data-step-members]{grid-row:2;font-size:11px;color:var(--work-muted)}
.run-step-editor [data-step-delete]{grid-column:2;grid-row:1;min-height:44px;font-size:12px}
.studio-templates>[data-template-form]{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;margin:0;padding:16px 0}
.studio-templates>[data-template-form]>input{width:100%;min-width:0;height:46px;min-height:46px;padding:10px 12px;border:1px solid var(--work-line);border-radius:8px;background:#fff;color:var(--work-ink);font:inherit;font-size:16px}
.studio-templates>[data-template-form]>.btn{height:46px;min-height:46px;padding:0 12px;border:1px solid var(--work-line);border-radius:8px;background:#fff;color:#34576d;font-size:12px;white-space:nowrap}
.studio-templates .form-error{grid-column:1/-1;margin:0;font-size:12px}
.template-list>div{display:flex;align-items:center;gap:10px;padding:14px 0;border-top:1px solid var(--work-line)}
.template-list>div>span{flex:1;min-width:0}
.template-list strong{display:block;font-size:13px;line-height:1.5}
.template-list small{display:block;margin-top:3px;color:var(--work-muted);font-size:11px}
.template-list button,.template-list summary{min-height:44px;font-size:12px}
.template-list>div>[data-template-load],.template-list>div>.row-menu>summary{display:flex;align-items:center;justify-content:center;height:44px;min-height:44px;min-width:44px;margin:0;padding:0 10px;color:#365e86;font:500 12px/20px var(--body-font);letter-spacing:0;text-decoration:none}
.template-list>div>.row-menu{display:flex;align-items:center;align-self:center}
.tactics-lineup.panel{padding:16px;border-radius:12px}
.tactics-lineup .panel-head{margin-bottom:8px}
.tactics-lineup .panel-head h2,.tactic-library .panel-head h2{font-size:16px}
.tactics-lineup .lineup-slot{min-height:62px;padding:10px 0}
.tactics-lineup .lineup-number{width:34px;height:38px;font-size:15px;border-radius:7px}
.tactics-lineup .lineup-slot strong{font-size:13px}
.tactics-lineup .lineup-slot small,.lineup-replace{font-size:11px}

/* Photo editing is a compact profile row, rather than a second card. */
.avatar-picker{gap:0;margin:0 0 4px}
.avatar-picker .avatar-picker-body{gap:16px;min-height:88px;padding:0 0 16px;border:0;border-bottom:1px solid #e5ebf0;border-radius:0;background:transparent}
.avatar-picker .avatar-picker-picture{flex:0 0 64px;width:64px;height:64px;padding:0;border:1px solid #dde6ed;border-radius:50%;background:#edf2f6;cursor:pointer}
.avatar-picker .avatar-picker-picture .avatar{width:64px;height:64px;border-radius:50%;background:#edf2f6!important;color:#46677b!important;font-size:25px;font-weight:500}
.avatar-picker-actions{gap:4px 14px}
.avatar-picker .avatar-picker-actions>.btn{min-height:40px;padding:0 12px;border-color:#dbe4ec;border-radius:8px;background:#fff;color:#294c65;font-size:13px}
.avatar-picker .avatar-picker-actions>.text-link{min-height:40px;font-size:12px}
.avatar-file-status{font-size:11px}
.avatar-file-status:empty{display:none}
.modal .form-grid{gap:20px 14px}
.modal .form-field>label{font-size:12px;font-weight:500;color:#466176}
.modal .form-field .required-mark{font-size:11px;font-weight:400;color:#627586}
.modal .form-field input:not([type=checkbox]):not([type=radio]),.modal .form-field select{border-color:#dfe6ec;border-radius:8px;background:#fbfcfd;box-shadow:none}
.modal .form-field input:focus,.modal .form-field select:focus{outline:2px solid #bdd0e1;outline-offset:1px;background:#fff}
.modal{border-radius:16px;box-shadow:0 14px 48px rgba(17,37,51,.2);overscroll-behavior:contain}
.modal .modal-head{border-color:#e4e9ed}
.modal .modal-head h2{color:#183344;font-size:20px;font-weight:600}
.modal .form-field input:not([type=checkbox]):not([type=radio]),.modal .form-field select,.modal .form-field textarea{color:#28465b;background:#f9fbfc}
.modal .form-field>label,.team-role-fields legend{font-size:12px;color:#435e73}
.modal .form-actions{background:#fff;border-color:#dce3e7}
.form-actions .btn{min-height:46px;font-size:14px;font-weight:600}
.team-role-fields label{background:#f0f4f6;border:1px solid transparent;border-radius:8px;color:#415d72}
.team-role-fields label:has(input:checked){background:#eaf0f8;border-color:#adc2d9;color:#254e7a}
.team-role-fields input{accent-color:#285a9d}
.modal-close{background:#edf2f5;color:#536879}
.form-error{color:#a43e3e;line-height:1.6}
.empty-state h3{font-weight:500;color:#536879}
.tool-row-label strong,.tools-account strong{color:#244153;font-weight:500}
.tools-list,.tools-account{border-color:var(--work-line)}
.tool-row-icon,.tool-chevron{color:#567184}
.tool-row{border-color:#e5ebef}
.tools-section>h2{color:#536879}

/* The club hub is one cover and a two-column directory, with every entry in view. */
.club-hub{max-width:800px}
.hub-cover{overflow:hidden;border-radius:14px;background:#173447 url('assets/club-pitch.jpg') center 55%/cover;isolation:isolate;position:relative;color:#fff}
.hub-cover::before{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(100deg,rgba(12,31,45,.93),rgba(12,31,45,.43)),linear-gradient(0deg,rgba(10,26,38,.87),transparent 80%)}
.club-hub .hub-cover .tools-profile{min-height:158px;align-items:center;padding:28px 24px;margin:0;color:#fff;gap:18px}
.club-hub .tools-profile .tools-badge{width:64px;flex-basis:64px;height:64px;padding:8px;border-radius:12px;border:0;background:#f7f9fa}
.club-hub .tools-profile strong{font-size:25px;color:#fff;font-weight:600;line-height:1.4}
.club-hub .tools-profile small{font-size:12px;color:#d2dfe8;margin-top:10px}
.club-hub .tools-profile>.icon{width:18px;height:18px;color:#d2dfe8}
.club-hub .hub-cover .tool-feature{min-height:64px;width:calc(100% - 48px);margin:0 24px;padding:16px 0;border-top:1px solid rgba(222,235,244,.24);border-radius:0;background:none;gap:12px}
.club-hub .tool-feature .tool-feature-pitch{width:24px;height:24px;color:#d0e0eb}
.club-hub .tool-feature strong{margin:0;font-size:16px;font-weight:500;color:#fff}
.club-hub .tool-feature>.icon:last-child{color:#d0e0eb}
.club-hub .hub-directory{display:grid;grid-template-columns:1fr 1fr;gap:0;margin:24px 0;padding-bottom:20px;border-bottom:1px solid var(--work-line)}
.club-hub .tools-section{min-width:0;margin:0;padding:0 20px 0 0}
.club-hub .tools-section+section{padding:0 0 0 20px;border-left:1px solid var(--work-line)}
.club-hub .tools-section>h2{font-size:12px;font-weight:500;color:#536879;margin:0 0 8px}
.club-hub .tools-list{padding:0;border:0;border-radius:0;background:none;overflow:visible}
.club-hub .tool-row{min-height:62px;padding:14px 0;gap:10px;border:0;background:none}
.club-hub .tool-row-icon{flex-basis:20px;width:20px;height:24px;color:#4b687e}
.club-hub .tool-row-icon .icon{width:20px;height:20px}
.club-hub .tool-row-label strong{font-size:14px;font-weight:500;line-height:1.5}
.club-hub .tool-row>.tool-chevron{display:none}
.club-hub .tools-account{min-height:64px;padding:12px 0;border:0;border-radius:0;background:none;gap:14px}
.club-hub .tools-account strong{font-size:14px;font-weight:500}
.club-hub .tools-account small{font-size:12px;line-height:1.5;overflow-wrap:anywhere}
@media(max-width:360px){.club-hub .hub-cover .tools-profile{padding:24px 20px;gap:14px;min-height:146px}.club-hub .tools-profile strong{font-size:22px}.club-hub .tools-profile .tools-badge{width:56px;height:56px;flex-basis:56px}.club-hub .hub-cover .tool-feature{width:calc(100% - 40px);margin:0 20px}.club-hub .tools-section{padding-right:12px}.club-hub .tools-section+section{padding-left:12px}.club-hub .tool-row{gap:8px}.club-hub .tool-row-label strong{font-size:13px}}
@media(hover:hover){.club-hub .tool-row:hover,.club-hub .tools-account:hover{color:#285a9d;background:none}.club-hub .tool-row:hover strong,.club-hub .tools-account:hover strong{text-decoration:underline;text-underline-offset:4px}.hub-cover .tools-profile:hover,.hub-cover .tool-feature:hover{background:rgba(255,255,255,.04)}}

@media(max-width:780px){
 body:not([data-page=tactics]) .page-root{padding:8px 16px 28px}
 body:not([data-page=tactics]) .topbar{height:60px;padding:0 16px}
 .page-tools{margin-bottom:14px;gap:10px}
 .page-tools>.btn{padding:0 13px;font-size:12px}
 .club-intro{min-height:84px;margin:0 0 16px;padding:8px 0 16px;gap:14px}
 .intro-logo{width:52px;height:52px;flex-basis:52px}
 .intro-copy{padding-right:80px}
 .intro-copy p{font-size:11px;margin:0}
 .intro-season{right:0;top:calc(50% - 4px);transform:translateY(-50%);padding:6px 10px}
 .intro-season strong{font-size:18px}
 .fixture-feature{padding:16px 18px 0;border-radius:14px}
 .fixture-heading h2{font-size:16px}
 .fixture-team>strong{font-size:14px}
 .fixture-team>small{font-size:11px}
 .fixture-clubs{padding:22px 0 18px}
 .fixture-emblem{width:58px;height:58px;margin:0 0 14px}
 .fixture-versus{font-family:var(--score-font);font-size:20px;padding-bottom:30px}
 .fixture-footer{min-height:52px}
 .home-section-head h2{font-size:17px}
 .home-section-head{margin-bottom:18px}
 .home-actions{margin:12px 0 20px;gap:10px}
 .rank-tabs{margin:0 0 14px;padding-top:0}
 .rank-spotlight{margin-top:0}
 .tools-page>.tools-profile{margin-top:0}
 .tools-profile strong{font-size:21px}
 .tool-feature{min-height:86px;padding:18px 20px;background:linear-gradient(90deg,rgba(16,40,54,.95),rgba(18,45,58,.68)),url('assets/club-pitch.jpg') center 60%/cover;border-radius:12px}
 .tool-feature strong{font-size:19px}
 .tool-feature-pitch{width:30px;height:30px}
 .tools-section{margin-top:22px}
 .auth-layout{min-height:0;margin-top:0}
 .auth-layout .auth-content{padding:8px 0 0}
 .auth-content .auth-logo{width:56px;height:56px;margin:0 auto 20px}
 .auth-tabs{margin-top:0}
 .team-cover{padding:20px 16px;min-height:110px}
 .team-cover h2{font-size:22px}
 .team-cover p{font-size:12px;line-height:1.6}
 .player-profile{padding:18px 16px;gap:12px}
 .profile-main{gap:12px}
 .player-profile h2{font-size:22px}
 .player-profile .btn{min-height:40px;font-size:12px;padding:0 10px}
 .honor-grid,.moment-grid{gap:14px}
 .honor-card{min-height:160px;padding:18px;border-radius:12px}
 .tactic-library.panel{padding:16px;border-radius:12px}
 .modal{padding-right:18px;padding-left:18px}
 .modal .form-actions{margin-right:-18px;margin-left:-18px;padding-right:18px;padding-left:18px}
}
@media(prefers-reduced-motion:no-preference){.motion-row,.page-tools .btn{transition:background-color .16s ease-out,border-color .16s ease-out}}
@media(hover:hover){.motion-list>.motion-row:hover{background:#f4f7fa}.avatar-picker-picture:hover{border-color:#8eacbf}}
.motion-row:focus-visible,.avatar-picker-picture:focus-visible{outline:2px solid #315dc1;outline-offset:2px}

/* Club edition: the match is the opening scene; operational surfaces stay quiet. */
:root{--canvas:#f1f3f5;--work-ink:#172e40;--work-muted:#526579;--work-line:#dce3e9;--blue:#214e7c;--blue-soft:#e8eff6}
body{background:var(--canvas)}
.topbar{background:rgba(241,243,245,.97)}
.btn{background:#214e7c}
.btn-secondary{background:#fff;color:#274961}
.btn-quiet{background:#e8eff6;color:#274961}
.home-match-stage{position:relative;isolation:isolate;overflow:hidden;border-radius:16px;background:#16364a;color:#fff}
.home-cover-photos{position:absolute;inset:0;z-index:-2;overflow:hidden;pointer-events:none;background:#16364a}
.home-cover-photo{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;object-position:center 56%;opacity:0;transition:opacity .7s ease-in-out;user-select:none}
.home-cover-photo.is-current{opacity:1}
.home-cover-photos .home-cover-photo{top:0;height:100%;object-fit:cover;object-position:center;mask-image:none}
.home-match-stage::before{position:absolute;inset:0;z-index:-1;content:'';background:linear-gradient(180deg,rgba(7,26,43,.58),rgba(9,30,46,.12) 29%,rgba(8,27,43,.55) 56%,rgba(8,26,41,.96) 100%)}
@media(max-width:780px){.home-cover-photo{height:auto;object-fit:contain;object-position:top;mask-image:linear-gradient(#000 0%,#000 73%,transparent 100%)}.home-cover-photo[data-cover-photo="1"]{top:-14%}}
@media(prefers-reduced-motion:reduce){.home-cover-photo{transition:none}}
.club-edition .club-intro{min-height:94px;margin:0;padding:24px 26px 16px;align-items:center;gap:14px;overflow:visible;border:0;background:none;color:#fff}
.club-edition .intro-logo{width:52px;height:52px;flex-basis:52px;padding:6px;border:0;border-radius:11px;background:#f8fafb}
.club-edition .intro-team-name{display:block;color:#fff;font-size:24px;font-weight:600;line-height:1.4;overflow-wrap:anywhere}
.club-edition .intro-copy{padding-right:72px}
.club-edition .intro-copy p{margin:6px 0 0;color:#d3e1eb;font-size:12px}
.club-edition .intro-season{top:24px;right:24px;transform:none;gap:7px;padding:0;background:none;color:#d3e1eb}
.club-edition .intro-season strong{font-size:20px;color:#fff}
.club-edition .intro-season>span{font-size:11px}
.club-edition .fixture-feature{padding:20px 26px 0;margin-top:70px;border-radius:0;background:none;box-shadow:none;overflow:visible}
.club-edition .fixture-feature::before{display:none}
.club-edition .fixture-heading{gap:12px}
.club-edition .fixture-heading h2{font-size:14px;font-weight:500;color:#d3e1eb;letter-spacing:0}
.club-edition .fixture-date{padding:4px 8px;color:#e4edf4;font-size:11px;background:rgba(220,236,248,.1);border:0;border-radius:5px}
.club-edition .fixture-clubs{grid-template-columns:minmax(0,1fr) 46px minmax(0,1fr);padding:18px 0 20px;gap:12px}
.club-edition .fixture-team{position:relative;grid-template-columns:44px minmax(0,1fr);gap:4px 10px;justify-items:start;text-align:left;align-items:center}
.club-edition .fixture-emblem{grid-row:1/3;width:44px;height:44px;margin:0;padding:0}
.club-edition .fixture-fallback{font-size:23px;background:#dfe8ee;color:#325773;border-radius:9px}
.club-edition .fixture-team>strong{font-size:15px;font-weight:500;line-height:1.5;align-self:end;color:#fff}
.club-edition .fixture-team>small{font-size:11px;margin:0;color:#c7d9e7;align-self:start}
.club-edition .fixture-versus{padding:0;color:#fff;font:500 24px/1 var(--score-font);letter-spacing:-.02em}
.club-edition .fixture-footer{min-height:52px;border-color:rgba(211,231,246,.2)}
.club-edition .fixture-footer>span,.club-edition .fixture-schedule{font-size:12px;color:#d0e0ec}
.club-edition .fixture-empty{padding-bottom:22px}
.club-edition .fixture-empty h3{font-size:20px;margin:20px 0}
.club-edition .home-actions{grid-template-columns:1fr 1fr;margin:14px 0 28px;gap:12px}
.club-edition .home-actions .btn{height:48px;min-height:48px;border-radius:10px;font-size:14px}
.club-edition .home-section-head h2{font-size:17px;font-weight:600}
.club-edition .home-section-head{margin-bottom:20px}
.club-edition .home-season{padding:22px 24px;border-radius:14px;background:#fff;border:0}
.club-edition .home-stat-row .summary-item{padding:0 8px 0 0;text-align:left}
.club-edition .home-stat-row .summary-value{font:600 32px/1.15 var(--score-font);letter-spacing:-.03em;color:#24465f}
.club-edition .home-stat-row .summary-label{margin-top:8px;color:#536b7d;font-size:12px}
.club-edition .home-form{margin-top:20px;padding-top:16px;gap:10px}
.club-edition .home-form-result{width:28px;height:28px;border-radius:6px;font-size:12px}
.club-edition .home-games{margin-top:28px}
.club-edition .home-game-list{border:0;border-radius:14px;padding:0 20px;background:#fff}
.club-edition .home-game{min-height:82px;gap:16px;grid-template-columns:32px minmax(0,1fr) auto}
.club-edition .home-game-date strong{font-size:21px;color:#46637a}
.club-edition .home-game-date small{margin-top:4px}
.club-edition .home-game-opponent strong{font-size:14px}
.club-edition .home-game-score strong{font-size:26px;color:#24465f}
.club-edition .home-game-opponent small,.club-edition .home-game-score small{margin-top:5px}
.club-edition .training-promo{min-height:152px;background:linear-gradient(90deg,rgba(12,31,47,.94),rgba(12,31,47,.3)),url('assets/club-stadium-cover.jpg') center 50%/cover;border-radius:14px;padding:22px}
.club-edition .training-copy strong{font-size:24px;margin:0}
.club-edition .home-leaders{margin-top:28px}
.club-edition .home-leader-number{background:#e0e9f1;color:#42627d}
.club-edition .home-leader{min-height:76px}
.club-edition .home-daily{background:none;border:0;border-radius:0;padding:0}
.club-edition .home-daily>button{min-height:56px;border-color:#dce3e9}

/* Roster and standings use one continuous white surface per meaningful group. */
.squad-group{border:0;border-radius:13px;background:#fff}
.squad-group>header{background:#e6edf3;min-height:43px;color:#476279}
.squad-group>header h2{font-size:13px;color:#334f65}
.squad-member{min-height:80px;padding:15px 16px;border-top:1px solid #edf1f5;background:#fff}
.squad-member:nth-child(odd){background:#f9fbfc}
.squad-member .roster-avatar{width:46px;height:46px;flex-basis:46px;border-radius:10px}
.squad-member-name{gap:6px}
.squad-member-name strong{font-size:15px;font-weight:500;line-height:1.5}
.squad-member-name>span{font-size:11px}
.squad-member-age{font-family:var(--score-font);color:#4d667c}
.roster-tools>.search-box{border:0;border-radius:10px;background:#fff}
.roster-tools>.btn{border-radius:10px}
.rank-feature{background-image:url('assets/club-stadium-cover.jpg');background-position:center 42%;border-radius:15px}
.rank-feature::before{background:linear-gradient(90deg,rgba(10,28,45,.96),rgba(10,28,45,.45)),linear-gradient(0deg,rgba(9,25,41,.92),transparent)}
.rank-tab.active{color:#204b74;box-shadow:inset 0 -2px #244f78}
.season-table th{background:#24465e;color:#e1ecf4;font-size:12px}
.season-table td{height:78px}
.season-table .leading-row{background:#e7eff7}
.season-table tr:nth-child(even){background:#f4f7fa}
.season-table .leading-row:nth-child(even){background:#e7eff7}
.standing-value{color:#214e75}
.ranking-shirt{width:30px;border-radius:7px}
.auth-content .auth-logo{padding:7px;border-radius:12px;background:#fff}
.auth-tabs{background:#e2e9f0}
.auth-content .auth-field input{border:0;background:#fff;border-radius:10px}
.auth-content .auth-field input:focus{outline:2px solid #7195b6;outline-offset:1px}
.custom-formation form>div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center}
.custom-formation form .btn{white-space:nowrap;font-size:13px;padding:0 14px;min-height:46px}
.custom-formation form label{font-size:13px;font-weight:500;color:#405e76}
.formation-option[aria-pressed=true]{border-color:#6489a9;background:#eaf1f7}
.modal .form-field input:not([type=checkbox]):not([type=radio]),.modal .form-field select,.modal .form-field textarea{background:#f3f6f9;border-color:#e2e8ef;border-radius:10px}

@media(min-width:781px){
 .club-edition{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(280px,.8fr);gap:24px 30px;align-items:start}
 .club-edition .home-match-stage{grid-column:1;grid-row:1}
 .club-edition .home-actions{grid-column:1;grid-row:2;margin:0}
 .club-edition .home-layout{display:contents}
 .club-edition .home-main{grid-column:2;grid-row:1/4}
 .club-edition .home-side{grid-column:1;grid-row:3}
 .club-edition .home-match-stage .fixture-feature{margin-top:84px}
 .club-edition .home-season{padding:22px 20px}
 .club-edition .home-stat-row .summary-value{font-size:28px}
 .club-edition .home-stat-row .summary-label{font-size:11px}
}
@media(max-width:780px){
 body:not([data-page=tactics]) .page-root{padding-top:10px;padding-bottom:108px}
 body:not([data-page=tactics]) .topbar{height:62px;background:var(--canvas);border:0}
 body:not([data-page=tactics]) .topbar .icon-button{background:#fff;border:0;box-shadow:none}
 body:not([data-page=tactics]) .mobile-nav{left:12px;right:12px;bottom:calc(8px + env(safe-area-inset-bottom));width:auto;max-width:520px;margin:0 auto;min-height:64px;padding:6px 8px;border:0;border-radius:16px;background:rgba(255,255,255,.97);box-shadow:0 6px 28px rgba(16,38,60,.14)}
 body:not([data-page=tactics]) .mobile-nav-item{min-height:52px;gap:3px;font-size:11px;color:#536a7e}
 body:not([data-page=tactics]) .mobile-nav-item .icon{width:30px;height:30px;padding:5px;stroke-width:1.7;background:none;border-radius:9px}
 body:not([data-page=tactics]) .mobile-nav-item.active{color:#214e7c}
 body:not([data-page=tactics]) .mobile-nav-item.active .icon{background:#234d6f;color:#fff;stroke-width:1.8}
 .club-edition .club-intro{min-height:90px;padding:20px 20px 12px;gap:12px}
 .club-edition .intro-team-name{font-size:22px}
 .club-edition .intro-logo{width:48px;height:48px;flex-basis:48px;padding:6px}
 .club-edition .intro-season{top:22px;right:20px}
 .club-edition .intro-season strong{font-size:18px}
 .club-edition .intro-copy p{font-size:11px;margin-top:5px}
 .club-edition .fixture-feature{margin-top:54px;padding:18px 20px 0}
 .club-edition .fixture-team{grid-template-columns:36px minmax(0,1fr);gap:4px 8px}
 .club-edition .fixture-emblem{width:36px;height:36px}
 .club-edition .fixture-team>strong{font-size:13px}
 .club-edition .fixture-team>small{font-size:11px}
 .club-edition .fixture-fallback{font-size:21px;border-radius:8px}
 .club-edition .fixture-clubs{gap:8px;padding:20px 0}
 .club-edition .fixture-versus{font-size:22px}
 .club-edition .fixture-footer{min-height:48px}
 .club-edition .home-actions{margin:12px 0 24px;gap:10px}
 .club-edition .home-season{padding:20px 18px}
 .club-edition .home-section-head{margin-bottom:18px}
 .club-edition .home-stat-row .summary-value{font-size:29px}
 .club-edition .home-form{margin-top:18px;padding-top:14px}
 .club-edition .home-form>.home-form-note{display:none}
 .club-edition .home-form>span{font-size:11px}
 .club-edition .home-form-result{width:25px;height:25px;font-size:11px}
 .club-edition .home-games{margin-top:24px}
 .club-edition .home-game-list{padding:0 18px}
 .club-edition .home-game{min-height:79px;gap:12px}
 .club-edition .home-game-score strong{font-size:24px}
 .club-edition .home-side{margin-top:24px}
 .club-edition .training-promo{min-height:120px}
 .squad-groups{gap:18px}
 .squad-member-name{display:grid;gap:2px}
 .squad-member-copy small{margin-top:4px}
 .squad-member{min-height:88px}
 .auth-layout .auth-content{padding-top:10px}
 .auth-content .auth-logo{width:64px;height:64px;margin:8px auto 28px}
}
@media(max-width:360px){
 .club-edition .intro-copy{padding-right:58px}
 .club-edition .intro-team-name{font-size:20px}
 .club-edition .fixture-feature{padding-right:16px;padding-left:16px;margin-top:44px}
 .club-edition .fixture-clubs{grid-template-columns:minmax(0,1fr) 28px minmax(0,1fr);gap:6px}
 .club-edition .fixture-team{grid-template-columns:30px minmax(0,1fr);gap:3px 6px}
 .club-edition .fixture-emblem{width:30px;height:30px}
 .club-edition .fixture-team>strong{font-size:12px}
 .club-edition .fixture-versus{font-size:18px}
 .club-edition .fixture-footer>span,.club-edition .fixture-schedule{font-size:11px}
 .club-edition .home-season{padding:18px 14px}
 .club-edition .home-stat-row .summary-label{font-size:11px}
 .club-edition .home-stat-row .summary-value{font-size:26px}
 body:not([data-page=tactics]) .mobile-nav{left:8px;right:8px;padding-right:4px;padding-left:4px}
}

/* One fixed photographic backdrop and mask belongs to every route. */
html{background:#112d44;scrollbar-color:#8aa2b5 #112d44}
body{position:relative;isolation:isolate;min-height:100dvh;background:#112d44}
body::before,body::after{content:'';position:fixed;inset:0;pointer-events:none}
body::before{z-index:-2;background:#12354b var(--team-background-image,url('assets/club-stadium-cover.jpg')) center 48%/cover no-repeat}
body::after{z-index:-1;background:linear-gradient(180deg,rgba(6,24,42,.52),rgba(8,28,46,.65) 48%,rgba(7,23,40,.86))}
.app-shell,.main-area,.page-root{background:transparent}
body .topbar,body:not([data-page=tactics]) .topbar{background:rgba(9,29,47,.44);border-color:rgba(223,237,247,.14);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
.topbar .mobile-brand strong,.topbar .crumbs,.topbar .crumbs span:last-child,.topbar .crumb-slash,.topbar .sync-chip{color:#e8f1f8}
.topbar .sync-chip::before{background:#aecbdc}
body .topbar .icon-button,body:not([data-page=tactics]) .topbar .icon-button{color:#edf4f9;background:rgba(236,245,252,.12);border:1px solid rgba(231,241,249,.2)}
.topbar .season-chip{background:rgba(236,245,252,.1);border-color:rgba(231,241,249,.2);color:#e4edf5}
.sidebar{background:rgba(250,252,254,.97);border-color:rgba(223,237,247,.2)}
.page-context,.roster-meta,.roster-meta .text-link{color:#deebf5}
.roster-no-results{color:#deebf5}
.match-center>.page-tools>.text-link{color:#deebf5}
.page-tools>.btn-secondary{background:#f8fbfd}
.panel:not(.balance-card),.club-edition .home-season,.club-edition .home-game-list,.squad-group{background:rgba(252,254,255,.98)}
.panel.balance-card{background:#1e3e50}
.club-edition .home-games .home-section-head h2,.club-edition .home-leaders .home-section-head h2{color:#eef5fb}
.club-edition .home-games .home-section-head .text-link,.club-edition .home-leaders .home-section-head .text-link{color:#d2e4f3}
.club-edition .home-leader{border-color:rgba(223,237,247,.2)}
.club-edition .home-leader-rank,.club-edition .home-leader-person small,.club-edition .home-leader-goals small{color:#d0e0ec}
.club-edition .home-leader-person strong,.club-edition .home-leader-goals{color:#f0f6fb}
.club-edition .home-daily>button{color:#e3eff8;border-color:rgba(223,237,247,.2)}
.club-edition .home-daily .daily-chevron{color:#c9dfef}
.rank-tabs{padding:0 12px;border:0;border-radius:10px;background:rgba(249,252,255,.97)}
.standings-caption h2,.standings-caption>span{color:#e3eff8}
.season-table{background:#fcfeff}
.club-hub .hub-directory{padding:20px 18px;margin:20px 0 12px;border:0;border-radius:14px;background:rgba(252,254,255,.97)}
.club-hub .tools-section+section{border-color:#dce5ed}
.club-hub .tools-account{padding:14px 18px;border-radius:12px;background:rgba(252,254,255,.97)}
.club-hub .tools-account:hover{background:#fff}
.tactics-toolbar{border-radius:8px;background:rgba(249,252,255,.97)}
.tactic-studio{background:rgba(249,252,255,.97);border-radius:10px}
.tactic-library .empty-state{background:none}
body[data-page=matches] #page-root>.summary-strip{padding:18px 12px;border:0;border-radius:12px;background:rgba(252,254,255,.97)}
body[data-page=matches] #page-root>.summary-strip .summary-item{padding-bottom:0}
.match-center>.match-tabs{padding:0 14px;border-radius:10px;background:rgba(249,252,255,.97)}
.auth-layout{background:rgba(250,253,255,.97);border:0;border-radius:14px}
.auth-layout .auth-art{background-image:linear-gradient(180deg,rgba(8,26,44,.18),rgba(8,26,44,.7)),url('assets/club-stadium-cover.jpg')}
.auth-content .field-optional{margin-left:auto;color:#61778a;font-size:12px;font-weight:400}
.auth-field input[data-register-invite]{font-family:var(--score-font);letter-spacing:.12em}
.auth-content .auth-field input[data-register-invite]::placeholder{font-family:var(--body-font);letter-spacing:0}
@media(max-width:780px){
 .auth-layout{padding:20px 18px 24px;overflow:visible}
 .auth-layout .auth-content{padding:0}
 .auth-content .auth-logo{margin:0 auto 24px}
 .auth-content .auth-form{gap:18px}
 .auth-content .auth-tabs{margin-bottom:24px}
 .auth-content .auth-notice{padding-top:18px;margin-top:20px}
 body:not([data-page=tactics]) .mobile-nav{background:rgba(252,254,255,.97)}
 .club-hub .hub-directory{padding:18px 14px}
}

.studio-exports{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:16px 0;border-bottom:1px solid var(--work-line)}
.tactic-export-button{display:flex;align-items:center;justify-content:center;gap:10px;min-width:0;min-height:52px;padding:12px 14px;border:1px solid #d4e0ea;border-radius:10px;background:#fff;color:#284f6b;font:500 14px var(--body-font);cursor:pointer}
.tactic-export-button .icon{width:21px;height:21px;stroke-width:1.7}
.tactic-export-button.export-video{border-color:#214e7c;background:#214e7c;color:#fff}
.tactic-export-button:disabled{background:#e4ebf1;border-color:#e4ebf1;color:#6b7d8d;cursor:default}
.tactic-export-button:focus-visible{outline:2px solid #537ca1;outline-offset:3px}
@media(hover:hover){.tactic-export-button.export-video:hover{background:#193e65}.tactic-export-button.export-image:hover{background:#eaf1f6;border-color:#a9c1d5}}
.video-export-backdrop{position:fixed;inset:0;z-index:115;display:grid;place-items:center;padding:20px;background:rgba(5,20,34,.76);overflow:auto;overscroll-behavior:contain}
.video-export-panel{width:min(100%,460px);max-height:calc(100dvh - 40px);overflow:auto;overscroll-behavior:contain;padding:22px;border-radius:16px;background:#f8fbfd;color:#203e54;box-shadow:0 18px 60px rgba(0,0,0,.25)}
.video-export-panel>header{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:0 0 18px}
.video-export-panel h2{margin:0;font-size:18px;font-weight:600;line-height:1.5;color:#18384f}
.video-export-panel header p{margin:6px 0 0;color:#567085;font-size:12px;font-variant-numeric:tabular-nums}
.video-export-x{display:grid;place-items:center;width:44px;height:44px;flex-shrink:0;border:0;border-radius:9px;background:#e8eff5;color:#48697f;cursor:pointer}
.video-export-stage{display:grid;place-items:center;overflow:hidden;border-radius:10px;background:#102b40}
.video-export-stage canvas,.video-export-stage video{display:block;width:auto;max-width:100%;height:auto;max-height:52dvh;aspect-ratio:9/16;object-fit:contain}
.video-export-status{display:grid;gap:10px;margin:16px 0;font-size:13px;color:#395d76;font-variant-numeric:tabular-nums}
.video-export-status progress{display:block;width:100%;height:6px;appearance:none;border:0;border-radius:8px;overflow:hidden;background:#dbe5ed;accent-color:#285a84}
.video-export-status progress::-webkit-progress-bar{background:#dbe5ed;border-radius:8px}
.video-export-status progress::-webkit-progress-value{background:#285a84;border-radius:8px}
.video-export-status progress::-moz-progress-bar{background:#285a84;border-radius:8px}
.video-export-status .form-error{margin:0;font-size:13px}
.video-export-panel>footer{display:flex;gap:10px}
.video-export-panel>footer>.btn{flex:1;min-height:46px;text-decoration:none;font-size:14px}
.video-export-panel [hidden]{display:none!important}
@media(max-width:780px){.video-export-backdrop{padding:12px}.video-export-panel{padding:18px;max-height:calc(100dvh - 24px)}.video-export-stage canvas,.video-export-stage video{max-height:49dvh}}

/* The pitch stays dominant; one aligned control surface carries the editor. */
.tactics-board .tactic-studio{padding:8px 12px 0;border:0;border-radius:12px;background:#f7fafc}
.tactic-studio .tactic-transport{grid-template-columns:96px minmax(0,1fr);gap:12px}
.tactic-studio .tactic-timing-modes{gap:0;padding:2px;height:44px;background:#e6edf2;border-radius:8px}
.tactic-studio .tactic-timing-modes button{min-width:0;min-height:40px;border-radius:6px;color:#4c6579;font-size:12px}
.tactic-studio .tactic-timing-modes button[aria-pressed=true]{background:#fff;color:#183d59;box-shadow:0 1px 2px rgba(17,43,62,.12);font-weight:600}
.tactic-studio .studio-heading{padding-right:108px}
.tactic-studio .studio-heading .tactic-authoring-mode{display:none}
.tactic-studio .studio-heading small{color:#536b7e}
.tactic-studio .studio-heading strong{max-width:100%;font-weight:500}
.tactic-studio .tactic-time{color:#536b7e;letter-spacing:0}
.tactic-studio .tactic-timeline input[type=range]{appearance:none;-webkit-appearance:none;background:transparent;accent-color:#2b5b83;cursor:pointer}
.tactic-studio .tactic-timeline input[type=range]::-webkit-slider-runnable-track{height:4px;border-radius:4px;background:#cbd8e2}
.tactic-studio .tactic-timeline input[type=range]::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:16px;height:16px;margin-top:-6px;border:2px solid #f7fafc;border-radius:50%;background:#2b5b83}
.tactic-studio .tactic-timeline input[type=range]::-moz-range-track{height:4px;border-radius:4px;background:#cbd8e2}
.tactic-studio .tactic-timeline input[type=range]::-moz-range-thumb{width:12px;height:12px;border:2px solid #f7fafc;border-radius:50%;background:#2b5b83}
.tactic-studio .tactic-timeline input:disabled{opacity:.5;cursor:default}
.tactic-studio .tactic-timeline input:focus-visible{outline:2px solid #487ba4;outline-offset:1px;border-radius:6px}
.tactic-studio .tactic-command-row{gap:8px;margin-top:4px;grid-template-columns:minmax(116px,1.4fr) minmax(86px,1fr) minmax(56px,.7fr)}
.tactic-studio .tactic-command-row .btn{border-radius:8px;border-color:#d3dfe8;box-shadow:none}
.tactic-studio .playback-pair{border:1px solid #d3dfe8;border-radius:8px;overflow:hidden}
.tactic-studio .playback-pair .tactic-play{border:0;border-radius:0;background:#fff;color:#244d6c}
.tactic-studio .playback-pair select{width:48px;min-width:48px;min-height:42px;border:0;border-left:1px solid #dce5ec;border-radius:0;background:#fff;font-size:12px}
.tactic-studio .tactic-command-row [data-tactic-save]{border-color:#285a83;background:#285a83;color:#fff}
.tactic-studio .tactic-command-row [data-tactic-save]:disabled{border-color:#e1e8ed;background:#e1e8ed;color:#637687}
.tactic-studio>.pitch-tools{display:grid;gap:4px;overflow:visible;max-width:none;margin:12px 0 0;padding:6px 0 12px;border-top:1px solid #dce5ec}
.tactic-utility-row{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}
.pitch-tools .tactic-history-controls{display:flex;gap:4px}
.pitch-tools .tactic-history-controls button{flex:0 0 44px;width:44px;min-width:44px;height:44px;padding:10px;border:0;border-radius:7px;background:transparent;color:#365b76}
.pitch-tools .tactic-history-controls button:disabled{opacity:1;color:#a0b1be;cursor:default}
.tactic-studio .pitch-tools .opponent-switch{display:flex;flex:0 1 auto;align-items:center;gap:8px;min-width:0;min-height:44px;padding:0 2px 0 8px;border:0;border-radius:6px;background:transparent;color:#25465f;font-size:12px;white-space:nowrap}
.opponent-switch-label{font-weight:500}
.opponent-switch-state{color:#5a7183;font-size:11px}
.opponent-switch-track{position:relative;display:block;width:34px;height:20px;flex-shrink:0;border:1px solid #8a9faf;border-radius:12px;background:#e2e9ef}
.opponent-switch-track::after{content:'';position:absolute;top:3px;left:3px;width:12px;height:12px;border-radius:50%;background:#627c90;transition:transform .15s ease-out}
.opponent-switch[aria-pressed=true] .opponent-switch-track{border-color:#2b5b83;background:#2b5b83}
.opponent-switch[aria-pressed=true] .opponent-switch-track::after{background:#fff;transform:translateX(14px)}
.tactic-edit-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.tactic-studio .pitch-tools .tactic-edit-actions button{display:flex;align-items:center;justify-content:center;width:auto;min-width:0;min-height:44px;margin:0;padding:0 6px;border:1px solid #d3dfe8;border-radius:8px;background:#fff;color:#385a73;font-size:12px;white-space:nowrap}
.tactic-studio .pitch-tools .tactic-edit-actions [data-edit-cancel]{color:#8b4640;border-color:#dfcbc7;background:#fff9f7}
.tactic-studio .pitch-tools [hidden]{display:none}
.tactic-studio .studio-exports{gap:8px;padding:12px 0;border-top:1px solid #dce5ec;border-bottom:1px solid #dce5ec}
.tactic-studio .tactic-export-button{min-height:44px;padding:8px;gap:8px;border-radius:8px;font-size:12px}
.tactic-studio .tactic-export-button.export-video{border-color:#ccdae6;background:#e7eff6;color:#244f73}
.tactic-studio .tactic-export-button .icon{width:18px;height:18px}
.tactic-studio .studio-extras>details>summary{min-height:50px;padding:12px 0;font-size:13px}
.tactic-studio .pitch-tools button:focus-visible{outline:2px solid #487ba4;outline-offset:2px}
@media(hover:hover){.pitch-tools .tactic-history-controls button:not(:disabled):hover,.tactic-studio .pitch-tools .opponent-switch:hover{background:#e7eef4}.tactic-studio .pitch-tools .tactic-edit-actions button:hover{background:#edf3f8}.tactic-studio .tactic-export-button.export-video:hover{background:#dbe7f1}}
@media(prefers-reduced-motion:reduce){.opponent-switch-track::after{transition:none}}
@media(max-width:360px){.tactics-board .tactic-studio{padding-inline:8px}.tactic-studio .tactic-transport{grid-template-columns:88px minmax(0,1fr);gap:8px}.tactic-studio .tactic-command-row{gap:6px;grid-template-columns:minmax(106px,1.4fr) minmax(78px,1fr) minmax(52px,.7fr)}.tactic-studio .tactic-command-row .btn{font-size:12px}.tactic-studio .playback-pair select{width:42px;min-width:42px}}

/* Secondary lists stay short until opened; their counts remain visible. */
.tactics-layout .tactic-disclosure.panel{padding:0;border-radius:12px;align-self:start}
.tactic-disclosure>summary{display:flex;align-items:center;gap:10px;min-height:56px;padding:12px 16px;color:#29485f;list-style:none;cursor:pointer}
.tactic-disclosure>summary::-webkit-details-marker{display:none}
.tactic-disclosure>summary>span{font-size:14px;font-weight:600;white-space:nowrap}
.tactic-disclosure>summary>small{margin-left:auto;color:#536b7e;font-size:12px;font-weight:400;white-space:nowrap;font-variant-numeric:tabular-nums}
.tactic-disclosure>summary>.icon{width:16px;height:16px;flex-shrink:0;transform:rotate(90deg)}
.tactic-disclosure[open]>summary>.icon{transform:rotate(-90deg)}
.tactic-disclosure[open]>summary{border-bottom:1px solid #e0e8ee}
.tactic-disclosure>summary:focus-visible{outline:2px solid #487ba4;outline-offset:-3px;border-radius:10px}
.tactic-disclosure-content{padding:0 16px 12px}
.tactic-library .tactic-disclosure-content{padding-top:8px}
.tactic-library .empty-state{padding:16px 0}
.tactic-studio .studio-heading [data-tactic-status]{font-size:11px;line-height:18px}
.tactic-studio .studio-heading [data-state=error]{color:#a43e3e}
.tactic-studio .studio-heading [data-state=saving]{color:#285a83}
.match-savebar>[data-match-save-state]{max-width:110px;line-height:1.5}

/* The search input fills the field; legacy 87px mobile widths do not apply. */
.substitution-modal{display:flex;flex-direction:column;overflow:hidden;max-height:calc(90dvh - var(--keyboard-inset,0px))}
.substitution-modal .modal-head,.substitution-modal .substitution-current{flex-shrink:0}
.substitution-choices{display:flex;flex-direction:column;min-height:0}
.substitution-results{min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-color:#9eb2bf transparent;scrollbar-width:thin}
.substitution-modal .substitution-search{flex-shrink:0}
.substitution-footer{display:flex;flex-shrink:0;gap:10px;padding-top:12px;margin-top:12px;border-top:1px solid #dce5eb}
.substitution-footer>.btn{flex:1;min-width:0;min-height:46px;padding:0 10px;gap:8px;font-size:14px}
.substitution-footer .icon{width:18px;height:18px}
.substitution-modal [data-tactic-guest-form]{display:flex;flex-direction:column;min-height:0}
.tactic-guest-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 12px;min-height:0;padding:2px 2px 8px;overflow:auto}
.tactic-guest-fields .form-field{align-content:start;gap:8px}
.tactic-guest-fields .form-field label{display:flex;justify-content:space-between;align-items:center;min-height:20px;font-size:13px;color:#435e73}
.tactic-guest-fields .form-field :is(input,select){width:100%;min-width:0;height:48px;min-height:48px;padding:0 12px;border:1px solid #d3dfe8;border-radius:8px;background:#f8fafc;color:#183344;font:400 16px var(--body-font);line-height:normal;caret-color:#285a83;scroll-margin-block:16px}
.tactic-guest-fields .form-field select{padding-right:30px}
.tactic-guest-fields .form-field :is(input,select):focus-visible{outline:2px solid #4b7fa6;outline-offset:1px}
.tactic-guest-fields .form-field input::placeholder{color:#647789}
.substitution-modal [data-tactic-guest-error]{margin:4px 0 0;font-size:12px;color:#a43e3e;overflow-wrap:anywhere}
.substitution-modal [data-tactic-guest-error]:empty{display:none}
.substitution-modal [hidden]{display:none!important}
.substitution-modal .modal-head{margin-bottom:12px;gap:12px}
.substitution-modal .modal-head h2{font-size:18px;line-height:1.4}
.substitution-modal .substitution-current{gap:10px;min-height:54px;padding:8px 10px;margin-bottom:12px;border-radius:8px;background:#edf3f7}
.substitution-current .lineup-number{flex:0 0 36px;width:36px;height:36px;border-radius:6px;font-size:16px;line-height:1;font-variant-numeric:tabular-nums}
.substitution-current>span:nth-child(2){display:flex;flex:1;align-items:center;gap:10px;min-width:0}
.substitution-current strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}
.substitution-current small{flex-shrink:0;margin-left:auto;color:#536b7e;font-size:12px;white-space:nowrap}
.substitution-current>.icon{display:none}
.substitution-modal .substitution-search{display:flex;width:100%;max-width:none;min-width:0;height:46px;min-height:46px;margin:0 0 14px;padding:0 12px;gap:10px;border:1px solid #d3dfe8;border-radius:8px;background:#fff}
.substitution-modal .substitution-search>.icon{flex:0 0 18px;width:18px;height:18px;color:#607b8e}
.substitution-modal .substitution-search input{display:block;flex:1;width:100%;min-width:0;max-width:none;height:44px;min-height:44px;margin:0;padding:0;border:0;border-radius:0;background:transparent;color:#28485f;font:400 16px var(--body-font);outline:none;box-shadow:none}
.substitution-modal .substitution-search:focus-within{border-color:#4b7fa6;outline:2px solid #aac5da;outline-offset:1px}
.substitution-modal .substitution-search input:focus-visible{outline:none!important;box-shadow:none}
.substitution-modal .substitution-group{margin-top:14px}
.substitution-modal .substitution-group h3{font-size:12px;color:#536b7e;margin-bottom:4px}
.substitution-modal .substitution-option{min-height:58px;gap:10px;padding:8px 0}
.substitution-modal .substitution-option .roster-avatar{width:34px;height:36px;flex-basis:34px}
.substitution-modal .substitution-option>span:nth-child(2){flex:1;min-width:0;gap:2px}
.substitution-modal .substitution-option strong{display:block;font-size:14px;overflow-wrap:anywhere}
.substitution-modal .substitution-option small,.substitution-modal .substitution-option>b{font-size:12px;color:#536b7e}
.substitution-modal .substitution-option>b{flex-shrink:0;white-space:nowrap}
@media(max-width:780px){.substitution-modal{padding:16px;max-height:calc(86dvh - var(--keyboard-inset,0px))}.tactics-lineup .lineup-slot{min-height:56px;padding:8px 0}}
.tactic-view-only{flex-shrink:0;min-height:44px;padding:4px 8px;border:1px solid #ffffff30;border-radius:6px;background:transparent;color:#e1e9ed;font:inherit;font-size:12px;white-space:nowrap;cursor:pointer}
.toast{z-index:200;max-width:min(360px,calc(100vw - 32px));font:500 14px/1.6 var(--body-font);overflow-wrap:anywhere}
@media(max-width:1050px){.toast{right:16px;bottom:calc(100px + env(safe-area-inset-bottom))}}
.tactics-pitch[data-readonly=true] :is(.tactic-player,.tactic-dot,.tactic-football,.tactic-opponent){touch-action:pan-y;cursor:default}
.tactics-pitch[data-readonly=true] .pitch-add-opponent{display:none}
.tactic-studio:has([data-tactic-save][hidden]) .tactic-command-row{grid-template-columns:1fr}
.tactics-layout [hidden]{display:none!important}.tactics-layout[data-mode=viewer] .tactic-transport{grid-template-columns:minmax(0,1fr)}.tactics-layout[data-mode=viewer] .tactic-authoring-mode,.tactics-layout[data-mode=viewer] .pitch-tools{display:none}.tactics-layout[data-mode=viewer] .tactic-transport-center{height:60px}.tactics-layout[data-mode=viewer] .studio-heading{height:34px;min-height:34px;padding-right:108px}.tactics-layout[data-mode=viewer] .studio-heading>div{display:grid;align-content:center;gap:0;height:auto;min-width:0}.tactics-layout[data-mode=viewer] .studio-heading [data-tactic-title]{display:block;font-size:13px;line-height:18px}.tactics-layout[data-mode=viewer] .studio-heading small{line-height:16px}.tactics-layout[data-mode=viewer] .tactic-studio .tactic-command-row{grid-template-columns:minmax(0,1fr) 90px}.viewer-library-button{min-height:44px;padding:0 12px;border:1px solid #d3dfe8;border-radius:8px;background:#fff;color:#285a83;font:inherit;font-size:13px;white-space:nowrap}.tactics-layout[data-mode=viewer] .formation-trigger .icon{display:none}.tactics-layout[data-mode=viewer] .tactic-view-only{color:#536b7e;border-color:#d3dfe8}.tactics-layout[data-mode=viewer][data-tactic-loaded=false] .tactic-player,.tactics-layout[data-mode=viewer][data-tactic-loaded=false] .tactic-football,.tactics-layout[data-mode=viewer][data-tactic-loaded=false] .opponent-layer{visibility:hidden}

/* Account workspace: compact identity, team list and inline actions. */
.account-workspace{max-width:720px;margin:0 auto;padding:20px;background:#f8fbfd;border:1px solid #d8e2e9;border-radius:16px;color:#183344}
.account-identity{display:flex;align-items:center;gap:12px;padding-bottom:20px;border-bottom:1px solid #d8e2e9}
.account-identity>img{width:40px;height:40px;border-radius:10px;object-fit:contain;background:white}
.account-identity>div{flex:1;min-width:0;display:grid;gap:3px}
.account-identity strong{font-size:15px}.account-identity small{font-size:12px;color:#5d7180;overflow-wrap:anywhere}
.account-identity>button{min-height:44px;padding:0 10px;background:none;border:0;color:#5d7180;font:inherit;font-size:13px}
.account-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:16px 0 10px}
.account-section-heading h2{font-size:15px;margin:0}.account-section-heading>span{font-size:12px;color:#5d7180}
.account-team-row{display:flex;align-items:center;gap:10px;width:100%;min-height:64px;padding:10px 0;background:none;border:0;border-bottom:1px solid #d8e2e9;text-align:left;color:inherit;font:inherit}
.account-team-row img{width:34px;height:34px;object-fit:contain;border-radius:8px;background:#fff}
.account-team-row strong{flex:1;min-width:0;overflow-wrap:anywhere;font-size:14px}.account-team-row span{font-size:12px;color:#5d7180;white-space:nowrap}.account-team-row>.icon{width:16px;height:16px}
.account-team-item{display:flex;align-items:center;gap:8px;border-bottom:1px solid #d8e2e9}.account-team-item[hidden]{display:none}.account-team-item .account-team-row{flex:1;min-width:0;border-bottom:0}.account-team-delete{flex:0 0 44px;min-height:44px;padding:0 6px;border:0;background:none;color:#a12d35;font:inherit;font-size:12px}.account-team-delete:disabled{opacity:.5}
.team-delete-modal{max-width:480px}.team-delete-name{display:block;font-size:20px;overflow-wrap:anywhere}.team-delete-counts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 12px;margin:20px 0}.team-delete-counts div{display:grid;gap:4px}.team-delete-counts dt{font-size:12px;color:#5d7180}.team-delete-counts dd{margin:0;font-size:18px;font-variant-numeric:tabular-nums}.team-delete-warning{font-size:13px;line-height:1.7;color:#943139}.team-delete-modal input{width:100%;min-height:46px;margin-top:8px;padding:0 12px;border:1px solid #d8e2e9;border-radius:8px;background:#fff;color:#183344;font:inherit;font-size:16px;box-sizing:border-box}.team-delete-modal .form-actions{margin-top:20px}.team-delete-submit{background:#a12d35}.team-delete-submit:hover{background:#86252c}
.account-team-search{display:flex;align-items:center;gap:8px;border:1px solid #d8e2e9;background:#fff;border-radius:8px;padding:0 12px}
.account-team-search input{width:100%;min-width:0;height:44px;border:0;background:none;font:inherit;font-size:16px;color:#183344;outline:none}
.account-team-search:focus-within{outline:2px solid #8aaac3;outline-offset:2px}
.account-action{border-top:1px solid #d8e2e9;margin-top:16px}.account-action summary{display:flex;align-items:center;justify-content:space-between;min-height:52px;cursor:pointer;font-size:14px;list-style:none}.account-action summary::-webkit-details-marker{display:none}.account-action summary .icon{width:16px;height:16px}.account-action[open] summary .icon{transform:rotate(45deg)}
.account-inline-form,.account-member-link{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:start;margin:0 0 8px}
.account-inline-form input,.account-member-link select{width:100%;min-width:0;height:46px;min-height:46px;margin:0;padding:0 12px;border:1px solid #d8e2e9;border-radius:8px;background:#fff;color:#183344;font:inherit;font-size:16px;box-sizing:border-box}
.account-inline-form .btn,.account-member-link .btn{min-height:46px;height:46px;padding:0 14px;font-size:13px;border-radius:8px;white-space:nowrap}
.account-inline-form .auth-message,.account-member-link .form-error{grid-column:1/-1;margin:0;font-size:12px}.account-member-link .form-error:empty{display:none}
.account-empty{font-size:13px;color:#5d7180;padding:12px 0}.account-members{padding:20px}.account-members .account-section-heading{margin-top:0}
.team-invite-block{padding:14px 0;border-top:1px solid #d8e2e9;border-bottom:1px solid #d8e2e9}
.team-invite-block form{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0}.team-invite-block form>div{display:grid;gap:4px}.team-invite-block strong{font-size:14px}.team-invite-block small{font-size:12px;color:#5d7180}.team-invite-block .btn{min-height:44px;padding:0 12px;font-size:13px;border-radius:8px}.team-invite-block [data-auth-message]{flex-basis:100%;margin:0}
.team-invite-code{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:12px}.team-invite-code #invite-code{font-size:24px;letter-spacing:4px;font-weight:700;font-variant-numeric:tabular-nums}.team-invite-code button{min-height:44px}.team-invite-expiry{margin:4px 0 0;font-size:11px;color:#5d7180}
.account-member{padding:16px 0;border-bottom:1px solid #d8e2e9}.account-member:last-child{border-bottom:0;padding-bottom:0}.account-member header{display:flex;align-items:center;gap:10px;margin-bottom:10px}.account-member header>div{flex:1;min-width:0}.account-member strong{font-size:14px;overflow-wrap:anywhere}.account-member small{display:block;font-size:12px;line-height:1.6;color:#5d7180;overflow-wrap:anywhere}.account-member-avatar{display:grid;place-items:center;flex:0 0 36px;height:36px;background:#e5edf2;border-radius:8px;color:#285a83}.account-member em{font-size:11px;margin-left:6px;font-style:normal;color:#5d7180}.account-member .text-link{font-size:12px;min-height:44px}.account-member-link{margin-bottom:0}.account-add-player{padding:0}
.home-hero .fixture-empty{padding-bottom:20px}.fixture-empty h3{font-size:22px;margin:18px 0 0}.home-actions{gap:10px}.home-actions>.btn{min-height:48px;border-radius:10px;font-size:15px}
#modal-form[data-form=match]{gap:14px}#modal-form[data-form=match]>.form-grid>.form-field{min-width:0}#modal-form[data-form=match] input{min-height:46px;font-size:16px}#modal-form[data-form=match] label{font-size:13px}
@media(max-width:600px){.account-workspace,.account-members{padding:16px}.account-workspace{border-radius:12px}.account-section-heading h2{font-size:15px}#modal-form[data-form=match]>.form-grid>.form-field{grid-column:1/-1}}

.account-section-heading h2>span{margin-left:8px;font-weight:400;font-size:12px;color:#5d7180}
.team-invite-code button{border:1px solid #d8e2e9;border-radius:8px;background:white;color:#285a83;padding:0 14px;font:inherit;font-size:13px}
.team-invite-code{margin-top:12px;padding:12px 14px;background:#eaf1f5;border-radius:8px}.team-invite-code button:disabled{opacity:.45}.team-invite-expiry{display:block;margin-top:8px}.invite-read-error{font-size:12px;line-height:1.6;margin:8px 0 0}.invite-read-error button{min-height:36px}
#modal-form[data-form=match]>.form-grid{gap:16px}
.match-result-panel{grid-column:1/-1;min-width:0;border-top:1px solid #d8e2e9;margin-top:4px}
.match-result-panel summary{display:flex;align-items:center;justify-content:space-between;min-height:52px;list-style:none;font-size:13px;font-weight:600;cursor:pointer}
.match-result-panel summary::-webkit-details-marker{display:none}.match-result-panel summary .icon{width:16px;height:16px}.match-result-panel[open] summary .icon{transform:rotate(180deg)}
.match-result-panel .form-grid{margin-top:4px}.match-result-panel .score-entry{padding:12px;background:#edf3f7;border-radius:8px}

/* Mobile-17: one action per empty screen, denser lists and clearer sheets. */
body:is([data-page=matches],[data-page=honors],[data-page=moments]) .empty-state{min-height:170px;padding:28px 20px;align-content:center;gap:12px;border-radius:12px}
body:is([data-page=matches],[data-page=honors],[data-page=moments]) .empty-state h3{margin:0;font-size:14px}
body:is([data-page=matches],[data-page=honors],[data-page=moments]) .empty-state .btn{display:none}
body:is([data-page=matches],[data-page=honors],[data-page=moments]) .empty-state .empty-mark{width:32px;height:32px;border-radius:0;background:none}
body[data-page=team] .team-cover{min-height:100px;padding:18px;gap:14px}
body[data-page=team] .team-cover .team-emblem{width:52px;height:52px;flex:0 0 52px;padding:4px;border-radius:10px}
body[data-page=team] .team-cover h2{font-size:20px;line-height:1.4}
body[data-page=team] .team-cover p{margin:6px 0 0}
body[data-page=team] .panel-pad{padding:18px}
body[data-page=team] .panel-pad .panel-head{margin-bottom:12px}
body[data-page=team] .panel-pad .panel-head h2{font-size:14px}
body[data-page=team] .detail-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:20px}
body[data-page=team] .detail-row{display:grid;grid-template-columns:minmax(0,1fr);justify-content:stretch;align-content:start;gap:4px;min-width:0;min-height:66px;padding:12px 0;font-size:12px}
body[data-page=team] .detail-row:nth-child(2){border-top:0}
body[data-page=team] .detail-row strong{width:100%;max-width:100%;font-size:14px;text-align:left;white-space:normal;overflow-wrap:anywhere}
.squad-member{min-height:74px;padding:12px 14px;gap:10px}.squad-member .roster-avatar{width:42px;height:42px;flex-basis:42px}.squad-member-name strong{font-size:14px}.squad-member-copy small{margin-top:3px}
.club-hub .hub-cover .tools-profile{min-height:124px;padding:20px;gap:14px}.club-hub .tools-profile strong{font-size:21px}.club-hub .tools-profile small{margin-top:6px}
.modal .form-grid{gap:16px 12px}.modal .modal-head{margin-bottom:16px;padding-bottom:14px}.modal .modal-head h2{font-size:18px}.modal .modal-close{border-radius:8px}
.modal:has(#modal-form[data-form=player]) .avatar-picker-body{min-height:76px;padding-bottom:12px}
#modal-form[data-form=player] .team-role-fields{margin-top:0}
.modal .form-actions{gap:8px}.modal .form-actions .form-save-state{font-size:11px}
html:has(.modal-backdrop) body{overflow:hidden}
.file-preview-backdrop{position:fixed;inset:0;z-index:120;display:grid;place-items:center;padding:16px;background:rgba(4,20,32,.8);overscroll-behavior:contain}
.file-preview-panel{display:flex;flex-direction:column;gap:14px;width:min(100%,480px);max-height:calc(100dvh - 32px);padding:18px;background:#f8fbfd;border-radius:14px;color:#183344;overflow:auto}
.file-preview-panel header{display:flex;align-items:center;justify-content:space-between;gap:12px}.file-preview-panel h2{margin:0;font-size:17px}.file-preview-panel .modal-close{position:static;flex:0 0 44px;height:44px}
.file-preview-content{min-height:0;overflow:auto;text-align:center}.file-preview-content img{display:block;width:100%;height:auto;max-height:60dvh;object-fit:contain;user-select:auto;-webkit-user-select:auto;-webkit-touch-callout:default}.file-preview-content strong{display:block;padding:24px 0;overflow-wrap:anywhere}
.file-preview-note{margin:0;font-size:12px;color:#536879}.file-preview-note:empty{display:none}.file-preview-panel footer{display:flex;gap:10px}.file-preview-panel footer>.btn{flex:1;min-height:46px;text-decoration:none;font-size:14px}.file-preview-panel [hidden]{display:none!important}
.video-export-panel>footer{flex-wrap:wrap}.video-export-panel>footer>.btn{white-space:nowrap;padding:0 10px;font-size:13px}
.export-link-tools{display:grid;flex-shrink:0;gap:10px;min-width:0;padding:14px 0;border-top:1px solid #dce3e7}
.export-link-tools>.btn{width:100%;min-height:44px;font-size:14px}
.export-link-tools[data-ready=true]{grid-template-columns:minmax(0,1fr) auto;align-items:center}
.export-link-tools[data-ready=true]>[data-export-prepare]{grid-column:2;grid-row:1;width:auto;padding:0 4px;border:0;background:transparent;font-size:12px}
.export-link-tools[data-ready=true]>.export-link-status{grid-column:1;grid-row:1}
.export-link-tools[data-ready=true]>.export-link-result{grid-column:1/-1}
.export-link-status,.export-link-expiry{margin:0;font-size:12px;line-height:1.6;color:#536879;overflow-wrap:anywhere}
.export-link-status[data-state=error]{color:#a43e3e}
.export-link-result{display:grid;min-width:0;gap:10px}
.export-link-result>label{display:grid;gap:6px;font-size:12px;color:#435e73}
.export-link-result input{display:block;width:100%;min-width:0;height:44px;padding:0 10px;border:1px solid #ccd9e2;border-radius:8px;background:#fff;color:#28465b;font:400 16px var(--body-font);user-select:text;-webkit-user-select:text}
.export-link-actions{display:flex;flex-wrap:wrap;gap:8px}
.export-link-actions>.btn{flex:1;min-width:0;min-height:44px;padding:0 8px;font-size:13px;text-decoration:none}
.export-link-tools [hidden]{display:none!important}
.file-preview-content img.export-image-preparing{-webkit-touch-callout:none;pointer-events:none}
.file-preview-panel>footer:has(>a[hidden]+a[hidden]){display:none}
.file-preview-panel:has(.export-link-tools) .file-preview-content{display:grid;place-items:center;flex:1 1 auto;min-height:120px;height:42dvh;overflow:hidden}
.file-preview-panel:has(.export-link-tools) .file-preview-content img{display:block;width:100%;height:100%;max-height:100%;min-height:0;object-fit:contain}
.file-preview-panel>header,.file-preview-panel>footer,.file-preview-panel>.file-preview-note{flex-shrink:0}
.video-export-panel>.export-link-tools{margin-bottom:12px}
#modal-form .form-field>select{height:48px;min-height:48px;padding:0 36px 0 12px;line-height:46px;appearance:none;-webkit-appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23536b7e' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center}
#modal-form .form-field>select option{line-height:normal}
.club-edition .home-match-stage .fixture-team{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:56px 42px 18px;gap:7px;justify-items:center;align-items:center;text-align:center}
.club-edition .home-match-stage .fixture-emblem{grid-row:1;width:56px;height:56px;margin:0;padding:0;object-fit:contain}
.club-edition .home-match-stage .fixture-team>strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;align-self:center;width:100%;font-size:14px;line-height:21px;text-align:center;overflow-wrap:anywhere}
.club-edition .home-match-stage .fixture-team>small{align-self:center;line-height:18px}
.club-edition .home-match-stage .fixture-versus{align-self:start;padding-top:16px;line-height:24px;text-align:center}
.team-role-fields .team-role-option{display:flex;min-width:0;align-items:center;border:1px solid transparent;border-radius:8px;background:#f0f4f8}
.team-role-fields .team-role-option:has(input:checked){background:#e8eff7;border-color:#adc1d5}
.team-role-fields .team-role-option>label{flex:1;min-width:0;justify-content:flex-start;white-space:normal;background:transparent;border:0;margin:0;padding:8px}
.team-role-fields .team-role-option>label>span{overflow-wrap:anywhere}
.team-role-fields .team-role-option>button{display:grid;place-items:center;flex:0 0 44px;width:44px;min-height:44px;padding:0;border:0;border-radius:6px;background:transparent;color:#a43e3e;cursor:pointer}
.team-role-option>button .icon{width:16px;height:16px}
.team-role-fields .team-role-option[hidden]{display:none}
#modal-form .form-actions:has([data-delete-match])>.form-save-state{grid-column:1;grid-row:1;align-self:center}
#modal-form .form-actions>[data-delete-match]{grid-column:2;grid-row:1;justify-self:end;min-height:36px;padding:0 4px;border:0;background:transparent;color:#a43e3e;font:500 13px var(--body-font);cursor:pointer}
.match-center-actions{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;margin:8px 0 -8px}
.match-detail-actions{display:flex;align-items:center;gap:18px;margin-left:auto}
.match-detail-actions>.text-link{display:flex;align-items:center;gap:5px;min-height:44px;padding:0;font-size:13px;color:#deebf5}
.match-detail-actions>.text-link>.icon{width:17px;height:17px}
.match-auto-save-status{display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:12px;line-height:1.6;color:#deebf5}
.match-auto-save-status [data-state=error]{color:#ffe5cb}.match-auto-save-status>.text-link{min-height:44px;padding:0;color:#fff;font-size:12px}
.match-auto-save-status[hidden],.match-auto-save-status [hidden]{display:none!important}
.match-center{padding-bottom:16px}
.moment-meta{align-items:flex-start;gap:10px}.moment-author{min-width:0;flex:1}.moment-author>strong{display:block;color:#203e50;font-size:14px;overflow-wrap:anywhere}.moment-author>small{display:block;margin-top:4px;font-size:11px;color:#5c7180}
.moment-card-tools{display:flex;gap:6px;align-items:center;flex-shrink:0;margin-left:auto}.moment-card-tools .moment-tag{margin:0;padding:4px 7px;font-size:11px;white-space:nowrap}
.moment-delete{display:grid;place-items:center;width:44px;min-height:44px;padding:0;border:0;border-radius:6px;background:transparent;color:#a43e3e;cursor:pointer}.moment-delete>.icon{width:16px;height:16px}
.moment-card>p{margin:16px 0;font-size:14px;line-height:1.8;overflow-wrap:anywhere}
.moment-photo-editor,.moment-category{grid-column:1/-1;min-width:0}.moment-category{display:flex;justify-content:flex-end}.moment-category>.form-field{width:140px}.moment-category label{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden;white-space:nowrap}
.moment-photo-editor-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px;color:#435e73}.moment-photo-editor-heading small{margin-left:6px;color:#607586;font-size:11px}.moment-photo-editor-heading button{min-height:44px;font-size:13px}
.moment-photo-drafts,.moment-photos{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:10px}
.moment-photo-drafts>div,.moment-photos>button{position:relative;min-width:0;aspect-ratio:1;overflow:hidden;border-radius:8px;background:#edf2f6}
.moment-photo-drafts img,.moment-photos img{display:block;width:100%;height:100%;object-fit:cover}
.moment-photo-drafts>div>button{position:absolute;top:2px;right:2px;display:grid;place-items:center;width:32px;height:32px;padding:0;border:0;border-radius:6px;background:rgba(14,33,48,.85);color:#fff;cursor:pointer}.moment-photo-drafts button>.icon{width:17px;height:17px}
.moment-photos{margin-top:14px}.moment-photos>button{border:0;padding:0;cursor:pointer}.moment-photos[data-count="1"]{grid-template-columns:1fr}.moment-photos[data-count="1"]>button{aspect-ratio:4/3;max-height:360px}.moment-photos[data-count="2"],.moment-photos[data-count="4"]{grid-template-columns:repeat(2,minmax(0,1fr))}
.moment-photos .photo-unavailable{padding:12px;font-size:12px;color:#536879}
.moment-photo-viewer{position:fixed;inset:0;z-index:135;display:grid;place-items:center;padding:16px;background:rgba(4,17,28,.94)}.moment-photo-viewer>section{width:100%;height:100%;display:grid;grid-template-rows:44px minmax(0,1fr);gap:12px}.moment-photo-viewer .modal-close{justify-self:end;width:44px;height:44px}.moment-photo-viewer img{display:block;width:100%;height:100%;object-fit:contain;min-height:0;-webkit-touch-callout:default;user-select:auto}
.tactic-studio .playback-pair select{width:68px;min-width:68px;padding:0 4px;font-size:12px}
.tactic-studio .playback-pair .tactic-play{min-width:44px;gap:4px;padding:0 4px}
/* Matchday squad selection: one roster rhythm for starters, bench and picker. */
.match-lineup-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.match-lineup-heading>div{display:flex;align-items:baseline;gap:10px;min-width:0}
.match-lineup-heading h2{margin:0;font-size:17px;font-weight:600;color:#183344}
.match-lineup-heading>div>span{font:500 12px var(--score-font);font-variant-numeric:tabular-nums;color:#536879;white-space:nowrap}
.match-lineup-heading>.text-link{min-height:44px;padding:0;font-size:12px;white-space:nowrap}
.match-lineup-formation{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px;margin:8px 0 10px;padding:0 12px;background:#f3f6f8;border-radius:8px;color:#435e73;font-size:13px}
.match-center .match-lineup-formation>select{width:auto;max-width:210px;min-width:0;min-height:44px;height:44px;padding:0 26px 0 8px;border:0;border-radius:6px;background-color:transparent;color:#183344;font-size:16px;font-weight:500;text-align:right}
.match-starting-roster{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:28px;align-items:start}
.match-position-group{min-width:0;margin-top:12px}
.match-position-group>h3,.match-picker-group>h3{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:32px;margin:0;color:#536879;font-size:12px;font-weight:500}
.match-position-group>h3>span,.match-picker-group>h3>[data-match-picker-count]{font:500 12px var(--score-font);font-variant-numeric:tabular-nums;color:#536879}
.match-starter-choice,.match-bench-choice,.match-picker-option{display:grid;grid-template-columns:28px 38px minmax(0,1fr) auto;align-items:center;gap:10px;width:100%;min-width:0;min-height:68px;margin:0;padding:10px 2px;border:0;border-bottom:1px solid #e5ebef;border-radius:0;background:#fff;text-align:left;color:#183344;font:inherit;cursor:pointer}
.match-shirt-number{display:grid;place-items:center;min-width:28px;font:600 18px var(--score-font);line-height:1;font-variant-numeric:tabular-nums;color:#31546d}
:is(.match-lineup-panel,.match-squad-picker) .roster-avatar{display:block;position:relative;width:38px;height:40px;flex:none;overflow:hidden;border-radius:9px}
:is(.match-lineup-panel,.match-squad-picker) .roster-avatar>.avatar{display:grid;place-items:center;width:100%;height:100%;border-radius:9px;font-size:16px}
:is(.match-lineup-panel,.match-squad-picker) .roster-avatar>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.match-person-copy{display:grid;gap:3px;min-width:0}
.match-person-copy>strong{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;color:#183344;font-size:14px;font-weight:600;line-height:1.45;overflow-wrap:anywhere}
.match-person-copy>small{color:#536879;font-size:12px;line-height:1.45}
.match-choice-action{display:flex;align-items:center;justify-content:flex-end;gap:2px;color:#285a83;font-size:12px;font-weight:500;white-space:nowrap}
.match-choice-action>.icon{flex:0 0 15px;width:15px;height:15px}
.match-starter-choice.is-vacant{grid-template-columns:28px minmax(0,1fr) auto;gap:10px;min-height:60px}
.match-vacant-icon{display:grid;place-items:center;width:28px;height:32px;color:#58758b;background:#edf2f6;border-radius:6px}
.match-vacant-icon>.icon{width:17px;height:17px}
.is-vacant .match-person-copy>strong{font-size:13px;font-weight:400;color:#536879}
.match-bench-heading{margin-top:28px;padding-bottom:8px}
.match-bench-roster{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:28px;margin-bottom:20px}
.match-bench-choice{padding-inline:8px;border-radius:6px}
.match-bench-choice:has(>input:checked){background:#edf4fa}
.match-bench-choice>input[type=checkbox]{width:20px;height:20px;min-height:20px;margin:0 4px 0 8px;padding:0;accent-color:#285a83;cursor:pointer}
.match-roster-empty{grid-column:1/-1;margin:0;padding:14px 0;color:#536879;font-size:13px}
.match-starter-choice:focus-visible,.match-bench-choice:focus-within,.match-picker-option:focus-visible{outline:2px solid #285a83;outline-offset:-2px;border-radius:6px}
.match-squad-picker{display:flex;flex-direction:column;width:min(100%,480px);max-height:min(720px,calc(100dvh - 48px));padding:0;overflow:hidden;border-radius:16px;background:#fff;scroll-padding:0}
.match-squad-picker:focus{outline:none!important}.match-squad-picker::before{display:none}
.match-picker-top{flex:0 0 auto;padding:16px 20px 14px;border-bottom:1px solid #e5ebef;background:#fff}
.match-picker-top>.modal-head{position:static;display:flex;align-items:center;gap:12px;margin:0 0 12px;padding:0;border:0;background:transparent}
.match-picker-top>.modal-head>h2{margin:0;color:#183344;font-size:18px;font-weight:600;line-height:1.4}
.match-picker-top>.modal-head>.modal-close{position:static;flex:0 0 44px;width:44px;height:44px;margin-left:auto;border:0;border-radius:8px;background:#f0f4f6;color:#435e73}
.match-picker-search{display:flex;align-items:center;gap:10px;width:100%;min-width:0;height:46px;padding:0 12px;background:#f1f5f7;border:1px solid transparent;border-radius:8px}
.match-picker-search>.icon{width:18px;height:18px;flex:0 0 18px;color:#536879}
.match-picker-search>input{display:block;width:100%;flex:1;min-width:0;height:44px;min-height:44px;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;color:#183344;caret-color:#285a83;font:400 16px var(--body-font);outline:none}
.match-picker-search>input::placeholder{color:#536879}.match-picker-search>input::-webkit-search-cancel-button{display:none}
.match-picker-search:focus-within{border-color:#285a83;outline:2px solid #b9cedd;outline-offset:1px}
.match-picker-search>input:focus-visible{outline:none!important;box-shadow:none}
.match-picker-search>[data-match-picker-clear]{flex:0 0 44px;width:44px;min-height:44px;padding:0;border:0;background:transparent;color:#435e73;font-size:21px;cursor:pointer}
.match-picker-list{flex:1 1 auto;min-height:120px;overflow-y:auto;overscroll-behavior:contain;padding:4px 20px max(18px,env(safe-area-inset-bottom));scrollbar-width:thin;scrollbar-color:#bdcbd6 transparent}
.match-picker-group{margin-top:10px}.match-picker-group+ .match-picker-group{margin-top:22px}
.match-picker-group>h3>span:first-child{display:flex;align-items:center;gap:8px}
.match-picker-group>h3 em{font-size:10px;font-weight:500;font-style:normal;color:#285a83;background:#eaf1f7;padding:2px 6px;border-radius:4px}
.match-picker-option[aria-pressed=true]{background:#edf4fa;border-radius:6px;opacity:1}
.match-picker-option[aria-pressed=true] .match-choice-action{color:#315d76}
.match-picker-empty{display:grid;justify-items:center;gap:12px;padding:36px 12px;color:#536879}
.match-picker-empty>.icon{width:28px;height:28px}.match-picker-empty p{margin:0;font-size:14px}.match-picker-empty>.text-link{min-height:44px;padding:0 12px}
.match-picker-footer{flex:0 0 auto;padding:8px 20px max(12px,env(safe-area-inset-bottom));border-top:1px solid #e5ebef;background:#fff}
.match-picker-footer>button{width:100%;min-height:44px;padding:0;border:0;border-radius:8px;background:#f3f6f8;color:#435e73;font:500 13px var(--body-font);cursor:pointer}
.match-squad-picker [hidden]{display:none!important}
@media(hover:hover){.match-starter-choice:hover:not(:disabled),.match-bench-choice:hover,.match-picker-option:hover:not(:disabled){background:#f1f6fa}.match-picker-footer>button:hover{background:#e7eef4}}
@media(max-width:780px){.match-starting-roster,.match-bench-roster{grid-template-columns:1fr}.match-center .match-lineup-panel{padding:16px}.match-squad-picker{max-height:calc(88dvh - var(--keyboard-inset,0px));border-radius:18px 18px 0 0}.match-picker-top{padding:12px 16px 14px}.match-picker-list{padding-inline:16px}.match-picker-footer{padding-inline:16px}.match-starter-choice,.match-bench-choice,.match-picker-option{gap:9px}.match-lineup-formation>select{max-width:190px}}
@media(max-width:360px){#modal-form[data-form=player] .form-field:has(input[type=date]){grid-column:1/-1}.file-preview-backdrop{padding:10px}.file-preview-panel{padding:14px;max-height:calc(100dvh - 20px)}}
/* Business editors have one scroll region, with header and actions outside it. */
.modal:has(>#modal-form){display:flex;flex-direction:column;overflow:hidden;padding:0;max-height:min(800px,calc(90dvh - var(--keyboard-inset,0px)));scroll-padding:0}
.modal:has(>#modal-form)>.modal-head{position:static;flex:0 0 auto;margin:0;padding:16px 18px 14px;border-bottom:1px solid #e4e9ed;background:#fff}
.modal:has(>#modal-form)>.modal-head .modal-close{flex:0 0 44px;width:44px;height:44px}
.modal>#modal-form{display:flex;flex-direction:column;flex:1 1 auto;min-height:0;overflow:hidden;gap:0}
#modal-form>.form-grid{flex:1 1 auto;overflow-y:auto;min-height:0;overscroll-behavior:contain;padding:16px 18px 20px;margin:0;scroll-padding-block:16px}
#modal-form>.form-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));position:static;flex:0 0 auto;margin:0;padding:10px 18px max(14px,env(safe-area-inset-bottom));gap:8px;background:#fff;backdrop-filter:none}
#modal-form>.form-actions .form-save-state{grid-column:1/-1;margin:0;line-height:18px}
#modal-form>.form-actions .btn{width:100%;min-width:0;min-height:46px}
#modal-form>.form-error,#modal-form>.draft-recovery{flex:0 0 auto;margin:0;padding:10px 18px}
#modal-form>.form-error:empty{display:none}
@media(max-width:780px){
 .modal:has(>#modal-form){border-radius:18px 18px 0 0}
 .modal:has(>#modal-form)::before{flex:0 0 4px;height:4px;margin:12px auto 0}
 .modal:has(>#modal-form)>.modal-head{padding-top:10px;padding-bottom:10px}
}
.crop-backdrop{z-index:130;padding:12px;background:rgba(4,20,32,.8);overflow:hidden}
.avatar-crop{display:flex;flex-direction:column;width:min(100%,440px);height:min(660px,calc(100dvh - 24px));max-height:calc(100dvh - 24px);overflow:hidden;padding:18px;border-radius:14px;background:#fff}
.avatar-crop>.modal-head{flex-shrink:0;display:flex;align-items:center;gap:10px;margin:0 0 12px;padding:0 0 10px;border-bottom:1px solid #dce3e7}
.avatar-crop .modal-head h2{flex:1;font-size:18px;margin:0}.avatar-crop .modal-close{position:static;width:44px;height:44px;flex:0 0 44px}.avatar-crop [data-crop-reset]{min-height:44px;padding:0 6px;font-size:13px}
.avatar-crop .crop-stage{flex:0 1 auto;width:min(100%,calc(100dvh - 260px));aspect-ratio:1;height:auto;margin:auto;overflow:hidden;touch-action:none}
.avatar-crop .crop-stage canvas{display:block;width:100%;height:100%;touch-action:none;user-select:none;-webkit-user-select:none}
.crop-hint{flex-shrink:0;margin:12px 0 4px;text-align:center;font-size:12px;color:#536879}
.avatar-crop .crop-zoom{flex-shrink:0;display:flex;gap:14px;align-items:center;min-height:40px;margin:0;padding:0;font-size:12px}.crop-zoom input{flex:1;min-width:0;accent-color:#285a83}
.avatar-crop .crop-actions{display:flex;flex-shrink:0;gap:10px;margin-top:12px;padding:12px 0 env(safe-area-inset-bottom);border-top:1px solid #dce3e7}.crop-actions .btn{flex:1;min-height:48px;font-size:14px;border-radius:8px}
/* Tactical detail and library: compact, local controls around the pitch. */
.tactic-zoom-row{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:30px;margin:1px 0 5px;color:#526b7e;font-size:11px;font-variant-numeric:tabular-nums}
.tactic-zoom-row>span{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tactic-zoom-row>div{display:flex;align-items:center;gap:1px}
.tactic-zoom-row button{display:grid;place-items:center;min-width:30px;min-height:30px;padding:0 5px;border:0;border-radius:5px;background:transparent;color:#315a78;font:inherit;font-size:13px;cursor:pointer}
.tactic-zoom-row [data-zoom-label]{font-size:11px;min-width:34px}
.tactic-zoom-row svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.6}
.tactic-zoom-row button:disabled{opacity:.35;cursor:default}
.tactic-zoom-row button:hover:not(:disabled){background:#e5edf3}
.tactic-zoom-row button:focus-visible{outline:2px solid #315c87;outline-offset:-2px}
.tactic-drag-trail{fill:none;stroke:#ffe4a0;stroke-width:.6;stroke-linejoin:round;stroke-linecap:round;pointer-events:none}
.tactic-drag-origin{position:absolute;z-index:2;width:14px;height:14px;transform:translate(-50%,-50%);border:2px solid #ffe4a0;border-radius:50%;background:rgba(15,42,37,.35);pointer-events:none}
.tactic-library-tools{display:flex;align-items:center;gap:8px;margin:14px 0 10px}
.tactic-library-tools>label{display:flex;align-items:center;gap:8px;min-width:0;flex:1;height:42px;padding:0 10px;border:1px solid #dce5eb;border-radius:8px;background:#fff;color:#577183}
.tactic-library-tools>label>.icon{width:17px;height:17px;flex:0 0 17px}
.tactic-library-tools input{width:100%;min-width:0;height:40px;padding:0;border:0;background:transparent;color:#233f53;font:inherit;font-size:13px;outline-offset:0}
.tactic-library-tools>button{display:flex;align-items:center;gap:6px;min-height:42px;padding:0 12px;border:1px solid #dce5eb;border-radius:8px;background:#fff;color:#45657b;font:inherit;font-size:12px;cursor:pointer}
.tactic-library-tools>button[aria-pressed=true]{border-color:#adc2d3;background:#e8f0f5;color:#214e7c}
.tactic-library-tools svg,.tactic-favorite svg{width:18px;height:18px}
.tactic-category-tabs{display:flex;gap:5px;overflow:auto;scrollbar-width:thin;padding-bottom:9px}
.tactic-category-tabs>button{flex-shrink:0;min-height:32px;padding:0 10px;border:0;border-radius:5px;background:transparent;color:#536b7e;font:inherit;font-size:12px;cursor:pointer}
.tactic-category-tabs>button[aria-pressed=true]{background:#e7eef4;color:#234e70;font-weight:600}
.tactic-library .saved-tactic{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 36px auto;align-items:center;gap:2px;padding:10px 0;border:0;border-top:1px solid #e1e9ef;border-radius:0;background:transparent;overflow:visible}
.tactic-library .saved-tactic.selected{background:#f0f5f8;box-shadow:none}
.tactic-library .saved-tactic-open{grid-column:1;grid-row:1;display:grid;grid-template-columns:30px minmax(0,1fr) 16px;align-items:center;gap:10px;min-width:0;width:100%;padding:6px;background:transparent;border:0;text-align:left;text-decoration:none;color:#25445a}
.tactic-library .saved-tactic-open>span:nth-child(2){display:grid;min-width:0;gap:4px}
.tactic-library .saved-tactic-open strong{overflow-wrap:anywhere;font-size:14px;line-height:1.45;font-weight:600}
.tactic-library .saved-tactic-open small{font-size:11px;line-height:1.5;color:#536b7e}
.tactic-library .tactic-mini-pitch{display:grid;place-items:center;width:30px;height:38px;border:0;border-radius:4px;color:#4b6b80;background:#e8eff4}
.tactic-library .tactic-mini-pitch .icon{width:22px;height:26px}
.tactic-library .saved-tactic-open>.icon{width:16px;height:16px}
.tactic-favorite{grid-column:2;grid-row:1;display:grid;place-items:center;width:36px;min-height:42px;padding:6px;border:0;border-radius:5px;background:transparent;color:#60798a;cursor:pointer}
.tactic-favorite[aria-pressed=true]{color:#947128}
.tactic-favorite:disabled{opacity:.45}
.tactic-pinned{color:#285a80;font-weight:500}
.tactic-library .saved-tactic-actions{position:relative;grid-column:3;grid-row:1;top:auto;right:auto;bottom:auto;width:36px;padding:0;background:transparent}
.tactic-library .saved-tactic-actions[open]{z-index:4}
.tactic-library .saved-tactic-actions>summary{display:grid;place-items:center;min-height:42px;padding:0;color:#536b7e;font-size:11px}
.tactic-library-empty{margin:0;padding:22px 0;color:#536b7e;font-size:13px;text-align:center}
.tactic-pin-field{display:flex;align-items:center;gap:8px;align-self:end;min-height:46px;color:#34566e;font-size:13px}
.tactic-pin-field input{width:18px;height:18px;accent-color:#285a83}
.club-hub .hub-directory>.tools-section:nth-child(3){grid-column:1/-1;margin-top:18px;padding:16px 0 0;border:0;border-top:1px solid var(--work-line)}
/* Backup is a focused scrollable workflow with its actions always visible. */
.team-backup-modal{display:flex;flex-direction:column;overflow:hidden;max-height:calc(100dvh - 24px)}
.team-backup-modal>.modal-head{flex-shrink:0}
.backup-content{flex:1;min-height:0;overflow:auto;padding:18px;overscroll-behavior:contain}
.backup-content h3{margin:0 0 8px;color:#26455c;font-size:15px;font-weight:600}
.backup-content p{font-size:13px;line-height:1.75;color:#536b7e}
.backup-content section+section{margin-top:24px;padding-top:20px;border-top:1px solid #e0e8ee}
.backup-content .btn{min-height:42px;font-size:13px;padding:0 16px}
.backup-content [hidden]{display:none!important}
.backup-footer{display:flex;flex-shrink:0;gap:10px;padding:14px 18px calc(14px + env(safe-area-inset-bottom));border-top:1px solid #dce5eb;background:#fff}
.backup-footer>.btn{flex:1;min-height:46px;font-size:14px;border-radius:8px}
.backup-status{margin:16px 0 0;overflow-wrap:anywhere}
.backup-status[data-state=error]{color:#9d3d33}
.backup-status:empty{display:none}
.backup-file-summary{display:grid;gap:6px;margin-top:18px;color:#26455c;font-size:14px}
.backup-file-summary>span{color:#536b7e;font-size:12px}
.backup-record-counts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:16px 0;color:#536b7e;font-size:12px}
.backup-record-counts>span{display:flex;gap:8px;justify-content:space-between;padding-right:16px}
.backup-record-counts b{color:#264b65;font-weight:500;font-variant-numeric:tabular-nums}
.backup-change-list{padding:10px 0;border-top:1px solid #dce5eb}
.backup-change-list>div{display:flex;justify-content:space-between;gap:10px;padding:7px 0;color:#536b7e;font-size:12px}
@media(max-width:360px){.tactic-library .saved-tactic-open{gap:6px;grid-template-columns:24px minmax(0,1fr) 12px}.tactic-library .tactic-mini-pitch{width:24px}.tactic-library .saved-tactic-open strong{font-size:13px}.tactic-library .saved-tactic{grid-template-columns:minmax(0,1fr) 32px auto}.tactic-favorite{width:32px}.tactic-library .saved-tactic-actions{width:30px}}
