/* A shared club product system, with the next fixture as the opening task. */
@font-face {
  font-family: 'Manrope';
  src: url('assets/fonts/Manrope.ttf') format('truetype');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
:root {
  --ink: #1b253b;
  --muted: #626f86;
  --soft: #8d98ac;
  --line: #e6eaf2;
  --canvas: #f5f6fa;
  --paper: #fff;
  --pine: #2c5fe3;
  --pine-2: #214fcb;
  --blue: #2c5fe3;
  --blue-soft: #edf2ff;
  --field: #2b7858;
  --score-font: 'Manrope', 'Segoe UI', sans-serif;
  font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}
body { background: var(--canvas); }
.icon { stroke-width: 1.65; }
::selection { background: #dce5ff; color: #163e9f; }
:focus-visible { outline: 2px solid #7399f0 !important; outline-offset: 4px; }
button { touch-action: manipulation; }
.topbar { height: 76px; background: rgba(245,246,250,.96); border-color: var(--line); }
.crumbs, .crumb-slash { color: #697187; }
.crumbs span:last-child { color: #35415a; }
.sidebar { background: #fff; border-color: var(--line); }
.brand strong { font-size: 17px; letter-spacing: 0; }
.brand small, .nav-caption, .sidebar-team small, .sidebar-bottom { color: #677085; }
.sidebar-team { border-color: var(--line); }
.nav-item { min-height: 47px; border-radius: 10px; color: #626f87; }
.nav-item.active { background: #edf2ff; color: #2c5fe3; }
.nav-item:hover { background: #f4f6fc; color: #2c5fe3; }
.nav-count, .nav-item.active .nav-count { background: #e4ecff; color: #4b68a8; }
.online-dot, .sync-chip::before { background: #7d94bb; }
.sync-chip { color: #657189; font-size: 12px; }
.sync-chip[data-status=error] { color: #b24b43; }
.icon-button { width: 42px; height: 42px; background: #fff; border-color: #e6eaf2; color: #5d6c87; }
.icon-button .icon { width: 21px; height: 21px; }
.page-root { max-width: 1250px; padding-top: 34px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.page-heading { margin-bottom: 26px; }
.page-heading > h1 { margin: 0; }
.page-heading h1 { color: var(--ink); font-size: 32px; font-weight: 700; letter-spacing: -.03em; }
.page-heading p { font-size: 14px; line-height: 1.8; color: var(--muted); }
.btn { min-height: 49px; border-radius: 12px; padding: 0 19px; background: #2c5fe3; font-size: 14px; font-weight: 600; box-shadow: none; }
.btn:hover { background: #2152d0; box-shadow: none; }
.btn-secondary { background: #fff; border-color: #e1e6f0; color: #445573; }
.btn-secondary:hover { background: #f1f5ff; }
.btn-quiet { background: #edf2ff; color: #4065c6; }
.btn-quiet:hover { background: #e2ebff; }
.btn-small { min-height: 38px; border-radius: 9px; font-size: 12px; padding: 0 13px; }
.text-link { min-height: 36px; font-size: 13px; color: #536a90; font-weight: 500; gap: 4px; }
.text-link .icon { width: 14px; height: 14px; }
.panel { border-color: var(--line); border-radius: 16px; box-shadow: none; }
.panel-pad { padding: 25px; }
.panel-head h2, .section-head h2 { font-size: 19px; font-weight: 650; }
.panel-head p { font-size: 13px; line-height: 1.8; color: var(--muted); }
.heading-side, .cloud-note { color: var(--muted); font-size: 13px; }

/* Club identity and next fixture. */
.premium-home { max-width: 1080px; margin: 0 auto; }
.club-intro { position: relative; isolation: isolate; display: flex; align-items: flex-end; gap: 21px; min-height: 242px; margin-bottom: 26px; padding: 30px; overflow: hidden; border-radius: 18px; background: #233744 url('assets/club-pitch.jpg') center 52%/cover; }
.club-intro::before { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg,rgba(13,27,45,.07) 10%,rgba(13,27,45,.52) 50%,rgba(13,27,45,.95) 100%); content: ''; }
.intro-logo { display: grid; place-items: center; flex: 0 0 72px; height: 72px; padding: 6px; border-radius: 14px; background: #f7f8fa; }
.intro-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.intro-copy { flex: 1; min-width: 0; }
.intro-copy h1 { margin: 0 0 10px; color: #fff; font-size: 36px; font-weight: 700; letter-spacing: -.03em; overflow-wrap: anywhere; }
.intro-copy p { margin: 0; color: #d0dbe7; font-size: 14px; line-height: 1.7; }
.intro-copy p > span { margin-left: 17px; }
.intro-season { position: absolute; top: 24px; right: 26px; display: grid; justify-items: end; gap: 7px; flex: 0 0 auto; padding: 9px 11px; border: 0; border-radius: 9px; background: rgba(16,31,49,.68); color: #d0dbe7; cursor: pointer; }
.intro-season strong { color: #f0f4fa; font: 600 22px/1 var(--score-font); letter-spacing: -.03em; }
.intro-season > span { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; }
.intro-season .icon { width: 12px; height: 12px; }
.home-layout { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(270px,.85fr); gap: 32px; align-items: start; }
.home-main, .home-side { min-width: 0; }
.fixture-feature { padding: 26px 27px 0; background: #fff; border-radius: 20px; box-shadow: 0 8px 30px rgba(30,51,93,.045); }
.fixture-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.fixture-heading h2 { margin: 0; color: #26334c; font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.fixture-date { padding: 7px 10px; background: #f1f4fa; border-radius: 7px; color: #5f6e86; font-size: 12px; }
.fixture-clubs { display: grid; grid-template-columns: minmax(0,1fr) 58px minmax(0,1fr); align-items: center; gap: 9px; padding: 27px 0 25px; }
.fixture-team { display: grid; justify-items: center; align-content: start; min-width: 0; text-align: center; }
.fixture-emblem { display: grid; place-items: center; width: 78px; height: 78px; margin-bottom: 15px; }
.fixture-emblem img { width: 100%; height: 100%; object-fit: contain; }
.fixture-fallback { width: 67px; height: 67px; margin-top: 5px; margin-bottom: 21px; border-radius: 19px; background: #eef1f8; color: #626e8b; font-size: 31px; font-weight: 600; }
.fixture-team > strong { max-width: 100%; color: #34425c; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.fixture-team > small { margin-top: 7px; color: #687187; font-size: 12px; }
.fixture-versus { padding-bottom: 39px; text-align: center; color: #696f7c; font: 500 25px/1 var(--score-font); letter-spacing: -.03em; }
.fixture-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 56px; border-top: 1px solid #edf0f6; }
.fixture-footer > span { display: flex; align-items: center; gap: 6px; min-width: 0; color: #657086; font-size: 12px; }
.fixture-footer > span .icon { width: 15px; height: 15px; }
.fixture-schedule { display: inline-flex; align-items: center; gap: 4px; flex: 0 0 auto; min-height: 44px; padding: 0; border: 0; background: transparent; color: #5d718f; font-size: 12px; cursor: pointer; }
.fixture-schedule .icon { width: 12px; height: 12px; }
.fixture-empty { padding-bottom: 24px; }
.fixture-empty h3 { margin: 32px 0 10px; font-size: 23px; }
.fixture-empty p { margin: 0 0 24px; color: #687189; font-size: 14px; }
.home-actions { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; margin: 15px 0 32px; }
.home-actions .btn { min-height: 50px; border-radius: 12px; font-size: 14px; }
.home-actions .icon { width: 18px; height: 18px; }
.home-section-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 0 0 19px; }
.home-section-head h2 { margin: 0; color: #26344f; font-size: 20px; font-weight: 650; letter-spacing: -.02em; }
.home-stat-row { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); }
.home-stat-row .summary-item, .home-stat-row .summary-item:first-child { padding: 0 8px 0 0; text-align: left; }
.home-stat-row .summary-item + .summary-item::before { display: none; }
.home-stat-row .summary-value { color: #33425e; font: 650 34px/1.15 var(--score-font); letter-spacing: -.04em; }
.home-stat-row .summary-value em { margin-left: 2px; color: #65718a; font-size: 15px; font-weight: 500; }
.home-stat-row .summary-label { margin-top: 9px; color: #667188; font-size: 12px; }
.home-form { display: flex; align-items: center; gap: 14px; margin-top: 23px; padding: 18px 0 0; border-top: 1px solid #e5e9f1; }
.home-form > span { color: #637089; font-size: 12px; }
.home-form > div { display: flex; gap: 6px; }
.home-form-result { display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 6px; font-size: 11px; font-weight: 500; cursor: pointer; }
.home-form-result.win { background: #e4f2ea; color: #397558; }
.home-form-result.draw { background: #eeedf7; color: #6e6393; }
.home-form-result.loss { background: #f9e9e9; color: #925b60; }
.home-form > .home-form-note { margin-left: auto; color: #677084; font-size: 11px; }
.home-games { margin-top: 34px; }
.home-game-list { overflow: hidden; padding: 0 22px; border: 1px solid #e8ebf2; border-radius: 16px; background: #fff; }
.home-game { display: grid; grid-template-columns: 35px minmax(0,1fr) auto; align-items: center; gap: 19px; width: 100%; min-height: 94px; padding: 18px 0; border: 0; border-bottom: 1px solid #edf0f5; background: transparent; text-align: left; cursor: pointer; }
.home-game:last-child { border-bottom: 0; }
.home-game-date strong { display: block; color: #63718a; font: 600 20px/1.1 var(--score-font); }
.home-game-date small { display: block; margin-top: 7px; color: #677083; font-size: 11px; }
.home-game-opponent { min-width: 0; }
.home-game-opponent strong { display: block; color: #37445f; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.home-game-opponent small { display: block; margin-top: 7px; color: #677084; font-size: 12px; }
.home-game-score { min-width: 57px; text-align: right; }
.home-game-score strong { display: block; color: #53617e; font: 650 23px/1.1 var(--score-font); letter-spacing: -.02em; }
.home-game-score em { padding: 0 7px; color: #696f79; font-style: normal; font-weight: 400; }
.home-game-score small { display: block; margin-top: 7px; color: #687186; font-size: 11px; }
.home-game-score.win small { color: #427b5d; }
.home-game-score.loss small { color: #995e64; }
.training-promo { position: relative; isolation: isolate; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; width: 100%; min-height: 237px; overflow: hidden; padding: 25px; border: 0; border-radius: 18px; background: #283e40 url('assets/club-pitch.jpg') center/cover; color: #fff; text-align: left; cursor: pointer; }
.training-promo::before { position: absolute; z-index: -1; inset: 0; background: linear-gradient(0deg,rgba(12,27,34,.82),rgba(12,27,34,.04) 90%); content: ''; }
.training-copy strong { display: block; margin-bottom: 11px; font-size: 27px; font-weight: 600; letter-spacing: -.02em; }
.training-copy > span { color: #e1e8e5; font-size: 13px; }
.training-open { display: grid; place-items: center; flex: 0 0 36px; height: 36px; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; }
.training-open .icon { width: 17px; height: 17px; }
.home-leaders { margin-top: 32px; }
.home-leader { display: grid; grid-template-columns: 15px 36px minmax(0,1fr) auto; align-items: center; gap: 13px; width: 100%; min-height: 80px; padding: 13px 0; border: 0; border-bottom: 1px solid #e7ebf3; background: transparent; text-align: left; cursor: pointer; }
.home-leader:last-child { border-bottom: 0; }
.home-leader-rank { color: #657084; font: 500 15px var(--score-font); }
.home-leader-number { display: grid; place-items: center; width: 36px; height: 40px; border-radius: 8px; background: #e9eefb; color: #566b96; font: 600 16px var(--score-font); }
.home-leader-person { min-width: 0; }
.home-leader-person strong { display: block; font-size: 15px; font-weight: 600; color: #3c4964; overflow-wrap: anywhere; }
.home-leader-person small { display: block; margin-top: 6px; font-size: 12px; color: #657187; }
.home-leader-goals { color: #596b8f; font: 600 28px var(--score-font); }
.home-leader-goals small { margin-left: 7px; color: #657086; font: 400 11px 'Microsoft YaHei',sans-serif; }
.home-daily { display: grid; gap: 0; margin-top: 29px; padding: 4px 19px; border: 1px solid #e8ebf2; border-radius: 15px; background: #fff; }
.home-daily > button { display: flex; align-items: center; width: 100%; gap: 13px; min-height: 61px; padding: 0; border: 0; border-bottom: 1px solid #edf0f6; background: transparent; color: #5e718f; font-size: 14px; text-align: left; cursor: pointer; }
.home-daily > button:last-child { border-bottom: 0; }
.home-daily .icon { width: 20px; height: 20px; }
.home-daily .daily-chevron { width: 13px; height: 13px; margin-left: auto; color: #646f82; }

/* Shared lists and standings. */
.roster-head { background: #f2f5fc; color: #626e86; font-size: 13px; }
.player-row { border-color: #e9edf4; }
.player-identity strong { color: #34425f; font-size: 16px; font-weight: 600; }
.player-identity small { color: #656f86; font-size: 12px; }
.player-mobile-stats { color: #687186; }.player-mobile-stats strong { color: #526a96; }
.jersey { background: #ecf1fc; color: #586b93; }
.search-box { min-height: 44px; border-color: #e2e7f1; border-radius: 11px; }
.search-box input { background: transparent; color: #435779; font-size: 14px; }
.match-card { background: #fff; border-color: #e7ebf3; border-radius: 15px; padding: 23px; }
.match-card.match-scheduled { background: #eff4ff; border-color: #dae5ff; }
.match-day strong, .match-card-score strong { color: #46618d; font-family: var(--score-font); }
.match-description strong { font-size: 15px; color: #394966; }
.match-description small, .match-day small, .match-card-score small { color: #656f86; font-size: 12px; }
.season-heading h1 { color: #26334b; font-size: 34px; font-weight: 700; }
.season-heading p { color: #667187; font-size: 13px; }
.season-wordmark { color: #667084; font-size: 12px; }.season-wordmark strong { color: #5b7195; font-family: var(--score-font); }
.rank-tabs { border-color: #e1e6f0; gap: 28px; }
.rank-tab { min-height: 49px; color: #687187; font-size: 14px; }
.rank-tab.active { color: #3b5fba; box-shadow: inset 0 -3px #4975e3; }
.rank-feature { position: relative; isolation: isolate; padding: 24px 27px 0; border-radius: 18px; background: #213544 url('assets/club-pitch.jpg') center 57%/cover; }
.rank-feature::before { position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg,rgba(15,30,49,.96) 0%,rgba(18,35,55,.79) 48%,rgba(22,40,60,.38) 100%),linear-gradient(0deg,rgba(11,25,42,.8),transparent 65%); content: ''; }
.rank-feature:hover { background-color: #213544; }
.feature-topline { padding-bottom: 0; border: 0; }
.feature-kicker { display: inline-flex; align-items: center; gap: 8px; color: #e0e8f2; font-size: 12px; }
.feature-kicker .icon { width: 16px; height: 16px; color: #d4bc87; }
.feature-main { min-height: 182px; }
.feature-person { grid-template-columns: 99px minmax(0,1fr); gap: 7px 19px; }
.feature-jersey { width: 99px; filter: drop-shadow(0 7px 9px rgba(0,0,0,.16)); }
.feature-jersey .kit-body { fill: #f4f5f1; stroke: #d6e0e5; stroke-width: .8; stroke-linejoin: round; }
.feature-jersey .kit-panel { fill: #dce4e8; }
.feature-jersey .kit-collar, .feature-jersey .kit-cuff { fill: #344e6c; }
.feature-jersey .kit-neck { fill: #bfcbd4; }
.feature-jersey .kit-seam { fill: none; stroke: #c9d5db; stroke-width: .8; }
.feature-jersey .kit-mark { fill: none; stroke: #405d7d; stroke-width: 1.8; stroke-linecap: round; }
.feature-jersey text.jersey-number { fill: #2a4464; font: 650 46px var(--score-font); letter-spacing: -2px; }
.feature-person .feature-position { color: #cad7e5; font-size: 12px; }
.feature-person > strong { color: #fff; font-weight: 600; }
.feature-metric > strong { color: #fff; font-family: var(--score-font); font-weight: 600; }
.feature-metric > span { color: #d6e1ec; }
.feature-footer { border-color: rgba(219,231,243,.2); color: #d6e1ec; font-size: 12px; }.feature-footer b { color: #fff; }
.standings-caption h2 { color: #34445e; font-size: 17px; }.standings-caption > span { color: #677187; font-size: 12px; }
.season-table th { background: #eaf0fb; border-color: #dfe7f5; color: #596e8d; font-size: 13px; }
.season-table td { height: 84px; border-color: #e9edf5; }
.season-table .leading-row { background: #eaf0ff; }.season-table .leading-row td:first-child { box-shadow: none; }
.standing-rank, .standing-rank.top-rank { color: #5f7091; font-family: var(--score-font); font-weight: 500; }
.ranking-player strong { color: #354968; font-size: 15px; }.ranking-player small { color: #65718a; font-size: 12px; }
.ranking-shirt { background: #e4ebfa; color: #54688e; }
.secondary-score { color: #657084; font-family: var(--score-font); }
.standing-value { color: #526fa3; font-family: var(--score-font); font-size: 25px; font-weight: 600; }
.standings-note { color: #647086; font-size: 12px; }.standings-note > span { background: #9aaecf; }
.profile-main h2 { color: #344766; }.profile-main p { color: #657189; font-size: 14px; }
.profile-stat strong { color: #496fb7; font-family: var(--score-font); }.profile-stat span { font-size: 13px; color: #657188; }
.moment-card { border-radius: 16px; padding: 24px; }.moment-card p { font-size: 15px; line-height: 1.9; color: #465671; }
.moment-tag { background: #f0f4fd; color: #5d7093; font-size: 12px; border-radius: 6px; }.moment-meta { color: #646f85; font-size: 13px; }
.honor-card { background: #fff; border-radius: 16px; }.honor-card h3 { font-size: 17px; color: #555569; }
.honor-icon { background: #f7f1e7; border-color: #eae1d1; color: #7a6b4f; }
.honor-card p { font-size: 13px; line-height: 1.8; color: #6e6e7d; }.honor-year { color: #786e63; font-size: 12px; }
.balance-card { background: #253e75; border-radius: 18px; }
.balance-main strong, .balance-cell strong { font-family: var(--score-font); color: #f4f7ff; font-weight: 550; }
.balance-main small, .balance-cell small { color: #beceef; font-size: 13px; }
.ledger-row { border-color: #e9edf4; min-height: 87px; }.ledger-row strong { color: #4e5b73; font-size: 15px; }.ledger-row small { color: #667187; font-size: 12px; }
.ledger-amount { font-family: var(--score-font); }.ledger-amount.income { color: #457b63; }.ledger-amount.expense { color: #996166; }
.team-cover { background: #fff; border: 1px solid #e6ebf3; border-radius: 17px; }.team-cover h2 { color: #3f516e; }.team-cover p { color: #636f84; font-size: 13px; }
.detail-row { color: #657086; border-color: #eef1f6; font-size: 14px; }.detail-row strong { color: #536583; font-weight: 500; }
.tools-profile strong { color: #2e3d57; }.tools-profile small, .tools-storage { color: #657085; }.tools-profile > .icon { color: #606f89; }
.tools-badge { border-color: #e7ebf3; border-radius: 17px; }
.tool-feature { background: #315eae; border-radius: 16px; }.tool-feature-pitch.icon { color: #afc8f4; }.tool-feature small, .tool-feature > .icon:last-child { color: #d2e1fa; }
.tools-section > h2 { color: #646f85; font-size: 14px; }.tools-list, .tools-account { border-color: #e5eaf3; border-radius: 16px; }
.tool-row { min-height: 85px; border-color: #edf0f6; }.tool-row-icon { color: #5c7194; }
.tool-row-label strong, .tools-account strong { color: #485b7b; font-size: 16px; font-weight: 500; }
.tool-row-label small, .tools-account small { color: #656f84; font-size: 13px; }.tool-chevron { color: #667184; }

/* Forms and account screens use quiet blue-grey edges and readable controls. */
.modal { border-color: #e6eaf3; border-radius: 19px; box-shadow: 0 26px 90px rgba(26,43,77,.16); }
.modal-backdrop { background: rgba(27,39,64,.34); backdrop-filter: blur(6px); }
.modal-head { border-color: #eef1f7; }.modal-head h2 { color: #344660; font-size: 23px; font-weight: 600; }.modal-head p { color: #63718a; font-size: 13px; }
.modal-close { background: #f1f4fa; color: #5f6f8b; }
.form-field label, .field-label { color: #5a7192; font-size: 13px; font-weight: 500; }
.form-field input, .form-field select, .form-field textarea { min-height: 51px; padding: 13px 14px; border: 1px solid #e2e8f3; border-radius: 11px; background: #fbfcff; color: #526786; font-size: 16px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: #9cb8ec; box-shadow: 0 0 0 3px rgba(92,133,209,.08); }
.form-field input::placeholder, .form-field textarea::placeholder, .auth-field input::placeholder { color: #636f85; }
.form-hint { color: #627086; font-size: 12px; }.required-mark { color: #657188; font-size: 11px; }.form-actions { border-color: #e9eef7; }
.score-stepper { border-color: #e1e9f5; border-radius: 12px; background: #f2f6ff; }.score-stepper button { color: #4f71a9; }.score-stepper input { color: #57729a; font-family: var(--score-font); font-weight: 600; }
.score-stepper input::placeholder { color: #62728e; }.score-hint { color: #627188; font-size: 12px; }.score-colon { color: #637188; }
.match-player-list { border-color: #e5ebf5; border-radius: 12px; }.match-player-heading { background: #f2f6fd; color: #5f718d; font-size: 12px; }.match-player-row { border-color: #edf1f8; background: #fff; }
.attendance-cell strong { color: #577196; font-size: 12px; }.attendance-cell small { color: #607089; font-size: 11px; }.attendance-cell > input { accent-color: #7099e2; }
.form-field .match-stat-input input { min-height: 41px; color: #5674a2; border-color: #e5edf9; background: #f9fbff; border-radius: 7px; font-size: 15px; }
.auth-content h1 { color: #344861; font-size: 32px; }.auth-subtitle { color: #62718e; font-size: 14px; }.auth-tabs { border-color: #e2eaf7; }.auth-tabs button { color: #61718a; font-size: 15px; }.auth-tabs button.active { color: #5071ab; box-shadow: inset 0 -2px #7da4e7; }
.auth-field input, .cloud-entry input, .invite-form input { background: #fbfcff; border-color: #e0e9f8; border-radius: 11px; min-height: 52px; color: #526f96; }
.password-wrap { border-color: #e0e9f8; border-radius: 11px; background: #fbfcff; }.password-wrap input { border: 0; background: transparent; }.password-wrap button { color: #597191; font-size: 12px; }.password-wrap:focus-within { outline-color: #b4cbef; }
.auth-notice { border-color: #e6edf9; color: #63728c; font-size: 12px; }.auth-user, .cloud-note { color: #62728d; }
.auth-message { background: #f9eeed; color: #8e625a; }.auth-message.success { background: #edf5f0; color: #547565; }
.auth-workspace .cloud-team-row { background: #f2f6fe; border-color: #e3ebf8; color: #567098; }.invite-code-output { border-color: #dbe6f9; background: #f1f6ff; color: #567198; }
.cloud-member-row { border-color: #e9eff9; }.cloud-member-row strong { color: #577198; font-size: 14px; }.cloud-member-row small { color: #647188; font-size: 12px; }
.tactics-board { border-radius: 16px; border-color: #e5ebf5; background: #fff; }.tactics-pitch { border-color: #295a43; background-color: #467c51; }.tactic-dot { background: #f9fbff; border-color: #dbe6fb; color: #4c72b2; }
.pitch-orientation { color: #5f728e; }.pitch-orientation strong { color: #54709a; }.tactics-select { border-color: #e1eaf8; border-radius: 10px; color: #5c718e; }.tactics-select select { color: #5171a4; }.tactics-reset, .tactics-hint { color: #5c718e; }
.bench-row { background: #f4f7fd; border-radius: 9px; }.bench-row strong { color: #597194; font-size: 13px; }.bench-row small { color: #657186; font-size: 12px; }
.tactic-studio { border-color: #e4edf9; }.studio-heading strong { color: #5a7194; font-size: 15px; }.studio-heading small { color: #657186; font-size: 12px; }.record-button { background: #aa6c63; }.record-button:hover { background: #955c54; }
.tactic-time, .saved-tactic-open small { color: #61718c; }.saved-tactic { border-color: #dfeafb; border-radius: 10px; }.saved-tactic-open strong { color: #577197; font-size: 14px; }.saved-tactic.selected { border-color: #b4cef3; box-shadow: inset 2px 0 #afc9ef; }

@media (max-width:1100px) and (min-width:781px) {
  .home-layout { gap: 23px; grid-template-columns: minmax(0,1.2fr) minmax(240px,.85fr); }
  .fixture-feature { padding-left: 23px; padding-right: 23px; }
  .training-promo { padding: 23px; }.intro-copy p > span { margin-left: 8px; }
}
@media (max-width:780px) {
  .main-area { padding-bottom: calc(89px + env(safe-area-inset-bottom)); }
  .topbar { height: 64px; padding: 0 23px; border-bottom: 0; background: rgba(245,246,250,.97); }
  .topbar .icon-button { width: 42px; height: 42px; }
  .mobile-brand { gap: 0; }
  .mobile-brand strong { color: #636f86; font-size: 14px; font-weight: 500; letter-spacing: .02em; }
  .mobile-brand .brand-mark { display: none; }
  .topbar-actions { gap: 12px; }.sync-chip { color: #637087; font-size: 11px; }.sync-chip::before { background: #91a9ce; }
  .page-root { padding: 15px 23px 31px; }
  .page-heading { margin: 5px 0 27px; }.page-heading h1 { font-size: 29px; }.page-heading p { font-size: 13px; max-width: 230px; line-height: 1.8; }
  .page-heading .btn { font-size: 12px; min-height: 42px; border-radius: 11px; }
  .club-intro { gap: 15px; min-height: 204px; margin-bottom: 23px; padding: 22px; border-radius: 16px; }
  .intro-logo { flex-basis: 59px; height: 59px; border-radius: 12px; }
  .intro-copy h1 { margin-bottom: 8px; font-size: 29px; }
  .intro-copy p { font-size: 12px; line-height: 1.65; }
  .intro-copy p > span { display: block; margin: 3px 0 0; }
  .intro-season { top: 18px; right: 19px; gap: 6px; padding: 8px 10px; }.intro-season strong { font-size: 19px; }.intro-season > span { font-size: 11px; }
  .home-layout { display: flex; flex-direction: column; gap: 0; }.home-main, .home-side { width: 100%; }
  .fixture-feature { padding: 20px 21px 0; border-radius: 18px; box-shadow: 0 6px 26px rgba(28,52,100,.045); }
  .fixture-heading h2 { font-size: 16px; }.fixture-date { padding: 6px 9px; border-radius: 6px; font-size: 11px; }
  .fixture-clubs { grid-template-columns: minmax(0,1fr) 43px minmax(0,1fr); gap: 8px; padding: 23px 0 22px; }
  .fixture-emblem { width: 66px; height: 66px; margin-bottom: 12px; }
  .fixture-fallback { width: 57px; height: 57px; margin-top: 4px; margin-bottom: 17px; border-radius: 16px; font-size: 27px; }
  .fixture-team > strong { font-size: 14px; }.fixture-team > small { margin-top: 6px; font-size: 11px; }
  .fixture-versus { padding-bottom: 33px; font-size: 24px; }
  .fixture-footer { min-height: 51px; }.fixture-footer > span { font-size: 11px; gap: 5px; }.fixture-footer > span .icon { width: 14px; height: 14px; }
  .fixture-schedule { min-height: 44px; font-size: 11px; }
  .fixture-empty { padding-bottom: 23px; }.fixture-empty h3 { font-size: 22px; }.fixture-empty p { font-size: 13px; }
  .home-actions { margin: 14px 0 29px; gap: 11px; }.home-actions .btn { min-height: 48px; font-size: 14px; border-radius: 12px; }
  .home-section-head { margin-bottom: 20px; }.home-section-head h2 { font-size: 20px; }.home-section-head .text-link { font-size: 12px; }
  .home-stat-row .summary-value { font-size: 31px; }.home-stat-row .summary-value em { font-size: 13px; }.home-stat-row .summary-label { margin-top: 9px; font-size: 11px; }
  .home-form { margin-top: 21px; padding-top: 16px; gap: 13px; }.home-form > span { font-size: 11px; }.home-form-result { width: 25px; height: 25px; font-size: 11px; }.home-form > .home-form-note { font-size: 11px; }
  .home-games { margin-top: 31px; }.home-game-list { padding: 0 18px; border-radius: 15px; }
  .home-game { min-height: 90px; gap: 15px; grid-template-columns: 32px minmax(0,1fr) auto; }
  .home-game-date strong { font-size: 20px; }.home-game-date small { font-size: 11px; }.home-game-opponent strong { font-size: 14px; }.home-game-opponent small { font-size: 11px; }.home-game-score strong { font-size: 22px; }.home-game-score em { padding: 0 6px; }
  .home-side { margin-top: 31px; }.training-promo { min-height: 188px; padding: 24px; border-radius: 16px; }.training-copy strong { font-size: 26px; }.training-copy > span { font-size: 13px; }
  .home-leaders { margin-top: 31px; }.home-leader { min-height: 82px; }.home-leader-person strong { font-size: 15px; }.home-leader-person small { font-size: 12px; }
  .home-daily { margin-top: 26px; }.home-daily > button { min-height: 64px; font-size: 14px; }
  .panel-pad { padding: 22px; }.panel-head h2 { font-size: 18px; }.panel-head p { font-size: 13px; }
  .roster { overflow: hidden; border: 1px solid #e6ebf4; border-radius: 16px; background: #fff; padding: 0 18px; }
  .player-row { padding: 20px 0; min-height: 100px; border-color: #edf1f7; }.player-row:last-child { border-bottom: 0; }
  .player-identity strong { font-size: 15px; }.player-identity small { font-size: 12px; }.player-identity .avatar { width: 42px; height: 42px; font-size: 13px; }
  .player-mobile-stats { padding-left: 54px; font-size: 11px; gap: 17px; }
  .row-actions .btn { min-height: 35px; padding: 0 10px; border-radius: 8px; font-size: 11px; }
  .toolbar { margin-bottom: 16px !important; }.search-box { width: 126px; min-height: 41px; height: 41px; padding: 0 10px; }.search-box input { width: 87px; font-size: 13px; }
  .match-card { padding: 22px 15px; border-radius: 14px; grid-template-columns: 46px minmax(0,1fr) 65px; gap: 10px; }
  .match-day strong { font-size: 24px; }.match-day small { font-size: 11px; }.match-description strong { font-size: 13px; }.match-description small { font-size: 11px; }.match-description .mini-crest { width: 32px; height: 32px; background: #f2f5fc; color: #5f718e; }
  .match-card-score strong { font-size: 23px; }.match-card-score .text-link { font-size: 11px; }
  .season-heading { margin: 5px 0 25px; }.season-heading h1 { font-size: 31px; }.season-heading p { font-size: 13px; }.season-wordmark { font-size: 11px; }
  .rank-tabs { gap: 21px; margin-bottom: 22px; }.rank-tab { font-size: 13px; }
  .rank-feature { padding: 21px 22px 0; border-radius: 17px; }.feature-main { min-height: 172px; }.feature-person { grid-template-columns: 82px minmax(0,1fr); gap: 6px 14px; }.feature-jersey { width: 82px; }.feature-person > strong { font-size: 27px; }.feature-metric > strong { font-size: 77px; }
  .feature-footer { min-height: 49px; font-size: 11px; }.feature-kicker, .feature-club { font-size: 11px; }
  .season-results { margin-top: 29px; }.season-table th { height: 45px; font-size: 12px; }.season-table td { height: 83px; }.ranking-player strong { font-size: 14px; }.ranking-player small { font-size: 11px; }.standing-value { font-size: 24px; }.standings-note { font-size: 11px; }
  .balance-card { padding: 27px 23px; border-radius: 18px; }.balance-main strong { font-size: 41px; }.balance-cell strong { font-size: 18px; }.balance-cell small { font-size: 11px; }
  .ledger-row { padding: 19px; }.ledger-row strong { font-size: 14px; }.ledger-row small { font-size: 12px; }.ledger-amount { font-size: 18px; }
  .team-cover { padding: 25px; }.team-cover h2 { font-size: 26px; }.team-cover p { font-size: 13px; }.detail-row { font-size: 13px; }
  .tools-page .page-heading h1 { font-size: 30px; }.tools-page .page-heading p { font-size: 13px; }.tools-profile strong { font-size: 25px; }.tools-profile small { font-size: 13px; }.tools-profile { padding-bottom: 26px; }
  .tool-feature { min-height: 117px; padding: 23px; border-radius: 16px; }.tool-feature strong { font-size: 23px; }.tool-feature small { font-size: 12px; }
  .tools-section { margin-bottom: 29px; }.tool-row { min-height: 86px; }.tool-row-label strong, .tools-account strong { font-size: 15px; }.tool-row-label small, .tools-account small { font-size: 12px; }.tools-list { padding: 0 19px; }.tools-account { padding: 23px 19px; }
  .modal { max-height: 91dvh; padding: 25px 22px calc(20px + env(safe-area-inset-bottom)); border-radius: 23px 23px 0 0; }
  .modal-head { top: -25px; }.modal-head h2 { font-size: 22px; }.modal-head p { font-size: 12px; }.form-grid { gap: 18px 12px; }
  .form-field label, .field-label { font-size: 13px; }.form-field input, .form-field select, .form-field textarea { min-height: 51px; font-size: 16px; }
  .form-actions { margin-right: -22px; margin-left: -22px; padding-left: 22px; padding-right: 22px; }.form-actions .btn { min-height: 50px; }.form-hint { font-size: 11px; }
  .match-player-heading, .match-player-row { grid-template-columns: minmax(0,1fr) repeat(3,40px); gap: 6px; padding-left: 8px; padding-right: 8px; }.form-field .match-stat-input input { min-height: 40px; }.attendance-cell strong { font-size: 11px; }
  .auth-content { padding: 10px 3px 25px; }.auth-logo { margin-bottom: 28px; }.auth-content h1 { font-size: 32px; }.auth-subtitle { font-size: 14px; margin-bottom: 30px; }.auth-tabs { margin-bottom: 28px; }.auth-form { gap: 20px; }.auth-field input { min-height: 53px; }.auth-form > .btn { min-height: 51px; margin-top: 5px; }.auth-notice { font-size: 12px; }
  .tactics-layout { gap: 24px; }.tactics-board { padding: 12px; border-radius: 15px; }.tactics-lineup { padding: 22px; }.tactic-record-controls .btn { font-size: 12px; min-height: 46px; }.tactic-save-row .btn { font-size: 13px; }.tactic-play { min-width: 91px; }.tactic-time { font-size: 11px; }
  .mobile-nav { min-height: calc(76px + env(safe-area-inset-bottom)); padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid #e9edf5; background: rgba(255,255,255,.98); }
  .mobile-nav-item { min-height: 54px; gap: 4px; color: #636f84; font-size: 11px; }
  .mobile-nav-item .icon, .mobile-add .icon { width: 29px; height: 29px; padding: 3px; border-radius: 10px; }
  .mobile-nav-item.active { color: #466ec6; font-weight: 600; }.mobile-nav-item.active .icon { background: #edf3ff; stroke-width: 1.8; }
  .mobile-add { width: 29px; height: 29px; margin: 0; background: transparent; }
}
@media (max-width:360px) {
  .topbar { padding-right: 18px; padding-left: 18px; }.page-root { padding-left: 18px; padding-right: 18px; }
  .club-intro { gap: 13px; }.intro-logo { flex-basis: 58px; height: 58px; }.intro-copy h1 { font-size: 27px; }.intro-copy p { font-size: 11px; }.intro-season strong { font-size: 17px; }
  .fixture-feature { padding-left: 18px; padding-right: 18px; }.fixture-heading h2 { font-size: 15px; }.fixture-date { font-size: 11px; }
  .fixture-clubs { grid-template-columns: minmax(0,1fr) 34px minmax(0,1fr); }.fixture-team > strong { font-size: 13px; }.fixture-emblem { width: 59px; height: 59px; }.fixture-fallback { width: 51px; height: 51px; margin-bottom: 16px; font-size: 25px; }.fixture-versus { font-size: 21px; }
  .home-stat-row .summary-value { font-size: 28px; }.home-stat-row .summary-label { font-size: 11px; }.home-form { gap: 9px; }.home-form-result { width: 23px; height: 24px; }.home-form > div { gap: 5px; }.home-form > .home-form-note { font-size: 11px; }
  .home-game-list { padding: 0 15px; }.home-game { gap: 12px; }.home-game-opponent strong { font-size: 13px; }.home-game-score strong { font-size: 21px; }.home-game-score em { padding: 0 5px; }
  .rank-tabs { gap: 14px; }.rank-tab { font-size: 12px; }.feature-person { grid-template-columns: 67px minmax(0,1fr); gap: 5px 10px; }.feature-jersey { width: 67px; }.feature-person > strong { font-size: 24px; }.feature-metric > strong { font-size: 64px; }.rank-feature { padding-left: 18px; padding-right: 18px; }
  .player-identity strong { font-size: 14px; }.player-mobile-stats { gap: 12px; }.match-description .mini-crest { display: none; }
  .match-player-heading, .match-player-row { grid-template-columns: minmax(0,1fr) repeat(3,35px); gap: 5px; padding-right: 6px; padding-left: 6px; }.form-grid { gap: 17px 10px; }
  .tools-list { padding: 0 17px; }.tool-row { gap: 12px; }.tool-feature { gap: 14px; padding: 22px 19px; }.tool-feature small { font-size: 11px; }
}
@media(prefers-reduced-motion:reduce) { *, *::before, *::after { transition-duration: .01ms !important; scroll-behavior: auto !important; } }

/* Alternate homepage for the visual comparison page. */
body[data-look=night][data-page=overview] { background: #162137; }
body[data-look=night][data-page=overview] .main-area { background: #162137; }
body[data-look=night][data-page=overview] .topbar { background: #162137; border-color: #29364e; }
body[data-look=night][data-page=overview] .mobile-brand strong { color: #b6c5df; }
body[data-look=night][data-page=overview] .sync-chip { color: #8a9cb7; }
body[data-look=night][data-page=overview] .icon-button { background: #23304a; color: #c4d2ea; border-color: #32415e; }
body[data-look=night][data-page=overview] .crumbs, body[data-look=night][data-page=overview] .crumbs span:last-child { color: #a1b3d0; }
body[data-look=night][data-page=overview] .club-intro { position: relative; isolation: isolate; min-height: 272px; margin-bottom: 26px; padding: 29px; align-items: flex-end; overflow: hidden; border-radius: 20px; background: #253b43 url('assets/club-pitch.jpg') center 50%/cover; }
body[data-look=night][data-page=overview] .club-intro::before { position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg,rgba(12,26,43,.94),rgba(12,26,43,.05)); content: ''; }
body[data-look=night][data-page=overview] .intro-logo { flex-basis: 67px; height: 67px; padding: 7px; border-radius: 15px; background: #fff; }
body[data-look=night][data-page=overview] .intro-copy h1 { color: #fff; font-size: 39px; }
body[data-look=night][data-page=overview] .intro-copy p { color: #bdcce0; }
body[data-look=night][data-page=overview] .intro-season { position: absolute; top: 26px; right: 28px; color: #bdcce0; }
body[data-look=night][data-page=overview] .intro-season strong { color: #dce6f4; }
body[data-look=night][data-page=overview] .fixture-feature { background: #24334c; box-shadow: none; }
body[data-look=night][data-page=overview] .fixture-heading h2 { color: #d2dff0; }
body[data-look=night][data-page=overview] .fixture-date { background: #33445e; color: #afc3df; }
body[data-look=night][data-page=overview] .fixture-team > strong { color: #dce6f5; }
body[data-look=night][data-page=overview] .fixture-team > small { color: #a0b5d4; }
body[data-look=night][data-page=overview] .fixture-fallback { background: #3e5372; color: #abc0df; }
body[data-look=night][data-page=overview] .fixture-versus { color: #8ca6c9; }
body[data-look=night][data-page=overview] .fixture-footer { border-color: #3a4b66; }
body[data-look=night][data-page=overview] .fixture-footer > span, body[data-look=night][data-page=overview] .fixture-schedule { color: #9db1ce; }
body[data-look=night][data-page=overview] .home-actions .btn { background: #4a70bc; color: #fff; border-color: transparent; }
body[data-look=night][data-page=overview] .home-actions .btn-secondary { background: #24334c; color: #b6c8e4; border-color: #354861; }
body[data-look=night][data-page=overview] .home-section-head h2 { color: #d4e0f2; }
body[data-look=night][data-page=overview] .text-link { color: #8da9d2; }
body[data-look=night][data-page=overview] .home-stat-row .summary-value { color: #dce7f6; }
body[data-look=night][data-page=overview] .home-stat-row .summary-label, body[data-look=night][data-page=overview] .home-form > span { color: #9aafcd; }
body[data-look=night][data-page=overview] .home-form { border-color: #2d3d57; }
body[data-look=night][data-page=overview] .home-form-result.win { background: #31534e; color: #aad0bf; }
body[data-look=night][data-page=overview] .home-form-result.draw { background: #424e69; color: #b3bbd7; }
body[data-look=night][data-page=overview] .home-form-result.loss { background: #5a414f; color: #d9aab7; }
body[data-look=night][data-page=overview] .home-game-list, body[data-look=night][data-page=overview] .home-daily { background: #24334c; border-color: #2c3c56; }
body[data-look=night][data-page=overview] .home-game, body[data-look=night][data-page=overview] .home-leader, body[data-look=night][data-page=overview] .home-daily > button { border-color: #34445e; }
body[data-look=night][data-page=overview] .home-game-opponent strong, body[data-look=night][data-page=overview] .home-game-score strong, body[data-look=night][data-page=overview] .home-leader-person strong { color: #c7d7ee; }
body[data-look=night][data-page=overview] .home-game-date strong, body[data-look=night][data-page=overview] .home-game-opponent small, body[data-look=night][data-page=overview] .home-leader-person small { color: #9db1cf; }
body[data-look=night][data-page=overview] .home-game-date small { color: #97adcb; }
body[data-look=night][data-page=overview] .home-game-score em { color: #8199ba; }
body[data-look=night][data-page=overview] .home-leader-number { background: #334b70; color: #9fb8df; }
body[data-look=night][data-page=overview] .home-leader-goals, body[data-look=night][data-page=overview] .home-daily > button { color: #9db7e0; }
body[data-look=night][data-page=overview] .training-promo { display: none; }
body[data-look=night][data-page=overview] .home-leaders { margin-top: 0; }
body[data-look=night][data-page=overview] .mobile-nav { background: #1e2c44; border-color: #2f405b; }
body[data-look=night][data-page=overview] .mobile-nav-item { color: #9cb0ce; }
body[data-look=night][data-page=overview] .mobile-nav-item.active { color: #aac4ed; }
body[data-look=night][data-page=overview] .mobile-nav-item.active .icon { background: #304867; }
@media(max-width:780px) {
  body[data-look=night][data-page=overview] .club-intro { min-height: 241px; margin: 0 0 24px; padding: 23px; gap: 16px; border-radius: 17px; }
  body[data-look=night][data-page=overview] .intro-logo { flex-basis: 58px; height: 58px; padding: 6px; border-radius: 13px; }
  body[data-look=night][data-page=overview] .intro-copy h1 { font-size: 32px; margin-bottom: 9px; }
  body[data-look=night][data-page=overview] .intro-copy p { font-size: 12px; }
  body[data-look=night][data-page=overview] .intro-copy p > span { display: none; }
  body[data-look=night][data-page=overview] .intro-season { top: 21px; right: 22px; }
  body[data-look=night][data-page=overview] .home-side { margin-top: 32px; }
}

@media(max-width:780px) { .topbar .icon-button { width:44px; height:44px; } }
.home-form-result { cursor:default; }
.score-stepper:focus-within { border-color:#9cb8ec; box-shadow:0 0 0 3px rgba(92,133,209,.08); }
.form-field input:not(:focus):hover, .form-field select:not(:focus):hover, .form-field textarea:not(:focus):hover { border-color:#c8d6ed; }

body[data-look=night][data-page=overview] .intro-season { padding:10px 11px; border-radius:9px; background:rgba(17,32,52,.76); }

.sidebar-team { width:100%; color:#536584; text-align:left; cursor:pointer; }
.sidebar-team .side-chevron { width:14px; height:14px; }
.sidebar-team:hover { background:#f6f8fd; }
.modal-head p { text-wrap:balance; }
.form-field .field-foot { justify-content: flex-end; }
.score-hint:empty { display: none; }
.auth-content h1 { margin-bottom: 25px; }
.auth-layout { isolation: isolate; }
.auth-art { pointer-events: none; }
.auth-content { position: relative; z-index: 1; }
.auth-field input { pointer-events: auto; user-select: text; -webkit-user-select: text; }
.clearable-input { display: flex; align-items: center; min-width: 0; border: 1px solid #e0e9f8; border-radius: 11px; background: #fbfcff; }
.clearable-input > input { flex: 1; min-width: 0; border: 0; background: transparent; }
.clearable-input > input:focus { outline: 0 !important; box-shadow: none; background: transparent; }
.clearable-input:focus-within { outline: 2px solid #9bb8ec; outline-offset: 2px; background: #fff; }
.clearable-input > button { flex: 0 0 52px; min-height: 44px; padding: 0 8px; border: 0; border-radius: 8px; background: transparent; color: #5d7595; font: inherit; font-size: 12px; cursor: pointer; }
.clearable-input > input:placeholder-shown + button { visibility: hidden; pointer-events: none; }

/* Club squad, arranged by playing position. */
.roster-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.roster-toolbar .search-box { flex: 1; min-width: 0; max-width: 240px; }
.roster-toolbar .heading-side, .roster-export { flex-shrink: 0; }
.roster-export { min-height: 44px; padding: 0 3px; }
.squad-groups { display: grid; gap: 20px; }
.squad-group { overflow: hidden; border-radius: 16px; background: #f0f2f4; }
.squad-group > header { display: flex; align-items: center; justify-content: space-between; min-height: 54px; padding: 0 21px; color: #667284; border-bottom: 1px solid #fff; }
.squad-group h2 { display: flex; align-items: center; gap: 11px; margin: 0; font-size: 15px; font-weight: 600; }
.squad-group h2 > span { color: #7b8798; font: 500 12px var(--score-font); }
.squad-group > header > span { min-width: 39px; text-align: center; font-size: 13px; }
.squad-member { display: grid; grid-template-columns: 44px minmax(0,1fr) 39px; align-items: center; gap: 14px; width: 100%; min-height: 83px; padding: 14px 21px; border: 0; border-bottom: 1px solid #fff; background: #f1f3f5; text-align: left; cursor: pointer; }
.squad-member:nth-child(odd) { background: #eceff2; }
.squad-member:last-child { border-bottom: 0; }
.squad-member:hover { background: #e5eaf0; }
.roster-avatar { position: relative; display: inline-grid; width: 44px; height: 48px; flex: 0 0 44px; overflow: hidden; border-radius: 9px; }
.roster-avatar .avatar { width: 100%; height: 100%; border: 0; border-radius: inherit; font-size: 18px; }
.roster-avatar > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.squad-member-copy { min-width: 0; }
.squad-member-name { display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 6px; line-height: 1.55; }
.squad-member-name > strong { color: #293b51; font-size: 15px; font-weight: 650; overflow-wrap: anywhere; }
.squad-member-name > span { color: #6b7b8f; font-size: 12px; }
.squad-member-copy > small { display: flex; gap: 10px; align-items: center; margin-top: 4px; color: #718095; font-size: 12px; line-height: 1.5; }
.squad-member-copy b { padding: 1px 5px; border-radius: 3px; background: #e0e7f0; color: #586e8d; font-size: 10px; font-weight: 500; }
.squad-member-age { text-align: center; color: #65788e; font: 500 15px var(--score-font); }
.roster-no-results { padding: 32px 0; text-align: center; color: #6c7b8d; font-size: 14px; }
.profile-main .roster-avatar { width: 62px; height: 68px; flex-basis: 62px; }

/* Formation and substitution controls share the actual pitch slot model. */
.tactics-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 17px; }
.formation-trigger { display: inline-flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 15px; border: 0; border-radius: 10px; background: #203b4e; color: #fff; cursor: pointer; }
.formation-trigger > span { color: #c2d3dd; font-size: 12px; }
.formation-trigger > strong { font: 600 17px var(--score-font); }
.formation-trigger > .icon { width: 13px; height: 13px; margin-left: 4px; color: #c2d3dd; transform: rotate(90deg); }
.tactics-toolbar .tactics-reset { min-height: 44px; padding: 0 4px; font-size: 12px; }
.tactic-player { -webkit-touch-callout: none; }
.tactic-player .tactic-dot { transition: box-shadow .15s ease; }
.tactic-player.is-holding .tactic-dot { box-shadow: 0 0 0 5px rgba(239,247,255,.25); }
.tactic-player.is-keeper .tactic-dot, .keeper-number { background: #e4cb90; border-color: #f7e9c7; color: #51432b; }
.tactic-vacancy .tactic-dot { border-style: dashed; border-color: rgba(255,255,255,.6); background: rgba(23,59,37,.45); color: #fff; font-size: 22px; box-shadow: none; }
.tactic-vacancy { cursor: pointer; touch-action: manipulation; }
.lineup-count { font: 600 22px var(--score-font); color: #334e65; }
.lineup-count small { color: #7d8b9c; font-size: 13px; font-weight: 500; }
.lineup-slots { display: grid; }
.lineup-slot { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 67px; padding: 11px 0; border: 0; border-bottom: 1px solid #edf0f4; background: transparent; text-align: left; cursor: pointer; }
.lineup-number { display: grid; place-items: center; flex: 0 0 35px; width: 35px; height: 39px; border-radius: 8px; background: #edf2f8; color: #4f6b8c; font: 600 17px var(--score-font); }
.lineup-number.keeper-number { background: #f0e5cd; color: #8b7345; }
.lineup-slot > span:nth-child(2), .substitution-current > span:nth-child(2), .substitution-option > span:nth-child(2) { display: grid; gap: 5px; min-width: 0; }
.lineup-slot strong, .substitution-current strong { color: #30465e; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.lineup-slot small, .substitution-current small { color: #788798; font-size: 11px; }
.lineup-replace { margin-left: auto; flex-shrink: 0; color: #6e829b; font-size: 12px; }
.lineup-slot:hover .lineup-replace { color: #2c5fe3; }
.lineup-bench-heading { display: flex; align-items: center; gap: 9px; margin-top: 23px; }
.lineup-bench-heading h3 { margin: 0; color: #67788b; font-size: 13px; font-weight: 500; }
.lineup-bench-heading > span { color: #8c98a7; font: 500 12px var(--score-font); }
.lineup-bench { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.bench-chip { display: inline-flex; align-items: center; gap: 9px; padding: 9px 11px; border-radius: 7px; background: #f1f4f8; color: #60748e; font-size: 12px; }
.bench-chip b { font: 600 14px var(--score-font); color: #415e7b; }
.lineup-empty { color: #8592a3; font-size: 12px; }
.formation-modal, .substitution-modal { width: min(100%,560px); }
.formation-sizes { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 6px; margin-bottom: 22px; }
.formation-sizes button { min-height: 44px; padding: 0 3px; border: 0; border-radius: 8px; background: #f0f3f7; color: #65798e; font-size: 13px; cursor: pointer; }
.formation-sizes button[aria-pressed=true] { background: #233f52; color: #fff; }
.formation-options { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.formation-option { display: grid; justify-items: center; gap: 9px; min-width: 0; padding: 13px 8px; border: 1px solid #e1e7ed; border-radius: 11px; background: #fafcfd; cursor: pointer; }
.formation-option[aria-pressed=true] { border-color: #597b76; background: #edf3f0; }
.formation-option svg { width: 75px; height: 94px; fill: none; stroke: #c4d2cd; stroke-width: .8; }
.formation-option .formation-dot { fill: #536f66; stroke: #f4f7f5; stroke-width: 1; }
.formation-option .formation-dot.is-keeper { fill: #b49a60; }
.formation-option > strong { color: #38544e; font: 600 16px var(--score-font); }
.formation-option > span { color: #7c8c86; font-size: 11px; }
.substitution-current { display: flex; gap: 13px; align-items: center; padding: 15px; margin-bottom: 18px; border-radius: 11px; background: #eef3f7; }
.substitution-current > .icon { width: 19px; height: 19px; margin-left: auto; color: #8a9bad; transform: rotate(90deg); }
.substitution-search { width: 100%; margin-bottom: 16px; }
.substitution-group { margin-top: 20px; }
.substitution-group h3 { display: flex; align-items: center; gap: 9px; margin: 0 0 7px; color: #61768b; font-size: 13px; font-weight: 500; }
.substitution-group h3 span { font: 500 12px var(--score-font); color: #8c99a7; }
.substitution-option { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 74px; padding: 12px 3px; border: 0; border-bottom: 1px solid #edf0f4; background: transparent; text-align: left; cursor: pointer; }
.substitution-option .roster-avatar { width: 39px; height: 43px; flex-basis: 39px; }
.substitution-option strong { color: #334b65; font-size: 14px; font-weight: 600; }
.substitution-option small { color: #7a8b9d; font-size: 12px; }
.substitution-option > b { margin-left: auto; color: #5a798c; font-size: 12px; font-weight: 500; }
.substitution-empty { padding: 25px 0; color: #7a899a; text-align: center; font-size: 13px; }
.formation-trigger:disabled, .lineup-slot:disabled { cursor: default; opacity: .55; }
.squad-group[hidden], .squad-member[hidden], .substitution-group[hidden], .substitution-option[hidden], .substitution-empty[hidden], .roster-no-results[hidden] { display: none; }
@media(max-width:780px) {
  .squad-groups { gap: 17px; }.squad-group { border-radius: 13px; }
  .squad-group > header { min-height: 47px; padding: 0 15px; }.squad-group h2 { font-size: 14px; }
  .squad-member { grid-template-columns: 40px minmax(0,1fr) 32px; min-height: 81px; padding: 13px 15px; gap: 11px; }
  .squad-group > header > span { min-width: 32px; font-size: 12px; }.squad-member-name > strong { font-size: 14px; }.squad-member-name > span { font-size: 11px; }
  .squad-member .roster-avatar { width: 40px; height: 44px; }.squad-member-age { font-size: 14px; }
  .roster-toolbar { margin-bottom: 18px; }.tactics-toolbar { gap: 8px; margin-bottom: 12px; }.formation-trigger { gap: 9px; padding: 0 13px; }
  .tactics-pitch { width: min(100%,450px,calc((100svh - 310px) * .7)); min-width: min(100%,250px); }
  .formation-modal .modal-head, .substitution-modal .modal-head { align-items: center; }
  .formation-options { gap: 9px; }.formation-option { padding: 11px 5px; }.formation-option svg { width: 64px; height: 80px; }.formation-option > strong { font-size: 14px; }.formation-sizes button { font-size: 12px; }
}
@media(prefers-reduced-motion:reduce) { .tactic-player .tactic-dot { transition: none; } }

/* Frequent edit controls stay beside the formation; destructive reset stays below the pitch. */
.tactics-toolbar { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; }
.formation-trigger { justify-content: space-between; min-width: 0; max-width: 200px; }
.tactic-history-controls { display: flex; gap: 5px; padding: 3px; border: 1px solid #e5ebf1; border-radius: 10px; background: #f6f8fa; }
.tactic-history-controls button { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 7px; background: #fff; color: #365971; cursor: pointer; }
.tactic-history-controls button:disabled { color: #b1bdc7; background: transparent; cursor: default; }
.tactic-history-controls .icon { width: 20px; height: 20px; stroke-width: 1.7; }
.pitch-edit-footer { display: flex; align-items: center; justify-content: space-between; min-height: 47px; gap: 15px; }
.pitch-edit-footer > span { color: #7c8b99; font-size: 12px; }
.pitch-edit-footer strong { margin-left: 5px; color: #4a657a; font: 600 14px var(--score-font); }
.pitch-edit-footer .tactics-reset { min-height: 44px; padding: 0 2px; color: #6e8193; font-size: 12px; }
.tactic-studio { margin-top: 2px; padding-top: 19px; }
.studio-heading { margin-bottom: 15px; }
.tactic-record-controls { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 9px; }
.tactic-record-controls .btn { min-height: 48px; border-radius: 10px; }
.tactic-record-controls [data-tactic-stop] { background: #a95b52; color: #fff; border-color: transparent; }
.tactic-record-controls [data-tactic-keyframe] { padding: 0 14px; }
.tactic-save-row { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 11px; padding-top: 17px; margin-top: 15px; border-top: 1px solid #edf1f5; }
.tactic-save-row > .btn { min-height: 49px; }
.tactic-save-row > .text-link { min-width: 69px; min-height: 46px; justify-content: center; padding: 0 9px; border: 1px solid #e4eaf1; border-radius: 10px; }
[data-tactic-record][hidden], [data-tactic-stop][hidden] { display: none; }

.avatar-picker { margin-bottom: 2px; }
.avatar-picker-body { display: flex; align-items: center; gap: 20px; padding: 16px; border-radius: 12px; background: #f3f6f9; }
.avatar-picker-picture { position: relative; display: grid; place-items: center; flex: 0 0 82px; width: 82px; height: 88px; overflow: hidden; border-radius: 12px; background: #e5ecf2; }
.avatar-picker-picture > .avatar { width: 100%; height: 100%; border-radius: 0; font-size: 30px; }
.avatar-picker-picture > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.avatar-picker-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 12px; min-width: 0; }
.avatar-picker-actions > .btn { min-height: 44px; padding: 0 14px; background: #fff; color: #496982; border-color: #dce6ef; }
.avatar-picker-actions > .text-link { min-height: 44px; color: #7f8e9c; }
.avatar-file-status { flex-basis: 100%; color: #778a9d; font-size: 12px; line-height: 1.6; }
.avatar-file-status.is-error { color: #aa5a50; }
.avatar-picker [hidden], .roster-avatar > img[hidden] { display: none; }
@media(max-width:780px) {
  .tactics-toolbar { gap: 8px; }.formation-trigger { padding: 0 10px; gap: 6px; max-width: none; }.formation-trigger > strong { font-size: 16px; }.formation-trigger > span { font-size: 11px; }
  .tactic-history-controls { gap: 2px; padding: 2px; }.tactic-history-controls button { width: 40px; height: 40px; }
  .tactic-record-controls .btn { font-size: 13px; }.tactic-save-row .btn { font-size: 14px; }
  .avatar-picker-body { gap: 15px; padding: 14px; }.avatar-picker-picture { flex-basis: 72px; width: 72px; height: 78px; }
}
