:root {
  --black: #050505;
  --ink: #111;
  --white: #f7f7f2;
  --paper: #fff;
  --muted: #6f6f68;
  --line: #d9d9d2;
  --lime: #d7ff3f;
  --red: #ff3b30;
  --blue: #2878ff;
  --max: 1320px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.35;
  overflow-x: clip;
}

section[id] {
  scroll-margin-top: 84px;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  height: 72px;
  padding: 0 clamp(20px, 4vw, 48px);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.homepage .site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 26;
  grid-template-columns: 1fr auto;
  background: transparent;
  backdrop-filter: none;
  border-bottom: 0;
}

.homepage .brand strong,
.homepage .nav-links a,
.homepage .login-link,
.homepage .online-link,
.homepage .login-link:visited,
.homepage .online-link:visited {
  color: var(--white);
  text-shadow: 0 2px 12px rgba(0, 0, 0, .28);
}

.brand,
.nav-links,
.login-link,
.online-link,
.header-cta,
.button,
.kicker,
.hero-meta,
footer {
  font-weight: 900;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
}

.brand span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--black);
  background: var(--lime);
  font-size: .78rem;
}

.brand strong {
  font-size: .98rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: .98rem;
}

.homepage .nav-links {
  display: none;
}

.nav-links a,
.text-link {
  position: relative;
}

.nav-links a::after,
.text-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .18s ease;
}

.nav-links a:hover::after,
.text-link:hover::after {
  transform: scaleX(1);
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
}

.login-link,
.online-link {
  display: inline-flex;
  align-items: center;
  padding: 0;
  color: var(--black);
  background: transparent;
  font: inherit;
  font-size: .82rem;
  line-height: 1;
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
  transition: color .18s ease, text-decoration-color .18s ease;
}

.login-link:visited,
.online-link:visited,
.login-link.is-current,
.online-link.is-current {
  color: var(--black);
}

.login-link:hover,
.online-link:hover {
  text-decoration-color: currentColor;
}

.mobile-label {
  display: none;
}

.dashboard-header,
.login-page .site-header {
  height: 64px;
}

.dashboard-header .header-actions,
.login-page .header-actions {
  gap: 10px;
}

.hero {
  position: relative;
  min-height: calc(88svh - 72px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background: var(--black);
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 9%;
  filter: grayscale(.15) contrast(1.08);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .86), rgba(0, 0, 0, .28) 58%, rgba(0, 0, 0, .72)),
    linear-gradient(0deg, rgba(0, 0, 0, .78), transparent 44%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 7vh 0 12vh;
}

.hero-accent {
  color: var(--lime);
}

.kicker {
  margin: 0 0 14px;
  color: var(--red);
  text-transform: uppercase;
  font-size: .76rem;
  letter-spacing: .14em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  max-width: 100%;
  overflow-wrap: normal;
  text-wrap: balance;
  word-break: normal;
}

h1 {
  max-width: 1040px;
  margin-bottom: 20px;
  font-size: clamp(3.6rem, 9vw, 8.8rem);
  line-height: .88;
  letter-spacing: 0;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2.6rem, 5.4vw, 5.8rem);
  line-height: .94;
  letter-spacing: 0;
  text-transform: uppercase;
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(1.9rem, 3vw, 3.2rem);
  line-height: .96;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-content > p:not(.kicker),
.editorial > p:last-child,
.contact > p:not(.kicker),
.split-feature p,
.training-tile p,
.review-card p {
  max-width: 680px;
  color: inherit;
  font-size: clamp(1rem, 1.8vw, 1.35rem);
}

.hero-content > p:not(.kicker) {
  color: rgba(255, 255, 255, .82);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  border: 1px solid currentColor;
  border-radius: 999px;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: .46;
  transform: none;
}

.button-light {
  color: var(--black);
  background: var(--white);
  border-color: var(--white);
}

.button-outline {
  color: var(--white);
}

.button-dark {
  color: var(--white);
  background: var(--black);
}

.button-ghost {
  color: var(--black);
  background: transparent;
}

.danger-button {
  color: var(--red);
  border-color: rgba(255, 59, 48, .42);
}

.hero-meta {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, .28);
  background: rgba(0, 0, 0, .72);
}

.hero-meta span {
  padding: 18px clamp(20px, 4vw, 48px);
  text-transform: uppercase;
  border-right: 1px solid rgba(255, 255, 255, .22);
}

.hero-meta span:last-child {
  border-right: 0;
}

.homepage-tab-stage {
  width: 100%;
  margin: 0 auto;
}

.home-tabs-shell {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 24;
  padding: 18px clamp(14px, 3vw, 24px) calc(18px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(245, 245, 240, .34) 32%, rgba(245, 245, 240, .72));
  pointer-events: none;
}

.home-tabs-shell + main {
  padding-bottom: 132px;
}

.home-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  background: rgba(255, 255, 255, .2);
  backdrop-filter: blur(24px) saturate(140%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .14);
  pointer-events: auto;
}

.home-tabs::-webkit-scrollbar {
  display: none;
}

.home-panels {
  display: flex;
  flex-direction: column;
}

.home-tab {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: rgba(255, 255, 255, .3);
  color: rgba(17, 17, 17, .72);
  font-size: clamp(.8rem, 1.2vw, 1rem);
  font-weight: 900;
  text-transform: uppercase;
  text-align: center;
  backdrop-filter: blur(12px);
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.home-tab:hover {
  transform: translateY(-1px);
}

.home-tab.is-active {
  color: var(--black);
  background: var(--lime);
  border-color: var(--black);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .12);
}

.training-subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: min(var(--max), calc(100% - 40px));
  margin: 18px auto 0;
}

.training-subtab {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--muted);
  font: inherit;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.training-subtab:hover {
  transform: translateY(-1px);
}

.training-subtab.is-active {
  color: var(--black);
  background: var(--lime);
  border-color: var(--black);
}

.training-subpanels {
  width: 100%;
}

.training-subpanel[hidden] {
  display: none !important;
}

.home-panel {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.home-panel[data-home-tab-panel="training"] {
  order: 1;
}

.home-panel[data-home-tab-panel="results"] {
  order: 2;
}

.home-panel[data-home-tab-panel="start"] {
  order: 3;
}

.home-panel[data-home-tab-panel="start"] {
  display: flex;
  flex-direction: column;
}

.home-panel[data-home-tab-panel="start"] .credentials {
  order: 1;
}

.home-panel[data-home-tab-panel="start"] .contact {
  order: 2;
  width: 100%;
  margin-top: 0;
  margin-bottom: 0;
  border-radius: 0;
}

.editorial,
.credentials,
.split-feature,
.proof,
.photo-story,
.client-progress,
.contact {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.editorial {
  padding: clamp(64px, 9vw, 112px) 0;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.editorial h2 {
  max-width: 1180px;
  margin-inline: auto;
  line-height: .9;
}

.editorial h2 span {
  display: block;
  white-space: nowrap;
}

.editorial h2 span + span {
  margin-top: .08em;
}

.editorial p:last-child {
  margin: 24px auto 0;
  color: var(--muted);
}

.credentials {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(360px, .8fr);
  gap: clamp(34px, 6vw, 76px);
  align-items: center;
  padding: clamp(54px, 8vw, 92px) 0;
  border-top: 1px solid var(--line);
}

.credentials h2 {
  max-width: 760px;
  font-size: clamp(2.6rem, 4.8vw, 5rem);
}

.credentials-copy p:not(.kicker) {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.35rem);
}

.credential-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-content: center;
}

.credential-card {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.credential-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 0, 0, .22);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .08);
}

.credential-card strong {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.15;
}

.credential-logo {
  display: block;
  width: auto;
  max-width: 180px;
  height: 42px;
  object-fit: contain;
  object-position: left center;
}

.credential-logo-frc {
  max-width: 210px;
  height: 38px;
}

.credential-logo-nasm {
  max-width: 220px;
  height: 52px;
}

.training-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.training-tile {
  position: relative;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(24px, 3.2vw, 34px);
  overflow: hidden;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.training-tile h3 {
  max-width: 760px;
  font-size: clamp(2rem, 2.55vw, 3rem);
}

.training-tile p {
  max-width: 720px;
  font-size: clamp(1rem, 1.3vw, 1.18rem);
}

.training-tile:nth-child(2n),
.training-tile:last-child {
  border-right: 0;
}

.training-tile:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.training-tile span {
  font-weight: 900;
}

.tile-dark {
  color: var(--white);
  background: var(--black);
}

.tile-lime {
  color: var(--black);
  background: var(--lime);
}

.tile-light {
  background: #f1f1eb;
}

.tile-photo {
  justify-content: end;
  color: var(--white);
  background: var(--black);
}

.tile-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  filter: saturate(.94) contrast(1.04);
}

.tile-photo-build img {
  object-position: 68% 0%;
}

.tile-photo-mindful img {
  object-position: 52% 14%;
}

.tile-photo-muscle img {
  object-position: 54% 18%;
}

.tile-photo-mobility img {
  object-position: 36% 8%;
}

.tile-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, .86), transparent 58%);
}

.tile-photo div {
  position: relative;
  z-index: 1;
}

.split-feature {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(360px, 1.08fr);
  gap: clamp(34px, 6vw, 76px);
  align-items: center;
  padding: clamp(66px, 10vw, 112px) 0;
}

.split-feature h2 {
  max-width: 620px;
  font-size: clamp(2.5rem, 4.1vw, 4.25rem);
  line-height: 1;
}

.feature-list {
  display: grid;
  gap: 24px;
  align-content: end;
}

.feature-list p {
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.feature-list strong {
  color: var(--black);
}

.proof {
  padding: clamp(54px, 8vw, 92px) 0;
  border-top: 1px solid var(--line);
}

.proof-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.review-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.review-card {
  display: flex;
  min-height: 320px;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px;
  color: var(--white);
  background: var(--black);
  border-radius: 8px;
}

.review-card span {
  color: var(--lime);
  font-weight: 900;
}

.review-card strong {
  color: rgba(255, 255, 255, .65);
}

.yelp-summary {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 14px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.yelp-summary strong {
  font-size: clamp(3.4rem, 7vw, 6.5rem);
  line-height: .88;
  letter-spacing: 0;
}

.yelp-summary span {
  max-width: 420px;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 900;
  text-align: right;
  text-transform: uppercase;
}

.proof-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
}

.text-link {
  display: inline-flex;
  font-weight: 900;
}

.photo-story {
  padding: clamp(54px, 8vw, 88px) 0;
}

.photo-story-heading {
  max-width: 1180px;
  margin-bottom: 34px;
}

.photo-story-heading h2 {
  font-size: clamp(2.4rem, 3.25vw, 3.65rem);
  line-height: 1;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.photo-story-carousel {
  display: grid;
  gap: 16px;
}

.photo-story-viewport {
  overflow: hidden;
  width: min(100%, 1180px);
}

.photo-story-track {
  display: flex;
  gap: 14px;
  transition: transform .28s ease;
  will-change: transform;
}

.photo-story-slide {
  flex: 0 0 clamp(240px, 30vw, 360px);
  min-width: 0;
  background: transparent;
}

figure {
  margin: 0;
  background: var(--black);
}

figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  height: auto;
  display: block;
  object-fit: cover;
}

figcaption {
  padding: 16px 0 0;
  color: var(--black);
  background: var(--paper);
  font-size: clamp(1.45rem, 2.4vw, 2.7rem);
  font-weight: 900;
  line-height: .96;
  text-transform: uppercase;
}

.photo-story-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.photo-story-dots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.photo-story-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--black);
  border-radius: 999px;
  cursor: pointer;
}

.photo-story-dot.is-active {
  background: var(--lime);
  border-color: var(--black);
}

.photo-story-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 0;
  color: var(--black);
  background: #fbfbf8;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0;
  cursor: pointer;
}

.photo-story-button::before {
  content: "‹";
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1;
}

.photo-story-button-next::before {
  content: "›";
}

.client-progress {
  padding: clamp(54px, 8vw, 88px) 0;
  border-top: 1px solid var(--line);
}

.client-progress-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.client-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 220px));
  justify-content: start;
  gap: 14px;
  align-items: start;
}

.client-gallery figure {
  display: flex;
  min-height: 0;
  flex-direction: column;
  min-width: 0;
  background: transparent;
}

.client-gallery figure:nth-child(2) {
  margin-top: 0;
}

.client-gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.client-gallery figcaption {
  font-size: 1rem;
}

.client-carousel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.client-carousel-viewport {
  overflow: hidden;
  width: min(100%, 980px);
  margin: 0 auto;
}

.client-carousel-track {
  display: flex;
  gap: 14px;
  transition: transform .28s ease;
  will-change: transform;
}

.client-slide {
  flex: 0 0 clamp(180px, 24vw, 248px);
  min-width: 0;
  background: transparent;
}

.client-slide img {
  width: 100%;
  aspect-ratio: 5 / 6;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.client-carousel-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 0;
  color: var(--black);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  font: inherit;
  font-size: .78rem;
  font-weight: 900;
  text-indent: -9999px;
  cursor: pointer;
  position: relative;
}

.client-carousel-button::before {
  content: "";
  width: 12px;
  height: 12px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.client-carousel-button-prev::before {
  transform: rotate(-135deg);
  margin-left: 4px;
}

.client-carousel-button-next::before {
  margin-right: 4px;
}

.client-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.client-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.client-carousel-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--black);
  border-radius: 999px;
  cursor: pointer;
}

.client-carousel-dot.is-active {
  background: var(--lime);
  border-color: var(--black);
}

.contact {
  margin-top: 54px;
  margin-bottom: 54px;
  padding: clamp(30px, 6vw, 66px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
  gap: clamp(26px, 5vw, 68px);
  align-items: start;
  color: var(--black);
  background:
    linear-gradient(135deg, rgba(255, 59, 48, .12), transparent 42%),
    linear-gradient(315deg, rgba(40, 120, 255, .14), transparent 38%),
    var(--lime);
  border-radius: 8px;
}

.home-panel[data-home-tab-panel="start"] .contact {
  padding-right: clamp(20px, 5vw, 56px);
  padding-left: clamp(20px, 5vw, 56px);
  gap: clamp(28px, 4vw, 56px);
}

.home-panel[data-home-tab-panel="start"] .contact-copy {
  max-width: none;
}

.home-panel[data-home-tab-panel="start"] .contact h2 {
  max-width: 780px;
}

.home-panel[data-home-tab-panel="start"] .contact h3 {
  margin: 12px 0 0;
  max-width: 780px;
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: .98;
  text-transform: uppercase;
}

.home-panel[data-home-tab-panel="start"] .contact p:not(.kicker) {
  max-width: 38ch;
  font-size: clamp(1.1rem, 1.9vw, 1.55rem);
  line-height: 1.34;
}

.home-panel[data-home-tab-panel="start"] .contact .button-row {
  margin-top: 34px;
  margin-bottom: 10px;
}

.contact h2 {
  max-width: 720px;
}

.contact p:not(.kicker) {
  margin-top: 18px;
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: clamp(22px, 3vw, 30px);
  background: rgba(255, 255, 255, .88);
  border: 1px solid rgba(0, 0, 0, .1);
  border-radius: 8px;
}

.home-panel[data-home-tab-panel="start"] .contact-form {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  gap: 18px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--black);
  font-weight: 900;
}

.contact-form textarea {
  min-height: 130px;
}

.contact-form p {
  min-height: 18px;
  margin: 0;
  color: var(--muted);
  font-weight: 900;
}

.contact-form .button {
  width: 100%;
}

.contact-website-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  min-height: 1px;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}

footer {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 36px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.login-page {
  min-height: 100svh;
  background:
    linear-gradient(135deg, rgba(215, 255, 63, .26), transparent 36%),
    linear-gradient(315deg, rgba(40, 120, 255, .10), transparent 42%),
    var(--paper);
}

.coming-soon {
  min-height: calc(100svh - 72px);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  padding: 40px 20px;
  text-align: center;
}

.coming-soon h1 {
  max-width: none;
  margin: 0;
  color: var(--black);
  font-size: clamp(4.8rem, 16vw, 13rem);
}

.coming-soon .kicker {
  margin: 0;
}

.client-access {
  width: min(1500px, calc(100% - 48px));
  min-height: calc(100svh - 72px);
  display: grid;
  grid-template-columns: minmax(280px, .48fr) minmax(720px, 1.52fr);
  gap: clamp(28px, 3.5vw, 52px);
  align-items: center;
  margin: 0 auto;
  padding: clamp(42px, 7vw, 92px) 0;
}

.access-intro {
  min-width: 0;
}

.access-intro h1 {
  max-width: 520px;
  margin-bottom: 18px;
  color: var(--black);
  font-size: clamp(3.4rem, 5vw, 5.8rem);
  line-height: .88;
  overflow-wrap: anywhere;
}

.access-intro p:not(.kicker) {
  max-width: 480px;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  font-weight: 800;
}

.password-access-page .client-access {
  grid-template-columns: minmax(340px, .7fr) minmax(0, 1.3fr);
  gap: clamp(28px, 4vw, 60px);
}

.password-access-page .access-intro h1 {
  max-width: 8ch;
  font-size: clamp(3.2rem, 5.6vw, 5.9rem);
  line-height: .9;
  overflow-wrap: normal;
  word-break: normal;
  text-wrap: balance;
}

.password-access-page .access-intro p:not(.kicker) {
  max-width: 18ch;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.22;
}

.password-access-page .access-intro h1 span,
.password-access-page .access-intro-copy span {
  display: block;
}

.access-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.access-footer-cta {
  display: flex;
  justify-content: center;
  padding-top: 20px;
}

.access-panel {
  display: grid;
  align-content: start;
  gap: 20px;
  padding: clamp(24px, 3.5vw, 34px);
  background: var(--paper);
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .1);
}

.access-panel-heading h2 {
  font-size: clamp(2.1rem, 3.3vw, 3.55rem);
  line-height: .9;
}

.login-form {
  display: grid;
  gap: 16px;
}

.login-form label {
  display: grid;
  gap: 8px;
  color: var(--black);
  font-size: .9rem;
  font-weight: 900;
}

.login-form .button {
  width: 100%;
  min-height: 54px;
  border-radius: 14px;
}

.password-reset-button {
  width: max-content;
  padding: 0;
  border: 0;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: .86rem;
  font-weight: 900;
  cursor: pointer;
  text-decoration: underline;
}

.password-reset-button:hover,
.password-reset-button:focus-visible {
  color: var(--black);
}

.login-form input {
  min-height: 54px;
  border-radius: 14px;
  background: #fbfbf8;
}

.login-status {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 900;
}

.access-demo {
  display: grid;
  gap: 4px;
  padding: 16px;
  color: var(--muted);
  background: #fbfbf8;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-weight: 900;
}

.access-demo strong {
  color: var(--black);
}

.coach-login-card {
  margin: -2px 0 0;
  text-align: center;
}

.coach-login-card a {
  color: var(--muted);
  font-size: .86rem;
  font-weight: 900;
  text-decoration: none;
}

.coach-login-card a:hover,
.coach-login-card a:focus-visible {
  color: var(--black);
  text-decoration: underline;
}

.coach-login-footer {
  grid-column: 1 / -1;
  margin: -18px 0 0;
  text-align: center;
}

.coach-login-footer a {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 900;
  text-decoration: none;
}

.coach-login-footer a:hover,
.coach-login-footer a:focus-visible {
  color: var(--black);
  text-decoration: underline;
}

.dashboard-page {
  background: #f2f2ed;
}

.dashboard-shell {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(22px, 4vw, 48px) 0;
}

.dashboard-loading {
  display: grid;
  align-content: center;
  min-height: 58svh;
}

.dashboard-loading h1 {
  max-width: 780px;
  margin-bottom: 14px;
  color: var(--black);
  font-size: clamp(3.5rem, 9vw, 8.4rem);
}

.dashboard-loading p:not(.kicker) {
  max-width: 560px;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
}

.dashboard-hero {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.dashboard-hero h1 {
  max-width: 820px;
  margin-bottom: 10px;
  color: var(--black);
  font-size: clamp(3rem, 7vw, 6.2rem);
}

.dashboard-hero p:not(.kicker) {
  max-width: 650px;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: start;
  padding-top: 14px;
}

.client-dashboard-tabs {
  display: flex;
  gap: 8px;
  padding: 10px;
  overflow-x: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.client-dashboard-tab {
  flex: 1 0 max-content;
  min-height: 42px;
  padding: 10px 14px;
  color: var(--muted);
  background: #fbfbf8;
  border: 1px solid var(--line);
  border-radius: 999px;
  font: inherit;
  font-size: .82rem;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.client-dashboard-tab.is-active {
  color: var(--black);
  background: var(--lime);
  border-color: var(--black);
}

.client-dashboard-tab:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 2px;
}

[data-client-dashboard-panel][hidden] {
  display: none;
}

.client-summary,
.workout-insights-panel,
.client-workouts-panel,
.today-panel,
.coach-panel,
.lower-panel,
.progress-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.client-summary {
  display: grid;
  align-content: start;
  grid-template-columns: 52px minmax(150px, .35fr) minmax(0, 1fr) auto;
  gap: 12px 16px;
  align-items: center;
  padding: 16px;
  align-self: start;
}

.client-avatar {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: var(--black);
  background: var(--lime);
  border-radius: 50%;
  font-weight: 900;
}

.client-summary h2,
.panel-heading h2,
.coach-panel h2 {
  margin: 0;
  font-size: clamp(1.7rem, 2.8vw, 3rem);
  line-height: .92;
}

.client-summary p,
.coach-panel p {
  margin: 0;
  color: var(--muted);
}

.client-summary > p {
  grid-column: 2;
  margin-top: -4px;
  font-size: .9rem;
  font-weight: 800;
}

.summary-metrics {
  grid-column: 3;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  border-top: 0;
}

.summary-metric {
  display: grid;
  gap: 10px;
  padding: 10px 12px;
  color: var(--muted);
  background: #fbfbf8;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 900;
}

.summary-metric strong {
  color: var(--black);
}

.summary-metric input {
  width: 100%;
  min-height: 42px;
  padding: 10px 0 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  font-weight: 900;
}

.summary-metric input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.summary-metric-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px 14px;
}

.summary-metric-actions small {
  color: var(--muted);
  font-weight: 900;
}

.workout-insights-panel {
  display: grid;
  gap: 18px;
  padding: 18px;
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.insight-card {
  display: grid;
  align-content: space-between;
  gap: 18px;
  min-height: 210px;
  padding: 16px;
  background: #fbfbf8;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.insight-card > span,
.exercise-insight strong {
  color: var(--muted);
  font-size: .74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.insight-card > strong {
  color: var(--black);
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: .92;
  text-transform: uppercase;
}

.insight-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 900;
}

.insight-graphic-card {
  align-content: start;
}

.muscle-targets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.muscle-targets span,
.muscle-target-empty {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 6px 9px;
  color: var(--muted);
  background: #f1f1eb;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.muscle-targets span.is-primary {
  color: var(--black);
  background: var(--lime);
  border-color: rgba(0, 0, 0, .14);
}

.muscle-target-empty {
  margin-top: 10px;
  text-transform: none;
}

.client-summary .button {
  grid-column: 4;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 14px;
  white-space: nowrap;
}

.dashboard-sheet-action {
  display: flex;
  justify-content: center;
  padding: 18px 0 0;
}

.dashboard-sheet-action .button {
  width: min(360px, 100%);
  min-height: 48px;
  border-radius: 14px;
}

.today-panel {
  grid-column: auto;
  grid-row: auto;
}

.today-panel,
.coach-panel,
.lower-panel,
.progress-panel {
  padding: 18px;
}

.panel-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  color: var(--black);
  background: var(--lime);
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.exercise-list {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.workout-app-list {
  display: grid;
  gap: 10px;
  width: min(720px, 100%);
}

.workout-format-pill {
  display: inline-flex;
  width: max-content;
  min-height: 32px;
  align-items: center;
  margin: -4px 0 14px;
  padding: 7px 12px;
  color: var(--black);
  background: #eef3ff;
  border: 1px solid rgba(40, 120, 255, .18);
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.workout-format-group {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: #fbfbf8;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.client-workouts-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.client-workout-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.client-workout-tab {
  flex: 1 0 min(210px, 72vw);
  display: grid;
  gap: 4px;
  min-height: 64px;
  padding: 10px 12px;
  color: var(--black);
  background: #fbfbf8;
  border: 1px solid var(--line);
  border-radius: 14px;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.client-workout-tab span {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.client-workout-tab strong {
  overflow: hidden;
  font-size: .92rem;
  font-weight: 900;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-workout-tab.is-active {
  background: var(--lime);
  border-color: var(--black);
}

.client-workout-tab:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 2px;
}

.client-workout-panels {
  display: grid;
  gap: 12px;
}

.client-workout-panel {
  display: grid;
  gap: 12px;
}

.client-workout-panel[hidden] {
  display: none;
}

.workout-format-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 4px 2px;
}

.workout-format-heading strong {
  display: block;
  color: var(--black);
  font-size: 1.05rem;
  font-weight: 900;
}

.workout-format-heading span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: .86rem;
  font-weight: 900;
}

.circuit-group {
  border-color: rgba(31, 166, 55, .25);
  background: #f7fbf6;
}

.superset-card {
  border-color: rgba(40, 120, 255, .18);
}

.superset-detail {
  gap: 18px;
}

.superset-exercise-log {
  display: grid;
  gap: 14px;
  padding: 16px;
  background: #fbfbf8;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.superset-exercise-heading {
  display: grid;
  gap: 4px;
}

.superset-exercise-heading strong {
  color: var(--black);
  font-size: 1.05rem;
  font-weight: 900;
}

.superset-exercise-heading em {
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
}

.superset-exercise-heading small {
  color: #21a637;
  font-size: .82rem;
  font-weight: 900;
}

.workout-exercise-card {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid rgba(0, 0, 0, .09);
  border-radius: 18px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .04);
}

.skip-toggle {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 112px;
  min-height: 30px;
  padding: 5px 9px;
  color: var(--muted);
  background: #fbfbf8;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.skip-toggle input {
  width: 14px;
  min-height: 14px;
}

.workout-exercise-card.is-skipped {
  background: #f6f6f1;
  border-style: dashed;
}

.workout-exercise-card.is-skipped .exercise-card-summary small {
  color: var(--muted);
}

.workout-exercise-card.is-skipped .exercise-card-summary small::after {
  content: " · skipped";
}

.exercise-card-summary {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 26px;
  gap: 14px;
  align-items: center;
  width: 100%;
  min-height: 88px;
  padding: 12px 168px 12px 16px;
  color: var(--black);
  background: var(--paper);
  border: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.exercise-card-summary strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.05rem;
}

.exercise-card-summary em {
  display: block;
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
}

.exercise-card-summary small {
  display: block;
  margin-top: 6px;
  color: #21a637;
  font-size: .82rem;
  font-weight: 900;
}

.exercise-card-summary i {
  position: absolute;
  top: 50%;
  right: 136px;
  color: var(--black);
  font-size: 2.2rem;
  font-style: normal;
  line-height: 1;
  transform: translateY(-50%);
  transition: transform .18s ease;
}

.workout-exercise-card.is-open .exercise-card-summary i {
  transform: translateY(-50%) rotate(90deg);
}

.exercise-detail {
  display: none;
  gap: 16px;
  padding: 16px;
  border-top: 1px solid var(--line);
}

.exercise-video-link {
  display: inline-flex;
  width: fit-content;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  padding: 8px 12px;
  color: var(--black);
  background: var(--lime);
  border: 1px solid rgba(0, 0, 0, .14);
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.exercise-video-link:hover {
  transform: translateY(-1px);
}

.workout-exercise-card.is-open .exercise-detail {
  display: grid;
}

.exercise-name-field,
.exercise-date,
.exercise-notes {
  display: grid;
  gap: 8px;
  color: var(--black);
  font-weight: 900;
}

.exercise-name-field {
  padding: 12px;
  background: #fbfbf8;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.exercise-name-field input {
  min-height: 46px;
  border-radius: 12px;
  background: var(--paper);
}

.exercise-date {
  max-width: 210px;
}

.set-table {
  display: grid;
  gap: 10px;
}

.set-header,
.set-row {
  display: grid;
  grid-template-columns: 48px minmax(92px, 1fr) 22px minmax(76px, .7fr);
  gap: 12px;
  align-items: center;
}

.set-header {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.set-row {
  font-size: 1.05rem;
  font-weight: 900;
}

.set-row input {
  width: 100%;
  min-height: 58px;
  padding: 10px 12px;
  border-color: rgba(0, 0, 0, .08);
  border-radius: 14px;
  background: #fbfbfb;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 800;
}

.set-row b {
  color: var(--black);
  text-align: center;
}

.add-set-button {
  min-height: 54px;
  color: var(--blue);
  background: var(--paper);
  border: 1px solid rgba(0, 0, 0, .09);
  border-radius: 14px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.exercise-notes textarea {
  min-height: 92px;
  border-radius: 14px;
}

.complete-exercise-button {
  min-height: 64px;
  color: var(--paper);
  background: #1fa637;
  border: 0;
  border-radius: 14px;
  font: inherit;
  font-size: 1.1rem;
  font-weight: 900;
  cursor: pointer;
}

.workout-actions {
  display: grid;
  gap: 8px;
  padding: 12px;
  background: #fbfbf8;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.workout-actions > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.workout-actions button {
  min-height: 56px;
  border-radius: 14px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.workout-save-button {
  color: var(--black);
  background: var(--paper);
  border: 1px solid var(--line);
}

.workout-finish-button {
  color: var(--paper);
  background: #1fa637;
  border: 0;
}

.workout-actions small {
  min-height: 16px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 900;
}

.exercise-detail small {
  min-height: 16px;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 900;
}

.exercise-row {
  display: grid;
  grid-template-columns: 24px 44px minmax(0, 1fr) minmax(140px, auto) minmax(300px, .8fr);
  gap: 12px;
  align-items: start;
  min-height: 58px;
  margin: 0;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 900;
}

.exercise-row input {
  width: 20px;
  min-height: 20px;
}

.exercise-row .exercise-log input,
.mini-table .exercise-log input {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
}

.exercise-code {
  color: var(--red);
}

.exercise-row em,
.mini-table em {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-style: normal;
  font-weight: 900;
  text-align: right;
}

.exercise-row em small,
.mini-table em small {
  color: var(--red);
  font-size: .7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.coach-panel {
  grid-column: 2 / -1;
  color: var(--white);
  background: var(--black);
  border-color: var(--black);
  min-height: auto;
  align-self: start;
}

.coach-panel .kicker {
  color: var(--lime);
}

.coach-panel h2 {
  max-width: 760px;
  font-size: clamp(1.9rem, 4vw, 4.2rem);
  line-height: .9;
}

.coach-panel p {
  margin-top: 10px;
  color: rgba(255, 255, 255, .72);
  font-size: .98rem;
  line-height: 1.35;
}

.lower-panel {
  grid-column: auto;
}

.progress-panel {
  grid-column: auto;
}

.progress-current {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.progress-current span {
  display: grid;
  gap: 6px;
  padding: 14px;
  color: var(--muted);
  background: #fbfbf8;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 900;
}

.progress-current strong {
  color: var(--black);
}

.progress-chart {
  display: grid;
  gap: 12px;
}

.progress-chart svg {
  width: 100%;
  min-height: 230px;
}

.progress-chart line {
  stroke: var(--line);
  stroke-width: 2;
}

.progress-chart polyline {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 5;
}

.progress-chart circle {
  stroke: var(--paper);
  stroke-width: 3;
}

.progress-chart text {
  fill: var(--muted);
  font-size: 14px;
  font-weight: 900;
}

.weight-line {
  stroke: var(--blue);
}

.bodyfat-line {
  stroke: var(--red);
}

.weight-dot {
  fill: var(--blue);
}

.bodyfat-dot {
  fill: var(--red);
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
  font-weight: 900;
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.chart-legend i {
  display: inline-block;
  width: 24px;
  height: 4px;
  border-radius: 999px;
}

.weight-key {
  background: var(--blue);
}

.bodyfat-key {
  background: var(--red);
}

.progress-goal {
  margin: 18px 0 0;
  color: var(--muted);
  font-weight: 900;
}

.additional-workouts {
  grid-column: auto;
  display: grid;
  gap: 14px;
}

.mini-table {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}

.empty-state {
  margin: 0;
  padding: 16px 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-weight: 900;
}

.mini-table div {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) minmax(140px, auto) minmax(300px, .8fr);
  gap: 10px;
  align-items: start;
  min-height: 48px;
  border-bottom: 1px solid var(--line);
}

.mini-table span {
  color: var(--red);
  font-weight: 900;
}

.mini-table strong {
  min-width: 0;
}

.exercise-log {
  display: grid;
  grid-template-columns: minmax(118px, 1fr) minmax(90px, .7fr) auto;
  gap: 4px;
  color: var(--muted);
  font-size: .7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.exercise-log label {
  display: grid;
  gap: 4px;
}

.exercise-log .button {
  min-height: 40px;
  align-self: end;
  padding: 8px 14px;
  font-size: .7rem;
}

.exercise-log small,
.previous-weights {
  color: var(--muted);
  font-size: .62rem;
  line-height: 1.2;
  text-transform: none;
}

.exercise-log small {
  grid-column: 1 / -1;
  min-height: 14px;
}

.previous-weights {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
}

.previous-weights strong {
  color: var(--black);
  font-size: .62rem;
  text-transform: uppercase;
}

.previous-weights span {
  color: var(--muted);
}

.training-log-status {
  margin: 0;
  color: var(--muted);
  font-weight: 900;
}

.admin-shell {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(34px, 6vw, 76px) 0;
}

.coach-admin-page .admin-shell {
  width: min(1120px, calc(100% - 48px));
  padding: clamp(28px, 4vw, 48px) 0;
}

.coach-admin-page .dashboard-hero h1 {
  max-width: 720px;
  font-size: clamp(2.8rem, 4.8vw, 5rem);
}

.coach-admin-page .dashboard-hero p:not(.kicker) {
  max-width: 560px;
}

.admin-login-panel {
  max-width: 520px;
  margin-top: 24px;
}

.coach-admin-page .admin-login-panel {
  margin-inline: auto;
}

.admin-workspace {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 14px;
  padding-top: 14px;
}

.coach-admin-page .admin-workspace {
  grid-template-columns: 1fr;
  gap: 16px;
}

.admin-client-list,
.admin-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-client-list {
  align-self: start;
  position: sticky;
  top: 90px;
  display: grid;
  gap: 18px;
  padding: 22px;
}

.coach-admin-page .admin-client-list {
  position: static;
}

.admin-section-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.admin-section-heading h2 {
  font-size: clamp(2rem, 3vw, 3.8rem);
}

.coach-admin-page .admin-section-heading h2 {
  font-size: clamp(1.45rem, 2vw, 2.25rem);
  line-height: 1;
}

.admin-section-heading .button {
  width: auto;
  min-height: 42px;
}

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

.client-list-actions .button {
  min-height: 40px;
  padding: 10px 14px;
  font-size: .78rem;
}

.client-list-actions .button.is-selected {
  background: var(--lime);
  border-color: var(--black);
  color: var(--black);
}

.client-search-control,
.client-select-control {
  display: grid;
  gap: 8px;
  margin-top: -6px;
  font-weight: 900;
}

.client-select-control {
  margin-top: 16px;
}

.client-search-control span,
.client-select-control span {
  color: var(--muted);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: 0;
}

.client-search-control input,
.client-select-control select {
  width: 100%;
  min-height: 56px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfbf8;
  color: var(--black);
  font: inherit;
  font-weight: 900;
}

.client-select-control select {
  cursor: pointer;
}

.client-select-control select:disabled {
  color: var(--muted);
  cursor: not-allowed;
}

.client-search-control input:focus,
.client-select-control select:focus {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
  border-color: var(--black);
}

.profile-actions-row {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.profile-actions-row .button {
  width: auto;
}

.profile-management-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  background: #fbfbf8;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.profile-management-row p {
  margin: 4px 0 0;
  color: var(--muted);
  font-weight: 900;
}

.profile-save-status {
  flex: 1 1 220px;
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 900;
}

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

.profile-management-actions .button {
  width: auto;
}

.program-history {
  display: grid;
  gap: 10px;
  padding: 14px;
  background: #fbfbf8;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.program-history-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.program-history-heading strong {
  color: var(--black);
  font-size: 1rem;
  font-weight: 900;
}

.program-history-heading span {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 900;
}

.program-history-list {
  display: grid;
  gap: 8px;
}

.program-history-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.program-history-row.is-selected {
  border-color: var(--black);
}

.program-history-row strong,
.program-history-row span {
  display: block;
}

.program-history-row strong {
  color: var(--black);
  font-weight: 900;
}

.program-history-row span {
  margin-top: 3px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 900;
}

.program-history-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.program-history-actions .button {
  min-height: 34px;
  padding: 8px 10px;
  font-size: .72rem;
}

#start-new-program-button {
  white-space: nowrap;
}

.client-selector-status {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 900;
}

.client-contact-panel {
  display: grid;
  gap: 16px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

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

.client-contact-actions .button {
  width: auto;
}

.copy-client-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, .42);
}

.copy-client-modal[hidden] {
  display: none;
}

.copy-client-dialog {
  display: grid;
  width: min(520px, 100%);
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .22);
}

.copy-client-dialog h2 {
  margin: 0;
  color: var(--black);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1;
}

.copy-client-status {
  margin: 0;
  color: var(--muted);
  font-weight: 900;
}

.copy-client-warning {
  margin: 0;
  padding: 12px;
  color: var(--black);
  background: #fff6d8;
  border: 1px solid #ead58a;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 900;
}

.copy-client-warning[hidden] {
  display: none;
}

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

.copy-client-actions .button {
  width: auto;
}

.admin-editor {
  display: grid;
  gap: 14px;
}

.selected-client-panel {
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 16px;
}

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

.selected-client-copy h2 {
  margin-bottom: 6px;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1;
}

.selected-client-copy p:not(.kicker) {
  margin: 0;
  color: var(--muted);
  font-weight: 900;
  overflow-wrap: anywhere;
}

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

.selected-client-meta span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--black);
  background: #fbfbf8;
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.selected-client-actions .button {
  width: auto;
}

.admin-tabs {
  position: sticky;
  top: 64px;
  z-index: 8;
  display: flex;
  gap: 8px;
  padding: 10px;
  overflow-x: auto;
  background: rgba(255, 255, 255, .92);
  border: 1px solid var(--line);
  border-radius: 8px;
  backdrop-filter: blur(18px);
}

.admin-tab {
  flex: 1 0 auto;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: .78rem;
  font-weight: 900;
  cursor: pointer;
}

.admin-tab.is-active {
  color: var(--black);
  background: var(--lime);
  border-color: var(--black);
}

.compact-heading {
  margin-bottom: 0;
}

.programming-heading-card p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-weight: 900;
}

.workout-fields {
  display: grid;
  gap: 14px;
}

.workout-tab-panel {
  display: grid;
  gap: 14px;
}

.workout-tab-heading p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-weight: 900;
}

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

.workout-heading-actions .button {
  width: auto;
}

.workout-card-heading {
  align-items: center;
}

.workout-editor-card {
  gap: 0;
}

.workout-editor-card summary {
  list-style: none;
}

.workout-editor-card summary::-webkit-details-marker {
  display: none;
}

.workout-card-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
}

.workout-card-summary > span {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.workout-card-summary strong {
  color: var(--black);
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  font-weight: 900;
}

.workout-card-summary small {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.workout-card-body {
  display: grid;
  gap: 18px;
  padding-top: 18px;
}

.workout-include-label {
  color: var(--muted) !important;
  font-size: .9rem;
}

.admin-card {
  display: grid;
  gap: 18px;
  padding: clamp(20px, 3vw, 30px);
}

.coach-admin-page .admin-card {
  padding: clamp(18px, 2vw, 24px);
}

.admin-field-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.coach-admin-page .admin-field-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.admin-card label {
  display: grid;
  gap: 9px;
  margin: 0;
  color: var(--black);
  font-weight: 900;
}

.invite-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  background: #fbfbf8;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.invite-row p {
  margin: 4px 0 0;
  color: var(--muted);
  font-weight: 900;
}

.invite-row a,
.invite-row .text-button {
  color: var(--black);
  font: inherit;
  font-weight: 900;
}

.invite-link-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 10px;
}

.invite-row .text-button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-decoration: underline;
}

.invite-row .button {
  width: auto;
}

.progress-actions,
.notes-actions,
.training-block-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  background: #fbfbf8;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.progress-actions p,
.notes-actions p,
.training-block-actions p {
  margin: 0;
  color: var(--muted);
  font-weight: 900;
}

.progress-actions .button,
.notes-actions .button,
.training-block-actions .button {
  width: auto;
}

.progress-history {
  display: grid;
  gap: 8px;
}

.progress-training-log-panel,
.recent-client-logs-panel {
  margin-top: 24px;
}

.progress-history-row {
  display: grid;
  grid-template-columns: 110px 100px 120px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--black);
  background: #fbfbf8;
  font: inherit;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.progress-history-row span,
.progress-history-row em {
  color: var(--muted);
  font-style: normal;
}

.training-log-history {
  display: grid;
  gap: 8px;
}

.training-log-workout-group {
  display: grid;
  gap: 10px;
  padding: 14px;
  background: #fbfbf8;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.training-log-workout-heading {
  display: grid;
  gap: 4px;
}

.training-log-workout-heading strong,
.training-log-superset-heading,
.training-log-row-main span {
  color: var(--black);
  font-weight: 900;
}

.training-log-workout-heading span {
  color: var(--muted);
  font-weight: 900;
}

.training-log-superset-list,
.training-log-exercise-list {
  display: grid;
  gap: 8px;
}

.training-log-superset-group {
  display: grid;
  gap: 8px;
  padding-top: 4px;
}

.training-log-superset-heading {
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.training-log-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
  margin-bottom: 14px;
}

.training-log-controls label {
  display: grid;
  gap: 8px;
  flex: 1 1 220px;
  font-weight: 900;
}

.training-log-controls input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfbf8;
  color: var(--black);
  font: inherit;
  font-weight: 900;
}

.training-log-summary-list {
  display: grid;
  gap: 8px;
}

.training-log-summary-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) 90px;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: #fbfbf8;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.training-log-summary-date,
.training-log-summary-body {
  display: grid;
  gap: 4px;
}

.training-log-summary-date strong,
.training-log-summary-body span {
  color: var(--black);
  font-weight: 900;
}

.training-log-summary-date span,
.training-log-summary-body small,
.training-log-summary-row em {
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
}

.training-log-row {
  display: grid;
  grid-template-columns: 110px minmax(110px, .8fr) minmax(0, 1fr) 90px;
  gap: 10px;
  align-items: center;
  padding: 12px;
  background: #fbfbf8;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 900;
}

.training-log-row span,
.training-log-row em {
  color: var(--muted);
  font-style: normal;
}

.training-log-row-compact {
  grid-template-columns: 1fr;
  gap: 8px;
}

.training-log-row-nested {
  padding: 10px 12px;
  background: var(--paper);
}

.training-log-row-top,
.training-log-row-main {
  display: grid;
  gap: 4px;
}

.training-log-row-top strong,
.training-log-row-main span {
  color: var(--black);
}

.training-log-row-main em {
  line-height: 1.35;
}

.toggle-label {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
}

.toggle-label input {
  width: 18px;
  min-height: 18px;
}

.exercise-textarea {
  min-height: 220px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  line-height: 1.55;
}

.questionnaire-page {
  background: #f2f2ed;
  overflow-x: hidden;
}

.questionnaire-shell {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(54px, 8vw, 96px) 0;
}

.questionnaire-hero {
  margin-bottom: 34px;
}

.questionnaire-hero h1 {
  max-width: 980px;
  margin-bottom: 18px;
  color: var(--black);
  font-size: clamp(4rem, 11vw, 9rem);
  overflow-wrap: normal;
  word-break: normal;
}

.questionnaire-hero p:not(.kicker) {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.35rem);
}

.questionnaire-form {
  display: grid;
  gap: 18px;
}

.form-section,
.form-submit-panel {
  padding: clamp(22px, 4vw, 40px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.form-section h2 {
  margin-bottom: 26px;
  font-size: clamp(2.4rem, 5vw, 5.8rem);
}

.form-section label,
.form-section fieldset {
  display: grid;
  gap: 10px;
  margin: 0 0 20px;
  color: var(--black);
  font-weight: 900;
}

.form-section fieldset {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.form-section legend {
  padding: 0 8px;
  font-weight: 900;
}

.form-section fieldset label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--muted);
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--black);
  background: #fbfbf8;
  font: inherit;
}

input[type="radio"] {
  width: 18px;
  min-height: 18px;
  accent-color: var(--black);
}

input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  accent-color: var(--black);
}

textarea {
  min-height: 118px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(215, 255, 63, .7);
  border-color: var(--black);
}

.form-submit-panel {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, .08);
}

.form-submit-panel p {
  margin: 0;
  color: var(--muted);
  font-weight: 900;
}

@media (max-width: 1180px) {
  .client-access {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .password-access-page .client-access {
    grid-template-columns: 1fr;
  }

  .access-intro h1 {
    max-width: 780px;
  }

  .password-access-page .access-intro h1,
  .password-access-page .access-intro p:not(.kicker) {
    max-width: none;
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .header-actions {
    gap: 12px;
  }

  .hero {
    min-height: auto;
  }

  .home-tabs-shell {
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
  }

  .home-tabs-shell + main {
    padding-bottom: 118px;
  }

  .home-tabs {
    gap: 8px;
    width: 100%;
    padding: 10px;
  }

  .training-subtabs {
    width: min(var(--max), calc(100% - 40px));
    margin: 0 auto 10px;
    gap: 8px;
  }

  .training-subtab {
    min-height: 44px;
    padding: 0 16px;
    font-size: .85rem;
  }

  .home-panel {
    width: min(var(--max), calc(100% - 40px));
    padding: clamp(8px, 1.8vw, 18px) 0 clamp(34px, 5vw, 48px);
    margin: 0 auto;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .home-panel[data-home-tab-panel] {
    order: initial;
  }

  .home-panel[hidden] {
    display: none !important;
  }

  .home-panel.is-active {
    animation: homePanelReveal .28s ease;
  }

  @keyframes homePanelReveal {
    from {
      opacity: 0;
      transform: translateY(10px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .hero img {
    object-position: 60% 12%;
  }

  .tile-photo-build img {
    object-position: 72% 0%;
  }

  .tile-photo-mindful img {
    object-position: 52% 10%;
  }

  .tile-photo-muscle img {
    object-position: 56% 12%;
  }

  .tile-photo-mobility img {
    object-position: 34% 6%;
  }

  .hero-content {
    padding-top: 42vh;
  }

  .hero-meta,
  .credentials,
  .training-grid,
  .split-feature,
  .contact,
  .credential-list,
  .review-track,
  .photo-grid,
  .yelp-summary,
  .client-access,
  .access-options,
  .insight-grid,
  .dashboard-hero,
  .dashboard-grid,
  .mini-table,
  .admin-workspace,
  .admin-field-grid {
    grid-template-columns: 1fr;
  }

  .admin-client-list {
    position: static;
  }

  .selected-client-panel {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .selected-client-meta,
  .selected-client-actions {
    justify-content: flex-start;
  }

  .coach-panel,
  .workout-insights-panel,
  .client-workouts-panel,
  .today-panel,
  .lower-panel,
  .progress-panel,
  .additional-workouts {
    grid-column: auto;
  }

  .client-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .client-carousel {
    gap: 14px;
  }

  .client-slide {
    flex-basis: clamp(180px, 38vw, 240px);
  }

  .photo-story-slide {
    flex-basis: clamp(220px, 42vw, 320px);
  }

  .yelp-summary {
    display: grid;
    align-items: start;
  }

  .yelp-summary span {
    text-align: left;
  }

  .hero-meta span,
  .training-tile {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .22);
  }

  .training-tile {
    min-height: 300px;
  }

  .training-tile:nth-last-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, .22);
  }

  .training-tile:last-child {
    border-bottom: 0;
  }

  figure img {
    aspect-ratio: 4 / 5;
    height: auto;
  }

  .client-gallery img {
    aspect-ratio: 1 / 1;
  }

}

@media (max-width: 620px) {
  .site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
    gap: 10px;
    padding-inline: 10px;
  }

  .client-gallery {
    gap: 8px;
  }

  .client-carousel-controls {
    gap: 12px;
  }

  .client-slide {
    flex-basis: min(68vw, 220px);
  }

  .client-carousel-button {
    width: 42px;
    height: 42px;
  }

  .photo-story-controls {
    gap: 12px;
    justify-content: flex-start;
  }

  .photo-story-slide {
    flex-basis: min(68vw, 260px);
  }

  .photo-story-button {
    width: 42px;
    height: 42px;
  }

  .client-list-actions {
    justify-content: stretch;
  }

  .client-list-actions .button {
    width: 100%;
  }

  .workout-actions > div {
    grid-template-columns: 1fr;
  }

  .program-history-heading,
  .program-history-row {
    display: grid;
  }

  .program-history-actions {
    justify-content: stretch;
  }

  .program-history-actions .button {
    flex: 1 1 90px;
  }

  .profile-actions-row {
    display: grid;
  }

  .profile-actions-row .button {
    width: 100%;
  }

  .profile-management-row {
    display: grid;
  }

  .profile-management-actions {
    display: grid;
    justify-content: stretch;
  }

  .profile-management-actions .button {
    width: 100%;
  }

  .client-contact-actions {
    display: grid;
    justify-content: stretch;
  }

  .client-contact-actions .button {
    width: 100%;
  }

  .copy-client-actions {
    display: grid;
    justify-content: stretch;
  }

  .copy-client-actions .button {
    width: 100%;
  }

  .admin-tabs {
    top: 64px;
    margin-inline: -2px;
    padding: 8px;
  }

  .admin-tab {
    flex-basis: auto;
    min-width: 104px;
  }

  .selected-client-actions {
    display: grid;
  }

  .selected-client-actions .button {
    width: 100%;
  }

  .workout-card-summary {
    align-items: start;
    display: grid;
  }

  .workout-heading-actions {
    display: grid;
    justify-content: stretch;
  }

  .workout-heading-actions .button {
    width: 100%;
  }

  .client-gallery figcaption {
    font-size: .78rem;
  }

  .summary-metrics {
    grid-template-columns: 1fr;
  }

  .brand strong {
    display: none;
  }

  .header-actions {
    flex: 0 0 auto;
    justify-self: auto;
    gap: 8px;
    min-width: 0;
  }

  .login-link,
  .online-link {
    min-height: 32px;
    padding-inline: 2px;
    font-size: .88rem;
  }

  .desktop-label {
    display: none;
  }

  .mobile-label {
    display: inline;
  }

  .hero-content,
  .editorial,
  .credentials,
  .split-feature,
  .proof,
  .photo-story,
  .client-progress,
    .contact,
    .questionnaire-shell,
    .client-access,
    .dashboard-shell,
    .admin-shell,
    footer {
    width: calc(100% - 12px);
  }

  .homepage-tab-stage {
    width: 100%;
    padding-inline: 6px;
  }

  .hero {
    min-height: 0;
  }

  .hero-content {
    padding-top: 18vh;
    padding-bottom: 8vh;
  }

  .hero-meta {
    display: none;
  }

  .home-tabs-shell {
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
  }

  .home-tabs-shell + main {
    padding-bottom: 112px;
  }

  .home-tabs {
    width: 100%;
    gap: 4px;
    padding: 6px;
  }

  .training-subtabs {
    width: calc(100% - 8px);
    margin: 0 auto 10px;
    gap: 6px;
  }

  .training-subtab {
    flex: 1 1 0;
    min-width: 0;
    padding: 0 10px;
    font-size: .72rem;
    text-align: center;
  }

  .home-tab {
    min-height: 46px;
    min-width: 0;
    padding: 0 6px;
    font-size: .68rem;
    text-align: center;
  }

  .home-panel {
    width: auto;
    padding-top: 4px;
    border-radius: 0;
  }

  .home-panel[data-home-tab-panel="start"] {
    width: calc(100% + 12px);
    margin-inline: -6px;
    padding-top: 0;
  }

  .home-panel[data-home-tab-panel="start"] .contact {
    width: 100%;
    margin: 0;
    padding: 28px 22px 132px;
    gap: 26px;
    border-radius: 0;
  }

  .home-panel[data-home-tab-panel="start"] .contact-copy {
    max-width: none;
  }

  .editorial h2,
  .split-feature h2,
  .credentials h2,
  .photo-story-heading h2,
  .proof-heading h2,
  .contact h2,
  .client-progress-heading h2 {
    max-width: 300px;
    margin-inline: auto;
    font-size: clamp(1.75rem, 8.6vw, 2.6rem);
    line-height: .94;
  }

  .home-panel[data-home-tab-panel="start"] .contact h2 {
    max-width: 360px;
    margin-inline: 0;
  }

  .home-panel[data-home-tab-panel="start"] .contact p:not(.kicker) {
    max-width: 30ch;
    font-size: 1.12rem;
    line-height: 1.28;
  }

  .home-panel[data-home-tab-panel="start"] .contact .button-row {
    margin-top: 26px;
    margin-bottom: 14px;
  }

  .editorial h2 {
    max-width: 280px;
    font-size: clamp(1.5rem, 7vw, 2.2rem);
    line-height: .92;
    text-wrap: normal;
    overflow-wrap: anywhere;
  }

  .hero-content h1 {
    max-width: 6ch;
    text-wrap: pretty;
  }

  .hero-content > p:not(.kicker) {
    max-width: 320px;
  }

  h1 {
    font-size: clamp(3rem, 14vw, 4.2rem);
    line-height: .88;
  }

  h2 {
    font-size: clamp(2.1rem, 10vw, 3.4rem);
    line-height: .96;
  }

  h3 {
    font-size: clamp(1.75rem, 9vw, 2.75rem);
    line-height: 1;
  }

  .training-tile h3 {
    font-size: clamp(1.9rem, 8vw, 2.5rem);
  }

  .photo-story-heading h2 {
    font-size: clamp(2.1rem, 10vw, 3.25rem);
  }

  .editorial h2 span {
    white-space: normal;
  }

  .editorial h2 span:last-child {
    font-size: .84em;
  }

  .access-intro h1 {
    max-width: 320px;
    font-size: clamp(2.35rem, 11vw, 3.4rem);
    line-height: .9;
  }

  .access-footer-cta .button {
    width: 100%;
  }

  .questionnaire-shell {
    padding-top: 44px;
  }

  .questionnaire-hero {
    margin-bottom: 28px;
  }

  .questionnaire-hero h1 {
    font-size: clamp(2.15rem, 10.5vw, 2.72rem);
    line-height: .9;
  }

  .questionnaire-hero p:not(.kicker) {
    font-size: 1rem;
  }

  .form-section,
  .form-submit-panel {
    padding: 22px;
  }

  .form-section h2 {
    font-size: clamp(2.25rem, 12vw, 3.2rem);
  }

  .button {
    width: 100%;
  }

  .form-submit-panel {
    position: static;
    display: grid;
  }

  .dashboard-grid,
  .client-summary,
  .workout-insights-panel,
  .client-workouts-panel,
  .today-panel,
  .coach-panel,
  .lower-panel {
    gap: 10px;
  }

  .client-summary {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .summary-metrics,
  .client-summary .button {
    grid-column: 1 / -1;
  }

  .summary-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .summary-metric-actions {
    justify-content: stretch;
  }

  .summary-metric-actions .button,
  .summary-metric-actions small {
    width: 100%;
  }

  .invite-row {
    display: grid;
  }

  .progress-actions,
  .notes-actions,
  .training-block-actions,
  .progress-current,
  .progress-history-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .progress-actions .button,
  .notes-actions .button,
  .training-block-actions .button {
    width: 100%;
  }

  .panel-heading {
    display: grid;
  }

  .exercise-row {
    grid-template-columns: 24px 38px minmax(0, 1fr);
  }

  .exercise-row em,
  .exercise-row .exercise-log {
    grid-column: 3;
    text-align: left;
  }

  .exercise-row .exercise-log,
  .mini-table .exercise-log {
    grid-template-columns: 1fr;
  }

  .exercise-card-summary {
    grid-template-columns: minmax(0, 1fr) 24px;
    padding-right: 136px;
  }

  .skip-toggle {
    right: 12px;
    min-width: 98px;
    padding: 4px 8px;
    font-size: .68rem;
  }

  .exercise-card-summary i {
    right: 110px;
  }

  .set-header {
    display: grid;
  }

  .set-row {
    grid-template-columns: 34px minmax(0, 1fr) 18px minmax(0, 1fr);
    gap: 8px;
  }

  .set-row input {
    min-height: 48px;
    padding: 8px;
  }

  .mini-table div {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .mini-table em,
  .mini-table .exercise-log {
    grid-column: 2;
    text-align: left;
  }

  .training-log-row {
    grid-template-columns: 1fr;
  }

  .training-log-summary-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .questionnaire-page .header-cta,
  .dashboard-page .header-cta,
  .login-page .header-cta {
    display: none;
  }

  .questionnaire-page .login-link,
  .questionnaire-page .online-link {
    padding-inline: 8px;
    font-size: .64rem;
  }

  .questionnaire-hero h1 {
    font-size: clamp(2rem, 9.5vw, 2.45rem);
  }

  .password-access-page .client-access {
    width: min(calc(100% - 28px), 560px);
    gap: 24px;
    padding-top: 26px;
    padding-bottom: 34px;
  }

  .password-access-page .access-intro {
    max-width: 300px;
  }

  .password-access-page .access-intro h1 {
    width: min(100%, 8ch);
    max-width: 8ch;
    margin-bottom: 14px;
    font-size: clamp(2.45rem, 15vw, 4.35rem);
    text-wrap: pretty;
  }

  .password-access-page .access-intro p:not(.kicker) {
    width: min(100%, 18ch);
    max-width: 18ch;
    font-size: .98rem;
  }

  .password-access-page .access-panel {
    padding: 22px;
  }
}
