:root {
  --bg: #08111f;
  --card: rgba(255,255,255,.10);
  --card-strong: rgba(255,255,255,.16);
  --text: #f8fafc;
  --muted: #cbd5e1;
  --soft: #94a3b8;
  --accent: #f97316;
  --accent2: #22c55e;
  --line: rgba(255,255,255,.14);
  --shadow: 0 24px 60px rgba(0,0,0,.35);
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  min-height: 100svh;
  background:
    radial-gradient(circle at top left, rgba(249,115,22,.38), transparent 34rem),
    radial-gradient(circle at 110% 10%, rgba(34,197,94,.24), transparent 28rem),
    linear-gradient(145deg, #08111f 0%, #0f172a 48%, #111827 100%);
}
button, input { font: inherit; }
a { color: inherit; }
.app-shell { max-width: 860px; margin: 0 auto; padding: max(18px, env(safe-area-inset-top)) 16px max(28px, env(safe-area-inset-bottom)); }
.hero { display:flex; justify-content:space-between; gap:16px; align-items:flex-start; padding: 18px 2px 14px; }
.eyebrow { color:#fed7aa; text-transform:uppercase; letter-spacing:.16em; font-size:11px; font-weight:800; margin:0 0 6px; }
h1 { font-size: clamp(36px, 11vw, 64px); line-height:.9; letter-spacing:-.065em; margin:0; }
.subhead { margin:10px 0 0; color:var(--muted); font-weight:650; }
.score-card { min-width:84px; padding:12px 14px; text-align:center; border:1px solid var(--line); border-radius:24px; background:var(--card); box-shadow:var(--shadow); backdrop-filter: blur(18px); color:var(--muted); font-size:12px; text-transform:uppercase; letter-spacing:.08em; }
.score-card span { display:block; font-size:32px; color:white; line-height:1; font-weight:900; letter-spacing:-.05em; }
.tabs { position: sticky; top: env(safe-area-inset-top); z-index:5; display:grid; grid-template-columns:repeat(4,1fr); gap:8px; padding:8px; margin:8px 0 18px; border:1px solid var(--line); background:rgba(8,17,31,.78); border-radius:999px; backdrop-filter: blur(18px); }
.tab { border:0; color:var(--muted); background:transparent; border-radius:999px; padding:10px 8px; font-weight:800; }
.tab.active { color:#111827; background:linear-gradient(135deg,#fff7ed,#fdba74); box-shadow:0 8px 24px rgba(249,115,22,.25); }
.view { display:none; animation: fade .22s ease-out; }
.view.active { display:block; }
@keyframes fade { from{opacity:0; transform:translateY(4px)} to{opacity:1; transform:none} }
.card { overflow:hidden; border:1px solid var(--line); background:var(--card); border-radius:30px; box-shadow:var(--shadow); backdrop-filter: blur(22px); margin-bottom:14px; }
.photo { min-height: 215px; background-size:cover; background-position:center; position:relative; }
.photo::after { content:""; position:absolute; inset:0; background:linear-gradient(to top,rgba(8,17,31,.86),rgba(8,17,31,.05)); }
.photo-label { position:absolute; z-index:1; left:18px; right:18px; bottom:16px; }
.day { display:inline-flex; gap:6px; align-items:center; color:#ffedd5; background:rgba(15,23,42,.58); border:1px solid rgba(255,255,255,.18); padding:7px 10px; border-radius:999px; font-size:13px; font-weight:800; backdrop-filter:blur(12px); }
h2 { margin:10px 0 0; font-size:30px; line-height:1; letter-spacing:-.045em; }
.card-body { padding:18px; }
.meal-row { display:grid; grid-template-columns:92px 1fr; gap:10px; padding:12px 0; border-bottom:1px solid var(--line); }
.meal-row:last-child { border-bottom:0; }
.meal-row b { color:#fed7aa; font-size:13px; text-transform:uppercase; letter-spacing:.08em; }
.meal-row span { color:#f8fafc; font-weight:650; }
.cta { display:flex; align-items:center; justify-content:center; width:100%; margin-top:14px; padding:14px 16px; border-radius:18px; color:#111827; background:linear-gradient(135deg,#86efac,#fef3c7); text-decoration:none; font-weight:900; }
.week-grid { display:grid; gap:14px; }
.week-card { display:grid; grid-template-columns:112px 1fr; min-height:120px; }
.week-card .thumb { background-size:cover; background-position:center; }
.week-card .mini { padding:14px; }
.week-card h3 { margin:0 0 6px; font-size:18px; letter-spacing:-.02em; }
.week-card p { margin:0; color:var(--muted); font-size:14px; line-height:1.35; }
.pill { display:inline-flex; color:#bbf7d0; border:1px solid rgba(34,197,94,.3); background:rgba(34,197,94,.12); border-radius:999px; padding:5px 8px; font-size:12px; font-weight:800; margin-bottom:8px; }
.section-title { margin:22px 4px 10px; font-size:22px; letter-spacing:-.035em; }
.check-list { display:grid; gap:9px; }
.check { display:flex; gap:10px; align-items:flex-start; padding:13px; border:1px solid var(--line); background:rgba(255,255,255,.08); border-radius:18px; color:var(--muted); }
.check input { width:22px; height:22px; accent-color:var(--accent2); flex:0 0 auto; }
.check span { line-height:1.25; }
.check input:checked + span { text-decoration:line-through; color:var(--soft); }
.note { color:var(--muted); background:rgba(255,255,255,.08); border:1px solid var(--line); border-radius:22px; padding:14px; line-height:1.45; }
.updated { text-align:center; color:var(--soft); font-size:12px; margin:20px 0 4px; }
@media (min-width:700px) { .week-grid { grid-template-columns: repeat(2, 1fr); } .photo { min-height: 300px; } }
