:root {
  --font-sf-text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --font-sf-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  --bg: #f3f1ea;
  --bg-soft: #faf8f3;
  --surface: rgba(255, 253, 248, 0.94);
  --surface-soft: #f6f3ed;
  --surface-muted: #f2efe8;
  --ink: #182127;
  --ink-soft: #667178;
  --line: rgba(24, 33, 39, 0.1);
  --line-strong: rgba(24, 33, 39, 0.18);
  --moss: #556b5d;
  --moss-soft: #e8efe9;
  --slate: #6c7d88;
  --slate-soft: #e9eef1;
  --accent: var(--moss);
  --accent-soft: var(--moss-soft);
  --accent-glow: rgba(85, 107, 93, 0.14);
  --signal: #c97b52;
  --success: #2f7a5a;
  --success-soft: #e8f3ee;
  --warn: var(--signal);
  --warn-soft: #f7ece5;
  --shadow: 0 18px 50px rgba(24, 33, 39, 0.08);
  --shadow-soft: 0 10px 24px rgba(24, 33, 39, 0.04);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: var(--font-sf-text);
  color: var(--ink);
  background:
    radial-gradient(circle at 0% 0%, rgba(108, 125, 136, 0.08), transparent 22%),
    radial-gradient(circle at 100% 0%, rgba(85, 107, 93, 0.07), transparent 18%),
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(24, 33, 39, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 33, 39, 0.018) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 85%);
  opacity: 0.35;
}

.app-body::after {
  content: "";
  position: fixed;
  inset: auto -8rem -10rem auto;
  width: 26rem;
  height: 26rem;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(85, 107, 93, 0.12), transparent 68%);
  filter: blur(18px);
  opacity: 0.85;
}

a {
  color: inherit;
  text-decoration: none;
  touch-action: manipulation;
}

button {
  font: inherit;
  touch-action: manipulation;
}

.app-body {
  min-height: 100vh;
}

.app-page-shell {
  width: min(calc(100% - 2rem), 1320px);
  margin-inline: auto;
  padding: 1rem 0 6.5rem;
  position: relative;
}

.app-page-shell::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 22rem;
  pointer-events: none;
  background:
    radial-gradient(circle at 8% 12%, rgba(108, 125, 136, 0.12), transparent 30%),
    radial-gradient(circle at 88% 18%, rgba(85, 107, 93, 0.1), transparent 26%);
  opacity: 0.9;
}

.app-topbar-simple,
.app-topbar-actions,
.surface-head,
.mini-stat-row,
.simple-row,
.simple-table-head,
.simple-table-row,
.exercise-line,
.progress-item {
  display: flex;
  gap: 1rem;
}

.app-topbar-simple,
.surface-head,
.simple-row,
.simple-table-head,
.simple-table-row,
.exercise-line,
.progress-item {
  justify-content: space-between;
}

.app-topbar-simple {
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 0.9rem 0 1rem;
  margin-bottom: 0.8rem;
  border-bottom: 1px solid rgba(24, 33, 39, 0.08);
  background: rgba(250, 248, 243, 0.86);
  backdrop-filter: blur(20px);
}

.app-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.app-logo-mark {
  display: grid;
  place-items: center;
  width: 2.4rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--moss), var(--ink));
  color: #fff;
  font-weight: 700;
  box-shadow: 0 12px 28px var(--accent-glow);
}

.app-logo-copy {
  display: grid;
  gap: 0.1rem;
}

.app-logo-copy strong {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.app-logo-copy small {
  color: var(--ink-soft);
}

.app-topbar-actions {
  align-items: center;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.app-link-button,
.app-solid-button,
.section-tabs a,
.mobile-tabbar a,
.day-chip {
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease,
    transform 150ms ease, box-shadow 150ms ease;
}

.app-link-button,
.app-solid-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0 1rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
}

.app-link-button {
  background: rgba(255, 253, 248, 0.76);
  color: var(--ink);
}

.app-solid-button {
  background: linear-gradient(135deg, var(--moss), #46584d);
  border-color: rgba(70, 88, 77, 0.94);
  color: #fff;
  box-shadow: 0 14px 28px rgba(85, 107, 93, 0.18);
}

.app-link-button:hover,
.app-link-button:focus-visible,
.app-solid-button:hover,
.app-solid-button:focus-visible,
.section-tabs a:hover,
.section-tabs a:focus-visible,
.mobile-tabbar a:hover,
.mobile-tabbar a:focus-visible {
  transform: translateY(-1px);
}

.app-link-button:hover,
.app-link-button:focus-visible {
  border-color: var(--line-strong);
  background: var(--surface);
  box-shadow: 0 6px 18px rgba(24, 33, 39, 0.05);
}

.app-solid-button:hover,
.app-solid-button:focus-visible {
  background: linear-gradient(135deg, #4b5d50, #3f4f46);
  border-color: #3f4f46;
}

.wide {
  width: 100%;
}

.page-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 1.4rem;
  align-items: end;
  padding: 2rem 0 1.8rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius-xl) + 4px);
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.92), rgba(242, 239, 232, 0.84)),
    radial-gradient(circle at 100% 0%, rgba(108, 125, 136, 0.12), transparent 34%);
  box-shadow: var(--shadow-soft);
  padding-inline: 1.4rem;
  position: relative;
  overflow: hidden;
}

.section-label,
.surface-label,
.surface-note,
.simple-table-head {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-label,
.surface-label {
  margin: 0 0 0.7rem;
  color: var(--ink-soft);
}

.page-intro h1,
.surface-head h2,
.large-number {
  margin: 0;
}

.page-intro h1 {
  font-size: clamp(2.5rem, 5vw, 4.3rem);
  line-height: 0.94;
  letter-spacing: -0.03em;
  text-wrap: balance;
  max-width: 12ch;
}

.page-intro::before {
  content: "";
  position: absolute;
  inset: auto -2rem -4rem auto;
  width: 16rem;
  height: 16rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(85, 107, 93, 0.12), transparent 70%);
  pointer-events: none;
}

.surface-head h2 {
  text-wrap: balance;
}

.section-copy,
.surface-copy,
.task-item p,
.simple-row p,
.exercise-line p,
.message-note p,
.food-note p,
.food-note small {
  color: var(--ink-soft);
  line-height: 1.65;
}

.section-copy {
  max-width: 35rem;
  margin: 1rem 0 0;
  font-size: 1.02rem;
}

.mini-stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.trainer-stat-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mini-stat {
  padding: 1rem 1rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.92), rgba(242, 239, 232, 0.84));
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.mini-stat::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0.24rem;
  background: linear-gradient(180deg, rgba(85, 107, 93, 0.8), rgba(108, 125, 136, 0.25));
}

.mini-stat:nth-child(2)::before {
  background: linear-gradient(180deg, rgba(108, 125, 136, 0.78), rgba(108, 125, 136, 0.18));
}

.mini-stat:nth-child(3)::before,
.mini-stat:nth-child(4)::before {
  background: linear-gradient(180deg, rgba(201, 123, 82, 0.72), rgba(201, 123, 82, 0.18));
}

.mini-stat strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 1.55rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.mini-stat span {
  color: var(--ink-soft);
}

.section-tabs {
  display: inline-flex;
  gap: 0.4rem;
  margin: 1.3rem 0 1.7rem;
  padding: 0.3rem;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.78);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px rgba(24, 33, 39, 0.04);
  position: sticky;
  top: 1rem;
  z-index: 12;
}

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

.section-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0 0.95rem;
  border-radius: 999px;
  color: var(--ink-soft);
  font-weight: 600;
}

.section-tabs a.active {
  background: linear-gradient(135deg, var(--moss), #46534b);
  color: #fff;
  box-shadow: none;
}

.is-hidden-panel {
  display: none !important;
}

.panel-enter {
  animation: panel-enter 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.detail-refresh {
  animation: panel-enter 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.app-grid.single-visible-child {
  grid-template-columns: 1fr;
}

.app-grid {
  display: grid;
  gap: 1.15rem;
}

.app-grid-trainer {
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.75fr);
}

.app-grid-client {
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.75fr);
}

.app-grid-trainer-calendar {
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.78fr);
}

.app-grid-trainer-summary,
.app-grid-trainer-support {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1rem;
}

.app-grid-client-support {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1rem;
}

.app-grid-builder {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
}

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

.surface {
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
  position: relative;
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.surface::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.45), transparent 28%);
  opacity: 0.9;
}

.surface:hover {
  transform: translateY(-1px);
  border-color: rgba(24, 33, 39, 0.14);
  box-shadow: 0 16px 34px rgba(24, 33, 39, 0.06);
}

.surface-head-side {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.surface-head {
  align-items: start;
  margin-bottom: 1.1rem;
}

.surface-head h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  line-height: 1.08;
}

.surface-note {
  color: var(--ink-soft);
}

.task-stack,
.simple-list,
.plain-list,
.exercise-stack-min,
.progress-list,
.planning-stack,
.video-list,
.ai-log,
.detail-list,
.message-stack {
  display: grid;
  gap: 0.8rem;
}

.task-item,
.simple-row,
.simple-table-head,
.simple-table-row,
.exercise-line,
.food-note,
.message-note,
.plan-card,
.video-item,
.ai-row {
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
}

.task-item:last-child,
.simple-row:last-child,
.simple-table-row:last-child,
.exercise-line:last-child,
.progress-item:last-child,
.plan-card:last-child,
.video-item:last-child,
.ai-row:last-child {
  border-bottom: 0;
}

.task-item strong,
.simple-row strong,
.food-note strong,
.exercise-line strong,
.plan-card strong,
.video-item strong,
.ai-row strong,
.ai-tip strong,
.ai-note-card strong {
  display: block;
  margin-bottom: 0.2rem;
}

.large-number {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.plain-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.plain-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.plain-list li:last-child {
  border-bottom: 0;
}

.plain-list span {
  color: var(--ink-soft);
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.55rem;
  min-width: 46rem;
}

.calendar-weekdays {
  margin-bottom: 0.75rem;
}

.calendar-weekdays span {
  padding: 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.calendar-empty,
.calendar-cell {
  min-height: 7rem;
  border-radius: var(--radius-lg);
}

.surface-calendar {
  overflow-x: auto;
}

.calendar-empty {
  background: linear-gradient(180deg, rgba(233, 238, 241, 0.8), rgba(242, 239, 232, 0.7));
}

.calendar-cell {
  display: grid;
  align-content: space-between;
  gap: 0.55rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(246, 243, 237, 0.94));
  cursor: pointer;
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease,
    background-color 160ms ease;
}

.calendar-cell.has-data {
  background: linear-gradient(180deg, #ffffff, rgba(248, 245, 239, 0.96));
}

.calendar-cell.active {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent), 0 14px 28px var(--accent-glow);
  background: linear-gradient(180deg, rgba(232, 239, 233, 0.92), rgba(255, 253, 248, 0.96));
}

.calendar-cell:hover,
.calendar-cell:focus-visible {
  transform: translateY(-1px);
}

.calendar-day-number {
  font-size: 1rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.calendar-cell.active .calendar-day-number {
  color: var(--moss);
}

.calendar-cell-meta {
  display: grid;
  gap: 0.2rem;
}

.calendar-cell-meta small {
  color: var(--ink-soft);
  line-height: 1.35;
}

.surface-detail .detail-actions {
  margin-top: 1rem;
}

.detail-block {
  padding-top: 0.95rem;
  border-top: 1px solid var(--line);
}

.detail-block + .detail-block {
  margin-top: 1rem;
}

.detail-block strong {
  display: block;
  margin-bottom: 0.55rem;
}

.detail-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.detail-list li {
  padding: 0.72rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  line-height: 1.5;
}

.detail-list li:last-child {
  border-bottom: 0;
}

.detail-actions {
  display: grid;
  gap: 0.7rem;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin-bottom: 1rem;
}

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

.metric-tile {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.94), rgba(242, 239, 232, 0.84));
  position: relative;
  overflow: hidden;
}

.metric-tile::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 0.28rem;
  background: linear-gradient(90deg, var(--moss), rgba(108, 125, 136, 0.6));
  opacity: 0.75;
}

.metric-tile:nth-child(2n)::before {
  background: linear-gradient(90deg, var(--slate), rgba(85, 107, 93, 0.55));
}

.metric-tile strong {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 1.5rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.metric-tile span {
  color: var(--ink-soft);
  line-height: 1.5;
}

.plan-card p,
.video-item p,
.ai-row p {
  color: var(--ink-soft);
  line-height: 1.6;
}

.video-item,
.ai-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}

.video-item span {
  color: var(--ink-soft);
  white-space: nowrap;
}

.compact-video-list .video-item {
  padding: 0.8rem 0;
}

.video-actions {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
}

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

.draft-group {
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.92), rgba(232, 239, 233, 0.6));
}

.draft-title {
  display: block;
  margin-bottom: 0.7rem;
}

.ai-tip,
.ai-note-card {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(232, 239, 233, 0.72), rgba(255, 253, 248, 0.92));
}

.ai-tip p,
.ai-note-card p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.6;
}

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

.builder-preview-stack,
.group-stack,
.report-stack,
.notification-stack,
.summary-stack,
.builder-stack {
  display: grid;
  gap: 0.8rem;
}

.builder-preview-card,
.group-card,
.demo-card,
.report-card,
.notification-card,
.pricing-card,
.builder-card,
.meta-chip {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.94), rgba(242, 239, 232, 0.78));
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
  position: relative;
  overflow: hidden;
}

.builder-preview-card::before,
.group-card::before,
.demo-card::before,
.report-card::before,
.notification-card::before,
.pricing-card::before,
.builder-card::before,
.meta-chip::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 0.24rem;
  background: linear-gradient(90deg, rgba(85, 107, 93, 0.82), rgba(108, 125, 136, 0.42));
  opacity: 0.8;
}

.builder-preview-card:hover,
.group-card:hover,
.demo-card:hover,
.report-card:hover,
.notification-card:hover,
.pricing-card:hover,
.builder-card:hover,
.meta-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(24, 33, 39, 0.14);
  box-shadow: 0 12px 26px rgba(24, 33, 39, 0.05);
}

.builder-preview-top,
.builder-card-top,
.group-card-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}

.builder-preview-card p,
.group-card p,
.demo-card p,
.report-card p,
.notification-card p,
.pricing-card p,
.builder-card p,
.meta-chip span,
.group-card small,
.report-card small,
.notification-card small,
.pricing-card small,
.builder-card small {
  color: var(--ink-soft);
  line-height: 1.6;
}

.builder-preview-card strong,
.group-card strong,
.demo-card strong,
.report-card strong,
.notification-card strong,
.pricing-card strong,
.builder-card strong,
.meta-chip strong {
  display: block;
  margin-bottom: 0.2rem;
}

.builder-card-top span,
.group-card-top span {
  white-space: nowrap;
  color: var(--ink-soft);
}

.leaderboard-mini,
.leaderboard-panel {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.leaderboard-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--line);
}

.leaderboard-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.leaderboard-row span {
  color: var(--ink-soft);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.pricing-card-highlight {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(232, 239, 233, 0.92), rgba(255, 253, 248, 0.98));
  box-shadow: inset 0 0 0 1px var(--accent);
}

.meta-chip-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.tag-row {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin: 0.8rem 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0 0.7rem;
  border-radius: 999px;
  background: rgba(108, 125, 136, 0.12);
  color: var(--slate);
  font-size: 0.88rem;
  font-weight: 600;
}

.builder-sidebar {
  display: grid;
  gap: 1rem;
}

.day-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.day-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--ink-soft);
}

.day-chip.active {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(232, 239, 233, 0.9), rgba(255, 253, 248, 0.96));
  color: var(--moss);
  box-shadow: inset 0 0 0 1px rgba(85, 107, 93, 0.22);
}

.simple-row span,
.exercise-line span {
  color: var(--ink-soft);
  white-space: nowrap;
}

.simple-table {
  display: grid;
}

.simple-table-head {
  color: var(--ink-soft);
}

.simple-table-head span,
.simple-table-row span {
  flex: 1;
}

.state-good,
.state-warn {
  width: fit-content;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  font-size: 0.82rem;
}

.state-good {
  background: var(--success-soft);
  color: var(--success);
}

.state-warn {
  background: var(--warn-soft);
  color: var(--warn);
}

.food-note {
  margin: 1rem 0;
}

.food-note,
.message-note {
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 248, 0.66);
  padding-inline: 0.9rem;
}

.food-note small,
.message-note small {
  display: block;
  margin-top: 0.3rem;
  color: var(--ink-soft);
}

.exercise-line.active {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(232, 239, 233, 0.62), rgba(255, 253, 248, 0.94));
}

.progress-item {
  align-items: center;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.progress-item span {
  flex: 0 0 6rem;
}

.progress-item div {
  position: relative;
  flex: 1;
  height: 0.5rem;
  border-radius: 999px;
  background: rgba(108, 125, 136, 0.16);
  overflow: hidden;
}

.progress-item i {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--progress-value, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--moss), var(--slate));
  transition: width 520ms cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: left center;
  animation: progress-reveal 720ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.progress-item strong {
  flex: 0 0 3rem;
  text-align: right;
}

.small-button {
  min-height: 2.5rem;
  padding: 0 0.85rem;
}

.client-page .app-page-shell {
  max-width: 1040px;
}

.mobile-tabbar {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  z-index: 20;
  transform: translateX(-50%);
  display: none;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.mobile-tabbar a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.65rem;
  padding: 0 0.95rem;
  border-radius: 999px;
  color: var(--ink-soft);
}

.mobile-tabbar a.active {
  background: linear-gradient(135deg, var(--moss), #46534b);
  color: #fff;
}

.trainer-page .page-intro,
.builder-page .page-intro,
.billing-page .page-intro,
.client-page .page-intro {
  position: relative;
}

.trainer-page .page-intro::after,
.builder-page .page-intro::after,
.billing-page .page-intro::after,
.client-page .page-intro::after {
  content: "";
  position: absolute;
  inset: auto 0 0 auto;
  width: 12rem;
  height: 12rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108, 125, 136, 0.09), transparent 70%);
  pointer-events: none;
}

@media (min-width: 1020px) {
  .trainer-page .app-page-shell,
  .builder-page .app-page-shell,
  .billing-page .app-page-shell,
  .client-page .app-page-shell {
    display: grid;
    grid-template-columns: 16rem minmax(0, 1fr);
    column-gap: 1.35rem;
    align-items: start;
  }

  .trainer-page .app-topbar-simple,
  .builder-page .app-topbar-simple,
  .billing-page .app-topbar-simple,
  .client-page .app-topbar-simple {
    grid-column: 1;
    position: sticky;
    top: 1rem;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    gap: 1.2rem;
    min-height: calc(100svh - 2rem);
    margin-bottom: 0;
    padding: 1.2rem;
    border: 1px solid var(--line);
    border-radius: 34px;
    background:
      linear-gradient(180deg, rgba(255, 253, 248, 0.94), rgba(242, 239, 232, 0.9)),
      radial-gradient(circle at 100% 0%, rgba(108, 125, 136, 0.12), transparent 36%);
    box-shadow: 0 20px 42px rgba(24, 33, 39, 0.06);
  }

  .trainer-page .app-topbar-simple::after,
  .builder-page .app-topbar-simple::after,
  .billing-page .app-topbar-simple::after,
  .client-page .app-topbar-simple::after {
    content: "";
    position: absolute;
    inset: auto 1.2rem 1.2rem;
    height: 0.24rem;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(85, 107, 93, 0.82), rgba(108, 125, 136, 0.42));
    opacity: 0.8;
  }

  .trainer-page .app-logo,
  .builder-page .app-logo,
  .billing-page .app-logo,
  .client-page .app-logo {
    display: grid;
    justify-items: start;
    gap: 1rem;
  }

  .trainer-page .app-logo-mark,
  .builder-page .app-logo-mark,
  .billing-page .app-logo-mark,
  .client-page .app-logo-mark {
    width: 3rem;
    box-shadow: 0 16px 30px rgba(85, 107, 93, 0.16);
  }

  .trainer-page .app-logo-copy,
  .builder-page .app-logo-copy,
  .billing-page .app-logo-copy,
  .client-page .app-logo-copy {
    gap: 0.25rem;
  }

  .trainer-page .app-logo-copy strong,
  .builder-page .app-logo-copy strong,
  .billing-page .app-logo-copy strong,
  .client-page .app-logo-copy strong {
    font-size: 1.05rem;
  }

  .trainer-page .app-topbar-actions,
  .builder-page .app-topbar-actions,
  .billing-page .app-topbar-actions,
  .client-page .app-topbar-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.7rem;
    margin-top: auto;
  }

  .trainer-page .app-link-button,
  .trainer-page .app-solid-button,
  .builder-page .app-link-button,
  .builder-page .app-solid-button,
  .billing-page .app-link-button,
  .billing-page .app-solid-button,
  .client-page .app-link-button,
  .client-page .app-solid-button {
    width: 100%;
    justify-content: flex-start;
    padding-inline: 1rem;
  }

  .trainer-page .app-page-shell > :not(.app-topbar-simple),
  .builder-page .app-page-shell > :not(.app-topbar-simple),
  .billing-page .app-page-shell > :not(.app-topbar-simple),
  .client-page .app-page-shell > :not(.app-topbar-simple) {
    grid-column: 2;
  }

  .trainer-page .mobile-tabbar,
  .builder-page .mobile-tabbar,
  .billing-page .mobile-tabbar,
  .client-page .mobile-tabbar {
    display: none !important;
  }
}

@keyframes panel-enter {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

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

@keyframes progress-reveal {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 980px) {
  .page-intro,
  .app-grid-trainer,
  .app-grid-client,
  .app-grid-trainer-calendar,
  .app-grid-trainer-summary,
  .app-grid-trainer-support,
  .app-grid-client-support,
  .app-grid-builder,
  .app-grid-billing {
    grid-template-columns: 1fr;
  }

  .mini-stat-row {
    grid-template-columns: 1fr;
  }

  .metrics-grid,
  .metrics-grid-small,
  .pricing-grid,
  .meta-chip-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .app-page-shell {
    width: min(calc(100% - 1rem), 1180px);
    padding-bottom: 6.6rem;
  }

  .app-topbar-simple {
    flex-direction: column;
    align-items: start;
  }

  .app-topbar-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .app-link-button,
  .app-solid-button {
    flex: 1 1 12rem;
  }

  .section-tabs {
    display: none;
  }

  .mobile-tabbar {
    display: inline-flex;
  }

  .simple-row,
  .simple-table-head,
  .simple-table-row,
  .exercise-line,
  .progress-item,
  .plain-list li,
  .video-item,
  .ai-row,
  .builder-card-top,
  .group-card-top,
  .leaderboard-row {
    flex-direction: column;
    align-items: start;
  }

  .message-stack,
  .draft-columns,
  .meta-chip-row,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .progress-item span,
  .progress-item strong {
    width: auto;
    flex: initial;
  }

  .surface-head-side {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 560px) {
  .page-intro h1 {
    font-size: clamp(2rem, 12vw, 3rem);
  }

  .trainer-stat-row,
  .metrics-grid,
  .metrics-grid-small,
  .pricing-grid,
  .meta-chip-row {
    grid-template-columns: 1fr;
  }

  .mobile-tabbar {
    width: calc(100% - 1rem);
    justify-content: space-between;
  }

  .mobile-tabbar a {
    flex: 1;
    min-width: 0;
    padding: 0 0.35rem;
    font-size: 0.84rem;
  }
}

body.trainer-page,
body.client-page {
  background: #f4f5f6;
}

body.trainer-page::before,
body.client-page::before,
body.trainer-page.app-body::after,
body.client-page.app-body::after {
  content: none;
}

.trainer-page .app-page-shell,
.client-page .app-page-shell {
  width: auto;
  margin: 0;
  padding: 0;
}

.product-shell-minimal {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  min-height: 100vh;
}

.app-rail {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 100svh;
  padding: 1.1rem 0 1rem;
  border-right: 1px solid #e4e7e9;
  background: #ffffff;
}

.rail-brand,
.rail-mini {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 16px;
  border: 1px solid #e4e7e9;
  background: #fff;
  color: #1f282d;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rail-nav.section-tabs {
  position: static;
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  overflow: visible;
}

.rail-link {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border-radius: 16px;
  color: #707c84;
  border: 1px solid transparent;
  background: transparent;
}

.rail-link svg {
  width: 1.15rem;
  height: 1.15rem;
}

.section-tabs.rail-nav a.active,
.rail-link.active {
  background: #eef3ef;
  color: var(--moss);
  border-color: #dae4dd;
}

.rail-bottom {
  display: grid;
  gap: 0.65rem;
}

.minimal-main {
  padding: 2rem 2.25rem 3rem;
  display: grid;
  align-content: start;
  gap: 1.35rem;
}

.minimal-panel {
  display: grid;
  gap: 1rem;
}

.minimal-header {
  display: flex;
  justify-content: space-between;
  gap: 1.25rem;
  align-items: end;
}

.minimal-header h1,
.content-card-head h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.content-card-head h2 {
  font-size: 2rem;
  line-height: 1.02;
}

.minimal-header p,
.content-card-head p,
.month-label,
.status-pill,
.simple-table-head,
.toolbar-row input,
.notification-card p,
.report-card p,
.message-note p,
.message-note small,
.content-note p,
.content-note small,
.exercise-line p,
.progress-item span,
.simple-table-row span,
.clean-list li,
.subtle-tab,
.filter-pills span,
.week-day small,
.week-day span {
  color: #6c767d;
}

.minimal-header p,
.content-card-head p {
  margin: 0.5rem 0 0;
  max-width: 42rem;
  line-height: 1.6;
}

.minimal-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.minimal-main .app-link-button,
.minimal-main .app-solid-button,
.minimal-main .small-button,
.minimal-main .nav-icon-button {
  min-height: 2.9rem;
  border-radius: 999px;
  box-shadow: none;
}

.minimal-main .app-link-button {
  background: #fff;
  border-color: #d7dde0;
}

.minimal-main .app-solid-button {
  background: #637a68;
  border-color: #637a68;
}

.content-card {
  border: 1px solid #e2e6e8;
  border-radius: 12px;
  background: #ffffff;
  overflow: hidden;
}

.content-card-head,
.content-card-body,
.content-card-actions,
.content-block,
.content-note,
.toolbar-row,
.simple-table-head,
.simple-table-body,
.message-note,
.stack-list,
.subtle-tabs,
.filter-pills,
.calories-card {
  padding-inline: 1.4rem;
}

.content-card-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
  padding-top: 1.4rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #edf0f1;
}

.content-card-body {
  padding-top: 1.15rem;
  padding-bottom: 1.15rem;
}

.content-card-actions {
  display: flex;
  gap: 0.8rem;
  padding-top: 1rem;
  padding-bottom: 1.2rem;
  border-top: 1px solid #edf0f1;
}

.week-card {
  padding: 0;
}

.week-toolbar {
  display: grid;
  grid-template-columns: max-content max-content 1fr;
  gap: 0.85rem;
  align-items: center;
  padding: 1rem 1.4rem;
  border-bottom: 1px solid #edf0f1;
}

.week-nav {
  display: inline-flex;
  gap: 0.55rem;
}

.nav-icon-button {
  width: 2.9rem;
  padding: 0;
  border: 1px solid #d7dde0;
  background: #fff;
  color: var(--ink);
}

.nav-icon-button svg {
  width: 1rem;
  height: 1rem;
}

.month-label {
  justify-self: end;
  font-weight: 600;
}

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

.week-day {
  display: grid;
  gap: 0.2rem;
  justify-items: center;
  padding: 1rem 0.45rem;
  border: 0;
  border-right: 1px solid #edf0f1;
  background: #fff;
  text-align: center;
  cursor: pointer;
}

.week-day:last-child {
  border-right: 0;
}

.week-day strong {
  font-size: 1.15rem;
  color: #2b3338;
  font-variant-numeric: tabular-nums;
}

.week-day small {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.week-day span {
  font-size: 0.75rem;
}

.week-day.has-data span {
  color: #4c5b64;
}

.week-day.active {
  background: #eef3ef;
  box-shadow: inset 0 -2px 0 #637a68;
}

.week-day.active strong,
.week-day.active small {
  color: #485b4d;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0 0.85rem;
  border-radius: 999px;
  border: 1px solid #d7dde0;
  background: #f7f9fa;
  font-size: 0.88rem;
  font-weight: 600;
}

.clean-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.clean-list li {
  padding: 0.8rem 0;
  line-height: 1.55;
  border-bottom: 1px solid #edf0f1;
}

.clean-list li:last-child {
  border-bottom: 0;
}

.split-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: 0 1.4rem 1.25rem;
}

.content-note {
  padding-top: 1rem;
  padding-bottom: 1rem;
  border: 1px solid #edf0f1;
  border-radius: 10px;
  background: #fafbfb;
}

.content-note-soft {
  background: #f2f5f3;
}

.compact-list li {
  padding: 0.55rem 0;
  font-size: 0.92rem;
}

.plain-input {
  width: 100%;
  min-height: 3rem;
  padding: 0 0.95rem;
  border: 1px solid #d7dde0;
  border-radius: 8px;
  background: #fff;
  color: #1f282d;
}

.simple-table-head,
.simple-table-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 0.85fr;
  gap: 1rem;
  align-items: center;
}

.simple-table-head {
  padding-top: 1rem;
  padding-bottom: 0.8rem;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-top: 1px solid #edf0f1;
  border-bottom: 1px solid #edf0f1;
}

.simple-table-body {
  padding-inline: 1.4rem;
}

.simple-table-row {
  padding: 0.95rem 0;
  border-bottom: 1px solid #edf0f1;
}

.simple-table-row:last-child {
  border-bottom: 0;
}

.simple-row,
.plan-card {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.4rem;
  border-bottom: 1px solid #edf0f1;
}

.simple-row:last-child,
.plan-card:last-child {
  border-bottom: 0;
}

.simple-row p,
.plan-card p,
.simple-row small,
.plan-card small {
  margin: 0.35rem 0 0;
  color: #6c767d;
  line-height: 1.55;
}

.simple-row > span,
.plan-card > span {
  color: #6c767d;
  white-space: nowrap;
}

.simple-table-row span:first-child,
.exercise-line strong,
.notification-card strong,
.report-card strong,
.profile-row strong,
.content-note strong {
  color: #1f282d;
  font-weight: 600;
}

.stack-list {
  display: grid;
  gap: 0;
  padding-top: 0.2rem;
  padding-bottom: 0.2rem;
}

.group-card-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}

.notification-card,
.report-card {
  padding: 1rem 0;
  border-bottom: 1px solid #edf0f1;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.notification-card:last-child,
.report-card:last-child {
  border-bottom: 0;
}

.notification-card p,
.report-card p {
  margin: 0.35rem 0 0;
  line-height: 1.55;
}

.notification-card small,
.report-card small {
  display: block;
  margin-top: 0.45rem;
  color: #8b949a;
}

.profile-card {
  padding: 0 1.4rem;
}

.profile-row {
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #edf0f1;
}

.profile-row:last-child {
  border-bottom: 0;
}

.profile-row span {
  color: #6c767d;
}

.summary-stack {
  display: grid;
}

.message-note {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.message-note p,
.message-note small {
  margin: 0.35rem 0 0;
}

.subtle-tabs {
  display: inline-flex;
  gap: 0.4rem;
  padding-top: 1rem;
  padding-bottom: 0.5rem;
}

.subtle-tab {
  min-height: 2rem;
  padding: 0 0.7rem;
  border: 0;
  background: transparent;
  font-weight: 600;
}

.subtle-tab.active {
  color: #1f282d;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 0.3rem;
  padding-bottom: 0.9rem;
}

.filter-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  padding: 0 0.55rem;
  border-radius: 999px;
  background: #f1f3f4;
  font-size: 0.76rem;
  font-weight: 600;
}

.exercise-stack-min,
.progress-list {
  display: grid;
  gap: 0;
}

.exercise-line {
  padding: 1rem 1.4rem;
  border-bottom: 1px solid #edf0f1;
  background: transparent;
}

.exercise-line.active {
  background: #f7faf8;
}

.exercise-line span {
  color: #4b5961;
  font-weight: 600;
  white-space: nowrap;
}

.exercise-line p {
  margin: 0.25rem 0 0;
}

.progress-item {
  padding: 1rem 1.4rem;
  border-bottom: 1px solid #edf0f1;
  align-items: center;
}

.progress-item:last-child {
  border-bottom: 0;
}

.progress-item div {
  flex: 1;
  max-width: 16rem;
  height: 0.45rem;
  border-radius: 999px;
  background: #edf1f2;
  overflow: hidden;
}

.progress-item i {
  display: block;
  width: var(--progress-value, 0%);
  height: 100%;
  border-radius: inherit;
  background: #637a68;
}

.progress-item strong {
  font-size: 0.96rem;
  color: #1f282d;
  font-variant-numeric: tabular-nums;
}

.calories-card {
  padding-top: 1.6rem;
  padding-bottom: 1.6rem;
}

.calorie-number {
  display: flex;
  align-items: end;
  gap: 0.5rem;
}

.calorie-number strong {
  font-size: clamp(3rem, 7vw, 4.4rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}

.calorie-number span,
.calorie-summary {
  color: #6c767d;
}

.calorie-summary {
  margin: 0.7rem 0 1.2rem;
  max-width: 38rem;
  line-height: 1.6;
}

.state-good,
.state-warn {
  display: inline-flex;
  align-items: center;
  min-height: 1.9rem;
  padding: 0 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.state-good {
  background: #edf4ef;
  color: #4f6a56;
}

.state-warn {
  background: #f6ede7;
  color: #a56540;
}

@media (max-width: 900px) {
  .product-shell-minimal {
    grid-template-columns: 1fr;
  }

  .app-rail {
    position: sticky;
    top: 0;
    z-index: 20;
    flex-direction: row;
    height: auto;
    padding: 0.75rem 1rem;
    border-right: 0;
    border-bottom: 1px solid #e4e7e9;
  }

  .rail-nav.section-tabs {
    display: inline-flex;
    margin-left: auto;
    gap: 0.4rem;
  }

  .rail-bottom {
    display: none;
  }

  .minimal-main {
    padding: 1.25rem 1rem 5.5rem;
  }

  .minimal-header,
  .content-card-head,
  .content-card-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .week-toolbar {
    grid-template-columns: 1fr;
  }

  .month-label {
    justify-self: start;
  }

  .week-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .split-notes,
  .simple-row,
  .plan-card,
  .simple-table-head,
  .simple-table-row,
  .profile-row {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .progress-item {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .progress-item div {
    max-width: none;
  }
}

.trainer-workspace,
.client-calendar-layout {
  display: grid;
  gap: 1rem;
}

.trainer-workspace {
  grid-template-columns: 280px minmax(0, 1fr) 360px;
}

.client-calendar-layout {
  grid-template-columns: minmax(0, 1.1fr) 360px;
}

.target-sidebar-card,
.workspace-center,
.workspace-detail,
.client-day-card {
  min-width: 0;
}

.compact-card-head h2 {
  font-size: 1.45rem;
  line-height: 1.05;
}

.target-toggle {
  padding: 1rem 1.4rem 0.35rem;
}

.target-list {
  display: grid;
  gap: 0;
  padding: 0.2rem 0;
}

.target-row {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 1.4rem;
  border-top: 1px solid #edf0f1;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.target-row:first-child {
  border-top: 1px solid #edf0f1;
}

.target-row strong {
  font-size: 0.98rem;
}

.target-row p,
.target-row small {
  margin: 0;
  color: #6c767d;
  line-height: 1.5;
}

.target-row.active {
  background: #f7faf8;
}

.target-row-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.target-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  padding: 0 0.6rem;
  border-radius: 999px;
  background: #f1f4f2;
  color: #637a68;
  font-size: 0.76rem;
  font-weight: 600;
}

.month-card {
  display: grid;
  gap: 0;
}

.month-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0 1.4rem 1rem;
}

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

.month-weekdays {
  padding: 0 1.4rem;
  border-top: 1px solid #edf0f1;
  border-bottom: 1px solid #edf0f1;
}

.month-weekdays span {
  padding: 0.8rem 0.3rem;
  text-align: center;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a9399;
}

.month-day,
.month-empty {
  min-height: 118px;
  border-right: 1px solid #edf0f1;
  border-bottom: 1px solid #edf0f1;
}

.month-empty {
  background: #fbfcfc;
}

.month-day {
  display: grid;
  gap: 0.55rem;
  align-content: start;
  padding: 0.75rem;
  border-top: 0;
  border-left: 0;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.month-grid > :nth-child(7n) {
  border-right: 0;
}

.month-day-number {
  font-size: 1rem;
  font-weight: 700;
  color: #2b3338;
  font-variant-numeric: tabular-nums;
}

.month-day-copy {
  display: grid;
  gap: 0.22rem;
}

.month-day-copy strong,
.month-day-copy span {
  font-size: 0.78rem;
  line-height: 1.35;
}

.month-day-copy strong {
  color: #44515a;
  font-weight: 600;
}

.month-day-copy span {
  color: #79858d;
}

.month-marker {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: #d1d7da;
}

.month-day.is-published .month-marker {
  background: #637a68;
}

.month-day.is-draft .month-marker {
  background: #c47f56;
}

.month-day.is-group .month-marker {
  background: #7a8b96;
}

.month-day.active {
  background: #f7faf8;
  box-shadow: inset 0 0 0 1px #dbe5dd;
}

.month-day.is-empty {
  background: #fcfdfd;
}

.detail-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.note-copy {
  color: #4f5b63;
  line-height: 1.6;
}

.assignment-card {
  overflow: visible;
}

.assignment-form {
  display: grid;
  gap: 0.9rem;
  padding: 1.2rem 1.4rem 1.4rem;
}

.template-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.template-pill {
  display: inline-flex;
  align-items: center;
  min-height: 2.1rem;
  padding: 0 0.7rem;
  border-radius: 999px;
  border: 1px solid #d7dde0;
  background: #fff;
  color: #5d6971;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}

.template-pill.active {
  background: #eef3ef;
  border-color: #dae4dd;
  color: #506554;
}

.field-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #5d6971;
}

.note-area {
  width: 100%;
  resize: vertical;
  min-height: 92px;
  padding: 0.9rem 0.95rem;
  border: 1px solid #d7dde0;
  border-radius: 10px;
  background: #fff;
  color: #1f282d;
  font: inherit;
  line-height: 1.5;
}

.slim-actions {
  padding: 0;
  border-top: 0;
}

.text-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #8a5d43;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.compact-stack {
  padding-top: 0;
  padding-bottom: 0;
}

.compact-stack .video-item {
  padding: 0.8rem 0;
}

#client-open-workout[disabled] {
  background: #edf0f1;
  border-color: #edf0f1;
  color: #9aa3a9;
  box-shadow: none;
  cursor: default;
}

@media (max-width: 1180px) {
  .trainer-workspace,
  .client-calendar-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .month-day,
  .month-empty {
    min-height: 96px;
  }

  .month-day-copy strong,
  .month-day-copy span {
    font-size: 0.72rem;
  }
}

/* FORMA AI interior redesign: dark operational layer */
:root {
  --app-bg: hsl(0 0% 8%);
  --app-bg-soft: hsl(0 0% 10%);
  --app-surface: hsla(0, 0%, 100%, 0.04);
  --app-surface-strong: hsla(0, 0%, 100%, 0.07);
  --app-surface-soft: hsla(0, 0%, 100%, 0.025);
  --app-border: hsla(0, 0%, 100%, 0.09);
  --app-border-strong: hsla(0, 0%, 100%, 0.16);
  --app-text: hsl(0 0% 96%);
  --app-text-soft: hsla(0, 0%, 100%, 0.62);
  --app-text-dim: hsla(0, 0%, 100%, 0.42);
  --app-primary: hsl(119 99% 46%);
  --app-primary-strong: hsl(119 78% 34%);
  --app-primary-glow: rgba(44, 255, 69, 0.26);
  --app-white-glow: rgba(255, 255, 255, 0.08);
  --app-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --app-card-shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
  --app-radius-xl: 28px;
  --app-radius-lg: 22px;
  --app-radius-md: 16px;
}

body {
  font-family: var(--font-sf-text);
  color: var(--app-text);
  background:
    radial-gradient(circle at top left, rgba(44, 255, 69, 0.12), transparent 18%),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.05), transparent 24%),
    linear-gradient(180deg, #0c0c0c 0%, #080808 100%);
}

body::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at center, black 30%, transparent 86%);
  opacity: 0.28;
}

.app-body::after {
  inset: auto -10rem -12rem auto;
  width: 30rem;
  height: 30rem;
  background: radial-gradient(circle, rgba(44, 255, 69, 0.14), transparent 70%);
  filter: blur(18px);
  opacity: 1;
}

a,
button,
input,
textarea {
  color: inherit;
}

input::placeholder,
textarea::placeholder {
  color: var(--app-text-dim);
}

button,
input,
textarea {
  font: inherit;
}

.trainer-page .app-page-shell,
.client-page .app-page-shell,
.builder-page .app-page-shell,
.billing-page .app-page-shell {
  color: var(--app-text);
}

.product-shell-minimal {
  grid-template-columns: 92px minmax(0, 1fr);
  background: transparent;
}

.app-rail {
  border-right: 1px solid var(--app-border);
  background:
    linear-gradient(180deg, rgba(7, 7, 7, 0.92), rgba(10, 10, 10, 0.86)),
    rgba(8, 8, 8, 0.86);
  backdrop-filter: blur(18px);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.02);
}

.rail-brand,
.rail-mini {
  width: 3.3rem;
  height: 3.3rem;
  border-radius: 1rem;
  border: 1px solid var(--app-border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.02);
  color: var(--app-text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.rail-brand {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
}

.rail-link {
  width: 3.3rem;
  height: 3.3rem;
  border-radius: 1rem;
  border: 1px solid transparent;
  color: var(--app-text-soft);
}

.rail-link:hover,
.rail-link:focus-visible,
.rail-link.active {
  color: var(--app-text);
}

.section-tabs.rail-nav a.active,
.rail-link.active {
  background: linear-gradient(180deg, rgba(44, 255, 69, 0.16), rgba(44, 255, 69, 0.08));
  border-color: rgba(44, 255, 69, 0.24);
  box-shadow:
    0 16px 36px rgba(44, 255, 69, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.rail-link svg {
  width: 1.2rem;
  height: 1.2rem;
}

.minimal-main {
  padding: 2rem 2rem 3rem;
  gap: 1.4rem;
}

.minimal-panel {
  gap: 1.15rem;
}

.minimal-header {
  align-items: end;
  gap: 1.5rem;
}

.minimal-header h1,
.content-card-head h2,
.surface-head h2,
.page-intro h1 {
  color: var(--app-text);
  letter-spacing: -0.065em;
}

.minimal-header h1 {
  font-size: clamp(2.35rem, 4vw, 3.45rem);
  line-height: 0.92;
}

.minimal-header p,
.content-card-head p,
.month-label,
.status-pill,
.simple-table-head,
.toolbar-row input,
.notification-card p,
.report-card p,
.message-note p,
.message-note small,
.content-note p,
.content-note small,
.exercise-line p,
.progress-item span,
.simple-table-row span,
.clean-list li,
.subtle-tab,
.filter-pills span,
.week-day small,
.week-day span,
.surface-copy,
.section-copy,
.surface-label,
.section-label,
.simple-row p,
.plan-card p,
.simple-row small,
.plan-card small,
.profile-row span,
.target-row p,
.target-row small,
.target-badge,
.meta-chip span,
.builder-card p,
.builder-card small,
.video-item p,
.video-item span,
.notification-card small,
.report-card small,
.calorie-summary,
.calorie-number span {
  color: var(--app-text-soft);
}

.minimal-header-actions,
.app-topbar-actions,
.surface-head-side,
.content-card-actions {
  gap: 0.85rem;
}

.app-link-button,
.app-solid-button,
.nav-icon-button,
.template-pill,
.target-row,
.subtle-tab,
.month-day,
.rail-link,
.pricing-card,
.builder-card,
.report-card,
.notification-card,
.meta-chip,
.plan-card,
.video-item {
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

.app-link-button,
.app-solid-button,
.nav-icon-button {
  min-height: 3rem;
  border-radius: 0.85rem;
}

.app-link-button,
.minimal-main .app-link-button,
.app-topbar-actions .app-link-button,
.nav-icon-button,
.template-pill {
  border: 1px solid var(--app-border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025)),
    rgba(255, 255, 255, 0.02);
  color: var(--app-text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.app-link-button:hover,
.app-link-button:focus-visible,
.nav-icon-button:hover,
.nav-icon-button:focus-visible,
.template-pill:hover,
.template-pill:focus-visible {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.03);
  border-color: var(--app-border-strong);
  transform: translateY(-1px);
}

.app-solid-button,
.minimal-main .app-solid-button {
  border: 1px solid rgba(44, 255, 69, 0.2);
  background: linear-gradient(135deg, var(--app-primary), #0bd92a);
  color: #071007;
  box-shadow: 0 14px 34px rgba(44, 255, 69, 0.2);
}

.app-solid-button:hover,
.app-solid-button:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 18px 38px rgba(44, 255, 69, 0.26);
}

.app-page-shell {
  width: min(calc(100% - 2rem), 1360px);
  padding: 1.2rem 0 4rem;
}

.app-page-shell::before {
  background:
    radial-gradient(circle at 10% 14%, rgba(44, 255, 69, 0.12), transparent 24%),
    radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.06), transparent 30%);
}

.app-topbar-simple {
  top: 0;
  padding: 1rem 0 1.2rem;
  border-bottom: 1px solid var(--app-border);
  background: rgba(8, 8, 8, 0.72);
  backdrop-filter: blur(18px);
}

.app-logo-mark {
  background: linear-gradient(135deg, rgba(44, 255, 69, 0.9), rgba(44, 255, 69, 0.55));
  color: #070b07;
  box-shadow: 0 12px 30px rgba(44, 255, 69, 0.26);
}

.app-logo-copy strong,
.app-logo-copy small,
.app-logo,
.surface-head h2,
.surface-copy,
.surface-label {
  color: var(--app-text);
}

.app-logo-copy small {
  color: var(--app-text-soft);
}

.page-intro {
  position: relative;
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-xl);
  background:
    radial-gradient(circle at right top, rgba(44, 255, 69, 0.1), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025));
  box-shadow: var(--app-shadow);
}

.page-intro::before {
  width: 22rem;
  height: 22rem;
  background: radial-gradient(circle, rgba(44, 255, 69, 0.16), transparent 68%);
}

.page-intro h1 {
  max-width: 11ch;
}

.section-label,
.surface-label,
.simple-table-head {
  color: var(--app-text-dim);
}

.mini-stat-row {
  gap: 0.8rem;
}

.mini-stat {
  position: relative;
  min-width: 0;
  padding: 1rem 1rem 1rem 1.15rem;
  border: 1px solid var(--app-border);
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.03);
}

.mini-stat::before {
  content: "";
  position: absolute;
  inset: 1rem auto 1rem 0;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(44, 255, 69, 0.85), transparent);
}

.mini-stat strong {
  color: var(--app-text);
  font-size: 1.45rem;
}

.app-page-shell .section-tabs:not(.rail-nav) {
  position: sticky;
  top: 5.25rem;
  z-index: 10;
  display: inline-flex;
  gap: 0.4rem;
  margin: 0;
  padding: 0.35rem;
  border: 1px solid var(--app-border);
  border-radius: 999px;
  background: rgba(8, 8, 8, 0.72);
  box-shadow: var(--app-card-shadow);
  backdrop-filter: blur(18px);
}

.app-page-shell .section-tabs:not(.rail-nav) a {
  min-height: 2.6rem;
  padding: 0 1rem;
  border-radius: 999px;
  color: var(--app-text-soft);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.app-page-shell .section-tabs:not(.rail-nav) a.active,
.app-page-shell .section-tabs:not(.rail-nav) a:hover,
.app-page-shell .section-tabs:not(.rail-nav) a:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  color: var(--app-text);
}

.content-card,
.surface,
.report-card,
.notification-card,
.pricing-card,
.builder-card,
.meta-chip,
.plan-card,
.video-item {
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025)),
    rgba(255, 255, 255, 0.02);
  box-shadow: var(--app-card-shadow);
}

.surface,
.content-card {
  overflow: hidden;
}

.content-card-head,
.content-card-body,
.content-card-actions {
  border-color: rgba(255, 255, 255, 0.06);
}

.content-card-head,
.surface-head {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
}

.content-card-head h2,
.surface-head h2 {
  font-size: clamp(1.45rem, 2vw, 2.25rem);
  line-height: 1;
}

.content-card-head p,
.surface-copy {
  max-width: 40rem;
}

.content-card-body,
.content-card-actions,
.stack-list,
.simple-list,
.summary-stack,
.report-stack,
.notification-stack,
.builder-stack,
.pricing-grid {
  gap: 0.9rem;
}

.summary-stack,
.stack-list,
.report-stack,
.notification-stack,
.builder-stack,
.simple-list {
  display: grid;
}

.simple-row,
.plan-card,
.video-item,
.report-card,
.notification-card,
.pricing-card,
.builder-card,
.meta-chip {
  padding: 1rem 1.1rem;
  border-bottom: 0;
}

.simple-row,
.plan-card {
  border: 1px solid var(--app-border);
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.03);
}

.notification-card,
.report-card {
  padding: 1rem 1.1rem;
}

.report-card:hover,
.notification-card:hover,
.pricing-card:hover,
.builder-card:hover,
.meta-chip:hover,
.plan-card:hover,
.video-item:hover {
  transform: translateY(-2px);
  border-color: var(--app-border-strong);
}

.group-card-top span,
.simple-row > span,
.plan-card > span,
.builder-card-top span {
  color: var(--app-text-dim);
}

.clean-list li {
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.note-copy,
.note-copy p,
.message-note p,
.content-note p {
  margin: 0;
  color: var(--app-text-soft);
}

.content-note,
.message-note {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.025);
}

.content-note-soft {
  background: rgba(44, 255, 69, 0.06);
}

.subtle-tabs {
  gap: 0.5rem;
}

.subtle-tab {
  min-height: 2.35rem;
  padding: 0 0.9rem;
  border-radius: 999px;
  border: 1px solid transparent;
}

.subtle-tab.active {
  color: var(--app-text);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
}

.plain-input,
.note-area {
  border: 1px solid var(--app-border);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.025);
  color: var(--app-text);
}

.plain-input:focus-visible,
.note-area:focus-visible {
  outline: none;
  border-color: rgba(44, 255, 69, 0.34);
  box-shadow: 0 0 0 4px rgba(44, 255, 69, 0.1);
}

.field-label {
  color: var(--app-text-soft);
}

.trainer-header {
  align-items: stretch;
}

.trainer-header-copy {
  max-width: 48rem;
}

.trainer-header-actions {
  justify-content: flex-end;
  align-items: stretch;
}

.trainer-kpi {
  display: grid;
  gap: 0.3rem;
  min-width: 9rem;
  padding: 0.95rem 1rem;
  border: 1px solid var(--app-border);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.trainer-kpi span,
.trainer-focus-stat span,
.target-sidebar-meta span,
.assignment-context,
.trainer-focus-type {
  color: var(--app-text-dim);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.trainer-kpi strong {
  color: var(--app-text);
  font-size: 1.1rem;
  letter-spacing: -0.04em;
}

.trainer-focus-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 420px;
  gap: 1rem;
  padding: 1.15rem 1.2rem;
  border-radius: var(--app-radius-xl);
  background:
    radial-gradient(circle at right top, rgba(44, 255, 69, 0.1), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
}

.trainer-focus-copy {
  display: grid;
  gap: 0.7rem;
  align-content: start;
}

.trainer-focus-copy .surface-label {
  margin: 0;
}

.trainer-focus-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1rem;
}

.trainer-focus-heading strong {
  font-size: clamp(2rem, 3.1vw, 3rem);
  line-height: 0.96;
  letter-spacing: -0.07em;
}

.trainer-focus-type {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.trainer-focus-meta {
  margin: 0;
  max-width: 42rem;
  color: var(--app-text-soft);
  line-height: 1.6;
}

.trainer-focus-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.trainer-focus-stat {
  display: grid;
  gap: 0.45rem;
  align-content: start;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.03);
}

.trainer-focus-stat strong {
  color: var(--app-text);
  font-size: 1.15rem;
  letter-spacing: -0.04em;
}

.target-sidebar-meta {
  display: grid;
  gap: 0.3rem;
  justify-items: end;
  text-align: right;
}

.target-sidebar-meta span {
  font-size: 0.68rem;
}

.target-list {
  padding-bottom: 0.3rem;
}

.target-row {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
}

.target-row:first-child {
  border-top-color: rgba(255, 255, 255, 0.06);
}

.target-row.active,
.target-row:hover,
.target-row:focus-visible {
  background: rgba(255, 255, 255, 0.04);
}

.target-badge {
  min-height: 1.8rem;
  padding: 0 0.65rem;
  border-radius: 999px;
  background: rgba(44, 255, 69, 0.09);
  color: rgba(155, 255, 168, 0.95);
}

.month-card {
  border-radius: var(--app-radius-xl);
}

.month-toolbar {
  padding-bottom: 1.1rem;
}

.month-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0 1.4rem 1rem;
}

.month-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--app-text-dim);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.legend-dot {
  width: 0.56rem;
  height: 0.56rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.legend-dot-published {
  background: linear-gradient(90deg, rgba(44, 255, 69, 0.9), rgba(44, 255, 69, 0.6));
}

.legend-dot-draft {
  background: linear-gradient(90deg, rgba(255, 193, 94, 0.9), rgba(214, 123, 54, 0.8));
}

.legend-dot-group {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.3));
}

.month-label {
  color: var(--app-text);
  letter-spacing: -0.03em;
}

.month-weekdays {
  border-top-color: rgba(255, 255, 255, 0.06);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.month-weekdays span {
  color: var(--app-text-dim);
}

.month-day,
.month-empty {
  min-height: 124px;
  border-right-color: rgba(255, 255, 255, 0.06);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.month-empty {
  background: rgba(255, 255, 255, 0.012);
}

.month-day {
  background: rgba(255, 255, 255, 0.02);
}

.month-day:hover,
.month-day:focus-visible {
  background: rgba(255, 255, 255, 0.045);
}

.month-day-number,
.month-day-copy strong,
.simple-table-row span:first-child,
.exercise-line strong,
.notification-card strong,
.report-card strong,
.profile-row strong,
.content-note strong,
.simple-row strong,
.plan-card strong,
.video-item strong,
.builder-card strong,
.meta-chip strong,
.message-note strong,
.surface-head h2,
.content-card-head h2,
.calorie-number strong,
.progress-item strong {
  color: var(--app-text);
}

.month-day-copy strong {
  font-size: 0.8rem;
}

.month-day-copy span {
  color: var(--app-text-dim);
}

.month-marker {
  background: rgba(255, 255, 255, 0.18);
}

.month-day.is-published .month-marker,
.progress-item i {
  background: linear-gradient(90deg, rgba(44, 255, 69, 0.9), rgba(44, 255, 69, 0.6));
}

.month-day.is-draft .month-marker {
  background: linear-gradient(90deg, rgba(255, 193, 94, 0.9), rgba(214, 123, 54, 0.8));
}

.month-day.is-group .month-marker {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.3));
}

.month-day.active {
  background:
    linear-gradient(180deg, rgba(44, 255, 69, 0.12), rgba(44, 255, 69, 0.05)),
    rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px rgba(44, 255, 69, 0.28);
}

.month-day.is-empty {
  background: rgba(255, 255, 255, 0.015);
}

.detail-pills {
  gap: 0.5rem;
}

.status-pill,
.filter-pills span,
.tag {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--app-text-soft);
}

.status-pill {
  min-height: 2.1rem;
}

.split-notes {
  gap: 0.9rem;
}

.assignment-form {
  gap: 1rem;
}

.assignment-context {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  width: fit-content;
  padding: 0 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.template-pill.active {
  background: rgba(44, 255, 69, 0.1);
  border-color: rgba(44, 255, 69, 0.24);
  color: rgba(171, 255, 182, 0.98);
}

.text-button {
  color: rgba(255, 182, 145, 0.92);
}

.progress-item {
  gap: 1rem;
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.progress-item div {
  background: rgba(255, 255, 255, 0.08);
}

.calories-card {
  gap: 1rem;
  background:
    radial-gradient(circle at top right, rgba(44, 255, 69, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.03));
}

.calorie-summary {
  max-width: 42rem;
}

.profile-row {
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.surface {
  border-radius: var(--app-radius-xl);
}

.surface-head,
.surface-copy {
  position: relative;
  z-index: 1;
}

.surface-head-side {
  align-items: center;
}

.app-grid {
  gap: 1rem;
}

.builder-sidebar {
  gap: 1rem;
}

.meta-chip-row,
.pricing-grid,
.tag-row {
  gap: 0.8rem;
}

.meta-chip,
.pricing-card,
.builder-card,
.video-item,
.plan-card,
.simple-row {
  border-radius: 1.2rem;
}

.builder-card-top,
.group-card-top {
  align-items: start;
}

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

.pricing-card {
  min-height: 100%;
}

.pricing-card-highlight {
  border-color: rgba(44, 255, 69, 0.3);
  background:
    linear-gradient(180deg, rgba(44, 255, 69, 0.14), rgba(44, 255, 69, 0.04)),
    rgba(255, 255, 255, 0.03);
  box-shadow: 0 22px 48px rgba(44, 255, 69, 0.12);
}

#client-open-workout[disabled] {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--app-text-dim);
}

.panel-enter {
  animation-duration: 320ms;
}

@media (max-width: 1180px) {
  .trainer-workspace,
  .trainer-focus-card {
    grid-template-columns: 1fr;
  }

  .client-calendar-layout,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .workspace-detail {
    order: 3;
  }
}

@media (max-width: 900px) {
  .product-shell-minimal {
    grid-template-columns: 1fr;
  }

  .app-rail {
    border-right: 0;
    border-bottom: 1px solid var(--app-border);
    background: rgba(8, 8, 8, 0.92);
  }

  .rail-brand,
  .rail-link {
    width: 3rem;
    height: 3rem;
  }

  .minimal-main {
    padding: 1.2rem 1rem 5rem;
  }

  .app-page-shell {
    width: min(calc(100% - 1.2rem), 1360px);
    padding-top: 0.8rem;
  }

  .app-topbar-simple,
  .minimal-header,
  .content-card-head,
  .content-card-actions,
  .surface-head,
  .surface-head-side,
  .simple-row,
  .plan-card,
  .video-item,
  .profile-row,
  .group-card-top {
    flex-direction: column;
    align-items: stretch;
  }

  .trainer-header-actions,
  .trainer-focus-heading,
  .trainer-focus-stats {
    justify-content: stretch;
  }

  .trainer-focus-stats {
    grid-template-columns: 1fr;
  }

  .target-sidebar-meta {
    justify-items: start;
    text-align: left;
  }

  .app-page-shell .section-tabs:not(.rail-nav) {
    top: 4.9rem;
    width: 100%;
    overflow-x: auto;
  }

  .month-day,
  .month-empty {
    min-height: 100px;
  }

  .month-day {
    padding: 0.65rem;
  }

  .month-day-copy strong,
  .month-day-copy span {
    font-size: 0.7rem;
  }
}

body.trainer-page,
body.client-page,
body.builder-page,
body.billing-page {
  background:
    radial-gradient(circle at top left, rgba(44, 255, 69, 0.12), transparent 18%),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.05), transparent 24%),
    linear-gradient(180deg, #0c0c0c 0%, #080808 100%);
}

body.trainer-page::before,
body.client-page::before,
body.builder-page::before,
body.billing-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at center, black 30%, transparent 86%);
  opacity: 0.28;
}

body.trainer-page.app-body::after,
body.client-page.app-body::after,
body.builder-page.app-body::after,
body.billing-page.app-body::after {
  content: "";
  position: fixed;
  inset: auto -10rem -12rem auto;
  width: 30rem;
  height: 30rem;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(44, 255, 69, 0.14), transparent 70%);
  filter: blur(18px);
  opacity: 1;
}

body.trainer-page .minimal-main {
  padding-top: 1.45rem;
  gap: 0.95rem;
}

body.trainer-page .minimal-panel {
  gap: 0.95rem;
}

body.trainer-page .trainer-header {
  align-items: end;
  gap: 1rem;
}

body.trainer-page .trainer-header-copy {
  max-width: 32rem;
}

body.trainer-page .trainer-header h1 {
  font-size: clamp(1.95rem, 3vw, 2.85rem);
  line-height: 0.96;
  max-width: 12ch;
}

body.trainer-page .trainer-header p {
  max-width: 26rem;
  line-height: 1.45;
}

body.trainer-page .trainer-header-actions {
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
}

body.trainer-page .trainer-kpi {
  min-width: 7.25rem;
  gap: 0.18rem;
  padding: 0.65rem 0.8rem;
  border-radius: 0.9rem;
}

body.trainer-page .trainer-kpi span,
body.trainer-page .target-sidebar-meta span,
body.trainer-page .assignment-context {
  font-size: 0.64rem;
  letter-spacing: 0.1em;
}

body.trainer-page .trainer-kpi strong {
  font-size: 1rem;
}

body.trainer-page .trainer-header-actions .app-solid-button {
  min-height: 2.9rem;
  padding-inline: 1.15rem;
}

body.trainer-page .trainer-workspace {
  grid-template-columns: 252px minmax(0, 1fr) 312px;
  gap: 0.85rem;
}

body.trainer-page .content-card-head,
body.trainer-page .content-card-body,
body.trainer-page .content-card-actions,
body.trainer-page .content-block,
body.trainer-page .content-note,
body.trainer-page .toolbar-row,
body.trainer-page .subtle-tabs {
  padding-inline: 1rem;
}

body.trainer-page .content-card-head {
  padding-top: 1rem;
  padding-bottom: 0.9rem;
}

body.trainer-page .content-card-body {
  padding-top: 0.95rem;
  padding-bottom: 1rem;
  gap: 0.8rem;
}

body.trainer-page .compact-card-head h2 {
  font-size: 1.15rem;
  line-height: 1.05;
}

body.trainer-page .compact-card-head p,
body.trainer-page .target-row p,
body.trainer-page .target-row small,
body.trainer-page .content-note p,
body.trainer-page .clean-list li {
  line-height: 1.4;
}

body.trainer-page .target-toggle {
  padding: 0.85rem 1rem 0.25rem;
}

body.trainer-page .toolbar-row {
  padding-top: 0.2rem;
  padding-bottom: 0.8rem;
}

body.trainer-page .target-row {
  gap: 0.25rem;
  padding: 0.85rem 1rem;
}

body.trainer-page .target-badge {
  min-height: 1.6rem;
  padding-inline: 0.55rem;
  font-size: 0.7rem;
}

body.trainer-page .workspace-detail {
  position: sticky;
  top: 1.4rem;
  align-self: start;
}

body.trainer-page .month-toolbar {
  padding: 0 1rem 0.75rem;
}

body.trainer-page .month-legend {
  gap: 0.8rem;
  padding: 0 1rem 0.7rem;
}

body.trainer-page .month-legend span {
  font-size: 0.64rem;
}

body.trainer-page .month-weekdays {
  padding: 0 1rem;
}

body.trainer-page .month-weekdays span {
  padding: 0.6rem 0.2rem;
  font-size: 0.66rem;
}

body.trainer-page .month-day,
body.trainer-page .month-empty {
  min-height: 92px;
}

body.trainer-page .month-day {
  gap: 0.35rem;
  padding: 0.55rem;
}

body.trainer-page .month-day-number {
  font-size: 0.92rem;
}

body.trainer-page .month-day-copy {
  gap: 0.14rem;
}

body.trainer-page .month-day-copy strong {
  font-size: 0.72rem;
  line-height: 1.22;
}

body.trainer-page .month-day-copy span,
body.trainer-page .month-day.is-empty .month-day-copy {
  display: none;
}

body.trainer-page .detail-pills {
  gap: 0.4rem;
}

body.trainer-page .status-pill {
  min-height: 1.9rem;
  padding-inline: 0.7rem;
  font-size: 0.78rem;
}

body.trainer-page .split-notes {
  grid-template-columns: 1fr;
  gap: 0.7rem;
  padding: 0 1rem 1rem;
}

body.trainer-page .content-note {
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

body.trainer-page .clean-list li {
  padding: 0.65rem 0;
}

body.trainer-page .detail-editor {
  margin-top: 0.1rem;
  padding-top: 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

body.trainer-page .detail-editor-head {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: start;
  margin-bottom: 0.85rem;
}

body.trainer-page .detail-section-title {
  display: block;
  color: var(--app-text);
  font-size: 0.98rem;
  margin-bottom: 0.2rem;
}

body.trainer-page .detail-editor-head p {
  margin: 0;
  color: var(--app-text-soft);
  line-height: 1.4;
}

body.trainer-page .assignment-form {
  gap: 0.8rem;
}

body.trainer-page .field-label {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

body.trainer-page .note-area {
  min-height: 84px;
  padding: 0.75rem 0.85rem;
}

body.trainer-page .slim-actions {
  padding-inline: 0;
  padding-top: 0.15rem;
  padding-bottom: 0;
  border-top: 0;
}

body.trainer-page .text-button {
  justify-self: start;
  font-size: 0.84rem;
}

@media (max-width: 1180px) {
  body.trainer-page .trainer-workspace {
    grid-template-columns: 1fr;
  }

  body.trainer-page .workspace-detail {
    position: static;
  }
}

@media (max-width: 900px) {
  body.trainer-page .trainer-header h1 {
    font-size: clamp(1.75rem, 9vw, 2.3rem);
    max-width: none;
  }

  body.trainer-page .trainer-header-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.trainer-page .trainer-kpi {
    min-width: 0;
  }

  body.trainer-page #trainer-open-client-top-link {
    grid-column: 1 / -1;
    justify-content: center;
  }

  body.trainer-page .month-day,
  body.trainer-page .month-empty {
    min-height: 78px;
  }

  body.trainer-page .month-day {
    padding: 0.5rem;
  }

  body.trainer-page .detail-editor-head {
    flex-direction: column;
  }
}

/* Trainer page reset to match the calm landing style */
body.trainer-page {
  --trainer-bg: #f5f7f6;
  --trainer-bg-soft: #fcfdfc;
  --trainer-surface: rgba(255, 255, 255, 0.92);
  --trainer-surface-solid: #ffffff;
  --trainer-tint: #f1f6f4;
  --trainer-tint-strong: #e7f6ea;
  --trainer-sky: #cbe8f7;
  --trainer-sky-soft: #edf8fd;
  --trainer-line: rgba(62, 74, 105, 0.08);
  --trainer-line-strong: rgba(62, 74, 105, 0.14);
  --trainer-text: #36425d;
  --trainer-text-soft: #7e8ba3;
  --trainer-text-dim: #9aa7bd;
  --trainer-mint: #62d36f;
  --trainer-mint-strong: #54c662;
  --trainer-shadow: 14px 18px 34px rgba(188, 198, 209, 0.18), -12px -12px 26px rgba(255, 255, 255, 0.9);
  --trainer-shadow-soft: 10px 12px 24px rgba(199, 207, 218, 0.14);
  --trainer-shadow-inset: inset 10px 10px 18px rgba(229, 235, 240, 0.82), inset -10px -10px 18px rgba(255, 255, 255, 0.98);
  color: var(--trainer-text);
  font-family: var(--font-sf-text);
  background:
    radial-gradient(circle at top left, rgba(203, 232, 247, 0.52), transparent 26%),
    radial-gradient(circle at 85% 12%, rgba(201, 239, 207, 0.5), transparent 22%),
    radial-gradient(circle at 88% 92%, rgba(237, 248, 253, 0.78), transparent 24%),
    linear-gradient(180deg, var(--trainer-bg-soft) 0%, var(--trainer-bg) 100%);
}

body.trainer-page::before {
  content: "";
  position: fixed;
  width: 26rem;
  height: 26rem;
  left: -8rem;
  top: 7rem;
  border-radius: 999px;
  background: rgba(203, 232, 247, 0.78);
  filter: blur(48px);
  opacity: 0.72;
  pointer-events: none;
}

body.trainer-page.app-body::after {
  content: "";
  position: fixed;
  width: 28rem;
  height: 28rem;
  right: -10rem;
  bottom: -9rem;
  border-radius: 999px;
  background: rgba(201, 239, 207, 0.72);
  filter: blur(54px);
  opacity: 0.72;
  pointer-events: none;
}

body.trainer-page .product-shell-minimal {
  grid-template-columns: 92px minmax(0, 1fr);
}

body.trainer-page .app-rail {
  border-right: 1px solid rgba(255, 255, 255, 0.84);
  background: rgba(252, 253, 252, 0.72);
  backdrop-filter: blur(24px);
  box-shadow: 8px 0 24px rgba(206, 214, 224, 0.12);
}

body.trainer-page .rail-brand,
body.trainer-page .rail-mini,
body.trainer-page .rail-link {
  border: 1px solid rgba(255, 255, 255, 0.96);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(242, 246, 244, 0.96));
  box-shadow: var(--trainer-shadow-soft);
}

body.trainer-page .rail-brand,
body.trainer-page .rail-mini {
  color: var(--trainer-text);
}

body.trainer-page .rail-link {
  color: var(--trainer-text-soft);
}

body.trainer-page .rail-link:hover,
body.trainer-page .rail-link:focus-visible,
body.trainer-page .rail-link.active,
body.trainer-page .section-tabs.rail-nav a.active {
  color: var(--trainer-mint-strong);
  background: linear-gradient(145deg, rgba(255, 255, 255, 1), rgba(235, 248, 239, 0.95));
  border-color: rgba(197, 233, 203, 0.92);
}

body.trainer-page .minimal-main {
  max-width: 1400px;
  padding: 1.6rem 1.6rem 2rem;
  gap: 1rem;
}

body.trainer-page .minimal-panel {
  gap: 1rem;
}

body.trainer-page .minimal-header {
  align-items: center;
  gap: 1rem;
}

body.trainer-page .section-label {
  color: var(--trainer-mint-strong);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.trainer-page .trainer-header-copy {
  max-width: 36rem;
}

body.trainer-page .trainer-header h1,
body.trainer-page .content-card-head h2 {
  color: var(--trainer-text);
  font-family: var(--font-sf-display);
  font-weight: 600;
  letter-spacing: -0.06em;
}

body.trainer-page .trainer-header h1 {
  max-width: 10ch;
  font-size: clamp(2.4rem, 4vw, 4rem);
  line-height: 0.92;
}

body.trainer-page .trainer-header p,
body.trainer-page .content-card-head p,
body.trainer-page .target-row p,
body.trainer-page .target-row small,
body.trainer-page .clean-list li,
body.trainer-page .note-copy,
body.trainer-page .note-copy p,
body.trainer-page .assignment-context,
body.trainer-page .content-note p {
  color: var(--trainer-text-soft);
}

body.trainer-page .trainer-header p {
  max-width: 33rem;
  margin-top: 0.75rem;
  font-size: 1rem;
  line-height: 1.6;
}

body.trainer-page .trainer-header-actions {
  align-items: center;
  gap: 0.75rem;
}

body.trainer-page .trainer-kpi {
  min-width: 8.25rem;
  gap: 0.28rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(243, 247, 245, 0.96));
  box-shadow: var(--trainer-shadow-soft);
}

body.trainer-page .trainer-kpi span,
body.trainer-page .target-sidebar-meta span {
  color: var(--trainer-text-dim);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.trainer-page .trainer-kpi strong {
  color: var(--trainer-text);
  font-size: 1.05rem;
  letter-spacing: -0.04em;
}

body.trainer-page .app-solid-button,
body.trainer-page .minimal-main .app-solid-button {
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--trainer-mint), var(--trainer-mint-strong));
  color: #ffffff;
  box-shadow: 0 18px 30px rgba(98, 211, 111, 0.22);
}

body.trainer-page .app-solid-button:hover,
body.trainer-page .app-solid-button:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.02);
}

body.trainer-page .app-link-button,
body.trainer-page .minimal-main .app-link-button,
body.trainer-page .small-button,
body.trainer-page .nav-icon-button {
  border: 1px solid var(--trainer-line-strong);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--trainer-text);
  box-shadow: var(--trainer-shadow-soft);
}

body.trainer-page .content-card,
body.trainer-page .content-note,
body.trainer-page .message-note {
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(242, 246, 244, 0.94));
  box-shadow: var(--trainer-shadow);
}

body.trainer-page .content-card-head,
body.trainer-page .content-card-body,
body.trainer-page .content-card-actions,
body.trainer-page .content-block,
body.trainer-page .content-note,
body.trainer-page .toolbar-row,
body.trainer-page .subtle-tabs {
  padding-inline: 1.15rem;
}

body.trainer-page .content-card-head {
  padding-top: 1.2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--trainer-line);
  background: transparent;
}

body.trainer-page .content-card-head h2 {
  font-size: clamp(1.35rem, 2vw, 2.2rem);
  line-height: 0.98;
}

body.trainer-page .content-card-body {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

body.trainer-page .compact-card-head h2 {
  font-size: 1.35rem;
}

body.trainer-page .trainer-workspace {
  grid-template-columns: 276px minmax(0, 1fr) 360px;
  gap: 1rem;
  align-items: start;
}

body.trainer-page .target-sidebar-card,
body.trainer-page .month-card,
body.trainer-page .surface-detail {
  min-height: 100%;
}

body.trainer-page .target-sidebar-meta {
  gap: 0.35rem;
}

body.trainer-page .subtle-tabs {
  display: inline-flex;
  gap: 0.35rem;
  width: fit-content;
  padding: 0.3rem;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  background: rgba(239, 244, 241, 0.86);
  box-shadow: var(--trainer-shadow-soft);
}

body.trainer-page .subtle-tab {
  min-height: 2.3rem;
  padding: 0 0.95rem;
  border-radius: 999px;
  color: var(--trainer-text-soft);
  font-weight: 600;
}

body.trainer-page .subtle-tab.active {
  color: var(--trainer-text);
  border: 1px solid rgba(255, 255, 255, 0.96);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 8px 16px rgba(193, 201, 212, 0.16);
}

body.trainer-page .toolbar-row {
  padding-top: 0.15rem;
  padding-bottom: 0.8rem;
}

body.trainer-page .plain-input,
body.trainer-page .note-area {
  border: 1px solid var(--trainer-line-strong);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(241, 245, 244, 0.98), rgba(255, 255, 255, 0.96));
  box-shadow: var(--trainer-shadow-inset);
  color: var(--trainer-text);
}

body.trainer-page .plain-input::placeholder,
body.trainer-page .note-area::placeholder {
  color: var(--trainer-text-dim);
}

body.trainer-page .plain-input:focus-visible,
body.trainer-page .note-area:focus-visible {
  border-color: rgba(98, 211, 111, 0.28);
  box-shadow:
    var(--trainer-shadow-inset),
    0 0 0 4px rgba(98, 211, 111, 0.12);
}

body.trainer-page .target-row {
  gap: 0.3rem;
  padding: 0.95rem 1.05rem;
  border-top: 1px solid var(--trainer-line);
  background: transparent;
}

body.trainer-page .target-row:hover,
body.trainer-page .target-row:focus-visible {
  background: rgba(255, 255, 255, 0.58);
}

body.trainer-page .target-row.active {
  background: linear-gradient(135deg, rgba(98, 211, 111, 0.1), rgba(203, 232, 247, 0.18));
  box-shadow: inset 4px 0 0 rgba(98, 211, 111, 0.92);
}

body.trainer-page .target-row strong {
  color: var(--trainer-text);
  font-size: 1rem;
}

body.trainer-page .target-badge {
  min-height: 1.7rem;
  padding-inline: 0.6rem;
  border-radius: 999px;
  background: rgba(98, 211, 111, 0.14);
  color: #4d9c57;
  font-size: 0.72rem;
  font-weight: 600;
}

body.trainer-page .month-card {
  border-radius: 34px;
}

body.trainer-page .month-toolbar {
  padding: 0 1.15rem 0.95rem;
}

body.trainer-page .week-nav {
  gap: 0.5rem;
}

body.trainer-page .month-legend {
  gap: 0.85rem;
  padding: 0 1.15rem 0.8rem;
}

body.trainer-page .month-legend span {
  color: var(--trainer-text-dim);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.trainer-page .legend-dot {
  width: 0.52rem;
  height: 0.52rem;
}

body.trainer-page .legend-dot-published,
body.trainer-page .month-day.is-published .month-marker {
  background: linear-gradient(90deg, var(--trainer-mint), var(--trainer-mint-strong));
}

body.trainer-page .legend-dot-draft,
body.trainer-page .month-day.is-draft .month-marker {
  background: linear-gradient(90deg, #f2d38b, #e1aa58);
}

body.trainer-page .legend-dot-group,
body.trainer-page .month-day.is-group .month-marker {
  background: linear-gradient(90deg, #9bcfe7, #b8e2f4);
}

body.trainer-page .month-label {
  color: var(--trainer-text);
  font-family: var(--font-sf-display);
  font-size: 1.1rem;
  font-weight: 600;
}

body.trainer-page .month-weekdays {
  padding: 0 1.15rem;
  border-top: 1px solid var(--trainer-line);
  border-bottom: 1px solid var(--trainer-line);
}

body.trainer-page .month-weekdays span {
  color: var(--trainer-text-dim);
  padding: 0.72rem 0.2rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

body.trainer-page .month-grid {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(241, 246, 244, 0.52));
}

body.trainer-page .month-day,
body.trainer-page .month-empty {
  min-height: 106px;
  border-right: 1px solid var(--trainer-line);
  border-bottom: 1px solid var(--trainer-line);
}

body.trainer-page .month-empty {
  background: rgba(249, 251, 250, 0.82);
}

body.trainer-page .month-day {
  gap: 0.45rem;
  padding: 0.7rem 0.65rem;
  background: rgba(255, 255, 255, 0.24);
  transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

body.trainer-page .month-day:hover,
body.trainer-page .month-day:focus-visible {
  background: rgba(255, 255, 255, 0.72);
  transform: translateY(-1px);
}

body.trainer-page .month-day.active {
  background: linear-gradient(180deg, rgba(98, 211, 111, 0.16), rgba(203, 232, 247, 0.22));
  box-shadow: inset 0 0 0 1px rgba(98, 211, 111, 0.42);
}

body.trainer-page .month-day-number {
  color: var(--trainer-text);
  font-family: var(--font-sf-display);
  font-size: 0.94rem;
  font-weight: 600;
}

body.trainer-page .month-day-copy {
  gap: 0.2rem;
}

body.trainer-page .month-day-copy strong {
  color: var(--trainer-text);
  font-size: 0.76rem;
  line-height: 1.24;
}

body.trainer-page .month-day-copy span,
body.trainer-page .month-day.is-empty .month-day-copy {
  display: none;
}

body.trainer-page .month-marker {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
}

body.trainer-page .workspace-detail {
  position: sticky;
  top: 1.5rem;
  align-self: start;
}

body.trainer-page .surface-detail {
  border-radius: 34px;
}

body.trainer-page .detail-pills {
  gap: 0.45rem;
}

body.trainer-page .status-pill {
  min-height: 2rem;
  padding-inline: 0.75rem;
  border: 1px solid var(--trainer-line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--trainer-text-soft);
}

body.trainer-page .content-block strong,
body.trainer-page .detail-section-title,
body.trainer-page .field-label {
  display: block;
  color: var(--trainer-text-dim);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.trainer-page .content-block strong {
  margin-bottom: 0.6rem;
}

body.trainer-page .clean-list li {
  padding: 0.72rem 0;
  border-bottom-color: var(--trainer-line);
}

body.trainer-page .clean-list li strong {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--trainer-text);
  font-weight: 600;
}

body.trainer-page .split-notes {
  grid-template-columns: 1fr;
  gap: 0.8rem;
  padding: 0 1.15rem 1rem;
}

body.trainer-page .content-note {
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(241, 245, 244, 0.98), rgba(255, 255, 255, 0.94));
  box-shadow: var(--trainer-shadow-inset);
}

body.trainer-page .detail-editor {
  margin-top: 0.15rem;
  padding-top: 1rem;
  border-top: 1px solid var(--trainer-line);
}

body.trainer-page .detail-editor-head {
  display: flex;
  justify-content: space-between;
  gap: 0.85rem;
  align-items: start;
  margin-bottom: 0.95rem;
}

body.trainer-page .detail-section-title {
  margin-bottom: 0.25rem;
  color: var(--trainer-text);
  font-size: 0.88rem;
  letter-spacing: 0;
  text-transform: none;
}

body.trainer-page .detail-editor-head p {
  margin: 0;
  color: var(--trainer-text-soft);
  line-height: 1.45;
}

body.trainer-page .assignment-context {
  display: inline-flex;
  align-items: center;
  min-height: 2.15rem;
  padding: 0 0.8rem;
  border: 1px solid rgba(98, 211, 111, 0.18);
  border-radius: 999px;
  background: rgba(98, 211, 111, 0.12);
  color: #4d9c57;
}

body.trainer-page .assignment-form {
  gap: 0.9rem;
}

body.trainer-page .template-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

body.trainer-page .template-pill {
  min-height: 2.45rem;
  padding: 0 0.9rem;
  border: 1px solid var(--trainer-line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--trainer-text-soft);
  box-shadow: var(--trainer-shadow-soft);
}

body.trainer-page .template-pill:hover,
body.trainer-page .template-pill:focus-visible {
  transform: translateY(-1px);
}

body.trainer-page .template-pill.active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--trainer-mint), var(--trainer-mint-strong));
  color: #ffffff;
  box-shadow: 0 16px 28px rgba(98, 211, 111, 0.24);
}

body.trainer-page .note-area {
  min-height: 88px;
  padding: 0.85rem 0.95rem;
}

body.trainer-page .slim-actions {
  gap: 0.7rem;
  padding-inline: 0;
  padding-top: 0.1rem;
  padding-bottom: 0;
  border-top: 0;
}

body.trainer-page .text-button {
  color: var(--trainer-text-dim);
  font-size: 0.84rem;
}

body.trainer-page .notification-card,
body.trainer-page .report-card,
body.trainer-page .profile-row {
  border-bottom-color: var(--trainer-line);
}

@media (max-width: 1180px) {
  body.trainer-page .trainer-workspace {
    grid-template-columns: 1fr;
  }

  body.trainer-page .workspace-detail {
    position: static;
  }
}

@media (max-width: 900px) {
  body.trainer-page .product-shell-minimal {
    grid-template-columns: 1fr;
  }

  body.trainer-page .app-rail {
    position: sticky;
    top: 0;
    z-index: 20;
    flex-direction: row;
    height: auto;
    padding: 0.8rem 1rem;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.84);
  }

  body.trainer-page .rail-nav.section-tabs {
    margin-left: auto;
    display: inline-flex;
  }

  body.trainer-page .rail-bottom {
    display: none;
  }

  body.trainer-page .minimal-main {
    padding: 1.1rem 1rem 4.5rem;
  }

  body.trainer-page .trainer-header,
  body.trainer-page .content-card-head,
  body.trainer-page .content-card-actions,
  body.trainer-page .detail-editor-head {
    flex-direction: column;
    align-items: stretch;
  }

  body.trainer-page .trainer-header h1 {
    max-width: none;
    font-size: clamp(2rem, 10vw, 2.8rem);
  }

  body.trainer-page .trainer-header-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.trainer-page #trainer-open-client-top-link {
    grid-column: 1 / -1;
    justify-content: center;
  }

  body.trainer-page .month-day,
  body.trainer-page .month-empty {
    min-height: 82px;
  }

  body.trainer-page .month-day {
    padding: 0.55rem 0.45rem;
  }

  body.trainer-page .month-day-copy strong {
    font-size: 0.68rem;
  }
}

body.trainer-page .trainer-workspace-sections {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

body.trainer-page .trainer-stage-card {
  overflow: hidden;
}

body.trainer-page .trainer-stage-head {
  align-items: end;
}

body.trainer-page .stage-index {
  display: inline-block;
  margin-bottom: 0.45rem;
  color: var(--trainer-text-dim);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.trainer-page .target-stage-body,
body.trainer-page .calendar-stage-body {
  display: grid;
  gap: 0;
}

body.trainer-page .target-stage-body .subtle-tabs {
  margin-bottom: 0.85rem;
}

body.trainer-page .target-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  padding: 0.15rem 1.15rem 1.15rem;
}

body.trainer-page .target-row {
  border-top: 0;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(242, 246, 244, 0.94));
  box-shadow: var(--trainer-shadow-soft);
}

body.trainer-page .target-row.active {
  border-color: rgba(98, 211, 111, 0.22);
  box-shadow:
    inset 4px 0 0 rgba(98, 211, 111, 0.92),
    var(--trainer-shadow-soft);
}

body.trainer-page .target-row-head {
  align-items: start;
}

body.trainer-page .calendar-stage-body {
  padding-bottom: 1.15rem;
}

body.trainer-page .calendar-focus-strip {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin: 1rem 1.15rem 0;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(241, 245, 244, 0.98), rgba(255, 255, 255, 0.96));
  box-shadow: var(--trainer-shadow-inset);
}

body.trainer-page .calendar-focus-copy {
  display: grid;
  gap: 0.35rem;
}

body.trainer-page .calendar-focus-copy strong {
  color: var(--trainer-text);
  font-family: var(--font-sf-display);
  font-size: 1.15rem;
  line-height: 1;
  letter-spacing: -0.04em;
}

body.trainer-page .calendar-focus-copy p {
  margin: 0;
  color: var(--trainer-text-soft);
  line-height: 1.5;
}

body.trainer-page .publish-stage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 1rem;
  align-items: start;
}

body.trainer-page .publish-stage-summary {
  display: grid;
  gap: 0.9rem;
}

body.trainer-page .publish-editor-card {
  margin-top: 0;
  padding: 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(241, 245, 244, 0.98), rgba(255, 255, 255, 0.96));
  box-shadow: var(--trainer-shadow-inset);
}

body.trainer-page .publish-editor-card .detail-editor-head {
  margin-bottom: 0.9rem;
}

body.trainer-page .publish-editor-card .assignment-form {
  gap: 0.85rem;
}

@media (max-width: 1180px) {
  body.trainer-page .target-list,
  body.trainer-page .publish-stage-grid {
    grid-template-columns: 1fr;
  }

  body.trainer-page .calendar-focus-strip {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 900px) {
  body.trainer-page .target-list {
    padding: 0.15rem 1rem 1rem;
  }

  body.trainer-page .calendar-focus-strip {
    margin: 0.9rem 1rem 0;
    padding: 0.95rem 1rem;
  }
}

body.trainer-page .builder-head-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 0.55rem;
}

body.trainer-page .trainer-workspace-sections.is-builder-open .publish-stage-grid {
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
}

body.trainer-page .builder-closed-state {
  padding: 1rem;
  border: 1px dashed var(--trainer-line-strong);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.52);
}

body.trainer-page .builder-closed-state p {
  margin: 0;
  color: var(--trainer-text-soft);
  line-height: 1.55;
}

body.trainer-page .builder-panel,
body.trainer-page .builder-structured,
body.trainer-page .builder-blocks {
  display: grid;
  gap: 1rem;
}

body.trainer-page .builder-raw-area {
  min-height: 8rem;
}

body.trainer-page .builder-template-row,
body.trainer-page .builder-blocks-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}

body.trainer-page .builder-template-row p,
body.trainer-page .builder-blocks-head p {
  margin: 0.25rem 0 0;
  color: var(--trainer-text-soft);
  line-height: 1.5;
}

body.trainer-page .builder-action-row {
  justify-content: space-between;
}

body.trainer-page .builder-block-card {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--trainer-shadow-soft);
}

body.trainer-page .builder-block-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}

body.trainer-page .builder-block-top strong {
  color: var(--trainer-text);
  font-size: 1rem;
  line-height: 1.2;
}

body.trainer-page .builder-block-index {
  display: inline-block;
  margin-bottom: 0.35rem;
  color: var(--trainer-text-dim);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.trainer-page .builder-block-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

body.trainer-page .builder-tool-button {
  min-height: 2rem;
  padding: 0 0.75rem;
  border: 1px solid var(--trainer-line-strong);
  border-radius: 999px;
  background: rgba(247, 250, 248, 0.94);
  color: var(--trainer-text-soft);
  font-size: 0.8rem;
  font-weight: 600;
}

body.trainer-page .builder-tool-button.is-danger {
  color: #b65f66;
}

body.trainer-page .builder-tool-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

body.trainer-page .builder-field-grid {
  display: grid;
  gap: 0.85rem;
}

body.trainer-page .builder-field-stack {
  display: grid;
  gap: 0.35rem;
}

body.trainer-page .builder-field-stack-full {
  grid-column: 1 / -1;
}

body.trainer-page .builder-params-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

body.trainer-page .builder-block-note {
  min-height: 6.2rem;
}

body.trainer-page .builder-video-picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65rem;
}

body.trainer-page .builder-video-select {
  min-width: 0;
}

body.trainer-page .builder-video-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

body.trainer-page .builder-video-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.15rem;
  padding: 0 0.75rem;
  border: 1px solid rgba(98, 211, 111, 0.18);
  border-radius: 999px;
  background: rgba(98, 211, 111, 0.1);
  color: #4d9c57;
  font-size: 0.8rem;
  font-weight: 600;
}

body.trainer-page .builder-video-chip small {
  color: var(--trainer-text-dim);
  font-size: 0.72rem;
}

body.trainer-page .builder-video-empty {
  color: var(--trainer-text-dim);
  font-size: 0.84rem;
}

.client-workout-card {
  display: grid;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--app-border);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.04);
}

.client-workout-card-head {
  display: grid;
  gap: 0.45rem;
}

.client-workout-card-head strong {
  font-size: 1rem;
  color: var(--app-copy-strong);
}

.client-workout-card p {
  margin: 0;
}

.client-workout-meta,
.client-video-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.client-workout-meta span,
.client-video-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 1.95rem;
  padding: 0 0.7rem;
  border: 1px solid var(--app-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--app-copy);
  font-size: 0.78rem;
}

.client-video-chip small {
  color: var(--app-copy-soft);
  font-size: 0.7rem;
}

@media (max-width: 1180px) {
  body.trainer-page .trainer-workspace-sections.is-builder-open .publish-stage-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  body.trainer-page .builder-head-actions,
  body.trainer-page .builder-template-row,
  body.trainer-page .builder-blocks-head {
    flex-direction: column;
    align-items: stretch;
  }

  body.trainer-page .builder-action-row,
  body.trainer-page .builder-video-picker,
  body.trainer-page .builder-params-grid {
    grid-template-columns: 1fr;
  }

  body.trainer-page .builder-block-top {
    flex-direction: column;
  }
}

body.trainer-page .trainer-workspace-sections {
  grid-template-columns: 320px minmax(0, 1fr);
  grid-template-areas:
    "target calendar"
    "publish publish";
  align-items: start;
  gap: 1.1rem;
}

body.trainer-page .target-stage-card {
  grid-area: target;
}

body.trainer-page .calendar-stage-card {
  grid-area: calendar;
}

body.trainer-page .publish-stage-card {
  grid-area: publish;
}

body.trainer-page .target-list {
  grid-template-columns: 1fr;
  max-height: 34rem;
  overflow: auto;
  padding: 0.15rem 1rem 1rem;
}

body.trainer-page .publish-stage-grid {
  grid-template-columns: 1fr;
  gap: 1rem;
}

body.trainer-page .publish-stage-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

body.trainer-page .day-plan-card {
  grid-column: 1 / -1;
}

body.trainer-page .day-side-card,
body.trainer-page .day-plan-card {
  min-height: 100%;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(244, 248, 246, 0.96));
  box-shadow: var(--trainer-shadow-soft);
}

body.trainer-page .summary-block-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 0.8rem;
}

body.trainer-page .summary-block-head strong {
  display: block;
  margin-top: 0.2rem;
  color: var(--trainer-text);
}

body.trainer-page .summary-block-hint {
  color: var(--trainer-text-dim);
  font-size: 0.76rem;
  font-weight: 600;
  white-space: nowrap;
}

body.trainer-page .publish-stage-summary .clean-list {
  gap: 0.75rem;
}

body.trainer-page .publish-stage-summary .clean-list li {
  padding: 0.7rem 0;
}

body.trainer-page .publish-stage-summary .clean-list li strong {
  display: block;
}

body.trainer-page .publish-editor-card {
  padding: 1rem;
}

body.trainer-page .builder-closed-state {
  padding: 1.1rem 1.15rem;
  border-style: solid;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(244, 248, 246, 0.8));
}

body.trainer-page .builder-panel .assignment-form {
  gap: 1rem;
}

body.trainer-page .builder-step-card {
  display: grid;
  gap: 0.9rem;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(245, 248, 247, 0.98));
  box-shadow: var(--trainer-shadow-soft);
}

body.trainer-page .builder-step-primary {
  background: linear-gradient(145deg, rgba(249, 252, 250, 0.98), rgba(244, 250, 245, 0.98));
}

body.trainer-page .builder-step-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}

body.trainer-page .builder-step-copy {
  display: grid;
  gap: 0.25rem;
}

body.trainer-page .builder-step-copy p {
  margin: 0;
  color: var(--trainer-text-soft);
  line-height: 1.5;
}

body.trainer-page .builder-step-index {
  color: #58aa64;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.trainer-page .builder-step-hint {
  align-self: center;
  color: var(--trainer-text-dim);
  font-size: 0.76rem;
  font-weight: 600;
  text-align: right;
}

body.trainer-page .builder-action-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
}

body.trainer-page .builder-action-row > *:first-child {
  justify-self: start;
}

body.trainer-page .builder-action-row > *:last-child {
  justify-self: end;
}

body.trainer-page .builder-raw-area {
  min-height: 9.5rem;
}

body.trainer-page .builder-blocks-head {
  margin-bottom: 0;
}

body.trainer-page .builder-publish-bar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
  padding-top: 0.1rem;
}

body.trainer-page .builder-publish-copy {
  display: grid;
  gap: 0.25rem;
}

body.trainer-page .builder-publish-copy strong {
  color: var(--trainer-text);
}

body.trainer-page .builder-publish-copy p {
  margin: 0;
  color: var(--trainer-text-soft);
  line-height: 1.5;
  max-width: 34rem;
}

body.trainer-page .trainer-workspace-sections.is-builder-open .publish-stage-summary {
  display: none;
}

body.trainer-page .trainer-workspace-sections.is-builder-open .publish-editor-card {
  border-color: rgba(163, 233, 170, 0.48);
  box-shadow:
    0 28px 70px rgba(122, 149, 134, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

@media (max-width: 1180px) {
  body.trainer-page .trainer-workspace-sections {
    grid-template-columns: 1fr;
    grid-template-areas:
      "target"
      "calendar"
      "publish";
  }

  body.trainer-page .publish-stage-summary {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  body.trainer-page .target-list {
    max-height: none;
  }

  body.trainer-page .summary-block-head,
  body.trainer-page .builder-step-head,
  body.trainer-page .builder-publish-bar {
    flex-direction: column;
    align-items: stretch;
  }

  body.trainer-page .summary-block-hint,
  body.trainer-page .builder-step-hint {
    text-align: left;
    white-space: normal;
  }

  body.trainer-page .builder-action-row {
    grid-template-columns: 1fr;
  }

  body.trainer-page .builder-action-row > *:last-child,
  body.trainer-page .builder-action-row > *:first-child {
    justify-self: stretch;
  }
}
body.trainer-ops-page {
  --ops-bg: #f5f8fb;
  --ops-surface: #ffffff;
  --ops-surface-soft: #f8fbfd;
  --ops-line: #dbe6ea;
  --ops-line-strong: #cfdce2;
  --ops-text: #20324b;
  --ops-text-soft: #6d7f97;
  --ops-text-muted: #91a0b3;
  --ops-accent: #7fd792;
  --ops-accent-deep: #5fbc74;
  --ops-accent-soft: rgba(127, 215, 146, 0.16);
  --ops-button-primary-bg: #dceee1;
  --ops-button-primary-border: rgba(111, 149, 120, 0.16);
  --ops-button-primary-text: #4f6a58;
  --ops-button-secondary-bg: rgba(255, 255, 255, 0.98);
  --ops-button-secondary-border: rgba(32, 50, 75, 0.1);
  --ops-button-secondary-text: #56687f;
  --ops-warning: #f4b652;
  --ops-danger: #eb7f7f;
  --ops-shadow: 0 22px 50px rgba(27, 52, 85, 0.08);
  background:
    radial-gradient(circle at left 24%, rgba(178, 234, 255, 0.38), transparent 26%),
    linear-gradient(180deg, #f7fbfd 0%, #eff5f9 100%);
  color: var(--ops-text);
}

body.trainer-ops-page::before,
body.trainer-ops-page.app-body::after {
  display: none;
}

body.trainer-ops-page .ops-shell {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  min-height: 100vh;
}

body.trainer-ops-page .ops-rail {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  height: 100vh;
  padding: 18px 10px;
  border-right: 1px solid rgba(32, 50, 75, 0.06);
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(22px);
}

body.trainer-ops-page .ops-brand,
body.trainer-ops-page .ops-rail-profile {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--ops-line);
  box-shadow: 0 10px 24px rgba(27, 52, 85, 0.06);
  color: var(--ops-text);
  font-weight: 700;
  text-decoration: none;
}

body.trainer-ops-page .ops-rail-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  align-items: center;
}

body.trainer-ops-page .ops-rail-link {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 16px;
  color: var(--ops-text-soft);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(32, 50, 75, 0.06);
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

body.trainer-ops-page .ops-rail-link:hover,
body.trainer-ops-page .ops-rail-link:focus-visible,
body.trainer-ops-page .ops-rail-link.active {
  background: rgba(255, 255, 255, 0.96);
  color: var(--ops-text);
  transform: translateY(-1px);
}

body.trainer-ops-page .ops-rail-link.active {
  background: linear-gradient(135deg, rgba(127, 215, 146, 0.22), rgba(127, 215, 146, 0.1));
  border-color: rgba(95, 188, 116, 0.2);
  color: #215936;
}

body.trainer-ops-page .ops-rail-link::after {
  content: attr(data-label);
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(32, 50, 75, 0.9);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-50%) translateX(-4px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

body.trainer-ops-page .ops-rail-link:hover::after,
body.trainer-ops-page .ops-rail-link:focus-visible::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

body.trainer-ops-page .ops-rail-icon {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
}

body.trainer-ops-page .ops-rail-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.trainer-ops-page .ops-rail-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid var(--ops-line);
  background: var(--ops-surface-soft);
  font-size: 13px;
  font-weight: 700;
}

body.trainer-ops-page .ops-rail-link small {
  display: none;
}

body.trainer-ops-page .ops-main {
  padding: 28px 32px 40px;
}

body.trainer-ops-page .ops-page-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 24px;
}

body.trainer-ops-page .ops-title-block {
  display: grid;
  gap: 8px;
  max-width: 760px;
}

body.trainer-ops-page .ops-kicker {
  margin: 0;
  color: var(--ops-text-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body.trainer-ops-page .ops-title-block h1 {
  margin: 0;
  color: var(--ops-text);
  font-family: var(--font-sf-display);
  font-size: clamp(2rem, 3vw, 3.2rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.05em;
}

body.trainer-ops-page .ops-title-block p {
  margin: 0;
  max-width: 760px;
  color: var(--ops-text-soft);
  font-size: 15px;
  line-height: 1.6;
}

body.trainer-ops-page .ops-head-actions,
body.trainer-ops-page .ops-inline-actions,
body.trainer-ops-page .ops-toolbar,
body.trainer-ops-page .ops-toolbar-group,
body.trainer-ops-page .ops-builder-video-row,
body.trainer-ops-page .ops-mini-kpis,
body.trainer-ops-page .ops-chip-row,
body.trainer-ops-page .ops-billing-summary {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

body.trainer-ops-page .ops-toolbar {
  justify-content: space-between;
  width: 100%;
}

body.trainer-ops-page .ops-toolbar-group.is-right {
  justify-content: flex-end;
}

body.trainer-ops-page .ops-surface {
  border: 1px solid rgba(32, 50, 75, 0.08);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--ops-shadow);
  padding: 22px 24px;
}

body.trainer-ops-page .ops-surface-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 18px;
}

body.trainer-ops-page .ops-surface-head strong,
body.trainer-ops-page .ops-context-strip strong,
body.trainer-ops-page .ops-day-column strong,
body.trainer-ops-page .ops-detail-row strong,
body.trainer-ops-page .ops-library-copy strong,
body.trainer-ops-page .ops-notification-row strong,
body.trainer-ops-page .ops-builder-block strong {
  color: var(--ops-text);
  font-family: var(--font-sf-display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

body.trainer-ops-page .ops-surface-head p,
body.trainer-ops-page .ops-note,
body.trainer-ops-page .ops-day-summary p,
body.trainer-ops-page .ops-empty p,
body.trainer-ops-page .ops-notification-row p,
body.trainer-ops-page .ops-library-copy p,
body.trainer-ops-page .ops-detail-row span {
  margin: 0;
  color: var(--ops-text-soft);
  font-size: 14px;
  line-height: 1.55;
}

body.trainer-ops-page .ops-banner,
body.trainer-ops-page .ops-link-box {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(247, 250, 252, 0.95), rgba(127, 215, 146, 0.12));
  border: 1px solid rgba(127, 215, 146, 0.14);
  color: var(--ops-text-soft);
  font-size: 14px;
}

body.trainer-ops-page .ops-home-flash {
  margin-bottom: 14px;
}

body.trainer-ops-page .ops-button,
body.trainer-ops-page .ops-chip-link,
body.trainer-ops-page .ops-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid var(--ops-button-secondary-border);
  background: var(--ops-button-secondary-bg);
  color: var(--ops-button-secondary-text);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

body.trainer-ops-page .ops-button:hover,
body.trainer-ops-page .ops-button:focus-visible,
body.trainer-ops-page .ops-chip-link:hover,
body.trainer-ops-page .ops-chip-link:focus-visible,
body.trainer-ops-page .ops-back-link:hover,
body.trainer-ops-page .ops-back-link:focus-visible,
body.trainer-ops-page .ops-icon-button:hover,
body.trainer-ops-page .ops-icon-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(27, 52, 85, 0.08);
}

body.trainer-ops-page .ops-button.is-primary {
  border-color: var(--ops-button-primary-border);
  background: var(--ops-button-primary-bg);
  color: var(--ops-button-primary-text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

body.trainer-ops-page .ops-button.is-ghost,
body.trainer-ops-page .ops-chip-link,
body.trainer-ops-page .ops-back-link,
body.trainer-ops-page .ops-icon-button {
  background: var(--ops-button-secondary-bg);
  color: var(--ops-button-secondary-text);
}

body.trainer-ops-page .ops-button.is-danger {
  border-color: rgba(32, 50, 75, 0.1);
  color: #7a6670;
  background: rgba(255, 255, 255, 0.98);
}

body.trainer-ops-page .ops-button.is-small {
  min-height: 34px;
  padding-inline: 11px;
  border-radius: 12px;
  font-size: 12px;
}

body.trainer-ops-page .ops-icon-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--ops-button-secondary-border);
  border-radius: 14px;
  color: var(--ops-button-secondary-text);
  cursor: pointer;
}

body.trainer-ops-page .ops-select,
body.trainer-ops-page .ops-input,
body.trainer-ops-page .ops-textarea {
  width: 100%;
  border: 1px solid var(--ops-line);
  border-radius: 16px;
  background: rgba(248, 251, 253, 0.98);
  color: var(--ops-text);
  font: inherit;
}

body.trainer-ops-page .ops-input,
body.trainer-ops-page .ops-select {
  min-height: 46px;
  padding: 0 14px;
}

body.trainer-ops-page .ops-textarea {
  min-height: 120px;
  padding: 14px;
  resize: vertical;
}

body.trainer-ops-page .ops-textarea.is-compact {
  min-height: 84px;
}

body.trainer-ops-page .ops-input::placeholder,
body.trainer-ops-page .ops-textarea::placeholder {
  color: #9aa9bb;
}

body.trainer-ops-page .ops-input:focus-visible,
body.trainer-ops-page .ops-select:focus-visible,
body.trainer-ops-page .ops-textarea:focus-visible {
  outline: none;
  border-color: rgba(95, 188, 116, 0.42);
  box-shadow: 0 0 0 4px rgba(127, 215, 146, 0.15);
}

body.trainer-ops-page .ops-select-wide {
  min-width: 220px;
}

body.trainer-ops-page .ops-segment {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border-radius: 16px;
  background: rgba(247, 250, 252, 0.9);
  border: 1px solid var(--ops-button-secondary-border);
}

body.trainer-ops-page .ops-segment button,
body.trainer-ops-page .ops-chip,
body.trainer-ops-page .ops-chip-action {
  border: 0;
  background: transparent;
  color: var(--ops-text-soft);
  font: inherit;
  cursor: pointer;
}

body.trainer-ops-page .ops-segment button {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
}

body.trainer-ops-page .ops-segment button.is-active {
  background: var(--ops-button-primary-bg);
  color: var(--ops-button-primary-text);
  box-shadow: none;
}

body.trainer-ops-page .ops-context-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

body.trainer-ops-page .ops-context-strip span {
  display: block;
  margin-top: 4px;
  color: var(--ops-text-soft);
  font-size: 14px;
}

body.trainer-ops-page .ops-mini-kpis article,
body.trainer-ops-page .ops-billing-summary article {
  min-width: 148px;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--ops-surface-soft);
  border: 1px solid rgba(32, 50, 75, 0.06);
}

body.trainer-ops-page .ops-mini-kpis strong,
body.trainer-ops-page .ops-billing-summary strong {
  display: block;
  font-size: 22px;
}

body.trainer-ops-page .ops-mini-kpis span,
body.trainer-ops-page .ops-billing-summary span {
  display: block;
  margin-top: 4px;
  color: var(--ops-text-soft);
  font-size: 12px;
}

body.trainer-ops-page .ops-week-shell {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  gap: 12px;
  align-items: stretch;
}

body.trainer-ops-page .ops-week-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
}

body.trainer-ops-page .ops-week-nav {
  position: static;
  align-self: stretch;
  width: 52px;
  min-height: 100%;
  border-radius: 22px;
  box-shadow: none;
  background: rgba(255, 255, 255, 0.72);
}

body.trainer-ops-page .ops-week-nav.is-left {
  grid-column: 1;
}

body.trainer-ops-page .ops-week-nav.is-right {
  grid-column: 3;
}

body.trainer-home-page .ops-month-shell {
  display: grid;
  gap: 12px;
  padding: 16px 18px 18px;
  border-radius: 24px;
}

body.trainer-home-page .ops-month-weekdays,
body.trainer-home-page .ops-month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
}

body.trainer-home-page .ops-month-weekdays span {
  padding: 0 4px;
  color: var(--ops-text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.trainer-home-page .ops-month-cell,
body.trainer-home-page .ops-month-empty {
  min-height: 164px;
  border-radius: 20px;
}

body.trainer-home-page .ops-month-empty {
  border: 1px dashed rgba(32, 50, 75, 0.08);
  background: rgba(248, 251, 253, 0.55);
}

body.trainer-home-page .ops-month-cell {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(32, 50, 75, 0.08);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 28px rgba(27, 52, 85, 0.05);
}

body.trainer-home-page .ops-month-cell.is-selected {
  border-color: rgba(95, 188, 116, 0.28);
  box-shadow: 0 18px 36px rgba(95, 188, 116, 0.1);
}

body.trainer-home-page .ops-month-cell.is-today .ops-month-number {
  color: var(--ops-button-primary-text);
}

body.trainer-home-page .ops-month-focus {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

body.trainer-home-page .ops-month-number {
  color: var(--ops-text);
  font-family: var(--font-sf-text);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

body.trainer-home-page .ops-month-copy {
  display: grid;
  gap: 4px;
}

body.trainer-home-page .ops-month-copy strong {
  color: var(--ops-text);
  font-family: var(--font-sf-text);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

body.trainer-home-page .ops-month-copy p {
  color: var(--ops-text-soft);
  font-size: 11px;
  line-height: 1.42;
}

body.trainer-home-page .ops-month-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
}

body.trainer-home-page .ops-month-actions .ops-button {
  width: 100%;
  text-align: center;
  line-height: 1.15;
  white-space: normal;
}

body.trainer-home-page .ops-month-actions .ops-button.is-ghost {
  order: 1;
}

body.trainer-home-page .ops-month-actions .ops-button.is-primary {
  order: 2;
}

body.trainer-ops-page .ops-day-column {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  align-content: start;
  gap: 10px;
  min-height: 320px;
  padding: 12px;
  border-radius: 22px;
  border: 1px solid rgba(32, 50, 75, 0.08);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 36px rgba(27, 52, 85, 0.06);
}

body.trainer-ops-page .ops-day-column.is-selected {
  border-color: rgba(95, 188, 116, 0.3);
  box-shadow: 0 20px 42px rgba(95, 188, 116, 0.12);
}

body.trainer-ops-page .ops-day-column.is-outside-month {
  opacity: 0.55;
}

body.trainer-ops-page .ops-day-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 10px;
}

body.trainer-ops-page .ops-day-focus {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  cursor: pointer;
}

body.trainer-ops-page .ops-day-head span {
  color: var(--ops-text-muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.trainer-ops-page .ops-day-head strong {
  font-family: var(--font-sf-text);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

body.trainer-ops-page .ops-day-state {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

body.trainer-ops-page .ops-day-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  height: 100%;
}

body.trainer-ops-page .ops-day-source {
  color: var(--ops-text-muted);
  font-size: 11px;
}

body.trainer-ops-page .ops-chip,
body.trainer-ops-page .ops-chip-action,
body.trainer-ops-page .ops-chip-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(241, 246, 250, 0.9);
  border: 1px solid rgba(32, 50, 75, 0.08);
  color: var(--ops-text-soft);
  font-size: 11px;
  font-weight: 600;
}

body.trainer-ops-page .ops-chip.is-static {
  cursor: default;
}

body.trainer-ops-page .ops-chip.is-active,
body.trainer-ops-page .ops-chip.is-published {
  background: rgba(127, 215, 146, 0.14);
  color: #4c7b58;
  border-color: rgba(127, 215, 146, 0.18);
}

body.trainer-ops-page .ops-chip.is-draft {
  background: rgba(248, 243, 234, 0.92);
  color: #8a7248;
  border-color: rgba(214, 188, 139, 0.26);
}

body.trainer-ops-page .ops-chip.is-recovery {
  background: rgba(244, 249, 245, 0.96);
  color: #6b816f;
  border-color: rgba(127, 215, 146, 0.14);
}

body.trainer-ops-page .ops-chip.is-muted {
  background: rgba(241, 246, 250, 0.86);
}

body.trainer-ops-page .ops-chip.is-video small {
  color: var(--ops-text-muted);
}

body.trainer-ops-page .ops-chip-action.is-danger {
  color: #a34f4f;
}

body.trainer-ops-page .ops-day-summary strong,
body.trainer-ops-page .ops-library-copy strong,
body.trainer-ops-page .ops-notification-row strong,
body.trainer-ops-page .ops-builder-block strong,
body.trainer-ops-page .ops-profile-hero strong {
  font-family: var(--font-sf-text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.15;
}

body.trainer-ops-page .ops-day-list,
body.trainer-ops-page .ops-side-list,
body.trainer-ops-page .ops-detail-list,
body.trainer-ops-page .ops-library-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
}

body.trainer-ops-page .ops-day-list {
  list-style: none;
}

body.trainer-ops-page .ops-day-list li,
body.trainer-ops-page .ops-detail-row,
body.trainer-ops-page .ops-library-row,
body.trainer-ops-page .ops-notification-row {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(32, 50, 75, 0.06);
  background: var(--ops-surface-soft);
}

body.trainer-ops-page .ops-day-list li strong {
  display: block;
  font-family: var(--font-sf-text);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

body.trainer-ops-page .ops-day-list li span {
  display: block;
  margin-top: 4px;
  color: var(--ops-text-soft);
  font-size: 11px;
  line-height: 1.4;
}

body.trainer-ops-page .ops-day-empty {
  display: grid;
  align-content: center;
  min-height: 92px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px dashed rgba(32, 50, 75, 0.14);
  background: rgba(248, 251, 253, 0.9);
}

body.trainer-home-page .ops-home-toolbar-surface {
  margin-bottom: 12px;
  padding: 16px 18px;
  border-radius: 24px;
}

body.trainer-home-page .ops-toolbar-home {
  display: grid;
  grid-template-columns: auto minmax(480px, 1fr);
  align-items: center;
  gap: 24px;
}

body.trainer-home-page .ops-home-toolbar-nav,
body.trainer-home-page .ops-home-toolbar-controls {
  flex-wrap: nowrap;
  min-width: 0;
}

body.trainer-home-page .ops-home-toolbar-controls {
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) auto;
  justify-content: end;
  align-items: center;
  gap: 12px;
}

body.trainer-home-page .ops-home-toolbar-controls .ops-segment,
body.trainer-home-page .ops-home-toolbar-controls .ops-button,
body.trainer-home-page .ops-home-toolbar-controls .ops-select {
  margin: 0;
}

body.trainer-home-page .ops-home-toolbar-controls .ops-button,
body.trainer-home-page .ops-home-toolbar-controls .ops-segment button,
body.trainer-home-page .ops-home-toolbar-nav .ops-button,
body.trainer-home-page .ops-home-toolbar-nav .ops-icon-button {
  white-space: nowrap;
}

body.trainer-home-page .ops-home-toolbar-controls .ops-select-wide {
  min-width: 0;
  width: 100%;
}

body.trainer-home-page .ops-home-focus-strip {
  margin-bottom: 14px;
  padding: 14px 18px;
}

body.trainer-home-page .ops-home-focus-copy strong {
  font-family: var(--font-sf-text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.08;
}

body.trainer-home-page .ops-home-focus-copy span {
  margin-top: 2px;
  font-size: 12px;
}

body.trainer-home-page .ops-home-kpis article {
  min-width: 116px;
  padding: 10px 12px;
  border-radius: 16px;
}

body.trainer-home-page .ops-home-kpis strong {
  font-family: var(--font-sf-text);
  font-size: 16px;
  font-weight: 600;
}

body.trainer-home-page .ops-toolbar-label {
  min-width: 126px;
  color: var(--ops-text);
  font-family: var(--font-sf-text);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

@media (max-width: 1180px) {
  body.trainer-home-page .ops-toolbar-home {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  body.trainer-home-page .ops-home-toolbar-controls {
    justify-content: stretch;
  }

  body.trainer-home-page .ops-month-shell {
    overflow-x: auto;
  }

  body.trainer-home-page .ops-month-weekdays,
  body.trainer-home-page .ops-month-grid {
    min-width: 920px;
  }
}

@media (max-width: 860px) {
  body.trainer-home-page .ops-home-toolbar-controls {
    grid-template-columns: 1fr;
  }
}

body.trainer-home-page .ops-day-summary {
  display: grid;
  gap: 5px;
}

body.trainer-home-page .ops-day-summary p,
body.trainer-home-page .ops-day-empty-text {
  font-size: 11px;
  line-height: 1.45;
}

body.trainer-home-page .ops-day-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
}

body.trainer-home-page .ops-day-actions .ops-button {
  width: 100%;
  text-align: center;
  line-height: 1.15;
  white-space: normal;
}

body.trainer-home-page .ops-day-actions .ops-button.is-ghost {
  order: 1;
}

body.trainer-home-page .ops-day-actions .ops-button.is-primary {
  order: 2;
}

body.trainer-home-page .ops-day-list {
  gap: 8px;
}

body.trainer-home-page .ops-day-list li {
  border-radius: 14px;
}

body.trainer-home-page .ops-recovery-card {
  padding: 14px;
  border-radius: 16px;
}

body.trainer-home-page .ops-recovery-card span {
  font-family: var(--font-sf-text);
  font-size: 15px;
  font-weight: 600;
}

body.trainer-ops-page .ops-recovery-card {
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(246, 250, 246, 0.98), rgba(127, 215, 146, 0.1));
  border: 1px solid rgba(127, 215, 146, 0.14);
}

body.trainer-ops-page .ops-recovery-card span {
  color: var(--ops-text);
  font-weight: 700;
}

body.trainer-ops-page .ops-grid-two,
body.trainer-ops-page .ops-notifications-layout,
body.trainer-ops-page .ops-builder-layout {
  display: grid;
  gap: 20px;
}

body.trainer-ops-page .ops-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 20px;
}

body.trainer-ops-page .ops-notifications-layout,
body.trainer-ops-page .ops-builder-layout {
  grid-template-columns: minmax(0, 1fr) 300px;
}

body.trainer-ops-page .ops-table-toolbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 220px;
  gap: 12px;
  align-items: center;
  margin-block: 18px;
}

body.trainer-ops-page .ops-table-toolbar.is-tight {
  grid-template-columns: minmax(0, 1fr) auto;
}

body.trainer-ops-page .ops-table-wrap {
  overflow: auto;
}

body.trainer-ops-page .ops-table {
  width: 100%;
  border-collapse: collapse;
}

body.trainer-ops-page .ops-table th,
body.trainer-ops-page .ops-table td {
  padding: 16px 12px;
  border-bottom: 1px solid rgba(32, 50, 75, 0.08);
  text-align: left;
  vertical-align: middle;
}

body.trainer-ops-page .ops-table th {
  color: var(--ops-text-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.trainer-ops-page .ops-table-user,
body.trainer-ops-page .ops-profile-hero {
  display: flex;
  align-items: center;
  gap: 14px;
}

body.trainer-ops-page .ops-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(127, 215, 146, 0.24), rgba(184, 231, 255, 0.4));
  color: #1f5230;
  font-weight: 700;
}

body.trainer-ops-page .ops-avatar.is-large {
  width: 72px;
  height: 72px;
  border-radius: 24px;
  font-size: 24px;
}

body.trainer-ops-page .ops-table-user span,
body.trainer-ops-page .ops-profile-hero span,
body.trainer-ops-page .ops-detail-row small,
body.trainer-ops-page .ops-side-list span {
  color: var(--ops-text-soft);
  font-size: 13px;
}

body.trainer-ops-page .ops-tabbar {
  display: flex;
  gap: 8px;
  margin: 22px 0 18px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(32, 50, 75, 0.08);
}

body.trainer-ops-page .ops-tabbar button {
  border: 0;
  background: transparent;
  color: var(--ops-text-soft);
  font: inherit;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
}

body.trainer-ops-page .ops-tabbar button.is-active {
  color: var(--ops-text);
  background: rgba(241, 246, 250, 0.9);
}

body.trainer-ops-page .ops-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
}

body.trainer-ops-page .ops-detail-row.is-list strong {
  font-size: 16px;
}

body.trainer-ops-page .ops-switch,
body.trainer-ops-page .ops-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ops-text-soft);
  font-size: 14px;
}

body.trainer-ops-page .ops-switch input,
body.trainer-ops-page .ops-check input {
  accent-color: var(--ops-accent-deep);
}

body.trainer-ops-page .ops-library-row {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}

body.trainer-ops-page .ops-library-badge {
  display: grid;
  place-items: center;
  min-height: 78px;
  border-radius: 20px;
  background: rgba(244, 182, 82, 0.16);
  color: #875f15;
}

body.trainer-ops-page .ops-library-badge strong {
  font-size: 20px;
}

body.trainer-ops-page .ops-notification-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

body.trainer-ops-page .ops-filter-panel {
  align-content: start;
}

body.trainer-ops-page .ops-filter-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

body.trainer-ops-page .ops-link-box span {
  overflow-wrap: anywhere;
}

body.trainer-ops-page .ops-builder-main,
body.trainer-ops-page .ops-builder-side,
body.trainer-ops-page .ops-builder-stack {
  display: grid;
  gap: 20px;
}

body.trainer-ops-page .ops-template-tools {
  display: grid;
  gap: 14px;
}

body.trainer-ops-page .ops-template-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(32, 50, 75, 0.08);
  background: rgba(248, 251, 253, 0.92);
}

body.trainer-ops-page .ops-template-panel.is-soft {
  background: linear-gradient(135deg, rgba(248, 251, 253, 0.96), rgba(127, 215, 146, 0.08));
  border-color: rgba(95, 188, 116, 0.16);
}

body.trainer-ops-page .ops-template-copy {
  display: grid;
  gap: 6px;
}

body.trainer-ops-page .ops-template-copy span {
  color: var(--ops-text-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

body.trainer-ops-page .ops-template-copy strong {
  color: var(--ops-text);
  font-family: var(--font-sf-display);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

body.trainer-ops-page .ops-template-copy p {
  margin: 0;
  color: var(--ops-text-soft);
  font-size: 14px;
  line-height: 1.55;
}

body.trainer-ops-page .ops-template-picker-row,
body.trainer-ops-page .ops-template-save-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
}

body.trainer-ops-page .ops-builder-stack label,
body.trainer-ops-page .ops-builder-field-grid label {
  display: grid;
  gap: 8px;
  color: var(--ops-text-soft);
  font-size: 13px;
}

body.trainer-ops-page .ops-builder-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

body.trainer-ops-page .ops-builder-blocks {
  display: grid;
  gap: 16px;
}

body.trainer-ops-page .ops-builder-block {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(32, 50, 75, 0.08);
  background: rgba(248, 251, 253, 0.96);
}

body.trainer-ops-page .ops-builder-block-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

body.trainer-ops-page .ops-builder-block strong {
  font-size: 18px;
}

body.trainer-ops-page .ops-builder-full {
  display: grid;
  gap: 8px;
}

body.trainer-ops-page .ops-builder-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-top: 18px;
}

body.trainer-ops-page .ops-mini-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

body.trainer-ops-page .ops-mini-day {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 12px;
  border: 1px solid rgba(32, 50, 75, 0.06);
  background: rgba(248, 251, 253, 0.96);
  color: var(--ops-text-soft);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}

body.trainer-ops-page .ops-mini-day.is-active {
  border-color: rgba(95, 188, 116, 0.34);
  background: rgba(127, 215, 146, 0.16);
  color: #23693a;
}

body.trainer-ops-page .ops-mini-day.is-published {
  color: var(--ops-text);
}

body.trainer-ops-page .ops-mini-day.is-draft {
  border-style: dashed;
}

body.trainer-ops-page .ops-side-list article {
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--ops-surface-soft);
  border: 1px solid rgba(32, 50, 75, 0.06);
}

body.trainer-ops-page .ops-side-list strong {
  display: block;
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.4;
}

body.trainer-ops-page .ops-empty {
  padding: 20px;
  border-radius: 20px;
  border: 1px dashed rgba(32, 50, 75, 0.14);
  background: rgba(248, 251, 253, 0.96);
}

@media (max-width: 1180px) {
  body.trainer-ops-page .ops-week-grid,
  body.trainer-ops-page .ops-grid-two,
  body.trainer-ops-page .ops-notifications-layout,
  body.trainer-ops-page .ops-builder-layout,
  body.trainer-ops-page .ops-table-toolbar {
    grid-template-columns: 1fr;
  }

  body.trainer-ops-page .ops-page-head,
  body.trainer-ops-page .ops-context-strip,
  body.trainer-ops-page .ops-builder-footer {
    align-items: start;
    flex-direction: column;
  }

  body.trainer-ops-page .ops-week-shell {
    grid-template-columns: 1fr;
  }

  body.trainer-ops-page .ops-week-nav {
    display: none;
  }
}

@media (max-width: 820px) {
  body.trainer-ops-page .ops-shell {
    grid-template-columns: 1fr;
  }

  body.trainer-ops-page .ops-rail {
    position: static;
    flex-direction: row;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    height: auto;
    padding: 16px;
    border-right: 0;
    border-bottom: 1px solid rgba(32, 50, 75, 0.06);
    overflow: auto;
  }

  body.trainer-ops-page .ops-rail-nav {
    flex-direction: row;
    gap: 8px;
    min-width: max-content;
  }

  body.trainer-ops-page .ops-rail-link::after {
    display: none;
  }

  body.trainer-ops-page .ops-main {
    padding: 18px 16px 32px;
  }

  body.trainer-ops-page .ops-week-grid {
    grid-template-columns: 1fr;
  }

  body.trainer-ops-page .ops-day-column {
    min-height: auto;
  }

  body.trainer-ops-page .ops-builder-field-grid,
  body.trainer-ops-page .ops-library-row {
    grid-template-columns: 1fr;
  }

  body.trainer-ops-page .ops-toolbar {
    justify-content: flex-start;
  }
}

body.client-page .client-main {
  gap: 1.15rem;
}

body.client-page .client-header {
  align-items: end;
  gap: 1rem;
}

body.client-page .client-header h1 {
  max-width: none;
}

body.client-page .client-header-actions,
body.client-page .client-day-actions,
body.client-page .client-day-meta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

body.client-page .client-focus-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  gap: 1rem;
  align-items: stretch;
}

body.client-page .client-assignment-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) 340px;
  gap: 1rem;
  align-items: start;
}

body.client-page .client-side-column {
  display: grid;
  gap: 1rem;
}

body.client-page .client-today-hero,
body.client-page .client-calendar-card,
body.client-page .client-assignment-card,
body.client-page .client-side-column .content-card {
  border-radius: 30px;
}

body.client-page .client-today-hero {
  display: grid;
  gap: 1rem;
  padding: 1.3rem 1.35rem;
}

body.client-page .client-today-hero-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 0.9rem;
}

body.client-page .client-today-kicker {
  color: #6a7680;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.client-page .client-today-title {
  display: block;
  margin: 0;
  color: #263243;
  font-family: var(--font-sf-display);
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.94;
}

body.client-page .client-day-summary {
  margin: 0;
  max-width: 44rem;
  color: #55616d;
  font-size: 0.98rem;
  line-height: 1.6;
}

body.client-page .client-day-pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.95rem;
  padding: 0 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(206, 214, 221, 0.9);
  background: rgba(248, 251, 253, 0.96);
  color: #56616c;
  font-size: 0.78rem;
  font-weight: 500;
}

body.client-page .client-coach-note {
  padding: 1rem 1.05rem;
}

body.client-page .client-calendar-card .content-card-head,
body.client-page .client-assignment-card .content-card-head,
body.client-page .client-side-column .content-card-head {
  padding-bottom: 0.9rem;
}

body.client-page .client-month-day {
  display: grid;
  gap: 0.65rem;
  align-content: start;
}

body.client-page .client-month-top {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: start;
}

body.client-page .client-month-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.7rem;
  padding: 0 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(216, 223, 228, 0.96);
  background: rgba(247, 250, 252, 0.96);
  color: #6b7681;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

body.client-page .client-month-chip.is-training {
  background: rgba(199, 228, 205, 0.66);
  border-color: rgba(173, 213, 182, 0.82);
  color: #4f7659;
}

body.client-page .client-month-chip.is-rest {
  background: rgba(235, 245, 239, 0.96);
  border-color: rgba(214, 227, 219, 0.92);
  color: #66786e;
}

body.client-page .client-month-chip.is-draft {
  background: rgba(250, 243, 231, 0.96);
  border-color: rgba(228, 207, 168, 0.92);
  color: #8a7146;
}

body.client-page .client-month-chip.is-empty {
  background: rgba(244, 247, 250, 0.96);
  color: #89949d;
}

body.client-page .client-month-copy {
  display: grid;
  gap: 0.25rem;
}

body.client-page .client-month-copy strong {
  color: #33404c;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.3;
}

body.client-page .client-month-copy p {
  margin: 0;
  color: #7c8892;
  font-size: 0.72rem;
  line-height: 1.38;
}

body.client-page .client-assignment-body {
  padding-top: 1rem;
}

body.client-page .client-assignment-block {
  min-height: 100%;
}

body.client-page .client-empty-state,
body.client-page .client-rest-card {
  display: grid;
  gap: 0.85rem;
  padding: 1.15rem 1.2rem;
  border-radius: 20px;
  border: 1px solid rgba(220, 227, 232, 0.92);
  background: linear-gradient(180deg, rgba(252, 253, 254, 0.98), rgba(246, 249, 251, 0.98));
}

body.client-page .client-empty-state strong,
body.client-page .client-rest-card strong {
  color: #2f3b47;
  font-size: 1rem;
  font-weight: 600;
}

body.client-page .client-empty-state p,
body.client-page .client-rest-card p {
  margin: 0;
  color: #64707c;
  line-height: 1.55;
}

body.client-page .client-rest-card-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: start;
}

body.client-page .client-rest-card-head span {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0 0.8rem;
  border-radius: 999px;
  background: rgba(199, 228, 205, 0.44);
  color: #53725b;
  font-size: 0.82rem;
  font-weight: 600;
}

body.client-page .client-workout-card {
  gap: 0.8rem;
  padding: 1rem 1.05rem;
  border-radius: 20px;
  border: 1px solid rgba(220, 227, 232, 0.9);
  background: linear-gradient(180deg, rgba(253, 254, 255, 0.98), rgba(247, 250, 252, 0.96));
}

body.client-page .client-workout-card-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.8rem;
  align-items: start;
}

body.client-page .client-workout-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(199, 228, 205, 0.58);
  color: #4f7258;
  font-size: 0.82rem;
  font-weight: 600;
  flex-shrink: 0;
}

body.client-page .client-workout-card-copy {
  display: grid;
  gap: 0.45rem;
}

body.client-page .client-workout-card-head strong {
  font-size: 1rem;
  font-weight: 600;
  color: #2d3945;
}

body.client-page .client-workout-card p {
  color: #5f6b77;
  line-height: 1.55;
}

body.client-page .client-workout-meta span,
body.client-page .client-video-chip {
  min-height: 1.85rem;
  padding: 0 0.68rem;
  border-color: rgba(216, 223, 228, 0.94);
  background: rgba(250, 252, 253, 0.98);
  color: #60707c;
  font-size: 0.76rem;
}

body.client-page .client-support-item,
body.client-page .client-upcoming-card {
  border-radius: 18px;
  border: 1px solid rgba(220, 227, 232, 0.9);
  background: rgba(250, 252, 253, 0.98);
}

body.client-page .client-support-item.is-empty {
  background: rgba(247, 250, 252, 0.9);
}

body.client-page .client-upcoming-card.is-empty {
  box-shadow: none;
}

@media (max-width: 1180px) {
  body.client-page .client-focus-grid,
  body.client-page .client-assignment-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body.client-page .client-header,
  body.client-page .client-today-hero-head,
  body.client-page .client-rest-card-head {
    align-items: stretch;
    flex-direction: column;
  }

  body.client-page .client-day-actions,
  body.client-page .client-header-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

body.client-ops-page .client-main {
  display: grid;
  gap: 24px;
}

body.client-ops-page .minimal-panel {
  display: grid;
  gap: 24px;
}

body.client-ops-page .client-header {
  margin-bottom: 0;
  align-items: end;
}

body.client-ops-page .client-header .ops-title-block {
  max-width: 760px;
}

body.client-ops-page .client-header .ops-title-block h1 {
  font-size: clamp(2rem, 3vw, 3rem);
}

body.client-ops-page .client-focus-grid {
  grid-template-columns: minmax(0, 1.12fr) 380px;
  gap: 16px;
}

body.client-ops-page .client-assignment-layout {
  grid-template-columns: minmax(0, 1fr) 332px;
  gap: 16px;
}

body.client-ops-page .client-today-hero,
body.client-ops-page .client-calendar-card,
body.client-ops-page .client-assignment-card,
body.client-ops-page .client-side-column .content-card,
body.client-ops-page .calories-card,
body.client-ops-page .profile-card {
  border-radius: 28px;
}

body.client-ops-page .client-today-hero {
  gap: 14px;
  padding: 22px 24px;
}

body.client-ops-page .client-today-hero-head {
  align-items: center;
}

body.client-ops-page .client-today-kicker {
  font-size: 11px;
  letter-spacing: 0.14em;
}

body.client-ops-page .client-today-title {
  font-size: clamp(1.85rem, 2.4vw, 2.45rem);
  line-height: 0.98;
}

body.client-ops-page .client-day-summary,
body.client-ops-page #client-selected-context {
  font-size: 14px;
  line-height: 1.58;
}

body.client-ops-page .client-day-pill {
  min-height: 34px;
  padding: 0 12px;
  font-size: 11px;
  font-weight: 600;
}

body.client-ops-page .client-coach-note {
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--ops-surface-soft);
  border: 1px solid rgba(32, 50, 75, 0.06);
}

body.client-ops-page .client-calendar-card .content-card-head,
body.client-ops-page .client-assignment-card .content-card-head,
body.client-ops-page .client-side-column .content-card-head,
body.client-ops-page .profile-card,
body.client-ops-page .calories-card {
  margin-bottom: 0;
}

body.client-ops-page .client-month-day {
  min-height: 154px;
  padding: 12px;
  border-radius: 20px;
  border: 1px solid rgba(32, 50, 75, 0.08);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 28px rgba(27, 52, 85, 0.05);
}

body.client-ops-page .client-month-day.active {
  border-color: rgba(95, 188, 116, 0.28);
  box-shadow: 0 18px 36px rgba(95, 188, 116, 0.1);
}

body.client-ops-page .client-month-copy strong {
  font-family: var(--font-sf-text);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

body.client-ops-page .client-month-copy p {
  font-size: 11px;
  line-height: 1.42;
}

body.client-ops-page .client-assignment-body {
  padding-top: 18px;
}

body.client-ops-page .client-empty-state,
body.client-ops-page .client-rest-card,
body.client-ops-page .client-workout-card,
body.client-ops-page .client-support-item,
body.client-ops-page .client-upcoming-card {
  border-radius: 18px;
  box-shadow: none;
}

body.client-ops-page .client-workout-card {
  padding: 14px 16px;
}

body.client-ops-page .client-workout-card-head strong,
body.client-ops-page .client-rest-card strong,
body.client-ops-page .client-empty-state strong {
  font-family: var(--font-sf-text);
  font-size: 15px;
  letter-spacing: -0.02em;
}

body.client-ops-page .client-workout-card p,
body.client-ops-page .client-rest-card p,
body.client-ops-page .client-empty-state p {
  font-size: 13px;
  line-height: 1.52;
}

body.client-ops-page .client-workout-step {
  width: 30px;
  height: 30px;
  font-size: 12px;
}

body.client-ops-page .client-workout-meta span,
body.client-ops-page .client-video-chip {
  min-height: 30px;
  font-size: 11px;
}

body.client-ops-page .subtle-tabs {
  padding: 4px;
  border-radius: 16px;
  background: rgba(247, 250, 252, 0.9);
  border: 1px solid var(--ops-button-secondary-border);
}

body.client-ops-page .subtle-tab {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
}

body.client-ops-page .subtle-tab.active {
  background: var(--ops-button-primary-bg);
  color: var(--ops-button-primary-text);
}

body.client-ops-page .profile-row {
  padding: 14px 0;
}

@media (max-width: 1180px) {
  body.client-ops-page .client-focus-grid,
  body.client-ops-page .client-assignment-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body.client-ops-page .client-header {
    align-items: stretch;
  }

  body.client-ops-page .client-header-actions,
  body.client-ops-page .client-day-actions {
    width: 100%;
  }

  body.client-ops-page .client-day-actions .ops-button,
  body.client-ops-page .client-header-actions .ops-button {
    width: 100%;
  }
}

body.client-ops-page {
  --app-surface: rgba(255, 255, 255, 0.82);
  --app-surface-strong: rgba(255, 255, 255, 0.94);
  --app-surface-soft: rgba(248, 251, 253, 0.96);
  --app-border: rgba(32, 50, 75, 0.09);
  --app-border-strong: rgba(32, 50, 75, 0.14);
  --app-text: #20324b;
  --app-text-soft: #6d7f97;
  --app-text-dim: #91a0b3;
}

body.client-ops-page .ops-page-head {
  margin-bottom: 0;
}

body.client-ops-page .ops-kicker {
  color: var(--ops-text-muted);
}

body.client-ops-page .ops-title-block h1 {
  color: var(--ops-text);
  font-family: var(--font-sf-display);
  font-size: clamp(1.95rem, 2.9vw, 2.9rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.05em;
}

body.client-ops-page .ops-title-block p,
body.client-ops-page .content-card-head p,
body.client-ops-page .client-day-summary,
body.client-ops-page .calorie-summary,
body.client-ops-page .notification-card p,
body.client-ops-page .notification-card small,
body.client-ops-page .message-note p,
body.client-ops-page .message-note small,
body.client-ops-page .content-note p,
body.client-ops-page .content-note small,
body.client-ops-page .profile-row span,
body.client-ops-page .progress-item span,
body.client-ops-page .month-label,
body.client-ops-page .month-weekdays span,
body.client-ops-page .client-month-copy p,
body.client-ops-page .group-card-top span {
  color: var(--ops-text-soft);
}

body.client-ops-page .content-card-head h2,
body.client-ops-page .compact-card-head h2,
body.client-ops-page .notification-card strong,
body.client-ops-page .profile-row strong,
body.client-ops-page .message-note strong,
body.client-ops-page .content-note strong,
body.client-ops-page .calorie-number strong,
body.client-ops-page .progress-item strong,
body.client-ops-page .client-month-copy strong {
  color: var(--ops-text);
}

body.client-ops-page .content-card-head {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(32, 50, 75, 0.06);
  background: transparent;
}

body.client-ops-page .content-card-body,
body.client-ops-page .content-card-actions,
body.client-ops-page .stack-list,
body.client-ops-page .progress-list {
  gap: 12px;
}

body.client-ops-page .content-note,
body.client-ops-page .message-note,
body.client-ops-page .notification-card,
body.client-ops-page .client-support-item,
body.client-ops-page .client-upcoming-card,
body.client-ops-page .client-empty-state,
body.client-ops-page .client-rest-card,
body.client-ops-page .client-workout-card {
  border: 1px solid rgba(32, 50, 75, 0.08);
  background: rgba(255, 255, 255, 0.88);
}

body.client-ops-page .profile-card {
  padding: 8px 24px;
}

body.client-ops-page .profile-row {
  grid-template-columns: 132px 1fr;
  align-items: center;
  border-bottom-color: rgba(32, 50, 75, 0.08);
}

body.client-ops-page .profile-row strong {
  font-size: 15px;
  font-weight: 560;
}

body.client-ops-page .notification-card,
body.client-ops-page .report-card {
  padding: 14px 16px;
  border-radius: 18px;
  border-bottom: 0;
  box-shadow: none;
}

body.client-ops-page .notification-card strong,
body.client-ops-page .message-note strong,
body.client-ops-page .content-note strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
  font-weight: 560;
  letter-spacing: -0.02em;
}

body.client-ops-page .content-note,
body.client-ops-page .message-note {
  padding: 14px 16px;
  border-radius: 18px;
}

body.client-ops-page .content-note-soft {
  background: linear-gradient(180deg, rgba(220, 238, 225, 0.65), rgba(248, 251, 253, 0.96));
}

body.client-ops-page .calories-card {
  gap: 18px;
  background:
    radial-gradient(circle at top right, rgba(127, 215, 146, 0.1), transparent 22%),
    rgba(255, 255, 255, 0.84);
}

body.client-ops-page .calorie-number {
  gap: 8px;
}

body.client-ops-page .calorie-number strong {
  font-size: clamp(3.2rem, 6vw, 4.8rem);
  line-height: 0.88;
  font-weight: 620;
}

body.client-ops-page .calorie-number span {
  color: var(--ops-text-soft);
  font-size: 16px;
  font-weight: 520;
}

body.client-ops-page .calorie-summary {
  margin: 0;
  max-width: 44rem;
  font-size: 15px;
  line-height: 1.65;
}

body.client-ops-page .progress-list {
  gap: 0;
}

body.client-ops-page .client-progress-card {
  gap: 18px;
}

body.client-ops-page .progress-item {
  padding: 16px 0;
  border-bottom-color: rgba(32, 50, 75, 0.08);
}

body.client-ops-page .progress-item span {
  flex: 0 0 168px;
  font-size: 14px;
  font-weight: 520;
}

body.client-ops-page .progress-item div {
  max-width: none;
  height: 8px;
  background: rgba(145, 160, 179, 0.2);
}

body.client-ops-page .progress-item i {
  background: linear-gradient(90deg, #7fd792, #5fbc74);
}

body.client-ops-page .progress-item strong {
  flex: 0 0 56px;
  font-size: 15px;
  font-weight: 600;
}

body.client-ops-page .client-progress-stack {
  gap: 12px;
}

body.client-ops-page .client-progress-entry {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

body.client-ops-page .client-progress-entry-main {
  display: grid;
  gap: 4px;
}

body.client-ops-page .client-progress-entry-main p {
  margin: 0;
  color: var(--ops-text-soft);
  font-size: 13px;
}

body.client-ops-page .client-progress-entry-value {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 12px;
  background: rgba(220, 238, 225, 0.75);
  color: var(--ops-text);
  font-size: 13px;
  font-weight: 560;
  white-space: nowrap;
}

body.client-ops-page .client-calendar-card .content-card-head,
body.client-ops-page .client-assignment-card .content-card-head,
body.client-ops-page .client-side-column .content-card-head {
  padding-bottom: 16px;
}

body.client-ops-page .month-label {
  font-size: 14px;
  font-weight: 560;
  letter-spacing: -0.02em;
}

body.client-ops-page .client-month-top {
  align-items: start;
}

body.client-ops-page .client-month-chip {
  color: var(--ops-button-secondary-text);
}

body.client-ops-page .client-month-chip.is-training {
  color: #55725c;
}

body.client-ops-page .client-month-chip.is-rest {
  color: #617385;
}

body.client-ops-page .client-month-chip.is-draft {
  color: #91673f;
}

body.client-ops-page .client-month-chip.is-empty {
  color: #7d8ea1;
}

body.client-ops-page .client-support-item p,
body.client-ops-page .client-upcoming-card p,
body.client-ops-page .client-upcoming-card small,
body.client-ops-page .client-workout-card p,
body.client-ops-page .client-rest-card p,
body.client-ops-page .client-empty-state p {
  color: var(--ops-text-soft);
}

body.client-ops-page .note-copy p {
  color: var(--ops-text);
  line-height: 1.6;
}

body.client-ops-page .client-upcoming-card small,
body.client-ops-page .client-video-chip small {
  color: var(--ops-text-muted);
}

body.client-ops-page .plain-input {
  border-color: rgba(32, 50, 75, 0.1);
  background: rgba(248, 251, 253, 0.95);
  color: var(--ops-text);
}

body.client-ops-page .plain-input::placeholder {
  color: #9aa9bb;
}

body.client-ops-page .client-focus-grid {
  display: block;
}

body.client-ops-page .client-assignment-layout {
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: stretch;
}

body.client-ops-page .client-assignment-layout > .content-card {
  height: 100%;
}

body.client-ops-page .client-side-card,
body.client-ops-page .client-assignment-card {
  display: grid;
  grid-template-rows: auto 1fr;
  align-content: start;
}

body.client-ops-page .client-side-card .content-card-body,
body.client-ops-page .client-assignment-card .content-card-body {
  display: grid;
  align-content: start;
}

body.client-ops-page .client-detail-column {
  display: grid;
  gap: 18px;
  min-width: 0;
}

body.client-ops-page .client-today-hero-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

body.client-ops-page .client-day-heading {
  display: grid;
  gap: 8px;
}

body.client-ops-page .client-day-statuses {
  display: grid;
  gap: 10px;
  justify-items: end;
  min-width: 220px;
}

body.client-ops-page .detail-pills,
body.client-ops-page .client-day-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

body.client-ops-page .detail-pills {
  justify-content: flex-end;
}

body.client-ops-page .client-day-actions {
  align-items: center;
}

body.client-ops-page .client-coach-note strong {
  display: block;
  margin-bottom: 6px;
}

body.client-ops-page .client-calendar-card .content-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

body.client-ops-page .month-grid {
  gap: 10px;
  padding: 18px 24px 24px;
}

body.client-ops-page .client-month-day {
  min-height: 122px;
  padding: 12px;
}

body.client-ops-page .client-month-copy {
  gap: 4px;
}

body.client-ops-page .client-month-copy p {
  display: block;
  margin: 0;
  font-size: 11px;
  line-height: 1.35;
}

body.client-ops-page .client-assignment-body {
  display: grid;
  gap: 14px;
}

body.client-ops-page #client-today-exercises {
  display: grid;
  gap: 12px;
  align-content: start;
}

body.client-ops-page .client-side-column {
  align-content: start;
}

body.client-ops-page .client-support-item,
body.client-ops-page .client-upcoming-card {
  min-height: 94px;
}

body.trainer-ops-page .ops-client-invite-surface {
  display: grid;
  gap: 18px;
}

body.trainer-ops-page .ops-client-invite-banner strong,
body.trainer-ops-page .ops-link-box strong {
  color: var(--ops-text);
  font-family: var(--font-sf-display);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.1;
}

body.trainer-ops-page .ops-client-invite-form,
body.trainer-ops-page .register-page-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

body.trainer-ops-page .ops-field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

body.trainer-ops-page .ops-field span {
  color: var(--ops-text-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.trainer-ops-page .ops-field-wide {
  grid-column: 1 / -1;
}

body.client-register-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(169, 214, 255, 0.35), transparent 34%),
    linear-gradient(180deg, #eef7ff 0%, #f7fbfe 48%, #edf5fa 100%);
}

body.client-register-page .register-shell {
  width: min(1180px, calc(100vw - 48px));
  margin: 0 auto;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: 40px 0 64px;
}

body.client-register-page .register-shell-copy {
  display: grid;
  gap: 18px;
  align-content: start;
}

body.client-register-page .register-shell-copy h1 {
  margin: 0;
  color: var(--ops-text);
  font-family: var(--font-sf-display);
  font-size: clamp(2.5rem, 5vw, 4.4rem);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.06em;
}

body.client-register-page .register-shell-copy p:not(.ops-kicker) {
  margin: 0;
  color: var(--ops-text-soft);
  font-size: 16px;
  line-height: 1.65;
}

body.client-register-page .register-shell-panel {
  min-width: 0;
}

body.client-register-page .register-page-card {
  display: grid;
  gap: 18px;
  border: 1px solid rgba(32, 50, 75, 0.08);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--ops-shadow);
  padding: 28px;
}

body.client-register-page .register-page-card h1 {
  margin: 0;
  color: var(--ops-text);
  font-family: var(--font-sf-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.05em;
}

body.client-register-page .register-page-card p {
  margin: 0;
  color: var(--ops-text-soft);
  font-size: 15px;
  line-height: 1.65;
}

body.client-register-page .register-page-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
}

body.client-register-page .register-page-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

body.client-register-page .register-note {
  align-items: flex-start;
}

body.client-register-page .register-note span {
  flex: 1;
}

@media (max-width: 1180px) {
  body.client-register-page .register-shell {
    width: min(860px, calc(100vw - 32px));
    grid-template-columns: 1fr;
    align-items: start;
  }

  body.client-ops-page .client-assignment-layout {
    grid-template-columns: 1fr;
  }

  body.client-ops-page .client-day-statuses {
    justify-items: start;
    min-width: 0;
  }
}

@media (max-width: 760px) {
  body.client-ops-page .client-today-hero-head,
  body.client-ops-page .client-calendar-card .content-card-head {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  body.trainer-ops-page .ops-main,
  body.client-ops-page .ops-main {
    padding: 24px 20px 40px;
  }

  body.trainer-ops-page .ops-page-head,
  body.client-ops-page .client-header,
  body.trainer-ops-page .ops-builder-footer,
  body.trainer-ops-page .ops-context-strip,
  body.trainer-ops-page .ops-toolbar,
  body.trainer-ops-page .ops-toolbar-group,
  body.client-ops-page .client-header-actions,
  body.client-ops-page .client-day-actions {
    align-items: flex-start;
    gap: 12px;
  }

  body.trainer-ops-page .ops-grid-two,
  body.trainer-ops-page .ops-builder-layout,
  body.trainer-ops-page .ops-notifications-layout,
  body.trainer-ops-page .ops-client-invite-form,
  body.trainer-ops-page .register-page-form,
  body.trainer-ops-page .ops-table-toolbar,
  body.trainer-ops-page .ops-table-toolbar.is-tight,
  body.client-ops-page .client-focus-grid,
  body.client-ops-page .client-assignment-layout {
    grid-template-columns: 1fr;
  }

  body.trainer-builder-page .ops-builder-side {
    order: -1;
  }

  body.trainer-ops-page .ops-mini-kpis,
  body.trainer-ops-page .ops-billing-summary {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.trainer-ops-page .ops-profile-hero,
  body.trainer-ops-page .ops-builder-video-row,
  body.trainer-ops-page .ops-builder-field-grid,
  body.trainer-ops-page .ops-library-row,
  body.trainer-ops-page .ops-template-picker-row,
  body.trainer-ops-page .ops-template-save-row {
    grid-template-columns: 1fr;
  }

  body.trainer-ops-page .ops-builder-footer > *,
  body.trainer-ops-page .ops-builder-video-row > *,
  body.trainer-ops-page .ops-template-picker-row > *,
  body.trainer-ops-page .ops-template-save-row > *,
  body.trainer-ops-page .ops-head-actions > *,
  body.client-ops-page .client-header-actions > *,
  body.client-ops-page .client-day-actions > * {
    width: 100%;
  }

  body.trainer-ops-page .ops-tabbar {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  body.trainer-ops-page .ops-tabbar button {
    flex: 0 0 auto;
  }

  body.trainer-ops-page .ops-table-wrap {
    overflow-x: auto;
  }

  body.trainer-ops-page .ops-table {
    min-width: 680px;
  }

  body.client-ops-page .client-calendar-card {
    overflow-x: auto;
  }

  body.client-ops-page .month-weekdays,
  body.client-ops-page .month-grid {
    min-width: 640px;
  }

  body.client-ops-page .client-today-hero-head,
  body.client-ops-page .client-calendar-card .content-card-head {
    grid-template-columns: 1fr;
  }

  body.client-ops-page .client-day-statuses {
    justify-items: start;
    min-width: 0;
  }

  body.client-ops-page .client-progress-entry,
  body.client-ops-page .profile-row {
    grid-template-columns: 1fr;
  }

  body.client-register-page .register-page-head {
    flex-direction: column;
  }

  body.client-register-page .register-page-meta {
    justify-content: flex-start;
  }
}

@media (max-width: 820px) {
  body.trainer-ops-page .ops-shell {
    display: block;
    min-height: 100vh;
  }

  body.trainer-ops-page .ops-rail {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    z-index: 70;
    height: auto;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
    gap: 8px;
    border-right: 0;
    border-bottom: 0;
    border-top: 1px solid rgba(32, 50, 75, 0.08);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(18px);
    box-shadow: 0 -16px 32px rgba(27, 52, 85, 0.08);
  }

  body.trainer-ops-page .ops-brand,
  body.trainer-ops-page .ops-rail-profile {
    display: none;
  }

  body.trainer-ops-page .ops-rail-nav {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    width: 100%;
    gap: 8px;
    min-width: 0;
  }

  body.client-ops-page .ops-rail-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  body.trainer-ops-page .ops-rail-link {
    width: 100%;
    min-height: 54px;
    height: auto;
    border-radius: 18px;
  }

  body.trainer-ops-page .ops-main,
  body.client-ops-page .ops-main {
    padding: 16px 14px calc(108px + env(safe-area-inset-bottom, 0px));
  }

  body.trainer-ops-page .ops-title-block h1,
  body.client-ops-page .ops-title-block h1 {
    font-size: clamp(2rem, 8vw, 2.8rem);
    line-height: 0.96;
  }

  body.trainer-home-page .ops-toolbar-home {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  body.trainer-home-page .ops-home-toolbar-nav {
    display: grid;
    grid-template-columns: auto 48px minmax(0, 1fr) 48px;
    width: 100%;
    gap: 10px;
    align-items: center;
  }

  body.trainer-home-page .ops-home-toolbar-controls {
    grid-template-columns: 1fr;
    width: 100%;
  }

  body.trainer-home-page .ops-home-toolbar-controls .ops-segment {
    width: 100%;
  }

  body.trainer-home-page .ops-home-toolbar-controls .ops-segment button {
    flex: 1 1 0;
  }

  body.trainer-home-page .ops-toolbar-label {
    min-width: 0;
  }

  body.trainer-home-page .ops-home-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.trainer-home-page .ops-month-shell {
    overflow-x: auto;
    padding-bottom: 8px;
  }

  body.trainer-home-page .ops-month-weekdays,
  body.trainer-home-page .ops-month-grid {
    min-width: 620px;
  }

  body.trainer-ops-page .ops-week-grid {
    grid-template-columns: 1fr;
  }

  body.trainer-ops-page .ops-day-column {
    min-height: auto;
  }

  body.client-ops-page .client-side-card,
  body.client-ops-page .client-day-summary-card,
  body.client-ops-page .client-assignment-card {
    height: auto;
  }
}

@media (max-width: 640px) {
  body.trainer-ops-page .ops-surface,
  body.client-ops-page .ops-surface,
  body.client-ops-page .content-card {
    border-radius: 22px;
  }

  body.trainer-ops-page .content-card-head,
  body.trainer-ops-page .content-card-body,
  body.trainer-ops-page .content-card-actions,
  body.client-ops-page .content-card-head,
  body.client-ops-page .content-card-body,
  body.client-ops-page .content-card-actions {
    padding-left: 16px;
    padding-right: 16px;
  }

  body.trainer-ops-page .ops-rail {
    padding-inline: 8px;
  }

  body.trainer-ops-page .ops-rail-nav,
  body.client-ops-page .ops-rail-nav {
    gap: 6px;
  }

  body.trainer-ops-page .ops-rail-link {
    min-height: 50px;
    border-radius: 16px;
  }

  body.trainer-home-page .ops-home-toolbar-nav {
    grid-template-columns: minmax(0, 1fr) 44px 1fr 44px;
  }

  body.trainer-home-page .ops-home-kpis,
  body.trainer-ops-page .ops-mini-kpis,
  body.trainer-ops-page .ops-billing-summary {
    grid-template-columns: 1fr;
  }

  body.trainer-ops-page .ops-builder-block-head,
  body.trainer-ops-page .ops-day-head,
  body.client-ops-page .client-day-actions,
  body.client-ops-page .detail-pills {
    align-items: flex-start;
  }

  body.client-ops-page .month-weekdays,
  body.client-ops-page .month-grid,
  body.trainer-home-page .ops-month-weekdays,
  body.trainer-home-page .ops-month-grid {
    min-width: 560px;
  }

  body.client-ops-page .client-month-day,
  body.trainer-home-page .ops-month-cell {
    min-height: 112px;
  }

  body.client-register-page .register-shell {
    width: min(100vw - 24px, 100%);
    padding-top: 24px;
    padding-bottom: 28px;
  }

  body.client-register-page .register-page-card {
    border-radius: 24px;
    padding: 20px 18px;
  }
}

body.auth-page {
  --auth-bg-top: #f7f9fc;
  --auth-bg-bottom: #ebf0f7;
  --auth-ink: #19273c;
  --auth-subtle: #5e6d82;
  --auth-muted: #7c8ca1;
  --auth-line: rgba(25, 39, 60, 0.12);
  --auth-line-strong: rgba(25, 39, 60, 0.18);
  --auth-accent: #213857;
  --auth-accent-strong: #17263b;
  --auth-accent-soft: rgba(33, 56, 87, 0.08);
  --auth-surface: rgba(255, 255, 255, 0.8);
  --auth-scene-surface:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(240, 245, 251, 0.88));
  --auth-note-surface: rgba(241, 245, 250, 0.92);
  --auth-switch-surface: rgba(241, 245, 250, 0.94);
  --auth-shadow: 0 30px 80px rgba(28, 44, 69, 0.08);
  --auth-focus: rgba(104, 138, 188, 0.18);
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(191, 214, 242, 0.3), transparent 24%),
    radial-gradient(circle at right 16%, rgba(92, 115, 150, 0.1), transparent 26%),
    linear-gradient(180deg, var(--auth-bg-top) 0%, var(--auth-bg-bottom) 100%);
}

body.client-auth-page {
  --auth-bg-top: #f8fbf8;
  --auth-bg-bottom: #ecf3ee;
  --auth-ink: #1d2f22;
  --auth-subtle: #5d6f62;
  --auth-muted: #79897d;
  --auth-line: rgba(35, 54, 39, 0.12);
  --auth-line-strong: rgba(35, 54, 39, 0.18);
  --auth-accent: #365540;
  --auth-accent-strong: #24372a;
  --auth-accent-soft: rgba(54, 85, 64, 0.08);
  --auth-surface: rgba(255, 255, 255, 0.82);
  --auth-scene-surface:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(240, 247, 242, 0.9));
  --auth-note-surface: rgba(239, 245, 240, 0.94);
  --auth-switch-surface: rgba(241, 247, 242, 0.94);
  --auth-shadow: 0 30px 80px rgba(38, 57, 42, 0.08);
  --auth-focus: rgba(109, 154, 120, 0.18);
  background:
    radial-gradient(circle at top left, rgba(198, 223, 206, 0.34), transparent 24%),
    radial-gradient(circle at right 16%, rgba(101, 127, 109, 0.1), transparent 26%),
    linear-gradient(180deg, var(--auth-bg-top) 0%, var(--auth-bg-bottom) 100%);
}

.auth-shell {
  width: min(1180px, calc(100vw - 40px));
  margin: 0 auto;
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: 28px 0 36px;
}

.auth-stage {
  display: grid;
  grid-template-columns: minmax(320px, 1.08fr) minmax(360px, 0.78fr);
  gap: 20px;
  align-items: center;
}

.auth-scene,
.auth-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--auth-line);
  border-radius: 32px;
  box-shadow: var(--auth-shadow);
  backdrop-filter: blur(18px);
}

.auth-scene {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 680px;
  padding: 34px;
  background: var(--auth-scene-surface);
}

.auth-scene::before,
.auth-scene::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.auth-scene::before {
  top: -120px;
  right: -24px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 1px solid var(--auth-line);
  opacity: 0.7;
}

.auth-scene::after {
  right: -90px;
  bottom: -120px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--auth-accent-soft), transparent 70%);
  filter: blur(10px);
}

.auth-scene-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.auth-scene-brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 15px;
  background: linear-gradient(145deg, var(--auth-accent), var(--auth-accent-strong));
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  box-shadow: 0 16px 34px rgba(18, 29, 44, 0.16);
}

.auth-scene-brand-copy {
  color: var(--auth-accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.auth-scene-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  max-width: 29rem;
  margin: auto 0;
}

.auth-scene-kicker {
  margin: 0;
  color: var(--auth-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.auth-scene-copy h1 {
  margin: 0;
  color: var(--auth-ink);
  font-family: var(--font-sf-display);
  font-size: clamp(3rem, 5vw, 5.2rem);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.07em;
  text-wrap: balance;
}

.auth-scene-copy p:not(.auth-scene-kicker) {
  margin: 0;
  max-width: 24ch;
  color: var(--auth-subtle);
  font-size: 17px;
  line-height: 1.7;
}

.auth-scene-meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.auth-scene-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--auth-line);
  background: rgba(255, 255, 255, 0.54);
  color: var(--auth-subtle);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 30px;
  background: var(--auth-surface);
}

.auth-role-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 6px;
  border-radius: 20px;
  border: 1px solid var(--auth-line);
  background: var(--auth-switch-surface);
}

.auth-role-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 15px;
  color: var(--auth-muted);
  font-size: 14px;
  font-weight: 600;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.auth-role-link:hover,
.auth-role-link:focus-visible,
.auth-submit:hover,
.auth-submit:focus-visible {
  transform: translateY(-1px);
}

.auth-role-link.is-active {
  background: rgba(255, 255, 255, 0.96);
  color: var(--auth-ink);
  box-shadow: 0 12px 28px rgba(22, 34, 51, 0.08);
}

.auth-panel-head {
  display: grid;
  gap: 12px;
}

.auth-panel-label {
  margin: 0;
  color: var(--auth-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-panel-head h2 {
  margin: 0;
  color: var(--auth-ink);
  font-family: var(--font-sf-display);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 600;
  line-height: 0.94;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

.auth-panel-head p {
  margin: 0;
  max-width: 28ch;
  color: var(--auth-subtle);
  font-size: 15px;
  line-height: 1.64;
}

.auth-inline-note {
  padding: 13px 15px;
  border-radius: 18px;
  border: 1px solid var(--auth-line);
  background: var(--auth-note-surface);
  color: var(--auth-subtle);
  font-size: 14px;
  line-height: 1.55;
}

.auth-inline-note.is-accent {
  border-color: var(--auth-line-strong);
  background: rgba(255, 255, 255, 0.92);
  color: var(--auth-ink);
}

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

.auth-form-field {
  display: grid;
  gap: 8px;
}

.auth-form-field span {
  color: var(--auth-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-input {
  width: 100%;
  min-height: 56px;
  padding: 0 18px;
  border-radius: 18px;
  border: 1px solid var(--auth-line);
  background: rgba(255, 255, 255, 0.92);
  color: var(--auth-ink);
  font: inherit;
  font-size: 15px;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.auth-input::placeholder {
  color: var(--auth-muted);
  opacity: 0.72;
}

.auth-input:focus-visible {
  outline: none;
  border-color: var(--auth-line-strong);
  box-shadow: 0 0 0 4px var(--auth-focus);
  background: #fff;
}

.auth-error {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(210, 97, 109, 0.18);
  background: rgba(255, 241, 241, 0.96);
  color: #8f3843;
  font-size: 14px;
  line-height: 1.56;
}

.auth-submit-row {
  display: grid;
}

.auth-submit {
  width: 100%;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 18px;
  font-size: 14px;
  font-weight: 600;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
  border: 0;
  background: linear-gradient(145deg, var(--auth-accent), var(--auth-accent-strong));
  color: #fff;
  box-shadow: 0 18px 34px rgba(17, 27, 42, 0.18);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.auth-submit:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
  box-shadow: none;
}

.auth-form-switch {
  margin: -2px 0 0;
  color: var(--auth-muted);
  font-size: 14px;
  line-height: 1.6;
}

.auth-secondary-link {
  color: var(--auth-accent);
  font-weight: 600;
  text-decoration: none;
  text-underline-offset: 0.22em;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.auth-role-link:focus-visible,
.auth-submit:focus-visible,
.auth-secondary-link:focus-visible {
  outline: 2px solid var(--auth-line-strong);
  outline-offset: 3px;
}

.auth-secondary-link:hover,
.auth-secondary-link:focus-visible {
  text-decoration: underline;
}

.auth-panel-footnote {
  margin: auto 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--auth-line);
  color: var(--auth-muted);
  font-size: 13px;
  line-height: 1.6;
}

@media (max-width: 980px) {
  .auth-stage {
    grid-template-columns: 1fr;
  }

  .auth-panel {
    order: -1;
  }

  .auth-scene {
    min-height: 360px;
  }

  .auth-scene-copy p:not(.auth-scene-kicker),
  .auth-panel-head p {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .auth-shell {
    width: min(100vw - 24px, 100%);
    padding: 20px 0 24px;
  }

  .auth-stage {
    gap: 16px;
  }

  .auth-scene,
  .auth-panel {
    padding: 22px 18px;
    border-radius: 26px;
  }

  .auth-scene {
    min-height: 0;
  }

  .auth-scene-copy h1 {
    font-size: clamp(2.8rem, 16vw, 4rem);
  }

  .auth-panel-head h2 {
    font-size: clamp(2.2rem, 12vw, 3rem);
  }
}
