/*  FPLScope — shared application styles  */
:root{/* Baggrunde — knækket hvid og grå */ --bg:#F4F4F2;--bg2:#EAEAE7;--panel:#FFFFFF;--panel2:#F5F5F3;--fill:#EDEDEA;--fill2:#E0E0DC;--line:#E3E3DF;--line2:#C8C8C3;/* Kulsort og gråtoner */ --ink:#141414;--text:#141414;--text2:#3D3D3B;--muted:#7A7A75;/* Den ene skarpe farve: kobber */ --accent:#B4653A;--accent-dark:#8F4E2B;--accent-soft:#D4885C;--accent-tint:#F7EDE6;--accent-line:#EBDCD1;/* "clay" = strukturel kulsort (2. dataserie, kaptajnsmærke) */ --clay:#141414;/* Alarm: dyb brændt kobber — samme kulør, højere alvor */ --danger:#8F3D1E;--danger-tint:#F5E8E1;/* Neutraliseret: bruges nu som gråtoner *//* Bane: kulsort *//* Semantiske tokens — de eneste der skal vendes i dark mode */ --on-ink:#F4F4F2;--on-accent:#FFFFFF;--placeholder:#A3A39E;--header-bg:rgba(244,244,242,.86);--chip-ink:rgba(20,20,20,.92);--chip-ink-line:rgba(255,255,255,.16);--ok:#2f6f62;--ok-line:#b8d9cc;--ok-tint:#f1f8f5;--ok-tint2:#e8f4ef;--warn-line:#e4b6ae;--scrim:rgba(20,20,20,.42);--ok-solid:#2F6F62;--ok-solid-line:#24564C;--on-ok:#FFFFFF;--radius:14px;--radius-sm:10px;--shadow:0 1px 2px rgba(20,20,20,.05), 0 14px 30px -22px rgba(20,20,20,.30);--shadow-lg:0 2px 8px rgba(20,20,20,.06), 0 34px 70px -34px rgba(20,20,20,.42);--display:Inter,system-ui,sans-serif;--mono:"JetBrains Mono",ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;--squad-name-size:12px;--squad-name-size-mobile:11px;--squad-name-line:1.12;--squad-name-weight:800;--squad-club-size:9.5px;--squad-club-size-mobile:9px;--squad-club-line:1.1;--squad-club-weight:650;--squad-meta-size:10px;--squad-meta-size-mobile:9px;--squad-meta-line:1.1;--squad-primary-gap:8px;--squad-secondary-gap:3px;--squad-row-gap:2px;--squad-name-club-gap:1px;--turf:#9DAE82;--turf2:#93A578;--chip-ink-text:#F4F4F2;--on-danger:#FFFFFF;--fplscope-card-column-gap:18px;}
*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{margin:0;font-family:Inter,system-ui,sans-serif;background:var(--bg);background-image: radial-gradient(1100px 520px at 88% -12%,rgba(180,101,58,.07),transparent 60%), linear-gradient(180deg,var(--bg) 0%,var(--bg) 55%,var(--bg2) 100%);color:var(--text);-webkit-font-smoothing:antialiased;}
button,
input,
select{font:inherit;}
h1,
h2,
h3,
.brand{font-family:var(--display);font-weight:700;}
.shell{width:min(1180px,calc(100% - 32px));margin:auto;}
/* ---------- Header ---------- */
.site-header{border-bottom:1px solid var(--line);background:var(--header-bg);backdrop-filter:blur(16px) saturate(1.1);position:sticky;top:0;z-index:20;}
.header-inner{height:74px;display:flex;align-items:center;justify-content:space-between;}
.brand{display:flex;align-items:center;gap:11px;color:var(--text);font-weight:700;letter-spacing:-.02em;text-decoration:none;font-size:18px;line-height:0;}
.live-dot{border:1px solid var(--line2);border-radius:999px;padding:7px 11px;color:var(--muted);font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;font-family:Inter,system-ui,sans-serif;}
/* ---------- Hero ---------- */
.hero{padding:82px 0 66px;}
.hero-grid{display:grid;grid-template-columns:1.35fr .65fr;gap:62px;align-items:center;}
.eyebrow,
.panel-label{text-transform:uppercase;}
.hero h1{font-size:clamp(40px,5.6vw,70px);line-height:1.02;margin:18px 0 24px;max-width:850px;}
.hero-copy{font-size:18px;line-height:1.65;color:var(--text2);max-width:720px;}
.manager-form{margin-top:34px;max-width:720px;}
.manager-form label{display:block;margin-bottom:9px;font-size:13px;font-weight:600;color:var(--text2);}
.input-row{display:flex;gap:10px;}
.input-row input{flex:1;min-width:0;background:var(--panel);color:var(--text);border:1px solid var(--line2);border-radius:14px;padding:16px 18px;outline:none;transition:border-color .15s ease,box-shadow .15s ease;}
.input-row input::placeholder{color:var(--placeholder);}
.input-row input:focus{border-color:var(--accent);box-shadow:0 0 0 4px rgba(180,101,58,.14);}
.primary-btn,
.ghost-btn{border:0;border-radius:14px;padding:0 20px;font-weight:700;cursor:pointer;font-family:Inter,system-ui,sans-serif;}
.primary-btn{transition:background .15s ease,transform .1s ease;}
.primary-btn:active{transform:translateY(1px);}
.primary-btn:disabled{opacity:.5;cursor:wait;}
.ghost-btn{background:var(--panel);color:var(--text2);border:1px solid var(--line2);min-height:44px;transition:border-color .15s ease,color .15s ease;}
.ghost-btn:disabled{opacity:.58;cursor:not-allowed;border-color:var(--line2);color:var(--muted);}
:where(button,
a,
input,
select):focus-visible{outline:2px solid var(--accent);outline-offset:2px;}
.muted,
.disclaimer{color:var(--muted);}
.status{min-height:24px;margin-top:12px;color:var(--muted);font-size:13px;}
.status.error{color:var(--danger);}
.hero-card,
.panel,
.list-panel{background:var(--panel);border:1px solid var(--line);box-shadow:var(--shadow);}
.hero-card{padding:26px;}
.hero-card-wrap{position:relative;display:block;}
.hero-beta-stamp{position:absolute;top:44px;right:40px;width:156px;max-width:min(156px,25vw);transform:rotate(24deg);transform-origin:center center;z-index:4;pointer-events:auto;opacity:.55;filter:none;scale:1;transition:opacity .18s ease,filter .18s ease,scale .18s ease;}
.hero-beta-stamp:hover{opacity:1;scale:1.1;filter:brightness(1.12) saturate(1.16) drop-shadow(0 9px 15px rgba(0,0,0,.34));}

.mini-heading{display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-weight:700;font-size:11px;letter-spacing:.06em;}
.rating-preview{display:flex;gap:18px;align-items:center;margin:32px 0;}
.score-ring{width:92px;height:92px;border:7px solid var(--accent-soft);border-radius:50%;display:grid;place-content:center;text-align:center;}
.score-ring strong{font-size:27px;}
.score-ring span{font-size:10px;color:var(--muted);}
.rating-preview>div:last-child{display:flex;flex-direction:column;gap:5px;}
.rating-preview small{color:var(--muted);font-weight:700;font-size:11px;letter-spacing:.08em;}
.rating-preview strong{font-size:19px;}
.rating-preview span{color:var(--muted);font-size:13px;}
.preview-list{border-top:1px solid var(--line);}
.preview-list div{display:flex;justify-content:space-between;gap:20px;padding:15px 0;border-bottom:1px solid var(--line);font-size:13px;}
.preview-list div:last-child{border-bottom:0;}
.preview-list span{color:var(--muted);}
/* ---------- Dashboard ---------- */
.dashboard{padding:54px 0 70px;}
.hidden{display:none!important;}
.dashboard-head,
.section-head{display:flex;align-items:end;justify-content:space-between;gap:20px;}
.dashboard-head h2,
.section-head h2{margin:6px 0 0;font-size:31px;}
.top-grid{display:grid;grid-template-columns:.7fr 1.3fr 1fr;gap:16px;margin-top:26px;}
.panel{padding:22px;}
.big-rating{margin:16px 0 10px;}
.big-rating strong{font-size:62px;line-height:1;}
.big-rating span{color:var(--muted);}
.action-panel h3,
.panel h3{font-size:22px;margin:16px 0 8px;letter-spacing:-.02em;}
.panel p{color:var(--text2);line-height:1.55;}
.compact-stats{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:20px 0 0;}
.compact-stats div{display:flex;flex-direction:column;gap:5px;}
.compact-stats dt{font-size:11px;color:var(--muted);text-transform:uppercase;}
.compact-stats dd{margin:0;font-weight:700;}
.advice-grid{display:grid;grid-template-columns:1fr 1fr 1.3fr;gap:16px;margin-top:16px;}
.player-callout{margin-top:17px;}
.player-callout strong{display:block;font-size:23px;font-family:var(--display);letter-spacing:-.02em;}
.player-callout span{display:block;color:var(--muted);font-size:13px;margin-top:5px;}
.section-head{margin:52px 0 18px;}
.section-head.small{margin-top:38px;}
/* ---------- Banen ---------- */
.pitch-wrap{border:1px solid var(--line);padding:14px;background:var(--panel2);box-shadow:var(--shadow);}
.pitch{min-height:620px;position:relative;overflow:hidden;background: linear-gradient(90deg,rgba(255,255,255,.07) 50%,transparent 50%), linear-gradient(180deg,var(--turf),var(--turf2));background-size:16.666% 100%,100% 100%;}
.pitch:before{content:"";position:absolute;inset:50% 0 auto;border-top:2px solid rgba(255,255,255,.62);}
.pitch:after{content:"";position:absolute;width:120px;height:120px;border:2px solid rgba(255,255,255,.62);border-radius:50%;left:50%;top:50%;transform:translate(-50%,-50%);}
.pitch-row{position:absolute;left:3%;right:3%;display:flex;justify-content:space-around;z-index:2;}
.pitch-player{text-align:center;position:relative;}
.pitch-player strong{display:block;margin-top:9px;}
.pitch-player small{font-size:10px;color:var(--text2);}
.pitch-player .player-price,
.pitch-player .player-fixture,
.pitch-player .player-coach-score{display:block;margin-top:4px;}
.pitch-player strong,
.pitch-player .player-price,
.pitch-player .player-fixture,
.pitch-player .player-coach-score{white-space:nowrap;overflow-wrap:normal;word-break:normal;}
.pitch-player .player-price,
.pitch-player .player-fixture,
.pitch-player .player-coach-score{width:max-content;min-width:100%;position:relative;left:50%;transform:translateX(-50%);}
.captain-mark,
.vice-mark{position:absolute;top:-7px;right:10px;width:24px;height:24px;border-radius:50%;display:grid;place-items:center;font-size:11px;font-weight:800;z-index:4;box-shadow:0 3px 8px rgba(20,20,20,.28);}
/* ---------- Lister & tabeller ---------- */
.content-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;}
.list-panel{overflow:hidden;}
.list-row{display:grid;grid-template-columns:auto 1fr auto;gap:14px;align-items:center;padding:16px 18px;border-bottom:1px solid var(--line);}
.list-row:last-child{border-bottom:0;}
.rank-num{width:30px;height:30px;border-radius:9px;border:1px solid var(--accent-line);display:grid;place-items:center;font-weight:700;}
.list-row strong{display:block;}
.list-row small{color:var(--muted);}
.tag{border-radius:999px;padding:6px 9px;font-size:10px;font-weight:700;letter-spacing:.03em;border:1px solid var(--accent-line);}
.tag.sell{background:var(--danger-tint);color:var(--danger);border-color:#E8D6CC;}
.fixture-table{overflow:auto;padding:0;}
.fixture-grid{min-width:700px;display:grid;grid-template-columns:1.5fr repeat(5,1fr);}
.fixture-cell{padding:15px 14px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);font-size:12px;}
.fixture-cell.head{color:var(--muted);text-transform:uppercase;font-size:10px;background:var(--panel2);}
.fixture-cell.player{font-weight:700;}
.fdr{display:inline-grid;place-items:center;height:26px;border-radius:8px;color:var(--ink);}
.disclaimer{font-size:11px;line-height:1.6;margin-top:36px;}
.site-footer{border-top:1px solid var(--line);padding:28px 0;color:var(--muted);font-size:12px;}
.site-footer span{margin:0 8px;}
@media(max-width:900px){
  .hero-grid,
.top-grid,
.advice-grid,
.content-grid{grid-template-columns:1fr;}
  .hero{padding-top:48px;}
  .pitch{min-height:560px;}
  .dashboard-head{align-items:flex-start;}
  .hero-card-wrap{max-width:420px;justify-self:center;width:100%;margin-top:18px;}
  .hero-beta-stamp{top:36px;right:30px;width:132px;max-width:31vw;transform:rotate(22deg);opacity:.48;}
}

@media(max-width:580px){
  .shell{width:min(100% - 20px,1180px);}
  .input-row{flex-direction:column;}
  .primary-btn{min-height:54px;}
  .hero h1{font-size:40px;}
  .hero-copy{font-size:16px;}
  .pitch{min-height:520px;}
  .dashboard-head,
.section-head{align-items:flex-start;flex-direction:column;}
  .compact-stats{grid-template-columns:1fr 1fr;}
  .hero-card-wrap{margin-top:24px;}
  .hero-beta-stamp{top:30px;right:22px;width:108px;max-width:29vw;transform:rotate(20deg);opacity:.42;}
}

/* ---------- Manager ID hjælp ---------- */
.manager-id-example{opacity:.95;}
/* ---------- Pre-season / builder ---------- */
.compact-btn{min-height:44px;padding:0 16px;margin-top:10px;}
.preseason-notice{margin-top:24px;border-color:var(--accent-line);background:linear-gradient(180deg,var(--accent-tint),var(--panel));}
.preseason-notice h3{margin-bottom:6px;}
.player-tools{display:grid;grid-template-columns:1.5fr .8fr .9fr;gap:10px;margin-bottom:12px;}
.player-tools input,
.player-tools select{width:100%;background:var(--panel);color:var(--text);border:1px solid var(--line2);border-radius:11px;padding:11px 13px;outline:none;transition:border-color .15s ease,box-shadow .15s ease;}
.player-tools input:focus,
.player-tools select:focus{border-color:var(--accent);box-shadow:0 0 0 3px rgba(180,101,58,.13);}
.player-table-wrap{padding:0;overflow-x:auto;overflow-y:visible;}
.player-table{min-width:1500px;max-height:none;overflow:visible;}
.preseason-grid{display:grid;grid-template-columns:1.3fr .85fr .85fr;gap:18px;align-items:start;}
.preseason-grid h2{white-space:nowrap;}
.club-grid{min-width:760px;}
.builder-head{align-items:center;}
.validation{display:flex;gap:8px;align-items:center;padding:6px 0;color:var(--muted);font-size:12px;}
.validation span{width:22px;height:22px;display:grid;place-items:center;border-radius:50%;font-weight:800;}
.validation.ok{color:var(--text2);}
.validation.bad{color:var(--danger);}
#builder-analysis .pitch-wrap{margin-top:18px;}
@media(max-width:980px){
  .preseason-summary,
.preseason-grid{grid-template-columns:1fr;}
  .preseason-grid h2{white-space:normal;}
  .player-tools{grid-template-columns:1fr 1fr;}
  .player-tools input{grid-column:1/-1;}
}
@media(max-width:650px){
  .player-tools{grid-template-columns:1fr;}
  .player-tools input{grid-column:auto;}
}
/* ---------- Spillerdata ---------- */
.player-data-note{margin:7px 0 0;font-size:12px;max-width:760px;}
.availability{display:inline-block;border-radius:999px;padding:5px 8px;font-size:10px;font-weight:700;white-space:nowrap;border:1px solid transparent;}
.transfer-in{color:var(--accent-dark);font-weight:600;}
.transfer-out{color:var(--danger);font-weight:600;}
/* ---------- Klubbernes kampprogram ---------- */
.club-fixture-ranking{min-width:1040px;grid-template-columns:.38fr 1.35fr .72fr repeat(5,1fr);}
.club-fixture-ranking .rank-cell{font-weight:800;color:var(--accent-dark);text-align:center;}
.club-fixture-ranking .avg-fdr strong,
.club-fixture-ranking .avg-fdr small,
.club-fixture-ranking .fixture-cell small{display:block;}
.club-fixture-ranking .avg-fdr small,
.club-fixture-ranking .fixture-cell small{margin-top:4px;color:var(--muted);font-size:10px;}
/* ---------- Startopstilling & bænk ---------- */
.builder-team-view{margin:18px 0 24px;}
.bench-panel{margin-top:12px;}
.builder-bench{gap:12px;margin-top:12px;}
.bench-player{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:6px;min-width:0;min-height:174px;padding:11px 8px 12px;text-align:center;border:1px solid var(--line);border-radius:14px;background:var(--panel2);}
.bench-order{width:28px;height:22px;border-radius:999px;display:grid;place-items:center;font-weight:800;font-size:10px;line-height:1;flex:0 0 auto;}
.bench-kit-stack{display:flex;justify-content:center;align-items:center;gap:8px;}
.bench-kit-stack .mini-shirt{width:40px;height:40px;}
.bench-player-info{display:flex;flex-direction:column;align-items:center;width:100%;min-width:0;}
.bench-player-info strong,
.bench-player-info small{white-space:nowrap;overflow-wrap:normal;word-break:normal;}
.bench-player-info strong{width:max-content;margin:0 0 2px;font-size:11px;line-height:1.2;}
.bench-player-info small{display:block;font-size:10px;line-height:1.35;color:var(--muted);}
.bench-position{color:var(--muted)!important;margin-top:1px!important;}
.bench-price,
.bench-fixture,
.bench-coach-score{display:block!important;width:max-content;margin-top:4px!important;font-size:9px!important;line-height:1.2!important;color:var(--text2)!important;font-weight:600;}
.bench-price b,
.bench-fixture b,
.bench-coach-score b{color:var(--muted);}
@media(max-width:580px){
  .pitch-player strong{white-space:nowrap;}
  .pitch-player strong span{display:none;}
  .pitch-player .player-price{display:block;}
  .pitch-player .player-fixture,
.pitch-player .player-coach-score{display:none;}
}
/* ---------- Coach Score ---------- */
.player-coach-score,
.bench-coach-score{display:block;margin-top:3px;font-size:.72rem;line-height:1.2;color:var(--muted);}
.coach-score-help{margin:-2px 0 14px;font-size:.82rem;color:var(--muted);}
/* ---------- Drag & drop ---------- */
.drag-help{margin:0 4px 10px;color:var(--muted);font-size:12px;}
#builder-team-view .pitch-player[draggable="true"],
#builder-team-view .bench-player[draggable="true"]{cursor:grab;transition:opacity .15s ease,transform .15s ease,outline-color .15s ease;}
#builder-team-view .pitch-player[draggable="true"]:active,
#builder-team-view .bench-player[draggable="true"]:active{cursor:grabbing;}
#builder-team-view .dragging{opacity:.45;}
#builder-team-view .drag-over{outline:2px solid var(--clay);outline-offset:3px;transform:translateY(-8px);}
#builder-team-view .pitch-player.drag-over,
#builder-team-view .bench-player.drag-over{outline:2px solid var(--clay);outline-offset:3px;border-radius:10px;}
/* ---------- Budgetlinje ---------- */
.squad-money-bar{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0 8px;}
.squad-money-bar>span{display:flex;align-items:baseline;gap:8px;padding:9px 12px;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--panel);}
.squad-money-bar small{color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.05em;}
.squad-money-bar strong{font-size:17px;}
.squad-money-bar .money-left strong{color:var(--accent-dark);}
.squad-money-bar .money-left strong.over-budget{color:var(--danger);}
/* ---------- Arbejdsflade: bane + spillerpulje ---------- */
.squad-workspace{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(330px,.72fr);gap:20px;align-items:start;margin-top:18px;}
.squad-workspace-main{grid-column:1;min-width:0;}
.player-pool-column{grid-column:2;position:relative;min-width:0;}
.squad-workspace .section-head.small{margin-top:20px;}
.player-pool-head{margin-bottom:12px!important;}
.player-pool-column .player-tools{grid-template-columns:1fr 1fr;gap:9px;padding:12px;margin-bottom:10px;}
.player-pool-column .player-tools input{grid-column:1/-1;}
.player-pool-column .player-table-wrap{padding:0;overflow:visible;}
.player-pool-column .player-table{min-width:0;max-height:1045px;overflow-y:auto;overflow-x:hidden;scrollbar-gutter:stable;}
.player-pool-count{padding:11px 13px;border-bottom:1px solid var(--line);font-size:11px;color:var(--muted);background:var(--panel2);}
.player-pool-row{display:grid;grid-template-columns:1fr;gap:9px;min-height:112px;padding:12px 13px;border-bottom:1px solid var(--line);cursor:grab;transition:opacity .15s ease,background .15s ease,box-shadow .15s ease;}
.player-pool-row:last-child{border-bottom:0;}
.player-pool-row.dragging{opacity:.45;}
.player-pool-row.in-squad{cursor:default;}
.pool-player-main{display:flex;align-items:center;gap:10px;}
.pool-player-main .mini-shirt{flex:0 0 auto;}
.pool-player-info{flex:1;min-width:0;}
.pool-player-main strong,
.pool-player-main small{display:block;}
.pool-player-main small{color:var(--muted);margin-top:2px;}
.pool-player-main .availability{margin-top:5px;}
.pool-player-name-line{display:flex;align-items:center;justify-content:space-between;gap:10px;}
.pool-player-name-line strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.pool-stat-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:6px;}
.pool-stat-grid span{padding:6px 5px;border-radius:8px;background:var(--fill);text-align:center;}
.pool-stat-grid small,
.pool-stat-grid strong{display:block;}
.pool-stat-grid small{font-size:9px;color:var(--muted);text-transform:uppercase;}
.pool-stat-grid strong{font-size:11px;margin-top:2px;}
.pool-player-top{display:grid;grid-template-columns:minmax(0,1fr) minmax(118px,.85fr);gap:10px;align-items:start;}
.pool-top-extra{display:grid;gap:2px;text-align:right;color:var(--muted);font-size:9px;line-height:1.3;min-width:0;}
.pool-top-extra small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.pool-top-extra b{color:var(--text);}
.squad-workspace-main #builder-team-view .pitch{min-height:585px;}
@media(min-width:1051px){
  .squad-workspace-main #builder-team-view .pitch{min-height:650px;}
  .player-pool-column .player-table{max-height:760px;}
  .player-pool-column .player-tools{grid-template-columns:1fr 1fr;gap:7px;padding:10px;}
  .player-pool-row{padding:10px 11px;}
  .pool-stat-grid{gap:4px;}
  .pool-stat-grid span{padding:5px 3px;}
  .squad-workspace-main #builder-team-view .pitch-wrap{padding:12px;}
  .squad-workspace-main #builder-team-view .pitch-row{left:1.5%;right:1.5%;}
  .squad-workspace-main #builder-team-view .pitch-player{width:148px;}
}
@media(max-width:1050px){
  .squad-workspace{grid-template-columns:1fr;}
  .player-pool-column{order:2;grid-column:auto;}
  .squad-workspace-main{order:1;grid-column:auto;}
  .player-pool-column .player-tools{grid-template-columns:1.5fr .8fr .9fr;}
  .player-pool-column .player-tools input{grid-column:auto;}
}
@media(max-width:650px){
  .player-pool-column .player-tools{grid-template-columns:1fr;}
  .pool-stat-grid{grid-template-columns:repeat(3,1fr);}
  .pool-player-top{grid-template-columns:1fr;}
  .pool-top-extra{text-align:left;}
}
/* ---------- Regler / hjælpepanel ---------- */
.squad-help-panel{margin-top:16px;}
.rules-help-grid{display:grid;grid-template-columns:1fr 1fr;gap:28px;}
.manager-help-inside{border-left:1px solid var(--line);padding-left:28px;color:var(--muted);font-size:13px;line-height:1.65;}
.manager-help-inside p{margin:10px 0 0;}
.manager-help-inside strong{color:var(--text);}
.manager-help-inside code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:var(--accent-dark);overflow-wrap:anywhere;}
.coach-help-label{margin-top:18px;}
@media(max-width:760px){
  .rules-help-grid{grid-template-columns:1fr;}
  .manager-help-inside{border-left:0;border-top:1px solid var(--line);padding-left:0;padding-top:20px;}
}
@media(max-width:640px){
  .header-inner{height:auto;min-height:72px;padding:10px 0;gap:10px;}
}
/* ---------- Kolonnejustering i analyselisterne ---------- */
/* ---------- Trøjer (skabelon + klubfarver) ---------- */
.shirt,
.mini-shirt,
.player-popup-shirt{position:relative;display:block;background:transparent!important;clip-path:none!important;border:0!important;box-shadow:none!important;overflow:visible!important;isolation:isolate;}
.shirt{width:54px;height:54px;margin:auto;}
.mini-shirt{width:34px;height:34px;}
.player-popup-shirt{width:68px;height:68px;margin:0;flex:0 0 auto;}
.shirt-fill,
.shirt-overlay,
.shirt-photo-fill{position:absolute;inset:0;width:100%;height:100%;display:block;}
.shirt-fill{background:var(--kit-fill,linear-gradient(145deg,#EDEDEA,#C8C8C3));background-size:var(--kit-size,auto)!important;background-position:var(--kit-position,center)!important;background-repeat:var(--kit-repeat,repeat)!important;-webkit-mask:url('image/shirt.png?v=18.98') center / contain no-repeat;mask:url('image/shirt.png?v=18.98') center / contain no-repeat;}
.shirt-photo-fill{object-fit:contain;pointer-events:none;-webkit-mask:url('image/shirt.png?v=18.98') center / contain no-repeat;mask:url('image/shirt.png?v=18.98') center / contain no-repeat;}
.shirt-overlay{object-fit:contain;pointer-events:none;mix-blend-mode:multiply!important;opacity:.88;}
.shirt::before,
.shirt::after,
.mini-shirt::before,
.mini-shirt::after,
.player-popup-shirt::before,
.player-popup-shirt::after{content:none!important;}
.shirt{filter:drop-shadow(0 4px 7px rgba(20,20,20,.22)) saturate(1.02)!important;}
.mini-shirt{filter:drop-shadow(0 2px 4px rgba(20,20,20,.18)) saturate(1.02)!important;}
.player-popup-shirt{filter:drop-shadow(0 5px 9px rgba(20,20,20,.22)) saturate(1.02)!important;}
/* ---------- Spiller-popup ---------- */
.player-popup{width:min(720px,calc(100% - 28px));max-height:88vh;padding:0;border:1px solid var(--line);background:var(--panel);color:var(--text);box-shadow:var(--shadow-lg);overflow:auto;}
.player-popup::backdrop{background:rgba(20,20,20,.42);backdrop-filter:blur(4px);}
.player-popup-shell{padding:24px;}
.player-popup-close{position:absolute;top:14px;right:14px;width:36px;height:36px;border:1px solid var(--line2);border-radius:50%;background:var(--panel2);color:var(--text2);font-size:24px;line-height:1;cursor:pointer;}
.player-popup-close:hover{border-color:var(--accent);color:var(--accent);background:var(--accent-tint);}
.player-popup-head{align-items:center;gap:16px;padding-right:48px;}
.player-popup-head h2{margin:3px 0;font-size:30px;letter-spacing:-.03em;}
.player-popup-head p{margin:0;}
.player-popup-stats{display:grid;margin-top:22px;}
.player-popup-stat{border:1px solid var(--line);background:var(--panel2);}
.player-popup-stat small,
.player-popup-stat strong,
.player-popup-stat span{display:block;}
.player-popup-stat small{text-transform:uppercase;color:var(--muted);}
.player-popup-stat span{color:var(--muted);}
.player-popup-section{margin-top:24px;}
.player-popup-section-head{margin:0 0 12px;}
.player-popup-section-head h2{font-size:23px;}
.player-popup-form{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:12px;color:var(--muted);font-size:12px;}
.player-popup-form strong{color:var(--text);font-size:18px;}
.player-popup-graph{margin:0 0 12px;padding:12px 14px;border:1px solid var(--line);border-radius:14px;background:var(--panel2);}
.player-popup-graph-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap;margin-bottom:10px;}
.player-popup-graph-head strong{display:block;font-size:15px;letter-spacing:-.02em;color:var(--text);}
.player-popup-graph-head small{display:block;color:var(--muted);font-size:12px;margin-top:2px;}
.player-popup-graph-score{display:inline-flex;align-items:center;gap:8px;padding:7px 10px;border-radius:999px;background:var(--panel);border:1px solid var(--line);font-size:12px;color:var(--muted);}
.player-popup-graph-score b{font-size:15px;color:var(--text);}
.player-popup-graph-svg{width:100%;height:auto;display:block;}
.player-popup-graph-grid{stroke:rgba(0,0,0,.08);stroke-width:1;}
.player-popup-graph-axis{stroke:rgba(0,0,0,.14);stroke-width:1.2;}
.player-popup-graph-line{fill:none;stroke:var(--accent);stroke-width:3;stroke-linecap:round;stroke-linejoin:round;}
.player-popup-graph-dot{fill:var(--accent);stroke:var(--panel);stroke-width:2;}
.player-popup-graph-label{fill:var(--muted);font-size:11px;font-family:inherit;}
.player-popup-graph-value{fill:var(--text);font-size:10px;font-weight:700;font-family:inherit;}
.player-popup-graph-meta{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px;}
.player-popup-graph-meta span{padding:6px 10px;border-radius:999px;background:var(--panel);border:1px solid var(--line);font-size:12px;color:var(--muted);}
.player-popup-graph-note{margin:10px 0 0;color:var(--muted);font-size:12px;line-height:1.45;}
.player-popup-fixtures{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;}
.player-popup-fixture{padding:10px 8px;border:1px solid var(--line);border-radius:12px;background:var(--panel2);text-align:center;}
.player-popup-fixture strong,
.player-popup-fixture small{display:block;}
.player-popup-fixture strong{font-size:12px;}
.player-popup-fixture small{margin-top:5px;color:var(--muted);font-size:10px;}
.player-popup-fixture .fdr{margin-top:7px;}
.pitch-player[data-player-id],
.bench-player[data-player-id],
.player-pool-row[data-player-id],
.list-row[data-player-id]{cursor:pointer;}
.player-popup-captain-actions{margin-top:14px;}
.player-popup-captain-actions.hidden{display:none!important;}
.player-popup-captain-actions .popup-role-btn{flex:1 1 0;width:50%;min-width:0;min-height:42px;margin:0;padding:0 14px;display:flex;align-items:center;justify-content:center;text-align:center;white-space:nowrap;}
@media(max-width:700px){
  .player-popup-fixtures{grid-template-columns:1fr 1fr;}
}

/* ---------- Recommendation direction ---------- */
.recommendation-swap{display:inline-flex;align-items:baseline;gap:.34em;flex-wrap:wrap;}
.recommendation-out{color:var(--danger)!important;font-weight:800;}
.recommendation-in{color:var(--ok)!important;font-weight:800;}
.recommendation-arrow{color:var(--muted);font-weight:900;}
.recommendation-separator{color:var(--muted);font-weight:700;}
.recommendation-line{line-height:1.35;}
.builder-xi-swap-side.is-out strong{color:var(--danger);}
.builder-xi-swap-side.is-in strong{color:var(--ok);}
.builder-xi-formation-change>span:first-child strong{color:var(--danger);}
.builder-xi-formation-change>span:last-child strong{color:var(--ok);}

/* ---------- Transferplan ---------- */
.transfer-section-head{align-items:center;}
.transfer-controls{display:flex;align-items:center;gap:8px;padding:7px 9px;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--panel);}
.transfer-controls label{font-size:10px;color:var(--muted);text-transform:uppercase;letter-spacing:.06em;font-weight:700;}
.transfer-controls select{border:1px solid var(--line2);border-radius:9px;background:var(--panel2);color:var(--text);padding:7px 26px 7px 9px;font-weight:700;}
.transfer-summary{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 10px;}
.transfer-summary span{display:inline-flex;gap:5px;align-items:center;padding:7px 9px;border:1px solid var(--line);border-radius:10px;background:var(--panel);font-size:10px;color:var(--muted);}
.transfer-summary strong{color:var(--text);}
.transfer-plan-card{padding:15px 17px;border-bottom:1px solid var(--line);}
.transfer-plan-card:last-child{border-bottom:0;}
.transfer-plan-top{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;}
.transfer-plan-top strong{font-size:14px;}
.transfer-plan-tag{flex:0 0 auto;border-radius:999px;padding:5px 8px;background:var(--accent-tint);color:var(--accent-dark);font-size:9px;font-weight:800;letter-spacing:.05em;border:1px solid var(--accent-line);}
.transfer-plan-meta{margin-top:5px;color:var(--muted);font-size:10px;}
.transfer-reason{margin:9px 0 0!important;color:var(--text2)!important;font-size:11px;line-height:1.45!important;}
.transfer-reason b{color:var(--text);}
.transfer-roll{padding:16px 17px;}
.transfer-roll strong{display:block;}
.transfer-roll p{margin:6px 0 0!important;color:var(--muted)!important;font-size:11px;}
@media(max-width:580px){
  .transfer-section-head{align-items:flex-start;}
  .transfer-controls{width:100%;justify-content:space-between;}
}
/* ---------- Chip Advisor ---------- */
.chip-advisor-head{align-items:flex-end;}
.chip-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;}
.chip-best-action{margin-bottom:14px;padding:16px 18px;border-color:var(--accent-line);background:linear-gradient(180deg,var(--accent-tint),var(--panel));}
.chip-best-action strong{display:block;font-size:18px;font-family:var(--display);letter-spacing:-.02em;}
.chip-best-action p{margin:6px 0 0;color:var(--muted);font-size:12px;line-height:1.5;}
.chip-card{padding:18px;}
.chip-card-top{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;}
.chip-card h3{margin:3px 0 0;font-size:22px;}
.chip-status{border-radius:999px;padding:6px 9px;font-size:10px;font-weight:800;white-space:nowrap;border:1px solid transparent;}
.chip-score-row{display:flex;align-items:end;gap:7px;margin-top:16px;}
.chip-score-row strong{font-size:34px;line-height:1;}
.chip-score-row span{color:var(--muted);font-size:11px;}
.chip-reason-list{display:grid;gap:7px;margin-top:14px;}
.chip-reason{padding:8px 10px;border-radius:10px;background:var(--panel2);border:1px solid var(--line);font-size:11px;line-height:1.4;color:var(--text2);}
.chip-reason b{color:var(--text);}
.chip-player-line{margin-top:12px;font-size:12px;color:var(--muted);}
.chip-player-line strong{color:var(--text);}
@media(max-width:780px){
  .chip-grid{grid-template-columns:1fr;}
  .chip-advisor-head{align-items:flex-start;}
}
/* ---------- Sæsonsammenligning ---------- */
.season-trend-card{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;padding:14px;border:1px solid var(--line);border-radius:13px;background:var(--panel2);}
.season-trend-card strong{display:block;font-size:18px;}
.season-trend-card p{margin:5px 0 0!important;font-size:11px!important;color:var(--muted)!important;line-height:1.45!important;}
.season-trend-badge{flex:0 0 auto;border-radius:999px;padding:6px 9px;font-size:10px;font-weight:800;border:1px solid transparent;}
.season-compare-grid{display:grid;margin-top:10px;}
.season-compare-item{border:1px solid var(--line);background:var(--panel2);}
.season-compare-item small,
.season-compare-item strong,
.season-compare-item span{display:block;}
.season-compare-item small{color:var(--muted);text-transform:uppercase;}
.season-compare-item span{color:var(--muted);}
.season-compare-note{margin:10px 0 0!important;font-size:10px!important;color:var(--muted)!important;line-height:1.5!important;}
/* ---------- Builder action primitives ---------- */
.builder-tool-panel{margin-top:18px;padding-top:4px;}
.builder-action-btn{display:inline-flex;align-items:center;justify-content:center;text-align:center;white-space:nowrap;font:inherit;font-weight:700;line-height:1;min-width:150px;min-height:44px;padding:0 18px;}
.builder-plan-actions .compact-btn{margin:0;}
/* ---------- Squad intelligence ---------- */
.intelligence-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;}
.intel-card{min-height:180px;}
.intel-card .panel-label{margin-bottom:12px;}
.intel-lines{display:grid;gap:8px;}
.intel-line{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:8px 10px;border-radius:10px;background:var(--panel2);border:1px solid var(--line);font-size:12px;}
.intel-line strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.intel-line span{color:var(--muted);white-space:nowrap;}
.priority-tag{font-size:9px;font-weight:800;letter-spacing:.06em;padding:5px 7px;border-radius:999px;border:1px solid transparent;}
.weakness-row{display:grid;grid-template-columns:48px 1fr auto;gap:9px;align-items:center;font-size:12px;}
.weakness-bar{height:8px;border-radius:99px;background:var(--fill2);overflow:hidden;}
.weakness-bar i{display:block;height:100%;border-radius:inherit;}
.weakness-row em{font-style:normal;color:var(--muted);font-size:11px;}
.confidence-chip{display:inline-flex;align-items:center;gap:6px;margin-top:6px;padding:5px 8px;border-radius:999px;background:var(--accent-tint);color:var(--accent-dark);font-size:10px;font-weight:800;border:1px solid var(--accent-line);}
.five-gw-planner{padding:0;overflow:auto;}
.five-gw-grid{min-width:760px;display:grid;grid-template-columns:.7fr 1.2fr .8fr 1.5fr;}
.five-gw-cell{padding:13px 14px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);font-size:12px;}
.five-gw-cell.head{color:var(--muted);text-transform:uppercase;font-size:10px;background:var(--panel2);}
.five-gw-cell strong{display:block;}
.five-gw-cell small{display:block;color:var(--muted);margin-top:3px;}
.fixture-swing-good{color:var(--accent-dark);font-weight:600;}
@media(max-width:850px){
  .intelligence-grid{grid-template-columns:1fr;}
}
/* ---------- Advarsel over banen ---------- */
#builder-team-view .pitch-wrap{position:relative;}
.pitch-warning-toast{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%) scale(.97);z-index:30;width:min(86%,680px);padding:16px 20px;border:1px solid #D8B39E;border-radius:14px;background:rgba(255,255,255,.98);color:var(--danger);box-shadow:var(--shadow-lg);font-size:14px;font-weight:700;line-height:1.45;text-align:center;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .16s ease,transform .16s ease,visibility .16s ease;}
.pitch-warning-toast.show{opacity:1;visibility:visible;transform:translate(-50%,-50%) scale(1);}
@media(max-width:580px){
  .pitch-warning-toast{width:90%;padding:13px 14px;font-size:12px;}
}
@media(prefers-reduced-motion:reduce){
  *,
*::before,
*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important;}
}
.hover-help{position:relative;display:inline-flex;align-items:center;gap:6px;cursor:help;outline:none;}
.hover-help-icon{display:inline-grid;place-items:center;width:16px;height:16px;border-radius:50%;border:1px solid var(--line);background:var(--panel2);color:var(--muted);font-size:10px;font-weight:800;line-height:1;flex:0 0 auto;}
.hover-help::after{content:attr(data-tooltip);position:absolute;left:0;top:calc(100% + 9px);z-index:80;width:min(310px,72vw);padding:11px 13px;border:1px solid var(--line);border-radius:11px;background:var(--panel);color:var(--text);box-shadow:var(--shadow-lg);font-size:11px;font-weight:500;line-height:1.5;letter-spacing:0;text-transform:none;text-align:left;opacity:0;visibility:hidden;transform:translateY(-10px);pointer-events:none;transition:opacity .14s ease,transform .14s ease,visibility .14s ease;white-space:normal;}
.hover-help:hover::after,
.hover-help:focus::after,
.hover-help:focus-visible::after{opacity:1;visibility:visible;transform:translateY(0);}
.intel-card{overflow:visible;}
.planner-hover-help::after{left:0;top:calc(100% + 10px);}
@media(max-width:580px){
  .hover-help::after{width:min(280px,80vw);}
}
.intel-explainer{margin:0 0 12px;color:var(--muted);font-size:11px;line-height:1.55;}
.intel-explainer b{color:var(--text);}
.intel-action-note{margin:10px 0 0;padding:8px 10px;border:1px solid var(--line);border-radius:10px;background:var(--panel2);color:var(--muted);font-size:11px;}
.intel-action-note b{color:var(--text);}
.fdr{width:auto;min-width:26px;padding:0 6px;white-space:nowrap;}
.club-name-cell{display:flex;flex-direction:column;gap:4px;}
.club-name-cell>strong{font-size:12px;}
.club-performance-wrap{padding:0;}
.club-performance-empty{margin:0;padding:18px 20px;}
.club-performance-wrap{overflow:auto;}
.club-performance-controls{display:flex;flex-wrap:wrap;align-items:end;gap:10px;padding:14px 16px 10px;border-bottom:1px solid var(--line);}
.club-performance-controls label{display:grid;gap:5px;min-width:170px;}
.club-performance-controls label span{color:var(--muted);font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;}
.club-performance-controls select{min-height:40px;padding:8px 34px 8px 11px;border:1px solid var(--line);border-radius:10px;background:var(--panel);color:var(--text);font:inherit;font-size:13px;font-weight:700;}
.club-performance-note{margin:0;padding:10px 16px;color:var(--muted);font-size:12px;line-height:1.5;border-bottom:1px solid var(--line);}
.club-performance-matrix{min-width:900px;}
.club-performance-matrix-row{display:grid;align-items:center;border-bottom:1px solid var(--line);}
.club-performance-matrix-row:last-child{border-bottom:0;}
.club-performance-matrix-row>div{padding:12px 10px;font-size:12px;}
.club-performance-matrix-row.head{color:var(--muted);text-transform:uppercase;}
.club-performance-team strong{font-size:12px;}
@media(max-width:620px){
  .club-performance-controls label{flex:1 1 100%;min-width:0;}
}
.pitch-player strong{font-size:13px;line-height:1.18;font-weight:900;}
.pitch-player strong span{font-size:12px;font-weight:800;}
/* Keep builder pitch equally readable */
.squad-workspace-main #builder-team-view .pitch-player strong{font-size:13px;}
.pitch-player .player-price,
.pitch-player .player-fixture,
.pitch-player .player-coach-score{text-shadow:none;}
.pitch-player .player-price b,
.pitch-player .player-fixture b,
.pitch-player .player-coach-score b{font-weight:700;}
.squad-workspace-main #builder-team-view .pitch-player .player-price,
.squad-workspace-main #builder-team-view .pitch-player .player-fixture,
.squad-workspace-main #builder-team-view .pitch-player .player-coach-score{font-weight:400;}
.pitch-player .player-price,
.pitch-player .player-fixture,
.pitch-player .player-coach-score{font-size:11px;line-height:1.15;font-weight:400;white-space:nowrap;}
.squad-workspace-main #builder-team-view .pitch-player .player-price,
.squad-workspace-main #builder-team-view .pitch-player .player-fixture,
.squad-workspace-main #builder-team-view .pitch-player .player-coach-score{font-size:11px;line-height:1.15;white-space:nowrap;}
#price-filter{min-width:110px;}
.player-pool-section-heading{margin:10px 0 5px;padding:8px 10px;border:0;border-radius:6px;background:rgba(20,20,20,.94);box-shadow:inset 0 0 0 1px rgba(255,255,255,.10);font-size:12px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;}
.player-pool-count + .player-pool-section-heading{margin-top:5px;}
.player-pool-row{border-radius:6px;margin-bottom:3px;}
.player-popup-availability{display:grid;gap:8px;margin:12px 0;}
.player-popup-availability.hidden{display:none;}
.availability-main,
.availability-detail{border-radius:10px;padding:10px 12px;background:rgba(143,61,30,.08);border:1px solid rgba(143,61,30,.18);}
.availability-main{display:flex;flex-direction:column;gap:3px;}
.availability-main strong{font-size:14px;}
.availability-detail{display:flex;flex-direction:column;justify-content:center;gap:2px;}
.availability-detail span{font-size:11px;opacity:.72;}
.availability-detail strong{font-size:13px;}
.sell-player-btn{border:1px solid rgba(143,61,30,.28);background:rgba(143,61,30,.09);color:var(--danger);border-radius:9px;padding:9px 14px;font-weight:800;cursor:pointer;}
.sell-player-btn:hover{background:rgba(143,61,30,.15);}
.pitch-empty-slot{min-height:118px;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;cursor:copy;}
.empty-shirt-slot{width:54px;height:62px;border:2px dashed rgba(255,255,255,.30);border-radius:12px 12px 16px 16px;display:grid;place-items:center;font-size:28px;font-weight:700;}
.pitch-empty-slot strong{margin-top:8px;}
.pitch-empty-slot small{display:block;margin-top:3px;font-size:10px;white-space:nowrap;}
.bench-empty-slot{border:2px dashed rgba(20,20,20,.16);background:rgba(255,255,255,.045);cursor:copy;}
.empty-mini-shirt{width:38px;height:42px;border:2px dashed rgba(20,20,20,.22);border-radius:9px;display:grid;place-items:center;font-size:20px;font-weight:800;}
.player-popup-head{justify-content:flex-start;text-align:left;}
.player-popup-head > div:last-child{align-items:flex-start;}
.player-popup-captain-actions{display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:8px;}
#sell-player-btn.hidden{display:none;}
.sell-player-btn{margin:0;}
.player-popup-head{display:block;}
.player-popup-head #player-popup-shirt{float:right;margin-left:16px;}
.player-popup-head > div:last-child{width:100%;text-align:left;padding-left:0;margin-left:0;}
#player-popup-position,
#player-popup-name,
#player-popup-club{display:block;width:100%;margin-left:0;padding-left:0;text-align:left;}
.player-popup-stats{clear:both;}
.pitch-player-name{display:block;margin-top:9px;}
.pitch-player-club-inline{line-height:1;color:var(--ink);white-space:nowrap;font-size:7px;font-weight:500;}
.empty-shirt-slot.restore-sold-player,
.empty-mini-shirt.restore-sold-player{appearance:none;-webkit-appearance:none;font-family:inherit;cursor:pointer;}
.empty-shirt-slot.restore-sold-player:hover,
.empty-mini-shirt.restore-sold-player:hover{transform:scale(1.05);}
.builder-bench{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);width:100%;overflow:visible;}
.builder-bench .bench-fixed-slot{display:flex !important;visibility:visible !important;opacity:1 !important;min-width:0;width:auto;}
.bench-panel,
.builder-team-view{overflow:visible;}
[data-generic-empty-bench]{cursor:copy;}
[data-generic-empty-bench].drag-over{outline:2px solid var(--clay);outline-offset:3px;transform:translateY(-8px);}
@media (max-width: 760px){
  .header-inner{height:80px;gap:10px;flex-wrap:wrap;padding:10px 0;}
}
@media(max-width:700px){
  .player-popup-graph-score{width:100%;justify-content:center;}
}
.builder-head>div{width:100%;}
.builder-topline{width:100%;margin-top:10px;}
.builder-topline .squad-money-bar{margin:0;}
.pitch-formation-badge{position:absolute;z-index:7;display:flex;align-items:baseline;gap:7px;padding:7px 10px;border-radius:10px;background:var(--label-bg);border:1px solid var(--label-line);pointer-events:none;}
.pitch-formation-badge span{font-size:9px;font-weight:800;letter-spacing:.08em;}
.pitch-formation-badge strong{font-size:15px;letter-spacing:-.02em;}
@media(max-width:580px){
  .pitch-formation-badge{padding:6px 8px;}
}
.player-popup-graph-legend{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 8px;font-size:11px;color:var(--muted);}
.player-popup-graph-legend span{display:inline-flex;align-items:center;gap:6px;}
.player-popup-graph-legend i{display:inline-block;width:18px;height:3px;border-radius:999px;}
.player-popup-graph-legend .coach-line-key{background:var(--accent);}
.player-popup-graph-legend .points-line-key{background:var(--clay);}
.player-popup-graph-points-line{fill:none;stroke:var(--clay);stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;}
.player-popup-graph-points-dot{fill:var(--clay);stroke:var(--panel);stroke-width:2;}
.player-popup-graph-coach-area{fill:rgba(180,101,58,.10);}
.player-popup-graph-right-label{fill:var(--clay);font-size:10px;font-family:inherit;font-weight:700;}
.builder-topline{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:nowrap!important;}
.builder-topline .squad-money-bar{display:flex;align-items:center;gap:8px;flex:0 0 auto;flex-wrap:nowrap;white-space:nowrap;min-width:0;}
.builder-topline .squad-money-bar>span{padding:8px 10px;gap:6px;}
.builder-topline .squad-money-bar small{font-size:10px;}
.builder-topline .squad-money-bar strong{font-size:16px;}
.player-season-stats-section{margin-top:22px;}
.player-popup-season-stats{display:grid;grid-auto-rows:68px;}
.player-season-stat{border:1px solid var(--line);background:var(--panel2);display:flex;flex-direction:column;justify-content:center;}
.player-season-stat small,
.player-season-stat strong,
.player-season-stat span{display:block;}
.player-season-stat small{min-height:0;font-size:8px;line-height:1.2;text-transform:uppercase;color:var(--muted);}
.player-season-stat strong{margin-top:3px;font-size:17px;letter-spacing:-.02em;color:var(--text);}
.player-season-stat span{margin-top:2px;min-height:0;font-size:8px;line-height:1.2;color:var(--muted);}
.player-compare-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;margin:0 0 10px;}
.player-compare-toolbar>div:first-child{min-width:0;}
.player-compare-toolbar strong,
.player-compare-toolbar small{display:block;}
.player-compare-toolbar strong{font-size:13px;}
.player-compare-toolbar small{margin-top:2px;color:var(--muted);font-size:10px;}
.player-compare-toolbar-actions{display:flex;gap:6px;flex:0 0 auto;}
.compare-open-btn,
.compare-clear-btn{height:34px;min-height:34px;margin:0;padding:0 10px;font-size:11px;white-space:nowrap;}
.compare-clear-btn{border:1px solid var(--line2);border-radius:10px;background:var(--panel2);color:var(--text2);font-weight:700;cursor:pointer;}
.compare-open-btn:disabled,
.compare-clear-btn:disabled{opacity:.45;cursor:not-allowed;}
.pool-player-top .pool-top-extra{align-items:flex-start;}
.player-compare-dialog{width:min(1060px,calc(100% - 28px));max-height:90vh;padding:0;border:1px solid var(--line);background:var(--panel);color:var(--text);box-shadow:var(--shadow-lg);overflow:auto;}
.player-compare-dialog::backdrop{background:rgba(20,20,20,.45);backdrop-filter:blur(4px);}
.player-compare-shell{padding:24px;}
.player-compare-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;padding-right:48px;}
.player-compare-head h2{margin:4px 0 5px;font-size:30px;letter-spacing:-.03em;}
.player-compare-head p{margin:0;}
.player-compare-mode-label{display:grid;gap:5px;flex:0 0 190px;font-size:10px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);}
.player-compare-mode-label select{width:100%;padding:10px 12px;border:1px solid var(--line2);border-radius:11px;background:var(--panel2);color:var(--text);font:inherit;font-size:12px;font-weight:700;text-transform:none;letter-spacing:0;}
.player-compare-selected{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0 12px;}
.compare-selected-chip{display:inline-flex;align-items:center;gap:7px;padding:7px 8px 7px 10px;border:1px solid var(--line);border-radius:999px;background:var(--panel2);font-size:11px;font-weight:700;}
.compare-selected-chip button{border:0;background:transparent;color:var(--muted);font-size:16px;line-height:1;cursor:pointer;padding:0 2px;}
.player-compare-summary{padding:14px 16px;border:1px solid var(--accent-line);border-radius:15px;background:linear-gradient(180deg,var(--accent-tint),var(--panel));margin-bottom:14px;}
.player-compare-summary strong{display:block;font-family:var(--display);font-size:20px;letter-spacing:-.02em;}
.player-compare-summary p{margin:5px 0 0;color:var(--text2);font-size:12px;line-height:1.5;}
.player-compare-results{display:grid;gap:10px;}
.compare-result-card{display:grid;grid-template-columns:48px minmax(170px,1.1fr) 92px minmax(300px,1.8fr);gap:12px;align-items:center;padding:14px;border:1px solid var(--line);border-radius:16px;background:var(--panel2);}
.compare-result-card.winner{border-color:var(--accent-soft);background:linear-gradient(90deg,var(--accent-tint),var(--panel2) 42%);}
.compare-rank{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:var(--panel);border:1px solid var(--line);font-size:17px;font-weight:800;}
.compare-player-main{display:flex;align-items:center;gap:10px;min-width:0;}
.compare-player-main .mini-shirt{flex:0 0 auto;}
.compare-player-copy{min-width:0;}
.compare-player-copy strong,
.compare-player-copy small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.compare-player-copy strong{font-size:15px;}
.compare-player-copy small{margin-top:3px;color:var(--muted);font-size:10px;}
.compare-total-score{text-align:center;}
.compare-total-score strong{display:block;font-size:27px;line-height:1;letter-spacing:-.04em;}
.compare-total-score small{display:block;margin-top:4px;color:var(--muted);font-size:9px;text-transform:uppercase;letter-spacing:.05em;}
.compare-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;}
.compare-metric{padding:7px 8px;border-radius:10px;background:var(--panel);border:1px solid var(--line);min-width:0;}
.compare-metric small,
.compare-metric strong{display:block;}
.compare-metric small{font-size:8px;text-transform:uppercase;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.compare-metric strong{margin-top:3px;font-size:11px;white-space:nowrap;}
.player-compare-note{margin:12px 0 0;color:var(--muted);font-size:10px;line-height:1.45;}
@media(max-width:820px){
  .player-compare-head{align-items:flex-start;flex-direction:column;}
  .player-compare-mode-label{flex:0 0 auto;width:100%;}
  .compare-result-card{grid-template-columns:42px 1fr 82px;}
  .compare-metrics{grid-column:1/-1;}
}
@media(max-width:560px){
  .player-compare-toolbar{align-items:flex-start;flex-direction:column;}
  .player-compare-toolbar-actions{width:100%;}
  .compare-open-btn{flex:1;}
  .player-compare-shell{padding:18px;}
  .player-compare-head h2{font-size:25px;}
  .compare-result-card{grid-template-columns:38px minmax(0,1fr) 72px;padding:11px;gap:8px;}
  .compare-metrics{grid-template-columns:repeat(2,minmax(0,1fr));}
}
.player-watch-list{display:grid;gap:8px;}
.player-watch-empty{margin:0;padding:11px;border:1px dashed var(--line2);border-radius:11px;color:var(--muted);font-size:11px;line-height:1.45;}
.watch-player-card{position:relative;display:grid;gap:9px;padding:11px;border:1px solid var(--line);border-radius:13px;background:var(--panel2);}
.watch-player-card.unavailable{grid-template-columns:1fr auto;align-items:center;}
.watch-player-card.unavailable small{display:block;margin-top:3px;color:var(--muted);}
.watch-player-main{display:flex;align-items:center;gap:9px;min-width:0;}
.watch-player-main>div:last-child{min-width:0;}
.watch-player-main strong,
.watch-player-main small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.watch-player-main strong{font-size:12px;}
.watch-player-main small{margin-top:2px;color:var(--muted);font-size:9px;}
.watch-player-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;}
.watch-player-metrics>span{padding:7px 8px;border:1px solid var(--line);border-radius:9px;background:var(--panel);}
.watch-player-metrics small,
.watch-player-metrics strong,
.watch-player-metrics em{display:block;}
.watch-player-metrics small{font-size:8px;text-transform:uppercase;color:var(--muted);}
.watch-player-metrics strong{margin-top:2px;font-size:11px;color:var(--text);}
.watch-player-metrics em{margin-top:2px;font-style:normal;font-size:8px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.watch-player-actions button{flex:1 1 0;min-width:0;min-height:30px;padding:0 7px;font-size:9px;white-space:nowrap;}
.watch-remove-btn{border:1px solid rgba(143,61,30,.28);border-radius:9px;background:rgba(143,61,30,.07);color:var(--danger);font:inherit;font-size:9px;font-weight:700;cursor:pointer;padding:7px 9px;white-space:nowrap;}
.watch-player-age{color:var(--muted);font-size:8px;}
.pool-player-actions{display:flex;gap:5px;align-items:center;justify-content:flex-end;}
.pool-watch-btn,
.pool-compare-btn{min-height:28px;padding:0 8px;border-radius:8px;border:1px solid var(--line2);background:var(--panel);color:var(--text2);font:inherit;font-size:9px;font-weight:700;cursor:pointer;white-space:nowrap;}
.pool-compare-btn.selected{background:var(--accent-tint);border-color:var(--accent-line);color:var(--accent-dark);}
@media(max-width:480px){
  .watch-player-metrics{grid-template-columns:1fr 1fr;}
  .pool-player-actions{flex-wrap:wrap;}
}
/* Watchlist dialog styling */
.player-watch-dialog-count{flex:0 0 auto;min-width:92px;padding:10px 13px;border:1px solid var(--line);border-radius:13px;background:var(--panel2);text-align:center;}
.player-watch-dialog-count small,
.player-watch-dialog-count strong{display:block;}
.player-watch-dialog-count small{font-size:10px;color:var(--muted);text-transform:uppercase;letter-spacing:.05em;}
.player-watch-dialog-count strong{margin-top:3px;font-size:19px;color:var(--text);}
.player-watch-shell .player-watch-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:18px;}
.player-watch-shell .watch-player-card{margin:0;}
.player-watch-shell .player-watch-empty{grid-column:1/-1;padding:24px;text-align:center;}
@media(max-width:700px){
  .player-watch-shell .player-watch-list{grid-template-columns:1fr;}
  .player-watch-dialog-count{width:100%;}
}
.player-watch-toolbar.player-compare-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;margin:0 0 10px;overflow:visible;}
.player-watch-toolbar.player-compare-toolbar>div:first-child{min-width:0;}
.player-watch-toolbar.player-compare-toolbar strong,
.player-watch-toolbar.player-compare-toolbar small{display:block;}
.player-watch-toolbar.player-compare-toolbar strong{font-size:13px;}
.player-watch-toolbar.player-compare-toolbar small{margin-top:2px;color:var(--muted);font-size:10px;}
.player-watch-toolbar .player-compare-toolbar-actions{display:flex;gap:6px;flex:0 0 auto;width:auto;margin:0;}
.player-watch-toolbar .compare-open-btn,
.player-watch-toolbar .compare-clear-btn{height:34px;min-height:34px;margin:0;padding:0 10px;font-size:11px;white-space:nowrap;}
@media(max-width:560px){
  .player-watch-toolbar.player-compare-toolbar{align-items:flex-start;flex-direction:column;}
  .player-watch-toolbar .player-compare-toolbar-actions{width:100%;}
  .player-watch-toolbar .compare-open-btn{flex:1;}
}
#open-player-compare,
#open-player-watch{width:108px!important;min-width:108px!important;max-width:108px!important;flex:0 0 108px!important;padding-left:8px!important;padding-right:8px!important;justify-content:center!important;text-align:center!important;}
@media(max-width:560px){
  #open-player-compare,
#open-player-watch{width:auto!important;min-width:0!important;max-width:none!important;flex:1 1 0!important;}
}
.player-popup-availability{grid-template-columns:minmax(0,1fr) 190px 120px!important;}
.player-popup-availability .availability-detail{min-width:0;}
.player-popup-availability .availability-detail strong{white-space:nowrap!important;overflow:visible;text-overflow:clip;}
@media(max-width:650px){
  .player-popup-availability{grid-template-columns:1fr!important;}
  .player-popup-availability .availability-detail strong{white-space:normal!important;}
}
.preseason-summary{grid-template-columns:1fr 1.15fr;}
.builder-overview-panel{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:18px;padding:12px 14px;margin:0 0 10px;}
.builder-overview-label{margin:0;white-space:nowrap;}
.builder-overview-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;margin:0;}
.builder-overview-stats>div{min-width:0;padding:2px 16px;border-left:1px solid var(--line);}
.builder-overview-stats dt{margin:0 0 3px;color:var(--muted);font-size:10px;text-transform:uppercase;white-space:nowrap;}
.builder-overview-stats dd{margin:0;color:var(--text);font-size:16px;font-weight:700;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
/* Let the Player Pool begin at the top of the workspace instead of 20px lower */
.player-pool-head{margin-top:0!important;}
.squad-workspace-main>.builder-head{margin-top:10px!important;}
@media(max-width:980px){
  .preseason-summary{grid-template-columns:1fr;}
  .builder-overview-panel{grid-template-columns:1fr;gap:8px;}
  .builder-overview-stats>div:first-child{border-left:0;padding-left:0;}
}
@media(max-width:650px){
  .builder-overview-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 0;}
  .builder-overview-stats>div:nth-child(odd){border-left:0;padding-left:0;}
  .builder-overview-stats dd{font-size:15px;}
}
.builder-head + .builder-overview-panel{margin-top:10px;margin-bottom:8px;}
.builder-overview-panel{padding-top:11px;padding-bottom:11px;}
/* ---------- Typografi: mono som "instrument"-snit ---------- */
.eyebrow,
.panel-label{font-family:var(--mono);font-size:10px;font-weight:500;letter-spacing:.1em;color:var(--accent);}
.compact-stats dt,
.builder-overview-stats dt,
.fixture-cell.head,
.five-gw-cell.head,
.club-performance-matrix-row.head,
.pool-stat-grid small,
.compare-metric small,
.watch-player-metrics small,
.player-popup-stat small,
.player-season-stat small,
.season-compare-item small{font-family:var(--mono);font-weight:500;letter-spacing:.05em;}
.big-rating strong,
.score-ring strong,
.chip-score-row strong,
.compare-total-score strong,
.player-watch-dialog-count strong,
.builder-overview-stats dd,
.pitch-formation-badge strong,
.rank-num,
.compare-rank,
.bench-order,
.fdr,
.compact-stats dd,
.pool-stat-grid strong,
.compare-metric strong,
.player-popup-stat strong,
.player-season-stat strong,
.season-compare-item strong{font-family:var(--mono);font-variant-numeric:tabular-nums;}
.big-rating strong,
.score-ring strong,
.chip-score-row strong{font-weight:500;letter-spacing:-.02em;}
.hero h1,
.dashboard-head h2,
.section-head h2{letter-spacing:-.035em;}
/* ---------- Kanter og form: strammere ---------- */
.hero-card{border-radius:var(--radius);}
.pitch-wrap{border-radius:16px;}
.pitch{border-radius:12px;}
.player-popup,
.player-compare-dialog{border-radius:16px;}
.panel,
.list-panel{border-radius:var(--radius);}
/* ---------- Kulsort som handlingsfarve, kobber som accent ---------- */
.primary-btn{background:var(--ink);color:var(--on-ink);}
.primary-btn:hover{background:var(--accent);}
.ghost-btn:hover{border-color:var(--accent);color:var(--accent);background:var(--accent-tint);}
.score-ring{border-color:var(--ink);background:var(--panel);}
.big-rating strong{color:var(--ink);}
.compare-total-score strong{color:var(--accent);}
.weakness-bar i{background:var(--accent);}
.rank-num{background:var(--ink);border-color:var(--ink);color:var(--on-ink);}
.bench-order{background:var(--ink);border:0;color:var(--on-ink);}
.captain-mark{background:#FFD54A;color:#141414;}
.vice-mark{background:#FF5CA8;color:#141414;}
.pool-watch-btn.selected{background:var(--ink);border-color:var(--ink);color:var(--on-ink);}
/* Drop-markering skal ses på den kulsorte bane */
#builder-team-view .drag-over,
#builder-team-view .pitch-player.drag-over,
#builder-team-view .bench-player.drag-over,
[data-generic-empty-bench].drag-over,
.pitch-empty-slot.drag-over .empty-shirt-slot,
.bench-empty-slot.drag-over{outline-color:var(--accent);}
.pitch-empty-slot.drag-over .empty-shirt-slot,
.bench-empty-slot.drag-over{outline:2px solid var(--accent);outline-offset:2px;}
/* ---------- Banen: kulsort med hårfine kridtstreger ---------- */
/* ---------- FDR: monokrom værdiskala (lys = let, mørk = svær) ---------- */
.fdr{font-weight:500;letter-spacing:.01em;}
/* ---------- Status: gråskala frem for ekstra kulører ---------- */
.availability.available{background:transparent;border-color:var(--line2);color:var(--muted);}
.availability.doubtful{background:var(--fill2);border-color:var(--line2);color:var(--text2);}
.availability.injured,
.availability.suspended,
.availability.unavailable{background:var(--ink);border-color:var(--ink);color:var(--on-ink);}
.availability.unknown{background:var(--fill);border-color:var(--line);color:var(--muted);}
.chip-status.play{background:var(--accent);border-color:var(--accent);color:var(--on-accent);}
.chip-status.consider{background:var(--fill2);border-color:var(--line2);color:var(--text2);}
.chip-status.hold{background:transparent;border-color:var(--line2);color:var(--muted);}
.chip-status.used{background:var(--fill);border-color:var(--line);color:var(--muted);}
.priority-keep{background:transparent;border-color:var(--line2);color:var(--muted);}
.priority-watch{background:var(--fill);border-color:var(--line);color:var(--text2);}
.priority-sell-soon{background:var(--fill2);border-color:var(--line2);color:var(--ink);}
.priority-sell{background:var(--ink);border-color:var(--ink);color:var(--on-ink);}
.intel-line .priority-sell{color:var(--on-ink);}
.season-trend-badge.up{background:var(--accent);border-color:var(--accent);color:var(--on-accent);}
.season-trend-badge.same{background:transparent;border-color:var(--line2);color:var(--muted);}
.season-trend-badge.down{background:var(--ink);border-color:var(--ink);color:var(--on-ink);}
.season-compare-item .positive{color:var(--accent);}
.season-compare-item .negative{color:var(--danger);}
.validation.ok span{background:var(--fill2);color:var(--ink);}
.validation.bad span{background:var(--danger);color:var(--on-ink);}
.tag{background:var(--fill);border-color:var(--line);color:var(--text2);}
/* ---------- Flader der stadig havde en gammel tone ---------- */
.player-pool-row,
.player-pool-row:nth-child(odd){background:var(--panel);box-shadow:inset 3px 0 0 var(--line2);}
.player-pool-row:nth-child(even),
.player-pool-row:nth-of-type(even){background:var(--panel2);box-shadow:inset 3px 0 0 var(--line2);}
.player-pool-row.in-squad,
.player-pool-row.in-squad:hover{background:var(--fill);box-shadow:inset 3px 0 0 var(--line);filter:grayscale(1);opacity:.55;}
.player-pool-row:hover{background:var(--accent-tint);box-shadow:inset 3px 0 0 var(--accent);}
.player-pool-row.watch-selected{box-shadow:inset 3px 0 0 var(--ink);}
/* ---------- Alternative accenter — udskift blokken herunder ----------
   Elektrisk blå:
   :root{--accent:#1E63E9;--accent-dark:#1449B4;--accent-soft:#6E9BF5;
         --accent-tint:#EAF0FE;--accent-line:#D3E0FB;--danger:#B03A2E;}
   Brændt orange:
   :root{--accent:#C4571C;--accent-dark:#9A4414;--accent-soft:#E08A50;
         --accent-tint:#FBEDE3;--accent-line:#F0DACA;--danger:#8F3D1E;}
-------------------------------------------------------------------- */
/* Græsset tilbage */
/* Kridtstreger i fuld styrke igen */
.pitch{border:1px solid rgba(255,255,255,.5);box-shadow:inset 0 0 0 2px rgba(255,255,255,.6);}
.pitch:before{border-top-color:rgba(255,255,255,.62);}
.pitch:after{border-color:rgba(255,255,255,.62);}
/* Spillerbrikker: hvid kant og blødere skygge, som de havde på grønt */
.pitch-player .pitch-player-meta .player-price,
.pitch-player .pitch-player-meta .player-fixture{border-color:rgba(255,255,255,.62);}
.pitch-formation-badge{box-shadow:0 4px 12px rgba(30,42,28,.13);}
/* Tomme pladser aflæses igen mod græs */
.pitch-empty-slot strong{color:var(--ink);text-shadow:0 1px 0 rgba(255,255,255,.5);}
.pitch-empty-slot small{color:var(--ink);}
/* FDR-brikkerne tilbage til farveskalaen: let → svær */
.fdr-1,
.fdr-2{background:#AFC58C;color:var(--ink);box-shadow:none;}
.fdr-3{background:#E5D3A0;color:var(--ink);box-shadow:none;}
.fdr-4{background:#DDA87C;color:var(--ink);box-shadow:none;}
.fdr-5{background:#CC8271;color:var(--ink);box-shadow:none;}
.best-player-toggle{width:100%;min-height:42px;border:1px solid var(--line2);border-radius:11px;padding:0 11px;font:inherit;font-size:11px;font-weight:800;line-height:1;letter-spacing:.01em;cursor:pointer;white-space:nowrap;transition:border-color .15s ease,background .15s ease,color .15s ease,box-shadow .15s ease;}
.best-player-toggle.is-on{background:var(--accent);border-color:var(--accent);color:#fff;box-shadow:0 3px 8px rgba(180,101,58,.18);}
.best-player-toggle.is-on:hover{background:var(--accent-dark);border-color:var(--accent-dark);}
.best-player-toggle.is-off{background:var(--panel);color:var(--muted);}
.best-player-toggle.is-off:hover{border-color:var(--accent);color:var(--accent-dark);background:var(--accent-tint);}
.hero-card{transform:rotate(2deg) translateY(3px)!important;transform-origin:center center!important;}
@media(max-width:900px){
  .hero-card{transform:rotate(1deg) translateY(2px)!important;}
}
@media(max-width:580px){
  .hero-card{transform:none!important;}
}
.club-performance-matrix-row{grid-template-columns:minmax(150px,1.35fr) minmax(100px,.75fr) repeat(4,minmax(58px,.52fr)) minmax(70px,.62fr) minmax(75px,.68fr)!important;}
.club-performance-team small{display:block;margin-top:3px;color:var(--muted);font-size:10px;font-weight:600;}
@media(max-width:850px){
  .club-performance-matrix{min-width:760px;}
}
.bench-panel > .panel-label{font-size:11px!important;font-weight:800!important;line-height:1.2!important;letter-spacing:.08em!important;margin-bottom:0!important;text-transform:uppercase!important;}
.bench-player-info .bench-position{font-size:13px!important;line-height:1.3!important;margin-top:3px!important;}
.bench-player-info .bench-price,
.bench-player-info .bench-fixture,
.bench-player-info .bench-coach-score{font-size:12px!important;line-height:1.3!important;margin-top:5px!important;}
.bench-player-info .bench-price b,
.bench-player-info .bench-fixture b,
.bench-player-info .bench-coach-score b{font-weight:800!important;}
@media(max-width:650px){
  .bench-player-info .bench-position{font-size:12px!important;}
  .bench-player-info .bench-price,
.bench-player-info .bench-fixture,
.bench-player-info .bench-coach-score{font-size:var(--squad-name-size-mobile)!important;}
}
.confirm-modal{position:fixed;inset:0;z-index:9999;display:grid;place-items:center;padding:24px;}
.confirm-modal.hidden{display:none!important;}
.confirm-modal-backdrop{position:absolute;inset:0;background:rgba(12,16,12,.62);backdrop-filter:blur(5px);}
.confirm-modal-card{position:relative;z-index:1;width:min(460px,calc(100vw - 32px));padding:26px;border:1px solid var(--line);border-radius:20px;background:var(--panel);box-shadow:0 24px 70px rgba(0,0,0,.28);}
.confirm-modal-icon{width:42px;height:42px;margin-bottom:16px;display:grid;place-items:center;border-radius:50%;background:#fff0ee;border:1px solid #efc5c1;color:#a43d36;font-size:20px;font-weight:900;}
.confirm-modal-copy h3{margin:5px 0 8px;font-size:24px;line-height:1.1;}
.confirm-modal-copy p{margin:0;color:var(--muted);font-size:14px;line-height:1.55;}
.confirm-modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px;}
.confirm-modal-actions .secondary-btn,
.sell-all-confirm-btn{min-height:40px;padding:0 15px;border-radius:10px;font:inherit;font-size:12px;font-weight:800;cursor:pointer;}
.sell-all-confirm-btn{border:1px solid #aa3f38;background:#aa3f38;color:#fff;}
.sell-all-confirm-btn:hover{background:#91342f;border-color:#91342f;}
body.modal-open{overflow:hidden;}
@media(max-width:520px){
  .confirm-modal-card{padding:20px;}
  .confirm-modal-actions{flex-direction:column-reverse;}
  .confirm-modal-actions button{width:100%;}
}
.builder-drop-target{cursor:copy!important;}
.builder-drop-target.drag-over,
#builder-team-view .builder-drop-target.drag-over{outline:3px solid var(--accent)!important;outline-offset:3px!important;transform:translateY(-8px);}
.builder-drop-target .empty-shirt-slot{pointer-events:auto;}
#builder-team-view .pitch-empty-slot,
#builder-team-view .bench-empty-slot{cursor:copy!important;}
#builder-team-view .pitch-empty-slot.drag-over,
#builder-team-view .bench-empty-slot.drag-over{outline:3px solid var(--accent)!important;outline-offset:3px!important;}
.player-table-wrap + .player-compare-toolbar{margin-top:12px;}
.player-compare-toolbar + .player-watch-toolbar{margin-top:10px;}
@media(min-width:1051px){
  .player-pool-column .player-table-wrap{overflow:hidden!important;}
  .player-pool-column #player-table{overflow-y:auto!important;overflow-x:hidden!important;}
  .player-table-wrap + .player-compare-toolbar,
.player-compare-toolbar + .player-watch-toolbar{margin-top:8px!important;}
  .player-compare-toolbar,
.player-watch-toolbar{margin-left:0!important;margin-right:0!important;width:100%!important;}
  .squad-workspace-main > .builder-head,
.player-pool-column > .player-pool-head{align-items:flex-end!important;}
  .squad-workspace-main > .builder-head .eyebrow,
.player-pool-column > .player-pool-head .eyebrow{display:block;margin:0!important;}
  .squad-workspace-main > .builder-head h2,
.player-pool-column > .player-pool-head h2{margin:6px 0 0!important;line-height:1.05!important;}
  .squad-workspace-main,
.player-pool-column{align-self:start;}
  .squad-workspace-main > .builder-head,
.player-pool-column > .player-pool-head{margin-top:10px!important;margin-bottom:18px!important;}
  .player-pool-column > .player-pool-head .player-data-note:empty{display:none!important;}
  /* Row 2 starts at exactly the same vertical position in both columns. */
  .squad-workspace-main > .builder-topline,
.player-pool-column > .player-tools{margin-top:0!important;}
  .squad-workspace-main > .builder-topline{min-height:0;}
  /* The following Manual Builder status panel now naturally follows row 2. */
  .squad-workspace-main > .builder-overview-panel{margin-top:10px!important;}
  .squad-workspace-main > .builder-topline,
.squad-workspace-main > .builder-overview-panel{width:100%!important;max-width:none!important;}
  .squad-workspace-main > .builder-topline{display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;align-items:center!important;gap:10px!important;}
  .squad-workspace-main > .builder-topline .squad-money-bar{width:auto!important;min-width:0!important;margin:0!important;}
  /* Pitch + substitutes directly under Manual builder status box */
  .squad-workspace-main > .builder-overview-panel{margin-bottom:0!important;}
  .squad-workspace-main > #builder-message{min-height:0!important;margin:0!important;padding:0!important;}
  .squad-workspace-main > #builder-message:empty{display:none!important;}
  .squad-workspace-main > #builder-team-view{margin-top:8px!important;margin-bottom:0!important;}
  .squad-workspace-main > #builder-team-view .bench-panel{margin-bottom:0!important;}
  /* Player Pool list begins immediately below the filter/search panel */
  .player-pool-column > .player-tools{margin-bottom:8px!important;}
  .player-pool-column > .player-table-wrap{margin-top:0!important;}
  /* Compare + Watch stay attached to the list */
  .player-pool-column > .player-table-wrap + .player-compare-toolbar,
.player-pool-column > .player-compare-toolbar + .player-watch-toolbar{margin-top:8px!important;}
}
.player-pool-column > .player-table-wrap{background:transparent!important;border-color:transparent!important;box-shadow:none!important;}
.player-pool-row .pool-player-info .pool-player-actions{margin-top:7px;justify-content:flex-start;flex-wrap:nowrap;}
.player-pool-row .pool-top-extra{font-size:11px!important;line-height:1.45!important;gap:4px!important;text-align:right;}
.player-pool-row .pool-top-extra small{font-size:11px!important;line-height:1.45!important;}
.player-pool-row .pool-top-extra b{font-weight:800;}
@media(max-width:900px){
  .player-pool-row .pool-top-extra{text-align:left;}
}
.pool-watch-btn:hover,
.pool-compare-btn:hover{
  border-color:var(--accent)!important;
  color:var(--accent-dark)!important;
  background:var(--accent-tint)!important;
}
.pitch-player .pitch-name-role.captain-mark,
.pitch-player .pitch-name-role.vice-mark{
  border-radius:50%;
  display:inline-grid;
  place-items:center;
  font-size:9px;
  line-height:1;
  font-weight:800;
  box-shadow:none;
}
.pitch-player-sell{
  position:absolute;
  top:-7px;
  right:10px;
  width:21px;height:21px;
  padding:0;
  border-radius:50%;
  border:1px solid rgba(20,20,20,.20);
  place-items:center;
  font:800 16px/1 Inter,system-ui,sans-serif;
  cursor:pointer;
  z-index:5;
  transition:transform .12s ease,background .12s ease,border-color .12s ease;
}
.pitch-player-sell:hover{
  transform:scale(1.08);
}
.pitch-player-sell:focus-visible{
  outline:2px solid var(--danger);
  outline-offset:2px;
}
.pitch-player .pitch-player-namebox{
  position:relative;
}
.pitch-player .pitch-name-role.captain-mark,
.pitch-player .pitch-name-role.vice-mark{
  width:17px;
  height:17px;
}
.pitch-player .pitch-name-role.captain-mark{
  background:#FFD54A;
  color:#141414;
  border:1px solid #B88900;
}
.pitch-player .pitch-name-role.vice-mark{
  background:#FF5CA8;
  color:#141414;
  border:1px solid #C52F77;
}
.builder-assistant{
  margin:10px 0 12px;
  padding:14px;
  border-color:var(--accent-line);
  background:linear-gradient(180deg,var(--panel),var(--panel2));
}
.builder-assistant-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin-bottom:12px;
}
.builder-assistant-head h3{
  margin:4px 0 0;
  font-size:18px;
  line-height:1.15;
}
.builder-assistant-state{
  flex:0 0 auto;
  padding:5px 9px;
  border:1px solid var(--accent-line);
  border-radius:999px;
  background:var(--accent-tint);
  color:var(--accent-dark);
  font-size:10px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.05em;
}
.builder-assistant-state.is-ready{
  background:var(--ok-tint2);
  border-color:var(--ok-line);
  color:var(--ok);
}

.builder-assistant-head-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex-wrap:wrap;
}
.builder-assistant-overview-stats{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:0;
  margin:0 0 12px;
  padding:10px 0;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.builder-assistant-overview-stats>div{
  min-width:0;
  padding:0 12px;
  border-left:1px solid var(--line);
}
.builder-assistant-overview-stats>div:first-child{
  padding-left:0;
  border-left:0;
}
.builder-assistant-overview-stats dt{
  margin:0 0 3px;
  color:var(--muted);
  font-family:var(--mono);
  font-size:10px;
  font-weight:500;
  letter-spacing:.05em;
  text-transform:uppercase;
  white-space:nowrap;
}
.builder-assistant-overview-stats dd{
  margin:0;
  color:var(--text);
  font-family:var(--mono);
  font-size:16px;
  font-variant-numeric:tabular-nums;
  font-weight:700;
  line-height:1.2;
  white-space:nowrap;
}
@media(max-width:460px){
  .builder-assistant-overview-stats>div{padding:0 8px;}
  .builder-assistant-overview-stats dd{font-size:14px;}
}
@media(max-width:650px){
  .builder-assistant-head-actions{
    align-items:flex-end;
    flex-direction:column;
  }
}
.builder-assistant-summary{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}
.builder-assistant-summary-card{
  display:flex;
  flex-direction:column;
  gap:3px;
  min-width:0;
  padding:10px 11px;
  border:1px solid var(--line);
  border-radius:11px;
  background:var(--panel);
}
.builder-assistant-summary-card.is-warning{
  border-color:#e4b6ae;
  background:#fff6f4;
}
.builder-assistant-kicker{
  color:var(--muted);
  font-size:9px;
  font-weight:800;
  letter-spacing:.06em;
}
.builder-assistant-summary-card strong{
  font-size:15px;
}
.builder-assistant-summary-card small{
  color:var(--muted);
  font-size:10px;
  line-height:1.4;
}
.builder-assistant-alert{
  display:flex;
  flex-direction:column;
  gap:3px;
  margin-top:9px;
  padding:10px 11px;
  border:1px solid #e4b6ae;
  border-radius:11px;
  background:#fff6f4;
}
.builder-assistant-alert.is-budget{
  border-color:#e4b6ae;
}
.builder-assistant-alert.is-ok{
  border-color:var(--ok-line);
  background:var(--ok-tint);
}
.builder-assistant-alert strong{
  font-size:12px;
}
.builder-assistant-alert span{
  color:var(--text2);
  font-size:10px;
  line-height:1.45;
}
.builder-assistant-section{
  margin-top:10px;
}
.builder-assistant-section-title{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:10px;
  margin-bottom:6px;
}
.builder-assistant-section-title strong{
  font-size:12px;
}
.builder-assistant-section-title span{
  color:var(--muted);
  font-size:9px;
}
.builder-assistant-moves{
  display:grid;
  gap:6px;
}
.builder-assistant-move{
  padding:8px 10px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--panel);
}
.builder-assistant-move>div{
  font-size:11px;
}
.builder-assistant-move small{
  display:block;
  margin-top:3px;
  color:var(--muted);
  font-size:9px;
  line-height:1.4;
}
.builder-assistant-total{
  padding:7px 10px;
  font-size:10px;
  text-align:right;
}
.builder-assistant-ready{
  display:flex;
  flex-direction:column;
  gap:3px;
  padding:10px 11px;
  border:1px solid var(--ok-line);
  border-radius:11px;
  background:var(--ok-tint);
}
.builder-assistant-ready strong{
  color:var(--ok);
  font-size:12px;
}
.builder-assistant-ready span{
  color:var(--text2);
  font-size:10px;
}
@media(max-width:650px){
  .builder-assistant-summary{
    grid-template-columns:1fr;
  }
  .builder-assistant-section-title{
    align-items:flex-start;
    flex-direction:column;
    gap:2px;
  }
}
.builder-assistant-section-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:7px;
  min-width:0;
}
.builder-assistant-section-actions>span{
  color:var(--muted);
  font-size:9px;
}
.builder-assistant-reset,
.builder-assistant-skip{
  border:1px solid var(--line2);
  border-radius:8px;
  background:var(--panel);
  color:var(--text2);
  font:inherit;
  font-size:9px;
  font-weight:800;
  cursor:pointer;
  white-space:nowrap;
  transition:border-color .12s ease,background .12s ease,color .12s ease;
}
.builder-assistant-reset{
  min-height:26px;
  padding:0 8px;
}
.builder-assistant-skip{
  flex:0 0 auto;
  min-height:30px;
  padding:0 9px;
}
.builder-assistant-reset:hover,
.builder-assistant-skip:hover{
  border-color:var(--accent);
  background:var(--accent-tint);
  color:var(--accent-dark);
}
.builder-assistant-move-with-action{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.builder-assistant-move-copy{
  min-width:0;
  flex:1 1 auto;
}
.builder-assistant-more{
  margin-top:6px;
  color:var(--muted);
  font-size:9px;
  text-align:right;
}
.builder-assistant-empty-options{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:5px;
  padding:10px 11px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--panel);
}
.builder-assistant-empty-options strong{
  font-size:11px;
}
.builder-assistant-empty-options span{
  color:var(--muted);
  font-size:9px;
}
@media(max-width:650px){
  .builder-assistant-section-actions{
    align-items:flex-start;
    flex-direction:column;
  }
  .builder-assistant-move-with-action{
    align-items:flex-start;
  }
}
.builder-assistant-nav{
  display:flex;
  align-items:center;
  gap:6px;
  flex:0 0 auto;
}
.builder-assistant-skip:disabled{
  opacity:.38;
  cursor:not-allowed;
  background:var(--panel);
  border-color:var(--line);
  color:var(--muted);
}
.builder-assistant-skip:disabled:hover{
  background:var(--panel);
  border-color:var(--line);
  color:var(--muted);
}
@media(max-width:650px){
  .builder-assistant-nav{
    width:100%;
  }
  .builder-assistant-nav .builder-assistant-skip{
    flex:1 1 0;
  }
}
.builder-assistant-two-swap-active{
  margin-top:10px;
}
.builder-assistant-plan-lock{
  margin-top:0;
  margin-bottom:7px;
}
.builder-assistant-plan-step{
  display:flex;
  align-items:center;
  gap:10px;
}
.builder-assistant-step-number{
  width:26px;
  height:26px;
  flex:0 0 26px;
  display:grid;
  place-items:center;
  border-radius:50%;
  border:1px solid var(--accent-line);
  background:var(--accent-tint);
  color:var(--accent-dark);
  font-size:10px;
  font-weight:900;
}
.builder-assistant-plan-step.is-complete{
  border-color:var(--ok-line);
  background:var(--ok-tint);
}
.builder-assistant-plan-step.is-complete .builder-assistant-step-number{
  border-color:var(--ok-line);
  background:var(--ok-solid);
  color:var(--on-ok);
}
.builder-assistant-plan-step.is-in-progress{
  border-color:var(--accent);
  background:var(--accent-tint);
}
.builder-assistant-step-status{
  display:block;
  margin-top:4px;
  color:var(--accent-dark);
  font-size:9px;
  font-weight:800;
}
.builder-assistant-plan-step.is-complete .builder-assistant-step-status{
  color:var(--ok);
}
.builder-assistant-plan-next{
  margin-left:auto;
  flex:0 0 auto;
}
@media(max-width:650px){
  .builder-assistant-plan-step{
    flex-wrap:wrap;
  }
  .builder-assistant-plan-next{
    margin-left:36px;
  }
}
.builder-assistant-completion-card{
  display:grid;
  gap:7px;
  padding:10px;
  border:1px solid var(--line);
  border-radius:11px;
  background:var(--panel);
}
.builder-assistant-completion-group{
  display:grid;
  gap:5px;
}
.builder-assistant-completion-group>b{
  color:var(--muted);
  font-size:9px;
  letter-spacing:.05em;
  text-transform:uppercase;
}
.builder-assistant-completion-group>span{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:7px 8px;
  border-radius:8px;
  background:var(--panel2);
}
.builder-assistant-completion-group>span>strong{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:11px;
}
.builder-assistant-completion-group>span>small{
  flex:0 0 auto;
  color:var(--muted);
  font-size:9px;
  white-space:nowrap;
}
.builder-assistant-completion-total{
  display:flex;
  justify-content:space-between;
  gap:8px;
  padding-top:8px;
  border-top:1px solid var(--line);
  color:var(--text2);
  font-size:9px;
}
@media(max-width:650px){
  .builder-assistant-completion-group>span{
    align-items:flex-start;
    flex-direction:column;
    gap:2px;
  }
  .builder-assistant-completion-total{
    flex-direction:column;
    gap:3px;
  }
}
.builder-assistant-player-link{
  min-width:0;
  padding:0;
  border:0;
  background:transparent;
  color:var(--text);
  font:inherit;
  font-size:11px;
  font-weight:800;
  text-align:left;
  cursor:pointer;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.builder-assistant-player-link:hover{
  color:var(--accent-dark);
  text-decoration:underline;
  text-underline-offset:2px;
}
.builder-assistant-player-link:focus-visible{
  outline:2px solid var(--accent);
  outline-offset:2px;
  border-radius:3px;
}
body.player-pool-drag-active #builder-team-view .bench-empty-slot,
body.player-pool-drag-active #builder-team-view [data-generic-empty-bench]{
  outline:2px dashed var(--accent-line);
  outline-offset:2px;
}
body.player-pool-drag-active #builder-team-view .bench-empty-slot.drag-over,
body.player-pool-drag-active #builder-team-view [data-generic-empty-bench].drag-over{
  outline:3px solid var(--accent)!important;
  outline-offset:3px!important;
}
.builder-xi-optimisation{
  margin-top:16px;
  padding:16px;
  border-color:var(--accent-line);
}
.builder-xi-optimisation-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
}
.builder-xi-optimisation-head h3{
  margin:5px 0 0;
  font-size:19px;
  line-height:1.15;
}
.builder-xi-gain{
  flex:0 0 auto;
  padding:6px 10px;
  border:1px solid var(--ok-line);
  border-radius:999px;
  background:var(--ok-tint);
  color:var(--ok);
  font-size:10px;
  font-weight:900;
}
.builder-xi-formation-change{
  display:flex;
  align-items:center;
  gap:9px;
  margin-top:13px;
  padding:9px 10px;
  border-radius:10px;
  background:var(--panel2);
  color:var(--text2);
  font-size:10px;
}
.builder-xi-formation-change strong{
  color:var(--text);
  font-size:12px;
}
.builder-xi-arrow{
  color:var(--accent-dark);
  font-weight:900;
}
.builder-xi-swap-list{
  display:grid;
  gap:7px;
  margin-top:9px;
}
.builder-xi-swap{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) auto;
  align-items:center;
  gap:9px;
  padding:9px 10px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--panel);
}
.builder-xi-swap-side{
  min-width:0;
}
.builder-xi-swap-side small,
.builder-xi-swap-side strong,
.builder-xi-swap-side span{
  display:block;
}
.builder-xi-swap-side small{
  margin-bottom:2px;
  color:var(--muted);
  font-size:8px;
  font-weight:900;
  letter-spacing:.06em;
}
.builder-xi-swap-side strong{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:11px;
}
.builder-xi-swap-side span{
  margin-top:2px;
  color:var(--muted);
  font-size:9px;
}
.builder-xi-swap-side.is-in small{
  color:var(--ok);
}
.builder-xi-swap-side.is-out small{
  color:var(--danger);
}
.builder-xi-swap-arrow{
  color:var(--accent-dark);
  font-weight:900;
}
.builder-xi-swap-gain{
  min-width:34px;
  padding:5px 6px;
  border-radius:999px;
  background:var(--ok-tint);
  color:var(--ok);
  text-align:center;
  font-size:9px;
  font-weight:900;
}
.builder-xi-primary-copy{
  margin:9px 0 0;
  color:var(--text2);
  font-size:10px;
  line-height:1.45;
}
.builder-xi-primary-copy strong{color:var(--text);}
.builder-xi-note{
  margin:5px 0 0;
  color:var(--muted);
  font-size:9px;
  line-height:1.45;
}
@media(max-width:650px){
  .builder-xi-swap{
    grid-template-columns:1fr auto;
  }
  .builder-xi-swap-arrow{
    display:none;
  }
  .builder-xi-swap-gain{
    grid-column:2;
    grid-row:1 / span 2;
  }
  .builder-xi-swap-side.is-in{
    grid-column:1;
  }
}
html{color-scheme:light;}

[data-theme="dark"]{
  color-scheme:dark;

  /* Baggrunde — kulsort og grafit */
  --bg:#121211;
  --bg2:#0C0C0B;
  --panel:#1A1A19;
  --panel2:#201F1E;
  --fill:#252423;
  --fill2:#2E2D2B;
  --line:#302F2D;
  --line2:#403E3B;

  /* Tekst — knækket hvid og grå */
  --ink:#EDEDEA;
  
  --text:#EDEDEA;
  --text2:#B6B5B0;
  --muted:#8B8A85;

  /* Kobber, hævet en anelse for kontrast mod mørk baggrund */
  --accent:#D08050;
  --accent-dark:#B4653A;
  --accent-soft:#E3A57C;
  --accent-tint:#2B2019;
  --accent-line:#4A3627;

  --clay:#EDEDEA;
  

  --danger:#E08363;
  --danger-tint:#2E1D16;
  

  /* Semantiske tokens vendt om */
  --on-ink:#141414;
  --on-accent:#1A120C;
  --placeholder:#6E6D69;
  --header-bg:rgba(18,18,17,.86);

  --ok:#7FBFA8;
  --ok-line:#33564A;
  --ok-tint:#16241F;
  --ok-tint2:#1B2C26;

  --warn-line:#6B3B32;
  
  
  
  --scrim:rgba(0,0,0,.62);
  --ok-solid:#4E8C79;
  --ok-solid-line:#3A6D5D;
  --on-ok:#0E1A16;

  --shadow:0 1px 2px rgba(0,0,0,.40), 0 14px 30px -22px rgba(0,0,0,.75);
  --shadow-lg:0 2px 8px rgba(0,0,0,.45), 0 34px 70px -34px rgba(0,0,0,.80);
  --turf:#3C4A34;
  --turf2:#35422E;
  --chip-ink:rgba(10,10,9,.94);
  --chip-ink-line:rgba(255,255,255,.18);
  --chip-ink-text:#EDEDEA;
  --on-danger:#20120D;
}

/* Sidens baggrundsgradient følger temaet */
[data-theme="dark"] body{
  background-image:
    radial-gradient(1100px 520px at 88% -12%,rgba(208,128,80,.10),transparent 60%),
    linear-gradient(180deg,var(--bg) 0%,var(--bg) 55%,var(--bg2) 100%);
}

/* Banen: samme grønne familie, dæmpet så trøjerne stadig træder frem */
[data-theme="dark"] .empty-shirt-slot{
  border-color:rgba(220,230,210,.32);
  background:rgba(255,255,255,.05);
  color:#C7D4BB;
}

/* FDR-skalaen dæmpes, så den ikke lyser i et mørkt UI */
[data-theme="dark"] .fdr-2{background:#7C9A63;color:#12160E;}
[data-theme="dark"] .fdr-3{background:#B9A469;color:#17140C;}
[data-theme="dark"] .fdr-4{background:#B27B52;color:#1A100A;}
[data-theme="dark"] .fdr-5{background:#A55C4C;color:#1C0F0C;}

/* Trøjemasken: den lyse standardgradient bliver til en mørk */
[data-theme="dark"] .shirt-fill{
  background:var(--kit-fill,linear-gradient(145deg,#4A4A47,#31312E));
}

/* Knappen i headeren */
.theme-toggle{
  display:inline-flex;
  align-items:center;
  gap:7px;
  border:1px solid var(--line2);
  background:var(--panel);
  color:var(--text2);
  border-radius:999px;
  padding:8px 13px;
  font:inherit;
  font-size:11px;
  font-weight:700;
  letter-spacing:.02em;
  cursor:pointer;
  white-space:nowrap;
  transition:border-color .15s ease,color .15s ease,background .15s ease;
}
.theme-toggle:hover{
  border-color:var(--accent);
  color:var(--accent);
  background:var(--accent-tint);
}

@media(max-width:700px){
  .theme-toggle-label{display:none;}
  .theme-toggle{padding:8px 10px;}
}

@media(prefers-reduced-motion:no-preference){
  body,
  .panel,
  .site-header{transition:background-color .2s ease,border-color .2s ease,color .2s ease;}
}
.player-discipline-section{
  margin-top:22px;
  padding-top:2px;
}
.player-discipline-section .player-popup-section-head{
  margin-bottom:12px;
}
.player-discipline-grid{
  display:grid;
}
.player-discipline-stat{
  position:relative;
  border:1px solid var(--line);
  background:linear-gradient(180deg,var(--panel2),var(--panel));
  box-shadow:0 1px 0 rgba(255,255,255,.025) inset;
}
.player-discipline-stat::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  background:var(--accent);
  opacity:.72;
}
.player-discipline-stat small,
.player-discipline-stat strong,
.player-discipline-stat span{
  display:block;
}
.player-discipline-stat small{
  padding-left:2px;
  color:var(--muted);
  font-weight:800;
  text-transform:uppercase;
}
.player-discipline-stat strong{
  color:var(--text);
}
.player-discipline-stat span{
  color:var(--text2);
}
.player-discipline-stat:nth-child(1)::before{
  background:#d9b928;
}
.player-discipline-stat:nth-child(2)::before{
  background:#c84a4a;
}
.player-discipline-stat:nth-child(3)::before{
  background:var(--accent);
}
.player-discipline-stat:nth-child(4)::before,
.player-discipline-stat:nth-child(5)::before,
.player-discipline-stat:nth-child(6)::before{
  background:#6f8db8;
}
.player-discipline-note{
  margin:11px 2px 0;
  padding:9px 11px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--panel2);
  color:var(--muted);
  font-size:9px;
  line-height:1.45;
}
[data-theme="dark"] .player-discipline-stat{
  box-shadow:0 1px 0 rgba(255,255,255,.035) inset;
}
.pitch-player .player-coach-score{
  background:var(--chip-ink);
  border-color:var(--chip-ink-line);
  color:var(--chip-ink-text);
}
.pitch-player .player-coach-score b{
  color:var(--accent-soft);
}

.player-pool-section-heading{
  color:var(--chip-ink-text);
}

/* Sælg-knappen: fyldt rødt mærke frem for orange tegn på hvid cirkel */
.pitch-player-sell{
  border-color:var(--danger);
  background:var(--danger);
  color:var(--on-danger);
  box-shadow:0 3px 8px rgba(0,0,0,.30);
}
.pitch-player-sell:hover{
  background:var(--danger);
  border-color:var(--danger);
  filter:brightness(1.08);
}
[data-theme="dark"] .pitch-player-sell{
  box-shadow:0 3px 8px rgba(0,0,0,.55);
}
:root,
[data-theme="dark"]{
  --label-bg:rgba(26,26,25,.95);
  
  --label-line:rgba(255,255,255,.14);
  --pitch-label-text:#EDEDEA;
  --pitch-label-text2:#CCCBC7;
  
  --pitch-name-shadow:0 1px 0 rgba(0,0,0,.55),0 0 3px rgba(0,0,0,.40);
}

.pitch-player strong{
  color:var(--pitch-label-text);
  text-shadow:var(--pitch-name-shadow);
}

.pitch-formation-badge{
  color:var(--pitch-label-text2);
  border-color:var(--label-line);
}
.pitch-formation-badge strong,
.pitch-formation-badge b{
  color:var(--pitch-label-text);
}

/* Tomme pladser matcher de mørke bokse i begge temaer */
.empty-shirt-slot{
  border-color:rgba(255,255,255,.34);
  background:rgba(20,20,20,.22);
  color:var(--pitch-label-text2);
}
.pitch-player .pitch-player-meta .player-price{
  padding:3px 6px;
  border:1px solid var(--label-line);
  border-radius:999px;
}
.account-dialog{width:min(560px,calc(100vw - 28px));max-height:min(760px,calc(100vh - 28px));padding:0;border:0;border-radius:18px;background:transparent;color:var(--text);overflow:visible;}
.account-dialog::backdrop{background:rgba(15,15,14,.58);backdrop-filter:blur(3px);}
.account-dialog-card{padding:20px;border:1px solid var(--line);border-radius:18px;background:var(--panel);box-shadow:0 26px 80px rgba(0,0,0,.24);}
.account-dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;}
.account-dialog-head h2{margin:5px 0;font-size:24px;line-height:1.1;}
.account-dialog-head p{margin:0;color:var(--muted);font-size:11px;line-height:1.5;}
.account-tabs{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin-top:18px;padding:4px;border-radius:11px;background:var(--panel2);}
.account-tab{padding:9px 10px;border:0;border-radius:8px;background:transparent;color:var(--muted);font:inherit;font-size:10px;font-weight:800;cursor:pointer;}
.account-tab.is-active{background:var(--panel);color:var(--text);box-shadow:0 1px 4px rgba(0,0,0,.08);}
.account-form{display:grid;gap:12px;margin-top:16px;}
.account-form label{display:grid;gap:6px;}
.account-form label>span{color:var(--text2);font-size:9px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;}
.account-form input{width:100%;padding:11px 12px;border:1px solid var(--line);border-radius:10px;background:var(--panel2);color:var(--text);font:inherit;font-size:13px;outline:none;}
.account-form input:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-tint);}
.account-submit-btn{width:100%;min-height:42px;margin-top:2px;}
.account-status{min-height:17px;margin:0;color:var(--muted);font-size:10px;line-height:1.45;}
.account-status.is-error{color:var(--danger);}
.account-status.is-success{color:#2f6f62;}
.account-privacy-note{margin:12px 0 0;padding-top:12px;border-top:1px solid var(--line);color:var(--muted);font-size:9px;line-height:1.5;}
.account-user-card{display:flex;align-items:center;gap:12px;margin-top:18px;padding:14px;border:1px solid rgba(47,111,98,.28);border-radius:13px;background:rgba(47,111,98,.07);}
.account-user-icon{display:grid;place-items:center;width:34px;height:34px;flex:0 0 auto;border-radius:50%;background:#2f6f62;color:#fff;font-weight:900;}
.account-user-card small,.account-user-card strong,.account-user-card span{display:block;}
.account-user-card small{color:var(--muted);font-size:8px;text-transform:uppercase;letter-spacing:.06em;}
.account-user-card strong{margin-top:2px;font-size:13px;overflow-wrap:anywhere;}
.account-user-card span{margin-top:3px;color:#2f6f62;font-size:9px;font-weight:700;}
.account-saved-list{display:grid;grid-template-columns:1fr 1fr;gap:7px 14px;margin-top:14px;padding:13px;border:1px solid var(--line);border-radius:12px;background:var(--panel2);}
.account-saved-list span{color:var(--text2);font-size:9px;line-height:1.35;}
.account-actions{display:flex;gap:8px;margin-top:14px;}
.account-actions>*{flex:1;}
.danger-outline-btn{min-height:36px;padding:8px 12px;border:1px solid rgba(176,52,52,.35);border-radius:9px;background:transparent;color:var(--danger);font:inherit;font-size:10px;font-weight:800;cursor:pointer;}
.danger-outline-btn:hover{background:rgba(176,52,52,.08);}
@media(max-width:620px){.account-saved-list{grid-template-columns:1fr}.account-dialog-card{padding:16px}}
.manager-login-required-note{
  margin:8px 0 0;
  color:var(--muted);
  font-size:10px;
  line-height:1.45;
}
.my-account-menu-wrap{position:relative;display:inline-flex;align-items:center;}

.forgot-password-link{justify-self:center;padding:2px 4px;border:0;background:transparent;color:var(--accent-dark);font:inherit;font-size:10px;font-weight:750;cursor:pointer}.forgot-password-link:hover{text-decoration:underline}.account-secondary-panel{margin-top:16px}.account-back-link{padding:0;border:0;background:transparent;color:var(--muted);font:inherit;font-size:9px;font-weight:750;cursor:pointer}.account-secondary-head{margin-top:13px;padding:13px;border:1px solid var(--line);border-radius:12px;background:var(--panel2)}.account-secondary-head strong{display:block;color:var(--text);font-size:14px}.account-secondary-head p{margin:5px 0 0;color:var(--muted);font-size:10px;line-height:1.5}
.forgot-password-sender-note{
  margin:0;
  color:var(--muted);
  font-size:9px;
  line-height:1.45;
  text-align:center;
}
.forgot-password-sender-note strong{
  color:var(--text);
  font-weight:800;
}
.clean-site-header{
  min-height:120px!important;
  border-bottom:1px solid var(--line)!important;
  background:var(--bg)!important;
  overflow:hidden!important;
}
.clean-header-inner{
  min-height:120px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:20px!important;
  padding-top:0!important;
  padding-bottom:0!important;
  position:relative!important;
}

.clean-brand{
  flex-direction:column!important;
  gap:1px!important;
  text-decoration:none!important;
}
.clean-brand-logo{
  display:block!important;
  width:210px!important;
  height:auto!important;
  max-height:78px!important;
  object-fit:contain!important;
}
.header-player-art{
  position:absolute!important;
  left:50%!important;
  bottom:1px!important;
  transform:translateX(-50%)!important;
  width:min(170px,15vw)!important;
  max-width:100%!important;
  height:auto!important;
  pointer-events:none!important;
  user-select:none!important;
  z-index:0!important;
}
.clean-brand,
.clean-header-actions{
  position:relative!important;
  z-index:1!important;
}

.clean-header-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:10px!important;
}

.clean-header-icon-btn{
  display:grid!important;
  place-items:center!important;
  width:44px!important;
  height:44px!important;
  min-width:44px!important;
  padding:0!important;
  border:1px solid var(--line)!important;
  border-radius:999px!important;
  background:var(--panel)!important;
  color:var(--text)!important;
  cursor:pointer!important;
  box-shadow:none!important;
  transition:border-color .15s ease,background .15s ease,transform .15s ease!important;
}
.clean-header-icon-btn:hover{
  border-color:var(--accent)!important;
  background:var(--accent-tint)!important;
}
.clean-header-icon-btn:active{
  transform:translateY(1px)!important;
}
.clean-header-icon-btn svg{
  width:18px!important;
  height:18px!important;
  display:block!important;
}

/* Sun in light mode, moon in dark mode */
.clean-theme-btn .clean-theme-sun{display:block!important;}
.clean-theme-btn .clean-theme-moon,
html[data-theme="dark"] .clean-theme-btn .clean-theme-sun{display:none!important;}
html[data-theme="dark"] .clean-theme-btn .clean-theme-moon{display:block!important;}

.clean-account-wrap{
  display:inline-flex!important;
}
.clean-account-btn{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  height:44px!important;
  padding:0 14px!important;
  border:1px solid rgba(47,111,98,.38)!important;
  border-radius:999px!important;
  background:var(--panel)!important;
  color:var(--text)!important;
  font:inherit!important;
  font-size:11px!important;
  font-weight:800!important;
  max-width:190px!important;
}
.clean-account-btn:hover{
  border-color:#2f6f62!important;
  background:rgba(47,111,98,.07)!important;
}
.clean-account-dot{
  width:9px!important;
  height:9px!important;
  flex:0 0 9px!important;
  border-radius:50%!important;
  background:#2f6f62!important;
  box-shadow:0 0 0 4px rgba(47,111,98,.12)!important;
}
#clean-account-label{
  display:block!important;
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}

.sr-only{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  padding:0!important;
  margin:-1px!important;
  overflow:hidden!important;
  clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;
  border:0!important;
}

/* Disable old header styling that can conflict. */

@media(max-width:720px){
  .clean-brand-logo{
    width:180px!important;
    max-height:66px!important;
  }
  .header-player-art{
    width:min(125px,18vw)!important;
  }
  .clean-header-inner,
.clean-site-header{
    min-height:100px!important;
  }
  .clean-header-actions{
    gap:7px!important;
  }
  .clean-header-icon-btn{
    width:38px!important;
    height:38px!important;
    min-width:38px!important;
  }
  .clean-account-btn{
    height:38px!important;
    padding:0 11px!important;
    max-width:130px!important;
  }
}

@media(max-width:480px){
  .clean-brand-logo{
    width:155px!important;
    max-height:58px!important;
  }
  .header-player-art{
    width:min(88px,22vw)!important;
    opacity:.95!important;
  }
  .clean-header-actions{
    gap:5px!important;
  }
  .clean-header-icon-btn{
    width:36px!important;
    height:36px!important;
    min-width:36px!important;
  }
  .clean-account-btn{
    height:36px!important;
    max-width:104px!important;
    padding:0 9px!important;
    font-size:10px!important;
  }
}
.clean-account-wrap{
  position:relative!important;
}
.clean-account-btn{
  cursor:pointer!important;
}
html{
  scrollbar-gutter:stable;
}

/* Fallback for browsers without scrollbar-gutter support */
@supports not (scrollbar-gutter:stable){
  body{
    overflow-y:scroll;
  }
}
html.theme-switching *,
html.theme-switching *::before,
html.theme-switching *::after{
  transition:none!important;
  animation-duration:0s!important;
}

/* Keep the theme button itself responsive without delaying the page-wide theme change. */
.clean-theme-btn,
.clean-theme-btn svg{
  transition:transform .08s ease, opacity .08s ease!important;
}
.account-smtp-test-status{
  font-size:9px;
  line-height:1.45;
}
.account-email-system{
  margin-top:14px;
  padding:13px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--panel2);
}
.account-email-system-copy{
  margin-bottom:10px;
}
.account-email-system-copy strong,
.account-email-system-copy small{
  display:block;
}
.account-email-system-copy strong{
  color:var(--text);
  font-size:10px;
}
.account-email-system-copy small{
  margin-top:3px;
  color:var(--muted);
  font-size:9px;
  line-height:1.45;
}
.account-smtp-test-visible{
  width:100%;
  min-height:38px;
  padding:8px 12px;
  border:1px solid rgba(47,111,98,.42);
  border-radius:9px;
  background:rgba(47,111,98,.08);
  color:var(--text);
  font:inherit;
  font-size:10px;
  font-weight:800;
  cursor:pointer;
}
.account-smtp-test-visible:hover{
  border-color:#2f6f62;
  background:rgba(47,111,98,.13);
}
.account-smtp-test-visible:disabled{
  opacity:.6;
  cursor:wait;
}
.account-smtp-test-status{
  margin:8px 0 0!important;
}
.account-forgot-test-visible{
  margin-top:8px;
}
.mail-diagnostic-detail{
  margin:8px 0 0;
  padding:9px 10px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--panel);
  color:var(--text2);
  font:500 8px/1.45 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
}
.account-mail-dns-test{
  margin-top:8px;
}
.mail-dns-status{
  display:grid;
  gap:6px;
  margin-top:8px;
}
.mail-dns-row{
  display:flex;
  align-items:flex-start;
  gap:8px;
  padding:8px 9px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--panel);
}
.mail-dns-row .mail-dns-mark{
  display:grid;
  place-items:center;
  width:18px;
  height:18px;
  flex:0 0 18px;
  border-radius:50%;
  font-size:9px;
  font-weight:900;
}
.mail-dns-row.is-ok .mail-dns-mark{
  background:rgba(47,111,98,.12);
  color:#2f6f62;
}
.mail-dns-row.is-bad .mail-dns-mark{
  background:rgba(176,52,52,.1);
  color:var(--danger);
}
.mail-dns-row strong,
.mail-dns-row small{
  display:block;
}
.mail-dns-row strong{
  color:var(--text);
  font-size:9px;
}
.mail-dns-row small{
  margin-top:2px;
  color:var(--muted);
  font:500 8px/1.4 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  overflow-wrap:anywhere;
}
.mail-dns-loading,
.mail-dns-error{
  padding:8px 9px;
  color:var(--muted);
  font-size:9px;
}
.mail-dns-error{
  color:var(--danger);
}
#forgot-password-open{
  position:relative;
  z-index:2;
  pointer-events:auto!important;
  cursor:pointer!important;
}
#forgot-password-panel{
  position:relative;
  z-index:1;
}
#forgot-password-status.is-success{
  color:#2f6f62;
}
#reset-password-status,
#forgot-password-status{
  font-size:12px;
  line-height:1.5;
  margin-top:4px;
  min-height:18px;
  font-weight:600;
}
#reset-password-status.is-error,
#forgot-password-status.is-error{
  color:var(--danger);
}
#reset-password-status.is-error::before,
#forgot-password-status.is-error::before{
  content:'! ';
  font-weight:700;
}
#reset-password-panel .account-form input:focus-visible{
  outline:2px solid var(--accent,#B4653A);
  outline-offset:1px;
}
#reset-password-panel input.is-mismatch{
  border-color:var(--danger);
  box-shadow:0 0 0 2px color-mix(in srgb,var(--danger) 22%,transparent);
}
#reset-password-submit:disabled{
  opacity:.5;
  cursor:not-allowed;
}
.password-field{position:relative;display:block;}
.password-field input{padding-right:42px;}
.password-eye{
  position:absolute;
  top:50%;
  right:6px;
  transform:translateY(-50%);
  display:grid;
  place-items:center;
  width:30px;
  height:30px;
  padding:0;
  border:0;
  border-radius:8px;
  background:transparent;
  color:var(--text2);
  cursor:pointer;
  transition:color .15s ease,background .15s ease;
}
.password-eye svg{width:17px;height:17px;}
.password-eye:hover{color:var(--text);background:var(--accent-tint);}
.password-eye:focus-visible{outline:2px solid var(--accent);outline-offset:1px;}
.password-eye[aria-pressed="true"]{color:var(--accent);}
.player-popup-stats,
.player-discipline-grid,
.player-popup-season-stats,
.season-compare-grid{
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:7px;
}
.player-popup-stats{grid-auto-rows:68px;}
.player-popup-stat,
.player-discipline-stat,
.player-season-stat,
.season-compare-item{
  min-width:0;
  width:100%;
  height:68px;
  min-height:68px;
  
  padding:7px 9px;
  border-radius:11px;
  overflow:hidden;
}
.player-popup-stat,
.player-discipline-stat{
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.player-popup-stat small,
.player-discipline-stat small,
.season-compare-item small{
  min-height:0;
  padding:0;
  font-size:8px;
  line-height:1.2;
  letter-spacing:.04em;
}
.player-popup-stat strong,
.player-discipline-stat strong,
.season-compare-item strong{
  margin-top:3px;
  font-size:17px;
  line-height:1.05;
  letter-spacing:-.02em;
}
.player-popup-stat span,
.player-discipline-stat span,
.season-compare-item span{
  margin-top:2px;
  min-height:0;
  font-size:8px;
  line-height:1.2;
}
.player-discipline-stat::before{width:2px;}
.season-compare-item{display:flex;flex-direction:column;justify-content:center;}
.season-compare-item span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}

@media(max-width:700px){
  .player-popup-stats,
  .player-discipline-grid,
  .player-popup-season-stats,
  .season-compare-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:430px){
  .player-popup-stats,
  .player-discipline-grid,
  .player-popup-season-stats,
  .season-compare-grid{grid-template-columns:1fr;}
}
#player-popup-stats,
#player-popup-season-stats,
#player-popup-discipline-penalties,
#player-season-compare{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  grid-auto-rows:68px!important;
  gap:7px!important;
}
#player-popup-stats > .player-popup-stat,
#player-popup-season-stats > .player-season-stat,
#player-popup-discipline-penalties > .player-discipline-stat,
#player-season-compare > .season-compare-item{
  width:100%!important;
  height:68px!important;
  min-height:68px!important;
  max-height:68px!important;
  padding:7px 9px!important;
  
  border-radius:11px!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  overflow:hidden!important;
}
#player-popup-stats > .player-popup-stat small,
#player-popup-season-stats > .player-season-stat small,
#player-popup-discipline-penalties > .player-discipline-stat small,
#player-season-compare > .season-compare-item small{
  min-height:0!important;
  padding:0!important;
  margin:0!important;
  font-size:8px!important;
  line-height:1.15!important;
  letter-spacing:.04em!important;
}
#player-popup-stats > .player-popup-stat strong,
#player-popup-season-stats > .player-season-stat strong,
#player-popup-discipline-penalties > .player-discipline-stat strong,
#player-season-compare > .season-compare-item strong{
  margin:3px 0 0!important;
  font-size:17px!important;
  line-height:1!important;
  letter-spacing:-.02em!important;
}
#player-popup-stats > .player-popup-stat span,
#player-popup-season-stats > .player-season-stat span,
#player-popup-discipline-penalties > .player-discipline-stat span,
#player-season-compare > .season-compare-item span{
  min-height:0!important;
  margin:2px 0 0!important;
  font-size:8px!important;
  line-height:1.15!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
#player-popup-discipline-penalties > .player-discipline-stat::before{width:2px!important;}

/* The season trend is a box too: keep it on the same compact height. */
#player-season-trend.season-trend-card{
  min-height:68px!important;
  height:68px!important;
  
  padding:7px 9px!important;
  border-radius:11px!important;
  align-items:center!important;
  overflow:hidden!important;
}
#player-season-trend.season-trend-card strong{font-size:14px!important;line-height:1.1!important;}
#player-season-trend.season-trend-card p{margin:3px 0 0!important;font-size:8px!important;line-height:1.2!important;}
#player-season-trend .season-trend-badge{padding:4px 7px!important;font-size:8px!important;}

@media(max-width:700px){
  #player-popup-stats,
  #player-popup-season-stats,
  #player-popup-discipline-penalties,
  #player-season-compare{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@media(max-width:430px){
  #player-popup-stats,
  #player-popup-season-stats,
  #player-popup-discipline-penalties,
  #player-season-compare{grid-template-columns:1fr!important;}
}
.pitch-player-sell{
  display:block;
  font-size:0;
  line-height:0;
}
.pitch-player-sell::before,
.pitch-player-sell::after{
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  width:10px;
  height:2px;
  border-radius:2px;
  background:currentColor;
  transform-origin:center;
  pointer-events:none;
}
.pitch-player-sell::before{transform:translate(-50%,-50%) rotate(45deg);}
.pitch-player-sell::after{transform:translate(-50%,-50%) rotate(-45deg);}

/* Player profile style close buttons: smaller circle and geometrically centred X */
#player-popup-close,
#insight-list-close{
  width:28px;
  height:28px;
  top:12px;
  right:12px;
  padding:0;
  font-size:0;
  line-height:0;
}
#player-popup-close::before,
#player-popup-close::after,
#insight-list-close::before,
#insight-list-close::after{
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  width:11px;
  height:1.8px;
  border-radius:2px;
  background:currentColor;
  transform-origin:center;
  pointer-events:none;
}
#player-popup-close::before,
#insight-list-close::before{transform:translate(-50%,-50%) rotate(45deg);}
#player-popup-close::after,
#insight-list-close::after{transform:translate(-50%,-50%) rotate(-45deg);}


/* Compact collapsible insight sections: heading only while closed */
.insight-modal-buttons{align-items:stretch;gap:14px;grid-template-columns:repeat(5,minmax(0,1fr));}
.insight-modal-trigger{width:100%;min-height:58px;padding:0 16px;border:1px solid var(--line2);border-radius:13px;background:linear-gradient(180deg,var(--panel) 0%,var(--panel2) 100%);color:var(--text);box-shadow:var(--shadow);display:flex;align-items:center;justify-content:space-between;gap:14px;font:inherit;font-size:12px;font-weight:800;letter-spacing:.085em;text-transform:uppercase;cursor:pointer;transition:border-color .15s ease,background .15s ease,color .15s ease,transform .15s ease,box-shadow .15s ease;}
.insight-modal-trigger:hover{background:var(--accent-tint);border-color:var(--accent-line);color:var(--accent-dark);transform:translateY(-1px);box-shadow:0 9px 20px rgba(17,24,39,.10);}
.insight-modal-trigger:focus-visible{outline:2px solid var(--accent);outline-offset:2px;}
.insight-modal-trigger-icon{display:grid;place-items:center;width:30px;height:30px;border:1px solid var(--line2);border-radius:50%;background:var(--panel);font-size:16px;line-height:1;flex:0 0 auto;}
.insight-list-dialog{width:min(720px,calc(100% - 28px));max-height:min(88vh,860px);overflow:hidden!important;}
.insight-list-shell{padding-top:28px;display:flex;flex-direction:column;max-height:min(88vh,860px);overflow:hidden;}
.insight-list-head{position:relative;flex:0 0 auto;padding:0 48px 18px 0;border-bottom:1px solid var(--line);background:var(--panel);z-index:5;}
.insight-list-head h2{margin:4px 0 6px;font-size:30px;letter-spacing:-.03em;}
.insight-list-head p{margin:0;line-height:1.45;}
.insight-list-content{flex:1 1 auto;min-height:0;margin-top:16px;border:1px solid var(--line);border-radius:14px;overflow-y:auto;overflow-x:hidden;box-shadow:none;overscroll-behavior:contain;}
.insight-list-content .list-row{min-height:58px;}
.insight-list-content .rank-num{font-variant-numeric:tabular-nums;}
@media(max-width:650px){.insight-list-head h2{font-size:25px;}.insight-modal-trigger{min-height:54px;}}
.insight-list-shell>.player-profile-close-style{position:absolute!important;top:12px!important;right:12px!important;z-index:20!important;}
@media(max-width:650px){.insight-list-dialog,.insight-list-shell{max-height:92vh;} .insight-list-content{margin-top:12px;}}
#player-popup{overflow:hidden!important;}
#player-popup .player-profile-shell{
  padding:0!important;
  height:min(88vh,900px)!important;
  max-height:88vh!important;
  display:flex!important;
  flex-direction:column!important;
  overflow:hidden!important;
}
#player-popup .player-profile-sticky-head{
  position:relative!important;
  flex:0 0 auto!important;
  z-index:15!important;
  padding:20px 54px 16px 24px!important;
  border-bottom:1px solid var(--line)!important;
  background:var(--panel)!important;
  box-shadow:0 5px 14px rgba(17,24,39,.05)!important;
}
#player-popup .player-profile-sticky-head .player-popup-head{
  padding-right:0!important;
}
#player-popup .player-profile-sticky-head>.player-profile-close-style{
  position:absolute!important;
  top:12px!important;
  right:12px!important;
  z-index:20!important;
}
#player-popup .player-profile-scroll-content{
  flex:1 1 auto!important;
  min-height:0!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  padding:0 24px 24px!important;
  overscroll-behavior:contain!important;
}
#player-popup .player-profile-scroll-content>#player-popup-availability:first-child{margin-top:18px;}
@media(max-width:650px){
  #player-popup .player-profile-shell{height:92vh!important;max-height:92vh!important;}
  #player-popup .player-profile-sticky-head{padding:16px 48px 13px 18px!important;}
  #player-popup .player-profile-scroll-content{padding:0 18px 20px!important;}
  #player-popup .player-popup-head{gap:12px!important;}
  #player-popup .player-popup-shirt{width:58px!important;height:58px!important;}
  #player-popup .player-popup-head h2{font-size:25px!important;}
}
.fixture-insight-content{
  overflow-y:auto!important;
}
.fixture-insight-content .fixture-cell{
  padding:11px 8px!important;
}
@media(max-width:1100px){
  .fixture-insight-content .fixture-cell{
    padding:9px 6px!important;
    font-size:11px!important;
  }
  .fixture-insight-content .fixture-cell small{
    font-size:9px!important;
  }
}
@media(max-width:1180px){
  .insight-modal-buttons{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
}
@media(max-width:980px){
  .insight-modal-buttons{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@media(max-width:650px){
  .insight-modal-buttons{grid-template-columns:1fr!important;}
}
.pitch-rating-badge{
  position:absolute;
  z-index:7;
  display:flex;
  align-items:center;
  gap:9px;
  padding:7px 10px;
  border-radius:10px;
  background:var(--label-bg);
  border:1px solid rgba(255,255,255,.72);
  box-shadow:0 4px 12px rgba(30,42,28,.13);
  pointer-events:none;
}
.pitch-rating-badge>span{
  font-size:9px;
  font-weight:800;
  letter-spacing:.08em;
}
.pitch-rating-badge>div{
  display:flex;
  align-items:baseline;
  gap:2px;
}
.pitch-rating-badge strong{
  font-family:var(--display);
  font-size:15px;
  letter-spacing:-.02em;
}
.pitch-rating-badge b{
  font-size:9px;
  font-weight:800;
}
@media(max-width:580px){
  .pitch-rating-badge{
    padding:6px 8px;
    gap:6px;
  }
  .pitch-rating-badge>span{font-size:8px;}
  .pitch-rating-badge strong{font-size:14px;}
}
.pitch-rating-badge{
  color:var(--pitch-label-text2)!important;
}
.pitch-rating-badge strong,
.pitch-rating-badge b{
  color:var(--pitch-label-text)!important;
}
.pitch-rating-badge{
  min-height:34px!important;
  height:34px!important;
  padding-top:0!important;
  padding-bottom:0!important;
}
.clean-brand{display:inline-flex!important;align-items:center!important;position:relative!important;}
.clean-brand-logo-dark,
html[data-theme="dark"] .clean-brand-logo-light{display:none!important;}
html[data-theme="dark"] .clean-brand-logo-dark{display:block!important;}
.fixture-insight-content .fixture-cell,
.fixture-insight-content .fixture-cell strong,
.fixture-insight-content .fixture-cell small,
.fixture-insight-content .fixture-cell span{
  min-width:0!important;
}
.fixture-insight-content .fixture-cell small{
  white-space:nowrap!important;
}
.fixture-insight-content .club-fixture-ranking,
.fixture-insight-content .club-fixture-ranking *{
  white-space:nowrap!important;
}
.fixture-insight-content .fixture-cell,
.fixture-insight-content .fixture-cell strong,
.fixture-insight-content .fixture-cell small,
.fixture-insight-content .fixture-cell span{
  overflow:visible!important;
  text-overflow:clip!important;
  max-width:none!important;
}
.fixture-insight-content{
  overflow-x:auto!important;
}
.fixture-insight-content .fixture-cell{
  padding-left:10px!important;
  padding-right:10px!important;
}
.fixture-insight-content .fixture-match-cell .fixture-gw-inline{
  margin-top:0!important;
  color:var(--muted)!important;
}
.fixture-insight-content .fixture-match-cell{
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:6px!important;
  white-space:nowrap!important;
}
.fixture-insight-content .fixture-match-cell .fdr,
.fixture-insight-content .fixture-match-cell .fixture-opponent,
.fixture-insight-content .fixture-match-cell .fixture-gw-inline{
  display:inline-flex!important;
  align-items:center!important;
  margin:0!important;
  white-space:nowrap!important;
  flex:0 0 auto!important;
}
.fixture-insight-dialog{
  width:max-content!important;
  max-width:calc(100vw - 32px)!important;
}
.fixture-insight-dialog .insight-list-shell,
.fixture-insight-content{
  width:max-content!important;
  max-width:100%!important;
}
.fixture-insight-content .club-fixture-ranking{
  width:max-content!important;
  min-width:0!important;
  grid-template-columns:52px 165px 105px repeat(5,145px)!important;
  justify-content:start!important;
}


/* Builder tool panels: explicit close affordance */
.builder-tool-head{position:relative;}
.builder-tool-head-actions{display:flex;align-items:center;gap:12px;}
.builder-tool-close{
  flex:0 0 auto;
  width:32px;
  height:32px;
  border:1px solid var(--line2);
  border-radius:50%;
  background:var(--panel2);
  color:var(--text2);
  cursor:pointer;
  position:relative;
  padding:0;
}
.builder-tool-close::before,
.builder-tool-close::after{
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  width:13px;
  height:2px;
  border-radius:2px;
  background:currentColor;
  transform-origin:center;
}
.builder-tool-close::before{transform:translate(-50%,-50%) rotate(45deg);}
.builder-tool-close::after{transform:translate(-50%,-50%) rotate(-45deg);}
.builder-tool-close:hover,
.builder-tool-close:focus-visible{
  border-color:var(--accent);
  color:var(--accent);
  background:var(--accent-tint);
  outline:none;
}
@media (max-width:640px){
  .builder-tool-head-actions{gap:8px;}
  .builder-tool-close{width:30px;height:30px;}
}


/* Builder tools as compact Player-Profile-style modals */
.builder-tool-modal{
  position:fixed;
  inset:0;
  z-index:1200;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
}
.builder-tool-modal.hidden{display:none!important;}
.builder-tool-backdrop{
  position:absolute;
  inset:0;
  background:rgba(6,10,18,.72);
  backdrop-filter:blur(4px);
  -webkit-backdrop-filter:blur(4px);
}
.builder-tool-dialog{
  z-index:1;
  width:min(920px,calc(100vw - 36px));
  max-height:min(84vh,820px);
  overflow:auto;
  overscroll-behavior:contain;
  border:1px solid var(--line2);
  border-radius:20px;
  background:var(--panel);
  box-shadow:0 24px 80px rgba(0,0,0,.34);
  padding:0 18px 18px;
}
#builder-analysis.builder-tool-dialog{width:min(860px,calc(100vw - 36px));}
#builder-transfer-panel.builder-tool-dialog{width:min(900px,calc(100vw - 36px));}
#builder-chip-panel.builder-tool-dialog{width:min(940px,calc(100vw - 36px));}

.builder-tool-dialog .builder-tool-head{
  position:sticky;
  top:0;
  z-index:4;
  margin:0 -18px 14px;
  padding:14px 18px 12px;
  background:var(--panel);
  border-bottom:1px solid var(--line);
  border-radius:20px 20px 0 0;
}
.builder-tool-dialog .builder-tool-head h2{margin:2px 0 0;font-size:1.2rem;}
.builder-tool-dialog .builder-tool-head .eyebrow{font-size:.68rem;}
.builder-tool-dialog .builder-tool-head .muted{font-size:.78rem;line-height:1.35;}
.builder-tool-dialog .builder-tool-close{width:28px;height:28px;}
.builder-tool-dialog .builder-tool-close::before,
.builder-tool-dialog .builder-tool-close::after{width:12px;}

.builder-tool-dialog .panel{
  padding:12px;
  border-radius:14px;
}
.builder-tool-dialog .chip-grid{
  gap:10px;
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.builder-tool-dialog .chip-card{
  padding:12px;
}
.builder-tool-dialog .chip-card h3{font-size:1rem;margin:1px 0 0;}
.builder-tool-dialog .chip-score-row{margin:8px 0;}
.builder-tool-dialog .chip-score-row strong{font-size:1.55rem;}
.builder-tool-dialog .chip-reason-list{gap:6px;}
.builder-tool-dialog .chip-reason{padding:8px 10px;font-size:.82rem;line-height:1.35;}
.builder-tool-dialog .chip-player-line{font-size:.82rem;margin-top:6px;}

.builder-tool-dialog .transfer-controls{
  gap:7px;
}
.builder-tool-dialog .transfer-controls label{font-size:.74rem;}
.builder-tool-dialog .transfer-controls select{min-height:32px;padding:4px 28px 4px 9px;}
body.builder-modal-open{overflow:hidden;}

@media (max-width:700px){
  .builder-tool-modal{
    align-items:flex-end;
    padding:8px;
  }
  .builder-tool-dialog,
  #builder-analysis.builder-tool-dialog,
  #builder-transfer-panel.builder-tool-dialog,
  #builder-chip-panel.builder-tool-dialog{
    width:100%;
    max-height:90vh;
    border-radius:18px;
    padding:0 12px 12px;
  }
  .builder-tool-dialog .builder-tool-head{
    margin:0 -12px 12px;
    padding:12px;
    border-radius:18px 18px 0 0;
  }
  .builder-tool-dialog .chip-grid{
    grid-template-columns:1fr;
  }
}


/* Bench Order Advisor: compact, wrapping rows without cross-column overflow */
.bench-advice-lines{gap:7px;}
.bench-advice-line{
  display:grid;
  grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);
  gap:8px 12px;
  align-items:start;
}
.bench-advice-line strong,
.bench-advice-line span{
  min-width:0;
  white-space:normal;
  overflow:visible;
  text-overflow:clip;
  overflow-wrap:anywhere;
  word-break:normal;
  line-height:1.3;
}
.bench-advice-line strong{font-size:11px;}
.bench-advice-line span{
  font-size:11px;
  text-align:right;
}
@media(max-width:560px){
  .bench-advice-line{
    grid-template-columns:1fr;
    gap:3px;
  }
  .bench-advice-line span{text-align:left;}
}


/* Separate Starting XI and bench strength clearly */
.bench-panel-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:8px;
}
.bench-panel-head .panel-label{margin-bottom:0;}
.bench-rating-badge{
  display:flex;
  align-items:baseline;
  gap:4px;
  min-height:28px;
  padding:5px 9px;
  border:1px solid var(--line2);
  border-radius:999px;
  background:var(--panel2);
  white-space:nowrap;
}
.bench-rating-badge span{
  margin-right:3px;
  color:var(--muted);
  font-size:8px;
  font-weight:800;
  letter-spacing:.08em;
}
.bench-rating-badge strong{
  color:var(--text);
  font-size:14px;
  line-height:1;
}
.bench-rating-badge b{
  color:var(--muted);
  font-size:9px;
  font-weight:700;
}
.analysis-rating-summary{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  margin:0 0 10px;
}
.analysis-rating-pill{
  display:flex;
  align-items:baseline;
  justify-content:center;
  gap:4px;
  padding:9px 10px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--panel2);
}
.analysis-rating-pill span{
  margin-right:4px;
  color:var(--muted);
  font-size:9px;
  font-weight:800;
  letter-spacing:.07em;
  text-transform:uppercase;
}
.analysis-rating-pill strong{
  font-size:19px;
  line-height:1;
}
.analysis-rating-pill b{
  color:var(--muted);
  font-size:10px;
}
@media(max-width:520px){
  .bench-panel-head{align-items:flex-start;}
  .bench-rating-badge{padding:5px 8px;}
}


/* Hidden admin diagnostics: Ctrl+Shift+D */
.admin-diagnostics.hidden{display:none!important;}
.admin-diagnostics-toast{
  position:fixed;
  left:50%;
  bottom:22px;
  z-index:2000;
  transform:translateX(-50%);
  padding:8px 12px;
  border:1px solid var(--line2);
  border-radius:999px;
  background:var(--panel);
  color:var(--text);
  box-shadow:0 10px 30px rgba(0,0,0,.22);
  font-size:12px;
  font-weight:700;
  pointer-events:none;
}
.admin-diagnostics-toast.hidden{display:none!important;}


.account-user-name-row{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
}
.account-admin-badge{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  min-height:18px;
  padding:2px 6px;
  border:1px solid rgba(255,122,26,.45);
  border-radius:999px;
  background:rgba(255,122,26,.12);
  color:#ff8a35;
  font-size:8px;
  font-weight:900;
  letter-spacing:.08em;
}
.account-admin-badge.hidden,
#account-signed-out.hidden,
#account-signed-in.hidden,
#account-login-heading-copy.hidden,
#account-signed-in-heading-copy.hidden{display:none!important;}




/* Watch list: Profile and Remove share the same rounded button shape */
.watch-player-actions{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.watch-player-actions .secondary-btn,
.watch-player-actions .watch-remove-btn{
  border-radius:999px!important;
  min-height:32px;
  padding:6px 12px;
}


/* Watch list action buttons: clearer actions + pointer cursor */
.watch-player-actions button{
  cursor:pointer!important;
  transition:background .16s ease,border-color .16s ease,color .16s ease,transform .16s ease;
}
.watch-player-actions button:hover{
  transform:translateY(-1px);
}

/* Profile */
.watch-player-actions button[data-watch-profile]{
  border-color:rgba(72,138,255,.45)!important;
  background:rgba(72,138,255,.10)!important;
  color:#4d8fff!important;
}
.watch-player-actions button[data-watch-profile]:hover,
.watch-player-actions button[data-watch-profile]:focus-visible{
  border-color:#4d8fff!important;
  background:rgba(72,138,255,.18)!important;
}


/* Remove */
.watch-player-actions .watch-remove-btn{
  border-color:rgba(220,70,70,.42)!important;
  background:rgba(220,70,70,.09)!important;
  color:#d94b4b!important;
}
.watch-player-actions .watch-remove-btn:hover,
.watch-player-actions .watch-remove-btn:focus-visible{
  border-color:#d94b4b!important;
  background:rgba(220,70,70,.17)!important;
}


/* Official FPL market signals */
.player-popup-stat strong,
.watch-player-metrics strong,
.pool-top-extra small,
.compare-metric strong{
  font-variant-numeric:tabular-nums;
}
.pitch-wrap{
  position:relative;
}

.pitch-formation-badge{
  top:auto!important;
  bottom:27px!important;
  left:27px!important;
}

.pitch-rating-badge{
  top:auto!important;
  bottom:27px!important;
  right:27px!important;
}

@media(max-width:580px){
  .pitch-formation-badge{
    top:auto!important;
    bottom:20px!important;
    left:20px!important;
  }

  .pitch-rating-badge{
    top:auto!important;
    bottom:20px!important;
    right:20px!important;
  }
}


/* Player Profile stat helper text: allow full multi-line copy */
.player-popup-stat{
  min-width:0;
}

.player-popup-stat span,
.player-popup-stat small,
.player-popup-stat em{
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
  overflow-wrap:anywhere;
  word-break:normal;
  line-height:1.35;
}

.player-popup-stat span{
  display:block;
  max-width:100%;
}

/* Full-copy tooltip for compact Player Profile information boxes. */
.has-full-text-tooltip{cursor:help;}
.has-full-text-tooltip:focus-visible{outline:2px solid var(--accent);outline-offset:2px;}
.player-profile-info-tooltip{
  position:fixed;
  z-index:10050;
  width:max-content;
  max-width:min(340px,calc(100vw - 24px));
  padding:10px 12px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:10px;
  background:var(--ink);
  color:var(--on-ink);
  box-shadow:0 10px 28px rgba(18,18,18,.24);
  font-size:11px;
  font-weight:600;
  line-height:1.45;
  white-space:pre-line;
  overflow-wrap:anywhere;
  pointer-events:none;
}
.player-profile-info-tooltip[hidden]{display:none!important;}


/* Four saved squad slots */
.builder-squad-slots-panel{
  margin:14px 0;
  padding:16px;
}
.builder-squad-slots{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
}
.builder-squad-slot{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:11px;
  padding:12px;
  border:1px solid var(--border);
  border-radius:14px;
  background:var(--panel-soft,rgba(127,127,127,.05));
}
.builder-squad-slot.is-active{
  box-shadow:0 0 0 2px var(--accent);
}
.builder-squad-slot-copy{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:2px;
}
.builder-squad-slot-copy span{
  font-size:.75rem;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.builder-squad-slot-copy strong{
  font-size:.86rem;
  overflow-wrap:anywhere;
}
.builder-squad-slot-actions{
  grid-template-columns:1fr 1fr;
  margin-top:auto;
}
.builder-squad-slot-actions button{
  min-width:0;
  padding-inline:8px;
}
@media(max-width:900px){
  .builder-squad-slots{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media(max-width:540px){
  .builder-squad-slots{
    grid-template-columns:1fr;
  }
}


/* Main Team / Experiment squad system */
.builder-squad-slot.is-main-team{
  border-width:2px;
}
.builder-squad-slot-copy small{
  display:block;
  margin-top:3px;
  line-height:1.3;
  opacity:.72;
}
.suggested-squad-dialog{
  width:min(960px,94vw);
}
.suggested-squad-shell{
  width:min(960px,94vw);
  max-height:92vh;
}
.suggested-squad-content{
  padding-bottom:18px;
}
.suggested-squad-metrics{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin:4px 0 14px;
}
.suggested-squad-metrics span{
  display:flex;
  flex-direction:column;
  gap:3px;
  padding:10px 12px;
  border:1px solid var(--border);
  border-radius:12px;
}
.suggested-squad-metrics small{
  opacity:.7;
}
.suggested-squad-pitch-wrap{
  margin:0 0 12px;
}
.suggested-squad-bench-panel{
  margin-top:12px;
}
.suggested-squad-bench{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
  margin-top:8px;
}
.suggested-bench-player{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
  padding:9px;
  border:1px solid var(--border);
  border-radius:12px;
}
.suggested-bench-player > div{
  min-width:0;
}
.suggested-bench-player strong,
.suggested-bench-player small{
  display:block;
  overflow-wrap:anywhere;
}
.suggested-squad-actions{
  display:flex;
  justify-content:flex-end;
  gap:9px;
  flex-wrap:wrap;
  margin-top:16px;
}
.suggested-squad-actions button{
  min-width:130px;
}
.suggested-squad-action-note{
  margin:9px 0 0;
  text-align:right;
}
@media(max-width:720px){
  .suggested-squad-metrics{
    grid-template-columns:1fr;
  }
  .suggested-squad-bench{
    grid-template-columns:1fr 1fr;
  }
  .suggested-squad-actions{
    display:grid;
    grid-template-columns:1fr;
  }
  .suggested-squad-actions button{
    width:100%;
  }
  .suggested-squad-action-note{
    text-align:left;
  }
}


/* Deterministic Suggested Squad sliders */
.suggested-preferences-panel{
  margin:0 0 14px;
  padding:14px;
}
.suggested-preferences-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin-bottom:13px;
}
.suggested-preferences-head h3{
  margin:3px 0 2px;
}
.suggested-preferences-head p{
  margin:0;
}
.suggested-preferences-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px 18px;
}
.suggested-slider{
  min-width:0;
  display:block;
}
.suggested-slider:last-child{
  grid-column:1 / -1;
}
.suggested-slider-title{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:10px;
  margin-bottom:5px;
}
.suggested-slider-title strong{
  font-size:.84rem;
}
.suggested-slider-title output{
  font-size:.78rem;
  font-weight:800;
  opacity:.78;
  text-align:right;
}
.suggested-slider-row{
  display:grid;
  grid-template-columns:minmax(72px,auto) 1fr minmax(72px,auto);
  align-items:center;
  gap:9px;
}
.suggested-slider-row > span{
  font-size:.72rem;
  font-weight:700;
  opacity:.72;
}
.suggested-slider-row > span:last-child{
  text-align:right;
}
.suggested-slider input[type="range"]{
  width:100%;
  cursor:pointer;
  accent-color:var(--accent);
}
@media(max-width:720px){
  .suggested-preferences-head{
    display:block;
  }
  #suggested-preferences-reset{
    margin-top:9px;
  }
  .suggested-preferences-grid{
    grid-template-columns:1fr;
  }
  .suggested-slider:last-child{
    grid-column:auto;
  }
  .suggested-slider-row{
    grid-template-columns:72px 1fr 88px;
    gap:7px;
  }
}


/* Custom unsaved Suggested Squad warning */
.suggested-unsaved-dialog{
  border:0;
  padding:0;
  background:transparent;
  width:min(460px,calc(100vw - 28px));
  max-width:460px;
}
.suggested-unsaved-dialog::backdrop{
  background:rgba(8,12,18,.62);
  backdrop-filter:blur(3px);
}
.suggested-unsaved-card{
  overflow:hidden;
  padding:26px;
  border:1px solid var(--border);
  border-radius:18px;
  background:var(--panel);
  color:var(--text);
  box-shadow:0 24px 70px rgba(0,0,0,.34);
}
.suggested-unsaved-x{
  position:absolute;
  top:12px;
  right:12px;
}
.suggested-unsaved-icon{
  width:48px;
  height:48px;
  display:grid;
  place-items:center;
  margin-bottom:15px;
  border-radius:50%;
  font-size:1.35rem;
  font-weight:900;
  border:2px solid currentColor;
  opacity:.88;
}
.suggested-unsaved-copy .eyebrow{
  display:block;
  margin-bottom:5px;
}
.suggested-unsaved-copy h3{
  margin:0 38px 8px 0;
  font-size:1.2rem;
  line-height:1.22;
}
.suggested-unsaved-copy p{
  margin:0;
  opacity:.76;
  line-height:1.5;
}
.suggested-unsaved-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:22px;
}
.suggested-unsaved-actions button{
  min-height:44px;
}
.suggested-unsaved-actions .danger-btn{
  border:1px solid #d84a4a;
  border-radius:10px;
  background:#d84a4a;
  color:#fff;
  font-weight:800;
  cursor:pointer;
}
.suggested-unsaved-actions .danger-btn:hover{
  filter:brightness(.94);
}
@media(max-width:520px){
  .suggested-unsaved-card{
    padding:22px 18px 18px;
  }
  .suggested-unsaved-actions{
    grid-template-columns:1fr;
  }
}


/* Smarter action buttons, aligned with Watch-list pills */
.fpl-pill-btn{
  appearance:none;
  border-radius:999px!important;
  min-height:34px!important;
  padding:7px 14px!important;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  font-size:.76rem!important;
  font-weight:900!important;
  letter-spacing:.015em;
  line-height:1;
  cursor:pointer!important;
  box-shadow:none!important;
  transition:
    background .16s ease,
    border-color .16s ease,
    color .16s ease,
    transform .16s ease,
    box-shadow .16s ease!important;
}
.fpl-pill-btn:hover:not(:disabled),
.fpl-pill-btn:focus-visible:not(:disabled){
  transform:translateY(-1px);
}
.fpl-pill-btn:active:not(:disabled){
  transform:translateY(0);
}
.fpl-pill-btn:disabled{
  cursor:not-allowed!important;
  opacity:.42!important;
  transform:none!important;
}

/* Neutral / Cancel / Reset */
.fpl-pill-neutral{
  border-color:rgba(125,135,150,.38)!important;
  background:rgba(125,135,150,.08)!important;
  color:var(--text)!important;
}
.fpl-pill-neutral:hover:not(:disabled),
.fpl-pill-neutral:focus-visible:not(:disabled){
  border-color:rgba(125,135,150,.72)!important;
  background:rgba(125,135,150,.15)!important;
}

/* Blue / profile-like action */
.fpl-pill-blue,
.fpl-pill-load{
  border-color:rgba(72,138,255,.45)!important;
  background:rgba(72,138,255,.10)!important;
  color:#4d8fff!important;
}
.fpl-pill-blue:hover:not(:disabled),
.fpl-pill-blue:focus-visible:not(:disabled),
.fpl-pill-load:hover:not(:disabled),
.fpl-pill-load:focus-visible:not(:disabled){
  border-color:#4d8fff!important;
  background:rgba(72,138,255,.18)!important;
}

/* Orange / primary FPLScope action */
.fpl-pill-orange,
.fpl-pill-save{
  border-color:rgba(255,122,26,.48)!important;
  background:rgba(255,122,26,.11)!important;
  color:#ff7a1a!important;
}
.fpl-pill-orange:hover:not(:disabled),
.fpl-pill-orange:focus-visible:not(:disabled),
.fpl-pill-save:hover:not(:disabled),
.fpl-pill-save:focus-visible:not(:disabled){
  border-color:#ff7a1a!important;
  background:rgba(255,122,26,.19)!important;
}

/* Green / positive confirm action */
.fpl-pill-green{
  border-color:var(--ok-solid-line)!important;
  background:var(--ok-solid)!important;
  color:var(--on-ok)!important;
}
.fpl-pill-green:hover:not(:disabled),
.fpl-pill-green:focus-visible:not(:disabled){
  border-color:var(--ok-solid-line)!important;
  background:var(--ok)!important;
  color:var(--on-ok)!important;
}

/* Red / destructive action */
.fpl-pill-red{
  border-color:rgba(220,70,70,.42)!important;
  background:rgba(220,70,70,.09)!important;
  color:#d94b4b!important;
}
.fpl-pill-red:hover:not(:disabled),
.fpl-pill-red:focus-visible:not(:disabled){
  border-color:#d94b4b!important;
  background:rgba(220,70,70,.17)!important;
}

/* Saved Squads: make Save / Load compact pills instead of blocky buttons */
.builder-squad-slot-actions .fpl-pill-btn{
  padding-inline:12px!important;
}
.builder-squad-slot.is-active .builder-slot-load{
  box-shadow:0 0 0 1px rgba(72,138,255,.16)!important;
}

/* Suggested Squad actions: compact, polished and consistent */
.suggested-squad-actions{
  align-items:center;
}
.suggested-squad-actions .fpl-pill-btn{
  min-width:0!important;
  padding-inline:16px!important;
}
#suggested-preferences-reset.fpl-pill-btn{
  min-height:32px!important;
  padding:6px 12px!important;
}
.suggested-unsaved-actions .fpl-pill-btn{
  width:100%;
}

@media(max-width:720px){
  .suggested-squad-actions .fpl-pill-btn{
    width:100%;
    min-height:38px!important;
  }
}


/* Collapsible Saved squads */
.builder-squad-slots-details{
  padding:0;
  overflow:hidden;
}
.builder-squad-slots-summary{
  list-style:none;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  padding:16px;
  cursor:pointer;
  user-select:none;
}
.builder-squad-slots-summary::-webkit-details-marker{
  display:none;
}
.builder-squad-slots-summary::marker{
  display:none;
  content:"";
}
.builder-squad-slots-summary > div{
  min-width:0;
}
.builder-squad-slots-summary .panel-label{
  margin-bottom:2px;
}
.builder-squad-slots-summary h3{
  margin:3px 0 2px;
}
.builder-squad-slots-description{
  margin:0;
  white-space:nowrap;
  overflow:visible;
}
.builder-squad-slots-chevron{
  flex:0 0 auto;
  display:inline-grid;
  place-items:center;
  width:30px;
  height:30px;
  margin-top:2px;
  border:1px solid var(--border);
  border-radius:999px;
  font-size:1rem;
  font-weight:900;
  line-height:1;
  transition:transform .18s ease,background .16s ease,border-color .16s ease;
}
.builder-squad-slots-details[open] .builder-squad-slots-chevron{
  transform:rotate(180deg);
}
.builder-squad-slots-summary:hover .builder-squad-slots-chevron{
  background:rgba(127,127,127,.08);
}
.builder-squad-slots-content{
  padding:0 16px 16px;
}
.builder-squad-slot-actions{
  display:flex!important;
  flex-wrap:nowrap!important;
  align-items:center;
  gap:8px!important;
}
.builder-squad-slot-actions .fpl-pill-btn{
  flex:1 1 0!important;
  min-width:0!important;
  white-space:nowrap;
}
@media(max-width:760px){
  .builder-squad-slots-description{
    white-space:normal;
  }
}


/* Sell-player confirmation belongs above Player Profile */
dialog.confirm-dialog.confirm-modal{
  width:100vw;
  max-width:none;
  height:100vh;
  max-height:none;
  margin:0;
  padding:24px;
  border:0;
  background:transparent;
  color:var(--text);
  overflow:hidden;
}
dialog.confirm-dialog.confirm-modal::backdrop{
  background:transparent;
}
dialog.confirm-dialog.confirm-modal[open]{
  display:grid;
}
dialog.confirm-dialog.confirm-modal.hidden{
  display:none!important;
}
#sell-player-modal .confirm-modal-card{
  z-index:2;
}
#sell-player-modal .confirm-modal-actions{
  align-items:center;
}


/* One-click Builder Assistant completion */
.builder-assistant-completion-actions{
  display:flex;
  align-items:center;
  gap:6px;
  margin-left:auto;
}
.builder-assistant-completion-total .builder-assistant-use-completion{
  min-width:74px!important;
  flex:0 0 auto;
}
@media(max-width:620px){
  .builder-assistant-completion-actions{
    width:100%;
    margin-left:0;
    margin-top:6px;
  }
  .builder-assistant-completion-actions .builder-assistant-skip,
  .builder-assistant-completion-total .builder-assistant-use-completion{
    flex:1 1 0;
    width:auto;
  }
}


/* Suggested Squad footer: Cancel left, note inline, actions right */
.suggested-squad-footer-row{
  display:grid;
  align-items:center;
  gap:12px;
  margin-top:16px;
}
.suggested-squad-footer-row .suggested-squad-action-note{
  margin:0;
  text-align:left;
  min-width:0;
}
.suggested-squad-footer-row .suggested-squad-actions{
  margin-top:0;
  justify-content:flex-end;
  flex-wrap:nowrap;
}
@media(max-width:760px){
  .suggested-squad-footer-row{
    align-items:stretch;
  }
  .suggested-squad-footer-row .suggested-squad-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
    width:100%;
  }
}
@media(max-width:520px){
  .suggested-squad-footer-row .suggested-squad-actions{
    grid-template-columns:1fr;
  }
}


/* Suggested Squad footer: all actions on the right */
.suggested-squad-footer-row{
  grid-template-columns:minmax(0,1fr) auto!important;
}
.suggested-squad-footer-row .suggested-squad-actions{
  justify-self:end;
}
@media(max-width:760px){
  .suggested-squad-footer-row{
    grid-template-columns:1fr!important;
  }
  .suggested-squad-footer-row .suggested-squad-actions{
    justify-self:stretch;
  }
}


/* One unified design language for every blue/red action button */

/* Shared geometry and interaction */
:is(
  .fpl-pill-blue,
  .fpl-pill-load,
  .watch-player-actions button[data-watch-profile],
  .fpl-pill-red,
  .watch-player-actions .watch-remove-btn,
  .sell-player-btn,
  .sell-all-builder-btn,
  .sell-all-confirm-btn
){
  appearance:none!important;
  border-width:1px!important;
  border-style:solid!important;
  border-radius:999px!important;
  min-height:34px!important;
  padding:7px 14px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  font:inherit!important;
  font-size:.76rem!important;
  font-weight:900!important;
  line-height:1!important;
  letter-spacing:.015em!important;
  white-space:nowrap!important;
  cursor:pointer!important;
  box-shadow:none!important;
  transition:
    background .16s ease,
    border-color .16s ease,
    color .16s ease,
    transform .16s ease,
    box-shadow .16s ease!important;
}

:is(
  .fpl-pill-blue,
  .fpl-pill-load,
  .watch-player-actions button[data-watch-profile],
  .fpl-pill-red,
  .watch-player-actions .watch-remove-btn,
  .sell-player-btn,
  .sell-all-builder-btn,
  .sell-all-confirm-btn
):hover:not(:disabled),
:is(
  .fpl-pill-blue,
  .fpl-pill-load,
  .watch-player-actions button[data-watch-profile],
  .fpl-pill-red,
  .watch-player-actions .watch-remove-btn,
  .sell-player-btn,
  .sell-all-builder-btn,
  .sell-all-confirm-btn
):focus-visible:not(:disabled){
  transform:translateY(-1px)!important;
}

:is(
  .fpl-pill-blue,
  .fpl-pill-load,
  .watch-player-actions button[data-watch-profile],
  .fpl-pill-red,
  .watch-player-actions .watch-remove-btn,
  .sell-player-btn,
  .sell-all-builder-btn,
  .sell-all-confirm-btn
):active:not(:disabled){
  transform:translateY(0)!important;
}

:is(
  .fpl-pill-blue,
  .fpl-pill-load,
  .watch-player-actions button[data-watch-profile],
  .fpl-pill-red,
  .watch-player-actions .watch-remove-btn,
  .sell-player-btn,
  .sell-all-builder-btn,
  .sell-all-confirm-btn
):disabled{
  opacity:.42!important;
  cursor:not-allowed!important;
  transform:none!important;
}

/* BLUE — same thin border, tint and text everywhere */
:is(
  .fpl-pill-blue,
  .fpl-pill-load,
  .watch-player-actions button[data-watch-profile]
){
  border-color:rgba(72,138,255,.45)!important;
  background:rgba(72,138,255,.10)!important;
  color:#4d8fff!important;
}

:is(
  .fpl-pill-blue,
  .fpl-pill-load,
  .watch-player-actions button[data-watch-profile]
):hover:not(:disabled),
:is(
  .fpl-pill-blue,
  .fpl-pill-load,
  .watch-player-actions button[data-watch-profile]
):focus-visible:not(:disabled){
  border-color:#4d8fff!important;
  background:rgba(72,138,255,.18)!important;
  color:#4d8fff!important;
}

/* RED — same thin border, tint and text everywhere */
:is(
  .fpl-pill-red,
  .watch-player-actions .watch-remove-btn,
  .sell-player-btn,
  .sell-all-builder-btn,
  .sell-all-confirm-btn
){
  border-color:rgba(220,70,70,.42)!important;
  background:rgba(220,70,70,.09)!important;
  color:#d94b4b!important;
}

:is(
  .fpl-pill-red,
  .watch-player-actions .watch-remove-btn,
  .sell-player-btn,
  .sell-all-builder-btn,
  .sell-all-confirm-btn
):hover:not(:disabled),
:is(
  .fpl-pill-red,
  .watch-player-actions .watch-remove-btn,
  .sell-player-btn,
  .sell-all-builder-btn,
  .sell-all-confirm-btn
):focus-visible:not(:disabled){
  border-color:#d94b4b!important;
  background:rgba(220,70,70,.17)!important;
  color:#d94b4b!important;
}

/* Keep context-specific widths only; visual styling remains identical */
.watch-player-actions :is(
  button[data-watch-profile],
  .watch-remove-btn
){
  min-height:32px!important;
  padding:6px 12px!important;
  font-size:9px!important;
}
.builder-plan-actions .sell-all-builder-btn{
  min-height:38px!important;
  height:38px!important;
  padding-inline:14px!important;
  font-size:11px!important;
}
.confirm-modal-actions .sell-all-confirm-btn{
  min-height:40px!important;
  padding-inline:15px!important;
  font-size:12px!important;
}


/* Player Profile captain/vice selection state */
.player-popup-captain-actions .popup-role-btn{
  position:relative;
  border:1px solid var(--line2)!important;
  background:var(--panel2)!important;
  color:var(--text)!important;
  box-shadow:none!important;
}
.player-popup-captain-actions .popup-role-btn:hover:not(.is-selected-role),
.player-popup-captain-actions .popup-role-btn:focus-visible:not(.is-selected-role){
  border-color:var(--accent)!important;
  background:var(--accent-tint)!important;
  color:var(--accent-dark)!important;
}

/* Captain selected */
#set-captain-btn.is-selected-captain{
  border-color:rgba(255,122,26,.62)!important;
  background:rgba(255,122,26,.16)!important;
  color:#e86500!important;
}

/* Vice Captain selected — same selected colour as Captain */
#set-vice-btn.is-selected-vice{
  border-color:rgba(255,122,26,.62)!important;
  background:rgba(255,122,26,.16)!important;
  color:#e86500!important;
}
#set-vice-btn.is-selected-vice:hover,
#set-vice-btn.is-selected-vice:focus-visible{
  border-color:#ff7a1a!important;
  background:rgba(255,122,26,.22)!important;
  color:#e86500!important;
}
#set-captain-btn.is-selected-captain:hover,
#set-captain-btn.is-selected-captain:focus-visible{
  border-color:#ff7a1a!important;
  background:rgba(255,122,26,.22)!important;
}


/* Give Suggested Squad goalkeeper labels / Coach Score more vertical room */
#suggested-squad-pitch{
  min-height:620px!important;
}
@media(max-width:720px){
  #suggested-squad-pitch{
    min-height:550px!important;
  }
}
.suggested-squad-footer-row .suggested-squad-action-note{
  font-size:.68rem!important;
  line-height:1.2!important;
  white-space:normal;
  overflow-wrap:anywhere;
}

/* Suggested Squad USE is always the orange FPLScope action — never red */
#suggested-squad-use{
  border:1px solid rgba(255,122,26,.48)!important;
  border-radius:999px!important;
  background:rgba(255,122,26,.11)!important;
  color:#ff7a1a!important;
  box-shadow:none!important;
}
#suggested-squad-use:hover:not(:disabled),
#suggested-squad-use:focus-visible:not(:disabled){
  border-color:#ff7a1a!important;
  background:rgba(255,122,26,.19)!important;
  color:#ff7a1a!important;
}


/* One-click Transfer Plan actions */
.transfer-plan-top-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex:0 0 auto;
}
.transfer-plan-use-btn{
  min-height:30px!important;
  padding:6px 13px!important;
  font-size:10px!important;
}
.transfer-plan-undo-btn{
  min-height:30px!important;
  padding:6px 13px!important;
  font-size:10px!important;
  white-space:nowrap;
}
.transfer-plan-undo-btn[hidden]{display:none!important;}
@media(max-width:560px){
  .transfer-plan-top{
    flex-wrap:wrap;
  }
  .transfer-plan-top-actions{
    width:100%;
    justify-content:flex-start;
  }
}
.pitch-player-meta{align-items:center;}
.pitch-player .pitch-player-meta .player-price{
  flex:0 0 auto!important;
  min-width:max-content!important;
  width:max-content!important;
  max-width:none!important;
  overflow:visible!important;
  text-overflow:clip!important;
  white-space:nowrap!important;
}
.pitch-player .pitch-player-meta .player-fixture{
  flex:1 1 auto;
  min-width:0;
}


/* Explicit confirmation before Suggested Squad USE saves */
.suggested-save-confirm-icon{
  width:48px;
  height:48px;
  display:grid;
  place-items:center;
  margin-bottom:15px;
  border-radius:50%;
  border:2px solid #ff7a1a;
  background:rgba(255,122,26,.10);
  color:#ff7a1a;
  font-size:1.2rem;
  font-weight:900;
}
.suggested-save-confirm-dialog .suggested-unsaved-actions{
  align-items:center;
}


/* Help opens as a Player Profile-style modal */
#squad-help-panel.help-popup{width:min(760px,calc(100% - 28px));max-width:760px;max-height:88vh;padding:0;border:1px solid var(--line);border-radius:22px;background:var(--panel);color:var(--text);box-shadow:var(--shadow-lg);overflow:hidden;}
#squad-help-panel.help-popup::backdrop{background:rgba(20,20,20,.42);backdrop-filter:blur(4px);}
#squad-help-panel .help-popup-shell{padding:0!important;height:min(82vh,780px)!important;max-height:88vh!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;}
#squad-help-panel .help-popup-head{position:relative!important;flex:0 0 auto!important;z-index:15!important;padding:20px 54px 16px 24px!important;border-bottom:1px solid var(--line)!important;background:var(--panel)!important;box-shadow:0 5px 14px rgba(17,24,39,.05)!important;}
#squad-help-panel .help-popup-head .player-popup-head{padding-right:0!important;}
#squad-help-panel .help-popup-head h2{margin:3px 0!important;font-size:30px!important;letter-spacing:-.03em!important;}
#squad-help-panel .help-popup-head p{margin:0!important;}
#squad-help-panel .help-popup-scroll{flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;padding:22px 24px 26px!important;overscroll-behavior:contain!important;}
#squad-help-panel .rules-help-grid{margin:0;}
#squad-help-panel .rules-help-grid ul{margin:10px 0 0;padding-left:20px;color:var(--text2);font-size:13px;line-height:1.8;}
#squad-help-panel .coach-score-help{color:var(--muted);font-size:13px;line-height:1.65;}
#squad-help-panel .coach-score-help strong{color:var(--text);}
@media(max-width:760px){#squad-help-panel .help-popup-shell{height:92vh!important;max-height:92vh!important;}#squad-help-panel .help-popup-head{padding:16px 48px 13px 18px!important;}#squad-help-panel .help-popup-head h2{font-size:25px!important;}#squad-help-panel .help-popup-scroll{padding:18px!important;}}


/* ---------- Password-reset route ---------- */
html.reset-password-route #account-signed-out{
  display:block!important;
}
html.reset-password-route #account-signed-in,
html.reset-password-route #account-dialog .account-tabs,
html.reset-password-route #account-form,
html.reset-password-route #forgot-password-panel{
  display:none!important;
}
html.reset-password-route #reset-password-panel{
  display:block!important;
}


/* ---------- Unified popup close buttons ---------- */
/* Every X close control uses the exact Player Profile close design. */
.account-dialog-card,
.builder-tool-dialog,
.player-popup-shell,
.player-compare-shell,
.suggested-unsaved-card{
  position:relative;
}

.account-dialog-head{
  padding-right:44px;
}

.builder-tool-dialog .builder-tool-head{
  padding-right:56px;
}

/* Builder headers can contain controls/status on the right. Keep them clear
   of the absolutely positioned X in the upper-right corner. */
.builder-tool-dialog .builder-tool-head-actions{
  padding-right:34px;
}

/* One shared final geometry for every X close button. */
.player-profile-close-style{
  position:absolute!important;
  top:12px!important;
  right:12px!important;
  width:28px!important;
  height:28px!important;
  min-width:28px!important;
  min-height:28px!important;
  padding:0!important;
  margin:0!important;
  border:1px solid var(--line2)!important;
  border-radius:999px!important;
  background:var(--panel2)!important;
  color:var(--text2)!important;
  font-size:0!important;
  line-height:0!important;
  display:block!important;
  cursor:pointer!important;
  
  z-index:30!important;
}

.player-profile-close-style:hover,
.player-profile-close-style:focus-visible{
  border-color:var(--accent)!important;
  color:var(--accent)!important;
  background:var(--accent-tint)!important;
  outline:none!important;
}

.player-profile-close-style::before,
.player-profile-close-style::after{
  content:""!important;
  position:absolute!important;
  left:50%!important;
  top:50%!important;
  width:11px!important;
  height:2px!important;
  margin:0!important;
  border:0!important;
  border-radius:2px!important;
  background:currentColor!important;
  transform-origin:50% 50%!important;
  pointer-events:none!important;
}

.player-profile-close-style::before{
  transform:translate(-50%,-50%) rotate(45deg)!important;
}

.player-profile-close-style::after{
  transform:translate(-50%,-50%) rotate(-45deg)!important;
}

@media (max-width:700px){
  .account-dialog-head{
    padding-right:42px;
  }

  .builder-tool-dialog .builder-tool-head{
    padding-right:48px;
  }

  .builder-tool-dialog .builder-tool-head-actions{
    padding-right:28px;
  }
}


/* ---------- Suggested Squad slider feedback ---------- */
.suggested-squad-refresh-status{
  margin:4px 0 0;
  min-height:1.2em;
  color:var(--muted);
  font-size:.76rem;
  line-height:1.35;
}

.suggested-squad-refresh-status.is-updating{
  color:var(--accent);
}

.suggested-squad-refresh-status.is-updated{
  color:var(--text2);
}

.suggested-squad-refresh-status.is-error{
  color:var(--danger,#c83b3b);
}


/* ---------- Chip Advisor top-right header alignment ---------- */
#builder-chip-panel .builder-tool-head{
  position:sticky;
}

#builder-chip-panel .builder-tool-head-actions{
  padding-right:0!important;
}

#builder-chip-half-status{
  position:absolute!important;
  top:12px!important;
  right:52px!important;
  height:28px!important;
  margin:0!important;
  display:flex!important;
  align-items:center!important;
  white-space:nowrap!important;
  line-height:1!important;
  z-index:29!important;
}

#builder-chip-close{
  top:12px!important;
  right:12px!important;
}

@media (max-width:700px){
  #builder-chip-half-status{
    top:12px!important;
    right:50px!important;
    max-width:calc(100% - 190px);
    overflow:hidden;
    text-overflow:ellipsis;
  }

  #builder-chip-close{
    top:12px!important;
    right:12px!important;
  }
}


/* ---------- Player Profile Gameweek points bar charts ---------- */
.player-gameweek-points-charts{
  display:grid;
  gap:14px;
}

.player-gw-season-chart{
  min-width:0;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:16px;
  background:var(--panel2);
}

.player-gw-season-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  padding:14px 16px 10px;
  border-bottom:1px solid var(--line);
}

.player-gw-season-head>div:first-child{
  display:grid;
  gap:3px;
}

.player-gw-season-head>div:first-child strong{
  font-family:var(--display);
  font-size:1rem;
  color:var(--ink);
}

.player-gw-season-head>div:first-child small{
  color:var(--muted);
  font-size:.72rem;
}

.player-gw-season-summary{
  justify-content:flex-end;
  flex-wrap:wrap;
}

.player-gw-season-summary span{
  display:grid;
  gap:2px;
  text-align:right;
}

.player-gw-season-summary small{
  color:var(--muted);
  font-size:.64rem;
  text-transform:uppercase;
  letter-spacing:.06em;
  font-weight:800;
}

.player-gw-season-summary strong{
  color:var(--text);
  font-size:.82rem;
  white-space:nowrap;
}

.player-gw-points-scroll{
  width:100%;
  overflow-x:auto;
  overflow-y:hidden;
  overscroll-behavior-x:contain;
  scrollbar-width:thin;
  padding:8px 8px 2px;
}

.player-gw-points-svg{
  display:block;
  width:100%;
  height:auto;
  max-height:245px;
  overflow:visible;
}

.player-gw-points-grid{
  stroke:var(--line);
  stroke-width:1;
  stroke-dasharray:3 4;
}

.player-gw-points-zero{
  stroke:var(--line2);
  stroke-width:1.4;
}

.player-gw-points-y-label,
.player-gw-points-x-label{
  fill:var(--muted);
  font-size:9px;
  font-family:inherit;
  font-weight:700;
}

.player-gw-points-value{
  fill:var(--text2);
  font-size:9px;
  font-family:inherit;
  font-weight:800;
}

.player-gw-points-bar{
  fill:var(--accent);
  transition:opacity .16s ease;
}

.player-gw-points-bar.is-negative{
  fill:var(--danger,#c83b3b);
}

.player-gw-points-bar.is-zero{
  fill:var(--line2);
}

.player-gw-points-bar-group:hover .player-gw-points-bar{
  opacity:.72;
}

.player-gw-points-empty{
  margin:0;
  padding:18px 16px;
  color:var(--muted);
  font-size:.82rem;
}

.player-gw-history-note{
  margin:0;
  color:var(--muted);
  font-size:.72rem;
  line-height:1.45;
}

@media(max-width:700px){
  .player-gw-season-head{
    flex-direction:column;
    gap:10px;
  }

  .player-gw-season-summary{
    justify-content:flex-start;
  }

  .player-gw-season-summary span{
    text-align:left;
  }

  .player-gw-points-svg{
    width:auto;
    max-height:220px;
  }
}


/* ---------- Historical Player Profile fallback status ---------- */
.player-gw-history-loading,
.player-gw-history-note.is-warning{
  margin:0;
  padding:9px 12px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--panel2);
  font-size:.72rem;
  line-height:1.4;
}
.player-gw-history-loading{color:var(--accent);}
.player-gw-history-note.is-warning{color:var(--text2);}


/* ---------- Player Profile GW summary cards ---------- */
.player-gw-season-summary{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(96px,1fr));
  gap:8px!important;
  align-items:stretch!important;
  min-width:min(100%,360px);
}

.player-gw-season-summary .player-gw-stat{
  display:flex!important;
  flex-direction:column;
  align-items:flex-start!important;
  justify-content:center;
  gap:3px;
  min-height:54px;
  padding:8px 10px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--panel2);
  line-height:1.1;
}

.player-gw-season-summary .player-gw-stat small{
  display:block;
  margin:0;
  font-size:.62rem;
  font-weight:800;
  letter-spacing:.07em;
  color:var(--muted);
  white-space:nowrap;
}

.player-gw-season-summary .player-gw-stat strong{
  display:block;
  margin:0;
  font-size:1rem;
  font-weight:800;
  color:var(--text);
  white-space:nowrap;
}

.player-gw-season-summary .player-gw-stat-best strong{
  display:flex;
  align-items:baseline;
  gap:5px;
}

.player-gw-season-summary .player-gw-stat-best em{
  font-style:normal;
  font-size:.72rem;
  font-weight:700;
  color:var(--muted);
}

@media (max-width:700px){
  .player-gw-season-summary{
    width:100%;
    min-width:0;
    grid-template-columns:repeat(3,minmax(0,1fr));
  }

  .player-gw-season-summary .player-gw-stat{
    min-height:50px;
    padding:7px 8px;
  }

  .player-gw-season-summary .player-gw-stat small{
    font-size:.56rem;
  }

  .player-gw-season-summary .player-gw-stat strong{
    font-size:.9rem;
  }

  .player-gw-season-summary .player-gw-stat-best strong{
    display:block;
  }

  .player-gw-season-summary .player-gw-stat-best em{
    display:block;
    margin-top:2px;
    font-size:.65rem;
  }
}


/* ---------- Historical season details ---------- */
.player-gw-season-head.has-rich-stats{
  display:grid;
  grid-template-columns:minmax(125px,.55fr) minmax(360px,1.45fr);
  gap:18px;
  align-items:center;
}

.player-gw-season-title{
  min-width:0;
}

.player-history-season-stats{
  display:grid;
  gap:7px;
  min-width:0;
}

.player-history-stat-line{
  display:flex;
  align-items:baseline;
  justify-content:flex-end;
  gap:9px;
  min-width:0;
  line-height:1.25;
}

.player-history-stat-item{
  display:inline-flex;
  align-items:baseline;
  gap:4px;
  white-space:nowrap;
  color:var(--muted);
  font-size:.72rem;
}

.player-history-stat-item strong{
  color:var(--text);
  font-size:.86rem;
  font-weight:800;
}

.player-history-stat-dot{
  color:var(--muted);
  opacity:.65;
  font-size:.8rem;
}

@media (max-width:700px){
  .player-gw-season-head.has-rich-stats{
    grid-template-columns:1fr;
    gap:10px;
  }

  .player-history-stat-line{
    justify-content:flex-start;
    gap:7px;
    overflow-x:auto;
    scrollbar-width:none;
    padding-bottom:1px;
  }

  .player-history-stat-line::-webkit-scrollbar{
    display:none;
  }

  .player-history-stat-item{
    font-size:.66rem;
  }

  .player-history-stat-item strong{
    font-size:.8rem;
  }
}


/* ---------- Historical Home vs Away + Price History ---------- */
.player-history-extra-charts{
  display:grid;
  grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);
  gap:12px;
  margin-top:14px;
}

.player-history-mini-chart{
  min-width:0;
  padding:12px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--panel2);
}

.player-history-mini-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  margin-bottom:12px;
}

.player-history-mini-head > div{
  min-width:0;
}

.player-history-mini-head small{
  display:block;
  margin-bottom:3px;
  color:var(--muted);
  font-size:.6rem;
  font-weight:800;
  letter-spacing:.08em;
}

.player-history-mini-head strong{
  display:block;
  color:var(--text);
  font-size:.84rem;
  font-weight:800;
}

.player-history-ha-list{
  display:grid;
  gap:12px;
}

.player-history-ha-row{
  display:grid;
  gap:6px;
}

.player-history-ha-label{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:8px;
}

.player-history-ha-label strong{
  color:var(--text);
  font-size:.78rem;
}

.player-history-ha-label span{
  color:var(--muted);
  font-size:.68rem;
  text-align:right;
  white-space:nowrap;
}

.player-history-ha-track{
  position:relative;
  height:10px;
  overflow:hidden;
  border-radius:999px;
  background:var(--line);
}

.player-history-ha-fill{
  display:block;
  height:100%;
  min-width:2px;
  border-radius:inherit;
  background:var(--accent);
}

.player-history-ha-fill.is-away{
  opacity:.55;
}

.player-history-price-change{
  flex:0 0 auto;
  padding:3px 7px;
  border:1px solid var(--line);
  border-radius:999px;
  color:var(--muted);
  font-size:.62rem;
  font-weight:800;
  line-height:1.2;
  white-space:nowrap;
}

.player-history-price-change.is-up{
  color:var(--accent);
}

.player-history-price-change.is-down{
  color:var(--text2);
}

.player-history-price-svg-wrap{
  width:100%;
  overflow:hidden;
}

.player-history-price-svg{
  display:block;
  width:100%;
  height:auto;
}

.player-price-grid{
  stroke:var(--line);
  stroke-width:1;
}

.player-price-line{
  fill:none;
  stroke:var(--accent);
  stroke-width:2.3;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.player-price-point{
  fill:var(--panel);
  stroke:var(--accent);
  stroke-width:1.6;
}

.player-price-axis-label{
  fill:var(--muted);
  font-size:9px;
  font-weight:700;
}

.player-history-price-range{
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin-top:2px;
  color:var(--muted);
  font-size:.64rem;
}

.player-history-price-range strong{
  color:var(--text);
  font-weight:800;
}

@media (max-width:700px){
  .player-history-extra-charts{
    grid-template-columns:1fr;
    gap:10px;
  }

  .player-history-mini-chart{
    padding:10px;
  }

  .player-history-ha-label{
    align-items:flex-start;
  }

  .player-history-ha-label span{
    white-space:normal;
  }
}

/* ---------- xPts UI ---------- */
.pitch-player .player-xpts{position:static;left:auto;transform:none;display:inline-flex;align-items:center;justify-content:center;width:auto;min-width:0;margin:3px auto 0;padding:3px 7px;border-radius:999px;background:var(--accent-tint);border:1px solid rgba(241,119,40,.48);color:var(--accent-dark);font-family:Inter,system-ui,sans-serif;font-size:8px;font-weight:800;line-height:1.1;letter-spacing:.01em;white-space:nowrap;}
.pitch-player .player-xpts b{margin-right:3px;color:inherit;font-weight:900;}
.bench-player-info .bench-xpts{margin-top:3px;padding:3px 7px;border:1px solid rgba(241,119,40,.35);border-radius:999px;background:var(--accent-tint);color:var(--accent-dark);font-weight:800;}
.bench-player-info .bench-xpts b{color:inherit;}
.xpts-team-summary{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:10px;margin:10px 0 14px;}
.xpts-team-card{display:flex;align-items:baseline;gap:9px;min-width:0;padding:12px 14px;border:1px solid var(--line);border-radius:13px;background:var(--panel2);}
.xpts-team-card small{flex:0 0 auto;color:var(--muted);font-size:10px;font-weight:900;letter-spacing:.07em;}
.xpts-team-card strong{color:var(--text);font-size:23px;line-height:1;font-variant-numeric:tabular-nums;}
.xpts-team-card span{margin-left:auto;color:var(--muted);font-size:10px;white-space:nowrap;}
.xpts-team-card.xpts-team-primary{border-color:rgba(241,119,40,.42);background:var(--accent-tint);}
.xpts-team-card.xpts-team-primary strong{color:var(--accent-dark);}
.player-popup-xpts-stat{border-color:rgba(241,119,40,.48)!important;background:var(--accent-tint)!important;}
.player-popup-xpts-stat strong{color:var(--accent-dark)!important;}
@media(max-width:700px){.xpts-team-summary{grid-template-columns:1fr}.xpts-team-card{padding:10px 12px}}
@media(max-width:580px){.pitch-player .player-xpts{padding:2px 5px;font-size:7px}}
@media(max-width:430px){.pitch-player .player-xpts{font-size:6px;padding:2px 4px}}


/* ---------- xP performance ---------- */
.player-xp-performance{min-height:86px}.xp-performance-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,.9fr);gap:12px}.xp-performance-card{border:1px solid var(--line);border-radius:14px;background:var(--panel2);padding:14px;min-width:0}.xp-performance-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.xp-performance-card-head small{display:block;color:var(--muted);font-size:9px;font-weight:900;letter-spacing:.08em}.xp-performance-card-head strong{display:block;margin-top:3px;color:var(--text);font-size:18px}.xp-performance-history{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:12px}.xp-performance-metric{padding:9px 10px;border-radius:11px;background:var(--panel);border:1px solid var(--line);min-width:0}.xp-performance-metric small{display:block;color:var(--muted);font-size:8px;font-weight:900;letter-spacing:.07em}.xp-performance-metric strong{display:block;margin-top:4px;font-size:20px;font-variant-numeric:tabular-nums}.xp-performance-metric span{display:block;margin-top:2px;color:var(--muted);font-size:8px}.xp-performance-metric strong.is-negative{color:#c94a4a}.xp-performance-metric strong.is-positive{color:#24865c}.xp-performance-status{display:inline-flex;margin-top:10px;padding:5px 9px;border-radius:999px;font-size:9px;font-weight:900;letter-spacing:.04em}.xp-performance-status.is-underperforming{background:rgba(231,161,46,.15);color:#9b650d;border:1px solid rgba(231,161,46,.38)}.xp-performance-status.is-outperforming{background:rgba(65,162,113,.14);color:#23734d;border:1px solid rgba(65,162,113,.35)}.xp-performance-status.is-inline{background:var(--panel);color:var(--muted);border:1px solid var(--line)}.xp-performance-building{margin-top:12px;padding:12px;border-radius:11px;background:var(--panel);border:1px dashed var(--line)}.xp-performance-building strong{font-size:13px}.xp-performance-building p,.xp-outlook-card p{margin:5px 0 0;color:var(--muted);font-size:10px;line-height:1.45}.xp-outlook-card{border-color:rgba(241,119,40,.35);background:var(--accent-tint)}.xp-outlook-card .xp-performance-card-head strong{font-size:28px;color:var(--accent-dark)}.xp-trend-badge{flex:0 0 auto;padding:5px 9px;border-radius:999px;font-size:9px;font-weight:900}.xp-trend-badge.is-rising{background:rgba(65,162,113,.16);color:#23734d}.xp-trend-badge.is-falling{background:rgba(201,74,74,.13);color:#a43b3b}.xp-trend-badge.is-stable{background:rgba(90,100,112,.12);color:var(--muted)}
@media(max-width:700px){.xp-performance-grid{grid-template-columns:1fr}}@media(max-width:480px){.xp-performance-history{grid-template-columns:1fr}.xp-performance-metric{display:grid;grid-template-columns:1fr auto;align-items:center}.xp-performance-metric strong{grid-row:1/3;grid-column:2}.xp-performance-metric span{grid-column:1}}


/* Player Pool filter bottom aligns with Builder Assistant */
@media(min-width:1051px){
  .player-pool-column{
    align-self:start!important;
  }
  .player-pool-column > .player-pool-head{
    margin-top:0!important;
    margin-bottom:12px!important;
  }
}
@media(max-width:1050px){
  .player-pool-column{
    margin-top:0!important;
  }
}


/* Exact Player Pool tools / Builder Assistant bottom alignment */
@media(min-width:1051px){
  .player-pool-column{
    transition:none!important;
    will-change:transform;
  }
}



/* One consistent horizontal gap between adjacent boxes */
.top-grid,
.advice-grid,
.content-grid,
.preseason-summary,
.preseason-grid,
.squad-workspace,
.chip-grid,
.intelligence-grid,
.xpts-team-summary,
.analysis-rating-summary,
.builder-assistant-summary,
.builder-bench,
.insight-modal-buttons{
  column-gap:var(--fplscope-card-column-gap)!important;
}

/* Keep each section's existing vertical rhythm; this rule changes horizontal space only. */

/* Exact and consistent vertical rhythm for the visible preseason builder */
#preseason{--fplscope-preseason-stack-gap:18px;}

/* Within the left builder: pitch -> xP summary -> Substitutes */
#preseason #builder-team-view{
  display:flex;
  flex-direction:column;
  gap:var(--fplscope-preseason-stack-gap);
  margin:var(--fplscope-preseason-stack-gap) 0 0!important;
}
#preseason #builder-team-view > .pitch-wrap,
#preseason #builder-team-view > .xpts-team-summary,
#preseason #builder-team-view > .bench-panel{
  margin:0!important;
}

/* The insight-card row is a sibling of the WHOLE workspace, not builder-team-view. */
#preseason .squad-workspace + .preseason-grid.insight-modal-buttons{
  margin-top:var(--fplscope-preseason-stack-gap)!important;
  margin-bottom:0!important;
}

/* Insight cards -> Performance heading -> Performance panel */
#preseason .preseason-grid.insight-modal-buttons + .section-head.small{
  margin:var(--fplscope-preseason-stack-gap) 0!important;
}
#preseason .preseason-grid.insight-modal-buttons + .section-head.small h2{
  margin:0!important;
}
#preseason #club-performance{
  margin-top:0!important;
  margin-bottom:0!important;
}

/* Performance panel -> disclaimer/footer copy */
#preseason > .disclaimer{
  margin-top:var(--fplscope-preseason-stack-gap)!important;
}

@media(max-width:1050px){
  #preseason{--fplscope-preseason-stack-gap:16px;}
}

/* Same vertical rhythm through the UPPER preseason builder too */
#preseason > .preseason-notice,
#preseason > .preseason-summary{
  margin-top:var(--fplscope-preseason-stack-gap)!important;
  margin-bottom:0!important;
}
#preseason > .squad-workspace{
  margin-top:var(--fplscope-preseason-stack-gap)!important;
}

/* Manual Team Builder stack: controls -> Saved squads -> overview -> assistant. */
#preseason .squad-workspace-main > .builder-head{
  margin:0 0 12px!important;
}
#preseason .squad-workspace-main > .builder-topline,
#preseason .squad-workspace-main > .builder-squad-slots-details,
#preseason .squad-workspace-main > .builder-overview-panel{
  margin:0 0 var(--fplscope-preseason-stack-gap)!important;
}
#preseason .squad-workspace-main > #builder-assistant{
  margin:0!important;
}

/* Player Pool stack uses the same gap between its actual boxes. */
@media(min-width:1051px){
  #preseason .player-pool-column > .player-tools{
    margin-bottom:var(--fplscope-preseason-stack-gap)!important;
  }
  #preseason .player-pool-column > .player-table-wrap + .player-compare-toolbar,
  #preseason .player-pool-column > .player-compare-toolbar + .player-watch-toolbar{
    margin-top:var(--fplscope-preseason-stack-gap)!important;
  }
}


/* ---------- xP Transfer Intelligence ---------- */
.transfer-xp-intel{display:grid;gap:7px;margin-top:10px;}
.transfer-xp-intel>span{min-width:0;padding:9px 10px;border:1px solid var(--line);border-radius:10px;background:var(--panel);}
.transfer-xp-intel small,.transfer-xp-intel strong,.transfer-xp-intel em{display:block;}
.transfer-xp-intel small{font-size:8px;font-weight:900;letter-spacing:.06em;color:var(--muted);}
.transfer-xp-intel strong{margin-top:3px;font-size:15px;font-variant-numeric:tabular-nums;color:var(--text);}
.transfer-xp-intel em{margin-top:2px;font-style:normal;font-size:8px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.transfer-xp-intel .transfer-xp-primary{background:var(--accent-tint);border-color:var(--accent-line);}
.transfer-xp-intel .transfer-xp-primary.is-positive strong{color:#24865c;}
.transfer-xp-intel .transfer-xp-primary.is-negative strong{color:#c94a4a;}
.watch-player-xp-intel{display:grid;gap:6px;}
.watch-player-xp-intel>span{min-width:0;padding:8px 9px;border:1px solid var(--accent-line);border-radius:9px;background:var(--accent-tint);}
.watch-player-xp-intel small,.watch-player-xp-intel strong,.watch-player-xp-intel em{display:block;}
.watch-player-xp-intel small{font-size:7px;font-weight:900;letter-spacing:.05em;color:var(--muted);}
.watch-player-xp-intel strong{margin-top:2px;font-size:12px;font-variant-numeric:tabular-nums;color:var(--text);}
.watch-player-xp-intel strong.is-negative{color:#c94a4a;}.watch-player-xp-intel strong.is-positive{color:#24865c;}
.watch-player-xp-intel em{margin-top:2px;font-style:normal;font-size:7px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.watch-xp-signal{display:flex;align-items:center;gap:8px;min-width:0;padding:7px 9px;border:1px solid var(--line);border-radius:9px;background:var(--panel);}
.watch-xp-signal strong{flex:0 0 auto;padding:4px 7px;border-radius:999px;font-size:8px;font-weight:900;letter-spacing:.04em;}
.watch-xp-signal small{min-width:0;color:var(--muted);font-size:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.watch-xp-signal.is-value-target strong{background:rgba(65,162,113,.16);color:#23734d;}
.watch-xp-signal.is-strong-hold strong{background:var(--accent-tint);color:var(--accent-dark);border:1px solid var(--accent-line);}
.watch-xp-signal.is-watch strong{background:rgba(231,161,46,.15);color:#9b650d;}
.watch-xp-signal.is-sell-risk strong{background:rgba(201,74,74,.13);color:#a43b3b;}
.watch-xp-signal.is-neutral strong{background:var(--panel2);color:var(--muted);border:1px solid var(--line);}
@media(max-width:480px){.watch-xp-signal{align-items:flex-start;flex-direction:column}.watch-xp-signal small{white-space:normal;line-height:1.35}}

/* xP Calibration & Trust Layer */
.xp-confidence-line{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:10px}.xp-confidence-line small{color:var(--muted);font-size:9px;line-height:1.35}.xp-confidence-badge{display:inline-flex;align-items:center;padding:5px 9px;border-radius:999px;font-size:9px;font-weight:900;letter-spacing:.04em;border:1px solid var(--line);background:var(--panel)}.xp-confidence-badge.is-high,.xp-confidence-text.is-high{color:#23734d}.xp-confidence-badge.is-medium,.xp-confidence-text.is-medium{color:#9b650d}.xp-confidence-badge.is-low,.xp-confidence-text.is-low{color:#a43b3b}.xp-confidence-badge.is-high{background:rgba(65,162,113,.14);border-color:rgba(65,162,113,.35)}.xp-confidence-badge.is-medium{background:rgba(231,161,46,.14);border-color:rgba(231,161,46,.35)}.xp-confidence-badge.is-low{background:rgba(201,74,74,.11);border-color:rgba(201,74,74,.3)}
.xp-calibration-admin-block{margin-top:14px;padding-top:14px;border-top:1px solid var(--line)}.xp-calibration-results.hidden{display:none!important}.xp-calibration-results{margin-top:10px}

/* xP Explainability */
.xp-explain-card{margin-top:12px;padding:14px;border:1px solid var(--accent-line);border-radius:14px;background:linear-gradient(180deg,var(--panel2),var(--panel));}
.xp-explain-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.xp-explain-head small{display:block;color:var(--muted);font-size:9px;font-weight:900;letter-spacing:.08em}.xp-explain-head strong{display:block;margin-top:3px;font-size:16px;color:var(--text)}.xp-explain-head>span{flex:0 0 auto;padding:5px 8px;border-radius:999px;background:var(--accent-tint);border:1px solid var(--accent-line);color:var(--accent-dark);font-size:8px;font-weight:900;text-transform:uppercase;letter-spacing:.05em}
.xp-explain-components>span{display:block;min-width:0;padding:9px 10px;border:1px solid var(--line);border-radius:10px;background:var(--panel2)}.xp-explain-components small{display:block;color:var(--muted);font-size:8px;font-weight:900;letter-spacing:.05em}.xp-explain-components strong{display:block;margin-top:3px}
.xp-explain-components{display:grid;gap:7px;margin-top:7px}
.xp-explain-risks{margin-top:10px}.xp-explain-risks>small{display:block;margin-bottom:6px;color:var(--muted);font-size:8px;font-weight:900;letter-spacing:.06em}.xp-explain-risks>span{display:inline-flex;gap:5px;margin:0 5px 5px 0;padding:5px 8px;border-radius:999px;background:rgba(201,74,74,.08);border:1px solid rgba(201,74,74,.2);font-size:9px;color:#9b4444}.xp-explain-card>p{margin:9px 0 0;color:var(--muted);font-size:9px;line-height:1.4}
.transfer-xp-driver,.watch-xp-driver{margin-top:7px;padding:8px 10px;border-radius:9px;border:1px dashed var(--accent-line);background:var(--accent-tint);font-size:9px;line-height:1.4}.transfer-xp-driver b,.watch-xp-driver b{color:var(--accent-dark);margin-right:5px}.watch-xp-driver{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.watch-xp-driver span{color:var(--text);font-weight:800}.watch-xp-driver small{color:var(--muted)}
@media(max-width:480px){.xp-explain-head{flex-direction:column}}
.xp-explain-components strong{color:var(--text);font-size:11px;line-height:1.35;font-variant-numeric:normal}.xp-explain-components{grid-template-columns:repeat(2,minmax(0,1fr))}.xp-explain-risks>span{font-weight:800}.transfer-xp-driver,.watch-xp-driver{color:var(--text)}
@media(max-width:480px){.xp-explain-components{grid-template-columns:1fr}}
.xp-calibration-center{width:min(1180px,calc(100vw - 28px));height:min(900px,calc(100vh - 28px));max-height:calc(100vh - 28px);padding:0;border:1px solid var(--line);border-radius:20px;background:var(--panel);color:var(--text);box-shadow:var(--shadow-lg);overflow:hidden}
.xp-calibration-center::backdrop{background:rgba(15,15,14,.62);backdrop-filter:blur(4px)}
.xp-center-shell{height:100%;display:flex;flex-direction:column;min-height:0}
.xp-center-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:18px 20px;border-bottom:1px solid var(--line);background:var(--panel)}
.xp-center-head h2{margin:3px 0 4px;font-size:24px}.xp-center-head p{max-width:720px;margin:0;color:var(--muted);font-size:11px;line-height:1.45}
.xp-center-head-actions{display:flex;align-items:center;gap:8px;flex:0 0 auto}.xp-center-head-actions .secondary-btn{white-space:nowrap}
#xp-calibration-center-status{margin:0;padding:8px 20px;border-bottom:1px solid var(--line);background:var(--panel2)}
.xp-center-body{flex:1;min-height:0;overflow:auto;padding:16px 20px 24px}.xp-center-loading{padding:28px;text-align:center;color:var(--muted)}
.xp-center-status-card{display:grid;grid-template-columns:minmax(180px,.8fr) minmax(280px,2fr);gap:12px;margin-bottom:12px;padding:14px;border:1px solid var(--line);border-radius:14px;background:var(--panel2)}
.xp-center-status-card strong,.xp-center-status-card small{display:block}.xp-center-status-card strong{font-size:20px}.xp-center-status-card small{margin-top:4px;color:var(--muted);font-size:10px;line-height:1.45}
.xp-status-pill{display:inline-flex!important;width:max-content;padding:5px 9px;border:1px solid var(--line);border-radius:999px;font-size:9px!important;font-weight:900;letter-spacing:.06em}.xp-status-pill.good{border-color:rgba(36,142,85,.35)}.xp-status-pill.watch{border-color:rgba(215,146,34,.45)}.xp-status-pill.review{border-color:rgba(197,62,62,.45)}
.xp-center-summary{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}.xp-center-metric{padding:11px 12px;border:1px solid var(--line);border-radius:12px;background:var(--panel)}.xp-center-metric small,.xp-center-metric strong,.xp-center-metric em{display:block}.xp-center-metric small{font-size:8px;font-weight:900;letter-spacing:.05em;color:var(--muted)}.xp-center-metric strong{margin-top:4px;font-size:20px;font-variant-numeric:tabular-nums}.xp-center-metric em{margin-top:2px;font-size:9px;font-style:normal;color:var(--muted)}
.xp-center-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px}.xp-center-panel{min-width:0;padding:13px;border:1px solid var(--line);border-radius:14px;background:var(--panel2)}.xp-center-panel.full{grid-column:1/-1}.xp-center-panel h3{margin:0 0 4px;font-size:13px}.xp-center-panel>p{margin:0 0 10px;color:var(--muted);font-size:9px;line-height:1.45}
.xp-center-table{width:100%;border-collapse:collapse;font-size:10px}.xp-center-table th,.xp-center-table td{padding:7px 6px;border-top:1px solid var(--line);text-align:right;font-variant-numeric:tabular-nums}.xp-center-table th:first-child,.xp-center-table td:first-child{text-align:left}.xp-center-table thead th{border-top:0;color:var(--muted);font-size:8px;text-transform:uppercase;letter-spacing:.04em}.xp-center-table tbody tr:last-child td{border-bottom:0}
.xp-center-gw-list{display:grid;gap:7px}.xp-center-gw-row{display:grid;grid-template-columns:70px repeat(6,minmax(0,1fr));gap:6px;align-items:center;padding:8px 9px;border:1px solid var(--line);border-radius:10px;background:var(--panel)}.xp-center-gw-row>span{font-size:9px;text-align:right}.xp-center-gw-row>strong{text-align:left}.xp-center-gw-row small{display:block;color:var(--muted);font-size:7px;text-transform:uppercase}.xp-center-gw-row b{display:block;margin-top:1px;font-size:10px;font-weight:800}
.xp-center-empty{padding:12px;border:1px dashed var(--line);border-radius:10px;color:var(--muted);font-size:10px;line-height:1.45}
.xp-center-policy{margin-top:12px;padding:11px 13px;border:1px solid var(--line);border-radius:12px;background:var(--panel);font-size:10px;line-height:1.5}.xp-center-policy strong{font-weight:900}
@media(max-width:980px){.xp-center-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.xp-center-gw-row{grid-template-columns:62px repeat(3,minmax(0,1fr))}.xp-center-gw-row>span:nth-child(n+5){display:none}}
@media(max-width:720px){.xp-calibration-center{width:calc(100vw - 12px);height:calc(100vh - 12px);max-height:calc(100vh - 12px);border-radius:14px}.xp-center-head{padding:14px;display:block}.xp-center-head-actions{margin-top:10px;flex-wrap:wrap}.xp-center-head-actions .builder-tool-close{position:absolute;top:12px;right:12px}.xp-center-body{padding:12px}.xp-center-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.xp-center-grid{grid-template-columns:1fr}.xp-center-panel.full{grid-column:auto}.xp-center-status-card{grid-template-columns:1fr}.xp-center-gw-row{grid-template-columns:55px 1fr 1fr}.xp-center-gw-row>span:nth-child(n+4){display:none}}

/* Qualitative Captaincy Intelligence; private scores stay server-side. */
.suggested-squad-captaincy{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0 16px}
.suggested-squad-captaincy article{border:1px solid var(--line);border-radius:16px;padding:14px;background:var(--panel)}
.captaincy-recommendation-main{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.captaincy-recommendation-main>div{display:grid;gap:2px;min-width:0}
.captaincy-recommendation-main small{font-size:.68rem;letter-spacing:.11em;font-weight:800;opacity:.62}
.captaincy-recommendation-main strong{font-size:1.05rem}
.captaincy-recommendation-main span{font-size:.8rem;opacity:.7}
.captaincy-label{font-size:.7rem;letter-spacing:.06em;white-space:nowrap;border:1px solid var(--line);border-radius:999px;padding:6px 8px}
.captaincy-factors{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.captaincy-factors span{font-size:.72rem;border-radius:999px;padding:5px 8px;background:var(--panel2);border:1px solid var(--line)}
.player-callout .captaincy-recommendation-main{width:100%}
.player-callout .captaincy-factors{margin-top:8px}
@media(max-width:720px){.suggested-squad-captaincy{grid-template-columns:1fr}.captaincy-recommendation-main{align-items:center}}

/* Calibration Advisor */
.xp-advisor-panel{margin-top:12px;background:var(--panel2)}
.xp-advisor-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:12px}
.xp-advisor-head h3{margin:7px 0 3px;font-size:18px}
.xp-advisor-head p{margin:0;max-width:760px;color:var(--muted);font-size:10px;line-height:1.5}
.xp-advisor-lock{flex:0 0 210px;padding:10px 11px;border:1px solid var(--line);border-radius:11px;background:var(--panel)}
.xp-advisor-lock strong,.xp-advisor-lock small{display:block}.xp-advisor-lock strong{font-size:10px;letter-spacing:.05em}.xp-advisor-lock small{margin-top:3px;color:var(--muted);font-size:9px;line-height:1.4}
.xp-advisor-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:13px}
.xp-advisor-kpis>div{padding:10px 11px;border:1px solid var(--line);border-radius:11px;background:var(--panel)}
.xp-advisor-kpis small,.xp-advisor-kpis strong,.xp-advisor-kpis em{display:block}.xp-advisor-kpis small{color:var(--muted);font-size:8px;font-weight:900;letter-spacing:.05em}.xp-advisor-kpis strong{margin-top:4px;font-size:15px}.xp-advisor-kpis em{margin-top:2px;color:var(--muted);font-size:8px;font-style:normal}
.xp-advisor-panel h4{margin:13px 0 7px;font-size:10px;text-transform:uppercase;letter-spacing:.06em}
.xp-advisor-list{display:grid;gap:7px}.xp-advisor-item{display:grid;grid-template-columns:max-content 1fr;gap:10px;align-items:start;padding:9px 10px;border:1px solid var(--line);border-radius:10px;background:var(--panel)}.xp-advisor-item p{margin:1px 0 0;color:var(--muted);font-size:9px;line-height:1.45}
.xp-advisor-weight-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.xp-advisor-weight{padding:11px;border:1px solid var(--line);border-radius:11px;background:var(--panel)}.xp-advisor-weight>div{display:flex;align-items:center;justify-content:space-between;gap:8px}.xp-advisor-weight small{font-size:8px;font-weight:900;letter-spacing:.05em;color:var(--muted)}.xp-advisor-weight strong{display:block;margin-top:7px;font-size:15px}.xp-advisor-weight p{margin:4px 0 0;color:var(--muted);font-size:9px;line-height:1.45}.xp-advisor-weight em{display:block;margin-top:5px;color:var(--muted);font-size:8px;font-style:normal}
.xp-advisor-position-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.xp-advisor-position{padding:10px;border:1px solid var(--line);border-radius:11px;background:var(--panel)}.xp-advisor-position>div{display:flex;align-items:center;justify-content:space-between;gap:6px}.xp-advisor-position>div>strong{font-size:13px}.xp-advisor-position>b{display:block;margin-top:7px;font-size:10px}.xp-advisor-position small{display:block;margin-top:4px;color:var(--muted);font-size:8px;line-height:1.4}.xp-advisor-position em{display:block;margin-top:5px;color:var(--muted);font-size:8px;font-style:normal}
.xp-advisor-foot{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.xp-advisor-foot span{padding:7px 9px;border:1px solid var(--line);border-radius:999px;background:var(--panel);font-size:8px}.xp-advisor-foot b{font-weight:900}
@media(max-width:980px){.xp-advisor-kpis,
.xp-advisor-position-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.xp-advisor-head{display:block}.xp-advisor-lock{margin-top:9px;max-width:none}.xp-advisor-weight-grid,.xp-advisor-position-grid,
.xp-advisor-item{grid-template-columns:1fr}.xp-advisor-kpis{grid-template-columns:1fr 1fr}}
.suggested-squad-actions{
  position:relative;
}
.suggested-squad-slot-menu{
  position:absolute;
  right:0;
  bottom:calc(100% + 10px);
  z-index:40;
  width:min(310px,calc(100vw - 42px));
  padding:7px;
  border:1px solid var(--line);
  border-radius:16px;
  background:var(--panel);
  box-shadow:0 16px 38px rgba(15,23,42,.18);
}
.suggested-squad-slot-menu.hidden{
  display:none!important;
}
.suggested-squad-slot-menu::after{
  content:"";
  position:absolute;
  right:34px;
  top:100%;
  width:12px;
  height:12px;
  background:var(--panel);
  border-right:1px solid var(--line);
  border-bottom:1px solid var(--line);
  transform:translateY(-6px) rotate(45deg);
}
.suggested-squad-slot-menu button{
  position:relative;
  z-index:1;
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:11px 12px;
  border:0;
  border-radius:11px;
  background:transparent;
  color:var(--text);
  text-align:left;
  cursor:pointer;
}
.suggested-squad-slot-menu button:hover:not(:disabled),
.suggested-squad-slot-menu button:focus-visible:not(:disabled){
  background:rgba(59,130,246,.10);
  outline:none;
}
.suggested-squad-slot-menu button strong{
  font-size:.79rem;
  white-space:nowrap;
}
.suggested-squad-slot-menu button span{
  color:var(--muted);
  font-size:.75rem;
  white-space:nowrap;
}
.suggested-squad-slot-menu button:disabled{
  opacity:.42;
  cursor:not-allowed;
}
@media(max-width:620px){
  .suggested-squad-slot-menu{
    right:-2px;
  }
}
#suggested-squad-close.player-profile-close-style{
  right:24px!important;
}

@media (max-width:700px){
  #suggested-squad-close.player-profile-close-style{
    right:20px!important;
  }
}

/* ---------- Transfer Decision Engine 2.0 ---------- */
.transfer-strategy-engine{
  padding:14px 16px 16px;
  border-bottom:1px solid var(--line);
  background:linear-gradient(180deg,var(--panel2),var(--panel));
}
.transfer-strategy-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:12px;
  margin-bottom:10px;
}
.transfer-strategy-head>div{display:flex;flex-direction:column;gap:2px;}
.transfer-strategy-head small{
  font-size:8px;
  font-weight:900;
  letter-spacing:.12em;
  color:var(--accent-dark);
}
.transfer-strategy-head strong{font-size:13px;color:var(--text);}
.transfer-strategy-head>span{font-size:9px;color:var(--muted);}
.transfer-strategy-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
}
.transfer-strategy-card{
  min-width:0;
  padding:11px 12px;
  border:1px solid var(--line);
  border-radius:13px;
  background:var(--panel);
}
.transfer-strategy-card.is-recommended{
  border-color:var(--accent-line);
  box-shadow:0 0 0 1px var(--accent-line) inset;
  background:var(--accent-tint);
}
.transfer-strategy-card-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}
.transfer-strategy-card-head>strong{font-size:10px;letter-spacing:.02em;color:var(--text);}
.transfer-strategy-card-head>b{
  flex:0 0 auto;
  padding:4px 6px;
  border-radius:999px;
  font-size:7px;
  letter-spacing:.08em;
  color:var(--accent-dark);
  background:var(--panel);
  border:1px solid var(--accent-line);
}
.transfer-strategy-net{display:flex;flex-direction:column;gap:1px;margin-top:9px;}
.transfer-strategy-net small{font-size:7px;font-weight:900;letter-spacing:.08em;color:var(--muted);}
.transfer-strategy-net strong{font-size:20px;font-variant-numeric:tabular-nums;color:var(--text);}
.transfer-strategy-net strong.is-positive{color:#24865c;}
.transfer-strategy-net strong.is-negative{color:#c94a4a;}
.transfer-strategy-card p{
  min-height:30px;
  margin:7px 0 9px!important;
  color:var(--muted)!important;
  font-size:9px!important;
  line-height:1.45!important;
}
.transfer-strategy-meta{display:flex;flex-wrap:wrap;gap:5px 8px;font-size:8px;color:var(--muted);}
.transfer-strategy-meta b{color:var(--text);font-variant-numeric:tabular-nums;}
.transfer-best-plan-banner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  margin:12px 16px 0;
  padding:10px 12px;
  border:1px solid var(--accent-line);
  border-radius:12px;
  background:var(--accent-tint);
}
.transfer-best-plan-banner>div{display:flex;flex-direction:column;gap:2px;}
.transfer-best-plan-banner>div:last-child{text-align:right;}
.transfer-best-plan-banner small{font-size:7px;font-weight:900;letter-spacing:.1em;color:var(--accent-dark);}
.transfer-best-plan-banner strong{font-size:12px;color:var(--text);}
.transfer-best-plan-banner>div:last-child strong{font-size:17px;font-variant-numeric:tabular-nums;color:#24865c;}
.transfer-roll-recommended{background:var(--accent-tint);}
.xp-center-legacy-transfer{margin-top:12px;border-top:1px solid var(--line);padding-top:10px;}
.xp-center-legacy-transfer summary{cursor:pointer;font-size:9px;font-weight:900;color:var(--muted);letter-spacing:.04em;}
.xp-center-legacy-transfer[open] summary{margin-bottom:10px;}

@media(max-width:800px){
  .transfer-strategy-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:520px){
  .transfer-strategy-grid{grid-template-columns:1fr;}
  .transfer-strategy-card p{min-height:0;}
  .transfer-best-plan-banner{align-items:flex-start;}
}
#preseason #builder-team-view.compact-squad-layout{
  --compact-squad-gap:8px;
  gap:var(--compact-squad-gap)!important;
  margin-top:12px!important;
}

/* One low status rail above the pitch: GW / actual FPL / XI xP / bench xP. */
#preseason #builder-team-view.compact-squad-layout > .compact-squad-stats{
  order:0;
  display:grid;
  grid-template-columns:.78fr .92fr 1.08fr 1fr;
  gap:8px!important;
  margin:0!important;
}
#preseason #builder-team-view.compact-squad-layout > .pitch-wrap{order:1;}
#preseason #builder-team-view.compact-squad-layout > .bench-panel{order:2;}

#preseason #builder-team-view.compact-squad-layout .compact-squad-stats .xpts-team-card{
  min-height:50px;
  padding:7px 10px;
  gap:6px;
  border-radius:11px;
  flex-wrap:wrap;
  align-content:center;
}
#preseason #builder-team-view.compact-squad-layout .compact-squad-stats .xpts-team-card small{
  width:100%;
  font-size:8px;
  line-height:1;
}
#preseason #builder-team-view.compact-squad-layout .compact-squad-stats .xpts-team-card strong{
  font-size:20px;
  line-height:1;
}
#preseason #builder-team-view.compact-squad-layout .compact-squad-stats .xpts-team-card span{
  margin-left:auto;
  font-size:8px;
  line-height:1.15;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
#preseason #builder-team-view.compact-squad-layout .compact-actual-card strong{
  color:var(--ok-solid);
}

/* Pitch: preserve width/readability, remove excess vertical air. */
#preseason .squad-workspace-main #builder-team-view.compact-squad-layout .pitch-wrap{
  padding:8px!important;
}
#preseason .squad-workspace-main #builder-team-view.compact-squad-layout .pitch-row{
  left:1.2%!important;
  right:1.2%!important;
}
#preseason .squad-workspace-main #builder-team-view.compact-squad-layout .pitch-row[data-position="4"]{transform:translateY(-18px)!important;}
#preseason .squad-workspace-main #builder-team-view.compact-squad-layout .pitch-row[data-position="3"]{transform:translateY(-12px)!important;}
#preseason .squad-workspace-main #builder-team-view.compact-squad-layout .pitch-row[data-position="2"]{transform:translateY(-6px)!important;}
#preseason .squad-workspace-main #builder-team-view.compact-squad-layout .pitch-row[data-position="1"]{transform:translateY(0)!important;}

/* Builder Analysis uses the same compact pitch geometry as the live Builder pitch. */
#preseason #builder-analysis .pitch-wrap{
  padding:8px!important;
}
#preseason #builder-analysis #builder-pitch{
  min-height:560px!important;
}
#preseason #builder-analysis #builder-pitch .pitch-row{
  left:1.2%!important;
  right:1.2%!important;
}
#preseason #builder-analysis #builder-pitch .pitch-row[data-position="4"]{transform:translateY(-18px)!important;}
#preseason #builder-analysis #builder-pitch .pitch-row[data-position="3"]{transform:translateY(-12px)!important;}
#preseason #builder-analysis #builder-pitch .pitch-row[data-position="2"]{transform:translateY(-6px)!important;}
#preseason #builder-analysis #builder-pitch .pitch-row[data-position="1"]{transform:translateY(0)!important;}
@media (min-width:1051px) and (max-height:900px){
  #preseason #builder-analysis #builder-pitch{
    min-height:530px!important;
  }
}
@media(max-width:580px){
  #preseason #builder-analysis #builder-pitch{
    min-height:520px!important;
  }
}

/* Bench: four compact horizontal cards instead of four tall towers. */
#preseason #builder-team-view.compact-squad-layout .bench-panel{
  padding:9px 10px 10px;
  border-radius:13px;
}
#preseason #builder-team-view.compact-squad-layout .bench-panel-head{
  margin-bottom:6px;
}
#preseason #builder-team-view.compact-squad-layout .builder-bench{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:7px!important;
  margin-top:0!important;
}
#preseason #builder-team-view.compact-squad-layout .bench-player{
  row-gap:0;
  padding:7px 8px;
  text-align:left;
  border-radius:11px;
}
#preseason #builder-team-view.compact-squad-layout .bench-order{
  height:17px;
}
#preseason #builder-team-view.compact-squad-layout .bench-player-info{
  align-items:flex-start;
  text-align:left;
}
#preseason #builder-team-view.compact-squad-layout .bench-player-info strong{
  width:100%;
  margin:0 0 1px;
  font-size:var(--squad-meta-size)!important;
  line-height:var(--squad-meta-line)!important;
  overflow:hidden;
  text-overflow:ellipsis;
}
#preseason #builder-team-view.compact-squad-layout .bench-player-info small{
  width:100%;
  max-width:100%;
  margin-top:1px!important;
  font-size:8px!important;
  line-height:1.12!important;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* On shorter laptop viewports tighten one more step without changing click geometry. */
@media (min-width:1051px) and (max-height:900px){
  #preseason #builder-team-view.compact-squad-layout .bench-player{padding:6px 7px;}
}

@media(max-width:1050px){
  #preseason #builder-team-view.compact-squad-layout > .compact-squad-stats{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  #preseason #builder-team-view.compact-squad-layout .builder-bench{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}

@media(max-width:580px){
  #preseason #builder-team-view.compact-squad-layout > .compact-squad-stats{grid-template-columns:1fr 1fr;}
  #preseason #builder-team-view.compact-squad-layout .compact-squad-stats .xpts-team-card{min-height:48px;padding:7px 8px;}
  #preseason #builder-team-view.compact-squad-layout .compact-squad-stats .xpts-team-card strong{font-size:18px;}
  #preseason #builder-team-view.compact-squad-layout .builder-bench{grid-template-columns:1fr!important;}
}
#preseason #builder-team-view.compact-squad-layout .bench-player{
  min-height:72px;
}

@media (min-width:1051px) and (max-height:900px){
  #preseason #builder-team-view.compact-squad-layout .bench-player{
    min-height:68px;
  }
}
#preseason .squad-workspace-main #builder-team-view.compact-squad-layout .pitch-formation-badge{
  max-width:max-content!important;
  height:34px!important;
  padding:0 10px!important;
  gap:9px!important;
  align-items:center!important;
  border:1px solid rgba(255,255,255,.72)!important;
  line-height:1!important;
}
#preseason .squad-workspace-main #builder-team-view.compact-squad-layout .pitch-formation-badge span{
  line-height:1!important;
}
#preseason .squad-workspace-main #builder-team-view.compact-squad-layout .pitch-formation-badge strong{
  font-family:var(--display)!important;
  line-height:1!important;
}
@media(max-width:580px){
  #preseason .squad-workspace-main #builder-team-view.compact-squad-layout .pitch-formation-badge{
    padding:0 8px!important;
    gap:6px!important;
  }
  #preseason .squad-workspace-main #builder-team-view.compact-squad-layout .pitch-formation-badge span{font-size:8px!important;}
  #preseason .squad-workspace-main #builder-team-view.compact-squad-layout .pitch-formation-badge strong{font-size:14px!important;}
}
/* Builder bench mirrors the same compact metadata hierarchy. */
#preseason #builder-team-view.compact-squad-layout .bench-player-info-compact-meta .bench-primary-meta,
#preseason #builder-team-view.compact-squad-layout .bench-player-info-compact-meta .bench-secondary-meta{
  display:flex;
  align-items:center;
  width:100%;
  min-width:0;
}
#preseason #builder-team-view.compact-squad-layout .bench-player-info-compact-meta .bench-primary-meta{
  margin-top:2px;
}
#preseason #builder-team-view.compact-squad-layout .bench-player-info-compact-meta .bench-secondary-meta{
  margin-top:2px;
  gap:var(--squad-secondary-gap);
}
#preseason #builder-team-view.compact-squad-layout .bench-player-info-compact-meta .bench-primary-meta small,
#preseason #builder-team-view.compact-squad-layout .bench-player-info-compact-meta .bench-secondary-meta small{
  width:auto!important;
  max-width:none!important;
  margin:0!important;
}
#preseason #builder-team-view.compact-squad-layout .bench-player-info-compact-meta .bench-secondary-meta .bench-coach-score{
  min-width:0!important;
}
#preseason #builder-team-view.compact-squad-layout .bench-player-info-compact-meta .bench-club{
  max-width:100%!important;
  margin:1px 0 1px!important;
  color:var(--muted)!important;
}
#preseason #builder-team-view.compact-squad-layout .bench-kit-stack{
  justify-content:flex-start!important;
}
#preseason #builder-team-view.compact-squad-layout .bench-kit-stack .mini-shirt{
  flex:0 0 34px!important;
  width:34px!important;
  height:34px!important;
}
#preseason #builder-team-view.compact-squad-layout .bench-kit-stack .bench-position-inline{
  display:inline-flex!important;
  align-items:center!important;
  flex:0 0 auto!important;
  margin:0!important;
  white-space:nowrap!important;
  color:var(--text2)!important;
}
#preseason #builder-team-view.compact-squad-layout .bench-player-info-compact-meta > strong{
  font-size:var(--squad-name-size)!important;
  line-height:var(--squad-name-line)!important;
  font-weight:var(--squad-name-weight)!important;
}
#preseason #builder-team-view.compact-squad-layout .bench-player-info-compact-meta .bench-club{
  font-size:var(--squad-club-size)!important;
  line-height:var(--squad-club-line)!important;
  font-weight:var(--squad-club-weight)!important;
}
#preseason #builder-team-view.compact-squad-layout .bench-player-info-compact-meta .bench-primary-meta small,
#preseason #builder-team-view.compact-squad-layout .bench-player-info-compact-meta .bench-secondary-meta small{
  font-size:var(--squad-meta-size)!important;
  line-height:var(--squad-meta-line)!important;
}

@media (max-width:700px){
  #preseason #builder-team-view.compact-squad-layout .bench-player-info-compact-meta > strong{
    font-size:var(--squad-name-size-mobile)!important;
  }
  #preseason #builder-team-view.compact-squad-layout .bench-player-info-compact-meta .bench-club{
    font-size:var(--squad-club-size-mobile)!important;
  }
  #preseason #builder-team-view.compact-squad-layout .bench-player-info-compact-meta .bench-primary-meta small,
  #preseason #builder-team-view.compact-squad-layout .bench-player-info-compact-meta .bench-secondary-meta small{
    font-size:var(--squad-meta-size-mobile)!important;
  }
}
#preseason #builder-team-view.compact-squad-layout .bench-player{
  padding-left:0!important;
}
#preseason #builder-team-view.compact-squad-layout .bench-kit-stack{
  width:90px!important;
  gap:3px!important;
}
#preseason #builder-team-view.compact-squad-layout .bench-kit-stack .bench-order{
  width:22px!important;
}
@media (max-width:700px){
  #preseason #builder-team-view.compact-squad-layout .bench-kit-stack{
    width:86px!important;
  }
}
#preseason #builder-team-view.compact-squad-layout .bench-kit-stack .bench-position-inline{
  font-size:11px!important;
  line-height:1!important;
  font-weight:800!important;
}
#preseason #builder-team-view.compact-squad-layout .bench-player-info-compact-meta > strong,
#preseason #builder-team-view.compact-squad-layout .bench-player-info-compact-meta .bench-club{
  display:block!important;
  width:100%!important;
  text-align:center!important;
}
@media (max-width:700px){
  #preseason #builder-team-view.compact-squad-layout .bench-kit-stack .bench-position-inline{
    font-size:10px!important;
  }
}
#preseason .squad-workspace-main #builder-team-view.compact-squad-layout .pitch{
  min-height:560px!important;
}
@media (min-width:1051px) and (max-height:900px){
  #preseason .squad-workspace-main #builder-team-view.compact-squad-layout .pitch{
    min-height:530px!important;
  }
}
#preseason #builder-team-view.compact-squad-layout .bench-player{
  position:relative!important;
}
#preseason #builder-team-view.compact-squad-layout .bench-player .bench-player-sell{
  top:5px;
  right:6px;
}
#preseason #builder-team-view.compact-squad-layout .bench-kit-stack{
  padding-left:28px!important;
}
#preseason #builder-team-view.compact-squad-layout .bench-kit-stack .bench-order{
  position:absolute!important;
  left:7px!important;
  top:20px!important;
  z-index:3!important;
}
@media (max-width:700px){
  #preseason #builder-team-view.compact-squad-layout .bench-kit-stack{
    padding-left:26px!important;
  }
  #preseason #builder-team-view.compact-squad-layout .bench-kit-stack .bench-order{
    left:6px!important;
    top:18px!important;
  }
}
#preseason #builder-team-view.compact-squad-layout .bench-player-info-compact-meta .bench-primary-meta{
  gap:var(--squad-primary-gap)!important;
}
#preseason #builder-team-view.compact-squad-layout .bench-player-info-compact-meta .bench-primary-meta .bench-price,
#preseason #builder-team-view.compact-squad-layout .bench-player-info-compact-meta .bench-primary-meta .bench-fixture,
#preseason #builder-team-view.compact-squad-layout .bench-player-info-compact-meta .bench-primary-meta .bench-xpts,
#preseason #builder-team-view.compact-squad-layout .bench-player-info-compact-meta .bench-secondary-meta .bench-coach-score{
  border:0!important;
  border-radius:0!important;
  padding:0!important;
  font-weight:700!important;
}
#preseason #builder-team-view.compact-squad-layout .bench-player-info-compact-meta .bench-primary-meta .bench-xpts b,
#preseason #builder-team-view.compact-squad-layout .bench-player-info-compact-meta .bench-secondary-meta .bench-coach-score b{
  font-weight:800!important;
}
#preseason #builder-team-view.compact-squad-layout .bench-player-info-compact-meta .bench-secondary-meta{
  justify-content:center!important;
  text-align:center!important;
}
#preseason #builder-team-view.compact-squad-layout .bench-player-info-compact-meta .bench-primary-meta{
  justify-content:center!important;
  text-align:center!important;
}

/* ========================================================================== 
   Transfer Timing Intelligence
   ========================================================================== */
.transfer-timing{
  margin:0 0 12px;
  padding:12px;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--panel2);
}
.transfer-timing.is-buy{border-color:rgba(36,134,92,.34);background:rgba(36,134,92,.055);}
.transfer-timing.is-wait{border-color:rgba(197,132,34,.38);background:rgba(197,132,34,.06);}
.transfer-timing.is-hold{border-color:rgba(80,98,124,.28);}
.transfer-timing-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;}
.transfer-timing-head>div{display:flex;flex-direction:column;gap:2px;}
.transfer-timing-head small{font-size:8px;font-weight:900;letter-spacing:.11em;color:var(--muted);}
.transfer-timing-head strong{font-size:18px;line-height:1;color:var(--text);}
.transfer-timing.is-buy .transfer-timing-head strong{color:#24865c;}
.transfer-timing.is-wait .transfer-timing-head strong{color:#9b6719;}
.transfer-timing-head>span{font-size:9px;color:var(--muted);}
.transfer-timing>p{margin:7px 0 9px;font-size:10px;line-height:1.45;color:var(--text2);}
.transfer-timing-xi-bridge{display:flex;align-items:flex-start;gap:8px;margin:0 0 9px;padding:7px 9px;border:1px solid var(--line);border-radius:10px;background:var(--panel);}
.transfer-timing-xi-bridge strong{flex:0 0 auto;font-size:8px;line-height:1.4;letter-spacing:.08em;color:var(--accent-dark);}
.transfer-timing-xi-bridge span{font-size:9px;line-height:1.4;color:var(--text2);}
.transfer-timing-compare{display:grid;grid-template-columns:1fr 1fr;gap:8px;}
.transfer-timing-compare>div{min-width:0;padding:8px 9px;border:1px solid var(--line);border-radius:11px;background:var(--panel);display:flex;flex-direction:column;gap:2px;}
.transfer-timing-compare small{font-size:7px;font-weight:900;letter-spacing:.08em;color:var(--muted);}
.transfer-timing-compare strong{font-size:16px;font-variant-numeric:tabular-nums;color:var(--text);}
.transfer-timing-compare em{font-size:8px;line-height:1.3;color:var(--muted);font-style:normal;overflow-wrap:anywhere;}
.transfer-timing-factors{display:flex;flex-wrap:wrap;gap:5px;margin-top:8px;}
.transfer-timing-factors span{padding:3px 7px;border-radius:999px;border:1px solid var(--line);background:var(--panel);font-size:8px;font-weight:700;color:var(--text2);}
.transfer-timing-next{margin-top:8px;padding-top:8px;border-top:1px solid var(--line);font-size:9px;line-height:1.4;color:var(--text2);}
.transfer-timing-next b{color:var(--text);}
.transfer-move-timing{display:flex;gap:5px;flex-wrap:wrap;margin:7px 0 0;}
.transfer-move-timing span{display:inline-flex;align-items:center;min-height:21px;padding:3px 7px;border-radius:999px;font-size:8px;font-weight:900;letter-spacing:.04em;border:1px solid var(--line);}
.transfer-move-timing .is-out{color:#a94a38;background:rgba(169,74,56,.07);border-color:rgba(169,74,56,.24);}
.transfer-move-timing .is-out.is-urgent{color:#b52e2e;background:rgba(181,46,46,.09);border-color:rgba(181,46,46,.32);}
.transfer-move-timing .is-in{color:#24714f;background:rgba(36,113,79,.07);border-color:rgba(36,113,79,.24);}
@media(max-width:620px){
  .transfer-timing-compare{grid-template-columns:1fr;}
  .transfer-timing-head strong{font-size:16px;}
}

/* ========================================================================== 
   Fixture Swing Intelligence
   ========================================================================== */
.transfer-fixture-swing{
  display:grid;
  grid-template-columns:minmax(145px,1.2fr) repeat(2,minmax(92px,.75fr)) auto;
  align-items:center;
  gap:7px;
  margin-top:8px;
  padding:8px 10px;
  border:1px solid var(--line);
  border-radius:11px;
  background:var(--panel);
}
.transfer-fixture-swing>div{display:flex;flex-direction:column;gap:2px;min-width:0;}
.transfer-fixture-swing small{font-size:7px;font-weight:900;letter-spacing:.08em;color:var(--muted);}
.transfer-fixture-swing strong{font-size:11px;color:var(--text);}
.transfer-fixture-swing>span{font-size:9px;color:var(--text2);white-space:nowrap;}
.transfer-fixture-swing>span b{color:var(--text);}
.transfer-fixture-swing>em{justify-self:end;padding:4px 7px;border-radius:999px;border:1px solid var(--line);font-size:8px;font-style:normal;font-weight:900;white-space:nowrap;color:var(--text2);}
.transfer-fixture-swing.is-positive{border-color:rgba(36,134,92,.28);background:rgba(36,134,92,.045);}
.transfer-fixture-swing.is-positive>div strong,.transfer-fixture-swing.is-positive>em{color:#24714f;}
.transfer-fixture-swing.is-negative{border-color:rgba(181,46,46,.24);background:rgba(181,46,46,.04);}
.transfer-fixture-swing.is-negative>div strong,.transfer-fixture-swing.is-negative>em{color:#a43b3b;}

.watch-fixture-swing{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 9px;border:1px solid var(--line);border-radius:9px;background:var(--panel);}
.watch-fixture-swing strong{font-size:9px;font-weight:900;white-space:nowrap;color:var(--text);}
.watch-fixture-swing small{min-width:0;font-size:8px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:right;}
.watch-fixture-swing.is-positive{border-color:rgba(36,134,92,.28);background:rgba(36,134,92,.045);}
.watch-fixture-swing.is-positive strong{color:#24714f;}
.watch-fixture-swing.is-negative{border-color:rgba(181,46,46,.24);background:rgba(181,46,46,.04);}
.watch-fixture-swing.is-negative strong{color:#a43b3b;}

.player-fixture-swing-card{margin-top:12px;padding:12px;border:1px solid var(--line);border-radius:14px;background:var(--panel2);}
.player-fixture-swing-card.is-positive{border-color:rgba(36,134,92,.30);background:rgba(36,134,92,.045);}
.player-fixture-swing-card.is-negative{border-color:rgba(181,46,46,.26);background:rgba(181,46,46,.04);}
.player-fixture-swing-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;}
.player-fixture-swing-head small{display:block;font-size:8px;font-weight:900;letter-spacing:.08em;color:var(--muted);}
.player-fixture-swing-head strong{display:block;margin-top:2px;font-size:15px;color:var(--text);}
.player-fixture-swing-head>b{padding:4px 7px;border:1px solid var(--line);border-radius:999px;font-size:8px;color:var(--text2);white-space:nowrap;}
.player-fixture-swing-runs{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:9px;}
.player-fixture-swing-runs>span{padding:7px 8px;border:1px solid var(--line);border-radius:9px;background:var(--panel);}
.player-fixture-swing-runs small,.player-fixture-swing-runs strong{display:block;}
.player-fixture-swing-runs small{font-size:7px;font-weight:900;letter-spacing:.07em;color:var(--muted);}
.player-fixture-swing-runs strong{margin-top:2px;font-size:11px;color:var(--text);}
.player-fixture-swing-card p{margin:8px 0 0;font-size:9px;line-height:1.4;color:var(--muted);}

@media(max-width:700px){
  .transfer-fixture-swing{grid-template-columns:1fr 1fr;}
  .transfer-fixture-swing>div{grid-column:1/-1;}
  .transfer-fixture-swing>em{grid-column:1/-1;justify-self:start;}
  .watch-fixture-swing{align-items:flex-start;flex-direction:column;}
  .watch-fixture-swing small{text-align:left;white-space:normal;}
}
#preseason .preseason-notice-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  margin-top:24px;
  align-items:stretch;
}
#preseason .preseason-notice-grid .panel{
  margin-top:0!important;
  min-height:100%;
}
#preseason .preseason-notice{
  margin-top:0!important;
}
#preseason .preseason-spotlight{
  border-color:var(--line2);
  background:linear-gradient(180deg,var(--panel2),var(--panel));
}
#preseason .preseason-notice h3,
#preseason .preseason-spotlight h3{
  margin-top:5px;
}
#preseason .preseason-notice p,
#preseason .preseason-spotlight p{
  margin-bottom:0;
}
@media (max-width:760px){
  #preseason .preseason-notice-grid{
    grid-template-columns:1fr;
    gap:10px;
  }
}
#preseason > .preseason-notice-grid{
  margin-top:0!important;
  margin-bottom:26px!important;
}
#preseason > .preseason-notice-grid + .dashboard-head{
  margin-top:0!important;
}

/* ========================================================================== 
   Minutes & Rotation qualitative signals
   ========================================================================== */
.xp-minutes-signal{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-top:10px;
  padding:8px 10px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--panel2);
}
.xp-minutes-signal small{font-size:8px;font-weight:900;letter-spacing:.06em;color:var(--muted);}
.xp-minutes-signal strong{font-size:10px;letter-spacing:.03em;color:var(--text);}
.xp-minutes-signal.is-strong{border-color:rgba(36,134,92,.28);background:rgba(36,134,92,.07);}
.xp-minutes-signal.is-risk{border-color:rgba(201,74,74,.24);background:rgba(201,74,74,.06);}
.xp-minutes-signal.is-watch{border-color:rgba(197,145,42,.28);background:rgba(197,145,42,.07);}
.transfer-xp-intel{grid-template-columns:minmax(0,1.2fr) repeat(4,minmax(0,1fr));}
.watch-player-xp-intel{grid-template-columns:repeat(6,minmax(0,1fr));}
@media(max-width:900px){.watch-player-xp-intel,
.transfer-xp-intel{grid-template-columns:repeat(3,minmax(0,1fr));}.transfer-xp-intel .transfer-xp-primary{grid-column:auto;}}
@media(max-width:700px){.watch-player-xp-intel{grid-template-columns:repeat(2,minmax(0,1fr));}.transfer-xp-intel{grid-template-columns:1fr 1fr}.transfer-xp-intel .transfer-xp-primary{grid-column:1/-1;}}
@media(max-width:480px){.transfer-xp-intel{grid-template-columns:1fr}.transfer-xp-intel .transfer-xp-primary{grid-column:auto;}}

/* ========================================================================== 
   Modular Chip Planner
   ========================================================================== */
.chip-window-line{
  display:flex;
  align-items:center;
  gap:7px;
  flex-wrap:wrap;
  margin:10px 0 0;
  padding:8px 10px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--fill);
  font-size:11px;
  color:var(--muted);
}
.chip-window-line strong{color:var(--text);font-size:11px;}
.chip-window-line b{margin-left:auto;color:var(--accent);font-size:11px;}
.chip-card[data-chip-id]{min-width:0;}
@media(max-width:520px){
  .chip-window-line b{margin-left:0;width:100%;}
}
.pitch.unified-squad-player-design .pitch-player{
  width:136px!important;
}
.pitch.unified-squad-player-design .pitch-player-label{
  flex-wrap:wrap!important;
}
.pitch.unified-squad-player-design .pitch-player-label-compact-meta .pitch-player-namebox{
  flex:0 0 100%!important;
  border-radius:8px!important;
}
.pitch.unified-squad-player-design .pitch-player .shirt{
  width:46px!important;
  height:46px!important;
}
.pitch.unified-squad-player-design .pitch-player-label-compact-meta .pitch-player-primary-meta{
  flex:0 0 100%!important;
}
.pitch.unified-squad-player-design .pitch-player-label-compact-meta .pitch-player-primary-meta .player-price,
.pitch.unified-squad-player-design .pitch-player-label-compact-meta .pitch-player-primary-meta .player-fixture,
.pitch.unified-squad-player-design .pitch-player-label-compact-meta .pitch-player-primary-meta .player-xpts{
  font-family:Inter,system-ui,sans-serif!important;
  letter-spacing:0!important;
}
.pitch.unified-squad-player-design .pitch-player-label-compact-meta .pitch-player-primary-meta .player-xpts b{
  margin-right:3px!important;
  font-weight:800!important;
}
.pitch.unified-squad-player-design .pitch-player-label-compact-meta .pitch-player-secondary-meta{
  flex:0 0 100%!important;
}
.pitch.unified-squad-player-design .pitch-player-label-compact-meta .pitch-player-secondary-meta .player-coach-score b{
  font-weight:800!important;
  margin-right:3px!important;
}

@media (min-width:1051px) and (max-height:900px){
  .pitch.unified-squad-player-design .pitch-player{width:130px!important;}
  .pitch.unified-squad-player-design .pitch-player .shirt{width:43px!important;height:43px!important;}
}


/* ========================================================================== 
   v195 — FPLScope Decision Center
   ========================================================================== */
.dashboard-head-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:wrap;
}
.decision-center-launch-btn{
  white-space:nowrap;
}
.decision-center-modal{
  z-index:4300;
}
.decision-center-dialog{
  width:min(1040px,94vw)!important;
  max-width:1040px!important;
  max-height:92vh!important;
  overflow:auto!important;
}
.decision-center-head{
  align-items:flex-start!important;
  margin-bottom:14px;
}
.decision-center-head h2{
  margin-bottom:4px;
}
.decision-center-head p{
  margin:0;
}
.decision-center-health{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin-bottom:12px;
  padding:15px 17px!important;
  border:1px solid var(--line2);
}
.decision-center-health>div:first-child{
  display:flex;
  align-items:baseline;
  gap:10px;
  min-width:0;
  flex-wrap:wrap;
}
.decision-center-health small{
  font-size:10px;
  font-weight:800;
  letter-spacing:.08em;
  color:var(--muted);
}
.decision-center-health strong{
  font-size:16px;
  letter-spacing:.02em;
}
.decision-center-health span{
  color:var(--text2);
  font-size:12px;
}
.decision-center-health.is-good{border-color:rgba(62,155,96,.28);background:rgba(62,155,96,.06);}
.decision-center-health.is-watch{border-color:rgba(213,151,38,.30);background:rgba(213,151,38,.06);}
.decision-center-health.is-action{border-color:rgba(241,119,40,.35);background:var(--accent-tint);}
.decision-center-health.is-risk{border-color:rgba(196,56,56,.30);background:rgba(196,56,56,.06);}
.decision-center-health-meta{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:6px;
  flex-wrap:wrap;
}
.decision-center-health-meta span{
  padding:4px 8px;
  border:1px solid var(--line2);
  border-radius:999px;
  background:var(--panel2);
  font-size:10px;
  font-weight:700;
}
.decision-center-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.decision-center-loading{
  grid-column:1/-1;
  padding:30px;
  border:1px dashed var(--line2);
  border-radius:14px;
  text-align:center;
  color:var(--muted);
}
.decision-card{
  position:relative;
  min-height:150px;
  padding:15px 16px!important;
  border:1px solid var(--line2);
  display:flex;
  flex-direction:column;
}
.decision-card.is-action{border-color:rgba(241,119,40,.35);}
.decision-card.is-watch{border-color:rgba(213,151,38,.30);}
.decision-card.is-good{border-color:rgba(62,155,96,.25);}
.decision-card.is-risk{border-color:rgba(196,56,56,.28);background:rgba(196,56,56,.04);}
.decision-card-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  min-height:22px;
}
.decision-card-head span{
  color:var(--muted);
  font-size:10px;
  line-height:1;
  font-weight:800;
  letter-spacing:.09em;
}
.decision-card-head b{
  max-width:55%;
  padding:3px 7px;
  border-radius:999px;
  background:var(--panel2);
  color:var(--text2);
  font-size:9px;
  line-height:1.15;
  text-align:right;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.decision-card h3{
  margin:11px 0 5px!important;
  font-size:18px!important;
  line-height:1.15!important;
}
.decision-card p{
  margin:0!important;
  font-size:12px;
  line-height:1.45!important;
  color:var(--text2);
}
.decision-card-action{
  align-self:flex-start;
  margin-top:auto;
  padding:7px 10px;
  border:1px solid var(--line2);
  border-radius:999px;
  background:var(--panel2);
  color:var(--text);
  font-size:10px;
  font-weight:800;
  cursor:pointer;
}
.decision-card-action:hover{
  border-color:var(--accent);
  color:var(--accent);
}
.decision-center-footnote{
  margin:12px 2px 0;
  color:var(--muted);
  font-size:10px;
  line-height:1.45;
}
@media(max-width:760px){
  .dashboard-head-actions{justify-content:flex-start;}
  .decision-center-dialog{width:min(96vw,1040px)!important;}
  .decision-center-grid{grid-template-columns:1fr;}
  .decision-center-health{align-items:flex-start;flex-direction:column;}
  .decision-center-health-meta{justify-content:flex-start;}
  .decision-card{min-height:0;}
}
#decision-center-refresh.fpl-pill-btn{
  border-radius:999px!important;
}
.player-fixture-swing-card .fixture-signal-explanation{
  margin:9px 0 0!important;
  color:var(--text2)!important;
  font-size:10px!important;
  line-height:1.45!important;
}
.player-fixture-swing-card .fixture-signal-factors{
  margin:5px 0 0!important;
  font-size:8px!important;
  color:var(--muted)!important;
}
.transfer-fixture-swing .fixture-signal-explanation{
  grid-column:1/-1;
  margin:1px 0 0;
  font-size:9px;
  line-height:1.4;
  color:var(--text2);
}
.watch-fixture-swing{
  flex-wrap:wrap;
}
.watch-fixture-swing .fixture-signal-explanation{
  flex:0 0 100%;
  width:100%;
  font-size:9px;
  line-height:1.35;
  color:var(--text2);
  text-align:left;
}
#preseason .squad-workspace-main > .builder-topline{
  width:100%!important;
  max-width:none!important;
  display:block!important;
}
#preseason .squad-workspace-main > .builder-topline .squad-money-bar{
  margin:0!important;
}
#preseason .squad-workspace-main > .builder-assistant-tool-row{
  display:grid!important;
  grid-template-columns:repeat(6,minmax(0,1fr))!important;
  gap:10px!important;
  width:100%!important;
  margin:10px 0 0!important;
  align-items:center!important;
}
#preseason .squad-workspace-main > .builder-assistant-tool-row .builder-action-btn{
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  height:38px!important;
  min-height:38px!important;
  padding:0 10px!important;
  border-radius:999px!important;
  white-space:nowrap!important;
  font-size:12px!important;
}
@media (max-width:1050px){
  #preseason .squad-workspace-main > .builder-assistant-tool-row{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}
@media (max-width:580px){
  #preseason .squad-workspace-main > .builder-assistant-tool-row{
    grid-template-columns:1fr!important;
  }
}
.captaincy-consistency-note{display:block;margin:7px 0 0;color:var(--muted);font-size:11px;line-height:1.4;}
.player-callout .captaincy-consistency-note{margin-top:6px;}
.what-changed-count{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;min-height:30px;padding:0 11px;border-radius:999px;border:1px solid var(--line);font-size:10px;font-weight:800;letter-spacing:.05em;white-space:nowrap;}
.what-changed-count.is-checking,.what-changed-count.is-baseline{color:var(--muted);background:var(--soft);}
.what-changed-count.is-stable{color:var(--ok);background:rgba(28,166,107,.08);border-color:rgba(28,166,107,.24);}
.what-changed-count.is-active{color:var(--accent);background:rgba(255,116,24,.08);border-color:rgba(255,116,24,.25);}
.what-changed-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
.what-changed-row{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px;align-items:start;padding:11px 12px;border:1px solid var(--line);border-radius:12px;background:var(--soft);}
.what-changed-row.is-action{border-color:rgba(255,116,24,.28);}
.what-changed-row.is-positive{border-color:rgba(28,166,107,.24);}
.what-changed-row.is-risk{border-color:rgba(196,56,56,.24);}
.what-changed-row.is-watch{border-color:rgba(189,137,0,.25);}
.what-changed-kind{display:inline-flex;align-items:center;justify-content:center;min-width:58px;min-height:24px;padding:0 7px;border-radius:999px;background:var(--panel);border:1px solid var(--line);font-size:8px;font-weight:800;letter-spacing:.05em;white-space:nowrap;}
.what-changed-row strong{display:block;font-size:12px;line-height:1.3;}
.what-changed-row p{margin:3px 0 0;color:var(--muted);font-size:10px;line-height:1.4;}
.what-changed-empty{grid-column:1/-1;display:flex;flex-direction:column;gap:3px;padding:12px;border:1px dashed var(--line);border-radius:12px;background:var(--soft);}
.what-changed-empty strong{font-size:12px;}
.what-changed-empty span{color:var(--muted);font-size:10px;line-height:1.4;}
@media(max-width:760px){
  .what-changed-list{grid-template-columns:1fr;}
  .what-changed-row{grid-template-columns:auto minmax(0,1fr);}
}
@media(max-width:480px){
  .what-changed-count{align-self:flex-start;}
}
#preseason .player-pool-column > .what-changed-panel .what-changed-list{
  grid-template-columns:1fr;
}
@media(max-width:1050px){
  #preseason .player-pool-column > .what-changed-panel{margin-bottom:16px!important;}
}
.deadline-mode-dialog{width:min(96vw,980px)!important;max-height:min(88vh,860px);overflow:auto;}
.deadline-mode-head{margin-bottom:12px;}
.deadline-mode-head h2{margin:2px 0 3px;}
.deadline-mode-head p{margin:0;}
.deadline-mode-status{display:block;margin:0 0 14px;padding:15px 17px;border:1px solid var(--line);}
.deadline-mode-status>div:first-child{min-width:0;}
.deadline-mode-status small{display:block;font-size:9px;font-weight:800;letter-spacing:.08em;color:var(--muted);}
.deadline-mode-status strong{display:block;margin-top:3px;font-size:19px;line-height:1.15;}
.deadline-mode-status>div:first-child>span{display:block;margin-top:4px;color:var(--text2);font-size:13px;line-height:1.5;}
.deadline-mode-status.is-ready{border-color:rgba(28,166,107,.28);background:rgba(28,166,107,.06);}
.deadline-mode-status.is-review{border-color:rgba(255,116,24,.32);background:rgba(255,116,24,.06);}
.deadline-mode-status.is-unavailable{border-color:rgba(196,56,56,.24);background:rgba(196,56,56,.05);}
.deadline-review-tags{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%;max-width:none;margin-top:12px;}
.deadline-review-tags b{display:grid;grid-template-columns:max-content minmax(0,1fr);align-items:baseline;gap:9px;min-width:0;min-height:42px;padding:9px 11px;border:1px solid var(--line);border-radius:10px;background:var(--panel);font-size:12px;line-height:1.4;text-align:left;}
.deadline-review-tags b.is-wide{grid-column:1/-1;}
.deadline-review-tag-label{color:var(--muted);font-size:10px;font-weight:900;letter-spacing:.06em;text-transform:uppercase;white-space:nowrap;}
.deadline-review-tag-value{min-width:0;color:var(--text);font-weight:750;overflow-wrap:anywhere;}
.deadline-review-tags .recommendation-swap{flex-wrap:nowrap;white-space:nowrap;}
.deadline-review-tags .recommendation-separator{display:inline-block;margin:0 .3em;}
.deadline-mode-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:10px;}
.deadline-mode-card{margin:0;padding:14px 15px;min-width:0;}
.deadline-mode-card.is-good{border-color:rgba(28,166,107,.22);}
.deadline-mode-card.is-action{border-color:rgba(255,116,24,.30);}
.deadline-mode-card.is-watch{border-color:rgba(189,137,0,.28);}
.deadline-mode-card.is-risk{border-color:rgba(196,56,56,.25);}
.deadline-mode-card.is-neutral{border-color:var(--line);}
.deadline-mode-card.is-wide{grid-column:1/-1;}
.deadline-mode-card-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:7px;}
.deadline-mode-card-head span{font-size:9px;font-weight:800;letter-spacing:.07em;color:var(--muted);}
.deadline-mode-card-head b{font-size:9px;color:var(--text2);white-space:nowrap;}
.deadline-mode-card h3{margin:0;font-size:17px;line-height:1.2;overflow-wrap:anywhere;}
.deadline-mode-card p{margin:6px 0 0;color:var(--text2);font-size:11px;line-height:1.45;}
.deadline-mode-card .deadline-detail{display:block;margin-top:5px;color:var(--muted);font-size:9px;line-height:1.4;}
.deadline-mode-footnote{margin:12px 2px 0;color:var(--muted);font-size:10px;line-height:1.45;}
#deadline-mode-refresh.fpl-pill-btn{border-radius:999px!important;}
.deadline-mode-compare{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px;}
.deadline-mode-compare>div{min-width:0;padding:9px 10px;border:1px solid var(--line);border-radius:10px;background:var(--panel2);}
.deadline-mode-compare small{display:block;margin-bottom:3px;color:var(--muted);font-size:10px;font-weight:800;letter-spacing:.06em;}
.deadline-mode-compare strong{display:block;color:var(--text);font-size:13px;line-height:1.35;overflow-wrap:anywhere;}
.deadline-mode-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:11px;}
.deadline-mode-action-btn{min-height:34px!important;font-size:12px!important;border-radius:999px!important;}
@media(max-width:760px){
  .deadline-mode-dialog{width:min(96vw,720px)!important;}
  .deadline-mode-grid{grid-template-columns:1fr;}
  .deadline-review-tags{grid-template-columns:1fr;}
  .deadline-review-tags b.is-wide{grid-column:auto;}
}
@media(max-width:480px){
  .deadline-mode-card{padding:13px;}
  .deadline-mode-status>div:first-child>span{font-size:14px;}
  .deadline-review-tags b{grid-template-columns:1fr;gap:4px;font-size:13px;}
  .deadline-review-tag-label{font-size:11px;}
  .deadline-mode-compare{grid-template-columns:1fr;}
  .deadline-mode-compare strong{font-size:14px;}
  .deadline-mode-action-btn{width:100%;font-size:13px!important;}
}
.deadline-plan-save{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin:0 0 14px;
  padding:13px 15px;
  border:1px solid var(--line);
}
.deadline-plan-save-copy{min-width:0;}
.deadline-plan-save-copy small{
  display:block;
  font-size:9px;
  font-weight:800;
  letter-spacing:.08em;
  color:var(--muted);
}
.deadline-plan-save-copy strong{
  display:block;
  margin-top:3px;
  font-size:14px;
  line-height:1.25;
}
.deadline-plan-save-copy span{
  display:block;
  margin-top:4px;
  color:var(--text2);
  font-size:10px;
  line-height:1.4;
}
.deadline-plan-save.is-saved{
  border-color:rgba(28,166,107,.28);
  background:rgba(28,166,107,.05);
}
.deadline-plan-save.is-changed{
  border-color:rgba(255,116,24,.32);
  background:rgba(255,116,24,.05);
}
.deadline-plan-save.is-main-only{opacity:.78;}
 .deadline-plan-save-actions{display:flex;align-items:center;gap:10px;flex:0 0 auto;}
.deadline-final-chip-wrap{display:flex;align-items:center;gap:7px;padding:6px 9px;border:1px solid var(--line);border-radius:12px;background:var(--panel2);}
.deadline-final-chip-wrap>span{font-size:10px;font-weight:900;letter-spacing:.05em;text-transform:uppercase;color:var(--muted);white-space:nowrap;}
.deadline-final-chip-wrap select{min-height:30px;border:0;background:transparent;color:var(--text);font:inherit;font-size:12px;font-weight:800;outline:none;cursor:pointer;}
.deadline-final-chip-wrap select:disabled{cursor:not-allowed;opacity:.65;}
#deadline-plan-save-btn{flex:0 0 auto;white-space:nowrap;border-radius:999px!important;}
.builder-gw-plan-status{color:#1ca66b!important;opacity:1!important;font-weight:800;}
@media(max-width:720px){
  .deadline-plan-save{align-items:flex-start;flex-direction:column;}
  .deadline-plan-save-actions{width:100%;display:grid;grid-template-columns:1fr;gap:8px;}
  .deadline-final-chip-wrap{justify-content:space-between;width:100%;}
  .deadline-final-chip-wrap>span{font-size:11px;}
  .deadline-final-chip-wrap select{font-size:13px;}
  #deadline-plan-save-btn{width:100%;}
}
.what-changed-row-main{min-width:0;}
.what-changed-why-actions{display:flex;align-items:center;margin-top:8px;}
.what-changed-why-btn.fpl-pill-btn{
  min-height:25px!important;
  padding:4px 10px!important;
  font-size:9px!important;
  font-weight:800!important;
  letter-spacing:.02em!important;
  border-radius:999px!important;
}
.what-changed-why{
  margin-top:8px;
  padding:9px 10px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--panel);
}
.what-changed-why[hidden]{display:none!important;}
.what-changed-why>small{
  display:block;
  margin-bottom:6px;
  color:var(--muted);
  font-size:8px;
  font-weight:900;
  letter-spacing:.07em;
}
.what-changed-why>div{display:grid;gap:5px;}
.what-changed-why span{
  position:relative;
  display:block;
  padding-left:11px;
  color:var(--text2);
  font-size:10px;
  line-height:1.4;
}
.what-changed-why span::before{
  content:'•';
  position:absolute;
  left:1px;
  top:0;
  color:var(--accent);
  font-weight:900;
}
.linked-team-card{
  padding-top:28px;
}
.linked-team-current{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-top:18px;
  padding:12px 14px;
  border:1px solid var(--border);
  border-radius:12px;
  background:var(--panel2);
}
.linked-team-current span{
  font-size:.74rem;
  font-weight:800;
  color:var(--muted);
}
.linked-team-current strong{
  font-size:.86rem;
  text-align:right;
}
.linked-team-form{
  margin-top:16px;
}
.linked-team-form label{
  display:block;
  margin-bottom:7px;
  font-size:.76rem;
  font-weight:850;
}
.linked-team-form input{
  width:100%;
  min-height:46px;
  padding:10px 12px;
  border:1px solid var(--border);
  border-radius:12px;
  background:var(--panel2);
  color:var(--text);
  font:inherit;
}
.linked-team-form input:focus{
  outline:2px solid color-mix(in srgb,var(--accent) 58%,transparent);
  outline-offset:1px;
  border-color:var(--accent);
}
.linked-team-form input:disabled{
  opacity:.55;
  cursor:not-allowed;
}
.linked-team-note{
  margin:9px 0 0;
  font-size:.72rem;
  line-height:1.45;
  color:var(--muted);
}
.linked-team-status{
  min-height:20px;
  margin:10px 0 0;
}
.linked-team-status.error{
  color:#d84a4a;
}
.linked-team-actions{
  margin-top:14px;
}
@media(max-width:520px){
  .linked-team-current{align-items:flex-start;flex-direction:column;}
  .linked-team-current strong{text-align:left;}
  .linked-team-actions{grid-template-columns:1fr;}
}
.squad-weak-spot-actions{
  position:absolute;
  left:50%;
  top:-9px;
  z-index:9;
  transform:translateX(-50%);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  max-width:calc(100% - 8px);
}
.squad-weak-spot-badge{
  position:relative;
  flex:0 0 22px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:22px;
  height:22px;
  min-width:22px;
  min-height:22px;
  padding:0;
  border:1px solid transparent;
  border-radius:7px;
  box-shadow:0 3px 10px rgba(0,0,0,.18);
  cursor:pointer;
  transition:transform .15s ease,box-shadow .15s ease,filter .15s ease;
}
.squad-weak-spot-badge svg{
  display:block;
  width:13px;
  height:13px;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
  pointer-events:none;
}
.squad-weak-spot-badge:hover,
.squad-weak-spot-badge:focus-visible{
  transform:translateY(-1px) scale(1.05);
  box-shadow:0 5px 13px rgba(0,0,0,.24);
}
.squad-weak-spot-badge.is-priority{background:var(--danger);border-color:var(--danger);color:#fff;}
.squad-weak-spot-badge.is-watch{background:var(--accent);border-color:var(--accent-dark);color:var(--on-accent);}
.squad-weak-spot-badge.is-stable{background:var(--ok-solid);border-color:var(--ok-solid-line);color:var(--on-ok);}
.squad-weak-spot-dialog{width:min(92vw,480px);max-width:480px;max-height:min(86vh,680px);padding:0;border:1px solid var(--line);border-radius:18px;background:var(--panel);color:var(--text);box-shadow:var(--shadow-lg);overflow:auto;}
.squad-weak-spot-dialog::backdrop{background:var(--scrim);backdrop-filter:blur(2px);}
.squad-weak-spot-dialog-card{padding:24px;}
.squad-weak-spot-dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;}
.squad-weak-spot-dialog-head h3{margin:5px 0 0;font-size:1.22rem;}
.squad-weak-spot-status{display:inline-flex;align-items:center;margin-top:18px;padding:6px 10px;border:1px solid transparent;border-radius:999px;font-size:10px;font-weight:900;letter-spacing:.055em;}
.squad-weak-spot-status.is-priority{background:var(--danger-tint);border-color:var(--warn-line);color:var(--danger);}
.squad-weak-spot-status.is-watch{background:var(--accent-tint);border-color:var(--accent-line);color:var(--accent-dark);}
.squad-weak-spot-status.is-stable{background:var(--ok-tint);border-color:var(--ok-line);color:var(--ok);}
.squad-weak-spot-reasons{display:grid;gap:8px;margin-top:14px;}
.squad-weak-spot-reasons>div{display:grid;grid-template-columns:12px minmax(0,1fr);gap:6px;align-items:start;padding:9px 10px;border:1px solid var(--line);border-radius:10px;background:var(--panel2);}
.squad-weak-spot-reasons span{color:var(--accent);font-weight:900;line-height:1.35;}
.squad-weak-spot-reasons p{margin:0;color:var(--text2);font-size:.82rem;line-height:1.42;}
.squad-weak-spot-note{margin:14px 0 0;color:var(--muted);font-size:.74rem;line-height:1.45;}
@media(max-width:720px){
  .squad-weak-spot-actions{top:-7px;gap:3px;}
  .squad-weak-spot-badge{width:21px;height:21px;min-width:21px;min-height:21px;flex-basis:21px;}
  .squad-weak-spot-badge svg{width:12px;height:12px;}
  .squad-weak-spot-dialog-card{padding:20px;}
}
.post-gw-review-dialog{width:min(96vw,1040px)!important;max-height:min(90vh,900px);overflow:auto;}
.post-gw-review-head{margin-bottom:12px;}
.post-gw-review-head h2{margin:2px 0 3px;}
.post-gw-review-event-wrap{display:flex;align-items:center;gap:7px;padding:5px 8px;border:1px solid var(--line);border-radius:999px;background:var(--panel);}
.post-gw-review-event-wrap span{font-size:10px;font-weight:900;letter-spacing:.06em;color:var(--muted);text-transform:uppercase;}
.post-gw-review-event-wrap select{border:0;background:transparent;color:var(--text);font:inherit;font-size:12px;font-weight:800;outline:none;cursor:pointer;}
.post-gw-review-summary{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 12px;padding:15px 17px;}
.post-gw-review-summary small{display:block;font-size:10px;font-weight:900;letter-spacing:.08em;color:var(--muted);}
.post-gw-review-summary strong{display:block;margin-top:3px;font-size:19px;line-height:1.15;}
.post-gw-review-summary span{display:block;margin-top:4px;color:var(--text2);font-size:13px;line-height:1.4;}
.post-gw-review-summary.is-good{border-color:rgba(28,166,107,.30);background:rgba(28,166,107,.06);}
.post-gw-review-summary.is-mixed{border-color:rgba(255,116,24,.30);background:rgba(255,116,24,.06);}
.post-gw-review-summary.is-review{border-color:rgba(196,56,56,.28);background:rgba(196,56,56,.05);}
.post-gw-review-result-tags{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px;max-width:52%;}
.post-gw-review-result-tags b{display:inline-flex;min-height:27px;align-items:center;padding:5px 9px;border:1px solid var(--line);border-radius:999px;background:var(--panel);font-size:11px;line-height:1.25;}
.post-gw-review-grid{display:grid;gap:10px;}
.post-gw-review-three-way{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;}
.post-gw-review-three-way article{margin:0;padding:13px 14px;}
.post-gw-review-three-way small{display:block;margin-bottom:5px;color:var(--muted);font-size:10px;font-weight:900;letter-spacing:.07em;}
.post-gw-review-three-way strong{display:block;color:var(--text2);font-size:12px;line-height:1.45;}
.post-gw-review-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
.post-gw-review-card{margin:0;padding:14px 15px;min-width:0;}
.post-gw-review-card.is-good{border-color:rgba(28,166,107,.25);}
.post-gw-review-card.is-mixed{border-color:rgba(255,116,24,.28);}
.post-gw-review-card.is-review{border-color:rgba(196,56,56,.26);}
.post-gw-review-card.is-ungraded{border-color:var(--line);}
.post-gw-review-card.is-context{border-color:var(--line);background:var(--panel);}
.post-gw-review-card.is-context .post-gw-review-card-head b{color:var(--text2);border-color:var(--line);background:var(--panel2);}
.post-gw-review-card-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:7px;}
.post-gw-review-card-head span{font-size:10px;font-weight:900;letter-spacing:.07em;color:var(--muted);}
.post-gw-review-card-head b{display:inline-flex;align-items:center;min-height:23px;padding:4px 8px;border:1px solid var(--line);border-radius:999px;font-size:9px;letter-spacing:.04em;}
.post-gw-review-card.is-good .post-gw-review-card-head b{color:var(--ok);border-color:var(--ok-line);background:var(--ok-tint);}
.post-gw-review-card.is-mixed .post-gw-review-card-head b{color:var(--accent-dark);border-color:var(--accent-line);background:var(--accent-tint);}
.post-gw-review-card.is-review .post-gw-review-card-head b{color:var(--danger);border-color:var(--warn-line);background:var(--danger-tint);}
.post-gw-review-card h3{margin:0;font-size:16px;line-height:1.25;overflow-wrap:anywhere;}
.post-gw-review-card p{margin:6px 0 0;color:var(--text2);font-size:13px;line-height:1.45;}
.post-gw-review-card>small{display:block;margin-top:8px;padding-top:8px;border-top:1px solid var(--line);color:var(--muted);font-size:11px;line-height:1.45;}
.post-gw-review-card-compare{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:11px;}
.post-gw-review-card-compare>div{min-width:0;padding:9px 10px;border:1px solid var(--line);border-radius:10px;background:var(--panel2);}
.post-gw-review-card-compare small,.post-gw-review-outcome small{display:block;margin-bottom:4px;color:var(--muted);font-size:10px;font-weight:900;letter-spacing:.06em;}
.post-gw-review-card-compare strong{display:block;color:var(--text);font-size:12px;line-height:1.4;overflow-wrap:anywhere;}
.post-gw-review-change{margin-top:9px;padding:8px 10px;border:1px solid var(--line);border-radius:10px;background:var(--soft);font-size:12px;font-weight:800;line-height:1.4;}
.post-gw-review-outcome{margin-top:9px;padding-top:9px;border-top:1px solid var(--line);}
.post-gw-review-outcome span{display:block;color:var(--text2);font-size:12px;line-height:1.5;}
.post-gw-review-footnote{margin:2px 1px 0;padding:11px 13px;border:1px solid var(--line);border-radius:10px;color:var(--text2);font-size:12px;line-height:1.5;}
.post-gw-review-footnote strong{color:var(--text);}
.post-gw-review-launch-btn{border-radius:14px;}
@media(max-width:780px){
  .post-gw-review-summary{align-items:flex-start;flex-direction:column;}
  .post-gw-review-result-tags{justify-content:flex-start;max-width:none;}
  .post-gw-review-three-way,.post-gw-review-cards{grid-template-columns:1fr;}
}
@media(max-width:560px){
  .post-gw-review-head .builder-tool-head-actions{align-items:flex-end;}
  .post-gw-review-event-wrap span{display:none;}
  .post-gw-review-card{padding:13px;}
  .post-gw-review-card p{font-size:14px;}
  .post-gw-review-card-compare{grid-template-columns:1fr;}
  .post-gw-review-card-compare strong,.post-gw-review-change,.post-gw-review-outcome span{font-size:13px;}
  .post-gw-review-footnote{font-size:13px;}
}
.what-changed-panel{
  display:block;
  margin:14px 0 16px;
  padding:15px 16px;
}
.what-changed-trigger-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
}
.what-changed-trigger-head>div{min-width:0;}
.what-changed-trigger-head h2{margin:2px 0 3px;font-size:18px;line-height:1.2;}
.what-changed-trigger-head p{
  margin:0;
  max-width:520px;
  color:var(--muted);
  font-size:10px;
  line-height:1.4;
}
.what-changed-open-btn{
  margin-top:11px;
  min-height:30px!important;
  padding:6px 12px!important;
  border-radius:999px!important;
  font-size:10px!important;
  font-weight:800!important;
}
#preseason .player-pool-column > .what-changed-panel{
  margin:0 0 12px!important;
  width:100%;
}

.what-changed-dialog{
  width:min(760px,calc(100% - 28px));
  max-height:88vh;
  overflow:hidden!important;
}
.what-changed-dialog .what-changed-dialog-shell{
  position:relative;
  padding:0!important;
  height:min(82vh,780px)!important;
  max-height:88vh!important;
  display:flex!important;
  flex-direction:column!important;
  overflow:hidden!important;
}
.what-changed-dialog .what-changed-dialog-head{
  position:relative!important;
  flex:0 0 auto!important;
  z-index:15!important;
  padding:20px 54px 16px 24px!important;
  border-bottom:1px solid var(--line)!important;
  background:var(--panel)!important;
  box-shadow:0 5px 14px rgba(17,24,39,.05)!important;
}
.what-changed-dialog .what-changed-dialog-head>.player-profile-close-style{
  position:absolute!important;
  top:12px!important;
  right:12px!important;
  z-index:20!important;
}
.what-changed-dialog-title-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
}
.what-changed-dialog-title-row>div{min-width:0;}
.what-changed-dialog-title-row h2{
  margin:3px 0 5px;
  font-size:30px;
  line-height:1.08;
  letter-spacing:-.03em;
}
.what-changed-dialog-title-row p{
  margin:0;
  color:var(--muted);
  font-size:11px;
  line-height:1.45;
}
.what-changed-dialog .what-changed-dialog-scroll{
  flex:1 1 auto!important;
  min-height:0!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  padding:18px 24px 24px!important;
  overscroll-behavior:contain!important;
}
.what-changed-dialog .what-changed-list{
  display:grid;
  grid-template-columns:1fr;
  gap:9px;
}
.what-changed-dialog .what-changed-row{
  padding:13px 14px;
  background:var(--soft);
}
.what-changed-dialog .what-changed-row strong{font-size:13px;line-height:1.35;}
.what-changed-dialog .what-changed-row p{font-size:11px;line-height:1.45;}
.what-changed-dialog .what-changed-why{background:var(--panel);}

@media(max-width:650px){
  .what-changed-trigger-head{gap:10px;}
  .what-changed-dialog .what-changed-dialog-shell{height:90vh!important;max-height:90vh!important;}
  .what-changed-dialog .what-changed-dialog-head{padding:18px 48px 14px 18px!important;}
  .what-changed-dialog-title-row{flex-direction:column;gap:10px;}
  .what-changed-dialog-title-row h2{font-size:25px;}
  .what-changed-dialog .what-changed-dialog-scroll{padding:14px 18px 18px!important;}
  .what-changed-dialog .what-changed-row{grid-template-columns:1fr;gap:7px;}
  .what-changed-dialog .what-changed-kind{justify-self:start;}
}
.what-changed-trigger-action{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  min-height:30px;
}
.what-changed-trigger-action .what-changed-open-btn{
  margin-top:0!important;
}
.what-changed-trigger-action [hidden]{
  display:none!important;
}
/* Match the shared bench metadata component used with the squad pitches. */
.bench-player-info-compact-meta strong,
.bench-player-info-compact-meta .bench-club,
.bench-player-info-compact-meta .bench-price,
.bench-player-info-compact-meta .bench-fixture,
.bench-player-info-compact-meta .bench-xpts,
.bench-player-info-compact-meta .bench-coach-score,
.bench-player-info-compact-meta .bench-price b,
.bench-player-info-compact-meta .bench-fixture b,
.bench-player-info-compact-meta .bench-xpts b,
.bench-player-info-compact-meta .bench-coach-score b{
  background:transparent!important;
  border-color:transparent!important;
  box-shadow:none!important;
  color:#111!important;
  text-shadow:none!important;
}
#pitch .pitch-player .pitch-player-namebox,
#pitch .pitch-player .pitch-player-name,
#pitch .pitch-player .pitch-player-club-inline,
#pitch .pitch-player .player-price,
#pitch .pitch-player .player-fixture,
#pitch .pitch-player .player-xpts,
#pitch .pitch-player .player-coach-score,
#suggested-squad-pitch .pitch-player .pitch-player-namebox,
#suggested-squad-pitch .pitch-player .pitch-player-name,
#suggested-squad-pitch .pitch-player .pitch-player-club-inline,
#suggested-squad-pitch .pitch-player .player-price,
#suggested-squad-pitch .pitch-player .player-fixture,
#suggested-squad-pitch .pitch-player .player-xpts,
#suggested-squad-pitch .pitch-player .player-coach-score,
#preseason #builder-team-view #builder-live-pitch .pitch-player .pitch-player-namebox,
#preseason #builder-team-view #builder-live-pitch .pitch-player .pitch-player-name,
#preseason #builder-team-view #builder-live-pitch .pitch-player .pitch-player-club-inline,
#preseason #builder-team-view #builder-live-pitch .pitch-player .player-price,
#preseason #builder-team-view #builder-live-pitch .pitch-player .player-fixture,
#preseason #builder-team-view #builder-live-pitch .pitch-player .player-xpts,
#preseason #builder-team-view #builder-live-pitch .pitch-player .player-coach-score,
#preseason #builder-analysis #builder-pitch .pitch-player .pitch-player-namebox,
#preseason #builder-analysis #builder-pitch .pitch-player .pitch-player-name,
#preseason #builder-analysis #builder-pitch .pitch-player .pitch-player-club-inline,
#preseason #builder-analysis #builder-pitch .pitch-player .player-price,
#preseason #builder-analysis #builder-pitch .pitch-player .player-fixture,
#preseason #builder-analysis #builder-pitch .pitch-player .player-xpts,
#preseason #builder-analysis #builder-pitch .pitch-player .player-coach-score{
  background:transparent!important;
  border-color:transparent!important;
  box-shadow:none!important;
  color:#111!important;
  text-shadow:none!important;
}
#pitch .pitch-player :is(.pitch-player-name,.pitch-player-club-inline,.player-price,.player-fixture,.player-xpts,.player-coach-score) b,
#suggested-squad-pitch .pitch-player :is(.pitch-player-name,.pitch-player-club-inline,.player-price,.player-fixture,.player-xpts,.player-coach-score) b,
#preseason #builder-team-view #builder-live-pitch .pitch-player :is(.pitch-player-name,.pitch-player-club-inline,.player-price,.player-fixture,.player-xpts,.player-coach-score) b,
#preseason #builder-analysis #builder-pitch .pitch-player :is(.pitch-player-name,.pitch-player-club-inline,.player-price,.player-fixture,.player-xpts,.player-coach-score) b{
  color:#111!important;
  text-shadow:none!important;
}
#pitch .pitch-player:hover .pitch-player-namebox,
#suggested-squad-pitch .pitch-player:hover .pitch-player-namebox,
#preseason #builder-team-view #builder-live-pitch .pitch-player:hover .pitch-player-namebox,
#preseason #builder-analysis #builder-pitch .pitch-player:hover .pitch-player-namebox{
  box-shadow:none!important;
}

.pitch-player:hover .pitch-player-namebox,
.pitch-player:hover .pitch-player-name,
.pitch-player:hover .pitch-player-club-inline{
  transform:none!important;
}
.pitch-player{
  isolation:isolate;
}
.pitch-player::after{
  content:"";
  position:absolute;
  left:10%;
  right:10%;
  bottom:-8px;
  height:12px;
  border-radius:50%;
  background:radial-gradient(ellipse at center,rgba(20,20,20,.20) 0%,rgba(20,20,20,.10) 40%,rgba(20,20,20,0) 74%);
  opacity:0;
  transform:scale(.88);
  transform-origin:center;
  transition:opacity .15s ease,transform .15s ease;
  pointer-events:none;
  z-index:-1;
}
.pitch-player:hover::after{
  opacity:1;
  transform:scale(1);
}
#preseason #builder-team-view #builder-live-pitch.pitch.unified-squad-player-design .pitch-player-label,
#preseason #builder-analysis #builder-pitch.pitch.unified-squad-player-design .pitch-player-label,
#preseason .squad-workspace-main #builder-team-view.compact-squad-layout .pitch.unified-squad-player-design .pitch-player-label{
  width:auto!important;
  min-width:0!important;
  max-width:100%!important;
  margin:0 auto!important;
  padding:0!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:flex-start!important;
  row-gap:0!important;
  column-gap:0!important;
}
#preseason #builder-team-view #builder-live-pitch.pitch.unified-squad-player-design .pitch-player-label-compact-meta .pitch-player-namebox,
#preseason #builder-analysis #builder-pitch.pitch.unified-squad-player-design .pitch-player-label-compact-meta .pitch-player-namebox,
#preseason .squad-workspace-main #builder-team-view.compact-squad-layout .pitch.unified-squad-player-design .pitch-player-label-compact-meta .pitch-player-namebox{
  width:auto!important;
  min-width:0!important;
  max-width:100%!important;
  margin:0 auto!important;
  padding:0!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:flex-start!important;
}
#preseason #builder-team-view #builder-live-pitch.pitch.unified-squad-player-design .pitch-player .pitch-player-name-line .pitch-player-name,
#preseason #builder-analysis #builder-pitch.pitch.unified-squad-player-design .pitch-player .pitch-player-name-line .pitch-player-name,
#preseason .squad-workspace-main #builder-team-view.compact-squad-layout .pitch.unified-squad-player-design .pitch-player .pitch-player-name-line .pitch-player-name{
  min-width:0!important;
  font-size:var(--squad-name-size)!important;
  line-height:var(--squad-name-line)!important;
  font-weight:var(--squad-name-weight)!important;
}
#preseason #builder-team-view #builder-live-pitch.pitch.unified-squad-player-design .pitch-player-label-compact-meta .pitch-player-namebox .pitch-player-club-inline,
#preseason #builder-analysis #builder-pitch.pitch.unified-squad-player-design .pitch-player-label-compact-meta .pitch-player-namebox .pitch-player-club-inline,
#preseason .squad-workspace-main #builder-team-view.compact-squad-layout .pitch.unified-squad-player-design .pitch-player-label-compact-meta .pitch-player-namebox .pitch-player-club-inline{
  display:block!important;
  width:auto!important;
  min-width:0!important;
  max-width:100%!important;
  padding:0!important;
  font-size:var(--squad-club-size)!important;
  line-height:var(--squad-club-line)!important;
  font-weight:var(--squad-club-weight)!important;
  text-align:center!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
#preseason #builder-team-view #builder-live-pitch.pitch.unified-squad-player-design .pitch-player-label-compact-meta .pitch-player-primary-meta,
#preseason #builder-analysis #builder-pitch.pitch.unified-squad-player-design .pitch-player-label-compact-meta .pitch-player-primary-meta,
#preseason .squad-workspace-main #builder-team-view.compact-squad-layout .pitch.unified-squad-player-design .pitch-player-label-compact-meta .pitch-player-primary-meta{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:auto!important;
  min-width:0!important;
  max-width:100%!important;
  margin:2px auto 0!important;
  position:relative!important;
}
#preseason #builder-team-view #builder-live-pitch.pitch.unified-squad-player-design .pitch-player-label-compact-meta .pitch-player-primary-meta :is(.player-price,.player-fixture,.player-xpts),
#preseason #builder-team-view #builder-live-pitch.pitch.unified-squad-player-design .pitch-player-label-compact-meta .pitch-player-secondary-meta .player-coach-score,
#preseason #builder-analysis #builder-pitch.pitch.unified-squad-player-design .pitch-player-label-compact-meta .pitch-player-primary-meta :is(.player-price,.player-fixture,.player-xpts),
#preseason #builder-analysis #builder-pitch.pitch.unified-squad-player-design .pitch-player-label-compact-meta .pitch-player-secondary-meta .player-coach-score,
#preseason .squad-workspace-main #builder-team-view.compact-squad-layout .pitch.unified-squad-player-design .pitch-player-label-compact-meta .pitch-player-primary-meta :is(.player-price,.player-fixture,.player-xpts),
#preseason .squad-workspace-main #builder-team-view.compact-squad-layout .pitch.unified-squad-player-design .pitch-player-label-compact-meta .pitch-player-secondary-meta .player-coach-score{
  position:static!important;
  left:auto!important;
  top:auto!important;
  transform:none!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:auto!important;
  min-width:0!important;
  max-width:none!important;
  margin:0!important;
  font-size:var(--squad-meta-size)!important;
  line-height:var(--squad-meta-line)!important;
  font-weight:700!important;
  white-space:nowrap!important;
}
@media(max-width:700px){
  #preseason #builder-team-view #builder-live-pitch.pitch.unified-squad-player-design .pitch-player .pitch-player-name-line .pitch-player-name,
  #preseason #builder-analysis #builder-pitch.pitch.unified-squad-player-design .pitch-player .pitch-player-name-line .pitch-player-name,
  #preseason .squad-workspace-main #builder-team-view.compact-squad-layout .pitch.unified-squad-player-design .pitch-player .pitch-player-name-line .pitch-player-name{font-size:var(--squad-name-size-mobile)!important;}
  #preseason #builder-team-view #builder-live-pitch.pitch.unified-squad-player-design .pitch-player-label-compact-meta .pitch-player-namebox .pitch-player-club-inline,
  #preseason #builder-analysis #builder-pitch.pitch.unified-squad-player-design .pitch-player-label-compact-meta .pitch-player-namebox .pitch-player-club-inline,
  #preseason .squad-workspace-main #builder-team-view.compact-squad-layout .pitch.unified-squad-player-design .pitch-player-label-compact-meta .pitch-player-namebox .pitch-player-club-inline,
#preseason #builder-team-view #builder-live-pitch.pitch.unified-squad-player-design .pitch-player-label-compact-meta .pitch-player-primary-meta :is(.player-price,.player-fixture,.player-xpts),
  #preseason #builder-team-view #builder-live-pitch.pitch.unified-squad-player-design .pitch-player-label-compact-meta .pitch-player-secondary-meta .player-coach-score,
  #preseason #builder-analysis #builder-pitch.pitch.unified-squad-player-design .pitch-player-label-compact-meta .pitch-player-primary-meta :is(.player-price,.player-fixture,.player-xpts),
  #preseason #builder-analysis #builder-pitch.pitch.unified-squad-player-design .pitch-player-label-compact-meta .pitch-player-secondary-meta .player-coach-score,
  #preseason .squad-workspace-main #builder-team-view.compact-squad-layout .pitch.unified-squad-player-design .pitch-player-label-compact-meta .pitch-player-primary-meta :is(.player-price,.player-fixture,.player-xpts),
  #preseason .squad-workspace-main #builder-team-view.compact-squad-layout .pitch.unified-squad-player-design .pitch-player-label-compact-meta .pitch-player-secondary-meta .player-coach-score{font-size:var(--squad-meta-size-mobile)!important;}
}

/* Name -> club = 1px. Club -> primary row = 1px + 2px row margin. */
#preseason #builder-team-view #builder-live-pitch.pitch.unified-squad-player-design .pitch-player-label-compact-meta .pitch-player-namebox .pitch-player-name,
#preseason #builder-analysis #builder-pitch.pitch.unified-squad-player-design .pitch-player-label-compact-meta .pitch-player-namebox .pitch-player-name,
#preseason .squad-workspace-main #builder-team-view.compact-squad-layout .pitch.unified-squad-player-design .pitch-player-label-compact-meta .pitch-player-namebox .pitch-player-name{
  margin-bottom:var(--squad-name-club-gap)!important;
}
#preseason #builder-team-view #builder-live-pitch.pitch.unified-squad-player-design .pitch-player-label-compact-meta .pitch-player-namebox .pitch-player-club-inline,
#preseason #builder-analysis #builder-pitch.pitch.unified-squad-player-design .pitch-player-label-compact-meta .pitch-player-namebox .pitch-player-club-inline,
#preseason .squad-workspace-main #builder-team-view.compact-squad-layout .pitch.unified-squad-player-design .pitch-player-label-compact-meta .pitch-player-namebox .pitch-player-club-inline{
  margin:0 0 1px!important;
}

/* Bench rhythm: 8px between value / fixture / xP. */
#preseason #builder-team-view #builder-live-pitch.pitch.unified-squad-player-design .pitch-player-label-compact-meta .pitch-player-primary-meta,
#preseason #builder-analysis #builder-pitch.pitch.unified-squad-player-design .pitch-player-label-compact-meta .pitch-player-primary-meta,
#preseason .squad-workspace-main #builder-team-view.compact-squad-layout .pitch.unified-squad-player-design .pitch-player-label-compact-meta .pitch-player-primary-meta{
  gap:var(--squad-primary-gap)!important;
  margin-top:var(--squad-row-gap)!important;
}

/* Remove the old pitch pill geometry completely. */
#preseason #builder-team-view #builder-live-pitch.pitch.unified-squad-player-design .pitch-player-label-compact-meta .pitch-player-primary-meta :is(.player-price,.player-fixture,.player-xpts),
#preseason #builder-team-view #builder-live-pitch.pitch.unified-squad-player-design .pitch-player-label-compact-meta .pitch-player-secondary-meta .player-coach-score,
#preseason #builder-analysis #builder-pitch.pitch.unified-squad-player-design .pitch-player-label-compact-meta .pitch-player-primary-meta :is(.player-price,.player-fixture,.player-xpts),
#preseason #builder-analysis #builder-pitch.pitch.unified-squad-player-design .pitch-player-label-compact-meta .pitch-player-secondary-meta .player-coach-score,
#preseason .squad-workspace-main #builder-team-view.compact-squad-layout .pitch.unified-squad-player-design .pitch-player-label-compact-meta .pitch-player-primary-meta :is(.player-price,.player-fixture,.player-xpts),
#preseason .squad-workspace-main #builder-team-view.compact-squad-layout .pitch.unified-squad-player-design .pitch-player-label-compact-meta .pitch-player-secondary-meta .player-coach-score{
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  color:#111!important;
  overflow:visible!important;
  text-overflow:clip!important;
}
#preseason #builder-team-view #builder-live-pitch.pitch.unified-squad-player-design .pitch-player-label-compact-meta .pitch-player-secondary-meta,
#preseason #builder-analysis #builder-pitch.pitch.unified-squad-player-design .pitch-player-label-compact-meta .pitch-player-secondary-meta,
#preseason .squad-workspace-main #builder-team-view.compact-squad-layout .pitch.unified-squad-player-design .pitch-player-label-compact-meta .pitch-player-secondary-meta{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:auto!important;
  min-width:0!important;
  max-width:100%!important;
  gap:3px!important;
  margin:2px auto 0!important;
  padding:0!important;
  position:static!important;
  left:auto!important;
  transform:none!important;
}
#preseason #builder-team-view #builder-live-pitch.pitch.unified-squad-player-design .pitch-player-label-compact-meta .pitch-player-secondary-meta .player-coach-score,
#preseason #builder-analysis #builder-pitch.pitch.unified-squad-player-design .pitch-player-label-compact-meta .pitch-player-secondary-meta .player-coach-score,
#preseason .squad-workspace-main #builder-team-view.compact-squad-layout .pitch.unified-squad-player-design .pitch-player-label-compact-meta .pitch-player-secondary-meta .player-coach-score{
  flex:0 0 auto!important;
}
#preseason #builder-team-view #builder-live-pitch.pitch.unified-squad-player-design .pitch-player .pitch-player-name-line,
#preseason #builder-analysis #builder-pitch.pitch.unified-squad-player-design .pitch-player .pitch-player-name-line,
#preseason .squad-workspace-main #builder-team-view.compact-squad-layout .pitch.unified-squad-player-design .pitch-player .pitch-player-name-line{
  position:relative!important;
  display:inline-block!important;
  width:auto!important;
  min-width:0!important;
  max-width:100%!important;
  margin:0 auto!important;
  padding:0!important;
  text-align:center!important;
}
#preseason #builder-team-view #builder-live-pitch.pitch.unified-squad-player-design .pitch-player .pitch-player-name-line .pitch-player-name,
#preseason #builder-analysis #builder-pitch.pitch.unified-squad-player-design .pitch-player .pitch-player-name-line .pitch-player-name,
#preseason .squad-workspace-main #builder-team-view.compact-squad-layout .pitch.unified-squad-player-design .pitch-player .pitch-player-name-line .pitch-player-name{
  display:block!important;
  width:auto!important;
  margin:0 0 1px!important;
  padding:0!important;
  text-align:center!important;
}
#preseason #builder-team-view #builder-live-pitch.pitch.unified-squad-player-design .pitch-player .pitch-name-role.captain-mark,
#preseason #builder-team-view #builder-live-pitch.pitch.unified-squad-player-design .pitch-player .pitch-name-role.vice-mark,
#preseason #builder-analysis #builder-pitch.pitch.unified-squad-player-design .pitch-player .pitch-name-role.captain-mark,
#preseason #builder-analysis #builder-pitch.pitch.unified-squad-player-design .pitch-player .pitch-name-role.vice-mark,
#preseason .squad-workspace-main #builder-team-view.compact-squad-layout .pitch.unified-squad-player-design .pitch-player .pitch-name-role.captain-mark,
#preseason .squad-workspace-main #builder-team-view.compact-squad-layout .pitch.unified-squad-player-design .pitch-player .pitch-name-role.vice-mark{
  position:absolute!important;
  left:calc(100% + 4px)!important;
  right:auto!important;
  top:50%!important;
  transform:translateY(-50%)!important;
  margin:0!important;
  flex:none!important;
  z-index:2!important;
}

/* ========================================================================== 
   Product hierarchy and readability
   ========================================================================== */
#preseason .squad-workspace-main > .builder-tools{
  display:grid;
  gap:10px;
  width:100%;
  margin:10px 0 0;
}
#preseason .squad-workspace-main > .builder-tools .builder-primary-tool{
  display:block;
  width:100%;
}
#preseason .squad-workspace-main > .builder-tools .builder-primary-tool .builder-action-btn{
  width:100%!important;
  min-width:0!important;
  min-height:46px!important;
  height:46px!important;
  border-radius:999px!important;
  padding:0 18px!important;
  font-size:14px!important;
  letter-spacing:.01em;
}
#preseason .squad-workspace-main > .builder-tools > .builder-assistant-tool-row{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(145px,1fr))!important;
  gap:9px!important;
  width:100%!important;
  margin:0!important;
  align-items:center!important;
}
#preseason .squad-workspace-main > .builder-tools > .builder-assistant-tool-row .builder-action-btn{
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  min-height:40px!important;
  height:40px!important;
  padding:0 12px!important;
  border-radius:999px!important;
  white-space:nowrap!important;
  font-size:12px!important;
}
#preseason .squad-workspace-main > .builder-tools > .builder-assistant-tool-row .ghost-btn{
  background:var(--panel)!important;
  color:var(--text2)!important;
  border:1px solid var(--line2)!important;
}
#preseason .squad-workspace-main > .builder-tools > .builder-assistant-tool-row .ghost-btn:hover,
#preseason .squad-workspace-main > .builder-tools > .builder-assistant-tool-row .ghost-btn:focus-visible{
  border-color:var(--accent)!important;
  color:var(--accent)!important;
  background:var(--accent-tint)!important;
}
#builder-post-gw-review-btn[hidden]{display:none!important;}
.builder-utility-actions{
  display:flex;
  justify-content:flex-end;
  align-items:center;
}
.builder-utility-actions .sell-all-builder-btn{
  width:auto!important;
  min-width:0!important;
  min-height:34px!important;
  height:34px!important;
  padding:0 12px!important;
  border-radius:999px!important;
  font-size:11px!important;
  opacity:.78;
}
.builder-utility-actions .sell-all-builder-btn:hover,
.builder-utility-actions .sell-all-builder-btn:focus-visible{opacity:1;}
@media(max-width:580px){
  #preseason .squad-workspace-main > .builder-tools > .builder-assistant-tool-row{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  #preseason .squad-workspace-main > .builder-tools > .builder-assistant-tool-row .builder-action-btn{
    min-height:42px!important;
    height:42px!important;
    font-size:12px!important;
  }
  .builder-utility-actions{justify-content:flex-start;}
}
@media(max-width:380px){
  #preseason .squad-workspace-main > .builder-tools > .builder-assistant-tool-row{
    grid-template-columns:1fr!important;
  }
}

/* Explanatory copy must remain comfortably readable. Small labels and badges
   stay compact, but sentences that explain a model or decision do not. */
.player-popup-graph-note,
.player-compare-note,
.season-compare-note,
.intel-action-note,
.account-dialog-head p,
.builder-tool-dialog .builder-tool-head .muted,
.xp-performance-building p,
.xp-outlook-card p,
.xp-explain-card>p,
.transfer-timing>p,
.player-fixture-swing-card p,
.player-fixture-swing-card .fixture-signal-explanation,
.watch-fixture-swing .fixture-signal-explanation,
.decision-card p,
.decision-center-footnote,
.what-changed-row p,
.deadline-mode-card p,
.deadline-mode-card .deadline-detail,
.deadline-mode-footnote,
.deadline-plan-save-copy span,
.post-gw-review-summary span,
.post-gw-review-card p,
.post-gw-review-card>small,
.post-gw-review-footnote,
.squad-weak-spot-note{
  font-size:13px!important;
  line-height:1.5!important;
}
#player-season-trend.season-trend-card p{
  font-size:13px!important;
  line-height:1.5!important;
}
.xp-confidence-line small,
.transfer-timing-xi-bridge span,
.transfer-timing-compare em,
.player-fixture-swing-card .fixture-signal-factors,
.account-privacy-note,
.account-secondary-head p{
  font-size:12px!important;
  line-height:1.45!important;
}
.transfer-reason,
.transfer-roll p,
.chip-reason,
.chip-best-action p,
.season-trend-card p{
  font-size:13px!important;
  line-height:1.5!important;
}
.transfer-xp-driver,
.watch-xp-driver{
  font-size:11px!important;
  line-height:1.45!important;
}
.post-gw-review-three-way strong{
  font-size:12px!important;
  line-height:1.45!important;
}
@media(max-width:580px){
  .player-popup-graph-note,
  .player-compare-note,
  .season-compare-note,
  .intel-action-note,
  .account-dialog-head p,
  .builder-tool-dialog .builder-tool-head .muted,
  .xp-performance-building p,
  .xp-outlook-card p,
  .xp-explain-card>p,
  .transfer-timing>p,
  .player-fixture-swing-card p,
  .player-fixture-swing-card .fixture-signal-explanation,
  .watch-fixture-swing .fixture-signal-explanation,
  .decision-card p,
  .decision-center-footnote,
  .what-changed-row p,
  .deadline-mode-card p,
  .deadline-mode-card .deadline-detail,
  .deadline-mode-footnote,
  .deadline-plan-save-copy span,
  .post-gw-review-summary span,
  .post-gw-review-card p,
  .post-gw-review-card>small,
  .post-gw-review-footnote,
  .squad-weak-spot-note,
  #player-season-trend.season-trend-card p,
  .transfer-reason,
  .transfer-roll p,
  .chip-reason,
  .chip-best-action p,
  .season-trend-card p{
    font-size:14px!important;
    line-height:1.5!important;
  }
  .xp-confidence-line small,
  .transfer-timing-xi-bridge span,
  .transfer-timing-compare em,
  .player-fixture-swing-card .fixture-signal-factors,
  .account-privacy-note,
  .account-secondary-head p{
    font-size:13px!important;
  }
}

/* Compact data remains compact, but core player information and controls stay readable. */
.pool-player-main small{font-size:11px!important;}
.pool-stat-grid small{font-size:10px!important;}
.pool-stat-grid strong{font-size:12px!important;}
.pool-top-extra{font-size:11px!important;line-height:1.4!important;}
.pool-watch-btn,
.pool-compare-btn{font-size:11px!important;min-height:32px!important;padding-inline:10px!important;}
.watch-player-main strong{font-size:13px!important;}
.watch-player-main small{font-size:11px!important;}
.watch-player-metrics small{font-size:10px!important;}
.watch-player-metrics strong{font-size:12px!important;}
.watch-player-metrics em{font-size:10px!important;}
.watch-player-actions button,
.watch-remove-btn{font-size:11px!important;}
.watch-player-age{font-size:10px!important;}
.watch-player-xp-intel small{font-size:9px!important;}
.watch-player-xp-intel em{font-size:9px!important;}
.watch-xp-signal small{font-size:10px!important;}
.player-popup-fixture small{font-size:11px!important;}
.player-popup-graph-value{font-size:11px!important;}
.transfer-controls label{font-size:11px!important;}
.transfer-summary span{font-size:11px!important;}
.transfer-plan-meta{font-size:12px!important;line-height:1.4!important;}
@media(max-width:580px){
  .pool-player-main small,
  .watch-player-main small,
  .player-popup-fixture small,
  .transfer-controls label,
  .transfer-summary span{font-size:12px!important;}
  .pool-stat-grid small,
  .watch-player-metrics small,
  .watch-player-metrics em,
  .watch-xp-signal small{font-size:11px!important;}
  .pool-stat-grid strong,
  .watch-player-metrics strong,
  .transfer-plan-meta{font-size:13px!important;}
}

/* ========================================================================== 
   Phase 2 — connected player flow + Transfer What-If Lab
   ========================================================================== */
.player-popup-flow-actions{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  margin:12px 0 2px;
}
.player-popup-flow-actions .fpl-pill-btn{
  width:100%;
  min-width:0;
  min-height:38px;
  height:auto;
  padding:8px 12px;
  border-radius:999px;
  font-size:12px;
  line-height:1.2;
  white-space:normal;
}
.player-popup-flow-actions .is-selected{
  border-color:var(--accent-line)!important;
  background:var(--accent-tint)!important;
  color:var(--accent-dark)!important;
}
.compare-result-actions{
  grid-column:2/-1;
  display:flex;
  justify-content:flex-end;
  gap:7px;
  flex-wrap:wrap;
}
.compare-result-actions .fpl-pill-btn{
  min-height:32px;
  height:auto;
  padding:6px 11px;
  font-size:11px;
  border-radius:999px;
}
.watch-player-actions button[data-watch-compare]{
  border-color:rgba(122,98,200,.38)!important;
  background:rgba(122,98,200,.08)!important;
  color:#7458b8!important;
}
.watch-player-actions button[data-watch-transfer]{
  border-radius:999px!important;
  min-height:32px!important;
  padding:6px 12px!important;
  font-size:11px!important;
}
.watch-player-actions button[data-watch-compare]{font-size:11px!important;}
.transfer-flow-context{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin:10px 16px 0;
  padding:11px 12px;
  border:1px solid var(--line2);
  border-radius:12px;
  background:var(--panel2);
}
.transfer-flow-context.hidden{display:none!important;}
.transfer-flow-context.is-match{
  border-color:var(--accent-line);
  background:var(--accent-tint);
}
.transfer-flow-context>div{display:flex;flex-direction:column;gap:2px;min-width:0;}
.transfer-flow-context small{
  font-size:9px;
  font-weight:900;
  letter-spacing:.08em;
  color:var(--accent-dark);
}
.transfer-flow-context strong{font-size:13px;color:var(--text);}
.transfer-flow-context span{font-size:12px;line-height:1.45;color:var(--muted);}
.transfer-flow-context button{flex:0 0 auto;min-height:32px;padding:6px 11px;font-size:11px;}
.transfer-what-if-intro{
  margin:0 0 12px!important;
  min-height:0!important;
  font-size:12px!important;
  line-height:1.5!important;
  color:var(--muted)!important;
}
.transfer-what-if-lab .transfer-strategy-card-head{align-items:flex-start;}
.transfer-what-if-lab .transfer-strategy-card-head>div{display:flex;flex-direction:column;gap:2px;min-width:0;}
.transfer-what-if-lab .transfer-strategy-card-head>div>small{
  font-size:9px;
  font-weight:900;
  letter-spacing:.09em;
  color:var(--accent-dark);
}
.transfer-what-if-lab .transfer-strategy-card-head>div>strong{
  font-size:12px;
  color:var(--text);
}
.transfer-strategy-card.has-flow-focus{
  border-color:var(--accent);
  box-shadow:0 0 0 1px var(--accent-line) inset;
}
.transfer-what-if-moves{
  margin:9px 0 10px!important;
  min-height:38px!important;
  font-size:12px!important;
  line-height:1.45!important;
  color:var(--text2)!important;
}
.transfer-what-if-metrics{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:6px;
}
.transfer-what-if-metrics>span{
  min-width:0;
  padding:7px 8px;
  border:1px solid var(--line);
  border-radius:9px;
  background:var(--panel2);
}
.transfer-what-if-metrics small,
.transfer-what-if-metrics strong{display:block;}
.transfer-what-if-metrics small{
  font-size:9px;
  line-height:1.2;
  font-weight:800;
  letter-spacing:.04em;
  color:var(--muted);
}
.transfer-what-if-metrics strong{
  margin-top:3px;
  font-size:12px;
  line-height:1.25;
  color:var(--text);
  overflow-wrap:anywhere;
}
.transfer-what-if-metrics strong.is-positive{color:#24865c;}
.transfer-what-if-metrics strong.is-negative{color:#c94a4a;}
@media(max-width:820px){
  .compare-result-actions{grid-column:1/-1;justify-content:flex-start;}
}
@media(max-width:580px){
  .player-popup-flow-actions{grid-template-columns:1fr 1fr;}
  .player-popup-flow-actions #player-popup-transfer-btn{grid-column:1/-1;}
  .player-popup-flow-actions .fpl-pill-btn{font-size:13px;min-height:40px;}
  .transfer-flow-context{align-items:flex-start;flex-direction:column;margin:10px 12px 0;}
  .transfer-flow-context span{font-size:13px;}
  .transfer-what-if-intro{font-size:13px!important;}
  .transfer-what-if-moves{font-size:13px!important;min-height:0!important;}
  .transfer-what-if-metrics small{font-size:10px;}
  .transfer-what-if-metrics strong{font-size:13px;}
  .compare-result-actions .fpl-pill-btn{font-size:12px;}
}


/* ========================================================================== 
   Mobile workspace navigation + readable 2 x 2 bench
   ========================================================================== */
.mobile-workspace-switch{
  display:none;
}
@media(max-width:1050px){
  .mobile-workspace-switch{
    position:sticky;
    top:84px;
    z-index:16;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:6px;
    margin:14px 0 4px;
    padding:6px;
    border:1px solid var(--line2);
    border-radius:999px;
    background:color-mix(in srgb,var(--panel) 94%,transparent);
    box-shadow:var(--shadow);
    backdrop-filter:blur(14px) saturate(1.08);
  }
  .mobile-workspace-switch-btn{
    min-height:40px;
    padding:8px 14px;
    border:1px solid transparent;
    border-radius:999px;
    background:transparent;
    color:var(--text2);
    font:800 13px/1 var(--display);
    cursor:pointer;
  }
  .mobile-workspace-switch-btn.is-active{
    border-color:var(--ink);
    background:var(--ink);
    color:var(--on-ink);
  }
  .squad-workspace-main .builder-head,
  .player-pool-column .player-pool-head{
    scroll-margin-top:146px;
  }
  #preseason #builder-team-view.compact-squad-layout .builder-bench{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    grid-auto-flow:row!important;
    grid-auto-columns:auto!important;
    row-gap:7px!important;
  }
}
@media(max-width:700px){
  :root{
    --squad-name-size-mobile:12px;
    --squad-club-size-mobile:10px;
    --squad-meta-size-mobile:10px;
  }
}
@media(max-width:580px){
  .mobile-workspace-switch{
    top:80px;
    margin-top:10px;
    padding:5px;
  }
  .mobile-workspace-switch-btn{
    min-height:42px;
    font-size:13px;
  }
  #preseason #builder-team-view.compact-squad-layout .builder-bench{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    grid-auto-flow:row!important;
  }
  #preseason #builder-team-view.compact-squad-layout .bench-player{
    min-height:82px;
    padding-right:6px;
  }
  #preseason #builder-team-view.compact-squad-layout .bench-kit-stack{
    width:78px!important;
    padding-left:24px!important;
  }
  #preseason #builder-team-view.compact-squad-layout .bench-kit-stack .mini-shirt{
    flex-basis:32px!important;
    width:32px!important;
    height:32px!important;
  }
  #preseason #builder-team-view.compact-squad-layout .bench-kit-stack .bench-position-inline{
    font-size:10px!important;
  }
}

/* ========================================================================== 
   Final UI polish — scanability and readable data typography
   ========================================================================== */
/* Player Pool sort control uses product language rather than an ON/OFF switch. */
.best-player-toggle{
  min-height:38px!important;
  padding-inline:12px!important;
  font-size:11px!important;
  line-height:1.2!important;
  white-space:nowrap;
}

/* Watchlist: keep the decision signals, remove card-within-card noise. */
.watch-player-card{gap:10px!important;padding:13px!important;}
.watch-player-xp-intel{
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:7px!important;
}
.watch-player-xp-intel>span{
  padding:9px 8px!important;
  background:var(--panel)!important;
  border-color:var(--line)!important;
}
.watch-player-xp-intel small{font-size:10px!important;line-height:1.25!important;}
.watch-player-xp-intel strong{margin-top:4px!important;font-size:13px!important;line-height:1.25!important;}
.watch-xp-signal{padding:9px 10px!important;gap:9px!important;}
.watch-xp-signal strong{font-size:10px!important;padding:5px 8px!important;}
.watch-xp-signal small{font-size:11px!important;line-height:1.4!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;}
.watch-player-context{
  display:flex;
  flex-wrap:wrap;
  gap:6px 12px;
  padding:2px 1px 0;
  color:var(--muted);
  font-size:11px;
  line-height:1.4;
}
.watch-player-context span{white-space:nowrap;}
.watch-player-actions{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px!important;}
.watch-player-actions button,
.watch-player-actions :is(button[data-watch-profile],.watch-remove-btn){
  min-height:36px!important;
  padding:7px 9px!important;
  font-size:11px!important;
}
.watch-player-age{font-size:11px!important;line-height:1.4!important;}

/* Player Profile data cards: make room for readable labels instead of squeezing to 8px. */
#player-popup-stats,
#player-popup-season-stats,
#player-popup-discipline-penalties,
#player-season-compare{
  grid-auto-rows:minmax(78px,auto)!important;
}
#player-popup-stats > .player-popup-stat,
#player-popup-season-stats > .player-season-stat,
#player-popup-discipline-penalties > .player-discipline-stat,
#player-season-compare > .season-compare-item{
  height:auto!important;
  min-height:78px!important;
  max-height:none!important;
  padding:9px 10px!important;
}
#player-popup-stats > .player-popup-stat small,
#player-popup-season-stats > .player-season-stat small,
#player-popup-discipline-penalties > .player-discipline-stat small,
#player-season-compare > .season-compare-item small{
  font-size:10px!important;
  line-height:1.25!important;
}
#player-popup-stats > .player-popup-stat span,
#player-popup-season-stats > .player-season-stat span,
#player-popup-discipline-penalties > .player-discipline-stat span,
#player-season-compare > .season-compare-item span{
  font-size:10px!important;
  line-height:1.3!important;
}
#player-season-trend.season-trend-card{
  height:auto!important;
  min-height:78px!important;
  padding:9px 10px!important;
  overflow:visible!important;
}
#player-season-trend .season-trend-badge{font-size:10px!important;}

/* Compare and transfer intelligence: labels are compact, not microscopic. */
.compare-metric small,
.compare-total-score small,
.player-season-stat small,
.player-season-stat span{font-size:10px!important;line-height:1.25!important;}
.compare-player-copy small{font-size:11px!important;line-height:1.35!important;}
.player-compare-mode-label{font-size:11px!important;}
.transfer-xp-intel small,
.transfer-xp-intel em{font-size:10px!important;line-height:1.35!important;}
.xp-performance-card-head small,
.xp-performance-metric small,
.xp-performance-metric span{font-size:10px!important;line-height:1.3!important;}
.xp-performance-building p,
.xp-outlook-card p{font-size:13px!important;line-height:1.5!important;}
.xp-explain-head small,
.xp-explain-components small,
.xp-explain-risks>small{font-size:10px!important;line-height:1.3!important;}
.xp-explain-card>p{font-size:13px!important;line-height:1.5!important;}

@media(max-width:760px){
  .watch-player-xp-intel{grid-template-columns:repeat(2,minmax(0,1fr));}
  .watch-player-xp-intel>span:last-child{grid-column:1/-1;}
}
@media(max-width:580px){
  .best-player-toggle{font-size:12px!important;}
  .watch-player-card{padding:12px!important;}
  .watch-player-xp-intel small{font-size:11px!important;}
  .watch-player-xp-intel strong{font-size:14px!important;}
  .watch-xp-signal strong{font-size:11px!important;}
  .watch-xp-signal small,
  .watch-player-context,
  .watch-player-age{font-size:12px!important;}
  .watch-player-actions{grid-template-columns:repeat(2,minmax(0,1fr));}
  .watch-player-actions button,
  .watch-player-actions :is(button[data-watch-profile],.watch-remove-btn){font-size:12px!important;min-height:40px!important;}
  #player-popup-stats > .player-popup-stat small,
  #player-popup-season-stats > .player-season-stat small,
  #player-popup-discipline-penalties > .player-discipline-stat small,
  #player-season-compare > .season-compare-item small,
  #player-popup-stats > .player-popup-stat span,
  #player-popup-season-stats > .player-season-stat span,
  #player-popup-discipline-penalties > .player-discipline-stat span,
  #player-season-compare > .season-compare-item span,
  .compare-metric small,
  .compare-total-score small,
  .player-season-stat small,
  .player-season-stat span,
  .transfer-xp-intel small,
  .transfer-xp-intel em,
  .xp-performance-card-head small,
  .xp-performance-metric small,
  .xp-performance-metric span,
  .xp-explain-head small,
  .xp-explain-components small,
  .xp-explain-risks>small{font-size:11px!important;}
  .compare-player-copy small,
  .player-compare-mode-label{font-size:12px!important;}
  .xp-performance-building p,
  .xp-outlook-card p,
  .xp-explain-card>p{font-size:14px!important;}
}

/* ========================================================================== 
   Builder analysis readability parity
   Keep compact labels compact, but readable recommendation/explainer text at
   the same comfortable scale used by the rest of the decision-support UI.
   ========================================================================== */
#builder-analysis .builder-xi-formation-change{
  font-size:12px;
  line-height:1.4;
}
#builder-analysis .builder-xi-formation-change strong{
  font-size:13px;
}
#builder-analysis .builder-xi-swap-side small{
  font-size:9px;
}
#builder-analysis .builder-xi-swap-side strong{
  font-size:13px;
  line-height:1.25;
}
#builder-analysis .builder-xi-swap-side span{
  font-size:11px;
  line-height:1.35;
}
#builder-analysis .bench-advice-line strong,
#builder-analysis .bench-advice-line span{
  font-size:12px;
  line-height:1.4;
}
#builder-analysis .intel-explainer,
#builder-analysis .intel-action-note{
  font-size:12px;
  line-height:1.55;
}
#builder-analysis .intel-line{
  font-size:12px;
  line-height:1.35;
}
#builder-analysis .weakness-row{
  font-size:12px;
}
#builder-analysis .weakness-row em{
  font-size:11px;
}
#builder-analysis .five-gw-cell{
  font-size:12px;
  line-height:1.4;
}
#builder-analysis .five-gw-cell small{
  font-size:11px;
  line-height:1.35;
}
#builder-analysis .hover-help::after{
  font-size:12px;
  line-height:1.5;
}
@media(max-width:700px){
  #builder-analysis .builder-xi-formation-change{font-size:13px;}
  #builder-analysis .builder-xi-formation-change strong{font-size:14px;}
  #builder-analysis .builder-xi-swap-side strong{font-size:13px;}
  #builder-analysis .builder-xi-swap-side span{font-size:12px;}
  #builder-analysis .bench-advice-line strong,
  #builder-analysis .bench-advice-line span,
  #builder-analysis .intel-explainer,
  #builder-analysis .intel-action-note,
  #builder-analysis .intel-line{font-size:13px;}
  #builder-analysis .five-gw-cell{font-size:13px;}
  #builder-analysis .five-gw-cell small{font-size:12px;}
  #builder-analysis .hover-help::after{font-size:13px;}
}

/* ========================================================================== 
   Decision UI readability floor
   Keep badges compact, but never make decision labels, plan metrics or
   actionable copy depend on 8-9px text to fit.
   ========================================================================== */
.decision-card-head b,
.transfer-strategy-head small,
.transfer-strategy-head>span,
.transfer-timing-head>span,
.transfer-flow-context small,
.transfer-what-if-lab .transfer-strategy-card-head>div>small,
.deadline-mode-card-head span,
.deadline-mode-card-head b,
.deadline-mode-compare small,
.deadline-plan-save-copy small,
.post-gw-review-summary small,
.post-gw-review-three-way small,
.post-gw-review-card-head span,
.post-gw-review-card-head b,
.post-gw-review-card-compare small,
.post-gw-review-outcome small{
  font-size:11px!important;
  line-height:1.3!important;
}

.decision-card-action{
  font-size:11px!important;
  line-height:1.2!important;
}
.transfer-strategy-card p,
.transfer-timing-next{
  font-size:12px!important;
  line-height:1.5!important;
}
.transfer-strategy-meta,
.transfer-timing-factors span,
.transfer-move-timing span{
  font-size:10px!important;
  line-height:1.3!important;
}
.transfer-timing-xi-bridge strong{
  font-size:10px!important;
  line-height:1.3!important;
}
.transfer-what-if-metrics small{
  font-size:10px!important;
  line-height:1.3!important;
}
.post-gw-review-three-way strong,
.post-gw-review-card-compare strong{
  font-size:13px!important;
  line-height:1.45!important;
}

@media(max-width:580px){
  .decision-card-head b,
  .transfer-strategy-head small,
  .transfer-strategy-head>span,
  .transfer-timing-head>span,
  .transfer-flow-context small,
  .transfer-what-if-lab .transfer-strategy-card-head>div>small,
  .deadline-mode-card-head span,
  .deadline-mode-card-head b,
  .deadline-mode-compare small,
  .deadline-plan-save-copy small,
  .post-gw-review-summary small,
  .post-gw-review-three-way small,
  .post-gw-review-card-head span,
  .post-gw-review-card-head b,
  .post-gw-review-card-compare small,
  .post-gw-review-outcome small{
    font-size:12px!important;
  }
  .decision-card-action{
    font-size:12px!important;
    min-height:38px!important;
  }
  .transfer-strategy-card p,
  .transfer-timing-next{
    font-size:13px!important;
  }
  .transfer-strategy-meta,
  .transfer-timing-factors span,
  .transfer-move-timing span,
  .transfer-timing-xi-bridge strong,
  .transfer-what-if-metrics small{
    font-size:11px!important;
  }
  .post-gw-review-three-way strong,
  .post-gw-review-card-compare strong{
    font-size:14px!important;
  }
}

/* ========================================================================== 
   Global supporting-copy readability floor
   Explanatory/help text must remain comfortably readable; compact badges and
   micro-labels keep their smaller sizing where the text is not narrative.
   ========================================================================== */
.builder-assistant-summary-card small,
.builder-assistant-alert span,
.builder-assistant-ready span,
.builder-assistant-move small,
.player-discipline-note,
.account-status,
.account-privacy-note,
.account-saved-list span,
.account-secondary-head p,
.forgot-password-sender-note,
.manager-login-required-note,
.player-fixture-swing-card p,
.player-fixture-swing-card .fixture-signal-explanation,
.what-changed-row p,
.what-changed-empty span,
.what-changed-why span,
.xp-center-panel>p,
.xp-center-empty,
.xp-center-policy,
.xp-advisor-head p,
.xp-advisor-lock small,
.xp-advisor-item p,
.xp-advisor-weight p{
  font-size:12px!important;
  line-height:1.5!important;
}

.builder-assistant-section-title span,
.builder-assistant-section-actions>span,
.builder-assistant-total,
.account-form label>span,
.account-user-card span,
.account-back-link,
.player-fixture-swing-head small,
.player-fixture-swing-head>b,
.player-fixture-swing-runs small,
.what-changed-why>small,
.xp-center-metric small,
.xp-center-metric em,
.xp-center-table thead th,
.xp-center-gw-row>span,
.xp-center-gw-row small,
.xp-advisor-kpis small,
.xp-advisor-kpis em,
.xp-advisor-weight small,
.xp-advisor-weight em,
.xp-advisor-position small,
.xp-advisor-position em,
.xp-advisor-foot span{
  font-size:10px!important;
  line-height:1.35!important;
}

.builder-assistant-reset,
.builder-assistant-skip,
.builder-assistant-more,
.builder-assistant-step-status,
.account-user-card small,
.danger-outline-btn,
.forgot-password-link,
.what-changed-why-btn.fpl-pill-btn{
  font-size:11px!important;
  line-height:1.25!important;
}

@media(max-width:580px){
  .builder-assistant-summary-card small,
  .builder-assistant-alert span,
  .builder-assistant-ready span,
  .builder-assistant-move small,
  .player-discipline-note,
  .account-status,
  .account-privacy-note,
  .account-saved-list span,
  .account-secondary-head p,
  .forgot-password-sender-note,
  .manager-login-required-note,
  .player-fixture-swing-card p,
  .player-fixture-swing-card .fixture-signal-explanation,
  .what-changed-row p,
  .what-changed-empty span,
  .what-changed-why span,
  .xp-center-panel>p,
  .xp-center-empty,
  .xp-center-policy,
  .xp-advisor-head p,
  .xp-advisor-lock small,
  .xp-advisor-item p,
  .xp-advisor-weight p{
    font-size:13px!important;
  }
  .builder-assistant-section-title span,
  .builder-assistant-section-actions>span,
  .builder-assistant-total,
  .account-form label>span,
  .account-user-card span,
  .account-back-link,
  .player-fixture-swing-head small,
  .player-fixture-swing-head>b,
  .player-fixture-swing-runs small,
  .what-changed-why>small,
  .xp-center-metric small,
  .xp-center-metric em,
  .xp-center-table thead th,
  .xp-center-gw-row>span,
  .xp-center-gw-row small,
  .xp-advisor-kpis small,
  .xp-advisor-kpis em,
  .xp-advisor-weight small,
  .xp-advisor-weight em,
  .xp-advisor-position small,
  .xp-advisor-position em,
  .xp-advisor-foot span,
  .builder-assistant-reset,
  .builder-assistant-skip,
  .builder-assistant-more,
  .builder-assistant-step-status,
  .account-user-card small,
  .danger-outline-btn,
  .forgot-password-link,
  .what-changed-why-btn.fpl-pill-btn{
    font-size:11px!important;
  }
}

/* v214.42 — Builder Assistant Use: same pill treatment as Sell all players, in green */
.builder-assistant-completion-total .builder-assistant-use-completion{
  appearance:none!important;
  width:auto!important;
  min-width:0!important;
  min-height:34px!important;
  height:34px!important;
  padding:0 12px!important;
  border:1px solid var(--ok-line)!important;
  border-radius:999px!important;
  background:var(--ok-tint)!important;
  color:var(--ok)!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  font:inherit!important;
  font-size:11px!important;
  font-weight:900!important;
  line-height:1!important;
  letter-spacing:.015em!important;
  white-space:nowrap!important;
  cursor:pointer!important;
  box-shadow:none!important;
  opacity:.78;
  transition:background .16s ease,border-color .16s ease,color .16s ease,transform .16s ease,box-shadow .16s ease,opacity .16s ease!important;
}
.builder-assistant-completion-total .builder-assistant-use-completion:hover:not(:disabled),
.builder-assistant-completion-total .builder-assistant-use-completion:focus-visible:not(:disabled){
  border-color:var(--ok)!important;
  background:var(--ok-tint2)!important;
  color:var(--ok)!important;
  transform:translateY(-1px)!important;
  opacity:1;
}
.builder-assistant-completion-total .builder-assistant-use-completion:active:not(:disabled){
  transform:translateY(0)!important;
}
.builder-assistant-completion-total .builder-assistant-use-completion:disabled{
  opacity:.42!important;
  cursor:not-allowed!important;
  transform:none!important;
}
@media(max-width:620px){
  .builder-assistant-completion-total .builder-assistant-use-completion{
    flex:1 1 0;
    width:auto!important;
  }
}

/* v214.44 — Action button geometry: match Builder Assistant Back / Reject · Next.
   Keep icon-only circular controls and non-button badges/chips unchanged. */
:is(
  .theme-toggle,
  .clean-account-btn,
  .fpl-pill-btn,
  .fpl-pill-blue,
  .fpl-pill-load,
  .fpl-pill-red,
  .watch-player-actions button,
  .watch-remove-btn,
  .sell-player-btn,
  .sell-all-builder-btn,
  .sell-all-confirm-btn,
  #suggested-squad-use,
  .deadline-mode-action-btn,
  #deadline-plan-save-btn,
  .what-changed-open-btn,
  #preseason .squad-workspace-main > .builder-tools .builder-primary-tool .builder-action-btn,
  #preseason .squad-workspace-main > .builder-tools > .builder-assistant-tool-row .builder-action-btn,
  .player-popup-flow-actions .fpl-pill-btn,
  .compare-result-actions .fpl-pill-btn,
  .mobile-workspace-switch-btn,
  .player-popup-captain-actions .popup-role-btn,
  .builder-assistant-completion-total .builder-assistant-use-completion
){
  border-radius:8px!important;
}


/* ========================================================================== 
   v214.85 — Dashboard Starting XI mirrors the Builder pitch
   ========================================================================== */
#dashboard .dashboard-lineup-view{
  margin-top:38px;
}
#dashboard .dashboard-lineup-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:22px;
  margin:0 0 12px;
}
#dashboard .dashboard-lineup-head h2{
  margin:6px 0 0;
  font-size:31px;
  letter-spacing:-.035em;
}
#dashboard .dashboard-lineup-source{
  max-width:460px;
  margin:0 0 2px;
  text-align:right;
  font-size:11px;
  line-height:1.45;
}
#dashboard .dashboard-lineup-pitch-wrap{
  position:relative;
  padding:8px!important;
}
#dashboard .dashboard-lineup-view #pitch{
  min-height:560px!important;
}
#dashboard .dashboard-lineup-view #pitch .pitch-row{
  left:1.2%!important;
  right:1.2%!important;
}
#dashboard .dashboard-lineup-view #pitch .pitch-row[data-position="4"]{transform:translateY(-18px)!important;}
#dashboard .dashboard-lineup-view #pitch .pitch-row[data-position="3"]{transform:translateY(-12px)!important;}
#dashboard .dashboard-lineup-view #pitch .pitch-row[data-position="2"]{transform:translateY(-6px)!important;}
#dashboard .dashboard-lineup-view #pitch .pitch-row[data-position="1"]{transform:translateY(0)!important;}
#dashboard .dashboard-lineup-view .pitch-formation-badge{
  max-width:max-content!important;
  height:34px!important;
  padding:0 10px!important;
  gap:9px!important;
  align-items:center!important;
  border:1px solid rgba(255,255,255,.72)!important;
  line-height:1!important;
}
#dashboard .dashboard-lineup-view .pitch-formation-badge span{line-height:1!important;}
#dashboard .dashboard-lineup-view .pitch-formation-badge strong{
  font-family:var(--display)!important;
  line-height:1!important;
}
#dashboard .dashboard-lineup-note{
  min-height:0;
  margin:8px 0 0;
  padding:8px 10px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--panel2);
  color:var(--text2);
  font-size:10px;
  line-height:1.45;
}
#dashboard .dashboard-lineup-note:empty{display:none;}

/* Share the exact compact player hierarchy between the main and Suggested Squad pitches. */
:is(#dashboard .dashboard-lineup-view #pitch,#suggested-squad-pitch).pitch.unified-squad-player-design .pitch-player-label{
  width:auto!important;
  min-width:0!important;
  max-width:100%!important;
  margin:0 auto!important;
  padding:0!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:flex-start!important;
  row-gap:0!important;
  column-gap:0!important;
}
:is(#dashboard .dashboard-lineup-view #pitch,#suggested-squad-pitch).pitch.unified-squad-player-design .pitch-player-label-compact-meta .pitch-player-namebox{
  width:auto!important;
  min-width:0!important;
  max-width:100%!important;
  margin:0 auto!important;
  padding:0!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:flex-start!important;
}
:is(#dashboard .dashboard-lineup-view #pitch,#suggested-squad-pitch).pitch.unified-squad-player-design .pitch-player .pitch-player-name-line .pitch-player-name{
  min-width:0!important;
  font-size:var(--squad-name-size)!important;
  line-height:var(--squad-name-line)!important;
  font-weight:var(--squad-name-weight)!important;
}
:is(#dashboard .dashboard-lineup-view #pitch,#suggested-squad-pitch).pitch.unified-squad-player-design .pitch-player-label-compact-meta .pitch-player-namebox .pitch-player-club-inline{
  display:block!important;
  width:auto!important;
  min-width:0!important;
  max-width:100%!important;
  padding:0!important;
  font-size:var(--squad-club-size)!important;
  line-height:var(--squad-club-line)!important;
  font-weight:var(--squad-club-weight)!important;
  text-align:center!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
:is(#dashboard .dashboard-lineup-view #pitch,#suggested-squad-pitch).pitch.unified-squad-player-design .pitch-player-label-compact-meta .pitch-player-primary-meta{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:auto!important;
  min-width:0!important;
  max-width:100%!important;
  margin:2px auto 0!important;
  position:relative!important;
  gap:var(--squad-primary-gap)!important;
}
:is(#dashboard .dashboard-lineup-view #pitch,#suggested-squad-pitch).pitch.unified-squad-player-design .pitch-player-label-compact-meta .pitch-player-primary-meta :is(.player-price,.player-fixture,.player-xpts),
:is(#dashboard .dashboard-lineup-view #pitch,#suggested-squad-pitch).pitch.unified-squad-player-design .pitch-player-label-compact-meta .pitch-player-secondary-meta .player-coach-score{
  position:static!important;
  left:auto!important;
  top:auto!important;
  transform:none!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:auto!important;
  min-width:0!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  color:#111!important;
  font-size:var(--squad-meta-size)!important;
  line-height:var(--squad-meta-line)!important;
  font-weight:700!important;
  white-space:nowrap!important;
  overflow:visible!important;
  text-overflow:clip!important;
}
:is(#dashboard .dashboard-lineup-view #pitch,#suggested-squad-pitch).pitch.unified-squad-player-design .pitch-player-label-compact-meta .pitch-player-namebox .pitch-player-name{
  margin-bottom:var(--squad-name-club-gap)!important;
}
:is(#dashboard .dashboard-lineup-view #pitch,#suggested-squad-pitch).pitch.unified-squad-player-design .pitch-player-label-compact-meta .pitch-player-namebox .pitch-player-club-inline{
  margin:0 0 1px!important;
}
:is(#dashboard .dashboard-lineup-view #pitch,#suggested-squad-pitch).pitch.unified-squad-player-design .pitch-player-label-compact-meta .pitch-player-primary-meta{
  margin-top:var(--squad-row-gap)!important;
}
:is(#dashboard .dashboard-lineup-view #pitch,#suggested-squad-pitch).pitch.unified-squad-player-design .pitch-player-label-compact-meta .pitch-player-secondary-meta{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:auto!important;
  min-width:0!important;
  max-width:100%!important;
  gap:3px!important;
  margin:2px auto 0!important;
  padding:0!important;
  position:static!important;
  left:auto!important;
  transform:none!important;
}
:is(#dashboard .dashboard-lineup-view #pitch,#suggested-squad-pitch).pitch.unified-squad-player-design .pitch-player-label-compact-meta .pitch-player-secondary-meta .player-coach-score{
  flex:0 0 auto!important;
}
:is(#dashboard .dashboard-lineup-view #pitch,#suggested-squad-pitch).pitch.unified-squad-player-design .pitch-player .pitch-player-name-line{
  position:relative!important;
  display:inline-block!important;
  width:auto!important;
  min-width:0!important;
  max-width:100%!important;
  margin:0 auto!important;
  padding:0!important;
  text-align:center!important;
}
:is(#dashboard .dashboard-lineup-view #pitch,#suggested-squad-pitch).pitch.unified-squad-player-design .pitch-player .pitch-player-name-line .pitch-player-name{
  display:block!important;
  width:auto!important;
  margin:0 0 1px!important;
  padding:0!important;
  text-align:center!important;
}
:is(#dashboard .dashboard-lineup-view #pitch,#suggested-squad-pitch).pitch.unified-squad-player-design .pitch-player .pitch-name-role.captain-mark,
:is(#dashboard .dashboard-lineup-view #pitch,#suggested-squad-pitch).pitch.unified-squad-player-design .pitch-player .pitch-name-role.vice-mark{
  position:absolute!important;
  left:calc(100% + 4px)!important;
  right:auto!important;
  top:50%!important;
  transform:translateY(-50%)!important;
  margin:0!important;
  flex:none!important;
  z-index:2!important;
}

@media (min-width:1051px) and (max-height:900px){
  #dashboard .dashboard-lineup-view #pitch{min-height:530px!important;}
}
@media(max-width:700px){
  #dashboard .dashboard-lineup-head{
    align-items:flex-start;
    flex-direction:column;
    gap:7px;
  }
  #dashboard .dashboard-lineup-source{
    max-width:none;
    margin:0;
    text-align:left;
  }
  :is(#dashboard .dashboard-lineup-view #pitch,#suggested-squad-pitch).pitch.unified-squad-player-design .pitch-player .pitch-player-name-line .pitch-player-name{
    font-size:var(--squad-name-size-mobile)!important;
  }
  :is(#dashboard .dashboard-lineup-view #pitch,#suggested-squad-pitch).pitch.unified-squad-player-design .pitch-player-label-compact-meta .pitch-player-namebox .pitch-player-club-inline,
  :is(#dashboard .dashboard-lineup-view #pitch,#suggested-squad-pitch).pitch.unified-squad-player-design .pitch-player-label-compact-meta .pitch-player-primary-meta :is(.player-price,.player-fixture,.player-xpts),
  :is(#dashboard .dashboard-lineup-view #pitch,#suggested-squad-pitch).pitch.unified-squad-player-design .pitch-player-label-compact-meta .pitch-player-secondary-meta .player-coach-score{
    font-size:var(--squad-meta-size-mobile)!important;
  }
}
@media(max-width:580px){
  #dashboard .dashboard-lineup-view #pitch{min-height:520px!important;}
  #dashboard .dashboard-lineup-view .pitch-formation-badge{
    padding:0 8px!important;
    gap:6px!important;
  }
  #dashboard .dashboard-lineup-view .pitch-formation-badge span{font-size:8px!important;}
  #dashboard .dashboard-lineup-view .pitch-formation-badge strong{font-size:14px!important;}
}

/* ========================================================================== 
   v214.86 — Dashboard bench mirrors the compact Builder bench hierarchy
   ========================================================================== */
#dashboard .dashboard-bench-section{
  min-width:0;
}
#dashboard .dashboard-bench-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  margin:38px 0 12px;
}
#dashboard .dashboard-bench-head h2{
  margin:6px 0 0;
  font-size:28px;
  letter-spacing:-.03em;
}
#dashboard .dashboard-bench-source{
  max-width:330px;
  margin:0 0 2px;
  text-align:right;
  font-size:10px;
  line-height:1.4;
}
#dashboard #bench-list.dashboard-bench-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:9px;
  overflow:visible;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
#dashboard #bench-list .dashboard-bench-player{
  position:relative;
  display:grid;
  grid-template-columns:88px minmax(0,1fr);
  align-items:center;
  gap:8px;
  min-width:0;
  min-height:88px;
  padding:9px 10px 9px 4px;
  border:1px solid var(--line);
  border-radius:11px;
  background:var(--panel2);
  text-align:left;
}
#dashboard #bench-list .dashboard-bench-player .bench-kit-stack{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  width:88px;
  min-width:88px;
  gap:3px;
  padding-left:28px;
}
#dashboard #bench-list .dashboard-bench-player .bench-kit-stack .bench-order{
  position:absolute;
  left:4px;
  top:50%;
  width:22px;
  height:18px;
  transform:translateY(-50%);
  z-index:3;
}
#dashboard #bench-list .dashboard-bench-player .bench-kit-stack .mini-shirt{
  flex:0 0 36px;
  width:36px;
  height:36px;
}
#dashboard #bench-list .dashboard-bench-player .bench-position-inline{
  display:inline-flex!important;
  align-items:center;
  flex:0 0 auto;
  margin:0!important;
  color:var(--text2)!important;
  font-size:10px!important;
  line-height:1!important;
  font-weight:800!important;
  white-space:nowrap;
}
#dashboard #bench-list .dashboard-bench-player .bench-player-info-compact-meta{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  width:100%;
  min-width:0;
  text-align:left;
}
#dashboard #bench-list .dashboard-bench-player .bench-player-info-compact-meta > strong{
  display:block;
  width:100%;
  margin:0;
  overflow:hidden;
  color:var(--text);
  font-size:var(--squad-name-size)!important;
  line-height:var(--squad-name-line)!important;
  font-weight:var(--squad-name-weight)!important;
  text-overflow:ellipsis;
  white-space:nowrap;
}
#dashboard #bench-list .dashboard-bench-player .bench-club{
  display:block;
  width:100%;
  margin:1px 0 0!important;
  overflow:hidden;
  color:var(--muted)!important;
  font-size:var(--squad-club-size)!important;
  line-height:var(--squad-club-line)!important;
  font-weight:var(--squad-club-weight)!important;
  text-overflow:ellipsis;
  white-space:nowrap;
}
#dashboard #bench-list .dashboard-bench-player :is(.bench-primary-meta,.bench-secondary-meta){
  display:flex;
  align-items:center;
  justify-content:flex-start;
  width:100%;
  min-width:0;
  gap:var(--squad-primary-gap);
}
#dashboard #bench-list .dashboard-bench-player .bench-primary-meta{
  margin-top:3px;
}
#dashboard #bench-list .dashboard-bench-player .bench-secondary-meta{
  margin-top:2px;
}
#dashboard #bench-list .dashboard-bench-player :is(.bench-primary-meta,.bench-secondary-meta) small{
  display:inline-flex!important;
  align-items:center;
  width:auto!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  color:var(--text2)!important;
  font-size:var(--squad-meta-size)!important;
  line-height:var(--squad-meta-line)!important;
  font-weight:700!important;
  white-space:nowrap;
}
#dashboard #bench-list .dashboard-bench-player .bench-fixture{
  min-width:0!important;
  overflow:hidden;
  text-overflow:ellipsis;
}
#dashboard #bench-list .dashboard-bench-player :is(.bench-xpts,.bench-coach-score) b{
  margin-right:3px;
  color:var(--text)!important;
  font-weight:800!important;
}
#dashboard #bench-list .dashboard-bench-player[draggable="true"]{
  cursor:grab;
  transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease;
}
#dashboard #bench-list .dashboard-bench-player[draggable="true"]:hover{
  transform:translateY(-1px);
  border-color:var(--line2);
  box-shadow:0 6px 16px rgba(20,20,20,.08);
}
#dashboard #bench-list .dashboard-bench-player[draggable="true"]:active{
  cursor:grabbing;
}
@media(max-width:1050px){
  #dashboard #bench-list.dashboard-bench-grid{
    grid-template-columns:1fr;
  }
}
@media(max-width:700px){
  #dashboard .dashboard-bench-head{
    align-items:flex-start;
    flex-direction:column;
    gap:7px;
  }
  #dashboard .dashboard-bench-source{
    max-width:none;
    margin:0;
    text-align:left;
  }
  #dashboard #bench-list .dashboard-bench-player .bench-player-info-compact-meta > strong{
    font-size:var(--squad-name-size-mobile)!important;
  }
  #dashboard #bench-list .dashboard-bench-player .bench-club{
    font-size:var(--squad-club-size-mobile)!important;
  }
  #dashboard #bench-list .dashboard-bench-player :is(.bench-primary-meta,.bench-secondary-meta) small{
    font-size:var(--squad-meta-size-mobile)!important;
  }
}
@media(max-width:580px){
  #dashboard #bench-list .dashboard-bench-player{
    grid-template-columns:82px minmax(0,1fr);
    min-height:84px;
    padding-right:8px;
  }
  #dashboard #bench-list .dashboard-bench-player .bench-kit-stack{
    width:82px;
    min-width:82px;
    padding-left:26px;
  }
  #dashboard #bench-list .dashboard-bench-player .bench-kit-stack .mini-shirt{
    flex-basis:34px;
    width:34px;
    height:34px;
  }
}

/* ========================================================================== 
   v214.87 — Dashboard lineup flow: summary → XI → bench → transfer
   ========================================================================== */
#dashboard .dashboard-lineup-head{
  align-items:center;
  margin-bottom:10px;
}
#dashboard .dashboard-lineup-kpis{
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(0,1.15fr) minmax(190px,.7fr);
  gap:10px;
  margin:0 0 12px;
}
#dashboard .dashboard-lineup-kpis .xpts-team-card,
#dashboard .dashboard-lineup-kpis .dashboard-free-transfers-card{
  min-width:0;
  min-height:54px;
  border-radius:11px;
}
#dashboard .dashboard-lineup-kpis .xpts-team-card{
  width:100%;
  padding:9px 12px;
}
#dashboard .dashboard-lineup-kpis .xpts-team-card small{font-size:9px;}
#dashboard .dashboard-lineup-kpis .xpts-team-card strong{font-size:22px;}
#dashboard .dashboard-lineup-kpis .xpts-team-card span{font-size:9px;}
#dashboard .dashboard-lineup-kpis .xpts-team-card small span{
  margin-left:0;
  color:inherit;
  font-size:inherit;
  font-weight:inherit;
  line-height:inherit;
  letter-spacing:inherit;
  white-space:inherit;
}
#dashboard .dashboard-lineup-kpis .dashboard-expected-card strong,
#dashboard .dashboard-lineup-kpis .dashboard-bench-xp-card strong{margin-left:auto;}
#dashboard .dashboard-lineup-kpis .dashboard-free-transfers-card{
  display:flex;
  justify-content:space-between;
  padding:9px 10px 9px 12px;
  background:var(--panel2);
}
#dashboard .dashboard-lineup-kpis .dashboard-free-transfers-card label{
  font-size:9px!important;
  font-weight:900;
  letter-spacing:.07em;
}
#dashboard .dashboard-lineup-kpis .dashboard-free-transfers-card select{
  min-width:62px;
  min-height:34px;
  font-size:16px;
  font-weight:900;
}

/* Bench belongs directly to the pitch and stays one horizontal row on desktop. */
#dashboard .dashboard-bench-head{
  margin:16px 0 10px;
}
#dashboard #bench-list.dashboard-bench-grid{
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:9px;
}
#dashboard #bench-list .dashboard-bench-player{
  grid-template-columns:76px minmax(0,1fr);
  min-height:86px;
  padding:8px 8px 8px 3px;
}
#dashboard #bench-list .dashboard-bench-player .bench-kit-stack{
  width:76px;
  min-width:76px;
  padding-left:25px;
}
#dashboard #bench-list .dashboard-bench-player .bench-kit-stack .bench-order{left:2px;}

/* Transfer plan is a full-width section below the bench. */
#dashboard .dashboard-transfer-section{
  margin-top:30px;
  min-width:0;
}
#dashboard .dashboard-transfer-head{
  align-items:center;
  gap:18px;
}

@media(max-width:1050px){
  #dashboard .dashboard-lineup-kpis{grid-template-columns:repeat(2,minmax(0,1fr));}
  #dashboard .dashboard-lineup-kpis .dashboard-free-transfers-card{grid-column:1 / -1;}
  #dashboard #bench-list.dashboard-bench-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:700px){
  #dashboard .dashboard-lineup-head{align-items:flex-start;}
  #dashboard .dashboard-lineup-kpis{grid-template-columns:1fr;}
  #dashboard .dashboard-lineup-kpis .dashboard-free-transfers-card{grid-column:auto;}
}
@media(max-width:580px){
  #dashboard #bench-list.dashboard-bench-grid{grid-template-columns:1fr;}
}


/* ========================================================================== 
   v214.88 — Dashboard bench text alignment + complete Fixture Outlook squad
   ========================================================================== */
#dashboard #bench-list .dashboard-bench-player .bench-player-info-compact-meta{
  padding-left:12px;
}
@media(max-width:580px){
  #dashboard #bench-list .dashboard-bench-player .bench-player-info-compact-meta{
    padding-left:10px;
  }
}


/* ========================================================================== 
   v214.89 — Gameweek lineup read-only + bench text alignment
   ========================================================================== */
#dashboard #pitch .pitch-player,
#dashboard #bench-list .dashboard-bench-player{cursor:pointer;}


/* ========================================================================== 
   v214.91 — Fixture Outlook bench-row distinction
   ========================================================================== */
#dashboard #fixture-table .fixture-cell.fixture-bench-row{
  background:var(--fill);
}


/* ========================================================================== 
   v215.155 — FPL-style player availability backgrounds
   ========================================================================== */
:root{
  --availability-red-bg:#fde8e7;
  --availability-red-line:#c93b36;
  --availability-orange-bg:#fff0df;
  --availability-orange-line:#d97718;
  --availability-yellow-bg:#fff8cf;
  --availability-yellow-line:#c6a814;
}

.player-pool-row.player-availability-red{
  background:var(--availability-red-bg)!important;
  box-shadow:inset 4px 0 0 var(--availability-red-line)!important;
}
.player-pool-row.player-availability-orange{
  background:var(--availability-orange-bg)!important;
  box-shadow:inset 4px 0 0 var(--availability-orange-line)!important;
}
.player-pool-row.player-availability-yellow{
  background:var(--availability-yellow-bg)!important;
  box-shadow:inset 4px 0 0 var(--availability-yellow-line)!important;
}
.player-pool-row:is(.player-availability-red,.player-availability-orange,.player-availability-yellow) :is(strong,small,b){
  color:#171717;
}
.player-pool-row.in-squad:is(.player-availability-red,.player-availability-orange,.player-availability-yellow){
  filter:none;
  opacity:.72;
}
.player-pool-row.player-availability-red:hover{background:#fbdad8!important;}
.player-pool-row.player-availability-orange:hover{background:#ffe7cc!important;}
.player-pool-row.player-availability-yellow:hover{background:#fff2b3!important;}

.availability.player-availability-red{
  background:var(--availability-red-line)!important;
  border-color:var(--availability-red-line)!important;
  color:#fff!important;
}
.availability.player-availability-orange{
  background:var(--availability-orange-line)!important;
  border-color:var(--availability-orange-line)!important;
  color:#fff!important;
}
.availability.player-availability-yellow{
  background:#f2d438!important;
  border-color:var(--availability-yellow-line)!important;
  color:#171717!important;
}

.bench-player.player-availability-red,
.suggested-bench-player.player-availability-red{
  background:var(--availability-red-bg)!important;
  border-color:var(--availability-red-line)!important;
}
.bench-player.player-availability-orange,
.suggested-bench-player.player-availability-orange{
  background:var(--availability-orange-bg)!important;
  border-color:var(--availability-orange-line)!important;
}
.bench-player.player-availability-yellow,
.suggested-bench-player.player-availability-yellow{
  background:var(--availability-yellow-bg)!important;
  border-color:var(--availability-yellow-line)!important;
}
.bench-player:is(.player-availability-red,.player-availability-orange,.player-availability-yellow),
.suggested-bench-player:is(.player-availability-red,.player-availability-orange,.player-availability-yellow),
.suggested-bench-player:is(.player-availability-red,.player-availability-orange,.player-availability-yellow) :is(strong,small){
  color:#171717!important;
}

.pitch-player.player-availability-red .pitch-player-label{
  background:var(--availability-red-bg)!important;
  border:1px solid var(--availability-red-line)!important;
}
.pitch-player.player-availability-orange .pitch-player-label{
  background:var(--availability-orange-bg)!important;
  border:1px solid var(--availability-orange-line)!important;
}
.pitch-player.player-availability-yellow .pitch-player-label{
  background:var(--availability-yellow-bg)!important;
  border:1px solid var(--availability-yellow-line)!important;
}
.pitch-player:is(.player-availability-red,.player-availability-orange,.player-availability-yellow) .pitch-player-label{
  padding:4px 6px!important;
  border-radius:9px!important;
  box-shadow:0 2px 8px rgba(20,20,20,.14)!important;
}
