:root {
  color-scheme: dark;
  --ink: #171713;
  --ink-soft: #24241f;
  --paper: #f5f3ed;
  --paper-strong: #fffefa;
  --sand: #d9cdbb;
  --sand-soft: #ece5da;
  --olive: #6c7a45;
  --olive-dark: #4f5d31;
  --terracotta: #a55f3f;
  --muted: #8f8c82;
  --line-dark: rgba(255, 255, 255, 0.13);
  --line-light: #d8d1c5;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.23);
  font-family: Inter, Avenir Next, Avenir, Helvetica Neue, Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { background: var(--ink); scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    var(--ink);
  background-size: 100% 36px;
  color: #f7f5ef;
  letter-spacing: 0;
}

button, input, select, textarea { font: inherit; letter-spacing: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  background: #fff;
  color: #111;
  transform: translateY(-160%);
  min-height: 44px;
}
.skip-link:focus { transform: translateY(0); }

.member-header {
  min-height: 76px;
  padding: 14px clamp(20px, 4vw, 56px);
  display: flex;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--line-dark);
  background: rgba(23, 23, 19, 0.94);
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(16px);
}

.member-brand {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.member-brand img { width: 38px; height: 38px; object-fit: contain; }
.member-brand span { display: grid; gap: 2px; }
.member-brand strong { font-size: 13px; font-weight: 550; }
.member-brand small { color: #aaa79d; font-size: 11px; }

.member-header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #c8c5bc;
  font-size: 12px;
}
.member-back {
  margin-left: auto;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: #c8c5bc;
  font-size: 12px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.member-header-actions + .member-back { margin-left: 4px; }
.member-back:hover { border-color: currentColor; }

.icon-button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-dark);
  background: transparent;
  color: #f7f5ef;
  cursor: pointer;
}
.icon-button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.eyebrow {
  margin: 0 0 14px;
  color: #b8b49f;
  font-size: 11px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.13em;
}

.auth-view {
  width: min(520px, calc(100% - 40px));
  min-height: calc(100vh - 146px);
  margin: 0 auto;
  padding: clamp(54px, 9vw, 120px) 0;
  display: grid;
  place-items: center;
}

.auth-card {
  width: 100%;
  padding: 34px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.auth-card > img { width: 54px; height: 54px; object-fit: contain; }
.auth-card .eyebrow { margin: 28px 0 9px; color: #77736a; font-size: 10px; font-weight: 650; text-transform: uppercase; letter-spacing: 0.13em; }
.auth-card h1 { margin: 0; font-size: 27px; line-height: 1.15; font-weight: 520; }
.auth-card p { color: #6b685f; font-size: 14px; line-height: 1.6; }
.google-button {
  width: 100%;
  min-height: 50px;
  margin-top: 18px;
  border: 1px solid #cfc8bc;
  background: var(--paper-strong);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-weight: 600;
  cursor: pointer;
}
.google-button svg { width: 20px; height: 20px; }
.auth-divider {
  margin: 22px 0 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #8b877e;
  font-size: 11px;
}
.auth-divider::before,
.auth-divider::after { content: ""; height: 1px; flex: 1; background: #d8d1c5; }
.auth-mode {
  padding: 3px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid #d1cabf;
  background: #e9e4db;
}
.auth-mode button {
  min-height: 44px;
  border: 0;
  background: transparent;
  color: #6d6961;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.auth-mode button.is-active { background: var(--paper-strong); color: var(--ink); box-shadow: 0 1px 5px rgba(0,0,0,.08); }
.email-auth-form { margin-top: 18px; display: grid; gap: 13px; }
.email-auth-form label { display: grid; gap: 6px; color: #5f5b54; font-size: 11px; font-weight: 600; }
.email-auth-form input {
  width: 100%;
  min-height: 45px;
  padding: 0 12px;
  border: 1px solid #cfc8bc;
  border-radius: 0;
  background: var(--paper-strong);
  color: var(--ink);
}
.email-auth-form input:focus { outline: 2px solid rgba(108,122,69,.26); outline-offset: 1px; border-color: var(--olive); }
.email-auth-submit,
.secondary-auth-button {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
.email-auth-form .email-auth-submit { margin-top: 3px; }
.secondary-auth-button { margin-top: 10px; background: transparent; color: var(--ink); }
.forgot-password {
  width: 100%;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: #6a675f;
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.verification-card strong { overflow-wrap: anywhere; }
.verification-card .email-auth-submit { margin-top: 18px; }

.access-progress {
  --access-progress-value: 8%;
  position: fixed;
  z-index: 120;
  inset: 0;
  padding: 24px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(rgba(255, 255, 255, 0.014) 1px, transparent 1px),
    #171814;
  background-size: 100% 36px;
  outline: 0;
}
.access-progress-card {
  width: min(460px, 100%);
  min-height: 280px;
  padding: 40px 28px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 24px;
  text-align: center;
}
.access-progress-logo {
  position: relative;
  width: clamp(112px, 25vw, 156px);
  aspect-ratio: 828 / 972;
  animation: access-progress-breathe 2.4s ease-in-out infinite;
}
.access-progress-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.access-progress-logo-base {
  opacity: 0.14;
  filter: grayscale(1);
}
.access-progress-logo-fill {
  position: absolute;
  inset: 0;
  overflow: hidden;
  clip-path: inset(calc(100% - var(--access-progress-value)) 0 0 0);
  filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.12));
  transition: clip-path 650ms cubic-bezier(0.22, 1, 0.36, 1);
}
.access-progress.is-complete .access-progress-logo {
  animation: access-progress-complete 680ms ease-out both;
}
.access-progress-copy {
  display: grid;
  justify-items: center;
  gap: 8px;
}
.access-progress:not(.is-error) .access-progress-copy {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.access-progress strong { color: #f6f4ee; font-size: 20px; font-weight: 520; }
.access-progress p { max-width: 330px; margin: 0; color: #aaa79d; font-size: 13px; line-height: 1.6; }
.access-progress-retry {
  min-height: 44px;
  margin-top: 7px;
  padding: 0 18px;
  border: 1px solid #d6dcc1;
  background: #d6dcc1;
  color: #1b1b17;
  font-weight: 650;
  cursor: pointer;
}
.access-progress.is-error .access-progress-logo {
  width: 92px;
  animation: none;
}
.access-progress.is-error .access-progress-logo-base { opacity: 0.08; }
.access-progress.is-error .access-progress-logo-fill { clip-path: inset(0); }
@keyframes access-progress-breathe {
  0%, 100% { transform: scale(0.985); opacity: 0.88; }
  50% { transform: scale(1.015); opacity: 1; }
}
@keyframes access-progress-complete {
  0% { transform: scale(1); }
  60% { transform: scale(1.045); }
  100% { transform: scale(1); }
}

.portal-shell {
  min-height: calc(100vh - 132px);
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
}
.portal-sidebar {
  padding: 30px 24px;
  border-right: 1px solid var(--line-dark);
  display: flex;
  flex-direction: column;
}
.member-identity { display: flex; align-items: center; gap: 12px; margin-bottom: 30px; }
.member-identity > div:last-child { display: grid; gap: 3px; min-width: 0; }
.member-identity strong { font-size: 13px; font-weight: 550; overflow: hidden; text-overflow: ellipsis; }
.member-identity small { color: #98958c; font-size: 11px; }
.avatar {
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 50%;
  background: #2d2d27;
  border: 1px solid var(--line-dark);
  display: grid;
  place-items: center;
  color: #bbb7ab;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-small { width: 44px; height: 44px; font-size: 11px; }
.avatar-large { width: 96px; height: 96px; background: #e4ded3; border-color: #d2cabc; color: #777269; }

.portal-sidebar nav { display: grid; gap: 7px; }
.portal-nav-button {
  min-height: 48px;
  padding: 0 13px;
  border: 0;
  background: transparent;
  color: #9c9990;
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  cursor: pointer;
}
.portal-nav-button svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.portal-nav-button.is-active { background: #f4f1e9; color: #1c1c18; }
.portal-nav-button:disabled { cursor: not-allowed; opacity: 0.48; }
.nav-lock { margin-left: auto; color: #b36e4b; font-size: 18px; }
.sidebar-note {
  margin: auto 4px 0;
  padding-top: 30px;
  color: #77756e;
  font-size: 11px;
  line-height: 1.55;
}

.portal-content { background: var(--paper); color: var(--ink); min-width: 0; }
.portal-panel { width: min(1040px, calc(100% - 64px)); margin: 0 auto; padding: 56px 0 80px; }
.panel-heading {
  padding-bottom: 30px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  border-bottom: 1px solid var(--line-light);
}
.panel-heading .eyebrow { color: var(--olive-dark); }
.panel-heading h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.02;
  font-weight: 430;
}
.panel-heading p:not(.eyebrow) { color: #6b685f; max-width: 600px; line-height: 1.6; }
.waiver-badge {
  padding: 10px 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #d6c8b9;
  background: #efe4d7;
  color: #87533a;
  white-space: nowrap;
  font-size: 11px;
}
.waiver-badge span { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.waiver-badge.is-current { background: #e5eadb; border-color: #c7d0b1; color: var(--olive-dark); }

.member-training-assignment {
  --program-accent: var(--member-olive);
  --program-accent-rgb: 183, 199, 143;
  margin-top: 28px;
  padding: 20px 22px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  border: 1px solid #c8cfb4;
  border-left: 4px solid var(--olive);
  background: #e9edde;
}
.assignment-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid #bdc6a3;
  background: #f8f7f1;
  color: var(--olive-dark);
}
.assignment-icon svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.member-training-assignment > div:last-child { min-width: 0; display: grid; gap: 4px; }
.member-training-assignment span { color: #71795a; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.member-training-assignment strong { font-size: 18px; font-weight: 600; }
.member-training-assignment p { margin: 0; color: #5f6550; font-size: 12px; line-height: 1.5; }

.coach-plan-browser {
  --program-accent: var(--member-olive);
  --program-accent-rgb: 183, 199, 143;
  margin-top: 28px;
  padding: 22px 24px;
  border-top: 1px solid var(--member-line);
  border-bottom: 1px solid var(--member-line);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  align-items: end;
  gap: 28px;
  border-left: 4px solid var(--program-accent);
  background: rgba(var(--program-accent-rgb), 0.075);
}
.coach-plan-browser-copy { display: grid; gap: 5px; }
.coach-plan-browser-copy > span {
  color: var(--program-accent);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.coach-plan-browser-copy strong { color: var(--member-text); font-size: 20px; font-weight: 520; }
.coach-plan-browser-copy p { margin: 0; color: var(--member-muted); font-size: 12px; line-height: 1.5; }
.coach-plan-browser label {
  display: grid;
  gap: 8px;
  color: var(--member-text-soft);
  font-size: 10px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.coach-plan-browser select {
  width: 100%;
  min-height: 48px;
  padding: 0 42px 0 14px;
  border: 1px solid var(--member-line);
  border-radius: 0;
  background: var(--member-surface-raised);
  color: var(--member-text);
  font: inherit;
  font-size: 12px;
  font-weight: 520;
  letter-spacing: 0;
  text-transform: none;
}
.coach-plan-browser select:focus { outline: 2px solid rgba(var(--program-accent-rgb), 0.24); border-color: var(--program-accent); }
.coach-plan-browser select:disabled { color: var(--member-muted); opacity: .75; }

.monthly-plan {
  --program-accent: var(--member-olive);
  --program-accent-rgb: 183, 199, 143;
  margin-top: 30px;
  border-top: 4px solid var(--program-accent);
}
.monthly-plan-header {
  padding: 30px 0 26px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid var(--member-line);
}
.monthly-plan-header > div { min-width: 0; }
.monthly-plan-header span {
  color: var(--program-accent);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}
.monthly-plan-header h2 { margin: 7px 0 0; color: var(--member-text); font-size: clamp(25px, 3vw, 36px); font-weight: 470; }
.monthly-plan-header p { margin: 8px 0 0; color: var(--member-text-soft); font-size: 12px; }
.monthly-plan-header-actions {
  position: relative;
  flex: 0 0 auto;
  min-width: 188px;
  display: grid;
  justify-items: end;
  gap: 10px;
}
.monthly-plan-header-actions > small { color: var(--member-muted); font-size: 10px; }
.training-plan-export[hidden] { display: none; }
.training-plan-export { position: relative; }
.training-plan-export summary {
  min-height: 42px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--member-line);
  background: var(--member-surface-raised);
  color: var(--member-text);
  cursor: pointer;
  list-style: none;
  font-size: 12px;
  font-weight: 620;
}
.training-plan-export summary::-webkit-details-marker { display: none; }
.training-plan-export summary::marker { content: ""; }
.training-plan-export summary:hover,
.training-plan-export summary:focus-visible {
  border-color: var(--program-accent);
  color: var(--program-accent);
}
.training-plan-export summary:focus-visible { outline: 2px solid rgba(var(--program-accent-rgb), 0.22); outline-offset: 2px; }
.training-plan-export summary svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.training-plan-export-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  right: 0;
  width: 286px;
  padding: 7px;
  display: grid;
  gap: 3px;
  border: 1px solid var(--member-line);
  background: var(--member-surface-raised);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.32);
}
.training-plan-export-menu button {
  min-height: 62px;
  padding: 10px 11px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 11px;
  border: 0;
  background: transparent;
  color: var(--member-text);
  cursor: pointer;
  text-align: left;
}
.training-plan-export-menu button:hover,
.training-plan-export-menu button:focus-visible { background: var(--member-surface-soft); }
.training-plan-export-menu button:focus-visible { outline: 1px solid var(--program-accent); }
.training-plan-export-menu button:disabled { cursor: wait; opacity: 0.5; }
.training-plan-export-menu button svg {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 30px;
  height: 30px;
  padding: 6px;
  border: 1px solid var(--member-line);
  color: var(--program-accent);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}
.training-plan-export-menu button > span {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  display: grid;
  gap: 2px;
  min-width: 0;
  color: var(--member-text);
}
.training-plan-export-menu button strong {
  display: block;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.25;
  text-transform: none;
}
.training-plan-export-menu button small {
  display: block;
  color: var(--member-muted);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.4;
}
.training-plan-export-status { min-height: 14px; max-width: 286px; margin: 0; text-align: right; }
.training-plan-export-status.is-error { color: #ef9c83; }
.training-plan-export-status.is-success { color: var(--program-accent); }
.monthly-plan-sections { display: grid; }
.plan-source-image {
  margin: 0;
  padding: 24px 0 0;
  display: grid;
  justify-items: center;
}
.plan-source-image img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: min(78vh, 1200px);
  border: 1px solid var(--member-line);
  object-fit: contain;
}
.plan-source-image p {
  margin: 24px 0;
  color: var(--member-muted);
  font-size: 12px;
}
.plan-source-image p.is-error { color: #ef9c83; }
.plan-source-pdf {
  padding: 24px 0 0;
}
.plan-source-pdf-pages {
  display: grid;
  justify-items: center;
  gap: 18px;
}
.plan-source-pdf canvas {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto !important;
  background: #fff;
  border: 1px solid var(--member-line);
}
.plan-source-pdf > p {
  margin: 24px 0;
  color: var(--member-muted);
  font-size: 12px;
  text-align: center;
}
.plan-source-pdf > p.is-error { color: #ef9c83; }
.monthly-plan-section { border-bottom: 1px solid var(--member-line); }
.monthly-plan-section summary {
  min-height: 68px;
  padding: 0 4px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  cursor: pointer;
  list-style: none;
}
.monthly-plan-section summary::-webkit-details-marker { display: none; }
.monthly-plan-section summary::after { content: "+"; grid-column: 2; grid-row: 1; color: var(--program-accent); font-size: 20px; font-weight: 350; }
.monthly-plan-section[open] summary::after { content: "−"; }
.monthly-plan-section summary span { padding-right: 28px; color: var(--member-text); font-size: 15px; font-weight: 620; }
.monthly-plan-section summary small { grid-column: 1; margin-top: -20px; color: var(--member-muted); font-size: 9px; }
.monthly-plan-section ul { margin: 0; padding: 0 4px 26px 22px; display: grid; gap: 10px; }
.monthly-plan-section li { padding-left: 4px; color: var(--member-text-soft); font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
.monthly-plan-section li::marker { color: var(--program-accent); }
.plan-visual-label {
  color: var(--member-muted);
  font-size: 10px;
  font-weight: 650;
  text-transform: uppercase;
}
.plan-overview {
  padding: 28px 0 34px;
  display: grid;
  gap: 14px;
  border-bottom: 1px solid var(--member-line);
}
.plan-objective {
  min-width: 0;
  min-height: 128px;
  padding: 24px 26px;
  display: grid;
  align-content: end;
  gap: 13px;
  border: 1px solid rgba(var(--program-accent-rgb), 0.3);
  border-left: 4px solid var(--program-accent);
  background: rgba(var(--program-accent-rgb), 0.14);
}
.plan-objective .plan-visual-label { color: var(--program-accent); }
.plan-objective p {
  min-width: 0;
  max-width: 900px;
  margin: 0;
  color: var(--member-text);
  font-size: 24px;
  font-weight: 430;
  line-height: 1.25;
  overflow: visible;
  overflow-wrap: anywhere;
  white-space: normal;
}
.plan-month-preparation {
  padding: 34px 0;
  display: grid;
  gap: 20px;
  border-bottom: 1px solid var(--member-line);
}
.plan-month-preparation > header { display: grid; gap: 6px; }
.plan-month-preparation h3 {
  margin: 0;
  color: var(--member-text);
  font-size: 21px;
  font-weight: 500;
}
.plan-preparation-intro,
.plan-preparation-note {
  max-width: 920px;
  margin: 0;
  color: var(--member-text-soft);
  font-size: 14px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.plan-preparation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.plan-preparation-activity {
  min-width: 0;
  padding: 22px;
  display: grid;
  align-content: start;
  gap: 9px;
  border: 1px solid var(--member-line);
  border-top: 3px solid var(--program-accent);
  background: var(--member-surface);
}
.plan-preparation-duration {
  width: fit-content;
  color: var(--program-accent);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}
.plan-preparation-activity h4 {
  margin: 0;
  color: var(--member-text);
  font-size: 18px;
  font-weight: 560;
}
.plan-preparation-activity p {
  margin: 0;
  color: var(--member-text-soft);
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.plan-preparation-note {
  padding-left: 18px;
  border-left: 3px solid rgba(var(--program-accent-rgb), 0.55);
}
.plan-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.plan-metric {
  min-height: 112px;
  padding: 17px 18px;
  display: grid;
  align-content: space-between;
  gap: 20px;
  border: 1px solid var(--member-line);
  border-top: 3px solid var(--metric-accent, var(--program-accent));
  background: var(--member-surface);
}
.plan-metric.is-intensity { --metric-accent: var(--member-terracotta); }
.plan-metric.is-repetitions { --metric-accent: #d7c29f; }
.plan-metric.is-effort { --metric-accent: var(--program-accent); }
.plan-metric.is-cycle { --metric-accent: #8fb6c2; }
.plan-metric strong {
  color: var(--member-text);
  font-size: clamp(15px, 1.7vw, 20px);
  font-weight: 560;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.plan-progression,
.plan-sessions {
  padding: 34px 0;
  display: grid;
  gap: 20px;
  border-bottom: 1px solid var(--member-line);
}
.plan-progression > header,
.plan-sessions > header { display: grid; gap: 6px; }
.plan-progression h3,
.plan-sessions h3 { margin: 0; color: var(--member-text); font-size: 21px; font-weight: 500; }
.plan-coach-guidance {
  margin-top: 24px;
  padding: 24px;
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  align-items: center;
  gap: 26px;
  border: 1px solid rgba(134, 186, 198, 0.28);
  border-left: 4px solid #86bac6;
  background: rgba(61, 105, 116, 0.16);
}
.plan-guidance-ring {
  width: 108px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  align-content: center;
  border: 10px solid rgba(134, 186, 198, 0.16);
  border-top-color: #86bac6;
  border-right-color: #86bac6;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(242, 239, 231, 0.08), 0 14px 30px rgba(50, 104, 119, 0.18);
}
.plan-guidance-ring strong { color: var(--member-text); font-size: 31px; font-weight: 570; line-height: 1; }
.plan-guidance-ring small { margin-top: 5px; color: #86bac6; font-size: 9px; font-weight: 700; }
.plan-coach-guidance > div:last-child { display: grid; gap: 7px; }
.plan-coach-guidance .plan-visual-label { color: #86bac6; }
.plan-coach-guidance h3 { margin: 0; color: var(--member-text); font-size: 23px; font-weight: 520; }
.plan-coach-guidance p { max-width: 740px; margin: 0; color: var(--member-text-soft); font-size: 13px; line-height: 1.55; }
.plan-guidance-details { margin-top: 5px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; }
.plan-guidance-details span { color: var(--member-muted); font-size: 11px; }
.plan-guidance-details strong { color: var(--member-terracotta); font-size: 11px; font-weight: 680; text-transform: uppercase; }
.plan-week-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.plan-week {
  --week-accent: var(--program-accent);
  --week-accent-rgb: var(--program-accent-rgb);
  min-width: 0;
  min-height: 340px;
  padding: 18px;
  display: grid;
  grid-template-rows: auto 1fr;
  align-content: start;
  gap: 18px;
  border: 1px solid var(--member-line);
  border-top: 3px solid var(--week-accent);
  background: var(--member-surface);
}
.plan-week.is-volume { --week-accent: var(--member-terracotta); --week-accent-rgb: 220, 146, 112; }
.plan-week.is-intensity { --week-accent: #e3bd78; --week-accent-rgb: 227, 189, 120; }
.plan-week.is-density { --week-accent: #86bac6; --week-accent-rgb: 134, 186, 198; }
.plan-week.is-consolidation { --week-accent: var(--program-accent); --week-accent-rgb: var(--program-accent-rgb); }
.plan-week-ring {
  position: relative;
  width: 78px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--member-surface) 0 57%, transparent 58%),
    conic-gradient(var(--week-accent) 0 var(--week-progress), rgba(242, 239, 231, 0.12) var(--week-progress) 100%);
  box-shadow:
    0 0 0 1px rgba(242, 239, 231, 0.1),
    0 12px 24px rgba(var(--week-accent-rgb), 0.13);
}
.plan-week-ring::after {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(242, 239, 231, 0.08);
  border-radius: inherit;
  content: "";
}
.plan-week-ring strong,
.plan-week-ring small { position: relative; z-index: 1; }
.plan-week-ring strong { color: var(--member-text); font-size: 17px; font-weight: 650; line-height: 1; }
.plan-week-ring small { margin-top: 3px; color: var(--member-muted); font-size: 8px; line-height: 1; }
.plan-week-copy { min-width: 0; display: grid; align-content: start; gap: 5px; }
.plan-week-copy > strong { color: var(--member-text); font-size: 14px; font-weight: 620; }
.plan-week-copy > small { color: var(--member-muted); font-size: 10px; line-height: 1.35; overflow-wrap: anywhere; }
.plan-week-focus {
  min-width: 0;
  margin-top: 8px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  color: var(--week-accent);
}
.plan-week-focus svg {
  width: 28px;
  height: 28px;
  padding: 5px;
  border: 1px solid rgba(var(--week-accent-rgb), 0.32);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.plan-week-focus span {
  color: var(--member-text-soft);
  font-size: 10px;
  font-weight: 650;
  line-height: 1.25;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.plan-week-method {
  margin-top: 5px;
  color: var(--member-muted);
  font-size: 9px;
  font-style: normal;
  line-height: 1.35;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.plan-week-metrics {
  margin: 10px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.plan-week-metrics > div {
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(242, 239, 231, 0.09);
  background: rgba(255, 255, 255, 0.018);
}
.plan-week-metrics dt {
  margin: 0 0 4px;
  color: var(--member-muted);
  font-size: 8px;
  font-weight: 650;
  line-height: 1;
  text-transform: uppercase;
}
.plan-week-metrics dd {
  margin: 0;
  color: var(--member-text);
  font-size: 11px;
  font-weight: 590;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.plan-session-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.plan-session-card {
  min-width: 0;
  border: 1px solid var(--member-line);
  background: var(--member-surface);
}
.plan-session-card > header {
  min-height: 94px;
  padding: 18px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  border-bottom: 1px solid var(--member-line);
  background: rgba(255, 255, 255, 0.015);
}
.plan-session-index {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--program-accent);
  color: var(--member-bg);
  font-size: 12px;
  font-weight: 760;
}
.plan-session-card h4 { margin: 0; color: var(--member-text); font-size: 18px; font-weight: 570; }
.plan-session-card header p { margin: 5px 0 0; color: var(--member-muted); font-size: 10px; line-height: 1.4; }
.plan-session-card ol { margin: 0; padding: 8px 18px 14px; list-style: none; }
.plan-session-card li {
  min-height: 44px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(242, 239, 231, 0.08);
}
.plan-session-card li:last-child { border-bottom: 0; }
.plan-session-card li span { color: var(--program-accent); font-size: 10px; font-weight: 700; }
.plan-session-card li strong { color: var(--member-text-soft); font-size: 12px; font-weight: 520; overflow-wrap: anywhere; }
.plan-combined-sets {
  padding: 16px 18px 18px;
  border-top: 1px solid var(--member-line);
  background: rgba(var(--program-accent-rgb), 0.065);
}
.plan-combined-sets > .plan-visual-label { color: var(--program-accent); }
.plan-combined-sets ol { padding: 8px 0 0; }
.plan-combined-sets li { align-items: start; padding: 11px 0; }
.plan-combined-sets li span { color: var(--program-accent); }
.plan-combined-copy { min-width: 0; display: grid; gap: 8px; }
.plan-combined-exercises { line-height: 1.45; }
.plan-combined-prescriptions { display: grid; gap: 5px; }
.plan-combined-prescription {
  color: var(--member-muted) !important;
  font-size: 9px !important;
  font-weight: 520 !important;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.plan-combined-note {
  margin: 10px 0 0;
  padding-top: 10px;
  border-top: 1px solid rgba(242, 239, 231, 0.08);
  color: var(--member-muted);
  font-size: 10px;
  line-height: 1.5;
}
.monthly-plan-empty {
  min-height: 310px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  text-align: center;
}
.monthly-plan-empty > div { width: 54px; height: 54px; display: grid; place-items: center; border: 1px solid #c8cfb4; color: var(--olive-dark); }
.monthly-plan-empty svg { width: 23px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.monthly-plan-empty strong { margin-top: 6px; font-size: 16px; font-weight: 600; }
.monthly-plan-empty p { max-width: 450px; margin: 0; color: #777269; font-size: 12px; line-height: 1.6; }
.monthly-plan-empty .training-reserve-button { margin-top: 8px; color: var(--ink); }

.profile-form, .booking-form { margin-top: 34px; }
.profile-photo-block {
  padding: 0 0 32px;
  display: flex;
  align-items: center;
  gap: 22px;
  border-bottom: 1px solid var(--line-light);
}
.profile-photo-block > div:last-child { display: grid; gap: 5px; }
.profile-photo-block strong { font-size: 14px; }
.profile-photo-block p { margin: 0; color: #78746b; font-size: 12px; }
.photo-actions { margin-top: 8px; display: flex; align-items: center; gap: 14px; }
.secondary-button {
  padding: 9px 12px;
  border: 1px solid #bfb7aa;
  background: var(--paper-strong);
  font-size: 12px;
  cursor: pointer;
}
.text-button { padding: 7px 0; border: 0; background: transparent; color: #7d4935; font-size: 12px; cursor: pointer; }

fieldset { margin: 34px 0 0; padding: 0; border: 0; }
legend { width: 100%; margin-bottom: 20px; font-size: 15px; font-weight: 650; }
.field-grid, .booking-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
label { color: #56534c; font-size: 12px; font-weight: 600; }
label small { font-weight: 400; color: #878279; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
input, select, textarea {
  width: 100%;
  margin-top: 7px;
  padding: 12px 13px;
  border: 1px solid #cbc4b8;
  border-radius: 0;
  background: var(--paper-strong);
  color: var(--ink);
  outline: none;
}
input, select { min-height: 47px; }
textarea { resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-color: var(--olive-dark); box-shadow: 0 0 0 2px rgba(79, 93, 49, 0.14); }
input:disabled { background: #e9e5de; color: #77736b; }
.field-wide { grid-column: 1 / -1; }
.honey-field { position: absolute; left: -9999px; width: 1px; height: 1px; }
.phone-field { min-width: 0; }
.phone-field-label { display: block; color: #56534c; font-size: 12px; font-weight: 600; }
.phone-input-row { display: grid; grid-template-columns: minmax(145px, .9fr) minmax(145px, 1.1fr); gap: 8px; }
.phone-input-row label { min-width: 0; }
.phone-country-select select, .phone-number-input input { margin-top: 7px; }
.phone-preview { min-height: 28px; margin-top: 7px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; color: #777269; font-size: 10px; }
.phone-preview[hidden] { display: none; }
.phone-preview strong { color: var(--olive-dark); font-size: 11px; font-weight: 650; }
.phone-preview a { color: #565f3a; font-weight: 650; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }

.legal-fieldset {
  padding: 24px;
  border: 1px solid #cfc6b9;
  background: #eee8de;
}
.risk-note { margin: 0 0 20px; color: #555148; font-size: 13px; line-height: 1.65; }
.check-row { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; margin-top: 14px; color: #48453f; font-weight: 400; line-height: 1.55; }
.check-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-height: 0;
  margin: 2px 0 0;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid #9f998f;
  background-color: transparent;
  cursor: pointer;
}
.check-row input[type="checkbox"]:checked {
  border-color: var(--olive-dark);
  background-color: var(--olive-dark);
  background-image: url("assets/brand-2026/section-marker.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 16px 16px;
}
.check-row input[type="checkbox"]:focus-visible {
  outline: 2px solid rgba(108, 122, 69, 0.45);
  outline-offset: 3px;
}
.check-row a { color: var(--olive-dark); font-weight: 650; }
.legal-fieldset > small { display: block; margin: 18px 0 0 30px; color: #767168; line-height: 1.5; }

.form-footer {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
}
.form-status { min-height: 20px; margin: 0; flex: 1; color: #656159; font-size: 12px; line-height: 1.5; }
.form-status.is-error { color: #9b3d32; }
.form-status.is-success { color: var(--olive-dark); }
.primary-button {
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
.primary-button:disabled { opacity: 0.56; cursor: wait; }

.booking-form { max-width: 760px; }
.booking-member-summary {
  margin-top: 24px;
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 20px;
  border-left: 3px solid var(--olive);
  background: #ebe7df;
  color: #656159;
  font-size: 12px;
}
.booking-member-summary strong { color: var(--ink); font-weight: 600; }

.member-footer {
  min-height: 56px;
  padding: 0 clamp(20px, 4vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line-dark);
  color: #77756f;
  font-size: 11px;
}
.member-footer a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: #b8b5ac;
}

/* Matte dark member workspace */
:root {
  --member-bg: #10100e;
  --member-surface: #181815;
  --member-surface-raised: #1f1f1a;
  --member-surface-soft: #25241f;
  --member-text: #f2efe7;
  --member-text-soft: #cbc7bc;
  --member-muted: #97938a;
  --member-line: rgba(242, 239, 231, 0.13);
  --member-olive: #b7c78f;
  --member-terracotta: #dc9270;
}

html,
body { background-color: var(--member-bg); color: var(--member-text); }

.auth-card {
  border: 1px solid var(--member-line);
  background: var(--member-surface);
  color: var(--member-text);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}
.auth-card .eyebrow { color: var(--member-olive); }
.auth-card p,
.auth-card .form-status { color: var(--member-muted); }
.google-button {
  border-color: var(--member-line);
  background: var(--member-surface-raised);
  color: var(--member-text);
}
.google-button:hover { border-color: var(--member-olive); }
.auth-divider { color: var(--member-muted); }
.auth-divider::before,
.auth-divider::after { background: var(--member-line); }
.auth-mode { border-color: var(--member-line); background: var(--member-bg); }
.auth-mode button { color: var(--member-muted); }
.auth-mode button.is-active {
  background: var(--member-surface-raised);
  color: var(--member-text);
  box-shadow: inset 0 -2px var(--member-olive);
}
.email-auth-form label { color: var(--member-text-soft); }
.email-auth-form input {
  border-color: var(--member-line);
  background: var(--member-surface-raised);
  color: var(--member-text);
}
.email-auth-form input:focus {
  outline-color: rgba(183, 199, 143, 0.2);
  border-color: var(--member-olive);
}
.email-auth-submit,
.secondary-auth-button {
  border-color: var(--member-text);
  background: var(--member-text);
  color: var(--member-bg);
}
.secondary-auth-button { border-color: var(--member-line); background: transparent; color: var(--member-text); }
.forgot-password { color: var(--member-text-soft); }

.portal-content { background: var(--member-bg); color: var(--member-text); }
.portal-nav-button.is-active {
  background: var(--member-surface-raised);
  color: var(--member-text);
  box-shadow: inset 3px 0 var(--member-olive);
}
.avatar-large { border-color: var(--member-line); background: var(--member-surface-raised); color: var(--member-muted); }
.panel-heading { border-bottom-color: var(--member-line); }
.panel-heading .eyebrow { color: var(--member-olive); }
.panel-heading p:not(.eyebrow) { color: var(--member-muted); }
.waiver-badge { border-color: rgba(220, 146, 112, 0.3); background: rgba(164, 95, 64, 0.18); color: var(--member-terracotta); }
.waiver-badge.is-current { border-color: rgba(183, 199, 143, 0.34); background: rgba(100, 115, 62, 0.23); color: var(--member-olive); }

.member-training-assignment {
  border-color: rgba(var(--program-accent-rgb), 0.34);
  border-left-color: var(--program-accent);
  background: rgba(var(--program-accent-rgb), 0.16);
}
.assignment-icon { border-color: var(--member-line); background: var(--member-surface-raised); color: var(--program-accent); }
.member-training-assignment span { color: var(--program-accent); }
.member-training-assignment p { color: var(--member-text-soft); }

.monthly-plan,
.monthly-plan-header,
.monthly-plan-section,
.profile-photo-block { border-color: var(--member-line); }
.monthly-plan-header span,
.monthly-plan-section summary::after { color: var(--program-accent); }
.monthly-plan-header p,
.monthly-plan-header-actions > small,
.monthly-plan-section summary small,
.monthly-plan-empty p,
.profile-photo-block p { color: var(--member-muted); }
.monthly-plan-section li { color: var(--member-text-soft); }
.monthly-plan-section li::marker { color: var(--program-accent); }
.monthly-plan-empty > div { border-color: var(--member-line); color: var(--member-olive); }
.monthly-plan-empty .training-reserve-button { color: var(--member-text); }

.body-composition-heading {
  align-items: end;
}
.portal-sync-status {
  min-height: 28px;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(183, 199, 143, 0.34);
  border-radius: 4px;
  color: var(--member-olive);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}
.portal-sync-status.is-pending { border-color: rgba(220, 146, 112, 0.35); color: var(--member-terracotta); }
.portal-sync-status.is-error { border-color: rgba(221, 112, 99, 0.4); color: #dd7063; }
.member-body-composition { padding-top: 30px; }
.member-composition-empty {
  min-height: 220px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  border-top: 1px solid var(--member-line);
  border-bottom: 1px solid var(--member-line);
  text-align: center;
}
.member-composition-empty strong { color: var(--member-text); font-size: 18px; font-weight: 560; }
.member-composition-empty p { max-width: 480px; margin: 0; color: var(--member-muted); font-size: 12px; line-height: 1.55; }
.member-composition-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.member-composition-metric {
  --composition-accent: var(--member-olive);
  min-height: 142px;
  padding: 18px;
  display: grid;
  align-content: space-between;
  gap: 14px;
  border: 1px solid var(--member-line);
  border-top: 3px solid var(--composition-accent);
  border-radius: 6px;
  background: var(--member-surface);
}
.member-composition-metric.is-fat { --composition-accent: var(--member-terracotta); }
.member-composition-metric.is-muscle { --composition-accent: #8fb6c2; }
.member-composition-metric.is-visceral { --composition-accent: #d7c29f; }
.member-composition-metric.is-bmi { --composition-accent: #b59ccc; }
.member-composition-metric-label { color: var(--member-muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.member-composition-metric > strong { color: var(--member-text); font-size: 23px; font-weight: 590; line-height: 1.08; overflow-wrap: anywhere; }
.member-composition-metric-meta { display: grid; gap: 4px; }
.member-composition-metric-meta small { color: var(--member-muted); font-size: 9px; line-height: 1.35; }
.member-composition-metric-meta em { color: var(--composition-accent); font-size: 9px; font-style: normal; font-weight: 650; line-height: 1.35; }
.member-composition-history-section { margin-top: 40px; }
.member-composition-section-heading {
  padding-bottom: 12px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--member-line);
  color: var(--member-muted);
  font-size: 10px;
  text-transform: uppercase;
}
.member-composition-section-heading strong { color: var(--member-text-soft); }
.member-composition-history { display: grid; }
.member-composition-history-row {
  min-height: 88px;
  padding: 16px 0;
  display: grid;
  grid-template-columns: minmax(135px, 1.25fr) repeat(5, minmax(90px, 1fr));
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--member-line);
}
.member-composition-history-row > div { min-width: 0; display: grid; gap: 5px; }
.member-composition-history-row small { color: var(--member-muted); font-size: 9px; text-transform: uppercase; }
.member-composition-history-row strong,
.member-composition-history-row span { color: var(--member-text-soft); font-size: 12px; overflow-wrap: anywhere; }
.member-composition-history-row strong { color: var(--member-text); font-size: 13px; font-weight: 600; }
.member-composition-note { max-width: 780px; margin: 24px 0 0; color: var(--member-muted); font-size: 10px; line-height: 1.55; }

.secondary-button {
  border-color: var(--member-line);
  background: var(--member-surface-raised);
  color: var(--member-text);
}
.secondary-button:hover { border-color: var(--member-olive); color: var(--member-olive); }
.text-button { color: var(--member-terracotta); }
legend { color: var(--member-text); }
label,
.phone-field-label { color: var(--member-text-soft); }
label small { color: var(--member-muted); }
input,
select,
textarea {
  border-color: var(--member-line);
  background: var(--member-surface-raised);
  color: var(--member-text);
}
input::placeholder,
textarea::placeholder { color: #747168; }
input:focus,
select:focus,
textarea:focus {
  border-color: var(--member-olive);
  box-shadow: 0 0 0 2px rgba(183, 199, 143, 0.16);
}
input:disabled { border-color: var(--member-line); background: var(--member-surface-soft); color: var(--member-muted); }
.phone-preview { color: var(--member-muted); }
.phone-preview strong,
.phone-preview a { color: var(--member-olive); }

.legal-fieldset { border-color: var(--member-line); background: var(--member-surface); }
.risk-note,
.check-row { color: var(--member-text-soft); }
.check-row input[type="checkbox"] { border-color: rgba(242, 239, 231, 0.38); background-color: transparent; }
.check-row input[type="checkbox"]:checked {
  border-color: var(--member-olive);
  background-color: rgba(183, 199, 143, 0.2);
}
.check-row input[type="checkbox"]:focus-visible { outline-color: var(--member-olive); }
.check-row a { color: var(--member-olive); }
.legal-fieldset > small { color: var(--member-muted); }
.form-status { color: var(--member-muted); }
.form-status.is-error { color: #ef9c83; }
.form-status.is-success { color: var(--member-olive); }
.primary-button {
  border-color: var(--member-text);
  background: var(--member-text);
  color: var(--member-bg);
}
.primary-button:hover { border-color: var(--member-olive); background: var(--member-olive); }
.booking-member-summary {
  border-left-color: var(--member-olive);
  background: var(--member-surface);
  color: var(--member-muted);
}
.booking-member-summary strong { color: var(--member-text); }
.member-footer { color: var(--member-muted); }
.member-footer a { color: var(--member-text-soft); }

.legal-update-required { overflow: hidden; }
.legal-update-dialog {
  width: min(760px, calc(100% - 32px));
  max-height: min(880px, calc(100dvh - 32px));
  margin: auto;
  padding: 0;
  border: 1px solid rgba(242, 239, 231, 0.2);
  background: var(--member-bg);
  color: var(--member-text);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.72);
  overflow: hidden;
}
.legal-update-dialog::backdrop {
  background: rgba(5, 5, 4, 0.9);
  backdrop-filter: blur(8px);
}
.legal-update-card {
  max-height: min(880px, calc(100dvh - 32px));
  display: grid;
  grid-template-rows: auto auto auto minmax(180px, 1fr) auto auto;
  overflow: hidden;
}
.legal-update-header {
  padding: 28px 30px 18px;
  display: flex;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--member-line);
}
.legal-update-header img { width: 48px; height: 48px; object-fit: contain; }
.legal-update-header .eyebrow { margin: 0 0 5px; color: var(--member-olive); }
.legal-update-header h2 { margin: 0; font-size: clamp(22px, 4vw, 31px); font-weight: 520; line-height: 1.08; }
.legal-update-intro { margin: 0; padding: 18px 30px 10px; color: var(--member-text-soft); font-size: 14px; line-height: 1.55; }
.legal-update-meta {
  margin: 0 30px 16px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  color: var(--member-muted);
  font-size: 10px;
  text-transform: uppercase;
}
.legal-update-meta strong { color: var(--member-olive); font-size: 11px; font-weight: 650; }
.legal-update-document {
  margin: 0 30px;
  padding: 20px;
  border: 1px solid var(--member-line);
  background: #12120f;
  overflow: auto;
  scrollbar-color: var(--member-olive) #24231e;
}
.legal-update-document:focus-visible { outline: 2px solid var(--member-olive); outline-offset: 2px; }
.legal-update-document pre {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--member-text-soft);
  font: 12px/1.65 Inter, Avenir Next, Avenir, Helvetica Neue, Arial, sans-serif;
}
.legal-update-confirmations {
  margin: 18px 30px 0;
  display: grid;
  gap: 10px;
}
.legal-update-confirmations .check-row {
  margin: 0;
  padding: 14px;
  border: 1px solid var(--member-line);
  background: var(--member-surface);
}
.legal-update-confirmations .check-row span { font-size: 12px; line-height: 1.5; }
.legal-update-footer {
  padding: 18px 30px 28px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}
.legal-update-footer .form-status { flex: 1; margin: 0; }
.legal-update-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.legal-update-actions .text-button { min-height: 44px; padding: 0 8px; }
.legal-update-footer .primary-button { min-width: 190px; }
.legal-update-footer .primary-button:disabled { opacity: 0.38; cursor: not-allowed; }

@media (max-width: 820px) {
  .member-header { min-height: 66px; padding: 11px 18px; }
  .member-brand strong { font-size: 11px; }
  .member-brand small, .member-back, .member-header-actions > span { display: none; }
  .auth-view { width: min(100% - 32px, 520px); padding: 54px 0 70px; }
  .auth-card { padding: 26px; }
  .portal-shell { grid-template-columns: 1fr; }
  .portal-sidebar { padding: 16px; border-right: 0; border-bottom: 1px solid var(--line-dark); }
  .member-identity, .sidebar-note { display: none; }
  .portal-sidebar nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .portal-nav-button { justify-content: center; }
  .portal-content { min-height: 70vh; }
  .portal-panel { width: min(100% - 32px, 700px); padding: 36px 0 60px; }
  .panel-heading { display: grid; }
  .waiver-badge { width: fit-content; }
  .field-grid, .booking-grid { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .phone-input-row { grid-template-columns: minmax(135px, .9fr) minmax(150px, 1.1fr); }
  .profile-photo-block { align-items: flex-start; }
  .form-footer { align-items: stretch; flex-direction: column; }
  .primary-button { width: 100%; }
  .booking-member-summary { grid-template-columns: 1fr; }
  .monthly-plan-header { display: grid; gap: 18px; }
  .coach-plan-browser { grid-template-columns: 1fr; align-items: stretch; gap: 18px; padding: 20px 0; background: transparent; }
  .monthly-plan-header-actions { min-width: 0; justify-items: start; }
  .monthly-plan-header-actions > small { padding: 0; }
  .training-plan-export-menu { right: auto; left: 0; width: min(286px, calc(100vw - 64px)); }
  .training-plan-export-status { text-align: left; }
  .plan-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-preparation-grid { grid-template-columns: 1fr; }
  .plan-week-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-session-grid { grid-template-columns: 1fr; }
  .member-composition-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .member-composition-history-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 430px) {
  .legal-update-dialog {
    width: 100%;
    max-width: none;
    max-height: 100dvh;
    height: 100dvh;
    border: 0;
  }
  .legal-update-card { max-height: 100dvh; height: 100%; grid-template-rows: auto auto auto minmax(140px, 1fr) auto auto; }
  .legal-update-header { padding: 22px 20px 16px; }
  .legal-update-header img { width: 42px; height: 42px; }
  .legal-update-intro { padding: 16px 20px 8px; }
  .legal-update-meta { margin: 0 20px 12px; }
  .legal-update-document { margin: 0 20px; padding: 16px; }
  .legal-update-confirmations { margin: 14px 20px 0; }
  .legal-update-footer { padding: 14px 20px 20px; display: grid; gap: 10px; }
  .legal-update-actions { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr); }
  .legal-update-footer .primary-button { width: 100%; min-width: 0; }
  .member-brand img { width: 34px; height: 34px; }
  .member-header-actions { gap: 4px; }
  .profile-photo-block { display: grid; }
  .phone-input-row { grid-template-columns: 1fr; gap: 0; }
  .legal-fieldset { padding: 18px; }
  .portal-nav-button { padding: 0 8px; font-size: 12px; }
  .portal-nav-button { gap: 6px; font-size: 10px; }
  .portal-nav-button svg { width: 16px; }
  .member-composition-summary { grid-template-columns: 1fr; }
  .member-composition-metric { min-height: 112px; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .member-composition-metric > strong { text-align: right; }
  .member-composition-metric-meta { grid-column: 1 / -1; }
  .member-composition-history-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-objective { min-height: 0; padding: 20px; }
  .plan-objective p { font-size: 19px; line-height: 1.35; }
  .plan-month-preparation { padding: 28px 0; gap: 16px; }
  .plan-preparation-intro,
  .plan-preparation-note { font-size: 13px; line-height: 1.6; }
  .plan-preparation-activity { padding: 18px; }
  .plan-metric { min-height: 96px; padding: 14px; }
  .plan-metric-grid { grid-template-columns: 1fr 1fr; }
  .plan-week-track { grid-template-columns: 1fr; }
  .plan-week {
    min-height: 0;
    grid-template-columns: 78px minmax(0, 1fr);
    grid-template-rows: auto;
    align-items: center;
  }
  .plan-coach-guidance {
    grid-template-columns: 1fr;
    justify-items: start;
    padding: 20px;
  }
  .plan-guidance-ring { width: 92px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .access-progress-logo,
  .access-progress.is-complete .access-progress-logo { animation: none; }
  .access-progress-logo-fill { transition: none; }
}
