/* ToastFit — tracker, progress, routine builder + form guides
   v4 (2026-09-28): re-themed onto the breadtoasting.com / Lab Notes shell.
   - Same tokens as BASE_CSS (--bg, --fg-*, --accent) — amber accent, Space Grotesk
     headings, Inter body, JetBrains Mono labels. Dark only.
   - Chart palette is amber-led; dashboard.js reads the --ff-s* / --ff-hm-* tokens,
     so series colours must stay 6-digit hex (the JS appends alpha as "1a").
   - Every class name from v3 is kept; new layout classes are marked NEW. */

.ff-app {
  /* surfaces — mapped onto the site shell */
  --ff-surface:   #0B1018;               /* inputs */
  --ff-plane:     #0F1520;               /* inset panels, list rows */
  --ff-card:      #131A24;               /* cards */
  --ff-ink:       #E6EDF3;
  --ff-ink-2:     #A3B1C4;
  --ff-muted:     #7D8BA0;               /* ≥4.5:1 on --ff-card */
  --ff-grid:      rgba(255,255,255,0.06);
  --ff-baseline:  rgba(255,255,255,0.16);
  --ff-border:    rgba(255,255,255,0.08);
  --ff-border-2:  rgba(255,255,255,0.14);
  /* brand */
  --ff-accent:    #F59E0B;
  --ff-accent-2:  #FBBF24;
  --ff-accent-soft: rgba(245,158,11,0.10);
  --ff-accent-line: rgba(245,158,11,0.35);
  /* chart series (hex only) — tangerine, breeze, cobalt, sprout */
  --ff-s1:        #F59E0B;
  --ff-s2:        #2DD4BF;
  --ff-s3:        #60A5FA;
  --ff-s4:        #A3E635;
  --ff-good:      #22C55E;
  --ff-bad:       #F87171;
  /* sequential amber ramp (heatmap + body balance) */
  --ff-hm-0: #1A212C;
  --ff-hm-1: #4A350F;
  --ff-hm-2: #7A530D;
  --ff-hm-3: #B8780A;
  --ff-hm-4: #F59E0B;
  --ff-radius: 14px;
  --ff-shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 12px 32px -18px rgba(0,0,0,.6);

  color: var(--ff-ink);
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
  max-width: 1120px;
  margin: 0 auto;
}
.ff-app * { box-sizing: border-box; }
.article-grid > .ff-app, .article-grid > div { min-width: 0; width: 100%; }   /* lets wide tables scroll instead of widening the page */
.ff-canvas-wrap.xl { height: 340px; }
.ff-app a { color: var(--ff-accent); }
.ff-app a:hover { color: var(--ff-accent-2); }
.ff-app h2, .ff-app h3, .ff-app h4 { font-family: 'Space Grotesk', system-ui, sans-serif; letter-spacing: -.02em; color: #fff; }
.ff-app [id] { scroll-margin-top: 80px; }
.ff-app :focus-visible { outline: 2px solid var(--ff-accent); outline-offset: 2px; }

/* ---------- page header (NEW: .ff-kick, .ff-sub, .ff-actions) ---------- */
.ff-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  flex-wrap: wrap; gap: .75rem 1.5rem; margin-bottom: 1.5rem;
}
.ff-header .ff-kick {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 .6rem;
  color: var(--ff-accent); font-family: 'JetBrains Mono', monospace; font-size: 11px;
  font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
}
.ff-header .ff-kick::before { content: ''; width: 22px; height: 1px; background: var(--ff-accent); }
.ff-header h2 { margin: 0; font-size: clamp(28px, 4vw, 40px); line-height: 1.08; letter-spacing: -.035em; font-weight: 700; }
.ff-header .ff-sub { margin: .45rem 0 0; color: var(--ff-ink-2); font-size: .95rem; max-width: 60ch; }
.ff-who, .ff-actions { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; font-size: .9rem; color: var(--ff-muted); }
.ff-who a { color: var(--ff-ink-2); text-decoration: none; }
.ff-who a:hover { color: #fff; }
.ff-actions a {
  display: inline-flex; align-items: center; gap: .4rem; text-decoration: none;
  color: var(--ff-ink); border: 1px solid var(--ff-border-2); border-radius: 10px;
  padding: .5rem .85rem; font-size: .88rem; font-weight: 500; transition: border-color .15s, color .15s;
}
.ff-actions a:hover { border-color: var(--ff-muted); color: #fff; }
.ff-actions a.quiet { border-color: transparent; color: var(--ff-muted); padding-left: .4rem; padding-right: .4rem; }
.ff-actions a.quiet:hover { color: #fff; }

/* ---------- layout (NEW) ---------- */
.ff-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 1rem; align-items: start; margin-bottom: 1rem; }
.ff-main, .ff-side { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.ff-grid-21 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1rem; align-items: start; margin-bottom: 1rem; }
@media (max-width: 940px) {
  .ff-layout, .ff-grid-21 { grid-template-columns: minmax(0, 1fr); }
}
.ff-section-title {
  display: flex; align-items: center; gap: .6rem; margin: 2rem 0 .8rem;
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ff-muted);
}
.ff-section-title::after { content: ''; flex: 1; height: 1px; background: var(--ff-border); }

/* ---------- KPI row ---------- */
.ff-kpis {
  display: grid; gap: 1rem; margin-bottom: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 860px) { .ff-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; } }

.ff-tile {
  background: var(--ff-card); border: 1px solid var(--ff-border);
  border-radius: var(--ff-radius); padding: 1rem 1.1rem 1.05rem;
  box-shadow: var(--ff-shadow); position: relative; overflow: hidden; min-width: 0;
}
.ff-tile .lbl {
  font-family: 'JetBrains Mono', monospace; font-size: 10.5px; color: var(--ff-muted);
  text-transform: uppercase; letter-spacing: .12em; font-weight: 500;
}
.ff-tile .val {
  font-family: 'Space Grotesk', sans-serif; font-size: 1.85rem; font-weight: 700; letter-spacing: -0.03em;
  margin: .3rem 0 .1rem; line-height: 1.05; color: #fff; font-variant-numeric: tabular-nums;
}
.ff-tile .val small { font-size: .95rem; font-weight: 500; color: var(--ff-ink-2); letter-spacing: 0; }
.ff-tile .sub { font-size: .82rem; color: var(--ff-ink-2); }
.ff-tile .sub a { text-decoration: none; }
.ff-tile .delta { font-weight: 600; }
.ff-tile .delta.up { color: var(--ff-good); }
.ff-tile .delta.down { color: var(--ff-bad); }
.ff-tile .spark { position: absolute; right: 0; bottom: 0; width: 96px; height: 34px; opacity: .9; }
.ff-tile.hot { border-color: var(--ff-accent-line); background: linear-gradient(135deg, rgba(245,158,11,.10), rgba(245,158,11,0) 60%), var(--ff-card); }
/* NEW: progress meter inside a tile */
.ff-meter { display: flex; gap: 4px; margin-top: .55rem; }
.ff-meter i { flex: 1; height: 6px; border-radius: 3px; background: var(--ff-hm-0); }
.ff-meter i.on { background: var(--ff-accent); }

/* ---------- cards ---------- */
.ff-grid2 {
  display: grid; gap: 1rem; margin-bottom: 1rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);   /* minmax(0,…) stops charts overflowing */
}
@media (max-width: 860px) { .ff-grid2 { grid-template-columns: minmax(0, 1fr); } }

.ff-card-box, .ff-log {
  background: var(--ff-card); border: 1px solid var(--ff-border);
  border-radius: var(--ff-radius); padding: 1.25rem 1.3rem 1.35rem;
  box-shadow: var(--ff-shadow); min-width: 0;
}
.ff-card-box h3, .ff-log h3 { margin: 0 0 .2rem; font-size: 1.12rem; font-weight: 600; }
.ff-card-box .cap, .ff-app .cap { margin: 0 0 .9rem; font-size: .85rem; color: var(--ff-muted); line-height: 1.5; }
/* NEW: card header row with an action on the right */
.ff-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; margin-bottom: .9rem; }
.ff-card-head .cap { margin: .15rem 0 0; }
.ff-card-head .ff-link { font-size: .84rem; white-space: nowrap; text-decoration: none; font-weight: 500; }
.ff-canvas-wrap { position: relative; height: 240px; }
.ff-canvas-wrap.tall { height: 260px; }
.ff-card-box.primary { border-color: var(--ff-accent-line); box-shadow: 0 0 0 1px rgba(245,158,11,.06), 0 18px 40px -22px rgba(245,158,11,.35); }

/* ---------- heatmap ---------- */
.ff-heat { overflow-x: auto; padding-bottom: .2rem; }
.ff-heat-grid {
  display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 13px);
  gap: 3px; width: max-content;
}
.ff-heat-cell { width: 13px; height: 13px; border-radius: 3px; background: var(--ff-hm-0); }
.ff-heat-cell[data-l="1"] { background: var(--ff-hm-1); }
.ff-heat-cell[data-l="2"] { background: var(--ff-hm-2); }
.ff-heat-cell[data-l="3"] { background: var(--ff-hm-3); }
.ff-heat-cell[data-l="4"] { background: var(--ff-hm-4); }
.ff-heat-legend {
  display: flex; align-items: center; gap: 4px; margin-top: .7rem;
  font-size: .75rem; color: var(--ff-muted);
}
.ff-heat-legend i { width: 13px; height: 13px; border-radius: 3px; display: inline-block; background: var(--ff-hm-0); }

/* ---------- body stats ---------- */
.ff-flash { color: var(--ff-good); font-weight: 600; margin: -.3rem 0 .7rem; }
.ff-bs-grid { display: grid; grid-template-columns: 1fr; gap: 1.1rem; }
.ff-bs-read { display: flex; flex-direction: column; background: var(--ff-plane); border: 1px solid var(--ff-border); border-radius: 12px; padding: .2rem .9rem; }
.ff-bs-item { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 0 1rem; padding: .6rem 0; border-bottom: 1px solid var(--ff-border); min-width: 0; }
.ff-bs-item:last-child { border-bottom: 0; }
.ff-bs-item .lbl { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--ff-muted);
  text-transform: uppercase; letter-spacing: .12em; }
.ff-bs-item .val { justify-self: end; text-align: right; font-family: 'Space Grotesk', sans-serif; font-size: 1.1rem; font-weight: 700;
  letter-spacing: -.02em; color: #fff; font-variant-numeric: tabular-nums; }
.ff-bs-item .val small { font-family: 'Inter', sans-serif; font-size: .74rem; font-weight: 500; color: var(--ff-ink-2); margin-left: .35rem; letter-spacing: 0; }
.ff-bs-item > div { grid-column: 1 / -1; justify-self: end; text-align: right; }
.ff-bs-item .delta { font-weight: 600; font-size: .76rem; color: var(--ff-ink-2); }
.ff-bs-item .sub { font-size: .74rem; color: var(--ff-muted); }
.ff-bs-dim { color: var(--ff-muted); font-weight: 400; font-size: .95rem; }
.ff-bs-forms { display: flex; flex-direction: column; gap: .9rem; }
.ff-bs-flabel { font-size: .8rem; color: var(--ff-ink-2); font-weight: 500; display: block; margin-bottom: .35rem; }
.ff-bs-row { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; }
.ff-bs-row input[type=number] { max-width: 6rem; }
.ff-bs-row select { max-width: 4.6rem; }
.ff-bs-u { font-size: .82rem; color: var(--ff-muted); }
.ff-bs-form .ff-btn { margin-top: 0; }

/* ---------- body map (v4.1: bodymap.js figure) ----------
   Base silhouette + muscle panels; panels are separated by thin "gaps" drawn in the card colour. */
.ff-bodymap-svg .bm-base path { fill: #2A3342; }
.ff-bodymap-svg .bm-base .bm-skin { fill: #394456; }
.ff-bodymap-svg .bm-base .bm-hair { fill: #465265; }
.ff-bodymap-svg .m, .ff-bodymap-svg .mx {
  fill: #2A3342; stroke: var(--ff-card); stroke-width: 1px; vector-effect: non-scaling-stroke; stroke-linejoin: round;
  transition: fill .2s;
}
.ff-bodymap .ff-bodymap-svg .m, .ff-bodymap .ff-bodymap-svg .mx { stroke: var(--ff-plane); }
#ff-body .m.on { fill: var(--ff-accent); }
#ff-body .m:hover, #ff-balance .m:hover { filter: brightness(1.25); }
#ff-balance .m[data-level="0"] { fill: #2A3342; }
#ff-balance .m[data-level="1"] { fill: var(--ff-hm-1); }
#ff-balance .m[data-level="2"] { fill: var(--ff-hm-2); }
#ff-balance .m[data-level="3"] { fill: var(--ff-hm-3); }
#ff-balance .m[data-level="4"] { fill: var(--ff-hm-4); }
.ff-bodymap-svg .ff-bm-lbl { font-size: 11px; }

/* ---------- log form ---------- */
.ff-log h3 { margin-bottom: .2rem; }
.ff-log-grid { display: flex; gap: 1.4rem; align-items: flex-start; }
.ff-log-main { flex: 1 1 auto; min-width: 0; }
.ff-bodymap { flex: 0 0 200px; text-align: center; background: var(--ff-plane); border: 1px solid var(--ff-border);
  border-radius: 12px; padding: .8rem .6rem .7rem; position: sticky; top: 84px; }
.ff-bm-title { margin: 0 0 .5rem; font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ff-muted); }
#ff-body { width: 100%; height: auto; max-width: 220px; }
.ff-bm-lbl { fill: var(--ff-muted); font-size: 9px; text-anchor: middle; font-family: 'JetBrains Mono', monospace; }
.ff-bm-cap { margin: .5rem 0 0; font-size: .78rem; line-height: 1.4; color: var(--ff-ink-2); min-height: 2.2em; }
@media (max-width: 640px) {
  .ff-log-grid { flex-direction: column; gap: .9rem; }
  .ff-bodymap { position: static; width: 100%; flex: none; display: grid; grid-template-columns: 150px 1fr;
    align-items: center; text-align: left; gap: .2rem .9rem; padding: .6rem .8rem; }
  .ff-bodymap .ff-bm-title { grid-column: 2; grid-row: 1; margin: 0; align-self: end; }
  .ff-bodymap #ff-body { grid-column: 1; grid-row: 1 / span 2; }
  .ff-bodymap .ff-bm-cap { grid-column: 2; grid-row: 2; margin: 0; align-self: start; }
}

/* NEW: numbered steps inside the log form */
.ff-step { border-top: 1px solid var(--ff-border); padding-top: 1rem; margin-top: 1rem; }
.ff-step:first-of-type { border-top: 0; padding-top: 0; margin-top: .6rem; }
.ff-step-title { display: flex; align-items: center; gap: .55rem; margin: 0 0 .7rem; font-size: .88rem; font-weight: 600; color: #fff; }
.ff-step-title b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--ff-accent-soft); color: var(--ff-accent); border: 1px solid var(--ff-accent-line);
  font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 500; }
.ff-step-title span { color: var(--ff-muted); font-weight: 400; font-size: .8rem; }

.ff-fields { display: flex; flex-wrap: wrap; gap: .7rem; }
.ff-fields.pick { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr) minmax(0, 1fr); }
@media (max-width: 560px) { .ff-fields.pick { grid-template-columns: minmax(0, 1fr); } }
.ff-fields.nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 440px; }
.ff-field { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.ff-field.grow { flex: 1 1 200px; }
.ff-field span { font-size: .8rem; color: var(--ff-ink-2); font-weight: 500; }
.ff-app input[type=text], .ff-app input[type=number], .ff-app input[type=date], .ff-app input:not([type]), .ff-app textarea, .ff-app select {
  background: var(--ff-surface); color: var(--ff-ink);
  border: 1px solid var(--ff-border-2); border-radius: 10px; padding: .62rem .75rem;
  font: inherit; font-size: .95rem; width: 100%; min-height: 44px;
  transition: border-color .15s, box-shadow .15s;
}
.ff-app textarea { min-height: 0; resize: vertical; }
.ff-app input::placeholder, .ff-app textarea::placeholder { color: #56647A; }
.ff-app select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ff-muted) 50%), linear-gradient(135deg, var(--ff-muted) 50%, transparent 50%);
  background-position: calc(100% - 16px) 52%, calc(100% - 11px) 52%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 2rem; }
.ff-app select optgroup { background: var(--ff-card); color: var(--ff-muted); }
.ff-app select option { background: var(--ff-card); color: var(--ff-ink); }
.ff-app input:hover, .ff-app textarea:hover, .ff-app select:hover { border-color: rgba(255,255,255,.22); }
.ff-app input:focus, .ff-app textarea:focus, .ff-app select:focus {
  outline: none; border-color: var(--ff-accent); box-shadow: 0 0 0 3px rgba(245,158,11,.18);
}
.ff-num { max-width: none; }
.ff-field-label { font-size: .8rem; color: var(--ff-ink-2); font-weight: 500; display: block; margin-bottom: .4rem; }

/* how did it go */
.ff-feel-row { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; background: var(--ff-plane);
  border: 1px solid var(--ff-border); border-radius: 12px; padding: .55rem .85rem; }
.ff-feel-row input[type=range] { flex: 1 1 160px; max-width: 320px; accent-color: var(--ff-accent); height: 22px; cursor: pointer; }
.ff-feel-face { font-size: 1.5rem; line-height: 1; }
.ff-feel-word { font-weight: 600; min-width: 3.2rem; color: #fff; }
.ff-feel-num { font-family: 'JetBrains Mono', monospace; font-size: .78rem; color: var(--ff-muted); font-variant-numeric: tabular-nums; }
.ff-feel-tired { display: inline-flex; align-items: center; gap: .5rem; margin-top: .65rem;
  font-size: .88rem; color: var(--ff-ink-2); cursor: pointer; }
.ff-feel-tired input { width: 17px; height: 17px; accent-color: var(--ff-accent); cursor: pointer; }

/* NEW: submit row */
.ff-submit-row { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; margin-top: 1.1rem; }
.ff-submit-row .ff-btn { margin-top: 0; }
.ff-submit-row .ff-hint { font-size: .8rem; color: var(--ff-muted); }
@media (max-width: 640px) { .ff-submit-row .ff-btn { width: 100%; } }

/* ---------- buttons ---------- */
.ff-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  background: var(--ff-accent); color: #0A0D12 !important; border: 0; text-decoration: none;
  border-radius: 10px; padding: .66rem 1.2rem; min-height: 44px; font: inherit; font-size: .92rem; font-weight: 600;
  cursor: pointer; margin-top: .8rem; transition: background .15s, transform .05s;
}
.ff-btn:hover { background: var(--ff-accent-2); }
.ff-btn:active { transform: translateY(1px); }
.ff-btn.lg { padding: .8rem 1.5rem; font-size: 1rem; }
.ff-btn.google { background: #fff; color: #1f1f1f !important; border: 1px solid var(--ff-border); gap: .6rem; }
.ff-btn.google:hover { background: #F1F5F9; }
.ff-btn.google::before { content: "G"; color: #4285F4; font-weight: 800; font-size: 1.05rem; }
.ff-btn-ghost { display: inline-flex; align-items: center; gap: .4rem; background: transparent; color: var(--ff-ink) !important; border: 1px solid var(--ff-border-2);
  border-radius: 10px; padding: .55rem 1rem; min-height: 40px; font: inherit; font-size: .9rem; font-weight: 500; cursor: pointer; text-decoration: none; }
.ff-btn-ghost:hover { border-color: var(--ff-accent); color: var(--ff-accent) !important; }
.ff-btn-danger { background: transparent; border: 1px solid rgba(248,113,113,.4); color: var(--ff-bad);
  border-radius: 10px; padding: .5rem .9rem; font: inherit; font-weight: 500; cursor: pointer; }
.ff-btn-danger:hover { background: rgba(248,113,113,.08); }

/* ---------- log table ---------- */
.ff-table-wrap { overflow-x: auto; }
table.ff-table { border-collapse: collapse; width: 100%; font-size: .88rem; }
table.ff-table th, table.ff-table td {
  text-align: left; padding: .6rem .75rem; border-bottom: 1px solid var(--ff-border); white-space: nowrap;
}
table.ff-table td:last-child { white-space: normal; }
table.ff-table th {
  font-family: 'JetBrains Mono', monospace; font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em;
  color: var(--ff-muted); font-weight: 500; background: var(--ff-plane);
}
table.ff-table th:first-child { border-top-left-radius: 8px; }
table.ff-table th:last-child { border-top-right-radius: 8px; }
table.ff-table td { font-variant-numeric: tabular-nums; color: var(--ff-ink-2); }
table.ff-table td strong { color: #fff; }
table.ff-table tbody tr:hover td { background: rgba(255,255,255,.02); }
table.ff-table tr:last-child td { border-bottom: 0; }
.ff-empty {
  text-align: center; color: var(--ff-ink-2); padding: 1.5rem 1rem;
  border: 1px dashed var(--ff-border-2); border-radius: var(--ff-radius);
}
details.ff-details { background: var(--ff-card); border: 1px solid var(--ff-border); border-radius: var(--ff-radius); margin-bottom: 1rem; }
details.ff-details summary {
  cursor: pointer; font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 1.02rem; color: #fff;
  padding: 1rem 1.3rem; list-style: none; display: flex; align-items: center; gap: .6rem;
}
details.ff-details summary::-webkit-details-marker { display: none; }
details.ff-details summary::before { content: '▸'; color: var(--ff-accent); transition: transform .15s; display: inline-block; }
details.ff-details[open] summary::before { transform: rotate(90deg); }
details.ff-details summary .ff-count { margin-left: auto; font-family: 'JetBrains Mono', monospace; font-size: .75rem; font-weight: 400; color: var(--ff-muted); }
details.ff-details .ff-table-wrap { padding: 0 1rem 1rem; }

/* ---------- signed out (NEW layout) ---------- */
.ff-signin { text-align: center; padding: 2rem 1rem; }
.ff-signin p { color: var(--ff-ink-2); }
.ff-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2rem; align-items: center; margin-bottom: 2.5rem; }
@media (max-width: 860px) { .ff-hero { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; } }
.ff-hero h1 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(34px, 5.2vw, 56px); font-weight: 700; color: #fff;
  letter-spacing: -.04em; line-height: 1.02; margin: 16px 0 14px; }
.ff-hero h1 em { font-style: normal; color: var(--ff-accent); }
.ff-hero .lede { color: var(--ff-ink-2); font-size: 1.05rem; line-height: 1.6; margin: 0 0 1.4rem; max-width: 52ch; }
.ff-signin-card { background: linear-gradient(160deg, rgba(245,158,11,.12), rgba(245,158,11,0) 55%), var(--ff-card);
  border: 1px solid var(--ff-accent-line); border-radius: 18px; padding: 1.8rem 1.6rem; text-align: left; }
.ff-signin-card h2 { margin: 0 0 .35rem; font-size: 1.4rem; }
.ff-signin-card p { margin: 0 0 1.2rem; color: var(--ff-ink-2); font-size: .92rem; }
.ff-signin-card .ff-btn { width: 100%; margin: 0; }
.ff-signin-card .fine { margin: 1rem 0 0; font-size: .78rem; color: var(--ff-muted); }
.ff-feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 760px) { .ff-feature-grid { grid-template-columns: minmax(0, 1fr); } }
.ff-feature { background: var(--ff-card); border: 1px solid var(--ff-border); border-radius: var(--ff-radius); padding: 1.2rem 1.25rem; }
.ff-feature .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; margin-bottom: .8rem;
  background: var(--ff-accent-soft); border: 1px solid var(--ff-accent-line); color: var(--ff-accent); }
.ff-feature h3 { margin: 0 0 .3rem; font-size: 1.02rem; }
.ff-feature p { margin: 0; color: var(--ff-ink-2); font-size: .88rem; line-height: 1.55; }
.ff-feature a { display: inline-block; margin-top: .6rem; font-size: .85rem; text-decoration: none; font-weight: 500; }

/* ---------- plate calculator ---------- */
.pl-tabs { display: flex; gap: 4px; margin-bottom: 1rem; background: var(--ff-plane); border: 1px solid var(--ff-border); border-radius: 11px; padding: 4px; }
.pl-tab { flex: 1; background: transparent; border: 0;
  color: var(--ff-ink-2); border-radius: 8px; padding: .5rem .4rem; font: inherit;
  font-weight: 500; font-size: .85rem; cursor: pointer; min-height: 36px; }
.pl-tab:hover { color: #fff; }
.pl-tab.is-on { background: var(--ff-card); color: #fff; box-shadow: 0 0 0 1px var(--ff-accent-line) inset; }
.ff-plates .pl-controls { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: .6rem; margin-bottom: .9rem; }
.ff-plates #pl-unit { max-width: none; }
.pl-pane { margin-bottom: .3rem; }
.pl-pane .cap { margin: 0 0 .6rem; }
.pl-steppers { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .5rem; }
.pl-step { display: flex; align-items: center; gap: .45rem; background: var(--ff-plane);
  border: 1px solid var(--ff-border); border-radius: 10px; padding: .4rem .55rem; }
.pl-sw { width: 13px; height: 13px; border-radius: 3px; border: 1px solid rgba(0,0,0,.3); flex-shrink: 0; }
.pl-pv { font-size: .82rem; font-weight: 600; flex: 1; white-space: nowrap; }
.pl-mi { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--ff-border-2);
  background: var(--ff-card); color: var(--ff-ink); font-size: 1.1rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pl-mi:hover { border-color: var(--ff-accent); color: var(--ff-accent); }
.pl-ct { min-width: 1.2rem; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.pl-viz { display: flex; flex-direction: column; align-items: center; gap: .3rem; margin-top: .9rem;
  background: var(--ff-plane); border: 1px solid var(--ff-border); border-radius: 12px;
  padding: .8rem .5rem .7rem; }
.pl-svg { max-width: 100%; height: auto; }
.pl-total { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.15rem; letter-spacing: -.02em; display: flex;
  align-items: baseline; gap: .45rem; color: #fff; }
.pl-total span { font-family: 'Inter', sans-serif; font-weight: 500; font-size: .78rem; color: var(--ff-muted); letter-spacing: 0; }
.pl-breakdown { margin-top: .7rem; display: flex; flex-direction: column; gap: .35rem; }
.pl-say { margin: 0; font-size: .9rem; line-height: 1.5; display: flex; flex-wrap: wrap;
  align-items: center; gap: .35rem; }
.pl-say.pl-dim { color: var(--ff-muted); font-size: .82rem; }
.pl-chip { display: inline-flex; align-items: center; gap: .35rem; background: var(--ff-plane);
  border: 1px solid var(--ff-border-2); border-radius: 999px; padding: .18rem .55rem;
  font-size: .8rem; font-weight: 600; color: var(--ff-ink); font-variant-numeric: tabular-nums; }
.pl-chip i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; border: 1px solid rgba(0,0,0,.3); }
.pl-warn { color: var(--ff-bad); font-size: .8rem; font-weight: 600; }
.ff-plates #pl-load { width: 100%; background: transparent; color: var(--ff-accent) !important; border: 1px solid var(--ff-accent-line); }
.ff-plates #pl-load:hover { background: var(--ff-accent-soft); }

/* ---------- training balance (progress) ---------- */
.ff-progress-body .ff-pb-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.ff-progress-body .ff-pb-head h3 { margin: 0 0 .2rem; }
.ff-sex-form label { font-size: .8rem; color: var(--ff-muted); font-weight: 500; display: flex; align-items: center; gap: .5rem; }
.ff-sex-form select { min-height: 36px !important; padding: .35rem 2rem .35rem .65rem !important; font-size: .85rem !important; }
.ff-pb-figure { text-align: center; margin: .5rem 0 .4rem; }
#ff-balance { width: 100%; height: auto; max-width: 340px; }
.ff-pb-legend { display: flex; align-items: center; gap: 4px; justify-content: center; flex-wrap: wrap;
  font-size: .75rem; color: var(--ff-muted); }
.ff-pb-legend i { width: 13px; height: 13px; border-radius: 3px; display: inline-block; background: #2A3342; }
.ff-pb-legend i[data-level="1"] { background: var(--ff-hm-1); }
.ff-pb-legend i[data-level="2"] { background: var(--ff-hm-2); }
.ff-pb-legend i[data-level="3"] { background: var(--ff-hm-3); }
.ff-pb-legend i[data-level="4"] { background: var(--ff-hm-4); }
.ff-pb-legnote { margin-left: .3rem; }

/* ---------- suggested next / today's plan ---------- */
.ff-plan-today .ff-plan-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.ff-plan-today h3 { margin: .1rem 0 0; }
.ff-plan-kicker { margin: 0 0 .3rem; font-family: 'JetBrains Mono', monospace; font-size: 10.5px; text-transform: uppercase;
  letter-spacing: .14em; font-weight: 500; color: var(--ff-accent); }
.ff-plan-kicker a { color: var(--ff-muted); text-decoration: underline; text-underline-offset: 3px; }
.ff-plan-kicker a:hover { color: #fff; }
.ff-plan-list { list-style: none; margin: .8rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .4rem; }
.ff-plan-pick { width: 100%; display: flex; align-items: center; gap: .6rem; text-align: left;
  background: var(--ff-plane); border: 1px solid var(--ff-border); border-radius: 10px; padding: .6rem .75rem; min-height: 46px;
  font: inherit; font-size: .9rem; color: var(--ff-ink); cursor: pointer; transition: border-color .15s, background .15s; }
.ff-plan-pick:hover { border-color: var(--ff-accent-line); background: rgba(245,158,11,.04); }
.ff-plan-ex { font-weight: 500; flex: 1; min-width: 0; }
.ff-plan-sr { font-family: 'JetBrains Mono', monospace; font-size: .75rem; color: var(--ff-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ff-plan-go { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; flex-shrink: 0;
  font-size: 0; color: var(--ff-accent); background: var(--ff-accent-soft); border: 1px solid var(--ff-accent-line); }
.ff-plan-go::after { content: '+'; font-size: 15px; font-weight: 600; line-height: 1; }
.ff-plan-pick:hover .ff-plan-go { background: var(--ff-accent); color: #0A0D12; }
.ff-plan-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: .7rem 0; border-bottom: 1px solid var(--ff-border); flex-wrap: wrap; }
.ff-plan-row:last-child { border-bottom: 0; }
.ff-plan-row-btns { display: flex; gap: .4rem; }
.ff-plan-row-btns form { display: inline; }
/* NEW: slim "no routine" nudge that lives inside the Suggested card */
.ff-nudge { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap;
  margin-top: 1rem; padding: .75rem .85rem; border: 1px dashed var(--ff-border-2); border-radius: 10px; font-size: .84rem; color: var(--ff-ink-2); }
.ff-nudge a { font-weight: 600; text-decoration: none; white-space: nowrap; }

/* ---------- coach: goal picker, status, fuel ---------- */
.ff-goal-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .6rem; }
.ff-goal-opt { display: grid; grid-template-columns: auto 1fr; gap: .15rem .6rem; align-items: start; align-content: start;
  background: var(--ff-plane); border: 1px solid var(--ff-border); border-radius: 12px; padding: .85rem .9rem; cursor: pointer;
  transition: border-color .15s, background .15s; }
.ff-goal-opt:hover { border-color: var(--ff-border-2); }
.ff-goal-opt:has(input:checked) { border-color: var(--ff-accent); background: var(--ff-accent-soft); }
.ff-goal-opt input { margin: .25rem 0 0; grid-row: span 2; accent-color: var(--ff-accent); width: 16px; height: 16px; }
.ff-goal-name { font-family: 'Space Grotesk', sans-serif; font-weight: 600; color: #fff; }
.ff-goal-blurb { font-size: .8rem; color: var(--ff-ink-2); line-height: 1.45; }
.ff-goal-form .ff-bs-row { align-items: flex-end; }
.ff-goal-form .ff-bs-row .ff-btn { margin-top: 0; }
/* NEW: collapsible "change goal" on Progress */
details.ff-goal-edit > summary { list-style: none; cursor: pointer; display: inline-flex; }
details.ff-goal-edit > summary::-webkit-details-marker { display: none; }
details.ff-goal-edit[open] > summary { margin-bottom: 1rem; }
details.ff-goal-edit[open] > summary .open-lbl { display: none; }
details.ff-goal-edit:not([open]) > summary .close-lbl { display: none; }
.ff-goal-now { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.ff-goal-badge { display: inline-flex; align-items: center; gap: .5rem; padding: .3rem .7rem; border-radius: 999px;
  background: var(--ff-accent-soft); border: 1px solid var(--ff-accent-line); color: var(--ff-accent); font-weight: 600; font-size: .85rem; }

.ff-coach-grid { align-items: start; }
.ff-coach-status { border: 1px solid rgba(34,197,94,.25); background: rgba(34,197,94,.07);
  padding: .65rem .8rem; border-radius: 10px; font-size: .86rem; line-height: 1.5; margin: .2rem 0 .2rem; color: var(--ff-ink-2); }
.ff-coach-status strong { color: #fff; }
.ff-coach-status.rest { border-color: rgba(245,158,11,.3); background: var(--ff-accent-soft); }
.ff-coach-status.start { border-color: rgba(96,165,250,.3); background: rgba(96,165,250,.08); }
.ff-coach-group { margin-top: 1rem; }
.ff-coach-group .ff-plan-list { margin-top: .45rem; }
.ff-coach-gname { margin: 0; font-weight: 600; font-size: .88rem; color: #fff; }
.ff-coach-gname span { font-weight: 400; color: var(--ff-muted); font-size: .8rem; }

.ff-fuel h3 { margin-bottom: .6rem; }
.ff-fuel-top { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.2rem; align-items: start; }
@media (max-width: 620px) { .ff-fuel-top { grid-template-columns: minmax(0, 1fr); gap: .6rem; } }
.ff-fuel-num { display: flex; flex-direction: column; background: var(--ff-plane); border: 1px solid var(--ff-border);
  border-radius: 12px; padding: .8rem 1rem; min-width: 150px; }
.ff-fuel-num .val { font-family: 'Space Grotesk', sans-serif; font-size: 2.1rem; font-weight: 700; letter-spacing: -.03em; color: var(--ff-accent); line-height: 1; font-variant-numeric: tabular-nums; }
.ff-fuel-num .lbl { color: var(--ff-ink-2); font-size: .85rem; margin-top: .25rem; }
.ff-fuel-lines { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
@media (max-width: 620px) { .ff-fuel-lines { grid-template-columns: minmax(0, 1fr); gap: .3rem; } }
.ff-fuel-line { margin: 0; font-size: .86rem; line-height: 1.45; color: var(--ff-ink-2); }
.ff-fuel-line span { display: block; margin-bottom: .2rem; font-family: 'JetBrains Mono', monospace; font-size: 10px; text-transform: uppercase;
  letter-spacing: .12em; font-weight: 500; color: var(--ff-muted); }
.ff-fuel-lists { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; margin-top: 1.1rem; }
@media (max-width: 760px) { .ff-fuel-lists { grid-template-columns: minmax(0, 1fr); } }
.ff-fuel-list { margin-top: .75rem; }
.ff-fuel-lists .ff-fuel-list { margin: 0; background: var(--ff-plane); border: 1px solid var(--ff-border); border-radius: 12px; padding: .8rem .9rem; }
.ff-fuel-lists .ff-coach-gname span { display: block; margin-top: .15rem; line-height: 1.4; }
.ff-fuel-items { margin: .5rem 0 0; font-size: .85rem; line-height: 1.6; color: var(--ff-ink); }
.ff-fuel-fine { margin: 1rem 0 0; font-size: .74rem; color: var(--ff-muted); }

/* ---------- log form: "how to" panel ---------- */
.ff-guide { margin-top: 1.1rem; background: var(--ff-plane); border: 1px solid var(--ff-border); border-left: 3px solid var(--ff-accent);
  border-radius: 10px; padding: .9rem 1rem; }
.ff-guide-kicker { margin: 0; font-family: 'JetBrains Mono', monospace; font-size: 10.5px; text-transform: uppercase; letter-spacing: .14em; font-weight: 500; color: var(--ff-accent); }
.ff-guide-sum { margin: .35rem 0 .55rem; font-size: .88rem; line-height: 1.55; color: var(--ff-ink-2); }
.ff-guide-cues { margin: 0 0 .7rem; padding-left: 1.1rem; font-size: .86rem; line-height: 1.55; }
.ff-guide-cues li::marker { color: var(--ff-accent); }
.ff-guide-sub { margin: 0 0 .4rem; font-weight: 600; font-size: .84rem; color: #fff; }
.ff-guide-vars { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .45rem; }
.ff-guide-var { background: var(--ff-card); border: 1px solid var(--ff-border); border-radius: 9px; padding: .5rem .65rem; font-size: .8rem; line-height: 1.4; }
.ff-guide-var b { display: block; font-size: .84rem; margin-bottom: .1rem; color: #fff; font-weight: 600; }
.ff-guide-var span { color: var(--ff-ink-2); }
.ff-guide-var.on { border-color: var(--ff-accent); background: var(--ff-accent-soft); }
.ff-guide-var.on b { color: var(--ff-accent); }
.ff-guide-link { display: inline-block; margin-top: .7rem; font-size: .84rem; color: var(--ff-accent); font-weight: 500; text-decoration: none; }

/* ---------- routine builder ---------- */
#ff-plan-builder .pb-name { display: block; font-size: .8rem; font-weight: 500; color: var(--ff-ink-2); margin-bottom: 1.1rem; }
#ff-plan-builder .pb-name input { display: block; margin-top: .35rem; max-width: 24rem; font-family: 'Space Grotesk', sans-serif; font-size: 1.05rem; font-weight: 600; }
.pb-day { border: 1px solid var(--ff-border); border-radius: 12px; padding: .9rem; margin-bottom: .9rem; background: var(--ff-plane); position: relative; }
.pb-day::before { content: ''; position: absolute; left: -1px; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--ff-accent); }
.pb-day-head { display: flex; gap: .5rem; align-items: center; margin-bottom: .75rem; }
.ff-app .pb-day-name { font-family: 'Space Grotesk', sans-serif; font-weight: 600; flex: 1; max-width: 18rem; background: transparent; border-color: transparent; padding-left: .4rem; }
.ff-app .pb-day-name:hover { border-color: var(--ff-border-2); }
.pb-rm-day { background: transparent; border: 1px solid var(--ff-border-2); color: var(--ff-muted); border-radius: 8px;
  padding: .4rem .65rem; font: inherit; font-size: .8rem; cursor: pointer; margin-left: auto; }
.pb-rm-day:hover { color: var(--ff-bad); border-color: var(--ff-bad); }
.pb-ex-list { list-style: none; margin: 0 0 .7rem; padding: 0; display: flex; flex-direction: column; gap: .4rem; }
.pb-ex-list:empty { display: none; }
.pb-ex-list li { display: flex; align-items: center; gap: .5rem; background: var(--ff-card); border: 1px solid var(--ff-border);
  border-radius: 10px; padding: .45rem .6rem; flex-wrap: wrap; }
.pb-ex-name { font-weight: 500; flex: 1; min-width: 8rem; }
.pb-ex-sr { display: flex; align-items: center; gap: .3rem; font-size: .85rem; color: var(--ff-muted); }
.ff-app .pb-ex-sr input { max-width: 4rem; min-height: 36px; padding: .35rem .5rem; text-align: center; }
.pb-rm-ex { background: transparent; border: none; color: var(--ff-muted); font-size: 1rem; cursor: pointer; padding: .2rem .4rem; border-radius: 6px; }
.pb-rm-ex:hover { color: var(--ff-bad); background: rgba(248,113,113,.08); }
.pb-add-ex { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) 4.6rem 5rem auto; gap: .45rem; align-items: center; }
.pb-add-ex .pb-xc { grid-column: 1 / -1; }
@media (max-width: 640px) { .pb-add-ex { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .pb-add-ex .pb-add { grid-column: 1 / -1; } }
.ff-app .pb-add-ex select, .ff-app .pb-add-ex input { max-width: none !important; }
.pb-add { background: var(--ff-accent); color: #0A0D12; border: 0; border-radius: 10px; padding: .55rem 1rem; min-height: 44px; font: inherit; font-weight: 600; cursor: pointer; }
.pb-add:hover { background: var(--ff-accent-2); }
.pb-actions { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; margin-top: .6rem; }
.pb-actions .ff-btn { margin-top: 0; }
.pb-actions #pb-add-day { background: transparent; border: 1px dashed var(--ff-border-2); color: var(--ff-ink-2);
  border-radius: 10px; padding: .55rem 1rem; min-height: 44px; font: inherit; font-weight: 500; cursor: pointer; }
.pb-actions #pb-add-day:hover { border-color: var(--ff-accent); color: var(--ff-accent); }
#pb-msg { font-size: .85rem; color: var(--ff-muted); }
#pb-msg.pb-err { color: var(--ff-bad); }
/* NEW: how-it-works steps beside the builder */
.ff-howto { list-style: none; counter-reset: s; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .9rem; }
.ff-howto li { counter-increment: s; display: grid; grid-template-columns: 26px 1fr; gap: .7rem; font-size: .88rem; color: var(--ff-ink-2); line-height: 1.5; }
.ff-howto li::before { content: counter(s); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--ff-accent-soft); border: 1px solid var(--ff-accent-line); color: var(--ff-accent); font-family: 'JetBrains Mono', monospace; font-size: 12px; }
.ff-howto b { color: #fff; font-weight: 600; display: block; }
.ff-splits { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.ff-splits span { font-family: 'JetBrains Mono', monospace; font-size: 11px; padding: 3px 8px; border-radius: 6px; border: 1px solid var(--ff-border-2); color: var(--ff-ink-2); }

/* ---------- public form-guide pages (use the blog shell's tokens) ---------- */
.fg-index { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.fg-card { display: flex; flex-direction: column; padding: 22px; }
.fg-card h3 { font-size: 1.1rem; font-weight: 700; color: white; margin: 0 0 8px; font-family: 'Space Grotesk', sans-serif; letter-spacing: -.02em; }
.fg-card:hover h3 { color: var(--accent-2); }
.fg-muscles { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 10px; }
.fg-sec { color: var(--fg-2); font-size: 13px; margin-left: 4px; }
.fg-sum { color: var(--fg-2); font-size: 14px; line-height: 1.6; margin: 0 0 14px; flex: 1; }
.fg-more { color: var(--accent); font-size: 13px; font-weight: 500; }
.fg-vars { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin: 8px 0 8px; }
.fg-var { border: 1px solid var(--line-2); border-radius: 12px; padding: 14px 16px; background: rgba(255,255,255,.02); }
.fg-var p { margin: 0; }
.prose .fg-var p { margin: 0; }
.fg-var-name { color: white; font-weight: 650; font-size: 15px; }
.fg-var-how { color: var(--fg-2); font-size: 13.5px; line-height: 1.5; margin-top: 4px !important; }
.fg-var-emph { color: var(--fg); font-size: 14px; line-height: 1.55; margin-top: 8px !important; border-left: 2px solid var(--accent); padding-left: 10px; }
.fg-fine { color: var(--fg-2); font-size: 13px; margin-top: 32px; }
/* NEW: "log this lift" call-to-action at the foot of each guide */
.fg-cta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 40px;
  padding: 20px 22px; border-radius: 14px; border: 1px solid rgba(245,158,11,.3);
  background: linear-gradient(135deg, rgba(245,158,11,.10), rgba(245,158,11,.02) 60%), var(--bg-card); }
.fg-cta p { margin: 0; color: var(--fg-2); font-size: 14px; }
.fg-cta b { display: block; color: #fff; font-family: 'Space Grotesk', sans-serif; font-size: 17px; margin-bottom: 2px; }

/* NEW: on narrow screens flatten the two columns so "Suggested next" sits above the log form */
@media (max-width: 940px) {
  .ff-layout { display: flex; flex-direction: column; }
  .ff-layout > .ff-main, .ff-layout > .ff-side { display: contents; }
  .ff-layout .ff-coach { order: -1; }
  .ff-layout .ff-plan-today { order: -2; } /* today's routine day leads, then suggestions */
  .ff-bodymap { position: static; }
}
.fg-cta .btn-primary, .prose .fg-cta .btn-primary { color: #0A0D12; text-decoration: none; }

/* ---------- interactive body map: main/helper shading, hover names, tap ---------- */
.ff-bodymap-svg .m { cursor: pointer; transition: fill .15s ease, filter .15s ease; }
.ff-bodymap-svg:focus, .ff-bodymap-svg :focus, .ff-bodymap-svg :focus-visible { outline: none; } /* focus shows as brighten + name tip instead */
.ff-bodymap-svg .m.hov, .ff-bodymap-svg .m:focus { filter: brightness(1.35); }
.ff-bodymap-svg .m.sel { stroke: var(--ff-ink); stroke-width: 1.4; }
#ff-body .m.on2 { fill: rgba(245, 158, 11, .38); }          /* helper muscles: dim amber */
.bm-wrap { position: relative; }
.bm-tip {
  position: absolute; transform: translate(-50%, calc(-100% - 10px)); pointer-events: none; z-index: 5;
  background: #0F1520; color: var(--ff-ink); border: 1px solid rgba(255,255,255,.14); border-radius: 7px;
  padding: .28rem .55rem; font-size: .76rem; font-weight: 600; white-space: nowrap;
  box-shadow: 0 8px 20px -10px rgba(0,0,0,.7);
}
.ff-bm-key { margin: .35rem 0 0; font-size: .72rem; color: var(--ff-muted); display: flex; gap: .35rem; align-items: center; justify-content: center; }
.ff-bm-key i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.ff-bm-key i.k1 { background: var(--ff-accent); }
.ff-bm-key i.k2 { background: rgba(245, 158, 11, .38); margin-left: .45rem; }
.ff-mfilter { margin: .7rem 0 0; font-size: .84rem; color: var(--ff-ink-2); display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.ff-mfilter b { color: var(--ff-accent); }
.ff-mfilter button { background: transparent; border: 1px solid var(--ff-border); color: var(--ff-ink-2); border-radius: 999px;
  padding: .15rem .6rem; font-size: .76rem; cursor: pointer; }
.ff-mfilter button:hover { border-color: var(--ff-accent-line); color: var(--ff-accent); }
.ff-bal-info { margin-top: .9rem; padding: .75rem .9rem; border: 1px dashed var(--ff-border); border-radius: 10px;
  font-size: .86rem; line-height: 1.5; color: var(--ff-ink-2); min-height: 3.2rem; }
.ff-bal-info p { margin: 0 0 .2rem; }
.ff-bal-info .ff-bal-name { color: var(--ff-ink); font-weight: 650; font-size: .95rem; }
.ff-bal-info .ff-bal-last { color: var(--ff-muted); font-size: .8rem; }
.ff-bal-info a { display: inline-block; margin-top: .35rem; font-weight: 600; font-size: .84rem; }
@media (max-width: 640px) { .ff-bodymap .ff-bm-key { grid-column: 2; justify-content: flex-start; } }

/* ---------- activities: Lift/Activity switch, type chips, effort, cardio meter ---------- */
.ff-app [hidden] { display: none !important; }
.ff-mode-tabs { display: flex; gap: 4px; margin: .2rem 0 1rem; background: var(--ff-plane); border: 1px solid var(--ff-border);
  border-radius: 11px; padding: 4px; }
.ff-mode-tab { flex: 1; background: transparent; border: 0; color: var(--ff-ink-2); font: inherit; font-weight: 600;
  font-size: .88rem; padding: .5rem .6rem; border-radius: 8px; cursor: pointer; }
.ff-mode-tab:hover { color: #fff; }
.ff-mode-tab[aria-selected="true"] { background: var(--ff-card); color: #fff; box-shadow: 0 0 0 1px var(--ff-accent-line) inset; }
.ff-act-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: .45rem; }
.ff-act-type { position: relative; display: flex; align-items: center; gap: .45rem; border: 1px solid var(--ff-border); border-radius: 10px;
  padding: .5rem .6rem; cursor: pointer; font-size: .86rem; font-weight: 600; color: var(--ff-ink-2); }
.ff-act-type input { position: absolute; opacity: 0; pointer-events: none; }
.ff-act-type .ic { font-size: 1.05rem; line-height: 1; }
.ff-act-type:hover { border-color: var(--ff-border-2); color: var(--ff-ink); }
.ff-act-type:has(input:checked) { border-color: var(--ff-accent); background: var(--ff-accent-soft); color: var(--ff-ink); }
.ff-act-type:has(input:focus-visible) { outline: 2px solid var(--ff-accent); outline-offset: 2px; }
.ff-app input[type=date] { color-scheme: dark; }
.ff-act-distrow { display: flex; gap: .35rem; }
.ff-act-distrow input { flex: 1 1 0; min-width: 0; }
.ff-act-distrow select { flex: none; width: 4.8rem; }
#ff-act-form .ff-fields.nums { grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr) minmax(0, 1.2fr); max-width: 580px; }
@media (max-width: 560px) {
  #ff-act-form .ff-fields.nums { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-auto-flow: dense; }
  #ff-act-dist { grid-column: 1 / -1; }
}
.ff-effort { display: grid; grid-template-columns: repeat(3, 1fr); gap: .45rem; }
.ff-effort-opt { position: relative; display: flex; flex-direction: column; gap: .1rem; border: 1px solid var(--ff-border); border-radius: 10px;
  padding: .5rem .65rem; cursor: pointer; }
.ff-effort-opt input { position: absolute; opacity: 0; pointer-events: none; }
.ff-effort-opt span { font-weight: 650; font-size: .88rem; }
.ff-effort-opt small { color: var(--ff-muted); font-size: .74rem; line-height: 1.3; }
.ff-effort-opt:has(input:checked) { border-color: var(--ff-accent); background: var(--ff-accent-soft); }
.ff-effort-opt:has(input:focus-visible) { outline: 2px solid var(--ff-accent); outline-offset: 2px; }
@media (max-width: 480px) { .ff-effort { grid-template-columns: 1fr; } }
.ff-cardio { margin: .75rem 0 .1rem; }
.ff-cardio p, p.ff-cardio { margin: 0; font-size: .86rem; color: var(--ff-ink-2); }
.ff-cardio span { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ff-muted); margin-right: .35rem; }
.ff-cardio b { color: var(--ff-ink); }
.ff-cardio-bar { height: 6px; border-radius: 3px; background: var(--ff-hm-0); margin-top: .4rem; overflow: hidden; }
.ff-cardio-bar i { display: block; height: 100%; background: var(--ff-s3); border-radius: 3px; }
.ff-cardio-hint { margin-top: .35rem !important; font-size: .78rem !important; color: var(--ff-muted) !important; }
.ff-act-recent { list-style: none; margin: .2rem 0 0; padding: 0; display: flex; flex-direction: column; }
.ff-act-recent li { display: flex; align-items: center; gap: .7rem; padding: .55rem 0; border-bottom: 1px solid var(--ff-border); }
.ff-act-recent li:last-child { border-bottom: 0; }
.ff-act-recent .ic { font-size: 1.2rem; width: 1.6rem; text-align: center; }
.ff-act-recent .what { flex: 1; font-size: .9rem; }
.ff-act-recent .what small { display: block; color: var(--ff-muted); font-size: .76rem; margin-top: .1rem; }
.ff-act-recent .min { font-variant-numeric: tabular-nums; font-weight: 650; }
