.hero-card { position: relative; overflow: hidden; padding: 22px; color: #fff; border-radius: var(--radius-xl); background: linear-gradient(135deg, #ff773f 0%, #ee4931 72%); box-shadow: 0 18px 34px rgba(231,73,43,.25); }
.hero-card::after { content: ""; position: absolute; width: 190px; height: 190px; right: -60px; top: -92px; border: 34px solid rgba(255,255,255,.1); border-radius: 50%; }
.hero-greeting { color: rgba(255,255,255,.82); font-size: 12px; font-weight: 700; }
.hero-card h1 { max-width: 250px; margin: 5px 0 18px; font-size: clamp(25px, 8vw, 34px); line-height: 1.06; }
.hero-card h1 em { color: #ffe681; font-style: normal; }
.scan-button { position: relative; z-index: 1; min-height: 56px; width: 100%; border: 0; border-radius: 18px; color: var(--ink); background: #fff; box-shadow: 0 9px 20px rgba(120,35,22,.16); display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 850; cursor: pointer; }
.scan-button span { font-size: 22px; }
.daily-card { margin-top: 14px; padding: 18px; }
.daily-card__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.daily-card h2 { margin: 0 0 3px; font-size: 18px; }
.daily-card p { margin: 0; color: var(--muted); font-size: 12px; }
.macro-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 17px; }
.advice-card { margin-top: 14px; padding: 16px; display: grid; grid-template-columns: 44px 1fr; gap: 12px; background: linear-gradient(135deg, #e2f8e9, #f4fff4); border-color: #cef2db; }
.advice-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 15px; background: var(--paper); font-size: 23px; box-shadow: var(--shadow-soft); }
.advice-card b { display: block; color: #177846; }
.advice-card p { margin: 3px 0 0; color: #496c58; font-size: 12px; }
.screen-title { margin: 5px 2px 16px; }
.screen-title h1 { margin: 0; font-size: 28px; }
.screen-title p { margin: 5px 0 0; color: var(--muted); }
.date-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin: 14px 0; }
.date-chip { border: 0; border-radius: 14px; padding: 9px 2px; color: var(--muted); background: var(--surface); cursor: pointer; }
.date-chip b, .date-chip small { display: block; }
.date-chip small { font-size: 9px; text-transform: uppercase; }
.date-chip b { margin-top: 3px; font-size: 14px; }
.date-chip.is-active { color: #fff; background: var(--orange); box-shadow: 0 6px 14px rgba(255,107,53,.25); }
.day-summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 15px; }
.day-summary strong { font-size: 21px; }
.day-summary small { display: block; color: var(--muted); }
.diary-balance { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 7px; padding-top: 5px; color: var(--muted); font-size: 11px; }
.diary-balance span { padding: 5px 7px; border-radius: 9px; background: var(--surface-soft, #f7f3ec); }
.diary-balance span:first-child { color: var(--ink); background: var(--surface-orange); }
:root[data-theme="dark"] .diary-balance span:first-child { background: #4f3828; }
.meal-group { margin-top: 14px; overflow: hidden; }
.meal-group__title { padding: 12px 14px 6px; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.progress-overview { padding: 18px; margin-top: 14px; }
.progress-score { display: flex; align-items: center; gap: 16px; }
.progress-score__number { width: 75px; height: 75px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 24px; color: #fff; background: linear-gradient(145deg, var(--green), #16814a); font-size: 25px; font-weight: 850; transform: rotate(-3deg); }
.progress-score h2 { margin: 0 0 4px; }
.progress-score p { color: var(--muted); margin: 0; font-size: 12px; }
.chart-card { padding: 18px; margin-top: 14px; }
.chart-head { display: flex; align-items: start; justify-content: space-between; }
.chart-head h3 { margin: 0; }
.chart-head small { color: var(--green); font-weight: 750; }
.bar-chart { height: 160px; display: flex; align-items: end; gap: 8px; padding-top: 20px; border-bottom: 1px solid var(--line); }
.bar-item { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: end; align-items: center; gap: 6px; }
.bar-item span { width: min(100%, 25px); min-height: 5px; border-radius: 9px 9px 3px 3px; background: linear-gradient(#ffc84e, var(--orange)); animation: grow .55s ease both; transform-origin: bottom; }
.bar-item small { color: var(--muted); font-size: 9px; }
@keyframes grow { from { scale: 1 0; } }
.wins-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.win-card { padding: 15px; }
.win-card span { font-size: 24px; }
.win-card b, .win-card small { display: block; }
.win-card b { margin-top: 8px; }
.win-card small { color: var(--muted); margin-top: 2px; }
.kitchen-hero { padding: 20px; overflow: hidden; position: relative; background: linear-gradient(135deg, #176f47, #2ab26b); color: #fff; }
.kitchen-hero::after { content: "🥦"; position: absolute; right: 15px; bottom: -18px; font-size: 92px; opacity: .22; transform: rotate(-12deg); }
.kitchen-hero h1 { margin: 6px 0; max-width: 300px; font-size: 28px; }
.kitchen-hero p { margin: 0; max-width: 330px; color: rgba(255,255,255,.8); font-size: 13px; }
.products-card { padding: 18px; margin-top: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 16px; }
.chip { border: 1px solid var(--line); border-radius: 99px; padding: 9px 12px; background: #fff; font-size: 12px; cursor: pointer; }
.chip.is-active { color: #fff; border-color: var(--green); background: var(--green); }
.recipe-card { margin-top: 14px; padding: 18px; background: linear-gradient(145deg, #fff, #fff8e8); }
.recipe-top { display: flex; justify-content: space-between; gap: 12px; }
.recipe-top h2 { margin: 0; }
.recipe-time { white-space: nowrap; color: var(--orange-deep); font-size: 12px; font-weight: 750; }
.recipe-meta { display: flex; gap: 8px; margin: 12px 0; }
.recipe-meta span { padding: 6px 9px; border-radius: 9px; background: var(--surface-orange); font-size: 11px; font-weight: 700; }
.recipe-steps { padding-left: 19px; color: #53574f; font-size: 13px; }
.profile-hero { padding: 18px; display: flex; align-items: center; gap: 14px; }
.avatar { width: 62px; height: 62px; display: grid; place-items: center; border-radius: 21px; color: #fff; background: linear-gradient(145deg, var(--orange), var(--sun)); font-size: 28px; }
.profile-hero h2 { margin: 0; }
.profile-hero p { margin: 3px 0 0; color: var(--muted); }
.settings-card { margin-top: 14px; overflow: hidden; }
.setting-row { min-height: 61px; padding: 12px 15px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.setting-row + .setting-row { border-top: 1px solid var(--line); }
.setting-label { display: flex; align-items: center; gap: 11px; }
.setting-label > span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; background: var(--surface-soft); }
.setting-label b, .setting-label small { display: block; }
.setting-label small { color: var(--muted); font-size: 11px; margin-top: 2px; }
.goal-card { padding: 18px; margin-top: 14px; }
.goal-value { display: flex; justify-content: space-between; align-items: center; }
.goal-value strong { color: var(--orange-deep); font-size: 21px; }
.goal-card input[type="range"] { width: 100%; accent-color: var(--orange); margin: 15px 0 4px; }
.danger-link { color: var(--danger); }
.consent { position: fixed; z-index: 100; inset: 0; overflow-y: auto; padding: calc(22px + var(--safe-top)) 16px calc(22px + var(--safe-bottom)); background: radial-gradient(circle at 90% 5%, #ffd68a, transparent 30%), linear-gradient(160deg, #fff9ef, #fff2dd); }
.consent-card { width: min(100%, 520px); margin: auto; }
.consent-hero { text-align: center; }
.consent-hero img { margin: 0 auto 8px; filter: drop-shadow(0 10px 13px rgba(220,74,40,.2)); }
.consent-illustration { width: 100%; height: min(37vw, 210px); object-fit: cover; object-position: center 43%; border-radius: 26px; }
.consent-hero h1 { margin: 7px 0 9px; font-size: clamp(29px, 9vw, 42px); line-height: 1.02; }
.consent-hero h1 em { color: var(--orange-deep); font-style: normal; }
.consent-hero p { color: var(--muted); }
.consent-points { display: grid; gap: 9px; margin: 22px 0; }
.consent-points article { padding: 13px; border-radius: 17px; background: var(--surface); display: grid; grid-template-columns: 38px 1fr; gap: 10px; box-shadow: var(--shadow-soft); }
.consent-points article > span { font-size: 25px; }
.consent-points b, .consent-points small { display: block; }
.consent-points small { margin-top: 2px; color: var(--muted); }
.consent-check { display: grid; grid-template-columns: 20px 1fr; gap: 9px; margin: 16px 2px; font-size: 12px; color: var(--muted); }
.consent-check input { width: 18px; height: 18px; accent-color: var(--green); }
.consent-check button { border: 0; padding: 0; color: var(--green); background: none; text-decoration: underline; cursor: pointer; }
.legal-note { display: block; text-align: center; color: #99978f; margin-top: 12px; font-size: 10px; }
.primary-button:disabled { opacity: .45; box-shadow: none; cursor: not-allowed; }
@media (max-width: 370px) { .macro-grid { gap: 7px; } .metric-ring { width: 96px; } .bottom-nav { grid-template-columns: 1fr 1fr 66px 1fr 1fr; } .nav-fab { width: 58px; height: 58px; } }


.hero-leo { position: absolute; z-index: 0; right: -10px; top: -4px; width: 136px; height: 136px; object-fit: cover; object-position: 52% 24%; opacity: .96; filter: drop-shadow(0 8px 12px rgba(103,32,13,.2)); border-radius: 50%; }
.hero-card > :not(.hero-leo) { position: relative; z-index: 1; }
.training-teaser { width: 100%; margin-top: 14px; padding: 15px; display: grid; grid-template-columns: 45px 1fr auto; gap: 11px; align-items: center; text-align: left; cursor: pointer; color: var(--ink); }
.training-teaser__icon { width: 45px; height: 45px; display: grid; place-items: center; border-radius: 16px; background: linear-gradient(145deg, #8c77f3, #6456c4); font-size: 23px; }
.training-teaser b, .training-teaser small { display: block; }
.training-teaser small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.training-teaser strong { color: var(--purple); font-size: 22px; }
.training-teaser--recovery .training-teaser__icon { background: linear-gradient(145deg, #50b77c, #27895b); }
.training-hero { position: relative; isolation: isolate; overflow: hidden; min-height: 194px; padding: 16px; display: flex; align-items: end; background: var(--surface-orange-soft); }
.training-hero img { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.training-hero > div { max-width: 62%; padding: 11px 12px; border-radius: 16px; background: color-mix(in srgb, #fff 86%, transparent); box-shadow: 0 8px 22px rgba(107, 62, 12, .09); }
.training-hero h2 { margin: 5px 0; font-size: 21px; }
.training-hero p { margin: 0; color: var(--muted); font-size: 12px; }
.training-step { margin-top: 12px; padding: 14px; display: grid; grid-template-columns: 34px 1fr; gap: 11px; align-items: center; }
.training-step > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 12px; color: #fff; background: var(--purple); font-weight: 850; }
.training-step b, .training-step small { display: block; }
.training-step small { margin-top: 2px; color: var(--muted); font-size: 12px; }
:root[data-theme="dark"] .training-hero { background: #28234a; }
:root[data-theme="dark"] .training-hero > div { background: color-mix(in srgb, #182334 84%, transparent); }

.weight-card { margin-top: 16px; }
.weight-card__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.weight-card__top h2 { margin: 3px 0; }
.weight-card__top p { margin: 0; color: var(--muted); }
.weight-card__icon { font-size: 30px; }
.weight-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; }
.weight-form .field { margin: 14px 0 0; }
.weight-form .secondary-button { min-width: 124px; }
@media (max-width: 390px) { .weight-form { grid-template-columns: 1fr; } .weight-form .secondary-button { width: 100%; } }
/* Light FoodLeo home */
.hero-card {
  min-height: 272px;
  color: var(--ink);
  border: 1px solid #ffddb0;
  background: radial-gradient(circle at 89% 20%, #ffd06f 0 24%, transparent 25%), linear-gradient(145deg, #fffaf0 0%, #fff0d6 100%);
  box-shadow: 0 18px 34px rgba(157, 91, 30, .16);
}
.hero-card::after { right: -72px; top: -83px; border-color: rgba(255, 107, 53, .12); }
.hero-greeting { color: #7b634b; }
.hero-card h1 { max-width: 55%; margin-bottom: 12px; }
.hero-card h1 em { color: var(--orange-deep); }
.hero-leo {
  right: -8px;
  top: -8px;
  width: 202px;
  height: 258px;
  border-radius: 0;
  object-position: 50% 18%;
  opacity: 1;
  filter: drop-shadow(0 11px 14px rgba(103, 32, 13, .18));
}
.scan-button { width: 56%; min-width: 158px; }
.hero-note { max-width: 56%; }
.scan-button {
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--orange-deep));
  box-shadow: 0 9px 20px rgba(237, 74, 43, .24);
}
.hero-note { position: relative; z-index: 1; display: block; margin-top: 9px; color: #755f4a; font-size: 11px; line-height: 1.35; }
.home-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.home-action {
  min-height: 86px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 13px;
  display: grid;
  grid-template-columns: 38px 1fr;
  grid-template-rows: auto auto;
  gap: 2px 9px;
  align-items: center;
  color: var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
  text-align: left;
  cursor: pointer;
}
.home-action > span { grid-row: 1 / 3; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 13px; background: var(--green-soft); font-size: 21px; }
.home-action--photo > span { background: var(--surface-orange-soft); }
.home-action b { align-self: end; font-size: 14px; }
.home-action small { align-self: start; color: var(--muted); font-size: 10px; line-height: 1.2; }
:root[data-theme="dark"] .hero-card { color: var(--ink); border-color: #4b3a29; background: radial-gradient(circle at 89% 20%, #5d421e 0 24%, transparent 25%), linear-gradient(145deg, #202838, #252c38); }
:root[data-theme="dark"] .hero-greeting, :root[data-theme="dark"] .hero-note { color: var(--muted); }
 :root[data-theme="dark"] .advice-card { background: linear-gradient(135deg, #173d2b, #202b3a); border-color: #28533c; }
:root[data-theme="dark"] .advice-card b { color: #a8efc3; }
:root[data-theme="dark"] .advice-card p { color: var(--muted); }
:root[data-theme="dark"] .advice-icon { background: var(--paper); }
@media (max-width: 390px) {
  .hero-card { min-height: 262px; padding: 18px; }
  .hero-card h1 { max-width: 56%; font-size: 25px; }
  .hero-leo { right: -18px; top: -2px; width: 180px; height: 236px; opacity: .96; }
  .scan-button { min-width: 0; width: 57%; font-size: 12px; }
  .hero-note { max-width: 57%; }
  .home-action { min-height: 80px; padding: 11px; grid-template-columns: 34px 1fr; gap: 2px 7px; }
  .home-action > span { width: 34px; height: 34px; font-size: 19px; }
}