:root {
  --bg: #ffffff;
  --bg-soft: #f4f7f3;
  --surface: rgba(249, 251, 248, 0.96);
  --surface-strong: #f7faf6;
  --earth: #4a5f3d;
  --earth-deep: #2f4126;
  --sand: #b8c8b0;
  --sage: #6f8163;
  --sage-soft: #e8efe5;
  --accent: #4a5f3d;
  --ink: #101310;
  --muted: #5f685d;
  --line: rgba(26, 34, 24, 0.1);
  --line-strong: rgba(26, 34, 24, 0.16);
  --shadow: 0 24px 60px rgba(37, 52, 33, 0.08);
  --shadow-soft: 0 12px 28px rgba(37, 52, 33, 0.05);
  --font-sans: "Plus Jakarta Sans", "Google Sans Text", "Google Sans", system-ui, sans-serif;
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --radius-xs: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(184, 200, 176, 0.18), transparent 22%),
    radial-gradient(circle at bottom right, rgba(111, 129, 99, 0.08), transparent 24%),
    #ffffff;
  font-family: var(--font-sans);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(16, 19, 16, 0.02) 1px, transparent 1px),
    linear-gradient(180deg, rgba(244, 247, 243, 0.5), transparent 28%);
  background-size: 22px 22px, 100% 100%;
  opacity: 0.7;
}

h1,
h2,
h3,
strong {
  font-family: var(--font-sans);
  letter-spacing: -0.03em;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

.landing-shell,
.prototype-shell,
.admin-shell {
  position: relative;
  z-index: 1;
}

.client-webapp-page {
  background:
    radial-gradient(circle at top, rgba(184, 200, 176, 0.12), transparent 30%),
    #ffffff;
}

.client-webapp-page .prototype-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  display: block;
}

.client-webapp-page .prototype-context {
  display: none;
}

.client-webapp-page .phone-stage {
  min-height: 100dvh;
  align-items: stretch;
}

.client-webapp-page .phone-frame {
  width: 100%;
  max-width: none;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.client-webapp-page .phone-screen {
  min-height: 100dvh;
  border-radius: 0;
  background:
    radial-gradient(circle at top, rgba(184, 200, 176, 0.1), transparent 28%),
    #ffffff;
}

.client-webapp-page .phone-notch {
  display: none;
}

.client-webapp-page .screen {
  height: 100dvh;
  padding:
    calc(28px + env(safe-area-inset-top, 0px))
    16px
    calc(108px + env(safe-area-inset-bottom, 0px));
}

.client-webapp-page .bottom-nav {
  left: 12px;
  right: 12px;
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 900px) {
  .client-webapp-page .prototype-shell {
    width: min(100%, 520px);
    margin: 0 auto;
    padding: 20px 0 28px;
  }

  .client-webapp-page .phone-stage {
    min-height: auto;
    padding-inline: 16px;
  }

  .client-webapp-page .phone-frame {
    width: min(100%, 440px);
    margin: 0 auto;
    padding: 14px;
    border-radius: 42px;
    background: linear-gradient(180deg, #1e1917 0%, #0f0c0b 100%);
    box-shadow: 0 24px 64px rgba(27, 19, 13, 0.24);
  }

  .client-webapp-page .phone-screen {
    min-height: 812px;
    border-radius: 34px;
  }

  .client-webapp-page .phone-notch {
    display: block;
  }

  .client-webapp-page .screen {
    height: 812px;
    padding: 34px 16px 110px;
  }

  .client-webapp-page .bottom-nav {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }
}

.landing-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 36px 0 60px;
}

.prototype-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
  display: grid;
  grid-template-columns: minmax(280px, 390px) minmax(320px, 1fr);
  gap: 24px;
  align-items: start;
}

.admin-shell {
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 40px;
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
}

.hero-card,
.choice-card,
.notes-card,
.prototype-context,
.admin-sidebar,
.admin-card,
.admin-rail,
.phone-frame,
.context-card {
  backdrop-filter: blur(18px);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: var(--shadow);
}

.hero-card,
.notes-card,
.prototype-context,
.admin-sidebar,
.admin-card,
.admin-rail {
  border-radius: var(--radius-xl);
}

.hero-card {
  padding: 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 32px;
  align-items: center;
}

.hero-copy h1,
.prototype-context h1,
.admin-sidebar h1 {
  font-size: clamp(2.1rem, 4vw, 4rem);
  line-height: 0.96;
  margin-bottom: 16px;
}

.lead {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
  max-width: 58ch;
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--earth);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 700;
}

.hero-actions,
.chip-row,
.preview-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin: 24px 0 18px;
}

.button,
.icon-button,
.list-action,
.text-button,
.nav-item,
.admin-nav-item,
.plan-card-button,
.sheet-plan {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    opacity 0.2s ease;
}

.button:hover,
.icon-button:hover,
.list-action:hover,
.nav-item:hover,
.admin-nav-item:hover,
.plan-card-button:hover,
.sheet-plan:hover {
  transform: translateY(-1px);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.button-primary {
  background: linear-gradient(135deg, var(--earth) 0%, var(--earth-deep) 100%);
  color: #fff7f1;
  box-shadow: 0 16px 30px rgba(123, 75, 47, 0.22);
}

.button-secondary {
  background: rgba(255, 250, 245, 0.75);
  border: 1px solid rgba(123, 75, 47, 0.18);
  color: var(--ink);
}

.soft-chip,
.panel-tag,
.pill-muted {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
}

.agenda-live-pill.is-live {
  background: rgba(115, 133, 111, 0.16);
  color: #496046;
  border: 1px solid rgba(115, 133, 111, 0.2);
}

.agenda-live-pill.is-error {
  background: rgba(168, 72, 63, 0.14);
  color: #9f4038;
  border: 1px solid rgba(168, 72, 63, 0.18);
}

.soft-chip {
  background: rgba(255, 250, 245, 0.82);
  color: var(--muted);
  border: 1px solid rgba(123, 75, 47, 0.12);
}

.mini-device {
  margin-left: auto;
  width: min(360px, 100%);
  padding: 14px;
  background: linear-gradient(180deg, #241d1a 0%, #151110 100%);
  border-radius: 32px;
  box-shadow: 0 28px 72px rgba(27, 19, 13, 0.32);
}

.mini-device-top {
  width: 42%;
  height: 24px;
  margin: 0 auto 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.mini-device-body {
  min-height: 540px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top, rgba(214, 184, 156, 0.18), transparent 40%),
    linear-gradient(180deg, #f8f3ed 0%, #efe7dd 100%);
  padding: 18px;
}

.preview-card,
.preview-pill,
.choice-card,
.section-card,
.next-class-hero,
.micro-benefit-card,
.referral-card,
.profile-card,
.banner-card,
.hero-panel,
.empty-state,
.policy-card {
  background: rgba(255, 251, 247, 0.86);
  border: 1px solid rgba(123, 75, 47, 0.1);
  box-shadow: var(--shadow-soft);
}

.preview-card {
  display: grid;
  gap: 6px;
  padding: 16px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.preview-card.large {
  min-height: 132px;
  align-content: end;
}

.preview-card strong {
  font-size: 1.3rem;
}

.preview-card span {
  color: var(--muted);
  line-height: 1.45;
}

.preview-label,
.stat-caption,
.context-label,
.mini-stat-label,
.benefit-label {
  font-size: 0.76rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.preview-row {
  margin-bottom: 12px;
}

.preview-row:last-child {
  margin-bottom: 0;
}

.preview-row > * {
  flex: 1;
}

.preview-pill {
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 999px;
  text-align: center;
  color: var(--muted);
}

.choice-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.choice-card {
  padding: 28px;
  border-radius: var(--radius-xl);
  display: grid;
  gap: 22px;
}

.choice-copy h2,
.section-head h3,
.sheet-header h3,
.admin-topbar h2 {
  font-size: clamp(1.28rem, 3.6vw, 1.65rem);
  margin-bottom: 10px;
}

.choice-copy p,
.feature-list,
.notes-grid p,
.context-card,
.policy-card,
.summary-line,
.setting-row {
  color: var(--muted);
  line-height: 1.6;
}

.feature-list {
  margin: 0;
  padding-left: 18px;
}

.notes-card {
  margin-top: 24px;
  padding: 30px;
}

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

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-weight: 700;
}

.prototype-context,
.admin-sidebar {
  padding: 28px;
  position: sticky;
  top: 24px;
}

.context-card {
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-top: 18px;
  background: rgba(255, 251, 247, 0.78);
}

.context-row,
.policy-item,
.mini-stat,
.summary-line,
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.context-row + .context-row,
.policy-item + .policy-item,
.setting-row + .setting-row {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.context-value {
  max-width: 200px;
  text-align: right;
  color: var(--ink);
}

.mini-stat + .mini-stat {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.mini-stat-value {
  font-size: 1.9rem;
  color: var(--earth-deep);
}

.phone-stage {
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: min(420px, 100%);
  padding: 14px;
  border-radius: 42px;
  background: linear-gradient(180deg, #1e1917 0%, #0f0c0b 100%);
}

.phone-screen {
  position: relative;
  min-height: 812px;
  border-radius: 34px;
  overflow: hidden;
  background:
    radial-gradient(circle at top, rgba(214, 184, 156, 0.22), transparent 36%),
    linear-gradient(180deg, #fbf7f2 0%, #efe7dd 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 42%;
  height: 28px;
  background: #171210;
  border-radius: 999px;
}

.screen {
  display: none;
  height: 812px;
  overflow-y: auto;
  padding: 34px 16px 110px;
}

.screen.is-active,
.admin-screen.is-active {
  display: block;
  animation: fadeUp 0.35s ease;
}

.screen-header,
.section-head,
.sheet-header,
.admin-topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.screen-header {
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.home-screen-header {
  margin-bottom: 12px;
  align-items: center;
}

.screen-header h2 {
  margin-bottom: 0;
  font-size: clamp(1.48rem, 4.8vw, 1.8rem);
  line-height: 1.08;
  max-width: 12ch;
}

.auth-header h2 {
  max-width: none;
}

.brand-logo {
  margin-bottom: 8px;
  color: var(--earth-deep);
  font-family: var(--font-sans);
  font-size: 1.32rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.icon-button,
.text-button {
  color: var(--earth-deep);
  font-weight: 700;
}

.icon-button {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 250, 245, 0.78);
  border: 1px solid rgba(123, 75, 47, 0.12);
}

.text-button {
  padding: 6px 0;
}

.auth-card {
  border-radius: 26px;
  padding: 18px;
  background:
    radial-gradient(circle at top right, rgba(214, 184, 156, 0.24), transparent 32%),
    rgba(255, 251, 247, 0.94);
  border: 1px solid rgba(123, 75, 47, 0.08);
  box-shadow: var(--shadow-soft);
}

.auth-mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 6px;
  border-radius: 20px;
  background: rgba(123, 75, 47, 0.06);
  margin-bottom: 16px;
}

.auth-mode-button {
  padding: 12px 10px;
  border-radius: 16px;
  color: var(--muted);
  font-weight: 800;
  font-size: 0.88rem;
}

.auth-mode-button.is-active {
  background: rgba(255, 251, 247, 0.96);
  color: var(--earth-deep);
  box-shadow: 0 10px 20px rgba(78, 58, 42, 0.08);
}

.auth-form {
  display: grid;
  gap: 12px;
}

.auth-field {
  display: grid;
  gap: 6px;
}

.auth-field span,
.muted-copy {
  color: var(--muted);
  line-height: 1.5;
}

.muted-copy {
  margin-bottom: 0;
}

.auth-field span {
  font-size: 0.82rem;
  font-weight: 800;
}

.auth-field input {
  width: 100%;
  min-width: 0;
  padding: 13px 14px;
  border-radius: 16px;
  border: 1px solid rgba(123, 75, 47, 0.14);
  background: rgba(255, 251, 247, 0.98);
  color: var(--ink);
  font: inherit;
}

.auth-submit-button {
  margin-top: 4px;
}

.auth-divider {
  display: grid;
  place-items: center;
  margin: 14px 0 12px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.auth-divider span {
  padding: 0 10px;
  background: rgba(255, 251, 247, 0.94);
}

.google-button {
  width: 100%;
  padding: 14px 16px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(47, 42, 38, 0.12);
  color: var(--ink);
  font-weight: 800;
  box-shadow: 0 10px 20px rgba(78, 58, 42, 0.06);
}

.checkout-plan-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.checkout-lead {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.48;
  font-size: 0.92rem;
}

.checkout-plan-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(214, 184, 156, 0.18), transparent 34%),
    rgba(255, 251, 247, 0.94);
  border: 1px solid rgba(123, 75, 47, 0.12);
  box-shadow: 0 14px 28px rgba(78, 58, 42, 0.06);
  text-align: left;
}

.checkout-plan-name {
  margin-bottom: 0;
  font-size: 1.12rem;
  line-height: 1.02;
}

.checkout-plan-card-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.checkout-plan-card strong {
  font-size: 1.52rem;
  line-height: 1;
  color: var(--earth-deep);
}

.checkout-plan-card small {
  color: var(--muted);
  line-height: 1.34;
  font-size: 0.86rem;
}

.checkout-plan-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(165, 106, 67, 0.14);
  color: var(--earth-deep);
  font-size: 0.74rem;
  font-weight: 800;
}

.checkout-plan-card.is-selected {
  border-color: rgba(123, 75, 47, 0.72);
  box-shadow:
    0 0 0 1px rgba(123, 75, 47, 0.16),
    0 18px 32px rgba(123, 75, 47, 0.14);
  transform: translateY(-1px);
  background:
    radial-gradient(circle at top right, rgba(214, 184, 156, 0.24), transparent 34%),
    rgba(255, 248, 241, 0.98);
}

.checkout-plan-card.is-selected strong,
.checkout-plan-card.is-selected small,
.checkout-plan-card.is-selected .checkout-plan-name,
.checkout-plan-card.is-selected .checkout-plan-card-top span {
  color: var(--earth-deep);
}

.checkout-plan-card.is-selected .checkout-plan-badge {
  background: rgba(165, 106, 67, 0.16);
  color: var(--earth-deep);
}

.checkout-plan-cta-row {
  display: flex;
  justify-content: flex-start;
  margin-top: 0;
}

.checkout-plan-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(123, 75, 47, 0.08);
  border: 1px solid rgba(123, 75, 47, 0.12);
  color: var(--earth-deep);
  font-size: 0.79rem;
  font-weight: 800;
}

.checkout-plan-cta.is-selected {
  background: linear-gradient(135deg, var(--earth) 0%, var(--earth-deep) 100%);
  border-color: rgba(123, 75, 47, 0.28);
  color: #fff7f1;
  box-shadow: 0 12px 24px rgba(123, 75, 47, 0.18);
}

.checkout-selection-panel,
.checkout-transfer-card {
  background:
    radial-gradient(circle at top right, rgba(214, 184, 156, 0.24), transparent 32%),
    rgba(255, 251, 247, 0.94);
}

.checkout-plan-highlight {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.checkout-highlight-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.checkout-highlight-price {
  font-size: 1.5rem;
  line-height: 1;
  font-weight: 800;
  color: var(--earth-deep);
}

.checkout-highlight-copy {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.48;
  font-size: 0.9rem;
}

.checkout-selection-panel {
  padding: 15px;
}

.checkout-selection-panel .mp-sheet-button {
  min-height: 52px;
  font-size: 0.96rem;
}

.checkout-transfer-card {
  padding-top: 16px;
}

.checkout-step-actions {
  display: grid;
  gap: 10px;
}

.hero-panel,
.section-card,
.banner-card,
.next-class-hero,
.micro-benefit-card,
.empty-state,
.referral-card,
.profile-card {
  border-radius: 26px;
  padding: 18px;
  margin-bottom: 16px;
}

.hero-panel {
  background:
    radial-gradient(circle at top right, rgba(214, 184, 156, 0.34), transparent 34%),
    linear-gradient(180deg, rgba(255, 252, 248, 0.92) 0%, rgba(247, 241, 233, 0.94) 100%);
}

.membership-panel {
  padding: 15px 16px;
}

.membership-grid {
  align-items: end;
}

.hero-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.hero-panel-actions.compact {
  margin-top: 14px;
}

.hero-panel-top,
.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.panel-tag {
  background: rgba(165, 106, 67, 0.12);
  color: var(--earth-deep);
}

.panel-tag.muted,
.pill-muted {
  background: rgba(255, 251, 247, 0.8);
  color: var(--muted);
  border: 1px solid rgba(123, 75, 47, 0.12);
}

.hero-panel-main {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0 10px;
}

.hero-number {
  font-size: clamp(2.5rem, 9vw, 3.2rem);
  line-height: 0.95;
  color: var(--earth-deep);
}

.membership-panel .hero-number {
  font-size: clamp(2.15rem, 8vw, 2.65rem);
}

.hero-side-number {
  font-size: clamp(1.1rem, 4vw, 1.45rem);
  color: var(--ink);
}

.membership-panel .hero-side-number {
  font-size: clamp(1rem, 3.6vw, 1.15rem);
}

.progress-meta {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.82rem;
}

.soft-progress {
  height: 8px;
  border-radius: 999px;
  background: rgba(123, 75, 47, 0.08);
  overflow: hidden;
}

.soft-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--earth) 0%, var(--sand) 100%);
}

.banner-card {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 14px;
  align-items: center;
}

.next-class-hero {
  background:
    radial-gradient(circle at top right, rgba(255, 235, 216, 0.24), transparent 30%),
    linear-gradient(140deg, #8f5636 0%, #a56a43 52%, #c89167 100%);
  padding: 18px 18px 16px;
  border-color: rgba(123, 75, 47, 0.18);
  box-shadow: 0 18px 38px rgba(123, 75, 47, 0.22);
}

.next-class-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  flex-wrap: wrap;
}

.next-class-title {
  margin-bottom: 6px;
  font-size: clamp(1.34rem, 5vw, 1.72rem);
  line-height: 1.04;
}

.next-class-time {
  color: rgba(255, 247, 239, 0.92);
  font-weight: 800;
  font-size: 0.98rem;
}

.next-class-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 247, 239, 0.18);
  color: #fff7f0;
  font-weight: 800;
  white-space: nowrap;
  border: 1px solid rgba(255, 247, 239, 0.24);
}

.next-class-badge.muted {
  background: rgba(255, 247, 239, 0.12);
  color: rgba(255, 247, 239, 0.82);
  border: 1px solid rgba(255, 247, 239, 0.2);
}

.next-class-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 0 10px;
}

.detail-pill {
  display: inline-flex;
  align-items: center;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 247, 239, 0.12);
  border: 1px solid rgba(255, 247, 239, 0.18);
  color: rgba(255, 247, 239, 0.88);
  font-size: 0.84rem;
  font-weight: 700;
}

.next-class-note {
  margin-bottom: 0;
  color: rgba(255, 247, 239, 0.86);
  line-height: 1.55;
}

.next-class-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.next-class-hero .eyebrow,
.next-class-hero .next-class-title {
  color: #fff7f0;
}

.next-class-hero .session-action {
  background: rgba(255, 247, 239, 0.18);
  color: #fff7f0;
  border: 1px solid rgba(255, 247, 239, 0.18);
}

.next-class-hero .session-action.secondary {
  background: rgba(48, 30, 19, 0.18);
  color: #fff7f0;
  border-color: rgba(255, 247, 239, 0.22);
}

.micro-benefit-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding-block: 14px;
}

.micro-benefit-badge {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(165, 106, 67, 0.12);
  color: var(--earth-deep);
  font-weight: 900;
}

.micro-benefit-badge.muted {
  background: rgba(115, 133, 111, 0.12);
  color: #496046;
}

.micro-benefit-copy strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1rem;
}

.micro-benefit-copy p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.plan-pay-row {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.mp-button {
  background: linear-gradient(135deg, #009ee3 0%, #0d6efd 100%);
  color: #f7fcff;
  border: 1px solid rgba(0, 98, 204, 0.2);
}

.mp-sheet-button {
  width: 100%;
  margin-top: 12px;
  justify-content: center;
}

.banner-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.banner-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--earth) 0%, var(--sand) 100%);
  color: #fffaf5;
  font-weight: 800;
}

.plan-stack,
.sheet-plans,
.action-stack,
.alert-stack,
.block-list,
.settings-list,
.summary-stack {
  display: grid;
  gap: 12px;
}

.plan-card {
  width: 100%;
  display: grid;
  gap: 6px;
  padding: 16px;
  border-radius: 22px;
  text-align: left;
  background: rgba(255, 251, 247, 0.84);
  border: 1px solid rgba(123, 75, 47, 0.12);
  box-shadow: var(--shadow-soft);
}

.plan-card.featured {
  background:
    radial-gradient(circle at top right, rgba(214, 184, 156, 0.3), transparent 36%),
    rgba(255, 251, 247, 0.96);
  border-color: rgba(165, 106, 67, 0.28);
}

.sheet-plan.is-selected,
.plan-card.is-selected {
  border-color: rgba(165, 106, 67, 0.28);
  box-shadow: 0 14px 28px rgba(123, 75, 47, 0.12);
}

.plan-card small {
  color: var(--muted);
  line-height: 1.45;
}

.date-strip-shell {
  position: relative;
  margin: 0 -4px 16px;
}

.date-strip-shell::before,
.date-strip-shell::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 10px;
  width: 22px;
  pointer-events: none;
  z-index: 1;
}

.date-strip-shell::before {
  left: 0;
  background: linear-gradient(90deg, rgba(251, 247, 242, 0.96) 0%, rgba(251, 247, 242, 0) 100%);
}

.date-strip-shell::after {
  right: 0;
  background: linear-gradient(270deg, rgba(251, 247, 242, 0.96) 0%, rgba(251, 247, 242, 0) 100%);
}

.date-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(86px, 86px);
  gap: 10px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  padding: 2px 24px 10px 4px;
}

.date-strip::-webkit-scrollbar {
  display: none;
}

.agenda-picker-copy {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.date-chip {
  min-width: 0;
  display: grid;
  gap: 4px;
  align-content: center;
  min-height: 82px;
  padding: 12px 8px;
  border-radius: 18px;
  background: rgba(255, 251, 247, 0.92);
  border: 1px solid rgba(123, 75, 47, 0.12);
  text-align: center;
  box-shadow: 0 10px 20px rgba(78, 58, 42, 0.04);
  scroll-snap-align: start;
}

.date-chip strong {
  display: block;
  font-size: 0.96rem;
  line-height: 1;
}

.date-chip span {
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.date-chip small {
  color: var(--muted);
  font-size: 0.64rem;
  line-height: 1.2;
  min-height: 2.3em;
  display: grid;
  place-items: center;
}

.date-chip.active {
  background: rgba(165, 106, 67, 0.18);
  border-color: rgba(165, 106, 67, 0.32);
  box-shadow: 0 12px 24px rgba(123, 75, 47, 0.12);
  transform: translateY(-1px);
}

.date-chip:focus-visible {
  outline: 2px solid rgba(165, 106, 67, 0.38);
  outline-offset: 2px;
}

.date-chip.is-empty {
  background: rgba(247, 241, 233, 0.78);
  color: var(--muted);
}

.agenda-selected-day-card {
  padding: 18px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(214, 184, 156, 0.16), transparent 28%),
    rgba(255, 251, 247, 0.7);
  border: 1px solid rgba(123, 75, 47, 0.1);
  box-shadow: 0 14px 28px rgba(78, 58, 42, 0.05);
}

.agenda-selected-day-head {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(123, 75, 47, 0.08);
}

.agenda-selected-day-list {
  display: grid;
  gap: 12px;
}

.agenda-calendar-list {
  display: grid;
  gap: 14px;
}

.agenda-week-card {
  padding: 14px;
  border-radius: 24px;
  background: rgba(255, 251, 247, 0.62);
  border: 1px solid rgba(123, 75, 47, 0.08);
}

.agenda-week-head {
  margin-bottom: 12px;
}

.agenda-week-scroll {
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}

.agenda-week-scroll::-webkit-scrollbar {
  display: none;
}

.agenda-week-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(170px, 1fr));
  gap: 10px;
  min-width: 1230px;
}

.agenda-day-column {
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 100%;
  padding: 12px;
  border-radius: 22px;
  background: rgba(255, 251, 247, 0.88);
  border: 1px solid rgba(123, 75, 47, 0.08);
}

.agenda-day-column.is-selected {
  background: rgba(165, 106, 67, 0.1);
  border-color: rgba(165, 106, 67, 0.2);
  box-shadow: inset 0 0 0 1px rgba(165, 106, 67, 0.12);
}

.agenda-day-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
}

.agenda-day-header span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.agenda-day-header strong {
  display: block;
  margin-top: 4px;
  font-size: 1rem;
  color: var(--ink);
}

.agenda-day-header small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.agenda-day-body {
  display: grid;
  gap: 10px;
  align-content: start;
}

.agenda-day-empty {
  min-height: 132px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(247, 241, 233, 0.8);
  border: 1px dashed rgba(123, 75, 47, 0.14);
  text-align: center;
}

.agenda-day-empty strong {
  font-size: 0.92rem;
}

.agenda-day-empty span {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.agenda-session-card {
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 251, 247, 0.96);
  border: 1px solid rgba(123, 75, 47, 0.08);
  display: grid;
  gap: 10px;
  box-shadow: 0 10px 22px rgba(78, 58, 42, 0.04);
}

.agenda-session-card.is-open {
  background: rgba(115, 133, 111, 0.08);
  border-color: rgba(115, 133, 111, 0.16);
}

.agenda-session-card.is-busy {
  background: rgba(214, 184, 156, 0.16);
  border-color: rgba(165, 106, 67, 0.16);
}

.agenda-session-card.is-full {
  background: rgba(168, 72, 63, 0.08);
  border-color: rgba(168, 72, 63, 0.16);
}

.agenda-session-card.is-reserved {
  background: rgba(165, 106, 67, 0.11);
  border-color: rgba(165, 106, 67, 0.18);
}

.agenda-session-top,
.agenda-session-meta,
.agenda-session-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
  flex-wrap: wrap;
}

.agenda-session-card h4 {
  margin-bottom: 6px;
  font-size: 0.96rem;
  line-height: 1.2;
}

.agenda-session-meta,
.agenda-session-footer,
.agenda-empty-global {
  color: var(--muted);
  line-height: 1.45;
}

.agenda-session-meta {
  font-size: 0.82rem;
}

.agenda-session-footer {
  align-items: center;
}

.agenda-session-footer span {
  flex: 1;
  min-width: 0;
  font-size: 0.8rem;
}

.agenda-session-footer .session-action {
  font-size: 0.78rem;
  padding: 8px 10px;
}

.agenda-empty-global {
  margin-bottom: 0;
}

.session-list,
.history-list,
.admin-list,
.payments-list {
  display: grid;
  gap: 12px;
}

.session-card,
.history-item,
.admin-row,
.payment-row,
.client-card,
.alert-item,
.block-item {
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 251, 247, 0.8);
  border: 1px solid rgba(123, 75, 47, 0.08);
}

.session-card.compact {
  margin-top: 8px;
}

.session-top,
.session-meta,
.session-footer,
.history-top,
.admin-row-top,
.payment-top,
.client-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.session-top,
.session-meta,
.session-footer,
.history-top {
  flex-wrap: wrap;
}

.session-card h4,
.admin-row h4,
.client-card h4 {
  margin-bottom: 6px;
  font-size: clamp(1rem, 3.4vw, 1.08rem);
}

.session-meta,
.session-footer,
.history-item,
.payment-row,
.admin-row,
.client-card p,
.alert-item span,
.block-item span {
  color: var(--muted);
  line-height: 1.45;
}

.session-footer {
  margin-top: 14px;
  align-items: center;
}

.session-footer span {
  flex: 1;
  min-width: 0;
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--muted);
}

.status-dot::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--sage);
}

.session-action,
.mini-button {
  padding: 9px 11px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.82rem;
  background: rgba(165, 106, 67, 0.12);
  color: var(--earth-deep);
  white-space: nowrap;
}

.session-action.secondary,
.mini-button.secondary {
  background: rgba(255, 251, 247, 0.88);
  border: 1px solid rgba(123, 75, 47, 0.1);
  color: var(--muted);
}

.session-action.disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.tiny-note {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
  max-width: 100%;
}

.bottom-nav {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  border-radius: 26px;
  background: rgba(255, 251, 247, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 30px rgba(78, 58, 42, 0.12);
}

.bottom-nav.is-hidden {
  display: none;
}

.nav-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 8px;
  border-radius: 18px;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.05;
  text-align: center;
  color: var(--muted);
}

.nav-item.is-active {
  background: rgba(165, 106, 67, 0.12);
  color: var(--earth-deep);
}

.referral-card {
  background:
    radial-gradient(circle at top right, rgba(214, 184, 156, 0.28), transparent 36%),
    rgba(255, 251, 247, 0.92);
}

.referral-code {
  display: inline-flex;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(165, 106, 67, 0.12);
  color: var(--earth-deep);
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.benefit-grid,
.summary-grid {
  display: grid;
  gap: 12px;
}

.transfer-box {
  display: grid;
  gap: 14px;
  margin-top: 10px;
  padding: 16px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(214, 184, 156, 0.22), transparent 34%),
    rgba(255, 251, 247, 0.9);
  border: 1px solid rgba(123, 75, 47, 0.12);
  box-shadow: 0 12px 24px rgba(78, 58, 42, 0.06);
}

.transfer-box-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.transfer-box-top h3 {
  margin-bottom: 0;
  font-size: 1.12rem;
}

.transfer-alias-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: rgba(165, 106, 67, 0.1);
  border: 1px solid rgba(165, 106, 67, 0.16);
}

.transfer-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.transfer-alias-row strong {
  font-size: 1.08rem;
  word-break: break-word;
}

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

.benefit-item,
.summary-item {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 251, 247, 0.8);
  border: 1px solid rgba(123, 75, 47, 0.08);
}

.benefit-item strong,
.summary-item strong {
  display: block;
  margin-top: 8px;
  font-size: 1.25rem;
}

.empty-state {
  display: grid;
  gap: 8px;
  color: var(--muted);
  line-height: 1.55;
}

.empty-state strong {
  color: var(--ink);
}

.setting-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.setting-item + .setting-item {
  border-top: 1px solid var(--line);
}

.profile-card {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 16px;
  align-items: center;
}

.avatar-badge {
  width: 76px;
  height: 76px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--earth) 0%, var(--sand) 100%);
  color: #fffaf5;
  font-weight: 800;
  font-size: 1.25rem;
}

.list-action {
  width: 100%;
  padding: 15px 16px;
  border-radius: 18px;
  text-align: left;
  background: rgba(255, 251, 247, 0.8);
  border: 1px solid rgba(123, 75, 47, 0.1);
  color: var(--ink);
  font-weight: 700;
}

.list-action.danger {
  color: #a4483f;
}

.sheet {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
}

.sheet[aria-hidden="false"] {
  pointer-events: auto;
}

.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(32, 24, 20, 0.32);
  opacity: 0;
  transition: opacity 0.24s ease;
}

.sheet-panel {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 100%);
  width: min(460px, calc(100% - 20px));
  padding: 22px;
  border-radius: 28px 28px 0 0;
  background:
    radial-gradient(circle at top right, rgba(214, 184, 156, 0.26), transparent 28%),
    #fbf7f2;
  box-shadow: var(--shadow);
  transition: transform 0.28s ease;
}

.sheet[aria-hidden="false"] .sheet-backdrop {
  opacity: 1;
}

.sheet[aria-hidden="false"] .sheet-panel {
  transform: translate(-50%, 0);
}

.sheet-header {
  margin-bottom: 16px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 24px);
  min-width: 220px;
  max-width: min(420px, calc(100% - 32px));
  padding: 14px 18px;
  border-radius: 999px;
  background: rgba(33, 28, 25, 0.92);
  color: #fffaf5;
  box-shadow: 0 20px 40px rgba(28, 22, 19, 0.22);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease, transform 0.24s ease;
  text-align: center;
  z-index: 30;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.admin-main,
.admin-rail {
  min-width: 0;
}

.admin-rail {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 24px;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.admin-topbar {
  margin-bottom: 20px;
  padding: 0 4px;
}

.admin-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-screen {
  display: none;
}

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

.metric-card {
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 251, 247, 0.86);
  border: 1px solid rgba(123, 75, 47, 0.08);
  box-shadow: var(--shadow-soft);
}

.metric-card strong {
  display: block;
  margin-top: 8px;
  font-size: 2rem;
  color: var(--earth-deep);
}

.admin-content-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
}

.admin-content-grid.single {
  grid-template-columns: 1fr 1fr;
}

.admin-card {
  padding: 22px;
}

.admin-list,
.client-grid,
.payments-list {
  margin-top: 6px;
}

.admin-row,
.payment-row,
.client-card {
  border-radius: 24px;
}

.occupancy-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(123, 75, 47, 0.08);
  overflow: hidden;
  margin-top: 10px;
}

.occupancy-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--sage) 0%, var(--earth) 100%);
}

.admin-actions-inline {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.alert-item + .alert-item {
  margin-top: 12px;
}

.client-grid {
  display: grid;
  gap: 14px;
}

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

.payment-badge,
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
}

.payment-badge.approved,
.status-badge.active {
  background: rgba(115, 133, 111, 0.14);
  color: #496046;
}

.payment-badge.pending,
.status-badge.pending {
  background: rgba(214, 184, 156, 0.22);
  color: var(--earth-deep);
}

.payment-badge.rejected,
.status-badge.expired {
  background: rgba(168, 72, 63, 0.12);
  color: #9f4038;
}

.settings-panel,
.policy-card,
.summary-stack {
  display: grid;
  gap: 12px;
}

.policy-card {
  padding: 18px;
  border-radius: 24px;
  margin-top: 22px;
}

.admin-nav {
  display: grid;
  gap: 8px;
  margin-top: 22px;
}

.admin-nav-item {
  width: 100%;
  padding: 14px 16px;
  border-radius: 18px;
  text-align: left;
  background: rgba(255, 251, 247, 0.82);
  color: var(--muted);
  font-weight: 800;
  border: 1px solid transparent;
}

.admin-nav-item.is-active {
  color: var(--earth-deep);
  border-color: rgba(165, 106, 67, 0.18);
  background: rgba(165, 106, 67, 0.12);
}

.summary-line strong,
.policy-item strong,
.setting-row strong {
  color: var(--ink);
}

.fade-up {
  animation: fadeUp 0.55s ease both;
}

.stagger-1 {
  animation-delay: 0.1s;
}

.stagger-2 {
  animation-delay: 0.18s;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

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

@media (max-width: 1180px) {
  .prototype-shell {
    grid-template-columns: 1fr;
  }

  .prototype-context {
    position: static;
  }

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar,
  .admin-rail {
    position: static;
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .choice-grid,
  .notes-grid,
  .admin-content-grid,
  .admin-content-grid.single,
  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .landing-shell {
    width: min(100%, calc(100% - 24px));
  }

  .hero-card,
  .choice-card,
  .notes-card,
  .prototype-context,
  .admin-sidebar,
  .admin-card {
    padding: 24px;
  }

}

@media (max-width: 640px) {
  .prototype-shell,
  .admin-shell {
    width: min(100%, calc(100% - 18px));
    padding-top: 18px;
  }

  .hero-card,
  .choice-card,
  .notes-card,
  .prototype-context,
  .admin-sidebar,
  .admin-card,
  .admin-rail {
    border-radius: 24px;
  }

  .phone-frame {
    padding: 10px;
    border-radius: 32px;
  }

  .phone-screen {
    min-height: 760px;
    border-radius: 28px;
  }

  .screen {
    height: calc(760px - 56px);
    padding-inline: 14px;
  }

  .bottom-nav {
    left: 10px;
    right: 10px;
    bottom: 10px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .nav-item {
    padding: 11px 6px;
    font-size: 0.68rem;
  }

  .date-strip {
    grid-auto-columns: minmax(82px, 82px);
    gap: 8px;
    padding-right: 20px;
  }

  .date-strip-shell::before,
  .date-strip-shell::after {
    width: 16px;
  }

  .next-class-hero,
  .hero-panel,
  .section-card,
  .auth-card,
  .referral-card,
  .profile-card,
  .micro-benefit-card {
    padding: 15px;
  }

  .micro-benefit-card {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .micro-benefit-card .text-button {
    grid-column: 1 / -1;
    padding-top: 0;
  }

  .screen-header h2 {
    max-width: 14ch;
  }

  .next-class-title {
    font-size: 1.38rem;
  }

  .transfer-box-top,
  .transfer-alias-row {
    grid-template-columns: 1fr;
    display: grid;
  }

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

/* 2026-05 visual refresh: white canvas, soft surfaces, moss-green actions */
.prototype-context,
.context-card,
.phone-frame,
.phone-screen,
.auth-card,
.section-card,
.hero-panel,
.next-class-hero,
.micro-benefit-card,
.referral-card,
.profile-card,
.empty-state,
.banner-card,
.sheet-panel,
.plan-card,
.checkout-plan-card,
.agenda-session-card,
.session-card,
.bottom-nav,
.toast {
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.prototype-context,
.context-card,
.phone-frame,
.phone-screen,
.auth-card,
.section-card,
.hero-panel,
.micro-benefit-card,
.referral-card,
.profile-card,
.empty-state,
.banner-card,
.sheet-panel,
.plan-card,
.checkout-plan-card,
.agenda-session-card,
.session-card,
.bottom-nav {
  background: var(--surface);
}

.prototype-context,
.context-card {
  background: linear-gradient(180deg, rgba(249, 251, 248, 0.98) 0%, rgba(245, 248, 244, 0.96) 100%);
}

.phone-frame {
  background: rgba(244, 247, 243, 0.9);
}

.phone-screen,
.screen {
  background: transparent;
}

.hero-panel,
.section-card,
.auth-card,
.micro-benefit-card,
.referral-card,
.profile-card,
.empty-state,
.banner-card {
  background: linear-gradient(180deg, rgba(250, 252, 249, 0.98) 0%, rgba(246, 249, 245, 0.95) 100%);
}

.next-class-hero {
  background: linear-gradient(180deg, rgba(234, 241, 231, 0.98) 0%, rgba(247, 250, 245, 0.96) 100%);
  border-color: rgba(74, 95, 61, 0.22);
  box-shadow: 0 18px 38px rgba(47, 65, 38, 0.1);
}

.next-class-hero .eyebrow,
.next-class-hero .next-class-title,
.next-class-time,
.next-class-note,
.detail-pill,
.next-class-badge,
.next-class-badge.muted {
  color: var(--ink);
}

.detail-pill,
.next-class-badge,
.next-class-badge.muted {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(74, 95, 61, 0.14);
}

.button-primary,
.session-action,
.plan-card-button {
  background: linear-gradient(135deg, var(--earth) 0%, var(--earth-deep) 100%);
  color: #f7faf5;
  box-shadow: 0 14px 28px rgba(47, 65, 38, 0.16);
}

.button-secondary,
.session-action.secondary,
.mini-button.secondary,
.icon-button,
.sheet-plan,
.panel-tag.muted,
.pill-muted,
.soft-chip {
  background: rgba(255, 255, 255, 0.78);
  border-color: var(--line);
  color: var(--ink);
}

.next-class-hero .session-action {
  background: linear-gradient(135deg, var(--earth) 0%, var(--earth-deep) 100%);
  color: #f7faf5;
  border-color: transparent;
}

.next-class-hero .session-action.secondary {
  background: rgba(255, 255, 255, 0.78);
  color: var(--earth-deep);
  border-color: rgba(74, 95, 61, 0.14);
}

.panel-tag,
.agenda-live-pill.is-live,
.soft-chip[data-tone="active"] {
  background: rgba(74, 95, 61, 0.12);
  color: var(--earth-deep);
  border: 1px solid rgba(74, 95, 61, 0.14);
}

.soft-progress {
  background: rgba(74, 95, 61, 0.08);
}

.soft-progress span {
  background: linear-gradient(90deg, var(--earth) 0%, var(--sage) 100%);
}

.checkout-plan-badge,
.referral-code,
.mini-stat-value {
  color: var(--earth-deep);
}

.checkout-plan-card.is-selected,
.sheet-plan.is-selected,
.plan-card.is-selected,
.plan-card.featured {
  background: linear-gradient(180deg, rgba(236, 243, 233, 0.98) 0%, rgba(248, 250, 246, 0.96) 100%);
  border-color: rgba(74, 95, 61, 0.32);
  box-shadow:
    0 0 0 1px rgba(74, 95, 61, 0.08),
    0 16px 30px rgba(47, 65, 38, 0.1);
}

.checkout-plan-card.is-selected .checkout-plan-badge {
  background: rgba(74, 95, 61, 0.14);
}

.date-strip-shell::before,
.date-strip-shell::after {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0) 100%);
}

.date-strip-shell::after {
  background: linear-gradient(270deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0) 100%);
}

.agenda-session-card.is-open,
.agenda-session-card.is-reserved {
  background: rgba(232, 239, 229, 0.9);
  border-color: rgba(74, 95, 61, 0.18);
}

.agenda-session-card.is-busy {
  background: rgba(241, 245, 239, 0.92);
  border-color: rgba(111, 129, 99, 0.18);
}

.agenda-session-card.is-full {
  background: rgba(244, 247, 243, 0.92);
  border-color: rgba(47, 65, 38, 0.12);
}

.auth-field input,
.field input,
.field select,
.field textarea {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  color: var(--ink);
}

.auth-field input::placeholder,
.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted);
}

.bottom-nav {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--line);
}

.nav-item.is-active {
  background: rgba(74, 95, 61, 0.12);
  color: var(--earth-deep);
}

.toast {
  background: rgba(47, 65, 38, 0.94);
  color: #f7faf5;
  border-color: transparent;
}

/* 2026-05 visual refresh: final pass for crisp white + moss palette */
.prototype-shell,
.landing-shell,
.admin-shell,
.screen,
.section-head,
.screen-header,
.sheet-header,
.auth-field span,
.benefit-item span,
.summary-item span,
.setting-item span,
.list-action,
.back-link,
.text-button,
.icon-button,
.soft-chip,
.panel-tag,
.pill-muted,
.agenda-picker-copy,
.tiny-note,
.muted-copy {
  font-family: var(--font-sans);
}

.eyebrow,
.preview-label,
.stat-caption,
.context-label,
.mini-stat-label,
.benefit-label {
  color: var(--sage);
}

.button-primary,
.session-action,
.plan-card-button,
.auth-submit-button {
  background: linear-gradient(135deg, #46583c 0%, #2f4126 100%);
  color: #f7faf5;
  box-shadow: 0 14px 30px rgba(47, 65, 38, 0.16);
}

.button-secondary,
.session-action.secondary,
.icon-button,
.list-action,
.text-button,
.sheet-plan,
.soft-chip,
.panel-tag,
.pill-muted,
.agenda-live-pill,
.detail-pill,
.next-class-badge,
.next-class-badge.muted {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(26, 34, 24, 0.1);
  color: var(--ink);
}

.button-secondary,
.session-action.secondary,
.icon-button,
.list-action,
.sheet-plan,
.soft-chip,
.panel-tag,
.pill-muted,
.agenda-live-pill,
.detail-pill,
.next-class-badge,
.next-class-badge.muted {
  border-style: solid;
  border-width: 1px;
}

.text-button {
  color: var(--earth-deep);
}

.button-secondary:hover,
.session-action.secondary:hover,
.icon-button:hover,
.list-action:hover,
.sheet-plan:hover {
  border-color: rgba(74, 95, 61, 0.2);
  box-shadow: 0 10px 18px rgba(47, 65, 38, 0.08);
}

.preview-card,
.preview-pill,
.choice-card,
.section-card,
.next-class-hero,
.micro-benefit-card,
.referral-card,
.profile-card,
.banner-card,
.hero-panel,
.empty-state,
.policy-card,
.auth-card,
.context-card,
.phone-screen,
.sheet-panel,
.plan-card,
.checkout-plan-card,
.agenda-session-card,
.session-card {
  background: linear-gradient(180deg, rgba(251, 252, 251, 0.98) 0%, rgba(246, 248, 245, 0.95) 100%);
  border-color: rgba(26, 34, 24, 0.08);
  box-shadow: 0 12px 28px rgba(37, 52, 33, 0.05);
}

.phone-frame {
  background: linear-gradient(180deg, #182015 0%, #0f140d 100%);
}

.phone-screen {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.auth-card {
  background:
    radial-gradient(circle at top right, rgba(184, 200, 176, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(251, 252, 251, 0.98) 0%, rgba(246, 248, 245, 0.96) 100%);
}

.hero-panel,
.section-card,
.micro-benefit-card,
.referral-card,
.profile-card,
.empty-state,
.banner-card {
  background: linear-gradient(180deg, rgba(252, 253, 252, 0.99) 0%, rgba(247, 249, 247, 0.96) 100%);
}

.next-class-hero {
  background:
    radial-gradient(circle at top right, rgba(111, 129, 99, 0.16), transparent 36%),
    linear-gradient(180deg, rgba(236, 243, 234, 0.98) 0%, rgba(247, 250, 245, 0.97) 100%);
  border-color: rgba(74, 95, 61, 0.18);
  box-shadow: 0 18px 38px rgba(47, 65, 38, 0.1);
}

.screen-header h2,
.section-head h3,
.sheet-header h3,
.choice-copy h2,
.brand-logo,
.next-class-title,
.hero-number,
.hero-side-number,
.mini-stat-value,
.checkout-plan-price,
.plan-card-price,
.benefit-item strong,
.summary-item strong,
.session-card h4,
.agenda-session-card h4 {
  color: #111411;
}

.lead,
.choice-copy p,
.notes-grid p,
.context-card,
.policy-card,
.summary-line,
.setting-row,
.auth-helper-copy,
.agenda-picker-copy,
.benefit-item span,
.summary-item span,
.setting-item,
.session-meta,
.history-entry-copy,
.empty-state p {
  color: var(--muted);
}

.brand-logo {
  letter-spacing: -0.03em;
}

.auth-field input,
.field input,
.field select,
.field textarea {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(26, 34, 24, 0.1);
  color: #111411;
}

.auth-field input:focus,
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(74, 95, 61, 0.42);
  box-shadow: 0 0 0 4px rgba(74, 95, 61, 0.12);
}

.plan-card,
.checkout-plan-card,
.sheet-plan,
.agenda-day-button,
.nav-item {
  color: #111411;
}

.plan-card.is-selected,
.checkout-plan-card.is-selected,
.sheet-plan.is-selected,
.plan-card.featured {
  background:
    radial-gradient(circle at top right, rgba(111, 129, 99, 0.16), transparent 36%),
    linear-gradient(180deg, rgba(240, 245, 238, 0.99) 0%, rgba(247, 250, 246, 0.97) 100%);
  border-color: rgba(74, 95, 61, 0.34);
  box-shadow:
    0 0 0 1px rgba(74, 95, 61, 0.08),
    0 18px 32px rgba(47, 65, 38, 0.1);
}

.agenda-day-button.is-selected,
.nav-item.is-active {
  background: rgba(74, 95, 61, 0.12);
  border-color: rgba(74, 95, 61, 0.16);
  color: var(--earth-deep);
}

.agenda-session-card.is-open,
.agenda-session-card.is-reserved {
  background: rgba(234, 241, 231, 0.94);
}

.agenda-session-card.is-busy {
  background: rgba(242, 246, 239, 0.96);
}

.agenda-session-card.is-full {
  background: rgba(245, 248, 244, 0.96);
}

.bottom-nav {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 26px rgba(37, 52, 33, 0.08);
}

.toast {
  background: rgba(47, 65, 38, 0.96);
  color: #f7faf5;
}


/* 2026-05 client polish: simplified home and fully unified palette */
.client-webapp-page .hero-panel,
.client-webapp-page .section-card,
.client-webapp-page .next-class-hero,
.client-webapp-page .referral-card,
.client-webapp-page .profile-card,
.client-webapp-page .empty-state,
.client-webapp-page .session-card,
.client-webapp-page .agenda-selected-day-card,
.client-webapp-page .agenda-day-column,
.client-webapp-page .agenda-week-card,
.client-webapp-page .agenda-session-card,
.client-webapp-page .benefit-item,
.client-webapp-page .summary-item,
.client-webapp-page .transfer-box,
.client-webapp-page .sheet-panel,
.client-webapp-page .banner-card {
  background: linear-gradient(180deg, rgba(252, 253, 252, 0.99) 0%, rgba(247, 249, 247, 0.97) 100%);
  border: 1px solid rgba(26, 34, 24, 0.08);
  box-shadow: 0 12px 28px rgba(37, 52, 33, 0.05);
}

.client-webapp-page .next-class-hero {
  background:
    radial-gradient(circle at top right, rgba(111, 129, 99, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(244, 248, 242, 0.99) 0%, rgba(236, 243, 234, 0.97) 100%);
  border-color: rgba(74, 95, 61, 0.16);
  box-shadow: 0 16px 34px rgba(47, 65, 38, 0.08);
}

.client-webapp-page .next-class-hero .eyebrow,
.client-webapp-page .next-class-hero .next-class-title,
.client-webapp-page .next-class-time,
.client-webapp-page .next-class-note,
.client-webapp-page .detail-pill,
.client-webapp-page .next-class-badge,
.client-webapp-page .next-class-badge.muted {
  color: #111411;
}

.client-webapp-page .detail-pill,
.client-webapp-page .next-class-badge,
.client-webapp-page .next-class-badge.muted,
.client-webapp-page .panel-tag,
.client-webapp-page .panel-tag.muted,
.client-webapp-page .pill-muted,
.client-webapp-page .soft-chip {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(26, 34, 24, 0.08);
  color: #111411;
}

.client-webapp-page .membership-panel {
  padding: 16px;
}

.client-webapp-page .hero-panel-top.compact {
  align-items: center;
}

.client-webapp-page .home-account-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(140px, 0.9fr);
  gap: 14px;
  align-items: end;
  margin: 14px 0 10px;
}

.client-webapp-page .home-account-main {
  display: grid;
  gap: 8px;
}

.client-webapp-page .home-account-meta {
  display: grid;
  gap: 10px;
}

.client-webapp-page .home-account-meta strong {
  display: block;
  margin-top: 6px;
  color: #111411;
  font-size: 0.96rem;
  line-height: 1.35;
}

.client-webapp-page .home-account-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.88rem;
}

.client-webapp-page .hero-number.compact {
  font-size: clamp(2.35rem, 8vw, 2.8rem);
}

.client-webapp-page .date-strip-shell::before,
.client-webapp-page .date-strip-shell::after {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0) 100%);
}

.client-webapp-page .date-strip-shell::after {
  background: linear-gradient(270deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0) 100%);
}

.client-webapp-page .date-chip {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(26, 34, 24, 0.08);
  box-shadow: 0 10px 20px rgba(37, 52, 33, 0.04);
}

.client-webapp-page .date-chip span {
  color: var(--sage);
  font-size: 0.64rem;
}

.client-webapp-page .date-chip strong {
  color: #111411;
  font-size: 1rem;
}

.client-webapp-page .date-chip em {
  display: block;
  color: var(--muted);
  font-style: normal;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.client-webapp-page .date-chip small {
  color: var(--muted);
}

.client-webapp-page .date-chip.active {
  background: rgba(74, 95, 61, 0.1);
  border-color: rgba(74, 95, 61, 0.22);
  box-shadow: 0 12px 24px rgba(47, 65, 38, 0.08);
}

.client-webapp-page .date-chip.is-empty {
  background: rgba(247, 249, 247, 0.88);
}

.client-webapp-page .agenda-selected-day-card,
.client-webapp-page .agenda-week-card,
.client-webapp-page .agenda-day-column,
.client-webapp-page .agenda-day-empty,
.client-webapp-page .agenda-session-card,
.client-webapp-page .session-card,
.client-webapp-page .history-item,
.client-webapp-page .transfer-box,
.client-webapp-page .referral-card,
.client-webapp-page .benefit-item,
.client-webapp-page .summary-item,
.client-webapp-page .list-action,
.client-webapp-page .bottom-nav {
  border-color: rgba(26, 34, 24, 0.08);
}

.client-webapp-page .agenda-day-empty,
.client-webapp-page .agenda-session-card.is-full,
.client-webapp-page .payment-badge.pending,
.client-webapp-page .status-badge.pending {
  background: rgba(245, 248, 244, 0.96);
}

.client-webapp-page .agenda-session-card.is-open,
.client-webapp-page .agenda-session-card.is-reserved,
.client-webapp-page .payment-badge.approved,
.client-webapp-page .status-badge.active {
  background: rgba(234, 241, 231, 0.96);
  color: var(--earth-deep);
}

.client-webapp-page .agenda-session-card.is-busy {
  background: rgba(239, 244, 237, 0.96);
}

.client-webapp-page .session-action,
.client-webapp-page .button-primary,
.client-webapp-page .auth-submit-button {
  background: linear-gradient(135deg, #46583c 0%, #2f4126 100%);
  color: #f7faf5;
}

.client-webapp-page .session-action.secondary,
.client-webapp-page .icon-button,
.client-webapp-page .list-action,
.client-webapp-page .button-secondary,
.client-webapp-page .text-button {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(26, 34, 24, 0.08);
  color: #111411;
}

.client-webapp-page .referral-code,
.client-webapp-page .micro-benefit-badge,
.client-webapp-page .avatar-badge,
.client-webapp-page .banner-icon {
  background: linear-gradient(135deg, #46583c 0%, #6f8163 100%);
  color: #f7faf5;
}

.client-webapp-page .bottom-nav {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 24px rgba(37, 52, 33, 0.08);
}

.client-webapp-page .nav-item.is-active {
  background: rgba(74, 95, 61, 0.12);
  color: var(--earth-deep);
}

@media (max-width: 480px) {
  .client-webapp-page .home-account-grid {
    grid-template-columns: 1fr;
  }
}

/* 2026-05 agenda simplification */
.client-webapp-page .date-strip {
  grid-auto-columns: minmax(82px, 82px);
  gap: 8px;
  padding: 2px 18px 10px 4px;
}

.client-webapp-page .date-chip {
  min-height: 78px;
  padding: 10px 8px;
  border-radius: 20px;
  display: grid;
  gap: 2px;
  align-content: center;
}

.client-webapp-page .date-chip span {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.client-webapp-page .date-chip strong {
  font-size: 1.08rem;
  line-height: 1;
}

.client-webapp-page .date-chip em {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
}

.client-webapp-page .date-chip small {
  min-height: auto;
  font-size: 0.62rem;
  line-height: 1.15;
}

.client-webapp-page .agenda-day-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(252, 253, 252, 0.99) 0%, rgba(247, 249, 247, 0.97) 100%);
  border: 1px solid rgba(26, 34, 24, 0.08);
  box-shadow: 0 12px 28px rgba(37, 52, 33, 0.05);
}

.client-webapp-page .agenda-day-panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(26, 34, 24, 0.08);
}

.client-webapp-page .agenda-day-panel-head h3 {
  margin-bottom: 0;
}

.client-webapp-page .agenda-day-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(232, 239, 229, 0.95);
  border: 1px solid rgba(74, 95, 61, 0.12);
  color: var(--earth-deep);
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}

.client-webapp-page .agenda-slot-list {
  display: grid;
  gap: 10px;
}

.client-webapp-page .agenda-slot-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(26, 34, 24, 0.08);
  box-shadow: 0 10px 18px rgba(37, 52, 33, 0.04);
}

.client-webapp-page .agenda-slot-track {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
}

.client-webapp-page .agenda-slot-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: rgba(111, 129, 99, 0.22);
}

.client-webapp-page .agenda-slot-card.is-busy .agenda-slot-fill {
  background: rgba(184, 200, 176, 0.32);
}

.client-webapp-page .agenda-slot-card.is-full .agenda-slot-fill {
  background: rgba(196, 163, 147, 0.34);
}

.client-webapp-page .agenda-slot-card.is-reserved .agenda-slot-fill {
  background: rgba(74, 95, 61, 0.28);
}

.client-webapp-page .agenda-slot-main,
.client-webapp-page .agenda-slot-actions {
  position: relative;
  z-index: 1;
}

.client-webapp-page .agenda-slot-main {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.client-webapp-page .agenda-slot-time {
  display: grid;
  gap: 4px;
}

.client-webapp-page .agenda-slot-time strong {
  font-size: 1.02rem;
  line-height: 1;
  color: #111411;
}

.client-webapp-page .agenda-slot-time span {
  font-size: 0.74rem;
  color: var(--muted);
  line-height: 1.3;
}

.client-webapp-page .agenda-slot-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.client-webapp-page .agenda-slot-topline,
.client-webapp-page .agenda-slot-meta,
.client-webapp-page .agenda-slot-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.client-webapp-page .agenda-slot-instructor,
.client-webapp-page .agenda-slot-capacity,
.client-webapp-page .agenda-slot-level,
.client-webapp-page .agenda-slot-state,
.client-webapp-page .agenda-slot-helper {
  font-size: 0.78rem;
}

.client-webapp-page .agenda-slot-instructor {
  color: #111411;
  font-weight: 700;
}

.client-webapp-page .agenda-slot-capacity,
.client-webapp-page .agenda-slot-helper {
  color: var(--muted);
}

.client-webapp-page .agenda-slot-meta {
  justify-content: flex-start;
}

.client-webapp-page .agenda-slot-state,
.client-webapp-page .agenda-slot-level {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(26, 34, 24, 0.08);
  color: #111411;
  white-space: nowrap;
}

.client-webapp-page .agenda-slot-card.is-full .agenda-slot-state {
  background: rgba(255, 255, 255, 0.92);
}

.client-webapp-page .agenda-slot-actions {
  align-items: center;
}

.client-webapp-page .agenda-slot-actions .session-action {
  min-width: 104px;
  justify-content: center;
}

.client-webapp-page .agenda-day-empty.simplified {
  min-height: 120px;
}

@media (max-width: 480px) {
  .client-webapp-page .agenda-day-panel {
    padding: 16px;
  }

  .client-webapp-page .agenda-day-panel-head {
    align-items: stretch;
  }

  .client-webapp-page .agenda-slot-main {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 10px;
  }

  .client-webapp-page .agenda-slot-actions .session-action {
    width: 100%;
  }
}

/* 2026-05 agenda weekly board */
.client-webapp-page .bottom-nav {
  z-index: 50;
  isolation: isolate;
  background: rgba(255, 255, 255, 0.99);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 -6px 24px rgba(37, 52, 33, 0.08), 0 12px 24px rgba(37, 52, 33, 0.08);
}

.client-webapp-page .bottom-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.985);
  z-index: -1;
}

.client-webapp-page .agenda-week-board {
  display: block;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 6px;
  margin-inline: -2px;
  scrollbar-width: none;
}

.client-webapp-page .agenda-week-board::-webkit-scrollbar {
  display: none;
}

.client-webapp-page .agenda-week-panel {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.client-webapp-page .agenda-week-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(84px, 84px);
  gap: 8px;
  align-items: start;
  width: max-content;
  min-width: 100%;
}

.client-webapp-page .agenda-week-column {
  display: grid;
  gap: 6px;
  align-content: start;
  min-width: 0;
}

.client-webapp-page .agenda-week-column.is-selected .agenda-week-day-head {
  border-color: rgba(74, 95, 61, 0.24);
  background: rgba(74, 95, 61, 0.08);
}

.client-webapp-page .agenda-week-day-head {
  display: grid;
  gap: 2px;
  justify-items: center;
  padding: 7px 4px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(26, 34, 24, 0.08);
  box-shadow: 0 8px 18px rgba(37, 52, 33, 0.04);
}

.client-webapp-page .agenda-week-day-head span {
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sage);
}

.client-webapp-page .agenda-week-day-head strong {
  font-size: 0.75rem;
  line-height: 1.15;
  color: #111411;
  text-align: center;
}

.client-webapp-page .agenda-class-list {
  display: grid;
  gap: 5px;
}

.client-webapp-page .agenda-class-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 3px;
  width: 100%;
  min-width: 0;
  padding: 7px 6px;
  border-radius: 12px;
  border: 1px solid rgba(26, 34, 24, 0.08);
  text-align: left;
  background: linear-gradient(
    90deg,
    var(--agenda-fill-color) 0%,
    var(--agenda-fill-color) var(--agenda-fill, 16%),
    rgba(255, 255, 255, 0.98) var(--agenda-fill, 16%),
    rgba(255, 255, 255, 0.98) 100%
  );
  color: #111411;
  box-shadow: 0 6px 14px rgba(37, 52, 33, 0.04);
  min-height: 86px;
}

.client-webapp-page .agenda-class-card.is-open {
  --agenda-fill-color: #d7ecd6;
  border-color: rgba(78, 111, 67, 0.18);
}

.client-webapp-page .agenda-class-card.is-busy {
  --agenda-fill-color: #f1e4b8;
  border-color: rgba(170, 138, 48, 0.22);
}

.client-webapp-page .agenda-class-card.is-full {
  --agenda-fill-color: #efcbc4;
  border-color: rgba(166, 91, 79, 0.22);
}

.client-webapp-page .agenda-class-card.is-owned,
.client-webapp-page .agenda-class-card.is-reserved {
  --agenda-fill-color: #88a579;
  border-color: rgba(74, 95, 61, 0.22);
}

.client-webapp-page .agenda-class-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.client-webapp-page .agenda-class-time {
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1;
}

.client-webapp-page .agenda-class-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(39, 56, 33, 0.16);
  color: #20321b;
  font-size: 0.68rem;
  font-weight: 800;
}

.client-webapp-page .agenda-class-title {
  font-size: 0.62rem;
  line-height: 1.18;
  min-height: 2.3em;
}

.client-webapp-page .agenda-class-instructor {
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(16, 19, 16, 0.78);
}

.client-webapp-page .agenda-class-meta {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  font-size: 0.53rem;
  color: rgba(16, 19, 16, 0.72);
  line-height: 1.2;
}

.client-webapp-page .agenda-day-empty.compact {
  min-height: 86px;
  padding: 10px 6px;
  border-radius: 12px;
  font-size: 0.64rem;
}

.client-webapp-page .agenda-day-empty.compact strong {
  font-size: 0.72rem;
  text-align: center;
}

.client-webapp-page .agenda-sheet-panel {
  max-width: 420px;
}

.client-webapp-page .agenda-sheet-body {
  display: grid;
  gap: 14px;
}

.client-webapp-page .agenda-sheet-summary {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid rgba(26, 34, 24, 0.08);
  background: rgba(255, 255, 255, 0.96);
}

.client-webapp-page .agenda-sheet-summary.is-open {
  background: #eef7eb;
}

.client-webapp-page .agenda-sheet-summary.is-busy {
  background: #faf2da;
}

.client-webapp-page .agenda-sheet-summary.is-full {
  background: #f5dfdb;
}

.client-webapp-page .agenda-sheet-summary.is-reserved {
  background: #e5f1e1;
}

.client-webapp-page .agenda-sheet-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 480px) {
  .client-webapp-page .agenda-week-grid {
    grid-auto-columns: minmax(82px, 82px);
    gap: 6px;
  }

  .client-webapp-page .agenda-class-time {
    font-size: 0.72rem;
  }

  .client-webapp-page .agenda-class-title {
    font-size: 0.62rem;
  }

  .client-webapp-page .agenda-sheet-actions {
    grid-template-columns: 1fr;
  }
}
