/* VAST Coaches Portal: styles translated from the Claude Design prototype. */

:root {
  --navy: #0B3275;
  --navy-dark: #082556;
  --navy-tint: #EEF2FA;
  --navy-soft: #D6DEEE;
  --pink: #E2559A;
  --pink-tint: #FCE8F2;
  --pink-text: #B3306F;
  --ink: #15171C;
  --text-2: #4A4E5A;
  --muted: #6B7080;
  --muted-2: #8A8F9C;
  --line: #E6E8EE;
  --line-soft: #F0F1F4;
  --line-chip: #E0E2E8;
  --input-line: #D6DCE8;
  --bg: #F5F6F9;
  --white: #FFFFFF;
  --good: #1E8A5A;
  --good-tint: #E5F4EC;
  --avg: #A86A00;
  --avg-bar: #E0A030;
  --avg-tint: #FFF3DC;
  --poor: #C2334D;
  --poor-tint: #FBE6EA;
  --shadow-card: 0 6px 20px rgba(11, 50, 117, 0.06);
  --shadow-card-hover: 0 10px 28px rgba(11, 50, 117, 0.14);
  --shadow-input: 0 6px 20px rgba(0, 0, 0, 0.06);
  --mob: 820px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); font-family: Ubuntu, sans-serif; color: var(--ink); -webkit-font-smoothing: antialiased; }
input, textarea, select, button { font-family: inherit; }
a { color: var(--navy); }
a:hover { color: var(--pink); }
button { cursor: pointer; }
[hidden] { display: none !important; }

.boot { min-height: 100vh; display: flex; align-items: center; justify-content: center; color: var(--muted); }

/* Reset for clickable elements rendered as <button> */
.plain-btn { background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; text-align: inherit; }

/* ---------- Responsive visibility ---------- */
@media (max-width: 819.98px) { .desk-only { display: none !important; } }
@media (min-width: 820px) { .mob-only { display: none !important; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 44px; padding: 0 22px; border-radius: 22px; border: 0;
  background: var(--navy); color: var(--white);
  font-weight: 700; font-size: 14px; letter-spacing: 0.5px; white-space: nowrap;
  text-decoration: none;
}
.btn:hover { background: var(--navy-dark); color: var(--white); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.4; cursor: default; }
.btn:disabled:hover { background: var(--navy); }
.btn--outline { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn--outline:hover { background: var(--navy-tint); color: var(--navy); }
.btn--sm { height: 38px; padding: 0 16px; border-radius: 19px; font-size: 13px; letter-spacing: 0; }
.btn--md { height: 40px; padding: 0 20px; border-radius: 20px; font-size: 13px; }
.btn--lg { height: 48px; padding: 0 26px; border-radius: 24px; }
.btn--block { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--navy); font-size: 14px; }
.link-btn:hover { color: var(--pink); }
.back-link { background: none; border: 0; padding: 0; font-size: 15px; color: var(--navy); font-weight: 500; align-self: flex-start; }

/* ---------- Badges / chips ---------- */
.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 10px; white-space: nowrap; }
.badge--lg { font-size: 13px; padding: 4px 12px; }
.badge--good { background: var(--good-tint); color: var(--good); }
.badge--avg { background: var(--avg-tint); color: var(--avg); }
.badge--poor { background: var(--poor-tint); color: var(--poor); }
.badge--info { background: var(--navy-tint); color: var(--navy); }
.badge--muted { background: var(--line-soft); color: var(--muted); }

/* Sample-data labelling for features whose live endpoints are deferred */
.sample-tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase; padding: 3px 8px; border-radius: 8px; background: var(--avg-tint); color: var(--avg); white-space: nowrap; }
.sample-banner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--white); border: 1px dashed var(--avg-bar); border-radius: 18px; padding: 12px 18px; font-size: 14px; color: var(--text-2); }
.note__source { font-size: 12px; font-weight: 700; color: var(--navy); }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  height: 38px; padding: 0 16px; border-radius: 19px; display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; background: var(--white); color: var(--text-2); border: 1px solid var(--line-chip);
}
.chip.is-on { background: var(--pink-tint); color: var(--pink-text); border-color: var(--pink); font-weight: 700; }
.chip__count { opacity: 0.75; }

.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.dot--good { background: var(--good); }
.dot--avg { background: var(--avg-bar); }
.dot--poor { background: var(--poor); }

/* ---------- Cards ---------- */
.card { background: var(--white); border-radius: 24px; padding: 24px 26px; box-shadow: var(--shadow-card); display: flex; flex-direction: column; }
.card--flush { padding: 0; overflow: hidden; }
.card-title { font-size: 18px; font-weight: 700; }
.card-title--lg { font-size: 20px; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.card-meta { font-size: 14px; color: var(--muted); }
.card-link { margin-top: auto; font-size: 15px; font-weight: 700; color: var(--navy); }
.clickable { cursor: pointer; }
.card.clickable:hover { box-shadow: var(--shadow-card-hover); }

.grid { display: grid; gap: 20px; }
.grid--stats { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid--300 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--320 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); align-items: start; }
.grid--280 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--240 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.stack { display: flex; flex-direction: column; gap: 20px; }

.empty { background: var(--white); border-radius: 24px; padding: 48px; text-align: center; font-size: 17px; color: var(--muted); }
.error-box { background: var(--poor-tint); color: var(--poor); border-radius: 18px; padding: 14px 20px; font-weight: 500; }
.form-error { font-size: 15px; color: var(--poor); font-weight: 500; }
.loading { padding: 40px; text-align: center; color: var(--muted); }

/* ---------- Search ---------- */
.search {
  height: 48px; width: 100%; max-width: 380px; border-radius: 24px; background: var(--white); box-shadow: var(--shadow-input);
  display: flex; align-items: center; gap: 12px; padding: 0 20px; color: var(--muted-2);
}
.search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-size: 15px; color: var(--ink); }
.search__clear { background: none; border: 0; font-size: 18px; color: var(--muted-2); padding: 0 2px; }

/* ---------- Login ---------- */
.login { min-height: 100vh; display: flex; background: var(--white); }
.login__main { flex: 1; display: flex; flex-direction: column; padding: 48px 96px; }
.login__version { font-size: 15px; font-weight: 700; color: var(--text-2); }
.login__form { margin: auto 0; width: 100%; max-width: 480px; align-self: center; display: flex; flex-direction: column; padding: 40px 0; }
.login__hello { font-size: 112px; font-weight: 500; color: var(--navy); line-height: 1; letter-spacing: 2px; text-align: center; }
.login__sub { font-size: 24px; margin-top: 16px; text-align: center; }
.login__fields { display: flex; flex-direction: column; gap: 24px; margin-top: 48px; }
.pill-input {
  height: 60px; border-radius: 30px; background: var(--white); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  display: flex; align-items: center; gap: 18px; padding: 0 26px;
}
.pill-input input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-size: 18px; font-weight: 500; color: var(--ink); }
.pill-input:focus-within { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), 0 0 0 2px var(--navy); }
.pw-toggle { background: none; border: 0; padding: 0; display: flex; }
.login__row { display: flex; justify-content: space-between; align-items: center; font-size: 16px; color: var(--muted-2); font-weight: 500; margin-top: -6px; }
.remember { display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 0; font: inherit; color: inherit; }
.remember__ring { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--line-chip); display: flex; align-items: center; justify-content: center; }
.remember__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--pink); }
.forgot { background: none; border: 0; padding: 0; font: inherit; color: inherit; }
.forgot:hover { color: var(--navy); }
.login__info { font-size: 15px; font-weight: 500; color: var(--navy); background: var(--navy-tint); border-radius: 14px; padding: 12px 16px; }
.signin { display: flex; justify-content: flex-end; align-items: center; gap: 24px; margin-top: 8px; background: none; border: 0; padding: 0; color: var(--ink); }
.signin__label { font-size: 24px; font-weight: 700; letter-spacing: 1px; }
.signin__arrow { width: 110px; height: 60px; border-radius: 30px; background: var(--navy); display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px rgba(11, 50, 117, 0.25); }
.signin:hover .signin__arrow { background: var(--navy-dark); }
.signin:disabled { opacity: 0.6; cursor: default; }
.login__help { font-size: 14px; color: var(--muted-2); text-align: center; }
.login__help a { color: var(--ink); font-weight: 500; }
.login__brand { width: 44%; background: var(--navy); color: var(--white); display: flex; flex-direction: column; justify-content: flex-end; padding: 80px; }
.login__brand-mark { font-size: 16px; letter-spacing: 4px; font-weight: 500; }
.login__brand-title { font-size: 56px; font-weight: 500; line-height: 1.1; margin-top: 16px; }
.login__brand-text { font-size: 20px; line-height: 1.5; margin-top: 20px; max-width: 440px; color: var(--navy-soft); text-wrap: pretty; }
@media (max-width: 819.98px) {
  .login__main { padding: 48px 24px 32px; }
  .login__hello { font-size: 72px; }
  .login__brand { display: none; }
}

/* ---------- App shell ---------- */
.shell { display: flex; min-height: 100vh; background: var(--bg); }
.sidebar {
  width: 240px; flex-shrink: 0; height: 100vh; position: sticky; top: 0; background: var(--white);
  border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 32px 16px 24px;
}
.sidebar__brand { padding: 0 12px 36px; display: flex; flex-direction: column; }
.sidebar__logo { font-size: 32px; font-weight: 500; color: var(--navy); letter-spacing: 3px; line-height: 1; }
.sidebar__tag { font-size: 11px; color: var(--muted); letter-spacing: 1.6px; text-transform: uppercase; font-weight: 500; margin-top: 6px; }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav__item {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px;
  color: var(--muted); font-weight: 500; font-size: 15px; text-decoration: none;
}
.nav__item:hover { color: var(--navy); }
.nav__item.is-on { background: var(--navy-tint); color: var(--navy); font-weight: 700; }
.nav__marker { margin-left: auto; width: 7px; height: 7px; border-radius: 50%; background: var(--pink); }
.nav__count { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--white); background: var(--poor); border-radius: 10px; padding: 2px 8px; }
.sidebar__user { margin-top: auto; display: flex; align-items: center; gap: 12px; padding: 14px 12px; border-top: 1px solid var(--line); }
.avatar {
  border-radius: 50%; background: var(--navy-tint); color: var(--navy); display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; flex-shrink: 0; width: 40px; height: 40px;
}
.avatar--solid { background: var(--navy); color: var(--white); }
.avatar--sm { width: 38px; height: 38px; }
.avatar--xl { width: 72px; height: 72px; font-size: 22px; }
@media (max-width: 819.98px) { .avatar--xl { width: 56px; height: 56px; } }
.sidebar__name { font-size: 14px; font-weight: 700; }
.sidebar__signout { background: none; border: 0; padding: 0; font-size: 12px; color: var(--muted); text-align: left; }
.sidebar__signout:hover { color: var(--poor); }

.main { flex: 1; min-width: 0; padding: 40px 48px 56px; display: flex; flex-direction: column; gap: 22px; }
@media (max-width: 819.98px) {
  .sidebar { display: none; }
  .main { padding: 28px 16px 110px; }
}

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; height: 76px; background: var(--white); border-top: 1px solid var(--line);
  display: flex; justify-content: space-around; align-items: flex-start; padding-top: 10px; font-size: 11px; font-weight: 500; z-index: 10;
}
/* Items share the width so five fit on a phone (max 76px each, as before). */
.tabbar__item { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1 1 0; min-width: 0; max-width: 76px; color: var(--muted-2); text-decoration: none; position: relative; }
.tabbar__item span:not(.tabbar__count) { white-space: nowrap; }
.tabbar__item.is-on { color: var(--navy); }
.tabbar__count { position: absolute; top: -4px; left: calc(50% + 6px); font-size: 10px; font-weight: 700; color: var(--white); background: var(--poor); border-radius: 9px; padding: 1px 6px; }
.mob-signout { align-self: flex-end; background: none; border: 0; font-size: 13px; color: var(--muted); padding: 0; }

/* ---------- Page header ---------- */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.page-head__text { display: flex; flex-direction: column; gap: 6px; }
.page-sub { font-size: 15px; color: var(--muted); }
.page-title { font-size: 36px; font-weight: 500; color: var(--navy); margin: 0; }
@media (max-width: 819.98px) { .page-title { font-size: 28px; } }

/* ---------- Dashboard ---------- */
.stat { border-radius: 24px; padding: 26px; display: flex; flex-direction: column; gap: 8px; min-height: 180px; background: var(--white); box-shadow: var(--shadow-card); text-decoration: none; color: inherit; }
.stat:hover { box-shadow: var(--shadow-card-hover); color: inherit; }
.stat--navy { background: var(--navy); color: var(--white); box-shadow: none; }
.stat--navy:hover { background: var(--navy-dark); color: var(--white); box-shadow: none; }
.stat__label { font-size: 15px; font-weight: 500; color: var(--muted); }
.stat--navy .stat__label { color: var(--navy-soft); }
.stat__value { font-size: 72px; font-weight: 500; line-height: 1; color: var(--navy); }
.stat--navy .stat__value { color: var(--white); }
.stat__value--poor { color: var(--poor); }
.stat__row { display: flex; align-items: baseline; gap: 12px; }
.stat__aside { font-size: 15px; color: var(--muted); }
.stat__flag { font-size: 13px; font-weight: 700; color: var(--poor); background: var(--poor-tint); padding: 4px 10px; border-radius: 10px; }
.stat__link { margin-top: auto; font-size: 15px; font-weight: 700; color: var(--navy); }
.stat--navy .stat__link { color: var(--white); }
.stat__title { font-size: 20px; font-weight: 700; }
.stat__value--ink { color: var(--ink); margin-top: 16px; }

.commit-card { grid-column: span 2; gap: 22px; padding: 26px; }
@media (max-width: 819.98px) { .commit-card { grid-column: span 1; } }
.commit-bar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; gap: 3px; }
.commit-bar > div:nth-child(1) { background: var(--good); }
.commit-bar > div:nth-child(2) { background: var(--avg-bar); }
.commit-bar > div:nth-child(3) { background: var(--poor); }
.commit-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.commit-tile { border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; }
.commit-tile:hover { border-color: var(--navy); color: inherit; }
.commit-tile__label { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; }
.commit-tile__value { font-size: 44px; font-weight: 500; line-height: 1.1; }
.commit-tile__range { font-size: 13px; color: var(--muted); }
.text-good { color: var(--good); }
.text-avg { color: var(--avg); }
.text-poor { color: var(--poor); }
.text-navy { color: var(--navy); }
.text-muted { color: var(--muted); }

/* ---------- Tables (CSS grid rows) ---------- */
.trow { display: grid; gap: 12px; padding: 13px 26px; align-items: center; font-size: 15px; border-bottom: 1px solid var(--line-soft); }
.trow--head { padding: 14px 26px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.6px; border-bottom: 1px solid var(--line); }
a.trow, button.trow { color: inherit; text-decoration: none; width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left; font: inherit; font-size: 15px; }
a.trow:hover, button.trow:hover { background: #F8F9FC; color: inherit; }
.trow__foot { padding: 14px 26px; font-size: 14px; color: var(--muted); }
.users-grid { grid-template-columns: 2.2fr 0.6fr 0.9fr 1.4fr 1.1fr 1.4fr 24px; }
.person { display: flex; align-items: center; gap: 14px; }
.person__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.person__name { font-weight: 700; }
.person__sub { font-size: 13px; color: var(--muted); }
.pct { font-weight: 700; width: 44px; display: inline-block; }
.chev { color: var(--muted-2); font-size: 20px; }

/* Mobile list cards */
.mlist { display: flex; flex-direction: column; gap: 10px; }
.mcard { background: var(--white); border-radius: 18px; padding: 14px 16px; display: flex; align-items: center; gap: 12px; box-shadow: 0 4px 14px rgba(11, 50, 117, 0.05); text-decoration: none; color: inherit; }
.mcard:hover { color: inherit; }
.mcard__main { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.mcard__side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.mlist__foot { font-size: 13px; color: var(--muted); padding: 4px; }

/* ---------- Profile ---------- */
.profile-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.profile-head__text { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 200px; }
.profile-head__name { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.banner { border-radius: 18px; padding: 14px 20px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.banner--info { background: var(--navy-tint); --banner: var(--navy); }
.banner--poor { background: var(--poor-tint); --banner: var(--poor); }
.banner__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--banner); }
.banner__text { font-size: 15px; flex: 1; min-width: 200px; }
.banner__text b { color: var(--banner); }

.tabs { display: flex; gap: 32px; border-bottom: 1px solid var(--line-chip); font-size: 16px; font-weight: 500; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; flex-shrink: 0; }
.tabs__item { padding: 12px 0; white-space: nowrap; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; text-decoration: none; }
.tabs__item:hover { color: var(--navy); }
.tabs__item.is-on { color: var(--navy); font-weight: 700; border-bottom-color: var(--pink); }
@media (max-width: 819.98px) { .tabs { gap: 20px; font-size: 14px; } }

.kv { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 15px; }
.kv__k { color: var(--muted); }
.kv__v { font-weight: 500; text-align: right; overflow-wrap: anywhere; }

.meter-row { display: grid; grid-template-columns: 96px 1fr 48px; align-items: center; gap: 14px; font-size: 15px; }
.meter { height: 10px; border-radius: 5px; background: var(--line-soft); position: relative; overflow: hidden; flex: 1; }
.meter__fill { position: absolute; top: 0; bottom: 0; left: 0; border-radius: 5px; background: var(--navy); }
.meter__fill--good { background: var(--good); }
.meter__fill--avg { background: var(--avg-bar); }
.meter__fill--poor { background: var(--poor); }
.meter--thin { height: 8px; border-radius: 4px; }
.legend { font-size: 13px; color: var(--muted); }

.mini-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 16px; padding: 22px 26px; }
.mini-stat { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: inherit; }
.mini-stat:hover { color: inherit; }
.mini-stat:hover .mini-stat__value { color: var(--navy); }
.mini-stat__label, .mini-stat__sub { font-size: 13px; color: var(--muted); }
.mini-stat__value { font-size: 16px; font-weight: 700; }

/* Exercise history: Date, Time, Session, Ex code, Ex level, Rating (matches the Zing admin Session History) */
.sessions-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) 0.8fr 0.8fr 0.9fr 0.8fr 0.9fr; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); font-size: 15px; align-items: center; }
@media (max-width: 819.98px) {
  .sessions-grid { gap: 6px; font-size: 13px; grid-template-columns: minmax(0, 1.5fr) 0.9fr 0.8fr 0.9fr 0.7fr 0.9fr; }
  .sessions-grid--head { font-size: 10px; letter-spacing: 0.2px; }
}
.sessions-grid--head { padding: 8px 0; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.6px; border-bottom: 1px solid var(--line); }
.max-760 { max-width: 760px; }
.max-860 { max-width: 860px; }
.max-1100 { max-width: 1100px; }
.list-empty { padding: 28px 0; font-size: 15px; color: var(--muted); text-align: center; }

.assess-item { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap; }
.assess-item__text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 160px; }

.call-card { background: var(--white); border-radius: 18px; padding: 18px 20px; box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: 8px; }
.call-card__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.call-card__notes { font-size: 14px; line-height: 1.5; color: var(--text-2); white-space: pre-wrap; }

.textarea { min-height: 160px; border-radius: 16px; border: 2px solid var(--input-line); padding: 14px 16px; font-size: 16px; line-height: 1.5; resize: vertical; outline: none; color: var(--ink); width: 100%; }
.textarea:focus { border-color: var(--navy); }
.note-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.note { display: flex; flex-direction: column; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.note__meta { font-size: 13px; color: var(--muted); }
.note__meta b { color: var(--ink); }
.note__text { font-size: 15px; line-height: 1.5; white-space: pre-wrap; }

/* ---------- Assessment results ---------- */
.assess-grid { grid-template-columns: 1.7fr 0.8fr 0.9fr 0.9fr 1fr 0.7fr 1.6fr; padding: 18px 26px; font-size: 16px; }
.assess-grid.trow--head { padding: 14px 26px; font-size: 12px; }
.assess-sel { font-weight: 700; font-size: 20px; color: var(--navy); }
.pct-bar { display: flex; align-items: center; gap: 12px; }
.pct-bar__val { font-weight: 700; width: 44px; text-align: right; }
.summary { border-radius: 20px; padding: 18px 22px; display: flex; flex-direction: column; gap: 6px; }
.summary--good { background: var(--good-tint); }
.summary--good .summary__title { color: var(--good); }
.summary--good .summary__text { color: #2F4F40; }
.summary--avg { background: var(--avg-tint); }
.summary--avg .summary__title { color: var(--avg); }
.summary--avg .summary__text { color: #5A4520; }
.summary__title { font-size: 15px; font-weight: 700; }
.summary__text { font-size: 14px; }
.mresult { background: var(--white); border-radius: 18px; padding: 14px 16px; display: flex; flex-direction: column; gap: 9px; }
.mresult__head { display: flex; justify-content: space-between; align-items: baseline; }
.mresult__foot { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; flex-wrap: wrap; }

/* ---------- Self-assessment comparison (Assessment Results) ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sa-group { gap: 16px; }
.sa__heading { margin: 0; font: inherit; }
.sa__toggle {
  width: 100%; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; padding: 20px 26px;
  background: none; border: 0; text-align: left; font: inherit; color: inherit;
}
.sa__toggle:hover .card-title { color: var(--navy); }
.sa__chev { margin-left: auto; color: var(--navy); font-size: 14px; }
.sa__body { border-top: 1px solid var(--line); }
.sa__body > .list-empty { padding: 24px 26px; }
.sa__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 26px; font-size: 14px; }
.sa__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.sa__scroll:focus-visible { outline-offset: -2px; }
.sa-table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 15px; }
.sa-table th, .sa-table td { padding: 13px 16px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; min-width: 150px; }
.sa-table thead th { font-size: 12px; font-weight: 700; color: var(--muted); border-bottom: 1px solid var(--line); background: var(--white); vertical-align: bottom; }
.sa-table tbody tr:last-child > * { border-bottom: 0; }
.sa-table .sa-table__q { position: sticky; left: 0; z-index: 1; background: var(--white); min-width: 260px; max-width: 360px; padding-left: 26px; font-weight: 500; color: var(--ink); font-size: 15px; box-shadow: 1px 0 0 var(--line-soft); }
.sa-table thead .sa-table__q { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.6px; font-weight: 700; }
.sa-table__num { display: block; font-size: 13px; color: var(--ink); text-transform: none; letter-spacing: 0; }
.sa-table__base { margin-top: 4px; }
.sa-table__date { display: block; margin-top: 4px; font-weight: 500; text-transform: none; letter-spacing: 0; }
@media (max-width: 819.98px) {
  .sa__toggle, .sa__bar { padding-left: 16px; padding-right: 16px; }
  .sa-table { font-size: 14px; }
  .sa-table th, .sa-table td { min-width: 128px; padding: 11px 12px; }
  .sa-table .sa-table__q { min-width: 170px; max-width: 200px; padding-left: 16px; font-size: 14px; }
}

/* ---------- Coach Resources ---------- */
.res-filters { display: flex; align-items: flex-end; gap: 16px 24px; flex-wrap: wrap; }
.res-filters .field { min-width: 0; }
/* Table layout, matching the Users list: Resource | Type | Updated | Actions, with category rows between groups. */
.res-row { grid-template-columns: minmax(0, 3fr) minmax(0, 1.1fr) minmax(0, 0.8fr) 200px; align-items: center; }
.res-row__main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.res-row__title { font-weight: 700; }
.res-row__desc { font-size: 13px; color: var(--muted); }
.res-row__type { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.res-type-label { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); }
.res-type-label svg { color: var(--navy); flex-shrink: 0; }
.res-row__detail { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.res-row__date { color: var(--text-2); font-size: 14px; }
.res-row__actions { display: flex; justify-content: flex-end; align-items: center; gap: 18px; font-size: 14px; }
.res-act { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; color: var(--navy); text-decoration: none; white-space: nowrap; }
.res-act:hover { color: var(--pink); text-decoration: underline; }
.res-cat { display: flex; align-items: baseline; gap: 10px; padding: 12px 26px; background: var(--navy-tint); border-bottom: 1px solid var(--line-soft); }
.res-cat__name { margin: 0; font-size: 14px; font-weight: 700; color: var(--navy); }
.res-cat__count { font-size: 13px; color: var(--muted); }
@media (max-width: 819.98px) {
  .res-filters { flex-direction: column; align-items: stretch; }
  .res-filters select.field__input { width: 100%; min-width: 0; }
  /* Phone: each resource stacks as title, description, type line, then actions. */
  .res-row { display: flex; flex-direction: column; align-items: stretch; gap: 6px; padding: 14px 16px; }
  .res-row__type { flex-direction: row; flex-wrap: wrap; gap: 4px 10px; align-items: center; font-size: 14px; }
  .res-row__date { display: none; }
  .res-row__actions { justify-content: flex-start; padding-top: 2px; }
  .res-cat { padding: 10px 16px; }
  .res-table .trow__foot { padding: 12px 16px; }
}

/* ---------- Calls ---------- */
.call-group__head { padding: 12px 24px; font-size: 14px; font-weight: 700; }
.call-group__head--poor { background: var(--poor-tint); color: var(--poor); }
.call-group__head--info { background: var(--navy-tint); color: var(--navy); }
.call-row { display: flex; align-items: center; gap: 16px; padding: 14px 24px; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap; }
.call-row__col { display: flex; flex-direction: column; gap: 2px; }
.call-row__actions { display: flex; gap: 10px; margin-left: auto; }

/* Coaching call guide: six sections; AI call prep fills the same sections */
.guide { padding: 22px 26px; gap: 6px; }
.guide__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.guide__head h2 { margin: 0; }
.guide__icon { width: 30px; height: 30px; border-radius: 10px; background: var(--navy); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.guide__action { margin-left: auto; }
.guide__status { font-size: 13px; line-height: 1.5; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 20px; }
.guide__status .form-error { font-size: 13px; }
.guide__pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--navy); animation: vastpulse 1.2s ease-in-out infinite; }
.guide__body { transition: opacity 0.2s; }
.guide__body.is-busy { opacity: 0.5; }
.guide__overview { margin: 8px 0 4px; font-size: 15px; line-height: 1.5; color: var(--ink); padding: 12px 14px; border-radius: 12px; background: var(--navy-tint); }
.guide-sec { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.guide-sec:last-child { border-bottom: 0; }
.guide-sec__n { width: 26px; height: 26px; border-radius: 50%; background: var(--navy-tint); color: var(--navy); font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.guide-sec__body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.guide-sec__title { font-size: 15px; font-weight: 700; color: var(--navy); }
.guide-sec__obs { font-size: 14px; line-height: 1.5; color: var(--text-2); padding: 8px 12px; border-radius: 10px; background: var(--bg); }
.guide-sec__prompt { font-size: 15px; line-height: 1.45; color: var(--ink); }
@keyframes vastpulse { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
.actions-end { display: flex; justify-content: flex-end; gap: 12px; flex-wrap: wrap; }

/* ---------- Commission ---------- */
.filters { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: 0.6px; text-transform: uppercase; }
.field__input { height: 46px; border-radius: 23px; border: 0; background: var(--white); box-shadow: var(--shadow-input); padding: 0 16px; font-size: 15px; font-weight: 500; color: var(--ink); outline: none; }
.field__input:focus { box-shadow: var(--shadow-input), 0 0 0 2px var(--navy); }
select.field__input { min-width: 200px; }
.go-btn { height: 46px; width: 80px; border-radius: 23px; font-size: 15px; letter-spacing: 1px; box-shadow: 0 10px 24px rgba(11, 50, 117, 0.25); }
.kpi { border-radius: 24px; padding: 22px 26px; display: flex; flex-direction: column; gap: 6px; background: var(--white); box-shadow: var(--shadow-card); }
.kpi--navy { background: var(--navy); color: var(--white); box-shadow: none; }
.kpi__label { font-size: 15px; font-weight: 500; color: var(--muted); }
.kpi--navy .kpi__label, .kpi--navy .kpi__sub { color: var(--navy-soft); }
.kpi__value { font-size: 40px; font-weight: 500; line-height: 1.1; color: var(--navy); }
.kpi--navy .kpi__value { color: var(--white); }
.kpi__sub { font-size: 13px; color: var(--muted); }
.notice { background: var(--avg-tint); border-radius: 24px; padding: 22px 26px; display: flex; gap: 14px; align-items: flex-start; }
.notice__title { font-size: 15px; font-weight: 700; color: #7A4E00; }
.notice__text { font-size: 14px; line-height: 1.5; color: #5A4520; }
.scroll-x { overflow-x: auto; }
.comm-table { min-width: 1180px; }
.comm-grid { grid-template-columns: 1.5fr 0.9fr 1fr 1fr 0.9fr 0.6fr 1fr 1fr 1fr 1.05fr 1.05fr; padding: 13px 24px; font-size: 14px; }
.comm-grid.trow--head { padding: 14px 24px; font-size: 11px; letter-spacing: 0.5px; line-height: 1.35; align-items: end; }
.comm-grid--total { background: var(--navy-tint); padding: 15px 24px; border-bottom: 0; }
.num { text-align: right; }
.strong { font-weight: 700; }
.muted-2 { color: var(--text-2); }
.mcomm { background: var(--white); border-radius: 18px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; width: 100%; border: 0; text-align: left; font: inherit; color: inherit; }
.mcomm__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 15px; font-weight: 700; }
.mcomm__detail { display: flex; flex-direction: column; border-top: 1px solid var(--line-soft); padding-top: 4px; }
.mcomm__kv { display: flex; justify-content: space-between; padding: 5px 0; font-size: 12px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%); background: var(--ink); color: var(--white);
  padding: 14px 22px; border-radius: 16px; font-size: 15px; font-weight: 500; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  z-index: 20; max-width: calc(100vw - 32px); display: flex; align-items: center; gap: 10px;
}
.toast::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--pink); flex-shrink: 0; }
@media (max-width: 819.98px) { .toast { bottom: 92px; } }

/* Visible keyboard focus everywhere */
:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
