/* ==========================================================================
   FIVE STEPS TO FIT — Member App
   Shares The Better Body Club design system: warm ivory, deep charcoal,
   champagne gold, deep sage. Editorial, calm, premium.
   ========================================================================== */

:root {
  --ivory: #F8F4EC;
  --cream: #FCFAF5;
  --charcoal: #211E1A;
  --charcoal-soft: #2E2A25;
  --ink: #33302B;
  --ink-muted: #6B6459;
  --gold: #B3945C;
  --gold-soft: #C9B085;
  --gold-tint: #F1E9DA;
  --sage: #56624F;
  --sage-deep: #414C3C;
  --sage-tint: #E9EBE2;
  --taupe: #A69783;
  --taupe-tint: #EFE9DF;
  --line: #E4DCCE;
  --error: #9C4A38;
  --error-tint: #F3E4DF;
  --success: #4F6547;

  --font-serif: "Cormorant Garamond", "Georgia", serif;
  --font-sans: "Inter", "Segoe UI", -apple-system, sans-serif;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-card: 0 4px 24px rgba(33, 30, 26, 0.06);
  --shadow-lift: 0 16px 48px rgba(33, 30, 26, 0.12);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  --sidebar-w: 232px;
  --tabbar-h: 62px;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: inherit; }
ul[class], ol[class] { list-style: none; padding: 0; }
h1, h2, h3, h4 { line-height: 1.15; color: var(--charcoal); font-weight: 600; }
h1, h2 { font-family: var(--font-serif); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Layout ---------- */
.app { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  background: var(--charcoal);
  color: var(--ivory);
  padding: 28px 18px;
  position: fixed; inset: 0 auto 0 0;
  display: flex; flex-direction: column; gap: 6px;
  overflow-y: auto;
  z-index: 40;
}
.sidebar .brand {
  font-family: var(--font-serif);
  font-size: 1.35rem; color: var(--ivory);
  letter-spacing: 0.02em; margin-bottom: 4px;
}
.sidebar .brand small {
  display: block; font-family: var(--font-sans);
  font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold-soft); margin-top: 4px;
}
.sidebar .week-chip {
  margin: 10px 0 14px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 10px 12px; font-size: 0.8rem; color: var(--gold-tint);
}
.sidebar .week-chip b { color: var(--ivory); font-weight: 600; }
.nav-btn {
  display: flex; align-items: center; gap: 10px;
  width: 100%; text-align: left;
  padding: 9px 12px; border-radius: 10px;
  color: rgba(248,244,236,0.78); font-size: 0.92rem;
  transition: background 0.15s var(--ease-out), color 0.15s;
}
.nav-btn:hover { background: rgba(255,255,255,0.07); color: var(--ivory); }
.nav-btn.active { background: var(--sage-deep); color: var(--ivory); }
.nav-btn .ic { width: 18px; height: 18px; flex: none; opacity: 0.9; }
.nav-btn .due-dot {
  margin-left: auto; width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold); flex: none;
}
.sidebar .side-foot { margin-top: auto; font-size: 0.7rem; color: rgba(248,244,236,0.45); padding-top: 18px; }

.main {
  flex: 1; margin-left: var(--sidebar-w);
  padding: 34px clamp(18px, 4vw, 48px) 90px;
  max-width: calc(940px + var(--sidebar-w));
}
.view { display: none; animation: fadeup 0.35s var(--ease-out); }
.view.active { display: block; }
@keyframes fadeup { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.view-head { margin-bottom: 22px; }
.view-head .eyebrow {
  font-size: 0.68rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: 6px;
}
.view-head h1 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
.view-head .sub { color: var(--ink-muted); font-size: 0.95rem; margin-top: 6px; max-width: 60ch; }

/* ---------- Mobile ---------- */
.tabbar { display: none; }
.mobile-head { display: none; }
@media (max-width: 860px) {
  .sidebar { display: none; }
  .main { margin-left: 0; padding: 16px 16px calc(var(--tabbar-h) + 84px); }
  .mobile-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px; background: var(--charcoal); color: var(--ivory);
    position: sticky; top: 0; z-index: 40; margin: -16px -16px 18px;
  }
  .mobile-head .brand { font-family: var(--font-serif); font-size: 1.1rem; }
  .mobile-head .week-pill {
    font-size: 0.72rem; color: var(--gold-tint);
    border: 1px solid rgba(255,255,255,0.2); border-radius: 999px; padding: 4px 10px;
  }
  .tabbar {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0;
    height: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: var(--charcoal); z-index: 50;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .tabbar button {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; color: rgba(248,244,236,0.6); font-size: 0.62rem; letter-spacing: 0.04em;
    position: relative;
  }
  .tabbar button.active { color: var(--gold-soft); }
  .tabbar .ic { width: 21px; height: 21px; }
  .tabbar .due-dot {
    position: absolute; top: 8px; right: calc(50% - 16px);
    width: 7px; height: 7px; border-radius: 50%; background: var(--gold);
  }
}

/* ---------- Cards & primitives ---------- */
.card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 22px;
  margin-bottom: 18px;
}
.card h2 { font-size: 1.35rem; margin-bottom: 10px; }
.card h3 { font-size: 1.02rem; margin-bottom: 8px; }
.card .muted, .muted { color: var(--ink-muted); }
.small { font-size: 0.84rem; }
.tiny { font-size: 0.74rem; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 720px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--charcoal); color: var(--ivory);
  border-radius: 999px; padding: 11px 22px;
  font-size: 0.92rem; font-weight: 500; letter-spacing: 0.02em;
  transition: transform 0.15s var(--ease-out), box-shadow 0.15s, background 0.15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-lift); }
.btn.gold { background: var(--gold); color: var(--charcoal); }
.btn.sage { background: var(--sage-deep); }
.btn.ghost {
  background: transparent; color: var(--charcoal);
  border: 1px solid var(--line);
}
.btn.ghost:hover { border-color: var(--gold); box-shadow: none; }
.btn.sm { padding: 7px 14px; font-size: 0.8rem; }
.btn.block { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: default; transform: none; box-shadow: none; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--sage-tint); color: var(--sage-deep);
  border-radius: 999px; padding: 4px 11px;
}
.chip.gold { background: var(--gold-tint); color: var(--gold); }
.chip.warn { background: var(--error-tint); color: var(--error); }
.chip.done { background: var(--sage-deep); color: var(--ivory); }

/* ---------- Forms ---------- */
.field { margin-bottom: 15px; }
.field label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--charcoal); margin-bottom: 5px; }
.field .hint { font-size: 0.74rem; color: var(--ink-muted); margin-top: 4px; }
.field input[type="text"], .field input[type="number"], .field input[type="date"],
.field input[type="time"], .field input[type="email"], .field select, .field textarea {
  width: 100%; background: #fff; border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 12px; font-size: 0.95rem;
}
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(179,148,92,0.16);
}
.seg {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.seg button {
  border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px; font-size: 0.86rem; background: #fff; color: var(--ink);
}
.seg button.on { background: var(--sage-deep); border-color: var(--sage-deep); color: var(--ivory); }
.check-row {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--line);
}
.check-row:last-child { border-bottom: none; }
.check-row input[type="checkbox"] { width: 19px; height: 19px; accent-color: var(--sage-deep); margin-top: 2px; flex: none; }

.scale-row { display: flex; gap: 6px; }
.scale-row button {
  width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; font-size: 0.88rem;
}
.scale-row button.on { background: var(--sage-deep); color: var(--ivory); border-color: var(--sage-deep); }

/* ---------- Today ---------- */
.hero-today {
  background: var(--charcoal);
  color: var(--ivory);
  border-radius: var(--radius-lg);
  padding: 26px;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}
.hero-today::after {
  content: ""; position: absolute; right: -60px; top: -60px;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(179,148,92,0.28), transparent 68%);
}
.hero-today .eyebrow { color: var(--gold-soft); font-size: 0.68rem; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 600; }
.hero-today h1 { color: var(--ivory); font-size: clamp(1.5rem, 3.2vw, 2rem); margin: 6px 0 4px; }
.hero-today .mantra { color: rgba(248,244,236,0.75); font-size: 0.92rem; font-style: italic; font-family: var(--font-serif); }
.hero-today .hero-cta { margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; position: relative; z-index: 1; }

.next-list .next-item {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 0; border-bottom: 1px solid var(--line);
}
.next-list .next-item:last-child { border-bottom: none; }
.next-item .n-ic {
  width: 38px; height: 38px; flex: none; border-radius: 12px;
  background: var(--sage-tint); color: var(--sage-deep);
  display: flex; align-items: center; justify-content: center;
}
.next-item .n-ic svg { width: 19px; height: 19px; }
.next-item.done .n-ic { background: var(--sage-deep); color: var(--ivory); }
.next-item .n-body { flex: 1; min-width: 0; }
.next-item .n-title { font-weight: 600; font-size: 0.94rem; color: var(--charcoal); }
.next-item.done .n-title { text-decoration: line-through; color: var(--ink-muted); }
.next-item .n-sub { font-size: 0.78rem; color: var(--ink-muted); }

.ring-row { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.ring { position: relative; width: 92px; height: 92px; flex: none; }
.ring svg { width: 92px; height: 92px; transform: rotate(-90deg); }
.ring .ring-label {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
}
.ring .ring-label b { font-size: 1.05rem; color: var(--charcoal); line-height: 1; }
.ring .ring-label span { font-size: 0.58rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); margin-top: 3px; }

.stat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.stat-tile {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px;
}
.stat-tile .st-label { font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); font-weight: 600; }
.stat-tile .st-value { font-family: var(--font-serif); font-size: 1.65rem; color: var(--charcoal); line-height: 1.1; margin-top: 4px; }
.stat-tile .st-sub { font-size: 0.72rem; color: var(--ink-muted); margin-top: 2px; }
.stat-tile.accent { background: var(--gold-tint); border-color: var(--gold-soft); }

/* ---------- Plan (12-week map) ---------- */
.phase-block { margin-bottom: 22px; }
.phase-block .phase-head {
  display: flex; align-items: baseline; gap: 12px; margin-bottom: 10px; flex-wrap: wrap;
}
.phase-block .phase-head h2 { font-size: 1.3rem; }
.week-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 12px; }
.week-card {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; cursor: pointer; position: relative;
  transition: transform 0.15s var(--ease-out), box-shadow 0.15s, border-color 0.15s;
}
.week-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); border-color: var(--gold-soft); }
.week-card.current { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(179,148,92,0.25); }
.week-card.past { opacity: 0.85; }
.week-card .wk-num { font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.week-card .wk-focus { font-weight: 600; font-size: 0.92rem; color: var(--charcoal); margin: 4px 0 8px; }
.week-card .wk-meta { font-size: 0.72rem; color: var(--ink-muted); }
.week-card .wk-bar { height: 5px; border-radius: 3px; background: var(--sage-tint); margin-top: 10px; overflow: hidden; }
.week-card .wk-bar i { display: block; height: 100%; background: var(--sage); border-radius: 3px; }
.week-card .wk-flag { position: absolute; top: 12px; right: 12px; }

.timeline-strip {
  display: flex; gap: 4px; margin: 10px 0 4px;
}
.timeline-strip i {
  flex: 1; height: 8px; border-radius: 4px; background: var(--sage-tint);
}
.timeline-strip i.done { background: var(--sage); }
.timeline-strip i.now { background: var(--gold); }

/* ---------- Workout player ---------- */
.wo-block { margin-bottom: 18px; }
.wo-block > h3 {
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 8px;
}
.ex-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; margin-bottom: 10px;
}
.ex-card .ex-head { display: flex; align-items: center; gap: 10px; }
.ex-card .ex-name { font-weight: 600; color: var(--charcoal); font-size: 0.97rem; flex: 1; }
.ex-card .ex-rx { font-size: 0.8rem; color: var(--ink-muted); white-space: nowrap; }
.ex-card .ex-info-btn {
  width: 28px; height: 28px; border-radius: 50%; flex: none;
  background: var(--gold-tint); color: var(--gold);
  font-family: var(--font-serif); font-weight: 700; font-size: 0.95rem;
}
.set-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.set-cell {
  display: flex; align-items: center; gap: 5px;
  background: var(--ivory); border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px;
}
.set-cell input {
  width: 52px; border: none; background: transparent; text-align: center;
  font-size: 0.88rem; padding: 2px 0;
}
.set-cell input:focus { outline: none; }
.set-cell .x { color: var(--ink-muted); font-size: 0.75rem; }
.set-cell.done { background: var(--sage-tint); border-color: var(--sage); }
.set-check { width: 24px; height: 24px; border-radius: 8px; border: 1.5px solid var(--line); background: #fff; flex: none; display:flex; align-items:center; justify-content:center; }
.set-cell.done .set-check { background: var(--sage-deep); border-color: var(--sage-deep); color: var(--ivory); }
.pr-flash { color: var(--gold); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.1em; }

.rest-timer {
  position: fixed; bottom: calc(var(--tabbar-h) + 14px); right: 14px; z-index: 60;
  background: var(--charcoal); color: var(--ivory);
  border-radius: 999px; padding: 10px 18px; font-size: 0.95rem;
  box-shadow: var(--shadow-lift); display: none; align-items: center; gap: 10px;
}
@media (min-width: 861px) { .rest-timer { bottom: 20px; right: 20px; } }
.rest-timer.on { display: flex; }
.rest-timer b { font-variant-numeric: tabular-nums; }
.rest-timer button { color: var(--gold-soft); font-size: 0.78rem; }

/* ---------- Library / accordion ---------- */
.acc { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: 10px; overflow: hidden; }
.acc > button {
  width: 100%; text-align: left; padding: 14px 16px;
  display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--charcoal); font-size: 0.95rem;
}
.acc > button .chev { margin-left: auto; transition: transform 0.2s; color: var(--ink-muted); flex: none; }
.acc.open > button .chev { transform: rotate(180deg); }
.acc .acc-body { display: none; padding: 0 16px 16px; }
.acc.open .acc-body { display: block; }
.acc .tagline { font-weight: 400; color: var(--ink-muted); font-size: 0.8rem; }

.search-input {
  width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 11px 18px; font-size: 0.95rem; margin-bottom: 14px;
}
.search-input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(179,148,92,0.16); }

.kv-list li { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 0.88rem; }
.kv-list li:last-child { border-bottom: none; }
.kv-list li b { flex: none; min-width: 108px; color: var(--charcoal); font-weight: 600; }

.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.tag { font-size: 0.68rem; background: var(--taupe-tint); color: var(--ink-muted); border-radius: 999px; padding: 3px 10px; }

/* ---------- Charts ---------- */
.chart-wrap { position: relative; }
.chart-wrap svg { width: 100%; height: auto; }
.chart-tip {
  position: absolute; pointer-events: none; z-index: 5;
  background: var(--charcoal); color: var(--ivory);
  border-radius: 8px; padding: 6px 10px; font-size: 0.74rem;
  transform: translate(-50%, calc(-100% - 10px));
  white-space: nowrap; display: none;
}
.chart-tip b { color: var(--gold-soft); }
.chart-legend { display: flex; gap: 16px; margin-top: 8px; flex-wrap: wrap; }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; font-size: 0.74rem; color: var(--ink-muted); }
.chart-legend i { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }
.chart-empty { color: var(--ink-muted); font-size: 0.88rem; padding: 24px 0; text-align: center; }

/* ---------- Log tables ---------- */
.log-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.log-table th {
  text-align: left; font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-muted); padding: 8px 10px; border-bottom: 1px solid var(--line);
}
.log-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); }
.log-table tr:last-child td { border-bottom: none; }
.table-scroll { overflow-x: auto; }

/* ---------- Modal ---------- */
.modal-veil {
  position: fixed; inset: 0; background: rgba(33,30,26,0.55);
  z-index: 80; display: none; align-items: flex-end; justify-content: center;
  padding: 0;
}
.modal-veil.on { display: flex; }
.modal {
  background: var(--cream); border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  width: 100%; max-width: 640px; max-height: 88vh; overflow-y: auto;
  padding: 24px; animation: sheetup 0.28s var(--ease-out);
}
@media (min-width: 700px) {
  .modal-veil { align-items: center; padding: 24px; }
  .modal { border-radius: var(--radius-lg); }
}
@keyframes sheetup { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal .modal-close { float: right; color: var(--ink-muted); font-size: 1.5rem; line-height: 1; padding: 2px 8px; }

/* ---------- Onboarding ---------- */
.onb-shell { max-width: 620px; margin: 0 auto; padding: 40px 18px 80px; }
.onb-progress { display: flex; gap: 5px; margin-bottom: 26px; }
.onb-progress i { flex: 1; height: 5px; border-radius: 3px; background: var(--line); }
.onb-progress i.done { background: var(--gold); }
.onb-brand { text-align: center; margin-bottom: 26px; }
.onb-brand .mark {
  font-family: var(--font-serif); font-size: 1.6rem; color: var(--charcoal);
}
.onb-brand small { display: block; font-size: 0.64rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-top: 4px; }
.onb-step h1 { font-size: 1.7rem; margin-bottom: 8px; }
.onb-step .lead { color: var(--ink-muted); margin-bottom: 22px; font-size: 0.95rem; }
.onb-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--tabbar-h) + 18px); z-index: 90;
  background: var(--charcoal); color: var(--ivory);
  padding: 11px 20px; border-radius: 999px; font-size: 0.86rem;
  box-shadow: var(--shadow-lift); opacity: 0; pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}
@media (min-width: 861px) { .toast { bottom: 26px; } }
.toast.on { opacity: 1; transform: translateX(-50%) translateY(-4px); }

/* ---------- Celebration ---------- */
.confetti-veil { position: fixed; inset: 0; pointer-events: none; z-index: 100; overflow: hidden; }
.confetti-veil i {
  position: absolute; top: -14px; width: 9px; height: 14px; border-radius: 2px;
  animation: confall linear forwards;
}
@keyframes confall {
  to { transform: translateY(110vh) rotate(540deg); opacity: 0.4; }
}

/* ---------- Food lookup ---------- */
.food-row {
  display: flex; align-items: baseline; gap: 10px; padding: 10px 0;
  border-bottom: 1px solid var(--line); font-size: 0.88rem; flex-wrap: wrap;
}
.food-row:last-child { border-bottom: none; }
.food-row .f-name { font-weight: 600; color: var(--charcoal); flex: 1; min-width: 180px; }
.food-row .f-brand { color: var(--ink-muted); font-weight: 400; font-size: 0.78rem; }
.food-row .f-macros { display: flex; gap: 12px; font-size: 0.78rem; color: var(--ink-muted); white-space: nowrap; }
.food-row .f-macros b { color: var(--charcoal); }

/* ---------- Print ---------- */
@media print {
  .sidebar, .tabbar, .mobile-head, .btn, .rest-timer, .toast { display: none !important; }
  .main { margin: 0; padding: 0; max-width: none; }
  .view { display: none !important; }
  .view.active { display: block !important; }
  body { background: #fff; }
  .card { box-shadow: none; break-inside: avoid; }
}
