{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "project-dashboard",
  "type": "registry:component",
  "title": "Project Dashboard",
  "description": "A sprint overview with a progress header, task status tiles, a burndown chart, team workload bars, a mini kanban summary and checkable upcoming deadlines.",
  "author": "Hyperblur <hello@hyperblur.dev>",
  "dependencies": [],
  "registryDependencies": [],
  "categories": [
    "dashboards",
    "dashboard",
    "project",
    "sprint",
    "burndown",
    "kanban",
    "workload"
  ],
  "docs": "https://hyperblur.dev/effects/project-dashboard",
  "files": [
    {
      "path": "registry/hyperblur/project-dashboard.tsx",
      "type": "registry:component",
      "target": "components/hyperblur/project-dashboard.tsx",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nexport type ProjectSprint = \"current\" | \"previous\";\n\nexport interface ProjectDashboardProps extends React.HTMLAttributes<HTMLDivElement> {\n  accent?: string;\n  brand?: string;\n  user?: string;\n  sprint?: ProjectSprint;\n  defaultSprint?: ProjectSprint;\n  onSprintChange?: (sprint: ProjectSprint) => void;\n}\n\nconst css = `\n.hb-dpr {\n  --a: #2f7bff;\n  container: hb-dpr / inline-size;\n  box-sizing: border-box;\n  width: 100%;\n  border: 1px solid #262626;\n  border-radius: 16px;\n  background: #0a0a0a;\n  color: #ededed;\n  font-family: inherit;\n  font-size: 13px;\n  line-height: 1.4;\n  overflow: hidden;\n  position: relative;\n  -webkit-font-smoothing: antialiased;\n}\n.hb-dpr *, .hb-dpr *::before, .hb-dpr *::after { box-sizing: border-box; }\n.hb-dpr button, .hb-dpr input, .hb-dpr select { font: inherit; color: inherit; }\n.hb-dpr button:focus-visible, .hb-dpr input:focus-visible, .hb-dpr select:focus-visible, .hb-dpr [tabindex]:focus-visible {\n  outline: 2px solid var(--a);\n  outline-offset: 2px;\n}\n.hb-dpr-app { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 640px; }\n.hb-dpr-side {\n  display: flex;\n  flex-direction: column;\n  gap: 24px;\n  min-width: 0;\n  padding: 20px 12px 16px;\n  border-right: 1px solid #1f1f1f;\n  background: #0d0d0d;\n}\n.hb-dpr-brand { display: flex; align-items: center; gap: 10px; padding: 0 8px; font-size: 14px; font-weight: 600; letter-spacing: -.01em; }\n.hb-dpr-mark {\n  display: grid;\n  place-items: center;\n  flex: none;\n  width: 24px;\n  height: 24px;\n  border-radius: 7px;\n  background: linear-gradient(135deg, var(--a), color-mix(in srgb, var(--a) 45%, #ffffff));\n  color: #ffffff;\n}\n.hb-dpr-nav { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; }\n.hb-dpr-nav-label { padding: 12px 8px 6px; color: #6b6b6b; font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }\n.hb-dpr-link {\n  display: flex;\n  align-items: center;\n  gap: 10px;\n  width: 100%;\n  height: 34px;\n  padding: 0 8px;\n  border: 0;\n  border-radius: 8px;\n  background: transparent;\n  color: #a1a1a1;\n  font-size: 13px;\n  text-align: left;\n  cursor: pointer;\n  transition: background .15s ease, color .15s ease;\n}\n.hb-dpr-link:hover { background: #161616; color: #ededed; }\n.hb-dpr-link[aria-current=\"page\"] { background: #1b1b1b; color: #ffffff; }\n.hb-dpr-link[aria-current=\"page\"] .hb-dpr-ico { color: var(--a); }\n.hb-dpr-link-n {\n  margin-left: auto;\n  padding: 1px 7px;\n  border-radius: 999px;\n  background: #1f1f1f;\n  color: #a1a1a1;\n  font-size: 11px;\n  font-variant-numeric: tabular-nums;\n}\n.hb-dpr-side-foot { margin-top: auto; }\n.hb-dpr-main { display: flex; flex-direction: column; min-width: 0; }\n.hb-dpr-top { display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 24px; border-bottom: 1px solid #1f1f1f; }\n.hb-dpr-crumb { min-width: 0; overflow: hidden; color: #8f8f8f; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }\n.hb-dpr-crumb strong { color: #ededed; font-weight: 500; }\n.hb-dpr-search { position: relative; width: 260px; margin-left: auto; color: #6b6b6b; }\n.hb-dpr-search .hb-dpr-ico { position: absolute; top: 50%; left: 10px; width: 15px; height: 15px; transform: translateY(-50%); pointer-events: none; }\n.hb-dpr-search input {\n  width: 100%;\n  height: 34px;\n  padding: 0 40px 0 32px;\n  border: 1px solid #242424;\n  border-radius: 8px;\n  background: #111111;\n  color: #ededed;\n  font-size: 13px;\n  transition: border-color .15s ease, background .15s ease;\n}\n.hb-dpr-search input::placeholder { color: #6b6b6b; }\n.hb-dpr-search input:hover { border-color: #333333; }\n.hb-dpr-search input:focus-visible { border-color: var(--a); outline-offset: 0; }\n.hb-dpr-kbd {\n  position: absolute;\n  top: 50%;\n  right: 8px;\n  padding: 1px 6px;\n  border: 1px solid #2a2a2a;\n  border-radius: 5px;\n  background: #171717;\n  color: #8f8f8f;\n  font-size: 11px;\n  transform: translateY(-50%);\n  pointer-events: none;\n}\n.hb-dpr-iconbtn {\n  position: relative;\n  display: grid;\n  place-items: center;\n  flex: none;\n  width: 34px;\n  height: 34px;\n  border: 1px solid #242424;\n  border-radius: 8px;\n  background: #111111;\n  color: #a1a1a1;\n  cursor: pointer;\n  transition: background .15s ease, color .15s ease, border-color .15s ease;\n}\n.hb-dpr-iconbtn:hover { border-color: #333333; background: #171717; color: #ededed; }\n.hb-dpr-dot { position: absolute; top: 8px; right: 9px; width: 7px; height: 7px; border: 2px solid #111111; border-radius: 50%; background: var(--a); box-sizing: content-box; margin: -2px; }\n.hb-dpr-av {\n  display: grid;\n  place-items: center;\n  flex: none;\n  width: 28px;\n  height: 28px;\n  border-radius: 50%;\n  color: #ffffff;\n  font-size: 11px;\n  font-weight: 600;\n  letter-spacing: .01em;\n}\n.hb-dpr-content { display: flex; flex-direction: column; gap: 20px; min-width: 0; padding: 24px; }\n.hb-dpr-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }\n.hb-dpr-title { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }\n.hb-dpr-sub { margin: 4px 0 0; color: #8f8f8f; font-size: 13px; }\n.hb-dpr-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }\n.hb-dpr-card {\n  min-width: 0;\n  padding: 16px;\n  border: 1px solid #232323;\n  border-radius: 12px;\n  background: #111111;\n  animation: hb-dpr-rise .55s cubic-bezier(.2, .7, .2, 1) both;\n  animation-delay: calc(var(--d, 0) * 60ms);\n}\n.hb-dpr-card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }\n.hb-dpr-card-t { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: -.005em; }\n.hb-dpr-card-s { margin: 2px 0 0; color: #8f8f8f; font-size: 12px; }\n.hb-dpr-seg { display: inline-flex; padding: 2px; border: 1px solid #262626; border-radius: 8px; background: #0d0d0d; }\n.hb-dpr-seg button {\n  height: 26px;\n  padding: 0 10px;\n  border: 0;\n  border-radius: 6px;\n  background: transparent;\n  color: #8f8f8f;\n  font-size: 12px;\n  font-weight: 500;\n  cursor: pointer;\n  transition: background .15s ease, color .15s ease;\n}\n.hb-dpr-seg button:hover { color: #ededed; }\n.hb-dpr-seg button[aria-pressed=\"true\"] { background: #232323; color: #ffffff; }\n.hb-dpr-btn {\n  display: inline-flex;\n  align-items: center;\n  justify-content: center;\n  gap: 6px;\n  height: 32px;\n  padding: 0 12px;\n  border: 1px solid #2a2a2a;\n  border-radius: 8px;\n  background: #151515;\n  color: #ededed;\n  font-size: 12.5px;\n  font-weight: 500;\n  white-space: nowrap;\n  cursor: pointer;\n  transition: background .15s ease, border-color .15s ease, transform .15s ease;\n}\n.hb-dpr-btn:hover { border-color: #3a3a3a; background: #1c1c1c; }\n.hb-dpr-btn:active { transform: translateY(1px); }\n.hb-dpr-btn[data-p=\"true\"] { border-color: var(--a); background: var(--a); color: #ffffff; }\n.hb-dpr-btn[data-p=\"true\"]:hover { background: color-mix(in srgb, var(--a) 85%, #ffffff); }\n.hb-dpr-btn .hb-dpr-ico { width: 14px; height: 14px; }\n.hb-dpr-ico { display: block; flex: none; width: 16px; height: 16px; }\n.hb-dpr-pill {\n  display: inline-flex;\n  align-items: center;\n  gap: 3px;\n  height: 20px;\n  padding: 0 7px;\n  border-radius: 999px;\n  font-size: 11px;\n  font-weight: 600;\n  font-variant-numeric: tabular-nums;\n  white-space: nowrap;\n}\n.hb-dpr-pill .hb-dpr-ico { width: 11px; height: 11px; stroke-width: 2.4; }\n.hb-dpr-pill[data-t=\"up\"] { background: rgba(74, 222, 128, .12); color: #4ade80; }\n.hb-dpr-pill[data-t=\"down\"] { background: rgba(248, 113, 113, .12); color: #f87171; }\n.hb-dpr-pill[data-t=\"flat\"] { background: #1f1f1f; color: #a1a1a1; }\n.hb-dpr-spark { display: block; width: 100%; height: 36px; color: var(--a); animation: hb-dpr-wipe .9s .15s cubic-bezier(.3, .7, .2, 1) both; }\n.hb-dpr-spark-l { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }\n.hb-dpr-tt {\n  position: absolute;\n  z-index: 3;\n  padding: 7px 10px;\n  border: 1px solid #2c2c2c;\n  border-radius: 8px;\n  background: rgba(22, 22, 22, .96);\n  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, .7);\n  color: #ededed;\n  font-size: 12px;\n  line-height: 1.5;\n  white-space: nowrap;\n  pointer-events: none;\n}\n.hb-dpr-tt b { font-weight: 600; font-variant-numeric: tabular-nums; }\n.hb-dpr-tt-d { color: #8f8f8f; font-size: 11px; }\n@keyframes hb-dpr-rise { from { opacity: 0; transform: translate3d(0, 8px, 0); } to { opacity: 1; transform: none; } }\n@keyframes hb-dpr-wipe { from { clip-path: inset(-6px 100% -6px -6px); } to { clip-path: inset(-6px -6px -6px -6px); } }\n@keyframes hb-dpr-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }\n@keyframes hb-dpr-fade { from { opacity: 0; } to { opacity: 1; } }\n@keyframes hb-dpr-pulse { 0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .55); } 100% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); } }\n@keyframes hb-dpr-arc { from { stroke-dasharray: 0 100; } }\n@container hb-dpr (max-width: 759px) {\n  .hb-dpr-app { grid-template-columns: minmax(0, 1fr); min-height: 0; }\n  .hb-dpr-side { flex-direction: row; align-items: center; gap: 8px; padding: 10px 12px; border-right: 0; border-bottom: 1px solid #1f1f1f; overflow-x: auto; }\n  .hb-dpr-brand { padding: 0; }\n  .hb-dpr-brand span:last-child, .hb-dpr-nav-label, .hb-dpr-link-t, .hb-dpr-link-n, .hb-dpr-side-foot, .hb-dpr-kbd { display: none; }\n  .hb-dpr-nav { flex-direction: row; flex: 1; gap: 4px; }\n  .hb-dpr-link { justify-content: center; width: 36px; padding: 0; }\n  .hb-dpr-top { gap: 8px; padding: 0 16px; }\n  .hb-dpr-crumb { display: none; }\n  .hb-dpr-search { flex: 1; width: auto; margin-left: 0; }\n  .hb-dpr-content { gap: 16px; padding: 16px; }\n  .hb-dpr-title { font-size: 19px; }\n}\n@media (prefers-reduced-motion: reduce) {\n  .hb-dpr *, .hb-dpr *::before, .hb-dpr *::after { animation: none !important; transition: none !important; }\n}\n.hb-dpr-proj { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid #232323; border-radius: 10px; background: #111111; }\n.hb-dpr-proj b { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 8px; background: color-mix(in srgb, var(--a) 18%, transparent); color: var(--a); font-size: 10.5px; font-weight: 600; letter-spacing: .02em; }\n.hb-dpr-proj strong { display: block; font-size: 12.5px; font-weight: 500; }\n.hb-dpr-proj span { color: #8f8f8f; font-size: 11.5px; }\n.hb-dpr-prog { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 28px; }\n.hb-dpr-prog-p { margin: 0; font-size: 36px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.04em; line-height: 1; }\n.hb-dpr-prog-l { margin-top: 6px; color: #8f8f8f; font-size: 12px; white-space: nowrap; }\n.hb-dpr-prog-bar { position: relative; height: 10px; border-radius: 999px; background: #1b1b1b; }\n.hb-dpr-prog-bar i {\n  display: block;\n  width: var(--w);\n  height: 100%;\n  border-radius: 999px;\n  background: linear-gradient(90deg, color-mix(in srgb, var(--a) 55%, #000000), var(--a));\n  box-shadow: 0 0 14px -2px color-mix(in srgb, var(--a) 70%, transparent);\n  transform-origin: left;\n  animation: hb-dpr-bar 1s cubic-bezier(.3, .7, .2, 1) both;\n}\n.hb-dpr-prog-bar b { position: absolute; top: -4px; bottom: -4px; left: var(--ideal); width: 2px; margin-left: -1px; border-radius: 1px; background: #ededed; }\n.hb-dpr-prog-m { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; color: #8f8f8f; font-size: 12px; }\n.hb-dpr-prog-r { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }\n.hb-dpr-faces { display: flex; }\n.hb-dpr-faces .hb-dpr-av { width: 30px; height: 30px; margin-left: -8px; border: 2px solid #111111; }\n.hb-dpr-faces .hb-dpr-av:first-child { margin-left: 0; }\n.hb-dpr-chip {\n  display: inline-flex;\n  align-items: center;\n  gap: 5px;\n  height: 22px;\n  padding: 0 8px;\n  border-radius: 6px;\n  background: #1c1c1c;\n  color: #cfcfcf;\n  font-size: 11.5px;\n  font-weight: 500;\n  white-space: nowrap;\n}\n.hb-dpr-chip .hb-dpr-ico { width: 12px; height: 12px; }\n.hb-dpr-chip[data-t=\"amber\"] { background: rgba(251, 191, 36, .12); color: #fbbf24; }\n.hb-dpr-chip[data-t=\"blue\"] { background: color-mix(in srgb, var(--a) 16%, transparent); color: color-mix(in srgb, var(--a) 60%, #ffffff); }\n.hb-dpr-chip[data-t=\"red\"] { background: rgba(248, 113, 113, .12); color: #f87171; }\n.hb-dpr-chip[data-t=\"green\"] { background: rgba(74, 222, 128, .12); color: #4ade80; }\n.hb-dpr-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }\n.hb-dpr-tile { display: flex; flex-direction: column; gap: 12px; }\n.hb-dpr-tile-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #8f8f8f; font-size: 12px; }\n.hb-dpr-tile-top span { display: flex; align-items: center; gap: 8px; }\n.hb-dpr-tile-top i { width: 8px; height: 8px; border-radius: 50%; background: var(--k); box-shadow: 0 0 10px -1px var(--k); }\n.hb-dpr-tile-v { margin: 0; font-size: 28px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.03em; line-height: 1; }\n.hb-dpr-tile-v small { margin-left: 6px; color: #6b6b6b; font-size: 12px; font-weight: 400; letter-spacing: 0; }\n.hb-dpr-tile-b { height: 4px; border-radius: 999px; background: #1b1b1b; overflow: hidden; }\n.hb-dpr-tile-b i { display: block; width: var(--w); height: 100%; border-radius: 999px; background: var(--k); transform-origin: left; animation: hb-dpr-bar .9s cubic-bezier(.3, .7, .2, 1) both; }\n.hb-dpr-row { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 16px; }\n.hb-dpr-legend-k { display: flex; align-items: center; gap: 14px; color: #8f8f8f; font-size: 12px; }\n.hb-dpr-legend-k span { display: inline-flex; align-items: center; gap: 6px; }\n.hb-dpr-legend-k i { width: 10px; height: 3px; border-radius: 2px; background: var(--a); }\n.hb-dpr-legend-k i[data-prev=\"true\"] { background: repeating-linear-gradient(90deg, #6b6b6b 0 3px, transparent 3px 6px); }\n.hb-dpr-chart { display: grid; grid-template-columns: 30px minmax(0, 1fr); grid-template-rows: 230px auto; column-gap: 8px; }\n.hb-dpr-yl { position: relative; }\n.hb-dpr-yl span { position: absolute; right: 0; color: #6b6b6b; font-size: 11px; font-variant-numeric: tabular-nums; transform: translateY(50%); }\n.hb-dpr-plot { position: relative; cursor: crosshair; touch-action: pan-y; }\n.hb-dpr-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; animation: hb-dpr-wipe 1.1s cubic-bezier(.3, .7, .2, 1) both; }\n.hb-dpr-gl { stroke: #1d1d1d; stroke-width: 1; vector-effect: non-scaling-stroke; }\n.hb-dpr-line { fill: none; stroke: var(--a); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }\n.hb-dpr-prev { fill: none; stroke: #5a5a5a; stroke-width: 1.5; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }\n.hb-dpr-today { position: absolute; top: 0; bottom: 0; border-left: 1px dashed #4a4a4a; pointer-events: none; }\n.hb-dpr-today span { position: absolute; top: -2px; left: 6px; padding: 1px 6px; border-radius: 5px; background: #1b1b1b; color: #a1a1a1; font-size: 10.5px; }\n.hb-dpr-hl { position: absolute; top: 0; bottom: 0; width: 1px; background: #3a3a3a; pointer-events: none; }\n.hb-dpr-hd { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border: 2px solid var(--a); border-radius: 50%; background: #0a0a0a; pointer-events: none; }\n.hb-dpr-xl { grid-column: 2; display: flex; justify-content: space-between; padding-top: 10px; color: #6b6b6b; font-size: 11px; }\n.hb-dpr-work { display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 0; list-style: none; }\n.hb-dpr-work li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 12px; }\n.hb-dpr-work-n { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; font-size: 12.5px; font-weight: 500; }\n.hb-dpr-work-n span { color: #8f8f8f; font-weight: 400; font-variant-numeric: tabular-nums; }\n.hb-dpr-work-b { height: 6px; border-radius: 999px; background: #1b1b1b; overflow: hidden; }\n.hb-dpr-work-b i { display: block; width: var(--w); height: 100%; border-radius: 999px; background: var(--c); transform-origin: left; animation: hb-dpr-bar .9s cubic-bezier(.3, .7, .2, 1) both; animation-delay: calc(var(--i) * 70ms); }\n.hb-dpr-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }\n.hb-dpr-colm { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 8px; border: 1px solid #1d1d1d; border-radius: 10px; background: #0d0d0d; }\n.hb-dpr-colm-h { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 6px; font-size: 12.5px; font-weight: 500; }\n.hb-dpr-colm-h span { display: flex; align-items: center; gap: 8px; }\n.hb-dpr-colm-h i { width: 8px; height: 8px; border-radius: 50%; background: var(--k); }\n.hb-dpr-colm-h em { padding: 1px 8px; border-radius: 999px; background: #1b1b1b; color: #a1a1a1; font-size: 11px; font-style: normal; font-variant-numeric: tabular-nums; }\n.hb-dpr-task { display: flex; flex-direction: column; gap: 10px; padding: 10px 12px; border: 1px solid #232323; border-radius: 8px; background: #141414; transition: border-color .15s ease, transform .15s ease; }\n.hb-dpr-task:hover { border-color: #3a3a3a; transform: translate3d(0, -1px, 0); }\n.hb-dpr-task p { margin: 0; font-size: 12.5px; font-weight: 500; line-height: 1.4; }\n.hb-dpr-task-f { display: flex; align-items: center; justify-content: space-between; gap: 8px; }\n.hb-dpr-tag { padding: 1px 7px; border-radius: 5px; background: color-mix(in srgb, var(--c) 15%, transparent); color: var(--c); font-size: 11px; font-weight: 500; }\n.hb-dpr-pts { display: inline-flex; align-items: center; gap: 6px; color: #8f8f8f; font-size: 11.5px; font-variant-numeric: tabular-nums; }\n.hb-dpr-pts .hb-dpr-av { width: 20px; height: 20px; font-size: 8.5px; }\n.hb-dpr-due { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }\n.hb-dpr-dl {\n  display: flex;\n  align-items: flex-start;\n  gap: 12px;\n  width: 100%;\n  height: 100%;\n  padding: 12px;\n  border: 1px solid #232323;\n  border-radius: 10px;\n  background: #141414;\n  text-align: left;\n  cursor: pointer;\n  transition: border-color .15s ease, opacity .2s ease;\n}\n.hb-dpr-dl:hover { border-color: #3a3a3a; }\n.hb-dpr-dl-d { display: flex; flex: none; flex-direction: column; align-items: center; justify-content: center; width: 40px; height: 46px; border-radius: 8px; background: #1b1b1b; }\n.hb-dpr-dl-d small { color: #8f8f8f; font-size: 10px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }\n.hb-dpr-dl-d b { font-size: 17px; font-weight: 600; line-height: 1.1; }\n.hb-dpr-dl-x { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }\n.hb-dpr-dl-x strong { font-size: 12.5px; font-weight: 500; line-height: 1.35; }\n.hb-dpr-dl-x span { color: #8f8f8f; font-size: 11.5px; }\n.hb-dpr-dl[aria-pressed=\"true\"] { opacity: .5; }\n.hb-dpr-dl[aria-pressed=\"true\"] strong { text-decoration: line-through; }\n.hb-dpr-dl-k { margin-left: auto; display: grid; place-items: center; flex: none; width: 18px; height: 18px; border: 1.5px solid #3a3a3a; border-radius: 50%; color: transparent; transition: background .15s ease, border-color .15s ease, color .15s ease; }\n.hb-dpr-dl-k .hb-dpr-ico { width: 11px; height: 11px; stroke-width: 3; }\n.hb-dpr-dl[aria-pressed=\"true\"] .hb-dpr-dl-k { border-color: #4ade80; background: #4ade80; color: #0a0a0a; }\n@keyframes hb-dpr-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }\n@container hb-dpr (max-width: 959px) {\n  .hb-dpr-tiles, .hb-dpr-board, .hb-dpr-due { grid-template-columns: repeat(2, minmax(0, 1fr)); }\n  .hb-dpr-row { grid-template-columns: minmax(0, 1fr); }\n  .hb-dpr-prog { grid-template-columns: minmax(0, 1fr); gap: 16px; }\n  .hb-dpr-prog-r { align-items: flex-start; flex-direction: row; flex-wrap: wrap; }\n}\n@container hb-dpr (max-width: 539px) {\n  .hb-dpr-board, .hb-dpr-due { grid-template-columns: minmax(0, 1fr); }\n  .hb-dpr-tile-v { font-size: 24px; }\n}\n`;\n\ntype Pt = [number, number];\n\nfunction smooth(pts: Pt[]) {\n  let d = `M${pts[0][0].toFixed(1)} ${pts[0][1].toFixed(1)}`;\n  for (let i = 0; i < pts.length - 1; i++) {\n    const p0 = pts[i - 1] ?? pts[i];\n    const p1 = pts[i];\n    const p2 = pts[i + 1];\n    const p3 = pts[i + 2] ?? p2;\n    const c1x = p1[0] + (p2[0] - p0[0]) / 6;\n    const c1y = p1[1] + (p2[1] - p0[1]) / 6;\n    const c2x = p2[0] - (p3[0] - p1[0]) / 6;\n    const c2y = p2[1] - (p3[1] - p1[1]) / 6;\n    d += `C${c1x.toFixed(1)} ${c1y.toFixed(1)} ${c2x.toFixed(1)} ${c2y.toFixed(1)} ${p2[0].toFixed(1)} ${p2[1].toFixed(1)}`;\n  }\n  return d;\n}\n\nfunction project(values: number[], w: number, h: number, padY: number, lo?: number, hi?: number): Pt[] {\n  const min = lo ?? Math.min(...values);\n  const max = hi ?? Math.max(...values);\n  const span = max - min || 1;\n  return values.map((v, i) => [\n    values.length === 1 ? w / 2 : (i / (values.length - 1)) * w,\n    padY + (1 - (v - min) / span) * (h - padY * 2),\n  ]);\n}\n\nfunction tone(name: string) {\n  let h = 0;\n  for (let i = 0; i < name.length; i++) h = (h * 31 + name.charCodeAt(i)) >>> 0;\n  const hue = h % 360;\n  return `linear-gradient(135deg, hsl(${hue} 62% 52%), hsl(${(hue + 48) % 360} 62% 36%))`;\n}\n\nfunction initials(name: string) {\n  return name\n    .split(\" \")\n    .map((w) => w[0])\n    .slice(0, 2)\n    .join(\"\")\n    .toUpperCase();\n}\n\nconst icons: Record<string, string[]> = {\n  grid: [\"M3 3h7v7H3zM14 3h7v7h-7zM14 14h7v7h-7zM3 14h7v7H3z\"],\n  bars: [\"M18 20V10M12 20V4M6 20v-6\"],\n  users: [\"M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2\", \"M9 3a4 4 0 1 0 0 8 4 4 0 0 0 0-8z\", \"M23 21v-2a4 4 0 0 0-3-3.87M16 3.13a4 4 0 0 1 0 7.75\"],\n  bell: [\"M18 8a6 6 0 0 0-12 0c0 7-3 9-3 9h18s-3-2-3-9\", \"M13.7 21a2 2 0 0 1-3.4 0\"],\n  search: [\"M11 3a8 8 0 1 0 0 16 8 8 0 0 0 0-16z\", \"M21 21l-4.3-4.3\"],\n  check: [\"M5 12.5l4.5 4.5L19 7.5\"],\n  board: [\"M4 4h4v16H4zM10 4h4v10h-4zM16 4h4v13h-4z\"],\n  up: [\"M12 19V5M5 12l7-7 7 7\"],\n  down: [\"M12 5v14M19 12l-7 7-7-7\"],\n  chevr: [\"M9 6l6 6-6 6\"],\n  clock: [\"M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18z\", \"M12 7v5l3 2\"],\n  plus: [\"M12 5v14M5 12h14\"],\n  flag: [\"M4 22V4\", \"M4 4h13l-2 4 2 4H4\"],\n  stack: [\"M12 2l10 5-10 5L2 7z\", \"M2 12l10 5 10-5\", \"M2 17l10 5 10-5\"],\n  repeat: [\"M17 2l4 4-4 4\", \"M3 11V9a3 3 0 0 1 3-3h15\", \"M7 22l-4-4 4-4\", \"M21 13v2a3 3 0 0 1-3 3H3\"],\n};\n\nfunction Ico({ n }: { n: string }) {\n  return (\n    <svg className=\"hb-dpr-ico\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"1.8\" strokeLinecap=\"round\" strokeLinejoin=\"round\" aria-hidden=\"true\">\n      {(icons[n] ?? []).map((d, i) => (\n        <path key={i} d={d} />\n      ))}\n    </svg>\n  );\n}\n\nfunction Delta({ value, good = true, suffix = \"%\" }: { value: number; good?: boolean; suffix?: string }) {\n  const up = value >= 0;\n  const t = value === 0 ? \"flat\" : up === good ? \"up\" : \"down\";\n  return (\n    <span className=\"hb-dpr-pill\" data-t={t}>\n      <Ico n={up ? \"up\" : \"down\"} />\n      {Math.abs(value).toFixed(1)}\n      {suffix}\n    </span>\n  );\n}\n\ninterface NavItem {\n  id: string;\n  label: string;\n  icon: string;\n  count?: string;\n  section?: string;\n}\nfunction Shell({\n  brand,\n  nav,\n  defaultActive,\n  crumb,\n  placeholder,\n  user,\n  foot,\n  children,\n}: {\n  brand: string;\n  nav: NavItem[];\n  defaultActive: string;\n  crumb: [string, string];\n  placeholder: string;\n  user: string;\n  foot?: React.ReactNode;\n  children: React.ReactNode;\n}) {\n  const [active, setActive] = React.useState(defaultActive);\n  return (\n    <div className=\"hb-dpr-app\">\n      <aside className=\"hb-dpr-side\">\n        <div className=\"hb-dpr-brand\">\n          <span className=\"hb-dpr-mark\" aria-hidden=\"true\">\n            <svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"2.6\" strokeLinecap=\"round\" strokeLinejoin=\"round\">\n              <path d=\"M4 18L10 6l4 8 2-4 4 8\" />\n            </svg>\n          </span>\n          <span>{brand}</span>\n        </div>\n        <nav aria-label=\"Main\">\n          <ul className=\"hb-dpr-nav\">\n            {nav.map((item) => (\n              <React.Fragment key={item.id}>\n                {item.section ? (\n                  <li className=\"hb-dpr-nav-label\" aria-hidden=\"true\">\n                    {item.section}\n                  </li>\n                ) : null}\n                <li>\n                  <button type=\"button\" className=\"hb-dpr-link\" aria-current={active === item.id ? \"page\" : undefined} aria-label={item.label} onClick={() => setActive(item.id)}>\n                    <Ico n={item.icon} />\n                    <span className=\"hb-dpr-link-t\">{item.label}</span>\n                    {item.count ? <span className=\"hb-dpr-link-n\">{item.count}</span> : null}\n                  </button>\n                </li>\n              </React.Fragment>\n            ))}\n          </ul>\n        </nav>\n        {foot ? <div className=\"hb-dpr-side-foot\">{foot}</div> : null}\n      </aside>\n      <div className=\"hb-dpr-main\">\n        <header className=\"hb-dpr-top\">\n          <div className=\"hb-dpr-crumb\">\n            {crumb[0]} / <strong>{crumb[1]}</strong>\n          </div>\n          <label className=\"hb-dpr-search\">\n            <Ico n=\"search\" />\n            <input type=\"search\" placeholder={placeholder} aria-label={placeholder} />\n            <span className=\"hb-dpr-kbd\">/</span>\n          </label>\n          <button type=\"button\" className=\"hb-dpr-iconbtn\" aria-label=\"Notifications\">\n            <Ico n=\"bell\" />\n            <span className=\"hb-dpr-dot\" />\n          </button>\n          <span className=\"hb-dpr-av\" style={{ background: tone(user), width: 34, height: 34 }} title={user}>\n            {initials(user)}\n          </span>\n        </header>\n        <div className=\"hb-dpr-content\">{children}</div>\n      </div>\n    </div>\n  );\n}\n\nconst SPRINT_KEYS: ProjectSprint[] = [\"current\", \"previous\"];\nconst SPRINT_LABEL: Record<ProjectSprint, string> = { current: \"This sprint\", previous: \"Last sprint\" };\nconst DAY_LABELS = [\"Start\", \"Oct 21\", \"Oct 22\", \"Oct 23\", \"Oct 26\", \"Oct 27\", \"Oct 28\", \"Oct 29\", \"Oct 30\", \"Nov 2\", \"Nov 3\"];\nconst LABEL_AT = [0, 2, 4, 6, 8, 10];\n\ninterface Task {\n  title: string;\n  tag: string;\n  color: string;\n  points: number;\n  who: string;\n}\n\ninterface SprintData {\n  name: string;\n  goal: string;\n  range: string;\n  left: string;\n  total: number;\n  actual: number[];\n  tiles: [number, number, number, number];\n  deltas: [number, number, number, number];\n  cols: [number, number, number, number];\n  cards: [Task[], Task[], Task[], Task[]];\n  team: { name: string; tasks: number; cap: number }[];\n}\n\nconst BLUE = \"#7fb3ff\";\nconst VIOLET = \"#a78bfa\";\nconst AMBER = \"#fbbf24\";\nconst TEAL = \"#34d399\";\nconst ROSE = \"#fb7185\";\n\nconst SPRINTS: Record<ProjectSprint, SprintData> = {\n  current: {\n    name: \"Sprint 24\",\n    goal: \"Checkout redesign\",\n    range: \"Oct 21 – Nov 3\",\n    left: \"4 days left\",\n    total: 58,\n    actual: [58, 57, 53, 49, 44, 36, 28],\n    tiles: [28, 11, 6, 3],\n    deltas: [12, 3, 8, -40],\n    cols: [9, 11, 6, 28],\n    cards: [\n      [\n        { title: \"Add Apple Pay to express checkout\", tag: \"Feature\", color: BLUE, points: 5, who: \"Maya Reyes\" },\n        { title: \"Audit cart empty states\", tag: \"Design\", color: VIOLET, points: 2, who: \"Sara Haddad\" },\n      ],\n      [\n        { title: \"Rebuild shipping step form\", tag: \"Frontend\", color: TEAL, points: 8, who: \"Jonas Weber\" },\n        { title: \"Fix address autocomplete lag\", tag: \"Bug\", color: ROSE, points: 3, who: \"Aiko Tanaka\" },\n      ],\n      [\n        { title: \"Sticky order summary sidebar\", tag: \"Frontend\", color: TEAL, points: 5, who: \"Leo Park\" },\n        { title: \"Tax calculation edge cases\", tag: \"Backend\", color: AMBER, points: 5, who: \"Maya Reyes\" },\n      ],\n      [\n        { title: \"Promo code field redesign\", tag: \"Design\", color: VIOLET, points: 3, who: \"Sara Haddad\" },\n        { title: \"Guest checkout flow\", tag: \"Feature\", color: BLUE, points: 8, who: \"Jonas Weber\" },\n      ],\n    ],\n    team: [\n      { name: \"Maya Reyes\", tasks: 9, cap: 8 },\n      { name: \"Jonas Weber\", tasks: 7, cap: 8 },\n      { name: \"Aiko Tanaka\", tasks: 8, cap: 8 },\n      { name: \"Leo Park\", tasks: 5, cap: 8 },\n      { name: \"Sara Haddad\", tasks: 6, cap: 8 },\n    ],\n  },\n  previous: {\n    name: \"Sprint 23\",\n    goal: \"Onboarding revamp\",\n    range: \"Oct 7 – Oct 20\",\n    left: \"Completed\",\n    total: 54,\n    actual: [54, 54, 50, 47, 45, 39, 34, 28, 19, 9, 0],\n    tiles: [41, 2, 1, 0],\n    deltas: [6, 4, 0, 0],\n    cols: [0, 2, 1, 41],\n    cards: [\n      [\n        { title: \"Carry over: usage emails\", tag: \"Backend\", color: AMBER, points: 3, who: \"Leo Park\" },\n        { title: \"Carry over: tour tooltips\", tag: \"Design\", color: VIOLET, points: 2, who: \"Sara Haddad\" },\n      ],\n      [\n        { title: \"Invite teammates modal\", tag: \"Frontend\", color: TEAL, points: 5, who: \"Jonas Weber\" },\n        { title: \"Checklist progress API\", tag: \"Backend\", color: AMBER, points: 3, who: \"Maya Reyes\" },\n      ],\n      [\n        { title: \"Welcome survey step\", tag: \"Feature\", color: BLUE, points: 3, who: \"Aiko Tanaka\" },\n        { title: \"Role picker copy pass\", tag: \"Design\", color: VIOLET, points: 1, who: \"Sara Haddad\" },\n      ],\n      [\n        { title: \"Workspace setup wizard\", tag: \"Feature\", color: BLUE, points: 8, who: \"Maya Reyes\" },\n        { title: \"Fix signup redirect loop\", tag: \"Bug\", color: ROSE, points: 2, who: \"Leo Park\" },\n      ],\n    ],\n    team: [\n      { name: \"Maya Reyes\", tasks: 8, cap: 8 },\n      { name: \"Jonas Weber\", tasks: 10, cap: 8 },\n      { name: \"Aiko Tanaka\", tasks: 7, cap: 8 },\n      { name: \"Leo Park\", tasks: 7, cap: 8 },\n      { name: \"Sara Haddad\", tasks: 8, cap: 8 },\n    ],\n  },\n};\n\nconst TILE_DEFS = [\n  { label: \"Done\", color: \"#4ade80\", good: true },\n  { label: \"In progress\", color: \"var(--a)\", good: true },\n  { label: \"In review\", color: \"#a78bfa\", good: true },\n  { label: \"Blocked\", color: \"#f87171\", good: false },\n];\n\nconst COLUMN_DEFS = [\n  { label: \"To do\", color: \"#6b6b6b\" },\n  { label: \"In progress\", color: \"var(--a)\" },\n  { label: \"In review\", color: \"#a78bfa\" },\n  { label: \"Done\", color: \"#4ade80\" },\n];\n\nconst DEADLINES = [\n  { id: 1, month: \"Oct\", day: \"30\", title: \"Payment provider sign-off\", who: \"Jonas Weber\", due: \"In 2 days\", tone: \"amber\" },\n  { id: 2, month: \"Nov\", day: \"3\", title: \"Sprint review demo\", who: \"Maya Reyes\", due: \"In 6 days\", tone: \"blue\" },\n  { id: 3, month: \"Nov\", day: \"5\", title: \"Accessibility audit report\", who: \"Aiko Tanaka\", due: \"In 8 days\", tone: \"flat\" },\n  { id: 4, month: \"Nov\", day: \"9\", title: \"Release 2.8 candidate\", who: \"Leo Park\", due: \"In 12 days\", tone: \"flat\" },\n];\n\nconst NAV: NavItem[] = [\n  { id: \"overview\", label: \"Overview\", icon: \"grid\", section: \"Project\" },\n  { id: \"board\", label: \"Board\", icon: \"board\", count: \"48\" },\n  { id: \"sprints\", label: \"Sprints\", icon: \"repeat\" },\n  { id: \"backlog\", label: \"Backlog\", icon: \"stack\" },\n  { id: \"roadmap\", label: \"Roadmap\", icon: \"flag\", section: \"Plan\" },\n  { id: \"team\", label: \"Team\", icon: \"users\" },\n  { id: \"reports\", label: \"Reports\", icon: \"bars\" },\n];\n\nexport function ProjectDashboard({\n  accent = \"#2f7bff\",\n  brand = \"Cadence\",\n  user = \"Maya Reyes\",\n  sprint,\n  defaultSprint = \"current\",\n  onSprintChange,\n  className = \"\",\n  style,\n  ...rest\n}: ProjectDashboardProps) {\n  const uid = React.useId().replace(/:/g, \"\");\n  const [inner, setInner] = React.useState<ProjectSprint>(defaultSprint);\n  const [hover, setHover] = React.useState<number | null>(null);\n  const [done, setDone] = React.useState<number[]>([]);\n  const current = sprint ?? inner;\n  const data = SPRINTS[current];\n  const last = data.actual.length - 1;\n  const live = last < 10;\n  const remaining = data.actual[last];\n  const finished = data.total - remaining;\n  const percent = (finished / data.total) * 100;\n  const ideal = Array.from({ length: 11 }, (_, i) => data.total * (1 - i / 10));\n  const top = Math.ceil(data.total / 20) * 20;\n  const gridCount = top / 20;\n  const idealPts = project(ideal, 100, 100, 0, 0, top);\n  const actualPts = project(data.actual, 100, 100, 0, 0, top).map(([, y], i): Pt => [i * 10, y]);\n  const line = smooth(actualPts);\n  const pace = remaining - ideal[last];\n  const idealDone = ((data.total - ideal[last]) / data.total) * 100;\n  const taskTotal = data.tiles.reduce((t, v) => t + v, 0);\n\n  const pick = (s: ProjectSprint) => {\n    setInner(s);\n    setHover(null);\n    onSprintChange?.(s);\n  };\n\n  const moveTo = (e: React.PointerEvent<HTMLDivElement>) => {\n    const r = e.currentTarget.getBoundingClientRect();\n    setHover(Math.max(0, Math.min(10, Math.round(((e.clientX - r.left) / r.width) * 10))));\n  };\n\n  const keyMove = (e: React.KeyboardEvent<HTMLDivElement>) => {\n    if (e.key === \"ArrowRight\") setHover((h) => Math.min(10, (h ?? -1) + 1));\n    else if (e.key === \"ArrowLeft\") setHover((h) => Math.max(0, (h ?? 11) - 1));\n    else if (e.key === \"Escape\") setHover(null);\n    else return;\n    e.preventDefault();\n  };\n\n  const toggle = (id: number) => setDone((d) => (d.includes(id) ? d.filter((x) => x !== id) : [...d, id]));\n  const vars = { \"--a\": accent, ...style } as React.CSSProperties;\n  const hx = hover === null ? 0 : hover * 10;\n\n  return (\n    <div className={`hb-dpr ${className}`} style={vars} {...rest}>\n      <style href=\"hb-project-dashboard\" precedence=\"default\">\n        {css}\n      </style>\n      <Shell\n        brand={brand}\n        nav={NAV}\n        defaultActive=\"overview\"\n        crumb={[\"Checkout v2\", \"Overview\"]}\n        placeholder=\"Search tasks\"\n        user={user}\n        foot={\n          <div className=\"hb-dpr-proj\">\n            <b>CHK</b>\n            <div>\n              <strong>Checkout v2</strong>\n              <span>5 members</span>\n            </div>\n          </div>\n        }\n      >\n        <div className=\"hb-dpr-head\">\n          <div>\n            <h2 className=\"hb-dpr-title\">{data.goal}</h2>\n            <p className=\"hb-dpr-sub\">\n              {data.name} · {data.range}\n            </p>\n          </div>\n          <div className=\"hb-dpr-tools\">\n            <div className=\"hb-dpr-seg\" role=\"group\" aria-label=\"Sprint\">\n              {SPRINT_KEYS.map((s) => (\n                <button key={s} type=\"button\" aria-pressed={current === s} onClick={() => pick(s)}>\n                  {SPRINT_LABEL[s]}\n                </button>\n              ))}\n            </div>\n            <button type=\"button\" className=\"hb-dpr-btn\" data-p=\"true\">\n              <Ico n=\"plus\" />\n              New task\n            </button>\n          </div>\n        </div>\n\n        <div className=\"hb-dpr-card hb-dpr-prog\" style={{ \"--d\": 0 } as React.CSSProperties}>\n          <div>\n            <p className=\"hb-dpr-prog-p\">{percent.toFixed(0)}%</p>\n            <div className=\"hb-dpr-prog-l\">\n              {finished} of {data.total} points done\n            </div>\n          </div>\n          <div>\n            <div className=\"hb-dpr-prog-bar\" role=\"progressbar\" aria-valuenow={Math.round(percent)} aria-valuemin={0} aria-valuemax={100} aria-label=\"Sprint progress\">\n              <i key={current} style={{ \"--w\": `${percent.toFixed(1)}%` } as React.CSSProperties} />\n              {live ? <b style={{ \"--ideal\": `${idealDone.toFixed(1)}%` } as React.CSSProperties} title=\"Ideal pace\" /> : null}\n            </div>\n            <div className=\"hb-dpr-prog-m\">\n              <span>{live ? (pace > 0 ? `${pace.toFixed(0)} points behind the ideal pace` : \"Ahead of the ideal pace\") : \"Finished with zero points left\"}</span>\n              <span>{remaining} points left</span>\n            </div>\n          </div>\n          <div className=\"hb-dpr-prog-r\">\n            <span className=\"hb-dpr-chip\" data-t={live ? \"amber\" : \"green\"}>\n              <Ico n=\"clock\" />\n              {data.left}\n            </span>\n            <div className=\"hb-dpr-faces\">\n              {data.team.map((m) => (\n                <span key={m.name} className=\"hb-dpr-av\" style={{ background: tone(m.name) }} title={m.name}>\n                  {initials(m.name)}\n                </span>\n              ))}\n            </div>\n          </div>\n        </div>\n\n        <div className=\"hb-dpr-tiles\">\n          {TILE_DEFS.map((t, i) => (\n            <div className=\"hb-dpr-card hb-dpr-tile\" key={t.label} style={{ \"--k\": t.color, \"--d\": i + 1 } as React.CSSProperties}>\n              <div className=\"hb-dpr-tile-top\">\n                <span>\n                  <i />\n                  {t.label}\n                </span>\n                <Delta value={data.deltas[i]} good={t.good} />\n              </div>\n              <p className=\"hb-dpr-tile-v\">\n                {data.tiles[i]}\n                <small>tasks</small>\n              </p>\n              <div className=\"hb-dpr-tile-b\">\n                <i key={current} style={{ \"--w\": `${((data.tiles[i] / taskTotal) * 100).toFixed(1)}%` } as React.CSSProperties} />\n              </div>\n            </div>\n          ))}\n        </div>\n\n        <div className=\"hb-dpr-row\">\n          <div className=\"hb-dpr-card\" style={{ \"--d\": 5 } as React.CSSProperties}>\n            <div className=\"hb-dpr-card-h\">\n              <div>\n                <h3 className=\"hb-dpr-card-t\">Burndown</h3>\n                <p className=\"hb-dpr-card-s\">Story points remaining</p>\n              </div>\n              <div className=\"hb-dpr-legend-k\">\n                <span>\n                  <i />\n                  Actual\n                </span>\n                <span>\n                  <i data-prev=\"true\" />\n                  Ideal\n                </span>\n              </div>\n            </div>\n            <div className=\"hb-dpr-chart\">\n              <div className=\"hb-dpr-yl\" aria-hidden=\"true\">\n                {Array.from({ length: gridCount + 1 }, (_, k) => (\n                  <span key={k} style={{ bottom: `${((k / gridCount) * 100).toFixed(2)}%` }}>\n                    {k * 20}\n                  </span>\n                ))}\n              </div>\n              <div\n                className=\"hb-dpr-plot\"\n                role=\"img\"\n                tabIndex={0}\n                aria-label={`Burndown for ${data.name}: ${remaining} of ${data.total} points remaining. Use arrow keys to inspect days.`}\n                onPointerMove={moveTo}\n                onPointerLeave={() => setHover(null)}\n                onKeyDown={keyMove}\n                onBlur={() => setHover(null)}\n              >\n                <svg key={current} viewBox=\"0 0 100 100\" preserveAspectRatio=\"none\" aria-hidden=\"true\">\n                  <defs>\n                    <linearGradient id={`${uid}a`} x1=\"0\" y1=\"0\" x2=\"0\" y2=\"1\">\n                      <stop offset=\"0\" stopColor=\"var(--a)\" stopOpacity=\".26\" />\n                      <stop offset=\"1\" stopColor=\"var(--a)\" stopOpacity=\"0\" />\n                    </linearGradient>\n                  </defs>\n                  {Array.from({ length: gridCount + 1 }, (_, k) => (\n                    <line key={k} className=\"hb-dpr-gl\" x1=\"0\" x2=\"100\" y1={(100 - (k / gridCount) * 100).toFixed(2)} y2={(100 - (k / gridCount) * 100).toFixed(2)} />\n                  ))}\n                  <path d={`${line}L${actualPts[last][0].toFixed(1)} 100L0 100Z`} fill={`url(#${uid}a)`} />\n                  <path className=\"hb-dpr-prev\" d={`M${idealPts[0][0].toFixed(1)} ${idealPts[0][1].toFixed(1)}L${idealPts[10][0].toFixed(1)} ${idealPts[10][1].toFixed(1)}`} />\n                  <path className=\"hb-dpr-line\" d={line} />\n                </svg>\n                {live ? (\n                  <div className=\"hb-dpr-today\" style={{ left: `${actualPts[last][0].toFixed(1)}%` }}>\n                    <span>Today</span>\n                  </div>\n                ) : null}\n                {hover !== null ? (\n                  <>\n                    <div className=\"hb-dpr-hl\" style={{ left: `${hx}%` }} />\n                    {hover <= last ? <div className=\"hb-dpr-hd\" style={{ left: `${hx}%`, top: `${actualPts[hover][1].toFixed(2)}%` }} /> : null}\n                    <div className=\"hb-dpr-tt\" style={{ top: 4, left: `${hx}%`, transform: hx > 62 ? \"translateX(calc(-100% - 14px))\" : \"translateX(14px)\" }}>\n                      <div className=\"hb-dpr-tt-d\">{DAY_LABELS[hover]}</div>\n                      <div>\n                        Ideal <b>{ideal[hover].toFixed(0)}</b>\n                      </div>\n                      {hover <= last ? (\n                        <div>\n                          Actual <b>{data.actual[hover]}</b>\n                        </div>\n                      ) : null}\n                    </div>\n                  </>\n                ) : null}\n              </div>\n              <div className=\"hb-dpr-xl\" aria-hidden=\"true\">\n                {LABEL_AT.map((i) => (\n                  <span key={i}>{DAY_LABELS[i]}</span>\n                ))}\n              </div>\n            </div>\n          </div>\n\n          <div className=\"hb-dpr-card\" style={{ \"--d\": 6 } as React.CSSProperties}>\n            <div className=\"hb-dpr-card-h\">\n              <div>\n                <h3 className=\"hb-dpr-card-t\">Team workload</h3>\n                <p className=\"hb-dpr-card-s\">Tasks vs capacity</p>\n              </div>\n            </div>\n            <ul className=\"hb-dpr-work\">\n              {data.team.map((m, i) => {\n                const ratio = m.tasks / m.cap;\n                const color = ratio > 1 ? \"#fbbf24\" : ratio === 1 ? \"var(--a)\" : \"color-mix(in srgb, var(--a) 60%, #3a3a3a)\";\n                return (\n                  <li key={m.name}>\n                    <span className=\"hb-dpr-av\" style={{ background: tone(m.name) }}>\n                      {initials(m.name)}\n                    </span>\n                    <div>\n                      <div className=\"hb-dpr-work-n\">\n                        {m.name}\n                        <span>\n                          {m.tasks} / {m.cap}\n                        </span>\n                      </div>\n                      <div className=\"hb-dpr-work-b\">\n                        <i key={current} style={{ \"--w\": `${Math.min(ratio * 100, 100).toFixed(1)}%`, \"--c\": color, \"--i\": i } as React.CSSProperties} />\n                      </div>\n                    </div>\n                    {ratio > 1 ? (\n                      <span className=\"hb-dpr-chip\" data-t=\"amber\">\n                        Over\n                      </span>\n                    ) : (\n                      <span className=\"hb-dpr-chip\" style={{ visibility: \"hidden\" }}>\n                        Over\n                      </span>\n                    )}\n                  </li>\n                );\n              })}\n            </ul>\n          </div>\n        </div>\n\n        <div className=\"hb-dpr-card\" style={{ \"--d\": 7 } as React.CSSProperties}>\n          <div className=\"hb-dpr-card-h\">\n            <div>\n              <h3 className=\"hb-dpr-card-t\">Board summary</h3>\n              <p className=\"hb-dpr-card-s\">Latest cards in each column</p>\n            </div>\n            <button type=\"button\" className=\"hb-dpr-btn\">\n              Open board\n              <Ico n=\"chevr\" />\n            </button>\n          </div>\n          <div className=\"hb-dpr-board\" key={current}>\n            {COLUMN_DEFS.map((c, ci) => (\n              <div className=\"hb-dpr-colm\" key={c.label} style={{ \"--k\": c.color } as React.CSSProperties}>\n                <div className=\"hb-dpr-colm-h\">\n                  <span>\n                    <i />\n                    {c.label}\n                  </span>\n                  <em>{data.cols[ci]}</em>\n                </div>\n                {data.cards[ci].map((t) => (\n                  <div className=\"hb-dpr-task\" key={t.title}>\n                    <p>{t.title}</p>\n                    <div className=\"hb-dpr-task-f\">\n                      <span className=\"hb-dpr-tag\" style={{ \"--c\": t.color } as React.CSSProperties}>\n                        {t.tag}\n                      </span>\n                      <span className=\"hb-dpr-pts\">\n                        {t.points} pts\n                        <span className=\"hb-dpr-av\" style={{ background: tone(t.who) }} title={t.who}>\n                          {initials(t.who)}\n                        </span>\n                      </span>\n                    </div>\n                  </div>\n                ))}\n              </div>\n            ))}\n          </div>\n        </div>\n\n        <div className=\"hb-dpr-card\" style={{ \"--d\": 8 } as React.CSSProperties}>\n          <div className=\"hb-dpr-card-h\">\n            <div>\n              <h3 className=\"hb-dpr-card-t\">Upcoming deadlines</h3>\n              <p className=\"hb-dpr-card-s\">Click to mark as done</p>\n            </div>\n            <span className=\"hb-dpr-chip\">\n              {DEADLINES.length - done.length} open\n            </span>\n          </div>\n          <ul className=\"hb-dpr-due\">\n            {DEADLINES.map((d) => {\n              const isDone = done.includes(d.id);\n              return (\n                <li key={d.id}>\n                  <button type=\"button\" className=\"hb-dpr-dl\" aria-pressed={isDone} onClick={() => toggle(d.id)}>\n                    <span className=\"hb-dpr-dl-d\">\n                      <small>{d.month}</small>\n                      <b>{d.day}</b>\n                    </span>\n                    <span className=\"hb-dpr-dl-x\">\n                      <strong>{d.title}</strong>\n                      <span>{d.who}</span>\n                      <span className=\"hb-dpr-chip\" data-t={isDone ? \"green\" : d.tone}>\n                        {isDone ? \"Done\" : d.due}\n                      </span>\n                    </span>\n                    <span className=\"hb-dpr-dl-k\" aria-hidden=\"true\">\n                      <Ico n=\"check\" />\n                    </span>\n                  </button>\n                </li>\n              );\n            })}\n          </ul>\n        </div>\n      </Shell>\n    </div>\n  );\n}\n"
    }
  ]
}