:root {
  --ink: #174b50;
  --ink-2: #24666a;
  --paper: #f8f5f8;
  --surface: #fffefe;
  --surface-2: #f0edf3;
  --lime: #a8e5dc;
  --lime-deep: #168d84;
  --coral: #f27964;
  --plum: #76529c;
  --blue: #5d91a5;
  --yellow: #f1c76d;
  --muted: #657578;
  --line: #dedce2;
  --shadow: 0 24px 70px rgba(36, 71, 75, .17);
  --display: Georgia, 'Times New Roman', serif;
  --body: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { color-scheme: light; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background: #dbe6e7;
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

button, input, textarea, select { font: inherit; }
button { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { border: 0; cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, a:focus-visible {
  outline: 3px solid #8f60b4;
  outline-offset: 3px;
}

svg { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
[hidden] { display: none !important; }

.skip-link { position: fixed; left: 12px; top: -60px; z-index: 100; background: #fff; color: var(--ink); padding: 12px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }

.experience {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(340px, 1fr) minmax(480px, .95fr);
  overflow: hidden;
}

.story-panel {
  position: relative;
  min-height: 100vh;
  padding: clamp(32px, 5vw, 76px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #eef3df;
  background:
    radial-gradient(circle at 75% 25%, rgba(95, 220, 201, .18), transparent 28%),
    linear-gradient(145deg, #4d3565 0%, #285d6c 54%, #176d70 100%);
}

.story-panel::before {
  content: "";
  position: absolute;
  inset: auto -12vw -20vw auto;
  width: 42vw;
  height: 42vw;
  min-width: 460px;
  min-height: 460px;
  border: 1px solid rgba(238, 243, 223, .14);
  border-radius: 50%;
  box-shadow: 0 0 0 5vw rgba(238, 243, 223, .03), 0 0 0 10vw rgba(238, 243, 223, .025);
}

.brand-lockup { position: relative; z-index: 1; display: inline-block; width: fit-content; text-decoration: none; }
.brand-lockup img { display: block; width: clamp(210px, 20vw, 290px); height: auto; border-radius: 13px; box-shadow: 0 16px 38px rgba(23, 37, 51, .22); }
.story-copy { position: relative; z-index: 1; max-width: 620px; margin-top: auto; margin-bottom: auto; padding: 60px 0; }
.eyebrow, .date-label { margin: 0 0 7px; color: var(--lime-deep); font-size: 10px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.story-copy .eyebrow { color: var(--lime); font-size: 12px; }
.story-copy h1 { margin: 18px 0 28px; font: 400 clamp(52px, 7vw, 94px)/.92 var(--display); letter-spacing: -.055em; }
.story-copy h1 em { color: var(--lime); font-weight: 400; }
.story-copy > p:not(.eyebrow) { max-width: 530px; color: rgba(255,255,255,.72); font-size: clamp(17px, 1.7vw, 23px); line-height: 1.5; }
.proof-row { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 36px; }
.proof-row span { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.88); font-size: 13px; font-weight: 650; }
.proof-row svg { color: var(--lime); }
.story-note { position: relative; z-index: 1; margin: 0; color: rgba(255,255,255,.48); font-size: 12px; }

.phone-stage { display: grid; place-items: center; min-height: 100vh; padding: 22px; background: #e7eeee; }

.phone-shell {
  position: relative;
  width: min(440px, 100%);
  height: min(900px, calc(100vh - 44px));
  min-height: 660px;
  overflow: hidden;
  border: 8px solid #173f46;
  border-radius: 45px;
  background: var(--paper);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255,255,255,.25);
}

.status-bar { height: 30px; padding: 9px 23px 0; display: flex; align-items: flex-start; justify-content: space-between; color: var(--ink); background: var(--paper); font-size: 10px; font-weight: 750; }
.status-bar div { display: flex; gap: 6px; font-size: 9px; }

.app-header { height: 61px; padding: 8px 20px 10px; display: flex; align-items: center; justify-content: space-between; background: rgba(248, 245, 248, .96); border-bottom: 1px solid rgba(23,75,80,.08); }
.mini-brand { display: flex; align-items: center; gap: 9px; padding: 0; background: none; font-size: 17px; font-weight: 800; letter-spacing: -.03em; }
.mini-brand img { width: 32px; height: 32px; object-fit: cover; border-radius: 9px; box-shadow: 0 3px 9px rgba(43, 78, 84, .12); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-button { position: relative; width: 34px; height: 34px; display: grid; place-items: center; background: transparent; border-radius: 50%; }
.notification-dot { position: absolute; top: 4px; right: 5px; width: 7px; height: 7px; background: var(--coral); border: 2px solid var(--paper); border-radius: 50%; }
.avatar { width: 33px; height: 33px; color: #fff; background: var(--plum); border-radius: 50%; font-size: 10px; font-weight: 800; letter-spacing: .04em; }

main { height: calc(100% - 169px); overflow-y: auto; overscroll-behavior: contain; scroll-behavior: smooth; scrollbar-width: none; }
main::-webkit-scrollbar { display: none; }
.screen { min-height: 100%; padding: 22px 20px 34px; animation: screenIn .25s ease-out; }
@keyframes screenIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

.screen-intro { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.screen-intro.compact { align-items: center; }
.screen-intro h2, .coach-header h2 { margin: 0; font: 400 29px/1.02 var(--display); letter-spacing: -.035em; }
.date-label { color: #718078; font-size: 9px; }
.effort-pill, .range-pill { display: flex; align-items: center; gap: 6px; min-height: 32px; padding: 6px 8px 6px 10px; background: #edf1df; border: 1px solid #dae2c3; border-radius: 999px; font-size: 11px; font-weight: 700; }
.effort-pill > span { width: 7px; height: 7px; background: var(--lime-deep); border-radius: 50%; }
.effort-pill svg, .range-pill svg { width: 13px; transform: rotate(90deg); }

.check-in-block { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.personal-path-banner { margin: -4px 0 16px; padding: 11px 12px; display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 10px; background: #e3efd5; border-left: 3px solid var(--lime-deep); border-radius: 0 12px 3px 0; }
.personal-path-banner > span { width: 31px; height: 31px; display: grid; place-items: center; color: var(--lime); background: var(--ink); border-radius: 50%; }.personal-path-banner svg { width: 14px; }
.personal-path-banner > div { min-width: 0; display: flex; flex-direction: column; }.personal-path-banner small { color: #657663; font-size: 6px; font-weight: 850; letter-spacing: .1em; }.personal-path-banner strong { margin: 3px 0 2px; overflow: hidden; font: 400 12px var(--display); white-space: nowrap; text-overflow: ellipsis; }.personal-path-banner p { margin: 0; overflow: hidden; color: #728071; font-size: 7px; white-space: nowrap; text-overflow: ellipsis; }
.personal-path-banner a { padding: 6px 8px; color: var(--ink); border: 1px solid #aabd9d; border-radius: 999px; font-size: 7px; font-weight: 850; text-decoration: none; }
.check-in-block > p { margin: 0; color: var(--muted); font-size: 12px; font-weight: 600; }
.mood-options { display: flex; padding: 2px; background: #ece9de; border-radius: 999px; }
.mood-options button { min-height: 28px; padding: 4px 9px; color: #7b837d; background: transparent; border-radius: 999px; font-size: 10px; font-weight: 650; }
.mood-options button span { display: none; }
.mood-options button.selected { color: var(--ink); background: #fff; box-shadow: 0 2px 6px rgba(22,52,44,.08); }

.next-card { position: relative; height: 240px; overflow: hidden; margin-bottom: 24px; color: white; background: #314e40; border-radius: 22px 5px 22px 5px; box-shadow: 0 13px 24px rgba(34, 58, 45, .14); }
.next-card > img { width: 100%; height: 100%; object-fit: cover; }
.image-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,41,34,.92) 0%, rgba(15,41,34,.7) 45%, rgba(15,41,34,.08) 100%); }
.next-content { position: absolute; inset: 0; width: 69%; padding: 27px 0 22px 22px; display: flex; flex-direction: column; align-items: flex-start; }
.next-label { display: flex; align-items: center; gap: 6px; color: var(--lime); font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.next-label svg { width: 13px; }
.next-content h3 { margin: auto 0 6px; font: 400 25px/1.02 var(--display); letter-spacing: -.025em; }
.next-content p { margin: 0 0 15px; color: rgba(255,255,255,.72); font-size: 11px; line-height: 1.4; }
.next-actions { display: flex; gap: 7px; }
.primary-light, .glass-button { min-height: 34px; padding: 7px 13px; border-radius: 999px; font-size: 10px; font-weight: 800; }
.primary-light { color: var(--ink); background: var(--lime); }
.glass-button { display: flex; align-items: center; gap: 5px; color: white; background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(8px); }
.glass-button svg { width: 13px; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-heading h3 { margin: 0; font: 400 20px/1.1 var(--display); letter-spacing: -.02em; }
.section-heading .eyebrow { margin-bottom: 3px; font-size: 8px; }
.text-button { padding: 2px; color: var(--ink-2); background: transparent; font-size: 10px; font-weight: 800; text-decoration: underline; text-decoration-color: #b7c8b9; text-underline-offset: 3px; }

.balance-section { margin-bottom: 25px; }
.metric-strip { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: 4px 16px 4px 16px; }
.metric { min-width: 0; padding: 12px 8px; display: flex; align-items: center; gap: 7px; text-align: left; background: transparent; border-right: 1px solid var(--line); }
.metric:last-child { border: 0; }
.metric > span:last-child { min-width: 0; display: flex; flex-direction: column; }
.metric strong { font-size: 11px; line-height: 1; }
.metric small { margin-top: 4px; overflow: hidden; color: #7d8983; font-size: 7px; white-space: nowrap; text-overflow: ellipsis; }
.ring { position: relative; flex: 0 0 auto; width: 33px; height: 33px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--ring-color) calc(var(--progress) * 1%), #e4e5dc 0); }
.ring::after { content: ""; position: absolute; inset: 4px; background: var(--surface); border-radius: 50%; }
.ring svg { position: relative; z-index: 1; width: 13px; color: var(--ring-color); }
.ring-energy { --ring-color: var(--coral); }
.ring-water { --ring-color: var(--blue); }
.ring-move { --ring-color: var(--lime-deep); }

.medication-support-card { margin: 0 0 24px; padding: 15px; background: #eee7ef; border: 1px solid #dbcedd; border-radius: 17px 4px 17px 4px; }
.medication-card-head { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 9px; }
.medication-icon { width: 36px; height: 36px; display: grid; place-items: center; color: #fff; background: var(--plum); border-radius: 50%; }
.medication-icon svg { width: 17px; }
.medication-card-head .eyebrow { margin-bottom: 2px; color: #88677f; font-size: 7px; }
.medication-card-head h3 { margin: 0; font: 400 17px/1.1 var(--display); }
.privacy-badge { display: flex; align-items: center; gap: 4px; color: #745d70; font-size: 7px; font-weight: 750; }
.privacy-badge svg { width: 11px; }
.medication-summary { margin: 13px 0 11px; padding: 10px 0; display: flex; align-items: center; justify-content: space-between; gap: 9px; border-top: 1px solid #dacddd; border-bottom: 1px solid #dacddd; }
.medication-summary > div { min-width: 0; display: flex; flex-direction: column; }
.medication-summary small { color: #8a7787; font-size: 6px; font-weight: 800; letter-spacing: .08em; }
.medication-summary strong { margin: 3px 0; font-size: 10px; }
.medication-summary div span { overflow: hidden; color: #766d74; font-size: 7px; white-space: nowrap; text-overflow: ellipsis; }
.medication-status { flex: 0 0 auto; padding: 6px 8px; color: #4e674d; background: #e1ead1; border-radius: 999px; font-size: 7px; font-weight: 800; }
.medication-actions { display: flex; gap: 7px; }
.medication-actions button { min-height: 32px; padding: 7px 10px; color: #fff; background: var(--plum); border-radius: 999px; font-size: 8px; font-weight: 750; }
.medication-actions button:last-child { color: #674f62; background: transparent; border: 1px solid #b8a4b4; }
.medication-boundary { margin: 10px 0 0; color: #83787f; font-size: 7px; line-height: 1.4; }

.timeline-section { margin-bottom: 20px; }
.timeline-list { padding: 0 3px; }
.timeline-item { position: relative; width: 100%; min-height: 54px; padding: 5px 0; display: grid; grid-template-columns: 35px 26px 1fr auto; align-items: center; gap: 8px; text-align: left; background: transparent; }
.timeline-item:not(:last-child)::after { content: ""; position: absolute; left: 55px; top: 38px; bottom: -16px; width: 1px; background: #d2d6cc; }
.timeline-time { color: #87918b; font-size: 9px; }
.timeline-marker { position: relative; z-index: 1; width: 25px; height: 25px; display: grid; place-items: center; color: var(--muted); background: var(--surface); border: 1px solid #d8dcd2; border-radius: 50%; }
.timeline-marker svg { width: 12px; }
.timeline-item.done .timeline-marker { color: var(--ink); background: var(--lime); border-color: var(--lime); }
.timeline-item.active-item .timeline-marker { color: #fff; background: var(--blue); border-color: var(--blue); box-shadow: 0 0 0 4px rgba(95,141,163,.12); }
.timeline-copy { min-width: 0; display: flex; flex-direction: column; }
.timeline-copy strong { font-size: 11px; line-height: 1.2; }
.timeline-copy small { margin-top: 3px; overflow: hidden; color: #78847e; font-size: 9px; white-space: nowrap; text-overflow: ellipsis; }
.item-action { padding: 5px 10px; color: #315f70; background: #e6f0f3; border-radius: 999px; font-size: 9px; font-weight: 800; }
.row-chevron { width: 15px; color: #8d9690; }

.family-banner { width: 100%; min-height: 70px; margin-bottom: 20px; padding: 13px; display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px; text-align: left; background: #ece7da; border: 1px solid #dcd5c6; border-radius: 16px 3px 16px 3px; }
.family-icon { width: 40px; height: 40px; display: grid; place-items: center; color: #fff; background: var(--plum); border-radius: 13px; }
.family-banner > span:nth-child(2) { min-width: 0; display: flex; flex-direction: column; }
.family-banner small, .coach-nudge small, .household-card small, .restaurant-card small { color: #7a716f; font-size: 7px; font-weight: 850; letter-spacing: .12em; }
.family-banner strong { margin-top: 4px; font: 400 14px/1.2 var(--display); }

.coach-nudge { margin-bottom: 12px; padding: 16px; display: grid; grid-template-columns: 36px 1fr; gap: 12px; background: #e4edcd; border-left: 3px solid var(--lime-deep); }
.coach-orb, .large-coach-orb { display: grid; place-items: center; color: var(--lime); background: var(--ink); border-radius: 50% 50% 44% 56%; box-shadow: inset -5px -4px 10px rgba(0,0,0,.14); }
.coach-orb { width: 36px; height: 36px; }
.coach-nudge small { color: #63705c; }
.coach-nudge p { margin: 5px 0 10px; font-size: 11px; line-height: 1.45; }
.coach-nudge div div { display: flex; gap: 14px; }
.coach-nudge button { padding: 0; color: var(--ink); background: transparent; font-size: 9px; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }

/* Plan */
.round-add { width: 35px; height: 35px; display: grid; place-items: center; color: var(--lime); background: var(--ink); border-radius: 50%; }
.round-add svg { width: 16px; }
.pace-control { display: grid; grid-template-columns: repeat(4, 1fr); padding: 3px; background: #e6e5dc; border-radius: 10px; }
.pace-control button { min-height: 33px; color: #7a847f; background: transparent; border-radius: 8px; font-size: 10px; font-weight: 750; }
.pace-control button.active { color: var(--ink); background: #fff; box-shadow: 0 2px 7px rgba(19,48,40,.08); }
.pace-description { margin: 8px 0 16px; color: var(--muted); text-align: center; font-size: 9px; }
.week-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 18px; }
.week-strip button { min-height: 49px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; background: transparent; border-radius: 999px; }
.week-strip span { color: #8c948f; font-size: 8px; font-weight: 700; }
.week-strip b { font-size: 11px; }
.week-strip button.active { color: white; background: var(--ink); }
.week-strip button.active span { color: var(--lime); }
.plan-summary { margin-bottom: 23px; padding: 12px; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; background: #e8efd7; border: 1px solid #d7e0c0; }
.plan-summary > span { width: 34px; height: 34px; display: grid; place-items: center; color: var(--ink); background: var(--lime); border-radius: 50%; }
.plan-summary div { display: flex; flex-direction: column; }
.plan-summary strong { font-size: 10px; }
.plan-summary small { margin-top: 3px; color: #6a776f; font-size: 8px; }
.plan-summary button { width: 24px; height: 24px; color: #7b8780; background: transparent; border: 1px solid #abb6a8; border-radius: 50%; font: italic 13px var(--display); }
.meal-plan-list { margin-bottom: 22px; border-top: 1px solid var(--line); }
.meal-row { min-height: 81px; padding: 11px 0; display: grid; grid-template-columns: 58px 1fr 30px; align-items: center; gap: 11px; border-bottom: 1px solid var(--line); }
.meal-thumb { width: 58px; height: 58px; display: grid; place-items: center; overflow: hidden; background: #e5d7b8; border-radius: 14px 3px 14px 3px; font-size: 25px; }
.hero-thumb { background: url('assets/vitalyou-meal-hero.jpg') 69% 50%/cover; }
.dinner-thumb { background: #ead1c7; }
.meal-row > div:nth-child(2) { min-width: 0; display: flex; flex-direction: column; }
.meal-row small { color: #878f89; font-size: 7px; font-weight: 800; letter-spacing: .07em; }
.meal-row strong { margin: 4px 0 3px; font: 400 14px/1.15 var(--display); }
.meal-row div span { color: #7c8781; font-size: 8px; }
.meal-menu { width: 30px; height: 30px; display: grid; place-items: center; color: #718078; background: transparent; }
.meal-menu svg { width: 15px; }

.movement-plan-card { margin: 0 0 19px; padding: 16px; background: #e7eef0; border: 1px solid #d0dde0; border-radius: 18px 4px 18px 4px; }
.movement-plan-head { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 10px; }
.movement-plan-head > span { width: 38px; height: 38px; display: grid; place-items: center; color: #fff; background: var(--blue); border-radius: 50%; }
.movement-plan-head > span svg { width: 18px; }
.movement-plan-head .eyebrow { color: #55717e; }
.movement-plan-head h3 { margin-top: 3px; font: 400 15px/1.1 var(--display); }
.movement-plan-head em { padding: 5px 7px; color: #365b6b; background: rgba(255,255,255,.65); border-radius: 999px; font-size: 8px; font-style: normal; font-weight: 800; }
.movement-tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 12px 0 9px; }
.movement-tags span { padding: 4px 7px; color: #426370; background: rgba(255,255,255,.65); border: 1px solid rgba(73,107,119,.16); border-radius: 999px; font-size: 7px; font-weight: 800; }
.movement-plan-card > p { margin: 0 0 12px; color: #60747b; font-size: 9px; line-height: 1.45; }
.movement-plan-card > button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; color: #fff; background: #365f70; border-radius: 9px; font-size: 8px; font-weight: 800; }
.movement-plan-card > button svg { width: 14px; }
.movement-plan-card > small { display: block; margin-top: 8px; color: #75878d; font-size: 7px; }

.household-card { margin: 0 0 19px; padding: 18px; color: #f6f5e8; background: var(--ink); border-radius: 4px 22px 4px 22px; }
.light-heading { align-items: start; margin-bottom: 10px; }
.light-heading .eyebrow { color: var(--lime); }
.light-heading h3 { font-size: 21px; }
.light-heading > span { padding: 5px 8px; color: #dae7cf; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 999px; font-size: 8px; }
.household-card > p { margin: 0 0 14px; color: rgba(255,255,255,.61); font-size: 9px; line-height: 1.5; }
.family-plates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 15px; }
.family-plates > div { min-width: 0; padding: 8px 5px; display: grid; grid-template-columns: 25px 1fr; grid-template-rows: auto auto; column-gap: 6px; text-align: left; background: rgba(255,255,255,.06); }
.person-avatar { grid-row: 1 / 3; width: 25px; height: 25px; display: grid; place-items: center; color: var(--ink); border-radius: 50%; font-size: 8px; font-weight: 800; }
.person-avatar.olive { background: var(--lime); }.person-avatar.yellow { background: var(--yellow); }.person-avatar.coral { background: var(--coral); }
.family-plates small { color: rgba(255,255,255,.5); font-size: 6px; letter-spacing: 0; }
.family-plates strong { overflow: hidden; font-size: 7px; white-space: nowrap; text-overflow: ellipsis; }
.household-card > button { display: flex; align-items: center; gap: 6px; padding: 0; color: var(--lime); background: transparent; font-size: 9px; font-weight: 800; }
.household-card > button svg { width: 13px; }
.restaurant-card { width: 100%; min-height: 76px; padding: 13px; display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 11px; text-align: left; background: #f5eee5; border: 1px solid #e1d7ca; }
.restaurant-card > span:first-child { width: 42px; height: 42px; display: grid; place-items: center; color: #fff; background: var(--coral); border-radius: 50%; }
.restaurant-card > span:nth-child(2) { display: flex; flex-direction: column; }
.restaurant-card small { color: #a16555; }
.restaurant-card strong { margin: 3px 0; font: 400 14px var(--display); }
.restaurant-card em { color: #7b817c; font-size: 8px; font-style: normal; }

/* Log */
.log-types { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin: 8px 0 23px; }
.log-types button { min-height: 58px; padding: 5px 2px; display: flex; flex-direction: column; align-items: center; gap: 5px; color: #75817b; background: transparent; border: 1px solid transparent; border-radius: 12px; font-size: 8px; font-weight: 750; }
.log-types button span { width: 29px; height: 29px; display: grid; place-items: center; color: #75817b; background: #e8e6dc; border-radius: 50%; }
.log-types button svg { width: 14px; }
.log-types button.active { color: var(--ink); background: #fff; border-color: var(--line); box-shadow: 0 5px 15px rgba(26,60,51,.07); }
.log-types button.active span { color: var(--lime); background: var(--ink); }
.camera-card { position: relative; min-height: 248px; padding: 22px 20px 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: #e4f0ee; border: 1.5px dashed #91b9b3; border-radius: 22px 4px 22px 4px; }
.camera-orbit { width: 58px; height: 58px; margin-bottom: 12px; display: grid; place-items: center; color: var(--lime); background: var(--ink); border-radius: 50%; box-shadow: 0 0 0 8px rgba(23,63,53,.08); }
.camera-orbit svg { width: 25px; }
.camera-card strong { font: 400 20px var(--display); }
.camera-card > p { max-width: 280px; margin: 6px 0 13px; color: #63787a; font-size: 9px; line-height: 1.45; }
.camera-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; width: min(280px, 100%); }
.camera-actions button { min-height: 37px; padding: 7px 10px; display: flex; align-items: center; justify-content: center; gap: 6px; border-radius: 999px; font-size: 8px; font-weight: 800; }
.camera-actions button:first-child { color: #fff; background: var(--ink); }
.camera-actions button:last-child { color: var(--ink); background: var(--surface); border: 1px solid #a9c5c1; }
.camera-actions svg { width: 13px; }
.photo-capabilities { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; margin-top: 11px; }
.photo-capabilities span { padding: 4px 7px; color: #4f7476; background: rgba(255,255,255,.72); border-radius: 999px; font-size: 6px; font-weight: 800; letter-spacing: .03em; }
.confidence-note { margin-top: 9px; display: flex; align-items: flex-start; gap: 7px; color: #7b837e; font-size: 8px; line-height: 1.35; }
.confidence-note svg { flex: 0 0 auto; width: 12px; }
.or-divider { display: flex; align-items: center; margin: 18px 0 12px; color: #89918c; font-size: 8px; }
.or-divider::before, .or-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.or-divider span { padding: 0 10px; }
.quick-log-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.quick-log-grid button { min-height: 65px; padding: 11px; display: grid; grid-template-columns: 29px 1fr; align-items: center; gap: 8px; text-align: left; background: var(--surface); border: 1px solid var(--line); }
.quick-log-grid button > svg { width: 18px; color: var(--ink-2); }
.quick-log-grid button > span { display: flex; flex-direction: column; }
.quick-log-grid strong { font-size: 9px; }.quick-log-grid small { margin-top: 3px; color: #88908b; font-size: 7px; }
.recent-section { margin-top: 24px; }
.recent-row { width: 100%; min-height: 51px; padding: 5px 0; display: grid; grid-template-columns: 36px 1fr 27px; align-items: center; gap: 9px; text-align: left; background: transparent; border-bottom: 1px solid var(--line); }
.recent-emoji { width: 35px; height: 35px; display: grid; place-items: center; background: #e7e6db; border-radius: 8px; font-size: 18px; }
.recent-row > span:nth-child(2) { display: flex; flex-direction: column; }.recent-row strong { font-size: 9px; }.recent-row small { margin-top: 3px; color: #858d87; font-size: 7px; }
.recent-add { width: 25px; height: 25px; display: grid; place-items: center; color: var(--ink); background: #e3edca; border-radius: 50%; }.recent-add svg { width: 12px; }
.simple-panel { padding-top: 8px; }
.water-visual { height: 260px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #3e7184; background: #e2eef0; border-radius: 50% 50% 42% 58%; }
.water-visual svg { width: 62px; height: 62px; margin-bottom: 12px; }
.water-visual strong { font: 400 35px var(--display); }.water-visual small { margin-top: 5px; color: #648593; font-size: 10px; }
.amount-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 19px; }
.amount-grid button { min-height: 42px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; font-size: 9px; font-weight: 750; }
.manual-entry { padding: 23px; background: var(--surface); border: 1px solid var(--line); border-radius: 5px 22px; }
.manual-entry > label { display: block; margin-bottom: 13px; font: 400 19px var(--display); }
.manual-entry > div { display: grid; grid-template-columns: 1fr 68px; gap: 8px; }
.manual-entry input, .manual-entry select { min-width: 0; height: 50px; padding: 0 13px; color: var(--ink); background: #f1efe7; border: 1px solid #d8dad0; border-radius: 8px; }
.manual-entry input { font-size: 20px; font-weight: 700; }
.manual-entry > button, .primary-button { width: 100%; min-height: 43px; margin-top: 12px; color: white; background: var(--ink); border-radius: 999px; font-size: 10px; font-weight: 800; }
.device-connect { width: 100%; margin-top: 12px; padding: 14px; display: grid; grid-template-columns: 35px 1fr auto; align-items: center; gap: 10px; text-align: left; background: #e7eed8; }
.device-connect > svg:first-child { width: 23px; }.device-connect span { display: flex; flex-direction: column; }.device-connect strong { font-size: 10px; }.device-connect small { margin-top: 3px; color: #728074; font-size: 8px; }
.simple-panel > h3 { font: 400 22px var(--display); }
.feeling-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.feeling-grid button { min-height: 45px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; font-size: 10px; }
.feeling-grid button.selected { color: white; background: var(--ink); border-color: var(--ink); }
.simple-panel textarea { width: 100%; height: 100px; margin-top: 14px; padding: 13px; resize: vertical; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; font-size: 10px; }
.med-log-hero { position: relative; padding: 20px; background: #eee7ef; border: 1px solid #d9cbda; border-radius: 5px 22px; }
.med-log-hero .medication-icon { margin-bottom: 15px; }
.med-log-hero .eyebrow { margin-bottom: 4px; color: #86667d; }
.med-log-hero h3 { margin: 0; font: 400 25px var(--display); }
.med-log-hero > p:not(.eyebrow) { margin: 4px 0 0; color: #746a72; font-size: 9px; }
.med-due { position: absolute; top: 20px; right: 17px; padding: 6px 8px; color: #4d674f; background: #e0ead1; border-radius: 999px; font-size: 7px; font-weight: 800; }
.med-log-actions { margin-top: 13px; border-top: 1px solid var(--line); }
.med-log-actions button { width: 100%; min-height: 61px; padding: 10px 2px; display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 10px; text-align: left; background: transparent; border-bottom: 1px solid var(--line); }
.med-log-actions button > svg { width: 18px; color: var(--plum); }
.med-log-actions button > span { display: flex; flex-direction: column; }
.med-log-actions strong { font-size: 10px; }
.med-log-actions small { margin-top: 4px; color: #7c8781; font-size: 8px; }
.med-safety-note { margin-top: 15px; padding: 12px; display: grid; grid-template-columns: 21px 1fr; gap: 8px; color: #665c46; background: #f5efd9; border-left: 3px solid #c9a950; }
.med-safety-note svg { width: 16px; }
.med-safety-note p { margin: 0; font-size: 8px; line-height: 1.5; }
.medication-sheet-summary { margin-bottom: 13px; padding: 14px; display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 10px; background: #eee7ef; border: 1px solid #d9cbda; }
.medication-sheet-summary > span:first-child { width: 40px; height: 40px; display: grid; place-items: center; color: #fff; background: var(--plum); border-radius: 50%; }
.medication-sheet-summary > span:nth-child(2) { display: flex; flex-direction: column; }
.medication-sheet-summary strong { font-size: 11px; }
.medication-sheet-summary small { margin-top: 3px; color: #756b73; font-size: 8px; }
.medication-sheet-summary em { color: #4d674f; font-size: 8px; font-style: normal; font-weight: 800; }
.medication-form { display: grid; gap: 10px; }
.medication-form label { display: grid; gap: 5px; color: #5f6f67; font-size: 8px; font-weight: 750; }
.medication-form input, .medication-form select { width: 100%; min-height: 42px; padding: 0 11px; color: var(--ink); background: #f2f0e8; border: 1px solid #d7d9cf; border-radius: 8px; font-size: 10px; }
.source-warning { padding: 11px; color: #705c3c; background: #f5ecd0; border-left: 3px solid #c79d3f; font-size: 8px; line-height: 1.5; }
.symptom-groups { display: grid; gap: 14px; }
.symptom-group > strong { display: block; margin-bottom: 7px; font-size: 9px; }
.symptom-options { display: flex; flex-wrap: wrap; gap: 6px; }
.symptom-options button { padding: 7px 9px; color: #5a6b62; background: #f0efe7; border: 1px solid #d7d9d0; border-radius: 999px; font-size: 8px; }
.symptom-options button.selected { color: #fff; background: var(--plum); border-color: var(--plum); }
.urgent-safety { margin-top: 12px; padding: 12px; color: #713d35; background: #f7dfd9; border-left: 3px solid var(--coral); font-size: 8px; line-height: 1.5; }

/* Progress */
.health-record-card { margin-bottom: 18px; padding: 17px; background: var(--ink); color: #fff; border-radius: 4px 22px 4px 22px; }
.health-record-head { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 9px; }
.health-record-icon { width: 38px; height: 38px; display: grid; place-items: center; color: var(--ink); background: var(--lime); border-radius: 12px; }
.health-record-icon svg { width: 18px; }
.health-record-head .eyebrow { margin-bottom: 2px; color: var(--lime); font-size: 7px; }
.health-record-head h3 { margin: 0; font: 400 17px/1.1 var(--display); }
.connected-badge { display: flex; align-items: center; gap: 5px; padding: 5px 7px; color: #dce7d7; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.13); border-radius: 999px; font-size: 7px; font-weight: 750; }
.connected-badge > span { width: 6px; height: 6px; background: var(--lime); border-radius: 50%; }
.health-metrics { display: grid; grid-template-columns: repeat(3, 1fr); margin: 15px 0 11px; border-top: 1px solid rgba(255,255,255,.15); border-bottom: 1px solid rgba(255,255,255,.15); }
.health-metrics button { min-width: 0; padding: 12px 6px; display: flex; flex-direction: column; text-align: left; color: #fff; background: transparent; border-right: 1px solid rgba(255,255,255,.15); }
.health-metrics button:last-child { border-right: 0; }
.health-metrics small { overflow: hidden; color: rgba(255,255,255,.5); font-size: 6px; font-weight: 800; letter-spacing: .07em; white-space: nowrap; text-overflow: ellipsis; }
.health-metrics strong { margin: 5px 0 3px; font: 400 20px var(--display); }
.health-metrics strong span { font-size: 10px; }
.health-metrics em { color: var(--lime); font-size: 6px; font-style: normal; }
.record-provenance { display: grid; grid-template-columns: 15px 1fr; gap: 6px; color: rgba(255,255,255,.56); font-size: 7px; line-height: 1.4; }
.record-provenance svg { width: 12px; color: var(--lime); }
.health-record-actions { display: grid; grid-template-columns: 1.15fr 1fr auto; gap: 6px; margin-top: 13px; }
.health-record-actions button { min-height: 34px; padding: 7px 9px; display: flex; align-items: center; justify-content: center; gap: 5px; color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 999px; font-size: 7px; font-weight: 800; }
.health-record-actions button svg { width: 12px; }
.health-record-actions .primary-record-action { color: var(--ink); background: var(--lime); border-color: var(--lime); }
.health-record-actions button:last-child { padding-inline: 5px; background: transparent; border: 0; text-decoration: underline; text-underline-offset: 3px; }
.trend-card { margin-bottom: 24px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 5px 20px 5px 20px; }
.trend-head { display: flex; justify-content: space-between; }
.trend-head > div { display: flex; flex-direction: column; }
.trend-head small { color: #7b8680; font-size: 8px; font-weight: 800; letter-spacing: .1em; }.trend-head strong { margin: 4px 0 1px; font: 400 31px var(--display); }.trend-head strong span { font-size: 16px; }.trend-head p { margin: 0; color: #728079; font-size: 8px; }
.trend-badge { height: 25px; padding: 7px 9px; color: #375d3a; background: #e1eed0; border-radius: 999px; font-size: 8px; font-weight: 800; }
.chart-wrap { margin: 15px -4px 6px; }
.trend-chart { width: 100%; height: 145px; overflow: visible; }
.chart-grid { stroke: #e3e5dc; stroke-width: 1; stroke-dasharray: 3 5; }.chart-area { fill: rgba(140,175,85,.14); stroke: none; }.chart-line { fill: none; stroke: var(--lime-deep); stroke-width: 3; }.trend-chart circle { fill: var(--surface); stroke: var(--lime-deep); stroke-width: 3; }
.chart-labels { display: flex; justify-content: space-between; color: #8a938d; font-size: 7px; }
.trend-insight { margin-top: 14px; padding: 11px; display: grid; grid-template-columns: 25px 1fr; gap: 8px; background: #eff2e7; }
.trend-insight svg { color: var(--lime-deep); }.trend-insight p { margin: 0; color: #607068; font-size: 8px; line-height: 1.45; }
.accountability-card { margin-bottom: 22px; padding: 17px; background: #e9eedb; border: 1px solid #d4ddbd; border-radius: 18px 4px; }
.accountability-head { display: flex; align-items: start; justify-content: space-between; gap: 10px; }
.accountability-head .eyebrow { margin-bottom: 3px; }
.accountability-head h3 { margin: 0; font: 400 19px var(--display); }
.accountability-head > span { color: #5d6e60; font-size: 8px; }
.accountability-head > span strong { color: var(--ink); font: 400 19px var(--display); }
.accountability-progress { height: 6px; margin: 12px 0; overflow: hidden; background: #d4dcc7; border-radius: 99px; }
.accountability-progress span { display: block; width: 80%; height: 100%; background: var(--lime-deep); }
.accountability-items { display: flex; flex-wrap: wrap; gap: 6px; }
.accountability-items > span { padding: 6px 8px; display: flex; align-items: center; gap: 4px; color: #68766b; background: rgba(255,255,255,.55); border: 1px solid #d4dac9; border-radius: 999px; font-size: 7px; }
.accountability-items > span.complete { color: #3f6545; }
.accountability-items svg { width: 10px; }
.accountability-footer { margin-top: 14px; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid #ccd4bd; }
.accountability-person { display: flex; align-items: center; gap: 8px; }
.accountability-person > span:first-child { width: 29px; height: 29px; display: grid; place-items: center; color: #fff; background: var(--plum); border-radius: 50%; font-size: 7px; font-weight: 800; }
.accountability-person > span:last-child { display: flex; flex-direction: column; }
.accountability-person small { color: #7d877d; font-size: 6px; font-weight: 800; letter-spacing: .07em; }
.accountability-person strong { margin-top: 2px; font-size: 8px; }
.accountability-footer > button { min-height: 30px; padding: 6px 10px; color: #fff; background: var(--ink); border-radius: 999px; font-size: 8px; font-weight: 800; }
.share-summary-button { width: 100%; min-height: 34px; margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 6px; color: #496052; background: transparent; border: 1px solid #afbcaa; border-radius: 999px; font-size: 8px; font-weight: 750; }
.share-summary-button svg { width: 13px; }
.wins-section { margin-bottom: 20px; }
.wins-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wins-grid article { min-height: 126px; padding: 13px; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); }
.win-icon { width: 28px; height: 28px; margin-bottom: auto; display: grid; place-items: center; border-radius: 50%; }.win-icon svg { width: 14px; }.win-icon.leaf { color: #4d783f; background: #dfeccc; }.win-icon.moon { color: #665372; background: #e6dce8; }.win-icon.steps { color: #46768b; background: #d9e9ef; }.win-icon.heart { color: #a35444; background: #f2ddd8; }
.wins-grid strong { margin-top: 9px; font: 400 20px var(--display); }.wins-grid small { margin-top: 2px; color: #65736c; font-size: 8px; }.wins-grid em { margin-top: 7px; color: #4e7451; font-size: 7px; font-style: normal; font-weight: 700; }
.goal-card { padding: 18px; color: white; background: var(--plum); border-radius: 18px 4px; }
.goal-label { display: flex; justify-content: space-between; color: #eee0ed; font-size: 8px; font-weight: 800; letter-spacing: .08em; }.goal-card h3 { margin: 11px 0 15px; font: 400 20px/1.15 var(--display); }.goal-track { height: 6px; overflow: hidden; background: rgba(255,255,255,.18); border-radius: 99px; }.goal-track span { display: block; width: 68%; height: 100%; background: var(--lime); }.goal-card p { margin: 9px 0 0; color: rgba(255,255,255,.66); font-size: 8px; }

.result-review-banner { margin-bottom: 13px; padding: 12px; display: grid; grid-template-columns: 34px 1fr; gap: 9px; background: #e7eed8; }
.result-review-banner > span { width: 34px; height: 34px; display: grid; place-items: center; color: var(--ink); background: var(--lime); border-radius: 10px; }
.result-review-banner > div { min-width: 0; display: flex; flex-direction: column; }
.result-review-banner strong { overflow: hidden; font-size: 10px; white-space: nowrap; text-overflow: ellipsis; }
.result-review-banner small { margin-top: 3px; color: #6c786f; font-size: 8px; }
.result-list { display: grid; gap: 7px; }
.result-row { width: 100%; padding: 11px; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 8px; text-align: left; background: #f2f0e8; border: 1px solid #dedfd6; }
.result-row > span:first-child { min-width: 0; display: flex; flex-direction: column; }
.result-row strong { font-size: 9px; }
.result-row small { margin-top: 3px; color: #78827c; font-size: 7px; }
.result-row > b { font: 400 15px var(--display); }
.result-row > em { min-width: 46px; padding: 5px 6px; color: #705f3e; background: #eee2c6; border-radius: 999px; text-align: center; font-size: 7px; font-style: normal; font-weight: 800; }
.result-row.verified > em { color: #3d6743; background: #dcebcf; }
.result-summary { margin-top: 12px; padding: 12px; background: #eee7ef; border-left: 3px solid var(--plum); }
.result-summary strong { font-size: 9px; }
.result-summary p { margin: 5px 0 0; color: #6e626a; font-size: 8px; line-height: 1.5; }
.sheet-secondary { width: 100%; min-height: 38px; margin-top: 8px; color: #53655b; background: transparent; border: 1px solid #b8c1b8; border-radius: 999px; font-size: 8px; font-weight: 750; }
.sharing-scope { display: grid; gap: 7px; }
.sharing-row { width: 100%; min-height: 48px; padding: 9px 0; display: grid; grid-template-columns: 1fr 37px; align-items: center; text-align: left; background: transparent; border-bottom: 1px solid var(--line); }
.sharing-row > span:first-child { display: flex; flex-direction: column; }
.sharing-row strong { font-size: 9px; }
.sharing-row small { margin-top: 3px; color: #7d8781; font-size: 7px; }
.accountability-mode { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 14px; }
.accountability-mode button { min-height: 55px; padding: 8px 4px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; color: #68756e; background: #f0efe7; border: 1px solid #dedfd6; border-radius: 10px; font-size: 7px; }
.accountability-mode button.selected { color: #fff; background: var(--ink); border-color: var(--ink); }
.accountability-mode svg { width: 15px; }
.checkin-note { width: 100%; min-height: 90px; margin-top: 14px; padding: 12px; resize: vertical; color: var(--ink); background: #f2f0e8; border: 1px solid #d7d9cf; border-radius: 10px; font-size: 9px; line-height: 1.45; }

/* Coach */
.coach-screen { display: flex; flex-direction: column; }
.coach-header { display: grid; grid-template-columns: 48px 1fr; align-items: center; gap: 12px; }
.large-coach-orb { width: 48px; height: 48px; }.large-coach-orb svg { width: 23px; }
.safety-chip { align-self: flex-start; margin: 13px 0 22px; padding: 6px 9px; display: flex; align-items: center; gap: 6px; color: #5d7165; background: #e9ecdf; border-radius: 999px; font-size: 7px; font-weight: 700; }.safety-chip svg { width: 11px; }
.chat { display: flex; flex-direction: column; gap: 10px; }
.message { max-width: 85%; padding: 11px 13px 8px; font-size: 10px; line-height: 1.5; }
.message p { margin: 0; }.message time { display: block; margin-top: 5px; color: #86908a; font-size: 6px; }
.coach-message { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 3px 15px 15px 15px; }
.user-message { align-self: flex-end; color: #fff; background: var(--ink); border-radius: 15px 3px 15px 15px; }.user-message time { color: rgba(255,255,255,.5); text-align: right; }
.message-options { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }.message-options button { padding: 6px 8px; color: var(--ink); background: #ebf0df; border: 1px solid #d8e1c6; border-radius: 999px; font-size: 7px; font-weight: 700; }
.suggestion-chips { display: flex; gap: 6px; margin-top: auto; padding-top: 25px; overflow-x: auto; scrollbar-width: none; }.suggestion-chips button { flex: 0 0 auto; padding: 7px 9px; color: #596d62; background: transparent; border: 1px solid #bbc5bc; border-radius: 999px; font-size: 7px; }
.chat-composer { margin-top: 10px; padding: 5px; display: grid; grid-template-columns: 30px 1fr 33px; align-items: center; gap: 4px; background: #fff; border: 1px solid #cfd4cc; border-radius: 999px; }.chat-composer input { min-width: 0; height: 32px; border: 0; outline: 0; color: var(--ink); font-size: 9px; }.voice-button, .send-button { display: grid; place-items: center; border-radius: 50%; }.voice-button { color: #77827c; background: transparent; }.send-button { width: 32px; height: 32px; color: var(--lime); background: var(--ink); }.chat-composer svg { width: 14px; }
.coach-disclaimer { margin: 9px 5px 0; color: #8a918d; text-align: center; font-size: 6px; line-height: 1.4; }

/* Navigation and overlays */
.bottom-nav { position: absolute; z-index: 10; left: 0; right: 0; bottom: 0; height: 78px; padding: 8px 12px max(8px, env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; background: rgba(255,253,247,.97); border-top: 1px solid #d9ddd3; backdrop-filter: blur(15px); }
.bottom-nav > button { height: 53px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #7f8a84; background: transparent; font-size: 7px; font-weight: 700; }
.bottom-nav > button > svg { width: 19px; }
.bottom-nav > button.active { color: var(--ink); }.bottom-nav > button.active > svg { stroke-width: 2.4; }.bottom-nav > button.active span:last-child { font-weight: 850; }
.log-nav { position: relative; }.log-circle { width: 42px; height: 42px; margin-top: -24px; display: grid; place-items: center; color: var(--lime); background: var(--ink); border: 5px solid var(--surface); border-radius: 50%; box-shadow: 0 5px 12px rgba(23,63,53,.22); }.log-circle svg { width: 17px; }.log-nav.active .log-circle { color: var(--ink); background: var(--lime); }

.sheet-backdrop { position: absolute; z-index: 20; inset: 0; background: rgba(8,29,23,.46); backdrop-filter: blur(2px); }
.bottom-sheet { position: absolute; z-index: 21; left: 0; right: 0; bottom: 0; max-height: 84%; overflow-y: auto; padding: 11px 20px 28px; background: var(--surface); border-radius: 26px 26px 0 0; box-shadow: 0 -10px 40px rgba(18,48,40,.17); animation: sheetUp .22s ease-out; }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
.sheet-handle { width: 38px; height: 4px; margin: 0 auto 15px; background: #d2d5ce; border-radius: 99px; }
.sheet-close { position: absolute; top: 17px; right: 18px; width: 30px; height: 30px; display: grid; place-items: center; background: #eeeae1; border-radius: 50%; }.sheet-close svg { width: 13px; }
.sheet-copy h2 { margin: 4px 35px 7px 0; font: 400 26px/1.05 var(--display); }.sheet-copy > p { margin: 0 35px 18px 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.sheet-list { display: grid; gap: 8px; }.sheet-option { width: 100%; min-height: 58px; padding: 12px; display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 10px; text-align: left; background: #f2f1e9; border: 1px solid #e2e2d8; }.sheet-option > span:first-child { width: 38px; height: 38px; display: grid; place-items: center; background: #e3edce; border-radius: 10px; }.sheet-option > span:nth-child(2) { display: flex; flex-direction: column; }.sheet-option strong { font-size: 10px; }.sheet-option small { margin-top: 3px; color: #78847e; font-size: 8px; }.sheet-option > em { color: #4b7650; font-size: 8px; font-style: normal; font-weight: 800; }
.sheet-primary { width: 100%; min-height: 44px; margin-top: 15px; color: #fff; background: var(--ink); border-radius: 999px; font-size: 10px; font-weight: 800; }
.reminder-row { width: 100%; min-height: 56px; padding: 10px 0; display: grid; grid-template-columns: 36px 1fr 37px; align-items: center; gap: 10px; text-align: left; background: transparent; border-bottom: 1px solid var(--line); }.reminder-row > span:first-child { width: 35px; height: 35px; display: grid; place-items: center; color: var(--ink); background: #e6ecd7; border-radius: 50%; }.reminder-row span:nth-child(2) { display: flex; flex-direction: column; }.reminder-row strong { font-size: 10px; }.reminder-row small { margin-top: 3px; color: #7a857f; font-size: 8px; }.toggle { width: 35px; height: 20px; padding: 2px; background: #ccd2cb; border-radius: 99px; }.toggle::after { content: ""; display: block; width: 16px; height: 16px; background: #fff; border-radius: 50%; transition: transform .2s; }.toggle.on { background: var(--ink-2); }.toggle.on::after { transform: translateX(15px); }
.profile-block { padding: 10px 0 16px; display: flex; align-items: center; gap: 12px; }.profile-block .avatar { width: 48px; height: 48px; }.profile-block div { display: flex; flex-direction: column; }.profile-block strong { font: 400 18px var(--display); }.profile-block small { color: #76817b; font-size: 8px; }
.menu-list button { width: 100%; min-height: 47px; padding: 0; display: flex; align-items: center; justify-content: space-between; background: transparent; border-bottom: 1px solid var(--line); font-size: 10px; font-weight: 650; }.menu-list svg { width: 14px; color: #8b938e; }
.restaurant-result { padding: 13px 0; border-bottom: 1px solid var(--line); }.restaurant-result > div:first-child { display: flex; justify-content: space-between; align-items: flex-start; }.restaurant-result h3 { margin: 0; font: 400 17px var(--display); }.fit-score { padding: 5px 7px; color: #3d6440; background: #e1edcf; border-radius: 999px; font-size: 7px; font-weight: 800; }.restaurant-result p { margin: 4px 0 8px; color: #77827c; font-size: 8px; }.restaurant-result ul { margin: 0; padding-left: 17px; color: #52635a; font-size: 8px; line-height: 1.7; }.uncertainty { display: flex; align-items: start; gap: 6px; margin-top: 12px; padding: 9px; color: #766a4a; background: #f5efd7; font-size: 7px; line-height: 1.4; }.uncertainty svg { flex: 0 0 auto; width: 12px; }
.food-photo-preview { min-height: 76px; padding: 8px; display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 10px; background: #eef3f2; border: 1px solid #d6e2e0; }
.food-photo-preview img { width: 64px; height: 60px; object-fit: cover; background: #dfe7e5; border-radius: 10px 3px 10px 3px; }
.food-photo-preview > span { min-width: 0; display: flex; flex-direction: column; }
.food-photo-preview strong { overflow: hidden; font-size: 9px; white-space: nowrap; text-overflow: ellipsis; }
.food-photo-preview small { margin-top: 4px; color: #708183; font-size: 7px; }
.photo-mode-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin: 11px 0; }
.photo-mode-tabs button { min-height: 50px; padding: 7px 3px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; color: #66787a; background: #f1eff2; border: 1px solid #dfdbe1; border-radius: 9px; font-size: 7px; font-weight: 800; }
.photo-mode-tabs button.selected { color: #fff; background: var(--ink); border-color: var(--ink); }
.photo-mode-tabs svg { width: 15px; }
.food-analysis-results { min-height: 178px; }
.analysis-summary { min-height: 58px; padding: 10px; display: grid; grid-template-columns: 35px 1fr; align-items: center; gap: 9px; background: #ede8f1; border-left: 3px solid var(--plum); }
.analysis-summary > span:first-child { width: 34px; height: 34px; display: grid; place-items: center; color: #fff; background: var(--plum); border-radius: 50%; }
.analysis-summary > span:first-child svg { width: 15px; }
.analysis-summary > span:nth-child(2) { display: grid; grid-template-columns: 1fr auto; }
.analysis-summary small { grid-column: 1 / 3; color: #7b6a82; font-size: 6px; font-weight: 850; letter-spacing: .08em; }
.analysis-summary strong { margin-top: 3px; font: 400 15px var(--display); }
.analysis-summary em { align-self: end; color: var(--plum); font-size: 7px; font-style: normal; font-weight: 800; }
.compact-analysis-list { margin-top: 7px; gap: 5px; }
.compact-analysis-list .sheet-option { min-height: 50px; padding: 8px; }
.compact-analysis-list .sheet-option > span:first-child { width: 32px; height: 32px; }
.calorie-estimate-card { min-height: 100px; padding: 15px; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; color: #fff; background: linear-gradient(135deg, #655080, #176d70); border-radius: 4px 18px 4px 18px; }
.calorie-estimate-card > div { display: flex; flex-direction: column; }
.calorie-estimate-card small { color: rgba(255,255,255,.65); font-size: 6px; font-weight: 850; letter-spacing: .1em; }
.calorie-estimate-card strong { margin-top: 6px; font: 400 28px var(--display); }
.calorie-estimate-card strong span { font: 700 9px var(--body); }
.calorie-estimate-card p { margin: 3px 0 0; color: rgba(255,255,255,.7); font-size: 7px; }
.calorie-estimate-card > em { padding: 5px 7px; color: #244e50; background: var(--lime); border-radius: 999px; font-size: 6px; font-style: normal; font-weight: 800; }
.macro-estimates { display: grid; grid-template-columns: repeat(3, 1fr); margin: 7px 0; border: 1px solid var(--line); }
.macro-estimates span { padding: 8px 4px; display: flex; flex-direction: column; text-align: center; border-right: 1px solid var(--line); }
.macro-estimates span:last-child { border-right: 0; }
.macro-estimates strong { font-size: 9px; }.macro-estimates small { margin-top: 2px; color: #7a8584; font-size: 6px; }
.portion-review { width: 100%; min-height: 48px; padding: 8px 10px; display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 8px; text-align: left; background: #f1f0eb; border: 1px solid #e1e0da; }
.portion-review > span:first-child { width: 29px; height: 29px; display: grid; place-items: center; color: var(--ink); background: var(--lime); border-radius: 50%; }.portion-review svg { width: 13px; }
.portion-review > span:nth-child(2) { display: flex; flex-direction: column; }.portion-review strong { font-size: 8px; }.portion-review small { margin-top: 2px; color: #7a8582; font-size: 6px; }.portion-review em { color: var(--ink-2); font-size: 7px; font-style: normal; font-weight: 800; }
.recipe-draft { padding: 12px; background: #f2f0ed; border: 1px solid #e1dfdc; }
.recipe-draft p { margin: 0 0 10px; display: flex; flex-direction: column; }.recipe-draft p:last-of-type { margin-bottom: 0; }.recipe-draft strong { font-size: 8px; }.recipe-draft span { margin-top: 3px; color: #687674; font-size: 7px; line-height: 1.45; }
.recipe-draft button { margin-top: 11px; padding: 7px 9px; display: flex; align-items: center; gap: 5px; color: var(--ink); background: var(--lime); border-radius: 999px; font-size: 7px; font-weight: 800; }.recipe-draft button svg { width: 11px; }
.photo-ai-boundary { margin-top: 12px; padding: 10px; display: grid; grid-template-columns: 17px 1fr; gap: 7px; color: #53686a; background: #e6f0ee; border-left: 3px solid var(--ink-2); font-size: 7px; line-height: 1.45; }.photo-ai-boundary svg { width: 14px; }
.pace-sheet button { width: 100%; padding: 13px 0; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 9px; text-align: left; background: transparent; border-bottom: 1px solid var(--line); }.pace-sheet button > span:first-child { width: 30px; height: 30px; display: grid; place-items: center; background: #e8ecd9; border-radius: 50%; font-size: 10px; font-weight: 800; }.pace-sheet button > span:nth-child(2) { display: flex; flex-direction: column; }.pace-sheet strong { font-size: 10px; }.pace-sheet small { margin-top: 3px; color: #78827d; font-size: 8px; }.pace-sheet button.selected > em { width: 19px; height: 19px; display: grid; place-items: center; color: #fff; background: var(--ink); border-radius: 50%; font-size: 9px; font-style: normal; }
.toast { position: absolute; z-index: 30; left: 50%; bottom: 94px; min-width: 200px; max-width: calc(100% - 40px); padding: 11px 15px; display: flex; align-items: center; justify-content: center; gap: 8px; color: #fff; background: #173f35; border-radius: 999px; box-shadow: 0 8px 24px rgba(13,41,33,.23); font-size: 9px; font-weight: 750; opacity: 0; pointer-events: none; transform: translate(-50%, 15px); transition: .25s ease; }.toast.show { opacity: 1; transform: translate(-50%, 0); }.toast svg { width: 13px; color: var(--lime); }

@media (max-width: 960px) {
  .experience { display: block; }
  .story-panel { display: none; }
  .phone-stage { padding: 0; min-height: 100dvh; background: var(--paper); }
  .phone-shell { width: 100%; height: 100dvh; min-height: 600px; border: 0; border-radius: 0; box-shadow: none; }
  main { height: calc(100% - 169px); }
}

@media (max-height: 720px) and (min-width: 961px) {
  .phone-shell { min-height: 640px; }
  .story-copy { padding: 20px 0; }
  .story-copy h1 { font-size: 58px; }
}

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