:root {
  --black: #000;
  --panel: #0b0b0b;
  --panel-2: #111;
  --line: #1f1f1f;
  --line-2: #2c2c2c;
  --silver: #c8c8c8;
  --muted: #7d7d7d;
  --white: #fff;
  --good: #6fdc8c;
  --warn: #f0b44c;
  --bad: #ff6b6b;
  --display: "Archivo Black", "Arial Black", sans-serif;
  --body: "Montserrat", system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; }
body { background: var(--black); color: var(--white); font-family: var(--body); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; line-height: 1.05; }

.topbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; padding: 0 24px; background: rgba(0,0,0,.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--display); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; }
.brand svg { height: 26px; }
#nav { display: flex; align-items: center; gap: 20px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
#nav a { color: var(--silver); text-decoration: none; }
#nav .demo-lane { color: var(--white); }
#nav a:hover, #nav a.on { color: var(--white); }
#nav button { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }

main { max-width: 1180px; margin: 0 auto; padding: 32px 24px 96px; }
.loading { color: var(--muted); padding: 80px 0; text-align: center; letter-spacing: 0.2em; text-transform: uppercase; font-size: 11px; }
.eyebrow { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 12px; }

/* Buttons and forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--white); background: none; font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; text-decoration: none; transition: background .15s, color .15s; }
.btn:hover { background: var(--white); color: var(--black); }
.btn.solid { background: var(--white); color: var(--black); }
.btn.solid:hover { background: var(--silver); border-color: var(--silver); }
.btn.ghost { border-color: var(--line-2); color: var(--silver); }
.btn.sm { min-height: 32px; padding: 0 14px; font-size: 10px; }
.btn.good { border-color: var(--good); color: var(--good); }
.btn.good:hover { background: var(--good); color: var(--black); }
.btn.bad { border-color: var(--line-2); color: var(--muted); }
.btn.bad:hover { border-color: var(--bad); background: none; color: var(--bad); }
.btn:disabled { opacity: .4; cursor: default; }

.form { display: grid; gap: 14px; }
.form.cols { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); align-items: end; }
label.f { display: grid; gap: 6px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.f input, .f select, .f textarea { width: 100%; min-height: 42px; padding: 10px 12px; background: var(--black); border: 1px solid var(--line-2); border-radius: 8px; font-size: 14px; letter-spacing: 0; text-transform: none; color: var(--white); }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: var(--silver); }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks label { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 12px; cursor: pointer; }
.checks input { accent-color: var(--white); }
.err { color: var(--bad); font-size: 13px; }

/* Panels */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.panel + .panel { margin-top: 16px; }
.panel-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.panel-h h2 { font-size: 15px; letter-spacing: 0.06em; }
.grid2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; align-items: start; }
.stack > * + * { margin-top: 16px; }

/* Auth */
.auth { max-width: 440px; margin: 48px auto; }
.auth h1 { font-size: 30px; margin: 10px 0 8px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line-2); border-radius: 999px; padding: 4px; margin: 24px 0; }
.seg button { border: 0; background: none; padding: 10px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); cursor: pointer; }
.seg button.on { background: var(--white); color: var(--black); }
.role-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.role-pick label { border: 1px solid var(--line-2); border-radius: 12px; padding: 16px; cursor: pointer; display: grid; gap: 4px; }
.role-pick input { display: none; }
.role-pick.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 600px) { .role-pick.three { grid-template-columns: 1fr; } }
.role-pick b { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 13px; }
.role-pick span { font-size: 12px; color: var(--muted); }
.role-pick label:has(input:checked) { border-color: var(--white); background: var(--panel-2); }

/* Athlete header */
.ath-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 8px 0 28px; }
.ath-head h1 { font-size: clamp(28px, 4vw, 44px); margin: 8px 0 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 11px; letter-spacing: 0.06em; color: var(--silver); }
.chip.v { border-color: rgba(111,220,140,.45); color: var(--good); }
.chip.rr { border-color: var(--white); color: var(--white); background: var(--panel-2); }
.chip.warn { border-color: rgba(240,180,76,.5); color: var(--warn); }
.ath-switch { display: flex; gap: 8px; align-items: center; }

/* The three pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; margin-bottom: 20px; }
.pillars button { position: relative; padding: 18px 20px; background: var(--black); border: 0; border-right: 1px solid var(--line-2); text-align: left; cursor: pointer; }
.pillars button:last-child { border-right: 0; }
.pillars b { display: block; font-family: var(--display); font-weight: 400; font-size: 18px; letter-spacing: 0.04em; color: var(--muted); }
.pillars span { font-size: 12px; color: var(--muted); }
.pillars button.on { background: var(--white); }
.pillars button.on b, .pillars button.on span { color: var(--black); }

/* Metric cards */
.metrics { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.mcard { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: grid; gap: 10px; }
.mcard .top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.mcard .lab { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.mcard .val { font-family: var(--display); font-size: 34px; line-height: 1; }
.mcard .val small { font-family: var(--body); font-size: 13px; color: var(--muted); margin-left: 4px; }
.mcard .delta { font-size: 12px; }
.up { color: var(--good); }
.down { color: var(--bad); }
.mcard .target { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; }
.bar { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--white); border-radius: 99px; }
.mcard.empty .val { color: var(--line-2); }
.spark { width: 100%; height: 40px; display: block; }
.verified-by { font-size: 11px; color: var(--muted); }

/* Lists and tables */
.list { border-top: 1px solid var(--line); }
.li { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.li .main { min-width: 0; }
.li .t { font-weight: 600; }
.li .s { font-size: 12px; color: var(--muted); }
.li .acts { display: flex; gap: 8px; flex-shrink: 0; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); font-weight: 500; padding: 0 12px 12px 0; border-bottom: 1px solid var(--line); }
.table td { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr.click { cursor: pointer; }
.table tr.click:hover td { background: var(--panel-2); }
.table .name { font-weight: 600; }

.kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.kpi b { display: block; font-family: var(--display); font-size: 30px; font-weight: 400; margin: 8px 0 2px; }
.kpi.hl { border-color: var(--white); }

.code { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px dashed var(--line-2); border-radius: 12px; }
.code b { font-family: var(--display); font-size: 26px; letter-spacing: 0.18em; font-weight: 400; }

/* Develop */
.progress { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.progress .bar { flex: 1; height: 8px; }
.progress b { font-family: var(--display); font-weight: 400; font-size: 22px; }
.ms { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ms input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--white); flex-shrink: 0; }
.ms.done .t { color: var(--muted); text-decoration: line-through; }
.ms .cat { margin-left: auto; }

.soon { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.soon div { border: 1px dashed var(--line-2); border-radius: 12px; padding: 16px; }
.soon b { display: block; font-size: 13px; margin-bottom: 4px; }

.empty-state { text-align: center; padding: 40px 20px; color: var(--muted); }

#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--white); color: var(--black); padding: 12px 20px; border-radius: 999px; font-size: 13px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
#toast.show { opacity: 1; transform: translateX(-50%); }

/* Public profile */
.pub { max-width: 820px; margin: 0 auto; }
.pub .hero { padding: 40px 0 28px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.pub .hero h1 { font-size: clamp(32px, 6vw, 56px); margin: 10px 0 12px; }

@media (max-width: 900px) {
  .grid2 { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .pillars b { font-size: 14px; }
  .pillars span { display: none; }
  #nav { gap: 14px; }
  main { padding: 24px 16px 80px; }
  .table .hide-sm { display: none; }
}

/* Login entrance */
.entry { display: grid; grid-template-columns: 1.1fr 1fr; min-height: calc(100svh - 60px); margin: -32px -24px -96px; }
.entry-art { position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding: 56px; overflow: hidden; border-right: 1px solid var(--line);
  background: radial-gradient(120% 80% at 80% 10%, #1a1a1a 0%, #000 60%); }
.entry-art svg { position: absolute; right: -4%; top: 8%; height: 78%; opacity: .16; }
.entry-art h1 { position: relative; font-size: clamp(36px, 5vw, 72px); margin: 14px 0 28px; max-width: 9ch; }
.entry-art .out { color: transparent; -webkit-text-stroke: 1.5px var(--silver); }
/* Track / Develop / Recruit: a quiet line of text, not buttons. */
.entry-pillars { position: relative; margin: 0; font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.entry-pillars i { font-style: normal; margin: 0 6px; opacity: .6; }
.entry .auth { align-self: center; width: 100%; max-width: 440px; margin: 0 auto; padding: 48px 24px; }
.entry .seg { margin-top: 0; }

/* Resources: eight ways to develop */
.res-head { padding: 8px 0 24px; }
.res-head h1 { font-size: clamp(26px, 3.6vw, 40px); margin-top: 8px; }
.inside { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.tile { position: relative; aspect-ratio: 1 / 1; padding: 22px; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--black); color: var(--white); text-align: left; cursor: pointer; display: flex; flex-direction: column; justify-content: flex-end; transition: background .2s, color .2s; }
.tile:nth-child(4n) { border-right: 0; }
.tile:nth-last-child(-n+4) { border-bottom: 0; }
.tile .n { position: absolute; top: 20px; left: 22px; font-size: 11px; letter-spacing: 0.2em; color: var(--muted); }
.tile .go { position: absolute; top: 14px; right: 20px; font-size: 22px; color: var(--muted); transition: transform .2s; }
.tile h3 { font-size: clamp(15px, 1.6vw, 20px); margin-bottom: 8px; }
.tile .sub { font-size: 12px; color: var(--muted); }
.tile:hover, .tile:focus-visible { background: var(--white); color: var(--black); outline: none; }
.tile:hover .go, .tile:focus-visible .go { transform: rotate(90deg); color: var(--black); }
.tile:hover .n, .tile:hover .sub { color: #444; }
.res-advisor { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 16px; }
.res-advisor h2 { font-size: 16px; margin-bottom: 4px; }
dialog.sheet { margin: auto; width: min(540px, calc(100vw - 32px)); padding: 44px 40px 40px; background: var(--black); color: var(--white); border: 1px solid var(--line-2); border-radius: 14px; }
dialog.sheet::backdrop { background: rgba(0,0,0,.72); backdrop-filter: blur(8px); }
dialog.sheet .x { position: absolute; top: 12px; right: 16px; background: none; border: 0; color: var(--silver); font-size: 28px; cursor: pointer; }
dialog.sheet .n { font-size: 11px; letter-spacing: 0.24em; color: var(--muted); }
dialog.sheet h2 { font-size: clamp(24px, 4vw, 34px); margin: 14px 0 12px; }
dialog.sheet .lead { color: var(--silver); }
dialog.sheet ul { list-style: none; padding: 0; margin: 22px 0 28px; }
dialog.sheet li { padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--silver); }

@media (max-width: 900px) {
  .entry { grid-template-columns: 1fr; margin: -24px -16px -80px; }
  .entry-art { min-height: 300px; padding: 32px 20px; border-right: 0; border-bottom: 1px solid var(--line); }
  .inside { grid-template-columns: repeat(2, 1fr); }
  .tile { aspect-ratio: 4 / 3; }
  .tile:nth-child(4n) { border-right: 1px solid var(--line); }
  .tile:nth-child(2n) { border-right: 0; }
  .tile:nth-last-child(-n+4) { border-bottom: 1px solid var(--line); }
  .tile:nth-last-child(-n+2) { border-bottom: 0; }
  .res-advisor { flex-direction: column; align-items: flex-start; }
}

/* Coach testing */
.ctabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin: -8px 0 20px; }
.ctabs a { padding: 12px 16px; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.ctabs a.on, .ctabs a:hover { color: var(--white); border-bottom-color: var(--white); }
.tests { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 16px; }
.test { flex: 0 0 auto; min-width: 128px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 12px; text-decoration: none; display: grid; gap: 2px; }
.test b { font-size: 13px; }
.test span { font-size: 11px; color: var(--muted); }
.test.on { background: var(--white); color: var(--black); border-color: var(--white); }
.test.on span { color: #555; }
.f.inline { display: flex; align-items: center; gap: 10px; }
.f.inline input { width: auto; min-height: 36px; }
.entry-table input.t-val { width: 110px; min-height: 38px; padding: 8px 10px; background: var(--black); border: 1px solid var(--line-2); border-radius: 8px; color: var(--white); font-size: 15px; font-weight: 600; }
.entry-table input.t-val:focus { outline: none; border-color: var(--white); }
.entry-table input[type=checkbox], .table th input[type=checkbox] { accent-color: var(--white); width: 16px; height: 16px; }
.entry-foot { display: flex; align-items: center; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.entry-foot .note { flex: 1; min-width: 200px; min-height: 40px; padding: 8px 14px; background: var(--black); border: 1px solid var(--line-2); border-radius: 999px; color: var(--white); }
.field { display: grid; grid-template-columns: 280px 1fr; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--panel); }
.field-top { grid-column: 1 / -1; display: flex; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.field-list { border-right: 1px solid var(--line); max-height: 520px; overflow-y: auto; }
.field-row { display: flex; gap: 10px; align-items: center; width: 100%; padding: 14px 18px; background: none; border: 0; border-bottom: 1px solid var(--line); color: var(--silver); text-align: left; cursor: pointer; }
.field-row .up { margin-left: auto; }
.field-row.on { background: var(--white); color: var(--black); }
.field-main { padding: 40px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.field-main h2 { font-size: clamp(26px, 4vw, 44px); }
.field-input { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.field-input input { width: 220px; padding: 18px; font-family: var(--display); font-size: 48px; text-align: center; background: var(--black); color: var(--white); border: 1px solid var(--line-2); border-radius: 14px; }
.field-input input:focus { outline: none; border-color: var(--white); }
.field-input span { color: var(--muted); font-size: 18px; }
.field-chg { min-height: 24px; font-size: 16px; }
.field-btns { display: flex; gap: 12px; margin-top: 20px; }
.field-btns .btn { min-height: 52px; padding: 0 28px; }
.drop { display: grid; place-items: center; gap: 6px; padding: 48px 20px; margin-top: 16px; border: 1px dashed var(--line-2); border-radius: 14px; cursor: pointer; text-align: center; }
.drop:hover, .drop.over { border-color: var(--white); background: var(--panel-2); }
.file-chip { display: flex; gap: 12px; align-items: center; padding: 14px 16px; margin: 16px 0; border: 1px solid var(--line-2); border-radius: 12px; }
.sub-h { font-size: 12px; letter-spacing: 0.16em; color: var(--muted); margin: 20px 0 12px; font-family: var(--body); font-weight: 600; }
.pill-select { min-height: 36px; padding: 6px 14px; background: var(--black); color: var(--white); border: 1px solid var(--line-2); border-radius: 999px; }
.hist-grid { display: grid; grid-template-columns: 1fr 220px; gap: 16px; align-items: center; }
.hchart { width: 100%; height: auto; display: block; }
.hchart text { fill: var(--muted); font-size: 11px; font-family: var(--body); }
.best { display: grid; gap: 4px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; }
.best b { font-family: var(--display); font-weight: 400; font-size: 40px; line-height: 1; }
.best b small { font-family: var(--body); font-size: 14px; color: var(--muted); margin-left: 4px; }
@media (max-width: 900px) {
  .field { grid-template-columns: 1fr; }
  .field-list { max-height: 180px; border-right: 0; border-bottom: 1px solid var(--line); }
  .field-main { padding: 24px 16px; }
  .field-input input { width: 170px; font-size: 38px; }
  .hist-grid { grid-template-columns: 1fr; }
}

/* ===== Coach workspace (coach side only) ===== */
body.coach-mode { background: #f3f4f6; }
body.coach-mode .topbar { display: none; }
body.coach-mode main { max-width: none; padding: 0; margin: 0; }
.cw { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100svh; }
.cw-side { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; gap: 6px; padding: 18px 14px; background: #0b0f17; color: #c9ced8; overflow-y: auto; }
.cw-logo { display: flex; align-items: center; gap: 10px; padding: 4px 8px 14px; color: #fff; text-decoration: none; font-family: var(--display); font-size: 15px; letter-spacing: 0.04em; }
.cw-logo svg { height: 26px; }
.cw-fac { margin: 0 0 12px; padding: 10px 12px; border: 1px solid #1f2633; border-radius: 10px; font-size: 13px; font-weight: 600; color: #fff; }
.cw-fac select { width: 100%; background: transparent; color: #fff; border: 0; font: inherit; }
.cw-fac select option { color: #000; }
.cw-side nav { display: grid; gap: 2px; }
.cw-item, .cw-group { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 9px; font-size: 14px; color: #c9ced8; text-decoration: none; }
.cw-item:hover { background: #141a26; color: #fff; }
.cw-item.on { background: #1d2a44; color: #fff; }
.cw-item.off { opacity: .45; cursor: default; }
.cw-item em { margin-left: auto; font-style: normal; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; }
.cw-group { color: #fff; margin-top: 4px; }
.cw-sub { display: block; padding: 7px 12px 7px 46px; border-radius: 9px; font-size: 13px; color: #9aa3b2; text-decoration: none; }
.cw-sub:hover { color: #fff; }
.cw-sub.on { color: #fff; background: #141a26; }
.cw .ic { width: 18px; height: 18px; flex-shrink: 0; }
.cw-me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 14px 8px 4px; border-top: 1px solid #1f2633; }
.cw-me div { display: grid; font-size: 13px; color: #fff; }
.cw-me div span { font-size: 12px; color: #8b93a3; }
.cw-me button { margin-left: auto; background: none; border: 0; color: #8b93a3; font-size: 16px; cursor: pointer; }
.cw-av, .av, .pf-photo { display: inline-grid; place-items: center; flex-shrink: 0; border-radius: 50%; background: #e5e7eb; color: #111; font-weight: 700; font-size: 12px; }
.cw-av { width: 36px; height: 36px; background: #1d2a44; color: #fff; }
.av { width: 30px; height: 30px; font-size: 11px; margin-right: 10px; }

/* Light tokens for everything inside the workspace, so existing panels re-skin too */
.cw-main { --black: #ffffff; --panel: #ffffff; --panel-2: #f6f7f9; --line: #e8eaee; --line-2: #d9dde3; --silver: #374151; --muted: #6b7280; --white: #0b0f17; --accent: #2563eb;
  color: #0b0f17; background: #f3f4f6; padding: 22px 26px 60px; min-width: 0; }
.cw-main .panel, .cw-main .kpi, .cw-main .mcard { box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.cw-main .btn.solid { background: var(--accent); border-color: var(--accent); color: #fff; }
.cw-main .btn.solid:hover { background: #1d4ed8; border-color: #1d4ed8; }
.cw-main .btn { border-radius: 10px; letter-spacing: 0.02em; text-transform: none; font-size: 13px; }
.cw-main .btn.ghost { border-color: var(--line-2); color: #111827; background: #fff; }
.cw-main .btn.ghost:hover { background: #f3f4f6; }
.cw-main .btn .ic { width: 15px; height: 15px; }
.cw-main .up { color: #059669; }
.cw-main .down { color: #dc2626; }
.cw-main .chip.warn { color: #b45309; border-color: #fcd34d; background: #fffbeb; }
.cw-main .kpi.hl { border-color: var(--accent); }
.cw-main .bar i { background: var(--accent); }

.ws-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 18px; }
.ws-title { display: flex; align-items: center; gap: 10px; }
.ws-title h1 { font-family: var(--body); font-weight: 700; text-transform: none; font-size: 26px; }
.ws-title select { border: 1px solid var(--line-2); border-radius: 8px; padding: 4px 8px; background: #fff; }
.ws-tabs { display: flex; gap: 28px; margin-top: 12px; border-bottom: 1px solid var(--line); }
.ws-tabs a, .ws-tabs span { padding: 0 0 10px; font-size: 14px; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; }
.ws-tabs span { opacity: .5; cursor: default; }
.ws-tabs a.on { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.ws-tabs.small { gap: 22px; margin: 14px 0 16px; }
.ws-tabs.small a { font-size: 13px; }
.ws-tabs .right { margin-left: auto; color: var(--accent); }
.ws-actions { display: flex; gap: 10px; }
.ws-search { width: 240px; min-height: 40px; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; }
.ws-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.ws-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; align-items: start; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; box-shadow: 0 1px 2px rgba(16,24,40,.04); min-width: 0; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card h2 { font-family: var(--body); font-weight: 700; text-transform: none; font-size: 20px; }
.card h3 { font-family: var(--body); font-weight: 700; text-transform: none; font-size: 16px; }
.card-f { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.card-f .grow { flex: 1; }
.link { background: none; border: 0; color: var(--accent); cursor: pointer; font: inherit; padding: 0 0 0 10px; }
.date-pill { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 10px; }
.date-pill input { border: 0; font: inherit; background: none; color: inherit; }
.tiles2 { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 14px; }
.tile2 { flex: 0 0 auto; width: 104px; min-height: 86px; padding: 12px 8px; display: grid; justify-items: center; align-content: center; gap: 4px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; color: #111827; text-align: center; text-decoration: none; cursor: pointer; }
.tile2 b { font-size: 12px; font-weight: 600; line-height: 1.2; }
.tile2 span { font-size: 11px; color: var(--muted); }
.tile2 .ic { width: 22px; height: 22px; }
.tile2.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.tile2.on span { color: #dbeafe; }
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; font-size: 11px; font-weight: 500; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl tr.chk td, .tbl tr.sel td { background: #eff6ff; }
.tbl input[type=checkbox] { accent-color: var(--accent); width: 15px; height: 15px; }
.tbl .t-val { width: 84px; padding: 7px 10px; border: 1px solid var(--line-2); border-radius: 8px; font-size: 14px; font-weight: 600; background: #fff; color: #111827; }
.tbl .t-val:focus { outline: 2px solid var(--accent); border-color: transparent; }
.who { display: inline-flex; align-items: center; background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: #111827; cursor: pointer; }
.who:hover { color: var(--accent); }
.okdot { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #059669; color: #fff; }
.okdot .ic { width: 11px; height: 11px; }

.pf-head { display: flex; gap: 18px; align-items: flex-start; }
.pf-photo { width: 104px; height: 104px; border-radius: 12px; font-size: 32px; background: linear-gradient(135deg, #1f2937, #4b5563); color: #fff; }
.pf-id { flex: 1; min-width: 0; }
.pf-id h2 { display: flex; align-items: center; gap: 8px; font-size: 24px; }
.pf-id p { font-size: 13px; margin-top: 4px; white-space: pre; }
.ic.star { width: 20px; height: 20px; color: #f59e0b; }
.pf-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; border-radius: 8px; font-size: 12px; font-weight: 600; }
.pill .ic { width: 13px; height: 13px; }
.pill.green { background: #ecfdf5; color: #047857; }
.pill.amber { background: #fffbeb; color: #b45309; }
.pill.blue { background: #eff6ff; color: #1d4ed8; }
.pill.purple { background: #f5f3ff; color: #6d28d9; }
.pf-grid { display: grid; grid-template-columns: minmax(0, 1fr) 160px; gap: 12px; }
.pf-chart { border: 1px solid var(--line); border-radius: 12px; padding: 14px; min-width: 0; }
.pf-side { display: grid; gap: 12px; align-content: start; }
.mini { display: grid; gap: 4px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.mini b { font-size: 30px; font-weight: 700; line-height: 1.1; }
.mini b small { font-size: 13px; color: var(--muted); margin-left: 3px; font-weight: 500; }
.delta-pill { justify-self: start; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 600; }
.delta-pill.good { background: #ecfdf5; color: #047857; }
.delta-pill.bad { background: #fef2f2; color: #b91c1c; }
.ranges { display: flex; gap: 4px; }
.ranges button { padding: 4px 10px; border: 1px solid var(--line-2); background: #fff; border-radius: 6px; font-size: 11px; cursor: pointer; }
.ranges button.on { background: #0b0f17; color: #fff; border-color: #0b0f17; }
.pill-select { min-height: 32px; padding: 4px 10px; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; color: #111827; }
.lchart { width: 100%; height: auto; display: block; }
.lchart .grid { stroke: #eef0f3; }
.lchart text { fill: #6b7280; font-size: 10px; font-family: var(--body); }
.lchart .line { fill: none; stroke: var(--accent); stroke-width: 2; }
.lchart .dot { fill: #fff; stroke: var(--accent); stroke-width: 2; }

.card.dark { --line: #222838; --line-2: #2c3446; --muted: #8b93a3; background: #0b0f17; color: #fff; border-color: #0b0f17; }
.card.dark h2 .muted { font-weight: 400; }
.fd-bar { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; }
.fd-bar b { font-size: 16px; }
.toggle { margin-left: auto; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.toggle input { display: none; }
.toggle i { width: 34px; height: 20px; border-radius: 99px; background: #374151; position: relative; transition: background .2s; }
.toggle i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .2s; }
.toggle input:checked + i { background: var(--accent); }
.toggle input:checked + i::after { transform: translateX(14px); }
.fd-list { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.fd-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto 96px auto 22px; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); cursor: pointer; }
.fd-row:last-child { border-bottom: 0; }
.fd-row .av { margin: 0; background: #1f2937; color: #fff; }
.fd-row b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fd-val { width: 96px; padding: 8px 10px; background: #111827; border: 1px solid var(--line-2); border-radius: 8px; color: #fff; font-size: 17px; font-weight: 600; }
.fd-row.on .fd-val { border-color: var(--accent); outline: 1px solid var(--accent); }
.fd-ok { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #1f2937; color: #4b5563; }
.fd-ok.on { background: #10b981; color: #fff; }
.fd-ok .ic { width: 13px; height: 13px; }
.fd-btns { display: grid; grid-template-columns: 1fr 1.6fr 1fr; gap: 10px; margin-top: 12px; }
.card.dark .btn.ghost { background: #111827; color: #fff; border-color: #2c3446; }
.card.dark .btn { min-height: 46px; }
.drop.light { border-color: var(--line-2); background: #fafbfc; padding: 28px 16px; }
.drop.light:hover, .drop.light.over { border-color: var(--accent); background: #eff6ff; }
.drop .ic.big { width: 30px; height: 30px; }
.cw-main #map .f select { min-height: 38px; }
.cw-main .file-chip { background: #fafbfc; }

@media (max-width: 1280px) { .ws-row { grid-template-columns: 1fr 1fr; } .ws-row .card.dark { grid-column: 1 / -1; } }
@media (max-width: 1080px) { .ws-grid, .ws-row { grid-template-columns: 1fr; } .pf-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .cw { grid-template-columns: minmax(0, 1fr); }
  .cw-main .panel:has(> .table) { overflow-x: auto; }
  .todo-strip { flex-wrap: wrap; }
  .cw-side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .cw-side nav, .cw-me, .cw-fac { display: none; }
  .cw-main { padding: 16px; }
  .ws-head { flex-direction: column; }
  .ws-search { width: 100%; }
}
.cw-main h1, .cw-main h2, .cw-main h3 { font-family: var(--body); font-weight: 700; text-transform: none; letter-spacing: -0.01em; }
.cw-main .ath-head h1 { font-size: 28px; }
.cw-main .panel-h h2 { font-size: 17px; }
.cw-main .kpi b, .cw-main .mcard .val, .cw-main .progress b, .cw-main .code b { font-family: var(--body); font-weight: 700; }
.cw-main .eyebrow { letter-spacing: 0.08em; }
.cw-main .pillars button.on { background: var(--accent); }
.cw-main .pillars button.on b, .cw-main .pillars button.on span { color: #fff; }

/* Coach workspace pages */
.kpis.three { grid-template-columns: repeat(3, 1fr); }
a.kpi { color: inherit; text-decoration: none; transition: border-color .15s; }
a.kpi:hover { border-color: var(--line-2); }
.cw-main .ws-head .eyebrow { margin-bottom: 4px; }
.click-li { color: inherit; text-decoration: none; }
.click-li:hover .t { color: var(--accent); }
@media (max-width: 760px) { .kpis.three { grid-template-columns: 1fr; } }
#app.busy { opacity: .6; pointer-events: none; transition: opacity .15s .1s; }

/* Athletes-first home and development */
.todo-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -4px 0 16px; font-size: 13px; }
.todo-strip a { padding: 5px 12px; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; color: #111827; text-decoration: none; }
.todo-strip a:hover { border-color: var(--accent); color: var(--accent); }
.movers { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-bottom: 16px; }
.mover { display: flex; align-items: center; gap: 12px; padding: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; color: inherit; text-decoration: none; box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.mover:hover { border-color: var(--accent); }
.mover .av { width: 40px; height: 40px; margin: 0; background: #1d2a44; color: #fff; font-size: 13px; }
.mv-main { display: grid; gap: 2px; min-width: 0; flex: 1; }
.mv-delta { font-size: 14px; white-space: nowrap; }
.ws-select { min-height: 40px; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; font: inherit; font-size: 13px; }
.cw-main .chip.good { color: #047857; border-color: #a7f3d0; background: #ecfdf5; }
.cw-main .chip.bad { color: #b91c1c; border-color: #fecaca; background: #fef2f2; }
.cw-main .chip.flat { color: #4b5563; border-color: #e5e7eb; background: #f9fafb; }
.grid2.wide { grid-template-columns: minmax(0, 1fr) 300px; }
@media (max-width: 1080px) { .grid2.wide { grid-template-columns: 1fr; } }
.cw-badge { margin-left: auto; min-width: 20px; padding: 1px 7px; border-radius: 999px; background: var(--accent, #2563eb); color: #fff; font-style: normal; font-size: 11px; font-weight: 700; text-align: center; }
.test-tabs { margin: -6px 0 18px; }
/* ---- Marketplace search ---- */
.mk-ic { width: 16px; height: 16px; flex-shrink: 0; }
.mk-hero { padding: 24px 0 8px; text-align: center; }
.mk-hero h1 { font-size: clamp(30px, 5.4vw, 58px); margin: 10px 0 28px; letter-spacing: 0.01em; }
.mk-bar { display: flex; align-items: center; gap: 14px; max-width: 760px; margin: 0 auto; padding: 0 24px; height: 64px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--panel); transition: border-color .15s, box-shadow .15s; cursor: text; }
.mk-bar:focus-within { border-color: var(--silver); box-shadow: 0 0 0 4px rgba(200,200,200,.08); }
.mk-bar .mk-ic { width: 20px; height: 20px; color: var(--muted); }
.mk-bar input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: none; font-size: 16px; color: var(--white); }
.mk-bar input::placeholder { color: var(--muted); }
.mk-tabs { display: inline-flex; gap: 4px; margin: 26px auto 0; padding: 4px; border: 1px solid var(--line-2); border-radius: 999px; }
.mk-tabs button { display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px; border: 0; border-radius: 999px; background: none; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; }
.mk-tabs button span { font-size: 10px; opacity: .7; }
.mk-tabs button[aria-selected="true"] { background: var(--white); color: var(--black); }
.mk-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin: 32px 0 18px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mk-f { display: grid; gap: 6px; flex: 1 1 170px; }
.mk-f span { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.mk-f select, .mk-f input { height: 40px; padding: 0 12px; background: var(--black); border: 1px solid var(--line-2); border-radius: 8px; color: var(--white); font-size: 13px; }
.mk-f select:focus, .mk-f input:focus { outline: none; border-color: var(--silver); }
.mk-toggle, .mk-clear { height: 40px; display: inline-flex; align-items: center; gap: 8px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: none; color: var(--silver); font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; }
.mk-toggle .ic { width: 14px; height: 14px; opacity: .35; }
.mk-toggle[aria-pressed="true"] { border-color: var(--white); background: var(--white); color: var(--black); }
.mk-toggle[aria-pressed="true"] .ic { opacity: 1; }
.mk-clear { border-color: transparent; color: var(--muted); padding: 0 8px; }
.mk-clear:hover { color: var(--white); }
.mk-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; min-height: 26px; margin-bottom: 14px; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.mk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.mk-card { display: flex; flex-direction: column; gap: 12px; padding: 22px; min-height: 250px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; text-decoration: none; transition: border-color .2s, transform .2s, background .2s; }
.mk-card:hover, .mk-card:focus-visible { border-color: var(--silver); background: var(--panel-2); transform: translateY(-2px); outline: none; }
.mk-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.mk-card h3 { font-size: 17px; letter-spacing: 0.03em; }
.mk-title { font-size: 12px; color: var(--silver); margin-top: -6px; }
.mk-loc { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.mk-loc.lg { font-size: 14px; color: var(--silver); }
.mk-eq .chip { border-style: dashed; }
.mk-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.mk-card:hover .mk-card-foot .mk-ic { color: var(--white); transform: translateX(3px); }
.mk-card-foot .mk-ic { transition: transform .2s; }
.mk-mono { display: inline-grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border: 1px solid var(--line-2); border-radius: 12px; background: var(--black); font-family: var(--display); font-size: 14px; letter-spacing: 0.04em; color: var(--silver); }
.mk-mono.round { border-radius: 50%; }
.mk-mono.sm { width: 36px; height: 36px; font-size: 12px; }
.mk-mono.xl { width: 88px; height: 88px; font-size: 28px; border-radius: 20px; }
.mk-mono.xl.round { border-radius: 50%; }
.mk-badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border: 1px solid var(--silver); border-radius: 999px; font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--white); white-space: nowrap; }
.mk-badge .ic { width: 12px; height: 12px; }
.mk-empty { grid-column: 1 / -1; text-align: center; padding: 64px 20px; border: 1px dashed var(--line-2); border-radius: 16px; }
.mk-empty h2 { font-size: 20px; margin-bottom: 8px; }
.mk-empty .btn { margin-top: 18px; }
.mk-back { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.mk-back:hover { color: var(--white); }
.mk-phero { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; padding: 28px 0 32px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.mk-phead h1 { font-size: clamp(28px, 4.4vw, 48px); margin: 8px 0 12px; }
.mk-cta { display: grid; gap: 10px; justify-items: stretch; max-width: 260px; }
.mk-cta .small { text-align: center; }
.mk-cols { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; align-items: start; }
.mk-about { font-size: 15px; line-height: 1.7; color: var(--silver); }
.mk-li { text-decoration: none; justify-content: flex-start; }
.mk-li .main { flex: 1; }
.mk-li:hover .t { text-decoration: underline; }
.mk-stat { display: grid; gap: 4px; }
.mk-stat b { font-family: var(--display); font-weight: 400; font-size: 40px; line-height: 1; }
.mk-stat span { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 900px) {
  .mk-phero { grid-template-columns: auto 1fr; }
  .mk-cta { grid-column: 1 / -1; max-width: none; grid-template-columns: 1fr 1fr; }
  .mk-cta .small { grid-column: 1 / -1; }
  .mk-cols { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .mk-bar { height: 54px; padding: 0 18px; }
  .mk-bar input { font-size: 15px; }
  .mk-tabs { display: flex; }
  .mk-tabs button { flex: 1; justify-content: center; padding: 10px 12px; }
  .mk-mono.xl { width: 64px; height: 64px; font-size: 20px; }
  .mk-cta { grid-template-columns: 1fr; }
}

/* ---- Roles and sign-up ---- */
.auth-mark { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; font-family: var(--display); font-size: 13px; letter-spacing: 0.14em; color: var(--white); }
.auth-mark svg { height: 30px; }
.auth-step { margin-bottom: 14px; }
.role-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.role-card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; min-height: 148px; padding: 18px; text-align: left; background: var(--black); border: 1px solid var(--line-2); border-radius: 14px; color: var(--white); cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
.role-card .ic { flex: none; width: 22px; height: 22px; margin-bottom: auto; color: var(--silver); }
.role-card .ic + b { margin-top: 14px; }
.role-card b { font-family: var(--display); font-weight: 400; font-size: 15px; text-transform: uppercase; letter-spacing: 0.02em; }
.role-card span { font-size: 12px; color: var(--muted); }
.role-card .go { position: absolute; top: 14px; right: 16px; font-style: normal; color: var(--muted); transition: transform .15s, color .15s; }
.role-card:hover, .role-card:focus-visible { border-color: var(--white); background: var(--panel-2); outline: none; }
.role-card:hover .go, .role-card:focus-visible .go { color: var(--white); transform: translateX(3px); }
.auth-back { background: none; border: 0; padding: 0; margin-bottom: 18px; color: var(--muted); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; cursor: pointer; }
.auth-back:hover { color: var(--white); }
.auth-h { font-size: 26px; margin: 10px 0 10px; }
.auth-lead { margin-bottom: 22px; }
.auth-foot { margin-top: 26px; text-align: center; letter-spacing: 0.12em; text-transform: uppercase; font-size: 11px; }
.auth-foot a { color: var(--silver); }
fieldset.form { border: 0; padding: 0; min-width: 0; }
fieldset:disabled input { opacity: .55; }
@media (max-width: 420px) { .role-card { min-height: 120px; } }

/* ---- Demo role switcher ---- */
.demo-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.demo-roles { display: inline-flex; padding: 3px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--panel); }
.demo-roles a { padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--muted); text-decoration: none; }
.demo-roles a:hover { color: var(--white); }
.demo-roles a.on { background: var(--white); color: var(--black); }

/* ---- Facility owner ---- */
.kpis.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .kpis.four { grid-template-columns: repeat(2, 1fr); } }
.cw-main .table .name { display: flex; align-items: center; }

/* ---- Recruiter (concept) ---- demo only */
.rc-banner { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.pill.gray { background: #f3f4f6; color: #374151; }
.rc-kpis { grid-template-columns: repeat(4, 1fr); }
.rc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.rc-grid + .rc-grid { margin-top: 12px; }
.rc-filters .f { font-size: 12px; }
.rc-filters .f input, .rc-filters .f select { min-height: 38px; background: #fff; }
.rc-toggle { margin-left: 0; }
.rc-toggle i { background: #d1d5db; }
.rc-km { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 2px 0; }
.rc-km .pill { padding: 2px 8px; font-size: 11px; }
.todo-strip a.on { border-color: var(--accent); color: var(--accent); }
.rc-acts { flex-wrap: wrap; justify-content: flex-end; }
.rc-mlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.rc-compose { margin-top: 16px; border-color: var(--accent); }
.rc-notebox { width: 100%; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; font: inherit; font-size: 14px; resize: vertical; }
.rc-note { width: 200px; padding: 7px 10px; border: 1px solid var(--line-2); border-radius: 8px; font: inherit; font-size: 13px; background: #fff; }
.rc-viewed { margin-bottom: 16px; }
@media (max-width: 1080px) { .rc-kpis { grid-template-columns: 1fr 1fr; } }
.rc-head .pill, .rc-km .pill { white-space: nowrap; }
@media (max-width: 1080px) { .rc-head { flex-wrap: wrap; } .rc-head .pf-id { flex-basis: 220px; } .rc-head .rc-acts { width: 100%; justify-content: flex-start; } }
@media (max-width: 760px) { .rc-kpis { grid-template-columns: 1fr; } .rc-head .pf-photo { width: 64px; height: 64px; font-size: 22px; } .rc-note { width: 140px; } }

/* ---- Coach day ---- */
.cd-day { margin-bottom: 16px; }
.cd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.cd-sess { border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: var(--panel-2); }
.cd-sess-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.cd-sess-h .main { min-width: 0; }
.cd-when { font-size: 12px; font-weight: 600; color: var(--muted); }
.cd-title { display: flex; align-items: center; gap: 8px; margin: 2px 0; }
.cd-kind { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 600; border: 1px solid var(--line-2); color: var(--silver); white-space: nowrap; }
.cd-kind.lesson { color: #1d4ed8; border-color: #bfdbfe; background: #eff6ff; }
.cd-kind.clinic { color: #6d28d9; border-color: #ddd6fe; background: #f5f3ff; }
.cd-kind.group { color: #047857; border-color: #a7f3d0; background: #ecfdf5; }
.cd-kind.test { color: #b45309; border-color: #fde68a; background: #fffbeb; }
.cd-check { display: flex; flex-wrap: wrap; gap: 6px; }
.cd-ci { position: relative; display: inline-flex; align-items: center; cursor: pointer; }
.cd-ci input { position: absolute; opacity: 0; pointer-events: none; }
.cd-ci span { padding: 5px 10px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 12px; background: var(--panel); }
.cd-ci input:checked + span { background: var(--accent, var(--white)); border-color: var(--accent, var(--white)); color: #fff; }
.cd-ci input:focus-visible + span { outline: 2px solid var(--accent, var(--white)); outline-offset: 2px; }
.cd-ci.solo span { display: inline-block; width: 22px; height: 22px; padding: 0; border-radius: 6px; }
.cd-ci.solo input:checked + span::after { content: "✓"; display: block; text-align: center; line-height: 20px; font-size: 13px; }
.cd-sess-f { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.cd-roster td { vertical-align: top; }
.cd-roster a.name { color: inherit; text-decoration: none; }
.cd-roster a.name:hover { text-decoration: underline; }
.cd-note { min-width: 240px; }
.cd-note .small { margin-top: 4px; }
.cd-foot { margin-top: 12px; }
.cd-share { margin: 0 0 16px; }
.cd-share textarea { font-family: var(--body); line-height: 1.55; }
.cd-cta { margin-top: 14px; }
.li b .small { font-weight: 400; }
@media (max-width: 760px) { .cd-roster th:nth-child(4), .cd-roster td:nth-child(4) { display: none; } .cd-note { min-width: 160px; } }
/* ---- end Coach day ---- */
/* ---- Facility operations ---- */
.fo-kind { padding: 2px 9px; font-size: 10px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.fo-kind.fo-k-group { border-color: #bfdbfe; color: #1d4ed8; background: #eff6ff; }
.fo-kind.fo-k-clinic { border-color: #ddd6fe; color: #6d28d9; background: #f5f3ff; }
.fo-kind.fo-k-lesson { border-color: #e5e7eb; color: #374151; background: #f9fafb; }
.fo-kind.fo-k-test { border-color: #a7f3d0; color: #047857; background: #ecfdf5; }
.fo-kind.fo-k-camp { border-color: #0b0f17; color: #fff; background: #0b0f17; }
.mk .fo-kind { background: none; color: var(--silver); border-color: var(--line-2); }
.mk .fo-kind.fo-k-camp { border-color: var(--white); color: var(--white); }
.fo-agenda { display: grid; gap: 18px; }
.fo-day h3 { display: flex; gap: 8px; align-items: baseline; margin: 0 0 6px; font-family: var(--body); font-size: 13px; font-weight: 700; text-transform: none; letter-spacing: 0; }
.fo-day h3 span { color: var(--muted); font-weight: 500; }
.fo-ev { display: grid; grid-template-columns: 74px minmax(0, 1fr) 120px 72px; align-items: center; gap: 14px; width: 100%; padding: 11px 10px; margin: 0 -10px; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; color: inherit; text-align: left; text-decoration: none; cursor: pointer; box-sizing: content-box; }
.fo-ev:hover { background: var(--panel-2); }
.fo-ev.on { background: #eff6ff; box-shadow: inset 3px 0 0 var(--accent); }
.fo-ev.past { opacity: .75; }
.fo-time { display: grid; font-weight: 600; font-size: 13px; }
.fo-time small { color: var(--muted); font-weight: 500; font-size: 11px; }
.fo-main { display: grid; gap: 4px; min-width: 0; }
.fo-main .t { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fo-main .s { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.fo-fill { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.fo-fill .bar { flex: 0 0 72px; }
.fo-fill span { min-width: 38px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fo-detail .fo-fill .bar, .fo-next .fo-fill .bar { flex: 1; }
.panel-h .muted.small { white-space: nowrap; }
.fo-fill.full span { color: #047857; font-weight: 600; }
.fo-price { text-align: right; font-weight: 600; font-size: 13px; }
.fo-next { display: grid; gap: 8px; color: inherit; text-decoration: none; }
.fo-next > b { font-size: 16px; }
.fo-next:hover > b { color: var(--accent); }
.fo-next-n { display: flex; gap: 18px; font-size: 13px; color: var(--muted); }
.fo-next-n b { color: var(--white); font-size: 15px; }
.fo-bars { display: grid; gap: 14px; }
.fo-barrow { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: 13px; }
.fo-barrow .bar { grid-column: 1 / -1; }
.fo-split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 6px; }
.fo-split div { display: grid; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.fo-split b { font-size: 22px; }
.fo-split span { font-size: 12px; color: var(--muted); }
.fo-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.fo-seg { display: inline-flex; flex-wrap: wrap; padding: 3px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; }
.fo-seg button { padding: 6px 12px; border: 0; border-radius: 7px; background: none; font-size: 13px; color: var(--muted); cursor: pointer; }
.fo-seg button[aria-pressed="true"] { background: #0b0f17; color: #fff; font-weight: 600; }
.fo-sched { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.fo-detail { position: sticky; top: 16px; }
.fo-detail .list .li { padding: 10px 0; }
.fo-dt { margin: 4px 0 12px; font-family: var(--body); font-size: 20px; font-weight: 700; text-transform: none; letter-spacing: 0; }
.fo-ath .t { font-weight: 500; }
.fo-ath .chip .ic { width: 12px; height: 12px; }
.fo-waiver { margin-top: 12px; border-bottom: 0; }
.fo-pub-r { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
@media (max-width: 1080px) { .fo-sched { grid-template-columns: 1fr; } .fo-detail { position: static; } }
@media (max-width: 760px) {
  .fo-ev { grid-template-columns: 60px minmax(0, 1fr) 64px; }
  .fo-ev .fo-fill { grid-column: 2 / -1; grid-row: 2; }
  .fo-ev .fo-price { grid-column: 3; grid-row: 1; }
  .fo-ev .hide-sm { display: none; }
  .fo-pub { flex-wrap: wrap; } .fo-pub-r { flex-wrap: wrap; }
}
/* ---- end Facility operations ---- */
/* ---- Recruiter board (concept) ---- demo only */
.rc-actcol { display: grid; justify-items: end; gap: 8px; margin-left: auto; }
.rc-stage { display: flex; align-items: center; gap: 8px; }
.rc-ncaa { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.rc-ncaa:hover { color: var(--accent); }
.rc-rowacts { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.rc-cmp { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; white-space: nowrap; color: var(--muted); }
.rc-cmp input { accent-color: var(--accent); width: 15px; height: 15px; }
.rc-tray { position: sticky; bottom: 16px; z-index: 5; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; padding: 12px 16px; background: #0b0f17; color: #fff; border-radius: 12px; box-shadow: 0 8px 24px rgba(16,24,40,.18); }
.rc-tray .muted { color: #9aa3b2; }
.rc-tray .btn.ghost { background: transparent; color: #fff; border-color: #374151; }
.rc-needs td { vertical-align: middle; }
.rc-num { width: 64px; min-height: 32px; padding: 4px 8px; border: 1px solid var(--line-2); border-radius: 8px; font: inherit; background: #fff; }
.rc-cov { display: flex; align-items: center; gap: 10px; min-width: 130px; }
.rc-bar { flex: 1; max-width: 90px; height: 6px; border-radius: 99px; background: var(--panel-2); border: 1px solid var(--line); overflow: hidden; }
.rc-bar i { display: block; height: 100%; background: var(--accent); }
.rc-sincepanel { margin-bottom: 16px; }
.rc-sincepanel + .panel { margin-bottom: 16px; }
.rc-since3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.rc-since3 > div { display: grid; align-content: start; gap: 10px; }
.rc-person { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; padding: 6px 8px; margin: 0 -8px; border-radius: 10px; }
.rc-person:hover { background: var(--panel-2); }
.rc-person > span:last-child { display: grid; gap: 2px; min-width: 0; }
.rc-person .av { width: 34px; height: 34px; background: #1d2a44; color: #fff; }
.rc-person .pill { justify-self: start; padding: 2px 8px; font-size: 11px; }
.rc-campline { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.rc-campline a { display: grid; color: inherit; text-decoration: none; }
[data-attend] { white-space: nowrap; }
.rc-class .panel-h { margin-bottom: 12px; }
.rc-class + .rc-class, .panel + .rc-class { margin-top: 16px; }
.rc-kanban { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.rc-col { background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: grid; align-content: start; gap: 10px; min-height: 90px; }
.rc-col-h { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.rc-col-h i { font-style: normal; }
.rc-empty { text-align: center; margin: 8px 0; }
.rc-card { display: grid; gap: 6px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.rc-card:hover { border-color: var(--accent); }
.rc-card-h { display: flex; align-items: center; gap: 8px; }
.rc-pos { display: inline-grid; place-items: center; min-width: 34px; height: 22px; padding: 0 6px; border-radius: 6px; background: #1d2a44; color: #fff; font-size: 11px; font-weight: 700; }
.rc-card-f { display: flex; flex-wrap: wrap; gap: 6px; }
.rc-card-f .pill { padding: 2px 8px; font-size: 11px; }
.rc-card .pill-select { justify-self: start; }
.rc-camps { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; margin-bottom: 16px; }
.rc-camp { display: grid; align-content: start; gap: 12px; }
.rc-camp .panel-h { align-items: flex-start; margin-bottom: 0; }
.rc-camp h2 { margin: 4px 0 2px; }
.rc-camp.on { border-color: var(--accent); }
.rc-camp .pill { justify-self: start; }
.rc-camp-n { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rc-camp-n > div { display: grid; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.rc-camp-n b { font-size: 22px; }
.rc-people { display: grid; gap: 2px; }
.rc-compare { table-layout: fixed; min-width: 640px; }
.rc-compare th, .rc-compare td { vertical-align: top; padding: 12px 14px 12px 0; white-space: normal; overflow-wrap: anywhere; }
.rc-compare tbody th { color: var(--silver); font-weight: 600; }
.rc-compare th:first-child { width: 160px; }
.rc-compare .name { font-weight: 700; font-size: 15px; color: inherit; }
.rc-compare .link { padding: 0; }
.rc-compare .pill { padding: 2px 8px; font-size: 11px; }
.rc-big { font-size: 20px; }
.rc-lead { background: #eff6ff; }
.rc-lead, .rc-compare td.rc-lead { box-shadow: inset 3px 0 0 var(--accent); padding-left: 10px; }
.rc-since { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 14px; margin-bottom: 14px; background: #eff6ff; border-radius: 10px; }
.rc-delta { display: inline-flex; padding: 2px 8px; border-radius: 6px; background: #fff; border: 1px solid var(--line); font-size: 12px; font-weight: 600; margin: 2px 4px 2px 0; }
.rc-evalform { display: grid; gap: 10px; margin-bottom: 16px; }
.rc-evalform textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; font: inherit; font-size: 14px; resize: vertical; }
.rc-evalform .card-f { margin-top: 0; }
.rc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.rc-tag input { display: none; }
.rc-tag span { display: inline-flex; padding: 4px 10px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 12px; cursor: pointer; color: var(--silver); }
.rc-tag input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.rc-tl-h, .rc-tl-row { display: grid; grid-template-columns: 110px minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; }
.rc-tl-h { padding: 0 0 8px; border-bottom: 1px solid var(--line); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.rc-tl-row { padding: 12px 0; border-bottom: 1px solid var(--line); }
.rc-tl-row.ev { background: linear-gradient(90deg, #f5f3ff, transparent 60%); }
.rc-evnote { margin: 0 0 6px; font-size: 14px; }
.rc-between { margin-top: 6px; }
.rc-tl-row .chip { margin: 2px 4px 2px 0; }
.rc-tl-row .link { padding: 0; margin-top: 6px; display: block; }
@media (max-width: 1080px) { .rc-since3 { grid-template-columns: 1fr; } .rc-kanban { grid-template-columns: 1fr 1fr; } .rc-actcol { justify-items: start; margin-left: 0; width: 100%; } }
@media (max-width: 760px) { .rc-kanban { grid-template-columns: 1fr; } .rc-tl-h { display: none; } .rc-tl-row { grid-template-columns: 1fr; gap: 6px; } .rc-camps { grid-template-columns: 1fr; } }
.rc-camps > .panel { margin: 0; }
.rc-banner { align-items: center; } .rc-banner .demo-roles { margin-left: auto; }
.ws-select.sm { min-height: 32px; padding: 4px 8px; font-size: 12px; }

/* Portal funnel: questions, perks, role photos */
.funnel-prog { height: 3px; background: var(--line-2); border-radius: 99px; overflow: hidden; margin: 6px 0 18px; }
.funnel-prog i { display: block; height: 100%; background: var(--white); transition: width .3s ease; }
.role-card.opt { min-height: 110px; justify-content: center; }
.role-card.opt b { font-size: 17px; }
.role-card.opt.on { border-color: var(--white); background: var(--panel-2); }
.role-card.multi.on .go { color: var(--white); }
.multi-other { margin-top: 14px; }
.multi-next { width: 100%; margin-top: 16px; }
.multi-next:disabled { opacity: .4; cursor: default; }
.auth-h { font-size: clamp(24px, 3vw, 32px); margin: 4px 0 18px; }
.funnel-perks { list-style: none; display: grid; gap: 10px; margin: 0 0 22px; padding: 0; }
.funnel-perks li { position: relative; padding-left: 26px; font-size: 14px; color: var(--silver); }
.funnel-perks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--white); font-weight: 700; }
.entry-art.photo { background: #000 var(--img) center / cover no-repeat; }
.entry-art.photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.9) 0%, rgba(0,0,0,.35) 55%, rgba(0,0,0,.15) 100%); }
.entry-art.photo > * { position: relative; }
.entry-art.photo h1 { font-size: clamp(28px, 3.6vw, 52px); max-width: 12ch; margin-bottom: 0; }
/* ---- Facility owner: today ---- */
.fo-ev.fo-today { grid-template-columns: 74px minmax(0, 1fr) auto; }
.fo-ci { font-size: 13px; white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.fo-split3 { grid-template-columns: repeat(3, 1fr); }
.fo-split a { display: grid; padding: 12px; border: 1px solid var(--line); border-radius: 10px; color: inherit; text-decoration: none; }
.fo-split a:hover { border-color: var(--accent); }
.fo-split a b { font-size: 22px; }
.fo-split a span { font-size: 12px; color: var(--muted); }
@media (max-width: 760px) { .fo-ev.fo-today { grid-template-columns: 60px minmax(0, 1fr) auto; } .fo-split3 { grid-template-columns: 1fr 1fr; } }
.fo-soon { margin-top: 12px; padding: 10px 0 0; border-top: 1px dashed var(--line-2); border-bottom: 0; font-size: 13px; }
.fo-soon + .fo-soon { margin-top: 0; }
/* ---- end Facility owner: today ---- */

/* Facility athletes: group cards, new group form, filters */
.ggrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 16px; }
.gcard { min-width: 0; display: grid; gap: 14px; align-content: start; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.gcard-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.gcard-h > div { display: grid; gap: 4px; min-width: 0; }
.gcard-h b { font-size: 16px; }
.gcard-n { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 10px; }
.gcard-n > * { display: grid; gap: 2px; padding: 10px 12px; color: inherit; text-decoration: none; font-size: 12px; }
.gcard-n > * + * { border-left: 1px solid var(--line); }
.gcard-n b { font-size: 20px; font-variant-numeric: tabular-nums; }
.gcard-n span span, .gcard-n a span { color: var(--muted); }
.gcard-n a:hover b { color: var(--accent); }
.gcard-n .warn b { color: #b45309; }
.gcard-f { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.gcard-f .small { margin-right: auto; }
.gadd { place-items: center; text-align: center; min-height: 220px; border-style: dashed; cursor: pointer; font: inherit; color: var(--silver); }
.gadd:hover { border-color: var(--accent); color: var(--accent); }
.gadd .ic { width: 26px; height: 26px; }
.ga-stack { display: inline-flex; flex-shrink: 0; }
.ga-stack .av { width: 30px; height: 30px; margin: 0 0 0 -6px; border: 2px solid var(--panel); font-size: 10px; letter-spacing: -0.02em; }
.ga-stack .av:first-child { margin-left: 0; }
.ga-stack .av.more { background: var(--panel-2); color: var(--muted); }
.gnew { margin-bottom: 16px; }
.gnew-row { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; }
.gpick { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; margin-bottom: 16px; }
.gpick label { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; cursor: pointer; font-size: 14px; }
.gpick label em { grid-column: 2; font-style: normal; font-size: 12px; color: var(--muted); }
.gpick label:has(input:checked) { border-color: var(--accent); background: var(--panel-2); }
.gfilter { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.gfilter .todo-strip { margin: 0; }
.gdue { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 14px; border: 1px solid rgba(240,180,76,.5); border-radius: 12px; background: #fffbeb; font-size: 14px; }
.table td .chip { margin: 2px 0; }
#ws-group { margin-left: 10px; }
@media (max-width: 760px) { .gnew-row { grid-template-columns: 1fr; } .kpis.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ga-stack { display: none; } .gfilter .ws-search { width: 100%; } }

/* ---- Facility look (owner dashboard + Athletes), from the approved mockups 2026-10-17 ---- */
.fx-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 22px; }
.fx-eyebrow { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 4px; }
.fx-head h1 { font-family: var(--body); font-weight: 700; text-transform: none; letter-spacing: -.01em; font-size: 32px; line-height: 1.15; color: #0b0f17; }
.fx-sub { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.fx-sub.sm { font-size: 13px; margin-top: 2px; }
.fx-head-r { display: grid; justify-items: end; gap: 12px; }
.fx-roles:empty { display: none; }
.fx-roles .demo-roles { background: #fff; padding: 4px; }
.fx-roles .demo-roles a { padding: 8px 18px; font-size: 13px; }
.fx-roles .demo-roles a.on { background: #0b0f17; color: #fff; }
.fx-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.cw-main .fx-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 18px; font-size: 14px; font-weight: 600; border-radius: 10px; }
.cw-main .fx-btn.sm { min-height: 34px; padding: 0 12px; font-size: 13px; }
.fx-search { display: flex; align-items: center; gap: 10px; width: 100%; min-width: 300px; min-height: 42px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; color: var(--muted); }
.fx-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 14px; color: #0b0f17; }
.fx-search.sm { min-width: 0; min-height: 40px; margin-bottom: 10px; }
.fx-head-r > .fx-actions { width: 100%; }

.fx-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.fx-kpi { position: relative; display: flex; gap: 16px; align-items: flex-start; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 14px; color: inherit; text-decoration: none; box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.fx-kpi:hover { border-color: #bfdbfe; }
.fx-kpi-ic { display: grid; place-items: center; width: 48px; height: 48px; flex-shrink: 0; border-radius: 12px; background: #eff6ff; color: var(--accent); }
.fx-kpi-ic .ic { width: 24px; height: 24px; }
.fx-kpi-b { display: grid; min-width: 0; }
.fx-kpi-b b { font-size: 28px; font-weight: 700; line-height: 1.1; }
.fx-kpi-l { font-size: 15px; color: #1f2937; margin-top: 4px; }
.fx-kpi-s { font-size: 13px; color: var(--muted); margin-top: 2px; }
.fx-kpi .fx-chev { position: absolute; top: 20px; right: 16px; }
.fx-delta { position: absolute; right: 18px; bottom: 18px; padding: 3px 8px; border-radius: 7px; background: #ecfdf5; color: #047857; font-size: 12px; font-weight: 600; }
.fx-delta.down { background: #fef2f2; color: #b91c1c; }
.fx-chev { width: 16px; height: 16px; color: #9ca3af; flex-shrink: 0; }

.fx-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; box-shadow: 0 1px 2px rgba(16,24,40,.04); min-width: 0; }
.fx-card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.fx-card h2 { font-family: var(--body); text-transform: none; letter-spacing: 0; font-size: 22px; font-weight: 700; }
.fx-card h3 { font-family: var(--body); text-transform: none; letter-spacing: 0; font-size: 18px; font-weight: 700; margin: 0; }
.fx-link { white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; color: var(--accent); font-size: 14px; text-decoration: none; }
.fx-link .ic { width: 14px; height: 14px; }
.fx-count { display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 99px; background: #ef4444; color: #fff; font-size: 13px; font-weight: 700; }
.fx-sel { padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 8px; font-size: 13px; }

.fx-pill { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 7px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.fx-pill.good { background: #ecfdf5; color: #047857; }
.fx-pill.warn { background: #fef9c3; color: #a16207; }
.fx-pill.bad { background: #fef2f2; color: #dc2626; }
.fx-pill.blue { background: #eff6ff; color: #1d4ed8; }
.fx-pill.muted { background: #f3f4f6; color: #6b7280; }
.fx-av { display: inline-grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; font-weight: 700; font-size: 13px; }
.fx-av.sm { width: 30px; height: 30px; font-size: 11px; }
.fx-av.lg { width: 48px; height: 48px; font-size: 15px; }
.fx-av.grey { background: #f3f4f6 !important; color: #374151 !important; border: 1px solid var(--line-2); }

/* Dashboard */
.fx-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 18px; align-items: stretch; }
.fx-grid > .fx-side { align-content: start; }
.fx-side { display: grid; gap: 18px; }
.fx-sess-list { display: grid; }
.fx-sess { display: grid; grid-template-columns: 92px minmax(130px, 1.5fr) 84px minmax(0, 1fr) 52px 116px 16px; align-items: center; gap: 12px; padding: 16px 0 16px 16px; border-top: 1px solid var(--line); position: relative; color: inherit; text-decoration: none; }
.fx-sess::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 4px; border-radius: 4px; background: var(--k); }
.fx-sess:hover { background: #f9fafb; }
.fx-sess-time { display: grid; }
.fx-sess-time b { font-size: 15px; }
.fx-sess-time small, .fx-sess-c { color: var(--muted); font-size: 13px; }
.fx-sess-t { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-sess-c { display: flex; align-items: center; gap: 8px; min-width: 0; }
.fx-sess-c span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-sess-n { font-variant-numeric: tabular-nums; font-size: 14px; }
.fx-sess .fo-kind { border-radius: 6px; padding: 4px 10px; }
.fx-sess .fo-k-test { border-color: #ddd6fe; color: #6d28d9; background: #f5f3ff; }
.fx-needs, .fx-hl { display: grid; }
.fx-needs a, .fx-hl a { display: grid; grid-template-columns: 26px minmax(0, 1fr) 16px; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); color: #1f2937; text-decoration: none; font-size: 15px; }
.fx-needs a .ic:first-child { width: 22px; height: 22px; color: #ef4444; }
.fx-needs b { color: #ef4444; }
.fx-needs a:hover span, .fx-hl a:hover span, .fx-prog a:hover b { color: var(--accent); }
.fx-prog { display: grid; }
.fx-prog a { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto 16px; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.fx-prog-n, .fx-prog-v { display: grid; min-width: 0; }
.fx-prog-n small, .fx-prog-v small { color: var(--muted); font-size: 12px; }
.fx-prog-v { text-align: right; }
.fx-prog-v.up b { color: #16a34a; }
.fx-prog-v.down b, .fx-prog-v.down small { color: #dc2626; }
.fx-row3 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.1fr); gap: 18px; margin-top: 18px; }
.fx-donut-wrap { display: flex; align-items: center; gap: 22px; }
.fx-donut-box { position: relative; width: 140px; flex-shrink: 0; }
.fx-donut { width: 140px; height: 140px; display: block; }
.fx-donut-c { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.fx-donut-c b { font-size: 28px; }
.fx-donut-c span { font-size: 12px; color: var(--muted); }
.fx-legend { white-space: nowrap; list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 14px; }
.fx-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; }
.fx-legend b { color: #ea580c; margin-right: 3px; }
.fx-hl a .ic:first-child { width: 22px; height: 22px; color: #16a34a; }
.fx-hl a:nth-child(2) .ic:first-child { color: var(--accent); }
.fx-hl small { display: block; color: var(--muted); font-size: 12px; }
.fx-hl b { color: var(--accent); }
.fx-util { display: grid; grid-template-columns: repeat(32, 1fr); gap: 0; border-radius: 4px; overflow: hidden; height: 32px; margin: 18px 0 8px; }
.fx-util i, .fx-util-k i { display: block; background: #bfdbfe; }
.fx-util i.on, .fx-util-k i.on { background: #2563eb; }
.fx-util i.off, .fx-util-k i.off { background: repeating-linear-gradient(135deg, #f3f4f6 0 4px, #e5e7eb 4px 6px); }
.fx-util-x { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.fx-util-k { display: flex; gap: 18px; margin-top: 16px; font-size: 13px; color: var(--muted); }
.fx-util-k span { display: inline-flex; align-items: center; gap: 6px; }
.fx-util-k i { width: 12px; height: 12px; border-radius: 3px; }

/* Athletes */
.fx-tabs { display: flex; gap: 34px; border-bottom: 1px solid var(--line); margin: -6px 0 20px; overflow-x: auto; }
.fx-tabs a { padding: 0 0 14px; font-size: 16px; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.fx-tabs a.on { color: var(--accent); border-bottom-color: var(--accent); font-weight: 500; }
.fx-ath { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 18px; align-items: start; }
.fx-glist { display: grid; }
.fx-glist a { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 13px 12px; border-bottom: 1px solid var(--line); color: #1f2937; text-decoration: none; font-size: 15px; border-radius: 0; }
.fx-glist a .ic { width: 20px; height: 20px; color: #64748b; }
.fx-glist a em { font-style: normal; color: var(--muted); font-size: 14px; }
.fx-glist a.on { background: #eff6ff; color: var(--accent); border-radius: 10px; border-bottom-color: transparent; font-weight: 500; }
.fx-glist a.on .ic, .fx-glist a.on em { color: var(--accent); }
.fx-glist a[hidden] { display: none; }
.fx-seg { display: inline-flex; padding: 3px; border-radius: 10px; background: #f3f4f6; }
.fx-seg a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: 14px; }
.fx-seg a.on { background: #e5e9f0; color: #0b0f17; font-weight: 600; }
.fx-seg .ic { width: 16px; height: 16px; }
.fx-tbl-wrap { overflow-x: auto; margin: 0 -22px; padding: 0 22px; }
.fx-tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.fx-tbl th { text-align: left; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 10px 7px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.fx-tbl td { padding: 12px 7px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.fx-tbl tr.click { cursor: pointer; }
.fx-tbl tr.click:hover td { background: #f9fafb; }
.fx-tbl tr.sel td { background: #eff6ff; }
.fx-tbl .fx-ck { width: 28px; padding-right: 0; }
.fx-tbl input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--accent); }
.fx-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.fx-who span, .fx-2 { display: grid; }
.fx-who small, .fx-2 small { color: var(--muted); font-size: 13px; }
.fx-2 .fx-pill { justify-self: start; }
.fx-tag { display: inline-block; vertical-align: middle; max-width: 104px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 4px 10px; border-radius: 7px; background: #eff6ff; color: #1d4ed8; font-size: 12px; }
.fx-more { display: inline-block; margin-left: 6px; padding: 3px 8px; border-radius: 99px; background: #f3f4f6; color: #374151; font-size: 11px; }
.fx-menu { position: relative; }
.fx-menu summary { list-style: none; cursor: pointer; }
.fx-menu summary::-webkit-details-marker { display: none; }
.fx-menu > div { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; min-width: 220px; padding: 8px; background: #fff; border: 1px solid var(--line-2); border-radius: 12px; box-shadow: 0 12px 28px rgba(16,24,40,.12); display: grid; }
.fx-menu.right > div, .fx-kebab > div { left: auto; right: 0; }
.fx-menu > div a { padding: 9px 10px; border-radius: 8px; color: #1f2937; text-decoration: none; font-size: 14px; }
.fx-menu > div a:hover, .fx-menu > div a.on { background: #eff6ff; color: var(--accent); }
.fx-menu > div p { margin: 8px 10px 4px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.fx-kebab summary { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; color: #6b7280; }
.fx-kebab summary:hover { background: #f3f4f6; }
.fx-dot-n { display: inline-grid; place-items: center; min-width: 18px; height: 18px; border-radius: 99px; background: var(--accent); color: #fff; font-size: 11px; }
.fx-foot { display: flex; align-items: center; gap: 12px; padding-top: 16px; color: var(--muted); font-size: 14px; }
.fx-pager { margin-left: auto; display: flex; gap: 8px; }
.fx-pager a { display: grid; place-items: center; min-width: 38px; height: 38px; padding: 0 8px; border: 1px solid var(--line-2); border-radius: 9px; color: #1f2937; text-decoration: none; font-size: 14px; }
.fx-pager a.on { border-color: var(--accent); background: #eff6ff; color: var(--accent); }
.fx-pager a.off { pointer-events: none; opacity: .4; }
.fx-pager .ic { width: 16px; height: 16px; }
.fx-acards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 14px; }
.fx-acard { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; color: inherit; text-decoration: none; }
.fx-acard:hover { border-color: #bfdbfe; }
.fx-acard-r { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.fx-ath-main .gnew { margin-bottom: 16px; }

@media (max-width: 1600px) {
  .fx-sess-c span:last-child { display: none; }
  .fx-sess { grid-template-columns: 86px minmax(120px, 1.5fr) 80px 34px 48px 112px 16px; }
  .fx-donut-box, .fx-donut { width: 116px; height: 116px; }
  .fx-donut-wrap { gap: 16px; }
  .fx-legend { font-size: 13px; }
}
@media (max-width: 1200px) {
  .fx-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fx-grid, .fx-row3 { grid-template-columns: minmax(0, 1fr); }
  .fx-ath { grid-template-columns: minmax(0, 1fr); }
  .fx-sess { grid-template-columns: 90px minmax(0, 1fr) auto 16px; }
  .fx-sess > span:nth-child(3), .fx-sess-c, .fx-sess-n { display: none; }
}
@media (max-width: 760px) {
  .fx-head { flex-direction: column; }
  .fx-head-r { justify-items: stretch; width: 100%; }
  .fx-search { min-width: 0; }
  .fx-kpis { grid-template-columns: minmax(0, 1fr); }
  .fx-head h1 { font-size: 26px; }
  .fx-roles .demo-roles { overflow-x: auto; max-width: 100%; }
}
.fx-foot [hidden], .fx-menu [hidden] { display: none !important; }

/* Sign-up consent and the hidden spam trap */
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); line-height: 1.45; cursor: pointer; }
.consent input { margin-top: 2px; width: 16px; height: 16px; flex-shrink: 0; accent-color: var(--white); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* ===== Resource Hub (players and parents) ===== */
.auth-alt { margin-top: 18px; }
.auth-alt a, .linkbtn { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.hub { max-width: 1040px; margin: 0 auto; }
.hub-head { padding: 12px 0 28px; }
.hub-head h1 { font-size: clamp(30px, 5vw, 52px); margin: 10px 0 8px; }
.hub-course { display: grid; grid-template-columns: 300px 1fr; gap: 0; border: 1px solid var(--line-2); border-radius: 18px; overflow: hidden; text-decoration: none; background: var(--panel); transition: border-color .2s; }
.hub-course:hover { border-color: var(--white); }
.hub-course-art { display: grid; place-items: center; min-height: 230px; background: radial-gradient(120% 90% at 30% 20%, #262626 0%, #000 70%); border-right: 1px solid var(--line); }
.hub-course-art span { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--white); color: var(--black); }
.hub-course-art svg { width: 28px; height: 28px; margin-left: 4px; fill: currentColor; }
.hub-course-body { padding: 28px; display: grid; gap: 8px; align-content: center; justify-items: start; }
.hub-course-body h2 { font-size: clamp(22px, 3vw, 32px); }
.hub-bar { width: 100%; height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; }
.hub-bar i { display: block; height: 100%; background: var(--white); border-radius: 99px; }
.hub-course-body .btn { margin-top: 8px; }
.hub-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.hub-tile { display: grid; gap: 8px; align-content: start; justify-items: start; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.hub-tile h3 { font-size: 15px; }
.hub-tile p { font-size: 13px; color: var(--muted); }
.hub-tile .btn, .hub-tile .chip { margin-top: auto; }
.hub-when { color: var(--white) !important; font-weight: 600; }
.hub-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line-2); color: var(--white); }
.hub-ic svg { width: 20px; height: 20px; }
.hub-next { display: flex; align-items: center; gap: 16px; margin-top: 12px; padding: 20px 22px; border: 1px dashed var(--line-2); border-radius: 16px; text-decoration: none; }
.hub-next:hover { border-color: var(--white); }
.hub-next div { display: grid; gap: 2px; flex: 1; }
.hub-next span:not(.hub-ic) { font-size: 13px; color: var(--muted); }
.hub-next i { font-style: normal; color: var(--muted); font-size: 20px; }

.course { max-width: 1180px; margin: 0 auto; }
.course-back { display: inline-block; margin-bottom: 16px; text-decoration: none; }
.course-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.course-video { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #0b0b0b; border: 1px solid var(--line); margin-bottom: 20px; }
.course-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.course-soon { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 12px; color: var(--muted); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; }
.course-soon svg { width: 40px; height: 40px; fill: currentColor; }
.course-main h1 { font-size: clamp(24px, 3.4vw, 36px); margin: 8px 0 12px; }
.course-sum { font-size: 16px; color: var(--silver); }
.course-body { margin-top: 14px; color: var(--silver); line-height: 1.7; }
.course-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.course-side { position: sticky; top: 80px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); overflow: hidden; }
.course-prog { display: grid; gap: 8px; padding: 18px; border-bottom: 1px solid var(--line); }
.course-prog b { font-family: var(--display); font-weight: 400; font-size: 26px; }
.course-list { list-style: none; padding: 6px; margin: 0; }
.course-list a { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 10px; text-decoration: none; color: var(--silver); font-size: 14px; }
.course-list a:hover { background: var(--panel-2); }
.course-list a.on { background: var(--white); color: var(--black); }
.course-list .dot { display: grid; place-items: center; flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-2); font-size: 11px; }
.course-list a.done .dot { background: var(--good); border-color: var(--good); color: #000; }
.course-list .dot svg { width: 13px; height: 13px; }
.course-list a.on .dot { border-color: var(--black); }
.course-list .t { flex: 1; }
.course-list .m { font-size: 11px; color: var(--muted); }

@media (max-width: 960px) {
  .hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .course-grid { grid-template-columns: 1fr; }
  .course-side { position: static; }
}
@media (max-width: 640px) {
  .hub-course { grid-template-columns: 1fr; }
  .hub-course-art { min-height: 150px; border-right: 0; border-bottom: 1px solid var(--line); }
  .hub-grid { grid-template-columns: 1fr; }
}

/* Resource Library (hub) + Manage resources */
.lib { margin-top: 48px; }
.lib-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.lib-head h2 { font-size: 22px; }
.lib-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.lib-cats .chip { cursor: pointer; background: none; }
.lib-cats .chip.on { background: var(--white); color: var(--black); border-color: var(--white); }
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.lib-card { display: flex; flex-direction: column; gap: 8px; padding: 20px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--panel); }
.lib-card[hidden] { display: none; }
.lib-card h3 { font-size: 16px; }
.lib-card p { font-size: 13px; color: var(--muted); flex: 1; }
.lib-card .btn { align-self: flex-start; margin-top: 6px; }
.lib-kind { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.manage .mtabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 24px; border-bottom: 1px solid var(--line); }
.manage .mtabs a { padding: 10px 14px; font-size: 13px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.manage .mtabs a.on { color: var(--white); border-color: var(--white); }
.manage .panel { margin-bottom: 20px; }
.manage .seg { margin: 4px 0 0; max-width: 360px; }
.manage .drop { margin-top: 0; padding: 32px 20px; }
.manage .mgroup { margin: 18px 0 2px; }
.manage .li .acts .btn[disabled] { opacity: 0.35; cursor: default; }
.lesson-row, .link-row { display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.link-row { grid-template-columns: 1fr; }
.lesson-row .dot { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 50%; font-size: 12px; }
.lesson-row .acts, .link-row .acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.lesson-row .acts .consent, .link-row .acts .consent { margin: 0 auto 0 0; }
.manage textarea { width: 100%; }
.manage [hidden] { display: none !important; }
.manage .mtabs a { text-decoration: none; }
@media (max-width: 640px) { .manage .li { flex-direction: column; align-items: flex-start; } .manage .li .acts { flex-wrap: wrap; } }

/* Get Recruited popup: Winning Email Templates */
dialog.sheet.wide { width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow-y: auto; }
.et { margin-top: 22px; }
.et-how { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.et-how span { font-size: 10px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 12px; color: var(--silver); }
.et-mail { border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; margin-bottom: 16px; }
.et-top { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.et-top b { font-family: var(--display, "Archivo Black"), sans-serif; font-weight: 400; text-transform: uppercase; letter-spacing: 0.06em; }
.et-top span { font-size: 12px; color: var(--muted); }
.et-top .btn { margin-left: auto; }
.et-subj { padding: 10px 16px; background: var(--panel-2); border-bottom: 1px solid var(--line); font-size: 13px; }
.et-subj b { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.et-subj em { font-style: normal; font-size: 12px; color: var(--muted); margin-left: 6px; }
.et-body { padding: 14px 16px 16px; font-size: 14px; line-height: 1.75; color: var(--silver); }
.et-body p + p { margin-top: 10px; }
.et f { color: var(--white); background: rgba(255,255,255,.1); border-radius: 4px; padding: 1px 5px; font-weight: 600; }
.et-tip { font-size: 12px; color: var(--muted); }
.et-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.et-exh { margin: 26px 0 12px; }
.et-ex { border: 1px dashed var(--line-2); border-radius: 12px; padding: 14px 16px 6px; margin-bottom: 14px; }
.et-ex-subj { font-weight: 600; display: flex; align-items: center; gap: 10px; }
.et-ex-to { font-size: 12px; color: var(--muted); margin-top: 2px; }
.et-ex .et-body { padding: 10px 0; font-size: 13px; }
.et-ex u { text-decoration: none; color: #7fb0ff; }
.et .hid { display: inline-block; width: 54px; height: 9px; border-radius: 3px; background: rgba(255,255,255,.18); vertical-align: 0; }
.et-why { font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); padding: 10px 0; }
.et-why b { color: var(--white); }

/* Templates popup reads like the PDF: white page, black type */
dialog.sheet.paper { background: #fff; color: #000; border-color: #000; }
dialog.sheet.paper::backdrop { background: rgba(0,0,0,.8); }
dialog.sheet.paper .x, dialog.sheet.paper .n, dialog.sheet.paper .lead, dialog.sheet.paper h2 { color: #000; }
.paper .et-how span { border-color: #000; color: #000; }
.paper .et-mail, .paper .et-ex { border: 1.5px solid #000; border-style: solid; }
.paper .et-top, .paper .et-subj, .paper .et-why { border-color: #000; }
.paper .et-subj { background: #fff; }
.paper .et-top span, .paper .et-subj b, .paper .et-subj em, .paper .et-ex-to, .paper .et-why, .paper .et-tip, .paper .eyebrow { color: #333; }
.paper .et-body { color: #111; }
.paper .et f { color: #000; background: none; padding: 0; font-weight: 700; }
.paper .et-why b { color: #000; }
.paper .et-ex u { color: #000; }
.paper .et .hid { background: #000; }
.paper .chip { border-color: #000; color: #000; background: #fff; }
.paper .btn.ghost { border-color: #000; color: #000; background: #fff; }
.paper .btn.ghost:hover { background: #000; color: #fff; }
.paper .btn.solid { background: #000; color: #fff; border-color: #000; }
.paper .btn.solid:hover { background: #222; }
.course-list .course-ch { padding: 16px 10px 6px; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); list-style: none; }
.course-list .course-ch:first-child { padding-top: 6px; }
