/* FPL Anonymous Tools. Everything is scoped under .fplanon-app and brings its own background,
   so it reads the same on light or dark themes. */
.fplanon-app{--fp-fg:#1b1f24;--fp-muted:#5b6672;--fp-line:#dfe3e8;--fp-bg:#f6f8fa;--fp-accent:#0b6b3a;--fp-accent-2:#37003c;--fp-err:#b42318;
  background:#fff;color:var(--fp-fg);border-radius:12px;padding:1.25em;margin:1.5em 0;font-size:15px;line-height:1.45;box-shadow:0 1px 3px rgba(0,0,0,.25)}
.fplanon-app *{box-sizing:border-box}
/* default text colour for everything inside (themes often force light text on dark pages) */
.fplanon-app :where(label,td,th,p,h3,h4,summary,small,output,span,div,li,strong,em){color:var(--fp-fg)!important}
.fplanon-app a{color:var(--fp-accent)!important}
.fplanon-app .fp-note,.fplanon-app .fp-card-sub,.fplanon-app .fp-card-label,.fplanon-app .fp-field small,.fplanon-app .fp-note *{color:var(--fp-muted)!important}
.fplanon-app .fp-plan{padding:.6em .9em;border:1px solid var(--fp-line);border-radius:8px;background:var(--fp-bg);margin-bottom:1em}
.fplanon-app .fp-plan-pro{border-color:var(--fp-accent);background:#eefaf3}
.fplanon-app .fp-form{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:.9em 1em;margin-bottom:1em}
.fplanon-app .fp-field{display:flex;flex-direction:column;gap:.25em}
.fplanon-app .fp-wide{grid-column:1/-1}
.fplanon-app .fp-field label{font-weight:600;font-size:.9em;margin:0}
.fplanon-app .fp-field small{font-size:.8em}
.fplanon-app input[type=number],.fplanon-app input[type=search],.fplanon-app select{width:100%;padding:.45em .55em;border:1px solid #c5ccd3;border-radius:6px;font:inherit;background:#fff!important;color:var(--fp-fg)!important;height:auto;margin:0}
.fplanon-app input[type=range]{width:100%;accent-color:var(--fp-accent)}
.fplanon-app input[type=checkbox]{accent-color:var(--fp-accent)}
.fplanon-app .fp-range{display:flex;align-items:center;gap:.6em}.fplanon-app .fp-range input{flex:1}
.fplanon-app .fp-badge{display:inline-block;margin-left:.5em;padding:0 .45em;border-radius:99px;background:var(--fp-accent-2);color:#fff!important;font-size:.7em;font-weight:700;vertical-align:middle}
.fplanon-app.fp-is-pro .fp-badge{display:none}
.fplanon-app .fp-locked{opacity:.55}.fplanon-app .fp-locked *{cursor:not-allowed}
.fplanon-app .fp-actions{display:flex;flex-wrap:wrap;gap:.6em;margin:.5em 0 1em}
.fplanon-app .fp-btn{display:inline-block;padding:.55em 1.1em;border:0;border-radius:6px;background:var(--fp-accent);color:#fff!important;font:inherit;font-weight:600;text-decoration:none;cursor:pointer;text-transform:none;letter-spacing:0}
.fplanon-app .fp-btn:hover{filter:brightness(1.12)}.fplanon-app .fp-btn:disabled{opacity:.5;cursor:not-allowed}
.fplanon-app .fp-btn-alt{background:var(--fp-accent-2)}.fplanon-app .fp-btn-small{padding:.25em .7em;font-size:.9em}
.fplanon-app .fp-error{padding:.7em .9em;border:1px solid var(--fp-err);border-radius:8px;background:#fff1f0;margin-bottom:1em}
.fplanon-app .fp-error,.fplanon-app .fp-error *{color:var(--fp-err)!important}.fplanon-app .fp-error .fp-btn{color:#fff!important;margin-left:.5em}
.fplanon-app .fp-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:.8em;margin:1em 0}
.fplanon-app .fp-card{padding:.8em 1em;border:1px solid var(--fp-line);border-radius:10px;background:var(--fp-bg)}
.fplanon-app .fp-card-label{font-size:.8em;text-transform:uppercase;letter-spacing:.04em}
.fplanon-app .fp-card-value{font-size:1.6em;font-weight:700;line-height:1.2}.fplanon-app .fp-card-sub{font-size:.85em}
.fplanon-app .fp-scroll{overflow-x:auto;margin-bottom:1em}
.fplanon-app .fp-table{width:100%;border-collapse:collapse;font-size:.92em;background:#fff;margin:0;border:0}
.fplanon-app .fp-table th,.fplanon-app .fp-table td{padding:.4em .6em;border:0;border-bottom:1px solid var(--fp-line);text-align:left;white-space:nowrap;background:transparent}
.fplanon-app .fp-table th{background:var(--fp-bg);font-weight:700}.fplanon-app .fp-table tbody tr:nth-child(even) td{background:#fafbfc}
.fplanon-app .fp-num{text-align:right!important}
.fplanon-app h3{margin:1.2em 0 .4em;font-size:1.1em;text-transform:none;letter-spacing:0}
.fplanon-app .fp-details{border:1px solid var(--fp-line);border-radius:8px;padding:.5em .8em;margin:.4em 0;background:#fff}
.fplanon-app .fp-details summary{cursor:pointer;font-weight:600}
.fplanon-app .fp-clubs{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:.3em;margin-top:.5em}
.fplanon-app .fp-chk{display:inline-flex;align-items:center;gap:.3em;margin-right:.8em;font-weight:400!important}
.fplanon-app .fp-inline{display:flex;flex-wrap:wrap}
.fplanon-app .fp-hits{display:flex;flex-direction:column;gap:.3em;margin-top:.3em}
.fplanon-app .fp-hit{display:flex;align-items:center;gap:.5em;padding:.3em .5em;border:1px solid var(--fp-line);border-radius:6px;background:#fff}.fplanon-app .fp-hit span{flex:1}
.fplanon-app .fp-chips{display:flex;flex-wrap:wrap;gap:.4em;margin-top:.3em}
.fplanon-app .fp-chip{padding:.2em .6em;border-radius:99px;background:#e8eef3}.fplanon-app .fp-chip button{border:0;background:none;cursor:pointer;font-size:1.1em;line-height:1;color:var(--fp-fg)!important}
.fplanon-app .fp-upsell{padding:.8em 1em;border:1px dashed var(--fp-accent-2);border-radius:8px;margin:1em 0}
.fplanon-app .fp-note{font-size:.85em}
@media (max-width:600px){.fplanon-app{padding:.9em}.fplanon-app .fp-form{grid-template-columns:1fr 1fr}.fplanon-app .fp-card-value{font-size:1.3em}}

/* free tools */
.fplanon-app .fp-tag{display:inline-block;padding:.1em .6em;border-radius:99px;font-size:.85em;font-weight:700;background:#e8eef3}
.fplanon-app .fp-tag.fp-v-elite{background:#0b6b3a;color:#fff!important}.fplanon-app .fp-tag.fp-v-above{background:#cdeedb}
.fplanon-app .fp-tag.fp-v-rep{background:#e8eef3}.fplanon-app .fp-tag.fp-v-below{background:#fde2de}
.fplanon-app .fp-tag.fp-risk-Critical{background:#c0392b;color:#fff!important}.fplanon-app .fp-tag.fp-risk-Hot{background:#e67e22;color:#fff!important}
.fplanon-app .fp-tag.fp-risk-Watch{background:#f6dc6a}.fplanon-app .fp-tag.fp-risk-Safe{background:#cdeedb}
.fplanon-app .fp-formrun{display:inline-flex;gap:2px}.fplanon-app .fp-fl{display:inline-block;width:1.4em;text-align:center;border-radius:3px;font-size:.8em;font-weight:700}
.fplanon-app .fp-fl-W{background:#27ae60;color:#fff!important}.fplanon-app .fp-fl-D{background:#bdc3c7}.fplanon-app .fp-fl-L{background:#c0392b;color:#fff!important}
.fplanon-app .fp-status{padding:.5em .8em;border-radius:8px;margin-bottom:.6em;font-size:.9em}
.fplanon-app .fp-status-ok{background:#eefaf3;border:1px solid #b7e4c7}.fplanon-app .fp-status-warn{background:#fff7e6;border:1px solid #f2c94c}
.fplanon-app .fp-metaline{margin:.6em 0}

/* club chips */
.fplanon-app .fp-team{display:inline-flex;align-items:center;gap:.4em;white-space:nowrap}
.fplanon-app .fp-dot{display:inline-block;width:.95em;height:.95em;border-radius:50%;border:1px solid rgba(0,0,0,.35);flex:none}
.fplanon-app .fp-badge-img{width:1.35em;height:1.35em;object-fit:contain;flex:none}
/* pitch */
.fplanon-app .fp-pitchwrap{margin:1em 0}
.fplanon-app .fp-pitch{position:relative;border-radius:12px;overflow:hidden;min-height:clamp(470px,78vw,660px);padding:46px 6px 12px;background:#2f9a4f;display:flex}
.fplanon-app .fp-lines{position:absolute;inset:0;width:100%;height:100%}
.fplanon-app .fp-banner{position:absolute;top:0;left:0;right:0;height:34px;display:flex;align-items:center;justify-content:center;gap:.8em;background:linear-gradient(90deg,#37003c,#0b6b3a);letter-spacing:.14em;font-weight:800;font-size:.95em}
.fplanon-app .fp-banner span,.fplanon-app .fp-banner em{color:#fff!important;font-style:normal}.fplanon-app .fp-banner em{opacity:.8;font-weight:600;letter-spacing:.05em}
.fplanon-app .fp-mark{position:absolute;left:50%;top:52%;transform:translate(-50%,-50%) rotate(-6deg);font-size:clamp(28px,8vw,78px);font-weight:900;font-style:italic;letter-spacing:.04em;white-space:nowrap;pointer-events:none;color:rgba(255,255,255,.14)!important}
.fplanon-app .fp-mark-img{width:min(46%,320px);height:auto;opacity:.18}
.fplanon-app .fp-rows{position:relative;z-index:2;flex:1;display:flex;flex-direction:column;justify-content:space-around;gap:.4em}
.fplanon-app .fp-prow{display:flex;justify-content:center;gap:clamp(4px,1.4vw,14px);flex-wrap:nowrap}
.fplanon-app .fp-pcard{width:clamp(54px,17%,112px);min-width:0;text-align:center;font-size:clamp(9px,2.4vw,12.5px);line-height:1.2}
.fplanon-app .fp-ptop{display:flex;justify-content:space-between;gap:2px;margin-bottom:2px}
.fplanon-app .fp-pprice,.fplanon-app .fp-pmetric{padding:0 .4em;border-radius:99px;background:rgba(17,24,39,.78);font-weight:700}
.fplanon-app .fp-pprice,.fplanon-app .fp-pmetric,.fplanon-app .fp-role{color:#fff!important}
.fplanon-app .fp-pmetric{background:#37003c}
.fplanon-app .fp-pshirt{position:relative;display:flex;justify-content:center}
.fplanon-app .fp-shirt{width:78%;height:auto;filter:drop-shadow(0 2px 2px rgba(0,0,0,.35))}
.fplanon-app .fp-role{position:absolute;right:6%;top:0;width:1.7em;height:1.7em;line-height:1.7em;border-radius:50%;background:#111;font-weight:800;font-size:.9em}
.fplanon-app .fp-role-C{background:#f5b301;color:#111!important}.fplanon-app .fp-role-VC{background:#e5e7eb;color:#111!important}
.fplanon-app .fp-pname{margin-top:2px;padding:.12em .2em;background:#fff;border-radius:4px 4px 0 0;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fplanon-app .fp-psub{padding:.1em .2em;background:#eceaf3;border-radius:0 0 4px 4px;font-size:.92em;white-space:nowrap}
.fplanon-app .fp-pname,.fplanon-app .fp-psub{color:#1b1f24!important}
.fplanon-app .fp-bench{margin-top:.5em;padding:.6em .5em;border-radius:10px;background:#1f7a3b}
.fplanon-app .fp-bench-title{color:#fff!important;font-weight:800;font-size:.8em;letter-spacing:.14em;text-transform:uppercase;margin:0 0 .4em .4em}
.fplanon-app .fp-squadbox h3{margin-top:0}
@media (max-width:520px){.fplanon-app .fp-banner em{display:none}.fplanon-app .fp-pcard{width:clamp(50px,18%,80px)}}

/* ---- tables: keep the horizontal scrollbar in view. The table scrolls inside a box of limited height with a sticky header,
        so the scrollbar is always at the bottom of what you can see, not at the bottom of a 100-row page. */
.fplanon-app .fp-scroll{max-height:min(72vh,640px);overflow:auto;border:1px solid var(--fp-line);border-radius:8px;margin-bottom:1em;-webkit-overflow-scrolling:touch}
.fplanon-app .fp-table th{position:sticky;top:0;z-index:2;background:var(--fp-bg)}
.fplanon-app .fp-table.fp-s2 th:nth-child(2),.fplanon-app .fp-table.fp-s2 td:nth-child(2){position:sticky;left:0;z-index:1;background:#fff;box-shadow:2px 0 0 rgba(0,0,0,.07)}
.fplanon-app .fp-table.fp-s2 th:nth-child(2){z-index:3;background:var(--fp-bg)}
.fplanon-app .fp-table.fp-s2 tbody tr:nth-child(even) td:nth-child(2){background:#fafbfc}
/* colour-coded fixtures */
.fplanon-app .fp-fixrow{display:inline-flex;gap:4px;flex-wrap:nowrap;vertical-align:middle}
.fplanon-app .fp-table .fp-fdr{display:inline-block;min-width:2.4em;text-align:center}
/* locked tool panel */
.fplanon-app .fp-lock{padding:1em 1.2em;border:2px dashed var(--fp-accent-2);border-radius:12px;margin:1em 0;background:#faf7ff}
.fplanon-app .fp-lock h3{margin-top:0}.fplanon-app .fp-locklist{margin:.5em 0 1em 1.2em;padding:0}.fplanon-app .fp-locklist li{margin:.25em 0}
.fplanon-app .fp-cta{display:inline-flex;flex-wrap:wrap;gap:6px;vertical-align:middle}
/* phones */
@media (max-width:600px){
  .fplanon-app input[type=number],.fplanon-app input[type=search],.fplanon-app select{font-size:16px;min-height:42px}
  .fplanon-app .fp-btn{min-height:42px}
  .fplanon-app .fp-plan{font-size:.92em}.fplanon-app .fp-plan .fp-cta{display:flex;margin-top:.45em}
  .fplanon-app .fp-table{font-size:.85em}.fplanon-app .fp-table th,.fplanon-app .fp-table td{padding:.35em .45em}
  .fplanon-app .fp-actions .fp-btn{flex:1 1 auto;text-align:center}
  .fplanon-app .fp-scroll{max-height:68vh}
}
/* buttons: text centred whatever their height */
.fplanon-app .fp-btn{display:inline-flex;align-items:center;justify-content:center;text-align:center}

/* ---- player cards: landscape 16:9 (the shape X/Twitter shows uncropped); every size scales with the card's own width ---- */
.fplanon-app .fp-cardslot{margin:1em 0}
.fplanon-app .fp-cardrow{display:flex;flex-wrap:wrap;gap:1.2em;justify-content:center}
.fplanon-app .fp-fcwrap{container-type:inline-size;width:min(100%,640px)}
.fplanon-app .fp-fcard{--tier:#e6b422;width:100%;aspect-ratio:16/9;display:flex;flex-direction:column;border:.5cqw solid var(--tier);border-radius:2.4cqw;padding:1.9cqw 2.6cqw 1.3cqw;position:relative;overflow:hidden;box-shadow:0 .8cqw 3cqw rgba(0,0,0,.35);font-size:max(10px,2.1cqw);line-height:1.2}
.fplanon-app .fp-tier-gold{--tier:#e6b422;background:linear-gradient(160deg,#4a3500,#12081f 62%,#2a1a00)}
.fplanon-app .fp-tier-silver{--tier:#c9d1d9;background:linear-gradient(160deg,#2c3340,#0d1117 62%,#222a35)}
.fplanon-app .fp-tier-bronze{--tier:#c27c3e;background:linear-gradient(160deg,#4a2a12,#140b05 62%,#2e1a0b)}
.fplanon-app .fp-fcard,.fplanon-app .fp-fcard :where(div,span,b,a,i){color:#fff!important}
.fplanon-app .fp-fc-head{display:flex;justify-content:space-between;align-items:center;font-size:.8em;letter-spacing:.16em;font-weight:800;margin-bottom:.9cqw}
.fplanon-app .fp-fc-head .fp-fc-brand{color:var(--tier)!important}.fplanon-app .fp-fc-window{opacity:.85}
.fplanon-app .fp-fc-body{flex:1;min-height:0;display:grid;grid-template-columns:1.2fr .8fr;gap:2.2cqw}
.fplanon-app .fp-fc-left{display:flex;flex-direction:column;justify-content:space-between;gap:1.1cqw;min-width:0;min-height:0}
.fplanon-app .fp-fc-id{display:grid;grid-template-columns:15cqw 1fr;gap:2cqw;align-items:center;min-width:0}
.fplanon-app .fp-fc-art{position:relative;border-radius:2cqw;padding:2.2cqw .4cqw .4cqw;text-align:center}
.fplanon-app .fp-fc-art .fp-shirt{width:100%;display:block}
.fplanon-app .fp-fc-pos{position:absolute;left:.7cqw;top:.4cqw;font-weight:900;font-size:.85em}
.fplanon-app .fp-fc-tier{font-weight:900;font-size:.6em;letter-spacing:.14em;color:var(--tier)!important;margin-top:.2cqw}
.fplanon-app .fp-fc-who{min-width:0}
.fplanon-app .fp-fc-name{font-size:2.7em;font-weight:900;line-height:1.05;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fplanon-app .fp-fc-club{display:flex;align-items:center;gap:.35em;margin-top:.25em;font-weight:700;white-space:nowrap;overflow:hidden}
.fplanon-app .fp-fc-meta,.fplanon-app .fp-fc-sub,.fplanon-app .fp-fc-ss,.fplanon-app .fp-fc-sl,.fplanon-app .fp-fc-foot,.fplanon-app .fp-fc-bl{color:rgba(255,255,255,.72)!important}
.fplanon-app .fp-fc-meta{font-size:.82em;margin-top:.25em}
.fplanon-app .fp-fc-stats{display:grid;grid-template-columns:1fr 1fr;grid-auto-rows:1fr;gap:1.1cqw;min-height:0}
.fplanon-app .fp-fc-stat{background:rgba(255,255,255,.08);border-radius:1.6cqw;padding:.7cqw .4cqw;text-align:center;display:flex;flex-direction:column;justify-content:center;min-width:0}
.fplanon-app .fp-fc-sl{font-size:.62em;letter-spacing:.08em;text-transform:uppercase;font-weight:700}
.fplanon-app .fp-fc-sv{font-size:2.35em;font-weight:900;line-height:1.05;color:var(--tier)!important}.fplanon-app .fp-fc-ss{font-size:.62em}
.fplanon-app .fp-fc-repl{background:rgba(0,0,0,.28);border-radius:1.6cqw;padding:.9cqw 1.4cqw}
.fplanon-app .fp-fc-sum{font-weight:700;font-size:.95em}.fplanon-app .fp-fc-sub{font-size:.76em;margin-top:.1em}
.fplanon-app .fp-fc-lower{display:grid;grid-template-columns:1.2fr .8fr;gap:2.2cqw;margin-top:1cqw;align-items:center}
.fplanon-app .fp-fc-fix{display:flex;flex-wrap:wrap;align-items:center;gap:.5cqw}
.fplanon-app .fp-fc-fix .fp-fixrow{flex-wrap:wrap;gap:.5cqw}
.fplanon-app .fp-fc-avg{font-size:.7em;margin-left:.4em;white-space:nowrap}
.fplanon-app .fp-fc-bars{display:grid;gap:.35cqw}
.fplanon-app .fp-fc-barrow{display:grid;grid-template-columns:7.5em 1fr 1.8em;align-items:center;gap:.6em;font-size:.68em}
.fplanon-app .fp-fc-bar{height:1cqw;background:rgba(255,255,255,.16);border-radius:1cqw;overflow:hidden;display:block}
.fplanon-app .fp-fc-bar i{display:block;height:100%;background:var(--tier)!important;border-radius:inherit}
.fplanon-app .fp-fc-bv{text-align:right;font-weight:700}
.fplanon-app .fp-fc-foot{font-size:.58em;margin-top:.8cqw;text-align:center}
.fplanon-app .fp-fdr{padding:.12em .5em;border-radius:99px;font-weight:800;font-size:.9em}
.fplanon-app .fp-fcard .fp-fdr{font-size:.74em}
.fplanon-app .fp-fdr-1{background:#2ecc71;color:#06280f!important}.fplanon-app .fp-fdr-2{background:#a3e635;color:#1a2e05!important}
.fplanon-app .fp-fdr-3{background:#e5e7eb;color:#1b1f24!important}.fplanon-app .fp-fdr-4{background:#f59e0b;color:#2b1700!important}.fplanon-app .fp-fdr-5{background:#ef4444;color:#fff!important}
.fplanon-app .fp-budget{max-width:340px;margin-bottom:.8em}
/* narrow screens: let the card grow taller instead of squeezing the text */
@container (max-width:520px){  .fplanon-app .fp-fcard{aspect-ratio:auto;font-size:12px;padding:12px 12px 8px;border-width:3px;border-radius:14px}
  .fplanon-app .fp-fc-body{grid-template-columns:1fr;gap:10px}.fplanon-app .fp-fc-id{grid-template-columns:78px 1fr;gap:10px}
  .fplanon-app .fp-fc-name{font-size:1.9em}.fplanon-app .fp-fc-sv{font-size:1.9em}.fplanon-app .fp-fc-stat{padding:6px 4px}.fplanon-app .fp-fc-repl{padding:8px 10px}
  .fplanon-app .fp-fc-lower{grid-template-columns:1fr;gap:8px;margin-top:8px}.fplanon-app .fp-fc-stats{grid-auto-rows:auto;gap:8px}.fplanon-app .fp-fc-foot{margin-top:8px}
}

.fplanon-app .fp-cardcol{display:flex;flex-direction:column;align-items:center;gap:.5em;width:min(100%,640px)}
.fplanon-app .fp-cardcol .fp-fcwrap{width:100%}
