:root {
  --bg: #faf9f5;
  --surface: #ffffff;
  --ink: #122319;
  --muted: #566359;
  --line: #e6e4da;
  --accent: #122319;
  --accent-ink: #cdef67;
  --accent-soft: #eaf5c9;
  --warm: #ee744b;
  --warm-soft: #fde7de;
  --warn: #9a5b00;
  --warn-soft: #fbefd9;
  --bad: #a3392f;
  --bad-soft: #f8e3e0;
  --ok-soft: #eaf5c9;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(18,35,25,.05), 0 4px 14px rgba(18,35,25,.05);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0d1711;
  --surface: #15241b;
  --ink: #eef3e6;
  --muted: #9fb0a2;
  --line: #25382b;
  --accent: #cdef67;
  --accent-ink: #122319;
  --accent-soft: #22331f;
  --warm: #f58a63;
  --warm-soft: #3b2219;
  --warn: #f0b45a;
  --warn-soft: #3a2d15;
  --bad: #ef8d84;
  --bad-soft: #3b1f1c;
  --ok-soft: #22331f;
  --shadow: none;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1711;
    --surface: #15241b;
    --ink: #eef3e6;
    --muted: #9fb0a2;
    --line: #25382b;
    --accent: #cdef67;
    --accent-ink: #122319;
    --accent-soft: #22331f;
    --warm: #f58a63;
    --warm-soft: #3b2219;
    --warn: #f0b45a;
    --warn-soft: #3a2d15;
    --bad: #ef8d84;
    --bad-soft: #3b1f1c;
    --ok-soft: #22331f;
    --shadow: none;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
}
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5rem; }
p { margin: 0 0 1rem; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

/* layout */
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px 56px; }
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 760px; margin: 0 auto; padding: 14px 16px;
}
.brand { font-weight: 700; letter-spacing: .01em; color: var(--ink); text-decoration: none; }
.top nav { display: flex; gap: 8px; align-items: center; }
.h1 { font-size: 1.6rem; margin: 8px 0 16px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.stack > * + * { margin-top: 12px; }

/* buttons */
.btn {
  appearance: none; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink);
  font: inherit; font-weight: 600; padding: 10px 16px; border-radius: 999px; cursor: pointer;
  text-decoration: none; display: inline-block; min-height: 44px; line-height: 1.4;
}
.btn:hover { filter: brightness(1.05); }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.small { padding: 6px 12px; min-height: 36px; font-size: .875rem; }
.btn.danger { background: transparent; border-color: var(--bad); color: var(--bad); }
.btn[disabled] { opacity: .6; cursor: default; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* hero */
.hero { padding: 28px 0 12px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; color: var(--accent); font-weight: 700; margin-bottom: 8px; }
.hero h1 { font-size: clamp(1.9rem, 7vw, 2.8rem); max-width: 16ch; margin-bottom: 12px; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 46ch; margin-bottom: 20px; }
.section-title { font-size: 1rem; margin: 36px 0 4px; }

/* cards */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow);
}
.card + .card { margin-top: 12px; }
.card h3 { font-size: 1.05rem; }
.grid { display: grid; gap: 12px; }
@media (min-width: 640px) { .grid.three { grid-template-columns: repeat(3, 1fr); } }
.sample { position: relative; }
.tag {
  display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: var(--accent-soft); color: var(--accent); padding: 2px 8px; border-radius: 999px; margin-bottom: 8px;
}
.ticks { list-style: none; padding: 0; margin: 8px 0 0; }
.ticks li { padding: 4px 0 4px 26px; position: relative; color: var(--muted); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 16px; height: 16px; border-radius: 5px;
  border: 2px solid var(--line);
}
.ticks li.on { color: var(--ink); }
.ticks li.on::before { background: var(--accent); border-color: var(--accent); }
.spark { width: 100%; height: 64px; display: block; }
.spark polyline { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* chips / badges */
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  display: inline-block; font-size: .8rem; font-weight: 600; padding: 3px 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
}
.chip.expiring { background: var(--warn-soft); color: var(--warn); }
.chip.expired, .chip.inactive { background: var(--bad-soft); color: var(--bad); }
.chip.upcoming, .chip.new { background: var(--warn-soft); color: var(--warn); }
.chip.reviewed { background: var(--line); color: var(--muted); }
.badge {
  display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; font-size: .75rem; font-weight: 700;
  background: var(--accent); color: var(--accent-ink); text-align: center;
}

/* forms */
.field { margin-bottom: 14px; }
label { display: block; font-weight: 600; margin-bottom: 4px; }
.opt { font-weight: 400; color: var(--muted); }
input, select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; min-height: 44px;
}
textarea { resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { width: 22px; min-height: 22px; height: 22px; margin-top: 2px; flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.msg { padding: 10px 12px; border-radius: 10px; margin: 0 0 14px; font-size: .95rem; }
.msg.err { background: var(--bad-soft); color: var(--bad); }
.msg.warn { background: rgba(230, 180, 40, .16); color: inherit; }
.pw-flag { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: #e6b428; color: #1a1a1a; font-size: 11px; font-weight: 700; margin-left: 4px; }
.pn-ref { margin: 0 0 10px; }
.msg.ok { background: var(--ok-soft); color: var(--accent); }
.msg.info { background: var(--warn-soft); color: var(--warn); }
.auth { max-width: 420px; margin: 8px auto 0; }
.seg { display: flex; gap: 4px; background: var(--line); padding: 4px; border-radius: 999px; margin-bottom: 16px; }
.seg button {
  flex: 1; border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 600;
  padding: 8px; border-radius: 999px; cursor: pointer; min-height: 40px;
}
.seg button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }

/* dashboard */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs button {
  border: 0; background: transparent; font: inherit; font-weight: 600; color: var(--muted); padding: 10px 14px;
  cursor: pointer; border-bottom: 3px solid transparent; white-space: nowrap; min-height: 44px;
}
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.item-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.item-name { font-weight: 700; }
.item-meta { color: var(--muted); font-size: .9rem; margin: 2px 0; }
.item-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.empty { color: var(--muted); padding: 24px 0; text-align: center; }
.answers dt { font-weight: 700; margin-top: 12px; }
.answers dd { margin: 2px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.big { font-size: 1.4rem; font-weight: 700; }

/* dialog */
dialog {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; width: min(520px, calc(100vw - 24px));
  max-height: calc(100vh - 24px); overflow: auto; background: var(--surface); color: var(--ink);
}
dialog::backdrop { background: rgba(0,0,0,.45); }
.dlg-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; margin-top: 8px; }
.two { display: grid; gap: 12px; }
@media (min-width: 480px) { .two { grid-template-columns: 1fr 1fr; } }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--bg);
  padding: 10px 16px; border-radius: 999px; font-size: .9rem; z-index: 20; max-width: calc(100vw - 32px);
}
.auth.wide { max-width: 560px; }
.btn.full { width: 100%; }
.mb { margin-bottom: 12px; }
.mt { margin-top: 16px; }
.center { text-align: center; }
.pad-top { padding-top: 40px; }

/* ===== Step 2a: client space, check-ins, charts, messages ===== */
.sub { font-size: 1rem; margin: 20px 0 8px; }
.plain { list-style: none; margin: 0 0 8px; padding: 0; }
.plain li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.row select { flex: 1; width: auto; min-width: 0; }
summary { cursor: pointer; font-weight: 600; color: var(--accent); }
.heart { color: var(--bad); }
.entry { padding: 12px 0; border-bottom: 1px solid var(--line); }
.entry:last-child { border-bottom: 0; }
.coach-note { background: var(--accent-soft); border-radius: 10px; padding: 8px 10px; margin: 8px 0 0; }

/* bottom navigation (client) */
.has-nav { padding-bottom: 96px; }
.bottom {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; display: flex; justify-content: center;
  background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
}
.bottom a {
  flex: 1; max-width: 190px; text-align: center; padding: 14px 6px; min-height: 48px;
  color: var(--muted); text-decoration: none; font-weight: 600; font-size: .9rem;
}
.bottom a[aria-current="page"] { color: var(--accent); box-shadow: inset 0 3px 0 var(--accent); }

/* segmented links (Today / Yesterday) */
.seg-link { flex: 1; text-align: center; padding: 8px 10px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 600; }
.seg-link[aria-current="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }

/* check-in form */
.group { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.group legend { font-weight: 600; padding: 0; margin-bottom: 8px; }
.opts { display: flex; gap: 6px; flex-wrap: wrap; }
.opt-pill { flex: 1 1 56px; margin: 0; }
.opt-pill input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.opt-pill span {
  display: block; text-align: center; padding: 10px 6px; min-height: 44px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--surface); font-weight: 600; font-size: .875rem; cursor: pointer;
}
.opt-pill input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.opt-pill input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.habit-input { margin-bottom: 12px; }
.habit-input.toggle { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 400; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.habit-input.toggle input { width: 24px; height: 24px; min-height: 24px; flex: none; }

/* habit grid and charts */
.habit-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.habit-row.head { border: 0; padding: 0; }
.strip { display: flex; gap: 4px; flex: none; }
.cell { display: block; width: 18px; height: 18px; border-radius: 5px; background: var(--line); }
.cell.on { background: var(--accent); }
.cell.off { background: transparent; border: 2px solid var(--line); }
.cell.label { background: transparent; text-align: center; font-style: normal; font-size: .7rem; line-height: 18px; color: var(--muted); }
.chart { width: 100%; height: auto; display: block; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .axis { fill: var(--muted); font-size: 10px; }
.chart .ln { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart .trend { fill: none; stroke: var(--muted); stroke-width: 2; stroke-dasharray: 5 4; }
.chart .dot { fill: var(--surface); stroke: var(--accent); stroke-width: 2; }

/* messages */
.thread { max-height: 52vh; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 4px 0 12px; }
.bubble { max-width: 82%; padding: 10px 12px; border-radius: 16px; white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble .when { font-size: .7rem; opacity: .75; margin-top: 4px; }
.bubble.me { align-self: flex-end; background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 4px; }
.bubble.them { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.composer { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.composer .msg-slot { flex-basis: 100%; }
.composer textarea { flex: 1; min-width: 0; }
.thread-row { display: block; text-decoration: none; color: inherit; }
.thread-row + .thread-row { margin-top: 12px; }

/* coach reactions */
.react { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.react .coach-note { flex-basis: 100%; margin: 0; }
.reply-box { flex-basis: 100%; display: flex; gap: 8px; align-items: flex-end; }
.reply-box[hidden] { display: none; }
.reply-box textarea { flex: 1; min-width: 0; }
.btn.like.on { background: var(--bad-soft); border-color: var(--bad); color: var(--bad); }

/* ===== Step 3: foods and guide ===== */
.bottom a { font-size: .82rem; padding-left: 2px; padding-right: 2px; }
.grow { flex: 1; min-width: 0; }
.food-row { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.food-row:last-child { border-bottom: 0; }
.food-row.off { opacity: .55; }
.checks { display: grid; gap: 8px; }
.sticky-actions { position: sticky; bottom: 0; background: var(--bg); padding: 12px 0; border-top: 1px solid var(--line); margin-top: 16px; }
.slot { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.slot select { flex: 2; min-width: 0; }
.slot input { flex: 1; min-width: 0; }
.opt-tag { display: inline-block; flex: none; width: 24px; height: 24px; line-height: 24px; text-align: center; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: .75rem; }
.preview { border-top: 1px solid var(--line); padding-top: 12px; }

/* guide as the client sees it */
.g-hero p { margin-bottom: .75rem; }
.g-title { font-size: 1.15rem; margin: 28px 0 10px; }
.lbl { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 10px 0 2px; }
.big-hands { font-size: 1.25rem; font-weight: 700; margin: 0 0 6px; }
.meal .bucket, .card .bucket { margin-top: 14px; }
.bucket-name { font-weight: 700; margin-bottom: 6px; color: var(--accent); }
.opt-pair { display: grid; gap: 10px; }
.opt-card { position: relative; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px 10px 44px; background: var(--bg); }
.opt-card .opt-tag { position: absolute; left: 10px; top: 10px; }
.opt-card.empty-opt { opacity: .6; }
.portion { color: var(--accent); }
.opt-note { margin-top: 6px; padding: 6px 8px; border-radius: 8px; background: var(--warn-soft); color: var(--warn); font-size: .85rem; }
.plate-card { display: grid; gap: 16px; align-items: center; }
.plate { width: 180px; height: 180px; margin: 0 auto; display: block; }
.plate .p-veg { fill: var(--accent); } .plate .p-pro { fill: var(--warn); } .plate .p-carb { fill: var(--muted); }
.plate .p-txt { fill: #fff; font-size: 12px; font-weight: 700; }
@media (min-width: 560px) {
  .opt-pair { grid-template-columns: 1fr 1fr; }
  .plate-card { grid-template-columns: 200px 1fr; }
}
@media print {
  .top, .bottom, .no-print, .sticky-actions { display: none !important; }
  body { background: #fff; color: #000; }
  .card { box-shadow: none; break-inside: avoid; border: 1px solid #ccc; }
  .has-nav { padding-bottom: 0; }
}

.slot { flex-wrap: wrap; }
.slot select { flex: 1 1 0; }
.slot input { flex: 1 1 100%; margin-left: 32px; width: calc(100% - 32px); }
.bottom a { position: relative; white-space: nowrap; }
.bottom a .badge { position: absolute; top: 6px; right: 4px; min-width: 18px; font-size: .7rem; line-height: 18px; padding: 0 5px; }

/* ===== Step 4: approx weights, macro check ===== */
.slot-detail { margin: -2px 0 12px 32px; padding: 10px; border: 1px dashed var(--line); border-radius: 10px; }
.slot-detail .field { margin-bottom: 8px; }
.slot-detail label { font-size: .8rem; }
.qty { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; margin: 0; white-space: nowrap; }
.qty input { width: 72px; min-height: 36px; padding: 4px 8px; }
.mcheck { margin: 14px 0; padding: 10px; border-radius: 10px; background: var(--accent-soft); }
.mtable { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .9rem; }
.mtable th, .mtable td { text-align: right; padding: 4px 6px; border-bottom: 1px solid var(--line); }
.mtable th:first-child { text-align: left; font-weight: 600; }
.mtable thead th { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }

/* ===== Client home, one screen ===== */
.home > * + * { margin-top: 10px; }
.home .h1 { margin: 4px 0 0; }
.home .card { padding: 14px; }
.home .card + .card { margin-top: 10px; }
.session { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 10px 14px; background: var(--accent-soft); border-radius: var(--radius); }
.session .lbl { margin: 0; }
.hero-today .hero-line { font-size: 1.1rem; font-weight: 700; margin: 12px 0; }
.week-dots { display: flex; justify-content: space-between; gap: 4px; }
.dd { display: grid; justify-items: center; gap: 4px; }
.dd i { display: block; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line); position: relative; }
.dd.today i { border-color: var(--accent); }
.dd.on i { background: var(--accent); border-color: var(--accent); }
.dd.on i::after { content: ""; position: absolute; left: 9px; top: 4px; width: 7px; height: 13px; border: solid var(--accent-ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.dd b { font-size: .7rem; color: var(--muted); font-weight: 600; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { display: flex; flex-direction: column; gap: 2px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); min-height: 92px; }
.tile.off { opacity: .6; }
.tile .lbl { margin: 0 0 2px; }
.note-card p { margin: 0; }
.access { margin: 6px 0 0; }
.slot-detail > summary { font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.slot-detail[open] > summary { margin-bottom: 10px; }

/* ---- brand touches, tools, avatar, done states ---- */
.heart { color: var(--warm); }
.badge { background: var(--warm) !important; color: #fff !important; }
.dd.today i { border-color: var(--warm); }
.tools { display: inline-flex; gap: 6px; align-items: center; margin-right: 6px; }
.tool-btn { appearance: none; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; min-width: 36px; height: 36px; padding: 0 10px; font: 700 .78rem/1 inherit; cursor: pointer; }
.tool-btn:hover { border-color: var(--accent); }
.top nav { display: flex; align-items: center; }
.msgrow { display: flex; align-items: flex-end; gap: 8px; max-width: 92%; align-self: flex-start; }
.msgrow .bubble { max-width: none; }
.avatar { flex: none; width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: #fff; border: 1px solid var(--line); }
.tile.done { border-color: var(--accent); background: var(--accent-soft); }
.tile.done strong { display: flex; align-items: center; gap: 8px; }
.check-dot { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); position: relative; display: inline-block; }
.check-dot::after { content: ""; position: absolute; left: 7px; top: 3px; width: 5px; height: 10px; border: solid var(--accent-ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.done-banner { display: flex; align-items: center; gap: 10px; background: var(--accent-soft); border: 1px solid var(--accent); border-radius: 12px; padding: 10px 12px; margin: 0 0 14px; font-weight: 600; }
a.dd { text-decoration: none; color: inherit; }
.dd.miss i { border-style: dashed; }
.datepick { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; flex-wrap: wrap; }
.datepick input { width: auto; }

/* ---- stronger logo match: dark green bar, lime and orange accents ---- */
.top { max-width: none; background: #122319; padding: 10px max(16px, calc((100% - 728px) / 2)); border-bottom: 3px solid #cdef67; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-size: 1.02rem; }
.brand img { width: 32px; height: 32px; border-radius: 9px; background: #fff; padding: 2px; object-fit: contain; }
.top .tool-btn { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.top .tool-btn:hover { border-color: #cdef67; }
.top .btn.ghost { color: #cdef67; border-color: #cdef67; }
.top .btn.ghost:hover { background: rgba(205,239,103,.12); }
.top :focus-visible { outline-color: #cdef67; }
.eyebrow { color: var(--warm); }
.hero { background: #cdef67; color: #122319; border-radius: 20px; padding: 28px 22px; margin-top: 16px; }
.hero .lead { color: #2c4132; }
.hero .eyebrow { color: #122319; background: #ee744b; display: inline-block; padding: 3px 10px; border-radius: 999px; color: #fff; }
.hero .btn { background: #122319; color: #cdef67; border-color: #122319; }
.tagline { color: var(--muted); font-style: italic; margin: 10px 0 0; }
.bottom a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 3px 0 var(--warm); }
.session { border-left: 4px solid var(--warm); }
.card.sample .tag { background: var(--warm-soft); color: var(--warm); }
.chart .ln { stroke: var(--warm); }
.chart .dot { stroke: var(--warm); }
.spark polyline { stroke: var(--warm); }
:root[data-theme="dark"] .hero { background: #cdef67; }
.brand, .top .btn { white-space: nowrap; }
.brand { font-size: .95rem; gap: 8px; }
.top .btn.small { padding: 4px 10px; min-height: 34px; font-size: .8rem; }
.tools { margin-right: 2px; }
.top + main { padding-top: 18px; }
.hero .tagline { color: #122319; opacity: .75; margin: 0 0 12px; }

/* ---- palette cleanup ---- */
html { accent-color: var(--accent); }
input[type="checkbox"], input[type="radio"] { accent-color: #122319; }
:root[data-theme="dark"] input[type="checkbox"], :root[data-theme="dark"] input[type="radio"] { accent-color: #cdef67; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) input[type="checkbox"], :root:not([data-theme="light"]) input[type="radio"] { accent-color: #cdef67; } }
.plate .p-veg { fill: #cdef67; stroke: #122319; stroke-width: 1; }
.plate .p-pro { fill: #ee744b; stroke: #122319; stroke-width: 1; }
.plate .p-carb { fill: #122319; stroke: #cdef67; stroke-width: 1; }
.plate .p-txt { fill: #122319; }
.plate .p-txt.p-txt-c { fill: #cdef67; }
/* compact visitor banner */
.hero { padding: 16px 18px 18px; margin-top: 10px; border-radius: 16px; }
.hero h1 { font-size: clamp(1.45rem, 5.5vw, 2rem); margin-bottom: 6px; max-width: none; }
.hero .eyebrow { font-size: .68rem; margin-bottom: 6px; padding: 2px 9px; }
.hero .tagline { margin: 0 0 8px; font-size: .92rem; }
.hero .lead { font-size: .98rem; margin-bottom: 12px; }
.hero .btn { min-height: 40px; padding: 8px 16px; }

/* ---- light top bar so the transparent logo stands out ---- */
.top { background: var(--surface); border-bottom: 3px solid #cdef67; }
.brand { color: var(--ink); }
.brand img { width: 34px; height: 34px; border-radius: 0; background: none; padding: 0; }
.brand .mk-d { display: none; }
.top .tool-btn { background: var(--surface); color: var(--ink); border-color: var(--line); }
.top .tool-btn:hover { border-color: var(--accent); }
.top .btn.ghost { color: var(--accent); border-color: var(--accent); }
.top .btn.ghost:hover { background: var(--accent-soft); }
.top :focus-visible { outline-color: var(--accent); }
:root[data-theme="dark"] .brand .mk-l { display: none; }
:root[data-theme="dark"] .brand .mk-d { display: inline; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand .mk-l { display: none; }
  :root:not([data-theme="light"]) .brand .mk-d { display: inline; }
}
.coach-head { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; }
.coach-head .avatar { width: 48px; height: 48px; }
.coach-head strong { display: block; line-height: 1.2; }
.avatar { width: 38px; height: 38px; }

/* ---- lighter, more visual guide ---- */
.g-hero h1.h1 { font-size: 1.3rem; font-weight: 600; margin: 0 0 12px; }
.g-hero p { font-size: .95rem; }
.g-title { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 26px 2px 10px; }
.goal h3, .meal h3 { font-size: 1rem; font-weight: 600; }
.lbl { font-weight: 500; }
.big-hands { font-size: 1rem; font-weight: 600; }
.plain strong, .goal strong { font-weight: 600; }
.meal.card { padding: 14px; }
.bucket-name { display: flex; align-items: center; gap: 8px; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 8px; }
.bucket-name i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); flex: none; }
.b-protein i { background: #ee744b; } .b-carb i { background: #122319; box-shadow: 0 0 0 1px var(--line); } .b-fat i { background: #f2c14e; } .b-veg i { background: #8fc43a; } .b-fruit i { background: #cdef67; box-shadow: 0 0 0 1px var(--line); }
:root[data-theme="dark"] .b-carb i { background: #cdef67; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .b-carb i { background: #cdef67; } }
.opt-pair { grid-template-columns: 1fr 1fr; gap: 8px; }
.opt-card { padding: 12px 8px 10px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 2px; background: var(--surface); }
.opt-card .opt-tag { position: absolute; left: 6px; top: 6px; width: 18px; height: 18px; line-height: 18px; font-size: .62rem; background: transparent; color: var(--muted); border: 1px solid var(--line); }
.food-ic { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); font-size: 1.35rem; line-height: 1; flex: none; margin-bottom: 4px; }
.food-name { font-weight: 500; font-size: .92rem; line-height: 1.25; }
.opt-card .portion { color: var(--muted); font-size: .8rem; line-height: 1.25; }
.opt-card .opt-note { margin-top: 6px; background: none; color: var(--muted); font-size: .75rem; padding: 0; text-align: center; }
.pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pills .food-pill { display: flex; align-items: center; gap: 8px; padding: 5px 12px 5px 6px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.pills .food-ic { width: 28px; height: 28px; font-size: 1rem; margin: 0; }
.pills .food-name { font-weight: 500; font-size: .88rem; }
.pills .opt-note { margin: 0; padding: 0; background: none; color: var(--muted); font-size: .72rem; }
.plate-card .plain li { font-size: .9rem; padding: 6px 0; }
.g-close p { font-size: .95rem; }

/* ---- compact guide: whole day on one screen, clear "this OR that" ---- */
.meal.card { padding: 10px 12px 12px; margin-bottom: 10px; }
.meal .item-head { margin-bottom: 0; }
.meal h3 { margin: 0; font-size: .95rem; }
.meal .bucket, .card .bucket { margin-top: 8px; }
.bucket-name { margin: 0 0 4px; font-size: .66rem; }
.opt-pair { position: relative; grid-template-columns: 1fr 1fr; gap: 12px; }
.opt-pair::after { content: "or"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 22px; height: 22px; line-height: 20px; text-align: center; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); color: var(--muted); font-size: .62rem; font-weight: 600; text-transform: uppercase; z-index: 1; }
.opt-card { flex-direction: row; align-items: center; text-align: left; gap: 8px; padding: 6px 10px 6px 6px; border-radius: 12px; min-height: 46px; }
.opt-card .food-ic { width: 28px; height: 28px; font-size: 1rem; margin: 0; }
.opt-txt { display: flex; flex-direction: column; min-width: 0; }
.opt-card .food-name { font-size: .84rem; }
.opt-card .portion { font-size: .72rem; }
.opt-card .opt-note { text-align: left; margin-top: 2px; font-size: .68rem; }
.opt-card .opt-tag { display: none; }
.opt-card.empty-opt { justify-content: center; }
.g-hero { padding: 14px; }
.g-title { margin: 18px 2px 8px; }

/* ---- shared row portion, 3 options, recipes ---- */
.row-portion { margin-left: auto; text-transform: none; letter-spacing: 0; font-size: .78rem; font-weight: 600; color: var(--ink); background: var(--accent-soft); padding: 2px 10px; border-radius: 999px; }
.opt-pair.three { grid-template-columns: repeat(3, 1fr); gap: 10px; }
.opt-pair.three::before { content: "or"; position: absolute; left: calc(33.333% - 1px); top: 50%; transform: translate(-50%, -50%); width: 22px; height: 22px; line-height: 20px; text-align: center; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); color: var(--muted); font-size: .62rem; font-weight: 600; text-transform: uppercase; z-index: 1; }
.opt-pair.three::after { left: calc(66.666% + 1px); }
.opt-pair.three .opt-card { flex-direction: column; text-align: center; padding: 8px 6px; gap: 4px; }
.opt-pair.three .opt-txt { align-items: center; }
.opt-pair.three .food-name { font-size: .78rem; }
.recipe { padding: 0; margin-bottom: 8px; }
.recipe summary { display: flex; align-items: center; gap: 10px; padding: 10px 12px; cursor: pointer; list-style: none; color: var(--ink); font-weight: 500; }
.recipe summary::-webkit-details-marker { display: none; }
.recipe summary::after { content: "+"; margin-left: auto; color: var(--muted); font-size: 1.2rem; }
.recipe[open] summary::after { content: "\2212"; }
.recipe .food-ic { width: 30px; height: 30px; font-size: 1.05rem; margin: 0; }
.recipe > :not(summary) { margin-left: 14px; margin-right: 14px; }
.recipe > :last-child { margin-bottom: 14px; }
.rec-list { margin: 0 0 8px; padding-left: 20px; font-size: .92rem; }
.recipe p { font-size: .92rem; }

/* ---- compact goals and targets ---- */
.card.compact { padding: 4px 14px; }
.goal-row { border-bottom: 1px solid var(--line); }
.goal-row:last-child, .t-row:last-child { border-bottom: 0; }
.goal-row summary, .goal-row .goal-sum { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; cursor: pointer; list-style: none; color: var(--ink); font-weight: 400; }
.goal-row .goal-sum { cursor: default; }
.goal-row summary::-webkit-details-marker { display: none; }
.goal-row summary::after { content: "+"; margin-left: auto; color: var(--muted); font-size: 1.1rem; line-height: 1.2; }
.goal-row[open] summary::after { content: "\2212"; }
.goal-dot { flex: none; width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--warm); }
.goal-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.goal-title { font-size: .95rem; font-weight: 500; line-height: 1.3; }
.goal-next { font-size: .82rem; color: var(--muted); line-height: 1.3; }
.lbl-inline { text-transform: uppercase; letter-spacing: .06em; font-size: .64rem; font-weight: 500; }
.goal-more { padding: 0 0 10px 18px; font-size: .86rem; color: var(--ink); }
.goal-more .lbl { margin: 6px 0 0; font-size: .64rem; }
.t-row { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--line); }
.t-label { font-size: .78rem; font-weight: 600; white-space: nowrap; }
.t-val { font-size: .86rem; color: var(--muted); }
.t-sub { grid-column: 1 / -1; margin-top: 2px; font-size: .74rem; }
.g-hero p { font-size: .9rem; margin-bottom: .6rem; }

/* ---- past-day check-in warning ---- */
.past-banner { background: var(--warm-soft); border: 2px solid var(--warm); border-radius: 14px; padding: 12px 14px; margin: 0 0 16px; display: grid; gap: 10px; }
.past-banner .past-ic { font-size: 1.4rem; line-height: 1; }
.past-banner > div:first-of-type { display: grid; gap: 2px; }
.past-banner strong { text-transform: uppercase; letter-spacing: .04em; font-size: .85rem; color: var(--warm); }
.past-banner .past-date { font-size: 1.25rem; font-weight: 700; }
.past-banner .datepick { margin: 0; }
.btn.past { background: var(--warm); border-color: var(--warm); color: #122319; }
.meal-note { margin: 4px 0 6px; font-size: .84rem; color: var(--muted); }
.coach-notes p { font-size: .92rem; }

/* ---- assessment: tap-to-pick chips ---- */
.q-group { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.q-group legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.chips-pick { gap: 8px; margin-bottom: 8px; }
.chips-pick .opt-pill { flex: 0 0 auto; position: relative; }
.chips-pick .opt-pill span { padding: 8px 14px; min-height: 40px; font-weight: 500; font-size: .9rem; border-radius: 999px; }
.more-label { display: block; margin: 10px 0 4px; font-size: .88rem; color: var(--muted); font-weight: 500; }
.act-rows { display: grid; gap: 8px; margin: 8px 0; }
.act-row { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.act-row[hidden] { display: none; }
.act-row .two { margin-top: 6px; }

/* ---- landing: value, steps, plans ---- */
.section-title.big { font-size: 1.15rem; font-weight: 600; margin: 34px 0 10px; }
.val-grid { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.val-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.val-card h3 { font-size: .95rem; font-weight: 600; margin: 8px 0 4px; }
.val-card p { font-size: .85rem; color: var(--muted); margin: 0; }
.val-ic { display: inline-flex; width: 38px; height: 38px; border-radius: 50%; background: var(--accent-soft); align-items: center; justify-content: center; font-size: 1.2rem; }
.val-note { margin: 10px 2px 0; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.steps li { display: flex; gap: 12px; align-items: flex-start; }
.steps strong { display: block; font-weight: 600; }
.steps span:not(.step-n) { color: var(--muted); font-size: .9rem; }
.step-n { flex: none; width: 30px; height: 30px; border-radius: 50%; background: #cdef67; color: #122319; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.plans { display: grid; gap: 12px; margin-top: 12px; }
.plan { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 16px 16px; overflow: hidden; }
.plan-bar { position: absolute; left: 0; top: 0; right: 0; height: 6px; background: #cdef67; }
.plan-orange .plan-bar { background: #ee744b; } .plan-dark .plan-bar { background: #122319; }
:root[data-theme="dark"] .plan-dark .plan-bar { background: #eef3e6; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .plan-dark .plan-bar { background: #eef3e6; } }
.plan h3 { font-size: 1.1rem; font-weight: 600; margin: 4px 0 2px; }
.plan-tag { color: var(--muted); font-size: .9rem; margin-bottom: 10px; }
.plan-items { list-style: none; margin: 0 0 10px; padding: 0; }
.plan-items li { position: relative; padding: 4px 0 4px 26px; font-size: .92rem; }
.plan-items li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 16px; height: 16px; border-radius: 50%; background: var(--accent-soft); }
.plan-items li::after { content: ""; position: absolute; left: 7px; top: 10px; width: 4px; height: 8px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.plan-best { font-size: .84rem; font-style: italic; color: var(--muted); margin: 0 0 10px; }
.plan-price { margin: 0; padding-top: 10px; border-top: 1px dashed var(--line); font-size: .85rem; font-weight: 600; color: var(--warm); }
.cta-band { text-align: center; margin: 22px 0 6px; }
@media (min-width: 640px) { .val-grid { grid-template-columns: repeat(4, 1fr); } .plans { grid-template-columns: repeat(3, 1fr); } }

/* ---- landing samples ---- */
.mini-meal .opt-pair { margin-bottom: 10px; }
.mini-meal .bucket-name { margin-top: 8px; }
.spark.up { margin: 10px 0 4px; }
.spark.up circle { fill: var(--surface); stroke: var(--warm); stroke-width: 2.5; }
.spark.up polyline { stroke-width: 3.5; }

/* ---- calmer visitor banner ---- */
.hero { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-left: 5px solid #cdef67; border-radius: 12px; padding: 12px 16px 14px; margin-top: 8px; box-shadow: none; }
.hero .eyebrow { background: none; color: var(--warm); padding: 0; font-size: .66rem; margin-bottom: 2px; }
.hero h1 { font-size: 1.2rem; font-weight: 600; margin-bottom: 2px; }
.hero .tagline { color: var(--muted); opacity: 1; font-size: .84rem; margin: 0 0 6px; }
.hero .lead { color: var(--muted); font-size: .88rem; margin-bottom: 10px; max-width: none; }
.hero .btn { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); min-height: 36px; padding: 6px 14px; font-size: .88rem; }
:root[data-theme="dark"] .hero { background: var(--surface); }

/* ---- about me ---- */
.about { display: flex; gap: 14px; align-items: flex-start; margin: 18px 0 8px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.about-photo { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; object-position: center 20%; flex: none; border: 2px solid #cdef67; background: var(--bg); }
.about h2 { font-size: 1.1rem; margin: 0 0 2px; }
.about-role { color: var(--warm); font-size: .8rem; font-weight: 600; margin: 0 0 8px; }
.about-txt p { margin: 0 0 6px; font-size: .9rem; color: var(--muted); }
@media (max-width: 420px) { .about { flex-direction: column; align-items: center; text-align: center; } }

/* ---- language picker ---- */
select.tool-btn.lang-sel { appearance: none; -webkit-appearance: none; text-align: center; text-align-last: center; padding: 0 8px; cursor: pointer; font: inherit; }

/* ---- line icons for What you get ---- */
.val-ic { background: var(--accent-soft); color: var(--ink); }
.val-ic svg { display: block; }
.val-ic .ic-dot { fill: #ee744b; }

/* ---- past-day calendar ---- */
.cal-nav { display: flex; align-items: center; justify-content: space-between; margin: 10px 0 8px; }
.cal-nav .btn { min-width: 40px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-h { text-align: center; font-size: .72rem; color: var(--muted); font-weight: 600; }
.cal-cell { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; border-radius: 50%; font-size: .9rem; text-decoration: none; color: var(--ink); border: 2px solid transparent; }
.cal-cell.blank { visibility: hidden; }
.cal-cell.off { color: var(--muted); opacity: .4; }
.cal-cell.done { background: #cdef67; color: #122319; font-weight: 700; }
.cal-cell.miss { border-color: #ee744b; font-weight: 600; }
.cal-cell.today { box-shadow: 0 0 0 2px var(--ink); }
.cal-legend { display: flex; gap: 16px; margin-top: 12px; font-size: .8rem; color: var(--muted); }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-key { width: 14px; height: 14px; border-radius: 50%; border: 2px solid transparent; display: inline-block; }
.cal-key.done { background: #cdef67; }
.cal-key.miss { border-color: #ee744b; }
/* ---- guide updated ---- */
.new-pill { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: #ee744b; color: #fff; font-size: .66rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; vertical-align: middle; }
.tile.fresh { border-color: #ee744b; }
.guide-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.notify-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; font-size: .85rem; }
.notify-row input[type=text] { flex: 1 1 200px; min-height: 34px; }
.sticky-actions .item-actions { margin: 0; }

/* ---- next steps after assessment ---- */
.next-steps .btn { margin-right: 8px; }
.pay-list { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pay-list .pay-info { margin: 0; width: 100%; }

.meal-cal { margin-left: auto; font-size: .78rem; color: var(--muted); font-weight: 600; white-space: nowrap; }

/* ---- plan comparison ---- */
.compare-wrap { margin-top: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.compare { width: 100%; border-collapse: collapse; font-size: .82rem; }
.compare th, .compare td { padding: 9px 6px; text-align: center; border-top: 1px solid var(--line); vertical-align: middle; }
.compare thead th { border-top: 0; padding-top: 0; font-size: .8rem; font-weight: 700; position: relative; }
.compare tbody th { text-align: left; font-weight: 500; padding-left: 12px; width: 38%; }
.cmp-bar { display: block; height: 5px; margin-bottom: 8px; background: #cdef67; }
.cmp-h { padding-bottom: 8px; }
.cmp-h.plan-orange .cmp-bar, .plan-best-row.plan-orange .cmp-bar { background: #ee744b; }
.cmp-h.plan-dark .cmp-bar, .plan-best-row.plan-dark .cmp-bar { background: #122319; }
:root[data-theme="dark"] .cmp-h.plan-dark .cmp-bar, :root[data-theme="dark"] .plan-best-row.plan-dark .cmp-bar { background: #e8efe0; }
.cmp-yes { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: #cdef67; color: #122319; font-weight: 800; font-size: .8rem; }
.cmp-no { color: var(--muted); opacity: .5; }
.cmp-txt { font-size: .76rem; font-weight: 600; line-height: 1.2; display: inline-block; }
.plan-bests { display: grid; gap: 8px; margin-top: 12px; }
.plan-best-row { display: flex; gap: 10px; align-items: center; margin: 0; font-size: .85rem; color: var(--muted); }
.plan-best-row .cmp-bar { width: 5px; height: 34px; margin: 0; border-radius: 3px; flex: none; }
.plan-best-row strong { color: var(--ink); }
.sr { position: absolute; left: -9999px; }
.compare { table-layout: fixed; }
.compare tbody th { width: 34%; }
.compare th, .compare td { overflow-wrap: anywhere; hyphens: auto; }
.compare thead th { font-size: .74rem; padding-left: 2px; padding-right: 2px; }
.cmp-txt { font-size: .72rem; }
.compare th, .compare td { overflow-wrap: break-word; hyphens: manual; }
.compare tbody th { width: 37%; }

/* ---- simpler client home ---- */
.hero-today { text-align: center; padding: 18px 16px 14px; }
.hero-today .hero-line { font-size: 1.15rem; font-weight: 600; margin: 0 0 2px; }
.hero-today .btn.full { margin-top: 12px; min-height: 48px; font-size: 1rem; }
.hero-today .btn.small { margin-top: 10px; }
.hero-today .week-dots { margin-top: 16px; }
.big-check { display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 50%; background: #cdef67; color: #122319; margin-bottom: 8px; }
.big-check svg { width: 30px; height: 30px; }
.todo { display: grid; gap: 8px; margin-top: 12px; }
.todo-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; color: var(--ink); text-decoration: none; }
.todo-row.fresh { border-color: #ee744b; }
.todo-row.off { opacity: .65; }
.todo-ic { display: inline-flex; width: 40px; height: 40px; border-radius: 50%; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--ink); flex: none; }
.todo-txt { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.todo-txt strong { font-size: .95rem; font-weight: 600; }
.todo-state.go { font-size: 1.5rem; color: var(--muted); line-height: 1; }
.todo-state.done { display: inline-flex; width: 26px; height: 26px; border-radius: 50%; background: #cdef67; color: #122319; align-items: center; justify-content: center; }
.todo-state.done svg { width: 16px; height: 16px; }
.todo-state.soon { font-size: .75rem; color: var(--muted); }

.compare tr.price-row th { font-weight: 700; }
.cmp-price { display: block; font-size: 1rem; font-weight: 700; }
.cmp-sub { display: block; font-size: .68rem; color: var(--warm); font-weight: 600; margin-top: 1px; }
.compare tr.price-row td, .compare tr.price-row th { background: var(--accent-soft); }

.cmp-sub { line-height: 1.2; }

/* ---- update bar ---- */
.update-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 60; display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; background: #122319; color: #fff; border-radius: 999px; box-shadow: 0 6px 20px rgba(0,0,0,.25); font-size: .88rem; max-width: calc(100% - 24px); }
.update-bar .btn { background: #cdef67; color: #122319; border-color: #cdef67; min-height: 34px; padding: 4px 14px; }

/* ---- why three circles ---- */
.why { margin-top: 14px; text-align: center; }
.why h2 { font-size: 1.1rem; margin: 0 0 4px; }
.why-svg { width: 100%; max-width: 340px; height: auto; display: block; margin: 6px auto 0; overflow: visible; }
.why-c circle { stroke-width: 0; cursor: pointer; transform-box: fill-box; transform-origin: center; opacity: .88; transition: opacity .25s, transform .25s; animation: why-breathe 6s ease-in-out infinite; }
.why-body circle { fill: #cdef67; }
.why-mind circle { fill: #ee744b; animation-delay: -2s; }
.why-life circle { fill: #122319; animation-delay: -4s; stroke: var(--line); stroke-width: 1; }
:root[data-theme="dark"] .why-life circle { stroke: #cdef67; stroke-opacity: .5; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .why-life circle { stroke: #cdef67; stroke-opacity: .5; } }
.why-c:focus-visible circle, .why-center:focus-visible circle { outline: 2px solid var(--ink); }
.why-center circle { fill: var(--surface); fill-opacity: .92; stroke: var(--ink); stroke-width: 1.2; cursor: pointer; }
.why-center text { font-size: 8px; font-weight: 700; fill: var(--ink); pointer-events: none; }
.why-t text { pointer-events: none; font-family: inherit; }
.why-name { font-size: 15px; font-weight: 700; }
.why-word { font-size: 9.5px; font-weight: 500; opacity: .9; }
.why-t-body, .why-t-mind { fill: #122319; }
.why-t-life { fill: #f4f7ea; }
[data-sel="body"] .why-mind circle, [data-sel="body"] .why-life circle, [data-sel="mind"] .why-body circle, [data-sel="mind"] .why-life circle, [data-sel="life"] .why-body circle, [data-sel="life"] .why-mind circle { opacity: .35; animation: none; }
[data-sel="body"] .why-body circle, [data-sel="mind"] .why-mind circle, [data-sel="life"] .why-life circle { opacity: 1; transform: scale(1.06); animation: none; }
.why-panel { margin-top: 8px; min-height: 64px; text-align: left; padding: 10px 14px; border-radius: 12px; background: var(--accent-soft); }
.why-panel:empty { display: none; }
.why-panel strong { display: block; margin-bottom: 2px; }
.why-panel p { margin: 0; font-size: .9rem; }
@keyframes why-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.035); } }
@media (prefers-reduced-motion: reduce) { .why-c circle { animation: none; } }

.why-c, .why-center { outline: none; }
.why-c:focus-visible circle { stroke: var(--ink); stroke-width: 3; }
.why-center:focus-visible circle { stroke-width: 3; }

/* ---- share your journey ---- */
.sr-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.share-pick { display: flex; align-items: center; justify-content: center; cursor: pointer; }
.share-stage { margin-top: 12px; text-align: center; }
.share-stage canvas { max-width: 100%; max-height: 60vh; border-radius: 12px; background: var(--line); }
.share-ctl { margin-top: 12px; }
.share-actions { margin-top: 10px; }
.share-link { margin: 14px 0 4px; font-size: .88rem; }
.share-link a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.back { color: var(--muted); text-decoration: none; font-size: .9rem; }

/* ---- home: action first, info small ---- */
.hero-today { padding: 12px 14px 8px; text-align: left; }
.hero-today .btn.full { margin-top: 0; min-height: 52px; font-size: 1.05rem; }
.hero-today .week-dots.mini { margin-top: 10px; }
.week-dots.mini .dd i { width: 18px; height: 18px; border-width: 2px; }
.week-dots.mini .dd.on i::after { left: 5px; top: 1px; width: 4px; height: 9px; }
.week-dots.mini .dd { gap: 2px; }
.week-dots.mini .dd b { font-size: .62rem; }
.today-done { display: flex; align-items: center; gap: 10px; }
.today-done strong { flex: 1; font-size: 1rem; font-weight: 600; }
.mini-check { display: inline-flex; width: 28px; height: 28px; border-radius: 50%; background: #cdef67; color: #122319; align-items: center; justify-content: center; }
.mini-check svg { width: 18px; height: 18px; }
.edit-link { font-size: .85rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.todo-state.count { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: #ee744b; color: #fff; font-size: .78rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.caught-up { text-align: center; color: var(--muted); margin: 14px 0 4px; font-size: .95rem; }
.info-lines { margin-top: 14px; display: grid; gap: 4px; }
.info-line { margin: 0; font-size: .85rem; text-align: center; color: var(--ink); }
.info-line.muted { color: var(--muted); }
.info-line .heart { color: #ee744b; }
.hero-today .btn.full { display: flex; justify-content: center; text-align: center; }

/* ---- package colors: Foundations coral, Guided white, Partnership green ---- */
.pkg-chip { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: .7rem; font-weight: 700; vertical-align: middle; margin-left: 6px; border: 1px solid transparent; }
.pkg-chip.pkg-foundations { background: #ee744b; color: #fff; }
.pkg-chip.pkg-guided { background: #fff; color: #122319; border-color: #122319; }
.pkg-chip.pkg-partnership { background: #cdef67; color: #122319; }
.pkg-card { border-left: 6px solid var(--line); }
.pkg-card.pkg-foundations { border-left-color: #ee744b; }
.pkg-card.pkg-guided { border-left-color: #e4e1d6; background: var(--surface); }
.pkg-card.pkg-partnership { border-left-color: #cdef67; }
:root[data-theme="dark"] .pkg-card.pkg-guided { border-left-color: #f4f7ea; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pkg-card.pkg-guided { border-left-color: #f4f7ea; } }
.pkg-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 7px; vertical-align: middle; border: 1px solid transparent; }
.pkg-dot.pkg-foundations { background: #ee744b; }
.pkg-dot.pkg-guided { background: #fff; border-color: #122319; }
:root[data-theme="dark"] .pkg-dot.pkg-guided { border-color: #f4f7ea; }
.pkg-dot.pkg-partnership { background: #cdef67; }
/* plans table headers use the same colors */
.cmp-h.plan-lime .cmp-bar, .plan-best-row.plan-lime .cmp-bar { background: #cdef67; }
.cmp-h.plan-cream .cmp-bar, .plan-best-row.plan-cream .cmp-bar { background: #fff; box-shadow: inset 0 0 0 1px #122319; }
:root[data-theme="dark"] .cmp-h.plan-cream .cmp-bar, :root[data-theme="dark"] .plan-best-row.plan-cream .cmp-bar { box-shadow: none; background: #f4f7ea; }
.why-name { font-size: 12.5px; }
.why-center text { font-size: 7.5px; }

/* ---- Home: done state ---- */
.hero-today.is-done { background: #122319; border-color: #122319; color: #f4f7ea; }
.today-done { gap: 14px; padding: 4px 2px; }
.done-ring { display: inline-flex; width: 46px; height: 46px; border-radius: 50%; align-items: center; justify-content: center; background: #cdef67; color: #122319; box-shadow: 0 0 0 5px rgba(205,239,103,.16), 0 0 22px rgba(205,239,103,.35); flex: none; }
.done-ring svg { width: 24px; height: 24px; }
.done-txt { flex: 1; display: grid; gap: 1px; }
.today-done .done-txt strong { flex: none; font-size: 1.05rem; font-weight: 650; letter-spacing: .01em; }
.done-txt span { font-size: .85rem; color: rgba(244,247,234,.65); }
.hero-today.is-done .edit-link { color: #f4f7ea; text-decoration: none; border: 1px solid rgba(244,247,234,.35); border-radius: 999px; padding: 5px 14px; font-size: .8rem; }
.hero-today.is-done .dd b { color: rgba(244,247,234,.6); }
.hero-today.is-done .dd i { border-color: rgba(244,247,234,.3); }
.hero-today.is-done .dd.on i { background: #cdef67; border-color: #cdef67; }
.hero-today.is-done .dd.on i::after { border-color: #122319; }
.hero-today.is-done .dd.today i { border-color: #cdef67; }
.hero-today.is-done .week-dots.mini { margin-top: 16px; padding-top: 12px; border-top: 1px solid rgba(244,247,234,.12); }

/* ---- Why: turning Venn ---- */
.why-stage { margin: 6px auto 0; max-width: 360px; }
.why-stage .why-svg { max-width: none; margin: 0; }
.vn { cursor: pointer; outline: none; transition: opacity .35s; }
.vn circle { mix-blend-mode: multiply; fill-opacity: .85; stroke: var(--ink); stroke-opacity: .55; stroke-width: 1; transition: fill-opacity .35s, stroke-opacity .35s; }
.vn-life circle { fill-opacity: .6; }
.vn:focus-visible circle { stroke-width: 3; stroke-opacity: 1; }
.vn-name { font-size: 12px; font-weight: 700; fill: var(--ink); pointer-events: none; font-family: inherit; letter-spacing: .02em; }
.vn-core { cursor: pointer; outline: none; }
.vn-hit { fill: transparent; }
.vn-dot { fill: var(--ink); }
.vn-pulse { fill: none; stroke: var(--ink); stroke-opacity: .5; transform-box: fill-box; transform-origin: center; animation: vn-pulse 4s ease-out infinite; }
.vn-core:focus-visible .vn-hit { stroke: var(--ink); stroke-width: 2; }
@keyframes vn-pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(6); opacity: 0; } }
.why[data-sel="body"] .vn-mind, .why[data-sel="body"] .vn-life, .why[data-sel="mind"] .vn-body, .why[data-sel="mind"] .vn-life, .why[data-sel="life"] .vn-body, .why[data-sel="life"] .vn-mind { opacity: .4; }
.why[data-sel="body"] .vn-body circle, .why[data-sel="mind"] .vn-mind circle, .why[data-sel="life"] .vn-life circle { fill-opacity: .95; stroke-opacity: 1; stroke-width: 1.6; }
:root[data-theme="dark"] .vn circle { mix-blend-mode: normal; fill-opacity: .6; }
:root[data-theme="dark"] .vn-life circle { fill: #f4f7ea; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .vn circle { mix-blend-mode: normal; fill-opacity: .6; } :root:not([data-theme="light"]) .vn-life circle { fill: #f4f7ea; } }
@media (prefers-reduced-motion: reduce) { .vn-pulse { animation: none; opacity: 0; } }
.why-words { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 6px; }
.why-words i { font-style: normal; font-size: .75rem; padding: 2px 10px; border-radius: 999px; background: rgba(18,35,25,.08); }


.why-top { margin: 14px 0 6px; text-align: center; }
.why-top h2 { font-size: 1.05rem; margin: 0 0 2px; }
.why-top .why-stage { max-width: 300px; margin-top: 0; }
.why-top > .muted { margin: 0 auto; max-width: 34ch; font-size: .9rem; }
.why-top .why-panel { text-align: left; }

/* ---- hero with the Venn on the right ---- */
.hero.why { margin-top: 10px; text-align: left; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 6px; align-items: center; }
.hero-copy { min-width: 0; }
.hero-venn { min-width: 0; }
.hero-venn .why-stage { max-width: none; margin: 0; }
.hero-venn .why-svg { overflow: visible; }
.hero-venn .vn-name { font-size: 19px; }
.hero.why .lead { margin-top: 8px; }
.why-detail { margin: 14px 0 6px; text-align: center; }
.why-detail h2 { font-size: 1.05rem; margin: 0 0 2px; }
.why-detail > .muted { margin: 0 auto; max-width: 36ch; font-size: .9rem; }
.why-detail .why-panel { text-align: left; }

.hero-venn .why-svg { margin: -8px 0; }

.hero-grid { grid-template-columns: 1.3fr .7fr; }
.hero-venn .why-stage { width: 92%; margin-left: auto; }
.hero-venn .why-svg { margin: -4px 0; }
:root[data-theme="dark"] .vn-life circle { fill-opacity: .5; }
.why-detail { display: none; }
.hero.why { padding-bottom: 16px; }
.why-panel { margin-top: 10px; }
.why-more { margin: 10px 0 6px; border-top: 1px solid var(--line); padding-top: 8px; }
.why-more summary { cursor: pointer; font-weight: 700; font-size: 1rem; padding: 6px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.why-more summary::-webkit-details-marker { display: none; }
.why-more summary::after { content: "+"; font-size: 1.3rem; font-weight: 400; color: var(--muted); }
.why-more[open] summary::after { content: "\2212"; }
.why-more p { margin: 8px 0; font-size: .92rem; }

.why-list { margin: 8px 0; padding-left: 1.2em; font-size: .92rem; }
.why-list li { margin: 6px 0; }

/* ---- 3-month saving box ---- */
.save-box { margin: 16px 0 4px; padding: 14px; border-radius: 16px; background: var(--accent-soft); text-align: center; }
.save-box h3 { margin: 0 0 2px; font-size: 1.05rem; }
.save-box p { margin: 0 0 10px; font-size: .9rem; }
.save-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.save-c { background: var(--surface); border-radius: 12px; padding: 10px 4px; display: grid; gap: 2px; justify-items: center; position: relative; overflow: hidden; }
.save-c .cmp-bar { position: absolute; left: 0; right: 0; top: 0; height: 5px; margin: 0; background: #ee744b; }
.save-c.plan-cream .cmp-bar { background: #fff; box-shadow: inset 0 -1px 0 #122319; }
.save-c.plan-lime .cmp-bar { background: #cdef67; }
.save-c strong { font-size: .75rem; margin-top: 6px; }
.save-price { font-size: 1.15rem; font-weight: 700; }
.save-c s { font-size: .75rem; color: var(--muted); }
.save-c .cmp-sub { margin-top: 2px; }

/* bigger turning circles */
.hero-grid { grid-template-columns: 1fr 1fr; gap: 0; }
.hero-venn .why-stage { width: 118%; margin: -14px -8px -14px auto; }
.hero-venn .why-svg { margin: 0; }

/* medium size */
.hero-grid { grid-template-columns: 1.15fr .85fr; }
.hero-venn .why-stage { width: 104%; margin: -8px -4px -8px auto; }

/* ---- toolkit cards with sample previews ---- */
.val-grid { grid-template-columns: 1fr; }
.val-top { display: flex; gap: 12px; align-items: flex-start; }
.val-top h3 { margin: 0 0 2px; }
.val-top .val-ic { flex: none; }
.demo { margin-top: 12px; padding: 10px; border-radius: 12px; background: var(--bg); border: 1px dashed var(--line); }
.demo .tag { margin-bottom: 8px; display: inline-block; }
.demo .mini-meal { margin-top: 2px; }
.demo .spark { width: 100%; height: 56px; margin-top: 6px; }
.demo .ticks { margin: 8px 0 0; }
.demo-bubble { margin: 0; display: inline-block; background: var(--accent-soft); color: var(--ink); border-radius: 14px 14px 14px 4px; padding: 8px 12px; font-size: .88rem; }
@media (min-width: 640px) { .val-grid { grid-template-columns: 1fr 1fr; } }

/* ---- scroll reveal ---- */
main.wrap { overflow-x: clip; }
.rv-on .rv { opacity: 0; transition: opacity .65s ease, transform .65s cubic-bezier(.2,.7,.2,1); will-change: opacity, transform; }
.rv-on .rv-pop { transform: translateY(26px) scale(.94); }
.rv-on .rv-left { transform: translateX(-40px); }
.rv-on .rv-right { transform: translateX(40px); }
.rv-on .rv.in { opacity: 1; transform: none; }
.rv-on .val-card:nth-child(2) { transition-delay: .06s; }
.rv-on .val-card:nth-child(3) { transition-delay: .12s; }
.rv-on .val-card:nth-child(4) { transition-delay: .18s; }
.demo-bubble { display: block; width: fit-content; }

/* collapsed toolkit cards */
.val-card { padding: 10px 14px; }
.val-card summary { list-style: none; cursor: pointer; align-items: center; }
.val-card summary::-webkit-details-marker { display: none; }
.val-txt { flex: 1; min-width: 0; }
.val-more { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); position: relative; }
.val-more::before, .val-more::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: var(--ink); transform: translate(-50%, -50%); transition: transform .25s; }
.val-more::after { transform: translate(-50%, -50%) rotate(90deg); }
.val-card[open] .val-more::after { transform: translate(-50%, -50%) rotate(0deg); }
.val-card h3 { margin: 0; }
.val-card .val-top p { margin: 0; }
.val-card .demo { margin-top: 10px; }
.val-card summary { font-weight: 400; } .val-card summary h3 { font-weight: 600; }

/* ---- toolkit: 2x2 tiles that expand over the whole block ---- */
.val-grid { grid-template-columns: 1fr 1fr; gap: 10px; align-content: stretch; }
.val-card { position: relative; padding: 14px 12px; cursor: pointer; display: flex; flex-direction: column; }
.val-grid .val-top { flex-direction: column; align-items: flex-start; gap: 8px; }
.val-card h3 { font-size: .92rem; line-height: 1.25; }
.val-card .val-top p { font-size: .8rem; margin-top: 2px; }
.val-card .demo { display: none; }
.val-card .val-more { position: absolute; top: 10px; right: 10px; width: 20px; height: 20px; }
.val-card.open .val-more::after { transform: translate(-50%, -50%) rotate(45deg); }
.val-card.open .val-more::before { transform: translate(-50%, -50%) rotate(45deg); }
.val-card:not(.open) .val-more::after { transform: translate(-50%, -50%) rotate(90deg); }
.val-card:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.val-grid.has-open .val-card:not(.open) { display: none; }
.val-card.open { grid-column: 1 / -1; grid-row: 1 / span 2; padding: 16px 14px; animation: val-pop .35s cubic-bezier(.2,.7,.2,1); }
.val-card.open .val-top { flex-direction: row; align-items: center; gap: 12px; padding-right: 28px; }
.val-card.open h3 { font-size: 1.05rem; }
.val-card.open .val-top p { font-size: .9rem; }
.val-card.open .demo { display: block; margin-top: 14px; }
@keyframes val-pop { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .val-card.open { animation: none; } }
.val-card.open .val-more::after { transform: translate(-50%, -50%) rotate(-45deg); }

/* open state: the other three become a slim column on the left */
.val-grid.has-open { grid-template-columns: 62px 1fr; grid-template-rows: repeat(3, 1fr); gap: 8px; }
.val-grid.has-open .val-card:not(.open) { display: flex; grid-column: 1; align-items: center; justify-content: center; padding: 6px; }
.val-grid.has-open .val-card:not(.open) .val-top { align-items: center; }
.val-grid.has-open .val-card:not(.open) .val-txt, .val-grid.has-open .val-card:not(.open) .val-more { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.val-card.open { grid-column: 2; grid-row: 1 / span 3; }
.val-card.open .val-top { flex-direction: column; align-items: flex-start; gap: 8px; }

/* ---- toolkit: icon column + detail panel ---- */
.tk { display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: stretch; }
.tk-tabs { display: grid; gap: 8px; grid-auto-rows: 1fr; }
.tk-tab { appearance: none; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; display: flex; align-items: center; justify-content: center; padding: 8px; cursor: pointer; transition: background .2s, border-color .2s, transform .2s; }
.tk-tab:hover { transform: translateX(2px); }
.tk-tab.on { background: var(--accent-soft); border-color: var(--ink); }
.tk-tab:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.tk-panels { min-width: 0; }
.tk-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 14px; height: 100%; box-sizing: border-box; }
.tk-panel.on { animation: tk-in .3s cubic-bezier(.2,.7,.2,1); }
.tk-panel h3 { margin: 0 0 4px; font-size: 1.05rem; }
.tk-panel > p { margin: 0; color: var(--muted); font-size: .9rem; }
.tk-panel .demo { display: block; margin-top: 14px; }
@keyframes tk-in { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tk-panel.on { animation: none; } .tk-tab:hover { transform: none; } }

/* ---- Foods table ---- */
.fchips { margin: 0 0 8px; gap: 6px; }
.fchip { font: inherit; font-size: .8rem; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.fchip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.fchip.warn:not(.on) { border-color: #ee744b; }
.ftable { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px 8px 8px; }
.frow { display: grid; grid-template-columns: 1fr repeat(4, 52px); gap: 4px; align-items: center; padding: 5px 0; border-bottom: 1px solid var(--line); }
.frow:last-child { border-bottom: 0; }
.fhead { font-size: .7rem; font-weight: 700; color: var(--muted); text-align: center; text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid var(--ink); }
.fhead span:first-child { text-align: left; }
.fgroup { font-size: .8rem; font-weight: 700; padding: 10px 0 2px; }
.fname { font: inherit; text-align: left; background: none; border: 0; padding: 4px 2px; color: var(--ink); cursor: pointer; display: grid; gap: 1px; min-width: 0; }
.fname strong { font-weight: 600; font-size: .9rem; overflow-wrap: anywhere; }
.used-badge { font-size: .68rem; color: var(--ink); background: var(--accent-soft); border-radius: 999px; padding: 1px 8px; width: fit-content; }
.fin { width: 100%; box-sizing: border-box; text-align: center; font: inherit; font-size: .85rem; padding: 7px 2px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); -moz-appearance: textfield; }
.fin::-webkit-outer-spin-button, .fin::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.fin:placeholder-shown { background: transparent; }
.fin.saved { border-color: #7fb13a; background: var(--accent-soft); }
.frow.off { opacity: .55; }
.imp-list { max-height: 42vh; overflow: auto; border: 1px solid var(--line); border-radius: 12px; padding: 4px 10px; margin-bottom: 12px; }
.imp-row { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; padding: 7px 0; border-bottom: 1px solid var(--line); }
.imp-row:last-child { border-bottom: 0; }

.linklike { font: inherit; font-size: .85rem; background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---- Guide sub-tabs ---- */
.g-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px; margin: 0 -2px 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.g-tabs::-webkit-scrollbar { display: none; }
.g-tab { flex: none; font: inherit; font-size: .88rem; font-weight: 600; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; white-space: nowrap; transition: background .2s, color .2s; }
.g-tab.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.g-tab:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.g-panel { display: none; }
.g-panel.on { display: block; animation: tk-in .3s cubic-bezier(.2,.7,.2,1); }
.g-intro { margin: 0 0 8px; }
.opt-card { padding: 12px 10px; }
@media print { .g-panel { display: block !important; animation: none; } .g-tabs { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .g-panel.on { animation: none; } }

/* ---- Coach Today: calmer, same look as the Clients tab ---- */
.today-pane .chip:not(.expiring):not(.inactive):not(.upcoming) { background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.today-pane .item-name a { color: var(--ink); text-decoration: none; font-weight: 700; }
.today-pane .item-name a:hover { text-decoration: underline; }
.today-pane .pkg-card .item-meta + .item-meta { margin-top: 2px; }
.today-pane .card { margin-bottom: 12px; }
.today-pane .sub { font-size: .9rem; margin: 18px 0 8px; color: var(--muted); font-weight: 700; }

/* ---- Meal tab: build your plate, tap to choose ---- */
.meal-build { margin: 10px 0 14px; padding: 12px; border-radius: 14px; background: var(--bg); border: 1px dashed var(--line); }
.mb-title { font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.mb-parts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.mb-part { display: inline-flex; align-items: center; gap: 5px; font-size: .85rem; font-weight: 600; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px 4px 7px; }
.mb-plus { color: var(--muted); font-size: .85rem; }
.hand-ic { flex: none; }
.row-portion .hand-ic { margin-right: 4px; vertical-align: -3px; }
.meal-pick { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: .85rem; min-height: 1.2em; }
.mp-hint { color: var(--muted); }
.mp-label { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; background: var(--ink); color: var(--bg); border-radius: 999px; padding: 2px 9px; margin-right: 8px; }
.mp-list { font-weight: 600; }
.meal-pick.complete .mp-label { background: #cdef67; color: #122319; }
.opt-card[data-opt] { cursor: pointer; transition: opacity .2s, border-color .2s, background .2s, transform .15s; -webkit-tap-highlight-color: transparent; }
.opt-card[data-opt]:active { transform: scale(.98); }
.opt-card.picked { border-color: var(--ink); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--ink); }
.opt-card.dim { opacity: .45; }
.opt-card[data-opt]:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@media print { .meal-build .meal-pick { display: none; } }

/* ---- Guide hero info + targets ---- */
.g-hero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.g-hero-top .h1 { margin: 0; }
.g-greet { margin: 8px 0 0; font-size: 1.05rem; }
.info-btn { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font: italic 700 .95rem Georgia, serif; cursor: pointer; line-height: 1; }
.info-btn[aria-expanded="true"] { background: var(--ink); color: var(--bg); }
.info-pop { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.info-pop[hidden] { display: none; }
@media print { .info-pop[hidden] { display: block; } }
.t-block { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.t-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)); gap: 8px; margin-top: 10px; }
.t-tile { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.t-n { font-weight: 700; font-size: 1.05rem; }
.t-l { font-size: .7rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.t-tiles { grid-template-columns: repeat(2, 1fr); } .t-n { font-size: 1rem; text-align: center; }

/* Sticky header; logo mark turns with scroll */
.top { position: sticky; top: 0; z-index: 40; }
.brand img { transform-origin: 50% 50%; will-change: transform; }
@media print { .top { position: static; } }

.brand-ga { font-weight: 800; font-size: 1.15rem; letter-spacing: .08em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.hero-grid { display: block; }

/* ---- Assessment form ---- */
.a-sec { font-size: 1.05rem; margin: 28px 0 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.goal-group { margin: 0 0 14px; }
.goal-gname { font-weight: 700; font-size: .8rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.goal-gname .opt { text-transform: none; letter-spacing: 0; font-weight: 400; }
.chips-pick .opt-pill input:disabled + span { opacity: .4; }
.scale-pick { display: grid; gap: 8px; grid-template-columns: repeat(5, 1fr); }
.scale-pick .opt-pill { flex: none; }
.scale-pick .opt-pill span { display: block; text-align: center; padding: 9px 0; min-height: 40px; border-radius: 12px; font-weight: 600; }
.scale-ends { display: flex; justify-content: space-between; font-size: .75rem; color: var(--muted); margin-top: 6px; }
.rank-box { margin-top: 16px; padding: 12px; border-radius: 14px; background: var(--bg); border: 1px dashed var(--line); }
.rank-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rank-item { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.rank-n { font-weight: 800; min-width: 28px; }
.rank-t { flex: 1; font-size: .92rem; }
.rank-btn { border: 1px solid var(--line); background: transparent; color: var(--ink); border-radius: 8px; width: 34px; height: 34px; cursor: pointer; font-size: .8rem; }
.rank-btn:disabled { opacity: .3; cursor: default; }
.act-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.act-row select { max-width: 55%; }
.align-box { margin: 12px 0; padding: 12px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); font-size: .9rem; }
.align-box ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }

/* assessment refinements */
.scale-pick.s10 { grid-template-columns: repeat(10, 1fr); gap: 4px; }
.scale-pick.s10 .opt-pill span { padding: 9px 0; font-size: .82rem; border-radius: 10px; min-width: 0; }
.chips-pick .opt-pill[data-rank]::after { content: attr(data-rank); position: absolute; top: -7px; right: -4px; min-width: 20px; height: 20px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: .72rem; font-weight: 800; display: grid; place-items: center; padding: 0 5px; }
.more-d { margin-top: 6px; }
.more-d summary { cursor: pointer; font-size: .85rem; color: var(--muted); list-style: none; padding: 4px 0; }
.more-d summary::-webkit-details-marker { display: none; }
.more-d[open] summary { color: var(--ink); }
.more-d textarea { margin-top: 6px; }
.when-box { margin-top: 10px; }
.act-row .two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; flex: 1; max-width: 70%; }
.act-row { display: block; } .act-row .two { max-width: none; margin-top: 6px; } .act-row select { max-width: none; }
.chips-pick .opt-pill { max-width: 100%; } .chips-pick .opt-pill span { white-space: normal; text-align: left; }

.sup-list { display: grid; gap: 8px; }
.sup-card { position: relative; display: block; margin: 0; }
.sup-card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sup-card span { display: block; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); cursor: pointer; }
.sup-card b { display: block; font-size: .95rem; }
.sup-card small { display: block; color: var(--muted); font-size: .82rem; margin-top: 2px; }
.sup-card input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.sup-card input:checked + span small { color: inherit; opacity: .8; }
.sup-card input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Guide: meals in a left column, like the toolkit */
.gk { display: grid; grid-template-columns: 68px minmax(0, 1fr); gap: 10px; align-items: start; }
.gk .g-tabs { display: grid; gap: 8px; overflow: visible; padding: 0; margin: 0; position: sticky; top: 74px; }
.gk .g-tab { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: 14px; font-size: .68rem; line-height: 1.15; white-space: normal; text-align: center; word-break: break-word; }
.gk .g-tab.on { background: var(--accent-soft); color: var(--ink); border-color: var(--ink); }
.gk-n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; font-weight: 800; background: var(--bg); border: 1px solid var(--line); }
.gk .g-tab.on .gk-n { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.gk-panels { min-width: 0; }
.gk .card.meal { padding: 12px; margin-top: 0; }
.gk .opt-pair, .gk .opt-pair.three { grid-template-columns: 1fr; gap: 14px; }
.gk .opt-pair::after { left: 50%; top: 50%; }
.gk .opt-pair.three::before { left: 50%; top: 33.333%; }
.gk .opt-pair.three::after { left: 50%; top: 66.666%; }
.gk .opt-pair.three .opt-card { flex-direction: row; text-align: left; padding: 10px 12px; gap: 10px; }
.gk .opt-pair.three .opt-txt { align-items: flex-start; }
@media print { .gk { display: block; } .gk .g-tabs { display: none !important; } .gk .g-panel { display: block !important; margin-bottom: 16px; } }

/* Guide meals: compact, options side by side */
.gk .opt-pair { grid-template-columns: 1fr 1fr; gap: 8px; }
.gk .opt-pair::after { left: 50%; top: 50%; }
.gk .opt-pair .opt-card { padding: 8px 9px; gap: 6px; min-width: 0; }
.gk .opt-pair .food-name { font-size: .84rem; line-height: 1.2; overflow-wrap: anywhere; }
.gk .opt-pair .portion, .gk .opt-pair .opt-note { font-size: .72rem; line-height: 1.25; }
.gk .opt-pair.three { grid-template-columns: 1fr; gap: 6px; }
.gk .opt-pair.three::before, .gk .opt-pair.three::after { display: none; }
.gk .opt-pair.three .opt-card { padding: 7px 10px; }
.gk .bucket { margin-top: 10px; }
.gk .bucket-name { margin-bottom: 6px; }
.gk .card.meal { padding: 10px; }

.gk .opt-pair.three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.gk .opt-pair.three .opt-card { flex-direction: column; text-align: center; padding: 8px 4px; gap: 2px; justify-content: flex-start; }
.gk .opt-pair.three .opt-txt { align-items: center; }
.gk .opt-pair.three .food-name { font-size: .76rem; hyphens: auto; }
.gk .opt-pair.three .portion, .gk .opt-pair.three .opt-note { font-size: .66rem; }

/* Toolkit: all four at once */
.tkg { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tk-card { display: flex; flex-direction: column; gap: 6px; padding: 16px 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.tk-card .val-ic { width: 42px; height: 42px; margin-bottom: 4px; }
.tk-card h3 { margin: 0; font-size: 1rem; line-height: 1.2; }
.tk-card > p { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.35; }
.tk-card .mini { margin-top: auto; padding-top: 10px; display: flex; flex-wrap: wrap; gap: 5px; }
.tk-card .chip { font-size: .7rem; padding: 3px 9px; }
.tk-card .spark { height: 40px; }
.mini-bubble { font-size: .78rem; padding: 7px 11px; border-radius: 14px 14px 14px 4px; background: var(--accent-soft); color: var(--ink); }
.tkc-0 { background: var(--accent-soft); }
.tkc-2 .val-ic, .tkc-1 .val-ic { background: var(--bg); }
@media (prefers-reduced-motion: no-preference) { .tk-card { transition: transform .2s; } .tk-card:hover { transform: translateY(-2px); } }
@media (min-width: 640px) { .tkg { grid-template-columns: repeat(4, 1fr); } }
.tkc-0 .chip { background: var(--surface); } .tkc-0 .val-ic { background: var(--surface); }

/* Multi-step assessment */
.a-prog { margin: 14px 0 6px; }
.a-prog-top { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); margin-bottom: 6px; }
.a-prog-top #a_ttl { font-weight: 600; color: var(--ink); }
.a-bar { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.a-bar i { display: block; height: 100%; width: 12%; background: var(--accent); border-radius: 999px; transition: width .35s cubic-bezier(.2,.7,.2,1); }
.a-step[hidden] { display: none; }
.a-step .a-sec { border-top: 0; margin-top: 12px; padding-top: 0; font-size: 1.25rem; }
.a-nav { display: flex; gap: 10px; justify-content: flex-end; }
.a-nav .btn { flex: 1; }
.a-nav .btn[hidden] { display: none; }

/* Build your plate: hand portions only, one line of four */
.meal-build .mb-parts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.meal-build .mb-part { flex-direction: column; justify-content: flex-start; align-items: center; text-align: center; gap: 2px; padding: 8px 2px; border-radius: 12px; line-height: 1.15; min-width: 0; }
.meal-build .mb-amt { font-size: .74rem; font-weight: 700; }
.meal-build .mb-b { font-size: .58rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.meal-build .hand-ic { width: 20px; height: 20px; }
.meal-build { padding: 10px; }
/* Daily ballpark: smaller, four in one line */
.t-block { margin-top: 10px; padding-top: 10px; }
.t-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.t-tile { padding: 7px 2px; border-radius: 10px; }
.t-n { font-size: .82rem; text-align: center; line-height: 1.15; }
.t-l { font-size: .58rem; }
.t-row { font-size: .85rem; }
.t-sub { margin: 6px 0 0; font-size: .72rem; }
.meal-build .mb-part { display: flex; }

.rank-grip { border: 0; background: transparent; color: var(--muted); font-size: 1.5rem; line-height: 1; width: 40px; height: 40px; cursor: grab; touch-action: none; border-radius: 8px; }
.rank-item { user-select: none; -webkit-user-select: none; }
.rank-item.dragging { box-shadow: 0 8px 20px rgba(0,0,0,.18); border-color: var(--ink); background: var(--accent-soft); position: relative; z-index: 2; }
.rank-item.dragging .rank-grip { cursor: grabbing; color: var(--ink); }

/* check-in feeling */
.hero-today .late-note { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; padding: 8px 10px; border-radius: 12px; background: rgba(120,120,140,.12); color: var(--muted, #6b6b76); }
.late-bulb { display: inline-flex; animation: bulbFade 3.2s ease-in-out infinite; }
.is-later .late-bulb { animation-duration: 2s; opacity: .55; }
.late-txt { display: flex; flex-direction: column; font-size: .9rem; line-height: 1.25; text-align: left; }
.late-txt strong { font-size: .95rem; }
.hero-today.is-later { filter: saturate(.75); }
@keyframes bulbFade { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.done-ring.pop { animation: ringPop .7s cubic-bezier(.2,1.6,.4,1); }
@keyframes ringPop { 0% { transform: scale(.4); } 70% { transform: scale(1.18); } 100% { transform: scale(1); } }
.confetti { position: fixed; left: 50%; top: 30%; width: 0; height: 0; z-index: 9999; pointer-events: none; }
.confetti i { position: absolute; width: 8px; height: 12px; border-radius: 2px; opacity: 0; animation: confettiGo var(--d, 1.2s) ease-out forwards; }
.confetti i.star { width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 8px 2px rgba(242,201,76,.8); }
@keyframes confettiGo { 0% { transform: translate(0,0) rotate(0); opacity: 1; } 70% { opacity: 1; } 100% { transform: translate(var(--x), calc(var(--y) + 140px)) rotate(var(--r)); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .late-bulb, .done-ring.pop { animation: none; } }

/* meal targets and fit */
.tgt-box { margin: 10px 0 14px; padding: 12px; border-radius: 12px; background: rgba(120,120,140,.08); }
.tgt-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 6px 0 10px; }
.tgt-grid .field { margin: 0; }
.tgt-grid input { width: 100%; min-width: 0; }
.tgt-box .row { display: flex; gap: 8px; flex-wrap: wrap; }
.mtable .tgt-row th, .mtable .tgt-row td { font-weight: 700; }
.gap { margin: 4px 0 0; font-size: .85rem; }
.gap.ok { color: #2f7d57; }
.gap.off { color: #b4552d; }

.t-tiles.t3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.t-tiles.t2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sup-card .sup-ic { flex: none; width: 36px; height: 36px; margin-right: 10px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: rgba(90,160,200,.14); color: #3c7fa6; }

.sup-card.has-ic > span { display: flex; align-items: center; gap: 12px; }
.sup-card.has-ic .sc-tx { min-width: 0; }
.sup-card.has-ic .sup-ic { margin: 0; font-style: normal; }

/* meal rows: a tile for the macro, options stacked in a column beside it */
.gk .bk { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 10px; align-items: stretch; margin: 10px 0; }
.gk .bk-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 10px 6px; border-radius: 14px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid #ee744b; }
.gk .bk.b-carb .bk-tile { border-top-color: #122319; }
.gk .bk.b-fat .bk-tile { border-top-color: #f2c14e; }
.gk .bk.b-veg .bk-tile { border-top-color: #8fc43a; }
:root[data-theme="dark"] .gk .bk.b-carb .bk-tile { border-top-color: #cdef67; }
.gk .bk-name { font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.gk .bk-amt { font-size: .85rem; font-weight: 700; line-height: 1.2; }
.gk .bk .opt-pair, .gk .bk .opt-pair.three { display: flex; flex-direction: column; gap: 6px; grid-template-columns: none; }
.gk .bk .opt-card, .gk .bk .opt-pair.three .opt-card { flex-direction: row; align-items: center; text-align: left; justify-content: flex-start; padding: 9px 12px; min-height: 44px; width: 100%; }
.gk .bk .opt-txt, .gk .bk .opt-pair.three .opt-txt { align-items: flex-start; }
.gk .bk .food-name, .gk .bk .opt-pair.three .food-name { font-size: .92rem; }
.gk .bk .portion, .gk .bk .opt-pair.three .portion { font-size: .78rem; }
.gk .bk-hint { margin: 4px 0 0; color: var(--muted); font-size: .85rem; }

/* thinner rows so a whole meal fits on one screen */
.gk .bk { grid-template-columns: 76px minmax(0, 1fr); gap: 8px; margin: 6px 0; }
.gk .bk-tile { padding: 6px 4px; gap: 1px; border-radius: 12px; border-top-width: 3px; }
.gk .bk-tile .hand-ic { width: 15px; height: 15px; }
.gk .bk-name { font-size: .62rem; }
.gk .bk-amt { font-size: .74rem; }
.gk .bk .opt-pair, .gk .bk .opt-pair.three { gap: 4px; }
.gk .bk .opt-card, .gk .bk .opt-pair.three .opt-card { padding: 5px 10px; min-height: 34px; border-radius: 10px; }
.gk .bk .opt-txt, .gk .bk .opt-pair.three .opt-txt { flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: 8px; row-gap: 0; }
.gk .bk .food-name, .gk .bk .opt-pair.three .food-name { font-size: .86rem; line-height: 1.25; }
.gk .bk .portion, .gk .bk .opt-pair.three .portion { font-size: .72rem; line-height: 1.25; }
.gk .bk .opt-note { flex-basis: 100%; margin-top: 1px; font-size: .68rem; text-align: left; }
.gk .bk-hint { font-size: .78rem; margin: 2px 0 0; }

.meal-macros { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; margin: 6px 0 2px; font-size: .8rem; color: var(--muted); }
.meal-macros .mm b { color: var(--ink); }
.meal-macros .mm-note { font-size: .7rem; opacity: .8; }
.cue-card p, .eatout .eo-list li { margin: 0 0 6px; }
.eatout .eo-list { padding-left: 18px; }
.shop summary { cursor: pointer; font-weight: 600; }
.shop .shop-g { margin: 10px 0; }
.shop .shop-i { display: flex; margin: 4px 0; }

.meal-macros { flex-wrap: nowrap; gap: 8px; font-size: .74rem; white-space: nowrap; }
.meal-macros .mm-note { font-size: .66rem; text-transform: uppercase; letter-spacing: .05em; }

/* chips */
.gk .bk-r { min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.gk .bk .opt-pair.chips { display: flex; flex-direction: row; flex-wrap: wrap; gap: 6px; }
.gk .bk .opt-card.chip { width: auto; min-height: 0; padding: 5px 10px 5px 8px; border-radius: 999px; gap: 6px; flex-direction: row; align-items: center; }
.gk .bk .chip .chip-ic { font-size: 1rem; line-height: 1; }
.gk .bk .chip .opt-txt { flex-direction: row; align-items: baseline; flex-wrap: nowrap; gap: 5px; }
.gk .bk .chip .food-name { font-size: .84rem; white-space: nowrap; }
.gk .bk .chip .portion { font-size: .68rem; white-space: nowrap; }
.gk .bk .bk-note { margin: 0; font-size: .7rem; color: var(--muted); text-align: left; line-height: 1.3; }
.gk .bk { align-items: center; }
.gk .bk-tile { align-self: stretch; }
.g-tab.now::after { content: ''; position: absolute; top: 6px; right: 6px; width: 7px; height: 7px; border-radius: 50%; background: #ee744b; }
.g-tab { position: relative; }
.gk .opt-pair.chips::before, .gk .opt-pair.chips::after { display: none !important; content: none; }
.gk .bk { grid-template-columns: 66px minmax(0, 1fr); gap: 8px; }
.gk .bk .chip .chip-ic { font-size: .95rem; }
.gk .bk .opt-card.chip { padding: 4px 9px 4px 7px; }
.gk .bk .opt-pair.chips { gap: 5px; }
.req-star { color: #c0392b; font-weight: 700; }

/* goal ranking: tap a goal to make it #1 */
.rank-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.rank-item { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; user-select: none; }
.rank-item .rank-n { flex: none; width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(120,120,140,.16); font-weight: 700; font-size: .85rem; }
.rank-item .rank-t { flex: 1; min-width: 0; font-weight: 600; }
.rank-item .rank-tag { flex: none; font-size: .72rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; }
.rank-item.is-top { border-color: #cdef67; background: rgba(205,239,103,.22); }
.rank-item.is-top .rank-n { background: #122319; color: #cdef67; }
.rank-item.is-top .rank-tag { border-color: transparent; background: #122319; color: #cdef67; }

/* goals: sessions and drag cards */
.goal-sess { margin: 12px 0; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.goal-sess-h { margin: 0 0 8px; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.goal-sess input[type=text] { margin-top: 8px; width: 100%; }
.goal-count { margin-left: 6px; font-weight: 700; color: var(--ink); }
.rank-item { touch-action: none; cursor: grab; }
.rank-item.dragging { cursor: grabbing; box-shadow: 0 8px 22px rgba(0,0,0,.18); transform: scale(1.02); position: relative; z-index: 2; }
.rank-item .rank-grip { flex: none; font-size: 1.3rem; line-height: 1; color: var(--muted); padding: 0 4px; }
.rank-item .rank-tag { display: none; }
.rank-item { align-items: center; } .rank-item .rank-grip { display: inline-flex; align-items: center; height: 100%; }

/* compact goals box */
.goal-box { margin: 8px 0; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; }
.goal-box .goal-sess { margin: 0; padding: 8px 10px; border: 0; border-radius: 0; background: transparent; }
.goal-box .goal-sess + .goal-sess { border-top: 1px solid var(--line); }
.goal-box .goal-sess-h { margin: 0 0 5px; font-size: .66rem; }
.goal-box .opts.chips-pick { gap: 5px; }
.goal-box .opt-pill > span { padding: 5px 10px; font-size: .8rem; line-height: 1.25; }
.goal-box .opt-pill[data-rank]::after { top: -5px; right: -3px; }
/* drag affordance */
.rank-item .rank-grip { flex-direction: column; gap: 0; align-items: center; justify-content: center; padding: 2px 6px; border-radius: 8px; background: rgba(120,120,140,.12); color: var(--ink); height: auto; }
.rank-item .rank-grip b { font-size: 1.05rem; line-height: 1; }
.rank-item .rank-grip small { font-size: .58rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.rank-list.nudge .rank-item:nth-child(2) { animation: rankNudge .9s ease-in-out 2; }
@keyframes rankNudge { 0%, 100% { transform: translateY(0); } 35% { transform: translateY(-9px); } 70% { transform: translateY(3px); } }
@media (prefers-reduced-motion: reduce) { .rank-list.nudge .rank-item { animation: none; } }
.goal-box .chips-pick .opt-pill span { padding: 5px 10px; min-height: 0; font-size: .8rem; }
.goal-box .chips-pick .opt-pill[data-rank] span { padding-right: 18px; }

.rank-item { transition: transform .18s ease, box-shadow .18s ease; will-change: transform; }
.rank-item.dragging { transition: none; transform-origin: center; z-index: 3; box-shadow: 0 10px 26px rgba(0,0,0,.22); }

/* goals as dropdowns */
.goal-dd > summary { list-style: none; display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 2px 0; min-height: 36px; }
.goal-dd > summary::-webkit-details-marker { display: none; }
.goal-dd .goal-sess-h { margin: 0; flex: none; width: 74px; }
.goal-dd .gs-sum { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .84rem; color: var(--muted); }
.goal-dd .gs-sum.has { color: var(--ink); font-weight: 600; }
.goal-dd .gs-chev { flex: none; color: var(--muted); transition: transform .15s; }
.goal-dd[open] .gs-chev { transform: rotate(180deg); }
.goal-dd[open] > summary { margin-bottom: 8px; }
.goal-dd.goal-row > summary::after, .goal-dd.goal-row[open] > summary::after { content: none; }

/* goal sections stay open */
.goal-dd > summary { cursor: default; min-height: 0; }
.goal-dd .gs-sum, .goal-dd .gs-chev { display: none; }
.goal-dd .goal-sess-h { width: auto; }
.goal-dd[open] > summary { margin-bottom: 5px; }

/* 1 to 10 slider */
.scale-slider { position: relative; padding: 30px 6px 0; }
.ss-bubble { position: absolute; top: 0; left: 50%; transform: translateX(-50%); min-width: 32px; padding: 3px 8px; border-radius: 10px; background: #122319; color: #cdef67; font-weight: 700; font-size: .85rem; text-align: center; }
.scale-slider.untouched .ss-bubble { background: rgba(120,120,140,.2); color: var(--muted); font-weight: 500; font-size: .72rem; left: 50%; }
.ss-range { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; margin: 0; background: transparent; --p: 50%; touch-action: pan-y; }
.ss-range::-webkit-slider-runnable-track { height: 8px; border-radius: 999px; background: linear-gradient(90deg, #122319 var(--p), rgba(120,120,140,.22) var(--p)); }
.ss-range::-moz-range-track { height: 8px; border-radius: 999px; background: rgba(120,120,140,.22); }
.ss-range::-moz-range-progress { height: 8px; border-radius: 999px; background: #122319; }
.ss-range::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -10px; border-radius: 50%; background: #cdef67; border: 3px solid #122319; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.ss-range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #cdef67; border: 3px solid #122319; }
.scale-slider.untouched .ss-range::-webkit-slider-runnable-track { background: rgba(120,120,140,.22); }
.scale-slider.untouched .ss-range::-webkit-slider-thumb { background: #fff; border-color: #9aa; }
.ss-ticks { display: flex; justify-content: space-between; padding: 2px 6px 0; font-size: .68rem; color: var(--muted); }
.ss-radio { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.scale-slider .ss-range { border: 0; padding: 0; box-shadow: none; background: transparent; min-height: 0; border-radius: 0; outline-offset: 4px; }

.act-row input[data-other] { width: 100%; margin: 6px 0; }

/* example hints in answer boxes */
.field input::placeholder, .field textarea::placeholder, .when-box input::placeholder, .when-box textarea::placeholder, .more-d textarea::placeholder, .act-row input::placeholder { color: #9a9a9a; font-style: italic; opacity: 1; }

/* coach view of an assessment */
.a-body { margin-top: 14px; }
.a-glance { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 14px; }
.a-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 10px; }
.a-chip { display: flex; flex-direction: column; gap: 2px; font-weight: 700; font-size: .95rem; min-width: 0; overflow-wrap: anywhere; }
.a-chip small { font-weight: 600; font-size: .7rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.a-sec { margin-top: 16px; }
.a-sec h3 { margin: 0 0 4px; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 4px; }
.a-row { padding: 8px 0; }
.a-sec .a-row + .a-row { border-top: 1px dashed var(--line); }
.a-q { font-size: .8rem; color: var(--muted); margin-bottom: 2px; }
.a-val { font-weight: 600; white-space: pre-wrap; overflow-wrap: anywhere; }
.a-more { margin-top: 4px; padding: 6px 10px; border-left: 3px solid var(--accent-ink); background: var(--accent-soft); border-radius: 0 8px 8px 0; font-size: .9rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.a-goals { margin: 4px 0 0; padding-left: 20px; font-weight: 600; }
.a-goals li { margin: 2px 0; }
.a-scale { display: flex; align-items: center; gap: 8px; }
.a-dots { display: inline-flex; gap: 3px; }
.a-dots i { width: 14px; height: 8px; border-radius: 3px; background: var(--line); }
.a-dots i.on { background: var(--accent); }
.a-more small { display: block; font-size: .72rem; color: var(--muted); margin-bottom: 1px; }

/* GA notes, flags, plan confirm */
.a-q { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.a-plus { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font: inherit; font-weight: 700; line-height: 1; cursor: pointer; padding: 0; }
.a-plus.has { background: #6a58c9; border-color: #6a58c9; color: #fff; }
.a-ga { display: flex; gap: 8px; align-items: flex-start; margin-top: 6px; padding: 8px; border-radius: 10px; background: rgba(106, 88, 201, .12); border: 1px solid #6a58c9; }
.a-ga[hidden] { display: none; }
.ga-tag { flex: none; padding: 1px 7px; border-radius: 6px; background: #6a58c9; color: #fff; font-weight: 800; font-size: .7rem; letter-spacing: .04em; margin-top: 3px; }
.a-ga textarea { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0; font: inherit; font-size: .92rem; color: var(--ink); resize: vertical; outline: none; }
.a-call { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-bottom: 14px; }
.a-call-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.a-save { font-size: .75rem; color: var(--muted); text-align: right; }
.a-save.bad { color: var(--bad); font-weight: 600; }
.a-todo { margin: 6px 0 0; font-size: .85rem; color: var(--bad); font-weight: 600; }
.a-blank { border-left: 3px solid var(--bad); padding-left: 10px; background: var(--bad-soft); border-radius: 0 8px 8px 0; }
.a-none { font-size: .88rem; font-weight: 600; color: var(--bad); }
.a-plan { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.a-plan select { width: 100%; margin-top: 6px; }
.plan-confirm { margin-top: 12px; }
.plan-confirm p { margin: 4px 0 8px; }
.plan-line { margin: 2px 0 10px; }
.plan-pill { display: inline-block; padding: 2px 11px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--accent-soft); color: var(--ink); border: 1px solid var(--line); }

/* welcome + tour */
.welcome { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 18px; background: rgba(13, 23, 17, .72); }
.wl-card { width: 100%; max-width: 380px; max-height: 92vh; overflow: auto; background: var(--surface); color: var(--ink); border-radius: 22px; padding: 26px 22px 18px; text-align: center; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); }
.wl-ic { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--ink); }
.wl-slide h2 { margin: 0 0 8px; font-size: 1.4rem; }
.wl-slide p { margin: 0 0 10px; color: var(--muted); line-height: 1.5; }
.wl-slide[hidden] { display: none; }
.wl-plan { margin: 12px 0 8px; padding: 12px; border-radius: 14px; background: var(--accent-soft); }
.wl-plan p { margin: 6px 0 0; color: var(--ink); font-size: .92rem; }
.wl-small { font-size: .8rem; }
.wl-dots { display: flex; justify-content: center; gap: 6px; margin: 14px 0; }
.wl-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.wl-dots i.on { background: var(--accent); width: 20px; border-radius: 4px; }
.wl-actions { display: flex; gap: 8px; justify-content: center; }
.wl-actions .btn { min-width: 120px; }
.wl-skip { margin-top: 12px; }
.wl-skip[hidden], .wl-actions [hidden] { display: none; }
.dlg-actions[hidden] { display: none; }
.wl-ic.wl-logo { background: none; width: 40px; height: 40px; margin-bottom: 8px; }
.wl-ic.wl-logo img { width: 36px; height: 36px; object-fit: contain; opacity: .85; }
.wl-plan { text-align: left; }
.wl-plan .plan-pill { background: var(--surface); }
.wl-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.wl-list li { position: relative; padding-left: 24px; font-size: .92rem; color: var(--ink); }
.wl-list li::before { content: ""; position: absolute; left: 2px; top: 3px; width: 6px; height: 11px; border: solid var(--accent); border-width: 0 2.5px 2.5px 0; transform: rotate(40deg); }
.wl-logo .mk-d { display: none; }
:root[data-theme="dark"] .wl-logo .mk-l { display: none; }
:root[data-theme="dark"] .wl-logo .mk-d { display: inline; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .wl-logo .mk-l { display: none; } :root:not([data-theme="light"]) .wl-logo .mk-d { display: inline; } }

/* tour spotlight on the menu item being explained */
.welcome.wl-tour { background: transparent; align-items: flex-start; padding-top: 72px; }
.wl-spot { position: fixed; border-radius: 12px; border: 2px solid var(--accent-ink, #cdef67); box-shadow: 0 0 0 100vmax rgba(13, 23, 17, .72); pointer-events: none; transition: left .25s, top .25s, width .25s, height .25s; }
.wl-spot[hidden] { display: none; }
.wl-card { position: relative; z-index: 2; }

.wl-again { width: 100%; margin-top: 12px; text-align: left; font: inherit; color: inherit; cursor: pointer; background: var(--surface); }
.wl-again .mk-d, .wl-again .todo-ic .mk-d { display: none; }
:root[data-theme="dark"] .wl-again .mk-l { display: none; }
:root[data-theme="dark"] .wl-again .mk-d { display: inline; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .wl-again .mk-l { display: none; } :root:not([data-theme="light"]) .wl-again .mk-d { display: inline; } }

.a-foods .a-fl { display: block; margin-top: 8px; }
.a-foods .a-fl > span:first-child { display: block; font-size: .8rem; color: var(--muted); margin-bottom: 2px; }
.a-foods .a-ga { margin-top: 0; align-items: center; }
.a-foods .a-ga .ga-tag { margin-top: 0; }
.a-foods .a-ga input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0; font: inherit; font-size: .92rem; color: var(--ink); outline: none; box-shadow: none; }
.a-foods .a-ga { align-items: flex-start; }
.a-foods .a-ga .ga-tag { margin-top: 3px; }

.a-savebar { display: flex; align-items: center; gap: 10px; margin: 10px 0 12px; }
.a-savebar .a-save { text-align: left; flex: 1; }
.dlg-actions .btn[disabled] { opacity: .45; cursor: not-allowed; }
.a-savebar .btn[disabled] { opacity: .45; cursor: not-allowed; }
.pri-pill { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: .68rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; background: #cdef67; color: #122319; vertical-align: middle; }

.a-sub { display: block; font-style: normal; font-weight: 500; font-size: .72rem; color: var(--muted); }
.bday-card { background: var(--accent-soft); border-color: var(--accent-ink); margin-bottom: 14px; }
.bday-card .sub { margin: 0 0 6px; }
.bday-row { display: flex; align-items: baseline; gap: 10px; padding: 6px 0; color: var(--ink); text-decoration: none; }
.bday-day { flex: none; min-width: 74px; font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }

.wt-row { display: grid; grid-template-columns: 1fr 88px; gap: 8px; }
.wt-row input, .wt-row select { min-width: 0; }

/* landing: the top block reads as a page title, not a card */
.hero { background: none; border: 0; border-radius: 0; box-shadow: none; padding: 30px 2px 18px; margin-top: 0; }
.hero .eyebrow { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--warm); margin-bottom: 10px; }
.hero h1 { font-size: clamp(2.1rem, 9.5vw, 2.9rem); line-height: 1.05; letter-spacing: -.02em; font-weight: 800; color: var(--ink); max-width: 12ch; margin: 0 0 14px; }
.hero h1::after { content: ""; display: block; width: 52px; height: 5px; border-radius: 3px; background: var(--warm); margin-top: 16px; }
.hero .tagline { font-size: 1.05rem; color: var(--muted); margin: 0 0 20px; }
.hero .lead { font-size: 1rem; color: var(--muted); }
.hero .btn { min-height: 48px; padding: 10px 22px; }

/* add to home screen */
.a2hs { position: relative; margin: 6px 0 14px; }
.a2hs-go { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 14px 10px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.a2hs-ic, .a2hs-big { border-radius: 22%; box-shadow: 0 1px 4px rgba(18, 35, 25, .25); flex: none; }
.a2hs-txt { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.a2hs-txt strong { font-size: .98rem; }
.a2hs-txt span { font-size: .84rem; color: var(--muted); }
.a2hs-more { font-size: .78rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: #cdef67; color: #122319; }
.a2hs-land .a2hs-go { padding-right: 44px; }
.a2hs-land .a2hs-more { display: none; }
.a2hs-x { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); width: 32px; height: 32px; border: 0; background: none; color: var(--muted); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.a2hs-home { margin: 0 0 10px; }
.a2hs-sheet { position: fixed; inset: 0; z-index: 9000; background: rgba(13, 23, 17, .6); display: flex; align-items: flex-end; justify-content: center; }
.a2hs-panel { width: 100%; max-width: 460px; background: var(--bg, #faf9f5); color: var(--ink); border-radius: 22px 22px 0 0; padding: 22px 22px calc(22px + env(safe-area-inset-bottom)); text-align: center; }
.a2hs-panel h2 { margin: 10px 0 4px; font-size: 1.3rem; }
.a2hs-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); margin: 14px 0 6px; }
.a2hs-tabs button { border: 0; background: none; color: var(--ink); font: inherit; font-weight: 600; font-size: .9rem; padding: 7px 18px; border-radius: 999px; cursor: pointer; }
.a2hs-tabs button[aria-selected="true"] { background: #122319; color: #cdef67; }
.a2hs-steps { text-align: left; margin: 12px 0 8px; padding-left: 1.4em; display: grid; gap: 10px; }
.a2hs-glyph { display: inline-block; min-width: 1.4em; text-align: center; border: 1px solid var(--line); border-radius: 6px; font-weight: 700; }
.a2hs-tip { margin: 8px 0 14px; }
.a2hs-ic, .a2hs-big { display: inline-flex; align-items: center; justify-content: center; background: #122319; color: #cdef67; box-shadow: none; }
.a2hs-ic { width: 44px; height: 44px; border-radius: 12px; }
.a2hs-big { width: 64px; height: 64px; border-radius: 18px; }
.a2hs-arrow { font-size: 1.5rem; color: var(--muted); line-height: 1; padding: 0 4px; }
.a2hs-hide { display: block; width: 100%; margin-top: 8px; padding: 10px; border: 0; background: none; color: var(--muted); font: inherit; font-size: .88rem; text-decoration: underline; cursor: pointer; }
.a2hs-x[hidden] { display: none; }
.next-steps { border-left: 5px solid #cdef67; }
.next-later h3 { margin-bottom: 4px; }
.next-later { margin-bottom: 14px; }
.next-steps { display: grid; gap: 10px; border: 0; padding: 0; margin: 18px 0; }
.next-steps .btn { margin: 0; }
.link-ask { margin: 6px 0 0; font-size: .82rem; font-weight: 700; color: var(--warm); }
.next-steps .btn { display: flex; align-items: center; justify-content: center; text-align: center; }
.ns-lead { margin: 10px 0 0; text-align: center; font-weight: 600; }

/* ---- Why three circles: visual summary ---- */
.why-more .why-lede { margin: 6px 0 12px; font-size: .95rem; }
.why-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.why-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); text-align: center; min-width: 0; }
.why-tile strong { font-size: .8rem; line-height: 1.15; overflow-wrap: anywhere; }
.why-tags { display: flex; flex-direction: column; gap: 4px; width: 100%; align-items: center; }
.why-tags i { font-style: normal; font-size: .72rem; padding: 2px 8px; border-radius: 999px; background: rgba(18,35,25,.06); color: var(--muted); }
.why-meet { display: flex; align-items: center; gap: 12px; margin: 10px 0 4px; padding: 12px 14px; border-radius: 16px; background: var(--accent-soft); color: var(--ink); }
.why-meet svg { flex: none; }
.why-more .why-meet p { margin: 0; font-size: .9rem; font-weight: 600; }
:root[data-theme="dark"] .why-tags i { background: rgba(244,247,234,.1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .why-tags i { background: rgba(244,247,234,.1); } }
.why-sw { display: block; flex: none; width: 40px; height: 40px; overflow: visible; }
.why-sw circle { transform-box: fill-box; transform-origin: center; -webkit-transform-origin: center; animation: why-pop 7.5s ease-in-out infinite; }
.why-tile:nth-child(2) .why-sw circle { animation-delay: 1.2s; }
.why-tile:nth-child(3) .why-sw circle { animation-delay: 2.4s; }
@keyframes why-pop { 0%, 22%, 100% { transform: scale(1); } 11% { transform: scale(1.18); } }
@media (prefers-reduced-motion: reduce) { .why-sw circle { animation: none; } }

/* landing: full-screen sections with a progress line and dot menu */
html.snap { scroll-padding-top: 64px; }
.land-slide { padding: 34px 0 10px; position: relative; scroll-margin-top: 64px; }
.land-slide.first { min-height: calc(100svh - 64px); display: flex; flex-direction: column; justify-content: center; padding: 8px 0 24px; }
.slide-eyebrow { margin: 0 0 12px; font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--warm); }
.slide-eyebrow span { margin-right: 10px; opacity: .55; }
.land-slide > .section-title:first-of-type, .land-slide > h2:first-of-type { margin-top: 0; }
.land-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 70; background: linear-gradient(90deg, #cdef67, var(--warm)); transition: width .12s linear; }
.land-nav { position: fixed; right: 5px; top: 50%; transform: translateY(-50%); z-index: 40; display: flex; flex-direction: column; gap: 4px; }
.land-nav a { position: relative; display: block; width: 22px; height: 22px; }
.land-nav a::before { content: ""; position: absolute; left: 7px; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); opacity: .35; transition: transform .25s, opacity .25s, background .25s; }
.land-nav a.active::before { background: var(--warm); opacity: 1; transform: scale(1.5); }
@media (hover: hover) { .land-nav a:hover::after { content: attr(data-l); position: absolute; right: 26px; top: 50%; transform: translateY(-50%); white-space: nowrap; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: #eef3e6; background: #122319; padding: 4px 9px; border-radius: 6px; } }
.scroll-cue { align-self: center; margin-top: 26px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; color: var(--muted); font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; }
.scroll-cue i { display: block; width: 1px; height: 34px; background: linear-gradient(180deg, var(--warm), transparent); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0%, 100% { transform: scaleY(.55); transform-origin: top; opacity: .5; } 50% { transform: scaleY(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .scroll-cue i { animation: none; } html.snap { scroll-behavior: auto; } }
.land-slide .a2hs-land { margin-top: 18px; }
html.snap .wrap { padding-right: 26px; }
.land-cta { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 45; transform: translate(-50%, 140%); opacity: 0; pointer-events: none; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border-radius: 999px; background: #122319; color: #cdef67; font-weight: 700; font-size: .95rem; text-decoration: none; white-space: nowrap; border: 2px solid #cdef67; box-shadow: 0 10px 26px -8px rgba(18, 35, 25, .6); transition: transform .35s ease, opacity .3s ease; }
.land-cta.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
@media (prefers-reduced-motion: reduce) { .land-cta { transition: none; } }
html.snap .land-slide:last-child { padding-bottom: 96px; }
.trust-line { margin: 12px 0 0; font-size: .86rem; color: var(--muted); }
.coach-strip { display: flex; align-items: center; gap: 12px; margin: 18px 0 0; padding: 10px 14px 10px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.coach-strip img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; border: 2px solid #cdef67; background: var(--bg); }
.coach-strip div { display: flex; flex-direction: column; min-width: 0; }
.coach-strip strong { font-size: .98rem; }
.coach-strip span { font-size: .84rem; color: var(--muted); }

/* landing top: clean title on the page background, light or dark */
:root[data-theme="dark"] .hero, .hero.why { background: none; border: 0; box-shadow: none; }
:root[data-theme="dark"] .hero h1 { color: var(--ink); }
.coach-card { display: flex; align-items: center; gap: 16px; margin: 26px 0 0; padding: 20px 2px 0; border-top: 1px solid var(--line); }
.coach-card img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; border: 2px solid #cdef67; background: var(--bg); }
.cc-txt { display: flex; flex-direction: column; min-width: 0; }
.cc-role { font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--warm); }
.cc-txt strong { font-size: 1.1rem; margin: 2px 0 4px; }
.cc-txt p { margin: 0; font-size: .88rem; line-height: 1.45; color: var(--muted); }
.land-slide.first .a2hs-land { margin-top: 20px; }
.cc-role { font-size: .8rem; letter-spacing: .02em; text-transform: none; font-weight: 600; }

/* focus effect: the section in view is clear, the others fade back */
html.snap .land-slide { opacity: .28; transition: opacity .35s ease; }
html.snap .land-slide.on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { html.snap .land-slide { transition: none; } }

/* coach meal builder: live totals */
.day-card { margin-bottom: 14px; }
.meal-bar { position: sticky; top: 66px; z-index: 5; background: var(--surface, var(--bg)); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; margin: 10px 0; box-shadow: 0 6px 14px rgba(0,0,0,.06); }
.day-card .bar-t, .meal-bar .bar-t { width: 100%; margin: 6px 0 0; }
.bar-t th, .bar-t td { padding: 3px 4px; vertical-align: top; font-size: .82rem; }
.bar-t td small { display: block; font-size: .68rem; line-height: 1.25; color: var(--muted); }
.bar-t td small.bp { color: var(--ink); opacity: .75; }
.bar-t .bl.ok { color: #2f7d57; font-weight: 600; }
.bar-t .bl.over { color: #b4552d; font-weight: 600; }
.bar-t .bl.under { color: var(--muted); }
.bar-note, .bar-empty { margin: 4px 0 0; font-size: .72rem; }
.meal-bar .bar-empty { margin: 0; }

/* find a food dialog */
.ff-wrap .tabs { margin-bottom: 10px; }
.ff-res { display: block; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 0 0 8px; font: inherit; color: inherit; cursor: pointer; }
.ff-res:hover, .ff-res:focus-visible { border-color: var(--ink); }
.ff-res strong { display: block; font-size: .92rem; }
.ff-wrap #ff_text { flex: 1; min-width: 0; }

/* meal builder: accordion and compact rows */
.meal-card { padding: 0; overflow: visible; }
.meal-head { display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: 0; padding: 14px 16px; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.mh-name { font-weight: 700; flex: 1; min-width: 0; }
.mh-st { font-size: .78rem; color: var(--muted); }
.mh-st.ok { color: #2f7d57; font-weight: 600; }
.mh-st.over { color: #b4552d; font-weight: 600; }
.mh-chev { color: var(--muted); }
.meal-body { padding: 0 16px 16px; }
.slot-row { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.slot-row.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.slot-row .slot { display: flex; align-items: center; gap: 6px; min-width: 0; margin: 0; }
.slot-row .pk { flex: 1; min-width: 0; width: 100%; padding: 9px 8px; font-size: .9rem; }
.linkish { background: none; border: 0; padding: 6px 0 0; font: inherit; font-size: .8rem; color: var(--warm); text-decoration: underline; cursor: pointer; }
.day-card .mc { margin: 0; }
.day-card .mc select { min-width: 64px; }
.more-d { margin-top: 14px; }
.slot-row.n2 .slot { flex-direction: column; align-items: stretch; gap: 3px; }
.slot-row.n2 .opt-tag { align-self: flex-start; }
@media (max-width: 520px) { .slot-row.n3 { grid-template-columns: 1fr; } }
@media (min-width: 521px) { .slot-row.n3 .slot { flex-direction: column; align-items: stretch; gap: 3px; } .slot-row.n3 .opt-tag { align-self: flex-start; } }

/* meal targets table */
.mt-in { width: 100%; margin: 6px 0 4px; }
.mt-in th, .mt-in td { padding: 3px 2px; font-size: .78rem; }
.mt-in input { width: 100%; min-width: 0; padding: 7px 4px; font-size: .85rem; text-align: center; }
.mt-name { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: inherit; text-align: left; text-decoration: underline dotted; cursor: pointer; }

/* meal rename and reorder */
.mt-top th { padding: 10px 0 2px; }
.mt-line { display: flex; gap: 6px; align-items: center; }
.mt-nm { flex: 1; min-width: 0; padding: 7px 8px; font-size: .9rem; font-weight: 700; }
.mv { flex: none; width: 34px; height: 34px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: inherit; font-size: .75rem; cursor: pointer; }
.mv.open { width: auto; padding: 0 10px; font-size: .78rem; }
.mv:disabled { opacity: .35; cursor: default; }
.mt-l { font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

/* distribution colors: red is over, yellow is missing, green is on target */
.bar-t .bl.over, .mh-st.over { color: #b3261e; background: rgba(229, 83, 75, .16); padding: 1px 6px; border-radius: 6px; font-weight: 700; }
.bar-t .bl.under, .mh-st.under { color: #805300; background: rgba(255, 193, 7, .30); padding: 1px 6px; border-radius: 6px; font-weight: 600; }
.bar-t .bl.ok, .mh-st.ok { background: rgba(47, 125, 87, .14); padding: 1px 6px; border-radius: 6px; }
:root[data-theme="dark"] .bar-t .bl.over, :root[data-theme="dark"] .mh-st.over { color: #ff9a92; }
:root[data-theme="dark"] .bar-t .bl.under, :root[data-theme="dark"] .mh-st.under { color: #ffd666; }
:root[data-theme="dark"] .bar-t .bl.ok, :root[data-theme="dark"] .mh-st.ok { color: #7fd6a5; }

/* simpler meal setup */
.mt-legend, .mt-nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.mt-legend { margin: 10px 0 2px; font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; text-align: center; }
.mt-meal { margin: 8px 0 12px; }
.mt-meal .mt-line { margin-bottom: 6px; }
.mt-nums input { width: 100%; min-width: 0; padding: 8px 4px; font-size: .9rem; text-align: center; }
.mc-sel { margin: 0 6px; padding: 4px 8px; }
.sum-line { margin: 6px 0 0; line-height: 1.9; }
.sum-line .bl { margin-left: 4px; font-size: .75rem; }
.sum-line .bl.ok { color: #2f7d57; font-weight: 600; background: rgba(47, 125, 87, .14); padding: 1px 6px; border-radius: 6px; }
.sum-line .bl.over { color: #b3261e; background: rgba(229, 83, 75, .16); padding: 1px 6px; border-radius: 6px; font-weight: 700; }
.sum-line .bl.under { color: #805300; background: rgba(255, 193, 7, .30); padding: 1px 6px; border-radius: 6px; font-weight: 600; }
:root[data-theme="dark"] .sum-line .bl.ok { color: #7fd6a5; } :root[data-theme="dark"] .sum-line .bl.over { color: #ff9a92; } :root[data-theme="dark"] .sum-line .bl.under { color: #ffd666; }
.mt-line .mv { width: 36px; height: 36px; }
.mt0 { margin: 2px 0 0; }
.bar-t td .bl { padding: 0 !important; background: none !important; white-space: nowrap; font-size: .68rem; }
.mt0 { margin: 2px 0 0; }

/* compact daily total */
.day-d { padding: 10px 12px; }
.day-d > summary { cursor: pointer; list-style: none; }
.day-d > summary::-webkit-details-marker { display: none; }
.day-d > summary::after { content: '\25BE'; float: right; color: var(--muted); }
.day-d[open] > summary::after { content: '\25B4'; }
.dt-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin: 10px 0 6px; }
.dt-row input, .dt-row select { width: 100%; min-width: 0; padding: 7px 3px; font-size: .88rem; text-align: center; }
.dt-row select { grid-column: 1 / -1; text-align: left; padding: 6px 8px; }
.mt-grid { display: grid; grid-template-columns: minmax(60px, 1fr) repeat(4, 50px) 22px; gap: 4px; align-items: center; margin: 4px 0; }
.mt-grid input { width: 100%; min-width: 0; padding: 7px 2px; font-size: .85rem; text-align: center; }
.mt-grid .mt-nm { text-align: left; padding: 7px 6px; font-size: .82rem; font-weight: 700; }
.mt-grid.mt-legend { margin: 2px 0 0; }
.mt-grid.mt-legend span { font-size: .62rem; color: var(--muted); text-transform: uppercase; text-align: center; }
.mv2 { display: flex; flex-direction: column; gap: 2px; }
.mv2 button { width: 22px; height: 17px; padding: 0; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: inherit; font-size: .5rem; line-height: 1; cursor: pointer; }
.mv2 button:disabled { opacity: .3; cursor: default; }
.row.between > .opts { display: flex; flex-direction: row; gap: 6px; flex: none; }
.row.between > .opts .opt-pill span { padding: 6px 16px; }
.row.between > .opts { flex-wrap: nowrap; }
.row.between > .opts .opt-pill { flex: 0 0 auto; }

/* highlighted row: coaching sessions */
.compare .hl-row th, .compare .hl-row td { background: rgba(205, 239, 103, .28); }
.compare .hl-row th { font-weight: 800; }
.compare .hl-row .cmp-txt { font-size: .95rem; font-weight: 800; line-height: 1.15; }
:root[data-theme="dark"] .compare .hl-row th, :root[data-theme="dark"] .compare .hl-row td { background: rgba(205, 239, 103, .12); }
.cmp-note { margin: 8px 2px 0; }

.dh { margin: 0 0 6px; }
.dh-mode { width: 100%; padding: 6px 8px; font-size: .85rem; }
.dh-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin: 6px 0 2px; }
.dh-row.kg { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dh-row input { width: 100%; min-width: 0; padding: 7px 3px; font-size: .85rem; text-align: center; }
.dt-row input.auto { background: var(--soft, rgba(0,0,0,.04)); border-style: dashed; }

.what .what-lede { font-size: 1.05rem; margin: 6px 0 18px; }
.what-sub { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 18px 0 10px; }
.what-hands { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.wh { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; padding: 14px 8px; border: 1px solid var(--line, rgba(0,0,0,.12)); border-radius: 16px; }
.wh svg { color: var(--accent, #2f5d4a); margin-bottom: 4px; }
.wh strong { font-size: .95rem; }
.wh span { font-size: .85rem; color: var(--muted); }
.what-note { margin: 10px 0 0; }
.what-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.wc { padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line, rgba(0,0,0,.14)); font-size: .88rem; }
@media (min-width: 640px) { .what-hands { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
