{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "app-onboarding-checklist",
  "type": "registry:component",
  "title": "App Onboarding Checklist",
  "description": "A light getting-started screen with a progress ring, expandable checklist steps, a confetti burst when everything is done, plus Skip for now and dismiss.",
  "author": "Hyperblur <hello@hyperblur.dev>",
  "dependencies": [],
  "registryDependencies": [],
  "categories": [
    "app-ui",
    "onboarding",
    "checklist",
    "progress",
    "getting started",
    "confetti",
    "setup"
  ],
  "docs": "https://hyperblur.dev/effects/app-onboarding-checklist",
  "files": [
    {
      "path": "registry/hyperblur/app-onboarding-checklist.tsx",
      "type": "registry:component",
      "target": "components/hyperblur/app-onboarding-checklist.tsx",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nexport interface AppOnboardingStep {\n  id: string;\n  title: string;\n  description: string;\n  duration?: string;\n  action?: string;\n}\n\nexport interface AppOnboardingChecklistProps\n  extends Omit<React.HTMLAttributes<HTMLDivElement>, \"onChange\"> {\n  steps?: AppOnboardingStep[];\n  defaultCompleted?: string[];\n  defaultOpenId?: string;\n  userName?: string;\n  product?: string;\n  accent?: string;\n  onStepComplete?: (id: string, done: boolean) => void;\n  onComplete?: () => void;\n  onSkip?: () => void;\n  onDismiss?: () => void;\n}\n\nconst defaultSteps: AppOnboardingStep[] = [\n  { id: \"workspace\", title: \"Name your workspace\", description: \"Pick a name and a URL your team will recognize. You can change both later in Settings.\", duration: \"1 min\", action: \"Edit workspace\" },\n  { id: \"invite\", title: \"Invite your teammates\", description: \"Projects move faster together. Invite by email or share a link that expires in 7 days.\", duration: \"2 min\", action: \"Send invites\" },\n  { id: \"connect\", title: \"Connect a data source\", description: \"Sync events from Postgres, Stripe or Segment. The first import usually finishes in under five minutes.\", duration: \"3 min\", action: \"Add source\" },\n  { id: \"dashboard\", title: \"Build your first dashboard\", description: \"Start from the Revenue template or a blank canvas. Drag metrics in, then pin the ones you check every morning.\", duration: \"4 min\", action: \"Open templates\" },\n  { id: \"alerts\", title: \"Set up an alert\", description: \"Get a message in Slack or email when a metric crosses a threshold, like churn above 3% in a week.\", duration: \"2 min\", action: \"Create alert\" },\n  { id: \"mobile\", title: \"Install the mobile app\", description: \"Check numbers on the go. Scan the code in Settings or search for Northwind in your app store.\", duration: \"1 min\", action: \"Get the app\" },\n];\n\nconst confettiColors = [\"#6d4aff\", \"#2f7bff\", \"#22c08a\", \"#f2a93b\", \"#ff6f5e\", \"#ec5f9c\"];\n\nfunction hash(n: number) {\n  let x = (n + 1) * 2654435761;\n  x = (x ^ (x >>> 15)) >>> 0;\n  x = Math.imul(x, 2246822519) >>> 0;\n  return (x ^ (x >>> 13)) >>> 0;\n}\n\nconst pieces = Array.from({ length: 40 }, (_, i) => {\n  const h = hash(i);\n  const angle = ((i / 40) * Math.PI * 2) + ((h % 100) / 100 - 0.5) * 0.5;\n  const dist = 90 + (h % 120);\n  return {\n    x: (Math.cos(angle) * dist).toFixed(1),\n    y: (Math.sin(angle) * dist * 0.75 - 30).toFixed(1),\n    r: ((h >>> 3) % 720 - 360).toFixed(0),\n    w: 5 + (h % 4),\n    h: 8 + ((h >>> 5) % 6),\n    color: confettiColors[i % confettiColors.length],\n    delay: (((h >>> 7) % 12) * 0.02).toFixed(2),\n    round: i % 5 === 0,\n  };\n});\n\nconst css = `\n.hb-ye7 {\n  --hb-ye7-accent: #6d4aff;\n  container-type: inline-size;\n  position: relative;\n  box-sizing: border-box;\n  width: 100%;\n  min-height: 600px;\n  overflow: hidden;\n  border: 1px solid rgba(18,22,34,.08);\n  border-radius: 16px;\n  background: #f7f5ef;\n  color: #121622;\n  font-family: inherit;\n  font-size: 14px;\n  line-height: 1.45;\n}\n.hb-ye7 *, .hb-ye7 *::before, .hb-ye7 *::after { box-sizing: border-box; }\n.hb-ye7 button:focus-visible, .hb-ye7 a:focus-visible { outline: 2px solid var(--hb-ye7-accent); outline-offset: 2px; }\n.hb-ye7-shell { display: grid; grid-template-columns: 1fr; gap: 18px; padding: 20px; }\n.hb-ye7-main { min-width: 0; padding: 20px; border: 1px solid rgba(18,22,34,.08); border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgba(18,22,34,.04), 0 12px 32px rgba(18,22,34,.05); animation: hb-ye7-in .45s cubic-bezier(.2,.8,.2,1) both; }\n.hb-ye7-head { position: relative; display: flex; align-items: center; gap: 18px; padding-bottom: 18px; border-bottom: 1px solid rgba(18,22,34,.07); }\n.hb-ye7-ring { position: relative; flex: none; width: 76px; height: 76px; }\n.hb-ye7-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }\n.hb-ye7-ring circle { fill: none; stroke-width: 7; }\n.hb-ye7-ring-bg { stroke: #efece4; }\n.hb-ye7-ring-fg { stroke: var(--hb-ye7-accent); stroke-linecap: round; transition: stroke-dashoffset .8s cubic-bezier(.2,.8,.2,1); animation: hb-ye7-ring 1.1s cubic-bezier(.2,.8,.2,1) both; }\n.hb-ye7-ring-n { position: absolute; inset: 0; display: grid; place-items: center; font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }\n.hb-ye7-ring-n small { display: block; margin-top: -4px; color: #8a8d96; font-size: 10.5px; font-weight: 500; text-align: center; letter-spacing: 0; }\n.hb-ye7-titles { flex: 1; min-width: 0; }\n.hb-ye7-eyebrow { color: var(--hb-ye7-accent); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }\n.hb-ye7-title { margin: 2px 0 0; font-size: 21px; font-weight: 650; letter-spacing: -.02em; line-height: 1.2; }\n.hb-ye7-sub { margin: 4px 0 0; color: #5c606b; font-size: 13.5px; }\n.hb-ye7-headacts { display: flex; align-items: center; gap: 6px; align-self: flex-start; }\n.hb-ye7-link { margin: 0; padding: 6px 10px; border: 0; border-radius: 8px; background: transparent; color: #5c606b; font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; }\n.hb-ye7-link:hover { background: #f2f0ea; color: #121622; }\n.hb-ye7-x { display: grid; place-items: center; width: 30px; height: 30px; margin: 0; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #8a8d96; cursor: pointer; }\n.hb-ye7-x:hover { background: #f2f0ea; color: #121622; }\n.hb-ye7-x svg { width: 16px; height: 16px; }\n.hb-ye7-steps { display: flex; flex-direction: column; gap: 6px; margin: 14px 0 0; padding: 0; list-style: none; }\n.hb-ye7-step { border: 1px solid transparent; border-radius: 12px; transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease; animation: hb-ye7-in .4s cubic-bezier(.2,.8,.2,1) both; }\n.hb-ye7-step[data-open=\"true\"] { border-color: rgba(18,22,34,.08); background: #fbfaf7; box-shadow: 0 1px 0 rgba(18,22,34,.03); }\n.hb-ye7-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; }\n.hb-ye7-check { position: relative; display: grid; place-items: center; width: 24px; height: 24px; flex: none; margin: 0; padding: 0; border: 1.5px solid #cfccc3; border-radius: 999px; background: #fff; color: #fff; cursor: pointer; transition: background-color .2s ease, border-color .2s ease, transform .2s ease; }\n.hb-ye7-check:hover { border-color: var(--hb-ye7-accent); }\n.hb-ye7-check[aria-checked=\"true\"] { border-color: var(--hb-ye7-accent); background: var(--hb-ye7-accent); animation: hb-ye7-tick .35s cubic-bezier(.2,1.6,.4,1) both; }\n.hb-ye7-check svg { width: 14px; height: 14px; stroke-dasharray: 20; stroke-dashoffset: 20; transition: stroke-dashoffset .3s ease .05s; }\n.hb-ye7-check[aria-checked=\"true\"] svg { stroke-dashoffset: 0; }\n.hb-ye7-toggle { display: flex; flex: 1; align-items: center; gap: 10px; min-width: 0; margin: 0; padding: 2px 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }\n.hb-ye7-stitle { flex: 1; min-width: 0; font-size: 14px; font-weight: 550; transition: color .2s ease; }\n.hb-ye7-step[data-done=\"true\"] .hb-ye7-stitle { color: #8a8d96; text-decoration: line-through; text-decoration-color: #cfccc3; }\n.hb-ye7-dur { flex: none; padding: 2px 8px; border-radius: 999px; background: #f2f0ea; color: #6b6f7a; font-size: 11.5px; font-weight: 500; }\n.hb-ye7-chev { width: 16px; height: 16px; flex: none; color: #8a8d96; transition: transform .25s ease; }\n.hb-ye7-step[data-open=\"true\"] .hb-ye7-chev { transform: rotate(180deg); }\n.hb-ye7-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .32s cubic-bezier(.2,.8,.2,1); }\n.hb-ye7-step[data-open=\"true\"] .hb-ye7-body { grid-template-rows: 1fr; }\n.hb-ye7-body-in { min-height: 0; overflow: hidden; }\n.hb-ye7-body-pad { display: grid; grid-template-columns: 1fr; gap: 14px; padding: 0 12px 14px 48px; }\n.hb-ye7-desc { margin: 0; color: #5c606b; font-size: 13.5px; line-height: 1.55; }\n.hb-ye7-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }\n.hb-ye7-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; margin: 0; padding: 0 13px; border: 1px solid rgba(18,22,34,.12); border-radius: 999px; background: #fff; color: #121622; font: inherit; font-size: 13px; font-weight: 550; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease; }\n.hb-ye7-btn:hover { box-shadow: 0 2px 8px rgba(18,22,34,.08); }\n.hb-ye7-btn:active { transform: scale(.97); }\n.hb-ye7-btn[data-tone=\"primary\"] { border-color: transparent; background: #121622; color: #fff; }\n.hb-ye7-btn svg { width: 14px; height: 14px; }\n.hb-ye7-illo { display: none; height: 92px; border: 1px solid rgba(18,22,34,.07); border-radius: 10px; background: #fff; overflow: hidden; }\n.hb-ye7-illo svg { width: 100%; height: 100%; }\n.hb-ye7-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }\n.hb-ye7-card { padding: 16px; border: 1px solid rgba(18,22,34,.08); border-radius: 14px; background: #fff; animation: hb-ye7-in .5s cubic-bezier(.2,.8,.2,1) both; }\n.hb-ye7-card-h { font-size: 14px; font-weight: 600; }\n.hb-ye7-card-p { margin: 4px 0 12px; color: #5c606b; font-size: 12.5px; }\n.hb-ye7-help { display: flex; align-items: center; gap: 10px; width: 100%; margin: 0 0 6px; padding: 9px 10px; border: 1px solid rgba(18,22,34,.07); border-radius: 10px; background: #fbfaf7; color: inherit; font: inherit; font-size: 13px; text-align: left; cursor: pointer; transition: border-color .15s ease, transform .15s ease; }\n.hb-ye7-help:hover { border-color: color-mix(in srgb, var(--hb-ye7-accent) 45%, transparent); transform: translateX(2px); }\n.hb-ye7-help i { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 8px; background: color-mix(in srgb, var(--hb-ye7-accent) 12%, #fff); color: var(--hb-ye7-accent); }\n.hb-ye7-help i svg { width: 15px; height: 15px; }\n.hb-ye7-help small { display: block; color: #8a8d96; font-size: 11.5px; }\n.hb-ye7-team { display: flex; align-items: center; }\n.hb-ye7-av { display: grid; place-items: center; width: 30px; height: 30px; margin-left: -8px; border: 2px solid #fff; border-radius: 999px; color: #fff; font-size: 10.5px; font-weight: 700; }\n.hb-ye7-av:first-child { margin-left: 0; }\n.hb-ye7-av[data-empty=\"true\"] { border: 1.5px dashed #cfccc3; background: #fbfaf7; color: #8a8d96; font-size: 15px; font-weight: 400; }\n.hb-ye7-done { position: relative; display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 14px 16px; border-radius: 12px; background: linear-gradient(120deg, color-mix(in srgb, var(--hb-ye7-accent) 12%, #fff), #fff); animation: hb-ye7-in .45s cubic-bezier(.2,.8,.2,1) both; }\n.hb-ye7-done b { display: block; font-size: 14px; }\n.hb-ye7-done span { color: #5c606b; font-size: 13px; }\n.hb-ye7-confetti { position: absolute; left: 38px; top: 38px; z-index: 4; width: 0; height: 0; pointer-events: none; }\n.hb-ye7-confetti i { position: absolute; left: 0; top: 0; border-radius: 2px; opacity: 0; animation: hb-ye7-burst 1.4s cubic-bezier(.15,.7,.3,1) both; }\n.hb-ye7-mini { display: flex; align-items: center; gap: 12px; max-width: 460px; margin: 0 auto; padding: 10px 10px 10px 14px; border: 1px solid rgba(18,22,34,.08); border-radius: 999px; background: #fff; box-shadow: 0 10px 30px rgba(18,22,34,.08); animation: hb-ye7-in .35s cubic-bezier(.2,.8,.2,1) both; }\n.hb-ye7-mini-bar { flex: 1; height: 6px; border-radius: 999px; background: #efece4; overflow: hidden; }\n.hb-ye7-mini-bar i { display: block; height: 100%; border-radius: inherit; background: var(--hb-ye7-accent); transition: width .5s ease; }\n.hb-ye7-mini-t { color: #5c606b; font-size: 13px; white-space: nowrap; }\n.hb-ye7-wrap { display: grid; place-items: center; min-height: 600px; padding: 20px; }\n.hb-ye7-gone { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; color: #5c606b; font-size: 13.5px; }\n@keyframes hb-ye7-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }\n@keyframes hb-ye7-ring { from { stroke-dashoffset: var(--hb-ye7-c); } }\n@keyframes hb-ye7-tick { 0% { transform: scale(.8); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }\n@keyframes hb-ye7-burst { 0% { opacity: 1; transform: translate(0, 0) rotate(0deg) scale(.4); } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--x), calc(var(--y) + 60px)) rotate(var(--r)) scale(1); } }\n@container (min-width: 560px) {\n  .hb-ye7-body-pad { grid-template-columns: 1fr 180px; align-items: start; }\n  .hb-ye7-illo { display: block; }\n}\n@container (min-width: 820px) {\n  .hb-ye7-shell { grid-template-columns: 1fr 280px; gap: 20px; padding: 28px; }\n  .hb-ye7-main { padding: 24px 24px 18px; }\n}\n@container (max-width: 520px) {\n  .hb-ye7-head { flex-wrap: wrap; }\n  .hb-ye7-headacts { order: -1; width: 100%; justify-content: flex-end; }\n  .hb-ye7-dur { display: none; }\n  .hb-ye7-body-pad { padding-left: 12px; }\n}\n@media (prefers-reduced-motion: reduce) {\n  .hb-ye7 *, .hb-ye7 *::before, .hb-ye7 *::after { animation: none !important; transition: none !important; }\n  .hb-ye7-confetti { display: none; }\n}\n`;\n\nfunction Icon({ d }: { d: string }) {\n  return (\n    <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"1.9\" strokeLinecap=\"round\" strokeLinejoin=\"round\" aria-hidden=\"true\">\n      <path d={d} />\n    </svg>\n  );\n}\n\nfunction Illustration({ index }: { index: number }) {\n  const v = index % 3;\n  return (\n    <svg viewBox=\"0 0 180 92\" aria-hidden=\"true\">\n      <rect width=\"180\" height=\"92\" fill=\"#fbfaf7\" />\n      {v === 0 && (\n        <g>\n          <rect x=\"14\" y=\"14\" width=\"152\" height=\"64\" rx=\"8\" fill=\"#fff\" stroke=\"#ece9e1\" />\n          <rect x=\"24\" y=\"24\" width=\"40\" height=\"22\" rx=\"4\" fill=\"var(--hb-ye7-accent)\" opacity=\".16\" />\n          <path d=\"M28 40 L36 33 L44 37 L52 28 L60 31\" fill=\"none\" stroke=\"var(--hb-ye7-accent)\" strokeWidth=\"2\" strokeLinecap=\"round\" />\n          <rect x=\"72\" y=\"24\" width=\"84\" height=\"22\" rx=\"4\" fill=\"#f2f0ea\" />\n          {[0, 1, 2, 3, 4, 5, 6].map((i) => (\n            <rect key={i} x={(76 + i * 11).toFixed(0)} y={(42 - ((hash(i) % 12) + 4)).toFixed(0)} width=\"6\" height={((hash(i) % 12) + 4).toFixed(0)} rx=\"1.5\" fill={i === 5 ? \"var(--hb-ye7-accent)\" : \"#d9d5cb\"} />\n          ))}\n          <rect x=\"24\" y=\"54\" width=\"132\" height=\"6\" rx=\"3\" fill=\"#f2f0ea\" />\n          <rect x=\"24\" y=\"64\" width=\"90\" height=\"6\" rx=\"3\" fill=\"#f2f0ea\" />\n        </g>\n      )}\n      {v === 1 && (\n        <g>\n          <rect x=\"30\" y=\"20\" width=\"120\" height=\"52\" rx=\"10\" fill=\"#fff\" stroke=\"#ece9e1\" />\n          <circle cx=\"50\" cy=\"46\" r=\"10\" fill=\"var(--hb-ye7-accent)\" opacity=\".2\" />\n          <path d=\"M45 46l3.5 3.5L56 42\" fill=\"none\" stroke=\"var(--hb-ye7-accent)\" strokeWidth=\"2.2\" strokeLinecap=\"round\" strokeLinejoin=\"round\" />\n          <rect x=\"68\" y=\"38\" width=\"62\" height=\"6\" rx=\"3\" fill=\"#e6e2d8\" />\n          <rect x=\"68\" y=\"50\" width=\"42\" height=\"5\" rx=\"2.5\" fill=\"#f2f0ea\" />\n          <circle cx=\"150\" cy=\"22\" r=\"8\" fill=\"#ff6f5e\" />\n          <text x=\"150\" y=\"25.5\" fill=\"#fff\" fontSize=\"9\" fontWeight=\"700\" textAnchor=\"middle\">3</text>\n        </g>\n      )}\n      {v === 2 && (\n        <g>\n          <circle cx=\"56\" cy=\"46\" r=\"16\" fill=\"#fff\" stroke=\"#ece9e1\" />\n          <circle cx=\"124\" cy=\"46\" r=\"16\" fill=\"var(--hb-ye7-accent)\" opacity=\".16\" />\n          <path d=\"M72 46 H108\" stroke=\"var(--hb-ye7-accent)\" strokeWidth=\"2\" strokeDasharray=\"4 4\" />\n          <rect x=\"49\" y=\"39\" width=\"14\" height=\"14\" rx=\"3\" fill=\"#d9d5cb\" />\n          <path d=\"M118 46l4 4 8-8\" fill=\"none\" stroke=\"var(--hb-ye7-accent)\" strokeWidth=\"2.2\" strokeLinecap=\"round\" strokeLinejoin=\"round\" />\n        </g>\n      )}\n    </svg>\n  );\n}\n\nexport function AppOnboardingChecklist({\n  steps = defaultSteps,\n  defaultCompleted = [],\n  defaultOpenId,\n  userName = \"Maya\",\n  product = \"Northwind\",\n  accent = \"#6d4aff\",\n  onStepComplete,\n  onComplete,\n  onSkip,\n  onDismiss,\n  className,\n  style,\n  ...rest\n}: AppOnboardingChecklistProps) {\n  const id = React.useId();\n  const [done, setDone] = React.useState<Set<string>>(() => new Set(defaultCompleted));\n  const [open, setOpen] = React.useState<string | null>(() => defaultOpenId ?? steps.find((s) => !defaultCompleted.includes(s.id))?.id ?? null);\n  const [mode, setMode] = React.useState<\"active\" | \"skipped\" | \"dismissed\">(\"active\");\n  const [burst, setBurst] = React.useState(0);\n  const headRefs = React.useRef<(HTMLButtonElement | null)[]>([]);\n\n  const count = steps.filter((s) => done.has(s.id)).length;\n  const total = steps.length;\n  const all = total > 0 && count === total;\n  const remaining = steps.filter((s) => !done.has(s.id)).reduce((n, s) => n + (parseInt(s.duration ?? \"0\", 10) || 0), 0);\n  const R = 31;\n  const C = 2 * Math.PI * R;\n  const offset = C * (1 - (total ? count / total : 0));\n\n  const setStep = (stepId: string, value: boolean) => {\n    const next = new Set(done);\n    if (value) next.add(stepId);\n    else next.delete(stepId);\n    setDone(next);\n    onStepComplete?.(stepId, value);\n    if (value) {\n      const nextOpen = steps.find((s) => !next.has(s.id));\n      setOpen(nextOpen ? nextOpen.id : null);\n      if (steps.every((s) => next.has(s.id))) {\n        setBurst((b) => b + 1);\n        onComplete?.();\n      }\n    }\n  };\n\n  const onHeadKey = (e: React.KeyboardEvent, i: number) => {\n    let n = -1;\n    if (e.key === \"ArrowDown\") n = Math.min(steps.length - 1, i + 1);\n    if (e.key === \"ArrowUp\") n = Math.max(0, i - 1);\n    if (e.key === \"Home\") n = 0;\n    if (e.key === \"End\") n = steps.length - 1;\n    if (n < 0) return;\n    e.preventDefault();\n    headRefs.current[n]?.focus();\n  };\n\n  const rootProps = {\n    className: [\"hb-ye7\", className].filter(Boolean).join(\" \"),\n    style: { \"--hb-ye7-accent\": accent, ...style } as React.CSSProperties,\n    ...rest,\n  };\n  const styleTag = <style href=\"hb-app-onboarding-checklist\" precedence=\"default\">{css}</style>;\n\n  if (mode === \"dismissed\") {\n    return (\n      <div {...rootProps}>\n        {styleTag}\n        <div className=\"hb-ye7-wrap\">\n          <div className=\"hb-ye7-gone\" role=\"status\">\n            <span>The checklist is hidden. You can bring it back any time from Help.</span>\n            <button type=\"button\" className=\"hb-ye7-btn\" onClick={() => setMode(\"active\")}>Undo</button>\n          </div>\n        </div>\n      </div>\n    );\n  }\n\n  if (mode === \"skipped\") {\n    return (\n      <div {...rootProps}>\n        {styleTag}\n        <div className=\"hb-ye7-wrap\">\n          <div className=\"hb-ye7-mini\" role=\"region\" aria-label=\"Setup progress\">\n            <span className=\"hb-ye7-mini-t\"><b style={{ color: \"#121622\" }}>Setup paused</b> · {count} of {total}</span>\n            <span className=\"hb-ye7-mini-bar\" aria-hidden=\"true\"><i style={{ width: `${((count / Math.max(1, total)) * 100).toFixed(1)}%` }} /></span>\n            <button type=\"button\" className=\"hb-ye7-btn\" data-tone=\"primary\" onClick={() => setMode(\"active\")}>Resume</button>\n          </div>\n        </div>\n      </div>\n    );\n  }\n\n  return (\n    <div {...rootProps}>\n      {styleTag}\n      <div className=\"hb-ye7-shell\">\n        <section className=\"hb-ye7-main\" aria-labelledby={`${id}-title`}>\n          <div className=\"hb-ye7-head\">\n            <div className=\"hb-ye7-ring\" role=\"progressbar\" aria-valuemin={0} aria-valuemax={total} aria-valuenow={count} aria-label=\"Setup progress\">\n              <svg viewBox=\"0 0 76 76\" aria-hidden=\"true\">\n                <circle className=\"hb-ye7-ring-bg\" cx=\"38\" cy=\"38\" r={R} />\n                <circle\n                  className=\"hb-ye7-ring-fg\"\n                  cx=\"38\"\n                  cy=\"38\"\n                  r={R}\n                  strokeDasharray={C.toFixed(2)}\n                  strokeDashoffset={offset.toFixed(2)}\n                  style={{ \"--hb-ye7-c\": C.toFixed(2) } as React.CSSProperties}\n                />\n              </svg>\n              <span className=\"hb-ye7-ring-n\"><span>{count}/{total}<small>done</small></span></span>\n            </div>\n            {burst > 0 && (\n              <span className=\"hb-ye7-confetti\" key={burst} aria-hidden=\"true\">\n                {pieces.map((p, i) => (\n                  <i\n                    key={i}\n                    style={{\n                      width: p.w,\n                      height: p.round ? p.w : p.h,\n                      borderRadius: p.round ? 999 : 2,\n                      background: p.color,\n                      animationDelay: `${p.delay}s`,\n                      \"--x\": `${p.x}px`,\n                      \"--y\": `${p.y}px`,\n                      \"--r\": `${p.r}deg`,\n                    } as React.CSSProperties}\n                  />\n                ))}\n              </span>\n            )}\n            <div className=\"hb-ye7-titles\">\n              <div className=\"hb-ye7-eyebrow\">Getting started</div>\n              <h2 className=\"hb-ye7-title\" id={`${id}-title`}>{all ? `You are all set, ${userName}` : `Welcome to ${product}, ${userName}`}</h2>\n              <p className=\"hb-ye7-sub\" aria-live=\"polite\">\n                {all ? \"Every step is done. Your workspace is ready for the whole team.\" : `${total - count} step${total - count === 1 ? \"\" : \"s\"} left · about ${remaining} minutes`}\n              </p>\n            </div>\n            <div className=\"hb-ye7-headacts\">\n              {!all && <button type=\"button\" className=\"hb-ye7-link\" onClick={() => { setMode(\"skipped\"); onSkip?.(); }}>Skip for now</button>}\n              <button type=\"button\" className=\"hb-ye7-x\" aria-label=\"Dismiss checklist\" onClick={() => { setMode(\"dismissed\"); onDismiss?.(); }}><Icon d=\"M6 6l12 12M18 6 6 18\" /></button>\n            </div>\n          </div>\n          {all && (\n            <div className=\"hb-ye7-done\" role=\"status\">\n              <span style={{ display: \"grid\", placeItems: \"center\", width: 36, height: 36, borderRadius: 999, background: accent, color: \"#fff\", flex: \"none\" }}><Icon d=\"M5 12.5l4.5 4.5L19 7.5\" /></span>\n              <div><b>Setup complete</b><span>Invite more people or explore templates whenever you like.</span></div>\n            </div>\n          )}\n          <ol className=\"hb-ye7-steps\">\n            {steps.map((s, i) => {\n              const isDone = done.has(s.id);\n              const isOpen = open === s.id;\n              return (\n                <li key={s.id} className=\"hb-ye7-step\" data-open={isOpen} data-done={isDone} style={{ animationDelay: `${(0.05 + i * 0.05).toFixed(2)}s` }}>\n                  <div className=\"hb-ye7-row\">\n                    <button type=\"button\" role=\"checkbox\" aria-checked={isDone} aria-label={`Mark \"${s.title}\" as ${isDone ? \"not done\" : \"done\"}`} className=\"hb-ye7-check\" onClick={() => setStep(s.id, !isDone)}>\n                      <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"3\" strokeLinecap=\"round\" strokeLinejoin=\"round\" aria-hidden=\"true\"><path d=\"M5 12.5l4.5 4.5L19 7.5\" /></svg>\n                    </button>\n                    <button\n                      type=\"button\"\n                      ref={(el) => { headRefs.current[i] = el; }}\n                      className=\"hb-ye7-toggle\"\n                      aria-expanded={isOpen}\n                      aria-controls={`${id}-body-${s.id}`}\n                      onClick={() => setOpen(isOpen ? null : s.id)}\n                      onKeyDown={(e) => onHeadKey(e, i)}\n                    >\n                      <span className=\"hb-ye7-stitle\">{s.title}</span>\n                      {s.duration && <span className=\"hb-ye7-dur\">{s.duration}</span>}\n                      <svg className=\"hb-ye7-chev\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"2\" strokeLinecap=\"round\" strokeLinejoin=\"round\" aria-hidden=\"true\"><path d=\"M6 9l6 6 6-6\" /></svg>\n                    </button>\n                  </div>\n                  <div className=\"hb-ye7-body\" id={`${id}-body-${s.id}`} role=\"region\" aria-label={s.title}>\n                    <div className=\"hb-ye7-body-in\" inert={!isOpen}>\n                      <div className=\"hb-ye7-body-pad\">\n                        <div>\n                          <p className=\"hb-ye7-desc\">{s.description}</p>\n                          <div className=\"hb-ye7-btns\">\n                            {!isDone && s.action && <button type=\"button\" className=\"hb-ye7-btn\" data-tone=\"primary\" onClick={() => setStep(s.id, true)}>{s.action}<Icon d=\"M5 12h14m-6-6 6 6-6 6\" /></button>}\n                            <button type=\"button\" className=\"hb-ye7-btn\" onClick={() => setStep(s.id, !isDone)}>{isDone ? \"Mark as not done\" : \"Mark as done\"}</button>\n                          </div>\n                        </div>\n                        <div className=\"hb-ye7-illo\"><Illustration index={i} /></div>\n                      </div>\n                    </div>\n                  </div>\n                </li>\n              );\n            })}\n          </ol>\n        </section>\n        <aside className=\"hb-ye7-side\" aria-label=\"Help\">\n          <div className=\"hb-ye7-card\" style={{ animationDelay: \".1s\" }}>\n            <div className=\"hb-ye7-card-h\">Need a hand?</div>\n            <p className=\"hb-ye7-card-p\">Most teams finish setup in one sitting.</p>\n            <button type=\"button\" className=\"hb-ye7-help\"><i><Icon d=\"M4 6h16v14H4V6Zm0 4h16M9 3v4m6-4v4\" /></i><span>Book a walkthrough<small>15 minutes with our team</small></span></button>\n            <button type=\"button\" className=\"hb-ye7-help\"><i><Icon d=\"M4 5h7v14H4V5Zm9 0h7v6h-7V5Zm0 8h7v6h-7v-6Z\" /></i><span>Browse templates<small>32 ready-made dashboards</small></span></button>\n            <button type=\"button\" className=\"hb-ye7-help\" style={{ marginBottom: 0 }}><i><Icon d=\"M7 3h7l5 5v13H7V3Zm7 0v5h5\" /></i><span>Read the guide<small>Setup in five steps</small></span></button>\n          </div>\n          <div className=\"hb-ye7-card\" style={{ animationDelay: \".18s\" }}>\n            <div className=\"hb-ye7-card-h\">Your team</div>\n            <p className=\"hb-ye7-card-p\">3 people joined, 2 invites pending.</p>\n            <div className=\"hb-ye7-team\">\n              {[[\"MO\", \"#6d4aff\"], [\"LP\", \"#2f7bff\"], [\"DR\", \"#22c08a\"]].map(([t, c]) => <span key={t} className=\"hb-ye7-av\" style={{ background: c }}>{t}</span>)}\n              <span className=\"hb-ye7-av\" data-empty=\"true\" aria-hidden=\"true\">+</span>\n            </div>\n          </div>\n        </aside>\n      </div>\n    </div>\n  );\n}\n\nexport default AppOnboardingChecklist;\n"
    }
  ]
}