:root {
  color-scheme: light;
  --bg: #faf8f6;
  --surface: #fff;
  --card: var(--surface);
  --text: #26232a;
  --muted: #706971;
  --accent: #924e65;
  --accent-strong: #78394e;
  --primary: var(--accent);
  --soft: #f5e9ed;
  --rose: var(--soft);
  --line: #e7e0de;
  --border: var(--line);
  --success: #54745f;
  --sage: #eaf0e9;
  --tint: #f6f3ef;
  --shadow: 0 7px 28px #50362909;
  --radius: 22px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #1b191c;
    --surface: #262327;
    --text: #f7f0ee;
    --muted: #c3b8bd;
    --accent: #dea0b4;
    --accent-strong: #f2c4d2;
    --soft: #432d36;
    --line: #443d40;
    --success: #a9cbaf;
    --sage: #2d392f;
    --tint: #302b2d;
    --shadow: none;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1b191c;
  --surface: #262327;
  --text: #f7f0ee;
  --muted: #c3b8bd;
  --accent: #dea0b4;
  --accent-strong: #f2c4d2;
  --soft: #432d36;
  --line: #443d40;
  --success: #a9cbaf;
  --sage: #2d392f;
  --tint: #302b2d;
  --shadow: none;
}
* {
  box-sizing: border-box;
}
html {
  min-height: 100%;
  scroll-padding-top: 20px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.48;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
  border: 0;
  background: none;
  touch-action: manipulation;
}
button:disabled {
  opacity: 0.55;
  cursor: default;
}
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
a {
  color: var(--accent);
}
p,
h1,
h2,
h3,
h4 {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.16;
  letter-spacing: -0.038em;
}
h1 {
  font-size: clamp(2.05rem, 4.3vw, 3.15rem);
  font-weight: 650;
}
h2 {
  font-size: 1.35rem;
  font-weight: 650;
}
h3 {
  font-size: 1.1rem;
}
svg {
  flex: none;
  vertical-align: middle;
}
img {
  max-width: 100%;
  display: block;
}
button,
summary {
  transition:
    background 0.16s,
    color 0.16s,
    transform 0.16s;
}
button:active:not(:disabled) {
  transform: translateY(1px);
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
legend,
.field > span {
  margin-bottom: 8px;
  font-size: 0.92rem;
  font-weight: 600;
}
legend {
  padding: 0;
}
label {
  min-width: 0;
}
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
select,
textarea {
  width: 100%;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: var(--surface);
  min-height: 46px;
}
input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 0.8;
}
input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--accent);
  width: 18px;
  height: 18px;
  flex: none;
}
textarea {
  resize: vertical;
  min-height: 78px;
}
summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 570;
  padding: 8px 0;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  width: 100%;
}
small,
.small {
  font-size: 0.82rem;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.muted {
  color: var(--muted);
}
[hidden] {
  display: none !important;
}
.primary,
.secondary,
.hero-btn,
.danger {
  border-radius: 13px;
  padding: 12px 19px;
  font-weight: 620;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}
.primary {
  background: #a45b71;
  color: #fff;
}
.primary:hover {
  background: #783d51;
}
.secondary {
  background: var(--soft);
  color: var(--accent);
}
.secondary:hover {
  filter: brightness(0.97);
}
.danger {
  background: var(--soft);
  color: var(--accent-strong);
}
.text-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 600;
  min-height: 42px;
  padding: 4px 2px;
}
.round-btn,
.avatar {
  border-radius: 50%;
  height: 43px;
  width: 43px;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
}
.avatar {
  background: var(--soft);
  color: var(--accent);
  font-weight: 650;
}
.avatar.large {
  width: 70px;
  height: 70px;
  font-size: 1.8rem;
}
.card {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(18px, 2.5vw, 28px);
  box-shadow: var(--shadow);
}
.stack,
.fields {
  display: grid;
  gap: 18px;
  align-content: start;
  min-width: 0;
}
.fields {
  gap: 14px;
  margin-top: 10px;
}
.row,
.spread,
.card-head,
.inline-form {
  display: flex;
  align-items: center;
  gap: 12px;
}
.spread,
.card-head {
  justify-content: space-between;
}
.grid,
.dash-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.field {
  display: flex;
  flex-direction: column;
}
.field + .field {
  margin-top: 0;
}
.inline-form {
  align-items: end;
  flex-wrap: wrap;
}
.inline-form .field {
  flex: 1 1 160px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--accent);
  font-size: 0.77rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.choices,
.suggestions,
.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.choice {
  position: relative;
  cursor: pointer;
}
.choice input {
  position: absolute;
  opacity: 0;
}
.choice span,
.chip,
.segmented button {
  display: inline-flex;
  align-items: center;
  min-height: 41px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 0.9rem;
  color: var(--muted);
  background: var(--surface);
}
.choice input:checked + span,
.segmented button[aria-pressed="true"] {
  background: var(--soft);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}
.choice input:focus-visible + span {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.select-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 0;
  min-height: 44px;
}
.notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-radius: 16px;
  background: var(--sage);
  color: var(--success);
  padding: 16px;
  font-size: 0.9rem;
}
.narrow {
  max-width: 690px;
  width: 100%;
}
.toast {
  position: fixed;
  z-index: 5000;
  bottom: calc(90px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  background: #352c31;
  color: #fff;
  border-radius: 13px;
  padding: 12px 18px;
  max-width: min(90vw, 600px);
  box-shadow: 0 5px 24px #0003;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  color: var(--text);
  font-size: 1.27rem;
  font-weight: 620;
  letter-spacing: 0.105em;
}
.brand b {
  font-weight: 350;
  color: var(--muted);
}
.brand-link {
  padding: 0;
}
.intro-wrap {
  max-width: 1456px;
  padding: 0 clamp(24px, 5vw, 88px) 45px;
  margin: auto;
}
.intro-bar,
.app-top > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.intro-bar {
  height: 94px;
  border-bottom: 1px solid var(--line);
}
.privacy-mark {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  color: var(--muted);
  font-size: 0.84rem;
}
.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(36px, 7vw, 114px);
  padding-top: 38px;
}
.studio-panel {
  position: sticky;
  top: 24px;
  isolation: isolate;
  border-radius: 26px;
  overflow: hidden;
  height: clamp(600px, 71vh, 790px);
  background: #875f5c;
}
.studio-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.studio-panel:after {
  content: "";
  position: absolute;
  inset: 36% 0 0;
  background: linear-gradient(transparent, rgba(45, 23, 29, 0.83));
  z-index: 0;
}
.studio-copy {
  position: absolute;
  left: 9%;
  bottom: 7%;
  right: 6%;
  color: #fff8f2;
  z-index: 1;
}
.studio-line {
  width: 42px;
  height: 2px;
  background: #f9e7d8;
  display: block;
  margin-bottom: 18px;
}
.studio-copy p {
  font-size: 0.77rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 600;
}
.studio-copy h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 5.8vw, 88px);
  line-height: 0.92;
  letter-spacing: -0.065em;
  font-weight: 400;
  margin: 15px 0 19px;
}
.studio-copy h2 em {
  font-weight: 400;
}
.studio-copy > span:last-child {
  font-size: 0.94rem;
  color: #f1ded7;
}
.intro-form {
  max-width: 520px;
  width: 100%;
  align-self: center;
  padding: 18px 0 12px;
}
.step-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.8rem;
}
.step-meta span:first-child {
  font-weight: 650;
  color: var(--accent);
}
.step-bars {
  display: flex;
  gap: 6px;
  margin: 10px 0 32px;
}
.step-bars b {
  height: 4px;
  flex: 1;
  border-radius: 6px;
  background: var(--line);
}
.step-bars .filled {
  background: var(--accent);
}
.intro-icon,
.tile-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--soft);
  color: var(--accent);
  flex: none;
}
.intro-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 15px;
}
.intro-title h1 {
  font-size: clamp(2.15rem, 3.25vw, 3rem);
}
.intro-title p,
.section-head p,
.greeting p,
.daily-check p {
  color: var(--muted);
  margin-top: 10px;
}
.intro-title {
  margin-bottom: 25px;
}
.intro-form input:not([type="checkbox"]):not([type="radio"]) {
  min-height: 49px;
}
.optional {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.optional summary {
  display: flex;
  gap: 9px;
  align-items: center;
  color: var(--text);
  font-size: 0.92rem;
  min-height: 47px;
}
.optional summary small {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 400;
}
.optional .fields {
  padding-bottom: 14px;
}
.onboarding-actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}
.onboarding-actions .primary {
  flex: 1;
  justify-content: space-between;
  padding: 14px 19px;
}
.intro-foot {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.78rem;
}
.intro-form > .text-btn {
  font-size: 0.78rem;
  min-height: 36px;
}
.app-top {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  padding-top: env(safe-area-inset-top);
}
.app-top > div,
.screen {
  max-width: 1170px;
  margin: auto;
  padding: 0 clamp(20px, 4vw, 54px);
}
.app-top > div {
  min-height: 77px;
}
.screen {
  padding-top: 34px;
  padding-bottom: calc(110px + env(safe-area-inset-bottom));
  animation: enter 0.24s ease-out;
}
.screen > .card,
.screen > .dash-grid,
.screen > .metric-grid,
.screen > .segmented {
  margin-bottom: 18px;
}
.section-head,
.greeting {
  margin-bottom: 26px;
}
.greeting {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.greeting h1 {
  margin-top: 10px;
}
.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 20px;
}
.workout-hero {
  isolation: isolate;
  min-height: 262px;
  position: relative;
  color: #fff7f4;
  border-radius: 24px;
  overflow: hidden;
  background: #60404b;
}
.workout-hero > img {
  position: absolute;
  right: 0;
  top: 0;
  width: 60%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.workout-hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    #53313f 5%,
    #663e4cf5 39%,
    #643b4b73 69%,
    transparent
  );
  z-index: -1;
}
.hero-copy {
  padding: 26px;
  max-width: 78%;
  display: grid;
  gap: 12px;
  align-items: start;
  justify-items: start;
}
.hero-copy h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.05;
}
.hero-copy p {
  font-size: 0.92rem;
  max-width: 330px;
}
.hero-tag,
.hero-meta,
.tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
}
.hero-tag {
  letter-spacing: 0.03em;
  color: #f3dce3;
}
.hero-btn {
  background: #fff6f2;
  color: #563643;
  font-size: 0.91rem;
  min-height: 43px;
}
.week-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}
.week-strip button {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 8px 0;
  border-radius: 12px;
  background: var(--tint);
}
.week-strip small {
  text-transform: uppercase;
  color: var(--muted);
  font-size: 0.66rem;
}
.week-strip strong {
  font-size: 1.1rem;
}
.week-strip i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}
.week-strip .planned {
  background: var(--accent);
}
.week-strip .done {
  background: var(--success);
}
.week-strip [aria-pressed="true"] {
  background: #904d63;
  color: #fff;
}
.week-strip [aria-pressed="true"] small {
  color: #f8e9ee;
}
.week-strip [aria-pressed="true"] .planned,
.week-strip [aria-pressed="true"] .done {
  background: #fff;
}
.menu-action,
.coach-tile {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 8px 0;
}
.menu-action > span:nth-child(2),
.coach-tile > span:nth-child(2) {
  flex: 1;
}
.menu-action small,
.coach-tile small,
.stat-pair small,
.quick-grid small {
  display: block;
  font-weight: 400;
  color: var(--muted);
  margin-top: 3px;
}
.menu-action + .menu-action {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.daily-check {
  background: var(--sage);
}
.daily-check .tile-icon {
  background: var(--surface);
  color: var(--success);
  margin-bottom: 15px;
}
.daily-check .secondary {
  margin-top: 17px;
  color: var(--success);
  background: var(--surface);
}
.quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.quick-grid button {
  background: var(--tint);
  color: var(--accent);
  padding: 14px;
  border-radius: 14px;
  text-align: left;
}
.quick-grid strong {
  color: var(--text);
  display: block;
  margin-top: 8px;
}
.stat-pair {
  display: flex;
  gap: 30px;
}
.stat-pair strong {
  font-size: 1.65rem;
  line-height: 1;
}
.coach-tile {
  padding: 17px 20px;
  border: 1px solid var(--line);
  background: var(--soft);
  border-radius: 18px;
}
.coach-tile .tile-icon {
  background: var(--surface);
}
.tip {
  margin-top: 20px;
}
.tip p {
  margin-top: 3px;
}
.bottom-nav {
  background: var(--surface);
  border-top: 1px solid var(--line);
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding-bottom: env(safe-area-inset-bottom);
  z-index: 20;
}
.bottom-nav > div {
  display: flex;
  justify-content: center;
  max-width: 780px;
  margin: auto;
}
.bottom-nav button {
  flex: 1;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 3px;
  min-height: 65px;
  color: var(--muted);
  font-size: 0.73rem;
}
.bottom-nav [aria-current="page"] {
  color: var(--accent);
  font-weight: 650;
}
.bottom-nav [aria-current="page"] svg {
  background: var(--soft);
  width: 52px;
  height: 26px;
  border-radius: 9px;
  padding: 2px;
}
.profile-layout {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 20px;
  align-items: start;
}
.identity {
  display: grid;
  justify-items: start;
  gap: 13px;
}
.backup-wrap {
  max-width: 710px;
  margin: 0 auto;
  padding: 10px 0;
}
.setup-screen > .backup-wrap {
  padding: 38px 20px;
}
.backup-wrap > .brand {
  margin-bottom: 24px;
}
.metric-grid,
.achievement-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.metric {
  display: grid;
  justify-items: start;
  gap: 4px;
}
.metric svg {
  color: var(--accent);
  margin-bottom: 6px;
}
.metric strong {
  font-size: 1.6rem;
}
.metric span {
  color: var(--muted);
  font-size: 0.86rem;
}
.achievement-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.achievement {
  display: grid;
  gap: 5px;
  justify-items: start;
  color: var(--muted);
  padding: 14px;
  border-radius: 12px;
  background: var(--tint);
}
.achievement.earned {
  background: var(--sage);
  color: var(--success);
}
.bar-chart {
  height: 145px;
  display: flex;
  align-items: flex-end;
  gap: 5px;
  background: repeating-linear-gradient(
    to top,
    var(--line) 0 1px,
    transparent 1px 35px
  );
}
.bar-chart > div {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  min-width: 0;
}
.bar-chart b {
  width: min(90%, 40px);
  border-radius: 6px 6px 0 0;
  background: var(--accent);
  transition: height 0.3s;
}
.bar-chart span {
  font-size: 0.68rem;
  color: var(--muted);
}
.photo-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.photo-pair img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: contain;
  background: var(--tint);
  margin-top: 8px;
  border-radius: 12px;
}
.messages {
  display: grid;
  gap: 12px;
  max-height: 52vh;
  overflow: auto;
}
.bubble {
  background: var(--tint);
  border-radius: 15px;
  padding: 12px 17px;
  max-width: 86%;
  justify-self: start;
}
.bubble.mine {
  background: var(--soft);
  justify-self: end;
}
.bubble small {
  color: var(--muted);
}
.tag {
  color: var(--accent);
  font-weight: 650;
}
.chat {
  max-width: 800px;
  margin: auto;
}
.suggestions .chip {
  font-size: 0.83rem;
}
.ratings .choice span {
  min-width: 42px;
  justify-content: center;
}
@keyframes enter {
  from {
    opacity: 0.6;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 850px) {
  .intro-grid {
    gap: 30px;
  }
  .intro-wrap {
    padding-left: 24px;
    padding-right: 24px;
  }
  .home-grid {
    grid-template-columns: 1.25fr 1fr;
  }
  .hero-copy {
    max-width: 85%;
  }
  .screen {
    padding-inline: 20px;
  }
}
@media (max-width: 670px) {
  .intro-wrap {
    padding: env(safe-area-inset-top) 20px
      calc(26px + env(safe-area-inset-bottom));
  }
  .intro-bar {
    height: 66px;
  }
  .brand {
    font-size: 1.05rem;
    gap: 9px;
  }
  .brand > svg {
    width: 32px;
    height: 32px;
  }
  .privacy-mark {
    font-size: 0.71rem;
  }
  .intro-grid {
    display: flex;
    flex-direction: column;
    gap: 19px;
    padding-top: 16px;
  }
  .studio-panel {
    position: relative;
    top: auto;
    width: 100%;
    height: clamp(135px, 20vh, 182px);
    border-radius: 19px;
  }
  .studio-panel img {
    object-position: 50% 55%;
  }
  .studio-panel:after {
    inset: 0;
    background: linear-gradient(90deg, #3f2229b0, transparent 87%);
  }
  .studio-copy {
    left: 21px;
    bottom: 17px;
    right: 15px;
  }
  .studio-copy p {
    font-size: 0.59rem;
    letter-spacing: 0.09em;
  }
  .studio-line {
    display: none;
  }
  .studio-copy h2 {
    font-size: 43px;
    margin: 5px 0 6px;
    line-height: 1;
  }
  .studio-copy h2 br {
    display: none;
  }
  .studio-copy h2 em:before {
    content: " ";
  }
  .studio-copy > span:last-child {
    font-size: 0.74rem;
  }
  .intro-form {
    max-width: none;
    padding: 0;
  }
  .step-bars {
    margin: 7px 0 17px;
  }
  .intro-icon {
    display: none;
  }
  .intro-title h1 {
    font-size: 2.05rem;
  }
  .intro-title p {
    margin-top: 6px;
    font-size: 0.91rem;
  }
  .intro-title {
    margin-bottom: 17px;
  }
  .intro-form .stack {
    gap: 14px;
  }
  .intro-form input:not([type="checkbox"]):not([type="radio"]) {
    min-height: 44px;
  }
  .intro-foot {
    margin-top: 13px;
  }
  .app-top > div {
    min-height: 61px;
  }
  .avatar {
    width: 37px;
    height: 37px;
  }
  .screen {
    padding: 23px 16px calc(90px + env(safe-area-inset-bottom));
  }
  .home-grid,
  .dash-grid,
  .profile-layout,
  .grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .greeting h1 {
    font-size: 2rem;
  }
  .greeting p {
    font-size: 0.91rem;
  }
  .greeting .round-btn {
    width: 37px;
    height: 37px;
    flex: none;
  }
  .hero-copy {
    padding: 22px;
  }
  .home-grid,
  .stack {
    gap: 15px;
  }
  .daily-check .tile-icon {
    float: right;
    margin: 0 0 8px 10px;
  }
  .bottom-nav button {
    min-height: 61px;
    font-size: 0.67rem;
  }
  .metric-grid {
    gap: 7px;
  }
  .metric {
    padding: 13px 10px;
  }
  .metric strong {
    font-size: 1.23rem;
  }
  .metric span {
    font-size: 0.73rem;
  }
  .achievement-grid {
    grid-template-columns: 1fr 1fr;
  }
  .toast {
    bottom: calc(75px + env(safe-area-inset-bottom));
    width: max-content;
  }
  .card-head {
    flex-wrap: wrap;
  }
  .quick-grid button {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0 10px;
    align-items: center;
  }
  .quick-grid svg {
    grid-row: span 2;
  }
  .quick-grid strong {
    margin: 0;
  }
  .photo-pair {
    gap: 6px;
  }
  .section-head h1 {
    font-size: 2.1rem;
  }
  .studio-panel:has(+ .intro-form [name="goal"]),
  .studio-panel:has(+ .intro-form [name="health"]),
  .studio-panel:has(+ .intro-form [name="days"]),
  .studio-panel:has(+ .intro-form [name="diet"]) {
    display: none;
  }
  .ratings {
    gap: 6px;
  }
  .inline-form .primary {
    flex-shrink: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

.workout-hero > img {
  z-index: 0;
}
.workout-hero:after {
  z-index: 1;
}
.hero-copy {
  position: relative;
  z-index: 2;
}
