/* App presentation based on the 10 October audit references.
   Deliberately keeps route, action, analytics and billing contracts intact. */
body.style-field {
  --bg: oklch(99% .003 205);
  --surface: oklch(99.7% .002 205);
  --ink: oklch(23% .019 205);
  --muted: oklch(46% .023 220);
  --tert: oklch(49% .019 220);
  --line: oklch(88% .014 210);
  --blue: oklch(44% .065 220);
  --blue-t: oklch(94% .022 215);
  --green: oklch(48% .095 165);
  --green-t: oklch(95% .024 165);
  --amber: oklch(48% .105 65);
  --amber-t: oklch(96% .035 80);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
.style-field .nutrition-menu-plan {
  margin-top: 18px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.style-field .nutrition-menu-plan__heading {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}
.style-field .nutrition-menu-plan__heading .badge {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 10px;
  background: var(--blue-t);
  color: var(--blue);
}
.style-field .nutrition-menu-plan__heading .badge .icon { font-size: 18px; }
.style-field .nutrition-menu-plan__heading h2 {
  margin: 1px 0 3px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.3;
  font-weight: 800;
}
.style-field .nutrition-menu-plan__heading p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
.style-field .nutrition-menu-plan .menu-plan { margin-top: 9px; }
body.style-field.single .catalog .frame { max-width: 520px; }
body.style-field.single .catalog .frame .screen { background: var(--bg); }
body.style-field.single .catalog .frame .scroll { padding-left: 22px; padding-right: 22px; }
body.style-field.single .catalog .frame .top { gap: 12px; align-items: center; margin-bottom: 20px; }
body.style-field.single .catalog .frame .title { font-family: inherit; font-size: 32px; line-height: 1.12; font-weight: 850; letter-spacing: -.9px; }
body.style-field.single .catalog .frame .app-title { font-family: inherit; font-size: 23px; line-height: 1.2; font-weight: 800; letter-spacing: -.5px; }
body.style-field.single .catalog .frame .h2 { font-size: 21px; line-height: 1.25; font-weight: 800; letter-spacing: -.4px; }
body.style-field.single .catalog .frame .h3 { font-size: 16px; line-height: 1.35; }
body.style-field.single .catalog .frame .body-copy { font-size: 15px; line-height: 1.5; }
body.style-field.single .catalog .frame .mini { font-size: 13px; line-height: 1.45; }
body.style-field.single .catalog .frame .section-label, body.style-field .sheet .section-label { font-size: 11px; letter-spacing: 1.3px; margin: 22px 0 10px; line-height: 1.4; }
body.style-field.single .catalog .frame .back { min-height: 48px; gap: 12px; }
body.style-field.single .catalog .frame .button, body.style-field .sheet .button {
  min-height: 54px; height: auto; padding: 14px 16px; border-radius: 15px;
  background: var(--ink); color: var(--bg); font-size: 16px; line-height: 1.3;
  font-weight: 750; text-align: center; white-space: normal;
}
body.style-field.single .catalog .frame .button.secondary, body.style-field .sheet .button.secondary {
  background: var(--surface); color: var(--ink); border: 1px solid var(--line);
}
body.style-field.single .catalog .frame .button.small, body.style-field .sheet .button.small { min-height: 46px; font-size: 14px; padding: 10px 12px; }
body.style-field.single .catalog .frame .icon-btn { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 12px; }
body.style-field.single .catalog .frame .field, body.style-field.single .catalog .frame .search,
body.style-field .sheet .field, body.style-field .sheet .search {
  min-height: 54px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); padding: 0 14px;
}
/* Keep text-entry fields visually calm while typing; retain focus cues for buttons. */
body.style-field :is(.field,.search):focus-within { border-color:var(--line); box-shadow:none; }
body.style-field :is(.field,.search) :is(input,select), body.style-field textarea.chat { font-size: 16px; }
body.style-field.single .catalog .frame .goal { border: 1px solid var(--line); border-radius: 14px; padding: 15px 14px; margin-bottom: 10px; background: var(--surface); min-height: 74px; }
body.style-field.single .catalog .frame .goal.selected { border-color: var(--blue); background: var(--blue-t); box-shadow: inset 0 0 0 1px var(--blue); }
body.style-field.single .catalog .frame .segment { min-height: 48px; height: auto; padding: 10px; border-radius: 12px; background: var(--surface); font-size: 14px; }
body.style-field.single .catalog .frame .segment.active { background: var(--ink); color: var(--bg); }
body.style-field.single .catalog .frame .note { border-radius: 13px; padding: 13px; font-size: 14px; line-height: 1.45; background: var(--blue-t); }
body.style-field.single .catalog .frame .note.green { background: var(--green-t); }
body.style-field.single .catalog .frame .price { padding: 16px; border-radius: 15px; background: var(--surface); }
body.style-field.single .catalog .frame .price.selected { border-color: var(--blue); background: var(--blue-t); box-shadow: inset 0 0 0 1px var(--blue); }
body.style-field.single .catalog .frame .list-card { min-height: 64px; gap: 12px; padding: 15px 0; }
body.style-field.single .catalog .frame .badge { width: 36px; height: 36px; border-radius: 11px; }
body.style-field.single .catalog .frame .setting { min-height: 68px; }
body.style-field.single .catalog .frame .switch { width: 50px; height: 30px; flex: 0 0 50px; padding: 4px; position: relative; }
body.style-field.single .catalog .frame .switch::after { width: 22px; height: 22px; }
body.style-field.single .catalog .frame .switch::before { content: ""; position: absolute; inset: -7px 0; }
body.style-field.single .catalog .frame .nav { background: var(--surface); padding-left: 8px; padding-right: 8px; }
body.style-field.single .catalog .frame .nav-item { font-size: 11px; min-height: 58px; gap: 5px; justify-content: center; }
body.style-field.single .catalog .frame .quick { width: 44px; height: 44px; border-radius: 14px; background: var(--ink); color: var(--bg); transform: none; box-shadow: none; }
body.style-field.single .catalog .frame .quick .icon { font-size: 26px; }
body.style-field.single .catalog .frame .profile-avatar { width: 44px; height: 44px; border-radius: 14px; background: var(--ink); color: var(--bg); }
body.style-field.single .catalog .frame .date { font-size: 12px; line-height: 1.5; letter-spacing: 1px; }
body.style-field.single .catalog .frame .daily-decision { padding: 18px 0; border-top: 1px solid var(--ink); }
body.style-field.single .catalog .frame .decision-kicker { font-size: 11px; line-height: 1.45; letter-spacing: 1.3px; }
body.style-field.single .catalog .frame .left-big { font-family: inherit; font-size: 48px; font-weight: 850; letter-spacing: -1.6px; }
body.style-field.single .catalog .frame .decision-meta { font-size: 13px; line-height: 1.45; margin-top: 8px; }
body.style-field.single .catalog .frame .today-track { height: 10px; margin-top: 14px; border-radius: 5px; }
body.style-field.single .catalog .frame .today-track span { background: var(--green); }
body.style-field.single .catalog .frame .decision-actions { gap: 8px; margin-top: 18px; }
body.style-field.single .catalog .frame .decision-actions .decision-start { min-height: 52px; border-radius: 13px; font-size: 14px; padding: 12px 8px; }
body.style-field.single .catalog .frame .as-yest { padding: 12px; margin-top: 12px; border-radius: 14px; background: var(--surface); }
body.style-field.single .catalog .frame .as-yest b { font-size: 14px; }
body.style-field.single .catalog .frame .week-strip { margin-top: 20px; padding: 16px 10px 8px; border: 1px solid var(--line); border-bottom: 0; border-radius: 15px 15px 0 0; background: var(--surface); }
body.style-field.single .catalog .frame .week-strip .wd { gap: 6px; font-size: 11px; }
body.style-field.single .catalog .frame .week-strip .wd i { width: 26px; height: 26px; }
body.style-field.single .catalog .frame .week-cap { margin: 0; padding: 4px 14px 14px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 15px 15px; background: var(--surface); font-size: 13px; line-height: 1.4; }
body.style-field.single .catalog .frame .function-row { min-height: 76px; }
body.style-field.single .catalog .frame .function-title { font-size: 15px; }
body.style-field.single .catalog .frame .function-meta { font-size: 12px; line-height: 1.4; }
body.style-field.single .catalog .frame .function-value { font-size: 14px; }
body.style-field .dialog-backdrop { background: rgb(20 34 38 / 32%); justify-content: center; }
body.style-field .sheet { width: 100%; max-width: 520px; max-height: calc(100dvh - 36px - var(--tg-safe-top,0px)); padding: 16px 22px calc(22px + var(--tg-safe-bottom,0px)); border-radius: 24px 24px 0 0; background: var(--surface); box-shadow: 0 -8px 40px rgb(20 34 38 / 12%); }
body.style-field .sheet .h2 { font-size: 23px; line-height: 1.25; font-weight: 800; }
body.style-field .sheet .body-copy { font-size: 15px; line-height: 1.5; }
body.style-field .sheet .mini { font-size: 13px; line-height: 1.45; }
body.style-field .sheet-handle { width: 42px; height: 5px; margin-bottom: 22px; }
body.style-field .ways { gap: 8px; }
body.style-field .way { min-width: 0; min-height: 80px; border-radius: 14px; gap: 8px; background: var(--surface); font-size: 12px; }
body.style-field .add-now { background: var(--blue-t); color: var(--blue); border: 1px solid var(--line); }
body.style-field.single .catalog .frame .rec-row { grid-template-columns: minmax(0,1fr) 80px 40px 40px; gap: 6px; padding: 16px 0; }
body.style-field.single .catalog .frame .rec-row .field { min-height: 46px; padding: 0 10px; }
body.style-field.single .catalog .frame .rec-g input { border-radius: 11px; background: var(--surface); border-color: var(--line); font-size: 16px; }
body.style-field.single .catalog .frame .rec-main input.name { font-size: 14px; line-height: 1.4; min-height: 40px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
body.style-field.single .catalog .frame .rec-main .mini { display: block; white-space: normal; overflow: visible; margin-top: 6px; font-size: 12px; }
body.style-field.single .catalog .frame .rec-act { background: var(--blue-t); color: var(--blue); width: 40px; border-radius: 11px; }
body.style-field.single .catalog .frame .portion { min-height: 44px; min-width: 52px; border-radius: 22px; background: var(--blue-t); color: var(--ink); font-size: 15px; }
body.style-field.single .catalog .frame .portion.on { background: var(--ink); color: var(--bg); }
body.style-field.single .catalog .frame .save-dock { margin: 12px -22px 0; padding: 14px 22px calc(14px + var(--tg-safe-bottom,0px)); background: var(--surface); }
body.style-field.single .catalog .frame .save-dock .row { gap: 8px; flex-wrap: wrap; }
body.style-field.single .catalog .frame .save-dock b { font-size: 16px; }
body.style-field [data-action="rec-refine"] { display: grid; place-items: center; flex: 0 0 40px; width: 40px; min-height: 44px; border-radius: 10px; background: var(--blue-t); }

/* Post-trial plan selection and payment confirmation */
body.style-field .preview-paywall { max-width: 520px; margin: 0 auto; }
body.style-field .preview-ended-title { max-width: 330px; margin: 0; font-size: 25px!important; line-height: 1.08; }
body.style-field .preview-usage { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; margin: 12px 0; }
body.style-field .preview-usage > div { display: grid; justify-items: center; gap: 2px; padding: 8px 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
body.style-field .preview-usage b { font-size: 23px; line-height: 1.1; }
body.style-field .preview-usage span,.preview-plan span { color: var(--muted); font-size: 11px; }
body.style-field .preview-ended-copy { margin: 10px 0 12px; font-size: 13px!important; line-height: 1.4!important; }
body.style-field .preview-plan { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; margin-top: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); cursor: pointer; }
body.style-field .preview-plan.selected { border-color: var(--ink); background: var(--blue-t); box-shadow: inset 0 0 0 1px var(--ink); }
body.style-field .preview-plan > div:first-child,.preview-plan-price { display: grid; gap: 3px; }
body.style-field .preview-plan-price { justify-items: end; }
body.style-field .preview-plan-price b { white-space: nowrap; font-size: 14px; }
body.style-field .preview-plan-price span { color: var(--green); font-weight: 800; }
body.style-field .preview-terms,.preview-checkout-terms { margin: 9px 2px 0; text-align: center; font-size: 11px!important; line-height: 1.4!important; }
body.style-field .preview-free { margin-top: 10px; color: var(--blue); text-align: center; font-weight: 700; }
body.style-field .sheet .preview-checkout-rows { margin: 12px 0; }
body.style-field .sheet .preview-checkout-rows .row { min-height: 38px; border-bottom: 1px solid var(--line); font-size: 13px; }
body.style-field .sheet .preview-checkout-rows .row:last-child { border-bottom: 0; }
body.style-field .sheet .preview-renew { display: grid; grid-template-columns: minmax(0,1fr) auto; margin: 12px 0 10px; padding: 10px; min-height: 64px; }
body.style-field .sheet .preview-renew .switch { flex: 0 0 40px; }
body.style-field .sheet .preview-checkout-terms { margin: 10px 2px 0; }
@media(max-height:700px) { body.style-field .preview-ended-title { font-size:22px!important; } body.style-field .preview-usage { margin:8px 0; } body.style-field .preview-usage > div { padding:6px; } body.style-field .preview-ended-copy { margin:7px 0; } body.style-field .preview-plan { min-height:56px; } }
body.style-field.single .catalog .frame .rec-wait { padding: 14px; gap: 14px; background: var(--surface); }
body.style-field.single .catalog .frame .rec-wait:has(img) { grid-template-columns: minmax(0,1fr) auto; }
body.style-field.single .catalog .frame .rec-wait img { grid-column: 1/-1; width: 100%; height: 190px; object-fit: cover; border-radius: 12px; }
body.style-field.single .catalog .frame[data-screen="paywall"] .checkline { padding: 16px 0; border-top: 1px solid var(--line); margin: 0; gap: 12px; font-size: 16px; font-weight: 650; line-height: 1.45; }
body.style-field.single .catalog .frame[data-screen="paywall"] .checkline .icon { font-size: 23px; color: var(--blue); flex: 0 0 23px; }
body.style-field.single .catalog .frame[data-screen="paywall"] .scroll > .h2 { font-size: 29px!important; line-height: 1.15; letter-spacing: -.7px; }
body.style-field.single .catalog .frame .guar-line { font-size: 14px; line-height: 1.5; margin-top: 14px; }
body.style-field.single .catalog .frame .meal-row { padding: 16px 0; }
body.style-field.single .catalog .frame[data-screen="nutrition"] .card > .row.between.mini:has(> span:nth-child(3)) { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
body.style-field.single .catalog .frame[data-screen="nutrition"] .card > .row.between.mini > span { white-space: normal; }
body.style-field.single .catalog .frame[data-screen="progress"] .week-bars { height: 116px; gap: 8px; margin-top: 18px; }
body.style-field.single .catalog .frame[data-screen="progress"] .week-bar span { border-radius: 6px 6px 2px 2px; }
body.style-field.single .catalog .frame .left-hero { padding-top: 20px; }
body.style-field.single .catalog .frame .left-num { font-family: inherit; font-size: 48px; font-weight: 850; margin: 12px 0; }
body.style-field.single .catalog .frame .onboarding-screen .bar { margin-top: 12px; height: 6px; border-radius: 3px; }
body.style-field.single .catalog .frame .remind-card { padding: 16px; background: var(--surface); border-radius: 15px; }
body.style-field.single .catalog .frame .remind-card b { font-size: 15px; }
body.style-field.single .catalog .frame .remind-card .pill { min-height: 44px; }
body.style-field.single .catalog .frame :is(.row,.grow,.stack,.rec-main) { min-width: 0; }
body.style-field.single .catalog .frame :is(.body-copy,.mini,.h2,.h3,.app-title) { overflow-wrap: anywhere; }
body.style-field :is(button,a,[role="button"],[role="switch"],[role="radio"]):focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
body.style-field :is(input,textarea,select):focus-visible { outline:0; box-shadow:none; }
@media (max-width:359px) {
  body.style-field.single .catalog .frame .scroll { padding-left: 16px; padding-right: 16px; }
  body.style-field .sheet { padding-left: 16px; padding-right: 16px; }
  body.style-field.single .catalog .frame .save-dock { margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; }
  body.style-field.single .catalog .frame .rec-row { grid-template-columns: minmax(0,1fr) 44px 44px; gap: 8px; }
  body.style-field.single .catalog .frame .rec-main { grid-column: 1/-1; }
  body.style-field.single .catalog .frame .rec-g { max-width: 112px; }
  body.style-field.single .catalog .frame .rec-act { width: 44px; }
  body.style-field.single .catalog .frame .decision-actions .decision-start { font-size: 12px; flex-basis: 80px; }
  body.style-field.single .catalog .frame .title { font-size: 29px; }
}
@media (min-width:600px) { body.style-field .sheet { margin-bottom: 24px; border-radius: 24px; } }
@media (prefers-reduced-motion:reduce) { body.style-field .sheet, body.style-field .button { animation: none; transition: none; } }

/* Reference composition: one task, meal rows, then the weekly overview. */
body.style-field.single .catalog .frame .ref-balance {
  padding: 18px;
  border: 1px solid oklch(89% .035 80);
  border-radius: 16px;
  background: linear-gradient(145deg, var(--surface) 65%, oklch(98% .025 80));
}
.ref-balance-number { display:flex; align-items:baseline; gap:12px; margin:7px 0 8px; }
.ref-balance-number strong { font-size:46px; line-height:1; letter-spacing:-1.5px; font-weight:850; font-variant-numeric:tabular-nums; }
.ref-balance-number > span { color:var(--muted); font-size:14px; font-weight:600; }
.ref-kcal-track { height:10px; margin:14px 0 12px; overflow:hidden; border-radius:5px; background:var(--line); }
.ref-kcal-track > span { display:block; height:100%; border-radius:inherit; background:var(--amber); }
.ref-macro-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:0 0 14px; }
.ref-macro-item { min-width:0; padding:9px; border-radius:10px; background:var(--bg); }
.ref-macro-value { display:flex; align-items:baseline; gap:5px; color:var(--muted); font-size:11px; line-height:1.25; font-variant-numeric:tabular-nums; white-space:nowrap; }
.ref-macro-value b { font-size:12px; font-weight:750; }
.ref-macro-item :is(.ref-macro-value b) { color:var(--ink); }
.ref-macro-meter { height:5px; margin-top:5px; overflow:hidden; border-radius:3px; background:var(--line); }
.ref-macro-meter > span { display:block; height:100%; border-radius:inherit; }
.ref-macro-item.protein .ref-macro-meter > span { background:var(--green); }
.ref-macro-item.fat .ref-macro-meter > span { background:var(--blue); }
.ref-macro-item.carbs .ref-macro-meter > span { background:oklch(64% .055 220); }
body.style-field.single .catalog .frame .ref-add { width:100%; min-height:54px; border:0; border-radius:14px; }
.ref-quick-row { display:flex; gap:8px; margin:12px 0; }
.ref-quick-row button { appearance:none; min-height:44px; display:flex; align-items:center; gap:8px; padding:9px 12px; border:1px solid var(--line); border-radius:12px; background:var(--surface); font:inherit; font-size:13px; font-weight:650; color:var(--ink); cursor:pointer; }
.ref-quick-row .icon { color:var(--blue); font-size:20px; }
.ref-meal { appearance:none; width:100%; display:grid; grid-template-columns:28px minmax(0,1fr) auto; align-items:center; gap:10px; min-height:62px; padding:10px 0; border:0; border-top:1px solid var(--line); background:transparent; color:var(--ink); font:inherit; text-align:left; cursor:pointer; }
.ref-meal > .icon { color:var(--amber); font-size:23px; }
.ref-meal b { display:block; font-size:15px; line-height:1.3; }
.ref-meal small { display:block; font-size:12px; color:var(--muted); margin-top:3px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.ref-meal strong { font-size:17px; font-variant-numeric:tabular-nums; }
.ref-meal-plus { display:grid; place-items:center; width:36px; height:36px; border-radius:11px; background:var(--blue-t); color:var(--blue); }
.ref-week { padding:14px; border:1px solid var(--line); border-radius:16px; background:var(--surface); margin-top:12px; }
.ref-week > .row { gap:8px; font-size:14px; }
.ref-week > .row > span { font-size:12px; color:var(--muted); }
.ref-week p { margin:10px 0 0; font-size:12px; line-height:1.4; color:var(--muted); }
.ref-week-dots { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); margin-top:10px; gap:6px; }
.ref-week-dots > span { display:flex; flex-direction:column; align-items:center; gap:5px; }
.ref-week-dots i { display:block; width:27px; height:27px; border-radius:50%; border:1px solid var(--line); }
.ref-week-dots .on i { background:var(--green); border-color:var(--green); }
.ref-week-dots .current i { outline:2px solid var(--ink); outline-offset:2px; }
.ref-week-dots small { font-size:10px; color:var(--muted); text-transform:lowercase; }
.ref-secondary { margin-top:28px; padding-top:18px; border-top:1px solid var(--line); }
.ref-section-head { display:flex; justify-content:space-between; align-items:center; font-size:16px; margin-bottom:12px; }
.ref-section-head a { display:flex; gap:4px; align-items:center; color:var(--blue); font-size:14px; font-weight:650; cursor:pointer; min-height:40px; }
body.style-field.single .catalog .frame .ref-secondary .draft-card { padding:12px; border-radius:12px; margin-bottom:14px; }
body.style-field.single .catalog .frame .ref-secondary .draft-card b { font-size:13px; }
body.style-field.single .catalog .frame .ref-secondary .draft-card .button { min-height:38px; padding:8px; font-size:13px; }
body.style-field.single .catalog .frame .ref-secondary .function-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; border:0; }
body.style-field.single .catalog .frame .ref-secondary .function-row { min-width:0; border:1px solid var(--line); background:var(--surface); border-radius:14px; padding:13px; grid-template-columns:24px minmax(0,1fr); gap:10px; align-items:start; }
body.style-field.single .catalog .frame .ref-secondary .function-title-line { display:flex; flex-direction:column; gap:5px; }
body.style-field.single .catalog .frame .ref-secondary .function-value { font-size:17px; white-space:normal; }
body.style-field.single .catalog .frame .ref-secondary .function-title { font-size:13px; }
body.style-field.single .catalog .frame .ref-secondary .function-meta { font-size:12px; }
body.style-field.single .catalog .frame .ref-secondary .function-leading { color:var(--blue); font-size:22px; }
body.style-field.single .catalog .frame .ref-secondary .function-chevron { display:none; }
body.style-field.single .catalog .frame .ref-secondary .function-row > .icon:first-child { color:var(--blue); font-size:22px; }
body.style-field.single .catalog .frame .ref-secondary .function-row > .icon:last-child:not(:first-child) { display:none; }
body.style-field.single .catalog .frame .ref-secondary .readiness-toggle { grid-template-columns:22px minmax(0,1fr) 18px; }
body.style-field.single .catalog .frame .ref-secondary .function-row.readiness-toggle > .icon:last-child:not(:first-child) { display:block; font-size:18px; align-self:center; }
body.style-field.single .catalog .frame .ref-secondary .week-summary-link { grid-column:1/-1; grid-template-columns:22px minmax(0,1fr) 18px; text-decoration:none; }
body.style-field.single .catalog .frame .ref-secondary .function-row.week-summary-link > .icon:last-child:not(:first-child) { display:block; font-size:18px; align-self:center; }
body.style-field.single .catalog .frame .ref-secondary .activity-row { grid-template-columns:22px minmax(0,1fr); }
body.style-field.single .catalog .frame .ref-secondary .activity-row > .icon:nth-child(3) { display:none; }
body.style-field.single .catalog .frame .ref-secondary .activity-row .activity-visual { grid-column:2; display:block; width:100%; padding-top:7px; }
.activity-progress { display:flex; align-items:center; gap:7px; }
.activity-progress > span { display:block; flex:1; height:5px; border-radius:4px; background:var(--line); overflow:hidden; }
.activity-progress > span i { display:block; height:100%; border-radius:inherit; background:var(--green); }
.activity-progress b { color:var(--green); font-size:10px; line-height:1; white-space:nowrap; }
body.style-field.single .catalog .frame .ref-balance .activity-credit-note { display:flex; align-items:center; gap:7px; margin:-3px 0 12px; color:var(--green); font-size:12px; line-height:1.35; }
.activity-credit-note .icon { font-size:17px; flex:0 0 auto; }
body.style-field .sheet .activity-offer-icon { display:grid; place-items:center; width:48px; height:48px; margin:0 auto 12px; border-radius:15px; background:var(--green-t); color:var(--green); font-size:25px; }
body.style-field .sheet .activity-offer-copy { margin:10px auto 0; max-width:380px; color:var(--muted); text-align:center; }
body.style-field .sheet .activity-offer-value { margin:16px 0 5px; color:var(--green); font-size:34px; line-height:1.1; font-weight:850; letter-spacing:-.6px; text-align:center; font-variant-numeric:tabular-nums; }
body.style-field .sheet .activity-offer-note { max-width:360px; margin:0 auto; color:var(--muted); text-align:center; }
body.style-field .sheet .activity-offer-action { display:flex; align-items:center; justify-content:center; width:100%; }
body.style-field.single .catalog .frame .ref-balance .nutrition-guidance { display:grid; grid-template-columns:22px minmax(0,1fr); gap:9px; align-items:start; margin:10px 0 0; padding:11px 12px; border:1px solid oklch(92% .045 80); border-radius:12px; background:var(--amber-t); color:var(--ink); }
.ref-balance .nutrition-guidance > .icon { color:var(--amber); font-size:20px; line-height:1.2; }
.ref-balance .nutrition-guidance b { display:block; font-size:13px; line-height:1.3; }
.ref-balance .nutrition-guidance small { display:block; margin-top:4px; color:oklch(39% .07 65); font-size:12px; line-height:1.4; }
body.style-field.single .catalog .frame .ref-secondary .water-plus { grid-column:1/-1; width:100%; background:var(--blue-t); border:0; }
body.style-field.single .catalog .frame .ref-secondary :is(.readiness-toggle,.nutrition-compact,.health-detail) { grid-column:1/-1; }
body.style-field.single .catalog .frame .ref-secondary :is(.readiness-toggle,.nutrition-compact) .function-title-line { flex-direction:row; align-items:baseline; justify-content:space-between; }
body.style-field.single .catalog .frame .ref-secondary .health-detail { padding:16px; background:var(--surface); border:1px solid var(--line); border-radius:14px; }
body.style-field.single .catalog .frame .ref-secondary .health-figure { border:0; padding:0; }
body.style-field.single .catalog .frame .health-detail .figure-head { flex-wrap:wrap; gap:12px; }
body.style-field.single .catalog .frame .health-detail .health-stats { display:grid; grid-template-columns:1fr; gap:10px; }
body.style-field.single .catalog .frame .health-detail .health-stat { border:0; padding:0; }
body.style-field.single .catalog .frame .health-detail .health-name { font-size:12px; }
body.style-field.single .catalog .frame .health-detail .health-factor-grid { gap:6px; }
body.style-field.single .catalog .frame .health-detail .health-factor b { white-space:normal; }
.ref-text-entry { display:flex; align-items:center; gap:10px; padding:12px; border:1px solid var(--line); border-radius:14px; background:var(--bg); }
.ref-text-entry textarea.chat { min-height:48px; font-size:15px; line-height:1.5; }
.ref-send { appearance:none; border:0; border-radius:12px; width:40px; height:44px; flex:0 0 40px; display:grid; place-items:center; background:var(--ink); color:var(--bg); cursor:pointer; }
.ref-item-tools { grid-column:1/-1; display:flex; gap:16px; }
.ref-item-tools button { appearance:none; border:0; background:transparent; color:var(--blue); display:flex; align-items:center; gap:4px; padding:4px 0; min-height:32px; font:inherit; font-size:12px; cursor:pointer; }
.ref-item-tools .icon { font-size:16px; }
.ref-grams-stepper { display:flex; align-items:center; gap:4px; }
body.style-field.single .catalog .frame .rec-row { grid-template-columns:minmax(0,1fr) 144px; align-items:center; gap:6px 10px; padding:12px 0; }
body.style-field.single .catalog .frame .rec-main { grid-column:auto; }
body.style-field.single .catalog .frame .rec-main input.name { border:0; background:transparent; padding:0; font-weight:700; min-height:36px; }
body.style-field.single .catalog .frame .ref-grams-stepper .rec-act { border:0; flex:0 0 36px; width:36px; height:40px; min-height:40px; cursor:pointer; }
body.style-field.single .catalog .frame .ref-grams-stepper .rec-g { width:64px; min-width:0; }
body.style-field.single .catalog .frame .ref-grams-stepper input { width:48px; padding:6px 2px; font-size:15px; font-weight:700; text-align:center; }
body.style-field.single .catalog .frame[data-screen="scan-result"] .photo-card { border:0; background:transparent; margin-top:0; }
body.style-field.single .catalog .frame[data-screen="scan-result"] .photo-card .body { padding:0; }
body.style-field.single .catalog .frame[data-screen="scan-result"] .section-label { margin-top:14px; }
body.style-field.single .catalog .frame[data-screen="scan-result"] .photo-card:has(img) { display:grid; grid-template-columns:64px minmax(0,1fr); gap:12px; align-items:center; }
body.style-field.single .catalog .frame[data-screen="scan-result"] .photo-card .hero-img { width:64px; height:64px; border-radius:12px; }
body.style-field.single .catalog .frame[data-screen="scan-result"] .save-dock > .sp10 { display:none; }
body.style-field.single .catalog .frame[data-screen="scan-result"] .save-dock > .mini:not(.row),
body.style-field.single .catalog .frame[data-screen="scan-result"] .save-dock > .button.secondary { grid-column:1/-1; max-width:none; }
body.style-field.single .catalog .frame .ref-nav-add .quick { width:48px; height:48px; }
/* Shared secondary surfaces: keep content order and every existing action. */
body.style-field.single .catalog .frame:not([data-screen="today"]) .card { border:1px solid var(--line); border-radius:14px; background:var(--surface); padding:15px; margin-top:10px; }
body.style-field.single .catalog .frame:not([data-screen="today"]) .card.list-card { grid-template-columns:36px minmax(0,1fr) auto; gap:12px; }
body.style-field.single .catalog .frame:not([data-screen="today"]) .card.list-card b { font-size:14px; line-height:1.4; }
body.style-field.single .catalog .frame:not([data-screen="today"]) .card.photo-card { padding:0; overflow:hidden; }
body.style-field.single .catalog .frame:not([data-screen="today"]) .photo-card .body { padding:16px; border:0; }
body.style-field.single .catalog .frame:not([data-screen="today"]) .photo-card .hero-img { border-radius:0; height:190px; }
body.style-field.single .catalog .frame .tabs { border:1px solid var(--line); padding:4px; border-radius:12px; background:var(--surface); gap:4px; }
body.style-field.single .catalog .frame .tab { border:0; border-radius:9px; min-height:40px; display:flex; align-items:center; justify-content:center; flex:1; font-size:13px; padding:8px; }
body.style-field.single .catalog .frame .tab.active { background:var(--ink); color:var(--bg); border:0; }
body.style-field.single .catalog .frame .chips .pill { min-height:40px; padding:8px 12px; border:1px solid var(--line); border-radius:12px; background:var(--surface); font-size:13px; }
body.style-field.single .catalog .frame .chips .pill.on { background:var(--ink); color:var(--bg); border-color:var(--ink); }
body.style-field.single .catalog .frame .pill.portion { border-radius:50%; min-width:42px; min-height:42px; padding:8px; }
body.style-field.single .catalog .frame :is(.data-row,.store-row) { min-height:48px; font-size:13px; gap:10px; }
body.style-field.single .catalog .frame .data-row .bar { flex:1; min-width:20px; }
body.style-field.single .catalog .frame .card.checklist:has(.rec-row) { border:0; background:transparent; padding:0; }
body.style-field.single .catalog .frame .save-dock { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:10px; }
body.style-field.single .catalog .frame .save-dock > .row { margin-bottom:0!important; display:block; }
body.style-field.single .catalog .frame .save-dock > .row > span { display:block; font-size:12px; margin-bottom:4px; }
body.style-field.single .catalog .frame .save-dock b { display:block; font-size:13px; line-height:1.5; }
body.style-field.single .catalog .frame .save-dock > .button { min-height:48px; max-width:150px; font-size:14px; }
body.style-field.single .catalog .frame .save-dock > .rec-err { grid-column:1/-1; }
.ref-total-cal { display:block; font-size:20px; line-height:1.2; }
.ref-total-macros { display:block; color:var(--muted); font-size:11px; line-height:1.4; margin-top:5px; }
body.style-field.single .catalog .frame .card.setting { grid-template-columns:36px minmax(0,1fr) auto; }
body.style-field.single .catalog .frame .card.setting b { font-size:14px; line-height:1.4; }
body.style-field.single .catalog .frame[data-screen="paywall"] .scroll > .h2 { font-size:28px!important; }
body.style-field.single .catalog .frame[data-screen="profile"] .scroll:has(+ .nav) { padding-bottom:100px; }
body.style-field.single .catalog .frame[data-screen="scan-result"] .card.photo-card { border:0; background:transparent; margin:0; }
body.style-field.single .catalog .frame[data-screen="scan-result"] .card.photo-card .body { padding:0; }
body.style-field.single .catalog .frame[data-screen="scan-result"] #rec-title { min-height:48px; }
body.style-field.single .catalog .frame[data-screen="scan-result"] .chips:has([data-action="pick-meal"]) { gap:5px; }
body.style-field.single .catalog .frame .coach-input .search { display:flex; gap:10px; align-items:center; }
body.style-field.single .catalog .frame .coach-input .grow { display:none; }
body.style-field.single .catalog .frame .coach-input textarea.chat { width:100%; min-width:0; flex:1 1 auto; min-height:24px; }
body.style-field.single .catalog .frame .coach-input [data-action$="send"] { display:grid; place-items:center; width:40px; height:40px; flex:0 0 40px; border-radius:12px; background:var(--blue-t); }
body.style-field.single .catalog .frame .pill:is([data-go],[data-action]) { min-height:36px; padding:8px 10px; display:inline-flex; align-items:center; gap:4px; }
body.style-field.single .catalog .frame .coming-soon { padding:24px 0; }
@media(max-width:359px) {
  .ref-balance-number strong { font-size:42px; }
  .ref-balance-number > span { font-size:12px; }
  .ref-macro-grid { gap:7px; }
  .ref-macro-value { gap:3px; font-size:10px; }
  body.style-field.single .catalog .frame .ref-secondary .function-list { grid-template-columns:1fr; }
  body.style-field.single .catalog .frame .save-dock { grid-template-columns:1fr; }
  body.style-field.single .catalog .frame .save-dock > .button { width:100%; max-width:none; }
}

/* Food entry and review share the reference bottom-sheet presentation. */
body.style-field .food-flow-sheet { height:88dvh; max-height:calc(100dvh - 48px); padding:12px 18px calc(16px + var(--tg-safe-bottom,0px)); overflow-y:auto; }
body.style-field .food-flow-sheet > .sheet-handle { flex-shrink:0; margin-bottom:10px; }
.food-sheet-head { display:flex; align-items:center; gap:8px; margin:4px 0 14px; flex-shrink:0; }
body.style-field .food-sheet-head .h2 { flex:1; margin:0; font-size:22px; line-height:1.2; font-weight:850; letter-spacing:-.5px; }
.food-sheet-close { appearance:none; background:transparent; border:0; display:grid; place-items:center; width:36px; height:36px; flex:0 0 36px; color:var(--muted); cursor:pointer; }
.food-multi-done { appearance:none; border:0; border-radius:24px; min-width:58px; height:38px; padding:0 12px; display:inline-flex; align-items:center; justify-content:center; gap:6px; background:var(--green); color:#fff; font:inherit; font-size:14px; font-weight:700; cursor:pointer; }
.food-multi-done .icon { font-size:18px; }
body.style-field .food-flow-sheet.food-multi-add .food-sheet-text,.food-flow-sheet.food-multi-add .ways { display:none; }
.food-meal-select { position:relative; display:block; width:100%; margin:0 auto 12px; }
.food-meal-select summary { display:flex; align-items:center; gap:8px; box-sizing:border-box; width:100%; min-height:48px; padding:8px 14px; border:1px solid var(--line); border-radius:12px; background:var(--amber-t); color:var(--ink); font-size:13px; font-weight:700; cursor:pointer; list-style:none; }
.food-meal-select summary::-webkit-details-marker { display:none; }
.food-meal-select summary .food-meal-label { color:var(--muted); font-weight:600; }
.food-meal-select summary .food-meal-current { flex:1; text-align:center; font-size:14px; }
.food-meal-select summary .food-meal-edit { color:var(--amber); font-size:12px; white-space:nowrap; }
.food-meal-select summary .icon { font-size:16px; }
.food-meal-select[open] summary { border-radius:12px 12px 0 0; }
.food-meal-select .meal-picker-menu { display:grid; justify-items:center; gap:12px; padding:14px 12px; border:1px solid var(--line); border-top:0; border-radius:0 0 12px 12px; background:var(--surface); }
.meal-choice-grid { justify-content:center; gap:7px; }
.meal-custom { display:grid; justify-items:center; gap:8px; width:100%; max-width:340px; }
.meal-custom[hidden] { display:none; }
.meal-custom > label { color:var(--muted); font-size:12px; font-weight:650; text-align:center; }
.meal-custom-row { display:grid; gap:8px; width:100%; }
.meal-custom-row .field { width:100%; box-sizing:border-box; }
.meal-custom-row .field:focus-within { border-color:var(--line); box-shadow:none; }
.meal-custom-row .field input:focus-visible { outline:0; }
.meal-custom-save { appearance:none; width:100%; min-height:44px; padding:9px 14px; border:0; border-radius:10px; background:var(--ink); color:var(--bg); font:inherit; font-size:13px; font-weight:750; cursor:pointer; }
.meal-custom-save:focus-visible { outline:2px solid var(--blue); outline-offset:2px; }
body.style-field .food-flow-sheet .food-sheet-text { display:flex; gap:8px; min-height:54px; margin-bottom:12px; padding:10px 12px; }
.food-sheet-text textarea { flex:1; min-width:0; resize:none; font:inherit; font-size:14px; background:transparent; border:0; color:var(--ink); }
.food-sheet-text button { border:0; width:36px; height:36px; flex:0 0 36px; border-radius:10px; background:var(--ink); color:var(--bg); display:grid; place-items:center; cursor:pointer; }
.food-flow-sheet .ways { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
.food-flow-sheet .way { appearance:none; background:var(--surface); border:1px solid var(--line); border-radius:12px; min-width:0; min-height:68px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; color:var(--ink); font:inherit; font-size:11px; cursor:pointer; }
.food-flow-sheet .way .icon { font-size:20px; color:var(--blue); }
.food-flow-sheet .section-label { margin:20px 0 8px; }
.food-draft { color:var(--muted); font-size:12px; margin:-4px 0 12px; }
.food-draft > summary { min-height:30px; cursor:pointer; display:flex; align-items:center; gap:6px; }
.food-draft summary .icon { font-size:16px; }
.food-draft .draft-card { margin:8px 0; }
.food-limits { margin:14px 0; color:var(--muted); font-size:12px; }
.food-limits summary { cursor:pointer; }
.food-flow-sheet .card.list-card { display:grid; grid-template-columns: minmax(0,1fr) auto; gap:10px; padding:12px 0; margin:0; border:0; border-bottom:1px solid var(--line); border-radius:0; background:transparent; }
.food-flow-sheet .card.list-card > .badge { display:none; }
.food-flow-sheet .card.list-card b { font-size:14px; }
.food-flow-sheet .card.list-card .mini { margin-top:4px; font-size:12px; }
.food-flow-sheet .add-now { width:36px; height:36px; border:1px solid var(--blue); border-radius:10px; background:transparent; display:grid; place-items:center; color:var(--blue); }
body.style-field .food-flow-sheet .card.list-card .add-now { background:transparent; border:1px solid var(--blue); border-radius:10px; }
body.style-field .food-check-sheet { display:flex; flex-direction:column; overflow:hidden; }
.rec-sheet-body { min-height:0; flex:1; overflow-y:auto; padding-bottom:16px; }
.rec-summary { display:grid; grid-template-columns:48px minmax(0,1fr); gap:10px; align-items:center; margin-bottom:12px; }
.rec-summary > img, .rec-summary > .badge { width:48px; height:48px; border-radius:10px; object-fit:cover; }
.rec-summary textarea { display:block; width:100%; min-height:22px; padding:0; border:0; resize:none; overflow:hidden; background:transparent; color:var(--ink); font:inherit; font-size:15px; font-weight:750; line-height:1.35; }
.rec-restored { color:var(--muted); font-size:11px; line-height:1.4; margin-bottom:10px; }
.rec-restored summary { cursor:pointer; }
.rec-summary .mini { font-size:12px; }
.rec-estimate-note { padding:10px 12px; border-radius:10px; background:var(--blue-t); color:var(--muted); font-size:12px; line-height:1.4; }
.rec-meal-details { margin:8px 0; font-size:12px; color:var(--muted); }
.rec-meal-details summary { cursor:pointer; display:flex; align-items:center; gap:5px; min-height:32px; list-style:none; }
.rec-meal-details summary .icon { font-size:16px; }
.rec-meal-details .chips { margin:8px 0; }
.rec-portion-row { display:flex; align-items:center; justify-content:space-between; gap:10px; margin:10px 0; color:var(--muted); font-size:13px; }
body.style-field .food-check-sheet #rec-portion { gap:6px; }
body.style-field .food-check-sheet #rec-portion .pill { min-width:34px; min-height:34px; padding:7px; border:0; border-radius:50%; background:var(--blue-t); color:var(--ink); font-size:12px; }
body.style-field .food-check-sheet #rec-portion .pill.on { background:var(--ink); color:var(--bg); }
body.style-field .food-check-sheet .rec-row { display:grid; grid-template-columns:minmax(0,1fr) 132px; gap:0 8px; padding:10px 0; border-bottom:1px solid var(--line); align-items:center; }
body.style-field .food-check-sheet .rec-row + .rec-row { border-top:0; }
.food-check-sheet .rec-main { grid-column:auto; }
.food-check-sheet .rec-main input.name { width:100%; border:0; border-radius:0; background:transparent; padding:0; min-height:28px; font:inherit; font-size:14px; font-weight:750; color:var(--ink); }
.food-check-sheet .rec-main .mini { display:block; font-size:11px; line-height:1.4; color:var(--muted); }
.food-check-sheet .ref-grams-stepper { gap:2px; justify-content:flex-end; }
.food-check-sheet .ref-grams-stepper .rec-act { appearance:none; border:0; background:var(--blue-t); color:var(--blue); width:32px; height:36px; min-height:36px; flex:0 0 32px; border-radius:10px; }
.food-check-sheet .ref-grams-stepper .rec-act .icon { font-size:18px; }
.food-check-sheet .rec-g { width:64px; gap:1px; font-size:12px; color:var(--ink); }
.food-check-sheet .rec-g input { width:46px; height:36px; border:0; border-radius:6px; padding:0 2px; background:transparent; font-size:14px; font-weight:750; }
.food-check-sheet .ref-item-tools { grid-column:1/-1; display:block; }
.food-check-sheet .rec-item-meta { display:flex; align-items:center; gap:5px; }
.food-check-sheet .rec-item-meta .ref-item-tools { position:relative; }
.food-check-sheet .ref-item-tools summary { display:inline-flex; align-items:center; min-height:28px; color:var(--blue); font-size:11px; list-style:none; cursor:pointer; }
.food-check-sheet .ref-item-tools summary .icon { font-size:14px; }
.food-check-sheet .ref-item-tools > div { position:absolute; left:0; top:100%; z-index:4; display:flex; flex-direction:column; gap:4px; min-width:156px; padding:8px 12px; border:1px solid var(--line); border-radius:10px; background:var(--surface); box-shadow:0 6px 18px rgb(20 34 38 / 10%); }
.food-check-sheet .rec-err { grid-column:1/-1; }
.rec-add-product { appearance:none; border:0; background:transparent; color:var(--blue); font:inherit; font-size:13px; font-weight:700; padding:12px 0; cursor:pointer; }
.food-check-sheet .search { min-height:48px; border-style:dashed; }
.food-check-sheet .search input { font-size:13px; }
.food-check-sheet .search textarea { flex:1; width:100%; min-width:0; min-height:40px; padding:6px 0; border:0; outline:0; background:transparent; color:var(--ink); font:inherit; font-size:13px; line-height:1.4; resize:none; }
.rec-help { margin:12px 0; color:var(--muted); font-size:11px; line-height:1.4; }
.rec-help summary { cursor:pointer; }
body.style-field .food-check-sheet .save-dock { flex-shrink:0; position:static; display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:8px; margin:0 -18px -16px; padding:12px 18px calc(12px + var(--tg-safe-bottom,0px)); border-top:1px solid var(--line); background:var(--surface); }
.food-check-sheet .save-dock .ref-total-cal { font-size:20px; }
.food-check-sheet .save-dock .ref-total-macros { margin-top:3px; font-size:11px; }
body.style-field .food-check-sheet .save-dock > .button { min-height:44px; min-width:112px; padding:10px 14px; font-size:14px; border-radius:12px; }
.food-check-sheet .save-dock > :is(.mini,.sp10,.sp8) { grid-column:1/-1; }
.food-check-sheet .save-dock > :is(.sp10,.sp8) { display:none; }
.rec-processing { position:absolute; inset:0; z-index:20; overflow-y:auto; padding:calc(12px + var(--tg-safe-top,22px)) 22px 24px; background:var(--bg); }
.rec-processing-head { display:flex; align-items:center; gap:8px; margin-bottom:14px; }
.rec-processing-head h2 { font-size:22px; font-weight:850; letter-spacing:-.5px; margin:0; }
.rec-processing-head button { border:0; background:transparent; width:32px; height:40px; color:var(--ink); display:grid; place-items:center; }
.rec-processing-photo { display:block; width:100%; height:clamp(180px,30dvh,280px); object-fit:cover; border-radius:14px; }
.rec-processing-stages { display:grid; gap:14px; margin-top:18px; font-size:14px; }
.rec-processing-stages > div { display:flex; align-items:center; gap:10px; }
.rec-processing-stages .pending { color:var(--muted); }
.rec-processing-stages .ready .icon { color:var(--green); }
.rec-processing-stages .icon { font-size:20px; }
.rec-processing > p { font-size:12px; color:var(--muted); margin:18px 0 10px; }
.rec-processing-alternative { padding:12px; border-radius:12px; background:var(--amber-t); font-size:13px; line-height:1.45; margin-bottom:12px; color:var(--muted); }
.rec-processing-alternative button { padding:0; border:0; background:transparent; color:var(--amber); font:inherit; font-weight:750; cursor:pointer; }
.rec-processing > .button { width:100%; min-height:48px; }
.style-field .weekly-report { padding-bottom:max(24px,env(safe-area-inset-bottom)); }
.style-field .weekly-period { margin:8px 0 12px; }
.style-field .weekly-coverage { display:grid; gap:4px; padding:12px; border-radius:12px; background:var(--green-t); color:var(--ink); }
.style-field .weekly-coverage b { font-size:14px; line-height:1.3; }
.style-field .weekly-coverage span { color:var(--muted); font-size:12px; }
.style-field .weekly-average { display:grid; gap:3px; margin:18px 0 8px; }
.style-field .weekly-average > span { color:var(--tert); font-size:10px; font-weight:800; letter-spacing:1px; text-transform:uppercase; }
.style-field .weekly-average strong { color:var(--ink); font-size:29px; line-height:1.05; font-variant-numeric:tabular-nums; }
.style-field .weekly-average strong small { color:var(--muted); font-size:13px; font-weight:650; }
.style-field .weekly-average em { color:var(--green); font-size:12px; font-style:normal; font-weight:650; }
.style-field .weekly-no-average { margin:18px 0 8px; color:var(--muted); font-size:14px; font-weight:700; }
.style-field .weekly-bars { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:8px; align-items:end; min-height:134px; margin:10px 0 14px; padding:0 0 5px; border-bottom:1px solid var(--line); }
.style-field .weekly-day { display:grid; grid-template-rows:108px auto; min-width:0; justify-items:center; align-items:end; gap:5px; }
.style-field .weekly-bar-area { display:flex; position:relative; width:100%; height:100%; align-items:flex-end; justify-content:center; }
.style-field .weekly-bar { display:block; width:min(100%,34px); min-height:0; border-radius:6px 6px 2px 2px; background:var(--ink); }
.style-field .weekly-bar.full { background:var(--green); }
.style-field .weekly-bar.partial { background:var(--muted); opacity:.72; }
.style-field .weekly-bar.empty { display:none; }
.style-field .weekly-bar-area small { position:absolute; bottom:3px; color:var(--muted); font-size:9px; }
.style-field .weekly-day-name { color:var(--muted); font-size:10px; }
.style-field .weekly-insight { display:flex; align-items:flex-start; gap:10px; margin:12px 0; padding:12px; border:1px solid var(--line); border-radius:12px; background:var(--surface); }
.style-field .weekly-insight .badge { flex:0 0 28px; width:28px; height:28px; }
.style-field .weekly-insight b { display:block; color:var(--ink); font-size:13px; line-height:1.35; }
.style-field .weekly-insight .mini { margin-top:4px; color:var(--muted); font-size:11px; line-height:1.45; }
.style-field .weekly-premium-link { display:flex; align-items:center; gap:8px; margin-top:12px; padding:8px 0; border:0; background:none; color:var(--amber); font:inherit; font-size:12px; font-weight:700; text-align:left; }
.style-field .weekly-premium-link .icon { flex:0 0 auto; font-size:16px; }
.style-field .weekly-premium { margin-top:16px; padding-top:12px; border-top:1px solid var(--line); }
.style-field .weekly-preview-sheet { display:grid; gap:9px; }
.style-field .weekly-preview-sheet > .h2 { margin:0; font-size:21px; line-height:1.2; }
.style-field .weekly-preview-sheet > .mini { margin:0; color:var(--muted); }
.style-field .weekly-preview-card { padding:12px; border:1px solid var(--line); border-radius:14px; background:var(--surface); }
.style-field .weekly-preview-heading { display:flex; align-items:center; justify-content:space-between; gap:8px; color:var(--ink); font-size:13px; }
.style-field .weekly-preview-heading span { color:var(--muted); font-size:9px; font-weight:800; letter-spacing:.8px; }
.style-field .weekly-preview-caption { margin-top:3px; color:var(--muted); font-size:11px; }
.style-field .weekly-preview-bars { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); align-items:end; gap:7px; height:78px; margin-top:8px; padding-bottom:5px; border-bottom:1px solid var(--line); }
.style-field .weekly-preview-day { display:grid; grid-template-rows:1fr auto; justify-items:center; align-items:end; gap:4px; min-width:0; height:100%; }
.style-field .weekly-preview-bar { display:block; align-self:end; width:min(100%,30px); min-height:4px; border-radius:5px 5px 2px 2px; background:var(--ink); }
.style-field .weekly-preview-bar.full { background:var(--green); }
.style-field .weekly-preview-bar.empty { background:var(--line); }
.style-field .weekly-preview-day small { color:var(--muted); font-size:9px; }
.style-field .weekly-preview-legend { display:flex; flex-wrap:wrap; gap:8px 14px; margin-top:8px; color:var(--muted); font-size:10px; }
.style-field .weekly-preview-legend span { display:inline-flex; align-items:center; gap:5px; }
.style-field .weekly-preview-legend i { width:8px; height:8px; border-radius:50%; background:var(--ink); }
.style-field .weekly-preview-legend i.full { background:var(--green); }
.style-field .weekly-preview-guarantee { text-align:center; color:var(--green) !important; font-size:11px !important; font-weight:700; }
.style-field .weekly-preview-dismiss { justify-self:center; min-height:36px; padding:4px 12px; border:0; background:none; color:var(--blue); font:inherit; font-size:13px; cursor:pointer; }
.style-field .weekly-observation { display:flex; align-items:flex-start; gap:9px; padding:9px 0; border-bottom:1px solid var(--line); font-size:12px; line-height:1.4; }
.style-field .weekly-observation .icon { color:var(--blue); font-size:17px; }
.style-field .weekly-action { margin-top:12px; padding:12px; border-radius:12px; background:var(--green-t); font-size:12px; }
.style-field .weekly-action p { margin:5px 0 0; color:var(--muted); line-height:1.45; }
@media(max-width:359px) {
  body.style-field .food-sheet-head .h2 { font-size:20px; }
  body.style-field .food-flow-sheet { padding-left:14px; padding-right:14px; }
  body.style-field .food-check-sheet .save-dock { margin-left:-14px; margin-right:-14px; padding-left:14px; padding-right:14px; }
  body.style-field .food-check-sheet .rec-row { grid-template-columns:minmax(0,1fr) 122px; }
  .food-check-sheet .rec-g { width:54px; }
  .food-check-sheet .rec-g input { width:36px; }
}
/* ===== Тренировки (ТЗ 06.10.2026): кнопки-элементы в виде существующих компонентов, расписание, активная тренировка ===== */
:where(button.tb){appearance:none;-webkit-appearance:none;margin:0;padding:0;border:0;background:none;font:inherit;color:inherit;text-align:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}
button.tb.button{width:100%;padding:0 14px}
button.tb:is(.goal,.list-card,.card){width:100%;text-align:left;color:var(--ink)}
.tr-pair>button.tb.button{flex:1;width:auto;min-width:0}
button.tb:disabled{opacity:.3;cursor:default}
button.tb:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.tr-gap4{margin-top:4px}.tr-gap6{margin-top:6px}.tr-center{text-align:center;justify-content:center}.tr-block{display:block}.tr-mx{margin:0 auto}.tr-foot{margin-top:18px}
.tr-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.tr-err{margin-top:8px;color:var(--rose);font-size:12px;line-height:1.35}.tr-err:empty{display:none}
.style-field .frame .mini.tr-warn{color:var(--amber)}
.style-field .frame .note.tr-warn-note{background:var(--amber-t);color:var(--amber)}
.tr-link{display:inline-flex;align-items:center;gap:4px;min-height:44px;color:var(--blue);font-weight:750;font-size:12.5px}
.tr-link .icon{font-size:18px}.tr-link.danger{color:var(--rose)}.tr-link.tr-center{display:flex;width:100%}
.tr-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:18px}
.tr-tile{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:72px;padding:10px 6px;border:1px solid var(--line);border-radius:10px;font-size:11.5px;font-weight:700;text-align:center;color:var(--ink)}
.tr-tile .icon{color:var(--blue)}
.tr-list{border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.tr-list>*+*{border-top:1px solid var(--line)}
.tr-next{display:grid;grid-template-columns:22px minmax(0,1fr) auto;gap:10px;align-items:center;min-height:52px;padding:6px 0;font-size:13px}
.tr-next>.icon{font-size:19px}
.tr-ex-row{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:10px 0;font-size:13px;line-height:1.35}
.tr-ex-row>:first-child{min-width:0}.tr-ex-row>:last-child{max-width:48%;text-align:right}
.style-field .frame .list-card.tr-row{grid-template-columns:34px minmax(0,1fr) auto}
.tr-row b,.tr-ex b,.tr-cat-open b{font-size:13px;line-height:1.3}
.tr-tpl.off{opacity:.88}
.style-field .frame[data-screen="training-setup"] .goal{padding:11px;border:1px solid var(--line);border-radius:14px;background:#fff;grid-template-columns:34px minmax(0,1fr) 22px}
.style-field .frame[data-screen="training-setup"] .goal.selected{border-color:color-mix(in srgb,var(--blue) 34%,var(--line));background:var(--blue-t)}
.style-field .frame[data-screen="training-setup"] .tr-setup-brand{font-family:"Arial Black","Avenir Next",Arial,sans-serif;font-size:32px;line-height:1;letter-spacing:-1.1px;font-weight:900;color:var(--ink)}
.style-field .frame[data-screen="training-setup"] .tr-setup-rule{height:1px;margin:10px 0 13px;background:var(--ink);opacity:.9}
.style-field .frame[data-screen="training-setup"] .tr-setup-eyebrow{font-size:11px;line-height:1.4;letter-spacing:1.3px;font-weight:850;color:var(--tert)}
.style-field .frame[data-screen="training-setup"] .tr-setup-progress{height:5px;margin-top:9px;border-radius:4px;background:var(--line)}
.style-field .frame[data-screen="training-setup"] .tr-setup-progress>span{border-radius:4px;background:var(--ink)}
.style-field .frame[data-screen="training-setup"] .tr-setup-brand~.back{margin-top:2px}
.style-field .frame[data-screen="training-setup"] .title{font-size:30px;line-height:1.03;letter-spacing:-1.05px}
.style-field.single .frame[data-screen="training-setup"] .body-copy{font-size:14px;line-height:1.48}
.tr-goal-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.style-field .frame[data-screen="training-setup"] .tr-goal-option{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 18px;grid-template-rows:auto auto;gap:4px 5px;min-height:76px;padding:10px 11px;text-align:left;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink)}
.style-field .frame[data-screen="training-setup"] .tr-goal-option>span{font-size:13px;line-height:1.25;font-weight:800}
.style-field .frame[data-screen="training-setup"] .tr-goal-option>small{grid-column:1/3;color:var(--muted);font-size:11px;line-height:1.3}
.style-field .frame[data-screen="training-setup"] .tr-goal-option>.icon{grid-column:2;grid-row:1;font-size:17px;color:var(--blue)}
.style-field .frame[data-screen="training-setup"] .tr-goal-option.selected{border-color:var(--blue);background:var(--blue-t)}
.style-field .frame[data-screen="training-setup"] .tr-weekday-choice{gap:6px}
.style-field .frame[data-screen="training-setup"] .tr-weekday-choice .pill{min-width:0;min-height:42px;padding:0 2px;border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--muted);font-size:12px;font-weight:800}
.style-field .frame[data-screen="training-setup"] .tr-weekday-choice .pill.on{border-color:var(--ink);background:var(--ink);color:var(--bg)}
.tr-exclusion-heading{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-top:5px}
.tr-exclusion-heading .section-label{margin-bottom:5px!important}
.tr-exclusion-heading>span{color:var(--tert);font-size:11px}
.style-field .frame[data-screen="training-setup"] .tr-exclusion-list{margin-top:8px;padding:0;border:0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);border-radius:0;background:transparent}
.style-field .frame[data-screen="training-setup"] .tr-exclusion-list summary{min-height:44px;display:flex;align-items:center;cursor:pointer;color:var(--blue);font-size:13px;font-weight:750}
.style-field .frame[data-screen="training-setup"] .tr-exclusion-list[open] .chips{max-height:190px;overflow:auto;padding:0 0 10px;gap:7px}
.style-field .frame[data-screen="training-setup"] .tr-exclusion-list .pill{min-height:38px;padding:7px 10px;border:1px solid var(--line);border-radius:8px;background:var(--surface);font-size:11.5px}
.style-field .frame[data-screen="training-setup"] .tr-exclusion-list .pill.on{border-color:var(--ink);background:var(--ink);color:var(--bg)}
.tr-opts{display:flex;flex-direction:column;gap:10px}
.style-field .frame .tr-choice .pill,.sheet .tr-choice .pill{min-height:44px;min-width:48px;padding:0 14px;justify-content:center;font-size:13px;border-radius:9px}
.tr-filters{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin:10px -20px 0;padding:0 20px 2px}
.tr-filters::-webkit-scrollbar{display:none}
.style-field .frame .tr-filters .pill{min-height:36px;padding:0 12px;font-size:12px;flex:0 0 auto}
.tr-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
.tr-day{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:48px;border:1px solid var(--line);border-radius:9px;font-size:11px;font-weight:700;color:var(--muted);background:var(--bg)}
.tr-day small{font-size:10px;font-weight:600;color:var(--tert)}
.tr-day.on{background:var(--ink);border-color:var(--ink);color:var(--bg)}.tr-day.on small{color:var(--bg);opacity:.8}
.tr-day.static{cursor:default}
@media (max-width:359px){.style-field .tr-days{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}}
.tr-move-days{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.tr-chip{min-height:44px;border:1px solid var(--line);border-radius:9px;font-size:12.5px;font-weight:700;padding:4px 8px;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px}
.tr-chip small{font-size:10px;font-weight:600;color:var(--tert)}.tr-chip.busy{background:oklch(97% .006 205)}
.tr-ex{padding:10px 0 4px}
.tr-ex-actions{display:flex;justify-content:flex-end;gap:2px}
.tr-icon{width:44px;height:44px;display:grid;place-items:center;border-radius:9px;color:var(--muted);flex:0 0 auto}
.tr-icon:active{background:var(--line)}.tr-icon .icon{font-size:20px}
.tr-cat-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;min-height:56px;padding:4px 0}
.tr-cat-open{display:flex;flex-direction:column;justify-content:center;gap:3px;min-height:48px;text-align:left}
button.tb.button.tr-pick-btn{width:auto}
.tr-steps{margin:0;padding-left:20px;font-size:13px;line-height:1.5;color:var(--ink)}
.tr-steps li+li{margin-top:6px}
.tr-sync{display:inline-flex;align-items:center;gap:4px;min-height:32px;font-size:11px;font-weight:700;color:var(--muted)}
.tr-sync.ok{color:var(--green)}.tr-sync.off{color:var(--rose)}
/* активная тренировка: строка подхода — номер · поля и цель · отметка; панель отдыха — внизу экрана */
.scroll.ws-scroll{padding-bottom:calc(120px + var(--tg-safe-bottom,0px))}
.ws-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
button.tb.button.ws-pause{width:auto}
.ws-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-top:2px}
.ws-ex{margin-top:14px;padding-top:12px;border-top:1px solid var(--line)}
.ws-ex-head{display:flex;justify-content:space-between;align-items:flex-start;gap:8px}
.ws-ex-head .tr-icon{margin:-8px -10px 0 0}
.ws-prev{margin-top:6px}
.ws-sets{margin-top:4px}
.ws-set{display:grid;grid-template-columns:36px minmax(0,1fr) 48px;gap:8px;align-items:center;padding:8px 0}
.ws-set+.ws-set{border-top:1px dashed var(--line)}
.ws-num{width:36px;height:44px;border-radius:9px;background:var(--blue-t);color:var(--blue);font-weight:800;font-size:13px;display:grid;place-items:center}
.ws-set.warm .ws-num{background:var(--amber-t);color:var(--amber)}
.ws-mid{min-width:0}
.ws-inputs{display:flex;gap:6px;flex-wrap:wrap}
.ws-field{display:inline-flex;align-items:center;gap:4px}
.ws-in{width:58px;height:44px;border:1px solid var(--line);border-radius:9px;background:var(--bg);color:var(--ink);font:inherit;font-size:16px;font-weight:700;text-align:center;padding:0 4px;font-variant-numeric:tabular-nums}
.ws-in::placeholder{color:var(--tert);font-weight:500}
.ws-in:focus{outline:0;border-color:var(--line);box-shadow:none}
.ws-in[aria-invalid="true"]{border-color:var(--rose)}
@media (min-width:360px){.ws-in{width:64px}.ws-inputs{gap:8px}}
.ws-unit{font-size:11px;color:var(--muted)}
.ws-target{margin-top:4px}
.style-field .frame .mini.ws-pend,.ws-pend{color:var(--amber)}
.ws-check{width:48px;height:48px;border-radius:12px;border:1.5px solid var(--line);display:grid;place-items:center;color:var(--tert);background:var(--bg)}
.ws-check .icon{font-size:24px}
.ws-check.on{background:var(--green);border-color:var(--green);color:#fff}
.ws-set.done .ws-in{background:var(--green-t);border-color:transparent}
.ws-set.pending .ws-check.on{opacity:.7}
.ws-rest{position:absolute;left:0;right:0;bottom:0;z-index:6;display:flex;align-items:center;gap:6px;padding:10px 12px calc(10px + var(--tg-safe-bottom,0px));background:var(--ink);color:var(--bg)}
.ws-rest[hidden]{display:none}
.ws-typing .ws-rest{display:none}   /* пока вводят вес/повторения, панель отдыха не перекрывает поля (таймер идёт дальше) */
.ws-rest-t{flex:1;min-width:0;display:flex;align-items:center;gap:6px;font-size:13px;font-weight:700;white-space:nowrap}
.ws-rest-t b{font-size:18px}
.ws-rest-btn{height:44px;padding:0 10px;border-radius:9px;background:rgba(255,255,255,.14);color:inherit;font-size:12px;font-weight:800;white-space:nowrap}

/* Training interaction surfaces: distinct controls without changing Paper/Ink foundations. */
.style-field .frame:is([data-screen^="training"],[data-screen^="workout"]) .mini{font-size:13px;line-height:1.45}
.style-field .frame:is([data-screen^="training"],[data-screen^="workout"]) .body-copy{font-size:15px;line-height:1.5}
.style-field .frame:is([data-screen^="training"],[data-screen^="workout"]) .h3{font-size:16px;line-height:1.35}
.style-field .frame:is([data-screen^="training"],[data-screen^="workout"]) :is(.tr-link,.tr-row b,.tr-ex b,.tr-cat-open b){font-size:14px}
.style-field .frame .card.tr-tpl{display:block;width:100%;margin:12px 0;padding:16px;border:1px solid oklch(78% .012 190);border-radius:12px;background:oklch(99% .003 190);text-align:left;transition:background .15s,border-color .15s}
.style-field .frame .card.tr-tpl:hover{border-color:var(--blue);background:var(--blue-t)}
.style-field .frame .card.tr-tpl.off{opacity:1}
.style-field .frame[data-screen="training"] .card.tr-main{padding:16px;border:1px solid oklch(81% .012 190);border-radius:12px;background:var(--blue-t)}
.tr-template-cta{display:flex;align-items:center;gap:8px;margin-top:12px;font-size:14px;font-weight:750;color:var(--blue)}
.tr-other{margin-top:20px}.tr-other summary,.tr-filter-panel summary{min-height:44px;cursor:pointer;font-size:14px;font-weight:750;padding:12px 0;color:var(--blue)}
.tr-filter-panel{margin:12px 0;border-bottom:1px solid var(--line)}
.tr-exclusion-list{margin-top:10px;border:1px solid var(--line);border-radius:12px;padding:0 12px;background:var(--surface)}
.tr-exclusion-list summary{min-height:44px;display:flex;align-items:center;cursor:pointer;font-size:14px;font-weight:700;color:var(--blue)}
.tr-exclusion-list[open] .chips{max-height:240px;overflow:auto;padding:0 0 12px;gap:7px}
.tr-weekday-choice{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}
.style-field .frame .tr-weekday-choice .pill{min-width:0;padding:8px 2px}
.style-field .frame .tr-filter-options{flex-wrap:wrap;gap:8px;overflow:visible}
.style-field .frame .tr-filter-options .pill{min-height:44px;padding:8px 12px;white-space:normal;font-size:13px}
.tr-preview{width:100%;text-align:left;align-items:center;min-height:64px}
.tr-preview>:first-child{flex:1}.tr-preview .icon{color:var(--blue)}
.tr-preview:hover{background:var(--blue-t)}
.tr-ex-actions{justify-content:flex-start;gap:8px;margin-top:10px;flex-wrap:wrap}
.tr-ex-actions button.tb.button{width:auto;padding:0 12px;font-size:13px}
.tr-menu{display:flex;flex-direction:column;gap:10px}
.scroll.tr-dirty-scroll{padding-bottom:calc(190px + var(--tg-safe-bottom,0px))}
.tr-savebar{position:absolute;bottom:0;left:0;right:0;z-index:6;border-top:1px solid var(--line);background:var(--bg);padding:12px 20px calc(8px + var(--tg-safe-bottom,0px))}
.tr-savebar .button{margin-top:8px}.tr-savebar .tr-link{width:100%;justify-content:center}
.tr-day.static{min-height:40px;border-radius:0;border:0;border-bottom:2px solid var(--line);background:transparent}

/* Первый экран тренировок — компоновка по предоставленному референсу.
   Навигация и переходы остаются приложению; здесь оформляется только содержимое. */
.style-field .frame[data-screen="training"] .scroll.tr-intro-page{padding-top:24px;padding-bottom:calc(96px + var(--tg-safe-bottom,0px))}
.style-field .frame[data-screen="training"] .tr-intro-brand{font-family:"Arial Black","Avenir Next",Arial,sans-serif;font-size:34px;line-height:1.06;letter-spacing:-1.35px;font-weight:900;color:var(--ink)}
.style-field .frame[data-screen="training"] .tr-intro-rule{height:1px;margin:12px 0 14px;background:var(--ink)}
.style-field .frame[data-screen="training"] .tr-intro-eyebrow{font-size:12px;line-height:1.35;letter-spacing:1.45px;font-weight:850;color:#8b989d}
.style-field .frame[data-screen="training"] .tr-intro-title{max-width:430px;margin:22px 0 14px;font-family:"Arial Black","Avenir Next",Arial,sans-serif;font-size:38px;line-height:1.04;letter-spacing:-1.25px;font-weight:900;color:var(--ink)}
.style-field .frame[data-screen="training"] .tr-intro-copy{max-width:470px;margin:0 0 20px;color:#64777e;font-size:18px;line-height:1.48}
.style-field .frame[data-screen="training"] button.tb.button.tr-intro-primary{display:flex;align-items:center;justify-content:center;gap:10px;min-height:68px;margin:0;padding:0 16px;border-radius:14px;background:var(--ink);color:#fff;font-size:19px;font-weight:800;text-align:center}
.style-field .frame[data-screen="training"] .tr-intro-primary .icon{font-size:23px}
.style-field .frame[data-screen="training"] button.tb.tr-intro-secondary{display:flex;align-items:center;justify-content:center;width:100%;min-height:56px;margin-top:4px;color:var(--blue);font-size:19px;font-weight:750;text-align:center}
.style-field .frame[data-screen="training"] .tr-intro-edit{display:flex;justify-content:center;margin-top:8px}
.style-field .frame[data-screen="training"] .tr-intro-safety{margin-top:8px;padding:16px 0 0;border-top:1px solid var(--line)}
.style-field .frame[data-screen="training"] .tr-intro-safety-heading{display:flex;align-items:center;gap:12px}
.style-field .frame[data-screen="training"] .tr-intro-safety-heading>.icon{flex:0 0 auto;color:var(--blue);font-size:28px}
.style-field .frame[data-screen="training"] .tr-intro-safety h2{margin:0;font-size:18px;line-height:1.3;font-weight:800;color:var(--ink)}
.style-field .frame[data-screen="training"] .tr-intro-safety p,.style-field .frame[data-screen="training"] .tr-intro-calories{margin:8px 0 0 35px;color:#64777e;font-size:17px;line-height:1.48}
.style-field .frame[data-screen="training"] .tr-intro-calories{margin:15px 0 0;color:#64777e}
.style-field .frame[data-screen="training"] .tr-intro-history{margin-top:12px;padding-top:8px;border-top:1px solid var(--line)}
@media(max-width:359px){.style-field .frame[data-screen="training"] .tr-intro-title{font-size:28px}.style-field .frame[data-screen="training"] .tr-intro-copy,.style-field .frame[data-screen="training"] .tr-intro-safety p,.style-field .frame[data-screen="training"] .tr-intro-calories{font-size:14px}}
.tr-day.static.on{background:var(--blue-t);border-color:var(--blue);color:var(--ink)}.tr-day.static.on small{color:var(--blue);opacity:1}
.training-sheet :is(.mini,label){font-size:14px;line-height:1.45}
.training-sheet .body-copy{font-size:15px;line-height:1.5}
.training-sheet .tr-day{font-size:14px;min-height:48px}.training-sheet .tr-day small{font-size:12px}
.training-sheet .field{background:oklch(99.5% .002 190);border:1px solid oklch(62% .015 190);border-radius:10px}
.training-sheet .field input{font-size:18px;min-height:48px}
.sheet-close{position:absolute;right:12px;top:12px;width:44px;height:44px;display:grid;place-items:center;border-radius:10px;color:var(--ink);background:var(--blue-t)}
.sheet>.h2:first-of-type{padding-right:40px}.sheet{position:relative}
.ws-toolbar{position:sticky;top:-16px;z-index:4;background:var(--bg);padding:8px 0 12px;border-bottom:1px solid var(--line)}
.ws-head .back{flex:1}.ws-head .tr-icon{color:var(--ink)}
.ws-meta{align-items:center;margin-top:6px}.tr-sync{font-size:12px;min-height:24px}
.ws-help{margin:12px 0}
.ws-ex{padding:12px 12px 8px;border:1px solid oklch(81% .012 190);border-radius:12px;background:oklch(97.5% .006 190);margin-top:12px}
.ws-ex-head .tr-icon{margin:-6px -6px 0 0}
.ws-columns,.ws-set{grid-template-columns:32px minmax(0,1fr) 64px;gap:8px}
.ws-columns{display:grid;align-items:end;margin-top:6px;padding-bottom:4px;font-size:12px;line-height:18px;color:var(--muted);font-weight:650}
.ws-columns>:first-child,.ws-columns>:last-child{text-align:center}
.ws-set{--ws-control-height:48px;padding:8px 0;align-items:start}
.ws-num{width:32px;height:var(--ws-control-height);margin-top:0}
.ws-ex>.tr-link{min-height:36px}.ws-sets{margin-top:0}
.ws-inputs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.ws-field{display:flex;flex-direction:column;align-items:stretch;gap:0;min-width:0}
.ws-in{width:100%;height:var(--ws-control-height);padding:0 4px;border:1.5px solid oklch(62% .015 190);background:oklch(99.5% .002 190);border-radius:9px;font-size:18px}
.ws-field .ws-unit{display:none}
.ws-check{width:64px;min-height:var(--ws-control-height);height:var(--ws-control-height);margin-top:0;border:1.5px solid var(--blue);background:var(--blue-t);color:var(--blue);display:flex;flex-direction:column;justify-content:center;gap:0;font-weight:750}
.ws-check .icon{font-size:20px;line-height:20px}.ws-check span:not(.icon){font-size:10px;line-height:14px}.ws-check.on{color:#fff;background:var(--green);border-color:var(--green)}
.ws-set.done .ws-in{border-color:var(--green);background:var(--green-t)}
.ws-set+.ws-set{border-top:1px solid oklch(85% .012 190)}
.ws-target{font-size:12px!important;line-height:1.4;margin-top:6px}
.ws-error{color:var(--rose);font-size:13px;line-height:1.4;margin-top:6px}.ws-error:empty{display:none}
@media(min-width:360px){.ws-inputs{gap:10px}.ws-in{width:100%}}
@media(prefers-reduced-motion:reduce){.style-field .frame .card.tr-tpl{transition:none}}
/* Shared color roles for Today and the food diary. */
.water-progress { display:block; height:6px; margin:9px 0 7px; overflow:hidden; border-radius:4px; background:var(--line); }
.water-progress > span { display:block; height:100%; border-radius:inherit; background:var(--blue); }
body.style-field.single .catalog .frame[data-screen="today"] .profile-avatar {
  background: var(--green-t);
  color: var(--green);
}
body.style-field.single .catalog .frame .ref-secondary .nutrition-compact > .icon:first-child {
  color: var(--amber);
}
body.style-field.single .catalog .frame .nutrition-mini-fill { background: var(--amber); }
body.style-field.single .catalog .frame .ref-secondary .activity-row > .icon:first-child {
  color: var(--green);
}
body.style-field.single .catalog .frame .ref-secondary [data-action="sleep-sheet"] > .icon:first-child,
body.style-field.single .catalog .frame .ref-secondary [data-action="weight-sheet"] > .icon:first-child {
  color: var(--muted);
}
body.style-field.single .catalog .frame[data-screen="today"] .today-teaser {
  background: var(--green-t);
  border-color: oklch(88% .035 165);
}
body.style-field.single .catalog .frame[data-screen="today"] .today-teaser > .icon:first-child {
  color: var(--green);
}
body.style-field.single .catalog .frame[data-screen="nutrition"] .card:has(> .bar.amber) {
  background: linear-gradient(145deg, var(--surface) 65%, oklch(98% .025 80));
  border-color: oklch(89% .035 80);
}
body.style-field.single .catalog .frame[data-screen="nutrition"] [data-action="entry-sheet"] > .badge {
  background: var(--amber-t);
  color: var(--amber);
}
@media (max-width: 420px) {
  body.style-field.single .catalog .frame .ref-balance { padding: 14px; }
  .ref-macro-grid { gap: 6px; }
  .ref-macro-item { padding: 8px 6px; }
  .ref-macro-value { font-size: 10px; gap: 3px; }
}
/* Make the current destination clear without changing the bottom navigation layout. */
.style-field .frame .nav-item.active:not(.ref-nav-add) {
  border-radius: 11px;
  background: oklch(97% .008 220);
  color: var(--blue);
  font-weight: 700;
}
/* First-use screens share the app's typography and restrained color roles. */
body.style-field.single .catalog .frame.welcome { padding:0; display:block; }
body.style-field.single .catalog .frame .intro-welcome { display:flex; flex-direction:column; gap:0; padding-top:22px; padding-bottom:24px; }
.intro-brand-row { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.intro-free { padding:6px 10px; border-radius:20px; background:var(--green-t); color:var(--green); font-size:11px; font-weight:700; white-space:nowrap; }
body.style-field.single .catalog .frame .intro-welcome .welcome-photo { height:220px; margin-top:24px; border-radius:18px; object-position:center 48%; }
body.style-field.single .catalog .frame .intro-welcome .headline { margin-top:24px; font-family:inherit; font-size:34px; line-height:1.1; letter-spacing:-1px; font-weight:850; }
.intro-welcome .body-copy { max-width:42ch; }
.intro-note { display:flex; align-items:center; gap:10px; margin:20px 0; padding:12px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); font-size:13px; line-height:1.45; color:var(--muted); }
.intro-note > .icon { color:var(--amber); flex-shrink:0; }
.intro-reassurance { margin:12px 0 16px; font-size:12px; line-height:1.55; color:var(--muted); text-align:center; }
body.style-field.single .catalog .frame .intro-welcome .button { min-height:54px; border-radius:14px; }
.ob-step-heading { display:flex; justify-content:space-between; gap:12px; color:var(--muted); font-size:11px; line-height:1.4; font-weight:700; letter-spacing:.5px; }
body.style-field.single .catalog .frame .ob-targets-card { padding:18px; border-color:oklch(89% .035 80); background:linear-gradient(145deg,var(--surface) 65%,oklch(98% .025 80)); }
.ob-target-number { font-size:38px; font-weight:850; line-height:1.15; letter-spacing:-1px; font-variant-numeric:tabular-nums; }
.ob-target-number > span { font-size:13px; font-weight:500; letter-spacing:0; color:var(--muted); }
.ob-target-macros { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin:16px 0; }
.ob-target-macros > div { display:grid; gap:5px; padding:10px 8px; border-radius:10px; background:var(--bg); }
.ob-target-macros b { font-size:16px; font-variant-numeric:tabular-nums; }
.ob-target-macros span { font-size:11px; color:var(--muted); }
.ob-target-macros .protein b { color:var(--green); }
.ob-target-macros .fat b { color:var(--blue); }
.ob-target-macros .carbs b { color:oklch(55% .055 220); }
body.style-field.single .catalog .frame .onboarding-screen .bar > span { background:var(--green); }
body.style-field.single .catalog .frame[data-screen^="onboarding"] .goal { background:var(--surface); border-radius:14px; }
body.style-field.single .catalog .frame[data-screen^="onboarding"] .goal.selected { background:var(--green-t); border-color:oklch(80% .045 165); }
body.style-field.single .catalog .frame .onboarding-screen .field { border-radius:12px; background:var(--surface); }
body.style-field.single .catalog .frame .onboarding-screen .title { font-size:30px; line-height:1.15; }
body.style-field.single .catalog .frame .intro-first-meal > .badge { margin-right:auto; border-radius:13px; width:46px; height:46px; }
body.style-field.single .catalog .frame .intro-first-meal .chips .pill { background:var(--amber-t); color:var(--amber); border-color:transparent; font-weight:600; }
body.style-field.single .catalog .frame .intro-first-meal .search { border-radius:14px; background:var(--surface); }
body.style-field.single .catalog .frame .intro-first-meal { padding-bottom:calc(42px + env(safe-area-inset-bottom, 0px)); }
body.style-field.single .catalog .frame .intro-first-meal [data-action="anketa-start"] { min-height:44px; display:flex; align-items:center; justify-content:center; }
@media(max-height:740px) {
  body.style-field.single .catalog .frame .intro-welcome .welcome-photo { height:170px; margin-top:18px; }
  body.style-field.single .catalog .frame .intro-welcome .headline { margin-top:18px; font-size:30px; }
  .intro-note { margin:14px 0; }
}
.toast{pointer-events:none}   /* уведомление не перехватывает нажатия на подходы и кнопки под ним */
