:root {
  --ink: #f5f5f5;
  --muted: #a1a1a1;
  --soft: #1a1a1a;
  --line: #303030;
  --panel: #111111;
  --panel-raised: #181818;
  --brand: #f3e500;
  --brand-dark: #d8cc00;
  --accent: #ffffff;
  --app-background: #000000;
  --button-color: #f3e500;
  --button-font: Gilroy, Inter, Arial, sans-serif;
  --card-radius: 6px;
  --control-radius: 5px;
  --danger: #ff6b6b;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
  --heading-font: Montserrat, Inter, Arial, sans-serif;
  --body-font: Gilroy, Inter, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  background: var(--app-background);
  overflow-x: hidden;
}

body {
  width: 100%;
  min-width: 0;
  margin: 0;
  overflow-x: hidden;
  font-family: var(--body-font);
  color: var(--ink);
  background: var(--app-background);
  letter-spacing: 0;
}

img,
svg,
canvas {
  max-width: 100%;
}

main,
section,
article,
aside,
form,
fieldset,
div {
  min-width: 0;
}

button,
input,
select,
textarea {
  max-width: 100%;
  font-family: var(--body-font);
  font-size: inherit;
}

button {
  font-family: var(--button-font);
  min-height: 44px;
  overflow-wrap: anywhere;
  border: 0;
  cursor: pointer;
}

.auth-recovery {
  display: grid;
  margin-top: 12px;
  justify-items: start;
  gap: 7px;
}

.auth-recovery button {
  min-height: 36px;
  padding: 4px 0;
  color: var(--brand);
  background: transparent;
  font-weight: 700;
}

.auth-recovery button:hover,
.auth-recovery button:focus-visible {
  color: #ffffff;
}

.auth-recovery p {
  min-height: 1.25em;
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.45;
}

h1,
h2,
h3,
h4,
.brand-product,
.eyebrow,
.coach-sidebar-heading strong,
.coach-nav-item,
.client-tab,
.tab,
.client-mobile-nav button,
.public-pricing-card strong,
.payment-plan-summary strong,
.ai-type {
  font-family: var(--heading-font);
}

h1 {
  font-weight: 800;
}

h2 {
  font-weight: 600;
}

h3,
h4 {
  font-weight: 500;
}

.brand-product,
.eyebrow,
.coach-sidebar-heading strong,
.coach-nav-item,
.client-tab,
.tab,
.client-mobile-nav button {
  font-weight: 700;
}

p,
span,
small,
label,
input,
select,
textarea,
button,
table,
dt,
dd,
.section-note,
.muted,
.success,
.error,
.save-feedback,
.ai-summary,
.ai-rationale {
  font-family: var(--body-font);
}

.app-shell {
  min-height: 100vh;
  min-height: 100svh;
  padding:
    max(22px, env(safe-area-inset-top, 0px))
    max(clamp(18px, 3vw, 42px), env(safe-area-inset-right, 0px))
    max(40px, env(safe-area-inset-bottom, 0px))
    max(clamp(18px, 3vw, 42px), env(safe-area-inset-left, 0px));
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    var(--app-background);
  background-size: 48px 48px;
}

.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(100%, 1240px);
  min-height: 58px;
  margin: 0 auto 22px;
}

.top-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}

.subscription-badge {
  display: inline-flex;
  min-height: 30px;
  padding: 5px 9px;
  align-items: center;
  color: #d4d4d4;
  background: #1c1c1c;
  border: 1px solid #383838;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.subscription-badge.status-trialing {
  color: var(--brand);
  border-color: rgba(243, 229, 0, 0.35);
}

.subscription-badge.status-active,
.subscription-badge.status-cancel_at_period_end,
.subscription-badge.status-permanent {
  color: #d9ffd9;
  border-color: #346b3b;
}

.subscription-badge.status-paused {
  color: #fff0a8;
  background: #3a3109;
  border-color: #716515;
}

.subscription-badge.status-expired {
  color: #ffae96;
  border-color: #83472f;
}

.subscription-badge.status-suspended {
  color: #ffae96;
  border-color: #83472f;
}

.subscription-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  padding: 16px 18px;
  color: #ffd4c7;
  background: #25140f;
  border: 1px solid #7d371f;
  border-radius: 6px;
}

.subscription-notice strong {
  color: #ff9270;
}

.subscription-notice p {
  margin: 4px 0 0;
  color: #d6aaa0;
  font-size: 0.82rem;
}

.subscription-notice > span {
  flex: 0 0 auto;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
}

.subscription-notice-action {
  display: flex;
  align-items: center;
  gap: 12px;
}

.subscription-notice-action span {
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
}

form :disabled,
[data-write-action]:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: auto;
  height: 60px;
  max-width: min(220px, 48vw);
  object-fit: contain;
}

.brand-product {
  color: var(--brand);
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.section-note,
.muted {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.signed-in-identity {
  margin: 7px 0 0;
  color: var(--brand);
  font-size: 0.76rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.container {
  width: min(100%, 1240px);
  margin: 0 auto;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(360px, 0.72fr);
  min-height: calc(100vh - 126px);
  overflow: hidden;
  background: var(--panel);
  border: 1px solid #242424;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.intro-panel {
  position: relative;
  display: flex;
  min-height: 680px;
  padding: clamp(34px, 5vw, 72px);
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  color: #ffffff;
  background:
    linear-gradient(120deg, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.78)),
    #0c0c0c;
  border-right: 1px solid #262626;
}

.intro-panel::after {
  position: absolute;
  right: -15%;
  bottom: -38%;
  width: 74%;
  aspect-ratio: 1;
  content: "";
  border: 1px solid rgba(243, 229, 0, 0.16);
  border-radius: 50%;
  box-shadow:
    0 0 0 74px rgba(243, 229, 0, 0.025),
    0 0 0 148px rgba(243, 229, 0, 0.018);
}

.hero-copy,
.feature-list {
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.intro-panel h2 {
  max-width: 720px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(3rem, 6.5vw, 6.4rem);
  font-weight: 900;
  line-height: 0.94;
  letter-spacing: 0;
  text-transform: uppercase;
}

.intro-panel h2 span {
  color: var(--brand);
}

.hero-description {
  max-width: 640px;
  margin: 28px 0 0;
  color: #c7c7c7;
  font-size: clamp(1rem, 1.45vw, 1.18rem);
  line-height: 1.7;
}

.hero-positioning {
  max-width: 660px;
  margin: 14px 0 0;
  color: #d0d0d0;
  font-size: 0.82rem;
  line-height: 1.55;
}

.landing-price {
  display: grid;
  width: fit-content;
  margin-top: 20px;
  padding: 11px 13px;
  gap: 3px;
  background: #171707;
  border-left: 3px solid var(--brand);
}

.landing-price strong {
  color: #ffffff;
  font-size: 0.82rem;
}

.landing-price span {
  color: var(--brand);
  font-size: 0.68rem;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 18px;
  max-width: 760px;
  margin-top: 44px;
}

.feature-list span {
  position: relative;
  min-height: 42px;
  padding: 12px 8px 10px 18px;
  color: #dedede;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.35;
  text-transform: uppercase;
  border-top: 1px solid #333333;
}

.feature-list span::before {
  position: absolute;
  top: 15px;
  left: 0;
  width: 6px;
  height: 6px;
  content: "";
  background: var(--brand);
}

.road-graphic {
  position: absolute;
  z-index: 1;
  top: 5%;
  right: 3%;
  width: min(34vw, 420px);
  height: 76%;
  opacity: 0.14;
  transform: rotate(5deg);
}

.hero-energy-lines-active {
  will-change: transform, opacity, filter;
  animation: hero-energy-drift 15s ease-in-out infinite;
}

.road-graphic span {
  position: absolute;
  width: 26px;
  height: 118%;
  background: var(--brand);
  transform: rotate(31deg);
}

.hero-energy-lines-active span {
  box-shadow: 0 0 18px rgba(243, 229, 0, 0.06);
  animation: hero-line-breathe 15s ease-in-out infinite;
}

.hero-energy-lines-active span:nth-child(2) {
  animation-delay: -5s;
}

.hero-energy-lines-active span:nth-child(3) {
  animation-delay: -10s;
}

.road-graphic span:nth-child(1) {
  left: 14%;
  top: -26%;
}

.road-graphic span:nth-child(2) {
  left: 48%;
  top: -7%;
}

.road-graphic span:nth-child(3) {
  right: 5%;
  top: 13%;
}

@keyframes hero-energy-drift {
  0%,
  100% {
    opacity: 0.11;
    filter: drop-shadow(0 0 0 rgba(243, 229, 0, 0));
    transform: translate3d(-22px, -18px, 0) rotate(5deg);
  }

  50% {
    opacity: 0.2;
    filter: drop-shadow(0 0 14px rgba(243, 229, 0, 0.12));
    transform: translate3d(28px, 34px, 0) rotate(5deg);
  }

  72% {
    opacity: 0.15;
    filter: drop-shadow(0 0 8px rgba(243, 229, 0, 0.08));
    transform: translate3d(12px, 20px, 0) rotate(5deg);
  }
}

@keyframes hero-line-breathe {
  0%,
  100% {
    background-color: rgba(243, 229, 0, 0.78);
  }

  50% {
    background-color: rgba(255, 242, 0, 0.98);
  }
}

.card,
.metric,
.day-card,
.target-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
}

.auth-card {
  display: flex;
  padding: clamp(28px, 4vw, 52px);
  flex-direction: column;
  justify-content: center;
  background: #111111;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.public-pricing-card {
  display: grid;
  gap: 12px;
  margin: 18px 0;
  padding: 15px;
  background: #0c0c0c;
  border: 1px solid #3a3a22;
  border-left: 3px solid var(--brand);
  border-radius: 5px;
}

.public-pricing-card > div {
  display: grid;
  gap: 3px;
}

.public-pricing-card > div > strong {
  color: #ffffff;
  font-size: 1.55rem;
}

.public-pricing-card > div > strong span,
.public-pricing-card small {
  color: var(--muted);
  font-size: 0.68rem;
}

.public-pricing-card ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  gap: 5px 12px;
  list-style: none;
}

.public-pricing-card li {
  color: #d2d2d2;
  font-size: 0.68rem;
}

.public-pricing-card li::before {
  margin-right: 5px;
  color: var(--brand);
  content: "•";
}

.public-pricing-card > p {
  margin: 0;
  color: var(--brand);
  font-size: 0.7rem;
}

.google-reviews-badge {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  margin: 0 0 20px;
  padding: 11px 12px;
  align-items: center;
  gap: 10px;
  background: #0b0b0b;
  border: 1px solid #303030;
  border-radius: var(--control-radius);
}

.google-review-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #4285f4;
  background: #ffffff;
  border-radius: 50%;
  font-family: Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 900;
}

.google-review-copy {
  display: grid;
  gap: 3px;
}

.google-review-copy > span {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
}

.google-review-copy strong {
  color: var(--accent);
  font-size: 0.76rem;
  line-height: 1.35;
}

.google-review-copy > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.google-review-stars {
  color: #fbbc04;
  font-size: 0.82rem;
  letter-spacing: 0;
}

.google-review-copy small {
  color: var(--muted);
  font-size: 0.62rem;
}

.google-reviews-badge > a {
  min-height: 44px;
  padding: 0 7px;
  align-content: center;
  color: var(--brand);
  font-size: 0.68rem;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.google-reviews-badge > a:hover {
  text-decoration: underline;
}

.google-review-preview-empty {
  padding: 11px;
  color: var(--muted);
  background: #0b0b0b;
  border: 1px dashed #3a3a3a;
  border-radius: var(--control-radius);
  font-size: 0.72rem;
  line-height: 1.45;
}

.auth-heading {
  margin-bottom: 24px;
}

.auth-card h2,
.onboarding-card h2,
.dashboard-header h2 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  line-height: 1.1;
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 0 0 26px;
  padding: 4px;
  background: #080808;
  border: 1px solid #292929;
  border-radius: 6px;
}

.tab {
  min-height: 44px;
  padding: 10px 12px;
  color: var(--muted);
  background: transparent;
  border-radius: 4px;
  font-weight: 800;
}

.tab.active {
  color: #000000;
  background: var(--brand);
}

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

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

.field.full {
  grid-column: 1 / -1;
}

label {
  color: #d5d5d5;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.field-label {
  color: #d5d5d5;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  color: #ffffff;
  background: #080808;
  border: 1px solid #353535;
  border-radius: var(--control-radius);
}

input::placeholder,
textarea::placeholder {
  color: #666666;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(243, 229, 0, 0.16);
  border-color: var(--brand);
}

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

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.btn {
  min-height: 46px;
  padding: 0 18px;
  border-radius: var(--control-radius);
  font-weight: 900;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease;
}

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

.btn:disabled,
.record-action:disabled,
button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(243, 229, 0, 0.72);
  outline-offset: 3px;
}

.btn.primary {
  color: #000000;
  background: var(--button-color);
}

.btn.primary:hover {
  background: #fff200;
}

.btn.secondary {
  color: #ffffff;
  background: #1b1b1b;
  border: 1px solid #3a3a3a;
}

.btn.secondary:hover {
  border-color: #6a6a6a;
}

.btn.ghost {
  color: var(--brand);
  background: transparent;
}

.auth-card .button-row .btn.primary {
  width: 100%;
}

.error {
  margin-top: 14px;
  color: var(--danger);
  font-weight: 700;
}

.success {
  margin-top: 14px;
  color: var(--brand);
  font-weight: 700;
}

.save-feedback {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-left: 3px solid;
  border-radius: 3px;
  font-size: 0.78rem;
  line-height: 1.45;
}

.save-feedback.success {
  color: #d9ffd9;
  background: #132417;
  border-color: #4f9b5a;
}

.save-feedback.error {
  color: #ffd7c9;
  background: #2b1711;
  border-color: #d66b45;
}

.onboarding-wrap {
  max-width: 920px;
  margin: 0 auto;
}

.onboarding-card {
  padding: clamp(24px, 4vw, 42px);
}

.progress {
  height: 7px;
  margin: 20px 0 26px;
  overflow: hidden;
  background: #252525;
  border-radius: 999px;
}

.progress span {
  display: block;
  height: 100%;
  background: var(--brand);
  transition: width 180ms ease;
}

.dashboard-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.two {
  grid-template-columns: 1.2fr 0.8fr;
}

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

.card {
  padding: 22px;
}

.card h3 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 1.05rem;
}

.target-card {
  padding: 26px;
  background:
    linear-gradient(125deg, rgba(243, 229, 0, 0.08), transparent 45%),
    #111111;
}

.target-card .big-number {
  margin: 8px 0 4px;
  color: var(--brand);
  font-size: clamp(3rem, 10vw, 5.3rem);
  font-weight: 900;
  line-height: 0.95;
}

.macro-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 20px;
}

.metric {
  padding: 14px;
  background: var(--panel-raised);
  box-shadow: none;
}

.metric strong {
  display: block;
  margin-top: 4px;
  color: #ffffff;
  font-size: 1.35rem;
}

.summary-metric {
  min-width: 180px;
}

.coach-summary-metrics {
  display: flex;
  gap: 10px;
}

.attention-metric {
  border-color: #8e391f;
  background: #24140f;
}

.attention-metric strong {
  color: #ff9270;
}

.client-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.client-summary-card h4 {
  margin: 18px 0 10px;
  color: #ffffff;
  font-size: 0.88rem;
}

.client-summary-card h4:first-child {
  margin-top: 0;
}

.coach-workspace {
  display: grid;
  grid-template-columns: minmax(230px, 280px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.coach-admin-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.coach-admin-sidebar {
  position: fixed;
  top: 102px;
  left: max(18px, calc((100vw - 1240px) / 2));
  width: 210px;
  height: calc(100vh - 122px);
  padding: 18px 12px;
  overflow-y: auto;
  background: #0d0d0d;
  border: 1px solid #292929;
  border-radius: 6px;
}

.coach-sidebar-heading {
  display: grid;
  gap: 5px;
  padding: 6px 8px 18px;
  border-bottom: 1px solid #2e2e2e;
}

.coach-sidebar-heading strong {
  color: #ffffff;
  font-size: 0.95rem;
}

.coach-sidebar-heading small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.68rem;
  text-overflow: ellipsis;
}

.coach-admin-sidebar nav {
  display: grid;
  gap: 5px;
  margin-top: 14px;
}

.coach-nav-item {
  min-height: 44px;
  padding: 0 12px;
  color: #b9b9b9;
  background: transparent;
  border-left: 3px solid transparent;
  border-radius: 3px;
  font-size: 0.78rem;
  font-weight: 800;
  text-align: left;
}

.coach-nav-item:hover {
  color: #ffffff;
  background: #191919;
}

.coach-nav-item.active {
  color: #000000;
  background: var(--brand);
  border-left-color: #ffffff;
}

.coach-admin-main {
  grid-column: 2;
  min-width: 0;
}

.coach-mobile-menu {
  display: none;
}

.coach-section-header {
  margin-bottom: 14px;
}

.coach-dashboard-focus {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.progress-review-dashboard-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  border-left: 4px solid var(--brand);
}

.progress-review-dashboard-alert h3,
.progress-review-dashboard-alert p {
  margin: 4px 0;
}

.photo-review-dashboard-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 10px 0;
}

.photo-review-dashboard-counts span {
  padding: 7px 9px;
  color: #c8c8c8;
  background: #242424;
  border-radius: 4px;
  font-size: 0.7rem;
}

.photo-review-dashboard-counts strong {
  color: var(--brand);
}

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

.progress-review-queue {
  display: grid;
  gap: 18px;
}

.progress-review-queue-item {
  min-width: 0;
}

.check-in-review-section {
  margin-bottom: 24px;
}

.check-in-review-list {
  display: grid;
  gap: 14px;
}

.check-in-review-item {
  min-width: 0;
}

.check-in-review-item.priority-high {
  border-left: 4px solid #d9534f;
}

.check-in-review-item.priority-medium {
  border-left: 4px solid var(--brand);
}

.check-in-review-details {
  margin-top: 14px;
  border-top: 1px solid var(--line);
}

.check-in-review-details > summary,
.optional-target-adjustment > summary {
  min-height: 44px;
  padding: 12px 0;
  color: var(--brand);
  font-weight: 800;
  cursor: pointer;
}

.check-in-review-form {
  padding-top: 8px;
}

.check-in-risk-note {
  margin: 12px 0 0;
  color: #e5c3b8;
  font-size: 0.78rem;
  line-height: 1.5;
}

.progress-review-divider {
  height: 1px;
  margin: 28px 0;
  background: var(--line);
}

.progress-review-client-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.progress-review-client-heading h3,
.progress-review-client-heading p {
  margin: 3px 0;
}

.queue-review-form {
  margin-top: 14px;
  border-top: 1px solid var(--line);
}

.photo-comparison-waiting {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  font-style: italic;
}

.photo-review-groups {
  display: grid;
  gap: 22px;
}

.photo-review-group-heading {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.photo-review-group-heading h4 {
  margin: 0;
}

.photo-review-group-heading span,
.archived-photo-reviews > summary strong {
  color: var(--brand);
}

.coach-photo-review-item {
  min-width: 0;
}

.archived-photo-reviews {
  padding-top: 6px;
  border-top: 1px solid var(--line);
}

.archived-photo-reviews > summary {
  display: flex;
  min-height: 48px;
  padding: 0 4px;
  align-items: center;
  justify-content: space-between;
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

.archived-review-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: -8px;
  padding: 14px 16px;
  background: #0d0d0d;
  border: 1px solid var(--line);
  border-top: 0;
}

.archived-review-actions > div {
  display: grid;
  gap: 3px;
}

.archived-review-actions span {
  color: var(--muted);
  font-size: 0.7rem;
}

.photo-review-history {
  margin-top: 14px;
  border-top: 1px solid var(--line);
}

.photo-review-history > summary {
  min-height: 44px;
  padding-top: 12px;
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
}

.photo-review-history > div {
  display: grid;
  gap: 8px;
}

.photo-review-history article {
  display: grid;
  grid-template-columns: minmax(120px, 0.4fr) minmax(0, 1fr) auto;
  gap: 10px;
  padding: 9px 10px;
  color: #d7d7d7;
  background: #202020;
  font-size: 0.7rem;
}

.photo-review-history article span,
.photo-review-history article small {
  color: var(--muted);
}

.photo-review-history article p {
  margin: 4px 0 0;
  color: #bdbdbd;
  line-height: 1.45;
}

.coach-review-save-status {
  grid-column: 1 / -1;
  min-height: 20px;
  margin: 0;
  font-size: 0.74rem;
}

.coach-review-save-status.status-success {
  color: #8ed39a;
}

.coach-review-save-status.status-error {
  color: #ff9d83;
}

.coach-review-save-status.status-saving {
  color: var(--brand);
}

.coach-review-page-feedback {
  margin: 0 0 16px;
  padding: 12px 14px;
  color: #d7d7d7;
  background: #181818;
  border-left: 3px solid var(--brand);
  font-size: 0.78rem;
}

.coach-review-page-feedback.status-success {
  color: #b8e6bf;
  border-left-color: #62c76b;
}

.coach-review-page-feedback.status-error {
  color: #ffb09c;
  border-left-color: #ff7250;
}

.progress-review-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.45fr);
  gap: 16px;
  margin-bottom: 18px;
  padding: 14px;
  background: #111111;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
}

.progress-review-toolbar .status-filters,
.progress-review-toolbar .field {
  margin: 0;
}

.strive-help {
  position: fixed;
  z-index: 80;
  right: max(20px, env(safe-area-inset-right, 0px));
  bottom: max(20px, env(safe-area-inset-bottom, 0px));
  display: grid;
  justify-items: end;
  gap: 10px;
}

.strive-help-launcher {
  display: inline-flex;
  min-height: 48px;
  padding: 0 16px 0 9px;
  align-items: center;
  gap: 9px;
  color: #000000;
  background: var(--brand);
  border: 1px solid #ffffff;
  border-radius: 6px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.52);
}

.strive-help-launcher span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--brand);
  background: #000000;
  border-radius: 50%;
  font-weight: 900;
}

.strive-help-panel {
  width: min(390px, calc(100vw - 28px));
  max-height: min(620px, calc(100svh - 120px));
  padding: 18px;
  overflow-y: auto;
  color: #ffffff;
  background: #101010;
  border: 1px solid #3d3d3d;
  border-radius: 7px;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.7);
}

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

.strive-help-heading h3,
.strive-help-heading p {
  margin: 3px 0;
}

.strive-help-heading > button {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  color: #ffffff;
  background: #242424;
  border: 1px solid #3b3b3b;
  border-radius: var(--control-radius);
  font-size: 1.4rem;
}

.strive-help-intro {
  margin: 12px 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.strive-help-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 14px;
}

.strive-help-topics button {
  min-height: 40px;
  padding: 7px 10px;
  color: #d7d7d7;
  background: #202020;
  border: 1px solid #3a3a3a;
  border-radius: 4px;
  font-size: 0.7rem;
}

.strive-help-topics button:hover {
  color: #000000;
  background: var(--brand);
}

.strive-help-form {
  display: grid;
  gap: 7px;
}

.strive-help-form label {
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
}

.strive-help-form > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
}

.strive-help-response {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 13px;
  color: #e2e2e2;
  background: #202012;
  border-left: 3px solid var(--brand);
}

.strive-help-response p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.55;
}

.strive-help-response .btn {
  justify-self: start;
}

.compact-coach-panel h3 {
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.compact-coach-panel > button {
  display: flex;
  width: 100%;
  min-height: 44px;
  padding: 9px 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #d7d7d7;
  background: transparent;
  border-bottom: 1px solid #303030;
  font-size: 0.74rem;
  text-align: left;
}

.compact-coach-panel > button:last-child {
  border-bottom: 0;
}

.compact-coach-panel > button strong {
  color: var(--brand);
  white-space: nowrap;
}

.coach-settings-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(340px, 1fr);
  gap: 14px;
}

.account-settings-card h3 {
  margin-bottom: 18px;
}

.global-ai-inbox {
  min-width: 0;
}

.ai-inbox-toolbar,
.global-ai-client {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.global-ai-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.global-ai-item {
  padding: 14px;
  background: #0d0d0d;
  border: 1px solid #303030;
  border-radius: 6px;
}

.global-ai-client {
  margin-bottom: 10px;
}

.global-ai-client > div {
  display: grid;
  gap: 3px;
}

.global-ai-client strong {
  color: #ffffff;
}

.global-ai-client span {
  color: var(--muted);
  font-size: 0.7rem;
}

.global-ai-item .ai-suggestion-card {
  background: #181818;
}

.client-selector-panel {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 20px;
}

.client-selector-panel h3 {
  margin-bottom: 6px;
}

.client-selector-panel input[type="search"] {
  background: #080808;
}

.client-selector-panel select {
  min-height: 50px;
}

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

.client-summary-card {
  min-height: 560px;
}

.coach-client-delete-feedback {
  margin-bottom: 14px;
  padding: 12px 14px;
  color: #ffffff;
  background: #171717;
  border-left: 3px solid #777777;
}

.coach-client-delete-feedback.status-success {
  color: #d9ffd9;
  background: #152319;
  border-left-color: #62c76b;
}

.coach-client-delete-feedback.status-warning {
  color: #fff3bf;
  background: #28210c;
  border-left-color: var(--brand);
}

.coach-client-danger-zone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 24px -22px -22px;
  padding: 20px 22px;
  background: #1e100d;
  border-top: 1px solid #663727;
}

.coach-client-danger-zone h4,
.coach-client-danger-zone p {
  margin: 5px 0;
}

.coach-client-danger-zone > div > p:last-child {
  color: #cdb8b1;
  font-size: 0.75rem;
}

.client-deletion-dialog {
  border-top-color: #d66b45;
}

.client-deletion-auth-note {
  padding: 12px;
  color: #e3d5d0;
  background: #24130f;
  border-left: 3px solid #d66b45;
  font-size: 0.75rem;
  line-height: 1.5;
}

.client-deletion-options {
  display: grid;
  gap: 8px;
}

.client-deletion-options label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  align-items: flex-start;
  cursor: pointer;
  background: #171717;
  border: 1px solid #373737;
}

.client-deletion-options label:has(input:checked) {
  border-color: var(--brand);
  background: #222007;
}

.client-deletion-options span {
  display: grid;
  gap: 4px;
}

.client-deletion-options small {
  color: var(--muted);
  line-height: 1.45;
}

.client-deletion-lifetime-warning,
.client-deletion-permanent-warning {
  margin: 0;
  padding: 10px 12px;
  color: #ffe0d5;
  background: #2a1510;
  border-left: 3px solid #d66b45;
  font-size: 0.74rem;
  font-weight: 800;
}

.client-deletion-error {
  min-height: 18px;
  margin: 0;
  color: #ff9d83;
  font-size: 0.72rem;
}

.client-header-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.membership-settings {
  display: grid;
  grid-template-columns: minmax(210px, 0.6fr) minmax(0, 1.4fr);
  gap: 18px;
  margin: 0 -22px 22px;
  padding: 18px 22px;
  background: #121212;
  border-top: 1px solid #303030;
  border-bottom: 1px solid #303030;
}

.membership-settings h4 {
  margin: 5px 0;
}

.membership-form {
  grid-template-columns: repeat(3, minmax(130px, 1fr));
}

.service-mode-settings {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(220px, 1fr) minmax(210px, 0.7fr) auto;
  align-items: end;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid #303030;
}

.service-mode-settings h4,
.service-mode-settings p {
  margin: 5px 0;
}

.service-mode-filters {
  margin-bottom: 14px;
}

.service-mode-badge.mode-coach_led {
  color: #000000;
  background: #ffffff;
}

.service-mode-badge.mode-self_guided {
  color: #000000;
  background: var(--brand);
}

.date-of-birth-detail dd {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.inline-edit-button {
  padding: 3px 6px;
  color: var(--brand);
  background: transparent;
  border: 1px solid #5c5718;
  border-radius: 3px;
  font-size: 0.66rem;
  font-weight: 800;
}

.date-of-birth-editor {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  align-items: end;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  background: #0b0b0b;
  border: 1px solid #343434;
  border-left: 3px solid var(--brand);
}

.date-of-birth-editor[hidden] {
  display: none;
}

.date-of-birth-editor .button-row {
  margin: 0;
}

.coach-dob-edit-button {
  margin-top: 12px;
}

.client-checkout-plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
  padding: 16px;
  background: #111111;
  border: 1px solid #343434;
  border-left: 3px solid var(--brand);
  border-radius: 5px;
}

.subscription-management {
  margin-top: 20px;
  padding: 18px;
  background: #0c0c0c;
  border: 1px solid #353535;
  border-left: 3px solid var(--brand);
  border-radius: 5px;
}

.subscription-detail-grid,
.billing-summary-grid,
.billing-history-grid,
.cancellation-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.subscription-detail-grid > div,
.billing-summary-grid > div,
.billing-history-grid > div,
.cancellation-metrics > div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 11px;
  background: #151515;
  border: 1px solid #303030;
}

.subscription-detail-grid span,
.billing-summary-grid span,
.billing-history-grid span,
.cancellation-metrics span {
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
}

.subscription-detail-grid strong,
.billing-summary-grid strong,
.billing-history-grid strong,
.cancellation-metrics strong {
  color: #ffffff;
}

.billing-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.billing-summary-grid > div {
  display: grid;
  gap: 5px;
  padding: 14px;
  background: #151515;
  border: 1px solid #303030;
  border-top: 2px solid #4a4a4a;
}

.billing-summary-grid small {
  color: var(--muted);
  font-size: 0.7rem;
}

.billing-history-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.billing-history-grid small {
  color: var(--muted);
  line-height: 1.45;
}

.billing-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.billing-access-message {
  display: grid;
  gap: 4px;
  margin-top: 16px;
  padding: 14px;
  background: #1d1d0d;
  border-left: 3px solid var(--brand);
}

.billing-access-message span,
.billing-availability-note {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.5;
}

.billing-availability-note {
  margin-top: 14px;
  padding: 12px 14px;
  background: #181818;
  border: 1px solid var(--line);
}

.billing-secure-management {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 16px;
  padding: 16px;
  background: #111111;
  border: 1px solid #343434;
}

.billing-secure-management h4,
.billing-secure-management p {
  margin: 4px 0;
}

.billing-secure-management p,
.billing-secure-management > span {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.5;
}

.danger-button {
  color: #ffd7cb;
  background: #381b12;
  border: 1px solid #7a422e;
}

.danger-button:hover {
  background: #492116;
  border-color: #b26040;
}

.billing-access-message,
.cancellation-confirmation {
  margin-top: 14px;
  padding: 12px 14px;
  background: #171707;
  border: 1px solid #474311;
  border-left: 3px solid var(--brand);
}

.cancellation-confirmation p {
  margin: 5px 0 0;
  color: var(--muted);
}

.pause-status-card {
  margin-top: 14px;
  padding: 12px 14px;
  background: #171717;
  border: 1px solid #393939;
  border-left: 3px solid #777777;
}

.pause-status-card p {
  margin: 5px 0 0;
  color: var(--muted);
}

.pause-status-card.requested,
.pause-status-card.paused {
  border-left-color: var(--brand);
}

.billing-dialog {
  width: min(540px, calc(100vw - 28px));
  max-height: calc(100dvh - max(28px, env(safe-area-inset-top, 0px)) - max(28px, env(safe-area-inset-bottom, 0px)));
  padding: 22px;
  overflow-y: auto;
  overscroll-behavior: contain;
  color: #ffffff;
  background: #111111;
  border: 1px solid #4a4a4a;
  border-top: 4px solid var(--brand);
  border-radius: 6px;
}

.billing-dialog::backdrop {
  background: rgba(0, 0, 0, 0.78);
}

.billing-dialog h3 {
  margin-bottom: 8px;
}

.billing-dialog form {
  display: grid;
  gap: 15px;
}

.billing-dialog-note {
  margin: 0;
  padding: 10px;
  color: #d4d4d4;
  background: #1a1a1a;
  border-left: 3px solid var(--brand);
  font-size: 0.76rem;
  line-height: 1.5;
}

.connected-guidance {
  display: grid;
  grid-template-columns: 1.2fr repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.birthday-message {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 14px;
  padding: 22px;
  color: #ffffff;
  background: #151505;
  border: 1px solid #504b12;
  border-left: 4px solid var(--brand);
}

.birthday-message h2,
.birthday-message p {
  margin: 0;
}

.birthday-message h2 {
  color: #ffffff;
  font-size: 1.35rem;
}

.birthday-message > p {
  max-width: 420px;
  color: #e3e3e3;
  font-size: 0.86rem;
  line-height: 1.5;
}

.date-of-birth-prompt {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 20px;
  margin-bottom: 14px;
  padding: 18px;
  background: #111111;
  border: 1px solid #393939;
  border-left: 3px solid var(--brand);
}

.date-of-birth-prompt h3,
.date-of-birth-prompt p {
  margin: 5px 0;
}

.date-of-birth-prompt p {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.date-of-birth-prompt form {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto;
  align-items: end;
  gap: 10px;
}

.upcoming-birthdays {
  display: grid;
  grid-template-columns: minmax(170px, 0.3fr) minmax(0, 1.7fr);
  gap: 16px;
  margin: 14px 0;
  padding: 18px;
}

.upcoming-birthdays h3 {
  margin: 5px 0;
}

.birthday-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px;
}

.birthday-list button {
  display: grid;
  gap: 3px;
  padding: 11px;
  color: #ffffff;
  background: #181818;
  border: 1px solid #303030;
  border-left: 3px solid var(--brand);
  text-align: left;
}

.birthday-list strong {
  color: var(--brand);
  font-size: 0.74rem;
}

.birthday-list small {
  color: var(--muted);
}

.profile-details .birthday-profile-highlight {
  background: #2b280d;
  border-color: #6a6317;
}

.profile-details .birthday-profile-highlight dd {
  color: var(--brand);
  font-weight: 800;
}

.connected-guidance article,
.coach-prediction-panel {
  padding: 18px;
  background: #111111;
  border: 1px solid #343434;
  border-radius: 6px;
}

.connected-guidance article:first-child {
  border-left: 3px solid var(--brand);
}

.connected-guidance h3 {
  margin: 6px 0 12px;
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.35;
}

.connected-guidance p {
  margin: 6px 0 0;
  color: #c8c8c8;
  font-size: 0.8rem;
  line-height: 1.5;
}

.client-status,
.traffic-summary {
  display: inline-flex;
  padding: 5px 8px;
  color: #ffffff;
  background: #292929;
  border: 1px solid #444444;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 800;
}

.client-status.status-green,
.traffic-summary.status-green {
  color: #d9ffd9;
  background: #17301c;
  border-color: #346b3b;
}

.client-status.status-yellow,
.traffic-summary.status-yellow {
  color: #fff6ae;
  background: #302d12;
  border-color: #70691c;
}

.client-status.status-red,
.traffic-summary.status-red {
  color: #ffd7c9;
  background: #321a12;
  border-color: #75432e;
}

.coach-prediction-panel {
  margin-bottom: 16px;
}

.prediction-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.prediction-grid > div {
  display: grid;
  gap: 4px;
  padding: 11px;
  background: #181818;
  border: 1px solid #303030;
  border-radius: 5px;
}

.prediction-grid span,
.prediction-grid small,
.auto-checkin-summary span {
  color: var(--muted);
  font-size: 0.66rem;
}

.prediction-grid strong {
  color: #ffffff;
  font-size: 0.86rem;
}

.auto-checkin-summary {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding: 13px;
  background: #0b0b0b;
  border-left: 3px solid var(--brand);
}

.auto-checkin-summary p {
  margin: 0;
  color: #cecece;
  font-size: 0.76rem;
  line-height: 1.5;
}

.batch-alert-filters {
  margin: 12px 0;
}

.client-checkout-plans > div:not(.checkout-actions) {
  display: grid;
  gap: 8px;
  padding: 12px;
  background: #171717;
  border: 1px solid #303030;
}

.client-checkout-plans > div.current {
  border-color: var(--brand);
}

.client-checkout-plans span,
.client-checkout-plans small {
  color: var(--muted);
  font-size: 0.7rem;
}

.client-checkout-plans strong {
  color: #ffffff;
}

.client-checkout-plans em {
  margin-left: 5px;
  padding: 3px 5px;
  color: #000000;
  background: var(--brand);
  border-radius: 3px;
  font-size: 0.58rem;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.client-checkout-plans small,
.client-checkout-plans .checkout-actions {
  grid-column: 1 / -1;
}

.checkout-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stripe-setup-status {
  display: grid;
  gap: 4px;
  padding: 11px 12px;
  border: 1px solid;
  border-radius: 5px;
  font-size: 0.72rem;
}

.stripe-setup-status.warning {
  color: #ffd7c9;
  background: #2b1711;
  border-color: #75432e;
}

.stripe-setup-status.ready {
  color: #d9ffd9;
  background: #132417;
  border-color: #346b3b;
}

.stripe-setup-status span {
  color: inherit;
  overflow-wrap: anywhere;
}

.email-automations {
  margin-top: 18px;
  padding: 22px;
}

.email-provider-status {
  display: inline-flex;
  min-height: 30px;
  padding: 6px 9px;
  align-items: center;
  color: #ffb49d;
  background: #321a12;
  border: 1px solid #75432e;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.email-provider-status.connected {
  color: #d9ffd9;
  background: #132417;
  border-color: #346b3b;
}

.email-provider-status.pending {
  color: #fff4a8;
  background: #292500;
  border-color: #756b00;
}

.email-provider-note {
  display: grid;
  gap: 4px;
  margin-top: 14px;
  padding: 12px 14px;
  color: #ffd7c9;
  background: #2b1711;
  border-left: 3px solid #d66b45;
}

.email-provider-note.connected {
  color: #d9ffd9;
  background: #132417;
  border-left-color: #4f9b5a;
}

.email-provider-note span {
  color: inherit;
  font-size: 0.75rem;
}

.email-automation-actions {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 18px 0;
  padding: 16px;
  background: #0b0b0b;
  border: 1px solid #303030;
}

.email-queue-primary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.email-queue-feedback {
  margin: 0 0 18px;
  padding: 12px 14px;
  color: #d8d8d8;
  background: #151515;
  border: 1px solid #343434;
  border-radius: 5px;
}

.email-queue-feedback.success {
  color: #dff8e8;
  background: #102219;
  border-color: #285b3c;
}

.email-queue-feedback.error {
  color: #ffdede;
  background: #251111;
  border-color: #713333;
}

.email-queue-feedback.loading {
  color: #fff8a6;
  border-color: var(--brand);
}

.email-automation-actions form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: end;
  gap: 10px;
}

.email-automation-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.5fr);
  gap: 14px;
}

.email-automation-grid > section {
  min-width: 0;
  padding: 16px;
  background: #111111;
  border: 1px solid #303030;
}

.email-automation-grid h4 {
  margin: 0 0 12px;
}

.email-queue-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid #303030;
}

.email-queue-toolbar h4 {
  margin-bottom: 4px;
}

.email-queue-toolbar p {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.email-actions-cell {
  min-width: 112px;
}

.email-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

.email-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

.email-table th,
.email-table td {
  padding: 10px;
  border-bottom: 1px solid #2d2d2d;
  color: #d7d7d7;
  font-size: 0.72rem;
  text-align: left;
  vertical-align: top;
}

.email-table th {
  color: var(--muted);
  font-size: 0.64rem;
  text-transform: uppercase;
}

.email-table td strong,
.email-table td small {
  display: block;
}

.email-table td small {
  margin-top: 3px;
  color: var(--muted);
}

.email-status {
  display: inline-flex;
  padding: 4px 6px;
  background: #292929;
  border-radius: 3px;
  font-weight: 800;
}

.email-status.status-sent {
  color: #d9ffd9;
  background: #17301c;
}

.email-status.status-processing {
  color: #fff8a6;
  background: #292600;
  border-color: #6d6500;
}

.email-status.status-failed {
  color: #ffd7c9;
  background: #321a12;
}

.email-status.status-skipped {
  color: #e2e2e2;
  background: #333333;
}

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

.email-log {
  display: grid;
  gap: 6px;
  padding: 11px;
  background: #181818;
  border-left: 3px solid #777777;
}

.email-log.status-sent {
  border-left-color: #4f9b5a;
}

.email-log.status-failed {
  border-left-color: #d66b45;
}

.email-log div {
  display: grid;
  gap: 3px;
}

.email-log span,
.email-log small {
  color: var(--muted);
  font-size: 0.68rem;
  overflow-wrap: anywhere;
}

.billing-status.included {
  color: #d9ffd9;
  background: #17301c;
}

.client-summary-card .client-card-header h3 {
  margin-bottom: 5px;
  font-size: 1.5rem;
}

.ai-suggestions {
  margin: 0 -22px 22px;
  padding: 22px;
  background:
    linear-gradient(110deg, rgba(243, 229, 0, 0.055), transparent 48%),
    #0d0d0d;
  border-top: 1px solid #303020;
  border-bottom: 1px solid #303020;
}

.ai-suggestions-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.ai-suggestions-header h4 {
  margin: 0 0 6px;
  color: #ffffff;
  font-size: 1.02rem;
}

.ai-header-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}

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

.ai-suggestion-card {
  display: flex;
  min-width: 0;
  padding: 15px;
  flex-direction: column;
  background: #181818;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.ai-suggestion-card.status-approved {
  border-color: #346b3b;
}

.ai-suggestion-card.status-dismissed {
  opacity: 0.62;
}

.ai-suggestion-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.ai-type {
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ai-status {
  padding: 3px 6px;
  color: #bdbdbd;
  background: #282828;
  border-radius: 3px;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
}

.ai-summary {
  margin: 12px 0 6px;
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.5;
}

.ai-rationale {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

.ai-review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
}

.ai-review-actions .btn {
  min-height: 44px;
  padding: 0 12px;
  font-size: 0.74rem;
}

.ai-reviewed {
  margin: auto 0 0;
  padding-top: 12px;
  color: #7f7f7f;
  font-size: 0.68rem;
}

.client-tabs {
  display: flex;
  gap: 3px;
  margin: 0 -22px;
  padding: 0 22px;
  overflow-x: auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.client-tab {
  position: relative;
  min-width: 100px;
  min-height: 52px;
  padding: 0 16px;
  color: var(--muted);
  background: transparent;
  font-size: 0.8rem;
  font-weight: 900;
  white-space: nowrap;
}

.client-tab::after {
  position: absolute;
  right: 14px;
  bottom: -1px;
  left: 14px;
  height: 3px;
  content: "";
  background: transparent;
}

.client-tab:hover {
  color: #ffffff;
}

.client-tab.active {
  color: #ffffff;
}

.client-tab.active::after {
  background: var(--brand);
}

.client-tab-content {
  padding-top: 24px;
}

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

.coach-detail-grid > section {
  min-width: 0;
}

.profile-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.profile-details div {
  padding: 14px;
  background: #181818;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.profile-details dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.profile-details dd {
  margin: 5px 0 0;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
}

.nutrition-tab {
  display: grid;
  gap: 28px;
}

.nutrition-controls {
  padding-top: 4px;
}

.notes-panel {
  display: grid;
  grid-template-columns: minmax(180px, 0.42fr) minmax(0, 1fr);
  gap: 30px;
}

.notes-panel textarea {
  min-height: 230px;
}

.empty-tab-state {
  display: flex;
  min-height: 220px;
  padding: 30px;
  flex-direction: column;
  justify-content: center;
  background: #161616;
  border: 1px dashed #3b3b3b;
  border-radius: 6px;
}

.empty-tab-state h3 {
  margin-bottom: 8px;
}

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

.mini-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.mini-day {
  display: grid;
  min-height: 88px;
  padding: 10px;
  gap: 4px;
  background: #181818;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.mini-day span,
.mini-day small {
  color: var(--muted);
  font-size: 0.78rem;
}

.mini-day strong {
  color: #ffffff;
  font-size: 1.05rem;
}

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

.overview-targets {
  margin-bottom: 26px;
}

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

.overview-adjustments {
  grid-column: 1 / -1;
  padding-top: 4px;
  border-top: 1px solid var(--line);
}

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

.day-card {
  min-height: 180px;
  padding: 12px;
  background: #181818;
  box-shadow: none;
}

.day-card.today {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(243, 229, 0, 0.14);
}

.day-card h4 {
  margin: 0 0 7px;
  color: #ffffff;
  font-size: 0.92rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 3px 8px;
  color: #000000;
  background: var(--brand);
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.pill.rest {
  color: #d7d7d7;
  background: #303030;
}

.day-target {
  margin-top: 12px;
  color: #ffffff;
  font-size: 1.45rem;
  font-weight: 900;
}

.tiny {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

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

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

.planner-day {
  display: grid;
  padding: 12px;
  gap: 12px;
  background: #181818;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.dashboard-section {
  margin-top: 18px;
}

.client-dashboard-shell {
  padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px));
}

.client-dashboard-content {
  min-width: 0;
}

.checkout-return-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 16px 18px;
  color: #e8e8e8;
  background: #151515;
  border: 1px solid #3b3b3b;
  border-left: 4px solid var(--brand);
  border-radius: var(--card-radius);
}

.checkout-return-state.success {
  border-left-color: #62c76b;
}

.checkout-return-state.cancelled {
  border-left-color: #a0a0a0;
}

.checkout-return-state h3,
.checkout-return-state p {
  margin: 3px 0;
}

.client-mobile-nav {
  position: fixed;
  z-index: 20;
  right: 0;
  bottom: max(8px, env(safe-area-inset-bottom, 0px));
  left: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  width: min(calc(100% - 28px), 820px);
  margin: 0 auto;
  padding: 6px;
  background: rgba(12, 12, 12, 0.96);
  border: 1px solid #393939;
  border-radius: 6px;
  box-shadow: 0 -12px 38px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(12px);
}

.client-mobile-nav button {
  min-height: 48px;
  color: #a7a7a7;
  background: transparent;
  border-bottom: 3px solid transparent;
  font-size: 0.7rem;
  font-weight: 900;
}

.client-mobile-nav button.active {
  color: #000000;
  background: var(--brand);
  border-bottom-color: #ffffff;
}

.todays-focus {
  padding: clamp(20px, 4vw, 34px);
  background:
    linear-gradient(120deg, rgba(243, 229, 0, 0.075), transparent 55%),
    #111111;
  border: 1px solid #39391f;
  border-radius: 7px;
}

.client-service-mode {
  display: grid;
  grid-template-columns: minmax(150px, 0.4fr) minmax(0, 1.6fr);
  gap: 14px;
  margin-top: 16px;
  padding: 13px 14px;
  background: #181818;
  border: 1px solid #383838;
  border-left: 3px solid var(--brand);
}

.client-service-mode.mode-coach_led {
  border-left-color: #ffffff;
}

.client-service-mode > div:first-child {
  display: grid;
  gap: 4px;
}

.client-service-mode span,
.client-service-mode small {
  color: var(--brand);
  font-size: 0.64rem;
  font-weight: 800;
  text-transform: uppercase;
}

.client-service-mode strong {
  color: #ffffff;
}

.client-service-mode > p,
.automated-guidance p {
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.5;
}

.automated-guidance {
  grid-column: 1 / -1;
  padding: 10px 12px;
  background: #101010;
  border-left: 2px solid var(--brand);
}

.automated-guidance p {
  margin: 4px 0;
  color: #dedede;
}

.weekly-ai-review {
  display: grid;
  grid-column: 1 / -1;
  gap: 10px;
  padding: 13px;
  background: #111111;
  border: 1px solid #3a3a22;
}

.weekly-ai-review > div:first-child {
  display: grid;
  gap: 4px;
}

.weekly-ai-review dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: 0;
}

.weekly-ai-review dl > div {
  padding: 9px;
  background: #191919;
}

.weekly-ai-review dt {
  color: var(--brand);
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
}

.weekly-ai-review dd {
  margin: 5px 0 0;
  color: #dedede;
  font-size: 0.7rem;
  line-height: 1.45;
}

.priority-override-centre {
  margin: 14px 0;
  border-top: 3px solid #ff9270;
}

.priority-override-list {
  display: grid;
  gap: 8px;
}

.priority-override-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 13px;
  background: #21140f;
  border: 1px solid #713b2b;
}

.priority-override-item > div:first-child {
  display: grid;
  gap: 4px;
}

.priority-override-item span {
  color: #ffb49d;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
}

.priority-override-item strong {
  color: #ffffff;
}

.priority-override-item p {
  margin: 0;
  color: #ccb8b1;
  font-size: 0.72rem;
}

.priority-override-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.priority-override-actions .btn {
  min-height: 44px;
  padding: 0 11px;
}

.daily-strive-tip {
  display: flex;
  align-items: center;
  min-height: 86px;
  padding: 18px 22px;
  background: #171707;
  border: 1px solid #464214;
  border-left: 4px solid var(--brand);
  border-radius: 6px;
}

.daily-strive-tip h3 {
  margin: 4px 0 0;
  color: #ffffff;
  font-size: 1.05rem;
  line-height: 1.4;
}

.daily-strive-tip.compact {
  min-height: 0;
  margin-bottom: 12px;
  padding: 13px 16px;
}

.daily-strive-tip.compact h3 {
  font-size: 0.9rem;
}

.daily-mission {
  display: grid;
  grid-template-columns: minmax(180px, 0.45fr) minmax(0, 1.55fr);
  gap: 22px;
}

.mission-list {
  display: grid;
  gap: 7px;
}

.mission-list > div {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 12px;
  background: #151515;
  border: 1px solid #303030;
}

.mission-list span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  color: #000000;
  background: var(--brand);
  border-radius: 50%;
  font-weight: 900;
}

.mission-list p {
  margin: 0;
  color: #e1e1e1;
}

.goal-probability-panel {
  border-top: 3px solid var(--brand);
}

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

.probability-grid > div {
  display: grid;
  gap: 5px;
  min-height: 88px;
  padding: 13px;
  align-content: center;
  background: #151515;
  border: 1px solid #303030;
}

.probability-grid span,
.probability-grid small {
  color: var(--muted);
  font-size: 0.67rem;
}

.probability-grid strong {
  color: #ffffff;
  overflow-wrap: anywhere;
}

.probability-score strong {
  color: var(--brand);
  font-size: 1.65rem;
}

.focus-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.client-focus-identity,
.account-profile-heading,
.coach-client-identity {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.profile-avatar {
  position: relative;
  display: inline-grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  overflow: hidden;
  place-items: center;
  color: #000000;
  background: var(--brand);
  border: 2px solid #514d13;
  border-radius: 50%;
  font-family: Montserrat, Inter, Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
}

.profile-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-avatar-large {
  width: 68px;
  height: 68px;
  font-size: 1.05rem;
}

.profile-avatar-account,
.profile-avatar-coach {
  width: 60px;
  height: 60px;
  font-size: 0.95rem;
}

.profile-avatar-preview {
  width: 92px;
  height: 92px;
  font-size: 1.3rem;
}

.profile-avatar-directory {
  width: 30px;
  height: 30px;
  border-width: 1px;
  font-size: 0.58rem;
}

.focus-heading h1 {
  margin: 5px 0;
  color: #ffffff;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
}

.focus-heading p {
  margin: 0;
  color: var(--muted);
}

.focus-score {
  display: grid;
  min-width: 112px;
  padding: 12px;
  text-align: center;
  background: #080808;
  border: 1px solid #454522;
  border-radius: 6px;
}

.focus-score span,
.focus-score small {
  color: var(--muted);
  font-size: 0.65rem;
}

.focus-score strong {
  color: var(--brand);
  font-size: 2rem;
}

.focus-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 24px;
}

.focus-metrics > div {
  display: grid;
  min-height: 92px;
  padding: 13px;
  align-content: space-between;
  background: #1a1a1a;
  border: 1px solid #343434;
  border-radius: 5px;
}

.focus-metrics span,
.focus-metrics small {
  color: var(--muted);
  font-size: 0.68rem;
}

.focus-metrics strong {
  overflow-wrap: anywhere;
  color: #ffffff;
  font-size: 1.05rem;
}

.focus-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.focus-status-row span {
  padding: 8px 10px;
  color: #d9d9d9;
  background: #222222;
  border-radius: 4px;
  font-size: 0.72rem;
}

.focus-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.focus-quick-actions button {
  min-height: 44px;
  padding: 0 10px;
  color: #000000;
  background: var(--brand);
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 900;
}

.event-anchor-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.event-anchor-panel.has-event {
  margin-top: 18px;
  padding: 18px;
  background: #171717;
  border: 1px solid #444422;
  border-left: 4px solid var(--brand);
  border-radius: 6px;
}

.event-anchor-panel h3,
.event-anchor-panel p {
  margin: 5px 0;
}

.event-anchor-panel p:last-child {
  color: var(--muted);
}

.event-anchor-metrics {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.event-anchor-metrics span {
  padding: 8px 10px;
  color: var(--muted);
  background: #0e0e0e;
  border-radius: 4px;
  font-size: 0.68rem;
}

.event-anchor-metrics strong {
  color: #ffffff;
}

.outcome-summary,
.coach-outcome-summary,
.coach-weight-goal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.outcome-summary h3,
.coach-outcome-summary h4,
.coach-weight-goal h4 {
  margin: 5px 0;
}

.outcome-next,
.coach-outcome-summary > div:last-child {
  display: grid;
  min-width: 220px;
  gap: 4px;
  text-align: right;
}

.outcome-next span,
.outcome-next small,
.coach-outcome-summary span,
.coach-outcome-summary small {
  color: var(--muted);
  font-size: 0.68rem;
}

.outcome-next strong,
.coach-outcome-summary strong {
  color: var(--brand);
}

.outcome-status-grid,
.weight-goal-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.outcome-status-grid > div,
.weight-goal-metrics > div {
  display: grid;
  gap: 5px;
  padding: 12px;
  background: #181818;
  border: 1px solid #343434;
  border-radius: 4px;
}

.outcome-status-grid span,
.weight-goal-metrics span {
  color: var(--muted);
  font-size: 0.68rem;
}

.outcome-status-grid strong,
.weight-goal-metrics strong {
  color: #ffffff;
  overflow-wrap: anywhere;
}

.outcome-roadmap {
  display: grid;
  gap: 7px;
}

.outcome-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  background: #181818;
  border-left: 3px solid #777777;
}

.outcome-item.type-event {
  border-left-color: var(--brand);
}

.outcome-item.type-life {
  border-left-color: #ffffff;
}

.outcome-item time,
.outcome-item span {
  color: var(--brand);
  font-size: 0.68rem;
}

.outcome-item strong {
  display: block;
  color: #ffffff;
}

.outcome-item p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.weight-goal-status {
  padding: 7px 9px;
  color: #000000;
  background: var(--brand);
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.weight-goal-status.status-behind-schedule {
  color: #ffd4c7;
  background: #552417;
}

.weight-progress-track {
  height: 10px;
  margin-bottom: 14px;
  overflow: hidden;
  background: #303030;
  border-radius: 999px;
}

.weight-progress-track span {
  display: block;
  height: 100%;
  background: var(--brand);
}

.weight-goal-metrics {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.weight-phase-list {
  display: flex;
  gap: 7px;
  overflow-x: auto;
}

.weight-phase-list > span {
  display: grid;
  min-width: 150px;
  padding: 10px;
  gap: 4px;
  background: #181818;
  border: 1px solid #343434;
  border-radius: 4px;
}

.weight-phase-list > span.active {
  border-color: var(--brand);
}

.weight-phase-list strong {
  color: #ffffff;
  font-size: 0.72rem;
}

.weight-phase-list small {
  color: var(--muted);
}

.readiness-history {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 7px;
}

.readiness-history article {
  display: grid;
  gap: 4px;
  padding: 11px;
  background: #181818;
  border: 1px solid #343434;
}

.readiness-history time,
.readiness-history span {
  color: var(--muted);
  font-size: 0.66rem;
}

.readiness-history strong {
  color: var(--brand);
  font-size: 1.2rem;
}

.coach-outcome-summary,
.coach-weight-goal {
  margin-bottom: 18px;
  padding: 16px;
  background: #171717;
  border: 1px solid #373737;
  border-left: 3px solid var(--brand);
  border-radius: 5px;
}

.coach-weight-metrics {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.coach-weight-metrics span {
  padding: 7px 8px;
  color: var(--muted);
  background: #0e0e0e;
  border-radius: 3px;
  font-size: 0.67rem;
}

.coach-weight-metrics strong {
  color: #ffffff;
}

.target-explainer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.target-explainer span {
  padding: 7px 9px;
  color: var(--muted);
  background: #202020;
  border-radius: 4px;
  font-size: 0.7rem;
}

.target-explainer strong {
  color: #ffffff;
}

.ai-shortcut-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.victory-summary {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
}

.victory-summary h3 {
  margin: 5px 0;
}

.victory-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}

.victory-metrics span {
  display: grid;
  padding: 10px;
  align-content: space-between;
  color: var(--muted);
  background: #1b1b1b;
  border-radius: 4px;
  font-size: 0.67rem;
}

.victory-metrics strong {
  margin-top: 7px;
  color: #ffffff;
  font-size: 0.85rem;
}

.achievement-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.achievement-list article {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px;
  padding: 13px;
  background: #181818;
  border: 1px solid #343434;
  border-left: 3px solid var(--brand);
  border-radius: 5px;
}

.achievement-list article > span {
  color: var(--brand);
  font-size: 0.64rem;
  font-weight: 900;
  text-transform: uppercase;
}

.achievement-list strong {
  color: #ffffff;
  font-size: 0.78rem;
}

.achievement-list p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.4;
}

.event-fuel-calculator {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #353535;
}

.event-fuel-calculator summary {
  color: var(--brand);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
}

.fuel-calculator-content {
  display: grid;
  gap: 16px;
  margin-top: 14px;
  padding: 16px;
  background: #101010;
  border: 1px solid #303030;
  border-radius: 5px;
}

.fuel-form {
  grid-template-columns: repeat(4, minmax(130px, 1fr));
}

.fuel-guidance {
  padding: 13px;
  color: #d8d8d8;
  background: #24230c;
  border-left: 3px solid var(--brand);
}

.fuel-guidance p {
  margin: 5px 0 0;
  color: #c7c38f;
  font-size: 0.75rem;
  line-height: 1.5;
}

.fuel-plan-summary {
  margin-top: 16px;
  padding: 14px;
  background: #111111;
  border: 1px solid #343434;
  border-left: 3px solid var(--brand);
}

.fuel-plan-summary > div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 9px 0;
}

.fuel-plan-summary span {
  padding: 6px 8px;
  color: var(--muted);
  background: #222222;
  border-radius: 3px;
  font-size: 0.68rem;
}

.fuel-plan-summary strong {
  color: #ffffff;
}

.fuel-plan-summary > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.race-day-planner {
  margin: 0 18px 18px;
  padding: 18px;
  background: #0d0d0d;
  border: 1px solid #3a3a3a;
  border-top: 3px solid var(--brand);
  border-radius: 6px;
}

.race-planner-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.race-planner-heading h4 {
  margin: 5px 0;
  color: #ffffff;
}

.race-planner-heading p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.race-plan-status {
  display: inline-flex;
  min-height: 28px;
  padding: 5px 8px;
  align-items: center;
  color: #fff0a8;
  background: #39300b;
  border: 1px solid #655819;
  border-radius: 4px;
  font-size: 0.64rem;
  font-weight: 900;
  text-transform: uppercase;
}

.race-plan-status.status-approved {
  color: #d9ffd9;
  background: #17301c;
  border-color: #346b3b;
}

.race-plan-status.status-needs-testing {
  color: #ffd8a8;
  background: #35240e;
}

.race-profile-context {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.race-profile-context span {
  padding: 6px 8px;
  color: var(--muted);
  background: #1a1a1a;
  border: 1px solid #303030;
  font-size: 0.67rem;
}

.race-profile-context strong {
  color: #ffffff;
}

.race-planner-form-panel {
  margin-top: 16px;
  padding: 14px;
  background: #121212;
  border: 1px solid #353535;
}

.race-planner-form-panel summary {
  color: var(--brand);
  cursor: pointer;
  font-weight: 900;
}

.race-planner-form-panel form {
  margin-top: 15px;
}

.race-fuel-inputs {
  grid-template-columns: repeat(4, minmax(135px, 1fr));
}

.race-duration-preview {
  display: inline-grid;
  gap: 3px;
  margin-top: 12px;
  padding: 10px 12px;
  background: #202000;
  border-left: 3px solid var(--brand);
}

.race-duration-preview span {
  color: var(--muted);
  font-size: 0.65rem;
}

.race-duration-preview strong {
  color: #ffffff;
}

.race-fuel-results {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.race-fuel-results > section {
  padding: 15px;
  background: #151515;
  border: 1px solid #303030;
}

.race-fuel-results h5 {
  margin: 0 0 11px;
  color: #ffffff;
  font-size: 0.88rem;
}

.race-target-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}

.race-target-grid > div {
  display: grid;
  gap: 4px;
  padding: 10px;
  background: #0d0d0d;
  border: 1px solid #292929;
}

.race-target-grid span,
.race-target-grid small {
  color: var(--muted);
  font-size: 0.65rem;
}

.race-target-grid strong {
  color: var(--brand);
  overflow-wrap: anywhere;
}

.race-carb-load {
  margin: 11px 0 0;
  color: #cfcfcf;
  font-size: 0.72rem;
  line-height: 1.5;
}

.race-guidance-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 20px;
}

.race-guidance-list li {
  padding-left: 4px;
  color: #d7d7d7;
  font-size: 0.76rem;
  line-height: 1.5;
}

.race-product-highlight {
  display: grid;
  gap: 3px;
  padding: 12px;
  background: #202000;
  border-left: 3px solid var(--brand);
}

.race-product-highlight span,
.race-product-highlight small {
  color: var(--muted);
  font-size: 0.68rem;
}

.race-product-highlight strong {
  color: #ffffff;
}

.race-product-equivalents {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin-top: 9px;
}

.race-product-equivalents span {
  display: grid;
  gap: 4px;
  padding: 8px;
  color: var(--muted);
  background: #0d0d0d;
  font-size: 0.62rem;
}

.race-product-equivalents strong {
  color: #ffffff;
  font-size: 0.86rem;
}

.race-coach-status > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.race-coach-status p {
  color: #d2d2d2;
  font-size: 0.75rem;
  line-height: 1.5;
}

.race-fuel-disclaimer {
  margin: 14px 0 0;
  padding: 10px 12px;
  color: #d7d7d7;
  background: #211f0b;
  border-left: 3px solid var(--brand);
  font-size: 0.72rem;
  font-weight: 800;
}

.race-plan-empty {
  margin-top: 14px;
  padding: 16px;
  color: var(--muted);
  text-align: center;
  border: 1px dashed #383838;
}

.coach-race-fuel-controls {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 14px;
  background: #121212;
  border: 1px solid #3a3a3a;
  border-left: 3px solid var(--brand);
}

.race-export-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  background: #101010;
  border: 1px solid #343434;
}

.race-export-actions > div:first-child {
  display: grid;
  gap: 3px;
}

.race-export-actions span,
.race-export-actions small {
  color: var(--muted);
  font-size: 0.66rem;
}

.race-export-actions strong {
  color: var(--brand);
}

.race-export-actions .button-row {
  margin: 0;
}

.race-export-controls {
  display: grid;
  justify-items: end;
  gap: 7px;
}

.race-export-message {
  max-width: 360px;
  margin: 0;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.45;
  text-align: right;
}

.race-export-message.status-loading {
  color: var(--brand);
}

.race-export-message.status-success {
  color: #bfe8c4;
}

.race-export-message.status-error {
  color: #ffab91;
}

.race-review-reason {
  padding: 9px 11px;
  color: #f5f5f5;
  background: #252000;
  border-left: 3px solid var(--brand);
}

.race-approval-success {
  display: grid;
  gap: 5px;
  margin-top: 12px;
  padding: 14px;
  color: #ffffff;
  background: #171c12;
  border: 1px solid #3f5523;
  border-left: 4px solid var(--brand);
}

.race-approval-success strong {
  color: var(--brand);
}

.race-approval-success span {
  color: #d4d4d4;
  font-size: 0.72rem;
}

.injury-events-panel {
  border-top: 2px solid var(--brand);
}

.injury-safety-notice {
  display: grid;
  gap: 4px;
  margin: 14px 0;
  padding: 12px 14px;
  background: #211f0b;
  border-left: 3px solid var(--brand);
}

.injury-safety-notice strong {
  color: #ffffff;
}

.injury-safety-notice span {
  color: #d2d2d2;
  font-size: 0.72rem;
}

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

.injury-event-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.injury-event-card {
  padding: 15px;
  background: #141414;
  border: 1px solid #343434;
  border-left: 3px solid #c5a800;
}

.injury-event-card.status-active {
  border-left-color: #ef6258;
}

.injury-event-card.status-improving {
  border-left-color: var(--brand);
}

.injury-event-card.status-resolved {
  border-left-color: #5aa06b;
}

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

.injury-card-heading h4,
.injury-card-heading p {
  margin: 4px 0 0;
}

.injury-card-heading p,
.injury-event-card > p {
  color: var(--muted);
  font-size: 0.72rem;
}

.injury-status {
  color: var(--brand);
  font-size: 0.64rem;
  font-weight: 900;
  text-transform: uppercase;
}

.injury-archive-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  color: #d8eadb;
  background: #172019;
  border: 1px solid #47614b;
  font-size: 0.64rem;
  font-weight: 900;
  text-transform: uppercase;
}

.injury-list-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-top: 20px;
}

.injury-list-heading h4,
.injury-list-heading p {
  margin: 4px 0 0;
}

.injury-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 12px;
}

.injury-detail-grid span {
  display: grid;
  gap: 4px;
  padding: 9px;
  color: var(--muted);
  background: #0d0d0d;
  font-size: 0.66rem;
}

.injury-detail-grid strong {
  color: #ffffff;
}

.injury-review-flag,
.coach-injury-note,
.injury-adjustment-reason {
  margin-top: 10px;
  padding: 9px 11px;
  color: #f3f3f3;
  background: #252000;
  border-left: 3px solid var(--brand);
  font-size: 0.72rem;
}

.coach-injury-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 0.55fr)) repeat(2, minmax(150px, 0.7fr)) minmax(220px, 1fr) auto;
  align-items: end;
  gap: 10px;
  margin: -4px 0 14px;
  padding: 12px;
  background: #101010;
  border: 1px solid #303030;
}

.active-injury-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, auto);
  align-items: center;
  gap: 18px;
  margin-bottom: 14px;
  padding: 17px 19px;
  background: #161616;
  border: 1px solid #393939;
  border-left: 4px solid var(--brand);
}

.injury-resolution-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
  padding: 16px 18px;
  background: #151a14;
  border: 1px solid #394638;
  border-left: 4px solid #69a875;
}

.injury-resolution-notice h3,
.injury-resolution-notice p {
  margin: 4px 0 0;
}

.injury-resolution-notice p {
  color: var(--muted);
}

.injury-resolution-notice > span {
  color: #b9dcbc;
  font-size: 0.76rem;
  font-weight: 800;
  text-align: right;
}

.injury-resolution-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.injury-resolution-meta span {
  padding: 6px 8px;
  color: #d9d9d9;
  background: #0d0d0d;
  border: 1px solid #333333;
  font-size: 0.68rem;
}

.injury-history-panel {
  margin-top: 18px;
  padding: 16px;
  background: #0e0e0e;
  border: 1px solid #333333;
  border-left: 3px solid #69a875;
}

.archived-injury-list .injury-event-card {
  opacity: 0.92;
  border-left-color: #69a875;
}

.archived-injury-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: -4px 0 14px;
  padding: 11px 13px;
  background: #111611;
  border: 1px solid #344137;
}

.archived-injury-actions > div {
  display: grid;
  gap: 3px;
}

.archived-injury-actions span {
  color: var(--muted);
  font-size: 0.7rem;
}

.resolve-injury-button {
  min-height: 44px;
}

.injury-resolution-dialog {
  width: min(560px, calc(100vw - 28px));
}

.coach-alert p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.active-injury-banner.priority-high {
  border-left-color: #ef6258;
}

.active-injury-banner.priority-medium {
  border-left-color: var(--brand);
}

.active-injury-banner h3,
.active-injury-banner p {
  margin: 4px 0 0;
}

.active-injury-banner p,
.active-injury-banner small {
  color: var(--muted);
}

.injury-banner-status {
  display: grid;
  gap: 5px;
  text-align: right;
}

.injury-banner-status strong {
  color: #ffffff;
}

.injury-banner-status span {
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 800;
}

.timeline-item.type-injury {
  border-left-color: #ef6258;
}

.morning-briefing {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  gap: 18px;
  margin-bottom: 14px;
  padding: 18px;
  background: #141414;
  border: 1px solid #39391f;
  border-left: 4px solid var(--brand);
  border-radius: 6px;
}

.morning-briefing h3,
.morning-briefing p {
  margin: 5px 0;
}

.morning-briefing p:last-child {
  color: var(--muted);
}

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

.briefing-signals span {
  display: grid;
  padding: 11px;
  color: var(--muted);
  background: #1d1d1d;
  border-radius: 4px;
  font-size: 0.68rem;
}

.briefing-signals strong {
  color: #ffffff;
  font-size: 1.15rem;
}

.client-traffic-list {
  display: grid;
  gap: 4px;
  max-height: 360px;
  overflow-y: auto;
}

.client-traffic-list button {
  display: grid;
  grid-template-columns: 30px 10px minmax(0, 1fr) auto;
  min-height: 44px;
  padding: 7px 8px;
  align-items: center;
  gap: 8px;
  color: #cfcfcf;
  background: transparent;
  border-radius: 4px;
  font-size: 0.7rem;
  text-align: left;
}

.client-traffic-list button.selected,
.client-traffic-list button:hover {
  background: #242424;
}

.client-traffic-list button.mode-coach_led {
  border-left: 2px solid #ffffff;
}

.client-traffic-list button.mode-self_guided {
  border-left: 2px solid var(--brand);
}

.client-traffic-list button > span:not(.traffic-light) {
  display: grid;
  gap: 2px;
}

.client-presence-name {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: #ffffff;
}

.presence-dot {
  display: inline-block;
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  background: #777777;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
}

.presence-dot.online {
  background: #57b56b;
  box-shadow: 0 0 0 3px rgba(87, 181, 107, 0.12);
}

.presence-dot.recent {
  background: #d5a72d;
}

.presence-dot.offline {
  background: #686868;
}

.selected-client-presence {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 7px;
}

.selected-client-presence strong {
  color: #d2d2d2;
  font-size: 0.7rem;
  font-weight: 700;
}

.client-traffic-list button small {
  color: var(--muted);
  font-size: 0.58rem;
}

.client-traffic-list strong {
  color: #ffffff;
}

.traffic-light {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.account-profile-heading {
  margin: 8px 0 18px;
}

.account-profile-heading h3,
.account-profile-heading p {
  margin: 0;
}

.profile-photo-upload {
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) minmax(260px, 1.3fr);
  gap: 18px;
  margin: 0 -22px 22px;
  padding: 18px 22px;
  background: #121212;
  border-top: 1px solid #303030;
  border-bottom: 1px solid #303030;
}

.profile-photo-upload h4,
.profile-photo-upload p {
  margin: 5px 0;
}

.profile-photo-upload form {
  display: flex;
  align-items: center;
  gap: 16px;
}

.profile-photo-preview {
  flex: 0 0 auto;
}

.profile-photo-controls {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-photo-controls input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.profile-photo-picker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.profile-photo-status {
  width: 100%;
  min-height: 18px;
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.7rem;
}

.profile-photo-status.status-success {
  color: #8ed39a;
}

.profile-photo-status.status-error {
  color: #ff9d83;
}

.profile-photo-status.status-ready,
.profile-photo-status.status-loading {
  color: var(--brand);
}

.profile-photo-setup-message {
  margin: 12px 0 20px;
  padding: 12px 14px;
  color: #f0f0f0;
  background: #211f0b;
  border-left: 3px solid var(--brand);
  font-size: 0.75rem;
}

.progress-photos-section,
.coach-progress-photos {
  min-width: 0;
}

.photo-consistency-guide {
  display: grid;
  gap: 5px;
  margin: 16px 0 20px;
  padding: 14px 16px;
  color: #d7d7d7;
  background: #191919;
  border-left: 3px solid var(--brand);
  font-size: 0.78rem;
  line-height: 1.5;
}

.photo-consistency-guide strong {
  color: #ffffff;
}

.progress-photo-upload-form {
  display: grid;
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.progress-photo-upload-grid,
.progress-photo-thumbnails {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.progress-photo-picker {
  display: grid;
  gap: 8px;
  min-width: 0;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
}

.progress-photo-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}

.progress-photo-preview,
.progress-photo-thumbnails a {
  position: relative;
  display: grid;
  min-width: 0;
  aspect-ratio: 3 / 4;
  place-items: center;
  overflow: hidden;
  color: #a7a7a7;
  background: #121212;
  border: 1px dashed #484848;
  border-radius: var(--card-radius);
  text-decoration: none;
}

.progress-photo-preview img,
.progress-photo-thumbnails img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.progress-photo-placeholder {
  max-width: 120px;
  padding: 12px;
  text-align: center;
}

.progress-photo-submit-row,
.progress-photo-set-heading,
.photo-comparison-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.progress-photo-status {
  min-height: 20px;
  color: var(--muted);
  font-size: 0.75rem;
}

.progress-photo-status.status-success {
  color: #8ed39a;
}

.progress-photo-status.status-error {
  color: #ff9d83;
}

.progress-photo-status.status-ready,
.progress-photo-status.status-uploading {
  color: var(--brand);
}

.upload-progress-track {
  height: 6px;
  overflow: hidden;
  background: #303030;
  border-radius: 999px;
}

.upload-progress-track span {
  display: block;
  height: 100%;
  background: var(--brand);
  transition: width 160ms ease;
}

.progress-photo-timeline {
  display: grid;
  gap: 18px;
}

.progress-photo-set {
  min-width: 0;
  padding: 18px;
  background: #151515;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
}

.progress-photo-set-heading {
  align-items: flex-start;
  margin-bottom: 14px;
}

.progress-photo-set-heading span:first-child {
  color: var(--muted);
  font-size: 0.7rem;
}

.progress-photo-set-heading h4 {
  margin: 4px 0 0;
}

.progress-photo-thumbnails a {
  border-style: solid;
}

.progress-photo-thumbnails a span {
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 4px 7px;
  color: #000000;
  background: var(--brand);
  border-radius: 3px;
  font-size: 0.65rem;
  font-weight: 800;
}

.photo-comparison-row {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 14px;
}

.photo-comparison-row span {
  padding: 7px 9px;
  color: #bdbdbd;
  background: #242424;
  border-radius: 4px;
  font-size: 0.72rem;
}

.photo-comparison-row strong {
  margin-left: 4px;
  color: #ffffff;
}

.photo-feedback {
  margin-top: 14px;
  padding: 13px 14px;
  color: #dddddd;
  background: #201f12;
  border-left: 3px solid var(--brand);
}

.photo-feedback.pending {
  background: #1d1d1d;
  border-left-color: #777777;
}

.photo-feedback p,
.photo-feedback small {
  display: block;
  margin: 5px 0 0;
  line-height: 1.5;
}

.photo-feedback small {
  color: #a7a7a7;
}

.photo-set-actions {
  margin-top: 14px;
}

.photo-set-actions summary {
  min-height: 44px;
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
}

.coach-progress-photos {
  margin-bottom: 22px;
  padding: 20px;
  background: #111111;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
}

.coach-photo-review-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.35fr);
  gap: 12px;
  margin-top: -8px;
  padding: 16px;
  background: #0d0d0d;
  border: 1px solid var(--line);
  border-top: 0;
}

.coach-photo-review-form .button-row {
  grid-column: 1 / -1;
}

.progress-photo-empty {
  padding: 24px;
  color: var(--muted);
  background: #151515;
  border: 1px dashed #444444;
  text-align: center;
}

.progress-photo-empty h4,
.progress-photo-empty p {
  margin: 5px 0;
}

.traffic-light.green {
  background: #62c76b;
}

.traffic-light.yellow {
  background: var(--brand);
}

.traffic-light.red {
  background: #ff6b6b;
}

.strive-score-panel {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
  padding: 18px;
  background: #151515;
  border: 1px solid #3a3a3a;
  border-left: 4px solid var(--brand);
  border-radius: 6px;
}

.strive-score-panel.score-low {
  border-left-color: #ff6b6b;
}

.strive-score-panel.score-monitor {
  border-left-color: var(--brand);
}

.strive-score-panel.score-good {
  border-left-color: #62c76b;
}

.strive-score-panel.compact {
  margin: 0 0 18px;
}

.score-ring {
  display: grid;
  width: 78px;
  height: 78px;
  flex: 0 0 auto;
  place-content: center;
  text-align: center;
  background: #080808;
  border: 2px solid var(--brand);
  border-radius: 50%;
}

.score-ring strong {
  color: #ffffff;
  font-size: 1.65rem;
  line-height: 1;
}

.score-ring span {
  color: var(--muted);
  font-size: 0.65rem;
}

.strive-score-panel h3,
.strive-score-panel p {
  margin: 4px 0;
}

.strive-score-panel > div:last-child > p:last-child {
  color: var(--muted);
  font-size: 0.78rem;
}

.score-history {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 9px;
}

.score-history span {
  display: grid;
  width: 28px;
  height: 25px;
  place-items: center;
  color: #ffffff;
  background: #292929;
  border-radius: 3px;
  font-size: 0.68rem;
  font-weight: 800;
}

.calendar-timeline,
.journey-feed {
  display: grid;
  gap: 8px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  padding: 12px 14px;
  background: #181818;
  border: 1px solid #303030;
  border-left: 3px solid #666666;
  border-radius: 5px;
}

.timeline-item.type-goal,
.timeline-item.type-phase {
  border-left-color: var(--brand);
}

.timeline-item.type-coach {
  border-left-color: #ffffff;
}

.timeline-item.type-support {
  border-left-color: #ff6b6b;
}

.timeline-item.type-signal {
  border-left-color: var(--brand);
}

.timeline-item time {
  color: var(--brand);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.timeline-item strong {
  color: #ffffff;
}

.timeline-item p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.event-header-actions {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.readiness-score {
  display: grid;
  min-width: 112px;
  padding: 9px 11px;
  text-align: center;
  background: #0d0d0d;
  border: 1px solid #3b3b23;
  border-radius: 5px;
}

.readiness-score.needs-attention {
  border-color: #8e391f;
}

.readiness-score span,
.readiness-score small {
  color: var(--muted);
  font-size: 0.62rem;
}

.readiness-score strong {
  color: var(--brand);
  font-size: 1.35rem;
}

.business-dashboard {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0;
}

.business-dashboard .metric {
  min-width: 0;
  padding: 11px;
}

.business-dashboard .metric strong {
  font-size: 1.05rem;
}

.coach-alerts-centre {
  margin-bottom: 18px;
}

.coach-alert-list {
  display: grid;
  gap: 8px;
}

.coach-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  background: #181818;
  border: 1px solid #383838;
  border-left: 3px solid #777777;
  border-radius: 5px;
}

.coach-alert.priority-high {
  border-left-color: #ff6b6b;
}

.coach-alert.priority-medium {
  border-left-color: var(--brand);
}

.coach-alert > div:first-child {
  display: grid;
  gap: 4px;
}

.coach-alert strong {
  color: #ffffff;
  font-size: 0.82rem;
}

.coach-alert small {
  color: var(--muted);
}

.alert-priority {
  width: fit-content;
  color: var(--brand);
  font-size: 0.62rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ai-edit-panel {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #303030;
}

.ai-edit-panel summary {
  color: var(--brand);
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 800;
}

.ai-edit-panel form {
  display: grid;
  gap: 9px;
  margin-top: 10px;
}

.coach-assistant-review {
  max-height: 520px;
}

.client-coach-communications {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.coach-update-panel,
.coach-message-panel {
  min-width: 0;
}

.coach-update-list,
.coach-message-list {
  display: grid;
  gap: 10px;
}

.client-coach-update,
.client-coach-message {
  padding: 16px;
  background: #181818;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.client-coach-update {
  border-left: 3px solid var(--brand);
}

.client-coach-message {
  border-left: 3px solid #ffffff;
}

.coach-communication-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.coach-communication-meta span {
  color: var(--brand);
}

.client-coach-update h4 {
  margin: 10px 0 6px;
  color: #ffffff;
}

.client-coach-update p,
.client-coach-message p {
  margin: 8px 0;
  color: #e0e0e0;
  line-height: 1.55;
}

.client-coach-update small,
.client-coach-message small {
  color: var(--muted);
  line-height: 1.5;
}

.coach-update-changes {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 12px 0;
}

.coach-update-changes span {
  padding: 6px 8px;
  color: #cfcfcf;
  background: #252525;
  border-radius: 4px;
  font-size: 0.7rem;
}

.coach-update-changes strong {
  color: #ffffff;
}

.client-coach-update blockquote {
  margin: 12px 0 0;
  padding: 12px;
  color: #ffffff;
  background: #0e0e0e;
  border-left: 2px solid var(--brand);
}

.client-ai-assistant {
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(243, 229, 0, 0.04), transparent 45%),
    var(--panel);
}

.assistant-context,
.assistant-quick-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.assistant-context span,
.assistant-prompt {
  padding: 8px 10px;
  color: #cfcfcf;
  background: #1d1d1d;
  border: 1px solid #353535;
  border-radius: 4px;
  font-size: 0.72rem;
}

.assistant-context strong {
  color: #ffffff;
}

.assistant-prompt {
  transition: border-color 150ms ease, color 150ms ease;
}

.assistant-prompt:hover {
  color: var(--brand);
  border-color: rgba(243, 229, 0, 0.5);
}

.assistant-conversation {
  display: grid;
  max-height: 430px;
  margin-top: 16px;
  padding: 16px;
  gap: 10px;
  overflow-y: auto;
  background: #090909;
  border: 1px solid #292929;
  border-radius: 6px;
}

.assistant-empty {
  padding: 18px;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

.assistant-message {
  width: min(88%, 720px);
  padding: 12px 14px;
  background: #1b1b1b;
  border: 1px solid #343434;
  border-radius: 6px;
}

.assistant-message.user {
  justify-self: end;
  border-color: rgba(243, 229, 0, 0.42);
}

.assistant-message.assistant {
  justify-self: start;
}

.assistant-message span,
.assistant-message time {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 800;
  text-transform: uppercase;
}

.assistant-message span {
  color: var(--brand);
}

.assistant-message p {
  margin: 7px 0;
  color: #e8e8e8;
  font-size: 0.84rem;
  line-height: 1.55;
}

.assistant-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 12px;
}

.assistant-boundary {
  margin: 10px 0 0;
  color: #818181;
  font-size: 0.68rem;
  line-height: 1.45;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.payment-centre {
  margin: 18px 0 22px;
}

.payment-plan-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 18px;
  margin-top: 12px;
  padding: 14px 16px;
  background: #161606;
  border: 1px solid #3f3b13;
  border-left: 3px solid var(--brand);
}

.payment-plan-summary > div {
  display: grid;
  gap: 3px;
}

.payment-plan-summary span,
.payment-plan-summary small {
  color: var(--muted);
  font-size: 0.68rem;
}

.payment-plan-summary strong {
  color: #ffffff;
  font-size: 1.2rem;
}

.payment-plan-summary p {
  margin: 0;
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 800;
}

.stripe-connection {
  display: inline-flex;
  min-height: 30px;
  padding: 6px 9px;
  align-items: center;
  color: #ffb49d;
  background: #321a12;
  border: 1px solid #75432e;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.stripe-connection.connected {
  color: #d9ffd9;
  background: #132417;
  border-color: #346b3b;
}

.payment-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.payment-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.75fr);
  gap: 14px;
  margin-top: 14px;
}

.billing-panel,
.stripe-settings {
  min-width: 0;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.billing-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.billing-toolbar h4,
.stripe-settings h4 {
  margin: 0 0 5px;
  color: #ffffff;
}

.status-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}

.status-filters button {
  min-height: 44px;
  padding: 5px 8px;
  color: #bdbdbd;
  background: #222222;
  border: 1px solid #383838;
  border-radius: 4px;
  font-size: 0.67rem;
  font-weight: 800;
}

.status-filters button.active {
  color: #000000;
  background: var(--brand);
  border-color: var(--brand);
}

.billing-table-wrap {
  width: 100%;
  max-width: 100%;
  margin-top: 16px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

.billing-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.billing-table th,
.billing-table td {
  padding: 11px 9px;
  border-bottom: 1px solid #2e2e2e;
  font-size: 0.72rem;
  text-align: left;
  vertical-align: middle;
}

.billing-table th {
  color: #8f8f8f;
  font-size: 0.62rem;
  text-transform: uppercase;
}

.billing-table td {
  color: #d8d8d8;
}

.billing-table td strong,
.billing-table td small {
  display: block;
}

.billing-table td strong {
  color: #ffffff;
}

.billing-table td small {
  margin-top: 3px;
  color: #808080;
}

.billing-status {
  display: inline-flex;
  padding: 4px 6px;
  color: #ffb49d;
  background: #351b13;
  border-radius: 3px;
  font-size: 0.62rem;
  font-weight: 900;
  text-transform: uppercase;
}

.billing-status.paid,
.billing-status.lifetime {
  color: #d9ffd9;
  background: #17301c;
}

.billing-status.trial {
  color: var(--brand);
  background: #302d08;
}

.billing-status.cancel-request,
.billing-status.cancel-at-period-end,
.billing-status.pause-request,
.billing-status.paused {
  color: #fff0a8;
  background: #39300b;
}

.empty-billing {
  padding: 26px !important;
  color: var(--muted) !important;
  text-align: center !important;
}

.billing-cancellation-centre {
  margin-top: 14px;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
}

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

.cancellation-table {
  min-width: 850px;
}

.pause-table {
  min-width: 1050px;
}

.pause-summary-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pause-admin-form {
  display: grid;
  gap: 6px;
  min-width: 210px;
}

.pause-admin-form select,
.pause-admin-form input {
  min-height: 44px;
  padding: 6px 8px;
  font-size: 0.7rem;
}

.stripe-settings {
  display: grid;
  align-content: start;
  gap: 18px;
}

.stripe-settings form {
  display: grid;
  gap: 12px;
}

.stripe-capability-list {
  display: grid;
  gap: 6px;
}

.stripe-capability-list span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
  color: var(--muted);
  background: #171717;
  border: 1px solid #303030;
  font-size: 0.69rem;
}

.stripe-capability-list strong {
  color: #ffffff;
}

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

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

.section-heading-row h3,
.section-heading-row h4 {
  margin-bottom: 7px;
}

.compact-heading {
  margin-bottom: 18px;
}

.compact-metric {
  min-width: 180px;
  flex: 0 0 auto;
}

.stacked-form {
  padding: 20px;
  background: #0b0b0b;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.life-event-form {
  grid-template-columns: 0.8fr 1.4fr repeat(3, minmax(130px, 0.8fr));
}

.goal-event-form {
  grid-template-columns: repeat(3, minmax(150px, 1fr));
}

.goal-event-create-panel {
  scroll-margin-top: 18px;
}

.goal-event-save-feedback {
  margin-bottom: 14px;
  padding: 11px 13px;
  color: #f1f1f1;
  background: #171717;
  border-left: 3px solid #777777;
  font-size: 0.76rem;
}

.goal-event-save-feedback.status-success {
  background: #142017;
  border-left-color: #64ad73;
}

.goal-event-save-feedback.status-error {
  background: #251514;
  border-left-color: #ef6258;
}

.goal-event-save-feedback.status-loading {
  border-left-color: var(--brand);
}

.goal-event-notes {
  margin-top: 8px !important;
  padding: 9px 11px;
  color: #d6d6d6 !important;
  background: #101010;
  border-left: 2px solid var(--brand);
  font-size: 0.72rem !important;
}

.guided-empty-state {
  display: block;
  padding: 14px 15px;
  background: #101010;
  border: 1px solid #2f2f2f;
  border-left: 2px solid #777777;
  line-height: 1.55;
}

.outcome-roadmap-panel {
  border-top: 2px solid #3d3d3d;
}

.training-days-dialog {
  width: min(620px, calc(100vw - 28px));
}

.training-day-selector {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.training-day-selector label {
  display: flex;
  min-height: 48px;
  padding: 10px 12px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #ffffff;
  background: #181818;
  border: 1px solid #3a3a3a;
}

.training-day-selector input {
  width: 22px;
  height: 22px;
  accent-color: var(--brand);
}

.training-day-feedback {
  margin-bottom: 14px;
  padding: 10px 12px;
  color: #efefef;
  background: #171717;
  border-left: 3px solid var(--brand);
  font-size: 0.75rem;
}

.training-day-feedback.status-success {
  background: #142017;
  border-left-color: #64ad73;
}

.training-day-feedback.status-error {
  background: #251514;
  border-left-color: #ef6258;
}

.coach-training-day-request {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
  padding: 15px 17px;
  background: #211f0b;
  border: 1px solid #514b13;
  border-left: 4px solid var(--brand);
}

.coach-training-day-request h4,
.coach-training-day-request p {
  margin: 4px 0 0;
}

.progress-form {
  grid-template-columns: repeat(4, minmax(130px, 1fr));
}

.support-choice {
  padding-top: 4px;
}

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

.choice-option {
  display: flex;
  min-height: 48px;
  padding: 11px 13px;
  align-items: center;
  gap: 10px;
  color: #d8d8d8;
  background: #151515;
  border: 1px solid #353535;
  border-radius: 5px;
  text-transform: none;
}

.choice-option input {
  width: 18px;
  min-height: 18px;
  margin: 0;
  accent-color: var(--brand);
}

.record-list {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}

.record-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  min-height: 68px;
  padding: 12px 14px;
  background: #181818;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.record-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #000000;
  background: var(--brand);
  border-radius: 4px;
  font-weight: 900;
}

.record-main {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.record-main strong {
  overflow: hidden;
  color: #ffffff;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.record-main span {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.8rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.record-value {
  display: grid;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 900;
  text-align: right;
}

.record-value span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
}

.record-action {
  min-height: 44px;
  padding: 0 10px;
  color: #d8d8d8;
  background: #272727;
  border: 1px solid #3b3b3b;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 800;
}

.record-action:hover {
  color: #ffffff;
  border-color: #777777;
}

.record-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.email-table td,
.billing-table td,
.client-summary-card,
.goal-event-card,
.life-event-card {
  overflow-wrap: anywhere;
}

.danger-action {
  color: #ffb49d;
  background: #2b1711;
  border-color: #69402f;
}

.danger-action:hover {
  color: #ffd4c7;
  border-color: #a35b3e;
}

.life-event-edit-panel {
  padding: 18px;
  background:
    linear-gradient(110deg, rgba(243, 229, 0, 0.045), transparent 52%),
    #141414;
  border: 1px solid rgba(243, 229, 0, 0.35);
  border-radius: 6px;
}

.life-event-edit-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.life-event-edit-heading h4 {
  margin: 4px 0 0;
  color: #ffffff;
}

.life-event-edit-panel form {
  display: grid;
  gap: 14px;
}

.empty-inline {
  padding: 20px;
  text-align: center;
  border: 1px dashed #383838;
  border-radius: 6px;
}

.goal-event-list {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.goal-event-card {
  overflow: hidden;
  background: #151515;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.goal-event-edit-panel {
  border-color: #504b12;
  border-left: 3px solid var(--brand);
}

.goal-event-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
}

.goal-event-header h4 {
  margin: 10px 0 5px;
  color: #ffffff;
  font-size: 1.15rem;
}

.goal-event-header p {
  margin: 0 0 5px;
  color: #d0d0d0;
}

.goal-event-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  color: var(--muted);
  font-size: 0.74rem;
}

.pill.priority-high {
  color: #000000;
  background: var(--brand);
}

.pill.priority-medium {
  color: #f0f0f0;
  background: #383838;
}

.pill.priority-low {
  color: #aaaaaa;
  background: #242424;
}

.current-phase-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 18px;
  background: rgba(243, 229, 0, 0.08);
  border-top: 1px solid rgba(243, 229, 0, 0.25);
  border-bottom: 1px solid rgba(243, 229, 0, 0.25);
}

.current-phase-banner > div:first-child {
  display: grid;
  gap: 3px;
}

.current-phase-banner > div:first-child strong {
  color: var(--brand);
}

.phase-recommendation {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.phase-recommendation span {
  padding: 6px 8px;
  color: #bdbdbd;
  background: #202000;
  border: 1px solid rgba(243, 229, 0, 0.18);
  border-radius: 4px;
  font-size: 0.7rem;
}

.phase-recommendation strong {
  color: #ffffff;
}

.phase-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0;
  padding: 18px;
}

.phase-item {
  position: relative;
  min-height: 150px;
  padding: 20px 14px 12px;
  border-top: 2px solid #353535;
}

.phase-marker {
  position: absolute;
  top: -6px;
  left: 14px;
  width: 10px;
  height: 10px;
  background: #555555;
  border: 2px solid #151515;
  border-radius: 50%;
}

.phase-item.active {
  border-color: var(--brand);
}

.phase-item.active .phase-marker {
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(243, 229, 0, 0.13);
}

.phase-item.complete {
  opacity: 0.55;
}

.phase-item strong,
.phase-item span,
.phase-item p,
.phase-item small {
  display: block;
}

.phase-item strong {
  color: #ffffff;
  font-size: 0.82rem;
}

.phase-item span {
  margin-top: 5px;
  color: var(--brand);
  font-size: 0.7rem;
}

.phase-item p {
  margin: 9px 0;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.45;
}

.phase-item small {
  color: #cfcfcf;
  font-size: 0.66rem;
  line-height: 1.5;
}

.coach-goal-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 18px;
  padding: 18px;
  background:
    linear-gradient(100deg, rgba(243, 229, 0, 0.08), transparent 52%),
    #171717;
  border: 1px solid #3b3b23;
  border-radius: 6px;
}

.coach-goal-summary h4 {
  margin: 5px 0 7px;
  color: #ffffff;
  font-size: 1.05rem;
}

.coach-phase-summary {
  display: grid;
  min-width: 320px;
  gap: 5px;
  text-align: right;
}

.coach-phase-summary > strong {
  color: var(--brand);
}

.coach-goal-events .phase-timeline {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.life-event-subheading {
  margin-top: 32px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.attention-alert {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding: 14px 16px;
  color: #ffd4c7;
  background: #25140f;
  border: 1px solid #7d371f;
  border-radius: 6px;
}

.attention-alert strong {
  flex: 0 0 auto;
  color: #ff9270;
  font-size: 0.76rem;
  text-transform: uppercase;
}

.attention-alert span {
  font-size: 0.85rem;
}

.support-request-alert {
  justify-content: space-between;
}

.support-request-alert > div {
  display: grid;
  gap: 4px;
}

.support-in-progress-message {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  padding: 14px 16px;
  color: #fffbd1;
  background: #2b290d;
  border: 1px solid #746d13;
  border-radius: 6px;
}

.support-in-progress-message strong {
  color: var(--brand);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.support-in-progress-message span {
  color: #d1cc94;
  font-size: 0.85rem;
}

.support-resolved-message,
.support-clear-message {
  margin-bottom: 18px;
  padding: 12px 14px;
  color: #d9ffd9;
  background: #132417;
  border: 1px solid #346b3b;
  border-radius: 6px;
  font-size: 0.78rem;
}

.support-resolved-message {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.support-resolved-message span {
  color: #a7c8a9;
}

.coach-support-requests {
  margin-bottom: 20px;
  padding: 18px;
  background: #121212;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.support-section-heading h4 {
  margin: 5px 0 0;
  color: #ffffff;
}

.support-request-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.coach-support-request {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  background: #191919;
  border: 1px solid #3a3a3a;
  border-radius: 5px;
}

.coach-support-request.status-open {
  background: #21140f;
  border-color: #8e391f;
}

.coach-support-request.status-in-progress {
  border-color: rgba(243, 229, 0, 0.38);
}

.coach-support-request.status-completed {
  border-color: #346b3b;
}

.coach-support-request > div:first-child {
  display: grid;
  gap: 5px;
}

.coach-support-request p,
.coach-support-request small {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.support-status-badge {
  width: fit-content;
  padding: 4px 7px;
  color: #ffb49d;
  background: #552417;
  border-radius: 3px;
  font-size: 0.63rem;
  font-weight: 900;
  text-transform: uppercase;
}

.support-status-badge.status-in-progress,
.support-flag.status-in-progress,
.support-score.status-in-progress {
  color: var(--brand);
  background: #363207;
  border-color: #746d13;
}

.support-status-badge.status-completed,
.support-flag.status-completed,
.support-score.status-completed {
  color: #d9ffd9;
  background: #17301c;
  border-color: #346b3b;
}

.support-status-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 7px;
}

.support-history {
  margin-top: 14px;
  border-top: 1px solid #303030;
}

.support-history summary {
  padding-top: 14px;
  color: #bdbdbd;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 800;
}

.support-history-meta {
  color: #8fbc93;
  font-size: 0.7rem;
}

.progress-visuals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.coach-progress-visuals {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0;
}

.coach-progress-visuals .chart-panel:last-child {
  grid-column: 1 / -1;
}

.chart-panel {
  min-width: 0;
  padding: 18px;
  background: #161616;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.chart-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.chart-heading h4 {
  margin: 0;
  color: #ffffff;
  font-size: 0.88rem;
}

.chart-heading strong {
  color: var(--brand);
  font-size: 0.9rem;
}

.bar-chart {
  display: grid;
  grid-template-columns: repeat(8, minmax(20px, 1fr));
  align-items: end;
  gap: 7px;
  height: 180px;
  margin-top: 18px;
  padding-top: 24px;
  border-bottom: 1px solid #3a3a3a;
}

.chart-column {
  position: relative;
  display: flex;
  height: 100%;
  min-width: 0;
  align-items: center;
  flex-direction: column;
  justify-content: flex-end;
  gap: 5px;
}

.chart-bar {
  width: min(100%, 28px);
  min-height: 8px;
  background: var(--brand);
  border-radius: 3px 3px 0 0;
}

.chart-value {
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
}

.chart-column small {
  position: absolute;
  bottom: -20px;
  color: #777777;
  font-size: 0.58rem;
  white-space: nowrap;
}

.score-chart {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.score-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.75rem;
}

.score-row strong {
  color: #ffffff;
}

.score-track {
  height: 8px;
  overflow: hidden;
  background: #303030;
  border-radius: 999px;
}

.score-track span {
  display: block;
  height: 100%;
  background: var(--brand);
}

.progress-history {
  margin-top: 24px;
}

.check-in-submitted-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  background: #151b12;
  border: 1px solid #4f6c35;
  border-left: 4px solid var(--brand);
  border-radius: 6px;
}

.check-in-submitted-state h4,
.check-in-submitted-state p {
  margin: 4px 0;
}

.check-in-submit-feedback {
  min-height: 20px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.check-in-submit-feedback.status-saving {
  color: var(--brand);
}

.check-in-submit-feedback.status-error {
  color: #ffb29b;
}

.check-in-review-meta {
  display: block;
  margin-top: 7px;
  color: #a9c798;
}

.check-in-review-meta.awaiting-review {
  color: #d8bd67;
}

.shared-coach-note {
  margin-top: 10px;
  padding: 10px 12px;
  background: #101510;
  border-left: 3px solid var(--brand);
}

.shared-coach-note p {
  margin: 4px 0 0;
}

.progress-record {
  grid-template-columns: minmax(0, 1fr) auto;
}

.progress-record.support-requested {
  border-color: #8e391f;
  background: #21140f;
}

.check-in-note {
  margin: 5px 0 0;
  color: #c9c9c9;
  font-size: 0.78rem;
  line-height: 1.5;
  white-space: normal;
}

.progress-score-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.progress-score-summary span {
  min-width: 34px;
  padding: 5px 7px;
  color: #dedede;
  background: #282828;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 800;
  text-align: center;
}

.progress-score-summary .support-score {
  color: #ffb29b;
  background: #552417;
}

.latest-check-in {
  margin-bottom: 20px;
  padding: 18px;
  background: #161616;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.latest-check-in.needs-support {
  border-color: #8e391f;
  background:
    linear-gradient(110deg, rgba(142, 57, 31, 0.17), transparent 55%),
    #161616;
}

.latest-check-in-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.latest-check-in-header h4 {
  margin: 0;
  color: #ffffff;
  font-size: 1.12rem;
}

.support-flag {
  display: inline-flex;
  min-height: 28px;
  padding: 5px 9px;
  align-items: center;
  color: #ffd4c7;
  background: #552417;
  border: 1px solid #8e391f;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.latest-check-in-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.latest-check-in-grid .metric strong {
  font-size: 1.05rem;
}

.coach-check-in-note {
  margin-top: 14px;
  padding: 14px;
  background: #0d0d0d;
  border-left: 3px solid var(--brand);
}

.coach-check-in-note p {
  margin: 5px 0 0;
  color: #e2e2e2;
  line-height: 1.55;
}

.check-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.check-item:last-child {
  border-bottom: 0;
}

.check-item.compact {
  padding: 0 0 8px;
}

.check-item input {
  width: 22px;
  min-height: 22px;
  accent-color: var(--brand);
}

@media (max-width: 980px) {
  .auth-layout {
    grid-template-columns: 1fr;
  }

  .intro-panel {
    min-height: 600px;
    border-right: 0;
    border-bottom: 1px solid #262626;
  }

  .auth-card {
    min-height: 560px;
  }

  .grid.two,
  .grid.three {
    grid-template-columns: 1fr;
  }

  .coach-workspace {
    grid-template-columns: 1fr;
  }

  .coach-admin-layout {
    grid-template-columns: 1fr;
  }

  .coach-admin-sidebar {
    position: static;
    display: none;
    width: auto;
    height: auto;
    min-height: 0;
  }

  .coach-admin-sidebar.open {
    display: block;
  }

  .coach-admin-sidebar nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .coach-nav-item {
    padding: 0 7px;
    border-left: 0;
    border-bottom: 3px solid transparent;
    text-align: center;
  }

  .coach-nav-item.active {
    border-bottom-color: #ffffff;
  }

  .coach-mobile-menu {
    display: flex;
    width: 100%;
    min-height: 46px;
    margin-bottom: 12px;
    padding: 10px 12px;
    align-items: center;
    justify-content: space-between;
    color: #ffffff;
    background: #151515;
    border: 1px solid #353535;
    border-radius: 5px;
  }

  .coach-admin-main {
    grid-column: auto;
  }

  .coach-mobile-menu span {
    color: var(--brand);
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
  }

  .coach-dashboard-focus,
  .coach-settings-layout,
  .membership-settings,
  .progress-review-summary {
    grid-template-columns: 1fr;
  }

  .progress-review-dashboard-alert,
  .progress-review-client-heading,
  .check-in-submitted-state {
    align-items: stretch;
    flex-direction: column;
  }

  .progress-review-dashboard-alert .btn,
  .progress-review-client-heading .btn,
  .check-in-submitted-state .btn {
    width: 100%;
  }

  .membership-form {
    grid-template-columns: 1fr;
  }

  .service-mode-settings {
    grid-template-columns: 1fr;
  }

  .focus-metrics,
  .victory-metrics,
  .briefing-signals,
  .outcome-status-grid,
  .weight-goal-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .victory-summary,
  .morning-briefing {
    grid-template-columns: 1fr;
  }

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

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

  .payment-layout {
    grid-template-columns: 1fr;
  }

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

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

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

  .client-selector-panel {
    position: static;
    grid-template-columns: 1fr 1fr;
  }

  .client-selector-panel > div:first-child,
  .client-selector-panel > .tiny {
    grid-column: 1 / -1;
  }

  .coach-detail-grid,
  .notes-panel {
    grid-template-columns: 1fr;
  }

  .client-coach-communications {
    grid-template-columns: 1fr;
  }

  .life-event-form,
  .goal-event-form,
  .progress-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .latest-check-in-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .coach-metrics,
  .mini-week {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .app-shell {
    padding:
      max(14px, env(safe-area-inset-top, 0px))
      max(14px, env(safe-area-inset-right, 0px))
      max(28px, env(safe-area-inset-bottom, 0px))
      max(14px, env(safe-area-inset-left, 0px));
    background-size: 36px 36px;
  }

  .topbar {
    min-height: 50px;
    margin-bottom: 14px;
  }

  .brand-logo {
    height: 52px;
    max-width: 180px;
  }

  .top-actions {
    width: 100%;
  }

  .top-actions > * {
    max-width: 100%;
  }

  .coach-admin-sidebar nav {
    grid-template-columns: 1fr;
  }

  .coach-nav-item {
    text-align: left;
  }

  .ai-inbox-toolbar,
  .global-ai-client {
    align-items: stretch;
    flex-direction: column;
  }

  .client-dashboard-shell {
    padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px));
  }

  .client-mobile-nav {
    right: max(8px, env(safe-area-inset-right, 0px));
    left: max(8px, env(safe-area-inset-left, 0px));
    width: auto;
    padding: 5px;
  }

  .focus-heading,
  .event-anchor-panel,
  .ai-shortcut-panel,
  .outcome-summary,
  .coach-outcome-summary,
  .coach-weight-goal {
    align-items: stretch;
    flex-direction: column;
  }

  .client-service-mode {
    grid-template-columns: 1fr;
  }

  .weekly-ai-review dl {
    grid-template-columns: 1fr;
  }

  .priority-override-item {
    grid-template-columns: 1fr;
  }

  .priority-override-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .client-focus-identity,
  .account-profile-heading,
  .coach-client-identity {
    width: 100%;
    align-items: center;
  }

  .profile-photo-upload {
    grid-template-columns: 1fr;
    margin-right: -18px;
    margin-left: -18px;
    padding: 16px 18px;
  }

  .profile-photo-upload form {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-photo-controls {
    width: 100%;
  }

  .outcome-next,
  .coach-outcome-summary > div:last-child {
    min-width: 0;
    text-align: left;
  }

  .coach-weight-metrics {
    justify-content: flex-start;
  }

  .focus-score {
    width: 100%;
  }

  .focus-metrics,
  .victory-metrics,
  .achievement-list,
  .fuel-form,
  .injury-fields,
  .injury-detail-grid,
  .race-fuel-inputs,
  .race-target-grid,
  .race-product-equivalents,
  .outcome-status-grid,
  .weight-goal-metrics,
  .probability-grid,
  .daily-mission {
    grid-template-columns: 1fr;
  }

  .daily-strive-tip {
    min-height: 0;
    padding: 15px 17px;
  }

  .race-day-planner {
    margin-right: 0;
    margin-left: 0;
    padding: 14px;
  }

  .race-planner-heading,
  .race-coach-status > div:first-child,
  .race-export-actions,
  .injury-card-heading,
  .active-injury-banner,
  .injury-resolution-notice,
  .injury-list-heading,
  .archived-injury-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .coach-injury-controls {
    grid-template-columns: 1fr;
  }

  .active-injury-banner {
    grid-template-columns: 1fr;
  }

  .injury-banner-status {
    text-align: left;
  }

  .injury-resolution-notice > span {
    text-align: left;
  }

  .guided-empty-state,
  .coach-training-day-request {
    align-items: stretch;
    flex-direction: column;
  }

  .training-day-selector {
    grid-template-columns: 1fr;
  }

  .race-export-controls {
    width: 100%;
    justify-items: stretch;
  }

  .race-export-controls .btn {
    width: 100%;
  }

  .race-export-message {
    max-width: none;
    text-align: left;
  }

  .client-mobile-nav button {
    min-width: 0;
    min-height: 52px;
    padding: 4px 2px;
    font-size: 0.64rem;
    line-height: 1.15;
    white-space: normal;
  }

  .outcome-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .event-anchor-metrics {
    justify-content: flex-start;
  }

  .top-actions .btn {
    flex: 1;
  }

  .subscription-badge {
    justify-content: center;
  }

  .subscription-notice {
    align-items: stretch;
    flex-direction: column;
  }

  .subscription-notice-action,
  .billing-toolbar,
  .payment-plan-summary {
    align-items: stretch;
    flex-direction: column;
  }

  .subscription-notice-action .btn {
    width: 100%;
  }

  .checkout-actions,
  .client-checkout-plans,
  .payment-plan-summary {
    grid-template-columns: 1fr;
  }

  .connected-guidance,
  .prediction-grid {
    grid-template-columns: 1fr;
  }

  .birthday-message {
    align-items: flex-start;
    flex-direction: column;
  }

  .date-of-birth-prompt,
  .date-of-birth-prompt form,
  .upcoming-birthdays,
  .date-of-birth-editor {
    grid-template-columns: 1fr;
  }

  .email-automation-actions,
  .email-automation-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .email-queue-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .email-queue-toolbar .btn {
    width: 100%;
  }

  .email-automation-actions form {
    grid-template-columns: 1fr;
  }

  .checkout-actions {
    display: grid;
  }

  .payment-metrics,
  .subscription-detail-grid,
  .billing-summary-grid,
  .billing-history-grid,
  .cancellation-metrics,
  .settings-grid,
  .assistant-form {
    grid-template-columns: 1fr;
  }

  .billing-action-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .billing-action-row .btn,
  .billing-dialog .btn {
    width: 100%;
  }

  .billing-secure-management {
    align-items: stretch;
    flex-direction: column;
  }

  .billing-secure-management .btn {
    width: 100%;
  }

  .billing-dialog {
    width: calc(100vw - max(20px, env(safe-area-inset-left, 0px)) - max(20px, env(safe-area-inset-right, 0px)));
    max-width: 540px;
    max-height: calc(100dvh - max(20px, env(safe-area-inset-top, 0px)) - max(20px, env(safe-area-inset-bottom, 0px)));
    padding: 18px;
  }

  .status-filters {
    justify-content: flex-start;
  }

  .assistant-message {
    width: 96%;
  }

  .auth-layout {
    min-height: auto;
  }

  .intro-panel {
    min-height: calc(100svh - 80px);
    padding: 34px 24px 28px;
  }

  .intro-panel h2 {
    font-size: 2.75rem;
  }

  .hero-description {
    margin-top: 22px;
    font-size: 0.98rem;
  }

  .feature-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 12px;
    margin-top: 30px;
  }

  .feature-list span {
    min-height: 44px;
    padding-right: 0;
    font-size: 0.66rem;
  }

  .road-graphic {
    right: -35%;
    width: 95vw;
  }

  .auth-card {
    min-height: auto;
    padding: 34px 22px 38px;
  }

  .card,
  .onboarding-card,
  .target-card {
    padding: 18px;
  }

  .dashboard-header,
  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .coach-summary-metrics {
    width: 100%;
  }

  .coach-summary-metrics .metric {
    min-width: 0;
    flex: 1;
  }

  .client-selector-panel {
    grid-template-columns: 1fr;
  }

  .client-selector-panel > div:first-child,
  .client-selector-panel > .tiny {
    grid-column: auto;
  }

  .client-summary-card {
    min-height: 0;
    padding: 18px;
  }

  .membership-settings {
    margin-right: -18px;
    margin-left: -18px;
    padding: 16px 18px;
  }

  .client-header-badges {
    justify-content: flex-start;
  }

  .public-pricing-card ul {
    grid-template-columns: 1fr;
  }

  .ai-suggestions {
    margin-right: -18px;
    margin-left: -18px;
    padding: 18px;
  }

  .ai-suggestions-header {
    align-items: stretch;
    flex-direction: column;
  }

  .ai-header-actions {
    justify-content: flex-start;
  }

  .ai-suggestion-list {
    grid-template-columns: 1fr;
  }

  .client-summary-card .client-card-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .coach-client-danger-zone {
    align-items: stretch;
    flex-direction: column;
    margin-right: -18px;
    margin-left: -18px;
    padding: 18px;
  }

  .client-tabs {
    margin-right: -18px;
    margin-left: -18px;
    padding: 0 8px;
  }

  .client-tab {
    min-width: 88px;
    padding: 0 12px;
  }

  .profile-details {
    grid-template-columns: 1fr;
  }

  .section-heading-row,
  .attention-alert,
  .current-phase-banner,
  .coach-goal-summary {
    align-items: stretch;
    flex-direction: column;
  }

  .coach-phase-summary {
    min-width: 0;
    text-align: left;
  }

  .phase-recommendation {
    justify-content: flex-start;
  }

  .compact-metric {
    width: 100%;
    min-width: 0;
  }

  .life-event-form,
  .goal-event-form,
  .progress-form,
  .progress-visuals,
  .coach-progress-visuals {
    grid-template-columns: 1fr;
  }

  .choice-row,
  .latest-check-in-grid {
    grid-template-columns: 1fr;
  }

  .latest-check-in-header {
    align-items: stretch;
    flex-direction: column;
  }

  .support-request-alert,
  .support-resolved-message,
  .coach-support-request,
  .coach-alert,
  .strive-score-panel,
  .event-header-actions {
    align-items: stretch;
    flex-direction: column;
  }

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

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .readiness-score {
    width: 100%;
  }

  .support-status-actions .record-action {
    width: 100%;
  }

  .coach-communication-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .coach-progress-visuals .chart-panel:last-child {
    grid-column: auto;
  }

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

  .record-value,
  .record-action,
  .record-actions {
    grid-column: 2;
    justify-self: start;
    text-align: left;
  }

  .record-main strong,
  .record-main span {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }

  .client-traffic-list button > span:not(.traffic-light) {
    overflow-wrap: anywhere;
  }

  .life-event-edit-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .progress-record {
    grid-template-columns: 1fr;
  }

  .progress-score-summary {
    justify-content: flex-start;
  }

  .goal-event-header {
    flex-direction: column;
  }

  .phase-timeline {
    grid-template-columns: 1fr;
  }

  .phase-item {
    min-height: 0;
    padding-bottom: 20px;
  }

  .form-grid,
  .macro-row,
  .week-grid,
  .planner-grid,
  .coach-metrics,
  .mini-week {
    grid-template-columns: 1fr;
  }

  .email-table-wrap,
  .billing-table-wrap,
  .client-tabs,
  .weight-phase-list {
    scrollbar-width: thin;
  }

  .bar-chart {
    gap: 3px;
    height: 160px;
  }

  .chart-panel {
    padding: 14px 10px 18px;
  }

  .chart-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}

@media (max-width: 380px) {
  .app-shell {
    padding-right: max(10px, env(safe-area-inset-right, 0px));
    padding-left: max(10px, env(safe-area-inset-left, 0px));
  }

  .brand-logo {
    height: 46px;
    max-width: 150px;
  }

  .intro-panel {
    min-height: auto;
    padding: 30px 18px 24px;
  }

  .intro-panel h2 {
    font-size: 2.25rem;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  .auth-card,
  .card,
  .onboarding-card,
  .target-card,
  .client-summary-card {
    padding: 16px;
  }

  .profile-photo-upload,
  .membership-settings,
  .ai-suggestions,
  .coach-client-danger-zone {
    margin-right: -16px;
    margin-left: -16px;
  }

  .client-tabs {
    margin-right: -16px;
    margin-left: -16px;
  }

  .business-dashboard,
  .focus-metrics,
  .briefing-signals {
    grid-template-columns: 1fr;
  }

  .button-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button-row .btn,
  .top-actions .btn {
    width: 100%;
  }

  .client-mobile-nav button {
    font-size: 0.6rem;
  }

  .profile-avatar-large {
    width: 56px;
    height: 56px;
  }

  .score-row {
    grid-template-columns: 60px minmax(0, 1fr) 22px;
    gap: 7px;
  }
}

.whats-new-modal-backdrop {
  position: fixed;
  z-index: 1200;
  inset: 0;
  display: grid;
  padding: max(18px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  place-items: center;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.82);
}

.whats-new-modal {
  width: min(100%, 620px);
  max-height: min(820px, calc(100svh - 36px));
  padding: clamp(22px, 5vw, 36px);
  overflow-y: auto;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid #454545;
  border-top: 4px solid var(--brand);
  border-radius: var(--card-radius);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.62);
}

.whats-new-modal-header,
.app-update-heading,
.update-admin-actions,
.brand-design-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.whats-new-modal h2 {
  margin: 5px 0 0;
  font-size: clamp(1.55rem, 5vw, 2.3rem);
}

.update-category,
.update-version-badge {
  display: inline-flex;
  min-height: 30px;
  padding: 6px 9px;
  align-items: center;
  color: #000000;
  background: var(--brand);
  border-radius: var(--control-radius);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.update-release-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin: 16px 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.update-release-meta strong {
  color: var(--accent);
}

.update-bullet-list {
  display: grid;
  gap: 9px;
  margin: 18px 0 0;
  padding-left: 20px;
  color: #e2e2e2;
  line-height: 1.55;
}

.update-bullet-list li::marker,
.coming-soon-roadmap li::marker {
  color: var(--brand);
}

.whats-new-section,
.whats-new-admin {
  scroll-margin-top: 20px;
}

.app-update-card {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.app-update-card.featured {
  padding-top: 6px;
}

.app-update-card:last-child {
  border-bottom: 0;
}

.app-update-card h4 {
  margin: 8px 0 0;
  color: var(--accent);
  font-size: 1.08rem;
}

.app-update-card.archived {
  opacity: 0.7;
}

.update-history {
  margin-top: 16px;
  border-top: 1px solid var(--line);
}

.update-history summary {
  min-height: 44px;
  padding: 16px 0;
  color: var(--brand);
  cursor: pointer;
  font-weight: 900;
}

.coming-soon-roadmap {
  margin-top: 18px;
  padding: 18px;
  background: #0b0b0b;
  border-left: 3px solid var(--brand);
  border-radius: var(--control-radius);
}

.coming-soon-roadmap ul {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding-left: 20px;
}

.whats-new-admin-layout,
.brand-design-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(340px, 1.1fr);
  gap: 24px;
  margin-top: 20px;
}

.update-editor,
.brand-control-groups {
  min-width: 0;
}

.admin-update-list {
  min-width: 0;
  max-height: 780px;
  padding-right: 8px;
  overflow-y: auto;
}

.update-active-option {
  align-self: end;
  min-height: 48px;
  margin: 0;
}

.update-admin-actions {
  align-items: center;
  margin-top: 14px;
}

.update-admin-actions > span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.danger-action {
  color: #ff9f86;
}

.brand-design-settings {
  grid-column: 1 / -1;
}

.brand-control-groups {
  display: grid;
  gap: 14px;
}

.brand-control-group {
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
}

.brand-control-group legend {
  padding: 0 7px;
  color: var(--accent);
  font-family: var(--heading-font);
  font-weight: 700;
}

.brand-reviews-settings {
  display: grid;
  gap: 14px;
}

.google-review-toggle {
  min-height: 48px;
}

#brandReviewsPreview .google-reviews-badge {
  grid-template-columns: 34px minmax(0, 1fr);
  margin: 0;
}

#brandReviewsPreview .google-reviews-badge > a {
  grid-column: 1 / -1;
  padding-left: 44px;
}

.brand-logo-control {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}

.brand-logo-preview-frame {
  display: grid;
  min-height: 90px;
  padding: 10px;
  place-items: center;
  background: #000000;
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
}

.brand-logo-preview-frame img {
  width: 100%;
  max-height: 70px;
  object-fit: contain;
}

#brandLogoInput {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.brand-logo-control small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

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

.brand-color-control {
  display: grid;
  gap: 7px;
  padding: 10px;
  background: #0b0b0b;
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  text-transform: none;
}

.brand-color-input {
  display: flex;
  align-items: center;
  gap: 9px;
}

.brand-color-input input {
  width: 44px;
  min-height: 44px;
  padding: 2px;
}

.brand-color-input output {
  color: var(--muted);
  font-size: 0.72rem;
}

.brand-live-preview {
  position: sticky;
  top: 20px;
  align-self: start;
}

.brand-preview-card {
  display: grid;
  gap: 14px;
  margin-top: 12px;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 4px solid var(--brand);
  border-radius: var(--card-radius);
}

.brand-preview-card img {
  width: min(100%, 180px);
  max-height: 80px;
  object-fit: contain;
}

.brand-preview-card h3,
.brand-preview-card p {
  margin: 0;
}

.brand-design-actions {
  align-items: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

.brand-save-indicator {
  color: var(--muted);
  font-size: 0.72rem;
}

@media (max-width: 900px) {
  .whats-new-admin-layout,
  .brand-design-layout {
    grid-template-columns: 1fr;
  }

  .brand-live-preview {
    position: static;
  }

  .admin-update-list {
    max-height: none;
    padding-right: 0;
  }
}

@media (max-width: 600px) {
  .whats-new-modal-header,
  .app-update-heading,
  .update-admin-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .whats-new-modal .button-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .whats-new-modal .btn {
    width: 100%;
  }

  .brand-logo-control,
  .brand-color-grid {
    grid-template-columns: 1fr;
  }

  .google-reviews-badge {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .google-reviews-badge > a {
    grid-column: 1 / -1;
    padding-left: 44px;
  }
}

[hidden] {
  display: none !important;
}

.cycle-settings,
.cycle-timeline-card,
.coach-cycle-panel {
  border-top: 3px solid var(--brand);
}

.sensitive-data-badge,
.cycle-training-label {
  display: inline-flex;
  min-height: 30px;
  padding: 6px 9px;
  align-items: center;
  color: #000000;
  background: var(--brand);
  border-radius: var(--control-radius);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.cycle-toggle {
  display: flex;
  min-height: 62px;
  margin-top: 18px;
  padding: 14px;
  align-items: center;
  gap: 12px;
  background: #0b0b0b;
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  text-transform: none;
}

.cycle-toggle input {
  width: 22px;
  min-height: 22px;
  flex: 0 0 auto;
  accent-color: var(--brand);
}

.cycle-toggle span {
  display: grid;
  gap: 4px;
}

.cycle-toggle strong {
  color: var(--accent);
}

.cycle-toggle small {
  color: var(--muted);
  font-weight: 500;
}

.cycle-settings-fields {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

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

.cycle-symptom-grid .check-option {
  min-height: 44px;
}

.cycle-disclaimer {
  margin: 14px 0 0;
  color: #a9a9a9;
  font-size: 0.76rem;
  line-height: 1.5;
}

.cycle-visual-timeline {
  display: flex;
  min-height: 68px;
  margin: 20px 0;
  overflow: hidden;
  background: #080808;
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
}

.cycle-phase-segment {
  display: flex;
  min-width: 48px;
  padding: 10px 5px;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  color: #8d8d8d;
  background: #171717;
  border-right: 1px solid #353535;
  text-align: center;
}

.cycle-phase-segment:last-child {
  border-right: 0;
}

.cycle-phase-segment.active {
  color: #000000;
  background: var(--brand);
}

.cycle-phase-segment span {
  font-size: 0.68rem;
  font-weight: 900;
}

.cycle-phase-segment small {
  font-size: 0.62rem;
}

.cycle-guidance-grid,
.coach-cycle-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.cycle-guidance-grid article,
.coach-cycle-summary > div {
  padding: 15px;
  background: #0c0c0c;
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
}

.cycle-guidance-grid span,
.coach-cycle-summary span {
  color: var(--brand);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.cycle-guidance-grid p,
.coach-cycle-summary strong {
  display: block;
  margin: 8px 0 0;
  color: #dddddd;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.55;
}

.cycle-phase-info {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.cycle-phase-info details {
  padding: 10px;
  background: #111111;
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
}

.cycle-phase-info summary {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--accent);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 800;
  list-style: none;
}

.cycle-phase-info summary::-webkit-details-marker {
  display: none;
}

.cycle-info-icon {
  display: inline-grid;
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  place-items: center;
  color: #000000;
  background: var(--brand);
  border-radius: 50%;
  font-weight: 900;
}

.cycle-phase-info ul {
  display: grid;
  gap: 7px;
  margin: 9px 0 0;
  padding-left: 17px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.cycle-phase-info li::marker {
  color: var(--brand);
}

.cycle-symptom-summary,
.cycle-context-note,
.cycle-score-context {
  margin-top: 13px;
  padding: 12px 14px;
  color: #d9d9d9;
  background: #17150a;
  border-left: 3px solid var(--brand);
  border-radius: var(--control-radius);
  font-size: 0.78rem;
  line-height: 1.5;
}

.cycle-symptom-summary {
  display: grid;
  gap: 4px;
}

.cycle-symptom-summary strong {
  color: var(--brand);
}

.coach-cycle-panel {
  margin: 18px 0;
  padding: 20px;
  background: #101010;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-radius: var(--card-radius);
}

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

.coach-cycle-notes {
  margin-top: 16px;
}

@media (max-width: 760px) {
  .cycle-phase-info,
  .coach-cycle-summary {
    grid-template-columns: 1fr 1fr;
  }

  .cycle-guidance-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .cycle-symptom-grid,
  .cycle-phase-info,
  .coach-cycle-summary {
    grid-template-columns: 1fr;
  }

  .cycle-visual-timeline {
    overflow-x: auto;
  }

  .cycle-phase-segment {
    flex-basis: 82px !important;
    flex-grow: 0 !important;
  }
}

.pwa-install-prompt {
  position: fixed;
  z-index: 1500;
  right: max(18px, env(safe-area-inset-right, 0px));
  bottom: max(18px, env(safe-area-inset-bottom, 0px));
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  width: min(620px, calc(100vw - 36px));
  padding: 14px;
  align-items: center;
  gap: 14px;
  color: #ffffff;
  background: rgba(17, 17, 17, 0.98);
  border: 1px solid #3d3d3d;
  border-top: 3px solid var(--brand);
  border-radius: var(--card-radius);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(14px);
}

.pwa-install-prompt > img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 10px;
}

.pwa-install-copy {
  display: grid;
  gap: 4px;
}

.pwa-install-copy strong {
  font-family: var(--heading-font);
  font-size: 0.93rem;
}

.pwa-install-copy span {
  color: #b8b8b8;
  font-size: 0.76rem;
  line-height: 1.4;
}

.pwa-install-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pwa-install-button,
.pwa-install-dismiss {
  min-height: 44px;
  padding: 10px 14px;
  border-radius: var(--control-radius);
  font-weight: 700;
}

.pwa-install-button {
  color: #000000;
  background: var(--brand);
}

.pwa-install-dismiss {
  color: #d6d6d6;
  background: transparent;
  border: 1px solid #444444;
}

@media (max-width: 640px) {
  .pwa-install-prompt {
    right: max(10px, env(safe-area-inset-right, 0px));
    bottom: max(10px, env(safe-area-inset-bottom, 0px));
    left: max(10px, env(safe-area-inset-left, 0px));
    grid-template-columns: 46px minmax(0, 1fr);
    width: auto;
    padding: 12px;
  }

  .pwa-client-context .pwa-install-prompt {
    bottom: calc(82px + env(safe-area-inset-bottom, 0px));
  }

  .pwa-install-prompt > img {
    width: 46px;
    height: 46px;
  }

  .pwa-install-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pwa-install-prompt {
    scroll-behavior: auto;
  }
}

@media (max-width: 720px) {
  .progress-photo-upload-grid,
  .progress-photo-thumbnails {
    grid-template-columns: repeat(3, minmax(86px, 1fr));
    gap: 8px;
  }

  .progress-photo-submit-row,
  .progress-photo-set-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .progress-photo-submit-row .btn {
    width: 100%;
  }

  .coach-photo-review-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .coach-photo-review-form .button-row {
    grid-column: auto;
  }

  .progress-review-toolbar {
    grid-template-columns: minmax(0, 1fr);
  }

  .archived-review-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .photo-review-history article {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 430px) {
  .progress-photo-upload-grid,
  .progress-photo-thumbnails {
    grid-template-columns: minmax(0, 1fr);
  }

  .progress-photo-preview,
  .progress-photo-thumbnails a {
    aspect-ratio: 4 / 3;
  }

  .progress-photo-set,
  .coach-progress-photos {
    padding: 14px;
  }
}

@media (max-width: 980px) {
  .strive-help {
    right: max(14px, env(safe-area-inset-right, 0px));
    bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 480px) {
  .strive-help-launcher {
    width: 48px;
    padding: 0;
    justify-content: center;
  }

  .strive-help-launcher strong {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .strive-help-panel {
    max-height: calc(100svh - 180px);
  }

  .strive-help-form > div {
    grid-template-columns: minmax(0, 1fr);
  }

  .strive-help-form .btn,
  .strive-help-response .btn {
    width: 100%;
  }
}

.app-loading-state {
  display: grid;
  width: min(100%, 760px);
  min-height: 360px;
  margin: 8vh auto 0;
  padding: clamp(26px, 6vw, 48px);
  align-content: center;
  gap: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 4px solid var(--brand);
  border-radius: var(--card-radius);
}

.app-loading-state h2 {
  margin: 0 0 8px;
}

.loading-mark {
  width: 42px;
  height: 42px;
  border: 4px solid #363636;
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: strive-loading-spin 850ms linear infinite;
}

.loading-skeleton {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr;
  gap: 10px;
}

.loading-skeleton span {
  height: 58px;
  background: linear-gradient(90deg, #171717, #242424, #171717);
  background-size: 220% 100%;
  border-radius: var(--control-radius);
  animation: strive-loading-pulse 1.4s ease infinite;
}

@keyframes strive-loading-spin {
  to { transform: rotate(360deg); }
}

@keyframes strive-loading-pulse {
  to { background-position: -220% 0; }
}

.onboarding-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 24px;
}

.onboarding-steps span {
  display: flex;
  min-height: 44px;
  padding: 8px;
  align-items: center;
  gap: 8px;
  color: #777777;
  border-bottom: 2px solid #303030;
  font-size: 0.7rem;
  font-weight: 800;
}

.onboarding-steps strong {
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  place-items: center;
  color: #9a9a9a;
  background: #242424;
  border-radius: 50%;
}

.onboarding-steps span.active,
.onboarding-steps span.complete {
  color: var(--accent);
  border-bottom-color: var(--brand);
}

.onboarding-steps span.active strong,
.onboarding-steps span.complete strong {
  color: #000000;
  background: var(--brand);
}

.onboarding-step-count {
  display: none;
}

.onboarding-heading {
  max-width: 660px;
}

.dashboard-disclosure {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.dashboard-disclosure > summary {
  display: flex;
  min-height: 70px;
  padding: 14px 4px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--accent);
  cursor: pointer;
  list-style: none;
}

.dashboard-disclosure > summary::-webkit-details-marker {
  display: none;
}

.dashboard-disclosure > summary::after {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  color: #000000;
  background: var(--brand);
  border-radius: 50%;
  content: "+";
  font-size: 1.15rem;
  font-weight: 900;
}

.dashboard-disclosure[open] > summary::after {
  content: "−";
}

.dashboard-disclosure > summary > span {
  display: grid;
  gap: 4px;
}

.dashboard-disclosure > summary strong {
  font-family: var(--heading-font);
  font-size: 0.94rem;
}

.dashboard-disclosure > summary small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
}

.dashboard-disclosure-content {
  padding: 0 0 18px;
}

.dashboard-disclosure-content > :first-child {
  margin-top: 0;
}

.dashboard-disclosure-content > .card,
.dashboard-disclosure-content > .dashboard-section,
.dashboard-disclosure-content > .race-predictor,
.dashboard-disclosure-content > .meal-builder {
  box-shadow: none;
}

.settings-disclosure-list {
  display: grid;
  gap: 4px;
  margin-top: 18px;
}

.settings-disclosure-list .dashboard-disclosure {
  margin-top: 0;
}

.settings-disclosure-list .brand-design-settings,
.settings-disclosure-list .email-automations,
.settings-disclosure-list .stripe-settings,
.settings-disclosure-list .whats-new-admin {
  margin-top: 0;
}

.empty-inline,
.empty-tab-state,
.assistant-empty,
.race-plan-empty {
  min-height: 112px;
  padding: 24px;
  align-content: center;
  background: #0c0c0c;
  border: 1px dashed #3a3a3a;
  border-radius: var(--control-radius);
  text-align: center;
}

.empty-inline p,
.empty-tab-state p,
.assistant-empty,
.race-plan-empty p {
  margin: 0;
}

.save-feedback,
.coach-client-delete-feedback,
.profile-photo-status {
  border-radius: var(--control-radius);
}

@media (min-width: 981px) {
  .client-dashboard-shell {
    padding-top: 70px;
    padding-bottom: 0;
  }

  .client-mobile-nav {
    position: absolute;
    top: 96px;
    right: max(18px, calc((100vw - 1240px) / 2));
    bottom: auto;
    left: max(18px, calc((100vw - 1240px) / 2));
    width: auto;
    max-width: 1240px;
    grid-template-columns: repeat(6, minmax(100px, 1fr));
    background: #0d0d0d;
    box-shadow: none;
  }

  .client-mobile-nav button {
    min-height: 44px;
  }

  .client-selector-panel {
    position: sticky;
    top: 104px;
    max-height: calc(100vh - 124px);
    overflow-y: auto;
  }

  .client-selector-panel .field:has(#coachClientSelect) {
    display: none;
  }
}

@media (max-width: 980px) {
  .coach-admin-sidebar {
    max-height: calc(100svh - 150px);
    overflow-y: auto;
  }

  .client-selector-panel .client-traffic-list {
    display: none;
  }

  .coach-mobile-menu {
    position: sticky;
    z-index: 15;
    top: max(8px, env(safe-area-inset-top, 0px));
    backdrop-filter: blur(12px);
  }
}

@media (max-width: 640px) {
  .onboarding-steps {
    gap: 3px;
  }

  .onboarding-steps span {
    padding: 5px 2px;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    font-size: 0.58rem;
    text-align: center;
  }

  .dashboard-disclosure > summary {
    min-height: 62px;
  }

  .dashboard-disclosure-content {
    padding-bottom: 12px;
  }

  .loading-skeleton {
    grid-template-columns: 1fr;
  }

  .client-mobile-nav {
    overflow-x: auto;
    grid-template-columns: repeat(6, minmax(64px, 1fr));
    scrollbar-width: none;
  }

  .client-mobile-nav::-webkit-scrollbar {
    display: none;
  }

  .client-mobile-nav button {
    min-width: 64px;
  }

  .card,
  .target-card,
  .onboarding-card,
  .client-summary-card {
    padding: 18px;
  }

  .section-heading-row {
    gap: 10px;
  }

  .checkout-return-state {
    align-items: stretch;
    flex-direction: column;
  }

  .checkout-return-state .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-energy-lines-active,
  .hero-energy-lines-active span,
  .loading-mark,
  .loading-skeleton span {
    animation: none;
  }

  .hero-energy-lines-active {
    opacity: 0.14;
    filter: none;
    transform: rotate(5deg);
  }
}

.meal-builder,
.race-predictor,
.review-reminder-card,
.coach-engagement-tools {
  border-top: 3px solid var(--brand);
}

.meal-note-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.meal-note-options .check-option {
  min-height: 44px;
}

.generated-tool-card {
  margin-top: 18px;
  padding: 18px;
  background: #0b0b0b;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
}

.generated-tool-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.generated-tool-heading span,
.tool-status {
  color: var(--brand);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.generated-tool-heading h4 {
  margin: 5px 0 0;
  color: var(--accent);
  font-size: 1.08rem;
}

.tool-status {
  padding: 6px 8px;
  color: #000000;
  background: var(--brand);
  border-radius: var(--control-radius);
}

.meal-macro-grid,
.prediction-output-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 15px;
}

.meal-macro-grid span,
.prediction-output-grid > div {
  padding: 11px;
  color: var(--muted);
  background: #171717;
  border-radius: var(--control-radius);
  font-size: 0.7rem;
}

.meal-macro-grid strong,
.prediction-output-grid strong {
  display: block;
  margin-bottom: 3px;
  color: var(--accent);
  font-size: 0.96rem;
}

.generated-tool-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 16px;
}

.generated-tool-columns > div > strong {
  color: var(--brand);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.generated-tool-columns ul,
.generated-tool-columns ol {
  display: grid;
  gap: 7px;
  padding-left: 20px;
  color: #d4d4d4;
  font-size: 0.78rem;
  line-height: 1.5;
}

.saved-meal-ideas,
.saved-race-predictions {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.tool-disclaimer {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.5;
}

.coach-tool-note {
  padding: 11px;
  background: #17150a;
  border-left: 3px solid var(--brand);
}

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

.review-reminder-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
}

.review-reminder-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.review-reminder-content h3,
.review-reminder-content p {
  margin: 0 0 6px;
}

.review-reminder-content .google-review-stars {
  font-size: 1.1rem;
  white-space: nowrap;
}

.review-confirmation {
  grid-column: 1 / -1;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.coach-engagement-tools {
  margin: 18px 0;
  padding: 20px;
  background: #101010;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-radius: var(--card-radius);
}

.coach-tool-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.coach-tool-item {
  display: grid;
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.coach-tool-item > div {
  display: grid;
  gap: 3px;
}

.coach-tool-item > div > strong {
  color: var(--accent);
}

.coach-tool-item > div > span {
  color: var(--muted);
  font-size: 0.7rem;
}

.coach-review-status {
  display: flex;
  margin-top: 18px;
  padding: 14px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: #0b0b0b;
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
}

.coach-review-status > div {
  display: grid;
  gap: 3px;
}

.coach-review-status span {
  color: var(--muted);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.coach-review-status strong {
  color: var(--brand);
}

@media (max-width: 760px) {
  .meal-note-options,
  .meal-macro-grid,
  .coach-tool-grid {
    grid-template-columns: 1fr 1fr;
  }

  .generated-tool-columns,
  .review-reminder-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .meal-note-options,
  .meal-macro-grid,
  .prediction-output-grid,
  .coach-tool-grid {
    grid-template-columns: 1fr;
  }

  .generated-tool-heading,
  .review-reminder-content,
  .coach-review-status {
    align-items: stretch;
    flex-direction: column;
  }

  .review-reminder-card > .btn,
  .coach-review-status .btn {
    width: 100%;
  }
}
