  :root{
    --bg:#f5f7f9; --bg2:#eef2f5;
    --panel:#ffffff; --panel2:#f3f6f8; --line:#e2e7ec; --line2:#d4dce3;
    --ink:#17212b; --sub:#5f6b78; --dim:#8a96a3;
    --pv:#3d195b; --pv2:#3d195b;
    --mint:#079b62; --cyan:#247b91;
    --accent:#079b62; --accent2:#3d195b;
    --good:#13865c; --bad:#d94a61; --warn:#b7791f;
    --fdr1:#bcebd0; --fdr2:#8ad9ad; --fdr3:#e9edf1; --fdr4:#f6b0bc; --fdr5:#d87083;
    --r:14px;
  }
  *{box-sizing:border-box;margin:0;padding:0}
  html{scroll-behavior:smooth}
  body{
    font-family:'Inter',system-ui,sans-serif; color:var(--ink);
    background:var(--bg);
    min-height:100vh; padding:0 0 80px; line-height:1.5;
  }
  .wrap{max-width:1080px;margin:0 auto;padding:0 18px}

  /* ---------- top bar ---------- */
  .nav{
    display:flex;align-items:center;justify-content:space-between;
    padding:20px 0 14px; position:sticky; top:0; z-index:40;
    background:rgba(255,255,255,.96);
    backdrop-filter:blur(2px);
  }
  .brand{display:flex;align-items:center;gap:12px}
  .brand .mark{
    width:38px;height:38px;border-radius:11px;flex:none;
    background:var(--accent);
    display:flex;align-items:center;justify-content:center;
    font-family:'Inter';font-weight:900;color:#04121a;font-size:18px;
    box-shadow:0 6px 20px rgba(0,255,135,.25);
  }
  .brand h1{font-family:'Inter';font-weight:800;font-size:19px;letter-spacing:-.3px}
  .brand .tag{color:var(--dim);font-size:11px;font-weight:600;letter-spacing:.4px;text-transform:uppercase}

  /* ---------- tabs ---------- */
  .tabs{display:flex;gap:4px;overflow-x:auto;padding:4px;background:var(--panel);border:1px solid var(--line);
    border-radius:14px;margin-bottom:8px;scrollbar-width:none}
  .tabs::-webkit-scrollbar{display:none}
  .tab{flex:1;white-space:nowrap;background:none;border:none;color:var(--sub);font-family:'Inter';
    font-weight:600;font-size:13.5px;padding:11px 14px;border-radius:10px;cursor:pointer;transition:.15s}
  .tab:hover{color:var(--ink)}
  .tab.active{background:var(--accent);color:#fff}
  .tabpanel{display:none;animation:rise .4s cubic-bezier(.2,.7,.2,1)}
  .tabpanel.active{display:block}

  /* ---------- shared tab header + controls ---------- */
  .thead{padding:22px 0 6px}
  .thead h2{font-family:'Inter';font-weight:800;font-size:clamp(24px,4vw,34px);letter-spacing:-.8px}
  .thead p{color:var(--sub);font-size:14px;margin-top:6px;max-width:640px}
  .ctl{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:14px 0 16px}
  .ctl-lbl{font-size:11px;color:var(--dim);text-transform:uppercase;letter-spacing:.5px;font-weight:600}
  .seg{display:inline-flex;background:var(--panel);border:1px solid var(--line2);border-radius:11px;padding:3px;gap:2px}
  .seg button{background:none;border:none;color:var(--sub);font-family:'Inter';font-weight:600;font-size:12.5px;
    padding:7px 13px;border-radius:8px;cursor:pointer;transition:.15s;white-space:nowrap}
  .seg button:hover{color:var(--ink)}
  .seg button.active{background:var(--panel2);color:var(--ink);box-shadow:0 1px 0 var(--line2)}

  .tab-status{text-align:center;padding:50px 0;color:var(--sub)}
  .more-wrap{display:flex;justify-content:center;margin-top:16px}

  /* ---------- fixtures grid ---------- */
  .fx-scroll{overflow-x:auto;border:1px solid var(--line);border-radius:var(--r);background:var(--panel)}
  .fxg{border-collapse:separate;border-spacing:0;width:100%;min-width:560px}
  .fxg th{position:sticky;top:0;background:var(--panel);z-index:2;font-family:'Inter';font-size:11px;
    color:var(--dim);padding:12px 6px;text-align:center;border-bottom:1px solid var(--line2)}
  .fxg th.club{text-align:left;padding-left:16px;min-width:120px}
  .fxg td{padding:0;text-align:center;border-bottom:1px solid var(--line)}
  .fxg tr:last-child td{border-bottom:none}
  .fxg td.club{text-align:left;padding:10px 16px;font-weight:700;font-size:13px;white-space:nowrap}
  .fxg .cell{margin:3px;padding:9px 4px;border-radius:7px;font-size:11px;font-weight:800;font-family:'Inter';color:#04121a;line-height:1.3}
  .fxg .cell small{display:block;font-size:8.5px;font-weight:600;opacity:.75}
  .fxg .cell.blank{background:var(--panel2);color:var(--dim)}
  .fxg .agg{font-family:'Inter';font-weight:700;font-size:13px}

  /* ---------- data table (players) ---------- */
  .tbl-scroll{overflow-x:auto;border:1px solid var(--line);border-radius:var(--r);background:var(--panel)}
  table.dt{border-collapse:collapse;width:100%;min-width:1400px;font-size:12.5px}
  table.dt th{position:sticky;top:0;background:var(--panel);z-index:2;text-align:right;padding:10px 8px;
    font-size:10.5px;color:var(--sub);text-transform:uppercase;letter-spacing:.3px;border-bottom:1px solid var(--line2);cursor:pointer;user-select:none;white-space:nowrap}
  table.dt th.left{text-align:left}
  table.dt th.sorted{color:var(--mint)}
  table.dt th .ar{font-size:9px;margin-left:3px}
  table.dt td{padding:8px;border-bottom:1px solid var(--line);text-align:right;font-family:'Inter';white-space:nowrap}
  table.dt td.left{text-align:left;font-family:'Inter'}
  table.dt tr:hover td{background:var(--panel2)}
  .pl-name{font-weight:700}
  .pl-meta{color:var(--dim);font-size:11px}
  .pl-team{display:flex;align-items:center;gap:7px}
  .pl-kit{height:22px;width:auto;flex:none}
  .pl-flag{color:var(--warn);font-weight:800;font-size:12px}
  .stp{font-size:10px;font-weight:800;padding:2px 7px;border-radius:5px;display:inline-block}
  .stp.fit{background:rgba(0,229,122,.15);color:var(--mint)}
  .stp.dbt{background:rgba(245,158,11,.16);color:var(--warn)}
  .stp.out{background:rgba(244,63,94,.16);color:#ff8098}

  .plcols-panel{background:var(--panel);border:1px solid var(--line2);border-radius:12px;padding:14px 16px;margin-bottom:12px}
  .plcols-hd{font-size:11px;text-transform:uppercase;letter-spacing:.5px;color:var(--dim);font-weight:700;margin-bottom:10px}
  .plcols-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:8px 14px}
  .plcol-chk{display:flex;align-items:center;gap:7px;font-size:12.5px;color:var(--sub);cursor:pointer}
  .plcol-chk input{accent-color:var(--mint);cursor:pointer}
  .plcols-actions{margin-top:12px}

  .tbl-scroll-top{overflow-x:auto;overflow-y:hidden;border:1px solid var(--line);border-bottom:none;
    border-radius:var(--r) var(--r) 0 0;background:var(--panel)}
  .tbl-scroll-top #plScrollTopInner{height:1px}
  .tbl-scroll-top::-webkit-scrollbar{height:10px}
  .tbl-scroll-top::-webkit-scrollbar-thumb{background:var(--line2);border-radius:5px}
  .players-scroll-fix .tbl-scroll{border-radius:0 0 var(--r) var(--r)}
  .sp{display:inline-block;font-size:9px;font-weight:800;padding:1px 5px;border-radius:4px;margin-left:5px}
  .sp.pen{background:rgba(0,255,135,.16);color:var(--mint)}
  .sp.fk{background:rgba(4,245,255,.16);color:var(--cyan)}
  .sp.ck{background:rgba(192,132,252,.18);color:#d0a9fb}

  /* ---------- price watch ---------- */
  .two-col{display:grid;grid-template-columns:1fr 1fr;gap:16px}
  @media(max-width:640px){.two-col{grid-template-columns:1fr}}
  .col-h{font-family:'Inter';font-weight:700;font-size:14px;padding:10px 14px;border-radius:11px;margin-bottom:10px}
  .col-h.up{background:rgba(0,255,135,.12);color:var(--mint)}
  .col-h.down{background:rgba(244,63,94,.12);color:#ff8098}
  .pr-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 14px;
    background:var(--panel);border:1px solid var(--line);border-radius:11px;margin-bottom:7px}
  .pr-row .l{min-width:0}
  .pr-row .nm{font-weight:700;font-size:13.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .pr-row .mt{color:var(--dim);font-size:11px}
  .pr-row .pc{font-family:'Inter';font-weight:700;font-size:13px;white-space:nowrap}
  .pr-row .pc.up{color:var(--mint)} .pr-row .pc.down{color:#ff8098}

  /* ---------- live ---------- */
  .live-row{display:flex;align-items:center;gap:12px;padding:12px 14px;background:var(--panel);
    border:1px solid var(--line);border-radius:12px;margin-bottom:8px}
  .live-rank{font-family:'Inter';font-weight:800;font-size:16px;color:var(--dim);width:26px;text-align:center;flex:none}
  .live-rank.top{color:var(--mint)}
  .live-info{flex:1;min-width:0}
  .live-nm{font-weight:700;font-size:14px}
  .live-mt{color:var(--dim);font-size:11.5px}
  .live-val{font-family:'Inter';font-weight:700;font-size:18px}
  .live-bonus{display:flex;gap:4px}
  .live-b{font-family:'Inter';font-weight:800;font-size:12px;padding:3px 8px;border-radius:7px;background:var(--panel2);color:var(--sub)}
  .live-b.b3{background:var(--accent);color:#fff}
  .live-b.b2{background:rgba(0,255,135,.2);color:var(--mint)}
  .live-b.b1{background:rgba(4,245,255,.15);color:var(--cyan)}
  .live-dot{width:7px;height:7px;border-radius:50%;background:var(--bad);display:inline-block;margin-right:6px;animation:pulse 1.4s infinite}
  @keyframes pulse{0%,100%{opacity:1}50%{opacity:.3}}

  /* ---------- injuries ---------- */
  .inj-row{display:flex;align-items:center;gap:14px;padding:13px 16px;background:var(--panel);
    border:1px solid var(--line);border-radius:12px;margin-bottom:8px;border-left-width:4px}
  .inj-row.inj-out{border-left-color:var(--bad)}
  .inj-row.inj-doubt{border-left-color:var(--warn)}
  .inj-pill{flex:none;min-width:52px;text-align:center;font-family:'Inter';font-weight:800;font-size:12px;
    padding:6px 8px;border-radius:9px}
  .inj-pill.inj-out{background:rgba(244,63,94,.16);color:var(--bad)}
  .inj-pill.inj-doubt{background:rgba(245,158,11,.16);color:var(--warn)}
  .inj-info{min-width:0;flex:1}
  .inj-nm{font-weight:700;font-size:14px}
  .inj-meta{color:var(--dim);font-size:11.5px;font-weight:400}
  .inj-news{color:var(--sub);font-size:12.5px;margin-top:3px}

  /* ---------- set pieces ---------- */
  .sp-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:14px}
  .sp-card{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:16px}
  .sp-team{display:flex;align-items:center;gap:9px;font-family:'Inter';font-weight:700;font-size:15px;margin-bottom:12px}
  .sp-team .dot{width:11px;height:11px;border-radius:50%;flex:none;border:1px solid rgba(255,255,255,.3)}
  .sp-duty{display:flex;align-items:flex-start;gap:10px;padding:7px 0;border-top:1px solid var(--line)}
  .sp-lbl{flex:none;width:80px;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.4px;padding-top:2px}
  .sp-lbl.pen{color:var(--mint)} .sp-lbl.fk{color:var(--cyan)} .sp-lbl.ck{color:#c084fc}
  .sp-takers{display:flex;flex-wrap:wrap;gap:5px}
  .sp-taker{font-size:12.5px;color:var(--sub);background:var(--panel2);border:1px solid var(--line2);padding:3px 9px;border-radius:7px}
  .sp-taker.first{color:var(--ink);font-weight:600;border-color:var(--line2)}
  .sp-none{color:var(--dim);font-size:12.5px}

  /* ---------- scout ---------- */
  .scout-note{color:var(--sub);font-size:13px;margin-bottom:14px;padding:10px 14px;background:var(--panel);border:1px solid var(--line);border-radius:11px}
  .scout-row{display:flex;align-items:center;gap:14px;padding:12px 16px;background:var(--panel);border:1px solid var(--line);border-radius:12px;margin-bottom:8px}
  .scout-rank{font-family:'Inter';font-weight:800;font-size:17px;color:var(--dim);width:26px;text-align:center;flex:none}
  .scout-main{flex:1;min-width:0}
  .scout-nm{font-weight:700;font-size:14px}
  .scout-meta{color:var(--dim);font-size:11.5px;font-weight:400}
  .scout-bars{display:flex;gap:7px;flex-wrap:wrap;margin-top:5px}
  .mini-lbl{font-size:11px;color:var(--sub);background:var(--panel2);border:1px solid var(--line2);padding:2px 8px;border-radius:6px}
  .mini-lbl.fdr-chip{color:#04121a;font-weight:700;border:none}
  .fdr-chip.fdr1{background:var(--fdr1)}.fdr-chip.fdr2{background:var(--fdr2)}.fdr-chip.fdr3{background:var(--fdr3)}
  .fdr-chip.fdr4{background:var(--fdr4);color:#fff}.fdr-chip.fdr5{background:var(--fdr5);color:#fff}
  .scout-score{font-family:'Inter';font-weight:800;font-size:18px;color:var(--mint);flex:none}

  /* pre-season planner */
  .ps-head{display:grid;grid-template-columns:44px 1fr auto 60px;gap:12px;align-items:center;
    padding:8px 16px;color:var(--dim);font-size:11px;text-transform:uppercase;letter-spacing:.4px;font-weight:600}
  .ps-row{display:grid;grid-template-columns:44px 1fr auto 60px;gap:12px;align-items:center;
    background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:11px 16px;margin-bottom:7px}
  .ps-rank{font-family:'Inter';font-weight:800;font-size:16px;color:var(--dim);text-align:center}
  .ps-rank.good{color:var(--mint)} .ps-rank.bad{color:#ff8098}
  .ps-team{display:flex;align-items:center;gap:10px;font-weight:600;font-size:14px;min-width:0}
  .ps-team .dot{width:11px;height:11px;border-radius:50%;flex:none;border:1px solid rgba(255,255,255,.3)}
  .ps-meta{color:var(--dim);font-size:11.5px;font-weight:400}
  .ps-fx{display:flex;gap:3px}
  .ps-fx span{font-size:9.5px;font-weight:800;color:#04121a;border-radius:4px;padding:3px 6px;font-family:'Inter'}
  .ps-avg{font-family:'Inter';font-weight:700;font-size:14px;text-align:right}
  .ps-pts{font-family:'Inter';font-weight:800;font-size:20px;color:var(--mint);text-align:right;white-space:nowrap}
  .ps-pts-lbl{font-size:11px;color:var(--dim);font-weight:600;margin-left:3px}
  .ps-kit{height:26px;width:auto;flex:none}
  @media(max-width:560px){.ps-head,.ps-row{grid-template-columns:32px 1fr auto}.ps-fx{display:none}}

  /* team builder */
  .bld-top{display:flex;gap:14px;align-items:center;flex-wrap:wrap;background:var(--panel);
    border:1px solid var(--line);border-radius:var(--r);padding:12px 16px;margin-bottom:10px}
  .bld-gauge{width:60px;height:60px;border-radius:50%;background:var(--panel2);flex:none;
    display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative}
  .bld-gauge::after{content:"";position:absolute;inset:6px;border-radius:50%;background:var(--panel)}
  .bld-grade{position:relative;z-index:1;font-family:'Inter';font-weight:900;font-size:19px;line-height:1}
  .bld-num{position:relative;z-index:1;font-family:'Inter';font-weight:700;font-size:10px;color:var(--sub)}
  .bld-num span{font-size:8px;color:var(--dim)}
  .bld-topmid{flex:1;min-width:180px}
  .bld-score-txt{font-size:13px;color:var(--sub);line-height:1.4;margin-bottom:5px}
  .bld-statrow{display:flex;gap:16px;flex-wrap:wrap}
  .bld-stat{font-size:12px;color:var(--sub)}
  .bld-stat b{font-family:'Inter';font-weight:800;font-size:15px;color:var(--ink);margin-right:3px}
  .bld-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-left:auto}
  .bld-actions .seg button{padding:6px 11px;font-size:12px}
  .bld-btn{background:var(--accent);color:#fff;border:none;border-radius:9px;
    padding:8px 13px;font-weight:700;font-size:12.5px;cursor:pointer;font-family:'Inter';white-space:nowrap}
  .bld-btn.ghost{background:var(--panel2);color:var(--sub);border:1px solid var(--line2)}
  .bld-btn:hover{filter:brightness(1.05)}
  .bld-warn{margin-bottom:10px}
  .bld-warn-in{display:inline-block;background:rgba(244,63,94,.12);border:1px solid rgba(244,63,94,.3);
    color:#ff8098;font-size:13px;font-weight:600;padding:8px 13px;border-radius:10px}

  .bld-cols{display:grid;grid-template-columns:1fr 380px;gap:16px}
  @media(max-width:860px){.bld-cols{grid-template-columns:1fr}}
  .bld-pitch{padding:18px 8px 12px}
  .bld-slot{width:88px;text-align:center;position:relative;cursor:pointer}
  .bld-slot.empty{height:88px;border:2px dashed rgba(255,255,255,.25);border-radius:12px;display:flex;
    flex-direction:column;align-items:center;justify-content:center;color:rgba(255,255,255,.45);font-size:24px;
    background:rgba(255,255,255,.04);transition:.15s;gap:2px}
  .bld-slot.empty:hover{border-color:var(--mint);color:var(--mint);background:rgba(0,229,122,.08)}
  .bld-slot-lbl{font-size:9px;font-weight:800;letter-spacing:.5px;color:inherit}
  .bld-kit-wrap{height:46px;display:flex;align-items:flex-end;justify-content:center;margin:0 auto 3px}
  .bld-kit{height:46px;max-width:50px;width:auto;object-fit:contain;filter:drop-shadow(0 3px 5px rgba(0,0,0,.4))}
  .bld-jersey{width:36px;height:36px;border-radius:9px;margin:0 auto 3px;display:flex;align-items:center;justify-content:center;
    font-family:'Inter';font-weight:800;font-size:10px;color:#fff;border:1px solid rgba(255,255,255,.25)}
  .bld-pl-nm{background:#04121a;color:#fff;font-size:11px;font-weight:700;padding:2px 4px;border-radius:5px 5px 0 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .bld-pl-mt{background:var(--mint);color:#04121a;font-size:10px;font-weight:800;padding:2px 4px;border-radius:0 0 5px 5px;font-family:'Inter'}
  .bld-rm{position:absolute;top:-6px;right:10px;width:18px;height:18px;border-radius:50%;background:var(--bad);color:#fff;
    font-size:10px;display:flex;align-items:center;justify-content:center;opacity:0;transition:.12s}
  .bld-slot:hover .bld-rm{opacity:1}
  .bld-note{color:var(--dim);font-size:12px;line-height:1.6;margin-top:12px;padding:12px 14px;background:var(--panel);border:1px solid var(--line);border-radius:12px}
  .bld-note b{color:var(--sub)}

  /* builder how-it-works */
  .bld-info{margin-top:22px}
  .bld-info-h{font-family:'Inter';font-weight:700;font-size:17px;margin-bottom:14px}
  .bld-info-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px}
  .bld-info-card{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:18px}
  .bld-info-card.bld-info-caveat{border-color:rgba(245,158,11,.3);background:#fffaf0}
  .bld-info-ic{font-size:22px;margin-bottom:8px}
  .bld-info-card h4{font-family:'Inter';font-weight:700;font-size:14.5px;margin-bottom:8px}
  .bld-info-card p{color:var(--sub);font-size:13px;line-height:1.6;margin-bottom:8px}
  .bld-info-card p:last-child{margin-bottom:0}
  .bld-info-card b{color:var(--ink)}
  .bld-info-sm{font-size:12px !important;color:var(--dim) !important}
  .bld-rules{list-style:none;display:flex;flex-direction:column;gap:6px;margin-top:4px}
  .bld-rules li{display:flex;align-items:center;gap:9px;font-size:13px;color:var(--sub)}
  .rp{font-size:10px;font-weight:800;padding:2px 7px;border-radius:5px;color:#04121a;min-width:34px;text-align:center}
  .rp.gk{background:#eab308} .rp.de{background:#4ade80} .rp.mi{background:#12d8e3} .rp.fw{background:#fb7185;color:#fff}
  .bld-grades{display:flex;gap:6px;margin:4px 0 8px}
  .gg{width:30px;height:30px;border-radius:8px;display:flex;align-items:center;justify-content:center;
    font-family:'Inter';font-weight:900;font-size:14px;color:var(--c);border:1.5px solid var(--c);background:color-mix(in srgb, var(--c) 12%, transparent)}

  .bld-picker{background:var(--panel);border:1px solid var(--line);border-radius:var(--r);padding:12px}
  .bld-search-row{display:flex;gap:7px;margin-bottom:8px}
  .bld-picker .field{padding:0 10px}
  .bld-picker .field input{padding:9px 0;font-size:13px}
  .bld-pos{margin-bottom:8px;width:100%}
  .bld-pos button{flex:1;padding:6px 4px;font-size:12px}
  .bld-team-sel{width:100%;margin-bottom:8px}
  .bld-sliders{display:flex;gap:12px;margin-bottom:10px}
  .bld-sliders .bld-filter{flex:1}
  .bld-filter-hd{display:flex;justify-content:space-between;font-size:11px;color:var(--sub);margin-bottom:4px;font-weight:600}
  .bld-filter-hd span:last-child{font-family:'Inter';color:var(--ink)}
  .bld-sliders input[type=range]{width:100%;height:4px;border-radius:4px;background:var(--line2);outline:none;-webkit-appearance:none;appearance:none}
  .bld-sliders input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:14px;height:14px;border-radius:50%;background:var(--mint);cursor:pointer;border:2px solid var(--panel)}
  .bld-sliders input[type=range]::-moz-range-thumb{width:14px;height:14px;border-radius:50%;background:var(--mint);cursor:pointer;border:2px solid var(--panel)}
  .bld-select{background:var(--panel2);border:1px solid var(--line2);color:var(--ink);border-radius:8px;padding:8px 10px;font-size:12.5px;font-family:'Inter';cursor:pointer;outline:none}
  .bld-select:focus{border-color:var(--mint)}
  .bld-reset{background:var(--panel2);border:1px solid var(--line2);color:var(--sub);border-radius:8px;width:38px;flex:none;cursor:pointer;font-size:14px;transition:.15s}
  .bld-reset:hover{color:var(--ink);border-color:var(--mint)}

  .bld-colhead{display:grid;grid-template-columns:1fr 46px 42px 42px 30px;gap:6px;align-items:center;
    padding:7px 8px;border-top:1px solid var(--line2);border-bottom:1px solid var(--line2);
    font-size:10.5px;text-transform:uppercase;letter-spacing:.4px;color:var(--dim);font-weight:700}
  .bld-colhead .ch-name{text-align:left}
  .bld-colhead .ch-sort{text-align:right;cursor:pointer;user-select:none;transition:.12s;white-space:nowrap}
  .bld-colhead .ch-sort:hover{color:var(--sub)}
  .bld-colhead .ch-sort.active{color:var(--mint)}
  .ch-ar{font-size:9px;margin-left:1px}
  .bld-colhead .ch-add{}

  .bld-list{max-height:500px;overflow-y:auto}
  .bld-item{display:grid;grid-template-columns:1fr 46px 42px 42px 30px;gap:6px;align-items:center;
    padding:8px;border-bottom:1px solid var(--line);cursor:pointer;transition:.1s}
  .bld-item:hover{background:var(--panel2)}
  .bld-item.picked{background:rgba(0,229,122,.08)}
  .bld-item.disabled{opacity:.4;cursor:not-allowed}
  .bld-item.disabled:hover{background:none}
  .bi-player{display:flex;align-items:center;gap:7px;min-width:0}
  .bld-list-kit{height:28px;max-width:31px;width:auto;object-fit:contain;flex:none;filter:drop-shadow(0 2px 3px rgba(0,0,0,.3))}
  .bi-name{display:flex;flex-direction:column;min-width:0;flex:1}
  .bi-name b{font-size:13px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .bi-name em{font-style:normal;color:var(--dim);font-size:10.5px;margin-top:1px}
  .bi-flag{color:var(--warn);font-weight:800}
  .bi-cost,.bi-own,.bi-pred{text-align:right;font-family:'Inter';font-size:12.5px}
  .bi-own{color:var(--sub)}
  .bi-pred{color:var(--mint);font-weight:700}
  .bi-add{text-align:center;font-weight:800;font-size:15px;color:var(--sub)}
  .bld-item.picked .bi-add{color:var(--mint)}
  .bld-list-hint{color:var(--dim);font-size:11px;text-align:center;padding:8px 4px 2px}

  .bld-list-hint{color:var(--dim);font-size:11.5px;text-align:center;padding:8px 4px 2px}

  .toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%) translateY(20px);
    background:#04121a;border:1px solid var(--line2);color:#fff;padding:11px 18px;border-radius:12px;
    font-size:13.5px;font-weight:600;opacity:0;pointer-events:none;transition:.2s;z-index:200}
  .toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
  /* template team - FPL pitch style */
  .tmpl-pitch{border-radius:var(--r);padding:24px 10px;border:1px solid var(--line2);overflow:hidden;
    background:#72bd86}
  .tmpl-line{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin-bottom:18px}
  .tmpl-line:last-child{margin-bottom:0}
  .tmpl-card{width:92px;text-align:center}
  .tmpl-face-wrap{position:relative;width:64px;height:64px;margin:0 auto 4px}
  .tmpl-face{width:64px;height:64px;border-radius:50%;object-fit:cover;object-position:top center;
    background:#0a5f36;border:2px solid rgba(255,255,255,.85);box-shadow:0 3px 8px rgba(0,0,0,.35)}
  .face-fb{display:flex;align-items:center;justify-content:center;font-family:'Inter';font-weight:800;
    font-size:16px;color:#fff;text-transform:uppercase}
  .tmpl-own{position:absolute;bottom:-3px;right:-3px;background:var(--accent);
    color:#fff;font-family:'Inter';font-weight:800;font-size:10px;padding:2px 6px;border-radius:20px;border:2px solid #0a5f36}
  .tmpl-nm{background:#04121a;color:#fff;font-size:11.5px;font-weight:700;padding:3px 5px;border-radius:5px 5px 0 0;
    white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .tmpl-mt{background:rgba(255,255,255,.92);color:#04121a;font-size:10px;font-weight:700;padding:2px 5px;border-radius:0 0 5px 5px}
  @media(max-width:560px){
    .bld-kit-wrap{height:40px}
    .bld-kit{height:40px;max-width:44px}
    .bld-list-kit{height:25px;max-width:28px}
  }
  @media(max-width:560px){.tmpl-card{width:74px}.tmpl-face-wrap,.tmpl-face{width:54px;height:54px}}

  /* player deep-dive header */
  .pdd-head-row{display:grid;grid-template-columns:72px minmax(170px,1fr) auto;align-items:center;gap:14px;margin-bottom:16px}
  .pdd-kit-wrap{width:72px;height:72px;border-radius:14px;background:var(--panel2);border:1px solid var(--line2);display:flex;align-items:center;justify-content:center;flex:none}
  .pdd-kit{height:62px;max-width:64px;width:auto;object-fit:contain;filter:drop-shadow(0 3px 6px rgba(0,0,0,.18))}
  .pdd-face-nm{font-family:'Inter';font-weight:800;font-size:19px}
  .pdd-face-mt{color:var(--sub);font-size:12.5px;margin-top:3px}
  .pdd-head-fixtures{justify-self:end;min-width:250px}
  .pdd-head-fixtures-label{display:block;color:var(--sub);font-size:10px;font-weight:800;letter-spacing:.45px;text-transform:uppercase;margin-bottom:6px}
  .pdd-head-fixtures-chips{display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end}
  .pdd-head-fixtures-chips span{min-width:42px;text-align:center;border-radius:5px;padding:4px 6px;font-size:9px;font-weight:800;color:#17212b}
  @media(max-width:700px){
    .pdd-head-row{grid-template-columns:64px 1fr}
    .pdd-kit-wrap{width:64px;height:64px}
    .pdd-kit{height:56px;max-width:58px}
    .pdd-head-fixtures{grid-column:1/-1;justify-self:stretch;min-width:0}
    .pdd-head-fixtures-chips{justify-content:flex-start}
  }

  /* ---------- ad slots (empty until a network is wired) ---------- */
  .ad-slot{min-height:0}
  .ad-slot[data-filled]{min-height:90px;margin:16px 0;border:1px dashed var(--line2);border-radius:12px;
    display:flex;align-items:center;justify-content:center;color:var(--dim);font-size:12px}

  /* ---------- hero / search ---------- */
  .hero{text-align:center;padding:26px 0 8px}
  .hero h2{
    font-family:'Inter';font-weight:900;letter-spacing:-1.5px;line-height:1;
    font-size:clamp(32px,6vw,60px);
    background:none;
    color:var(--ink);
  }
  .hero p{color:var(--sub);margin-top:12px;font-size:15px}
  .search{
    display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin:22px auto 8px;max-width:540px;
  }
  .search .field{
    flex:1;min-width:220px;display:flex;align-items:center;gap:10px;
    background:var(--panel);border:1.5px solid var(--line2);border-radius:13px;padding:0 14px;
    transition:border-color .15s, box-shadow .15s;
  }
  .search .field:focus-within{border-color:var(--mint);box-shadow:0 0 0 4px rgba(0,255,135,.12)}
  .search .field svg{flex:none;opacity:.5}
  .search input{
    width:100%;background:none;border:none;color:var(--ink);font-size:16px;padding:14px 0;outline:none;
    font-family:'Inter';letter-spacing:.5px;
  }
  .search button{
    background:var(--accent);color:#fff;
    border:none;border-radius:13px;padding:0 26px;font-weight:800;font-size:15px;cursor:pointer;
    font-family:'Inter';letter-spacing:.2px;transition:transform .1s, filter .15s;
  }
  .search button:hover{filter:brightness(1.06)}
  .search button:active{transform:translateY(1px)}
  .search button:disabled{opacity:.5;cursor:default}
  .hint{text-align:center;color:var(--dim);font-size:12.5px;margin-bottom:10px}
  .hint code{font-family:'Inter';color:var(--sub)}
  .recent{display:flex;gap:7px;justify-content:center;flex-wrap:wrap;margin:4px 0 8px}
  .recent .chip{
    background:var(--panel2);border:1px solid var(--line);color:var(--sub);
    font-family:'Inter';font-size:12px;padding:5px 11px;border-radius:20px;cursor:pointer;transition:.15s;
  }
  .recent .chip:hover{border-color:var(--mint);color:var(--ink)}

  /* ---------- status / errors ---------- */
  .status{text-align:center;padding:56px 0;color:var(--sub)}
  .spinner{
    width:34px;height:34px;border:3px solid var(--line2);border-top-color:var(--mint);
    border-radius:50%;margin:0 auto 16px;animation:spin .8s linear infinite;
  }
  @keyframes spin{to{transform:rotate(360deg)}}
  .banner{
    display:flex;gap:13px;align-items:flex-start;
    background:#fffaf0;
    border:1px solid rgba(245,158,11,.3);border-radius:var(--r);padding:16px 18px;margin:18px 0;
  }
  .banner.err{background:#fff5f6;border-color:rgba(244,63,94,.35)}
  .banner .ic{flex:none;width:22px;height:22px;color:var(--warn);margin-top:1px}
  .banner.err .ic{color:var(--bad)}
  .banner b{color:var(--ink)}
  .banner small{color:var(--sub);display:block;margin-top:3px;font-size:13px;line-height:1.55}

  /* ---------- reveal animation ---------- */
  .app{display:none}
  .reveal{opacity:0;transform:translateY(10px);animation:rise .5s cubic-bezier(.2,.7,.2,1) forwards}
  .reveal:nth-child(2){animation-delay:.05s}
  .reveal:nth-child(3){animation-delay:.1s}
  .reveal:nth-child(4){animation-delay:.15s}
  .reveal:nth-child(5){animation-delay:.2s}
  @keyframes rise{to{opacity:1;transform:none}}
  @media (prefers-reduced-motion:reduce){.reveal{animation:none;opacity:1;transform:none}.spinner{animation:none}}

  /* ---------- manager header ---------- */
  .mhead{
    position:relative;overflow:hidden;border-radius:var(--r);margin:20px 0 16px;
    background:var(--panel);
    border:1px solid var(--line2);padding:22px 24px;
  }
  .mhead::after{content:"";position:absolute;right:-40px;top:-40px;width:220px;height:220px;
    background:transparent;pointer-events:none}
  .mhead .top{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap;position:relative}
  .mhead .name{font-family:'Inter';font-weight:800;font-size:26px;letter-spacing:-.5px}
  .mhead .mgr{color:#d9c9e8;font-size:13.5px;margin-top:3px;display:flex;align-items:center;gap:7px}
  .mhead .gwtag{
    background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.18);
    padding:7px 13px;border-radius:10px;font-size:12.5px;font-weight:700;white-space:nowrap;
  }
  /* deadline countdown */
  .countdown{background:var(--panel);border:1px solid var(--line2);
    border-radius:var(--r);padding:16px 20px;margin-bottom:16px;display:flex;align-items:center;
    justify-content:space-between;gap:16px;flex-wrap:wrap}
  .cd-label{font-family:'Inter';font-weight:700;font-size:14px;color:#e9d7f2}
  .cd-boxes{display:flex;gap:10px}
  .cd-box{background:rgba(0,0,0,.28);border:1px solid rgba(255,255,255,.14);border-radius:11px;
    padding:8px 12px;min-width:56px;text-align:center}
  .cd-num{font-family:'Inter';font-weight:700;font-size:24px;color:#fff;line-height:1}
  .cd-unit{font-size:10px;color:#c9b3d8;text-transform:uppercase;letter-spacing:.6px;margin-top:4px}
  .cd-live{font-family:'Inter';font-weight:700;color:var(--mint)}

  /* watchlist stars + toggles */
  .head-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
  .share-btn{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.2);color:#fff;
    font-family:'Inter';font-weight:600;font-size:12.5px;padding:8px 14px;border-radius:10px;cursor:pointer;transition:.15s}
  .share-btn:hover{background:var(--mint);color:#04121a;border-color:transparent}
  .star-col{width:36px;text-align:center;padding-left:8px !important}
  .star{background:none;border:none;color:var(--dim);font-size:19px;cursor:pointer;line-height:1;padding:2px;transition:.12s}
  .star:hover{color:var(--warn);transform:scale(1.15)}
  .star.on{color:#ffc531}
  .watch-toggle{background:var(--panel);border:1px solid var(--line2);color:var(--sub);font-family:'Inter';
    font-weight:600;font-size:12.5px;padding:9px 14px;border-radius:11px;cursor:pointer;transition:.15s;white-space:nowrap}
  .watch-toggle:hover{color:var(--ink);border-color:var(--warn)}
  .watch-toggle.on{background:rgba(255,197,49,.15);color:#ffc531;border-color:rgba(255,197,49,.4)}

  /* weekly recap */
  .recap-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px}
  .recap-item{display:flex;align-items:center;gap:13px;background:var(--panel2);border:1px solid var(--line);
    border-radius:12px;padding:14px 16px}
  .recap-ic{font-size:24px;flex:none;width:42px;height:42px;display:flex;align-items:center;justify-content:center;
    background:var(--panel);border-radius:11px}
  .recap-v{font-family:'Inter';font-weight:800;font-size:18px;display:flex;align-items:center;gap:6px}
  .recap-k{color:var(--sub);font-size:11.5px;text-transform:uppercase;letter-spacing:.4px;margin-top:3px}
  .recap-media{position:relative;flex:none;width:46px;height:46px;border-radius:50%;overflow:hidden;display:flex;align-items:center;justify-content:center;background:var(--panel);border:1px solid var(--line)}
  .recap-face{width:100%;height:100%;object-fit:cover;display:block}
  .face-fb.recap-face{display:flex;align-items:center;justify-content:center;border-radius:50%;font-size:12px;font-weight:800;color:#fff}
  .recap-media-badge{position:absolute;right:-3px;bottom:-3px;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:#0f1720;color:#fff;border:2px solid #fff;display:flex;align-items:center;justify-content:center;font-size:9px;font-weight:800;letter-spacing:.2px;box-shadow:0 2px 6px rgba(0,0,0,.2)}
  .head-actions{display:flex;flex-direction:column;align-items:flex-end;gap:8px}
  .share-btn{background:rgba(0,229,122,.16);border:1px solid rgba(0,229,122,.4);color:var(--mint);
    font-family:'Inter';font-weight:700;font-size:12.5px;padding:7px 13px;border-radius:10px;cursor:pointer;transition:.15s;white-space:nowrap}
  .share-btn:hover{background:rgba(0,229,122,.26)}
  .star-col{width:36px;text-align:center}
  .star{background:none;border:none;color:var(--dim);font-size:18px;cursor:pointer;line-height:1;padding:2px;transition:.12s}
  .star:hover{color:var(--warn)}
  .star.on{color:#fbbf24}
  .watch-toggle{background:var(--panel);border:1px solid var(--line2);color:var(--sub);font-family:'Inter';
    font-weight:600;font-size:12.5px;padding:8px 13px;border-radius:10px;cursor:pointer;transition:.15s;white-space:nowrap}
  .watch-toggle:hover{color:var(--ink);border-color:var(--warn)}
  .watch-toggle.on{background:rgba(251,191,36,.15);color:#fbbf24;border-color:rgba(251,191,36,.4)}
  .ovr{display:flex;gap:26px;margin-top:18px;position:relative;flex-wrap:wrap}
  .ovr .b .v{font-family:'Inter';font-weight:800;font-size:22px;display:flex;align-items:center;gap:6px}
  .ovr .b .k{color:#cbb8dc;font-size:11px;text-transform:uppercase;letter-spacing:.5px;margin-top:1px}
  .delta{font-size:12px;font-weight:700;padding:1px 6px;border-radius:6px;display:inline-flex;align-items:center;gap:2px}
  .delta.up{background:rgba(0,255,135,.16);color:var(--mint)}
  .delta.down{background:rgba(244,63,94,.16);color:#ff8098}

  /* ---------- stat grid ---------- */
  .grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px;margin-bottom:18px}
  .card{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:15px 16px;position:relative;overflow:hidden}
  .card .v{font-family:'Inter';font-weight:800;font-size:23px;line-height:1}
  .card .k{color:var(--sub);font-size:11px;text-transform:uppercase;letter-spacing:.5px;margin-top:6px}
  .card .sub{color:var(--dim);font-size:11.5px;margin-top:3px}

  /* ---------- section ---------- */
  .sec{margin:24px 0 12px;display:flex;align-items:center;gap:10px}
  .sec h3{font-family:'Inter';font-weight:700;font-size:15px;letter-spacing:.3px}
  .sec .ln{flex:1;height:1px;background:var(--line2)}
  .sec .badge{font-size:11px;color:var(--dim);font-family:'Inter'}

  .panel{background:var(--panel);border:1px solid var(--line);border-radius:var(--r);padding:18px}

  /* ---------- sparkline ---------- */
  .spark-wrap{position:relative}
  .spark-tip{position:absolute;pointer-events:none;background:#000;border:1px solid var(--line2);
    border-radius:8px;padding:6px 9px;font-size:11.5px;opacity:0;transition:opacity .1s;white-space:nowrap;z-index:5}

  /* ---------- pitch ---------- */
  .pitch{
    position:relative;border-radius:var(--r);padding:24px 8px 16px;border:1px solid var(--line2);overflow:hidden;
    background:#72bd86;
  }
  .pitch::before{content:"";position:absolute;inset:14px;border:2px solid rgba(255,255,255,.15);border-radius:8px;pointer-events:none}
  .pitch::after{content:"";position:absolute;left:50%;top:14px;bottom:14px;width:2px;background:rgba(255,255,255,.1);transform:translateX(-50%);pointer-events:none;opacity:0}
  .prow{display:flex;justify-content:center;gap:6px;flex-wrap:wrap;margin-bottom:16px;position:relative;z-index:2}
  .prow:last-child{margin-bottom:0}

  .pl{width:112px;text-align:center;position:relative;cursor:default}
  .pl .shirt{height:58px;display:flex;align-items:flex-end;justify-content:center;position:relative;margin-bottom:2px}
  .pl .kit{height:54px;width:auto;max-width:62px;object-fit:contain;filter:drop-shadow(0 3px 6px rgba(0,0,0,.4))}
  .pl .jersey{
    width:36px;height:36px;border-radius:9px;display:flex;align-items:center;justify-content:center;
    font-family:'Inter';font-weight:800;font-size:10px;color:#fff;
    box-shadow:0 3px 8px rgba(0,0,0,.35);border:1px solid rgba(255,255,255,.25);
  }
  .arm{position:absolute;top:-6px;right:16px;width:19px;height:19px;border-radius:50%;
    background:#fff;color:#111;font-weight:900;font-size:11px;display:flex;align-items:center;justify-content:center;
    border:1.5px solid #37003c;z-index:3}
  .arm.vc{background:#c7c7c7}
  .pl .nm{background:#04121a;color:#fff;font-size:11px;font-weight:700;padding:3px 5px;border-radius:5px 5px 0 0;
    white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:3px}
  .pl .meta{background:var(--mint);color:#04121a;font-size:10.5px;font-weight:800;padding:2px 5px;display:flex;justify-content:space-between}
  .pl.benchpl .meta{background:#9fb0c3}
  .fx{display:flex;gap:1.5px;margin-top:2px}
  .fx span{flex:1;min-width:0;font-size:8.5px;font-weight:800;color:#04121a;border-radius:3px;padding:2px 0;font-family:'Inter';text-align:center;letter-spacing:-.3px}
  .fdr1{background:var(--fdr1)}.fdr2{background:var(--fdr2)}.fdr3{background:var(--fdr3)}
  .fdr4{background:var(--fdr4);color:#fff}.fdr5{background:var(--fdr5);color:#fff}
  .empty{text-align:center;color:#dbe6f0;padding:36px 10px;font-size:14px;position:relative;z-index:2}

  .bench-wrap{margin-top:14px}
  .bench-lbl{color:var(--sub);font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:1.5px;text-align:center;margin-bottom:10px}
  .bench{background:var(--panel2);border:1px dashed var(--line2);border-radius:14px;padding:14px 8px}

  /* tables */
  table{width:100%;border-collapse:collapse;font-size:13.5px}
  th{color:var(--dim);text-align:left;font-weight:600;font-size:11px;text-transform:uppercase;letter-spacing:.4px;padding:8px 10px;border-bottom:1px solid var(--line2)}
  td{padding:10px;border-bottom:1px solid var(--line)}
  tr:last-child td{border-bottom:none}
  td.num,th.num{text-align:right;font-family:'Inter'}
  .chipbadge{display:inline-block;background:var(--panel2);border:1px solid var(--line2);border-radius:6px;padding:2px 8px;font-size:11.5px;font-weight:600;color:var(--cyan)}

  .legend{display:flex;gap:16px;justify-content:center;flex-wrap:wrap;color:var(--sub);font-size:12px;margin-top:14px;align-items:center}
  .legend b{display:inline-block;width:13px;height:13px;border-radius:3px;vertical-align:-2px;margin-right:5px}
  .legend-title{font-weight:700;color:var(--ink)}
  .legend-sep{color:var(--dim);border-left:1px solid var(--line2);padding-left:14px}

  .chart-tabs{display:flex;gap:6px;margin-bottom:10px;flex-wrap:wrap}
  .ct{background:var(--panel2);border:1px solid var(--line2);color:var(--sub);font-size:12.5px;font-weight:600;
    padding:7px 14px;border-radius:9px;cursor:pointer;transition:.15s;font-family:'Inter'}
  .ct:hover{color:var(--ink)}
  .ct.active{background:var(--accent);color:#fff;border-color:transparent}

  .bars{display:flex;align-items:stretch;gap:14px;height:200px;padding:6px 4px 0}
  .bar{flex:1;display:flex;flex-direction:column;align-items:center;min-width:0}
  .bar .val{font-family:'Inter';font-size:12px;font-weight:600;color:var(--ink);margin-bottom:6px}
  .bar .track{flex:1;width:100%;display:flex;align-items:flex-end;justify-content:center}
  .bar .col{width:100%;max-width:56px;border-radius:8px 8px 0 0;
    background:var(--accent);transition:height .5s cubic-bezier(.2,.7,.2,1)}
  .bar .lbl{font-size:11.5px;color:var(--sub);text-align:center;margin-top:8px}
  .bar .rk{font-size:10.5px;color:var(--dim);font-family:'Inter'}

  .cap-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}
  .cap-item{background:var(--panel2);border:1px solid var(--line);border-radius:12px;padding:14px}
  .cap-item .v{font-family:'Inter';font-weight:800;font-size:18px}
  .cap-item .k{color:var(--sub);font-size:11px;text-transform:uppercase;letter-spacing:.4px;margin-top:4px}
  .tag-pill{display:inline-block;font-size:10.5px;font-weight:700;padding:2px 8px;border-radius:20px;margin-left:6px}
  .tag-pill.diff{background:rgba(4,245,255,.15);color:var(--cyan)}
  .tag-pill.tmpl{background:rgba(148,163,184,.15);color:var(--sub)}

  .lg-table td.rank,.lg-table th.rank{text-align:right;font-family:'Inter';white-space:nowrap}
  .lg-name{display:flex;align-items:center;gap:9px}
  .lg-name .dot{width:8px;height:8px;border-radius:50%;flex:none}
  .lg-name .dot.classic{background:var(--mint)} .lg-name .dot.h2h{background:var(--cyan)}
  .lg-type{font-size:10px;color:var(--dim);text-transform:uppercase;letter-spacing:.4px}
  .lg-move{font-size:11px;font-weight:700;padding:1px 6px;border-radius:6px;margin-left:7px;display:inline-flex;gap:2px;align-items:center}
  .lg-move.up{background:rgba(0,255,135,.15);color:var(--mint)}
  .lg-move.down{background:rgba(244,63,94,.15);color:#ff8098}
  .lg-move.same{background:rgba(148,163,184,.12);color:var(--sub)}
  .lg-cat{margin:16px 0 8px;font-size:12px;font-weight:700;color:var(--sub);text-transform:uppercase;letter-spacing:.6px}
  .lg-cat:first-child{margin-top:0}
  .lg-clickable{cursor:pointer;transition:background .12s}
  .lg-clickable:hover,.lg-clickable:focus-visible{background:var(--panel2);outline:none}
  .lg-clickable:hover .lg-link{color:var(--mint)}
  .lg-link{color:var(--ink);font-weight:600}
  .lg-chev{color:var(--dim);margin-left:8px;font-weight:700}
  .lg-clickable:hover .lg-chev{color:var(--mint)}

  .modal{position:fixed;inset:0;z-index:100;display:none;align-items:flex-end;justify-content:center;
    background:rgba(3,6,12,.72);backdrop-filter:blur(3px);animation:fade .2s ease}
  @keyframes fade{from{opacity:0}to{opacity:1}}
  @media(min-width:640px){.modal{align-items:center}}
  .modal-card{background:var(--panel);border:1px solid var(--line2);border-radius:18px 18px 0 0;
    width:100%;max-width:600px;max-height:88vh;display:flex;flex-direction:column;
    box-shadow:0 -20px 60px rgba(0,0,0,.5);animation:slideup .25s cubic-bezier(.2,.7,.2,1)}
  @media(min-width:640px){.modal-card{border-radius:18px}}
  @keyframes slideup{from{transform:translateY(30px);opacity:.6}to{transform:none;opacity:1}}
  @media (prefers-reduced-motion:reduce){.modal,.modal-card{animation:none}}
  .modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;
    padding:18px 20px;border-bottom:1px solid var(--line);position:sticky;top:0;background:var(--panel);border-radius:18px 18px 0 0}
  .modal-title{font-family:'Inter';font-weight:800;font-size:18px;line-height:1.2}
  .modal-sub{color:var(--dim);font-size:12px;margin-top:3px}
  .modal-x{background:var(--panel2);border:1px solid var(--line2);color:var(--sub);
    width:32px;height:32px;border-radius:9px;cursor:pointer;font-size:14px;flex:none;transition:.15s}
  .modal-x:hover{color:var(--ink);border-color:var(--bad)}
  .modal-body{overflow-y:auto;padding:16px 20px;flex:1}
  .modal-foot{padding:12px 20px;border-top:1px solid var(--line)}
  .modal-foot:empty{display:none}
  .lm-more{width:100%;background:var(--panel2);border:1px solid var(--line2);color:var(--ink);
    padding:11px;border-radius:11px;cursor:pointer;font-weight:600;font-size:13.5px;transition:.15s}
  .lm-more:hover{border-color:var(--mint)}
  .lm-hint{color:var(--sub);font-size:12.5px;margin-bottom:12px}
  .lm-hint b{color:var(--mint)}
  .lm-table{width:100%}
  .lm-table th.rank,.lm-table td.rank{text-align:right;font-family:'Inter';white-space:nowrap}
  .lm-table td:first-child{width:64px}
  .lm-team{font-weight:600;font-size:13.5px;display:flex;align-items:center;gap:6px}
  .lm-mgr{color:var(--dim);font-size:11.5px;margin-top:1px}
  .lm-you{background:var(--mint);color:#04121a;font-size:9px;font-weight:800;padding:1px 5px;border-radius:4px;letter-spacing:.5px}
  .lm-me{background:#eef9f4}
  .lm-me td:first-child{box-shadow:inset 3px 0 0 var(--mint)}

  footer{text-align:center;color:var(--dim);font-size:12px;margin-top:36px;line-height:1.7}
  footer a{color:var(--sub)}

  @media (max-width:560px){
    .mhead .name{font-size:22px}
    .ovr{gap:18px}
    .pl{width:78px}
  }

/* ---------- club kit thumbnails ---------- */
.club-kit,.scout-kit,.pr-kit,.value-kit,.ps-kit,.inj-kit,.sp-kit,.bld-kit,.bld-list-kit{
  width:auto;object-fit:contain;flex:none;filter:drop-shadow(0 2px 4px rgba(0,0,0,.28));
}
.scout-kit{height:38px;max-width:42px}
.pr-kit{height:32px;max-width:36px}
.value-player{display:flex;align-items:center;gap:8px}
.value-kit{height:30px;max-width:34px}
.ps-kit{height:36px;max-width:40px}
.inj-kit{height:40px;max-width:44px}
.sp-kit{height:38px;max-width:42px}
.pr-row .l{flex:1}
@media(max-width:560px){
  .scout-kit{height:34px;max-width:38px}
  .inj-kit{height:34px;max-width:38px}
  .sp-kit{height:34px;max-width:38px}
  .ps-kit{height:32px;max-width:36px}
}

/* ---------- home dashboard ---------- */
.home-hero{padding:42px 0 26px;text-align:center;position:relative}
.home-hero::before{content:"";position:absolute;left:50%;top:8px;transform:translateX(-50%);width:min(760px,90%);height:220px;background:transparent;pointer-events:none}
.home-eyebrow{position:relative;display:inline-flex;align-items:center;gap:7px;color:var(--mint);background:rgba(0,229,122,.08);border:1px solid rgba(0,229,122,.2);font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.8px;padding:6px 10px;border-radius:999px}
.home-hero h2{position:relative;font-family:'Inter';font-size:clamp(34px,6vw,62px);line-height:1.02;letter-spacing:-2px;font-weight:900;max-width:820px;margin:16px auto 0;background:none;color:var(--ink)}
.home-hero>p{position:relative;color:var(--sub);font-size:15px;max-width:680px;margin:15px auto 0}
.home-search{position:relative;max-width:610px;margin-top:24px}
.home-recent{min-height:26px;display:flex;align-items:center;justify-content:center;gap:6px;flex-wrap:wrap;margin-top:8px}
.home-recent-label{font-size:11px;color:var(--dim);font-weight:700;text-transform:uppercase;letter-spacing:.5px;margin-right:2px}
.home-recent-chip{border:1px solid var(--line);background:var(--panel);color:var(--sub);padding:4px 9px;border-radius:999px;font-size:11.5px;cursor:pointer}
.home-recent-chip:hover{border-color:var(--mint);color:var(--ink)}
.home-recent-hint{font-size:11.5px;color:var(--dim)}
.home-recent-hint b{color:var(--sub)}
.home-status-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:4px 0 30px}
.home-status-card{background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:17px 18px;min-height:124px;position:relative;overflow:hidden}
.home-status-card::after{content:"";position:absolute;width:100px;height:100px;border-radius:50%;right:-35px;top:-42px;background:rgba(18,216,227,.055)}
.home-card-label{font-size:10.5px;color:var(--dim);font-weight:800;text-transform:uppercase;letter-spacing:.7px}
.home-card-value{font-family:'Inter';font-size:30px;font-weight:900;letter-spacing:-.7px;margin-top:8px;line-height:1.1}
.home-card-value.small{font-size:20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.home-card-value.mint{color:var(--mint)}
.home-card-sub{color:var(--sub);font-size:11.5px;margin-top:6px}
.home-card-loading{color:var(--dim);font-size:12px;margin-top:18px}
.home-card-action,.home-link-btn,.home-inline-btn{background:none;border:none;color:var(--mint);font-family:'Inter';font-weight:700;font-size:11.5px;cursor:pointer;padding:0}
.home-card-action{margin-top:8px}
.home-team-stats{display:flex;gap:16px;color:var(--sub);font-size:11px;margin-top:8px}
.home-team-stats b{color:var(--ink);font-family:'Inter';font-size:13px}
.home-section{margin:0 0 30px}
.home-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:12px}
.home-section-kicker{font-size:10.5px;text-transform:uppercase;letter-spacing:.7px;font-weight:800;color:var(--mint);margin-bottom:2px}
.home-section h3{font-family:'Inter';font-size:21px;font-weight:800;letter-spacing:-.4px}
.home-link-btn{color:var(--sub);padding:5px 0}.home-link-btn:hover{color:var(--mint)}
.home-insights{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.home-insight{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:14px;min-width:0;transition:transform .15s,border-color .15s}
.home-insight:hover{transform:translateY(-2px);border-color:var(--line2)}
.home-insight-type{color:var(--dim);font-size:9.5px;text-transform:uppercase;letter-spacing:.6px;font-weight:800;margin-bottom:10px}
.home-insight-player{display:flex;align-items:center;gap:9px;min-width:0}
.home-kit{height:38px;max-width:42px;width:auto;object-fit:contain;filter:drop-shadow(0 2px 4px rgba(0,0,0,.28));flex:none}
.home-insight-name{font-weight:800;font-size:13.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.home-insight-meta{font-size:10.5px;color:var(--dim);margin-top:1px}
.home-insight-value{font-family:'Inter';font-size:18px;color:var(--mint);font-weight:800;margin-top:12px}
.home-insight-sub{font-size:10.5px;color:var(--sub);margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.home-fixtures{background:var(--panel);border:1px solid var(--line);border-radius:15px;overflow:hidden}
.home-fixture-row{display:grid;grid-template-columns:28px 42px minmax(120px,1fr) auto 70px;align-items:center;gap:10px;padding:10px 14px;border-bottom:1px solid var(--line)}
.home-fixture-row:last-child{border-bottom:none}
.home-fixture-rank{font-family:'Inter';font-size:14px;font-weight:800;color:var(--dim);text-align:center}
.home-fixture-kit{height:34px;max-width:38px;width:auto;object-fit:contain;filter:drop-shadow(0 2px 4px rgba(0,0,0,.25))}
.home-fixture-team{min-width:0}.home-fixture-team b{font-size:13.5px}.home-fixture-team small{display:block;color:var(--dim);font-size:10px}
.home-fixture-run{display:flex;gap:4px}.home-fixture-run span{font-family:'Inter';font-size:9.5px;font-weight:800;color:#04121a;padding:4px 6px;border-radius:5px;min-width:32px;text-align:center}
.home-fixture-avg{text-align:right}.home-fixture-avg b{font-family:'Inter';font-size:13px}.home-fixture-avg small{display:block;color:var(--dim);font-size:9px}
.home-tools{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.home-tool{display:grid;grid-template-columns:40px 1fr auto;align-items:center;gap:11px;text-align:left;background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:13px 14px;color:var(--ink);cursor:pointer;font-family:'Inter';transition:.15s}
.home-tool:hover{border-color:rgba(0,229,122,.45);background:var(--panel2)}
.home-tool-icon{display:flex;width:36px;height:36px;border-radius:10px;align-items:center;justify-content:center;background:rgba(0,229,122,.1);border:1px solid rgba(0,229,122,.18);color:var(--mint);font-family:'Inter';font-weight:900;font-size:18px}
.home-tool b{display:block;font-size:13px}.home-tool small{display:block;font-size:10.5px;color:var(--dim);margin-top:2px}
.home-tool-arrow{color:var(--dim);font-size:18px}.home-tool:hover .home-tool-arrow{color:var(--mint)}
.home-skeleton{min-height:150px;border-radius:14px;background:var(--panel2);background-size:200% 100%;animation:homeShimmer 1.4s infinite}.home-skeleton.wide{min-height:190px}
@keyframes homeShimmer{to{background-position:-200% 0}}
.home-empty{grid-column:1/-1;padding:28px;text-align:center;color:var(--sub);font-size:12px}
.home-inline-btn{margin-left:5px}
@media(max-width:800px){.home-insights{grid-template-columns:repeat(2,1fr)}.home-status-grid{grid-template-columns:1fr 1fr}}
@media(max-width:560px){
  .home-hero{padding-top:30px}.home-hero h2{font-size:38px;letter-spacing:-1.3px}.home-hero>p{font-size:13.5px}
  .home-status-grid,.home-insights,.home-tools{grid-template-columns:1fr}.home-status-card:last-child{grid-column:auto}
  .home-fixture-row{grid-template-columns:24px 36px 1fr 66px}.home-fixture-run{grid-column:3/5;margin-top:-2px}.home-fixture-avg{grid-column:4;grid-row:1;text-align:right}.home-fixture-kit{height:30px}
  .home-section-head{align-items:flex-start}.home-link-btn{font-size:10.5px}
}

/* ---------- top captain picks ---------- */
.captain-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:9px}
.captain-card{display:grid;grid-template-columns:28px 44px minmax(0,1fr) auto;align-items:center;gap:10px}
.captain-kit{height:38px;max-width:42px;width:auto;object-fit:contain}
.captain-info{min-width:0}.captain-info b{display:block;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.captain-info small,.captain-share small{display:block;color:var(--dim);font-size:9.5px;margin-top:1px}
.captain-share{text-align:right}.captain-share b{font-family:'Inter';font-size:16px}
.captain-bar{border-radius:5px;overflow:hidden;margin-top:7px}.captain-bar i{display:block;height:100%;border-radius:5px}
@media(max-width:720px){.captain-grid{grid-template-columns:1fr}}

/* ==========================================================================
   FPL PEEK — LIGHT PRODUCT UI
   Flat surfaces, restrained accent colour, no decorative gradients.
   ========================================================================== */
html{background:var(--bg)}
body{background:var(--bg);color:var(--ink);font-family:'Inter',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;padding-bottom:64px}
.wrap{max-width:1160px;padding:0 22px}

/* Header + navigation */
.nav{margin:0 -22px;padding:15px 22px 13px;background:rgba(255,255,255,.97);border-bottom:1px solid var(--line);backdrop-filter:blur(12px)}
.brand{gap:10px}.brand .mark{width:34px;height:34px;border-radius:9px;background:var(--accent);color:#fff;box-shadow:none;font-family:'Inter';font-size:15px;font-weight:800}
.brand h1{font-family:'Inter';font-size:18px;font-weight:800;letter-spacing:-.3px}.brand .tag{font-size:10px;text-transform:none;letter-spacing:0;color:var(--dim);font-weight:500}
.tabs{position:sticky;top:63px;z-index:35;margin:0 -22px 18px;padding:8px 22px 7px;gap:2px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:rgba(255,255,255,.96)}
.tab{flex:none;padding:8px 11px;border-radius:8px;color:#66717e;font-size:12.5px;font-weight:600}
.tab:hover{background:var(--panel2);color:var(--ink)}
.tab.active{background:#e8f5ef;color:#08774d}
.tabpanel{animation:none}

/* Typography + shared controls */
.thead{padding:18px 0 10px}.thead h2,.home-section h3,.bld-info-h,.pdd-face-nm{font-family:'Inter';font-weight:800;letter-spacing:-.45px}.thead h2{font-size:clamp(24px,3vw,31px)}.thead p{color:var(--sub);font-size:13.5px}
.seg{background:#fff;border-color:var(--line);border-radius:9px;padding:3px}.seg button{border-radius:6px;color:var(--sub)}.seg button.active{background:var(--panel2);box-shadow:none;color:var(--ink)}
.ctl-lbl{color:var(--dim)}
button,input,select{font-family:'Inter',system-ui,sans-serif}

/* Cards / tables */
.fx-scroll,.tbl-scroll,.tbl-scroll-top,.plcols-panel,.live-row,.inj-row,.sp-card,.scout-note,.scout-row,.ps-row,.pr-row,.pdd-card,.modal-card{background:#fff;border-color:var(--line);box-shadow:none}
.fxg th,table.dt th{background:#fafbfc;color:#71808f}.fxg td,table.dt td{border-color:#edf0f3}table.dt tr:hover td{background:#fafbfc}
.tbl-scroll-top::-webkit-scrollbar-thumb{background:#cad2da}
.plcols-panel{padding:13px 15px}.plcol-chk{color:var(--sub)}

/* Home = dashboard, not landing page */
.home-hero{text-align:left;padding:25px 0 18px;max-width:none}
.home-hero::before{display:none}.home-hero h2{font-family:'Inter';font-size:clamp(30px,4.2vw,44px);line-height:1.06;letter-spacing:-1.5px;font-weight:800;max-width:660px;margin:6px 0 0;color:var(--ink)}
.home-eyebrow{color:var(--accent);font-size:11px;letter-spacing:.4px;text-transform:uppercase;font-weight:800}
.home-hero>p{font-size:14px;color:var(--sub);max-width:650px;margin:9px 0 0}
.home-search{justify-content:flex-start;margin:18px 0 7px;max-width:570px}.home-recent{justify-content:flex-start;margin:8px 0 0}
.search .field{background:#fff;border:1px solid var(--line2);border-radius:10px;box-shadow:0 1px 2px rgba(20,30,40,.03)}
.search .field:focus-within{border-color:#70b99a;box-shadow:0 0 0 3px rgba(7,155,98,.09)}
.search input{color:var(--ink);font-family:'Inter';font-size:14px;padding:12px 0;letter-spacing:0}.search button{background:var(--accent);color:#fff;border-radius:10px;padding:0 20px;font-family:'Inter';font-weight:700;font-size:13px;box-shadow:none}.search button:hover{filter:none;background:#078c59}
.home-recent-chip,.recent .chip{background:#fff;border-color:var(--line);color:var(--sub);border-radius:8px;font-family:'Inter';font-size:11.5px}.home-recent-chip:hover,.recent .chip:hover{border-color:#99cbb6;color:#08774d}
.home-status-grid{gap:10px;margin:4px 0 28px}.home-status-card{background:#fff;border-color:var(--line);border-radius:12px;padding:16px 17px;min-height:112px}.home-status-card::after{display:none}.home-card-label{font-size:10px;color:#7d8996;letter-spacing:.5px}.home-card-value{font-family:'Inter';font-size:27px;font-weight:800;letter-spacing:-.7px}.home-card-value.small{font-size:19px}.home-card-value.mint{color:#08774d}.home-card-sub{color:var(--sub)}.home-card-action,.home-link-btn,.home-inline-btn{color:#08774d}
.home-section{margin-bottom:28px}.home-section-kicker{color:#7d8996;font-size:9.5px;letter-spacing:.5px}.home-section h3{font-size:19px}.home-link-btn{color:var(--sub)}.home-link-btn:hover{color:#08774d}
.home-insights{gap:9px}.home-insight{border-radius:11px;padding:13px;background:#fff;transition:border-color .15s}.home-insight:hover{transform:none;border-color:#bdc8d1}.home-insight-type{color:#85909c}.home-insight-name{font-weight:700}.home-insight-value{color:#08774d;font-size:17px}.home-kit,.home-fixture-kit,.captain-kit,.bld-list-kit,.bld-kit{filter:none}
.home-fixtures{border-radius:11px}.home-fixture-row{padding:10px 13px}.home-fixture-rank{font-family:'Inter';font-weight:700}.home-fixture-team b{font-weight:700}
.home-tools{gap:9px}.home-tool{border-radius:11px;padding:12px 13px;background:#fff;transition:border-color .15s,background .15s}.home-tool:hover{border-color:#b8c4cc;background:#fafbfc}.home-tool-icon{width:34px;height:34px;border-radius:8px;background:#edf7f2;border:0;color:#08774d;font-family:'Inter';font-size:14px}.home-tool b{font-weight:700}.home-tool-arrow{color:#9aa4ae}.home-tool:hover .home-tool-arrow{color:#08774d}.home-skeleton{background:#edf1f4;animation:homePulse 1.2s ease-in-out infinite}@keyframes homePulse{50%{opacity:.58}}

/* My Team */
.hero{text-align:left;padding:22px 0 8px}.hero h2{font-family:'Inter';font-size:clamp(29px,4vw,42px);letter-spacing:-1.2px;line-height:1.08;color:var(--ink);background:none}.hero p{text-align:left;margin-top:9px;font-size:14px}.hero .search{justify-content:flex-start;margin-left:0}.hint{text-align:left}.recent{justify-content:flex-start}
.mhead{background:#fff;border:1px solid var(--line);padding:19px 20px}.mhead::after{display:none}.mhead .name{font-family:'Inter';font-size:24px;color:var(--ink)}.mhead .mgr{color:var(--sub)}.mhead .gwtag{background:#f3f6f8;border-color:var(--line);color:var(--sub)}
.countdown{background:#fff;border-color:var(--line);padding:14px 17px}.cd-label{font-family:'Inter';color:var(--sub)}.cd-box{background:#f6f8fa;border-color:var(--line);border-radius:8px}.cd-num{color:var(--ink);font-size:21px}.cd-unit{color:var(--dim)}.cd-live{color:#08774d;font-family:'Inter'}
.share-btn{background:#fff;border-color:var(--line2);color:var(--sub)}.share-btn:hover{background:#f3f6f8;color:var(--ink);border-color:var(--line2)}
.sec h3{font-family:'Inter';font-weight:800}.sec .ln{background:var(--line)}

/* Pitch views retain football context, but are flatter/lighter */
.pitch,.tmpl-pitch{background:#72bd86;border-color:#63ac77}.pitch::before{border-color:rgba(255,255,255,.6)}
.pl .nm,.tmpl-nm,.bld-pl-nm{background:#fff;color:var(--ink);border:1px solid rgba(23,33,43,.08);border-bottom:0;font-weight:700}.pl .meta,.tmpl-mt,.bld-pl-mt{background:#edf7f2;color:#176b4c;border:1px solid rgba(23,33,43,.08);border-top:0}.tmpl-own{background:#fff;color:#08774d;border-color:#63ac77}.tmpl-face{border-color:rgba(255,255,255,.8);box-shadow:none}

/* Builder */
.bld-top,.bld-note,.bld-info-card,.bld-playerbox{background:#fff;border-color:var(--line);box-shadow:none}.bld-gauge{background:#fff;border:4px solid var(--line2);width:60px;height:60px}.bld-gauge::after{display:none}.bld-grade,.bld-num{z-index:1}.bld-btn{background:var(--accent);color:#fff;border-radius:8px}.bld-btn.ghost{background:#fff;color:var(--sub);border-color:var(--line)}.bld-btn:hover{filter:none}.bld-slot.empty{border-color:rgba(23,33,43,.22);color:rgba(23,33,43,.48);background:rgba(255,255,255,.32)}.bld-slot.empty:hover{border-color:#08774d;color:#08774d;background:rgba(255,255,255,.5)}.bld-item.picked{background:#eef9f4}.bi-pred,.bld-item.picked .bi-add{color:#08774d}.bld-warn-in{background:#fff5f6;color:#b83d51;border-color:#f0c6cd}.toast{background:#17212b;color:#fff;border-color:#17212b}

/* Scout / pre-season / injuries / set pieces / prices / live */
.scout-score,.ps-pts,.live-rank.top{color:#08774d}.scout-row,.ps-row,.inj-row,.pr-row,.live-row{border-radius:10px}.sp-card{border-radius:11px}.sp-lbl.pen{color:#08774d}.sp-lbl.fk{color:#247b91}.sp-lbl.ck{color:#76528c}.sp-taker{background:#f4f6f8;border-color:var(--line);color:var(--sub)}.sp-taker.first{color:var(--ink)}
.col-h.up{background:#edf8f2;color:#08774d}.col-h.down{background:#fff2f4;color:#ba4054}.pr-row .pc.up{color:#08774d}.pr-row .pc.down{color:#ba4054}.live-b.b3{background:#dff4e9;color:#08774d}.live-b.b2{background:#edf8f2;color:#08774d}.live-b.b1{background:#eef6f8;color:#247b91}
.inj-pill.inj-out{background:#fff0f2;color:#c34358}.inj-pill.inj-doubt{background:#fff7e8;color:#a46815}

/* Status states */
.banner{background:#fffaf0;border-color:#ecd6ad}.banner.err{background:#fff5f6;border-color:#edc3ca}.status,.tab-status{color:var(--sub)}

/* Captain Picks only — no ranking/country UI */
.captain-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:17px;margin-bottom:12px}.captain-head h3{font-family:'Inter';font-weight:800;font-size:19px;letter-spacing:-.3px}.captain-head p{color:var(--sub);font-size:12.5px;max-width:680px;margin-top:4px}.captain-kicker{font-size:9.5px;color:#08774d;font-weight:800;text-transform:uppercase;letter-spacing:.55px;margin-bottom:3px}.captain-refresh{background:#fff;color:#08774d;border:1px solid #b7dcca;border-radius:8px;padding:8px 12px;font-weight:700;cursor:pointer;white-space:nowrap}.captain-refresh:hover{background:#f0f8f4}.captain-loading,.captain-empty{padding:34px 18px;text-align:center;color:var(--sub);background:#fff;border:1px solid var(--line);border-radius:11px;font-size:12.5px}.captain-empty.bad{color:#b83d51}.captain-grid{gap:8px}.captain-card{background:#fff;border-color:var(--line);border-radius:10px;padding:10px 12px}.captain-rank{font-family:'Inter';font-weight:700}.captain-share b{color:#08774d}.captain-bar{height:4px;background:#edf1f4}.captain-bar i{background:#079b62}.captain-footnote{color:var(--dim);font-size:10.5px;line-height:1.55;margin-top:11px;padding:0 3px}

/* Footer + modal */
footer{color:var(--dim);border-color:var(--line)}.modal{background:rgba(30,40,50,.28)}.modal-card{background:#fff}.modal-head,.modal-foot{border-color:var(--line)}

@media(max-width:720px){
  .wrap{padding:0 14px}.nav{margin:0 -14px;padding-left:14px;padding-right:14px}.tabs{margin-left:-14px;margin-right:-14px;padding-left:14px;padding-right:14px;top:63px}
  .brand .tag{display:none}.captain-head{align-items:stretch;flex-direction:column}.captain-grid{grid-template-columns:1fr}
}
@media(max-width:560px){
  .home-hero{padding-top:20px}.home-hero h2{font-size:32px;letter-spacing:-1px}.home-hero>p{font-size:13px}.hero h2{font-size:32px}.home-status-grid,.home-insights,.home-tools{grid-template-columns:1fr}.home-status-card:last-child{grid-column:auto}
  .search{width:100%;max-width:none}.search .field{min-width:0;width:100%}.search button{min-height:43px}
}

/* light-theme contrast cleanup */
.ovr .b .k{color:var(--dim)}
.recap-k{color:var(--dim)}
.spark-tip{background:#17212b;color:#fff;border-color:#17212b}
.bench{background:#f7f9fa;border-color:#cfd7de}
.empty{color:rgba(255,255,255,.9)}
.ct.active{background:#e8f5ef;color:#08774d;border-color:#b7dcca}
.chipbadge{background:#f1f6f8;color:#247b91;border-color:#d8e4e8}

/* ==========================================================================
   FPL PEEK V4 - WORKSPACE SHELL + ANALYSIS TOOLS
   ========================================================================== */
:root{
  --bg:#f7f8fa;
  --bg2:#f1f3f5;
  --panel:#ffffff;
  --panel2:#f5f6f7;
  --line:#e6e9ed;
  --line2:#d8dde3;
  --ink:#171a1f;
  --sub:#626b76;
  --dim:#929aa4;
  --accent:#0b8f62;
  --mint:#0b8f62;
  --good:#087a55;
  --bad:#c94b5e;
  --warn:#a56a16;
  --r:10px;
}
body{background:var(--bg);font-family:'Inter',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:var(--ink)}
.wrap{max-width:1240px}
.brand h1{font-family:'Inter';font-weight:800}.brand .mark{border-radius:8px}
.tab-label{display:none}
.ad-slot:empty{display:none}

/* Less decorative, more compact product rhythm. */
.thead{padding-top:24px}.thead h2{font-size:30px;letter-spacing:-.8px}.thead p{max-width:720px}
.home-hero{padding-top:26px}.home-hero h2{font-size:36px;letter-spacing:-1.1px}.home-hero>p{max-width:720px}
.home-section{margin-bottom:32px}.home-section h3{font-size:18px}
.home-tool,.home-status-card,.home-insight,.home-fixtures,.analysis-panel,.tool-form,.transfer-form,.compare-form{border-radius:9px}
.home-tool-icon{font-size:10px;font-weight:800;letter-spacing:.2px}
.home-tool-arrow{font-size:20px}
.home-card-value.countdown-value{font-size:22px;letter-spacing:-.6px;white-space:nowrap;font-variant-numeric:tabular-nums}

/* Desktop workspace sidebar. */
@media(min-width:901px){
  body{padding-left:238px;padding-bottom:48px}
  .wrap{max-width:1280px;margin:0 auto;padding:0 34px}
  .nav{
    position:fixed;left:0;top:0;width:238px;height:72px;z-index:60;
    margin:0;padding:18px 18px;background:#fff;border:0;border-right:1px solid var(--line);
    display:flex;align-items:center;backdrop-filter:none;
  }
  .brand .mark{width:32px;height:32px;font-size:14px}.brand h1{font-size:17px}
  .tabs{
    position:fixed;left:0;top:72px;bottom:0;width:238px;z-index:55;
    margin:0;padding:12px 10px 28px;display:flex;flex-direction:column;align-items:stretch;
    gap:2px;overflow-y:auto;border:0;border-right:1px solid var(--line);border-radius:0;
    background:#fff;backdrop-filter:none;
  }
  .tab-label{display:block;padding:15px 10px 5px;color:#a0a7af;font-size:9px;line-height:1;text-transform:uppercase;letter-spacing:.8px;font-weight:800}
  .tab-label:first-child{padding-top:6px}
  .tab{width:100%;flex:none;text-align:left;padding:8px 10px;border-radius:6px;font-size:12.5px;color:#5d6670;font-weight:600}
  .tab:hover{background:#f5f6f7;color:#1e2329}
  .tab.active{background:#eef7f3;color:#087a55;box-shadow:inset 3px 0 0 #0b8f62}
  footer{margin-top:44px}
}

/* Shared forms for the analysis tools. */
.tool-form,.compare-form,.transfer-form{
  display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap;background:#fff;border:1px solid var(--line);
  padding:14px;margin:4px 0 14px;
}
.tool-field{display:flex;align-items:center;min-width:220px;flex:1;background:#fff;border:1px solid var(--line2);border-radius:8px}
.tool-field input,.transfer-input input{width:100%;border:0;outline:0;background:transparent;color:var(--ink);padding:11px 12px;font-size:13px}
.tool-field:focus-within,.transfer-input:focus-within{border-color:#78bca2;box-shadow:0 0 0 3px rgba(11,143,98,.08)}
.primary-action{border:0;background:var(--accent);color:#fff;border-radius:8px;padding:11px 15px;font-weight:700;font-size:12.5px;cursor:pointer;white-space:nowrap;min-height:41px}
.primary-action:hover{background:#087d56}
.tool-output{margin-top:12px}
.tool-empty,.tool-loading{background:#fff;border:1px solid var(--line);border-radius:9px;padding:34px 18px;text-align:center;color:var(--sub);font-size:13px}
.tool-empty.compact{padding:18px}.tool-empty.bad{color:#a83d4d;background:#fffafb;border-color:#edd5da}
.tool-loading{position:relative}.tool-loading:before{content:"";display:inline-block;width:12px;height:12px;border:2px solid #cfd6dc;border-top-color:var(--accent);border-radius:50%;margin-right:8px;vertical-align:-2px;animation:spin .8s linear infinite}

/* Team analyzer */
.analysis-manager-head{display:flex;align-items:center;justify-content:space-between;gap:16px;background:#fff;border:1px solid var(--line);border-radius:9px;padding:17px 18px;margin-bottom:10px}
.analysis-manager-head h3{font-size:21px;letter-spacing:-.4px;margin-top:2px}.analysis-manager-head p{font-size:12px;color:var(--sub);margin-top:2px}.analysis-eyebrow{display:block;color:var(--accent);text-transform:uppercase;font-size:9px;letter-spacing:.65px;font-weight:800}.analysis-id{font-size:10px;color:var(--dim);background:#f6f7f8;border:1px solid var(--line);border-radius:6px;padding:5px 8px}
.analysis-summary-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;margin-bottom:10px}
.analysis-stat{background:#fff;border:1px solid var(--line);border-radius:9px;padding:14px}.analysis-stat>span{display:block;text-transform:uppercase;letter-spacing:.55px;color:var(--dim);font-size:9px;font-weight:800}.analysis-stat>b{display:block;font-size:19px;letter-spacing:-.4px;margin:6px 0 2px}.analysis-stat small{display:block;color:var(--sub);font-size:10px}.analysis-stat.good>b{color:var(--good)}.analysis-stat.warn>b{color:var(--warn)}
.analysis-two-col{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:10px}
.analysis-panel{background:#fff;border:1px solid var(--line);padding:16px;margin-bottom:10px}
.analysis-panel-head{display:flex;justify-content:space-between;gap:12px;margin-bottom:12px}.analysis-panel-head span{display:block;color:var(--dim);font-size:9px;text-transform:uppercase;letter-spacing:.6px;font-weight:800}.analysis-panel-head h4{font-size:15px;letter-spacing:-.2px;margin-top:2px}.analysis-panel-head p{font-size:11px;color:var(--sub);margin-top:4px;max-width:780px}
.analysis-list{display:flex;flex-direction:column}.analysis-list-row{padding:10px 0;border-top:1px solid #eff1f3}.analysis-list-row:first-child{border-top:0}.analysis-list-row b{display:block;font-size:12.5px}.analysis-list-row small{display:block;font-size:10.5px;color:var(--sub);margin-top:2px}.analysis-list-row.bad b{color:#a83d4d}.analysis-list-row.warn b{color:#9a6518}.analysis-list-row.good b{color:var(--good)}
.analysis-player-row{display:grid;grid-template-columns:34px 22px 1fr auto;align-items:center;gap:9px;padding:9px 0;border-top:1px solid #eff1f3}.analysis-player-row:first-of-type{border-top:0}.analysis-kit{height:30px;max-width:34px;width:auto;object-fit:contain}.analysis-rank{color:var(--dim);font-size:11px;font-weight:700}.analysis-player-row b{font-size:12.5px}.analysis-player-row small{display:block;color:var(--dim);font-size:9.5px}.analysis-right{text-align:right}.analysis-right>b{font-size:14px;color:var(--good)}
.upgrade-list{display:flex;flex-direction:column}.upgrade-row{display:grid;grid-template-columns:minmax(0,1fr) 28px minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px 0;border-top:1px solid #eff1f3}.upgrade-row:first-child{border-top:0}.upgrade-player{display:flex;align-items:center;gap:8px;min-width:0}.upgrade-player span{min-width:0}.upgrade-player small{display:block;color:var(--dim);font-size:9px}.upgrade-player b{display:block;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.upgrade-player em{font-style:normal;color:var(--sub);font-size:9.5px}.upgrade-arrow{color:var(--dim);font-size:20px;text-align:center}.upgrade-delta{color:var(--good);font-size:11px;font-weight:800;background:#eef8f3;border-radius:6px;padding:4px 7px}

/* Transfer analyzer */
.transfer-form{
  display:grid;grid-template-columns:minmax(0,1fr) 44px minmax(0,1fr);gap:12px;align-items:start;
  padding:0;margin:4px 0 14px;background:transparent;border:0;overflow:visible;
}
.ta-picker{position:relative;min-width:0;background:#fff;border:1px solid var(--line);border-radius:10px;padding:14px;transition:border-color .12s ease,box-shadow .12s ease}
.ta-picker.results-open{z-index:30;border-color:#9bcdb8;box-shadow:0 0 0 3px rgba(11,143,98,.07)}
.ta-picker-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.ta-picker-head label{color:var(--dim);font-size:9px;line-height:1;text-transform:uppercase;letter-spacing:.65px;font-weight:800}
.ta-clear-selected{border:0;background:transparent;color:var(--accent);font-size:10.5px;font-weight:700;padding:2px 0;cursor:pointer}
.ta-clear-selected:hover{text-decoration:underline}
.ta-selected{display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:10px;align-items:center;background:#f7faf8;border:1px solid #deeee7;border-radius:8px;padding:9px 10px;margin-bottom:10px}
.ta-selected-kit{height:38px;max-width:42px;width:auto;object-fit:contain}
.ta-selected b{display:block;font-size:13px;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ta-selected small{display:block;color:var(--dim);font-size:9.5px;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ta-selected-own{text-align:right;color:var(--ink);font-size:11px;font-weight:750}.ta-selected-own small{font-size:8.5px;text-transform:uppercase;letter-spacing:.35px}
.ta-searchbox{display:grid;grid-template-columns:18px minmax(0,1fr) 26px;align-items:center;gap:4px;border:1px solid var(--line2);border-radius:8px;background:#fff;min-height:42px;padding:0 8px}
.ta-searchbox:focus-within{border-color:#78bca2;box-shadow:0 0 0 3px rgba(11,143,98,.08)}
.ta-searchbox svg{width:16px;height:16px;fill:none;stroke:#929aa3;stroke-width:1.8}
.ta-searchbox input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:var(--ink);font-size:12.5px;padding:10px 2px}
.ta-searchbox input::placeholder{color:#a0a7af}
.ta-clear-search{width:24px;height:24px;display:flex;align-items:center;justify-content:center;border:0;border-radius:5px;background:#f3f5f6;color:#77808a;font-size:17px;line-height:1;cursor:pointer}
.ta-clear-search:hover{background:#e9edef;color:var(--ink)}
.ta-filter-row{display:grid;grid-template-columns:minmax(120px,.8fr) minmax(150px,1.2fr);gap:7px;margin-top:8px}
.ta-filter-row select{width:100%;min-width:0;border:1px solid var(--line2);border-radius:7px;background:#fff;color:#5d6670;font-size:10.5px;font-weight:600;padding:8px 30px 8px 9px;outline:0}
.ta-filter-row select:focus{border-color:#78bca2;box-shadow:0 0 0 3px rgba(11,143,98,.07)}
.ta-results{position:absolute;left:-1px;right:-1px;top:calc(100% + 6px);max-height:360px;overflow:auto;background:#fff;border:1px solid #d5dbdf;border-radius:10px;box-shadow:0 16px 38px rgba(34,44,54,.14);padding:5px;z-index:60}
.ta-result{width:100%;display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:9px;align-items:center;border:0;border-radius:7px;background:#fff;text-align:left;padding:7px 8px;color:var(--ink);cursor:pointer}
.ta-result:hover,.ta-result.active{background:#f0f7f4}.ta-result.active{box-shadow:inset 3px 0 0 var(--accent)}
.ta-result-kit{height:34px;display:flex;align-items:center;justify-content:center}.ta-result-shirt{height:32px;max-width:36px;width:auto;object-fit:contain}
.ta-result-main{min-width:0}.ta-result-main b{display:block;font-size:11.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ta-result-main small{display:block;color:var(--dim);font-size:9.5px;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ta-result-meta{text-align:right}.ta-result-meta b{display:block;font-size:10.5px}.ta-result-meta small{display:block;color:var(--dim);font-size:8px;text-transform:uppercase;letter-spacing:.35px;margin-top:1px}
.ta-no-results{padding:24px 14px;text-align:center}.ta-no-results b{display:block;font-size:11.5px}.ta-no-results span{display:block;color:var(--dim);font-size:9.5px;margin-top:3px}
.swap-action{align-self:center;width:44px;height:44px;margin-top:49px;border:1px solid var(--line2);background:#fff;border-radius:9px;color:var(--sub);cursor:pointer;font-size:17px}.swap-action:hover:not(:disabled){background:#f1f7f4;color:var(--accent);border-color:#b8dacb}
.ta-form-actions{grid-column:1/-1;display:flex;justify-content:flex-end;align-items:center;gap:8px;padding-top:2px}
.secondary-action{border:1px solid var(--line2);background:#fff;color:var(--sub);border-radius:8px;padding:10px 14px;font-weight:700;font-size:12px;cursor:pointer;min-height:41px}
.secondary-action:hover:not(:disabled){background:#f5f6f7;color:var(--ink)}
.primary-action:disabled,.secondary-action:disabled,.swap-action:disabled{opacity:.42;cursor:not-allowed}
.transfer-board{display:grid;grid-template-columns:1fr 52px 1fr;gap:8px;align-items:stretch;margin-bottom:10px}.transfer-side{background:#fff;border:1px solid var(--line);border-radius:9px;padding:16px}.transfer-center{display:flex;align-items:center;justify-content:center;color:var(--dim);font-size:11px;font-weight:800;text-transform:uppercase}.transfer-player-head{display:grid;grid-template-columns:46px 1fr auto;align-items:center;gap:10px}.transfer-kit{height:42px;max-width:46px;width:auto;object-fit:contain}.transfer-player-head h3{font-size:17px}.transfer-player-head p{font-size:10px;color:var(--sub);margin-top:2px}.transfer-player-head>b{font-size:14px}.fixture-run{display:flex;gap:4px;margin-top:14px}.fixture-run span{min-width:34px;text-align:center;border-radius:5px;padding:4px 5px;font-size:9px;font-weight:800;color:#17212b}.fixture-empty{color:var(--dim);font-size:10px}
.transfer-metrics{background:#fff;border:1px solid var(--line);border-radius:9px;overflow:hidden}.transfer-metric{display:grid;grid-template-columns:1fr 160px 1fr;gap:12px;align-items:center;padding:10px 14px;border-top:1px solid #eff1f3}.transfer-metric:first-child{border-top:0}.transfer-metric span:first-child{text-align:left}.transfer-metric span:last-child{text-align:right}.transfer-metric span{font-size:12.5px;font-weight:700}.transfer-metric b{text-align:center;color:var(--dim);font-size:9.5px;text-transform:uppercase;letter-spacing:.45px}
.transfer-verdict{margin-top:10px;background:#eef7f3;border:1px solid #d6ebe2;border-radius:9px;padding:15px 16px}.transfer-verdict>span{font-size:9px;text-transform:uppercase;letter-spacing:.6px;color:var(--accent);font-weight:800}.transfer-verdict h4{font-size:15px;margin-top:3px}.transfer-verdict p{font-size:11px;color:#5d6c64;margin-top:4px;max-width:820px}

/* Manager compare */
.compare-form{display:grid;grid-template-columns:1fr 34px 1fr auto;align-items:center}.compare-vs{text-align:center;color:var(--dim);font-size:10px;font-weight:800;text-transform:uppercase}.compare-vs.big{font-size:11px}
.compare-heads{display:grid;grid-template-columns:1fr 50px 1fr;gap:10px;align-items:stretch;margin-bottom:10px}.compare-heads>div:first-child,.compare-heads>div:last-child{background:#fff;border:1px solid var(--line);border-radius:9px;padding:16px}.compare-manager span{color:var(--dim);font-size:9.5px}.compare-manager h3{font-size:18px;margin-top:3px}.compare-manager p{font-size:10.5px;color:var(--sub);margin-top:2px}.compare-heads>.compare-vs{display:flex;align-items:center;justify-content:center}
.compare-metrics{background:#fff;border:1px solid var(--line);border-radius:9px;overflow:hidden;margin-bottom:10px}.compare-metric{display:grid;grid-template-columns:1fr 170px 1fr;gap:10px;align-items:center;padding:10px 14px;border-top:1px solid #eff1f3}.compare-metric:first-child{border-top:0}.compare-metric span{font-size:13px;font-weight:700}.compare-metric span:first-child{text-align:left}.compare-metric span:last-child{text-align:right}.compare-metric b{text-align:center;color:var(--dim);font-size:9.5px;text-transform:uppercase;letter-spacing:.45px}.compare-metric .win{color:var(--good)}
.compare-squad-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:14px}.compare-squad-summary>div{background:#f7f8f9;border:1px solid var(--line);border-radius:8px;padding:12px;text-align:center}.compare-squad-summary b{display:block;font-size:14px}.compare-squad-summary small{display:block;color:var(--dim);font-size:9px;margin-top:2px}.compare-diffs{display:grid;grid-template-columns:1fr 1fr;gap:16px}.compare-diffs h5{font-size:11px;margin-bottom:7px}.compare-player-chip{display:inline-block;background:#f3f5f6;border:1px solid var(--line);border-radius:6px;padding:4px 7px;margin:0 4px 4px 0;font-size:9.5px}.compare-none{font-size:10px;color:var(--dim)}

/* Builder explainer markers are intentionally plain. */
.bld-info-ic{font-size:10px!important;color:var(--accent);font-weight:800;letter-spacing:.5px;margin-bottom:9px!important}

/* Mobile bottom navigation. */
.mobile-nav,.mobile-more-sheet{display:none}
@media(max-width:900px){
  body{padding-left:0;padding-bottom:90px}
  .wrap{max-width:none;padding:0 16px}
  .nav{position:sticky;top:0;z-index:50;margin:0 -16px;padding:13px 16px;background:#fff;border-bottom:1px solid var(--line);backdrop-filter:none}
  .tabs{display:none!important}
  .mobile-nav{display:grid;grid-template-columns:repeat(5,1fr);position:fixed;left:8px;right:8px;bottom:calc(8px + env(safe-area-inset-bottom));z-index:80;background:rgba(255,255,255,.98);border:1px solid #dfe5e8;border-radius:13px;padding:6px;box-shadow:0 8px 26px rgba(31,43,52,.14);backdrop-filter:blur(10px)}
  .mobile-nav-item{position:relative;border:0;background:transparent;color:#737c86;font-size:10.5px;font-weight:750;padding:8px 3px;border-radius:8px;cursor:pointer;min-height:34px}
  .mobile-nav-item.active{background:#eaf6f1;color:#087a55}
  .mobile-nav-item.active::after{content:"";position:absolute;left:50%;bottom:3px;width:14px;height:2px;border-radius:2px;background:#079b62;transform:translateX(-50%)}
  .mobile-menu-item{margin-left:4px;border-left:1px solid #e3e7e9;border-radius:0 8px 8px 0;color:#4f5963}
  .mobile-menu-item[aria-expanded="true"]{background:#eaf6f1;color:#087a55}
  .mobile-more-sheet{display:block;position:fixed;z-index:79;left:10px;right:10px;bottom:calc(68px + env(safe-area-inset-bottom));background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px;box-shadow:0 16px 42px rgba(25,35,45,.18);transform:translateY(24px);opacity:0;pointer-events:none;transition:.16s ease}
  .mobile-more-sheet.open{transform:none;opacity:1;pointer-events:auto}
  .mobile-more-head{display:flex;justify-content:space-between;align-items:center;padding:2px 2px 12px;border-bottom:1px solid #edf0f2;margin-bottom:10px}.mobile-more-head>div{min-width:0}.mobile-more-head b{display:block;font-size:13px}.mobile-more-head span{display:block;color:var(--dim);font-size:9.5px;margin-top:2px}.mobile-more-head button{border:1px solid var(--line);background:#f7f8f9;border-radius:7px;color:var(--sub);font-size:10.5px;font-weight:700;padding:6px 9px;cursor:pointer}
  .mobile-more-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px}.mobile-more-grid button{border:1px solid var(--line);background:#fff;border-radius:8px;text-align:left;padding:10px;font-size:11px;color:var(--ink);cursor:pointer}.mobile-more-grid button.active{border-color:#aed8c6;background:#eef7f3;color:#087a55}
  .home-hero h2{font-size:31px}.home-card-value.countdown-value{font-size:18px}
  .analysis-summary-grid{grid-template-columns:1fr 1fr}.analysis-two-col{grid-template-columns:1fr}
  .transfer-form{grid-template-columns:1fr 44px 1fr}.transfer-board{grid-template-columns:1fr}.transfer-center{padding:0}.transfer-metric{grid-template-columns:1fr 120px 1fr}
  .compare-form{grid-template-columns:1fr 28px 1fr}.compare-form .primary-action{grid-column:1/-1}.compare-heads{grid-template-columns:1fr}.compare-heads>.compare-vs{padding:0}.compare-metric{grid-template-columns:1fr 130px 1fr}
}
@media(max-width:560px){
  .wrap{padding:0 12px}.nav{margin:0 -12px;padding-left:12px;padding-right:12px}
  .thead h2{font-size:26px}.home-hero{padding-top:21px}.home-hero h2{font-size:29px}
  .analysis-summary-grid{grid-template-columns:1fr}.analysis-manager-head{align-items:flex-start}.analysis-id{display:none}
  .upgrade-row{grid-template-columns:1fr 20px 1fr}.upgrade-delta{grid-column:3;text-align:right;justify-self:end}.analysis-kit{height:26px}
  .transfer-form{grid-template-columns:1fr}.swap-action{width:44px;justify-self:center;margin-top:0}.ta-form-actions{grid-column:auto}.ta-filter-row{grid-template-columns:1fr 1fr}.ta-results{max-height:300px}.transfer-player-head{grid-template-columns:38px 1fr auto}.transfer-kit{height:34px}.transfer-metric{grid-template-columns:1fr 105px 1fr;padding:9px 10px}.transfer-metric b{font-size:8.5px}
  .compare-form{grid-template-columns:1fr}.compare-vs{padding:0}.compare-form .primary-action{grid-column:auto}.compare-metric{grid-template-columns:1fr 105px 1fr;padding:9px 10px}.compare-squad-summary,.compare-diffs{grid-template-columns:1fr}
  .mobile-more-grid{grid-template-columns:1fr 1fr}
}
.home-card-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}.home-card-actions .home-card-action{margin-top:0}.home-card-action.secondary{color:var(--sub)}.home-card-action.secondary:hover{color:var(--accent)}
button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #6ab596;outline-offset:2px}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.tabpanel,.tool-loading:before,.spinner,.live-dot{animation:none!important}.mobile-more-sheet{transition:none}}
.recap-ic{font-size:8px;font-weight:800;letter-spacing:.45px;color:var(--sub);background:#f3f5f6;border:1px solid var(--line);border-radius:7px;width:44px;height:32px}

/* Compact global deadline in the desktop sidebar. */
.sidebar-deadline{display:none}
@media(min-width:901px){
  .sidebar-deadline.countdown{
    display:block;
    margin:4px 8px 8px;
    padding:10px;
    background:#f7f9fa;
    border:1px solid var(--line);
    border-radius:8px;
  }
  .sidebar-deadline .cd-label{
    margin-bottom:7px;
    font-size:9px;
    line-height:1.2;
    color:var(--sub);
    font-weight:700;
    letter-spacing:.15px;
  }
  .sidebar-deadline .cd-boxes{display:grid;grid-template-columns:repeat(4,1fr);gap:4px}
  .sidebar-deadline .cd-box{
    min-width:0;
    padding:6px 2px 5px;
    background:#fff;
    border:1px solid var(--line);
    border-radius:6px;
    text-align:center;
  }
  .sidebar-deadline .cd-num{font-size:14px;line-height:1.05;font-weight:800;color:var(--ink);font-variant-numeric:tabular-nums}
  .sidebar-deadline .cd-unit{margin-top:3px;font-size:6.5px;line-height:1;text-transform:uppercase;letter-spacing:.3px;color:var(--dim);font-weight:700}
  .sidebar-deadline .cd-live{font-size:10px;line-height:1.35;color:var(--good);font-weight:700}
}

/* Compact manager career summary on Home. */
.home-manager-name{margin-top:4px;color:var(--sub);font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.home-current-season{display:flex;align-items:center;gap:10px;margin-top:10px;padding-top:9px;border-top:1px solid var(--line);font-size:10.5px;color:var(--sub);flex-wrap:wrap}
.home-current-season span{margin-right:auto;text-transform:uppercase;letter-spacing:.45px;font-size:9px;font-weight:800;color:#87929d}
.home-current-season b{color:var(--ink);font-size:11px}
.home-career-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin-top:10px}
.home-career-grid>div{min-width:0;background:#f7f9fa;border:1px solid #e8ecef;border-radius:7px;padding:8px 7px}
.home-career-grid span{display:block;color:#87929d;font-size:8.5px;font-weight:800;text-transform:uppercase;letter-spacing:.35px;white-space:nowrap}
.home-career-grid b{display:block;color:var(--ink);font-size:13px;line-height:1.15;margin-top:3px;font-variant-numeric:tabular-nums}
.home-career-grid small{display:block;color:var(--sub);font-size:8.5px;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:620px){.home-career-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Home gameweek status: compact before the season, useful once scores are live. */
.home-gw-status-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:5px}
.home-gw-status-row .home-card-value{margin-top:0}
.home-gw-pill{display:inline-flex;align-items:center;padding:4px 7px;border-radius:999px;background:#f2f4f5;border:1px solid var(--line);color:var(--sub);font-size:8.5px;font-weight:800;text-transform:uppercase;letter-spacing:.35px;white-space:nowrap}
.home-gw-pill.live{background:#edf8f3;border-color:#d6ebe2;color:var(--good)}
.home-gw-note{margin-top:9px;color:var(--sub);font-size:10.5px;line-height:1.45;max-width:440px}
.home-gw-meta{margin-top:8px;color:var(--dim);font-size:9.5px;font-weight:600}
.home-gw-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:11px}
.home-gw-stats>div{background:#f7f9fa;border:1px solid #e8ecef;border-radius:7px;padding:8px}
.home-gw-stats span{display:block;color:#87929d;font-size:8px;font-weight:800;text-transform:uppercase;letter-spacing:.35px}
.home-gw-stats b{display:block;margin-top:3px;color:var(--ink);font-size:13px;font-variant-numeric:tabular-nums}
@media(max-width:560px){.home-gw-stats{grid-template-columns:1fr 1fr 1fr}.home-gw-note{font-size:10px}}

/* ========================================================================== 
   GAMEWEEK PLANNER + OPTIONAL ACCOUNT SYNC
   ========================================================================== */
.planner-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}
.planner-notice{display:flex;align-items:flex-start;gap:12px;background:#f5faf7;border:1px solid #d9eee4;border-radius:9px;padding:12px 14px;margin:4px 0 12px;color:#466057;font-size:11px;line-height:1.45}
.planner-notice b{color:#087a55;white-space:nowrap}.planner-notice span{max-width:850px}
.planner-toolbar{display:flex;align-items:flex-end;gap:9px;flex-wrap:wrap;background:#fff;border:1px solid var(--line);border-radius:9px;padding:11px 12px;margin-bottom:12px}
.planner-plan-select{display:flex;flex-direction:column;gap:4px;min-width:210px}.planner-plan-select label,.planner-chip-wrap label{font-size:8.5px;color:var(--dim);text-transform:uppercase;letter-spacing:.55px;font-weight:800}
.planner-plan-select select,.planner-chip-wrap select,.planner-filters select{border:1px solid var(--line2);background:#fff;color:var(--ink);border-radius:7px;padding:9px 10px;font:inherit;font-size:11.5px;outline:0}
.planner-toolbar-actions{display:flex;gap:6px;flex-wrap:wrap}.planner-toolbar .secondary-action{min-height:36px;padding:8px 10px;font-size:10.5px}.danger-soft{color:#a83d4d!important}.danger-soft:hover:not(:disabled){background:#fff5f6!important}
.planner-sync{margin-left:auto;color:var(--sub);font-size:10px;padding:8px 4px;cursor:default}.planner-sync .sync-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#0b8f62;margin-right:5px}.sidebar-account-btn,.planner-sync[role="button"]{cursor:pointer}
.planner-empty{background:#fff;border:1px solid var(--line);border-radius:10px;padding:20px}.planner-empty-copy{max-width:680px}.planner-empty-copy h3{font-size:20px;margin:4px 0}.planner-empty-copy p{font-size:11.5px;color:var(--sub);line-height:1.55}
.planner-start-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-top:18px}.planner-start-card{border:1px solid var(--line);border-radius:9px;padding:15px;background:#fbfcfc}.planner-start-num{display:block;color:var(--accent);font-size:9px;font-weight:800;margin-bottom:15px}.planner-start-card h4{font-size:14px}.planner-start-card p{font-size:10.5px;color:var(--sub);line-height:1.5;margin:5px 0 13px}.planner-start-card small{display:block;color:#a35a35;font-size:9px;margin-top:6px;min-height:12px}.planner-import-row{display:flex;gap:6px}.planner-import-row input{min-width:0;width:100%;border:1px solid var(--line2);border-radius:7px;padding:9px;font:inherit;font-size:11px;outline:0}.planner-import-row input:focus{border-color:#78bca2;box-shadow:0 0 0 3px rgba(11,143,98,.08)}
.planner-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;background:#fff;border:1px solid var(--line);border-radius:9px;padding:14px 16px;margin-bottom:10px}.planner-title-row h3{font-size:20px;margin:3px 0}.planner-title-row p{font-size:10.5px;color:var(--sub)}.planner-title-actions .secondary-action{min-height:34px;padding:7px 10px;font-size:10px}
.planner-gw-strip{display:flex;gap:6px;overflow-x:auto;padding:2px 0 9px;scrollbar-width:thin}.planner-gw{min-width:92px;border:1px solid var(--line);background:#fff;border-radius:8px;padding:9px 10px;text-align:left;color:var(--ink);cursor:pointer}.planner-gw b{display:block;font-size:11px}.planner-gw small{display:block;margin-top:3px;font-size:8.5px;color:var(--dim);white-space:nowrap}.planner-gw.active{border-color:#a8d8c5;background:#eef7f3;box-shadow:inset 0 0 0 1px #d8eee5}.planner-gw.active b{color:#087a55}
.planner-summary{display:grid;grid-template-columns:repeat(5,1fr);gap:7px;margin-bottom:10px}.planner-summary>div{background:#fff;border:1px solid var(--line);border-radius:8px;padding:11px 12px;min-width:0}.planner-summary span{display:block;font-size:8px;text-transform:uppercase;letter-spacing:.5px;color:var(--dim);font-weight:800}.planner-summary b{display:block;font-size:16px;margin-top:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.planner-summary small{display:block;font-size:8.5px;color:var(--sub);margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.planner-layout{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(300px,.75fr);gap:10px;align-items:start}.planner-main,.planner-picker{background:#fff;border:1px solid var(--line);border-radius:9px;padding:14px;min-width:0}.planner-picker{position:sticky;top:18px}.planner-section-head,.planner-picker-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:11px}.planner-section-head h3,.planner-picker-head h3{font-size:15px;margin-top:2px}.planner-chip-wrap{display:flex;flex-direction:column;gap:4px;min-width:120px}
.planner-transfer-head{display:flex;justify-content:space-between;gap:8px;align-items:center;margin:2px 0 6px}.planner-transfer-head span{font-size:9px;text-transform:uppercase;color:var(--dim);font-weight:800;letter-spacing:.5px}.planner-transfer-head small{font-size:8.5px;color:var(--dim)}.planner-transfer{display:grid;grid-template-columns:1fr 18px 1fr auto 24px;gap:7px;align-items:center;background:#f7faf8;border:1px solid #e0eee7;border-radius:7px;padding:7px 9px;margin-bottom:5px;font-size:10px}.planner-transfer>b{text-align:center;color:var(--accent)}.planner-transfer small{color:var(--sub);font-size:8.5px}.planner-transfer button{width:22px;height:22px;border:0;border-radius:5px;background:#fff;color:#8a949d;cursor:pointer}.planner-transfer.invalid{background:#fff7f7;border-color:#eed5d9}.planner-invalid-note{font-size:9px;color:#a83d4d;margin:5px 0 9px}
.planner-squad-group{margin-top:12px}.planner-squad-label{display:flex;justify-content:space-between;align-items:center;color:#7f8993;font-size:8.5px;text-transform:uppercase;letter-spacing:.55px;font-weight:800;padding-bottom:5px;border-bottom:1px solid #edf0f2}.planner-squad-label span{background:#f3f5f6;border-radius:5px;padding:2px 5px}.planner-player-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:7px}.planner-player{display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:8px;align-items:center;border:1px solid var(--line);border-radius:8px;padding:8px;background:#fff;min-width:0}.planner-player.starter{background:#fbfdfc}.planner-player.selected-out{border-color:#efb6b6;background:#fff8f8}.planner-kit{display:flex;align-items:center;justify-content:center}.planner-kit-img{height:34px;max-width:34px;width:auto;object-fit:contain}.planner-player-main{min-width:0}.planner-player-main>b{display:block;font-size:11.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.planner-player-main>small{display:block;color:var(--dim);font-size:8.5px;margin-top:1px}.planner-player-fixture{display:flex;gap:3px;margin-top:4px}.pl-fixture{display:inline-block;min-width:25px;padding:3px 4px;border-radius:4px;text-align:center;font-size:7.5px;font-weight:800;color:#17212b}.pl-fixture.blank{background:#f2f3f4;color:#9aa2aa}.planner-player-actions{display:grid;grid-template-columns:26px 26px;gap:3px;justify-items:end}.planner-arm{width:25px;height:23px;border:1px solid var(--line);border-radius:5px;background:#fff;color:#77818a;font-size:8.5px;font-weight:800;cursor:pointer}.planner-arm.active{background:#17212b;border-color:#17212b;color:#fff}.planner-arm.vice.active{background:#68727c;border-color:#68727c}.planner-move-btn{grid-column:1/3;border:0;background:transparent;color:#087a55;font-size:8.5px;font-weight:700;cursor:pointer;padding:2px}.planner-no-players{grid-column:1/-1;border:1px dashed var(--line2);border-radius:8px;padding:18px;text-align:center;color:var(--dim);font-size:10px}
.planner-out-card{display:grid;grid-template-columns:34px 1fr;gap:8px;align-items:center;border:1px solid #eed5d9;background:#fff8f8;border-radius:8px;padding:8px;margin-bottom:8px}.planner-out-kit{height:31px;max-width:34px;width:auto;object-fit:contain}.planner-out-card span small{display:block;color:#a83d4d;text-transform:uppercase;font-size:7.5px;font-weight:800}.planner-out-card span b{display:block;font-size:11.5px;margin-top:1px}.planner-out-card span em{display:block;font-style:normal;color:var(--dim);font-size:8.5px;margin-top:1px}.planner-search input{width:100%;border:1px solid var(--line2);border-radius:7px;padding:10px 11px;font:inherit;font-size:11px;outline:0}.planner-search input:focus{border-color:#78bca2;box-shadow:0 0 0 3px rgba(11,143,98,.08)}.planner-filters{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:7px 0}.planner-player-list{max-height:500px;overflow:auto;border-top:1px solid var(--line)}.planner-pick-row{width:100%;display:grid;grid-template-columns:32px minmax(0,1fr) auto 22px;gap:7px;align-items:center;border:0;border-bottom:1px solid #edf0f2;background:#fff;text-align:left;padding:8px 4px;cursor:pointer;color:var(--ink)}.planner-pick-row:hover:not(:disabled){background:#f7faf8}.planner-pick-row.disabled{opacity:.42;cursor:not-allowed}.planner-list-kit{height:29px;max-width:32px;width:auto;object-fit:contain}.planner-pick-name{min-width:0}.planner-pick-name b{display:block;font-size:10.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.planner-pick-name small,.planner-pick-price small{display:block;color:var(--dim);font-size:7.8px;margin-top:1px}.planner-pick-price{text-align:right;font-size:9.5px;font-weight:700}.planner-pick-add{font-size:15px;color:#0b8f62;text-align:center}.planner-no-results{text-align:center;color:var(--dim);font-size:9.5px;padding:24px}.planner-price-note{font-size:8.5px;color:var(--dim);line-height:1.4;margin-top:8px}.planner-workspace{padding-bottom:10px}

/* Sidebar account control */
@media(min-width:901px){
  .sidebar-account{margin:auto 8px 0;padding:10px;border-top:1px solid var(--line)}
  .sidebar-account-status b{display:block;font-size:10.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sidebar-account-status span{display:block;color:var(--dim);font-size:8.5px;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sidebar-account-btn{width:100%;margin-top:8px;border:1px solid var(--line2);background:#fff;color:var(--ink);border-radius:6px;padding:7px 8px;font-size:9.5px;font-weight:700;cursor:pointer}.sidebar-account-btn:hover{background:#f6f7f8}
}
.account-modal-card{max-width:520px}.account-intro h3{font-size:17px}.account-intro p{font-size:11px;color:var(--sub);line-height:1.55;margin:5px 0 15px}.account-email-label{display:block;font-size:9px;color:var(--dim);text-transform:uppercase;font-weight:800;letter-spacing:.5px;margin-bottom:5px}.account-email-row{display:flex;gap:7px}.account-email-row input{min-width:0;flex:1;border:1px solid var(--line2);border-radius:7px;padding:10px 11px;font:inherit;font-size:12px;outline:0}.account-email-row input:focus{border-color:#78bca2;box-shadow:0 0 0 3px rgba(11,143,98,.08)}.account-message{min-height:18px;margin-top:8px;color:#087a55;font-size:10px}.account-message.bad{color:#a83d4d}.account-fineprint{font-size:9px;color:var(--dim);line-height:1.5;border-top:1px solid var(--line);padding-top:10px;margin-top:8px}.account-user-card{display:flex;gap:10px;align-items:center;background:#f7faf8;border:1px solid #e0eee7;border-radius:8px;padding:12px}.account-avatar{width:35px;height:35px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#0b8f62;color:#fff;font-weight:800}.account-user-card b{display:block;font-size:12px}.account-user-card small{display:block;color:var(--sub);font-size:9.5px;margin-top:2px}.account-actions{display:flex;gap:7px;margin-top:12px}.mobile-account-btn{grid-column:1/-1!important;background:#eef7f3!important;color:#087a55!important;border-color:#d8eee5!important;font-weight:700!important}

@media(max-width:1000px) and (min-width:901px){.planner-layout{grid-template-columns:minmax(0,1fr) 310px}.planner-player-grid{grid-template-columns:1fr}.planner-summary{grid-template-columns:repeat(3,1fr)}}
@media(max-width:900px){.planner-start-grid{grid-template-columns:1fr}.planner-layout{grid-template-columns:1fr}.planner-picker{position:static}.planner-summary{grid-template-columns:repeat(3,1fr)}.planner-toolbar{align-items:stretch}.planner-sync{margin-left:0}.planner-player-list{max-height:420px}}
@media(max-width:560px){.planner-summary{grid-template-columns:1fr 1fr}.planner-player-grid{grid-template-columns:1fr}.planner-transfer{grid-template-columns:1fr 14px 1fr 24px}.planner-transfer small{display:none}.planner-toolbar-actions{display:grid;grid-template-columns:1fr 1fr;width:100%}.planner-plan-select{width:100%}.planner-import-row,.account-email-row{flex-direction:column}.planner-filters{grid-template-columns:1fr 1fr}.planner-notice{flex-direction:column;gap:3px}.planner-title-row{align-items:flex-start}.planner-summary>div:last-child{grid-column:1/-1}}

/* ---------- Planner V7: FPL-style pitch squad ---------- */
.planner-pitch-topline{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;margin:10px 0 8px}
.planner-pitch-topline>div span{display:block;font-size:8px;text-transform:uppercase;letter-spacing:.6px;color:var(--dim);font-weight:800}
.planner-pitch-topline>div b{display:block;font-size:15px;margin-top:2px}
.planner-pitch-topline>small{font-size:8.5px;color:var(--dim);text-align:right}
.planner-fpl-pitch{position:relative;overflow:hidden;background:#3faa70;border:1px solid #32945f;border-radius:12px;padding:27px 16px 24px;min-height:475px;display:flex;flex-direction:column;justify-content:space-between;gap:18px}
.planner-fpl-pitch::before{content:"";position:absolute;inset:13px;border:1.5px solid rgba(255,255,255,.66);border-radius:6px;pointer-events:none}
.planner-fpl-pitch::after{content:"";position:absolute;left:13px;right:13px;top:50%;height:1.5px;background:rgba(255,255,255,.56);pointer-events:none}
.planner-pitch-center-circle{position:absolute;left:50%;top:50%;width:72px;height:72px;border:1.5px solid rgba(255,255,255,.58);border-radius:50%;transform:translate(-50%,-50%);pointer-events:none}
.planner-pitch-box{position:absolute;left:50%;width:42%;height:72px;border:1.5px solid rgba(255,255,255,.58);transform:translateX(-50%);pointer-events:none}
.planner-pitch-box-top{top:13px;border-top:0}
.planner-pitch-box-bottom{bottom:13px;border-bottom:0}
.planner-pitch-row{position:relative;z-index:2;display:flex;align-items:flex-end;justify-content:center;gap:13px;min-height:82px}
.planner-pitch-player{position:relative;width:82px;text-align:center;flex:0 0 82px}
.planner-pitch-main{display:block;width:100%;border:0;background:transparent;padding:0;cursor:pointer;color:inherit;font:inherit}
.planner-pitch-kit{height:48px;display:flex;align-items:flex-end;justify-content:center;transition:transform .14s ease}
.planner-pitch-main:hover .planner-pitch-kit{transform:translateY(-2px)}
.planner-pitch-kit-img{height:47px;max-width:52px;width:auto;object-fit:contain;filter:drop-shadow(0 2px 2px rgba(0,0,0,.18))}
.planner-pitch-name{display:block;background:#17212b;color:#fff;border-radius:4px 4px 0 0;padding:3px 5px 2px;font-size:9.5px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;box-shadow:0 1px 2px rgba(0,0,0,.12)}
.planner-pitch-meta{min-height:19px;display:flex;align-items:center;justify-content:center;gap:2px;background:#f8fbf9;color:#17212b;border-radius:0 0 4px 4px;padding:2px 3px;font-size:8px;font-weight:800;box-shadow:0 1px 2px rgba(0,0,0,.12)}
.planner-pitch-meta .pl-fixture{min-width:22px;padding:2px 3px;font-size:7px;border-radius:3px}
.planner-pitch-actions{position:absolute;top:2px;right:0;display:flex;flex-direction:column;gap:3px;z-index:4}
.planner-pitch-arm{width:20px;height:20px;border:1px solid rgba(23,33,43,.25);border-radius:50%;background:#fff;color:#17212b;font-size:8px;font-weight:900;cursor:pointer;box-shadow:0 1px 3px rgba(0,0,0,.16)}
.planner-pitch-arm.active{background:#17212b;color:#fff;border-color:#17212b}
.planner-pitch-arm.vice.active{background:#68727c;border-color:#68727c}
.planner-pitch-player.selected-out .planner-pitch-name{background:#b63e48}
.planner-pitch-player.selected-out .planner-pitch-kit{filter:drop-shadow(0 0 0 rgba(0,0,0,0))}
.planner-pitch-selected{position:absolute;left:50%;bottom:-17px;transform:translateX(-50%);background:#fff4f4;color:#a83d4d;border:1px solid #e8bfc3;border-radius:20px;padding:2px 6px;font-size:7px;font-weight:800;white-space:nowrap;z-index:5}
.planner-pitch-empty{width:78px;height:75px;flex:0 0 78px;border:1.5px dashed rgba(255,255,255,.68);border-radius:9px;background:rgba(255,255,255,.10);color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;cursor:pointer;transition:.14s}
.planner-pitch-empty:hover,.planner-pitch-empty:focus-visible{background:rgba(255,255,255,.19);border-color:#fff;outline:0}
.planner-pitch-empty span{font-size:20px;line-height:1;font-weight:300}.planner-pitch-empty small{font-size:7px;font-weight:800;letter-spacing:.45px}
.planner-fpl-pitch-build{min-height:500px}
.planner-fpl-bench{margin-top:9px;background:#f5f7f8;border:1px solid var(--line);border-radius:10px;padding:9px 11px 11px}
.planner-bench-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:7px}.planner-bench-title span{font-size:8px;font-weight:800;text-transform:uppercase;letter-spacing:.55px;color:var(--dim)}.planner-bench-title small{font-size:8px;color:var(--dim)}
.planner-bench-row{display:flex;align-items:flex-end;justify-content:space-around;gap:8px;min-height:86px}
.planner-bench-row .planner-pitch-player{width:76px;flex-basis:76px}.planner-bench-row .planner-pitch-kit{height:43px}.planner-bench-row .planner-pitch-kit-img{height:42px}.planner-bench-row .planner-pitch-name{background:#53616d}.planner-bench-row .planner-pitch-meta{background:#e9eef1}

@media(max-width:1100px){
  .planner-pitch-row{gap:8px}.planner-pitch-player{width:76px;flex-basis:76px}.planner-pitch-empty{width:72px;flex-basis:72px}
}
@media(max-width:900px){
  .planner-fpl-pitch{min-height:455px}.planner-pitch-row{gap:12px}.planner-pitch-player{width:82px;flex-basis:82px}.planner-pitch-empty{width:78px;flex-basis:78px}
}
@media(max-width:560px){
  .planner-pitch-topline{align-items:flex-start}.planner-pitch-topline>small{max-width:175px}
  .planner-fpl-pitch{min-height:410px;padding:23px 7px 20px;border-radius:10px}.planner-fpl-pitch::before{inset:9px}.planner-fpl-pitch::after{left:9px;right:9px}.planner-pitch-box-top{top:9px}.planner-pitch-box-bottom{bottom:9px}
  .planner-pitch-row{gap:4px;min-height:70px}.planner-pitch-player{width:61px;flex-basis:61px}.planner-pitch-empty{width:58px;height:64px;flex-basis:58px}
  .planner-pitch-kit{height:38px}.planner-pitch-kit-img{height:37px;max-width:42px}.planner-pitch-name{font-size:7.7px;padding:2px 3px}.planner-pitch-meta{min-height:16px;font-size:6.8px;padding:1px 2px}.planner-pitch-meta .pl-fixture{min-width:17px;font-size:6px;padding:2px}
  .planner-pitch-actions{right:-2px}.planner-pitch-arm{width:17px;height:17px;font-size:7px}.planner-pitch-selected{font-size:6px;bottom:-14px;padding:1px 4px}
  .planner-bench-row{gap:4px}.planner-bench-row .planner-pitch-player{width:61px;flex-basis:61px}.planner-bench-row .planner-pitch-kit{height:36px}.planner-bench-row .planner-pitch-kit-img{height:35px}
}


/* Planner lineup controls, substitutions and account email state */
.planner-title-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap}
.planner-lineup-controls{display:flex;gap:7px;align-items:flex-end;margin-left:auto}
.planner-lineup-controls label{display:block;min-width:118px}
.planner-lineup-controls label>span{display:block;font-size:7.5px;text-transform:uppercase;letter-spacing:.45px;color:var(--dim);font-weight:800;margin-bottom:3px}
.planner-lineup-controls select{width:100%;height:31px;border:1px solid var(--line2);border-radius:7px;background:#fff;color:var(--ink);font:inherit;font-size:9.5px;padding:0 25px 0 8px;outline:0}
.planner-lineup-controls select:focus{border-color:#78bca2;box-shadow:0 0 0 3px rgba(11,143,98,.08)}
.planner-role-badge{position:absolute;top:1px;right:2px;z-index:5;width:21px;height:21px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#17212b;color:#fff;border:2px solid rgba(255,255,255,.95);font-size:8px;font-weight:900;box-shadow:0 1px 3px rgba(0,0,0,.2)}
.planner-role-badge.vice{background:#68727c}
.planner-sub-btn{position:absolute;left:1px;top:4px;z-index:5;width:21px;height:21px;border-radius:50%;border:1px solid rgba(23,33,43,.25);background:#fff;color:#087a55;font-weight:900;font-size:11px;line-height:18px;cursor:pointer;box-shadow:0 1px 3px rgba(0,0,0,.15);transition:.14s}
.planner-sub-btn:hover,.planner-sub-btn:focus-visible{background:#e9f7f1;border-color:#76bda3;outline:0;transform:translateY(-1px)}
.planner-sub-btn.active{background:#087a55;color:#fff;border-color:#087a55}
.planner-pitch-player.selected-swap .planner-pitch-name{box-shadow:0 0 0 2px #087a55,0 1px 2px rgba(0,0,0,.12)}
.planner-pitch-swap-label{position:absolute;left:50%;bottom:-17px;transform:translateX(-50%);background:#effaf5;color:#087a55;border:1px solid #b9dfcf;border-radius:20px;padding:2px 6px;font-size:7px;font-weight:800;white-space:nowrap;z-index:5}
.account-email-sent{border:1px solid #cfe8dd;background:#f4fbf7;border-radius:10px;padding:14px;display:grid;grid-template-columns:34px 1fr;gap:10px}
.account-email-sent-icon{width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#0b8f62;color:#fff;font-weight:900;font-size:16px}
.account-email-sent h3{font-size:14px;margin:0 0 5px}.account-email-sent p{font-size:10.5px;color:var(--sub);line-height:1.5;margin:0}.account-email-sent p b{color:var(--ink)}
.account-email-help{margin-top:7px!important}.account-email-sent-actions{grid-column:1/-1;display:flex;gap:7px;margin-top:3px;flex-wrap:wrap}.account-email-sent-actions button{font-size:10px}
@media(max-width:700px){.planner-pitch-topline{display:grid;grid-template-columns:1fr}.planner-lineup-controls{margin-left:0;width:100%;display:grid;grid-template-columns:1fr 1fr}.planner-lineup-controls label{min-width:0}.planner-pitch-topline>small{text-align:left;max-width:none}.planner-sub-btn{width:18px;height:18px;font-size:9px}.planner-role-badge{width:18px;height:18px;font-size:7px}}

/* Planner V9: FPL-style contextual player actions */
.planner-role-summary{display:flex;align-items:center;gap:7px;margin-left:auto}
.planner-role-summary>span{display:flex!important;align-items:center;gap:5px;background:#f5f7f8;border:1px solid var(--line);border-radius:999px;padding:4px 8px;color:var(--sub)!important;font-size:8.5px!important;text-transform:none!important;letter-spacing:0!important;font-weight:600!important}
.planner-role-summary i{width:19px;height:19px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:#37133d;color:#fff;font-size:8px;font-style:normal;font-weight:900}
.planner-role-summary span:last-child i{background:#6f5474}
.planner-role-summary b{display:inline!important;font-size:9px!important;margin:0!important;max-width:85px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.planner-fpl-pitch.swap-mode .planner-pitch-player.swap-ineligible,.planner-fpl-bench.swap-mode .planner-pitch-player.swap-ineligible{opacity:.35;filter:saturate(.55)}
.planner-fpl-pitch.swap-mode .planner-pitch-player.swap-eligible .planner-pitch-name,.planner-fpl-bench.swap-mode .planner-pitch-player.swap-eligible .planner-pitch-name{box-shadow:0 0 0 2px #ffe500,0 1px 2px rgba(0,0,0,.15)}
.planner-fpl-pitch.swap-mode .planner-pitch-player.swap-eligible .planner-pitch-main,.planner-fpl-bench.swap-mode .planner-pitch-player.swap-eligible .planner-pitch-main{cursor:pointer}
.planner-pitch-player.selected-swap{z-index:5}
.planner-pitch-player.selected-swap .planner-pitch-name{box-shadow:0 0 0 2px #ffe500,0 1px 2px rgba(0,0,0,.15)}
.planner-pitch-main:focus-visible{outline:2px solid #ffe500;outline-offset:4px;border-radius:7px}
.planner-action-layer[hidden]{display:none!important}
.planner-action-layer{position:fixed;inset:0;z-index:3000;display:flex;align-items:center;justify-content:center;padding:20px}
.planner-action-backdrop{position:absolute;inset:0;border:0;background:rgba(15,23,42,.45);backdrop-filter:blur(2px);cursor:default}
.planner-action-sheet{position:relative;z-index:1;width:min(390px,calc(100vw - 28px));background:#fff;border:1px solid #d9dee3;border-radius:13px;box-shadow:0 24px 70px rgba(15,23,42,.24);overflow:hidden;animation:plannerActionIn .14s ease-out}
@keyframes plannerActionIn{from{opacity:0;transform:translateY(8px) scale(.985)}to{opacity:1;transform:none}}
.planner-action-close{position:absolute;right:11px;top:11px;width:30px;height:30px;border:1px solid var(--line);border-radius:50%;background:#f8faf9;color:#60707b;font-size:20px;line-height:26px;cursor:pointer;z-index:2}
.planner-action-close:hover{background:#eef3f0;color:#17212b}
.planner-action-player{display:grid;grid-template-columns:70px minmax(0,1fr);gap:14px;align-items:center;padding:19px 48px 15px 18px;border-bottom:1px solid var(--line);background:#fbfcfc}
.planner-action-kit{height:66px;max-width:70px;width:auto;object-fit:contain;filter:drop-shadow(0 3px 4px rgba(0,0,0,.13))}
.planner-action-player>div>span{display:block;color:var(--dim);font-size:9px;font-weight:700;text-transform:uppercase;letter-spacing:.35px}
.planner-action-player h3{font-size:20px;margin:3px 0 5px;line-height:1.1}
.planner-action-fixture{display:flex;gap:3px}.planner-action-fixture .pl-fixture{min-width:28px;font-size:8px}
.planner-action-buttons{padding:7px}
.planner-action-buttons>button{width:100%;display:grid;grid-template-columns:37px minmax(0,1fr);gap:10px;align-items:center;border:0;border-radius:8px;background:#fff;text-align:left;padding:10px 11px;cursor:pointer;color:var(--ink)}
.planner-action-buttons>button:hover,.planner-action-buttons>button:focus-visible{background:#f2f8f5;outline:0}
.planner-action-buttons>button+button{border-top:1px solid #edf0f2;border-radius:0}
.planner-action-buttons i{width:31px;height:31px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#eef7f3;color:#087a55;font-style:normal;font-size:12px;font-weight:900}
.planner-action-buttons span{min-width:0}.planner-action-buttons b{display:block;font-size:11.5px}.planner-action-buttons small{display:block;color:var(--sub);font-size:9px;margin-top:2px;line-height:1.35}
.planner-action-buttons>button.transfer i{background:#fff1f2;color:#b53c49}.planner-action-buttons>button.transfer:hover{background:#fff8f8}
body.planner-action-open{overflow:hidden}
@media(max-width:700px){
  .planner-role-summary{order:3;margin-left:0;width:100%}.planner-pitch-topline{grid-template-columns:1fr}.planner-role-summary>span{flex:1;justify-content:center}
  .planner-action-layer{align-items:flex-end;padding:0}.planner-action-sheet{width:100%;max-width:none;border-radius:16px 16px 0 0;border-bottom:0;animation:plannerActionMobile .18s ease-out}
  @keyframes plannerActionMobile{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:none}}
  .planner-action-player{padding-top:17px}.planner-action-buttons{padding:7px 7px max(12px,env(safe-area-inset-bottom))}
}
.planner-picker-idle{min-height:230px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:28px 18px;color:var(--sub);border-top:1px solid var(--line)}
.planner-picker-idle>span{width:40px;height:40px;border-radius:50%;background:#eef7f3;color:#087a55;display:flex;align-items:center;justify-content:center;font-size:18px;font-weight:800;margin-bottom:10px}
.planner-picker-idle>b{font-size:11.5px;color:var(--ink);margin-bottom:5px}.planner-picker-idle small{max-width:245px;font-size:9px;line-height:1.5}.planner-picker-idle strong{color:#087a55}


/* V10: clearer workspace sidebar */
.brand-sub{display:block;color:#8a949e;font-size:8.5px;line-height:1.2;font-weight:600;margin-top:1px;letter-spacing:.15px}
@media(min-width:901px){
  .nav{height:78px;padding:17px 16px}.tabs{top:78px;padding:10px 10px 24px}
  .brand{gap:10px}.brand .mark{width:34px;height:34px;box-shadow:0 0 0 1px rgba(11,143,98,.08)}.brand h1{font-size:16px;letter-spacing:-.25px}
  .tab-label{position:relative;margin:8px 5px 2px;padding:7px 7px 5px;border-radius:6px;color:#8b95a0;font-size:8.5px;letter-spacing:.72px}
  .tab-label:first-of-type{margin-top:3px}
  .tab-label.active-group{color:#087a55;background:#f5faf8}
  .tab-label.active-group::after{content:"";position:absolute;right:8px;top:50%;width:18px;height:1px;background:#9fd2be}
  .tab{padding:7px 10px;border-radius:7px;font-size:12px;color:#515d68;font-weight:600;transition:background .12s,color .12s,box-shadow .12s}
  .tab.active{font-weight:750;background:#edf7f3;color:#087a55;box-shadow:inset 3px 0 0 #0b8f62}
  .sidebar-account{background:#fafbfb;border:1px solid var(--line)!important;border-radius:8px;margin:12px 6px 0!important;padding:10px!important}
  .sidebar-account-btn{background:#fff!important}
}

/* V10: fixtures, results and standings */
.fixtures-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px}
.fixtures-head>div:first-child{min-width:0}.fixtures-view-tabs{flex:none;margin-bottom:2px}
.section-kicker{display:block;color:#0b8f62;font-size:8.5px;font-weight:800;letter-spacing:.75px;text-transform:uppercase;margin-bottom:5px}
.fx-view{margin-top:14px}.fx-match-toolbar{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid var(--line);border-radius:10px;padding:10px;margin-bottom:10px}
.fx-nav-btn{width:36px;height:36px;flex:none;border:1px solid var(--line2);border-radius:8px;background:#fff;color:#25313b;font-size:17px;cursor:pointer}.fx-nav-btn:hover:not(:disabled){background:#f5f8f6;border-color:#a8cdbc}.fx-nav-btn:disabled{opacity:.35;cursor:not-allowed}
.fx-gw-heading{display:flex;align-items:center;gap:8px;min-width:0}.fx-gw-heading>span{font-size:8px;color:var(--dim);font-weight:800;text-transform:uppercase;letter-spacing:.55px}.fx-gw-heading select{appearance:auto;border:0;background:transparent;color:var(--ink);font:inherit;font-weight:800;font-size:15px;padding:4px 22px 4px 2px;outline:0}.fx-gw-heading small{color:var(--sub);font-size:9px;white-space:nowrap}.fx-match-filter{margin-left:auto}
.fx-match-list{background:#fff;border:1px solid var(--line);border-radius:10px;overflow:hidden}.fx-day-group+.fx-day-group{border-top:1px solid var(--line)}.fx-day-label{padding:9px 14px;background:#fafbfb;color:#6f7a85;font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.45px;border-bottom:1px solid #eef1f2}
.fx-match-row{display:grid;grid-template-columns:minmax(0,1fr) 118px minmax(0,1fr);align-items:center;min-height:68px;padding:8px 14px;border-bottom:1px solid #eef1f2}.fx-match-row:last-child{border-bottom:0}.fx-match-row.live{background:#fbfffd}
.fx-match-team{display:flex;align-items:center;gap:10px;min-width:0}.fx-match-team.home{justify-content:flex-end;text-align:right}.fx-match-team.away{justify-content:flex-start}.fx-match-team-copy{min-width:0}.fx-match-team b{display:block;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.fx-match-team small{display:none;color:var(--dim);font-size:8px;font-weight:700}.fx-match-kit{height:38px;max-width:42px;width:auto;object-fit:contain;flex:none}
.fx-match-centre{text-align:center;display:flex;flex-direction:column;align-items:center;gap:3px}.fx-score{display:flex;align-items:center;justify-content:center;gap:7px;font-variant-numeric:tabular-nums}.fx-score b{font-size:20px;line-height:1}.fx-score span{color:#8a949e}.fx-kickoff{font-size:12px;font-weight:750}.fx-status{font-size:7px;font-weight:800;letter-spacing:.45px;text-transform:uppercase;color:#83909b}.fx-status.live{color:#087a55}.fx-status.finished{color:#56616b}
.fx-match-row.expandable{cursor:pointer;transition:background .15s}.fx-match-row.expandable:hover,.fx-match-row.expandable:focus-visible{background:#f7faf8;outline:0}.fx-match-row.open{background:#f2f8f5;border-bottom-color:#dce9e3}.fx-expand-hint{display:flex;align-items:center;gap:4px;margin-top:2px;color:#08774d;font-size:8px;font-weight:800}.fx-expand-hint i{font-style:normal;font-size:11px;line-height:1;transition:transform .18s}.fx-match-row.open .fx-expand-hint i{transform:rotate(180deg)}
.fx-match-details{padding:12px 14px 15px;border-bottom:1px solid var(--line);background:#fafcfb}.fx-match-details[hidden]{display:none!important}.fx-detail-tabs{display:inline-flex;padding:3px;margin-bottom:10px;border:1px solid var(--line);border-radius:9px;background:#f1f4f3}.fx-detail-tabs button{min-height:30px;padding:0 12px;border:0;border-radius:7px;background:transparent;color:var(--sub);font:inherit;font-size:9px;font-weight:800;cursor:pointer}.fx-detail-tabs button.active{background:#fff;color:#08774d;box-shadow:0 1px 3px rgba(20,35,29,.09)}.fx-detail-panel[hidden]{display:none!important}.fx-detail-panel.active{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.fx-detail-section{min-width:0;padding:10px;border:1px solid var(--line);border-radius:10px;background:#fff}.fx-detail-section-title{display:flex;align-items:center;gap:6px;margin-bottom:8px;padding-bottom:7px;border-bottom:1px solid #edf1ef;color:#08774d}.fx-detail-section-title>i{width:18px;height:18px;display:grid;place-items:center;border-radius:50%;background:#e8f6f0;font-size:8px}.fx-detail-section-title strong{font-size:10px}.fx-card-icon.yellow{color:#e9b91b}.fx-card-icon.red{color:#d9344e}.fx-detail-team-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.fx-detail-team-col{min-width:0;padding:7px 8px;border-radius:8px;background:#f7f9f8}.fx-detail-team-col.away{text-align:right}.fx-detail-team-name{display:flex;align-items:center;gap:6px;min-width:0}.fx-detail-team-col.away .fx-detail-team-name{flex-direction:row-reverse}.fx-detail-team-name b{font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.fx-detail-team-kit{width:24px;height:28px;object-fit:contain;flex:none}.fx-detail-team-players{display:flex;flex-direction:column;gap:4px;margin-top:6px}.fx-detail-player{display:block;font-size:10px;font-weight:650;line-height:1.25;overflow-wrap:anywhere}.fx-detail-player em{font-style:normal;color:#08774d;font-weight:850}.fx-detail-none{color:var(--dim);font-size:10px}.fx-detail-empty{grid-column:1/-1;padding:22px;border:1px dashed var(--line);border-radius:9px;background:#fff;color:var(--dim);font-size:10px;text-align:center}
.fx-empty{background:#fff;border:1px dashed var(--line2);border-radius:10px;padding:40px 18px;text-align:center}.fx-empty b{display:block;font-size:12px}.fx-empty span{display:block;color:var(--sub);font-size:9.5px;margin-top:5px}
.fixtures-fdr-controls{margin-top:0}.fixtures-sort-label{margin-left:auto}.fx-club-cell{display:flex;align-items:center;gap:8px}.fx-grid-kit{height:25px;max-width:28px;width:auto;object-fit:contain}
.fx-table-head{display:flex;align-items:flex-end;justify-content:space-between;gap:15px;background:#fff;border:1px solid var(--line);border-radius:10px 10px 0 0;padding:14px 16px}.fx-table-head h3{font-size:18px;margin:0}.fx-table-head small{color:var(--sub);font-size:9px;text-align:right}.fx-table-scroll{overflow-x:auto;background:#fff;border:1px solid var(--line);border-top:0;border-radius:0 0 10px 10px;-webkit-overflow-scrolling:touch}
.fx-table{min-width:700px}.fx-table th{padding:9px 10px;background:#fafbfb;color:#7c8792;text-transform:uppercase;font-size:8px;letter-spacing:.45px;text-align:center;border-bottom:1px solid var(--line)}.fx-table td{padding:9px 10px;text-align:center;border-bottom:1px solid #eef1f2;font-size:11px;font-variant-numeric:tabular-nums}.fx-table tbody tr:last-child td{border-bottom:0}.fx-table th.club,.fx-table td.club{text-align:left}.fx-table .pos{width:38px;color:#87929c}.fx-table .pts{font-size:12px}.fx-table-club{display:flex;align-items:center;gap:9px}.fx-table-club b{display:block;font-size:11.5px}.fx-table-club small{display:block;color:var(--dim);font-size:8px;margin-top:1px}.fx-table-kit{height:28px;max-width:30px;width:auto;object-fit:contain}
.fx-scroll,.tbl-scroll,.tbl-scroll-top,.fx-table-scroll{overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch}

@media(max-width:760px){
  .fixtures-head{align-items:flex-start;flex-direction:column}.fixtures-view-tabs{width:100%;display:grid;grid-template-columns:repeat(3,1fr)}.fixtures-view-tabs button{width:100%}
  .fx-match-toolbar{flex-wrap:wrap}.fx-gw-heading{flex:1}.fx-match-filter{margin-left:0;width:100%;display:grid;grid-template-columns:repeat(3,1fr)}.fx-match-filter button{width:100%}
  .fixtures-fdr-controls{align-items:flex-start}.fixtures-sort-label{margin-left:0;width:100%}
  .fx-detail-panel.active{grid-template-columns:1fr}
}
@media(max-width:560px){
  .fx-match-row{grid-template-columns:minmax(0,1fr) 78px minmax(0,1fr);padding:7px 8px;min-height:61px}.fx-match-team{gap:5px}.fx-match-kit{height:31px;max-width:34px}.fx-match-team b{font-size:10px}.fx-match-team small{display:block}.fx-score b{font-size:17px}.fx-kickoff{font-size:10px}.fx-day-label{padding:8px 10px}.fx-gw-heading>span{display:none}.fx-gw-heading small{font-size:8px}
  .fx-match-details{padding:10px 8px 12px}.fx-detail-tabs{display:grid;grid-template-columns:1fr 1fr;width:100%}.fx-detail-section{padding:8px}.fx-detail-team-col{padding:6px}.fx-detail-team-kit{width:21px;height:25px}.fx-detail-player{font-size:9px}
  .fx-table{min-width:470px}.fx-table .optional-wide{display:none}.fx-table th,.fx-table td{padding:8px 6px}.fx-table-kit{height:24px;max-width:25px}.fx-table-club b{font-size:10px}.fx-table-head{align-items:flex-start;flex-direction:column}.fx-table-head small{text-align:left}
  table.dt{min-width:1180px}.tbl-scroll,.fx-scroll{max-width:100vw}
}
@media(max-width:420px){
  .fx-table .optional{display:none}.fx-table{min-width:360px}.fx-match-team b{display:none}.fx-match-team small{font-size:9px}.fx-match-row{grid-template-columns:1fr 70px 1fr}
}

/* V10 mobile table safeguards */
.compact-table-scroll{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;overscroll-behavior-inline:contain}
table.dt.compact-dt{min-width:520px}
@media(max-width:560px){
  table.dt.compact-dt{min-width:470px}
  .modal-body{padding-left:14px;padding-right:14px}
  .lg-table,.lm-table{font-size:11px}.lg-table th,.lg-table td,.lm-table th,.lm-table td{padding-left:7px;padding-right:7px}
}

/* Footer links */
.site-footer{padding-top:10px}
.site-footer-links{display:flex;justify-content:center;gap:20px;flex-wrap:wrap;margin-bottom:10px}
.site-footer-links a{color:var(--sub);font-weight:600;text-decoration:none}
.site-footer-links a:hover{text-decoration:underline}
.site-footer-note{max-width:760px;margin:0 auto;color:var(--dim)}
@media(max-width:640px){.site-footer-links{gap:14px 18px}.site-footer-note{padding:0 8px}}

/* V14: shareable manager card creator */
.card-type-switch{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:14px 0}.card-type-switch button{border:1px solid var(--line);background:#fff;color:var(--sub);border-radius:9px;padding:12px 14px;text-align:left;cursor:pointer}.card-type-switch button b{display:block;font-size:12px;color:var(--ink)}.card-type-switch button span{display:block;font-size:9px;margin-top:3px;line-height:1.35}.card-type-switch button.active{border-color:#91c9b3;background:#edf7f3;box-shadow:inset 3px 0 0 #079b62}.card-type-switch button.active b{color:#087a55}
.card-creator-layout{display:grid;grid-template-columns:minmax(280px,360px) minmax(0,1fr);gap:14px;align-items:start}.card-control-panel,.card-preview-panel{background:#fff;border:1px solid var(--line);border-radius:10px}.card-control-panel{padding:16px;position:sticky;top:20px}.card-mode-head{margin-bottom:15px}.card-mode-head span{display:block;color:#079b62;font-size:8.5px;font-weight:800;letter-spacing:.7px;text-transform:uppercase}.card-mode-head h3{font-size:18px;margin-top:3px}.card-mode-head p{color:var(--sub);font-size:10.5px;margin-top:4px;line-height:1.5}.card-field{margin-top:11px}.card-field label{display:block;color:var(--dim);font-size:8.5px;font-weight:800;text-transform:uppercase;letter-spacing:.55px;margin-bottom:5px}.card-field input,.card-field select{width:100%;border:1px solid var(--line2);border-radius:8px;background:#fff;color:var(--ink);font:inherit;font-size:12px;padding:10px 11px;outline:0}.card-field input:focus,.card-field select:focus{border-color:#78bca2;box-shadow:0 0 0 3px rgba(11,143,98,.08)}.card-create-btn{width:100%;margin-top:14px}.card-creator-status{min-height:34px;padding-top:9px;color:var(--good);font-size:9.5px;line-height:1.45}.card-creator-status.bad{color:#b54252}.card-privacy-note{padding-top:10px;border-top:1px solid #edf0f2;color:var(--dim);font-size:8.5px;line-height:1.45}.card-preview-panel{padding:14px;min-height:560px}.card-preview-stage{display:flex;align-items:center;justify-content:center;min-height:500px;border-radius:8px;background:#eef3f1;overflow:hidden}.card-preview-empty{max-width:330px;text-align:center;padding:30px;color:var(--sub)}.card-preview-empty b{display:block;color:var(--ink);font-size:13px;margin-bottom:6px}.card-preview-empty span{font-size:10px;line-height:1.5}.card-preview-stage canvas{display:block;width:min(100%,520px);height:auto;box-shadow:0 10px 34px rgba(31,43,52,.12)}.card-export-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));justify-content:center;gap:8px;margin-top:12px}.card-export-actions button{min-width:130px}.card-export-actions button:disabled{opacity:.45;cursor:not-allowed}
@media(max-width:820px){.card-creator-layout{grid-template-columns:1fr}.card-control-panel{position:static}.card-preview-panel{min-height:0}.card-preview-stage{min-height:420px}}
@media(max-width:520px){.card-type-switch{grid-template-columns:1fr}.card-type-switch button{padding:10px 12px}.card-creator-layout{gap:10px}.card-control-panel,.card-preview-panel{border-radius:9px;padding:12px}.card-preview-stage{min-height:360px}.card-export-actions{grid-template-columns:1fr}.card-export-actions button{min-width:0}.card-preview-stage canvas{width:100%}}

/* ============ INSIGHTS / EDITORIAL STUDIO ============ */
.insights-hero{display:flex;justify-content:space-between;align-items:flex-end;gap:28px;padding:34px 0 28px;border-bottom:1px solid var(--line)}
.insights-hero>div{max-width:760px}.insights-hero h2{font-size:clamp(30px,4vw,48px);line-height:1.05;letter-spacing:-.04em;margin:8px 0 12px;color:var(--text)}.insights-hero p{margin:0;color:var(--muted);font-size:16px;line-height:1.6}
.insights-public-link{flex:0 0 auto;text-decoration:none;color:var(--mint);font-size:13px;font-weight:700;border:1px solid var(--line);background:#fff;border-radius:10px;padding:10px 13px}

.insights-section-head{display:flex;justify-content:space-between;align-items:end;margin:28px 0 14px}.insights-section-head span{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:var(--mint);font-weight:800}.insights-section-head h3{font-size:22px;margin:4px 0 0}.insights-section-head p{color:var(--muted);font-size:13px;margin:6px 0 0}
.insights-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.insight-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:22px}.insight-card-meta{display:flex;gap:8px;align-items:center;flex-wrap:wrap;color:var(--dim);font-size:11px}.insight-card-meta span{color:#087d53;background:#edf8f2;border-radius:999px;padding:4px 7px;font-weight:700}.insight-card h3{font-size:20px;line-height:1.25;margin:14px 0 9px}.insight-card h3 a{color:var(--text);text-decoration:none}.insight-card p{color:var(--muted);font-size:13px;line-height:1.55;margin:0 0 14px}.insight-read{font-size:12px;color:var(--mint);font-weight:700;text-decoration:none}.insights-loading,.insights-empty{grid-column:1/-1;border:1px dashed var(--line);border-radius:14px;padding:26px;color:var(--muted);background:#fbfcfb}.insights-empty b{color:var(--text)}.insights-empty p{margin:7px 0 0;line-height:1.55}
.insights-admin-gate{margin-top:32px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:18px;display:flex;align-items:center;gap:12px}.insights-admin-gate b{font-size:13px}.insights-admin-gate span{font-size:12px;color:var(--muted);flex:1}.insights-admin-gate button{border:0;background:var(--text);color:#fff;border-radius:9px;padding:9px 13px;font-weight:700;cursor:pointer}
.insights-studio{margin-top:34px;padding-top:4px;border-top:1px solid var(--line)}.insights-studio-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(320px,.65fr);gap:16px}.insights-editor-card,.insights-research-card,.insights-drafts-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px}.insights-editor-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:15px}.insights-editor-top>div{display:flex;flex-direction:column;gap:3px}.insights-editor-top small{color:var(--muted);font-size:11px}.insights-editor-card label{display:flex;flex-direction:column;gap:6px;font-size:11px;font-weight:700;color:var(--muted);margin-bottom:12px}.insights-editor-card input,.insights-editor-card select,.insights-editor-card textarea,.insights-research-card input,.insights-research-card textarea{width:100%;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--text);font:inherit;padding:10px 11px;outline:none}.insights-editor-card textarea,.insights-research-card textarea{resize:vertical;line-height:1.55}.insights-editor-card input:focus,.insights-editor-card select:focus,.insights-editor-card textarea:focus{border-color:#8bd4b3;box-shadow:0 0 0 3px #e8f7ef}.insights-form-row{display:grid;grid-template-columns:1fr 150px;gap:10px}.insights-form-row label:first-child:last-child{grid-column:1/-1}.insights-editor-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.insights-editor-actions #insightEditorMsg{font-size:11px;color:#087d53}.insights-editor-actions #insightEditorMsg.bad{color:#b42318}.insights-side-stack{display:flex;flex-direction:column;gap:16px}.insights-research-controls{display:grid;grid-template-columns:80px 1fr;gap:8px;margin-bottom:10px}.insights-research-controls button{border:0;border-radius:9px;background:var(--mint);color:#fff;font-weight:700;cursor:pointer}.insights-research-card textarea{background:#f8faf9;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11px;margin-bottom:10px}.insights-drafts-card>b{font-size:13px}.insights-draft-row{width:100%;display:flex;align-items:center;justify-content:space-between;gap:8px;border:0;border-bottom:1px solid var(--line);background:transparent;text-align:left;padding:12px 0;cursor:pointer}.insights-draft-row span{min-width:0}.insights-draft-row b,.insights-draft-row small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.insights-draft-row b{font-size:12px;color:var(--text)}.insights-draft-row small{font-size:10px;color:var(--muted);margin-top:3px}.insights-draft-row em{font-size:9px;font-style:normal;text-transform:uppercase;letter-spacing:.05em;color:#946200;background:#fff8e3;border-radius:999px;padding:4px 6px}.insights-draft-row em.published{color:#087d53;background:#edf8f2}.insights-drafts-empty{font-size:12px;color:var(--muted);padding:16px 0}
.home-editorial{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.home-editorial-card{display:flex;flex-direction:column;gap:8px;text-decoration:none;background:#fff;border:1px solid var(--line);border-radius:14px;padding:17px;min-height:145px}.home-editorial-card span{font-size:10px;color:var(--mint);text-transform:uppercase;letter-spacing:.06em;font-weight:800}.home-editorial-card b{font-size:14px;line-height:1.35;color:var(--text)}.home-editorial-card small{font-size:11px;line-height:1.45;color:var(--muted);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.home-editorial-empty{grid-column:1/-1;border:1px dashed var(--line);border-radius:14px;padding:20px;color:var(--muted);font-size:12px}
@media(max-width:900px){.insights-studio-grid{grid-template-columns:1fr}.home-editorial{grid-template-columns:1fr}.insights-hero{align-items:flex-start;flex-direction:column}.insights-public-link{align-self:flex-start}}
@media(max-width:640px){.insights-grid{grid-template-columns:1fr}.insights-form-row{grid-template-columns:1fr}.insights-admin-gate{align-items:flex-start;flex-direction:column}.insights-admin-gate span{flex:auto}.insights-hero{padding-top:22px}.insights-editor-card,.insights-research-card,.insights-drafts-card{padding:14px}}
.insights-hero-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
@media(max-width:900px){.insights-hero-actions{justify-content:flex-start}}

/* V18 live Insights */
.insights-public-link[type="button"]{font:inherit;cursor:pointer}
.insights-live-lead{background:#fff;border:1px solid var(--line);border-radius:18px;padding:24px;margin:0 0 24px;max-width:900px}
.insights-live-lead>span{font-size:10px;color:var(--mint);font-weight:800;text-transform:uppercase;letter-spacing:.08em}
.insights-live-lead h3{font-size:clamp(24px,3vw,34px);line-height:1.16;letter-spacing:-.03em;margin:8px 0 10px}
.insights-live-lead p{color:var(--muted);line-height:1.6;margin:0 0 8px;max-width:760px}
.insights-live-lead small{color:var(--dim);font-size:11px}
.insight-rows{display:flex;flex-direction:column;border-top:1px solid var(--line);margin-top:16px}
.insight-row{display:grid;grid-template-columns:minmax(170px,.75fr) minmax(0,1.25fr);gap:14px;padding:13px 0;border-bottom:1px solid var(--line)}
.insight-row:last-child{border-bottom:0;padding-bottom:0}
.insight-row>div{min-width:0}.insight-row b,.insight-row small{display:block}.insight-row b{font-size:13px}.insight-row small{color:var(--dim);font-size:10px;line-height:1.45;margin-top:3px}.insight-row>span{color:var(--muted);font-size:11px;line-height:1.5}
@media(max-width:640px){.insight-row{grid-template-columns:1fr;gap:5px}.insights-live-lead{padding:18px}}

/* Insights archive */
.insights-archive-head{margin-top:28px}
.insights-archive{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px;margin-bottom:28px}
.insights-archive-link{display:flex;align-items:center;justify-content:space-between;padding:13px 14px;border:1px solid #e4e9e6;border-radius:10px;background:#fff;color:#17211c;text-decoration:none;font-size:13px;font-weight:700}
.insights-archive-link:hover{border-color:#b8d8ca;background:#f8fbf9}
.insights-archive-link span{color:#078755}

/* V18.2 — distinctive Insights presentation */
.home-editorial{grid-template-columns:minmax(0,1.55fr) repeat(2,minmax(0,.725fr));gap:12px}
.home-editorial-card{position:relative;overflow:hidden;border-radius:16px;min-height:166px;transition:border-color .16s ease,transform .16s ease}
.home-editorial-card:hover{border-color:#9fcfba;transform:translateY(-1px)}
.home-editorial-feature{display:grid;grid-template-columns:minmax(0,1fr) 128px;gap:18px;background:#f4faf7;border-color:#d9ebe2;padding:22px;box-shadow:inset 4px 0 0 #079b62}
.home-insight-copy{display:flex;flex-direction:column;gap:8px;min-width:0}.home-insight-copy>span,.home-insight-card-head>span{font-size:9px;color:#078755;text-transform:uppercase;letter-spacing:.09em;font-weight:800}.home-insight-copy>b{font-size:18px;line-height:1.25;color:var(--text);max-width:560px}.home-insight-copy>small{font-size:11.5px;line-height:1.55;color:var(--muted);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.home-insight-copy>em{font-size:10px;color:#087d53;font-style:normal;font-weight:800;margin-top:auto}
.home-insight-media{position:relative;display:flex;align-items:flex-end;justify-content:center;min-height:118px}.home-insight-photo{height:124px;width:96px;object-fit:contain;object-position:bottom center;filter:drop-shadow(0 8px 10px rgba(23,33,28,.12))}.home-insight-mini-kit{position:absolute;right:0;bottom:4px;width:34px;height:42px;object-fit:contain;background:#fff;border:1px solid #dbe8e1;border-radius:10px;padding:4px}.home-insight-kit{width:26px;height:34px;object-fit:contain;flex:0 0 auto}
.home-editorial-secondary{padding:18px}.home-insight-card-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.home-insight-card-head i{font-style:normal;font-size:22px;font-weight:800;letter-spacing:-.04em;color:#d5dfda}.home-editorial-secondary>b{font-size:15px;line-height:1.3}.home-editorial-secondary>small{font-size:11px;line-height:1.5;-webkit-line-clamp:4}.home-insight-club{display:flex;align-items:center;gap:7px;margin-top:auto;padding-top:9px;border-top:1px solid #edf1ef}.home-insight-club span{font-size:10px;color:var(--dim);text-transform:none;letter-spacing:0;font-weight:700}
.insights-live-lead{max-width:none;display:grid;grid-template-columns:minmax(0,1fr) 210px;gap:26px;align-items:stretch;padding:0;overflow:hidden;border-radius:20px;background:#fff;box-shadow:inset 4px 0 0 #079b62}
.insights-lead-copy{padding:26px 26px 24px}.insights-lead-copy>span{font-size:10px;color:#078755;font-weight:800;text-transform:uppercase;letter-spacing:.09em}.insights-lead-copy h3{font-size:clamp(26px,3.3vw,38px);line-height:1.12;letter-spacing:-.035em;margin:9px 0 11px}.insights-lead-intro{font-size:14px!important;color:#53615a!important;line-height:1.65!important;max-width:780px!important}.insights-story-copy{margin-top:18px;padding-top:17px;border-top:1px solid #edf1ef}.insights-story-copy p{font-size:12.5px!important;line-height:1.7!important;color:#53615a!important;margin:0 0 10px!important}.insights-story-copy p:last-child{margin-bottom:0!important}.insights-takeaways{display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin:18px 0 14px}.insights-takeaways>b{font-size:9px;text-transform:uppercase;letter-spacing:.08em;color:#66736c;margin-right:2px}.insights-takeaways>span{font-size:10px;color:#21533e;background:#edf8f2;border:1px solid #d7ece2;border-radius:8px;padding:6px 8px}
.insights-lead-visual{background:#edf7f2;border-left:1px solid #dfece5;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;min-height:280px;padding:18px}.insights-player-frame{position:relative;display:flex;align-items:flex-end;justify-content:center;width:100%;flex:1}.insights-player-photo{max-height:190px;max-width:150px;object-fit:contain;object-position:bottom center;filter:drop-shadow(0 12px 15px rgba(23,33,28,.14))}.insights-lead-kit{position:absolute;right:6px;bottom:4px;width:42px;height:50px;object-fit:contain;background:#fff;border:1px solid #d6e7df;border-radius:11px;padding:5px}.insights-lead-visual>small{font-size:10px;color:#52635a;font-weight:700;margin-top:8px}.insights-team-kit{width:92px;height:118px;object-fit:contain}.insights-lead-mark{display:grid;place-items:center;background:#edf7f2;color:#079b62;font-size:72px;font-weight:800;border-left:1px solid #dfece5}
.insights-grid{gap:16px}.insight-card{position:relative;padding:22px 22px 20px;border-radius:18px;overflow:hidden}.insight-card::before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:#dfe8e3}.insight-review::before,.insight-live::before,.insight-watch::before{background:#079b62}.insight-differential::before{background:#6aa684}.insight-captain::before{background:#b79124}.insight-fixtures::before{background:#5a8ca5}.insight-market::before{background:#8d6ba6}.insight-caution::before{background:#bb6f63}.insight-card-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.insight-card-top em{font-size:27px;font-weight:800;font-style:normal;letter-spacing:-.05em;color:#dde5e1}.insight-card-meta span{background:transparent;padding:0;color:#078755;text-transform:uppercase;letter-spacing:.09em;font-size:9px}.insight-card h3{font-size:21px;margin:9px 0 8px}.insight-card-intro{font-size:12.5px!important;line-height:1.6!important;min-height:40px}
.insight-row{grid-template-columns:minmax(185px,.82fr) minmax(0,1.18fr);padding:12px 0}.insight-row-main{display:flex;align-items:center;gap:10px;min-width:0}.insight-kit{width:30px;height:38px;object-fit:contain;flex:0 0 auto}.insight-row-kits{display:flex;align-items:center;gap:2px;min-width:62px}.insight-row-kits .insight-kit{width:27px;height:34px}.insight-row-main>div{min-width:0}.insight-row-main b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.insights-archive{grid-template-columns:repeat(auto-fill,minmax(130px,1fr))}.insights-archive-link{min-height:64px;border-radius:13px;padding:10px 12px}.insights-archive-link>span{display:flex;flex-direction:column;gap:3px;color:var(--text)}.insights-archive-link small{font-size:8px;color:#078755;text-transform:uppercase;letter-spacing:.08em}.insights-archive-link b{color:#078755;font-size:16px}
@media(max-width:1000px){.home-editorial{grid-template-columns:1fr 1fr}.home-editorial-feature{grid-column:1/-1}.insights-live-lead{grid-template-columns:minmax(0,1fr) 170px}}
@media(max-width:700px){.home-editorial{grid-template-columns:1fr}.home-editorial-feature{grid-template-columns:minmax(0,1fr) 92px;padding:18px}.home-insight-photo{height:104px;width:78px}.insights-live-lead{grid-template-columns:1fr}.insights-lead-visual,.insights-lead-mark{display:none}.insights-lead-copy{padding:20px}.insights-story-copy p{font-size:12px!important}.insight-row{grid-template-columns:1fr;gap:6px}.insight-row>span{padding-left:40px}}

/* V18.3 — clearer editorial visual rules */
.insights-takeaway{margin:20px 0 14px;padding:15px 17px;border-left:3px solid #079b62;background:#f6faf8;border-radius:0 12px 12px 0}.insights-takeaway b{display:block;font-size:9px;text-transform:uppercase;letter-spacing:.09em;color:#078755;margin-bottom:6px}.insights-takeaway p{margin:0!important;font-size:12px!important;line-height:1.65!important;color:#405149!important}.insights-neutral-visual{justify-content:center;background:linear-gradient(180deg,#f2f9f5,#eaf5ef)}.insights-gw-mark,.home-gw-mark{display:flex;flex-direction:column;align-items:center;justify-content:center}.insights-gw-mark span,.home-gw-mark span{font-size:9px;letter-spacing:.12em;font-weight:800;color:#6d7d75}.insights-gw-mark b{font-size:58px;line-height:1;color:#079b62;letter-spacing:-.06em;margin:8px 0}.insights-gw-mark small{font-size:10px;color:#607168}.home-gw-mark{width:96px;height:96px;border:1px solid #d8e8e0;border-radius:18px;background:#fff}.home-gw-mark b{font-size:34px;color:#079b62;letter-spacing:-.05em;margin-top:5px}.home-insight-mini-kit,.insights-lead-kit{display:none!important}


/* ===== V20 decision tools ===== */
.rating-hero{display:grid;grid-template-columns:auto 1fr auto;gap:22px;align-items:center;padding:22px;border:1px solid var(--line);border-left:4px solid var(--accent);border-radius:18px;background:#f6fbf8;margin:18px 0}
.rating-score{display:flex;align-items:baseline;gap:3px;min-width:130px}.rating-score span{display:block;position:absolute;transform:translateY(-28px);font-size:10px;text-transform:uppercase;letter-spacing:.09em;font-weight:800;color:var(--dim)}.rating-score strong{font-size:54px;line-height:1;color:var(--ink)}.rating-score em{font-style:normal;color:var(--dim);font-weight:700}.rating-hero-copy h3{margin:4px 0 2px;font-size:25px}.rating-hero-copy p,.rating-verdict small{color:var(--dim)}.rating-verdict{text-align:right;max-width:180px}.rating-verdict b,.rating-verdict small{display:block}.rating-breakdown{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0 0 18px}.rating-row{display:grid;grid-template-columns:minmax(140px,1fr) minmax(100px,1.2fr) 38px;align-items:center;gap:12px;padding:13px 15px;border:1px solid var(--line);border-radius:12px;background:#fff}.rating-row-copy b,.rating-row-copy small{display:block}.rating-row-copy small{color:var(--dim);margin-top:2px}.rating-track{height:7px;background:#edf2ef;border-radius:99px;overflow:hidden}.rating-track i{display:block;height:100%;background:var(--accent);border-radius:inherit}.rating-row strong{text-align:right}
.muted-label{color:var(--dim);font-weight:500}.transfer-form{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) minmax(0,1fr)!important;align-items:start}.ta-form-actions{grid-column:1/-1}.transfer-compare-grid{display:grid;gap:14px;margin:18px 0}.transfer-compare-grid.cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.transfer-compare-grid.cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.transfer-table-scroll{overflow-x:auto;border:1px solid var(--line);border-radius:14px;background:#fff}.transfer-compare-table{border-collapse:collapse;width:100%;min-width:620px}.transfer-compare-table th,.transfer-compare-table td{padding:12px 14px;border-bottom:1px solid var(--line);text-align:center}.transfer-compare-table th:first-child{text-align:left;color:var(--dim)}.transfer-compare-table thead th{font-size:12px;background:#f7f9f8}.transfer-compare-table tbody tr:last-child th,.transfer-compare-table tbody tr:last-child td{border-bottom:0}
.minutes-tracker{margin-top:18px;border:1px solid var(--line);border-radius:14px;padding:16px;background:#fbfcfb}.minutes-tracker-head{display:flex;justify-content:space-between;align-items:end;gap:16px}.minutes-tracker-head h4{margin:4px 0 0}.minutes-tracker-head>div:last-child{text-align:right}.minutes-tracker-head b,.minutes-tracker-head small{display:block}.minutes-tracker-head small{color:var(--dim)}.minutes-bars{display:flex;gap:8px;align-items:end;height:125px;margin-top:16px}.minutes-bar-col{flex:1;min-width:34px;text-align:center;font-size:9px;color:var(--dim)}.minutes-bar{height:82px;background:#edf2ef;border-radius:6px;display:flex;align-items:end;overflow:hidden;margin-bottom:5px}.minutes-bar i{width:100%;background:var(--accent);border-radius:4px 4px 0 0}.minutes-bar-col b{display:block;color:var(--ink);font-size:10px;margin-top:2px}
.rotation-controls{display:grid;grid-template-columns:1fr auto auto;gap:18px;align-items:end;margin:18px 0}.rotation-controls h3{margin:3px 0}.rotation-controls p{margin:0;color:var(--dim)}.rotation-selects{display:flex;align-items:center;gap:8px}.rotation-selects select{min-width:150px}.rotation-summary{display:flex;align-items:center;gap:18px;padding:18px;border:1px solid var(--line);border-radius:14px;background:#f6fbf8;margin-bottom:14px}.rotation-summary span,.rotation-summary strong{display:block}.rotation-summary strong{font-size:34px}.rotation-summary strong small{font-size:14px;color:var(--dim)}.rotation-summary p{margin:0;color:var(--dim)}.rotation-grid{display:grid;grid-template-columns:repeat(5,minmax(145px,1fr));gap:10px;overflow-x:auto;padding-bottom:5px}.rotation-gw{border:1px solid var(--line);border-radius:13px;padding:10px;background:#fff}.rotation-gw-label{font-weight:800;font-size:11px;margin-bottom:8px}.rotation-fixture{display:flex;align-items:center;gap:7px;padding:8px;border-radius:9px;margin:5px 0}.rotation-kit{width:24px;height:30px;object-fit:contain}.rotation-fixture span{flex:1}.rotation-fixture b,.rotation-fixture small{display:block}.rotation-fixture small{font-size:9px}.rotation-fixture em{font-style:normal;font-weight:800}.rotation-best{font-size:10px;color:var(--dim);border-top:1px solid var(--line);padding-top:7px;margin-top:7px}
.captain-matrix{border:1px solid var(--line);border-radius:16px;background:#fff;overflow:hidden;margin:18px 0}.captain-matrix-head{display:flex;justify-content:space-between;gap:18px;padding:18px 20px;border-bottom:1px solid var(--line)}.captain-matrix-head h3{margin:4px 0}.captain-matrix-head p{margin:0;color:var(--dim)}.captain-matrix-picks{display:flex;gap:8px;align-items:center}.captain-matrix-picks span{padding:8px 10px;background:#f3f8f5;border-radius:9px;font-size:11px}.captain-matrix-picks b{display:block}.matrix-scroll{overflow-x:auto}.matrix-table{border-collapse:collapse;width:100%;min-width:760px}.matrix-table th,.matrix-table td{padding:11px 14px;border-bottom:1px solid var(--line);text-align:left}.matrix-table thead th{font-size:10px;text-transform:uppercase;letter-spacing:.06em;color:var(--dim);background:#fafbfa}.matrix-player{display:flex;align-items:center;gap:8px}.matrix-kit{width:29px;height:36px;object-fit:contain}.matrix-player b,.matrix-player small{display:block}.matrix-player small{color:var(--dim)}.matrix-fixture{display:inline-flex;align-items:center;gap:8px;white-space:nowrap}.matrix-fdr{display:inline-flex;align-items:center;justify-content:center;padding:4px 7px;border-radius:6px;font-size:10px;font-weight:800;line-height:1}.matrix-projection-note{color:var(--dim);font-size:11px;font-weight:600}.matrix-stars{color:var(--accent);letter-spacing:1px;white-space:nowrap}.captain-sample-head{margin-top:24px}
@media(max-width:900px){.rating-hero{grid-template-columns:1fr}.rating-score span{position:static;transform:none}.rating-verdict{text-align:left;max-width:none}.rating-breakdown{grid-template-columns:1fr}.transfer-form{grid-template-columns:1fr!important}.swap-action{display:none}.transfer-compare-grid.cols-2,.transfer-compare-grid.cols-3{grid-template-columns:1fr}.rotation-controls{grid-template-columns:1fr}.rotation-selects{flex-wrap:wrap}.rotation-grid{grid-template-columns:repeat(5,150px)}.captain-matrix-head{display:block}.captain-matrix-picks{margin-top:12px}.minutes-bars{overflow-x:auto}.minutes-bar-col{min-width:42px}}

/* V21 - clearer decision tools and calmer Insights styling */
.home-editorial-card,.home-editorial-card:visited{color:var(--text);text-decoration:none}
.home-editorial-feature{background:#f7fbf9;box-shadow:inset 3px 0 0 #079b62}
.home-editorial-feature .home-insight-copy>b,.home-editorial-secondary>b{color:#142019!important}
.home-editorial-feature .home-insight-copy>small,.home-editorial-secondary>small{color:#596861!important}
.home-editorial-card:hover .home-insight-copy>b,.home-editorial-card:hover>b{color:#087d53!important}
.home-gw-mark{background:#fff;border-color:#dce9e2}.home-gw-mark b{color:#087d53}

.tool-guide{margin:18px 0 20px;padding:20px;border:1px solid #dfe8e3;border-radius:16px;background:#f8fbf9}
.tool-guide.compact{margin:16px 0 20px;padding:18px}
.tool-guide-title>span{font-size:9px;text-transform:uppercase;letter-spacing:.09em;font-weight:800;color:#078755}
.tool-guide-title h3{font-size:18px;margin:5px 0;color:var(--text)}
.tool-guide-title p{margin:0;max-width:850px;color:var(--dim);font-size:12px;line-height:1.6}
.tool-guide-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:14px}
.tool-guide-grid article{padding:13px 14px;border:1px solid #e3ebe7;border-radius:11px;background:#fff}
.tool-guide-grid article b{display:block;font-size:12px;color:var(--text);margin-bottom:4px}
.tool-guide-grid article p{margin:0;color:var(--dim);font-size:10.5px;line-height:1.55}

.rotation-explainer{display:flex;gap:13px;align-items:flex-start;padding:15px 17px;border:1px solid #dce9e2;border-radius:13px;background:#f8fbf9;margin-bottom:12px}
.rotation-explainer-icon{display:grid;place-items:center;flex:0 0 38px;height:38px;border-radius:10px;background:#eaf6f0;color:#078755;font-size:11px;font-weight:900;letter-spacing:.04em}
.rotation-explainer b{font-size:12px}.rotation-explainer p{margin:3px 0 0;color:var(--dim);font-size:11px;line-height:1.55}
.rotation-summary>div em{display:block;margin-top:2px;font-size:10px;font-style:normal;color:#078755;font-weight:800}
.rotation-summary p{font-size:11px;line-height:1.55}.rotation-legend{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 10px}
.rotation-legend span{font-size:10px;color:#5d6c64;padding:5px 8px;border:1px solid #e1e9e5;border-radius:8px;background:#fff}

.captain-matrix-head p{max-width:760px;line-height:1.55}.captain-matrix-picks span{border:1px solid #e0ebe5;background:#f7faf8}

@media(max-width:760px){.tool-guide-grid{grid-template-columns:1fr}.tool-guide{padding:16px}.rotation-explainer{padding:13px}.rotation-summary{align-items:flex-start;flex-direction:column}}

/* V22 - planner clarity, clickable player rows and appearance toggle */
.theme-toggle{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line2);background:var(--panel);color:var(--sub);border-radius:8px;padding:7px 9px;font:700 11px/1 'Inter',sans-serif;cursor:pointer;transition:.15s;white-space:nowrap}
.theme-toggle:hover{color:var(--ink);border-color:#aeb8c2;background:var(--panel2)}
.theme-toggle-icon{font-size:13px;line-height:1}
.pl-clickable{cursor:pointer}
.pl-clickable:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
.planner-title-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
@media(min-width:901px){
  .nav{justify-content:space-between;gap:8px}
  .brand{min-width:0}.brand>div:last-child{min-width:0}.brand-sub{display:block;white-space:nowrap}
  .theme-toggle{padding:7px;width:34px;height:34px;justify-content:center}
  .theme-toggle-text{display:none}
}
@media(max-width:900px){.theme-toggle{margin-left:auto}}

/* Dark mode. Uses the same restrained green accent while keeping the pitch/kit artwork untouched. */
html[data-theme="dark"]{
  color-scheme:dark;
  --bg:#11161b;
  --bg2:#151b21;
  --panel:#171e24;
  --panel2:#202830;
  --line:#2b343d;
  --line2:#37424c;
  --ink:#edf2f5;
  --sub:#b4bec7;
  --dim:#818d98;
  --accent:#29b77b;
  --mint:#29b77b;
  --good:#45c993;
  --bad:#ef7181;
  --warn:#d6a653;
  --fdr3:#3a434b;
}
html[data-theme="dark"] body{background:var(--bg);color:var(--ink)}
html[data-theme="dark"] .nav,
html[data-theme="dark"] .tabs{background:var(--panel)!important;border-color:var(--line)!important}
html[data-theme="dark"] .tab{color:var(--sub)}
html[data-theme="dark"] .tab:hover{background:var(--panel2)!important;color:var(--ink)!important}
html[data-theme="dark"] .tab.active{background:#17382d!important;color:#7ad7ad!important;box-shadow:inset 3px 0 0 var(--accent)}
html[data-theme="dark"] .tab-label.active-group{background:#172922;color:#74c9a5}
html[data-theme="dark"] .sidebar-account{background:#141b20!important;border-color:var(--line)!important}
html[data-theme="dark"] .sidebar-account-btn,
html[data-theme="dark"] .theme-toggle{background:var(--panel)!important;color:var(--sub);border-color:var(--line2)!important}
html[data-theme="dark"] .sidebar-account-btn:hover,
html[data-theme="dark"] .theme-toggle:hover{background:var(--panel2)!important;color:var(--ink)}
html[data-theme="dark"] .home-status-card,
html[data-theme="dark"] .home-insight,
html[data-theme="dark"] .home-tool,
html[data-theme="dark"] .home-fixtures,
html[data-theme="dark"] .analysis-panel,
html[data-theme="dark"] .analysis-stat,
html[data-theme="dark"] .analysis-manager-head,
html[data-theme="dark"] .tool-form,
html[data-theme="dark"] .compare-form,
html[data-theme="dark"] .transfer-form,
html[data-theme="dark"] .tool-field,
html[data-theme="dark"] .tool-empty,
html[data-theme="dark"] .tool-loading,
html[data-theme="dark"] .fx-scroll,
html[data-theme="dark"] .tbl-scroll,
html[data-theme="dark"] .tbl-scroll-top,
html[data-theme="dark"] .plcols-panel,
html[data-theme="dark"] .live-row,
html[data-theme="dark"] .inj-row,
html[data-theme="dark"] .sp-card,
html[data-theme="dark"] .scout-row,
html[data-theme="dark"] .ps-row,
html[data-theme="dark"] .pr-row,
html[data-theme="dark"] .pdd-card,
html[data-theme="dark"] .modal-card,
html[data-theme="dark"] .captain-head,
html[data-theme="dark"] .captain-card,
html[data-theme="dark"] .captain-loading,
html[data-theme="dark"] .captain-empty,
html[data-theme="dark"] .bld-top,
html[data-theme="dark"] .bld-note,
html[data-theme="dark"] .bld-info-card,
html[data-theme="dark"] .bld-playerbox,
html[data-theme="dark"] .planner-start-card,
html[data-theme="dark"] .planner-summary>div,
html[data-theme="dark"] .planner-main,
html[data-theme="dark"] .planner-side,
html[data-theme="dark"] .planner-transfer,
html[data-theme="dark"] .planner-player-list,
html[data-theme="dark"] .planner-action-sheet,
html[data-theme="dark"] .tool-guide,
html[data-theme="dark"] .tool-guide article,
html[data-theme="dark"] .rotation-panel,
html[data-theme="dark"] .rotation-summary,
html[data-theme="dark"] .rotation-table-wrap,
html[data-theme="dark"] .captain-matrix-card,
html[data-theme="dark"] .compare-player-card,
html[data-theme="dark"] .player-detail-card,
html[data-theme="dark"] .minutes-track-card,
html[data-theme="dark"] .home-editorial-card,
html[data-theme="dark"] .insight-card,
html[data-theme="dark"] .insight-feature,
html[data-theme="dark"] .insight-archive-card{background:var(--panel)!important;border-color:var(--line)!important;color:var(--ink)}
html[data-theme="dark"] .fxg th,
html[data-theme="dark"] table.dt th{background:#151c22!important;color:#9ba7b2;border-color:var(--line)!important}
html[data-theme="dark"] .fxg td,
html[data-theme="dark"] table.dt td{border-color:var(--line)!important}
html[data-theme="dark"] table.dt tr:hover td{background:var(--panel2)!important}
html[data-theme="dark"] .seg{background:var(--panel)!important;border-color:var(--line)!important}
html[data-theme="dark"] .seg button.active{background:var(--panel2)!important;color:var(--ink)!important;box-shadow:none}
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea{background:#12191f!important;color:var(--ink)!important;border-color:var(--line2)!important}
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder{color:#6f7c87}
html[data-theme="dark"] .secondary-action,
html[data-theme="dark"] .bld-btn.ghost,
html[data-theme="dark"] .share-btn,
html[data-theme="dark"] .captain-refresh,
html[data-theme="dark"] .lm-more{background:var(--panel2)!important;color:var(--ink)!important;border-color:var(--line2)!important}
html[data-theme="dark"] .secondary-action:hover,
html[data-theme="dark"] .share-btn:hover,
html[data-theme="dark"] .captain-refresh:hover{background:#28333c!important}
html[data-theme="dark"] .danger-soft{color:#ff8c99!important;border-color:#63343c!important;background:#2a1b20!important}
html[data-theme="dark"] .home-recent-chip,
html[data-theme="dark"] .recent .chip{background:var(--panel)!important;border-color:var(--line)!important;color:var(--sub)!important}
html[data-theme="dark"] .mhead,
html[data-theme="dark"] .countdown,
html[data-theme="dark"] .cd-box{background:var(--panel)!important;border-color:var(--line)!important}
html[data-theme="dark"] .mhead .name,
html[data-theme="dark"] .cd-num{color:var(--ink)!important}
html[data-theme="dark"] .banner{background:#2a2418!important;border-color:#51432a!important}
html[data-theme="dark"] .banner.err{background:#2b1c21!important;border-color:#61313b!important}
html[data-theme="dark"] .bench{background:#172026!important;border-color:#34404a!important}
html[data-theme="dark"] .planner-gw{background:var(--panel)!important;border-color:var(--line)!important;color:var(--sub)!important}
html[data-theme="dark"] .planner-gw.active{background:#17382d!important;border-color:#2d7f61!important;color:#8cddb9!important}
html[data-theme="dark"] .mobile-nav,
html[data-theme="dark"] .mobile-more-sheet{background:var(--panel)!important;border-color:var(--line)!important}
html[data-theme="dark"] .mobile-nav-item,
html[data-theme="dark"] .mobile-more-grid button,
html[data-theme="dark"] #mobileMoreClose{color:var(--sub)!important;background:transparent!important;border-color:var(--line)!important}
html[data-theme="dark"] .mobile-nav-item.active{color:#7ad7ad!important}
html[data-theme="dark"] footer{border-color:var(--line);color:var(--dim)}
html[data-theme="dark"] a{color:#8bdab8}

/* V23 - complete dark-mode surface + contrast pass */
html[data-theme="dark"]{
  --bg:#0f1419;
  --bg2:#12181e;
  --panel:#171e24;
  --panel2:#202830;
  --line:#2d3740;
  --line2:#3a4651;
  --ink:#f2f6f8;
  --sub:#c2cbd2;
  --dim:#8f9ba6;
}
html[data-theme="dark"] body,
html[data-theme="dark"] .app,
html[data-theme="dark"] .main,
html[data-theme="dark"] .page,
html[data-theme="dark"] .tabpanel{background:var(--bg)!important;color:var(--ink)!important}

/* Shared surfaces */
html[data-theme="dark"] .card,
html[data-theme="dark"] .scout-note,
html[data-theme="dark"] .analysis-manager-head,
html[data-theme="dark"] .analysis-stat,
html[data-theme="dark"] .analysis-panel,
html[data-theme="dark"] .tool-form,
html[data-theme="dark"] .compare-form,
html[data-theme="dark"] .transfer-form,
html[data-theme="dark"] .transfer-side,
html[data-theme="dark"] .transfer-table-scroll,
html[data-theme="dark"] .tool-guide,
html[data-theme="dark"] .tool-guide-grid article,
html[data-theme="dark"] .rating-hero,
html[data-theme="dark"] .rating-row,
html[data-theme="dark"] .minutes-tracker,
html[data-theme="dark"] .rotation-explainer,
html[data-theme="dark"] .rotation-summary,
html[data-theme="dark"] .rotation-gw,
html[data-theme="dark"] .captain-matrix,
html[data-theme="dark"] .captain-head,
html[data-theme="dark"] .captain-card,
html[data-theme="dark"] .planner-start-card,
html[data-theme="dark"] .planner-summary>div,
html[data-theme="dark"] .planner-main,
html[data-theme="dark"] .planner-picker,
html[data-theme="dark"] .planner-transfer,
html[data-theme="dark"] .planner-player-list,
html[data-theme="dark"] .planner-action-sheet,
html[data-theme="dark"] .fx-match-toolbar,
html[data-theme="dark"] .fx-match-list,
html[data-theme="dark"] .sp-card,
html[data-theme="dark"] .scout-row,
html[data-theme="dark"] .ps-row,
html[data-theme="dark"] .pr-row,
html[data-theme="dark"] .inj-row,
html[data-theme="dark"] .live-row,
html[data-theme="dark"] .insight-card,
html[data-theme="dark"] .insights-loading,
html[data-theme="dark"] .insights-empty,
html[data-theme="dark"] .home-editorial-card,
html[data-theme="dark"] .home-editorial-feature,
html[data-theme="dark"] .home-gw-mark{
  background:var(--panel)!important;
  border-color:var(--line)!important;
  color:var(--ink)!important;
  box-shadow:none!important;
}

/* Nested light-only surfaces */
html[data-theme="dark"] .analysis-id,
html[data-theme="dark"] .sp-taker,
html[data-theme="dark"] .rotation-legend span,
html[data-theme="dark"] .captain-matrix-picks span,
html[data-theme="dark"] .mini-lbl,
html[data-theme="dark"] .planner-role-badge,
html[data-theme="dark"] .planner-picker-idle,
html[data-theme="dark"] .planner-no-results{
  background:var(--panel2)!important;
  border-color:var(--line2)!important;
  color:var(--sub)!important;
}
html[data-theme="dark"] .sp-taker.first{color:var(--ink)!important}

/* Tables and list rows */
html[data-theme="dark"] .transfer-compare-table,
html[data-theme="dark"] .matrix-table,
html[data-theme="dark"] .fxg,
html[data-theme="dark"] table.dt{color:var(--ink)!important}
html[data-theme="dark"] .transfer-compare-table thead th,
html[data-theme="dark"] .matrix-table thead th,
html[data-theme="dark"] .fxg th,
html[data-theme="dark"] table.dt th,
html[data-theme="dark"] .fx-day-label{
  background:#141b21!important;
  color:#aeb9c2!important;
  border-color:var(--line)!important;
}
html[data-theme="dark"] .transfer-compare-table th,
html[data-theme="dark"] .transfer-compare-table td,
html[data-theme="dark"] .matrix-table th,
html[data-theme="dark"] .matrix-table td,
html[data-theme="dark"] .fx-match-row,
html[data-theme="dark"] .fx-day-group,
html[data-theme="dark"] .fxg td,
html[data-theme="dark"] table.dt td{
  border-color:var(--line)!important;
  color:var(--ink)!important;
}
html[data-theme="dark"] .fx-match-row{background:var(--panel)!important}
html[data-theme="dark"] .fx-match-row.live{background:#13231d!important}
html[data-theme="dark"] table.dt tr:hover td,
html[data-theme="dark"] .transfer-compare-table tbody tr:hover td,
html[data-theme="dark"] .matrix-table tbody tr:hover td{background:var(--panel2)!important}

/* Text contrast */
html[data-theme="dark"] .thead p,
html[data-theme="dark"] .analysis-manager-head p,
html[data-theme="dark"] .analysis-stat small,
html[data-theme="dark"] .tool-guide p,
html[data-theme="dark"] .tool-guide small,
html[data-theme="dark"] .rotation-controls p,
html[data-theme="dark"] .rotation-summary p,
html[data-theme="dark"] .captain-matrix-head p,
html[data-theme="dark"] .matrix-player small,
html[data-theme="dark"] .minutes-tracker-head small,
html[data-theme="dark"] .planner-start-card p,
html[data-theme="dark"] .planner-summary small,
html[data-theme="dark"] .fx-match-team small,
html[data-theme="dark"] .fx-status,
html[data-theme="dark"] .insight-card p,
html[data-theme="dark"] .insights-empty p,
html[data-theme="dark"] .home-editorial-card p,
html[data-theme="dark"] .home-editorial-feature p{color:var(--sub)!important}
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] strong,
html[data-theme="dark"] b,
html[data-theme="dark"] .pl-name,
html[data-theme="dark"] .scout-nm,
html[data-theme="dark"] .ps-team,
html[data-theme="dark"] .sp-team,
html[data-theme="dark"] .fx-match-team b,
html[data-theme="dark"] .analysis-manager-head h3,
html[data-theme="dark"] .analysis-stat>b,
html[data-theme="dark"] .matrix-player b{color:var(--ink)}

/* Inputs, search controls and selects */
html[data-theme="dark"] .search .field,
html[data-theme="dark"] .ta-search-wrap,
html[data-theme="dark"] .tool-field,
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea{
  background:#11181e!important;
  color:var(--ink)!important;
  border-color:var(--line2)!important;
  box-shadow:none!important;
}
html[data-theme="dark"] option{background:#11181e;color:var(--ink)}
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder{color:#74818c!important;opacity:1}

/* Secondary buttons */
html[data-theme="dark"] .bld-btn.ghost,
html[data-theme="dark"] .secondary-action,
html[data-theme="dark"] .share-btn,
html[data-theme="dark"] .captain-refresh,
html[data-theme="dark"] .planner-toolbar button:not(.primary-action),
html[data-theme="dark"] .ta-clear,
html[data-theme="dark"] .swap-action{
  background:var(--panel2)!important;
  color:var(--ink)!important;
  border-color:var(--line2)!important;
}
html[data-theme="dark"] .bld-btn.ghost:hover,
html[data-theme="dark"] .secondary-action:hover,
html[data-theme="dark"] .share-btn:hover,
html[data-theme="dark"] .captain-refresh:hover{background:#2a343d!important}

/* Builder / planner chrome: keep the actual football pitch green */
html[data-theme="dark"] .bld-top,
html[data-theme="dark"] .bld-note,
html[data-theme="dark"] .bld-info-card,
html[data-theme="dark"] .bld-playerbox{background:var(--panel)!important;border-color:var(--line)!important}
html[data-theme="dark"] .bld-gauge{background:var(--panel)!important;border-color:var(--line2)!important}
html[data-theme="dark"] .bld-info-card.bld-info-caveat{background:#261f14!important;border-color:#5a4727!important}
html[data-theme="dark"] .bld-item.picked{background:#173128!important}
html[data-theme="dark"] .bld-warn-in{background:#2a1b20!important;color:#ff9aa6!important;border-color:#63343c!important}

/* FDR chips need dark text on pale difficulty colours */
html[data-theme="dark"] .fdr-chip.fdr1,
html[data-theme="dark"] .fdr-chip.fdr2,
html[data-theme="dark"] .fdr-chip.fdr3,
html[data-theme="dark"] .ps-fx span{color:#101820!important}
html[data-theme="dark"] .fdr-chip.fdr4,
html[data-theme="dark"] .fdr-chip.fdr5{color:#fff!important}

/* Insight area */
html[data-theme="dark"] .home-editorial-feature{background:#15231d!important;border-color:#28513f!important}
html[data-theme="dark"] .home-editorial-card a,
html[data-theme="dark"] .home-editorial-feature a,
html[data-theme="dark"] .insight-card h3 a{color:var(--ink)!important}
html[data-theme="dark"] .home-editorial-card a:hover,
html[data-theme="dark"] .home-editorial-feature a:hover,
html[data-theme="dark"] .insight-card h3 a:hover{color:#79d7ad!important}
html[data-theme="dark"] .home-gw-mark{background:#101a16!important;border-color:#335746!important}
html[data-theme="dark"] .home-gw-mark span{color:#91a79d!important}
html[data-theme="dark"] .insights-takeaway{background:#15231d!important;border-color:#2f8f68!important}
html[data-theme="dark"] .insights-takeaway p{color:#c5d2cb!important}

/* Captain matrix */
html[data-theme="dark"] .captain-matrix-picks span{background:#16251f!important;border-color:#305745!important}
html[data-theme="dark"] .matrix-stars{color:#62d5a3!important}

/* Fixture match centre */
html[data-theme="dark"] .fx-match-toolbar,
html[data-theme="dark"] .fx-match-list{background:var(--panel)!important}
html[data-theme="dark"] .fx-gw-heading select{background:transparent!important;color:var(--ink)!important}
html[data-theme="dark"] .fx-score span{color:#8f9ba6!important}

/* Rating / projection blocks */
html[data-theme="dark"] .rating-hero,
html[data-theme="dark"] .rotation-summary{background:#15231d!important;border-color:#2d5945!important}
html[data-theme="dark"] .rating-track,
html[data-theme="dark"] .minutes-bar{background:#29333b!important}

/* Keep generated share-card canvas/preview faithful to its export design. */
html[data-theme="dark"] .card-preview,
html[data-theme="dark"] .card-canvas-wrap{background:#182027!important;border-color:var(--line)!important}

/* V24 - final dark-mode completeness pass */
html[data-theme="dark"] .home-career-grid>div,
html[data-theme="dark"] .planner-toolbar,
html[data-theme="dark"] .planner-notice,
html[data-theme="dark"] .planner-plan-select select,
html[data-theme="dark"] .planner-chip-wrap select,
html[data-theme="dark"] .planner-filters select,
html[data-theme="dark"] .ta-picker,
html[data-theme="dark"] .ta-searchbox,
html[data-theme="dark"] .ta-selected,
html[data-theme="dark"] .ta-results,
html[data-theme="dark"] .ta-result,
html[data-theme="dark"] .compare-heads>div:first-child,
html[data-theme="dark"] .compare-heads>div:last-child,
html[data-theme="dark"] .compare-metrics,
html[data-theme="dark"] .compare-squad-summary>div,
html[data-theme="dark"] .compare-player-chip,
html[data-theme="dark"] .insights-live-lead,
html[data-theme="dark"] .insights-lead-copy,
html[data-theme="dark"] .insights-lead-visual,
html[data-theme="dark"] .insights-lead-mark,
html[data-theme="dark"] .insights-neutral-visual,
html[data-theme="dark"] .insights-archive-link,
html[data-theme="dark"] .home-gw-mark,
html[data-theme="dark"] .tool-empty,
html[data-theme="dark"] .tool-loading,
html[data-theme="dark"] .modal-card{
  background:var(--panel)!important;
  border-color:var(--line)!important;
  color:var(--ink)!important;
  box-shadow:none!important;
}
html[data-theme="dark"] .planner-notice{background:#13231d!important;color:#c3d4cc!important;border-color:#28513f!important}
html[data-theme="dark"] .planner-notice b{color:#73d4aa!important}
html[data-theme="dark"] .planner-sync,
html[data-theme="dark"] .planner-start-card small,
html[data-theme="dark"] .home-career-grid span,
html[data-theme="dark"] .home-career-grid small{color:var(--dim)!important}
html[data-theme="dark"] .home-career-grid b{color:var(--ink)!important}

/* Player comparison pickers / dropdowns */
html[data-theme="dark"] .ta-picker-head label,
html[data-theme="dark"] .ta-selected small,
html[data-theme="dark"] .ta-result small{color:var(--dim)!important}
html[data-theme="dark"] .ta-selected b,
html[data-theme="dark"] .ta-selected-own,
html[data-theme="dark"] .ta-result b{color:var(--ink)!important}
html[data-theme="dark"] .ta-results{box-shadow:0 18px 38px rgba(0,0,0,.42)!important}
html[data-theme="dark"] .ta-result:hover,
html[data-theme="dark"] .ta-result.active{background:var(--panel2)!important}

/* Manager compare must never fall back to light cards/tables */
html[data-theme="dark"] .compare-manager h3,
html[data-theme="dark"] .compare-metric span{color:var(--ink)!important}
html[data-theme="dark"] .compare-manager p,
html[data-theme="dark"] .compare-manager span,
html[data-theme="dark"] .compare-metric b,
html[data-theme="dark"] .compare-none{color:var(--dim)!important}
html[data-theme="dark"] .compare-metric{border-color:var(--line)!important;background:var(--panel)!important}
html[data-theme="dark"] .compare-metric:nth-child(even){background:#151c22!important}
html[data-theme="dark"] .compare-player-chip{color:var(--sub)!important}

/* Insights lead story */
html[data-theme="dark"] .insights-live-lead{box-shadow:inset 4px 0 0 var(--accent)!important}
html[data-theme="dark"] .insights-lead-copy{background:var(--panel)!important}
html[data-theme="dark"] .insights-lead-intro,
html[data-theme="dark"] .insights-story-copy p{color:var(--sub)!important}
html[data-theme="dark"] .insights-story-copy{border-color:var(--line)!important}
html[data-theme="dark"] .insights-lead-visual,
html[data-theme="dark"] .insights-lead-mark,
html[data-theme="dark"] .insights-neutral-visual{background:#13231d!important;border-color:#28513f!important}
html[data-theme="dark"] .insights-gw-mark span,
html[data-theme="dark"] .insights-gw-mark small{color:#9eb5aa!important}
html[data-theme="dark"] .insights-gw-mark b{color:#67d4a5!important}
html[data-theme="dark"] .insights-archive-link:hover{background:var(--panel2)!important;border-color:#4b675a!important}

/* Keep football pitches green, but make player labels themselves dark */
html[data-theme="dark"] .pl .nm,
html[data-theme="dark"] .tmpl-nm,
html[data-theme="dark"] .bld-pl-nm{
  background:#172027!important;
  color:#f4f7f8!important;
  border-color:#34414b!important;
}
html[data-theme="dark"] .pl .meta,
html[data-theme="dark"] .tmpl-mt,
html[data-theme="dark"] .bld-pl-mt{
  background:#20372e!important;
  color:#9ce0bf!important;
  border-color:#34414b!important;
}
html[data-theme="dark"] .bld-slot.empty{background:rgba(15,20,25,.32)!important;border-color:rgba(240,246,248,.45)!important;color:rgba(240,246,248,.76)!important}
html[data-theme="dark"] .bld-slot.empty:hover{background:rgba(7,155,98,.18)!important;border-color:#67d4a5!important;color:#9ce0bf!important}

/* Buttons/status chips that were still light */
html[data-theme="dark"] .mhead .gwtag,
html[data-theme="dark"] .cd-box,
html[data-theme="dark"] .planner-picker-idle>span{
  background:var(--panel2)!important;
  color:var(--sub)!important;
  border-color:var(--line2)!important;
}
html[data-theme="dark"] .planner-picker-idle>span{color:#76d7ad!important}

/* Light informational boxes should become intentionally tinted dark boxes */
html[data-theme="dark"] .tool-empty.bad{background:#2a1b20!important;border-color:#63343c!important;color:#ff9aa6!important}
html[data-theme="dark"] .col-h.up,
html[data-theme="dark"] .live-b.b3,
html[data-theme="dark"] .live-b.b2{background:#173128!important;color:#8cddb9!important}
html[data-theme="dark"] .col-h.down,
html[data-theme="dark"] .inj-pill.inj-out{background:#2a1b20!important;color:#ff9aa6!important}
html[data-theme="dark"] .inj-pill.inj-doubt{background:#2a2418!important;color:#e8bf79!important}

/* Some components use generic white backgrounds inside dark cards */
html[data-theme="dark"] .home-insight,
html[data-theme="dark"] .home-tool,
html[data-theme="dark"] .home-status-card,
html[data-theme="dark"] .home-fixtures,
html[data-theme="dark"] .captain-loading,
html[data-theme="dark"] .captain-empty,
html[data-theme="dark"] .transfer-side,
html[data-theme="dark"] .transfer-table-scroll,
html[data-theme="dark"] .rating-row,
html[data-theme="dark"] .rotation-gw,
html[data-theme="dark"] .minutes-tracker{
  background:var(--panel)!important;
  border-color:var(--line)!important;
  color:var(--ink)!important;
}

/* Deliberately preserve only artwork/canvas exports and the green pitch itself. */

/* V24 - planner/player-list detail surfaces */
html[data-theme="dark"] .planner-player,
html[data-theme="dark"] .planner-player.starter,
html[data-theme="dark"] .planner-pick-row,
html[data-theme="dark"] .planner-arm,
html[data-theme="dark"] .planner-transfer button,
html[data-theme="dark"] .planner-squad-label span{
  background:var(--panel)!important;
  color:var(--ink)!important;
  border-color:var(--line)!important;
}
html[data-theme="dark"] .planner-pick-row:hover:not(:disabled),
html[data-theme="dark"] .planner-player:hover{background:var(--panel2)!important}
html[data-theme="dark"] .planner-player.selected-out,
html[data-theme="dark"] .planner-out-card,
html[data-theme="dark"] .planner-transfer.invalid{background:#2a1b20!important;border-color:#63343c!important}
html[data-theme="dark"] .planner-transfer{background:#15231d!important;border-color:#2f5846!important}
html[data-theme="dark"] .planner-squad-label,
html[data-theme="dark"] .planner-player-list,
html[data-theme="dark"] .planner-pick-row{border-color:var(--line)!important}
html[data-theme="dark"] .planner-arm.active{background:#365247!important;border-color:#4a7663!important;color:#fff!important}
html[data-theme="dark"] .planner-arm.vice.active{background:#48535d!important;border-color:#65717c!important;color:#fff!important}
html[data-theme="dark"] .pl-fixture.blank{background:#2a333b!important;color:#9da8b1!important}

/* Builder list and selection detail */
html[data-theme="dark"] .bld-item{border-color:var(--line)!important;color:var(--ink)!important}
html[data-theme="dark"] .bld-item:hover{background:var(--panel2)!important}
html[data-theme="dark"] .bld-item.picked{background:#173128!important}

/* Generic light separators/backgrounds inside comparison tools */
html[data-theme="dark"] .analysis-player-row{border-color:var(--line)!important}
html[data-theme="dark"] .analysis-summary-grid>div{background:var(--panel)!important;border-color:var(--line)!important}

/* Ensure light text never inherits into dark panels */
html[data-theme="dark"] .compare-heads,
html[data-theme="dark"] .compare-metrics,
html[data-theme="dark"] .ta-picker,
html[data-theme="dark"] .planner-toolbar,
html[data-theme="dark"] .planner-main,
html[data-theme="dark"] .planner-picker,
html[data-theme="dark"] .home-career-grid>div,
html[data-theme="dark"] .insights-live-lead{color:var(--ink)!important}

/* V25 - final dark-mode cleanup for Insights actions and Card Creator */
.insights-icon-btn{
  width:38px;height:38px;display:inline-grid;place-items:center;flex:0 0 38px;
  border:1px solid var(--line2);border-radius:10px;background:var(--panel);color:var(--mint);
  text-decoration:none;cursor:pointer;transition:background .15s,border-color .15s,color .15s,transform .15s;
}
.insights-icon-btn svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.insights-icon-btn:hover{background:var(--panel2);border-color:#78bca2;color:var(--ink);transform:translateY(-1px)}
.insights-icon-btn:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

html[data-theme="dark"] .card-type-switch button,
html[data-theme="dark"] .card-control-panel,
html[data-theme="dark"] .card-preview-panel{
  background:var(--panel)!important;border-color:var(--line)!important;color:var(--sub)!important;
}
html[data-theme="dark"] .card-type-switch button b,
html[data-theme="dark"] .card-mode-head h3,
html[data-theme="dark"] .card-preview-empty b{color:var(--ink)!important}
html[data-theme="dark"] .card-type-switch button span,
html[data-theme="dark"] .card-mode-head p,
html[data-theme="dark"] .card-preview-empty,
html[data-theme="dark"] .card-preview-empty span,
html[data-theme="dark"] .card-privacy-note{color:var(--sub)!important}
html[data-theme="dark"] .card-type-switch button:hover{background:var(--panel2)!important;border-color:#46535e!important}
html[data-theme="dark"] .card-type-switch button.active{
  background:#15271f!important;border-color:#356c55!important;box-shadow:inset 3px 0 0 var(--accent)!important;
}
html[data-theme="dark"] .card-type-switch button.active b{color:#7bdeb4!important}
html[data-theme="dark"] .card-field input,
html[data-theme="dark"] .card-field select{
  background:#11181e!important;border-color:var(--line2)!important;color:var(--ink)!important;
}
html[data-theme="dark"] .card-field input::placeholder{color:#687581!important}
html[data-theme="dark"] .card-field input:focus,
html[data-theme="dark"] .card-field select:focus{border-color:#4ea980!important;box-shadow:0 0 0 3px rgba(41,183,123,.12)!important}
html[data-theme="dark"] .card-privacy-note{border-color:var(--line)!important}
html[data-theme="dark"] .card-preview-stage{
  background:#11181e!important;border:1px solid var(--line)!important;
}
html[data-theme="dark"] .card-preview-stage:has(canvas:not([hidden])){background:#0e1419!important}
html[data-theme="dark"] .card-export-actions .secondary-action{background:var(--panel2)!important;color:var(--ink)!important;border-color:var(--line2)!important}
html[data-theme="dark"] .card-export-actions button:disabled{background:#202830!important;color:#6f7b85!important;border-color:#303b45!important;opacity:1!important}
html[data-theme="dark"] .insights-icon-btn{background:var(--panel)!important;border-color:var(--line2)!important;color:#69d6a7!important}
html[data-theme="dark"] .insights-icon-btn:hover{background:var(--panel2)!important;color:#f4f8f6!important;border-color:#4e695c!important}

/* V26 - targeted dark-mode fixes after visual QA */
html[data-theme="dark"] .planner-title-row{
  background:var(--panel)!important;
  border-color:var(--line)!important;
  color:var(--ink)!important;
}
html[data-theme="dark"] .planner-title-row h3{color:var(--ink)!important}
html[data-theme="dark"] .planner-title-row p{color:var(--sub)!important}
html[data-theme="dark"] .planner-title-row .analysis-eyebrow{color:#64d3a3!important}

/* V21 used light-theme !important headline colors; override them in dark mode. */
html[data-theme="dark"] .home-editorial-feature .home-insight-copy>b,
html[data-theme="dark"] .home-editorial-secondary>b,
html[data-theme="dark"] .home-editorial-feature .home-insight-copy>small,
html[data-theme="dark"] .home-editorial-secondary>small{
  color:var(--ink)!important;
}
html[data-theme="dark"] .home-editorial-feature .home-insight-copy>small,
html[data-theme="dark"] .home-editorial-secondary>small{color:var(--sub)!important}
html[data-theme="dark"] .home-editorial-card:hover .home-insight-copy>b,
html[data-theme="dark"] .home-editorial-card:hover>b{color:#7bdeb4!important}
html[data-theme="dark"] .home-editorial-feature{background:#13231d!important}
html[data-theme="dark"] .home-editorial-secondary{background:var(--panel)!important}
html[data-theme="dark"] .home-insight-club{border-color:var(--line)!important}

/* The generated canvas follows theme too; preview chrome remains dark. */
html[data-theme="dark"] .card-preview-stage{background:#0d1318!important}

/* V27 - FPL Peek Team */
.peek-team-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px}
.peek-current-btn{width:auto;white-space:nowrap}
.peek-team-status{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:14px 0;padding:13px 15px;border:1px solid var(--line);border-radius:12px;background:var(--panel)}
.peek-team-status>b{font-size:14px;color:var(--ink)}.peek-team-status>span:last-child{font-size:12px;color:var(--sub)}
.peek-status-dot{width:9px;height:9px;border-radius:50%;background:#94a3b8}.peek-status-dot.upcoming{background:var(--accent)}.peek-status-dot.live{background:#f59e0b;box-shadow:0 0 0 4px rgba(245,158,11,.13)}.peek-status-dot.final{background:#22c55e}
.peek-team-body{border:1px solid var(--line);border-radius:16px;background:var(--panel);padding:16px;transition:opacity .18s}.peek-team-body.loading{opacity:.55;pointer-events:none}
.peek-team-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.peek-team-meta{display:flex;gap:8px;flex-wrap:wrap}.peek-team-meta>span,.peek-team-rule{font-size:11px;color:var(--sub)}.peek-team-meta>span{padding:6px 9px;border:1px solid var(--line);border-radius:8px;background:var(--panel2)}
.peek-pitch{min-height:560px;border-radius:16px;border:1px solid rgba(255,255,255,.55);background:#3eae72;position:relative;overflow:hidden;padding:28px 18px;display:flex;flex-direction:column;justify-content:space-between;gap:12px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}
.peek-pitch:before{content:"";position:absolute;inset:18px;border:1px solid rgba(255,255,255,.7);border-radius:4px;pointer-events:none}.peek-pitch:after{content:"";position:absolute;left:18px;right:18px;top:50%;height:1px;background:rgba(255,255,255,.7);box-shadow:0 0 0 48px transparent;pointer-events:none}
.peek-pitch-row{display:flex;justify-content:center;gap:18px;position:relative;z-index:1;min-height:105px;align-items:center}
.peek-player{width:112px;text-align:center;position:relative;color:#10241a}.peek-shirt{height:52px;display:grid;place-items:end center}.peek-shirt img{height:52px;width:auto;max-width:62px;object-fit:contain}.peek-jersey{display:block;width:34px;height:43px;border-radius:7px 7px 5px 5px}.peek-player>b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;background:#fff;border-radius:7px 7px 0 0;padding:6px 6px 2px;font-size:12px}.peek-player>span:not(.peek-arm){display:block;background:#fff;padding:0 6px 2px;font-size:9px;color:#5f6b64}.peek-player>small{display:block;background:#eef8f2;border-radius:0 0 7px 7px;padding:2px 6px 5px;font-size:10px;font-weight:800;color:#087b4b}.peek-arm{position:absolute;top:46px;right:4px;z-index:3;width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:#111827;color:white;font-size:10px;font-weight:900;border:2px solid white}.peek-arm.vice{background:#64748b}
.peek-bench-wrap{margin-top:14px}.peek-bench-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.peek-bench-title span{font-weight:800}.peek-bench-title small{color:var(--sub)}.peek-bench{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.peek-bench-slot{border:1px solid var(--line);background:var(--panel2);border-radius:12px;padding:9px;position:relative;display:grid;place-items:center}.peek-bench-slot>em{position:absolute;top:7px;left:8px;font-size:9px;font-style:normal;color:var(--sub);font-weight:800}.peek-bench-slot .peek-player{width:100px}.peek-bench-slot .peek-shirt{height:44px}.peek-bench-slot .peek-shirt img{height:44px}
.peek-method{margin-top:18px}.peek-archive-head{margin:24px 0 10px}.peek-archive-head span{font-size:10px;text-transform:uppercase;letter-spacing:.08em;font-weight:800;color:var(--accent)}.peek-archive-head h3{margin:4px 0}.peek-archive-head p{margin:0;color:var(--sub);font-size:12px}.peek-archive{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.peek-archive button{border:1px solid var(--line);background:var(--panel);border-radius:12px;padding:12px;text-align:left;cursor:pointer;color:var(--ink);display:grid;gap:4px}.peek-archive button:hover,.peek-archive button.active{border-color:#4e9b79;background:#f2faf6}.peek-archive button span{font-size:10px;text-transform:uppercase;color:var(--sub);font-weight:800}.peek-archive button b{font-size:20px}.peek-archive button em{font-style:normal;font-size:10px;color:var(--accent);font-weight:700}.peek-empty{grid-column:1/-1;border:1px dashed var(--line);border-radius:12px;padding:18px;color:var(--sub);font-size:12px}.peek-disclaimer{font-size:10px;color:var(--muted);margin:14px 2px 0}
html[data-theme="dark"] .peek-team-body,html[data-theme="dark"] .peek-team-status,html[data-theme="dark"] .peek-archive button{background:var(--panel)!important;border-color:var(--line)!important;color:var(--ink)!important}html[data-theme="dark"] .peek-team-meta>span,html[data-theme="dark"] .peek-bench-slot{background:var(--panel2)!important;border-color:var(--line)!important}html[data-theme="dark"] .peek-archive button:hover,html[data-theme="dark"] .peek-archive button.active{background:#142a21!important;border-color:#3f8568!important}.peek-pitch .peek-player>b,.peek-pitch .peek-player>span:not(.peek-arm){color:#17231d!important}
@media(max-width:900px){.peek-team-head{align-items:flex-start}.peek-current-btn{display:none}.peek-pitch{min-height:500px;padding:24px 6px}.peek-pitch-row{gap:5px}.peek-player{width:66px}.peek-shirt{height:42px}.peek-shirt img{height:42px;max-width:44px}.peek-player>b{font-size:9px;padding-left:2px;padding-right:2px}.peek-player>span:not(.peek-arm),.peek-player>small{font-size:8px}.peek-arm{top:37px;right:-1px;width:18px;height:18px}.peek-bench{grid-template-columns:repeat(2,1fr)}.peek-archive{grid-template-columns:repeat(2,1fr)}.peek-team-summary{align-items:flex-start;flex-direction:column}}


/* V28 — FPL Peek Team polish */
.tab-hot{display:inline-flex;align-items:center;justify-content:center;margin-left:5px;font-size:10px;line-height:1;vertical-align:middle;filter:saturate(.9)}
.hot-tab{display:flex!important;align-items:center;gap:2px}.hot-tab .tab-hot{margin-left:auto}
.mobile-more-grid .hot-mobile{display:flex;align-items:center;justify-content:space-between;gap:8px}
.mobile-more-grid .hot-mobile .tab-hot{margin-left:auto}
.peek-kit-img{height:52px;width:auto;max-width:62px;object-fit:contain;display:block}
.peek-bench-slot .peek-kit-img{height:44px;max-width:54px}
html[data-theme="dark"] .peek-player>b{background:#172129!important;color:#f4f7f9!important;border:1px solid #30404b;border-bottom:0}
html[data-theme="dark"] .peek-player>span:not(.peek-arm){background:#172129!important;color:#aebdc7!important;border-left:1px solid #30404b;border-right:1px solid #30404b}
html[data-theme="dark"] .peek-player>small{background:#123126!important;color:#7fe0b2!important;border:1px solid #30404b;border-top:0}
html[data-theme="dark"] .peek-arm{border-color:#172129!important}
html[data-theme="dark"] .peek-bench-slot .peek-player>b,html[data-theme="dark"] .peek-bench-slot .peek-player>span:not(.peek-arm),html[data-theme="dark"] .peek-bench-slot .peek-player>small{box-shadow:none}
html[data-theme="dark"] .peek-team-rule,html[data-theme="dark"] .peek-bench-title small{color:#aebdc7!important}

/* V30 Insights featured-player media */
.insight-featured-player{position:relative;width:46px;height:48px;display:flex;align-items:flex-end;justify-content:center;flex:0 0 46px;border-radius:10px;background:var(--soft);overflow:hidden;border:1px solid var(--line)}
.insight-face{width:42px;height:48px;object-fit:contain;object-position:bottom center}
.insight-face-kit{position:absolute;right:1px;bottom:1px;width:17px;height:21px;object-fit:contain;background:#fff;border:1px solid #dce7e1;border-radius:5px;padding:1px}
.insight-row-featured .insight-row-main b{font-size:13.5px}
.insight-fixtures .insight-kit{width:36px;height:45px}
html[data-theme="dark"] .insight-featured-player{background:#111920;border-color:#34414a}
html[data-theme="dark"] .insight-face-kit{background:#172129;border-color:#3a4a54}


/* V31 compact player portraits across Insights */
.insight-player-avatar{position:relative;width:42px;height:46px;display:flex;align-items:flex-end;justify-content:center;flex:0 0 42px;border-radius:10px;background:var(--soft);overflow:hidden;border:1px solid var(--line)}
.insight-player-avatar .insight-face{position:relative;z-index:1;width:40px;height:46px;object-fit:contain;object-position:bottom center}
.insight-player-avatar .insight-face-kit{position:absolute;z-index:2;right:1px;bottom:1px;width:15px;height:19px;object-fit:contain;background:#fff;border:1px solid #dce7e1;border-radius:5px;padding:1px}
.insight-avatar-fallback{position:relative;width:34px;height:34px;flex:0 0 34px;border-radius:50%;background:var(--line);display:inline-block;overflow:hidden}
.insight-player-avatar>.insight-avatar-fallback{position:absolute;left:4px;bottom:4px;width:34px;height:34px}
.insight-avatar-fallback:before{content:"";position:absolute;left:50%;top:6px;width:10px;height:10px;border-radius:50%;background:var(--muted);transform:translateX(-50%)}
.insight-avatar-fallback:after{content:"";position:absolute;left:50%;bottom:4px;width:22px;height:12px;border-radius:12px 12px 7px 7px;background:var(--muted);transform:translateX(-50%)}
html[data-theme="dark"] .insight-player-avatar{background:#111920;border-color:#34414a}
html[data-theme="dark"] .insight-player-avatar .insight-face-kit{background:#172129;border-color:#3a4a54}
html[data-theme="dark"] .insight-avatar-fallback{background:#27343d}
html[data-theme="dark"] .insight-avatar-fallback:before,html[data-theme="dark"] .insight-avatar-fallback:after{background:#70808b}

/* V32 insight portrait fallback: use club kit when a headshot is unavailable. */
.insight-player-avatar.photo-missing{align-items:center;justify-content:center}
.insight-player-avatar.photo-missing .insight-face-kit{position:static!important;width:30px!important;height:38px!important;object-fit:contain!important;background:transparent!important;border:0!important;border-radius:0!important;padding:0!important}
html[data-theme="dark"] .insight-player-avatar.photo-missing .insight-face-kit{background:transparent!important;border:0!important}

/* V33 — DEFCON Tracker */
.defcon-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.defcon-head>div{max-width:820px}.defcon-guide{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:4px 0 14px}.defcon-guide article{border:1px solid var(--line);background:var(--panel);border-radius:13px;padding:14px}.defcon-guide article>span{display:block;font-size:10px;font-weight:900;letter-spacing:.08em;color:var(--accent);text-transform:uppercase}.defcon-guide article>b{display:block;margin-top:5px;font-size:18px;color:var(--ink)}.defcon-guide article>p{margin:4px 0 0;font-size:11px;line-height:1.5;color:var(--sub)}
.defcon-controls{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.defcon-controls select{min-width:170px}.defcon-search{margin-left:auto;max-width:230px}.defcon-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:14px 0}.defcon-summary article{border:1px solid var(--line);background:var(--panel);border-radius:13px;padding:14px}.defcon-summary article span{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.07em;color:var(--sub);font-weight:800}.defcon-summary article b{display:block;font-size:21px;color:var(--ink);margin-top:4px}.defcon-summary article small{display:block;color:var(--sub);font-size:10px;margin-top:3px}
.defcon-table-head,.defcon-row{display:grid;grid-template-columns:42px minmax(230px,1.8fr) repeat(5,minmax(78px,.7fr)) minmax(74px,.7fr);align-items:center;gap:8px}.defcon-table-head{padding:8px 12px;color:var(--muted);font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.06em}.defcon-list{border:1px solid var(--line);border-radius:14px;overflow:hidden;background:var(--panel)}.defcon-row{width:100%;border:0;border-bottom:1px solid var(--line);background:var(--panel);color:var(--ink);padding:10px 12px;text-align:left;cursor:pointer}.defcon-row:last-child{border-bottom:0}.defcon-row:hover{background:var(--panel2)}.defcon-row:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}.defcon-rank{font-size:11px;color:var(--muted);font-weight:900}.defcon-player{display:flex;align-items:center;gap:9px;min-width:0}.defcon-player>span{min-width:0;display:block}.defcon-player b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px}.defcon-player small{display:block;color:var(--sub);font-size:9px;margin-top:2px}.defcon-face{width:36px;height:42px;object-fit:contain;object-position:bottom center;border-radius:8px;background:var(--soft);flex:0 0 36px}.defcon-face.face-fb{display:grid;place-items:center;color:white;font-size:10px;font-weight:900}.defcon-kit{width:16px;height:20px;object-fit:contain;margin-right:5px;vertical-align:middle}.defcon-metric,.defcon-threshold{display:block;text-align:left}.defcon-metric b,.defcon-threshold b{display:block;font-size:13px}.defcon-metric small,.defcon-threshold small{display:block;color:var(--sub);font-size:8px;margin-top:1px}.defcon-next{display:inline-flex;align-items:center;justify-content:center;min-width:45px;padding:5px 7px;border-radius:7px;font-size:9px;font-weight:900}.defcon-next.none{background:var(--panel2);color:var(--muted)}.defcon-empty{border:1px dashed var(--line);background:var(--panel);border-radius:14px;padding:24px;text-align:center}.defcon-empty b{color:var(--ink)}.defcon-empty p{max-width:620px;margin:6px auto 0;color:var(--sub);font-size:12px;line-height:1.6}.defcon-method{margin-top:18px}
html[data-theme="dark"] .defcon-guide article,html[data-theme="dark"] .defcon-summary article,html[data-theme="dark"] .defcon-list,html[data-theme="dark"] .defcon-row,html[data-theme="dark"] .defcon-empty{background:var(--panel)!important;border-color:var(--line)!important;color:var(--ink)!important}html[data-theme="dark"] .defcon-row:hover{background:var(--panel2)!important}html[data-theme="dark"] .defcon-face{background:#111920!important}html[data-theme="dark"] .defcon-next.none{background:var(--panel2)!important}
@media(max-width:900px){.defcon-guide,.defcon-summary{grid-template-columns:1fr}.defcon-search{margin-left:0;max-width:none;flex:1 1 220px}.defcon-table-head{display:none}.defcon-row{grid-template-columns:30px minmax(150px,1fr) 58px 52px;gap:7px;padding:10px}.defcon-row>.defcon-metric:nth-of-type(3),.defcon-row>.defcon-metric:nth-of-type(4),.defcon-row>.defcon-threshold,.defcon-row>span:last-child{display:none}.defcon-face{width:32px;height:38px;flex-basis:32px}.defcon-player b{font-size:11px}}

/* V34 — DEFCON leaderboard pagination */
.defcon-pager{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px;padding:10px 2px}.defcon-page-count,.defcon-page-number{font-size:10px;color:var(--sub);font-weight:700}.defcon-page-actions{display:flex;align-items:center;gap:9px}.defcon-page-btn{min-width:92px;padding:8px 10px;font-size:10px}.defcon-page-btn:disabled{opacity:.45;cursor:not-allowed}
html[data-theme="dark"] .defcon-page-btn{background:var(--panel)!important;border-color:var(--line)!important;color:var(--ink)!important}html[data-theme="dark"] .defcon-page-btn:hover:not(:disabled){background:var(--panel2)!important}
@media(max-width:640px){.defcon-pager{align-items:stretch;flex-direction:column}.defcon-page-actions{justify-content:space-between}.defcon-page-number{flex:1;text-align:center}.defcon-page-btn{min-width:84px}}

/* V35 - Planner next-five fixture run + sortable player metrics */
.planner-fixture-run{display:flex;align-items:center;gap:2px;min-width:0}
.planner-fixture-run .pl-fixture{min-width:25px;max-width:34px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.planner-fixture-run .pl-fixture.double{font-size:6.5px}
.planner-pitch-meta{overflow:visible}
.planner-pitch-meta .planner-fixture-run{width:100%;justify-content:center;gap:1px}
.planner-pitch-meta .planner-fixture-run .pl-fixture{min-width:13px;max-width:16px;padding:2px 1px;font-size:5.6px;letter-spacing:-.25px}
.planner-pitch-meta .planner-fixture-run .pl-fixture.double{font-size:4.8px}
.planner-pick-main{min-width:0;display:flex;flex-direction:column;gap:4px}
.planner-pick-row{grid-template-columns:32px minmax(0,1fr) minmax(92px,auto) 22px;padding-top:9px;padding-bottom:9px}
.planner-pick-row .picker-run{gap:2px}
.planner-pick-row .picker-run .pl-fixture{min-width:24px;max-width:31px;padding:2px 3px;font-size:6.7px}
.planner-pick-metrics{text-align:right;min-width:92px}
.planner-pick-metrics>b{display:block;font-size:9.5px}
.planner-pick-metrics small{display:block;color:var(--dim);font-size:7.2px;line-height:1.35;white-space:nowrap}
.planner-filters{grid-template-columns:1fr 1fr}
#plannerSort{grid-column:1/-1}
.planner-picker-guide{display:flex;gap:7px;align-items:flex-start;padding:7px 8px;margin:0 0 7px;border:1px solid #d9ebe3;background:#f6fbf8;border-radius:7px}
.planner-picker-guide span{flex:0 0 auto;color:#087a55;font-size:7.5px;font-weight:900;text-transform:uppercase;letter-spacing:.45px}
.planner-picker-guide p{margin:0;color:var(--dim);font-size:7.6px;line-height:1.4}
.planner-action-fixture .planner-fixture-run{gap:3px;flex-wrap:wrap}
.planner-action-fixture .planner-fixture-run .pl-fixture{min-width:28px;font-size:8px}
html[data-theme="dark"] .planner-picker-guide{background:#13231d;border-color:#294b3d}
html[data-theme="dark"] .planner-picker-guide p{color:var(--dim)}
@media(max-width:560px){
  .planner-pick-row{grid-template-columns:28px minmax(0,1fr) 78px 18px;gap:5px}
  .planner-pick-row .picker-run .pl-fixture{min-width:18px;max-width:22px;padding:2px 2px;font-size:5.8px}
  .planner-pick-metrics{min-width:78px}.planner-pick-metrics small{font-size:6.4px}
  .planner-pitch-meta .planner-fixture-run .pl-fixture{min-width:9px;max-width:11px;font-size:0;padding:4px 1px;border-radius:2px}
}

/* V36 Planner: clearer 5-GW fixture strip + fresh Gameweek rebuild */
.planner-pitch-meta .planner-fixture-run{gap:2px!important}
.planner-pitch-meta .planner-fixture-run .pl-fixture{min-width:20px!important;max-width:26px!important;padding:3px 3px!important;font-size:7px!important;letter-spacing:0!important;border-radius:4px!important;line-height:1.05!important}
.planner-pitch-meta .planner-fixture-run .pl-fixture.double{font-size:6px!important}
.planner-fpl-bench .planner-pitch-meta .planner-fixture-run .pl-fixture{min-width:19px!important;max-width:25px!important;font-size:6.7px!important}
.planner-fdr-guide{display:grid!important;grid-template-columns:auto 1fr!important;gap:7px 10px!important;align-items:center!important;padding:10px 11px!important}
.planner-fdr-guide>span{grid-row:1/3;align-self:start;white-space:nowrap}
.planner-fdr-guide p{margin:0!important;font-size:8.5px!important;line-height:1.45!important}
.planner-fdr-legend{display:flex;align-items:center;gap:5px;flex-wrap:wrap}
.planner-fdr-legend .pl-fixture{min-width:auto;padding:3px 6px;font-size:7px}
.planner-fdr-legend em{font-style:normal;font-size:7.5px;color:var(--dim);margin-right:4px}
.planner-fresh-btn{border-color:#9bd7c1!important;color:#087a55!important;background:#f1fbf7!important}
html[data-theme="dark"] .planner-fresh-btn{background:#102b22!important;border-color:#286b55!important;color:#70e1b5!important}
@media(max-width:700px){
  .planner-pitch-meta .planner-fixture-run .pl-fixture{min-width:15px!important;max-width:18px!important;padding:2px 2px!important;font-size:5.8px!important}
  .planner-pitch-meta .planner-fixture-run{gap:1px!important}
  .planner-fdr-guide{grid-template-columns:1fr!important}.planner-fdr-guide>span{grid-row:auto}.planner-fdr-legend{gap:4px}
}

/* V37 Planner: larger pitch cards + on-page planning guide */
@media(min-width:1100px){
  .planner-layout{grid-template-columns:minmax(0,1.7fr) minmax(300px,.62fr)}
  .planner-fpl-pitch{min-height:560px;padding:32px 22px 28px;gap:22px}
  .planner-pitch-row{gap:16px;min-height:98px}
  .planner-pitch-player{width:112px;flex-basis:112px}
  .planner-pitch-kit{height:53px}
  .planner-pitch-kit-img{height:52px;max-width:58px}
  .planner-pitch-name{font-size:10px;padding:4px 6px}
  .planner-pitch-meta{min-height:26px;padding:4px 3px}
  .planner-pitch-meta .planner-fixture-run{gap:3px!important}
  .planner-pitch-meta .planner-fixture-run .pl-fixture{min-width:21px!important;max-width:24px!important;padding:4px 2px!important;font-size:7px!important;border-radius:4px!important}
  .planner-pitch-meta .planner-fixture-run .pl-fixture.double{font-size:5.8px!important}
  .planner-bench-row{gap:14px}
  .planner-bench-row .planner-pitch-player{width:108px;flex-basis:108px}
  .planner-bench-row .planner-pitch-kit{height:49px}
  .planner-bench-row .planner-pitch-kit-img{height:48px;max-width:54px}
}
.planner-explainer{margin:10px 0 12px;border:1px solid var(--line);border-radius:10px;background:#fff;padding:13px 14px}
.planner-explainer-head h3{font-size:14px;margin:2px 0 3px}.planner-explainer-head p{font-size:9.5px;line-height:1.55;color:var(--sub);max-width:900px}
.planner-explainer-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:10px}
.planner-explainer-grid>div{border:1px solid var(--line);border-radius:8px;padding:9px 10px;background:#fafcfa}
.planner-explainer-grid b{display:block;font-size:9.5px;margin-bottom:4px}.planner-explainer-grid span{display:block;font-size:8.5px;line-height:1.5;color:var(--sub)}
.planner-explainer-grid .pl-fixture{font-style:normal;min-width:25px;padding:3px 5px;font-size:7px;vertical-align:middle;margin:0 1px}
html[data-theme="dark"] .planner-explainer{background:#171f25;border-color:#33404a}
html[data-theme="dark"] .planner-explainer-grid>div{background:#121a20;border-color:#33404a}
html[data-theme="dark"] .planner-explainer-head p,html[data-theme="dark"] .planner-explainer-grid span{color:#aab5bf}
@media(max-width:900px){
  .planner-explainer-grid{grid-template-columns:1fr}
  .planner-explainer{padding:11px}
}
@media(max-width:640px){
  .planner-fpl-pitch{min-height:455px;padding-left:8px;padding-right:8px}
  .planner-pitch-row{gap:5px}
  .planner-pitch-player{width:66px;flex-basis:66px}
  .planner-pitch-kit{height:39px}.planner-pitch-kit-img{height:38px;max-width:42px}
  .planner-pitch-name{font-size:7.4px;padding:2px 3px}
  .planner-pitch-meta .planner-fixture-run .pl-fixture{min-width:10px!important;max-width:12px!important;padding:3px 1px!important;font-size:0!important}
  .planner-pitch-meta .planner-fixture-run .pl-fixture::after{content:""}
}

/* V38 multi-transfer planner */
.planner-section-tools{display:flex;align-items:flex-end;gap:8px}.planner-multi-btn{white-space:nowrap}.planner-multi-btn.active{background:#e9f8f0;border-color:#72cda3;color:#057a4d}
.planner-batch-panel{margin:0 0 10px;border:1px solid #b9dfcd;background:#f4fbf7;border-radius:9px;padding:10px}
.planner-batch-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.planner-batch-head>div:first-child{display:flex;flex-direction:column;gap:2px}.planner-batch-head b{font-size:12px}.planner-batch-head small{font-size:8.5px;color:var(--sub)}
.planner-batch-budget{text-align:right}.planner-batch-budget span{display:block;font-size:7.5px;text-transform:uppercase;letter-spacing:.45px;color:var(--dim);font-weight:800}.planner-batch-budget b{font-size:13px;color:var(--accent)}
.planner-batch-group{display:flex;align-items:center;flex-wrap:wrap;gap:5px;margin-top:8px}.planner-batch-group>span{font-size:7.5px;font-weight:900;letter-spacing:.6px;color:#b34856;min-width:26px}.planner-batch-group.incoming>span{color:var(--accent)}
.planner-batch-group button{display:inline-flex;align-items:center;gap:5px;border:1px solid #e7c5ca;background:#fff7f8;border-radius:6px;padding:5px 7px;cursor:pointer;color:#7a2632}.planner-batch-group.incoming button{border-color:#bfe2d1;background:#f2fbf6;color:#076b48}.planner-batch-group button b{font-size:9px}.planner-batch-group button small{font-size:7px;color:inherit;opacity:.72}
.planner-batch-actions{display:flex;justify-content:flex-end;gap:7px;margin-top:10px}.planner-batch-actions button{min-height:31px}.planner-batch-picker-note{border:1px solid #bfe2d1;background:#f3fbf7;border-radius:8px;padding:8px 9px;margin-bottom:8px;display:flex;flex-direction:column;gap:2px}.planner-batch-picker-note b{font-size:10px}.planner-batch-picker-note span{font-size:8.5px;color:var(--sub)}
.planner-pitch-player.selected-out .planner-pitch-main{outline:2px solid #d35d6d;outline-offset:2px}.planner-pitch-player.selected-out .planner-pitch-name{background:#8f2f3d!important}.planner-pitch-player.selected-out .planner-pitch-kit{opacity:.62}
html[data-theme="dark"] .planner-multi-btn.active{background:#123326!important;border-color:#2d7454!important;color:#61dfa5!important}
html[data-theme="dark"] .planner-batch-panel{background:#101c17!important;border-color:#2c5d46!important}html[data-theme="dark"] .planner-batch-head small,html[data-theme="dark"] .planner-batch-picker-note span{color:#aab5bf!important}
html[data-theme="dark"] .planner-batch-group button{background:#2a171c!important;border-color:#63313d!important;color:#f3a7b2!important}html[data-theme="dark"] .planner-batch-group.incoming button{background:#11271d!important;border-color:#2d664a!important;color:#65dfa5!important}
html[data-theme="dark"] .planner-batch-picker-note{background:#11251c!important;border-color:#2c5d46!important}
@media(min-width:1100px){.planner-explainer-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:800px){.planner-section-tools{align-items:stretch;flex-direction:column}.planner-multi-btn{width:100%}.planner-batch-head{flex-direction:column}.planner-batch-budget{text-align:left}.planner-batch-actions{display:grid;grid-template-columns:1fr 1fr}.planner-batch-actions button{width:100%}}

/* V39 official-FPL-style transfer editing */
.planner-transfer-remove{position:absolute;z-index:8;top:-7px;right:-7px;width:24px;height:24px;border-radius:50%;border:2px solid #fff;background:#2b0a35;color:#fff;font-size:17px;line-height:18px;font-weight:900;display:grid;place-items:center;cursor:pointer;box-shadow:0 2px 6px rgba(0,0,0,.2)}
.planner-transfer-empty{width:104px;min-height:92px;border:2px dashed rgba(255,255,255,.78);border-radius:9px;background:rgba(0,79,48,.34);color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;cursor:pointer;padding:7px;position:relative;z-index:3}.planner-transfer-empty:hover{background:rgba(0,79,48,.52);border-color:#fff}.planner-transfer-empty-plus{font-size:27px;line-height:24px;font-weight:900}.planner-transfer-empty b{font-size:12px}.planner-transfer-empty small{font-size:9px;opacity:.82;max-width:92px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.transfer-edit-mode .planner-pitch-player{position:relative}.transfer-edit-mode .planner-pitch-player:hover .planner-pitch-main{transform:translateY(-1px)}
.planner-multi-btn.active{box-shadow:0 0 0 2px rgba(7,155,98,.12) inset}
html[data-theme="dark"] .planner-transfer-remove{border-color:#172129;background:#50105d;color:#fff}
@media(max-width:900px){.planner-transfer-empty{width:86px;min-height:80px}.planner-transfer-remove{width:22px;height:22px;top:-5px;right:-5px;font-size:15px}}

/* V40 Planner: larger readable player cards + compact transfer controls */
.planner-transfer-remove{
  width:19px!important;height:19px!important;top:-4px!important;right:-4px!important;
  border-width:1.5px!important;font-size:15px!important;line-height:15px!important;
  box-shadow:0 1px 4px rgba(0,0,0,.18)!important;
}
.transfer-edit-mode .planner-role-badge{
  top:51px!important;right:-7px!important;z-index:7!important;
}
@media(min-width:1100px){
  .planner-layout{grid-template-columns:minmax(0,1.85fr) minmax(320px,.58fr)!important}
  .planner-fpl-pitch{min-height:620px!important;padding:38px 28px 34px!important;gap:25px!important}
  .planner-pitch-row{gap:18px!important;min-height:108px!important}
  .planner-pitch-player{width:126px!important;flex-basis:126px!important}
  .planner-pitch-kit{height:62px!important}
  .planner-pitch-kit-img{height:61px!important;max-width:68px!important}
  .planner-pitch-name{font-size:11.5px!important;padding:5px 7px!important}
  .planner-pitch-meta{min-height:30px!important;padding:5px 4px!important}
  .planner-pitch-meta .planner-fixture-run{gap:3px!important;justify-content:center!important}
  .planner-pitch-meta .planner-fixture-run .pl-fixture{
    min-width:22px!important;max-width:24px!important;padding:5px 2px!important;
    font-size:7.8px!important;line-height:1.05!important;border-radius:4px!important;
  }
  .planner-pitch-meta .planner-fixture-run .pl-fixture.double{font-size:6.2px!important}
  .planner-bench-row{gap:18px!important;min-height:112px!important}
  .planner-bench-row .planner-pitch-player{width:120px!important;flex-basis:120px!important}
  .planner-bench-row .planner-pitch-kit{height:57px!important}
  .planner-bench-row .planner-pitch-kit-img{height:56px!important;max-width:63px!important}
  .planner-transfer-empty{width:118px!important;min-height:108px!important}
  .planner-transfer-empty-plus{font-size:31px!important}
  .planner-transfer-empty b{font-size:13px!important}
  .planner-transfer-empty small{font-size:9.5px!important}
}
@media(min-width:901px) and (max-width:1099px){
  .planner-pitch-player{width:94px!important;flex-basis:94px!important}
  .planner-pitch-kit{height:50px!important}.planner-pitch-kit-img{height:49px!important;max-width:55px!important}
  .planner-pitch-name{font-size:9.5px!important}
  .planner-pitch-meta .planner-fixture-run .pl-fixture{min-width:18px!important;max-width:20px!important;font-size:6.6px!important;padding:4px 1px!important}
  .transfer-edit-mode .planner-role-badge{top:43px!important;right:-5px!important}
}
@media(max-width:640px){
  .planner-transfer-remove{width:17px!important;height:17px!important;font-size:13px!important;top:-3px!important;right:-3px!important}
  .transfer-edit-mode .planner-role-badge{top:34px!important;right:-4px!important}
}

/* V41 Planner: pitch + player browser first, details below */
#tab-planner .planner-notice{margin-bottom:8px;padding:8px 11px}
#tab-planner .planner-toolbar{padding:8px 10px;margin-bottom:8px;gap:7px}
#tab-planner .planner-toolbar .secondary-action{min-height:32px;padding:6px 9px;font-size:9.5px}
#tab-planner .planner-plan-select select{min-height:32px}
#tab-planner .planner-sync{margin-left:auto;font-size:8.5px}
.planner-focus-workspace{display:block}
.planner-focus-topbar{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 12px;background:#fff;border:1px solid var(--line);border-radius:10px;margin-bottom:7px}
.planner-focus-title{min-width:0}.planner-focus-title>.analysis-eyebrow{font-size:7.5px}.planner-focus-title>div{display:flex;align-items:baseline;gap:7px;min-width:0}.planner-focus-title h3{font-size:16px;margin:2px 0 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.planner-focus-title b{font-size:11px;color:var(--sub)}.planner-focus-title p{font-size:8px;color:var(--dim);margin-top:2px}.planner-focus-dot{color:var(--line2)}
.planner-focus-actions{display:flex;align-items:flex-end;gap:8px;flex:0 0 auto}.planner-focus-actions .secondary-action{min-height:34px}.planner-chip-compact{min-width:112px}.planner-chip-compact label{font-size:7.5px}.planner-chip-compact select{min-height:34px}
.planner-gw-strip-focus{padding:1px 0 7px;margin:0}.planner-gw-strip-focus .planner-gw{min-width:78px;padding:7px 9px}.planner-gw-strip-focus .planner-gw b{font-size:10px}.planner-gw-strip-focus .planner-gw small{font-size:7.5px;margin-top:2px}
.planner-transfer-mode{display:none;margin:0 0 8px}.planner-batch-panel-focus{margin:0;padding:9px 11px;display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:12px;align-items:center}.planner-batch-panel-focus .planner-batch-head{grid-column:1/2}.planner-batch-panel-focus .planner-batch-focus-body{grid-column:1/2}.planner-batch-panel-focus .planner-batch-actions{grid-column:2/3;grid-row:1/3;align-self:center;margin:0;flex-direction:column}.planner-batch-panel-focus .planner-batch-actions button{min-width:118px}.planner-batch-panel-focus .planner-batch-budget{margin-left:auto}
.planner-layout-focus{grid-template-columns:minmax(0,2.15fr) minmax(360px,.82fr);gap:12px;align-items:start}.planner-main-focus{padding:10px}.planner-main-focus .planner-squad{margin:0}.planner-layout-focus .planner-picker{padding:11px;top:10px;max-height:calc(100vh - 28px);display:flex;flex-direction:column}.planner-layout-focus .planner-player-list{min-height:420px;max-height:620px;overflow:auto}.planner-layout-focus .planner-picker-head{margin-bottom:8px}.planner-layout-focus .planner-picker-head h3{font-size:14px}.planner-layout-focus .planner-search input,.planner-layout-focus .planner-filters select{min-height:36px}.planner-layout-focus .planner-picker-guide{margin-top:7px}
@media(min-width:1200px){
  .planner-layout-focus{grid-template-columns:minmax(760px,2.3fr) minmax(390px,.85fr)!important}
  .planner-layout-focus .planner-fpl-pitch{min-height:650px!important;padding:38px 34px 34px!important;gap:27px!important}
  .planner-layout-focus .planner-pitch-row{gap:21px!important;min-height:112px!important}
  .planner-layout-focus .planner-pitch-player{width:132px!important;flex-basis:132px!important}
  .planner-layout-focus .planner-pitch-kit{height:65px!important}.planner-layout-focus .planner-pitch-kit-img{height:64px!important;max-width:72px!important}
  .planner-layout-focus .planner-pitch-name{font-size:12px!important;padding:5px 7px!important}
  .planner-layout-focus .planner-pitch-meta{min-height:32px!important;padding:5px 4px!important}
  .planner-layout-focus .planner-pitch-meta .planner-fixture-run .pl-fixture{min-width:23px!important;max-width:25px!important;padding:5px 2px!important;font-size:8.2px!important}
  .planner-layout-focus .planner-bench-row .planner-pitch-player{width:126px!important;flex-basis:126px!important}
  .planner-layout-focus .planner-bench-row .planner-pitch-kit{height:59px!important}.planner-layout-focus .planner-bench-row .planner-pitch-kit-img{height:58px!important;max-width:65px!important}
  .planner-layout-focus .planner-transfer-empty{width:124px!important;min-height:112px!important}
}
.planner-bottom-details{margin-top:12px;display:grid;gap:9px}.planner-bottom-details .planner-summary{margin:0;order:1}.planner-transfer-log{order:2;border:1px solid var(--line);border-radius:9px;background:#fff;padding:11px}.planner-transfer-log-head{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;margin-bottom:8px}.planner-transfer-log-head h3{font-size:13px;margin-top:2px}.planner-transfer-log-head>small{font-size:8.5px;color:var(--sub)}
.planner-help-details,.planner-manage-details{order:3;border:1px solid var(--line);border-radius:9px;background:#fff;overflow:hidden}.planner-manage-details{order:4}.planner-help-details summary,.planner-manage-details summary{list-style:none;cursor:pointer;padding:11px 13px;font-size:10.5px;font-weight:800;display:flex;align-items:center;gap:8px}.planner-help-details summary::-webkit-details-marker,.planner-manage-details summary::-webkit-details-marker{display:none}.planner-help-details summary::after,.planner-manage-details summary::after{content:"+";margin-left:auto;font-size:16px;color:var(--dim)}.planner-help-details[open] summary::after,.planner-manage-details[open] summary::after{content:"−"}.planner-help-details summary span,.planner-manage-details summary span{font-size:8.5px;font-weight:500;color:var(--sub)}
.planner-explainer-bottom{border:0;border-top:1px solid var(--line);border-radius:0;margin:0;padding:11px 13px}.planner-bottom-actions{padding:11px 13px;border-top:1px solid var(--line);display:flex;gap:7px;flex-wrap:wrap}.planner-bottom-actions .secondary-action{min-height:34px}
html[data-theme="dark"] .planner-focus-topbar,html[data-theme="dark"] .planner-transfer-log,html[data-theme="dark"] .planner-help-details,html[data-theme="dark"] .planner-manage-details{background:#171f25!important;border-color:#33404a!important}.planner-focus-title b{color:var(--sub)}
html[data-theme="dark"] .planner-explainer-bottom{background:#171f25!important;border-color:#33404a!important}
@media(max-width:1050px){.planner-layout-focus{grid-template-columns:minmax(0,1.65fr) minmax(300px,.75fr)}.planner-focus-topbar{align-items:flex-start}.planner-focus-actions{flex-wrap:wrap;justify-content:flex-end}}
@media(max-width:800px){.planner-focus-topbar{flex-direction:column}.planner-focus-actions{width:100%;display:grid;grid-template-columns:1fr 1fr}.planner-focus-actions .planner-multi-btn{width:100%}.planner-layout-focus{grid-template-columns:1fr}.planner-layout-focus .planner-picker{position:static;max-height:none}.planner-layout-focus .planner-player-list{max-height:480px}.planner-batch-panel-focus{display:block}.planner-batch-panel-focus .planner-batch-actions{margin-top:10px;flex-direction:row}.planner-bottom-details .planner-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.planner-help-details summary,.planner-manage-details summary{align-items:flex-start;flex-wrap:wrap}.planner-help-details summary span,.planner-manage-details summary span{width:100%}}


/* V42 Planner polish: branded dialogs, nearby actions, readable fixtures */
.fpl-dialog-backdrop{position:fixed;inset:0;z-index:99999;background:rgba(10,18,23,.58);display:grid;place-items:center;padding:20px;backdrop-filter:blur(2px)}
.fpl-dialog{width:min(430px,calc(100vw - 32px));background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 22px 70px rgba(0,0,0,.25);padding:20px;color:var(--ink)}
.fpl-dialog-brand{display:flex;align-items:center;gap:8px;color:var(--green);font-size:11px;font-weight:800;margin-bottom:14px}.fpl-dialog-logo{width:24px;height:24px;border-radius:7px;background:var(--green);color:#fff;display:grid;place-items:center;font-size:13px}
.fpl-dialog h3{font-size:20px;line-height:1.2;margin:0 0 8px}.fpl-dialog p{font-size:12px;line-height:1.55;color:var(--sub);margin:0 0 15px}.fpl-dialog-input{width:100%;min-height:42px;border:1px solid var(--line2);border-radius:8px;background:#fff;color:var(--ink);padding:9px 11px;margin:0 0 16px;font:inherit}.fpl-dialog-input:focus{outline:2px solid rgba(7,155,98,.18);border-color:var(--green)}
.fpl-dialog-actions{display:flex;justify-content:flex-end;gap:8px}.fpl-dialog-actions button{min-height:38px;padding:8px 14px}.danger-action{border:1px solid #b63e48;background:#b63e48;color:#fff;border-radius:7px;font-weight:800;cursor:pointer}
html[data-theme="dark"] .fpl-dialog{background:#172129;border-color:#34434e;color:#f4f7f8}html[data-theme="dark"] .fpl-dialog p{color:#b4c0c8}html[data-theme="dark"] .fpl-dialog-input{background:#10171c;border-color:#3a4a55;color:#fff}
.planner-near-pitch-actions{display:flex;justify-content:flex-end;align-items:center;gap:7px;margin:-2px 0 8px}.planner-near-pitch-actions .secondary-action{min-height:31px;padding:5px 9px;font-size:9px}.planner-near-pitch-actions .danger-soft{color:#a83240}
/* Never truncate a normal three-letter opponent code. */
.planner-pitch-meta .planner-fixture-run .pl-fixture{overflow:visible!important;text-overflow:clip!important;white-space:nowrap!important;min-width:27px!important;max-width:none!important;padding-left:3px!important;padding-right:3px!important;letter-spacing:0!important}
.planner-pitch-meta .planner-fixture-run .pl-fixture.double{min-width:34px!important;font-size:6.4px!important}
/* Keep the remove control visually attached to the kit, not floating far off the card. */
.transfer-edit-mode .planner-transfer-remove{top:9px!important;right:10px!important;width:18px!important;height:18px!important;font-size:13px!important;line-height:16px!important;border-width:1.5px!important;box-shadow:0 1px 4px rgba(0,0,0,.22)!important}
.transfer-edit-mode .planner-role-badge{top:62px!important;right:5px!important}
@media(min-width:1200px){.planner-layout-focus .planner-pitch-player{width:142px!important;flex-basis:142px!important}.planner-layout-focus .planner-pitch-meta .planner-fixture-run{gap:4px!important}.planner-layout-focus .planner-pitch-meta .planner-fixture-run .pl-fixture{min-width:29px!important;font-size:8.4px!important;padding:5px 3px!important}.planner-layout-focus .planner-pitch-meta .planner-fixture-run .pl-fixture.double{min-width:38px!important;font-size:6.6px!important}.planner-layout-focus .planner-bench-row .planner-pitch-player{width:136px!important;flex-basis:136px!important}}
@media(max-width:900px){.planner-near-pitch-actions{justify-content:flex-start;overflow-x:auto;padding-bottom:2px}.planner-near-pitch-actions button{white-space:nowrap}.transfer-edit-mode .planner-transfer-remove{top:4px!important;right:4px!important;width:16px!important;height:16px!important;font-size:11px!important}.planner-pitch-meta .planner-fixture-run .pl-fixture{min-width:18px!important;padding:3px 1px!important;font-size:6.3px!important}.planner-pitch-meta .planner-fixture-run .pl-fixture.double{min-width:24px!important;font-size:5.4px!important}}

/* V43 Planner: all 38 GWs, stable pitch-first transfer mode, cleaner fixture labels */
.planner-gw-strip-focus{display:flex;align-items:stretch;gap:6px;overflow:visible}
.planner-gw-strip-focus .planner-gw{flex:0 0 auto;min-width:84px}
.planner-gw-nav{flex:0 0 34px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);font-size:20px;font-weight:800;cursor:pointer}
.planner-gw-nav:disabled{opacity:.35;cursor:default}
.planner-gw-jump{margin-left:auto;display:flex;flex-direction:column;justify-content:center;gap:3px;min-width:92px}
.planner-gw-jump span{font-size:8px;color:var(--sub);font-weight:800;text-align:center}
.planner-gw-jump select{height:32px;border:1px solid var(--line);border-radius:7px;background:#fff;color:var(--ink);font-size:10px;padding:0 7px}
html[data-theme="dark"] .planner-gw-nav,html[data-theme="dark"] .planner-gw-jump select{background:#171f25;border-color:#33404a;color:#f4f7f8}
.planner-transfer-mode-below{margin:10px 0 0!important}
.planner-transfer-mode-below .planner-batch-panel-focus{border-radius:10px}
.planner-batch-group button em{font-style:normal;font-size:12px;line-height:1;margin-left:2px;color:inherit;opacity:.75}
.planner-batch-group button:hover em{opacity:1}
/* Fixture chips always use a clean 3-letter code and never ellipsize. */
.planner-fixture-run .pl-fixture,.planner-pitch-meta .planner-fixture-run .pl-fixture{overflow:visible!important;text-overflow:clip!important;white-space:nowrap!important}
@media(max-width:1050px){.planner-gw-strip-focus{overflow-x:auto;padding-bottom:4px}.planner-gw-jump{position:sticky;right:0;background:var(--bg);padding-left:5px}.planner-gw-strip-focus .planner-gw{min-width:76px}}
@media(max-width:700px){.planner-gw-strip-focus .planner-gw{min-width:70px}.planner-gw-jump span{display:none}.planner-gw-jump{min-width:74px}.planner-gw-nav{flex-basis:30px}.planner-transfer-mode-below .planner-batch-panel-focus{padding:10px}}

/* V44 — downstream fresh-squad dependency state */
.planner-fpl-pitch-locked{position:relative}
.planner-pitch-empty-locked{opacity:.48;pointer-events:none}
.planner-pitch-lock-message{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:8;border:1px solid rgba(255,255,255,.7);background:rgba(8,49,36,.92);color:#fff;border-radius:12px;padding:14px 18px;min-width:210px;text-align:center;cursor:pointer;box-shadow:0 8px 24px rgba(0,0,0,.16)}
.planner-pitch-lock-message b,.planner-pitch-lock-message span{display:block}.planner-pitch-lock-message b{font-size:13px}.planner-pitch-lock-message span{font-size:9px;margin-top:4px;opacity:.8}
.planner-pitch-waiting>div b{color:#087a55}
html[data-theme="dark"] .planner-pitch-lock-message{background:rgba(9,31,24,.96);border-color:#3a7c63}

/* V45 planner: keep decision-critical budget/status directly above the pitch */
.planner-summary-top{margin:8px 0 10px;grid-template-columns:repeat(5,minmax(0,1fr))}
.planner-summary-top>div{padding:9px 11px}
.planner-bottom-details{margin-top:12px}
@media(max-width:900px){.planner-summary-top{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:560px){.planner-summary-top{grid-template-columns:repeat(2,minmax(0,1fr))}.planner-summary-top>div:last-child{grid-column:1/-1}}


/* V47 Global dialog hardening: centered card confirmation across the app */
.fpl-dialog-backdrop{
  position:fixed!important;
  inset:0!important;
  z-index:100000!important;
  display:grid!important;
  place-items:center!important;
  padding:20px!important;
  background:rgba(15,23,30,.48)!important;
  backdrop-filter:blur(3px);
  -webkit-backdrop-filter:blur(3px);
}
.fpl-dialog{
  width:min(420px,calc(100vw - 32px))!important;
  max-height:calc(100dvh - 32px);
  overflow:auto;
  margin:0!important;
  padding:20px!important;
  border:1px solid var(--line2)!important;
  border-radius:14px!important;
  background:var(--panel)!important;
  color:var(--ink)!important;
  box-shadow:0 24px 70px rgba(15,23,30,.24)!important;
  animation:fplDialogIn .16s ease-out;
}
.fpl-dialog-brand{margin:0 0 13px!important;font-size:10px!important;letter-spacing:.01em}
.fpl-dialog-logo{width:23px!important;height:23px!important;border-radius:6px!important}
.fpl-dialog h3{margin:0 0 7px!important;font-size:18px!important;line-height:1.25!important;letter-spacing:-.02em}
.fpl-dialog p{margin:0 0 17px!important;font-size:12px!important;line-height:1.6!important;color:var(--sub)!important}
.fpl-dialog-actions{display:flex!important;justify-content:flex-end!important;gap:8px!important;margin-top:2px!important}
.fpl-dialog-actions button{min-height:38px!important;padding:8px 14px!important;border-radius:8px!important}
.fpl-dialog-input{margin-bottom:17px!important}
@keyframes fplDialogIn{from{opacity:0;transform:translateY(6px) scale(.985)}to{opacity:1;transform:none}}
@media(max-width:480px){
  .fpl-dialog-backdrop{padding:14px!important}
  .fpl-dialog{width:100%!important;padding:18px!important;border-radius:13px!important}
  .fpl-dialog-actions{display:grid!important;grid-template-columns:1fr 1fr!important}
  .fpl-dialog-actions button{width:100%!important}
}
@media(prefers-reduced-motion:reduce){.fpl-dialog{animation:none!important}}
html[data-theme="dark"] .fpl-dialog{background:#172129!important;border-color:#34434e!important;color:#f4f7f8!important}
html[data-theme="dark"] .fpl-dialog p{color:#b4c0c8!important}


/* V48 Planner: keep dense 5-player pitch lines and their FDR runs inside the pitch */
.planner-pitch-row-count-5{
  gap:8px!important;
  padding-inline:8px;
  box-sizing:border-box;
}
.planner-pitch-row-count-5>.planner-pitch-player,
.planner-pitch-row-count-5>.planner-transfer-empty,
.planner-pitch-row-count-5>.planner-pitch-empty{
  flex:1 1 0!important;
  width:auto!important;
  min-width:0!important;
  max-width:118px!important;
}
.planner-pitch-row-count-5 .planner-pitch-main,
.planner-pitch-row-count-5 .planner-pitch-meta{
  min-width:0;
  max-width:100%;
}
.planner-pitch-row-count-5 .planner-pitch-meta{
  overflow:hidden;
  padding-left:2px!important;
  padding-right:2px!important;
}
.planner-pitch-row-count-5 .planner-pitch-meta .planner-fixture-run{
  display:flex!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  gap:1px!important;
  overflow:hidden!important;
}
.planner-pitch-row-count-5 .planner-pitch-meta .planner-fixture-run .pl-fixture{
  flex:1 1 0!important;
  width:0!important;
  min-width:0!important;
  max-width:none!important;
  padding:3px 1px!important;
  font-size:6.4px!important;
  letter-spacing:-.15px!important;
  overflow:hidden!important;
  text-overflow:clip!important;
  white-space:nowrap!important;
}
.planner-pitch-row-count-5 .planner-pitch-meta .planner-fixture-run .pl-fixture.double{
  min-width:0!important;
  font-size:5.2px!important;
}
@media(min-width:1200px){
  .planner-layout-focus .planner-pitch-row-count-5{
    gap:10px!important;
    padding-inline:12px;
  }
  .planner-layout-focus .planner-pitch-row-count-5>.planner-pitch-player,
  .planner-layout-focus .planner-pitch-row-count-5>.planner-transfer-empty,
  .planner-layout-focus .planner-pitch-row-count-5>.planner-pitch-empty{
    flex:1 1 0!important;
    width:auto!important;
    min-width:0!important;
    max-width:116px!important;
  }
  .planner-layout-focus .planner-pitch-row-count-5 .planner-pitch-meta .planner-fixture-run .pl-fixture{
    min-width:0!important;
    max-width:none!important;
    padding:4px 1px!important;
    font-size:6.6px!important;
  }
}
@media(max-width:700px){
  .planner-pitch-row-count-5{gap:4px!important;padding-inline:2px}
  .planner-pitch-row-count-5 .planner-pitch-meta .planner-fixture-run .pl-fixture{
    padding:3px 0!important;
    font-size:0!important;
    min-height:11px;
  }
  .planner-pitch-row-count-5 .planner-pitch-meta .planner-fixture-run .pl-fixture.double{font-size:0!important}
}

/* V49 Planner: fixture strips always fit their player card; dense rows use the pitch width cleanly */
.planner-pitch-meta{
  min-width:0!important;
  overflow:hidden!important;
}
.planner-pitch-meta .planner-fixture-run{
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  align-items:center!important;
  gap:2px!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  overflow:hidden!important;
}
.planner-pitch-meta .planner-fixture-run .pl-fixture,
.planner-fpl-bench .planner-pitch-meta .planner-fixture-run .pl-fixture{
  display:block!important;
  box-sizing:border-box!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  padding:4px 1px!important;
  font-size:7px!important;
  line-height:1.05!important;
  letter-spacing:-.12px!important;
  overflow:hidden!important;
  text-overflow:clip!important;
  white-space:nowrap!important;
}
.planner-pitch-meta .planner-fixture-run .pl-fixture.double{
  min-width:0!important;
  font-size:5.4px!important;
  letter-spacing:-.25px!important;
}

/* Five-player DEF/MID lines: fill the row evenly without looking pinched. */
.planner-pitch-row-count-5{
  gap:8px!important;
  padding-inline:4px!important;
}
.planner-pitch-row-count-5>.planner-pitch-player,
.planner-pitch-row-count-5>.planner-transfer-empty,
.planner-pitch-row-count-5>.planner-pitch-empty{
  flex:1 1 0!important;
  width:auto!important;
  min-width:0!important;
  max-width:136px!important;
}

@media(min-width:1200px){
  .planner-layout-focus .planner-pitch-row-count-5{
    gap:8px!important;
    padding-inline:4px!important;
  }
  .planner-layout-focus .planner-pitch-row-count-5>.planner-pitch-player,
  .planner-layout-focus .planner-pitch-row-count-5>.planner-transfer-empty,
  .planner-layout-focus .planner-pitch-row-count-5>.planner-pitch-empty{
    flex:1 1 0!important;
    width:auto!important;
    min-width:0!important;
    max-width:136px!important;
  }
  .planner-layout-focus .planner-pitch-meta .planner-fixture-run{
    gap:2px!important;
  }
  .planner-layout-focus .planner-pitch-meta .planner-fixture-run .pl-fixture{
    min-width:0!important;
    max-width:none!important;
    padding:4px 1px!important;
    font-size:7px!important;
  }
  .planner-layout-focus .planner-pitch-meta .planner-fixture-run .pl-fixture.double{
    font-size:5.4px!important;
  }
}

@media(min-width:901px) and (max-width:1199px){
  .planner-pitch-meta .planner-fixture-run{gap:1px!important}
  .planner-pitch-meta .planner-fixture-run .pl-fixture{
    padding:3px 0!important;
    font-size:6px!important;
  }
  .planner-pitch-meta .planner-fixture-run .pl-fixture.double{font-size:4.8px!important}
}

@media(max-width:700px){
  .planner-pitch-meta .planner-fixture-run{gap:1px!important}
  .planner-pitch-meta .planner-fixture-run .pl-fixture,
  .planner-fpl-bench .planner-pitch-meta .planner-fixture-run .pl-fixture{
    padding:3px 0!important;
    font-size:0!important;
    min-height:11px!important;
  }
  .planner-pitch-meta .planner-fixture-run .pl-fixture.double{font-size:0!important}
  .planner-pitch-row-count-5{gap:4px!important;padding-inline:1px!important}
}


/* V50 Planner: keep transfer confirmation visible in the player sidebar */
.planner-layout-focus .planner-picker{
  overflow:hidden;
}
.planner-layout-focus .planner-player-list{
  flex:1 1 auto;
  min-height:180px;
  max-height:none!important;
  overflow:auto;
}
.planner-layout-focus .planner-price-note{
  flex:0 0 auto;
}
.planner-transfer-mode-sidebar{
  flex:0 0 auto;
  margin:9px 0 0!important;
  padding-top:9px;
  border-top:1px solid var(--line);
}
.planner-transfer-mode-sidebar .planner-batch-panel-focus{
  display:block;
  padding:10px;
  border-radius:10px;
  box-shadow:0 -6px 18px rgba(26,43,35,.04);
}
.planner-transfer-mode-sidebar .planner-batch-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}
.planner-transfer-mode-sidebar .planner-batch-head>div:first-child{
  min-width:0;
}
.planner-transfer-mode-sidebar .planner-batch-head small{
  line-height:1.35;
}
.planner-transfer-mode-sidebar .planner-batch-budget{
  flex:0 0 auto;
  margin-left:auto;
}
.planner-transfer-mode-sidebar .planner-batch-focus-body{
  margin-top:7px;
  max-height:88px;
  overflow:auto;
}
.planner-transfer-mode-sidebar .planner-batch-group{
  margin-top:5px;
}
.planner-transfer-mode-sidebar .planner-batch-group button{
  padding:4px 6px;
}
.planner-transfer-mode-sidebar .planner-batch-actions{
  display:grid;
  grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);
  gap:7px;
  margin-top:9px;
}
.planner-transfer-mode-sidebar .planner-batch-actions button{
  width:100%;
  min-width:0;
  min-height:36px;
}
html[data-theme="dark"] .planner-transfer-mode-sidebar{
  border-top-color:#33404a;
}

/* Mobile: a compact action bar above the existing bottom navigation. */
@media(max-width:800px){
  .planner-workspace.planner-batch-active{
    padding-bottom:105px;
  }
  .planner-transfer-mode-sidebar{
    position:fixed;
    left:10px;
    right:10px;
    bottom:calc(72px + env(safe-area-inset-bottom));
    z-index:78;
    margin:0!important;
    padding:0;
    border:0;
    filter:drop-shadow(0 12px 28px rgba(18,31,25,.2));
  }
  .planner-transfer-mode-sidebar .planner-batch-panel-focus{
    padding:9px 10px;
    border-radius:12px;
    background:rgba(244,251,247,.98);
    backdrop-filter:blur(10px);
  }
  .planner-transfer-mode-sidebar .planner-batch-head{
    align-items:center;
  }
  .planner-transfer-mode-sidebar .planner-batch-head small,
  .planner-transfer-mode-sidebar .planner-batch-focus-body{
    display:none;
  }
  .planner-transfer-mode-sidebar .planner-batch-budget span{
    font-size:7px;
  }
  .planner-transfer-mode-sidebar .planner-batch-budget b{
    font-size:12px;
  }
  .planner-transfer-mode-sidebar .planner-batch-actions{
    grid-template-columns:minmax(0,.7fr) minmax(0,1.3fr);
    margin-top:7px;
  }
  .planner-transfer-mode-sidebar .planner-batch-actions button{
    min-height:34px;
    padding:6px 8px;
  }
  html[data-theme="dark"] .planner-transfer-mode-sidebar .planner-batch-panel-focus{
    background:rgba(16,28,23,.98)!important;
  }
}


/* V52 Planner: simple AutoPick entry point + compact explainer */
.planner-start-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.planner-start-actions .secondary-action,.planner-start-actions .primary-action{min-height:36px;padding:8px 11px;font-size:10px}
.planner-autopick-start,.planner-autopick-btn{white-space:nowrap}
.planner-autopick-btn{border-color:#8fd0b6!important;background:#eef9f4!important;color:#087a55!important;font-weight:800}
.planner-autopick-btn:hover:not(:disabled){background:#e3f5ed!important;border-color:#6ebc9e!important}
.planner-autopick-help{margin-top:0}
.planner-autopick-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.planner-autopick-note{margin:10px 1px 0;color:var(--sub);font-size:8.6px;line-height:1.5}
html[data-theme="dark"] .planner-autopick-btn{background:#102b22!important;border-color:#286b55!important;color:#70e1b5!important}
@media(max-width:900px){.planner-autopick-grid{grid-template-columns:1fr 1fr}.planner-start-actions{display:grid;grid-template-columns:1fr 1fr}.planner-start-actions button{width:100%}}
@media(max-width:560px){.planner-autopick-grid{grid-template-columns:1fr}.planner-start-actions{grid-template-columns:1fr}.planner-near-pitch-actions .planner-autopick-btn{order:-1}}


/* V53 Planner: share one Gameweek as a compact read-only snapshot */
.planner-share-btn{white-space:nowrap}
.planner-share-hidden{display:none!important}
.planner-share-layer{position:fixed;inset:0;z-index:100020;display:grid;place-items:center;padding:20px}
.planner-share-layer[hidden]{display:none!important}
.planner-share-backdrop{position:absolute;inset:0;border:0;background:rgba(10,18,23,.58);backdrop-filter:blur(2px)}
.planner-share-dialog{position:relative;z-index:1;width:min(500px,calc(100vw - 32px))}
.planner-share-x{position:absolute;right:13px;top:12px;width:32px;height:32px;border:0;border-radius:50%;background:transparent;color:var(--sub);font-size:24px;line-height:1;cursor:pointer}
.planner-share-x:hover{background:#f0f4f2;color:var(--ink)}
.planner-share-link{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;margin:2px 0 10px}.planner-share-link input{min-width:0;height:40px;border:1px solid var(--line2);border-radius:8px;background:#f8faf9;color:var(--sub);padding:8px 10px;font:inherit;font-size:10px}.planner-share-link button{min-width:66px}
.planner-share-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.planner-share-actions button{min-height:40px}.planner-share-privacy{display:block;margin-top:12px;color:var(--dim);font-size:8.8px;line-height:1.5}.planner-share-status{min-height:17px;margin-top:7px;color:var(--green);font-size:9px;font-weight:700}
.planner-shared-view{margin-top:9px}.planner-shared-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 18px;background:#fff;border:1px solid var(--line);border-radius:12px;margin-bottom:10px}.planner-shared-head h3{font-size:20px;margin:3px 0}.planner-shared-head p{color:var(--sub);font-size:10px}.planner-shared-actions{display:flex;gap:7px;flex:0 0 auto}.planner-shared-actions button{min-height:38px}
.planner-shared-stats{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin-bottom:10px}.planner-shared-stats>div{padding:11px 12px;background:#fff;border:1px solid var(--line);border-radius:9px}.planner-shared-stats span{display:block;color:var(--dim);font-size:7.5px;text-transform:uppercase;font-weight:800;letter-spacing:.45px}.planner-shared-stats b{display:block;margin-top:4px;font-size:15px}.planner-shared-stats small{color:var(--sub);font-size:7.5px}
.planner-shared-pitch{position:relative;min-height:610px;padding:42px 28px 36px;background:#3dac73;border:1px solid #2f9863;border-radius:13px;display:flex;flex-direction:column;justify-content:space-around;gap:22px;overflow:hidden}.planner-shared-pitch:before{content:"";position:absolute;inset:14px;border:1px solid rgba(255,255,255,.76);border-radius:5px;pointer-events:none}.planner-shared-pitch:after{content:"";position:absolute;left:14px;right:14px;top:50%;height:1px;background:rgba(255,255,255,.7);pointer-events:none}
.planner-shared-row{position:relative;z-index:2;display:flex;align-items:center;justify-content:space-evenly;gap:14px;min-height:105px}.planner-shared-player{position:relative;width:min(142px,18%);min-width:108px;display:flex;flex-direction:column;align-items:center}.planner-shared-kit{height:59px;display:flex;align-items:flex-end;justify-content:center}.planner-shared-kit img{height:58px;max-width:66px;object-fit:contain}.planner-shared-player>b{width:100%;padding:5px 5px 4px;border-radius:5px 5px 0 0;background:#10222e;color:#fff;text-align:center;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.planner-shared-player>span:nth-of-type(2){width:100%;min-height:28px;padding:4px;background:#fff;border-radius:0 0 5px 5px;overflow:hidden}.planner-shared-player .planner-fixture-run{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px;width:100%}.planner-shared-player .pl-fixture{min-width:0!important;max-width:none!important;padding:3px 1px!important;font-size:6.8px!important}.planner-shared-player>i{position:absolute;right:-6px;top:48px;width:21px;height:21px;border-radius:50%;display:grid;place-items:center;color:#fff;font-style:normal;font-size:9px;font-weight:900;border:2px solid #fff}.planner-shared-player>i.captain{background:#37003c}.planner-shared-player>i.vice{background:#705075}
.planner-shared-bench{margin-top:10px;padding:10px 12px 12px;background:#f7f9f8;border:1px solid var(--line);border-radius:10px}.planner-shared-bench>div:first-child{display:flex;justify-content:space-between;gap:10px;margin-bottom:8px}.planner-shared-bench>div:first-child span{font-size:8px;text-transform:uppercase;font-weight:800;color:var(--dim)}.planner-shared-bench>div:first-child small{font-size:8px;color:var(--sub)}.planner-shared-bench-row{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.planner-shared-bench-row .planner-shared-player{width:100%;min-width:0}
.planner-shared-foot{display:grid;grid-template-columns:150px 150px minmax(220px,1fr);gap:8px;margin-top:10px}.planner-shared-foot>div,.planner-shared-foot>p{background:#fff;border:1px solid var(--line);border-radius:9px;padding:11px 12px}.planner-shared-foot>div>span{display:block;color:var(--dim);font-size:7.5px;text-transform:uppercase;font-weight:800}.planner-shared-foot>div>b{display:block;margin-top:3px;font-size:12px}.planner-shared-foot>p{grid-column:1/-1;color:var(--sub);font-size:9px;line-height:1.5}.planner-shared-moves{display:flex;gap:5px;flex-wrap:wrap;margin-top:5px}.planner-shared-moves span{padding:3px 5px;border-radius:5px;background:#f2f6f4;font-size:8px;color:var(--sub)}
.planner-shared-error{padding:24px;background:#fff;border:1px solid var(--line);border-radius:12px;display:flex;flex-direction:column;align-items:flex-start;gap:8px}.planner-shared-error b{font-size:16px}.planner-shared-error span{color:var(--sub);font-size:10px}.planner-shared-error button{margin-top:5px}
html[data-theme="dark"] .planner-share-dialog,html[data-theme="dark"] .planner-shared-head,html[data-theme="dark"] .planner-shared-stats>div,html[data-theme="dark"] .planner-shared-foot>div,html[data-theme="dark"] .planner-shared-foot>p,html[data-theme="dark"] .planner-shared-error{background:#171f25!important;border-color:#33404a!important}html[data-theme="dark"] .planner-share-link input{background:#10171c;border-color:#3a4a55;color:#bcc6cc}html[data-theme="dark"] .planner-share-x:hover{background:#26323a;color:#fff}html[data-theme="dark"] .planner-shared-bench{background:#121a20;border-color:#33404a}html[data-theme="dark"] .planner-shared-moves span{background:#202b32;color:#bdc7cd}
@media(max-width:800px){.planner-focus-actions{grid-template-columns:1fr 1fr 1fr}.planner-shared-head{align-items:flex-start;flex-direction:column}.planner-shared-actions{width:100%;display:grid;grid-template-columns:1fr 1fr}.planner-shared-stats{grid-template-columns:repeat(2,1fr)}.planner-shared-stats>div:last-child{grid-column:1/-1}.planner-shared-pitch{min-height:560px;padding:32px 12px}.planner-shared-row{gap:7px}.planner-shared-player{min-width:0;width:18.5%}.planner-shared-player>b{font-size:8.5px}.planner-shared-kit{height:49px}.planner-shared-kit img{height:48px;max-width:54px}.planner-shared-player>span:nth-of-type(2){padding:3px}.planner-shared-player .pl-fixture{font-size:0!important;min-height:12px}.planner-shared-player>i{top:39px;right:-4px}.planner-shared-foot{grid-template-columns:1fr 1fr}.planner-shared-foot>div:nth-child(3){grid-column:1/-1}}
@media(max-width:560px){.planner-focus-actions{grid-template-columns:1fr 1fr}.planner-focus-actions .planner-chip-compact{grid-column:1/-1}.planner-share-layer{padding:12px}.planner-share-dialog{width:100%}.planner-share-actions{grid-template-columns:1fr}.planner-share-link{grid-template-columns:1fr}.planner-share-link button{display:none}.planner-shared-head{padding:13px}.planner-shared-actions{grid-template-columns:1fr}.planner-shared-stats{gap:6px}.planner-shared-pitch{min-height:510px;padding:25px 7px;gap:12px}.planner-shared-row{gap:3px}.planner-shared-player{width:19%;}.planner-shared-player>b{font-size:7px;padding:4px 2px}.planner-shared-kit{height:40px}.planner-shared-kit img{height:39px;max-width:43px}.planner-shared-player>span:nth-of-type(2){min-height:17px}.planner-shared-player .pl-fixture{min-height:9px}.planner-shared-player>i{width:18px;height:18px;font-size:8px;top:32px}.planner-shared-bench-row{gap:6px}.planner-shared-bench>div:first-child small{display:none}}

/* Team Builder: richer compact summary + Planner-style sort control */
.bld-detailstats{display:grid;grid-template-columns:repeat(6,minmax(78px,1fr));gap:7px;margin-top:10px;max-width:760px}
.bld-detailstats>span{min-width:0;border:1px solid var(--line);background:var(--panel2);border-radius:9px;padding:7px 9px;display:flex;flex-direction:column;gap:2px}
.bld-detailstats small{font-size:9.5px;line-height:1.1;color:var(--dim);font-weight:700;white-space:nowrap}
.bld-detailstats b{font-family:'Inter';font-size:13px;color:var(--ink);white-space:nowrap}
.bld-select-row{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:8px}
.bld-select-row .bld-team-sel{margin-bottom:0;min-width:0}
.bld-sort-sel{width:100%;min-width:0}
@media(max-width:1100px){.bld-detailstats{grid-template-columns:repeat(3,minmax(90px,1fr))}}
@media(max-width:560px){.bld-detailstats{grid-template-columns:repeat(2,minmax(0,1fr))}.bld-select-row{grid-template-columns:1fr}}

/* V59 Team Builder: keep pitch cards visual and decision-friendly */
.bld-pl-price{
  background:#fff;
  color:#17212b;
  font-family:'Inter';
  font-size:9px;
  font-weight:800;
  line-height:1;
  padding:3px 4px;
  border-left:1px solid rgba(4,18,26,.08);
  border-right:1px solid rgba(4,18,26,.08);
}
.bld-fx-run{
  display:grid;
  grid-template-columns:repeat(var(--bld-fx-count,5),minmax(0,1fr));
  gap:2px;
  background:#fff;
  padding:3px;
  border-radius:0 0 5px 5px;
  border:1px solid rgba(4,18,26,.08);
  border-top:0;
  overflow:hidden;
}
.bld-fx{
  min-width:0;
  height:13px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:3px;
  color:#17212b;
  font-family:'Inter';
  font-size:5.7px;
  font-weight:800;
  line-height:1;
  overflow:hidden;
  white-space:nowrap;
}
.bld-fx.fdr4,.bld-fx.fdr5{color:#fff}
.bld-fx.blank{background:#f2f3f4;color:#9aa2aa}
.bld-fx.double{font-size:5.5px}
@media(max-width:560px){
  .bld-pl-price{font-size:8px;padding:2px 3px}
  .bld-fx-run{gap:1px;padding:2px}
  .bld-fx{height:11px;font-size:0}
}

/* V60 Team Builder: 11-player pitch, bench and chip-aware score */
.bld-xi-label{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:0 2px 7px;color:var(--sub)}
.bld-xi-label span,.bld-bench-head span{font-size:10px;text-transform:uppercase;letter-spacing:.45px;font-weight:800;color:var(--dim)}
.bld-xi-label small,.bld-bench-head small{font-size:9px;color:var(--sub)}
.bld-pitch{min-height:430px;display:flex;flex-direction:column;justify-content:space-evenly;padding-top:24px;padding-bottom:20px}
.bld-pitch .prow{width:100%;margin-bottom:0;min-height:86px;align-items:flex-end}
.bld-bench{margin-top:8px;background:var(--panel2);border:1px solid var(--line);border-radius:12px;padding:10px 12px 12px}
.bld-bench-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:8px}
.bld-bench-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;align-items:end}
.bld-bench-row .bld-slot{width:100%;max-width:108px;margin:0 auto}
.bld-bench-row .bld-slot.empty{width:100%;max-width:108px;height:92px}
.bld-slot.on-bench .bld-kit-wrap{height:42px}.bld-slot.on-bench .bld-kit{height:42px;max-width:46px}
.bld-cap{display:inline-grid;place-items:center;margin-left:4px;width:16px;height:16px;border-radius:50%;background:#37003c;color:#fff;font-size:8px;font-weight:900;vertical-align:1px}
.bld-chip-control{display:flex;align-items:center;gap:6px;height:34px;padding:4px 7px 4px 9px;background:var(--panel);border:1px solid var(--line2);border-radius:8px;color:var(--dim)}
.bld-chip-control>span{font-size:9px;text-transform:uppercase;letter-spacing:.35px;font-weight:800}
.bld-chip-select{border:0;background:transparent;color:var(--ink);font:inherit;font-size:11px;font-weight:700;outline:none;max-width:132px;cursor:pointer}
html[data-theme="dark"] .bld-chip-control{background:#151d22;border-color:#3a4650}html[data-theme="dark"] .bld-chip-select{color:#eef4f6}
@media(max-width:1100px){.bld-chip-control{order:3}.bld-pitch{min-height:410px}}
@media(max-width:620px){.bld-xi-label small,.bld-bench-head small{display:none}.bld-pitch{min-height:390px;padding-left:3px;padding-right:3px}.bld-pitch .bld-slot{width:76px}.bld-bench-row{gap:5px}.bld-bench{padding-left:7px;padding-right:7px}.bld-chip-control{width:100%;justify-content:space-between}.bld-chip-select{max-width:none;flex:1;text-align:right}}

/* V63 Team Builder: Optimize squad + animated optimization review */
.bld-optimize-btn{background:#fff!important;color:#087a55!important;border:1px solid #91cdb7!important;font-weight:800;white-space:nowrap}
.bld-optimize-btn:hover:not(:disabled){background:#eef9f4!important;border-color:#62b394!important}
.bld-optimize-btn:disabled{opacity:.48;cursor:not-allowed}
.bld-opt-layer{position:fixed;inset:0;z-index:100050;display:grid;place-items:center;padding:18px}
.bld-opt-layer[hidden]{display:none!important}
.bld-opt-backdrop{position:absolute;inset:0;background:rgba(16,24,32,.5);backdrop-filter:blur(5px)}
.bld-opt-card{position:relative;z-index:1;width:min(620px,calc(100vw - 28px));max-height:min(760px,calc(100vh - 28px));overflow:auto;background:var(--panel);border:1px solid var(--line2);border-radius:18px;box-shadow:0 28px 80px rgba(8,24,18,.26);padding:24px}
.bld-opt-brand{display:flex;align-items:center;gap:8px;color:#087a55;font-size:10px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}
.bld-opt-brandmark{display:grid;place-items:center;width:25px;height:25px;border-radius:8px;background:#e9f8f1;font-size:13px}
.bld-opt-card h3{margin:16px 0 6px;font-family:'Inter';font-size:22px;line-height:1.15;color:var(--ink)}
.bld-opt-stage{margin:0;color:var(--ink);font-size:13px;font-weight:800}
.bld-opt-detail,.bld-opt-review-copy{margin:5px 0 0;color:var(--sub);font-size:11px;line-height:1.55}
.bld-opt-visual{position:relative;width:104px;height:104px;margin:18px auto 16px;display:grid;place-items:center}
.bld-opt-visual span{position:absolute;inset:14px;border-radius:50%;border:2px solid rgba(8,154,100,.26);animation:bldOptPulse 1.8s ease-in-out infinite}
.bld-opt-visual span:nth-child(2){inset:4px;animation-delay:.28s;border-color:rgba(8,154,100,.17)}
.bld-opt-visual span:nth-child(3){inset:-6px;animation-delay:.56s;border-color:rgba(8,154,100,.1)}
.bld-opt-visual b{position:relative;display:grid;place-items:center;width:58px;height:58px;border-radius:18px;background:#0b8f62;color:#fff;font-size:13px;letter-spacing:.08em;box-shadow:0 10px 30px rgba(11,143,98,.24);animation:bldOptFloat 1.8s ease-in-out infinite}
@keyframes bldOptPulse{0%,100%{transform:scale(.9);opacity:.42}50%{transform:scale(1.06);opacity:1}}
@keyframes bldOptFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-4px)}}
.bld-opt-progress{height:9px;background:var(--panel2);border:1px solid var(--line);border-radius:99px;overflow:hidden;margin:15px 0 10px}
.bld-opt-progress i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#0b8f62,#18b47e);transition:width .28s ease;position:relative;overflow:hidden}
.bld-opt-progress i::after{content:"";position:absolute;inset:0;background:linear-gradient(110deg,transparent 10%,rgba(255,255,255,.45) 45%,transparent 75%);transform:translateX(-100%);animation:bldOptShimmer 1.25s linear infinite}
@keyframes bldOptShimmer{to{transform:translateX(100%)}}
.bld-opt-status{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:15px}
.bld-opt-status span{font-size:9px;color:var(--sub);background:var(--panel2);border:1px solid var(--line);border-radius:99px;padding:5px 8px}
.bld-opt-cancel{width:100%}
.bld-opt-scorecompare{display:grid;grid-template-columns:1fr auto 1fr 1fr;gap:9px;align-items:stretch;margin:16px 0}
.bld-opt-scorecompare>div{border:1px solid var(--line);background:var(--panel2);border-radius:11px;padding:10px}
.bld-opt-scorecompare>span{align-self:center;color:var(--dim);font-size:17px}
.bld-opt-scorecompare small,.bld-opt-scorecompare em{display:block;color:var(--dim);font-size:9px;font-style:normal}
.bld-opt-scorecompare b{display:block;margin:3px 0;font-family:'Inter';font-size:18px}
.bld-opt-scorecompare b span{font-size:10px;color:var(--sub)}
.bld-opt-scorecompare .bld-opt-gain{background:#edf9f4;border-color:#c9ebdd}
.bld-opt-scorecompare .bld-opt-gain b{color:#087a55}
.bld-opt-changes{border:1px solid var(--line);border-radius:12px;overflow:hidden;margin:10px 0 12px}
.bld-opt-change{display:grid;grid-template-columns:22px minmax(0,1fr) 18px minmax(0,1fr) auto;gap:7px;align-items:center;padding:9px 10px;border-top:1px solid var(--line)}
.bld-opt-change:first-child{border-top:0}
.bld-opt-change-num{width:20px;height:20px;display:grid;place-items:center;border-radius:6px;background:var(--panel2);color:var(--dim);font-size:9px;font-weight:800}
.bld-opt-player{display:flex;align-items:center;gap:7px;min-width:0}
.bld-opt-kit{width:27px;height:31px;object-fit:contain;flex:0 0 auto}
.bld-opt-player span{min-width:0}
.bld-opt-player small{display:block;font-size:8px;color:var(--dim);font-weight:800}
.bld-opt-player b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:11px;color:var(--ink)}
.bld-opt-player em{font-style:normal;font-size:8.5px;color:var(--sub)}
.bld-opt-arrow{color:var(--dim);text-align:center}
.bld-opt-change>strong{font-size:10px;color:#087a55;background:#edf9f4;border-radius:7px;padding:4px 6px;white-space:nowrap}
.bld-opt-none{display:flex;flex-direction:column;gap:3px;background:var(--panel2);border:1px solid var(--line);border-radius:11px;padding:13px;margin:12px 0}
.bld-opt-none b{font-size:12px}.bld-opt-none span{font-size:10px;color:var(--sub)}
.bld-opt-footnote{font-size:9.5px;line-height:1.55;color:var(--sub);margin:11px 0}
.bld-opt-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:14px}
html[data-theme="dark"] .bld-optimize-btn{background:#102b22!important;border-color:#286b55!important;color:#70e1b5!important}
html[data-theme="dark"] .bld-opt-brandmark,html[data-theme="dark"] .bld-opt-scorecompare .bld-opt-gain,html[data-theme="dark"] .bld-opt-change>strong{background:#102b22;color:#70e1b5;border-color:#286b55}
@media(max-width:620px){.bld-opt-layer{padding:10px}.bld-opt-card{padding:18px;border-radius:15px}.bld-opt-scorecompare{grid-template-columns:1fr auto 1fr}.bld-opt-scorecompare .bld-opt-gain{grid-column:1/-1}.bld-opt-change{grid-template-columns:18px minmax(0,1fr) 14px minmax(0,1fr)}.bld-opt-change>strong{grid-column:4;justify-self:end}.bld-opt-actions{grid-template-columns:1fr}.bld-actions .bld-optimize-btn{order:3}}
@media (prefers-reduced-motion:reduce){.bld-opt-visual span,.bld-opt-visual b,.bld-opt-progress i::after{animation:none}}


/* Team Builder player actions: clicking a player opens captain/vice/remove controls. */
.bld-cap.vice{background:#6d5a7d}
.bld-rm{border:0;cursor:pointer;font-family:inherit;padding:0}
.bld-action-layer{position:fixed;inset:0;z-index:1200;display:flex;align-items:center;justify-content:center;padding:20px}
.bld-action-backdrop{position:absolute;inset:0;background:rgba(13,20,27,.42);backdrop-filter:blur(2px)}
.bld-action-sheet{position:relative;z-index:1;width:min(440px,calc(100vw - 28px));background:var(--panel);border:1px solid var(--line);border-radius:16px;box-shadow:0 24px 70px rgba(0,0,0,.22);overflow:hidden}
.bld-action-head{display:grid;grid-template-columns:52px 1fr 36px;align-items:center;gap:12px;padding:16px 18px;border-bottom:1px solid var(--line)}
.bld-action-kit{width:46px;height:52px;object-fit:contain}
.bld-action-head b{display:block;font-size:17px;color:var(--ink)}
.bld-action-head small{display:block;margin-top:3px;color:var(--sub);font-size:12px}
.bld-action-head>button{width:34px;height:34px;border:1px solid var(--line);border-radius:9px;background:var(--panel2);color:var(--sub);font-size:20px;cursor:pointer}
.bld-action-buttons{display:grid;gap:8px;padding:12px}
.bld-action-buttons>button{display:grid;grid-template-columns:36px 1fr;align-items:center;gap:11px;text-align:left;width:100%;padding:11px 12px;border:1px solid var(--line);border-radius:11px;background:var(--panel2);color:var(--ink);cursor:pointer;font-family:inherit}
.bld-action-buttons>button:hover:not(:disabled){border-color:var(--accent);background:var(--panel)}
.bld-action-buttons>button:disabled{opacity:.46;cursor:not-allowed}
.bld-action-buttons>button.danger{color:var(--bad)}
.bld-action-buttons b{display:block;font-size:13px}.bld-action-buttons small{display:block;margin-top:2px;color:var(--sub);font-size:10.5px}
.bld-role-dot{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#37003c;color:#fff;font-size:11px;font-weight:900}
.bld-role-dot.vice{background:#6d5a7d}.bld-role-dot.remove{background:rgba(220,53,69,.12);color:var(--bad)}
html[data-theme="dark"] .bld-action-backdrop{background:rgba(0,0,0,.62)}
@media(max-width:560px){.bld-action-layer{align-items:flex-end;padding:10px}.bld-action-sheet{width:100%;border-radius:16px 16px 12px 12px}}


/* V65 Team Builder: non-overlapping controls + neutral incomplete-squad state */
.bld-top{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  gap:14px 16px;
  align-items:center;
}
.bld-topmid{min-width:0}
.bld-actions{
  grid-column:1/-1;
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin-left:0;
  padding-top:11px;
  border-top:1px solid var(--line);
}
.bld-actions .bld-chip-control{order:0;flex:0 0 auto;min-width:150px}
.bld-actions .seg{order:1;flex:0 0 auto}
.bld-actions .bld-btn{order:2;flex:0 0 auto}
.bld-actions #bldClear{margin-left:auto}
.bld-chip-select{max-width:none;min-width:92px}

.bld-pitch.is-building{min-height:0}
.bld-build-state{
  width:100%;
  min-height:410px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:18px;
  padding:28px clamp(18px,4vw,46px);
  position:relative;
  z-index:2;
}
.bld-build-intro{text-align:center;max-width:620px;margin:0 auto}
.bld-build-intro>span{font-size:9px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;color:#0b8f62}
.bld-build-intro h3{margin:7px 0 5px;font:800 20px/1.2 'Inter',sans-serif;color:#102019}
.bld-build-intro p{margin:0;color:#355f50;font-size:11px;line-height:1.55}
.bld-build-progress-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;max-width:620px;width:100%;margin:0 auto}
.bld-build-progress{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border:1px solid rgba(255,255,255,.55);border-radius:10px;background:rgba(255,255,255,.18);color:#173d30;cursor:pointer;font-family:inherit}
.bld-build-progress:hover{background:rgba(255,255,255,.28)}
.bld-build-progress span{font-size:10px;font-weight:800}.bld-build-progress b{font-size:13px}
.bld-build-progress.complete{background:rgba(255,255,255,.36);border-color:rgba(255,255,255,.78)}
.bld-build-selected{width:100%;max-width:760px;margin:0 auto;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.42);border-radius:14px;padding:12px}
.bld-build-selected-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:9px;color:#173d30}.bld-build-selected-head b{font-size:11px}.bld-build-selected-head small{font-size:9px;font-weight:800}
.bld-build-player-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.bld-build-player{display:grid;grid-template-columns:38px minmax(0,1fr) 24px;align-items:center;gap:8px;min-width:0;padding:7px 8px;background:rgba(255,255,255,.86);border:1px solid rgba(255,255,255,.8);border-radius:9px;cursor:pointer;text-align:left}
.bld-build-player:hover{background:#fff}
.bld-build-kit{height:38px;display:flex;align-items:center;justify-content:center}.bld-build-kit .bld-kit{height:36px;max-width:38px}
.bld-build-copy{min-width:0}.bld-build-copy b{display:block;font-size:10.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#11201a}.bld-build-copy small{display:block;margin-top:2px;font-size:8.5px;color:#60746b}
.bld-build-remove{width:22px;height:22px;border:0;border-radius:50%;background:#eef2ef;color:#52665d;font-size:15px;line-height:1;cursor:pointer}
.bld-build-remove:hover{background:#fee8e8;color:#b42318}
.bld-build-empty{max-width:520px;width:100%;margin:0 auto;text-align:center;padding:18px;border:1px dashed rgba(255,255,255,.62);border-radius:12px;background:rgba(255,255,255,.12);color:#234a3b}
.bld-build-empty b{display:block;font-size:12px;margin-bottom:4px}.bld-build-empty span{font-size:10px}

html[data-theme="dark"] .bld-build-player{background:rgba(19,29,25,.93);border-color:rgba(255,255,255,.13)}
html[data-theme="dark"] .bld-build-player:hover{background:#19261f}
html[data-theme="dark"] .bld-build-copy b{color:#eef6f2}
html[data-theme="dark"] .bld-build-copy small{color:#a8b8b0}

@media(max-width:900px){
  .bld-top{grid-template-columns:auto minmax(0,1fr)}
  .bld-actions #bldClear{margin-left:0}
  .bld-build-player-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:620px){
  .bld-top{grid-template-columns:1fr}
  .bld-gauge{display:none}
  .bld-actions{grid-column:1}
  .bld-actions .bld-chip-control{width:auto;flex:1 1 150px}
  .bld-actions .seg{flex:1 1 auto}
  .bld-actions .seg button{flex:1}
  .bld-actions .bld-btn{flex:1 1 140px}
  .bld-build-state{min-height:360px;padding:22px 12px}
  .bld-build-progress-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .bld-build-player-grid{grid-template-columns:1fr}
}


/* V67 Team Builder: larger official-FPL-style pitch and cards */
.bld-pitch{
  min-height:560px;
  padding:30px 18px 24px;
  background:#168f4d!important;
  border-color:#117640!important;
  border-radius:14px;
}
.bld-pitch::before{inset:16px;border-color:rgba(255,255,255,.68)!important}
.bld-pitch .prow{
  min-height:116px;
  gap:14px;
  align-items:flex-end;
}
.bld-pitch .bld-slot{
  width:116px;
}
.bld-kit-wrap{
  height:72px;
  margin-bottom:4px;
}
.bld-kit{
  height:70px;
  max-width:76px;
  filter:drop-shadow(0 4px 7px rgba(0,0,0,.28));
}
.bld-jersey{
  width:54px;
  height:54px;
  border-radius:11px;
  font-size:11px;
}
.bld-pl-nm{
  min-height:28px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  padding:5px 6px;
  font-size:12px;
  line-height:1.05;
  border-radius:5px 5px 0 0;
}
.bld-pl-price{
  padding:4px 5px;
  font-size:10.5px;
}
.bld-fx-run{
  gap:2px;
  padding:4px;
}
.bld-fx{
  height:17px;
  font-size:7px;
}
.bld-cap{
  width:18px;
  height:18px;
  flex:none;
  font-size:9px;
}
.bld-rm{
  top:-4px;
  right:8px;
  width:20px;
  height:20px;
}
.bld-bench{
  margin-top:10px;
  padding:13px 16px 15px;
}
.bld-bench-row{
  gap:16px;
}
.bld-bench-row .bld-slot{
  max-width:126px;
}
.bld-slot.on-bench .bld-kit-wrap{height:62px}
.bld-slot.on-bench .bld-kit{height:60px;max-width:68px}

@media(max-width:1180px){
  .bld-pitch{min-height:520px;padding-left:10px;padding-right:10px}
  .bld-pitch .bld-slot{width:104px}
  .bld-pitch .prow{gap:8px;min-height:108px}
  .bld-kit-wrap{height:64px}.bld-kit{height:62px;max-width:68px}
  .bld-pl-nm{font-size:11px}
}
@media(max-width:720px){
  .bld-pitch{min-height:460px;padding:20px 4px 16px}
  .bld-pitch .bld-slot{width:76px}
  .bld-pitch .prow{gap:3px;min-height:94px}
  .bld-kit-wrap{height:52px}.bld-kit{height:50px;max-width:54px}
  .bld-pl-nm{min-height:23px;padding:4px 3px;font-size:9px}
  .bld-pl-price{font-size:8.5px;padding:3px}
  .bld-fx-run{padding:2px;gap:1px}.bld-fx{height:12px;font-size:0}
  .bld-bench-row{gap:5px}
  .bld-bench-row .bld-slot{max-width:86px}
}


/* V68 Team Builder: larger official-style pitch/player presentation */
.bld-pitch{
  min-height:690px;
  padding:36px 22px 30px;
  background:#0f8a43!important;
  border-color:#08743a!important;
  border-radius:16px;
}
.bld-pitch::before{inset:18px;border-width:2px;border-color:rgba(255,255,255,.82)!important}
.bld-pitch .prow{
  min-height:142px;
  gap:18px;
  align-items:flex-end;
}
.bld-pitch .bld-slot{
  width:134px;
  min-height:126px;
  position:relative;
  padding-top:24px;
}
.bld-kit-wrap{
  height:86px;
  margin-bottom:0;
  display:flex;
  align-items:flex-end;
  justify-content:center;
}
.bld-kit{
  height:84px;
  max-width:94px;
  object-fit:contain;
  filter:drop-shadow(0 5px 9px rgba(0,0,0,.28));
}
.bld-jersey{width:62px;height:62px;border-radius:12px;font-size:12px}
.bld-price-badge{
  position:absolute;
  top:2px;
  left:50%;
  transform:translateX(-50%);
  z-index:4;
  min-width:58px;
  height:25px;
  padding:0 9px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:5px 5px 2px 2px;
  background:#37003c;
  color:#fff;
  font-size:12px;
  line-height:1;
  font-weight:800;
  font-family:'Inter',sans-serif;
  box-shadow:0 2px 6px rgba(0,0,0,.18);
}
.bld-pl-nm{
  min-height:31px;
  padding:6px 7px;
  font-size:13px;
  line-height:1.05;
  border-radius:4px 4px 0 0;
  background:#fff!important;
  color:#27002b!important;
  border:1px solid rgba(55,0,60,.12)!important;
  border-bottom:0!important;
}
.bld-fx-run{
  min-height:23px;
  padding:4px 5px 5px;
  gap:2px;
  border-radius:0 0 4px 4px;
  background:#fff;
  border:1px solid rgba(55,0,60,.12);
  border-top:0;
}
.bld-fx{height:15px;font-size:7.5px;border-radius:2px}
.bld-cap{
  width:20px;
  height:20px;
  font-size:10px;
  background:#37003c;
  color:#fff;
  border:0;
}
.bld-cap.vice{background:#6f6571;color:#fff}
.bld-rm{
  top:4px;
  right:4px;
  width:21px;
  height:21px;
  z-index:5;
  background:#37003c;
  color:#fff;
  border-color:#fff;
  font-size:11px;
}
.bld-bench{margin-top:12px;padding:16px 18px 18px}
.bld-bench-row{gap:20px}
.bld-bench-row .bld-slot{max-width:142px;min-height:120px;padding-top:24px;position:relative}
.bld-slot.on-bench .bld-kit-wrap{height:78px}
.bld-slot.on-bench .bld-kit{height:76px;max-width:86px}
.bld-slot.on-bench .bld-price-badge{top:2px}
html[data-theme="dark"] .bld-price-badge{background:#00ff87;color:#07130e}
html[data-theme="dark"] .bld-pl-nm{background:#f6f7f8!important;color:#27002b!important}
html[data-theme="dark"] .bld-fx-run{background:#f6f7f8}

@media(max-width:1280px){
  .bld-pitch{min-height:620px;padding:30px 12px 24px}
  .bld-pitch .prow{min-height:128px;gap:11px}
  .bld-pitch .bld-slot{width:118px;min-height:114px}
  .bld-kit-wrap{height:76px}.bld-kit{height:74px;max-width:82px}
  .bld-pl-nm{font-size:11.5px;min-height:28px}
  .bld-price-badge{min-width:52px;height:23px;font-size:11px}
}
@media(max-width:900px){
  .bld-pitch{min-height:560px;padding:25px 6px 20px}
  .bld-pitch .prow{min-height:112px;gap:5px}
  .bld-pitch .bld-slot{width:94px;min-height:102px;padding-top:21px}
  .bld-kit-wrap{height:65px}.bld-kit{height:63px;max-width:70px}
  .bld-pl-nm{font-size:10px;padding:5px 3px;min-height:25px}
  .bld-price-badge{min-width:46px;height:20px;padding:0 6px;font-size:9.5px}
  .bld-fx-run{padding:3px;gap:1px}.bld-fx{font-size:0;height:12px}
  .bld-bench-row{gap:8px}
  .bld-bench-row .bld-slot{max-width:104px}
}
@media(max-width:620px){
  .bld-pitch{min-height:480px;padding:20px 2px 16px}
  .bld-pitch .prow{min-height:96px;gap:2px}
  .bld-pitch .bld-slot{width:74px;min-height:90px;padding-top:18px}
  .bld-kit-wrap{height:53px}.bld-kit{height:51px;max-width:56px}
  .bld-pl-nm{font-size:8.5px;min-height:22px;padding:4px 2px}
  .bld-price-badge{min-width:40px;height:18px;font-size:8.5px}
  .bld-rm{width:18px;height:18px;font-size:9px;right:1px}
}

/* Planner official-style size pass */
.planner-fpl-pitch{
  background:#169447!important;
  border-color:#087a3f!important;
}
.planner-pitch-main{position:relative}
.planner-pitch-price{
  position:absolute;
  left:50%;
  top:-7px;
  transform:translateX(-50%);
  z-index:3;
  min-width:46px;
  padding:3px 7px;
  border-radius:999px;
  background:#37003c;
  color:#fff;
  border:1px solid rgba(255,255,255,.28);
  box-shadow:0 2px 6px rgba(0,0,0,.18);
  font-size:9px;
  line-height:1;
  font-weight:800;
  white-space:nowrap;
}
.planner-bench-row .planner-pitch-price{background:#53616d}

@media(min-width:1200px){
  .planner-layout-focus{
    grid-template-columns:minmax(820px,2.55fr) minmax(350px,.82fr)!important;
    gap:14px!important;
  }
  .planner-main-focus{padding:12px!important}
  .planner-layout-focus .planner-fpl-pitch{
    min-height:735px!important;
    padding:46px 36px 38px!important;
    gap:30px!important;
    border-radius:14px!important;
  }
  .planner-layout-focus .planner-pitch-row{
    gap:24px!important;
    min-height:126px!important;
  }
  .planner-layout-focus .planner-pitch-player{
    width:154px!important;
    flex-basis:154px!important;
  }
  .planner-layout-focus .planner-pitch-kit{height:80px!important}
  .planner-layout-focus .planner-pitch-kit-img{
    height:78px!important;
    max-width:88px!important;
  }
  .planner-layout-focus .planner-pitch-name{
    font-size:13.5px!important;
    padding:6px 8px!important;
    border-radius:5px 5px 0 0!important;
  }
  .planner-layout-focus .planner-pitch-meta{
    min-height:35px!important;
    padding:5px 5px!important;
  }
  .planner-layout-focus .planner-pitch-price{
    top:-4px;
    min-width:54px;
    padding:4px 8px;
    font-size:10px;
  }
  .planner-layout-focus .planner-pitch-meta .planner-fixture-run .pl-fixture{
    font-size:8px!important;
    padding:5px 2px!important;
  }
  .planner-layout-focus .planner-pitch-row-count-5{
    gap:12px!important;
    padding-inline:8px!important;
  }
  .planner-layout-focus .planner-pitch-row-count-5>.planner-pitch-player,
  .planner-layout-focus .planner-pitch-row-count-5>.planner-transfer-empty,
  .planner-layout-focus .planner-pitch-row-count-5>.planner-pitch-empty{
    max-width:142px!important;
  }
  .planner-layout-focus .planner-bench-row{
    gap:18px!important;
  }
  .planner-layout-focus .planner-bench-row .planner-pitch-player{
    width:145px!important;
    flex-basis:145px!important;
  }
  .planner-layout-focus .planner-bench-row .planner-pitch-kit{height:70px!important}
  .planner-layout-focus .planner-bench-row .planner-pitch-kit-img{
    height:68px!important;
    max-width:77px!important;
  }
}

@media(min-width:901px) and (max-width:1199px){
  .planner-fpl-pitch{min-height:610px!important;padding:36px 18px 30px!important}
  .planner-pitch-player{width:112px!important;flex-basis:112px!important}
  .planner-pitch-kit{height:58px!important}.planner-pitch-kit-img{height:57px!important;max-width:64px!important}
  .planner-pitch-name{font-size:10.5px!important;padding:4px 5px!important}
  .planner-pitch-price{font-size:8px;min-width:43px;padding:3px 6px}
}

html[data-theme="dark"] .planner-fpl-pitch{background:#11783a!important;border-color:#0b6432!important}

/* Planner live/final Gameweek scoring card */
.planner-gw-result{margin:12px 0 16px;border:1px solid var(--line);border-radius:12px;background:var(--panel);overflow:hidden}
.planner-result-head{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:15px 16px;border-bottom:1px solid var(--line)}
.planner-result-head h3{margin:5px 0 3px;font-size:17px;color:var(--ink)}
.planner-result-head p{margin:0;color:var(--sub);font-size:11px;line-height:1.45}
.planner-result-status{display:inline-flex;align-items:center;border-radius:999px;padding:4px 8px;font-size:8px;font-weight:800;letter-spacing:.55px;text-transform:uppercase}
.planner-result-status.live{background:#fff3d8;color:#8a5b00;border:1px solid #f0d086}
.planner-result-status.final{background:#e6f7ef;color:#08774d;border:1px solid #a9dfc8}
.planner-result-total{text-align:right;min-width:120px}
.planner-result-total span{display:block;color:var(--sub);font-size:8.5px;text-transform:uppercase;letter-spacing:.5px;font-weight:800}
.planner-result-total b{display:block;font-size:30px;line-height:1;color:var(--ink);margin-top:4px}
.planner-result-total small{display:block;color:var(--dim);font-size:9px;margin-top:4px}
.planner-result-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:0}
.planner-result-grid>div{padding:12px 13px;border-right:1px solid var(--line);min-width:0}
.planner-result-grid>div:last-child{border-right:0}
.planner-result-grid span{display:block;color:var(--sub);font-size:8px;text-transform:uppercase;letter-spacing:.45px;font-weight:800}
.planner-result-grid b{display:block;color:var(--ink);font-size:15px;margin-top:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.planner-result-grid small{display:block;color:var(--dim);font-size:9px;margin-top:3px;line-height:1.35}
.planner-result-grid .positive b{color:#08774d}.planner-result-grid .negative b{color:#bd3650}
.planner-result-note{margin:0 13px 13px;padding:9px 10px;border-radius:8px;background:#fff6e4;border:1px solid #f1d699;color:#72531b;font-size:9.5px;line-height:1.45}
.planner-result-note.good{background:#edf8f3;border-color:#b8dfcf;color:#176b4c}
.planner-result-loading,.planner-result-empty{padding:15px 16px;color:var(--sub);font-size:11px;display:flex;align-items:center;gap:8px}
.planner-result-empty{flex-direction:column;align-items:flex-start;gap:3px}.planner-result-empty b{color:var(--ink)}
html[data-theme="dark"] .planner-gw-result{background:#171f25;border-color:#33404a}
html[data-theme="dark"] .planner-result-status.live{background:#332a18;color:#ffd98c;border-color:#65522b}
html[data-theme="dark"] .planner-result-status.final{background:#102c22;color:#8fe0bc;border-color:#245a46}
html[data-theme="dark"] .planner-result-note{background:#2a2418;border-color:#5b4a27;color:#e5c77f}
html[data-theme="dark"] .planner-result-note.good{background:#10271f;border-color:#275542;color:#9fdec2}
@media(max-width:1100px){.planner-result-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.planner-result-grid>div:nth-child(3){border-right:0}.planner-result-grid>div:nth-child(-n+3){border-bottom:1px solid var(--line)}}
@media(max-width:700px){.planner-result-head{align-items:flex-start}.planner-result-total b{font-size:26px}.planner-result-grid{grid-template-columns:1fr 1fr}.planner-result-grid>div{border-bottom:1px solid var(--line)}.planner-result-grid>div:nth-child(odd){border-right:1px solid var(--line)}.planner-result-grid>div:nth-child(even){border-right:0}.planner-result-grid>div:nth-last-child(-n+2){border-bottom:0}}
/* Player Compare stat emphasis + portraits */
.transfer-head-visual{display:flex;align-items:center;justify-content:center;width:52px;min-width:52px}
.transfer-face{width:46px;height:46px;border-radius:50%;object-fit:cover;background:#eef3f1;border:1px solid var(--line);flex:0 0 46px}
.face-fb.transfer-face{display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:800;color:#fff}
.transfer-compare-table td.stat-better{background:#e8f7ee;color:#0f5132;font-weight:800}
html[data-theme="dark"] .transfer-compare-table td.stat-better{background:rgba(52,211,153,.16)!important;color:#b7f7d6!important}
html[data-theme="dark"] .transfer-face{background:var(--panel2)!important;border-color:var(--line)!important}
@media(max-width:760px){.transfer-face{width:38px;height:38px;flex-basis:38px}.transfer-head-visual{width:42px;min-width:42px}}

/* Player Compare headshot layout: face replaces the club shirt to avoid overlap. */
.transfer-player-head{grid-template-columns:52px minmax(0,1fr) auto!important;column-gap:12px}
.transfer-player-head>div:nth-child(2){min-width:0}
.transfer-player-head h3,.transfer-player-head p{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:760px){.transfer-player-head{grid-template-columns:42px minmax(0,1fr) auto!important;column-gap:8px}}


/* ===== Price Change Prediction (FPL Peek estimate) ===== */
.price-pressure-note{display:flex;align-items:flex-start;gap:10px;flex-wrap:wrap;padding:13px 15px;border:1px solid var(--line);border-radius:12px;background:var(--panel2);margin-bottom:16px}
.price-pressure-note b{font-size:13px;color:var(--ink)}
.price-pressure-note span{font-size:12px;color:var(--sub);line-height:1.5}
.pressure-summary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-bottom:18px}
.pressure-summary>div{background:var(--panel);border:1px solid var(--line);border-radius:11px;padding:12px 13px}
.pressure-summary b{display:block;font-family:'Inter';font-size:16px;color:var(--ink)}
.pressure-summary span{display:block;margin-top:3px;font-size:10px;text-transform:uppercase;letter-spacing:.35px;color:var(--dim)}
.pressure-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;align-items:start}
.pressure-column{min-width:0}
.pressure-column-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 14px;border-radius:12px;margin-bottom:10px}
.pressure-column-head>div{display:flex;align-items:center;gap:10px}
.pressure-column-head b{display:block;font-size:14px}
.pressure-column-head small{display:block;margin-top:2px;font-size:10.5px;opacity:.75}
.pressure-column-head>span{font-size:11px;font-weight:700;opacity:.7}
.pressure-column.rise .pressure-column-head{background:#edf8f2;color:#08774d}
.pressure-column.fall .pressure-column-head{background:#fff2f4;color:#ba4054}
.pressure-arrow{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:50%;font-size:22px;font-weight:900;background:rgba(255,255,255,.72)}
.pressure-row{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(130px,.8fr) 112px;align-items:center;gap:12px;background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:12px 13px;margin-bottom:8px}
.pressure-player{display:flex;align-items:center;gap:10px;min-width:0}
.pressure-kit{width:34px;height:40px;object-fit:contain;flex:none}
.pressure-player>div{min-width:0}
.pressure-player b{display:block;font-size:13.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pressure-player small,.pressure-signals small{display:block;font-size:10.5px;color:var(--dim);margin-top:3px;line-height:1.35}
.pressure-signals b{font-size:12px;color:var(--ink)}
.pressure-score{display:flex;align-items:center;justify-content:flex-end;gap:7px;text-align:right}
.pressure-score-arrow{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:50%;font-size:19px;font-weight:900}
.pressure-row.rise .pressure-score-arrow{background:#e5f7ee;color:#08774d}
.pressure-row.fall .pressure-score-arrow{background:#ffedf0;color:#ba4054}
.pressure-score b{display:block;font-family:'Inter';font-size:18px;line-height:1}
.pressure-row.rise .pressure-score b{color:#08774d}
.pressure-row.fall .pressure-score b{color:#ba4054}
.pressure-score em{font-style:normal;font-size:9px;color:var(--dim);margin-left:1px}
.pressure-score small{display:block;font-size:9.5px;color:var(--dim);margin-top:4px;white-space:nowrap}
.pressure-more{margin:10px auto 4px;display:flex;justify-content:center;max-width:260px}
.price-pressure-method{margin-top:18px;padding:14px 16px;border-top:1px solid var(--line);color:var(--sub)}
.price-pressure-method b{font-size:12px;color:var(--ink)}
.price-pressure-method p{font-size:11px;line-height:1.6;margin:5px 0 0}
@media(max-width:1050px){.pressure-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.pressure-grid{grid-template-columns:1fr}.pressure-row{grid-template-columns:minmax(0,1.4fr) minmax(120px,.8fr) 108px}}
@media(max-width:640px){.pressure-summary{grid-template-columns:1fr 1fr}.pressure-row{grid-template-columns:minmax(0,1fr) 92px}.pressure-signals{grid-column:1/-1;grid-row:2}.pressure-score{grid-column:2;grid-row:1}.pressure-player small{white-space:normal}.pressure-kit{width:30px;height:36px}}
html[data-theme="dark"] .pressure-column.rise .pressure-column-head{background:rgba(8,119,77,.18);color:#86d9b7}
html[data-theme="dark"] .pressure-column.fall .pressure-column-head{background:rgba(186,64,84,.18);color:#ff9bad}
html[data-theme="dark"] .pressure-arrow{background:rgba(255,255,255,.08)}
html[data-theme="dark"] .pressure-row.rise .pressure-score-arrow{background:rgba(8,119,77,.22);color:#86d9b7}
html[data-theme="dark"] .pressure-row.fall .pressure-score-arrow{background:rgba(186,64,84,.22);color:#ff9bad}
html[data-theme="dark"] .pressure-row.rise .pressure-score b{color:#86d9b7}
html[data-theme="dark"] .pressure-row.fall .pressure-score b{color:#ff9bad}

/* FPL Peek Team Gameweek navigator */
.peek-gw-nav{display:flex;align-items:center;justify-content:center;gap:10px;margin:0 0 14px;min-width:0}
.peek-gw-tabs{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;max-width:100%;padding:2px}
.peek-gw-tabs::-webkit-scrollbar{display:none}
.peek-gw-tabs button,.peek-gw-arrow{border:1px solid var(--border,#dfe5e3);background:var(--card,#fff);color:var(--text,#101418);border-radius:12px;min-height:44px;font:inherit;cursor:pointer}
.peek-gw-tabs button{display:grid;gap:2px;min-width:84px;padding:8px 13px;text-align:center}
.peek-gw-tabs button b{font-size:13px}.peek-gw-tabs button span{font-size:10px;color:var(--muted,#7b8790);text-transform:uppercase;letter-spacing:.05em}
.peek-gw-tabs button.active{border-color:#0a9b69;background:#eaf9f3;color:#087d58;box-shadow:inset 0 0 0 1px rgba(10,155,105,.08)}
.peek-gw-tabs button.active span{color:#087d58}
.peek-gw-arrow{width:44px;min-width:44px;font-size:24px;line-height:1}
.peek-gw-arrow:disabled{opacity:.35;cursor:not-allowed}
@media(max-width:640px){.peek-gw-nav{justify-content:stretch}.peek-gw-tabs{flex:1}.peek-gw-tabs button{min-width:76px;padding:7px 10px}}

/* =========================================================
   One To Watch - restored responsive portrait cards
   ========================================================= */
.otw-note{display:none!important}
.otw-context{display:flex;align-items:flex-start;justify-content:space-between;gap:22px;border:1px solid var(--line);border-radius:16px;background:var(--card);padding:16px 18px;margin-bottom:16px}
.otw-context>div{display:flex;align-items:center;gap:10px;white-space:nowrap}
.otw-context b{font-size:15px}
.otw-context p{margin:0;color:var(--muted);font-size:12px;max-width:720px;line-height:1.5}
.otw-gw{display:inline-flex;align-items:center;padding:5px 9px;border-radius:999px;background:var(--accent-soft,#e9f7f1);color:var(--accent,#07865f);font-size:11px;font-weight:900}
.otw-loading{display:flex;gap:12px;align-items:center;border:1px solid var(--line);border-radius:16px;padding:20px;background:var(--card)}
.otw-loading b,.otw-loading small{display:block}
.otw-loading small{color:var(--muted);margin-top:3px}

.otw-grid{display:grid;grid-template-columns:repeat(3,minmax(250px,1fr));gap:16px;align-items:stretch}
.otw-card{position:relative;min-height:500px;display:flex;flex-direction:column;border:1px solid var(--line);border-radius:20px;background:var(--card);padding:0;overflow:hidden;box-shadow:0 5px 18px rgba(17,24,39,.035)}
.otw-player-top{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:8px;min-height:245px;padding:22px 18px 16px;text-align:center;background:linear-gradient(135deg,color-mix(in srgb,var(--accent-soft,#e9f7f1) 72%,var(--card) 28%),var(--card) 68%)}
.otw-player-visual{width:100%;height:132px;display:flex;align-items:flex-end;justify-content:center}
.otw-face-img{height:128px;max-width:128px;object-fit:contain;filter:drop-shadow(0 7px 6px rgba(0,0,0,.12))}
.otw-player-visual .face-fb{width:92px;height:92px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:28px;font-weight:900;color:#fff}
.otw-player-copy{width:100%;min-width:0}
.otw-player-line{display:flex;align-items:center;justify-content:center;gap:7px;color:var(--muted);font-size:10px;font-weight:700}
.otw-kit{width:24px;height:30px;object-fit:contain}
.otw-player-copy h3{margin:5px 0 2px;font-size:20px;white-space:normal;overflow:visible;text-overflow:clip;line-height:1.1}
.otw-price{font-size:13px;font-weight:800;color:var(--muted)}
.otw-gw-points{position:absolute;right:12px;top:12px;min-width:62px;text-align:center;padding:8px 7px;border-radius:13px;background:var(--card);border:1px solid var(--line)}
.otw-gw-points small,.otw-gw-points b,.otw-gw-points span{display:block}
.otw-gw-points small{font-size:9px;color:var(--muted);font-weight:800}
.otw-gw-points b{font-size:24px;line-height:1.05;color:var(--accent,#07865f)}
.otw-gw-points span{font-size:9px;color:var(--muted)}
.otw-metrics{display:grid;grid-template-columns:repeat(2,1fr);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.otw-metrics>div{padding:10px 6px;text-align:center;border-right:1px solid var(--line)}
.otw-metrics>div:nth-child(2),.otw-metrics>div:nth-child(4){border-right:0}
.otw-metrics>div:nth-child(-n+2){border-bottom:1px solid var(--line)}
.otw-metrics span,.otw-metrics b{display:block}
.otw-metrics span{font-size:9px;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);font-weight:800}
.otw-metrics b{font-size:13px;margin-top:2px}
.otw-availability{display:flex;align-items:center;gap:7px;margin:10px 13px 0;padding:8px 10px;border-radius:10px;background:#fff8e8;color:#8a6413;font-size:11px;font-weight:700}
.otw-fixtures{margin-top:auto;padding:12px 12px 14px}
.otw-fixtures-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}
.otw-fixtures-title b{font-size:11px}
.otw-fixtures-title span{font-size:9px;text-transform:uppercase;color:var(--muted);font-weight:800}
.otw-fx-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px}
.otw-fx{min-width:0;border-radius:9px;padding:7px 2px;text-align:center;color:#17221d}
.otw-fx span,.otw-fx b,.otw-fx small{display:block}
.otw-fx span{font-size:8px;opacity:.7}
.otw-fx b{font-size:11px}
.otw-fx small{font-size:7.5px;white-space:nowrap}
.otw-fx.fdr1{background:#72dfb0}.otw-fx.fdr2{background:#a7e9cb}.otw-fx.fdr3{background:#e4e7ec}.otw-fx.fdr4{background:#f3a7b8}.otw-fx.fdr5{background:#db6e88;color:#fff}

@media(max-width:1100px){.otw-grid{grid-template-columns:repeat(2,minmax(250px,1fr))}}
@media(max-width:900px){.otw-context{flex-direction:column;gap:7px}.otw-context>div{white-space:normal}}
@media(max-width:700px){.otw-grid{grid-template-columns:1fr}.otw-card{max-width:390px;width:100%;margin:0 auto}.otw-player-top{min-height:230px}}
@media(max-width:520px){.otw-player-top{padding:18px 12px 14px}.otw-player-visual{height:118px}.otw-face-img{height:114px;max-width:114px}.otw-player-copy h3{font-size:18px}.otw-gw-points{min-width:58px;padding:7px 5px}.otw-gw-points b{font-size:22px}.otw-fx-grid{gap:3px}.otw-fx{padding:6px 1px}.otw-fx small{font-size:7px}}

/* ===== Home loading states ===== */
.home-loading-state{
  min-height:92px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:9px;
  color:var(--muted,#7a8796);
  font-size:13px;
  text-align:center;
}
.home-soccer-loader{
  width:42px;
  height:42px;
  display:block;
  object-fit:contain;
  animation:homeLoaderFloat 1.15s ease-in-out infinite;
  filter:drop-shadow(0 5px 9px rgba(0,0,0,.08));
}
#homeGameweek .home-loading-state{min-height:70px;}
#homeFixtures .home-loading-state{min-height:110px;}
@keyframes homeLoaderFloat{
  0%,100%{transform:translateY(0) scale(1)}
  50%{transform:translateY(-5px) scale(1.035)}
}
@media (prefers-reduced-motion:reduce){
  .home-soccer-loader{animation:none}
}

/* Home: completed GW recap inside upcoming Gameweek card */
.home-gw-recap-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:12px}
.home-gw-recap-grid>div{min-width:0;padding:10px 11px;border:1px solid var(--line,#dde4e8);border-radius:10px;background:var(--soft,#f7f9fa)}
.home-gw-recap-grid span,.home-gw-performers>div>span,.home-gw-injury-wrap>span{display:block;font-size:10px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--muted,#718096);margin-bottom:5px}
.home-gw-recap-grid b{font-size:20px;line-height:1.05}.home-gw-recap-grid .home-gw-chip-value{font-size:13px;line-height:1.2}
.home-gw-performers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:8px}
.home-gw-performers>div{min-width:0;padding:9px 11px;border:1px solid var(--line,#dde4e8);border-radius:10px}
.home-gw-player{display:flex;align-items:center;gap:7px;min-width:0}.home-gw-player .home-gw-mini-kit{width:24px;height:30px;object-fit:contain;flex:0 0 auto}.home-gw-player>span{min-width:0}.home-gw-player b{display:block;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.home-gw-player small{display:block;font-size:11px;color:var(--muted,#718096);margin-top:1px}
.home-gw-injury-wrap{margin-top:8px;padding:9px 11px;border:1px solid var(--line,#dde4e8);border-radius:10px;background:rgba(245,158,11,.045)}
.home-gw-injury-list{display:flex;gap:6px;flex-wrap:wrap}.home-gw-injury{display:inline-flex;align-items:baseline;gap:5px;padding:5px 8px;border-radius:999px;background:#fff4e5;border:1px solid #f7c97f;min-width:0}.home-gw-injury b{font-size:11px}.home-gw-injury small{font-size:10px;color:#8a5b13}.home-gw-clear{font-size:11px;color:var(--muted,#718096)}
@media(max-width:700px){.home-gw-recap-grid{grid-template-columns:repeat(3,minmax(80px,1fr));overflow-x:auto}.home-gw-performers{grid-template-columns:1fr}.home-gw-recap-grid b{font-size:17px}}

/* Current Gameweek leaders */
.home-gw-status-strip{display:flex;gap:8px;margin:0 0 14px;overflow-x:auto;scrollbar-width:none}.home-gw-status-strip::-webkit-scrollbar{display:none}.home-gw-status-strip>.home-loading-state{width:100%;min-height:64px}.home-gw-status-window{flex:1 1 0;min-width:145px;padding:10px 12px;border:1px solid var(--line);border-radius:11px;background:var(--panel)}.home-gw-status-window span,.home-gw-status-window b{display:block}.home-gw-status-window span{font-size:8px;color:var(--dim);text-transform:uppercase;letter-spacing:.06em;font-weight:850}.home-gw-status-window b{margin-top:4px;font-size:13px}.home-gw-status-window.primary b{color:#08774d}.home-gw-status-window.running{border-color:#f0c675;background:#fff9e9}.home-gw-status-window.running b,.home-gw-status-window.live b{color:#a26208}.home-gw-status-window.complete{border-color:#a9d9c7;background:#effaf5}.home-gw-status-window.complete b{color:#08774d}.home-gw-status-window.upcoming b{color:#52606d}.home-gw-status-window b i{display:inline-block;width:6px;height:6px;margin-right:6px;border-radius:50%;background:currentColor;vertical-align:1px}.home-gw-status-window.running b i,.home-gw-status-window.live b i{animation:homeLivePulse 1.45s ease-out infinite}@media(max-width:620px){.home-gw-status-window{flex:0 0 138px}}
.home-live-wrap{margin:0 0 14px;border:1px solid #f1b7bf;border-radius:14px;background:linear-gradient(135deg,#fff7f8,#fff);overflow:hidden;box-shadow:0 5px 18px rgba(151,30,50,.045)}.home-live-wrap[hidden]{display:none!important}.home-live-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px;border-bottom:1px solid #f6d9de}.home-live-title,.home-live-head-actions{display:flex;align-items:center;gap:8px}.home-live-title b{font-size:10px;letter-spacing:.09em;color:#bc2942}.home-live-headline,.home-live-head-actions small{font-size:10px;color:var(--sub)}.home-live-dot{width:8px;height:8px;border-radius:50%;background:#e33450;box-shadow:0 0 0 4px rgba(227,52,80,.12);animation:homeLivePulse 1.45s ease-out infinite}.home-live-nav{width:27px;height:27px;border:1px solid #f0c9cf;border-radius:50%;display:grid;place-items:center;background:var(--panel);color:#a82b40;cursor:pointer}.home-live-tape{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:0}.home-live-tape.is-carousel{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none}.home-live-tape.is-carousel::-webkit-scrollbar{display:none}.home-live-match{min-width:0;padding:12px 14px;border:0;border-right:1px solid #f6d9de;background:transparent;color:var(--ink);font:inherit;text-align:left;cursor:pointer}.home-live-tape.is-carousel .home-live-match{flex:0 0 min(360px,90%);scroll-snap-align:start}.home-live-match:last-child{border-right:0}.home-live-match:hover{background:rgba(227,52,80,.035)}.home-live-match-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.home-live-minute{display:flex;align-items:center;gap:5px;font-size:8px;font-weight:900;color:#c02741;letter-spacing:.05em}.home-live-minute i{font-size:5px}.home-live-details{font-size:8px;color:var(--dim)}.home-live-scoreboard{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:9px}.home-live-side{display:flex;align-items:center;gap:7px;min-width:0}.home-live-side-away{justify-content:flex-end;text-align:right}.home-live-kit{width:31px;height:36px;object-fit:contain;flex:none}.home-live-teammeta{min-width:0}.home-live-teammeta>b{display:block;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.home-live-score{display:flex;align-items:center;gap:5px;font-size:17px}.home-live-score span{color:var(--dim)}.home-live-scorers{display:flex;align-items:center;gap:4px;margin-top:3px;font-size:8px;color:var(--sub);min-width:0}.home-live-scorers span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.home-live-discipline{display:flex;gap:4px;margin-top:3px}.home-live-side-away .home-live-scorers,.home-live-side-away .home-live-discipline{justify-content:flex-end}.home-live-card{display:flex;align-items:center;gap:3px;min-width:0;font-size:7px;color:var(--dim)}.home-live-card i{width:6px;height:9px;border-radius:1px;flex:none}.home-live-card-yellow i{background:#f4c430}.home-live-card-red i{background:#df3048}.home-live-card b{font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}@keyframes homeLivePulse{0%{box-shadow:0 0 0 0 rgba(227,52,80,.3)}70%{box-shadow:0 0 0 7px rgba(227,52,80,0)}100%{box-shadow:0 0 0 0 rgba(227,52,80,0)}}
.home-gw-pill.live{display:inline-flex;align-items:center;gap:6px}.home-gw-pill.live i{width:6px;height:6px;border-radius:50%;background:currentColor;animation:homeLivePulse 1.45s ease-out infinite}
.home-gw-leaders{margin:0 0 18px;padding:16px 18px;border:1px solid var(--line);border-radius:14px;background:var(--panel);overflow:hidden}
.home-gw-leaders-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:12px}.home-gw-leaders-head span{font-size:9px;text-transform:uppercase;letter-spacing:.08em;font-weight:850;color:var(--dim)}.home-gw-leaders-head h3{font-size:17px;margin:3px 0 0}.home-gw-leaders-link{border:0;background:transparent;color:#08774d;font:inherit;font-size:11px;font-weight:800;cursor:pointer}
.home-gw-leader-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.home-gw-leader-card{position:relative;display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:8px;min-width:0;padding:10px;border:1px solid var(--line);border-radius:11px;background:var(--panel2)}.home-gw-leader-rank{position:absolute;left:5px;top:5px;z-index:1;width:17px;height:17px;display:grid;place-items:center;border-radius:50%;background:var(--ink);color:var(--panel);font-size:8px;font-weight:900}.home-gw-leader-face{width:42px;height:42px;border-radius:50%;object-fit:cover;background:var(--panel);border:1px solid var(--line)}.face-fb.home-gw-leader-face{display:grid;place-items:center;color:#fff;font-size:11px;font-weight:900}.home-gw-leader-copy{min-width:0}.home-gw-leader-copy b,.home-gw-leader-copy small,.home-gw-leader-copy span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.home-gw-leader-copy b{font-size:12px}.home-gw-leader-copy small{font-size:9px;color:var(--dim);margin-top:2px}.home-gw-leader-copy span{font-size:8px;color:#08774d;font-weight:750;margin-top:3px}.home-gw-leader-card>strong{font-size:18px;color:#08774d;text-align:center}.home-gw-leader-card>strong small{display:block;font-size:8px;text-transform:uppercase;color:var(--dim)}
@media(max-width:1200px){.home-gw-leader-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:760px){.home-live-headline{display:none}.home-live-tape{display:flex;overflow-x:auto;scroll-snap-type:x mandatory}.home-live-match{flex:0 0 88%;scroll-snap-align:start}.home-live-head-actions small{display:none}.home-gw-leaders{padding:13px}.home-gw-leader-grid{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:3px}.home-gw-leader-card{flex:0 0 220px;scroll-snap-align:start}.home-gw-leaders-head h3{font-size:15px}.home-gw-leaders-link{white-space:nowrap}}
html[data-theme="dark"] .home-live-wrap{background:linear-gradient(135deg,rgba(105,25,40,.25),var(--panel));border-color:#65313b}html[data-theme="dark"] .home-live-head,html[data-theme="dark"] .home-live-match{border-color:#53313a}

/* My Team: whole-league analysis modal */
.modal-card:has(.lm-analysis-hero){max-width:980px}.modal-card:has(.lm-analysis-hero) .modal-body{background:var(--panel2)}
.lm-analysis-hero{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:17px 18px;margin-bottom:12px;border-radius:13px;background:linear-gradient(135deg,#08774d,#0c9870);color:#fff}.lm-analysis-hero>div:first-child>span,.lm-analysis-hero>div:first-child>b,.lm-analysis-hero>div:first-child>small{display:block}.lm-analysis-hero>div:first-child>span{font-size:9px;font-weight:850;text-transform:uppercase;letter-spacing:.07em;opacity:.8}.lm-analysis-hero>div:first-child>b{font-size:19px;margin-top:4px}.lm-analysis-hero>div:first-child>small{font-size:10px;margin-top:3px;opacity:.76}.lm-analysis-hero-stat{min-width:112px;padding:10px 12px;border:1px solid rgba(255,255,255,.2);border-radius:10px;background:rgba(255,255,255,.1);text-align:center}.lm-analysis-hero-stat b,.lm-analysis-hero-stat span{display:block}.lm-analysis-hero-stat b{font-size:24px}.lm-analysis-hero-stat span{font-size:8px;text-transform:uppercase;letter-spacing:.05em;opacity:.8}
.lm-insight-section{min-width:0;margin-bottom:12px;padding:14px;border:1px solid var(--line);border-radius:13px;background:var(--panel)}.lm-insight-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.lm-insight-grid .lm-insight-section{margin-bottom:0}.lm-section-title{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:11px;padding-bottom:9px;border-bottom:1px solid var(--line)}.lm-section-title b,.lm-section-title span{display:block}.lm-section-title b{font-size:13px}.lm-section-title span{margin-top:2px;font-size:9px;line-height:1.35;color:var(--dim)}.lm-empty-state{padding:17px;text-align:center;color:var(--dim);font-size:11px;border:1px dashed var(--line);border-radius:9px}
.lm-player-stat{padding:8px 9px;margin-bottom:6px}.lm-stat-player{display:flex;align-items:center;gap:9px;min-width:0}.lm-stat-kit{width:31px;height:36px;object-fit:contain;flex:none}.lm-player-stat .pc{text-align:right}.lm-player-stat .pc .mt{display:block;margin-top:2px;font-size:8px}
.lm-formation-list{display:grid;gap:8px}.lm-formation-row{display:grid;grid-template-columns:minmax(90px,.85fr) minmax(100px,1.5fr) 38px;align-items:center;gap:9px}.lm-formation-row>div:first-child b,.lm-formation-row>div:first-child span{display:block}.lm-formation-row>div:first-child b{font-size:12px}.lm-formation-row>div:first-child span{font-size:8px;color:var(--dim)}.lm-formation-track{height:7px;border-radius:999px;background:var(--panel2);overflow:hidden}.lm-formation-track i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#0a9569,#39c997)}.lm-formation-row>strong{text-align:right;font-size:11px;color:#08774d}
.lm-chip-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.lm-chip-card{display:grid;grid-template-columns:32px minmax(0,1fr) 12px;align-items:center;gap:8px;min-width:0;padding:10px;border:1px solid var(--line);border-radius:10px;background:var(--panel2);color:var(--ink);font:inherit;text-align:left;cursor:pointer}.lm-chip-card:hover{border-color:#86cbb3;background:#eef9f4}.lm-chip-icon{width:32px;height:32px;display:grid;place-items:center;border-radius:9px;background:#dff4e9;color:#08774d}.lm-chip-card-copy,.lm-chip-name,.lm-chip-card-copy small{display:block;min-width:0}.lm-chip-name{font-size:10px;font-weight:850;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.lm-chip-card-copy small{margin-top:2px;font-size:8px;color:var(--dim)}.lm-chip-chevron{font-size:9px;color:var(--dim)}
.lm-chip-manager-panel{margin-top:10px;border:1px solid var(--line);border-radius:10px;background:var(--panel2);overflow:hidden}.lm-chip-manager-panel[hidden]{display:none}.lm-chip-manager-head{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 12px;border-bottom:1px solid var(--line)}.lm-chip-manager-head span,.lm-chip-manager-head b{display:block}.lm-chip-manager-head span{font-size:8px;color:var(--dim);text-transform:uppercase}.lm-chip-manager-head b{font-size:11px;margin-top:2px}.lm-chip-manager-head button{border:0;background:transparent;color:var(--sub);font-size:19px;cursor:pointer}.lm-chip-manager-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;background:var(--line)}.lm-chip-manager-row{display:flex;align-items:center;gap:8px;min-width:0;padding:8px 10px;background:var(--panel)}.lm-chip-manager-link{display:flex;align-items:center;justify-content:space-between;gap:7px;min-width:0;flex:1;color:var(--ink);text-decoration:none}.lm-chip-manager-link span{min-width:0}.lm-chip-manager-link b,.lm-chip-manager-link small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.lm-chip-manager-link b{font-size:10px}.lm-chip-manager-link small{font-size:8px;color:var(--dim);margin-top:2px}.lm-chip-manager-link i{font-size:8px;color:#08774d}.lm-chip-gw{padding:3px 5px;border-radius:999px;background:#dff4e9;color:#08774d;font-size:7px;font-weight:850}.lm-chip-empty{padding:14px;background:var(--panel);font-size:10px;color:var(--dim)}
.lm-bench-manager-list{display:grid;gap:6px}.lm-bench-manager-row{display:grid;grid-template-columns:25px minmax(0,1fr) auto;align-items:center;gap:8px;padding:8px 9px;border:1px solid var(--line);border-radius:9px;background:var(--panel2)}.lm-bench-rank{width:22px;height:22px;display:grid;place-items:center;border-radius:50%;background:var(--panel);font-size:8px;font-weight:850}.lm-bench-manager-link{min-width:0;color:var(--ink);text-decoration:none}.lm-bench-manager-link b,.lm-bench-manager-link small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.lm-bench-manager-link b{font-size:10px}.lm-bench-manager-link small{font-size:8px;color:var(--dim);margin-top:2px}.lm-bench-manager-row>strong{font-size:13px;color:#08774d}.lm-bench-manager-row>strong small{font-size:7px}.lm-bench-pager{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:9px}.lm-bench-pager button{border:1px solid var(--line);border-radius:7px;padding:6px 8px;background:var(--panel);color:var(--ink);font:inherit;font-size:8px;font-weight:750;cursor:pointer}.lm-bench-pager button:disabled{opacity:.4}.lm-bench-pager span{font-size:8px;color:var(--dim)}
.lm-hit-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:10px}.lm-hit-summary>div{padding:11px 12px;border:1px solid var(--line);border-radius:10px;background:var(--panel2)}.lm-hit-summary span,.lm-hit-summary b,.lm-hit-summary small{display:block}.lm-hit-summary span{font-size:8px;font-weight:850;text-transform:uppercase;color:var(--dim)}.lm-hit-summary b{font-size:20px;margin-top:4px;color:#c24155}.lm-hit-summary small{font-size:8px;color:var(--dim);margin-top:2px}.lm-hit-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;max-height:340px;overflow-y:auto}.lm-hit-row{display:grid;grid-template-columns:24px minmax(0,1fr) auto 10px;align-items:center;gap:8px;min-width:0;padding:8px 9px;border:1px solid var(--line);border-radius:9px;background:var(--panel2);color:var(--ink);text-decoration:none}.lm-hit-row:hover{border-color:#dda0aa;background:#fff5f6}.lm-hit-rank{width:22px;height:22px;display:grid;place-items:center;border-radius:50%;background:var(--panel);font-size:8px;font-weight:850}.lm-hit-manager{min-width:0}.lm-hit-manager b,.lm-hit-manager small,.lm-hit-score b,.lm-hit-score small{display:block}.lm-hit-manager b,.lm-hit-manager small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.lm-hit-manager b{font-size:10px}.lm-hit-manager small{font-size:8px;color:var(--dim);margin-top:2px}.lm-hit-score{text-align:right}.lm-hit-score b{font-size:13px;color:#c24155}.lm-hit-score small{font-size:7px;color:var(--dim);margin-top:2px}.lm-hit-row>i{font-size:8px;color:var(--dim)}.lm-no-hits i,.lm-no-hits b,.lm-no-hits span{display:block}.lm-no-hits i{font-size:20px;color:#08774d}.lm-no-hits b{color:var(--ink);margin-top:5px}.lm-no-hits span{margin-top:3px}
.lm-live-table{border:1px solid var(--line);border-radius:10px;overflow:hidden}.lm-live-head,.lm-live-table>a{display:grid;grid-template-columns:42px minmax(0,1fr) 55px 65px;align-items:center;gap:8px;padding:8px 10px}.lm-live-head{background:var(--panel2);color:var(--dim);font-size:8px;font-weight:850;text-transform:uppercase}.lm-live-head span:nth-child(n+3){text-align:right}.lm-live-table>a{border-top:1px solid var(--line);color:var(--ink);text-decoration:none}.lm-live-table>a:hover{background:var(--panel2)}.lm-live-table>a>span:nth-child(2){min-width:0}.lm-live-table>a b,.lm-live-table>a small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.lm-live-table>a b{font-size:10px}.lm-live-table>a small{font-size:8px;color:var(--dim);margin-top:2px}.lm-live-table>a>strong{text-align:right;font-size:11px}.lm-live-pos{width:23px;height:23px;display:grid;place-items:center;border-radius:50%;background:#e8f6f0;color:#08774d;font-size:8px;font-weight:900}
.league-analysis-loading{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:12px}.league-load-copy{min-width:0}.league-load-copy b,.league-load-copy small,.league-load-copy em{display:block}.league-load-copy small{color:var(--dim);font-size:10px;margin-top:3px}.league-load-copy em{font-style:normal;font-size:8px;color:var(--dim);text-align:right;margin-top:3px}.league-load-track{height:5px;margin-top:9px;border-radius:999px;background:var(--panel2);overflow:hidden}.league-load-track i{display:block;height:100%;background:#0a9569}
@media(max-width:760px){.modal-card:has(.lm-analysis-hero){max-width:none;height:min(92vh,900px);max-height:92vh}.lm-insight-grid{grid-template-columns:1fr}.lm-chip-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.lm-chip-manager-list,.lm-hit-list{grid-template-columns:1fr}.lm-analysis-hero{padding:14px}.lm-analysis-hero>div:first-child>b{font-size:16px}.lm-analysis-hero-stat{min-width:88px}.lm-analysis-hero-stat b{font-size:20px}}@media(max-width:430px){.lm-analysis-hero{align-items:flex-start;flex-direction:column}.lm-analysis-hero-stat{width:100%;display:flex;align-items:baseline;justify-content:center;gap:5px}.lm-chip-grid{grid-template-columns:1fr}.lm-hit-summary{grid-template-columns:1fr}.lm-formation-row{grid-template-columns:82px minmax(80px,1fr) 34px}.lm-insight-section{padding:11px}.lm-player-stat{padding:7px}.lm-stat-kit{width:27px;height:32px}}
html[data-theme="dark"] .lm-chip-card:hover{background:rgba(10,149,105,.12);border-color:#326d59}html[data-theme="dark"] .lm-chip-icon,html[data-theme="dark"] .lm-chip-gw{background:rgba(10,149,105,.18);color:#8fe0bc}

/* Personal live impact */
.team-live-impact{border:1px solid var(--line);border-radius:13px;background:var(--panel);overflow:hidden}.team-live-hero{display:grid;grid-template-columns:1.1fr 1fr;background:linear-gradient(135deg,#08774d,#0c9870);color:#fff}.team-live-hero>div{padding:16px 18px}.team-live-rank{border-left:1px solid rgba(255,255,255,.18)}.team-live-hero span,.team-live-hero b,.team-live-hero small{display:block}.team-live-hero span{font-size:8px;text-transform:uppercase;letter-spacing:.07em;opacity:.78;font-weight:850}.team-live-hero b{font-size:26px;margin-top:4px}.team-live-hero small{font-size:8px;margin-top:2px;opacity:.72}.team-live-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}.team-live-grid article{min-width:0;padding:12px 14px;border-right:1px solid var(--line)}.team-live-grid article:last-child{border-right:0}.team-live-grid span,.team-live-grid b,.team-live-grid small{display:block}.team-live-grid span{font-size:8px;text-transform:uppercase;color:var(--dim);font-weight:850}.team-live-grid b{font-size:15px;margin-top:4px}.team-live-grid small{font-size:8px;color:var(--dim);margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.team-live-empty{padding:18px;text-align:center;color:var(--dim);font-size:10px}@media(max-width:680px){.team-live-grid{grid-template-columns:1fr 1fr}.team-live-grid article:nth-child(2){border-right:0}.team-live-grid article:nth-child(-n+2){border-bottom:1px solid var(--line)}.team-live-hero b{font-size:21px}}@media(max-width:430px){.team-live-hero{grid-template-columns:1fr}.team-live-rank{border-left:0;border-top:1px solid rgba(255,255,255,.18)}}

/* Deadline-locked transfer outcome */
.transfer-outcome{margin:16px 0;border:1px solid var(--line);border-radius:14px;background:var(--panel);overflow:hidden}.transfer-outcome-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:15px 17px;border-bottom:1px solid var(--line)}.transfer-outcome-head>div>span{font-size:8px;color:#08774d;font-weight:900;letter-spacing:.07em}.transfer-outcome-head h3{font-size:17px;margin:3px 0}.transfer-outcome-head p{margin:0;color:var(--sub);font-size:9px}.transfer-outcome-head>span{padding:5px 8px;border-radius:999px;background:#e8f6f0;color:#08774d;font-size:9px;font-weight:850}.transfer-outcome-score{display:grid;grid-template-columns:1fr 1.25fr 1fr;border-bottom:1px solid var(--line)}.transfer-outcome-score>div{padding:12px;text-align:center;border-right:1px solid var(--line)}.transfer-outcome-score>div:last-child{border-right:0}.transfer-outcome-score span,.transfer-outcome-score b,.transfer-outcome-score small{display:block}.transfer-outcome-score span{font-size:8px;text-transform:uppercase;color:var(--dim);font-weight:850}.transfer-outcome-score b{font-size:18px;margin-top:3px}.transfer-outcome-score small{font-size:8px;color:var(--dim);margin-top:2px}.transfer-outcome-score .worked b{color:#08774d}.transfer-outcome-score .backfired b{color:#c24155}.transfer-outcome-columns{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:13px}.transfer-outcome-columns h4{margin:0 0 7px;font-size:10px}.transfer-outcome-columns>div:first-child h4{color:#08774d}.transfer-outcome-columns>div:last-child h4{color:#c24155}.transfer-outcome-player{display:grid;grid-template-columns:22px 31px minmax(0,1fr) auto;align-items:center;gap:7px;min-width:0;padding:8px;border:1px solid var(--line);border-radius:9px;background:var(--panel2);margin-bottom:6px}.transfer-outcome-rank{width:20px;height:20px;display:grid;place-items:center;border-radius:50%;background:var(--panel);font-size:8px;font-weight:900}.transfer-outcome-kit{width:28px;height:33px;object-fit:contain}.transfer-outcome-player>div{min-width:0}.transfer-outcome-player>div b,.transfer-outcome-player>div small,.transfer-outcome-player>strong small{display:block}.transfer-outcome-player>div b{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.transfer-outcome-player>div small{font-size:8px;color:var(--dim);margin-top:2px}.transfer-outcome-player>strong{font-size:16px;text-align:center}.transfer-outcome-player>strong small{font-size:7px;color:var(--dim);text-transform:uppercase}.transfer-outcome-player.in>strong{color:#08774d}.transfer-outcome-player.out>strong{color:#c24155}.transfer-outcome-foot{padding:9px 13px;border-top:1px solid var(--line);color:var(--dim);font-size:8px;text-align:center}.transfer-outcome-wait{display:flex;align-items:center;justify-content:center;gap:11px;padding:24px}.transfer-outcome-wait>i{font-size:20px;color:#08774d}.transfer-outcome-wait b,.transfer-outcome-wait span{display:block}.transfer-outcome-wait b{font-size:11px}.transfer-outcome-wait span{font-size:9px;color:var(--dim);margin-top:3px}@media(max-width:680px){.transfer-outcome-columns{grid-template-columns:1fr}.transfer-outcome-head p{max-width:260px}}@media(max-width:450px){.transfer-outcome-score{grid-template-columns:1fr 1fr}.transfer-outcome-score>div:nth-child(2){grid-column:1/-1;grid-row:2;border-top:1px solid var(--line);border-right:0}.transfer-outcome-score>div:nth-child(3){border-right:0}.transfer-outcome-head{padding:13px}.transfer-outcome-columns{padding:10px}}

/* League Analyzer */
.la-form{display:grid;grid-template-columns:minmax(240px,520px) auto;justify-content:start;align-items:center;gap:10px}.la-hero{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px;margin-bottom:12px;border:1px solid var(--line);border-radius:14px;background:linear-gradient(135deg,var(--panel),var(--panel2))}.la-gw{display:inline-flex;padding:5px 9px;border-radius:999px;background:#e8f7f0;color:#08774d;font-size:10px;font-weight:850;text-transform:uppercase}.la-hero h3{font-size:23px;margin:8px 0 4px}.la-hero p{margin:0;color:var(--sub);font-size:12px}.la-official-link{display:inline-flex;align-items:center;gap:7px;white-space:nowrap;padding:10px 12px;border:1px solid var(--line);border-radius:9px;color:var(--ink);font-size:11px;font-weight:800;text-decoration:none;background:var(--panel)}
.la-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:14px}.la-stat-grid article{position:relative;min-width:0;min-height:108px;padding:15px;border:1px solid var(--line);border-radius:12px;background:var(--panel)}.la-stat-grid article>i{position:absolute;right:13px;top:13px;color:#0a9569;opacity:.65}.la-stat-grid article>span,.la-stat-grid article>b,.la-stat-grid article>small{display:block}.la-stat-grid article>span{padding-right:25px;font-size:9px;color:var(--dim);font-weight:850;text-transform:uppercase;letter-spacing:.05em}.la-stat-grid article>b{margin-top:9px;font-size:24px}.la-stat-grid article>small{font-size:10px;color:var(--sub);margin-top:3px}.la-stat-wide{grid-column:span 2}.la-chip-stat{grid-row:span 2}.la-chip-breakdown{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:10px}.la-chip-breakdown small{padding:6px;border-radius:7px;background:var(--panel2);font-size:9px;color:var(--sub)}.la-chip-breakdown strong{display:block;color:var(--ink)}
.la-table-card{min-width:0;border:1px solid var(--line);border-radius:14px;background:var(--panel);overflow:hidden}.la-table-head{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:16px;border-bottom:1px solid var(--line)}.la-table-head span{font-size:9px;text-transform:uppercase;color:var(--dim);font-weight:850}.la-table-head h3{font-size:16px;margin:3px 0 0}.la-table-head input{width:min(280px,100%);min-height:38px;border:1px solid var(--line);border-radius:9px;padding:0 11px;background:var(--panel2);color:var(--ink)}.la-table-scroll{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.la-table{width:100%;min-width:900px;border-collapse:collapse}.la-table th,.la-table td{padding:11px 12px;border-bottom:1px solid var(--line);text-align:left;vertical-align:middle}.la-table th{background:var(--panel2);position:sticky;top:0;z-index:1}.la-sort{display:flex;align-items:center;gap:5px;border:0;background:none;color:var(--sub);font:inherit;font-size:9px;font-weight:850;text-transform:uppercase;cursor:pointer;white-space:nowrap}.la-sort.active{color:#08774d}.la-manager{display:block;max-width:210px;color:var(--ink);text-decoration:none}.la-manager b,.la-manager small,.la-captain b,.la-captain small{display:block}.la-manager b{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.la-manager small,.la-captain small{font-size:9px;color:var(--dim);margin-top:2px}.la-captain b{font-size:11px}.la-rank{font-size:11px;font-weight:850}.la-points,.la-total{font-size:14px}.la-bench-points,.la-played,.la-chip{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;padding:5px 7px;border-radius:999px;background:var(--panel2);font-size:9px;font-weight:800}.la-bench-points.hot{background:#fff0e8;color:#b45309}.la-chip{background:#e8f7f0;color:#08774d}.la-no-chip{color:var(--dim)}.la-none{text-align:center!important;color:var(--dim);padding:28px!important}.la-pagination{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 16px;font-size:10px;color:var(--sub)}.la-pagination>div{display:flex;align-items:center;gap:8px}.la-pagination button{border:1px solid var(--line);border-radius:8px;background:var(--panel2);color:var(--ink);padding:7px 10px;font:inherit;font-size:10px;font-weight:750;cursor:pointer}.la-pagination button:disabled{opacity:.4}.la-loading{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:12px;padding:24px;border:1px solid var(--line);border-radius:13px;background:var(--panel)}.la-spinner{width:28px;height:28px;border:3px solid var(--line);border-top-color:#0a9569;border-radius:50%;animation:spin .8s linear infinite}.la-loading b,.la-loading small{display:block}.la-loading small{font-size:10px;color:var(--dim);margin-top:3px}.la-progress{grid-column:1/-1;height:5px;border-radius:999px;background:var(--panel2);overflow:hidden}.la-progress span{display:block;height:100%;background:#0a9569;transition:width .2s}
@media(max-width:900px){.la-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.la-chip-stat{grid-row:auto}.la-stat-wide{grid-column:span 2}}@media(max-width:620px){.la-form{grid-template-columns:1fr}.la-form .primary-action{width:100%}.la-hero,.la-table-head,.la-pagination{align-items:stretch;flex-direction:column}.la-official-link{justify-content:center}.la-stat-grid{grid-template-columns:1fr 1fr}.la-stat-grid article{min-height:96px;padding:12px}.la-stat-grid article>b{font-size:20px}.la-chip-stat,.la-stat-wide{grid-column:1/-1}.la-table-head input{width:100%}.la-pagination>div{justify-content:space-between}.la-table{min-width:820px}}

/* Two-card transfer outcome summary */
.transfer-outcome-score{grid-template-columns:1fr 1fr}
@media(max-width:450px){.transfer-outcome-score>div:nth-child(2){grid-column:auto;grid-row:auto;border-top:0;border-right:0}}
