/* ===== BASE / SHARED CSS ===== */
*{box-sizing:border-box}html,body{height:100%;min-height:100dvh}body{margin:0;overflow:hidden;background:#090012;color:#fff;font-family:"Rajdhani","Arial Narrow",Arial,sans-serif;font-weight:700;letter-spacing:.02em}.screen{position:fixed;inset:0;background:#090012}.screen:before{content:"";position:absolute;inset:0;background:#090012}.loading-screen{z-index:80;display:grid;place-items:center}.loading-card{position:relative;z-index:1;display:grid;gap:10px;width:min(360px,76vw);text-align:center}.loading-title{font-size:20px;color:#ffdd45;text-shadow:1px 2px #000}.loading-bar{height:12px;overflow:hidden;border:2px solid #7536d2;background:rgba(7,4,15,.9);box-shadow:inset 0 1px rgba(255,255,255,.18),0 12px 36px #000}.loading-bar span{display:block;width:42%;height:100%;background:linear-gradient(90deg,#7536d2,#ffdd45,#26da48);animation:loadingSlide 1.05s ease-in-out infinite}.loading-text{font:12px/1 Arial,sans-serif;color:#cfc1ee;text-shadow:none}@keyframes loadingSlide{0%{transform:translateX(-110%)}100%{transform:translateX(250%)}}.panel{position:absolute;left:50%;top:50%;display:grid;gap:12px;width:min(380px,82vw);transform:translate(-50%,-50%);z-index:1}.panel form{display:grid;gap:10px}.menu{top:45%}.row{display:flex;gap:10px}.grow{flex:1}.top{position:absolute;top:18px;left:50%;z-index:2;display:flex;justify-content:space-between;gap:12px;width:min(760px,90vw);transform:translateX(-50%);font-size:14px;text-shadow:1px 2px #000}.box{border:2px solid #7536d2;background:rgba(18,6,34,.86);padding:14px;box-shadow:inset 0 1px rgba(255,255,255,.18),0 20px 70px #000}.msg{min-height:20px;color:#ffb98b;font-size:13px;text-align:center}button,input,select{height:34px;border:2px solid #7536d2;border-radius:0;background:rgba(42,14,78,.86);color:#fff;font:700 16px/1 "Rajdhani","Arial Narrow",Arial,sans-serif;text-shadow:1px 2px #050407;box-shadow:inset 0 1px rgba(255,255,255,.24),inset 0 -2px rgba(0,0,0,.55)}input,select{width:100%;padding:0 10px;background:rgba(7,4,15,.88);font-family:"Rajdhani","Arial Narrow",Arial,sans-serif;font-size:15px;text-shadow:none}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}button:hover,button:focus-visible{outline:0;border-color:#c7a6ff;background:rgba(72,32,126,.92)}.green{border-color:#26da48;background:rgba(8,112,31,.9)}.orange{border-color:#bc4b12;background:rgba(181,57,7,.94)}.hide{display:none!important}canvas{position:absolute;inset:0;width:100%;height:100%;image-rendering:pixelated}.hud{position:absolute;top:2.1%;left:50%;z-index:2;display:grid;grid-template-columns:1fr auto 1fr auto;gap:14px;align-items:center;width:min(820px,72vw);min-height:34px;padding:0 14px;transform:translateX(-50%);border:2px solid #7536d2;background:rgba(28,8,47,.92);font-size:14px;text-shadow:1px 2px #000}.hud #homeName,.hud #awayName{display:flex;align-items:center;gap:8px;min-width:0;white-space:nowrap;overflow:hidden}.hud #awayName{justify-content:flex-end}.kit{position:relative;display:inline-block;flex:0 0 auto;width:14px;height:15px;border:1px solid var(--trim);background:var(--shirt);box-shadow:inset 0 -4px var(--trim)}.kit:before,.kit:after{content:"";position:absolute;top:2px;width:5px;height:8px;border:1px solid var(--trim);background:var(--shirt)}.kit:before{left:-6px}.kit:after{right:-6px}.controls{position:absolute;right:12px;top:50%;z-index:2;display:grid;grid-template-columns:1fr;gap:6px;width:min(118px,16vw);transform:translateY(-50%)}.controls button{height:27px;font-size:10px}.menu-exit{position:absolute;left:50%;bottom:calc(env(safe-area-inset-bottom,0px) + 4px);z-index:2;width:min(140px,26vw);height:27px;font-size:10px;transform:translateX(-50%)}.events{position:absolute;right:18px;top:70px;z-index:2;width:min(260px,28vw);font:13px Arial,sans-serif;color:#e8dbff}.wait{position:absolute;left:50%;top:48%;z-index:2;width:min(420px,84vw);transform:translate(-50%,-50%);text-align:center}.lineup{position:absolute;left:50%;top:51%;z-index:3;width:min(880px,86vw);max-height:76dvh;overflow:hidden;transform:translate(-50%,-50%)}.lineup-title{text-align:center;font-size:18px;margin-bottom:8px}.lineup-teams{display:grid;grid-template-columns:1fr 1fr;gap:14px}.lineup-team h3{margin:0 0 8px;text-align:center;font-size:14px}.line-grid{position:relative;min-height:420px;border:1px solid rgba(255,255,255,.16);background:linear-gradient(180deg,rgba(35,129,67,.55),rgba(23,109,53,.55))}.line-player{position:absolute;width:70px;transform:translate(-50%,-50%);text-align:center;font:10px/1.05 Arial,sans-serif;color:#fff;text-shadow:1px 1px #000}.line-head{display:block;width:22px;height:22px;margin:0 auto 3px;border:2px solid #1b0f0c;border-radius:50%;background:#d8a06f;box-shadow:0 0 0 2px var(--shirt),0 0 0 4px var(--trim)}

.thinking-toast{position:fixed;inset:0;z-index:90;display:grid;place-items:center;background:transparent;color:#fff;pointer-events:none}.thinking-toast:before,.thinking-toast:after{display:none!important}.thinking-toast .loading-card{position:relative;z-index:1;padding:18px 22px;background:rgba(0,0,0,.86)!important;background-image:none!important;box-shadow:0 18px 56px rgba(0,0,0,.48)}
    :root{--site-dim-opacity:0}
    body:after{content:"";position:fixed;inset:0;z-index:2147483000;pointer-events:none;background:#000;opacity:var(--site-dim-opacity,0);transition:opacity .16s linear}
    #auth .box{border:0}
    #loginForm button[type="submit"]:hover,#loginForm button[type="submit"]:focus,#loginForm button[type="submit"]:active{border-color:#26da48;background:rgba(8,112,31,.9)}
    #menu .top{border-bottom:0!important}
    .options-dropdown{display:grid;gap:7px;max-height:min(42dvh,330px);overflow:auto;padding:7px;border:1px solid rgba(255,221,69,.34);background:rgba(5,2,10,.68);box-shadow:inset 0 1px rgba(255,255,255,.08)}
    .sound-options{display:grid;gap:6px;max-height:min(32dvh,240px);overflow:auto;padding-right:2px}.sound-option{display:grid;grid-template-columns:1fr auto;align-items:center;gap:8px;min-height:32px;padding:5px 7px;border:1px solid rgba(255,255,255,.16);background:rgba(5,2,10,.56);font:11px/1.2 Arial,sans-serif;text-shadow:none}.sound-option b{font:700 12px/1 "Rajdhani","Arial Narrow",Arial,sans-serif;text-shadow:1px 2px #000}.sound-option small{display:block;color:#d8cdf5}.sound-option button{width:54px;height:25px;font-size:10px}
    .screen>.top{display:none!important}
    .app-top-bar{position:fixed;left:0;right:0;top:0;z-index:75;display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:8px;height:1cm;padding:0 10px;border-bottom:2px solid #7536d2;background:rgba(18,6,34,.96);box-shadow:0 10px 34px rgba(0,0,0,.55);color:#fff;text-shadow:1px 2px #000}
    .app-top-bar .top-team-flag{position:static;left:auto;top:auto;display:flex;align-items:center;justify-content:center;transform:none}
    .app-top-bar .top-team-flag .team-flag{width:24px;height:16px}
    #appTopWho{position:relative;display:block;min-width:0;height:100%;overflow:hidden;white-space:nowrap;text-align:left;font-size:14px}
    #appTopWho .app-top-marquee-track{position:relative;display:block;width:100%;height:100%;overflow:hidden;pointer-events:none}
    #appTopWho .app-top-marquee-item{position:absolute;left:0;top:50%;display:inline-block;white-space:nowrap;will-change:transform}
    #appTopLogout{justify-self:end;width:auto;min-width:0;height:23px;padding:0 5px;border-color:#ff3b30;background:#b51616;font-size:10px;line-height:1}
    .app-top-bar:not(.hide) ~ #match .hud{top:calc(1cm + 8px)}
    .app-top-bar:not(.hide) ~ #match .events{top:calc(1cm + 48px)}
    .lineup-skip{position:absolute;right:10px;top:8px;width:70px;height:25px;font-size:10px}
    .lineup-team h3{display:none}.line-flag{position:absolute;left:50%;top:8px;width:34px;height:22px;overflow:hidden;transform:translateX(-50%);border:2px solid var(--trim);background:var(--flag-bg,linear-gradient(135deg,var(--shirt) 0 54%,var(--trim) 55%));box-shadow:0 0 0 1px rgba(255,255,255,.28),0 2px 0 #111}.line-flag:before{content:"";position:absolute;left:-6px;top:-3px;width:2px;height:34px;background:#ddd;box-shadow:1px 0 #111}.line-team-name{position:absolute;left:50%;bottom:7px;width:92%;transform:translateX(-50%);text-align:center;font:700 12px/1 "Rajdhani","Arial Narrow",Arial,sans-serif;color:#fff;text-shadow:1px 2px #000;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
    .team-flag{position:relative;display:inline-block;flex:0 0 auto;width:22px;height:15px;overflow:hidden;border:1px solid var(--trim);background:var(--flag-bg,linear-gradient(135deg,var(--shirt) 0 54%,var(--trim) 55%));box-shadow:0 0 0 1px rgba(255,255,255,.25)}.team-flag:before{content:"";position:absolute;left:-4px;top:-2px;width:2px;height:22px;background:#ddd;box-shadow:1px 0 #111}.team-flag.halifax-crest,.line-flag.halifax-crest{background:#fff url("assets/flags/halifax.png?v=20260630a") center/contain no-repeat;border-color:#0057b8}.team-flag.halifax-crest:before,.line-flag.halifax-crest:before{display:none}.flag-p0{--flag-bg:linear-gradient(90deg,var(--shirt) 0 32%,var(--accent) 32% 42%,var(--trim) 42% 100%)}.flag-p1{--flag-bg:linear-gradient(180deg,var(--shirt) 0 45%,var(--accent) 45% 55%,var(--trim) 55% 100%)}.flag-p2{--flag-bg:linear-gradient(135deg,var(--shirt) 0 43%,var(--accent) 43% 57%,var(--trim) 57% 100%)}.flag-p3{--flag-bg:linear-gradient(45deg,var(--trim) 0 34%,var(--shirt) 34% 66%,var(--accent) 66% 100%)}.flag-p4{--flag-bg:repeating-linear-gradient(90deg,var(--shirt) 0 18%,var(--trim) 18% 32%,var(--accent) 32% 43%)}.flag-p5{--flag-bg:repeating-linear-gradient(180deg,var(--shirt) 0 20%,var(--trim) 20% 35%,var(--accent) 35% 45%)}.flag-p6{--flag-bg:linear-gradient(90deg,var(--shirt) 0 25%,var(--trim) 25% 75%,var(--accent) 75% 100%)}.flag-p7{--flag-bg:linear-gradient(180deg,var(--accent) 0 25%,var(--shirt) 25% 75%,var(--trim) 75% 100%)}.flag-p8{--flag-bg:linear-gradient(135deg,var(--accent) 0 25%,var(--shirt) 25% 50%,var(--trim) 50% 75%,var(--shirt) 75% 100%)}.flag-p9{--flag-bg:radial-gradient(circle at 50% 50%,var(--accent) 0 22%,transparent 23%),linear-gradient(90deg,var(--shirt) 0 50%,var(--trim) 50% 100%)}
    .team-picker{position:relative;display:grid;gap:6px}.team-dropdown{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;height:42px;padding:0 12px;text-align:left}.team-dropdown:after{content:"";flex:0 0 auto;border-left:5px solid transparent;border-right:5px solid transparent;border-top:7px solid #ffdd45}.team-choice{display:flex;align-items:center;gap:8px;min-width:0}.team-choice span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.team-choice-skill{display:inline-grid!important;place-items:center;flex:0 0 36px;width:36px;height:21px;border:1px solid rgba(255,221,69,.8);background:rgba(5,2,10,.76);color:#ffdd45;font:900 11px/1 "Rajdhani","Arial Narrow",Arial,sans-serif;text-shadow:1px 2px #000;box-shadow:inset 0 1px rgba(255,255,255,.14),0 2px 0 rgba(0,0,0,.55)}.team-dropdown-list{position:absolute;left:0;right:0;top:calc(100% + 5px);z-index:8;display:grid;gap:4px;max-height:min(330px,48dvh);overflow:auto;padding:6px;border:2px solid #7536d2;background:rgba(10,3,20,.98);box-shadow:0 18px 45px #000}.team-option{display:flex;align-items:center;gap:8px;width:100%;height:34px;padding:0 7px;text-align:left;font:12px/1 Arial,sans-serif;text-shadow:none}.team-option b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:Impact,"Arial Black",sans-serif;font-size:14px;text-shadow:1px 2px #000}.team-option.taken{opacity:.42;cursor:not-allowed}
    .goal-banner{position:absolute;left:50%;top:50%;z-index:5;min-width:min(360px,82vw);padding:18px 22px;transform:translate(-50%,-50%);border:3px solid #f3f0ff;background:rgba(8,6,13,.88);text-align:center;box-shadow:0 18px 55px #000;text-shadow:2px 3px #000}.goal-banner .goal-word{font-size:18px;color:#ffdd45}.goal-banner .goal-name{margin-top:4px;font-size:34px;line-height:1}.goal-banner .goal-team{margin-top:7px;font:13px Arial,sans-serif;color:#d8cdf5;text-shadow:none}.goal-banner.final{min-width:min(460px,86vw)}.goal-list{display:grid;gap:6px;margin-top:12px;font:14px Arial,sans-serif;text-align:left;text-shadow:none}.goal-row{display:grid;grid-template-columns:42px 1fr;gap:10px;border-top:1px solid rgba(255,255,255,.14);padding-top:6px}.goal-row b{font-family:Impact,"Arial Black",sans-serif;font-size:16px;color:#fff;text-shadow:1px 2px #000}.goal-row span{color:#d8cdf5}.goal-row .goal-assist{color:#ffdd45;font-size:12px}
    .hud{align-content:center;row-gap:2px;padding-top:5px;padding-bottom:4px}.scoreline{white-space:nowrap;font-size:16px}.score-scorers{grid-column:1/-1;display:flex;flex-wrap:wrap;justify-content:center;gap:3px 14px;min-height:12px;text-align:center;font:700 11px/1.08 "Rajdhani","Arial Narrow",Arial,sans-serif;color:#ffdd45;text-shadow:1px 2px #000;white-space:normal;overflow:visible}.score-goal{display:grid;gap:1px}.score-goal small{display:block;color:#d8cdf5;font:700 9px/1 Arial,sans-serif;text-shadow:1px 1px #000}.events small{display:block;margin-left:14px;color:#ffdd45;font-size:11px;line-height:1.1}
    
    
    .training-panel{position:absolute;left:50%;top:50%;z-index:6;width:min(560px,90vw);max-height:78dvh;overflow:auto;transform:translate(-50%,-50%);display:grid;gap:10px}.training-title{text-align:center;font-size:18px}.training-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.training-list{display:grid;gap:5px;max-height:260px;overflow:auto;padding-right:2px}.training-player{height:auto;min-height:30px;padding:5px 7px;text-align:left;font:12px/1.1 Arial,sans-serif;text-shadow:none}.training-player b{font-family:Impact,"Arial Black",sans-serif;font-size:14px;text-shadow:1px 2px #000}.training-selected{min-height:54px;font:12px/1.35 Arial,sans-serif;color:#d8cdf5;text-shadow:none}.training-chip{display:inline-block;margin:0 4px 4px 0;border:1px solid var(--trim);background:var(--shirt);color:#fff;padding:3px 6px;text-shadow:1px 1px #000}.training-result{min-height:20px;font:13px Arial,sans-serif;color:#ffdd45;text-align:center;text-shadow:none}
    .training-selects{display:grid;gap:6px;margin-bottom:6px}
    .manager-panel{width:min(720px,90vw);max-height:78dvh;overflow:auto}.manager-home,.manager-create,.manager-season{display:grid;gap:10px}.manager-title{text-align:center;font-size:18px}.manager-users{display:grid;gap:6px;max-height:250px;overflow:auto;padding-right:2px}.manager-user{height:auto;min-height:38px;padding:6px 9px;text-align:left;font:12px/1.2 Arial,sans-serif;text-shadow:none}.manager-user b{font-family:Impact,"Arial Black",sans-serif;font-size:15px;text-shadow:1px 2px #000}.manager-user small{display:block;color:#d8cdf5}.manager-user.off{opacity:.42}.manager-meta{font:12px/1.35 Arial,sans-serif;color:#d8cdf5;text-align:center;text-shadow:none}.manager-table,.manager-fixtures{display:grid;gap:4px;font:12px/1.25 Arial,sans-serif;text-shadow:none}.manager-row{display:grid;grid-template-columns:28px 1fr 28px 28px 28px;border-top:1px solid rgba(255,255,255,.14);padding:4px 0;gap:6px}.manager-row.head{color:#ffdd45;border-top:0}.manager-row.promote{background:rgba(19,135,47,.72);border-top-color:rgba(255,255,255,.28);padding-left:4px;padding-right:4px}.manager-row.playoff{background:rgba(190,91,18,.74);border-top-color:rgba(255,255,255,.24);padding-left:4px;padding-right:4px}.manager-fixture{display:grid;grid-template-columns:32px 1fr auto 1fr;gap:7px;border-top:1px solid rgba(255,255,255,.12);padding:4px 0 1px;align-items:center}.manager-fixture .manager-team-name{color:#fff;font-weight:900}.manager-fixture b{color:#ffdd45}.manager-odds{font:700 10px/1.15 Arial,sans-serif;color:#fff;text-align:center;margin:6px 0 2px;text-shadow:none}.manager-odds-line{display:grid;grid-template-columns:repeat(3,max-content);justify-content:center;gap:clamp(22px,7vw,96px)}.manager-actions{position:relative;z-index:9;display:grid;gap:8px}.manager-menu-button{position:relative;width:100%;height:37px;padding:0 36px 0 12px;border-color:#ffdd45;background:linear-gradient(180deg,rgba(60,22,104,.96),rgba(18,6,34,.98));font-size:15px;letter-spacing:.04em;text-align:center}.manager-menu-button:after{content:"";position:absolute;right:14px;top:50%;width:0;height:0;transform:translateY(-35%);border-left:5px solid transparent;border-right:5px solid transparent;border-top:7px solid #ffdd45}.manager-menu-list{position:absolute;left:0;right:0;bottom:calc(100% + 6px);z-index:12;display:grid;gap:5px;max-height:min(340px,52dvh);overflow:auto;padding:7px;border:2px solid #ffdd45;background:rgba(9,0,18,.98);box-shadow:0 18px 42px rgba(0,0,0,.72),inset 0 1px rgba(255,255,255,.14)}.manager-menu-list button{height:32px;padding:0 10px;text-align:left;font-size:12px;letter-spacing:.04em;text-shadow:1px 2px #000}.manager-menu-list button:hover,.manager-menu-list button:focus-visible{border-color:#ffdd45;background:rgba(88,38,145,.94)}#managerMsg.thinking:after{display:inline-block;min-width:20px;text-align:left;content:"";animation:managerDots 1.05s steps(4,end) infinite}@keyframes managerDots{0%{content:""}25%{content:"."}50%{content:".."}75%,100%{content:"..."}}
    .manager-user.green:hover,.manager-user.green:focus-visible{border-color:#26da48;background:rgba(8,112,31,.9)}
    

#manager .manager-panel{top:53%;width:min(980px,86vw);max-height:calc(100dvh - 96px)}
    #menu .top,#admin .top,#manager .top{top:0;left:0;width:100%;height:1cm;transform:none;display:flex;align-items:center;justify-content:center;border-bottom:2px solid #7536d2;background:rgba(18,6,34,.94);box-shadow:0 10px 34px rgba(0,0,0,.55);font-size:16px}
    .top-team-flag{position:absolute;left:18px;top:50%;display:flex;align-items:center;transform:translateY(-50%)}
    .top-team-flag .team-flag{width:30px;height:20px}
    .top-team-flag .team-flag:before{left:-5px;top:-3px;height:28px}
    #menu #who,#admin #adminWho,#manager #managerWho{position:relative;z-index:1;text-align:center}
    .top-power{position:absolute;right:10px;top:50%;display:grid;place-items:center;width:28px;height:28px;min-height:0;padding:0;transform:translateY(-50%);border:0;background:transparent;box-shadow:none}
    .top-power:before{content:"";width:13px;height:13px;border:2px solid #ff3b30;border-top-color:transparent;border-radius:50%}
    .top-power:after{content:"";position:absolute;left:50%;top:5px;width:2px;height:10px;transform:translateX(-50%);background:#ff3b30;box-shadow:0 0 0 1px rgba(0,0,0,.25)}
    .manager-table .manager-row,.manager-division-table .manager-row{grid-template-columns:26px minmax(0,1fr) 34px repeat(4,34px) 36px 36px 38px 20px;gap:4px}
    .manager-table .manager-row>span,.manager-division-table .manager-row>span{min-width:0;overflow:hidden;text-overflow:ellipsis;text-align:center;font-variant-numeric:tabular-nums}
    .manager-table .manager-row>span:nth-child(2),.manager-division-table .manager-row>span:nth-child(2){text-align:left}
    .manager-table .manager-team-link,.manager-division-table .manager-team-link{width:100%;max-width:100%;min-width:0}
    .manager-table .manager-team-name,.manager-division-table .manager-team-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
    .manager-table .manager-row.promote,.manager-table .manager-row.playoff,.manager-table .manager-row.direct,.manager-division-table .manager-row.promote,.manager-division-table .manager-row.playoff,.manager-division-table .manager-row.direct{padding-left:0;padding-right:0}
    .manager-row.direct{background:rgba(16,126,44,.72);border-top-color:rgba(255,255,255,.28);padding-left:4px;padding-right:4px}
    .human-dot{display:inline-grid;place-items:center;width:12px;height:12px;flex:0 0 auto;border:1px solid rgba(255,255,255,.85);background:#ffdd45;color:#120421;font:900 8px/1 Arial,sans-serif;text-shadow:none;box-shadow:0 1px 0 rgba(0,0,0,.45)}
    .manager-form-cell{display:grid;place-items:center;min-width:0}.manager-form-arrow{display:inline-block;width:0;height:0;filter:drop-shadow(0 1px 0 rgba(0,0,0,.8))}.manager-form-arrow.up{border-left:5px solid transparent;border-right:5px solid transparent;border-bottom:9px solid #26da48}.manager-form-arrow.down{border-left:5px solid transparent;border-right:5px solid transparent;border-top:9px solid #ff3b30}.manager-form-empty{display:inline-block;width:10px;height:10px}
    .manager-ready-waiting{border-color:#26da48!important;background:linear-gradient(180deg,rgba(18,142,48,.96),rgba(8,64,28,.98))!important;box-shadow:0 0 0 2px rgba(38,218,72,.35),0 0 18px rgba(38,218,72,.42),inset 0 1px rgba(255,255,255,.26)!important;color:#fff!important}
    .manager-deal-alert{animation:managerDealPulse .78s steps(2,end) infinite;border-color:#26da48!important;background:linear-gradient(180deg,rgba(18,142,48,.98),rgba(82,29,143,.98))!important;box-shadow:0 0 0 2px rgba(38,218,72,.28),0 0 18px rgba(38,218,72,.5),inset 0 1px rgba(255,255,255,.26)!important;color:#fff!important}
    @keyframes managerDealPulse{0%,100%{filter:brightness(1.18)}50%{filter:brightness(.82)}}
.manager-deals{display:grid;gap:7px;margin-top:7px}.manager-deal-card{display:grid;gap:7px;border:1px solid rgba(255,255,255,.16);background:rgba(7,4,15,.78);padding:8px;text-align:left;text-shadow:none}.manager-deal-card.incoming{border-color:rgba(38,218,72,.74);background:rgba(8,64,28,.42)}.manager-deal-card.outgoing{border-color:rgba(117,54,210,.72)}.manager-deal-card b{color:#fff;font:16px/1 "Rajdhani","Arial Narrow",Arial,sans-serif;text-shadow:1px 2px #000}.manager-deal-card small{display:block;margin-top:2px;color:#cfc1ee;font:11px/1.25 Arial,sans-serif;text-shadow:none}.manager-deal-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(82px,1fr));gap:5px}.manager-deal-actions button{height:29px;font-size:11px}
#managerDealsPage:not(.hide){display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;gap:9px;height:100%;min-height:0;overflow:hidden}
#managerDealsList{min-height:0;max-height:none;overflow:auto;padding:2px 2px 8px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
#managerDealsList::-webkit-scrollbar{width:0;height:0;display:none}
#managerDealsPage .manager-deal-card{gap:10px;padding:12px;border-width:2px;border-radius:6px;background:linear-gradient(180deg,rgba(18,6,34,.88),rgba(6,2,14,.92))}
#managerDealsPage .manager-deal-card.incoming{background:linear-gradient(180deg,rgba(8,84,30,.62),rgba(5,22,12,.92))}
#managerDealsPage .manager-deal-card b{font-size:20px}
#managerDealsPage .manager-deal-card small{font-size:13px;line-height:1.35}
#managerDealsPage .manager-deal-actions{grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:8px}
#managerDealsPage .manager-deal-actions button{height:42px;font-size:15px}
    .manager-team-link{display:inline-flex;align-items:center;gap:4px;width:auto;height:auto;min-height:0;border:0;background:transparent;box-shadow:none;padding:0;color:#fff;font:inherit;text-align:left;text-shadow:none}.manager-team-link:hover,.manager-team-link:focus-visible{background:transparent;border:0;color:#ffdd45}
    .manager-player-row{height:auto;min-height:44px;padding:6px 8px;text-align:left;font:12px/1.25 Arial,sans-serif;text-shadow:none}.manager-player-row b{font-family:"Rajdhani","Arial Narrow",Arial,sans-serif;font-size:15px;text-shadow:1px 2px #000}.manager-player-row small{display:block;color:#d8cdf5}.manager-player-stats{display:block;margin-top:3px;color:#fff}
    #managerTeamPage{gap:9px}.manager-team-squad{display:grid;gap:9px;max-height:58dvh;overflow:auto;padding-right:3px}.team-profile-hero{display:grid;grid-template-columns:auto 1fr;gap:11px;align-items:center;border:1px solid rgba(255,221,69,.42);background:linear-gradient(90deg,rgba(255,221,69,.12),rgba(117,54,210,.12));padding:10px;text-align:left}.team-profile-hero .team-flag{width:44px;height:29px}.team-profile-hero .team-flag:before{height:39px}.team-profile-name{font-size:22px;line-height:.95;color:#fff;text-shadow:1px 2px #000}.team-profile-sub{margin-top:4px;font:12px/1 "Rajdhani","Arial Narrow",Arial,sans-serif;color:#ffdd45;text-shadow:none}.team-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}.team-metric{border:1px solid rgba(255,255,255,.16);background:rgba(5,2,10,.62);padding:7px 5px;text-align:center}.team-metric b{display:block;font-size:19px;line-height:1;color:#fff;text-shadow:1px 2px #000}.team-metric span{display:block;margin-top:3px;font:10px/1 Arial,sans-serif;color:#cfc1ee;text-shadow:none}.team-section-title{display:flex;align-items:center;gap:8px;margin-top:2px;color:#ffdd45;font-size:16px;text-shadow:1px 2px #000}.team-section-title:after{content:"";height:1px;flex:1;background:rgba(255,221,69,.28)}.team-formation{position:relative;min-height:280px;overflow:hidden;border:1px solid rgba(255,255,255,.18);background:linear-gradient(180deg,rgba(30,126,65,.78),rgba(16,92,45,.78));box-shadow:inset 0 0 0 2px rgba(255,255,255,.05)}.team-formation:before{content:"";position:absolute;left:8%;right:8%;top:50%;height:1px;background:rgba(255,255,255,.36)}.team-formation:after{content:"";position:absolute;left:50%;top:50%;width:82px;height:82px;transform:translate(-50%,-50%);border:1px solid rgba(255,255,255,.32);border-radius:50%}.formation-player{position:absolute;left:var(--x);top:var(--y);width:76px;transform:translate(-50%,-50%);text-align:center}.formation-head{display:grid;place-items:center;width:38px;height:26px;margin:0 auto 3px;border:2px solid var(--trim);border-radius:999px;background:var(--shirt);color:#fff;font-size:9px;text-shadow:1px 1px #000;box-shadow:0 2px 0 rgba(0,0,0,.55)}.formation-player b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:10px/1 Arial,sans-serif;color:#fff;text-shadow:1px 1px #000}.formation-player span{display:block;font:9px/1 Arial,sans-serif;color:#ffdd45;text-shadow:1px 1px #000}.team-player-list,.manager-transfer-list{display:grid;gap:7px}.manager-transfer-list{max-height:58dvh;overflow:auto;padding-right:3px}.team-player-card{display:grid;grid-template-columns:50px 1fr auto;gap:8px;align-items:start;border:1px solid rgba(255,255,255,.16);background:rgba(12,5,24,.78);padding:8px;text-align:left;text-shadow:none}.team-player-card.bench{background:rgba(42,14,78,.52)}.team-role{display:grid;place-items:center;min-height:34px;padding:0 3px;text-align:center;border:1px solid var(--trim);background:var(--shirt);color:#fff;font:13px/1 "Rajdhani","Arial Narrow",Arial,sans-serif;text-shadow:1px 2px #000}.team-player-main b{display:block;font-size:16px;line-height:1.05;color:#fff;text-shadow:1px 2px #000}.team-player-main small{display:block;margin-top:3px;font:11px/1.2 Arial,sans-serif;color:#cfc1ee}.team-rating{min-width:42px;text-align:center;color:#ffdd45;font-size:22px;line-height:.9;text-shadow:1px 2px #000}.team-rating span{display:block;margin-top:3px;font:9px/1 Arial,sans-serif;color:#cfc1ee;text-shadow:none}.team-stats{grid-column:1/-1;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px}.team-stat{display:flex;justify-content:space-between;gap:4px;min-width:0;border:1px solid rgba(255,255,255,.12);background:rgba(0,0,0,.24);padding:3px 5px;font:10px/1 Arial,sans-serif;color:#fff}.team-stat span:first-child{color:#a997d0}.team-stat span:last-child{color:#fff;font-weight:700}.market-player-card{cursor:pointer;transition:border-color .12s,background .12s}.market-player-card:hover,.market-player-card:focus-visible{outline:0;border-color:#ffdd45;background:rgba(25,8,48,.9)}.team-player-action{grid-column:1/-1;display:flex;justify-content:space-between;gap:8px;align-items:center;border-top:1px solid rgba(255,255,255,.12);padding-top:6px;font:11px/1.2 Arial,sans-serif;color:#d8cdf5}.team-player-action b{font-family:"Rajdhani","Arial Narrow",Arial,sans-serif;color:#ffdd45;text-shadow:1px 2px #000}.team-player-action span:last-child{color:#fff}
    #manager .manager-create>button[id$="Back"]:not(#managerSimBack){display:none}
    #managerEconomyPage:not(.hide),#managerStatsInfoPage:not(.hide){position:relative;top:0;align-content:start;min-height:0;height:100%;overflow:auto!important;padding-top:6px}
    #managerStatsInfoPage:not(.hide){display:grid;grid-template-rows:minmax(0,1fr)!important;gap:0!important;overflow:hidden!important;padding-top:0}
    #managerStatsInfoList{height:100%;min-height:0;max-height:none!important;overflow:auto!important;padding-right:0;padding-bottom:4px}
    #managerTransfersPage:not(.hide){display:grid;grid-template-rows:auto auto auto auto;align-content:start;gap:8px;height:100%;min-height:0;overflow:auto!important;scrollbar-width:none;-webkit-overflow-scrolling:touch;touch-action:pan-y}
    #managerTransfersPage:not(.hide)::-webkit-scrollbar{width:0;height:0;display:none}
    #managerTransfersPage .manager-transfer-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(160px,100%),1fr));grid-auto-rows:minmax(64px,1fr);align-content:stretch;gap:8px;min-height:0}
    #managerTransfersPage .manager-transfer-actions button{height:100%;min-height:64px;padding:0 10px;text-align:center;font-size:13px}
    #managerTransfersPage .manager-deals{min-height:0;max-height:none;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;margin-top:0;padding-right:0}
    #managerSquadPage:not(.hide){display:grid;grid-template-rows:clamp(156px,25dvh,205px) minmax(0,1fr);gap:8px;height:100%;min-height:0;overflow:hidden!important}
    #managerSquadPage #managerSquadFilters{height:100%;grid-template-columns:repeat(auto-fit,minmax(min(88px,100%),1fr));grid-auto-rows:minmax(34px,1fr);align-content:stretch;gap:8px}
    #managerSquadPage #managerSquadFilters button{height:100%;min-height:34px;padding:0 8px;text-align:center}
    .manager-filter-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(46px,1fr));gap:5px}.manager-filter-row button{height:29px;padding:0 4px;font-size:11px}.manager-filter-row button.active{border-color:#ffdd45;background:rgba(88,38,145,.95)}
    #managerDivisionLevels{grid-template-columns:repeat(3,minmax(0,1fr))}
    #managerDivisionLevels button{min-width:0;height:34px;padding:0 5px;font-size:10px;line-height:.92;white-space:normal;overflow-wrap:anywhere}
    .manager-division-actions{grid-template-columns:1fr}.manager-division-actions button{height:32px;font-size:12px}
    #managerDivisionPage:not(.hide){display:grid;grid-template-rows:auto auto auto minmax(0,1fr);gap:7px;min-height:0;overflow:hidden!important}
    #managerDivisionList{min-height:0;overflow:auto!important}
    .manager-replacement-list{display:grid;gap:6px;border:1px solid rgba(255,221,69,.42);background:rgba(5,2,10,.7);padding:7px}.manager-replacement-title{font:13px/1 "Rajdhani","Arial Narrow",Arial,sans-serif;color:#ffdd45;text-align:center;text-shadow:1px 2px #000}.manager-replacement-row{height:auto;min-height:36px;padding:5px 8px;text-align:left;font:12px/1.15 Arial,sans-serif;text-shadow:none}.manager-replacement-row b{font-family:"Rajdhani","Arial Narrow",Arial,sans-serif;font-size:14px;text-shadow:1px 2px #000}.manager-replacement-row small{display:block;color:#cfc1ee}.manager-replacement-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px}
    .manager-info-list{display:grid;gap:6px;max-height:58dvh;overflow:auto;padding-right:3px}.manager-info-title{margin-top:8px;padding:5px 7px;border-top:1px solid rgba(255,221,69,.38);color:#ffdd45;font:18px/1 Impact,"Arial Black",sans-serif;text-align:center;text-shadow:1px 2px #000}.manager-info-row{display:grid;grid-template-columns:94px 1fr;gap:8px;border:1px solid rgba(255,255,255,.14);background:rgba(5,2,10,.58);padding:7px;text-align:left;text-shadow:none}.manager-info-row b{color:#ffdd45;text-shadow:1px 2px #000}.manager-info-row span{font:12px/1.25 Arial,sans-serif;color:#d8cdf5}
    #managerFixturesPage:not(.hide),#managerScorersPage:not(.hide),#managerAssistsPage:not(.hide),#managerReportsPage:not(.hide),#managerCupsPage:not(.hide){display:grid;grid-template-rows:auto minmax(0,1fr) auto;min-height:0;overflow:hidden}
    #managerFixturesList,#managerScorersList,#managerAssistsList,#managerReportsList,#managerCupsList{min-height:0;max-height:calc(100dvh - 210px);overflow:auto!important;padding-right:0}
    #managerSavesList{max-height:min(520px,62dvh)}.manager-save-row{display:grid;grid-template-columns:minmax(0,1fr) 34px;gap:5px}.manager-save-load{height:auto;min-height:48px;padding:6px 8px;line-height:1.05;text-align:left}.manager-save-load small{display:block;margin-top:3px;color:#cfc1ee;font:10px/1.15 Arial,sans-serif;text-shadow:none;white-space:normal}.manager-save-delete{height:48px;padding:0;text-align:center;color:#ff8f66;font-size:15px}.manager-save-empty{padding:8px;text-align:center;font:12px/1.25 Arial,sans-serif;color:#cfc1ee;text-shadow:none}
    .manager-playoff,.manager-last,.invite-box,.manager-confirm{border:1px solid rgba(255,221,69,.55);background:rgba(255,221,69,.08);padding:7px;text-align:center;font:12px/1.3 Arial,sans-serif;color:#fff;text-shadow:none}
    .manager-outcome{color:#fff;font-weight:900}
    .manager-playoff b,.manager-last b,.invite-box b,.manager-confirm b{font-family:Impact,"Arial Black",sans-serif;color:#ffdd45;text-shadow:1px 2px #000}
    .manager-stat-divider{margin-top:14px;padding-top:10px;border-top:1px solid rgba(255,221,69,.35);text-align:center;text-shadow:none}.manager-stat-divider b{display:block;color:#ffdd45;font:18px/1 Impact,"Arial Black",sans-serif;text-shadow:1px 2px #000}.manager-stat-divider span{display:block;margin-top:3px;color:#d8cdf5;font:10px/1.2 Arial,sans-serif}
    .season-report{--season-label-width:clamp(126px,26.5%,420px);display:grid;gap:9px;text-align:left;background:rgba(25,4,20,.72)}.season-report-title{text-align:center;font:16px/1 Impact,"Arial Black",sans-serif;color:#ffdd45;text-shadow:1px 2px #000}.season-report-section{display:grid;gap:6px;border-top:1px solid rgba(255,221,69,.22);padding-top:8px}.season-report-section:first-of-type{border-top:0;padding-top:0}.season-report-section>b{display:block;text-align:center}.season-report-row{display:grid;grid-template-columns:var(--season-label-width) minmax(0,1fr);gap:10px;align-items:start;border:1px solid rgba(255,255,255,.08);background:rgba(0,0,0,.18);padding:5px 7px}.season-report-label{color:#cfc1ee;text-transform:uppercase;font-size:10px;line-height:1.2}.season-report-teams,.season-report-list{display:grid;gap:5px}.season-report-teams{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}.season-movement-teams{grid-template-columns:repeat(3,minmax(0,1fr))}.season-report-gap{display:block}.season-report-vs{align-self:center;color:#cfc1ee;font-size:10px;text-transform:uppercase}.season-team{display:inline-flex;align-items:center;gap:5px;min-width:0;max-width:100%}.season-team .team-flag{width:18px;height:12px;flex:0 0 auto}.season-team>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.season-team small{flex:0 0 auto;color:#ffdd45;font-size:10px}.season-match{display:grid;grid-template-columns:var(--season-label-width) repeat(3,minmax(0,1fr));gap:10px;align-items:center;border:1px solid rgba(255,255,255,.08);background:rgba(0,0,0,.18);padding:5px 7px}.season-round{color:#cfc1ee;font-size:10px;text-transform:uppercase}.season-score{text-align:center;color:#ffdd45;font-weight:700}.season-decision{grid-column:2/-1;color:#cfc1ee;font-size:10px;text-align:center}
    .manager-job-offer{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center;border:1px solid rgba(255,255,255,.12);background:rgba(0,0,0,.24);padding:7px}.manager-job-offer.accepted{border-color:rgba(38,218,72,.75);background:rgba(8,112,31,.22)}.manager-job-main{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px;align-items:center;min-width:0}.manager-job-main .team-flag{width:34px;height:22px}.manager-job-main strong,.manager-job-main span,.manager-job-main small{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.manager-job-main strong{color:#fff;font:17px/1 "Rajdhani","Arial Narrow",Arial,sans-serif;text-shadow:1px 2px #000}.manager-job-main span{color:#ffdd45;font:10px/1.1 Arial,sans-serif;text-transform:uppercase}.manager-job-main small{margin-top:2px;color:#d8cdf5;font:10px/1.15 Arial,sans-serif;text-shadow:none}.manager-job-actions{display:grid;grid-template-columns:repeat(2,minmax(64px,1fr));gap:5px}.manager-job-actions button{height:30px;padding:0 8px;font-size:10px}.manager-job-actions b{align-self:center;color:#26da48;font:13px/1 Impact,"Arial Black",sans-serif;text-shadow:1px 2px #000}
    .manager-job-team-button{width:100%;height:auto;min-height:0;padding:0;border:0;background:transparent;box-shadow:none;color:inherit;text-align:left;text-shadow:none}.manager-job-team-button:hover,.manager-job-team-button:focus-visible{border:0;background:rgba(117,54,210,.16);box-shadow:none;color:inherit;outline:1px solid rgba(255,221,69,.5)}
    .team-economy-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.team-economy-cell{border:1px solid rgba(255,221,69,.22);background:rgba(0,0,0,.22);padding:5px 4px;text-align:center}.team-economy-cell b{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#fff;font:900 14px/1 "Rajdhani","Arial Narrow",Arial,sans-serif;text-shadow:1px 2px #000}.team-economy-cell span{display:block;margin-top:2px;color:#cfc1ee;font:900 8px/1 Arial,sans-serif;text-shadow:none}
    .manager-cup-section{display:grid;gap:8px}.manager-cup-card{display:grid;gap:7px;border:1px solid rgba(255,255,255,.14);background:rgba(5,2,10,.58);padding:8px;text-shadow:none}.manager-cup-card.ongoing{border-color:rgba(38,218,72,.78);background:rgba(8,112,31,.24);box-shadow:0 0 16px rgba(38,218,72,.16)}.manager-cup-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center}.manager-cup-head strong{color:#ffdd45;font:15px/1 "Rajdhani","Arial Narrow",Arial,sans-serif;text-align:right;text-shadow:1px 2px #000}.manager-cup-head strong.ongoing{color:#26da48}.manager-cup-head strong.out{color:#ff8f66}.manager-cup-head strong.runner-up{color:#d8cdf5}.manager-cup-metrics{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px}.manager-cup-metrics span{border:1px solid rgba(255,255,255,.11);background:rgba(255,255,255,.06);padding:4px;text-align:center;font:9px/1.1 Arial,sans-serif;color:#cfc1ee}.manager-cup-metrics b{display:block;color:#fff;font:13px/1 "Rajdhani","Arial Narrow",Arial,sans-serif;text-shadow:1px 2px #000}.manager-cup-matches{display:grid;gap:4px}.manager-cup-match{display:grid;grid-template-columns:minmax(72px,.8fr) minmax(0,1fr) 44px minmax(0,1fr) 56px;gap:6px;align-items:center;border-top:1px solid rgba(255,255,255,.1);padding-top:4px;font:10px/1.15 Arial,sans-serif;color:#d8cdf5}.manager-cup-match:first-child{border-top:0}.manager-cup-match b{text-align:center;color:#ffdd45;font-size:12px}.manager-cup-match em{justify-self:end;font-style:normal;font-weight:900}.manager-cup-match.w em{color:#26da48}.manager-cup-match.l em{color:#ff8f66}.manager-cup-match.d em{color:#ffdd45}.manager-cup-match.pending em{color:#cfc1ee}
    @media(max-width:620px){.manager-cup-head{grid-template-columns:1fr}.manager-cup-head strong{text-align:left}.manager-cup-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.manager-cup-match{grid-template-columns:minmax(64px,.8fr) minmax(0,1fr) 38px;grid-template-areas:"round home score" "result away score";gap:3px 5px}.manager-cup-match>span:first-child{grid-area:round}.manager-cup-match .season-home{grid-area:home}.manager-cup-match b{grid-area:score}.manager-cup-match .season-away{grid-area:away}.manager-cup-match em{grid-area:result;justify-self:start}}
    @media(max-width:620px){.manager-job-offer{grid-template-columns:1fr}.manager-job-main .team-flag{width:28px;height:18px}.manager-job-actions{grid-template-columns:1fr 1fr}.manager-job-main small{white-space:normal}}
    .manager-confirm{display:grid;gap:7px;background:rgba(34,6,18,.92);border-color:#bc4b12}.manager-confirm .row{justify-content:center}.manager-confirm button{width:min(180px,42vw)}
    .confirm-modal{position:fixed;inset:0;z-index:40;display:grid;place-items:center;background:rgba(0,0,0,.72);padding:18px}.confirm-box{display:grid;gap:10px;width:min(420px,88vw);border:2px solid #7536d2;background:rgba(18,6,34,.96);padding:14px;box-shadow:0 22px 70px #000,inset 0 1px rgba(255,255,255,.18);text-align:center}.confirm-title{font:22px/1 Impact,"Arial Black",sans-serif;color:#ffdd45;text-shadow:1px 2px #000}.confirm-text{font:13px/1.35 Arial,sans-serif;color:#e4d8ff;text-shadow:none;white-space:pre-line}.confirm-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.confirm-actions button{min-width:0}.transfer-offer-box{width:min(480px,92vw);text-align:left}.transfer-offer-player{border:1px solid rgba(255,255,255,.16);background:rgba(5,2,10,.48);padding:8px;text-align:center;font:12px/1.25 Arial,sans-serif;color:#d8cdf5;text-shadow:none}.transfer-offer-player b{display:block;color:#fff;font:18px/1 "Rajdhani","Arial Narrow",Arial,sans-serif;text-shadow:1px 2px #000}.transfer-bid-row{display:grid;grid-template-columns:42px 1fr 42px;gap:7px;align-items:center}.transfer-bid-row button{height:38px;padding:0;font-size:20px}.transfer-bid-value{display:grid;place-items:center;min-height:38px;border:2px solid #7536d2;background:rgba(7,4,15,.88);font-size:18px;color:#ffdd45;text-align:center;text-shadow:1px 2px #000}.transfer-offer-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.transfer-offer-card{border:1px solid rgba(255,255,255,.16);background:rgba(5,2,10,.58);padding:6px;text-align:center;text-shadow:none}.transfer-offer-card b{display:block;color:#fff;font-size:14px;text-shadow:1px 2px #000}.transfer-offer-card span{display:block;margin-top:2px;font:9px/1.05 Arial,sans-serif;color:#cfc1ee}.transfer-offer-label{font:11px/1.2 Arial,sans-serif;color:#ffdd45;text-align:left;text-shadow:none}.transfer-player-picker{position:relative}.transfer-player-button{position:relative;width:100%;height:auto;min-height:38px;padding:6px 34px 6px 10px;text-align:left;background:rgba(7,4,15,.92);border-color:#7536d2;font-size:12px;line-height:1.08;text-shadow:none}.transfer-player-button:after{content:"";position:absolute;right:13px;top:50%;width:0;height:0;transform:translateY(-35%);border-left:5px solid transparent;border-right:5px solid transparent;border-top:7px solid #ffdd45}.transfer-player-choice b{display:block;color:#fff;font-size:14px;text-shadow:1px 2px #000}.transfer-player-choice small{display:block;margin-top:2px;color:#cfc1ee;font:10px/1.1 Arial,sans-serif;text-shadow:none}.transfer-player-list{position:absolute;left:0;right:0;top:calc(100% + 4px);z-index:55;display:grid;gap:4px;max-height:min(260px,42dvh);overflow:auto;padding:6px;border:2px solid #7536d2;background:rgba(9,0,18,.98);box-shadow:0 18px 42px rgba(0,0,0,.72),inset 0 1px rgba(255,255,255,.14)}.transfer-player-option{height:auto;min-height:40px;padding:6px 8px;text-align:left;font:12px/1.1 "Rajdhani","Arial Narrow",Arial,sans-serif;text-shadow:none}.transfer-player-option b{display:block;color:#fff;font-size:14px;text-shadow:1px 2px #000}.transfer-player-option small{display:block;margin-top:2px;color:#cfc1ee;font:10px/1.1 Arial,sans-serif;text-shadow:none}.transfer-player-option.active{border-color:#ffdd45;background:rgba(88,38,145,.95)}
    .manager-button-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(132px,1fr));gap:7px}.manager-button-row button{min-width:0;padding:0 7px;font-size:13px;line-height:.95;white-space:normal}.manager-button-row .wide-action{grid-column:1/-1}.manager-league-list{grid-template-columns:1fr}.manager-transfer-actions{grid-template-columns:1fr;gap:2px}
    .manager-start-game{box-shadow:inset 0 1px rgba(255,255,255,.28),inset 0 -2px rgba(0,0,0,.55),0 0 14px rgba(38,218,72,.48);animation:managerStartGlow 1.45s ease-in-out infinite}
    .manager-start-game:hover,.manager-start-game:focus-visible{border-color:#7cff8a;background:rgba(8,132,38,.96);box-shadow:inset 0 1px rgba(255,255,255,.3),inset 0 -2px rgba(0,0,0,.55),0 0 20px rgba(38,218,72,.72)}
    .manager-start-game:disabled{animation:none;box-shadow:inset 0 1px rgba(255,255,255,.18),inset 0 -2px rgba(0,0,0,.45)}
    @keyframes managerStartGlow{0%,100%{box-shadow:inset 0 1px rgba(255,255,255,.28),inset 0 -2px rgba(0,0,0,.55),0 0 10px rgba(38,218,72,.34)}50%{box-shadow:inset 0 1px rgba(255,255,255,.3),inset 0 -2px rgba(0,0,0,.55),0 0 22px rgba(38,218,72,.72)}}
    .manager-transfer-notice{border:1px solid rgba(38,218,72,.72);background:rgba(8,112,31,.42);padding:8px;text-align:center;font:12px/1.35 Arial,sans-serif;color:#fff;text-shadow:none}.manager-transfer-notice b{display:block;font-family:Impact,"Arial Black",sans-serif;color:#ffdd45;text-shadow:1px 2px #000}.manager-transfer-notice button{margin-top:7px;min-height:30px;padding:7px 12px;border:1px solid rgba(255,221,69,.85);background:rgba(0,0,0,.55);color:#ffdd45;font:12px Impact,"Arial Black",sans-serif;letter-spacing:.2px}.transfer-economy{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.08);padding:6px;text-align:center;text-shadow:none}.transfer-economy span{min-width:0;overflow:hidden;text-overflow:ellipsis;font:10px/1.1 Arial,sans-serif;color:#d8cdf5}.transfer-economy b{display:block;color:#ffdd45;font:12px/1 "Rajdhani","Arial Narrow",Arial,sans-serif;text-shadow:1px 2px #000}
    .manager-economy-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.manager-economy-card{border:1px solid rgba(255,255,255,.16);background:rgba(5,2,10,.62);padding:8px;text-align:center;text-shadow:none}.manager-economy-card b{display:block;font-size:18px;line-height:1;color:#fff;text-shadow:1px 2px #000}.manager-economy-card span{display:block;margin-top:4px;font:10px/1.1 Arial,sans-serif;color:#cfc1ee}.manager-economy-card.good b{color:#26da48}.manager-economy-card.bad b{color:#ff8f66}.manager-economy-section{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:7px;border:1px solid rgba(255,255,255,.16);background:rgba(5,2,10,.58);padding:9px;text-align:left;text-shadow:none}.manager-economy-expand .manager-economy-section{margin-top:10px}.manager-economy-section h3{grid-column:1/-1;margin:0;color:#ffdd45;font:17px/1 Impact,"Arial Black",sans-serif;text-align:center;text-shadow:1px 2px #000}.manager-economy-meta{grid-column:1/-1;text-align:center;font:11px/1.25 Arial,sans-serif;color:#d8cdf5}.manager-economy-column{display:grid;align-content:start;gap:5px;min-width:0}.manager-economy-column h4{margin:0;color:#cfc1ee;font:10px/1 Arial,sans-serif;text-align:center;text-transform:uppercase}.manager-economy-line{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center;border:1px solid rgba(255,255,255,.11);background:rgba(255,255,255,.055);padding:6px 7px}.manager-economy-line span{min-width:0;font:11px/1.15 Arial,sans-serif;color:#d8cdf5}.manager-economy-line small{display:block;margin-top:2px;color:#9f8fc7;font-size:9px}.manager-economy-line b{color:#fff;font:15px/1 "Rajdhani","Arial Narrow",Arial,sans-serif;text-shadow:1px 2px #000}.manager-economy-line.good b,.manager-economy-net.good b{color:#26da48}.manager-economy-line.bad b,.manager-economy-net.bad b{color:#ff8f66}.manager-economy-net{grid-column:1/-1;display:grid;grid-template-columns:1fr auto;align-items:center;border:1px solid rgba(255,221,69,.36);background:rgba(0,0,0,.26);padding:8px 9px}.manager-economy-net span{color:#ffdd45;font:12px/1 Impact,"Arial Black",sans-serif;text-shadow:1px 2px #000}.manager-economy-net b{font:22px/1 "Rajdhani","Arial Narrow",Arial,sans-serif;text-shadow:1px 2px #000}.manager-economy-expand{margin-top:8px;border:1px solid rgba(255,255,255,.16);background:rgba(5,2,10,.58);padding:8px;text-shadow:none}.manager-economy-expand h3{margin:0 0 7px;color:#ffdd45;font:16px/1 Impact,"Arial Black",sans-serif;text-align:center;text-shadow:1px 2px #000}.arena-build-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.arena-build-grid span{display:block;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.07);padding:6px;text-align:center;font:10px/1.2 Arial,sans-serif;color:#d8cdf5}.arena-build-grid b{display:block;color:#fff;font:15px/1 "Rajdhani","Arial Narrow",Arial,sans-serif;text-shadow:1px 2px #000}.arena-build-action{margin-top:7px;width:100%}.manager-loan-box{margin-top:10px;padding-top:10px;border-top:1px solid rgba(255,221,69,.32)}.manager-loan-form{display:grid;grid-template-columns:1fr 1fr auto;gap:6px;margin-top:8px;align-items:end}.manager-loan-form label{display:grid;gap:3px;min-width:0}.manager-loan-form label span{font:10px/1 Arial,sans-serif;color:#ffdd45;text-shadow:1px 2px #000}.manager-loan-form button{min-width:104px}.manager-loan-preview{margin-top:7px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.06);padding:7px;text-align:center;font:12px/1.25 Arial,sans-serif;color:#d8cdf5;text-shadow:none}.manager-level-button.active{border-color:#ffdd45;background:rgba(88,38,145,.95)}
    .market-player-card,.squad-pick{cursor:pointer;transition:border-color .12s,background .12s,box-shadow .12s}.squad-pick:hover,.squad-pick:focus-visible{outline:0;border-color:#ffdd45;background:rgba(25,8,48,.9)}.formation-player.squad-pick{border:1px solid transparent;padding:2px}.squad-pick.selected{border-color:#26da48!important;box-shadow:0 0 0 2px rgba(38,218,72,.38),0 0 18px rgba(38,218,72,.24);background:rgba(8,112,31,.35)}.squad-pick.swapping{opacity:.72;pointer-events:none}.squad-swap-hint{font:11px/1.35 Arial,sans-serif;color:#ffdd45;text-align:center;text-shadow:none}.manager-squad-match-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(72px,1fr));gap:5px}.manager-squad-match-actions button{height:30px;padding:0 5px;font-size:12px;line-height:.9}.squad-filter-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.squad-filter-row button{height:29px;padding:0 3px;font-size:11px;line-height:.9}.squad-filter-row button.active{border-color:#ffdd45;background:rgba(88,38,145,.95);color:#ffdd45}.team-trophies{display:grid;gap:5px;border:1px solid rgba(255,221,69,.22);background:rgba(5,2,10,.48);padding:7px;text-align:left}.team-trophy-row{display:grid;grid-template-columns:42px 1fr;gap:7px;border-top:1px solid rgba(255,255,255,.1);padding-top:5px;font:11px/1.25 Arial,sans-serif;color:#d8cdf5;text-shadow:none}.team-trophy-row:first-of-type{border-top:0}.team-trophy-row b{color:#ffdd45;font-family:"Rajdhani","Arial Narrow",Arial,sans-serif;font-size:14px;text-shadow:1px 2px #000}.team-trophy-row span{color:#fff}.team-trophy-empty{font:11px/1.3 Arial,sans-serif;color:#cfc1ee;text-align:center;text-shadow:none}
    .team-trophy-row{grid-template-columns:30px 42px 1fr;align-items:center}.team-trophy-icon{position:relative;display:block;width:24px;height:28px;justify-self:center;filter:drop-shadow(1px 2px 0 rgba(0,0,0,.75))}.team-trophy-icon i{display:block}.team-trophy-icon.cup:before{content:"";position:absolute;left:5px;top:4px;width:14px;height:12px;border:2px solid #ffdd45;border-top-width:3px;border-radius:3px 3px 8px 8px;background:linear-gradient(135deg,#fff2a1,#ffdd45 46%,#b7791f)}.team-trophy-icon.cup:after{content:"";position:absolute;left:9px;bottom:4px;width:6px;height:9px;background:#ffdd45;box-shadow:0 8px 0 4px #b7791f;border-radius:1px}.team-trophy-icon.cup i:before,.team-trophy-icon.cup i:after{content:"";position:absolute;top:7px;width:6px;height:8px;border:2px solid #ffdd45;border-radius:50%;background:transparent}.team-trophy-icon.cup i:before{left:1px;border-right:0}.team-trophy-icon.cup i:after{right:1px;border-left:0}.team-trophy-icon.medal:before{content:"";position:absolute;left:6px;top:2px;width:12px;height:12px;background:linear-gradient(125deg,#7536d2 0 48%,#ff4b4b 48% 100%);clip-path:polygon(0 0,45% 0,50% 65%,55% 0,100% 0,70% 14px,30% 14px)}.team-trophy-icon.medal:after{content:"";position:absolute;left:4px;bottom:2px;width:16px;height:16px;border:2px solid #ffe992;border-radius:50%;background:radial-gradient(circle at 35% 30%,#fff3ae,#ffcc35 55%,#b7791f)}.team-trophy-icon.medal.silver:before{background:linear-gradient(125deg,#4d7bd8 0 48%,#d8cdf5 48% 100%)}.team-trophy-icon.medal.silver:after{border-color:#fff;background:radial-gradient(circle at 35% 30%,#fff,#d8dbe6 55%,#8b91a1)}
    .manager-round.playoff .manager-meta{color:#ffdd45;font-family:Impact,"Arial Black",sans-serif;font-size:15px;text-shadow:1px 2px #000}
    .invite-box.invite-alert{animation:invitePulse .85s steps(2,end) infinite}
    @keyframes invitePulse{0%,100%{border-color:#ffdd45;background:rgba(255,221,69,.18);box-shadow:0 0 0 1px rgba(255,221,69,.3),0 0 18px rgba(255,221,69,.28)}50%{border-color:#26da48;background:rgba(38,218,72,.14);box-shadow:0 0 0 1px rgba(38,218,72,.3),0 0 18px rgba(38,218,72,.24)}}
    .manager-fixtures{overflow:visible}
    
    #managerTeamPage .manager-team-squad{max-height:min(78dvh,820px)}#managerTeamPage .team-formation{min-height:clamp(520px,68dvh,720px);background:linear-gradient(180deg,rgba(36,136,70,.86),rgba(17,96,47,.86))}#managerTeamPage .formation-player{display:grid;justify-items:center;gap:2px;width:98px;padding:3px 4px;border:1px solid rgba(255,255,255,.18);background:rgba(2,10,5,.34);box-shadow:0 2px 0 rgba(0,0,0,.42);text-align:center}#managerTeamPage .formation-player.squad-pick{padding:3px 4px;border-color:rgba(255,255,255,.18)}#managerTeamPage .formation-player.squad-pick.selected{border-color:#26da48!important}#managerTeamPage .formation-head{margin:0 0 1px;padding-top:1mm;background:#fff!important;border-color:#050407!important;color:#050407!important;font-weight:900;line-height:1;text-shadow:none!important}#managerTeamPage .formation-player b{width:100%;font:11px/1.05 Arial,sans-serif;color:#fff;text-shadow:1px 1px #000}#managerTeamPage .formation-rating{display:block;width:100%;font:10px/1 "Rajdhani","Arial Narrow",Arial,sans-serif;color:#ffdd45;text-shadow:1px 1px #000}#managerTeamPage .formation-mini{display:block;width:100%;white-space:normal;font:8px/1.08 Arial,sans-serif;color:#e8dcff;text-shadow:1px 1px #000}
    #managerTeamPage{gap:5px}#managerTeamPage #managerTeamTitle{font-size:0;line-height:0}#managerTeamPage .team-profile-toggle{display:block;width:100%;height:auto;min-height:0;padding:0;border:0;background:transparent;box-shadow:none;text-align:left;color:inherit;text-shadow:none}#managerTeamPage .team-profile-toggle:hover,#managerTeamPage .team-profile-toggle:focus-visible{background:transparent;border:0}#managerTeamPage .team-profile-toggle .team-profile-hero{position:relative;padding-right:24px}#managerTeamPage .team-profile-toggle .team-profile-hero:after{content:"+";position:absolute;right:8px;top:50%;transform:translateY(-50%);font:18px/1 Impact,"Arial Black",sans-serif;color:#ffdd45;text-shadow:1px 2px #000}#managerTeamPage .team-profile-toggle.open .team-profile-hero:after{content:"-"}#managerTeamPage .team-profile-hero{gap:7px;padding:5px 7px}#managerTeamPage .team-profile-hero .team-flag{width:32px;height:21px}#managerTeamPage .team-profile-hero .team-flag:before{height:30px}#managerTeamPage .team-profile-name{font-size:16px;line-height:.9}#managerTeamPage .team-profile-sub{margin-top:2px;font-size:9px}#managerTeamPage #managerTeamMeta{display:grid;gap:5px;font-size:10px;line-height:1.1}#managerTeamPage .team-metrics{grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}#managerTeamPage .team-metric{padding:3px 2px}#managerTeamPage .team-metric b{font-size:13px;line-height:.95}#managerTeamPage .team-metric span{margin-top:1px;font-size:7.5px;line-height:.9}#managerTeamPage .manager-formation-inline{grid-template-columns:repeat(6,minmax(0,1fr));gap:4px}#managerTeamPage .manager-formation-inline button{height:25px;font-size:10px}
    
    

.manager-panel,.manager-season,.manager-create,.manager-table,.manager-team-squad,.manager-transfer-list,.manager-users,.manager-fixtures,.manager-info-list,.team-player-list{scrollbar-width:none}
    .manager-panel::-webkit-scrollbar,.manager-season::-webkit-scrollbar,.manager-create::-webkit-scrollbar,.manager-table::-webkit-scrollbar,.manager-team-squad::-webkit-scrollbar,.manager-transfer-list::-webkit-scrollbar,.manager-users::-webkit-scrollbar,.manager-fixtures::-webkit-scrollbar,.manager-info-list::-webkit-scrollbar,.team-player-list::-webkit-scrollbar{width:0;height:0}
    .manager-season,.manager-create,.manager-table,.manager-team-squad,.manager-transfer-list,.manager-users,.manager-fixtures,.manager-info-list,.team-player-list{overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
    .manager-squad-layout{display:grid;gap:9px;min-height:0}.manager-formation-pane,.manager-roster-pane{min-width:0;min-height:0}.manager-roster-pane{display:grid;gap:7px}
    .formation-skill-label{position:absolute;left:50%;bottom:7px;z-index:2;transform:translateX(-50%);padding:3px 10px;border:1px solid rgba(255,221,69,.75);background:rgba(5,2,10,.72);color:#ffdd45;font:900 14px/1 "Rajdhani","Arial Narrow",Arial,sans-serif;text-shadow:1px 2px #000;box-shadow:0 2px 0 rgba(0,0,0,.5)}
    #managerTeamPage.squad-placement-active:not(.hide){display:grid;grid-template-rows:minmax(0,1fr)!important;gap:0!important;overflow:hidden!important}
    #managerTeamPage.squad-placement-active #managerTeamTitle,#managerTeamPage.squad-placement-active #managerTeamMeta,#managerTeamPage.squad-placement-active .manager-roster-pane,#managerTeamPage.squad-placement-active .team-section-title{display:none!important}
    #managerTeamPage.squad-placement-active #managerTeamSquadList{height:100%;max-height:none!important;overflow:hidden!important;padding:0!important}
    #managerTeamPage.squad-placement-active .manager-squad-layout{display:grid!important;grid-template-columns:1fr!important;grid-template-rows:minmax(0,1fr)!important;height:100%!important;gap:0!important}
    #managerTeamPage.squad-placement-active .manager-formation-pane{display:grid!important;grid-template-rows:minmax(0,1fr)!important;height:100%;overflow:hidden!important}
    #managerTeamPage.squad-placement-active .team-formation{height:100%!important;min-height:0!important}
    .manager-row.playoff{background:rgba(102,194,255,.52);border-top-color:rgba(190,230,255,.48)}
    .manager-row.playoff-bye{background:rgba(42,122,190,.62);border-top-color:rgba(132,194,242,.5)}
    .manager-row.league-orange{background:rgba(190,91,18,.74);border-top-color:rgba(255,255,255,.24)}
    .manager-row.europe-cl{background:rgba(7,32,92,.86);border-top-color:rgba(96,151,255,.45)}
    .manager-row.europe-uel{background:rgba(93,35,150,.80);border-top-color:rgba(207,150,255,.46)}
    .manager-row.europe-cl.europe-uel{background:linear-gradient(90deg,rgba(7,32,92,.88) 0 50%,rgba(93,35,150,.84) 50% 100%);border-top-color:rgba(180,194,255,.5)}
    .manager-row.europe-uecl{background:rgba(0,103,82,.82);border-top-color:rgba(87,225,185,.48)}
    .manager-row.relegation{background:rgba(154,24,38,.76);border-top-color:rgba(255,142,142,.42)}
    #manager.manager-menu-open .manager-panel{z-index:70}
    #managerSeason .manager-table{max-height:none;overflow:visible!important;touch-action:pan-y}
    #managerDivisionList{min-height:0;max-height:clamp(220px,52dvh,620px);overflow:auto!important;touch-action:pan-y}
    .manager-menu-button{border-color:#7536d2}
    #managerActionMenu{position:fixed;left:0;right:0;bottom:0;z-index:60;width:auto;max-width:none;transform:none;order:50;justify-self:stretch;gap:0;padding:0 env(safe-area-inset-right,0px) env(safe-area-inset-bottom,0px) env(safe-area-inset-left,0px)}
    #managerActionMenu.open{top:1cm;display:grid;grid-template-rows:minmax(0,1fr) auto;background:rgba(9,0,18,.96);box-shadow:0 -18px 70px rgba(0,0,0,.72);padding-top:0}
    #managerActionMenu.hide{display:none!important}
    #managerBack{order:60;display:none!important}
    #managerMsg{order:70}
    .manager-menu-list{border-color:#7536d2;max-height:min(520px,calc(100dvh - 150px))}
    #managerActionList{border:0!important;box-shadow:0 18px 42px rgba(0,0,0,.72),inset 0 1px rgba(255,255,255,.08)}
    #managerActionMenu.open #managerActionButton{order:2;height:42px}
    #managerActionMenu.open #managerActionButton:after{transform:translateY(-35%) rotate(180deg)}
    #managerActionMenu.open #managerActionList{position:static;order:1;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(160px,100%),1fr));grid-auto-rows:minmax(54px,1fr);align-content:stretch;gap:8px;width:100%;height:100%;min-height:0;max-height:none;overflow:auto;padding:10px;border:0!important;background:transparent;box-shadow:none}
    #managerActionMenu.open #managerActionList button{height:100%;min-height:54px;padding:0 10px;text-align:center;font-size:13px}
    .manager-menu-list button{height:30px}
    .manager-last{border-color:rgba(132,136,146,.62);background:rgba(34,35,42,.92)}
    .manager-inline-label{color:#fff}
    .manager-last .manager-fixture{margin-top:4px;padding:5px 7px;background:rgba(8,9,12,.96);border-top-color:rgba(110,116,130,.18)}
    .manager-match-type{margin-top:2px;color:#d8cdf5;font:900 10px/1.2 Arial,sans-serif;text-transform:uppercase;letter-spacing:.02em}
    .manager-fixture{grid-template-columns:32px minmax(0,1fr) 36px minmax(0,1fr)}
    .manager-fixture-team{display:grid;min-width:0;gap:1px;text-align:center;justify-items:center}
    .manager-fixture-home{justify-items:center;text-align:center}
    .manager-fixture-away{justify-items:center;text-align:center}
    .manager-fixture-team .manager-team-name{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#fff;font-weight:900}
    .manager-fixture-status{display:inline-grid;place-items:center;min-width:22px;min-height:15px;justify-self:center;padding:1px 3px;color:#fff;font:900 10px/1 "Rajdhani","Arial Narrow",Arial,sans-serif;text-shadow:1px 1px #000}
    .manager-fixture-status.live{background:#b51616;box-shadow:0 0 0 1px rgba(255,255,255,.18),0 0 10px rgba(181,22,22,.45)}
    #managerFixturesPage .manager-team-name.fixture-team-self{padding:1px 5px;background:rgba(255,0,0,.82);color:#fff;animation:fixtureSelfBlink .72s steps(2,end) infinite}
    #managerFixturesPage .manager-team-name.fixture-team-human{padding:1px 5px;background:rgba(255,0,0,.28);color:#fff}
    @keyframes fixtureSelfBlink{0%,100%{background:rgba(255,0,0,.88);box-shadow:0 0 0 1px rgba(255,255,255,.2),0 0 12px rgba(255,0,0,.55)}50%{background:rgba(255,0,0,.18);box-shadow:none}}
    .manager-team-skill{display:block;color:#fff;font:900 11px/1 "Rajdhani","Arial Narrow",Arial,sans-serif;text-shadow:1px 2px #000}
    .manager-fixture-score{min-width:36px;text-align:center;white-space:nowrap}
    .fixture-odds-line{grid-template-columns:32px minmax(0,1fr) 36px minmax(0,1fr);justify-content:normal;gap:7px;align-items:center}
    .manager-last .fixture-odds-line{box-sizing:border-box;padding:0 7px}
    .fixture-odds-line span{text-align:center;white-space:nowrap}
    .fixture-odds-line span:nth-child(3){min-width:20px}
    #managerViewTeamsPage:not(.hide){display:grid;grid-template-rows:auto auto minmax(0,1fr);gap:7px;height:100%;min-height:0;overflow:hidden!important}
    #managerViewTeamsPageList{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(160px,100%),1fr))!important;grid-auto-rows:minmax(64px,1fr);align-content:stretch!important;width:100%;height:100%;min-height:0;max-height:none;overflow:auto!important;gap:8px!important;padding:0}
    #managerViewTeamsPageList button{display:block;width:100%;height:100%;min-height:64px;min-width:0;padding:0 10px;text-align:center;font-size:13px;line-height:1;white-space:normal}
    
    
	    
    
    
    .squad-section{display:grid;gap:5px}
    .squad-section-toggle{position:relative;display:flex;align-items:center;width:100%;height:31px;padding:0 36px 0 10px;border-color:#7536d2;background:linear-gradient(180deg,rgba(42,14,78,.94),rgba(12,5,24,.98));text-align:left;font-size:12px;letter-spacing:.04em}
    .squad-section-toggle:after{content:"+";position:absolute;right:12px;top:50%;transform:translateY(-50%);color:#ffdd45;font:18px/1 Impact,"Arial Black",sans-serif;text-shadow:1px 2px #000}
    .squad-section-toggle.open:after{content:"-"}
    .squad-section-toggle span{display:flex;align-items:center;height:100%;padding-top:2px;color:#fff}
    .squad-section-toggle small{display:flex;align-items:center;height:100%;margin-left:auto;margin-right:8px;padding-top:2px;color:#ffdd45;font:11px/1 Arial,sans-serif;text-shadow:none}
    .daily-form-dot{display:inline-block;width:11px;height:11px;min-width:11px;min-height:11px;max-width:11px;max-height:11px;aspect-ratio:1/1;flex:0 0 11px;border-radius:50%;margin-right:5px;vertical-align:middle;box-shadow:0 0 0 2px #000,0 0 10px rgba(255,255,255,.22)}
    .daily-form-dot.up{background:#26da48;box-shadow:0 0 0 2px #000,0 0 12px rgba(38,218,72,.9)}
    .daily-form-dot.down{background:#ff4242;box-shadow:0 0 0 2px #000,0 0 12px rgba(255,66,66,.9)}
    #managerTeamPage .formation-form-dot{position:absolute;right:5px;top:5px;margin:0;z-index:3}
    .player-card-badges{display:inline-flex;align-items:center;gap:2px;vertical-align:middle}
    .player-card-badge{display:inline-grid;place-items:center;width:9px;height:13px;border-radius:1px;color:#050407;font:900 8px/1 Arial,sans-serif;box-shadow:0 0 0 1px #000,0 1px 4px rgba(0,0,0,.5)}
    .player-card-badge.yellow{background:#ffdd45}
    .player-card-badge.red{background:#ff4242;color:#fff}
    #managerTeamPage .formation-card-badges{position:absolute;left:5px;top:24px;z-index:4}
    .daily-form-text.up{color:#26da48;font-weight:700}.daily-form-text.down{color:#ff6262;font-weight:700}
    .injury-badge{display:inline-grid;place-items:center;width:13px;height:13px;margin-right:5px;border-radius:2px;background:#ff4242;color:#050407;font:900 10px/1 Arial,sans-serif;vertical-align:middle;box-shadow:0 0 0 1px #000,0 0 10px rgba(255,66,66,.72)}
    .training-badge{display:inline-grid;place-items:center;width:13px;height:13px;margin-right:5px;border-radius:2px;background:#45d8ff;color:#050407;font:900 9px/1 Arial,sans-serif;vertical-align:middle;box-shadow:0 0 0 1px #000,0 0 10px rgba(69,216,255,.72)}
    #managerTeamPage .formation-injury-badge{position:absolute;left:5px;top:5px;margin:0;z-index:3}
    #managerTeamPage .formation-training-badge{position:absolute;left:5px;top:5px;margin:0;z-index:3}
    .team-player-card.injured{border-color:rgba(255,66,66,.9);background:rgba(70,7,19,.72)}
    .team-player-card.training{border-color:rgba(69,216,255,.9);background:rgba(7,43,70,.72)}
    #managerTeamPage .formation-player.injured{background:rgba(70,7,19,.68)!important;border-color:rgba(255,66,66,.9)!important}
    #managerTeamPage .formation-player.training{background:rgba(7,43,70,.68)!important;border-color:rgba(69,216,255,.9)!important}
    .injury-text{color:#ff6262;font-weight:800}
    .training-text{color:#7de6ff;font-weight:800}
    .manager-injury-alert{border-color:rgba(255,66,66,.85);background:rgba(70,7,19,.72)}
    .manager-finance-warning{border-color:rgba(255,143,102,.9);background:rgba(82,31,8,.76)}
    .manager-finance-warning b{color:#ff8f66}
    .manager-finance-line{display:grid;justify-items:center;gap:1px;color:#fff!important;font:900 14px/1.15 "Rajdhani","Arial Narrow",Arial,sans-serif!important;letter-spacing:.03em;text-shadow:1px 2px #000!important}
    .manager-finance-line b{color:#26da48;font-weight:900;text-shadow:0 0 8px rgba(38,218,72,.35),1px 2px #000}
    .manager-finance-line .manager-finance-start{display:block;color:#fff;font:400 11px/1.05 Arial,sans-serif;letter-spacing:.01em;text-shadow:1px 2px #000}
    .manager-squad-injuries{display:grid;gap:6px;margin-top:4px;padding:8px;border:1px solid rgba(255,66,66,.72);background:rgba(70,7,19,.58);text-shadow:none}
    .manager-squad-injury-row{display:grid;grid-template-columns:18px minmax(0,1fr);gap:2px 7px;align-items:center;padding:5px 6px;border-top:1px solid rgba(255,255,255,.12)}
    .manager-squad-injury-row:first-of-type{border-top:0}
    .manager-squad-injury-row .injury-badge,.manager-squad-injury-row .training-badge{margin:0}
    .manager-squad-injury-row b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#fff;font:900 13px/1 Arial,sans-serif;text-shadow:1px 2px #000}
    .manager-squad-injury-row small{grid-column:2;color:#ffb5b5;font:11px/1.2 Arial,sans-serif}
    .manager-form-summary{display:grid;grid-template-columns:1fr 1fr;gap:5px;border:1px solid rgba(255,255,255,.14);background:rgba(5,2,10,.58);padding:5px;text-align:center;text-shadow:none}
    .manager-form-summary span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:11px/1.15 Arial,sans-serif;color:#fff}
    #managerTeamPage .formation-player{box-sizing:border-box;height:76px;align-content:start}
    #managerTeamPage .formation-player.position-penalty{background:rgba(150,12,26,.66)!important;border-color:rgba(255,84,84,.9)!important;box-shadow:0 2px 0 rgba(0,0,0,.42),0 0 0 1px rgba(255,66,66,.22)}
    #managerTeamPage .formation-player.position-penalty.selected{border-color:#26da48!important;box-shadow:0 0 0 2px rgba(38,218,72,.38),0 0 18px rgba(255,66,66,.28)}
    #managerTeamPage .formation-penalty{display:block;width:100%;margin-top:1px;font:10px/1 Impact,"Arial Black",sans-serif;color:#ff6262;text-shadow:1px 1px #000}
    #managerTeamPage .formation-penalty.empty{visibility:hidden}
    
    
    
    

.manager-sim-wrap{display:grid;gap:10px;align-content:stretch}
    .manager-sim-card{display:grid;gap:8px;border:1px solid rgba(255,255,255,.16);background:rgba(5,2,10,.7);padding:9px;text-shadow:none}
    .manager-sim-teams{display:grid;grid-template-columns:1fr auto 1fr;gap:8px;align-items:center;font:16px/1 "Rajdhani","Arial Narrow",Arial,sans-serif;text-shadow:1px 2px #000}
    .manager-sim-teams .away{text-align:right}.manager-sim-score{color:#ffdd45;font-size:20px}
    .sim-pressure-labels{display:grid;grid-template-columns:1fr 1fr;font:10px/1 Arial,sans-serif;color:#cfc1ee;text-transform:uppercase}
    .sim-pressure-labels span:last-child{text-align:right}
    .sim-pressure-callout{font:16px/1 "Rajdhani","Arial Narrow",Arial,sans-serif;color:#ffdd45;text-align:center;text-shadow:1px 2px #000}
    .sim-pressure-track{position:relative;height:24px;border:2px solid #7536d2;background:#120421;overflow:hidden;box-shadow:inset 0 1px rgba(255,255,255,.18)}
    .sim-pressure-fill{position:absolute;top:0;bottom:0;left:var(--pressure-left,50%);width:var(--pressure-width,0%);background:linear-gradient(90deg,var(--pressure-from,#26da48),var(--pressure-to,#f28a18));transition:left .42s ease,width .42s ease}
    .sim-pressure-track:after{content:"";position:absolute;left:50%;top:0;bottom:0;width:2px;background:rgba(255,255,255,.7);box-shadow:0 0 8px rgba(255,255,255,.45)}
    .sim-pressure-note{font:11px/1.25 Arial,sans-serif;color:#d8cdf5;text-align:center}
    .sim-log{display:grid;gap:4px;font:12px/1.25 Arial,sans-serif;color:#e8dcff}
    .sim-log-row{border-top:1px solid rgba(255,255,255,.12);padding-top:4px}
    #managerSimPage:not(.hide){display:grid;grid-template-rows:minmax(0,1fr) auto;gap:10px;min-height:0;overflow:hidden}
    #managerSimPage.touchlines-live:not(.hide){grid-template-rows:minmax(0,1fr);gap:0}
    #managerSimBack{width:100%}
    .manager-sim-wrap{height:100%;min-height:0;overflow:hidden;padding-right:2px;align-content:stretch}
    .sim-summary-page{display:grid;grid-template-rows:auto auto auto minmax(0,1fr);gap:12px;width:min(760px,100%);height:100%;min-height:0;margin:0 auto;color:#f5f5f5;text-shadow:none}
    .sim-scoreboard{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:18px;min-height:134px;padding:18px 22px;border:1px solid rgba(255,255,255,.04);border-radius:7px;background:#161616;box-shadow:inset 0 1px rgba(255,255,255,.03)}
    .sim-board-team{display:grid;justify-items:center;gap:9px;min-width:0;text-align:center;font:900 15px/1.12 "Rajdhani","Arial Narrow",Arial,sans-serif;color:#fff}
    .sim-board-team.away{justify-items:center}
    .sim-board-team .team-flag{width:58px;height:40px;border-width:2px;box-shadow:none}
    .sim-board-team .team-flag:before{left:-8px;top:-5px;height:52px}
    .sim-board-team span{max-width:100%;overflow:hidden;text-overflow:ellipsis}
    .sim-board-score{display:grid;justify-items:center;gap:5px;min-width:92px;text-align:center}
    .sim-board-score b{font:900 30px/1 "Rajdhani","Arial Narrow",Arial,sans-serif;color:#fff;text-shadow:none}
    .sim-board-score span{font:600 12px/1 Arial,sans-serif;color:#9b9b9b}
    .sim-board-score small{max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#d5d5d5;font:800 11px/1 Arial,sans-serif;text-transform:uppercase}
    .sim-tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));border-bottom:1px solid #272727;color:#a8a8a8;font:700 13px/1 Arial,sans-serif}
    .sim-tabs span{position:relative;padding:10px 2px 12px;text-align:center}
    .sim-tabs .active{color:#fff}
    .sim-tabs .active:after{content:"";position:absolute;left:14%;right:14%;bottom:-1px;height:2px;background:#fff}
    .sim-pill-row{display:flex;gap:10px;align-items:center;padding:10px 4px 4px}
    .sim-pill-row button{width:auto;min-width:76px;height:35px;padding:0 14px;border:1px solid #7b7b7b;border-radius:999px;background:transparent;color:#9c9c9c;font:800 13px/1 Arial,sans-serif;text-shadow:none;box-shadow:none}
    .sim-pill-row button.active{border-color:#fff;background:#fff;color:#111}
    .sim-pill-row button:disabled{opacity:1;cursor:default}
    .sim-summary-table{min-height:0;overflow:auto;border:1px solid #272727;border-radius:5px;background:#121212}
    .sim-summary-row{display:grid;grid-template-columns:54px minmax(0,1fr) 66px minmax(0,1fr);align-items:center;min-height:48px;padding:0 18px;border-bottom:1px solid #242424;color:#f7f7f7;font:800 12px/1.15 Arial,sans-serif}
    .sim-summary-row:last-child{border-bottom:0}
    .sim-summary-minute{color:#9a9a9a;font:600 11px/1 Arial,sans-serif}
    .sim-summary-row>b{justify-self:center;color:#fff;font:900 12px/1 Arial,sans-serif}
    .sim-summary-side{display:flex;align-items:center;gap:7px;min-width:0}
    .sim-summary-side b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#fff;font:900 12px/1 Arial,sans-serif}
    .sim-home-event{justify-content:flex-end;text-align:right}
    .sim-away-event{justify-content:flex-start;text-align:left}
    .sim-summary-row.marker{background:#171717}
    .sim-summary-row.marker>b{font-size:12px}
    .sim-goal-stack{display:inline-flex;flex-direction:column;align-items:flex-start;min-width:0;max-width:100%;gap:2px}
    .sim-home-event .sim-goal-stack{align-items:flex-end}
    .sim-goal-main{display:inline-flex;align-items:center;gap:5px;min-width:0;max-width:100%}
    .sim-assist-line{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#ffdd45;font:800 10px/1.05 Arial,sans-serif;text-shadow:1px 1px 0 #000}
    .sim-ball-icon{display:inline-block;width:14px;height:14px;flex:0 0 auto;background:url("../icons/manager.png?v=20260630c") center/contain no-repeat;filter:drop-shadow(0 1px 0 #000)}
    .sim-card-icon{display:inline-block;width:10px;height:15px;flex:0 0 auto;border-radius:2px;background:#f1ff00}
    .sim-card-icon.red{background:#ff174c}
    .sim-event-tag{display:inline-block;margin-right:5px;padding:1px 3px;border-radius:2px;background:#fff;color:#111;font:900 8px/1 Arial,sans-serif}
    .sim-momentum-card{display:grid;gap:8px;padding:11px 14px;border-radius:10px;background:#252525;color:#cfcfcf}
    .sim-momentum-card>div:first-child{display:grid;gap:2px}
    .sim-momentum-card b{color:#fff;font:900 13px/1 Arial,sans-serif}
    .sim-momentum-card span{color:#a9a9a9;font:11px/1.2 Arial,sans-serif}
    .sim-momentum-card .sim-pressure-track{height:11px;border:0;border-radius:999px;background:#686868}
    .sim-momentum-card .sim-pressure-track:after{display:none}
    .sim-momentum-card .sim-pressure-fill{border-radius:999px}

/* ===== PC / DESKTOP CSS ===== */
@media(min-aspect-ratio:4/5){#match .controls{left:50%;right:auto;top:auto;bottom:calc(env(safe-area-inset-bottom,0px) + 12px);grid-template-columns:repeat(8,minmax(68px,1fr));gap:6px;width:min(760px,88vw);transform:translateX(-50%)}#match .controls button{height:28px;font-size:10px}}

@media (min-width:900px) and (min-aspect-ratio:4/5){
      #manager .manager-panel{left:clamp(12px,1.8vw,30px);right:clamp(12px,1.8vw,30px);top:calc(1cm + 12px);bottom:12px;width:auto;max-height:none;transform:none;display:grid;grid-template-rows:minmax(0,1fr) auto auto auto;overflow:hidden;padding:clamp(10px,1.1vw,16px)}
      #manager .manager-panel>.manager-home:not(.hide),#manager .manager-panel>.manager-create:not(.hide){height:100%;min-height:0;overflow:auto}
      #managerFixturesPage:not(.hide),#managerScorersPage:not(.hide),#managerAssistsPage:not(.hide),#managerReportsPage:not(.hide),#managerCupsPage:not(.hide){height:100%;overflow:hidden!important}
      #managerFixturesList,#managerScorersList,#managerAssistsList,#managerReportsList,#managerCupsList{max-height:none;height:100%;overflow:auto!important}
      #managerHome:not(.hide){display:grid;grid-template-rows:minmax(0,1fr) auto;gap:8px}
      #managerSeason{min-height:0;overflow:auto}
      #managerSeason .manager-table{max-height:none;overflow:visible!important}
      #managerDivisionList{max-height:100%;overflow:auto!important}
      #managerSeason .manager-table .manager-row{padding:2px 0;font-size:10.5px}
      #managerSeason .manager-meta,#managerSeason .manager-odds{font-size:10px;line-height:1.1}
      #managerSeason .manager-button-row button{height:30px}
      #managerTeamPage:not(.hide){display:grid;grid-template-rows:auto auto auto minmax(0,1fr) auto;gap:6px;overflow:hidden}
      #managerTeamPage #managerTeamSquadList{height:100%;max-height:none;overflow:hidden;padding-right:0}
      #managerTeamPage .manager-squad-layout{height:100%;grid-template-columns:minmax(500px,1.15fr) minmax(390px,.85fr);grid-template-rows:minmax(0,1fr)}
      #managerTeamPage .manager-formation-pane{display:grid;grid-template-rows:auto minmax(0,1fr)}
      #managerTeamPage .manager-roster-pane{grid-template-rows:auto auto minmax(0,1fr) auto minmax(0,1fr);overflow:hidden}
      #managerTeamPage .team-formation{height:100%;min-height:0}
      #managerTeamPage .team-player-list{min-height:0;overflow:auto;padding-right:0}
      #managerTeamPage .team-player-card{padding:6px;gap:6px}
      #managerTeamPage .team-stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:3px}
      #managerTeamPage .team-stat{padding:2px 4px;font-size:9px}
      #managerTeamPage .formation-player{width:86px}
      #managerActionMenu{align-self:end}
      #managerBack{align-self:end}
      #managerMsg{align-self:end}
    }

@media (min-width:1280px) and (min-aspect-ratio:4/5){
      #managerTeamPage .manager-squad-layout{grid-template-columns:minmax(620px,1.25fr) minmax(520px,.75fr)}
      #managerTeamPage .team-stats{grid-template-columns:repeat(6,minmax(0,1fr))}
      #managerTeamPage .formation-player{width:96px}
    }

@media (min-width:900px) and (min-aspect-ratio:4/5){
      #managerTeamPage #managerTeamSquadList{overflow:auto}
      #managerTeamPage .manager-squad-layout{align-items:stretch;gap:10px}
      #managerTeamPage .manager-formation-pane{grid-template-rows:auto minmax(420px,1fr);min-height:0}
      #managerTeamPage .team-formation{height:auto;min-height:clamp(420px,calc(100dvh - 360px),640px)}
      #managerTeamPage .manager-roster-pane{align-content:start;grid-template-rows:auto auto auto;grid-auto-rows:max-content;overflow:auto}
      #managerTeamPage .squad-section{min-height:0}
      #managerTeamPage .squad-section .team-player-list{max-height:min(520px,calc(100dvh - 430px));overflow:auto}
    }

@media (min-width:900px) and (min-aspect-ratio:4/5){
      #managerTeamPage:not(.hide){grid-template-rows:auto auto auto minmax(0,1fr);overflow:hidden}
      #managerTeamPage #managerTeamSquadList{height:100%;max-height:none!important;overflow:auto!important}
      #managerTeamPage .manager-squad-layout{height:auto;min-height:0}
      #managerTeamPage .team-formation{height:min(620px,calc(100dvh - 320px))!important;min-height:360px!important}
    }


/* ===== MOBILE CSS ===== */
@media(max-aspect-ratio:4/5){.top{font-size:11px}.hud{top:1.8%;width:94vw;gap:5px;padding:0 6px;font-size:9px}.kit{width:10px;height:11px}.kit:before,.kit:after{width:4px;height:6px}.kit:before{left:-5px}.kit:after{right:-5px}.controls{left:50%;right:auto;top:auto;bottom:calc(env(safe-area-inset-bottom,0px) + 30px);grid-template-columns:repeat(4,1fr);gap:4px;width:94vw;transform:translateX(-50%)}.controls button{height:22px;font-size:9px}.menu-exit{bottom:calc(env(safe-area-inset-bottom,0px) + 3px);height:23px;font-size:9px;width:24vw}.events{display:none}.lineup{width:94vw;max-height:64dvh;padding:8px}.lineup-title{font-size:14px;margin-bottom:5px}.lineup-teams{gap:6px}.lineup-team h3{font-size:10px;margin-bottom:4px}.line-grid{min-height:260px}.line-player{width:44px;font-size:7px}.line-head{width:16px;height:16px;border-width:1px;box-shadow:0 0 0 1px var(--shirt),0 0 0 2px var(--trim)}button{height:30px;font-size:14px}}

@media(max-aspect-ratio:4/5){.hud{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) auto}.scoreline{font-size:10px}.score-scorers{font-size:8px;min-height:9px;gap:2px 8px}.score-goal small{font-size:7px}}

@media(max-aspect-ratio:4/5){.lineup-skip{right:6px;top:6px;width:54px;height:20px;font-size:8px}.line-flag{top:5px;width:24px;height:16px;border-width:1px}.line-flag:before{left:-5px;height:25px}.line-team-name{bottom:4px;font-size:8px}.team-flag{width:16px;height:11px}.team-flag:before{left:-3px;height:17px}.team-dropdown{height:38px;font-size:13px}.team-dropdown-list{max-height:46dvh}.team-option{height:31px;font-size:11px}.team-option b{font-size:12px}.goal-banner{min-width:78vw;padding:14px 14px}.goal-banner .goal-name{font-size:24px}.goal-list{font-size:12px}.goal-row{grid-template-columns:34px 1fr}.training-panel{width:94vw;max-height:74dvh;padding:10px}.training-grid{grid-template-columns:1fr}.training-list{max-height:220px}.training-player{font-size:11px}.manager-panel{width:94vw;max-height:76dvh}.manager-row{grid-template-columns:24px 1fr 24px 24px 24px;font-size:11px}.manager-fixture{grid-template-columns:28px minmax(0,1fr) 36px minmax(0,1fr);font-size:11px}}

@media(max-aspect-ratio:4/5){#manager .manager-panel{top:56%;width:94vw;max-height:calc(100dvh - 76px)}.top-team-flag{left:10px}.top-team-flag .team-flag{width:24px;height:16px}.manager-table{overflow:hidden}.manager-table .manager-row{grid-template-columns:17px minmax(0,1fr) 20px repeat(4,18px) 24px 24px 26px 14px;gap:1px;font-size:8.5px}.manager-table .manager-row>span{min-width:0;overflow:hidden;text-overflow:ellipsis}.manager-table .manager-team-link{gap:2px;max-width:100%;min-width:0}.manager-table .manager-team-link .team-flag{display:none}.manager-table .manager-team-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.manager-form-arrow.up{border-left-width:4px;border-right-width:4px;border-bottom-width:8px}.manager-form-arrow.down{border-left-width:4px;border-right-width:4px;border-top-width:8px}.manager-division-table .manager-row{grid-template-columns:17px minmax(0,1fr) 20px repeat(4,18px) 24px 24px 26px 14px;gap:1px}.manager-playoff,.manager-last,.invite-box{font-size:11px}.manager-button-row{grid-template-columns:repeat(auto-fit,minmax(86px,1fr));gap:5px}.manager-transfer-actions{grid-template-columns:1fr;gap:2px}.manager-button-row button{height:31px;padding:0 3px;font-size:10px;line-height:.9}.manager-economy-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.manager-economy-card{padding:6px 4px}.manager-economy-card b{font-size:15px}.manager-economy-section{grid-template-columns:1fr;padding:7px}.manager-economy-section h3,.manager-economy-meta,.manager-economy-net{grid-column:1}.manager-economy-net b{font-size:19px}.arena-build-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}.arena-build-grid b{font-size:13px}.transfer-economy{grid-template-columns:repeat(2,minmax(0,1fr));padding:5px}.transfer-economy span{font-size:9px}.human-dot{width:10px;height:10px;font-size:7px}.manager-team-squad{max-height:56dvh}.team-profile-hero{grid-template-columns:auto 1fr;padding:8px}.team-profile-hero .team-flag{width:34px;height:22px}.team-profile-name{font-size:17px}.team-profile-sub{font-size:10px}.team-metrics{grid-template-columns:repeat(2,1fr);gap:5px}.team-metric{padding:5px}.team-metric b{font-size:16px}.team-formation{min-height:230px}.formation-player{width:60px}.formation-head{width:32px;height:22px;font-size:8px}.formation-player b{font-size:8px}.formation-player span{font-size:8px}.team-player-card{grid-template-columns:44px 1fr 38px;gap:6px;padding:6px}.team-role{min-height:30px;font-size:11px}.team-player-main b{font-size:14px}.team-player-main small{font-size:10px}.team-rating{min-width:38px;font-size:19px}.team-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:3px}.team-stat{padding:3px 4px;font-size:9px}}

@media(max-aspect-ratio:4/5){#managerTeamPage .manager-team-squad{max-height:70dvh}#managerTeamPage .team-profile-hero{gap:5px;padding:4px 6px}#managerTeamPage .team-profile-hero .team-flag{width:24px;height:16px}#managerTeamPage .team-profile-hero .team-flag:before{height:23px}#managerTeamPage .team-profile-name{font-size:13px}#managerTeamPage .team-profile-sub{font-size:8px}#managerTeamPage .team-metrics{grid-template-columns:repeat(7,minmax(0,1fr));gap:2px}#managerTeamPage .team-metric{padding:2px 1px}#managerTeamPage .team-metric b{font-size:11px}#managerTeamPage .team-metric span{font-size:6.4px}#managerTeamPage .team-formation{min-height:clamp(520px,78dvh,660px)}#managerTeamPage .formation-player{width:70px;padding:2px 3px}#managerTeamPage .formation-player.squad-pick{padding:2px 3px}#managerTeamPage .formation-head{width:20px;height:20px;font-size:8px}#managerTeamPage .formation-player b{font-size:8px}#managerTeamPage .formation-rating{font-size:8px}#managerTeamPage .formation-mini{font-size:6.8px;line-height:1.05}}

@media(max-aspect-ratio:4/5){.transfer-offer-grid{grid-template-columns:1fr}.transfer-offer-box{gap:8px;padding:12px}.transfer-offer-player b{font-size:15px}.transfer-bid-value{font-size:15px}}

@media(max-aspect-ratio:4/5){
      .manager-fixture{grid-template-columns:22px minmax(0,1fr) 36px minmax(0,1fr);gap:3px}
      .manager-fixture-team .manager-team-name{white-space:normal;line-height:1.05}
      .manager-team-skill{margin-top:1px;font-size:11px}
      .fixture-odds-line{grid-template-columns:22px minmax(0,1fr) 36px minmax(0,1fr);gap:3px}
      .fixture-odds-line span:nth-child(3){min-width:36px}
      #managerViewTeamsPageList button{height:100%;min-height:64px;font-size:13px}
    }

@media (max-aspect-ratio:4/5){
	      #manager .manager-panel{left:3vw;right:3vw;top:calc(1cm + 8px);bottom:8px;width:auto;max-height:none;transform:none;display:grid;grid-template-rows:minmax(0,1fr) auto auto;overflow:hidden;padding:8px}
	      #manager .manager-panel>.manager-home:not(.hide),#manager .manager-panel>.manager-create:not(.hide){height:100%;min-height:0;overflow:hidden}
	      #managerHome:not(.hide){display:grid;grid-template-rows:minmax(0,1fr) auto;gap:8px}
	      #managerSeason{min-height:0;overflow:auto}
	      #managerSeason .manager-table{max-height:none;overflow:visible!important}
	      #managerDivisionList{max-height:58dvh;overflow:auto!important}
	      .manager-menu-list{max-height:min(520px,calc(100dvh - 170px));gap:4px;padding:6px}
	      .manager-menu-list button{height:29px;font-size:11px}
	      .season-report{gap:7px;padding:6px}
	      .season-report-row{grid-template-columns:1fr;gap:3px;padding:5px}
	      .season-report-teams{grid-template-columns:1fr;gap:3px}
	      .season-movement-teams{grid-template-columns:1fr}
	      .season-report-gap{display:none}
	      .season-match{grid-template-columns:54px minmax(0,1fr) 32px;gap:3px;padding:5px}
	      .season-match .season-round{grid-row:1/3}
	      .season-match .season-home{grid-column:2;grid-row:1}
	      .season-match .season-away{grid-column:2;grid-row:2}
	      .season-match .season-score{grid-column:3;grid-row:1/3;align-self:center}
	      .season-team .team-flag{width:15px;height:10px}
	      .season-team>span{font-size:10px}
	      .season-decision{grid-column:1/-1}
	    }

@media (max-aspect-ratio:4/5){
      #managerTeamPage:not(.hide){overflow:hidden}
      #managerFixturesPage:not(.hide),#managerScorersPage:not(.hide),#managerAssistsPage:not(.hide),#managerReportsPage:not(.hide),#managerCupsPage:not(.hide){height:calc(100dvh - 150px);overflow:hidden!important}
      #managerFixturesList,#managerScorersList,#managerAssistsList,#managerReportsList,#managerCupsList{max-height:none;height:100%;overflow:auto!important}
      #managerTeamPage #managerTeamSquadList{max-height:calc(100dvh - 190px);overflow:auto;padding-right:0}
      #managerTeamPage .manager-squad-layout{display:grid;grid-template-columns:1fr;grid-template-rows:auto auto;align-items:start;gap:8px;height:auto}
      #managerTeamPage .manager-formation-pane,#managerTeamPage .manager-roster-pane{position:relative;min-height:0;overflow:visible}
      #managerTeamPage .team-formation{height:auto;min-height:clamp(380px,58dvh,520px)}
      #managerTeamPage .manager-roster-pane{display:grid;gap:6px;background:#090012}
    }

@media (max-aspect-ratio:4/5){
      #managerTeamPage #managerTeamSquadList{max-height:calc(100dvh - 178px);overflow:auto!important;padding-right:0;padding-bottom:8px}
      #managerTeamPage .manager-squad-layout{display:flex;flex-direction:column;gap:8px;height:auto;align-items:stretch}
      #managerTeamPage .manager-formation-pane{display:block;position:relative;z-index:1;overflow:visible}
      #managerTeamPage .manager-roster-pane{position:relative;z-index:2;display:grid;gap:6px;background:#090012;padding-top:6px;overflow:visible}
      #managerTeamPage .team-formation{height:auto;min-height:clamp(400px,56dvh,520px);overflow:hidden}
      #managerTeamPage .formation-player{width:58px;height:58px;padding:2px;gap:1px}
      #managerTeamPage .formation-player.squad-pick{padding:2px}
      #managerTeamPage .formation-head{width:29px;height:20px;font-size:7px}
      #managerTeamPage .formation-player b{font-size:7.5px;line-height:1}
      #managerTeamPage .formation-rating{font-size:7.5px}
      #managerTeamPage .formation-mini{display:none}
      #managerTeamPage .formation-penalty{font-size:8px}
      #managerActionMenu{position:fixed;left:0;right:0;bottom:0;z-index:60;width:auto!important;transform:none;gap:0;padding:0 env(safe-area-inset-right,0px) env(safe-area-inset-bottom,0px) env(safe-area-inset-left,0px)}
      #managerActionMenu.hide{display:none!important}
      #managerActionButton{height:42px;padding:0 32px 0 8px;font-size:16px;border-width:2px}
      #managerActionButton:after{right:14px;transform:translateY(-65%);border-left:6px solid transparent;border-right:6px solid transparent;border-top:0;border-bottom:8px solid #ffdd45}
      #managerActionList{bottom:calc(100% + 2px);gap:3px;max-height:calc(100dvh - 92px);padding:5px;border-width:2px}
      #managerActionList button{height:28px;font-size:10px}
      #managerMsg{position:fixed;left:3vw;right:3vw;bottom:calc(env(safe-area-inset-bottom,0px) + 45px);z-index:29;display:none;min-height:0;padding:5px 7px;border:1px solid rgba(255,255,255,.2);background:rgba(0,0,0,.92);color:#ffb98b;font-size:11px;line-height:1.15;text-align:center;text-shadow:1px 1px #000;pointer-events:none}
      #managerMsg.show,#managerMsg.thinking{display:block}
      #manager .manager-panel{bottom:calc(env(safe-area-inset-bottom,0px) + 54px)!important;grid-template-rows:minmax(0,1fr)!important;gap:0!important;padding:6px 8px 0!important}
      #managerHome:not(.hide){height:100%;grid-template-rows:minmax(0,1fr)!important;gap:0!important}
      #managerSeason{height:100%;overflow:auto!important}
    }

@media (max-aspect-ratio:4/5){
      #managerTeamPage:not(.hide){display:grid;grid-template-rows:auto auto auto minmax(0,1fr);gap:4px;overflow:hidden!important}
      #managerTeamPage #managerTeamSquadList{height:100%;max-height:none!important;overflow:auto!important;padding-bottom:calc(40px + env(safe-area-inset-bottom,0px))}
      #managerTeamPage .manager-squad-layout{display:flex!important;flex-direction:column;gap:6px!important;height:auto!important}
      #managerTeamPage .manager-formation-pane{display:block!important;overflow:visible!important}
      #managerTeamPage .team-formation{height:clamp(300px,45dvh,430px)!important;min-height:0!important;max-height:calc(100dvh - 260px)}
      #managerTeamPage .formation-player{width:54px;height:54px}
    }

@media(max-aspect-ratio:4/5){.manager-sim-teams{font-size:12px}.manager-sim-score{font-size:16px}.manager-sim-card{padding:7px}}

@media(max-aspect-ratio:4/5){
      .sim-summary-page{gap:9px;width:100%}
      .sim-scoreboard{min-height:118px;gap:9px;padding:14px 10px;border-radius:6px}
      .sim-board-team{gap:7px;font-size:12px;line-height:1.05}
      .sim-board-team .team-flag{width:42px;height:29px}
      .sim-board-team .team-flag:before{left:-6px;top:-4px;height:38px}
      .sim-board-score{min-width:66px}
      .sim-board-score b{font-size:24px}
      .sim-board-score span{font-size:10px}
      .sim-board-score small{max-width:92px;font-size:8px}
      .sim-tabs{font-size:11px}
      .sim-tabs span{padding:9px 1px 10px}
      .sim-tabs .active:after{left:8%;right:8%}
      .sim-pill-row{gap:7px;padding:8px 4px 3px}
      .sim-pill-row button{min-width:70px;height:33px;padding:0 12px;font-size:12px}
      .sim-summary-row{grid-template-columns:34px minmax(0,1fr) 42px minmax(0,1fr);min-height:44px;padding:0 7px;font-size:10px}
      .sim-summary-minute{font-size:9px}
      .sim-summary-row>b{font-size:10px}
      .sim-summary-side{gap:4px}
      .sim-summary-side b{font-size:10px;white-space:normal;line-height:1.05}
      .sim-goal-main{gap:3px}
      .sim-assist-line{font-size:8px}
      .sim-ball-icon{width:12px;height:12px}
      .sim-card-icon{width:8px;height:13px}
      .sim-event-tag{font-size:7px}
      .sim-momentum-card{gap:7px;padding:9px;border-radius:8px}
    }

/* Squad page: top controls, larger pitch */
#managerTeamPage #managerTeamSquadList{height:100%;max-height:none!important;overflow:hidden!important;padding-right:0!important}
#managerTeamPage .manager-squad-layout{display:grid!important;grid-template-columns:1fr!important;grid-template-rows:auto minmax(0,1fr) auto!important;gap:6px!important;height:100%!important;min-height:0!important;align-items:stretch!important}
#managerTeamPage .manager-squad-top-menu{display:grid;gap:5px;min-height:0}
#managerTeamPage .manager-squad-info-controls{display:grid;gap:5px}
#managerTeamPage .team-profile-toggle{position:relative!important;display:grid!important;align-items:center!important;width:100%!important;height:37px!important;min-height:37px!important;padding:0 36px 0 12px!important;overflow:hidden!important;border:2px solid #7536d2!important;background:linear-gradient(180deg,rgba(60,22,104,.96),rgba(18,6,34,.98))!important;box-shadow:inset 0 1px rgba(255,255,255,.24),inset 0 -2px rgba(0,0,0,.55)!important;color:#fff!important;font-size:15px!important;letter-spacing:.04em!important;text-align:center!important;text-shadow:1px 2px #050407!important}
#managerTeamPage .team-profile-toggle:hover,#managerTeamPage .team-profile-toggle:focus-visible{outline:0!important;border-color:#c7a6ff!important;background:rgba(88,38,145,.94)!important}
#managerTeamPage .team-profile-toggle:after{content:""!important;position:absolute!important;right:14px!important;top:50%!important;width:0!important;height:0!important;transform:translateY(-35%)!important;border-left:5px solid transparent!important;border-right:5px solid transparent!important;border-top:7px solid #ffdd45!important}
#managerTeamPage .team-profile-toggle.open:after{transform:translateY(-35%) rotate(180deg)!important}
#managerTeamPage .team-profile-toggle .team-profile-hero{display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;align-items:center!important;gap:8px!important;width:100%!important;height:100%!important;min-width:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
#managerTeamPage .team-profile-toggle .team-profile-hero:after{content:none!important;display:none!important}
#managerTeamPage .team-profile-toggle .team-profile-hero>div{min-width:0!important;overflow:hidden!important}
#managerTeamPage .team-profile-toggle .team-profile-name,#managerTeamPage .team-profile-toggle .team-profile-sub{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
#managerTeamPage .team-profile-static{display:grid!important;align-items:center!important;width:100%!important;min-height:37px!important;padding:0 12px!important;overflow:hidden!important;border:2px solid #7536d2!important;background:linear-gradient(180deg,rgba(60,22,104,.96),rgba(18,6,34,.98))!important;box-shadow:inset 0 1px rgba(255,255,255,.24),inset 0 -2px rgba(0,0,0,.55)!important;color:#fff!important;font-size:15px!important;line-height:1!important;letter-spacing:.04em!important;text-align:center!important;text-shadow:1px 2px #050407!important}
#managerTeamPage .team-profile-static .team-profile-hero{display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;align-items:center!important;gap:8px!important;width:100%!important;height:100%!important;min-width:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
#managerTeamPage .team-profile-static .team-profile-hero>div{min-width:0!important;overflow:hidden!important}
#managerTeamPage .team-profile-static .team-profile-name,#managerTeamPage .team-profile-static .team-profile-sub{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
#managerTeamPage #managerTeamMeta{display:grid!important}
#managerTeamPage .team-formation:before,
#managerTeamPage .team-formation:after{z-index:0;pointer-events:none}
#managerTeamPage .formation-player{z-index:2}
#managerTeamPage .squad-roster-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
#managerTeamPage .squad-section-toggle{display:grid;grid-template-columns:1fr auto;align-items:center;height:29px;padding:0 10px;text-align:left;font-size:12px;line-height:1;border-color:#7536d2;background:rgba(42,14,78,.86)}
#managerTeamPage .squad-section-toggle small{color:#ffdd45;font-size:11px;text-align:right}
#managerTeamPage .squad-section-toggle.open{border-color:#ffdd45;background:rgba(88,38,145,.95);color:#ffdd45}
#managerTeamPage .manager-formation-pane{display:grid!important;grid-template-rows:auto minmax(0,1fr)!important;min-height:0!important;overflow:hidden!important}
#managerTeamPage .team-formation{height:100%!important;min-height:clamp(430px,calc(100dvh - 270px),780px)!important;max-height:none!important}
#managerTeamPage .formation-player{--formation-player-width:98px;width:calc(var(--formation-player-width) + 4mm);height:82px;top:calc(var(--y) + var(--formation-y-offset, -5mm));grid-template-rows:auto auto auto auto 1fr auto}
#managerTeamPage .formation-head{order:1;font-size:11px}
#managerTeamPage .formation-player b{order:2;max-width:100%;overflow:visible;text-overflow:clip;white-space:nowrap;font-size:var(--formation-name-size,13px);line-height:1}
#managerTeamPage .formation-mini{order:3;font-size:10px}
#managerTeamPage .formation-penalty{order:4;font-size:12px}
#managerTeamPage .formation-rating{order:6;align-self:end;margin-top:auto;font-size:12px}
#managerTeamPage .formation-rating .formation-form-ovr{display:block;margin-top:1px;font:900 10px/1 "Rajdhani","Arial Narrow",Arial,sans-serif;text-shadow:1px 1px #000}
#managerTeamPage .formation-form-ovr.up{color:#26da48}
#managerTeamPage .formation-form-ovr.down{color:#ff6262}
#managerTeamPage .formation-form-dot{right:8px}
#managerTeamPage .formation-skill-label{display:block!important;visibility:visible!important;top:84%!important;bottom:auto!important;z-index:8!important}
@media (min-width:900px) and (min-aspect-ratio:4/5){#managerTeamPage .formation-player{--formation-player-width:86px}}
@media (min-width:1280px) and (min-aspect-ratio:4/5){#managerTeamPage .formation-player{--formation-player-width:96px}}
#managerTeamPage .manager-roster-pane{display:grid!important;align-content:end!important;gap:6px!important;max-height:min(34dvh,360px)!important;overflow:auto!important;min-height:0!important}
#managerTeamPage .manager-roster-pane .squad-section{display:grid;gap:6px;min-height:0}
#managerTeamPage .manager-roster-pane .team-player-list{max-height:min(30dvh,320px);overflow:auto!important;padding-right:0}
#managerTeamPage .manager-bench-tray{display:grid;min-height:0}
#managerTeamPage .manager-bench-strip{display:grid;grid-template-columns:repeat(auto-fit,minmax(72px,1fr));gap:5px;min-width:0;overflow:visible;padding:1px 0 4px}
#managerTeamPage .manager-bench-strip::-webkit-scrollbar{width:0;height:0}
#managerTeamPage .manager-bench-chip{display:grid;grid-template-columns:25px minmax(0,1fr);grid-template-rows:1fr auto;height:42px;gap:2px 4px;align-items:center;box-sizing:border-box;border:1px solid rgba(255,255,255,.18);background:rgba(2,10,5,.72);padding:3px;text-align:left;text-shadow:none;box-shadow:0 2px 0 rgba(0,0,0,.42)}
#managerTeamPage .bench-chip-role{grid-row:1/3;display:grid;place-items:center;align-self:stretch;border:1px solid var(--trim);background:#fff;color:#050407;font:900 11px/1 "Rajdhani","Arial Narrow",Arial,sans-serif;text-shadow:none}
#managerTeamPage .manager-bench-chip b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#fff;font:11px/1 Arial,sans-serif;text-shadow:1px 1px #000}
#managerTeamPage .manager-bench-chip small{color:#ffdd45;font:900 10.5px/1 "Rajdhani","Arial Narrow",Arial,sans-serif;text-shadow:1px 1px #000}
#managerTeamPage.squad-placement-active .manager-squad-top-menu{display:none!important}

@media(max-aspect-ratio:4/5){
  #managerTeamPage:not(.hide){grid-template-rows:auto auto auto minmax(0,1fr)!important;gap:3px!important;overflow:hidden!important}
  #managerTeamPage #managerTeamSquadList{height:100%!important;max-height:none!important;overflow-y:auto!important;overflow-x:hidden!important;padding-bottom:calc(54px + env(safe-area-inset-bottom,0px))!important;scrollbar-width:none!important;-ms-overflow-style:none!important;-webkit-overflow-scrolling:touch;touch-action:pan-y}
  #managerTeamPage #managerTeamSquadList::-webkit-scrollbar{width:0!important;height:0!important;display:none!important}
  #managerTeamPage .manager-squad-layout{display:flex!important;flex-direction:column!important;gap:4px!important;height:auto!important;min-height:0!important;align-items:stretch!important}
  #managerTeamPage .manager-squad-top-menu{position:relative!important;z-index:5!important;flex:0 0 auto!important;min-height:26px!important;gap:4px}
  #managerTeamPage .manager-squad-info-controls{gap:4px}
  #managerTeamPage .squad-roster-row,#managerTeamPage .squad-filter-row,#managerTeamPage .manager-squad-match-actions{gap:4px}
  #managerTeamPage .squad-section-toggle,#managerTeamPage .squad-filter-row button,#managerTeamPage .manager-squad-match-actions button{height:26px;font-size:10px;padding:0 5px}
  #managerTeamPage .squad-section-toggle small{font-size:9px}
  #managerTeamPage .manager-formation-pane{display:block!important;flex:0 0 auto!important;height:auto!important;margin-top:0!important;overflow:visible!important}
  #managerTeamPage .team-formation{height:430px!important;min-height:430px!important;max-height:430px!important;flex:0 0 auto!important}
  #managerTeamPage .formation-skill-label{display:block!important;visibility:visible!important;top:84%!important;bottom:auto!important;z-index:8!important}
  #managerTeamPage .formation-player{--formation-player-width:54px;height:66px}
  #managerTeamPage .formation-head{font-size:9px}
  #managerTeamPage .formation-player b{font-size:var(--formation-name-mobile-size,9.5px)}
  #managerTeamPage .formation-rating{font-size:9.5px}
  #managerTeamPage .formation-rating .formation-form-ovr{font-size:8px}
  #managerTeamPage .formation-form-dot{right:7px}
  #managerTeamPage .formation-penalty{font-size:10px}
  #managerTeamPage .manager-roster-pane{position:relative!important;z-index:auto!important;align-content:start!important;flex:0 0 auto!important;max-height:none!important;overflow:visible!important}
  #managerTeamPage .manager-roster-pane .team-player-list{max-height:none!important}
  #managerTeamPage .manager-bench-strip{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}
  #managerTeamPage .manager-bench-chip{height:35px;grid-template-columns:21px minmax(0,1fr);padding:2px;gap:1px 3px}
  #managerTeamPage .bench-chip-role{font-size:10px}
  #managerTeamPage .manager-bench-chip b{font-size:10.5px}
  #managerTeamPage .manager-bench-chip small{font-size:10px}
}

/* Manager squad polish: remove duplicate team bars and add compact full squad list */
#manager .top{display:none!important}
#managerTeamPage #managerTeamTitle{display:none!important}
#managerFullSquadPage:not(.hide){display:grid!important;grid-template-rows:minmax(0,1fr) auto!important;gap:8px!important;height:100%!important;min-height:0!important;overflow:hidden!important}
#managerFullSquadList{display:grid;align-content:start;gap:6px;height:100%;min-height:0;max-height:none!important;overflow:auto!important;padding-right:0;scrollbar-width:none}
#managerFullSquadList::-webkit-scrollbar{width:0;height:0}
.manager-full-squad-section{display:grid;gap:5px}
.manager-full-squad-player{display:grid;grid-template-columns:19px 44px minmax(0,1fr) 64px;align-items:center;gap:6px;width:100%;height:34px;padding:0 7px;text-align:left;background:rgba(42,14,78,.86)}
.player-origin-flag{position:relative;display:grid;place-items:center;justify-self:center;width:18px;height:13px;overflow:hidden;border:1px solid rgba(255,255,255,.65);background:#12101b;color:#fff;box-shadow:0 0 0 1px rgba(0,0,0,.48),0 1px 0 rgba(0,0,0,.7);font:900 8px/1 Arial,sans-serif;text-shadow:none}
.player-origin-flag.emoji{width:19px;height:15px;overflow:visible;border:0;background:transparent;box-shadow:none;font-size:14px;line-height:15px}
.player-origin-flag.unknown{background:#191326;color:#ffdd45;border-color:#7536d2;font-size:10px}
.player-origin-flag.origin-ie{background:linear-gradient(90deg,#169b62 0 33.3%,#fff 33.3% 66.6%,#ff883e 66.6% 100%)}
.player-origin-flag.origin-gb-eng{background:#fff}
.player-origin-flag.origin-gb-eng:before{content:"";position:absolute;left:0;right:0;top:5px;height:3px;background:#c8102e}
.player-origin-flag.origin-gb-eng:after{content:"";position:absolute;top:0;bottom:0;left:7px;width:3px;background:#c8102e}
.player-origin-flag.origin-gb-sct{background:linear-gradient(34deg,transparent 0 42%,#fff 42% 58%,transparent 58% 100%),linear-gradient(-34deg,transparent 0 42%,#fff 42% 58%,transparent 58% 100%),#0065bd}
.player-origin-flag.origin-gb-wls{background:linear-gradient(180deg,#fff 0 50%,#00843d 50% 100%)}
.player-origin-flag.origin-gb-wls:after{content:"";position:absolute;left:6px;top:3px;width:7px;height:5px;background:#c8102e;clip-path:polygon(0 20%,70% 20%,70% 0,100% 50%,70% 100%,70% 80%,0 80%)}
.player-origin-flag.origin-gb-nir{background:#fff}
.player-origin-flag.origin-gb-nir:before{content:"";position:absolute;left:0;right:0;top:5px;height:3px;background:#c8102e}
.player-origin-flag.origin-gb-nir:after{content:"";position:absolute;top:0;bottom:0;left:7px;width:3px;background:#c8102e;box-shadow:0 0 0 2px rgba(255,255,255,.75)}
.player-origin-flag.origin-xk{background:#244aa5;color:#ffd43b;border-color:#ffd43b;font-size:7px}
.manager-full-squad-player .manager-full-squad-role{display:grid;place-items:center;height:22px;border:1px solid rgba(255,255,255,.32);background:#7536d2;color:#fff;font:900 11px/1 "Rajdhani","Arial Narrow",Arial,sans-serif;text-shadow:1px 2px #000}
.manager-full-squad-role.role-gk{background:#ffdd45;color:#050407;text-shadow:none;border-color:#fff2a8}
.manager-full-squad-role.role-def{background:#1f6feb;border-color:#8db7ff}
.manager-full-squad-role.role-mid{background:#1f9d72;border-color:#89e7c2}
.manager-full-squad-role.role-st{background:#d94747;border-color:#ff9a9a}
.manager-full-squad-player b{display:flex;align-items:center;gap:5px;min-width:0;overflow:hidden;color:#fff;font:700 12px/1 Arial,sans-serif;text-shadow:1px 1px #000}
.manager-full-squad-player b em{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-style:normal}
.manager-full-squad-player b i{display:inline-flex;align-items:center;gap:4px;flex:0 0 auto;font-style:normal}
.manager-full-squad-player b .daily-form-dot,.manager-full-squad-player b .injury-badge,.manager-full-squad-player b .training-badge,.manager-full-squad-player b .player-card-badges{margin:0;vertical-align:middle}
.manager-full-squad-player strong{display:grid;gap:1px;color:#ffdd45;text-align:right;font:900 12px/.92 "Rajdhani","Arial Narrow",Arial,sans-serif;text-shadow:1px 2px #000}
.manager-full-squad-player strong span{display:block}
.manager-full-squad-player.open{border-color:#ffdd45;background:rgba(88,38,145,.95)}
.manager-full-squad-stats{border:1px solid rgba(255,255,255,.14);border-top:0;background:rgba(5,2,10,.62);padding:5px}
.manager-full-squad-stats .team-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(58px,1fr));gap:4px}
.manager-full-squad-stats .team-stat{padding:3px 4px}
.manager-full-squad-stats .team-stat span:last-child{display:flex;justify-content:flex-end;gap:2px;white-space:nowrap}
.manager-full-squad-stats .team-stat small{font:900 9px/1 Arial,sans-serif}
.manager-full-squad-stats .team-stat small.up{color:#26da48}
.manager-full-squad-stats .team-stat small.down{color:#ff6262}
@media(min-aspect-ratio:4/5){#manager .manager-panel{top:calc(1cm + 8px)!important;bottom:8px!important}}
@media(max-aspect-ratio:4/5){#manager .manager-panel{top:calc(1cm + 8px)!important}}

/* Target squad layout */
.app-top-bar{left:14px;right:14px;top:10px;height:56px;grid-template-columns:54px minmax(0,1fr) auto;gap:12px;padding:0 14px;border:2px solid #7536d2;border-radius:8px 8px 0 0;background:linear-gradient(180deg,rgba(22,7,45,.98),rgba(8,2,18,.98));box-shadow:0 0 0 1px rgba(160,54,255,.18),0 16px 48px rgba(0,0,0,.72),inset 0 1px rgba(255,255,255,.14)}
.app-top-bar .top-team-flag .team-flag{width:40px;height:27px;border-width:2px;box-shadow:0 0 0 2px rgba(0,0,0,.62),0 0 16px rgba(117,54,210,.35)}
.app-top-bar .top-team-flag .team-flag:before{left:-7px;top:-5px;height:40px}
#appTopWho{display:grid;place-items:center;font-size:25px;font-weight:900;letter-spacing:.07em;text-align:center}
#appTopWho .app-top-marquee-item{top:50%;font-size:25px;font-weight:900;letter-spacing:.07em;text-shadow:0 0 10px rgba(255,255,255,.22),1px 2px #000}
#appTopLogout{height:36px;padding:0 14px;border:2px solid #ff3048;border-radius:8px!important;background:linear-gradient(180deg,#8f1230,#260510);color:#fff;font-size:15px;letter-spacing:.06em;box-shadow:0 0 0 1px rgba(255,48,72,.35),0 0 18px rgba(255,48,72,.65),inset 0 1px rgba(255,255,255,.22)}
#appTopLogout:hover,#appTopLogout:focus-visible{border-color:#ff6678;background:linear-gradient(180deg,#b51634,#340612)}

#manager .manager-panel{border:2px solid #7536d2;border-top:0;border-radius:0 0 8px 8px;background:radial-gradient(circle at 50% 0,rgba(98,35,170,.24),transparent 38%),rgba(7,2,17,.96);box-shadow:0 0 0 1px rgba(160,54,255,.18),0 20px 70px rgba(0,0,0,.76),inset 0 1px rgba(255,255,255,.08)}
#managerActionMenu{padding-left:max(14px,env(safe-area-inset-left,0px))!important;padding-right:max(14px,env(safe-area-inset-right,0px))!important;padding-bottom:calc(10px + env(safe-area-inset-bottom,0px))!important}
#managerActionMenu.open{top:68px!important}
#managerActionButton{display:grid;grid-template-columns:54px minmax(0,1fr) 54px;align-items:center;height:58px!important;border:2px solid #9a25ff!important;border-radius:7px;background:linear-gradient(180deg,rgba(31,7,68,.98),rgba(5,1,14,.98))!important;color:#fff;font-size:25px!important;letter-spacing:.08em;box-shadow:0 0 0 1px rgba(154,37,255,.34),0 0 22px rgba(154,37,255,.72),inset 0 1px rgba(255,255,255,.18)!important}
#managerActionButton:before{content:"";justify-self:center;width:30px;height:22px;background:repeating-linear-gradient(180deg,#a334ff 0 4px,transparent 4px 9px);filter:drop-shadow(0 0 6px rgba(163,52,255,.72))}
#managerActionButton:after{content:""!important;position:static!important;justify-self:center;width:18px!important;height:18px!important;border:solid #a334ff!important;border-width:0 5px 5px 0!important;transform:rotate(-45deg)!important;box-shadow:3px 3px 8px rgba(163,52,255,.45)}
#managerActionMenu.open #managerActionButton:after{transform:rotate(45deg)!important}

.manager-last{position:relative;display:grid!important;grid-template-rows:auto auto auto;gap:0;align-content:start;min-height:110px;overflow:visible!important;border:2px solid rgba(154,37,255,.72)!important;border-radius:6px;background:linear-gradient(180deg,rgba(22,7,50,.95),rgba(8,2,20,.98))!important;padding:8px 9px 15px!important;box-shadow:0 0 0 1px rgba(154,37,255,.18),0 0 18px rgba(154,37,255,.22),inset 0 1px rgba(255,255,255,.1)}
.manager-live-card,.manager-live-fixture{cursor:pointer}
.manager-live-card:focus-visible,.manager-live-card:hover,.manager-live-fixture:focus-visible,.manager-live-fixture:hover{border-color:#ffdd45!important;box-shadow:0 0 0 1px rgba(255,221,69,.35),0 0 18px rgba(255,221,69,.22),inset 0 1px rgba(255,255,255,.1)}
.manager-last:before{content:"";position:absolute;left:0;right:0;top:0;height:2px;background:linear-gradient(90deg,transparent,#9a25ff,#ffdd45,#9a25ff,transparent);opacity:.75}
.manager-last>b{display:flex!important;align-items:center;justify-content:center;gap:6px;margin-bottom:6px;color:#ffdd45!important;font:900 12px/1 "Rajdhani","Arial Narrow",Arial,sans-serif!important;letter-spacing:.05em;text-transform:uppercase;text-shadow:0 0 8px rgba(255,221,69,.22),1px 2px #000!important}
.manager-inline-label{display:inline-grid;place-items:center;min-height:18px;padding:2px 7px;border:1px solid rgba(154,37,255,.9);border-radius:999px;background:rgba(20,4,46,.96);color:#fff!important;box-shadow:0 0 10px rgba(154,37,255,.35);font-size:11px}
.manager-last .manager-fixture,.manager-round .manager-fixture{display:grid!important;grid-template-columns:38px minmax(0,1fr) 52px minmax(0,1fr)!important;align-items:center;gap:7px!important;min-height:46px!important;margin-top:0!important;padding:7px!important;border:1px solid rgba(154,37,255,.38)!important;border-radius:4px;background:linear-gradient(180deg,rgba(6,1,18,.96),rgba(13,3,31,.96))!important;box-shadow:inset 0 1px rgba(255,255,255,.07)}
.manager-last .manager-fixture.no-status,.manager-round .manager-fixture.no-status{grid-template-columns:minmax(0,1fr) 52px minmax(0,1fr)!important}
.manager-fixture-team{display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;align-items:center;gap:6px!important;min-width:0;padding:4px 6px;border:1px solid rgba(255,255,255,.08);border-radius:3px;background:rgba(255,255,255,.035)}
.manager-fixture-away{grid-template-columns:minmax(0,1fr) auto!important}
.manager-fixture-away .team-flag{grid-column:2}
.manager-fixture-away .manager-team-copy{grid-column:1;grid-row:1;text-align:right}
.manager-fixture-team .team-flag{width:22px;height:15px;border-width:1px;box-shadow:0 0 0 1px rgba(255,255,255,.18),0 2px 0 rgba(0,0,0,.55)}
.manager-fixture-team .team-flag:before{left:-4px;top:-3px;height:23px}
.manager-team-copy{display:grid;gap:1px;min-width:0}
.manager-fixture-team .manager-team-name{font:900 12px/1 "Rajdhani","Arial Narrow",Arial,sans-serif!important;letter-spacing:.03em;text-shadow:1px 2px #000}
.manager-team-skill{color:#e8dcff!important;font:900 10px/1 "Rajdhani","Arial Narrow",Arial,sans-serif!important;text-shadow:1px 1px #000!important}
.manager-fixture-score{display:grid;place-items:center;min-width:52px!important;min-height:30px;border:1px solid rgba(255,221,69,.62);border-radius:4px;background:linear-gradient(180deg,rgba(255,221,69,.18),rgba(30,10,0,.72));color:#ffdd00!important;font:900 19px/1 "Rajdhani","Arial Narrow",Arial,sans-serif!important;text-shadow:1px 2px #000;box-shadow:0 0 12px rgba(255,221,69,.22),inset 0 1px rgba(255,255,255,.12)}
.manager-fixture-status{min-width:30px!important;min-height:24px!important;border:1px solid rgba(154,37,255,.7);border-radius:3px;background:rgba(20,4,46,.94);color:#fff!important;font-size:10px!important;box-shadow:0 0 10px rgba(154,37,255,.24)}
.manager-fixture-status.upcoming:before{content:"";width:8px;height:8px;border-radius:50%;background:#9a25ff;box-shadow:0 0 10px rgba(154,37,255,.8)}
.manager-fixture-status.played{border-color:#26da48;background:rgba(8,82,29,.92);color:#fff!important;box-shadow:0 0 10px rgba(38,218,72,.34)}
.manager-fixture-status.live{border-color:#ff3048;background:#b51616!important;color:#fff!important;box-shadow:0 0 0 1px rgba(255,255,255,.18),0 0 14px rgba(255,48,72,.58)}
.manager-last .fixture-odds-line,.manager-round .fixture-odds-line{grid-template-columns:38px repeat(3,minmax(0,1fr))!important;gap:7px!important;padding:5px 0 0!important}
.manager-last .fixture-odds-line span:not(:first-child),.manager-round .fixture-odds-line span:not(:first-child){padding:3px 4px;border:1px solid rgba(154,37,255,.35);border-radius:999px;background:rgba(20,4,46,.72);color:#ffdd45;font:900 10px/1 "Rajdhani","Arial Narrow",Arial,sans-serif;text-shadow:1px 1px #000}
.manager-last .manager-odds,.manager-round .manager-odds{margin:4px 0 0!important}

#managerTeamPage:not(.hide){display:grid!important;grid-template-rows:auto minmax(0,1fr)!important;gap:8px!important;height:100%!important;min-height:0!important;overflow:hidden!important}
#managerTeamPage #managerTeamTitle,#managerTeamPage #managerFormationControls,#managerTeamPage #managerReplacementList,#managerTeamPage #managerTeamBack{display:none!important}
#managerTeamPage #managerTeamMeta{display:grid!important;gap:8px!important;align-content:start!important;min-height:0!important;font-size:12px!important;line-height:1!important}
#managerTeamPage .team-metrics{display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;gap:8px!important}
#managerTeamPage .team-metric{position:relative;display:grid!important;grid-template-rows:22px auto auto;align-items:center;justify-items:center;min-width:0;min-height:86px;padding:9px 4px 8px!important;border:2px solid rgba(117,54,210,.76);border-radius:4px;background:linear-gradient(180deg,rgba(28,9,60,.88),rgba(4,1,12,.94));box-shadow:inset 0 1px rgba(255,255,255,.12),0 4px 14px rgba(0,0,0,.42);text-align:center}
#managerTeamPage .team-metric:before{display:block;color:#a334ff;font:900 19px/1 "Rajdhani","Arial Narrow",Arial,sans-serif;text-shadow:0 0 10px rgba(163,52,255,.7),1px 2px #000}
#managerTeamPage .team-metric:nth-child(1):before{content:"+"}
#managerTeamPage .team-metric:nth-child(2):before{content:"*"}
#managerTeamPage .team-metric:nth-child(3):before{content:"W"}
#managerTeamPage .team-metric:nth-child(4):before{content:"O"}
#managerTeamPage .team-metric:nth-child(5):before{content:"D"}
#managerTeamPage .team-metric:nth-child(6):before{content:"*"}
#managerTeamPage .team-metric:nth-child(7):before{content:"P"}
#managerTeamPage .team-metric b{display:block!important;min-width:0;color:#fff;font:900 24px/1 "Rajdhani","Arial Narrow",Arial,sans-serif!important;text-shadow:0 0 8px rgba(255,255,255,.18),1px 2px #000!important}
#managerTeamPage .team-metric span{display:block!important;margin-top:4px!important;color:#e9e2f7!important;font:900 12px/.95 "Rajdhani","Arial Narrow",Arial,sans-serif!important;letter-spacing:.05em;text-shadow:1px 2px #000!important}
#managerTeamPage .manager-formation-inline{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:8px!important}
#managerTeamPage .manager-formation-inline button{height:54px!important;border:2px solid #9a25ff;border-radius:4px;background:linear-gradient(180deg,rgba(38,9,82,.94),rgba(10,2,28,.98));font-size:24px!important;letter-spacing:.02em;box-shadow:inset 0 1px rgba(255,255,255,.14),0 0 13px rgba(154,37,255,.22)}
#managerTeamPage .manager-formation-inline button.active{border-color:#ffff00!important;color:#ffff00!important;background:linear-gradient(180deg,rgba(66,18,120,.98),rgba(15,4,35,.98));box-shadow:0 0 0 1px rgba(255,255,0,.28),0 0 14px rgba(255,255,0,.32),inset 0 1px rgba(255,255,255,.18)}
#managerTeamPage #managerTeamSquadList{height:100%!important;min-height:0!important;max-height:none!important;overflow:auto!important;padding:0 1px calc(74px + env(safe-area-inset-bottom,0px))!important;scrollbar-width:none!important;touch-action:pan-y}
#managerTeamPage #managerTeamSquadList::-webkit-scrollbar{width:0!important;height:0!important;display:none!important}
#managerTeamPage .manager-squad-layout{display:grid!important;grid-template-columns:1fr!important;grid-template-rows:auto minmax(0,1fr) auto!important;gap:8px!important;height:auto!important;min-height:100%!important;align-items:start!important}
#managerTeamPage .manager-squad-top-menu{position:relative!important;z-index:5!important;display:grid!important;gap:8px!important}
#managerTeamPage .manager-squad-match-actions{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(150px,1fr))!important;gap:8px!important}
#managerTeamPage .manager-squad-match-actions button{height:56px!important;min-width:0;padding:0 10px!important;border:2px solid #9a25ff;border-radius:4px;background:linear-gradient(180deg,rgba(31,7,68,.98),rgba(6,1,18,.98));font-size:19px!important;letter-spacing:.05em;line-height:1!important;box-shadow:inset 0 1px rgba(255,255,255,.14),0 0 14px rgba(154,37,255,.28)}
#managerTeamPage .manager-squad-match-actions #managerTeamBestLineup{border-color:#00ff3a!important;background:linear-gradient(180deg,rgba(13,117,31,.96),rgba(2,49,13,.98))!important;box-shadow:0 0 0 1px rgba(0,255,58,.28),0 0 18px rgba(0,255,58,.55),inset 0 1px rgba(255,255,255,.2)!important}
#managerTeamPage .manager-squad-match-actions .manager-ready-waiting{border-color:#26da48!important;background:linear-gradient(180deg,rgba(18,142,48,.96),rgba(8,64,28,.98))!important;box-shadow:0 0 0 2px rgba(38,218,72,.35),0 0 18px rgba(38,218,72,.42),inset 0 1px rgba(255,255,255,.26)!important;color:#fff!important}
#managerTeamPage .manager-formation-pane{display:block!important;min-height:0!important;overflow:visible!important}
#managerTeamPage .team-formation{height:clamp(520px,calc(100dvh - 355px),860px)!important;min-height:520px!important;max-height:none!important;border:3px solid rgba(38,218,72,.75);border-radius:8px;background:linear-gradient(90deg,rgba(255,255,255,.12) 0 1px,transparent 1px calc(100% - 1px),rgba(255,255,255,.12) calc(100% - 1px)),repeating-linear-gradient(180deg,rgba(22,136,55,.93) 0 58px,rgba(14,112,45,.93) 58px 116px),linear-gradient(180deg,#0d7f36,#064f25)!important;box-shadow:0 0 0 1px rgba(0,0,0,.65),0 0 24px rgba(38,218,72,.38),inset 0 0 0 3px rgba(0,0,0,.34),inset 0 0 70px rgba(0,0,0,.2)}
#managerTeamPage .team-formation:before{left:18%!important;right:18%!important;top:50%!important;height:2px!important;background:rgba(187,255,195,.28)!important;box-shadow:0 -154px 0 rgba(187,255,195,.2),0 154px 0 rgba(187,255,195,.2)}
#managerTeamPage .team-formation:after{width:150px!important;height:150px!important;border:3px solid rgba(187,255,195,.24)!important;background:transparent!important}
#managerTeamPage .formation-player{--formation-player-width:104px;width:calc(var(--formation-player-width) + 4mm)!important;height:92px!important;display:grid!important;grid-template-rows:auto minmax(0,1fr) auto!important;justify-items:center!important;align-content:start!important;gap:3px!important;overflow:hidden!important;padding:7px 7px 5px!important;border:2px solid rgba(75,207,84,.86)!important;border-radius:8px;background:linear-gradient(135deg,rgba(44,216,89,.18) 0 22%,transparent 22% 78%,rgba(44,216,89,.12) 78% 100%),linear-gradient(180deg,rgba(5,58,23,.96),rgba(1,20,9,.98))!important;box-shadow:0 3px 0 rgba(0,0,0,.56),0 0 14px rgba(38,218,72,.28),inset 0 1px rgba(255,255,255,.14);text-align:center}
#managerTeamPage .formation-player:before{content:"";position:absolute;inset:5px;border:2px solid rgba(75,207,84,.58);border-radius:6px;box-shadow:inset 0 0 18px rgba(38,218,72,.1);pointer-events:none}
#managerTeamPage .formation-player:after{content:"";position:absolute;left:24%;right:24%;top:42%;height:2px;background:linear-gradient(90deg,transparent,rgba(38,218,72,.82),transparent);box-shadow:0 22px 0 rgba(38,218,72,.44);pointer-events:none}
#managerTeamPage .formation-head,#managerTeamPage .formation-player b,#managerTeamPage .formation-rating{position:relative;z-index:2}
#managerTeamPage .formation-player.squad-pick:hover,#managerTeamPage .formation-player.squad-pick:focus-visible{border-color:#ffff00!important;background:linear-gradient(180deg,rgba(10,75,27,.96),rgba(3,27,12,.98))!important}
#managerTeamPage .formation-player.squad-pick.selected{border-color:#26da48!important;box-shadow:0 0 0 2px rgba(38,218,72,.66),0 0 20px rgba(38,218,72,.9),inset 0 1px rgba(255,255,255,.18)!important}
#managerTeamPage .formation-head{display:grid!important;place-items:center!important;width:44px!important;height:28px!important;margin:0!important;border:2px solid #050407!important;border-radius:999px!important;background:#fff!important;color:#050407!important;font:900 15px/1 "Rajdhani","Arial Narrow",Arial,sans-serif!important;text-shadow:none!important;box-shadow:0 2px 0 rgba(0,0,0,.58)!important}
#managerTeamPage .formation-player b{align-self:center!important;width:100%!important;max-width:100%!important;overflow:hidden!important;text-overflow:clip!important;white-space:nowrap!important;color:#fff!important;font-family:Arial,sans-serif!important;font-weight:900!important;line-height:1!important;text-shadow:1px 2px #000!important}
#managerTeamPage .formation-rating{align-self:end!important;margin-top:auto!important;color:#ffdd00!important;font:900 15px/1 "Rajdhani","Arial Narrow",Arial,sans-serif!important;letter-spacing:.03em;text-shadow:1px 2px #000!important}
#managerTeamPage .formation-rating{display:grid!important;grid-template-columns:minmax(0,1fr)!important;justify-items:center!important;gap:1px!important;font-size:13px!important;letter-spacing:0!important}
#managerTeamPage .formation-rating-main{display:block!important;min-width:0!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;line-height:1!important}
#managerTeamPage .formation-rating-boosts{display:grid!important;grid-template-columns:minmax(0,1fr)!important;justify-items:center!important;gap:0!important;width:100%!important;min-width:0!important}
#managerTeamPage .formation-rating .formation-form-ovr{display:block!important;margin-top:0!important;color:#26da48;font-size:10px!important;line-height:1!important;letter-spacing:0!important}
#managerTeamPage .formation-rating .formation-form-ovr.down{color:#ff6262}
#managerTeamPage .formation-mini,#managerTeamPage .formation-penalty{display:none!important}
#managerTeamPage .formation-form-dot{right:8px!important;top:8px!important;width:15px!important;height:15px!important;min-width:15px!important;min-height:15px!important;max-width:15px!important;max-height:15px!important}
#managerTeamPage .formation-card-badges{left:8px!important;top:28px!important}
#managerTeamPage .formation-skill-label{top:auto!important;bottom:16px!important;z-index:8!important;display:block!important;padding:8px 22px!important;border:2px solid #26da48!important;border-radius:4px;background:rgba(5,12,8,.86)!important;color:#ffdd00!important;font-size:24px!important;box-shadow:0 0 16px rgba(38,218,72,.45),inset 0 1px rgba(255,255,255,.14)}
#managerTeamPage .manager-roster-pane{display:grid!important;align-content:start!important;max-height:none!important;overflow:visible!important;background:transparent!important}
#managerTeamPage .team-formation{margin-bottom:14px!important}
#managerTeamPage #managerTeamSquadList{padding-bottom:calc(94px + env(safe-area-inset-bottom,0px))!important}

@media(min-aspect-ratio:4/5){
  #manager .manager-panel{top:68px!important;bottom:74px!important;left:14px!important;right:14px!important;width:auto!important;max-height:none!important;transform:none!important;padding:12px 14px 0!important}
  #managerTeamPage .formation-player{--formation-player-width:94px}
}

@media(max-aspect-ratio:4/5){
  .app-top-bar{left:3vw;right:3vw;top:8px;height:50px;grid-template-columns:42px minmax(0,1fr) auto;gap:8px;padding:0 9px}
  .app-top-bar .top-team-flag .team-flag{width:32px;height:22px}
  .app-top-bar .top-team-flag .team-flag:before{height:32px}
  #appTopWho,#appTopWho .app-top-marquee-item{font-size:18px;letter-spacing:.05em}
  #appTopLogout{height:32px;padding:0 9px;font-size:12px}
  #manager .manager-panel{top:58px!important;left:3vw!important;right:3vw!important;bottom:calc(68px + env(safe-area-inset-bottom,0px))!important;width:auto!important;max-height:none!important;transform:none!important;padding:7px!important}
  #managerTeamPage:not(.hide){gap:6px!important}
  #managerTeamPage #managerTeamMeta{gap:6px!important}
  #managerTeamPage .team-metrics{gap:4px!important}
  #managerTeamPage .team-metric{grid-template-rows:16px auto auto;min-height:64px;padding:6px 2px 5px!important;border-width:1px}
  #managerTeamPage .team-metric:before{font-size:14px}
  #managerTeamPage .team-metric b{font-size:18px!important}
  #managerTeamPage .team-metric span{font-size:7.5px!important;line-height:.88!important;letter-spacing:.02em}
  #managerTeamPage .manager-formation-inline{gap:5px!important}
  #managerTeamPage .manager-formation-inline button{height:40px!important;font-size:18px!important}
  #managerTeamPage .manager-squad-layout{gap:6px!important}
  #managerTeamPage .manager-squad-top-menu{gap:6px!important}
  #managerTeamPage .manager-squad-match-actions{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important}
  #managerTeamPage .manager-squad-match-actions button{height:48px!important;padding:0 4px!important;font-size:13px!important}
  #managerTeamPage .team-formation{height:clamp(700px,58dvh,980px)!important;min-height:700px!important}
  #managerTeamPage .team-formation{margin-bottom:12px!important}
  #managerTeamPage #managerTeamSquadList{padding-bottom:calc(86px + env(safe-area-inset-bottom,0px))!important}
  #managerTeamPage .team-formation:after{width:112px!important;height:112px!important}
  #managerTeamPage .team-formation:before{box-shadow:0 -118px 0 rgba(187,255,195,.2),0 118px 0 rgba(187,255,195,.2)}
  #managerTeamPage .formation-player{--formation-player-width:62px;height:78px!important;padding:5px 4px 4px!important;gap:2px!important;border-width:2px!important}
  #managerTeamPage .formation-head{width:37px!important;height:25px!important;font-size:13px!important}
  #managerTeamPage .formation-player b{font-size:var(--formation-name-mobile-size,9.5px)!important}
  #managerTeamPage .formation-rating{font-size:10.5px!important}
  #managerTeamPage .formation-rating .formation-form-ovr{font-size:8.5px!important}
  #managerTeamPage .formation-form-dot{right:5px!important;top:7px!important;width:14px!important;height:14px!important;min-width:14px!important;min-height:14px!important}
  #managerTeamPage .formation-skill-label{bottom:14px!important;padding:6px 18px!important;font-size:22px!important}
  #managerDealsPage:not(.hide){gap:7px}
  #managerDealsList{padding-bottom:calc(82px + env(safe-area-inset-bottom,0px))}
  #managerDealsPage .manager-deal-card{padding:10px}
  #managerDealsPage .manager-deal-card b{font-size:18px}
  #managerDealsPage .manager-deal-card small{font-size:12px}
  #managerDealsPage .manager-deal-actions{grid-template-columns:1fr;gap:6px}
  #managerDealsPage .manager-deal-actions button{height:44px;font-size:14px}
  #managerActionMenu{padding-left:3vw!important;padding-right:3vw!important;padding-bottom:calc(8px + env(safe-area-inset-bottom,0px))!important}
  #managerActionMenu.open{top:58px!important}
  #managerActionButton{height:54px!important;grid-template-columns:46px minmax(0,1fr) 46px;font-size:21px!important}
  #managerActionButton:before{width:27px;height:20px}
  #managerActionButton:after{width:16px!important;height:16px!important}
  .manager-last{min-height:104px!important;padding:7px 7px 13px!important}
  .manager-last>b{font-size:10.5px!important;gap:4px}
  .manager-inline-label{min-height:16px;padding:2px 5px;font-size:9px}
  .manager-last .manager-fixture,.manager-round .manager-fixture{grid-template-columns:28px minmax(0,1fr) 42px minmax(0,1fr)!important;gap:4px!important;padding:5px!important}
  .manager-last .manager-fixture.no-status,.manager-round .manager-fixture.no-status{grid-template-columns:minmax(0,1fr) 42px minmax(0,1fr)!important}
  .manager-fixture-team{gap:4px!important;padding:3px 4px}
  .manager-fixture-team .team-flag{width:17px;height:12px}
  .manager-fixture-team .team-flag:before{height:18px}
  .manager-fixture-team .manager-team-name{font-size:10px!important;line-height:1!important}
  .manager-team-skill{font-size:9px!important}
  .manager-fixture-score{min-width:42px!important;min-height:26px;font-size:15px!important}
  .manager-fixture-status{min-width:25px!important;min-height:22px!important;font-size:8px!important}
  .manager-last .fixture-odds-line,.manager-round .fixture-odds-line{grid-template-columns:28px repeat(3,minmax(0,1fr))!important;gap:4px!important}
  .manager-last .fixture-odds-line span:not(:first-child),.manager-round .fixture-odds-line span:not(:first-child){font-size:8.5px;padding:3px 2px}
}

/* Manager menu redesign */
#managerActionMenu.open{display:grid!important;grid-template-rows:minmax(0,1fr) auto!important;background:linear-gradient(180deg,rgba(7,2,18,.98),rgba(12,3,28,.98))!important;box-shadow:0 -18px 70px rgba(0,0,0,.78)!important}
#managerActionMenu.open #managerActionList{position:static!important;order:1!important;display:grid!important;grid-template-columns:1fr!important;grid-auto-rows:minmax(78px,max-content)!important;align-content:start!important;gap:10px!important;width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;overflow:auto!important;padding:18px 22px 20px!important;border:0!important;background:transparent!important;box-shadow:none!important;scrollbar-width:none}
#managerActionMenu.open #managerActionList::-webkit-scrollbar{width:0;height:0}
#managerActionMenu.open #managerActionList button{position:relative;display:grid!important;grid-template-columns:92px minmax(0,1fr) 54px!important;align-items:center!important;gap:18px!important;width:100%!important;height:78px!important;min-height:78px!important;padding:0 18px 0 10px!important;overflow:hidden;border:2px solid rgba(154,37,255,.82)!important;border-radius:7px;background:linear-gradient(90deg,rgba(42,7,86,.96),rgba(13,3,32,.98) 54%,rgba(7,1,20,.98))!important;color:#fff!important;text-align:left!important;font:900 25px/1 "Rajdhani","Arial Narrow",Arial,sans-serif!important;letter-spacing:.12em;text-shadow:0 0 10px rgba(255,255,255,.16),1px 2px #000!important;box-shadow:0 0 0 1px rgba(154,37,255,.18),0 0 18px rgba(154,37,255,.38),inset 0 1px rgba(255,255,255,.12)!important}
#managerActionMenu.open #managerActionList button:before{content:"";display:grid;place-items:center;width:70px;height:60px;border:2px solid rgba(154,37,255,.52);border-radius:7px;background:var(--manager-menu-icon) center/42px 42px no-repeat,linear-gradient(180deg,rgba(62,16,112,.72),rgba(12,3,28,.92));color:#b63cff;font:900 24px/1 "Rajdhani","Arial Narrow",Arial,sans-serif;text-shadow:0 0 12px rgba(182,60,255,.75),1px 2px #000;box-shadow:0 0 0 1px rgba(0,0,0,.45),0 0 18px rgba(154,37,255,.24),inset 0 1px rgba(255,255,255,.12)}
#managerActionMenu.open #managerActionList button:after{content:"";justify-self:center;width:16px;height:16px;border:solid #b63cff;border-width:0 5px 5px 0;transform:rotate(-45deg);filter:drop-shadow(0 0 8px rgba(182,60,255,.8))}
#managerActionMenu.open #managerActionList button:hover,#managerActionMenu.open #managerActionList button:focus-visible{border-color:#d875ff!important;background:linear-gradient(90deg,rgba(58,10,116,.98),rgba(20,4,46,.99) 54%,rgba(10,1,26,.99))!important;box-shadow:0 0 0 1px rgba(216,117,255,.3),0 0 24px rgba(154,37,255,.62),inset 0 1px rgba(255,255,255,.16)!important}
#managerActionMenu.open #managerActionList button:disabled{opacity:.42;filter:grayscale(.25)}
#managerActionMenu.open #managerLeagueOption{--manager-menu-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23b63cff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 54h44'/%3E%3Crect x='24' y='20' width='16' height='34'/%3E%3Crect x='8' y='32' width='16' height='22'/%3E%3Crect x='40' y='38' width='16' height='16'/%3E%3Cpath d='M32 8l3 7 7 1-5 5 1 7-6-3-6 3 1-7-5-5 7-1z'/%3E%3C/svg%3E")}
#managerActionMenu.open #managerCreateOption{--manager-menu-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23b63cff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='24' cy='24' r='8'/%3E%3Cpath d='M10 54c2-12 8-18 14-18 6 0 11 4 14 12'/%3E%3Cpath d='M48 18v22M37 29h22'/%3E%3C/svg%3E")}
#managerActionMenu.open #managerTopScorersOption{--manager-menu-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23b63cff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 41c10 3 23 3 34 0l9 9H18c-5 0-8-3-8-9z'/%3E%3Cpath d='M18 27l8 9 18 5'/%3E%3Ccircle cx='48' cy='27' r='8'/%3E%3Cpath d='M48 19v16M40 27h16' opacity='.45'/%3E%3C/svg%3E")}
#managerActionMenu.open #managerDivisionsOption{--manager-menu-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23b63cff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M32 8l20 8v14c0 13-8 22-20 28-12-6-20-15-20-28V16z'/%3E%3Cpath d='M20 29h24M24 41h16M25 20h14'/%3E%3C/svg%3E")}
#managerActionMenu.open #managerCupsOption{--manager-menu-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23b63cff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 12h24v10c0 11-5 18-12 18s-12-7-12-18z'/%3E%3Cpath d='M20 18h-8c0 8 4 14 10 15M44 18h8c0 8-4 14-10 15M32 40v10M22 54h20'/%3E%3C/svg%3E")}
#managerActionMenu.open #managerReportsOption{--manager-menu-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23b63cff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 12h24l4 6v38H16V18z'/%3E%3Cpath d='M25 24h18M25 34h18M25 44h11M26 12h12'/%3E%3C/svg%3E")}
#managerActionMenu.open #managerChatOption{--manager-menu-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23b63cff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 16h44v28H26L14 54V44h-4z'/%3E%3Cpath d='M20 28h24M20 36h16'/%3E%3C/svg%3E")}
#managerActionMenu.open #managerFixturesOption{--manager-menu-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23b63cff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='12' y='14' width='40' height='38' rx='4'/%3E%3Cpath d='M20 8v12M44 8v12M12 26h40M22 36h4M32 36h4M42 36h4M22 44h4M32 44h4'/%3E%3C/svg%3E")}
#managerActionMenu.open #managerEconomyOption{--manager-menu-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23b63cff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cellipse cx='27' cy='16' rx='17' ry='7'/%3E%3Cpath d='M10 16v24c0 4 8 8 17 8 6 0 11-1 14-3M44 16v14'/%3E%3Ccircle cx='45' cy='42' r='12'/%3E%3Cpath d='M45 34v16M39 38h9a4 4 0 0 1 0 8h-9'/%3E%3C/svg%3E")}
#managerActionMenu.open #managerTransfersOption{--manager-menu-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23b63cff' stroke-width='5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 22h34M34 12l10 10-10 10M54 42H20M30 32L20 42l10 10'/%3E%3C/svg%3E")}
#managerActionMenu.open #managerLineupOption{--manager-menu-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23b63cff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='32' cy='20' r='8'/%3E%3Cpath d='M18 54c2-12 10-18 14-18s12 6 14 18'/%3E%3Ccircle cx='16' cy='27' r='6'/%3E%3Ccircle cx='48' cy='27' r='6'/%3E%3Cpath d='M6 54c2-9 7-14 14-14M44 40c7 0 12 5 14 14'/%3E%3C/svg%3E")}
#managerActionMenu.open #managerTrophiesOption{--manager-menu-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23b63cff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 12h24v10c0 11-5 18-12 18s-12-7-12-18z'/%3E%3Cpath d='M20 18h-8c0 8 4 14 10 15M44 18h8c0 8-4 14-10 15M32 40v10M22 54h20M26 24h12'/%3E%3C/svg%3E")}
#managerActionMenu.open #managerStatsInfoOption{--manager-menu-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23b63cff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='32' cy='32' r='22'/%3E%3Cpath d='M32 30v14'/%3E%3Ccircle cx='32' cy='21' r='1.5' fill='%23b63cff'/%3E%3C/svg%3E")}
#managerActionMenu.open #managerOptionsOption{--manager-menu-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23b63cff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='32' cy='32' r='7'/%3E%3Cpath d='M32 8v8M32 48v8M8 32h8M48 32h8M15 15l6 6M43 43l6 6M49 15l-6 6M21 43l-6 6'/%3E%3C/svg%3E")}
#managerActionMenu.open #managerMainMenuOption{--manager-menu-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23b63cff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 31L32 12l22 19'/%3E%3Cpath d='M17 29v25h30V29'/%3E%3Cpath d='M26 54V39h12v15'/%3E%3C/svg%3E")}
#managerActionMenu.open #managerAbortOption{--manager-menu-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23b63cff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M32 8l26 46H6z'/%3E%3Cpath d='M32 24v14'/%3E%3Ccircle cx='32' cy='46' r='1.5' fill='%23b63cff'/%3E%3C/svg%3E")}
.manager-turn-alerts{display:grid;gap:10px}
.manager-turn-alerts.hide{display:none!important}
#managerActionMenu.open #managerActionList .manager-turn-alerts{display:grid!important;gap:10px!important}
#managerActionMenu.open #managerActionList .manager-turn-alert{
  --manager-menu-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%2326da48' stroke-width='5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='32' cy='32' r='22'/%3E%3Cpath d='M32 18v16l11 7'/%3E%3Cpath d='M12 12l8 8M52 12l-8 8'/%3E%3C/svg%3E");
  grid-template-columns:74px minmax(0,1fr) 34px!important;
  height:auto!important;
  min-height:92px!important;
  padding:10px 14px 10px 8px!important;
  border-color:#26da48!important;
  background:linear-gradient(90deg,rgba(8,112,31,.98),rgba(13,3,32,.98) 54%,rgba(7,1,20,.98))!important;
  font-size:18px!important;
  line-height:1.08!important;
  letter-spacing:.04em!important;
  white-space:normal!important;
  overflow-wrap:anywhere;
  word-break:normal;
  box-shadow:0 0 0 1px rgba(38,218,72,.28),0 0 24px rgba(38,218,72,.52),inset 0 1px rgba(255,255,255,.18)!important
}

@media(max-aspect-ratio:4/5){
  #managerActionMenu.open #managerActionList{grid-auto-rows:minmax(62px,max-content)!important;gap:8px!important;padding:12px 10px 14px!important}
  #managerActionMenu.open #managerActionList button{grid-template-columns:68px minmax(0,1fr) 34px!important;gap:10px!important;height:62px!important;min-height:62px!important;padding:0 10px 0 8px!important;font-size:18px!important;letter-spacing:.09em}
  #managerActionMenu.open #managerActionList button:before{width:50px;height:48px;background-size:32px 32px,auto;font-size:17px}
  #managerActionMenu.open #managerActionList button:after{width:12px;height:12px;border-width:0 4px 4px 0}
  #managerActionMenu.open #managerActionList .manager-turn-alert{grid-template-columns:54px minmax(0,1fr) 26px!important;min-height:88px!important;padding:8px 8px 8px 6px!important;font-size:13px!important;line-height:1.12!important;letter-spacing:.03em!important}
}

/* Squad form dots below player cards */
#managerTeamPage .formation-player{overflow:visible!important}

.manager-staff-box{display:grid;gap:8px;border:1px solid rgba(255,221,69,.26);background:rgba(5,2,10,.52);padding:8px;text-shadow:none}
.manager-staff-head{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#fff}
.manager-staff-head b{font-family:Impact,"Arial Black",sans-serif;color:#ffdd45;text-shadow:1px 2px #000}
.manager-staff-head span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:11px/1.15 Arial,sans-serif;color:#d8cdf5}
.manager-staff-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(190px,100%),1fr));gap:6px;max-height:min(280px,34dvh);overflow:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.manager-staff-grid::-webkit-scrollbar{width:0;height:0;display:none}
.manager-staff-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;align-items:center;border:1px solid rgba(255,255,255,.16);background:rgba(12,5,24,.7);padding:7px}
.manager-staff-card.hired{border-color:rgba(38,218,72,.72);background:rgba(8,112,31,.34)}
.manager-staff-card.locked{opacity:.62;background:rgba(0,0,0,.28)}
.manager-staff-card b{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#fff;font:15px/1 "Rajdhani","Arial Narrow",Arial,sans-serif;text-shadow:1px 2px #000}
.manager-staff-card small{display:block;margin-top:2px;color:#cfc1ee;font:10px/1.1 Arial,sans-serif}
.manager-staff-card button{height:30px;min-width:74px;padding:0 8px;font-size:11px}
.manager-scout-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(120px,100%),1fr));gap:7px;align-items:end;overflow:visible}
.manager-scout-form label{display:grid;gap:3px;color:#d8cdf5;font:10px/1.1 Arial,sans-serif;text-align:left}
.manager-scout-form input,.manager-scout-form select{width:100%;min-width:0;height:32px;border:1px solid rgba(255,255,255,.2);background:rgba(255,255,255,.94);color:#111;padding:0 7px;font:700 12px/1 Arial,sans-serif}
.manager-scout-dropdown{position:relative;z-index:1}
.manager-scout-dropdown.open{z-index:50}
.manager-scout-dropdown input[type="hidden"]{display:none}
.manager-scout-drop-button{position:relative;width:100%;height:32px;min-width:0;padding:0 28px 0 8px;border:1px solid rgba(255,221,69,.55);border-radius:4px;background:linear-gradient(180deg,rgba(60,22,104,.96),rgba(18,6,34,.98));box-shadow:inset 0 1px rgba(255,255,255,.12),0 0 12px rgba(154,37,255,.14);text-align:left}
.manager-scout-drop-button b{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#fff;font:900 12px/1 "Rajdhani","Arial Narrow",Arial,sans-serif;text-shadow:1px 2px #000}
.manager-scout-drop-button:after{content:"";position:absolute;right:10px;top:50%;width:0;height:0;transform:translateY(-35%);border-left:5px solid transparent;border-right:5px solid transparent;border-top:7px solid #ffdd45}
.manager-scout-dropdown.open .manager-scout-drop-button{border-color:#ffdd45;background:rgba(88,38,145,.96)}
.manager-scout-drop-list{position:absolute;left:0;right:0;top:calc(100% + 4px);z-index:60;display:grid;gap:4px;max-height:188px;overflow:auto;padding:6px;border:1px solid #ffdd45;border-radius:5px;background:rgba(9,0,18,.98);box-shadow:0 14px 28px rgba(0,0,0,.62),inset 0 1px rgba(255,255,255,.12);scrollbar-width:none}
.manager-scout-drop-list::-webkit-scrollbar{width:0;height:0}
.manager-scout-drop-option{height:28px;min-width:0;padding:0 8px;border:1px solid rgba(255,255,255,.12);border-radius:4px;background:rgba(18,6,34,.82);color:#fff;font:900 11px/1 "Rajdhani","Arial Narrow",Arial,sans-serif;text-align:left;text-shadow:1px 2px #000}
.manager-scout-drop-option.active,.manager-scout-drop-option:hover,.manager-scout-drop-option:focus-visible{border-color:#ffdd45;background:rgba(88,38,145,.94);color:#ffdd45}
.manager-scout-form .manager-scout-check{display:flex;align-items:center;gap:7px;height:32px}
.manager-scout-form .manager-scout-check.wide{grid-column:span 2;min-width:0}
.manager-scout-form .manager-scout-check input{width:18px;height:18px}
.manager-scout-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.manager-scout-actions button{min-height:34px}
.manager-scout-results{display:grid;gap:6px;max-height:min(360px,42dvh);overflow:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.manager-scout-results::-webkit-scrollbar{width:0;height:0;display:none}
.manager-scout-result{display:grid;grid-template-columns:auto minmax(0,1fr) minmax(86px,auto);gap:7px;align-items:center;border:1px solid rgba(255,255,255,.16);background:rgba(12,5,24,.72);padding:7px;text-align:left;cursor:pointer;transition:border-color .12s,background .12s}
.manager-scout-result:hover,.manager-scout-result:focus-visible{outline:0;border-color:#ffdd45;background:rgba(25,8,48,.9)}
.manager-scout-result b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#fff;font:15px/1 "Rajdhani","Arial Narrow",Arial,sans-serif;text-shadow:1px 2px #000}
.manager-scout-result small{color:#cfc1ee;font:10px/1.15 Arial,sans-serif}
.manager-scout-result em{font-style:normal;color:#ffdd45;font:900 13px/1 Arial,sans-serif}
.manager-scout-result button{height:32px;min-width:86px;padding:0 7px;border-color:rgba(255,221,69,.62);font-size:10px;line-height:.9}
.team-stat small{color:#26da48;font-weight:900}

#managerChatPage:not(.hide){display:grid;grid-template-rows:auto minmax(0,1fr) auto auto auto;gap:8px;height:100%;min-height:0;overflow:hidden!important}
.manager-chat-list{display:grid;align-content:start;gap:7px;min-height:0;overflow:auto!important;padding:2px;scrollbar-width:none;-webkit-overflow-scrolling:touch;touch-action:pan-y}
.manager-chat-list::-webkit-scrollbar{width:0;height:0}
.manager-chat-row{display:grid;gap:4px;border:1px solid rgba(255,255,255,.14);background:rgba(10,4,22,.78);padding:8px;text-align:left}
.manager-chat-row.mine{border-color:rgba(38,218,72,.5);background:rgba(6,54,19,.48)}
.manager-chat-meta{display:flex;align-items:center;gap:6px;min-width:0;color:#d8cdf5;font:900 10px/1 Arial,sans-serif;text-transform:uppercase}
.manager-chat-meta .team-flag{flex:0 0 auto;width:22px;height:15px}
.manager-chat-meta b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#ffdd45}
.manager-chat-meta span{margin-left:auto;color:#b6aacb;font-weight:700;text-transform:none}
.manager-chat-text{color:#fff;font:14px/1.25 Arial,sans-serif;overflow-wrap:anywhere}
.manager-chat-image{display:block;width:100%;max-width:360px;margin-top:3px;border:1px solid rgba(255,221,69,.36);border-radius:5px;overflow:hidden;background:rgba(0,0,0,.42);box-shadow:0 0 12px rgba(0,0,0,.36)}
.manager-chat-image img{display:block;width:100%;max-height:260px;object-fit:contain;background:#05020b}
.manager-chat-form{display:grid;grid-template-columns:1fr;gap:7px}
.manager-chat-form input{min-width:0;height:38px;border:2px solid rgba(117,54,210,.8);border-radius:5px;background:#fff;color:#111;padding:0 10px;font:900 15px/1 Arial,sans-serif}
.manager-chat-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.manager-chat-form button{height:38px;min-width:0}
.manager-chat-users{display:grid;gap:6px;max-height:min(240px,30dvh);overflow:auto;padding:7px;border:1px solid rgba(255,221,69,.36);background:rgba(7,2,16,.92);scrollbar-width:none;-webkit-overflow-scrolling:touch}
.manager-chat-users::-webkit-scrollbar{width:0;height:0}
.manager-chat-user{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center;min-height:36px;padding:6px 8px;text-align:left;border-color:rgba(117,54,210,.72);background:rgba(22,7,42,.86);font-size:12px}
.manager-chat-user b{display:flex;align-items:center;gap:6px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#fff}
.manager-chat-user small{display:block;color:#cfc1ee;font:10px/1.1 Arial,sans-serif;text-shadow:none}
.manager-chat-user .manager-chat-unread{display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:#26da48;color:#07150a;font:900 12px/1 Arial,sans-serif;text-shadow:none}
.manager-chat-user.active{border-color:#ffdd45;background:rgba(57,29,102,.92)}

#managerCreate{
  align-content:center;
  grid-auto-rows:max-content;
}
#managerCreate .manager-title,
#managerCreate #managerCount,
#managerCreate #managerPicked{
  display:none!important;
}
#managerCreate #managerUsers{
  max-height:min(260px,36dvh);
  overflow:auto;
  align-content:start;
}
#managerCreate .manager-user{
  display:grid;
  align-content:center;
  min-height:46px!important;
  height:46px!important;
  padding:6px 12px!important;
  border-color:#7536d2;
  background:rgba(22,7,42,.86);
}
#managerCreate .manager-user:hover,
#managerCreate .manager-user:focus-visible{
  border-color:#b63cff;
  background:rgba(49,17,88,.94);
}
#managerCreate .manager-user-selected{
  border-color:#b63cff!important;
  background:linear-gradient(180deg,rgba(103,24,186,.96),rgba(54,12,103,.98))!important;
  box-shadow:0 0 0 2px rgba(182,60,255,.22),0 0 16px rgba(182,60,255,.28),inset 0 1px rgba(255,255,255,.22)!important;
}
#managerCreate .manager-user-own{
  border-color:rgba(117,54,210,.72)!important;
  background:rgba(22,7,42,.86)!important;
  box-shadow:inset 0 1px rgba(255,255,255,.16),inset 0 -2px rgba(0,0,0,.45)!important;
}
#managerCreate .manager-user-own:hover,
#managerCreate .manager-user-own:focus-visible{
  border-color:#b63cff!important;
  background:rgba(49,17,88,.94)!important;
}
#managerCreate .manager-user-row{
  display:grid;
  grid-template-columns:1fr;
  gap:6px;
  align-items:stretch;
}
#managerCreate .manager-user-row.with-team-choice{
  grid-template-columns:minmax(0,1fr) minmax(150px,210px);
}
#managerCreate .manager-user-row.off{
  opacity:.48;
}
#managerCreate .manager-user-row.conflict .manager-user{
  border-color:#ff3d55!important;
  background:linear-gradient(180deg,rgba(148,19,48,.96),rgba(69,9,32,.98))!important;
  box-shadow:0 0 0 2px rgba(255,61,85,.24),0 0 16px rgba(255,61,85,.25)!important;
}
#managerCreate.manager-create-solo{
  align-content:center;
}
#managerCreate.manager-create-solo #managerUsers{
  max-height:min(430px,58dvh);
  display:grid;
  gap:6px;
  overflow:auto;
  padding-right:2px;
}
.manager-solo-team-list{
  display:grid;
  gap:6px;
}
.manager-solo-team{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:8px;
  width:100%;
  min-height:42px!important;
  height:42px!important;
  padding:5px 10px!important;
  border-color:#7536d2!important;
  border-radius:6px!important;
  background:rgba(22,7,42,.86)!important;
  color:#fff!important;
  text-align:left!important;
  font:900 13px/1 "Rajdhani","Arial Narrow",Arial,sans-serif!important;
  text-shadow:1px 2px #000!important;
  box-shadow:inset 0 1px rgba(255,255,255,.16),inset 0 -2px rgba(0,0,0,.45)!important;
}
.manager-solo-team:hover,
.manager-solo-team:focus-visible{
  border-color:#b63cff!important;
  background:rgba(49,17,88,.94)!important;
}
.manager-solo-team.selected{
  border-color:#26da48!important;
  background:linear-gradient(180deg,rgba(8,112,31,.95),rgba(4,42,16,.98))!important;
  box-shadow:0 0 0 2px rgba(38,218,72,.2),0 0 16px rgba(38,218,72,.25),inset 0 1px rgba(255,255,255,.2)!important;
}
.manager-solo-team b{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.manager-solo-team .team-flag,
.manager-solo-team .team-logo{
  width:22px;
  height:22px;
  flex:0 0 auto;
}
#managerCreate #cancelManagerCreate{
  display:block;
  height:34px!important;
  min-height:34px!important;
  border-color:#7536d2!important;
  border-radius:6px!important;
  background:linear-gradient(180deg,rgba(37,11,72,.94),rgba(10,3,24,.98))!important;
  color:#fff!important;
  font:900 13px/1 "Rajdhani","Arial Narrow",Arial,sans-serif!important;
  letter-spacing:.08em!important;
  text-align:center!important;
  text-shadow:1px 2px #000!important;
  box-shadow:inset 0 1px rgba(255,255,255,.16),inset 0 -2px rgba(0,0,0,.45)!important;
}
#managerCreate #cancelManagerCreate:hover,
#managerCreate #cancelManagerCreate:focus-visible{
  border-color:#b63cff!important;
  background:linear-gradient(180deg,rgba(58,10,116,.98),rgba(10,1,26,.99))!important;
}
.manager-team-choice{
  display:grid;
  gap:3px;
  min-width:0;
  font:900 10px/1 Arial,sans-serif;
  color:#ffdd45;
  text-shadow:none;
}
.manager-team-picker{
  display:grid;
  gap:4px;
  min-width:0;
}
.manager-team-picker.open{
  position:relative;
  z-index:70;
}
.manager-team-button{
  position:relative;
  display:grid;
  grid-template-columns:auto minmax(0,1fr) 12px;
  align-items:center;
  gap:6px;
  width:100%;
  height:30px!important;
  min-height:30px!important;
  padding:0 7px!important;
  border-color:rgba(182,60,255,.72)!important;
  border-radius:6px!important;
  background:linear-gradient(180deg,rgba(37,11,72,.94),rgba(10,3,24,.98))!important;
  color:#fff!important;
  font:900 11px/1 Arial,sans-serif!important;
  text-align:left!important;
  text-shadow:1px 2px #000!important;
  box-shadow:inset 0 1px rgba(255,255,255,.18),inset 0 -2px rgba(0,0,0,.48)!important;
}
.manager-team-button:after{
  content:"";
  justify-self:end;
  border-left:4px solid transparent;
  border-right:4px solid transparent;
  border-top:6px solid #ffdd45;
}
.manager-team-button .team-flag{
  width:18px;
  height:13px;
}
.manager-team-button span{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.manager-team-menu{
  display:grid;
  gap:4px;
  max-height:min(248px,38dvh);
  overflow:auto;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
  touch-action:pan-y;
  padding:5px;
  border:2px solid #7536d2;
  border-radius:6px;
  background:rgba(10,3,20,.98);
  box-shadow:0 12px 28px rgba(0,0,0,.7),inset 0 1px rgba(255,255,255,.1);
  scrollbar-width:none;
}
.manager-team-menu.open{
  position:fixed;
  z-index:90;
}
.manager-team-menu::-webkit-scrollbar{width:0;height:0}
.manager-team-menu .team-option{
  height:30px;
  min-height:30px;
  border-radius:4px;
}
.manager-team-menu .team-option.green{
  border-color:#26da48;
  background:rgba(8,112,31,.86);
}
@media (max-width:620px){
  #managerCreate .manager-user-row{grid-template-columns:1fr}
  #managerCreate .manager-user-row.with-team-choice{grid-template-columns:1fr}
}
.manager-own-stat b{color:#ffdd45;text-align:center}

#managerScorersPage>.manager-title{display:none}
#managerScorersList{padding:1px 2px 8px}
.manager-scorers-board{display:grid;gap:10px;min-width:0;text-shadow:none}
.manager-scorers-tabs{grid-template-columns:repeat(2,minmax(0,1fr));position:sticky;top:0;z-index:2;padding-bottom:3px;background:#090012}
.manager-scorers-tabs-single{grid-template-columns:1fr}
.manager-scorers-tabs button{height:34px;border-radius:6px;font-size:13px}
.manager-scorers-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,.95fr);gap:10px;align-items:stretch;overflow:hidden;border:1px solid rgba(255,255,255,.14);border-radius:8px;background:linear-gradient(135deg,rgba(9,18,14,.98),rgba(16,35,26,.96));box-shadow:inset 0 1px rgba(255,255,255,.08),0 10px 28px rgba(0,0,0,.32)}
.manager-scorers-hero-copy{display:grid;align-content:center;gap:5px;min-width:0;padding:13px 14px}
.manager-scorers-hero-copy span,.manager-scorers-hero.empty span{color:#26da48;font:900 10px/1 Arial,sans-serif;text-transform:uppercase}
.manager-scorers-hero-copy b,.manager-scorers-hero.empty b{color:#fff;font:900 28px/1 "Rajdhani","Arial Narrow",Arial,sans-serif;text-shadow:1px 2px #000}
.manager-scorers-hero-copy small,.manager-scorers-hero.empty small{color:#cfd9d2;font:11px/1.15 Arial,sans-serif}
.manager-scorers-hero.empty{grid-template-columns:1fr;padding:14px;text-align:center}
.manager-scorers-leader{display:grid;grid-template-columns:auto 42px minmax(0,1fr) auto;grid-template-rows:auto auto;gap:6px 9px;align-items:center;min-width:0;padding:10px 12px;border-left:1px solid rgba(255,221,69,.26);background:linear-gradient(180deg,rgba(255,221,69,.15),rgba(2,8,6,.34))}
.manager-scorers-number{display:grid;place-items:center;width:38px;height:38px;border:1px solid rgba(255,221,69,.72);border-radius:6px;background:rgba(255,221,69,.12);color:#ffdd45;font:900 18px/1 "Rajdhani","Arial Narrow",Arial,sans-serif;text-shadow:1px 2px #000}
.manager-scorers-leader i,.manager-stat-player i{display:grid;place-items:center;width:40px;height:40px;border:1px solid rgba(255,255,255,.18);border-radius:50%;background:linear-gradient(180deg,#f3f0ff,#b8c9d4);color:#09120e;font:900 13px/1 Arial,sans-serif;font-style:normal;text-shadow:none}
.manager-scorers-leader b{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#fff;font:900 19px/1 "Rajdhani","Arial Narrow",Arial,sans-serif;text-shadow:1px 2px #000}
.manager-scorers-leader small{display:flex;align-items:center;gap:5px;min-width:0;margin-top:2px;color:#dfe7e2;font:11px/1 Arial,sans-serif}
.manager-scorers-leader small .team-flag{width:20px;height:14px}
.manager-scorers-leader strong{display:grid;justify-items:center;min-width:54px;color:#ffdd45;font:900 30px/.85 "Rajdhani","Arial Narrow",Arial,sans-serif;text-shadow:1px 2px #000}
.manager-scorers-leader strong span{margin-top:3px;color:#fff;font:900 9px/1 Arial,sans-serif;text-shadow:none}
.manager-scorers-leader em{grid-column:3/-1;color:#cfd9d2;font:900 10px/1 Arial,sans-serif;font-style:normal;text-transform:uppercase}
.manager-stat-section{display:grid;gap:7px;min-width:0}
.manager-stat-heading{display:flex;align-items:end;justify-content:space-between;gap:10px;padding:0 2px}
.manager-stat-heading b{color:#ffdd45;font:900 18px/1 "Rajdhani","Arial Narrow",Arial,sans-serif;text-shadow:1px 2px #000}
.manager-stat-heading span{color:#cfd9d2;font:900 10px/1 Arial,sans-serif;text-transform:uppercase}
.manager-stat-table{display:grid;gap:4px;min-width:0}
.manager-stat-row{display:grid;grid-template-columns:36px minmax(150px,1.25fr) minmax(120px,.8fr) 52px 42px 42px;gap:7px;align-items:center;min-height:46px;padding:5px 7px;border:1px solid rgba(255,255,255,.1);border-radius:7px;background:rgba(7,12,11,.82);box-shadow:inset 0 1px rgba(255,255,255,.05)}
.manager-stat-row.head{min-height:26px;border-color:rgba(255,221,69,.28);background:rgba(255,221,69,.08);color:#cfd9d2;font:900 10px/1 Arial,sans-serif;text-transform:uppercase}
.manager-stat-row.head b,.manager-stat-row.head span{text-align:center}
.manager-stat-row.head span:nth-child(2),.manager-stat-row.head span:nth-child(3){text-align:left}
.manager-stat-row.first{border-color:rgba(255,221,69,.65);background:linear-gradient(90deg,rgba(255,221,69,.18),rgba(7,12,11,.88))}
.manager-stat-row.second{border-color:rgba(206,220,230,.44)}
.manager-stat-row.third{border-color:rgba(210,122,45,.52)}
.manager-stat-rank{display:grid;place-items:center;width:28px;height:28px;border-radius:5px;background:rgba(255,255,255,.08);color:#fff;font:900 14px/1 "Rajdhani","Arial Narrow",Arial,sans-serif}
.manager-stat-row.first .manager-stat-rank{background:#ffdd45;color:#111;text-shadow:none}
.manager-stat-row.second .manager-stat-rank{background:#cfd9e6;color:#111;text-shadow:none}
.manager-stat-row.third .manager-stat-rank{background:#c47a2c;color:#111;text-shadow:none}
.manager-stat-player{display:grid;grid-template-columns:40px minmax(0,1fr);gap:8px;align-items:center;min-width:0}
.manager-stat-player b{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#fff;font:900 15px/1.05 "Rajdhani","Arial Narrow",Arial,sans-serif;text-shadow:1px 2px #000}
.manager-stat-player small{display:block;margin-top:2px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#aebbb4;font:10px/1 Arial,sans-serif}
.manager-stat-club{display:flex;align-items:center;gap:6px;min-width:0;color:#dfe7e2;font:900 11px/1 Arial,sans-serif}
.manager-stat-club .team-flag{width:22px;height:15px}
.manager-stat-club em{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-style:normal}
.manager-stat-main{display:grid;place-items:center;min-height:34px;border-radius:6px;background:rgba(255,221,69,.13);color:#ffdd45;font:900 24px/.9 "Rajdhani","Arial Narrow",Arial,sans-serif;text-shadow:1px 2px #000}
.manager-stat-row>span:nth-last-child(-n+2){text-align:center;color:#fff;font:900 15px/1 "Rajdhani","Arial Narrow",Arial,sans-serif}
.manager-stat-empty{padding:12px;border:1px solid rgba(255,255,255,.1);border-radius:7px;background:rgba(7,12,11,.72);color:#cfd9d2;text-align:center;font:12px/1.2 Arial,sans-serif}

@media(max-aspect-ratio:4/5){
  .manager-scorers-board{gap:8px}
  #managerDivisionLevels{grid-template-columns:repeat(3,minmax(0,1fr))}
  #managerDivisionLevels button{height:32px;font-size:8.5px;line-height:.88;padding:0 3px}
  .manager-scorers-tabs button{height:31px;font-size:11px}
  .manager-scorers-hero{grid-template-columns:1fr;gap:0;border-radius:7px}
  .manager-scorers-hero-copy{padding:10px 11px}
  .manager-scorers-hero-copy b,.manager-scorers-hero.empty b{font-size:21px}
  .manager-scorers-leader{grid-template-columns:32px 34px minmax(0,1fr) 46px;padding:8px;border-left:0;border-top:1px solid rgba(255,221,69,.26)}
  .manager-scorers-number{width:30px;height:30px;font-size:14px}
  .manager-scorers-leader i,.manager-stat-player i{width:32px;height:32px;font-size:11px}
  .manager-scorers-leader b{font-size:15px}
  .manager-scorers-leader strong{min-width:42px;font-size:24px}
  .manager-scorers-leader em{font-size:9px}
  .manager-stat-heading b{font-size:15px}
  .manager-stat-heading span{font-size:9px}
  .manager-stat-row{grid-template-columns:26px minmax(0,1fr) 28px 38px 30px 30px;gap:4px;min-height:42px;padding:4px;border-radius:6px}
  .manager-stat-row.head{min-height:23px;font-size:8px}
  .manager-stat-row.head span:nth-child(3){font-size:0}
  .manager-stat-row.head span:nth-child(3):before{content:"CLUB";font-size:8px}
  .manager-stat-rank{width:23px;height:23px;font-size:11px}
  .manager-stat-player{grid-template-columns:32px minmax(0,1fr);gap:5px}
  .manager-stat-player b{font-size:12px}
  .manager-stat-player small{font-size:8px}
  .manager-stat-club{justify-content:center}
  .manager-stat-club .team-flag{width:18px;height:12px}
  .manager-stat-club em{display:none}
  .manager-stat-main{min-height:30px;font-size:19px}
  .manager-stat-row>span:nth-last-child(-n+2){font-size:12px}
  .manager-staff-head{display:grid;grid-template-columns:1fr}
  .manager-staff-grid{grid-template-columns:1fr}
  .manager-staff-card{grid-template-columns:1fr auto}
  .manager-chat-meta{font-size:9px}
  .manager-chat-text{font-size:13px}
}
#managerTeamPage .formation-form-dot{left:50%!important;right:auto!important;top:auto!important;bottom:-13px!important;transform:translateX(-50%)!important;width:15px!important;height:15px!important;min-width:15px!important;min-height:15px!important;max-width:15px!important;max-height:15px!important;margin:0!important;z-index:9!important}
#managerTeamPage .manager-bench-chip{position:relative;min-height:52px!important;height:auto!important;overflow:hidden}
#managerTeamPage .manager-bench-chip .daily-form-dot{position:static!important;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;transform:none!important;margin:0!important;z-index:auto!important}
#managerTeamPage .bench-chip-rating{display:grid!important;grid-template-columns:auto minmax(0,1fr);gap:1px 4px;align-items:center;min-width:0;color:#ffdd45!important;line-height:1!important}
#managerTeamPage .bench-chip-rating>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#managerTeamPage .bench-chip-rating .bench-form-ovr{grid-column:2;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-style:normal;font-size:9px;line-height:1}
#managerTeamPage .bench-form-ovr.up{color:#26da48}
#managerTeamPage .bench-form-ovr.down{color:#ff6262}
@media(max-aspect-ratio:4/5){
  #managerTeamPage .formation-form-dot{bottom:-12px!important;width:14px!important;height:14px!important;min-width:14px!important;min-height:14px!important}
  #managerTeamPage .manager-bench-chip{min-height:48px!important;height:auto!important}
  #managerTeamPage .bench-chip-rating .bench-form-ovr{font-size:8.5px}
}

/* Keep the bench below the pitch. The pitch may be taller than the viewport, so the squad list scrolls. */
#managerTeamPage #managerTeamSquadList{height:100%!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;scrollbar-width:none!important;-ms-overflow-style:none!important;-webkit-overflow-scrolling:touch;touch-action:pan-y}
#managerTeamPage #managerTeamSquadList::-webkit-scrollbar{width:0!important;height:0!important;display:none!important}
#managerTeamPage .manager-squad-layout{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:8px!important;height:auto!important;min-height:0!important}
#managerTeamPage .manager-formation-pane{display:block!important;flex:0 0 auto!important;height:auto!important;min-height:0!important;overflow:visible!important}
#managerTeamPage .team-formation{flex:0 0 auto!important;margin-bottom:0!important}
#managerTeamPage .manager-roster-pane{position:relative!important;z-index:auto!important;display:block!important;flex:0 0 auto!important;align-content:start!important;width:100%!important;max-height:none!important;overflow:visible!important;background:transparent!important;margin-top:8px!important}
#managerTeamPage .manager-bench-tray{display:block!important;width:100%!important;min-height:0!important}
#managerTeamPage .manager-bench-strip{display:grid!important;width:100%!important;gap:6px!important;padding:0 0 8px!important;overflow:visible!important}
@media(max-aspect-ratio:4/5){
  #managerTeamPage .manager-squad-layout{gap:8px!important}
  #managerTeamPage .manager-roster-pane{margin-top:8px!important}
  #managerTeamPage .manager-bench-strip{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important;padding-bottom:calc(12px + env(safe-area-inset-bottom,0px))!important}
}

/* Desktop manager menu must scroll with mouse/trackpad. */
@media(min-aspect-ratio:4/5){
  #managerActionMenu.open{overflow:hidden!important}
  #managerActionMenu.open #managerActionList{
    height:auto!important;
    max-height:calc(100dvh - 150px)!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    overscroll-behavior:contain;
    scrollbar-width:thin!important;
    scrollbar-color:#9a25ff rgba(9,0,18,.86)!important;
    padding-right:18px!important;
  }
  #managerActionMenu.open #managerActionList::-webkit-scrollbar{width:10px!important;height:10px!important}
  #managerActionMenu.open #managerActionList::-webkit-scrollbar-track{background:rgba(9,0,18,.86)}
  #managerActionMenu.open #managerActionList::-webkit-scrollbar-thumb{background:#9a25ff;border:2px solid rgba(9,0,18,.86);border-radius:999px}
}

/* Fixture odds: show only percentage, without framed pills. */
.fixture-odds-line .odds-percent{color:#fff!important;font:900 11px/1 "Rajdhani","Arial Narrow",Arial,sans-serif!important;font-style:normal!important;text-shadow:1px 1px #000!important}
.manager-last .fixture-odds-line span:not(:first-child),.manager-round .fixture-odds-line span:not(:first-child){border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;padding:1px 0!important}
@media(max-aspect-ratio:4/5){
  .fixture-odds-line .odds-percent{font-size:9.5px!important}
}

/* Desktop squad page: keep the pitch below the action buttons. */
@media(min-aspect-ratio:4/5){
  #managerTeamPage .manager-squad-top-menu{flex:0 0 auto!important;margin-bottom:8px!important}
  #managerTeamPage .manager-squad-top-menu + .manager-formation-pane{padding-top:0!important}
}

/* Large round waiting panel. */
.manager-playoff.manager-waiting-card{
  position:relative;
  display:grid!important;
  grid-template-rows:auto auto auto auto;
  align-content:center;
  justify-items:center;
  gap:clamp(5px,.75vw,11px);
  min-height:clamp(220px,22vw,310px);
  overflow:hidden!important;
  padding:clamp(18px,2vw,34px) clamp(18px,5vw,90px)!important;
  border:3px solid #9a25ff!important;
  border-radius:32px!important;
  background:linear-gradient(180deg,rgba(6,1,16,.98),rgba(12,2,28,.98) 50%,rgba(5,1,14,.98))!important;
  color:#fff!important;
  text-align:center!important;
  font-family:"Rajdhani","Arial Narrow",Arial,sans-serif!important;
  text-shadow:2px 3px #000!important;
  box-shadow:none!important;
}
.manager-playoff.manager-waiting-card:before{
  display:none;
}
.manager-playoff.manager-waiting-card:after{
  display:none;
}
.manager-waiting-title,.manager-waiting-round,.manager-waiting-ready,.manager-waiting-for{position:relative;z-index:1}
.manager-waiting-title{
  display:grid;
  grid-template-columns:minmax(28px,1fr) auto minmax(28px,1fr);
  align-items:center;
  gap:clamp(16px,2.4vw,48px);
  width:min(980px,100%);
  min-width:0;
  color:#ffdd00!important;
  font:900 clamp(32px,4.2vw,64px)/.95 "Rajdhani","Arial Narrow",Arial,sans-serif!important;
  letter-spacing:.055em;
  text-transform:uppercase;
  text-shadow:2px 4px #000!important;
}
.manager-waiting-title:before,.manager-waiting-title:after{
  content:"";
  height:4px;
  background:linear-gradient(90deg,transparent,rgba(189,58,255,.98),rgba(189,58,255,.22));
  box-shadow:none;
}
.manager-waiting-title:after{transform:scaleX(-1)}
.manager-waiting-round{
  max-width:100%;
  min-width:0;
  overflow-wrap:anywhere;
  color:#fff!important;
  font:900 clamp(20px,2.6vw,38px)/1.02 "Rajdhani","Arial Narrow",Arial,sans-serif!important;
  letter-spacing:.035em;
}
.manager-waiting-round span{color:#c974ff!important;text-shadow:2px 3px #000!important}
.manager-waiting-ready{
  max-width:100%;
  min-width:0;
  overflow-wrap:anywhere;
  color:#fff!important;
  font:900 clamp(20px,2.6vw,38px)/1.02 "Rajdhani","Arial Narrow",Arial,sans-serif!important;
  letter-spacing:.04em;
}
.manager-waiting-for{
  display:grid;
  grid-template-columns:minmax(28px,1fr) minmax(0,auto) minmax(28px,1fr);
  align-items:center;
  gap:clamp(14px,2.2vw,44px);
  width:min(720px,100%);
  min-width:0;
  color:#fff!important;
  font:900 clamp(18px,2.3vw,32px)/1.05 "Rajdhani","Arial Narrow",Arial,sans-serif!important;
  letter-spacing:.025em;
}
.manager-waiting-for:before,.manager-waiting-for:after{
  content:"";
  height:3px;
  background:linear-gradient(90deg,transparent,rgba(189,58,255,.9));
  box-shadow:none;
}
.manager-waiting-for:after{transform:scaleX(-1)}
.manager-waiting-for span{min-width:0;max-width:100%;overflow-wrap:anywhere}
.manager-waiting-for strong{color:#c974ff!important;font:inherit!important;text-shadow:2px 3px #000!important}
@media(max-aspect-ratio:4/5){
  .manager-playoff.manager-waiting-card{
    min-height:186px;
    gap:5px;
    padding:16px 10px!important;
    border-width:2px!important;
    border-radius:20px!important;
    box-shadow:none!important;
  }
  .manager-waiting-title{gap:8px;font-size:clamp(22px,7vw,32px)!important;letter-spacing:.035em}
  .manager-waiting-title:before,.manager-waiting-title:after{height:3px}
  .manager-waiting-round{font-size:clamp(16px,5.1vw,22px)!important}
  .manager-waiting-ready{font-size:clamp(16px,5.1vw,22px)!important}
  .manager-waiting-for{gap:8px;font-size:clamp(15px,4.7vw,21px)!important}
  .manager-waiting-for:before,.manager-waiting-for:after{height:2px}
}

/* Loading screen image panel */
.loading-screen{
  background:#05030a!important;
}
.loading-screen:before{
  display:none!important;
}
.loading-screen .loading-card{
  position:relative;
  z-index:1;
  display:grid!important;
  gap:10px!important;
  width:min(360px,76vw)!important;
  aspect-ratio:auto!important;
  max-height:none!important;
  padding:18px 22px!important;
  border:0!important;
  background:transparent!important;
  background-image:none!important;
  filter:none!important;
  box-shadow:none!important;
}
.loading-screen .loading-card:before,
.loading-screen .loading-card:after{
  display:none!important;
  content:none!important;
  background:none!important;
  background-image:none!important;
}
.loading-screen .loading-title,
.loading-screen .loading-bar,
.loading-screen .loading-text{
  position:static!important;
  width:auto!important;
  height:auto!important;
  overflow:visible!important;
  clip:auto!important;
  clip-path:none!important;
  white-space:normal!important;
}
@media(max-aspect-ratio:4/5){
  .loading-screen .loading-card{
    width:min(360px,76vw)!important;
    max-height:42dvh;
  }
}

/* Login screen */
#auth{background:#05030a!important}
#auth:before{display:none!important}
#auth .panel.box{
  position:absolute!important;
  left:50%!important;
  top:50%!important;
  display:grid!important;
  gap:14px!important;
  width:min(46vw,560px)!important;
  min-width:0!important;
  max-width:none!important;
  padding:28px 36px!important;
  transform:translate(-50%,-50%)!important;
  border:2px solid #9a25ff!important;
  border-radius:20px!important;
  background:linear-gradient(180deg,rgba(10,3,24,.94),rgba(4,1,12,.98))!important;
  box-shadow:0 0 0 1px rgba(154,37,255,.22),0 0 24px rgba(154,37,255,.34),inset 0 0 28px rgba(154,37,255,.10)!important;
}
#auth .panel.box form{display:grid!important;gap:14px!important}
#auth .panel.box form.hide,
#auth #showLogin.hide{display:none!important}
#auth #authMsg:empty{display:none!important;min-height:0!important;margin:0!important}
#auth input{
  height:54px!important;
  padding:0 18px 0 60px!important;
  border:2px solid #9a25ff!important;
  border-radius:9px!important;
  background-color:#fff!important;
  background-repeat:no-repeat!important;
  background-position:15px center!important;
  background-size:34px 34px!important;
  color:#050407!important;
  caret-color:#050407!important;
  font:900 22px/normal "Rajdhani","Arial Narrow",Arial,sans-serif!important;
  letter-spacing:.025em!important;
  text-align:left!important;
  text-shadow:none!important;
  -webkit-text-fill-color:#050407!important;
  box-shadow:0 0 16px rgba(154,37,255,.28),inset 0 0 28px rgba(154,37,255,.08)!important;
}
#auth input[name="username"]{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%239a25ff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='8' y='7' width='48' height='50' rx='8' opacity='.22'/%3E%3Ccircle cx='32' cy='24' r='9'/%3E%3Cpath d='M17 48c3-12 11-18 15-18s12 6 15 18'/%3E%3C/svg%3E")!important;
}
#auth input[name="password"]{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%239a25ff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='8' y='7' width='48' height='50' rx='8' opacity='.22'/%3E%3Crect x='18' y='28' width='28' height='21' rx='3'/%3E%3Cpath d='M23 28v-8c0-6 4-10 9-10s9 4 9 10v8'/%3E%3Ccircle cx='32' cy='38' r='2'/%3E%3Cpath d='M32 40v4'/%3E%3C/svg%3E")!important;
}
#auth input::placeholder{color:#1c1724!important;opacity:1!important;text-shadow:none!important}
#auth input:focus{
  outline:0!important;
  border-color:#c56cff!important;
  box-shadow:0 0 0 1px rgba(197,108,255,.5),0 0 24px rgba(154,37,255,.58),inset 0 0 28px rgba(154,37,255,.12)!important;
}
#auth input:-webkit-autofill,
#auth input:-webkit-autofill:hover,
#auth input:-webkit-autofill:focus,
#auth input:autofill{
  -webkit-text-fill-color:#050407!important;
  caret-color:#050407!important;
  box-shadow:0 0 0 1000px #fff inset,0 0 16px rgba(154,37,255,.28),inset 0 0 28px rgba(154,37,255,.08)!important;
  transition:background-color 9999s ease-out 0s!important;
}
#auth button{
  height:50px!important;
  border:2px solid #9a25ff!important;
  border-radius:8px!important;
  background:linear-gradient(90deg,rgba(54,10,112,.92),rgba(96,22,190,.92),rgba(54,10,112,.92))!important;
  color:#fff!important;
  font:900 22px/1 "Rajdhani","Arial Narrow",Arial,sans-serif!important;
  letter-spacing:.10em!important;
  text-align:center!important;
  text-shadow:1px 3px #000!important;
  box-shadow:0 0 20px rgba(154,37,255,.46),inset 0 0 36px rgba(154,37,255,.22)!important;
}
#auth #showCreate,
#auth #showLogin{
  background:rgba(7,3,18,.72)!important;
  box-shadow:0 0 14px rgba(154,37,255,.3),inset 0 0 24px rgba(154,37,255,.08)!important;
}
#auth button:hover,
#auth button:focus-visible{
  outline:0!important;
  border-color:#d99bff!important;
  background:linear-gradient(90deg,rgba(70,14,145,.98),rgba(125,35,230,.98),rgba(70,14,145,.98))!important;
}
#auth #authMsg{
  min-height:14px!important;
  margin-top:-4px!important;
  color:#ffdd45!important;
  font:900 13px/1.2 "Rajdhani","Arial Narrow",Arial,sans-serif!important;
  letter-spacing:.05em;
  text-shadow:1px 2px #000!important;
}
@media(max-aspect-ratio:4/5){
  #auth .panel.box{
    width:min(82vw,300px)!important;
    padding:16px 14px!important;
    gap:10px!important;
    border-radius:16px!important;
  }
  #auth .panel.box form{gap:10px!important}
  #auth input{
    height:48px!important;
    padding:0 12px 0 48px!important;
    background-position:11px center!important;
    background-size:28px 28px!important;
    border-radius:8px!important;
    font-size:17px!important;
  }
  #auth button{
    height:44px!important;
    border-radius:8px!important;
    font-size:15px!important;
    letter-spacing:.10em!important;
  }
}

/* Manager home: keep waiting text and main actions clear of panel/menu edges. */
.manager-playoff.manager-waiting-card{
  overflow:hidden!important;
  margin-bottom:4px!important;
}
.manager-main-actions{
  position:relative;
  z-index:4;
  margin:2px 0 12px!important;
}
#managerSeason{
  padding-bottom:calc(18px + env(safe-area-inset-bottom,0px))!important;
}
@media(min-aspect-ratio:4/5){
  #manager .manager-panel{
    padding-bottom:14px!important;
  }
}
@media(max-aspect-ratio:4/5){
  .manager-main-actions{
    margin-bottom:10px!important;
  }
  .manager-loan-form{
    grid-template-columns:1fr;
  }
  .manager-loan-form button{
    width:100%;
  }
}

/* TouchLines sandbox viewer */
.touchlines-page{
  display:grid;
  grid-template-rows:auto auto minmax(236px,1fr) auto auto auto minmax(158px,28dvh);
  gap:8px;
  width:100%;
  height:100%;
  min-height:0;
}
.touchlines-head{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
  grid-template-areas:"home score away" "clock clock clock" "type type type";
  align-items:center;
  gap:6px 12px;
  min-height:58px;
  padding:7px 9px;
  border:2px solid #9a25ff;
  border-radius:6px;
  background:linear-gradient(180deg,rgba(31,7,68,.98),rgba(6,1,18,.98));
  box-shadow:inset 0 1px rgba(255,255,255,.14),0 0 14px rgba(154,37,255,.26);
}
.touchlines-head span{
  grid-area:home;
  display:flex;
  align-items:center;
  gap:7px;
  min-width:0;
  color:#fff;
  font:900 16px/1 "Rajdhani","Arial Narrow",Arial,sans-serif;
  text-shadow:1px 2px #000;
}
.touchlines-head span.away{
  grid-area:away;
  justify-content:flex-end;
  text-align:right;
}
.touchlines-head b{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.touchlines-head-team-copy{
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width:0;
}
.touchlines-head span.away .touchlines-head-team-copy{
  align-items:flex-end;
}
.touchlines-head-team-copy small{
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#9ff0ff;
  font:900 9px/1 "Rajdhani","Arial Narrow",Arial,sans-serif;
  letter-spacing:.08em;
  text-transform:uppercase;
  text-shadow:1px 2px #000;
}
.touchlines-head strong{
  grid-area:score;
  color:#ffdd00;
  font:900 30px/1 "Rajdhani","Arial Narrow",Arial,sans-serif;
  text-shadow:1px 2px #000;
}
.touchlines-head em{
  grid-area:clock;
  justify-self:center;
  color:#fff;
  font:900 14px/1 "Rajdhani","Arial Narrow",Arial,sans-serif;
  font-style:normal;
  text-shadow:1px 2px #000;
}
.touchlines-match-type{
  grid-area:type;
  justify-self:center;
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#ffdd45;
  font:900 11px/1 "Rajdhani","Arial Narrow",Arial,sans-serif;
  letter-spacing:.08em;
  text-transform:uppercase;
  text-shadow:1px 2px #000;
}
.touchlines-statbar{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:6px;
  min-height:44px;
}
.touchlines-statbar span{
  display:grid;
  align-content:center;
  gap:2px;
  min-width:0;
  padding:5px 6px;
  border:1px solid rgba(154,37,255,.62);
  border-radius:5px;
  background:linear-gradient(180deg,rgba(16,5,42,.94),rgba(4,1,12,.96));
  text-align:center;
  text-shadow:1px 2px #000;
  box-shadow:inset 0 1px rgba(255,255,255,.08),0 0 12px rgba(154,37,255,.18);
}
.touchlines-statbar b{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#fff;
  font:900 15px/1 "Rajdhani","Arial Narrow",Arial,sans-serif;
}
.touchlines-statbar small{
  color:#ffdd45;
  font:900 9px/1 Arial,sans-serif;
  letter-spacing:.04em;
  text-shadow:none;
}
.touchlines-stage{
  position:relative;
  min-height:236px;
  overflow:hidden;
  border:2px solid rgba(38,218,72,.78);
  border-radius:7px;
  background:#08170c;
  box-shadow:0 0 0 1px rgba(0,0,0,.65),0 0 22px rgba(38,218,72,.32);
}
.touchlines-stage canvas{
  position:absolute;
  inset:0;
  z-index:1;
  display:block;
  width:100%;
  height:100%;
  background:#176d35;
}
.touchlines-goal-flash{
  position:absolute;
  left:50%;
  top:20px;
  z-index:5;
  max-width:min(88%,620px);
  padding:10px 18px;
  transform:translateX(-50%);
  border:2px solid #ffdd45;
  border-radius:6px;
  background:rgba(5,2,10,.88);
  color:#fff;
  font:900 26px/1 "Rajdhani","Arial Narrow",Arial,sans-serif;
  letter-spacing:.04em;
  text-align:center;
  text-shadow:2px 3px #000;
  box-shadow:0 0 0 1px rgba(0,0,0,.7),0 0 24px rgba(255,221,69,.55);
  pointer-events:none;
}
.touchlines-goal-flash.home{border-color:#26da48;box-shadow:0 0 0 1px rgba(0,0,0,.7),0 0 24px rgba(38,218,72,.55)}
.touchlines-goal-flash.away{border-color:#49d7ff;box-shadow:0 0 0 1px rgba(0,0,0,.7),0 0 24px rgba(73,215,255,.55)}
.touchlines-log{
  display:grid;
  align-content:start;
  gap:4px;
  min-height:0;
  overflow:auto;
  padding:6px;
  border:1px solid rgba(154,37,255,.5);
  background:rgba(5,2,10,.74);
  scrollbar-width:none;
}
.touchlines-log::-webkit-scrollbar{width:0;height:0}
.touchlines-log-row{
  display:grid;
  grid-template-columns:38px minmax(0,1fr);
  gap:6px;
  align-items:center;
  min-height:23px;
  border-top:1px solid rgba(255,255,255,.1);
  padding-top:3px;
  color:#e8dcff;
  font:12px/1.15 Arial,sans-serif;
  text-shadow:none;
}
.touchlines-log-row:first-child{border-top:0}
.touchlines-log-row b{color:#ffdd45;text-align:right}
.touchlines-log-row.home span{color:#fff}
.touchlines-log-row.away span{color:#c7f8ff}
.touchlines-speed-controls{
  display:grid;
  grid-template-columns:minmax(96px,1fr) auto minmax(96px,1fr);
  gap:6px;
  align-items:center;
  min-height:34px;
}
.touchlines-speed-controls,
.touchlines-speed-controls *{
  box-sizing:border-box;
}
.touchlines-speed-controls button{
  position:relative;
  display:grid;
  place-items:center;
  width:100%;
  height:34px;
  min-height:34px;
  min-width:0;
  margin:0;
  padding:0 8px;
  border:2px solid #7536d2;
  border-color:#7536d2;
  border-radius:5px;
  background:linear-gradient(180deg,rgba(28,9,62,.96),rgba(5,2,10,.98));
  color:#ffdd45;
  font:900 11px/1 "Rajdhani","Arial Narrow",Arial,sans-serif;
  letter-spacing:.04em;
  white-space:nowrap;
  outline:0;
  appearance:none;
  -webkit-appearance:none;
  transform:none!important;
  touch-action:manipulation;
  user-select:none;
  -webkit-user-select:none;
  -webkit-tap-highlight-color:transparent;
}
.touchlines-speed-controls button:hover,
.touchlines-speed-controls button:focus-visible,
.touchlines-speed-controls button:active{
  top:auto;
  left:auto;
  border-color:#c7a6ff;
  background:linear-gradient(180deg,rgba(42,14,78,.96),rgba(8,3,18,.98));
  transform:none!important;
}
.touchlines-speed-controls button:active{
  filter:brightness(1.08);
}
.touchlines-speed-controls button:disabled,
.touchlines-speed-controls button:disabled:hover,
.touchlines-speed-controls button:disabled:focus-visible,
.touchlines-speed-controls button:disabled:active{
  opacity:.45;
  filter:grayscale(.4);
  border-color:#7536d2;
  background:linear-gradient(180deg,rgba(28,9,62,.96),rgba(5,2,10,.98));
  transform:none!important;
}
.touchlines-speed-controls b{
  display:grid;
  place-items:center;
  min-width:56px;
  height:34px;
  min-height:34px;
  margin:0;
  border:1px solid rgba(255,221,69,.5);
  border-radius:5px;
  background:rgba(5,2,10,.72);
  color:#fff;
  font:900 14px/1 "Rajdhani","Arial Narrow",Arial,sans-serif;
  text-shadow:1px 2px #000;
}
.touchlines-pressure{
  display:grid;
  grid-template-rows:auto 18px auto;
  gap:4px;
  min-height:54px;
  padding:6px 8px;
  border:1px solid rgba(255,221,69,.38);
  border-radius:6px;
  background:linear-gradient(180deg,rgba(16,5,42,.90),rgba(5,2,10,.92));
  box-shadow:inset 0 1px rgba(255,255,255,.08),0 0 14px rgba(255,221,69,.12);
}
.touchlines-pressure-head{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
  align-items:center;
  gap:8px;
  min-width:0;
  color:#d9c9ff;
  font:900 10px/1 "Rajdhani","Arial Narrow",Arial,sans-serif;
  text-shadow:1px 2px #000;
}
.touchlines-pressure-head span{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.touchlines-pressure-head span:last-child{text-align:right}
.touchlines-pressure-head b{
  color:#ffdd45;
  font-size:14px;
  white-space:nowrap;
}
.touchlines-pressure-track{
  position:relative;
  overflow:visible;
  border:2px solid rgba(117,54,210,.85);
  border-radius:999px;
  background:#120421;
  box-shadow:inset 0 1px rgba(255,255,255,.18);
  transform-origin:center;
  transition:transform .28s ease;
}
.touchlines-pressure-track.switched{transform:rotate(180deg)}
.touchlines-pressure-track:after{
  content:"";
  position:absolute;
  left:50%;
  top:0;
  bottom:0;
  width:2px;
  background:rgba(255,255,255,.68);
  box-shadow:0 0 8px rgba(255,255,255,.45);
}
.touchlines-pressure-fill{
  position:absolute;
  top:0;
  bottom:0;
  left:var(--tl-pressure-left,50%);
  width:var(--tl-pressure-width,0%);
  border-radius:999px;
  background:linear-gradient(90deg,var(--tl-pressure-from,#26da48),var(--tl-pressure-to,#f28a18));
  transition:left .28s ease,width .28s ease,background .28s ease;
}
.touchlines-pressure-ball{
  position:absolute;
  z-index:3;
  left:var(--tl-pressure-ball,50%);
  top:50%;
  width:20px;
  height:20px;
  border:2px solid #111;
  border-radius:50%;
  background:
    radial-gradient(circle at 50% 50%,#111 0 16%,transparent 17%),
    radial-gradient(circle at 24% 25%,#111 0 9%,transparent 10%),
    radial-gradient(circle at 76% 25%,#111 0 9%,transparent 10%),
    radial-gradient(circle at 29% 76%,#111 0 9%,transparent 10%),
    radial-gradient(circle at 72% 77%,#111 0 9%,transparent 10%),
    #f7f7f7;
  box-shadow:0 2px 5px rgba(0,0,0,.55),0 0 9px rgba(255,255,255,.35);
  transform:translate(-50%,-50%);
  transition:left .28s ease;
  animation:touchlinesBallSpin .72s linear infinite;
}
.touchlines-pressure-track.finished .touchlines-pressure-ball{
  animation-play-state:paused;
}
@keyframes touchlinesBallSpin{
  from{transform:translate(-50%,-50%) rotate(0deg)}
  to{transform:translate(-50%,-50%) rotate(360deg)}
}
.touchlines-pressure-score{
  justify-self:center;
  color:#fff;
  font:900 11px/1 "Rajdhani","Arial Narrow",Arial,sans-serif;
  text-shadow:1px 2px #000;
}
.touchlines-scorers{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  align-items:start;
  gap:8px;
  min-height:68px;
  max-height:min(320px,38dvh);
  overflow:auto;
  padding:7px 8px;
  border:1px solid rgba(255,221,69,.34);
  border-radius:6px;
  background:rgba(5,2,10,.78);
  box-shadow:inset 0 1px rgba(255,255,255,.06);
  scrollbar-width:none;
}
.touchlines-scorers::-webkit-scrollbar{width:0;height:0}
.touchlines-scorers-title{
  color:#ffdd45;
  font:900 11px/1 "Rajdhani","Arial Narrow",Arial,sans-serif;
  text-shadow:1px 2px #000;
}
.touchlines-scorers-list{
  display:flex;
  flex-wrap:wrap;
  gap:5px;
  min-width:0;
  max-height:none;
  overflow:visible;
}
.touchlines-scorers-list::-webkit-scrollbar{width:0;height:0}
.touchlines-scorer{
  display:grid;
  gap:1px;
  flex:1 1 170px;
  min-width:118px;
  min-height:38px;
  max-width:220px;
  padding:4px 6px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:5px;
  background:rgba(17,7,33,.86);
  font:11px/1.1 Arial,sans-serif;
  text-shadow:none;
}
.touchlines-scorer.away{background:rgba(5,34,44,.78)}
.touchlines-scorer b{
  display:flex;
  align-items:center;
  gap:4px;
  min-width:0;
  color:#fff;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.touchlines-scorer b span{color:#ffdd45;flex:0 0 auto}
.touchlines-scorer small{
  color:#ffdd45;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.touchlines-pen-tag{
  display:inline-flex;
  width:max-content;
  padding:1px 5px;
  border-radius:3px;
  background:#ffdd45;
  color:#140912;
  font:900 10px/1 Arial,sans-serif;
  letter-spacing:0;
}
.touchlines-scorer em{
  color:#cfc1ee;
  font-style:normal;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.touchlines-ball-icon{
  display:inline-block;
  flex:0 0 auto;
  width:12px;
  height:12px;
  border:1px solid #111;
  border-radius:50%;
  background:
    radial-gradient(circle at 50% 50%,#111 0 16%,transparent 17%),
    radial-gradient(circle at 24% 25%,#111 0 9%,transparent 10%),
    radial-gradient(circle at 76% 25%,#111 0 9%,transparent 10%),
    radial-gradient(circle at 29% 76%,#111 0 9%,transparent 10%),
    radial-gradient(circle at 72% 77%,#111 0 9%,transparent 10%),
    #f7f7f7;
  box-shadow:0 1px 3px rgba(0,0,0,.6);
}
.touchlines-bottom{
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);
  gap:8px;
  min-height:0;
}
.touchlines-panel{
  display:grid;
  grid-template-rows:auto minmax(0,1fr);
  min-height:0;
  overflow:hidden;
  border:1px solid rgba(154,37,255,.55);
  border-radius:6px;
  background:rgba(5,2,10,.76);
  box-shadow:inset 0 1px rgba(255,255,255,.06),0 0 14px rgba(154,37,255,.14);
}
.touchlines-panel.reporter{
  border-color:rgba(255,221,69,.42);
  background:linear-gradient(180deg,rgba(19,12,7,.82),rgba(5,2,10,.78));
}
.touchlines-panel-title{
  min-height:24px;
  padding:6px 8px 4px;
  border-bottom:1px solid rgba(255,255,255,.10);
  color:#ffdd45;
  font:900 11px/1 "Rajdhani","Arial Narrow",Arial,sans-serif;
  text-shadow:1px 2px #000;
}
.touchlines-panel .touchlines-log{
  border:0;
  background:transparent;
}
.touchlines-reporter{
  display:grid;
  align-content:start;
  gap:6px;
  min-height:0;
  overflow:auto;
  padding:7px;
  color:#fff;
  scrollbar-width:none;
}
.touchlines-reporter::-webkit-scrollbar{width:0;height:0}
.touchlines-reporter-row{
  display:grid;
  grid-template-columns:38px minmax(0,1fr);
  gap:7px;
  align-items:start;
  min-height:38px;
  padding:6px 0 0;
  border-top:1px solid rgba(255,255,255,.10);
  font:12px/1.22 Arial,sans-serif;
  text-shadow:none;
}
.touchlines-reporter-row:first-child{border-top:0;padding-top:1px}
.touchlines-reporter-row b{
  color:#ffdd45;
  text-align:right;
}
.touchlines-reporter-row span{
  color:#f7f0d2;
}
.touchlines-match-report{
  display:grid;
  gap:8px;
  min-width:0;
  padding-bottom:8px;
}
.touchlines-match-report.hide{
  display:none!important;
}
.touchlines-report-back{
  width:100%;
  min-height:42px;
  border:2px solid rgba(255,221,69,.72);
  border-radius:6px;
  background:linear-gradient(180deg,#7f35da,#4b188c);
  color:#fff;
  font:900 15px/1 "Rajdhani","Arial Narrow",Arial,sans-serif;
  letter-spacing:.06em;
  text-shadow:1px 2px #000;
}
.touchlines-report-back:hover,
.touchlines-report-back:focus-visible{
  border-color:#ffdd45;
  background:linear-gradient(180deg,#9a4cff,#5a1ca4);
}
.touchlines-post-title{
  padding:8px 10px 6px;
  border:1px solid rgba(255,221,69,.34);
  border-radius:6px;
  background:rgba(5,2,10,.82);
  color:#ffdd45;
  font:900 14px/1 "Rajdhani","Arial Narrow",Arial,sans-serif;
  letter-spacing:.08em;
  text-align:center;
  text-shadow:1px 2px #000;
}
.touchlines-match-report .match-report-card{
  margin:0;
}
#manager .manager-panel:has(#managerSimPage:not(.hide)){
  grid-template-rows:minmax(0,1fr) auto!important;
  gap:8px!important;
}
#manager .manager-panel:has(#managerSimPage:not(.hide)) #managerSimPage{
  align-self:stretch!important;
  height:100%!important;
  min-height:0!important;
  overflow:hidden!important;
}
#manager .manager-panel:has(#managerSimPage.touchlines-report-open:not(.hide)) #managerSimPage{
  overflow:auto!important;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
  padding-bottom:calc(env(safe-area-inset-bottom,0px) + 10px);
}
#managerSimPage.touchlines-report-open:not(.hide){
  overflow:auto!important;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
  padding-bottom:calc(env(safe-area-inset-bottom,0px) + 10px);
}
#manager .manager-panel:has(#managerSimPage.touchlines-report-open:not(.hide)) #managerSimPage::-webkit-scrollbar{
  width:0;
  height:0;
}
#managerSimPage.touchlines-report-open:not(.hide)::-webkit-scrollbar{
  width:0;
  height:0;
}
#manager .manager-panel:has(#managerSimPage.touchlines-report-open:not(.hide)) .manager-sim-wrap{
  height:auto;
  min-height:0;
  overflow:visible;
  display:grid;
  gap:10px;
}
#managerSimPage.touchlines-report-open:not(.hide) .manager-sim-wrap{
  height:auto;
  min-height:0;
  overflow:visible;
  display:grid;
  gap:10px;
}
#manager .manager-panel:has(#managerSimPage.touchlines-report-open:not(.hide)) .touchlines-page{
  height:auto;
  min-height:0;
  grid-template-rows:auto auto minmax(300px,52dvh) auto auto auto auto auto;
}
#managerSimPage.touchlines-report-open:not(.hide) .touchlines-page{
  height:auto;
  min-height:0;
  grid-template-rows:auto auto minmax(300px,52dvh) auto auto auto auto auto;
}
#manager .manager-panel:has(#managerSimPage:not(.hide)) #managerMsg{
  display:none!important;
}
#manager .manager-panel:has(#managerSimPage:not(.hide)) #managerActionMenu{
  align-self:end!important;
}
@media(max-aspect-ratio:4/5){
  #manager .manager-panel:has(#managerSimPage.touchlines-live:not(.hide)){
    overflow:hidden!important;
  }
  #manager .manager-panel:has(#managerSimPage.touchlines-live:not(.hide)) #managerSimPage{
    height:100%!important;
    overflow:auto!important;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
    padding-bottom:calc(env(safe-area-inset-bottom,0px) + 14px);
  }
  #manager .manager-panel:has(#managerSimPage.touchlines-live:not(.hide)) #managerSimPage::-webkit-scrollbar{
    width:0;
    height:0;
  }
  #manager .manager-panel:has(#managerSimPage.touchlines-live:not(.hide)) .manager-sim-wrap{
    height:auto;
    min-height:100%;
    overflow:visible;
  }
  #manager .manager-panel:has(#managerSimPage.touchlines-live:not(.hide)) .touchlines-page{
    height:auto;
    min-height:100%;
    grid-template-rows:auto auto minmax(270px,42dvh) auto auto auto auto;
  }
  .touchlines-page{grid-template-rows:auto auto minmax(270px,1fr) auto auto auto minmax(176px,30dvh)}
  .touchlines-stage{min-height:270px}
  .touchlines-goal-flash{top:12px;max-width:92%;padding:8px 12px;font-size:19px}
  .touchlines-head{grid-template-columns:1fr auto 1fr;gap:4px 7px;padding:6px}
  .touchlines-head span{font-size:11px}
  .touchlines-head-team-copy small{font-size:7.5px;letter-spacing:.04em}
  .touchlines-head strong{font-size:22px}
  .touchlines-match-type{font-size:9.5px;letter-spacing:.05em}
  .touchlines-statbar{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;min-height:72px}
  .touchlines-statbar span{padding:4px 3px}
  .touchlines-statbar b{font-size:12px}
  .touchlines-statbar small{font-size:8px}
  .touchlines-log-row{font-size:11px}
  .touchlines-speed-controls{grid-template-columns:minmax(86px,1fr) auto minmax(86px,1fr);min-height:31px;gap:4px}
  .touchlines-speed-controls button{height:31px;min-height:31px;font-size:9.5px;padding:0 4px}
  .touchlines-speed-controls b{height:31px;min-height:31px;min-width:48px;font-size:12px}
  .touchlines-pressure{min-height:48px;padding:5px 6px;grid-template-rows:auto 15px auto}
  .touchlines-pressure-head{grid-template-columns:minmax(0,.75fr) auto minmax(0,.75fr);gap:5px;font-size:8.5px}
  .touchlines-pressure-head b{font-size:11px}
  .touchlines-pressure-ball{width:17px;height:17px}
  .touchlines-pressure-score{font-size:9.5px}
  .touchlines-scorers{grid-template-columns:1fr;gap:5px;min-height:86px;max-height:min(300px,42dvh);overflow:auto;padding:6px}
  .touchlines-scorers-title{font-size:10px}
  .touchlines-scorers-list{max-height:none;overflow:visible;gap:4px}
  .touchlines-scorer{min-width:min(142px,100%);min-height:40px;max-width:100%;padding:5px 6px;font-size:10.5px}
  .touchlines-ball-icon{width:11px;height:11px}
  .touchlines-bottom{grid-template-columns:1fr;gap:5px;min-height:330px}
  .touchlines-panel{min-height:156px}
  .touchlines-panel-title{min-height:21px;padding:5px 6px 3px;font-size:10px}
  .touchlines-reporter{padding:6px}
  .touchlines-reporter-row{grid-template-columns:29px minmax(0,1fr);gap:5px;min-height:34px;font-size:10.5px}
}

.admin-users-panel{
  display:grid;
  gap:6px;
  max-height:min(44dvh,360px);
  overflow:auto;
  padding:6px;
  border:1px solid rgba(154,37,255,.42);
  background:rgba(5,2,10,.66);
  scrollbar-width:none;
}
.admin-users-panel::-webkit-scrollbar{width:0;height:0}
.admin-reset-panel{
  display:grid;
  gap:8px;
  padding:10px;
  border:2px solid rgba(255,107,37,.72);
  border-radius:6px;
  background:linear-gradient(180deg,rgba(64,12,8,.94),rgba(12,2,6,.98));
  box-shadow:0 0 0 1px rgba(255,107,37,.28),0 0 18px rgba(255,82,24,.22),inset 0 1px rgba(255,255,255,.12);
  color:#fff;
  text-align:left;
  text-shadow:none;
}
.admin-reset-panel.hide{display:none!important}
.admin-reset-panel b{
  color:#ffdd45;
  font:900 18px/1 "Rajdhani","Arial Narrow",Arial,sans-serif;
  text-align:center;
  text-shadow:1px 2px #000;
}
.admin-reset-panel span{
  color:#f1dcce;
  font:12px/1.35 Arial,sans-serif;
}
.admin-reset-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:7px;
}
.admin-reset-actions button{
  height:36px;
  min-width:0;
  padding:0 8px;
  font:900 12px/1 "Rajdhani","Arial Narrow",Arial,sans-serif;
  letter-spacing:.05em;
}
.admin-user-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) 34px;
  align-items:center;
  gap:7px;
  min-height:42px;
  padding:6px 7px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(8,3,18,.72);
  text-align:left;
  text-shadow:none;
}
.admin-user-row b{
  display:block;
  color:#fff;
  font:900 15px/1 "Rajdhani","Arial Narrow",Arial,sans-serif;
  text-shadow:1px 2px #000;
}
.admin-user-row small{
  display:block;
  margin-top:3px;
  color:#d8cdf5;
  font:11px/1.25 Arial,sans-serif;
}
.admin-user-delete{
  width:30px;
  height:30px;
  min-height:0;
  padding:0;
  border-color:#ff3b30!important;
  border-radius:6px!important;
  background:#8f1010!important;
  color:#fff;
  font-size:20px!important;
  line-height:1;
}
.admin-user-delete:disabled{opacity:.35}
#managerActionMenu.open #managerAdminOption{--manager-menu-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23b63cff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M32 8l18 7v13c0 12-7 21-18 27-11-6-18-15-18-27V15z'/%3E%3Ccircle cx='32' cy='27' r='7'/%3E%3Cpath d='M20 49c2-9 7-14 12-14s10 5 12 14'/%3E%3C/svg%3E")}

/* Squad page: keep the pitch tight to the controls and stop status text from reserving black space. */
@media(min-aspect-ratio:4/5){
  #manager .manager-panel:has(#managerTeamPage:not(.hide)){
    grid-template-rows:minmax(0,1fr) auto!important;
    gap:8px!important;
  }
  #manager .manager-panel:has(#managerTeamPage:not(.hide)) #managerMsg{
    position:absolute!important;
    left:14px!important;
    right:14px!important;
    bottom:72px!important;
    z-index:24!important;
    min-height:0!important;
    pointer-events:none!important;
  }
  #managerTeamPage .manager-squad-layout{
    gap:6px!important;
  }
  #managerTeamPage .manager-squad-top-menu{
    margin-bottom:0!important;
  }
  #managerTeamPage .manager-squad-top-menu + .manager-formation-pane{
    padding-top:0!important;
  }
  #managerTeamPage #managerTeamSquadList{
    padding-bottom:8px!important;
  }
}

/* Bench cards: use the same visual style as players on the pitch, scaled to the bench row. */
#managerTeamPage .manager-bench-tray{
  display:grid!important;
  gap:6px!important;
  width:100%!important;
  min-width:0!important;
  min-height:0!important;
}
#managerTeamPage .manager-bench-strip{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(min(118px,100%),1fr))!important;
  gap:8px!important;
  align-items:stretch!important;
  width:100%!important;
  min-width:0!important;
  overflow:visible!important;
}
#managerTeamPage .manager-bench-chip{
  position:relative!important;
  display:grid!important;
  grid-template-columns:1fr!important;
  grid-template-rows:auto minmax(0,1fr) auto!important;
  justify-items:center!important;
  align-content:start!important;
  gap:3px!important;
  min-width:0!important;
  min-height:88px!important;
  height:100%!important;
  padding:7px 7px 5px!important;
  overflow:visible!important;
  border:2px solid rgba(75,207,84,.86)!important;
  border-radius:8px!important;
  background:linear-gradient(135deg,rgba(44,216,89,.18) 0 22%,transparent 22% 78%,rgba(44,216,89,.12) 78% 100%),linear-gradient(180deg,rgba(5,58,23,.96),rgba(1,20,9,.98))!important;
  box-shadow:0 3px 0 rgba(0,0,0,.56),0 0 14px rgba(38,218,72,.28),inset 0 1px rgba(255,255,255,.14)!important;
  text-align:center!important;
  text-shadow:none!important;
}
#managerTeamPage .manager-bench-cell{
  display:grid!important;
  grid-template-rows:auto auto!important;
  gap:6px!important;
  min-width:0!important;
  min-height:88px!important;
  align-content:start!important;
}
#managerTeamPage .manager-bench-cell .manager-bench-chip{
  height:auto!important;
}
#managerTeamPage .manager-bench-chip.training{
  border-color:rgba(69,216,255,.9)!important;
  background:linear-gradient(180deg,rgba(7,43,70,.9),rgba(3,17,28,.98))!important;
}
#managerTeamPage .manager-bench-actions{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:4px!important;
  width:100%!important;
  min-width:0!important;
}
#managerTeamPage .manager-bench-actions button{
  width:100%!important;
  height:31px!important;
  min-width:0!important;
  padding:0 8px!important;
  border-radius:5px!important;
  font:900 12px/1 "Rajdhani","Arial Narrow",Arial,sans-serif!important;
  letter-spacing:0!important;
}
#managerTeamPage .manager-bench-actions [data-bench-action="sell"]{
  border-color:#ffdd45!important;
  color:#ffdd45!important;
  background:linear-gradient(180deg,rgba(70,48,9,.94),rgba(20,12,2,.98))!important;
}
#managerTeamPage .manager-bench-actions [data-bench-action="swap"]{
  border-color:#26da48!important;
  color:#fff!important;
  background:linear-gradient(180deg,rgba(18,112,38,.94),rgba(4,42,15,.98))!important;
}
#managerTeamPage .manager-bench-actions [data-bench-action="training"]{
  border-color:#45d8ff!important;
  color:#e9fbff!important;
  background:linear-gradient(180deg,rgba(10,82,110,.94),rgba(3,28,42,.98))!important;
}
#managerTeamPage .manager-bench-chip:before{
  content:"";
  position:absolute;
  inset:5px;
  border:2px solid rgba(75,207,84,.58);
  border-radius:6px;
  box-shadow:inset 0 0 18px rgba(38,218,72,.1);
  pointer-events:none;
}
#managerTeamPage .manager-bench-chip:after{
  content:"";
  position:absolute;
  left:24%;
  right:24%;
  top:42%;
  height:2px;
  background:linear-gradient(90deg,transparent,rgba(38,218,72,.82),transparent);
  box-shadow:0 22px 0 rgba(38,218,72,.44);
  pointer-events:none;
}
#managerTeamPage .bench-chip-role,
#managerTeamPage .manager-bench-chip b,
#managerTeamPage .bench-chip-rating{
  position:relative!important;
  z-index:2!important;
}
#managerTeamPage .bench-chip-role{
  display:grid!important;
  place-items:center!important;
  width:44px!important;
  height:28px!important;
  align-self:start!important;
  margin:0!important;
  border:2px solid #050407!important;
  border-radius:999px!important;
  background:#fff!important;
  color:#050407!important;
  font:900 15px/1 "Rajdhani","Arial Narrow",Arial,sans-serif!important;
  text-shadow:none!important;
  box-shadow:0 2px 0 rgba(0,0,0,.58)!important;
}
#managerTeamPage .manager-bench-chip b{
  align-self:center!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:clip!important;
  white-space:nowrap!important;
  color:#fff!important;
  font-family:Arial,sans-serif!important;
  font-size:var(--formation-name-size,13px)!important;
  font-weight:900!important;
  line-height:1!important;
  text-shadow:1px 2px #000!important;
}
#managerTeamPage .bench-chip-rating{
  align-self:end!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  justify-items:center!important;
  gap:2px!important;
  width:100%!important;
  min-width:0!important;
  margin:0!important;
  color:#ffdd00!important;
  font:900 15px/1 "Rajdhani","Arial Narrow",Arial,sans-serif!important;
  letter-spacing:.03em!important;
  text-shadow:1px 2px #000!important;
}
#managerTeamPage .bench-rating-main,
#managerTeamPage .bench-rating-boosts,
#managerTeamPage .bench-chip-rating .bench-form-ovr{
  grid-column:auto!important;
  min-width:0!important;
  max-width:100%!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
#managerTeamPage .bench-rating-main{display:block!important;line-height:1!important}
#managerTeamPage .bench-rating-boosts{display:grid!important;grid-template-columns:minmax(0,1fr)!important;justify-items:center!important;gap:0!important;width:100%!important}
#managerTeamPage .bench-chip-rating .bench-form-ovr{
  display:block!important;
  color:#26da48;
  font-size:10px!important;
  line-height:1!important;
  font-style:normal!important;
}
#managerTeamPage .bench-chip-rating .bench-form-ovr.down{color:#ff6262!important}
#managerTeamPage .manager-bench-chip .bench-form-dot{
  position:absolute!important;
  left:50%!important;
  right:auto!important;
  top:auto!important;
  bottom:-13px!important;
  transform:translateX(-50%)!important;
  width:15px!important;
  height:15px!important;
  min-width:15px!important;
  min-height:15px!important;
  max-width:15px!important;
  max-height:15px!important;
  margin:0!important;
  z-index:9!important;
}
#managerTeamPage .bench-injury-badge{
  position:absolute!important;
  left:8px!important;
  top:8px!important;
  margin:0!important;
  z-index:5!important;
}
#managerTeamPage .bench-training-badge{
  position:absolute!important;
  right:8px!important;
  top:8px!important;
  margin:0!important;
  z-index:5!important;
}
#managerTeamPage .bench-card-badges{
  position:absolute!important;
  left:8px!important;
  top:28px!important;
  z-index:5!important;
}
#managerTeamPage .manager-bench-chip.squad-pick:hover,
#managerTeamPage .manager-bench-chip.squad-pick:focus-visible{
  border-color:#ffff00!important;
  background:linear-gradient(180deg,rgba(10,75,27,.96),rgba(3,27,12,.98))!important;
}
#managerTeamPage .manager-bench-chip.squad-pick.selected{
  border-color:#26da48!important;
  box-shadow:0 0 0 2px rgba(38,218,72,.66),0 0 20px rgba(38,218,72,.9),inset 0 1px rgba(255,255,255,.18)!important;
}
@media(max-aspect-ratio:4/5){
  #managerTeamPage .manager-bench-strip{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:6px!important;
  }
  #managerTeamPage .manager-bench-chip{
    min-height:78px!important;
    padding:5px 4px 4px!important;
    gap:2px!important;
    border-width:2px!important;
  }
  #managerTeamPage .bench-chip-role{
    width:37px!important;
    height:25px!important;
    font-size:13px!important;
  }
  #managerTeamPage .manager-bench-chip b{
    font-size:var(--formation-name-mobile-size,9.5px)!important;
  }
  #managerTeamPage .bench-chip-rating{
    font-size:10.5px!important;
  }
  #managerTeamPage .bench-chip-rating .bench-form-ovr{
    font-size:8.5px!important;
  }
  #managerTeamPage .manager-bench-chip .bench-form-dot{
    bottom:-12px!important;
    width:14px!important;
    height:14px!important;
    min-width:14px!important;
    min-height:14px!important;
  }
  #managerTeamPage .bench-injury-badge{
    left:5px!important;
    top:7px!important;
  }
  #managerTeamPage .bench-training-badge{
    right:5px!important;
    top:7px!important;
  }
  #managerTeamPage .bench-card-badges{
    left:5px!important;
    top:25px!important;
  }
  #managerTeamPage .manager-bench-cell{
    gap:4px!important;
    min-height:78px!important;
  }
  #managerTeamPage .manager-bench-actions{
    gap:4px!important;
  }
  #managerTeamPage .manager-bench-actions button{
    height:29px!important;
    padding:0 6px!important;
    font-size:11px!important;
  }
}

@media(max-aspect-ratio:4/5){
  #managerTeamPage .formation-player{
    --formation-player-width:52px!important;
    padding:5px 3px 4px!important;
  }
  #managerTeamPage .formation-head{
    width:34px!important;
  }
  #managerTeamPage .manager-bench-chip .bench-form-dot{
    bottom:4px!important;
  }
  #managerTransfersPage .manager-transfer-actions{
    grid-template-columns:1fr!important;
    grid-auto-rows:72px!important;
    gap:8px!important;
    min-height:472px!important;
    align-content:start!important;
  }
  #managerTransfersPage .manager-transfer-actions button{
    height:72px!important;
    min-height:72px!important;
    font-size:18px!important;
  }
  #managerTransfersPage .manager-staff-box{
    margin-top:4px!important;
  }
}

/* Final manager menu scroll guard */
#managerActionMenu.open{
  bottom:0!important;
  min-height:0!important;
  overflow:hidden!important;
}
#managerActionMenu.open #managerActionList{
  min-height:0!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior:contain!important;
  -webkit-overflow-scrolling:touch!important;
  touch-action:pan-y!important;
}
#managerActionMenu.open #managerActionList button{
  touch-action:pan-y!important;
}
@media(min-aspect-ratio:4/5){
  #managerActionMenu.open{
    top:68px!important;
  }
  #managerActionMenu.open #managerActionList{
    height:auto!important;
    max-height:calc(100dvh - 150px)!important;
    scrollbar-width:thin!important;
    scrollbar-color:#9a25ff rgba(9,0,18,.86)!important;
  }
}
@media(max-aspect-ratio:4/5){
  #managerActionMenu.open{
    top:58px!important;
    grid-template-rows:minmax(0,1fr) auto!important;
  }
  #managerActionMenu.open #managerActionList{
    height:100%!important;
    max-height:none!important;
    scrollbar-width:none!important;
  }
  #managerActionMenu.open #managerActionList::-webkit-scrollbar{
    width:0!important;
    height:0!important;
    display:none!important;
  }
}

.match-type{
  grid-column:1/-1;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  text-align:center;
  color:#ffdd45;
  font:900 10px/1 "Rajdhani","Arial Narrow",Arial,sans-serif;
  letter-spacing:.08em;
  text-transform:uppercase;
  text-shadow:1px 2px #000;
}
@media(max-aspect-ratio:4/5){
  .match-type{
    font-size:8px;
    letter-spacing:.04em;
  }
}

/* Keep Manager Menu scrollable over the live match view. */
#manager.manager-menu-open .manager-panel:has(#managerSimPage:not(.hide)){
  inset:0!important;
  width:100vw!important;
  height:100dvh!important;
  max-height:none!important;
  transform:none!important;
  overflow:hidden!important;
  padding:0!important;
}
#manager.manager-menu-open .manager-panel:has(#managerSimPage:not(.hide)) #managerActionMenu.open{
  position:fixed!important;
  left:0!important;
  right:0!important;
  bottom:0!important;
  z-index:120!important;
  display:grid!important;
  grid-template-rows:minmax(0,1fr) auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:hidden!important;
}
#manager.manager-menu-open .manager-panel:has(#managerSimPage:not(.hide)) #managerActionList{
  height:calc(100dvh - 68px - 58px - 12px - env(safe-area-inset-bottom,0px))!important;
  min-height:0!important;
  max-height:calc(100dvh - 68px - 58px - 12px - env(safe-area-inset-bottom,0px))!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior:contain!important;
  -webkit-overflow-scrolling:touch!important;
  touch-action:pan-y!important;
}
@media(min-aspect-ratio:4/5){
  #manager.manager-menu-open .manager-panel:has(#managerSimPage:not(.hide)) #managerActionMenu.open{
    top:68px!important;
  }
}
@media(max-aspect-ratio:4/5){
  #manager.manager-menu-open .manager-panel:has(#managerSimPage:not(.hide)) #managerActionMenu.open{
    top:58px!important;
  }
  #manager.manager-menu-open .manager-panel:has(#managerSimPage:not(.hide)) #managerActionList{
    height:calc(100dvh - 58px - 54px - 10px - env(safe-area-inset-bottom,0px))!important;
    max-height:calc(100dvh - 58px - 54px - 10px - env(safe-area-inset-bottom,0px))!important;
  }
}

/* Browser-safe live match menu fallback: JS adds this class when opened on managerSimPage. */
#manager.manager-match-menu-open .manager-panel{
  inset:0!important;
  width:100vw!important;
  height:100dvh!important;
  max-height:none!important;
  transform:none!important;
  overflow:hidden!important;
  padding:0!important;
}
#manager.manager-match-menu-open #managerActionMenu.open{
  position:fixed!important;
  left:0!important;
  right:0!important;
  bottom:0!important;
  z-index:120!important;
  display:grid!important;
  grid-template-rows:minmax(0,1fr) auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
}
#manager.manager-match-menu-open #managerActionList{
  align-self:stretch!important;
  height:calc(100dvh - 68px - 58px - 12px - env(safe-area-inset-bottom,0px))!important;
  max-height:calc(100dvh - 68px - 58px - 12px - env(safe-area-inset-bottom,0px))!important;
  min-height:0!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior:contain!important;
  -webkit-overflow-scrolling:touch!important;
  touch-action:pan-y!important;
  pointer-events:auto!important;
}
#manager.manager-match-menu-open #managerActionList button{
  touch-action:pan-y!important;
}
@media(min-aspect-ratio:4/5){
  #manager.manager-match-menu-open #managerActionMenu.open{
    top:68px!important;
  }
}
@media(max-aspect-ratio:4/5){
  #manager.manager-match-menu-open #managerActionMenu.open{
    top:58px!important;
  }
  #manager.manager-match-menu-open #managerActionList{
    height:calc(100dvh - 58px - 54px - 10px - env(safe-area-inset-bottom,0px))!important;
    max-height:calc(100dvh - 58px - 54px - 10px - env(safe-area-inset-bottom,0px))!important;
  }
}

#managerReportsList{
  display:grid;
  gap:12px;
}
.match-report-card{
  display:grid;
  gap:10px;
  padding:10px;
  border:1px solid rgba(255,221,69,.34);
  background:linear-gradient(180deg,rgba(12,5,24,.98),rgba(4,2,10,.99));
  box-shadow:0 16px 32px rgba(0,0,0,.42),inset 0 1px rgba(255,255,255,.08);
  color:#fff;
  text-align:left;
}
.match-report-hero{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
  align-items:center;
  gap:10px;
  padding:9px;
  border:1px solid rgba(255,255,255,.14);
  background:linear-gradient(90deg,rgba(15,42,29,.92),rgba(31,13,55,.96),rgba(15,42,29,.92));
}
.match-report-team{
  display:flex;
  align-items:center;
  gap:7px;
  min-width:0;
}
.match-report-team.away{
  justify-content:flex-end;
  text-align:right;
}
.match-report-team .team-flag{
  width:24px;
  height:16px;
  flex:0 0 auto;
}
.match-report-team span{
  min-width:0;
}
.match-report-team b{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font:15px/1 Impact,"Arial Black",sans-serif;
  color:#fff;
  text-shadow:1px 2px #000;
}
.match-report-team small{
  display:block;
  font:9px/1.1 Arial,sans-serif;
  color:#cfc1ee;
  letter-spacing:.08em;
}
.match-report-score{
  display:grid;
  gap:2px;
  justify-items:center;
  min-width:96px;
  text-align:center;
}
.match-report-score span,
.match-report-score em{
  font:10px/1.1 Arial,sans-serif;
  color:#cfc1ee;
  letter-spacing:.08em;
  text-transform:uppercase;
  font-style:normal;
}
.match-report-score b{
  font:34px/1 Impact,"Arial Black",sans-serif;
  color:#ffdd45;
  text-shadow:2px 3px #000;
  letter-spacing:0;
}
.match-report-meta-row{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  justify-content:center;
}
.match-report-meta-row span{
  padding:4px 8px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(0,0,0,.26);
  color:#e9e0ff;
  font:10px/1.15 Arial,sans-serif;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.match-report-lede{
  padding:8px 9px;
  border-left:3px solid #ffdd45;
  background:rgba(255,221,69,.08);
  color:#fff;
  font:700 13px/1.35 Arial,sans-serif;
}
.match-report-section,
.match-report-panel,
.match-report-player-table{
  display:grid;
  gap:6px;
  min-width:0;
}
.match-report-section-title{
  color:#ffdd45;
  font:14px/1 Impact,"Arial Black",sans-serif;
  letter-spacing:.03em;
  text-align:left;
  text-shadow:1px 2px #000;
}
.match-report-goal-list{
  display:grid;
  gap:5px;
}
.match-report-goal{
  display:grid;
  grid-template-columns:42px minmax(0,1fr);
  gap:8px;
  align-items:center;
  padding:7px 8px;
  border:1px solid rgba(255,255,255,.1);
  background:rgba(0,0,0,.24);
}
.match-report-goal.away{
  border-color:rgba(255,221,69,.2);
}
.match-report-goal>span{
  color:#ffdd45;
  font:18px/1 Impact,"Arial Black",sans-serif;
  text-align:center;
}
.match-report-goal b{
  display:flex;
  align-items:center;
  gap:6px;
  min-width:0;
  color:#fff;
  font:700 13px/1.2 Arial,sans-serif;
}
.match-report-goal b i{
  width:10px;
  height:10px;
  flex:0 0 auto;
  border-radius:50%;
  background:#fff;
  box-shadow:inset 0 0 0 2px #111,0 0 0 1px rgba(255,255,255,.35);
}
.match-report-goal em{
  padding:1px 4px;
  border:1px solid rgba(255,255,255,.18);
  color:#ffdd45;
  font-style:normal;
  font-size:9px;
}
.match-report-goal small,
.match-report-empty{
  color:#cfc1ee;
  font:11px/1.3 Arial,sans-serif;
}
.match-report-panels{
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(0,1fr) minmax(170px,.62fr);
  gap:10px;
}
.match-report-panel{
  align-content:start;
  padding:8px;
  border:1px solid rgba(255,255,255,.1);
  background:rgba(0,0,0,.2);
}
.match-report-stat{
  display:grid;
  grid-template-columns:44px minmax(0,1fr) 44px;
  gap:7px;
  align-items:center;
  min-height:26px;
}
.match-report-stat>b{
  color:#fff;
  font:700 13px/1 Arial,sans-serif;
  text-align:center;
}
.match-report-stat div{
  display:grid;
  gap:3px;
}
.match-report-stat span{
  color:#cfc1ee;
  font:9px/1 Arial,sans-serif;
  text-align:center;
  letter-spacing:.06em;
}
.match-report-stat i{
  position:relative;
  display:block;
  height:5px;
  overflow:hidden;
  border-radius:5px;
  background:rgba(255,255,255,.16);
}
.match-report-stat i:before,
.match-report-stat i:after{
  content:"";
  position:absolute;
  top:0;
  bottom:0;
}
.match-report-stat i:before{
  left:0;
  width:var(--home,50%);
  background:#30b866;
}
.match-report-stat i:after{
  right:0;
  width:var(--away,calc(100% - var(--home,50%)));
  background:#7f54dd;
}
.match-report-stat.view-away i:before{
  left:auto;
  right:0;
  width:var(--away,50%);
}
.match-report-stat.view-away i:after{
  left:0;
  right:auto;
  width:var(--home,50%);
}
.match-report-spotlights{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:6px;
}
.match-report-spotlight{
  min-width:0;
  padding:6px;
  border:1px solid rgba(255,255,255,.09);
  background:rgba(255,255,255,.04);
}
.match-report-spotlight span{
  display:block;
  color:#ffdd45;
  font:9px/1.1 Arial,sans-serif;
  letter-spacing:.06em;
}
.match-report-spotlight b,
.match-report-spotlight small{
  display:block;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.match-report-spotlight b{
  margin-top:3px;
  color:#fff;
  font:700 12px/1.15 Arial,sans-serif;
}
.match-report-spotlight small,
.match-report-spotlight em{
  color:#cfc1ee;
  font:10px/1.25 Arial,sans-serif;
  font-style:normal;
}
.match-report-card-row{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  gap:4px 7px;
  align-items:center;
  padding:5px 0;
  border-top:1px solid rgba(255,255,255,.08);
}
.match-report-card-row:first-of-type{
  border-top:0;
}
.match-report-card-row small{
  grid-column:2;
  color:#cfc1ee;
  font-size:10px;
}
.match-report-card-badge{
  display:inline-grid;
  place-items:center;
  min-width:16px;
  height:18px;
  padding:0 3px;
  margin-right:3px;
  border-radius:2px;
  color:#111;
  font:900 9px/1 Arial,sans-serif;
  text-shadow:none;
}
.match-report-card-badge.yellow{
  background:#ffdd45;
}
.match-report-card-badge.red{
  background:#f04444;
  color:#fff;
}
.match-report-player-table{
  overflow:auto;
  scrollbar-width:none;
}
.match-report-player-table::-webkit-scrollbar{
  width:0;
  height:0;
}
.match-report-player-row{
  display:grid;
  grid-template-columns:40px minmax(130px,1.4fr) 44px 56px 42px 44px 42px 42px minmax(72px,.72fr);
  gap:6px;
  align-items:center;
  min-width:650px;
  padding:6px 7px;
  border-top:1px solid rgba(255,255,255,.08);
  background:rgba(0,0,0,.16);
  font:11px/1.2 Arial,sans-serif;
}
.match-report-player-row.head{
  color:#ffdd45;
  background:rgba(255,221,69,.08);
  border-top:0;
  font-weight:900;
}
.match-report-player-row b{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.match-report-player-row b i{
  display:inline-flex;
  vertical-align:middle;
  margin-left:4px;
}
.match-report-player-row em{
  color:#ffdd45;
  font-style:normal;
  font-weight:900;
  text-align:center;
}
.match-report-player-row span,
.match-report-player-row small{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  text-align:center;
}
.match-report-player-row small{
  color:#cfc1ee;
}
@media(max-width:840px),(max-aspect-ratio:4/5){
  .match-report-card{
    padding:8px;
    gap:9px;
  }
  .match-report-hero{
    grid-template-columns:1fr;
    justify-items:center;
  }
  .match-report-team,
  .match-report-team.away{
    justify-content:center;
    text-align:center;
    width:100%;
  }
  .match-report-team b{
    max-width:74vw;
  }
  .match-report-score{
    order:-1;
  }
  .match-report-score b{
    font-size:32px;
  }
  .match-report-panels{
    grid-template-columns:1fr;
  }
  .match-report-spotlights{
    grid-template-columns:1fr;
  }
  .match-report-player-row{
    grid-template-columns:34px minmax(0,1fr) 42px 54px;
    min-width:0;
  }
  .match-report-player-row span:nth-of-type(n+3),
  .match-report-player-row small{
    display:none;
  }
  .match-report-player-row b{
    white-space:normal;
  }
}

/* Neon entry menus after login */
#menu:before,
#managerSavesPage:before,
#optionsPage:before,
#admin:before{
  background:
    radial-gradient(circle at 50% 12%,rgba(129,38,214,.26),transparent 34%),
    linear-gradient(180deg,#080011 0%,#0c0319 52%,#05000c 100%)!important;
}
#menu .panel.menu,
#managerSavesPage .panel.menu,
#optionsPage .panel.menu,
#admin .panel.menu{
  top:calc(1cm + 50%);
  width:min(900px,88vw);
  max-height:calc(100dvh - 1cm - 34px);
  overflow:auto;
  gap:clamp(10px,2.4dvh,24px);
  padding:0;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  scrollbar-width:none;
}
#menu .panel.menu::-webkit-scrollbar,
#managerSavesPage .panel.menu::-webkit-scrollbar,
#optionsPage .panel.menu::-webkit-scrollbar,
#admin .panel.menu::-webkit-scrollbar{
  width:0;
  height:0;
}
#menu .panel.menu > button,
#optionsPage .panel.menu > button,
#admin .panel.menu > button,
#managerSavesBack{
  position:relative;
  display:grid;
  grid-template-columns:clamp(58px,10vw,104px) minmax(0,1fr) clamp(30px,5vw,54px);
  align-items:center;
  gap:clamp(10px,2vw,24px);
  width:100%;
  height:clamp(72px,10.5dvh,118px);
  min-height:72px;
  padding:0 clamp(14px,2.6vw,28px) 0 clamp(10px,2vw,22px);
  clip-path:polygon(18px 0,calc(100% - 18px) 0,100% 18px,100% calc(100% - 18px),calc(100% - 18px) 100%,18px 100%,0 calc(100% - 18px),0 18px);
  border:2px solid rgba(190,70,255,.92)!important;
  border-radius:0!important;
  background:
    linear-gradient(90deg,rgba(62,9,126,.72),rgba(13,3,31,.98) 48%,rgba(7,0,18,.98)),
    repeating-linear-gradient(135deg,rgba(255,255,255,.035) 0 1px,transparent 1px 9px)!important;
  color:#f7f4ff!important;
  text-align:center;
  font:900 clamp(22px,3.4vw,44px)/1 "Rajdhani","Arial Narrow",Arial,sans-serif!important;
  letter-spacing:.12em;
  text-shadow:0 0 14px rgba(255,255,255,.18),1px 2px #000!important;
  box-shadow:
    0 0 0 1px rgba(157,41,255,.34),
    0 0 20px rgba(168,48,255,.42),
    inset 0 0 0 1px rgba(255,255,255,.08),
    inset 0 0 22px rgba(130,29,255,.16)!important;
}
#menu .panel.menu > button:before,
#optionsPage .panel.menu > button:before,
#admin .panel.menu > button:before,
#managerSavesBack:before{
  content:"";
  justify-self:center;
  width:clamp(42px,7vw,76px);
  height:clamp(42px,7vw,76px);
  background:var(--entry-menu-icon) center/contain no-repeat;
  filter:drop-shadow(0 0 10px rgba(194,72,255,.78));
  opacity:.95;
}
#menu .panel.menu > button:after,
#optionsPage .panel.menu > button:after,
#admin .panel.menu > button:after,
#managerSavesBack:after{
  content:"";
  justify-self:center;
  width:clamp(13px,2.4vw,24px);
  height:clamp(13px,2.4vw,24px);
  border:solid #c64aff;
  border-width:0 clamp(4px,.7vw,7px) clamp(4px,.7vw,7px) 0;
  transform:rotate(-45deg);
  filter:drop-shadow(0 0 10px rgba(198,74,255,.92));
}
#menu .panel.menu > button:hover,
#menu .panel.menu > button:focus-visible,
#optionsPage .panel.menu > button:hover,
#optionsPage .panel.menu > button:focus-visible,
#admin .panel.menu > button:hover,
#admin .panel.menu > button:focus-visible,
#managerSavesBack:hover,
#managerSavesBack:focus-visible{
  border-color:#e582ff!important;
  background:
    linear-gradient(90deg,rgba(86,12,172,.86),rgba(19,4,46,.99) 48%,rgba(9,0,25,.99)),
    repeating-linear-gradient(135deg,rgba(255,255,255,.05) 0 1px,transparent 1px 9px)!important;
  box-shadow:
    0 0 0 1px rgba(229,130,255,.46),
    0 0 30px rgba(190,70,255,.68),
    inset 0 0 0 1px rgba(255,255,255,.12),
    inset 0 0 24px rgba(180,58,255,.24)!important;
}
#menu .panel.menu > button:disabled,
#optionsPage .panel.menu > button:disabled,
#admin .panel.menu > button:disabled{
  opacity:.5;
  filter:grayscale(.28);
}
#menu .panel.menu #logout{
  border-color:#ff6b25!important;
  background:
    linear-gradient(90deg,rgba(125,15,8,.78),rgba(26,3,9,.98) 48%,rgba(10,0,5,.99)),
    repeating-linear-gradient(135deg,rgba(255,255,255,.035) 0 1px,transparent 1px 9px)!important;
  box-shadow:0 0 0 1px rgba(255,107,37,.38),0 0 23px rgba(255,82,24,.48),inset 0 0 22px rgba(255,58,20,.16)!important;
}
#menu .panel.menu #logout:before{filter:drop-shadow(0 0 10px rgba(255,107,37,.86))}
#menu .panel.menu #logout:after{border-color:#ff792e;filter:drop-shadow(0 0 10px rgba(255,107,37,.92))}
#menu .panel.menu #logout:hover,
#menu .panel.menu #logout:focus-visible{
  border-color:#ff9b3d!important;
  box-shadow:0 0 0 1px rgba(255,155,61,.44),0 0 32px rgba(255,86,26,.72),inset 0 0 24px rgba(255,84,22,.24)!important;
}
#menuMsg{
  min-height:18px;
  font-size:14px;
}
#inviteBox:not(.hide){
  clip-path:polygon(14px 0,calc(100% - 14px) 0,100% 14px,100% calc(100% - 14px),calc(100% - 14px) 100%,14px 100%,0 calc(100% - 14px),0 14px);
  border:2px solid rgba(255,221,69,.72);
  background:rgba(18,6,34,.86);
  box-shadow:0 0 18px rgba(255,221,69,.24);
}
#inviteBox.invite-action-box:not(.hide),
#managerInviteBox.invite-action-box:not(.hide){
  clip-path:none;
  border:0;
  background:transparent;
  box-shadow:none;
  padding:0;
}
.invite-action{
  position:relative;
  display:grid;
  grid-template-columns:74px minmax(0,1fr) 34px;
  align-items:center;
  width:100%;
  min-height:94px;
  height:auto;
  padding:10px 18px 10px 12px;
  border-color:#26da48!important;
  background:
    linear-gradient(90deg,rgba(8,112,31,.88),rgba(8,34,22,.98) 48%,rgba(5,18,13,.99)),
    repeating-linear-gradient(135deg,rgba(255,255,255,.04) 0 1px,transparent 1px 9px)!important;
  box-shadow:0 0 0 1px rgba(38,218,72,.38),0 0 23px rgba(38,218,72,.48),inset 0 0 22px rgba(38,218,72,.16)!important;
  color:#fff;
  font:700 clamp(24px,4.1vw,40px)/.9 "Rajdhani","Arial Narrow",Arial,sans-serif;
  letter-spacing:.1em;
  text-align:center;
  text-shadow:2px 3px #050407,0 0 18px rgba(255,255,255,.28);
  animation:inviteSoftPulse 1.8s ease-in-out infinite;
}
.invite-action:before{
  content:"";
  justify-self:center;
  width:42px;
  height:42px;
  background:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%2326da48' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='24' cy='24' r='8'/%3E%3Cpath d='M10 54c2-12 8-18 14-18 6 0 11 4 14 12'/%3E%3Cpath d='M48 18v22M37 29h22'/%3E%3C/svg%3E");
  filter:drop-shadow(0 0 10px rgba(38,218,72,.86));
}
.invite-action:after{
  content:"";
  justify-self:center;
  width:16px;
  height:16px;
  border:solid #26da48;
  border-width:0 5px 5px 0;
  transform:rotate(-45deg);
  filter:drop-shadow(0 0 10px rgba(38,218,72,.92));
}
.invite-action:hover,
.invite-action:focus-visible{
  border-color:#54ff72!important;
  box-shadow:0 0 0 1px rgba(84,255,114,.44),0 0 32px rgba(38,218,72,.72),inset 0 0 24px rgba(38,218,72,.24)!important;
}
.invite-card{
  display:grid;
  gap:8px;
  width:100%;
  padding:10px;
  border:2px solid #26da48;
  border-radius:7px;
  background:linear-gradient(90deg,rgba(8,112,31,.9),rgba(8,34,22,.98) 48%,rgba(5,18,13,.99));
  box-shadow:0 0 0 1px rgba(38,218,72,.34),0 0 22px rgba(38,218,72,.42),inset 0 0 18px rgba(38,218,72,.14);
  color:#fff;
  text-shadow:none;
  animation:inviteSoftPulse 2.1s ease-in-out infinite;
}
.invite-card-title{
  text-align:center;
  font:900 clamp(18px,4vw,28px)/.95 "Rajdhani","Arial Narrow",Arial,sans-serif;
  letter-spacing:.08em;
  text-shadow:2px 3px #050407;
}
.invite-team-list{
  display:grid;
  gap:5px;
}
.invite-team-row{
  display:grid;
  grid-template-columns:minmax(54px,.75fr) minmax(0,1.7fr) 54px;
  gap:6px;
  align-items:center;
  min-height:31px;
  padding:4px 6px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:5px;
  background:rgba(0,0,0,.22);
  font:900 11px/1.15 Arial,sans-serif;
}
.invite-team-row>span{
  display:flex;
  align-items:center;
  min-width:0;
  gap:5px;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
}
.invite-team-row small{
  color:#ffdd45;
  text-align:right;
  font:900 9px/1 Arial,sans-serif;
}
.invite-team-row.conflict{
  border-color:#ff3d55;
  background:rgba(115,8,35,.72);
}
.invite-team-row .manager-team-picker{
  align-self:stretch;
}
.invite-team-row .manager-team-button{
  height:27px!important;
  min-height:27px!important;
  border-color:rgba(84,255,114,.8)!important;
  background:linear-gradient(180deg,rgba(7,54,22,.96),rgba(4,18,11,.99))!important;
  font-size:10px!important;
}
.invite-team-row .manager-team-menu{
  max-height:min(210px,32dvh);
  border-color:#26da48;
}
.invite-card-warning{
  color:#ffd9df;
  text-align:center;
  font:900 11px/1.1 Arial,sans-serif;
}
.invite-join{
  height:34px!important;
  min-height:34px!important;
  border-color:#54ff72!important;
  background:rgba(8,112,31,.88)!important;
  color:#fff!important;
  font:900 13px/1 Arial,sans-serif!important;
  letter-spacing:.08em!important;
  text-align:center!important;
}
.invite-join:disabled{
  opacity:.45;
  filter:grayscale(.35);
}
@keyframes inviteSoftPulse{
  0%,100%{filter:brightness(1);box-shadow:0 0 0 1px rgba(38,218,72,.34),0 0 18px rgba(38,218,72,.34),inset 0 0 18px rgba(38,218,72,.13)!important}
  50%{filter:brightness(1.12);box-shadow:0 0 0 1px rgba(84,255,114,.48),0 0 32px rgba(38,218,72,.58),inset 0 0 24px rgba(38,218,72,.2)!important}
}
#managerActionMenu.open #managerActionList #managerActionInvite.hide{display:none!important}
#managerActionMenu.open #managerActionList #managerActionInvite{display:block!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
#managerActionMenu.open #managerActionList #managerActionInvite .invite-action{
  display:grid!important;
  grid-template-columns:74px minmax(0,1fr) 34px!important;
  min-height:84px!important;
  height:auto!important;
  padding:10px 18px 10px 12px!important;
  border:2px solid #26da48!important;
  border-radius:7px!important;
  background:linear-gradient(90deg,rgba(8,112,31,.9),rgba(8,34,22,.98) 48%,rgba(5,18,13,.99))!important;
  color:#fff!important;
  font:900 clamp(21px,4vw,34px)/.92 "Rajdhani","Arial Narrow",Arial,sans-serif!important;
  letter-spacing:.09em!important;
  text-align:center!important;
  text-shadow:2px 3px #050407,0 0 18px rgba(255,255,255,.28)!important;
}
#managerActionMenu.open #managerActionList #managerActionInvite .invite-action:before{
  content:""!important;
  justify-self:center!important;
  width:42px!important;
  height:42px!important;
  border:0!important;
  border-radius:0!important;
  background:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%2326da48' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='24' cy='24' r='8'/%3E%3Cpath d='M10 54c2-12 8-18 14-18 6 0 11 4 14 12'/%3E%3Cpath d='M48 18v22M37 29h22'/%3E%3C/svg%3E")!important;
  box-shadow:none!important;
  filter:drop-shadow(0 0 10px rgba(38,218,72,.86))!important;
}
#managerActionMenu.open #managerActionList #managerActionInvite .invite-action:after{
  content:""!important;
  justify-self:center!important;
  width:16px!important;
  height:16px!important;
  border:solid #26da48!important;
  border-width:0 5px 5px 0!important;
  transform:rotate(-45deg)!important;
  filter:drop-shadow(0 0 10px rgba(38,218,72,.92))!important;
}
#options{--entry-menu-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23b63cff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='32' cy='32' r='8'/%3E%3Cpath d='M32 6v10M32 48v10M6 32h10M48 32h10M13 13l7 7M44 44l7 7M51 13l-7 7M20 44l-7 7'/%3E%3C/svg%3E")}
#managerMode{--entry-menu-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23b63cff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='17' y='12' width='30' height='44' rx='4'/%3E%3Cpath d='M24 12h16v8H24zM25 34l7-7 7 7M25 44l7-7 7 7'/%3E%3Ccircle cx='25' cy='48' r='2'/%3E%3Ccircle cx='39' cy='48' r='2'/%3E%3C/svg%3E")}
#inviteUserMode{--entry-menu-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23b63cff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='23' cy='23' r='8'/%3E%3Cpath d='M9 54c2-12 8-18 14-18 6 0 11 4 14 12'/%3E%3Ccircle cx='43' cy='25' r='6'/%3E%3Cpath d='M36 42c3-5 7-8 12-8 4 0 7 2 9 7M50 13v14M43 20h14'/%3E%3C/svg%3E")}
#startNewManagerMode{--entry-menu-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23b63cff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='32' cy='32' r='22'/%3E%3Cpath d='M32 10l9 8-4 12H27l-4-12zM12 29l11-11M52 29L41 18M20 50l7-20M44 50l-7-20M23 18l4 12-9 7M41 18l-4 12 9 7M27 30l-7 20M37 30l7 20'/%3E%3C/svg%3E")}
#managerSaveButton{--entry-menu-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23b63cff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 10h30l6 7v37H14z'/%3E%3Cpath d='M22 10v17h20V10M22 54V37h20v17M29 16h7'/%3E%3C/svg%3E")}
#adminMenu,
#adminUsersButton{--entry-menu-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23b63cff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M32 8l20 8v14c0 13-8 22-20 28-12-6-20-15-20-28V16z'/%3E%3Ccircle cx='32' cy='27' r='7'/%3E%3Cpath d='M20 49c2-9 7-14 12-14s10 5 12 14'/%3E%3C/svg%3E")}
#logout{--entry-menu-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23ff7a2e' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M28 14H14v36h14M32 32h20M43 22l10 10-10 10'/%3E%3C/svg%3E")}
#optionsSoundButton{--entry-menu-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23b63cff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 38h10l14 12V14L24 26H14z'/%3E%3Cpath d='M45 25c3 4 3 10 0 14M51 18c8 8 8 20 0 28'/%3E%3C/svg%3E")}
#siteLightButton{--entry-menu-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23b63cff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M34 8a24 24 0 1 0 22 32c-10 5-24-2-24-15 0-7 4-13 10-17-3 0-5 0-8 0z'/%3E%3Cpath d='M13 13l5 5M8 32h8M16 49l5-5M49 16l-5 5'/%3E%3C/svg%3E")}
#optionsBack,
#adminBack,
#managerSavesBack{--entry-menu-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23b63cff' stroke-width='5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M42 14L24 32l18 18M26 32h30'/%3E%3C/svg%3E")}
#adminSimSeason{--entry-menu-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23b63cff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 32a18 18 0 0 1 30-13l5 5M50 32a18 18 0 0 1-30 13l-5-5'/%3E%3Cpath d='M48 14v10H38M16 50V40h10'/%3E%3C/svg%3E")}
#resetManagerLeague,
#resetEverything{--entry-menu-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23ff7a2e' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M32 8l26 46H6z'/%3E%3Cpath d='M32 23v14'/%3E%3Ccircle cx='32' cy='46' r='2'/%3E%3C/svg%3E")}
#resetManagerLeague,
#resetEverything{
  border-color:#ff6b25!important;
  background:
    linear-gradient(90deg,rgba(125,15,8,.78),rgba(26,3,9,.98) 48%,rgba(10,0,5,.99)),
    repeating-linear-gradient(135deg,rgba(255,255,255,.035) 0 1px,transparent 1px 9px)!important;
  box-shadow:0 0 0 1px rgba(255,107,37,.38),0 0 23px rgba(255,82,24,.48),inset 0 0 22px rgba(255,58,20,.16)!important;
}
#resetManagerLeague:before,
#resetEverything:before{filter:drop-shadow(0 0 10px rgba(255,107,37,.86))}
#resetManagerLeague:after,
#resetEverything:after{border-color:#ff792e;filter:drop-shadow(0 0 10px rgba(255,107,37,.92))}
#managerSavesPage .manager-title,
#optionsPage .manager-title{
  margin:0 0 2px;
  color:#ffdd45;
  font:900 clamp(18px,3.1vw,34px)/1 "Rajdhani","Arial Narrow",Arial,sans-serif;
  letter-spacing:.12em;
  text-shadow:0 0 14px rgba(255,221,69,.26),1px 2px #000;
}
#managerSavesList{
  gap:10px;
  max-height:min(58dvh,560px);
  overflow:auto;
  padding-right:0;
  scrollbar-width:none;
}
#managerSavesList::-webkit-scrollbar{
  width:0;
  height:0;
}
#managerSavesPage .manager-save-row,
#optionsPage .manager-save-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) clamp(42px,6vw,56px);
  gap:8px;
}
#managerSavesPage .manager-save-load,
#optionsPage .manager-save-load{
  position:relative;
  display:grid;
  grid-template-columns:34px minmax(0,1fr);
  align-items:center;
  gap:10px;
  min-height:70px;
  height:auto;
  padding:8px 12px;
  clip-path:polygon(12px 0,calc(100% - 12px) 0,100% 12px,100% calc(100% - 12px),calc(100% - 12px) 100%,12px 100%,0 calc(100% - 12px),0 12px);
  border-color:rgba(190,70,255,.92);
  background:
    linear-gradient(90deg,rgba(54,8,108,.74),rgba(10,2,26,.97) 52%,rgba(6,0,16,.98)),
    repeating-linear-gradient(135deg,rgba(255,255,255,.035) 0 1px,transparent 1px 9px);
  text-align:left;
  box-shadow:0 0 16px rgba(168,48,255,.28),inset 0 0 0 1px rgba(255,255,255,.08);
}
#managerSavesPage .manager-save-load:before,
#optionsPage .manager-save-load:before{
  content:"";
  width:30px;
  height:30px;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23b63cff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 10h30l6 7v37H14z'/%3E%3Cpath d='M22 10v17h20V10M22 54V37h20v17M29 16h7'/%3E%3C/svg%3E") center/contain no-repeat;
  filter:drop-shadow(0 0 8px rgba(194,72,255,.78));
}
#managerSavesPage .manager-save-load b,
#optionsPage .manager-save-load b{
  display:block;
  min-width:0;
  overflow:hidden;
  color:#fff;
  font:900 clamp(13px,2.1vw,20px)/1 "Rajdhani","Arial Narrow",Arial,sans-serif;
  letter-spacing:.05em;
  text-overflow:ellipsis;
  white-space:nowrap;
  text-shadow:1px 2px #000;
}
#managerSavesPage .manager-save-load small,
#optionsPage .manager-save-load small{
  display:block;
  margin-top:4px;
  color:#d8cdf5;
  font:11px/1.2 Arial,sans-serif;
  letter-spacing:0;
  text-shadow:none;
  white-space:normal;
}
#managerSavesPage .manager-save-delete,
#optionsPage .manager-save-delete{
  min-height:70px;
  height:auto;
  padding:0;
  clip-path:polygon(10px 0,calc(100% - 10px) 0,100% 10px,100% calc(100% - 10px),calc(100% - 10px) 100%,10px 100%,0 calc(100% - 10px),0 10px);
  border-color:#ff6b25;
  background:linear-gradient(180deg,rgba(132,19,9,.95),rgba(31,3,8,.98));
  color:#ffb38a;
  font:900 22px/1 "Rajdhani","Arial Narrow",Arial,sans-serif;
  box-shadow:0 0 16px rgba(255,82,24,.36),inset 0 0 0 1px rgba(255,255,255,.08);
}
#managerSavesPage .manager-save-empty,
#optionsPage .manager-save-empty{
  clip-path:polygon(12px 0,calc(100% - 12px) 0,100% 12px,100% calc(100% - 12px),calc(100% - 12px) 100%,12px 100%,0 calc(100% - 12px),0 12px);
  border:2px solid rgba(190,70,255,.68);
  background:rgba(12,3,28,.86);
  padding:16px;
  color:#d8cdf5;
  font:13px/1.25 Arial,sans-serif;
  text-align:center;
  text-shadow:none;
}
@media(max-width:760px),(max-aspect-ratio:4/5){
  #menu .panel.menu,
  #managerSavesPage .panel.menu,
  #optionsPage .panel.menu,
  #admin .panel.menu{
    width:min(92vw,620px);
    gap:10px;
    max-height:calc(100dvh - 1cm - 18px);
  }
  #menu .panel.menu > button,
  #optionsPage .panel.menu > button,
  #admin .panel.menu > button,
  #managerSavesBack{
    grid-template-columns:52px minmax(0,1fr) 28px;
    gap:8px;
    height:64px;
    min-height:64px;
    padding:0 11px 0 8px;
    clip-path:polygon(13px 0,calc(100% - 13px) 0,100% 13px,100% calc(100% - 13px),calc(100% - 13px) 100%,13px 100%,0 calc(100% - 13px),0 13px);
    font-size:clamp(17px,5vw,24px)!important;
    letter-spacing:.08em;
  }
  #menu .panel.menu > button:before,
  #optionsPage .panel.menu > button:before,
  #admin .panel.menu > button:before,
  #managerSavesBack:before{
    width:36px;
    height:36px;
  }
  #menu .panel.menu > button:after,
  #optionsPage .panel.menu > button:after,
  #admin .panel.menu > button:after,
  #managerSavesBack:after{
    width:10px;
    height:10px;
    border-width:0 3px 3px 0;
  }
}

/* Login/menu polish after the neon menu pass. */
#auth input{
  padding:0 18px!important;
  text-align:center!important;
  font-size:clamp(24px,2.5vw,30px)!important;
  letter-spacing:.03em!important;
}
#menu .panel.menu > button,
#optionsPage .panel.menu > button,
#admin .panel.menu > button,
#managerSavesBack,
#managerSavesPage .manager-save-load,
#optionsPage .manager-save-load,
#managerSavesPage .manager-save-delete,
#optionsPage .manager-save-delete,
#managerSavesPage .manager-save-empty,
#optionsPage .manager-save-empty,
#inviteBox:not(.hide){
  clip-path:none!important;
  border-radius:8px!important;
  overflow:hidden;
}
@media(max-width:760px),(max-aspect-ratio:4/5){
  #auth input{
    padding:0 14px!important;
    font-size:21px!important;
  }
  #menu .panel.menu > button,
  #optionsPage .panel.menu > button,
  #admin .panel.menu > button,
  #managerSavesBack{
    border-radius:7px!important;
  }
}

/* Squad page corrections: keep top attackers on the pitch and keep the squad menu uniform. */
#managerTeamPage .manager-squad-match-actions #managerTeamStatsButton,
#managerTeamPage .manager-squad-match-actions #managerTeamAutoTrainingButton{
  height:56px!important;
  min-width:0!important;
  padding:0 8px!important;
  border:2px solid #9a25ff!important;
  border-radius:4px!important;
  background:linear-gradient(180deg,rgba(31,7,68,.98),rgba(6,1,18,.98))!important;
  color:#fff!important;
  font:900 17px/1 "Rajdhani","Arial Narrow",Arial,sans-serif!important;
  letter-spacing:0!important;
  text-align:center!important;
  box-shadow:inset 0 1px rgba(255,255,255,.14),0 0 14px rgba(154,37,255,.28)!important;
}
#managerTeamPage .manager-squad-match-actions #managerTeamStatsButton:hover,
#managerTeamPage .manager-squad-match-actions #managerTeamStatsButton:focus-visible,
#managerTeamPage .manager-squad-match-actions #managerTeamAutoTrainingButton:hover,
#managerTeamPage .manager-squad-match-actions #managerTeamAutoTrainingButton:focus-visible{
  border-color:#d99bff!important;
  background:linear-gradient(180deg,rgba(58,10,116,.98),rgba(10,1,26,.99))!important;
}
#managerTeamPage .manager-squad-match-actions #managerTeamAutoTrainingButton{
  font-size:15px!important;
}
#managerTeamPage .manager-squad-match-actions #managerTeamAutoTrainingButton.active{
  border-color:#26da48!important;
  background:linear-gradient(180deg,rgba(8,112,31,.95),rgba(4,42,16,.98))!important;
  box-shadow:inset 0 1px rgba(255,255,255,.14),0 0 16px rgba(38,218,72,.32)!important;
}
#managerTeamPage .team-metric b{
  max-width:100%!important;
  white-space:nowrap!important;
  letter-spacing:0!important;
}
#managerTeamPage .team-metric:nth-child(3) b{
  font-size:clamp(15px,2.1vw,20px)!important;
}
#managerTeamPage .formation-player{
  top:max(calc(var(--y) + var(--formation-y-offset, -5mm)), 42px)!important;
}
@media(max-aspect-ratio:4/5){
  #managerTeamPage .manager-squad-match-actions{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  #managerTeamPage .manager-squad-match-actions #managerTeamStatsButton,
  #managerTeamPage .manager-squad-match-actions #managerTeamAutoTrainingButton{
    height:48px!important;
    font-size:13px!important;
  }
  #managerTeamPage .team-metric:nth-child(3) b{
    font-size:12px!important;
  }
  #managerTeamPage .formation-player{
    top:max(calc(var(--y) + var(--formation-y-offset, -5mm)), 38px)!important;
  }
}

/* Save menu: one clear continue entry and full-width save details. */
#managerSaveButton{
  --entry-menu-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23b63cff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='17' y='12' width='30' height='44' rx='4'/%3E%3Cpath d='M24 12h16v8H24zM25 34l7-7 7 7M25 44l7-7 7 7'/%3E%3Ccircle cx='25' cy='48' r='2'/%3E%3Ccircle cx='39' cy='48' r='2'/%3E%3C/svg%3E")!important;
}
#managerSavesPage .manager-save-load b,
#optionsPage .manager-save-load b,
#managerSavesPage .manager-save-load small,
#optionsPage .manager-save-load small{
  grid-column:2!important;
  min-width:0!important;
}
#managerSavesPage .manager-save-load b,
#optionsPage .manager-save-load b{
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
  line-height:1.08!important;
}
#managerSavesPage .manager-save-load small,
#optionsPage .manager-save-load small{
  width:100%!important;
  font-size:12px!important;
  line-height:1.25!important;
}
@media(max-aspect-ratio:4/5){
  #managerSavesPage .manager-save-load,
  #optionsPage .manager-save-load{
    grid-template-columns:30px minmax(0,1fr)!important;
    gap:8px!important;
    padding:8px 10px!important;
  }
  #managerSavesPage .manager-save-load b,
  #optionsPage .manager-save-load b{
    font-size:14px!important;
  }
  #managerSavesPage .manager-save-load small,
  #optionsPage .manager-save-load small{
    font-size:11px!important;
  }
}
.team-flag.flag-plain,.line-flag.flag-plain{--flag-bg:var(--shirt)}
.team-flag.flag-vertical,.line-flag.flag-vertical{--flag-bg:linear-gradient(90deg,var(--trim) 0 28%,var(--shirt) 28% 72%,var(--trim) 72% 100%)}
.team-flag.flag-horizontal,.line-flag.flag-horizontal{--flag-bg:linear-gradient(180deg,var(--shirt) 0 58%,var(--accent) 58% 72%,var(--trim) 72% 100%)}
.team-flag.flag-stripes-v,.line-flag.flag-stripes-v{--flag-bg:repeating-linear-gradient(90deg,var(--shirt) 0 16%,var(--trim) 16% 32%)}
.team-flag.flag-stripes-h,.line-flag.flag-stripes-h,.team-flag.flag-hoops,.line-flag.flag-hoops{--flag-bg:repeating-linear-gradient(180deg,var(--shirt) 0 18%,var(--trim) 18% 36%)}
.team-flag.flag-halves,.line-flag.flag-halves{--flag-bg:linear-gradient(90deg,var(--shirt) 0 50%,var(--trim) 50% 100%)}
.team-flag.flag-quarters,.line-flag.flag-quarters{--flag-bg:linear-gradient(90deg,var(--shirt) 0 50%,var(--trim) 50% 100%);background-image:linear-gradient(90deg,var(--shirt) 0 50%,var(--trim) 50% 100%),linear-gradient(180deg,transparent 0 50%,rgba(0,0,0,.22) 50% 100%)}
.team-flag.flag-sash,.line-flag.flag-sash{--flag-bg:linear-gradient(135deg,var(--shirt) 0 38%,var(--trim) 38% 54%,var(--shirt) 54% 100%)}
.team-flag.flag-cross,.line-flag.flag-cross{--flag-bg:linear-gradient(90deg,transparent 0 39%,var(--trim) 39% 61%,transparent 61% 100%),linear-gradient(180deg,var(--shirt) 0 36%,var(--trim) 36% 64%,var(--shirt) 64% 100%)}
.team-flag.flag-check,.line-flag.flag-check{--flag-bg:repeating-conic-gradient(var(--shirt) 0 25%,var(--trim) 0 50%) 0 0/10px 10px}
.team-logo{width:22px;height:22px;object-fit:contain;object-position:center;background:transparent!important;border:0!important;box-shadow:none!important;cursor:zoom-in}
.team-logo:before{display:none!important}
.line-flag.team-logo-line{display:grid;place-items:center;background:transparent!important;border:0!important;box-shadow:none!important}
.line-flag.team-logo-line:before{display:none!important}
.line-flag.team-logo-line img{display:block;width:100%;height:100%;object-fit:contain;cursor:zoom-in}
.app-top-bar .top-team-flag .team-logo{width:42px!important;height:42px!important}
.team-profile-hero .team-logo{width:50px!important;height:50px!important}
.match-report-team .team-logo{width:30px!important;height:30px!important}
.logo-modal{position:fixed;inset:0;z-index:120;display:grid;place-items:center;padding:18px;background:rgba(0,0,0,.76)}
.logo-modal-box{position:relative;display:grid;place-items:center;width:min(260px,72vw);aspect-ratio:1;border:2px solid #7536d2;border-radius:8px;background:radial-gradient(circle at 50% 38%,rgba(117,54,210,.2),rgba(5,2,10,.94) 62%);box-shadow:0 24px 80px rgba(0,0,0,.78),0 0 0 1px rgba(255,255,255,.12),inset 0 1px rgba(255,255,255,.14)}
.logo-modal-box img{display:block;width:84%;height:84%;object-fit:contain;filter:drop-shadow(0 8px 12px rgba(0,0,0,.45))}
.logo-modal-close{position:absolute;right:8px;top:8px;width:32px;height:28px;padding:0;border-color:#ff3048!important;border-radius:6px!important;background:linear-gradient(180deg,#8f1230,#260510)!important;font-size:12px!important;line-height:1!important}
#managerMsg,#managerMsg.show,#managerMsg.thinking{display:none!important}
#managerActionList button[hidden],
#managerActionList button.hide,
#managerActionMenu.open #managerActionList button[hidden],
#managerActionMenu.open #managerActionList button.hide{
  display:none!important;
}
#managerActionList .manager-turn-alerts[hidden],
#managerActionList .manager-turn-alerts.hide,
#managerActionMenu.open #managerActionList .manager-turn-alerts[hidden],
#managerActionMenu.open #managerActionList .manager-turn-alerts.hide{
  display:none!important;
}
.touchlines-page{
  align-content:start!important;
}
.touchlines-head{
  position:relative;
  z-index:2;
  min-height:70px!important;
  padding-bottom:12px!important;
}
.touchlines-pressure{
  align-self:start!important;
  grid-template-rows:auto 12px auto!important;
  gap:3px!important;
  min-height:0!important;
  height:auto!important;
  padding:4px 8px!important;
  margin-top:4px!important;
  border-color:rgba(255,221,69,.48)!important;
  box-shadow:inset 0 1px rgba(255,255,255,.08)!important;
}
.touchlines-pressure-head{
  gap:6px!important;
  font-size:9px!important;
}
.touchlines-pressure-head b{
  font-size:12px!important;
}
.touchlines-pressure-track{
  height:12px!important;
  min-height:12px!important;
}
.touchlines-pressure-ball{
  width:18px!important;
  height:18px!important;
}
.touchlines-pressure-score{
  font-size:10px!important;
}
@media(max-aspect-ratio:4/5){.app-top-bar .top-team-flag .team-logo{width:36px!important;height:36px!important}.team-profile-hero .team-logo{width:40px!important;height:40px!important}.logo-modal-box{width:min(230px,74vw)}}

/* Squad pitch polish */
#managerTeamPage .manager-squad-match-actions.viewer{
  grid-template-columns:1fr!important;
}
#managerTeamPage .manager-squad-match-actions.viewer #managerTeamStatsButton{
  width:100%!important;
}
#managerTeamPage .formation-player{
  grid-template-rows:auto auto auto!important;
  align-content:center!important;
  overflow:visible!important;
}
#managerTeamPage .formation-player:after{
  display:none!important;
}
#managerTeamPage .formation-rating{
  align-self:start!important;
  margin-top:0!important;
}
#managerTeamPage .formation-rating-boosts{
  position:absolute!important;
  left:50%!important;
  top:calc(100% + 3px)!important;
  z-index:8!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  justify-items:center!important;
  gap:1px!important;
  width:100%!important;
  min-width:0!important;
  transform:translateX(-50%)!important;
  pointer-events:none!important;
}
#managerTeamPage .formation-rating-boosts .formation-form-ovr{
  display:block!important;
  margin:0!important;
  padding:0 2px!important;
  max-width:100%!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  color:#26da48;
  font:900 10px/1 "Rajdhani","Arial Narrow",Arial,sans-serif!important;
  letter-spacing:0!important;
  text-shadow:1px 2px #000!important;
}
#managerTeamPage .formation-rating-boosts .formation-form-ovr.down{
  color:#ff6262!important;
}
#managerTeamPage .formation-player.has-formation-boost .formation-form-dot{
  bottom:-28px!important;
}
#managerTeamPage .formation-head.long-role{
  width:48px!important;
  font-size:11px!important;
  letter-spacing:0!important;
}
@media(max-aspect-ratio:4/5){
  #managerTeamPage .formation-rating-boosts .formation-form-ovr{
    font-size:8px!important;
  }
  #managerTeamPage .formation-player.has-formation-boost .formation-form-dot{
    bottom:-25px!important;
  }
  #managerTeamPage .formation-head.long-role{
    width:39px!important;
    font-size:9.5px!important;
  }
}

/* Startup loading should match the later compact loading overlay, without the empty app frame. */
#loading.loading-screen{
  position:fixed!important;
  inset:0!important;
  z-index:90!important;
  display:grid!important;
  place-items:center!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:#05030a!important;
  box-shadow:none!important;
}
#loading.loading-screen:before,
#loading.loading-screen:after{
  display:none!important;
  content:none!important;
}
#loading.loading-screen .loading-card{
  width:min(348px,70vw)!important;
  max-width:70vw!important;
  padding:18px 22px!important;
  border:0!important;
  border-radius:0!important;
  background:rgba(0,0,0,.86)!important;
  box-shadow:0 18px 56px rgba(0,0,0,.48)!important;
}
#loading.loading-screen .loading-bar{
  height:11px!important;
  overflow:hidden!important;
  border-color:rgba(255,255,255,.22)!important;
  background:#05030a!important;
  box-shadow:inset 0 1px rgba(255,255,255,.12),0 10px 28px rgba(0,0,0,.42)!important;
}
#loading.loading-screen .loading-bar span{
  background:linear-gradient(90deg,#26da48,#ffdd45,#26da48)!important;
}
#manager.startup-loading .manager-panel{
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
@media(max-aspect-ratio:4/5){
  #loading.loading-screen .loading-card{
    width:min(348px,70vw)!important;
  }
}

.hide,
.screen.hide,
#loading.loading-screen.hide,
#thinkingToast.hide{
  display:none!important;
}
