:root { color-scheme: light; }
* { box-sizing: border-box; }
body { margin: 0; background: #F9F8F6; color: #18181B; font: 16px/1.65 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
main { max-width: 68ch; margin: 0 auto; padding: 24px 16px 64px; }
a { color: #064E3B; text-underline-offset: 3px; }
a:focus-visible { outline: 3px solid #047857; outline-offset: 2px; border-radius: 4px; }
.back { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
h1 { font-size: 1.9rem; line-height: 1.15; margin: 8px 0 4px; letter-spacing: -0.02em; }
h2 { font-size: 1.15rem; margin: 28px 0 6px; }
.updated { color: #52525B; font-size: 0.9rem; margin: 0 0 20px; }
p, li { color: #27272A; }
ul { padding-left: 1.2em; }
.note { background: #FEF3C7; border: 1px solid #FCD34D; border-radius: 10px; padding: 12px 14px; color: #451A03; }
.small { font-size: 0.9rem; color: #52525B; }
.facts { list-style: none; padding: 0; display: grid; gap: 6px; }
.facts li { background: #fff; border: 1px solid #E4E4E7; border-radius: 10px; padding: 10px 14px; }
.meal { background: #fff; border: 1px solid #E4E4E7; border-radius: 10px; padding: 4px 18px 10px; margin: 14px 0; }
.meal h3 { margin: 14px 0 2px; font-size: 1.1rem; }
.meta { color: #52525B; font-size: 0.9rem; margin: 0 0 8px; }
.label { font-weight: 700; margin: 10px 0 2px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; color: #3F3F46; }
.list { list-style: none; padding: 0; margin: 0; }
.list li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid #E4E4E7; }
.list em { color: #52525B; font-style: normal; font-size: 0.9rem; }
.total { display: flex; justify-content: space-between; font-weight: 800; font-size: 1.1rem; border-top: 2px solid #18181B; padding-top: 8px; }
.cta { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 999px; background: #064E3B; color: #fff; font-weight: 800; text-decoration: none; }
.cta:hover { background: #065F46; }
.others li { margin: 4px 0; }

/* Follow the phone's dark setting (same palette as the app's dark mode). */
@media (prefers-color-scheme: dark) {
  :root { color-scheme: dark; }
  body { background: #0F1412; color: #F2F5F4; }
  p, li { color: #E1E8E5; }
  a { color: #6EE7B7; }
  a:focus-visible { outline-color: #6EE7B7; }
  .updated, .small, .meta, .list em { color: #A3AFAA; }
  .label { color: #CCD5D1; }
  .note { background: #2A2210; border-color: #7A6220; color: #FDE68A; }
  .facts li, .meal { background: #18201D; border-color: #2A3430; }
  .list li { border-bottom-color: #2A3430; }
  .total { border-top-color: #F2F5F4; }
  .cta { background: #34D399; color: #0F1412; }
  .cta:hover { background: #6EE7B7; }
}
