:root{
  --ink:#151515;--ink-2:#2A2A2A;--body:#2C333B;--muted:#5F6873;--label:#646C76;--faint:#68707A;
  --line:#CFC8BA;--line-2:#9AA3AD;--rule:#E3DED3;--soft:#ECE8E0;--hover:#EFEBE3;--bg:#F4F2ED;--card:#FFFFFF;
  --amber:#FFDA18;--amber-soft:#FFF6C7;--amber-ink:#7A6400;--ok:#1F7A44;--green-soft:#E3F5EA;--danger:#B42318;--red-soft:#FDECEA;
  --on-ink:#fff;--pri:var(--ink);--pri-ink:#fff;--pri-hover:var(--ink-2);--disc:transparent;--disc-k:0;
  --bar-best:#111111;--bar-rest:#9AA3AD;--th-bg:var(--hover);--th-ink:var(--ink);--th-on:var(--ink);--ink-solid:#151515;--map-land:#ECEEF1;--map-mini:#CFD4DA;--chart-grid:#ECE8E0;--pitch:#FAF8F4;--pitch-line:#CFC8BA;--shade:rgba(17,17,17,.42);
  --wr-ink:#151515;--wr-rule:#E3DED3;--wr-rulel:#ECE8E0;--rail-bg:#111111;--grain:.06;--grain-blend:multiply;
  --h-md:38px;--h-sm:32px;--r-md:10px;--r-sm:8px;--icon-md:18px;--icon-sm:16px;
  --t-fast:.15s;--t-press:.12s;--ease:cubic-bezier(.2,.8,.2,1);
  --t-std:.24s;--t-morph:.42s;--t-cons:.48s;--e-enter:cubic-bezier(.16,1,.3,1);--e-std:cubic-bezier(.22,1,.36,1);--e-morph:cubic-bezier(.34,1.36,.64,1);
  --focus:0 0 0 2px var(--card),0 0 0 4px var(--amber);
  color-scheme:light;
}
/* Light, the new look base (Amr's New look base Lab picks, 02-11-2026): warm paper #F4F2ED, ink #151515, white cards with a warm
   hairline (2A), the paper grain over everything at 6% (3B). The export sheets read none of these tokens and stay white. */
/* Dark (Amr's Dark mode Lab picks, 31-10-2026; the new look base 1C, 02-11-2026): a near black page #0B0C0E with lighter cards #1D2024,
   yellow leads the main button and the best bar (2A), crests and league logos on a small light disc (3C, 4), club colours by the dark
   rule (5, colours.md), the grain at 5%. The same tokens, redefined: no page is restyled on its own. The export sheets stay light. */
:root[data-theme="dark"]{
  --ink:#F2F3F5;--ink-2:#E1E4E8;--body:#D0D4D9;--muted:#A0A7AF;--label:#A0A7AF;--faint:#9AA1A9;
  --line:#3A3F46;--line-2:#5A6068;--rule:#2E3238;--soft:#26292E;--hover:#26292E;--bg:#0B0C0E;--card:#1D2024;
  --amber-soft:#3A3412;--amber-ink:#F5D54A;--ok:#4CC27E;--green-soft:#1C3527;--danger:#F0857A;--red-soft:#3D2222;
  --on-ink:#0B0C0E;--pri:#FFDA18;--pri-ink:#111111;--pri-hover:#FFE34D;--disc:#F2F3F5;--disc-k:1;
  --bar-best:#FFDA18;--bar-rest:rgba(255,255,255,.55);--th-bg:var(--hover);--th-ink:var(--label);--th-on:var(--ink);--ink-solid:#2B2F35;--map-land:#3A3F46;--map-mini:#5A6068;--chart-grid:#2E3238;--pitch:#191C20;--pitch-line:#C9D2DA;--heat-low:#1D2024;--shade:rgba(0,0,0,.6);
  --wr-ink:#F2F3F5;--wr-muted:#A0A7AF;--wr-label:#A0A7AF;--wr-faint:#9AA1A9;--wr-rule:#2E3238;--wr-rulel:#26292E;--grain:.05;--grain-blend:screen;
  color-scheme:dark;
}
/* the position chips keep their family colour on dark: a deep tint behind a light letter */
:root[data-theme="dark"] .upos.fa{background:#3B2026;color:#F4A7B3}:root[data-theme="dark"] .upos.fm{background:#1C3527;color:#86D9A6}
:root[data-theme="dark"] .upos.fd{background:#1E2A44;color:#A3BDF2}
/* Buttons: five kinds, two sizes. Kind = what it does; size = where it sits (38 in page headers, 32 inside cards, rows and windows) */
.ub{--h:var(--h-md);--r:var(--r-md);--i:var(--icon-md);display:inline-flex;align-items:center;justify-content:center;gap:8px;height:var(--h);padding:0 16px;border-radius:var(--r);border:1px solid transparent;
  font:600 13px/1 Inter,system-ui,sans-serif;letter-spacing:0;white-space:nowrap;text-decoration:none;cursor:pointer;user-select:none;box-sizing:border-box;flex:0 0 auto;position:relative;
  transition:background var(--t-fast) var(--ease),border-color var(--t-fast) var(--ease),color var(--t-fast) var(--ease),transform var(--t-press) var(--ease),box-shadow var(--t-fast) var(--ease)}
.ub svg{width:var(--i);height:var(--i);flex:0 0 auto}
.ub.sm{--h:var(--h-sm);--r:var(--r-sm);--i:var(--icon-sm);padding:0 12px;font-size:12.5px;gap:6px}
.ub:active:not(:disabled){transform:scale(.97)}
.ub:focus-visible{outline:0;box-shadow:var(--focus)}
.ub:disabled,.ub.is-disabled{opacity:.45;cursor:default;pointer-events:none}
/* Primary: the one main action of a view (Export, Add player, Publish) */
.ub.primary{background:var(--pri);color:var(--pri-ink)}
.ub.primary:hover{background:var(--pri-hover)}
/* Secondary: every other action (Show more, Change picture, Save draft) */
.ub.secondary{background:var(--card);border-color:var(--line);color:var(--ink)}
.ub.secondary:hover{background:var(--hover);border-color:var(--line-2)}
/* Ghost: a quiet action inside dense places (Cancel); as an icon it takes a dashed outline (Filter) */
.ub.ghost{background:transparent;color:var(--muted)}
.ub.ghost:hover{background:var(--soft);color:var(--ink)}
.ub.ghost.icon{border:1px dashed var(--line-2)}
.ub.ghost.icon:hover{border-style:solid;background:var(--card)}
/* Danger: removes something; always asks before it acts */
.ub.danger{background:var(--card);border-color:#F2C4BF;color:var(--danger)}   /* red-lined: the one to be careful with (his pick, 12-10-2026) */
.ub.ok{background:var(--card);border-color:var(--line);color:var(--ok)}.ub.ok:hover{background:var(--green-soft);border-color:var(--ok)}   /* a safe yes: publish, approve */
.ub.danger:hover{background:var(--red-soft);border-color:var(--danger)}
/* Icon: a square secondary or ghost button with an icon only; its name is in the hint */
.ub.icon{width:var(--h);padding:0}
/* Toggle: off is white with an ink icon, on is ink with a white icon (Sections, a menu that is open) */
.ub.on,.ub.on:hover{background:var(--ink);border-color:var(--ink);color:var(--on-ink)}
/* Close: the round x of windows, drawers and chips */
.ub.close{width:var(--h-sm);height:var(--h-sm);padding:0;border-radius:50%;background:var(--card);border-color:var(--line);color:var(--muted)}
.ub.close:hover{border-color:var(--line-2);color:var(--ink)}
.ub.close svg{width:14px;height:14px}
/* Busy: the spinner takes the icon's exact place (same box, same line), so nothing moves */
.ub.busy{pointer-events:none}
.ub.busy svg{display:none}
.ub.busy::before{content:'';flex:0 0 auto;width:var(--i);height:var(--i);box-sizing:border-box;border-radius:50%;border:2px solid currentColor;border-right-color:transparent;animation:ubspin .7s linear infinite}
@keyframes ubspin{to{transform:rotate(360deg)}}

/* Switch: one choice among 2 to 5 views of the same thing (Sheet | Chart, Current XI | Target XI). One size, 38 px. A white thumb slides to the choice */
.us{--h:var(--h-md);--r:var(--r-md);position:relative;display:inline-flex;gap:2px;height:var(--h);padding:3px;border-radius:var(--r);background:var(--soft);box-sizing:border-box;flex:0 0 auto;vertical-align:middle}
.us>button{position:relative;z-index:1;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:0;padding:0 14px;border:0;border-radius:calc(var(--r) - 2px);background:none;
  font:600 13px/1 Inter,system-ui,sans-serif;color:var(--muted);white-space:nowrap;cursor:pointer;transition:color var(--t-fast) var(--ease)}
.us>button svg{width:var(--icon-md);height:var(--icon-md)}
.us.icons>button{width:calc(var(--h) - 6px);padding:0}
.us.sm{--h:var(--h-sm)}.us.sm>button{padding:0 10px;font-size:12px}.us.sm.icons>button{padding:0}   /* a small icon switch keeps its icons full size (4.10) */
.us>button:hover{color:var(--ink)}
.us>button.on{color:var(--ink)}
.us>button:focus-visible{outline:0;box-shadow:var(--focus)}
.us>button:disabled{opacity:.45;cursor:default}
.us>.thumb{position:absolute;z-index:0;top:3px;bottom:3px;left:0;width:0;border-radius:calc(var(--r) - 2px);background:var(--card);box-shadow:0 1px 3px rgba(17,17,17,.12);pointer-events:none}
.us>.thumb.go{transition:transform .28s var(--ease),width .28s var(--ease)}
/* Tabs: where you are on a page (the player's pages, Settings). A line under the active one slides along */
.ut{position:relative;display:flex;gap:4px;border-bottom:1px solid var(--rule);overflow-x:auto;scrollbar-width:none}
.ut.fr{-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 40px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 40px),transparent)}
.ut.fl{-webkit-mask-image:linear-gradient(90deg,transparent,#000 40px);mask-image:linear-gradient(90deg,transparent,#000 40px)}
.ut.fl.fr{-webkit-mask-image:linear-gradient(90deg,transparent,#000 40px,#000 calc(100% - 40px),transparent);mask-image:linear-gradient(90deg,transparent,#000 40px,#000 calc(100% - 40px),transparent)}   /* more to slide to: the edge fades (7.40) */
@media (max-width:1199px){.ut.wrap{flex-wrap:wrap;overflow:visible}}   /* a long tab strip goes onto two rows on a tablet instead of sliding (4.81) */
.ut>a,.ut>button{position:relative;display:inline-flex;align-items:center;gap:6px;height:44px;padding:0 12px;border:0;background:none;font:600 13.5px/1 Inter,system-ui,sans-serif;color:var(--muted);text-decoration:none;white-space:nowrap;cursor:pointer;transition:color var(--t-fast) var(--ease)}
.ut>a:hover,.ut>button:hover{color:var(--ink)}
.ut>.on{color:var(--ink)}
.ut>.off{opacity:.4;cursor:default}
.ut>a:focus-visible,.ut>button:focus-visible{outline:0;box-shadow:inset var(--focus)}
.ut>.line{position:absolute;left:0;bottom:-1px;height:2px;width:0;border-radius:2px;background:var(--ink);pointer-events:none}
.ut>.line.go{transition:transform .28s var(--ease),width .28s var(--ease)}
/* Chips: filters that narrow a list (positions, tiers, stages). Several may be on at once */
.uc{display:inline-flex;flex-wrap:wrap;gap:6px}
.uc>button{display:inline-flex;align-items:center;gap:6px;height:28px;white-space:nowrap;padding:0 11px;border:1px solid var(--line);border-radius:999px;background:var(--card);font:600 12px/1 Inter,system-ui,sans-serif;color:var(--body);cursor:pointer;
  transition:background var(--t-fast) var(--ease),border-color var(--t-fast) var(--ease),color var(--t-fast) var(--ease),transform var(--t-press) var(--ease)}
.uc>button:hover{border-color:var(--line-2);color:var(--ink)}
.uc>button.on{background:var(--ink);border-color:var(--ink);color:var(--on-ink)}
.uc>button:active{transform:scale(.96)}
.uc>button:focus-visible{outline:0;box-shadow:var(--focus)}
.uc>button:disabled{opacity:.4;cursor:default;pointer-events:none}
.uc>button img{width:16px;height:16px;object-fit:contain}

/* Select: one value from a list. The trigger looks like a secondary button with a chevron; the list drops below it */
.ud-native{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important}
.ud,.um{position:relative;display:inline-block;vertical-align:middle}
.ud-t{display:inline-flex;align-items:center;gap:8px;width:100%;min-width:140px;height:var(--h-md);padding:0 12px 0 14px;border:1px solid var(--line);border-radius:var(--r-md);background:var(--card);
  font:500 13px/1.35 Inter,system-ui,sans-serif;color:var(--ink);text-align:left;cursor:pointer;box-sizing:border-box;transition:border-color var(--t-fast) var(--ease),box-shadow var(--t-fast) var(--ease)}
.ud-t:hover{border-color:var(--line-2)}
.ud-t.on{border-color:var(--ink)}
.ud-t:focus-visible{outline:0;box-shadow:var(--focus)}
.ud-t:disabled{opacity:.45;cursor:default}
.ud-v{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.35;padding:2px 0 0}
.ud-v .ud-fs{display:none}@media (max-width:599px){.ud-v .ud-fl{display:none}.ud-v .ud-fs{display:inline}}   /* an option's data-face: its short text on the phone's trigger, the full text in the list (5.44) */
.ud-k{color:var(--muted);font-weight:500;margin-right:6px}
.ud-t .cv{width:16px;height:16px;color:var(--muted);flex:0 0 auto;transition:transform .2s var(--ease)}
.ud-t.on .cv{transform:rotate(180deg)}
/* The list: one panel for selects and menus. It fades and drops 4 px in 160 ms, opens upward when there is no room below */
.ud-p,.um-p{position:absolute;z-index:60;top:calc(100% + 6px);left:0;min-width:100%;max-height:320px;overflow:auto;padding:6px;box-sizing:border-box;background:var(--card);border:1px solid var(--rule);border-radius:12px;
  box-shadow:0 12px 32px rgba(17,17,17,.14);opacity:0;visibility:hidden;transform:translateY(-4px);transition:opacity .16s var(--ease),transform .16s var(--ease),visibility 0s linear .16s}
.ud-p.open,.um-p.open{opacity:1;visibility:visible;transform:none;transition:opacity .16s var(--ease),transform .16s var(--ease),visibility 0s}
/* a closed list takes no room, so it never makes the page longer (it folds after its fade) */
.ud-p:not(.open){max-height:0;padding-top:0;padding-bottom:0;border-width:0;transition:opacity .16s var(--ease),transform .16s var(--ease),visibility 0s linear .16s,max-height 0s linear .16s,padding 0s linear .16s,border-width 0s linear .16s}
.ud-p.up,.um-p.up{top:auto;bottom:calc(100% + 6px)}
.ud-p.fx,.um-p.fx{position:fixed;z-index:1200}
.ud-o .oi,.ud-v .oi{display:inline-grid;place-items:center;width:16px;height:16px;flex:0 0 auto;color:var(--muted);font-style:normal}.ud-v .oi{display:inline-flex;vertical-align:-3px;margin-right:8px}.ud-o .oi svg,.ud-v .oi svg{width:16px;height:16px}
.ud-o .oi img,.ud-v .oi img{width:16px;height:12px;border-radius:2px;object-fit:cover;display:block}
.ud-o .oi:has(img.logo),.ud-v .oi:has(img.logo){width:20px;height:20px}.ud-o .oi img.logo,.ud-v .oi img.logo{width:20px;height:20px;object-fit:contain;border-radius:0}   /* a crest or a logo keeps its shape, a flag fills its frame (4.10) */
.ud-o[disabled]{pointer-events:auto}
.um-p.end,.ud-p.end{left:auto;right:0}
.ud-o,.um-i{display:flex;align-items:center;gap:10px;width:100%;min-height:36px;padding:0 10px;border:0;border-radius:8px;background:none;font:500 13px/1.25 Inter,system-ui,sans-serif;color:var(--body);text-align:left;cursor:pointer;white-space:nowrap;text-decoration:none;box-sizing:border-box}
.ud-o.hl,.um-i.hl{background:var(--soft);color:var(--ink)}
.ud-o>span,.um-i>span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis}
.ud-p,.um-p{max-width:max(100%,320px)}
/* a name too long for its row scrolls slowly into view while the pointer is on it, then back */
.mq-on{text-overflow:clip!important}
.mq-on>.mq{display:inline-block;animation:uimq var(--mqd) ease-in-out .5s infinite alternate}
@keyframes uimq{0%,12%{transform:none}88%,100%{transform:translateX(var(--mq))}}
@media (prefers-reduced-motion:reduce){.mq-on>.mq{animation:none}.mq-on{text-overflow:ellipsis!important}}
.ud-o em{font-style:normal;font-variant-numeric:tabular-nums;color:var(--faint);font-size:12px;min-width:28px;text-align:right}
.ud-o .ck{width:16px;height:16px;color:var(--ink);visibility:hidden}.ud-o .ck svg{width:16px;height:16px;display:block}
.ud-o.sel{color:var(--ink);font-weight:600}.ud-o.sel .ck{visibility:visible}
/* a plain select: just the value in a box, centred, and a list without check marks (rows per page) */
.ud.plain .ud-t{justify-content:center;padding:0 10px;min-width:0}.ud.plain .ud-t .cv,.ud.plain .ud-o .ck{display:none}.ud.plain .ud-v{flex:0 0 auto}.ud.plain .ud-o{justify-content:center}.ud.plain .ud-p{min-width:100%;max-width:none}
.ud-o:disabled,.um-i:disabled{opacity:.4;cursor:default}
.ud-h{padding:10px 10px 4px;font:600 10.5px Inter,system-ui,sans-serif;letter-spacing:.12em;text-transform:uppercase;color:var(--label)}
.ud-g{display:flex;align-items:baseline;justify-content:space-between;width:100%;border:0;background:none;text-align:left;cursor:pointer;border-radius:6px}.ud-g em{font:500 11.5px Inter,system-ui,sans-serif;font-style:normal;letter-spacing:0;text-transform:none;color:var(--muted)}.ud-g:hover em{color:var(--ink);text-decoration:underline}
.ud-e{padding:12px 10px;color:var(--faint);font-size:12.5px}
.ud-s{position:sticky;top:-6px;margin:-6px -6px 6px;padding:6px;background:var(--card);border-bottom:1px solid var(--rule)}
.ud-s input{width:100%;height:34px;padding:0 10px;border:1px solid var(--line);border-radius:8px;font:13px Inter,system-ui,sans-serif;box-sizing:border-box}
.ud-s input:focus{outline:0;border-color:var(--ink)}
/* Several values: a checkbox on each row, the All row first; the list stays open while you tick */
.ud-o .cb{width:16px;height:16px;flex:0 0 auto;border:1.5px solid var(--line-2);border-radius:4px;box-sizing:border-box;transition:background var(--t-fast),border-color var(--t-fast)}
.ud-o.sel .cb{background:var(--card);border-color:var(--ink);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111111' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");background-size:12px;background-position:center;background-repeat:no-repeat}
.ud-o.all{border-bottom:1px solid var(--rule);border-radius:8px 8px 0 0;margin-bottom:4px}
/* Picker from a plus button (Amr 31-10-2026, the judgement's playstyles): a several-values list opened from a quiet 38 px plus;
   what is picked shows beside it as chips, never inside the button */
.ud-t.plus{width:38px;min-width:0;padding:0;justify-content:center;color:var(--ink)}
.ud-t.plus .ud-v,.ud-t.plus .cv{display:none}
.ud-t.plus::before{content:"";width:18px;height:18px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 8v8M8 12h8'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 8v8M8 12h8'/%3E%3C/svg%3E") center/contain no-repeat}
.ud-p.plus{min-width:280px!important}
.ud-p.plus .ud-g{pointer-events:none;cursor:default}.ud-p.plus .ud-g em{display:none}   /* a plus picker never picks a whole group at once */
/* Menu: actions, not values. Icon, label, an optional shortcut; a line between groups; a remove action last, in red */
.um-p{min-width:220px}
.um-i svg{width:16px;height:16px;color:var(--muted);flex:0 0 auto}
.um-i kbd{font:500 11px Inter,system-ui,sans-serif;color:var(--faint)}
.um-p hr{border:0;border-top:1px solid var(--rule);margin:6px 2px}
.um-i.danger,.um-i.danger svg{color:var(--danger)}

/* Search field: the magnifier, the field, a clear button that appears with text. 38 px like every control */
.uq{position:relative;display:flex;align-items:center;gap:8px;height:var(--h-md);padding:0 6px 0 12px;border:1px solid var(--line);border-radius:var(--r-md);background:var(--card);box-sizing:border-box;min-width:0;
  transition:border-color var(--t-fast) var(--ease)}
.uq:hover{border-color:var(--line-2)}
.uq:focus-within{border-color:var(--ink)}
.uq-i{width:16px;height:16px;color:var(--muted);flex:0 0 auto}
.uq input{flex:1;min-width:0;height:100%;border:0;outline:0;background:none;font:500 13px Inter,system-ui,sans-serif;color:var(--ink);padding:0}
.uq input::placeholder{color:var(--faint);font-weight:400}
.uq input::-webkit-search-cancel-button{display:none}
.uq-x{display:none;align-items:center;justify-content:center;width:26px;height:26px;border:0;border-radius:6px;background:none;color:var(--muted);cursor:pointer;flex:0 0 auto}
.uq-x svg{width:14px;height:14px}.uq-x:hover{background:var(--soft);color:var(--ink)}
.uq.has .uq-x{display:inline-flex}.uq.has kbd{display:none}
.uq.slide{width:var(--h-md);padding:0;gap:0;justify-content:center;cursor:pointer;overflow:hidden;transition:width .26s var(--ease),padding .26s var(--ease),border-color .15s}
.uq.slide:hover{border-color:var(--line-2)}.uq.slide .uq-i{margin:0;flex:0 0 auto}
.uq.slide input{transition:opacity .2s var(--ease)}.uq.slide:not(.open) input{position:absolute;width:1px;padding:0;opacity:0;pointer-events:none}.uq.slide .uq-x{display:none}
.uq.slide.open{width:320px;padding:0 6px 0 12px;gap:8px;justify-content:flex-start;cursor:text;overflow:visible}.uq.slide.open input{flex:1;opacity:1}.uq.slide.open.has .uq-x{display:grid}
.uq kbd{font:500 11px Inter,system-ui,sans-serif;color:var(--muted);border:1px solid var(--line);border-radius:5px;padding:2px 6px;margin-right:4px;flex:0 0 auto}
/* Results under the field: the dropdown panel; a face, the name with the typed letters in bold, a second line, a tag on the right */
.uq-p{min-width:100%;max-height:360px}
.uq-r{cursor:pointer;min-height:48px;padding:6px 10px}
.uq-r>.uq-tx{display:flex;flex-direction:column;gap:1px;min-width:0}
.uq-r .n{font-weight:500;color:var(--ink);overflow:hidden;text-overflow:ellipsis}.uq-r .n b{font-weight:700}
.uq-r small{font-size:11.5px;color:var(--muted);overflow:hidden;text-overflow:ellipsis}
.uq-r em{font-style:normal;font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--faint)}
.uq-av{width:30px;height:30px;border-radius:50%;background:var(--soft);display:grid;place-items:center;overflow:hidden;flex:0 0 auto;font:600 11px Inter,system-ui,sans-serif;color:var(--muted)}
.uq-av>svg.nf{width:100%;height:100%;display:block}
.uq-av img{width:100%;height:100%;object-fit:cover}
.uq-r>.uq-av{flex:0 0 30px;width:30px}
.uq-r.hl .uq-av{background:var(--card)}
/* A field that opens the search window (the page header): looks like the field, opens on click or its shortcut */
button.uq{cursor:text;font:400 13px Inter,system-ui,sans-serif;color:var(--faint);text-align:left}
button.uq>span{flex:1;min-width:0}
.uq-av img{object-position:top}
.uq-av.logo{background:none;border-radius:6px}.uq-av.logo img{object-fit:contain}
/* The search window (Ctrl K): a large field over a dimmed page */
.uk{position:fixed;inset:0;z-index:80;display:flex;justify-content:center;align-items:flex-start;padding:12vh 16px 0;background:rgba(17,17,17,0);transition:background .18s var(--ease)}
.uk.on{background:rgba(17,17,17,.32)}
.uk-box{width:min(620px,100%);transform:translateY(-8px);opacity:0;transition:transform .18s var(--ease),opacity .18s var(--ease)}
.uk.on .uk-box{transform:none;opacity:1}
.uq.lg{height:52px;padding:0 10px 0 16px;border-radius:14px;border-color:transparent;box-shadow:0 20px 50px rgba(17,17,17,.25)}
.uq.lg input{font-size:15px}.uq.lg .uq-i{width:18px;height:18px}
.uq.lg .uq-p{top:calc(100% + 8px);border-radius:14px}

/* Table: white card, a header you sort by its label and filter by typing under it, rows that fade in and out, actions on hover */
.utb{position:relative;background:var(--card);border:1px solid var(--rule);border-radius:12px;font:400 13px/1.3 Inter,system-ui,sans-serif;color:var(--body)}
.utb-h,.utb-r{display:grid;align-items:center;column-gap:12px;padding:0 14px}
.utb-h{position:sticky;top:var(--utb-top,0);z-index:2;border-radius:11px 11px 0 0;background:var(--th-bg);border-bottom:1px solid var(--rule);align-items:center}   /* the head: the warm light fill with black labels on light (Amr 08-11-2026: the black head looked off; 5.39 to 5.58 it was black), the grey head on dark */
.utb .th{position:relative;display:flex;align-items:center;min-height:20px;padding:12px 0;min-width:0}.utb .th.r{justify-content:flex-end}.utb .th.c{justify-content:center}
.utb .th .n{display:inline-flex;align-items:center;gap:3px;max-width:100%;font:600 10.5px/1.2 Inter,system-ui,sans-serif;letter-spacing:.09em;text-transform:uppercase;color:var(--th-ink);cursor:pointer;user-select:none;white-space:nowrap}
.utb .th .n[data-nosort]{cursor:default}
.utb .th .si{width:11px;height:11px;flex:0 0 auto;opacity:0;transition:opacity var(--t-fast) var(--ease),transform .2s var(--ease)}
.utb .th .n:hover .si{opacity:.6}.utb .th.sorted .n{color:var(--th-on)}.utb .th.sorted .si{opacity:1}
.utb .th.sorted .si path:last-child{opacity:0}.utb .th.sorted.desc .si{transform:rotate(180deg)}
.utb .th.r{text-align:right}.utb .th.c{text-align:center}
.utb .th .hl{display:inline-flex;align-items:center;gap:2px;max-width:100%}
/* a number column: the search and sort marks sit left of the name, so the name ends where the numbers end (13-10-2026) */
.utb .th.r .hl,.utb .th.r .n{flex-direction:row-reverse}.utb .th.editing .hl{visibility:hidden}
/* search a column: a small magnifier beside the name (shown on hover, or ink while that column is filtered); it opens a box over the name */
.utb .tq{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;padding:0;border:0;border-radius:5px;background:none;color:var(--th-ink);cursor:pointer;opacity:0;transition:opacity var(--t-fast) var(--ease),background var(--t-fast) var(--ease)}
.utb .tq svg{width:12px;height:12px}.utb .tq:hover{background:rgba(127,127,127,.25);color:var(--th-on)}
.utb .th:hover .tq,.utb .tq:focus-visible{opacity:1}.utb .th.filtered .tq{opacity:1;color:var(--ink);background:var(--amber-soft)}.utb .th.filtered .n{color:var(--th-on)}
.utb .th .fq{position:absolute;left:0;right:0;top:50%;transform:translateY(-50%);z-index:3;display:flex;align-items:center;gap:4px;height:24px;border-bottom:2px solid var(--th-on);background:var(--th-bg);animation:utbq .16s var(--ease)}
@keyframes utbq{from{opacity:0}}
.utb .th.r .fq input{text-align:right}
.utb .th .fq svg{width:13px;height:13px;color:var(--th-ink);flex:0 0 auto}
.utb .th .fq input{flex:1;min-width:0;border:0;outline:0;background:none;font:500 12.5px Inter,system-ui,sans-serif;color:var(--th-on);padding:0}
.utb .th .fq .fx{display:inline-flex;width:20px;height:20px;padding:0;border:0;border-radius:5px;background:none;color:var(--th-ink);align-items:center;justify-content:center;cursor:pointer}.utb .th .fq .fx:hover{background:rgba(127,127,127,.25);color:var(--th-on)}
.utb-b{display:flex;flex-direction:column}
.utb-r{position:relative;min-height:48px;border-top:1px solid var(--soft);transition:opacity .22s var(--ease),transform .22s var(--ease),background var(--t-fast) var(--ease)}
.utb-b>.utb-r:first-child{border-top:0}
.utb-r.in{opacity:0;transform:translateY(4px)}.utb-r.out{opacity:0;transform:translateX(8px)}
.utb-r:hover{background:var(--hover)}
.utb .td{display:flex;align-items:center;gap:8px;min-width:0;padding:8px 0;white-space:nowrap}
.utb .td.r{justify-content:flex-end;text-align:right;font-variant-numeric:tabular-nums}
.utb .td .tx{overflow:hidden;text-overflow:ellipsis}
.utb .td small{font-size:11px;color:var(--muted);margin-left:-4px}
.utb .td .dash{color:var(--faint)}
.utb .td>img,.utb .td img.ic{width:18px;height:18px;object-fit:contain;flex:0 0 auto}
.utb .td.rk{color:var(--faint);font-weight:600}
.utb .k-player .uq-av{flex:0 0 32px;width:32px;height:32px}
.utb-p{display:flex;flex-direction:column;gap:1px;min-width:0}
.utb-p b{font-weight:600;color:var(--ink);overflow:hidden;text-overflow:ellipsis}.utb-p small{margin:0!important;overflow:hidden;text-overflow:ellipsis}
/* position chips: attack red, midfield green, defence blue, goalkeeper amber; every position the same width */
.upos{display:inline-flex;align-items:center;justify-content:center;min-width:30px;height:22px;padding:0 6px;box-sizing:border-box;border-radius:6px;font:700 10.5px/1 Inter,system-ui,sans-serif;letter-spacing:.04em;font-style:normal;background:var(--soft);color:var(--muted)}
.upos.fa{background:#FBE9EC;color:#A30D26}.upos.fm{background:#E6F3EA;color:#0B6A33}.upos.fd{background:#E8EEF9;color:#1A3F85}.upos.fg{background:var(--amber-soft);color:var(--amber-ink)}
.k-pos{gap:4px!important}
.utag{display:inline-flex;align-items:center;height:22px;padding:0 8px;border-radius:6px;font:600 11px/1 Inter,system-ui,sans-serif;font-style:normal;background:var(--soft);color:var(--body)}.utag.on{background:var(--ink);color:var(--on-ink)}
.utb-bar{flex:1;max-width:140px;height:6px;border-radius:3px;background:var(--soft);overflow:hidden}.utb-bar i{display:block;height:100%;border-radius:3px;background:var(--amber);transition:width .5s var(--ease)}
.utb .bv{font:600 15px/1 Oswald,Inter,sans-serif;color:var(--ink);min-width:38px;text-align:right}
.utb .tck{display:inline-flex;width:20px;height:20px;border-radius:50%;background:var(--green-soft);color:var(--ok);align-items:center;justify-content:center}.utb .tck svg{width:12px;height:12px}
.utb .k-check{justify-content:center}
/* actions: icon buttons at the row's end, shown on hover or focus */
.utb .td.acts{justify-content:flex-end;gap:6px}.utb .td.acts>.ub{opacity:0;transition:opacity var(--t-fast) var(--ease)}.utb-r:hover .td.acts>.ub,.utb-r:focus-within .td.acts>.ub{opacity:1}
.utb .th.tclr{display:flex;align-items:center;justify-content:flex-end;padding:0;align-self:center}
/* a row that opens: an arrow at its end; the row stays white, the detail opens light grey under it */
.utb .tv{display:inline-flex;width:24px;height:24px;align-items:center;justify-content:center;color:var(--muted);transition:transform .22s var(--ease)}.utb .tv svg{width:16px;height:16px}
.utb.opens .utb-r{cursor:pointer}.utb-r.open .tv{transform:rotate(180deg);color:var(--ink)}
/* a row that opens: the detail slides down under it */
.utb-d{grid-column:1/-1;display:grid;grid-template-rows:0fr;transition:grid-template-rows .26s var(--ease)}
.utb-d{margin:0 -14px}.utb-d>div{overflow:hidden;min-height:0;background:var(--hover);padding:0 14px 0 62px}
.utb-r.open,.utb-r.open:hover{background:var(--card)}.utb-r.open .utb-d{grid-template-rows:1fr}
.utb-r.open .utb-d>div{padding-top:14px;padding-bottom:14px;border-top:1px solid var(--soft)}
/* facts in an opened row: icon, label, value, two columns */
.ufacts{display:grid;grid-template-columns:minmax(0,320px);gap:10px}
.ufacts>div{display:grid;grid-template-columns:20px 1fr auto;align-items:center;gap:10px;font-size:13px;color:var(--muted)}
.ufacts svg{width:18px;height:18px;color:var(--label)}.ufacts b{font-weight:600;color:var(--ink);text-align:right;font-variant-numeric:tabular-nums}
.utb-e{padding:30px;text-align:center;color:var(--label);font-size:13px}
.utb-f{display:flex;justify-content:space-between;align-items:center;min-height:48px;padding:0 10px 0 14px;font-size:12px;color:var(--label);border-top:1px solid var(--rule)}
.utb-f .fa{display:flex;align-items:center;gap:6px}.utb-f .ud{margin:0 2px}.utb-f .ud-p{top:auto;bottom:calc(100% + 6px);transform:translateY(4px)}.utb-f .ud-p.open{transform:none}.utb-f .ud-t{height:var(--h-sm);min-width:0}.utb-f a{color:var(--muted)}
/* a wide table scrolls sideways inside its card */
.utb.wide{overflow-x:auto}.utb.wide>.utb-h,.utb.wide .utb-r{min-width:var(--utb-min,1100px)}.utb.wide>.utb-f{position:sticky;left:0}   /* the page arrows stay in view while the rows scroll sideways */
/* a wide table scrolls sideways with its first column (the player) fixed, on the row's own colour (13-10-2026) */
.utb.wide>.utb-h>.th:first-child,.utb.wide .utb-r>:first-child{position:sticky;left:0;z-index:2;align-self:stretch;display:flex;align-items:center;margin-left:-14px;padding-left:14px;background:var(--card);box-shadow:8px 0 8px -8px rgba(17,17,17,.10)}
.utb.wide>.utb-h>.th:first-child{background:var(--th-bg)}.utb.wide .utb-r:hover>:first-child{background:var(--hover)}
/* phones (Amr's Lab pick 3B): a table is a compact list, the row's name and its key figure; a tap opens the row (its detail, its page) */
@media (max-width:599px){
  .utb.uta{border-radius:var(--ph-r)}
  .utb.uta>.utb-h{grid-template-columns:minmax(0,1fr) auto!important;column-gap:12px;min-width:0!important;padding-left:14px;padding-right:14px}.utb.uta>.utb-h>.th{display:none}
  .utb.uta>.utb-h>.th.p1,.utb.uta>.utb-h>.th.pk{display:flex;position:static!important;margin:0!important;padding-left:0!important;box-shadow:none!important;background:none!important}.utb.uta>.utb-h>.th.pk{justify-content:flex-end}.utb.uta>.utb-h .tq{display:none}
  .utb.uta.wide{overflow:visible}.utb.uta.wide>.utb-h,.utb.uta.wide .utb-r{min-width:0}
  .utb.uta .utb-r{grid-template-columns:minmax(0,1fr) auto!important;column-gap:12px;padding:8px 14px;min-height:52px;box-sizing:border-box;cursor:pointer}
  .utb.uta .utb-r>.td{display:none}
  .utb.uta .utb-r>.td.p1,.utb.uta .utb-r>.td.pk{display:flex;align-items:center}
  .utb.uta .utb-r>.td.p1{position:static!important;margin:0!important;padding:0!important;box-shadow:none!important;background:none!important;min-width:0;white-space:normal}
  .utb.uta .utb-r>.td.pk{justify-content:flex-end;text-align:right}
  .utb.uta .utb-r>.utb-d{grid-column:1 / -1}
  .utb.uta .utb-f{flex-wrap:wrap;gap:8px}
  /* a table drawn by hand keeps its columns and scrolls sideways inside its card, the next column peeking */
  .utb:not(.uta){overflow-x:auto;overscroll-behavior-x:contain}.utb:not(.uta)>.utb-h,.utb:not(.uta) .utb-r{min-width:var(--utb-min-ph,560px)}
}
/* a key and value list (figures, details): no header, label left, figure right */
.ukv{width:100%;border-collapse:collapse;font:400 13px/1.3 Inter,system-ui,sans-serif}
.ukv td{padding:10px 0;border-top:1px solid var(--soft);color:var(--body)}.ukv tr:first-child td{border-top:0}
.ukv td:last-child{text-align:right;font-variant-numeric:tabular-nums;color:var(--ink);font-weight:600;white-space:nowrap}
.ukv tr.tot td{border-top:1px solid var(--rule);font-weight:700;color:var(--ink)}

/* Card: one surface for everything that sits on the page. White, 1 px line, 12 px corners, 16 px inside.
   A card you can click lifts 2 px with a soft shadow; a card that only holds things never moves. */
.uk-c{position:relative;background:var(--card);border:1px solid var(--rule);border-radius:12px;padding:16px;box-sizing:border-box;min-width:0}
.uk-c.click{cursor:pointer;transition:transform .18s var(--ease),box-shadow .18s var(--ease),border-color .18s var(--ease)}
.uk-c.click:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(17,17,17,.08);border-color:var(--line)}
.uk-c.click:active{transform:translateY(0);box-shadow:none}
.uk-c.flush{padding:0;overflow:hidden}
/* card head: a small capital label, a count or caption on the right, icon buttons last */
.uk-h{display:flex;align-items:center;gap:8px;min-height:24px;margin:-2px 0 12px}
.uk-h .t{font:600 10.5px/1.2 Inter,system-ui,sans-serif;letter-spacing:.11em;text-transform:uppercase;color:var(--label);display:inline-flex;align-items:center;gap:8px}
.uk-h .t img{width:18px;height:18px;object-fit:contain}
.uk-h .c{margin-left:auto;font-size:11.5px;color:var(--label);white-space:nowrap}
.uk-h .ub{margin-left:4px}.uk-h .c+.ub{margin-left:8px}
/* stat tile: the figure in Oswald, the label under it, an icon in a soft square top right */
.uk-tile .v{font:500 32px/1 Oswald,Inter,sans-serif;color:var(--ink);font-variant-numeric:tabular-nums}
.uk-tile .l{margin-top:8px;font:600 10px/1.2 Inter,system-ui,sans-serif;letter-spacing:.11em;text-transform:uppercase;color:var(--label)}
.uk-tile .s{margin-top:4px;font-size:11.5px;color:var(--muted)}
.uk-tile .ti{position:absolute;top:14px;right:14px;width:34px;height:34px;border-radius:8px;background:var(--amber-soft);color:var(--amber-ink);display:grid;place-items:center}.uk-tile .ti svg{width:17px;height:17px}
/* a picture that is missing becomes initials, never a broken image */
/* a player picture: one light circle with a hairline on every page (Look and icons Lab 2B, 31-10-2026); the cut face shows the grey */
.uface{background:var(--soft);outline:1px solid var(--rule);outline-offset:-1px}
.uk-av{display:grid;place-items:center;flex:0 0 auto;width:40px;height:40px;border-radius:50%;overflow:hidden;background:var(--soft);font:600 13px Inter,system-ui,sans-serif;color:var(--muted)}
.uk-av img{width:100%;height:100%;object-fit:cover;object-position:top}
.uk-av.sq{border-radius:10px;background:var(--ink);color:#E7CD8C;font-family:Oswald,Inter,sans-serif;font-size:16px}.uk-av.sq img{object-fit:contain;background:var(--card)}
.uk-av.lg{width:46px;height:46px}
/* player card: his picture on his club colour, the name in Oswald, crest league and flag, then position, age and contract */
.uk-player{display:flex;flex-direction:column;padding:0;overflow:hidden}
.uk-player .ph{position:relative;aspect-ratio:4/5;background:linear-gradient(160deg,var(--acc,var(--body)),color-mix(in srgb,var(--acc,var(--body)) 60%,#000));overflow:hidden}
.uk-player .ph svg.sil{position:absolute;left:50%;bottom:0;height:86%;width:auto;transform:translateX(-50%);color:rgba(255,255,255,.55)}
.uk-player .ph .go{position:absolute;top:10px;right:10px}
.uk-player .bd{padding:12px 14px 14px;display:flex;flex-direction:column;gap:8px;flex:1}
.uk-player .n{font:500 19px/1.1 Oswald,Inter,sans-serif;text-transform:uppercase;letter-spacing:.01em;color:var(--ink);min-height:2.2em;display:flex;align-items:flex-end}
.uk-player .cl{font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.uk-player .ft{display:flex;gap:6px;margin-top:auto;flex-wrap:wrap}
.uk-chip{display:inline-flex;align-items:center;height:22px;padding:0 8px;border-radius:6px;background:var(--soft);font:600 11px/1 Inter,system-ui,sans-serif;color:var(--ink);font-style:normal;white-space:nowrap;font-variant-numeric:tabular-nums}
.uk-chip.warn{background:var(--red-soft);color:var(--danger)}.uk-chip.dash{color:var(--faint);font-weight:500}
/* stat tile, his choice (Dashboard review 12-10-2026): a small grey icon leads the label; no coloured box */
.uk-tile .l svg{width:13px;height:13px;flex:0 0 auto;color:var(--faint)}.uk-tile .l:has(svg){display:flex;align-items:center;gap:6px}
/* player card: the whole card opens his page; his club crest and his flag under the name (their names on hover) */
a.uk-player{text-decoration:none;color:inherit}
.uk-player.short .ph{aspect-ratio:auto;height:150px}.uk-player.short .ph svg.sil{height:88%}
.uk-player .ph img.hero{position:absolute;left:0;right:0;bottom:0;width:100%;height:100%;object-fit:contain;object-position:bottom center}
.uk-player .marks{display:flex;align-items:center;gap:8px;height:20px}.uk-player .marks img{height:20px;width:auto;max-width:28px;object-fit:contain}
.uk-player .marks img.fl{height:14px;border-radius:2px;box-shadow:0 0 0 1px rgba(0,0,0,.06)}
/* add card: dashed, slim, at the end of a row of cards */
.uk-add{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;border:1px dashed var(--line-2);background:var(--bg);color:var(--muted);font:600 13px Inter,system-ui,sans-serif;cursor:pointer;transition:border-color var(--t-fast) var(--ease),color var(--t-fast) var(--ease)}
.uk-add:hover{border-color:var(--ink);color:var(--ink)}.uk-add .plus{width:34px;height:34px;border-radius:50%;border:1px solid currentColor;display:grid;place-items:center}.uk-add .plus svg{width:16px;height:16px}
/* bar row: a ranked list (leagues, countries, clubs): mark, name, a thin bar, the figure in its own column */
.ubar{display:grid;grid-template-columns:24px minmax(0,1.5fr) minmax(28px,1fr) 34px;align-items:center;gap:8px;padding:6px 0;font-size:13px;color:var(--body)}
.ubar.go{cursor:pointer;border-radius:8px;padding:6px;margin:0 -6px}.ubar.go:hover{background:var(--hover)}
.ubar>img,.ubar>.m{width:24px;height:24px;object-fit:contain}   /* crests and logos in lists 24 px (Look and icons Lab 3B, 31-10-2026) */.ubar .nm{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ubar i{height:5px;border-radius:3px;background:var(--soft);display:block;overflow:hidden}.ubar i b{display:block;height:100%;border-radius:3px;background:var(--amber);transition:width var(--t-cons) var(--e-std)}
.ubar .v{text-align:right;font:500 15px/1 Oswald,Inter,sans-serif;color:var(--ink);font-variant-numeric:tabular-nums}
/* below: the name and the figure on one line, a full-width bar under them (his pick, 13-10-2026: the older look read better) */
.ubar.below{grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:"m n v" "i i i";row-gap:5px;column-gap:9px;padding:6px 0 8px;font-size:12.5px}
.ubar.below>img,.ubar.below>.m{grid-area:m;width:24px;height:24px}.ubar.below .nm{grid-area:n}.ubar.below .v{grid-area:v;font-size:14px}
.ubar.below i{grid-area:i;height:6px;background:var(--soft)}.ubar.below i b{background:var(--amber)}
.ubar.below.go{padding:6px 8px 9px;margin:0 -8px;transition:transform var(--t-fast) var(--ease),background var(--t-fast) var(--ease),box-shadow var(--t-fast) var(--ease)}
.ubar.below.go:hover{background:var(--hover);transform:translateY(-2px);box-shadow:0 6px 16px rgba(13,17,22,.08)}
/* a row: picture, name and a line under it; names as chips */
.uk-row{display:flex;align-items:center;gap:12px;min-width:0}.uk-row>div{min-width:0}
.uk-row b{display:block;font-weight:600;font-size:14px;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.uk-row small{display:block;font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.uk-names{display:flex;flex-wrap:wrap;gap:6px}
/* pick slot (Compare, Similar): empty asks for a player, filled shows him with a coloured edge and a close button, waiting is dimmed */
.uk-slot{display:flex;align-items:center;gap:12px;min-height:76px;padding:12px 14px}
.uk-slot.empty{border-style:dashed;border-color:var(--line);background:var(--card);cursor:pointer;transition:border-color .18s var(--ease),background .18s var(--ease)}
.uk-slot.empty:hover{border-color:var(--ink);background:var(--hover)}
.uk-slot.empty .plus{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:var(--ink);color:var(--on-ink);flex:0 0 auto}.uk-slot.empty .plus svg{width:16px;height:16px}
.uk-slot.full{border:1.5px solid var(--c,var(--ink));background:color-mix(in srgb,var(--c,var(--ink)) 5%,var(--card))}.uk-slot.full .uk-av{box-shadow:0 0 0 2px var(--card),0 0 0 3.5px var(--c,var(--ink))}
.uk-slot.full .ub.close{margin-left:auto}
.uk-slot.wait{border-style:dashed;background:transparent;color:var(--faint);justify-content:center;font-size:13px}
/* add card: dashed, a plus and what it adds */
.uk-add{display:grid;place-items:center;align-content:center;gap:10px;min-height:180px;border:1px dashed var(--line);background:var(--hover);color:var(--muted);cursor:pointer;transition:border-color .18s var(--ease),color .18s var(--ease)}
.uk-add:hover{border-color:var(--ink);color:var(--ink)}
.uk-add .plus{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;border:1.5px solid currentColor}.uk-add .plus svg{width:18px;height:18px}
.uk-add b{font-size:13px;font-weight:600}
/* nothing yet: a few one-click suggestions under a small label, or the card simply stays empty; no sentences */
.uk-sug{display:flex;flex-direction:column;gap:6px;max-width:640px}.uk-sug .k{font:600 10px/1.2 Inter,system-ui,sans-serif;letter-spacing:.11em;text-transform:uppercase;color:var(--faint);margin-bottom:2px}
.uk-pick{display:grid;grid-template-columns:32px minmax(0,1.2fr) 44px minmax(0,1fr) 16px;align-items:center;gap:10px;width:100%;padding:8px 10px;border:1px dashed var(--line);border-radius:10px;background:var(--card);text-align:left;font:inherit;cursor:pointer;transition:border-color var(--t-fast) var(--ease),background var(--t-fast) var(--ease)}
.uk-pick:hover{border-style:solid;border-color:var(--ink);background:var(--hover)}.uk-pick>b,.uk-pick>small{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.uk-pick b{display:block;font-size:13px;font-weight:600;color:var(--ink)}.uk-pick small{display:block;font-size:11.5px;color:var(--muted)}.uk-pick svg{width:16px;height:16px;color:var(--muted)}.uk-pick .uk-av{width:32px;height:32px;font-size:11px}

/* Expand and collapse: a head you click, a chevron on its right that turns, the content sliding open under it (260 ms).
   One item open at a time when the group asks for it; what was open is remembered. */
.ux{display:flex;flex-direction:column}
.ux-i+.ux-i{border-top:1px solid var(--soft)}
.ux-h{display:flex;align-items:center;gap:10px;width:100%;min-height:48px;padding:6px 2px;border:0;background:none;font:inherit;text-align:left;cursor:pointer;color:var(--ink)}
.ux-h .t{font:600 14px/1.2 Inter,system-ui,sans-serif;color:var(--ink);white-space:nowrap}
.ux-h .n{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:20px;padding:0 6px;border-radius:999px;background:var(--soft);font:600 11px/1 Inter,system-ui,sans-serif;color:var(--muted);font-variant-numeric:tabular-nums}
.ux-h .sm{display:flex;gap:6px;flex-wrap:wrap;margin-left:6px;min-width:0}
.ux-h .cv{margin-left:auto;width:16px;height:16px;flex:0 0 auto;color:var(--muted);transition:transform .26s var(--ease),color var(--t-fast) var(--ease)}
.ux-h:hover .cv{color:var(--ink)}
.ux-i.open>.ux-h .cv{transform:rotate(180deg);color:var(--ink)}
.ux-h:focus-visible{outline:0;box-shadow:var(--focus);border-radius:8px}
.ux-b{display:grid;grid-template-rows:0fr;transition:grid-template-rows .26s var(--ease)}
.ux-b>div{overflow:hidden;min-height:0}
.ux-i.open>.ux-b{grid-template-rows:1fr}
.ux-i.open>.ux-b>div{padding:2px 2px 14px}
/* a section that shows and hides: the same chevron in the section head, no Show / Hide words */
.ux-s>.ux-i>.ux-h{min-height:40px}.ux-s>.ux-i>.ux-h .t{font:600 10.5px/1.2 Inter,system-ui,sans-serif;letter-spacing:.11em;text-transform:uppercase;color:var(--label)}
.ux-more .xb{display:grid;grid-template-rows:0fr;transition:grid-template-rows .26s var(--ease)}.ux-more .xb>div{overflow:hidden;min-height:0}.ux-more.all .xb{grid-template-rows:1fr}
/* show more: the first five rows, the rest slide open under them; the whole last row is the button, its chevron in the figures column */
.ux-more .r{display:flex;align-items:center;gap:10px;min-height:34px;font-size:13px;color:var(--body)}.ux-more .r em{margin-left:auto;font-style:normal;color:var(--faint);font-variant-numeric:tabular-nums;font-size:12px}
.ux-more .mb{width:100%;margin:2px 0 0;padding:0;border:0;border-top:1px solid var(--soft);background:none;font:600 12.5px Inter,system-ui,sans-serif;color:var(--muted);cursor:pointer;text-align:left}
.ux-more .mb:hover{color:var(--ink)}.ux-more .mb svg{width:14px;height:14px;margin-left:auto;transition:transform .26s var(--ease)}.ux-more.all .mb svg{transform:rotate(180deg)}

/* Windows and drawers: one dim backdrop, one white box, a title with its close button, the content, the buttons at the bottom right.
   A window rises and fades in (180 ms); a drawer slides in from the right (260 ms). Escape, the close button and a click outside all close it; the page behind stays still. */
html.uw-lock{overflow:hidden;padding-right:10px}   /* the bar it hides keeps its room */
.uw{position:fixed;inset:0;z-index:70;display:flex;align-items:flex-start;justify-content:center;padding:8vh 20px 20px;background:rgba(17,17,17,0);overflow:auto;transition:background .18s var(--ease)}
.uw.on{background:rgba(17,17,17,.4)}
.uw-box:focus{outline:0}.uw-box{position:relative;display:flex;flex-direction:column;width:100%;max-height:84vh;background:var(--card);border-radius:16px;box-shadow:0 24px 60px rgba(17,17,17,.25);opacity:0;transform:translateY(8px) scale(.985);transition:opacity .18s var(--ease),transform .18s var(--ease)}
.uw.on .uw-box{opacity:1;transform:none}
.uw-box.s{max-width:440px}.uw-box.m{max-width:640px}.uw-box.l{max-width:980px}
.uw-h{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:20px 24px 12px}
.uw-h h3{margin:0;font:600 20px/1.15 Oswald,Inter,sans-serif;letter-spacing:.02em;text-transform:uppercase;color:var(--ink)}
.uw-h small{display:block;margin-top:4px;font-size:13px;color:var(--muted)}
.uw-b{padding:4px 24px 20px;overflow:auto;min-height:0;flex:1;font-size:13.5px;color:var(--body)}
.uw-f{display:flex;justify-content:flex-end;align-items:center;gap:8px;padding:14px 24px;border-top:1px solid var(--soft)}
.uw-f .lt{margin-right:auto;font-size:12px;color:var(--label)}
/* drawer: full height on the right, the head and the buttons stay while the content scrolls */
.uw.drawer{justify-content:flex-end;align-items:stretch;padding:0;overflow:hidden}
.uw.drawer .uw-box{height:100%;max-height:none;border-radius:16px 0 0 16px;opacity:1;transform:translateX(100%);transition:transform .26s var(--ease)}
.uw.drawer.on .uw-box{transform:none}
.uw.drawer .uw-box.s{max-width:380px}.uw.drawer .uw-box.m{max-width:640px}.uw.drawer .uw-box.l{max-width:1040px}
.uw.drawer .uw-h{border-bottom:1px solid var(--soft);padding-bottom:16px}.uw.drawer .uw-b{padding-top:16px}
/* popover: a small window tied to what opened it (the dropdown panel, with any content) */
.um-p.pop{width:300px;padding:10px}.um-p.pop .k{font:600 10px/1.2 Inter,system-ui,sans-serif;letter-spacing:.11em;text-transform:uppercase;color:var(--label);padding:8px 4px 4px}
@media (prefers-reduced-motion:reduce){.uw,.uw-box{transition:none}}
/* ---- phones (under 600 px; Amr's Phone layout Lab 30-10-2026 and FotMob's way): every colour, radius and motion of the phone layout
   comes from these variables, one place, so the coming art direction drops in without touching the layout */
:root{--ph-bg:#F2F3F5;--ph-card:#fff;--ph-ink:var(--ink);--ph-muted:var(--muted);--ph-line:var(--rule);--ph-bar:#fff;--ph-bar-ink:#9AA3AD;--ph-bar-on:#111;--ph-accent:#FFDA18;
  --ph-r:16px;--ph-r-sheet:20px;--ph-gap:12px;--ph-pad:12px;--ph-peek:28px;--ph-shadow:0 1px 2px rgba(17,17,17,.06);--ph-dim:rgba(17,17,17,.42);--ph-grab:#D1D5DB;
  --ph-ease:cubic-bezier(.2,.8,.2,1);--ph-rise:280ms;--ph-fast:200ms;--ph-barh:58px;--ph-snap-y:none}   /* --ph-snap-y: free scrolling (Amr 30-10-2026); "y proximity" turns section snapping on */
:root[data-theme="dark"]{--ph-bg:var(--bg);--ph-card:var(--card);--ph-bar:var(--card);--ph-bar-ink:#A0A7AF;--ph-bar-on:var(--ink);--ph-grab:#4A5058;--ph-dim:rgba(0,0,0,.6);--ph-shadow:0 1px 2px rgba(0,0,0,.4)}   /* dark (4.90) */
/* the top edge under an open window, sheet or drawer (7.21, Links session 19-11-2026): Safari 26 reads no theme-color and takes a
   full-screen dim for an overlay, so its status bar and toolbar stayed bright above the dimmed page. A thin solid strip fixed at
   the top edge, in the colour the dim gives the page, lends Safari that colour; clicks pass through it. Not yet seen on an iPhone */
:root{--ph-dim-top:color-mix(in srgb,rgb(17,17,17) 42%,var(--ph-bg));--ph-dim-top-40:color-mix(in srgb,rgb(17,17,17) 40%,var(--ph-bg));--ph-dim-top-ov:color-mix(in srgb,rgb(13,17,22) 90%,var(--ph-bg))}
:root[data-theme="dark"]{--ph-dim-top:color-mix(in srgb,#000 60%,var(--ph-bg))}
@media (max-width:599px){
  body:has(.uw.on,.ush-bg.on,.mdl:not([hidden]),.jdrawer.on,.ov.on)::before{content:'';position:fixed;left:0;right:0;top:-7px;height:12px;z-index:2147482999;pointer-events:none;background:var(--ph-dim-top)}
  body:has(.mdl:not([hidden]),.jdrawer.on)::before{background:var(--ph-dim-top-40)}   /* the app's own windows dim at 40% in both themes */
  body:has(.ov.on)::before{background:var(--ph-dim-top-ov)}
}
@media (max-width:599px){
  /* a window or a drawer is a sheet rising from the bottom, with a grab bar; it scrolls inside and a swipe down closes it */
  .uw,.uw.drawer{padding:0;align-items:flex-end;justify-content:center;overflow:hidden}
  .uw.on,.uw.drawer.on{background:var(--ph-dim)}
  .uw .uw-box,.uw.drawer .uw-box,.uw .uw-box.s,.uw .uw-box.m,.uw .uw-box.l{width:100%;max-width:none;height:auto;max-height:calc(100dvh - 28px);border-radius:var(--ph-r-sheet) var(--ph-r-sheet) 0 0;opacity:1;transform:translateY(100%);transition:transform var(--ph-rise) var(--ph-ease);padding-bottom:env(safe-area-inset-bottom)}
  .uw.drawer .uw-box{height:calc(100dvh - 28px)}
  .uw.on .uw-box,.uw.drawer.on .uw-box{transform:none}
  .uw-box::before{content:'';flex:0 0 auto;align-self:center;width:40px;height:5px;margin:8px 0 0;border-radius:3px;background:var(--ph-grab)}
  .uw-h{padding:12px 16px 10px}.uw-b{padding:4px 16px 16px;overscroll-behavior:contain}.uw-f{padding:12px 16px}
  .uw-box.dragging{transition:none}
  /* every picker and menu is a sheet over a dimmed page: a grab bar, its name, a clean list with room for a finger */
  .ud-p.sheet,.um-p.sheet{position:fixed!important;left:0!important;right:0!important;top:auto!important;bottom:0!important;z-index:1300;width:100%;min-width:0!important;max-width:none!important;max-height:72dvh!important;
    padding:0 10px calc(12px + env(safe-area-inset-bottom));border:0;border-radius:var(--ph-r-sheet) var(--ph-r-sheet) 0 0;box-shadow:0 -10px 40px rgba(17,17,17,.18);
    opacity:1;visibility:hidden;transform:translateY(100%);transition:transform var(--ph-rise) var(--ph-ease),visibility 0s linear var(--ph-rise);overscroll-behavior:contain}
  .ud-p.sheet.open,.um-p.sheet.open{visibility:visible;transform:none;transition:transform var(--ph-rise) var(--ph-ease),visibility 0s}
  .ud-p.sheet:not(.open){max-height:72dvh;padding-top:0;border-width:0}
  .ush-h{position:sticky;top:0;z-index:1;margin:0 -10px 4px;padding:8px 16px 10px;background:inherit;text-align:center;font:600 15px/1.2 Inter,system-ui,sans-serif;color:var(--ph-ink)}
  .ush-h::before{content:'';display:block;width:40px;height:5px;margin:0 auto 10px;border-radius:3px;background:var(--ph-grab)}
  .ud-p.sheet .ud-o,.um-p.sheet .um-i{min-height:48px;font-size:15px}
  .ush-bg{position:fixed;inset:0;z-index:1290;background:var(--ph-dim);opacity:0;pointer-events:none;transition:opacity var(--ph-fast) ease}
  .ush-bg.on{opacity:1;pointer-events:auto}
  /* sideways scrolling where it is needed (card rows, tab strips, wide content) never shows a scrollbar: the next item peeks past the edge (Amr 30-10-2026) */
  *{scrollbar-width:none}*::-webkit-scrollbar{display:none}
  .ud-p:not(.open):not(.sheet),.um-p:not(.open):not(.sheet){display:none}   /* a closed list takes no room, so it never pushes the page sideways */
  .us{max-width:100%;overflow-x:auto;flex-wrap:nowrap;overscroll-behavior-x:contain}.us>button{flex:0 0 auto}.us.icons{--h:46px}   /* icon switches: 40 px tap targets on the phone (Amr's rule, 30-10-2026; found on the Data page views, 15-11-2026) */
  /* a card row: one card at a time, the next one peeking */
  .ph-row{display:flex!important;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;gap:var(--ph-gap)!important;scroll-padding:0 var(--ph-pad)}
  .ph-row>*{flex:0 0 calc(100% - var(--ph-peek))!important;min-width:0;scroll-snap-align:start;scroll-snap-stop:always}
}
@media (max-width:599px) and (prefers-reduced-motion:reduce){.uw .uw-box,.ud-p.sheet,.um-p.sheet,.ush-bg{transition:none}}

/* Fields and forms: a small label above, one box the height of the selects and the search (38, 32 in rows), ink border when typing, red with a short message when wrong.
   Dates are typed as DD-MM-YYYY or picked on a calendar; long text shows what is left; checks are ink squares; sliders fill amber up to the thumb. */
.uf{display:flex;flex-direction:column;gap:6px;width:100%;min-width:0;position:relative;box-sizing:border-box}
.uf-l{font:600 10.5px/1.2 Inter,system-ui,sans-serif;letter-spacing:.11em;text-transform:uppercase;color:var(--label);display:flex;align-items:baseline;gap:6px}
.uf-l small{font-size:10.5px;font-weight:500;letter-spacing:0;text-transform:none;color:var(--faint)}
.uf-l .uf-v{margin-left:auto;font:600 14px/1 Oswald,sans-serif;letter-spacing:0;color:var(--ink);font-variant-numeric:tabular-nums}
.uf input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=date]):not([type=hidden]),.uf textarea,.uf-x{
  height:var(--h-md);width:100%;min-width:0;box-sizing:border-box;padding:0 12px;border:1px solid var(--line);border-radius:var(--r-md);background:var(--card);
  font:400 13px/1.35 Inter,system-ui,sans-serif;color:var(--ink);outline:0;transition:border-color var(--t-fast) var(--ease),background var(--t-fast) var(--ease)}
textarea{resize:none}  /* no message box can be dragged bigger: long text scrolls inside it */
.uf textarea{height:auto;min-height:96px;padding:10px 12px;line-height:1.5;resize:none}
.uf input::placeholder,.uf textarea::placeholder{color:var(--faint)}
.uf input:not([type=checkbox]):not([type=range]):hover,.uf textarea:hover,.uf-x:hover{border-color:var(--line-2)}
.uf input:not([type=checkbox]):not([type=range]):focus,.uf textarea:focus,.uf-x:focus-within{border-color:var(--ink)}
.uf input:disabled,.uf textarea:disabled,.uf-x.off{background:var(--soft)!important;color:var(--muted)!important;border-color:var(--rule)!important;cursor:not-allowed}
.uf input[type=number]{font-variant-numeric:tabular-nums}
.uf input[type=number]{-moz-appearance:textfield;appearance:textfield}.uf input[type=number]::-webkit-inner-spin-button,.uf input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
/* a box with a sign or a unit: @handle, 185 cm, 13.3 €m */
.uf-x{display:flex;align-items:center;gap:6px;padding:0 12px}
.uf .uf-x input{border:0!important;padding:0!important;height:100%!important;background:none!important;flex:1;min-width:0}
/* the browser's saved-password fill keeps the field white, never its own blue patch (his note 18-10-2026: half the password box turned blue) */
.uf input:-webkit-autofill,.uf input:-webkit-autofill:hover,.uf input:-webkit-autofill:focus{-webkit-box-shadow:0 0 0 60px #fff inset!important;box-shadow:0 0 0 60px var(--card) inset!important;-webkit-text-fill-color:var(--ink)!important;caret-color:var(--ink);transition:background-color 99999s 0s}
.uf-x>i{font-style:normal;font-size:13px;color:var(--faint);flex:0 0 auto}
.uf-x>svg{width:16px;height:16px;color:var(--muted);flex:0 0 auto}
.uf-h{font-size:11.5px;color:var(--muted);line-height:1.35}
.uf-n{align-self:flex-end;margin-top:-2px;font:500 11px/1 Inter,system-ui,sans-serif;color:var(--faint);font-variant-numeric:tabular-nums}.uf-n.near{color:var(--amber-ink)}
.uf.bad input:not([type=checkbox]),.uf.bad textarea,.uf.bad .uf-x,.uf-date.bad .uf-dt{border-color:var(--danger)!important}
.uf-e{font-size:11.5px;color:var(--danger);line-height:1.35}.uf:not(.bad) .uf-e{display:none}
.uf.sm input:not([type=checkbox]):not([type=range]),.uf.sm .uf-x{height:var(--h-sm);border-radius:var(--r-sm)}
/* two numbers, from and to */
.uf-2{display:grid;grid-template-columns:minmax(0,1fr) 12px minmax(0,1fr);align-items:center;gap:6px}.uf-2>span{text-align:center;color:var(--faint)}
/* dates */
.uf-date{position:relative;display:flex;align-items:center;width:100%;min-width:0}
.uf-date>input[type=date]{position:absolute;left:0;top:0;width:1px;height:1px;opacity:0;pointer-events:none;margin:0;padding:0;border:0}
.uf-date .uf-dt{height:var(--h-md);width:100%;box-sizing:border-box;padding:0 40px 0 12px;border:1px solid var(--line);border-radius:var(--r-md);background:var(--card);font:400 13px/1 Inter,system-ui,sans-serif;color:var(--ink);letter-spacing:.02em;font-variant-numeric:tabular-nums;outline:0;transition:border-color var(--t-fast) var(--ease)}
.uf-date .uf-dt:hover{border-color:var(--line-2)}.uf-date .uf-dt:focus{border-color:var(--ink)}.uf-date .uf-dt::placeholder{color:var(--faint)}
.uf-date .uf-dt:disabled{background:var(--hover);color:var(--faint);border-color:var(--rule)}
.uf-di{position:absolute;right:4px;top:50%;transform:translateY(-50%);width:30px;height:30px;border:0;border-radius:var(--r-sm);background:none;color:var(--muted);display:grid;place-items:center;cursor:pointer;padding:0}
.uf-di svg{width:16px;height:16px}.uf-di:hover{background:var(--hover);color:var(--ink)}
.um-p.ucal{position:fixed;z-index:95;width:268px;min-width:0;max-height:none;padding:10px;bottom:auto}
.ucal .uc-h{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px}
.ucal .uc-n{width:30px;height:30px;border:0;border-radius:var(--r-sm);background:none;color:var(--muted);display:grid;place-items:center;cursor:pointer;padding:0}.ucal .uc-n svg{width:16px;height:16px}.ucal .uc-n:hover{background:var(--hover);color:var(--ink)}
.ucal .uc-h span{font:600 14px/1 Oswald,sans-serif;letter-spacing:.04em;text-transform:uppercase;color:var(--ink)}
.ucal .uc-w,.ucal .uc-g{display:grid;grid-template-columns:repeat(7,1fr);gap:2px}
.ucal .uc-w s{text-decoration:none;text-align:center;font:600 10px/1 Inter,system-ui,sans-serif;letter-spacing:.08em;text-transform:uppercase;color:var(--label);padding:4px 0 6px}
.ucal .uc-g button{height:32px;border:0;border-radius:var(--r-sm);background:none;font:500 12.5px/1 Inter,system-ui,sans-serif;color:var(--ink);cursor:pointer;font-variant-numeric:tabular-nums;padding:0}
.ucal .uc-g button:hover:not(:disabled){background:var(--hover)}.ucal .uc-g button:disabled{color:var(--label);opacity:.45;cursor:default}.ucal .uc-g button.td{box-shadow:inset 0 0 0 1.5px var(--amber)}.ucal .uc-g button.on{background:var(--ink);color:var(--on-ink);font-weight:600}
.ucal .uc-f{display:flex;justify-content:space-between;margin-top:8px;padding-top:8px;border-top:1px solid var(--rule)}
.ucal .uc-f button{border:0;background:none;font:600 12px Inter,system-ui,sans-serif;color:var(--muted);cursor:pointer;padding:6px 8px;border-radius:6px}.ucal .uc-f button:hover{background:var(--hover);color:var(--ink)}
/* checks: an ink square with a white tick, the label beside it, a count on the right when it filters */
.ucb{display:flex;align-items:center;gap:10px;min-height:32px;font-size:13px;color:var(--ink);cursor:pointer;user-select:none;border-radius:var(--r-sm)}
.ucb input{appearance:none;-webkit-appearance:none;flex:0 0 auto;width:20px;height:20px;margin:0;border:1.5px solid #B8BEC6;border-radius:6px;background:var(--card) center/13px no-repeat;cursor:pointer;transition:border-color var(--t-fast) var(--ease),box-shadow var(--t-fast) var(--ease)}   /* his pick 12-10-2026: a firmer 20 px box */
/* ticked: a black tick on the white box, never a filled box (his choice, Dashboard review 12-10-2026) */
.ucb input:checked,.ucb input:indeterminate{background-color:var(--card);border:2px solid var(--ink);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111111' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E")}
.ucb input:indeterminate{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111111' stroke-width='3.2' stroke-linecap='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E")}
.ucb input:focus-visible{box-shadow:var(--focus)}
/* on dark: the same empty box, a light border once ticked and a yellow tick (controls.md: black ticks on white pages, yellow ticks on dark; Amr's review 02-11-2026) */
:root[data-theme="dark"] .ucb input{border-color:var(--line-2)}:root[data-theme="dark"] .ucb input:checked,:root[data-theme="dark"] .ucb input:indeterminate{border-color:var(--ink);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFDA18' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E")}:root[data-theme="dark"] .ucb input:indeterminate{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFDA18' stroke-width='3.2' stroke-linecap='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E")}:root[data-theme="dark"] .ucb:hover input:not(:checked){border-color:var(--ink)}
.ucb:hover input:not(:checked){border-color:var(--ink)}
.ucb input:disabled{opacity:.4;cursor:not-allowed}.ucb:has(input:disabled){color:var(--faint);cursor:not-allowed}
.ucb>span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ucb>img{width:18px;height:18px;object-fit:contain;flex:0 0 auto}
.ucb>small{margin-left:auto;font:500 12px/1 Oswald,sans-serif;color:var(--faint);font-variant-numeric:tabular-nums;flex:0 0 auto;min-width:24px;text-align:right}
.ucb.row{padding:0 8px;margin:0 -8px}.ucb.row:hover{background:var(--hover)}
/* sliders: one track, filled amber to the thumb (or between two thumbs), the value in the label's line */
/* the thumb is --tw wide; the fill runs to its centre, which travels from tw/2 to 100% - tw/2 */
input[type=range].ur,.ur2 input[type=range]{--tw:16px;-webkit-appearance:none;appearance:none;width:100%;height:22px;margin:0;background:transparent;cursor:pointer}
input[type=range].ur{background:linear-gradient(to right,var(--ink) 0,var(--ink) calc(var(--tw) / 2 + (100% - var(--tw)) * var(--p,.5)),var(--rule) calc(var(--tw) / 2 + (100% - var(--tw)) * var(--p,.5)),var(--rule) 100%) 0 50%/100% 4px no-repeat;border-radius:2px}
.ur2{--tw:16px;position:relative;height:22px;background:linear-gradient(to right,var(--rule) 0,var(--rule) calc(var(--tw) / 2 + (100% - var(--tw)) * var(--a,0)),var(--ink) calc(var(--tw) / 2 + (100% - var(--tw)) * var(--a,0)),var(--ink) calc(var(--tw) / 2 + (100% - var(--tw)) * var(--b,1)),var(--rule) calc(var(--tw) / 2 + (100% - var(--tw)) * var(--b,1)),var(--rule) 100%) 0 50%/100% 4px no-repeat}
.ur2 input[type=range]{position:absolute;inset:0;pointer-events:none;--tw:inherit}
input[type=range].ur::-webkit-slider-thumb,.ur2 input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;pointer-events:auto;width:16px;height:16px;border-radius:50%;background:var(--card);border:2px solid var(--ink);box-sizing:border-box;box-shadow:0 1px 4px rgba(17,17,17,.18);transition:transform var(--t-press) var(--ease)}   /* his note 26, 17-10-2026: a white handle on a thin black fill */
input[type=range].ur::-moz-range-thumb,.ur2 input[type=range]::-moz-range-thumb{pointer-events:auto;width:16px;height:16px;box-sizing:border-box;border-radius:50%;background:var(--card);border:2px solid var(--ink)}
input[type=range].ur:active::-webkit-slider-thumb,.ur2 input[type=range]:active::-webkit-slider-thumb{transform:scale(1.12)}
input[type=range].ur:focus-visible,.ur2 input[type=range]:focus-visible{outline:0}
input[type=range].ur:focus-visible::-webkit-slider-thumb,.ur2 input[type=range]:focus-visible::-webkit-slider-thumb{box-shadow:var(--focus)}
.uf-s{display:flex;justify-content:space-between;font:500 11px/1 Inter,system-ui,sans-serif;color:var(--faint);margin-top:-2px}
/* a form: two columns, a section title in Oswald, the buttons at the bottom right */
.ufm{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 16px}
.ufm .full{grid-column:1/-1}
.ufm-t{grid-column:1/-1;font:600 13px/1.2 Oswald,sans-serif;letter-spacing:.08em;text-transform:uppercase;color:var(--ink);padding-top:6px;margin-bottom:-4px}
.ufm-t+*{margin-top:0}.ufm-t:not(:first-child){border-top:1px solid var(--rule);padding-top:16px;margin-top:4px}
.ufm-f{grid-column:1/-1;display:flex;justify-content:flex-end;gap:8px;padding-top:6px}

/* Toasts and hints. A toast says what just happened, bottom right, for 4 seconds (errors 6, work in progress until it ends); up to three stack; hovering keeps it.
   A hint is the name of an icon button or a short fact, on hover. A notice sits in the page for something that stays true. A question comes before what cannot be undone. */
.uto-s{position:fixed;right:24px;bottom:24px;z-index:120;display:flex;flex-direction:column;gap:8px;align-items:flex-end;pointer-events:none}
.uto{display:flex;align-items:center;gap:10px;min-height:44px;max-width:min(440px,calc(100vw - 48px));box-sizing:border-box;padding:8px 8px 8px 12px;background:var(--card);border:1px solid var(--rule);border-radius:12px;box-shadow:0 12px 32px rgba(17,17,17,.14);
  font:500 13px/1.4 Inter,system-ui,sans-serif;color:var(--ink);pointer-events:auto;opacity:0;transform:translateY(10px);transition:opacity .2s var(--ease),transform .2s var(--ease)}
.uto.on{opacity:1;transform:none}
.uto-i{flex:0 0 auto;width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:var(--soft);color:var(--muted)}
.uto-i svg{width:13px;height:13px}
.uto.ok .uto-i{background:var(--green-soft);color:var(--ok)}.uto.warn .uto-i{background:var(--amber-soft);color:var(--amber-ink)}.uto.error .uto-i{background:var(--red-soft);color:var(--danger)}
.uto-sp{width:12px;height:12px;border-radius:50%;border:2px solid currentColor;border-right-color:transparent;animation:ubspin .8s linear infinite;box-sizing:border-box}
.uto-m{flex:1;min-width:0}.uto-m b{font-weight:600}
.uto-a{flex:0 0 auto;height:28px;padding:0 10px;border:0;border-radius:8px;background:var(--soft);font:600 12.5px Inter,system-ui,sans-serif;color:var(--ink);cursor:pointer}.uto-a:hover{background:var(--rule)}
.uto-x{flex:0 0 auto;width:28px;height:28px;border:0;border-radius:8px;background:none;color:var(--faint);display:grid;place-items:center;cursor:pointer;padding:0}.uto-x svg{width:14px;height:14px}.uto-x:hover{background:var(--hover);color:var(--ink)}
/* the dark version */
.uto-s.dark .uto{background:var(--ink);border-color:var(--ink);color:var(--on-ink);box-shadow:0 12px 32px rgba(17,17,17,.3)}
.uto-s.dark .uto-i{background:rgba(255,255,255,.12);color:#fff}.uto-s.dark .uto.ok .uto-i{background:#2E9E5B;color:#fff}.uto-s.dark .uto.warn .uto-i{background:var(--amber);color:var(--ink)}.uto-s.dark .uto.error .uto-i{background:#E5484D;color:#fff}
.uto-s.dark .uto-a{background:rgba(255,255,255,.14);color:#fff}.uto-s.dark .uto-a:hover{background:rgba(255,255,255,.24)}.uto-s.dark .uto-x{color:rgba(255,255,255,.6)}.uto-s.dark .uto-x:hover{background:rgba(255,255,255,.1);color:#fff}
/* hint */
.uhint{position:fixed;z-index:130;max-width:260px;padding:6px 9px;border-radius:7px;background:var(--ink);color:var(--on-ink);font:500 11.5px/1.35 Inter,system-ui,sans-serif;pointer-events:none;opacity:0;transform:translateY(-3px);transition:opacity .12s var(--ease),transform .12s var(--ease)}
.uhint.up{transform:translateY(3px)}.uhint.on{opacity:1;transform:none}
/* the info button: a small round i beside a label, its panel is the dropdown panel */
.uinfo{display:inline-grid;place-items:center;width:18px;height:18px;padding:0;border:0;border-radius:50%;background:var(--soft);color:var(--muted);cursor:pointer;vertical-align:middle;transition:background var(--t-fast) var(--ease),color var(--t-fast) var(--ease)}
.uinfo svg{width:14px;height:14px;display:block}.uinfo:hover,.uinfo.on{background:var(--ink);color:var(--on-ink)}
.um-p.pop .uin-r{display:grid;grid-template-columns:minmax(0,1fr) 36px;gap:12px;align-items:center;padding:5px 4px;font-size:12.5px;color:var(--body)}
.um-p.pop .uin-r b{font:600 14px/1 Oswald,sans-serif;color:var(--ink);text-align:right;font-variant-numeric:tabular-nums}
.um-p.pop .uin-r+.uin-r{border-top:1px solid var(--rule)}
/* the photo credit (Amr 14-11-2026, player pictures for articles): a small i at the bottom right of a photo; a click shows the credit in a faint line beside it.
   On an exported image (html[data-export], set in the export's clone) the i goes and the line stays, tiny and faint, so it never spoils the picture */
.uphc{position:absolute;right:8px;bottom:8px;z-index:3;display:flex;flex-direction:row-reverse;align-items:center;gap:6px;max-width:calc(100% - 16px);pointer-events:none}
.uphc>.uinfo{pointer-events:auto;position:relative;flex:0 0 auto;width:20px;height:20px;background:rgba(255,255,255,.7);color:#111;box-shadow:0 1px 3px rgba(17,17,17,.18)}
.uphc>.uinfo::before{content:"";position:absolute;inset:-10px}
.uphc>.uinfo:hover,.uphc.on>.uinfo{background:#fff;color:#111}
.uphc-t{pointer-events:auto;min-width:0;padding:4px 8px;border-radius:7px;background:rgba(255,255,255,.82);font:500 12px/1.35 Inter,system-ui,sans-serif;color:#4A4F57;opacity:0;visibility:hidden;transform:translateX(4px);transition:opacity var(--t-fast) var(--ease),transform var(--t-fast) var(--ease),visibility 0s linear var(--t-fast)}
.uphc.on .uphc-t{opacity:1;visibility:visible;transform:none;transition:opacity var(--t-fast) var(--ease),transform var(--t-fast) var(--ease),visibility 0s}
.uphc-t a{color:inherit;text-decoration:underline;text-underline-offset:2px}
html[data-export] .uphc>.uinfo{display:none}
html[data-export] .uphc-t{opacity:.55;visibility:visible;transform:none;transition:none;background:none;padding:0;font-size:9px;color:#fff;text-shadow:0 0 2px rgba(0,0,0,.6)}
html[data-export] .uphc-t a{text-decoration:none}
/* notice: tinted, an icon, one line of text, an action on the right */
.unote{display:flex;align-items:center;gap:12px;padding:12px 12px 12px 14px;border-radius:12px;background:var(--hover);border:1px solid var(--rule);font-size:13px;line-height:1.45;color:var(--body)}
.unote>svg{flex:0 0 auto;width:18px;height:18px;color:var(--muted)}
.unote b{color:var(--ink);font-weight:600}.unote>span{flex:1;min-width:0}
.unote.warn{background:#FFFBEA;border-color:#F4E2A1}.unote.warn>svg{color:var(--amber-ink)}
.unote.error{background:var(--red-soft);border-color:#F3C4BF}.unote.error>svg{color:var(--danger)}
.unote.ok{background:var(--green-soft);border-color:#BFE3CD}.unote.ok>svg{color:var(--ok)}
/* status line: where the work stands, beside the buttons that save it */
.ustat{display:inline-flex;align-items:center;gap:8px;font-size:12px;color:var(--muted);white-space:nowrap}
.ustat i{width:8px;height:8px;border-radius:50%;background:var(--line-2);flex:0 0 auto}
.ustat.ok i{background:var(--ok)}.ustat.warn i{background:var(--amber)}.ustat.busy i{width:12px;height:12px;background:none;border:2px solid var(--muted);border-right-color:transparent;animation:ubspin .8s linear infinite;box-sizing:border-box}

/* League logos on dark: the light disc of 31-10-2026 is gone; 5.52, Amr 08-11-2026: league logos follow the club crests on dark, the same thin light grey edge in place of the disc */
img[src*="assets/leagues/"]{box-sizing:border-box;object-fit:contain}
:root[data-theme="dark"] img[src*="assets/leagues/"]{filter:drop-shadow(0 0 .7px #C3C8CE) drop-shadow(0 0 .7px #C3C8CE)}
:root[data-theme="dark"] img[src*="assets/leagues/dark/"]{filter:none}   /* the white versions of dark logos need no edge (Amr 15-11-2026) */
/* Club crests on dark (Amr's Leagues Lab pick q2B, 06-11-2026, in place of the disc): no disc, a thin light grey edge so a dark crest still shows */
img[src*="assets/crests/"],img[src*="crests%2F"]{box-sizing:border-box;object-fit:contain}
:root[data-theme="dark"] img[src*="assets/crests/"],:root[data-theme="dark"] img[src*="crests%2F"]{filter:drop-shadow(0 0 .7px #C3C8CE) drop-shadow(0 0 .7px #C3C8CE)}
/* Scrollbars: a thin grey pill that floats on the page, no track, frame or arrows; ink on hover */
html{overflow-y:scroll}   /* the page never shifts sideways when its scrollbar comes or goes (the track is clear, so an unused bar is invisible) */
::-webkit-scrollbar{width:10px;height:10px;background:transparent}
::-webkit-scrollbar-track,::-webkit-scrollbar-corner{background:transparent}
::-webkit-scrollbar-button{display:none;width:0;height:0}
::-webkit-scrollbar-thumb{background:#B4BDC8;border-radius:10px;border:3px solid transparent;background-clip:padding-box;min-height:40px}
::-webkit-scrollbar-thumb:hover,::-webkit-scrollbar-thumb:active{background-color:var(--muted)}
@supports not selector(::-webkit-scrollbar){*{scrollbar-width:thin;scrollbar-color:#B4BDC8 transparent}}

/* Live figures and history (Arc UI motion rebuilt): a counter whose digits roll, a timeline, the Edit button on a picture */
.uodo{display:inline-flex;overflow:hidden;line-height:1;vertical-align:baseline}
.uodo .d{display:inline-flex;justify-content:center;height:1em;overflow:hidden;transition:width var(--t-cons) var(--e-std)}
.uodo .d>i{flex:0 0 auto;display:flex;flex-direction:column;align-items:center;font-style:normal;transition:transform var(--t-cons) var(--e-std)}
.uodo .d>i>b{height:1em;font-weight:inherit;display:block;width:max-content}
.utl{position:relative;padding-left:22px}
.utl::before{content:'';position:absolute;left:6px;top:10px;bottom:10px;width:2px;background:var(--rule)}
.utl-i{position:relative;animation:utlin var(--t-cons) var(--e-enter) both}
.utl-i::before{content:'';position:absolute;left:-20px;top:12px;width:10px;height:10px;border-radius:50%;background:var(--card);border:2px solid var(--ink);box-sizing:border-box}
@keyframes utlin{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.upic{position:relative;display:inline-flex;flex:0 0 auto;width:max-content}
.upic>.um{position:absolute;right:-7px;bottom:-7px}
.avpin{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;padding:0;cursor:pointer;background:var(--card);color:var(--ink);border:1px solid var(--line);box-shadow:0 1px 3px rgba(16,24,40,.16);transition:border-color var(--t-fast),transform var(--t-fast)}
.avpin:hover{border-color:var(--ink);transform:scale(1.06)}.avpin svg{width:14px;height:14px}.avpin:focus-visible{outline:0;box-shadow:var(--focus)}
.um-i .sw{width:16px;height:16px;border-radius:5px;border:1px solid var(--line);flex:0 0 auto}
.um-i .ck{margin-left:auto;width:14px;height:14px;opacity:0;color:var(--ink);flex:0 0 auto}.um-i.on .ck{opacity:1}
.phone .uwa{flex:0 0 auto;align-self:center;width:30px;height:30px;margin:0 4px;padding:0;border:1px solid var(--line);border-radius:8px;background:var(--card);color:#7A8591;display:grid;place-items:center;cursor:pointer;transition:background var(--t-fast),color var(--t-fast),border-color var(--t-fast)}
.phone .uwa svg{width:16px;height:16px;display:block}.phone .uwa:hover{border-color:var(--line-2);color:#1F7A47}.phone .uwa.on{background:#1F7A47;border-color:#1F7A47;color:#fff}
/* skeleton (16-10-2026): grey blocks with a soft moving shine where figures are still arriving; never a spinner, never an empty box */
.usk{display:block;border-radius:8px;background:linear-gradient(90deg,var(--soft) 0,var(--hover) 40%,var(--soft) 80%);background-size:300% 100%;animation:uskmove 1.4s ease-in-out infinite}
.usk.ln{height:12px;border-radius:6px}.usk.ln+.usk.ln{margin-top:10px}.usk.dot{width:10px;height:10px;border-radius:50%}
.usk-chart{position:relative;display:grid;grid-template-columns:40px 1fr;grid-template-rows:1fr 30px;gap:10px;aspect-ratio:16/10;max-height:560px}
.usk-chart .usk.y{grid-row:1;width:28px;justify-self:end}.usk-chart .usk.area{grid-row:1;grid-column:2}.usk-chart .usk.x{grid-row:2;grid-column:2;height:12px;align-self:center}
@keyframes uskmove{from{background-position:100% 0}to{background-position:0 0}}
@media (prefers-reduced-motion:reduce){.uodo .d,.uodo .d>i,.utl-i,.usk{transition:none;animation:none}}

/* The paper grain (3B): one layer over everything, cards and pictures too, 6% on light and 5% on dark. It never takes a click
   (pointer-events none) and a page inside a frame leaves it to the page around it, so it is never doubled. */
body::after{content:'';position:fixed;inset:0;pointer-events:none;z-index:2147483000;background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");opacity:var(--grain);mix-blend-mode:var(--grain-blend)}
html.framed body::after{display:none}
html.thx::view-transition-old(root),html.thx::view-transition-new(root){animation-duration:.45s;animation-timing-function:ease}   /* the theme change, one smooth motion */
@media print{body::after{display:none}}
/* The faint grid (6B, Amr's idea of 26-10): thin white lines inside a coloured shape, fading toward the bottom. Add .ugrid to the
   shape; the grid sits behind the shape's content (its own stacking layer) and never takes a click. */
.ugrid{isolation:isolate}
.ugrid::before{content:'';position:absolute;inset:0;z-index:-1;border-radius:inherit;pointer-events:none;
  background-image:linear-gradient(var(--grid-c,rgba(255,255,255,.2)) 1px,transparent 1px),linear-gradient(90deg,var(--grid-c,rgba(255,255,255,.2)) 1px,transparent 1px);
  background-size:var(--grid-s,14px) var(--grid-s,14px);-webkit-mask:linear-gradient(180deg,#000,rgba(0,0,0,.12));mask:linear-gradient(180deg,#000,rgba(0,0,0,.12))}
/* The headline bar (5A): one word of a page title on FotScout yellow. Page titles only; player names stay plain. */
.nb{display:inline-block;background:var(--amber);color:#111;padding:0 .12em;line-height:1.02}
