.trainer-page {
  --trainer-purple: #9a78ff;
  --trainer-purple-strong: #7c55f5;
  --trainer-blue: #56c8ff;
  --trainer-surface: rgba(14, 17, 40, .72);
  --trainer-surface-strong: rgba(17, 20, 48, .92);
  --trainer-line: rgba(164, 139, 255, .2);
  min-height: 100svh;
  overscroll-behavior-y: auto;
  color: #f8f7ff;
  background:
    radial-gradient(circle at 72% 6%, rgba(126, 84, 246, .18), transparent 32rem),
    radial-gradient(circle at 14% 16%, rgba(64, 177, 255, .13), transparent 28rem),
    linear-gradient(180deg, #070916 0%, #0a0b1e 44%, #060711 100%);
}

.trainer-page [hidden] { display: none !important; }

.trainer-page::before {
  opacity: .35;
  background:
    linear-gradient(rgba(255,255,255,.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.012) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

.trainer-aurora {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  overflow-x: hidden;
  overflow-y: auto;
}

.trainer-aurora::before,
.trainer-aurora::after {
  content: "";
  position: absolute;
  width: 42rem;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(88px);
  opacity: .17;
}

.trainer-aurora::before {
  top: -20rem;
  right: -8rem;
  background: #865cff;
}

.trainer-aurora::after {
  left: -20rem;
  top: 34rem;
  background: #3faeff;
}

.trainer-header {
  position: sticky;
  z-index: 30;
  top: 0;
  border-bottom: 1px solid rgba(158, 136, 255, .12);
  background: rgba(7, 9, 22, .8);
  backdrop-filter: blur(22px) saturate(1.25);
}

.trainer-nav {
  width: min(1500px, calc(100% - 32px));
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.trainer-page .brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  clip-path: circle(26%);
}

.trainer-page .brand-text span { color: var(--trainer-purple); }

.trainer-nav-actions,
.billing-actions,
.dialog-actions,
.exercise-heading,
.section-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.trainer-nav-actions { justify-content: flex-end; }

.trainer-profile-control {
  position: relative;
  display: flex;
  align-items: center;
}

.trainer-profile-button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 3px;
  overflow: hidden;
  border: 1px solid rgba(102, 74, 190, .16);
  border-radius: 50%;
  color: #fff;
  background: #fff;
  box-shadow: 0 8px 24px rgba(44, 34, 81, .1);
  cursor: pointer;
  transition:
    transform .2s var(--ease-out),
    border-color .2s ease,
    box-shadow .2s ease;
}

.trainer-profile-button:hover,
.trainer-profile-control.is-open .trainer-profile-button {
  transform: translateY(-1px);
  border-color: rgba(108, 70, 217, .42);
  box-shadow: 0 10px 28px rgba(81, 55, 166, .16);
}

.trainer-profile-button:focus-visible {
  outline: 0;
  box-shadow:
    0 0 0 4px rgba(124, 85, 245, .16),
    0 10px 28px rgba(81, 55, 166, .16);
}

.trainer-profile-button img,
.trainer-profile-button > span {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.trainer-profile-button img {
  display: block;
  object-fit: cover;
  background: #eeecf6;
}

.trainer-profile-button > span {
  display: grid;
  place-items: center;
  font-size: .82rem;
  font-weight: 850;
  letter-spacing: .03em;
  background: linear-gradient(145deg, #8b64f2, #6841dc);
  box-shadow: inset 0 1px rgba(255, 255, 255, .3);
}

.trainer-profile-menu {
  position: absolute;
  z-index: 80;
  top: calc(100% + 12px);
  right: 0;
  width: min(286px, calc(100vw - 24px));
  padding: 10px;
  border: 1px solid rgba(66, 54, 111, .12);
  border-radius: 20px;
  color: #242032;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 24px 70px rgba(39, 31, 71, .18);
  backdrop-filter: blur(22px) saturate(1.15);
  transform-origin: top right;
  animation: trainer-profile-menu-in .18s var(--ease-out) both;
}

.trainer-profile-menu::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 16px;
  width: 11px;
  height: 11px;
  border-top: 1px solid rgba(66, 54, 111, .12);
  border-left: 1px solid rgba(66, 54, 111, .12);
  background: #fff;
  transform: rotate(45deg);
}

.trainer-profile-summary {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  padding: 8px 9px 13px;
  border-bottom: 1px solid rgba(64, 53, 104, .09);
}

.trainer-profile-summary > span:last-child {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.trainer-profile-summary strong,
.trainer-profile-summary small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trainer-profile-summary strong {
  font-size: .94rem;
  line-height: 1.2;
}

.trainer-profile-summary small {
  color: #7c7688;
  font-size: .75rem;
}

.trainer-profile-menu-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .04em;
  background: linear-gradient(145deg, #8b64f2, #6841dc);
}

.trainer-profile-menu nav {
  display: grid;
  gap: 3px;
  padding-top: 7px;
}

.trainer-profile-menu nav a,
.trainer-profile-menu nav button {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 9px;
  border: 0;
  border-radius: 13px;
  color: #312c40;
  text-align: left;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}

.trainer-profile-menu nav a:hover,
.trainer-profile-menu nav a:focus-visible,
.trainer-profile-menu nav button:hover,
.trainer-profile-menu nav button:focus-visible {
  outline: 0;
  color: #5734c6;
  background: rgba(119, 78, 223, .08);
}

.trainer-profile-menu nav > * > span:first-child {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #6945d3;
  font-weight: 800;
  background: rgba(118, 77, 221, .09);
}

.trainer-profile-menu nav > * > span:last-child {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.trainer-profile-menu nav strong {
  font-size: .84rem;
  line-height: 1.25;
}

.trainer-profile-menu nav small {
  color: #888292;
  font-size: .7rem;
  line-height: 1.25;
}

.trainer-profile-menu #logout-button {
  margin-top: 2px;
  border-top: 1px solid rgba(64, 53, 104, .08);
  border-radius: 0 0 13px 13px;
  color: #a43650;
}

.trainer-profile-menu #logout-button > span:first-child {
  color: #bd3f58;
  background: rgba(196, 65, 91, .08);
}

@keyframes trainer-profile-menu-in {
  from { opacity: 0; transform: translateY(-5px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.text-link {
  color: #bdb9d2;
  font-weight: 650;
  font-size: .9rem;
}

.text-link:hover { color: #fff; }

.trainer-main {
  width: min(1500px, calc(100% - 32px));
  padding-block: 28px 90px;
}

.trainer-main.has-sidebar {
  display: block;
  padding-inline-start: 74px;
}

.trainer-main-content {
  min-width: 0;
}

.trainer-main .trainer-main-content {
  width: min(1240px, 100%);
  margin-inline: auto;
}

.trainer-sidebar {
  width: 68px;
  position: fixed;
  z-index: 44;
  top: 76px;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  padding: 16px 10px 14px;
  border: 0;
  border-right: 1px solid rgba(160, 137, 255, .17);
  border-radius: 0 18px 18px 0;
  background:
    radial-gradient(circle at 18% 0, rgba(135, 91, 255, .13), transparent 28rem),
    rgba(8, 10, 25, .96);
  box-shadow: 12px 0 46px rgba(0, 0, 0, 0);
  backdrop-filter: blur(24px) saturate(1.15);
  overflow-x: hidden;
  overflow-y: auto;
  transition:
    width .28s var(--ease-out),
    box-shadow .28s ease;
}

.sidebar-open .trainer-sidebar {
  width: 258px;
  box-shadow: 18px 0 58px rgba(0, 0, 0, .36);
}

.trainer-sidebar-heading {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 0 2px 12px;
}

.trainer-sidebar-heading .trainer-kicker {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-width .24s var(--ease-out), opacity .16s ease;
  white-space: nowrap;
}

.trainer-sidebar-toggle {
  width: 44px;
  height: 42px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 11px;
  color: #aaa5bc;
  background: transparent;
  cursor: pointer;
  font-size: .8rem;
  letter-spacing: .1em;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}

.trainer-sidebar-toggle:hover {
  color: #fff;
  border-color: rgba(164, 139, 255, .18);
  background: rgba(123, 87, 227, .14);
}

.sidebar-open .trainer-sidebar-toggle {
  color: #fff;
  border-color: rgba(164, 139, 255, .22);
  background: rgba(116, 82, 219, .2);
}

.trainer-side-nav {
  display: grid;
  gap: 6px;
}

.trainer-side-nav a {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 2px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #9692aa;
  font-size: .82rem;
  font-weight: 750;
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s var(--ease-out);
}

.trainer-side-nav a:hover {
  color: #f7f5ff;
  transform: none;
  background: rgba(255, 255, 255, .035);
}

.trainer-side-nav a.is-active {
  color: #fff;
  border-color: rgba(164, 139, 255, .18);
  background: linear-gradient(135deg, rgba(133, 88, 247, .24), rgba(83, 66, 176, .12));
}

.trainer-side-nav a span {
  width: 44px;
  height: 36px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #b9a6ff;
  background: rgba(142, 100, 255, .09);
  font-size: 1rem;
}

.trainer-side-nav a b {
  max-width: 0;
  overflow: hidden;
  font: inherit;
  opacity: 0;
  text-overflow: ellipsis;
  transition: max-width .24s var(--ease-out), opacity .16s ease;
  white-space: nowrap;
}

.trainer-sidebar-footer {
  min-width: 220px;
  padding: 15px 10px 6px;
  border-top: 1px solid rgba(158, 136, 255, .12);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-8px);
  transition: opacity .16s ease, transform .24s var(--ease-out);
}

.sidebar-access-status {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid rgba(77, 224, 183, .2);
  border-radius: 999px;
  color: #7ee9ca;
  background: rgba(41, 178, 139, .1);
  font-size: .68rem;
  font-weight: 800;
}

.trainer-sidebar-footer p {
  margin: 12px 0 0;
  color: #77748b;
  font-size: .7rem;
  line-height: 1.5;
}

.sidebar-open .trainer-sidebar-heading .trainer-kicker,
.sidebar-open .trainer-side-nav a b {
  max-width: 170px;
  opacity: 1;
}

.sidebar-open .trainer-sidebar-footer {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

@media (hover: hover) and (pointer: fine) {
  .trainer-sidebar:hover {
    width: 258px;
    box-shadow: 18px 0 58px rgba(0, 0, 0, .36);
  }

  .trainer-sidebar:hover .trainer-sidebar-heading .trainer-kicker,
  .trainer-sidebar:hover .trainer-side-nav a b {
    max-width: 170px;
    opacity: 1;
  }

  .trainer-sidebar:hover .trainer-sidebar-footer {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
  }
}

.dashboard-anchor {
  scroll-margin-top: 104px;
}

.trainer-kicker {
  margin: 0;
  color: #9f8aff;
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .18em;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
  gap: 26px;
}

.auth-card,
.access-notes,
.invite-banner,
.workspace-status,
.subscription-gate,
.dashboard-section,
.client-showcase,
.visual-panel,
.programs-showcase,
.program-dialog {
  border: 1px solid var(--trainer-line);
  background: linear-gradient(145deg, rgba(21, 23, 53, .86), rgba(10, 12, 29, .78));
  box-shadow: 0 28px 90px rgba(0,0,0,.22), inset 0 1px rgba(255,255,255,.035);
}

.auth-card,
.access-notes {
  border-radius: 30px;
  padding: clamp(24px, 4vw, 42px);
}

.auth-tabs {
  display: inline-flex;
  gap: 5px;
  padding: 5px;
  margin-bottom: 28px;
  border: 1px solid rgba(163, 141, 255, .16);
  border-radius: 999px;
  background: rgba(6, 7, 18, .7);
}

.auth-tab {
  border: 0;
  border-radius: 999px;
  padding: 10px 17px;
  color: #8f8ca2;
  background: transparent;
  font: inherit;
  font-size: .86rem;
  font-weight: 760;
  cursor: pointer;
}

.auth-tab.is-active {
  color: #fff;
  background: rgba(139, 99, 255, .26);
  box-shadow: inset 0 0 0 1px rgba(175, 151, 255, .18);
}

.oauth-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.oauth-button {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(167, 147, 255, .2);
  border-radius: 15px;
  color: #f7f6ff;
  background: rgba(7, 8, 21, .68);
  font: inherit;
  font-size: .8rem;
  font-weight: 760;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s var(--ease-out);
}

.oauth-button:hover {
  transform: translateY(-1px);
  border-color: rgba(177, 158, 255, .42);
  background: rgba(19, 19, 43, .84);
}

.oauth-button:disabled {
  cursor: wait;
  opacity: .58;
  transform: none;
}

.oauth-mark {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
}

.oauth-mark-google {
  border-radius: 50%;
  color: #80b7ff;
  background: rgba(71, 128, 255, .13);
  font-size: .82rem;
  font-weight: 900;
}

.oauth-mark-apple {
  fill: currentColor;
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
  color: #77748b;
  font-size: .68rem;
  font-weight: 720;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  background: rgba(160, 139, 246, .13);
}

.field {
  display: grid;
  gap: 7px;
}

.field + .field { margin-top: 16px; }

.field label {
  color: #b8b4cb;
  font-size: .76rem;
  font-weight: 760;
  letter-spacing: .03em;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid rgba(158, 139, 242, .18);
  border-radius: 15px;
  outline: none;
  padding: 13px 14px;
  color: #fff;
  background: rgba(7, 8, 20, .72);
  font: inherit;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.field textarea {
  min-height: 92px;
  resize: vertical;
}

.field select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #9d8ce7 50%),
    linear-gradient(135deg, #9d8ce7 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 2px),
    calc(100% - 13px) calc(50% - 2px);
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(161, 126, 255, .7);
  background: rgba(10, 10, 26, .9);
  box-shadow: 0 0 0 4px rgba(128, 87, 249, .12);
}

.primary-button,
.quiet-button,
.code-button,
.icon-button {
  border: 0;
  font: inherit;
  cursor: pointer;
  transition: transform .2s var(--ease-out), opacity .2s ease, background .2s ease;
}

.primary-button {
  min-height: 45px;
  padding: 11px 18px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #8e64ff, #6a4ae8);
  box-shadow: 0 12px 30px rgba(99, 65, 211, .24), inset 0 1px rgba(255,255,255,.18);
  font-weight: 790;
}

.primary-button:hover,
.quiet-button:hover,
.code-button:hover { transform: translateY(-1px); }

.primary-button:disabled,
.quiet-button:disabled,
.code-button:disabled {
  cursor: not-allowed;
  opacity: .42;
  transform: none;
}

.wide-button {
  width: 100%;
  margin-top: 22px;
}

.quiet-button {
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid rgba(165, 143, 255, .2);
  border-radius: 999px;
  color: #d9d5ea;
  background: rgba(27, 27, 56, .62);
  font-weight: 720;
}

.access-notes ul {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 24px 0;
  list-style: none;
}

.access-notes li {
  display: flex;
  align-items: center;
  gap: 13px;
  color: #d6d3e2;
}

.access-notes li span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #beaaff;
  background: rgba(135, 95, 250, .14);
  font-weight: 850;
}

.access-notes > p:last-child,
.form-message,
.dashboard-heading p,
.dashboard-row p,
.dashboard-section > p,
.dialog-heading p {
  color: #9591aa;
}

.form-message {
  min-height: 1.3em;
  margin: 12px 0 0;
  font-size: .84rem;
}

.form-message.is-error { color: #ff8f9f; }
.form-message.is-success { color: #71e9c4; }

.invite-banner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
  padding: 22px;
  border-radius: 24px;
}

.invite-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #d9cbff;
  background: rgba(139, 97, 255, .2);
  font-size: 1.25rem;
}

.invite-banner h2 { margin: 4px 0; font-size: 1.25rem; }
.invite-banner p:last-child { margin: 0; color: #a4a0b6; }

.workspace-status {
  min-height: 210px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  border-radius: 28px;
  padding: clamp(26px, 5vw, 46px);
}

.workspace-status-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(157, 131, 255, .25);
  border-radius: 19px;
  color: #b9a6ff;
  background: rgba(125, 84, 237, .12);
  font-size: 1.4rem;
}

.workspace-status-mark.is-loading {
  animation: trainer-spin 1.1s linear infinite;
}

.workspace-status h2 {
  margin: 6px 0;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  letter-spacing: -.04em;
}

.workspace-status p:last-child {
  margin: 0;
  color: #9894aa;
}

@keyframes trainer-spin {
  to { rotate: 360deg; }
}

.dashboard-shell {
  display: grid;
  gap: 28px;
}

.subscription-gate {
  min-height: 340px;
  display: grid;
  grid-template-columns: 128px minmax(0, 660px);
  align-items: center;
  justify-content: center;
  gap: clamp(22px, 4vw, 48px);
  border-radius: 34px;
  padding: clamp(28px, 5vw, 54px);
  text-align: left;
}

.subscription-gate h2 {
  margin: 8px 0 14px;
  font-size: clamp(2rem, 4.5vw, 4.1rem);
  line-height: 1;
  letter-spacing: -.05em;
}

.subscription-gate p {
  max-width: 620px;
  color: #a19db2;
}

.gate-orbit {
  position: relative;
  width: 122px;
  height: 122px;
  min-height: 122px;
  max-height: 122px;
  place-self: center;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.gate-orbit::before,
.gate-orbit span {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(166, 142, 255, .32);
  border-radius: 50%;
  box-shadow: 0 0 40px rgba(115, 78, 235, .13);
  pointer-events: none;
}

.gate-orbit span {
  inset: 13px;
  border-color: rgba(87, 199, 255, .23);
}

.gate-orbit img {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 158px;
  height: 158px;
  max-width: none;
  object-fit: contain;
  border-radius: 50%;
  clip-path: circle(30.5% at 50% 50%);
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 18px rgba(129, 97, 246, .28));
  animation: gate-logo-breathe 3.2s ease-in-out infinite;
}

@keyframes gate-logo-breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.035); }
}

.gate-inclusions,
.gate-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.gate-inclusions { margin: 22px 0; }

.trainer-plan-main {
  width: min(1060px, calc(100% - 32px));
  min-height: calc(100vh - 106px);
  display: grid;
  place-items: center;
  padding: 56px 0 72px;
}

.trainer-plan-card {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: clamp(32px, 7vw, 88px);
  align-items: center;
  padding: clamp(32px, 6vw, 72px);
  border: 1px solid rgba(158, 134, 255, .2);
  border-radius: 34px;
  background:
    radial-gradient(circle at 82% 18%, rgba(120, 78, 236, .18), transparent 36%),
    linear-gradient(145deg, rgba(24, 23, 53, .94), rgba(10, 13, 32, .96));
  box-shadow: 0 34px 100px rgba(0, 0, 0, .32);
}

.trainer-plan-card h1 {
  margin: 10px 0 18px;
  max-width: 680px;
  font-size: clamp(2.7rem, 6vw, 5.8rem);
  line-height: .94;
  letter-spacing: -.065em;
}

.trainer-plan-card > div > p:not(.trainer-kicker) {
  max-width: 640px;
  color: #aaa6ba;
}

.trainer-plan-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.trainer-plan-summary {
  padding: 28px;
  border: 1px solid rgba(164, 141, 255, .22);
  border-radius: 26px;
  background: rgba(11, 12, 31, .72);
}

.trainer-plan-price {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-bottom: 22px;
}

.trainer-plan-price strong {
  font-size: clamp(3rem, 7vw, 5rem);
  line-height: .8;
  letter-spacing: -.06em;
}

.trainer-plan-price span {
  color: #aaa6ba;
}

.trainer-plan-list {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0 0 26px;
  list-style: none;
  color: #d9d6e3;
}

.trainer-plan-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.trainer-plan-list li::before {
  content: "✓";
  color: #9b75ff;
  font-weight: 900;
}

.trainer-plan-status {
  min-height: 1.5em;
  margin: 14px 0 0;
  color: #aaa6ba;
  font-size: .9rem;
}

.trainer-plan-status.is-error {
  color: #ff9da8;
}

@media (max-width: 780px) {
  .trainer-plan-card {
    grid-template-columns: 1fr;
    padding: 30px 24px;
  }
}

.gate-inclusions span {
  padding: 8px 11px;
  border: 1px solid rgba(164, 140, 255, .15);
  border-radius: 999px;
  color: #c8c1dc;
  background: rgba(25, 24, 53, .62);
  font-size: .72rem;
  font-weight: 730;
}

.gate-note {
  margin: 16px 0 0;
  font-size: .75rem;
}

.dashboard-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 26px;
  border: 1px solid rgba(162, 139, 255, .16);
  border-radius: 24px;
  background:
    radial-gradient(circle at 80% 0, rgba(124, 78, 240, .16), transparent 40%),
    linear-gradient(145deg, rgba(20, 23, 50, .9), rgba(9, 11, 28, .8));
  box-shadow: 0 24px 70px rgba(0, 0, 0, .18), inset 0 1px rgba(255, 255, 255, .03);
}

.dashboard-heading h2 {
  margin: 5px 0 6px;
  font-size: clamp(2rem, 3vw, 2.9rem);
  letter-spacing: -.045em;
}

.dashboard-heading p { margin: 0; }

.overview-stat-grid {
  display: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.trainer-page[data-trainer-view="overview"] [data-detail-page-heading] {
  display: none;
}

.trainer-page[data-trainer-view="overview"] .overview-stat-grid {
  display: grid;
}

.overview-stat-grid article {
  min-width: 0;
  min-height: 146px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  border: 1px solid rgba(155, 137, 235, .14);
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0, rgba(125, 81, 235, .13), transparent 46%),
    rgba(10, 13, 31, .64);
  box-shadow: inset 0 1px rgba(255, 255, 255, .025);
}

.overview-stat-grid article:nth-child(2) {
  background:
    radial-gradient(circle at 100% 0, rgba(50, 153, 223, .13), transparent 46%),
    rgba(10, 13, 31, .64);
}

.overview-stat-grid article:nth-child(3) {
  background:
    radial-gradient(circle at 100% 0, rgba(73, 202, 167, .1), transparent 46%),
    rgba(10, 13, 31, .64);
}

.overview-stat-grid article:nth-child(4) {
  background:
    radial-gradient(circle at 100% 0, rgba(220, 98, 189, .11), transparent 46%),
    rgba(10, 13, 31, .64);
}

.overview-stat-icon {
  width: 39px;
  height: 39px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #c7b7ff;
  background: rgba(126, 87, 232, .13);
  font-weight: 850;
}

.overview-stat-grid article > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.overview-stat-grid strong,
.overview-stat-grid small {
  display: block;
}

.overview-stat-grid strong {
  color: #f5f2ff;
  font-size: clamp(1.9rem, 3vw, 2.55rem);
  line-height: .95;
  letter-spacing: -.05em;
}

.overview-stat-grid small {
  color: #b2adc2;
  font-size: .76rem;
  font-weight: 760;
}

.overview-stat-grid p {
  margin: 6px 0 0;
  overflow: hidden;
  color: #706c80;
  font-size: .65rem;
  line-height: 1.45;
  text-overflow: ellipsis;
}

.status-chip,
.subtle-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 13px;
  border: 1px solid rgba(163, 142, 250, .18);
  border-radius: 999px;
  color: #c8baff;
  background: rgba(122, 83, 231, .12);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .04em;
}

.status-chip.is-active {
  color: #7eebcc;
  border-color: rgba(75, 225, 181, .22);
  background: rgba(36, 184, 142, .1);
}

.client-showcase,
.programs-showcase,
.macro-showcase,
.visual-panel {
  border-radius: 25px;
  background:
    linear-gradient(145deg, rgba(16, 20, 46, .9), rgba(6, 9, 24, .78)),
    radial-gradient(circle at 85% 0, rgba(105, 72, 234, .13), transparent 45%);
}

.client-showcase,
.programs-showcase,
.macro-showcase {
  padding: clamp(18px, 3vw, 26px);
}

.client-showcase h3,
.programs-showcase h3,
.macro-showcase h3,
.visual-panel h3 {
  margin: 5px 0 0;
  font-size: 1.3rem;
  letter-spacing: -.025em;
}

.client-deck {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 326px);
  gap: 10px;
  margin-top: 18px;
  padding-bottom: 5px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline proximity;
  scrollbar-color: rgba(132, 102, 239, .44) rgba(24, 28, 57, .46);
  scrollbar-width: thin;
}

.client-deck::-webkit-scrollbar { height: 7px; }
.client-deck::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(24, 28, 57, .46);
}
.client-deck::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(132, 102, 239, .44);
}

.client-card {
  position: relative;
  min-width: 0;
  display: grid;
  gap: 13px;
  align-content: start;
  padding: 16px;
  border: 1px solid rgba(143, 161, 224, .16);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(11, 17, 39, .94), rgba(7, 10, 26, .84)),
    radial-gradient(circle at 90% 8%, rgba(94, 90, 237, .15), transparent 46%);
  box-shadow: inset 0 1px rgba(255,255,255,.025);
  scroll-snap-align: start;
}

.client-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  border-radius: 18px 0 0 18px;
  background: linear-gradient(180deg, #56c8ff, #7957f4 58%, transparent);
  opacity: .8;
}

.client-card-profile {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
}

.client-card-profile > div:last-child {
  min-width: 0;
}

.client-card-profile strong,
.client-card-profile small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-card-profile strong {
  font-size: .92rem;
  letter-spacing: -.01em;
}

.client-card-profile small {
  margin-top: 2px;
  color: #858297;
  font-size: .67rem;
}

.client-sync-state {
  width: fit-content;
  padding: 5px 8px;
  border: 1px solid rgba(91, 193, 255, .13);
  border-radius: 999px;
  color: #83cfff;
  background: rgba(48, 142, 215, .08);
  font-size: .6rem;
  font-weight: 760;
}

.client-card-latest {
  min-height: 62px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 11px 12px;
  border: 1px solid rgba(147, 139, 222, .11);
  border-radius: 13px;
  background: rgba(4, 7, 18, .45);
}

.client-card-latest small,
.client-card-latest span {
  color: #77758a;
  font-size: .62rem;
}

.client-card-latest strong {
  overflow: hidden;
  color: #e6e3ef;
  font-size: .76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-card-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.client-card-stats > span {
  display: grid;
  gap: 1px;
  padding: 8px 10px;
  border-radius: 11px;
  background: rgba(32, 36, 72, .37);
}

.client-card-stats strong {
  color: #dcd6f7;
  font-size: .8rem;
}

.client-card-stats small {
  color: #77748a;
  font-size: .58rem;
}

.coach-overview-grid {
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(0, 1.55fr);
  gap: 16px;
}

.visual-panel {
  min-width: 0;
  padding: clamp(20px, 3vw, 28px);
}

.visual-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.capacity-panel {
  display: grid;
  justify-items: center;
  align-content: space-between;
  gap: 22px;
}

.capacity-panel .visual-panel-heading {
  width: 100%;
}

.capacity-ring {
  --capacity-fill: 0deg;
  width: min(190px, 78%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    conic-gradient(
      from -90deg,
      #50c4ff 0deg,
      #8d5bff var(--capacity-fill),
      rgba(54, 68, 103, .48) var(--capacity-fill),
      rgba(54, 68, 103, .48) 360deg
    );
  box-shadow:
    0 0 36px rgba(73, 107, 255, .16),
    inset 0 0 20px rgba(127, 93, 255, .11);
}

.capacity-ring > div {
  width: 76%;
  aspect-ratio: 1;
  display: grid;
  place-content: center;
  justify-items: center;
  border: 1px solid rgba(149, 148, 214, .1);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 28%, #111831, #080b1b 70%);
  box-shadow: 0 12px 40px rgba(0,0,0,.38);
}

.capacity-ring strong {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  line-height: .9;
  letter-spacing: -.07em;
}

.capacity-ring span {
  margin-top: 6px;
  color: #9d99ad;
  font-size: .76rem;
}

.capacity-ring span b {
  color: #c9c3db;
  font-weight: 750;
}

.capacity-ring small {
  margin-top: 2px;
  color: #62c6ff;
  font-size: .66rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.capacity-footer {
  display: grid;
  gap: 4px;
  text-align: center;
}

.capacity-footer strong {
  color: #84cdff;
  font-size: .84rem;
}

.capacity-footer span {
  color: #77758a;
  font-size: .65rem;
}

.strength-progress-panel {
  display: grid;
  align-content: start;
}

.progress-summary {
  min-height: 54px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
}

.progress-summary > div {
  display: grid;
  gap: 2px;
}

.progress-summary strong {
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  letter-spacing: -.045em;
}

.progress-summary small {
  color: #7f7b90;
  font-size: .65rem;
}

.trend-chip {
  width: fit-content;
  padding: 6px 9px;
  border: 1px solid rgba(156, 138, 245, .15);
  border-radius: 999px;
  color: #a8a1bd;
  background: rgba(89, 77, 153, .1);
  font-size: .62rem;
  font-weight: 780;
}

.trend-chip.is-up {
  color: #71e5c3;
  border-color: rgba(71, 213, 174, .18);
  background: rgba(29, 172, 132, .09);
}

.trend-chip.is-down {
  color: #ffb0bb;
  border-color: rgba(235, 104, 128, .17);
  background: rgba(197, 64, 91, .08);
}

.strength-chart-wrap {
  position: relative;
  min-height: 260px;
  margin-top: 10px;
}

.strength-progress-panel svg {
  width: 100%;
  min-height: 230px;
  display: block;
  overflow: visible;
}

.chart-grid-line {
  stroke: rgba(143, 159, 205, .12);
  stroke-width: 1;
}

.chart-axis-label {
  fill: #74758a;
  font-family: inherit;
  font-size: 10px;
}

.chart-axis-x {
  fill: #858398;
  font-weight: 650;
}

.chart-area { fill: url("#strength-area-fill"); }

.chart-line {
  fill: none;
  stroke: url("#strength-line-stroke");
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.chart-line-glow {
  opacity: .25;
  filter: url("#strength-line-glow");
  stroke-width: 7;
}

.chart-point {
  outline: none;
  cursor: default;
}

.chart-point-halo {
  fill: rgba(76, 147, 255, .15);
  opacity: 0;
  transition: opacity .18s ease;
}

.chart-point-dot {
  fill: #7acbff;
  stroke: #17254b;
  stroke-width: 2.5;
}

.chart-point:hover .chart-point-halo,
.chart-point:focus .chart-point-halo {
  opacity: 1;
}

.chart-tooltip {
  position: absolute;
  z-index: 4;
  translate: -50% calc(-100% - 12px);
  width: max-content;
  max-width: 210px;
  padding: 7px 9px;
  border: 1px solid rgba(143, 124, 241, .2);
  border-radius: 10px;
  color: #ece9fa;
  background: rgba(10, 11, 29, .94);
  box-shadow: 0 10px 32px rgba(0,0,0,.34);
  pointer-events: none;
  font-size: .64rem;
}

.chart-empty {
  min-height: 230px;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 24px;
  border: 1px dashed rgba(145, 128, 224, .14);
  border-radius: 18px;
  color: #858195;
  background: rgba(5, 8, 21, .34);
  text-align: center;
  font-size: .78rem;
}

.chart-caption {
  margin: 4px 0 0;
  color: #706d80;
  font-size: .64rem;
}

.program-card-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.program-card {
  min-width: 0;
  min-height: 112px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  padding: 15px;
  border: 1px solid rgba(143, 155, 210, .15);
  border-radius: 17px;
  background: rgba(5, 9, 23, .54);
}

.program-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #65baff;
  background: linear-gradient(145deg, rgba(39, 128, 235, .31), rgba(37, 65, 137, .16));
  font-size: 1.28rem;
  font-weight: 850;
}

.program-tone-1 .program-mark {
  color: #b276ff;
  background: linear-gradient(145deg, rgba(131, 56, 221, .36), rgba(61, 27, 124, .18));
}

.program-tone-2 .program-mark {
  color: #f07fd2;
  background: linear-gradient(145deg, rgba(186, 65, 146, .3), rgba(102, 36, 88, .17));
}

.program-card-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.program-card-copy small,
.program-card-copy span {
  overflow: hidden;
  color: #787589;
  font-size: .62rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.program-card-copy strong {
  display: -webkit-box;
  overflow: hidden;
  color: #eeebf6;
  font-size: .84rem;
  line-height: 1.28;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.section-heading-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

.compact-button {
  min-height: 36px;
  padding: 9px 13px;
  border-radius: 12px;
  font-size: .72rem;
}

.macro-layout {
  display: grid;
  grid-template-columns: minmax(300px, .78fr) minmax(0, 1.22fr);
  gap: 18px;
  margin-top: 18px;
}

.macro-form,
.macro-list {
  min-width: 0;
}

.macro-form {
  padding: 18px;
  border: 1px solid rgba(155, 131, 246, .16);
  border-radius: 19px;
  background: rgba(5, 8, 21, .42);
}

.macro-form-heading,
.macro-list-heading {
  display: grid;
  gap: 4px;
  margin-bottom: 15px;
}

.macro-form-heading strong,
.macro-list-heading strong {
  color: #efecf8;
  font-size: .9rem;
}

.macro-form-heading span,
.macro-list-heading span {
  color: #7f7b90;
  font-size: .68rem;
  line-height: 1.5;
}

.macro-target-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.macro-target-grid .field + .field {
  margin-top: 0;
}

.macro-form > .field,
.macro-form > .primary-button {
  margin-top: 12px;
}

.macro-form > .primary-button {
  width: 100%;
}

.macro-list {
  display: grid;
  gap: 10px;
}

.macro-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(143, 155, 210, .15);
  border-radius: 17px;
  background: rgba(5, 9, 23, .54);
}

.macro-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.macro-card-heading > div {
  display: grid;
  gap: 3px;
}

.macro-card-heading strong {
  color: #f1eef9;
  font-size: .86rem;
}

.macro-card-heading span,
.macro-card > p {
  color: #817d91;
  font-size: .66rem;
}

.macro-card > p {
  margin: 0;
  line-height: 1.55;
}

.macro-targets {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.macro-targets span {
  min-width: 0;
  display: grid;
  gap: 2px;
  padding: 9px;
  border: 1px solid rgba(151, 129, 237, .12);
  border-radius: 12px;
  background: rgba(116, 77, 225, .07);
}

.macro-targets strong {
  color: #ddd5ff;
  font-size: .78rem;
}

.macro-targets small {
  color: #777289;
  font-size: .57rem;
}

.macro-status {
  padding: 6px 9px;
  border-radius: 999px;
  color: #b9a6ff;
  background: rgba(126, 89, 234, .12);
  font-size: .6rem !important;
  font-weight: 820;
  text-transform: capitalize;
}

.macro-status.is-accepted {
  color: #73e9c5;
  background: rgba(42, 185, 143, .1);
}

.macro-status.is-declined,
.macro-status.is-revoked,
.macro-status.is-superseded {
  color: #9a96a8;
  background: rgba(140, 137, 153, .08);
}

.macro-card > .mini-button {
  justify-self: start;
}

.macro-empty {
  min-height: 170px;
}

.trainer-page[data-trainer-view="overview"] [data-macro-composer] {
  display: none;
}

.trainer-page[data-trainer-view="overview"] .macro-layout {
  grid-template-columns: 1fr;
}

.dashboard-empty {
  min-height: 112px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px dashed rgba(145, 128, 224, .16);
  border-radius: 17px;
  padding: 20px;
  color: #9692a6;
  background: rgba(5, 8, 21, .3);
}

.dashboard-empty > span {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #a795f1;
  background: rgba(117, 81, 220, .12);
}

.dashboard-empty strong {
  color: #d7d3e2;
  font-size: .84rem;
}

.dashboard-empty p {
  margin: 4px 0 0;
  color: #817d90;
  font-size: .7rem;
}

.client-empty {
  width: min(620px, calc(100vw - 76px));
}

.program-empty {
  grid-column: 1 / -1;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid rgba(159, 139, 249, .12);
}

.metric-strip article {
  min-height: 108px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px clamp(12px, 2vw, 24px);
}

.metric-strip article + article {
  border-left: 1px solid rgba(159, 139, 249, .12);
}

.metric-strip strong,
.metric-strip small {
  display: block;
}

.metric-strip strong { font-size: 1.75rem; letter-spacing: -.04em; }
.metric-strip small { color: #8f8ba1; font-size: .75rem; }

.metric-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #a88dff;
  background: rgba(127, 86, 244, .12);
}

.dashboard-row {
  min-height: 126px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(159, 139, 249, .12);
}

.dashboard-row h3,
.dashboard-section h3,
.roster-section h3,
.invites-section h3 {
  margin: 5px 0;
  font-size: 1.35rem;
}

.dashboard-row p { margin: 0; }

.stepper {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  border: 1px solid rgba(159, 139, 249, .17);
  border-radius: 18px;
  background: rgba(8, 8, 21, .56);
}

.stepper button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 13px;
  color: #dcd6ed;
  background: rgba(36, 33, 69, .72);
  font: inherit;
  font-size: 1.15rem;
  cursor: pointer;
}

.stepper span {
  min-width: 82px;
  text-align: center;
}

.stepper strong,
.stepper small { display: block; }
.stepper small { color: #817d93; font-size: .62rem; }

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, .82fr);
  gap: 22px;
}

.dashboard-section {
  border-radius: 26px;
  padding: 24px;
}

.section-title-row {
  justify-content: space-between;
}

.code-button {
  display: grid;
  gap: 2px;
  padding: 9px 13px;
  border: 1px solid rgba(156, 134, 246, .18);
  border-radius: 14px;
  color: #fff;
  background: rgba(8, 9, 23, .5);
  text-align: left;
}

.code-button small {
  color: #7f7a92;
  font-size: .6rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.code-button strong { color: #bdaaff; font-size: .82rem; }

.inline-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
  margin-top: 20px;
}

.entitlement-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(161, 142, 246, .1);
  font-size: .8rem;
}

.entitlement-line span { color: #8f8a9f; }
.entitlement-line strong { max-width: 210px; text-align: right; }

.roster-section,
.invites-section {
  padding-top: 8px;
}

.client-list,
.invite-list {
  display: grid;
  margin-top: 16px;
  border-top: 1px solid rgba(159, 139, 249, .12);
}

.empty-row {
  padding: 30px 0;
  color: #8f8b9f;
}

.client-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) repeat(2, minmax(130px, .65fr)) auto;
  align-items: center;
  gap: 20px;
  min-height: 104px;
  border-bottom: 1px solid rgba(159, 139, 249, .12);
}

.client-person {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.client-avatar {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(169, 146, 255, .2);
  border-radius: 17px;
  color: #d8cfff;
  background: linear-gradient(145deg, rgba(130, 88, 249, .28), rgba(58, 89, 163, .2));
  font-weight: 850;
}

.client-person strong,
.client-person small,
.client-metric strong,
.client-metric small {
  display: block;
}

.client-person strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-person small,
.client-metric small {
  color: #7f7b8f;
  font-size: .7rem;
}

.client-metric strong { font-size: .9rem; }

.client-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.mini-button {
  border: 1px solid rgba(162, 141, 249, .17);
  border-radius: 12px;
  padding: 8px 10px;
  color: #cfc9df;
  background: rgba(24, 24, 50, .66);
  font: inherit;
  font-size: .7rem;
  font-weight: 720;
  cursor: pointer;
}

.mini-button.is-on {
  color: #78eac8;
  border-color: rgba(72, 221, 178, .2);
  background: rgba(35, 183, 142, .1);
}

.mini-button.is-primary {
  color: #d9ceff;
  border-color: rgba(146, 112, 255, .25);
  background: rgba(112, 73, 228, .14);
}

.mini-button.is-danger { color: #ff9cac; }

.invite-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 120px 160px auto;
  align-items: center;
  gap: 18px;
  min-height: 70px;
  border-bottom: 1px solid rgba(159, 139, 249, .1);
  font-size: .82rem;
}

.invite-row > span:not(.invite-state) { color: #8f8b9e; }

.invite-state {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  color: #b7a6fb;
  background: rgba(128, 87, 238, .11);
  font-size: .67rem;
  font-weight: 800;
  text-transform: capitalize;
}

.invite-state.accepted { color: #76e9c8; background: rgba(45, 190, 149, .1); }
.invite-state.revoked,
.invite-state.expired { color: #9a96a8; background: rgba(140, 137, 153, .08); }

.program-dialog {
  width: min(760px, calc(100% - 30px));
  max-height: min(860px, calc(100svh - 40px));
  border-radius: 28px;
  padding: 0;
  color: #f8f7ff;
  overflow: auto;
}

.program-dialog::backdrop {
  background: rgba(3, 3, 12, .78);
  backdrop-filter: blur(14px);
}

.program-dialog form { padding: clamp(22px, 4vw, 36px); }

.dialog-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.dialog-heading h2 { margin: 5px 0; }
.dialog-heading p { margin: 0; }

.icon-button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #d9d5e8;
  background: rgba(45, 43, 72, .64);
  font-size: 1.4rem;
}

.program-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.program-fields .field + .field { margin-top: 0; }

.exercise-heading {
  justify-content: space-between;
  margin: 28px 0 12px;
}

.exercise-heading h3 { margin: 0; }

.exercise-list { display: grid; gap: 10px; }

.exercise-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 76px 90px 100px 34px;
  gap: 8px;
  align-items: end;
  padding: 12px;
  border: 1px solid rgba(160, 139, 247, .14);
  border-radius: 17px;
  background: rgba(7, 8, 19, .52);
}

.exercise-row .field + .field { margin-top: 0; }
.exercise-row .field label { font-size: .6rem; }
.exercise-row .field input { padding: 10px; border-radius: 11px; font-size: .8rem; }

.remove-exercise {
  width: 34px;
  height: 38px;
  border: 0;
  border-radius: 11px;
  color: #ff95a6;
  background: rgba(110, 33, 52, .16);
  cursor: pointer;
}

.dialog-actions {
  justify-content: flex-end;
  margin-top: 24px;
}

.toast {
  position: fixed;
  z-index: 80;
  left: 50%;
  bottom: 28px;
  translate: -50% 0;
  max-width: min(420px, calc(100% - 28px));
  padding: 12px 17px;
  border: 1px solid rgba(169, 148, 255, .22);
  border-radius: 999px;
  color: #fff;
  background: rgba(24, 22, 48, .94);
  box-shadow: 0 18px 60px rgba(0,0,0,.4);
  font-size: .82rem;
}

@media (min-width: 841px) {
  .trainer-page[data-trainer-view="clients"] .coach-overview-grid,
  .trainer-page[data-trainer-view="insights"] .coach-overview-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .overview-stat-grid { grid-template-columns: 1fr 1fr; }
  .program-card-list { grid-template-columns: 1fr 1fr; }
  .metric-strip { grid-template-columns: 1fr 1fr; }
  .metric-strip article:nth-child(3) { border-left: 0; border-top: 1px solid rgba(159, 139, 249, .12); }
  .metric-strip article:nth-child(4) { border-top: 1px solid rgba(159, 139, 249, .12); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .macro-layout { grid-template-columns: 1fr; }
  .client-row { grid-template-columns: minmax(210px, 1fr) 120px auto; }
  .client-row .client-metric:nth-of-type(2) { display: none; }
}

@media (max-width: 840px) {
  .trainer-main.has-sidebar {
    padding-inline-start: 58px;
  }

  .trainer-sidebar {
    top: 66px;
    width: 56px;
    padding-inline: 5px;
    border-radius: 0 16px 16px 0;
  }

  .sidebar-open .trainer-sidebar {
    width: min(258px, calc(100vw - 12px));
  }

  .trainer-sidebar-toggle,
  .trainer-side-nav a span { width: 44px; flex-basis: 44px; }

  .coach-overview-grid { grid-template-columns: 1fr; }
  .capacity-panel {
    grid-template-columns: minmax(0, 1fr) minmax(150px, 190px) minmax(0, 1fr);
    align-items: center;
  }
  .capacity-panel .visual-panel-heading { align-self: start; }
  .capacity-ring { width: 100%; }
  .capacity-footer { text-align: left; }
}

@media (max-width: 760px) {
  .trainer-main {
    width: min(100% - 20px, 1500px);
    padding-top: 16px;
  }
  .auth-layout { grid-template-columns: 1fr; }
  .subscription-gate {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .gate-orbit { margin: 0 auto; }
  .gate-inclusions,
  .gate-actions { justify-content: center; }
  .access-notes { order: -1; }
  .workspace-status {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .workspace-status .quiet-button {
    grid-column: 1 / -1;
    width: 100%;
  }
  .invite-banner { grid-template-columns: auto 1fr; }
  .invite-banner .primary-button { grid-column: 1 / -1; width: 100%; }
  .dashboard-heading,
  .dashboard-row { align-items: flex-start; flex-direction: column; }
  .client-deck { grid-auto-columns: minmax(270px, 78vw); }
  .billing-actions { width: 100%; flex-wrap: wrap; }
  .inline-form { grid-template-columns: 1fr; }
  .inline-form .primary-button { width: 100%; }
  .client-row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 18px 0;
  }
  .client-metric { display: inline-block !important; }
  .client-actions { justify-content: flex-start; flex-wrap: wrap; }
  .invite-row {
    grid-template-columns: 1fr auto;
    gap: 7px 12px;
    padding: 14px 0;
  }
  .invite-row > span:nth-child(3) { grid-column: 1; }
  .program-fields { grid-template-columns: 1fr; }
  .exercise-row {
    grid-template-columns: 1fr 1fr;
  }
  .exercise-row .field:first-child { grid-column: 1 / -1; }
  .remove-exercise { grid-column: 2; justify-self: end; }
}

@media (max-width: 520px) {
  .trainer-nav { min-height: 66px; }
  .trainer-nav .brand-text { font-size: 1.25rem; }
  .trainer-profile-button {
    width: 42px;
    height: 42px;
  }
  .trainer-profile-button img,
  .trainer-profile-button > span {
    width: 34px;
    height: 34px;
  }
  .trainer-intro h1 { font-size: 2.55rem; }
  .oauth-buttons { grid-template-columns: 1fr; }
  .workspace-status {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .workspace-status-mark { margin: 0 auto; }
  .capacity-panel {
    grid-template-columns: 1fr;
  }
  .capacity-panel .visual-panel-heading {
    align-self: auto;
  }
  .capacity-ring { width: min(170px, 65%); }
  .capacity-footer { text-align: center; }
  .visual-panel-heading,
  .progress-summary {
    align-items: flex-start;
    flex-direction: column;
  }
  .progress-summary { gap: 10px; }
  .strength-chart-wrap {
    min-height: 235px;
    overflow-x: auto;
    scrollbar-width: thin;
  }
  .strength-progress-panel svg {
    width: 560px;
    min-height: 210px;
  }
  .chart-tooltip { display: none; }
  .program-card-list { grid-template-columns: 1fr; }
  .overview-stat-grid { grid-template-columns: 1fr; }
  .client-empty { width: calc(100vw - 68px); }
  .metric-strip { grid-template-columns: 1fr; }
  .metric-strip article + article {
    border-left: 0;
    border-top: 1px solid rgba(159, 139, 249, .12);
  }
  .section-title-row { align-items: flex-start; }
  .programs-showcase .section-title-row,
  .macro-showcase .section-title-row {
    flex-direction: column;
  }
  .section-heading-actions {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  .macro-target-grid { grid-template-columns: 1fr; }
  .macro-targets { grid-template-columns: 1fr 1fr; }
  .invite-section .section-title-row { flex-direction: column; }
  .code-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .primary-button,
  .quiet-button,
  .code-button,
  .oauth-button { transition: none; }
  .workspace-status-mark.is-loading { animation: none; }
  .gate-orbit img { animation: none; }
  .trainer-profile-menu { animation: none; }
}

/* Light trainer workspace */
.trainer-page {
  --trainer-surface: rgba(255, 255, 255, .9);
  --trainer-surface-strong: #fff;
  --trainer-line: rgba(56, 48, 92, .11);
  color: #1b192b;
  color-scheme: light;
  background:
    radial-gradient(circle at 72% 4%, rgba(139, 99, 255, .1), transparent 32rem),
    radial-gradient(circle at 12% 22%, rgba(77, 190, 255, .09), transparent 27rem),
    linear-gradient(180deg, #f8f9fd 0%, #f3f5fa 54%, #f8f9fc 100%);
}

.trainer-page::before {
  opacity: .5;
  background:
    linear-gradient(rgba(42, 38, 72, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 38, 72, .025) 1px, transparent 1px);
}

.trainer-aurora::before,
.trainer-aurora::after { opacity: .09; }

.trainer-header {
  border-bottom-color: rgba(47, 42, 78, .09);
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 8px 30px rgba(34, 28, 64, .04);
}

.trainer-page .brand-text { color: #181626; }
.text-link { color: #666176; }
.text-link:hover { color: #211d35; }

.trainer-sidebar {
  border-right-color: rgba(50, 44, 80, .11);
  background:
    radial-gradient(circle at 8% 0, rgba(132, 91, 244, .09), transparent 24rem),
    rgba(255, 255, 255, .97);
}

.trainer-sidebar-toggle { color: #777184; }
.trainer-sidebar-toggle:hover,
.sidebar-open .trainer-sidebar-toggle {
  color: #5f3dcc;
  border-color: rgba(115, 77, 216, .14);
  background: rgba(124, 85, 231, .09);
}

.trainer-side-nav a { color: #767184; }
.trainer-side-nav a:hover {
  color: #28243a;
  background: rgba(47, 42, 70, .045);
}
.trainer-side-nav a.is-active {
  color: #5431c7;
  border-color: rgba(119, 78, 223, .13);
  background: linear-gradient(135deg, rgba(126, 87, 232, .13), rgba(87, 153, 235, .07));
}
.trainer-side-nav a span {
  color: #6d49dc;
  background: rgba(126, 87, 232, .08);
}
.trainer-sidebar-footer {
  border-top-color: rgba(51, 45, 77, .09);
}
.trainer-sidebar-footer p { color: #868092; }
.sidebar-access-status {
  color: #167d61;
  border-color: rgba(28, 148, 111, .15);
  background: rgba(35, 171, 130, .08);
}

.auth-card,
.access-notes,
.invite-banner,
.workspace-status,
.subscription-gate,
.dashboard-section,
.client-showcase,
.visual-panel,
.programs-showcase,
.program-dialog {
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 22px 64px rgba(41, 34, 77, .07), inset 0 1px rgba(255,255,255,.9);
}

.auth-tabs,
.stepper {
  border-color: rgba(70, 59, 112, .1);
  background: #f1f0f7;
}
.auth-tab { color: #777184; }
.auth-tab.is-active {
  color: #5031b6;
  background: #fff;
  box-shadow: 0 3px 12px rgba(48, 36, 85, .08);
}
.oauth-button,
.quiet-button,
.code-button,
.mini-button,
.icon-button {
  color: #373247;
  border-color: rgba(73, 61, 121, .12);
  background: #fff;
  box-shadow: 0 5px 18px rgba(42, 34, 76, .04);
}
.oauth-button:hover,
.quiet-button:hover,
.code-button:hover {
  border-color: rgba(119, 81, 221, .26);
  background: #fbfaff;
}
.auth-divider { color: #8b8596; }
.auth-divider::before,
.auth-divider::after { background: rgba(66, 57, 100, .1); }

.field label { color: #5e586c; }
.field input,
.field select,
.field textarea {
  color: #211d2d;
  border-color: rgba(73, 60, 122, .14);
  background-color: #fff;
  box-shadow: inset 0 1px 2px rgba(38, 31, 66, .025);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(117, 77, 224, .55);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(128, 87, 249, .1);
}

.access-notes li,
.trainer-plan-list { color: #444052; }
.access-notes > p:last-child,
.form-message,
.dashboard-heading p,
.dashboard-row p,
.dashboard-section > p,
.dialog-heading p,
.subscription-gate p,
.trainer-plan-card > div > p:not(.trainer-kicker),
.trainer-plan-price span,
.trainer-plan-status { color: #777181; }

.dashboard-heading,
.trainer-plan-card {
  border-color: rgba(68, 57, 111, .1);
  background:
    radial-gradient(circle at 82% 8%, rgba(130, 87, 238, .08), transparent 38%),
    rgba(255, 255, 255, .94);
  box-shadow: 0 24px 70px rgba(40, 33, 73, .07);
}
.trainer-plan-summary {
  border-color: rgba(76, 61, 135, .11);
  background: #f7f6fb;
}

.overview-stat-grid article,
.overview-stat-grid article:nth-child(2),
.overview-stat-grid article:nth-child(3),
.overview-stat-grid article:nth-child(4) {
  border-color: rgba(67, 56, 107, .09);
  background:
    radial-gradient(circle at 100% 0, rgba(130, 87, 238, .07), transparent 46%),
    rgba(255, 255, 255, .94);
  box-shadow: 0 10px 32px rgba(43, 35, 77, .045);
}
.overview-stat-grid strong { color: #211d2e; }
.overview-stat-grid small { color: #686273; }
.overview-stat-grid p { color: #8b8595; }

.client-showcase,
.programs-showcase,
.macro-showcase,
.visual-panel {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(248, 248, 252, .96)),
    radial-gradient(circle at 85% 0, rgba(105, 72, 234, .07), transparent 45%);
}
.client-card,
.program-card,
.macro-card,
.macro-form,
.dashboard-empty,
.chart-empty,
.exercise-row {
  border-color: rgba(66, 56, 103, .1);
  background: #fafafe;
  box-shadow: 0 8px 26px rgba(43, 36, 74, .035);
}
.client-card-latest,
.client-card-stats > span,
.macro-targets span {
  border-color: rgba(67, 57, 105, .08);
  background: #f3f2f8;
}
.client-card-profile small,
.client-card-latest small,
.client-card-latest span,
.client-card-stats small,
.program-card-copy small,
.program-card-copy span,
.macro-form-heading span,
.macro-list-heading span,
.macro-card-heading span,
.macro-card > p,
.macro-targets small,
.dashboard-empty p,
.client-person small,
.client-metric small,
.invite-row > span:not(.invite-state),
.empty-row,
.entitlement-line span { color: #858091; }
.client-card-latest strong,
.client-card-stats strong,
.program-card-copy strong,
.macro-form-heading strong,
.macro-list-heading strong,
.macro-card-heading strong,
.macro-targets strong,
.dashboard-empty strong { color: #302b3d; }

.capacity-ring {
  box-shadow: 0 14px 40px rgba(92, 73, 176, .12);
}
.capacity-ring > div {
  border-color: rgba(68, 58, 107, .08);
  background: radial-gradient(circle at 50% 25%, #fff, #f2f3f8 75%);
  box-shadow: 0 12px 32px rgba(47, 38, 83, .09);
}
.capacity-ring span,
.capacity-ring span b { color: #676172; }
.capacity-footer span,
.progress-summary small,
.chart-caption { color: #817b8d; }
.chart-grid-line { stroke: rgba(67, 75, 110, .12); }
.chart-axis-label,
.chart-axis-x { fill: #777384; }
.chart-point-dot { stroke: #fff; }
.chart-tooltip {
  color: #fff;
  background: rgba(42, 36, 64, .94);
}

.metric-strip,
.dashboard-row,
.client-list,
.invite-list,
.client-row,
.invite-row,
.entitlement-line {
  border-color: rgba(70, 59, 110, .1);
}
.metric-strip article + article { border-left-color: rgba(70, 59, 110, .1); }
.metric-strip small,
.stepper small { color: #777181; }
.stepper button {
  color: #4e4760;
  background: #fff;
  box-shadow: 0 2px 10px rgba(42, 34, 76, .05);
}
.client-avatar {
  color: #6946d4;
  border-color: rgba(121, 82, 221, .13);
  background: linear-gradient(145deg, rgba(132, 91, 238, .13), rgba(74, 160, 224, .1));
}
.mini-button.is-primary {
  color: #5834c6;
  background: rgba(112, 73, 228, .09);
}
.mini-button.is-danger { color: #c4415d; }

.program-dialog { color: #1b192b; }
.program-dialog::backdrop { background: rgba(28, 25, 42, .42); }
.remove-exercise {
  color: #c73e59;
  background: rgba(201, 62, 89, .07);
}

.toast {
  color: #fff;
  border-color: rgba(169, 148, 255, .2);
  background: rgba(43, 37, 66, .95);
}

/* Trainer-focused insights and client profile flow */
.section-intro {
  max-width: 720px;
  margin: 7px 0 0;
  color: #7d7788;
  font-size: .86rem;
  line-height: 1.55;
}

.client-roster-list {
  display: grid;
  gap: 12px;
}

.client-roster-row {
  overflow: hidden;
  border: 1px solid rgba(68, 57, 108, .1);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 34px rgba(43, 35, 77, .045);
  transition: border-color .2s ease, box-shadow .2s ease, translate .2s ease;
}

.client-roster-row:hover {
  translate: 0 -2px;
  border-color: rgba(113, 74, 221, .23);
  box-shadow: 0 18px 44px rgba(66, 45, 124, .09);
}

.client-profile-link {
  display: grid;
  grid-template-columns: minmax(190px, .9fr) minmax(190px, 1fr) minmax(300px, 1.35fr) auto;
  gap: 22px;
  align-items: center;
  padding: 20px 22px 16px;
  color: inherit;
  text-decoration: none;
}

.client-profile-link:focus-visible {
  outline: 3px solid rgba(118, 76, 229, .24);
  outline-offset: -3px;
}

.client-profile-link .client-card-profile {
  min-width: 0;
}

.client-roster-latest {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.client-roster-latest small,
.client-roster-latest span {
  color: #898393;
  font-size: .68rem;
}

.client-roster-latest strong {
  overflow: hidden;
  color: #2c2738;
  font-size: .84rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-roster-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(65px, 1fr));
  gap: 7px;
}

.client-roster-metrics > span {
  min-width: 0;
  display: grid;
  gap: 2px;
  padding: 10px 9px;
  border: 1px solid rgba(65, 54, 104, .07);
  border-radius: 12px;
  background: #f7f6fb;
}

.client-roster-metrics strong {
  overflow: hidden;
  color: #312b40;
  font-size: .83rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-roster-metrics small {
  color: #8b8594;
  font-size: .59rem;
}

.client-open-profile {
  color: #6237cf;
  font-size: .76rem;
  font-weight: 780;
  white-space: nowrap;
}

.client-open-profile b {
  display: inline-block;
  margin-left: 4px;
  transition: translate .2s ease;
}

.client-profile-link:hover .client-open-profile b {
  translate: 3px 0;
}

.client-roster-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 22px 14px;
  border-top: 1px solid rgba(69, 58, 108, .07);
  background: #fcfcfe;
}

.client-roster-footer .client-actions {
  flex-wrap: wrap;
}

.trainer-insights-shell,
.client-detail-shell {
  display: grid;
  gap: 18px;
  padding: clamp(20px, 2.5vw, 30px);
  border: 1px solid rgba(68, 57, 111, .1);
  border-radius: 24px;
  background:
    radial-gradient(circle at 95% 0, rgba(119, 76, 229, .08), transparent 32%),
    rgba(255, 255, 255, .95);
  box-shadow: 0 24px 70px rgba(40, 33, 73, .07);
}

.trainer-insight-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.trainer-insight-stat-grid article {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 18px;
  border: 1px solid rgba(68, 57, 108, .09);
  border-radius: 17px;
  background: #fafafe;
}

.trainer-insight-stat-grid span {
  color: #716a7b;
  font-size: .69rem;
  font-weight: 760;
}

.trainer-insight-stat-grid strong {
  color: #272133;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -.055em;
}

.trainer-insight-stat-grid small {
  color: #928c9a;
  font-size: .65rem;
  line-height: 1.4;
}

.trainer-insight-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, .7fr);
  gap: 12px;
}

.trainer-insight-card,
.client-detail-section {
  min-width: 0;
  padding: 20px;
  border: 1px solid rgba(68, 57, 108, .09);
  border-radius: 19px;
  background: #fafafe;
}

.trainer-activity-bars {
  min-height: 220px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
  margin-top: 16px;
}

.trainer-activity-column {
  height: 200px;
  display: grid;
  grid-template-rows: 22px 1fr 20px;
  gap: 6px;
  text-align: center;
}

.trainer-activity-column strong {
  color: #51495e;
  font-size: .72rem;
}

.trainer-activity-column small {
  color: #8c8594;
  font-size: .61rem;
}

.trainer-activity-track {
  position: relative;
  overflow: hidden;
  display: block;
  border-radius: 11px;
  background: #eeedf4;
}

.trainer-activity-track i {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: block;
  border-radius: 11px;
  background: linear-gradient(180deg, #9b78ff, #5a37ca);
  box-shadow: 0 8px 20px rgba(101, 65, 207, .2);
  transition: height .45s ease;
}

.trainer-action-list {
  display: grid;
  gap: 8px;
  margin-top: 15px;
}

.trainer-action-list a {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(68, 57, 108, .08);
  border-radius: 14px;
  color: inherit;
  background: #fff;
  text-decoration: none;
  transition: border-color .2s ease, background .2s ease;
}

.trainer-action-list a:hover {
  border-color: rgba(111, 72, 219, .24);
  background: #fbf9ff;
}

.trainer-action-list > a > span:first-child {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  font-size: .78rem;
  font-weight: 820;
}

.trainer-action-list .needs-attention {
  color: #8d4b0b;
  background: #fff2da;
}

.trainer-action-list .is-clear {
  color: #167d61;
  background: #e9f9f3;
}

.trainer-action-list a > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.trainer-action-list strong {
  color: #302a3d;
  font-size: .78rem;
}

.trainer-action-list small {
  color: #898393;
  font-size: .64rem;
  line-height: 1.35;
}

.trainer-action-list b {
  color: #6c45cb;
}

.trainer-insight-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.trainer-insight-summary-grid > article:not([hidden]) {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 15px;
  border: 1px solid rgba(68, 57, 108, .08);
  border-radius: 15px;
  background: #fafafe;
}

.trainer-insight-summary-grid .summary-icon {
  width: 36px;
  height: 36px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 11px;
  color: #6e46d5;
  background: #eee8ff;
}

.trainer-insight-summary-grid strong,
.trainer-insight-summary-grid small {
  display: block;
}

.trainer-insight-summary-grid strong {
  color: #2a2436;
  font-size: 1.1rem;
}

.trainer-insight-summary-grid small {
  margin-top: 2px;
  color: #8c8694;
  font-size: .63rem;
}

.client-detail-back {
  width: fit-content;
  color: #6841ce;
  font-size: .75rem;
  font-weight: 760;
  text-decoration: none;
}

.client-detail-back:hover {
  text-decoration: underline;
}

.client-detail-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 22px;
  border: 1px solid rgba(68, 57, 108, .09);
  border-radius: 20px;
  background:
    radial-gradient(circle at 92% 0, rgba(116, 76, 226, .1), transparent 42%),
    #fafafe;
}

.client-detail-avatar {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(111, 71, 215, .14);
  border-radius: 23px;
  color: #6841d0;
  background: linear-gradient(145deg, #eee8ff, #e7f6ff);
  font-size: 1.35rem;
  font-weight: 840;
}

.client-detail-copy {
  min-width: 0;
}

.client-detail-copy h3 {
  margin: 3px 0 5px;
  color: #241f30;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  letter-spacing: -.045em;
}

.client-detail-copy > p:not(.trainer-kicker) {
  margin: 0;
  color: #797381;
  font-size: .78rem;
}

.client-detail-statuses,
.client-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.client-detail-statuses {
  margin-top: 11px;
}

.client-detail-actions {
  justify-content: flex-end;
}

.client-detail-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.client-detail-stat-grid article {
  display: grid;
  gap: 5px;
  padding: 16px;
  border: 1px solid rgba(68, 57, 108, .08);
  border-radius: 16px;
  background: #fafafe;
}

.client-detail-stat-grid strong {
  overflow: hidden;
  color: #2b2537;
  font-size: 1.45rem;
  letter-spacing: -.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-detail-stat-grid small {
  color: #898391;
  font-size: .65rem;
}

.client-detail-section .progress-summary {
  margin-top: 8px;
}

.client-detail-section .strength-chart-wrap {
  margin-top: 8px;
}

.client-health-panel {
  overflow: hidden;
}

.client-health-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.client-health-card {
  --health-accent: #7957dc;
  --health-soft: rgba(121, 87, 220, .12);
  position: relative;
  overflow: hidden;
  padding: 15px;
  border: 1px solid color-mix(in srgb, var(--health-accent) 18%, transparent);
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0%, var(--health-soft), transparent 48%),
    #fbfaff;
}

.client-health-card.is-sleep {
  --health-accent: #7667e8;
  --health-soft: rgba(118, 103, 232, .13);
}

.client-health-card.is-hrv {
  --health-accent: #a84bd2;
  --health-soft: rgba(168, 75, 210, .12);
}

.client-health-card.is-resting {
  --health-accent: #e65285;
  --health-soft: rgba(230, 82, 133, .11);
}

.client-health-card.is-steps {
  --health-accent: #268acb;
  --health-soft: rgba(38, 138, 203, .11);
}

.client-health-card.is-oxygen {
  --health-accent: #2b9ca0;
  --health-soft: rgba(43, 156, 160, .11);
}

.client-health-card.is-strain {
  --health-accent: #ec7b3a;
  --health-soft: rgba(236, 123, 58, .12);
}

.client-health-card.is-energy {
  --health-accent: #d5a124;
  --health-soft: rgba(213, 161, 36, .12);
}

.client-health-card-heading,
.client-health-card-footer,
.workout-visual-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.client-health-card-heading > div {
  display: grid;
  gap: 3px;
}

.client-health-card-heading small,
.client-health-card-heading span,
.client-health-card-footer,
.workout-visual-heading small {
  color: #8a8394;
  font-size: .61rem;
}

.client-health-card-heading strong {
  color: #2c2538;
  font-size: 1.28rem;
  letter-spacing: -.04em;
}

.client-health-chart {
  width: 100%;
  height: 84px;
  display: block;
  margin: 8px 0 3px;
  overflow: visible;
}

.client-health-chart-line {
  fill: none;
  stroke: var(--health-accent);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.client-health-chart-dot {
  fill: #fff;
  stroke: var(--health-accent);
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

.client-health-chart-hit {
  fill: transparent;
  stroke: transparent;
}

.client-health-chart-pulse {
  fill: transparent;
  stroke: var(--health-accent);
  stroke-width: 1.5;
  opacity: .22;
  vector-effect: non-scaling-stroke;
}

.client-health-card-footer {
  padding-top: 9px;
  border-top: 1px solid rgba(68, 57, 108, .07);
}

.client-health-card-footer b {
  color: var(--health-accent);
}

.shared-sleep-stages {
  display: grid;
  gap: 7px;
  margin: 2px 0 10px;
}

.shared-sleep-stages > div {
  display: flex;
  gap: 2px;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #ece9f5;
}

.shared-sleep-stages > div i:first-child {
  border-radius: 999px 0 0 999px;
}

.shared-sleep-stages > div i:last-child {
  border-radius: 0 999px 999px 0;
}

.shared-sleep-stages p {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0;
}

.shared-sleep-stages p span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #777082;
  font-size: .56rem;
  font-weight: 700;
}

.shared-sleep-stages p i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.shared-sleep-stages .is-rem { background: #4c79e6; }
.shared-sleep-stages .is-deep { background: #c02ed7; }
.shared-sleep-stages .is-light { background: #ae8de2; }

.client-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(310px, .75fr);
  gap: 12px;
  align-items: start;
}

.client-detail-side {
  display: grid;
  gap: 12px;
}

.client-workout-list,
.client-record-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.client-workout-row,
.client-record-row,
.client-program-record,
.client-macro-record {
  padding: 14px;
  border: 1px solid rgba(68, 57, 108, .08);
  border-radius: 14px;
  background: #fff;
}

.client-workout-heading,
.client-macro-record > div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.client-workout-heading > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.client-workout-heading strong,
.client-record-row strong,
.client-program-record strong,
.client-macro-record strong {
  color: #2e283a;
  font-size: .8rem;
}

.client-workout-heading span,
.client-workout-heading small,
.client-record-row small,
.client-program-record small,
.client-macro-record time,
.client-macro-record small {
  color: #8b8593;
  font-size: .62rem;
}

.client-workout-row > p,
.client-macro-record p {
  margin: 9px 0 0;
  color: #77717f;
  font-size: .68rem;
  line-height: 1.5;
}

.workout-heart-trace,
.workout-heart-zones {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 11px;
  border-radius: 12px;
  background: #f8f6fc;
}

.workout-visual-heading span {
  color: #4d4559;
  font-size: .65rem;
  font-weight: 780;
}

.workout-heart-trace svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.workout-trace-grid {
  stroke: rgba(75, 63, 105, .1);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.workout-trace-area {
  fill: rgba(118, 81, 208, .11);
}

.workout-trace-line {
  fill: none;
  stroke: #7250cb;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.workout-trace-hit {
  fill: transparent;
  stroke: transparent;
  cursor: crosshair;
}

.workout-trace-hit:hover {
  fill: #fff;
  stroke: #7250cb;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.workout-trace-axis {
  fill: #9790a0;
  font-size: 9px;
  font-weight: 650;
}

.workout-zone-stack {
  display: flex;
  gap: 2px;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9e6ef;
}

.workout-zone-stack i:first-child {
  border-radius: 999px 0 0 999px;
}

.workout-zone-stack i:last-child {
  border-radius: 0 999px 999px 0;
}

.workout-zone-legend {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.workout-zone-legend span {
  display: grid;
  grid-template-columns: 7px minmax(0, 1fr);
  gap: 1px 5px;
  align-items: center;
}

.workout-zone-legend span > i {
  grid-row: 1 / 3;
  width: 7px;
  height: 23px;
  border-radius: 999px;
}

.workout-zone-legend b {
  color: #4b4554;
  font-size: .55rem;
}

.workout-zone-legend small {
  color: #8c8691;
  font-size: .52rem;
}

.workout-heart-zones .is-zone-0 { background: #c4c6cf; }
.workout-heart-zones .is-zone-1 { background: #6e9ccc; }
.workout-heart-zones .is-zone-2 { background: #3fb1c8; }
.workout-heart-zones .is-zone-3 { background: #54b886; }
.workout-heart-zones .is-zone-4 { background: #ec9b4a; }
.workout-heart-zones .is-zone-5 { background: #e05259; }

.client-workout-exercises {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.client-workout-exercises span {
  padding: 5px 8px;
  border-radius: 999px;
  color: #5f3db5;
  background: #f0ebff;
  font-size: .59rem;
  font-weight: 710;
}

.client-record-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.client-program-record {
  display: grid;
  gap: 10px;
}

.client-program-heading {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.client-program-heading > span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #6c45ca;
  background: #eee9ff;
}

.client-program-heading > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.client-program-record > p {
  margin: 0;
  color: #77717f;
  font-size: .67rem;
  line-height: 1.5;
}

.client-program-exercises {
  display: grid;
  gap: 6px;
}

.client-program-exercises > span {
  display: grid;
  gap: 2px;
  padding: 9px 10px;
  border-radius: 10px;
  background: #f6f4fb;
}

.client-program-exercises strong {
  font-size: .68rem;
}

.client-program-exercises small {
  color: #87808e;
  font-size: .59rem;
}

.client-record-row > span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #6c45ca;
  background: #eee9ff;
}

.client-record-row > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.client-macro-record {
  display: grid;
  gap: 7px;
}

.client-macro-record p {
  margin: 0;
}

.client-macro-record time {
  justify-self: end;
}

.client-detail-empty-state {
  display: grid;
  gap: 5px;
  padding: 18px;
  border: 1px dashed rgba(94, 73, 165, .16);
  border-radius: 14px;
  background: #f8f7fc;
}

.client-detail-empty-state strong {
  color: #3a3348;
  font-size: .78rem;
}

.client-detail-empty-state p {
  margin: 0;
  color: #8a8492;
  font-size: .67rem;
  line-height: 1.5;
}

.client-detail-empty {
  min-height: 300px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-content: center;
  padding: 28px;
  border: 1px dashed rgba(94, 73, 165, .18);
  border-radius: 20px;
  background: #faf9fd;
}

.client-detail-empty > span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #6842ce;
  background: #eee8ff;
  font-size: 1.35rem;
}

.client-detail-empty h3 {
  margin: 0 0 5px;
  color: #2d2739;
}

.client-detail-empty p {
  max-width: 580px;
  margin: 0 0 15px;
  color: #7e7886;
  font-size: .78rem;
  line-height: 1.55;
}

.client-detail-consent {
  margin: 0;
  color: #8c8593;
  font-size: .65rem;
  text-align: right;
}

@media (max-width: 1180px) {
  .client-profile-link {
    grid-template-columns: minmax(190px, .85fr) minmax(170px, .8fr) minmax(270px, 1.25fr);
  }
  .client-open-profile {
    grid-column: 1 / -1;
    justify-self: end;
  }
  .trainer-insight-stat-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 920px) {
  .client-profile-link {
    grid-template-columns: 1fr 1fr;
  }
  .client-roster-metrics {
    grid-column: 1 / -1;
  }
  .trainer-insight-layout,
  .client-detail-grid {
    grid-template-columns: 1fr;
  }
  .client-detail-hero {
    grid-template-columns: auto 1fr;
  }
  .client-detail-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 700px) {
  .client-showcase,
  .trainer-insights-shell,
  .client-detail-shell {
    padding: 17px;
    border-radius: 20px;
  }
  .client-profile-link {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 17px;
  }
  .client-roster-metrics {
    grid-column: auto;
    grid-template-columns: 1fr 1fr;
  }
  .client-health-metrics {
    grid-template-columns: 1fr;
  }
  .workout-zone-legend {
    grid-template-columns: 1fr 1fr;
  }
  .client-open-profile {
    grid-column: auto;
    justify-self: start;
  }
  .client-roster-footer {
    align-items: flex-start;
    flex-direction: column;
    padding-inline: 17px;
  }
  .trainer-insight-stat-grid,
  .trainer-insight-summary-grid,
  .client-detail-stat-grid {
    grid-template-columns: 1fr 1fr;
  }
  .client-detail-hero {
    grid-template-columns: 1fr;
  }
  .client-detail-avatar {
    width: 64px;
    height: 64px;
  }
  .client-detail-actions {
    grid-column: auto;
  }
}

@media (max-width: 480px) {
  .trainer-insight-stat-grid,
  .trainer-insight-summary-grid,
  .client-detail-stat-grid {
    grid-template-columns: 1fr;
  }
  .trainer-activity-bars {
    gap: 7px;
  }
  .trainer-insight-card,
  .client-detail-section {
    padding: 15px;
  }
  .client-detail-actions > * {
    width: 100%;
    justify-content: center;
  }
}
