@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');

:root {
  color-scheme: dark;
  font-family: "DM Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f7f8f5;
  background: #020403;
  --bg: #060807;
  --surface: #0d100e;
  --surface-2: #141814;
  --surface-3: #1b211b;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .14);
  --text: #f7f8f5;
  --muted: #929990;
  --lime: #a8e62b;
  --lime-soft: #d3ff73;
  --lime-dark: #649900;
  --blue: #70b9ff;
  --orange: #ffad62;
  --protein: #a8e62b;
  --carbs: #f4d264;
  --fat: #ff9d64;
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --shadow: 0 28px 80px rgba(0, 0, 0, .5);
}

* { box-sizing: border-box; }
html { background: #020403; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(circle at 50% -10%, rgba(168, 230, 43, .12), transparent 32rem),
    radial-gradient(circle at 10% 90%, rgba(168, 230, 43, .05), transparent 26rem),
    #020403;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
button { color: inherit; }
button, label { -webkit-tap-highlight-color: transparent; }
button:focus-visible, label:has(input:focus-visible) { outline: 2px solid var(--lime); outline-offset: 3px; }
svg { display: block; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.page-glow { position: fixed; inset: 0; pointer-events: none; opacity: .5; }

.phone-shell {
  position: relative;
  width: min(100%, 460px);
  height: 100vh;
  height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--bg);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.view {
  display: none;
  height: 100%;
  overflow-y: auto;
  scrollbar-width: none;
  padding: calc(22px + env(safe-area-inset-top)) 20px calc(112px + env(safe-area-inset-bottom));
  animation: viewIn .34s cubic-bezier(.2, .8, .2, 1);
}
.view::-webkit-scrollbar { display: none; }
.view.active { display: block; }
@keyframes viewIn { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }

.app-header { display: flex; align-items: center; justify-content: space-between; margin: 2px 2px 24px; }
.app-header.compact { margin-bottom: 27px; }
.date-label { margin: 0 0 5px; color: var(--muted); font: 700 10px/1.2 "Manrope", sans-serif; letter-spacing: .16em; text-transform: uppercase; }
.app-header h1 { margin: 0; font: 800 34px/.98 "Manrope", sans-serif; letter-spacing: -.05em; }
.avatar { width: 44px; height: 44px; border: 1px solid rgba(168, 230, 43, .22); border-radius: 15px; background: linear-gradient(145deg, #b9f23f, #7ebc11); color: #122003; font: 800 16px/1 "Manrope", sans-serif; box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 9px 24px rgba(99, 151, 0, .18); cursor: pointer; }

.daily-summary {
  position: relative;
  min-height: 242px;
  overflow: hidden;
  padding: 23px 21px 19px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 92% 8%, rgba(168, 230, 43, .18), transparent 42%),
    linear-gradient(145deg, #141914, #090c0a 70%);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255,255,255,.04);
}
.summary-orbit { position: absolute; inset: 0; pointer-events: none; opacity: .28; }
.summary-orbit span { position: absolute; width: 280px; height: 280px; right: -174px; top: -126px; border: 1px solid var(--lime); border-radius: 50%; }
.summary-orbit span:last-child { width: 210px; height: 210px; right: -128px; top: -91px; opacity: .5; }
.summary-top { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.summary-top p { margin: 0 0 9px; color: #c6cbc3; font-size: 13px; }
.summary-top > div:first-child > strong { display: block; font: 800 46px/.95 "Manrope", sans-serif; letter-spacing: -.055em; }
.summary-top > div:first-child > span { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; }
.progress-ring { --progress: 0deg; width: 101px; height: 101px; flex: 0 0 auto; padding: 7px; border-radius: 50%; background: conic-gradient(var(--lime) var(--progress), rgba(255,255,255,.08) 0); box-shadow: 0 0 24px rgba(168,230,43,.08); }
.progress-ring > div { width: 100%; height: 100%; display: grid; place-content: center; text-align: center; border-radius: 50%; background: #101410; }
.progress-ring strong { display: block; font: 800 18px/1 "Manrope", sans-serif; }
.progress-ring span { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.macro-row { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 25px; padding-top: 17px; border-top: 1px solid var(--line); }
.macro-row > div { position: relative; padding-left: 13px; }
.macro-row > div + div { border-left: 1px solid var(--line); padding-left: 18px; }
.macro-dot { position: absolute; left: 0; top: 4px; width: 5px; height: 21px; border-radius: 9px; background: var(--protein); }
.macro-row > div + div .macro-dot { left: 6px; }
.macro-dot.carbs { background: var(--carbs); }.macro-dot.fat { background: var(--fat); }
.macro-row strong, .macro-row small { display: block; }
.macro-row strong { font: 700 14px/1.2 "Manrope", sans-serif; }
.macro-row small { margin-top: 4px; color: var(--muted); font-size: 10px; }

.capture-cta { width: 100%; display: flex; align-items: center; gap: 13px; margin: 14px 0 29px; padding: 13px; border: 0; border-radius: 21px; background: var(--lime); color: #101609; text-align: left; cursor: pointer; box-shadow: 0 13px 28px rgba(112, 166, 8, .16); transition: transform .18s ease, filter .18s ease; }
.capture-cta:hover { filter: brightness(1.05); transform: translateY(-1px); }
.capture-cta:active { transform: translateY(1px) scale(.99); }
.cta-icon { display: grid; place-items: center; width: 43px; height: 43px; flex: 0 0 auto; border-radius: 14px; background: rgba(255,255,255,.3); }
.capture-cta > span:nth-child(2) { flex: 1; min-width: 0; }
.capture-cta strong, .capture-cta small { display: block; }
.capture-cta strong { font: 800 14px/1.25 "Manrope", sans-serif; }
.capture-cta small { margin-top: 3px; color: rgba(16, 22, 9, .64); font-size: 10px; }
.capture-cta .chevron { width: 19px; }

.section-title { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 14px; }
.section-title h2 { margin: 0; font: 800 20px/1.2 "Manrope", sans-serif; letter-spacing: -.035em; }
.section-title p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.date-button { width: 39px; height: 39px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); cursor: pointer; }
.date-button svg { width: 18px; height: 18px; }
.timeline { display: grid; gap: 10px; }
.empty-state { padding: 35px 24px; border: 1px dashed var(--line-strong); border-radius: 22px; color: var(--muted); text-align: center; }
.empty-state svg { width: 29px; height: 29px; margin: 0 auto 10px; color: var(--lime); }
.empty-state strong { display: block; margin-bottom: 4px; color: var(--text); font-size: 14px; }
.empty-state span { font-size: 12px; }
.entry { display: grid; grid-template-columns: 65px 1fr auto; align-items: center; gap: 12px; padding: 9px 11px 9px 9px; border: 1px solid var(--line); border-radius: 19px; background: linear-gradient(145deg, rgba(255,255,255,.035), rgba(255,255,255,.012)); transition: border-color .2s ease, transform .2s ease; }
.entry:hover { border-color: rgba(168,230,43,.2); transform: translateY(-1px); }
.entry-photo { width: 65px; height: 65px; object-fit: cover; border-radius: 14px; background: #171b18; }
.entry-main { min-width: 0; }
.entry-time { display: block; margin-bottom: 4px; color: #bcc2ba; font-size: 10px; }
.entry-title { overflow: hidden; margin: 0 0 6px; font: 700 13px/1.2 "Manrope", sans-serif; white-space: nowrap; text-overflow: ellipsis; }
.entry-meta { color: var(--muted); font-size: 10px; white-space: nowrap; }
.entry-calories { align-self: center; color: var(--lime-soft); font: 700 13px/1 "Manrope", sans-serif; text-align: right; }
.entry-calories span { display: block; margin-top: 3px; color: var(--muted); font: 400 9px/1 "DM Sans", sans-serif; }
.sync-banner { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 11px; margin-top: 18px; padding: 13px; border: 1px solid rgba(168,230,43,.15); border-radius: 19px; background: rgba(168,230,43,.045); }
.sync-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: rgba(168,230,43,.1); color: var(--lime); }
.sync-mark svg { width: 19px; }
.sync-banner strong, .sync-banner span { display: block; }
.sync-banner strong { font: 700 12px/1.2 "Manrope", sans-serif; }.sync-banner div > span { margin-top: 3px; color: var(--muted); font-size: 9px; }
.sync-status { padding: 5px 8px; border-radius: 20px; background: rgba(168,230,43,.12); color: var(--lime); font-size: 9px; font-weight: 700; }

.bottom-nav { position: absolute; z-index: 20; left: 0; right: 0; bottom: 0; height: calc(76px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: 1fr 1fr 1.1fr 1fr 1fr; align-items: start; padding: 9px 10px env(safe-area-inset-bottom); border-top: 1px solid rgba(255,255,255,.08); background: rgba(7,9,8,.91); backdrop-filter: blur(24px) saturate(130%); }
.bottom-nav > button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 5px 2px; border: 0; background: none; color: #727970; font-size: 8px; cursor: pointer; }
.bottom-nav > button svg { width: 21px; height: 21px; stroke-width: 1.7; }
.bottom-nav > button.active { color: var(--lime); }
.bottom-nav > button.active::before { content: ""; position: absolute; top: -9px; width: 26px; height: 2px; border-radius: 3px; background: var(--lime); box-shadow: 0 2px 8px var(--lime); }
.bottom-nav .capture-tab { padding-top: 0; }
.bottom-nav .capture-tab::before { display: none; }
.capture-tab > span { width: 53px; height: 53px; display: grid; place-items: center; margin-top: -25px; border: 5px solid var(--bg); border-radius: 18px; background: var(--lime); color: #101609; transform: rotate(45deg); box-shadow: 0 10px 28px rgba(113, 168, 8, .28); transition: transform .2s ease; }
.capture-tab:hover > span { transform: rotate(45deg) scale(1.05); }
.capture-tab > span svg { width: 23px; height: 23px; transform: rotate(-45deg); stroke-width: 2; }

.period-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-bottom: 18px; padding: 4px; border-radius: 14px; background: #0d100e; }
.period-tabs button { padding: 9px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-size: 11px; font-weight: 700; cursor: pointer; }
.period-tabs button.active { background: #20261f; color: var(--text); box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
.stat-hero { padding: 23px 20px 17px; border: 1px solid var(--line); border-radius: 27px; background: linear-gradient(150deg, #111511, #090b09); }
.stat-hero > span { color: var(--muted); font-size: 11px; }.stat-hero > strong { display: block; margin: 8px 0 5px; font: 800 38px/1 "Manrope", sans-serif; letter-spacing: -.05em; }.stat-hero > strong small { color: var(--muted); font-size: 14px; font-weight: 500; letter-spacing: 0; }.stat-hero > p { height: 16px; margin: 0; color: var(--lime); font-size: 10px; }
.bar-chart { height: 152px; display: grid; grid-template-columns: repeat(7, 1fr); align-items: end; gap: 9px; margin-top: 18px; padding-top: 11px; border-top: 1px solid var(--line); }
.bar-column { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 7px; color: var(--muted); font-size: 9px; }
.bar { width: 100%; max-width: 25px; min-height: 8px; border-radius: 8px 8px 4px 4px; background: linear-gradient(180deg, var(--lime), #527c08); box-shadow: 0 -5px 16px rgba(168,230,43,.08); transform-origin: bottom; animation: grow .7s cubic-bezier(.2,.8,.2,1); }
.bar.today-bar { background: var(--lime-soft); box-shadow: 0 -5px 20px rgba(168,230,43,.22); }
@keyframes grow { from { transform: scaleY(0); } }
.section-block { margin-top: 27px; }
.macro-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.macro-card { padding: 15px 12px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.macro-card i { display: block; width: 22px; height: 4px; margin-bottom: 17px; border-radius: 5px; background: var(--bar-color); }.macro-card strong { display: block; font: 800 18px/1 "Manrope", sans-serif; }.macro-card span { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; }
.insight-card { display: flex; gap: 13px; margin-top: 18px; padding: 17px; border: 1px solid rgba(168,230,43,.17); border-radius: 21px; background: rgba(168,230,43,.055); }
.insight-icon { width: 39px; height: 39px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 13px; background: var(--lime); color: #101609; }.insight-icon svg { width: 19px; }
.insight-card span { color: var(--lime); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }.insight-card strong { display: block; margin-top: 4px; font: 700 13px/1.2 "Manrope", sans-serif; }.insight-card p { margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; }

.trend-lead { position: relative; overflow: hidden; min-height: 180px; display: flex; align-items: flex-end; padding: 22px; border: 1px solid var(--line); border-radius: 27px; background: radial-gradient(circle at 80% 20%, rgba(168,230,43,.23), transparent 34%), linear-gradient(145deg, #151a15, #090b09); }
.trend-lead p { position: relative; z-index: 1; width: 77%; margin: 0; font: 500 23px/1.25 "Manrope", sans-serif; letter-spacing: -.04em; }.trend-lead p strong { color: var(--lime-soft); }
.trend-orb { position: absolute; right: 22px; top: 22px; width: 57px; height: 57px; display: grid; place-items: center; border: 1px solid rgba(168,230,43,.35); border-radius: 50%; background: rgba(168,230,43,.1); color: var(--lime); box-shadow: 0 0 40px rgba(168,230,43,.12); }
.trend-list { display: grid; gap: 9px; }.trend-list article { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 11px; padding: 13px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }.trend-badge { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; }.trend-badge svg { width: 19px; }.trend-badge.lime { color: var(--lime); background: rgba(168,230,43,.1); }.trend-badge.blue { color: var(--blue); background: rgba(112,185,255,.1); }.trend-badge.orange { color: var(--orange); background: rgba(255,173,98,.1); }.trend-list strong { font: 700 12px/1.2 "Manrope", sans-serif; }.trend-list p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }.delta { padding: 5px 7px; border-radius: 9px; background: #202520; color: #d5dad2; font-size: 9px; font-weight: 700; }.delta.good { color: var(--lime); background: rgba(168,230,43,.1); }
.recommendation { margin-top: 21px; padding: 22px; border-radius: 24px; background: var(--lime); color: #11170a; }.recommendation > span { font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }.recommendation h2 { margin: 10px 0 8px; font: 800 21px/1.18 "Manrope", sans-serif; letter-spacing: -.04em; }.recommendation p { margin: 0; color: rgba(17,23,10,.68); font-size: 11px; line-height: 1.5; }

.profile-card { display: grid; grid-template-columns: 51px 1fr auto; align-items: center; gap: 13px; padding: 14px; border: 1px solid rgba(168,230,43,.15); border-radius: 21px; background: rgba(168,230,43,.05); }.profile-avatar { width: 51px; height: 51px; display: grid; place-items: center; border-radius: 17px; background: var(--lime); color: #101609; font: 800 18px/1 "Manrope", sans-serif; }.profile-card strong, .profile-card span { display: block; }.profile-card strong { font: 700 15px/1.2 "Manrope", sans-serif; }.profile-card span { margin-top: 4px; color: var(--muted); font-size: 10px; }.profile-card button { border: 0; background: none; color: var(--muted); }.profile-card svg { width: 18px; }
.settings-group { margin-top: 26px; }.settings-group h2 { margin: 0 0 10px 3px; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .12em; }.settings-row { position: relative; width: 100%; display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 11px; padding: 11px 3px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; cursor: pointer; }.settings-row:last-child { border-bottom: 0; }.settings-row strong, .settings-row small { display: block; }.settings-row strong { font: 700 12px/1.2 "Manrope", sans-serif; }.settings-row small { margin-top: 4px; color: var(--muted); font-size: 9px; }.settings-row > svg { width: 17px; color: var(--muted); }.service-icon, .row-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; font-weight: 800; }.service-icon.health { background: #f7f8f6; color: #ef3662; font-size: 20px; }.service-icon.whoop { background: #181b19; color: white; font-style: italic; }.row-icon { color: var(--lime); background: rgba(168,230,43,.1); }.row-icon svg { width: 18px; }.connected { color: var(--lime); font-size: 9px; }.settings-row input { position: absolute; opacity: 0; pointer-events: none; }.toggle { position: relative; width: 40px; height: 23px; border-radius: 20px; background: #292e29; transition: background .2s ease; }.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; transition: transform .2s ease; box-shadow: 0 2px 5px rgba(0,0,0,.3); }.settings-row input:checked + .toggle { background: var(--lime-dark); }.settings-row input:checked + .toggle::after { transform: translateX(17px); }
.privacy-note { display: flex; gap: 12px; margin-top: 25px; padding: 17px; border: 1px solid var(--line); border-radius: 19px; background: var(--surface); }.privacy-note > svg { flex: 0 0 auto; width: 19px; color: var(--lime); }.privacy-note strong { font: 700 12px/1.2 "Manrope", sans-serif; }.privacy-note p { margin: 6px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }.danger-button { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; padding: 13px; border: 1px solid rgba(255,100,100,.15); border-radius: 15px; background: rgba(255,100,100,.04); color: #ff7c7c; font-size: 11px; cursor: pointer; }.danger-button svg { width: 16px; }

.capture-view, .processing-view, .result-view { position: absolute; z-index: 40; inset: 0; min-height: 100vh; min-height: 100dvh; visibility: hidden; opacity: 0; pointer-events: none; background: #030403; transition: opacity .25s ease, visibility .25s ease; }
.capture-view.visible, .processing-view.visible, .result-view.visible { visibility: visible; opacity: 1; pointer-events: auto; }
.camera-scene { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.camera-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.62) 0, transparent 20%, transparent 58%, rgba(0,0,0,.92) 84%); pointer-events: none; }
.camera-topbar { position: absolute; z-index: 2; left: 0; right: 0; top: 0; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; padding: calc(14px + env(safe-area-inset-top)) 15px 14px; background: rgba(0,0,0,.24); backdrop-filter: blur(10px); }.camera-topbar strong { text-align: center; font: 700 13px/1 "Manrope", sans-serif; }.camera-topbar button, .processing-close, .result-photo-wrap button { width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(0,0,0,.28); color: white; cursor: pointer; backdrop-filter: blur(10px); }.camera-topbar svg { width: 20px; }.camera-topbar button:first-child svg { width: 22px; }
.focus-frame { position: absolute; left: 50%; top: 39%; width: 140px; height: 140px; transform: translate(-50%,-50%); opacity: .45; }.focus-frame span { position: absolute; width: 25px; height: 25px; border-color: white; }.focus-frame span:nth-child(1) { left: 0; top: 0; border-left: 1px solid; border-top: 1px solid; }.focus-frame span:nth-child(2) { right: 0; top: 0; border-right: 1px solid; border-top: 1px solid; }.focus-frame span:nth-child(3) { left: 0; bottom: 0; border-left: 1px solid; border-bottom: 1px solid; }.focus-frame span:nth-child(4) { right: 0; bottom: 0; border-right: 1px solid; border-bottom: 1px solid; }
.camera-hint { position: absolute; left: 50%; bottom: 184px; transform: translateX(-50%); width: max-content; padding: 7px 11px; border-radius: 18px; background: rgba(0,0,0,.5); color: rgba(255,255,255,.82); font-size: 10px; backdrop-filter: blur(10px); }
.camera-controls { position: absolute; left: 0; right: 0; bottom: 0; height: calc(164px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: 1fr 1.2fr 1fr; align-items: center; padding: 13px 35px calc(22px + env(safe-area-inset-bottom)); background: rgba(0,0,0,.58); backdrop-filter: blur(18px); }.camera-controls button { justify-self: center; cursor: pointer; }.gallery-button { width: 49px; height: 49px; padding: 3px; overflow: hidden; border: 1px solid rgba(255,255,255,.45); border-radius: 13px; background: #111; }.gallery-button img { width: 100%; height: 100%; object-fit: cover; border-radius: 9px; }.shutter { width: 79px; height: 79px; display: grid; place-items: center; border: 3px solid white; border-radius: 50%; background: transparent; }.shutter span { width: 63px; height: 63px; border-radius: 50%; background: #fff; transition: transform .16s ease, background .16s ease; }.shutter:active span { transform: scale(.9); background: var(--lime); }.flip-button { width: 49px; height: 49px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); }.flip-button svg { width: 21px; }.control-caption { position: absolute; bottom: calc(11px + env(safe-area-inset-bottom)); color: rgba(255,255,255,.62); font-size: 9px; }.gallery-caption { left: 67px; transform: translateX(-50%); }.demo-caption { right: 67px; transform: translateX(50%); }

.processing-view { overflow: hidden; }.processing-view > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(6px); transform: scale(1.04); opacity: .45; }.processing-overlay { position: absolute; inset: 0; background: rgba(2,4,3,.74); backdrop-filter: blur(3px); }.processing-close { position: absolute; z-index: 2; top: calc(14px + env(safe-area-inset-top)); left: 15px; }.ai-loader { position: absolute; z-index: 2; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px; text-align: center; }.loader-ring { position: relative; width: 125px; height: 125px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--lime), rgba(168,230,43,.06) 45%, rgba(168,230,43,.2)); animation: spin 1.2s linear infinite; box-shadow: 0 0 55px rgba(168,230,43,.12); }.loader-ring::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: #080b08; }.loader-ring span { position: relative; z-index: 2; width: 65px; height: 65px; display: grid; place-items: center; border: 1px solid rgba(168,230,43,.3); border-radius: 21px; background: rgba(168,230,43,.07); animation: counterSpin 1.2s linear infinite; }.loader-ring svg { width: 31px; height: 31px; color: var(--lime); stroke-width: 1.5; }@keyframes spin{to{transform:rotate(360deg)}}@keyframes counterSpin{to{transform:rotate(-360deg)}}.ai-loader h2 { margin: 26px 0 7px; font: 800 23px/1 "Manrope", sans-serif; }.ai-loader p { width: 220px; min-height: 34px; margin: 0; color: #b6bcb3; font-size: 11px; line-height: 1.5; }.scan-steps { display: flex; gap: 5px; margin-top: 18px; }.scan-steps span { width: 5px; height: 5px; border-radius: 5px; background: rgba(255,255,255,.2); }.scan-steps span.active { width: 20px; background: var(--lime); animation: stepPulse 1.3s ease-in-out infinite; }@keyframes stepPulse{50%{opacity:.45}}

.result-view { overflow-y: auto; background: #f4f5f2; color: #141713; }.result-photo-wrap { position: relative; height: 43vh; min-height: 300px; max-height: 430px; background: #222; }.result-photo-wrap img { width: 100%; height: 100%; object-fit: cover; }.result-photo-wrap button { position: absolute; top: calc(14px + env(safe-area-inset-top)); left: 15px; }.result-sheet { position: relative; min-height: 57vh; margin-top: -22px; padding: 13px 22px calc(30px + env(safe-area-inset-bottom)); border-radius: 28px 28px 0 0; background: #f7f8f5; box-shadow: 0 -12px 40px rgba(0,0,0,.15); text-align: center; }.sheet-handle { width: 38px; height: 4px; margin: 0 auto 13px; border-radius: 5px; background: #d1d4cf; }.saved-label { display: inline-flex; align-items: center; gap: 5px; color: #63a40a; font-size: 11px; font-weight: 700; }.saved-label svg { width: 16px; height: 16px; stroke-width: 2.5; }.result-sheet h2 { margin: 8px 0 5px; font: 800 25px/1 "Manrope", sans-serif; letter-spacing: -.04em; }.result-sheet > p { margin: 0 auto; max-width: 330px; color: #444943; font-size: 11px; line-height: 1.45; }.result-metrics { display: grid; grid-template-columns: repeat(4,1fr); margin-top: 18px; padding: 17px 0; border-top: 1px solid #e1e3df; border-bottom: 1px solid #e1e3df; }.result-metric + .result-metric { border-left: 1px solid #e3e5e1; }.result-metric strong { display: block; color: #11140f; font: 800 17px/1 "Manrope", sans-serif; }.result-metric span { display: block; margin-top: 5px; color: #777c75; font-size: 9px; }.result-details { display: grid; gap: 10px; margin: 13px 0; text-align: left; }.result-details > div { display: flex; align-items: center; justify-content: space-between; padding: 0 3px; font-size: 10px; }.result-details span { color: #777c75; }.result-details strong { color: #30342e; }.done-button { width: 100%; padding: 14px; border: 0; border-radius: 15px; background: #a8e62b; color: #11170a; font: 800 13px/1 "Manrope", sans-serif; cursor: pointer; }.result-sheet .result-disclaimer { margin-top: 10px; color: #9b9f99; font-size: 8px; }

.toast { position: absolute; z-index: 90; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom)); width: max-content; max-width: calc(100% - 40px); padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 14px; background: rgba(24,29,24,.95); color: #eef1ec; font-size: 11px; box-shadow: 0 14px 30px rgba(0,0,0,.3); opacity: 0; transform: translate(-50%, 10px); pointer-events: none; transition: opacity .2s ease, transform .2s ease; }.toast.visible { opacity: 1; transform: translate(-50%,0); }

/* Keep the result proportion close to the reference: image-led, compact sheet. */
.result-photo-wrap { height: 50vh; min-height: 340px; max-height: 470px; }
.result-sheet { min-height: 50vh; }

@media (min-width: 560px) {
  body { padding: 24px 0; }
  .phone-shell { min-height: calc(100dvh - 48px); height: calc(100dvh - 48px); border: 1px solid rgba(255,255,255,.1); border-radius: 38px; }
  .view { min-height: 100%; }
  .capture-view, .processing-view, .result-view { min-height: 100%; border-radius: 37px; }
  .bottom-nav { position: absolute; }
}

@media (max-width: 370px) {
  .view { padding-left: 15px; padding-right: 15px; }.daily-summary { padding-left: 17px; padding-right: 17px; }.summary-top > div:first-child > strong { font-size: 40px; }.progress-ring { width: 90px; height: 90px; }.entry { grid-template-columns: 58px 1fr auto; }.entry-photo { width: 58px; height: 58px; }
}

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