/* ══════════════════════════════════════════════════════════════════════
   css/funnel-home.css — the funnel home (js/funnel-home.js)

   Drawn from the approved artefact https://claude.ai/artifact/HFvmBW52c5oiV1vRCDQySh
   rule for rule, with its colours mapped onto the app's own tokens (the
   artefact was built on them, so the fallbacks are the same values).
   Everything is scoped under `.fh`.
   ══════════════════════════════════════════════════════════════════════ */

.fh {
  --fh-surface: var(--surface, #ffffff);
  --fh-surface-2: #faf9f4;
  --fh-surface-3: #f1eee5;
  --fh-border: var(--border, #e8e4d8);
  --fh-border-strong: #d8d3c2;
  --fh-text: var(--text, #15172b);
  --fh-text-2: var(--text-2, #4d5168);
  --fh-text-3: var(--text-3, #8a8fa6);
  --fh-accent: var(--accent, #6a4cf1);
  --fh-accent-deep: #4a32b8;
  --fh-accent-soft: #efeaff;
  --fh-good: #1f8a5b; --fh-good-soft: #e3f4ec;
  --fh-warn: #a4660f; --fh-warn-soft: #fbf0dc;
  --fh-bad: #c2413b; --fh-bad-soft: #fbe7e5;
  --fh-shadow: 0 1px 2px rgba(21,23,43,.06), 0 8px 24px rgba(21,23,43,.06);
  --fh-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --fh-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --fh-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  max-width: 1180px;
  padding: 20px 0 60px;
  color: var(--fh-text);
  font-family: var(--fh-body);
  font-size: 14px;
  line-height: 1.5;
}
.fh *, .fh-overlay *, .fh-toast { box-sizing: border-box; }
.fh [hidden], .fh-overlay [hidden], .fh-toast[hidden] { display: none !important; }
.fh h2, .fh h3, .fh-sheet h3 { font-family: var(--fh-display); margin: 0; letter-spacing: -.01em; text-wrap: balance; }
.fh button, .fh-sheet button { font: inherit; color: inherit; cursor: pointer; }
.fh button:focus-visible, .fh input:focus-visible, .fh select:focus-visible, .fh textarea:focus-visible { outline: 2px solid var(--fh-accent); outline-offset: 2px; }
.fh .fh-muted, .fh-sheet .fh-muted { color: var(--fh-text-2); }
.fh .fh-faint { color: var(--fh-text-3); font-size: 12.5px; }
.fh .num { font-variant-numeric: tabular-nums; }
.fh .fh-grow { flex: 1; min-width: 0; }
.fh .fh-grid { display: grid; gap: 10px; }
.fh .fh-eyebrow { font-family: var(--fh-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--fh-text-3); margin-bottom: 6px; }
.fh .fh-link { border: 0; background: none; padding: 0; color: var(--fh-accent-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* ── frame ── */
.fh .fh-app { background: var(--fh-surface-2); border: 1px solid var(--fh-border); border-radius: 16px; box-shadow: var(--fh-shadow); overflow: hidden; }
/* Room under the last card, so the Help bubble in the corner can never sit on a Save button (UX round 3). */
.fh { padding-bottom: 72px; }
.fh .fh-crumb { display: flex; align-items: center; gap: 8px; padding: 12px 22px; border-bottom: 1px solid var(--fh-border); background: var(--fh-surface); font-size: 13px; color: var(--fh-text-3); }
.fh .fh-crumb button { border: 0; background: none; padding: 0; color: var(--fh-text-3); }
.fh .fh-crumb button:hover { color: var(--fh-accent-deep); text-decoration: underline; }
.fh .fh-crumb b { color: var(--fh-text-2); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fh .fh-head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; justify-content: space-between; padding: 20px 22px 0; background: var(--fh-surface); }
.fh .fh-head:empty { display: none; }
.fh .fh-title { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fh .fh-title h2 { font-size: 24px; font-weight: 700; }
.fh .fh-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fh .fh-pill, .fh-sheet .fh-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.fh .fh-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.fh .fh-pill.good { background: var(--fh-good-soft); color: var(--fh-good); }
.fh .fh-pill.warn { background: var(--fh-warn-soft); color: var(--fh-warn); }
.fh .fh-pill.accent { background: var(--fh-accent-soft); color: var(--fh-accent-deep); }
.fh .fh-pill.plain { background: var(--fh-surface-3); color: var(--fh-text-2); }
.fh .fh-addr { display: inline-flex; align-items: center; gap: 6px; font-family: var(--fh-mono); font-size: 12px; color: var(--fh-text-2); background: var(--fh-surface-3); border: 1px solid var(--fh-border); border-radius: 8px; padding: 3px 4px 3px 9px; max-width: 100%; min-width: 0; }
.fh .fh-addr span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fh .fh-addr button { border: 0; background: var(--fh-surface); border-radius: 6px; padding: 2px 8px; font-family: var(--fh-body); font-size: 12px; font-weight: 600; color: var(--fh-accent-deep); }
.fh .fh-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.fh .fh-row-end { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: flex-end; }
/* The Help bubble is fixed to the bottom-right corner, so a right-aligned Save
   scrolled to the bottom of the screen sat under it and a click opened Help
   instead (round 4, both testers). Save keeps clear of that corner. */
.fh .fh-card .fh-row-end { padding-right: 132px; }
@media (max-width: 640px) { .fh .fh-card .fh-row-end { padding-right: 0; justify-content: flex-start; } }

.fh .fh-btn, .fh-sheet .fh-btn { display: inline-flex; align-items: center; gap: 7px; border-radius: 9px; padding: 8px 14px; font-weight: 600; font-size: 13.5px; border: 1px solid var(--fh-border-strong, #d8d3c2); background: var(--fh-surface, #fff); color: var(--fh-text, #15172b); text-decoration: none; }
.fh .fh-btn:hover { border-color: var(--fh-text-3); }
.fh .fh-btn.primary { background: var(--fh-accent); border-color: var(--fh-accent); color: #fff; }
.fh .fh-btn.primary:hover { background: var(--fh-accent-deep); border-color: var(--fh-accent-deep); }
.fh .fh-btn.primary[disabled] { background: var(--fh-surface-3); border-color: var(--fh-border); color: var(--fh-text-3); cursor: default; }
.fh .fh-btn[disabled] { opacity: .65; cursor: default; }
.fh .fh-btn.ghost { border-color: transparent; background: transparent; color: var(--fh-accent-deep); }
.fh .fh-btn.ghost:hover { background: var(--fh-accent-soft); }
.fh .fh-btn.danger { color: var(--fh-bad); border-color: var(--fh-bad-soft); }
.fh .fh-btn.sm, .fh-sheet .fh-btn.sm { padding: 5px 10px; font-size: 12.5px; border-radius: 8px; }
.fh .fh-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; border-radius: 999px; background: rgba(255,255,255,.25); font-size: 11.5px; padding: 0 6px; }

.fh .fh-tabs { display: flex; gap: 4px; padding: 14px 22px 0; background: var(--fh-surface); border-bottom: 1px solid var(--fh-border); overflow-x: auto; scrollbar-width: none; }
.fh .fh-tabs::-webkit-scrollbar { display: none; }
.fh .fh-tabs button { border: 0; background: transparent; padding: 10px 12px; font-weight: 600; color: var(--fh-text-3); border-bottom: 2px solid transparent; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.fh .fh-tabs button[aria-selected="true"] { color: var(--fh-text); border-bottom-color: var(--fh-accent); }
.fh .fh-badge { background: var(--fh-accent-soft); color: var(--fh-accent-deep); border-radius: 999px; font-size: 11px; padding: 0 7px; }
.fh .fh-head + .fh-body { border-top: 1px solid var(--fh-border); margin-top: 20px; }
.fh .fh-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 22px; }

.fh .fh-card { background: var(--fh-surface); border: 1px solid var(--fh-border); border-radius: 14px; min-width: 0; }
.fh .fh-card:focus { outline: none; }
.fh .fh-card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--fh-border); flex-wrap: wrap; }
.fh .fh-card-h h3 { font-size: 16px; font-weight: 700; }
.fh .fh-card-b { padding: 14px 16px; }
.fh .fh-note-line { border-top: 1px solid var(--fh-border); color: var(--fh-text-2); font-size: 13px; }
.fh .fh-foot { margin: 0; }

/* ── segmented control ── */
.fh .fh-seg { display: inline-flex; background: var(--fh-surface-3); border: 1px solid var(--fh-border); border-radius: 10px; padding: 3px; gap: 2px; }
.fh .fh-seg button { border: 0; background: transparent; padding: 7px 14px; border-radius: 8px; font-weight: 600; color: var(--fh-text-2); }
.fh .fh-seg button[aria-pressed="true"] { background: var(--fh-surface); color: var(--fh-text); box-shadow: var(--fh-shadow); }
.fh .fh-seg.sm button { padding: 4px 10px; font-size: 12.5px; }

/* ── needs you ── */
.fh .fh-todo { display: flex; flex-direction: column; }
.fh .fh-todo-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--fh-border); }
.fh .fh-todo-row:first-child { border-top: 0; }
.fh .fh-todo-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 14px; font-weight: 700; }
.fh .fh-todo-ic.warn { background: var(--fh-warn-soft); color: var(--fh-warn); }
.fh .fh-todo-ic.accent { background: var(--fh-accent-soft); color: var(--fh-accent-deep); }
.fh .fh-todo-ic.plain { background: var(--fh-surface-3); color: var(--fh-text-2); }
.fh .fh-todo-t b { display: block; font-weight: 600; }
.fh .fh-todo-t small { color: var(--fh-text-2); font-size: 12.5px; display: block; }
.fh .fh-todo-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.fh .fh-alldone { padding: 16px; color: var(--fh-good); font-weight: 600; }
/* Maya's own work, said once under the list, never as a row of its own. */
.fh .fh-maya-doing { display: flex; gap: 10px; align-items: center; padding: 10px 16px; border-top: 1px solid var(--fh-border); color: var(--fh-text-2); font-size: 13px; }
.fh .fh-maya-doing .fh-todo-ic { width: 24px; height: 24px; font-size: 12px; flex: none; }

/* ── numbers ── */
.fh .fh-nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fh .fh-nums > * { border: 0; background: transparent; text-align: left; padding: 14px 16px; border-left: 1px solid var(--fh-border); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fh .fh-nums > *:first-child { border-left: 0; }
.fh .fh-nums > button:hover { background: var(--fh-surface-2); }
.fh .fh-nums .v { font-family: var(--fh-display); font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.fh .fh-nums .l { font-size: 12.5px; color: var(--fh-text-2); }

/* ── the flow ── */
.fh .fh-flow { display: flex; flex-direction: column; padding: 6px 0; }
.fh .fh-step { position: relative; padding: 0 16px; }
.fh .fh-step + .fh-step::before { content: ""; position: absolute; left: 44px; top: -10px; height: 10px; border-left: 2px dashed var(--fh-border-strong); }
.fh .fh-step-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 12px; border: 1px solid var(--fh-border); border-radius: 12px; background: var(--fh-surface); margin-block: 10px; }
.fh .fh-step.open .fh-step-row { border-color: var(--fh-accent); box-shadow: 0 0 0 3px var(--fh-accent-soft); }
.fh .fh-thumb { width: 56px; height: 42px; border-radius: 7px; background: linear-gradient(160deg, #171a3a 0%, #2b2466 100%); display: flex; flex-direction: column; justify-content: center; gap: 3px; padding: 6px; }
.fh .fh-thumb i { display: block; height: 3px; border-radius: 2px; background: rgba(255,255,255,.55); }
.fh .fh-thumb i:nth-child(2) { width: 70%; background: rgba(143,120,255,.9); }
.fh .fh-thumb i:nth-child(3) { width: 45%; }
.fh .fh-step-main { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.fh .fh-step-top { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.fh .fh-step-top b { font-size: 14.5px; }
.fh .fh-role { font-size: 11.5px; font-weight: 600; color: var(--fh-text-2); background: var(--fh-surface-3); border-radius: 6px; padding: 1px 7px; }
.fh .fh-step-sub { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12.5px; color: var(--fh-text-2); }
.fh .fh-step-sub b { color: var(--fh-text); }
.fh .fh-changed { color: var(--fh-warn); font-weight: 600; }
.fh .fh-accent-t { color: var(--fh-accent-deep); font-weight: 600; }
.fh .fh-step-acts { display: flex; gap: 6px; align-items: center; }
.fh .fh-more { position: relative; }
.fh .fh-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; background: var(--fh-surface); border: 1px solid var(--fh-border); border-radius: 12px; box-shadow: var(--fh-shadow); min-width: 210px; padding: 6px; display: flex; flex-direction: column; }
.fh .fh-menu button { border: 0; background: transparent; text-align: left; padding: 8px 10px; border-radius: 8px; font-size: 13.5px; }
.fh .fh-menu button:hover { background: var(--fh-surface-3); }
.fh .fh-menu .sep { height: 1px; background: var(--fh-border); margin: 4px 0; }
.fh .fh-menu .bad { color: var(--fh-bad); }
.fh .fh-menu.up { top: auto; bottom: calc(100% + 6px); }
/* On a phone the "•••" button wraps to the start of its row, so a menu hung
   from its right edge ran 33px off the left of the screen (course round 5,
   P03). There it opens as a sheet along the bottom of the screen instead, the
   way a phone's own menus do, with room for a thumb. */
@media (max-width: 760px) {
  .fh .fh-menu, .fh .fh-menu.up { position: fixed; left: 12px; right: 12px; top: auto; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); min-width: 0; z-index: 950; padding: 8px; box-shadow: 0 -6px 40px rgba(10,12,30,.28); }
  .fh .fh-menu button { padding: 13px 12px; font-size: 15px; }
}
.fh .fh-step-detail { margin: -4px 0 10px 70px; padding: 14px; border: 1px solid var(--fh-border); border-radius: 12px; background: var(--fh-surface-2); display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.fh .fh-detail-foot { grid-column: 1 / -1; display: flex; gap: 12px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.fh .fh-detail-foot .fh-msg { margin-right: auto; }
.fh .fh-msg { font-size: 12.5px; color: var(--fh-text-2); min-height: 16px; }
.fh .fh-addstep { margin: 4px 16px 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fh .fh-body > .fh-addstep { margin: 0; }
.fh .fh-addform { margin: 0 16px 14px; padding: 14px; border: 1px dashed var(--fh-border-strong); border-radius: 12px; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; align-items: end; }

/* ── fields ── */
.fh .fh-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.fh .fh-field label { font-size: 12.5px; font-weight: 600; color: var(--fh-text-2); }
.fh .fh-hint { font-size: 12px; color: var(--fh-text-3); }
.fh input[type=text], .fh input[type=search], .fh input[type=date], .fh select, .fh textarea { font: inherit; color: var(--fh-text); background: var(--fh-surface); border: 1px solid var(--fh-border-strong); border-radius: 9px; padding: 8px 10px; width: 100%; min-width: 0; }
.fh textarea { font-family: var(--fh-mono); font-size: 12.5px; min-height: 70px; resize: vertical; }
.fh .fh-check { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; font-weight: 500 !important; color: var(--fh-text) !important; }
.fh .fh-check input { margin-top: 3px; }
.fh .fh-set-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.fh .fh-urlprev, .fh-sheet .fh-urlprev { font-family: var(--fh-mono, monospace); font-size: 12.5px; color: var(--fh-accent-deep, #4a32b8); background: var(--fh-accent-soft, #efeaff); border-radius: 8px; padding: 8px 10px; overflow-wrap: anywhere; }
.fh .fh-req { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 13.5px; }
.fh .fh-req li { display: flex; gap: 8px; align-items: baseline; }
.fh .fh-req li .t { min-width: 0; }
.fh .fh-req li .fh-btn { flex: none; }
.fh td.fh-ell { max-width: 280px; overflow: hidden; text-overflow: ellipsis; }
.fh .fh-req .ok { color: var(--fh-good); font-weight: 700; }
.fh .fh-req .no { color: var(--fh-warn); font-weight: 700; }
.fh .fh-radio-row { display: flex; flex-wrap: wrap; gap: 10px; }
.fh .fh-radio { display: flex; gap: 8px; align-items: flex-start; border: 1px solid var(--fh-border-strong); border-radius: 10px; padding: 10px 12px; flex: 1 1 200px; cursor: pointer; }
.fh .fh-radio small { display: block; color: var(--fh-text-2); }
.fh .fh-radio[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.fh .fh-toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.fh .fh-toolbar input { max-width: 280px; }
.fh .fh-pager { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid var(--fh-border); }
.fh .fh-pager:empty { display: none; }

/* ── overview columns ── */
.fh .fh-ov { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.fh .fh-ov.one { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.fh .fh-col, .fh .fh-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.fh .fh-mini { margin: 14px 16px 16px; border-radius: 10px; overflow: hidden; border: 1px solid var(--fh-border); background: var(--fh-surface-2); height: 200px; position: relative; display: grid; place-items: center; text-align: center; padding: 12px; }
.fh .fh-mini iframe { position: absolute; top: 0; left: 0; width: 400%; height: 400%; border: 0; transform: scale(.25); transform-origin: 0 0; pointer-events: none; }

/* ── tables ── */
.fh .fh-tbl { overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
/* A grid/flex child defaults to min-width:auto and grows to its widest table,
   so the table was clipped by the card instead of scrolling inside it
   (round 4, 390px Analytics: "Went on" hidden). */
.fh .fh-card, .fh .fh-col, .fh .fh-body { min-width: 0; }
.fh table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.fh th { font-size: 12px; font-weight: 600; color: var(--fh-text-3); text-align: left; padding: 10px 16px; border-bottom: 1px solid var(--fh-border); white-space: nowrap; }
.fh td { padding: 11px 16px; border-bottom: 1px solid var(--fh-border); white-space: nowrap; }
.fh tr:last-child td { border-bottom: 0; }
.fh td.r, .fh th.r, .fh .r { text-align: right; }
.fh tbody tr.click { cursor: pointer; }
.fh tbody tr.click:hover { background: var(--fh-surface-2); }

/* ── ladder ── */
.fh .fh-ladder { display: flex; flex-direction: column; gap: 10px; padding: 16px; }
.fh .fh-lad { display: grid; grid-template-columns: 170px minmax(0, 1fr) 44px 56px; gap: 12px; align-items: center; font-size: 13.5px; }
.fh .fh-lad small { display: block; color: var(--fh-text-3); font-size: 12px; }
.fh .fh-bar { height: 8px; border-radius: 4px; background: var(--fh-accent); min-width: 3px; }
.fh .fh-lad .drop { color: var(--fh-bad); font-weight: 600; }

/* ── disclosure ── */
.fh details { border-top: 1px solid var(--fh-border); }
.fh .fh-card > details:first-child { border-top: 0; }
.fh details summary { list-style: none; cursor: pointer; padding: 12px 16px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.fh details summary::-webkit-details-marker { display: none; }
.fh details summary::after { content: "+"; color: var(--fh-text-3); font-size: 18px; font-weight: 500; }
.fh details[open] summary::after { content: "–"; }
.fh .fh-inner { padding: 0 16px 16px; display: grid; gap: 12px; min-width: 0; }

/* ── emails tab: the embedded funnel-emails screen loses its page chrome ── */
.fh .fe-embedded { padding: 0; max-width: none; }
.fh .fe-embedded .fe-lede { margin-top: 0; }


/* ── sheet + toast (appended to body, outside .fh) ── */
.fh-overlay { position: fixed; inset: 0; background: rgba(10,12,30,.55); z-index: 9000; display: grid; place-items: center; padding: 16px; font-family: "Inter", ui-sans-serif, system-ui, sans-serif; font-size: 14px; }
.fh-sheet { background: #fff; color: #15172b; border-radius: 14px; max-width: 460px; width: 100%; padding: 20px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 8px 24px rgba(21,23,43,.16); }
.fh-sheet h3 { font-size: 18px; font-weight: 700; }
.fh-sheet p { margin: 0; }
.fh-sheet .fh-list { display: flex; flex-direction: column; gap: 6px; }
.fh-sheet .fh-list .fh-btn { justify-content: flex-start; }
.fh-sheet .fh-row-end { display: flex; gap: 8px; justify-content: flex-end; }
.fh-sheet .fh-btn { display: inline-flex; align-items: center; border-radius: 9px; padding: 8px 14px; font-weight: 600; font-size: 13.5px; border: 1px solid #d8d3c2; background: #fff; color: #15172b; }
.fh-sheet .fh-btn.primary { background: #6a4cf1; border-color: #6a4cf1; color: #fff; }
.fh-sheet .fh-btn[disabled] { opacity: .65; cursor: default; }
.fh-sheet .fh-muted { color: #6f7390; }
/* "Make this a website": the page list can be long, so the sheet scrolls rather than leaving the screen. */
.fh-overlay .fh-sheet:has(.fh-mkweb) { max-height: calc(100vh - 32px); overflow: auto; }
.fh-sheet .fh-mkweb { display: grid; gap: 10px; overflow-wrap: anywhere; }
.fh-sheet .fh-mkweb h4 { margin: 4px 0 0; font-size: 13.5px; font-weight: 700; }
.fh-sheet .fh-mkweb ul { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.fh-sheet .fh-mkweb-msg { color: #b42318; font-weight: 600; }
.fh-toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: #15172b; color: #f6f4ee; padding: 10px 16px; border-radius: 10px; font-weight: 600; font-family: "Inter", ui-sans-serif, system-ui, sans-serif; font-size: 14px; z-index: 9500; max-width: calc(100% - 32px); }

@media (max-width: 900px) {
  .fh .fh-ov { grid-template-columns: minmax(0, 1fr); }
  .fh .fh-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fh .fh-nums > *:nth-child(3) { border-left: 0; }
  .fh .fh-nums > *:nth-child(n+3) { border-top: 1px solid var(--fh-border); }
}
@media (max-width: 560px) {
  .fh { padding-top: 8px; }
  .fh .fh-head, .fh .fh-body, .fh .fh-tabs, .fh .fh-crumb { padding-inline: 14px; }
  .fh .fh-body { padding-block: 14px; }
  .fh .fh-step { padding: 0 12px; }
  .fh .fh-step-row { grid-template-columns: minmax(0, 1fr) auto; }
  .fh .fh-thumb { display: none; }
  .fh .fh-step-sub { flex-direction: column; gap: 1px; }
  .fh .fh-step-sub .fh-sep { display: none; }
  .fh .fh-step + .fh-step::before { left: 28px; }
  .fh .fh-step-detail { margin-left: 0; }
  .fh .fh-todo-row { grid-template-columns: auto minmax(0, 1fr); }
  .fh .fh-todo-acts { grid-column: 1 / -1; justify-content: flex-start; }
  .fh .fh-lad { grid-template-columns: 110px minmax(0, 1fr) 34px; }
  .fh .fh-lad .pct { display: none; }
  .fh .fh-actions .fh-btn { padding: 7px 11px; }
  /* All five tabs on a 390px screen: Settings was off the edge with nothing
     saying it was there (tester). */
  .fh .fh-tabs { gap: 0; padding-inline: 4px; }
  .fh .fh-tabs button { padding: 10px 6px; font-size: 13px; }
  /* What a coach checks on a phone is who paid and how much: Date and Bought
     give way, Status and Total stay (tester: they were scrolled out of view). */
  .fh .fh-orders-t th:nth-child(1), .fh .fh-orders-t td:nth-child(1),
  .fh .fh-orders-t th:nth-child(3), .fh .fh-orders-t td:nth-child(3) { display: none; }
  .fh .fh-pages-t th:nth-child(2), .fh .fh-pages-t td:nth-child(2) { display: none; }
  .fh .fh-orders-t { table-layout: fixed; width: 100%; }
  .fh .fh-orders-t td:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .fh .fh-orders-t th:nth-child(4) { width: 104px; }
  .fh .fh-orders-t th:nth-child(5) { width: 72px; }
  .fh .fh-orders-t .fh-pill { font-size: 11.5px; white-space: nowrap; }
}
@media (prefers-reduced-motion: no-preference) {
  .fh .fh-menu, .fh .fh-step-detail { animation: fh-rise .16s ease-out; }
}
@keyframes fh-rise { from { opacity: .4; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.fh .fh-ok { color: var(--fh-good, #0f7b4f); font-weight: 600; }
.fh .fh-lab { font-size: 12.5px; font-weight: 600; color: var(--fh-text-2); }
.fh .fh-snoozed { border-top: 1px dashed var(--fh-border); opacity: .85; }
.fh .fh-todo-more { padding: 10px 18px 12px; display: flex; gap: 18px; }
.fh .fh-brainnote { background: var(--fh-surface-2); border-radius: 10px; padding: 10px 12px; font-size: 13.5px; }
.fh .fh-brainnote ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 4px; }
.fh .fh-bump { display: flex; flex-direction: column; gap: 5px; }
.fh .fh-bump + .fh-bump { margin-top: 6px; }
