/* FPL Copilot as a second projection source (lib/kft-copilot.js): the source switch, the credit strip and the
   "KFT only" note. The switch shows only once /api/copilot says the numbers are on (html.kft-copilot-on). */
.kft-src{display:none;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 12px}
html.kft-copilot-on .kft-src{display:flex}
.kft-src .bank button{display:inline-flex;align-items:center;gap:7px}
.kft-src .bank img{width:18px;height:18px;border-radius:50%;flex:none}

.kft-copilot-bar{position:relative;display:flex;align-items:center;gap:10px;margin:0 0 14px;padding:9px 12px 9px 10px;border-radius:11px;
  background:var(--raised);border:1px solid var(--hair-2);box-shadow:var(--shadow);transition:border-color .18s,transform .18s}
.kft-copilot-bar:hover{border-color:var(--info);transform:translateY(-1px)}
.kft-copilot-link{position:absolute;inset:0;z-index:1;border-radius:11px}
.kft-copilot-link:focus-visible{outline:2px solid var(--info);outline-offset:2px}
.kft-copilot-bar img{width:30px;height:30px;border-radius:50%;flex:none}
.kft-copilot-word{font:700 14px Manrope,sans-serif;color:var(--ink)}
.kft-copilot-word b{color:var(--info)}
.kft-copilot-note{font:600 12px Manrope,sans-serif;color:var(--muted)}
.kft-copilot-go{margin-left:auto;padding:6px 11px;border-radius:999px;border:1px solid var(--hair-2);font:700 12px Manrope,sans-serif;color:var(--info);white-space:nowrap}
@media (max-width:640px){.kft-copilot-note{display:none}}
@media (max-width:420px){.kft-copilot-go{display:none}.kft-copilot-word{font-size:13px}}

.kft-only-note{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:18px;border-radius:12px;background:var(--raised);
  border:1px dashed var(--hair-2);color:var(--ink-2);font:600 13px Manrope,sans-serif}
.kft-only-note b{color:var(--ink)}

/* On FPL Copilot's numbers nothing is editable (every edit path refuses, see lib/xpts-scenario.js), so the edit
   tags have nothing to mark. */
html.kft-src-copilot .ed-tag,html.kft-src-copilot .kft-edited-tag{display:none!important}

/* No file downloads of FPL Copilot's numbers (agreed terms: no bulk downloads); the action refuses too. */
html.kft-src-copilot [data-act="csv"]{display:none!important}

/* the loading state between choosing a source and the reload */
.kft-src-loading{margin-top:14px}

/* the player menu on FPL Copilot's numbers: read-only */
.kft-edit-readonly{display:grid;gap:3px;padding:10px 12px;margin:6px 0;border-radius:10px;border:1px dashed var(--hair-2);color:var(--muted);font:600 12px Manrope,sans-serif}
.kft-edit-readonly b{color:var(--ink);font-size:13px}
.kft-edit-readonly .key{justify-self:start;margin-top:6px}

/* Fixtures runs on FPL's difficulty (and KFT's numbers): no projection measures on FPL Copilot's numbers */
html.kft-src-copilot [data-ticker-metric]:not([data-ticker-metric="fdr"]){display:none!important}

/* the Gameweek page's top five from each model (js/views/home.js) */
.tp .tp-h{display:flex;align-items:center;gap:9px;margin:0 0 6px;font:800 14px Manrope,sans-serif;color:var(--ink)}
.tp .tp-h img{width:22px;height:22px;border-radius:50%}
.tp .list li{cursor:default}
.tp-credit{margin:6px 0 0}.tp-credit a{color:var(--info)}

/* Projections › KFT vs FPL Copilot (js/views/projections.js vsHTML): KFT in the site's red, FPL Copilot in its blue */
.vs-sum{margin:12px 2px 4px;font:600 13px Manrope,sans-serif;color:var(--muted)}.vs-sum b{color:var(--ink)}
.vs-table{min-width:560px}
.vs-table th img{width:16px;height:16px;border-radius:50%;vertical-align:-3px;margin-right:6px}
.vs-table td.vk,.vs-table td.vc{font-weight:700;color:var(--muted)}
.vs-table td.vk.hi{color:var(--accent)}.vs-table td.vc.hi{color:var(--info)}
.vs-table th.vd,.vs-table td.vd{width:34%;min-width:190px}
.vs-table td.pl{text-align:left}.vs-table td.pl .plc{display:flex;align-items:center;gap:10px;min-width:0}
.vs-table .vd-in{display:flex;align-items:center;gap:10px}
.vbar-d{position:relative;flex:1;height:8px;border-radius:99px;background:color-mix(in oklab,var(--ink) 6%,transparent)}
.vbar-d::after{content:"";position:absolute;left:50%;top:-3px;bottom:-3px;width:1px;background:var(--hair-2)}
.vbar-d i{position:absolute;top:0;bottom:0;border-radius:99px}
.vbar-d i.k{background:var(--accent)}.vbar-d i.c{background:var(--info)}
.vs-table td.vd b{min-width:44px;text-align:right;font-variant-numeric:tabular-nums;color:var(--faint)}
.vs-table td.vd b.k{color:var(--accent)}.vs-table td.vd b.c{color:var(--info)}
.vs-key i{display:inline-block;width:14px;height:8px;border-radius:99px;margin-right:6px}
.vs-key i.k{background:var(--accent)}.vs-key i.c{background:var(--info)}
.vs-credit{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.vs-credit img{border-radius:50%}.vs-credit a{color:var(--info)}
@media (max-width:640px){.vs-table{min-width:0}.vs-table th.vd,.vs-table td.vd{width:auto;min-width:0}.vbar-d{display:none}.vs-table th img{display:none}
  .vs-table td,.vs-table th{padding:10px 6px}.vs-table td.pl .who b,.vs-table td.pl .who small{display:block;max-width:112px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .vs-table td{font-size:13px}.vs-table td.vd b{min-width:0}.vs-table th.vd{font-size:0}.vs-table th.vd::after{content:"±";font-size:11px}.vs-table td:last-child,.vs-table th:last-child{padding-right:14px}}

/* Gameweek: the two top fives in the column beside the pitch (js/views/home.js topFiveHTML inline), two columns at
   every width, so both models read side by side on a laptop and on a phone */
.tp-in{margin-top:22px;padding-top:18px;border-top:1px solid var(--hair)}
.tp-in .tp-title{margin:0 0 12px;font:800 15px Sora,Manrope,sans-serif;letter-spacing:-.01em;color:var(--ink)}
.tp-in .tp-title small{margin-left:6px;font:600 12px Manrope,sans-serif;color:var(--muted)}
.tp-in .tp-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.tp-in .tp-grid.one{grid-template-columns:minmax(0,1fr)}
.tp-in .tp-h{font-size:13px;margin-bottom:4px}.tp-in .tp-h img{width:18px;height:18px}
.tp-in .list>li{grid-template-columns:14px minmax(0,1fr) auto;gap:8px;padding:7px 2px;min-width:0}
.tp-in .list .who{min-width:0;gap:8px}.tp-in .list .who>span{min-width:0}
.tp-in .list .who b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13.5px}
.tp-in .list .who small{font-size:11px}
.tp-in .list .meta{display:none}
.tp-in .tp-credit{margin-top:6px;font-size:11.5px}
@media (max-width:480px){.tp-in .tp-grid{gap:10px}.tp-in .list>li{grid-template-columns:minmax(0,1fr) auto}.tp-in .list .lrk{display:none}.tp-in .list .who svg,.tp-in .list .who img{width:22px;height:22px}.tp-in .list .who b{font-size:12.5px}}
/* FPL Copilot's banner under the Gameweek top fives (its numbers shown while the switch is on KFT) */
.tp-banner{margin-top:14px}.tp-banner .kft-copilot-bar{margin:0}
.tp-in .tp-banner .kft-copilot-note{display:none}
