:root {
  --bg: #0c0f14;
  --bg-elevated: #141a22;
  --surface: #141a22;
  --surface-2: #1a2230;
  --border: rgba(255, 255, 255, 0.08);
  --text: #eef2f7;
  --text-muted: #9aa8b8;
  --accent: #fb923c;
  --accent-soft: rgba(251, 146, 60, 0.14);
  --accent-red: #ef4444;
  --good: #22c55e;
  --warn: #eab308;
  --poor: #ef4444;
  --turquoise: #2dd4bf;
  --nutrition-highlight: #243548;
  --calo-in: #72a8be;
  --calo-out: #b89a72;
  --progress-chart-selected: #8fafd4;
  --radius: 16px;
  --shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  --page-max: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(251, 146, 60, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(239, 68, 68, 0.06), transparent),
    var(--bg);
}

.workout-app.page {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 1.5rem 1.5rem 3rem;
}

.workout-app.page-shell {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  padding: 0;
  overflow: hidden;
}

.app-chrome-fixed {
  flex-shrink: 0;
  position: relative;
  z-index: 30;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(251, 146, 60, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(239, 68, 68, 0.06), transparent),
    var(--bg);
}

.app-header-fixed {
  flex-shrink: 0;
  position: relative;
  padding: 0.85rem 1.5rem 0.3rem;
  background: transparent;
  border-bottom: none;
  z-index: 20;
}

.app-tab-bar {
  flex-shrink: 0;
  position: relative;
  z-index: 40;
  width: 100%;
  overflow: visible;
  background: transparent;
  border-bottom: none;
}

.app-title-chrome {
  position: absolute;
  left: 50%;
  top: 1.15rem;
  transform: translate(-50%, 0);
  z-index: 25;
  width: max-content;
  max-width: calc(100% - 2rem);
  min-width: 0;
  pointer-events: none;
}

.app-title-chrome .site-hero--compact,
.app-title-chrome .site-hero--compact * {
  pointer-events: auto;
}

.app-topbar-side-chrome {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.app-topbar-side-chrome--start {
  justify-self: start;
}

.app-topbar-side-chrome--end {
  justify-self: end;
}

.app-title-chrome .site-hero--compact {
  flex-direction: column;
  align-items: center;
  gap: 0;
  justify-content: center;
  width: max-content;
  max-width: 100%;
  margin-inline: auto;
  margin-top: -10px;
  text-align: center;
}

.app-title-chrome .site-hero--compact .site-hero-icon {
  width: 59px;
  height: 59px;
}

.app-title-chrome .site-hero--compact .site-hero-icon--mark {
  margin-top: -10px;
  margin-bottom: -8px;
  object-fit: contain;
  object-position: center top;
}

.app-title-chrome .site-hero--compact h1 {
  margin-top: -4px;
  font-size: 0.875rem;
  line-height: 1.1;
}

.app-title-chrome .site-hero--compact .site-hero-text {
  justify-content: center;
  margin-top: 0;
  margin-left: 0;
  text-align: center;
}

@media (min-width: 768px) {
  .app-header-fixed {
    padding: 1rem 2rem 0.35rem;
  }

  .app-title-chrome {
    top: 1.25rem;
  }
}

.nav-tab-wrap--guide-target {
  z-index: 2;
}

.tab-coach-bubble--guide {
  pointer-events: none;
  white-space: nowrap;
  text-align: center;
  padding: 0.45rem 0.65rem;
  gap: 0;
}

.app-body-scroll {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1rem 1.5rem 3rem;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 768px) {
  .site-nav {
    padding: 0.55rem 2rem 0.7rem;
  }

  .app-body-scroll {
    padding: 1.25rem 2rem 3rem;
  }
}

.app-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  padding: 0.5rem 1.5rem 1.5rem;
  margin-bottom: 1.5rem;
}

.app-panel:has(.track-week-section) {
  padding-top: 0;
}

@media (min-width: 768px) {
  .app-panel {
    padding: 0.65rem 2rem 2rem;
  }

  .app-panel:has(.track-week-section) {
    padding-top: 0;
  }
}

.top-bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0;
}

.top-bar--split {
  grid-template-columns: minmax(0, 1fr) auto;
  justify-content: space-between;
}

.top-bar-side {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.top-bar-side--start {
  align-items: flex-start;
}

.top-bar-side--end {
  align-items: flex-end;
  overflow: visible;
}

.back-portfolio {
  justify-self: start;
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease;
  line-height: 1.2;
}

.back-portfolio:hover { color: var(--text); }

.site-hero {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.site-hero--compact {
  justify-self: center;
  margin-bottom: 0;
  gap: 0.35rem;
  max-width: 100%;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.site-hero-text {
  min-width: 0;
}

.site-hero--compact .site-hero-text {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: visible;
}

.top-bar-actions {
  justify-self: end;
}

.top-bar-account {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  column-gap: 0.5rem;
  row-gap: 0.05rem;
  align-items: center;
  justify-items: end;
  min-width: 0;
}

.top-bar-account > .user-chip {
  display: contents;
}

.top-bar-account > .user-chip > .user-chip-name {
  grid-column: 1;
  grid-row: 1;
  max-width: min(160px, 42vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.8125rem;
  line-height: 1.15;
  color: var(--text-muted);
  text-align: right;
}

.top-bar-account > .user-chip > img,
.top-bar-account > .user-chip > .login-account-icon {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  justify-self: end;
  flex-shrink: 0;
}

.top-bar-account > .user-chip--action > .user-chip-name,
.top-bar-account > .user-chip--action > img,
.top-bar-account > .user-chip--action > .login-account-icon {
  cursor: pointer;
}

.top-bar-account > .user-chip--action:hover > .user-chip-name,
.top-bar-account > .user-chip--action:focus-visible > .user-chip-name {
  color: var(--text);
}

.top-bar-account > .top-bar-entitlement {
  grid-column: 1;
  grid-row: 2;
  justify-self: end;
  margin: 0;
}

.workout-app .top-bar-account .user-chip-name {
  display: inline;
}

.top-bar-stores {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin-top: 4px;
}

.top-bar-entitlement {
  margin: 0;
  padding: 0;
  font-size: 0.625rem;
  line-height: 1.15;
  text-align: right;
  white-space: nowrap;
  max-width: none;
  overflow: visible;
  text-decoration: none;
}

@media (min-width: 640px) {
  .top-bar-entitlement {
    font-size: 0.6875rem;
  }
}

.top-bar-entitlement--trial {
  color: #fde68a;
}

.top-bar-entitlement--pro {
  color: #86efac;
}

.top-bar-entitlement--ended {
  color: var(--text-muted);
}

.top-bar-entitlement--clickable {
  border: 0;
  background: none;
  font-family: inherit;
  font-weight: inherit;
  line-height: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s ease;
}

.top-bar-entitlement--clickable:hover,
.top-bar-entitlement--clickable:focus,
.top-bar-entitlement--clickable:focus-visible {
  text-decoration: none;
}

.top-bar-entitlement--clickable:hover {
  color: #fef08a;
}

.top-bar-entitlement-badge {
  display: none;
}

.top-bar-trial-icon {
  width: 0.75rem;
  height: 0.75rem;
  flex-shrink: 0;
}

.site-hero-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  box-shadow: var(--shadow);
  flex-shrink: 0;
}

.site-hero-icon--mark {
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  object-fit: contain;
}

.site-hero--compact .site-hero-icon {
  width: 62px;
  height: 62px;
  border-radius: 12px;
}

.site-hero--compact .site-hero-icon--mark {
  border-radius: 0;
  display: block;
}

.site-hero h1 {
  margin: 0 0 0.25rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.site-hero--compact h1 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1;
}

.site-hero-title {
  color: #ef4444;
  text-shadow:
    0 0 6px rgba(239, 68, 68, 0.9),
    0 0 14px rgba(239, 68, 68, 0.55),
    0 0 22px rgba(239, 68, 68, 0.35);
}

.site-hero--compact .site-hero-title {
  white-space: nowrap;
  overflow: visible;
}

.site-hero-lead {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 36rem;
}

.site-hero--compact .site-hero-lead {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  line-height: 1.35;
  max-width: none;
  display: none;
}

@media (min-width: 768px) {
  .site-hero--compact .site-hero-lead {
    display: block;
  }
}

.site-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  justify-content: center;
  align-items: stretch;
  gap: 0.5rem;
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0.5rem 1.5rem 0.65rem;
  position: relative;
}

.nav-tab-indicator {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  box-sizing: border-box;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(251, 146, 60, 0.45);
  pointer-events: none;
  opacity: 0;
  will-change: transform;
}

.site-nav--indicator-ready .nav-tab-indicator {
  opacity: 1;
}

.site-nav--indicator-ready .nav-tab {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border);
}

.site-nav--indicator-ready .nav-tab[aria-selected="true"] {
  background: transparent;
  border-color: transparent;
  color: var(--text);
}

.nav-tab-wrap {
  display: flex;
  position: relative;
  z-index: 1;
  min-width: 0;
}

.nav-tab-wrap.coach-active {
  z-index: 1;
}

.nav-tab.coach-highlight {
  animation: coach-tab-glow 1.4s ease-in-out infinite;
}

.nav-tab.coach-highlight.coach-highlight--dismissing {
  animation: coach-tab-glow-out 0.28s ease-in forwards;
}

.tab-coach-bubble {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 0.85rem;
  border-radius: 12px;
  background: rgba(251, 146, 60, 0.9);
  color: #1a1208;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 10px 28px rgba(251, 146, 60, 0.34);
  transform: translateX(-50%);
  animation: coach-bubble-in 0.35s ease-out, coach-bubble-bob 2.2s ease-in-out 0.35s infinite;
  pointer-events: none;
}

.tab-coach-bubble.is-dismissing {
  animation: coach-bubble-fade-out 0.28s ease-in forwards;
}

.tab-coach-bubble::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-bottom-color: rgba(251, 146, 60, 0.9);
}

.tab-coach-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: rgba(26, 18, 8, 0.85);
  animation: coach-dot-pulse 1.2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes coach-tab-glow {
  0%, 100% {
    box-shadow: 0 0 0 2px rgba(251, 146, 60, 0.35);
  }
  50% {
    box-shadow:
      0 0 0 4px rgba(251, 146, 60, 0.55),
      0 0 18px rgba(251, 146, 60, 0.28);
  }
}

@keyframes coach-bubble-in {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-8px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

@keyframes coach-bubble-bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(5px); }
}

@keyframes coach-dot-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.65; }
}

@keyframes coach-bubble-fade-out {
  from {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateX(-50%) translateY(-6px) scale(0.96);
  }
}

@keyframes coach-tab-glow-out {
  from {
    box-shadow:
      0 0 0 4px rgba(251, 146, 60, 0.55),
      0 0 18px rgba(251, 146, 60, 0.28);
  }
  to {
    box-shadow: none;
  }
}

.nav-tab {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: 100%;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: color 0.15s ease;
}

.nav-tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav-tab[aria-selected="true"] {
  color: var(--text);
}

.nav-tab--locked {
  opacity: 0.45;
  cursor: pointer;
}

.nav-tab:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.nav-tab--locked:hover,
.nav-tab:disabled:hover {
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
}

.app-main {
  padding: 0;
}

.content-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .content-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-grid .span-full {
    grid-column: 1 / -1;
  }
}

.split-layout {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .split-layout {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
  }
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.icon-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.card h2,
.card h3:not(.goal-assessment-section-title) {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.85rem;
}

.section-heading h2 {
  margin: 0;
  color: var(--text);
}

.goal-feasibility-badge {
  margin-left: auto;
  flex-shrink: 0;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.goal-feasibility-badge--easy {
  background: rgba(34, 197, 94, 0.18);
  color: var(--good);
}

.goal-feasibility-badge--feasible {
  background: rgba(34, 197, 94, 0.14);
  color: var(--good);
}

.goal-feasibility-badge--ambitious {
  background: rgba(234, 179, 8, 0.14);
  color: var(--warn);
}

.goal-feasibility-badge--highly_unlikely {
  background: rgba(249, 115, 22, 0.14);
  color: #ea580c;
}

.goal-feasibility-badge--impossible {
  background: rgba(239, 68, 68, 0.14);
  color: var(--poor);
}

.section-body-muted,
.section-heading + .evaluation-lines,
.section-heading + .plan-suggestion-list {
  color: var(--text-muted);
}

.section-heading-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  flex-shrink: 0;
}

.section-heading-icon svg {
  width: 1.05rem;
  height: 1.05rem;
}

.section-heading-icon--assessment {
  background: rgba(251, 146, 60, 0.14);
  color: var(--accent);
}

.section-heading-icon--weekly {
  background: rgba(45, 212, 191, 0.14);
  color: var(--turquoise);
}

.section-heading-icon--diet {
  background: rgba(114, 168, 190, 0.18);
  color: var(--calo-in);
}

.section-heading-icon--tips {
  background: rgba(234, 179, 8, 0.14);
  color: var(--warn);
}

.section-heading-icon--exercises {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

.section-heading-icon--exercises svg {
  width: 0.95rem;
  height: 0.95rem;
}

.plan-suggestion-list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.plan-suggestion-list li + li {
  margin-top: 0.35rem;
}

.plan-exercises {
  margin-top: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
  overflow: hidden;
}

.plan-exercises-summary {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 0.75rem;
  cursor: pointer;
  list-style: none;
}

.plan-exercises-summary::-webkit-details-marker {
  display: none;
}

.plan-exercises-title {
  flex: 1;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
}

.plan-exercises-chevron {
  flex-shrink: 0;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 1.5px solid var(--text-muted);
  border-bottom: 1.5px solid var(--text-muted);
  transform: rotate(-45deg);
  transition: transform 0.15s ease;
  margin-right: 0.15rem;
}

.plan-exercises[open] .plan-exercises-chevron {
  transform: rotate(45deg);
  margin-top: -0.15rem;
}

.plan-exercises[open] .plan-exercises-summary {
  border-bottom: 1px solid var(--border);
}

.plan-exercises-list {
  margin: 0;
  padding: 0.15rem 0.85rem 0.8rem 2.35rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.plan-exercises-list li + li {
  margin-top: 0.3rem;
}

.card-muted { color: var(--text-muted); font-size: 0.9375rem; }

.card-collapsible {
  padding: 0;
}

.card-collapsible-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 1.25rem 1.5rem;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.card-collapsible-title {
  font-size: 1.125rem;
  font-weight: 600;
}

.card-collapsible-icon::before {
  content: "▸";
  display: block;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: transform 0.15s ease;
}

.card-collapsible.is-expanded .card-collapsible-icon::before {
  transform: rotate(90deg);
}

.card-collapsible-body {
  padding: 0 1.5rem 1.25rem;
}

@media (min-width: 768px) {
  .card-collapsible-toggle {
    padding: 1.5rem 2rem;
  }

  .card-collapsible-body {
    padding: 0 2rem 1.5rem;
  }
}

.progress-tab {
  margin-bottom: 0.5rem;
}

.field { margin-bottom: 1rem; }

.field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.field-required {
  color: var(--accent-red);
  margin-left: 0.15em;
}

.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
}

.field textarea { min-height: 5rem; resize: vertical; }

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.chip {
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 0.8125rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.chip:hover { color: var(--text); }

.chip[aria-pressed="true"] {
  border-color: rgba(251, 146, 60, 0.55);
  background: var(--accent-soft);
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.7rem 1.25rem;
  border-radius: 10px;
  border: none;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.1s ease;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: linear-gradient(135deg, #fb923c, #ef4444);
  color: #fff;
}

.btn-primary:disabled,
.btn-primary.is-disabled,
.btn-primary[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-row {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 0.85rem;
}

.actions-bar {
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}

.plan-result-actions {
  flex-wrap: nowrap;
}

.plan-result-actions .btn {
  flex: 1 1 0;
  min-width: 0;
  padding-left: 0.55rem;
  padding-right: 0.55rem;
  font-size: clamp(0.72rem, 2.4vw, 0.875rem);
  white-space: normal;
  text-align: center;
  line-height: 1.25;
}

@media (max-width: 639px) {
  .plan-result-actions {
    flex-wrap: wrap;
  }

  .plan-result-actions .btn {
    flex: 1 1 calc(50% - 0.35rem);
  }

  .plan-result-actions .btn-primary {
    flex-basis: 100%;
  }
}

.slider-field input[type="range"],
.workout-app input[type="range"] {
  --slider-track-height: 6px;
  --slider-thumb-size: 26px;
  --slider-fill: var(--accent);
  --slider-track-bg: rgba(255, 255, 255, 0.14);
  --slider-fill-pct: 0%;
  width: 100%;
  height: 3rem;
  margin: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  touch-action: pan-x;
}

.slider-field input[type="range"]::-webkit-slider-runnable-track,
.workout-app input[type="range"]::-webkit-slider-runnable-track {
  height: var(--slider-track-height);
  border-radius: 999px;
  border: 0;
  background: linear-gradient(
    to right,
    var(--slider-fill) 0%,
    var(--slider-fill) var(--slider-fill-pct),
    var(--slider-track-bg) var(--slider-fill-pct),
    var(--slider-track-bg) 100%
  );
}

.slider-field input[type="range"]::-webkit-slider-thumb,
.workout-app input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: var(--slider-thumb-size);
  height: var(--slider-thumb-size);
  margin-top: calc((var(--slider-track-height) - var(--slider-thumb-size)) / 2);
  border: 0;
  border-radius: 50%;
  background: var(--slider-fill);
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.35);
}

.slider-field input[type="range"]::-moz-range-track,
.workout-app input[type="range"]::-moz-range-track {
  height: var(--slider-track-height);
  border: 0;
  border-radius: 999px;
  background: var(--slider-track-bg);
}

.slider-field input[type="range"]::-moz-range-progress,
.workout-app input[type="range"]::-moz-range-progress {
  height: var(--slider-track-height);
  border: 0;
  border-radius: 999px;
  background: var(--slider-fill);
}

.slider-field input[type="range"]::-moz-range-thumb,
.workout-app input[type="range"]::-moz-range-thumb {
  width: var(--slider-thumb-size);
  height: var(--slider-thumb-size);
  border: 0;
  border-radius: 50%;
  background: var(--slider-fill);
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.35);
}

.slider-field input[type="range"]:disabled,
.workout-app input[type="range"]:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.day-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  padding: 0.25rem 0.55rem;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
}

.plan-day {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  -webkit-user-drag: none;
}

.plan-day-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
}

.plan-day-labels {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-width: 0;
}

.plan-day-date {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
}

.plan-weekly-days {
  display: flex;
  flex-direction: column;
}

.plan-day-drag-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  cursor: grab;
  padding: 0;
  flex: 0 0 auto;
  touch-action: none;
}

.plan-day-drag-handle svg {
  width: 1.2rem;
  height: 1.2rem;
}

.plan-day-drag-handle:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.plan-day-drag-handle:active,
body.plan-day-drag-active .plan-day-drag-handle {
  cursor: grabbing;
}

.plan-day--drag-source {
  opacity: 0;
}

.plan-day-ghost {
  position: fixed;
  z-index: 1200;
  margin: 0;
  pointer-events: none;
  opacity: 0.96;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.38);
  border-color: rgba(251, 146, 60, 0.55);
  transform: rotate(-0.4deg);
}

.plan-day--drag-over {
  border-color: rgba(251, 146, 60, 0.75);
  box-shadow: 0 0 0 1px rgba(251, 146, 60, 0.28);
  background: rgba(251, 146, 60, 0.06);
}

body.plan-day-drag-active {
  user-select: none;
  cursor: grabbing;
  touch-action: none;
}

.diet-restrictions-banner {
  margin-bottom: 0.85rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(251, 146, 60, 0.28);
  border-radius: 12px;
  background: rgba(251, 146, 60, 0.08);
}

.diet-restrictions-banner .meta-chip {
  margin-bottom: 0.45rem;
}

.diet-weekly-summary {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.diet-weekly-summary-sep {
  margin: 0 0.35rem;
}

.diet-weekly-days {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.diet-weekly-day {
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.diet-weekly-day-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.diet-weekly-day-kcal {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 400;
  white-space: nowrap;
}

.diet-suggested-kcal-value {
  color: var(--good);
  font-weight: 400;
}

.diet-weekly-day-notes {
  margin: 0.45rem 0 0;
  padding-left: 1.15rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.diet-weekly-day-notes li + li {
  margin-top: 0.35rem;
}

.plan-day.rest { border-color: rgba(148, 163, 184, 0.2); }

.rest-check-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  margin: 0.75rem 0 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 12px;
  background: var(--surface-2);
  cursor: pointer;
  user-select: none;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.rest-check-row:has(.rest-check-input:checked) {
  border-color: rgba(251, 146, 60, 0.22);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px rgba(251, 146, 60, 0.12);
}

.rest-check-label {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-muted);
}

.rest-check-row:has(.rest-check-input:checked) .rest-check-label {
  color: var(--text);
}

.rest-check-switch {
  position: relative;
  flex: 0 0 auto;
  margin-left: auto;
  width: 3.35rem;
  height: 1.95rem;
}

.rest-check-input {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0;
  border: 2px solid rgba(148, 163, 184, 0.55);
  border-radius: 999px;
  background: var(--surface-2);
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.rest-check-input::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0.22rem;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.85);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.28);
  transform: translateY(-50%);
  transition: left 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.rest-check-input:checked {
  border-color: rgba(251, 146, 60, 0.55);
  background: var(--accent-soft);
  box-shadow: none;
}

.rest-check-input:checked::after {
  left: calc(100% - 1.4rem - 0.22rem);
  background: rgba(251, 146, 60, 0.95);
}

.rest-check-input:focus-visible {
  outline: 2px solid rgba(251, 146, 60, 0.55);
  outline-offset: 2px;
}

.meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.5rem 0;
}

.meta-chip {
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--text-muted);
}

.chart-bars {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
  align-items: end;
  height: 180px;
  margin: 1rem 0;
}

.chart-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
}

.chart-bar-wrap {
  width: 100%;
  height: 120px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.chart-bar {
  width: 65%;
  min-height: 4px;
  border-radius: 6px 6px 0 0;
  background: var(--surface-2);
}

.chart-bar.tier-red { background: var(--poor); }
.chart-bar.tier-yellow { background: var(--warn); }
.chart-bar.tier-green { background: var(--good); }
.chart-bar.tier-turquoise { background: var(--turquoise); }

.chart-label { font-size: 0.7rem; color: var(--text-muted); }
.chart-pct { font-size: 0.7rem; font-weight: 700; }
.chart-col.selected .chart-label { color: var(--accent); }

.store-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.42rem 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #1d1d1f;
  background: #f5f5f7;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  font-family: inherit;
  appearance: none;
}

.store-btn--icon {
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
}

.store-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.store-btn--soon {
  cursor: pointer;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border);
}

.store-btn--soon:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
}

.store-btn--soon.store-btn--apple .store-icon {
  opacity: 0.9;
  filter: brightness(0) invert(1);
}

.store-btn--soon.store-btn--play .store-icon,
.store-btn--soon.store-btn--mac .store-icon {
  opacity: 0.55;
}

.plan-tab .current-plan-card {
  margin-bottom: 0.5rem;
  padding: 0.75rem 1rem;
}

.plan-tab .current-plan-card-head {
  margin-bottom: 0.2rem;
}

.plan-tab .current-plan-card-head h2 {
  margin: 0;
}

.plan-tab .current-plan-card .card-muted {
  margin: 0;
  font-size: 0.875rem;
}

.plan-tab .card {
  margin-bottom: 0.65rem;
}

.plan-tab .section-heading {
  margin-bottom: 0.5rem;
}

.plan-tab .plan-day {
  margin-bottom: 0.5rem;
}

.plan-tab .plan-day:last-child {
  margin-bottom: 0;
}

.current-plan-card--clickable {
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.current-plan-card--clickable:hover {
  border-color: rgba(251, 146, 60, 0.45);
  background: rgba(251, 146, 60, 0.06);
}

.current-plan-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.current-plan-card-head h2 {
  margin: 0;
}

.current-plan-card-hint {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

.change-plan-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  overflow-y: auto;
}

.change-plan-list li {
  list-style: none;
}

.change-plan-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.55rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}

.change-plan-option--active {
  border-color: rgba(251, 146, 60, 0.5);
  background: var(--accent-soft);
}

.change-plan-option--selected:not(.change-plan-option--active) {
  border-color: rgba(251, 146, 60, 0.45);
  background: rgba(251, 146, 60, 0.1);
}

.change-plan-option--selected.change-plan-option--active {
  border-color: rgba(251, 146, 60, 0.65);
  background: var(--accent-soft);
}

.change-plan-option:not(.change-plan-option--active):hover {
  border-color: rgba(251, 146, 60, 0.28);
  background: rgba(251, 146, 60, 0.05);
}

.change-plan-switch {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.1rem 0.15rem;
  border: none;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
  color: var(--text-muted);
}

.change-plan-switch:hover:not(:disabled),
.change-plan-switch:focus-visible:not(:disabled) {
  color: var(--text);
}

.change-plan-switch:disabled {
  cursor: default;
  color: var(--text);
}

.change-plan-date {
  flex: 1;
  min-width: 0;
  font-size: 0.875rem;
  line-height: 1.35;
  font-weight: 500;
}

.change-plan-badge {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent);
  background: rgba(251, 146, 60, 0.16);
  padding: 0.14rem 0.45rem;
  border-radius: 999px;
  white-space: nowrap;
}

.change-plan-remove {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  border: none;
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.12);
  color: var(--poor);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.change-plan-remove:hover {
  background: rgba(239, 68, 68, 0.22);
}

.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 10, 14, 0.82);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  z-index: 100;
  padding: 1.5rem;
  text-align: center;
  touch-action: none;
}

.workout-app.page-shell.is-loading .app-body-scroll {
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
}

.workout-app.page-shell.is-loading {
  overflow: hidden;
}

.app-panel-wrap {
  position: relative;
}

.spinner {
  width: 2.5rem;
  height: 2.5rem;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

@keyframes toast-error-shake {
  0%, 72%, 100% { transform: translateX(-50%); }
  8% { transform: translateX(calc(-50% - 6px)); }
  16% { transform: translateX(calc(-50% + 6px)); }
  24% { transform: translateX(calc(-50% - 5px)); }
  32% { transform: translateX(calc(-50% + 5px)); }
  40% { transform: translateX(calc(-50% - 3px)); }
  48% { transform: translateX(calc(-50% + 3px)); }
  56% { transform: translateX(calc(-50% - 1px)); }
  64% { transform: translateX(calc(-50% + 1px)); }
}

@keyframes toast-fade-in {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes toast-fade-out {
  from {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  to {
    opacity: 0;
    transform: translateX(-50%) translateY(-6px);
  }
}

.toast {
  position: fixed;
  top: 5.5rem;
  left: 50%;
  transform: translateX(-50%);
  max-width: min(420px, calc(100vw - 2rem));
  padding: 0.75rem 1.1rem;
  background: rgba(20, 26, 34, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  font-size: 0.875rem;
  text-align: center;
  z-index: 95;
  box-shadow: var(--shadow);
}

.toast-message {
  margin: 0;
}

.toast--error {
  border-color: rgba(220, 38, 38, 0.9);
  background: rgba(239, 68, 68, 0.9);
  color: #fff;
  animation: toast-error-shake 0.55s ease-in-out;
}

.toast--error.toast--simple:not(.toast--dismissing) {
  animation: toast-fade-in 0.25s ease-out, toast-error-shake 0.55s ease-in-out 0.25s;
}

.toast--error.toast--simple.toast--dismissing {
  animation: toast-fade-out 0.28s ease-in forwards;
}

.toast--error .toast-message {
  color: #fff;
}

.toast--error .toast-action {
  color: rgba(255, 255, 255, 0.92);
}

.toast--error .toast-action:hover {
  color: #fff;
}

.toast--warn {
  border-color: rgba(202, 138, 4, 0.9);
  background: rgba(234, 179, 8, 0.9);
  color: #1a1208;
}

.toast--warn .toast-message {
  color: #1a1208;
}

.toast--warn .toast-action {
  color: #713f12;
}

.toast--warn .toast-action:hover {
  color: #422006;
}

.toast--success {
  border-color: rgba(20, 83, 45, 0.9);
  background: rgba(21, 128, 61, 0.9);
  color: #ecfdf5;
}

.toast--success .toast-message {
  color: #ecfdf5;
}

.toast--simple:not(.toast--dismissing):not(.toast--error) {
  animation: toast-fade-in 0.25s ease-out;
}

.toast--simple.toast--dismissing:not(.toast--error) {
  animation: toast-fade-out 0.28s ease-in forwards;
}

.toast-action {
  margin-top: 0.55rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  cursor: pointer;
}

.toast-action:hover {
  color: #fdba74;
}

.confirm-plan-anchor.is-scroll-target {
  box-shadow: 0 0 0 3px rgba(251, 146, 60, 0.45);
}

.confirm-panel {
  z-index: 85;
}

.confirm-sheet {
  max-width: 28rem;
}

.settings-panel {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.settings-sheet {
  width: 100%;
  max-width: 28rem;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.settings-sheet h2 { margin: 0 0 0.5rem; }

.settings-plans-section {
  margin: 0 0 1rem;
}

.settings-plans-heading {
  margin: 0 0 0.55rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}

.settings-plans-confirm {
  margin-top: 0.85rem;
}

.settings-plans-confirm-btn {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  box-shadow: 0 8px 20px rgba(251, 146, 60, 0.22);
}

.settings-plans-confirm-btn:hover {
  background: #fd9f4d;
}

.settings-plan-list {
  margin: 0;
  padding: 0;
  max-height: min(40vh, 16rem);
}

.rank-good { color: var(--good); }
.rank-warning { color: var(--warn); }
.rank-poor { color: var(--poor); }
.rank-neutral { color: var(--text-muted); }

.meal-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
  align-items: start;
}

.meal-desc-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.meal-est-kcal {
  margin: 0;
  padding-left: 0.1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--good);
}

.diet-mode-link {
  display: inline-flex;
  align-items: center;
  margin: 0.25rem 0 1rem;
  padding: 0;
  border: none;
  background: none;
  color: var(--accent);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.diet-mode-link:hover {
  opacity: 0.85;
}

.diet-estimate-card .diet-mode-link {
  margin-top: 0.85rem;
}

.diet-estimation-trigger {
  margin-top: -0.5rem;
  margin-bottom: 1rem;
}

.progress-day-editor {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.debug-note {
  margin-bottom: 0.75rem;
}

.meal-photo {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--surface-2);
  border: 1px dashed var(--border);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  background: none;
  border: none;
  padding: 0;
  margin-bottom: 1rem;
  cursor: pointer;
}

.back-link:hover { color: var(--text); }

.evaluation-lines {
  color: var(--text-muted);
  font-size: 0.9rem;
  white-space: pre-line;
}

.goal-assessment-sections {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.goal-assessment-section {
  padding-left: 0.75rem;
  border-left: 3px solid var(--border);
}

.goal-assessment-section--status {
  border-left-color: var(--calo-in);
}

.goal-assessment-section--assessment {
  border-left-color: var(--accent);
}

.goal-assessment-section--considerations {
  border-left-color: var(--warn);
}

.goal-assessment-section--default {
  border-left-color: var(--border);
}

.card .goal-assessment-section-title {
  margin: 0 0 0.4rem;
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: none;
}

.card .goal-assessment-section--status .goal-assessment-section-title {
  color: var(--calo-in);
}

.card .goal-assessment-section--assessment .goal-assessment-section-title {
  color: var(--accent);
}

.card .goal-assessment-section--considerations .goal-assessment-section-title {
  color: var(--warn);
}

.card .goal-assessment-section--default .goal-assessment-section-title {
  color: var(--text-muted);
}

.goal-assessment-bullets {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.goal-assessment-bullets li + li {
  margin-top: 0.35rem;
}

.unrealistic-box {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.08);
}

.site-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.875rem;
}

.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
}

.site-footer a:hover { color: var(--text); }

/* Performance tier colors (match native app) */
.tier-red { color: var(--poor); }
.tier-yellow { color: var(--warn); }
.tier-green { color: var(--good); }
.tier-turquoise { color: var(--turquoise); }

.chart-bar.tier-red, .track-bar.tier-red { background: var(--poor); }
.chart-bar.tier-yellow, .track-bar.tier-yellow { background: var(--warn); }
.chart-bar.tier-green, .track-bar.tier-green { background: var(--good); }
.chart-bar.tier-turquoise, .track-bar.tier-turquoise { background: var(--turquoise); }

.chart-dot.tier-red { fill: var(--poor); }
.chart-dot.tier-yellow { fill: var(--warn); }
.chart-dot.tier-green { fill: var(--good); }
.chart-dot.tier-turquoise { fill: var(--turquoise); }

.body-stats-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

.sport-freq-list {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.progress-summary-box {
  text-align: center;
  margin: 1rem 0;
}

.nutrition-highlight-panel {
  background: var(--nutrition-highlight);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin: 1rem 0;
}

.progress-week-panel { margin-top: 0.75rem; }

.progress-summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.progress-summary-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.progress-summary-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}

.progress-summary-eval {
  font-size: 0.8125rem;
  font-weight: 500;
  text-align: right;
  line-height: 1.35;
  flex: 1;
  min-width: 8rem;
}

.progress-week-pct {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.calo-highlight-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.625rem;
  margin-top: 0.75rem;
}

.calo-highlight-cell {
  text-align: center;
  padding: 0.5rem 0.65rem;
  border-radius: 10px;
  background: var(--nutrition-highlight);
  border: 1px solid;
}

.calo-cell-in { border-color: rgba(114, 168, 190, 0.4); }
.calo-cell-out { border-color: rgba(184, 154, 114, 0.4); }

.calo-cell-label {
  display: block;
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.calo-cell-value {
  display: block;
  font-size: 1rem;
  font-weight: 700;
}

.calo-cell-in .calo-cell-value { color: var(--calo-in); }
.calo-cell-out .calo-cell-value { color: var(--calo-out); }

.calo-cell-missing {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
}

.progress-day-detail {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.progress-day-empty {
  margin: 1rem 0 0;
}

.progress-selected-date {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--progress-chart-selected);
  margin: 0 0 0.5rem;
}

.calo-inline-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.calo-inline-block {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.calo-inline-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
}

.calo-inline-item--expandable {
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: inherit;
}

.calo-inline-item--expandable:hover .calo-inline-value {
  text-decoration: underline;
  text-decoration-color: currentColor;
}

.calo-expand-arrow {
  font-size: 0.625rem;
  color: var(--text-muted);
  line-height: 1;
  flex-shrink: 0;
}

.calo-inline-gap {
  width: 0.15rem;
}

.calo-detail-panel {
  border-radius: 10px;
  background: var(--surface-alt, rgba(255, 255, 255, 0.04));
  border: 1px solid color-mix(in srgb, var(--border) 45%, transparent);
  padding: 0.625rem 0.75rem;
}

.calo-detail-line {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--text-secondary, var(--text-muted));
}

.calo-detail-line + .calo-detail-line {
  margin-top: 0.25rem;
}

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

.calo-inline-label {
  color: var(--text-muted);
  font-weight: 400;
}

.calo-inline-value {
  font-weight: 600;
}

.calo-inline-in { color: var(--calo-in); }
.calo-inline-out { color: var(--calo-out); }
.calo-inline-muted { color: var(--text-muted); font-weight: 500; }

.calo-inline-btn {
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color 0.15s ease;
}

.calo-inline-btn:hover {
  text-decoration-color: currentColor;
}

.diet-total-kcal {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0.25rem 0 0;
}

.line-chart {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 960 / 220;
  margin-top: 0.25rem;
}

.progress-chart-wrap {
  margin-top: 0.25rem;
}

.progress-chart-wrap .line-chart {
  margin-top: 0;
}

.progress-chart-dates {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.35rem;
  margin-top: 0.2rem;
  /* Match SVG chart padding (32px left, 12px right on 960px viewBox). */
  padding-left: 3.333333%;
  padding-right: 1.25%;
  box-sizing: border-box;
}

.progress-chart-date-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  min-width: 0;
}

.progress-not-logged-btn {
  border: 1px solid rgba(234, 179, 8, 0.45);
  border-radius: 999px;
  background: rgba(234, 179, 8, 0.14);
  color: var(--warn);
  font: inherit;
  font-size: 0.5625rem;
  font-weight: 700;
  line-height: 1.2;
  padding: 0.2rem 0.45rem;
  cursor: pointer;
  white-space: nowrap;
  max-width: 100%;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.progress-not-logged-btn:hover {
  background: rgba(234, 179, 8, 0.24);
  border-color: rgba(234, 179, 8, 0.65);
  color: #ffe566;
}

.calo-highlight-cell .progress-not-logged-btn,
.calo-inline-item .progress-not-logged-btn {
  font-size: 0.6875rem;
  padding: 0.3rem 0.65rem;
  margin-top: 0.15rem;
}

.progress-chart-date {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.625rem;
  line-height: 1.25;
  text-align: center;
  width: 100%;
  padding: 0.15rem 0.1rem;
  cursor: pointer;
  white-space: normal;
}

.progress-chart-date--compact,
.progress-chart-dates[data-axis-compact="1"] .progress-chart-date {
  white-space: nowrap;
  font-size: 0.58rem;
  line-height: 1.15;
}

.progress-chart-date.selected {
  color: var(--accent);
  font-weight: 700;
}

.progress-chart-date:hover {
  color: var(--text);
}

.chart-col-highlight {
  fill: rgba(143, 175, 212, 0.14);
}

.chart-col-hit {
  fill: transparent;
  cursor: pointer;
}

.chart-axis-label.selected {
  fill: var(--accent);
  font-weight: 700;
}

.chart-grid, .chart-baseline {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1;
}

.chart-baseline { stroke: rgba(96, 165, 250, 0.35); stroke-dasharray: 4 4; }

@keyframes chart-line-neon-pulse {
  0%, 100% {
    filter:
      drop-shadow(0 0 2px rgba(143, 175, 212, 0.72))
      drop-shadow(0 0 5px rgba(111, 147, 186, 0.5))
      drop-shadow(0 0 10px rgba(96, 165, 250, 0.32))
      drop-shadow(0 0 16px rgba(59, 130, 246, 0.16));
  }
  50% {
    filter:
      drop-shadow(0 0 3px rgba(143, 175, 212, 0.82))
      drop-shadow(0 0 7px rgba(111, 147, 186, 0.58))
      drop-shadow(0 0 14px rgba(96, 165, 250, 0.4))
      drop-shadow(0 0 22px rgba(59, 130, 246, 0.22));
  }
}

.chart-line {
  stroke: #8fafd4;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter:
    drop-shadow(0 0 2px rgba(143, 175, 212, 0.72))
    drop-shadow(0 0 5px rgba(111, 147, 186, 0.5))
    drop-shadow(0 0 10px rgba(96, 165, 250, 0.32))
    drop-shadow(0 0 16px rgba(59, 130, 246, 0.16));
  animation: chart-line-neon-pulse 3.2s ease-in-out infinite;
}

.chart-line--pending {
  opacity: 0;
}

.chart-line--extend {
  animation: none;
}

.chart-dot--pending,
.chart-dot-anchor.chart-dot--pending .chart-dot-group,
.chart-dot.chart-dot--pending {
  opacity: 0;
}

.chart-marker {
  pointer-events: none;
}

.chart-miss-x {
  stroke: var(--poor);
  stroke-width: 1.75;
  stroke-linecap: round;
}

.chart-rest-icon {
  fill: none;
  stroke: var(--text-muted);
  stroke-width: 1.75;
}

@keyframes chart-dot-zoom {
  from { transform: scale(0.88); }
  to { transform: scale(1.12); }
}

@keyframes chart-dot-glow-pulse {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

.chart-axis-label, .chart-y-label {
  fill: var(--text-muted);
  font-size: 9px;
}

.chart-dot {
  cursor: pointer;
  stroke: var(--bg);
  stroke-width: 2;
}

.chart-dot-group.selected {
  transform-box: fill-box;
  transform-origin: center;
  animation: chart-dot-zoom 900ms ease-in-out infinite alternate;
}

.chart-dot-glow-outer,
.chart-dot-glow-ring {
  animation: chart-dot-glow-pulse 600ms ease-in-out infinite alternate;
}

.chart-dot-glow-outer {
  fill: currentColor;
  opacity: 0.35;
}

.chart-dot-glow-ring {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  opacity: 0.55;
}

.chart-dot-group.selected.tier-red { color: var(--poor); }
.chart-dot-group.selected.tier-yellow { color: var(--warn); }
.chart-dot-group.selected.tier-green { color: var(--good); }
.chart-dot-group.selected.tier-turquoise { color: var(--turquoise); }

.chart-dot.selected {
  stroke-width: 2.5;
}

.chart-dot.selected.tier-red {
  fill: var(--poor);
  stroke: #ff8a8a;
}

.chart-dot.selected.tier-yellow {
  fill: var(--warn);
  stroke: #ffe566;
}

.chart-dot.selected.tier-green {
  fill: var(--good);
  stroke: #6ee7a0;
}

.chart-dot.selected.tier-turquoise {
  fill: var(--turquoise);
  stroke: #7af0df;
}

@media (prefers-reduced-motion: reduce) {
  .chart-line {
    animation: none;
  }

  .chart-dot-group.selected,
  .chart-dot-glow-outer,
  .chart-dot-glow-ring {
    animation: none;
  }

  .toast--error,
  .toast--simple {
    animation: none !important;
  }

  .nav-tab-indicator {
    transition: none !important;
  }

  .log-here-bubble,
  .log-here-highlight,
  .tab-coach-bubble,
  .nav-tab.coach-highlight {
    animation: none !important;
  }

  .log-here-bubble.is-dismissing,
  .log-here-highlight.log-here-highlight--dismissing,
  .tab-coach-bubble.is-dismissing,
  .nav-tab.coach-highlight.coach-highlight--dismissing {
    opacity: 0;
    transition: opacity 0.01ms;
  }
}

.track-bars {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
  align-items: end;
  height: 160px;
  margin: 1rem 0;
}

.track-bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
  height: 100%;
  min-height: 0;
}

.track-bar-pct-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  height: 1.125rem;
  width: 100%;
  overflow: hidden;
}

.track-bar-pct-spacer {
  display: block;
  width: 100%;
  height: 100%;
}

.track-bar-pct-slot .chart-pct,
.track-bar-pct-slot .track-rest-label {
  line-height: 1.125rem;
  white-space: nowrap;
}

.track-bar-col.future { opacity: 0.45; }

.track-bar-wrap {
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.track-bar-col .chart-label {
  flex-shrink: 0;
  font-size: 0.625rem;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
  max-width: 100%;
}

.track-bar {
  width: 65%;
  min-height: 4px;
  border-radius: 6px 6px 0 0;
  background: var(--surface-2);
}

.track-bar.rest {
  background: repeating-linear-gradient(
    45deg,
    var(--surface-2),
    var(--surface-2) 4px,
    rgba(255, 255, 255, 0.06) 4px,
    rgba(255, 255, 255, 0.06) 8px
  );
}

.track-bar-col.selected {
  background: rgba(143, 175, 212, 0.14);
  border-radius: 10px;
  padding: 0 0.15rem;
  box-shadow: inset 0 0 0 1px rgba(143, 175, 212, 0.22);
}

.track-bar-col.selected .chart-label {
  color: var(--accent);
  font-weight: 700;
}

.track-bar-col.selected .track-bar:not(.rest) {
  box-shadow: 0 0 0 2px rgba(251, 146, 60, 0.45);
}

.track-rest-label {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.slider-field.disabled { opacity: 0.45; pointer-events: none; }

.meal-photo-slot {
  position: relative;
  width: 72px;
  height: 72px;
}

.meal-photo-btn {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.meal-photo-btn svg { width: 26px; height: 26px; }

.meal-photo-btn:hover { opacity: 0.85; }

.meal-photo-remove {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: var(--poor);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}

.meal-desc-input {
  width: 100%;
  padding: 0.65rem 0;
  border: none;
  border-bottom: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
}

.meal-desc-input:focus {
  outline: none;
  border-bottom-color: var(--accent);
}

.track-week-section {
  margin-top: 0;
  margin-bottom: 0.25rem;
}

.track-week-section .week-nav-wrap {
  margin: 1rem 0;
}

.track-week-section .progress-chart-wrap {
  margin-top: 0;
}

.log-here-anchor:has(.log-here-bubble),
.card:has(.log-here-bubble),
.plan-day:has(.log-here-bubble) {
  overflow: visible;
}

.log-here-target {
  position: relative;
  overflow: visible;
}

.log-here-target:has(.log-here-bubble) {
  margin-bottom: 2.75rem;
}

.log-here-bubble {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  z-index: 4;
  display: flex;
  align-items: center;
  padding: 0.45rem 0.65rem;
  border-radius: 12px;
  background: rgba(34, 197, 94, 0.92);
  color: #052e16;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  text-align: center;
  box-shadow: 0 10px 28px rgba(34, 197, 94, 0.34);
  transform: translateX(-50%);
  animation: log-here-bubble-in 0.35s ease-out, log-here-bubble-bob 2.2s ease-in-out 0.35s infinite;
  pointer-events: none;
}

.log-here-bubble.is-dismissing {
  animation: log-here-bubble-fade-out 0.28s ease-in forwards;
}

.log-here-bubble::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-bottom-color: rgba(34, 197, 94, 0.92);
}

.meal-desc-wrap.log-here-target .log-here-bubble {
  top: calc(100% + 10px);
  left: 0;
  transform: none;
  animation: log-here-bubble-in-left 0.35s ease-out, log-here-bubble-bob-left 2.2s ease-in-out 0.35s infinite;
}

.meal-desc-wrap.log-here-target .log-here-bubble.is-dismissing {
  animation: log-here-bubble-fade-out-left 0.28s ease-in forwards;
}

.meal-desc-wrap.log-here-target .log-here-bubble::before {
  left: 1.25rem;
  transform: none;
}

.log-here-highlight {
  animation: log-here-target-glow 1.4s ease-in-out infinite;
}

.log-here-highlight.log-here-highlight--dismissing {
  animation: log-here-target-glow-out 0.28s ease-in forwards;
}

input[type="range"].log-here-highlight {
  --slider-thumb-color: #22c55e;
}

input[type="range"].log-here-highlight {
  --slider-fill: var(--slider-thumb-color, #22c55e);
}

input[type="range"].log-here-highlight::-webkit-slider-thumb {
  background: var(--slider-fill);
}

input[type="range"].log-here-highlight::-moz-range-thumb {
  background: var(--slider-fill);
}

@keyframes log-here-bubble-in {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-8px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

@keyframes log-here-bubble-bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(5px); }
}

@keyframes log-here-bubble-in-left {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes log-here-bubble-bob-left {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

@keyframes log-here-target-glow {
  0%, 100% {
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.35);
  }
  50% {
    box-shadow:
      0 0 0 4px rgba(34, 197, 94, 0.55),
      0 0 18px rgba(34, 197, 94, 0.28);
  }
}

@keyframes log-here-bubble-fade-out {
  from {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateX(-50%) translateY(-6px) scale(0.96);
  }
}

@keyframes log-here-bubble-fade-out-left {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(-6px) scale(0.96);
  }
}

@keyframes log-here-target-glow-out {
  from {
    box-shadow:
      0 0 0 4px rgba(34, 197, 94, 0.55),
      0 0 18px rgba(34, 197, 94, 0.28);
  }
  to {
    box-shadow: none;
  }
}

.week-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin: 0;
}

.week-nav-wrap {
  margin: 0;
}

.week-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 1.5rem;
  height: auto;
  padding: 0.2rem;
  border: none;
  border-radius: 0;
  background: none;
  color: var(--text-muted);
  font: inherit;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.15s ease, transform 0.15s ease;
}

.week-nav-icon {
  display: block;
  width: 1.125rem;
  height: 1.125rem;
  transition: transform 0.15s ease;
}

.week-nav-btn:hover,
.week-nav-btn:focus-visible {
  color: var(--accent);
  background: none;
}

.week-nav-btn[data-action="week-prev"]:hover .week-nav-icon,
.week-nav-btn[data-action="week-prev"]:focus-visible .week-nav-icon {
  transform: translateX(-2px);
}

.week-nav-btn[data-action="week-next"]:hover .week-nav-icon,
.week-nav-btn[data-action="week-next"]:focus-visible .week-nav-icon {
  transform: translateX(2px);
}

.week-nav-label {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0.25rem;
  min-width: 0;
  white-space: nowrap;
}

.week-nav-title {
  font-weight: 700;
  font-size: 0.8125rem;
  line-height: 1.1;
}

.week-nav-sep {
  color: var(--text-muted);
  font-size: 0.75rem;
  line-height: 1;
  opacity: 0.65;
  flex-shrink: 0;
}

.week-nav-range {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.1;
}

.section-title {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  font-weight: 600;
}

@media (max-width: 639px) {
  .app-chrome-collapsible {
    overflow: hidden;
    will-change: max-height, opacity;
    max-height: calc(var(--section-height, 6rem) * (1 - var(--chrome-collapse, 0)));
    opacity: calc(1 - var(--chrome-collapse, 0));
  }

  .app-title-chrome.app-chrome-collapsible {
    overflow-x: visible;
    overflow-y: hidden;
  }

  .app-topbar-side-chrome {
    max-width: calc(var(--side-width, 10rem) * (1 - var(--chrome-collapse, 0)));
  }

  .workout-app.is-chrome-collapsed .app-topbar-side-chrome {
    pointer-events: none;
  }

  .workout-app.is-chrome-collapsed .app-header-fixed {
    padding-bottom: 0.2rem;
  }

  .app-header-fixed {
    padding: 0.75rem 1rem 0.25rem;
  }

  .app-title-chrome {
    top: 1rem;
    max-width: calc(100% - 1.5rem);
    transform: translate(-50%, 0);
  }

  .app-body-scroll {
    padding: 0.85rem 1rem 2rem;
  }

  .top-bar {
    gap: calc(0.5rem * (1 - var(--chrome-collapse, 0)))
      calc(0.5rem * (1 - var(--chrome-collapse, 0)));
  }

  .app-topbar-side-chrome--end {
    flex-shrink: 0;
  }

  .top-bar-account {
    flex-shrink: 0;
    grid-template-columns: auto;
    grid-template-rows: auto;
    justify-items: end;
  }

  .workout-app .top-bar-account .user-chip-name {
    display: none;
  }

  .top-bar-account > .user-chip > img,
  .top-bar-account > .user-chip > .login-account-icon {
    grid-column: 1;
    grid-row: 1;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
  }

  .top-bar-account > .top-bar-entitlement:not(.top-bar-entitlement--trial) {
    display: none;
  }

  .top-bar-entitlement--trial .top-bar-entitlement-label {
    display: none;
  }

  .top-bar-entitlement-badge {
    display: inline-flex;
    align-items: center;
    margin-top: 4px;
    gap: 0.2rem;
    padding: 0.14rem 0.38rem;
    border-radius: 999px;
    font-size: 0.5625rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1;
    white-space: nowrap;
    background: rgba(253, 230, 138, 0.14);
    border: 1px solid rgba(253, 230, 138, 0.35);
    color: #fde68a;
  }

  .top-bar-entitlement--clickable:hover .top-bar-entitlement-badge {
    color: #fef08a;
    border-color: rgba(254, 240, 138, 0.45);
    background: rgba(254, 240, 138, 0.18);
  }

  .top-bar-account:has(.top-bar-entitlement--trial) {
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 0;
  }

  .top-bar-account:has(.top-bar-entitlement--trial) > .user-chip > img,
  .top-bar-account:has(.top-bar-entitlement--trial) > .user-chip > .login-account-icon {
    order: -1;
    grid-column: unset;
    grid-row: unset;
    justify-self: unset;
    transform: none;
  }

  .top-bar-account:has(.top-bar-entitlement--trial) > .top-bar-entitlement--trial {
    order: 0;
    grid-column: unset;
    grid-row: unset;
    justify-self: unset;
    margin-top: 4px;
    text-align: center;
    display: inline-flex;
    justify-content: center;
  }

  .back-portfolio {
    font-size: 0.75rem;
  }

  .site-hero--compact {
    gap: 0.3rem;
  }

  .app-title-chrome .site-hero--compact {
    gap: 0;
    margin-top: -8px;
  }

  .app-title-chrome .site-hero--compact .site-hero-text {
    margin-top: 0;
    margin-left: 0;
  }

  .app-title-chrome .site-hero--compact .site-hero-icon {
    width: 54px;
    height: 54px;
  }

  .app-title-chrome .site-hero--compact .site-hero-icon--mark {
    margin-top: -9px;
    margin-bottom: -7px;
  }

  .app-title-chrome .site-hero--compact h1 {
    font-size: 0.8125rem;
  }

  .site-hero--compact .site-hero-icon {
    width: 52px;
    height: 52px;
  }

  .site-hero--compact h1 {
    font-size: 0.9375rem;
  }

  .site-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.35rem;
    overflow: visible;
    padding: 0.45rem 1rem 0.65rem;
  }

  .nav-tab {
    padding: 0.45rem 0.35rem;
    font-size: 0.6875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
