:root {
  --py2-bg: #f4f5f1;
  --py2-surface: #ffffff;
  --py2-ink: #111514;
  --py2-muted: #707471;
  --py2-soft: #e9ebe6;
  --py2-line: #d9ddd7;
  --py2-accent: #b8ef2e;
  --py2-accent-strong: #93cf00;
  --py2-blue: #57aee2;
  --py2-warn: #f2ba45;
  --py2-danger: #e97362;
  --py2-radius: 22px;
  --py2-shadow: 0 24px 70px rgba(17, 21, 20, 0.14);
  --py2-font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: #dfe2dc; }
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  background: #dfe2dc;
  color: var(--py2-ink);
  font-family: var(--py2-font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overscroll-behavior-y: none;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }

.py2-shell {
  position: relative;
  width: min(100%, 430px);
  min-height: 100svh;
  margin: 0 auto;
  overflow-x: clip;
  background: var(--py2-bg);
}

.py2-wordmark {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--py2-ink);
  font-size: 21px;
  font-weight: 790;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.py2-brand-mark {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 17px;
  background: var(--py2-ink);
  color: var(--py2-bg);
  font-size: 22px;
  font-weight: 800;
}

.py2-boot {
  min-height: 100svh;
  padding: calc(env(safe-area-inset-top) + 34px) 28px calc(env(safe-area-inset-bottom) + 34px);
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
}
.py2-boot strong { font-size: 25px; letter-spacing: -0.04em; }
.py2-boot small { color: var(--py2-muted); }
.py2-boot-line { width: 150px; height: 3px; margin-top: 14px; overflow: hidden; border-radius: 99px; background: var(--py2-line); }
.py2-boot-line i { display: block; width: 48%; height: 100%; border-radius: inherit; background: var(--py2-accent); animation: py2-load 1s ease-in-out infinite alternate; }
@keyframes py2-load { to { transform: translateX(108%); } }

.py2-onboarding {
  min-height: 100svh;
  padding: calc(env(safe-area-inset-top) + 18px) 24px calc(env(safe-area-inset-bottom) + 128px);
}
.py2-onboarding-head, .py2-app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
}
.py2-onboarding-head { position: sticky; z-index: 12; top: 0; background: rgba(244, 245, 241, .96); }
.py2-text-button {
  min-width: 44px;
  min-height: 44px;
  padding: 8px 0 8px 12px;
  border: 0;
  background: transparent;
  color: var(--py2-muted);
  font-size: 15px;
  font-weight: 650;
  cursor: pointer;
}
.py2-step-progress { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; margin: 18px 0 28px; }
.py2-step-progress > span { height: 3px; overflow: hidden; border-radius: 99px; background: var(--py2-line); }
.py2-step-progress i { display: block; width: 25%; height: 100%; border-radius: inherit; background: var(--py2-accent-strong); transition: width 260ms ease; }
.py2-step-progress b { color: var(--py2-muted); font-size: 14px; font-weight: 570; }

.py2-onboarding-panel { animation: py2-enter 260ms ease both; }
@keyframes py2-enter { from { opacity: 0; transform: translateY(10px); } }
.py2-onboarding-panel > h1 {
  max-width: 360px;
  margin: 0;
  font-size: clamp(34px, 9vw, 44px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}
.py2-lead { margin: 12px 0 20px; color: var(--py2-muted); font-size: 17px; line-height: 1.4; letter-spacing: -0.015em; }

.py2-gender-options { display: grid; gap: 12px; }
.py2-gender-options button {
  position: relative;
  min-height: 96px;
  padding: 15px 52px 15px 15px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 15px;
  border: 1.5px solid var(--py2-line);
  border-radius: 20px;
  outline: 0;
  background: rgba(255, 255, 255, .72);
  color: var(--py2-ink);
  text-align: left;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}
.py2-gender-options button.is-selected { border-color: var(--py2-accent-strong); background: rgba(184, 239, 46, .1); box-shadow: 0 0 0 3px rgba(147, 207, 0, .11); }
.py2-gender-options button:focus-visible { box-shadow: 0 0 0 4px rgba(147, 207, 0, .23); }
.py2-gender-icon { display: grid; width: 58px; height: 58px; place-items: center; border-radius: 50%; background: #f2f7e8; color: var(--py2-accent-strong); }
.py2-gender-icon svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.py2-gender-options strong { display: block; font-size: 19px; line-height: 1.15; letter-spacing: -.025em; }
.py2-gender-options small { display: block; margin-top: 4px; color: var(--py2-muted); font-size: 12px; line-height: 1.3; }

.py2-preference-rail {
  margin: 0 -24px;
  padding: 4px 24px 18px;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-padding-inline: 24px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.py2-preference-rail[hidden] { display: none; }
.py2-preference-rail::-webkit-scrollbar { display: none; }
.py2-preference-card {
  position: relative;
  flex: 0 0 88%;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  scroll-snap-align: center;
  border: 1.5px solid #dde1d7;
  border-radius: 22px;
  outline: 0;
  background: var(--py2-surface);
  box-shadow: 0 10px 28px rgba(60, 39, 87, .06);
  text-align: left;
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}
.py2-preference-card > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  background: #fff;
}
.py2-preference-card > span {
  min-height: 68px;
  padding: 12px 48px 13px 15px;
  display: grid;
  align-content: center;
  gap: 3px;
  border-top: 1px solid #edf0e8;
}
.py2-preference-card > span strong { font-size: 16px; line-height: 1.15; letter-spacing: -.025em; }
.py2-preference-card > span small { color: var(--py2-muted); font-size: 12px; line-height: 1.3; }
.py2-preference-card.is-selected {
  border-color: var(--py2-accent-strong);
  box-shadow: 0 0 0 3px rgba(147, 207, 0, .13), 0 14px 30px rgba(60, 39, 87, .09);
}
.py2-preference-card:focus-visible { box-shadow: 0 0 0 4px rgba(147, 207, 0, .23); }
.py2-card-check {
  position: absolute;
  right: 9px;
  top: 9px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(83, 53, 117, .18);
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 3px 10px rgba(65, 43, 87, .1);
}
.py2-preference-card.is-selected .py2-card-check,
.py2-gender-options button.is-selected .py2-card-check,
.py2-settings-preference-grid button.is-selected .py2-card-check { border-color: var(--py2-accent-strong); background: var(--py2-accent); }
.py2-preference-card.is-selected .py2-card-check::after,
.py2-gender-options button.is-selected .py2-card-check::after,
.py2-settings-preference-grid button.is-selected .py2-card-check::after {
  content: "";
  width: 8px;
  height: 4px;
  margin-top: -2px;
  border-left: 2px solid var(--py2-ink);
  border-bottom: 2px solid var(--py2-ink);
  transform: rotate(-45deg);
}
.py2-influence-panel, .py2-ready-preview {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--py2-line);
  border-radius: var(--py2-radius);
  background: rgba(255, 255, 255, 0.38);
}
.py2-influence-panel h2 { margin: 0 0 12px; font-size: 15px; letter-spacing: -0.02em; }
.py2-influence-panel p { margin: 12px 0 0; color: var(--py2-muted); font-size: 12px; line-height: 1.35; text-align: center; }
.py2-influence-axis { display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: center; }
.py2-influence-axis > span { display: grid; justify-items: center; gap: 5px; font-size: 11px; font-weight: 580; }
.py2-influence-axis svg { width: 22px; height: 22px; fill: none; stroke: var(--py2-ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.py2-influence-axis > i { position: relative; height: 1px; background: var(--py2-line); }
.py2-influence-axis > i::before { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--py2-accent); }

.py2-onboarding-actions {
  position: fixed;
  z-index: 18;
  left: 50%;
  bottom: 0;
  width: min(100%, 430px);
  margin: 0;
  padding: 11px 24px calc(env(safe-area-inset-bottom) + 12px);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: center;
  transform: translateX(-50%);
  border-top: 1px solid rgba(217, 221, 215, .84);
  background: rgba(244, 245, 241, .94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.py2-onboarding-actions [data-onboarding-back][hidden] ~ .py2-primary-button { grid-column: 1 / -1; }
.py2-onboarding-actions small { grid-column: 1 / -1; color: var(--py2-muted); font-size: 12px; text-align: center; }
.py2-primary-button, .py2-secondary-button, .py2-back-button {
  min-height: 54px;
  padding: 0 20px;
  border-radius: 17px;
  border: 0;
  font-size: 16px;
  font-weight: 740;
  cursor: pointer;
}
.py2-primary-button { width: 100%; background: var(--py2-accent); color: var(--py2-ink); }
.py2-primary-button:disabled { cursor: progress; opacity: 0.64; }
.py2-secondary-button { background: var(--py2-soft); color: var(--py2-ink); }
.py2-back-button { background: transparent; color: var(--py2-muted); }

.py2-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.py2-form-grid label, .py2-account-fields label { display: grid; gap: 7px; }
.py2-form-grid label > span, .py2-account-fields label > span { color: var(--py2-muted); font-size: 12px; font-weight: 680; letter-spacing: 0.035em; text-transform: uppercase; }
.py2-form-grid input, .py2-form-grid select, .py2-account-fields input {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid var(--py2-line);
  border-radius: 14px;
  outline: 0;
  background: rgba(255, 255, 255, 0.64);
  color: var(--py2-ink);
  font-size: 16px;
  font-weight: 560;
}
.py2-form-grid input:focus, .py2-form-grid select:focus, .py2-account-fields input:focus { border-color: var(--py2-accent-strong); box-shadow: 0 0 0 3px rgba(147, 207, 0, 0.12); }
.py2-span-2 { grid-column: span 2; }
.py2-injury-list { margin: 22px 0 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.py2-injury-list legend { width: 100%; margin-bottom: 5px; font-size: 14px; font-weight: 680; }
.py2-injury-list legend small { color: var(--py2-muted); font-weight: 500; }
.py2-injury-list label input { position: absolute; opacity: 0; pointer-events: none; }
.py2-injury-list label span { display: block; padding: 10px 13px; border: 1px solid var(--py2-line); border-radius: 12px; background: rgba(255,255,255,.42); font-size: 14px; font-weight: 620; cursor: pointer; }
.py2-injury-list label input:checked + span { border-color: var(--py2-accent-strong); background: rgba(184, 239, 46, 0.15); }
.py2-account-fields { display: grid; gap: 16px; }
.py2-consent { margin: 20px 0; display: grid; grid-template-columns: 22px 1fr; gap: 11px; color: var(--py2-muted); font-size: 13px; line-height: 1.45; }
.py2-consent input { width: 20px; height: 20px; margin: 0; accent-color: var(--py2-accent-strong); }
.py2-consent a { text-underline-offset: 2px; }
.py2-ready-preview { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: center; }
.py2-mini-ring { display: grid; width: 46px; height: 46px; place-items: center; border: 4px solid var(--py2-accent); border-radius: 50%; }
.py2-ready-preview strong { font-size: 15px; }
.py2-ready-preview p { margin: 4px 0 0; color: var(--py2-muted); font-size: 13px; line-height: 1.4; }
.py2-form-message { min-height: 20px; margin: 14px 0 0; color: var(--py2-danger); font-size: 13px; }

.py2-app { min-height: 100svh; padding: calc(env(safe-area-inset-top) + 8px) 22px calc(96px + env(safe-area-inset-bottom)); }
.py2-app-header { min-height: 52px; }
.py2-app-header time { color: var(--py2-muted); font-size: 13px; font-weight: 560; }
.py2-avatar { display: grid; width: 42px; height: 42px; place-items: center; border: 0; border-radius: 50%; background: #e8eae5; color: var(--py2-ink); font-size: 13px; font-weight: 780; cursor: pointer; }
.py2-view { animation: py2-enter 240ms ease both; }
.py2-greeting { margin: 22px 0 18px; }
.py2-greeting h1 { margin: 0; font-size: clamp(32px, 9vw, 42px); line-height: 1; letter-spacing: -0.052em; }
.py2-greeting p { margin: 9px 0 0; color: var(--py2-muted); font-size: 16px; }

.py2-coach-brief {
  min-height: 196px;
  padding: 20px 18px;
  display: grid;
  grid-template-columns: 102px minmax(0, 1fr);
  gap: 17px;
  align-items: center;
  border-radius: 22px;
  background: var(--py2-ink);
  color: var(--py2-bg);
  box-shadow: 0 18px 38px rgba(17, 21, 20, 0.13);
}
.py2-course-ring { position: relative; width: 102px; aspect-ratio: 1; }
.py2-course-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.py2-course-ring circle { fill: none; stroke: #303533; stroke-width: 9; }
.py2-course-ring .is-progress { stroke: var(--py2-accent); stroke-linecap: round; stroke-dasharray: calc(var(--course) * 3.1416) 314.16; animation: py2-ring 750ms cubic-bezier(.2,.8,.2,1) both; }
@keyframes py2-ring { from { stroke-dasharray: 0 314.16; } }
.py2-course-ring > span { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; }
.py2-course-ring strong { font-size: 27px; letter-spacing: -0.04em; }
.py2-course-ring small { margin-top: 2px; color: #c7cbc7; font-size: 12px; }
.py2-brief-copy h2 { margin: 0; font-size: 22px; line-height: 1.08; letter-spacing: -0.04em; }
.py2-brief-copy p { margin: 10px 0 13px; color: #d0d3cf; font-size: 13px; line-height: 1.38; }
.py2-brief-copy button { padding: 0; border: 0; background: transparent; color: var(--py2-accent); font-size: 13px; font-weight: 700; cursor: pointer; }
.py2-brief-copy button::before { content: "i"; width: 16px; height: 16px; margin-right: 6px; display: inline-grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-size: 10px; font-weight: 800; vertical-align: -1px; }

.py2-moves { margin-top: 24px; }
.py2-moves > h2, .py2-week h2 { margin: 0; font-size: 24px; letter-spacing: -0.04em; }
.py2-moves > div { margin-top: 10px; border-top: 1px solid var(--py2-line); }
.py2-move-row { min-height: 108px; padding: 11px 0; display: grid; grid-template-columns: 52px minmax(0, 1fr) 110px; gap: 12px; align-items: center; border-bottom: 1px solid var(--py2-line); }
.py2-move-icon { display: grid; width: 52px; height: 52px; place-items: center; border-radius: 50%; background: rgba(184, 239, 46, 0.11); }
.py2-move-icon svg { width: 28px; height: 28px; fill: none; stroke: var(--py2-ink); stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.py2-move-copy { min-width: 0; }
.py2-move-copy > small { color: var(--py2-muted); font-size: 10px; font-weight: 720; letter-spacing: .11em; }
.py2-move-copy strong { display: block; margin-top: 3px; font-size: 18px; line-height: 1.18; letter-spacing: -0.025em; }
.py2-move-copy p { margin: 4px 0 7px; color: var(--py2-muted); font-size: 12px; line-height: 1.25; }
.py2-move-action { display: grid; justify-items: end; gap: 7px; }
.py2-move-action button { width: 110px; min-height: 33px; padding: 0 8px; border: 0; border-radius: 10px; background: var(--py2-accent); font-size: 10px; font-weight: 740; white-space: nowrap; cursor: pointer; }
.py2-move-action button.is-done { background: var(--py2-soft); color: var(--py2-muted); }
.py2-mini-progress { position: relative; display: grid; width: 40px; height: 40px; place-items: center; border-radius: 50%; background: conic-gradient(var(--py2-progress-color, var(--py2-accent)) calc(var(--value) * 1%), var(--py2-soft) 0); }
.py2-mini-progress::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--py2-bg); }
.py2-mini-progress b { position: relative; font-size: 10px; }
.py2-today-exercises { padding: 18px 0 20px; border-bottom: 1px solid var(--py2-line); }
.py2-today-exercises > header { margin-bottom: 11px; display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.py2-today-exercises > header small, .py2-today-exercises > header strong { display: block; }
.py2-today-exercises > header small { color: var(--py2-accent-strong); font-size: 9px; font-weight: 760; letter-spacing: .1em; text-transform: uppercase; }
.py2-today-exercises > header strong { margin-top: 3px; font-size: 15px; }
.py2-today-exercises > header button { padding: 0; border: 0; background: transparent; color: var(--py2-muted); font-size: 11px; cursor: pointer; }
.py2-today-exercises > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.py2-today-exercises > div > button { min-width: 0; padding: 0 0 9px; overflow: hidden; border: 1px solid var(--py2-line); border-radius: 14px; background: white; color: var(--py2-ink); text-align: left; cursor: pointer; }
.py2-today-exercises > div > button > span { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--py2-soft); }
.py2-today-exercises > div > button > strong { display: block; padding: 8px 8px 0; overflow: hidden; font-size: 10px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.py2-today-exercise-image { width: 100%; height: 100%; display: block; object-fit: cover; }

.py2-week { margin-top: 24px; }
.py2-week > header { display: flex; align-items: center; justify-content: space-between; }
.py2-week header button { border: 0; background: transparent; color: var(--py2-muted); font-size: 14px; cursor: pointer; }
.py2-week header button::after { content: " ›"; font-size: 19px; }
.py2-week-chart { height: 146px; margin-top: 14px; padding: 12px 3px 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; align-items: end; border-bottom: 1px solid var(--py2-line); background-image: linear-gradient(to bottom, transparent 32%, var(--py2-line) 33%, transparent 34%, transparent 65%, var(--py2-line) 66%, transparent 67%); }
.py2-week-bar { position: relative; min-height: 1px; height: calc(var(--score) * .92px); max-height: 102px; border-radius: 8px 8px 2px 2px; background: #a9bf7b; transition: height 500ms ease; }
.py2-week-bar.is-today { background: var(--py2-accent); outline: 1.5px solid var(--py2-accent-strong); outline-offset: 4px; }
.py2-week-bar.is-future { background: #d9dcd7; }
.py2-week-bar small { position: absolute; left: 50%; bottom: -25px; transform: translateX(-50%); color: var(--py2-muted); font-size: 10px; text-transform: uppercase; }
.py2-week-bar.is-today small { color: var(--py2-accent-strong); font-weight: 750; }

.py2-page-heading { margin: 30px 0 32px; }
.py2-page-heading > span { color: var(--py2-muted); font-size: 11px; font-weight: 730; letter-spacing: .1em; text-transform: uppercase; }
.py2-page-heading h1 { max-width: 360px; margin: 8px 0 0; font-size: 39px; line-height: 1.01; letter-spacing: -0.052em; }
.py2-page-heading p { margin: 12px 0 0; color: var(--py2-muted); font-size: 16px; line-height: 1.45; }
.py2-plan-hero { padding: 22px; border-radius: 22px; background: var(--py2-ink); color: white; }
.py2-plan-hero small { color: #aeb4af; font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.py2-plan-hero h2 { margin: 8px 0 0; font-size: 28px; letter-spacing: -0.04em; }
.py2-plan-hero p { margin: 10px 0 0; color: #cfd3cf; line-height: 1.45; }
.py2-phase-track { display: flex; gap: 4px; margin-top: 19px; }
.py2-phase-track i { height: 6px; flex: 1; border-radius: 99px; background: #383d3b; }
.py2-phase-track i.is-active { background: var(--py2-accent); }
.py2-open-section { margin-top: 28px; }
.py2-open-section > h2 { margin: 0 0 9px; font-size: 20px; letter-spacing: -0.03em; }
.py2-open-row { padding: 16px 0; display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; border-bottom: 1px solid var(--py2-line); }
.py2-open-row > b { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 11px; background: var(--py2-soft); font-size: 11px; }
.py2-open-row strong { display: block; font-size: 15px; }
.py2-open-row small { display: block; margin-top: 3px; color: var(--py2-muted); font-size: 12px; }
.py2-open-row > em { color: var(--py2-muted); font-size: 12px; font-style: normal; }
.py2-exercise-archive { margin-top: 28px; }
.py2-exercise-archive details { border-top: 1px solid var(--py2-line); border-bottom: 1px solid var(--py2-line); }
.py2-exercise-archive summary { padding: 16px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; list-style: none; }
.py2-exercise-archive summary::-webkit-details-marker { display: none; }
.py2-exercise-archive summary small, .py2-exercise-archive summary strong { display: block; }
.py2-exercise-archive summary small { color: var(--py2-accent-strong); font-size: 9px; font-weight: 760; letter-spacing: .1em; text-transform: uppercase; }
.py2-exercise-archive summary strong { margin-top: 3px; font-size: 20px; letter-spacing: -.03em; }
.py2-exercise-archive summary em { color: var(--py2-muted); font-size: 12px; font-style: normal; }
.py2-exercise-archive summary em::after { content: " +"; color: var(--py2-accent-strong); font-size: 17px; }
.py2-exercise-archive details[open] summary em::after { content: " −"; }
.py2-exercise-archive details > p { margin: 0 0 14px; color: var(--py2-muted); font-size: 12px; line-height: 1.45; }
.py2-exercise-archive details > div { padding-bottom: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.py2-exercise-archive article { min-width: 0; overflow: hidden; border: 1px solid var(--py2-line); border-radius: 15px; background: white; }
.py2-archive-image { width: 100%; aspect-ratio: 4 / 5; display: block; object-fit: cover; background: var(--py2-soft); }
.py2-exercise-archive article > span { min-height: 62px; padding: 9px 10px 10px; display: grid; align-content: start; gap: 4px; }
.py2-exercise-archive article strong { overflow: hidden; font-size: 12px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.py2-exercise-archive article small { overflow: hidden; color: var(--py2-muted); font-size: 9px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.py2-metric-hero { display: grid; grid-template-columns: 116px 1fr; gap: 18px; align-items: center; padding: 24px 0 28px; border-bottom: 1px solid var(--py2-line); }
.py2-metric-ring { display: grid; width: 112px; height: 112px; place-items: center; border-radius: 50%; background: conic-gradient(var(--py2-accent) calc(var(--value) * 1%), var(--py2-line) 0); }
.py2-metric-ring::before { content: ""; grid-area: 1/1; width: 92px; height: 92px; border-radius: 50%; background: var(--py2-bg); }
.py2-metric-ring strong { position: relative; grid-area: 1/1; font-size: 27px; letter-spacing: -0.04em; }
.py2-metric-hero h2 { margin: 0; font-size: 24px; letter-spacing: -0.035em; }
.py2-metric-hero p { margin: 7px 0 0; color: var(--py2-muted); font-size: 14px; line-height: 1.4; }
.py2-stat-strip { display: grid; grid-template-columns: repeat(3, 1fr); margin: 24px 0; }
.py2-stat-strip span { padding: 0 10px; border-right: 1px solid var(--py2-line); }
.py2-stat-strip span:first-child { padding-left: 0; }
.py2-stat-strip span:last-child { border-right: 0; }
.py2-stat-strip strong { display: block; font-size: 19px; }
.py2-stat-strip small { color: var(--py2-muted); font-size: 10px; }
.py2-settings-list { border-top: 1px solid var(--py2-line); }
.py2-setting { width: 100%; padding: 18px 0; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; border: 0; border-bottom: 1px solid var(--py2-line); background: transparent; text-align: left; text-decoration: none; cursor: pointer; }
.py2-setting strong { display: block; font-size: 15px; }
.py2-setting small { display: block; margin-top: 3px; color: var(--py2-muted); font-size: 12px; }
.py2-setting > span:last-child { color: var(--py2-muted); font-size: 18px; }
.py2-profile-summary { padding: 20px 0 26px; display: flex; align-items: center; gap: 16px; border-bottom: 1px solid var(--py2-line); }
.py2-profile-summary .py2-avatar { width: 58px; height: 58px; font-size: 17px; }
.py2-profile-summary h2 { margin: 0; font-size: 21px; }
.py2-profile-summary p { margin: 4px 0 0; color: var(--py2-muted); font-size: 13px; }

.py2-tabbar {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: 0;
  width: min(100%, 430px);
  min-height: calc(75px + env(safe-area-inset-bottom));
  padding: 9px 12px env(safe-area-inset-bottom);
  display: grid;
  grid-template-columns: 1fr 1fr 62px 1fr 1fr;
  align-items: center;
  transform: translateX(-50%);
  border-top: 1px solid rgba(217, 221, 215, 0.9);
  background: rgba(250, 251, 248, 0.9);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
}
.py2-tabbar > button { min-width: 0; min-height: 54px; padding: 5px 0; display: grid; place-items: center; gap: 3px; border: 0; background: transparent; color: #4d524f; font-size: 10px; font-weight: 610; cursor: pointer; }
.py2-tabbar > button svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.py2-tabbar > button.is-active { color: var(--py2-accent-strong); }
.py2-tabbar > .py2-add { width: 54px; min-height: 54px; margin: -23px auto 0; border-radius: 50%; background: var(--py2-accent); color: var(--py2-ink); box-shadow: 0 9px 22px rgba(147, 207, 0, 0.23); }
.py2-tabbar > .py2-add svg { width: 25px; height: 25px; }

.py2-sheet-layer { position: fixed; z-index: 50; inset: 0; display: grid; justify-items: center; align-items: end; }
.py2-sheet-backdrop { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(10, 13, 12, .42); backdrop-filter: blur(2px); }
.py2-sheet { position: relative; width: min(100%, 430px); max-height: min(88svh, 760px); overflow: auto; padding: 10px 22px calc(env(safe-area-inset-bottom) + 24px); border-radius: 25px 25px 0 0; background: var(--py2-bg); box-shadow: var(--py2-shadow); animation: py2-sheet-up 260ms cubic-bezier(.2,.8,.2,1) both; }
@keyframes py2-sheet-up { from { transform: translateY(100%); } }
.py2-sheet-handle { display: block; width: 42px; height: 5px; margin: 0 auto 18px; border-radius: 99px; background: #c7cbc6; }
.py2-sheet > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.py2-sheet > header small { color: var(--py2-muted); font-size: 10px; font-weight: 730; letter-spacing: .09em; text-transform: uppercase; }
.py2-sheet > header h2 { margin: 4px 0 0; font-size: 29px; line-height: 1.03; letter-spacing: -0.045em; }
.py2-sheet > header button { width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--py2-soft); color: var(--py2-muted); font-size: 25px; cursor: pointer; }
.py2-sheet-content { margin-top: 24px; }
.py2-sheet-intro { margin: 0 0 18px; color: var(--py2-muted); font-size: 15px; line-height: 1.5; }
.py2-install-hero { margin-bottom: 18px; padding: 18px; display: grid; grid-template-columns: 58px 1fr; align-items: center; gap: 14px; border: 1px solid rgba(147, 207, 0, .3); border-radius: 20px; background: linear-gradient(135deg, rgba(184, 239, 46, .17), rgba(255, 255, 255, .68)); }
.py2-install-app-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 16px; background: var(--py2-ink); color: var(--py2-accent); box-shadow: 0 10px 24px rgba(17, 21, 20, .14); font-size: 25px; font-weight: 850; letter-spacing: -.06em; }
.py2-install-hero strong { display: block; font-size: 17px; letter-spacing: -.025em; }
.py2-install-hero small { display: block; margin-top: 4px; color: var(--py2-muted); font-size: 12px; line-height: 1.4; }
.py2-install-warning { margin: 0 0 15px; padding: 13px 14px; border-radius: 14px; background: #fff4db; color: #74530b; font-size: 12px; line-height: 1.45; }
.py2-install-warning strong { display: block; margin-bottom: 2px; color: #513900; }
.py2-install-steps { margin: 0; padding: 0; display: grid; gap: 9px; list-style: none; counter-reset: install-step; }
.py2-install-steps li { min-height: 64px; padding: 12px 13px; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 11px; border: 1px solid var(--py2-line); border-radius: 15px; background: rgba(255, 255, 255, .68); counter-increment: install-step; }
.py2-install-steps li::before { content: counter(install-step); width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--py2-accent); color: var(--py2-ink); font-size: 13px; font-weight: 800; }
.py2-install-steps strong, .py2-install-steps small { display: block; }
.py2-install-steps strong { font-size: 14px; }
.py2-install-steps small { margin-top: 3px; color: var(--py2-muted); font-size: 11px; line-height: 1.35; }
.py2-install-steps svg { width: 27px; height: 27px; fill: none; stroke: #087af1; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.py2-install-menu-icon { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid #cbd0cb; border-radius: 7px; color: var(--py2-ink); font-size: 22px; font-weight: 350; line-height: 1; }
.py2-install-done { margin: 15px 0 0; color: var(--py2-muted); font-size: 11px; line-height: 1.5; text-align: center; }
.py2-install-done strong { color: var(--py2-ink); }
.py2-file-input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.py2-meal-camera { padding: 10px; border: 1px solid var(--py2-line); border-radius: 22px; background: rgba(255, 255, 255, .72); transition: border-color 180ms ease, box-shadow 180ms ease; }
.py2-meal-camera:focus-within { border-color: var(--py2-accent-strong); box-shadow: 0 0 0 3px rgba(147, 207, 0, .12); }
.py2-meal-photo-stage { position: relative; min-height: 180px; padding: 25px; display: grid; align-content: center; justify-items: center; gap: 8px; overflow: hidden; border-radius: 16px; background: radial-gradient(circle at 50% 38%, rgba(184, 239, 46, .18), rgba(233, 235, 230, .68) 62%, rgba(233, 235, 230, .95)); text-align: center; }
.py2-meal-photo-stage > strong { font-size: 18px; letter-spacing: -.025em; }
.py2-meal-photo-stage > small { max-width: 260px; color: var(--py2-muted); font-size: 12px; line-height: 1.45; }
.py2-meal-photo-stage > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.py2-meal-camera-icon { display: grid; width: 54px; height: 54px; place-items: center; border-radius: 18px; background: var(--py2-ink); color: white; box-shadow: 0 10px 25px rgba(17, 21, 20, .15); }
.py2-meal-camera-icon svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.py2-photo-badge { position: absolute; left: 12px; bottom: 12px; padding: 7px 10px; border-radius: 999px; background: rgba(17, 21, 20, .82); color: white; font-size: 10px; font-weight: 720; backdrop-filter: blur(10px); }
.py2-meal-photo-actions { margin-top: 10px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: 8px; }
.py2-meal-photo-actions label { min-width: 0; min-height: 48px; padding: 0 12px; display: flex; align-items: center; justify-content: center; border-radius: 14px; font-size: 13px; text-align: center; }
.py2-meal-camera.is-loading .py2-meal-photo-actions { opacity: .45; pointer-events: none; }
.py2-meal-photo-status { min-height: 0; margin: 0; color: var(--py2-muted); font-size: 12px; line-height: 1.45; }
.py2-meal-photo-status:not(:empty) { padding: 12px 4px 2px; }
.py2-meal-photo-status.is-loading { display: flex; align-items: center; gap: 9px; color: var(--py2-ink); font-weight: 650; }
.py2-meal-photo-status.is-loading > span { width: 15px; height: 15px; flex: 0 0 auto; border: 2px solid var(--py2-line); border-top-color: var(--py2-accent-strong); border-radius: 50%; animation: py2-spin .75s linear infinite; }
.py2-meal-photo-status.is-success { color: #598000; font-weight: 650; }
.py2-meal-photo-status.is-error { color: #b33d31; font-weight: 650; }
@keyframes py2-spin { to { transform: rotate(360deg); } }
.py2-meal-privacy { margin: 12px 0 0; padding: 12px; display: grid; grid-template-columns: 26px 1fr; align-items: start; gap: 9px; border-radius: 15px; background: rgba(184, 239, 46, .1); color: var(--py2-muted); }
.py2-meal-privacy > span { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 50%; background: rgba(147, 207, 0, .19); color: #598000; font-size: 12px; font-weight: 800; }
.py2-meal-privacy p { margin: 0; font-size: 11px; line-height: 1.45; }
.py2-meal-privacy strong { display: block; margin-bottom: 2px; color: var(--py2-ink); }
.py2-manual-meal { margin-top: 16px; border-top: 1px solid var(--py2-line); }
.py2-manual-meal summary { min-height: 52px; display: flex; align-items: center; justify-content: space-between; color: var(--py2-muted); font-size: 13px; font-weight: 680; cursor: pointer; list-style: none; }
.py2-manual-meal summary::-webkit-details-marker { display: none; }
.py2-manual-meal summary::after { content: "+"; font-size: 20px; font-weight: 400; transition: transform 180ms ease; }
.py2-manual-meal[open] summary::after { transform: rotate(45deg); }
.py2-manual-meal-content { padding-bottom: 8px; }
.py2-meal-analysis-card { margin-top: 14px; padding: 17px; border-radius: 20px; background: var(--py2-ink); color: white; box-shadow: 0 17px 42px rgba(17, 21, 20, .18); }
.py2-meal-analysis-card > header { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: start; gap: 10px; }
.py2-meal-analysis-card > header small { display: block; color: #bfe96a; font-size: 9px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.py2-meal-analysis-card > header h3 { margin: 3px 0 0; font-size: 20px; line-height: 1.12; letter-spacing: -.035em; }
.py2-meal-analysis-card > header > b { padding: 6px 8px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #d4d8d4; font-size: 9px; white-space: nowrap; }
.py2-meal-analysis-card.needs-review { box-shadow: inset 0 0 0 1px rgba(255,203,114,.45), 0 17px 42px rgba(17,21,20,.18); }
.py2-meal-analysis-card.needs-review .py2-analysis-check { background: #ffd890; color: #442e00; }
.py2-analysis-check { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 11px; background: var(--py2-accent); color: var(--py2-ink); font-size: 15px; font-weight: 850; }
.py2-meal-macros { margin-top: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.py2-meal-macros > span { min-width: 0; min-height: 66px; padding: 11px; display: grid; align-content: center; gap: 3px; border-radius: 13px; background: rgba(255, 255, 255, .08); }
.py2-meal-macros strong { overflow: hidden; font-size: 18px; line-height: 1; letter-spacing: -.035em; text-overflow: ellipsis; white-space: nowrap; }
.py2-meal-macros small { color: #aeb5b0; font-size: 9px; }
.py2-detected-food { margin-top: 16px; padding-top: 14px; display: grid; gap: 8px; border-top: 1px solid rgba(255, 255, 255, .13); }
.py2-detected-food > small { color: #aeb5b0; font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.py2-detected-food > span { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 11px; }
.py2-detected-food em { color: #aeb5b0; font-style: normal; text-align: right; }
.py2-meal-uncertainty { margin-top: 14px; padding: 12px; border-radius: 13px; background: rgba(255,255,255,.07); }
.py2-meal-uncertainty > strong { display: block; margin-bottom: 6px; color: #ffe1a8; font-size: 10px; }
.py2-meal-uncertainty p { margin: 4px 0 0; color: #d6dbd7; font-size: 10px; line-height: 1.4; }
.py2-meal-uncertainty p.is-question::before { content: "Prüffrage: "; color: #bfe96a; font-weight: 700; }
.py2-meal-coach-note { margin-top: 15px; padding: 13px; border-radius: 14px; background: rgba(184, 239, 46, .12); }
.py2-meal-coach-note strong { color: #c6f35c; font-size: 11px; }
.py2-meal-coach-note p { margin: 5px 0 0; color: #eef1ee; font-size: 12px; line-height: 1.45; }
.py2-meal-analysis-card > footer { margin-top: 14px; padding-top: 13px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; border-top: 1px solid rgba(255, 255, 255, .13); }
.py2-meal-analysis-card > footer span { display: grid; gap: 2px; }
.py2-meal-analysis-card > footer strong { font-size: 12px; }
.py2-meal-analysis-card > footer small { color: #aeb5b0; font-size: 9px; }
.py2-meal-estimate { margin: 12px 0 0; color: #8f9891; font-size: 9px; line-height: 1.4; }
.py2-exercise-list { border-top: 1px solid var(--py2-line); }
.py2-exercise-row { padding: 14px 0; display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; border-bottom: 1px solid var(--py2-line); }
.py2-exercise-row > b { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 10px; background: var(--py2-soft); font-size: 12px; }
.py2-exercise-row strong { display: block; font-size: 14px; }
.py2-exercise-row small { color: var(--py2-muted); font-size: 12px; }
.py2-exercise-row > span:last-child { color: var(--py2-muted); font-size: 12px; }
.py2-workout-progress { margin-bottom: 18px; display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: center; }
.py2-workout-progress > span { width: 46px; height: 46px; border-radius: 50%; background: conic-gradient(var(--py2-accent) calc(var(--value) * 1%), var(--py2-line) 0); box-shadow: inset 0 0 0 9px var(--py2-bg); }
.py2-workout-progress strong, .py2-workout-progress small { display: block; }
.py2-workout-progress strong { font-size: 14px; }
.py2-workout-progress small { margin-top: 3px; color: var(--py2-muted); font-size: 10px; line-height: 1.35; }
.py2-workout-log { display: grid; gap: 20px; }
.py2-workout-log section { border-top: 1px solid var(--py2-line); }
.py2-workout-log section > figure { position: relative; margin: 14px 0 0; overflow: hidden; border-radius: 16px; background: var(--py2-soft); }
.py2-workout-exercise-image { width: 100%; max-height: 300px; aspect-ratio: 4 / 5; display: block; object-fit: cover; object-position: center; }
.py2-workout-log section > figure figcaption { position: absolute; right: 9px; bottom: 9px; left: 9px; padding: 8px 10px; border-radius: 10px; background: rgba(17,21,20,.78); color: #eef1ee; font-size: 9px; line-height: 1.35; backdrop-filter: blur(6px); }
.py2-workout-log section > header { padding: 14px 0 10px; display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center; }
.py2-workout-log section > header > b { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 9px; background: var(--py2-soft); font-size: 11px; }
.py2-workout-log section > header strong, .py2-workout-log section > header small { display: block; }
.py2-workout-log section > header strong { font-size: 14px; }
.py2-workout-log section > header small { color: var(--py2-muted); font-size: 10px; }
.py2-previous-performance { margin: 0 0 10px 44px; padding: 9px 10px; border-radius: 11px; background: #f4f6ef; color: var(--py2-muted); font-size: 10px; line-height: 1.4; }
.py2-previous-performance strong { margin-right: 4px; color: var(--py2-ink); }
.py2-previous-performance span { display: block; margin-top: 3px; }
.py2-previous-performance.is-new { background: #f7f7f4; }
.py2-exercise-guidance { margin: 0 0 10px 44px; border: 1px solid var(--py2-line); border-radius: 12px; background: white; }
.py2-exercise-guidance summary { padding: 10px 12px; color: var(--py2-ink); font-size: 11px; font-weight: 750; cursor: pointer; }
.py2-exercise-guidance p { margin: 0; padding: 0 12px 9px; color: var(--py2-muted); font-size: 10px; line-height: 1.45; }
.py2-exercise-guidance p strong { display: block; margin-bottom: 2px; color: var(--py2-ink); }
.py2-exercise-guidance > small { display: block; padding: 0 12px 11px; color: #8b5f52; font-size: 9px; line-height: 1.4; }
.py2-set-row { min-height: 54px; padding: 7px 0; display: grid; grid-template-columns: 20px repeat(3,minmax(44px,1fr)) 52px 30px; gap: 5px; align-items: end; border-top: 1px solid rgba(217,221,215,.65); }
.py2-set-row > span { align-self: center; color: var(--py2-muted); font-size: 11px; font-weight: 700; }
.py2-set-row label { display: grid; gap: 3px; color: var(--py2-muted); font-size: 8px; text-transform: uppercase; }
.py2-set-row input { width: 100%; min-height: 38px; padding: 7px; border: 1px solid var(--py2-line); border-radius: 9px; background: white; font-size: 13px; }
.py2-set-row input::placeholder { color: #a8ada7; }
.py2-set-row button { min-height: 38px; border: 0; border-radius: 9px; background: var(--py2-soft); font-size: 10px; font-weight: 750; cursor: pointer; }
.py2-set-row button[data-save-set="completed"] { background: var(--py2-accent); }
.py2-set-row.is-complete { opacity: .68; }
.py2-set-row.is-complete button[data-save-set="completed"] { color: #416000; }
.py2-set-row.is-skipped { opacity: .48; }
.py2-rest-timer { position: sticky; bottom: 8px; z-index: 2; margin: 18px 0 0; padding: 12px 14px; display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; border-radius: 14px; background: var(--py2-ink); color: white; box-shadow: 0 10px 28px rgba(0,0,0,.18); }
.py2-rest-timer strong { color: #c6f35c; font-size: 20px; }
.py2-rest-timer button { border: 0; background: transparent; color: #cbd0cc; font-size: 10px; }
.py2-workout-abandon { width: 100%; margin-top: 8px; }
.py2-sheet-cta { width: 100%; margin-top: 20px; }
.py2-meal-option { width: 100%; padding: 17px 0; display: grid; grid-template-columns: 1fr auto; gap: 14px; border: 0; border-bottom: 1px solid var(--py2-line); background: transparent; text-align: left; cursor: pointer; }
.py2-meal-option strong { display: block; font-size: 15px; }
.py2-meal-option small { display: block; margin-top: 3px; color: var(--py2-muted); }
.py2-meal-option b { color: var(--py2-accent-strong); font-size: 13px; }
.py2-log-form { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.py2-log-form label { display: grid; gap: 6px; color: var(--py2-muted); font-size: 11px; font-weight: 650; text-transform: uppercase; }
.py2-log-form label:first-child { grid-column: span 2; }
.py2-log-form input, .py2-log-form select, .py2-log-form textarea, .py2-coach-form textarea { width: 100%; min-height: 48px; padding: 12px; border: 1px solid var(--py2-line); border-radius: 13px; outline: 0; background: var(--py2-surface); color: var(--py2-ink); }
.py2-log-form textarea { min-height: 120px; resize: vertical; }
.py2-log-form button { grid-column: span 2; }
.py2-readiness { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.py2-readiness button { min-height: 74px; border: 1px solid var(--py2-line); border-radius: 15px; background: rgba(255,255,255,.5); font-size: 13px; font-weight: 700; cursor: pointer; }
.py2-readiness button::before { content: ""; display: block; width: 11px; height: 11px; margin: 0 auto 7px; border-radius: 50%; background: var(--dot); }
.py2-readiness button.is-selected { border-color: var(--dot); box-shadow: inset 0 0 0 1px var(--dot); }
.py2-coach-response { padding: 17px; border-radius: 17px; background: var(--py2-ink); color: white; font-size: 14px; line-height: 1.5; }
.py2-coach-form { margin-top: 16px; }
.py2-coach-form textarea { min-height: 96px; resize: vertical; }
.py2-quick-actions { display: grid; gap: 2px; border-top: 1px solid var(--py2-line); }
.py2-quick-actions button { min-height: 60px; padding: 0; display: flex; align-items: center; justify-content: space-between; border: 0; border-bottom: 1px solid var(--py2-line); background: transparent; font-weight: 700; cursor: pointer; }
.py2-quick-actions button::after { content: "›"; color: var(--py2-muted); font-size: 22px; }
.py2-settings-preference-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.py2-settings-preference-grid button { position: relative; min-width: 0; padding: 0; overflow: hidden; border: 1.5px solid var(--py2-line); border-radius: 16px; background: #fff; text-align: left; cursor: pointer; }
.py2-settings-preference-grid button.is-selected { border-color: var(--py2-accent-strong); box-shadow: 0 0 0 2px rgba(147, 207, 0, .12); }
.py2-settings-preference-grid img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.py2-settings-preference-grid button > span { min-height: 54px; padding: 9px 34px 10px 10px; display: grid; align-content: center; gap: 2px; border-top: 1px solid #edf0e8; }
.py2-settings-preference-grid strong { font-size: 11px; line-height: 1.15; }
.py2-settings-preference-grid small { color: var(--py2-muted); font-size: 9px; line-height: 1.2; }
.py2-settings-preference-grid .py2-card-check { right: 7px; top: auto; bottom: 13px; width: 23px; height: 23px; }
.py2-optional-consent { margin-block: 12px; padding: 13px; border: 1px solid var(--py2-line); border-radius: 15px; background: rgba(255,255,255,.55); }
.py2-optional-consent strong, .py2-optional-consent small { display: block; }
.py2-optional-consent strong { color: var(--py2-ink); font-size: 13px; }
.py2-optional-consent small { margin-top: 3px; font-size: 11px; line-height: 1.45; }
.py2-safety-screening { margin: 24px 0 0; padding: 18px; display: grid; gap: 8px; border: 1px solid var(--py2-line); border-radius: 20px; background: rgba(255,255,255,.48); }
.py2-safety-screening legend { padding: 0 7px; font-size: 15px; font-weight: 760; }
.py2-safety-screening legend small { color: var(--py2-muted); font-size: 10px; font-weight: 620; text-transform: uppercase; letter-spacing: .08em; }
.py2-safety-screening > p { margin: 0 0 5px; color: var(--py2-muted); font-size: 12px; line-height: 1.45; }
.py2-safety-screening > label { min-height: 52px; padding: 11px 12px; display: grid; grid-template-columns: 21px 1fr; gap: 10px; align-items: start; border: 1px solid var(--py2-line); border-radius: 14px; background: rgba(255,255,255,.65); cursor: pointer; }
.py2-safety-screening > label:has(input:checked) { border-color: var(--py2-accent-strong); background: rgba(184,239,46,.11); }
.py2-safety-risk-options { display: grid; gap: 8px; }
.py2-safety-risk-options[hidden] { display: none !important; }
.py2-safety-risk-options > label { min-height: 52px; padding: 11px 12px; display: grid; grid-template-columns: 21px 1fr; gap: 10px; align-items: start; border: 1px solid var(--py2-line); border-radius: 14px; background: rgba(255,255,255,.65); cursor: pointer; }
.py2-safety-risk-options > label:has(input:checked) { border-color: var(--py2-accent-strong); background: rgba(184,239,46,.11); }
.py2-safety-reveal { width: 100%; min-height: 52px; display: flex; justify-content: space-between; align-items: center; padding: 0 14px; border: 1px solid var(--py2-line); border-radius: 14px; background: rgba(255,255,255,.65); color: var(--py2-ink); font: inherit; font-size: 13px; font-weight: 760; text-align: left; cursor: pointer; }
.py2-safety-reveal span { color: var(--py2-muted); font-size: 22px; line-height: 1; }
.py2-safety-reveal[hidden] { display: none !important; }
.py2-safety-screening input[type="checkbox"] { width: 19px; height: 19px; margin: 1px 0 0; accent-color: var(--py2-accent-strong); }
.py2-safety-screening strong, .py2-safety-screening small { display: block; }
.py2-safety-screening strong { font-size: 13px; line-height: 1.3; }
.py2-safety-screening small { margin-top: 2px; color: var(--py2-muted); font-size: 10px; line-height: 1.4; }
.py2-safety-screening .py2-safety-none { border-color: rgba(126,172,13,.4); }
.py2-safety-note { padding: 14px; display: grid; gap: 5px; border-radius: 14px; background: #eef5df; color: #273313; }
.py2-safety-note[hidden], .py2-safety-consent[hidden] { display: none !important; }
.py2-safety-note.is-urgent { background: #fff0ed; color: #8f281e; }
.py2-safety-note strong { font-size: 13px; }
.py2-safety-note span { font-size: 11px; line-height: 1.5; }
.py2-safety-note a { color: inherit; font-weight: 800; text-underline-offset: 2px; }
.py2-safety-consent { margin-top: 3px; background: #f6f8f1 !important; }
.py2-safety-state { padding: 20px; display: grid; grid-template-columns: 48px minmax(0,1fr); gap: 14px; border-radius: 22px; background: var(--py2-ink); color: white; }
.py2-safety-state > span { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; background: var(--py2-accent); color: var(--py2-ink); font-size: 24px; font-weight: 900; }
.py2-safety-state > div { min-width: 0; }
.py2-safety-state small, .py2-safety-state strong { display: block; }
.py2-safety-state small { color: #bce936; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.py2-safety-state strong { margin-top: 5px; font-size: 19px; line-height: 1.2; }
.py2-safety-state p { margin: 8px 0 0; color: #cbd0cc; font-size: 12px; line-height: 1.5; }
.py2-safety-state > button { grid-column: 2; justify-self: start; min-height: 40px; padding: 0 14px; border: 0; border-radius: 11px; background: var(--py2-accent); color: var(--py2-ink); font-weight: 780; cursor: pointer; }
.py2-safety-state.is-urgent > span { background: #ff8a7a; }
.py2-safety-state.is-urgent small { color: #ff9c8e; }
.py2-emergency-links { display: flex; flex-wrap: wrap; gap: 8px; }
.py2-emergency-links a { padding: 7px 9px; border: 1px solid rgba(255,255,255,.22); border-radius: 9px; color: white; font-weight: 760; text-decoration: none; }
.py2-plan-safety .py2-primary-button { width: auto; margin-top: 18px; padding-inline: 18px; }
.py2-progress-paused { align-items: start; }
.py2-progress-paused .py2-secondary-button { width: auto; margin-top: 12px; padding-inline: 14px; }
.py2-privacy-form { display: grid; gap: 10px; }
.py2-privacy-form > label { padding: 14px; display: grid; grid-template-columns: 22px 1fr; gap: 11px; border: 1px solid var(--py2-line); border-radius: 15px; background: rgba(255,255,255,.6); }
.py2-privacy-form input[type="checkbox"] { width: 20px; height: 20px; margin: 0; accent-color: var(--py2-accent-strong); }
.py2-privacy-form strong, .py2-privacy-form small { display: block; }
.py2-privacy-form strong { font-size: 13px; }
.py2-privacy-form small { margin-top: 3px; color: var(--py2-muted); font-size: 11px; line-height: 1.4; }
.py2-data-actions { margin-top: 24px; padding-top: 20px; display: grid; gap: 12px; border-top: 1px solid var(--py2-line); }
.py2-data-actions h3 { margin: 0; font-size: 17px; }
.py2-data-actions > a { text-align: center; text-decoration: none; }
.py2-data-actions details { border: 1px solid var(--py2-line); border-radius: 14px; background: rgba(255,255,255,.55); }
.py2-data-actions summary { padding: 15px; font-size: 13px; font-weight: 700; cursor: pointer; }
.py2-data-actions details > form, .py2-data-actions details > p { margin: 0; padding: 0 15px 15px; }
.py2-danger-zone { border-color: rgba(233,115,98,.45) !important; }
.py2-danger-zone > p { color: #96382d; font-size: 12px; line-height: 1.45; }
.py2-danger-button { min-height: 48px; border: 0; border-radius: 13px; background: #c94d40; color: white; font-weight: 750; cursor: pointer; }
.py2-meal-correction { margin-top: 14px; border-top: 1px solid rgba(255,255,255,.13); }
.py2-meal-correction summary { padding: 13px 0 2px; color: #c6f35c; font-size: 11px; font-weight: 700; cursor: pointer; }
.py2-meal-correction form { padding-top: 12px; display: grid; gap: 9px; }
.py2-meal-correction form > div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.py2-meal-correction label { display: grid; gap: 5px; color: #aeb5b0; font-size: 9px; text-transform: uppercase; }
.py2-meal-correction input { width: 100%; min-height: 42px; padding: 10px; border: 1px solid rgba(255,255,255,.16); border-radius: 10px; background: rgba(255,255,255,.08); color: white; }
.py2-meal-correction .py2-secondary-button { background: white; color: var(--py2-ink); }
.py2-meal-context { margin: 12px 0 2px; display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: 8px; }
.py2-meal-context label { display: grid; gap: 5px; color: var(--py2-muted); font-size: 9px; font-weight: 650; }
.py2-meal-context label span { display: flex; justify-content: space-between; gap: 6px; }
.py2-meal-context label small { color: #9aa09a; font-size: 8px; font-weight: 500; }
.py2-meal-context input, .py2-meal-context select { width: 100%; min-height: 42px; padding: 9px 10px; border: 1px solid var(--py2-line); border-radius: 11px; background: white; color: var(--py2-ink); font: inherit; font-size: 11px; }
.py2-text-danger { min-height: 40px; border: 0; background: transparent; color: #ff9e91; font-weight: 700; cursor: pointer; }
.py2-billing-note { display: block; margin-top: 12px; color: var(--py2-muted); font-size: 10px; line-height: 1.45; }
.py2-text-link { display: inline-block; margin-top: 14px; color: var(--py2-ink); font-size: 12px; font-weight: 760; text-underline-offset: 3px; }
.py2-support-emergency { margin: 0 0 16px; padding: 14px; display: grid; gap: 4px; border-radius: 14px; background: #fff0ed; color: #84281e; }
.py2-support-emergency strong { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; }
.py2-support-emergency span { font-size: 11px; line-height: 1.5; }
.py2-support-emergency a { color: inherit; font-weight: 800; }
.py2-support-history { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--py2-line); }
.py2-support-history h3 { margin: 0 0 12px; font-size: 17px; }
.py2-support-ticket { padding: 13px 0; border-bottom: 1px solid var(--py2-line); }
.py2-support-ticket header { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.py2-support-ticket header strong { font-size: 11px; }
.py2-support-ticket header span { padding: 4px 7px; border-radius: 999px; background: #eef2e8; color: #556052; font-size: 9px; font-weight: 760; text-transform: uppercase; }
.py2-support-ticket p { margin: 7px 0 4px; font-size: 12px; line-height: 1.45; }
.py2-support-ticket small, .py2-empty-support { color: var(--py2-muted); font-size: 10px; line-height: 1.45; }

.py2-health-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}
.py2-health-stats span {
  display: grid;
  gap: 3px;
  padding: 16px 8px;
  border: 1px solid var(--py2-line);
  border-radius: 16px;
  background: var(--py2-surface);
  text-align: center;
}
.py2-health-stats strong { font-size: 1.15rem; }
.py2-health-stats small,
.py2-health-provider-list small { color: var(--py2-muted); }
.py2-health-provider-list { display: grid; gap: 10px; margin: 18px 0; }
.py2-health-provider-list button {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 1px 12px;
  align-items: center;
  min-height: 76px;
  padding: 12px 16px;
  border: 1px solid var(--py2-line);
  border-radius: 18px;
  background: var(--py2-surface);
  color: var(--py2-ink);
  text-align: left;
}
.py2-health-provider-list button > span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: rgba(184, 239, 46, .22);
  color: var(--py2-ink);
  font-weight: 900;
}
.py2-health-delete {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin-top: 14px;
  color: var(--py2-muted);
  font-size: .85rem;
}
:where(button, a, input, select, textarea, summary):focus-visible { outline: 3px solid rgba(96,135,0,.38); outline-offset: 2px; }

.py2-toast { position: fixed; z-index: 70; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom)); max-width: min(calc(100% - 36px), 394px); padding: 12px 16px; transform: translateX(-50%); border-radius: 13px; background: var(--py2-ink); color: white; box-shadow: 0 12px 34px rgba(0,0,0,.2); font-size: 13px; font-weight: 650; }

@media (hover: hover) {
  .py2-primary-button:hover, .py2-move-copy button:hover { background: #c3f64a; }
  .py2-gender-options button:hover { transform: translateY(-2px); border-color: #bba8cf; }
  .py2-preference-card:hover { transform: translateY(-2px); border-color: #bba8cf; }
  .py2-tabbar > button:not(.py2-add):hover { color: var(--py2-ink); }
}

@media (min-width: 680px) {
  .py2-shell { box-shadow: var(--py2-shadow); }
  body { padding: 22px 0; }
  .py2-shell { min-height: calc(100svh - 44px); border-radius: 30px; }
  .py2-tabbar { bottom: 22px; border-radius: 0 0 30px 30px; }
  .py2-sheet { margin-bottom: 22px; border-radius: 25px; }
}

@media (max-width: 374px) {
  .py2-onboarding, .py2-app { padding-left: 17px; padding-right: 17px; }
  .py2-preference-rail { margin-inline: -17px; padding-inline: 17px; scroll-padding-inline: 17px; }
  .py2-preference-card { flex-basis: 89%; }
  .py2-coach-brief { grid-template-columns: 98px minmax(0,1fr); gap: 14px; padding: 20px 16px; }
  .py2-course-ring { width: 98px; }
  .py2-brief-copy h2 { font-size: 21px; }
  .py2-brief-copy p { font-size: 13px; }
  .py2-move-row { grid-template-columns: 48px minmax(0,1fr) 96px; gap: 9px; }
  .py2-move-icon { width: 50px; height: 50px; }
  .py2-move-action button { width: 96px; font-size: 9px; }
  .py2-form-grid { grid-template-columns: 1fr; }
  .py2-span-2 { grid-column: span 1; }
  .py2-meal-context { grid-template-columns: 1fr; }
}

.py2-coach-chat { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--py2-line); }
.py2-coach-chat > header { display: flex; align-items: center; gap: 11px; margin-bottom: 13px; }
.py2-coach-chat > header > span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--py2-ink); color: var(--py2-accent); font-size: 11px; font-weight: 900; }
.py2-coach-chat > header div { display: grid; gap: 2px; }
.py2-coach-chat > header small { color: var(--py2-muted); line-height: 1.35; }
.py2-coach-history { display: grid; gap: 9px; max-height: 270px; overflow-y: auto; margin-bottom: 11px; }
.py2-coach-message { max-width: 88%; padding: 10px 12px; border-radius: 15px 15px 15px 4px; background: var(--py2-soft); }
.py2-coach-message.is-user { justify-self: end; border-radius: 15px 15px 4px 15px; background: rgba(145, 201, 0, .16); }
.py2-coach-message small { color: var(--py2-muted); font-size: 10px; font-weight: 800; }
.py2-coach-message p { margin: 3px 0 0; line-height: 1.5; }
.py2-coach-chat form { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.py2-coach-chat textarea { min-height: 72px; resize: vertical; padding: 11px 12px; border: 1px solid var(--py2-line); border-radius: 14px; background: #fff; color: var(--py2-ink); font: inherit; }
.py2-coach-chat form button { align-self: stretch; min-width: 76px; }
.py2-coach-chat .py2-form-message { grid-column: 1 / -1; margin: 0; }
.py2-coach-disclaimer { display: block; margin-top: 10px; color: var(--py2-muted); line-height: 1.45; }
.py2-language-options { display: grid; gap: 9px; }
.py2-language-options button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 66px; padding: 12px 14px; border: 1px solid var(--py2-line); border-radius: 16px; background: #fff; color: var(--py2-ink); text-align: left; }
.py2-language-options button.is-selected { border-color: var(--py2-accent); box-shadow: 0 0 0 2px rgba(145, 201, 0, .14); }
.py2-language-options button span { display: grid; gap: 3px; }
.py2-language-options button small { color: var(--py2-muted); }
.py2-language-options button i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--py2-soft); font-style: normal; font-weight: 850; }

.py2-lila-onboarding { margin: 20px 0 8px; padding: 12px; display: grid; grid-template-columns: 48px 1fr; align-items: center; gap: 12px; border: 1px solid #d8d0e6; border-radius: 17px; background: linear-gradient(110deg, rgba(238,233,248,.92), rgba(255,255,255,.68)); }
.py2-lila-onboarding img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; box-shadow: 0 6px 16px rgba(17,21,20,.14); }
.py2-lila-onboarding p { margin: 0; }
.py2-lila-onboarding strong, .py2-lila-onboarding span { display: block; }
.py2-lila-onboarding strong { color: #673ab7; font-size: 12px; }
.py2-lila-onboarding span { margin-top: 2px; color: var(--py2-muted); font-size: 10px; line-height: 1.4; }
.py2-lila-byline { margin-bottom: 11px; display: flex; align-items: center; gap: 9px; }
.py2-lila-byline img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; box-shadow: 0 5px 14px rgba(17,21,20,.13); }
.py2-lila-byline strong, .py2-lila-byline small { display: block; }
.py2-lila-byline strong { color: #673ab7; font-size: 12px; }
.py2-lila-byline small { margin-top: 1px; color: var(--py2-muted); font-size: 9px; }
.py2-lila-checkin { margin-bottom: 18px; padding: 13px; display: grid; grid-template-columns: 48px 1fr; align-items: center; gap: 12px; border-radius: 17px; background: #eee9f8; }
.py2-lila-checkin img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.py2-lila-checkin p { margin: 0; }
.py2-lila-checkin strong, .py2-lila-checkin span { display: block; }
.py2-lila-checkin strong { color: #3f2672; font-size: 13px; }
.py2-lila-checkin span { margin-top: 3px; color: #665d70; font-size: 10px; line-height: 1.4; }
.py2-coach-chat > header > img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; box-shadow: 0 5px 14px rgba(17,21,20,.14); }

@media (max-width: 520px) {
  .py2-coach-chat form { grid-template-columns: 1fr; }
  .py2-coach-chat form button { min-height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
}
