/* ===========================================================
   G7 Clients · Design System
   One font (Plus Jakarta Sans) · Blue accent · Slate palette
   =========================================================== */

:root {
  /* ── Palette ── */
  --bg: #1d2430;
  --bg-2: #262f45;
  --surface: #262f45;
  --surface-2: #3e4850;
  --line: rgba(199, 214, 232, 0.14);
  --line-strong: rgba(199, 214, 232, 0.26);

  --text: #f4f7fb;
  --text-2: #d7dee7;
  --muted: #a3adba;

  --accent: #3761a9;
  --accent-2: #5a82c4;
  --accent-soft: rgba(55, 97, 169, 0.18);
  --accent-ring: rgba(55, 97, 169, 0.38);

  --ok: #22c55e;
  --ok-soft: rgba(34, 197, 94, 0.14);
  --warn: #fbbf24;
  --err: #fca5a5;
  --on-accent: #ffffff;
  --chip-text: #c9d6ef;
  --header-bg: rgba(29, 36, 48, 0.92);
  --nav-bg: rgba(29, 36, 48, 0.96);
  --inset: rgba(0, 0, 0, 0.22);
  --input-bg: rgba(0, 0, 0, 0.32);
  --toast-bg: #0b1220;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.32);
  --shadow-lg: 0 16px 44px rgba(0, 0, 0, 0.42);

  /* ── Spacing scale (4px base) ── */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-7: 32px;
  --sp-8: 48px;

  /* ── Radius ── */
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 24px;
  --r-pill: 999px;

  /* ── Typography ── */
  --font: "Plus Jakarta Sans", "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --fw-body: 400;
  --fw-med: 600;
  --fw-bold: 700;
  --fw-black: 800;

  --fs-xs: 0.78rem;
  --fs-sm: 0.9rem;
  --fs-md: 1rem;
  --fs-lg: 1.1rem;
  --fs-xl: 1.3rem;
  --fs-2xl: 1.7rem;
  --fs-3xl: 2.1rem;

  /* ── Layout ── */
  --nav-h: 78px;
  --header-h: 72px;
  --container: 560px;
  --container-wide: 980px;
}

/* ── Reset ── */
* { box-sizing: border-box; }
html { font-size: 17px; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font);
  font-weight: var(--fw-body);
  background:
    radial-gradient(900px 480px at 6% -6%, rgba(55, 97, 169, 0.22), transparent 55%),
    radial-gradient(700px 320px at 100% 0%, rgba(62, 72, 80, 0.35), transparent 50%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
  color: var(--text);
  line-height: 1.5;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-2); text-decoration: none; font-weight: var(--fw-med); }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font);
  margin: 0;
  letter-spacing: -0.01em;
  color: var(--text);
}
h1 { font-size: var(--fs-2xl); font-weight: var(--fw-black); line-height: 1.15; }
h2 { font-size: var(--fs-lg); font-weight: var(--fw-bold); line-height: 1.2; }
h3 { font-size: var(--fs-md); font-weight: var(--fw-bold); line-height: 1.3; }

p { margin: 0; }

/* ── Containers ── */
.wrap { width: min(var(--container), 100%); margin: 0 auto; padding: var(--sp-5) var(--sp-4) calc(var(--nav-h) + var(--sp-7)); }
.wrap-wide { width: min(var(--container-wide), 100%); margin: 0 auto; padding: var(--sp-6) var(--sp-4) var(--sp-8); }
.page-home .wrap { padding-bottom: var(--sp-8); }
.home-wrap { padding-top: var(--sp-7); }
body.no-nav .wrap { padding-bottom: var(--sp-8); }

/* ===========================================================
   Header — fixed brand header, same shape on every view
   =========================================================== */
.app-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.app-header img {
  width: 42px;
  height: 42px;
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.app-header-text { min-width: 0; flex: 1; }
.brand-kicker {
  margin: 0;
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  font-weight: var(--fw-bold);
}
.app-header h1 {
  font-size: var(--fs-lg);
  font-weight: var(--fw-black);
  margin: 2px 0 0;
  line-height: 1.15;
}
.app-header p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: var(--fs-sm);
  font-weight: var(--fw-med);
}

/* Home hero brand (login screen) */
.brand {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}
.brand-hero { margin-bottom: var(--sp-7); }
.brand img {
  width: 68px;
  height: 68px;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
}
.brand h1 { font-size: var(--fs-xl); margin-top: 2px; }
.brand p { margin: 2px 0 0; color: var(--muted); font-size: var(--fs-sm); }

/* ===========================================================
   Cards
   =========================================================== */
.card {
  background: linear-gradient(170deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  margin-bottom: var(--sp-4);
  box-shadow: var(--shadow-sm);
}
.card.compact { padding: var(--sp-4); }
.card h2, .card h3 {
  margin: 0 0 var(--sp-3);
}
.card h3 { font-size: var(--fs-sm); margin-bottom: var(--sp-2); color: var(--text-2); text-transform: uppercase; letter-spacing: 0.08em; font-weight: var(--fw-bold); }
.card + .card { margin-top: 0; }

.muted { color: var(--muted); font-size: var(--fs-sm); font-weight: var(--fw-body); }
.err { margin-top: var(--sp-3); color: var(--err); font-size: var(--fs-sm); font-weight: var(--fw-med); }
.home-foot { margin-top: var(--sp-5); text-align: center; }

/* Updated-at timestamp — standard across all sections */
.updated-at {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-xs);
  color: var(--muted);
  font-weight: var(--fw-med);
  letter-spacing: 0.02em;
  margin: 0 0 var(--sp-3);
}
.updated-at::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
}
.updated-at.stale::before { background: var(--muted); box-shadow: none; }

/* Empty state */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-6) var(--sp-4);
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: var(--r-md);
  background: var(--inset);
  font-size: var(--fs-sm);
  font-weight: var(--fw-med);
}
.empty-state strong { color: var(--text-2); font-size: var(--fs-md); font-weight: var(--fw-bold); }
.empty-state .emoji { font-size: 1.8rem; line-height: 1; opacity: 0.8; }

/* ===========================================================
   Buttons
   =========================================================== */
.btn {
  appearance: none;
  border: 0;
  border-radius: var(--r-md);
  padding: 14px 18px;
  font-weight: var(--fw-bold);
  font-family: inherit;
  font-size: var(--fs-md);
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--on-accent);
  box-shadow: 0 4px 16px rgba(55, 97, 169, 0.28);
  transition: transform 0.1s ease, opacity 0.1s ease, box-shadow 0.15s ease;
  letter-spacing: 0.01em;
}
.btn:hover:not(:disabled) { box-shadow: 0 6px 22px rgba(55, 97, 169, 0.38); }
.btn:active:not(:disabled) { transform: scale(0.97); }
.btn-block { width: 100%; display: block; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }

.btn.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-strong);
  box-shadow: none;
}
.btn.ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: none;
}
.btn.small { padding: 9px 14px; font-size: var(--fs-sm); border-radius: var(--r-sm); }

.row { display: flex; gap: var(--sp-3); flex-wrap: wrap; align-items: center; }

/* ===========================================================
   Forms
   =========================================================== */
input, textarea, select {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: var(--r-md);
  padding: 14px;
  font: inherit;
  font-weight: var(--fw-med);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
label {
  display: block;
  margin: 0 0 var(--sp-2);
  color: var(--muted);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  letter-spacing: 0.02em;
}
.field { margin-bottom: var(--sp-4); }
.pin-input {
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  letter-spacing: 0.32em;
  font-size: 1.35rem;
  text-align: center;
  font-weight: var(--fw-bold);
}

/* ===========================================================
   Bottom nav
   =========================================================== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  justify-content: space-around;
  gap: 2px;
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.nav-btn {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 4px;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.1s ease, background 0.12s ease, color 0.12s ease;
}
.nav-btn:active { transform: scale(0.94); }
.nav-btn.is-active {
  color: var(--accent-2);
  background: var(--accent-soft);
}

/* ===========================================================
   Chips
   =========================================================== */
.chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.chip {
  background: var(--accent-soft);
  border: 1px solid var(--accent-ring);
  color: var(--chip-text);
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
}
.chip.idle {
  background: rgba(148, 163, 184, 0.06);
  border-color: var(--line);
  color: var(--muted);
  font-weight: var(--fw-med);
}
.chip.toggle {
  appearance: none;
  font-family: inherit;
  cursor: pointer;
  user-select: none;
  background: rgba(148, 163, 184, 0.08);
  border-color: var(--line-strong);
  color: var(--text-2);
  transition: transform 0.1s ease, background 0.12s, border-color 0.12s, color 0.12s, box-shadow 0.12s;
}
.chip.toggle:active { transform: scale(0.96); }
.chip.toggle.on {
  background: #16a34a;
  border-color: #4ade80;
  color: #fff;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.32);
}

/* ===========================================================
   Streak & broadcast
   =========================================================== */
.streak {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ok-soft);
  color: #86efac;
  border-radius: var(--r-pill);
  padding: 6px 12px;
  font-weight: var(--fw-bold);
  font-size: var(--fs-sm);
  margin-top: var(--sp-2);
}
.broadcast {
  border-left: 3px solid var(--accent);
  padding-left: var(--sp-3);
  margin: 0;
  color: var(--text-2);
}
.note-card {
  margin: var(--sp-3) 0 0;
  background: var(--inset);
  border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--line);
}

/* ===========================================================
   Week grid (check-in)
   =========================================================== */
.week-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.week-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 4px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--inset);
  cursor: pointer;
  transition: transform 0.1s ease, border-color 0.12s, background 0.12s;
  font-size: 0.72rem;
  font-weight: var(--fw-bold);
  color: var(--muted);
  font-family: inherit;
}
.week-cell:active { transform: scale(0.95); }
.week-cell.is-today { border-color: var(--accent-ring); color: var(--text-2); }
.week-cell.is-selected {
  background: rgba(22, 163, 74, 0.22);
  border-color: #4ade80;
  color: #fff;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.28);
}
.week-cell .dot-sm {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--line-strong);
}
.week-cell.has-data .dot-sm { background: var(--ok); box-shadow: 0 0 6px rgba(34, 197, 94, 0.5); }

/* ===========================================================
   Bodyweight / exercise list
   =========================================================== */
.exercise-list { display: grid; gap: var(--sp-2); }
.exercise-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: 14px 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--inset);
  cursor: pointer;
  transition: transform 0.1s ease, border-color 0.12s;
}
.exercise-item:hover { border-color: var(--line-strong); }
.exercise-item:active { transform: scale(0.98); }
.exercise-item strong { font-size: var(--fs-md); font-weight: var(--fw-bold); }
.exercise-item span { color: var(--accent-2); font-size: 0.8rem; font-weight: var(--fw-bold); }
.video-embed {
  margin-top: var(--sp-3);
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #000;
}
.video-embed iframe { width: 100%; height: 100%; border: 0; }
.assigned-workout { margin-top: var(--sp-4); display: grid; gap: var(--sp-3); }
.assigned-workout h3 { margin: 0; }
.workout-card .assigned-workout { margin-top: var(--sp-3); }
.portal-ex {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--inset);
}
.portal-ex-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.portal-ex-head:disabled { cursor: default; }
.ex-num {
  flex: 0 0 auto;
  min-width: 2.6rem;
  color: var(--accent-2);
  font-weight: 800;
  font-size: 0.95rem;
}
.portal-ex-meta { display: grid; gap: 4px; flex: 1; }
.portal-ex-meta strong { font-size: var(--fs-md); font-weight: var(--fw-bold); }
.ex-sets { color: var(--accent-2); font-size: 0.8rem; font-weight: var(--fw-bold); }
.ex-caret { color: var(--muted); font-size: 0.75rem; }
.tech-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tech-chip {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--card, var(--inset));
  color: var(--accent-2);
  font-size: 0.72rem;
  font-weight: 700;
}
.tap-video { margin: 0; font-size: 0.78rem; }
.portal-ex-video[hidden] { display: none; }
.assigned-empty { margin-top: var(--sp-4); }
.assigned-link { margin: var(--sp-2) 0 0; }
.assigned-link a { color: var(--accent-2); font-weight: var(--fw-bold); }
.assigned-admin { display: grid; gap: 8px; }
.assigned-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.assigned-row span { color: var(--muted); font-size: 0.85rem; }

/* ===========================================================
   Timer
   =========================================================== */
.timer-display {
  font-family: var(--font);
  font-size: clamp(4.75rem, 28vw, 7.5rem);
  font-weight: var(--fw-black);
  text-align: center;
  letter-spacing: -0.03em;
  margin: var(--sp-5) 0 var(--sp-2);
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.timer-display.work { color: var(--accent-2); }
.timer-display.rest { color: #60a5fa; }
.timer-meta { text-align: center; color: var(--muted); font-size: var(--fs-sm); margin-bottom: var(--sp-5); font-weight: var(--fw-med); }
.timer-presets { display: grid; gap: var(--sp-2); margin-bottom: var(--sp-5); }
.preset-btn {
  text-align: left;
  padding: 14px 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--inset);
  color: var(--text);
  font: inherit;
  font-weight: var(--fw-bold);
  cursor: pointer;
  transition: transform 0.1s ease, border-color 0.12s, background 0.12s;
}
.preset-btn:hover { border-color: var(--line-strong); }
.preset-btn:active { transform: scale(0.98); }
.preset-btn.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.preset-btn small {
  display: block;
  color: var(--muted);
  font-weight: var(--fw-med);
  margin-top: 2px;
  font-size: var(--fs-xs);
}

/* ===========================================================
   Photos
   =========================================================== */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: var(--sp-3);
}
.photo-thumb {
  aspect-ratio: 3/4;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--inset);
  position: relative;
}
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-thumb .photo-tag {
  position: absolute;
  top: 6px; left: 6px;
  font-size: 0.65rem;
  font-weight: var(--fw-bold);
  padding: 3px 8px;
  border-radius: var(--r-pill);
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.upload-zone {
  border: 2px dashed var(--line-strong);
  border-radius: var(--r-md);
  padding: var(--sp-5);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s;
  font-weight: var(--fw-bold);
}
.upload-zone:hover { border-color: var(--accent-ring); background: rgba(55, 97, 169, 0.05); }
.upload-zone input { display: none; }
.photo-upload-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
  margin: 16px 0;
}
.photo-upload-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface-2);
}
.photo-upload-title {
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.photo-upload-hint {
  margin: 0;
  font-size: 0.8rem;
}
.photo-upload-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.upload-zone-sm {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 10px;
  min-height: 84px;
  justify-content: center;
}
.upload-zone-sm strong { font-size: 0.82rem; }
.upload-ico { font-size: 1.15rem; line-height: 1; }
.upload-micro {
  display: block;
  margin: 0;
  font-size: 0.7rem;
  font-weight: var(--fw-med);
}
@media (max-width: 520px) {
  .photo-upload-grid { grid-template-columns: 1fr; }
}

/* ===========================================================
   Chat
   =========================================================== */
.chat-box {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  max-height: 50vh;
  overflow-y: auto;
  padding: var(--sp-1) 0 var(--sp-3);
}
.chat-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: var(--r-md);
  font-size: var(--fs-md);
  line-height: 1.4;
  font-weight: var(--fw-med);
}
.chat-msg.me {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--on-accent);
  border-bottom-right-radius: 4px;
}
.chat-msg.them {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
}
.chat-msg time {
  display: block;
  font-size: 0.68rem;
  opacity: 0.65;
  margin-top: 4px;
  font-weight: var(--fw-med);
}
.chat-compose {
  display: flex;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
}
.chat-compose input { flex: 1; }

/* ===========================================================
   Admin — tabs & table
   =========================================================== */
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.table th, .table td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.table th {
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  color: var(--muted);
}
.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  font-size: 0.72rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.02em;
}
.badge.ok { background: var(--ok-soft); color: #86efac; }
.badge.wait { background: rgba(148, 163, 184, 0.15); color: var(--muted); }
.pin-box {
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  letter-spacing: 0.15em;
  font-weight: var(--fw-bold);
}

.admin-tabs {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
  margin-bottom: var(--sp-4);
}
.admin-tab {
  padding: 10px 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font: inherit;
  font-weight: var(--fw-bold);
  font-size: var(--fs-sm);
  cursor: pointer;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.admin-tab:hover { color: var(--text-2); border-color: var(--line-strong); }
.admin-tab.is-active {
  background: var(--accent-soft);
  border-color: var(--accent-ring);
  color: var(--accent-2);
}

/* ===========================================================
   Activity (Registro) panel
   =========================================================== */
.activity-filters {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}
.activity-filters .field { margin: 0; }
.activity-list { display: grid; gap: var(--sp-3); }
.activity-row {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: var(--sp-3);
  align-items: center;
  padding: 14px 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--inset);
}
.activity-row .act-date {
  font-weight: var(--fw-bold);
  font-size: var(--fs-sm);
  color: var(--text-2);
  letter-spacing: 0.02em;
}
.activity-row .act-client { font-weight: var(--fw-bold); color: var(--text); margin-bottom: 4px; }
.activity-row .act-muscles { color: var(--muted); font-size: var(--fs-sm); font-weight: var(--fw-med); }
.activity-row .act-source {
  font-size: 0.65rem;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  background: rgba(148, 163, 184, 0.1);
  color: var(--muted);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.activity-row .act-source.client { background: var(--accent-soft); color: var(--accent-2); }

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}
.summary-tile {
  padding: var(--sp-4);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--inset);
}
.summary-tile .tile-k {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: var(--fw-bold);
  margin-bottom: 6px;
}
.summary-tile .tile-v {
  font-size: var(--fs-xl);
  font-weight: var(--fw-black);
  color: var(--text);
  line-height: 1.1;
}
.summary-tile .tile-v small { font-size: var(--fs-sm); color: var(--muted); font-weight: var(--fw-med); margin-left: 4px; }

@media (max-width: 640px) {
  .activity-filters { grid-template-columns: 1fr; }
  .activity-row { grid-template-columns: 1fr; gap: 6px; }
  .activity-row .act-source { justify-self: start; }
}

/* ===========================================================
   Screens / toast / responsive
   =========================================================== */
.screen { display: none; }
.screen.is-active { display: block; }

.toast {
  position: fixed;
  bottom: calc(var(--nav-h) + var(--sp-4));
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--toast-bg);
  border: 1px solid var(--line-strong);
  padding: 12px 18px;
  border-radius: var(--r-md);
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: var(--fw-bold);
  font-size: var(--fs-sm);
  color: #faf7f2;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
body.no-nav .toast { bottom: var(--sp-5); }
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast.ok::before {
  content: "✓";
  display: inline-flex;
  width: 20px; height: 20px;
  background: var(--ok-soft);
  color: var(--ok);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-weight: var(--fw-black);
}
.toast.err::before {
  content: "!";
  display: inline-flex;
  width: 20px; height: 20px;
  background: rgba(239, 68, 68, 0.14);
  color: #fca5a5;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-weight: var(--fw-black);
}

@media (max-width: 640px) {
  .hide-sm { display: none; }
  .week-grid { gap: 4px; }
  .week-cell { padding: 8px 2px; font-size: 0.65rem; }
}

@media (min-width: 641px) {
  .bottom-nav {
    width: min(var(--container), 100%);
    left: 50%;
    transform: translateX(-50%);
    border-radius: var(--r-lg) var(--r-lg) 0 0;
  }
}

/* ── Dieta ── */
.plan-text {
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.65;
  font-size: var(--fs-md);
  color: var(--text-2);
  font-weight: var(--fw-body);
}

/* ===========================================================
   Client Home (Hoy) — hero, next session, weekly, quick links
   =========================================================== */
.home-hero {
  padding: 4px 4px var(--sp-3);
  margin-bottom: var(--sp-2);
}
.home-hero .hero-hello {
  margin: 0;
  color: var(--accent-2);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.home-hero h1 {
  font-size: clamp(1.8rem, 7vw, 2.2rem);
  letter-spacing: -0.03em;
  margin: 4px 0 0;
  line-height: 1.1;
}
.home-hero .hero-sub {
  color: var(--muted);
  font-weight: var(--fw-med);
  font-size: var(--fs-sm);
  margin: 8px 0 0;
}
.hero-greet {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--sp-3);
}
.hero-greet h1 {
  font-size: var(--fs-2xl);
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.1;
}
.hero-greet .hero-sub {
  color: var(--muted);
  font-weight: var(--fw-med);
  font-size: var(--fs-sm);
  margin: 6px 0 0;
}
.hero-greet .streak { margin: 0; }

.week-dots {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-top: var(--sp-3);
}
.week-dot {
  text-align: center;
  font-size: 0.68rem;
  font-weight: var(--fw-bold);
  color: var(--muted);
  padding: 6px 0;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--inset);
}
.week-dot.on {
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.35);
  background: var(--ok-soft);
}
.week-dot.is-today { border-color: var(--accent-ring); color: var(--text-2); }
.week-dot.on.is-today { color: #86efac; }

/* Next session card */
.next-session {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.next-session .ns-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  background: var(--accent-soft);
  color: var(--accent-2);
  border-radius: var(--r-md);
  border: 1px solid var(--accent-ring);
  min-width: 72px;
  flex-shrink: 0;
}
.next-session .ns-day {
  font-size: 1.6rem;
  font-weight: var(--fw-black);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.next-session .ns-month {
  font-size: 0.68rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 4px;
}
.next-session .ns-info { flex: 1; min-width: 0; }
.next-session .ns-info strong {
  display: block;
  color: var(--text);
  font-weight: var(--fw-bold);
  font-size: var(--fs-md);
  margin-bottom: 2px;
  text-transform: capitalize;
}
.next-session .ns-info span {
  color: var(--muted);
  font-size: var(--fs-sm);
  font-weight: var(--fw-med);
}

/* Weekly progress */
.progress-bar {
  position: relative;
  height: 10px;
  border-radius: var(--r-pill);
  background: rgba(148, 163, 184, 0.14);
  overflow: hidden;
  margin: var(--sp-3) 0 var(--sp-2);
}
.progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: var(--r-pill);
  transition: width 0.4s ease;
  box-shadow: 0 0 10px rgba(55, 97, 169, 0.4);
}
.progress-fill.complete { background: linear-gradient(90deg, var(--ok), #4ade80); box-shadow: 0 0 10px rgba(34, 197, 94, 0.4); }
.progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--muted);
  font-weight: var(--fw-med);
  flex-wrap: wrap;
}
.progress-meta strong {
  color: var(--text);
  font-weight: var(--fw-black);
  font-size: var(--fs-md);
}

/* Quick-access links */
.quick-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-2);
}
.quick-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px 10px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--inset);
  color: var(--text);
  font: inherit;
  font-weight: var(--fw-bold);
  font-size: var(--fs-sm);
  cursor: pointer;
  transition: transform 0.1s ease, background 0.12s, border-color 0.12s;
  text-align: center;
}
.quick-link:hover { border-color: var(--accent-ring); background: rgba(55, 97, 169, 0.08); }
.quick-link:active { transform: scale(0.96); }
.quick-link .ql-icon {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--accent-2);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-left: auto;
}
.theme-select {
  width: auto;
  max-width: 108px;
  padding: 6px 10px;
  border-radius: var(--r-pill);
  font-size: 0.72rem;
  font-weight: var(--fw-bold);
  color: #f8fafc;
  background: #0f141c;
  border: 1px solid rgba(248, 250, 252, 0.42);
  color-scheme: dark;
}
.theme-select option {
  background: #0f141c;
  color: #f8fafc;
}
.lang-switch { display: flex; gap: 2px; }
.lang-switch button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.72rem;
  font-weight: var(--fw-black);
  padding: 6px 8px;
  border-radius: var(--r-pill);
  cursor: pointer;
}
.lang-switch button.is-on {
  color: var(--on-accent);
  background: var(--accent);
  border-color: var(--accent);
}

html[data-theme="light"] {
  --bg: #f6f3ee;
  --bg-2: #fffdf9;
  --surface: #ffffff;
  --surface-2: #f3efe8;
  --line: rgba(28, 25, 23, 0.12);
  --line-strong: rgba(28, 25, 23, 0.22);
  --text: #1c1917;
  --text-2: #44403c;
  --muted: #78716c;
  --accent: #3761a9;
  --accent-2: #2c4d87;
  --accent-soft: rgba(55, 97, 169, 0.14);
  --accent-ring: rgba(55, 97, 169, 0.38);
  --on-accent: #ffffff;
  --chip-text: #2c4d87;
  --header-bg: rgba(246, 243, 238, 0.94);
  --nav-bg: rgba(255, 253, 249, 0.96);
  --inset: rgba(28, 25, 23, 0.05);
  --input-bg: #ffffff;
  --toast-bg: #1c1917;
  --ok: #15803d;
  --err: #b91c1c;
  --shadow-sm: 0 2px 8px rgba(28, 25, 23, 0.06);
  --shadow-md: 0 8px 24px rgba(28, 25, 23, 0.08);
  --shadow-lg: 0 16px 44px rgba(28, 25, 23, 0.12);
  color-scheme: light;
}
html[data-theme="light"] .chip.toggle {
  background: rgba(28, 25, 23, 0.06);
  border-color: rgba(28, 25, 23, 0.22);
  color: #44403c;
}
html[data-theme="light"] .chip.toggle.on {
  background: #15803d;
  border-color: #16a34a;
  color: #fff;
  box-shadow: 0 0 0 2px rgba(21, 128, 61, 0.28);
}
html[data-theme="light"] .week-cell.is-selected {
  background: rgba(21, 128, 61, 0.16);
  border-color: #15803d;
  color: #14532d;
  box-shadow: 0 0 0 2px rgba(21, 128, 61, 0.2);
}
html[data-theme="light"] .theme-select {
  color: #1c1917;
  background: #ffffff;
  border: 1px solid rgba(28, 25, 23, 0.42);
  color-scheme: light;
}
html[data-theme="light"] .theme-select option {
  background: #ffffff;
  color: #1c1917;
}
html[data-theme="light"] .streak { color: #15803d; }
html[data-theme="light"] body {
  background:
    radial-gradient(900px 420px at 8% -8%, rgba(55, 97, 169, 0.14), transparent 55%),
    linear-gradient(180deg, #f6f3ee 0%, #efe8df 100%);
}
html[data-theme="navy"] {
  --bg: #1d2430;
  --bg-2: #262f45;
  --surface: #262f45;
  --surface-2: #3e4850;
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --text-2: #dbe4ee;
  --muted: #94a3b8;
  --header-bg: rgba(7, 16, 28, 0.92);
  --nav-bg: rgba(7, 16, 28, 0.96);
  --inset: rgba(0, 0, 0, 0.28);
  --input-bg: rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}
html[data-theme="navy"] body {
  background:
    radial-gradient(900px 420px at 8% -8%, rgba(55, 97, 169, 0.22), transparent 55%),
    radial-gradient(700px 320px at 100% 0%, rgba(62, 72, 80, 0.35), transparent 50%),
    linear-gradient(180deg, #262f45 0%, #1d2430 100%);
}
html[data-theme="graphite"] {
  --bg: #161412;
  --bg-2: #1e1b18;
  --surface: #262220;
  --surface-2: #312c28;
  --line: rgba(214, 211, 209, 0.16);
  --text: #faf7f2;
  --text-2: #e7e5e4;
  --muted: #a8a29e;
  --header-bg: rgba(22, 20, 18, 0.92);
  --nav-bg: rgba(22, 20, 18, 0.96);
  --inset: rgba(0, 0, 0, 0.28);
  --input-bg: rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}
html[data-theme="graphite"] body {
  background:
    radial-gradient(900px 420px at 8% -8%, rgba(55, 97, 169, 0.16), transparent 55%),
    linear-gradient(180deg, #161412 0%, #0e0c0b 100%);
}

/* ===========================================================
   Look refresh — hierarchy, motion, empty states, mobile
   =========================================================== */
body {
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}

.app-header {
  display: block;
  padding: 0;
  gap: 0;
}
.app-header-inner {
  width: min(var(--container), 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  flex-wrap: nowrap;
}
.admin-page .app-header-inner { width: min(var(--container-wide), 100%); }
.app-header img {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  box-shadow:
    0 0 0 1px rgba(55, 97, 169, 0.5),
    0 10px 22px rgba(0, 0, 0, 0.35);
}
.app-header-text { min-width: 0; }
.app-header h1,
#headerSub {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.brand-kicker { letter-spacing: 0.16em; }

.card {
  padding: 20px;
  margin-bottom: 14px;
  border-radius: var(--r-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 38%),
    linear-gradient(165deg, var(--surface) 0%, var(--bg-2) 100%);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.card.compact { padding: 16px 18px; }
.card > h2 {
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.login-card,
#loginView.card {
  position: relative;
  overflow: hidden;
}
.login-card::before,
#loginView.card::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.btn {
  transition: transform 0.12s ease, filter 0.12s ease, box-shadow 0.16s ease;
}
.btn:active:not(:disabled) {
  transform: scale(0.97);
  filter: brightness(1.12);
}
.btn.just-saved {
  animation: g7-saved 0.52s ease;
}
@keyframes g7-saved {
  0% { transform: scale(1); }
  35% { transform: scale(0.96); filter: brightness(1.18); }
  100% { transform: scale(1); box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
}

.chip.toggle.pop.on {
  animation: g7-chip-pop 0.46s cubic-bezier(0.2, 0.9, 0.2, 1);
}
@keyframes g7-chip-pop {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(55, 97, 169, 0.55); }
  55% { transform: scale(1.07); box-shadow: 0 0 0 7px rgba(55, 97, 169, 0); }
  100% { transform: scale(1); }
}

.screen.is-active {
  animation: g7-screen-in 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes g7-screen-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.empty-state {
  gap: 6px;
  padding: 28px 18px;
  border-style: solid;
  border-radius: 18px;
  background:
    radial-gradient(140px 90px at 50% 0%, var(--accent-soft), transparent 72%),
    var(--inset);
}
.empty-state .emoji {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 4px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 1.4rem;
  opacity: 1;
}
.empty-state strong { letter-spacing: -0.02em; }

.home-hero { padding: 2px 2px 8px; }
.home-hero .hero-hello {
  text-transform: none;
  letter-spacing: -0.01em;
  font-size: 0.98rem;
  font-weight: 700;
}
.home-hero h1 {
  font-size: clamp(2rem, 8vw, 2.55rem);
  letter-spacing: -0.04em;
}

.catalog-note,
.updated-at {
  margin-top: 2px;
}
.catalog-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0 0;
  font-size: var(--fs-xs);
  font-weight: var(--fw-med);
  letter-spacing: 0.02em;
  color: var(--muted);
}
.catalog-note::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(55, 97, 169, 0.55);
}

.quick-link .ql-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-ring);
  font-size: 1.4rem;
}

.nav-btn {
  font-size: 0.68rem;
  letter-spacing: 0;
  gap: 4px;
  min-height: 48px;
  padding: 6px 2px 4px;
}
.nav-btn::before {
  content: "";
  width: 22px;
  height: 22px;
  background: currentColor;
  -webkit-mask: var(--nav-icon) center / contain no-repeat;
  mask: var(--nav-icon) center / contain no-repeat;
}
.nav-btn[data-tab="hoy"] { --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 10.5 12 4l8 6.5V20a1 1 0 0 1-1 1h-5v-6H10v6H5a1 1 0 0 1-1-1z'/%3E%3C/svg%3E"); }
.nav-btn[data-tab="plan"] { --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 3c-1.2 2.4-3.6 3.6-6 4 0 6 2.6 10.2 6 12 3.4-1.8 6-6 6-12-2.4-.4-4.8-1.6-6-4z'/%3E%3C/svg%3E"); }
.nav-btn[data-tab="bodyweight"] { --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M6 9h2v6H6a2 2 0 0 1-2-2v-2a2 2 0 0 1 2-2zm10 0h2a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2h-2V9zM8 11h8v2H8z'/%3E%3C/svg%3E"); }
.nav-btn[data-tab="timer"] { --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 2h6v2h-2v1.1a8 8 0 1 1-2 0V4H9V2zm3 6v5l3 2 .8-1.2-2.3-1.5V8H12z'/%3E%3C/svg%3E"); }
.nav-btn[data-tab="fotos"] { --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M5 6h3l1.2-2h5.6L16 6h3a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2zm7 11a4 4 0 1 0 0-8 4 4 0 0 0 0 8z'/%3E%3C/svg%3E"); }
.nav-btn[data-tab="chat"] { --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 5h16a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H8l-4 3V6a1 1 0 0 1 1-1z'/%3E%3C/svg%3E"); }

@media (max-width: 380px) {
  html { font-size: 16px; }
}

@media (max-width: 640px) {
  input, textarea { font-size: 16px; }
  .theme-select { max-width: 78px; padding: 5px 8px; font-size: 12px; }
  .lang-switch button { padding: 5px 7px; }
  .wrap { padding-left: 14px; padding-right: 14px; }
  .app-header-inner { padding: 10px 14px; gap: 10px; }
  .app-header img { width: 44px; height: 44px; }
  .nav-btn::before { width: 20px; height: 20px; }
  .quick-link .ql-icon { width: 44px; height: 44px; font-size: 1.28rem; }
  .app-header h1 { font-size: 1.02rem; }
  .brand-kicker { letter-spacing: 0.12em; }
}

@media (prefers-reduced-motion: reduce) {
  .screen.is-active,
  .btn.just-saved,
  .chip.toggle.pop.on { animation: none; }
} 

/* ── Diet meal photos (Dieta tab) ── */
.diet-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin: 14px 0 18px;
}
.diet-photo-card {
  margin: 0;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.diet-photo-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}
.diet-photo-card figcaption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px 12px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
}
.diet-photo-card .diet-photo-title {
  color: var(--text);
  font-size: 13.5px;
  font-weight: 700;
}
@media (max-width: 520px) {
  .diet-gallery { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
}

/* Day-by-day meal photos */
.plan-meal {
  margin: 0 0 14px;
}
.plan-meal .plan-text {
  margin: 0;
}
.plan-meal img {
  display: block;
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  border-radius: 14px;
  margin: 8px 0 4px;
  background: rgba(255,255,255,0.04);
}

