:root {
  --py-bg: #f4f1ea;
  --py-ink: #151719;
  --py-muted: #66706b;
  --py-panel: #fffaf1;
  --py-panel-2: #eef7f3;
  --py-line: #ded8c9;
  --py-teal: #0f766e;
  --py-mint: #8ed8c2;
  --py-coral: #ef755f;
  --py-gold: #d8a631;
  --py-charcoal: #1f2933;
  --py-shadow: 0 22px 70px rgba(31, 41, 51, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.py-page {
  margin: 0;
  background: var(--py-bg);
  color: var(--py-ink);
  font-family: Inter, "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

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

.py-container {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.py-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(21, 23, 25, 0.08);
  background: rgba(244, 241, 234, 0.9);
  backdrop-filter: blur(18px);
}

.py-nav {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.py-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.py-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  background: var(--py-charcoal);
  color: var(--py-mint);
}

.py-links {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--py-muted);
  font-size: 0.94rem;
  font-weight: 800;
}

.py-language-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--py-muted);
}

.py-language-switch select {
  border: 1px solid var(--py-line);
  border-radius: 8px;
  background: #fff;
  color: var(--py-ink);
  font-weight: 800;
  padding: 8px 10px;
}

.py-links a {
  border-radius: 8px;
  padding: 9px 11px;
}

.py-links a:hover {
  background: rgba(31, 41, 51, 0.07);
  color: var(--py-ink);
}

.py-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 11px 16px;
  cursor: pointer;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
  overflow-wrap: anywhere;
}

.py-button:hover {
  transform: translateY(-1px);
}

.py-button-primary {
  background: var(--py-teal);
  color: #fff;
  box-shadow: 0 14px 34px rgba(15, 118, 110, 0.2);
}

.py-button-primary:hover {
  background: #0b655f;
}

.py-button-secondary {
  border-color: var(--py-line);
  background: rgba(255, 250, 241, 0.78);
  color: var(--py-ink);
}

.py-button-ghost {
  border-color: var(--py-line);
  background: transparent;
  color: var(--py-ink);
}

.py-button-ghost:hover {
  background: rgba(255, 255, 255, 0.7);
}

.py-button-coral {
  background: var(--py-coral);
  color: #fff;
}

.py-small-button {
  min-height: 36px;
  padding: 7px 11px;
  font-size: 0.88rem;
}

.py-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: 48px;
  align-items: center;
  padding: 82px 0 56px;
}

.py-eyebrow {
  margin: 0 0 16px;
  color: var(--py-teal);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.py-title {
  max-width: 780px;
  margin: 0;
  font-size: clamp(3rem, 7vw, 6.4rem);
  font-weight: 950;
  line-height: 0.94;
}

.py-title span {
  color: var(--py-teal);
}

.py-subtitle {
  max-width: 660px;
  margin: 24px 0 0;
  color: var(--py-muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.py-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.py-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  color: var(--py-muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.py-proof span {
  border: 1px solid var(--py-line);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(255, 250, 241, 0.68);
}

.py-coach-preview {
  border: 1px solid rgba(31, 41, 51, 0.08);
  border-radius: 28px;
  background: var(--py-panel);
  box-shadow: var(--py-shadow);
  padding: 18px;
}

.py-demo-comparison {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #101820;
}

.py-demo-comparison img {
  display: block;
  width: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: center;
}

.py-demo-overlay {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  display: grid;
  gap: 4px;
  border-radius: 8px;
  background: rgba(16, 24, 32, 0.86);
  color: #fff;
  padding: 12px;
}

.py-demo-overlay span {
  color: #cdd8d2;
  font-size: 0.92rem;
}

.py-phone-screen {
  min-height: 500px;
  border-radius: 22px;
  background: #101820;
  color: #f8fbf7;
  padding: 18px;
  overflow: hidden;
}

.py-phone-top,
.py-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.py-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 18px 0;
}

.py-metric {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  padding: 12px;
}

.py-metric span {
  display: block;
  color: #b8c5c1;
  font-size: 0.8rem;
}

.py-metric strong {
  display: block;
  margin-top: 4px;
  font-size: 1.15rem;
}

.py-plan-line {
  margin-top: 12px;
  border-radius: 8px;
  background: #eaf7ee;
  color: #163126;
  padding: 12px;
  font-weight: 800;
}

.py-figure-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 18px;
}

.py-figure-card,
.py-reference-card {
  position: relative;
  min-height: 150px;
  overflow: hidden;
  border-radius: 10px;
  background: linear-gradient(160deg, #e4d7c4, #c7eadb 60%, #f5c4b5);
}

.py-figure-card::before,
.py-reference-card::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: 54px;
  height: 90px;
  border-radius: 28px 28px 16px 16px;
  background: #27313b;
  transform: translateX(-50%);
}

.py-figure-card::after,
.py-reference-card::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 110px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #27313b;
  transform: translateX(-50%);
}

.py-reference-card.slim::before {
  width: 44px;
}

.py-reference-card.strong::before {
  width: 66px;
}

.py-section {
  padding: 64px 0;
}

.py-section-head {
  max-width: 720px;
  margin-bottom: 24px;
}

.py-section-head.center {
  margin-inline: auto;
  text-align: center;
}

.py-section-head h2,
.py-app-title,
.py-panel h1,
.py-panel h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

.py-section-head p {
  color: var(--py-muted);
}

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

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

.py-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.py-card,
.py-panel,
.py-result-panel {
  border: 1px solid var(--py-line);
  border-radius: 8px;
  background: var(--py-panel);
  box-shadow: 0 10px 28px rgba(31, 41, 51, 0.06);
  padding: 22px;
}

.py-card h3,
.py-result-panel h3 {
  margin: 0 0 8px;
}

.py-card p,
.py-result-panel p {
  margin: 0;
  color: var(--py-muted);
}

.py-feature-strip {
  background: #e6eee6;
}

.py-before-after-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.py-before-after-card {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(31, 41, 51, 0.12);
  border-radius: 8px;
  background: var(--py-panel);
  box-shadow: var(--py-shadow);
  padding: 14px;
}

.py-before-after-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  background: #eadbc8;
}

.py-before-after-card h3 {
  margin: 0;
}

.py-before-after-card p {
  margin: 0;
  color: var(--py-muted);
}

.py-reference-banner {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(31, 41, 51, 0.12);
  border-radius: 8px;
  box-shadow: var(--py-shadow);
  margin: 6px 0 18px;
  background: #eadbc8;
}

.py-stage-showcase {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 0 0 18px;
}

.py-stage-showcase img,
.py-stage-strip {
  display: block;
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(31, 41, 51, 0.12);
  border-radius: 8px;
  background: #eadbc8;
}

.py-stage-strip {
  margin: 14px 0 12px;
  max-height: 230px;
}

.py-static-target-gallery {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 18px;
}

.py-static-target-gallery img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  border: 1px solid rgba(31, 41, 51, 0.12);
  border-radius: 8px;
  background: #eadbc8;
}

.py-future-image {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  object-position: center;
  border: 1px solid var(--py-line);
  border-radius: 8px;
  background: #eadbc8;
  margin: 12px 0;
}

.py-body-fat-variant-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0;
}

.py-body-fat-variant {
  margin: 0;
}

.py-body-fat-variant img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center;
  border: 1px solid var(--py-line);
  border-radius: 8px;
  background: #eadbc8;
}

.py-body-fat-variant figcaption {
  margin-top: 6px;
  color: var(--py-muted);
  font-size: 0.86rem;
  line-height: 1.25;
}

.py-alignment {
  border: 1px solid var(--py-line);
  border-radius: 8px;
  background: #f7fbf7;
  padding: 12px;
  margin: 12px 0;
}

.py-panel-accent .py-alignment {
  background: rgba(248, 251, 247, 0.08);
  border-color: rgba(248, 251, 247, 0.18);
}

.py-alignment p {
  margin: 6px 0 0;
  color: var(--py-muted);
}

.py-panel-accent .py-alignment p {
  color: #c7d1cc;
}

.py-form {
  display: grid;
  gap: 14px;
}

.py-form label {
  display: grid;
  gap: 7px;
  color: var(--py-muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.py-form input,
.py-form select,
.py-form textarea {
  width: 100%;
  border: 1px solid var(--py-line);
  border-radius: 8px;
  background: #fff;
  color: var(--py-ink);
  padding: 12px;
  outline: none;
}

.py-form textarea {
  min-height: 86px;
  resize: vertical;
}

.py-form input:focus,
.py-form select:focus,
.py-form textarea:focus {
  border-color: var(--py-teal);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14);
}

.py-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.py-account-login {
  margin: 18px 0 24px;
  border: 1px solid var(--py-line);
  border-radius: 8px;
  background: var(--py-panel-2);
  padding: 14px;
}

html[data-perfectyou-app] [data-profile-form] label:has(input[name="accountEmail"]),
html[data-perfectyou-app] [data-profile-form] label:has(input[name="accountPassword"]) {
  display: none !important;
}

.py-account-main {
  display: grid;
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  gap: 22px;
  padding: 46px 0 82px;
}

.py-account-hero {
  max-width: 780px;
}

.py-account-hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 950;
  line-height: 0.98;
}

.py-account-hero p:not(.py-eyebrow) {
  max-width: 660px;
  margin: 18px 0 0;
  color: var(--py-muted);
  font-size: 1.08rem;
}

.py-account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.py-account-card {
  border: 1px solid var(--py-line);
  border-radius: 8px;
  background: var(--py-panel);
  box-shadow: var(--py-shadow);
  padding: 24px;
}

.py-account-card h2 {
  margin: -4px 0 4px;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  line-height: 1.05;
}

.py-account-card-accent {
  background: var(--py-panel-2);
}

.py-account-card .py-check a {
  color: var(--py-teal);
  font-weight: 950;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.py-check {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: flex-start;
  gap: 10px !important;
}

.py-check input {
  width: auto;
  margin-top: 4px;
}

.py-message {
  min-height: 22px;
  margin: 0;
  color: var(--py-muted);
  font-size: 0.92rem;
}

.py-message.ok {
  color: var(--py-teal);
}

.py-message.error {
  color: #b42318;
}

.py-app-shell {
  background: #edf2ec;
}

.py-app-main {
  display: grid;
  width: min(960px, calc(100% - 24px));
  margin: 0 auto;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 18px 0 98px;
}

.py-panel {
  align-self: start;
}

.py-panel-accent {
  background: #101820;
  color: #f8fbf7;
}

.py-panel-accent .py-eyebrow {
  color: var(--py-mint);
}

.py-panel-accent p {
  color: #c7d1cc;
}

.py-app-copy {
  color: var(--py-muted);
  font-size: 1rem;
}

.py-reference-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.py-target-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 14px;
}

.py-reference-option {
  display: grid;
  grid-template-columns: minmax(132px, 180px) minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  cursor: pointer;
  border: 1px solid rgba(248, 251, 247, 0.18);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.py-reference-option input {
  position: absolute;
  opacity: 0;
}

.py-reference-option span {
  color: inherit;
  font-size: 0.94rem;
  font-weight: 800;
  text-align: left;
  overflow-wrap: anywhere;
}

.py-reference-option img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  border: 1px solid rgba(248, 251, 247, 0.18);
  border-radius: 8px;
  background: #eadbc8;
  transition: transform 0.16s ease, outline-color 0.16s ease;
}

.py-reference-option input:checked + .py-reference-card,
.py-reference-option input:checked + img {
  outline: 3px solid var(--py-teal);
}

.py-reference-option:has(input:checked) {
  border-color: var(--py-teal);
  box-shadow: 0 0 0 1px var(--py-teal);
}

.py-fieldset {
  display: grid;
  gap: 10px;
  border: 1px solid var(--py-line);
  border-radius: 8px;
  padding: 14px;
}

.py-fieldset legend {
  padding: 0 6px;
  color: var(--py-ink);
  font-weight: 900;
}

.py-fieldset p {
  margin: 0;
  color: var(--py-muted);
  font-size: 0.92rem;
}

.py-chip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.py-bodyforming-block[hidden] {
  display: none;
}

.py-bodyforming-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.py-bodyforming-option {
  position: relative;
  display: grid;
  gap: 6px;
  min-height: 120px;
  border: 1px solid var(--py-line);
  border-radius: 8px;
  background: #fff;
  padding: 14px 14px 14px 44px;
  cursor: pointer;
}

.py-bodyforming-option input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  inset: 0;
}

.py-bodyforming-option strong {
  color: var(--py-ink);
  font-size: 0.96rem;
  line-height: 1.2;
}

.py-bodyforming-option small {
  color: var(--py-muted);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.4;
}

.py-bodyforming-option.is-selected,
.py-bodyforming-option:has(input[type="checkbox"]:checked) {
  border-color: var(--py-teal);
  background: #f3fff9;
  box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.14);
}

.py-bodyforming-order {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  background: var(--py-teal);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 900;
}

.py-bodyforming-message {
  min-height: 20px;
  margin: 0;
}

.py-chip-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--py-line);
  border-radius: 8px;
  padding: 9px 10px;
  background: #fff;
  font-weight: 800;
}

.py-body-region-grid,
.py-body-region-list {
  display: grid;
  gap: 10px;
}

.py-muscle-selector {
  display: grid;
  grid-template-columns: minmax(300px, 0.86fr) minmax(0, 1.14fr);
  gap: 16px;
  align-items: start;
}

.py-muscle-stage {
  position: sticky;
  top: 88px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(248, 251, 247, 0.96), rgba(234, 244, 239, 0.96)),
    #f8fbf7;
  padding: 12px;
}

.py-muscle-panel {
  display: grid;
  gap: 10px;
}

.py-muscle-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.py-muscle-panel-head strong {
  color: var(--py-ink);
  font-size: 1rem;
}

.py-muscle-panel-head .py-button {
  white-space: nowrap;
  overflow-wrap: normal;
}

.py-muscle-subtitle {
  margin: -4px 0 0;
  color: var(--py-muted);
  font-size: 0.9rem;
}

.py-muscle-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.py-muscle-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--py-muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.py-muscle-legend i {
  display: inline-block;
  width: 18px;
  height: 12px;
  border: 1px solid rgba(63, 78, 104, 0.34);
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.08);
}

.py-muscle-legend i.is-selected {
  border-color: #bf4e3e;
  background: rgba(239, 117, 95, 0.86);
}

.py-body-generator-callout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  overflow: hidden;
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: 8px;
  background:
    radial-gradient(circle at 86% 18%, rgba(142, 216, 194, 0.38), transparent 32%),
    linear-gradient(135deg, rgba(255, 250, 241, 0.98), rgba(238, 247, 243, 0.94));
  padding: 18px;
}

.py-body-generator-callout h2 {
  margin: 6px 0 6px;
  color: var(--py-ink);
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.1;
}

.py-body-generator-callout p {
  max-width: 720px;
  margin: 0;
  color: var(--py-muted);
  font-size: 0.96rem;
  font-weight: 700;
}

.py-generator-kicker {
  display: inline-flex;
  width: fit-content;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--py-teal);
  padding: 4px 9px;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.py-generator-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.py-generator-actions span {
  color: var(--py-muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.py-generator-preview {
  display: grid;
  min-height: 230px;
  place-items: center;
  border: 1px solid rgba(15, 118, 110, 0.13);
  border-radius: 8px;
  background: radial-gradient(circle at 50% 30%, #fff, #edf6f2 62%, #dde9e3);
}

.py-generator-preview span {
  width: 92px;
  height: 168px;
  border-radius: 999px 999px 30px 30px;
  background:
    radial-gradient(circle at 50% 14%, #edf4f1 0 18%, transparent 19%),
    linear-gradient(90deg, transparent 0 18%, #d2ded8 19% 29%, transparent 30% 70%, #d2ded8 71% 81%, transparent 82%),
    linear-gradient(180deg, #f7faf8 0 18%, #dfe8e3 19% 57%, #cddbd4 58% 100%);
  box-shadow: inset 0 0 0 2px rgba(63, 78, 104, 0.14), 0 18px 42px rgba(31, 41, 51, 0.12);
}

@media (min-width: 760px) {
  .py-body-generator-callout {
    grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.55fr);
    align-items: center;
  }
}

.py-muscle-message {
  min-height: 20px;
  margin: 0;
  color: #b42318;
  font-size: 0.88rem;
  font-weight: 800;
}

.py-muscle-chip-row {
  display: flex;
  min-height: 36px;
  flex-wrap: wrap;
  gap: 8px;
}

.py-muscle-chip,
.py-muscle-empty {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.84rem;
  font-weight: 900;
}

.py-muscle-chip {
  border: 1px solid rgba(15, 118, 110, 0.28);
  background: #e8f6f1;
  color: #105c55;
  cursor: pointer;
}

.py-muscle-chip:hover,
.py-muscle-chip:focus-visible {
  border-color: var(--py-teal);
  background: #dcf2eb;
  outline: none;
}

.py-muscle-empty {
  border: 1px dashed var(--py-line);
  color: var(--py-muted);
  background: rgba(255, 255, 255, 0.52);
}

.py-muscle-view {
  position: relative;
  display: grid;
  min-height: 520px;
  place-items: center;
  border: 1px solid rgba(83, 101, 95, 0.18);
  border-radius: 8px;
  background: radial-gradient(circle at 50% 38%, #ffffff 0, #eff7f3 58%, #e6eee9 100%);
  overflow: hidden;
}

.py-muscle-view-label {
  position: absolute;
  right: 10px;
  bottom: 10px;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--py-muted);
  padding: 4px 8px;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.py-body-region-card {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(180px, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid var(--py-line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  cursor: pointer;
}

.py-body-region-card:has(.py-muscle-example) {
  grid-template-columns: 96px minmax(0, 0.7fr) minmax(170px, 1fr);
}

.py-body-region-card.py-muscle-example-missing {
  grid-template-columns: minmax(0, 0.78fr) minmax(180px, 1fr);
}

.py-body-region-card.is-selected {
  border-color: var(--py-teal);
  background: #f3fff9;
  box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.16);
}

.py-body-region-card input[type="checkbox"] {
  position: absolute;
  opacity: 0;
}

.py-muscle-example {
  display: block;
  width: 96px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid rgba(83, 101, 95, 0.18);
  border-radius: 8px;
  background: linear-gradient(180deg, #fbfcfb 0%, #eef4f2 100%);
}

.py-muscle-example img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.py-body-region-card.is-selected .py-muscle-example {
  border-color: rgba(15, 118, 110, 0.42);
  box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.12);
}

.py-body-region-card > span:not(.py-muscle-example) {
  min-width: 0;
}

.py-region-figure {
  display: grid;
  width: 120px;
  height: 176px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(180deg, #fbfcfb 0%, #eef4f2 100%);
  box-shadow: inset 0 0 0 1px rgba(63, 78, 104, 0.08);
}

.py-region-figure-large {
  width: min(100%, 230px);
  height: auto;
  background: transparent;
  box-shadow: none;
}

.py-region-figure svg {
  width: 110px;
  height: 168px;
}

.py-region-figure-large svg {
  width: min(100%, 220px);
  height: auto;
}

.py-muscle-map {
  display: block;
  overflow: visible;
}

.py-muscle-map-large {
  transform: scale(1.18);
  transform-origin: center;
}

.py-muscle-skin {
  fill: #dce7e2;
  stroke: #53655f;
  stroke-width: 1.5;
  stroke-linejoin: round;
}

.py-muscle-silhouette {
  fill: #eef5f1;
  stroke: #8fa29b;
  stroke-width: 1.1;
  stroke-linejoin: round;
}

.py-muscle-base {
  fill: #bfccd9;
  stroke: #4f6177;
  stroke-width: 0.95;
  opacity: 0.98;
  stroke-linejoin: round;
}

.py-muscle-layer .py-muscle-base {
  opacity: 0.42;
}

.py-muscle-interactive-layer .py-muscle-base {
  fill: #c8d4df;
  opacity: 0.96;
  transition: fill 140ms ease, opacity 140ms ease, stroke 140ms ease, filter 140ms ease;
}

.py-muscle-region {
  cursor: pointer;
}

.py-muscle-region:hover .py-muscle-base,
.py-muscle-region:focus .py-muscle-base {
  fill: #9bd8ca;
  stroke: #0f766e;
  filter: drop-shadow(0 2px 3px rgba(15, 118, 110, 0.16));
}

.py-muscle-region.is-selected .py-muscle-base {
  fill: var(--py-coral);
  stroke: #9e2f22;
  filter: drop-shadow(0 3px 4px rgba(142, 36, 51, 0.18));
}

.py-muscle-region:focus {
  outline: none;
}

.py-muscle-fiber,
.py-muscle-line {
  fill: none;
  stroke: #43536a;
  stroke-width: 0.72;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.58;
}

.py-muscle-hit {
  fill: #e9284f;
  stroke: #8e2433;
  stroke-width: 1.45;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 2px rgba(142, 36, 51, 0.14));
}

.py-muscle-hit.secondary {
  fill: #f06f42;
  opacity: 0.92;
}

.py-muscle-hotspot {
  position: absolute;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.py-muscle-hotspot::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: inherit;
  background: rgba(239, 117, 95, 0);
  outline: 0 solid rgba(239, 117, 95, 0);
  transition: background 160ms ease, outline-width 160ms ease, outline-color 160ms ease;
}

.py-muscle-hotspot:hover::after,
.py-muscle-hotspot:focus-visible::after,
.py-muscle-hotspot.is-active::after {
  background: rgba(239, 117, 95, 0.1);
  outline: 2px solid rgba(239, 117, 95, 0.34);
}

.py-muscle-hotspot:focus-visible {
  outline: none;
}

.py-muscle-hotspot.shoulders { left: 50%; top: 24%; width: 55%; height: 13%; }
.py-muscle-hotspot.chest { left: 50%; top: 32%; width: 42%; height: 13%; }
.py-muscle-hotspot.arms-left { left: 26%; top: 43%; width: 18%; height: 31%; }
.py-muscle-hotspot.arms-right { left: 74%; top: 43%; width: 18%; height: 31%; }
.py-muscle-hotspot.core-waist { left: 50%; top: 48%; width: 35%; height: 24%; }
.py-muscle-hotspot.legs-left { left: 41%; top: 76%; width: 18%; height: 36%; }
.py-muscle-hotspot.legs-right { left: 59%; top: 76%; width: 18%; height: 36%; }
.py-muscle-hotspot.back { left: 50%; top: 38%; width: 50%; height: 26%; }
.py-muscle-hotspot.posture { left: 50%; top: 53%; width: 22%; height: 20%; z-index: 3; }
.py-muscle-hotspot.glutes { left: 50%; top: 62%; width: 36%; height: 14%; }
.py-muscle-hotspot.back-legs-left { left: 41%; top: 78%; width: 18%; height: 34%; }
.py-muscle-hotspot.back-legs-right { left: 59%; top: 78%; width: 18%; height: 34%; }

.py-body-region-card span {
  color: var(--py-ink);
  font-weight: 900;
}

.py-body-region-card:has(input[type="checkbox"]:checked) {
  border-color: var(--py-teal);
  box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.22);
}

.py-body-region-card:has(input[type="checkbox"]:checked) .py-region-figure {
  background: linear-gradient(180deg, #f4fff9 0%, #e3f4ed 100%);
}

.py-body-region-card:has(input[type="checkbox"]:checked) .py-muscle-hit {
  fill: var(--py-coral);
  stroke: #9e2f22;
}

.py-region-target {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 74px;
  gap: 6px;
}

.py-region-target input,
.py-region-target select {
  min-width: 0;
  border: 1px solid var(--py-line);
  border-radius: 8px;
  background: #fffaf1;
  padding: 8px;
  font-weight: 800;
}

.py-region-target input:disabled,
.py-region-target select:disabled {
  opacity: 0.45;
}

.py-health-card {
  display: grid;
  gap: 14px;
  margin: 0 0 18px;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 8px;
  background: #f8fbf8;
  padding: 16px;
}

.py-health-card h3,
.py-health-card p {
  margin: 0;
}

.py-health-app-download {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: 8px;
  background: linear-gradient(135deg, #ecfffb 0%, #f8fbff 58%, #fffaf1 100%);
  padding: 14px;
}

.py-health-app-copy {
  display: grid;
  gap: 7px;
  justify-items: start;
}

.py-health-connect-copy {
  display: grid;
  gap: 6px;
}

.py-health-app-icon {
  position: relative;
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  overflow: hidden;
  border-radius: 22px;
  background:
    radial-gradient(circle at 28% 22%, rgba(122, 255, 211, 0.95), transparent 34%),
    linear-gradient(135deg, #19a7a0 0%, #2469bd 52%, #5f2e93 100%);
  box-shadow: inset 0 1px 8px rgba(255, 255, 255, 0.5), 0 14px 28px rgba(31, 41, 51, 0.16);
}

.py-health-icon-plus {
  z-index: 2;
  color: #fff;
  font-size: 3.15rem;
  font-weight: 950;
  line-height: 1;
  text-shadow: 0 2px 10px rgba(31, 41, 51, 0.25);
}

.py-health-icon-arrow {
  position: absolute;
  width: 56px;
  height: 56px;
  border: 7px solid #fff;
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 999px;
}

.py-health-icon-arrow::after {
  position: absolute;
  width: 0;
  height: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  content: "";
}

.py-health-icon-arrow-a {
  transform: rotate(18deg);
}

.py-health-icon-arrow-a::after {
  right: -10px;
  bottom: 0;
  border-left: 14px solid #fff;
  transform: rotate(42deg);
}

.py-health-icon-arrow-b {
  transform: rotate(198deg);
}

.py-health-icon-arrow-b::after {
  right: -10px;
  bottom: 0;
  border-left: 14px solid #fff;
  transform: rotate(42deg);
}

.py-health-label {
  color: var(--py-teal);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.py-health-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.py-health-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.py-health-stats span {
  display: grid;
  min-height: 72px;
  align-content: center;
  border: 1px solid var(--py-line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.py-health-stats strong {
  color: var(--py-ink);
  font-size: 1.08rem;
  font-weight: 950;
}

.py-health-stats small,
.py-health-sync,
.py-health-link {
  color: var(--py-muted);
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

.py-health-link {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.py-health-link label {
  display: grid;
  gap: 6px;
}

.py-health-link input {
  width: 100%;
  border: 1px solid var(--py-line);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.92);
  color: var(--py-ink);
  font: inherit;
  padding: 9px 10px;
}

.py-health-deep-link {
  color: var(--py-teal);
  font-weight: 900;
}

.py-upload-zone {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.py-file-picker {
  display: grid;
  min-height: 132px;
  place-items: center;
  border: 1px dashed #89a69c;
  border-radius: 8px;
  background: rgba(142, 216, 194, 0.14);
  cursor: pointer;
  padding: 18px;
  text-align: center;
}

.py-file-picker input {
  position: absolute;
  opacity: 0;
}

.py-file-picker strong {
  display: block;
  font-size: 1rem;
}

.py-file-picker small {
  color: var(--py-muted);
}

.py-output {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.py-hidden {
  display: none !important;
}

.py-loader {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border: 1px solid var(--py-line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.py-loader span {
  width: 34px;
  height: 34px;
  border: 4px solid #d7e8df;
  border-top-color: var(--py-coral);
  border-radius: 50%;
  animation: py-spin 0.8s linear infinite;
}

.py-loader strong,
.py-loader small {
  display: block;
}

.py-loader small {
  color: var(--py-muted);
}

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

.py-plan-card {
  display: grid;
  gap: 12px;
}

.py-coach-menu-grid,
.py-coach-panel-grid,
.py-coach-archive-list,
.py-coach-nutrition-grid {
  display: grid;
  gap: 12px;
}

.py-coach-menu-grid,
.py-coach-panel-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.py-coach-tile,
.py-coach-archive-card,
.py-coach-nutrition-item {
  border: 1px solid var(--py-line);
  border-radius: 8px;
  background: #fff;
}

.py-coach-tile {
  display: grid;
  gap: 8px;
  min-height: 144px;
  padding: 16px;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.py-coach-tile:hover,
.py-coach-tile:focus-visible {
  border-color: rgba(15, 118, 110, 0.4);
  box-shadow: 0 12px 26px rgba(15, 118, 110, 0.08);
  outline: none;
  transform: translateY(-1px);
}

.py-coach-tile strong,
.py-coach-archive-card strong,
.py-coach-nutrition-item strong {
  color: var(--py-ink);
}

.py-coach-tile span,
.py-coach-archive-card p,
.py-coach-nutrition-item p {
  color: var(--py-muted);
}

.py-coach-panel {
  display: grid;
  gap: 12px;
}

.py-coach-archive-card {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.py-coach-archive-card.is-current {
  border-color: rgba(15, 118, 110, 0.4);
  background: #f7fcfa;
}

.py-coach-archive-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.py-coach-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #e9f4ee;
  color: #184339;
  padding: 5px 9px;
  font-size: 0.8rem;
  font-weight: 900;
}

.py-coach-archive-split {
  margin: 0;
  padding-left: 18px;
  color: var(--py-muted);
}

.py-coach-nutrition {
  display: grid;
  gap: 12px;
}

.py-coach-nutrition-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.py-coach-nutrition-item {
  padding: 14px;
}

.py-coach-nutrition-item p {
  margin-top: 6px;
}

.py-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.py-pill {
  border-radius: 999px;
  background: #e9f4ee;
  color: #184339;
  padding: 7px 10px;
  font-size: 0.85rem;
  font-weight: 900;
}

.py-list {
  margin: 0;
  padding-left: 20px;
  color: var(--py-muted);
}

.py-exercise-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.py-exercise {
  border: 1px solid var(--py-line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.py-exercise-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  background: #e7efe9;
}

.py-exercise-image-missing {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  padding: 16px;
  color: var(--py-muted);
  font-size: 0.9rem;
  font-weight: 800;
  text-align: center;
}

.py-exercise-body {
  padding: 14px;
}

.py-tabbar {
  position: fixed;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 60;
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  border: 1px solid rgba(21, 23, 25, 0.1);
  border-radius: 10px;
  background: rgba(255, 250, 241, 0.94);
  padding: 8px;
  box-shadow: 0 12px 36px rgba(31, 41, 51, 0.16);
}

.py-tabbar a,
.py-tabbar button {
  display: grid;
  min-height: 42px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--py-muted);
  font-weight: 900;
}

.py-tabbar .active {
  background: var(--py-teal);
  color: #fff;
}

.py-button.py-disabled {
  cursor: wait;
  opacity: 0.62;
  pointer-events: none;
}

.py-footer {
  border-top: 1px solid var(--py-line);
  padding: 28px 0;
  color: var(--py-muted);
  font-size: 0.92rem;
}

.py-footer-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

@media (max-width: 900px) {
  .py-hero,
  .py-app-main,
  .py-account-grid,
  .py-grid-2,
  .py-grid-3 {
    grid-template-columns: 1fr;
  }

  .py-reference-grid,
  .py-static-target-gallery,
  .py-body-fat-variant-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .py-coach-menu-grid,
  .py-coach-panel-grid,
  .py-coach-nutrition-grid {
    grid-template-columns: 1fr;
  }

  .py-target-gallery {
    grid-template-columns: 1fr;
  }

  .py-muscle-selector {
    grid-template-columns: 1fr;
  }

  .py-muscle-stage {
    position: static;
  }

  .py-exercise-grid {
    grid-template-columns: 1fr;
  }

  .py-hide-mobile {
    display: none;
  }

  .py-tabbar {
    display: grid;
  }
}

@media (max-width: 620px) {
  .py-nav {
    min-height: 64px;
  }

  .py-links {
    gap: 4px;
    font-size: 0.84rem;
  }

  .py-reference-option,
  .py-body-fat-variant-grid,
  .py-chip-grid,
  .py-body-region-grid,
  .py-body-region-card,
  .py-body-region-card:has(.py-muscle-example),
  .py-muscle-stage {
    grid-template-columns: 1fr;
  }

  .py-muscle-example {
    width: 100%;
    max-width: 180px;
  }

  .py-muscle-view {
    min-height: 430px;
  }

  .py-health-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .py-health-app-download {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .py-health-app-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
  }

  .py-health-icon-plus {
    font-size: 2.55rem;
  }

  .py-health-icon-arrow {
    width: 46px;
    height: 46px;
    border-width: 6px;
  }

  .py-links a {
    padding: 8px;
  }

  .py-title {
    font-size: 3rem;
  }

  .py-form-grid {
    grid-template-columns: 1fr;
  }

  .py-phone-screen {
    min-height: 420px;
  }

  .py-footer-row {
    flex-direction: column;
  }
}

html[data-perfectyou-landing] {
  --py-bg: #f8f7f4;
  --py-ink: #171714;
  --py-muted: #6c6a63;
  --py-panel: #ffffff;
  --py-panel-2: #f2f0ea;
  --py-line: #dedbd2;
  --py-teal: #25231f;
  --py-mint: #e9e5da;
  --py-coral: #9f7f52;
  --py-gold: #b8945d;
  --py-charcoal: #1d1c19;
  --py-shadow: 0 24px 70px rgba(23, 23, 20, 0.1);
}

html[data-perfectyou-landing] body.py-page {
  background:
    linear-gradient(180deg, #ffffff 0%, #f9f8f5 38%, #f2f0e9 100%);
  color: var(--py-ink);
}

html[data-perfectyou-landing] .py-container {
  width: min(1240px, calc(100% - 40px));
}

html[data-perfectyou-landing] .py-header {
  border-bottom: 1px solid rgba(23, 23, 20, 0.07);
  background: rgba(255, 255, 255, 0.92);
}

html[data-perfectyou-landing] .py-nav {
  min-height: 78px;
}

html[data-perfectyou-landing] .py-brand {
  gap: 12px;
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

html[data-perfectyou-landing] .py-mark {
  width: 32px;
  height: 32px;
  border: 1px solid #24231f;
  border-radius: 50%;
  background: #24231f;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
}

html[data-perfectyou-landing] .py-links {
  gap: 6px;
  color: #30302e;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

html[data-perfectyou-landing] .py-links a,
html[data-perfectyou-landing] .py-language-switch select {
  border-radius: 999px;
}

html[data-perfectyou-landing] .py-language-switch {
  gap: 6px;
}

html[data-perfectyou-landing] .py-language-switch select {
  border-color: rgba(8, 8, 8, 0.16);
  background: #fff;
  padding: 8px 28px 8px 12px;
}

html[data-perfectyou-landing] .py-button {
  min-height: 46px;
  border-radius: 999px;
  padding: 12px 19px;
  letter-spacing: 0.01em;
}

html[data-perfectyou-landing] .py-button-primary {
  background: #1f1e1b;
  color: #fff;
  box-shadow: 0 10px 24px rgba(23, 23, 20, 0.14);
}

html[data-perfectyou-landing] .py-button-primary:hover {
  background: #3a372f;
}

html[data-perfectyou-landing] .py-button-secondary {
  border-color: rgba(8, 8, 8, 0.18);
  background: #fff;
}

html[data-perfectyou-landing] .py-hero {
  min-height: calc(100vh - 78px);
  grid-template-columns: minmax(0, 0.98fr) minmax(360px, 0.78fr);
  gap: clamp(44px, 6vw, 86px);
  align-items: center;
  padding: 94px 0 88px;
}

html[data-perfectyou-landing] .py-hero > * {
  min-width: 0;
}

html[data-perfectyou-landing] .py-hero-copy {
  align-self: center;
  padding-bottom: 0;
}

html[data-perfectyou-landing] .py-eyebrow {
  color: #111;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
}

html[data-perfectyou-landing] .py-title {
  max-width: 720px;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(3.35rem, 6.2vw, 5.75rem);
  font-weight: 780;
  line-height: 0.96;
  letter-spacing: 0;
}

html[data-perfectyou-landing] .py-subtitle {
  max-width: 570px;
  color: #55524b;
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  line-height: 1.58;
}

html[data-perfectyou-landing] .py-proof {
  gap: 8px;
  margin-top: 28px;
}

html[data-perfectyou-landing] .py-proof span {
  border-color: rgba(23, 23, 20, 0.12);
  background: rgba(255, 255, 255, 0.64);
  color: #47443d;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html[data-perfectyou-landing] .py-coach-preview {
  position: relative;
  align-self: center;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(246, 244, 237, 0.86));
  box-shadow: 0 28px 80px rgba(23, 23, 20, 0.08);
  padding: 14px;
}

html[data-perfectyou-landing] .py-preview-label {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(23, 23, 20, 0.08);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: rgba(255, 255, 255, 0.76);
  color: #69665e;
  padding: 10px 12px;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

html[data-perfectyou-landing] .py-demo-comparison {
  width: 100%;
  max-width: 100%;
  height: auto;
  min-height: 0;
  border: 1px solid rgba(23, 23, 20, 0.08);
  border-radius: 0 0 8px 8px;
  background: #e8e5dc;
  box-shadow: none;
}

html[data-perfectyou-landing] .py-demo-comparison::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0) 42%, rgba(24, 23, 20, 0.32) 100%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
  pointer-events: none;
}

html[data-perfectyou-landing] .py-demo-comparison img {
  aspect-ratio: 16 / 9;
  height: auto;
  min-height: 0;
  object-position: center top;
  filter: saturate(0.9) contrast(1.01);
}

html[data-perfectyou-landing] .py-analysis-stack {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: grid;
  width: min(210px, calc(100% - 36px));
  gap: 8px;
}

html[data-perfectyou-landing] .py-analysis-stack span {
  display: grid;
  gap: 2px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  padding: 9px 11px;
  backdrop-filter: blur(14px);
}

html[data-perfectyou-landing] .py-analysis-stack small {
  color: #66645f;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

html[data-perfectyou-landing] .py-analysis-stack strong {
  color: #080808;
  font-size: 1rem;
  line-height: 1.05;
}

html[data-perfectyou-landing] .py-demo-overlay {
  z-index: 2;
  right: 18px;
  bottom: 18px;
  left: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(31, 30, 26, 0.68);
  padding: 16px;
  backdrop-filter: blur(18px);
}

html[data-perfectyou-landing] .py-demo-overlay strong {
  font-size: 1.05rem;
}

html[data-perfectyou-landing] .py-section {
  padding: 92px 0;
}

html[data-perfectyou-landing] .py-proof-band {
  border-top: 1px solid rgba(8, 8, 8, 0.08);
  border-bottom: 1px solid rgba(8, 8, 8, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 249, 246, 0.98));
}

html[data-perfectyou-landing] .py-section-head {
  max-width: 780px;
  min-width: 0;
}

html[data-perfectyou-landing] .py-section-head h2 {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(2rem, 4.2vw, 4rem);
  font-weight: 760;
  line-height: 1.02;
  letter-spacing: 0;
  overflow-wrap: normal;
}

html[data-perfectyou-landing] .py-card,
html[data-perfectyou-landing] .py-result-panel,
html[data-perfectyou-landing] .py-form {
  border-color: rgba(8, 8, 8, 0.11);
  background: #fff;
  box-shadow: none;
}

html[data-perfectyou-landing] .py-card {
  min-height: 194px;
  padding: 28px;
}

html[data-perfectyou-landing] .py-card h3,
html[data-perfectyou-landing] .py-before-after-card h3 {
  font-size: 1.14rem;
  line-height: 1.16;
}

html[data-perfectyou-landing] .py-feature-strip {
  background:
    linear-gradient(180deg, #25241f, #201f1b);
  color: #fff;
}

html[data-perfectyou-landing] .py-feature-strip .py-eyebrow,
html[data-perfectyou-landing] .py-feature-strip p,
html[data-perfectyou-landing] .py-feature-strip .py-section-head p {
  color: rgba(255, 255, 255, 0.68);
}

html[data-perfectyou-landing] .py-feature-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 0.48fr);
  gap: 36px;
  align-items: end;
  margin-bottom: 28px;
}

html[data-perfectyou-landing] .py-feature-intro > * {
  min-width: 0;
}

html[data-perfectyou-landing] .py-feature-intro .py-section-head {
  margin-bottom: 0;
}

html[data-perfectyou-landing] .py-feature-intro > p {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

html[data-perfectyou-landing] .py-before-after-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

html[data-perfectyou-landing] .py-before-after-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: none;
  padding: 0;
}

html[data-perfectyou-landing] .py-before-after-card img {
  aspect-ratio: 4 / 3;
  border: 0;
  border-radius: 0;
  filter: saturate(0.92) contrast(1.01);
}

html[data-perfectyou-landing] .py-before-after-card h3,
html[data-perfectyou-landing] .py-before-after-card p {
  padding-inline: 20px;
}

html[data-perfectyou-landing] .py-before-after-card h3 {
  margin-top: 10px;
}

html[data-perfectyou-landing] .py-before-after-card p {
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.62);
}

html[data-perfectyou-landing] .py-protocol-section {
  position: relative;
}

html[data-perfectyou-landing] .py-protocol-grid,
html[data-perfectyou-landing] .py-waitlist-grid {
  align-items: start;
  gap: 44px;
}

html[data-perfectyou-landing] .py-result-panel {
  display: grid;
  gap: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.82);
}

html[data-perfectyou-landing] .py-result-label {
  margin: 0;
  border-bottom: 1px solid rgba(8, 8, 8, 0.12);
  color: #080808;
  padding: 18px 20px;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

html[data-perfectyou-landing] .py-result-panel .py-row {
  min-height: 84px;
  border-bottom: 1px solid rgba(8, 8, 8, 0.1);
  padding: 18px 20px;
}

html[data-perfectyou-landing] .py-result-panel .py-row:last-child {
  border-bottom: 0;
}

html[data-perfectyou-landing] .py-result-panel .py-row span {
  color: #73716b;
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

html[data-perfectyou-landing] .py-result-panel .py-row strong {
  max-width: 280px;
  text-align: right;
}

html[data-perfectyou-landing] .py-waitlist-section {
  padding-top: 30px;
}

html[data-perfectyou-landing] .py-faq-section {
  padding-top: 40px;
  border-top: 1px solid rgba(23, 23, 20, 0.07);
}

html[data-perfectyou-landing] .py-faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

html[data-perfectyou-landing] .py-faq-item {
  border: 1px solid rgba(23, 23, 20, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  padding: 24px;
}

html[data-perfectyou-landing] .py-faq-item h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  line-height: 1.18;
}

html[data-perfectyou-landing] .py-faq-item p {
  margin: 0;
  color: var(--py-muted);
}

html[data-perfectyou-landing] .py-form {
  border: 1px solid rgba(8, 8, 8, 0.12);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 22px 60px rgba(23, 23, 20, 0.09);
}

html[data-perfectyou-landing] .py-form label {
  color: #42413d;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html[data-perfectyou-landing] .py-form input,
html[data-perfectyou-landing] .py-form select,
html[data-perfectyou-landing] .py-form textarea {
  border-color: rgba(8, 8, 8, 0.16);
  border-radius: 8px;
  background: #fbfaf7;
  padding: 14px 13px;
  text-transform: none;
}

html[data-perfectyou-landing] .py-form input:focus,
html[data-perfectyou-landing] .py-form select:focus,
html[data-perfectyou-landing] .py-form textarea:focus {
  border-color: #080808;
  box-shadow: 0 0 0 3px rgba(8, 8, 8, 0.1);
}

html[data-perfectyou-landing] .py-check {
  color: #4f4e49;
  letter-spacing: 0;
  text-transform: none;
}

html[data-perfectyou-landing] .py-footer {
  border-top-color: rgba(8, 8, 8, 0.1);
  background: #fff;
}

@media (max-width: 900px) {
  html[data-perfectyou-landing] .py-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    align-items: start;
    padding: 58px 0 64px;
  }

  html[data-perfectyou-landing] .py-hero-copy {
    padding-bottom: 0;
  }

  html[data-perfectyou-landing] .py-demo-comparison,
  html[data-perfectyou-landing] .py-demo-comparison img {
    min-height: 520px;
  }

  html[data-perfectyou-landing] .py-feature-intro,
  html[data-perfectyou-landing] .py-before-after-grid,
  html[data-perfectyou-landing] .py-faq-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  html[data-perfectyou-landing] .py-container {
    width: min(100% - 24px, 1240px);
  }

  html[data-perfectyou-landing] .py-nav {
    align-items: flex-start;
    min-height: 76px;
    padding: 12px 0;
  }

  html[data-perfectyou-landing] .py-links {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  html[data-perfectyou-landing] .py-language-switch span {
    display: none;
  }

  html[data-perfectyou-landing] .py-title {
    max-width: 100%;
    font-size: clamp(2.65rem, 11vw, 3.25rem);
    overflow-wrap: normal;
  }

  html[data-perfectyou-landing] .py-section-head h2 {
    font-size: clamp(1.95rem, 8vw, 2.25rem);
    overflow-wrap: anywhere;
  }

  html[data-perfectyou-landing] .py-demo-comparison,
  html[data-perfectyou-landing] .py-demo-comparison img {
    min-height: 0;
  }

  html[data-perfectyou-landing] .py-analysis-stack {
    position: relative;
    top: auto;
    right: auto;
    z-index: 2;
    width: auto;
    grid-template-columns: 1fr;
    margin: 12px;
  }

  html[data-perfectyou-landing] .py-demo-overlay {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    margin: 12px;
  }

  html[data-perfectyou-landing] .py-demo-comparison img {
    aspect-ratio: 16 / 9;
    height: auto;
  }

  html[data-perfectyou-landing] .py-card {
    min-height: auto;
  }

  html[data-perfectyou-landing] .py-result-panel .py-row {
    align-items: flex-start;
    flex-direction: column;
  }

  html[data-perfectyou-landing] .py-result-panel .py-row strong {
    max-width: none;
    text-align: left;
  }
}

html[data-perfectyou-coach] .py-coach-workspace {
  gap: 24px;
}

html[data-perfectyou-app] .py-coach-start-panel {
  display: grid;
  justify-items: center;
  gap: 14px;
}

html[data-perfectyou-app] .py-coach-start-panel .py-button {
  min-width: min(100%, 320px);
}

html[data-perfectyou-app] .py-coach-start-panel .py-message,
html[data-perfectyou-app] .py-coach-start-panel .py-loader {
  width: min(100%, 560px);
}

html[data-perfectyou-coach] .py-coach-hero {
  overflow: hidden;
}

html[data-perfectyou-coach] .py-coach-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.9fr);
  gap: 18px;
  align-items: start;
}

html[data-perfectyou-coach] .py-coach-day-card {
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(232, 249, 245, 0.94), rgba(255, 250, 241, 0.95));
  padding: 20px;
  box-shadow: 0 18px 40px rgba(15, 118, 110, 0.08);
}

html[data-perfectyou-coach] .py-coach-day-card strong,
html[data-perfectyou-coach] .py-coach-day-card p {
  display: block;
  margin: 0 0 10px;
}

html[data-perfectyou-coach] .py-coach-day-adherence {
  margin-bottom: 0;
  color: var(--py-muted);
}

html[data-perfectyou-coach] .py-coach-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  gap: 24px;
  align-items: start;
}

html[data-perfectyou-coach] .py-coach-chat-column,
html[data-perfectyou-coach] .py-coach-sidebar {
  display: grid;
  gap: 18px;
}

html[data-perfectyou-coach] .py-coach-thread {
  display: grid;
  gap: 16px;
}

html[data-perfectyou-coach] .py-coach-chat-card {
  gap: 14px;
}

html[data-perfectyou-coach] .py-coach-chat-card.is-user {
  background: linear-gradient(180deg, rgba(15, 118, 110, 0.08), rgba(15, 118, 110, 0.04));
  border-color: rgba(15, 118, 110, 0.18);
}

html[data-perfectyou-coach] .py-coach-composer {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  padding: 16px;
}

html[data-perfectyou-coach] .py-coach-composer textarea {
  min-height: 110px;
}

html[data-perfectyou-coach] .py-coach-sidebar-card {
  gap: 14px;
}

html[data-perfectyou-coach] .py-coach-sidebar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

html[data-perfectyou-coach] .py-coach-exercise-archive {
  display: grid;
  gap: 12px;
}

html[data-perfectyou-coach] .py-coach-exercise-detail {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: rgba(250, 248, 241, 0.9);
  padding: 12px 14px;
}

html[data-perfectyou-coach] .py-coach-exercise-detail summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  font-weight: 700;
}

html[data-perfectyou-coach] .py-coach-exercise-body {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 14px;
  margin-top: 14px;
}

html[data-perfectyou-coach] .py-coach-exercise-body .py-exercise-image {
  aspect-ratio: auto;
  width: 100%;
  height: auto;
  object-fit: contain;
}

html[data-perfectyou-coach] .py-health-card {
  box-shadow: none;
}

@media (max-width: 980px) {
  html[data-perfectyou-coach] .py-coach-hero-grid,
  html[data-perfectyou-coach] .py-coach-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  html[data-perfectyou-coach] .py-coach-exercise-body {
    grid-template-columns: 1fr;
  }

  html[data-perfectyou-coach] .py-coach-sidebar-actions {
    flex-direction: column;
  }
}

html[data-perfectyou-app] body.py-app-shell,
html[data-perfectyou-account] body.py-app-shell,
html[data-perfectyou-coach] body.py-app-shell {
  background: #f7f8fa;
}

html[data-perfectyou-app] .py-header,
html[data-perfectyou-account] .py-header {
  background: rgba(247, 248, 250, 0.86);
  border-bottom-color: rgba(15, 23, 42, 0.08);
}

html[data-perfectyou-app] .py-app-main,
html[data-perfectyou-account] .py-account-main {
  width: min(980px, calc(100% - 28px));
}

html[data-perfectyou-app] .py-panel,
html[data-perfectyou-account] .py-account-card {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.06);
}

html[data-perfectyou-app] .py-panel h1,
html[data-perfectyou-app] .py-panel h2 {
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  line-height: 1.06;
}

.py-icon-button {
  display: inline-grid;
  min-width: 38px;
  min-height: 38px;
  place-items: center;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: #111827;
  cursor: pointer;
  font-weight: 900;
  line-height: 1;
}

.py-icon-button:hover,
.py-icon-button:focus-visible {
  border-color: rgba(15, 118, 110, 0.35);
  outline: none;
}

html[data-perfectyou-coach] body.py-coach-page {
  min-height: 100vh;
  background: #f8fafc;
  color: #111827;
}

html[data-perfectyou-coach] .py-coach-app-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 90;
  display: flex;
  width: 308px;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  border-right: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.96);
  padding: 16px;
  box-shadow: 12px 0 34px rgba(15, 23, 42, 0.06);
  transition: width 180ms ease, transform 180ms ease;
}

html[data-perfectyou-coach] .py-coach-app-frame {
  min-height: 100vh;
  margin-left: 308px;
  transition: margin-left 180ms ease;
}

html[data-perfectyou-coach] body.py-sidebar-collapsed .py-coach-app-sidebar {
  width: 78px;
  overflow: hidden;
}

html[data-perfectyou-coach] body.py-sidebar-collapsed .py-coach-app-frame {
  margin-left: 78px;
}

html[data-perfectyou-coach] body.py-sidebar-collapsed .py-coach-app-sidebar .py-brand span:last-child,
html[data-perfectyou-coach] body.py-sidebar-collapsed .py-coach-side-section,
html[data-perfectyou-coach] body.py-sidebar-collapsed .py-coach-drawer-close {
  display: none;
}

html[data-perfectyou-coach] .py-coach-sidebar-head,
html[data-perfectyou-coach] .py-coach-side-title-row,
html[data-perfectyou-coach] .py-coach-composer-meta,
html[data-perfectyou-coach] .py-coach-message-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

html[data-perfectyou-coach] .py-coach-drawer-close,
html[data-perfectyou-coach] .py-coach-menu-button,
html[data-perfectyou-coach] .py-coach-drawer-backdrop {
  display: none;
}

html[data-perfectyou-coach] .py-coach-side-section {
  display: grid;
  gap: 10px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  padding-top: 14px;
}

html[data-perfectyou-coach] .py-coach-side-section h2 {
  margin: 0;
  font-size: 0.92rem;
}

html[data-perfectyou-coach] .py-coach-overview-link {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
}

html[data-perfectyou-coach] .py-coach-side-label,
html[data-perfectyou-coach] .py-coach-context-card > span {
  margin: 0;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html[data-perfectyou-coach] .py-health-card-compact {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

html[data-perfectyou-coach] .py-health-card-compact .py-health-app-download,
html[data-perfectyou-coach] .py-health-card-compact .py-health-connect-copy,
html[data-perfectyou-coach] .py-health-card-compact .py-health-link {
  display: none;
}

html[data-perfectyou-coach] .py-health-card-compact .py-health-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

html[data-perfectyou-coach] .py-health-card-compact .py-health-actions .py-button,
html[data-perfectyou-coach] .py-health-card-compact .py-health-actions a {
  min-height: 34px;
  padding: 7px 8px;
  font-size: 0.78rem;
}

html[data-perfectyou-coach] .py-health-card-compact .py-health-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

html[data-perfectyou-coach] .py-health-card-compact .py-health-stats span {
  border-radius: 8px;
  background: #f1f5f9;
  padding: 9px;
}

html[data-perfectyou-coach] .py-coach-search {
  display: grid;
  gap: 6px;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 800;
}

html[data-perfectyou-coach] .py-coach-search input,
html[data-perfectyou-coach] .py-coach-composer textarea {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: inherit;
  font: inherit;
}

html[data-perfectyou-coach] .py-coach-search input {
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  background: #f8fafc;
  padding: 10px;
}

html[data-perfectyou-coach] .py-coach-history-list,
html[data-perfectyou-coach] .py-coach-exercise-archive,
html[data-perfectyou-coach] .py-coach-archive-list {
  display: grid;
  gap: 8px;
}

html[data-perfectyou-coach] .py-coach-history-item,
html[data-perfectyou-coach] .py-coach-archive-card,
html[data-perfectyou-coach] .py-coach-exercise-detail {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: #f8fafc;
  padding: 10px;
}

html[data-perfectyou-coach] .py-coach-history-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 8px;
}

html[data-perfectyou-coach] .py-coach-history-item > button {
  border: 0;
  background: transparent;
  color: #111827;
  cursor: pointer;
  padding: 0;
  text-align: left;
  font-weight: 850;
}

html[data-perfectyou-coach] .py-coach-history-item > span {
  color: #64748b;
  font-size: 0.78rem;
}

html[data-perfectyou-coach] .py-coach-history-actions {
  display: flex;
  gap: 4px;
}

html[data-perfectyou-coach] .py-coach-history-actions button,
html[data-perfectyou-coach] .py-coach-message-actions button,
html[data-perfectyou-coach] .py-code-copy {
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 850;
  padding: 6px 7px;
}

html[data-perfectyou-coach] .py-coach-history-actions button:hover,
html[data-perfectyou-coach] .py-coach-message-actions button:hover,
html[data-perfectyou-coach] .py-code-copy:hover {
  background: rgba(15, 23, 42, 0.07);
  color: #111827;
}

html[data-perfectyou-coach] .py-coach-sidebar-bottom {
  margin-top: auto;
  padding-bottom: 12px;
}

html[data-perfectyou-coach] .py-coach-topbar {
  position: sticky;
  top: 0;
  z-index: 70;
  background: rgba(248, 250, 252, 0.86);
  backdrop-filter: blur(18px);
}

html[data-perfectyou-coach] .py-coach-topbar .py-nav {
  width: min(1120px, calc(100% - 32px));
  justify-content: flex-end;
}

html[data-perfectyou-coach] .py-coach-topbar-spacer {
  flex: 1;
}

html[data-perfectyou-coach] .py-coach-chat-main {
  min-height: calc(100vh - 72px);
  padding: 38px 20px 176px;
}

html[data-perfectyou-coach] .py-daily-mission,
html[data-perfectyou-coach] .py-food-photo-panel,
html[data-perfectyou-coach] .py-workout-player {
  width: min(900px, 100%);
  margin: 0 auto 22px;
}

html[data-perfectyou-coach] .py-daily-mission-shell,
html[data-perfectyou-coach] .py-food-photo-shell,
html[data-perfectyou-coach] .py-workout-shell {
  display: grid;
  gap: 16px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
  padding: clamp(18px, 3vw, 26px);
}

html[data-perfectyou-coach] .py-daily-mission-head,
html[data-perfectyou-coach] .py-food-photo-head,
html[data-perfectyou-coach] .py-workout-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

html[data-perfectyou-coach] .py-daily-mission-head > span:first-child,
html[data-perfectyou-coach] .py-food-photo-head span,
html[data-perfectyou-coach] .py-workout-head span {
  color: #0f766e;
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

html[data-perfectyou-coach] .py-daily-mission h1,
html[data-perfectyou-coach] .py-food-photo-head h2,
html[data-perfectyou-coach] .py-workout-head h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(1.65rem, 4vw, 2.55rem);
  line-height: 1.05;
}

html[data-perfectyou-coach] .py-daily-mission p,
html[data-perfectyou-coach] .py-daily-mission small,
html[data-perfectyou-coach] .py-food-photo-head p,
html[data-perfectyou-coach] .py-food-result-card p,
html[data-perfectyou-coach] .py-food-result-card small,
html[data-perfectyou-coach] .py-workout-exercise p {
  margin: 0;
  color: #4b5563;
  line-height: 1.55;
}

html[data-perfectyou-coach] .py-food-upload-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

html[data-perfectyou-coach] .py-food-file-picker {
  display: grid;
  min-height: 46px;
  align-items: center;
  border: 1px dashed rgba(15, 23, 42, 0.18);
  border-radius: 8px;
  background: #f8fafc;
  color: #374151;
  cursor: pointer;
  font-weight: 850;
  padding: 11px 13px;
}

html[data-perfectyou-coach] .py-food-file-picker input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

html[data-perfectyou-coach] .py-food-result-card {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  background: #f8fafc;
  padding: 14px;
}

html[data-perfectyou-coach] .py-food-result-card h3 {
  margin: 0;
  color: #111827;
}

html[data-perfectyou-coach] .py-food-macro-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

html[data-perfectyou-coach] .py-food-macro-grid span {
  display: grid;
  min-height: 70px;
  align-content: center;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

html[data-perfectyou-coach] .py-food-macro-grid strong {
  color: #111827;
  font-size: 1rem;
}

html[data-perfectyou-coach] .py-food-macro-grid small {
  color: #64748b;
}

html[data-perfectyou-coach] .py-food-glucose-note {
  display: grid;
  gap: 6px;
  border-left: 3px solid #0f766e;
  background: rgba(15, 118, 110, 0.08);
  padding: 10px 12px;
}

html[data-perfectyou-coach] .py-food-glucose-note strong {
  color: #0f766e;
}

html[data-perfectyou-coach] .py-mission-task-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

html[data-perfectyou-coach] .py-mission-task {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  min-height: 112px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  background: #f8fafc;
  padding: 13px;
}

html[data-perfectyou-coach] .py-mission-task.is-done {
  border-color: rgba(15, 118, 110, 0.28);
  background: #edf8f4;
}

html[data-perfectyou-coach] .py-mission-task input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

html[data-perfectyou-coach] .py-mission-task span {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
}

html[data-perfectyou-coach] .py-mission-task strong {
  color: #111827;
  font-size: 0.98rem;
}

html[data-perfectyou-coach] .py-mission-task small {
  overflow-wrap: anywhere;
  font-size: 0.88rem;
}

html[data-perfectyou-coach] .py-daily-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

html[data-perfectyou-coach] .py-workout-head button {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  background: #f8fafc;
  color: #111827;
  cursor: pointer;
  font-weight: 900;
}

html[data-perfectyou-coach] .py-workout-list {
  display: grid;
  gap: 12px;
}

html[data-perfectyou-coach] .py-workout-exercise {
  display: grid;
  grid-template-columns: 34px minmax(142px, 0.34fr) minmax(0, 1fr);
  gap: 14px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  background: #f8fafc;
  padding: 12px;
}

html[data-perfectyou-coach] .py-workout-exercise-index {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  font-weight: 900;
}

html[data-perfectyou-coach] .py-workout-exercise-media .py-exercise-image {
  border-radius: 8px;
}

html[data-perfectyou-coach] .py-workout-exercise-body {
  display: grid;
  gap: 8px;
}

html[data-perfectyou-coach] .py-workout-exercise-body h3 {
  margin: 0;
  color: #111827;
}

html[data-perfectyou-coach] .py-coach-chat-surface,
html[data-perfectyou-coach] .py-coach-inspector {
  width: min(900px, 100%);
  margin: 0 auto;
}

html[data-perfectyou-coach] .py-coach-inspector {
  display: none;
}

html[data-perfectyou-coach] .py-coach-thread {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

html[data-perfectyou-coach] .py-coach-thread .py-plan-card,
html[data-perfectyou-coach] .py-coach-chat-card {
  max-width: 860px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 4px 0;
  color: #1f2937;
}

html[data-perfectyou-coach] .py-coach-chat-card {
  display: grid;
  gap: 8px;
  animation: py-coach-message-in 180ms ease both;
}

html[data-perfectyou-coach] .py-coach-chat-card p,
html[data-perfectyou-coach] .py-coach-thread .py-plan-card p,
html[data-perfectyou-coach] .py-coach-thread .py-plan-card li {
  color: #374151;
  font-size: 1rem;
  line-height: 1.65;
}

html[data-perfectyou-coach] .py-coach-chat-card.is-user {
  align-self: flex-end;
  max-width: min(76%, 680px);
  border-radius: 8px;
  background: #eef2f7;
  padding: 12px 14px;
}

html[data-perfectyou-coach] .py-coach-chat-card.is-assistant.is-typing {
  width: fit-content;
  border-radius: 8px;
  background: #f1f5f9;
  padding: 10px 12px;
}

html[data-perfectyou-coach] .py-typing-dots {
  display: inline-flex;
  gap: 4px;
}

html[data-perfectyou-coach] .py-typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #64748b;
  animation: py-typing 900ms ease-in-out infinite;
}

html[data-perfectyou-coach] .py-typing-dots span:nth-child(2) {
  animation-delay: 120ms;
}

html[data-perfectyou-coach] .py-typing-dots span:nth-child(3) {
  animation-delay: 240ms;
}

html[data-perfectyou-coach] .py-coach-message-actions {
  justify-content: flex-start;
  opacity: 0;
  transition: opacity 140ms ease;
}

html[data-perfectyou-coach] .py-coach-chat-card:hover .py-coach-message-actions,
html[data-perfectyou-coach] .py-coach-chat-card:focus-within .py-coach-message-actions {
  opacity: 1;
}

html[data-perfectyou-coach] .py-coach-composer {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 308px;
  z-index: 75;
  display: grid;
  justify-items: center;
  gap: 8px;
  border: 0;
  border-radius: 0;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0), rgba(248, 250, 252, 0.96) 26%, #f8fafc 100%);
  padding: 30px 20px calc(18px + env(safe-area-inset-bottom));
  transition: left 180ms ease;
}

html[data-perfectyou-coach] body.py-sidebar-collapsed .py-coach-composer {
  left: 78px;
}

html[data-perfectyou-coach] .py-coach-composer-box {
  display: grid;
  width: min(900px, 100%);
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.13);
  padding: 10px;
}

html[data-perfectyou-coach] .py-coach-tool-row {
  display: flex;
  gap: 6px;
}

html[data-perfectyou-coach] .py-coach-composer textarea {
  min-height: 38px;
  max-height: 180px;
  resize: none;
  padding: 9px 0;
  font-size: 1rem;
  line-height: 1.45;
}

html[data-perfectyou-coach] .py-coach-send {
  min-width: 58px;
  background: #111827;
  color: #fff;
}

html[data-perfectyou-coach] .py-coach-composer-meta {
  width: min(900px, 100%);
  color: #64748b;
  font-size: 0.78rem;
}

html[data-perfectyou-coach] .py-coach-checkin-panel {
  width: min(900px, 100%);
  margin: 28px auto 0;
}

html[data-perfectyou-coach] .py-coach-checkin-panel details {
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  padding: 14px;
}

html[data-perfectyou-coach] .py-coach-checkin-panel summary {
  cursor: pointer;
  font-weight: 900;
}

html[data-perfectyou-coach] .py-code-block {
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  background: #0f172a;
  color: #e5e7eb;
}

html[data-perfectyou-coach] .py-code-block header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 7px 10px;
}

html[data-perfectyou-coach] .py-code-block pre {
  margin: 0;
  overflow-x: auto;
  padding: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.9rem;
}

@keyframes py-coach-message-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes py-typing {
  0%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

@media (prefers-color-scheme: dark) {
  html[data-perfectyou-coach] body.py-coach-page {
    background: #101214;
    color: #f3f4f6;
  }

  html[data-perfectyou-coach] .py-coach-app-sidebar,
  html[data-perfectyou-coach] .py-coach-topbar {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(17, 19, 22, 0.94);
  }

  html[data-perfectyou-coach] .py-coach-composer {
    background: linear-gradient(180deg, rgba(16, 18, 20, 0), rgba(16, 18, 20, 0.96) 26%, #101214 100%);
  }

  html[data-perfectyou-coach] .py-coach-composer-box,
  html[data-perfectyou-coach] .py-icon-button,
  html[data-perfectyou-coach] .py-coach-history-item,
  html[data-perfectyou-coach] .py-coach-archive-card,
  html[data-perfectyou-coach] .py-coach-exercise-detail,
  html[data-perfectyou-coach] .py-coach-checkin-panel details {
    border-color: rgba(255, 255, 255, 0.12);
    background: #181b1f;
    color: #f3f4f6;
  }

  html[data-perfectyou-coach] .py-coach-chat-card p,
  html[data-perfectyou-coach] .py-coach-thread .py-plan-card p,
  html[data-perfectyou-coach] .py-coach-thread .py-plan-card li,
  html[data-perfectyou-coach] .py-coach-thread .py-plan-card strong {
    color: #e5e7eb;
  }

  html[data-perfectyou-coach] .py-coach-chat-card.is-user,
  html[data-perfectyou-coach] .py-coach-chat-card.is-assistant.is-typing,
  html[data-perfectyou-coach] .py-health-card-compact .py-health-stats span {
    background: #242932;
  }

  html[data-perfectyou-coach] .py-coach-send {
    background: #f3f4f6;
    color: #101214;
  }
}

@media (max-width: 760px) {
  html[data-perfectyou-app],
  html[data-perfectyou-account],
  html[data-perfectyou-coach],
  html[data-perfectyou-app] body,
  html[data-perfectyou-account] body,
  html[data-perfectyou-coach] body {
    overflow-x: hidden;
  }

  html[data-perfectyou-app] .py-header,
  html[data-perfectyou-account] .py-header {
    position: sticky;
  }

  html[data-perfectyou-app] .py-nav,
  html[data-perfectyou-account] .py-nav {
    width: 100%;
    min-height: 58px;
    padding: 0 12px;
  }

  html[data-perfectyou-app] .py-links,
  html[data-perfectyou-account] .py-links {
    min-width: 0;
    max-width: 42%;
    flex: 0 1 auto;
    justify-content: flex-end;
    overflow: hidden;
  }

  html[data-perfectyou-app] .py-links a,
  html[data-perfectyou-account] .py-links a {
    display: none;
  }

  html[data-perfectyou-app] .py-language-switch,
  html[data-perfectyou-account] .py-language-switch {
    display: none;
  }

  html[data-perfectyou-app] .py-language-switch span,
  html[data-perfectyou-account] .py-language-switch span {
    display: none;
  }

  html[data-perfectyou-app] .py-language-switch select,
  html[data-perfectyou-account] .py-language-switch select,
  html[data-perfectyou-app] .py-form input,
  html[data-perfectyou-app] .py-form select,
  html[data-perfectyou-app] .py-form textarea,
  html[data-perfectyou-account] .py-form input,
  html[data-perfectyou-account] .py-form select,
  html[data-perfectyou-account] .py-form textarea {
    font-size: 16px;
  }

  html[data-perfectyou-app] .py-language-switch select,
  html[data-perfectyou-account] .py-language-switch select {
    width: 94px;
    max-width: 100%;
    padding-inline: 8px;
  }

  html[data-perfectyou-app] .py-app-main,
  html[data-perfectyou-account] .py-account-main {
    width: 100%;
    gap: 12px;
    padding: 12px 10px calc(96px + env(safe-area-inset-bottom));
  }

  html[data-perfectyou-app] .py-panel,
  html[data-perfectyou-account] .py-account-card {
    border-radius: 8px;
    padding: 18px;
  }

  html[data-perfectyou-app] .py-panel,
  html[data-perfectyou-app] .py-form,
  html[data-perfectyou-app] .py-form label,
  html[data-perfectyou-app] .py-app-copy,
  html[data-perfectyou-account] .py-account-card,
  html[data-perfectyou-account] .py-form,
  html[data-perfectyou-account] .py-form label {
    min-width: 0;
    max-width: 100%;
  }

  html[data-perfectyou-app] .py-app-copy,
  html[data-perfectyou-app] .py-form textarea,
  html[data-perfectyou-account] .py-form textarea {
    overflow-wrap: anywhere;
    white-space: normal;
  }

  html[data-perfectyou-app] .py-panel p,
  html[data-perfectyou-app] .py-app-copy {
    width: 100%;
    max-width: min(100%, 20rem);
    white-space: normal !important;
    word-break: normal;
  }

  html[data-perfectyou-app] .py-panel h1,
  html[data-perfectyou-app] .py-panel h2,
  html[data-perfectyou-account] .py-account-hero h1 {
    font-size: clamp(1.65rem, 8vw, 2.25rem);
    line-height: 1.08;
  }

  html[data-perfectyou-app] .py-app-copy,
  html[data-perfectyou-account] .py-account-hero p:not(.py-eyebrow) {
    font-size: 0.96rem;
  }

  html[data-perfectyou-app] .py-bodyforming-grid,
  html[data-perfectyou-app] .py-reference-grid,
  html[data-perfectyou-app] .py-static-target-gallery,
  html[data-perfectyou-app] .py-body-fat-variant-grid,
  html[data-perfectyou-app] .py-coach-menu-grid {
    grid-template-columns: 1fr;
  }

  html[data-perfectyou-app] .py-reference-option {
    grid-template-columns: minmax(104px, 128px) minmax(0, 1fr);
  }

  html[data-perfectyou-app] .py-tabbar,
  html[data-perfectyou-coach] .py-tabbar {
    right: 10px;
    bottom: calc(8px + env(safe-area-inset-bottom));
    left: 10px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    padding: 6px;
  }

  html[data-perfectyou-app] .py-tabbar a,
  html[data-perfectyou-coach] .py-tabbar a {
    min-width: 0;
    min-height: 40px;
    overflow: hidden;
    padding: 0 4px;
    font-size: 0.78rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  html[data-perfectyou-coach] .py-tabbar {
    display: none !important;
  }
}

@media (max-width: 860px) {
  html[data-perfectyou-coach] .py-coach-app-sidebar {
    width: min(88vw, 340px);
    transform: translateX(-104%);
  }

  html[data-perfectyou-coach] body.py-coach-drawer-open .py-coach-app-sidebar {
    transform: translateX(0);
  }

  html[data-perfectyou-coach] .py-coach-app-frame,
  html[data-perfectyou-coach] body.py-sidebar-collapsed .py-coach-app-frame {
    margin-left: 0;
  }

  html[data-perfectyou-coach] .py-coach-composer,
  html[data-perfectyou-coach] body.py-sidebar-collapsed .py-coach-composer {
    left: 0;
  }

  html[data-perfectyou-coach] .py-coach-drawer-close,
  html[data-perfectyou-coach] .py-coach-menu-button {
    display: inline-grid;
  }

  html[data-perfectyou-coach] .py-coach-collapse {
    display: none;
  }

  html[data-perfectyou-coach] body.py-coach-drawer-open .py-coach-drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 85;
    display: block;
    background: rgba(15, 23, 42, 0.34);
  }

  html[data-perfectyou-coach] .py-coach-topbar .py-nav {
    width: 100%;
    min-height: 58px;
    padding: 0 10px;
  }

  html[data-perfectyou-coach] .py-coach-topbar .py-links {
    min-width: 0;
    max-width: 42%;
    flex: 0 1 auto;
    justify-content: flex-end;
    overflow: hidden;
  }

  html[data-perfectyou-coach] .py-coach-topbar .py-links a {
    display: none;
  }

  html[data-perfectyou-coach] .py-coach-topbar .py-language-switch {
    display: none;
  }

  html[data-perfectyou-coach] .py-coach-topbar .py-language-switch span {
    display: none;
  }

  html[data-perfectyou-coach] .py-coach-topbar .py-language-switch select {
    width: 94px;
    max-width: 100%;
    padding-inline: 8px;
    font-size: 16px;
  }

  html[data-perfectyou-coach] .py-coach-chat-main {
    min-height: calc(100vh - 58px);
    padding: 24px 12px 168px;
  }

  html[data-perfectyou-coach] .py-coach-chat-card.is-user {
    max-width: 88%;
  }

  html[data-perfectyou-coach] .py-coach-composer {
    padding: 26px 12px calc(76px + env(safe-area-inset-bottom));
  }

  html[data-perfectyou-coach] .py-coach-composer-box {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  html[data-perfectyou-coach] .py-coach-tool-row {
    display: none;
  }

  html[data-perfectyou-coach] body.py-sidebar-collapsed .py-coach-app-sidebar {
    width: min(88vw, 340px);
  }

  html[data-perfectyou-coach] body.py-sidebar-collapsed .py-coach-app-sidebar .py-brand span:last-child,
  html[data-perfectyou-coach] body.py-sidebar-collapsed .py-coach-side-section {
    display: grid;
  }
}

/* PerfectYou product surface polish: one neutral system, one restrained accent. */
html[data-perfectyou-app],
html[data-perfectyou-account],
html[data-perfectyou-coach] {
  --py-bg: #f6f7f9;
  --py-ink: #121826;
  --py-muted: #657184;
  --py-panel: #ffffff;
  --py-panel-2: #f2f5f7;
  --py-line: #d9e0e8;
  --py-teal: #0f766e;
  --py-mint: #d9f2eb;
  --py-coral: #0f766e;
  --py-gold: #667085;
  --py-charcoal: #121826;
  --py-shadow: 0 18px 46px rgba(18, 24, 38, 0.08);
  --py-app-bg: #f6f7f9;
  --py-surface: #ffffff;
  --py-surface-soft: #f2f5f7;
  --py-surface-raised: #fbfcfd;
  --py-border: #d9e0e8;
  --py-border-soft: rgba(18, 24, 38, 0.08);
  --py-text: #121826;
  --py-text-soft: #334155;
  --py-text-muted: #657184;
  --py-accent: #0f766e;
  --py-accent-strong: #0b5f59;
  --py-accent-soft: #e5f6f2;
  --py-danger: #b42318;
  --py-focus-ring: rgba(15, 118, 110, 0.16);
}

html[data-perfectyou-app] body.py-app-shell,
html[data-perfectyou-account] body.py-app-shell,
html[data-perfectyou-coach] body.py-app-shell {
  background:
    linear-gradient(180deg, #fbfcfd 0%, var(--py-app-bg) 38%, #eef2f5 100%);
  color: var(--py-text);
}

html[data-perfectyou-app] .py-header,
html[data-perfectyou-account] .py-header,
html[data-perfectyou-coach] .py-coach-topbar {
  border-bottom-color: var(--py-border-soft);
  background: rgba(251, 252, 253, 0.9);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.72);
}

html[data-perfectyou-app] .py-mark,
html[data-perfectyou-account] .py-mark,
html[data-perfectyou-coach] .py-mark {
  background: var(--py-charcoal);
  color: #d9f2eb;
}

html[data-perfectyou-app] .py-brand,
html[data-perfectyou-account] .py-brand,
html[data-perfectyou-coach] .py-brand {
  color: var(--py-text);
}

html[data-perfectyou-app] .py-links,
html[data-perfectyou-account] .py-links,
html[data-perfectyou-coach] .py-links,
html[data-perfectyou-app] .py-language-switch,
html[data-perfectyou-account] .py-language-switch,
html[data-perfectyou-coach] .py-language-switch {
  color: var(--py-text-muted);
}

html[data-perfectyou-app] .py-links a:hover,
html[data-perfectyou-account] .py-links a:hover,
html[data-perfectyou-coach] .py-links a:hover {
  background: var(--py-surface-soft);
  color: var(--py-text);
}

html[data-perfectyou-app] .py-panel,
html[data-perfectyou-account] .py-account-card,
html[data-perfectyou-coach] .py-coach-checkin-panel details {
  border-color: var(--py-border);
  background: var(--py-surface);
  box-shadow: 0 12px 34px rgba(18, 24, 38, 0.06);
}

html[data-perfectyou-app] .py-panel-accent {
  background: #121826;
  color: #f8fafc;
}

html[data-perfectyou-app] .py-panel h1,
html[data-perfectyou-app] .py-panel h2,
html[data-perfectyou-account] .py-account-hero h1,
html[data-perfectyou-account] .py-account-card h2 {
  color: var(--py-text);
  letter-spacing: 0;
}

html[data-perfectyou-app] .py-app-copy,
html[data-perfectyou-app] .py-panel p,
html[data-perfectyou-account] .py-account-hero p:not(.py-eyebrow),
html[data-perfectyou-account] .py-form label,
html[data-perfectyou-app] .py-form label {
  color: var(--py-text-muted);
}

html[data-perfectyou-app] .py-eyebrow,
html[data-perfectyou-account] .py-eyebrow,
html[data-perfectyou-coach] .py-eyebrow,
html[data-perfectyou-coach] .py-coach-side-label {
  color: var(--py-accent);
  letter-spacing: 0.1em;
}

html[data-perfectyou-app] .py-form input,
html[data-perfectyou-app] .py-form select,
html[data-perfectyou-app] .py-form textarea,
html[data-perfectyou-account] .py-form input,
html[data-perfectyou-account] .py-form select,
html[data-perfectyou-account] .py-form textarea,
html[data-perfectyou-app] .py-language-switch select,
html[data-perfectyou-account] .py-language-switch select,
html[data-perfectyou-coach] .py-language-switch select {
  border-color: var(--py-border);
  background: #ffffff;
  color: var(--py-text);
  box-shadow: inset 0 1px 0 rgba(18, 24, 38, 0.02);
}

html[data-perfectyou-app] .py-form input:focus,
html[data-perfectyou-app] .py-form select:focus,
html[data-perfectyou-app] .py-form textarea:focus,
html[data-perfectyou-account] .py-form input:focus,
html[data-perfectyou-account] .py-form select:focus,
html[data-perfectyou-account] .py-form textarea:focus,
html[data-perfectyou-coach] .py-coach-search input:focus,
html[data-perfectyou-coach] .py-coach-composer textarea:focus {
  border-color: var(--py-accent);
  box-shadow: 0 0 0 3px var(--py-focus-ring);
}

html[data-perfectyou-app] .py-button-primary,
html[data-perfectyou-app] .py-button-coral,
html[data-perfectyou-account] .py-button-primary,
html[data-perfectyou-coach] .py-button-primary,
html[data-perfectyou-coach] .py-coach-send {
  background: var(--py-accent);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(15, 118, 110, 0.18);
}

html[data-perfectyou-app] .py-button-primary:hover,
html[data-perfectyou-app] .py-button-coral:hover,
html[data-perfectyou-account] .py-button-primary:hover,
html[data-perfectyou-coach] .py-button-primary:hover,
html[data-perfectyou-coach] .py-coach-send:hover {
  background: var(--py-accent-strong);
}

html[data-perfectyou-app] .py-button-secondary,
html[data-perfectyou-account] .py-button-secondary,
html[data-perfectyou-coach] .py-button-secondary,
html[data-perfectyou-app] .py-button-ghost,
html[data-perfectyou-account] .py-button-ghost,
html[data-perfectyou-coach] .py-button-ghost,
html[data-perfectyou-coach] .py-icon-button {
  border-color: var(--py-border);
  background: var(--py-surface);
  color: var(--py-text);
  box-shadow: none;
}

html[data-perfectyou-app] .py-button-secondary:hover,
html[data-perfectyou-account] .py-button-secondary:hover,
html[data-perfectyou-coach] .py-button-secondary:hover,
html[data-perfectyou-coach] .py-icon-button:hover {
  background: var(--py-surface-soft);
  border-color: #c8d2dc;
}

html[data-perfectyou-app] .py-fieldset,
html[data-perfectyou-app] .py-account-login,
html[data-perfectyou-app] .py-bodyforming-option,
html[data-perfectyou-app] .py-muscle-stage,
html[data-perfectyou-app] .py-body-region-card,
html[data-perfectyou-app] .py-upload-zone,
html[data-perfectyou-app] .py-alignment {
  border-color: var(--py-border);
  background: var(--py-surface-raised);
}

html[data-perfectyou-app] .py-bodyforming-option:has(input:checked),
html[data-perfectyou-app] .py-reference-option:has(input:checked),
html[data-perfectyou-app] .py-body-region-card.is-selected {
  border-color: var(--py-accent);
  background: var(--py-accent-soft);
  box-shadow: 0 0 0 2px var(--py-focus-ring);
}

html[data-perfectyou-app] .py-pill,
html[data-perfectyou-app] .py-coach-badge,
html[data-perfectyou-coach] .py-pill,
html[data-perfectyou-coach] .py-coach-badge {
  background: var(--py-surface-soft);
  color: var(--py-text-soft);
}

html[data-perfectyou-app] .py-message.error,
html[data-perfectyou-account] .py-message.error,
html[data-perfectyou-coach] .py-message.error {
  color: var(--py-danger);
}

html[data-perfectyou-app] .py-message.ok,
html[data-perfectyou-account] .py-message.ok,
html[data-perfectyou-coach] .py-message.ok {
  color: var(--py-accent);
}

html[data-perfectyou-app] .py-tabbar {
  border-color: var(--py-border);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 34px rgba(18, 24, 38, 0.12);
}

html[data-perfectyou-app] .py-tabbar a,
html[data-perfectyou-app] .py-tabbar button {
  color: var(--py-text-muted);
}

html[data-perfectyou-app] .py-tabbar .active,
html[data-perfectyou-app] .py-tabbar a[aria-current="page"] {
  background: var(--py-accent);
  color: #ffffff;
}

html[data-perfectyou-coach] body.py-coach-page {
  background: var(--py-app-bg);
  color: var(--py-text);
}

html[data-perfectyou-coach] .py-coach-app-sidebar {
  border-right-color: var(--py-border);
  background: rgba(251, 252, 253, 0.98);
  box-shadow: 10px 0 34px rgba(18, 24, 38, 0.05);
}

html[data-perfectyou-coach] .py-coach-side-section {
  border-top-color: var(--py-border-soft);
}

html[data-perfectyou-coach] .py-coach-side-section h2,
html[data-perfectyou-coach] .py-coach-history-item > button,
html[data-perfectyou-coach] .py-coach-thread .py-plan-card strong,
html[data-perfectyou-coach] .py-coach-chat-card strong,
html[data-perfectyou-coach] .py-coach-checkin-panel summary {
  color: var(--py-text);
}

html[data-perfectyou-coach] .py-coach-history-item,
html[data-perfectyou-coach] .py-coach-archive-card,
html[data-perfectyou-coach] .py-coach-exercise-detail,
html[data-perfectyou-coach] .py-health-card-compact .py-health-stats span {
  border-color: var(--py-border-soft);
  background: var(--py-surface-soft);
}

html[data-perfectyou-coach] .py-coach-history-item.is-active,
html[data-perfectyou-coach] .py-coach-archive-card.is-current {
  border-color: rgba(15, 118, 110, 0.28);
  background: var(--py-accent-soft);
}

html[data-perfectyou-coach] .py-coach-history-item > span,
html[data-perfectyou-coach] .py-coach-history-actions button,
html[data-perfectyou-coach] .py-coach-message-actions button,
html[data-perfectyou-coach] .py-code-copy,
html[data-perfectyou-coach] .py-coach-search,
html[data-perfectyou-coach] .py-coach-composer-meta,
html[data-perfectyou-coach] .py-coach-chat-card p,
html[data-perfectyou-coach] .py-coach-thread .py-plan-card p,
html[data-perfectyou-coach] .py-coach-thread .py-plan-card li,
html[data-perfectyou-coach] .py-coach-archive-card p,
html[data-perfectyou-coach] .py-coach-nutrition-item p {
  color: var(--py-text-muted);
}

html[data-perfectyou-coach] .py-coach-chat-card.is-user {
  background: #eaf0f6;
  color: var(--py-text);
}

html[data-perfectyou-coach] .py-coach-chat-card.is-assistant.is-typing {
  background: var(--py-surface-soft);
}

html[data-perfectyou-coach] .py-typing-dots span {
  background: var(--py-text-muted);
}

html[data-perfectyou-coach] .py-coach-composer {
  background:
    linear-gradient(180deg, rgba(246, 247, 249, 0), rgba(246, 247, 249, 0.96) 28%, var(--py-app-bg) 100%);
}

html[data-perfectyou-coach] .py-coach-composer-box {
  border-color: var(--py-border);
  background: var(--py-surface);
  box-shadow: 0 18px 42px rgba(18, 24, 38, 0.12);
}

html[data-perfectyou-coach] .py-code-block {
  border-color: #243044;
  background: #111827;
  color: #e5e7eb;
}

@media (prefers-color-scheme: dark) {
  html[data-perfectyou-coach] {
    --py-app-bg: #101214;
    --py-surface: #181b1f;
    --py-surface-soft: #22262d;
    --py-surface-raised: #1c2026;
    --py-border: rgba(255, 255, 255, 0.12);
    --py-border-soft: rgba(255, 255, 255, 0.08);
    --py-text: #f3f4f6;
    --py-text-soft: #e5e7eb;
    --py-text-muted: #a2aab7;
    --py-accent-soft: rgba(15, 118, 110, 0.22);
    --py-focus-ring: rgba(45, 212, 191, 0.18);
  }

  html[data-perfectyou-coach] body.py-coach-page {
    background: var(--py-app-bg);
  }

  html[data-perfectyou-coach] .py-coach-app-sidebar,
  html[data-perfectyou-coach] .py-coach-topbar,
  html[data-perfectyou-coach] .py-coach-composer-box,
  html[data-perfectyou-coach] .py-coach-checkin-panel details {
    border-color: var(--py-border);
    background: var(--py-surface);
    color: var(--py-text);
  }

  html[data-perfectyou-coach] .py-coach-history-item,
  html[data-perfectyou-coach] .py-coach-archive-card,
  html[data-perfectyou-coach] .py-coach-exercise-detail,
  html[data-perfectyou-coach] .py-health-card-compact .py-health-stats span,
  html[data-perfectyou-coach] .py-coach-chat-card.is-user,
  html[data-perfectyou-coach] .py-coach-chat-card.is-assistant.is-typing {
    background: var(--py-surface-soft);
  }

  html[data-perfectyou-coach] .py-coach-composer {
    background:
      linear-gradient(180deg, rgba(16, 18, 20, 0), rgba(16, 18, 20, 0.96) 28%, var(--py-app-bg) 100%);
  }
}

/* PerfectYou Coach explicit light/dark theme. */
html[data-perfectyou-coach][data-perfectyou-theme="light"] {
  color-scheme: light;
  --py-app-bg: #f6f7f9;
  --py-surface: #ffffff;
  --py-surface-soft: #eef2f6;
  --py-surface-raised: #fbfcfd;
  --py-border: #d8e0e8;
  --py-border-soft: rgba(18, 24, 38, 0.1);
  --py-text: #111827;
  --py-text-soft: #334155;
  --py-text-muted: #667085;
  --py-accent: #0f766e;
  --py-accent-strong: #0b5f59;
  --py-accent-soft: #e5f6f2;
  --py-focus-ring: rgba(15, 118, 110, 0.18);
  --py-coach-user-bg: #e8eef5;
  --py-coach-chat-bg: transparent;
  --py-coach-composer-fade: rgba(246, 247, 249, 0.96);
  --py-coach-shadow: 0 18px 42px rgba(18, 24, 38, 0.12);
}

html[data-perfectyou-coach][data-perfectyou-theme="dark"] {
  color-scheme: dark;
  --py-app-bg: #101214;
  --py-surface: #171b20;
  --py-surface-soft: #222831;
  --py-surface-raised: #1b2027;
  --py-border: #303842;
  --py-border-soft: rgba(255, 255, 255, 0.1);
  --py-text: #f4f7fb;
  --py-text-soft: #dce4ee;
  --py-text-muted: #a7b1bf;
  --py-accent: #28c7b7;
  --py-accent-strong: #5eead4;
  --py-accent-soft: rgba(40, 199, 183, 0.14);
  --py-focus-ring: rgba(45, 212, 191, 0.22);
  --py-coach-user-bg: #26313c;
  --py-coach-chat-bg: transparent;
  --py-coach-composer-fade: rgba(16, 18, 20, 0.96);
  --py-coach-shadow: 0 20px 54px rgba(0, 0, 0, 0.36);
}

html[data-perfectyou-coach] body.py-coach-page,
html[data-perfectyou-coach] body.py-app-shell {
  background: var(--py-app-bg);
  color: var(--py-text);
}

html[data-perfectyou-coach] .py-coach-app-sidebar,
html[data-perfectyou-coach] .py-coach-topbar {
  border-color: var(--py-border);
  background: color-mix(in srgb, var(--py-surface) 94%, transparent);
  color: var(--py-text);
}

html[data-perfectyou-coach] .py-coach-app-sidebar {
  box-shadow: 10px 0 34px color-mix(in srgb, var(--py-text) 7%, transparent);
}

html[data-perfectyou-coach] .py-coach-topbar {
  box-shadow: 0 1px 0 var(--py-border-soft);
}

html[data-perfectyou-coach] .py-brand,
html[data-perfectyou-coach] .py-coach-side-section h2,
html[data-perfectyou-coach] .py-coach-history-item > button,
html[data-perfectyou-coach] .py-coach-chat-card,
html[data-perfectyou-coach] .py-coach-chat-card strong,
html[data-perfectyou-coach] .py-coach-thread .py-plan-card,
html[data-perfectyou-coach] .py-coach-thread .py-plan-card h3,
html[data-perfectyou-coach] .py-coach-thread .py-plan-card strong,
html[data-perfectyou-coach] .py-coach-checkin-panel summary,
html[data-perfectyou-coach] .py-coach-context-card strong {
  color: var(--py-text);
}

html[data-perfectyou-coach] .py-links,
html[data-perfectyou-coach] .py-links a,
html[data-perfectyou-coach] .py-language-switch,
html[data-perfectyou-coach] .py-coach-side-label,
html[data-perfectyou-coach] .py-coach-context-card > span,
html[data-perfectyou-coach] .py-coach-search,
html[data-perfectyou-coach] .py-health-sync,
html[data-perfectyou-coach] .py-coach-history-item > span,
html[data-perfectyou-coach] .py-coach-history-actions button,
html[data-perfectyou-coach] .py-coach-message-actions button,
html[data-perfectyou-coach] .py-code-copy,
html[data-perfectyou-coach] .py-coach-composer-meta,
html[data-perfectyou-coach] .py-coach-chat-card p,
html[data-perfectyou-coach] .py-coach-thread .py-plan-card p,
html[data-perfectyou-coach] .py-coach-thread .py-plan-card li,
html[data-perfectyou-coach] .py-coach-archive-card p,
html[data-perfectyou-coach] .py-coach-nutrition-item p,
html[data-perfectyou-coach] .py-app-copy,
html[data-perfectyou-coach] .py-form label {
  color: var(--py-text-muted);
}

html[data-perfectyou-coach] .py-links a:hover,
html[data-perfectyou-coach] .py-links a:focus-visible {
  background: var(--py-surface-soft);
  color: var(--py-text);
}

html[data-perfectyou-coach] .py-mark {
  background: #111827;
  color: #d9f2eb;
}

html[data-perfectyou-coach][data-perfectyou-theme="dark"] .py-mark {
  background: #0b1220;
  color: #8ff5e7;
}

html[data-perfectyou-coach] .py-theme-toggle,
html[data-perfectyou-coach] .py-language-switch select,
html[data-perfectyou-coach] .py-icon-button,
html[data-perfectyou-coach] .py-button-secondary,
html[data-perfectyou-coach] .py-button-ghost {
  min-height: 38px;
  border: 1px solid var(--py-border);
  border-radius: 8px;
  background: var(--py-surface);
  color: var(--py-text);
  box-shadow: none;
}

html[data-perfectyou-coach] .py-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 850;
}

html[data-perfectyou-coach] .py-theme-toggle:hover,
html[data-perfectyou-coach] .py-theme-toggle:focus-visible,
html[data-perfectyou-coach] .py-icon-button:hover,
html[data-perfectyou-coach] .py-icon-button:focus-visible,
html[data-perfectyou-coach] .py-button-secondary:hover,
html[data-perfectyou-coach] .py-button-ghost:hover {
  border-color: var(--py-accent);
  background: var(--py-surface-soft);
  color: var(--py-text);
  outline: none;
}

html[data-perfectyou-coach] .py-button-primary,
html[data-perfectyou-coach] .py-coach-send {
  border-color: transparent;
  background: var(--py-accent);
  color: #ffffff;
  box-shadow: 0 12px 26px color-mix(in srgb, var(--py-accent) 28%, transparent);
}

html[data-perfectyou-coach] .py-button-primary:hover,
html[data-perfectyou-coach] .py-coach-send:hover {
  background: var(--py-accent-strong);
}

html[data-perfectyou-coach][data-perfectyou-theme="dark"] .py-button-primary,
html[data-perfectyou-coach][data-perfectyou-theme="dark"] .py-coach-send {
  color: #071211;
}

html[data-perfectyou-coach] .py-coach-side-section,
html[data-perfectyou-coach] .py-code-block header {
  border-color: var(--py-border-soft);
}

html[data-perfectyou-coach] .py-health-card-compact,
html[data-perfectyou-coach] .py-health-card-compact .py-health-actions {
  color: var(--py-text);
}

html[data-perfectyou-coach] .py-health-card-compact .py-health-stats span,
html[data-perfectyou-coach] .py-daily-mission-shell,
html[data-perfectyou-coach] .py-food-photo-shell,
html[data-perfectyou-coach] .py-food-result-card,
html[data-perfectyou-coach] .py-food-file-picker,
html[data-perfectyou-coach] .py-workout-shell,
html[data-perfectyou-coach] .py-mission-task,
html[data-perfectyou-coach] .py-workout-exercise,
html[data-perfectyou-coach] .py-coach-history-item,
html[data-perfectyou-coach] .py-coach-archive-card,
html[data-perfectyou-coach] .py-coach-exercise-detail,
html[data-perfectyou-coach] .py-coach-context-card,
html[data-perfectyou-coach] .py-coach-checkin-panel details {
  border-color: var(--py-border-soft);
  background: var(--py-surface-soft);
  color: var(--py-text);
}

html[data-perfectyou-coach] .py-daily-mission h1,
html[data-perfectyou-coach] .py-food-photo-head h2,
html[data-perfectyou-coach] .py-food-result-card h3,
html[data-perfectyou-coach] .py-food-macro-grid strong,
html[data-perfectyou-coach] .py-workout-head h2,
html[data-perfectyou-coach] .py-mission-task strong,
html[data-perfectyou-coach] .py-workout-exercise-body h3 {
  color: var(--py-text);
}

html[data-perfectyou-coach] .py-daily-mission p,
html[data-perfectyou-coach] .py-daily-mission small,
html[data-perfectyou-coach] .py-food-photo-head p,
html[data-perfectyou-coach] .py-food-result-card p,
html[data-perfectyou-coach] .py-food-result-card small,
html[data-perfectyou-coach] .py-food-macro-grid small,
html[data-perfectyou-coach] .py-mission-task small,
html[data-perfectyou-coach] .py-workout-exercise p {
  color: var(--py-text-muted);
}

html[data-perfectyou-coach] .py-food-macro-grid span {
  border-color: var(--py-border-soft);
  background: var(--py-surface);
}

html[data-perfectyou-coach] .py-mission-task.is-done {
  border-color: color-mix(in srgb, var(--py-accent) 42%, var(--py-border));
  background: var(--py-accent-soft);
}

html[data-perfectyou-coach] .py-coach-history-item.is-active,
html[data-perfectyou-coach] .py-coach-archive-card.is-current {
  border-color: color-mix(in srgb, var(--py-accent) 42%, var(--py-border));
  background: var(--py-accent-soft);
}

html[data-perfectyou-coach] .py-coach-search input,
html[data-perfectyou-coach] .py-form input,
html[data-perfectyou-coach] .py-form select,
html[data-perfectyou-coach] .py-form textarea,
html[data-perfectyou-coach] .py-health-link input {
  border: 1px solid var(--py-border);
  background: var(--py-surface);
  color: var(--py-text);
}

html[data-perfectyou-coach] .py-coach-search input::placeholder,
html[data-perfectyou-coach] .py-coach-composer textarea::placeholder,
html[data-perfectyou-coach] .py-form input::placeholder,
html[data-perfectyou-coach] .py-form textarea::placeholder {
  color: color-mix(in srgb, var(--py-text-muted) 76%, transparent);
}

html[data-perfectyou-coach] .py-coach-search input:focus,
html[data-perfectyou-coach] .py-coach-composer textarea:focus,
html[data-perfectyou-coach] .py-form input:focus,
html[data-perfectyou-coach] .py-form select:focus,
html[data-perfectyou-coach] .py-form textarea:focus {
  border-color: var(--py-accent);
  box-shadow: 0 0 0 3px var(--py-focus-ring);
  outline: none;
}

html[data-perfectyou-coach] .py-coach-chat-main {
  background: var(--py-coach-chat-bg);
}

html[data-perfectyou-coach] .py-coach-chat-card.is-user {
  background: var(--py-coach-user-bg);
  color: var(--py-text);
}

html[data-perfectyou-coach] .py-coach-chat-card.is-user p,
html[data-perfectyou-coach] .py-coach-chat-card.is-user strong {
  color: var(--py-text);
}

html[data-perfectyou-coach] .py-coach-chat-card.is-assistant.is-typing {
  background: var(--py-surface-soft);
  color: var(--py-text);
}

html[data-perfectyou-coach] .py-typing-dots span {
  background: var(--py-text-muted);
}

html[data-perfectyou-coach] .py-coach-message-actions button:hover,
html[data-perfectyou-coach] .py-code-copy:hover,
html[data-perfectyou-coach] .py-coach-history-actions button:hover {
  background: var(--py-surface-soft);
  color: var(--py-text);
}

html[data-perfectyou-coach] .py-coach-thread .py-plan-card {
  background: transparent;
}

html[data-perfectyou-coach] .py-coach-thread .py-plan-card .py-alignment,
html[data-perfectyou-coach] .py-coach-thread .py-plan-card .py-exercise,
html[data-perfectyou-coach] .py-coach-thread .py-plan-card .py-list,
html[data-perfectyou-coach] .py-alignment {
  border: 1px solid var(--py-border-soft);
  background: var(--py-surface-raised);
  color: var(--py-text);
  box-shadow: none;
}

html[data-perfectyou-coach] .py-coach-thread .py-plan-card .py-alignment p,
html[data-perfectyou-coach] .py-coach-thread .py-plan-card .py-alignment strong,
html[data-perfectyou-coach] .py-alignment p,
html[data-perfectyou-coach] .py-alignment strong,
html[data-perfectyou-coach] .py-exercise-body h3,
html[data-perfectyou-coach] .py-exercise-body strong {
  color: var(--py-text);
}

html[data-perfectyou-coach] .py-exercise-body p,
html[data-perfectyou-coach] .py-exercise-body li {
  color: var(--py-text-muted);
}

html[data-perfectyou-coach] .py-pill,
html[data-perfectyou-coach] .py-coach-badge {
  background: var(--py-surface-soft);
  color: var(--py-text-soft);
}

html[data-perfectyou-coach][data-perfectyou-theme="dark"] .py-pill,
html[data-perfectyou-coach][data-perfectyou-theme="dark"] .py-coach-badge {
  background: rgba(255, 255, 255, 0.08);
}

html[data-perfectyou-coach] .py-coach-composer {
  background:
    linear-gradient(180deg, transparent 0%, var(--py-coach-composer-fade) 28%, var(--py-app-bg) 100%);
}

html[data-perfectyou-coach] .py-coach-composer-box {
  border-color: var(--py-border);
  background: var(--py-surface);
  color: var(--py-text);
  box-shadow: var(--py-coach-shadow);
}

html[data-perfectyou-coach] .py-coach-composer textarea {
  color: var(--py-text);
}

html[data-perfectyou-coach] .py-code-block {
  border-color: #263244;
  background: #111827;
  color: #e5e7eb;
}

html[data-perfectyou-coach] .py-code-block pre,
html[data-perfectyou-coach] .py-code-block code,
html[data-perfectyou-coach] .py-code-block header {
  color: #e5e7eb;
}

html[data-perfectyou-coach] .py-tabbar {
  border-color: var(--py-border);
  background: color-mix(in srgb, var(--py-surface) 94%, transparent);
  box-shadow: 0 14px 34px color-mix(in srgb, var(--py-text) 14%, transparent);
}

html[data-perfectyou-coach] .py-tabbar a {
  color: var(--py-text-muted);
}

html[data-perfectyou-coach] .py-tabbar a[aria-current="page"],
html[data-perfectyou-coach] .py-tabbar a:hover {
  background: var(--py-accent-soft);
  color: var(--py-text);
}

@media (max-width: 760px) {
  html[data-perfectyou-coach] .py-coach-app-frame,
  html[data-perfectyou-coach] .py-coach-chat-main,
  html[data-perfectyou-coach] .py-coach-chat-surface,
  html[data-perfectyou-coach] .py-coach-thread,
  html[data-perfectyou-coach] .py-coach-thread .py-plan-card,
  html[data-perfectyou-coach] .py-coach-chat-card,
  html[data-perfectyou-coach] .py-coach-composer-box,
  html[data-perfectyou-coach] .py-coach-composer-meta {
    min-width: 0;
    max-width: 100%;
  }

  html[data-perfectyou-coach] .py-coach-thread .py-plan-card,
  html[data-perfectyou-coach] .py-coach-chat-card,
  html[data-perfectyou-coach] .py-alignment,
  html[data-perfectyou-coach] .py-list,
  html[data-perfectyou-coach] .py-exercise {
    overflow-wrap: anywhere;
  }

  html[data-perfectyou-coach] .py-coach-topbar-spacer {
    min-width: 0;
  }

  html[data-perfectyou-coach] .py-coach-topbar .py-links {
    flex: 0 0 auto;
    max-width: none;
    overflow: visible;
  }

  html[data-perfectyou-coach] .py-theme-toggle {
    min-width: 68px;
    min-height: 36px;
    padding: 0 10px;
    font-size: 0.82rem;
  }

  html[data-perfectyou-coach] .py-coach-topbar .py-links {
    gap: 8px;
  }

  html[data-perfectyou-coach] .py-pill-row {
    max-width: 100%;
  }

  html[data-perfectyou-coach] .py-pill,
  html[data-perfectyou-coach] .py-coach-badge {
    max-width: 100%;
    white-space: normal;
  }

  html[data-perfectyou-coach] .py-coach-topbar .py-language-switch {
    display: none;
  }
}

html[data-perfectyou-coach] .py-coach-sidebar-card-button {
  display: grid;
  width: 100%;
  min-width: 0;
  gap: 5px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-align: left;
}

html[data-perfectyou-coach] .py-coach-sidebar-card-button strong {
  overflow: hidden;
  color: var(--py-text);
  font-size: 0.9rem;
  font-weight: 850;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-perfectyou-coach] .py-coach-sidebar-card-button span,
html[data-perfectyou-coach] .py-coach-sidebar-card-button em {
  overflow: hidden;
  color: var(--py-text-muted);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 760;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-perfectyou-coach] .py-coach-sidebar-card-button em {
  color: var(--py-accent);
}

html[data-perfectyou-coach] .py-coach-archive-card.is-active,
html[data-perfectyou-coach] .py-coach-exercise-detail.is-active {
  border-color: color-mix(in srgb, var(--py-accent) 42%, var(--py-border));
  background: var(--py-accent-soft);
}

html[data-perfectyou-coach] .py-coach-archive-card:hover,
html[data-perfectyou-coach] .py-coach-exercise-detail:hover {
  border-color: color-mix(in srgb, var(--py-accent) 34%, var(--py-border));
}

html[data-perfectyou-coach] .py-coach-exercise-chat {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

html[data-perfectyou-coach] .py-coach-exercise-media {
  display: grid;
  gap: 10px;
  min-width: 0;
}

html[data-perfectyou-coach] .py-coach-exercise-chat .py-exercise-image {
  width: 100%;
  height: auto;
  max-height: 360px;
  aspect-ratio: auto;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--py-border-soft);
  background: var(--py-surface-soft);
}

html[data-perfectyou-coach] .py-exercise-image-missing {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 124px;
  padding: 16px;
  color: var(--py-muted);
  font-size: 0.88rem;
  font-weight: 800;
  text-align: center;
}

html[data-perfectyou-coach] .py-exercise-video-wrap {
  display: grid;
  gap: 6px;
  margin: 0;
}

html[data-perfectyou-coach] .py-exercise-video {
  width: 100%;
  max-height: 360px;
  border: 1px solid var(--py-border-soft);
  border-radius: 8px;
  background: #050607;
}

html[data-perfectyou-coach] .py-exercise-video-wrap figcaption {
  color: var(--py-muted);
  font-size: 0.78rem;
  font-weight: 800;
}

html[data-perfectyou-coach] .py-coach-thread .py-exercise-image {
  width: 100%;
  height: auto;
  max-height: 420px;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  background: var(--py-surface-soft);
}

html[data-perfectyou-coach] .py-coach-exercise-chat-body {
  display: grid;
  gap: 8px;
}

html[data-perfectyou-coach] .py-coach-exercise-chat-body p {
  margin: 0;
}

html[data-perfectyou-coach] .py-coach-composer-box .py-coach-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  min-width: 44px;
  max-width: 44px;
  height: 44px;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0;
  cursor: pointer;
  font: inherit;
  font-size: 0;
  font-weight: 850;
  line-height: 1;
  overflow: hidden;
  white-space: nowrap;
}

html[data-perfectyou-coach] .py-coach-composer-box .py-coach-send::before {
  content: "↑";
  font-size: 1.25rem;
  line-height: 1;
  transform: translateY(-1px);
}

html[data-perfectyou-coach] .py-coach-composer-box .py-coach-send:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px var(--py-focus-ring),
    0 12px 26px color-mix(in srgb, var(--py-accent) 28%, transparent);
}

@media (max-width: 620px) {
  html[data-perfectyou-coach] .py-mission-task-grid,
  html[data-perfectyou-coach] .py-workout-exercise {
    grid-template-columns: 1fr;
  }

  html[data-perfectyou-coach] .py-daily-mission-head,
  html[data-perfectyou-coach] .py-workout-head,
  html[data-perfectyou-coach] .py-daily-actions {
    align-items: stretch;
    flex-direction: column;
  }

  html[data-perfectyou-coach] .py-coach-exercise-chat {
    grid-template-columns: 1fr;
  }

  html[data-perfectyou-coach] .py-coach-exercise-chat .py-exercise-image {
    max-width: 100%;
  }

  html[data-perfectyou-coach] .py-coach-composer-box .py-coach-send {
    flex-basis: 42px;
    width: 42px;
    min-width: 42px;
    max-width: 42px;
    height: 42px;
    min-height: 42px;
  }
}
/* PerfectYou body-goal-to-daily-plan flow */
.py-flow-page {
  background: #f4f2ec;
  color: #171717;
  padding-bottom: 84px;
}

.py-flow-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 36px);
  background: rgba(244, 242, 236, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(23, 23, 23, 0.08);
}

.py-flow {
  width: min(1120px, calc(100% - 24px));
  margin: 0 auto;
  padding: 24px 0 110px;
}

.py-flow-screen,
.py-tab-panel {
  display: none;
}

.py-flow-screen.is-active,
.py-tab-panel.is-active {
  display: block;
}

.py-flow-screen > h1,
.py-today-head h1,
.py-tab-panel > h1 {
  max-width: 760px;
  margin: 8px 0 18px;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.py-goal-filter,
.py-segment-group,
.py-flow-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.py-goal-filter button,
.py-segment-group button,
.py-tabbar button {
  border: 1px solid rgba(23, 23, 23, 0.14);
  background: #fffaf0;
  color: #171717;
  border-radius: 8px;
  padding: 10px 12px;
  font-weight: 700;
  cursor: pointer;
}

.py-goal-filter button.is-active,
.py-segment-group button.is-active,
.py-tabbar button.is-active {
  background: #153f39;
  color: #fff;
}

.py-goal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.py-goal-card {
  display: grid;
  grid-template-rows: 180px auto auto auto auto auto;
  gap: 7px;
  min-height: 330px;
  padding: 0 0 14px;
  overflow: hidden;
  text-align: left;
  background: #fffaf0;
  border: 1px solid rgba(23, 23, 23, 0.1);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(23, 23, 23, 0.08);
  cursor: pointer;
}

.py-goal-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: #ded8c9;
}

.py-goal-card strong,
.py-goal-card span,
.py-goal-card small {
  margin: 0 14px;
}

.py-flow-form,
.py-daily-card,
.py-evening-checkin,
.py-ready-summary,
.py-tab-panel {
  background: #fffaf0;
  border: 1px solid rgba(23, 23, 23, 0.1);
  border-radius: 8px;
  padding: clamp(16px, 3vw, 28px);
}

.py-reality-panel {
  display: grid;
  gap: 18px;
  border: 1px solid rgba(23, 23, 23, 0.09);
  border-radius: 8px;
  padding: clamp(18px, 4vw, 32px);
  background:
    radial-gradient(circle at 92% 8%, rgba(142, 216, 194, 0.28), transparent 28%),
    linear-gradient(135deg, #fffaf0, #edf2ec);
  box-shadow: 0 22px 60px rgba(23, 23, 23, 0.1);
}

.py-reality-head {
  display: grid;
  gap: 6px;
}

.py-reality-head p,
.py-reality-zones article > span {
  margin: 0;
  color: #0f766e;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.py-reality-head h2 {
  margin: 0;
  color: #101820;
  font-size: clamp(2rem, 6vw, 4.6rem);
  line-height: 0.98;
}

.py-reality-head > span,
.py-reality-promise {
  max-width: 760px;
  color: #5f6f67;
  font-size: 1.03rem;
  font-weight: 800;
}

.py-reality-zones {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.py-reality-zones article,
.py-reality-table {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(23, 23, 23, 0.09);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 250, 240, 0.78);
}

.py-reality-zones ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: #26332f;
  font-weight: 750;
}

.py-reality-table h2 {
  margin: 0;
  font-size: 1.35rem;
}

.py-reality-row {
  display: grid;
  grid-template-columns: 0.7fr 1.2fr 1.2fr;
  gap: 10px;
  align-items: start;
  border-top: 1px solid rgba(23, 23, 23, 0.08);
  padding-top: 10px;
}

.py-reality-row span::before {
  content: "Kann: ";
  color: #0f766e;
  font-weight: 950;
}

.py-reality-row small {
  color: #7a5249;
  font-size: 0.95rem;
  font-weight: 800;
}

.py-reality-row small::before {
  content: "Nicht: ";
  color: #b24a3a;
  font-weight: 950;
}

.py-setup-step {
  display: none;
}

.py-setup-step.is-active {
  display: grid;
  gap: 14px;
}

.py-option-list {
  display: grid;
  gap: 10px;
  padding: 0;
  border: 0;
}

.py-option-list-inline {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.py-option-list label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(23, 23, 23, 0.1);
  border-radius: 8px;
  background: #fff;
}

.py-main-tabs {
  display: grid;
  gap: 16px;
}

.py-setup-step > span {
  color: #5f6f67;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.py-daily-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 34%);
  gap: clamp(16px, 4vw, 42px);
  align-items: stretch;
  min-height: 330px;
  overflow: hidden;
  border: 1px solid rgba(23, 23, 23, 0.08);
  border-radius: 8px;
  padding: clamp(20px, 5vw, 42px);
  background:
    radial-gradient(circle at 78% 18%, rgba(239, 117, 95, 0.22), transparent 30%),
    linear-gradient(135deg, #10211f 0%, #153f39 42%, #fff4df 100%);
  box-shadow: 0 24px 70px rgba(16, 33, 31, 0.22);
  color: #fffaf0;
}

.py-daily-hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  gap: 12px;
  max-width: 620px;
}

.py-daily-day {
  width: fit-content;
  margin: 0;
  border: 1px solid rgba(255, 250, 240, 0.28);
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(255, 250, 240, 0.12);
  color: #ffe4b7;
  font-size: 0.86rem;
  font-weight: 900;
}

.py-daily-hero h1 {
  margin: 0;
  font-size: clamp(2.6rem, 8vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.py-daily-hero p:not(.py-daily-day) {
  margin: 0;
  color: rgba(255, 250, 240, 0.82);
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  font-weight: 800;
}

.py-course-progress {
  display: grid;
  grid-template-columns: minmax(120px, 260px) auto;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}

.py-course-progress span {
  display: block;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.24);
}

.py-course-progress i {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8ed8c2, #d8a631);
  transition: width 260ms ease;
}

.py-course-progress strong {
  color: #fffaf0;
  font-size: 0.96rem;
}

.py-goal-visual {
  position: relative;
  min-height: 260px;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 250, 240, 0.45), rgba(255, 250, 240, 0.1));
}

.py-goal-visual img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  object-position: center top;
  filter: saturate(1.04) contrast(1.03);
}

.py-goal-silhouette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(255, 250, 240, 0.78) 0 11%, transparent 12%),
    radial-gradient(ellipse at 50% 60%, rgba(255, 250, 240, 0.66) 0 24%, transparent 25%),
    linear-gradient(180deg, rgba(142, 216, 194, 0.35), rgba(239, 117, 95, 0.2));
}

.py-mission-section {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.py-mission-section h2,
.py-checkin-card h2 {
  margin: 0;
  font-size: clamp(1.55rem, 4vw, 2.4rem);
  line-height: 1.04;
}

.py-mission-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.py-mission-tile {
  display: grid;
  min-height: 210px;
  gap: 12px;
  align-content: start;
  border: 1px solid rgba(23, 23, 23, 0.09);
  border-radius: 8px;
  padding: 16px;
  background: #fffaf0;
  box-shadow: 0 14px 34px rgba(23, 23, 23, 0.08);
}

.py-mission-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: #153f39;
  color: #ffe4b7;
  font-size: 1.4rem;
  font-weight: 950;
}

.py-mission-tile > strong {
  font-size: 1.25rem;
  line-height: 1;
}

.py-mission-values {
  display: grid;
  gap: 5px;
  color: #5f6f67;
  font-weight: 850;
}

.py-mission-values span:first-child {
  color: #171717;
  font-size: 1.35rem;
  font-weight: 950;
}

.py-mission-action {
  display: inline-flex;
  min-height: 42px;
  width: 100%;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(23, 23, 23, 0.12);
  border-radius: 8px;
  background: #153f39;
  color: #fffaf0;
  cursor: pointer;
  font-weight: 950;
  text-align: center;
}

.py-mission-action input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.py-mission-upload {
  margin: 0;
}

.py-mission-tile .py-message {
  min-height: 0;
}

.py-metric-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.py-metric-strip span {
  display: grid;
  gap: 3px;
  padding: 12px;
  background: #edf2ec;
  border-radius: 8px;
}

.py-plan-daily-card,
.py-plan-nutrition-card,
.py-plan-phases {
  display: grid;
  gap: clamp(14px, 2.4vw, 22px);
  margin-top: 16px;
  padding: clamp(16px, 3vw, 28px);
  border: 1px solid rgba(23, 23, 23, 0.08);
  border-radius: 24px;
  background: linear-gradient(145deg, #ffffff 0%, #f6f8f5 100%);
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.08);
}

.py-plan-daily-card {
  background:
    radial-gradient(circle at 94% 8%, rgba(20, 132, 116, 0.18), transparent 34%),
    linear-gradient(145deg, #111827 0%, #19231f 100%);
  color: #fffaf0;
}

.py-plan-section-head {
  display: grid;
  gap: 6px;
}

.py-plan-section-head span {
  color: #148474;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.py-plan-daily-card .py-plan-section-head span {
  color: #71e5c9;
}

.py-plan-section-head h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.6rem);
  line-height: 1.02;
}

.py-plan-section-head p {
  margin: 0;
  color: #667085;
  font-weight: 750;
}

.py-plan-daily-card .py-plan-section-head p {
  color: rgba(255, 250, 240, 0.72);
}

.py-plan-exercise-list {
  display: grid;
  gap: 12px;
}

.py-plan-exercise-card {
  display: grid;
  grid-template-columns: minmax(92px, 150px) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  min-height: 150px;
  padding: 10px;
  border: 1px solid rgba(255, 250, 240, 0.12);
  border-radius: 20px;
  background: rgba(255, 250, 240, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.py-plan-exercise-media {
  position: relative;
  min-height: 132px;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(255, 250, 240, 0.08);
}

.py-plan-exercise-media img,
.py-plan-exercise-media video {
  width: 100%;
  height: 100%;
  min-height: 132px;
  object-fit: cover;
  display: block;
}

.py-plan-media-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 132px;
  place-items: center;
  background: linear-gradient(145deg, rgba(113, 229, 201, 0.2), rgba(255, 250, 240, 0.08));
}

.py-plan-media-placeholder span {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.16);
  font-size: 1.5rem;
  font-weight: 950;
}

.py-plan-video-link {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #fffaf0;
  color: #111827;
  font-size: 0.78rem;
  font-weight: 950;
  text-decoration: none;
}

.py-plan-exercise-body {
  display: grid;
  align-content: center;
  gap: 9px;
  min-width: 0;
  padding: 4px 4px 4px 0;
}

.py-plan-exercise-body strong {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.py-plan-exercise-body p,
.py-plan-exercise-body span {
  margin: 0;
  color: rgba(255, 250, 240, 0.74);
  font-size: 0.94rem;
  line-height: 1.42;
}

.py-plan-exercise-body b,
.py-plan-prescription {
  color: #fffaf0;
}

.py-plan-empty {
  margin: 0;
  color: rgba(255, 250, 240, 0.74);
  font-weight: 800;
}

.py-plan-nutrition-card h3,
.py-plan-rules h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.py-recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.py-recipe-card {
  display: grid;
  gap: 7px;
  min-height: 150px;
  padding: 16px;
  border: 1px solid rgba(23, 23, 23, 0.08);
  border-radius: 18px;
  background: #fffaf0;
}

.py-recipe-card span {
  color: #148474;
  font-size: 0.8rem;
  font-weight: 950;
}

.py-recipe-card strong {
  font-size: 1.12rem;
}

.py-recipe-card p {
  margin: 0;
  color: #667085;
  line-height: 1.42;
}

.py-plan-rules ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.py-plan-rules li {
  padding: 10px 12px;
  border-radius: 14px;
  background: #edf2ec;
  color: #111827;
  font-weight: 750;
}

.py-phase-list {
  display: grid;
  gap: 10px;
}

.py-phase-list article {
  padding: 12px;
  border: 1px solid rgba(23, 23, 23, 0.09);
  border-radius: 8px;
}

@media (min-width: 900px) {
  .py-plan-exercise-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .py-plan-exercise-card {
    grid-template-columns: 1fr;
  }

  .py-plan-exercise-body {
    padding: 2px;
  }
}

.py-evening-checkin {
  margin-top: 14px;
}

.py-checkin-card {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(23, 23, 23, 0.09);
  border-radius: 8px;
  padding: clamp(16px, 3vw, 24px);
  background: #101820;
  color: #fffaf0;
  box-shadow: 0 18px 42px rgba(16, 24, 32, 0.18);
}

.py-readiness-row,
.py-checkin-chip-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.py-readiness-row button,
.py-checkin-chip-row label {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(255, 250, 240, 0.14);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.08);
  color: #fffaf0;
  cursor: pointer;
  font-weight: 950;
}

.py-readiness-row button.is-active {
  background: #fffaf0;
  color: #101820;
}

.py-readiness-row button:nth-child(1) span {
  color: #10b981;
}

.py-readiness-row button:nth-child(2) span {
  color: #d8a631;
}

.py-readiness-row button:nth-child(3) span {
  color: #ef755f;
}

.py-checkin-chip-row input {
  width: 18px;
  height: 18px;
  accent-color: #8ed8c2;
}

.py-checkin-submit {
  width: 100%;
  min-height: 54px;
  background: #8ed8c2;
  color: #10211f;
}

.py-coach-floating {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: calc(82px + env(safe-area-inset-bottom));
  z-index: 30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid rgba(23, 23, 23, 0.14);
  border-radius: 999px;
  padding: 0 16px;
  background: #fffaf0;
  color: #153f39;
  box-shadow: 0 18px 42px rgba(23, 23, 23, 0.18);
  font-weight: 950;
}

.py-coach-floating.is-prominent {
  background: #ef755f;
  color: #fffaf0;
}

.py-profile-technical {
  margin-top: 16px;
}

.py-profile-technical a {
  display: block;
  margin-top: 8px;
}

.py-inline-upload {
  display: grid;
  gap: 8px;
}

@media (max-width: 780px) {
  .py-daily-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .py-goal-visual {
    min-height: 220px;
  }

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

  .py-reality-zones,
  .py-reality-row {
    grid-template-columns: 1fr;
  }

  .py-readiness-row,
  .py-checkin-chip-row {
    grid-template-columns: 1fr;
  }

  .py-flow-topbar {
    align-items: flex-start;
  }

  .py-goal-card {
    grid-template-rows: 160px auto auto auto auto auto;
  }
}

@media (max-width: 520px) {
  .py-course-progress {
    grid-template-columns: 1fr;
  }

  .py-mission-grid {
    grid-template-columns: 1fr;
  }

  .py-mission-tile {
    min-height: 0;
  }
}

/* Mobile onboarding refresh: Cal AI / Apple Fitness inspired app flow. */
body.py-flow-page {
  min-height: 100svh;
  background: #fff;
  color: #16131d;
}

body.py-flow-page::before {
  content: "";
  position: fixed;
  inset: auto 0 0;
  z-index: 35;
  height: 156px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 32%, #fff);
}

.py-flow-page .py-flow-topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 58px auto minmax(120px, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  min-height: 86px;
  padding: calc(12px + env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) 12px max(18px, env(safe-area-inset-left));
  border-bottom: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.py-flow-back {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: #f7f6fb;
  color: #1d1924;
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
}

.py-flow-page .py-brand {
  color: #1b1722;
  white-space: nowrap;
}

.py-flow-progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8e6eb;
}

.py-flow-progress i {
  display: block;
  width: 12.5%;
  height: 100%;
  border-radius: inherit;
  background: #1e1a26;
  transition: width 220ms ease;
}

.py-flow-progress-label {
  color: #8d8994;
  font-size: 0.88rem;
  font-weight: 900;
  white-space: nowrap;
}

.py-flow-page .py-language-switch {
  gap: 6px;
  color: #8d8994;
  font-size: 0.9rem;
  font-weight: 800;
}

.py-flow-page .py-language-switch select {
  min-height: 42px;
  border-color: #ebe9ee;
  border-radius: 14px;
  background: #fff;
}

.py-flow {
  width: min(860px, calc(100% - 40px));
  min-height: calc(100svh - 100px);
  padding: 36px 0 calc(150px + env(safe-area-inset-bottom));
}

.py-flow-screen.is-active {
  display: grid;
  align-content: start;
}

.py-flow-screen > .py-eyebrow {
  margin-bottom: 10px;
  color: #8e8a94;
  font-size: 0.76rem;
  letter-spacing: 0;
  text-transform: none;
}

.py-flow-screen > h1 {
  max-width: 820px;
  margin: 0;
  color: #050509;
  font-size: clamp(3.1rem, 8vw, 5.6rem);
  font-weight: 950;
  line-height: 1.08;
}

.py-flow-subtitle,
.py-step-copy {
  max-width: 720px;
  margin: 18px 0 0;
  color: #8c8a90;
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  font-weight: 650;
  line-height: 1.2;
}

.py-goal-filter {
  margin-top: 34px;
  padding: 5px;
  border-radius: 999px;
  background: #f0eff2;
}

.py-goal-filter button {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #6f6a75;
  padding: 10px 16px;
  font-weight: 900;
}

.py-goal-filter button.is-active {
  background: #fff;
  color: #050509;
  box-shadow: 0 8px 22px rgba(20, 18, 25, 0.08);
}

.py-goal-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.py-goal-card {
  grid-template-rows: 220px auto auto auto auto auto;
  min-height: 378px;
  border-color: #e8e6eb;
  border-width: 2px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 20px 44px rgba(21, 19, 29, 0.08);
}

.py-goal-card.is-selected {
  border-color: #1e1a26;
  box-shadow: 0 26px 60px rgba(21, 19, 29, 0.14);
}

.py-goal-card img {
  height: 220px;
  background: #f5f3f0;
}

.py-goal-card strong {
  color: #050509;
  font-size: 1.18rem;
  font-weight: 950;
}

.py-goal-card span,
.py-goal-card small {
  color: #7e7a84;
  font-weight: 750;
}

.py-reality-panel {
  margin-top: 28px;
  border-color: #ece9ef;
  border-radius: 30px;
  background:
    radial-gradient(circle at 80% 10%, rgba(112, 151, 232, 0.22), transparent 26%),
    radial-gradient(circle at 4% 12%, rgba(232, 105, 111, 0.16), transparent 24%),
    #fff;
  box-shadow: 0 28px 70px rgba(21, 19, 29, 0.11);
}

.py-reality-zones article,
.py-reality-table {
  border-color: #ece9ef;
  border-radius: 22px;
  background: rgba(248, 247, 250, 0.82);
}

.py-flow-form,
.py-ready-summary {
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.py-stepper {
  display: block;
}

.py-setup-step.is-active {
  min-height: calc(100svh - 250px);
  align-content: start;
  gap: 24px;
}

.py-setup-step > span {
  color: #8e8a94;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
}

.py-setup-step h2 {
  max-width: 820px;
  margin: 0;
  color: #050509;
  font-size: clamp(3rem, 7.5vw, 5.2rem);
  font-weight: 950;
  line-height: 1.08;
}

.py-setup-step .py-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.py-setup-step label {
  color: #77737d;
  font-size: 1rem;
  font-weight: 850;
}

.py-setup-step input:not([type="checkbox"]):not([type="radio"]),
.py-setup-step select,
.py-setup-step textarea {
  width: 100%;
  min-height: 64px;
  margin-top: 8px;
  border: 1px solid #e6e4ea;
  border-radius: 20px;
  background: #faf9fb;
  color: #14111b;
  padding: 14px 16px;
  font-size: 1.15rem;
  font-weight: 900;
  outline: 0;
}

.py-setup-step input[type="number"] {
  font-size: clamp(2rem, 6vw, 3.2rem);
  text-align: center;
}

.py-setup-step textarea {
  min-height: 120px;
  resize: vertical;
}

.py-segment-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 10px;
  margin-top: 8px;
  padding: 5px;
  border: 0;
  border-radius: 999px;
  background: #f0eff2;
}

.py-segment-group legend {
  grid-column: 1 / -1;
  margin: 0 0 6px;
  color: #77737d;
  font-weight: 850;
}

.py-segment-group button {
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #6f6a75;
  font-weight: 950;
}

.py-segment-group button.is-active {
  background: #fff;
  color: #050509;
  box-shadow: 0 8px 22px rgba(20, 18, 25, 0.08);
}

.py-option-list {
  gap: 12px;
  margin-top: 12px;
}

.py-option-list-inline {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.py-option-list legend {
  grid-column: 1 / -1;
  color: #77737d;
  font-weight: 900;
}

.py-option-list label {
  position: relative;
  min-height: 74px;
  border: 2px solid #eceaf0;
  border-radius: 22px;
  background: #fff;
  color: #1c1823;
  padding: 16px 18px;
  box-shadow: 0 12px 30px rgba(21, 19, 29, 0.04);
  font-size: 1.08rem;
  font-weight: 950;
}

.py-option-list label:has(input:checked) {
  border-color: #1e1a26;
  box-shadow: 0 16px 34px rgba(21, 19, 29, 0.08);
}

.py-option-list input {
  order: 2;
  width: 26px;
  height: 26px;
  margin-left: auto;
  accent-color: #1e1a26;
}

.py-food-file-picker {
  display: grid;
  min-height: 128px;
  place-items: center;
  border: 2px dashed #dedbe4;
  border-radius: 26px;
  background: #faf9fb;
  color: #1c1823;
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 950;
}

.py-food-file-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.py-flow-actions {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  left: max(20px, env(safe-area-inset-left));
  z-index: 70;
  display: grid;
  grid-template-columns: minmax(96px, 0.32fr) minmax(0, 1fr);
  gap: 10px;
  max-width: 860px;
  margin: 0 auto;
}

.py-flow-actions .py-button {
  min-height: 74px;
  border-radius: 999px;
  font-size: 1.22rem;
}

.py-flow-actions .py-button-primary {
  background: #1e1a26;
  color: #fff;
  box-shadow: 0 20px 44px rgba(20, 18, 25, 0.18);
}

.py-flow-actions .py-button-secondary {
  background: #f7f6fb;
  color: #1e1a26;
  border-color: transparent;
}

.py-flow-actions .py-button:disabled,
.py-flow-actions .py-button.py-hidden {
  display: none;
}

.py-flow-actions .py-button:only-child {
  grid-column: 1 / -1;
}

.py-flow-actions .py-goal-continue:disabled {
  display: inline-flex;
  background: #b9b7bc;
  color: #fff;
  box-shadow: none;
  cursor: default;
  transform: none;
}

.py-flow-actions:has(.py-button-secondary:disabled) {
  grid-template-columns: 1fr;
}

.py-message {
  min-height: 24px;
  color: #b24a3a;
  font-weight: 850;
}

.py-loader {
  margin-top: 28px;
  border-radius: 28px;
}

@media (max-width: 720px) {
  .py-flow-page .py-flow-topbar {
    grid-template-columns: 54px minmax(96px, 1fr) auto;
    gap: 10px;
  }

  .py-flow-page .py-brand,
  .py-flow-progress-label {
    display: none;
  }

  .py-flow-progress {
    grid-column: 2;
  }

  .py-flow-page .py-language-switch span {
    display: none;
  }

  .py-flow-page .py-language-switch select {
    max-width: 104px;
    padding: 8px 9px;
  }

  .py-flow {
    width: min(100% - 40px, 460px);
    padding-top: 18px;
  }

  .py-flow-screen > h1,
  .py-setup-step h2 {
    font-size: clamp(2.85rem, 10.6vw, 3.9rem);
  }

  .py-flow-subtitle,
  .py-step-copy {
    font-size: 1.14rem;
    line-height: 1.25;
  }

  .py-goal-filter {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    overflow-x: auto;
    margin-top: 26px;
    padding: 5px;
    scrollbar-width: none;
  }

  .py-goal-filter::-webkit-scrollbar {
    display: none;
  }

  .py-goal-filter button {
    flex: 0 0 auto;
    min-height: 46px;
    padding: 8px 16px;
    font-size: 0.98rem;
  }

  .py-goal-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .py-goal-card {
    grid-template-columns: 84px minmax(0, 1fr) 34px;
    grid-template-rows: repeat(5, auto);
    align-items: center;
    min-height: 112px;
    padding: 12px;
    border-radius: 22px;
  }

  .py-goal-card img {
    grid-row: 1 / span 5;
    width: 84px;
    height: 92px;
    border-radius: 16px;
  }

  .py-goal-card::after {
    content: "";
    display: block;
    grid-column: 3;
    grid-row: 1 / span 5;
    width: 28px;
    height: 28px;
    border: 2px solid #d9d6df;
    border-radius: 999px;
  }

  .py-goal-card.is-selected::after {
    border-color: #1e1a26;
    background:
      radial-gradient(circle at center, #fff 0 24%, transparent 26%),
      #1e1a26;
  }

  .py-goal-card strong,
  .py-goal-card span,
  .py-goal-card small {
    margin: 0 0 0 12px;
  }

  .py-goal-card strong {
    font-size: 1.02rem;
  }

  .py-goal-card span {
    font-size: 0.88rem;
    line-height: 1.18;
  }

  .py-goal-card small {
    display: none;
  }

  .py-reality-panel {
    border-radius: 26px;
    padding: 18px;
  }

  .py-setup-step .py-form-grid,
  .py-option-list-inline,
  .py-reality-zones,
  .py-reality-row {
    grid-template-columns: 1fr;
  }

  .py-flow-actions {
    grid-template-columns: 1fr;
  }

  .py-flow-actions .py-button-secondary:not(:disabled) {
    min-height: 52px;
    order: 2;
  }
}

@media (min-width: 721px) {
  .py-flow-actions {
    left: 50%;
    transform: translateX(-50%);
    width: min(860px, calc(100% - 40px));
  }
}

/* Premium app workflow: iOS-like home, mission, progress and settings surfaces. */
body.py-workflow-active {
  background: #f6f6f8;
  color: #16131d;
}

body.py-workflow-active::before {
  display: none;
}

.py-workflow-active .py-flow-topbar,
.py-workflow-active .py-flow-actions {
  display: none;
}

.py-workflow-active .py-flow {
  width: min(100% - 28px, 480px);
  min-height: 100svh;
  padding: calc(20px + env(safe-area-inset-top)) 0 calc(122px + env(safe-area-inset-bottom));
}

.py-workflow-active .py-main-tabs {
  display: block;
}

.py-workflow-active .py-tab-panel {
  display: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.py-workflow-active .py-tab-panel.is-active {
  display: grid;
  gap: 18px;
}

.py-workflow-active .py-tab-panel > h1 {
  margin: 0 0 2px;
  color: #17151d;
  font-size: 2rem;
  line-height: 1;
}

.py-workflow-head {
  display: grid;
  gap: 5px;
}

.py-workflow-head p,
.py-progress-card p,
.py-profile-summary span,
.py-coach-panel p {
  margin: 0;
  color: #86818c;
  font-weight: 850;
}

.py-workflow-head h1 {
  margin: 0;
  color: #09080c;
  font-size: clamp(2.05rem, 8.5vw, 3.15rem);
  line-height: 0.98;
}

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

.py-week-strip span {
  display: grid;
  min-height: 62px;
  place-items: center;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(20, 18, 25, 0.05);
}

.py-week-strip small {
  color: #9b96a0;
  font-size: 0.72rem;
  font-weight: 900;
}

.py-week-strip strong {
  color: #17151d;
  font-size: 1.08rem;
}

.py-week-strip .is-active {
  background: #17151d;
}

.py-week-strip .is-active small,
.py-week-strip .is-active strong {
  color: #fff;
}

.py-nutrition-dashboard {
  display: grid;
  gap: 12px;
}

.py-calorie-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  align-items: center;
  min-height: 154px;
  border-radius: 30px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 22px 54px rgba(21, 19, 29, 0.08);
}

.py-calorie-dashboard strong {
  color: #09080c;
  font-size: clamp(3rem, 13vw, 4.2rem);
  line-height: 0.9;
}

.py-calorie-dashboard span {
  color: #8d8792;
  font-size: 1.35rem;
  font-weight: 850;
}

.py-calorie-dashboard p,
.py-calorie-dashboard small {
  margin: 6px 0 0;
  color: #8d8792;
  font-weight: 850;
}

.py-calorie-ring {
  display: grid;
  width: 104px;
  height: 104px;
  place-items: center;
  border-radius: 999px;
  background:
    radial-gradient(circle closest-side, #fff 70%, transparent 72%),
    conic-gradient(#17151d calc(var(--pct, 0) * 1%), #edeaf1 0);
}

.py-calorie-ring i {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 999px;
  background: #f6f5f8;
  font-style: normal;
}

.py-macro-dashboard {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.py-macro-card {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 142px;
  overflow: hidden;
  border-radius: 24px;
  padding: 14px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(21, 19, 29, 0.06);
}

.py-macro-card::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background:
    radial-gradient(circle closest-side, #fff 62%, transparent 64%),
    conic-gradient(var(--macro-color, #17151d) calc(var(--pct, 0) * 1%), #edeaf1 0);
}

.py-macro-card strong {
  position: relative;
  z-index: 1;
  font-size: clamp(1.4rem, 7vw, 2rem);
  line-height: 1;
}

.py-macro-card small {
  color: #9a949f;
  font-size: 0.78rem;
}

.py-macro-card span {
  position: relative;
  z-index: 1;
  color: #8d8792;
  font-size: 0.84rem;
  font-weight: 850;
}

.py-macro-card i {
  position: absolute;
  right: 29px;
  bottom: 29px;
  z-index: 1;
  font-style: normal;
}

.py-macro-card.is-protein {
  --macro-color: #ee6d72;
}

.py-macro-card.is-carbs {
  --macro-color: #df9a65;
}

.py-macro-card.is-fat {
  --macro-color: #7199e8;
}

.py-nutrition-quality-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.py-nutrition-quality-card {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 132px;
  overflow: hidden;
  border-radius: 24px;
  padding: 14px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(21, 19, 29, 0.055);
}

.py-nutrition-quality-card strong {
  color: #09080c;
  font-size: clamp(1.35rem, 6vw, 1.95rem);
  line-height: 1;
}

.py-nutrition-quality-card span {
  color: #8d8792;
  font-size: 0.84rem;
  font-weight: 850;
}

.py-nutrition-quality-card i {
  display: grid;
  width: 60px;
  height: 60px;
  place-items: center;
  align-self: end;
  justify-self: center;
  border: 9px solid #f0eef5;
  border-radius: 999px;
  color: var(--quality-color, #9c7ade);
  font-style: normal;
}

.py-nutrition-quality-card.is-fiber {
  --quality-color: #9b77d9;
}

.py-nutrition-quality-card.is-sugar {
  --quality-color: #ed75a4;
}

.py-nutrition-quality-card.is-sodium {
  --quality-color: #dfad55;
}

.py-health-score-card {
  display: grid;
  gap: 14px;
  border-radius: 28px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(21, 19, 29, 0.065);
}

.py-health-score-card div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.py-health-score-card strong,
.py-health-score-card b {
  color: #09080c;
  font-size: 1.35rem;
  line-height: 1;
}

.py-health-score-card > span {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #efedf4;
}

.py-health-score-card i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ee6d72, #dfad55, #7bcead);
}

.py-health-score-card p {
  margin: 0;
  color: #8d8792;
  font-weight: 800;
}

.py-health-metrics {
  display: grid;
  gap: 10px;
}

.py-health-metrics h2 {
  margin: 0;
  color: #17151d;
  font-size: 1.45rem;
  line-height: 1;
}

.py-health-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.py-health-step-card,
.py-health-burn-card,
.py-health-water-card {
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(21, 19, 29, 0.065);
}

.py-health-step-card,
.py-health-burn-card {
  display: grid;
  min-height: 178px;
  padding: 18px;
}

.py-health-step-card span,
.py-health-burn-card span,
.py-health-water-card span {
  color: #8d8792;
  font-weight: 900;
}

.py-health-step-card strong,
.py-health-burn-card strong,
.py-health-water-card strong {
  color: #09080c;
  font-size: clamp(2rem, 9vw, 3.1rem);
  line-height: 0.95;
}

.py-health-step-card small {
  color: #8d8792;
  font-size: 1rem;
}

.py-health-ring {
  align-self: end;
  justify-self: center;
  display: grid;
  width: 104px;
  height: 104px;
  place-items: center;
  border-radius: 999px;
  background:
    radial-gradient(circle closest-side, #fff 68%, transparent 70%),
    conic-gradient(#17151d calc(var(--pct, 0) * 1%), #edeaf1 0);
}

.py-health-ring i {
  font-style: normal;
  font-size: 1.7rem;
}

.py-health-burn-card p {
  align-self: end;
  margin: 0;
  color: #17151d;
  font-size: 1.05rem;
  font-weight: 950;
}

.py-health-burn-card p small {
  color: #8d8792;
  font-size: 0.96rem;
}

.py-health-water-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 92px;
  padding: 16px;
}

.py-health-water-card > i {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 18px;
  background: #eef7ff;
  color: #5e9ed8;
  font-style: normal;
  font-size: 1.7rem;
}

.py-health-water-card strong {
  display: block;
  font-size: 1.6rem;
}

.py-health-water-card button {
  min-height: 48px;
  border: 1px solid #e3e0e8;
  border-radius: 999px;
  padding: 0 18px;
  background: #fff;
  color: #17151d;
  font-weight: 950;
}

.py-health-water-card > small {
  grid-column: 2 / -1;
  color: #9a949f;
  font-weight: 850;
}

.py-recent-uploads {
  display: grid;
  gap: 10px;
}

.py-recent-uploads h2 {
  margin: 0;
  color: #17151d;
  font-size: 1.45rem;
  line-height: 1;
}

.py-recent-upload-card,
.py-recent-empty {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 12px;
  min-height: 92px;
  border-radius: 24px;
  padding: 10px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(21, 19, 29, 0.06);
}

.py-recent-thumb {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border-radius: 18px;
  background:
    radial-gradient(circle at 35% 30%, rgba(238, 109, 114, 0.35), transparent 28%),
    linear-gradient(135deg, #f7e4d1, #e8eefb);
  font-weight: 950;
}

.py-recent-upload-card strong,
.py-recent-empty strong {
  display: block;
  color: #09080c;
  font-size: 1rem;
  line-height: 1.12;
}

.py-recent-upload-card span,
.py-recent-empty span {
  color: #8d8792;
  font-weight: 850;
}

.py-recent-upload-card button,
.py-recent-empty button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: #17151d;
  color: #fff;
  cursor: pointer;
  font-size: 1.4rem;
}

.py-recent-workout-list {
  display: grid;
  gap: 10px;
}

.py-recent-workout-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 96px;
  border-radius: 26px;
  padding: 12px;
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 118, 118, 0.22), transparent 34%),
    linear-gradient(135deg, #fff, #f8f7fb);
  box-shadow: 0 16px 36px rgba(21, 19, 29, 0.065);
}

.py-health-heart-thumb {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 44%, #fff 0 34%, transparent 35%),
    linear-gradient(135deg, #ff8e8e, #ffced0);
  color: #17151d;
  font-size: 1.8rem;
  font-weight: 950;
}

.py-recent-workout-card small,
.py-recent-workout-card span,
.py-recent-workout-card b {
  display: block;
  color: #918b97;
  font-weight: 850;
}

.py-recent-workout-card strong {
  display: block;
  color: #08070c;
  font-size: 1.08rem;
  line-height: 1.05;
}

.py-recent-workout-card b {
  grid-column: 2;
  justify-self: start;
  border-radius: 999px;
  padding: 7px 10px;
  background: #f0eff3;
  color: #17151d;
  font-size: 0.76rem;
}

.py-workflow-active .py-daily-hero {
  grid-template-columns: 1fr;
  min-height: 0;
  border: 0;
  border-radius: 34px;
  padding: 24px;
  background:
    radial-gradient(circle at 78% 18%, rgba(113, 153, 232, 0.22), transparent 32%),
    radial-gradient(circle at 8% 98%, rgba(232, 101, 91, 0.16), transparent 30%),
    #fff;
  box-shadow: 0 22px 54px rgba(21, 19, 29, 0.09);
  color: #17151d;
}

.py-workflow-active .py-daily-hero-copy {
  max-width: none;
  gap: 10px;
}

.py-workflow-active .py-daily-day {
  border: 0;
  background: #f0eff3;
  color: #7a7580;
}

.py-workflow-active .py-daily-hero h1 {
  color: #09080c;
  font-size: clamp(2.25rem, 10vw, 3.9rem);
  line-height: 0.98;
}

.py-workflow-active .py-daily-hero p:not(.py-daily-day) {
  color: #7f7a85;
  font-size: 1rem;
}

.py-workflow-active .py-course-progress {
  grid-template-columns: 1fr auto;
  margin-top: 12px;
}

.py-workflow-active .py-course-progress span {
  height: 14px;
  background: #ebe9ef;
}

.py-workflow-active .py-course-progress i {
  background: linear-gradient(90deg, #111015, #7bcead);
}

.py-workflow-active .py-course-progress strong {
  color: #17151d;
}

.py-workflow-active .py-goal-visual {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 116px;
  min-height: 116px;
  height: 116px;
  border-radius: 999px;
  opacity: 0.9;
}

.py-workflow-active .py-goal-visual img {
  min-height: 116px;
  border-radius: inherit;
}

.py-workflow-active .py-goal-silhouette {
  background:
    radial-gradient(ellipse at 50% 20%, rgba(23, 21, 29, 0.34) 0 11%, transparent 12%),
    radial-gradient(ellipse at 50% 60%, rgba(23, 21, 29, 0.28) 0 24%, transparent 25%),
    linear-gradient(180deg, rgba(123, 206, 173, 0.38), rgba(113, 153, 232, 0.24));
}

.py-workflow-active .py-mission-section {
  gap: 14px;
  margin-top: 0;
}

.py-workflow-active .py-mission-section h2,
.py-workflow-active .py-checkin-card h2 {
  font-size: 1.5rem;
  line-height: 1;
}

.py-workflow-active .py-mission-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.py-workflow-active .py-mission-tile {
  min-height: 176px;
  border: 0;
  border-radius: 28px;
  padding: 16px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(21, 19, 29, 0.07);
}

.py-workflow-active .py-mission-tile:first-child {
  grid-column: 1 / -1;
  min-height: 168px;
}

.py-workflow-active .py-mission-icon {
  width: 40px;
  height: 40px;
  border-radius: 16px;
  background: #f1f0f4;
  color: #17151d;
}

.py-workflow-active .py-mission-values {
  gap: 3px;
  color: #89838f;
  font-size: 0.95rem;
}

.py-workflow-active .py-mission-values span:first-child {
  color: #09080c;
  font-size: 1.7rem;
}

.py-workflow-active .py-mission-action {
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  background: #17151d;
  color: #fff;
}

.py-workflow-active .py-checkin-card {
  border: 0;
  border-radius: 30px;
  background: #fff;
  color: #17151d;
  box-shadow: 0 22px 50px rgba(21, 19, 29, 0.08);
}

.py-workflow-active .py-readiness-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.py-workflow-active .py-checkin-chip-row {
  grid-template-columns: 1fr;
}

.py-workflow-active .py-readiness-row button,
.py-workflow-active .py-checkin-chip-row label {
  min-height: 58px;
  border: 0;
  border-radius: 22px;
  background: #f5f4f7;
  color: #17151d;
}

.py-workflow-active .py-readiness-row button.is-active {
  background: #17151d;
  color: #fff;
}

.py-workflow-active .py-checkin-submit {
  min-height: 58px;
  border-radius: 999px;
  background: #17151d;
  color: #fff;
}

.py-workflow-active .py-tabbar {
  position: fixed;
  right: max(13px, env(safe-area-inset-right));
  bottom: max(12px, env(safe-area-inset-bottom));
  left: max(13px, env(safe-area-inset-left));
  z-index: 80;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  max-width: 470px;
  min-height: 78px;
  margin: 0 auto;
  border: 1px solid rgba(21, 19, 29, 0.08);
  border-radius: 999px;
  padding: 9px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 20px 44px rgba(21, 19, 29, 0.16);
  backdrop-filter: blur(20px);
}

.py-workflow-active .py-tabbar button {
  display: grid;
  place-items: center;
  min-height: 58px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #9a949f;
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 950;
}

.py-workflow-active .py-tabbar button::before {
  content: "⌂";
  display: grid;
  width: 27px;
  height: 24px;
  place-items: center;
  color: inherit;
  font-size: 1.1rem;
}

.py-workflow-active .py-tabbar [data-tab="plan"]::before {
  content: "▤";
}

.py-workflow-active .py-tabbar [data-tab="progress"]::before {
  content: "▥";
}

.py-workflow-active .py-tabbar [data-tab="profile"]::before {
  content: "◌";
}

.py-workflow-active .py-tabbar button.is-active {
  background: #17151d;
  color: #fff;
}

html[data-perfectyou-app] body.py-workflow-active .py-tabbar {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-radius: 999px;
  padding: 8px;
}

html[data-perfectyou-app] body.py-workflow-active .py-tabbar button {
  min-width: 0;
  min-height: 58px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  padding: 0 2px;
  background: transparent;
  color: #9a949f;
  font-size: 0.64rem;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-perfectyou-app] body.py-workflow-active .py-tabbar button.is-active {
  background: #17151d;
  color: #fff;
}

.py-workflow-active .py-coach-floating {
  right: max(20px, env(safe-area-inset-right));
  bottom: calc(96px + env(safe-area-inset-bottom));
  z-index: 85;
  width: 62px;
  min-width: 62px;
  height: 62px;
  min-height: 62px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: #17151d;
  color: #fff;
  box-shadow: 0 20px 44px rgba(21, 19, 29, 0.26);
  font-size: 0;
}

.py-workflow-active .py-coach-floating::before {
  content: "+";
  font-size: 2.7rem;
  line-height: 0.8;
}

.py-workflow-active.py-quick-open .py-coach-floating {
  z-index: 130;
  background: #17151d;
}

.py-workflow-active.py-quick-open .py-coach-floating::before {
  content: "×";
  font-size: 2.6rem;
  line-height: 0.8;
}

.py-workflow-active .py-coach-floating.is-prominent {
  background: #ee6259;
}

.py-progress-card,
.py-profile-summary,
.py-settings-list,
.py-coach-panel {
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 20px 46px rgba(21, 19, 29, 0.07);
}

.py-progress-top-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.py-progress-mini {
  display: grid;
  min-height: 154px;
  place-items: center;
  gap: 5px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 20px 46px rgba(21, 19, 29, 0.07);
}

.py-progress-mini i {
  font-style: normal;
  font-size: 3rem;
  line-height: 1;
}

.py-progress-mini strong {
  color: #09080c;
  font-size: 2.1rem;
  line-height: 0.9;
}

.py-progress-mini span {
  color: #8d8792;
  font-weight: 900;
}

.py-weight-summary-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-radius: 28px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 20px 46px rgba(21, 19, 29, 0.07);
}

.py-weight-summary-card span,
.py-weight-summary-card small {
  color: #8d8792;
  font-weight: 850;
}

.py-weight-summary-card strong {
  display: block;
  color: #09080c;
  font-size: 2rem;
  line-height: 1;
}

.py-progress-card {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.py-progress-card h2 {
  margin: 0;
  color: #09080c;
  font-size: 2.35rem;
  line-height: 0.98;
}

.py-progress-card span {
  color: #8b858f;
  font-weight: 850;
}

.py-progress-energy {
  grid-template-columns: minmax(0, 0.9fr) minmax(120px, 1fr);
  align-items: end;
  min-height: 220px;
}

.py-progress-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.py-bar-chart {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
  height: 150px;
}

.py-bar-chart i {
  display: block;
  border-radius: 999px 999px 8px 8px;
  background: #e8e6ed;
}

.py-bar-chart i.is-active {
  background: #17151d;
}

.py-progress-bmi div {
  height: 16px;
  overflow: hidden;
  border-radius: 999px;
  background: #eceaf0;
}

.py-progress-bmi i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ee6259, #f0c45d, #7bcead);
}

.py-profile-summary {
  display: grid;
  gap: 6px;
  padding: 20px;
}

.py-profile-summary strong {
  color: #09080c;
  font-size: 1.45rem;
}

.py-settings-list {
  display: grid;
  overflow: hidden;
}

.py-settings-list a,
.py-settings-list div {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 76px;
  border-bottom: 1px solid #f0eef3;
  padding: 12px 18px;
  color: #17151d;
}

.py-settings-list a:last-child,
.py-settings-list div:last-child {
  border-bottom: 0;
}

.py-settings-list i,
.py-coach-avatar {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 16px;
  background: #f1f0f4;
  color: #17151d;
  font-style: normal;
  font-weight: 950;
}

.py-settings-list span {
  font-weight: 950;
}

.py-settings-list small::after {
  content: "›";
  margin-left: 10px;
  color: #b6b1ba;
  font-size: 1.5rem;
  vertical-align: middle;
}

.py-settings-list small {
  color: #918b96;
  font-weight: 800;
}

.py-settings-language {
  grid-template-columns: 42px minmax(0, 1fr) auto;
}

.py-settings-language small::after {
  content: none;
}

.py-settings-language select {
  min-width: 128px;
  min-height: 42px;
  border: 1px solid #e5e2ea;
  border-radius: 999px;
  padding: 0 34px 0 14px;
  background: #f8f7fa;
  color: #17151d;
  font-weight: 900;
}

.py-profile-technical {
  border-radius: 24px;
  background: #fff;
  padding: 14px 16px;
  box-shadow: 0 14px 34px rgba(21, 19, 29, 0.05);
}

.py-coach-panel {
  display: grid;
  gap: 18px;
  min-height: 430px;
  align-content: center;
  padding: 24px;
  text-align: center;
}

.py-coach-panel .py-coach-avatar {
  width: 96px;
  height: 96px;
  margin: 0 auto;
  border-radius: 32px;
  background:
    radial-gradient(circle at 28% 20%, rgba(255, 255, 255, 0.5), transparent 34%),
    #17151d;
  color: #fff;
  font-size: 2.3rem;
}

.py-coach-panel .py-button {
  justify-self: stretch;
  min-height: 60px;
  border-radius: 999px;
  background: #17151d;
}

html[data-perfectyou-app] body.py-workflow-active .py-coach-panel .py-button-primary {
  background: #17151d;
  color: #fff;
  box-shadow: 0 18px 36px rgba(21, 19, 29, 0.16);
}

.py-coach-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.py-coach-prompts span {
  border-radius: 999px;
  padding: 9px 12px;
  background: #f2f1f5;
  color: #17151d;
  font-size: 0.84rem;
  font-weight: 900;
}

.py-groups-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px;
  gap: 18px;
  align-items: center;
  overflow: hidden;
  border-radius: 30px;
  padding: 22px;
  background:
    radial-gradient(circle at 92% 14%, rgba(123, 206, 173, 0.36), transparent 34%),
    linear-gradient(135deg, #17151d, #33443f);
  color: #fff;
  box-shadow: 0 24px 54px rgba(21, 19, 29, 0.16);
}

.py-groups-hero span,
.py-groups-hero p {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 850;
}

.py-groups-hero strong {
  display: block;
  margin: 7px 0;
  font-size: clamp(2rem, 8vw, 3.2rem);
  line-height: 0.95;
}

.py-group-private-action {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #17151d;
  font-size: 2rem;
  font-weight: 700;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
}

.py-groups-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 6px 2px -2px;
}

.py-groups-heading h2 {
  margin: 0;
  color: #17151d;
  font-size: clamp(1.65rem, 6vw, 2.2rem);
}

.py-groups-heading a {
  color: #8f8995;
  font-weight: 950;
}

.py-groups-list {
  display: grid;
  gap: 14px;
}

.py-group-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border-radius: 30px;
  padding: 16px;
  background: #fff;
  box-shadow: 0 20px 46px rgba(21, 19, 29, 0.07);
}

.py-group-card img {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  background: #f1f0f4;
}

.py-group-card strong {
  display: block;
  color: #17151d;
  font-size: 1.2rem;
  line-height: 1.04;
}

.py-group-card span,
.py-group-card p {
  margin: 3px 0 0;
  color: #8b858f;
  font-weight: 800;
}

.py-group-card button {
  min-width: 104px;
  min-height: 46px;
  border: 1px solid #dedbe4;
  border-radius: 999px;
  background: #fff;
  color: #17151d;
  font-weight: 950;
}

.py-group-card button.is-joined {
  border-color: #7bcead;
  background: #eaf8f2;
  color: #16775c;
}

@media (min-width: 760px) {
  .py-workflow-active .py-flow {
    width: min(100% - 48px, 980px);
  }

  .py-workflow-active .py-tab-panel.is-active {
    max-width: 980px;
    margin: 0 auto;
  }

  .py-workflow-active .py-mission-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .py-workflow-active .py-mission-tile:first-child {
    grid-column: auto;
  }
}

@media (max-width: 430px) {
  .py-workflow-active .py-flow {
    width: min(100% - 22px, 420px);
  }

  .py-week-strip {
    gap: 5px;
  }

  .py-week-strip span {
    min-height: 56px;
    border-radius: 18px;
  }

  .py-workflow-active .py-mission-grid {
    gap: 10px;
  }

  .py-workflow-active .py-mission-tile {
    border-radius: 24px;
    padding: 14px;
  }

  .py-progress-energy {
    grid-template-columns: 1fr;
  }
}

/* Workflow mobile polish: keep progress/profile readable on real phone widths. */
@media (max-width: 520px) {
  .py-workflow-active .py-flow {
    width: min(100% - 24px, 430px);
    padding-top: calc(14px + env(safe-area-inset-top));
    padding-bottom: calc(106px + env(safe-area-inset-bottom));
  }

  .py-workflow-active .py-tab-panel.is-active {
    gap: 12px;
  }

  .py-workflow-active .py-tab-panel > h1 {
    margin-bottom: 8px;
    font-size: clamp(2.35rem, 13vw, 3.35rem);
    line-height: 0.94;
  }

  .py-progress-card,
  .py-profile-summary,
  .py-settings-list,
  .py-coach-panel {
    border-radius: 26px;
    box-shadow: 0 14px 34px rgba(21, 19, 29, 0.055);
  }

  .py-progress-card {
    gap: 8px;
    padding: 16px;
  }

  .py-progress-card p {
    font-size: 1rem;
  }

  .py-progress-card h2 {
    font-size: clamp(2.15rem, 12vw, 3.2rem);
  }

  .py-progress-card span {
    font-size: 0.98rem;
  }

  .py-progress-energy {
    grid-template-columns: 1fr;
    min-height: 250px;
    align-items: stretch;
  }

  .py-bar-chart {
    height: 118px;
    gap: 7px;
  }

  .py-progress-grid {
    gap: 10px;
  }

  .py-progress-grid .py-progress-card {
    min-height: 154px;
  }

  .py-groups-hero,
  .py-group-card {
    border-radius: 26px;
  }

  .py-group-card {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .py-group-card img {
    width: 62px;
    height: 62px;
  }

  .py-group-card button {
    grid-column: 1 / -1;
    justify-self: stretch;
  }

  .py-health-metric-grid {
    gap: 10px;
  }

  .py-nutrition-quality-grid {
    gap: 8px;
  }

  .py-nutrition-quality-card {
    min-height: 122px;
    padding: 12px;
  }

  .py-nutrition-quality-card i {
    width: 52px;
    height: 52px;
    border-width: 8px;
  }

  .py-health-step-card,
  .py-health-burn-card {
    min-height: 164px;
    padding: 15px;
  }

  .py-health-water-card {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .py-health-water-card button,
  .py-health-water-card > small {
    grid-column: 1 / -1;
  }

  .py-health-water-card button {
    justify-self: stretch;
  }

  .py-progress-bmi {
    min-height: 150px;
  }

  .py-profile-summary {
    padding: 20px;
  }

  .py-profile-summary strong {
    font-size: clamp(1.7rem, 9vw, 2.2rem);
    line-height: 1.04;
  }

  .py-profile-summary span {
    font-size: 1.05rem;
  }

  .py-settings-list a,
  .py-settings-list div {
    position: relative;
    grid-template-columns: 52px minmax(0, 1fr) 24px;
    grid-template-areas:
      "icon title arrow"
      "icon detail arrow";
    gap: 4px 14px;
    min-height: 82px;
    padding: 14px 16px;
  }

  .py-settings-list a::after,
  .py-settings-list div:not(.py-settings-language)::after {
    content: "›";
    grid-area: arrow;
    align-self: center;
    justify-self: end;
    color: #b6b1ba;
    font-size: 1.9rem;
    line-height: 1;
  }

  .py-settings-list i {
    grid-area: icon;
    width: 52px;
    height: 52px;
    border-radius: 18px;
  }

  .py-settings-list span {
    grid-area: title;
    min-width: 0;
    color: #09080c;
    font-size: clamp(1.1rem, 5.8vw, 1.45rem);
    line-height: 1.05;
    overflow-wrap: anywhere;
  }

  .py-settings-list small {
    grid-area: detail;
    min-width: 0;
    color: #918b96;
    font-size: 0.95rem;
    line-height: 1.18;
  }

  .py-settings-list small::after {
    content: none;
  }

  .py-settings-language {
    grid-template-columns: 52px minmax(0, 1fr) minmax(112px, auto);
    grid-template-areas:
      "icon title select"
      "icon detail select";
  }

  .py-settings-language select {
    grid-area: select;
    align-self: center;
    min-width: 112px;
    min-height: 44px;
    border: 1px solid #e5e2ea;
    border-radius: 999px;
    padding: 0 34px 0 14px;
    background: #f8f7fa;
    color: #17151d;
    font-weight: 900;
  }

  html[data-perfectyou-app] body.py-workflow-active .py-tabbar {
    min-height: 70px;
    padding: 7px;
  }

  html[data-perfectyou-app] body.py-workflow-active .py-tabbar button {
    min-height: 54px;
    font-size: 0.58rem;
  }

  .py-workflow-active .py-tabbar button::before {
    height: 22px;
    font-size: 1rem;
  }
}

/* PerfectYou compact mobile refresh: Cal AI style density for phone browsers. */
.py-workflow-active .py-flow {
  width: min(100% - 32px, 460px);
  padding-top: calc(18px + env(safe-area-inset-top));
  padding-bottom: calc(112px + env(safe-area-inset-bottom));
}

.py-workflow-active .py-tab-panel.is-active {
  gap: 24px;
}

.py-workflow-active .py-tab-panel > h1,
.py-workflow-head h1 {
  font-size: clamp(1.95rem, 8.2vw, 2.85rem);
  line-height: 1.03;
}

.py-workflow-head p,
.py-progress-card p,
.py-profile-summary span,
.py-coach-panel p,
.py-calorie-dashboard span,
.py-calorie-dashboard p,
.py-calorie-dashboard small,
.py-macro-card span,
.py-nutrition-quality-card span,
.py-health-score-card p,
.py-health-step-card span,
.py-health-burn-card span,
.py-health-water-card span {
  font-size: 0.86rem;
}

.py-week-strip {
  gap: 10px;
}

.py-week-strip span {
  min-height: 58px;
  border-radius: 20px;
}

.py-week-strip small {
  font-size: 0.7rem;
}

.py-week-strip strong {
  font-size: 1rem;
}

.py-nutrition-dashboard,
.py-health-metrics,
.py-recent-uploads {
  gap: 22px;
}

.py-calorie-dashboard,
.py-macro-card,
.py-nutrition-quality-card,
.py-health-score-card,
.py-health-step-card,
.py-health-burn-card,
.py-health-water-card,
.py-recent-upload-card,
.py-recent-empty,
.py-recent-workout-card,
.py-progress-mini,
.py-weight-summary-card,
.py-progress-card,
.py-profile-summary,
.py-settings-list,
.py-workflow-active .py-daily-hero,
.py-workflow-active .py-mission-tile,
.py-workflow-active .py-checkin-card {
  box-shadow: 0 14px 34px rgba(21, 19, 29, 0.06);
}

.py-calorie-dashboard {
  grid-template-columns: minmax(0, 1fr) 96px;
  min-height: 132px;
  border-radius: 26px;
  padding: 16px;
}

.py-calorie-dashboard strong {
  font-size: clamp(2.45rem, 10vw, 3.35rem);
}

.py-calorie-ring {
  width: 92px;
  height: 92px;
}

.py-calorie-ring i {
  width: 44px;
  height: 44px;
}

.py-macro-dashboard,
.py-nutrition-quality-grid,
.py-health-metric-grid,
.py-progress-top-grid,
.py-progress-grid {
  gap: 20px;
}

.py-macro-card {
  min-height: 128px;
  border-radius: 22px;
  padding: 13px;
}

.py-macro-card strong {
  font-size: clamp(1.25rem, 5.9vw, 1.72rem);
}

.py-macro-card small {
  font-size: 0.68rem;
}

.py-macro-card::after {
  right: 12px;
  bottom: 12px;
  width: 48px;
  height: 48px;
}

.py-macro-card i {
  right: 26px;
  bottom: 26px;
  font-size: 0.86rem;
}

.py-nutrition-quality-card {
  min-height: 118px;
  border-radius: 22px;
  padding: 13px;
}

.py-nutrition-quality-card strong {
  font-size: clamp(1.18rem, 5.5vw, 1.65rem);
}

.py-nutrition-quality-card i {
  width: 50px;
  height: 50px;
  border-width: 8px;
}

.py-health-score-card,
.py-health-step-card,
.py-health-burn-card,
.py-health-water-card {
  border-radius: 24px;
}

.py-health-score-card {
  gap: 11px;
  padding: 16px;
}

.py-health-score-card strong,
.py-health-score-card b {
  font-size: 1.05rem;
}

.py-health-step-card,
.py-health-burn-card {
  min-height: 150px;
  padding: 15px;
}

.py-health-step-card strong,
.py-health-burn-card strong,
.py-health-water-card strong {
  font-size: clamp(1.55rem, 7vw, 2.35rem);
}

.py-health-ring {
  width: 86px;
  height: 86px;
}

.py-health-water-card {
  min-height: 82px;
  padding: 14px;
}

.py-workflow-active .py-daily-hero {
  border-radius: 26px;
  padding: 20px;
}

.py-workflow-active .py-daily-hero h1 {
  font-size: clamp(1.9rem, 8vw, 2.85rem);
}

.py-workflow-active .py-goal-visual {
  width: 88px;
  min-height: 88px;
  height: 88px;
}

.py-workflow-active .py-goal-visual img {
  min-height: 88px;
}

.py-workflow-active .py-mission-grid {
  gap: 20px;
}

.py-workflow-active .py-mission-tile {
  min-height: 154px;
  border-radius: 24px;
  padding: 14px;
}

.py-workflow-active .py-mission-tile:first-child {
  min-height: 150px;
}

.py-workflow-active .py-mission-tile > strong {
  font-size: 1.06rem;
}

.py-workflow-active .py-mission-values {
  font-size: 0.86rem;
}

.py-workflow-active .py-mission-values span:first-child {
  font-size: 1.38rem;
}

.py-workflow-active .py-mission-action {
  min-height: 42px;
  font-size: 0.9rem;
}

.py-progress-mini {
  min-height: 126px;
  border-radius: 24px;
}

.py-progress-mini i {
  font-size: 2.35rem;
}

.py-progress-mini strong {
  font-size: 1.75rem;
}

.py-weight-summary-card {
  border-radius: 24px;
  padding: 16px;
}

.py-weight-summary-card strong {
  font-size: 1.65rem;
}

.py-progress-card {
  border-radius: 24px;
  padding: 16px;
}

.py-progress-card h2 {
  font-size: clamp(1.95rem, 9.2vw, 2.65rem);
}

.py-progress-energy {
  min-height: 190px;
}

.py-bar-chart {
  height: 120px;
}

.py-profile-summary {
  border-radius: 24px;
  padding: 16px;
}

.py-profile-summary strong {
  font-size: 1.28rem;
}

.py-settings-list a,
.py-settings-list div {
  min-height: 76px;
}

.py-settings-list {
  gap: 16px;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

.py-settings-list a,
.py-settings-list div {
  border-bottom: 0;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(21, 19, 29, 0.055);
}

.py-workflow-active .py-tabbar {
  right: max(18px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  left: max(18px, env(safe-area-inset-left));
  min-height: 66px;
  max-width: 420px;
  padding: 6px;
  border-color: rgba(21, 19, 29, 0.07);
  box-shadow: 0 16px 38px rgba(21, 19, 29, 0.14);
}

html[data-perfectyou-app] body.py-workflow-active .py-tabbar button {
  min-height: 52px;
  border-radius: 999px;
  font-size: 0.58rem;
  line-height: 1.04;
}

html[data-perfectyou-app] body.py-workflow-active .py-tabbar,
.py-workflow-active .py-tabbar {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 390px;
}

.py-workflow-active .py-tabbar button::before {
  height: 20px;
  font-size: 0.98rem;
}

.py-workflow-active .py-coach-floating {
  bottom: calc(88px + env(safe-area-inset-bottom));
  width: 58px;
  min-width: 58px;
  height: 58px;
  min-height: 58px;
}

@media (max-width: 430px) {
  .py-workflow-active .py-flow {
    width: min(100% - 24px, 390px);
    padding-bottom: calc(100px + env(safe-area-inset-bottom));
  }

  .py-workflow-active .py-tab-panel.is-active {
    gap: 14px;
  }

  .py-macro-dashboard,
  .py-nutrition-quality-grid,
  .py-health-metric-grid,
  .py-progress-top-grid,
  .py-progress-grid,
  .py-workflow-active .py-mission-grid {
    gap: 12px;
  }

  .py-calorie-dashboard {
    grid-template-columns: minmax(0, 1fr) 86px;
    min-height: 124px;
  }

  .py-calorie-ring {
    width: 82px;
    height: 82px;
  }

  .py-macro-card,
  .py-nutrition-quality-card {
    min-height: 112px;
  }

  .py-health-step-card,
  .py-health-burn-card {
    min-height: 138px;
  }

  html[data-perfectyou-app] body.py-workflow-active .py-tabbar {
    min-height: 64px;
    padding: 6px;
  }

  html[data-perfectyou-app] body.py-workflow-active .py-tabbar button {
    min-height: 50px;
  }
}

@media (min-width: 900px) {
  body.py-workflow-active {
    background:
      linear-gradient(180deg, #fafafd 0%, #f4f4f7 48%, #f7f7f9 100%);
  }

  .py-workflow-active .py-flow {
    width: min(calc(100% - 72px), 1240px);
    min-height: 100svh;
    padding-top: 96px;
    padding-bottom: 64px;
  }

  .py-workflow-active .py-tab-panel.is-active {
    gap: 24px;
    max-width: none;
    margin: 0;
  }

  .py-workflow-active .py-tab-panel[data-tab-panel="today"].is-active {
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.85fr);
    align-items: start;
    column-gap: 28px;
  }

  .py-workflow-active .py-tab-panel > h1,
  .py-workflow-head h1 {
    max-width: 860px;
    font-size: clamp(3rem, 4.6vw, 4.1rem);
    line-height: 0.98;
  }

  .py-workflow-head {
    grid-column: 1;
    align-self: end;
  }

  .py-workflow-head p {
    font-size: 1.05rem;
  }

  .py-week-strip {
    grid-column: 2;
    align-self: end;
    gap: 8px;
  }

  .py-week-strip span {
    min-height: 76px;
    border-radius: 22px;
  }

  .py-week-strip small {
    font-size: 0.74rem;
  }

  .py-week-strip strong {
    font-size: 1.2rem;
  }

  .py-nutrition-dashboard {
    grid-column: 1;
    gap: 18px;
  }

  .py-health-metrics,
  .py-recent-uploads {
    grid-column: 2;
    gap: 18px;
  }

  .py-workflow-active .py-daily-hero,
  .py-workflow-active .py-mission-section,
  .py-workflow-active .py-evening-checkin {
    grid-column: 1 / -1;
  }

  .py-calorie-dashboard {
    grid-template-columns: minmax(0, 1fr) 140px;
    min-height: 178px;
    border-radius: 30px;
    padding: 26px 30px;
  }

  .py-calorie-dashboard strong {
    font-size: clamp(4rem, 6vw, 5.5rem);
  }

  .py-calorie-dashboard span {
    font-size: 1.2rem;
  }

  .py-calorie-dashboard p,
  .py-calorie-dashboard small,
  .py-macro-card span,
  .py-nutrition-quality-card span,
  .py-health-score-card p,
  .py-health-step-card span,
  .py-health-burn-card span,
  .py-health-water-card span {
    font-size: 0.95rem;
  }

  .py-calorie-ring {
    width: 124px;
    height: 124px;
  }

  .py-calorie-ring i {
    width: 58px;
    height: 58px;
  }

  .py-macro-dashboard,
  .py-nutrition-quality-grid {
    gap: 16px;
  }

  .py-macro-card,
  .py-nutrition-quality-card {
    min-height: 154px;
    border-radius: 26px;
    padding: 18px;
  }

  .py-macro-card strong {
    font-size: clamp(1.85rem, 2.5vw, 2.65rem);
  }

  .py-nutrition-quality-card strong {
    font-size: clamp(1.65rem, 2.2vw, 2.25rem);
  }

  .py-health-metric-grid {
    gap: 16px;
  }

  .py-health-score-card,
  .py-health-step-card,
  .py-health-burn-card,
  .py-health-water-card,
  .py-recent-upload-card,
  .py-recent-empty,
  .py-recent-workout-card,
  .py-workflow-active .py-daily-hero,
  .py-workflow-active .py-mission-tile,
  .py-workflow-active .py-checkin-card {
    border-radius: 26px;
    box-shadow: 0 18px 42px rgba(21, 19, 29, 0.065);
  }

  .py-health-step-card,
  .py-health-burn-card {
    min-height: 178px;
    padding: 18px;
  }

  .py-health-step-card strong,
  .py-health-burn-card strong,
  .py-health-water-card strong {
    font-size: clamp(2rem, 3.2vw, 2.9rem);
  }

  .py-health-ring {
    width: 104px;
    height: 104px;
  }

  .py-health-water-card {
    min-height: 104px;
    padding: 18px;
  }

  .py-recent-upload-card,
  .py-recent-empty,
  .py-recent-workout-card {
    min-height: 104px;
  }

  .py-workflow-active .py-daily-hero {
    position: relative;
    grid-template-columns: minmax(0, 1fr) 160px;
    min-height: 210px;
    padding: 30px;
  }

  .py-workflow-active .py-daily-hero h1 {
    font-size: clamp(3.25rem, 5vw, 4.6rem);
  }

  .py-workflow-active .py-goal-visual {
    position: static;
    justify-self: end;
    width: 148px;
    min-height: 148px;
    height: 148px;
  }

  .py-workflow-active .py-goal-visual img {
    min-height: 148px;
  }

  .py-workflow-active .py-mission-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
  }

  .py-workflow-active .py-mission-tile,
  .py-workflow-active .py-mission-tile:first-child {
    grid-column: auto;
    min-height: 188px;
    padding: 18px;
  }

  .py-workflow-active .py-checkin-chip-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .py-workflow-active .py-tab-panel[data-tab-panel="plan"].is-active,
  .py-workflow-active .py-tab-panel[data-tab-panel="progress"].is-active,
  .py-workflow-active .py-tab-panel[data-tab-panel="profile"].is-active {
    max-width: 1040px;
    margin-inline: auto;
  }

  .py-progress-top-grid,
  .py-progress-grid {
    gap: 18px;
  }

  .py-workflow-active .py-tabbar,
  html[data-perfectyou-app] body.py-workflow-active .py-tabbar {
    top: 28px;
    right: 36px;
    bottom: auto;
    left: auto;
    grid-template-columns: repeat(4, minmax(108px, auto));
    width: auto;
    max-width: none;
    min-height: 54px;
    padding: 6px;
    border-radius: 999px;
  }

  html[data-perfectyou-app] body.py-workflow-active .py-tabbar button {
    display: inline-flex;
    min-height: 44px;
    min-width: 108px;
    gap: 8px;
    padding: 0 16px;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .py-workflow-active .py-tabbar button::before {
    width: auto;
    height: auto;
    font-size: 1rem;
  }

  .py-workflow-active .py-coach-floating {
    right: 36px;
    bottom: 36px;
  }
}

.py-modal-open {
  overflow: hidden;
}

.py-quick-layer,
.py-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  align-items: end;
}

.py-quick-backdrop,
.py-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 8, 12, 0.46);
  backdrop-filter: blur(10px);
}

.py-quick-sheet,
.py-modal-card {
  position: relative;
  z-index: 1;
  width: min(100% - 26px, 470px);
  margin: 0 auto max(14px, env(safe-area-inset-bottom));
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 28px 72px rgba(9, 8, 12, 0.22);
}

.py-quick-sheet {
  width: min(100% - 42px, 430px);
  margin-bottom: calc(124px + env(safe-area-inset-bottom));
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.py-quick-close,
.py-modal-x {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: #f1f0f4;
  color: #17151d;
  cursor: pointer;
  font-size: 1.3rem;
  font-weight: 900;
}

.py-quick-close {
  display: none;
}

.py-quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding-top: 0;
}

.py-quick-actions button {
  display: grid;
  min-height: 142px;
  place-items: center;
  align-content: center;
  gap: 14px;
  border: 0;
  border-radius: 24px;
  background: #fff;
  color: #17151d;
  box-shadow: 0 22px 54px rgba(9, 8, 12, 0.22);
  cursor: pointer;
  font-size: 1.12rem;
  font-weight: 950;
}

.py-quick-actions i {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 18px;
  background: #f4f3f7;
  color: #17151d;
  font-size: 1.8rem;
  font-style: normal;
}

.py-modal-card {
  display: grid;
  gap: 16px;
  max-height: min(88svh, 820px);
  overflow: auto;
  padding: 18px;
}

.py-modal-head {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 8px;
}

.py-modal-head button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: #f5f4f7;
  color: #17151d;
  cursor: pointer;
  font-size: 1.35rem;
  font-weight: 950;
}

.py-modal-head .py-modal-more {
  background: #ece9e4;
  font-size: 1.6rem;
  letter-spacing: 1px;
}

.py-modal-head strong {
  text-align: center;
}

.py-food-log-card {
  width: min(100%, 560px);
  min-height: min(92svh, 820px);
  align-content: start;
  border-radius: 30px 30px 0 0;
  padding: 24px;
  background: #fff;
}

.py-food-log-card .py-modal-head {
  margin-bottom: 12px;
}

.py-food-tabs {
  display: flex;
  gap: clamp(18px, 5vw, 34px);
  overflow-x: auto;
  border-bottom: 1px solid #eceaf0;
}

.py-food-tabs button {
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 0 0 12px;
  background: transparent;
  color: #8d8792;
  cursor: pointer;
  font-size: clamp(1.05rem, 4.5vw, 1.35rem);
  font-weight: 900;
  white-space: nowrap;
}

.py-food-tabs button.is-active {
  border-color: #17151d;
  color: #17151d;
}

.py-food-search input {
  width: 100%;
  min-height: 86px;
  border: 2px solid #17151d;
  border-radius: 22px;
  padding: 0 20px;
  background: #fff;
  color: #17151d;
  font-size: 1.1rem;
  font-weight: 800;
}

.py-food-suggestions {
  display: grid;
  gap: 14px;
}

.py-food-suggestions-title {
  margin: 2px 0 0;
  color: #17151d;
  font-size: clamp(1.55rem, 6vw, 2rem);
  line-height: 1.05;
}

.py-food-suggestion-list {
  display: grid;
  gap: 12px;
}

.py-food-suggestion {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px;
  align-items: center;
  gap: 12px;
  min-height: 86px;
  border: 1px solid #eceaf0;
  border-radius: 22px;
  padding: 14px 16px;
  background: #f7f6fa;
  color: #17151d;
  text-align: left;
  cursor: pointer;
}

.py-food-suggestion span {
  display: grid;
  gap: 4px;
}

.py-food-suggestion small,
.py-food-empty p {
  color: #8d8792;
  font-size: 1.02rem;
  font-weight: 750;
}

.py-food-suggestion strong {
  font-size: 1.08rem;
  line-height: 1.08;
}

.py-food-suggestion b {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 999px;
  background: #fff;
  color: #09080c;
  font-size: 1.7rem;
  font-weight: 500;
}

.py-food-empty {
  display: grid;
  gap: 6px;
  min-height: 170px;
  place-items: center;
  text-align: center;
}

.py-saved-food-empty {
  min-height: 430px;
  align-content: center;
  gap: 16px;
}

.py-saved-food-empty strong {
  color: #17151d;
  font-size: clamp(1.55rem, 6vw, 2rem);
  line-height: 1.05;
}

.py-saved-food-empty p {
  max-width: 320px;
  margin: 0 auto;
  font-size: 1.12rem;
  line-height: 1.25;
}

.py-saved-food-illustration {
  position: relative;
  display: grid;
  width: min(100%, 340px);
  height: 158px;
  place-items: center;
  border: 1px solid #eceaf0;
  border-radius: 24px;
  background: #f8f7fb;
  overflow: hidden;
}

.py-saved-food-illustration span {
  position: absolute;
  width: 180px;
  height: 82px;
  transform: rotate(-2deg);
  border-radius: 22px;
  background:
    linear-gradient(90deg, transparent 0 42px, #e2e0e8 42px 126px, transparent 126px),
    linear-gradient(#fff, #fff);
  box-shadow: 0 12px 24px rgba(23, 21, 29, 0.08);
}

.py-saved-food-illustration b {
  position: relative;
  z-index: 1;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 16px;
  background: #fff;
  color: #17151d;
  box-shadow: 0 10px 22px rgba(23, 21, 29, 0.08);
}

.py-saved-food-illustration i {
  position: absolute;
  left: 22px;
  bottom: 34px;
  width: 68px;
  height: 26px;
  border-bottom: 5px solid #17151d;
  border-left: 5px solid #17151d;
  transform: rotate(-22deg);
  border-radius: 0 0 0 999px;
}

.py-food-log-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 4px;
}

.py-food-log-actions button,
.py-serving-control button,
.py-water-presets button,
.py-number-pad button {
  border: 0;
  border-radius: 999px;
  background: #f1f0f4;
  color: #17151d;
  cursor: pointer;
  font-weight: 950;
}

.py-food-log-actions button {
  min-height: 64px;
  border: 1px solid #dedbe4;
  background: #fff;
  font-size: 1.05rem;
}

.py-selected-food-card {
  width: min(100%, 560px);
  min-height: min(92svh, 820px);
  align-content: start;
  border-radius: 30px 30px 0 0;
  padding: 24px;
  background: #fff;
}

.py-selected-food-card h2 {
  margin: 0;
  font-size: clamp(2.1rem, 8vw, 3rem);
  line-height: 1.04;
}

.py-selected-food-card h3 {
  margin: 10px 0 -2px;
  color: #17151d;
  font-size: 1.35rem;
}

.py-selected-food-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.py-selected-food-meta button {
  display: grid;
  width: 40px;
  height: 44px;
  place-items: center;
  border: 0;
  background: transparent;
  color: #17151d;
  cursor: pointer;
  font-size: 1.9rem;
  line-height: 1;
}

.py-selected-food-meta small {
  border-radius: 999px;
  padding: 8px 18px;
  background: #f4f3f7;
  color: #17151d;
  font-weight: 900;
}

.py-selected-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(118px, 160px);
  align-items: center;
  gap: 16px;
}

.py-selected-serving-pill {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid #e1dee8;
  border-radius: 20px;
  background: #fff;
  color: #09080c;
  box-shadow: 0 10px 22px rgba(23, 21, 29, 0.04);
}

.py-selected-serving-pill strong {
  font-size: 1.45rem;
  line-height: 1;
}

.py-selected-serving-pill span {
  font-size: 1.25rem;
}

.py-meal-name {
  position: relative;
  display: grid;
  min-height: 96px;
  align-content: center;
  border: 1px solid #f0edf2;
  border-radius: 24px;
  padding: 18px 58px 18px 18px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(23, 21, 29, 0.06);
}

.py-create-meal-card {
  gap: 16px;
  background:
    radial-gradient(circle at 88% 6%, rgba(238, 214, 198, 0.28), transparent 30%),
    linear-gradient(180deg, #fbfaf8 0%, #fff 44%, #fbfbfd 100%);
}

.py-meal-name span {
  color: #8d8792;
  font-weight: 900;
}

.py-meal-name input {
  width: 100%;
  min-height: 42px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #17151d;
  font-size: 1.6rem;
  font-weight: 950;
}

.py-meal-name input:focus {
  outline: none;
}

.py-meal-name b {
  position: absolute;
  right: 18px;
  top: 50%;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  transform: translateY(-50%);
  border-radius: 999px;
  background: #f2f0f5;
  color: #17151d;
  font-size: 1.1rem;
  font-style: normal;
}

.py-create-meal-dots {
  display: flex;
  justify-content: center;
  gap: 9px;
  padding: 2px 0;
}

.py-create-meal-dots span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #d7d4dc;
}

.py-create-meal-dots .is-active {
  background: #17151d;
}

.py-meal-items,
.py-meal-suggestions {
  display: grid;
  gap: 10px;
}

.py-meal-items header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.py-meal-items h2,
.py-meal-suggestions h3 {
  margin: 0;
  color: #17151d;
  font-size: 1.15rem;
}

.py-meal-items header button {
  border: 0;
  background: transparent;
  color: #8d8792;
  cursor: pointer;
  font-weight: 950;
}

.py-meal-item,
.py-meal-suggestions button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 36px;
  align-items: center;
  gap: 10px;
  min-height: 60px;
  border: 0;
  border-radius: 16px;
  padding: 10px 12px;
  background: #f7f6f9;
  color: #17151d;
}

.py-meal-item span,
.py-meal-suggestions button span {
  display: grid;
  gap: 3px;
  text-align: left;
}

.py-meal-item small,
.py-meal-suggestions small,
.py-meal-empty {
  color: #8d8792;
  font-weight: 750;
}

.py-meal-item button,
.py-meal-suggestions b {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #17151d;
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 950;
}

.py-meal-empty-state {
  display: grid;
  min-height: 210px;
  place-items: center;
  gap: 10px;
  border: 1px dashed #eceaf0;
  border-radius: 24px;
  padding: 24px 18px;
  background: #fff;
  text-align: center;
}

.py-meal-empty-state i {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border-radius: 22px;
  background: #f5f3f7;
  color: #8d8792;
  font-size: 2rem;
  font-style: normal;
}

.py-meal-empty-state strong {
  color: #17151d;
  font-size: 1.35rem;
  font-weight: 950;
}

.py-meal-empty-state p {
  margin: 0;
  color: #8d8792;
  font-weight: 850;
}

.py-meal-empty-state button {
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  background: #17151d;
  color: #fff;
  cursor: pointer;
  font-weight: 950;
}

.py-create-meal-save {
  position: sticky;
  bottom: 0;
  box-shadow: 0 18px 36px rgba(23, 21, 29, 0.16);
}

.py-create-meal-save:disabled,
.py-create-meal-save.is-disabled {
  background: #e7e4ea;
  color: #a29da8;
  box-shadow: none;
  cursor: not-allowed;
}

.py-serving-control {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.py-serving-control button {
  min-height: 42px;
}

.py-serving-control button.is-active {
  background: #17151d;
  color: #fff;
}

.py-serving-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.py-serving-stepper > div {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #e7e4ec;
  border-radius: 999px;
  padding: 4px;
}

.py-serving-stepper button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: #f1f0f4;
  cursor: pointer;
}

.py-nutrition-large {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  grid-template-areas:
    "icon label"
    "icon value";
  gap: 4px 14px;
  min-height: 122px;
  align-content: center;
  align-items: center;
  border: 1px solid #eceaf0;
  border-radius: 22px;
  padding: 18px;
}

.py-nutrition-large::before {
  content: "◖";
  grid-area: icon;
  color: #17151d;
  font-size: 2.25rem;
  line-height: 1;
}

.py-nutrition-large strong,
.py-water-amount strong {
  grid-area: value;
  color: #09080c;
  font-size: 3.2rem;
  line-height: 0.95;
}

.py-nutrition-large span,
.py-water-amount span {
  grid-area: label;
  color: #8d8792;
  font-weight: 900;
}

.py-macro-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.py-macro-row span {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  grid-template-areas:
    "icon label"
    "icon value";
  gap: 4px 8px;
  min-height: 88px;
  align-content: center;
  align-items: center;
  border: 1px solid #eceaf0;
  border-radius: 18px;
  padding: 12px;
  text-align: left;
}

.py-macro-row b {
  grid-area: value;
  font-size: 1.35rem;
}

.py-macro-row small {
  grid-area: label;
  color: #8d8792;
  font-weight: 850;
}

.py-macro-row span::before {
  grid-area: icon;
  font-size: 1.45rem;
  line-height: 1;
}

.py-macro-row span:nth-child(1)::before {
  content: "●";
  color: #e36d72;
}

.py-macro-row span:nth-child(2)::before {
  content: "◆";
  color: #de9b61;
}

.py-macro-row span:nth-child(3)::before {
  content: "◐";
  color: #6d9be7;
}

.py-selected-ingredients {
  display: grid;
  gap: 14px;
  margin-top: 4px;
}

.py-selected-ingredients > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.py-selected-ingredients strong {
  color: #17151d;
  font-size: 1.4rem;
}

.py-selected-ingredients button,
.py-other-facts-row {
  border: 0;
  background: transparent;
  color: #8d8792;
  cursor: pointer;
  font-weight: 950;
}

.py-selected-ingredients p {
  margin: 0;
  color: #8d8792;
  text-align: center;
  font-weight: 850;
}

.py-selected-ingredients p button {
  text-decoration: underline;
}

.py-other-facts-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 0;
  color: #17151d;
  font-size: 1.2rem;
  text-align: left;
}

.py-other-facts-row::after {
  content: "›";
  color: #17151d;
  font-size: 2rem;
  line-height: 1;
}

.py-log-food-button {
  width: 100%;
  min-height: 56px;
  border-radius: 999px;
  background: #17151d;
  color: #fff;
}

.py-water-amount {
  display: flex;
  min-height: 190px;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
}

.py-water-card {
  min-height: min(88svh, 760px);
  align-content: start;
}

.py-water-card .py-modal-head {
  margin-bottom: 24px;
}

.py-water-presets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.py-water-presets button {
  display: grid;
  min-height: 124px;
  align-content: center;
  gap: 6px;
  border: 1px solid #eceaf0;
  border-radius: 22px;
  background: #f8f7fb;
  color: #17151d;
  cursor: pointer;
  font-weight: 950;
}

.py-water-presets i {
  font-size: 1.75rem;
  font-style: normal;
}

.py-water-presets small {
  color: #8d8792;
  font-size: 1.05rem;
  font-weight: 850;
}

.py-water-card .py-button-primary {
  min-height: 64px;
  border-radius: 999px;
  background: #a9a6ac;
  color: #fff;
  font-size: 1.2rem;
}

.py-water-card .py-button-primary.is-ready {
  background: #17151d;
  box-shadow: 0 18px 38px rgba(23, 21, 29, 0.2);
}

.py-water-card .py-button-primary:disabled {
  background: #a9a6ac;
  color: rgba(255, 255, 255, 0.6);
  cursor: not-allowed;
}

.py-number-pad {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  padding: 8px;
  border-radius: 22px;
  background: #e6e4ea;
}

.py-number-pad button {
  min-height: 48px;
  border-radius: 10px;
  background: #fff;
}

.py-privacy-card {
  position: relative;
  width: min(100%, 520px);
  align-content: center;
  min-height: min(92svh, 820px);
  overflow: hidden;
  border-radius: 36px 36px 0 0;
  padding: 82px 24px 96px;
  background:
    radial-gradient(circle at 50% 82%, rgba(255, 255, 255, 0.07), transparent 22%),
    linear-gradient(180deg, rgba(49, 49, 47, 0.98), rgba(35, 35, 33, 0.98));
  color: #fff;
  text-align: center;
}

.py-privacy-handle {
  position: absolute;
  top: 18px;
  left: 50%;
  width: 58px;
  height: 7px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
}

.py-camera-ghost {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
}

.py-camera-ghost span:first-child,
.py-camera-ghost span:nth-child(2) {
  position: absolute;
  bottom: 62px;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.py-camera-ghost span:first-child {
  left: 48px;
}

.py-camera-ghost span:nth-child(2) {
  right: 48px;
}

.py-camera-ghost b {
  position: absolute;
  left: 50%;
  bottom: 42px;
  width: 112px;
  height: 112px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.py-camera-ghost i {
  position: absolute;
  right: 44px;
  top: 86px;
  width: 112px;
  height: 46px;
  border-radius: 999px;
  background: rgba(9, 8, 12, 0.16);
}

.py-privacy-lock {
  position: relative;
  z-index: 1;
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  margin: 0 auto 26px;
  border-radius: 24px;
  background: #fff;
  color: #17151d;
}

.py-privacy-lock span {
  position: relative;
  display: block;
  width: 30px;
  height: 24px;
  border-radius: 6px;
  background: #09080c;
}

.py-privacy-lock span::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 17px;
  width: 24px;
  height: 24px;
  transform: translateX(-50%);
  border: 5px solid #09080c;
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  background: transparent;
}

.py-privacy-card h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 7vw, 3rem);
  line-height: 1.05;
}

.py-privacy-card p {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  max-width: 360px;
  color: rgba(255, 255, 255, 0.56);
  font-size: clamp(1.1rem, 4vw, 1.35rem);
  font-weight: 850;
  line-height: 1.28;
}

.py-privacy-card .py-button-primary {
  position: relative;
  z-index: 1;
  justify-self: center;
  min-width: 190px;
  min-height: 62px;
  margin-top: 42px;
  border-radius: 999px;
  background: #fff;
  color: #17151d;
  font-size: 1.15rem;
}

.py-privacy-card .py-modal-x {
  top: 70px;
  left: 28px;
  right: auto;
  z-index: 2;
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  font-size: 2rem;
}

@media (max-width: 430px) {
  .py-quick-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .py-quick-actions button {
    min-height: 104px;
  }

  .py-serving-control {
    display: flex;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .py-serving-control button {
    min-width: 112px;
  }

  .py-selected-ingredients > div {
    align-items: flex-start;
  }
}

/* PerfectYou design-audit fixes: stabilize mobile layout and product consistency. */
html[data-perfectyou-landing] {
  overflow-x: clip;
}

html[data-perfectyou-landing] .py-title,
.py-flow-screen > h1,
.py-setup-step h2,
.py-workflow-active .py-tab-panel > h1,
.py-workflow-head h1 {
  letter-spacing: 0;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

html[data-perfectyou-landing] .py-title {
  max-width: 11.5ch;
  font-size: clamp(3rem, 5.4vw, 4.5rem);
  line-height: 1;
}

html[data-perfectyou-landing] .py-hero {
  grid-template-columns: minmax(0, 0.96fr) minmax(360px, 0.82fr);
  gap: clamp(28px, 4vw, 48px);
  padding-top: clamp(48px, 7vw, 76px);
}

.py-flow-screen > h1,
.py-setup-step h2 {
  max-width: 13ch;
  font-size: clamp(2.9rem, 6.2vw, 4.35rem);
  line-height: 1.04;
}

.py-flow {
  padding-bottom: calc(186px + env(safe-area-inset-bottom));
}

.py-goal-grid {
  padding-bottom: 18px;
}

.py-goal-card img {
  object-fit: cover;
  object-position: center 18%;
}

.py-flow-actions {
  width: min(780px, calc(100% - 40px));
}

.py-flow-actions .py-button {
  min-height: 62px;
  font-size: 1.05rem;
}

.py-flow-actions .py-goal-continue:disabled {
  min-height: 58px;
  background: #d6d3da;
  color: #fff;
  box-shadow: none;
}

body.py-workflow-active {
  background: #f7f8fa;
}

.py-macro-card,
.py-nutrition-quality-card,
.py-health-score-card,
.py-health-step-card,
.py-health-burn-card,
.py-health-water-card,
.py-workflow-active .py-daily-hero,
.py-workflow-active .py-mission-tile,
.py-progress-card,
.py-weight-summary-card,
.py-profile-summary {
  border-radius: 22px;
}

.py-workflow-active .py-coach-floating {
  right: max(22px, env(safe-area-inset-right));
  bottom: calc(104px + env(safe-area-inset-bottom));
  box-shadow: 0 18px 34px rgba(18, 24, 38, 0.18);
}

html[data-perfectyou-coach] .py-coach-topbar .py-nav::before {
  content: "PerfectYou Coach";
  min-width: 0;
  color: var(--py-text, #121826);
  font-size: 0.98rem;
  font-weight: 950;
  white-space: nowrap;
}

html[data-perfectyou-coach] .py-coach-mobile-title {
  display: none;
}

html[data-perfectyou-coach] .py-coach-chat-main {
  padding-bottom: 220px;
}

html[data-perfectyou-coach] .py-coach-composer {
  background: linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--py-app-bg, #f6f7f9) 88%, transparent) 22%, var(--py-app-bg, #f6f7f9) 100%);
}

@media (min-width: 721px) {
  body.py-flow-page:not(.py-workflow-active)::before {
    height: 104px;
  }

  .py-flow-actions {
    position: sticky;
    right: auto;
    bottom: 18px;
    left: auto;
    transform: none;
    margin: 34px auto 0;
  }

  .py-flow-actions .py-button-secondary:disabled,
  .py-flow-actions .py-button.py-hidden {
    display: none;
  }
}

@media (max-width: 720px) {
  html[data-perfectyou-landing] .py-nav {
    align-items: center;
    min-height: 66px;
    padding: 10px 0;
  }

  html[data-perfectyou-landing] .py-links {
    flex-wrap: nowrap;
    gap: 6px;
  }

  html[data-perfectyou-landing] .py-links > a:not(.py-button),
  html[data-perfectyou-landing] .py-language-switch span {
    display: none;
  }

  html[data-perfectyou-landing] .py-language-switch select {
    width: 76px;
    padding: 7px 8px;
    font-size: 0.85rem;
  }

  html[data-perfectyou-landing] .py-links .py-button {
    min-height: 38px;
    padding: 8px 10px;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  html[data-perfectyou-landing] .py-hero {
    grid-template-columns: 1fr;
    padding-top: 36px;
  }

  html[data-perfectyou-landing] .py-title {
    max-width: 10.5ch;
    font-size: clamp(2.42rem, 10vw, 3.05rem);
    line-height: 1.04;
  }

  .py-flow {
    width: min(100% - 28px, 460px);
    padding-bottom: calc(136px + env(safe-area-inset-bottom));
  }

  .py-flow-screen > h1,
  .py-setup-step h2 {
    font-size: clamp(2.35rem, 9.4vw, 3.25rem);
    line-height: 1.04;
  }

  .py-flow-actions {
    right: max(14px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    left: max(14px, env(safe-area-inset-left));
    width: auto;
    gap: 8px;
  }

  .py-flow-actions .py-button {
    min-height: 54px;
    font-size: 0.98rem;
  }

  .py-flow-actions .py-goal-continue:disabled {
    min-height: 52px;
  }

  html[data-perfectyou-coach] .py-coach-topbar .py-nav {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 10px;
  }

  html[data-perfectyou-coach] .py-coach-topbar .py-nav::before {
    content: none;
  }

  html[data-perfectyou-coach] .py-coach-mobile-title {
    display: block;
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    min-width: 0;
    color: var(--py-text, #121826);
    font-size: 0.98rem;
    font-weight: 950;
    text-align: center;
    white-space: nowrap;
  }

  html[data-perfectyou-coach] .py-coach-topbar-spacer {
    display: none;
  }

  html[data-perfectyou-coach] .py-coach-topbar .py-links {
    grid-column: 3;
    grid-row: 1;
    display: grid;
    width: 44px;
    max-width: none;
    justify-self: end;
    overflow: visible;
  }

  html[data-perfectyou-coach] .py-coach-menu-button {
    grid-column: 1;
    grid-row: 1;
    position: relative;
    width: 44px;
    height: 44px;
    overflow: hidden;
    color: var(--py-text, #121826);
    font-size: 0;
  }

  html[data-perfectyou-coach] .py-coach-menu-button::before {
    content: "";
    display: block;
    width: 17px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
  }

  html[data-perfectyou-coach] .py-theme-toggle {
    display: grid;
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 0;
    overflow: hidden;
    border-radius: 999px;
    font-size: 0;
  }

  html[data-perfectyou-coach] .py-theme-toggle::before {
    content: "\25d0";
    font-size: 1.05rem;
  }

  html[data-perfectyou-coach] .py-coach-chat-main {
    padding: 20px 12px 238px;
  }

  html[data-perfectyou-coach] .py-coach-composer {
    padding: 18px 12px calc(18px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 430px) {
  .py-macro-dashboard,
  .py-nutrition-quality-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .py-macro-card,
  .py-nutrition-quality-card {
    min-height: 108px;
    padding: 12px;
  }

  .py-macro-card span,
  .py-nutrition-quality-card span {
    max-width: calc(100% - 44px);
    font-size: 0.76rem;
    line-height: 1.12;
  }

  .py-macro-card::after {
    right: 10px;
    bottom: 10px;
    width: 40px;
    height: 40px;
  }

  .py-macro-card i {
    right: 22px;
    bottom: 22px;
    font-size: 0.72rem;
  }

  .py-nutrition-quality-card i {
    width: 42px;
    height: 42px;
    border-width: 7px;
    justify-self: end;
  }

  .py-nutrition-quality-card.is-sodium {
    grid-column: 1 / -1;
  }

  .py-workflow-active .py-flow {
    padding-bottom: calc(132px + env(safe-area-inset-bottom));
  }

  html[data-perfectyou-app] body.py-workflow-active .py-tabbar,
  .py-workflow-active .py-tabbar {
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    left: 12px;
    max-width: none;
    min-height: 58px;
    border-radius: 18px;
  }

  html[data-perfectyou-app] body.py-workflow-active .py-tabbar button,
  .py-workflow-active .py-tabbar button {
    min-height: 46px;
    font-size: 0.58rem;
  }

  .py-workflow-active .py-coach-floating {
    bottom: calc(92px + env(safe-area-inset-bottom));
    width: 54px;
    min-width: 54px;
    height: 54px;
    min-height: 54px;
  }
}

/* PerfectYou landing final overrides for the June 2026 women-focused refresh. */
html[data-perfectyou-landing] body.py-page {
  background:
    radial-gradient(circle at top left, rgba(244, 219, 213, 0.3), transparent 28%),
    radial-gradient(circle at top right, rgba(219, 235, 228, 0.42), transparent 26%),
    linear-gradient(180deg, #fffdfb 0%, #fffaf7 44%, #fffdfb 100%);
  color: #261f21;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
}

html[data-perfectyou-landing] .py-header {
  background: rgba(255, 253, 251, 0.88);
  border-bottom-color: rgba(112, 92, 99, 0.08);
}

html[data-perfectyou-landing] .py-brand,
html[data-perfectyou-landing] .py-nav,
html[data-perfectyou-landing] .py-links,
html[data-perfectyou-landing] .py-language-switch {
  color: #514549;
}

html[data-perfectyou-landing] .py-brand span:last-child {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: 1.24rem;
  letter-spacing: 0.02em;
}

html[data-perfectyou-landing] .py-mark {
  border-radius: 12px;
  background: linear-gradient(135deg, #d77b6b 0%, #b86173 100%);
  color: #fff7f3;
  box-shadow: 0 14px 24px rgba(184, 97, 115, 0.22);
}

html[data-perfectyou-landing] .py-button {
  border-radius: 999px;
  font-weight: 800;
}

html[data-perfectyou-landing] .py-button-primary {
  background: linear-gradient(135deg, #cc7567 0%, #b86173 100%);
  box-shadow: 0 18px 34px rgba(184, 97, 115, 0.22);
}

html[data-perfectyou-landing] .py-button-secondary {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(112, 92, 99, 0.14);
}

html[data-perfectyou-landing] .py-hero {
  min-height: auto;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr);
  align-items: start;
  gap: 56px;
  padding: 38px 0 54px;
}

html[data-perfectyou-landing] .py-hero-copy {
  align-self: start;
  padding-top: 26px;
}

html[data-perfectyou-landing] .py-title {
  max-width: 760px;
  color: #241d1f;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(3.55rem, 6vw, 5.8rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.05em;
}

html[data-perfectyou-landing] .py-subtitle,
html[data-perfectyou-landing] .py-hero-note,
html[data-perfectyou-landing] .py-section-head > p:not(.py-eyebrow),
html[data-perfectyou-landing] .py-card p,
html[data-perfectyou-landing] .py-before-after-card p,
html[data-perfectyou-landing] .py-faq-item p,
html[data-perfectyou-landing] .py-demo-overlay {
  color: #6e6267;
}

html[data-perfectyou-landing] .py-subtitle {
  margin-top: 24px;
  font-size: 1.18rem;
  line-height: 1.72;
}

html[data-perfectyou-landing] .py-proof {
  gap: 10px;
  margin-top: 24px;
}

html[data-perfectyou-landing] .py-proof span {
  border: 1px solid rgba(112, 92, 99, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  padding: 10px 14px;
}

html[data-perfectyou-landing] .py-hero-note {
  margin-top: 20px;
  font-size: 0.98rem;
  line-height: 1.65;
}

html[data-perfectyou-landing] .py-coach-preview {
  border: 1px solid rgba(112, 92, 99, 0.1);
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(252, 246, 242, 0.96) 100%);
  box-shadow: 0 24px 60px rgba(54, 36, 42, 0.1);
  padding: 18px;
}

html[data-perfectyou-landing] .py-preview-label {
  color: rgba(82, 63, 69, 0.84);
}

html[data-perfectyou-landing] .py-demo-dashboard {
  display: grid;
  gap: 18px;
  padding: 24px;
  border-radius: 26px;
  background:
    radial-gradient(circle at top right, rgba(216, 235, 227, 0.58), transparent 34%),
    linear-gradient(180deg, #fffdfb 0%, #fbf5f1 100%);
}

html[data-perfectyou-landing] .py-demo-comparison::before {
  content: none;
}

html[data-perfectyou-landing] .py-preview-summary,
html[data-perfectyou-landing] .py-preview-grid {
  display: grid;
  gap: 16px;
}

html[data-perfectyou-landing] .py-preview-summary {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

html[data-perfectyou-landing] .py-preview-goal,
html[data-perfectyou-landing] .py-preview-feedback-card,
html[data-perfectyou-landing] .py-analysis-stack span,
html[data-perfectyou-landing] .py-feedback-mini-item,
html[data-perfectyou-landing] .py-card,
html[data-perfectyou-landing] .py-before-after-card,
html[data-perfectyou-landing] .py-faq-item,
html[data-perfectyou-landing] .py-result-panel,
html[data-perfectyou-landing] .py-form {
  border: 1px solid rgba(112, 92, 99, 0.1);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 38px rgba(54, 36, 42, 0.06);
}

html[data-perfectyou-landing] .py-preview-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

html[data-perfectyou-landing] .py-preview-target img {
  height: 274px;
  border-radius: 24px;
  object-fit: cover;
  object-position: center top;
}

html[data-perfectyou-landing] .py-analysis-stack {
  position: static;
  inset: auto;
  z-index: auto;
  width: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

html[data-perfectyou-landing] .py-preview-feedback {
  display: grid;
  gap: 12px;
}

html[data-perfectyou-landing] .py-preview-feedback-card {
  padding: 16px;
  border-radius: 22px;
}

html[data-perfectyou-landing] .py-preview-today {
  border-radius: 18px;
  background: rgba(61, 122, 113, 0.1);
  color: #476761;
  padding: 14px 16px;
}

html[data-perfectyou-landing] .py-demo-overlay {
  position: static;
  display: block;
  inset: auto;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
  line-height: 1.62;
}

html[data-perfectyou-landing] .py-proof-band::before,
html[data-perfectyou-landing] .py-feature-strip::before,
html[data-perfectyou-landing] .py-faq-section::before,
html[data-perfectyou-landing] .py-waitlist-section::before {
  background: rgba(255, 255, 255, 0.6);
}

html[data-perfectyou-landing] .py-section-head h2 {
  color: #2d2327;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-weight: 700;
  letter-spacing: -0.03em;
}

html[data-perfectyou-landing] .py-eyebrow,
html[data-perfectyou-landing] .py-result-label,
html[data-perfectyou-landing] .py-preview-kicker,
html[data-perfectyou-landing] .py-preview-goal small,
html[data-perfectyou-landing] .py-preview-feedback-card small,
html[data-perfectyou-landing] .py-feedback-mini-item small {
  color: #c97f6e;
}

html[data-perfectyou-landing] .py-before-after-card {
  padding: 20px;
}

html[data-perfectyou-landing] .py-before-after-card img {
  height: 320px;
  border-radius: 24px;
}

html[data-perfectyou-landing] .py-before-after-card-feedback {
  background:
    radial-gradient(circle at top right, rgba(216, 235, 227, 0.58), transparent 26%),
    rgba(255, 255, 255, 0.94);
}

html[data-perfectyou-landing] .py-faq-grid {
  gap: 18px;
}

html[data-perfectyou-landing] .py-row {
  border-top-color: rgba(112, 92, 99, 0.08);
}

html[data-perfectyou-landing] .py-row strong {
  color: #2d2327;
}

html[data-perfectyou-landing] .py-form input,
html[data-perfectyou-landing] .py-form select,
html[data-perfectyou-landing] .py-language-switch select {
  border: 1px solid rgba(112, 92, 99, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
}

html[data-perfectyou-landing] .py-check {
  background: rgba(249, 244, 239, 0.74);
}

@media (max-width: 980px) {
  html[data-perfectyou-landing] .py-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 26px;
    padding-top: 24px;
  }

  html[data-perfectyou-landing] .py-preview-grid,
  html[data-perfectyou-landing] .py-faq-grid,
  html[data-perfectyou-landing] .py-grid.py-grid-3,
  html[data-perfectyou-landing] .py-before-after-grid,
  html[data-perfectyou-landing] .py-protocol-grid,
  html[data-perfectyou-landing] .py-waitlist-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  html[data-perfectyou-landing] .py-nav {
    min-height: 70px;
    gap: 10px;
  }

  html[data-perfectyou-landing] .py-brand {
    gap: 8px;
    min-width: 0;
  }

  html[data-perfectyou-landing] .py-brand span:last-child {
    font-size: 1rem;
  }

  html[data-perfectyou-landing] .py-title {
    font-size: clamp(2.8rem, 14vw, 4.1rem);
  }

  html[data-perfectyou-landing] .py-subtitle {
    font-size: 1rem;
  }

  html[data-perfectyou-landing] .py-links {
    gap: 6px;
  }

  html[data-perfectyou-landing] .py-links > a:not(.py-button) {
    display: none;
  }

  html[data-perfectyou-landing] .py-language-switch span {
    display: none;
  }

  html[data-perfectyou-landing] .py-language-switch select {
    min-height: 40px;
    max-width: 64px;
    padding: 8px 8px;
    font-size: 0.8rem;
  }

  html[data-perfectyou-landing] .py-links .py-button {
    min-height: 40px;
    padding: 10px 11px;
    font-size: 0.74rem;
  }

  html[data-perfectyou-landing] .py-proof {
    gap: 8px;
  }

  html[data-perfectyou-landing] .py-proof span {
    padding: 9px 12px;
    font-size: 0.78rem;
  }

  html[data-perfectyou-landing] .py-preview-summary {
    grid-template-columns: 1fr;
  }

  html[data-perfectyou-landing] .py-preview-goal {
    min-width: 0;
  }

  html[data-perfectyou-landing] .py-analysis-stack {
    grid-template-columns: 1fr;
  }

  html[data-perfectyou-landing] .py-preview-target img,
  html[data-perfectyou-landing] .py-before-after-card img {
    height: 240px;
  }
}
