/* Fieldhouse — visual system. Served from /public, linked by components/fieldhouse/FieldhouseStyles.tsx.
 *
 * Tokens and component classes are copied VERBATIM from rtp-sales-board/src/styles.js so
 * the rep-facing schedule tool and the board they already use every day read as one
 * product. Prefixed `--fh-` / `.fh-` so nothing here collides with the rest of this app.
 * Imported ONLY by FieldhouseShell.tsx — never add this to _app.tsx or the MUI theme.
 * See docs/superpowers/plans/2026-09-21-fieldhouse-read-only.md, Task 9.
 *
 * Futura (the board's real display face) is a licensed desktop font, named first and
 * picked up free wherever it is already installed — never fetched. The board itself
 * additionally `@import`s the Google-hosted "Jost" fallback for machines without
 * Futura; that line is deliberately OMITTED here so this preview keeps its "no network
 * calls" guarantee literally true. A machine without Futura falls to "Century Gothic"
 * or the plain sans-serif fallback instead — a cosmetic gap, not a functional one.
 */

.fh-refreshing { opacity: .55; transition: opacity .15s; }

.fh-root {
  --fh-blue: #4995d1;
  --fh-navy: #073755;
  --fh-lime: #bbd531;
  --fh-deep: #005893;
  --fh-mid: #2179bf;
  --fh-pale: #d2e4f2;
  --fh-ink: #1b252f;
  --fh-bg: #f2f6fa;
  --fh-card: #fff;
  --fh-line: #e2e8f0;
  --fh-line-soft: #eef2f7;
  --fh-text: #0f172a;
  --fh-muted: #5a6b7d;
  /* Darkened from the board's literal #8496a8 (measures 3.04:1 on white — fails AA).
     #57697c clears 4.5:1 on every background this token actually sits on in Fieldhouse
     (white cards, --fh-bg, --fh-line-soft) while staying visually the "faint" grey. */
  --fh-faint: #57697c;

  --fh-ok-bg: #eef7d6;
  --fh-ok-tx: #4d5f0d;
  --fh-ok-br: #cfe27f;
  --fh-bad-bg: #fdecec;
  --fh-bad-tx: #9e2626;
  --fh-bad-br: #f3c9c9;
  --fh-info-bg: #e6f1fa;
  --fh-info-tx: #0f5b8f;
  --fh-info-br: #c6dff2;
  --fh-neutral-bg: #eef2f6;
  --fh-neutral-tx: #41556a;
  --fh-neutral-br: #dde5ed;
  /* Failed Credit gets its own amber — a decline, still a sit, never painted with the
     red used for No Show / Not Interested. Mirrors .p-failed-credit on the board. */
  --fh-warn-bg: #fdf1dd;
  --fh-warn-tx: #8a5410;
  --fh-warn-br: #f2ddb8;

  --fh-r: 12px;
  --fh-shadow: 0 1px 2px rgba(7, 55, 85, 0.06), 0 1px 8px rgba(7, 55, 85, 0.04);
  --fh-display: "Futura", "Jost", "Century Gothic", "Avenir Next", sans-serif;
  --fh-body: "Helvetica Neue", Helvetica, -apple-system, BlinkMacSystemFont, Arial, sans-serif;

  background: var(--fh-bg);
  color: var(--fh-text);
  font-family: var(--fh-body);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Live My Day / Full view: lock the document so MenuBar never scrolls away. Sheets
   and card lists scroll in the pane below the chrome, not on <main> / <body>. */
html:has(.fh-md),
html:has(.fh-shell),
body:has(.fh-md),
body:has(.fh-shell) {
  height: 100%;
  overflow: hidden;
}
.fh-chrome {
  flex: 0 0 auto;
  position: relative;
  z-index: 40;
}
.fh-shell {
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.fh-shell > .fh-header {
  flex: 0 0 auto;
}
.fh-shell > .fh-page {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  width: 100%;
}

.fh-root * {
  box-sizing: border-box;
}

/* ---------- preview banner ---------- */
.fh-preview-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: var(--fh-navy);
  color: #fff;
  border-top: 3px solid var(--fh-lime);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  font-family: var(--fh-body);
  font-size: 12.5px;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: center;
  justify-content: center;
}
.fh-preview-banner strong {
  font-family: var(--fh-display);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--fh-lime);
}

/* ---------- header ---------- */
.fh-header {
  background: var(--fh-navy);
  border-bottom: 3px solid var(--fh-lime);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
}
/* The navy bar spans full width; its content lines up with the cards below (same
   760px measure, centered), so desktop reads as one aligned column, not an edge-to-edge
   bar over a narrow, left-stuck page. */
.fh-header-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.fh-header h1 {
  font-family: var(--fh-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  margin: 0;
  color: #fff;
}
.fh-header-closing {
  margin-left: auto;
  display: flex;
  align-items: baseline;
  gap: 7px;
  white-space: nowrap;
}
.fh-header-closing .fh-closing-label {
  font-family: var(--fh-display);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}
.fh-header-closing .fh-closing-val {
  font-family: var(--fh-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--fh-lime);
  line-height: 1;
}
.fh-header-closing .fh-closing-val.fh-err {
  color: #ffb4b4;
  font-size: 13px;
  font-weight: 600;
}

/* view toggle in the header, admin only */
.fh-seg {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}
.fh-seg button {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  font: 700 12.5px var(--fh-body);
  letter-spacing: 0.02em;
  padding: 10px 14px;
  min-height: 44px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.fh-seg button + button {
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}
.fh-seg button.fh-on {
  background: var(--fh-lime);
  color: #2c3505;
}
.fh-seg button:focus-visible {
  outline: 2px solid var(--fh-lime);
  outline-offset: -2px;
}

/* ---------- page shell ---------- */
.fh-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 16px 14px 96px;
}

/* ---------- cards ---------- */
.fh-card {
  background: var(--fh-card);
  border: 1px solid var(--fh-line);
  border-radius: var(--fh-r);
  box-shadow: var(--fh-shadow);
  overflow: hidden;
  margin-bottom: 16px;
}
.fh-card-hd {
  padding: 13px 16px;
  border-bottom: 1px solid var(--fh-line);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.fh-card-hd h2 {
  font-family: var(--fh-display);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--fh-navy);
  letter-spacing: 0.02em;
  margin: 0;
  text-transform: uppercase;
}
.fh-card-hd .fh-hint {
  font-size: 12px;
  color: var(--fh-faint);
  margin-left: auto;
}
.fh-card-bd {
  padding: 14px 16px;
}

/* ---------- pills (verticals + dispositions) ---------- */
.fh-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid;
  white-space: nowrap;
  line-height: 1.3;
}
.fh-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: currentColor;
  flex: none;
}
.fh-pill.fh-vertical {
  background: var(--fh-pale);
  color: var(--fh-deep);
  border-color: #b6d5ec;
  text-transform: capitalize;
}
.fh-pill.fh-vertical::before {
  display: none;
}

.fh-p-scheduled { background: var(--fh-neutral-bg); color: var(--fh-neutral-tx); border-color: var(--fh-neutral-br); }
.fh-p-sit { background: var(--fh-info-bg); color: var(--fh-info-tx); border-color: var(--fh-info-br); }
.fh-p-sale { background: var(--fh-ok-bg); color: var(--fh-ok-tx); border-color: var(--fh-ok-br); }
/* "Go Back" and anything unrecognised: the board has no dedicated class for these, so
   per Task 9's table they render neutral, same as Scheduled. */
.fh-p-open { background: var(--fh-neutral-bg); color: var(--fh-neutral-tx); border-color: var(--fh-neutral-br); }
.fh-p-miss { background: var(--fh-bad-bg); color: var(--fh-bad-tx); border-color: var(--fh-bad-br); }
/* Failed Credit — its own amber, matching .p-failed-credit on the board. Still a sit. */
.fh-p-failed-credit { background: var(--fh-warn-bg); color: var(--fh-warn-tx); border-color: var(--fh-warn-br); }
/* The remaining three mirror the board's OWN dedicated classes exactly (.p-finance-pending,
   .p-reschedule, .p-cancelled) rather than folding into the generic table above. */
.fh-p-finance-pending { background: var(--fh-pale); color: var(--fh-deep); border-color: #b6d5ec; }
/* Text colour darkened from the board's literal --mid (#2179bf, 3.95:1 on this bg) and
   #7b8b9b (3.23:1) — both fail AA at pill text size. Background/border stay the board's. */
.fh-p-reschedule { background: #e8eef4; color: #155a89; border-color: #cfdeeb; }
.fh-p-cancelled { background: #f4f6f8; color: #5c6875; border-color: #e5eaef; }

/* ---------- schedule rows ---------- */
.fh-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--fh-line-soft);
}
.fh-row:last-child {
  border-bottom: 0;
}
.fh-row-main {
  min-width: 0;
}
.fh-row-time {
  font-family: var(--fh-display);
  font-weight: 700;
  color: var(--fh-navy);
  font-variant-numeric: tabular-nums;
  font-size: 14px;
}
.fh-row-name {
  font-weight: 600;
  color: var(--fh-text);
  font-size: 14.5px;
}
.fh-row-sub {
  color: var(--fh-muted);
  font-size: 13px;
  margin-top: 1px;
}
.fh-row-role {
  color: var(--fh-faint);
  font-size: 12px;
  margin-top: 3px;
}
.fh-row-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex: none;
}

/* Disabled dispo select styled to read as a real control, not a broken one. Colour
   (background/text/border-color) comes from the .fh-p-* result class applied alongside
   this — see resultPillClass() in ScheduleZone.tsx — so it must not set those itself,
   or it would win the cascade (this rule is declared after the pill rules above) and
   every disposition would render identically regardless of result. */
.fh-dispo {
  font: 700 12px var(--fh-body);
  padding: 8px 28px 8px 12px;
  /* 44px: the tap-target floor for a phone used outdoors, gloves on — even disabled,
     this control becomes live with a one-line change and must not need re-sizing then. */
  min-height: 44px;
  border-width: 1px;
  border-style: solid;
  border-radius: 99px;
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6'><path d='M0 0l5 6 5-6z' fill='%238496a8'/></svg>");
  max-width: 168px;
  appearance: none;
  -webkit-appearance: none;
  opacity: 1;
}
.fh-dispo:disabled {
  cursor: not-allowed;
}
.fh-dispo-hint {
  font-size: 10.5px;
  color: var(--fh-faint);
  margin-top: 3px;
  text-align: right;
}

/* ---------- weekly strip ---------- */
.fh-week-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}
.fh-week-day {
  border: 1px solid var(--fh-line);
  border-radius: 9px;
  padding: 8px 4px;
  text-align: center;
  background: var(--fh-card);
  min-height: 44px;
}
.fh-week-day .fh-wd-label {
  font-family: var(--fh-display);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fh-faint);
}
.fh-week-day .fh-wd-count {
  font-family: var(--fh-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--fh-navy);
  margin-top: 2px;
}
.fh-week-day.fh-wd-sale { background: var(--fh-ok-bg); border-color: var(--fh-ok-br); }
.fh-week-day.fh-wd-sale .fh-wd-count { color: var(--fh-ok-tx); }
.fh-week-day.fh-wd-miss { background: var(--fh-bad-bg); border-color: var(--fh-bad-br); }
.fh-week-day.fh-wd-miss .fh-wd-count { color: var(--fh-bad-tx); }
.fh-week-day.fh-wd-mixed { background: var(--fh-info-bg); border-color: var(--fh-info-br); }
.fh-week-day.fh-wd-mixed .fh-wd-count { color: var(--fh-info-tx); }
.fh-week-day.fh-wd-empty { opacity: 0.55; }

/* ---------- stat tiles (numbers zone) ---------- */
.fh-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (min-width: 480px) {
  .fh-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.fh-stat {
  background: var(--fh-card);
  border: 1px solid var(--fh-line);
  border-radius: var(--fh-r);
  padding: 12px 13px;
  box-shadow: var(--fh-shadow);
  position: relative;
  overflow: hidden;
  min-width: 0;
}
.fh-stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--fh-line-soft);
}
.fh-stat.fh-stat-hero::before {
  background: var(--fh-lime);
}
.fh-stat .fh-stat-label {
  font-family: var(--fh-display);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fh-faint);
  font-weight: 500;
}
.fh-stat .fh-stat-val {
  font-family: var(--fh-display);
  font-weight: 700;
  font-size: 24px;
  color: var(--fh-navy);
  margin-top: 4px;
  line-height: 1.1;
}

/* ---------- projects table ---------- */
.fh-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.fh-table thead th {
  background: #f7fafc;
  text-align: left;
  font: 500 10px/1 var(--fh-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fh-muted);
  padding: 10px 10px;
  border-bottom: 1px solid var(--fh-line);
  white-space: nowrap;
}
.fh-table tbody td {
  padding: 10px;
  border-bottom: 1px solid var(--fh-line-soft);
  vertical-align: middle;
}
.fh-table tbody tr:last-child td {
  border-bottom: 0;
}
.fh-table tbody tr:hover {
  background: #f8fbfd;
}

.fh-project-card {
  border: 1px solid var(--fh-line);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
  background: var(--fh-card);
}
.fh-project-card:last-child {
  margin-bottom: 0;
}
.fh-project-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 3px 0;
  font-size: 13px;
}
.fh-project-row .fh-project-k {
  color: var(--fh-faint);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding-top: 2px;
}
.fh-project-row .fh-project-v {
  text-align: right;
  color: var(--fh-text);
  font-weight: 500;
}

/* ---------- unmatched tray ---------- */
.fh-tray {
  border: 1px solid var(--fh-warn-br);
  background: var(--fh-warn-bg);
  color: var(--fh-warn-tx);
  border-radius: var(--fh-r);
  padding: 13px 15px;
  margin-bottom: 16px;
}
.fh-tray-title {
  font-family: var(--fh-display);
  font-weight: 700;
  font-size: 13px;
  margin: 0 0 6px;
}
.fh-tray-row {
  font-size: 12.5px;
  line-height: 1.5;
  color: #5c4109;
}

/* ---------- rep selector ---------- */
.fh-select {
  font: 600 13.5px var(--fh-body);
  padding: 9px 30px 9px 12px;
  min-height: 44px;
  border: 1px solid var(--fh-line);
  border-radius: 9px;
  background-color: #fff;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6'><path d='M0 0l5 6 5-6z' fill='%23073755'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  color: var(--fh-navy);
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  max-width: 320px;
  cursor: pointer;
}
.fh-select:focus-visible {
  outline: 2px solid var(--fh-blue);
  outline-offset: -1px;
}
.fh-field-label {
  display: block;
  font-family: var(--fh-display);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fh-faint);
  margin-bottom: 6px;
}

/* ---------- empty / muted text ---------- */
.fh-empty {
  color: var(--fh-faint);
  font-size: 13.5px;
  padding: 6px 0;
}
.fh-muted {
  color: var(--fh-muted);
  font-size: 13px;
}

/* No horizontal scroll anywhere at phone width. */
@media (max-width: 480px) {
  .fh-page { padding-left: 12px; padding-right: 12px; }
  .fh-row { flex-wrap: wrap; }
  .fh-row-side { align-items: flex-start; width: 100%; flex-direction: row; justify-content: space-between; }
  .fh-dispo { max-width: none; flex: 1 1 auto; }
}

/* =====================================================================
   v2 (2026-09-23): primary tabs, shared filter bar, contact cards,
   needs-update alerts, org editor. Same tokens as above; nothing new
   invented beyond layout.
   ===================================================================== */

/* ---------- primary tabs (inside the sticky header) ---------- */
.fh-tabs {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.fh-tabs-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 10px;
  display: flex;
  gap: 2px;
}
.fh-tab {
  appearance: none;
  flex: 1 1 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font: 700 14px var(--fh-display);
  letter-spacing: 0.02em;
  min-height: 48px;
  padding: 0 8px;
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.fh-tab.fh-on {
  color: #fff;
  border-bottom-color: var(--fh-lime);
}
.fh-tab:focus-visible {
  outline: 2px solid var(--fh-lime);
  outline-offset: -4px;
}
.fh-tab-badge {
  background: #e5484d;
  color: #fff;
  font: 700 11px/1 var(--fh-body);
  border-radius: 99px;
  padding: 4px 7px;
  min-width: 20px;
  text-align: center;
}
.fh-header-link {
  margin-left: auto;
  color: var(--fh-lime);
  font-weight: 700;
  font-size: 13.5px;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* ---------- shared filter bar ---------- */
.fh-filterbar {
  background: var(--fh-card);
  border: 1px solid var(--fh-line);
  border-radius: var(--fh-r);
  box-shadow: var(--fh-shadow);
  padding: 12px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fh-filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.fh-filter-row .fh-select {
  flex: 1 1 200px;
}
.fh-filter-tools {
  justify-content: space-between;
}
.fh-seg.fh-seg-light {
  border-color: var(--fh-line);
  background: var(--fh-bg);
}
.fh-seg.fh-seg-light button {
  color: var(--fh-navy);
}
.fh-seg.fh-seg-light button + button {
  border-left-color: var(--fh-line);
}
.fh-seg.fh-seg-light button.fh-on {
  background: var(--fh-navy);
  color: #fff;
}
.fh-seg button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.fh-stepper {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.fh-range-label {
  font-family: var(--fh-display);
  font-weight: 700;
  color: var(--fh-navy);
  font-size: 14px;
  min-width: 118px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.fh-iconbtn {
  appearance: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--fh-line);
  background: #fff;
  color: var(--fh-navy);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.fh-search {
  flex: 1 1 200px;
  min-height: 44px;
  border: 1px solid var(--fh-line);
  border-radius: 9px;
  padding: 9px 12px;
  font: 500 14px var(--fh-body);
  color: var(--fh-text);
  background: #fff;
  width: 100%;
}
.fh-search:focus-visible {
  outline: 2px solid var(--fh-blue);
  outline-offset: -1px;
}
.fh-hint-line {
  font-size: 12.5px;
  color: var(--fh-muted);
  margin: 0;
}

/* ---------- buttons ---------- */
.fh-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid var(--fh-navy);
  background: var(--fh-navy);
  color: #fff;
  font: 700 13.5px var(--fh-body);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.fh-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.fh-btn-quiet {
  background: #fff;
  color: var(--fh-navy);
  border-color: var(--fh-line);
}
.fh-btn-alert {
  background: #b42318;
  border-color: #b42318;
  color: #fff;
}
.fh-linkbtn {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  color: var(--fh-deep);
  font: 700 13px var(--fh-body);
  text-decoration: underline;
  cursor: pointer;
  min-height: 32px;
}
.fh-alertbtn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 99px;
  border: 1px solid var(--fh-line);
  background: #fff;
  color: var(--fh-navy);
  font: 700 13px var(--fh-body);
  cursor: pointer;
}
.fh-alertbtn.fh-on {
  background: var(--fh-ok-bg);
  border-color: var(--fh-ok-br);
  color: var(--fh-ok-tx);
}
.fh-alertbtn:disabled {
  cursor: default;
  color: var(--fh-muted);
}
.fh-bell {
  width: 14px;
  height: 14px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 22a2.5 2.5 0 0 0 2.45-2h-4.9A2.5 2.5 0 0 0 12 22zm7-6V11a7 7 0 0 0-5-6.71V3.5a2 2 0 1 0-4 0v.79A7 7 0 0 0 5 11v5l-2 2v1h18v-1z'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 22a2.5 2.5 0 0 0 2.45-2h-4.9A2.5 2.5 0 0 0 12 22zm7-6V11a7 7 0 0 0-5-6.71V3.5a2 2 0 1 0-4 0v.79A7 7 0 0 0 5 11v5l-2 2v1h18v-1z'/></svg>") center / contain no-repeat;
}

/* ---------- status chips ---------- */
.fh-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  margin-bottom: 4px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.fh-chip {
  appearance: none;
  flex: none;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 99px;
  border: 1px solid var(--fh-line);
  background: #fff;
  color: var(--fh-navy);
  font: 700 13px var(--fh-body);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.fh-chip .fh-chip-n {
  font-variant-numeric: tabular-nums;
  color: var(--fh-muted);
  font-weight: 600;
}
.fh-chip.fh-on {
  background: var(--fh-navy);
  border-color: var(--fh-navy);
  color: #fff;
}
.fh-chip.fh-on .fh-chip-n {
  color: var(--fh-lime);
}
.fh-chip.fh-chip-alert {
  border-color: #f3b5b0;
  background: var(--fh-bad-bg);
  color: var(--fh-bad-tx);
}
.fh-chip.fh-chip-alert .fh-chip-n {
  color: var(--fh-bad-tx);
}
.fh-chip.fh-chip-alert.fh-on {
  background: #b42318;
  border-color: #b42318;
  color: #fff;
}
.fh-chip.fh-chip-alert.fh-on .fh-chip-n {
  color: #fff;
}

/* ---------- needs-update banner ---------- */
.fh-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: var(--fh-bad-bg);
  border: 1px solid var(--fh-bad-br);
  color: var(--fh-bad-tx);
  border-radius: var(--fh-r);
  padding: 10px 12px 10px 14px;
  margin-bottom: 12px;
  font-size: 14px;
}

/* ---------- contact cards ---------- */
.fh-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fh-ccard {
  background: var(--fh-card);
  border: 1px solid var(--fh-line);
  border-radius: var(--fh-r);
  box-shadow: var(--fh-shadow);
  padding: 14px 15px;
  margin-bottom: 10px;
}
.fh-cards .fh-ccard {
  margin-bottom: 0;
}
.fh-ccard.fh-ccard-stale {
  border-color: var(--fh-bad-br);
  box-shadow: inset 4px 0 0 #d92d20, var(--fh-shadow);
}
.fh-ccard-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.fh-ccard-id {
  min-width: 0;
}
.fh-ccard-name {
  font-family: var(--fh-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--fh-navy);
  margin: 0;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.fh-ccard-sub {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--fh-muted);
  font-size: 13px;
  margin-top: 4px;
}
.fh-ccard-sub .fh-pill {
  padding: 2px 9px;
  font-size: 11px;
}
.fh-ccard-addr {
  color: var(--fh-navy);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.fh-ccard-addr:hover {
  color: var(--fh-link, var(--fh-navy));
}
.fh-ccard-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 10px;
  font-size: 13px;
}
.fh-ccard-when {
  font-weight: 700;
  color: var(--fh-text);
  font-variant-numeric: tabular-nums;
}
.fh-ccard-who {
  color: var(--fh-muted);
}
.fh-ccard-money {
  display: flex;
  gap: 14px;
  margin-top: 8px;
  font-family: var(--fh-display);
  font-weight: 700;
  color: var(--fh-ok-tx);
  font-size: 14px;
}
.fh-ccard-count {
  font-size: 12px;
  color: var(--fh-muted);
  white-space: nowrap;
  padding-top: 3px;
}
.fh-ccard-more {
  appearance: none;
  border: 0;
  background: none;
  padding: 10px 0 0;
  color: var(--fh-deep);
  font: 700 13px var(--fh-body);
  cursor: pointer;
  min-height: 36px;
}
.fh-ccard-history {
  list-style: none;
  margin: 8px 0 0;
  padding: 8px 0 0;
  border-top: 1px solid var(--fh-line-soft);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}
.fh-ccard-history li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.fh-stale {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--fh-bad-bg);
  border: 1px solid var(--fh-bad-br);
  color: var(--fh-bad-tx);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13.5px;
  line-height: 1.4;
}
.fh-stale-text {
  flex: 1 1 220px;
}
.fh-stale-hint {
  font-weight: 700;
  font-size: 12.5px;
}

/* ---------- projects list inside a customer card ---------- */
.fh-section {
  margin-bottom: 18px;
}
.fh-section-title {
  font-family: var(--fh-display);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fh-muted);
  margin: 4px 2px 10px;
}
.fh-plist {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fh-plist li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--fh-line-soft);
}
.fh-plist li:first-child {
  border-top: 0;
  padding-top: 0;
}
.fh-plist-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.fh-plist-name {
  font-weight: 600;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.fh-plist-id {
  font-size: 12px;
  color: var(--fh-faint);
  overflow-wrap: anywhere;
}

/* ---------- org editor ---------- */
.fh-org {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fh-org-row {
  background: var(--fh-card);
  border: 1px solid var(--fh-line);
  border-radius: var(--fh-r);
  padding: 12px 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.fh-org-who {
  min-width: 0;
  flex: 1 1 200px;
}
.fh-org-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex: 2 1 360px;
  justify-content: flex-end;
}
.fh-org-controls .fh-select {
  flex: 1 1 150px;
  max-width: 240px;
}
.fh-org-err,
.fh-org-hint {
  flex-basis: 100%;
  font-size: 12.5px;
  border-radius: 8px;
  padding: 8px 10px;
}
.fh-org-err {
  background: var(--fh-bad-bg);
  color: var(--fh-bad-tx);
}
.fh-org-hint {
  background: var(--fh-warn-bg);
  color: var(--fh-warn-tx);
}

@media (max-width: 480px) {
  .fh-header-inner { padding: 12px 14px; gap: 10px; }
  .fh-header h1 { font-size: 17px; }
  .fh-header .fh-seg button { padding: 8px 10px; font-size: 12px; }
  .fh-stepper { width: 100%; justify-content: space-between; }
  .fh-range-label { flex: 1; }
  .fh-filterbar .fh-seg.fh-seg-light { width: 100%; }
  .fh-filterbar .fh-seg.fh-seg-light button { flex: 1; }
  .fh-org-controls .fh-select { max-width: none; }
}

/* ---------- preview-only chrome ---------- */
.fh-preview-bar {
  background: #0b2233;
  color: #fff;
  font-size: 12.5px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.fh-preview-bar strong {
  font-family: var(--fh-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--fh-lime);
}
.fh-preview-bar label {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.fh-preview-bar select {
  font: 600 12.5px var(--fh-body);
  min-height: 36px;
  border-radius: 8px;
  padding: 4px 8px;
  color: var(--fh-navy);
}
.fh-sub-dump {
  white-space: pre-wrap;
  word-break: break-all;
  font-size: 11px;
  margin: 12px;
  padding: 10px;
  background: #f4f6f8;
  border-radius: 8px;
}

/* ---------- settings footer ---------- */
.fh-footer {
  margin-top: 22px;
  border-top: 1px solid var(--fh-line);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.fh-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.fh-footer-title {
  font-weight: 700;
  color: var(--fh-navy);
  font-size: 14px;
}
/* period control + stepper share a row on a phone */
.fh-filterbar { padding: 10px; gap: 8px; }
.fh-filterbar .fh-seg.fh-seg-light button { padding: 8px 12px; min-height: 44px; }
@media (max-width: 480px) {
  .fh-filterbar .fh-seg.fh-seg-light { width: auto; flex: 1 1 auto; }
  .fh-stepper { width: auto; flex: 1 1 auto; }
  .fh-range-label { min-width: 0; font-size: 13px; }
  .fh-iconbtn { width: 40px; }
}

/* ---------- contact card actions ---------- */
.fh-ccard-actions {
  margin-top: 12px;
}
.fh-ccard-statusbtn {
  appearance: none;
  font: inherit;
  cursor: pointer;
  max-width: 100%;
  text-align: left;
}
.fh-ccard-statusbtn::after {
  content: "";
  width: 0;
  height: 0;
  margin-left: 2px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.7;
  flex: none;
}
.fh-stale-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.fh-stale.fh-stale-ok {
  background: var(--fh-ok-bg);
  border-color: var(--fh-ok-br);
  color: var(--fh-ok-tx);
}

/* ---------- update-status sheet ---------- */
.fh-sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 25, 38, 0.5);
  z-index: 60;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.fh-md-pane > .fh-sheet-overlay {
  position: absolute;
}
.pac-container {
  z-index: 80;
}
.fh-sheet {
  width: 100%;
  max-width: 560px;
  max-height: 88vh;
  background: var(--fh-card);
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -4px 24px rgba(7, 55, 85, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
@media (min-width: 640px) {
  .fh-sheet-overlay { align-items: center; }
  .fh-sheet { border-radius: var(--fh-r); max-height: 84vh; }
}
.fh-sheet-handle {
  width: 40px;
  height: 4px;
  border-radius: 99px;
  background: var(--fh-line);
  margin: 10px auto 0;
}
.fh-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid var(--fh-line);
}
.fh-sheet-head h2 {
  font-family: var(--fh-display);
  font-size: 17px;
  color: var(--fh-navy);
  margin: 0;
}
.fh-sheet-body {
  padding: 14px 16px 20px;
  overflow-y: auto;
}
/* Native <select> menus open downward and ignore CSS direction. Extra space under
   the field lifts it so the phone's menu stays on screen. */
.fh-sheet-status .fh-sheet-body {
  padding-bottom: min(46vh, 320px);
}
.fh-sheet-label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--fh-muted);
  margin: 6px 0 6px;
}
.fh-sheet-result {
  margin: 0 16px 16px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13.5px;
}
.fh-sheet-result ul {
  margin: 6px 0 0;
  padding-left: 18px;
}
.fh-sheet-result-ok {
  background: var(--fh-ok-bg);
  border: 1px solid var(--fh-ok-br);
  color: var(--fh-ok-tx);
}
.fh-sheet-result-partial {
  background: var(--fh-bad-bg);
  border: 1px solid var(--fh-bad-br);
  color: var(--fh-bad-tx);
}

/* ==========================================================================
   My Day home (spec 2026-09-23-my-day-home). Phone first: home fits one
   viewport and never scrolls; tiles open sheets that scroll inside.
   Sheets sit at z 50, under the Update status sheet (z 60).
   ========================================================================== */
.fh-md {
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.fh-md-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.fh-md-date {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
}
.fh-md-full,
.fh-md-cal {
  appearance: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  border-radius: 10px;
  min-height: 44px;
  min-width: 44px;
  padding: 0 12px;
  font: 700 13.5px var(--fh-body);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.fh-md-full {
  margin-left: auto;
}
.fh-md-full:focus-visible,
.fh-md-cal:focus-visible,
.fh-md-back:focus-visible,
.fh-md-home-link:focus-visible {
  outline: 2px solid var(--fh-lime);
  outline-offset: 2px;
}
.fh-md-home-link {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  min-height: 44px;
  color: #fff;
  font: 700 19px var(--fh-display);
  cursor: pointer;
}

.fh-md-pane {
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.fh-md-pane > .fh-header {
  flex: 0 0 auto;
  width: 100%;
}
.fh-md-dock {
  flex: 0 0 auto;
  width: 100%;
  max-width: 760px;
  margin-top: auto;
  margin-left: auto;
  margin-right: auto;
  padding: 24px 16px calc(8px + env(safe-area-inset-bottom, 0px));
}
.fh-md-tiles {
  flex: 0 1 auto;
  min-height: 0;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-content: start;
  /* Rows never shrink below their content (a squeezed wide tile used to collapse to nothing); when the
     tiles outgrow the screen the grid scrolls instead of cutting them off. */
  grid-auto-rows: max-content;
  overflow-x: hidden;
  overflow-y: auto;
}
.fh-md-tile {
  appearance: none;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  min-height: 136px;
  padding: 16px;
  background: var(--fh-card);
  border: 1px solid var(--fh-line);
  border-radius: 16px;
  box-shadow: var(--fh-shadow);
  color: var(--fh-text);
  font-family: var(--fh-body);
  cursor: pointer;
  transition: transform 0.08s ease;
}
.fh-md-tile:active {
  transform: scale(0.98);
}
.fh-md-tile:disabled {
  cursor: default;
}
.fh-md-tile:focus-visible {
  outline: 2px solid var(--fh-blue);
  outline-offset: 2px;
}
.fh-md-tile-wide {
  grid-column: 1 / -1;
  min-height: 0;
  justify-content: flex-start;
  gap: 14px;
}
.fh-md-tile-label {
  font: 700 11.5px var(--fh-display);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--fh-muted);
}
.fh-md-big {
  font: 700 44px/1 var(--fh-display);
  color: var(--fh-navy);
  font-variant-numeric: tabular-nums;
}
.fh-md-tile-row {
  display: flex;
  align-items: flex-end;
  gap: 18px;
}
.fh-md-breakdown {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font: 600 14px var(--fh-body);
}
.fh-md-breakdown span::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 7px;
  vertical-align: 1px;
}
.fh-md-b-togo { color: var(--fh-navy); }
.fh-md-b-togo::before { background: var(--fh-blue); }
.fh-md-b-done { color: var(--fh-ok-tx); }
.fh-md-b-done::before { background: var(--fh-lime); }
.fh-md-b-cancelled { color: var(--fh-faint); }
.fh-md-b-cancelled::before { background: var(--fh-line); }
/* Installs this month: the goal count beside its status lines. */
.fh-md-big-goal { white-space: nowrap; }
.fh-md-goal-lines {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.fh-md-tile-sub {
  font: 600 13.5px var(--fh-body);
  color: var(--fh-muted);
}
.fh-md-tile-quiet {
  font: 600 16px var(--fh-body);
  color: var(--fh-muted);
}
.fh-md-tile-err {
  font: 600 14px var(--fh-body);
  color: var(--fh-bad-tx);
}
.fh-md-tile-alert {
  border-color: var(--fh-bad-br);
  background: linear-gradient(180deg, #fff 0%, var(--fh-bad-bg) 100%);
}
.fh-md-tile-alert .fh-md-big {
  color: var(--fh-bad-tx);
}
.fh-md-skel {
  display: block;
  height: 44px;
  width: 60%;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--fh-line-soft), var(--fh-line), var(--fh-line-soft));
  background-size: 200% 100%;
  animation: fh-md-shimmer 1.2s linear infinite;
}
@keyframes fh-md-shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}
.fh-md-foot {
  flex: 0 0 auto;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 10px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  display: flex;
  justify-content: center;
}
.fh-md-dock .fh-md-actions {
  padding: 0 0 8px;
}
.fh-md-dock .fh-md-foot {
  padding: 8px 0 0;
}

/* ---------- sheet ---------- */
.fh-md-sheet {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  background: var(--fh-bg);
  animation: fh-md-up 0.18s ease-out;
}
@keyframes fh-md-up {
  from { transform: translateY(24px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.fh-md-sheet-hd {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: calc(6px + env(safe-area-inset-top, 0px)) 10px 6px 4px;
  background: var(--fh-navy);
  border-bottom: 3px solid var(--fh-lime);
  color: #fff;
  position: relative;
  z-index: 2;
}
.fh-md-sheet-hd h2 {
  flex: 1 1 auto;
  margin: 0;
  font: 700 18px var(--fh-display);
  color: #fff;
  outline: none;
}
.fh-md-back {
  appearance: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}
.fh-md-sheet-action {
  min-width: 44px;
  display: flex;
  justify-content: flex-end;
}
.fh-md-sheet-bd {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 16px 16px calc(24px + env(safe-area-inset-bottom, 0px));
}
.fh-md-sheet-bd > * {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.fh-md-sheet-bd > .fh-md-daycols {
  max-width: 1100px;
}

/* Today / tomorrow columns in the appointments sheet */
.fh-md-daycols {
  display: grid;
  gap: 28px;
}
.fh-md-daycol-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 12px;
  padding: 8px 0;
  font: 700 18px var(--fh-display);
  color: var(--fh-navy);
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--fh-bg);
}
.fh-md-daycol-title span {
  font: 600 13px var(--fh-body);
  color: var(--fh-muted);
}
@media (min-width: 768px) {
  .fh-md-daycols {
    grid-template-columns: 1fr 1fr;
    gap: 16px 24px;
    align-items: start;
  }
}

/* ---------- groups inside sheets ---------- */
.fh-md-group {
  margin-bottom: 22px;
}
.fh-md-group-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font: 700 13px var(--fh-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fh-navy);
}
.fh-md-group-title span {
  font: 700 12px var(--fh-body);
  letter-spacing: 0;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--fh-neutral-bg);
  color: var(--fh-neutral-tx);
}
.fh-md-group-hint {
  margin: -2px 0 10px;
  font-size: 12.5px;
  color: var(--fh-muted);
}
.fh-md-group-done .fh-md-group-title { color: var(--fh-ok-tx); }
.fh-md-group-cancelled .fh-md-group-title { color: var(--fh-faint); }
/* Needs attention categories are colour-coded; later specs add PM messages and follow-ups. */
.fh-md-cat-status {
  border-left: 4px solid #d92d20;
  padding-left: 12px;
}
.fh-md-cat-status .fh-md-group-title { color: var(--fh-bad-tx); }
.fh-md-cat-status .fh-md-group-title span { background: var(--fh-bad-bg); color: var(--fh-bad-tx); }
.fh-md-cat-team {
  border-left: 4px solid #d98a1c;
  padding-left: 12px;
}
.fh-md-cat-team .fh-md-group-title { color: var(--fh-warn-tx); }
.fh-md-cat-team .fh-md-group-title span { background: var(--fh-warn-bg); color: var(--fh-warn-tx); }
.fh-md-team-who {
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--fh-warn-tx);
}
.fh-md-error {
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px solid var(--fh-bad-br);
  border-radius: 12px;
  background: var(--fh-bad-bg);
  color: var(--fh-bad-tx);
  font-size: 14px;
}
.fh-md-error p {
  margin: 0 0 8px;
}

/* ---------- week view ---------- */
.fh-md-week-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.fh-md-day {
  margin-bottom: 16px;
}
.fh-md-day-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  font: 700 13px var(--fh-display);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--fh-muted);
}
.fh-md-day-today .fh-md-day-title {
  color: var(--fh-navy);
}
.fh-md-today-tag {
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--fh-lime);
  color: var(--fh-navy);
  font: 700 11px var(--fh-body);
  letter-spacing: 0;
  text-transform: none;
}
.fh-md-day-empty {
  margin: 0;
  padding: 10px 12px;
  border: 1px dashed var(--fh-line);
  border-radius: 10px;
  color: var(--fh-faint);
  font-size: 13px;
}

/* ---------- pipeline ---------- */
.fh-md-stages,
.fh-md-projects {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.fh-md-stage {
  appearance: none;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "name count" "bar bar";
  gap: 6px 12px;
  min-height: 56px;
  padding: 12px 14px;
  text-align: left;
  background: var(--fh-card);
  border: 1px solid var(--fh-line);
  border-radius: 12px;
  color: var(--fh-text);
  font-family: var(--fh-body);
  cursor: pointer;
}
.fh-md-stage:focus-visible {
  outline: 2px solid var(--fh-blue);
  outline-offset: 2px;
}
.fh-md-stage-name {
  grid-area: name;
  font: 600 15px var(--fh-body);
}
.fh-md-stage-name em {
  font-style: normal;
  font-size: 12px;
  color: var(--fh-faint);
}
.fh-md-stage-count {
  grid-area: count;
  font: 700 20px var(--fh-display);
  color: var(--fh-navy);
  font-variant-numeric: tabular-nums;
}
.fh-md-stage-bar {
  grid-area: bar;
  height: 6px;
  border-radius: 999px;
  background: var(--fh-line-soft);
  overflow: hidden;
}
.fh-md-stage-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--fh-blue);
}
.fh-md-projects {
  margin-top: 8px;
}
.fh-md-projects li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  background: var(--fh-card);
  border: 1px solid var(--fh-line);
  border-radius: 12px;
}
.fh-md-proj-cust {
  font: 600 15px var(--fh-body);
}
.fh-md-proj-meta {
  font-size: 13px;
  color: var(--fh-muted);
}

@media (prefers-reduced-motion: reduce) {
  .fh-md-sheet,
  .fh-md-skel,
  .fh-md-tile {
    animation: none;
    transition: none;
  }
}

/* My Day: Submit self gen + Upcoming installs (spec 2026-09-24-my-day-self-gen) */
.fh-md-actions { padding: 0 16px 8px; }
.fh-md-action { width: 100%; min-height: 48px; font-weight: 600; }
/* Full view: the button sits inside the already-padded .fh-page, just above the settings footer */
.fh-shell .fh-md-actions { padding: 22px 0 0; }
.fh-shell .fh-md-actions + .fh-footer { margin-top: 14px; }
.fh-md-form { display: grid; gap: 12px; padding-bottom: 24px; }
.fh-md-form label { display: grid; gap: 4px; font-size: 14px; font-weight: 600; color: var(--fh-text); min-width: 0; }
.fh-md-form input, .fh-md-form select, .fh-md-form textarea { font: inherit; font-size: 16px; min-height: 44px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--fh-line); background: var(--fh-card); color: var(--fh-text); width: 100%; min-width: 0; }
.fh-md-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fh-md-field-err { color: var(--fh-bad-tx); font-size: 13px; font-weight: 500; }
.fh-md-more summary { cursor: pointer; font-weight: 600; padding: 6px 0; }
.fh-md-more[open] { display: grid; gap: 12px; }
.fh-md-submit { min-height: 48px; font-size: 16px; }
.fh-md-selfgen-done { display: grid; gap: 10px; }
.fh-md-installs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fh-md-install { display: grid; grid-template-columns: 84px 1fr auto; gap: 10px; align-items: center; padding: 12px; border-radius: 12px; border: 1px solid var(--fh-line); background: var(--fh-card); }
.fh-md-install-date { font-weight: 700; }
.fh-md-install-team { display: block; font-size: 13px; color: var(--fh-muted); }
.fh-md-install-link { font-size: 22px; text-decoration: none; padding: 4px 8px; color: var(--fh-blue); }
.fh-md-locked { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--fh-line-soft); color: var(--fh-muted); font-size: 13px; font-weight: 600; }
.fh-md-req { color: var(--fh-bad-tx); }
.fh-md-field { display: grid; gap: 4px; min-width: 0; }
.fh-md-field-label { font-size: 14px; font-weight: 600; color: var(--fh-text); }
.fh-md-picker { display: grid; gap: 6px; min-width: 0; }
.fh-md-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fh-md-chip { font: inherit; font-size: 14px; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--fh-line); background: var(--fh-card); color: var(--fh-text); cursor: pointer; }
.fh-md-options { display: grid; max-height: 220px; overflow-y: auto; border: 1px solid var(--fh-line); border-radius: 10px; background: var(--fh-card); }
.fh-md-option { font: inherit; text-align: left; padding: 12px; min-height: 44px; border: 0; border-bottom: 1px solid var(--fh-line-soft); background: transparent; color: var(--fh-text); cursor: pointer; }
.fh-md-options p { margin: 0; padding: 12px; }
.fh-md-checks { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; min-width: 0; }
.fh-md-checks legend { font-size: 14px; font-weight: 600; color: var(--fh-text); margin-bottom: 4px; }
.fh-md-check { display: flex !important; align-items: center; gap: 8px; font-weight: 500 !important; }
.fh-md-check input { width: 22px !important; min-height: 22px !important; }

/* Leads by status on Appointments (2026-10-21): clear of the list above it. */
.fh-lead-pipeline { margin-top: 32px; }
.fh-lead-pipeline .fh-muted { margin: 0 0 8px; }
