/* Design tokens. Neutral scale, radius scale, shadows and easing follow
   the Pickalogue system (see docs/decisions.md, 17 Sep 2026); the accent is
   Lorgis green. Everything is flat: cards are white on the tinted panel, no
   hairlines, no shadows except on things that float (menus, modal, toast). */
:root{
  --red:#D92D20;            /* critical only: errors, offline, destructive */
  --ember:#B42318;          /* critical ink on its soft ground; negative deltas */
  /* The accent is the organisation's, when it has one: app.js derives every
     variant from organisations.brand_accent and sets the --org-* variables
     inline at boot. With none set these fall through to the Lorgis green. */
  --accent:var(--org-accent,#00715B);            /* buttons, active states, highlights (white text passes) */
  --accent-dark:var(--org-accent-dark,#005A48);  /* hover */
  --accent-bright:var(--org-accent-bright,#00BD84); /* fills and bars, and accent text on dark surfaces */
  --accent-soft:var(--org-accent-soft,rgba(0,189,132,.14)); /* tinted fill behind accent text or icons */
  --ink:#16161d;            /* active pills, toast — constant */
  --frame:#eef1f5;          /* the frame and sidebar behind the panel — flips */
  --panel:#ffffff;          /* the content panel — flips */
  --panel-dark:#24242e;     /* dark cards inside the light panel — a step lighter than the frame so they read as cards, not holes */
  --black:#16161d;          /* primary text — flips */
  --white:#ffffff;          /* card surface — flips */
  --bg:#f4f7fa;             /* the content panel — flips */
  --grey:#5f6772;           /* secondary text, 5.7:1 on white — flips */
  --grey-light:#e7ecf1;     /* dividers — flips */
  --border:#e7ecf1;         /* card/tile borders on white — flips */
  --border-strong:#d3dae3;  /* borders on the grey frame, where #e7ecf1 disappears — flips */
  --grey-fill:#eef2f6;      /* subtle fills, hover rows — flips */
  --muted:#8a919b;          /* placeholder/tertiary — flips */
  --hover-fill:#e6ebf1;     /* flips */
  --border-hover:#dce3ea;   /* control borders — flips */
  --success:#00A072;        /* colour system (8 Oct 2026): good = green 600 */
  /* Chart series, fixed order, validated for colour-blind separation. */
  --s1:#00A072; --s2:#7C5CE6; --s3:#D97706; --s4:#2F6FED; --s5:#E8604C; --s6:#C2419A;
  /* Green ramp for sequential (magnitude) scales. */
  --g200:#8FE0C3; --g300:#4FD0A5; --g400:#1FC48E; --g600:#00A072; --g700:#00715B;
  /* Status: ink + soft ground, never reused as a series. */
  --warn:#8A5A00; --warn-bg:#FFF4DB; --info:#1D4ED8; --info-bg:#E4ECFD;
  --success-bg:#E6F7F1;
  --danger-bg:#FEE4E2;
  --danger-border:#f3b3bd; --border:#e7ecf1; --border-strong:#d3dae3; --warn:#8A5A00; --warn-bg:#FFF4DB; --info:#1D4ED8; --info-bg:#E4ECFD;
  --radius:24px;            /* page cards, modal, KPI tiles */
  --r-ml:18px;              /* row cards: reports, fixtures, players, stats */
  --r-md:14px;              /* controls: buttons, inputs, nav items */
  --r-sm:8px;               /* nested inside a control */
  --shadow:none;
  --shadow-lift:0 18px 50px rgba(11,18,32,.16);
  --ease:cubic-bezier(.4,0,.2,1);
  --ease-out:cubic-bezier(.16,1,.3,1);
  --mono:'SF Mono',ui-monospace,Menlo,Consolas,monospace;
  /* Squircle corners via SVG mask — a superellipse (n=4) "pocket" per corner,
     XOR'd out of an opaque rect, so the cut is the same shape on any box
     without stretching into an ellipse. Ported from Pickalogue; regenerate
     there if the exponent ever changes. Applied by selector below. */
}
:root[data-theme="dark"]{
  --accent:var(--org-accent-dm,#1FC48E); --accent-dark:var(--org-accent-dm-dark,#17A877); --accent-soft:var(--org-accent-soft,rgba(31,196,142,.16));
  --black:#f2f2f3; --white:#1b1e24; --bg:#0f1115; --frame:#0b0d11; --panel:#16181d;
  --grey:#9aa3ad; --grey-light:#262a31; --grey-fill:#20242b;
  --muted:#6b727c; --hover-fill:#282d35; --border-hover:#343a43;
  --success-bg:#0f2a1a; --danger-bg:#3a1218; --danger-border:#5c1f28; --border:#2a2f3a; --border-strong:#3a414d; --warn:#E5B35B; --warn-bg:#2b2010; --info:#8AB0FF; --info-bg:#0f1c3d;
  --shadow-lift:0 18px 50px rgba(0,0,0,.5);
  --shadow-card:0 1px 2px rgba(0,0,0,.3),0 6px 16px rgba(0,0,0,.25);
}
:root[data-theme="dark"] select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239aa3ad' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E")}
:root[data-theme="light"]{
  --accent:var(--org-accent,#00715B); --accent-dark:var(--org-accent-dark,#005A48); --accent-soft:var(--org-accent-soft,rgba(0,189,132,.14));
  --black:#16161d; --white:#ffffff; --bg:#f4f7fa; --frame:#eef1f5; --panel:#ffffff;
  --grey:#5f6772; --grey-light:#e7ecf1; --grey-fill:#eef2f6;
  --muted:#8a919b; --hover-fill:#e6ebf1; --border-hover:#dce3ea;
  --success-bg:#E6F7F1; --danger-bg:#FEE4E2; --danger-border:#f3b3bd; --border:#e7ecf1; --border-strong:#d3dae3; --warn:#8A5A00; --warn-bg:#FFF4DB; --info:#1D4ED8; --info-bg:#E4ECFD;
  --shadow-lift:0 18px 50px rgba(11,18,32,.16);
  --shadow-card:0 1px 2px rgba(22,22,29,.04),0 6px 16px rgba(22,22,29,.05);   /* subtle lift on white cards over the grey ground */
}
:root[data-theme="light"] select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235f6772' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E")}
*{box-sizing:border-box;margin:0;padding:0}
body{font-family:'Google Sans Flex',-apple-system,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;background:var(--bg);color:var(--black);font-size:15px;line-height:1.5;transition:background-color .2s,color .2s}
h1,h2,h3{font-weight:600;letter-spacing:-0.01em}

/* ── Auth ── */
/* spacing scale: 12 / 24 / 36 / 48 / 60 */
.auth-wrap{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px;background:var(--grey-fill);position:relative}
.auth-card{background:var(--white);border-radius:20px;padding:36px;max-width:400px;width:100%;text-align:center;box-shadow:var(--shadow-lift)}
.auth-card.split{display:flex;max-width:none;width:auto;padding:12px;gap:12px;text-align:center}
.auth-visual{width:384px;border-radius:14px;background:var(--grey-fill);overflow:hidden;position:relative;min-height:420px}
.auth-visual img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;opacity:0;transition:opacity 2.4s ease;z-index:0}
.auth-visual img.prev{opacity:1;transition:none;z-index:1}
.auth-visual img.active{opacity:1;z-index:2}
.auth-form{width:384px;padding:36px;display:flex;flex-direction:column}
.auth-form > div{display:flex;flex-direction:column;flex:1}
.auth-note{margin-top:auto;padding-top:36px;font-size:12px;color:var(--muted)}
@media(max-width:800px){
  .auth-card.split{flex-direction:column;width:100%;max-width:400px}
  .auth-visual{width:100%;min-height:150px;max-height:170px}
  .auth-form{width:100%}
}
.auth-logo{height:60px;width:auto;margin:0 auto 12px;display:block}
.auth-card .tag{color:var(--grey);font-size:14px;font-weight:400;margin-bottom:36px}
.auth-card .field{text-align:left;margin-bottom:12px}
/* borderless grey fields with in-field labels */
.auth-card .field input{background:var(--grey-fill);border:1.5px solid transparent;border-radius:12px}
.auth-card .field input::placeholder{color:var(--grey)}
.auth-card .field input:hover{background:var(--hover-fill)}
.auth-card .field input:focus{background:var(--grey-fill);border-color:var(--black);box-shadow:none}
.auth-card .field input:-webkit-autofill,
.auth-card .field input:-webkit-autofill:hover,
.auth-card .field input:-webkit-autofill:focus{
  -webkit-box-shadow:0 0 0 1000px var(--grey-fill) inset;
  -webkit-text-fill-color:var(--black);
  caret-color:var(--black);
  transition:background-color 99999s ease-in-out 0s;
}
.btn-block{width:100%;justify-content:center;text-align:center}
.auth-links{margin-top:12px;font-size:12px}
.auth-links a{color:var(--muted);font-weight:600;text-decoration:none}
.auth-links a:hover{text-decoration:underline;text-underline-offset:2px;color:var(--grey)}
.auth-err{color:var(--red);font-size:13px;border-radius:10px;max-height:0;opacity:0;overflow:hidden;transition:max-height .35s ease,opacity .25s ease,margin-top .35s ease,padding .35s ease}
.auth-err:not(:empty){background:var(--danger-bg);margin-top:12px;padding:10px 12px;max-height:60px;opacity:1}
.auth-err.ok{color:var(--success);background:transparent}
.auth-copyright{position:absolute;bottom:48px;left:0;right:0;text-align:center;font-size:12px;color:var(--muted)}
.auth-copyright a{color:var(--muted)}

/* ── App shell: a dark frame insets a light content panel; the sidebar is
   part of the frame. Pickalogue's shell: 12px inset, 12px gap, 224px sidebar. ── */
.app-shell{display:flex;align-items:stretch;gap:12px;padding:12px;min-height:100vh;background:var(--panel)}
.sidebar{width:200px;flex-shrink:0;background:var(--frame);border-radius:var(--radius);display:flex;flex-direction:column;padding:12px;position:sticky;top:12px;height:calc(100vh - 24px);z-index:50}
.sidebar-top{padding:0}
.nav-logo{height:36px;display:block}
:root[data-theme="dark"] .nav-logo{content:url(/assets/logo-white.svg)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .nav-logo{content:url(/assets/logo-white.svg)}}
/* Account card — Pickalogue's: centred column, crest as avatar, name /
   organisation / role, the menu trigger tucked in the corner. */
.user-card{display:flex;flex-direction:column;align-items:center;gap:6px;width:100%;padding:24px 12px;border:0;border-radius:0;background:transparent;position:relative;font-family:inherit;text-align:center;color:var(--black)}
.user-avatar{width:60px;height:60px;border-radius:0;background:transparent;display:flex;align-items:center;justify-content:center;overflow:visible;flex-shrink:0;margin-bottom:4px}
.user-avatar img{width:60px;height:60px;object-fit:contain;display:block}
.user-avatar svg{width:24px;height:24px;color:var(--grey)}
.user-text{display:flex;flex-direction:column;align-items:center;gap:3px;min-width:0;max-width:100%}
.user-name{font-weight:600;font-size:14px;line-height:20px;color:var(--black);max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.user-org{font-size:12px;line-height:16px;color:var(--grey);max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.user-role{display:none;font-size:12px;line-height:14px;color:var(--muted)}
/* Platform credit at the foot: caption above the mark, both left-aligned. */
.powered-by{position:relative;display:flex;flex-direction:row;align-items:flex-end;justify-content:space-between;gap:8px;padding:12px;width:100%}
/* The block is centred; the caption sits on the logo's own left edge. */
.powered-by-inner{display:flex;flex-direction:column;align-items:flex-start;gap:4px}
.powered-by-label{font-size:12px;line-height:12px;color:var(--muted);margin:0}
.powered-by .nav-logo{height:32px}

.side-nav{display:flex;flex-direction:column;gap:0;flex:1;overflow-y:auto}
.side-nav button{display:flex;align-items:center;gap:10px;width:100%;text-align:left;border:0;background:transparent;padding:12px;border-radius:var(--r-md);font-size:14px;font-weight:500;line-height:18px;color:var(--black);cursor:pointer;transition:background .14s var(--ease),color .14s var(--ease);font-family:inherit}
.side-nav button:hover{background:rgba(22,22,29,.05);color:var(--black)}
/* Active = a white pill on the grey frame, not the accent: the frame stays
   neutral whatever the organisation's colour. */
/* Debossed: pressed into the grey — a faint inner shadow along the top-left and a hairline edge. */
.side-nav button.active{background:var(--panel);color:var(--black);font-weight:700;box-shadow:inset 0 1px 2px rgba(22,22,29,.08),inset 1px 0 1px rgba(22,22,29,.03),inset 0 0 0 1px rgba(22,22,29,.05)}
.side-nav svg{width:20px;height:20px;flex-shrink:0}
.side-nav button .ico-fill{display:none}
.side-nav button.active .ico-line{display:none}
.side-nav button.active .ico-fill{display:block}
/* Users and Settings sit at the foot of the nav, above the platform mark. */
#tabAdmin{margin-top:auto}

.sidebar-bottom{margin-top:auto;padding:14px 0 0;border-top:0;display:flex;flex-direction:column;gap:10px}
.net-pill{display:none;align-self:flex-start;display:flex;align-items:center;gap:6px;font-size:12px;color:rgba(255,255,255,.6);border:1px solid rgba(255,255,255,.12);border-radius:999px;padding:5px 12px;background:transparent}
.net-dot{width:8px;height:8px;border-radius:50%;background:var(--accent-bright)}
.offline .net-dot{background:var(--red)}

/* account menu — dark, like the column it sits in */
.account{position:static}   /* the menu anchors to the foot row, not the ⋮ */
.avatar{width:30px;height:30px;border-radius:50%;background:var(--accent-soft);color:var(--accent-bright);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.avatar svg{width:17px;height:17px}
.acct-more{color:var(--grey);font-weight:700;font-size:18px;line-height:1;background:none;border:0;cursor:pointer;padding:6px 8px;border-radius:var(--r-sm)}
.acct-more:hover{background:rgba(22,22,29,.06);color:var(--black)}
.account-menu{position:absolute;bottom:calc(100% + 4px);left:0;right:0;background:var(--panel);border:1px solid var(--border);border-radius:var(--r-md);box-shadow:0 2px 8px rgba(22,22,29,.06);min-width:0;padding:6px;display:none;z-index:60;color:#fff}
.account-menu.open{display:block}
.account-menu .who{padding:8px 10px 10px;border-bottom:1px solid var(--border);margin-bottom:4px}
.account-menu .who .name{font-weight:600;font-size:14px;color:var(--black)}
.role-chip{display:inline-block;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;border-radius:999px;padding:2px 10px;margin-top:4px}
.role-chip.scout{background:var(--grey-fill);color:var(--grey)}
.role-chip.admin{background:var(--accent-soft);color:var(--accent)}
.role-chip.coordinator{background:var(--frame);color:var(--black);box-shadow:inset 0 0 0 1px var(--border-strong)}
.role-chip.coach{background:transparent;border:1px solid var(--border);color:var(--black)}
/* The same chips on a light surface (Users table, user modal). */
.scout-table .role-chip.scout,.modal .role-chip.scout{background:var(--grey-fill);color:var(--grey)}
.scout-table .role-chip.admin,.modal .role-chip.admin{background:var(--accent-soft);color:var(--accent)}
.scout-table .role-chip.coach,.modal .role-chip.coach{background:transparent;border:1px solid var(--border);color:var(--black)}
/* Theme row: a label and a plain switch, no segmented control. */
.theme-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 10px;margin:0;font-size:13px;font-weight:600;letter-spacing:0;text-transform:none;color:var(--black);cursor:pointer;border-radius:var(--r-sm)}
.theme-row:hover{background:var(--grey-fill)}
.switch{position:relative;width:36px;height:20px;flex-shrink:0}
.switch input{position:absolute;opacity:0;width:0;height:0}
.switch .knob{position:absolute;inset:0;background:var(--border-strong);border-radius:999px;transition:background .15s}
.switch .knob::after{content:"";position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.2);transition:transform .15s}
.switch input:checked+.knob{background:var(--accent)}
.switch input:checked+.knob::after{transform:translateX(16px)}
.switch input:focus-visible+.knob{outline:2px solid var(--black);outline-offset:2px}
.account-menu button.item{display:block;width:100%;text-align:left;background:none;border:0;padding:9px 10px;font-size:13px;font-weight:600;cursor:pointer;font-family:inherit;color:var(--black);border-radius:var(--r-sm)}
.account-menu button.item:hover{background:var(--grey-fill)}

/* clickable table row (Users roster, etc.) — opens a detail modal */
.scout-table-row.row-click{cursor:pointer;transition:background .12s}

.app-main{flex:1;min-width:0;background:var(--panel);border-radius:var(--radius)}
main{max-width:1280px;margin:0 auto;padding:48px 48px 80px}

.hamburger-btn{display:none;background:none;border:0;padding:8px;margin:0 -8px 0 4px;cursor:pointer;color:var(--black);flex-shrink:0}
.hamburger-btn svg{width:22px;height:22px;display:block}
.side-nav .nav-close-btn{display:none}
.mobile-account-block{display:none}

@media(max-width:800px){
  .app-shell{flex-direction:column;padding:0;gap:0}
  .app-main{border-radius:0}
  main{padding:24px 20px 80px;--main-pad:20px}
  .sidebar{width:100%;height:auto;top:0;position:sticky;flex-direction:row;align-items:center;justify-content:space-between;padding:10px 16px;gap:16px;background:var(--frame)}
  .sidebar-top{padding:0;display:flex;align-items:center;gap:12px;min-width:0}
  /* Phone top bar: the card collapses to a row — crest, then name over org. */
  .user-card{flex-direction:row;padding:4px 6px;gap:10px;border:0;text-align:left;width:auto}
  .user-avatar{width:34px;height:34px;margin:0}
  .user-avatar img{width:34px;height:34px}
  .user-text{align-items:flex-start;gap:0}
  .user-role,.user-card .acct-more{display:none}
  .nav-logo{height:30px}
  .hamburger-btn{display:flex;align-items:center;justify-content:center}
  .nav-divider{display:none}
  /* Unified single hamburger menu — the account button/dropdown is folded
     into the nav overlay below (see .mobile-account-block), so the
     separate profile control in the top bar is no longer needed here. */
  .sidebar-bottom{display:none}

  /* Full-screen overlay menu, opened by the hamburger button — the
     horizontal in-bar nav it replaces used to overflow behind the
     account button once there were enough tabs. */
  .side-nav{display:none}
  .side-nav.mobile-open{
    display:flex;flex-direction:column;gap:4px;
    position:fixed;inset:0;z-index:300;
    background:var(--frame);padding:18px;overflow-y:auto;
  }
  .side-nav.mobile-open .nav-close-btn{
    display:flex;align-self:flex-end;align-items:center;justify-content:center;
    background:none;border:0;padding:10px;margin-bottom:8px;cursor:pointer;color:var(--black);width:auto;
  }
  .side-nav.mobile-open .nav-close-btn svg{width:22px;height:22px}
  .side-nav.mobile-open > button:not(.nav-close-btn){
    flex-direction:row;padding:15px 18px;font-size:16px;border-radius:12px;
  }

  /* Profile/role/theme/sign-out — pinned below the nav items, same
     "account section at the bottom" treatment as the desktop sidebar. */
  .side-nav.mobile-open .mobile-account-block{
    display:block;margin-top:auto;padding-top:16px;border-top:1px solid var(--border);
  }
  .mobile-account-block .who{padding:6px 18px 14px}
  .mobile-account-block .who .name{font-weight:600;font-size:15px;color:var(--black)}
  .mobile-account-block .theme-toggle{margin:0 18px 14px}
  .mobile-account-block .theme-toggle button{width:auto}
  .mobile-account-block button.item{
    display:block;width:100%;text-align:left;background:none;border:0;
    padding:14px 18px;font-size:16px;font-weight:600;cursor:pointer;font-family:inherit;color:var(--black);
  }
  .mobile-account-block button.item:hover{background:var(--grey-fill)}
}

.card{background:var(--white);border:0;border-radius:var(--radius);padding:24px;box-shadow:var(--shadow-card)}
.page-title{font-size:28px;line-height:32px;font-weight:600;letter-spacing:-0.02em;margin-bottom:36px}

.subnav{display:flex;align-items:center;gap:10px;margin:2px 0 18px;font-size:14px}
.subnav .back{display:inline-flex;align-items:center;gap:6px;color:var(--grey);font-weight:600;cursor:pointer;background:none;border:0;padding:4px 0;font-family:inherit;font-size:14px}
.subnav .back:hover{color:var(--black)}
.subnav .crumb-sep{color:var(--grey-light)}
.subnav .crumb-current{font-weight:700;color:var(--black)}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:8px 22px}
@media(max-width:640px){.grid2{grid-template-columns:1fr}}

/* ── Fields ── */
label{display:block;font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.07em;color:var(--grey);margin-bottom:6px}
input,select,textarea{
  width:100%;padding:12px 14px;font-size:15px;font-family:inherit;color:var(--black);
  background:var(--white);border:1px solid var(--border-hover);border-radius:var(--r-md);
  transition:border-color .15s,box-shadow .15s;
}
input::placeholder,textarea::placeholder{color:var(--muted)}
input:hover,select:hover,textarea:hover{border-color:var(--grey)}
input:focus,select:focus,textarea:focus{outline:0;border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
select{appearance:none;-webkit-appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;padding-right:38px}
.field{margin-bottom:18px}
.hint{font-size:13px;color:var(--grey)}
.section-label{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.1em;color:var(--grey);margin:4px 0 14px}

.btn{display:inline-flex;align-items:center;gap:8px;border:0;border-radius:var(--r-md);padding:12px 24px;font-size:14px;font-weight:600;line-height:20px;cursor:pointer;transition:background .16s var(--ease),border-color .16s var(--ease),color .16s var(--ease);font-family:inherit;white-space:nowrap}
.btn svg{width:17px;height:17px;flex-shrink:0}
.btn-primary{background:var(--accent);color:#fff}
.btn-primary:hover{background:var(--accent-dark)}
.btn-primary:disabled{opacity:.6;cursor:default}
.btn-ghost{background:var(--white);color:var(--black);border:1px solid var(--border-hover);padding:11px 23px}
.btn-ghost:hover{border-color:var(--accent);color:var(--accent)}

/* ── Player picker (conditional) ── */
.picker-toggle{display:flex;gap:10px;margin-bottom:18px;flex-wrap:wrap}
.picker-toggle button{display:inline-flex;align-items:center;gap:8px;border:1.5px solid var(--grey-light);background:var(--white);border-radius:999px;padding:10px 20px;font-size:14px;font-weight:600;color:var(--grey);cursor:pointer;transition:all .15s;font-family:inherit}
.picker-toggle button:hover{border-color:var(--black);color:var(--black)}
.picker-toggle button.active{border-color:var(--black);background:var(--panel);color:var(--black)}
.picker-toggle svg{width:16px;height:16px}

.search-wrap{position:relative}
.search-input-wrap{position:relative}
.search-input-wrap .search-icon{position:absolute;left:12px;top:50%;transform:translateY(-50%);width:16px;height:16px;color:var(--grey);pointer-events:none}
.search-input-wrap input{padding-left:38px}
.search-results{position:absolute;top:calc(100% + 6px);left:0;right:0;background:var(--white);border:1px solid var(--grey-light);border-radius:12px;box-shadow:var(--shadow-lift);max-height:260px;overflow:auto;z-index:40;display:none}
.search-results.open{display:block}
.search-results .sr{padding:11px 16px;cursor:pointer;display:flex;justify-content:space-between;gap:10px;font-size:14px}
.search-results .sr:hover{background:var(--grey-fill)}
.search-results .sr .sub{color:var(--grey);font-size:13px}
.search-results .none{padding:12px 16px;color:var(--grey);font-size:13px}
.selected-player{position:relative;display:none;align-items:center;gap:13px;background:var(--grey-fill);border-radius:14px;padding:14px 40px 14px 16px;margin-bottom:6px}
.selected-player .player-menu-btn{position:absolute;top:50%;right:10px;transform:translateY(-50%)}
.selected-player.show{display:flex}
.selected-player.static{padding-right:16px}
.player-avatar{width:38px;height:38px;border-radius:50%;background:var(--accent-soft);color:var(--accent);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.player-avatar svg{width:19px;height:19px}
.player-info{flex:1;min-width:0}
.selected-player b{font-size:17px}
.selected-player .sub{color:var(--grey);font-size:12.5px;display:block;margin-top:1px}
.selected-player button{background:none;border:0;color:var(--accent);font-weight:700;cursor:pointer;font-size:12.5px;font-family:inherit;flex-shrink:0}
.selected-player.dark{background:var(--frame);color:var(--black)}
.selected-player.dark .sub{color:var(--grey)}
/* Hover action on the report's player card; always shown where there's no hover. */
.selected-player .card-link{position:absolute;right:12px;top:50%;transform:translateY(-50%);display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border:0;border-radius:50%;background:var(--panel);color:var(--black);box-shadow:inset 0 0 0 1px var(--border-strong);cursor:pointer;opacity:0;transition:opacity .15s,background .15s}
.selected-player .card-link svg{width:16px;height:16px}
.selected-player:hover .card-link,.selected-player .card-link:focus-visible{opacity:1}
.selected-player .card-link:hover{background:var(--grey-fill)}
@media (hover:none){.selected-player .card-link{opacity:1}}

/* ── Collapsible fixture section ── */
details.collapse{border:1.5px solid var(--grey-light);border-radius:14px;margin:22px 0;background:var(--white)}
details.collapse summary{list-style:none;cursor:pointer;padding:16px 20px;display:flex;align-items:center;justify-content:space-between;font-weight:700;font-size:15px;user-select:none}
details.collapse summary::-webkit-details-marker{display:none}
details.collapse summary .chev{transition:transform .2s;color:var(--grey)}
details.collapse[open] summary .chev{transform:rotate(180deg)}
details.collapse summary .sum-hint{font-weight:400;font-size:13px;color:var(--grey)}
details.collapse .inner{padding:4px 20px 20px}

/* ── Scorecard: full-width category rows ── */
.scorecard{margin:26px 0}
.scorecard p.hint{margin-bottom:16px}
.cat-grid{display:grid;grid-template-columns:1fr;gap:10px;margin-top:14px}
/* Read-only scorecard: two tiles a row on wide screens so the score isn't
   stranded at the far edge of a full-width tile. */
@media (min-width:1100px){#pane-reportView .scorecard .cat-grid{grid-template-columns:1fr 1fr}}
.cat-tile{position:relative;display:flex;align-items:center;gap:16px;text-align:left;padding:16px 18px;background:var(--white);border:1.5px solid var(--grey-light);border-radius:16px;cursor:pointer;font-family:inherit;color:var(--grey);transition:all .15s;width:100%}
.cat-tile:hover{border-color:var(--black);color:var(--black)}
.cat-tile svg{width:26px;height:26px;flex-shrink:0}
.cat-left{flex:1;min-width:0}
.cat-tile .cat-label{display:block;font-size:15px;font-weight:700;color:var(--black);line-height:1.2}
.cat-comment{display:block;font-size:13px;color:var(--grey);margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cat-right{flex-shrink:0;display:flex;align-items:center;gap:12px;min-width:64px;justify-content:flex-end}
.cat-tile .cat-score{position:static;font-family:var(--mono);font-weight:800;font-size:22px;color:var(--accent)}
.cat-chev{color:var(--border-hover);font-size:18px}
.cat-tile.filled{border-color:var(--black);color:var(--black);background:var(--grey-fill)}
.cat-tile.hi{border-color:var(--accent);background:var(--accent-soft)}
.cat-tile.static{cursor:default}
.cat-tile.static:hover{border-color:var(--grey-light);color:var(--grey)}
.cat-tile.static.filled:hover{border-color:var(--black);color:var(--black)}
.cat-tile.static.hi:hover{border-color:var(--accent)}
.cat-tile.static .cat-comment{white-space:normal;overflow:visible;text-overflow:clip;margin-top:5px}
.total-bar{display:flex;justify-content:space-between;align-items:center;margin-top:16px;padding:15px 18px;background:var(--frame);color:var(--black);border-radius:12px}
/* The figure is white in its own holder rather than accent-on-dark, which
   is unreadable for dark brand colours (navy on charcoal). */
.total-bar .num{font-family:var(--mono);font-size:22px;font-weight:800;color:var(--accent);background:var(--panel);border-radius:10px;padding:4px 12px;line-height:1.2}
.total-bar-label{display:flex;flex-direction:column;align-items:flex-start;gap:7px}
.total-bar .band-pill{font-size:10.5px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;padding:3px 10px;border-radius:999px;background:var(--panel);color:var(--black)}
.report-view-summary{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0 4px}
.report-view-summary .total-bar{margin-top:0}
@media(max-width:480px){.report-view-summary{grid-template-columns:1fr}}
.info-tip{position:relative;display:inline-flex;vertical-align:middle;margin-left:6px}
.info-tip-btn{width:16px;height:16px;border-radius:50%;border:1.5px solid currentColor;background:none;color:inherit;opacity:.75;font-size:10px;font-weight:800;font-family:var(--mono);line-height:1;display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0;flex-shrink:0}
.info-tip-btn:hover{opacity:1}
/* text-transform/letter-spacing reset: a tip can sit inside an
   uppercase, tracked-out table header — the bubble copy shouldn't
   inherit that. */
.info-tip-bubble{display:none;position:absolute;top:calc(100% + 8px);left:0;z-index:20;width:260px;max-width:80vw;background:var(--white);color:var(--black);border:1px solid var(--grey-light);border-radius:12px;box-shadow:var(--shadow-lift);padding:14px 16px;font-size:12.5px;font-weight:400;line-height:1.5;text-align:left;white-space:normal;text-transform:none;letter-spacing:normal}
.info-tip-bubble.open{display:block}
.info-tip-bubble.right{left:auto;right:0}
.info-tip-bubble p{margin:0 0 8px}
.info-tip-bubble p:last-child{margin-bottom:0}
.tip-table{width:100%;border-collapse:collapse;margin:6px 0 10px}
.tip-table td{padding:4px 2px;border-bottom:1px solid var(--grey-light);font-size:12px}
.tip-table tr:last-child td{border-bottom:0}
.tip-table td:last-child{text-align:right;font-weight:700}

/* compiled category comments above overall notes */
.comment-digest{background:var(--bg);border:1px solid var(--grey-light);border-radius:12px;padding:14px 16px;margin-bottom:14px;display:none}
.comment-digest.show{display:block}
.comment-digest .cd-title{font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.07em;color:var(--grey);margin-bottom:8px}
.comment-digest .cd-row{font-size:14px;padding:4px 0}
.comment-digest .cd-row b{color:var(--accent)}

/* ── Fullscreen score pad ── */
.score-pad{position:fixed;inset:0;background:rgba(15,15,15,.55);z-index:150;display:none;align-items:flex-end;justify-content:center}
.score-pad.open{display:flex}
.pad-sheet{background:var(--white);width:100%;max-width:480px;max-height:92vh;overflow-y:auto;border-radius:24px 24px 0 0;padding:24px 20px calc(20px + env(safe-area-inset-bottom));box-shadow:var(--shadow-lift)}
@media(min-width:520px){.score-pad{align-items:center}.pad-sheet{border-radius:24px;padding-bottom:24px}}
.pad-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}
.pad-guidance{margin:0 0 16px;font-size:13px}
.pad-guidance summary{padding:10px 14px;font-size:13px}
.pad-guidance .inner{padding:2px 14px 14px}
.pad-guidance-desc{color:var(--black);margin:0 0 10px;line-height:1.4}
.pad-guidance-sub{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.06em;color:var(--grey);margin:10px 0 4px}
.pad-guidance ul{margin:0;padding-left:18px;line-height:1.5}
.pad-guidance li{margin-bottom:2px}
.pad-title{font-size:18px;font-weight:800}
.pad-current{font-family:var(--mono);font-size:28px;font-weight:800;color:var(--accent);min-width:44px;text-align:right}
.pad-nums{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin-bottom:14px}
.pad-num{aspect-ratio:1;font-size:22px;font-weight:800;font-family:var(--mono);background:var(--grey-fill);border:2px solid transparent;border-radius:14px;cursor:pointer;color:var(--black);transition:all .1s}
.pad-num:active{transform:scale(.95)}
.pad-num.sel{background:var(--accent);color:#fff;border-color:var(--accent)}
.pad-num.top.sel{background:var(--accent);border-color:var(--accent)}
.pad-comment{margin-bottom:14px}
.pad-comment textarea{min-height:64px;resize:vertical}
.pad-actions{display:grid;grid-template-columns:1fr 1fr 1.4fr;gap:10px}
.pad-actions .btn{justify-content:center;padding:14px 0}

/* ── Reports ── */
.report-list{display:grid;gap:12px}
.report{background:var(--white);border:0;border-radius:var(--r-ml);padding:16px 18px;display:grid;grid-template-columns:1fr auto;gap:6px;cursor:pointer;transition:background .15s}
.report .who{font-weight:700;font-size:15px}
.report .meta{font-size:13px;color:var(--grey)}
.report .score-badge{font-family:var(--mono);font-weight:800;font-size:18px;color:var(--accent);align-self:center}
/* Reports page: a 3-up grid of cards with a count + sort bar above. */
.month-head{grid-column:1/-1;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--grey);margin:14px 0 -2px;padding-bottom:6px;border-bottom:1px solid var(--border)}
.month-head:first-child{margin-top:0}
.sort-control{display:inline-flex;align-items:center;gap:8px;font-size:13px;font-weight:600;color:var(--grey)}
.sort-control select{height:48px;border:0;border-radius:var(--r-sm);background-color:var(--white);background-repeat:no-repeat;background-position:right 12px center;background-size:12px 8px;padding:0 32px 0 12px;font:inherit;font-size:14px;font-weight:600;color:var(--black);cursor:pointer}
.report-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
/* Report cards nested inside another card (dashboard) sit on white, so a
   subtle border does the separating that the page background does elsewhere. */
.dash-card .report-grid{grid-template-columns:1fr;gap:12px}
.dash-card .report-card{border:1px solid var(--border)}
.dash-card.full .report-grid{grid-template-columns:repeat(3,1fr);gap:16px}
@media (max-width:1100px){.dash-card.full .report-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:640px){.dash-card.full .report-grid{grid-template-columns:1fr}}
/* Option G: name and position, a green score pill top-right, date and scout below. */
.report-card{background:var(--white);border-radius:var(--r-ml);padding:18px 20px 16px;display:flex;flex-direction:column;gap:24px;cursor:pointer;transition:background .15s;min-width:0}
.rc-top{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.rc-who{min-width:0}
.report-card .who{font-weight:700;font-size:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.report-card .meta{font-size:13px;color:var(--grey);margin-top:2px}
.rc-pill{display:inline-flex;align-items:center;flex-shrink:0;border-radius:999px;background:var(--success-bg);padding:6px 12px;font-family:var(--mono);font-size:18px;font-weight:800;line-height:1;color:var(--accent)}
/* Score pill tinted by Talent Index band — the same four colours as the
   gauge and year bars on the player page (series tokens --s3/--s4, not the
   status warn/info tokens, which are a different amber), so a blue pill here
   means what a blue gauge means there. Bands come from organisations.talent_bands. */
.rc-pill.band-elite{background:var(--success-bg);color:var(--g700)}
.rc-pill.band-high{background:rgba(47,111,237,.12);color:var(--s4)}
.rc-pill.band-dev{background:rgba(217,119,6,.14);color:#B45309} /* same hue as --s3, one step darker for legibility */
.rc-pill.band-monitor{background:var(--grey-fill);color:var(--grey)}
.rc-foot{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:auto;font-size:12.5px;color:var(--grey)}
.rc-date-text{display:inline-flex;align-items:center;gap:6px;color:var(--grey);font-weight:400}
.rc-date-text svg{width:14px;height:14px;flex-shrink:0;color:var(--muted)}
.rc-scout{display:inline-flex;align-items:center;gap:6px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:400}
.rc-scout svg{width:14px;height:14px;flex-shrink:0;color:var(--muted)}
.rc-foot .btn{padding:4px 10px;font-size:12px}
@media (max-width:1100px){.report-grid,.assign-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:640px){.report-grid,.assign-grid,.modal .assign-grid{grid-template-columns:1fr}}
.badge{display:inline-block;font-size:11px;font-weight:700;border-radius:999px;padding:2px 10px;text-transform:uppercase;letter-spacing:.04em}
.badge.q{background:var(--info-bg);color:var(--info)}
.badge.s{background:var(--grey-fill);color:var(--grey)}
.badge.ok{background:var(--success-bg);color:var(--success)}
/* Informational pill — a hint, not a warning: fixed light blue whatever the
   organisation's accent, with the ⓘ so it never reads as an error. */
.badge.info{display:inline-flex;align-items:center;gap:5px;background:var(--info-bg);color:var(--info);text-transform:none;letter-spacing:0;font-size:12px;padding:4px 10px 4px 8px}
.badge.info svg{width:13px;height:13px;flex-shrink:0}
.badge.archived{background:transparent;color:var(--muted);border:1px solid var(--grey-light)}
.badge button{background:none;border:0;color:inherit;cursor:pointer;font-weight:800;margin-left:4px;padding:0;font-size:12px;vertical-align:middle}

.chip-list{display:flex;flex-wrap:wrap;gap:8px;margin:-6px 0 18px}
.chip{display:inline-flex;align-items:center;gap:6px;background:var(--grey-fill);border-radius:999px;padding:6px 8px 6px 14px;font-size:13px;font-weight:600}
.chip svg{width:14px;height:14px;flex-shrink:0}
.chip button{background:none;border:0;color:var(--grey);cursor:pointer;font-size:15px;line-height:1;padding:0 4px}
.chip button:hover{color:var(--accent)}
.band-chip{display:inline-block;font-size:11px;font-weight:700;border-radius:999px;padding:2px 10px;text-transform:uppercase;letter-spacing:.04em;margin-left:6px}
.band-chip.band-elite{background:var(--g700);color:#fff}
.band-chip.band-high{background:var(--info-bg);color:var(--info)}
.band-chip.band-dev{background:var(--warn-bg);color:var(--warn)}
.band-chip.band-monitor{background:transparent;color:var(--grey);border:1.5px solid var(--border-strong)}

/* ── Fixtures ── */
.fixture-card{background:var(--white);border:0;border-radius:var(--r-ml);padding:16px 18px;display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.fixture-card .who{font-weight:700;font-size:15px}
.fixture-card .meta{font-size:13px;color:var(--grey);margin-top:2px}
.fixture-card .badge{margin-left:8px;vertical-align:middle}
.fixture-card.row-click{cursor:pointer;transition:background .12s}
.fixture-assignees{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.fixture-locked{position:relative;background:var(--grey-fill);border-radius:14px;padding:16px 18px;margin:22px 0}
/* fx-top gets right-padding reserved for the menu button so a long team
   name (or its crest) can never grow underneath it — the button's box
   and the flex row's content are never allowed to compete for the same
   pixels, regardless of content width. */
.fx-top{display:flex;align-items:center;gap:14px;padding-right:34px}
.fixture-locked.static .fx-top{padding-right:0}
.fx-crest{width:48px;height:48px;border-radius:9px;background:var(--white);border:1.5px solid var(--grey-light);color:var(--grey);display:flex;align-items:center;justify-content:center;font-weight:800;font-size:12px;flex-shrink:0;overflow:hidden}
.fx-crest img{width:100%;height:100%;object-fit:contain;padding:6px}
.fx-crest svg,.club-logo svg{width:24px;height:24px;color:var(--grey-light);stroke:var(--grey)}
.club-logo.sm svg{width:15px;height:15px}
.fx-vs{flex:1;min-width:0;text-align:center}
.fx-vs .teams{font-weight:700;font-size:15px}
.fx-date{font-size:12.5px;font-weight:600;color:var(--black);margin-top:3px}
/* Same date/venue/time emphasis hierarchy as the Home page's assignment
   rows (.assign-meta) — bold, dark, icon-led — competition text stays
   the smallest, most muted line (.fx-comp) since it's the least useful
   detail at a glance. */
.fx-meta{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;font-size:12.5px;color:var(--black);font-weight:600;margin-top:5px}
.fx-meta svg{width:13px;height:13px;color:var(--grey);vertical-align:-2px;margin-right:4px;flex-shrink:0}
.fx-comp{font-size:11.5px;color:var(--muted);text-align:center;margin-top:5px}
.fx-menu-btn{position:absolute;top:10px;right:8px;background:none;border:0;color:var(--grey);cursor:pointer;padding:8px;border-radius:8px;line-height:0}
.fx-menu-btn:hover{background:var(--grey-fill);color:var(--black)}
.fx-menu{display:none;position:absolute;top:38px;right:8px;background:var(--white);border:1px solid var(--grey-light);border-radius:12px;box-shadow:var(--shadow-lift);min-width:200px;padding:6px;z-index:5}
.fx-menu.open{display:block}
.fx-menu button{display:block;width:100%;text-align:left;background:none;border:0;padding:10px 12px;font-size:13.5px;font-weight:600;color:var(--black);cursor:pointer;font-family:inherit;border-radius:8px}
.fx-menu button:hover{background:var(--grey-fill)}
.fx-menu button.danger{color:var(--red)}

/* ── Report filing: 2-column layout ── */
.report-form-grid{display:grid;grid-template-columns:1fr 1.4fr;gap:32px;align-items:start;margin-top:20px}
@media(max-width:900px){.report-form-grid{grid-template-columns:1fr}}

/* ── Assignments: "assigned to you" left, all-fixtures management right —
   single-column for roles that only ever see one side (scouts get just
   the left, county coaches get just the right, read-only). ── */
.assignments-grid{display:grid;grid-template-columns:1fr 1fr;gap:32px;align-items:start;margin-top:20px}
.assignments-grid.single-column{grid-template-columns:1fr}
@media(max-width:900px){.assignments-grid{grid-template-columns:1fr}}
.report-overview-card{position:relative;background:var(--white);border:0;border-radius:var(--radius);padding:24px}
@media(min-width:901px){.report-overview-card{position:sticky;top:20px}}
.overview-divider{border-top:1px solid var(--grey-light);margin:24px 0 0}
.field-group-label{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.06em;color:var(--grey);margin:22px 0 10px}
.field-group-label:first-child{margin-top:0}
.pad-sheet .field-group-label{margin-top:0}

/* ── Conditions tile selector ── */
.cond-tiles{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;max-width:460px}
@media(max-width:480px){.cond-tiles{grid-template-columns:repeat(2,1fr)}}
.cond-tile{display:flex;flex-direction:column;align-items:center;gap:7px;background:var(--white);border:1.5px solid var(--grey-light);border-radius:14px;padding:14px 8px;cursor:pointer;font-family:inherit;text-align:center;transition:all .15s}
.cond-tile:hover{border-color:var(--black)}
.cond-tile svg{width:22px;height:22px;color:var(--grey)}
.cond-tile span{font-size:12.5px;font-weight:700;color:var(--grey)}
.cond-tile.sel{border-color:var(--accent);background:var(--accent-soft)}
.cond-tile.sel svg,.cond-tile.sel span{color:var(--accent)}
.cond-tile.static{cursor:default}
.cond-tile.static:hover{border-color:var(--grey-light)}
.cond-tile.static.sel:hover{border-color:var(--accent)}
.fx-player-list{display:grid;gap:8px;margin-top:14px;width:100%}
.fx-player-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;background:var(--grey-fill);border-radius:10px;font-size:14px;font-weight:600}
.fx-player-row .actions{display:flex;align-items:center;gap:8px}
.fx-player-row .badge{margin:0}

/* ── Fixture detail page: assign-a-scout column ── */
#fixtureViewAssignTools{margin-top:32px}
#fixtureViewAssigned .fx-player-row{background:var(--white);border:1px solid var(--grey-light)}
.unassign-btn{width:24px;height:24px;flex-shrink:0;border-radius:50%;background:var(--white);border:0;padding:0;display:inline-flex;align-items:center;justify-content:center;color:var(--grey);font-size:15px;line-height:1;cursor:pointer}
.unassign-btn:hover{background:var(--grey-fill);color:var(--red)}
/* The static (read-only) fixture summary sits inside the already-white
   Fixture Details card here, so it drops the grey-fill "sub card" look
   it has elsewhere (e.g. the report-view Fixture section). */
#fixtureViewDetailsBody .fixture-locked.static{background:var(--white);padding:0;margin:14px 0 0}

/* ── Player Database: card grid ── */
.player-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
@media(max-width:960px){.player-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.player-grid{grid-template-columns:1fr}}
.player-card{background:var(--white);border:0;border-radius:var(--r-ml);padding:16px;cursor:pointer;transition:background .15s;display:flex;flex-direction:column;gap:10px}
.player-card-top{display:flex;align-items:center;gap:12px}
.player-card .who{font-weight:700;font-size:15px;line-height:1.3}
.player-card .meta{font-size:12px;color:var(--grey);margin-top:2px}
.player-card-stats{display:flex;justify-content:space-between;align-items:center;margin-top:auto;padding-top:10px;border-top:1px solid var(--grey-light)}
.player-card .score-badge{font-family:var(--mono);font-weight:800;font-size:16px;color:var(--accent)}
.club-logo{width:44px;height:44px;border-radius:12px;background:var(--white);border:1.5px solid var(--grey-light);color:var(--grey);display:flex;align-items:center;justify-content:center;font-weight:800;font-size:15px;flex-shrink:0;overflow:hidden}
.player-card-band{font-size:11px;font-weight:600;color:var(--grey);text-transform:uppercase;letter-spacing:.03em;white-space:nowrap}
.club-logo img{width:100%;height:100%;object-fit:contain;padding:4px}
.club-logo.sm{width:26px;height:26px;border-radius:7px;font-size:10px}
.club-logo.sm img{padding:3px}

/* ── Player profile ── */
.group-bars{display:grid;gap:12px;margin-top:16px;max-width:520px}
.group-bar-row{display:grid;grid-template-columns:170px 1fr 40px;align-items:center;gap:12px}
.group-bar-label{font-size:13px;color:var(--grey);font-weight:600}
.group-bar-track{background:var(--grey-fill);border-radius:999px;height:10px;overflow:hidden}
.group-bar-fill{background:var(--accent);height:100%;border-radius:999px;width:0;transition:width 1s cubic-bezier(.16,1,.3,1)}
.group-bar-val{font-family:var(--mono);font-weight:800;font-size:14px;text-align:right}
.year-bar-chart{display:flex;align-items:flex-end;gap:12px;flex:1;min-height:180px;padding:10px 4px 0}
.year-bar-col{display:flex;flex-direction:column;align-items:center;height:100%;justify-content:flex-end;flex:1;min-width:0}
.year-bar-value{font-family:var(--mono);font-weight:800;font-size:13px;margin-bottom:6px;color:var(--black)}
.year-bar-track{width:100%;flex:1;display:flex;align-items:flex-end;background:var(--grey-fill);border-radius:8px 8px 0 0;overflow:hidden}
.year-bar-fill{width:100%;background:var(--accent);border-radius:8px 8px 0 0;transition:height 1s cubic-bezier(.16,1,.3,1)}
.year-bar-label{margin-top:8px;font-size:12px;font-weight:700;color:var(--grey)}

.scout-table{border:1px solid var(--border);border-radius:var(--r-ml);overflow:hidden;background:var(--white)}
.scout-table-head,.scout-table-row{display:grid;gap:10px;padding:10px 16px;font-size:13px;align-items:center}
.scout-table-head{background:var(--grey-fill);font-weight:800;text-transform:uppercase;letter-spacing:.05em;font-size:11px;color:var(--grey)}
.scout-table-row{border-top:1px solid var(--grey-light)}

/* ── Player dashboard: hero gauge, stat-cards, preview grid ──
   No white card background here (deliberately) — the player's details
   sit directly on the page background now; the individual stat-card
   badges (below) carry their own white surface instead. */
.hero{display:grid;grid-template-columns:1fr auto;gap:24px;align-items:start;margin-bottom:24px}
@media(max-width:720px){.hero{grid-template-columns:1fr}}
/* Crest + name/club-school-details as one identity block — details
   sit right of the crest, stacked directly under the name. */
.player-header-id{display:flex;align-items:center;gap:14px;margin-bottom:12px}
.player-header-id .page-title{margin-bottom:4px}
.player-header-badges{margin-top:12px;display:flex;flex-wrap:wrap;gap:8px;align-items:center}
/* Back/edit — icon-only circles at opposite ends of the row above the
   hero, matched in size via the shared class. */
.player-subnav{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}
/* Page head: the one header shape every drill-in page uses — full-colour
   back button, title with its details on the same row, actions right. */
.page-head{display:flex;align-items:center;gap:16px;margin-bottom:28px;flex-wrap:wrap}
.page-head .back-btn{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;flex-shrink:0;border:0;border-radius:var(--r-md);background:var(--accent);color:#fff;cursor:pointer;transition:background .15s}
.page-head .back-btn:hover{background:var(--accent-dark)}
.page-head .back-btn svg{width:20px;height:20px}
.page-head-text{flex:1;min-width:0}
.page-head-text .page-title{margin-bottom:2px}
.page-head-text .hint{font-size:14px;color:var(--grey)}
.page-head-actions{display:flex;gap:10px;align-items:center;margin-left:auto}
/* Player page top: name + chips on the left, the dial in its own column whose
   top sits on the back-button line, so it reads level with the header. */
.profile-top{display:block;margin-bottom:12px}
.profile-top .page-head{margin-bottom:20px}
.profile-top .hero{margin-bottom:0}
.profile-strip{display:grid;grid-template-columns:auto 1fr;gap:12px;margin-bottom:24px}
.index-strip{background:var(--white);border:1px solid var(--border);border-radius:var(--radius);padding:12px 24px;display:grid;grid-template-columns:auto auto 1fr auto;gap:24px;align-items:center}
.index-strip .gauge-wrap{gap:0}
.index-strip .gauge-card{border:0;padding:0;background:transparent;min-width:0}
.strip-band{display:flex;flex-direction:column;gap:4px}
.strip-band .gauge-eyebrow{margin:0}
.strip-band-v{font-size:17px;font-weight:700;letter-spacing:-.01em}
.strip-band-v.band-elite{color:#00715B}.strip-band-v.band-high{color:var(--s4)}.strip-band-v.band-dev{color:var(--s3)}.strip-band-v.band-monitor{color:var(--muted)}
.strip-line{font-size:13px;color:var(--grey)}
.index-strip .dt-go{width:36px;height:36px}
.strip-flag{font-size:11px;font-weight:700;color:#B45309;background:rgba(217,119,6,.12);border-radius:999px;padding:3px 9px}
@media(max-width:760px){.profile-strip{grid-template-columns:1fr}.index-strip{grid-template-columns:auto 1fr auto}.strip-line{grid-column:1/-1}}
.profile-head{margin-bottom:20px}
.profile-actions{margin-left:auto;display:flex;gap:12px}
.profile-action{height:44px;border-radius:var(--r-md);padding:0 16px;display:inline-flex;align-items:center;gap:8px;border:1px solid var(--border);background:var(--white);color:var(--black);font-weight:600;font-size:14px;cursor:pointer}
.profile-action svg{width:16px;height:16px}
.profile-action.active{background:var(--black);color:#fff;border-color:var(--black)}
.status-card{background:var(--white);border:1px solid var(--border);border-radius:var(--radius);padding:14px;display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:124px;flex-shrink:0;box-shadow:var(--shadow-card)}
.status-card .status-card-v{white-space:nowrap}
.status-card-ico{width:32px;height:32px;border-radius:9px;color:#fff;display:flex;align-items:center;justify-content:center;margin-bottom:auto}
.status-card-ico svg{width:18px;height:18px}
.status-card-l{font-size:12px;color:var(--grey);font-weight:500}
.status-card .gauge-eyebrow{margin:0}
.status-card-v{display:inline-flex;align-items:center;gap:6px;font-weight:600;font-size:13px;line-height:1.2}
@media(max-width:720px){.profile-top-gauge{flex-direction:column}.profile-actions{width:100%;margin-left:0}}
.index-notes{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px;font-size:12.5px;color:var(--grey);line-height:1.4}
.index-notes li{padding-left:12px;position:relative}
.index-notes li::before{content:"";position:absolute;left:0;top:7px;width:4px;height:4px;border-radius:50%;background:var(--border-strong)}
.index-notes b{color:var(--black);font-weight:600}
.index-notes .warn b{color:#B45309}
.link-btn{background:none;border:0;padding:0;font:inherit;font-weight:700;color:var(--accent);cursor:pointer;text-decoration:underline}
.icon-nav-btn{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:var(--r-md);border:1px solid var(--border-hover);background:var(--white);color:var(--grey);cursor:pointer;transition:all .15s;padding:0}
.icon-nav-btn:hover{border-color:var(--accent);color:var(--accent)}
.icon-nav-btn svg{width:18px;height:18px}
.hero-gauges{display:flex;gap:14px;align-items:flex-start;flex-wrap:wrap}
.gauge-wrap{display:flex;flex-direction:column;align-items:center;gap:8px}
.gauge{position:relative;width:120px;height:120px;flex-shrink:0}
.gauge.gauge-sm{width:86px;height:86px}
.gauge svg{width:100%;height:100%;transform:rotate(-90deg)}
.gauge .track{fill:none;stroke:var(--grey-fill);stroke-width:10}
.gauge .fill{fill:none;stroke:var(--accent);stroke-width:10;stroke-linecap:round;stroke-dasharray:314.16;stroke-dashoffset:314.16;transition:stroke-dashoffset 1.1s cubic-bezier(.16,1,.3,1)}
.gauge-center{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:0 6px}
.gauge-num{font-family:var(--mono);font-size:26px;font-weight:800;letter-spacing:-.02em;color:var(--black)}
.gauge.gauge-sm .gauge-num{font-size:18px}
/* Half dial (player page): 120×66 box, no rotation, 157.08 = π·50 arc length. */
.gauge.gauge-half{width:120px;height:66px}
.gauge.gauge-half svg{transform:none;overflow:visible}
.gauge.gauge-half .fill{stroke-dasharray:157.08;stroke-dashoffset:157.08}
.gauge.gauge-half .gauge-center{justify-content:flex-end;padding:0 6px 2px}
.gauge.gauge-half .gauge-num{line-height:1;font-size:30px}
.gauge-card{background:var(--white);border:1px solid var(--border);border-radius:var(--radius);padding:18px 28px 16px;gap:6px;min-width:176px}
.gauge-eyebrow{font-size:11px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.06em;margin-bottom:6px}
.gauge-band{font-size:11px;font-weight:700;color:var(--accent);text-transform:uppercase;letter-spacing:.04em;line-height:1.2;text-align:center;max-width:120px}

.stat-cards{display:flex;flex-wrap:wrap;gap:10px;margin-top:0;align-items:center}
/* Pipeline status leads the row and is the only chip with a different colour
   and shape — a dark pill with an accent dot — so it doesn't blend in. */
.stat-card.status-chip{border-radius:999px;background:var(--frame);color:var(--black);box-shadow:inset 0 0 0 1px var(--border-strong);padding:9px 16px 9px 13px}
.stat-card.status-chip .dot{width:8px;height:8px;border-radius:50%;background:var(--accent);flex-shrink:0}
.stat-card.stat-edit{background:transparent;border:1.5px dashed var(--border-hover);color:var(--grey);cursor:pointer;font-family:inherit}
.stat-card.stat-edit svg{color:var(--grey)}
.stat-card.stat-edit:hover{border-color:var(--accent);color:var(--accent)}
.stat-card.stat-edit:hover svg{color:var(--accent)}
.stat-card{display:flex;align-items:center;gap:9px;background:var(--white);border-radius:var(--r-md);padding:9px 14px 9px 12px}
.stat-card svg{width:17px;height:17px;color:var(--grey);flex-shrink:0}
.stat-card .v{font-weight:700;font-size:13px}

/* ── Greeting + KPI tile hero (Home/Overview) ── */
.greeting-name{font-size:28px;line-height:32px;font-weight:600;letter-spacing:-.02em}
.greeting-sub{font-size:14.5px;color:var(--grey);margin-top:6px;display:flex;align-items:center;gap:7px}
.greeting-sub .dot{width:7px;height:7px;border-radius:50%;background:var(--accent);flex-shrink:0;box-shadow:0 0 0 3px var(--accent-soft)}
.kpi-hero{background:transparent;border:0;border-radius:0;padding:0}
.kpi-tiles{display:grid;grid-template-columns:repeat(4,1fr);gap:24px}
@media(max-width:760px){.kpi-tiles{grid-template-columns:repeat(2,1fr)}}
@media(max-width:420px){.kpi-tiles{grid-template-columns:1fr}}
.kpi-tile{background:var(--white);border-radius:36px;padding:36px;display:flex;flex-direction:column;gap:12px}
.kpi-tile-icon{width:40px;height:40px;border-radius:var(--r-md);background:var(--accent-soft);color:var(--accent);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.kpi-tile-icon svg{width:18px;height:18px}
.kpi-tile-num{font-size:28px;line-height:28px;font-weight:600;letter-spacing:-.01em;font-variant-numeric:tabular-nums}
.kpi-tile-label{font-size:13px;color:var(--grey);font-weight:600;line-height:16px}

/* min-width:0 on the grid items is required, not decorative — grid
   items default to min-width:auto, so without it a column refuses to
   shrink below its content's intrinsic width (e.g. a chart canvas) and
   the card overflows sideways instead of the content resizing down.
   grid-auto-flow:dense lets a half-width card (Attribute profile, the
   dash-cards below it) pack into whatever gap comes free next, rather
   than always leaving the rest of a full-width card's row empty. */
.dash-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:24px;grid-auto-flow:dense}
@media(max-width:760px){.dash-grid{grid-template-columns:1fr}}
.dash-card,.chart-card{min-width:0;background:var(--white);border:0;border-radius:var(--radius);padding:24px}
/* Flex column so a card's last piece of content (e.g. the year-bar
   chart) can stretch to fill whatever height the grid row stretched
   this card to, rather than leaving dead space below a fixed-height
   chart when a taller sibling card is in the same row. */
.dash-card{display:flex;flex-direction:column}
.dash-card-head{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:16px;gap:10px}
/* A card heading here is a plain, understated label — not the app-wide
   .section-label default (red/uppercase/tracked) — applied to every
   card component on the page, not a change to .section-label itself. */
.dash-card-head .section-label,.chart-card .section-label{margin:0;font-size:16px;line-height:24px;font-weight:600;color:var(--black);text-transform:none;letter-spacing:normal}
.chart-card-full{grid-column:1/-1}
.chart-card-head{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px 16px;margin-bottom:16px}
.chart-legend{display:flex;flex-wrap:wrap;gap:14px}
.chart-legend-item{display:inline-flex;align-items:center;gap:7px;font-size:12.5px;font-weight:600;color:var(--grey)}
.chart-legend-swatch{width:10px;height:10px;border-radius:3px;flex-shrink:0}
.chart-pill-row{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:24px}
/* The 4 category pills are wrapped in their own right-aligned group
   (margin-left:auto pushes the group, not each pill, to the row's far
   edge) so the switcher stays left and the categories sit right. */
.chart-pill-group-right{display:flex;flex-wrap:wrap;gap:12px;margin-left:auto}
.chart-pill{
  display:inline-flex;align-items:center;justify-content:center;height:36px;
  border:1px solid var(--grey-light);background:var(--white);border-radius:999px;
  padding:0 24px;font-size:13.5px;font-weight:400;color:var(--grey);
  cursor:pointer;transition:all .15s;font-family:inherit;
}
.chart-pill:hover{border-color:var(--black);color:var(--black)}
.chart-pill.active{border-color:var(--border-strong);background:var(--panel);color:var(--black);font-weight:600}
/* Talent Index / Average Rating: a single segmented switcher rather
   than 2 separate pills, since they're both "which number to plot"
   choices. A white background + border (rather than a flat grey fill)
   reads more clearly as its own bordered control, distinguishing it
   from the plain pills next to it. */
.chart-switcher{display:inline-flex;align-items:center;background:var(--white);border:1px solid var(--grey-light);border-radius:999px;padding:0;gap:2px}
.chart-switcher-btn{
  display:inline-flex;align-items:center;justify-content:center;height:36px;
  border:0;background:transparent;border-radius:999px;
  padding:0 24px;font-size:13.5px;font-weight:400;color:var(--grey);
  cursor:pointer;transition:all .15s;font-family:inherit;
}
.chart-switcher-btn:hover{color:var(--black)}
.chart-switcher-btn.active{background:var(--frame);color:var(--black);font-weight:600}
/* Card heading — a red breadcrumb rather than the plain uniform
   .section-label used on every other card, per the reference design:
   "Form Lines > Talent Index Scores • All time". */
.chart-breadcrumb{margin:0 0 24px;display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:16px;line-height:16px;font-weight:800;color:var(--accent)}
.chart-breadcrumb-metric,.chart-breadcrumb-range,.chart-breadcrumb-dot{font-weight:500}
.chart-breadcrumb svg{width:16px;height:16px;flex-shrink:0}
/* Time-period filter — a labeled pill (icon + "Time period"/current
   selection + chevron) rather than a native <select>, opening a
   custom popover menu upward from the bottom-left, since that's where
   this control sits in the footer row now. Extra margin-right on the
   wrapper (on top of .chart-footer's own gap) gives this specific
   pair — picker to the text beside it — a wider 24px gap than the
   footer's other gaps. */
.chart-range-picker{position:relative;flex-shrink:0;margin-right:8px}
.chart-period-btn{display:inline-flex;align-items:center;height:60px;border:1px solid var(--border-hover);background:var(--white);border-radius:var(--r-ml);padding:0 24px 0 12px;cursor:pointer;font-family:inherit;color:inherit;transition:border-color .15s}
.chart-period-btn:hover{border-color:var(--black)}
.chart-period-icon{width:36px;height:36px;margin-right:12px;border-radius:10px;background:var(--grey-fill);color:var(--grey);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.chart-period-icon svg{width:17px;height:17px}
.chart-period-text{display:flex;flex-direction:column;align-items:flex-start;gap:1px}
.chart-period-label{font-size:12px;color:var(--grey);font-weight:600}
.chart-period-value{font-size:15px;color:var(--black);font-weight:800}
.chart-period-btn>svg{width:16px;height:16px;margin-left:36px;color:var(--grey);flex-shrink:0}
.chart-range-menu{display:none;flex-direction:column;gap:2px;position:absolute;bottom:calc(100% + 8px);left:0;z-index:30;min-width:172px;background:var(--white);border:1px solid var(--grey-light);border-radius:12px;box-shadow:var(--shadow-lift);padding:6px}
.chart-range-menu.open{display:flex}
.chart-range-option{display:block;width:100%;text-align:left;border:0;background:transparent;border-radius:8px;padding:9px 12px;font-size:13.5px;font-weight:600;color:var(--grey);cursor:pointer;font-family:inherit;transition:all .12s}
.chart-range-option:hover{background:var(--grey-fill);color:var(--black)}
.chart-range-option.active{background:var(--frame);color:var(--black)}
/* Ranges with too few reports to plot (< 2) are greyed out rather than
   hidden — picking one would just land on the "No reports in this
   range" empty state, so this saves the round trip. Not the native
   disabled attribute — see the comment on formTrendRangePickerHTML for
   why (it would also kill the explanatory title-attribute tooltip). */
.chart-range-option.unavailable{opacity:.35;cursor:not-allowed}
.chart-canvas-wrap{position:relative;width:100%;min-width:0}
/* Footer row: time-period picker, a flexible-width explainer sentence,
   and the Reports filed/Form tiles — all on one line, wrapping to
   their own rows on narrow screens. The 2 stat tiles are grouped in
   their own flex wrapper so their mutual gap (12px) can differ from
   the footer's other gaps. */
.chart-footer{margin-top:24px;display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.chart-info-line{flex:1 1 220px;margin:0;font-size:14px;line-height:1.5;color:var(--grey)}
.chart-info-line strong{color:var(--black);font-weight:700}
.chart-footer-stats{display:flex;gap:12px;flex-wrap:wrap}
.chart-footer-stat{display:flex;align-items:center;justify-content:space-between;gap:16px;height:60px;background:var(--grey-fill);border-radius:18px;padding:0 18px;flex-shrink:0}
.chart-footer-stat-label{font-size:14px;color:var(--grey);font-weight:600;white-space:nowrap}
.chart-footer-stat-value{display:inline-flex;align-items:center;gap:6px;font-family:var(--mono);font-size:17px;font-weight:800;color:var(--black);white-space:nowrap}
.chart-footer-stat-value svg{width:15px;height:15px}
.chart-footer-stat.up{background:var(--success-bg)}
.chart-footer-stat.up .chart-footer-stat-label,.chart-footer-stat.up .chart-footer-stat-value{color:var(--success)}
/* Negative "Form": red/pink tint (below) plus the icon flipped
   vertically so the same up-trending arrow reads as pointing down,
   rather than a separate icon asset. */
.chart-footer-stat.down .chart-footer-stat-value svg{transform:scaleY(-1)}
.chart-footer-stat.down{background:var(--danger-bg)}
.chart-footer-stat.down .chart-footer-stat-label,.chart-footer-stat.down .chart-footer-stat-value{color:var(--red)}
/* Custom hover tooltip for Form trend lines — Chart.js's own canvas-
   rendered tooltip can't hold a real, clickable <button>, so this is a
   positioned DOM element instead, driven via plugins.tooltip.external.
   Caret coordinates are canvas-relative, and the canvas fills this wrap
   exactly, so they can be used directly as left/top. Hide/show is
   driven by cursor distance from the point (see formTrendTooltipExternal
   in app.js), not Chart.js's own hover signal. */
.chart-tooltip{position:absolute;z-index:20;min-width:190px;max-width:250px;background:var(--white);color:var(--black);border:1px solid var(--grey-light);border-radius:12px;padding:14px 16px;box-shadow:var(--shadow-lift);opacity:0;pointer-events:none;transition:opacity .12s;transform:translate(-50%,calc(-100% - 14px));font-size:13px}
.chart-tooltip::after{content:'';position:absolute;top:100%;left:50%;transform:translateX(-50%);border:6px solid transparent;border-top-color:var(--white)}
.chart-tooltip-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.chart-tooltip-avg{font-size:22px;font-weight:800;line-height:1}
.chart-tooltip-avg-num{color:var(--accent)}
.chart-tooltip-avg small{display:block;font-size:11px;font-weight:600;color:var(--grey);margin-top:2px;text-transform:uppercase;letter-spacing:.03em}
.chart-tooltip-open{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;flex-shrink:0;border:1px solid var(--grey-light);border-radius:50%;background:var(--grey-fill);color:var(--grey);cursor:pointer;transition:all .15s}
.chart-tooltip-open svg{width:13px;height:13px}
.chart-tooltip-open:hover{border-color:var(--black);background:var(--panel);color:var(--black)}
.chart-tooltip-date{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--grey);margin:6px 0 12px}
.chart-tooltip-date svg{width:13px;height:13px;flex-shrink:0;opacity:.7}
.chart-tooltip-cats{display:flex;flex-direction:column;gap:6px;padding-top:10px;border-top:1px solid var(--grey-light)}
.chart-tooltip-cat{display:flex;justify-content:space-between;align-items:baseline;gap:12px;font-size:12.5px;color:var(--grey)}
.chart-tooltip-cat span:last-child{font-weight:700;color:var(--black)}
.view-all{font-size:12.5px;font-weight:700;color:var(--grey);display:inline-flex;align-items:center;gap:4px;white-space:nowrap;cursor:pointer;background:none;border:0;font-family:inherit;padding:0}
.view-all:hover{color:var(--black)}
.view-all svg{width:12px;height:12px}

.mini-report{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:11px 4px;margin:0 -4px;border-bottom:1px solid var(--grey-light);cursor:pointer;border-radius:8px;transition:background .12s}
.mini-report:last-child{border-bottom:0}
.mini-report .who{font-weight:700;font-size:13.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mini-report .meta{font-size:12px;color:var(--grey);margin-top:2px;white-space:normal;overflow-wrap:break-word}
.mini-report-main{display:flex;align-items:center;gap:10px;min-width:0}
.mini-report-icon{width:32px;height:32px;border-radius:9px;background:var(--frame);color:var(--grey);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.mini-report-icon svg{width:16px;height:16px}
.mini-report-body{min-width:0}
.mini-report-score{font-family:var(--mono);font-weight:800;font-size:16px;color:var(--accent);flex-shrink:0;padding-left:8px}

/* Upcoming-assignment row — date/teams/venue/time emphasized, competition
   relegated to a small trailing detail. */
.assign-row{display:flex;gap:14px;align-items:flex-start;padding:12px 4px;margin:0 -4px;border-bottom:1px solid var(--grey-light);cursor:pointer;border-radius:8px;transition:background .12s}
.assign-row.no-click{cursor:default}
.assign-row:last-child{border-bottom:0}
.assign-date{flex-shrink:0;width:48px;height:48px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;background:var(--frame);border-radius:10px;padding:0}
.assign-date-day{display:block;font-family:var(--mono);font-size:16px;font-weight:500;color:var(--black);line-height:1.15}
.assign-date-mon{display:block;font-size:10px;font-weight:500;color:var(--grey);text-transform:uppercase;letter-spacing:.03em}
.assign-main{flex:1;min-width:0}
.assign-teams{font-weight:700;font-size:14px}
.assign-player{display:flex;align-items:center;gap:5px;margin-top:3px;font-size:13px;font-weight:700;color:var(--accent)}
.assign-player svg{width:14px;height:14px;flex-shrink:0}
.assign-meta{display:flex;flex-wrap:wrap;gap:12px;margin-top:4px;font-size:12.5px;color:var(--black);font-weight:600}
.assign-meta svg{width:13px;height:13px;color:var(--grey);vertical-align:-2px;margin-right:4px;flex-shrink:0}
.assign-comp{font-size:11.5px;color:var(--muted);margin-top:4px}
.assign-row .badge{flex-shrink:0;margin-top:3px}

.testing-preview-row{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;flex-wrap:wrap}
.testing-preview-stat .n{font-family:var(--mono);font-size:24px;font-weight:800}
.testing-preview-stat .l{font-size:11.5px;color:var(--grey);margin-top:2px}

@media(prefers-reduced-motion:reduce){
  .gauge .fill,.group-bar-fill,.year-bar-fill,polyline.spark-draw{transition:none !important}
}

/* ── Board ── */
.filters{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:18px}
.filters select,.filters input{width:auto;min-width:150px}
input[type=checkbox]{width:auto;min-width:0;padding:0;border:0;accent-color:var(--accent)}
label.check{display:flex;align-items:center;gap:6px;font-size:13px;font-weight:600;color:var(--grey);margin-bottom:18px}
.filters label.check{margin-bottom:0}

/* ── Player Database: search+action toolbar, filter modal trigger ── */
.db-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:18px}
.filter-badge{
  display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;
  padding:0 5px;border-radius:999px;background:var(--accent);color:#fff;font-size:11px;font-weight:800;
}
#playerActiveFilters{margin-bottom:18px}
/* Toggle chip (e.g. "Dual players only" inside the filter modal) — a
   checkbox that looks like a segmented-pill button, not a checkbox. */
.filter-toggle{
  position:relative;display:inline-flex;align-items:center;
  background:var(--white);border:1.5px solid var(--grey-light);border-radius:10px;
  padding:9px 14px;font-size:13.5px;font-weight:600;color:var(--grey);
  cursor:pointer;transition:all .15s;user-select:none;margin:0;text-transform:none;letter-spacing:normal;
}
.filter-toggle:hover{border-color:var(--border-hover);color:var(--black)}
.filter-toggle input{position:absolute;opacity:0;width:1px;height:1px}
.filter-toggle:has(input:checked){background:var(--panel);border-color:var(--black);color:var(--black)}
.filter-toggle:has(input:focus-visible){outline:2px solid var(--black);outline-offset:2px}
.stat-row{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin-bottom:20px}
@media(max-width:640px){.stat-row{grid-template-columns:1fr}}
.stat{background:var(--white);border:0;border-radius:var(--radius);padding:24px;position:relative}
.stat::before{display:none}
/* Explicit rather than :nth-child — the accent belongs to Avg Talent
   Index specifically, not to whatever card happens to sit third. */
.stat.accent::before{background:var(--accent)}
.stat .n{font-size:28px;line-height:28px;font-weight:600;color:var(--black);letter-spacing:-0.01em;font-variant-numeric:tabular-nums}
.stat .l{font-size:13px;color:var(--grey);font-weight:600;margin-top:6px}
/* Secondary figure sharing a card with the headline number — the
   hairline ties it to that number rather than letting it read as its
   own standalone stat. */
.stat-sub{margin-top:10px;padding-top:10px;border-top:1px solid var(--grey-light);font-size:12px;color:var(--grey);font-weight:600}

/* ── Talent Hub controls ── */
.segmented{display:inline-flex;background:var(--frame);border-radius:var(--r-md);padding:6px;gap:2px;flex-shrink:0;min-height:48px;align-items:center}
.segmented button{border:0;background:transparent;padding:0 16px;height:36px;border-radius:var(--r-sm);font-size:14px;font-weight:600;color:var(--grey);cursor:pointer;font-family:inherit;transition:all .15s;white-space:nowrap}
.segmented button:hover{color:var(--black)}
.segmented button.active{background:var(--panel);color:var(--black);box-shadow:inset 0 0 0 1px var(--border-strong)}

/* Age-grade scope — multi-select pills at the top of the page, the
   primary lens for everything below (stat cards included). Same pill
   language as Form Lines' metric pills (36px, 1px border, 400/600
   weights). Wraps rather than scrolling so every grade stays visible. */
.age-tabs{display:flex;flex-wrap:wrap;gap:12px;margin:0 0 24px}
.age-tabs button{height:36px;border:1px solid transparent;background:var(--frame);color:var(--grey);padding:0 16px;border-radius:999px;font-size:14px;font-weight:500;cursor:pointer;font-family:inherit;transition:all .15s;white-space:nowrap}
.age-tabs button:hover{color:var(--black);background:var(--hover-fill)}
.age-tabs button.active{background:var(--panel);border-color:var(--border-strong);color:var(--black);font-weight:600}

/* View toggle + search + Filters disclosure on one row above the table. */
/* Shared controls row (Talent Hub, Reports): primary action / search /
   Filters disclosure on one line, wrapping on narrow screens. */
.page-controls{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin-bottom:24px}
.page-controls .search-input-wrap input{height:48px;border:1px solid var(--border);background:var(--white)}
.db-toolbar .search-input-wrap input{height:48px;border:0;background:var(--white)}
.filters-toggle{display:inline-flex;align-items:center;gap:10px;border:1px solid var(--border);background:var(--white);border-radius:var(--r-md);padding:0 18px;height:48px;font-size:14px;font-weight:600;color:var(--black);cursor:pointer;font-family:inherit;transition:background .15s;flex-shrink:0}
.filters-toggle:hover{background:var(--hover-fill)}
.filters-toggle svg{width:16px;height:16px;color:var(--grey);flex-shrink:0}
.filters-toggle .chev{transition:transform .2s}
.filters-toggle.open .chev{transform:rotate(180deg)}
/* The count badge is also the clear control — reads "3 ×", clears all
   accordion filters on tap. It sits inside the Filters toggle (a click
   anywhere else on the toggle opens/closes the panel), so it can't be
   read as a close button for the panel itself. */
.filter-count-badge{min-width:20px;height:20px;border-radius:999px;background:var(--accent);color:#fff;font-size:11.5px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;gap:4px;padding:0 7px;cursor:pointer;transition:background .15s}
.filter-count-badge:hover{background:var(--accent-dark)}
.filter-count-badge .x{font-size:13px;line-height:1;opacity:.85}
/* The filter accordion: every option exposed as a pill under its group
   heading — no dropdowns to open, current state always visible. */
.filter-panel{display:none;background:var(--white);border:0;border-radius:var(--radius);padding:24px;margin-bottom:24px}
.filter-panel.open{display:block}
.filter-group{margin-bottom:24px}
.filter-group:last-of-type{margin-bottom:0}
.filter-group-label{margin:0 0 12px;font-size:12px;font-weight:700;color:var(--grey);text-transform:uppercase;letter-spacing:.05em}
.filter-pill-row{display:flex;flex-wrap:wrap;gap:12px}
/* No margin-top of its own: the preceding .filter-group's 24px
   margin-bottom is the gap above the divider (that group can't match
   the :last-of-type margin-reset above — last div here is this foot). */
.filter-panel-foot{padding-top:24px;border-top:1px solid var(--grey-light);display:flex;justify-content:flex-end}

/* ── Talent ID rankings: rank badges, index bar, delta pills, squad groups ── */
.rank-badge{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;font-family:var(--mono);font-weight:800;font-size:12px;background:var(--grey-fill);color:var(--grey);flex-shrink:0}
.rank-badge.rank-1{background:var(--accent);color:#fff}
.rank-badge.rank-top{background:var(--accent-soft);color:var(--accent)}
.idx-cell{display:flex;align-items:center;gap:8px;min-width:0}
.idx-num{font-family:var(--mono);font-weight:800;min-width:22px;flex-shrink:0}
.idx-bar{flex:1;height:6px;background:transparent;border-radius:999px;overflow:hidden;min-width:36px}
.idx-bar-fill{height:100%;background:var(--accent);border-radius:999px}
.delta-pill{display:inline-block;font-family:var(--mono);font-weight:800;font-size:12px;padding:2px 8px;border-radius:999px;white-space:nowrap}
.delta-pill.up{background:var(--success-bg);color:var(--success)}
.delta-pill.down{background:var(--danger-bg);color:var(--ember)}
.squad-group{margin-bottom:26px}
.squad-group-head{display:flex;justify-content:space-between;align-items:baseline;gap:10px;margin-bottom:10px}
.squad-group-head h3{font-size:16px;font-weight:800}

/* ── Modal / toast / queue ── */
.overlay{position:fixed;inset:0;background:rgba(15,15,15,.5);display:none;align-items:center;justify-content:center;z-index:100;padding:20px}
.overlay.open{display:flex}
.modal{background:var(--white);border-radius:var(--radius);max-width:640px;width:100%;max-height:85vh;overflow:auto;padding:24px}
/* The Create-assignment modal hosts a whole fixtures browser. */
.modal.wide{max-width:900px}
.modal .sub{color:var(--grey);font-size:13px;margin-bottom:16px}
.mini-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px 20px;margin:14px 0}
@media(max-width:560px){.mini-grid{grid-template-columns:1fr}}
.mini-grid div{display:flex;justify-content:space-between;font-size:14px;padding:5px 0;border-bottom:1px solid var(--grey-light)}
.mini-grid b{font-family:var(--mono);color:var(--accent)}
.field-stat{display:flex;flex-direction:column;align-items:flex-start;gap:7px}
.field-stat-label{font-size:11.5px;color:var(--grey);font-weight:600;text-transform:uppercase;letter-spacing:.04em}
.badge.field-value{background:var(--grey-fill);color:var(--black);font-weight:800;text-transform:none;letter-spacing:0;font-size:13px;padding:4px 13px}
.report-view-title-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:22px}
.report-view-title-row .page-title{margin-bottom:0}
/* White pill, green ink and ring: the pale-green fill vanished against the grey page. */
.badge.submitted-pill{text-transform:none;letter-spacing:0;font-size:12.5px;font-weight:700;padding:5px 13px;display:inline-flex;align-items:center;gap:5px;background:var(--white);color:var(--success);border:1.5px solid var(--success)}
.badge.submitted-pill svg{width:13px;height:13px;flex-shrink:0}
.selected-player .player-avatar{background:var(--white)}
.notes-box{background:var(--bg);border-left:3px solid var(--accent);padding:12px 14px;border-radius:8px;font-size:14px;margin-top:12px}
.toast{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);background:var(--ink);color:#fff;padding:12px 22px;border-radius:var(--r-md);font-size:14px;opacity:0;transition:opacity .3s;pointer-events:none;z-index:200;box-shadow:var(--shadow-lift)}
.toast.show{opacity:1}
.queue-note{background:var(--danger-bg);border:1px solid var(--danger-border);border-radius:12px;padding:12px 16px;font-size:13px;margin-bottom:16px;display:none}
.queue-note.show{display:block}
.empty{text-align:center;color:var(--grey);padding:40px 0;font-size:14px}

/* ── Invite button states ── */
.btn-invite{min-width:150px;justify-content:center;position:relative;transition:background .2s}
.btn-invite .spinner{display:none;width:16px;height:16px;border:2.5px solid rgba(255,255,255,.35);border-top-color:#fff;border-radius:50%;animation:spin .7s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.btn-invite.loading .spinner{display:inline-block}
.btn-invite.loading{pointer-events:none;opacity:.85}
.btn-invite.success{background:var(--success);pointer-events:none}
input:disabled{opacity:.55;cursor:not-allowed}


/* ══ Settings: assessment framework ══════════════════════════════════ */
.fw-title-row{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap;margin-bottom:14px}
.fw-name{font-size:20px;font-weight:600;margin:0 0 4px;color:var(--black)}
.fw-meta{color:var(--grey);font-size:13px;margin:0}
.fw-group-row{padding:12px 0;border-top:1px solid var(--grey-light)}
.fw-group-head{display:flex;justify-content:space-between;align-items:baseline;font-weight:600;margin-bottom:8px}
.fw-weight{font-family:var(--mono);font-size:13px;color:var(--grey);font-variant-numeric:tabular-nums}
.fw-attr-list{display:flex;flex-wrap:wrap;gap:6px}
.fw-attr-chip{background:var(--grey-fill);border-radius:999px;padding:3px 10px;font-size:13px}
.fw-guide{margin-top:14px;border-top:1px solid var(--grey-light);padding-top:12px}
.fw-guide summary{cursor:pointer;font-weight:600;font-size:14px}
.fw-guide-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:6px 20px;margin-top:10px}
.fw-guide-row,.fw-guide-edit{display:flex;gap:10px;align-items:center;font-size:14px}
.fw-guide-edit input{flex:1;min-width:0}
.fw-guide-n{font-family:var(--mono);font-variant-numeric:tabular-nums;color:var(--grey);width:1.6em;text-align:right;flex:none}
.fw-state{margin-top:20px}
.fw-state-pending{border-left:3px solid var(--accent)}
.fw-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
.fw-indent{margin-left:20px}

.fw-draft-bar{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap;margin-bottom:14px}
.fw-draft-bar .fw-actions{margin-top:0}
.fw-weight-total{padding:12px 16px;border-radius:12px;font-size:14px;margin-bottom:16px;font-variant-numeric:tabular-nums}
.fw-weight-total.ok{background:var(--success-bg);color:var(--success)}
.fw-weight-total.bad{background:var(--danger-bg);border:1px solid var(--danger-border);color:var(--black)}
.fw-edit-group{margin-bottom:16px}
.fw-edit-group-head{display:flex;gap:10px;align-items:center;margin-bottom:12px}
.fw-edit-label{flex:1;min-width:0;font-weight:600}
.fw-weight-input{display:flex;align-items:center;gap:4px;font-family:var(--mono);color:var(--grey);flex:none}
.fw-weight-input input{width:4.5em;text-align:right;font-variant-numeric:tabular-nums}
.fw-remove{padding:6px 10px;font-size:13px;flex:none}
.fw-edit-attr{padding:12px 0 12px 14px;border-left:2px solid var(--grey-light);margin:0 0 10px;display:flex;flex-direction:column;gap:8px}
.fw-edit-attr-row{display:flex;gap:10px;align-items:center}
.fw-edit-attr textarea{width:100%;resize:vertical;font-size:14px}

.fw-change-list,.fw-implications{margin:8px 0 0;padding-left:20px;line-height:1.6}
.fw-impact-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px;margin:12px 0}
.fw-tile{background:var(--grey-fill);border-radius:12px;padding:14px;display:flex;flex-direction:column;gap:4px;font-size:13px;color:var(--grey)}
.fw-tile.warn{background:var(--danger-bg);border:1px solid var(--danger-border)}
.fw-tile-n{font-size:26px;font-weight:600;color:var(--black);font-variant-numeric:tabular-nums}
.fw-callout{background:var(--grey-fill);border-radius:12px;padding:14px 16px;margin:12px 0;font-size:14px;line-height:1.55}
.fw-callout-strong{background:var(--danger-bg);border:1px solid var(--danger-border)}
.table-scroll{overflow-x:auto;margin:12px 0}
.fw-impact-table{width:100%;border-collapse:collapse;font-size:14px}
.fw-impact-table th,.fw-impact-table td{padding:8px 10px;text-align:left;border-bottom:1px solid var(--grey-light);white-space:nowrap}
.fw-impact-table th{font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:var(--grey)}
.fw-impact-table .num{text-align:right;font-variant-numeric:tabular-nums;font-family:var(--mono)}
.fw-impact-table tr.band-changed td{background:var(--danger-bg)}
.delta-up{color:var(--success)}
.delta-down{color:var(--red)}

/* ══ Settings: taxonomy ═════════════════════════════════════════════ */
.tax-table{width:100%;border-collapse:collapse}
.tax-table th{font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:var(--grey);text-align:left;padding:6px 8px}
.tax-table td{padding:6px 8px;border-top:1px solid var(--grey-light);vertical-align:middle}
.tax-table input:not([type=radio]){width:100%;min-width:120px}
.tax-num{width:5.5em!important;min-width:0!important;text-align:right;font-variant-numeric:tabular-nums}
.tax-ctl{white-space:nowrap;text-align:right}
.tax-ctl .fw-remove{margin-left:4px}
.tax-radio{display:flex;align-items:center;gap:6px;font-size:14px;white-space:nowrap}
.tax-age{display:flex;flex-wrap:wrap;gap:18px 28px;margin:12px 0 4px}
.tax-age label{display:flex;flex-direction:column;gap:6px;font-size:13px;color:var(--grey)}
.tax-inline{display:flex;align-items:center;gap:6px;color:var(--black);font-size:15px}
.tax-toggle{display:flex;align-items:center;gap:10px;font-weight:600;margin:8px 0}
.tax-recipients{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:8px 20px;margin:12px 0 4px}
.tax-recipients label{display:flex;align-items:center;gap:8px;font-size:14px}

/* ══ Brand ══════════════════════════════════════════════════════════ */
:root[data-theme="dark"] .auth-logo{content:url("/assets/logo-white.svg")}
/* Login halftones are cut to the brand green at source — see scripts/recolour-login-art.mjs. */
/* The organisation's crest and name, under the platform mark. */

/* ── Squircle corners: js/squircle.js computes each element's smoothed path
   from its measured size and sets --sq-path; this is where it's applied.
   A custom property rather than an inline clip-path so the :has() rules
   below can still switch it off while a popover is open — clip-path would
   otherwise clip the dropdown. Borders on clipped elements are drawn by
   the script as an SVG stroke (.sq-edge); the CSS border goes transparent. */
[data-sq]{clip-path:var(--sq-path)}
.sq-edge{position:absolute;top:0;left:0;pointer-events:none;overflow:visible;z-index:1}
.sq-edge path{fill:none;stroke:var(--sq-stroke);stroke-width:1;stroke-dasharray:var(--sq-dash,none)}
.card:has(.search-results,.info-tip,.fx-menu,.chart-range-menu,.chart-tooltip,.fixture-locked),
.dash-card:has(.chart-tooltip,.chart-range-menu,.info-tip),
.chart-card:has(.chart-tooltip,.chart-range-menu,.info-tip),
.report-overview-card:has(.search-results,.info-tip,.fx-menu),
.filter-panel:has(.info-tip),
.modal:has(.search-results,.info-tip,.fx-menu,.chart-range-menu),
.pad-sheet:has(.info-tip){clip-path:none;border-color:var(--sq-stroke,var(--border))!important}
.card:has(.search-results,.info-tip,.fx-menu,.chart-range-menu,.chart-tooltip,.fixture-locked)>.sq-edge,
.dash-card:has(.chart-tooltip,.chart-range-menu,.info-tip)>.sq-edge,
.chart-card:has(.chart-tooltip,.chart-range-menu,.info-tip)>.sq-edge,
.report-overview-card:has(.search-results,.info-tip,.fx-menu)>.sq-edge,
.filter-panel:has(.info-tip)>.sq-edge,
.modal:has(.search-results,.info-tip,.fx-menu,.chart-range-menu)>.sq-edge,
.pad-sheet:has(.info-tip)>.sq-edge{display:none}

/* ══ Settings: appearance ═══════════════════════════════════════════ */
.brand-row{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:12px 0 4px}
.brand-row input[type=color]{width:48px;height:48px;padding:4px;border-radius:var(--r-md);cursor:pointer}
.brand-row input[type=text]{width:9em;font-family:var(--mono)}
.brand-preview{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.brand-preview .btn{pointer-events:none}
.brand-chip{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:var(--r-md);background:var(--accent-soft);color:var(--accent);font-weight:600;font-size:14px}
.brand-warn{color:var(--red);font-size:13px;margin-top:8px}
.feature-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:8px 20px;margin:12px 0 4px}
.feature-list div{display:flex;justify-content:space-between;align-items:center;font-size:14px;padding:8px 0;border-bottom:1px solid var(--grey-light)}
.feature-on{color:var(--success);font-weight:600;font-size:13px}
.feature-off{color:var(--muted);font-weight:600;font-size:13px}

/* ══ Dashboard ═══════════════════════════════════════════════════════ */
.dash-head{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:24px}
.dash-actions{display:flex;gap:10px;flex-wrap:wrap}
.kpi-tiles{margin-bottom:12px}
.dash-card.full{grid-column:1/-1}
.cov-list{display:grid;gap:10px}
.cov-row{display:grid;grid-template-columns:150px 1fr 32px;align-items:center;gap:12px;font-size:13.5px}
.cov-label{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cov-bar{height:8px;background:var(--grey-fill);border-radius:999px;overflow:hidden}
.cov-fill{height:100%;background:var(--g600);border-radius:999px;min-width:0}
.cov-n{text-align:right;font-variant-numeric:tabular-nums;color:var(--grey);font-weight:600}
.cov-row.zero .cov-label,.cov-row.zero .cov-n{color:var(--red)}
.attn-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 4px;margin:0 -4px;border-bottom:1px solid var(--grey-light);cursor:pointer;border-radius:8px;transition:background .12s}
.attn-row .who{font-weight:600;font-size:14px}
.attn-meta{font-size:12.5px;color:var(--grey);white-space:nowrap}
.attn-foot{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.attn-flag{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border-radius:999px;background:var(--grey-fill);color:var(--grey);font-size:12.5px;font-weight:600;border:0;font-family:inherit}
button.attn-flag{cursor:pointer}
.attn-flag svg{width:14px;height:14px}
.single-scout{color:var(--warn);font-weight:700}
@media(max-width:560px){.cov-row{grid-template-columns:100px 1fr 28px}}

/* ── Light frame (8 Oct 2026): the panel is white, so every card gets a
   light border instead of relying on the grey ground to separate it. ── */
.card,.dash-card,.chart-card,.kpi-tile,.stat,.filter-panel,.report-overview-card,.player-card,.report,.report-card,.fx-card,.fixture-card,.scout-table,.stat-card,.fx-suggest,.modal{border:1px solid var(--border)}
.stat-card.status-chip,.stat-card.stat-edit{border-color:transparent}
.stat-card.stat-edit{border:1.5px dashed var(--border-hover)}

/* ── Colour system on the player page (8 Oct 2026) ── */
.gauge-wrap.band-elite .fill{stroke:#00715B}   .gauge-wrap.band-elite .gauge-band{color:#00715B}
.gauge-wrap.band-high .fill{stroke:var(--s4)}  .gauge-wrap.band-high .gauge-band{color:var(--s4)}
.gauge-wrap.band-dev .fill{stroke:var(--s3)}   .gauge-wrap.band-dev .gauge-band{color:var(--s3)}
.gauge-wrap.band-monitor .fill{stroke:var(--muted)} .gauge-wrap.band-monitor .gauge-band{color:var(--muted)}
/* Form Lines group pills: a dot in the group's colour; tinted when active. */
.chart-pill.group{display:inline-flex;align-items:center;gap:7px}
.chart-pill.group::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--pill);flex-shrink:0}
.chart-pill.group.active{background:var(--pill-soft);border-color:transparent;color:var(--pill)}

/* ── Page hero (8 Oct 2026): one tinted card per page holding the heading
   with its icon, the actions, the summary row and the controls. Each page's
   colour is the series colour its dashboard tile used. ── */
.page-hero{background:var(--panel);border:1px solid var(--hero-line);border-radius:var(--radius);padding:24px;margin-bottom:24px;position:relative;isolation:isolate}
/* Dither texture (8 Oct): the login art is an ordered-dither halftone, so the
   hero and the dashboard cards carry 2px square pixels on a 4px grid in their
   own colour, rising from the foot and fading out upward (11 Oct: pixels, not
   dots; bottom-up, not right-to-left). The card itself is white; the inner
   tiles take the section tint so they still separate from the card. Drawn on
   ::before at z-index:-1 inside an isolated stacking context, which paints it
   above the card's background but below every child without touching them. */
.page-hero::before,.dash-card[data-dash]::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background-image:conic-gradient(from 90deg at 2px 2px,var(--hero) 25%,transparent 0);background-size:4px 4px;opacity:.28;-webkit-mask-image:linear-gradient(to top,#000 0,transparent 60%);mask-image:linear-gradient(to top,#000 0,transparent 60%)}
.dash-card[data-dash]{position:relative;isolation:isolate;background:var(--panel);border:1px solid var(--hero-line)}
/* Open dashboard sections (11 Oct): headers on the page, no containers. */
.dash-open{margin-top:8px}
.dash-sec{margin-top:36px;min-width:0}
.dash-sec:first-child{margin-top:0}
.dash-sh{display:flex;align-items:center;gap:10px;margin-bottom:14px}
.dash-sh-text{flex:1;min-width:0}
.dash-sh .section-label{margin:0;font-size:17px;line-height:1.3;font-weight:600;color:var(--black);text-transform:none;letter-spacing:normal}
.dash-sub{margin:0;font-size:13px;color:var(--grey)}
[data-dash="coverage"]{--hero:#00A072;--hero-chip:rgba(0,160,114,.14)} /* the players green */
[data-dash="scouts"]{--hero:#2F6FED;--hero-chip:rgba(47,111,237,.14);--hero-line:rgba(47,111,237,.18)}
[data-dash="trend"]{--hero:#2F6FED;--hero-chip:rgba(47,111,237,.14)} /* the scouts page blue */
[data-dash="pipeline"]{--hero:#00A072;--hero-chip:rgba(0,160,114,.14)} /* status is a player fact: the players green */
[data-dash="rise"]{--hero:#00A072;--hero-chip:rgba(0,160,114,.14)}
.dash-sec[data-dash] .dash-ico,.dtile .dash-ico,.dash-modal-head .dash-ico{background:var(--hero-chip);color:var(--hero)}
.dash-cols{display:grid;grid-template-columns:1fr 1fr;gap:40px;margin-top:40px}
.dash-cols .dash-sec{margin-top:0}
@media(max-width:760px){.dash-cols{grid-template-columns:1fr;gap:28px}}
.report-grid.dash-3up{grid-template-columns:repeat(3,1fr);gap:24px}
.dash-open .report-card{padding:24px}
@media(max-width:860px){.report-grid.dash-3up{grid-template-columns:1fr}}
/* A strip bleeds through main's right padding to the edge of the panel and
   scrolls sideways; the mask fades the cut-off tile so the overflow reads. */
main{--main-pad:48px}
.dash-strip{display:flex;gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;padding:4px var(--main-pad) 12px 4px;margin:-4px calc(-1 * var(--main-pad)) -8px -4px;scrollbar-width:none;-webkit-mask-image:linear-gradient(to right,#000 calc(100% - 72px),transparent);mask-image:linear-gradient(to right,#000 calc(100% - 72px),transparent)}
.dash-strip::-webkit-scrollbar{display:none}
.dash-strip>*{scroll-snap-align:start;flex-shrink:0}
/* Attention tile: name, position · index, then a bar for how far past the
   60-day line, then "Last seen · N weeks ago". */
.at-tile{width:176px;height:176px;background:var(--panel);border:1px solid var(--border);border-radius:16px;padding:14px;display:flex;flex-direction:column;cursor:pointer}
.at-tile .who{font-weight:700;font-size:15px;line-height:1.2}
.at-pos{font-size:12.5px;color:var(--grey);line-height:1.3;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.at-idx{font-size:12px;font-weight:600;color:var(--s4);margin-top:4px;white-space:nowrap}
.at-bar{height:4px;border-radius:2px;background:var(--grey-fill);margin-top:auto;overflow:hidden}
.at-bar i{display:block;height:100%;border-radius:2px;background:var(--s3)}
.at-bar.s3 i{background:var(--s5)}
.at-lbl{display:flex;justify-content:space-between;font-size:11.5px;color:var(--grey);margin-top:6px}
.at-lbl b{color:var(--black);font-weight:700}
[data-dash="reports"]{--hero:#7C5CE6;--hero-soft:rgba(124,92,230,.06);--hero-line:rgba(124,92,230,.18);--hero-chip:rgba(124,92,230,.14)}
[data-dash="assignments"]{--hero:#D97706;--hero-soft:rgba(217,119,6,.06);--hero-line:rgba(217,119,6,.2);--hero-chip:rgba(217,119,6,.14)}
[data-dash="players"]{--hero:#00A072;--hero-soft:rgba(0,160,114,.06);--hero-line:rgba(0,160,114,.18);--hero-chip:rgba(0,160,114,.14)}
[data-dash="seen"]{--hero:#00A072;--hero-chip:rgba(0,160,114,.14)}
[data-dash="opinions"]{--hero:#2F6FED;--hero-chip:rgba(47,111,237,.14)}
[data-dash="bands"]{--hero:#00715B;--hero-chip:rgba(0,113,91,.14)}
[data-dash="moves"]{--hero:#00A072;--hero-chip:rgba(0,160,114,.14)}
[data-dash="attention"]{--hero:#E8604C;--hero-soft:var(--frame);--hero-line:var(--border-strong);--hero-chip:rgba(232,96,76,.14)}
.dash-card[data-dash] .report-card{border-color:var(--hero-line);background:var(--panel)}
.dash-card[data-dash] .dash-card-head{align-items:center}
.dash-title{display:flex;align-items:center;gap:10px;min-width:0}
.dash-ico{width:32px;height:32px;flex-shrink:0;border-radius:9px;background:var(--hero-chip);color:var(--hero);display:flex;align-items:center;justify-content:center}
.dash-ico svg{width:17px;height:17px}
.page-hero[data-hero="reports"]{--hero:#7C5CE6;--hero-soft:rgba(124,92,230,.06);--hero-line:rgba(124,92,230,.18);--hero-chip:rgba(124,92,230,.14)}
.page-hero[data-hero="players"]{--hero:#00A072;--hero-soft:rgba(0,160,114,.06);--hero-line:rgba(0,160,114,.18);--hero-chip:rgba(0,160,114,.14)}
.page-hero[data-hero="assignments"]{--hero:#D97706;--hero-soft:rgba(217,119,6,.06);--hero-line:rgba(217,119,6,.2);--hero-chip:rgba(217,119,6,.14)}
.page-hero[data-hero="squads"]{--hero:#00A072;--hero-soft:rgba(0,160,114,.06);--hero-line:rgba(0,160,114,.18);--hero-chip:rgba(0,160,114,.14)}
.page-hero[data-hero="scouts"]{--hero:#2F6FED;--hero-soft:rgba(47,111,237,.06);--hero-line:rgba(47,111,237,.18);--hero-chip:rgba(47,111,237,.14)}
.page-hero[data-hero="users"]{--hero:#C2419A;--hero-soft:rgba(194,65,154,.06);--hero-line:rgba(194,65,154,.18);--hero-chip:rgba(194,65,154,.14)}
.page-hero[data-hero="settings"]{--hero:var(--grey);--hero-soft:var(--frame);--hero-line:var(--border-strong);--hero-chip:rgba(95,103,114,.12)}
.page-hero .page-head{margin-bottom:0}
.page-hero .page-head + :not(.sq-edge){margin-top:24px}
.page-hero .stat-row{margin-bottom:0}
.page-hero .stat-row + :not(.sq-edge){margin-top:16px}
.page-hero .age-tabs{margin:0}
.page-hero .age-tabs + :not(.sq-edge){margin-top:16px}
.page-hero .page-controls{margin-bottom:0}
.page-hero .filter-panel{margin-top:12px}
/* Inner tiles are opaque white with the section hairline (option B, 11 Oct):
   a translucent tint would let the pixel texture show straight through. */
.page-hero .stat{background:var(--panel);border:1px solid var(--hero-line)}
.page-hero .segmented,.page-hero .age-tabs button{background:var(--panel);box-shadow:inset 0 0 0 1px var(--border)}
.page-hero .segmented button.active,.page-hero .age-tabs button.active{background:var(--hero-chip);color:var(--hero);box-shadow:none;border-color:transparent}
.hero-icon{width:44px;height:44px;flex-shrink:0;border-radius:var(--r-md);background:var(--hero-chip);color:var(--hero);display:flex;align-items:center;justify-content:center}
.hero-icon svg{width:22px;height:22px}
.hero-body{margin-top:20px}

/* Each page's primary actions take that page's colour (the hero's). */
#pane-reports .btn-primary,#pane-reports .back-btn{background:#7C5CE6}
#pane-players .btn-primary,#pane-players .back-btn{background:#00A072}
#pane-myfixtures .btn-primary,#pane-myfixtures .back-btn,#pane-fixtureView .btn-primary,#pane-fixtureView .back-btn{background:#D97706}
#pane-scouts .btn-primary,#pane-scouts .back-btn{background:#2F6FED}
#pane-squads .btn-primary,#pane-squads .back-btn{background:#00A072}
#pane-admin .btn-primary{background:#C2419A}
#pane-reportView .back-btn{background:#7C5CE6}
#pane-reports .btn-primary:hover,#pane-players .btn-primary:hover,#pane-myfixtures .btn-primary:hover,#pane-fixtureView .btn-primary:hover,#pane-scouts .btn-primary:hover,#pane-admin .btn-primary:hover,
#pane-reports .back-btn:hover,#pane-players .back-btn:hover,#pane-myfixtures .back-btn:hover,#pane-fixtureView .back-btn:hover,#pane-reportView .back-btn:hover{filter:brightness(.92)}

/* Active menu item: the icon takes its section's colour; the label stays ink. */
#tabReports.active svg{color:#7C5CE6}
#tabPlayers.active svg{color:#00A072}
#tabMyFixtures.active svg{color:#D97706}
#tabScouts.active svg{color:#2F6FED}
#tabSquads.active svg{color:#00A072}
#tabAdmin.active svg{color:#C2419A}

/* Scouts as cards. */
.scout-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.scout-card{background:var(--white);border:1px solid var(--border);border-radius:var(--r-ml);padding:20px;display:flex;flex-direction:column;gap:14px;cursor:pointer;min-width:0}
.scout-card-top{display:flex;align-items:center;gap:12px}
.scout-card .scout-avatar{width:44px;height:44px;font-size:14px}
.scout-card .who{font-weight:700;font-size:15px}
.scout-card .meta{font-size:12.5px;color:var(--grey);margin-top:2px}
.scout-card-top .badge{margin-left:auto;flex-shrink:0}
.scout-card-stats{display:flex;gap:22px;padding-top:12px;border-top:1px solid var(--border)}
.scout-card-stats b{display:block;font-family:var(--mono);font-size:18px;font-weight:800;line-height:1.1}
.scout-card-stats span{font-size:11.5px;color:var(--grey)}
.stat-row-4{grid-template-columns:repeat(4,1fr)}
#scoutProfileView .page-head{margin-bottom:24px}
#scoutProfileView .stat-row{margin-bottom:24px}
@media (max-width:1100px){.scout-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:640px){.scout-grid,.stat-row-4{grid-template-columns:1fr}}
/* Date tiles on report cards take the Reports colour. */
.report-card .rc-date{background:rgba(124,92,230,.12);color:#7C5CE6}
/* Date tiles on assignment surfaces take the Assignments colour. */
.fx-card .rc-date,.assign-date{background:rgba(217,119,6,.12);color:#D97706}
.assign-date-day,.assign-date-mon{color:#D97706}

/* ── Restored 8 Oct 2026: rules the option-G card rewrite removed by accident ── */
/* A full-width card has room: three-up with footers (scout page). */
@media (max-width:1100px){.dash-card.full .report-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:640px){.dash-card.full .report-grid{grid-template-columns:1fr}}
/* Clickable rows and cards carry no hover fill by design (17 Sep 2026):
   the cursor is the affordance. Hover fills stay on controls only —
   menus, buttons, search results, chart options. */
.rc-date{width:48px;height:48px;flex-shrink:0;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:0;border-radius:var(--r-sm);background:var(--frame);color:var(--black)}
.rc-date .d{font-size:16px;font-weight:500;line-height:1}
.rc-date .m{font-size:10px;font-weight:500;text-transform:uppercase;letter-spacing:.05em;margin-top:3px}
/* Assignments: manager's fixture cards, three up (two inside the modal). */
.assign-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.modal .assign-grid{grid-template-columns:repeat(2,1fr)}
/* Fixture card: three labelled blocks (fixture, tracking, scout) 24px apart
   so the tracked players and the scout's name stop reading as one list. */
.fx-card{background:var(--white);border-radius:var(--r-ml);padding:22px 22px 20px;display:flex;flex-direction:column;gap:24px;cursor:pointer;min-width:0}
.fxc-head{display:flex;flex-direction:column;gap:10px}
.fxc-top{display:flex;align-items:center;gap:12px}
.fxc-text{min-width:0}
.fxc-teams{font-weight:700;font-size:15px;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.fxc-comp{font-size:12.5px;color:var(--grey);margin-top:2px}
.fxc-comp .badge{margin-left:6px;vertical-align:middle}
.fxc-meta{display:flex;flex-wrap:wrap;gap:12px;font-size:12.5px;font-weight:600;color:var(--black)}
.fxc-meta svg{width:13px;height:13px;color:var(--grey);vertical-align:-2px;margin-right:4px}
.fxc-block{display:flex;flex-direction:column;gap:8px}
.fxc-lbl{font-size:10.5px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--grey)}
.fxc-chips{display:flex;flex-wrap:wrap;gap:6px}
.fxc-chips .chip-s{font-size:12px;font-weight:600;background:var(--grey-fill);color:var(--black);border-radius:999px;padding:4px 10px}
.fxc-scouts{margin-top:auto;padding-top:16px;border-top:1px solid var(--border)}
.scout-line{display:flex;align-items:center;gap:10px;min-width:0}
.scout-avatar{width:28px;height:28px;border-radius:50%;background:var(--frame);color:var(--black);font-size:11px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}
.scout-name{font-size:13.5px;font-weight:700;color:var(--black);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.scout-status{margin-left:auto;font-size:11.5px;font-weight:600;color:var(--grey);flex-shrink:0}
.scout-line.done .scout-status{color:var(--success)}
.scout-line.done .scout-avatar{background:var(--success-bg);color:var(--success)}
.scout-line.none{font-size:12.5px;color:var(--grey)}
.modal .fx-card{border:1px solid var(--border)}
.modal .fw-actions{display:flex;gap:10px;margin-top:18px}
/* Featured players rows (dashboard) — attn-row with a rank and index. */
.feat-rank{width:26px;height:26px;border-radius:50%;background:var(--accent);color:#fff;font-size:12px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}
.feat-right{margin-left:auto;text-align:right;display:flex;flex-direction:column;align-items:flex-end;gap:2px}
.feat-idx{font-family:var(--mono);font-size:18px;font-weight:800;color:var(--accent);line-height:1}
.modal-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:4px}
.modal-head h2{margin:0}
.modal-close{width:36px;height:36px;border:0;border-radius:var(--r-sm);background:var(--grey-fill);color:var(--black);font-size:22px;line-height:1;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}
.modal-close:hover{background:var(--border)}
/* Player page: Upcoming Fixtures scroller — two tiles in view, a third
   peeking, snap on drag, stepped by the head's ‹ › buttons. */
.scroll-btns{display:flex;gap:6px}
.scroll-btn{width:32px;height:32px;border:1px solid var(--border);border-radius:var(--r-sm);background:var(--white);color:var(--black);cursor:pointer;display:inline-flex;align-items:center;justify-content:center}
.scroll-btn:hover{background:var(--grey-fill)}
.scroll-btn svg{width:16px;height:16px}
.scroll-btn.flip svg{transform:scaleX(-1)}
.fx-track{display:flex;gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding-bottom:2px}
.fx-track::-webkit-scrollbar{display:none}
.fx-suggest{flex:0 0 42%;min-width:240px;scroll-snap-align:start;border:1px solid var(--border);border-radius:var(--r-md);padding:16px;display:flex;flex-direction:column;gap:14px;cursor:pointer;min-width:0}
.fxs-top{display:flex;align-items:center;gap:12px}
.fxs-text{min-width:0}
.fxs-teams{font-weight:700;font-size:14.5px;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.fxs-comp{font-size:12.5px;color:var(--grey);margin-top:2px}
.fxs-source{display:block;font-size:11.5px;color:var(--muted);margin-top:2px;text-transform:capitalize}
.fxs-foot{margin-top:auto}
@media (max-width:640px){.fx-suggest{flex-basis:80%}}

/* ── Insights dashboard (11 Oct 2026): bento of tiles ────────────────── */
.dash-bento{display:grid;grid-template-columns:repeat(12,1fr);gap:36px 24px}   /* 24px between cards on a row, 36px between rows */
.dash-bento+.dash-bento{margin-top:36px}   /* rows of cards are 36px apart */
.dash-bento .c3{grid-column:span 3}.dash-bento .c4{grid-column:span 4}.dash-bento .c8{grid-column:span 8}
@media(max-width:1100px){.dash-bento .c3{grid-column:span 6}.dash-bento .c4,.dash-bento .c8{grid-column:span 12}}
@media(max-width:600px){.dash-bento .c3{grid-column:span 12}}
.dtile{background:var(--panel);border:1px solid var(--border);border-radius:var(--radius);padding:24px;min-width:0;box-shadow:var(--shadow-card);position:relative;display:flex;flex-direction:column;cursor:pointer;transition:box-shadow .15s var(--ease),transform .15s var(--ease)}
.dtile:hover{box-shadow:var(--shadow-lift);transform:translateY(-1px)}
.dtile.static{cursor:default}.dtile.static:hover{box-shadow:none;transform:none}
.dt-head{display:flex;align-items:center;gap:12px}
.dt-head .dash-ico{width:36px;height:36px;border-radius:10px}.dt-head .dash-ico svg{width:18px;height:18px}
.dt-lbl{font-size:14px;font-weight:600;flex:1;min-width:0;line-height:1.3}
.dt-sub{font-size:12px;color:var(--grey);font-weight:500;display:block}
.dt-go{width:36px;height:36px;border-radius:50%;border:1px solid var(--border);display:flex;align-items:center;justify-content:center;color:var(--grey);flex-shrink:0;background:var(--panel)}
.dtile:hover .dt-go,.dt-go:hover{background:var(--grey-fill);border-color:transparent;color:var(--black)}   /* hovering the tile fills the arrow, no border */
.dt-go svg{width:15px;height:15px}
.dtile.kpi{aspect-ratio:1/1;min-height:188px}
.dtile.kpi.wide{aspect-ratio:auto;min-height:200px}
/* Twin figures at the top of a big tile: "40 Advanced or better · 20 over 6 months". */
.dash-pie{display:flex;justify-content:center;margin-top:24px}
.dash-foot-note{font-size:12px;color:var(--grey);padding-top:12px}
.dash-pie svg{display:block}
.dash-pie .slice{transition:opacity .12s var(--ease)}
.dash-status .m{font-size:11px;color:var(--grey);font-family:var(--mono)}
.dash-twin{display:flex;gap:24px;margin-top:24px}
.dash-twin>div{display:flex;flex-direction:column;gap:6px}
.dash-twin b{font-size:40px;font-weight:600;letter-spacing:-.03em;line-height:1;font-variant-numeric:tabular-nums}
.dash-twin span{font-size:12px;color:var(--grey);font-weight:500}
.dash-twin .dn b{color:#C2412E}.dash-twin .muted b{color:var(--grey)}
.dash-ladder-wrap{flex:1;display:flex;align-items:center;margin-top:12px}
.dash-ladder{width:100%;max-width:360px;height:auto;display:block;overflow:visible;margin:0 auto}   /* drawn at one size whatever the tile's width */
.ladder-line{cursor:pointer;transition:opacity .12s var(--ease)}
.dash-ladder:hover .ladder-line{opacity:.3}.dash-ladder .ladder-line:hover,.dash-ladder .ladder-hit:hover + .ladder-line{opacity:1}
.dash-ladder-wrap{position:relative}
.ladder-hit{cursor:pointer}
.ladder-tip{position:absolute;pointer-events:none;background:var(--black);color:#fff;font-size:11px;font-weight:600;padding:6px 9px;border-radius:6px;white-space:nowrap;z-index:5}
.dash-dumb-wrap{padding:12px 0 0}
.dash-ladder-key{display:flex;gap:24px;font-size:12px;color:var(--grey);margin-top:12px}
.dash-ladder-key span{display:inline-flex;align-items:center;gap:6px}.dash-ladder-key i{width:12px;height:2px;border-radius:1px;display:inline-block}
.dash-arrow{font-size:10px;font-weight:700}.dash-arrow.up{color:var(--g700)}.dash-arrow.dn{color:#C2412E}
.dash-bento .empty{flex:1;display:flex;align-items:center;justify-content:center;padding:24px 0;font-size:13px;color:var(--grey);text-align:center}
.dt-ring{width:44px!important;height:44px!important}
.dt-foot{margin-top:auto;display:flex;align-items:flex-end;justify-content:space-between;gap:12px}
.dt-big{font-size:40px;font-weight:600;letter-spacing:-.03em;line-height:1;font-variant-numeric:tabular-nums}
.dt-big small{font-size:14px;font-weight:600;color:var(--grey);letter-spacing:0;margin-left:4px}
.dt-delta{display:inline-flex;align-items:center;gap:4px;font-size:12px;font-weight:700;border-radius:999px;padding:3px 9px;margin-top:6px;line-height:1.25;max-width:100%}
.dt-delta.up{background:var(--success-bg);color:var(--g700)}.dt-delta.dn{background:rgba(232,96,76,.12);color:#C2412E}.dt-delta.flat{background:var(--grey-fill);color:var(--grey)}
.dt-delta:empty{display:none}
.dt-mini{width:84px;height:44px;flex-shrink:0}
.dt-mini-wrap{display:flex;flex-direction:column;align-items:flex-end;gap:4px;flex-shrink:0;max-width:96px}
.dt-cap{font-size:10.5px;color:var(--muted);font-weight:500;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.dt-foot>div:first-child{min-width:0}
.dash-bento-lower{margin-top:36px}
/* Graphic-led KPI tiles: the picture fills the middle, the number sits
   along the foot with its chip inline. */
.dt-graphic{flex:1;display:flex;align-items:center;margin:12px 0 0;min-height:84px}   /* 12px gap + 12px = 24px from the head */
.dtile.kpi.wide,.dtile[data-dash="coverage"]{gap:12px}
.dt-graphic .dt-curve{width:100%;height:84px}
.dt-graphic .dt-curve circle{vector-effect:non-scaling-stroke}
.scout-dots{display:flex;flex-wrap:wrap;gap:12px;width:100%}
.scout-dots i{cursor:default}
.scout-dots i{display:block;width:30px;height:30px;color:rgba(47,111,237,.3)}
.scout-dots i svg{width:100%;height:100%;display:block}
.scout-dots i.on{color:#2F6FED}
.dt-foot2{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:12px}
.dt-foot2>b{font-size:36px;font-weight:600;letter-spacing:-.03em;line-height:1;font-variant-numeric:tabular-nums}
.dt-foot2>b small{font-size:13px;font-weight:600;color:var(--grey);letter-spacing:0;margin-left:4px}
.dt-foot2 .dt-delta{margin-top:0;margin-left:auto;height:36px;padding:0 12px;font-size:13px;border-radius:999px}
.dtile[data-dash="coverage"] .dash-insight{height:36px;padding:0 12px;align-items:center;margin-top:auto}
.dtile[data-dash="coverage"] .dash-insight .dot{margin-top:0}
.dash-bento .c6{grid-column:span 6}
@media(max-width:1100px){.dash-bento .c6{grid-column:span 12}}
.dash-avs{display:flex}.dash-avs i{width:26px;height:26px;border-radius:50%;background:var(--grey-fill);border:2px solid var(--panel);margin-left:-8px;font-style:normal;font-size:9px;font-weight:700;display:flex;align-items:center;justify-content:center;color:var(--black)}.dash-avs i:first-child{margin-left:0}
.dash-legend{display:flex;gap:12px;font-size:12px;color:var(--grey);margin-top:12px}
.dash-legend i{display:inline-block;width:14px;height:0;border-top:2px solid #2F6FED;vertical-align:middle;margin-right:6px}.dash-legend i.prev{border-top-style:dashed;border-color:var(--muted)}
.dash-area{width:100%;height:auto;aspect-ratio:720/190;display:block;margin-top:10px;overflow:visible;color:var(--black)}   /* keeps its proportions at any width, so axis text is not stretched */
.dash-insight{display:flex;gap:12px;align-items:flex-start;margin-top:12px;padding:12px;border-radius:12px;background:var(--grey-fill);font-size:13px;color:var(--grey);line-height:1.45}
.dash-insight b{color:var(--black)}
.dash-insight .dot{width:6px;height:6px;border-radius:50%;background:var(--hero);margin-top:6px;flex-shrink:0} /* the tile's own colour, not a series colour */
.dash-funnel{margin-top:14px;display:flex;flex-direction:column;gap:10px}
.dash-funnel .fr{display:grid;grid-template-columns:110px 1fr 36px;align-items:center;gap:12px;font-size:13.5px;cursor:pointer;border-radius:8px}
.dash-funnel .fr:hover .n{color:var(--hero)}
.dash-funnel .n{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dash-funnel .v{text-align:right;font-weight:700}
.dash-funnel .bar{height:10px;border-radius:5px;background:var(--grey-fill);overflow:hidden}.dash-funnel .bar i{display:block;height:100%;border-radius:5px;background:var(--c)}
.dash-funnel .fr.hatch .bar i{background:repeating-linear-gradient(135deg,var(--border-strong) 0 3px,transparent 3px 7px)}
.dash-matrix{display:grid;grid-template-columns:repeat(25,1fr);gap:3px;margin-top:16px}
.dash-matrix i{aspect-ratio:1/1;border-radius:2px;background:var(--grey-fill)}
.dash-matrix i.el,.dash-mkey i.el{background:var(--g700)}.dash-matrix i.hi,.dash-mkey i.hi{background:var(--s4)}.dash-matrix i.dv,.dash-mkey i.dv{background:var(--s3)}.dash-matrix i.mo,.dash-mkey i.mo{background:var(--border-strong)}
.dash-mkey{display:flex;gap:12px;flex-wrap:wrap;font-size:12px;color:var(--grey);margin-top:10px}.dash-mkey b{color:var(--black)}
.dash-mkey i{display:inline-block;width:8px;height:8px;border-radius:2px;margin-right:5px;vertical-align:middle}
/* The rows share the tile's remaining height equally, so side-by-side tiles
   finish at the same baseline instead of one leaving a gap at the foot. */
.dash-rows{margin-top:12px;flex:1;display:flex;flex-direction:column}
.dash-row{display:flex;align-items:center;gap:12px;padding:12px 0;flex:1 0 auto;border-bottom:1px solid var(--border);cursor:pointer}
.dash-row:last-child{border:0}
.dash-row>div:first-child{min-width:0}
.dash-row .n{font-weight:600;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dash-row .m{font-size:12.5px;color:var(--grey)}
.dash-row .end{margin-left:auto;display:flex;align-items:center;gap:12px;flex-shrink:0}
.dash-row .assign-date{width:44px;height:44px}
.dash-pill{font-weight:700;font-size:12.5px;border-radius:999px;padding:6px 12px;line-height:1;white-space:nowrap}
.dash-pill.g{background:var(--success-bg);color:var(--g700)}.dash-pill.a{background:rgba(217,119,6,.14);color:#B45309}.dash-pill.n{background:var(--grey-fill);color:var(--grey)}
.dash-spark{width:64px;height:24px}
.dash-idx{font-family:var(--mono);font-weight:700;font-size:18px;color:var(--g700);min-width:28px;text-align:right}
.dash-cov{display:flex;align-items:flex-end;gap:6px;flex:1;min-height:96px;margin-top:12px} /* flex:1 — the bars grow to fill the tile */
/* Grid, not a flex column: a bar's percentage height must resolve against the
   row above the label, not the whole column — in the flex version the tallest
   bar was clamped by the label while the others were not, so 90% drew taller
   than 100%. */
.dash-cov div{flex:1;display:grid;grid-template-rows:1fr auto;align-items:end;height:100%;gap:6px;min-width:0;cursor:default}
.dash-cov div:hover b{filter:brightness(.9)}
.cov-tip{pointer-events:none;min-width:0;padding:10px 14px;box-shadow:0 4px 12px rgba(22,22,29,.12)}
.dtile .cov-tip .chart-tooltip-avg-num{color:var(--hero)}   /* the tile's own colour: blue on Active scouts, green on Coverage */
.cov-tip .chart-tooltip-date{margin:4px 0 0}
.dash-cov b{display:block;border-radius:6px 6px 3px 3px;background:rgba(0,160,114,.3)}
.dash-cov .hi b{background:#00A072}
.dash-cov .zero b{background:repeating-linear-gradient(135deg,rgba(232,96,76,.35) 0 3px,transparent 3px 7px);border:1px dashed rgba(232,96,76,.5);height:100%!important}
.dash-cov span{font-size:10px;color:var(--grey);text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dash-cov .hi span{color:var(--black);font-weight:600}
select.dash-range{appearance:none;-webkit-appearance:none;height:44px;padding:0 44px 0 18px;border:1px solid var(--border-strong);border-radius:999px;background-color:var(--panel);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235f6772' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 16px center;background-size:16px;font:inherit;font-size:14px;font-weight:600;color:var(--black);cursor:pointer}
select.dash-range:focus{outline:none;border-color:var(--black)}
.dash-modal-head{display:flex;align-items:center;gap:12px;margin-bottom:24px}
.modal-foot{margin-top:24px;padding-top:24px;border-top:1px solid var(--border)}
.modal-foot .btn{height:44px;display:inline-flex;align-items:center;gap:6px}
.dash-modal-head h2{margin:0}
.dash-modal-head .dash-ico{width:36px;height:36px;border-radius:10px}.dash-modal-head .dash-ico svg{width:18px;height:18px}
.dash-modal-head .modal-close{margin-left:auto}
.dash-modal-label{margin:0 0 10px;font-size:14px;font-weight:600;color:var(--black);text-transform:none;letter-spacing:normal}
.at-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(168px,1fr));gap:12px;margin-top:16px}
.at-grid .at-tile{width:auto}
.dash-open .dash-sec{margin-top:36px}

/* ── Compare players (11 Oct 2026) ─────────────────────────────────── */
.cmp-tick{width:18px;height:18px;border-radius:5px;border:1.5px solid var(--border-strong);display:inline-block;cursor:pointer;position:relative;background:var(--panel)}
.cmp-tick.on{background:var(--accent);border-color:var(--accent)}
.cmp-tick.on::after{content:"";position:absolute;left:5px;top:2px;width:5px;height:9px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}
.scout-table-row.cmp-selected{background:var(--success-bg)}
#compareModeBtn.active{background:var(--accent);color:#fff;box-shadow:none}
.cmp-bar{position:sticky;bottom:16px;z-index:5;display:none;align-items:center;gap:12px;margin-top:16px;padding:10px 12px 10px 14px;background:var(--panel);border:1px solid var(--border);border-radius:16px;box-shadow:var(--shadow-lift)}
.cmp-bar.show{display:flex}
.cmp-bar-ico{width:32px;height:32px;border-radius:9px;background:var(--success-bg);color:var(--accent);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.cmp-bar-ico svg{width:16px;height:16px}
.cmp-bar-chips{flex:1;display:flex;flex-wrap:wrap;gap:6px;min-width:0}
.cmp-chip{display:inline-flex;align-items:center;gap:6px;padding:5px 6px 5px 10px;border-radius:999px;background:var(--grey-fill);font-size:13px;font-weight:600}
.cmp-chip button{border:0;background:var(--panel);width:18px;height:18px;border-radius:50%;font-size:13px;line-height:1;cursor:pointer;color:var(--grey);display:flex;align-items:center;justify-content:center}
.cmp-bar-count{font-size:12.5px;color:var(--grey);font-weight:600;white-space:nowrap}
.cmp-bar .btn[disabled]{opacity:.45;cursor:default}
.cmp-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:20px}
@media(max-width:760px){.cmp-strip{grid-template-columns:1fr}}
.cmp-player{position:relative;background:var(--panel);border:1px solid var(--border);border-radius:var(--radius);padding:18px 20px 16px;min-width:0;border-top:4px solid var(--c,var(--border))}
.cmp-swatch{display:none}
.cmp-remove{position:absolute;top:10px;right:10px;width:26px;height:26px;border-radius:50%;border:0;background:var(--grey-fill);color:var(--grey);font-size:16px;cursor:pointer;line-height:1}
.cmp-name{font-weight:700;font-size:17px;cursor:pointer;padding-right:28px}
.cmp-name:hover{color:var(--c)}
.cmp-meta{font-size:12.5px;color:var(--grey);margin-top:2px}
.cmp-idx{display:flex;align-items:center;gap:10px;margin-top:14px}
.cmp-idx-num{font-family:var(--mono);font-size:28px;font-weight:700;letter-spacing:-.03em;color:var(--c)}
.cmp-add{border-top-color:var(--border);border-style:dashed;display:flex;flex-direction:column;justify-content:center;min-height:120px;padding:14px}
.cmp-add input{width:100%;padding:11px 14px;border-radius:12px;border:1.5px solid var(--border);background:var(--grey-fill);font:inherit;font-size:14px;color:var(--black)}
.cmp-add input:focus{outline:none;border-color:var(--black);background:var(--panel)}
.cmp-search-results{display:flex;flex-direction:column;gap:2px;margin-top:6px;max-height:220px;overflow:auto}
.cmp-search-results button{display:flex;flex-direction:column;align-items:flex-start;gap:1px;text-align:left;border:0;background:transparent;padding:7px 10px;border-radius:9px;cursor:pointer;font:inherit;color:var(--black)}
.cmp-search-results button:hover{background:var(--grey-fill)}
.cmp-controls{display:flex;flex-wrap:wrap;gap:12px 28px;align-items:flex-start;margin-bottom:20px}
.cmp-ctl-group{display:flex;flex-direction:column;gap:6px}
.cmp-ctl-label{font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.cmp-dot{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:6px;vertical-align:middle}
.cmp-card{background:var(--panel);border:1px solid var(--border);border-radius:var(--radius);padding:20px 24px;margin-bottom:16px;min-width:0}
.cmp-card-title{margin:0 0 12px;font-size:15px;font-weight:600}
.cmp-legend{display:flex;flex-wrap:wrap;gap:16px;font-size:13px;color:var(--grey);margin-top:12px}
.cmp-legend i{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:6px;vertical-align:middle}
.cmp-table-wrap{padding:0;overflow-x:auto}
.cmp-table{border-collapse:collapse;width:100%;font-size:14px;font-variant-numeric:tabular-nums}
.cmp-table th,.cmp-table td{padding:10px 16px;text-align:left;border-bottom:1px solid var(--border);vertical-align:middle}
.cmp-table thead th{font-size:13px;color:var(--grey);font-weight:600;padding-top:14px}
.cmp-table thead th:first-child{width:220px}
.cmp-table td{text-align:right;font-weight:600;width:1%;min-width:120px;white-space:nowrap}
.cmp-table tbody th{font-weight:500;color:var(--grey)}
.cmp-table tr.cmp-sec th{background:var(--grey-fill);font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--black);padding:8px 16px}
.cmp-th{display:inline-flex;align-items:center;gap:8px;color:var(--black);font-weight:700}
.cmp-th::before{content:"";width:10px;height:10px;border-radius:50%;background:var(--c)}
.cmp-table td.best{color:var(--g700);background:var(--success-bg)}
.cmp-table td.worst{color:var(--muted);font-weight:500}
.cmp-bars-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
@media(max-width:900px){.cmp-bars-grid{grid-template-columns:1fr}}
.cmp-bar-row{display:grid;grid-template-columns:150px 1fr;gap:12px;align-items:center;padding:8px 0;border-bottom:1px solid var(--border)}
.cmp-bar-row:last-child{border:0}
.cmp-bar-label{font-size:13px;font-weight:500;color:var(--grey)}
.cmp-bars{display:flex;flex-direction:column;gap:4px}
.cmp-hbar{display:flex;align-items:center;gap:8px;height:14px}
.cmp-hbar i{display:block;height:8px;border-radius:4px;transition:width .4s var(--ease);opacity:.9}
.cmp-hbar b{font-size:12px;font-family:var(--mono);min-width:26px;color:var(--grey)}
.cmp-hbar.best b{color:var(--g700)}
.cmp-hbar.worst i{opacity:.4}
.cmp-profile-btn.active{background:var(--success-bg);color:var(--g700)}
.cmp-profile-btn svg{width:16px;height:16px}

/* ── Ask (11 Oct 2026) ──────────────────────────────────────────────── */
.ask-card{background:var(--panel);border:1px solid var(--border);border-radius:var(--radius);padding:20px 24px;margin-bottom:16px;position:relative;isolation:isolate}
.ask-card::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;background-image:conic-gradient(from 90deg at 2px 2px,var(--s1) 25%,transparent 0);background-size:4px 4px;opacity:.16;-webkit-mask-image:linear-gradient(to top,#000 0,transparent 45%);mask-image:linear-gradient(to top,#000 0,transparent 45%)}
.ask-head{display:flex;gap:12px;align-items:flex-start;margin-bottom:14px}
.ask-ico{width:36px;height:36px;border-radius:10px;background:var(--success-bg);color:var(--g700);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.ask-ico svg{width:18px;height:18px}
.ask-title{font-size:16px;font-weight:600}
.ask-sub{font-size:13px;color:var(--grey);max-width:72ch}
.ask-form{display:flex;gap:10px}
.ask-form input{flex:1;min-width:0;padding:13px 16px;border-radius:12px;border:1.5px solid var(--border);background:var(--panel);font:inherit;font-size:15px;color:var(--black)}
.ask-form input:focus{outline:none;border-color:var(--black)}
.ask-form .btn[disabled]{opacity:.6}
.ask-status{margin-top:10px;font-size:13px;min-height:18px}
.ask-unclear{color:var(--amber-ink,#B45309);font-weight:600}
.ask-banner{display:flex;align-items:center;gap:10px;margin-top:10px;padding:10px 14px;border-radius:12px;background:var(--success-bg);font-size:13.5px;color:var(--black)}
.ask-banner .ask-ico{width:28px;height:28px;border-radius:8px;background:var(--panel)}
.ask-banner .ask-ico svg{width:14px;height:14px}
.ask-banner > div{flex:1;min-width:0}
@media(max-width:600px){.ask-form{flex-direction:column}}

/* ── Squads (11 Oct 2026) ─────────────────────────────────────────── */
.sq-chip{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:700;border-radius:999px;padding:4px 10px;background:var(--grey-fill);color:var(--grey);white-space:nowrap}
.sq-chip.v{background:rgba(124,92,230,.12);color:#7C5CE6}.sq-chip.a{background:rgba(217,119,6,.14);color:#B45309}.sq-chip.g{background:var(--success-bg);color:var(--g700)}.sq-chip.b{background:rgba(47,111,237,.12);color:#2F6FED}
.sq-crumb{font-size:13px;color:var(--grey);margin-bottom:8px}.sq-crumb b{color:var(--black);font-weight:600}.sq-crumb span{cursor:pointer}.sq-crumb span:hover{color:var(--accent)}
.sq-fgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
@media(max-width:1000px){.sq-fgrid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.sq-fgrid{grid-template-columns:1fr}}
.sq-fold{position:relative;cursor:pointer;transition:transform .15s var(--ease)}
.sq-fold:hover{transform:translateY(-2px)}
.sq-fold svg.shape{width:100%;height:auto;display:block;filter:drop-shadow(0 6px 16px rgba(22,22,29,.08))}
.sq-fold .in{position:absolute;inset:0;padding:22% 7% 7%;display:flex;flex-direction:column;color:#fff}
.sq-fold .nm{font-size:20px;font-weight:700;letter-spacing:-.01em;line-height:1.15}
.sq-fold .ds{font-size:12.5px;opacity:.85;margin-top:2px}
.sq-fold .stats{margin-top:auto;display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px}
.sq-fold .st{background:rgba(255,255,255,.16);border-radius:10px;padding:8px 10px}
.sq-fold .st b{display:block;font-size:20px;font-weight:700;line-height:1.1;font-variant-numeric:tabular-nums}
.sq-fold .st span{font-size:11px;opacity:.85}
.sq-fold .recent{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}
.sq-fold .recent i{font-style:normal;font-size:11px;font-weight:600;background:rgba(0,0,0,.18);padding:3px 8px;border-radius:999px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.sq-fold.new svg.shape{filter:none;opacity:.5}
.sq-fold.new .in{color:var(--grey);align-items:center;justify-content:center;font-weight:600}
.sq-sgrid{display:grid;grid-template-columns:1fr 1fr;gap:20px}
@media(max-width:860px){.sq-sgrid{grid-template-columns:1fr}}
.sq-card{background:var(--panel);border:1px solid var(--border);border-radius:var(--radius);padding:20px 22px;cursor:pointer;transition:box-shadow .15s var(--ease),transform .15s var(--ease);min-width:0;border-top:4px solid var(--c)}
.sq-card:hover{box-shadow:var(--shadow-lift);transform:translateY(-1px)}
.sq-card .top{display:flex;align-items:flex-start;gap:12px}
.sq-card h4{margin:0;font-size:18px;letter-spacing:-.01em;line-height:1.2;flex:1}
.sq-card .chips{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}
.sq-card .fill{height:6px;border-radius:3px;background:var(--grey-fill);margin-top:14px;overflow:hidden}.sq-card .fill i{display:block;height:100%;background:var(--c);border-radius:3px}
.sq-card .meta{display:grid;grid-template-columns:1fr 1fr;gap:6px 16px;margin-top:12px;font-size:12.5px;color:var(--grey)}
.sq-card .meta b{color:var(--black);font-weight:600}
.sq-card .foot{display:flex;justify-content:space-between;align-items:center;margin-top:14px;padding-top:12px;border-top:1px solid var(--border);font-size:12.5px;color:var(--grey)}
.sq-card .foot b{color:var(--black)}
.jrow{display:flex;align-items:center}.jrow .jer{width:22px;height:20px;margin-left:-6px}.jrow .jer:first-child{margin-left:0}
.sq-card.new{border:1px dashed var(--border-strong);display:flex;align-items:center;justify-content:center;color:var(--grey);font-weight:600;min-height:200px}
.sq-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end;position:relative;margin-left:auto}
#squadView_ .page-head-text{min-width:280px}
.sq-actions .btn{white-space:nowrap}
@media(max-width:1180px){.sq-count{display:none}}
@media(max-width:980px){.sq-actions{flex-wrap:wrap;justify-content:flex-end}}
.sq-count{font-family:var(--mono);font-size:13px;color:var(--grey);margin-right:4px}.sq-count b{color:var(--black)}
.sq-seg{min-height:40px;padding:4px}
.sq-select{appearance:none;width:auto!important;flex:0 0 auto;padding-right:28px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235f6772' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center;background-size:14px}
.sq-more{padding-inline:11px}.sq-more svg{width:18px;height:18px}
.sq-menu{display:none;position:absolute;right:0;top:calc(100% + 6px);background:var(--panel);border:1px solid var(--border);border-radius:12px;box-shadow:var(--shadow-lift);padding:6px;min-width:170px;z-index:20}
.sq-menu.open{display:block}
.sq-menu button{display:block;width:100%;text-align:left;border:0;background:none;padding:9px 10px;border-radius:8px;font:inherit;font-size:13.5px;font-weight:600;cursor:pointer;color:var(--black)}
.sq-menu button:hover{background:var(--grey-fill)}.sq-menu button.danger{color:var(--red)}
.sq-board{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:20px;align-items:start}
@media(max-width:1000px){.sq-board{grid-template-columns:1fr}}
.sq-main{min-width:0}
.sq-stage{display:grid;grid-template-columns:92px minmax(0,1fr);gap:12px;align-items:start}
.sq-pitchwrap.listing .sq-stage{grid-template-columns:minmax(0,1fr)}
.sq-stage .sq-bench{align-self:stretch}
@media(max-width:700px){.sq-stage{grid-template-columns:1fr}}
.sq-pitchwrap{background:var(--panel);border:1px solid var(--border);border-radius:var(--radius);padding:16px;position:relative}
.sq-pitch{position:relative;aspect-ratio:68/100;width:min(100%,500px);height:auto;margin:0 auto;border-radius:14px;overflow:visible;background:var(--grey-fill);border:1px solid var(--border)}
.sq-pitch > svg{border-radius:13px}
.sq-pitch > svg{position:absolute;inset:0;width:100%;height:100%}
.jer{width:46px;height:40px;display:block}
.sq-slot{position:absolute;width:76px;margin-left:-38px;margin-top:-30px;display:flex;flex-direction:column;align-items:center;gap:3px;transition:transform .12s var(--ease)}
.sq-slot .jer{filter:drop-shadow(0 3px 6px rgba(0,0,0,.18))}
.sq-slot.over{transform:scale(1.08)}
.sq-slot.vacant .jer{filter:none}
.sq-slot .lbl{font-size:11px;font-weight:700;color:var(--black);background:var(--panel);border:1px solid var(--border);padding:2px 8px;border-radius:999px;white-space:nowrap}
.sq-slot.vacant .lbl{background:transparent;border-color:transparent;color:var(--muted);letter-spacing:.06em;font-size:10px}
.sq-slot .ix{font-family:var(--mono);font-size:10px;font-weight:700;color:var(--grey)}
.sq-slot .pl{display:flex;flex-direction:column;align-items:center;gap:3px;cursor:grab;position:relative}
.sq-slot.vacant .pl{cursor:default}
.sq-bench{border:1px dashed var(--border-strong);border-radius:14px;padding:12px 8px;display:flex;flex-direction:column;gap:12px;align-items:center;background:var(--grey-fill);min-height:200px}
.sq-bench-empty{font-size:11px;color:var(--muted);text-align:center;line-height:1.3}
.sq-bench .lbl small{display:block;font-size:10px;font-weight:600;letter-spacing:0;text-transform:none;color:var(--grey)}
.sq-bench.over{border-color:var(--accent);background:var(--success-bg)}
.sq-bench .lbl{font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);width:100%;text-align:center;line-height:1.2}
.sq-bj{display:flex;flex-direction:column;align-items:center;gap:2px;width:70px;cursor:grab;font-size:11px;font-weight:600;text-align:center;position:relative}
.sq-bj.open{z-index:6}
.sq-bj .sq-hover{left:calc(100% + 10px);bottom:auto;top:50%;transform:translateY(-50%)}
.sq-bj .sq-hover::after{left:-6px;top:50%;margin:-6px 0 0;border:6px solid transparent;border-right-color:var(--panel)}
.sq-bj .jer{width:36px;height:32px}.sq-bj > span{white-space:nowrap;font-size:10.5px}
.sq-pool .hint{font-size:12px}
.sq-pool input{width:100%;padding:10px 12px;border-radius:10px;border:1.5px solid var(--border);background:var(--grey-fill);font:inherit;font-size:13.5px;margin-bottom:10px;color:var(--black)}
.sq-pool input:focus{outline:none;border-color:var(--black);background:var(--panel)}
.sq-poschips{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:10px}.sq-poschips .sq-chip{cursor:pointer}.sq-poschips .sq-chip.on{background:var(--black);color:#fff}
.sq-list{display:flex;flex-direction:column;gap:6px}
.sq-pcard{display:flex;align-items:center;gap:8px;background:var(--panel);border:1px solid var(--border);border-radius:12px;padding:8px 10px 8px 8px;cursor:grab;user-select:none}
.sq-pcard .jer{width:28px;height:24px;flex-shrink:0}.sq-pcard .n{font-weight:600;font-size:13px;line-height:1.15}.sq-pcard .m{font-size:11px;color:var(--grey)}
.sq-pcard .ix{margin-left:auto;font-family:var(--mono);font-size:12px;font-weight:700;color:var(--g700)}
.sq-pcard.used{opacity:.45;cursor:default}.sq-pcard.drag{opacity:.4}.sq-pcard.on{outline:2px solid var(--accent)}
.sq-lv{background:var(--panel);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden}
.sq-lv table{border-collapse:collapse;width:100%;font-size:14px}.sq-lv th,.sq-lv td{padding:10px 16px;border-bottom:1px solid var(--border);text-align:left}
.sq-lv th{font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);font-weight:700}.sq-lv tr.sec td{background:var(--grey-fill);font-weight:700;font-size:12px;letter-spacing:.04em;text-transform:uppercase}
.sq-lv td.mono{font-family:var(--mono);font-weight:700;color:var(--g700)}.sq-lv a{cursor:pointer;font-weight:600}.sq-lv a:hover{color:var(--accent)}
.sq-rail{display:flex;flex-direction:column;gap:14px;min-width:0}
.sq-rail.sq-pool{padding-top:4px}
.sq-rcard{background:var(--panel);border:1px solid var(--border);border-radius:var(--radius);min-width:0;overflow:hidden}
.sq-rhead{display:flex;align-items:center;justify-content:space-between;width:100%;border:0;background:none;padding:14px 18px;font:inherit;font-size:15px;font-weight:600;color:var(--black);cursor:pointer;text-align:left}
.sq-rhead svg{width:16px;height:16px;color:var(--grey);transition:transform .15s var(--ease)}
.sq-rcard.collapsed .sq-rhead svg{transform:rotate(-90deg)}
.sq-rbody{padding:0 18px 16px}
.sq-rcard.collapsed .sq-rbody{display:none}
.sq-use{display:flex;align-items:center;gap:10px;padding:9px 0;border-bottom:1px solid var(--border);font-size:13.5px;flex-wrap:wrap}.sq-use:last-child{border:0}
.sq-use b{min-width:90px}.sq-use .hint{margin-left:auto}
.sq-x{border:0;background:var(--grey-fill);width:22px;height:22px;border-radius:50%;cursor:pointer;color:var(--grey);line-height:1}
.sq-chat .sq-rbody{display:flex;flex-direction:column}
.sq-msgs{flex:1;overflow:auto;max-height:360px;min-height:120px;display:flex;flex-direction:column;gap:10px;padding:4px 2px}
.sq-day{display:flex;align-items:center;gap:10px;font-size:11px;color:var(--muted);margin:6px 0}.sq-day::before,.sq-day::after{content:"";flex:1;height:1px;background:var(--border)}
.sq-msg{display:flex;gap:10px;align-items:flex-end;max-width:85%}
.sq-msg.mine{align-self:flex-end;flex-direction:row-reverse}
.sq-msg .av{width:28px;height:28px;border-radius:50%;background:var(--grey-fill);font-size:10px;font-weight:700;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.sq-msg .bubble{background:var(--grey-fill);border-radius:14px 14px 14px 4px;padding:8px 12px;min-width:0}
.sq-msg.mine .bubble{background:var(--success-bg);border-radius:14px 14px 4px 14px}
.sq-msg .who{font-size:11.5px;font-weight:700;display:flex;align-items:center;gap:8px}.sq-msg .who span{color:var(--muted);font-weight:500}
.sq-msg .body{font-size:14px;white-space:pre-wrap;word-break:break-word;margin-top:2px}
.sq-del{border:0;background:none;color:var(--muted);cursor:pointer;font-size:14px;line-height:1;padding:0 2px;opacity:0}.sq-msg:hover .sq-del{opacity:1}
.sq-compose{display:flex;gap:8px;margin-top:12px}
.sq-compose input{flex:1;min-width:0;padding:11px 14px;border-radius:12px;border:1.5px solid var(--border);background:var(--grey-fill);font:inherit;font-size:14px;color:var(--black)}
.sq-compose input:focus{outline:none;border-color:var(--black);background:var(--panel)}
.sq-form{display:flex;flex-direction:column;gap:12px}
.sq-form label{display:flex;flex-direction:column;gap:5px;font-size:12.5px;font-weight:600;color:var(--grey);text-transform:none;letter-spacing:0;margin:0}
.sq-form input:not([type=radio]),.sq-form select{padding:11px 14px;border-radius:12px;border:1.5px solid var(--border);background-color:var(--grey-fill);font:inherit;font-size:14px;color:var(--black);width:100%}
.sq-form select{background-repeat:no-repeat;background-position:right 14px center;padding-right:38px}
.sq-form select:disabled{opacity:.6}
.sq-form input:focus,.sq-form select:focus{outline:none;border-color:var(--black);background-color:var(--panel)}
.sq-form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.sq-form-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:6px}
.sq-colours{display:flex;gap:8px;flex-direction:row!important}.sq-colours label{cursor:pointer}.sq-colours input{display:none}.sq-colours i{display:block;width:28px;height:28px;border-radius:50%;border:3px solid transparent}.sq-colours input:checked + i{border-color:var(--black)}
.sq-usekinds{display:flex;flex-direction:column;gap:8px}
.sq-usekind{display:grid!important;grid-template-columns:18px 1fr;grid-template-rows:auto auto;column-gap:10px;row-gap:2px;padding:12px 14px;border:1.5px solid var(--border);border-radius:12px;cursor:pointer;color:var(--black)!important;font-weight:500!important;text-transform:none!important;letter-spacing:0!important;text-align:left}
.sq-usekind input{grid-row:1/3;margin:3px 0 0;width:16px;height:16px}
.sq-usekind b{grid-column:2;font-size:14px;text-transform:none;letter-spacing:0}
.sq-usekind span{grid-column:2}
.sq-usekind:has(input:checked){border-color:var(--accent);background:var(--success-bg)}
.sq-usekind span{display:block;font-size:12.5px;color:var(--grey);font-weight:500}

.sq-swatch{padding-inline:10px}.sq-swatch i{display:block;width:18px;height:18px;border-radius:50%;border:2px solid var(--panel);box-shadow:0 0 0 1px var(--border-strong)}
.sq-colour-block p{margin:0 0 8px;font-size:12.5px;font-weight:700;color:var(--grey)}
.sq-picker-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:8px}.sq-picker-grid label{cursor:pointer;display:block}.sq-picker-grid input{display:none}.sq-picker-grid i{display:block;aspect-ratio:1;border-radius:50%;border:3px solid var(--panel);box-shadow:0 0 0 1px var(--border-strong)}.sq-picker-grid input:checked + i{box-shadow:0 0 0 2.5px var(--black)}
.sq-picker-custom{display:flex;align-items:center;justify-content:space-between;margin-top:10px;font-size:12.5px;font-weight:600;color:var(--grey);text-transform:none;letter-spacing:0}
.sq-picker-custom input{width:36px;height:28px;border:0;background:none;padding:0;cursor:pointer}

/* Squads round two: overlays over the pitch, hover cards, custom + match */
.sq-tools{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-bottom:14px;position:relative;z-index:3}
.sq-tool-wrap{position:relative}
.sq-tools-gap{flex:1}
.sq-tools .sq-seg{min-height:40px;padding:4px;margin-right:6px}
.sq-tools .sq-seg button{display:inline-flex;align-items:center;gap:6px}
.sq-tools .sq-seg svg{width:16px;height:16px}
.sq-tool{position:relative;display:inline-flex;align-items:center;gap:7px;height:40px;padding:0 12px;border-radius:12px;border:1px solid var(--border);background:var(--panel);font:inherit;font-size:13px;font-weight:600;color:var(--black);cursor:pointer;white-space:nowrap}
.sq-tool svg{width:18px;height:18px;color:var(--grey)}
.sq-tool:hover{background:var(--grey-fill)}
.sq-tool.on{background:var(--black);color:#fff;border-color:var(--black)}.sq-tool.on svg{color:#fff}
.sq-tool i{min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:var(--accent);color:#fff;font-style:normal;font-size:10.5px;font-weight:700;display:flex;align-items:center;justify-content:center;font-family:var(--mono)}
.sq-tool.on i{background:#fff;color:var(--black)}
.sq-stage{padding-right:0}
.sq-pitchwrap .sq-stage{margin-top:0}
.sq-pitchwrap:has(.sq-tools) .sq-stage{padding-top:0}
.sq-overlay{position:absolute;inset:16px;z-index:4;background:var(--panel);border:1px solid var(--border);border-radius:16px;display:flex;flex-direction:column;box-shadow:var(--shadow-lift);overflow:hidden}
.sq-overlay-head{display:flex;align-items:center;justify-content:space-between;padding:14px 18px;border-bottom:1px solid var(--border)}
.sq-overlay-head h3{margin:0;font-size:16px}
.sq-overlay-x{width:32px;height:32px;border-radius:50%;border:0;background:var(--grey-fill);color:var(--grey);font-size:18px;line-height:1;cursor:pointer}
.sq-overlay-body{padding:14px 18px;overflow:auto;flex:1;display:flex;flex-direction:column}
.sq-overlay.sq-chat .sq-msgs{max-height:none;flex:1}
.sq-overlay .sq-compose{margin-top:auto;padding-top:12px}
.sq-slot .pl{position:relative}
.sq-hover{display:none;position:absolute;left:50%;bottom:calc(100% + 6px);transform:translateX(-50%);width:236px;background:var(--panel);border:1px solid var(--border);border-radius:12px;box-shadow:var(--shadow-lift);padding:10px 12px;z-index:6;text-align:left;cursor:default}
.sq-hover::after{content:"";position:absolute;left:50%;top:100%;width:0;height:0;margin-left:-6px;border:6px solid transparent;border-top-color:var(--panel)}
.sq-hover b{display:block;font-size:13px}
.sq-hover > span{display:block;font-size:11.5px;color:var(--grey);margin-top:2px}
.sq-hover-idx{display:flex!important;align-items:center;gap:8px;margin-top:6px!important;font-size:11.5px;font-weight:600;color:var(--black)!important}
.sq-hover-idx i{font-style:normal;font-family:var(--mono);font-weight:700;font-size:16px;color:var(--g700)}
.sq-hover-acts{display:flex;gap:6px;margin-top:10px}
.sq-hover-acts button{flex:1;border:1px solid var(--border);background:var(--panel);border-radius:8px;padding:6px 8px;font:inherit;font-size:12px;font-weight:600;cursor:pointer;color:var(--black);white-space:nowrap;display:inline-flex;align-items:center;justify-content:center;gap:5px}
.sq-hover-acts button i{font-style:normal;font-weight:700}
.sq-hover-acts button:hover{background:var(--grey-fill)}
.sq-hover-acts button.danger{color:var(--red)}
.pl.open > .sq-hover{display:block}
.sq-slot.low .sq-hover{bottom:auto;top:calc(100% + 6px)}
.sq-slot.low .sq-hover::after{top:auto;bottom:100%;border-top-color:transparent;border-bottom-color:var(--panel)}
.sq-slot:has(.pl.open){z-index:7}
.sq-pitch.custom.over{box-shadow:inset 0 0 0 2px var(--accent)}
.sq-custom-hint{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);font-size:12px;font-weight:600;color:var(--muted);background:var(--panel);padding:6px 12px;border-radius:999px;border:1px dashed var(--border-strong);pointer-events:none;white-space:nowrap}
.sq-ghost{position:fixed;top:-200px;left:-200px;width:46px;height:40px;pointer-events:none}
.sq-ghost .jer{width:46px;height:40px}
.sq-pitchwrap.match .sq-pitch{background:linear-gradient(to bottom,rgba(0,0,0,.025) 0 50%,transparent 50%),var(--grey-fill)}
.sq-side-tag{position:absolute;left:8px;display:flex;align-items:center;gap:6px;font-size:11px;font-weight:700;color:var(--grey);background:var(--panel);border:1px solid var(--border);border-radius:999px;padding:3px 10px 3px 6px;z-index:2}
.sq-side-tag .jer{width:18px;height:16px}
.sq-side-tag.top{top:8px}.sq-side-tag.bottom{bottom:8px}
.sq-opp{position:absolute;inset:0}
.sq-slot.opp.vacant .lbl{color:var(--muted)}
.sq-form textarea{padding:11px 14px;border-radius:12px;border:1.5px solid var(--border);background-color:var(--grey-fill);font:inherit;font-size:14px;color:var(--black);width:100%;resize:vertical}
.sq-form textarea:focus{outline:none;border-color:var(--black);background-color:var(--panel)}

/* ── Assignments calendar (11 Oct 2026) ───────────────────────────── */
.cal-head{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:4px 0 16px}
.cal-nav{display:flex;gap:6px}
.cal-btn{height:36px;min-width:36px;padding:0 10px;border:1px solid var(--border);border-radius:10px;background:var(--panel);font:inherit;font-size:16px;cursor:pointer;color:var(--black)}
.cal-btn.cal-today{font-size:13px;font-weight:600}
.cal-label{margin:0;font-size:20px;letter-spacing:-.01em;flex:1}
.cal-seg{min-height:40px;padding:4px}
.cal-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:20px;align-items:start}
.cal-layout.with-panel{grid-template-columns:minmax(0,1fr) 380px}
@media(max-width:1100px){.cal-layout.with-panel{grid-template-columns:1fr}}
.cal-grid{background:var(--panel);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;min-width:0}
.cal-dow{display:grid;grid-template-columns:repeat(7,1fr);border-bottom:1px solid var(--border)}
.cal-dow span{padding:10px 12px;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.cal-cells{display:grid;grid-template-columns:repeat(7,1fr)}
.cal-day{min-height:112px;border-right:1px solid var(--border);border-bottom:1px solid var(--border);padding:8px;display:flex;flex-direction:column;gap:4px;min-width:0}
.cal-day:nth-child(7n){border-right:0}
.cal-grid.week .cal-day{min-height:360px}
.cal-day.other{background:var(--grey-fill);color:var(--muted)}
.cal-day.other .cal-num{color:var(--muted)}
.cal-day-head{display:flex;justify-content:space-between;align-items:center}
.cal-num{font-size:13px;font-weight:600}
.cal-day.today .cal-num{display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:24px;padding:0 6px;border-radius:999px;background:var(--accent);color:#fff}
.cal-add{width:22px;height:22px;border-radius:7px;border:1px solid var(--border);background:var(--panel);color:var(--grey);font-size:15px;line-height:1;cursor:pointer;opacity:0;transition:opacity .12s}
.cal-day:hover .cal-add{opacity:1}
.cal-day-body{display:flex;flex-direction:column;gap:4px}
.cal-fx{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;align-items:center;column-gap:6px;row-gap:1px;width:100%;text-align:left;border:1px solid var(--border);background:var(--panel);border-radius:8px;padding:5px 8px;font:inherit;font-size:12px;cursor:pointer;color:var(--black)}
.cal-fx-time{grid-column:1;grid-row:1}.cal-fx-dot{grid-column:2;grid-row:1}.cal-fx-teams{grid-column:1/3;grid-row:2}
.cal-fx:hover{background:var(--grey-fill)}
.cal-fx.on{border-color:var(--black);box-shadow:0 0 0 1px var(--black)}
.cal-fx-time{font-family:var(--mono);font-size:11px;color:var(--grey)}
.cal-fx-time:empty{display:none}
.cal-fx-teams{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cal-fx-dot{width:8px;height:8px;border-radius:50%;background:var(--s3)}
.cal-fx.assigned .cal-fx-dot{background:var(--s4)}.cal-fx.done .cal-fx-dot{background:var(--s1)}.cal-fx.past{opacity:.6}.cal-fx.past .cal-fx-dot{background:var(--border-strong)}
.cal-panel{background:var(--panel);border:1px solid var(--border);border-radius:var(--radius);position:sticky;top:16px;max-height:calc(100vh - 32px);display:flex;flex-direction:column;overflow:hidden}
.cal-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:16px 18px;border-bottom:1px solid var(--border)}
.cal-panel-head h3{margin:0;font-size:17px;line-height:1.2}
.cal-panel-body{padding:14px 18px 18px;overflow:auto}
.cal-lbl{margin:0 0 8px;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.cal-chips{display:flex;flex-wrap:wrap;gap:6px}
.cal-chip{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--border);background:var(--panel);border-radius:999px;padding:5px 10px;font:inherit;font-size:12.5px;font-weight:600;color:var(--grey);cursor:pointer}
.cal-chip.on{background:var(--success-bg);border-color:transparent;color:var(--g700)}
.cal-chip[disabled]{cursor:default}
.cal-chip button{border:0;background:var(--panel);width:16px;height:16px;border-radius:50%;font-size:12px;line-height:1;cursor:pointer;color:var(--grey);display:flex;align-items:center;justify-content:center;padding:0}
.cal-search{position:relative;margin-top:10px}
.cal-search input{width:100%;padding:10px 12px;border-radius:10px;border:1.5px solid var(--border);background:var(--grey-fill);font:inherit;font-size:13.5px;color:var(--black)}
.cal-search input:focus{outline:none;border-color:var(--black);background:var(--panel)}
.cal-results{display:flex;flex-direction:column;gap:2px;margin-top:4px}
.cal-results button{display:flex;flex-direction:column;align-items:flex-start;gap:1px;text-align:left;border:0;background:transparent;padding:7px 10px;border-radius:9px;cursor:pointer;font:inherit;color:var(--black)}
.cal-results button:hover{background:var(--grey-fill)}
.cal-scout{border:1px solid var(--border);border-radius:12px;padding:10px 12px;margin-bottom:8px}
.cal-scout-top{display:flex;align-items:center;gap:10px}
.cal-scout-top > div{flex:1;min-width:0}.cal-scout-top b{display:block;font-size:14px}.cal-scout-top span{font-size:12px;color:var(--grey)}
.cal-av{width:30px;height:30px;border-radius:50%;background:var(--grey-fill);font-size:11px;font-weight:700;display:flex;align-items:center;justify-content:center;flex-shrink:0;color:var(--black)}
.cal-focus{margin-top:8px}
.cal-nearby{display:flex;flex-direction:column;gap:6px}
.cal-near{display:grid;grid-template-columns:auto 1fr auto;grid-template-rows:auto auto;column-gap:10px;align-items:center;text-align:left;border:1px solid var(--border);background:var(--panel);border-radius:12px;padding:8px 10px;font:inherit;cursor:pointer;color:var(--black)}
.cal-near:hover{background:var(--grey-fill)}
.cal-near .cal-av{grid-column:1;grid-row:1/3}.cal-near .n{grid-column:2;grid-row:1;font-weight:600;font-size:13.5px}.cal-near .m{grid-column:2;grid-row:2;font-size:12px;color:var(--grey)}
.cal-plus{grid-column:3;grid-row:1/3;width:26px;height:26px;border-radius:50%;background:var(--success-bg);color:var(--g700);display:flex;align-items:center;justify-content:center;font-weight:700}
.cal-panel-foot{margin-top:16px;padding-top:12px;border-top:1px solid var(--border)}

/* Ask: info tooltip, history, per-player reasons; compare exit */
.ask-input-wrap{flex:1;min-width:0;position:relative;display:flex;align-items:center}
.ask-input-wrap input{padding-right:84px}
.ask-info,.ask-hist-btn{position:absolute;top:50%;transform:translateY(-50%);width:30px;height:30px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:var(--muted);cursor:pointer;border:0;background:none;padding:0}
.ask-info{right:44px}.ask-hist-btn{right:10px}
.ask-info svg,.ask-hist-btn svg{width:18px;height:18px}
.ask-info:hover,.ask-hist-btn:hover{color:var(--black);background:var(--grey-fill)}
.ask-tip{display:none;position:absolute;right:0;top:calc(100% + 8px);width:320px;background:var(--panel);border:1px solid var(--border);border-radius:14px;box-shadow:var(--shadow-lift);padding:10px;z-index:30;cursor:default}
.ask-info:hover .ask-tip,.ask-info:focus-within .ask-tip,.ask-tip:hover{display:block}
.ask-tip p,.ask-hist-pop p{margin:4px 10px 8px;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.ask-tip button{display:block;width:100%;text-align:left;border:0;background:none;padding:8px 10px;border-radius:9px;font:inherit;font-size:13.5px;color:var(--black);cursor:pointer}
.ask-tip button:hover{background:var(--grey-fill)}
.ask-hist-pop{display:none;position:absolute;right:0;top:calc(100% + 8px);width:360px;max-width:90vw;background:var(--panel);border:1px solid var(--border);border-radius:14px;box-shadow:var(--shadow-lift);padding:10px;z-index:30;max-height:360px;overflow:auto}
.ask-hist-pop.open{display:block}
.ask-hist{display:flex;align-items:center;gap:4px}
.ask-hist-q{flex:1;min-width:0;text-align:left;border:0;background:none;padding:8px 10px;border-radius:9px;font:inherit;cursor:pointer;color:var(--black)}
.ask-hist-q:hover{background:var(--grey-fill)}
.ask-hist-q b{display:block;font-size:13.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ask-hist-q span{display:block;font-size:12px;color:var(--grey);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ask-hist-x{border:0;background:none;color:var(--muted);font-size:16px;cursor:pointer;width:26px;height:26px;border-radius:50%}
.ask-hist-x:hover{background:var(--grey-fill);color:var(--black)}
.ask-why{display:flex;align-items:flex-start;gap:5px;margin-top:5px;font-size:12px;color:var(--g700);font-weight:500;line-height:1.35;white-space:normal}
.ask-why svg{width:12px;height:12px;flex-shrink:0;margin-top:2px}
.cmp-exit{width:36px;height:36px;border-radius:50%;border:1px solid var(--border);background:var(--panel);color:var(--grey);font-size:18px;line-height:1;cursor:pointer;flex-shrink:0}
.cmp-exit:hover{background:var(--grey-fill);color:var(--black)}
@media(max-width:600px){.ask-tip,.ask-hist-pop{right:auto;left:0}}

.sq-pop{display:none;position:absolute;left:0;top:calc(100% + 6px);background:var(--panel);border:1px solid var(--border);border-radius:12px;box-shadow:var(--shadow-lift);padding:6px;min-width:150px;z-index:25}
.sq-pop.open{display:block}
.sq-pop p{margin:4px 10px 4px;font-size:10.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.sq-pop button{display:block;width:100%;text-align:left;border:0;background:none;padding:8px 10px;border-radius:8px;font:inherit;font-size:13.5px;font-weight:600;cursor:pointer;color:var(--black)}
.sq-pop button:hover{background:var(--grey-fill)}.sq-pop button.on{background:var(--success-bg);color:var(--g700)}
.sq-use-cta{display:flex;align-items:center;gap:12px;margin-bottom:14px;flex-wrap:wrap}

/* compact colours modal */
.modal.narrow{max-width:400px}
.sq-colours-form{gap:16px}
.sq-swatches{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.sq-swatches label{cursor:pointer;display:block;margin:0}
.sq-swatches input{display:none}
.sq-swatches i{display:block;width:28px;height:28px;border-radius:50%;border:3px solid var(--panel);box-shadow:0 0 0 1px var(--border-strong)}
.sq-swatches input:checked + i{box-shadow:0 0 0 2.5px var(--black)}
.sq-swatch-custom{display:inline-flex!important;align-items:center;gap:8px;padding:3px 10px 3px 3px;border-radius:999px;border:1px dashed var(--border-strong);font-size:12.5px;font-weight:600;color:var(--grey)}
.sq-swatch-custom input{display:none}
.sq-swatch-custom i{box-shadow:none;border:2px solid var(--panel)}
.sq-swatch-custom:hover{background:var(--grey-fill)}
.sq-crumb{margin-bottom:2px}

/* 15-a-side match mode: two pitches side by side */
.sq-stage.match{display:flex;gap:12px;align-items:flex-start}
.sq-side{flex:1;min-width:0;display:flex;flex-direction:column;gap:12px}
.sq-side .sq-pitch{width:100%;max-width:none}
.sq-stage.match .sq-bench{flex-direction:row;flex-wrap:wrap;justify-content:flex-start;align-items:center;min-height:0;padding:10px 12px}
.sq-stage.match .sq-bench .lbl{width:auto;text-align:left;margin-right:6px}
.sq-stage.match .sq-bench .lbl br{display:none}.sq-stage.match .sq-bench .lbl small{display:inline;margin-left:4px}
.sq-benches{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.sq-bench.opp .lbl{color:var(--grey)}
@media(max-width:900px){.sq-stage.match{flex-direction:column}.sq-benches{grid-template-columns:1fr}}

/* Dashboard: plain section header; pipeline as one stacked bar + list */
.dash-sec.plain .dash-sh{margin-bottom:12px}
.dash-sec.plain .dash-sh .section-label{font-size:14px;font-weight:600}
.dash-stack{display:flex;height:24px;border-radius:6px;overflow:hidden;background:var(--grey-fill);margin-top:24px;gap:2px}
.dash-stack i{display:block;height:100%}
.dash-status{padding:12px 0}
.dash-status .n{font-weight:600;font-size:14px}
.dash-status .end b{font-variant-numeric:tabular-nums}
.dash-status .end b{min-width:36px;text-align:right}
/* "View group" tooltip on a status row — a small pill that appears above the
   count on hover, replacing the old "Click a status…" footer line. */
.dash-status{position:relative}
.dash-status::after{content:attr(data-tip);position:absolute;right:0;top:50%;transform:translateY(-50%);background:var(--black);color:#fff;font-size:11px;font-weight:600;padding:4px 8px;border-radius:6px;white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .12s var(--ease)}
.dash-status:hover::after{opacity:1}
.dash-dot{width:10px;height:10px;border-radius:50%;flex-shrink:0}

/* Share-of-game stops on the report form, and the index confidence mark. */
.pct-group{display:flex;gap:6px;flex-wrap:wrap}
.pct-group label{position:relative;cursor:pointer}
.pct-group input{position:absolute;opacity:0;width:0;height:0}
.pct-group span{display:inline-block;padding:9px 14px;border-radius:999px;border:1px solid var(--border);font-size:13px;font-weight:600;background:var(--white);color:var(--grey)}
.pct-group input:checked+span{background:var(--black);color:#fff;border-color:var(--black)}
.pct-group input:focus-visible+span{outline:2px solid var(--accent);outline-offset:2px}
.conf{display:inline-flex;align-items:center;gap:3px;vertical-align:middle}
.conf i{width:6px;height:6px;border-radius:50%;background:var(--border-strong);display:inline-block}
.conf-high i{background:var(--g700)}
.conf-medium i:nth-child(-n+2){background:var(--s3)}
.conf-low i:first-child{background:var(--s5)}
.conf>span{font-size:11px;font-weight:700;margin-left:4px;color:var(--grey)}
.index-notice{margin-bottom:16px;background:var(--grey-fill);border-color:var(--border);color:var(--black)}

/* Index card foot and the index modal */
.gauge-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;margin-top:6px;padding-top:12px;border-top:1px solid var(--border)}
.gauge-foot .dt-go{width:32px;height:32px}
.idx-modal-top{display:grid;grid-template-columns:auto 1fr;gap:24px;align-items:start;margin-top:12px}
.idx-modal-top .gauge-wrap{margin:0}
.idx-modal-sum p{margin:8px 0 0;font-size:13.5px;color:var(--grey);max-width:60ch}
.idx-modal-conf{display:flex;align-items:center;gap:6px;font-size:13px}
.idx-table{width:100%;border-collapse:collapse;font-size:13px}
.idx-table th{text-align:left;font-size:11px;letter-spacing:.05em;text-transform:uppercase;color:var(--grey);font-weight:700;padding:8px 10px;border-bottom:1px solid var(--border)}
.idx-table td{padding:9px 10px;border-bottom:1px solid var(--border);vertical-align:top}
.idx-table td.num{font-family:var(--mono);font-variant-numeric:tabular-nums;white-space:nowrap}
.idx-table tr.first td{border-top:1px solid var(--border-strong)}
.idx-table tbody tr:first-child td{border-top:0}
@media(max-width:640px){.idx-modal-top{grid-template-columns:1fr}}

/* Month row above the Reports grid */
.month-row{display:flex;gap:6px;overflow-x:auto;padding-bottom:6px;margin-bottom:12px;scrollbar-width:thin}
.month-pill{flex-shrink:0;height:36px;border-radius:999px;border:1px solid var(--border);background:var(--white);color:var(--grey);font:inherit;font-size:13px;font-weight:600;padding:0 12px;cursor:pointer;display:inline-flex;align-items:center;gap:8px;white-space:nowrap}
.month-pill span{font-family:var(--mono);font-size:11px;font-weight:700;color:var(--muted)}
.month-pill:hover{border-color:var(--border-strong);color:var(--black)}
.month-pill.active{background:#7C5CE6;border-color:#7C5CE6;color:#fff}.month-pill.active span{color:rgba(255,255,255,.75)}
.month-pill.empty{color:var(--muted);border-style:dashed}
.month-row{align-items:center}
.year-switch{flex-shrink:0;display:inline-flex;align-items:center;gap:2px;background:var(--grey-fill);border-radius:999px;padding:3px;margin-right:6px}
.year-switch span{font-size:13px;font-weight:700;padding:0 6px;font-variant-numeric:tabular-nums}
.year-switch .ts-arrow:disabled{opacity:.35;cursor:default}

/* Dashboard skeleton */
.skel{display:block;background:var(--grey-fill);border-radius:6px;position:relative;overflow:hidden}
.skel::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent,rgba(255,255,255,.6),transparent);transform:translateX(-100%);animation:skel-shimmer 1.4s infinite}
@keyframes skel-shimmer{to{transform:translateX(100%)}}
@media(prefers-reduced-motion:reduce){.skel::after{animation:none}}
.skel-tile{cursor:default;gap:12px;min-height:200px}
.skel-tile:hover{box-shadow:var(--shadow-card);transform:none}
.skel-head{display:flex;align-items:center;gap:12px}
.skel-head>span:last-child{flex:1;display:flex;flex-direction:column;gap:6px}
.skel-ico{width:36px;height:36px;border-radius:10px;flex-shrink:0}
.skel-line{height:12px}.skel-line.thin{height:9px}.skel-line.big{height:28px}
.skel-block{height:84px;width:100%;margin-top:12px;border-radius:10px}.skel-block.tall{height:220px}
.skel-foot{margin-top:auto;display:flex;align-items:center;justify-content:space-between}
.skel-pill{width:56px;height:28px;border-radius:999px}
.skel-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--border)}
.skel-row>span:first-child{flex:1;display:flex;flex-direction:column;gap:6px}
.skel-row:last-child{border-bottom:0}

/* Attribute bars, grouped (player page card and report scorecard) */
.attr-card{grid-column:1/-1}
.attr-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}
@media(max-width:760px){.attr-grid{grid-template-columns:1fr}}
.report-attrs{margin-top:24px}
.attr-group{display:flex;flex-direction:column;gap:12px}
.attr-group-head{display:flex;align-items:center;gap:8px;font-size:14px}
.attr-group-dot{width:10px;height:10px;border-radius:50%;background:var(--c)}
.attr-group-mean{margin-left:auto;font-family:var(--mono);font-weight:700;color:var(--c)}
.attr-row{display:flex;flex-direction:column;gap:6px}
.attr-row-top{display:flex;justify-content:space-between;align-items:baseline;gap:12px;font-size:13px}
.attr-label{font-weight:600}
.attr-score{font-family:var(--mono);font-weight:700;font-variant-numeric:tabular-nums}
.attr-row.none .attr-score,.attr-row.none .attr-label{color:var(--muted)}
.attr-track{height:10px;border-radius:999px;background:var(--grey-fill);overflow:hidden;position:relative}
.attr-fill{height:100%;border-radius:999px;background:var(--c);transition:width .6s cubic-bezier(.16,1,.3,1)}
.attr-comment{font-size:12.5px;color:var(--grey);line-height:1.4}
.report-attrs .attr-track{background:rgba(22,22,29,.06)}   /* the scorecard panel is grey, so the track needs its own tint */

/* Reports page: skeleton cards while the next page loads; curve hit targets */
.skel-card{cursor:default;gap:24px;min-height:150px;box-shadow:none}
.skel-card .skel-row-top{display:flex;justify-content:space-between;align-items:center;gap:12px}
.skel-card .skel-row-top>span:first-child{flex:1;display:flex;flex-direction:column;gap:6px}
.skel-card .skel-row-bot{display:flex;justify-content:space-between;gap:12px;margin-top:auto}
.curve-hit{cursor:default}

/* Reports tile trend: stretched SVG line, HTML dots that stay round */
.trend-box{position:relative;width:100%;height:110px}
.trend-box svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.trend-dot{position:absolute;width:8px;height:8px;border-radius:50%;background:var(--panel);border:2px solid var(--c);opacity:.5;transform:translate(-50%,-50%);cursor:default}
.trend-dot.cur{opacity:1;background:var(--c)}
.trend-dot::after{content:"";position:absolute;inset:-8px}
.trend-dot:hover{transform:translate(-50%,-50%) scale(1.3)}

.dash-tile-foot{margin-top:auto;padding-top:12px}
.dash-tile-foot .btn{height:40px;display:inline-flex;align-items:center;gap:6px}

.status-ico{width:28px;height:28px;border-radius:8px;flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;color:#fff}
.status-ico svg{width:16px;height:16px}

/* Top row: four tiles, 12px apart */
.dash-bento.dash-top{gap:36px 24px}
.dash-bento .c12{grid-column:span 12}
.area-box{position:relative}
.area-dot{position:absolute;width:10px;height:10px;border-radius:50%;background:var(--c);border:2px solid var(--panel);transform:translate(-50%,-50%);opacity:0;cursor:default;transition:opacity .12s}
.area-dot::after{content:"";position:absolute;inset:-10px}
.area-dot:hover{opacity:1}
.attn-bar{width:100%;height:24px;border-radius:6px;background:rgba(232,96,76,.14);overflow:hidden}
.attn-bar i{display:block;height:100%;background:var(--s5);border-radius:6px}

.rc-pill.rc-day{display:inline-flex;flex-direction:column;align-items:center;line-height:1;font-family:inherit;font-weight:700;padding:8px 12px;background:var(--grey-fill);color:var(--black)}
.rc-pill.rc-day small{font-size:9px;letter-spacing:.06em;text-transform:uppercase;color:var(--grey);margin-top:3px}
.rc-scout.needs{color:#B45309;background:rgba(217,119,6,.12);border-radius:999px;padding:3px 9px;font-weight:700;font-size:12px}

/* Upcoming assignments: next seven days */
.asg-days{display:flex;gap:6px;width:100%}
.asg-day{flex:1;height:52px;border-radius:8px;background:var(--grey-fill);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;cursor:default}
.asg-day.on{background:rgba(217,119,6,.16)}
.asg-day b{font-size:15px;font-weight:700;color:#B45309;line-height:1;min-height:15px}
.asg-day span{font-size:10px;font-weight:700;color:var(--grey)}
.dash-bento.dash-top+.dash-bento.dash-top{margin-top:36px}   /* 36px between groups of cards */

/* Players page: by-band card */
.stat-bands .l{margin-bottom:12px}
.band-stack{display:flex;height:12px;border-radius:6px;overflow:hidden;gap:2px;background:var(--grey-fill)}
.band-stack i{display:block;height:100%}
.band-legend{display:flex;flex-wrap:wrap;gap:6px 14px;margin-top:12px}
.band-legend button{border:0;background:none;padding:0;font:inherit;font-size:12.5px;color:var(--grey);display:inline-flex;align-items:center;gap:6px;cursor:pointer;font-weight:600}
.band-legend button i{width:8px;height:8px;border-radius:50%;display:inline-block}
.band-legend button b{color:var(--black);font-family:var(--mono)}
.band-legend button.active{color:var(--black);text-decoration:underline;text-underline-offset:3px}

/* Status icon beside the name in the player tables */
.name-cell{display:flex;align-items:center;gap:10px;min-width:0}
.status-ico.sm{width:22px;height:22px;border-radius:6px}
.status-ico.sm svg{width:13px;height:13px}

/* Awaiting a decision cards */
.at-decide{height:auto;min-height:0;gap:8px;cursor:default}
.at-head{display:flex;align-items:center;gap:10px;cursor:pointer}
.at-head .who{line-height:1.2}
.at-why{font-size:12px;color:var(--grey);line-height:1.35}
.at-act{margin-top:auto;position:relative;display:inline-flex;align-items:center;justify-content:space-between;gap:6px;height:36px;border:1px solid var(--border);border-radius:999px;padding:0 12px;font-size:13px;font-weight:600;cursor:pointer;background:var(--white)}
.at-act select{appearance:none;-webkit-appearance:none;border:0;background:none;background-image:none !important;   /* the theme rules on `select` outrank this one */ padding:0;font:inherit;font-weight:600;color:var(--black);cursor:pointer;flex:1;outline:none}
.at-act svg{width:14px;height:14px;color:var(--grey);flex-shrink:0}
.at-grid .at-decide{width:auto}

/* Period tabs on the dashboard */
.dash-range-tabs{min-height:44px;padding:4px;border-radius:999px}
.dash-range-tabs button{height:36px;border:0;background:transparent;border-radius:999px;padding:0 16px;font:inherit;font-size:14px;font-weight:600;color:var(--grey);cursor:pointer}
.dash-range-tabs button.active{background:var(--panel);color:var(--black);box-shadow:inset 0 0 0 1px var(--border-strong)}
/* Highlights cards: the × */
.at-decide{position:relative}
.at-x{position:absolute;top:10px;right:10px;width:26px;height:26px;border-radius:50%;border:1px solid var(--border);background:var(--panel);color:var(--grey);font-size:16px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center}
.at-x:hover{background:var(--grey-fill);color:var(--black)}
.hl-hidden{margin-top:24px}
.hl-hidden summary{cursor:pointer;font-size:13px;color:var(--grey);font-weight:600}
.hl-hidden .at-grid{opacity:.7}

.dash-group-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.dash-group-head .section-label{margin:0}
.dash-cog{width:28px;height:28px;display:inline-flex;align-items:center;justify-content:center;color:var(--muted);cursor:default}
.dash-cog svg{width:18px;height:18px}

.profile-action.primary{background:var(--accent);color:#fff;border-color:var(--accent)}
.profile-action.primary svg{width:16px;height:16px}
@media(max-width:1100px){.dash-bento .c3.kpi{grid-column:span 6}}

.asg-graphic{flex:0 0 auto;min-height:0}
.asg-rows{margin-top:12px}
.asg-rows .dash-row{padding:10px 0}
.asg-rows .dash-row .n{font-size:13px}

.dt-foot2.twin{justify-content:flex-start;gap:36px}
.dt-foot2.twin b{color:var(--black)}
.rc-day-sm{width:44px;height:44px;flex-shrink:0;display:flex;flex-direction:column;align-items:center;justify-content:center;border-radius:10px;background:var(--grey-fill);line-height:1}
.rc-day-sm span{font-size:15px;font-weight:700}
.rc-day-sm small{font-size:9px;letter-spacing:.06em;text-transform:uppercase;color:var(--grey);margin-top:2px}

/* On the move, nothing moved */
.move-empty{width:100%;display:flex;flex-direction:column;align-items:center;gap:10px;font-size:12.5px;color:var(--grey);text-align:center}
.move-empty-line{display:block;width:100%;height:0;border-top:2px dashed var(--border-strong)}
.m-scout{display:inline-flex;align-items:center;gap:4px}
.m-scout svg{width:13px;height:13px;color:var(--grey)}

/* Error page: a link the reader can't open, or whose target is gone */
.err-page{max-width:480px;margin:64px auto;padding:36px 24px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:12px}
.err-page .err-ico{width:48px;height:48px;border-radius:14px;background:var(--surface-2,#f1f2f4);color:var(--grey);display:grid;place-items:center;margin-bottom:6px}
.err-page .err-ico svg{width:24px;height:24px}
.err-page .page-title{margin:0}
.err-page .hint{margin:0;max-width:36ch}
.err-page #errActions{margin-top:12px}

/* Attributes card: controls, cohort row, average markers, columns view */
.attr-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap}
.attr-head .section-label{margin-bottom:4px}
.attr-head .hint{margin:0}
.attr-controls{display:flex;gap:12px;flex-wrap:wrap}
.attr-cmp{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:16px 0 24px}
.attr-cmp-key{display:inline-flex;align-items:center;gap:8px;font-size:13px;color:var(--grey)}
.attr-avg-mark{position:absolute;top:-3px;bottom:-3px;width:2px;margin-left:-1px;border-radius:1px;background:#5f6772}
.attr-avg-mark.static{position:static;display:inline-block;width:2px;height:14px;margin:0}
.attr-avg-n{font-family:var(--mono);font-weight:500;font-size:11px;color:var(--grey);margin-left:8px}
.attr-grid.columns{gap:24px}
.attr-group.cols{gap:8px}
.attr-cols{width:100%;height:150px;display:block}
.cohort-switcher .chart-switcher-btn{padding:0 16px;height:32px;font-size:13px}
.chart-avg-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;width:100%;margin-top:4px}
.chart-pill.avg{display:inline-flex;align-items:center;gap:8px}
.chart-pill.avg .avg-dash{width:18px;border-top:2px dashed #8a929c}
.chart-pill.avg.active{background:var(--grey-fill);border-color:transparent;color:var(--black)}
/* Players table: status as a grey line icon right after the name */
.status-ico.inline{display:inline-flex;width:auto;height:auto;border-radius:0;background:none;color:var(--grey);vertical-align:-2px}
.status-ico.inline svg{width:14px;height:14px}

/* Fixture page: scouting plan (player → one scout), picker, map */
.plan-list{display:grid;gap:10px;width:100%}
.plan-row{background:var(--grey-fill);border-radius:12px;padding:12px 14px}
.plan-main{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.plan-player{display:flex;flex-direction:column;min-width:0;flex:1 1 160px}
.plan-player b{font-size:14px}
.plan-player .hint,.plan-scout .hint{font-size:12.5px}
.plan-scout{display:flex;align-items:center;gap:10px;flex:1 1 200px;min-width:0}
.plan-scout div{display:flex;flex-direction:column;min-width:0}
.plan-scout b{font-size:13.5px}
.plan-scout.none{flex:1 1 120px}
.plan-actions{display:flex;align-items:center;gap:8px;margin-left:auto}
.btn.sm{height:34px;padding:0 14px;font-size:13px}
.plan-picker{margin-top:12px;padding-top:12px;border-top:1px solid var(--grey-light);display:flex;flex-direction:column;gap:10px}
.plan-picker .search-input-wrap{position:relative}
.plan-picker .fx-player-list{margin-top:0}
.plan-picker .fx-player-row{background:var(--white)}
.fx-map{height:240px;border-radius:12px;overflow:hidden;margin-top:16px;background:var(--grey-fill)}
.map-pin span{display:block;border-radius:50%;border:2px solid #fff;box-shadow:0 1px 4px rgba(0,0,0,.35)}
.fx-map.plain .leaflet-tile{filter:saturate(.25) contrast(.92) brightness(1.06)}
.leaflet-popup-content{font:13px/1.4 inherit;font-family:inherit}
/* Place picker (scout home town) */
.place-wrap{position:relative}
.place-wrap .search-input-wrap{position:relative}
.place-wrap .search-icon{width:16px;height:16px}
.place-chosen{margin-top:6px;min-height:16px}
/* Assignments page: Recently submitted rows */
.submitted-rows{display:grid;gap:8px}
.submitted-rows .dash-row .badge{margin:0 10px 0 auto}
.scout-line .scout-who{display:block;font-size:12px;font-weight:400;color:var(--grey)}
/* Scout picker modal */
.pick-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,3fr);gap:24px;margin-top:16px}
.modal.xwide{max-width:1180px}
@media(max-width:760px){.pick-grid{grid-template-columns:1fr}}
.pick-fixture{margin:0}
.pick-player{display:flex;align-items:center;gap:12px;padding:14px;background:var(--grey-fill);border-radius:12px}
.pick-player > div{display:flex;flex-direction:column;gap:2px;min-width:0}
.pick-player b{font-size:15px}
.pick-right .search-input-wrap{position:relative;margin-bottom:16px}
.pick-list{margin-top:0;max-height:52vh;overflow:auto}
.pick-tools{display:flex;gap:12px;align-items:center;margin-bottom:12px}
.pick-tools .search-input-wrap{flex:1;margin:0}
.pick-map{height:min(62vh,620px);margin-top:0}
.map-pin.scout span{display:block;width:26px;height:26px;filter:drop-shadow(0 1px 2px rgba(0,0,0,.3))}
.map-pin.scout svg{width:26px;height:26px;display:block}
.map-pin.venue svg{display:block;filter:drop-shadow(0 1px 3px rgba(0,0,0,.35))}
.pick-key{display:flex;flex-direction:column;gap:8px;font-size:13px;color:var(--grey)}
.pick-key span{display:inline-flex;align-items:center;gap:10px}
.pk{display:inline-block;width:14px;height:14px;border-radius:50%;flex-shrink:0}
.pk.venue{background:#fff;border:1.5px solid #16161d;border-radius:50% 50% 50% 0;transform:rotate(-45deg)}
.pk.scout{background:#2F6FED}
.pk.busy{background:#E8604C}
.fx-player-row.busy{opacity:.75}
/* Scouting plan cards */
.plan-card{background:var(--grey-fill);border-radius:12px;padding:14px}
.plan-card-head{display:flex;align-items:center;gap:12px}
.plan-card-head > div{display:flex;flex-direction:column;min-width:0;flex:1}
.plan-card-head b{font-size:14.5px}
.plan-card-head .hint{font-size:12.5px}
.plan-card.none .plan-card-head b{color:var(--grey)}
.plan-players{display:flex;flex-direction:column;gap:6px;margin-top:12px;padding-top:12px;border-top:1px solid rgba(0,0,0,.06)}
.plan-pl{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:13.5px;color:var(--grey)}
.plan-pl > span:first-child{min-width:0}
.plan-link{color:var(--black);font-weight:600;cursor:pointer}
.plan-link:hover{text-decoration:underline}
.icon-btn{width:30px;height:30px;border-radius:8px;border:0;background:var(--white);color:var(--grey);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;padding:0}
.icon-btn svg{width:15px;height:15px}
.icon-btn:hover{color:var(--black)}
/* Fixture page: details + roster left, assignment cards right */
.fixture-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.roster-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.team-slider{display:inline-flex;align-items:center;gap:4px;background:var(--grey-fill);border-radius:999px;padding:3px}
.ts-arrow{width:30px;height:30px;border:0;border-radius:50%;background:transparent;color:var(--grey);font-size:20px;line-height:1;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}
.ts-arrow:hover{background:var(--white);color:var(--black)}
.ts-label{min-width:120px;text-align:center;font-size:13px;font-weight:600;padding:0 6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:220px}
.asg-list{display:flex;flex-direction:column;gap:12px}
.asg-card{background:var(--white);border:1px solid var(--grey-light);border-radius:12px;padding:14px}
.asg-head{display:flex;align-items:center;gap:10px}
.asg-head b{font-size:14.5px}
.asg-ico{width:26px;height:26px;color:#2F6FED;display:inline-flex;flex-shrink:0}
.asg-ico svg{width:22px;height:22px}
.asg-actions{margin-left:auto;display:inline-flex;gap:6px}
.asg-card .icon-btn{background:var(--grey-fill)}
.asg-players{display:flex;flex-direction:column;gap:8px;margin-top:12px}
.asg-pl{background:var(--grey-fill);border-radius:10px;padding:10px 12px;font-size:13.5px;color:var(--grey)}
.asg-pl .plan-link{color:var(--black)}
.fx-player-row.replacing{outline:2px solid var(--accent)}
.ed-roster{max-height:40vh;overflow:auto}
.pick-tools{justify-content:flex-end}
.asg-also{display:block;font-size:12px;color:#2F6FED;margin-top:2px}
.asg-also-inline{color:#2F6FED}
.fx-player-row .actions .btn.sm{height:30px;padding:0 10px;font-size:12.5px}
.fx-summary{display:flex;align-items:flex-start;gap:14px;text-align:left}
.fx-summary .rc-date{width:52px;height:52px}
.fx-summary-text{display:flex;flex-direction:column;gap:4px;min-width:0}
.fx-summary .teams{font-size:16px;font-weight:700;line-height:1.25}
.fx-summary .fx-date{font-size:13.5px;font-weight:600}
.fx-summary .fx-meta{display:flex;flex-wrap:wrap;gap:4px 14px;font-size:13px;color:var(--grey)}
.fx-summary .fx-meta span{display:inline-flex;align-items:center;gap:5px}
.fx-summary .fx-meta svg{width:14px;height:14px}
.fx-summary .fx-comp{font-size:12.5px;color:var(--grey)}
.pick-fixture{background:var(--grey-fill);border-radius:12px;padding:14px}
.idx-inline{font-family:var(--mono);font-weight:700;color:var(--grey);font-size:.92em}
.fx-summary .fx-meta{justify-content:flex-start}
.with-scout{display:block;color:#2F6FED;font-weight:600;font-size:12.5px;margin-top:3px}
.asg-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.asg-confirm{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.asg-unsaved{font-size:12.5px;font-weight:600;color:var(--ember)}
.status-tip{position:fixed;z-index:60;transform:translate(-50%,-100%);background:var(--black);color:#fff;font-size:12px;font-weight:600;padding:5px 9px;border-radius:8px;white-space:nowrap;pointer-events:none;box-shadow:var(--shadow-lift)}
.status-tip::after{content:"";position:absolute;left:50%;bottom:-4px;width:8px;height:8px;background:var(--black);transform:translateX(-50%) rotate(45deg)}
#modalBody .ask-card{margin:0;box-shadow:none;border:0;padding:0}
.th-nowrap{white-space:nowrap;display:inline-flex;align-items:center}
/* Player page top: bento of fact cards, 6px apart */
.profile-bento{display:flex;flex-wrap:wrap;align-items:stretch;gap:6px;margin-bottom:24px}
.pb-index{position:relative;background:var(--white);border:1px solid var(--border);border-radius:var(--radius);padding:14px 16px;display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-width:150px}
.pb-index .gauge-half{width:110px}
.pb-eyebrow{font-size:12px;font-weight:700;color:var(--grey)}
.pb-index .gauge-wrap{gap:0;align-self:center}
.pb-index .gauge-card{border:0;padding:0;background:transparent;min-width:0}
.pb-band{display:inline-flex}
.pb-band .band-chip{font-size:12px;padding:4px 10px}
.pb-conf{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:12px}
.pb-go{position:absolute;top:10px;right:10px;width:28px;height:28px}
.pb-card{background:var(--grey-fill);border-radius:var(--radius);padding:14px 16px;display:flex;flex-direction:column;gap:1px;min-width:108px;justify-content:flex-end;flex:1 1 auto}
.pb-ico{width:36px;height:36px;border-radius:11px;background:var(--white);display:inline-flex;align-items:center;justify-content:center;margin-bottom:10px;color:var(--black)}
.pb-ico svg{width:18px;height:18px}
.pb-label{font-size:12.5px;color:var(--grey)}
.pb-value{font-size:16px;font-weight:700;letter-spacing:-.01em;line-height:1.2}
.pb-sub{font-size:13px;color:var(--black);margin-top:1px}
@media(max-width:760px){.pb-index,.pb-card{flex:1 1 calc(50% - 6px);min-width:0}}
.attr-key-sw{display:inline-block;width:12px;height:12px;border-radius:3px;margin:0 2px 0 8px;vertical-align:-1px}
.attr-key-sw.player{background:#139A7A;margin-left:0}
.attr-key-sw.avg{background:#c9cdd3}
