.match-page{--match-ink:#162d36;--match-muted:#596c73;--match-line:#dce4e5;background:#f3f5f4;color:var(--match-ink);color-scheme:light;line-height:1.6}.match-page *{min-width:0}.match-page header{padding:18px 24px;border-color:var(--match-line)}.match-page h1{font-size:18px}.match-page .brand small,.match-page .ball,.match-page .eyebrow{color:var(--club-link,#1268ed)}.match-page .preview-label{color:var(--match-muted);border-color:var(--match-line)}.match-page main{max-width:1160px;padding-bottom:180px}.match-page button,.match-page input,.match-page select{color:var(--match-ink);background:white;border:1px solid #cdd8db;min-height:44px;border-radius:9px}.match-page button:hover{background:var(--club-tint,#edf3fd);border-color:var(--club-link,#1268ed)}.match-page button:disabled{opacity:.48;cursor:not-allowed}.match-page button.primary{color:var(--club-text,#fff);background:var(--club-color,#1268ed);border-color:var(--club-color,#1268ed)}.match-page :focus-visible{outline:3px solid var(--club-link,#1268ed);outline-offset:3px}.match-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:32px 0 24px}.match-heading h2{font-size:clamp(23px,3vw,32px);letter-spacing:-.03em;margin:6px 0 8px}.match-heading p{font-size:14px;color:var(--match-muted);margin:0}.practice-label{font-size:12px;border:1px solid #cdd8db;border-radius:30px;padding:7px 14px;white-space:nowrap;background:white}.match-page .eyebrow{font-size:10px;font-weight:800;letter-spacing:.16em}.match-layout{display:grid;grid-template-columns:minmax(0,1.42fr) minmax(285px,1fr);gap:24px;align-items:start}.lineup-panel{background:white;border:1px solid var(--match-line);border-radius:18px;overflow:hidden}.lineup-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px 20px 8px}.lineup-head h3{font-size:22px;margin:2px 0 0}.match-page label{font-size:12px;color:var(--match-muted);display:grid;gap:6px}.match-page select,.match-page input{padding:9px 12px;width:100%;font-size:14px}.pitch-help{display:flex;justify-content:space-between;margin:5px 20px 12px;color:var(--match-muted);font-size:11px}.pitch{position:relative;height:480px;margin:0 12px;background:repeating-linear-gradient(0deg,#155447 0,#155447 12.5%,#195b4d 12.5%,#195b4d 25%);border-radius:12px;overflow:hidden;isolation:isolate}.pitch-lines{position:absolute;inset:12px;border:1px solid #ffffff38;pointer-events:none}.pitch-lines:before{content:'';position:absolute;left:0;right:0;top:50%;border-top:1px solid #ffffff38}.pitch-lines i{position:absolute;border:1px solid #ffffff38;border-radius:50%;width:24%;aspect-ratio:1;top:50%;left:50%;transform:translate(-50%,-50%)}.pitch-lines b,.pitch-lines em{position:absolute;left:27%;width:46%;height:16%;border:1px solid #ffffff38;top:-1px}.pitch-lines em{top:auto;bottom:-1px}.match-page .pitch-player{position:absolute;transform:translate(-50%,-50%);display:flex;align-items:center;flex-direction:column;justify-content:center;gap:1px;width:91px;padding:2px 3px;border:0;min-height:70px;background:transparent;color:white;border-radius:8px;line-height:1.2}.match-page .pitch-player:hover{background:#ffffff1f}.pitch-player:focus-visible{outline-color:white!important}.pitch-player img,.pitch-player .shirt{width:34px;height:37px;border-radius:7px;object-fit:cover;border:2px solid #e9f7ef;box-shadow:0 2px 6px #0003}.pitch-player .shirt{display:grid;place-items:center;background:#dce8e3;color:#47685e;font-size:24px}.pitch-player .position{font-size:10px;font-weight:800;letter-spacing:.08em}.pitch-player strong{font-size:10px;max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-shadow:0 1px 2px #0006}.pitch-player small{font-size:9px;color:#d4e6df}.pitch-player.unfamiliar small{color:#ffdc92}.pitch-player.unfamiliar img,.pitch-player.unfamiliar .shirt{border-color:#efc46f}.bench-head{display:flex;justify-content:space-between;align-items:center;margin:16px 18px 10px;font-size:10px;color:var(--match-muted)}.bench-head strong{letter-spacing:.08em;color:var(--match-ink)}.bench-head strong span{font-weight:400;letter-spacing:0;padding-left:8px}.bench{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;padding:0 12px 16px}.match-page .bench button{padding:8px 3px;display:flex;flex-direction:column;align-items:center;gap:3px;background:#f4f6f5;border-color:#e7ece9}.bench img,.bench .shirt{width:29px;height:32px;object-fit:cover;border-radius:5px}.bench .shirt{display:grid;place-items:center;background:#e0e8e3;color:#7b8f85}.bench small{font-size:10px}.bench strong{font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.bench span{font-size:10px}.roster-details{padding:16px 20px;border-top:1px solid var(--match-line);font-size:12px;color:var(--match-muted)}.match-page summary{cursor:pointer;font-weight:700}.team-aside{display:grid;gap:16px}.team-card{background:white;border:1px solid var(--match-line);border-radius:14px;padding:20px}.team-card h3{font-size:19px;margin:4px 0 16px}.budget-head{display:grid;gap:6px}.budget-head>span{font-size:12px;color:var(--match-muted)}.budget-head strong{font-size:24px;font-variant-numeric:tabular-nums;letter-spacing:-.02em}.budget-head strong small{font-size:12px;color:var(--match-muted);font-weight:400}.budget meter{width:100%;height:10px;margin:12px 0 6px;display:block;accent-color:var(--club-color,#1268ed)}.budget meter::-webkit-meter-bar{background:#edf1f0;border:0;border-radius:20px}.budget meter::-webkit-meter-optimum-value{background:var(--club-color,#1268ed)}.budget-foot{display:flex;justify-content:space-between;font-size:13px;font-weight:700;color:var(--club-link,#1268ed)}.budget-foot span{font-size:11px;color:var(--match-muted);font-weight:400}.budget-foot.over,.fit-warning{color:#a14e1b!important}.match-page .small-note{font-size:11px;line-height:1.7;color:var(--match-muted);margin:10px 0 0}.match-page fieldset{border:0;padding:0;margin:0 0 16px}.match-page legend{font-size:12px;color:var(--match-muted);margin-bottom:8px}.tactic-buttons{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.match-page .tactic-buttons button{padding:9px 4px;font-size:13px}.match-page button[aria-pressed=true]{background:var(--club-tint,#edf3fd);color:var(--club-link,#1268ed);border-color:var(--club-link,#1268ed)}.training{border-top:3px solid var(--club-color,#1268ed)}.training p{font-size:13px;color:var(--match-muted)}.training .primary{display:flex;width:100%;justify-content:space-between;align-items:center;margin-top:14px;font-size:14px;min-height:50px}.training details{border-top:1px solid var(--match-line);padding-top:12px;margin-top:16px;font-size:11px;color:var(--match-muted)}.save-bar{position:fixed;z-index:20;bottom:65px;left:50%;transform:translateX(-50%);width:min(1112px,calc(100% - 32px));display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 18px;border:1px solid var(--match-line);border-radius:14px;background:#ffffffed;box-shadow:0 6px 28px #142e3215;backdrop-filter:blur(12px)}.save-bar strong{font-size:13px;display:block}.save-bar small{display:block;font-size:11px;color:var(--match-muted)}.save-actions{display:flex;gap:8px}.save-actions button{font-size:13px;padding:9px 16px}.match-page .bottom{display:grid;grid-template-columns:repeat(3,1fr);background:#fff;border-top:1px solid var(--match-line);padding:0 max(8px,calc((100vw - 600px)/2));height:56px;gap:0}.match-page .bottom a{display:grid;place-items:center;text-decoration:none;color:var(--match-muted);font-size:12px;font-weight:700}.match-page .bottom a[aria-current=page]{color:var(--club-link,#1268ed);background:var(--club-tint,#edf3fd)}#match-status{font-size:13px;margin-bottom:12px}#match-status:empty{display:none}#match-status.error{color:#9b371d;background:#fff1e9;padding:14px;border-radius:9px}.recent h3{font-size:15px}.match-page .recent button{display:flex;justify-content:space-between;align-items:center;border:0;border-top:1px solid var(--match-line);border-radius:0;width:100%;padding:12px 0;font-size:11px;background:transparent}.recent small{display:block;color:var(--match-muted);text-align:left}.recent strong{font-size:18px;white-space:nowrap}.recent span:last-child{color:var(--match-muted)}
.match-page dialog{color:var(--match-ink);background:#fff;border:0;border-radius:18px;padding:0;width:min(640px,calc(100% - 24px));max-height:85dvh;box-shadow:0 20px 80px #0004}.match-page dialog::backdrop{background:#102b35aa;backdrop-filter:blur(3px)}.picker-head{position:sticky;top:0;z-index:2;background:white;padding:18px 20px;border-bottom:1px solid var(--match-line);display:flex;align-items:center;justify-content:space-between;gap:12px}.picker-head small{color:var(--match-muted);font-size:12px}.picker-head h3{margin:2px 0 0;font-size:18px}.picker-head button{padding:8px 12px;font-size:12px}.picker-tools{display:grid;grid-template-columns:1.5fr 1fr;gap:12px;padding:16px 20px}.picker-note{font-size:11px;color:var(--match-muted);margin:8px 20px}.position-adjust{padding:0 20px!important;display:flex;gap:8px;margin-bottom:12px!important}.position-adjust button{padding:7px 14px;font-size:12px}.picker-row{display:flex;align-items:center;width:100%;gap:12px;border:0!important;border-bottom:1px solid var(--match-line)!important;border-radius:0!important;padding:14px 20px!important;text-align:left}.picker-row[aria-current=true]{background:var(--club-tint,#edf3fd)}.picker-row img,.picker-row .shirt{width:42px;height:48px;object-fit:cover;border-radius:6px;flex-shrink:0}.picker-row .shirt{display:grid;place-items:center;background:#e9efeb;color:#809c8d;font-size:28px}.picker-person{flex:1}.picker-person strong{font-size:14px;display:block}.picker-person small,.picker-cost small{display:block;font-size:10px;color:var(--match-muted)}.picker-cost{text-align:right;flex-shrink:0}.picker-cost strong{font-size:12px}.empty-players{padding:20px;font-size:13px;color:var(--match-muted)}
.digest-screen,.match-result{max-width:800px;margin:auto}.digest-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.digest-top button{font-size:12px}.digest-screen h2{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;text-align:center;gap:18px;font-size:14px;margin:32px 0}.digest-screen h2 span{font-size:36px;white-space:nowrap}.mini-pitch{position:relative;background:repeating-linear-gradient(0deg,#155447 0,#155447 12.5%,#195b4d 12.5%,#195b4d 25%);height:300px;max-width:440px;margin:auto;border-radius:14px;overflow:hidden}.mini-pitch #match-ball{position:absolute;left:50%;top:50%;color:white;font-size:24px;transform:translate(-50%,-50%);transition:left .6s,top .6s;text-shadow:0 2px 10px #0007}.pitch-direction{position:absolute;bottom:20px;right:20px;color:#dfede5;font-size:11px}.live-event{text-align:center;min-height:140px;padding:24px 12px}.live-event strong{font-size:26px;color:var(--club-link,#1268ed)}.live-event p{font-size:15px}.digest-screen progress{width:100%;height:5px;accent-color:var(--club-color,#1268ed)}.digest-screen>.small-note{text-align:center}.result-heading{text-align:center}.result-heading h2{margin:6px 0;font-size:40px}.result-heading p{font-size:11px;color:var(--match-muted)}.scoreboard{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:20px;background:white;border:1px solid var(--match-line);border-radius:16px;padding:24px 16px;text-align:center;margin-top:24px}.scoreboard>strong{display:flex;gap:15px;font-size:46px;line-height:1;font-variant-numeric:tabular-nums}.scoreboard>strong span{color:#bcc8cc;font-size:30px;align-self:center}.scoreboard>div{font-size:14px;font-weight:700}.scoreboard small{display:block;color:var(--match-muted);font-size:10px;font-weight:400;margin-top:6px}.goal-list{padding:14px 8px;font-size:12px}.goal-list p{margin:7px 0}.goal-list b,.timeline b{margin-right:12px;color:var(--club-link,#1268ed)}.goal-list p>span,.timeline p>span{display:inline-block;margin-right:10px;font-size:10px;color:var(--match-muted)}.goal-list small{color:var(--match-muted)}.match-review{padding:18px 20px;background:var(--club-tint,#edf3fd);border-radius:12px;font-size:14px}.result-actions{display:flex;gap:10px;margin:24px 0}.result-actions button{flex:1;font-size:13px}.match-result .team-card{margin-bottom:16px}.match-statistics>div{display:grid;grid-template-columns:1fr 1fr 1fr;text-align:center;align-items:center;padding:10px 0;border-top:1px solid var(--match-line)}.match-statistics strong{font-size:22px}.match-statistics span{font-size:12px;color:var(--match-muted)}.player-ratings>div{display:grid;grid-template-columns:34px 1fr 35px;align-items:center;gap:10px;border-top:1px solid var(--match-line);padding:12px 0}.player-ratings strong{display:block;font-size:13px}.player-ratings small{display:block;font-size:11px;color:var(--match-muted)}.rating-pos{font-size:10px;color:var(--match-muted);font-weight:800}.player-ratings b{font-size:21px;text-align:right;color:var(--club-link,#1268ed)}.timeline p{font-size:12px;border-top:1px solid var(--match-line);padding:12px 0;margin:0}.timeline summary{margin-bottom:16px}.match-result>details{font-size:13px}
@media(min-width:1300px){.pitch{height:520px}}@media(max-width:760px){.match-page header{padding:14px 16px}.match-page header .preview-label{font-size:9px;padding:4px 6px}.match-page .ball{font-size:26px}.match-page .brand{gap:8px}.match-page h1{font-size:14px}.match-page .brand small{font-size:8px}.match-page main{padding:0 14px 200px}.match-heading{padding:24px 0 18px;gap:10px}.match-heading h2{font-size:23px;max-width:300px}.match-heading p{font-size:11px}.practice-label{display:none}.match-layout{grid-template-columns:1fr;gap:16px}.lineup-head{padding:16px 14px 8px}.lineup-head h3{font-size:20px}.lineup-head label{font-size:10px}.pitch{height:420px;margin:0 8px}.pitch-help{margin-left:14px;margin-right:14px;font-size:10px}.match-page .pitch-player{width:75px;min-height:63px}.pitch-player img,.pitch-player .shirt{width:30px;height:32px}.pitch-player strong{font-size:9px}.pitch-player small{font-size:8px}.team-card{padding:18px}.team-aside{gap:12px}.save-bar{bottom:65px;padding:10px 12px;width:calc(100% - 20px);gap:8px}.save-bar small{font-size:9px;max-width:120px}.save-bar strong{font-size:11px}.save-actions{gap:5px}.save-actions button{padding:9px 10px;font-size:11px}.match-page dialog{width:100%;max-width:100%;max-height:90dvh;margin:auto 0 0;border-radius:18px 18px 0 0}.picker-head{padding:14px 16px}.picker-tools{padding:14px 16px;gap:10px}.picker-row{padding:12px 16px!important;gap:9px}.picker-person strong{font-size:12px}.picker-row img,.picker-row .shirt{width:32px;height:39px}.picker-person small{font-size:9px}.picker-cost strong{font-size:11px}.picker-cost small{font-size:9px}.picker-note{margin-left:16px}.digest-screen h2{gap:10px;font-size:12px}.digest-screen h2 span{font-size:32px}.mini-pitch{height:280px}.scoreboard{gap:10px;padding:22px 10px}.scoreboard>strong{font-size:36px;gap:9px}.scoreboard>div{font-size:12px}.result-actions{gap:8px}.result-actions button{font-size:12px;padding:10px}.bench{gap:4px;padding-left:8px;padding-right:8px}.bench-head{margin-left:14px;margin-right:14px}.bench strong{font-size:8px}.live-event p{font-size:13px}}@media(max-width:360px){.pitch{height:390px}.match-page .pitch-player{width:63px}.pitch-player strong{font-size:8px}.pitch-player .position{font-size:9px}.pitch-player small{font-size:8px}.match-heading h2{font-size:21px}.match-page main{padding-left:10px;padding-right:10px}.lineup-head h3{font-size:18px}.save-bar small{max-width:90px}.picker-tools{grid-template-columns:1.3fr 1fr}.picker-row{padding-left:12px!important;padding-right:12px!important}.picker-cost strong{font-size:10px}.bench-head>span{font-size:9px}}@media(prefers-reduced-motion:reduce){.mini-pitch #match-ball{transition:none}}@supports(padding:env(safe-area-inset-bottom)){.match-page .bottom{height:calc(56px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom)}.save-bar{bottom:calc(65px + env(safe-area-inset-bottom))}}
/* Keep actions in document flow: no player or pitch button is covered. */
.match-page header{background:#fff;color:var(--match-ink)}.match-page header .preview-label{color:var(--match-muted)}.save-bar{position:relative;left:auto;bottom:auto;transform:none;width:100%;margin:0 0 16px;box-shadow:none;backdrop-filter:none;background:white}.match-page .pitch-player{height:76px;min-height:76px;padding:0}.pitch-player .shirt{flex-shrink:0}.match-page .pitch-player img{flex-shrink:0}@media(max-width:760px){.match-page .pitch-player{height:64px;min-height:64px}.pitch-player img,.pitch-player .shirt{height:29px;width:28px}.pitch-player .position{font-size:9px}.pitch-player strong{font-size:9px}.pitch-player small{font-size:8px}.save-bar{bottom:auto;margin-bottom:14px}.save-bar small{max-width:none}.match-page main{padding-bottom:90px}}@media(max-width:360px){.save-bar small{max-width:110px}.match-page .pitch-player strong{font-size:8px}}
.sample-tools{margin:8px 14px 12px;padding:12px;background:var(--club-tint,#edf3fd);border-radius:9px;display:flex;gap:10px;align-items:center;justify-content:space-between}.sample-tools strong{display:block;font-size:12px}.sample-tools small{display:block;font-size:10px;color:var(--match-muted)}.sample-tools button{font-size:11px;padding:8px 10px;flex-shrink:0}@media(max-width:360px){.sample-tools{margin-left:8px;margin-right:8px;padding:10px}.sample-tools small{max-width:140px;font-size:9px}.sample-tools button{font-size:10px;padding:8px}}
.lineup-warnings{margin:0 14px 12px;padding:10px 12px;background:#fff6e8;border:1px solid #f1d7ab;border-radius:8px;color:#77501d;font-size:12px}.lineup-warnings p{margin:2px 0}.match-page .pitch-player{height:86px;min-height:86px}.pitch{height:580px}.pitch-player .slot-fit{font-size:9px}.pitch-player small{white-space:nowrap}.bench .player-salary{font-size:9px;white-space:nowrap}.match-page #practice-choice{padding:24px;width:min(440px,calc(100% - 24px));margin:auto;border-radius:16px}.practice-choices{display:grid;gap:10px;margin-top:20px}#practice-choice h3{font-size:21px;margin:0}#practice-choice p{font-size:13px;color:var(--match-muted)}@media(max-width:760px){.pitch{height:510px}.match-page .pitch-player{height:76px;min-height:76px}.pitch-player small{font-size:9px}.pitch-player .slot-fit{font-size:8px}.bench .player-salary{font-size:8px}.lineup-warnings{font-size:11px}}@media(max-width:360px){.pitch-player small{font-size:8px}.pitch-player .slot-fit{font-size:8px}}
.digest-controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:16px 0 0}.digest-controls button{font-size:14px;min-height:46px;padding:10px 6px}.mom-card{background:var(--club-tint,#edf3fd);border:1px solid var(--club-soft,#d7e5fc);border-left:4px solid var(--club-color,#1268ed);border-radius:12px;padding:20px;margin:20px 0}.mom-card h3{font-size:16px;margin:5px 0 10px}.mom-card>strong{display:block;font-size:23px;line-height:1.5}.mom-card>span:not(.eyebrow){display:block;font-size:12px;color:var(--match-muted);margin-top:4px}.mom-card h4{font-size:12px;margin:16px 0 3px}.mom-card p{font-size:14px;margin:0}.ranking-filters{display:flex;flex-wrap:wrap;gap:14px;align-items:end;margin-bottom:18px}.ranking-filters label{flex:1;min-width:120px}.ranking-filters [hidden]{display:none!important}.ranking-row{display:grid;grid-template-columns:32px minmax(0,1fr) auto;gap:14px;align-items:center;border-top:1px solid var(--match-line);padding:18px 0}.ranking-row:first-child{border-top:0}.ranking-row small{display:block;font-size:11px;color:var(--match-muted)}.ranking-row strong{font-size:15px;overflow-wrap:anywhere}.ranking-row a{color:var(--club-link,#1268ed)}.ranking-score{text-align:right}.ranking-number{font-size:20px;color:var(--club-link,#1268ed)}.ranking-empty{font-size:14px;color:var(--match-muted);padding:20px 0}.match-page #ranking-status{font-size:13px;color:var(--match-muted)}@media(max-width:360px){.ranking-row{gap:9px;grid-template-columns:22px minmax(0,1fr) auto}.ranking-row strong{font-size:12px}.ranking-row small{font-size:10px}.ranking-filters{padding:14px;gap:10px}.ranking-filters label{min-width:100px}}
.watching-match>header,.watching-match .match-heading{display:none}.watching-match main{padding-top:12px}.watching-match .digest-screen h2{margin:12px 0;font-size:12px}.watching-match .digest-screen h2 span{font-size:30px}.watching-match .mini-pitch{height:clamp(100px,20vh,190px)}.watching-match .digest-controls{margin-top:12px}.watching-match .live-event{min-height:100px;padding:12px 6px}.watching-match .live-event strong{font-size:22px}.watching-match .live-event p{font-size:13px;margin:6px 0;line-height:1.6}
.quick-practice{display:grid;gap:10px;padding:12px;margin:0 0 14px;border:1px solid #dce4e5;border-radius:9px;background:#f8fbf9}.quick-practice label{display:grid;gap:5px;font-size:12px}.quick-practice small{color:#596c73;font-size:11px}.quick-practice button{min-height:48px;width:100%}

/* Extra formation rows retain readable, separate touch targets at 320px. */
.pitch.pitch-expanded{height:620px}.match-page .pitch .pitch-player{width:18%;max-width:91px;min-width:44px}.pitch-expanded .pitch-player small{max-width:100%;overflow:hidden;text-overflow:ellipsis}
.match-ranking-nav{display:flex;flex-wrap:wrap;align-items:center;gap:8px 18px;margin:0 0 18px}.match-ranking-nav span{font-size:12px;color:var(--match-muted)}.match-page .button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 14px;border:1px solid #cdd8db;border-radius:9px;background:white;color:var(--club-link,#1268ed);font-size:13px;text-decoration:none}.result-actions{flex-wrap:wrap}.result-rank p{overflow-wrap:anywhere}.official-summary{display:flex;flex-wrap:wrap;gap:8px 20px}.official-last-rank{font-size:14px}.official-history button{display:grid;width:100%;grid-template-columns:minmax(0,1fr) auto;gap:6px 14px;text-align:left;padding:12px;margin-top:8px}.official-history button>span{overflow-wrap:anywhere}.official-history button small{display:block}.official-history .official-rank-change{grid-column:1/-1;font-size:12px}.official-panel{margin-bottom:18px}.official-panel .small-note{margin-bottom:12px}.official-rating-change{font-size:11px}.ranking-row{grid-template-columns:48px minmax(0,1fr) auto}
@media(max-width:760px){.pitch.pitch-expanded{height:560px}.match-ranking-nav{gap:6px}.result-actions .button{font-size:12px}.official-last-rank{font-size:12px}}@media(max-width:360px){.ranking-row{grid-template-columns:38px minmax(0,1fr) auto}.lineup-head{gap:8px}.lineup-head label{max-width:130px}}
/* Position labels stay readable without color, including yellow GK badges. */
.match-page .position-badge{display:inline-block;background:#e8edf0;color:#263a43;border-radius:4px;padding:1px 4px;font-size:10px;font-weight:800;line-height:1.4;white-space:nowrap;text-shadow:none}.match-page .position-FW{background:#ffe1e1;color:#8f1926}.match-page .position-MF{background:#daf2df;color:#145c2d}.match-page .position-DF{background:#dceaff;color:#164b92}.match-page .position-GK{background:#ffed9e;color:#594400}.match-page .pitch-player .position-badge{font-size:9px;padding:0 3px}.match-page .bench .position-badge{font-size:8px;padding:1px 2px}.match-page .picker-affordable{grid-column:1/-1;display:flex;align-items:center;flex-direction:row;min-height:44px;cursor:pointer}.match-page .picker-affordable input{width:20px;min-height:20px;height:20px;flex-shrink:0}.picker-person{overflow-wrap:anywhere}.picker-person .picker-comparison,.picker-person .picker-projection{margin-top:5px;font-size:11px;color:var(--match-ink);font-weight:500}.picker-head h3{overflow-wrap:anywhere}.picker-head button{flex-shrink:0}#more-owned{margin:16px;max-width:calc(100% - 32px)}.match-page #player-picker{overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain}.picker-cost{max-width:100px;overflow-wrap:anywhere}
@media(max-width:760px){.match-page .picker-tools input,.match-page .picker-tools select{font-size:16px}.picker-row{display:grid;grid-template-columns:32px minmax(0,1fr);align-items:start}.picker-cost{grid-column:2;max-width:none;display:flex;flex-wrap:wrap;gap:4px 12px;text-align:left}.picker-person .picker-comparison,.picker-person .picker-projection{font-size:11px}.picker-tools{grid-template-columns:repeat(2,minmax(0,1fr))}.picker-tools label:first-child{grid-column:1/-1}.picker-head h3{font-size:16px}.picker-person small{font-size:11px}.picker-cost small{font-size:11px}}
.position-legend{font-size:10px;line-height:1.6;color:var(--match-muted);margin:0 14px 12px}
/* Narrow bench cards truncate visual salary only; the picker shows the full amount. */
.bench .player-salary{max-width:100%;overflow:hidden;text-overflow:ellipsis}

/* V27: one vertical reading order, compact results and deliberate player changes. */
.match-page .match-heading{padding:20px 0 10px}.match-heading h2{font-size:24px}.match-ranking-link{display:flex;justify-content:space-between;align-items:center;margin:0 0 14px;padding:12px 16px;background:white;border:1px solid var(--match-line);border-radius:10px;text-decoration:none;color:var(--club-link);font-size:14px;font-weight:700}.match-layout{display:flex;flex-direction:column;gap:16px}.lineup-panel,.team-aside>section{width:100%;box-sizing:border-box}.team-aside{display:contents}.lineup-panel .save-bar{margin:0;padding:14px 16px;border-width:1px 0 0;border-radius:0}.match-page .training h3{font-size:20px}.match-page .training details{margin-top:10px}.match-page #official-panel .team-card{padding:14px 16px;margin-bottom:16px}.official-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.official-head h3{font-size:18px;margin:0}.official-head button{min-height:36px;padding:5px 12px;font-size:12px}.official-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 8px;margin:12px 0 8px}.official-metrics>div{display:flex;flex-direction:column;gap:2px}.official-metrics span{font-size:11px;color:var(--match-muted)}.official-metrics strong{font-size:23px;line-height:1.4}.official-metrics small{font-size:11px;color:var(--match-muted)}.official-metrics .official-record{font-size:16px}.official-movement{grid-column:span 2}.official-metrics .official-movement strong{font-size:15px}.official-note{font-size:11px;color:var(--match-muted);margin:6px 0}.official-history button{display:grid;grid-template-columns:minmax(0,1fr) auto 46px;width:100%;align-items:center;gap:8px;padding:9px 0!important;border:0!important;border-top:1px solid var(--match-line)!important;border-radius:0!important;text-align:left;min-height:54px}.official-history button>span{font-size:12px;overflow-wrap:anywhere}.official-history small{display:block;font-size:10px;color:var(--match-muted)}.official-history strong{font-size:17px;white-space:nowrap}.official-history .rating-delta{text-align:right}.official-older{margin-top:8px;font-size:12px}.official-older summary{padding:10px 0;cursor:pointer}.official-error:empty{display:none}.match-page #player-picker{width:min(780px,calc(100% - 24px));max-height:90dvh;overflow:hidden;display:none;flex-direction:column;margin:auto;border-radius:18px}.match-page #player-picker[open]{display:flex}.picker-head{flex-shrink:0;padding:14px 16px}.picker-head h3{font-size:17px;margin:3px 0}.picker-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;padding:10px 16px 0}.picker-tabs button{min-height:40px;font-size:13px}.picker-tabs button[aria-pressed=true],.picker-row[aria-pressed=true]{border-color:var(--club-color)!important;background:var(--club-tint)!important;box-shadow:inset 3px 0 var(--club-color)}.match-page #player-picker input,.match-page #player-picker select{font-size:16px}.picker-tools{padding:10px 16px;flex-shrink:0}.picker-workspace{display:grid;grid-template-columns:minmax(110px,.8fr) minmax(0,1.4fr);min-height:0;overflow:hidden;flex:1;border-top:1px solid var(--match-line)}.picker-workspace #picker-list{overflow:auto;overscroll-behavior:contain;max-height:48dvh;border-right:1px solid var(--match-line)}.picker-workspace .picker-row{display:flex;flex-direction:column;align-items:flex-start;gap:2px;border-width:0 0 1px;width:100%;border-radius:0;padding:10px 12px!important;text-align:left}.picker-row strong{font-size:13px;overflow-wrap:anywhere}.picker-row small{font-size:10px}.picker-workspace #picker-detail{overflow:auto;padding:14px;max-height:48dvh;overscroll-behavior:contain}.picker-profile{display:flex;gap:10px;align-items:center}.picker-profile img,.picker-profile .shirt{width:64px;height:78px;object-fit:cover;border-radius:6px;flex-shrink:0}.picker-profile h4{font-size:16px;line-height:1.4;margin:4px 0;overflow-wrap:anywhere}.picker-profile p{font-size:12px;margin:3px 0}.picker-profile small{font-size:10px;color:var(--match-muted)}.picker-fit{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:8px;margin:10px 0;background:var(--club-tint);font-size:11px;border-radius:6px}.picker-description{font-size:11px;color:var(--match-muted)}.picker-skills{margin:10px 0 0}.picker-skills>div{display:grid;grid-template-columns:80px 1fr;gap:5px;align-items:center;margin:6px 0}.picker-skills dt{font-size:11px}.picker-skills dd{margin:0;display:flex;align-items:center;gap:6px;font-size:12px}.picker-skills meter{width:100%;height:14px;min-width:0}.picker-skills b{min-width:20px;text-align:right}.picker-confirm{padding:10px 16px 14px;flex-shrink:0;border-top:1px solid var(--match-line)}.picker-confirm p{font-size:11px;margin:0 0 8px;line-height:1.5}.picker-confirm button{width:100%;min-height:46px}.match-page .pitch{max-width:650px;margin-left:auto;margin-right:auto}.match-page .lineup-panel .pitch{margin-left:12px;margin-right:12px;max-width:none}
@media(max-width:480px){.match-page #player-picker{width:calc(100% - 12px);max-height:94dvh;border-radius:14px;margin:auto}.picker-head{padding:10px 12px}.picker-head h3{font-size:14px}.picker-head button{padding:6px 10px;font-size:12px}.picker-tabs{padding:8px 10px 0}.picker-tools{padding:8px 10px;gap:8px;grid-template-columns:1.3fr 1fr}.picker-tools label{font-size:10px}.picker-workspace{grid-template-columns:minmax(96px,.85fr) minmax(0,1.35fr)}.picker-workspace .picker-row{padding:10px 8px!important}.picker-row strong{font-size:12px}.picker-workspace #picker-detail{padding:10px}.picker-profile{display:block}.picker-profile img,.picker-profile .shirt{width:54px;height:66px;float:right;margin:0 0 5px 5px}.picker-profile h4{font-size:14px;min-height:34px}.picker-profile p{clear:both;font-size:11px}.picker-fit{display:block;font-size:10px;padding:7px}.picker-fit strong{display:block;font-size:12px}.picker-skills>div{grid-template-columns:1fr;gap:0;margin:5px 0}.picker-skills dt{font-size:10px}.picker-skills dd{font-size:11px}.picker-description{font-size:10px}.picker-confirm{padding:8px 10px 12px}.official-metrics strong{font-size:21px}.official-metrics .official-record{font-size:14px}}
.picker-head #close-picker{white-space:nowrap;flex-shrink:0}.match-page .lineup-panel .pitch{max-width:680px;width:calc(100% - 24px);margin-left:auto;margin-right:auto}
/* V28: selecting a slot does not open a menu. */
.pitch-player.active-player,.bench button.active-player{outline:3px solid #ffe082!important;outline-offset:2px;z-index:3;animation:selected-slot-pulse 1.4s ease-in-out infinite}.active-badge{position:absolute;top:-14px;left:50%;transform:translateX(-50%);background:#ffe082;color:#172d35;border:1px solid #172d35;border-radius:4px;padding:0 5px;font-size:10px;font-weight:800;white-space:nowrap}.bench button.active-player{background:var(--club-tint)}.bench-head #open-bench{display:flex;align-items:center;gap:7px;padding:9px 14px;font-size:14px;font-weight:700}.bench-head #open-bench span{font-size:20px}.bench-head{gap:10px}.bench-head>span{font-size:11px}.pitch-help{gap:8px}.pitch-help>span:first-child{max-width:75%}.picker-confirm .over{color:#a74613;background:#fff2df;border:1px solid #e0b784;border-radius:6px;padding:8px;font-weight:700}@keyframes selected-slot-pulse{0%,100%{box-shadow:0 0 0 3px #172d35,0 0 0 6px #ffe082}50%{box-shadow:0 0 0 3px #172d35,0 0 0 6px #ffe08244}}@media(prefers-reduced-motion:reduce){.pitch-player.active-player,.bench button.active-player{animation:none;box-shadow:0 0 0 3px #172d35}}

/* V29 published position palette and card travel. */
.match-page .position-badge{display:inline-block;background:#e8edf0;color:#263a43;border-radius:4px;padding:1px 4px;font-size:10px;font-weight:800;line-height:1.4;white-space:nowrap;text-shadow:none}.match-page .position-FW{background:#ffe1e1;color:#8f1926}.match-page .position-MF{background:#daf2df;color:#145c2d}.match-page .position-DF{background:#dceaff;color:#164b92}.match-page .position-GK{background:#ffed9e;color:#594400}.match-page .pitch-player .position-badge{font-size:9px;padding:0 3px}.match-page .bench .position-badge{font-size:8px;padding:1px 2px}
.position-legend{font-size:11px;color:var(--match-muted);margin:8px 14px}.is-swapping [data-slot]{pointer-events:none}.picker-row .position-badge{font-size:9px}.picker-profile .position-badge{font-size:9px}.bench-head #open-bench{font-size:13px}
@media(max-width:480px){.pitch[data-formation="5-3-2"] .pitch-player{width:18%;max-width:68px}.pitch[data-formation="5-3-2"] .pitch-player strong{font-size:8px}.pitch[data-formation="5-3-2"] .pitch-player small{font-size:8px}}

.picker-advanced{padding:0 12px 8px;font-size:11px;flex-shrink:0;max-height:30dvh;overflow:auto}.picker-load-status{font-size:11px;margin:0 12px}.picker-load-status:empty{display:none}.picker-comparison{font-size:11px}.picker-workspace #more-owned{font-size:11px;min-height:44px;padding:8px;margin:8px;max-width:calc(100% - 16px)}
