/* The landing (server/app/site/landing.html): the page itself, and the phones that draw the app's real screens at the app's
   own point sizes (mobile/src, docs/spec «Site mealbond.app»). The tokens are the app's (theme/tokens.ts). */
:root {
  color-scheme: light dark;
  --page: #eef1f5; --ink: #101418; --body: #3d4450; --muted: #5b6270; --faint: #a3aab5; --sep: rgba(16, 20, 24, .07);
  --track: rgba(16, 20, 24, .08); --accent: #1e64bd; --accentFill: #1e64bd; --accentSoft: rgba(30, 100, 189, .10);
  --protein: #2a78d6; --fat: #eb6834; --carbs: #1baf7a; --carbsInk: #138a60; --fiber: #cc9f45; --plain: #9aa1ab;
  --good: #1a7f4e; --goodSoft: rgba(26, 127, 78, .12); --online: #34c759; --warn: #b8560f; --warnSoft: rgba(184, 86, 15, .12);
  --danger: #c9302c; --gold: #b07a10; --frost: rgba(255, 255, 255, .64); --frostEdge: rgba(255, 255, 255, .7);
  --glass: rgba(255, 255, 255, .48); --glassEdge: rgba(255, 255, 255, .8); --fieldEdge: rgba(16, 20, 24, .12);
  --card: #ffffff; --card2: rgba(255, 255, 255, .6); --tile: #f2f4f7; --gray: rgba(118, 118, 128, .12);
  --sheet: rgba(255, 255, 255, .95); --avRing: #ffffff; --band: rgba(26, 127, 78, .14); --norm: #52514e;
  --cardShadow: rgba(20, 40, 70, .05); --liftShadow: rgba(20, 40, 70, .12); --bezel: #1b1d21;
  --spot0: rgba(120, 170, 255, .85); --spot1: rgba(255, 170, 120, .8); --spot2: rgba(120, 220, 170, .75); --spot3: rgba(190, 160, 255, .7);
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #0b0d10; --ink: #f2f2ef; --body: #c4c9d0; --muted: #9ba1ab; --faint: #5f6570; --sep: rgba(255, 255, 255, .08);
    --track: rgba(255, 255, 255, .12); --accent: #6aa6f0; --accentFill: #1f5fb3; --accentSoft: rgba(106, 166, 240, .16);
    --protein: #3987e5; --fat: #d95926; --carbs: #199e70; --carbsInk: #3cc48f; --fiber: #e3bd5f; --plain: #6b717b;
    --good: #3dbb7a; --goodSoft: rgba(61, 187, 122, .16); --online: #30d158; --warn: #e2894a; --warnSoft: rgba(226, 137, 74, .16);
    --danger: #ff6b62; --gold: #e0b04a; --frost: rgba(28, 30, 35, .58); --frostEdge: rgba(255, 255, 255, .08);
    --glass: rgba(40, 43, 48, .5); --glassEdge: rgba(255, 255, 255, .1); --fieldEdge: rgba(255, 255, 255, .16);
    --card: #1a1c20; --card2: rgba(255, 255, 255, .07); --tile: rgba(255, 255, 255, .06); --gray: rgba(118, 118, 128, .24);
    --sheet: rgba(30, 32, 37, .95); --avRing: #1f2227; --band: rgba(61, 187, 122, .16); --norm: #c3c2b7;
    --cardShadow: rgba(0, 0, 0, .10); --liftShadow: rgba(0, 0, 0, .4); --bezel: #2c2f35;
    --spot0: rgba(40, 95, 210, .5); --spot1: rgba(200, 90, 35, .32); --spot2: rgba(20, 130, 90, .4); --spot3: rgba(100, 70, 200, .42);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--page); color: var(--ink); -webkit-font-smoothing: antialiased;
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif; }
a { color: var(--accent); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- the page ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg i { position: absolute; border-radius: 50%; }
.bg i:nth-child(1) { width: 720px; height: 720px; left: -260px; top: -220px; background: radial-gradient(circle closest-side, var(--spot0), transparent); }
.bg i:nth-child(2) { width: 680px; height: 680px; right: -260px; top: 22%; background: radial-gradient(circle closest-side, var(--spot1), transparent); }
.bg i:nth-child(3) { width: 700px; height: 700px; left: -280px; bottom: -240px; background: radial-gradient(circle closest-side, var(--spot2), transparent); }
.bg i:nth-child(4) { width: 640px; height: 640px; right: -220px; bottom: -280px; background: radial-gradient(circle closest-side, var(--spot3), transparent); }
.wrap { max-width: 1160px; margin: 0 auto; padding: 18px 20px 0; }
.glass { background: var(--glass); border: 1px solid var(--glassEdge); box-shadow: 0 10px 30px var(--liftShadow);
  -webkit-backdrop-filter: blur(24px) saturate(190%); backdrop-filter: blur(24px) saturate(190%); }
.frost { background: var(--frost); border: 1px solid var(--frostEdge); box-shadow: 0 8px 36px var(--cardShadow);
  -webkit-backdrop-filter: blur(14px) saturate(180%); backdrop-filter: blur(14px) saturate(180%); }
.top { position: sticky; top: 14px; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 9px 9px 9px 14px; border-radius: 30px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 19px; font-weight: 700; letter-spacing: -.3px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; background: #fff; }
.top nav { display: flex; align-items: center; gap: 20px; }
.top nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.top nav a:hover { color: var(--ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; border: 0;
  border-radius: 16px; background: var(--accentFill); color: #fff; text-decoration: none; font-family: inherit; font-size: 17px;
  font-weight: 600; line-height: 1.1; white-space: nowrap; cursor: pointer; }
.btn:hover { filter: brightness(1.08); }
.btn.soft { background: var(--accentSoft); color: var(--accent); }
.top .btn { min-height: 42px; padding: 0 18px; border-radius: 21px; font-size: 15px; color: #fff; }
@media (max-width: 400px) { .top .btn { padding: 0 14px; font-size: 14px; } .brand { font-size: 17px; } }
.chip { display: inline-block; align-self: flex-start; padding: 7px 14px; border-radius: 999px; background: var(--accentSoft);
  color: var(--accent); font-size: 14px; font-weight: 600; }
.chip.good { background: var(--goodSoft); color: var(--good); }
.openbar { margin-top: 18px; padding: 16px 18px; border-radius: 24px; display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 12px; }
.openbar p { margin: 0; }
h1 { margin: 0; font-size: clamp(38px, 5.2vw, 60px); line-height: 1.04; font-weight: 800; letter-spacing: -1.8px; }
h2 { margin: 0; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.08; font-weight: 800; letter-spacing: -1.1px; }
.lead { margin: 0; max-width: 560px; font-size: 19px; line-height: 1.5; color: var(--body); }
.note { margin: 0; font-size: 14px; color: var(--muted); }
.row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding: 72px 0 32px; }
.hero > .text { flex: 1 1 460px; display: flex; flex-direction: column; gap: 22px; }
.stage { flex: 0 1 auto; display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 0 auto; }
.stage figcaption { font-size: 13px; color: var(--muted); text-align: center; max-width: 320px; }
.counters { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; padding: 24px 0 8px; }
.counters div { padding: 18px 20px; border-radius: 22px; }
.counters b { display: block; font-size: 34px; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.counters span { font-size: 14px; color: var(--muted); }
.counters + .note { padding: 0 4px 24px; }
.feature { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding: 64px 0; }
.feature.flip { flex-direction: row-reverse; }
.feature > .text { flex: 1 1 420px; display: flex; flex-direction: column; gap: 16px; }
.tag { font-size: 14px; font-weight: 700; letter-spacing: .2px; }
.feature p { margin: 0; font-size: 18px; line-height: 1.55; color: var(--body); }
.feature ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 16px; line-height: 1.5; color: var(--body); }
.pair { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; }
.beta { padding: 56px 0 72px; }
.beta > div { padding: 40px; border-radius: 32px; display: flex; flex-direction: column; gap: 16px; max-width: 780px; }
.beta p { margin: 0; font-size: 18px; line-height: 1.5; color: var(--body); }
.beta ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; font-size: 17px; }
footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 28px 0 40px;
  border-top: 1px solid var(--sep); font-size: 14px; }
footer .brand { font-size: 15px; }
footer .brand img { width: 28px; height: 28px; border-radius: 7px; }
footer nav, .langs { display: flex; gap: 14px; flex-wrap: wrap; }
.langs b { color: var(--ink); }
footer p { margin: 0; flex-basis: 100%; font-size: 13px; line-height: 1.5; color: var(--muted); }
@media (max-width: 880px) {
  .top nav a:not(.btn) { display: none; }
  .hero { padding-top: 40px; gap: 36px; }
  .feature, .feature.flip { flex-direction: column; padding: 40px 0; gap: 32px; }
  .feature > .text { flex-basis: auto; }
  .beta > div { padding: 26px 20px; }
  .counters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .counters div { padding: 14px 16px; }
  .counters b { font-size: 26px; }
  .counters span { font-size: 13px; }
}
@media (prefers-reduced-transparency: reduce) {
  .glass, .frost { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--card); }
  .bg { display: none; }
}

/* ---------- the phone: a frame round a screen drawn at the app's own points (402 x 874, iPhone 17 Pro), scaled ---------- */
.device { --s: .7; --w: 402px; --h: 874px; position: relative; flex: none; width: calc(var(--w) * var(--s) + 20px);
  height: calc(var(--h) * var(--s) + 20px); padding: 10px; border-radius: calc(62px * var(--s) + 10px); background: var(--bezel);
  box-shadow: 0 40px 80px var(--liftShadow), inset 0 0 0 2px rgba(255, 255, 255, .06); transform-style: preserve-3d;
  transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
.device > .screen { position: relative; width: var(--w); height: var(--h); transform: scale(var(--s)); transform-origin: 0 0;
  border-radius: 62px; overflow: hidden; background: var(--page); color: var(--ink); font-size: 15px; line-height: normal;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, sans-serif; }
.device.big { --s: .76; }
@media (max-width: 440px) { .device, .device.big { --s: .78; } }
@media (max-width: 380px) { .device, .device.big { --s: .7; } }
.island { position: absolute; z-index: 30; top: 11px; left: 50%; width: 124px; height: 37px; margin-left: -62px; border-radius: 19px; background: #000; }
.status { position: absolute; z-index: 29; top: 0; left: 0; right: 0; height: 54px; display: flex; align-items: center;
  justify-content: space-between; padding: 6px 34px 0 46px; font-size: 17px; font-weight: 600; color: var(--ink); }
.status svg { height: 13px; }
.status span:last-child { display: flex; gap: 6px; align-items: center; }
.home { position: absolute; z-index: 30; bottom: 8px; left: 50%; width: 140px; height: 5px; margin-left: -70px; border-radius: 3px; background: var(--ink); opacity: .85; }

/* the app's surfaces inside the screen */
.screen .spots { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.screen .spots i { position: absolute; border-radius: 50%; }
.screen .spots i:nth-child(1) { width: 340px; height: 340px; left: -211px; top: 40px; background: radial-gradient(circle closest-side, var(--spot0), transparent); }
.screen .spots i:nth-child(2) { width: 320px; height: 320px; left: 280px; top: 260px; background: radial-gradient(circle closest-side, var(--spot1), transparent); }
.screen .spots i:nth-child(3) { width: 330px; height: 330px; left: -205px; top: 540px; background: radial-gradient(circle closest-side, var(--spot2), transparent); }
.screen .spots i:nth-child(4) { width: 300px; height: 300px; left: 288px; top: 700px; background: radial-gradient(circle closest-side, var(--spot3), transparent); }
.scroll { position: absolute; inset: 0; padding: 70px 16px 0; display: flex; flex-direction: column; gap: 12px; }
.fr { position: relative; border: 1px solid var(--frostEdge); background: var(--frost); box-shadow: 0 8px 36px var(--cardShadow);
  -webkit-backdrop-filter: saturate(180%) blur(6px); backdrop-filter: saturate(180%) blur(6px); }
.gl { background: var(--glass); border: 1px solid var(--glassEdge); box-shadow: 0 8px 36px var(--cardShadow);
  -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px); }
.titlerow { display: flex; align-items: center; gap: 10px; min-height: 48px; }
.titlerow h3 { margin: 0; font-size: 30px; font-weight: 700; letter-spacing: -.6px; white-space: nowrap; }
.pill { display: flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 14px; background: var(--accentSoft);
  color: var(--accent); font-size: 14px; font-weight: 600; white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.pill svg { width: 11px; height: 11px; flex: none; }
.titlerow .end { margin-left: auto; position: relative; flex: none; }
.ico { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* faces row */
.faces { display: flex; gap: 14px; padding: 4px 0; align-items: flex-start; }
.face { position: relative; width: 60px; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px;
  color: var(--muted); white-space: nowrap; }
.face .av { width: 48px; height: 48px; }
.face.on { color: var(--accent); font-weight: 600; }
.face.on .ring2 { padding: 2px; border-radius: 26px; background: var(--avRing); }
.av { display: flex; align-items: center; justify-content: center; border-radius: 50%; overflow: hidden; color: #fff; font-weight: 600;
  font-size: 20px; flex: none; }
.av img { width: 100%; height: 100%; object-fit: cover; }
.crown { position: absolute; left: 2px; top: -4px; width: 20px; height: 20px; border-radius: 10px; background: var(--card);
  border: 2px solid var(--page); display: flex; align-items: center; justify-content: center; color: var(--gold); }
.crown svg { width: 10px; height: 10px; fill: currentColor; }
.dot-on { position: absolute; right: 5px; top: 35px; width: 13px; height: 13px; border-radius: 7px; background: var(--online); border: 2px solid var(--page); }

/* the day card */
.hero-card { border-radius: 24px; padding: 16px; }
.gauge { display: flex; align-items: center; gap: 16px; }
.ringbox { position: relative; width: 120px; height: 120px; flex: none; }
.ringbox svg { position: absolute; inset: 0; }
.ringbox .mid { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ringbox .eaten { font-size: 23px; font-weight: 700; letter-spacing: -.6px; font-variant-numeric: tabular-nums; }
.ringbox .bar { width: 52px; height: 2px; border-radius: 1px; background: var(--ink); opacity: .4; margin: 5px 0 4px; }
.ringbox .norm { font-size: 15px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.ringbox .unit { font-size: 11px; color: var(--muted); margin-top: 3px; }
.sliders { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 13px; }
.sl-top { display: flex; align-items: baseline; gap: 6px; font-size: 13px; }
.sl-top .g { margin-left: auto; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sl-top .pc { min-width: 36px; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.sl-top .pc.warn { color: var(--warn); }
.track { position: relative; height: 8px; margin-top: 6px; }
.track .solid { position: absolute; left: 0; top: 0; width: 76.923%; height: 8px; background: var(--track); border-radius: 4px 0 0 4px; }
.track .hatch { position: absolute; left: 76.923%; top: 0; width: 23.077%; height: 8px; border-radius: 0 4px 4px 0;
  background: repeating-linear-gradient(135deg, var(--track) 0 2.6px, transparent 2.6px 4.243px); }
.track .fill { position: absolute; left: 0; top: 0; height: 8px; border-radius: 4px; background: var(--c); }
.track .over { position: absolute; left: 76.923%; top: 0; height: 8px; border-radius: 0 4px 4px 0; overflow: hidden;
  background: repeating-linear-gradient(135deg, var(--c) 0 2.6px, transparent 2.6px 4.243px), color-mix(in srgb, var(--c) 35%, transparent); }
.track .tick { position: absolute; left: calc(76.923% - 1px); top: -4px; width: 2px; height: 16px; border-radius: 1px; background: var(--ink); opacity: .3; }
.track .knob { position: absolute; top: -3px; width: 14px; height: 14px; margin-left: -7px; border-radius: 7px; background: #fff;
  border: 2.5px solid var(--c); box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }
.foot { margin-top: 12px; padding-top: 8px; border-top: .5px solid var(--sep); display: flex; align-items: center; gap: 10px; }
.foot .left { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.foot .l1 { display: flex; align-items: center; gap: 5px; font-size: 14px; }
.foot .l1 b { font-size: 16px; font-variant-numeric: tabular-nums; }
.foot .l1 svg { width: 15px; height: 15px; color: var(--muted); }
.foot .l2 { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--fat); }
.foot .l2 svg { width: 12px; height: 12px; }
.fibre { display: flex; align-items: center; gap: 8px; }
.fibre .r { position: relative; width: 34px; height: 34px; }
.fibre .r svg { position: absolute; inset: 0; }
.fibre .r .leaf { position: absolute; left: 10.5px; top: 10.5px; width: 13px; height: 13px; color: var(--fiber); }
.fibre .w b { font-size: 15px; font-variant-numeric: tabular-nums; }
.fibre .w span { font-size: 15px; font-weight: 500; color: var(--muted); }
.fibre .w small { display: block; font-size: 12px; color: var(--muted); line-height: 15px; }

/* the activity line, meal cards */
.moveline { border-radius: 20px; padding: 12px; display: flex; align-items: center; gap: 8px; font-size: 14px; }
.moveline .t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.moveline .kg { display: flex; align-items: center; gap: 3px; font-weight: 600; font-variant-numeric: tabular-nums; }
.moveline svg { flex: none; }
.meals { display: flex; flex-direction: column; gap: 12px; }
.meal { border-radius: 22px; padding: 12px; display: flex; align-items: center; gap: 12px; }
.thumb { width: 56px; height: 56px; border-radius: 16px; overflow: hidden; flex: none; background: var(--accentSoft);
  display: flex; align-items: center; justify-content: center; font-size: 28px; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.meal .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.meal .name { font-size: 15px; line-height: 20px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.meal .meta { font-size: 12.5px; color: var(--muted); }
.dots { display: flex; flex-wrap: wrap; column-gap: 10px; row-gap: 3px; margin-top: 3px; font-size: 12.5px; color: var(--muted); }
.dots span { display: flex; align-items: center; }
.dots i { width: 6px; height: 6px; border-radius: 3px; margin-right: 4px; }
.dots svg { width: 11px; height: 11px; margin-right: 3px; color: var(--fiber); }
.meal .k { display: flex; flex-direction: column; align-items: flex-end; }
.meal .k b { font-size: 18px; font-variant-numeric: tabular-nums; }
.meal .k small { font-size: 11px; color: var(--muted); }
.plus { align-self: center; flex: none; width: 46px; height: 46px; border-radius: 23px; display: flex; align-items: center; justify-content: center;
  color: var(--accent); margin: -31px 0; position: relative; z-index: 2; }
.plus svg { width: 26px; height: 26px; }

/* the system tab bar of iOS 26: a floating glass capsule */
.tabbar { position: absolute; z-index: 25; left: 21px; right: 21px; bottom: 21px; height: 62px; border-radius: 31px; display: flex;
  align-items: center; justify-content: space-around; padding: 0 6px; }
.tabbar span { flex: 1; height: 54px; border-radius: 27px; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 2px; font-size: 10px; font-weight: 500; color: var(--ink); opacity: .82; }
.tabbar span.on { color: var(--accent); opacity: 1; background: rgba(127, 127, 127, .14); }
.tabbar svg { width: 24px; height: 24px; }

/* a sheet over a dimmed screen */
.dim { position: absolute; inset: 0; background: rgba(16, 20, 24, .3); }
.sheetbox { position: absolute; left: 0; right: 0; bottom: 0; top: 218px; border-radius: 32px 32px 0 0; background: var(--sheet);
  -webkit-backdrop-filter: blur(40px); backdrop-filter: blur(40px); box-shadow: 0 -8px 30px var(--liftShadow); padding: 28px 20px 0;
  display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
.grab { position: absolute; top: 8px; left: 50%; width: 36px; height: 5px; margin-left: -18px; border-radius: 3px; background: var(--faint); opacity: .7; }

/* the coach's face at the end of the title row (coach-avatar.tsx): Sam 48 pt with the AI badge */
.coachface { position: relative; display: block; width: 48px; height: 48px; }
.coachface svg { display: block; border-radius: 24px; }
.coachface .sam-bg { fill: #7fb2e5; } .coachface .sam-hi { opacity: .16; }
.coachface b { position: absolute; right: -2px; bottom: -2px; height: 14px; min-width: 14px; padding: 0 3px; border-radius: 7px;
  background: var(--accentFill); border: 1.5px solid var(--avRing); color: #fff; font-size: 7px; font-weight: 700; line-height: 11px; text-align: center; }
@media (prefers-color-scheme: dark) { .coachface .sam-bg, .coachline .sam-bg { fill: #2d5a8c; } .coachface .sam-hi, .coachline .sam-hi { opacity: .08; } }

/* the notch: the cards part in arcs round the fork button (surfaces.tsx NOTCH: gap 8, bite 27, button 46) */
.notch-bottom { -webkit-mask: radial-gradient(circle 27px at 50% calc(100% + 4px), transparent 98%, #000 100%);
  mask: radial-gradient(circle 27px at 50% calc(100% + 4px), transparent 98%, #000 100%); padding-bottom: 25px; }
.notch-top { -webkit-mask: radial-gradient(circle 27px at 50% -4px, transparent 98%, #000 100%);
  mask: radial-gradient(circle 27px at 50% -4px, transparent 98%, #000 100%); padding-top: 25px; }

/* the meal's sheet (app/meal/[id].tsx) */
.sheethead { display: flex; align-items: center; gap: 14px; }
.thumb72 { width: 72px; height: 72px; border-radius: 18px; overflow: hidden; flex: none; }
.thumb72 img { width: 100%; height: 100%; object-fit: cover; }
.sheethead div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sheethead .over { font-size: 13px; color: var(--muted); }
.sheethead b { font-size: 22px; font-weight: 700; line-height: 1.15; }
.tiles { display: flex; gap: 8px; }
.tiles div { flex: 1; border-radius: 16px; padding: 10px 0; background: var(--tile); display: flex; flex-direction: column; align-items: center; text-align: center; }
.tiles b { font-size: 20px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tiles span { font-size: 12px; color: var(--muted); line-height: 1.2; }
.coachline { display: flex; align-items: flex-start; gap: 10px; }
.coachline svg { flex: none; border-radius: 12px; }
.coachline .sam-bg { fill: #7fb2e5; } .coachline .sam-hi { opacity: .16; }
.coachline p { margin: 0; font-size: 15.5px; line-height: 23px; }
table.items { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--fieldEdge); border-radius: 18px;
  overflow: hidden; background: var(--card); box-shadow: 0 4px 28px var(--cardShadow); font-size: 14px; line-height: 19px; }
table.items th { background: var(--tile); font-weight: 600; text-align: right; padding: 9px 8px; white-space: nowrap; }
table.items th:first-child { text-align: left; padding-left: 12px; }
table.items th i { display: inline-block; width: 6px; height: 6px; border-radius: 3px; margin-right: 4px; vertical-align: 2px; }
table.items td { border-top: .5px solid var(--sep); padding: 11px 8px; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.items td:first-child { text-align: left; padding-left: 12px; white-space: normal; font-size: 14.5px; }
table.items td + td, table.items th + th { border-left: .5px solid var(--sep); }

/* Activity (move.tsx, move/rings.tsx, move-row.tsx, week-bars.tsx) */
.roundbtn { width: 44px; height: 44px; border-radius: 22px; display: flex; align-items: center; justify-content: center; color: var(--accent); }
.rings { border-radius: 24px; padding: 16px; display: flex; align-items: center; gap: 16px; }
.rings .nums { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.rings .nums b { display: block; font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rings .nums small { font-size: 13px; font-weight: 600; }
.rings .nums span { font-size: 12.5px; color: var(--muted); }
.sect { margin: 6px 0 0; font-size: 17px; font-weight: 700; }
.mlist { display: flex; flex-direction: column; gap: 8px; }
.mrow { border-radius: 20px; padding: 10px 14px; display: flex; align-items: center; gap: 10px; }
.mrow .badge { width: 36px; height: 36px; border-radius: 12px; flex: none; display: flex; align-items: center; justify-content: center;
  color: var(--t); background: color-mix(in srgb, var(--t) 13.3%, transparent); }
.mrow .body { flex: 1; min-width: 0; }
.mrow .body b { display: block; font-size: 15.5px; font-weight: 600; }
.mrow .body span { font-size: 12.5px; line-height: 17px; color: var(--muted); }
.mrow .kc { font-size: 15.5px; font-variant-numeric: tabular-nums; }
.tonorm { margin: -4px 0 0; padding: 0 4px; display: flex; align-items: center; gap: 5px; font-size: 13px; line-height: 18px; color: var(--muted); }
.tonorm svg { width: 14px; height: 14px; }
.weekcard { border-radius: 22px; padding: 14px; }
.weekbars { display: flex; align-items: flex-end; gap: 10px; height: 92px; }
.weekbars div { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; height: 100%; }
.weekbars i { display: block; width: 100%; border-radius: 6px; }
.weekbars span { font-size: 11px; color: var(--muted); }
.weekbars span.on { color: var(--ink); font-weight: 700; }

/* Stats (stats.tsx, stats/day-chart.tsx) */
.chartcard { border-radius: 22px; padding: 14px; }
.chart { display: block; overflow: visible; }
.chart .lab { font-size: 11px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.chart .cap { font-size: 12px; font-weight: 600; fill: var(--muted); }
.chart .kg { font-size: 12.5px; font-weight: 700; fill: var(--ink); font-variant-numeric: tabular-nums; }
.chartcard .sum { margin: 12px 0 0; text-align: center; font-size: 14px; line-height: 20px; color: var(--muted); }
.chartcard .sum b { color: var(--ink); }
.fold { border-radius: 20px; padding: 12px 14px; display: flex; align-items: center; gap: 12px; }
.fold div { flex: 1; display: flex; flex-direction: column; }
.fold div b { font-size: 15px; font-weight: 600; }
.fold div span { font-size: 12.5px; color: var(--muted); }
.fold > svg { color: var(--accent); }
.foldthumbs { display: flex; }
.foldthumbs img { width: 34px; height: 34px; border-radius: 10px; object-fit: cover; border: 2px solid var(--card); margin-left: -12px; }
.foldthumbs img:first-child { margin-left: 0; }
.fold.summary p { margin: 0; font-size: 14.5px; line-height: 21px; }
/* the app's page strip (components/page-tabs.tsx): the diary's «Еда | Активность», the feed's «Подписки | Рекомендации | Лига» */
.pstrip { position: relative; display: flex; flex: none; margin: 0 -16px; border-bottom: 1px solid var(--sep); }
.pstrip span { position: relative; flex: 1; min-width: 0; padding: 9px 0 10px; text-align: center; font-size: 15px; font-weight: 600; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pstrip span.on { color: var(--ink); }
.pstrip span.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2.5px; border-radius: 1.25px; background: var(--ink); }
/* the diary scrolled: the big title gone into the glass bar, the strip under it */
.cbar { flex: none; margin-top: -18px; display: flex; flex-direction: column; align-items: center; gap: 1px; }
.cbar b { font-size: 17px; font-weight: 600; }
.cbar span { font-size: 12.5px; color: var(--muted); }

