/* Growth: reports, customers, review requests, reminders, popup, win-back.
   Chart colors: one green for "this period" and delivery, violet for pickup, warm gray for the
   previous period (validated for color-blind separation against white). */
.fpg {
  --fpg-series: #1a8a5a;
  --fpg-series-2: #6250d6;
  --fpg-prev: #a8a69e;
  --fpg-grid: #ebe9e3;
  --fpg-axis: #c3c2b7;
  --fpg-ink: #1d211e;
  --fpg-ink-2: #52514e;
  --fpg-muted: #6d6b65;
  --fpg-up: #006300;
  --fpg-down: #b42318;
  --fpg-card: #fff;
  --fpg-soft: #f6f2ec;
  --fpg-line: rgba(0, 0, 0, .08);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, system-ui, sans-serif;
  color: var(--fpg-ink);
}
.fpg-muted { color: var(--fpg-muted); font-size: 13px; line-height: 1.45; }
.fpg-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.fpg-row.spread { justify-content: space-between; }
.fpg-stack { display: flex; flex-direction: column; gap: 12px; }
.fpg-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.fpg h2 { font-size: 15px; font-weight: 650; margin: 0; letter-spacing: -.005em; }
.fpg h3 { font-size: 13px; font-weight: 600; margin: 0 0 8px; color: var(--fpg-ink-2); }
.fpg-sub { font-size: 13px; color: var(--fpg-muted); margin: 2px 0 12px; }

/* Segmented period picker and filter chips */
.fpg-seg { display: inline-flex; background: rgba(0, 0, 0, .05); border-radius: 10px; padding: 3px; gap: 2px; }
.fpg-seg button { appearance: none; border: 0; background: transparent; font: inherit; font-size: 13px; font-weight: 550; padding: 6px 12px; border-radius: 8px; cursor: pointer; color: var(--fpg-ink-2); }
.fpg-seg button[aria-pressed="true"] { background: #fff; color: var(--fpg-ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.fpg-seg button:focus-visible, .fpg-chip:focus-visible { outline: 2px solid #005bd3; outline-offset: 1px; }
.fpg-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fpg-chip { appearance: none; border: 1px solid var(--fpg-line); background: #fff; font: inherit; font-size: 13px; padding: 5px 11px; border-radius: 999px; cursor: pointer; color: var(--fpg-ink-2); }
.fpg-chip[aria-pressed="true"] { background: #1f3d2b; border-color: #1f3d2b; color: #fff; }
.fpg-chip span { opacity: .7; margin-left: 4px; }
.fpg-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--fpg-soft); color: var(--fpg-ink-2); white-space: nowrap; }

/* Highlights */
.fpg-insights { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.fpg-insights li { display: flex; gap: 10px; align-items: baseline; font-size: 14px; }
.fpg-insights li::before { content: ""; flex: 0 0 6px; height: 6px; border-radius: 50%; background: var(--fpg-series); transform: translateY(-2px); }

/* KPI tiles */
.fpg-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.fpg-kpi { background: var(--fpg-card); border: 1px solid var(--fpg-line); border-radius: 14px; padding: 14px 16px; min-width: 0; }
.fpg-kpi-label { font-size: 13px; color: var(--fpg-ink-2); }
.fpg-kpi-value { font-size: 26px; font-weight: 650; letter-spacing: -.02em; margin: 4px 0 2px; white-space: nowrap; }
.fpg-delta { font-size: 12px; font-weight: 600; display: flex; flex-wrap: wrap; gap: 0 3px; align-items: baseline; white-space: nowrap; }
.fpg-delta.up { color: var(--fpg-up); }
.fpg-delta.down { color: var(--fpg-down); }
.fpg-delta.flat { color: var(--fpg-muted); }
.fpg-delta small { font-weight: 400; color: var(--fpg-muted); flex-basis: 100%; white-space: normal; margin-top: 1px; }

/* Charts */
.fpg-chart { position: relative; }
.fpg-chart svg { display: block; width: 100%; overflow: visible; }
.fpg-chart text { font-size: 11px; fill: var(--fpg-muted); font-variant-numeric: tabular-nums; }
.fpg-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--fpg-ink-2); margin-bottom: 8px; }
.fpg-legend i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 6px; }
.fpg-legend i.dot { width: 10px; height: 10px; border-radius: 3px; }
.fpg-tip { position: absolute; pointer-events: none; background: #1d211e; color: #fff; font-size: 12px; line-height: 1.45; padding: 8px 10px; border-radius: 10px; white-space: nowrap; transform: translate(-50%, -100%); opacity: 0; transition: opacity .12s; z-index: 2; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
.fpg-tip.on { opacity: 1; }
.fpg-tip b { font-weight: 650; }
.fpg-tip .k { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; }
.fpg-table-toggle { margin-top: 8px; font-size: 13px; }
.fpg-table-toggle summary { cursor: pointer; color: #005bd3; }
.fpg-data { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 8px; }
.fpg-data th, .fpg-data td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--fpg-line); }
.fpg-data td.num, .fpg-data th.num { text-align: right; font-variant-numeric: tabular-nums; }
.fpg-data tbody tr:last-child td { border-bottom: 0; }

/* Heatmap */
.fpg-heat { display: grid; gap: 3px; font-size: 12px; }
.fpg-heat .h { color: var(--fpg-muted); text-align: center; padding-bottom: 2px; }
.fpg-heat .w { color: var(--fpg-ink-2); padding-right: 8px; display: flex; flex-direction: column; justify-content: center; line-height: 1.2; }
.fpg-heat .w small { color: var(--fpg-muted); font-size: 11px; }
.fpg-heat .c { border-radius: 6px; min-height: 34px; display: grid; place-items: center; font-variant-numeric: tabular-nums; font-weight: 600; position: relative; }
.fpg-heat .c.zero { background: #f4f3ef; color: transparent; }
.fpg-heat .c:hover { outline: 2px solid var(--fpg-ink); outline-offset: -1px; }
.fpg-scale { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--fpg-muted); margin-top: 8px; }
.fpg-scale span.bar { width: 90px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, rgba(26, 138, 90, .12), rgba(26, 138, 90, 1)); }

/* Horizontal bars (products, add-ons, ZIPs) */
.fpg-bars { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.fpg-bars li { display: grid; grid-template-columns: minmax(90px, 38%) 1fr auto; gap: 10px; align-items: center; font-size: 13px; }
.fpg-bars .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fpg-bars .track { height: 10px; border-radius: 0 4px 4px 0; background: transparent; position: relative; }
.fpg-bars .fill { height: 10px; border-radius: 0 4px 4px 0; background: var(--fpg-series); min-width: 2px; }
.fpg-bars .val { font-variant-numeric: tabular-nums; color: var(--fpg-ink-2); white-space: nowrap; text-align: right; min-width: 48px; }

/* Stacked split bar (delivery vs pickup) */
.fpg-split { display: flex; gap: 2px; height: 16px; border-radius: 4px; overflow: hidden; margin: 6px 0 10px; }
.fpg-split div { min-width: 2px; }
.fpg-split-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; font-size: 13px; }
.fpg-split-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.fpg-split-legend strong { display: block; font-size: 18px; letter-spacing: -.01em; margin-top: 2px; }

/* Upcoming columns */
.fpg-cols { display: grid; grid-template-columns: repeat(14, 1fr); gap: 4px; align-items: end; height: 140px; padding-top: 18px; }
.fpg-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; min-width: 0; }
.fpg-col .bar { width: 100%; max-width: 24px; border-radius: 4px 4px 0 0; background: var(--fpg-series); min-height: 2px; }
.fpg-col .bar.none { background: var(--fpg-grid); }
.fpg-col .n { font-size: 11px; font-weight: 600; color: var(--fpg-ink-2); font-variant-numeric: tabular-nums; }
.fpg-col-labels { display: grid; grid-template-columns: repeat(14, 1fr); gap: 4px; font-size: 10.5px; color: var(--fpg-muted); text-align: center; margin-top: 4px; border-top: 1px solid var(--fpg-axis); padding-top: 4px; }
.fpg-col-labels .wk { font-weight: 600; color: var(--fpg-ink-2); }

/* Locked preview (Basic) */
.fpg-locked-wrap { position: relative; }
.fpg-locked { filter: blur(5px) saturate(.8); opacity: .75; pointer-events: none; user-select: none; }
.fpg-unlock { position: absolute; inset: 0; display: flex; align-items: flex-start; justify-content: center; padding-top: 70px; }
.fpg-unlock-card { background: #fff; border-radius: 18px; padding: 26px 28px; max-width: 420px; box-shadow: 0 18px 50px rgba(31, 61, 43, .18); text-align: center; }
.fpg-unlock-card h2 { font-size: 20px; margin: 6px 0 6px; letter-spacing: -.01em; }
.fpg-unlock-card ul { text-align: left; margin: 12px 0 18px; padding-left: 20px; font-size: 14px; line-height: 1.7; color: var(--fpg-ink-2); }
.fpg-badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: #e7efe9; color: #1f3d2b; }

/* Customers */
.fpg-search { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.fpg-search input { flex: 1 1 240px; font: inherit; font-size: 14px; padding: 9px 12px 9px 34px; border-radius: 10px; border: 1px solid rgba(0, 0, 0, .18); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236d6b65' stroke-width='2'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='m11 11 3.5 3.5'/%3E%3C/svg%3E") no-repeat 11px 50%; }
.fpg-search input:focus { outline: 2px solid #005bd3; outline-offset: 0; }
.fpg-search select { font: inherit; font-size: 13px; padding: 8px 10px; border-radius: 10px; border: 1px solid rgba(0, 0, 0, .18); background: #fff; }
.fpg-people { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.fpg-people th { text-align: left; font-size: 12px; font-weight: 600; color: var(--fpg-muted); padding: 8px; border-bottom: 1px solid var(--fpg-line); white-space: nowrap; }
.fpg-people td { padding: 10px 8px; border-bottom: 1px solid var(--fpg-line); vertical-align: middle; }
.fpg-people tr[data-customer] { cursor: pointer; }
.fpg-people tr[data-customer]:hover td { background: #faf8f4; }
.fpg-people .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fpg-who { display: flex; gap: 10px; align-items: center; min-width: 0; }
.fpg-avatar { flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 650; color: #1f3d2b; background: #e7efe9; }
.fpg-avatar.big { flex-basis: 56px; width: 56px; height: 56px; font-size: 20px; }
.fpg-who strong { display: block; font-weight: 600; }
.fpg-who .fpg-muted { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
.fpg-empty { text-align: center; padding: 30px 10px; color: var(--fpg-muted); }
.fpg-tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.fpg-tool { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 12px; border: 1px solid var(--fpg-line); background: #fff; cursor: pointer; text-align: left; font: inherit; }
.fpg-tool:hover { border-color: rgba(0, 0, 0, .2); }
.fpg-tool .ico { font-size: 22px; }
.fpg-order-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 0; border-top: 1px solid var(--fpg-line); }
.fpg-order-row:first-child { border-top: 0; }
.fpg-order-row blockquote { grid-column: 1 / -1; margin: 2px 0 0; padding: 6px 10px; border-left: 3px solid #e8a0a8; background: var(--fpg-soft); border-radius: 0 8px 8px 0; font-style: italic; font-size: 13px; white-space: pre-line; }

/* Power-up pages */
.fpg-hero { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.fpg-hero-state { display: flex; gap: 12px; align-items: center; }
.fpg-dot { width: 12px; height: 12px; border-radius: 50%; background: #c3c2b7; box-shadow: 0 0 0 4px rgba(0, 0, 0, .04); }
.fpg-dot.on { background: #0ca30c; box-shadow: 0 0 0 4px rgba(12, 163, 12, .14); }
.fpg-hero-state strong { font-size: 16px; }
.fpg-preview { background: var(--fpg-soft); border-radius: 14px; padding: 16px; font-size: 14px; line-height: 1.55; white-space: pre-line; }
.fpg-mail { background: #fff; border-radius: 12px; padding: 16px 18px; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.fpg-mail-subject { font-weight: 650; margin-bottom: 8px; }
.fpg-faces { display: flex; gap: 6px; justify-content: center; margin: 10px 0; font-size: 24px; }
.fpg-faces span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--fpg-soft); }
.fpg-tokens { display: flex; flex-wrap: wrap; gap: 6px; }
.fpg-tokens button { appearance: none; border: 1px dashed rgba(0, 0, 0, .2); background: #fff; font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; padding: 3px 8px; border-radius: 6px; cursor: pointer; color: var(--fpg-ink-2); }
.fpg-dist { display: flex; flex-direction: column; gap: 5px; }
.fpg-dist div { display: grid; grid-template-columns: 34px 1fr 30px; gap: 8px; align-items: center; font-size: 12px; }
.fpg-dist .t { height: 8px; border-radius: 0 4px 4px 0; background: var(--fpg-series); min-width: 2px; }
.fpg-code { display: inline-flex; align-items: center; gap: 12px; font: 650 26px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; padding: 14px 18px; border-radius: 14px; border: 2px dashed #1f3d2b; background: #f3f8f4; color: #1f3d2b; }
.fpg-steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.fpg-steps li { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--fpg-line); }
.fpg-steps li:first-child { border-top: 0; }
.fpg-steps .n { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--fpg-line); display: grid; place-items: center; font-size: 13px; font-weight: 600; }
.fpg-steps li.done .n { background: #1f3d2b; color: #fff; border-color: #1f3d2b; }
.fpg-percents { display: flex; gap: 8px; flex-wrap: wrap; }
.fpg-percents button { appearance: none; font: inherit; font-size: 18px; font-weight: 650; width: 76px; padding: 14px 0; border-radius: 14px; border: 1.5px solid var(--fpg-line); background: #fff; cursor: pointer; }
.fpg-percents button[aria-pressed="true"] { border-color: #1f3d2b; background: #f3f8f4; color: #1f3d2b; }
.fpg-percents button small { display: block; font-size: 11px; font-weight: 500; color: var(--fpg-muted); }
.fpg-popup-mock { background: linear-gradient(160deg, #f6f2ec, #efe6e0); border-radius: 18px; padding: 22px; display: grid; place-items: center; }
.fpg-popup-card { background: #fff; border-radius: 16px; padding: 20px 22px; width: 100%; max-width: 280px; text-align: center; box-shadow: 0 12px 30px rgba(0, 0, 0, .12); }
.fpg-popup-card .eyebrow { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #9a5b65; font-weight: 650; }
.fpg-popup-card .title { font-size: 20px; font-weight: 700; margin: 6px 0 4px; letter-spacing: -.01em; }
.fpg-popup-card .field { border: 1px solid rgba(0, 0, 0, .15); border-radius: 10px; padding: 9px 10px; color: #9a9a9a; text-align: left; font-size: 13px; margin: 12px 0 8px; }
.fpg-popup-card .btn { background: #1f3d2b; color: #fff; border-radius: 999px; padding: 10px; font-weight: 650; font-size: 14px; }
.fpg-spark { display: flex; gap: 4px; align-items: flex-end; height: 44px; }
.fpg-spark span { flex: 1; background: var(--fpg-series); border-radius: 3px 3px 0 0; min-height: 2px; opacity: .45; }
.fpg-spark span:last-child { opacity: 1; }
.fpg-policy { border-left: 3px solid #1f3d2b; padding: 4px 0 4px 12px; font-size: 13px; color: var(--fpg-ink-2); line-height: 1.5; }
.fpg-list { list-style: none; padding: 0; margin: 0; }
.fpg-list li { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--fpg-line); font-size: 13.5px; }
.fpg-list li:first-child { border-top: 0; }
.fpg-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; cursor: pointer; }
.fpg-check input { margin-top: 3px; width: 16px; height: 16px; accent-color: #1f3d2b; }
.fpg-stars { color: #b7791f; letter-spacing: 1px; }
.fpg-note { background: var(--fpg-soft); border-radius: 10px; padding: 10px 12px; font-size: 13px; white-space: pre-line; margin-top: 6px; }
.fpg-orderblock { border-radius: 18px; padding: 18px; background: var(--fpg-soft); font-size: 14px; }
.fpg-orderblock .fake-row { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.fpg-orderblock .fake { flex: 1 1 110px; background: #fff; border: 1px solid rgba(0, 0, 0, .14); border-radius: 10px; padding: 9px 10px; color: var(--fpg-ink-2); }
.fpg-orderblock .fake-btn { background: #1f3d2b; color: #fff; border-radius: 999px; padding: 9px 16px; font-weight: 650; }

@media (max-width: 640px) {
  .fpg-people .hide-sm { display: none; }
  .fpg-cols, .fpg-col-labels { gap: 2px; }
  .fpg-col-labels { font-size: 9.5px; }
  .fpg-kpi-value { font-size: 22px; }
}
