:root {
  --bg: #121212;
  --bg2: #1b1917;
  --card: #221f1c;
  --border: #3a312a;
  --text: #f3eee9;
  --muted: #b3a79b;
  --accent: #bf5700;
  --accent2: #e07a2e;
  --warn: #fbbf24;
  --danger: #f87171;
  --ok: #34d399;
  --radius: 14px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px; line-height: 1.45;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}
body { padding-bottom: calc(24px + var(--safe-bottom)); }
a { color: var(--accent2); }
.wrap { max-width: 640px; margin: 0 auto; padding: 12px 14px 0; }
header.app {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 8px 0 14px;
  position: sticky; top: 0; z-index: 20;
  background: linear-gradient(var(--bg) 70%, transparent);
  backdrop-filter: blur(6px);
}
header.app h1 {
  margin: 0; font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em;
}
header.app .sub { color: var(--muted); font-size: 0.8rem; margin-top: 2px; }
.safety {
  background: #2a1f12; border: 1px solid #5b3d12; color: #fde68a;
  border-radius: var(--radius); padding: 12px 14px; font-size: 0.9rem;
  margin-bottom: 12px;
}
.meals {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 14px; margin-bottom: 14px;
  text-decoration: none; color: inherit;
}
.meals .icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: #1f3a2e; color: var(--ok);
  display: grid; place-items: center; font-size: 1.2rem; flex-shrink: 0;
}
.meals .t { font-weight: 600; }
.meals .d { color: var(--muted); font-size: 0.85rem; }
.meals .chev { margin-left: auto; color: var(--muted); font-size: 1.2rem; }

.tabs {
  display: flex; gap: 6px; overflow-x: auto; -webkit-overflow-scrolling: touch;
  padding: 2px 0 12px; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: 0 0 auto; border: 1px solid var(--border); background: var(--bg2);
  color: var(--muted); border-radius: 999px; padding: 8px 14px;
  font-size: 0.9rem; font-weight: 600; cursor: pointer;
}
.tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.tab .opt { font-weight: 500; opacity: 0.85; font-size: 0.75rem; margin-left: 4px; }

.dayhead { margin: 4px 0 12px; }
.dayhead h2 { margin: 0; font-size: 1.15rem; }
.dayhead p { margin: 4px 0 0; color: var(--muted); font-size: 0.9rem; }

.move {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 10px; overflow: hidden;
}
.move > summary {
  list-style: none; cursor: pointer; padding: 14px 14px;
  display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center;
}
.move > summary::-webkit-details-marker { display: none; }
.move .thumb {
  width: 64px; height: 64px; border-radius: 10px; object-fit: cover;
  background: var(--bg2); display: block;
}
.move .title { font-weight: 650; font-size: 1rem; }
.move .dose { color: var(--accent2); font-size: 0.85rem; margin-top: 2px; }
.move .blurb { color: var(--muted); font-size: 0.85rem; margin-top: 4px; }
.move .chev {
  color: var(--muted); transition: transform .15s ease; font-size: 1.1rem;
}
.move[open] > summary .chev { transform: rotate(90deg); }

.move-body { padding: 0 14px 14px; border-top: 1px solid var(--border); }
.media {
  margin: 12px 0 10px; border-radius: 12px; overflow: hidden;
  background: #000; border: 1px solid var(--border);
}
.media video {
  width: 100%; max-height: 320px; display: block; background: #000;
  aspect-ratio: 16/9; object-fit: contain;
}
.media .cap { color: var(--muted); font-size: 0.75rem; padding: 6px 10px; background: var(--bg2); }

.steps { display: grid; gap: 8px; margin: 10px 0; }
.step {
  background: var(--bg2); border-radius: 10px; padding: 10px 12px;
}
.step .k {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--accent2); margin-bottom: 2px;
}
.step.watch .k { color: var(--warn); }
.step p { margin: 0; font-size: 0.92rem; }

.need { color: var(--muted); font-size: 0.85rem; margin: 8px 0; }
.yt {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 6px; padding: 10px 12px; border-radius: 10px;
  background: #1f1212; border: 1px solid #3f1f1f; color: #fca5a5;
  text-decoration: none; font-weight: 600; font-size: 0.9rem;
}
.footer {
  text-align: center; color: var(--muted); font-size: 0.8rem;
  padding: 20px 8px 8px;
}

.meals-summary {
  color: var(--muted); font-size: 0.9rem; margin: 0 0 12px; line-height: 1.4;
}
.workouts-link .icon { background: #3a2412; color: var(--accent2); }
.meal-card > summary {
  grid-template-columns: 72px 1fr auto;
}
.meal-slot {
  width: 72px; height: 72px; border-radius: 10px;
  background: #1f3a2e; color: var(--ok);
  display: grid; place-items: center; text-align: center;
  font-size: 0.78rem; font-weight: 700; letter-spacing: .02em;
  text-transform: uppercase; line-height: 1.15; padding: 6px;
}
.kitchen-note {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 14px;
  color: var(--muted); font-size: 0.85rem; margin: 14px 0 4px;
  line-height: 1.4;
}
