/* CANCHA — shared football components, theme tokens and responsive workspace.
   BoardUI-inspired neutral surfaces and type; red identifies actions, green identifies gains. */
:root {
  --fx-bg: #f4f5f7; --fx-surface: #fff; --fx-ink: #14181f; --fx-ink2: #475066; --fx-ink3: #667085; --fx-rule: #dde1e8; --fx-accent: #0b6b3a; --fx-accent-ink: #fff;
  --fx-pos: #0b7a43; --fx-neg: #c0301f; --fx-warn: #9a6200; --fx-radius: 12px; --fx-font: 'DM Sans', system-ui, sans-serif; --fx-head: var(--fx-font);
  --fx-gk: #f1c24b; --fx-def: #4aa3df; --fx-mid: #5cc48a; --fx-fwd: #ef6f6c; --fx-line: rgba(255, 255, 255, .75);
  --fdr1: #1a7a42; --fdr1i: #fff; --fdr2: #93d29a; --fdr2i: #0d2615; --fdr3: #e3e5ea; --fdr3i: #1b1f27; --fdr4: #f6a76f; --fdr4i: #35170a; --fdr5: #c0392b; --fdr5i: #fff;
  --s0: #2563eb; --s1: #0d9488; --s2: #9333ea; --s3: #db2777; --s4: #65a30d; --s5: #d97706; --s6: #475569; --s7: #0891b2;
}
.fx-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* pitch */
.fx-pitch { position: relative; aspect-ratio: 100 / 115; display: flex; flex-direction: column; justify-content: space-around; padding: 3.5% 2%; overflow: hidden; border-radius: var(--fx-radius); isolation: isolate; }
.fx-pitch.small { max-width: 520px; margin: 14px auto 0; }
.fx-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.fx-row { display: flex; justify-content: space-around; align-items: center; position: relative; z-index: 1; }
.fx-slot { display: flex; justify-content: center; flex: 1 1 0; min-width: 0; }
.fx-slot.bench { flex: 0 0 auto; }
/* tiles */
.fx-player { all: unset; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; gap: 2px; width: var(--tile, 84px); max-width: 100%; text-align: center; cursor: pointer; position: relative; -webkit-user-drag: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.fx-player[data-fx-drag] { touch-action: none; cursor: grab; }
.fx-player:focus-visible { outline: 3px solid var(--fx-focus, #2563eb); outline-offset: 2px; border-radius: 8px; }
.fx-shirtwrap { position: relative; display: block; line-height: 0; } .fx-shirt { width: clamp(34px, 4.4vw, 54px); height: auto; display: block; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .3)); transition: transform .12s; }
.fx-player:hover .fx-shirt { transform: translateY(-2px) scale(1.04); }
.fx-name { font: 700 12px/1.15 var(--fx-font); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 2px 7px; border-radius: 5px; background: var(--fx-name-bg, #fff); color: var(--fx-name-ink, #111); }
.fx-pts, .fx-fix { font: 700 11px/1 var(--fx-font); padding: 3px 7px; border-radius: 5px; white-space: nowrap; }
.fx-pts { background: var(--fx-pts-bg, #14181f); color: var(--fx-pts-ink, #fff); min-width: 28px; text-align: center; } .fx-pts.hi { background: var(--fx-accent); color: var(--fx-accent-ink); } .fx-pts.lo { background: var(--fx-neg); color: #fff; }
.fx-pts.unk { background: repeating-linear-gradient(135deg, #d4d8e0 0 4px, #eceef3 4px 8px); color: #333; }
.fx-fix.fdr-1 { background: var(--fdr1); color: var(--fdr1i); } .fx-fix.fdr-2 { background: var(--fdr2); color: var(--fdr2i); } .fx-fix.fdr-3 { background: var(--fdr3); color: var(--fdr3i); } .fx-fix.fdr-4 { background: var(--fdr4); color: var(--fdr4i); } .fx-fix.fdr-5 { background: var(--fdr5); color: var(--fdr5i); }
.fx-flag { position: absolute; right: -6px; top: -4px; width: 17px; height: 17px; border-radius: 50%; display: grid; place-items: center; font: 800 11px/1 var(--fx-font); font-style: normal; background: #f59e0b; color: #1c1100; border: 2px solid #fff; } .fx-flag.injured, .fx-flag.suspended { background: #dc2626; color: #fff; }
.fx-player.sel .fx-shirt, .fx-player.sel .fx-avatar, .fx-player.sel.fx-card { filter: drop-shadow(0 0 0 transparent); }
.fx-player.sel { outline: 3px solid var(--fx-sel, #ffd23f); outline-offset: 4px; border-radius: 10px; }
.fx-player.can-drop { outline: 2px dashed var(--fx-drop, #ffffff); outline-offset: 4px; border-radius: 10px; }
.fx-player.hover-drop { outline: 3px solid var(--fx-drop, #fff); background: rgba(255, 255, 255, .18); border-radius: 10px; }
.fx-player.no-drop { opacity: .45; } .fx-player.dragging { opacity: .3; }
.fx-ghost { position: fixed; left: 0; top: 0; z-index: 500; pointer-events: none; opacity: .96; filter: drop-shadow(0 12px 14px rgba(0, 0, 0, .4)); outline: 0 !important; }
body.fx-dragging, body.fx-dragging * { cursor: grabbing !important; user-select: none; }
/* card tiles (Arena) */
.fx-card { width: var(--tile, 92px); padding: 7px 7px 6px; gap: 4px; background: var(--fx-card-bg, linear-gradient(160deg, #24304f, #141b30)); border: 1px solid var(--fx-card-bd, rgba(255, 255, 255, .18)); border-radius: 11px; box-shadow: 0 6px 16px rgba(0, 0, 0, .35); }
.fx-card .fx-card-top { display: flex; justify-content: space-between; align-items: center; width: 100%; position: relative; } .fx-card .fx-pos-tag { font: 800 10px/1 var(--fx-font); letter-spacing: .08em; padding: 3px 5px; border-radius: 4px; color: #0a0f1d; background: var(--pc, #fff); }
.fx-card[data-pos="GK"] { --pc: var(--fx-gk); } .fx-card[data-pos="DEF"] { --pc: var(--fx-def); } .fx-card[data-pos="MID"] { --pc: var(--fx-mid); } .fx-card[data-pos="FWD"] { --pc: var(--fx-fwd); }
.fx-card .fx-crest { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 800 10px/1 var(--fx-font); letter-spacing: .02em; background: linear-gradient(135deg, var(--c1) 50%, var(--c2) 50%); color: #fff; text-shadow: 0 1px 2px #000; border: 2px solid rgba(255, 255, 255, .7); }
.fx-card .fx-name { background: none; color: var(--fx-card-ink, #fff); padding: 0; font-size: 12.5px; } .fx-card .fx-card-foot { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 4px; } .fx-card .fx-avg { font: 700 12px var(--fx-font); color: var(--fx-card-ink, #fff); } .fx-card .fx-avg small { display: block; font-size: 8px; font-weight: 600; opacity: .6; text-transform: uppercase; letter-spacing: .06em; margin-top: -2px; }
.fx-card .fx-flag { right: -6px; top: -6px; position: static; margin-left: auto; width: 16px; height: 16px; }
/* dot tiles (Clean Sheet) */
.fx-dotp { gap: 5px; width: var(--tile, 76px); } .fx-avatar { position: relative; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font: 700 14px/1 var(--fx-font); background: #fff; color: #111; border: 2px solid var(--pc, #111); box-shadow: 0 1px 0 rgba(0, 0, 0, .06); }
.fx-avatar[data-pos="GK"] { --pc: var(--fx-gk); } .fx-avatar[data-pos="DEF"] { --pc: var(--fx-def); } .fx-avatar[data-pos="MID"] { --pc: var(--fx-mid); } .fx-avatar[data-pos="FWD"] { --pc: var(--fx-fwd); }
.fx-dotp .fx-name { background: none; padding: 0; color: var(--fx-name-ink, #111); font-size: 12.5px; } .fx-dotp:hover .fx-avatar { transform: translateY(-2px); } .fx-avatar { transition: transform .12s; }
/* bench */
.fx-bench { display: flex; flex-wrap: wrap; gap: 14px 22px; } .fx-bgroup { display: flex; align-items: center; gap: 10px; } .fx-blabel { font: 800 10.5px/1 var(--fx-font); letter-spacing: .1em; color: var(--fx-ink3); writing-mode: vertical-rl; transform: rotate(180deg); }
.fx-bitems { display: flex; gap: 8px; flex-wrap: wrap; }
/* controls */
.fx-formations { display: flex; flex-wrap: wrap; gap: 6px; } .fx-formation { all: unset; box-sizing: border-box; cursor: pointer; min-width: 58px; min-height: 40px; display: inline-grid; place-items: center; padding: 0 12px; border-radius: 8px; border: 1.5px solid var(--fx-rule); font: 700 14px var(--fx-font); background: var(--fx-surface); color: var(--fx-ink); } .fx-formation.on { background: var(--fx-accent); color: var(--fx-accent-ink); border-color: var(--fx-accent); } .fx-formation:disabled { cursor: not-allowed; opacity: .55; } .fx-formation:focus-visible, .fx-btn:focus-visible, .fx-gwchip:focus-visible, .fx-gwstep:focus-visible, .fx-cand:focus-visible, .fx-link:focus-visible { outline: 3px solid var(--fx-focus, #2563eb); outline-offset: 2px; }
.fx-toolbar { display: flex; flex-wrap: wrap; gap: 6px; } .fx-btn { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px; border-radius: 8px; border: 1.5px solid var(--fx-rule); background: var(--fx-surface); color: var(--fx-ink); font: 600 14px var(--fx-font); white-space: nowrap; } .fx-btn:hover:not(:disabled) { border-color: var(--fx-ink); } .fx-btn:disabled { opacity: .45; cursor: not-allowed; } .fx-btn.primary { background: var(--fx-accent); color: var(--fx-accent-ink); border-color: var(--fx-accent); }
.fx-count { background: rgba(255, 255, 255, .28); border-radius: 99px; padding: 1px 7px; font-size: 12px; }
.fx-hint { margin: 0; min-height: 1.4em; font-size: 13.5px; color: var(--fx-ink2); }
.fx-gwnav { display: flex; gap: 6px; align-items: stretch; overflow-x: auto; scrollbar-width: none; padding: 2px; } .fx-gwnav::-webkit-scrollbar { display: none; }
.fx-gwchip, .fx-gwstep { all: unset; box-sizing: border-box; cursor: pointer; flex: none; min-height: 48px; border-radius: 10px; border: 1.5px solid var(--fx-rule); background: var(--fx-surface); color: var(--fx-ink); display: grid; place-items: center; text-align: center; padding: 4px 12px; } .fx-gwstep { min-width: 40px; font-size: 22px; } .fx-gwstep:disabled { opacity: .35; cursor: not-allowed; }
.fx-gwchip b { font: 800 13px/1.1 var(--fx-font); } .fx-gwchip small { font: 600 11px/1.1 var(--fx-font); color: var(--fx-ink3); } .fx-gwchip.on { background: var(--fx-accent); border-color: var(--fx-accent); color: var(--fx-accent-ink); } .fx-gwchip.on small { color: inherit; opacity: .85; } .fx-gwchip.next:not(.on) { border-color: var(--fx-accent); }
.fx-selected { font-size: 14px; } .fx-selected p { margin: 0 0 8px; } .fx-sel-name b { font: 700 18px var(--fx-head); } .fx-sel-name span, .fx-sel-meta { color: var(--fx-ink2); } .fx-sel-h { font: 700 11px var(--fx-font); letter-spacing: .1em; text-transform: uppercase; color: var(--fx-ink3); margin-top: 10px !important; }
.fx-cands { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; } .fx-cand { all: unset; box-sizing: border-box; cursor: pointer; min-height: 44px; padding: 4px 12px; border-radius: 8px; border: 1.5px solid var(--fx-rule); background: var(--fx-surface); display: grid; } .fx-cand:hover { border-color: var(--fx-accent); } .fx-cand small { color: var(--fx-ink3); font-size: 11.5px; }
.fx-sel-actions { display: flex; gap: 6px; flex-wrap: wrap; } .fx-warn { margin: 10px 0 0; padding: 10px 12px 10px 28px; border-radius: 8px; background: #fff6e0; color: #5a3b00; font-size: 13px; } .fx-selected.empty p { color: var(--fx-ink2); }
.fx-unavailable { border: 1.5px dashed var(--fx-ink3); border-radius: var(--fx-radius); padding: 18px 20px; margin-bottom: 16px; background: repeating-linear-gradient(135deg, transparent 0 10px, rgba(0, 0, 0, .025) 10px 12px); } .fx-unavailable h3 { margin: 0 0 6px; font: 700 20px var(--fx-head); } .fx-unavailable p { margin: 0 0 6px; color: var(--fx-ink2); }
.fx-tw { overflow-x: auto; } .fx-table { width: 100%; border-collapse: collapse; } .fx-table th { text-align: left; font: 700 11px var(--fx-font); letter-spacing: .08em; text-transform: uppercase; color: var(--fx-ink3); padding: 10px 12px; border-bottom: 1.5px solid var(--fx-rule); white-space: nowrap; } .fx-table td { padding: 12px; border-bottom: 1px solid var(--fx-rule); vertical-align: middle; } .fx-table .r { text-align: right; } .fx-table td small { display: block; color: var(--fx-ink3); font-size: 12px; margin-top: 1px; } .fx-table tfoot td { font-weight: 700; border-top: 2px solid var(--fx-ink); border-bottom: 0; } .fx-foot-label { display: none; }
.fx-link { all: unset; cursor: pointer; font-weight: 700; border-bottom: 1px solid var(--fx-rule); } .fx-link:hover { border-color: var(--fx-accent); color: var(--fx-accent); }
.pos, .fx-table .pos { color: var(--fx-pos); } .neg, .fx-table .neg { color: var(--fx-neg); } .unk { color: var(--fx-ink3); }
.fx-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 99px; font: 700 11.5px/1.2 var(--fx-font); border: 1.5px solid var(--fx-rule); color: var(--fx-ink2); white-space: nowrap; background: var(--fx-surface); } .fx-chip.ok { color: var(--fx-pos); border-color: currentColor; } .fx-chip.bad { color: var(--fx-neg); border-color: currentColor; } .fx-chip.warn { color: var(--fx-warn); border-color: currentColor; } .fx-chip.unk { border-style: dashed; }
.fx-form { display: inline-flex; gap: 3px; } .fx-form i { font-style: normal; min-width: 22px; text-align: center; font: 700 11.5px/1 var(--fx-font); padding: 4px 3px; border-radius: 4px; background: #eceff4; color: #1b1f27; } .fx-form i.hi { background: var(--fx-accent); color: var(--fx-accent-ink); } .fx-form i.lo { background: #f9d3cd; color: #6a1810; } .fx-form i.none { background: repeating-linear-gradient(135deg, #d4d8e0 0 4px, #eceef3 4px 8px); }
.fx-spark { width: 90px; height: 26px; } .fx-spark path { fill: none; stroke: var(--fx-accent); stroke-width: 2; stroke-linejoin: round; } .fx-spark circle { fill: var(--fx-accent); }
/* charts */
.fx-chart { width: 100%; height: auto; display: block; overflow: visible; } .fx-chart text { font: 11px var(--fx-font); fill: var(--fx-ink3); } .fx-grid { stroke: var(--fx-rule); fill: none; } .fx-zero { stroke: var(--fx-ink3); stroke-dasharray: 3 3; fill: none; }
.fx-line { fill: none; stroke: var(--sc); stroke-width: 1.8; stroke-linejoin: round; opacity: .85; } .fx-series.own .fx-line { stroke-width: 3.2; opacity: 1; } .fx-pt { fill: var(--sc); } .fx-pt.own { fill: var(--fx-surface); stroke: var(--fx-accent); stroke-width: 2.4; } .fx-series .fx-end { fill: var(--sc); font-weight: 800; }
.fx-series.s0 { --sc: var(--s0); } .fx-series.s1 { --sc: var(--s1); } .fx-series.s2 { --sc: var(--s2); } .fx-series.s3 { --sc: var(--s3); } .fx-series.s4 { --sc: var(--s4); } .fx-series.s5 { --sc: var(--s5); } .fx-series.s6 { --sc: var(--s6); } .fx-series.s7 { --sc: var(--s7); }
.fx-series.own { --sc: var(--fx-accent) !important; } .fx-step { fill: none; stroke: var(--fx-accent); stroke-width: 2.6; } .fx-end.own { fill: var(--fx-accent); font: 800 13px var(--fx-font); } .fx-bar-pos { fill: var(--fx-pos); } .fx-bar-neg { fill: var(--fx-neg); } .fx-unk-a { fill: var(--fx-ink3); }
.fx-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 10px; font-size: 12.5px; color: var(--fx-ink2); } .fx-legend span { display: inline-flex; align-items: center; gap: 6px; } .fx-legend i { width: 10px; height: 10px; border-radius: 50%; background: var(--sc); } .fx-legend .s0 { --sc: var(--s0); } .fx-legend .s1 { --sc: var(--s1); } .fx-legend .s2 { --sc: var(--s2); } .fx-legend .s3 { --sc: var(--s3); } .fx-legend .s4 { --sc: var(--s4); } .fx-legend .s5 { --sc: var(--s5); } .fx-legend .s6 { --sc: var(--s6); } .fx-legend .s7 { --sc: var(--s7); }
.fx-posbars { display: grid; gap: 14px; } .fx-posrow { display: grid; grid-template-columns: 130px 70px minmax(0, 1fr); gap: 4px 12px; align-items: center; } .fx-poslab { font-weight: 700; display: inline-flex; gap: 8px; align-items: center; } .fx-poslab i { width: 10px; height: 10px; border-radius: 3px; background: var(--pcol); } .fx-posrow[data-pos="GK"] { --pcol: var(--fx-gk); } .fx-posrow[data-pos="DEF"] { --pcol: var(--fx-def); } .fx-posrow[data-pos="MID"] { --pcol: var(--fx-mid); } .fx-posrow[data-pos="FWD"] { --pcol: var(--fx-fwd); }
.fx-posval { font-weight: 700; text-align: right; } .fx-posbar { display: grid; gap: 3px; } .fx-posbar .v, .fx-posbar .q { display: block; height: 9px; border-radius: 3px; } .fx-posbar .v { background: var(--pcol); } .fx-posbar .q { background: transparent; box-shadow: inset 0 0 0 2px var(--pcol); } .fx-posshare { grid-column: 3; font-size: 12px; color: var(--fx-ink3); margin-top: -2px; }
/* dialogs */
#fx-dialog { padding: 0; border: 0; background: var(--fx-surface); color: var(--fx-ink); width: min(680px, calc(100vw - 20px)); max-height: calc(100vh - 20px); border-radius: 18px; box-shadow: 0 30px 80px rgba(0, 0, 0, .4); font-family: var(--fx-font); } #fx-dialog::backdrop { background: rgba(10, 14, 24, .6); }
.fx-dlg { padding: clamp(18px, 3vw, 28px); } .fx-dlg-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; } .fx-dlg-kicker { font: 800 11px var(--fx-font); letter-spacing: .14em; text-transform: uppercase; color: var(--fx-ink3); } .fx-x { all: unset; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--fx-rule); } .fx-x:hover { background: rgba(0, 0, 0, .06); } .fx-x:focus-visible { outline: 3px solid var(--fx-focus, #2563eb); }
.fx-dlg h2 { margin: 0; font: 800 clamp(26px, 4vw, 36px)/1.05 var(--fx-head); } .fx-dlg h3 { margin: 18px 0 8px; font: 700 15px var(--fx-head); } .fx-dlg p { margin: 4px 0 0; color: var(--fx-ink2); } .fx-sub { color: var(--fx-ink2); }
.fx-dlg-head { display: flex; gap: 16px; align-items: center; } .fx-dlg-shirt .fx-shirt { width: 64px; }
.fx-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 16px 0 4px; } .fx-kpis div { background: var(--fx-bg); border-radius: 10px; padding: 10px 12px; } .fx-kpis span { display: block; font: 700 10.5px var(--fx-font); letter-spacing: .08em; text-transform: uppercase; color: var(--fx-ink3); } .fx-kpis b { font: 800 22px var(--fx-head); }
.fx-wk { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; align-items: end; height: 118px; } .fx-wk div { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 3px; height: 100%; font: 700 12px var(--fx-font); } .fx-wk i { display: block; width: 100%; background: var(--fx-accent); border-radius: 4px 4px 0 0; min-height: 3px; } .fx-wk i.neg { background: var(--fx-neg); } .fx-wk i.none { background: repeating-linear-gradient(135deg, #cfd4de 0 4px, #eceef3 4px 8px); } .fx-wk .on i { box-shadow: 0 0 0 2px var(--fx-ink); } .fx-wk small { color: var(--fx-ink3); font-size: 10.5px; }
.fx-note { font-size: 12.5px; color: var(--fx-ink3) !important; margin-top: 8px !important; } .fx-fixrow { display: flex; gap: 6px; flex-wrap: wrap; } .fx-fixrow .fx-fix { display: grid; gap: 1px; padding: 6px 10px; text-align: center; } .fx-fixrow small { font-size: 9.5px; opacity: .8; }
.fx-dlg-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; justify-content: flex-end; } .fx-diff { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 12px; } .fx-diff p { padding: 8px 10px; border-radius: 8px; margin: 0 0 6px; } .fx-in { background: #e6f6ec; color: #0b4a28 !important; } .fx-out { background: #fdeceb; color: #6c1b12 !important; } .fx-none { color: var(--fx-ink3) !important; } .fx-warnline { background: #fff6e0; color: #5a3b00 !important; padding: 8px 12px; border-radius: 8px; font-size: 13.5px; }
.fx-empty { padding: 20px; color: var(--fx-ink3); text-align: center; }
.cc-tip { position: fixed; z-index: 600; background: #111827; color: #f9fafb; border-radius: 8px; padding: 7px 10px; font: 500 12.5px/1.4 var(--fx-font); max-width: 260px; pointer-events: none; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); } .cc-tip b { color: #fcd34d; }
#toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 14px); background: #111827; color: #fff; padding: 12px 18px; border-radius: 12px; font: 500 14px var(--fx-font); opacity: 0; pointer-events: none; transition: .25s; z-index: 700; max-width: calc(100vw - 24px); } #toast.on { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { * { transition-duration: 0s !important; animation: none !important; } }
@media (max-width: 760px) { .fx-kpis { grid-template-columns: 1fr 1fr; } .fx-diff { grid-template-columns: 1fr; } .fx-posrow { grid-template-columns: 100px 60px minmax(0, 1fr); } .hide-sm { display: none; } .fx-foot-label { display: table-cell; } .fx-shirt { width: 34px; } .fx-name { font-size: 11px; padding: 1px 5px; } .fx-pts, .fx-fix { font-size: 10px; padding: 2px 5px; } .fx-blabel { writing-mode: horizontal-tb; transform: none; } .fx-bgroup { flex-direction: column; align-items: flex-start; gap: 4px; } }
.fx-lines g { stroke-width: 2px !important; } .fx-lines g * { vector-effect: non-scaling-stroke; }

/* ---- market cards ---- */
/* Stand-in portraits and phone-app-style market cards (portrait, crest, position tag, availability, value and price, countdown, action). */
.fx-portrait { display: block; width: 100%; height: auto; }
.fx-portwrap { display: block; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: rgba(255, 255, 255, .12); border: 2px solid rgba(255, 255, 255, .55); } .fx-portwrap .fx-portrait { width: 100%; height: 100%; }
.fx-avatar { overflow: visible; } .fx-clip { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; background: #f1efe9; } .fx-clip .fx-portrait { width: 100%; height: 100%; }
.fx-dlg-photo { width: 92px; height: 92px; border-radius: 16px; overflow: hidden; background: var(--fx-bg); flex: none; } .fx-dlg-photo .fx-portrait { width: 100%; height: 100%; object-fit: cover; }
.fx-mcs { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 14px; }
.fx-mc { display: grid; grid-template-columns: 118px minmax(0, 1fr); border-radius: var(--mc-radius, 14px); overflow: hidden; background: var(--mc-bg, #fff); color: var(--mc-ink, var(--fx-ink)); border: 1px solid var(--mc-bd, var(--fx-rule)); box-shadow: var(--mc-shadow, none); min-width: 0; }
.fx-mc.mine { box-shadow: 0 0 0 2px var(--fx-accent); }
.fx-mc-img { position: relative; background: var(--mc-img, #e9edf3); display: flex; align-items: flex-end; justify-content: center; min-height: 148px; overflow: hidden; } .fx-mc-img .fx-portrait { width: 126%; max-width: none; margin: 0 -13% -6px; flex: none; }
.fx-mc-crest { position: absolute; right: 8px; top: 8px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 800 9px/1 var(--fx-font); color: #fff; text-shadow: 0 1px 2px #000; background: linear-gradient(135deg, var(--c1) 50%, var(--c2) 50%); border: 2px solid rgba(255, 255, 255, .85); }
.fx-mc-body { padding: 12px 14px 12px; display: grid; gap: 10px; min-width: 0; align-content: space-between; }
.fx-mc-body header { display: flex; align-items: center; gap: 8px; min-width: 0; }
.fx-mc-tag { font: 800 12px/1 var(--fx-font); letter-spacing: .04em; padding: 5px 8px; border-radius: 4px; color: #fff; background: var(--tg); flex: none; } .fx-mc-tag[data-pos="GK"] { --tg: #b45309; } .fx-mc-tag[data-pos="DEF"] { --tg: #7e22ce; } .fx-mc-tag[data-pos="MID"] { --tg: #2563eb; } .fx-mc-tag[data-pos="FWD"] { --tg: #b91c1c; }
.fx-mc-name { all: unset; cursor: pointer; font: 800 clamp(18px, 2.2vw, 22px)/1.1 var(--fx-head); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .fx-mc-name:hover { text-decoration: underline; text-underline-offset: 3px; } .fx-mc-name:focus-visible { outline: 3px solid var(--fx-focus, #2563eb); outline-offset: 2px; border-radius: 4px; }
.fx-mc-pts { margin-left: auto; display: flex; align-items: baseline; gap: 6px; flex: none; } .fx-mc-pts small { font: 700 11px var(--fx-font); letter-spacing: .08em; color: var(--mc-mut, var(--fx-ink3)); } .fx-mc-pts b { font: 800 30px/1 var(--fx-head); }
.fx-mc-mid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 14px; align-items: center; }
.fx-mc-status p { margin: 0; } .fx-mc-status .st { display: flex; align-items: center; gap: 8px; font: 600 15px var(--fx-font); } .fx-mc-status .st i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 800 12px/1 var(--fx-font); font-style: normal; color: #fff; flex: none; } .st.ok i { background: #16a34a; } .st.doubt i { background: #f5c20b; color: #1a1400; } .st.bad i { background: #dc2626; }
.fx-mc-status .sub { font-size: 12.5px; color: var(--mc-mut, var(--fx-ink3)); margin-top: 3px; }
.fx-mc-money { margin: 0; display: grid; gap: 4px; } .fx-mc-money div { display: flex; gap: 10px; justify-content: flex-end; align-items: baseline; } .fx-mc-money dt { font-size: 13px; color: var(--mc-mut, var(--fx-ink3)); } .fx-mc-money dd { margin: 0; font: 700 15px var(--fx-font); min-width: 96px; text-align: right; } .fx-mc-money dd.ask { font-weight: 800; }
.fx-mc-body footer { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; } .fx-mc-clock { display: inline-flex; align-items: center; gap: 7px; font: 600 15px var(--fx-font); color: var(--mc-mut, var(--fx-ink2)); } .fx-mc-clock svg { width: 20px; height: 20px; } .fx-mc-bids { font-size: 12px; color: var(--mc-mut, var(--fx-ink3)); }
.fx-mc-act { all: unset; box-sizing: border-box; cursor: pointer; margin-left: auto; min-height: 44px; min-width: 132px; padding: 0 20px; display: inline-grid; place-items: center; border-radius: var(--mc-btn-r, 6px); background: var(--mc-btn, var(--fx-accent)); color: var(--mc-btn-ink, var(--fx-accent-ink)); font: 800 17px var(--fx-font); } .fx-mc-act:hover { filter: brightness(1.08); } .fx-mc-act:focus-visible { outline: 3px solid var(--fx-focus, #2563eb); outline-offset: 2px; }
.fx-cashbar { display: none; align-items: center; justify-content: space-between; gap: 12px; padding: 0 18px; min-height: 52px; background: var(--cb-bg, var(--fx-accent)); color: var(--cb-ink, var(--fx-accent-ink)); font: 700 15px var(--fx-font); } .fx-cashbar b { font: 800 20px var(--fx-font); }
.fx-mc .fx-chip { font-size: 11px; padding: 2px 8px; }
@media (max-width: 760px) { .fx-mcs { grid-template-columns: minmax(0, 1fr); gap: 10px; } .fx-mc { grid-template-columns: 92px minmax(0, 1fr); } .fx-mc-img { min-height: 0; } .fx-mc-body { padding: 9px 11px 10px; gap: 6px; } .fx-mc-name { font-size: 19px; } .fx-mc-pts b { font-size: 24px; } .fx-mc-mid { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; align-items: start; } .fx-mc-status .st { font-size: 13.5px; } .fx-mc-status .st i { width: 19px; height: 19px; font-size: 11px; } .fx-mc-status .sub { display: none; } .fx-mc-money dd { min-width: 0; font-size: 14px; } .fx-mc-money div { gap: 8px; } .fx-mc-body footer { flex-wrap: nowrap; gap: 8px; } .fx-mc-bids { display: none; } .fx-mc-clock { font-size: 14px; } .fx-mc-act { min-width: 0; flex: 1 1 auto; margin-left: 0; min-height: 40px; font-size: 16px; } .fx-mc-crest { width: 24px; height: 24px; font-size: 7.5px; right: 5px; top: 6px; border-width: 1.5px; } .fx-cashbar { display: flex; position: fixed; left: 0; right: 0; bottom: var(--cb-bottom, 60px); z-index: 55; min-height: 46px; } .fx-cashbar b { font-size: 18px; } }
.fx-mc-name { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.02; }
@media (min-width: 761px) { .fx-mcs { grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); } }
@media (max-width: 760px) {
  .fx-mc-mid { grid-template-columns: minmax(0, 1fr); gap: 6px; } .fx-mc-status { display: flex; align-items: center; gap: 4px 10px; flex-wrap: wrap; }
  .fx-mc-money { grid-template-columns: 1fr 1fr; gap: 4px 10px; } .fx-mc-money div { flex-direction: column; align-items: flex-start; gap: 0; } .fx-mc-money dd { text-align: left; font-size: 14.5px; } .fx-mc-money dt { font-size: 11.5px; }
}

/* ---- shell, pages and components ---- */
/* Theme tokens. A single locally bundled family keeps the interface consistent. */
@font-face { font-family: 'DM Sans'; src: url('/assets/fonts/DMSans-8cd08d97e89c.woff2') format('woff2'); font-weight: 100 1000; font-display: swap; }
:root {
  color-scheme: light;
  --navy: #242522; --navy2: #363834; --lime: #c74335; --head-ink: #242522; --page: #f6f7f5; --soft: #e9ebe7; --soft2: #f3f4f1;
  --fx-bg: #f6f7f5; --fx-surface: #fff; --fx-ink: #242522; --fx-ink2: #52564e; --fx-ink3: #6b7067; --fx-rule: #e2e5de; --fx-accent: #c74335; --fx-accent-ink: #fff;
  --fx-pos: #0a7a43; --fx-neg: #bd2b1b; --fx-warn: #8f5c00; --fx-radius: 12px; --fx-font: 'DM Sans', system-ui, sans-serif; --fx-head: var(--fx-font);
  --fx-line: rgba(255, 255, 255, .8); --fx-name-bg: #fff; --fx-name-ink: #242522; --fx-pts-bg: #242522; --fx-pts-ink: #fff; --fx-sel: #ffd23f; --fx-drop: #fff; --fx-focus: #1d4ed8;
  --fx-gk: #f1c24b; --fx-def: #4aa3df; --fx-mid: #3fbf86; --fx-fwd: #ef6f6c;
  --grass1: #3b7554; --grass2: #356c4d; --tint-me: #faeee9; --callout-bg: #fff8e6; --callout-ink: #4a3600; --callout-bd: #e6a100; --chip-bg: #fff1c2; --chip-ink: #5a3b00;
  --s0: #2563eb; --s1: #0d9488; --s2: #9333ea; --s3: #db2777; --s4: #65a30d; --s5: #d97706; --s6: #64748b; --s7: #0891b2;
  --mc-bg: #fff; --mc-bd: #e2e5de; --mc-img: #ececf4; --mc-mut: #6b7067; --mc-btn: #c74335; --mc-btn-ink: #fff; --mc-shadow: 0 1px 2px rgba(17, 17, 31, .06); --cb-bg: #fff; --cb-ink: #141613; --cb-bottom: 66px;
  --tile: 98px; --sidebar-width: 224px; --fx-shadow: 0 1px 2px rgba(25, 30, 20, .03);
  --lime-ink: #fff; --fx-accent-text: #b6372a; --fx-pos-ink: #ffffff; --fx-trend: #52564e;
}
html[data-theme="dark"] {
  color-scheme: dark;
  --navy: #1c1f1b; --navy2: #292d27; --head-ink: #ffffff; --page: #141613; --soft: #30352e; --soft2: #252923;
  --lime: #ee8b7b; --lime-ink: #141613; --fx-accent-text: #ee8b7b; --fx-pos-ink: #141613;
  --fx-bg: #141613; --fx-surface: #1e211d; --fx-ink: #ffffff; --fx-ink2: #d1d5cd; --fx-ink3: #9ea698; --fx-rule: #363c33; --fx-accent: #ee8b7b; --fx-accent-ink: #141613;
  --fx-pos: #83d5a4; --fx-neg: #ff8a80; --fx-warn: #e3c06c; --fx-pts-bg: #ee8b7b; --fx-pts-ink: #141613; --fx-focus: #8ab4ff; --fx-name-bg: #ffffff; --fx-name-ink: #1c1f1b;
  --grass1: #2d5940; --grass2: #284f39; --tint-me: rgba(238, 139, 123, .10); --callout-bg: rgba(253, 213, 10, .1); --callout-ink: #fde68a; --callout-bd: #e3c06c; --chip-bg: rgba(253, 213, 10, .16); --chip-ink: #fde68a;
  --s0: #7fb2ff; --s1: #2dd4bf; --s2: #c084fc; --s3: #f472b6; --s4: #a3e635; --s5: #fbbf24; --s6: #cbd5e1; --s7: #22d3ee;
  --mc-bg: #1e211d; --mc-bd: #1e211d; --mc-img: #1c1f1b; --mc-mut: #9ea698; --mc-btn: #ee8b7b; --mc-btn-ink: #141613; --mc-shadow: none; --cb-bg: #292d27; --cb-ink: #fff;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--fx-ink); font: 400 15px/1.5 var(--fx-font); font-variant-numeric: tabular-nums; }
a { color: inherit; } .skip { position: absolute; left: -999px; top: 8px; background: #fff; color: #000; padding: 10px 14px; z-index: 100; border-radius: 8px; } .skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--fx-focus); outline-offset: 2px; }
.k-wrap { max-width: 1280px; margin: 0 auto; padding: 0 clamp(14px, 3vw, 32px); }
.k-ribbon { background: #00000a; color: #d7d9e8; font: 600 12px/1 var(--fx-font); } .k-ribbon .k-wrap { display: flex; justify-content: space-between; align-items: center; gap: 10px 14px; min-height: 36px; flex-wrap: wrap; padding-top: 5px; padding-bottom: 5px; } .k-ribbon b { color: #ffd979; text-transform: uppercase; letter-spacing: .08em; } .k-ctl { display: flex; gap: 12px 18px; align-items: center; flex-wrap: wrap; }
.k-seg { display: inline-flex; border: 1px solid #5a6a95; border-radius: 99px; overflow: hidden; margin-left: 6px; } .k-seg button { all: unset; cursor: pointer; padding: 6px 12px; font: 700 11.5px var(--fx-font); color: #d7d9e8; min-height: 28px; box-sizing: border-box; } .k-seg button[aria-pressed="true"] { background: #fff; color: #11111f; } .k-seg button:focus-visible { outline: 3px solid #ffd979; outline-offset: -3px; }
.k-ctl > .k-seg { margin-left: 0; }
.k-header { background: linear-gradient(180deg, var(--navy2), var(--navy)); color: #fff; border-bottom: 4px solid var(--lime); }
.k-head { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.k-head > .k-brand, .k-user { flex-shrink: 0; }
.k-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; } .k-brand i { width: 38px; height: 38px; border-radius: 50%; background: var(--lime); color: #11111f; display: grid; place-items: center; font: 700 26px/1 var(--fx-head); font-style: normal; } .k-brand b { font: 700 28px/1 var(--fx-head); letter-spacing: .08em; }
.k-nav { display: flex; gap: 2px; flex: 1; min-width: max-content; } .k-nav a { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 68px; padding: 0 8px; text-decoration: none; font: 700 14.5px var(--fx-font); color: #d7d9e8; border-bottom: 4px solid transparent; margin-bottom: -4px; white-space: nowrap; } .k-nav a svg { width: 19px; height: 19px; } .k-nav a:hover { color: #fff; background: rgba(255, 255, 255, .06); } .k-nav a[aria-current="page"] { color: #fff; border-bottom-color: #fff; background: rgba(255, 255, 255, .1); }
.k-badge { font: 800 11px/1 var(--fx-font); font-style: normal; background: var(--lime); color: #11111f; padding: 3px 6px; border-radius: 99px; }
.k-user { display: flex; align-items: center; gap: 8px; } .k-iconbtn { all: unset; cursor: pointer; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 21px; color: #d7d9e8; box-sizing: border-box; } .k-iconbtn:hover:not(:disabled) { background: rgba(255, 255, 255, .12); color: #fff; } .k-iconbtn:disabled { opacity: .45; cursor: not-allowed; } .k-iconbtn:focus-visible { outline: 3px solid var(--lime); }
.k-avatar { width: 40px; height: 40px; border-radius: 50%; background: #fff; color: #11111f; display: grid; place-items: center; font: 800 14px var(--fx-font); border: 2px solid var(--lime); }
.k-bar { background: var(--fx-surface); border-bottom: 1px solid var(--fx-rule); } .k-barin { display: flex; justify-content: space-between; align-items: center; gap: 12px 30px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.k-bar-main { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; } .k-bar-k { font: 700 22px var(--fx-head); letter-spacing: .04em; text-transform: uppercase; color: var(--head-ink); } .k-bar-main b { font-weight: 700; } .k-bar-in { background: var(--chip-bg); color: var(--chip-ink); padding: 3px 10px; border-radius: 99px; font: 700 12.5px var(--fx-font); }
.k-bar-stats { display: flex; gap: 6px 28px; flex-wrap: wrap; } .k-bar-stats span { display: grid; } .k-bar-stats small { font: 700 10px var(--fx-font); letter-spacing: .1em; text-transform: uppercase; color: var(--fx-ink3); } .k-bar-stats b { font-weight: 700; font-size: 14px; } .k-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #16a34a; margin-right: 6px; } .stale .k-dot { background: #dc2626; }
.k-main { padding-top: 24px; padding-bottom: 110px; }
.k-card { background: var(--fx-surface); border-radius: var(--fx-radius); border: 1px solid var(--fx-rule); padding: clamp(14px, 2vw, 22px); box-shadow: 0 1px 2px rgba(15, 26, 46, .05); min-width: 0; } .k-card + .k-card { margin-top: 16px; }
.k-card h1 { margin: 0; font: 700 34px/1 var(--fx-head); letter-spacing: .02em; text-transform: uppercase; color: var(--head-ink); } .k-card h2 { margin: 0 0 10px; font: 700 20px/1.1 var(--fx-head); letter-spacing: .03em; text-transform: uppercase; color: var(--head-ink); } .k-card h3 { margin: 0 0 6px; font: 700 15px var(--fx-font); } .k-h2 { margin-top: 20px !important; } .k-h2 small { font: 500 13px var(--fx-font); text-transform: none; letter-spacing: 0; color: var(--fx-ink3); margin-left: 8px; }
.k-ph { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; } .k-ph p { margin: 4px 0 0; color: var(--fx-ink2); } .k-ph-r { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .k-ph h2 { margin: 0; }
.k-link { font: 700 13.5px var(--fx-font); color: var(--fx-accent-text); text-decoration: none; } html[data-theme="dark"] .k-link { color: var(--lime); } .k-link:hover { text-decoration: underline; }
.k-unsaved { background: var(--chip-bg); color: var(--chip-ink); font: 700 12.5px var(--fx-font); padding: 6px 12px; border-radius: 99px; }
.k-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(300px, 4fr); gap: 20px; align-items: start; } .k-grid2 { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px; align-items: start; margin-top: 20px; } .k-grid2.even { grid-template-columns: 1fr 1fr; } .k-grid2 .k-card + .k-card, .k-col .k-card + .k-card { margin-top: 16px; } .k-grid2.even .k-card + .k-card { margin-top: 0; } .k-col { min-width: 0; }
.k-side { position: sticky; top: 12px; display: grid; gap: 16px; } .k-side .k-card + .k-card { margin-top: 0; }
.k-pitchwrap { margin: 14px 0 6px; max-width: 760px; margin-inline: auto; }
.fx-pitch { background: repeating-linear-gradient(180deg, var(--grass1) 0 11.11%, var(--grass2) 11.11% 22.22%); box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .18), 0 10px 24px rgba(10, 80, 40, .25); }
.k-bigpts { font: 700 84px/.9 var(--fx-head); color: var(--head-ink); } .k-bigpts small { font-size: 26px; margin-left: 6px; color: var(--fx-ink3); } .k-bigpts.sm { font-size: 54px; }
.k-dl { margin: 14px 0 0; display: grid; gap: 8px; } .k-dl div { display: flex; justify-content: space-between; border-top: 1px solid var(--fx-rule); padding-top: 8px; } .k-dl dt { color: var(--fx-ink2); } .k-dl dd { margin: 0; font-weight: 700; text-align: right; } .k-dl small { display: block; font-weight: 400; color: var(--fx-ink3); }
.k-note { font-size: 13px; color: var(--fx-ink3); margin: 10px 0 0; line-height: 1.45; } .k-note b { color: var(--fx-ink); }
.k-callout { margin: 14px 0 0; padding: 12px 16px; border-left: 4px solid var(--callout-bd); background: var(--callout-bg); border-radius: 0 10px 10px 0; font-size: 14px; color: var(--callout-ink); } .k-callout a { font-weight: 700; }
.k-table td, .k-table th { padding: 11px 12px; } .k-table tr.me td { background: var(--tint-me); } .k-rank { display: inline-block; min-width: 22px; font: 700 20px var(--fx-head); } .k-mv2 { font: 700 12px var(--fx-font); margin-left: 6px; } .k-strong { font-weight: 800; font-size: 16px; } .k-you { display: inline-block; background: var(--navy); color: #fff; font: 700 10px var(--fx-font); letter-spacing: .08em; padding: 2px 7px; border-radius: 4px; text-transform: uppercase; vertical-align: 1px; } html[data-theme="dark"] .k-you { background: var(--lime); color: #11111f; }
.k-seg2, .k-tabs { display: inline-flex; background: var(--soft); border-radius: 10px; padding: 3px; gap: 2px; flex-wrap: wrap; } .k-seg2 button, .k-tabs button { all: unset; box-sizing: border-box; cursor: pointer; min-height: 40px; padding: 0 16px; border-radius: 8px; font: 700 13.5px var(--fx-font); color: var(--fx-ink2); display: inline-grid; place-items: center; } .k-seg2 button[aria-pressed="true"], .k-tabs button[aria-pressed="true"] { background: var(--fx-surface); color: var(--head-ink); box-shadow: 0 1px 3px rgba(15, 26, 46, .22); } .k-seg2 button:focus-visible, .k-tabs button:focus-visible { outline: 3px solid var(--fx-focus); }
.k-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; } .k-facts div { display: grid; } .k-facts small { font: 700 10px var(--fx-font); letter-spacing: .1em; text-transform: uppercase; color: var(--fx-ink3); } .k-facts b { font: 700 24px/1.1 var(--fx-head); color: var(--head-ink); } .k-facts span { font-size: 12.5px; color: var(--fx-ink2); }
.k-filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; } .k-input { min-height: 44px; border: 1.5px solid var(--fx-rule); border-radius: 10px; padding: 0 12px; background: var(--fx-surface); font: 500 14px var(--fx-font); color: var(--fx-ink); min-width: 150px; } input.k-input { flex: 1; max-width: 300px; } .k-input option { background: var(--fx-surface); color: var(--fx-ink); }
.k-budget { text-align: right; } .k-budget small { display: block; font: 700 10px var(--fx-font); letter-spacing: .1em; text-transform: uppercase; color: var(--fx-ink3); } .k-budget b { font: 700 32px/1 var(--fx-head); color: var(--head-ink); }
.k-pl { display: flex; align-items: center; gap: 10px; } .k-pl small { display: block; } .k-face { display: block; flex: none; width: 36px; height: 36px; border-radius: 50%; overflow: hidden; background: var(--soft); border: 2px solid var(--fx-rule); } .k-face .fx-portrait { width: 100%; height: 100%; }
.k-pl .k-player-meta { display: flex; align-items: center; gap: 6px; min-height: 22px; }
.k-player-meta .k-pos-m { margin: 0; } .k-player-meta .k-pos { min-width: 32px; padding: 2px 4px; font-size: 10px; }
/* Availability sits on the face as a flag (as on the pitch), so a status never widens the player column. */
.k-face-wrap { position: relative; display: block; flex: none; } .k-face-wrap .fx-flag { right: -5px; top: -5px; width: 15px; height: 15px; font-size: 10px; border: 2px solid var(--fx-surface); }
.k-face-wrap .k-club-badge { position: absolute; right: -5px; bottom: -4px; width: 17px; height: 17px; border-radius: 50%; background: var(--fx-surface); box-shadow: 0 0 0 1.5px var(--fx-surface); } .k-face-wrap .k-club-badge img { inset: 1px; width: calc(100% - 2px); height: calc(100% - 2px); } .k-face-wrap .k-club-code { font-size: 6.5px; letter-spacing: -.02em; }
.k-price-m { display: none; font-weight: 700; color: var(--fx-ink2); font-variant-numeric: tabular-nums; }
@media (min-width: 761px) { .k-roster .k-pl small.k-player-meta { display: none; } }
@media (max-width: 760px) { .k-price-m { display: inline; } }
.k-club-badge { position: relative; display: inline-grid; place-items: center; width: 22px; height: 22px; flex: none; vertical-align: middle; }
.k-club-badge img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.k-club-code { font: 800 9px/1 var(--fx-font); color: var(--fx-ink2); }
.k-club-badge.has-image .k-club-code { visibility: hidden; }
.k-club-badge.image-unavailable .k-club-code { visibility: visible; }
.k-measures { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 14px; } .k-m { background: var(--soft2); border-radius: 12px; padding: 14px 18px; display: grid; gap: 2px; } .k-m.main { background: var(--navy); color: #fff; } .k-m.main small, .k-m.main span { color: #d7d9e8; } .k-m small { font: 700 10.5px var(--fx-font); letter-spacing: .1em; text-transform: uppercase; color: var(--fx-ink3); } .k-m b { font: 700 46px/1 var(--fx-head); } .k-m.main b.pos { color: #1fc23f; } .k-m.main b.neg { color: #ff9b8c; } .k-m span { font-size: 13px; color: var(--fx-ink2); }
.k-pick { display: grid; gap: 4px; } .k-pick span { font: 700 10.5px var(--fx-font); letter-spacing: .1em; text-transform: uppercase; color: var(--fx-ink3); }
.k-more { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; } .k-more .k-note { margin: 0; }
.k-foot { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--fx-ink3); padding-bottom: 36px; }
.k-tabbar { display: none; }
/* buttons */
.k-btn { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border-radius: 10px; border: 1.5px solid var(--fx-rule); background: var(--fx-surface); color: var(--fx-ink); font: 700 14.5px var(--fx-font); text-decoration: none; } .k-btn:hover { border-color: var(--fx-ink3); } .k-btn.primary { background: var(--fx-accent); border-color: var(--fx-accent); color: var(--fx-accent-ink); } .k-btn.sm { min-height: 40px; padding: 0 14px; font-size: 13.5px; } .k-btn:focus-visible { outline: 3px solid var(--fx-focus); outline-offset: 2px; }
/* home */
.k-welcome { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; background: linear-gradient(120deg, var(--navy2), var(--navy)); color: #fff; border: 0; border-bottom: 4px solid var(--lime); } .k-welcome h1 { color: #fff; font-size: clamp(34px, 5vw, 54px); text-transform: none; letter-spacing: -.01em; line-height: 1.02; margin-top: 4px; } .k-eyebrow { margin: 0; font: 700 12px var(--fx-font); letter-spacing: .16em; text-transform: uppercase; color: #ff7a73; }
.k-lead { margin: 10px 0 0; max-width: 62ch; color: #d3dcf3; font-size: 16.5px; } .k-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; } .k-welcome .k-btn { background: transparent; border-color: rgba(255, 255, 255, .45); color: #fff; } .k-welcome .k-btn.primary { background: var(--lime); border-color: var(--lime); color: #11111f; }
.k-count { text-align: center; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .22); border-radius: 16px; padding: 18px 26px; display: grid; gap: 2px; } .k-count small { font: 700 11px var(--fx-font); letter-spacing: .14em; text-transform: uppercase; color: #d7d9e8; } .k-count b { font: 700 62px/1 var(--fx-head); } .k-count span { font-size: 13px; color: #d7d9e8; }
.k-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 16px; } .k-kpi { background: var(--fx-surface); border: 1px solid var(--fx-rule); border-radius: 14px; padding: 14px 16px; display: grid; gap: 3px; align-content: start; min-width: 0; } .k-kpi.lock { border-style: dashed; } .k-kpi small { font: 700 10.5px var(--fx-font); letter-spacing: .1em; text-transform: uppercase; color: var(--fx-ink3); } .k-kpi b { font: 700 36px/1.05 var(--fx-head); color: var(--head-ink); white-space: nowrap; } .k-kpi b span { font: 600 15px var(--fx-font); color: var(--fx-ink3); } .k-kpi > span { font-size: 12.5px; color: var(--fx-ink2); }
.k-dchips { display: flex; gap: 6px; flex-wrap: wrap; } .k-dchip { font: 700 11.5px var(--fx-font); padding: 3px 8px; border-radius: 99px; } .k-dchip.up { background: rgba(10, 122, 67, .12); color: var(--fx-pos); } .k-dchip.dn { background: rgba(189, 43, 27, .12); color: var(--fx-neg); }
.k-xi { list-style: none; margin: 8px 0 0; padding: 0; display: grid; } .k-row { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 6px 4px; border-top: 1px solid var(--fx-rule); cursor: pointer; } .k-xi li:first-child .k-row { border-top: 0; } .k-row:hover { background: var(--soft2); } .k-row:focus-visible { outline: 3px solid var(--fx-focus); outline-offset: -2px; border-radius: 8px; } .k-rname { flex: 1; min-width: 0; display: grid; } .k-rname small { color: var(--fx-ink3); font-size: 12.5px; } .k-price { text-align: right; display: grid; gap: 3px; justify-items: end; } .k-price b { font: 700 18px var(--fx-head); }
.k-mini td { padding: 10px 8px; } .k-mini tr.me td { background: var(--tint-me); }
.k-movers { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; } .k-mv { all: unset; box-sizing: border-box; width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 52px; border-top: 1px solid var(--fx-rule); cursor: pointer; padding: 4px 2px; } .k-mv small { display: block; color: var(--fx-ink3); font-size: 12px; } .k-mv b { font: 700 18px var(--fx-font); } .k-mv:hover { background: var(--soft2); } .k-mv:focus-visible { outline: 3px solid var(--fx-focus); outline-offset: -2px; }
.k-feed { list-style: none; margin: 0; padding: 0; } .k-feed li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--fx-rule); } .k-feed li:first-child { border-top: 0; } .k-feed li > span:nth-child(2) { flex: 1; display: grid; } .k-feed small { color: var(--fx-ink3); font-size: 12.5px; } .k-feed-i { font: 800 10px var(--fx-font); letter-spacing: .08em; text-transform: uppercase; background: var(--soft); border-radius: 6px; padding: 4px 8px; color: var(--fx-ink2); }
/* podium */
.k-podium { display: grid; grid-template-columns: 1fr 1.12fr 1fr; gap: 16px; align-items: end; margin-top: 4px; } .k-step { all: unset; box-sizing: border-box; cursor: pointer; position: relative; overflow: hidden; border-radius: 16px 16px 6px 6px; padding: 20px 20px 16px; display: grid; gap: 2px; min-height: 190px; align-content: end; border: 2px solid var(--navy); background: linear-gradient(160deg, #e3e9f7, #cfd8ee); color: #11111f; } .k-step.r1 { min-height: 232px; background: linear-gradient(160deg, #ffe58a, #f5c93a); } .k-step.r2 { background: linear-gradient(160deg, #ffffff, #cdd6ec); } .k-step.r3 { background: linear-gradient(160deg, #ffcfae, #f0a574); }
.k-step:hover { transform: translateY(-3px); } .k-step:focus-visible { outline: 3px solid var(--fx-focus); outline-offset: 3px; } .k-step.me { box-shadow: 0 0 0 3px var(--fx-accent); } .k-num { position: absolute; right: 10px; top: -18px; font: 700 150px/1 var(--fx-head); opacity: .16; pointer-events: none; } .k-step em { position: absolute; left: 14px; top: 12px; font: 800 10.5px var(--fx-font); font-style: normal; letter-spacing: .12em; text-transform: uppercase; background: var(--navy); color: var(--lime); padding: 3px 9px; border-radius: 99px; } .k-step b { font: 700 25px/1.05 var(--fx-head); text-transform: uppercase; letter-spacing: .03em; position: relative; } .k-sp { font: 700 64px/.95 var(--fx-head); position: relative; } .k-sp small { font-size: 18px; margin-left: 5px; opacity: .7; } .k-ss { font-size: 13px; position: relative; opacity: .85; }
/* offers */
.k-measures3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; } .k-measures3 div { background: var(--soft2); border-radius: 12px; padding: 12px 16px; display: grid; } .k-measures3 small { font: 700 10.5px var(--fx-font); letter-spacing: .1em; text-transform: uppercase; color: var(--fx-ink3); } .k-measures3 b { font: 700 38px/1.05 var(--fx-head); color: var(--head-ink); } .k-measures3 span { font-size: 12.5px; color: var(--fx-ink2); }
.k-sale { margin-top: 14px !important; padding: 16px 18px; } .k-sale-h { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; } .k-sale-h .k-face { width: 56px; height: 56px; } .k-sale-h h3 { font: 700 24px/1 var(--fx-head); text-transform: uppercase; margin: 0; } .k-sale-h p { margin: 2px 0 0; color: var(--fx-ink3); font-size: 13px; } .k-sale-m { margin: 0 0 0 auto; display: flex; gap: 8px 22px; flex-wrap: wrap; } .k-sale-m div { display: grid; } .k-sale-m dt { font: 700 10px var(--fx-font); letter-spacing: .1em; text-transform: uppercase; color: var(--fx-ink3); } .k-sale-m dd { margin: 0; font: 700 16px var(--fx-font); }
.k-offers { margin-top: 10px; } .k-decide { display: inline-flex; gap: 6px; }
.k-sort { all: unset; cursor: pointer; display: inline-flex; gap: 4px; } .k-sort:focus-visible { outline: 3px solid var(--fx-focus); outline-offset: 3px; } th[aria-sort] .k-sort { color: var(--fx-accent-text); } html[data-theme="dark"] th[aria-sort] .k-sort { color: var(--lime); }
.k-quick { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; } .k-quick button { all: unset; box-sizing: border-box; cursor: pointer; min-height: 40px; padding: 0 14px; border-radius: 99px; border: 1.5px solid var(--fx-rule); font: 700 13px var(--fx-font); display: inline-grid; place-items: center; } .k-quick button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; } html[data-theme="dark"] .k-quick button[aria-pressed="true"] { background: var(--lime); border-color: var(--lime); color: #11111f; } .k-quick button:focus-visible { outline: 3px solid var(--fx-focus); outline-offset: 2px; }
.k-chg { display: block; font: 700 13px var(--fx-font); white-space: nowrap; } .k-chg.up { color: var(--fx-pos); } .k-chg.dn { color: var(--fx-neg); } .k-c small { display: block; font-size: 11.5px; margin-top: 0; } .k-players td { padding: 9px 10px; }
/* pitch tiles */
.fx-shirt { width: clamp(40px, 5vw, 62px); } .fx-name { font-size: 13px; }
.fx-photo { gap: 3px; } .fx-photowrap { position: relative; display: block; width: clamp(48px, 5.4vw, 66px); aspect-ratio: 1; border-radius: 50%; border: 3px solid #fff; background: #dfe6f2; box-shadow: 0 3px 8px rgba(0, 0, 0, .3); } .fx-bench .fx-photowrap { border-color: var(--pcol, #fff); } .fx-photowrap[data-pos="GK"] { --pcol: var(--fx-gk); } .fx-photowrap[data-pos="DEF"] { --pcol: var(--fx-def); } .fx-photowrap[data-pos="MID"] { --pcol: var(--fx-mid); } .fx-photowrap[data-pos="FWD"] { --pcol: var(--fx-fwd); }
.fx-photo:hover .fx-photowrap { transform: translateY(-2px); } .fx-photowrap { transition: transform .12s; } .fx-player.sel .fx-photowrap { box-shadow: 0 0 0 4px var(--fx-sel); } .fx-player.hover-drop .fx-photowrap, .fx-player.can-drop .fx-photowrap { box-shadow: 0 0 0 3px rgba(255, 255, 255, .9); }
.k-inline { display: none; margin-top: 4px; } .k-inline-tools { margin-top: 12px; }
/* dark: shared components */
html[data-theme="dark"] .fx-form i { background: #34374d; color: #ffffff; } html[data-theme="dark"] .fx-form i.lo { background: #5a2b2b; color: #ffd7d0; } html[data-theme="dark"] .fx-form i.none, html[data-theme="dark"] .fx-wk i.none { background: repeating-linear-gradient(135deg, #4a4d68 0 4px, #34374d 4px 8px); } html[data-theme="dark"] .fx-pts.unk { background: repeating-linear-gradient(135deg, #4a4d68 0 4px, #34374d 4px 8px); color: #ffffff; }
html[data-theme="dark"] .fx-warn { background: rgba(243, 194, 91, .12); color: #f3dca0; } html[data-theme="dark"] .fx-in { background: rgba(74, 222, 155, .14); color: #a7f3d0 !important; } html[data-theme="dark"] .fx-out { background: rgba(255, 138, 122, .14); color: #ffd0c8 !important; } html[data-theme="dark"] .fx-warnline { background: rgba(243, 194, 91, .12); color: #f3dca0 !important; } html[data-theme="dark"] .fx-kpis div { background: #1a1b2c; }
html[data-theme="dark"] .fx-unavailable { background: repeating-linear-gradient(135deg, transparent 0 10px, rgba(255, 255, 255, .03) 10px 12px); } html[data-theme="dark"] .fx-formation, html[data-theme="dark"] .fx-btn, html[data-theme="dark"] .fx-gwchip, html[data-theme="dark"] .fx-gwstep, html[data-theme="dark"] .fx-cand { background: #232433; color: #ffffff; } html[data-theme="dark"] .fx-formation.on, html[data-theme="dark"] .fx-btn.primary, html[data-theme="dark"] .fx-gwchip.on { background: var(--fx-accent); color: #fff; }
html[data-theme="dark"] .fx-gwchip.next:not(.on) { border-color: var(--lime); } html[data-theme="dark"] .k-dchip.up { background: rgba(74, 222, 155, .14); } html[data-theme="dark"] .k-dchip.dn { background: rgba(255, 138, 122, .14); } html[data-theme="dark"] .k-step { color: #11111f; }
html[data-theme="dark"] #fx-dialog { background: #232433; color: #ffffff; border: 1px solid #34374d; } html[data-theme="dark"] .fx-x { border-color: #34374d; color: #ffffff; } html[data-theme="dark"] .fx-pitch { box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .12), 0 10px 24px rgba(0, 0, 0, .4); }
html[data-theme="dark"] .fx-spark path { stroke: var(--lime); } html[data-theme="dark"] .fx-spark circle { fill: var(--lime); }
@media (max-width: 1180px) { .k-nav a { padding: 0 10px; gap: 6px; font-size: 14px; } .k-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1060px) { .k-grid, .k-grid2, .k-grid2.even { grid-template-columns: minmax(0, 1fr); } .k-side { position: static; } .k-measures, .k-measures3 { grid-template-columns: 1fr; } .k-bar-stats { display: none; } .k-inline { display: block; } .k-desk { display: none; } .k-welcome { grid-template-columns: minmax(0, 1fr); } .k-count { justify-self: start; } .k-sale-m { margin-left: 0; } }
/* Keep translated navigation labels clear of every account control, including the admin buttons. */
@media (min-width: 761px) and (max-width: 1280px) {
  .k-head { flex-wrap: wrap; gap: 0 16px; padding-top: 8px; }
  .k-user { margin-left: auto; }
  .k-nav { order: 3; flex-basis: 100%; justify-content: center; }
  .k-nav a { height: 52px; padding-inline: 8px; }
}
@media (max-width: 760px) {
  :root { --tile: 62px; } body { font-size: 14.5px; }
  .k-nav { display: none; } .k-head { min-height: 58px; } .k-user { margin-left: auto; } .k-header { border-bottom-width: 3px; }
  .k-main { padding-top: 14px; padding-bottom: 96px; } .k-card h1 { font-size: 28px; } .k-bigpts { font-size: 64px; } .k-m b { font-size: 38px; } .k-count b { font-size: 48px; } .k-kpis { grid-template-columns: 1fr 1fr; gap: 8px; } .k-kpi b { font-size: 30px; } .k-kpi:last-child:nth-child(odd) { grid-column: span 2; }
  .k-pitchwrap { margin-inline: -6px; } .fx-pitch { padding: 4% 0; } .fx-shirt { width: 36px; } .fx-name { font-size: 11px; } .fx-photowrap { width: 42px; border-width: 2.5px; }
  .k-tabbar { display: grid; grid-template-columns: repeat(6, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--fx-surface); border-top: 1px solid var(--fx-rule); box-shadow: 0 -6px 20px rgba(15, 26, 46, .12); padding: 4px 2px calc(4px + env(safe-area-inset-bottom)); } .k-tabbar a { display: grid; justify-items: center; gap: 2px; padding: 6px 0; text-decoration: none; color: var(--fx-ink3); font: 700 10.5px var(--fx-font); min-height: 54px; align-content: center; border-radius: 10px; } .k-tabbar a svg { width: 21px; height: 21px; } .k-tabbar a[aria-current="page"] { color: var(--head-ink); background: var(--soft); }
  .k-facts { grid-template-columns: 1fr; } #toast { bottom: 76px; } .k-filters input.k-input, .k-filters select.k-input { flex: 1 1 140px; max-width: none; }
  .k-ph { flex-direction: column; } .k-budget { text-align: left; } .k-podium { grid-template-columns: 1fr; align-items: stretch; } .k-step, .k-step.r1 { min-height: 0; grid-template-columns: 1fr auto; align-items: center; gap: 2px 12px; padding: 14px 16px; } .k-step.r1 { order: 1; } .k-step.r2 { order: 2; } .k-step.r3 { order: 3; } .k-sp { grid-row: 1 / span 2; grid-column: 2; font-size: 48px; text-align: right; } .k-num { font-size: 90px; right: 90px; top: -10px; } .k-step em { position: static; justify-self: start; } .k-step b { font-size: 21px; }
  .k-movers { grid-template-columns: 1fr; } .k-welcome { padding: 18px; } .k-sale-h { align-items: flex-start; } .k-decide { flex-direction: column; } .k-cta .k-btn { flex: 1 1 100%; }
  :root { --cb-bottom: 62px; }
}

.k-chg.flat { color: var(--fx-ink3); font-weight: 600; font-size: 12px; }

/* Table wrapper must be a containing block so absolutely positioned cell content cannot widen the page on phones. */
.fx-tw { position: relative; max-width: 100%; }

/* Phone filters keep readable labels. */
@media (max-width: 760px) {
  .k-filters input.k-input { flex: 1 1 100%; } .k-filters select.k-input { flex: 1 1 calc(50% - 5px); min-width: 0; font-size: 13px; padding: 0 8px; text-overflow: ellipsis; }
}

/* dark: LaLiga app palette overrides */
html[data-theme="dark"] .k-ribbon { background: #00000a; color: #d7d9e8; }
html[data-theme="dark"] .k-header { background: #11111f; }
html[data-theme="dark"] .k-card { box-shadow: none; border-color: #232433; }
html[data-theme="dark"] .k-m.main { border: 1px solid #34374d; }
html[data-theme="dark"] .k-welcome { background: linear-gradient(120deg, #2c2e44, #232433); border: 0; border-bottom: 4px solid var(--lime); }
html[data-theme="dark"] .k-brand i, html[data-theme="dark"] .k-badge, html[data-theme="dark"] .k-welcome .k-btn.primary, html[data-theme="dark"] .k-you, html[data-theme="dark"] .k-quick button[aria-pressed="true"] { color: var(--lime-ink); }
html[data-theme="dark"] .fx-formation.on, html[data-theme="dark"] .fx-btn.primary, html[data-theme="dark"] .fx-gwchip.on, html[data-theme="dark"] .k-btn.primary { background: var(--fx-accent); border-color: var(--fx-accent); color: var(--fx-accent-ink); }
html[data-theme="dark"] .fx-spark path { stroke: #c9ccdd; } html[data-theme="dark"] .fx-spark circle { fill: #c9ccdd; }
html[data-theme="dark"] .k-tabbar { background: #11111f; border-top-color: #232433; box-shadow: none; }
html[data-theme="dark"] .fx-cashbar b, html[data-theme="dark"] .fx-cashbar span { color: var(--cb-ink); }
/* dark: red is the action colour only; good news stays green, own-data bars stay neutral */
html[data-theme="dark"] .k-m.main b.pos { color: var(--fx-pos); }
html[data-theme="dark"] .fx-pts.hi, html[data-theme="dark"] .fx-form i.hi { background: var(--fx-pos); color: #00000a; }
html[data-theme="dark"] .fx-step { stroke: var(--fx-pos); } html[data-theme="dark"] .fx-wk i { background: #c9ccdd; }
html[data-theme="dark"] { --fx-trend: #c9ccdd; }
html[data-theme="dark"] .fx-chart:has(.fx-step) .fx-pt.own { stroke: var(--fx-pos); } html[data-theme="dark"] .fx-chart:has(.fx-step) .fx-end.own { fill: var(--fx-pos); }

/* both themes: app look */
.k-header { background: #11111f; }
.k-ribbon { background: #00000a; }
.k-brand i, .k-badge, .k-welcome .k-btn.primary { color: var(--lime-ink); }
.fx-formation.on, .fx-btn.primary, .fx-gwchip.on { background: var(--fx-accent); border-color: var(--fx-accent); color: var(--fx-accent-ink); }
.fx-pts.hi, .fx-form i.hi { background: var(--fx-pos); color: var(--fx-pos-ink); }
.fx-step { stroke: var(--fx-pos); } .fx-chart:has(.fx-step) .fx-pt.own { stroke: var(--fx-pos); } .fx-chart:has(.fx-step) .fx-end.own { fill: var(--fx-pos); }
.fx-end.own { fill: var(--fx-accent-text); } .fx-link:hover { color: var(--fx-accent-text); }
.fx-wk i { background: var(--fx-trend); } .fx-spark path { stroke: var(--fx-trend); } .fx-spark circle { fill: var(--fx-trend); }
.k-tabbar [aria-current="page"], .k-tabbar .on { color: var(--fx-ink); }

/* squad management */
.k-squad { margin-top: 20px; } .k-h2b { margin: 0; } .k-squad .k-ph p { margin: 2px 0 0; color: var(--fx-ink2); }
.k-sqt td { vertical-align: middle; padding: 10px 12px; } .k-sqt tr.sold td { opacity: .5; } .k-sqt small { display: block; color: var(--fx-ink3); font-size: 12px; } .k-sqt small.pos { color: var(--fx-pos); font-weight: 700; } .k-sqt small.k-shield { color: var(--fx-warn); font-weight: 700; }
.k-sqact { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; } .k-sqact.c { justify-content: flex-start; } .k-manage { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--fx-rule); } .k-manage h3 { margin: 0 0 8px; font: 700 14px var(--fx-font); }
.k-btn[disabled], .fx-btn[disabled] { opacity: .45; cursor: not-allowed; }
.k-field { display: grid; gap: 6px; margin: 14px 0 8px; } .k-field span { font: 700 13px var(--fx-font); color: var(--fx-ink2); } .k-field .k-input { max-width: 280px; font-size: 16px; }
.k-chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 10px; } .k-chip { all: unset; box-sizing: border-box; cursor: pointer; min-height: 36px; padding: 0 12px; border-radius: 99px; border: 1.5px solid var(--fx-rule); font: 700 13px var(--fx-font); color: var(--fx-ink); display: inline-grid; place-items: center; } .k-chip:hover { border-color: var(--fx-ink3); } .k-chip:focus-visible { outline: 3px solid var(--fx-focus); outline-offset: 2px; }

/* =================================================================================================
   Real-app additions: everything the mockup did not need (icons, crests, metric cards, legends, statistics charts,
   status banners, login, forms, dialog details). Uses the same tokens as the rest of the file.
   ================================================================================================= */
.ico { width: 1.25em; height: 1.25em; flex: none; }
.k-iconbtn { display: inline-grid; } .k-iconbtn .ico { width: 22px; height: 22px; }
.k-iconbtn.wide { width: auto; padding: 0 14px; grid-auto-flow: column; gap: 8px; border-radius: 99px; font: 600 13.5px var(--fx-font); } .k-iconbtn.wide .ico { width: 18px; height: 18px; }
.k-iconbtn.busy { opacity: .7; }
.k-nav .ico, .k-tabbar .ico { width: 22px; height: 22px; }
.spin { animation: cc-spin 1s linear infinite; } @keyframes cc-spin { to { transform: rotate(360deg); } }
.k-input.sm { min-height: 34px; padding: 0 8px; font-size: 13px; min-width: 120px; background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .25); } .k-input.sm option { color: #111; }
.fresh-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #1fc23f; margin-right: 6px; } .k-bar-stats .stale .fresh-dot { background: #fdd50a; }
.k-liveprompt { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 16px; }
.boot { min-height: 70vh; display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center; padding: 24px; } .brand-mark { width: 64px; height: 64px; border-radius: 50%; background: var(--fx-accent); color: var(--fx-accent-ink); display: grid; place-items: center; font: 800 40px var(--fx-head); }
.k-empty { text-align: center; display: grid; justify-items: center; gap: 4px; } .k-empty .ico { width: 34px; height: 34px; color: var(--fx-ink3); }
.k-loading { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 28px 12px; color: var(--fx-ink2); } .k-loading .ico { width: 34px; height: 34px; }
.k-callout.bad { border-left-color: var(--fx-neg); }

/* metric cards (used by every secondary view) */
.metric { background: var(--soft2); border-radius: 12px; padding: 14px 16px; display: grid; gap: 5px; align-content: start; min-width: 0; }
.metric span { font: 700 10.5px var(--fx-font); letter-spacing: .1em; text-transform: uppercase; color: var(--fx-ink3); }
.metric strong { font: 800 clamp(24px, 3vw, 34px)/1.05 var(--fx-head); color: var(--head-ink); overflow-wrap: anywhere; } .metric small { color: var(--fx-ink2); font-size: 12.5px; }
.k-measures3 .metric { padding: 14px 16px; }
.k-measures4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
html[data-theme="dark"] .metric { background: #1a1b2c; }

/* league */
.k-crest { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--club-a) 50%, var(--club-b) 50%); color: #fff; font: 800 10px/1 var(--fx-font); text-shadow: 0 1px 2px rgba(0, 0, 0, .6); flex: none; border: 2px solid rgba(255, 255, 255, .7); } .k-crest.large { width: 56px; height: 56px; font-size: 16px; }
.k-manager { display: inline-flex !important; align-items: center; gap: 10px; border-bottom: 0 !important; text-align: left; }
.k-vbars { display: grid; gap: 6px; } .k-vbars button { all: unset; cursor: pointer; display: grid; grid-template-columns: minmax(80px, 150px) minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 4px; border-radius: 8px; } .k-vbars button:hover { background: var(--soft2); } .k-vbars button:focus-visible { outline: 3px solid var(--fx-focus); }
.k-vbars i { display: block; height: 10px; background: var(--soft); border-radius: 99px; overflow: hidden; } .k-vbars u { display: block; height: 100%; background: var(--fx-ink3); border-radius: 99px; text-decoration: none; } .k-vbars button.me u { background: var(--fx-accent); } .k-vbars b { font: 700 14px var(--fx-font); } .k-vbars span { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.k-roster .k-acts, .k-sqt .k-acts { white-space: nowrap; }
.k-legend { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 12px; }
.k-lg { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 12px; border-radius: 99px; border: 1.5px solid var(--fx-rule); font: 600 13px var(--fx-font); color: var(--fx-ink2); opacity: .6; } .k-lg.on { opacity: 1; color: var(--fx-ink); border-color: var(--sc); } .k-lg:focus-visible { outline: 3px solid var(--fx-focus); } .k-lg i { width: 10px; height: 10px; border-radius: 50%; background: var(--sc); } .k-lg b { font: 800 10px var(--fx-font); letter-spacing: .08em; background: var(--fx-accent); color: var(--fx-accent-ink); padding: 2px 6px; border-radius: 4px; }
.k-lg.s0 { --sc: var(--s0); } .k-lg.s1 { --sc: var(--s1); } .k-lg.s2 { --sc: var(--s2); } .k-lg.s3 { --sc: var(--s3); } .k-lg.s4 { --sc: var(--s4); } .k-lg.s5 { --sc: var(--s5); } .k-lg.s6 { --sc: var(--s6); } .k-lg.s7 { --sc: var(--s7); }
.points-chart-scroll { overflow-x: auto; } .points-chart { min-width: 560px; } .history-chart { overflow-x: auto; } .history-chart svg { min-width: 560px; }
.weekly-points-table td, .weekly-points-table th { white-space: nowrap; } .points-high { font-weight: 800; color: var(--fx-pos); }
.k-check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; } .k-check input { width: 18px; height: 18px; accent-color: var(--fx-accent); }

/* matchday */
.k-field.inline { display: inline-grid; grid-auto-flow: column; align-items: center; gap: 8px; margin: 0; } .k-field.inline span { white-space: nowrap; }
.k-weekly { display: grid; } .k-weekly button { all: unset; cursor: pointer; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 8px; border-bottom: 1px solid var(--fx-rule); } .k-weekly button:hover { background: var(--soft2); } .k-weekly button.on { background: var(--tint-me); } .k-weekly b { font: 800 18px var(--fx-head); } .k-weekly span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .k-weekly button:focus-visible { outline: 3px solid var(--fx-focus); }
.k-fixtures { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; } .k-fixture { background: var(--soft2); border-radius: 12px; padding: 12px 14px; display: grid; gap: 4px; } .k-fixture div { display: flex; justify-content: space-between; gap: 8px; } .k-fixture-d { font: 700 11px var(--fx-font); letter-spacing: .08em; text-transform: uppercase; color: var(--fx-ink3); } .k-fixture p { margin: 4px 0 0; font-size: 12.5px; color: var(--fx-ink2); }

/* status banners, forms, login */
.k-status { display: flex; justify-content: space-between; align-items: center; gap: 12px 18px; flex-wrap: wrap; background: var(--fx-surface); border: 1px solid var(--fx-rule); border-left: 4px solid var(--fx-accent); border-radius: var(--fx-radius); padding: 12px 16px; margin-bottom: 14px; } .k-status.stale { border-left-color: var(--fx-warn); } .k-status p { margin: 2px 0 0; color: var(--fx-ink2); font-size: 13.5px; } .k-status-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.k-form { display: grid; gap: 4px; } .form-error { color: var(--fx-neg); font-size: 13.5px; min-height: 1.2em; margin: 4px 0; font-weight: 600; }
.k-btn.wide { width: 100%; margin-top: 8px; }
@font-face { font-family: 'Google Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('./fonts/GoogleSans-Medium-81af36b42b8c.woff2') format('woff2'); }
.k-btn.k-google-sign-in { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 10px 12px; background: #fff; color: #1f1f1f; border: 1px solid #747775; border-radius: 20px; font: 500 14px/20px 'Google Sans', Arial, sans-serif; letter-spacing: .25px; }
.k-btn.k-google-sign-in:hover { background: #f8faff; color: #1f1f1f; border-color: #747775; }
.k-google-sign-in img { flex: 0 0 20px; object-fit: contain; }
.k-login { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); min-height: 100vh; }
.k-login-story { background: #11111f; color: #fff; padding: clamp(24px, 5vw, 64px); display: grid; align-content: space-between; gap: 32px; background-image: radial-gradient(circle at 80% 20%, rgba(255, 75, 68, .18), transparent 45%); }
.k-login-story .k-brand b { color: #fff; } .k-login-copy h1 { font: 800 clamp(44px, 6vw, 84px)/.95 var(--fx-head); text-transform: uppercase; margin: 10px 0 16px; } .k-login-copy h1 em { font-style: normal; color: #ff4b44; } .k-login-copy p { font-size: 18px; color: #d7d9e8; max-width: 44ch; }
.k-login-perks { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; margin: 22px 0 0; } .k-login-perks li { border: 1.5px solid rgba(255, 255, 255, .3); border-radius: 99px; padding: 8px 14px; font: 600 14px var(--fx-font); } .k-login-foot { color: #a9adbe; font-size: 13px; margin: 0; }
.k-login-panel { background: var(--page); display: grid; align-content: center; justify-items: center; padding: 28px 18px; gap: 18px; } .k-login-card { width: min(440px, 100%); background: var(--fx-surface); border: 1px solid var(--fx-rule); border-radius: 18px; padding: clamp(20px, 4vw, 34px); display: grid; gap: 4px; } .k-login-card h2 { font: 800 clamp(34px, 5vw, 46px)/1 var(--fx-head); text-transform: uppercase; margin: 6px 0 4px; }
.k-login-bottom { font: 700 11px var(--fx-font); letter-spacing: .14em; text-transform: uppercase; color: var(--fx-ink3); margin: 0; } .k-login-or { text-align: center; margin: 14px 0 4px; color: var(--fx-ink3); font-size: 13px; }
.hosted-waiting h1 { font: 800 clamp(34px, 6vw, 56px)/1 var(--fx-head); text-transform: uppercase; margin: 0; } .hosted-waiting .k-form { width: min(440px, 100%); text-align: left; }
.k-cta { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
@media (max-width: 900px) { .k-login { grid-template-columns: 1fr; } .k-login-story { padding-bottom: 32px; } }

/* dialogs */
.fx-dlg-actions.left { justify-content: flex-start; margin-top: 14px; } .fx-kpis.two { grid-template-columns: 1fr 1fr; } .fx-kpis b { overflow-wrap: anywhere; }
.k-owner, .k-clause { display: flex; justify-content: space-between; align-items: center; gap: 10px 16px; flex-wrap: wrap; margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: var(--fx-bg); } .k-owner span, .k-clause span { display: inline-flex; align-items: center; gap: 8px; }
.k-results { display: grid; gap: 2px; max-height: min(60vh, 520px); overflow-y: auto; } .k-results .k-row { text-align: left; }
.review-amount { font: 800 clamp(34px, 6vw, 52px)/1.05 var(--fx-head); margin: 10px 0; } .review-notes { margin: 8px 0; padding-left: 20px; color: var(--fx-ink2); }
.week-scores { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 6px; margin-top: 8px; } .week-scores div { background: var(--fx-bg); border-radius: 8px; padding: 6px 8px; display: grid; text-align: center; } .week-scores span { font: 700 10.5px var(--fx-font); color: var(--fx-ink3); } .week-scores strong { font: 800 17px var(--fx-head); }
.price-range { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--fx-ink2); margin-top: 6px; }
.match-breakdowns { margin-top: 8px; display: grid; gap: 6px; } .match-breakdowns details { background: var(--fx-bg); border-radius: 10px; padding: 8px 12px; } .match-breakdowns summary { cursor: pointer; font-weight: 700; } .match-breakdowns summary span { color: var(--fx-ink3); font-weight: 500; margin-left: 8px; }
.k-line { width: 100%; height: auto; display: block; color: var(--fx-accent-text, var(--fx-accent)); } .k-line .k-stroke { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; } .k-line .k-area { fill: currentColor; opacity: .09; } .k-line .k-dot { fill: currentColor; }
.fx-portrait { object-fit: cover; object-position: 50% 8%; } .fx-mc-img .fx-portrait { object-fit: contain; object-position: bottom; }
.k-face .fx-portrait, .fx-clip .fx-portrait { width: 100%; height: 100%; object-fit: cover; object-position: 50% 10%; }
.image-unavailable { background: var(--soft); }

/* statistics */
.ring-track { stroke: var(--soft); }
.position-value-chart { display: grid; grid-template-columns: minmax(180px, 240px) minmax(0, 1fr); gap: 22px; align-items: center; } .value-ring { position: relative; } .value-ring svg { width: 100%; height: auto; transform: rotate(-90deg); } .value-ring > div { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; } .value-ring span { font: 700 10.5px var(--fx-font); letter-spacing: .1em; text-transform: uppercase; color: var(--fx-ink3); } .value-ring strong { font: 800 30px var(--fx-head); } .value-ring small { color: var(--fx-ink3); }
.position-legend { display: grid; gap: 10px; } .position-legend > div { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 10px; align-items: center; } .position-legend small { display: block; color: var(--fx-ink3); font-size: 12px; } .position-dot { width: 12px; height: 12px; border-radius: 4px; }
.profit-mini-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; } .profit-mini-stats div { background: var(--soft2); border-radius: 10px; padding: 10px 12px; display: grid; } .profit-mini-stats span { font: 700 10.5px var(--fx-font); letter-spacing: .08em; text-transform: uppercase; color: var(--fx-ink3); } .profit-mini-stats strong { font: 800 22px var(--fx-head); }
.position-points { display: grid; gap: 12px; } .position-points > div > div:first-child { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 4px; } .position-point-track { height: 10px; background: var(--soft); border-radius: 99px; overflow: hidden; } .position-point-track i { display: block; height: 100%; border-radius: 99px; }
.catalogue-total { display: flex; align-items: baseline; gap: 12px; margin: 6px 0 12px; } .catalogue-total strong { font: 800 54px/1 var(--fx-head); } .catalogue-total span { color: var(--fx-ink2); } .catalogue-facts { display: flex; gap: 8px 18px; flex-wrap: wrap; margin-bottom: 10px; } .catalogue-facts b { font-weight: 800; }
.position-colour-key { display: flex; gap: 14px; margin-bottom: 10px; font-size: 13px; color: var(--fx-ink2); } .position-colour-key i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }
.league-investments { display: grid; gap: 4px; margin-bottom: 8px; } .league-investments button { all: unset; cursor: pointer; display: grid; grid-template-columns: minmax(90px, 160px) minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 6px; border-radius: 8px; } .league-investments button:hover, .league-investments button.selected { background: var(--soft2); } .league-investments button:focus-visible { outline: 3px solid var(--fx-focus); } .investment-track { display: flex; height: 12px; background: var(--soft); border-radius: 99px; overflow: hidden; } .investment-track i { display: block; height: 100%; }
.k-pick { display: grid; gap: 4px; } .k-pick span { font: 700 10.5px var(--fx-font); letter-spacing: .1em; text-transform: uppercase; color: var(--fx-ink3); }
.k-more { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; }

@media (max-width: 760px) {
  .k-measures3, .k-measures4 { grid-template-columns: minmax(0, 1fr); } .position-value-chart { grid-template-columns: 1fr; } .k-vbars button, .league-investments button { grid-template-columns: minmax(70px, 110px) minmax(0, 1fr) auto; }
  .k-iconbtn.wide span { display: none; } .k-iconbtn.wide { padding: 0; width: 44px; border-radius: 50%; }
  .k-field.inline { grid-auto-flow: row; } .k-fixtures { grid-template-columns: minmax(0, 1fr); } .k-status { padding: 10px 12px; }
}
button.k-link { all: unset; cursor: pointer; font: 700 13.5px var(--fx-font); color: var(--fx-accent-text, var(--fx-accent)); } button.k-link:hover { text-decoration: underline; } button.k-link:focus-visible { outline: 3px solid var(--fx-focus); outline-offset: 2px; border-radius: 4px; }
html[data-theme="dark"] button.k-link { color: var(--lime); }
.metric small { text-transform: none; letter-spacing: 0; font: 500 12.5px/1.35 var(--fx-font); color: var(--fx-ink2); }
.k-measures3 .metric span { font: 700 10.5px var(--fx-font); }
.value-ring span { font-size: 9.5px; max-width: 120px; margin: 0 auto; line-height: 1.25; } .value-ring strong { font-size: 26px; }
@media (max-width: 640px) {
  .k-head { gap: 6px; } .k-brand b { font-size: 22px; } .k-brand i { width: 34px; height: 34px; font-size: 22px; }
  .k-user { gap: 0; } .k-iconbtn { width: 40px; height: 40px; } .k-iconbtn .ico { width: 20px; height: 20px; } .k-avatar { display: none; }
}
@media (max-width: 480px) { .k-head .k-brand b { display: none; } }
@media (max-width: 760px) { .k-measures3, .k-measures4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .k-measures3 > :last-child:nth-child(odd), .k-measures4 > :last-child:nth-child(odd) { grid-column: 1 / -1; } .metric { padding: 12px 12px; } .metric strong { font-size: 24px; } .k-callout { margin-bottom: 12px; } }
.k-form .k-input, .k-login-card .k-input, .hosted-waiting .k-input, .k-field .k-input[type="email"], .k-field .k-input[type="password"], .k-field .k-input[type="text"] { max-width: none; width: 100%; box-sizing: border-box; }
.k-iconbtn.wide { width: 44px; padding: 0; border-radius: 50%; } .k-iconbtn.wide span { display: none; } .k-iconbtn.wide .ico { width: 20px; height: 20px; }
@media (max-width: 1060px) { .k-avatar { display: none; } .k-user { gap: 0; } }

/* market list */
.k-market td { vertical-align: middle; } .k-market .k-pl small { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.k-market .k-ask b { font-weight: 800; } .k-market .k-ask small { display: block; }
.k-market .k-eta .fx-mc-clock { font: 600 14px var(--fx-font); font-variant-numeric: tabular-nums; }

/* market list: one line per listing, nothing clipped */
.k-market { table-layout: auto; } .k-market th, .k-market td { padding: 10px 8px; white-space: nowrap; } .k-market th:first-child, .k-market td:first-child { padding-left: 4px; }
.k-market .k-pl { gap: 10px; } .k-market .k-pl .fx-link { white-space: nowrap; } .k-market .k-pl small { flex-wrap: nowrap; }
.k-market .k-seller { max-width: 130px; overflow: hidden; text-overflow: ellipsis; } .k-market .fx-chip { font-size: 11px; padding: 2px 8px; } .k-market .fx-btn { min-height: 34px; padding: 0 12px; font-size: 13px; }
.k-market .k-seller { max-width: 120px; }

@media (min-width: 761px) and (max-width: 1360px) { .k-market .k-form-col { display: none; } }
@media (min-width: 761px) and (max-width: 1120px) { .k-market .k-seller { display: none; } }

/* market list: 1d / 7d columns */
.k-market .k-chg { white-space: nowrap; } .k-market .k-chg small { display: inline; margin-left: 4px; }
@media (min-width: 761px) and (max-width: 1230px) { .k-market .k-form-col { display: none; } }

.k-market .k-chg { display: grid; justify-items: end; line-height: 1.2; } .k-market .k-chg small { display: block; margin: 0; } .k-market .k-c1, .k-market .k-c7 { min-width: 78px; }
@media (min-width: 761px) and (max-width: 1120px) { .k-market .k-avgcol { display: none; } }

/* bidding is not supported: the button is visibly unavailable but still explains itself when pressed */
.fx-bid:disabled { opacity: .55; cursor: not-allowed; border-color: var(--fx-rule); }
.fx-mc-act.fx-bid:disabled { background: var(--soft); color: var(--fx-ink2); border: 1.5px dashed var(--fx-ink3); }
.fx-mc-act.fx-bid:disabled:hover { filter: none; }

/* sortable headers: show they can be pressed */
.k-sort { cursor: pointer; } .k-sort:hover { color: var(--fx-ink); text-decoration: underline; text-underline-offset: 4px; }
th:not([aria-sort]) .k-sort::after { content: " ↕"; opacity: .35; font-size: .9em; } th:not([aria-sort]) .k-sort:hover::after { opacity: .8; }

.k-bid-controls{display:flex;flex-wrap:wrap;align-items:center;gap:6px;min-width:0}.k-bid-controls small{flex-basis:100%;font-size:11px}.k-bid-controls button{white-space:normal}
.k-bid-menu{width:40px;min-height:40px;padding:0;justify-content:center;flex:none}.k-bid-menu .ico{width:20px;height:20px}.k-bid-menu[aria-expanded="true"]{border-color:var(--fx-ink)}
@media(max-width:760px){.fx-mc-body footer{flex-wrap:wrap}.fx-mc-body .k-bid-controls{width:100%}.k-bid-controls .fx-mc-act{padding:8px 12px}.k-bid-controls .fx-btn{min-height:40px}}


/* ==== October 10 round: gameweek pitch, compact status, squad actions ==== */
/* pitch overlay: formation dropdown on the left, round status on the right */
.fx-pitch-top { position: absolute; top: 8px; left: 8px; right: 8px; z-index: 3; display: flex; justify-content: space-between; align-items: center; gap: 8px; pointer-events: none; }
.fx-pitch-top > * { pointer-events: auto; }
.fx-pitch:has(.fx-pitch-top) { padding-top: calc(3.5% + 30px); }
.fx-fsel { position: relative; display: inline-flex; align-items: center; }
.fx-fsel select { appearance: none; -webkit-appearance: none; cursor: pointer; min-height: 34px; padding: 0 30px 0 12px; border-radius: 99px; border: 1.5px solid rgba(255, 255, 255, .55); background: rgba(0, 0, 10, .45) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='m20 26 12 12 12-12' fill='none' stroke='white' stroke-width='6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 10px center / 12px; color: #fff; font: 800 14px var(--fx-font); letter-spacing: .02em; backdrop-filter: blur(4px); }
.fx-fsel select:hover { border-color: #fff; } .fx-fsel select:focus-visible { outline: 3px solid #ffd23f; outline-offset: 2px; }
.fx-fsel select option { color: #11111f; background: #fff; }
.fx-fsel.ro { min-height: 30px; padding: 0 12px; border-radius: 99px; background: rgba(0, 0, 10, .45); color: #fff; font: 800 13px/30px var(--fx-font); border: 1.5px solid rgba(255, 255, 255, .35); }
.fx-deadline { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 12px; border-radius: 99px; background: rgba(0, 0, 10, .45); color: #fff; font: 700 12.5px var(--fx-font); border: 1.5px solid rgba(255, 255, 255, .35); white-space: nowrap; }
.fx-deadline .ico { width: 14px; height: 14px; } .fx-deadline b { font-weight: 800; font-variant-numeric: tabular-nums; }
.fx-deadline.live { background: rgba(255, 75, 68, .92); border-color: #ff4b44; color: #00000a; }
.fx-deadline.live .gw-live.inline { background: #00000a; box-shadow: none; animation: none; }
/* bench sits right under the pitch, like a dugout, so drags stay short on phones */
.fx-dugout { margin-top: -6px; padding: 16px 12px 10px; border-radius: 0 0 var(--fx-radius) var(--fx-radius); background: var(--soft2); border: 1px solid var(--fx-rule); border-top: 0; }
.fx-dugout-h { margin: 0 0 8px; font: 700 13px var(--fx-font); text-transform: uppercase; letter-spacing: .08em; color: var(--fx-ink2); } .fx-dugout-h small { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--fx-ink3); margin-left: 6px; }
.fx-dugout .fx-bench { gap: 10px 18px; } .fx-dugout .fx-bench .fx-name { background: var(--fx-surface); color: var(--fx-ink); border: 1px solid var(--fx-rule); }
.k-pitchwrap:has(.fx-dugout) .fx-pitch { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
html[data-theme="dark"] .fx-dugout { background: #1a1b2c; border-color: #34374d; }
/* round badges: opponent + kickoff before the match, points once it starts */
.gw-opp { display: grid; justify-items: center; gap: 1px; padding: 3px 6px 4px; border-radius: 6px; background: rgba(0, 0, 10, .62); color: #fff; line-height: 1; min-width: 44px; }
.gw-opp b { font: 800 11.5px/1 var(--fx-font); letter-spacing: .03em; } .gw-opp b i { font-style: normal; font-weight: 700; font-size: 9px; opacity: .75; margin-left: 2px; vertical-align: 1px; }
.gw-opp small { font: 600 9.5px/1.1 var(--fx-font); opacity: .9; white-space: nowrap; text-transform: capitalize; }
.fx-dugout .gw-opp { background: var(--navy); }
.gw-live { position: absolute; left: -3px; top: -3px; z-index: 2; width: 13px; height: 13px; border-radius: 50%; background: #ff2d2d; border: 2px solid #fff; box-shadow: 0 0 0 0 rgba(255, 45, 45, .7); animation: gw-pulse 1.4s ease-out infinite; }
.gw-live.inline { position: relative; display: inline-block; left: auto; top: auto; width: 9px; height: 9px; border-width: 0; margin-right: 6px; vertical-align: 0; }
@keyframes gw-pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 45, 45, .7); } 70% { box-shadow: 0 0 0 9px rgba(255, 45, 45, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 45, 45, 0); } }
@media (prefers-reduced-motion: reduce) { .gw-live { animation: none; } }
.gw-head { align-items: center; margin-bottom: 6px; } .gw-head h2 { margin: 0; }
.gw-total { text-align: right; display: grid; justify-items: end; } .gw-total b { font: 700 56px/.9 var(--fx-head); color: var(--head-ink); } .gw-total small { font: 700 12px var(--fx-font); color: var(--fx-ink3); text-transform: uppercase; letter-spacing: .08em; }
.gw-progress { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 6px 0 0; font: 600 13px var(--fx-font); color: var(--fx-ink2); } .gw-progress span { display: inline-flex; align-items: center; }
.gw-table td, .gw-table th { padding: 9px 8px; } .gw-table tr.me td { background: var(--tint-me); } .gw-tpts { font: 700 18px var(--fx-head); } .gw-table th:first-child, .gw-table td:first-child { width: 34px; }
.gw-fixtures { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.gw-fixtures li { display: grid; grid-template-columns: 42px 54px 42px minmax(0, 1fr) auto; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 10px; background: var(--soft2); font-size: 13.5px; }
.gw-fixtures li.live { background: var(--tint-me); } .gw-team { font: 800 13px var(--fx-font); text-align: center; } .gw-score { text-align: center; font: 700 16px var(--fx-head); }
.gw-state { font: 600 12px var(--fx-font); color: var(--fx-ink3); text-align: right; text-transform: capitalize; } .gw-state.live { color: var(--fx-accent-text); font-weight: 800; text-transform: none; }
.gw-mine { display: inline-flex; align-items: center; gap: 3px; font: 800 11.5px var(--fx-font); color: var(--fx-ink); background: var(--fx-surface); border: 1px solid var(--fx-rule); border-radius: 99px; padding: 2px 7px; } .gw-mine .ico { width: 12px; height: 12px; }
.k-h2s { font: 500 12.5px var(--fx-font); text-transform: none; letter-spacing: 0; color: var(--fx-ink3); margin-left: 6px; }
/* gameweek tabs */
.k-gwnav { margin: 16px 0 14px; padding: 2px 2px 6px; scroll-behavior: smooth; } .k-gwnav .fx-gwchip { min-width: 64px; min-height: 52px; gap: 2px; }
.k-gwnav .fx-gwchip small { display: inline-flex; align-items: center; white-space: nowrap; } .k-gwnav .fx-gwchip.on .gw-live.inline { background: #00000a; box-shadow: none; animation: none; }
/* Home */
.k-welcome.compact { padding-top: 16px; padding-bottom: 16px; } .k-welcome.compact h1 { font-size: clamp(26px, 3.4vw, 38px); } .k-welcome.compact .k-lead { font-size: 15px; margin-top: 6px; } .k-welcome.compact .k-cta { margin-top: 12px; }
.k-hometools { margin-top: 12px; align-items: center; } .k-hometools .fx-note { margin: 0; }
.gw-grid { margin-top: 16px; } .gw-card .k-pitchwrap { max-width: 620px; } .gw-card .k-ph .k-btn { margin-left: auto; }
.k-recent { margin-top: 20px; }
/* squad table: position badge, actions button and menu, lock countdown */
.k-pos { display: inline-grid; place-items: center; min-width: 38px; padding: 3px 6px; border-radius: 6px; font: 800 11px/1 var(--fx-font); letter-spacing: .04em; color: #0a0f1d; background: var(--pc, var(--soft)); }
.k-pos[data-pos="GK"] { --pc: var(--fx-gk); } .k-pos[data-pos="DEF"] { --pc: var(--fx-def); } .k-pos[data-pos="MID"] { --pc: var(--fx-mid); } .k-pos[data-pos="FWD"] { --pc: var(--fx-fwd); } .k-pos[data-pos="COACH"] { --pc: #c9ccdd; }
.k-actbtn { min-height: 36px; padding: 0 10px 0 14px; gap: 4px; font-size: 13.5px; } .k-actbtn .ico { width: 14px; height: 14px; transition: transform .15s; } .k-actbtn[aria-expanded="true"] .ico { transform: rotate(180deg); } .k-actbtn[aria-expanded="true"] { border-color: var(--fx-ink); }
.k-menu-layer { position: fixed; inset: 0 auto auto 0; z-index: 400; }
.k-menu { position: fixed; min-width: 190px; display: grid; padding: 6px; border-radius: 12px; background: var(--fx-surface); border: 1px solid var(--fx-rule); box-shadow: 0 14px 34px rgba(0, 0, 10, .28); animation: k-menu-in .12s ease-out; }
.k-menu button { all: unset; box-sizing: border-box; cursor: pointer; padding: 11px 12px; border-radius: 8px; font: 600 14px var(--fx-font); color: var(--fx-ink); } .k-menu button:hover, .k-menu button:focus-visible { background: var(--soft); outline: none; } .k-menu button.primary { color: var(--fx-accent-text); font-weight: 800; }
@keyframes k-menu-in { from { opacity: 0; transform: translateY(-4px); } }
.k-countdown { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; } .k-countdown b { font-variant-numeric: tabular-nums; } .k-lock .ico { width: 12px; height: 12px; }
.k-roster .k-poscol { width: 1%; } .k-pos-m { display: none; } .k-roster .k-pl small { display: flex; align-items: center; } .k-moves .k-chg small { display: block; }
.k-roster tfoot th, .k-roster tfoot td { border-top: 2px solid var(--fx-ink); background: var(--fx-surface); vertical-align: top; }
.k-roster tfoot th { letter-spacing: 0; text-transform: none; font-size: 12px; }
.k-roster .k-total-value { margin-top: 4px; font-size: 13px; color: var(--fx-ink); }
.k-roster .k-coverage { font-size: 10px; font-weight: 400; color: var(--fx-ink3); }
@media (max-width: 760px) { .fx-table .k-total-value { display: block; } }
/* squad value over time */
.k-valuecard { margin-top: 16px; } .k-vnow { margin: 4px 0 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; } .k-vnow b { font: 700 32px/1 var(--fx-head); color: var(--head-ink); } .k-vnow span { font: 700 13px var(--fx-font); }
.k-vchart { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; gap: 2px 8px; } .k-vchart > svg { width: 100%; height: 150px; }
.k-vaxis { display: flex; flex-direction: column; justify-content: space-between; padding: 6px 0; font: 600 11.5px var(--fx-font); color: var(--fx-ink3); text-align: right; } .k-vdates { grid-column: 2; display: flex; justify-content: space-between; font: 600 11.5px var(--fx-font); color: var(--fx-ink3); }
/* compact status pills (replace the full-width notices) */
.k-strip { position: relative; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.k-pill > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 10px 0 12px; border-radius: 99px; border: 1px solid var(--fx-rule); background: var(--fx-surface); font: 700 12.5px var(--fx-font); color: var(--fx-ink2); white-space: nowrap; user-select: none; }
.k-pill > summary::-webkit-details-marker { display: none; } .k-pill > summary:hover { border-color: var(--fx-ink3); color: var(--fx-ink); } .k-pill > summary:focus-visible { outline: 3px solid var(--fx-focus); outline-offset: 2px; }
.k-pill > summary .ico { width: 13px; height: 13px; } .k-pill[open] > summary { border-color: var(--fx-ink); color: var(--fx-ink); } .k-pill[open] > summary .ico:last-child { transform: rotate(180deg); }
.k-pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--fx-ink3); flex: none; }
.k-pill.ok .k-pill-dot { background: #16a34a; } .k-pill.warn .k-pill-dot { background: #e6a100; } .k-pill.bad .k-pill-dot { background: #dc2626; } .k-pill.busy .k-pill-dot { display: none; }
.k-pill.bad > summary { border-color: rgba(220, 38, 38, .5); color: var(--fx-neg); } .k-pill.warn > summary { border-color: rgba(230, 161, 0, .55); }
.k-pill-pop { position: absolute; left: 0; top: calc(100% + 6px); z-index: 50; width: min(440px, 100%); padding: 14px 16px; border-radius: 14px; background: var(--fx-surface); border: 1px solid var(--fx-rule); box-shadow: 0 14px 34px rgba(0, 0, 10, .22); }
.k-pill-pop strong { font: 700 14.5px var(--fx-font); } .k-pill-pop p { margin: 4px 0 10px; font-size: 13.5px; color: var(--fx-ink2); }
@media (max-width: 760px) {
  .k-strip { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: -4px -14px 10px; padding: 4px 14px; } .k-strip::-webkit-scrollbar { display: none; }
  .k-pill > summary { min-height: 32px; font-size: 12px; } .k-pill-pop { position: fixed; left: 12px; right: 12px; top: auto; width: auto; margin-top: 6px; }
  .fx-pitch-top { top: 6px; left: 6px; right: 6px; } .fx-pitch:has(.fx-pitch-top) { padding-top: calc(4% + 28px); }
  .fx-fsel select { min-height: 30px; font-size: 13px; padding-left: 10px; } .fx-deadline { min-height: 28px; padding: 0 9px; font-size: 11.5px; }
  .fx-dugout { padding: 14px 6px 8px; margin-inline: -6px; } .fx-dugout .fx-bench { gap: 8px 10px; } .fx-dugout .fx-blabel { display: none; }
  .gw-opp { min-width: 0; padding: 2px 4px 3px; } .gw-opp b { font-size: 10.5px; } .gw-opp small { font-size: 8.5px; }
  .gw-total b { font-size: 44px; } .k-gwnav { margin: 12px -14px 10px; padding-inline: 14px; } .k-gwnav .fx-gwchip { min-width: 56px; padding: 4px 8px; }
  .gw-fixtures li { grid-template-columns: 38px 46px 38px minmax(0, 1fr) auto; padding: 8px; font-size: 13px; }
  .k-roster .k-poscol { display: none; } .k-pos-m { display: inline-flex; margin-right: 6px; } .k-pos-m .k-pos { min-width: 32px; padding: 2px 4px; font-size: 10px; }
  .k-vnow b { font-size: 28px; }
}
.k-moves .k-statuscol { display: none; } .k-moves .k-pl .fx-link { white-space: nowrap; }
.k-moves th, .k-moves td { padding-left: 8px; padding-right: 8px; } .k-moves .k-cl, .k-moves .k-acts, .k-moves .k-val { white-space: nowrap; }
@media (min-width: 761px) and (max-width: 1500px) { .k-moves .k-formcol { display: none; } }
@media (min-width: 761px) and (max-width: 1060px) { .k-moves th.k-poscol + th.hide-sm, .k-moves td.k-poscol + td.hide-sm { display: none; } }
@media (max-width: 760px) { .k-ph.gw-head { flex-direction: row; flex-wrap: nowrap; align-items: flex-start; } .gw-head > div:first-child { min-width: 0; } .gw-progress { gap: 2px 10px; font-size: 12px; } }
@media (max-width: 760px) { .k-hometools { margin-top: 10px; } .k-hometools .fx-note { display: none; } .k-hometools .fx-btn { min-height: 36px; font-size: 13px; } }
/* Players: 14-day value trail */
.k-trail { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; } .k-trail small { font: 700 11.5px var(--fx-font); min-width: 44px; }
.k-trail.up .fx-spark path { stroke: var(--fx-pos); } .k-trail.up .fx-spark circle { fill: var(--fx-pos); } .k-trail.up small { color: var(--fx-pos); }
.k-trail.dn .fx-spark path { stroke: var(--fx-neg); } .k-trail.dn .fx-spark circle { fill: var(--fx-neg); } .k-trail.dn small { color: var(--fx-neg); }
.k-trail.flat small { color: var(--fx-ink3); }
.k-market .k-trail-col { white-space: nowrap; } .fx-mc-trail { margin: 2px 0 0; } .fx-mc-trail .k-trail small { font-size: 11px; }
@media (min-width: 761px) and (max-width: 1230px) { .k-market .k-trail-col { display: none; } }
.k-market .k-trail .fx-spark { width: 60px; height: 22px; }
/* Player card: value trail timeframe switch */
.k-trange { margin: 2px 0 8px; } .k-trange button { min-height: 32px; padding: 0 14px; font-size: 12.5px; }
.k-market th.k-trail-col { white-space: normal; max-width: 76px; line-height: 1.15; }
/* Next-update value estimates: italic, prefixed with ≈ and underlined with dashes, so they never read as observed changes. */
.k-est { display: inline-block; font: italic 600 13px var(--fx-font); white-space: nowrap; border-bottom: 1px dashed currentColor; padding-bottom: 1px; cursor: help; } .k-est i { font-style: normal; margin-right: 3px; opacity: .75; }
.k-est.up { color: var(--fx-pos); } .k-est.dn { color: var(--fx-neg); } .k-est.flat { color: var(--fx-ink3); } .k-est small { display: block; font-size: 11.5px; font-weight: 600; }
.k-market .k-est small, .fx-mc-est .k-est small { display: inline; margin-left: 4px; } .k-estcol { min-width: 86px; }
.fx-mc-est { margin: 3px 0 0; display: flex; gap: 6px; align-items: baseline; font-size: 11px; } .fx-mc-est > span { color: var(--fx-ink3); font-weight: 700; } .fx-mc-est .k-est { font-size: 12px; }
.k-estbox { margin: 8px 0 4px; padding: 10px 12px; border: 1.5px dashed var(--fx-rule); border-radius: 10px; } .k-estbox > span { display: block; font: 700 10.5px var(--fx-font); letter-spacing: .08em; text-transform: uppercase; color: var(--fx-ink3); }
.k-estbox > b { display: block; margin-top: 4px; font: 800 18px var(--fx-head); } .k-estbox > b .k-est { font-size: 17px; } .k-estbox > b .k-est small { display: inline; margin-left: 6px; font-size: 13px; } .k-estbox small { display: block; margin-top: 4px; font-size: 12px; color: var(--fx-ink3); }
.fx-mc-est { flex-wrap: wrap; } .k-estcol .k-sort { white-space: normal; }


.k-daily-reward .k-ph { flex-wrap: wrap; gap: 14px; }
.k-reward-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.k-daily-reward .fx-note { margin: 6px 0 0; }

/* Phones keep real table rows. Extra columns scroll within the card. */
@media (max-width: 760px) {
  .fx-tw { min-width: 0; overscroll-behavior-x: contain; }
  .fx-table { table-layout: auto; font-size: 13px; line-height: 1.25; }
  .fx-table th, .fx-table td { padding: 7px 8px; white-space: nowrap; }
  .fx-table th { font-size: 10px; letter-spacing: .04em; }
  .fx-table td small { font-size: 11px; line-height: 1.25; margin-top: 2px; }
  .fx-table .fx-link { display: inline-flex; align-items: center; min-height: 24px; font-size: 13px; }
  .fx-table .k-sort { align-items: center; min-height: 30px; white-space: nowrap; }
  .fx-table .k-pl { gap: 7px; }
  .fx-table .k-face { width: 28px; height: 28px; border-width: 1px; }
  .fx-table .k-pl .fx-link { max-width: 120px; overflow: hidden; text-overflow: ellipsis; display: block; line-height: 24px; }
  .fx-table .k-pl small { margin-top: 0; }
  .fx-table .k-chg, .fx-table .k-est { font-size: 12px; }
  .fx-table .k-est small { display: block; margin-left: 0; }
  .fx-table .k-decide, .fx-table .k-sqact { display: inline-flex; flex-direction: row; flex-wrap: nowrap; }
  .fx-table .fx-btn, .fx-table .k-btn, .fx-table .k-actbtn { min-height: 36px; padding-inline: 10px; font-size: 12px; }
  .k-players th:first-child, .k-players td:first-child,
  .k-roster th:first-child, .k-roster td:first-child,
  .k-market th:first-child, .k-market td:first-child {
    position: sticky; left: 0; z-index: 1; background: var(--fx-surface);
    box-shadow: 1px 0 0 var(--fx-rule); padding-left: 4px;
  }
  .k-table tr.me td:first-child { background: linear-gradient(var(--tint-me), var(--tint-me)), var(--fx-surface); }
  .k-market .k-c1, .k-market .k-c7 { min-width: 70px; }
  .k-market .k-eta .fx-mc-clock { font-size: 12px; }
  .statistics-ledger td small { font-size: 11px; }
  .statistics-ledger small.hide-sm { display: none; }
}

/* Phone layout: less chrome above the content. */
.k-about { margin: 0 0 12px; } .k-about > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; font: 700 13px var(--fx-font); color: var(--fx-ink2); } .k-about > summary::-webkit-details-marker { display: none; } .k-about > summary .ico { width: 16px; height: 16px; flex: none; } .k-about > summary:hover { color: var(--fx-ink); } .k-about > summary:focus-visible { outline: 3px solid var(--fx-focus); outline-offset: 2px; border-radius: 4px; } .k-about .k-callout { margin-top: 6px; }
.k-readonly { display: flex; align-items: center; gap: 6px; margin: 0 0 12px; } .k-readonly .ico { width: 14px; height: 14px; flex: none; }
.k-rowlink { cursor: pointer; } @media (hover: hover) { .k-rowlink:hover td { background: var(--soft2); } }
.fx-cashbar { border-top: 1px solid var(--fx-rule); box-shadow: 0 -6px 20px rgba(15, 26, 46, .12); }
@media (max-width: 760px) {
  .k-quick, .k-tabs { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; overscroll-behavior-x: contain; } .k-quick::-webkit-scrollbar, .k-tabs::-webkit-scrollbar { display: none; } .k-quick button, .k-tabs button { flex: none; white-space: nowrap; }
  .fx-table td.k-mgrcol { white-space: normal; } .k-mgrcol .fx-link { text-align: left; }
  .k-measures4 .metric small { display: none; } .k-measures4 .metric strong { font-size: 22px; }
  /* A shadow on the right edge says more columns scroll in; the local cover hides it once the end is reached. */
  .fx-tw { background: linear-gradient(to left, var(--fx-surface) 40%, transparent) right / 28px 100% no-repeat local, radial-gradient(farthest-side at 100% 50%, rgba(0, 0, 10, .28), transparent) right / 12px 100% no-repeat scroll; }
}
.k-market .k-bids { margin-top: 4px; white-space: nowrap; }
@media (max-width: 760px) { .k-players .k-trail .fx-spark { width: 56px; height: 22px; } .k-players .k-trail small { min-width: 0; } }
/* Market groups: LaLiga's listings, then managers' sales. */
.k-market tr.k-group th { padding: 14px 8px 6px; font: 700 11px var(--fx-font); letter-spacing: .08em; text-transform: uppercase; color: var(--fx-ink3); text-align: left; border-bottom: 1.5px solid var(--fx-rule); background: var(--fx-surface); } .k-market tr.k-group span { position: sticky; left: 8px; }
.fx-mcs .k-mgroup { grid-column: 1 / -1; margin: 6px 0 0; font: 700 11px var(--fx-font); letter-spacing: .08em; text-transform: uppercase; color: var(--fx-ink3); }
/* Stacked columns (price over value): one sort button per line, the second one quieter like its value. */
.k-stackcol .k-sort { display: block; margin-left: auto; } .k-stackcol .k-sort + .k-sort { margin-top: 2px; font-weight: 600; opacity: .8; }
th.k-stackcol[aria-sort] .k-sort:not(.on) { color: var(--fx-ink3); }
.k-roster .k-clause .k-shield { display: inline-flex; vertical-align: middle; }
/* A cell that only phones show, where a stacked desktop column splits back up (e.g. the clause in squads). */
.k-sm-only { display: none; } @media (max-width: 760px) { .fx-table .k-sm-only { display: table-cell; } }
/* Pending-offer count: a badge on the tab corner, so it never changes the tab's width. */
.k-tabs button { position: relative; } .k-tabcount { position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; box-sizing: border-box; border-radius: 99px; display: grid; place-items: center; font: 800 10px/1 var(--fx-font); background: var(--fx-accent); color: var(--fx-accent-ink); }

/* ---- UX review fixes ---- */
/* Header: data freshness stays visible when the cash/data block collapses. */
@media (max-width: 1060px) {
  .k-bar-stats { display: flex; } .k-bar-stats > span:first-child, .k-bar-stats small { display: none; }
  .k-bar-stats b { font-size: 12.5px; font-weight: 700; color: var(--fx-ink2); white-space: nowrap; }
}
/* Tables whose rows open a player card can be tapped anywhere on the row. */
.fx-table tbody tr:has([data-player], [data-team]), .k-feed > li:has([data-player]) { cursor: pointer; }
@media (hover: hover) { .fx-table tbody tr:has([data-player], [data-team]):hover td { background: var(--soft2); } }
@media (max-width: 760px) {
  /* Page headers never push their tab bar past the screen edge. */
  .k-ph > * { max-width: 100%; min-width: 0; }
  /* Each panel's read-time line: the header already shows how fresh the data is. */
  .fx-toolbar > .fx-note { display: none; }
  /* Comfortable tap areas without changing the layout. */
  a.k-link, button.k-link { display: inline-block; padding: 8px 0; margin: -8px 0; }
  .k-seg button { min-height: 34px; padding: 0 14px; }
  .weekly-points-table th .k-gwlink { display: inline-grid; place-items: center; min-width: 36px; min-height: 36px; margin: -8px -4px; padding: 0; }
  /* Readable minimum sizes. */
  .fx-table th { font-size: 11px; } .metric span, .k-measures3 .metric span, .profit-mini-stats span { font-size: 11px; } .gw-opp small { font-size: 10px; }
  /* Small tables fit instead of scrolling a few pixels. */
  .gw-table td:nth-child(2), .listing-table td:nth-child(2) { white-space: normal; } .listing-table td:nth-child(2) .fx-chip { white-space: normal; }
  /* Points by gameweek: the manager stays pinned while the rounds scroll. */
  .weekly-points-table th:first-child, .weekly-points-table td:first-child { position: sticky; left: 0; z-index: 1; background: var(--fx-surface); box-shadow: 1px 0 0 var(--fx-rule); }
  .weekly-points-table tr.me td:first-child { background: linear-gradient(var(--tint-me), var(--tint-me)), var(--fx-surface); }
  /* Offers: each offer becomes a compact block with its decision buttons in reach. */
  .k-stackrows, .k-stackrows tbody { display: block; } .k-stackrows thead { display: none; }
  .k-stackrows tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--fx-rule); }
  .k-stackrows td { display: block; padding: 0; border: 0; white-space: normal; } .k-stackrows td.hide-sm { display: none; }
  .k-stackrows td.k-exp { grid-column: 1 / -1; font-size: 12px; color: var(--fx-ink3); }
  .k-stackrows td.k-decision { grid-column: 1 / -1; text-align: left; } .k-stackrows td.k-decision:empty { display: none; }
  .k-stackrows .k-decide { display: flex; gap: 8px; } .k-stackrows .k-decide .k-btn { flex: 1; justify-content: center; min-height: 40px; }
  .fx-tw:has(> .k-stackrows) { background: none; }
  /* Statistics: compact figures, a smaller value ring with its legend beside it. */
  .k-measures { grid-template-columns: 1fr 1fr; gap: 8px; } .k-measures > .k-m.main { grid-column: 1 / -1; } .k-measures > :last-child:nth-child(even) { grid-column: 1 / -1; }
  .k-m { padding: 12px; } .k-m b { font-size: 26px; } .k-m.main b { font-size: 34px; }
  .position-value-chart { grid-template-columns: 132px minmax(0, 1fr); gap: 14px; } .value-ring span { display: none; } .value-ring strong { font-size: 17px; } .value-ring small { font-size: 10px; }
}

/* UX review: visible recovery, readable phone entry, and keyboard table access. */
.k-saved-notice { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.k-saved-notice p { margin:5px 0 0; }
.k-saved-notice .fx-btn { flex-shrink:0; }
.k-login-preferences { display:flex; justify-content:flex-end; margin-bottom:18px; }
.k-login-preferences .k-seg { background:#11111f; color:#fff; }
.k-login-alternative { margin:14px 0; }
.k-login-alternative summary { min-height:40px; align-content:center; }
.k-login-alternative form { margin-top:16px; }
.fx-tw:focus-visible { outline:3px solid var(--fx-accent); outline-offset:3px; }
.k-scroll-hint { display:none; }
@media (max-width:760px) {
  .k-saved-notice { align-items:flex-start; flex-direction:column; gap:10px; }
  .k-saved-notice .fx-btn { min-height:44px; }
  .k-login-story { padding:20px; }
  .k-login-copy { margin:18px 0 0; }
  .k-login-copy h1 { font-size:30px; line-height:1.05; margin:8px 0; }
  .k-login-copy > p:not(.k-eyebrow), .k-login-perks, .k-login-foot { display:none; }
  .k-login-panel { padding:16px; }
  .k-login-card { padding:20px; }
  .k-login-preferences .k-seg button { min-height:44px; }
  .k-scroll-hint { display:block; margin:12px 0; color:var(--fx-ink3); font-size:12px; }
  .k-quick { flex-wrap:wrap; overflow:visible; }
  .k-quick button { min-height:40px; }
  .k-tabs { flex-wrap:wrap; overflow:visible; }
  .k-tabs button { white-space:normal; min-height:44px; padding:8px 12px; flex:1 1 auto; }
}
@media (max-width:480px) {
  .position-value-chart { grid-template-columns:minmax(0,1fr); }
  .value-ring { width:min(100%,220px); margin-inline:auto; }
  .position-legend strong { overflow-wrap:anywhere; }
}
@media (prefers-reduced-motion:reduce) {
  *, *::before, *::after { scroll-behavior:auto !important; animation:none !important; transition:none !important; }
}

/* Workspace composition. Shared tokens above also drive the football views. */
.k-workspace { min-height: 100dvh; }
#content:focus { outline: none; }
.k-wrap { max-width: 1480px; padding-inline: clamp(18px, 2.5vw, 36px); }
.k-ribbon, html[data-theme="dark"] .k-ribbon { background: transparent; color: var(--fx-ink3); }
.k-ribbon .k-wrap { min-height: 64px; flex-wrap: nowrap; border-bottom: 1px solid var(--fx-rule); }
.k-league-context { display: flex; align-items: center; gap: 10px; min-width: 0; }
.k-league-context > b { color: var(--fx-ink); font-size: 13px; font-weight: 600; text-transform: none; letter-spacing: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.k-league-context > span { white-space: nowrap; }
.k-league-context > .ico { color: var(--fx-ink3); width: 17px; }
.k-seg, .k-login-preferences .k-seg { background: var(--soft); border: 1px solid var(--fx-rule); border-radius: 8px; padding: 2px; margin: 0; }
.k-seg button { color: var(--fx-ink3); padding: 4px 9px; border-radius: 5px; }
.k-seg button[aria-pressed="true"] { background: var(--fx-surface); color: var(--fx-ink); box-shadow: var(--fx-shadow); }
.k-ctl .k-input.sm { background: var(--fx-surface); color: var(--fx-ink); border-color: var(--fx-rule); max-width: 180px; }
.k-header, html[data-theme="dark"] .k-header { background: var(--fx-surface); color: var(--fx-ink); border: 1px solid var(--fx-rule); }
.k-brand { gap: 9px; }
.k-brand i, html[data-theme="dark"] .k-brand i { width: 32px; height: 32px; border-radius: 9px; background: var(--fx-accent); color: var(--fx-accent-ink); font: 750 22px/1 var(--fx-font); }
.k-brand b { font: 750 17px/1 var(--fx-font); letter-spacing: .08em; }
.k-nav a { font-size: 14px; font-weight: 500; color: var(--fx-ink2); border: 0; border-radius: 8px; margin: 0; }
.k-nav a:hover { background: var(--soft2); color: var(--fx-ink); }
.k-nav a[aria-current="page"] { background: var(--tint-me); color: var(--fx-accent-text); font-weight: 650; border: 0; }
.k-nav .ico { width: 19px; height: 19px; }
.k-badge { margin-left: auto; background: var(--soft); color: var(--fx-ink2); border-radius: 5px; font-size: 10px; }
.k-iconbtn, .k-iconbtn.wide { color: var(--fx-ink2); border-radius: 7px; }
.k-iconbtn:hover:not(:disabled) { background: var(--soft); color: var(--fx-ink); }
.k-control-label { font: 500 12px var(--fx-font); text-align: left; flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 5px; }
.k-control-label kbd { font: 11px var(--fx-font); color: var(--fx-ink3); border: 1px solid var(--fx-rule); border-radius: 4px; padding: 0 5px; }
.k-identity { display: flex; align-items: center; gap: 9px; width: 100%; padding: 14px 6px 4px; margin-top: 10px; border-top: 1px solid var(--fx-rule); }
.k-identity > span:last-child { display: grid; min-width: 0; }
.k-identity b { font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.k-identity small { font-size: 11px; color: var(--fx-ink3); }
.k-identity .k-avatar { display: grid; width: 32px; height: 32px; flex: none; border: 1px solid var(--fx-rule); background: var(--soft); color: var(--fx-ink2); font-size: 11px; }
.k-bar { background: transparent; border-bottom: 1px solid var(--fx-rule); }
.k-barin { min-height: 62px; padding-block: 10px; gap: 10px; }
.k-bar-k { font: 600 13px var(--fx-font); text-transform: none; letter-spacing: 0; }
.k-bar-main { gap: 10px; font-size: 12px; }
.k-bar-main > b { color: var(--fx-ink3); font-weight: 400; }
.k-bar-in { font-size: 11px; background: var(--soft); color: var(--fx-ink2); border-radius: 5px; }
.k-bar-stats { gap: 20px; }
.k-bar-stats small { font-size: 10px; text-transform: none; letter-spacing: 0; font-weight: 500; }
.k-bar-stats b { font-size: 12px; font-weight: 500; }
.fresh-dot { width: 6px; height: 6px; background: var(--fx-pos); }
.k-bar-stats .stale .fresh-dot { background: var(--fx-warn); }
.k-main { padding-top: 24px; padding-bottom: 40px; }
.k-card, html[data-theme="dark"] .k-card { border-color: var(--fx-rule); box-shadow: var(--fx-shadow); }
.k-card h1 { font-size: 27px; line-height: 1.25; font-weight: 650; text-transform: none; letter-spacing: -.035em; }
.k-card h2 { font-size: 17px; line-height: 1.3; font-weight: 650; text-transform: none; letter-spacing: -.02em; }
.k-eyebrow { color: var(--fx-ink3); text-transform: none; font-size: 12px; font-weight: 500; letter-spacing: 0; }
.k-ph p { font-size: 13px; color: var(--fx-ink3); }
.k-ph .k-eyebrow { margin: 0 0 4px; }
.k-welcome.compact, html[data-theme="dark"] .k-welcome { display: block; background: transparent; border: 0; box-shadow: none; padding: 8px 0 4px; color: var(--fx-ink); }
.k-welcome.compact h1 { font-size: clamp(23px, 2.4vw, 30px); color: var(--fx-ink); margin-top: 5px; line-height: 1.25; }
.k-welcome.compact .k-lead { color: var(--fx-ink3); font-size: 13px; margin-top: 6px; }
.k-welcome .k-btn { color: var(--fx-ink); border-color: var(--fx-rule); }
.k-hometools { margin-top: 10px; }
.k-hometools .fx-note { font-size: 11px; }
.k-kpis { gap: 12px; margin-block: 20px; }
.k-kpi { border-radius: 10px; padding: 16px; gap: 7px; }
.k-kpi small, .metric span, .k-facts small, .k-m > small { font-size: 12px; line-height: 1.4; text-transform: none; letter-spacing: 0; font-weight: 500; }
.k-kpi b { font-size: clamp(22px, 2.1vw, 30px); line-height: 1.2; font-weight: 600; letter-spacing: -.04em; }
.k-kpi b span { font-size: 12px; font-weight: 400; letter-spacing: 0; }
.k-kpi > span { font-size: 12px; line-height: 1.45; }
.k-kpi > span:last-child:not(:nth-child(3)) { color: var(--fx-ink3); font-size: 11px; }
.k-dchip { padding: 2px 5px; font-size: 10px; font-weight: 500; border-radius: 4px; }
.metric, html[data-theme="dark"] .metric { background: var(--soft2); border: 1px solid var(--fx-rule); border-radius: 10px; }
.metric strong { font-size: clamp(24px, 2.5vw, 30px); font-weight: 600; line-height: 1.2; letter-spacing: -.04em; }
.k-m.main { background: var(--soft2); color: var(--fx-ink); border: 1px solid var(--fx-rule); }
.k-m.main b, .k-m.main small, .k-m.main > span { color: var(--fx-ink); }
.k-m.main b.pos { color: var(--fx-pos); }
.k-m.main b.neg { color: var(--fx-neg); }
.k-pick span { text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 11px; }
.k-m b { font-size: 32px; font-weight: 600; }
.k-link, button.k-link, html[data-theme="dark"] .k-link { color: var(--fx-accent-text); font-size: 12px; font-weight: 600; }
.fx-table { font-size: 13px; }
.fx-table th { font-size: 11px; font-weight: 500; text-transform: none; letter-spacing: 0; background: var(--soft2); border-bottom-width: 1px; }
.fx-table td { border-bottom-color: var(--fx-rule); }
.fx-table tbody tr:last-child td { border-bottom: 0; }
.fx-table .fx-link { font-weight: 550; border-bottom-color: transparent; }
.fx-table .fx-link:hover { border-bottom-color: currentColor; }
.k-rank, .gw-tpts { font-size: 14px; font-weight: 550; }
.k-strong { font-size: 13px; font-weight: 600; }
.k-you, html[data-theme="dark"] .k-you { background: var(--soft); color: var(--fx-ink2); font-size: 9px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.k-tabs, .k-seg2 { background: var(--soft); border-radius: 8px; padding: 3px; }
.k-tabs button, .k-seg2 button { font-size: 12px; font-weight: 500; border-radius: 6px; min-height: 36px; }
.k-tabs button[aria-pressed="true"], .k-seg2 button[aria-pressed="true"] { box-shadow: var(--fx-shadow); }
.k-btn, .fx-btn, .fx-formation, .fx-cand { border-width: 1px; border-radius: 7px; font-size: 13px; font-weight: 550; }
.k-btn.primary, .fx-btn.primary { box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.k-input { border-width: 1px; border-radius: 7px; }
.k-quick button, .k-chip { border-width: 1px; border-radius: 6px; font-size: 12px; font-weight: 500; }
.k-quick button[aria-pressed="true"], html[data-theme="dark"] .k-quick button[aria-pressed="true"] { background: var(--fx-ink); border-color: var(--fx-ink); color: var(--fx-bg); }
.fx-chip { border-width: 1px; border-radius: 5px; font-weight: 500; }
.k-pill { border-radius: 6px; }
.k-pill summary { font-weight: 500; }
.k-callout, .k-status { border-left-width: 2px; border-radius: 8px; font-size: 12px; }
.k-saved-notice { margin-top: 0; padding: 10px 14px; }
.k-saved-notice p { font-size: 11px; }
.k-saved-notice .fx-btn { min-height: 36px; font-size: 12px; }
.fx-pitch, html[data-theme="dark"] .fx-pitch { box-shadow: none; border: 1px solid rgba(255,255,255,.15); border-radius: 10px; }
.gw-card .k-pitchwrap { max-width: 460px; }
.gw-card .fx-pitch { aspect-ratio: 1.12; min-height: 340px; }
.gw-card .fx-photowrap { width: 43px; border-width: 2px; }
.gw-total b { font-size: 34px; line-height: 1.1; font-weight: 600; }
.gw-total small { text-transform: none; letter-spacing: 0; font-weight: 500; }
.fx-fsel.ro, .fx-fsel select, .fx-deadline { border-radius: 6px; border-width: 1px; font-size: 11px; font-weight: 500; }
.fx-dugout, html[data-theme="dark"] .fx-dugout { background: var(--soft2); border-color: var(--fx-rule); }
.fx-gwchip { border-width: 1px; border-radius: 7px; }
.k-foot { padding-block: 20px 28px; color: var(--fx-ink3); font-size: 10px; border-top: 1px solid var(--fx-rule); gap: 10px; }
#fx-dialog, html[data-theme="dark"] #fx-dialog { background: var(--fx-surface); border: 1px solid var(--fx-rule); border-radius: 12px; box-shadow: 0 20px 70px rgba(0,0,0,.22); }
.fx-dlg h2 { font-size: 27px; font-weight: 650; line-height: 1.2; letter-spacing: -.03em; }
.fx-dlg-kicker { font-weight: 500; letter-spacing: 0; text-transform: none; }
.fx-kpis small, .k-deltas small { font-size: 11px; font-weight: 500; text-transform: none; letter-spacing: 0; }
.fx-x, html[data-theme="dark"] .fx-x { border-radius: 7px; border-width: 1px; border-color: var(--fx-rule); color: var(--fx-ink); }
html[data-theme="dark"] .fx-formation, html[data-theme="dark"] .fx-btn, html[data-theme="dark"] .fx-gwchip, html[data-theme="dark"] .fx-gwstep, html[data-theme="dark"] .fx-cand { background: var(--fx-surface); color: var(--fx-ink); }
html[data-theme="dark"] .fx-formation.on, html[data-theme="dark"] .fx-btn.primary, html[data-theme="dark"] .fx-gwchip.on { background: var(--fx-accent); color: var(--fx-accent-ink); }
html[data-theme="dark"] .fx-kpis div { background: var(--soft2); }
.k-login { grid-template-columns: 1fr 1fr; }
.k-login-story { background: var(--soft2); color: var(--fx-ink); border-right: 1px solid var(--fx-rule); }
.k-login-story .k-brand b { color: var(--fx-ink); }
.k-login-copy h1 { font-size: clamp(32px, 4vw, 52px); line-height: 1.1; font-weight: 600; letter-spacing: -.045em; text-transform: none; max-width: 13ch; }
.k-login-copy h1 em { color: var(--fx-accent-text); }
.k-login-copy p { color: var(--fx-ink3); font-size: 16px; line-height: 1.6; }
.k-login-perks { display: grid; gap: 0; margin-top: 32px; }
.k-login-perks li { border: 0; border-bottom: 1px solid var(--fx-rule); border-radius: 0; padding: 12px 0; font-weight: 500; font-size: 13px; }
.k-login-foot { color: var(--fx-ink3); }
.k-login-card { border: 0; background: transparent; padding: 28px; }
.k-login-card h2, .hosted-waiting h1 { font-size: 28px; font-weight: 600; letter-spacing: -.035em; text-transform: none; line-height: 1.2; }
.k-login-bottom { font-size: 11px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.k-podium { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: stretch; margin-top: 24px; }
.k-step, .k-step.r1, .k-step.r2, .k-step.r3, html[data-theme="dark"] .k-step { min-height: 155px; background: var(--soft2); color: var(--fx-ink); border: 1px solid var(--fx-rule); border-radius: 10px; padding: 18px; gap: 6px; align-content: end; }
.k-step:hover { transform: none; border-color: var(--fx-ink3); }
.k-step.me { box-shadow: none; border-color: var(--fx-accent); }
.k-step.r1 { order: -1; }
.k-num { position: static; font-size: 13px; font-weight: 500; line-height: 1.2; opacity: 1; color: var(--fx-ink3); }
.k-num::before { content: '#'; }
.k-step em { font-size: 10px; font-weight: 500; text-transform: none; letter-spacing: 0; border-radius: 4px; background: var(--tint-me); color: var(--fx-accent-text); }
.k-step b { font-size: 15px; line-height: 1.3; font-weight: 600; text-transform: none; letter-spacing: -.015em; }
.k-sp { font-size: 30px; font-weight: 600; line-height: 1.2; letter-spacing: -.03em; }
.k-sp small { font-size: 12px; letter-spacing: 0; }
.k-ss { font-size: 11px; color: var(--fx-ink3); }
.k-budget b, .k-bigpts.sm { font-size: 28px; font-weight: 600; letter-spacing: -.04em; }
.k-budget small, .k-sale-m dt { text-transform: none; letter-spacing: 0; font-weight: 500; }
.k-sale-h h3 { font-size: 20px; text-transform: none; }
.fx-unavailable { background: var(--soft2); border: 1px dashed var(--fx-rule); }
html[data-theme="dark"] .fx-unavailable { background: var(--soft2); }
.fx-unavailable h3 { font-size: 15px; }
.fx-unavailable p { font-size: 13px; }
.fx-mc { grid-template-columns: 96px minmax(0, 1fr); background: var(--fx-surface); border-color: var(--fx-rule); border-radius: 10px; box-shadow: none; }
.fx-mc.mine { box-shadow: none; border-color: var(--fx-accent); }
.fx-mc-img { background: var(--soft2); }
.fx-mc-name { font-size: 16px; line-height: 1.3; font-weight: 600; letter-spacing: -.02em; }
.fx-mc-tag { background: var(--soft); color: var(--fx-ink2); font-size: 10px; font-weight: 600; letter-spacing: 0; padding: 3px 5px; }
.fx-mc-pts b { font-size: 24px; font-weight: 600; }
.fx-mc-pts small { font-size: 10px; letter-spacing: 0; font-weight: 500; }
.fx-mc-status .st { font-size: 12px; font-weight: 500; }
.fx-mc-status .st i { width: 16px; height: 16px; font-size: 10px; }
.fx-mc-money dd, .fx-mc-money dd.ask { font-size: 13px; font-weight: 550; }
.fx-mc-clock { font-size: 12px; font-weight: 500; }
.fx-mc-act { font-size: 13px; font-weight: 600; border-radius: 7px; }

@media (min-width: 761px) {
  .k-workspace { padding-left: calc(var(--sidebar-width) + 12px); }
  .k-header { position: fixed; z-index: 65; inset: 12px auto 12px 12px; width: var(--sidebar-width); border-radius: 12px; overflow-y: auto; }
  .k-header .k-head { display: flex; flex-direction: column; align-items: stretch; flex-wrap: nowrap; min-height: 100%; padding: 22px 12px 12px; gap: 0; }
  .k-head > .k-brand { padding: 0 8px 26px; }
  .k-nav { flex: 0 0 auto; order: 0; min-width: 0; flex-direction: column; gap: 4px; }
  .k-nav a { width: 100%; height: 42px; padding: 0 12px; gap: 10px; justify-content: flex-start; }
  .k-user { margin: auto 0 0; padding-top: 32px; display: flex; flex-direction: column; align-items: stretch; gap: 3px; }
  .k-user .k-iconbtn { display: flex; width: 100%; height: auto; min-height: 38px; gap: 9px; padding: 6px 10px; }
  .k-user .k-iconbtn .ico { width: 17px; height: 17px; }
  .k-user .k-iconbtn.wide { font-size: 12px; border-radius: 7px; }
  .k-user .k-iconbtn.wide span { display: inline; text-align: left; }
  .k-user [data-action="search"] { order: -1; background: var(--soft2); margin-bottom: 10px; border: 1px solid var(--fx-rule); }
  .k-identity { order: 1; }
  .k-user [data-action="logout"] { order: 2; }
  .k-tabbar { display: none; }
}
@media (min-width: 1201px) {
  .gw-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px; }
}
@media (min-width: 761px) and (max-width: 1200px) {
  :root { --sidebar-width: 196px; }
  .k-grid, .k-grid2, .k-grid2.even { grid-template-columns: minmax(0, 1fr); }
  .k-side { position: static; }
  .k-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .k-league-context > span { display: none; }
  .k-kpi b { font-size: 24px; }
  .k-user .k-iconbtn { padding-inline: 7px; }
  .k-scroll-hint { display: block; margin-block: 12px; color: var(--fx-ink3); font-size: 12px; }
  .k-players th:first-child, .k-players td:first-child,
  .k-roster th:first-child, .k-roster td:first-child,
  .k-market th:first-child, .k-market td:first-child { position: sticky; left: 0; z-index: 1; background: var(--fx-surface); box-shadow: 1px 0 0 var(--fx-rule); }
}
@media (max-width: 760px) {
  :root { --cb-bottom: calc(60px + env(safe-area-inset-bottom)); }
  .k-wrap { padding-inline: 16px; }
  .k-header, html[data-theme="dark"] .k-header { border: 0; border-bottom: 1px solid var(--fx-rule); }
  .k-head { min-height: 60px; padding-block: 8px; gap: 10px; }
  .k-head .k-brand b { display: block; font-size: 14px; letter-spacing: .06em; }
  .k-brand i { width: 28px; height: 28px; font-size: 19px; }
  .k-ribbon .k-wrap { min-height: 48px; gap: 8px; border: 0; }
  .k-league-context { gap: 7px; }
  .k-league-context > b { font-size: 11px; }
  .k-league-context > span, .k-league-context > .ico { display: none; }
  .k-ctl { flex: none; gap: 6px; }
  .k-ctl .k-input.sm { min-width: 0; max-width: 94px; }
  .k-seg button { min-height: 36px; padding-inline: 8px; }
  .k-user { gap: 1px; }
  .k-user .k-iconbtn { width: 36px; height: 40px; padding: 0; }
  .k-user .k-iconbtn .ico { width: 18px; height: 18px; }
  .k-control-label, .k-identity { display: none; }
  .k-user .k-iconbtn.wide span { display: none; }
  .k-barin { min-height: 52px; }
  .k-bar-main { font-size: 11px; gap: 3px 10px; }
  .k-bar-k { font-size: 12px; }
  .k-bar-stats { display: none; }
  .k-main { padding-top: 16px; padding-bottom: 28px; }
  .k-card { padding: 16px; }
  .k-welcome.compact { padding-block: 12px 4px; }
  .k-welcome.compact h1 { font-size: 24px; }
  .k-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-block: 16px; }
  .k-kpi { padding: 12px; gap: 5px; }
  .k-kpi b { font-size: 25px; }
  .k-kpi:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .k-kpi:last-child:nth-child(odd) { grid-template-columns: 1fr auto; align-items: center; }
  .k-kpi:last-child:nth-child(odd) > span { grid-column: 1 / -1; }
  .k-kpi:last-child:nth-child(odd) > b { grid-row: 1; grid-column: 2; }
  .k-grid2 { gap: 14px; margin-top: 16px; }
  .k-podium { grid-template-columns: 1fr; gap: 8px; margin-top: 16px; }
  .k-step, .k-step.r1, .k-step.r2, .k-step.r3 { min-height: 100px; padding: 14px; grid-template-columns: minmax(0, 1fr) auto; }
  .k-step.r1 { order: -1; }
  .k-step .k-num { grid-row: 1; grid-column: 1; }
  .k-step em { grid-row: 1; grid-column: 2; justify-self: end; }
  .k-step b { grid-row: 2; grid-column: 1; font-size: 14px; }
  .k-step .k-sp { grid-row: 2 / span 2; grid-column: 2; font-size: 28px; }
  .k-step .k-ss { grid-row: 3; grid-column: 1; }
  .gw-card .fx-pitch { aspect-ratio: .9; min-height: 330px; }
  .gw-card .fx-photowrap { width: 38px; }
  .gw-card .k-pitchwrap { margin-inline: -4px; }
  .k-table th, .fx-table th { font-size: 11px; }
  .fx-mc { grid-template-columns: 66px minmax(0, 1fr); }
  .fx-mc-name { font-size: 15px; }
  .fx-mc-pts b { font-size: 21px; }
  #toast { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .k-tabs button, .k-quick button, .fx-btn, .k-btn { min-height: 44px; }
  .k-tabbar, html[data-theme="dark"] .k-tabbar { background: var(--fx-surface); border-top: 1px solid var(--fx-rule); box-shadow: none; padding: 5px 6px calc(5px + env(safe-area-inset-bottom)); }
  .k-tabbar a { min-height: 50px; font-size: 10px; font-weight: 500; border-radius: 7px; }
  .k-tabbar a[aria-current="page"] { background: var(--tint-me); color: var(--fx-accent-text); }
  .k-tabbar a svg { width: 19px; height: 19px; }
  .k-foot { margin-bottom: calc(66px + env(safe-area-inset-bottom)); font-size: 10px; }
  .k-login { grid-template-columns: 1fr; }
  .k-login-story { border: 0; border-bottom: 1px solid var(--fx-rule); padding: 24px; gap: 12px; }
  .k-login-copy { margin: 0; }
  .k-login-copy h1 { font-size: 28px; max-width: none; }
  .k-login-perks, .k-login-foot { display: none; }
  .k-login-panel { padding: 12px; }
  .k-login-card { padding: 16px; }
}
@media (max-width: 380px) {
  .k-head:has(.k-iconbtn.wide) .k-brand b { display: none; }
}
