/* Hey Coach M UX Redesign — Design Tokens, Shell, Pillars, Drill-downs, Progress, Settings & Public Polish
 * Loaded after legacy stylesheets so normative design tokens and layout contracts win cleanly.
 */

:root {
  --mm-bg: #F7F8FC;
  --mm-surface: #FFFFFF;
  --mm-surface-subtle: #EEF2F8;
  --mm-text: #111827;
  --mm-text-muted: #4B5563;
  --mm-border: #D8DFEA;
  --mm-control-border: #748094;
  --mm-primary: #2949E8;
  --mm-primary-hover: #2039B8;
  --mm-primary-soft: #EEF1FF;
  --mm-midnight: #101A33;
  --mm-on-dark: #FFFFFF;
  --mm-on-dark-muted: #C7D2E8;
  --mm-success: #047857;
  --mm-success-soft: #ECFDF5;
  --mm-caution: #92400E;
  --mm-caution-soft: #FFFBEB;
  --mm-danger: #B91C1C;
  --mm-danger-soft: #FEF2F2;
  --mm-unknown: #64748B;
  --mm-focus: #2949E8;
  --mm-radius-control: 10px;
  --mm-radius-card: 16px;
  --mm-radius-sheet: 20px;
  --mm-shadow-card: 0 2px 8px rgb(16 26 51 / 4%);
  --mm-shadow-overlay: 0 16px 48px rgb(16 26 51 / 18%);
  --mm-content-max: 1120px;
  --mm-form-max: 640px;
  --mm-header-height: 64px;
  --mm-bottom-nav-height: 64px;
  --mm-space-1: 4px;
  --mm-space-2: 8px;
  --mm-space-3: 12px;
  --mm-space-4: 16px;
  --mm-space-5: 20px;
  --mm-space-6: 24px;
  --mm-space-8: 32px;
  --mm-space-12: 48px;
  --mm-font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Map legacy vars to calm light Moonman palette on account surfaces */
  --paper: var(--mm-bg);
  --bg: var(--mm-bg);
  --white: var(--mm-surface);
  --surface: var(--mm-surface);
  --surface-subtle: var(--mm-surface-subtle);
  --ink: var(--mm-text);
  --muted: var(--mm-text-muted);
  --line: var(--mm-border);
  --forest: var(--mm-primary);
  --forest-hover: var(--mm-primary-hover);
  --mint: var(--mm-primary-soft);
  --soft: var(--mm-surface-subtle);
  --red: var(--mm-danger);
  --radius: var(--mm-radius-card);
  --sans: var(--mm-font-sans);
}

/* Keep authenticated experience calm and light per spec §3.1 (selective midnight panels only) */
body {
  background: var(--mm-bg);
  color: var(--mm-text);
  font-family: var(--mm-font-sans);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: clip;
}

.mm-ux-shell,
.mm-ux-shell * {
  box-sizing: border-box;
  min-width: 0;
}

.mm-ux-num {
  font-variant-numeric: tabular-nums;
}

/* Focus rings — WCAG 2.2 AA unobscured focus on interactive controls; avoid ring on programmatic h1 focus */
.mm-ux-shell :focus-visible,
.mm-page :focus-visible,
dialog :focus-visible {
  outline: 2px solid var(--mm-focus);
  outline-offset: 2px;
}

.mm-ux-shell h1[tabindex="-1"]:focus,
.mm-ux-shell h2[tabindex="-1"]:focus {
  outline: none;
}

/* Prevent broken labels like RECOVERI / NG */
.mm-badge,
.mm-pillar-tag,
.mm-status-pill,
.mm-chip,
.mm-tab-btn,
.mm-btn {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

/* ============================================================================
 * APPLICATION SHELL & NAVIGATION (§2.1, §3.3)
 * ========================================================================== */
.mm-ux-shell {
  min-height: 100dvh;
  background: var(--mm-bg);
  color: var(--mm-text);
  display: flex;
  flex-direction: column;
}

.mm-ux-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--mm-header-height);
  background: var(--mm-surface);
  border-bottom: 1px solid var(--mm-border);
}

.mm-ux-header-inner {
  max-width: var(--mm-content-max);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--mm-space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--mm-space-4);
}

.mm-ux-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--mm-text);
  text-decoration: none;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.03em;
  min-height: 44px;
  white-space: nowrap;
}

.mm-ux-brand svg {
  width: 26px;
  height: 26px;
  color: var(--mm-primary);
  flex: none;
}

.mm-ux-brand .mm-fit {
  font-weight: 400;
}

.mm-ux-primary-nav {
  display: flex;
  align-items: center;
  gap: var(--mm-space-2);
}

.mm-ux-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--mm-radius-control);
  border: 1px solid transparent;
  background: transparent;
  color: var(--mm-text-muted);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease;
}

.mm-ux-nav-link:hover {
  background: var(--mm-surface-subtle);
  color: var(--mm-text);
  text-decoration: none;
}

.mm-ux-nav-link.is-active,
.mm-ux-nav-link[aria-current="page"] {
  background: var(--mm-primary-soft);
  color: var(--mm-primary);
  font-weight: 600;
}

.mm-ux-header-actions {
  display: flex;
  align-items: center;
  gap: var(--mm-space-3);
  position: relative;
}

.mm-ux-coach-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--mm-radius-control);
  border: 1px solid var(--mm-primary);
  background: var(--mm-primary);
  color: var(--mm-on-dark);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 150ms ease, border-color 150ms ease;
}

.mm-ux-coach-btn:hover {
  background: var(--mm-primary-hover);
  border-color: var(--mm-primary-hover);
}

.mm-ux-avatar-wrap {
  position: relative;
}

.mm-ux-avatar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1.5px solid var(--mm-control-border);
  background: var(--mm-surface-subtle);
  color: var(--mm-text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease;
}

.mm-ux-avatar-btn:hover {
  border-color: var(--mm-primary);
  background: var(--mm-primary-soft);
  color: var(--mm-primary);
}

.mm-ux-avatar-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 232px;
  background: var(--mm-surface);
  border: 1px solid var(--mm-border);
  border-radius: var(--mm-radius-card);
  box-shadow: var(--mm-shadow-overlay);
  padding: var(--mm-space-2);
  z-index: 60;
  display: grid;
  gap: 2px;
}

.mm-ux-avatar-menu[hidden] {
  display: none;
}

.mm-ux-menu-header {
  padding: 8px 12px;
  border-bottom: 1px solid var(--mm-border);
  margin-bottom: 4px;
}

.mm-ux-menu-header strong {
  display: block;
  font-size: 14px;
  color: var(--mm-text);
}

.mm-ux-menu-header span {
  display: block;
  font-size: 13px;
  color: var(--mm-text-muted);
}

.mm-ux-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--mm-text);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
}

.mm-ux-menu-item:hover {
  background: var(--mm-surface-subtle);
  text-decoration: none;
}

.mm-ux-menu-item.is-danger {
  color: var(--mm-danger);
}

.mm-ux-menu-divider {
  height: 1px;
  background: var(--mm-border);
  margin: 4px 0;
}

.mm-ux-menu-section-label {
  padding: 6px 12px 2px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mm-text-muted);
}

/* Main Content Area */
.mm-ux-main {
  flex: 1;
  width: 100%;
  max-width: var(--mm-content-max);
  margin: 0 auto;
  padding: var(--mm-space-6) var(--mm-space-6) var(--mm-space-12);
}

/* Mobile Bottom Navigation (§2.1, §3.3) */
.mm-ux-bottom-nav {
  display: none;
}

/* ============================================================================
 * SHARED PRIMITIVES (§3.1, §3.2, §9.1)
 * ========================================================================== */
.mm-page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--mm-space-3) var(--mm-space-4);
  margin-bottom: var(--mm-space-6);
}

.mm-page-header h1 {
  margin: 0;
  font-size: 32px;
  line-height: 40px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--mm-text);
}

.mm-page-meta {
  font-size: 14px;
  line-height: 20px;
  color: var(--mm-text-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.mm-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--mm-space-3);
  font-size: 14px;
  color: var(--mm-text-muted);
}

.mm-breadcrumb a {
  color: var(--mm-primary);
  text-decoration: none;
  font-weight: 500;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.mm-breadcrumb a:hover {
  text-decoration: underline;
}

.mm-pillar-tag {
  display: inline-block;
  font-size: 12px;
  line-height: 18px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mm-primary);
  margin: 0 0 4px;
}

.mm-card {
  background: var(--mm-surface);
  border: 1px solid var(--mm-border);
  border-radius: var(--mm-radius-card);
  box-shadow: var(--mm-shadow-card);
  padding: var(--mm-space-6);
}

.mm-card-midnight {
  background: var(--mm-midnight);
  color: var(--mm-on-dark);
  border: 1px solid #223055;
  border-radius: var(--mm-radius-card);
  box-shadow: var(--mm-shadow-card);
  padding: var(--mm-space-6);
}

.mm-card-midnight .mm-muted {
  color: var(--mm-on-dark-muted);
}

.mm-section-title {
  margin: 0 0 var(--mm-space-4);
  font-size: 22px;
  line-height: 30px;
  font-weight: 600;
  color: var(--mm-text);
}

.mm-card-title {
  margin: 0;
  font-size: 18px;
  line-height: 26px;
  font-weight: 600;
  color: var(--mm-text);
}

.mm-hero-metric {
  font-size: 36px;
  line-height: 44px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--mm-text);
  font-variant-numeric: tabular-nums;
}

.mm-muted {
  color: var(--mm-text-muted);
}

.mm-secondary {
  font-size: 14px;
  line-height: 20px;
  color: var(--mm-text-muted);
}

.mm-divider {
  border: 0;
  border-top: 1px solid var(--mm-border);
  margin: var(--mm-space-4) 0;
}

/* Buttons */
.mm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--mm-radius-control);
  border: 1px solid var(--mm-control-border);
  background: var(--mm-surface);
  color: var(--mm-text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}

.mm-btn:hover {
  background: var(--mm-surface-subtle);
  text-decoration: none;
}

.mm-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.mm-btn-primary {
  background: var(--mm-primary);
  border-color: var(--mm-primary);
  color: var(--mm-on-dark);
}

.mm-btn-primary:hover {
  background: var(--mm-primary-hover);
  border-color: var(--mm-primary-hover);
  color: var(--mm-on-dark);
}

.mm-btn-ghost {
  border-color: transparent;
  background: transparent;
  color: var(--mm-primary);
}

.mm-btn-ghost:hover {
  background: var(--mm-primary-soft);
}

.mm-btn-danger {
  border-color: var(--mm-danger);
  background: var(--mm-danger-soft);
  color: var(--mm-danger);
}

.mm-btn-danger:hover {
  background: var(--mm-danger);
  color: var(--mm-on-dark);
}

.mm-btn-on-dark {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--mm-on-dark);
  min-height: 44px;
  font-size: 14px;
}

.mm-btn-on-dark:hover {
  background: rgba(255, 255, 255, 0.22);
  color: var(--mm-on-dark);
}

.mm-btn-sm {
  min-height: 44px;
  padding: 0 12px;
  font-size: 14px;
}

/* Status Badges — text + icon/pattern, never color alone */
.mm-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
  border: 1px solid var(--mm-border);
  background: var(--mm-surface-subtle);
  color: var(--mm-text);
  white-space: nowrap;
}

.mm-badge-success {
  background: var(--mm-success-soft);
  border-color: #A7F3D0;
  color: var(--mm-success);
}

.mm-badge-caution {
  background: var(--mm-caution-soft);
  border-color: #FDE68A;
  color: var(--mm-caution);
}

.mm-badge-danger {
  background: var(--mm-danger-soft);
  border-color: #FECACA;
  color: var(--mm-danger);
}

.mm-badge-unknown {
  background: var(--mm-surface-subtle);
  border-color: var(--mm-border);
  color: var(--mm-text-muted);
}

.mm-badge-primary {
  background: var(--mm-primary-soft);
  border-color: #C7D2FE;
  color: var(--mm-primary);
}

/* Progress Bars */
.mm-progress-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: var(--mm-surface-subtle);
  overflow: hidden;
}

.mm-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--mm-primary);
  transition: width 180ms ease;
}

.mm-progress-fill.is-protein {
  background: var(--mm-primary);
}

.mm-progress-fill.is-carbs {
  background: #0F766E;
}

.mm-progress-fill.is-fat {
  background: #B45309;
}

.mm-progress-fill.is-unknown {
  background: var(--mm-unknown);
}

/* Local Segmented Tabs */
.mm-local-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: var(--mm-surface-subtle);
  border: 1px solid var(--mm-border);
}

.mm-tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 8px;
  border: 0;
  background: transparent;
  color: var(--mm-text-muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease;
}

.mm-tab-btn:hover {
  color: var(--mm-text);
  text-decoration: none;
}

.mm-tab-btn.is-active,
.mm-tab-btn[aria-selected="true"],
.mm-tab-btn[aria-current="page"] {
  background: var(--mm-surface);
  color: var(--mm-primary);
  box-shadow: 0 1px 3px rgb(16 26 51 / 8%);
}

/* ============================================================================
 * TODAY PAGE (§4)
 * ========================================================================== */
.mm-coach-mission-strip {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--mm-space-6);
  align-items: start;
  margin-bottom: var(--mm-space-6);
}

.mm-coach-kicker {
  font-size: 12px;
  line-height: 18px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #93B4FF;
  margin: 0 0 8px;
}

.mm-coach-insight {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  color: var(--mm-on-dark);
}

.mm-coach-insight-toggle {
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #93B4FF;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  min-height: 44px;
}

.mm-mission-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: var(--mm-space-3);
}

.mm-mission-panel-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--mm-on-dark);
}

.mm-mission-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--mm-space-2);
}

.mm-mission-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--mm-space-3);
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.mm-mission-row-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.mm-mission-status-icon {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1.5px solid var(--mm-on-dark-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex: none;
  color: var(--mm-on-dark);
}

.mm-mission-row.is-done .mm-mission-status-icon {
  background: var(--mm-success);
  border-color: var(--mm-success);
  color: #FFFFFF;
}

.mm-mission-row-label {
  font-size: 15px;
  font-weight: 500;
  color: var(--mm-on-dark);
}

.mm-mission-row-sub {
  display: block;
  font-size: 13px;
  color: var(--mm-on-dark-muted);
}

.mm-mission-celebration {
  margin-top: var(--mm-space-3);
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(4, 120, 87, 0.22);
  border: 1px solid rgba(52, 211, 153, 0.45);
  color: #ECFDF5;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Three Pillars Grid (§3.3, §4.1) — STRICTLY 3 equal columns on >=1024px, 1 column below (NEVER 2+1!) */
.mm-pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--mm-space-6);
  align-items: stretch;
}

.mm-pillar-card {
  background: var(--mm-surface);
  border: 1px solid var(--mm-border);
  border-radius: var(--mm-radius-card);
  box-shadow: var(--mm-shadow-card);
  padding: var(--mm-space-6);
  display: flex;
  flex-direction: column;
  gap: var(--mm-space-4);
}

.mm-pillar-card-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mm-pillar-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--mm-space-3);
}

.mm-pillar-card-footer {
  padding-top: var(--mm-space-3);
  border-top: 1px solid var(--mm-border);
  margin-top: auto;
}

.mm-pillar-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: var(--mm-primary);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.mm-pillar-link:hover {
  color: var(--mm-primary-hover);
  text-decoration: underline;
}

/* Flattened Macro Rows (NO nested bordered boxes!) */
.mm-macro-list {
  display: grid;
  gap: var(--mm-space-3);
  margin: var(--mm-space-2) 0 0;
}

.mm-macro-row {
  display: grid;
  gap: 6px;
}

.mm-macro-row-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-size: 14px;
}

.mm-macro-row-name {
  font-weight: 500;
  color: var(--mm-text);
}

.mm-macro-row-val {
  font-variant-numeric: tabular-nums;
  color: var(--mm-text-muted);
  font-weight: 500;
}

.mm-macro-row-val strong {
  color: var(--mm-text);
  font-weight: 600;
}

/* Compact Body Map Preview on Today (§4.3 #7) */
.mm-body-preview-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--mm-space-2);
}

.mm-body-preview-svg {
  width: 100%;
  max-width: 240px;
  height: 176px;
  display: block;
}

.mm-body-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  font-size: 13px;
  color: var(--mm-text-muted);
}

.mm-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mm-legend-swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  border: 1px solid currentColor;
  flex: none;
}

.mm-legend-swatch.is-fresh {
  background: #10B981;
  border-color: #047857;
}

.mm-legend-swatch.is-recovering {
  background: repeating-linear-gradient(
    -45deg,
    #F59E0B,
    #F59E0B 3px,
    #FEF3C7 3px,
    #FEF3C7 6px
  );
  border-color: #92400E;
}

.mm-legend-swatch.is-unknown {
  background: radial-gradient(#64748B 1.2px, #E2E8F0 1.2px);
  background-size: 5px 5px;
  border-color: #64748B;
}

/* ============================================================================
 * TWO-COLUMN DETAIL LAYOUT (8 + 4 columns desktop, 1 column <1024px)
 * ========================================================================== */
.mm-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: var(--mm-space-6);
  align-items: start;
}

.mm-stack {
  display: grid;
  gap: var(--mm-space-4);
}

.mm-stack-lg {
  display: grid;
  gap: var(--mm-space-6);
}

.mm-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--mm-space-3);
  margin-bottom: var(--mm-space-6);
}

/* ============================================================================
 * NUTRITION DRILL-DOWN (§5)
 * ========================================================================== */
.mm-date-nav {
  display: inline-flex;
  align-items: center;
  gap: var(--mm-space-2);
  flex-wrap: nowrap;
}

.mm-date-input {
  width: auto !important;
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--mm-radius-control);
  border: 1px solid var(--mm-control-border);
  background: var(--mm-surface);
  color: var(--mm-text);
  font-size: 15px;
  font-family: inherit;
}

.mm-totals-banner {
  display: grid;
  gap: var(--mm-space-4);
  margin-bottom: var(--mm-space-6);
}

.mm-totals-banner-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--mm-space-3);
}

.mm-totals-macros-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--mm-space-4);
}

.mm-meal-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}

.mm-meal-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--mm-space-3) var(--mm-space-4);
  padding: var(--mm-space-4) 0;
  border-bottom: 1px solid var(--mm-border);
}

.mm-meal-row > :first-child {
  flex: 1 1 180px;
  min-width: 0;
}

.mm-meal-row:first-child {
  padding-top: 0;
}

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

.mm-meal-meta {
  font-size: 13px;
  color: var(--mm-text-muted);
  margin-bottom: 2px;
}

.mm-meal-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--mm-text);
  margin: 0 0 4px;
}

.mm-meal-macros {
  font-size: 14px;
  color: var(--mm-text-muted);
  font-variant-numeric: tabular-nums;
}

.mm-meal-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  flex: 0 1 auto;
}

/* Weekly Matrix (Desktop table / Mobile stacked cards — NO horizontal scroll!) */
.mm-matrix-table-wrap {
  width: 100%;
}

.mm-matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.mm-matrix-table th,
.mm-matrix-table td {
  padding: 12px 10px;
  text-align: left;
  border-bottom: 1px solid var(--mm-border);
}

.mm-matrix-table th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--mm-text-muted);
  font-weight: 600;
}

.mm-matrix-day-btn {
  border: 0;
  background: transparent;
  color: var(--mm-primary);
  font-weight: 600;
  font-size: 14px;
  padding: 4px 0;
  cursor: pointer;
  text-align: left;
  min-height: 44px;
}

.mm-matrix-day-btn:hover {
  text-decoration: underline;
}

.mm-matrix-mobile-list {
  display: none;
}

/* ============================================================================
 * TRAINING DRILL-DOWN & INTERACTIVE BODY MAP (§6)
 * ========================================================================== */
.mm-recovery-svg {
  width: 100%;
  max-width: 280px;
  height: 300px;
  margin: 0 auto;
  display: block;
}

.mm-muscle-region {
  cursor: pointer;
  transition: opacity 140ms ease, stroke-width 140ms ease;
}

.mm-muscle-region:hover {
  opacity: 0.88;
}

.mm-muscle-region.is-selected {
  stroke: #101A33 !important;
  stroke-width: 3px !important;
}

.mm-muscle-detail-box {
  padding: var(--mm-space-4);
  border-radius: 12px;
  background: var(--mm-surface-subtle);
  border: 1px solid var(--mm-border);
  display: grid;
  gap: 8px;
}

.mm-exercise-plan-item {
  padding: var(--mm-space-4) 0;
  border-bottom: 1px solid var(--mm-border);
  display: grid;
  gap: var(--mm-space-2);
}

.mm-exercise-plan-item:first-child {
  padding-top: 0;
}

.mm-exercise-plan-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.mm-exercise-plan-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.mm-set-editor-row {
  display: grid;
  grid-template-columns: auto minmax(76px, 1fr) minmax(68px, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--mm-surface-subtle);
}

.mm-set-editor-row.is-saved {
  background: var(--mm-success-soft);
}

.mm-input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: var(--mm-radius-control);
  border: 1px solid var(--mm-control-border);
  background: var(--mm-surface);
  color: var(--mm-text);
  font-size: 16px;
  line-height: 24px;
  font-family: inherit;
}

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

.mm-field label,
.mm-field-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--mm-text);
}

.mm-field-hint {
  font-size: 13px;
  color: var(--mm-text-muted);
}

/* ============================================================================
 * PROGRESS (§7.1)
 * ========================================================================== */
.mm-progress-2col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--mm-space-6);
  align-items: start;
}

.mm-card-hug {
  align-content: start;
}

.mm-chart-svg {
  width: 100%;
  height: auto;
  display: block;
}

.mm-week-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin-top: var(--mm-space-3);
}

.mm-week-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 4px;
  border-radius: 10px;
  border: 1px solid var(--mm-border);
  background: var(--mm-surface-subtle);
  font-size: 12px;
  color: var(--mm-text-muted);
}

.mm-week-dot.is-active {
  background: var(--mm-success-soft);
  border-color: #6EE7B7;
  color: var(--mm-success);
  font-weight: 600;
}

.mm-wrapped-teaser {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--mm-space-5);
  align-items: center;
}

.mm-history-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--mm-space-3);
}

/* ============================================================================
 * SETTINGS MENU + FOCUSED DETAIL (§7.2)
 * ========================================================================== */
.mm-settings-layout {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: var(--mm-space-6);
  align-items: start;
}

.mm-settings-nav {
  background: var(--mm-surface);
  border: 1px solid var(--mm-border);
  border-radius: var(--mm-radius-card);
  overflow: hidden;
  box-shadow: var(--mm-shadow-card);
}

.mm-settings-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 0;
  border-bottom: 1px solid var(--mm-border);
  background: var(--mm-surface);
  color: var(--mm-text);
  text-decoration: none;
  text-align: left;
  cursor: pointer;
}

.mm-settings-nav-item > div {
  min-width: 0;
  flex: 1;
}

.mm-settings-nav-item:last-child {
  border-bottom: 0;
}

.mm-settings-nav-item:hover {
  background: var(--mm-surface-subtle);
  text-decoration: none;
}

.mm-settings-nav-item.is-active {
  background: var(--mm-primary-soft);
  color: var(--mm-primary);
  box-shadow: inset 3px 0 0 var(--mm-primary);
}

.mm-settings-nav-item strong {
  display: block;
  font-size: 14.5px;
  line-height: 20px;
  font-weight: 600;
}

.mm-settings-nav-item span {
  display: block;
  font-size: 12.5px;
  line-height: 17px;
  color: var(--mm-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mm-settings-nav-arrow {
  font-size: 18px;
  color: var(--mm-text-muted);
  flex: none;
}

.mm-settings-nav-item.is-active .mm-settings-nav-arrow {
  color: var(--mm-primary);
}

.mm-settings-form-card {
  max-width: 100%;
}

.mm-save-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--mm-space-3);
  padding-top: var(--mm-space-4);
  margin-top: var(--mm-space-4);
  border-top: 1px solid var(--mm-border);
}

/* ============================================================================
 * DIALOGS & SHEETS (§9.3)
 * ========================================================================== */
.mm-dialog {
  width: min(540px, calc(100vw - 24px));
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  border: 1px solid var(--mm-border);
  border-radius: var(--mm-radius-sheet);
  background: var(--mm-surface);
  color: var(--mm-text);
  padding: var(--mm-space-6);
  box-shadow: var(--mm-shadow-overlay);
}

.mm-dialog::backdrop {
  background: rgba(16, 26, 51, 0.56);
}

.mm-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--mm-space-3);
  margin-bottom: var(--mm-space-4);
}

.mm-dialog-head h2 {
  margin: 0;
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
}

/* ============================================================================
 * PUBLIC HOMEPAGE & SIGN-IN MARKETING ELEVATION (§8, PUB-01..PUB-08)
 * ========================================================================== */
.mm-page {
  position: relative;
  background: var(--mm-bg);
  color: var(--mm-text);
  font-family: var(--mm-font-sans);
}

.mm-hero-ambient {
  position: absolute;
  inset: 0 0 auto 0;
  height: 540px;
  background:
    radial-gradient(ellipse 68% 58% at 78% 12%, rgba(41, 73, 232, 0.09), transparent 70%),
    radial-gradient(ellipse 52% 45% at 12% 18%, rgba(41, 73, 232, 0.05), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.mm-page .mm-wrap {
  position: relative;
  z-index: 1;
  max-width: var(--mm-content-max);
  width: 100%;
  padding: 0 var(--mm-space-6);
}

.mm-page .mm-nav {
  height: 76px;
  border-bottom: 1px solid var(--mm-border);
}

/* PUB-08: Hide Wrapped marketing block on /join auth screens */
.mm-page[data-auth-step] .mm-wrapped-showcase,
.mm-page[data-auth-step] .mm-privacy-reassurance,
.mm-page[data-auth-step] .mm-how-steps,
.mm-page[data-auth-step] .mm-hero-ambient {
  display: none !important;
}

/* Editorial Hero Typography & Hierarchy — Tight, Punchy, Above-the-Fold */
.mm-page .mm-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  padding: 52px 0 64px;
}

.mm-page .mm-hero-copy {
  max-width: 520px;
}

.mm-page .mm-hero .mm-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
  background: transparent;
  color: var(--mm-primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mm-page .mm-hero .mm-dot {
  margin: 0;
  width: 7px;
  height: 7px;
  background: var(--mm-primary);
}

.mm-page .mm-hero h1 {
  margin: 0 0 16px;
}

.mm-hero-display {
  display: block;
  max-width: 14.5ch;
  font-size: clamp(44px, 4.3vw, 54px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--mm-text);
  text-wrap: balance;
}

.mm-hero-display .mm-period {
  color: var(--mm-primary);
}

.mm-page .mm-subhead {
  font-size: 16.5px;
  line-height: 25px;
  max-width: 455px;
  margin: 0 0 24px;
  color: var(--mm-text-muted);
}

.mm-page .mm-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.mm-hero-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  color: var(--mm-text);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: color 140ms ease;
}

.mm-hero-link:hover {
  color: var(--mm-primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Single compact availability micro-line */
.mm-channel-visible {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 0;
  font-size: 12.5px;
  line-height: 18px;
  color: var(--mm-text-muted);
  max-width: 460px;
}

.mm-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mm-success);
  flex: none;
}

/* Focused, Instant-Impact Hero Stage Card (RHS) */
.mm-page .mm-conversation {
  background: var(--mm-surface);
  border: 1px solid var(--mm-border);
  border-radius: 22px;
  box-shadow: 0 20px 52px rgb(16 26 51 / 9%);
  overflow: hidden;
  align-self: center;
}

.mm-page .mm-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--mm-border);
  background: var(--mm-surface);
}

.mm-page .mm-chat-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-right: auto;
}

.mm-page .mm-chat-title strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--mm-text);
}

.mm-page .mm-chat-title span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mm-text-muted);
}

.mm-page .mm-scenarios {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  margin: 0;
  border: 1px solid var(--mm-border);
  border-radius: 999px;
  background: var(--mm-surface-subtle);
  gap: 2px;
  flex: none;
}

.mm-page .mm-scenarios label {
  flex: 0 0 auto;
}

.mm-page .mm-scenarios label > span {
  border: 0;
  border-radius: 999px;
  padding: 0 11px;
  min-height: 30px;
  font-weight: 600;
  font-size: 12px;
  color: var(--mm-text-muted);
  transition: background 140ms ease, color 140ms ease;
}

.mm-page .mm-scenarios input:checked + span {
  background: var(--mm-surface);
  color: var(--mm-primary);
  box-shadow: 0 1px 3px rgb(16 26 51 / 10%);
}

.mm-page .mm-threads {
  padding: 20px 20px 14px;
  min-height: 224px;
}

.mm-page .mm-conversation:has(input[value="mission"]:checked) .mm-thread-mission,
.mm-page .mm-conversation:has(input[value="pizza"]:checked) .mm-thread-pizza,
.mm-page .mm-conversation:has(input[value="travel"]:checked) .mm-thread-travel {
  display: flex !important;
  flex-direction: column;
  gap: 12px;
}

.mm-page .mm-bubble {
  max-width: 88%;
  font-size: 14.5px;
  line-height: 1.48;
  padding: 12px 15px;
}

.mm-page .mm-you {
  align-self: flex-end;
  margin-left: auto;
  max-width: 82%;
  background: var(--mm-primary);
  color: var(--mm-on-dark);
  border-radius: 16px 16px 4px 16px;
}

.mm-page .mm-coach {
  align-self: flex-start;
  background: var(--mm-surface-subtle);
  color: var(--mm-text);
  border-radius: 16px 16px 16px 4px;
}

/* Instant Midnight Outcome Strip inside RHS Hero Card */
.mm-hero-outcome {
  margin-top: 6px;
  padding: 13px 16px;
  border-radius: 14px;
  background: var(--mm-midnight);
  color: var(--mm-on-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mm-hero-outcome-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.mm-hero-outcome-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #93C5FD;
}

.mm-hero-outcome-main strong {
  font-size: 15px;
  font-weight: 600;
  color: #FFFFFF;
  letter-spacing: -0.015em;
}

.mm-hero-outcome-metrics {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
}

.mm-hero-outcome-metrics > span {
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #E2E8F0;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.mm-hero-outcome-metrics > span.is-good {
  background: rgba(16, 185, 129, 0.22);
  color: #6EE7B7;
}

.mm-page .mm-conversation-note {
  margin: 0 20px 14px;
  font-size: 11.5px;
  color: var(--mm-text-muted);
}

/* 3-Pillar Product Preview — Visual-First Flagship Cards */
.mm-page .mm-product {
  padding: 64px 0;
  border-top: 1px solid var(--mm-border);
}

.mm-page .mm-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 32px;
  align-items: end;
  margin: 0 0 36px;
}

.mm-page .mm-section-heading h2 {
  font-size: clamp(32px, 3.6vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--mm-text);
}

.mm-page .mm-section-heading > p {
  font-size: 16px;
  line-height: 25px;
  color: var(--mm-text-muted);
  margin: 0;
}

.mm-public-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--mm-space-6);
  align-items: stretch;
}

.mm-public-pillar-card {
  background: var(--mm-surface);
  border: 1px solid var(--mm-border);
  border-radius: 20px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: var(--mm-shadow-card);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.mm-public-pillar-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgb(16 26 51 / 7%);
}

.mm-public-pillar-copy {
  padding: 0 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mm-public-pillar-copy h3 {
  margin: 0;
  font-size: 20px;
  line-height: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--mm-text);
}

.mm-public-pillar-copy p {
  margin: 0;
}

/* Crisp synthetic visual mockups inside each Pillar Card */
.mm-demo-canvas {
  border-radius: 14px;
  padding: 16px;
  height: 288px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  overflow: hidden;
}

.mm-demo-nutrition {
  background: linear-gradient(180deg, #F6F8FF 0%, #EEF2FF 100%);
  border: 1px solid #DCE4FF;
}

.mm-demo-body {
  background: linear-gradient(180deg, #F3FBF8 0%, #EAF5F0 100%);
  border: 1px solid #CDECE0;
}

.mm-demo-goal {
  background: linear-gradient(180deg, #FAF8F2 0%, #F4EFE2 100%);
  border: 1px solid #E8DFC8;
}

.mm-demo-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--mm-text-muted);
}

.mm-demo-topbar > span {
  white-space: nowrap;
}

.mm-demo-pill {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--mm-surface);
  border: 1px solid var(--mm-border);
  color: var(--mm-text);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.mm-demo-pill.is-fresh {
  background: var(--mm-success-soft);
  border-color: #A7F3D0;
  color: var(--mm-success);
}

.mm-demo-hero-stat {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-variant-numeric: tabular-nums;
}

.mm-demo-hero-stat strong {
  font-size: 30px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--mm-text);
}

.mm-demo-hero-stat span {
  font-size: 13px;
  color: var(--mm-text-muted);
}

.mm-demo-macros {
  display: grid;
  gap: 8px;
}

.mm-demo-macro-row {
  display: grid;
  gap: 4px;
}

.mm-demo-macro-row > div:first-child {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.mm-demo-macro-row strong {
  font-weight: 600;
  color: var(--mm-text);
}

.mm-demo-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(16, 26, 51, 0.08);
  overflow: hidden;
}

.mm-demo-bar > i {
  display: block;
  height: 100%;
  border-radius: 999px;
}

.mm-demo-bar > i.is-pro { width: 80%; background: var(--mm-primary); }
.mm-demo-bar > i.is-carb { width: 71%; background: #0F766E; }
.mm-demo-bar > i.is-fat { width: 61%; background: #B45309; }

.mm-demo-meal-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 10px;
  background: var(--mm-surface);
  border: 1px solid var(--mm-border);
}

.mm-demo-meal-chip strong {
  display: block;
  font-size: 12px;
  color: var(--mm-text);
}

.mm-demo-meal-chip span {
  font-size: 11px;
  color: var(--mm-text-muted);
}

.mm-demo-kcal-badge {
  white-space: nowrap;
  flex: none;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--mm-primary-soft);
  color: var(--mm-primary) !important;
  font-size: 11px !important;
  font-weight: 600;
}

.mm-demo-body-svg {
  width: 100%;
  height: 156px;
  display: block;
  margin: 0 auto;
}

.mm-demo-body-foot,
.mm-demo-goal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(16, 26, 51, 0.1);
  font-size: 12px;
  color: var(--mm-text-muted);
}

.mm-demo-body-foot strong,
.mm-demo-goal-foot strong {
  color: var(--mm-text);
  font-weight: 600;
}

.mm-demo-goal-head strong {
  display: block;
  font-size: 20px;
  line-height: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--mm-text);
}

.mm-demo-goal-head span {
  font-size: 13px;
  color: var(--mm-text-muted);
}

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

.mm-demo-week > div {
  display: grid;
  justify-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--mm-text-muted);
}

.mm-demo-week i {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  background: rgba(16, 26, 51, 0.08);
  font-style: normal;
  font-size: 13px;
  color: #FFFFFF;
}

.mm-demo-week i.is-done {
  background: var(--mm-success);
}

/* Editorial How It Works (3 numbered steps with crisp presence) */
.mm-how-steps {
  padding: 64px 0;
  border-top: 1px solid var(--mm-border);
}

.mm-how-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--mm-space-6);
}

.mm-how-card {
  background: var(--mm-surface);
  border: 1px solid var(--mm-border);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--mm-shadow-card);
}

.mm-how-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--mm-primary-soft);
  color: var(--mm-primary);
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.mm-how-card h3 {
  margin: 4px 0 0;
  font-size: 19px;
  line-height: 26px;
  font-weight: 600;
  color: var(--mm-text);
}

.mm-how-card p {
  margin: 0;
}

/* Editorial Privacy & Trust Strip */
.mm-page .mm-wrapped-copy h2 {
  font-size: clamp(32px, 3.1vw, 44px);
  line-height: 1.08;
}

.mm-privacy-reassurance {
  padding: 56px 0;
  border-top: 1px solid var(--mm-border);
}

.mm-trust-strip {
  background: var(--mm-surface);
  border: 1px solid var(--mm-border);
  border-radius: 22px;
  padding: 36px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 40px;
  align-items: start;
  box-shadow: var(--mm-shadow-card);
}

.mm-trust-lead {
  display: grid;
  gap: 12px;
}

.mm-trust-lead .mm-eyebrow {
  margin: 0;
  color: var(--mm-primary);
}

.mm-trust-lead h2 {
  margin: 0;
  font-size: clamp(26px, 2.8vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--mm-text);
}

.mm-trust-lead p {
  margin: 0;
}

.mm-trust-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--mm-primary);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.mm-trust-link:hover {
  text-decoration: underline;
}

.mm-trust-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.mm-trust-points li {
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--mm-bg);
  border: 1px solid var(--mm-border);
  display: grid;
  gap: 4px;
}

.mm-trust-points strong {
  font-size: 15px;
  font-weight: 600;
  color: var(--mm-text);
}

.mm-trust-points span {
  font-size: 14px;
  line-height: 20px;
  color: var(--mm-text-muted);
}

/* Sign-in & Start Card Polish (consistent left alignment + footer links) */
.mm-page .mm-entry {
  padding: 64px 0;
  border-top: 1px solid var(--mm-border);
  gap: 56px;
}

.mm-page .mm-entry-intro h2 {
  font-size: clamp(32px, 3.6vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--mm-text);
}

.mm-page .mm-entry-panel {
  border-radius: 20px;
  border: 1px solid var(--mm-border);
  box-shadow: 0 14px 40px rgb(16 26 51 / 7%);
}

.mm-page .mm-faq {
  padding: 56px 0 64px;
  border-top: 1px solid var(--mm-border);
  gap: 48px;
}

.mm-page .mm-faq > h2 {
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--mm-text);
}

.mm-page .mm-faq summary {
  font-size: 16px;
  font-weight: 600;
  color: var(--mm-text);
  padding: 18px 28px 18px 0;
}

.mm-page .mm-faq details p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--mm-text-muted);
}

.mm-page .instinct-card {
  text-align: left;
}

.mm-page .instinct-card h2 {
  font-size: 26px;
  line-height: 1.18;
  margin: 0 0 8px;
}

.mm-page .instinct-card .instinct-subtitle {
  margin: 0 0 20px;
  color: var(--mm-text-muted);
}

.mm-auth-label-visible {
  display: block;
  font-size: 14px !important;
  font-weight: 500;
  color: var(--mm-text);
  margin-bottom: 6px;
  text-align: left;
}

.mm-entry-panel .mm-auth-consent-note {
  font-size: 13px;
  line-height: 19px;
  color: var(--mm-text-muted);
  margin: 4px 0 0;
  text-align: left;
}

.mm-entry-panel .instinct-auth-switch {
  font-size: 14px;
  margin: 4px 0 0;
  padding-top: 12px;
}

.mm-page .instinct-phone-card .instinct-legal {
  text-align: center !important;
  margin: 0 !important;
}

.mm-auth-footer-links {
  display: none;
}

.mm-page[data-auth-step] .mm-auth-footer-links {
  display: block;
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--mm-border);
  font-size: 13px;
  color: var(--mm-text-muted);
  text-align: center;
}

.mm-page[data-auth-step] .mm-auth-footer-links a {
  color: var(--mm-text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.mm-mobile-nav-menu {
  display: none;
}

.mm-workout-sticky-bar {
  display: none;
}

/* ============================================================================
 * RESPONSIVE BREAKPOINTS (§3.3)
 * ========================================================================== */
/* Tablet: 768px – 1023px (NO 2+1 pillar grid!) */
@media (max-width: 1023px) {
  .mm-pillar-grid {
    grid-template-columns: 1fr;
  }
  .mm-detail-grid,
  .mm-coach-mission-strip,
  .mm-progress-2col,
  .mm-public-pillars,
  .mm-how-grid,
  .mm-trust-strip,
  .mm-page .mm-section-heading {
    grid-template-columns: 1fr;
  }
  .mm-page .mm-hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 0 48px;
  }
  .mm-settings-layout {
    grid-template-columns: 1fr;
  }
}

/* Mobile: 320px – 767px */
@media (max-width: 767px) {
  .mm-ux-header-inner {
    padding: 0 var(--mm-space-4);
  }
  .mm-ux-primary-nav,
  .mm-ux-coach-btn {
    display: none;
  }
  .mm-ux-main {
    padding: var(--mm-space-4) var(--mm-space-4) calc(var(--mm-bottom-nav-height) + env(safe-area-inset-bottom, 0px) + 28px);
  }
  .mm-ux-main.has-workout-bar {
    padding-bottom: calc(var(--mm-bottom-nav-height) + 72px + env(safe-area-inset-bottom, 0px) + 24px);
  }
  .mm-page-header h1 {
    font-size: 28px;
    line-height: 36px;
  }
  .mm-section-title {
    font-size: 20px;
    line-height: 28px;
  }
  .mm-hero-metric {
    font-size: 32px;
    line-height: 40px;
  }
  .mm-card,
  .mm-card-midnight,
  .mm-pillar-card {
    padding: var(--mm-space-4);
  }
  .mm-pillar-grid {
    gap: var(--mm-space-4);
  }
  .mm-totals-macros-grid {
    grid-template-columns: 1fr;
  }
  .mm-btn-primary {
    min-height: 48px;
  }
  .mm-wrapped-teaser {
    grid-template-columns: 1fr;
  }
  .mm-matrix-table-wrap {
    display: none;
  }
  .mm-matrix-mobile-list {
    display: grid;
    gap: var(--mm-space-3);
  }
  .mm-recovery-svg {
    height: 256px;
  }
  .mm-set-editor-row {
    grid-template-columns: 1fr 1fr;
  }

  /* Fixed Mobile Bottom Nav (safe-area aware) */
  .mm-ux-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    background: var(--mm-surface);
    border-top: 1px solid var(--mm-border);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
    min-height: calc(var(--mm-bottom-nav-height) + env(safe-area-inset-bottom, 0px));
  }

  .mm-ux-bottom-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 48px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--mm-text-muted);
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
  }

  .mm-ux-bottom-link svg {
    width: 20px;
    height: 20px;
    stroke-width: 1.85;
  }

  .mm-ux-bottom-link.is-active,
  .mm-ux-bottom-link[aria-current="page"] {
    color: var(--mm-primary);
    font-weight: 600;
    background: var(--mm-primary-soft);
  }

  /* Mobile settings split: hide detail on landing, hide list when inside detail */
  .mm-settings-layout.is-landing .mm-settings-detail-pane {
    display: none;
  }
  .mm-settings-layout.is-detail .mm-settings-menu-pane {
    display: none;
  }

  /* Single Finish workout CTA: sticky bottom bar on mobile, top button on desktop */
  #mm-open-finish-workout {
    display: none;
  }

  /* Mobile workout sticky bar sits cleanly above bottom nav */
  .mm-workout-sticky-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(var(--mm-bottom-nav-height) + env(safe-area-inset-bottom, 0px));
    z-index: 35;
    background: var(--mm-surface);
    border-top: 1px solid var(--mm-border);
    padding: 10px var(--mm-space-4);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    box-shadow: 0 -4px 16px rgb(16 26 51 / 8%);
  }

  /* PUB-01: Single-row compact mobile public header */
  .mm-page .mm-wrap {
    padding: 0 16px;
  }
  .mm-page .mm-nav {
    height: 64px !important;
    min-height: 64px !important;
    padding: 0 !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
  }
  .mm-page .mm-brand {
    font-size: 20px;
    letter-spacing: -0.04em;
  }
  .mm-page .mm-brand > svg {
    width: 24px;
    height: 24px;
  }
  .mm-page .mm-nav > nav {
    display: flex !important;
    width: auto !important;
    border-top: 0 !important;
    padding-top: 0 !important;
    margin-left: auto;
    gap: 8px !important;
  }
  .mm-page .mm-nav > nav > .mm-nav-how,
  .mm-page .mm-nav > nav > .mm-nav-community,
  .mm-page .mm-nav > nav > .mm-signed-in {
    display: none !important;
  }
  .mm-page .mm-nav .mm-account-link {
    min-height: 44px;
    padding: 0 12px;
    font-size: 13px;
    white-space: nowrap;
  }
  .mm-mobile-nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 0;
  }
  .mm-mobile-login-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 10px;
    background: var(--mm-primary-soft);
    color: var(--mm-primary);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
  }
  .mm-mobile-menu-details {
    position: relative;
  }
  .mm-mobile-menu-details summary {
    list-style: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0 10px;
    border-radius: 10px;
    border: 1px solid var(--mm-border);
    background: var(--mm-surface);
    color: var(--mm-text);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
  }
  .mm-mobile-menu-details summary::-webkit-details-marker {
    display: none;
  }
  .mm-mobile-menu-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 210px;
    background: var(--mm-surface);
    border: 1px solid var(--mm-border);
    border-radius: 14px;
    box-shadow: var(--mm-shadow-overlay);
    padding: 8px;
    z-index: 60;
    display: grid;
    gap: 4px;
  }
  .mm-mobile-menu-dropdown a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 12px;
    border-radius: 8px;
    color: var(--mm-text);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
  }
  .mm-mobile-menu-dropdown a:hover {
    background: var(--mm-surface-subtle);
  }
  .mm-page .mm-hero {
    padding: 24px 0 36px;
    gap: 24px;
  }
  .mm-hero-display {
    max-width: none;
    font-size: 38px;
    line-height: 42px;
  }
  .mm-page .mm-chat-head {
    padding: 12px 14px;
    flex-wrap: wrap;
    gap: 10px;
  }
  .mm-page .mm-scenarios {
    width: 100%;
    justify-content: space-between;
  }
  .mm-page .mm-scenarios label {
    flex: 1;
  }
  .mm-page .mm-scenarios label > span {
    font-size: 12px;
    padding: 0 8px;
    min-height: 32px;
    width: 100%;
  }
  .mm-page .mm-threads {
    padding: 16px 14px 12px;
    min-height: 210px;
  }
  .mm-hero-outcome {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .mm-page .mm-conversation-note {
    margin: 0 14px 12px;
  }
  .mm-page .mm-hero-actions {
    gap: 10px;
  }
  .mm-hero-link {
    width: 100%;
    justify-content: center;
  }
  .mm-page .mm-section-heading {
    display: grid;
    gap: 12px;
    margin-bottom: 24px;
  }
  .mm-page .mm-section-heading > p {
    margin-top: 0;
  }
  .mm-page .mm-wrapped-showcase {
    margin: 28px 0;
    border-radius: 22px;
  }
  .mm-page .mm-entry {
    padding: 40px 0;
    gap: 24px;
  }
  .mm-page .mm-faq {
    padding: 36px 0 44px;
    gap: 16px;
  }
  .mm-hero-kicker {
    font-size: 20px;
  }
  .mm-hero-display {
    font-size: 36px;
    line-height: 41px;
  }
  .mm-page .mm-button {
    min-height: 48px;
    width: 100%;
  }
  .mm-hero-secondary {
    width: 100%;
    justify-content: center;
  }
  .mm-how-steps,
  .mm-page .mm-product,
  .mm-privacy-reassurance {
    padding: 40px 0;
  }
  .mm-trust-strip {
    padding: 22px 18px;
    gap: 22px;
  }
  .mm-footer-sep {
    display: none;
  }
  .footer-bottom-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
}

/* Reduced motion (§12.2) */
@media (prefers-reduced-motion: reduce) {
  .mm-ux-shell *,
  .mm-page * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================================
 * THE ZONE — CLEAN FLAT STANDINGS & DAILY CARD
 * ========================================================================== */
.mm-zone-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.mm-zone-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 5px 12px;
  border-radius: 8px;
  border: 1px solid var(--mm-border);
  background: var(--mm-surface);
  color: var(--mm-text-muted);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
}
.mm-zone-tab.is-active {
  background: var(--mm-text);
  border-color: var(--mm-text);
  color: #ffffff;
}
.mm-zone-tab-count {
  font-size: 12px;
  opacity: 0.7;
}
.mm-zone-empty {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.mm-zone-header-card {
  display: grid;
  gap: 16px;
}
.mm-zone-header-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.mm-zone-meta-line {
  margin: 0 0 4px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mm-text-muted);
}
.mm-zone-title {
  margin: 0 0 4px;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--mm-text);
}
.mm-zone-kpis {
  display: flex;
  gap: 24px;
}
.mm-zone-kpi {
  display: grid;
  gap: 2px;
}
.mm-zone-kpi span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mm-text-muted);
}
.mm-zone-kpi strong {
  font-size: 22px;
  line-height: 1.1;
  color: var(--mm-text);
  font-variant-numeric: tabular-nums;
}
.mm-zone-invite-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--mm-border);
}
.mm-zone-invite-code {
  font-size: 13px;
  color: var(--mm-text-muted);
  word-break: break-all;
}
.mm-zone-invite-code code {
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--mm-surface-subtle);
  color: var(--mm-text);
  font-weight: 600;
  font-size: 12px;
}
.mm-zone-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.mm-zone-arena-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.mm-zone-list {
  display: grid;
}
.mm-zone-row {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 14px 4px;
  border-top: 1px solid var(--mm-border);
}
.mm-zone-row:first-child {
  border-top: 0;
  padding-top: 4px;
}
.mm-zone-row.is-me {
  background: var(--mm-bg);
  margin: 0 -10px;
  padding: 14px 10px;
  border-radius: 10px;
}
.mm-zone-row-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.mm-zone-rank {
  width: 24px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--mm-text-muted);
  font-variant-numeric: tabular-nums;
  flex: none;
}
.mm-zone-rank.is-first {
  color: var(--mm-text);
  font-weight: 700;
}
.mm-zone-member-info {
  display: grid;
  gap: 4px;
}
.mm-zone-member-name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}
.mm-zone-anchors {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.mm-zone-anchor {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--mm-text-muted);
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--mm-surface-subtle);
}
.mm-zone-anchor.is-done {
  background: var(--mm-success-soft);
  color: var(--mm-success);
  font-weight: 600;
}
.mm-zone-week-strip {
  display: flex;
  gap: 3px;
}
.mm-zone-day-dot {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  background: var(--mm-surface-subtle);
  color: var(--mm-text-muted);
}
.mm-zone-day-dot.is-perfect { background: var(--mm-success); color: #ffffff; }
.mm-zone-day-dot.is-won { background: var(--mm-primary); color: #ffffff; }
.mm-zone-day-dot.is-partial { background: var(--mm-caution-soft); color: var(--mm-caution); }
.mm-zone-row-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mm-zone-score-pct {
  min-width: 48px;
  text-align: right;
  font-size: 18px;
  color: var(--mm-text);
}
.mm-zone-today-tag {
  min-width: 44px;
  text-align: center;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  background: var(--mm-surface-subtle);
  color: var(--mm-text-muted);
}
.mm-zone-today-tag.is-won {
  background: var(--mm-success-soft);
  color: var(--mm-success);
}
.mm-zone-react-row {
  display: flex;
  gap: 6px;
}
.mm-today-circle-slot:empty {
  display: none;
}
.mm-today-circle-slot {
  margin-top: var(--mm-space-5);
}
.mm-today-circle-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.mm-today-circle-main {
  display: grid;
  gap: 4px;
}
.mm-today-circle-main p {
  margin: 0;
}
.mm-today-circle-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.mm-zone-hero {
  display: grid;
  gap: 18px;
}
.mm-zone-hero-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.mm-zone-hero-title {
  margin: 4px 0 0;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--mm-on-dark);
}
.mm-zone-hero-stakes {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--mm-on-dark-muted);
}
.mm-zone-hero-kpis {
  display: flex;
  gap: 24px;
}
.mm-zone-hero-kpi {
  display: grid;
  gap: 2px;
}
.mm-zone-hero-kpi span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mm-on-dark-muted);
}
.mm-zone-hero-kpi strong {
  font-size: 24px;
  line-height: 1.1;
  color: var(--mm-on-dark);
  font-variant-numeric: tabular-nums;
}
.mm-zone-hero-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid rgb(255 255 255 / 12%);
}
.mm-zone-hero-actions,
.mm-zone-hero-manage {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.mm-zone-profile-nudge {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-color: #cbd7ff;
  background: var(--mm-primary-soft);
}
.mm-zone-profile-nudge p {
  margin: 2px 0 0;
}
.mm-zone-winner-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-color: #a7f3d0;
  background: var(--mm-success-soft);
}
.mm-zone-winner-title {
  margin: 4px 0 2px;
  font-size: 18px;
  line-height: 1.25;
  color: var(--mm-text);
}
.mm-zone-winner-banner p {
  margin: 0;
}
.mm-zone-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.mm-zone-how-body {
  gap: 16px;
}
.mm-zone-how-block h3 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--mm-text);
}
.mm-zone-how-block p {
  margin: 0;
}
.mm-zone-how-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: var(--mm-text-muted);
}
.mm-zone-how-list strong {
  color: var(--mm-text);
}
.mm-zone-rules-line {
  margin: 0;
  font-size: 13px;
  color: var(--mm-text-muted);
}
@media (max-width: 900px) {
  .mm-zone-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .mm-zone-row-right {
    justify-content: space-between;
  }
}

/* Swipe-to-log (right) & Swipe-to-delete (left) interactive workout/meal/cardio rows (@fix 5efbb6a3) */
.mm-swipe-hint {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--mm-text-muted);
}
.mm-swipeable-row {
  position: relative;
  touch-action: pan-y;
  transition: transform 0.16s ease, background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
  will-change: transform;
}
.mm-swipeable-row.is-swipe-log-ready {
  background: rgba(16, 185, 129, 0.14);
  border-color: #10b981;
  box-shadow: inset 4px 0 0 #10b981;
}
.mm-swipeable-row.is-swipe-delete-ready {
  background: rgba(239, 68, 68, 0.14);
  border-color: #ef4444;
  box-shadow: inset -4px 0 0 #ef4444;
}
.mm-cardio-block-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--mm-border);
  background: var(--mm-surface-subtle, rgba(16, 185, 129, 0.06));
}
.mm-cardio-block-row p {
  margin: 2px 0 0;
}

/* ============================================================================
 * TODAY PITHINESS, MACROFACTOR MEAL TIMELINE, TRAINING CARDS & BOTTOM SHEETS
 * ========================================================================== */
.mm-coach-insight-detail {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--mm-on-dark-muted);
}

.mm-coach-insight-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-top: 6px;
}

.mm-mission-cta {
  min-height: 36px;
  padding: 0 12px;
  font-size: 13px;
  flex: none;
}

.mm-nutrition-state-line {
  margin: 0;
  font-size: 13.5px;
}

.mm-btn-danger-ghost {
  color: var(--mm-danger);
}
.mm-btn-danger-ghost:hover {
  background: var(--mm-danger-soft);
  color: var(--mm-danger);
}

/* MacroFactor-inspired Meal Timeline Rows */
.mm-card-subhead {
  margin-bottom: var(--mm-space-3);
}
.mm-card-subhead .mm-section-title {
  margin-bottom: 0;
}

.mm-meal-row-mf {
  flex-direction: column;
  gap: 6px;
  padding: 12px 0;
}

.mm-meal-row-mf > :first-child {
  flex: 0 0 auto;
}

.mm-meal-mf-main {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.mm-food-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  background: var(--mm-surface-subtle);
  color: var(--mm-text-muted);
  border: 1px solid var(--mm-border);
}
.mm-food-icon svg {
  width: 20px;
  height: 20px;
}
.mm-food-icon.is-poultry,
.mm-food-icon.is-meat {
  background: #F5F2EE;
  color: #7C4A2D;
  border-color: #E7DED3;
}
.mm-food-icon.is-fish {
  background: #EEF5FA;
  color: #25638A;
  border-color: #D5E6F2;
}
.mm-food-icon.is-shake,
.mm-food-icon.is-drink {
  background: #EEF1FF;
  color: #344CB7;
  border-color: #D9E0FF;
}
.mm-food-icon.is-bowl,
.mm-food-icon.is-fruit {
  background: #EDF7F2;
  color: #1F6F50;
  border-color: #D1EAD9;
}
.mm-food-icon.is-eggs,
.mm-food-icon.is-grain,
.mm-food-icon.is-sandwich,
.mm-food-icon.is-snack {
  background: #FAF5EB;
  color: #8A5A1E;
  border-color: #EFE2CA;
}

.mm-meal-mf-body {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 3px;
}

.mm-meal-mf-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.mm-meal-row-mf .mm-meal-title {
  margin: 0;
  font-size: 15.5px;
  line-height: 21px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mm-meal-kcal {
  font-size: 15px;
  font-weight: 700;
  color: var(--mm-text);
  white-space: nowrap;
  flex: none;
}

.mm-meal-mf-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 10px;
}

.mm-meal-row-mf .mm-meal-meta {
  margin: 0;
  font-size: 12.5px;
}

.mm-meal-row-mf .mm-meal-macros {
  font-size: 12.5px;
  color: var(--mm-text-muted);
}

.mm-meal-row-mf .mm-meal-actions {
  padding-left: 52px;
  gap: 4px;
}
.mm-meal-row-mf .mm-meal-actions .mm-btn-sm {
  min-height: 32px;
  padding: 0 8px;
  font-size: 13px;
}

/* Individual Training Exercise Cards + Working Set Rows */
.mm-workout-summary-bar .mm-section-title {
  margin-bottom: 2px;
}
.mm-workout-summary-bar p {
  margin: 0;
}
.mm-cardio-stack {
  margin-top: var(--mm-space-3);
}

.mm-exercise-card {
  display: grid;
  gap: 12px;
  padding: 16px;
}
.mm-exercise-card.is-complete {
  border-color: #A7F3D0;
}

.mm-exercise-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mm-ex-thumb-btn {
  width: 60px;
  height: 44px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid var(--mm-border);
  background: #0F172A;
  overflow: hidden;
  cursor: pointer;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 140ms ease, border-color 140ms ease;
}
.mm-ex-thumb-btn:hover {
  border-color: var(--mm-primary);
  transform: scale(1.02);
}
.mm-ex-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mm-exercise-card-title-wrap {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 2px;
}

.mm-exercise-card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mm-exercise-card-title {
  margin: 0;
  font-size: 16px;
  line-height: 22px;
  font-weight: 600;
  color: var(--mm-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mm-ex-progress-pill {
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--mm-success-soft);
  color: var(--mm-success);
  flex: none;
}

.mm-ex-prescription {
  margin: 0;
  font-size: 13.5px;
}

.mm-set-list {
  display: grid;
  gap: 6px;
}

.mm-set-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px 6px 10px;
  border-radius: 10px;
  background: var(--mm-surface-subtle);
  border: 1px solid transparent;
}

.mm-set-row.is-logged {
  background: var(--mm-success-soft);
  border-color: #A7F3D0;
}

.mm-set-num {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--mm-text-muted);
  min-width: 38px;
  flex: none;
}
.mm-set-row.is-logged .mm-set-num {
  color: var(--mm-success);
}

.mm-set-summary {
  flex: 1;
  font-size: 14px;
  color: var(--mm-text);
}

.mm-set-inputs {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.mm-set-input-wrap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--mm-surface);
  border: 1px solid var(--mm-border);
  border-radius: 8px;
  padding: 0 8px;
  min-height: 36px;
  flex: 1 1 0;
  max-width: 112px;
}

.mm-set-num-input {
  width: 100%;
  min-width: 34px;
  border: 0;
  background: transparent;
  color: var(--mm-text);
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-family: inherit;
  padding: 4px 0;
  outline: none;
}

.mm-set-unit {
  font-size: 12px;
  color: var(--mm-text-muted);
  flex: none;
}

.mm-set-times {
  font-size: 13px;
  color: var(--mm-text-muted);
  flex: none;
}

.mm-set-check-btn {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1.5px solid var(--mm-control-border);
  background: var(--mm-surface);
  color: var(--mm-text-muted);
  font-size: 16px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: none;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}
.mm-set-check-btn:hover {
  border-color: var(--mm-success);
  color: var(--mm-success);
  background: var(--mm-success-soft);
}
.mm-set-check-btn.is-checked {
  background: var(--mm-success);
  border-color: var(--mm-success);
  color: #FFFFFF;
}

.mm-exercise-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  padding-top: 6px;
  border-top: 1px solid var(--mm-border);
}
.mm-exercise-card-actions .mm-btn-sm {
  min-height: 34px;
  padding: 0 10px;
  font-size: 13px;
}

/* Upgraded Bottom Sheet Modals (Details & Substitute) */
.mm-sheet-handle {
  width: 40px;
  height: 4px;
  border-radius: 999px;
  background: var(--mm-border);
  margin: -8px auto 12px;
}

.mm-fg-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.mm-fg-pill {
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--mm-surface-subtle);
  color: var(--mm-text-muted);
  text-transform: capitalize;
}

.mm-fg-visual-wrap {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--mm-border);
  background: #0F172A;
  aspect-ratio: 3 / 2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mm-fg-visual-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.mm-fg-cues {
  display: grid;
  gap: 10px;
}

.mm-fg-cue-block {
  display: grid;
  gap: 2px;
}
.mm-fg-cue-block strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--mm-text);
}
.mm-fg-cue-block.is-watch strong {
  color: var(--mm-caution);
}
.mm-fg-cue-block p {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--mm-text-muted);
}

.mm-fg-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--mm-border);
}

.mm-sub-chips {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 6px;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
}

.mm-sub-chip {
  flex: none;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--mm-border);
  background: var(--mm-surface);
  color: var(--mm-text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.mm-sub-chip.is-active {
  background: var(--mm-primary);
  border-color: var(--mm-primary);
  color: #FFFFFF;
}

.mm-sub-recs-list {
  display: grid;
  gap: 8px;
}

.mm-sub-rec-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--mm-border);
  background: var(--mm-surface);
}

.mm-sub-rec-thumb {
  width: 48px;
  height: 36px;
  border-radius: 8px;
  background: #0F172A;
  object-fit: cover;
  flex: none;
}

.mm-sub-rec-body {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 1px;
}
.mm-sub-rec-body strong {
  font-size: 14.5px;
  line-height: 19px;
  color: var(--mm-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mm-sub-rec-body .mm-secondary {
  font-size: 12.5px;
}

.mm-sub-custom-details {
  border-top: 1px solid var(--mm-border);
  padding-top: 10px;
}
.mm-sub-custom-details summary {
  font-size: 14px;
  font-weight: 600;
  color: var(--mm-primary);
  cursor: pointer;
  padding: 4px 0;
}
.mm-sub-custom-details[open] summary {
  margin-bottom: 10px;
}

.mm-sub-dir-footer {
  padding-top: 4px;
  text-align: center;
}

/* Mobile Tight Spacing & Bottom-Sheet Presentation */
@media (max-width: 767px) {
  .mm-compact-breadcrumb {
    margin-bottom: 2px;
    font-size: 13px;
  }
  .mm-compact-breadcrumb a {
    min-height: 28px;
  }
  .mm-compact-page-header {
    margin-bottom: 10px;
    gap: 6px 10px;
    align-items: center;
  }
  .mm-compact-page-header .mm-pillar-tag {
    font-size: 11px;
    line-height: 14px;
    margin-bottom: 2px;
  }
  .mm-compact-page-header h1 {
    font-size: 22px;
    line-height: 28px;
  }
  .mm-compact-toolbar {
    margin-bottom: 10px;
    gap: 8px;
  }
  .mm-compact-toolbar .mm-tab-btn {
    min-height: 36px;
    padding: 0 12px;
    font-size: 13.5px;
  }
  .mm-totals-banner {
    margin-bottom: 12px;
  }
  .mm-coach-mission-strip {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 16px;
  }
  .mm-sheet-dialog {
    margin: auto 0 0 0;
    width: 100vw;
    max-width: 100vw;
    max-height: 88dvh;
    border-radius: 20px 20px 0 0;
    padding: 18px 16px calc(18px + env(safe-area-inset-bottom, 0px));
  }
  .mm-exercise-card {
    padding: 14px;
  }
  .mm-set-input-wrap {
    max-width: 96px;
    padding: 0 6px;
  }
}

/* ============================================================================
 * DASHBOARD V2 INTERIOR POLISH (Nutrition Charts, Targets, Training, Progress, Settings)
 * ========================================================================== */
.mm-mobile-only-crumb {
  display: none;
}
@media (max-width: 1023px) {
  .mm-mobile-only-crumb {
    display: flex;
  }
}

.mm-sticky-rail {
  position: sticky;
  top: calc(var(--mm-header-height) + 20px);
}
@media (max-width: 1023px) {
  .mm-sticky-rail {
    position: static;
  }
}

.mm-inline-link {
  color: var(--mm-primary);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.mm-inline-link:hover {
  color: var(--mm-primary-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mm-mt-2 {
  margin-top: 8px;
}
.mm-mt-3 {
  margin-top: 12px;
}

.mm-progress-fill.is-over {
  background: #D97706;
}
.mm-macro-over-hint {
  color: var(--mm-caution);
  font-weight: 500;
}

/* Stacked Macro Split Bar & Legend */
.mm-split-bar {
  display: flex;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--mm-surface-subtle);
  gap: 2px;
}
.mm-split-bar span {
  display: block;
  height: 100%;
  transition: width 180ms ease;
}
.mm-split-bar .is-protein {
  background: var(--mm-primary);
}
.mm-split-bar .is-carbs {
  background: #0F766E;
}
.mm-split-bar .is-fat {
  background: #B45309;
}
.mm-split-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 13px;
  color: var(--mm-text-muted);
}
.mm-split-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.mm-split-legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
}
.mm-split-legend i.is-protein {
  background: var(--mm-primary);
}
.mm-split-legend i.is-carbs {
  background: #0F766E;
}
.mm-split-legend i.is-fat {
  background: #B45309;
}

/* Nutrition Trends Chart & Breakdown */
.mm-trends-chart-wrap {
  display: grid;
  gap: 10px;
  padding-top: 4px;
}
.mm-trends-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 12.5px;
  color: var(--mm-text-muted);
}
.mm-trends-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.mm-trends-legend i {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
}
.mm-trends-legend i.is-complete {
  background: var(--mm-primary);
}
.mm-trends-legend i.is-partial {
  background: repeating-linear-gradient(-45deg, #93C5FD, #93C5FD 3px, #DBEAFE 3px, #DBEAFE 6px);
  border: 1px solid #60A5FA;
}
.mm-trends-legend i.is-target {
  height: 0;
  border-top: 2px dashed var(--mm-success);
  border-radius: 0;
}
.mm-matrix-table .mm-col-num {
  text-align: right;
}
.mm-status-cell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.mm-quick-complete-btn {
  min-height: 32px;
  padding: 0 8px;
  font-size: 12.5px;
}

/* Nutrition Targets Reconciliation Callout & KV List */
.mm-recon-callout {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--mm-caution-soft);
  border: 1px solid #FDE68A;
}
.mm-recon-callout p {
  margin: 0;
  color: var(--mm-text);
}
.mm-kv-list {
  display: grid;
  gap: 10px;
  margin: 0;
}
.mm-kv-list > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--mm-border);
  font-size: 14px;
}
.mm-kv-list > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.mm-kv-list dt {
  color: var(--mm-text-muted);
}
.mm-kv-list dd {
  margin: 0;
  font-weight: 600;
  color: var(--mm-text);
}

/* Training Toolbar, Completed State, Expandable History & Exercises */
.mm-toolbar-actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.mm-workout-done-banner {
  border-color: #A7F3D0;
  background: linear-gradient(180deg, #F6FEF9 0%, #FFFFFF 100%);
}
.mm-workout-done-banner .mm-section-title {
  margin-bottom: 2px;
}
.mm-completed-template-drawer {
  padding: 16px 20px;
}
.mm-history-kpis {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}
.mm-history-item {
  border: 1px solid var(--mm-border);
  border-radius: 14px;
  background: var(--mm-surface);
  overflow: hidden;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
.mm-history-item:hover {
  border-color: #B4C2DC;
  box-shadow: var(--mm-shadow-card);
}
.mm-history-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
}
.mm-history-summary::-webkit-details-marker {
  display: none;
}
.mm-history-summary-left {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.mm-history-name {
  font-size: 15.5px;
  color: var(--mm-text);
}
.mm-history-summary-right {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.mm-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  color: var(--mm-text-muted);
  font-size: 14px;
  transition: transform 160ms ease, background 160ms ease;
}
details[open] > summary .mm-chevron {
  transform: rotate(180deg);
}
.mm-history-body {
  padding: 0 16px 16px;
  border-top: 1px solid var(--mm-border);
  padding-top: 14px;
}
.mm-history-ex-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.mm-history-ex-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  font-size: 14px;
}

/* Exercises Single-Row Filter Bar & Actionable Rows */
.mm-ex-filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px 150px;
  gap: 10px;
  align-items: center;
}
@media (max-width: 767px) {
  .mm-ex-filter-bar {
    grid-template-columns: 1fr;
  }
}
.mm-ex-lib-row {
  align-items: center;
  gap: 12px 16px;
}
.mm-ex-lib-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.mm-ex-lib-info {
  min-width: 0;
}
.mm-ex-lib-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  flex: none;
}
.mm-ex-stat {
  display: grid;
  gap: 1px;
  text-align: right;
  min-width: 82px;
}
.mm-ex-stat span {
  font-size: 11.5px;
  color: var(--mm-text-muted);
}
.mm-ex-stat strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--mm-text);
}
.mm-ex-stat.is-next strong {
  color: var(--mm-primary);
}
@media (max-width: 767px) {
  .mm-ex-lib-stats {
    width: 100%;
    justify-content: space-between;
    padding-left: 72px;
  }
  .mm-ex-stat {
    text-align: left;
    min-width: 0;
  }
}

/* Progress KPI Strip & Compact Strength Rows */
.mm-goal-kpi-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 639px) {
  .mm-goal-kpi-strip {
    grid-template-columns: 1fr;
  }
}
.mm-goal-kpi {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--mm-surface-subtle);
  border: 1px solid var(--mm-border);
}
.mm-goal-kpi span {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--mm-text-muted);
}
.mm-goal-kpi strong {
  font-size: 22px;
  line-height: 28px;
  font-weight: 700;
  color: var(--mm-text);
}
.mm-goal-kpi small {
  font-size: 12.5px;
  color: var(--mm-text-muted);
}
.mm-strength-row {
  align-items: center;
}
.mm-strength-val {
  font-size: 15px;
  font-weight: 700;
  color: var(--mm-text);
  white-space: nowrap;
}


/* ============================================================================
 * CONSUMER COACHING PROGRAM IDENTITY & CONTROLS (Conditional for Program Members)
 * ========================================================================== */
.mm-program-banner {
  background: #EDF1FF;
  border: 1px solid #C7D4FA;
  border-radius: 14px;
  padding: 12px 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.mm-program-banner-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mm-program-avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #2549EB;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mm-program-kicker {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #2549EB;
}

.mm-program-title {
  margin: 2px 0 0;
  font-size: 14px;
  color: #101D37;
}

.mm-program-note {
  margin: 4px 0 6px;
  padding: 6px 10px;
  background: #EDF1FF;
  color: #101D37;
  border-radius: 8px;
  font-size: 13px;
  display: inline-block;
}

.mm-program-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.mm-program-summary-cell {
  background: #F5F7FA;
  border: 1px solid #E1E6EF;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
