{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "bento-metrics",
  "type": "registry:component",
  "title": "Bento Metrics",
  "description": "A dashboard-style bento with counting stat tiles, a plan donut, a sparkline strip, goal progress bars, an NPS gauge and a 30-day uptime bar.",
  "author": "Hyperblur <hello@hyperblur.dev>",
  "dependencies": [],
  "registryDependencies": [],
  "categories": [
    "bento",
    "bento",
    "metrics",
    "dashboard",
    "count-up",
    "donut",
    "stats"
  ],
  "docs": "https://hyperblur.dev/effects/bento-metrics",
  "files": [
    {
      "path": "registry/hyperblur/bento-metrics.tsx",
      "type": "registry:component",
      "target": "components/hyperblur/bento-metrics.tsx",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nexport interface BentoMetricsStat {\n  label: string;\n  value: number;\n  prefix?: string;\n  suffix?: string;\n  decimals?: number;\n  delta: string;\n  positive?: boolean;\n}\n\nexport interface BentoMetricsSlice {\n  label: string;\n  value: number;\n}\n\nexport interface BentoMetricsSpark {\n  label: string;\n  value: string;\n  data: number[];\n}\n\nexport interface BentoMetricsGoal {\n  label: string;\n  target: string;\n  progress: number;\n}\n\nexport interface BentoMetricsProps extends Omit<React.HTMLAttributes<HTMLElement>, \"title\"> {\n  eyebrow?: string;\n  title?: string;\n  subtitle?: string;\n  stats?: BentoMetricsStat[];\n  slices?: BentoMetricsSlice[];\n  sparks?: BentoMetricsSpark[];\n  goals?: BentoMetricsGoal[];\n  nps?: number;\n  uptime?: number;\n  accent?: string;\n}\n\nconst css = `\n@keyframes hb-kb2-rise { from { opacity: 0; transform: translate3d(0, 16px, 0) scale(.985); } to { opacity: 1; transform: none; } }\n@keyframes hb-kb2-ring { from { stroke-dasharray: 0 100; } }\n@keyframes hb-kb2-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }\n@keyframes hb-kb2-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }\n@keyframes hb-kb2-grow { from { transform: scaleY(.1); opacity: 0; } to { transform: scaleY(1); opacity: 1; } }\n@keyframes hb-kb2-needle { from { transform: rotate(-90deg); } }\n@keyframes hb-kb2-glow { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }\n.hb-kb2 {\n  --hb-kb2-accent: #10b981;\n  position: relative;\n  box-sizing: border-box;\n  width: 100%;\n  overflow: hidden;\n  container-type: inline-size;\n  background: #0a0a0a;\n  color: #ededed;\n  font-family: inherit;\n  -webkit-font-smoothing: antialiased;\n}\n.hb-kb2 *, .hb-kb2 *::before, .hb-kb2 *::after { box-sizing: border-box; }\n.hb-kb2::before {\n  content: \"\";\n  position: absolute;\n  inset: 0;\n  pointer-events: none;\n  background:\n    radial-gradient(40% 30% at 50% 0%, color-mix(in srgb, var(--hb-kb2-accent) 14%, transparent), transparent 75%),\n    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px) 0 0 / 100% 56px;\n  mask-image: linear-gradient(#000, transparent 70%);\n}\n.hb-kb2-in { position: relative; max-width: 1120px; margin: 0 auto; padding: clamp(56px, 8cqi, 104px) clamp(16px, 5cqi, 48px); }\n.hb-kb2-head { max-width: 640px; margin: 0 auto clamp(28px, 4cqi, 44px); text-align: center; animation: hb-kb2-rise .7s cubic-bezier(.2, .8, .2, 1) backwards; }\n.hb-kb2-eyebrow { margin: 0 0 12px; color: var(--hb-kb2-accent); font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }\n.hb-kb2-title { margin: 0; font-size: clamp(28px, 4cqi, 44px); font-weight: 600; line-height: 1.08; letter-spacing: -.03em; text-wrap: balance; }\n.hb-kb2-sub { margin: 14px auto 0; max-width: 520px; color: #8f8f8f; font-size: 15.5px; line-height: 1.6; text-wrap: pretty; }\n.hb-kb2-grid {\n  display: grid;\n  grid-template-columns: repeat(4, minmax(0, 1fr));\n  grid-template-areas:\n    \"s0 s1 s2 donut\"\n    \"spark spark spark donut\"\n    \"goals goals nps up\";\n  gap: 12px;\n}\n.hb-kb2-cell {\n  position: relative;\n  min-width: 0;\n  overflow: hidden;\n  padding: 18px;\n  border: 1px solid rgba(255, 255, 255, .08);\n  border-radius: 16px;\n  background: #111;\n  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);\n  animation: hb-kb2-rise .65s cubic-bezier(.2, .8, .2, 1) backwards;\n  animation-delay: calc(var(--hb-kb2-i, 0) * 70ms + 100ms);\n  transition: border-color .25s ease, background .25s ease;\n}\n.hb-kb2-cell:hover { border-color: color-mix(in srgb, var(--hb-kb2-accent) 35%, rgba(255, 255, 255, .08)); background: #131313; }\n.hb-kb2-label { display: flex; align-items: center; gap: 8px; color: #8f8f8f; font-size: 12.5px; font-weight: 500; }\n.hb-kb2-label svg { flex: none; color: #6b6b6b; }\n.hb-kb2-big { display: block; margin-top: 12px; font-size: clamp(22px, 2.9cqi, 30px); font-weight: 600; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }\n.hb-kb2-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: 14px; }\n.hb-kb2-delta { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }\n.hb-kb2-delta[data-good=\"true\"] { background: rgba(34, 197, 94, .12); color: #4ade80; }\n.hb-kb2-delta[data-good=\"false\"] { background: rgba(244, 63, 94, .12); color: #fb7185; }\n.hb-kb2-note { color: #5f5f5f; font-size: 11px; }\n.hb-kb2-bars { display: flex; align-items: flex-end; gap: 3px; height: 26px; }\n.hb-kb2-bars i { display: block; width: 4px; height: var(--h); border-radius: 2px; background: color-mix(in srgb, var(--hb-kb2-accent) 40%, #262626); transform-origin: bottom; animation: hb-kb2-grow .5s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--hb-kb2-j) * 40ms + 400ms); }\n.hb-kb2-bars i:last-child { background: var(--hb-kb2-accent); }\n.hb-kb2-donut { grid-area: donut; display: flex; flex-direction: column; }\n.hb-kb2-ringwrap { position: relative; width: min(100%, 176px); aspect-ratio: 1; margin: 18px auto 8px; }\n.hb-kb2-ringwrap svg { width: 100%; height: 100%; transform: rotate(-90deg); }\n.hb-kb2-seg { fill: none; stroke-width: 12; stroke-linecap: round; stroke-dasharray: var(--d) 100; stroke-dashoffset: var(--o); animation: hb-kb2-ring 1.3s cubic-bezier(.65, 0, .35, 1) both; animation-delay: calc(var(--hb-kb2-j) * 150ms + 300ms); transition: stroke-width .2s ease; }\n.hb-kb2-seg:hover { stroke-width: 15; }\n.hb-kb2-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }\n.hb-kb2-center strong { font-size: 26px; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }\n.hb-kb2-center span { color: #8f8f8f; font-size: 11.5px; }\n.hb-kb2-legend { display: grid; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }\n.hb-kb2-legend li { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: #a1a1a1; }\n.hb-kb2-legend i { width: 8px; height: 8px; border-radius: 3px; background: var(--c); }\n.hb-kb2-legend b { margin-left: auto; color: #ededed; font-weight: 600; font-variant-numeric: tabular-nums; }\n.hb-kb2-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .06); color: #8f8f8f; font-size: 12px; line-height: 1.5; }\n.hb-kb2-foot b { color: var(--hb-kb2-accent); font-weight: 600; }\n.hb-kb2-spark { grid-area: spark; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0; }\n.hb-kb2-sp { min-width: 0; padding: 18px; border-left: 1px solid rgba(255, 255, 255, .06); transition: background .2s ease; }\n.hb-kb2-sp:first-child { border-left: 0; }\n.hb-kb2-sp:hover { background: rgba(255, 255, 255, .02); }\n.hb-kb2-sp strong { display: block; margin-top: 8px; font-size: 19px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }\n.hb-kb2-sp svg { display: block; width: 100%; height: 44px; margin-top: 12px; overflow: visible; }\n.hb-kb2-sline { fill: none; stroke: var(--hb-kb2-accent); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; animation: hb-kb2-draw 1.2s cubic-bezier(.65, 0, .35, 1) both; animation-delay: calc(var(--hb-kb2-j) * 120ms + 350ms); }\n.hb-kb2-goals { grid-area: goals; }\n.hb-kb2-glist { display: grid; gap: 13px; margin: 14px 0 0; padding: 0; list-style: none; }\n.hb-kb2-glist li { display: grid; gap: 6px; }\n.hb-kb2-gtop { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; }\n.hb-kb2-gtop span { overflow: hidden; color: #a1a1a1; text-overflow: ellipsis; white-space: nowrap; }\n.hb-kb2-gtop b { font-weight: 600; font-variant-numeric: tabular-nums; }\n.hb-kb2-track { height: 6px; overflow: hidden; border-radius: 6px; background: #1d1d1d; }\n.hb-kb2-track i { display: block; width: var(--p); height: 100%; border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--hb-kb2-accent) 45%, #111), var(--hb-kb2-accent)); transform-origin: left; animation: hb-kb2-fill 1.1s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--hb-kb2-j) * 110ms + 450ms); }\n.hb-kb2-nps { grid-area: nps; display: flex; flex-direction: column; }\n.hb-kb2-gauge { position: relative; width: 100%; max-width: 180px; margin: 14px auto 0; }\n.hb-kb2-gauge svg { display: block; width: 100%; overflow: visible; }\n.hb-kb2-needle { transform-origin: 60px 60px; transform: rotate(var(--r)); animation: hb-kb2-needle 1.4s cubic-bezier(.34, 1.3, .64, 1) .5s both; }\n.hb-kb2-gval { margin-top: -6px; text-align: center; }\n.hb-kb2-gval strong { font-size: 24px; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }\n.hb-kb2-gval span { display: block; color: #6f6f6f; font-size: 11px; }\n.hb-kb2-up { grid-area: up; display: flex; flex-direction: column; }\n.hb-kb2-live { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; color: #4ade80; font-size: 11px; font-weight: 600; }\n.hb-kb2-live i { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 8px #22c55e; animation: hb-kb2-glow 1.8s ease-in-out infinite; }\n.hb-kb2-ticks { display: grid; grid-template-columns: repeat(30, minmax(0, 1fr)); gap: 2px; height: 34px; margin-top: auto; }\n.hb-kb2-ticks i { border-radius: 2px; background: #22c55e; opacity: .85; transform-origin: bottom; animation: hb-kb2-grow .45s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--hb-kb2-j) * 22ms + 500ms); transition: opacity .15s ease; }\n.hb-kb2-ticks i[data-warn=\"true\"] { background: #f5a524; }\n.hb-kb2-ticks i:hover { opacity: 1; filter: brightness(1.25); }\n.hb-kb2-uprow { display: flex; justify-content: space-between; margin-top: 8px; color: #5f5f5f; font-size: 10.5px; }\n@container (max-width: 860px) {\n  .hb-kb2-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: \"s0 s1\" \"s2 donut\" \"spark donut\" \"goals goals\" \"nps up\"; }\n  .hb-kb2-spark { grid-template-columns: repeat(2, minmax(0, 1fr)); }\n  .hb-kb2-sp:nth-child(3) { border-left: 0; }\n  .hb-kb2-sp:nth-child(n + 3) { border-top: 1px solid rgba(255, 255, 255, .06); }\n}\n@container (max-width: 520px) {\n  .hb-kb2-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: \"s0\" \"s1\" \"s2\" \"donut\" \"spark\" \"goals\" \"nps\" \"up\"; }\n}\n@media (prefers-reduced-motion: reduce) {\n  .hb-kb2 *, .hb-kb2 *::before, .hb-kb2 *::after { animation: none !important; transition: none !important; }\n}\n`;\n\nconst defaultStats: BentoMetricsStat[] = [\n  { label: \"Monthly recurring revenue\", value: 84210, prefix: \"$\", delta: \"+12.4%\", positive: true },\n  { label: \"Active accounts\", value: 12904, delta: \"+3.1%\", positive: true },\n  { label: \"Net revenue churn\", value: 1.8, decimals: 1, suffix: \"%\", delta: \"+0.3 pts\", positive: false },\n];\n\nconst defaultSlices: BentoMetricsSlice[] = [\n  { label: \"Team\", value: 2502 },\n  { label: \"Business\", value: 1492 },\n  { label: \"Enterprise\", value: 818 },\n];\n\nconst defaultSparks: BentoMetricsSpark[] = [\n  { label: \"Signups\", value: \"2,481\", data: [12, 18, 15, 22, 19, 27, 24, 31, 29, 36, 34, 41] },\n  { label: \"Sessions\", value: \"184k\", data: [40, 38, 44, 41, 47, 45, 52, 49, 55, 53, 58, 61] },\n  { label: \"Trial to paid\", value: \"18.6%\", data: [14, 15, 13, 16, 17, 15, 18, 17, 19, 18, 20, 21] },\n  { label: \"Avg. response\", value: \"212 ms\", data: [30, 27, 29, 24, 26, 22, 23, 20, 21, 19, 18, 17] },\n];\n\nconst defaultGoals: BentoMetricsGoal[] = [\n  { label: \"New ARR\", target: \"$1.2M\", progress: 72 },\n  { label: \"Self-serve conversion\", target: \"4.0%\", progress: 88 },\n  { label: \"Enterprise logos\", target: \"25\", progress: 56 },\n  { label: \"Support CSAT\", target: \"95%\", progress: 97 },\n];\n\nfunction format(n: number, decimals: number) {\n  const fixed = n.toFixed(decimals);\n  const [int, dec] = fixed.split(\".\");\n  const grouped = int.replace(/\\B(?=(\\d{3})+(?!\\d))/g, \",\");\n  return dec ? `${grouped}.${dec}` : grouped;\n}\n\nfunction hash(n: number) {\n  let x = (n + 1) * 2654435761;\n  x = (x ^ (x >>> 15)) >>> 0;\n  return (x % 1000) / 1000;\n}\n\nfunction Count({ value, decimals = 0, prefix = \"\", suffix = \"\", duration = 1400 }: { value: number; decimals?: number; prefix?: string; suffix?: string; duration?: number }) {\n  const ref = React.useRef<HTMLSpanElement>(null);\n  React.useEffect(() => {\n    const el = ref.current;\n    const node = el?.firstChild;\n    if (!el || !node || typeof IntersectionObserver === \"undefined\") return;\n    if (window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches) return;\n    let raf = 0;\n    const io = new IntersectionObserver(\n      (entries) => {\n        if (!entries.some((e) => e.isIntersecting)) return;\n        io.disconnect();\n        const start = performance.now();\n        const tick = (t: number) => {\n          const p = Math.min(1, (t - start) / duration);\n          const eased = 1 - Math.pow(1 - p, 3);\n          node.nodeValue = prefix + format(value * eased, decimals) + suffix;\n          if (p < 1) raf = requestAnimationFrame(tick);\n        };\n        raf = requestAnimationFrame(tick);\n      },\n      { threshold: 0.3 },\n    );\n    io.observe(el);\n    return () => {\n      io.disconnect();\n      cancelAnimationFrame(raf);\n    };\n  }, [value, decimals, prefix, suffix, duration]);\n  return <span ref={ref}>{prefix + format(value, decimals) + suffix}</span>;\n}\n\nfunction sparkPath(data: number[]) {\n  const min = Math.min(...data);\n  const max = Math.max(...data);\n  return data\n    .map((v, i) => {\n      const x = (i / (data.length - 1)) * 100;\n      const y = 36 - ((v - min) / (max - min || 1)) * 32;\n      return `${i ? \"L\" : \"M\"}${x.toFixed(2)},${y.toFixed(2)}`;\n    })\n    .join(\" \");\n}\n\nconst icons = [\n  <path key=\"0\" d=\"M8 2v12M11 4.5C11 3.7 9.7 3 8 3S5 3.7 5 5s1.3 2 3 2.5 3 1.2 3 2.5-1.3 2-3 2-3-.7-3-1.5\" stroke=\"currentColor\" strokeWidth=\"1.4\" strokeLinecap=\"round\" fill=\"none\" />,\n  <path key=\"1\" d=\"M2.5 13c.5-2.2 2.6-3.5 5.5-3.5s5 1.3 5.5 3.5M8 7.5a2.5 2.5 0 100-5 2.5 2.5 0 000 5z\" stroke=\"currentColor\" strokeWidth=\"1.4\" strokeLinecap=\"round\" fill=\"none\" />,\n  <path key=\"2\" d=\"M2 4.5h3.5L8 10l2.5-3 3.5 4.5M10.5 11.5H14V8\" stroke=\"currentColor\" strokeWidth=\"1.4\" strokeLinecap=\"round\" strokeLinejoin=\"round\" fill=\"none\" />,\n];\n\nexport function BentoMetrics({\n  eyebrow = \"Metrics\",\n  title = \"Numbers the whole company can read at a glance\",\n  subtitle = \"Revenue, usage and reliability on one board that refreshes every minute, with goals everyone can see.\",\n  stats = defaultStats,\n  slices = defaultSlices,\n  sparks = defaultSparks,\n  goals = defaultGoals,\n  nps = 64,\n  uptime = 99.98,\n  accent = \"#10b981\",\n  className,\n  style,\n  ...rest\n}: BentoMetricsProps) {\n  const total = slices.reduce((s, x) => s + x.value, 0) || 1;\n  const sliceColors = [accent, `color-mix(in srgb, ${accent} 55%, #0a0a0a)`, \"#3f3f46\", \"#27272a\"];\n  const pcts = slices.map((s) => (s.value / total) * 100);\n  const segs = pcts.map((pct, i) => ({\n    d: Math.max(pct - 2.4, 0.5),\n    o: -pcts.slice(0, i).reduce((a, b) => a + b, 0),\n    color: sliceColors[i % sliceColors.length],\n    pct,\n  }));\n  const npsAngle = (Math.max(-100, Math.min(100, nps)) / 100) * 90;\n\n  return (\n    <section\n      className={[\"hb-kb2\", className].filter(Boolean).join(\" \")}\n      style={{ \"--hb-kb2-accent\": accent, ...style } as React.CSSProperties}\n      {...rest}\n    >\n      <style href=\"hb-bento-metrics\" precedence=\"default\">{css}</style>\n      <div className=\"hb-kb2-in\">\n        <header className=\"hb-kb2-head\">\n          {eyebrow ? <p className=\"hb-kb2-eyebrow\">{eyebrow}</p> : null}\n          <h2 className=\"hb-kb2-title\">{title}</h2>\n          {subtitle ? <p className=\"hb-kb2-sub\">{subtitle}</p> : null}\n        </header>\n        <div className=\"hb-kb2-grid\">\n          {stats.slice(0, 3).map((s, i) => (\n            <article key={s.label} className=\"hb-kb2-cell\" style={{ gridArea: `s${i}`, \"--hb-kb2-i\": i } as React.CSSProperties}>\n              <span className=\"hb-kb2-label\">\n                <svg width=\"15\" height=\"15\" viewBox=\"0 0 16 16\" aria-hidden=\"true\">\n                  {icons[i % icons.length]}\n                </svg>\n                {s.label}\n              </span>\n              <strong className=\"hb-kb2-big\">\n                <Count value={s.value} decimals={s.decimals ?? 0} prefix={s.prefix ?? \"\"} suffix={s.suffix ?? \"\"} />\n              </strong>\n              <div className=\"hb-kb2-row\">\n                <div>\n                  <span className=\"hb-kb2-delta\" data-good={s.positive !== false ? \"true\" : \"false\"}>\n                    {s.delta}\n                  </span>\n                  <div className=\"hb-kb2-note\" style={{ marginTop: 6 }}>vs. last month</div>\n                </div>\n                <div className=\"hb-kb2-bars\" aria-hidden=\"true\">\n                  {Array.from({ length: 8 }, (_, j) => (\n                    <i key={j} style={{ \"--h\": `${(30 + hash(i * 13 + j) * 55 + j * 2).toFixed(0)}%`, \"--hb-kb2-j\": j } as React.CSSProperties} />\n                  ))}\n                </div>\n              </div>\n            </article>\n          ))}\n\n          <article className=\"hb-kb2-cell hb-kb2-donut\" style={{ \"--hb-kb2-i\": 3 } as React.CSSProperties}>\n            <span className=\"hb-kb2-label\">Seats by plan</span>\n            <div className=\"hb-kb2-ringwrap\">\n              <svg viewBox=\"0 0 120 120\" aria-hidden=\"true\">\n                <circle cx=\"60\" cy=\"60\" r=\"46\" fill=\"none\" stroke=\"#1c1c1c\" strokeWidth=\"12\" />\n                {segs.map((s, i) => (\n                  <circle\n                    key={slices[i].label}\n                    className=\"hb-kb2-seg\"\n                    cx=\"60\"\n                    cy=\"60\"\n                    r=\"46\"\n                    pathLength={100}\n                    stroke={s.color}\n                    style={{ \"--d\": s.d.toFixed(2), \"--o\": s.o.toFixed(2), \"--hb-kb2-j\": i } as React.CSSProperties}\n                  />\n                ))}\n              </svg>\n              <div className=\"hb-kb2-center\">\n                <strong>\n                  <Count value={total} />\n                </strong>\n                <span>paid seats</span>\n              </div>\n            </div>\n            <ul className=\"hb-kb2-legend\">\n              {segs.map((s, i) => (\n                <li key={slices[i].label}>\n                  <i style={{ \"--c\": s.color } as React.CSSProperties} />\n                  {slices[i].label}\n                  <b>{s.pct.toFixed(0)}%</b>\n                </li>\n              ))}\n            </ul>\n            <p className=\"hb-kb2-foot\">\n              Expansion revenue is up <b>$9.4k</b> this month, led by Business upgrades.\n            </p>\n          </article>\n\n          <article className=\"hb-kb2-cell hb-kb2-spark\" style={{ \"--hb-kb2-i\": 4 } as React.CSSProperties}>\n            {sparks.slice(0, 4).map((s, j) => (\n              <div key={s.label} className=\"hb-kb2-sp\">\n                <span className=\"hb-kb2-label\">{s.label}</span>\n                <strong>{s.value}</strong>\n                <svg viewBox=\"0 0 100 40\" preserveAspectRatio=\"none\" aria-hidden=\"true\">\n                  <path className=\"hb-kb2-sline\" d={sparkPath(s.data)} pathLength={1} style={{ \"--hb-kb2-j\": j } as React.CSSProperties} />\n                </svg>\n              </div>\n            ))}\n          </article>\n\n          <article className=\"hb-kb2-cell hb-kb2-goals\" style={{ \"--hb-kb2-i\": 5 } as React.CSSProperties}>\n            <span className=\"hb-kb2-label\">Q4 goals</span>\n            <ul className=\"hb-kb2-glist\">\n              {goals.map((g, j) => (\n                <li key={g.label}>\n                  <div className=\"hb-kb2-gtop\">\n                    <span>\n                      {g.label} · {g.target}\n                    </span>\n                    <b>\n                      <Count value={g.progress} suffix=\"%\" duration={1200} />\n                    </b>\n                  </div>\n                  <div className=\"hb-kb2-track\" role=\"progressbar\" aria-label={g.label} aria-valuenow={g.progress} aria-valuemin={0} aria-valuemax={100}>\n                    <i style={{ \"--p\": `${Math.max(0, Math.min(100, g.progress))}%`, \"--hb-kb2-j\": j } as React.CSSProperties} />\n                  </div>\n                </li>\n              ))}\n            </ul>\n          </article>\n\n          <article className=\"hb-kb2-cell hb-kb2-nps\" style={{ \"--hb-kb2-i\": 6 } as React.CSSProperties}>\n            <span className=\"hb-kb2-label\">Net promoter score</span>\n            <div className=\"hb-kb2-gauge\" aria-hidden=\"true\">\n              <svg viewBox=\"0 0 120 66\">\n                <path d=\"M10 60a50 50 0 0 1 100 0\" fill=\"none\" stroke=\"#1d1d1d\" strokeWidth=\"10\" strokeLinecap=\"round\" />\n                <path d=\"M10 60a50 50 0 0 1 100 0\" fill=\"none\" stroke={accent} strokeWidth=\"10\" strokeLinecap=\"round\" pathLength={100} strokeDasharray={`${((nps + 100) / 2).toFixed(1)} 100`} opacity=\".9\" />\n                <g className=\"hb-kb2-needle\" style={{ \"--r\": `${npsAngle.toFixed(1)}deg` } as React.CSSProperties}>\n                  <path d=\"M60 60L60 20\" stroke=\"#ededed\" strokeWidth=\"2.5\" strokeLinecap=\"round\" />\n                </g>\n                <circle cx=\"60\" cy=\"60\" r=\"5\" fill=\"#ededed\" />\n              </svg>\n            </div>\n            <div className=\"hb-kb2-gval\">\n              <strong>\n                <Count value={nps} />\n              </strong>\n              <span>71% promoters · 7% detractors</span>\n            </div>\n          </article>\n\n          <article className=\"hb-kb2-cell hb-kb2-up\" style={{ \"--hb-kb2-i\": 7 } as React.CSSProperties}>\n            <span className=\"hb-kb2-label\">\n              Uptime, 30 days\n              <span className=\"hb-kb2-live\">\n                <i aria-hidden=\"true\" />\n                Live\n              </span>\n            </span>\n            <strong className=\"hb-kb2-big\" style={{ marginBottom: 16 }}>\n              <Count value={uptime} decimals={2} suffix=\"%\" />\n            </strong>\n            <div className=\"hb-kb2-ticks\" aria-hidden=\"true\">\n              {Array.from({ length: 30 }, (_, j) => (\n                <i key={j} data-warn={j === 17 ? \"true\" : undefined} style={{ \"--hb-kb2-j\": j } as React.CSSProperties} />\n              ))}\n            </div>\n            <div className=\"hb-kb2-uprow\">\n              <span>Oct 4</span>\n              <span>Last incident 23 days ago</span>\n            </div>\n          </article>\n        </div>\n      </div>\n    </section>\n  );\n}\n"
    }
  ]
}