{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "dashboard-hr",
  "type": "registry:component",
  "title": "HR People Dashboard",
  "description": "A light people operations screen on warm paper: headcount by team as stacked columns, a hiring pipeline funnel, a November time-off heatmap with day details, upcoming reviews and a team directory, all filtered by team.",
  "author": "Hyperblur <hello@hyperblur.dev>",
  "dependencies": [],
  "registryDependencies": [],
  "categories": [
    "dashboards",
    "dashboard",
    "hr",
    "people",
    "hiring",
    "heatmap",
    "light"
  ],
  "docs": "https://hyperblur.dev/effects/dashboard-hr",
  "files": [
    {
      "path": "registry/hyperblur/dashboard-hr.tsx",
      "type": "registry:component",
      "target": "components/hyperblur/dashboard-hr.tsx",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nexport type HrTeam = \"All\" | \"Engineering\" | \"Design\" | \"Sales\" | \"Operations\";\n\nexport interface DashboardHrProps extends React.HTMLAttributes<HTMLDivElement> {\n  accent?: string;\n  brand?: string;\n  company?: string;\n  user?: string;\n  team?: HrTeam;\n  defaultTeam?: HrTeam;\n  onTeamChange?: (team: HrTeam) => void;\n}\n\nconst css = `\n.hb-yd2 {\n  --a: #c4572a;\n  --hb-yd2-ink: #1d1c1a;\n  --hb-yd2-mute: #6f6a60;\n  --hb-yd2-line: #e5e0d4;\n  container: hb-yd2 / inline-size;\n  box-sizing: border-box;\n  width: 100%;\n  border: 1px solid #e2ddd0;\n  border-radius: 18px;\n  background: #f7f5ef;\n  color: var(--hb-yd2-ink);\n  font-family: inherit;\n  font-size: 13px;\n  line-height: 1.45;\n  overflow: hidden;\n  position: relative;\n  -webkit-font-smoothing: antialiased;\n}\n.hb-yd2 *, .hb-yd2 *::before, .hb-yd2 *::after { box-sizing: border-box; }\n.hb-yd2 button, .hb-yd2 input { font: inherit; color: inherit; }\n.hb-yd2 button:focus-visible, .hb-yd2 input:focus-visible, .hb-yd2 [tabindex]:focus-visible { outline: 2px solid var(--a); outline-offset: 2px; }\n.hb-yd2-app { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 700px; }\n.hb-yd2-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; padding: 18px 14px; border-right: 1px solid var(--hb-yd2-line); background: #efebe1; }\n.hb-yd2-brand { display: flex; align-items: center; gap: 10px; padding: 0 6px; font-size: 15px; font-weight: 650; letter-spacing: -.015em; }\n.hb-yd2-mark { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 9px; background: var(--a); color: #fffaf3; box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 4px 10px -4px var(--a); }\n.hb-yd2-org {\n  display: flex;\n  align-items: center;\n  gap: 10px;\n  width: 100%;\n  padding: 8px 10px;\n  border: 1px solid var(--hb-yd2-line);\n  border-radius: 12px;\n  background: #fbfaf6;\n  text-align: left;\n  cursor: pointer;\n  box-shadow: 0 1px 2px rgba(60, 50, 30, .05);\n  transition: border-color .15s ease;\n}\n.hb-yd2-org:hover { border-color: #d3ccbb; }\n.hb-yd2-org-l { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 8px; background: #1d1c1a; color: #f7f5ef; font-size: 12px; font-weight: 700; }\n.hb-yd2-org b { display: block; font-size: 13px; font-weight: 600; }\n.hb-yd2-org span { display: block; color: var(--hb-yd2-mute); font-size: 11.5px; }\n.hb-yd2-org svg { margin-left: auto; color: var(--hb-yd2-mute); }\n.hb-yd2-nav { display: flex; flex-direction: column; gap: 1px; margin: 0; padding: 0; list-style: none; }\n.hb-yd2-nav-h { padding: 12px 10px 6px; color: #8d877b; font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }\n.hb-yd2-link {\n  display: flex;\n  align-items: center;\n  gap: 10px;\n  width: 100%;\n  height: 34px;\n  padding: 0 10px;\n  border: 0;\n  border-radius: 9px;\n  background: transparent;\n  color: #4d4941;\n  font-size: 13px;\n  text-align: left;\n  cursor: pointer;\n  transition: background .15s ease, color .15s ease;\n}\n.hb-yd2-link:hover { background: rgba(29, 28, 26, .05); color: var(--hb-yd2-ink); }\n.hb-yd2-link[aria-current=\"page\"] { background: #fbfaf6; color: var(--hb-yd2-ink); font-weight: 600; box-shadow: 0 1px 2px rgba(60, 50, 30, .08), 0 0 0 1px var(--hb-yd2-line); }\n.hb-yd2-link[aria-current=\"page\"] .hb-yd2-ico { color: var(--a); }\n.hb-yd2-link em { margin-left: auto; padding: 0 7px; border-radius: 999px; background: rgba(29, 28, 26, .07); color: var(--hb-yd2-mute); font-size: 11px; font-style: normal; font-weight: 600; font-variant-numeric: tabular-nums; }\n.hb-yd2-note { margin-top: auto; padding: 14px; border-radius: 14px; background: #1d1c1a; color: #f2efe7; }\n.hb-yd2-note b { display: block; font-size: 13px; font-weight: 600; }\n.hb-yd2-note p { margin: 4px 0 12px; color: #b5afa3; font-size: 12px; }\n.hb-yd2-note-bar { height: 5px; margin-bottom: 12px; border-radius: 999px; background: rgba(255, 255, 255, .12); overflow: hidden; }\n.hb-yd2-note-bar i { display: block; width: 68%; height: 100%; border-radius: inherit; background: var(--a); transform-origin: left; animation: hb-yd2-bar 1s .3s cubic-bezier(.3, .7, .2, 1) both; }\n.hb-yd2-note button { width: 100%; height: 30px; border: 0; border-radius: 8px; background: #f7f5ef; color: #1d1c1a; font-size: 12px; font-weight: 600; cursor: pointer; }\n.hb-yd2-note button:hover { background: #ffffff; }\n.hb-yd2-main { display: flex; flex-direction: column; min-width: 0; }\n.hb-yd2-top { display: flex; align-items: center; gap: 12px; padding: 20px 28px 0; }\n.hb-yd2-hello { min-width: 0; margin-right: auto; }\n.hb-yd2-hello h2 { margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -.025em; line-height: 1.2; }\n.hb-yd2-hello p { margin: 3px 0 0; color: var(--hb-yd2-mute); font-size: 13px; }\n.hb-yd2-search { position: relative; width: 230px; color: #8d877b; }\n.hb-yd2-search svg { position: absolute; top: 50%; left: 11px; width: 15px; height: 15px; transform: translateY(-50%); pointer-events: none; }\n.hb-yd2-search input { width: 100%; height: 36px; padding: 0 12px 0 34px; border: 1px solid var(--hb-yd2-line); border-radius: 10px; background: #fffefb; font-size: 13px; }\n.hb-yd2-search input::placeholder { color: #9a9488; }\n.hb-yd2-search input:focus-visible { border-color: var(--a); outline-offset: 0; }\n.hb-yd2-ibtn { position: relative; display: grid; place-items: center; flex: none; width: 36px; height: 36px; border: 1px solid var(--hb-yd2-line); border-radius: 10px; background: #fffefb; color: #4d4941; cursor: pointer; transition: border-color .15s ease; }\n.hb-yd2-ibtn:hover { border-color: #cfc8b7; }\n.hb-yd2-ibtn i { position: absolute; top: 7px; right: 8px; width: 7px; height: 7px; border: 2px solid #fffefb; border-radius: 50%; background: var(--a); box-sizing: content-box; margin: -2px; }\n.hb-yd2-cta { display: inline-flex; align-items: center; gap: 6px; flex: none; height: 36px; padding: 0 14px 0 11px; border: 0; border-radius: 10px; background: var(--a); color: #fffaf3; font-size: 13px; font-weight: 600; cursor: pointer; box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 4px 12px -6px var(--a); transition: filter .15s ease, transform .15s ease; }\n.hb-yd2-cta:hover { filter: brightness(1.06); }\n.hb-yd2-cta:active { transform: translateY(1px); }\n.hb-yd2-ico { display: block; flex: none; width: 16px; height: 16px; }\n.hb-yd2-content { display: flex; flex-direction: column; gap: 16px; min-width: 0; padding: 18px 28px 28px; }\n.hb-yd2-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }\n.hb-yd2-tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 3px; border: 1px solid var(--hb-yd2-line); border-radius: 11px; background: #efebe1; }\n.hb-yd2-tabs button { height: 28px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: #5e594f; font-size: 12.5px; font-weight: 500; cursor: pointer; transition: background .15s ease, color .15s ease, box-shadow .15s ease; }\n.hb-yd2-tabs button:hover { color: var(--hb-yd2-ink); }\n.hb-yd2-tabs button[aria-pressed=\"true\"] { background: #fffefb; color: var(--hb-yd2-ink); font-weight: 600; box-shadow: 0 1px 2px rgba(60, 50, 30, .12); }\n.hb-yd2-meta { color: var(--hb-yd2-mute); font-size: 12.5px; }\n.hb-yd2-card {\n  min-width: 0;\n  padding: 18px;\n  border: 1px solid var(--hb-yd2-line);\n  border-radius: 16px;\n  background: #fffefb;\n  box-shadow: 0 1px 2px rgba(60, 50, 30, .04), 0 8px 24px -16px rgba(60, 50, 30, .18);\n  animation: hb-yd2-rise .6s cubic-bezier(.2, .7, .2, 1) both;\n  animation-delay: calc(var(--d, 0) * 70ms);\n}\n.hb-yd2-ch { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 14px; }\n.hb-yd2-ct { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: -.01em; }\n.hb-yd2-cs { margin: 2px 0 0; color: var(--hb-yd2-mute); font-size: 12px; }\n.hb-yd2-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0; overflow: hidden; }\n.hb-yd2-kpi { min-width: 0; padding: 16px 18px; border-left: 1px solid var(--hb-yd2-line); }\n.hb-yd2-kpi:first-child { border-left: 0; }\n.hb-yd2-kpi span { display: block; color: var(--hb-yd2-mute); font-size: 12px; }\n.hb-yd2-kpi b { display: block; margin: 6px 0 4px; font-size: 28px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.035em; line-height: 1; }\n.hb-yd2-kpi small { display: inline-flex; align-items: center; gap: 4px; color: var(--hb-yd2-mute); font-size: 12px; }\n.hb-yd2-kpi small i { font-style: normal; font-weight: 600; }\n.hb-yd2-good { color: #2f7a55; }\n.hb-yd2-bad { color: #b4412b; }\n.hb-yd2-row { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 16px; }\n.hb-yd2-leg { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--hb-yd2-mute); font-size: 12px; }\n.hb-yd2-leg span { display: inline-flex; align-items: center; gap: 6px; transition: opacity .2s ease; }\n.hb-yd2-leg span[data-dim=\"true\"] { opacity: .35; }\n.hb-yd2-leg i { width: 9px; height: 9px; border-radius: 3px; }\n.hb-yd2-hc { display: grid; grid-template-columns: 30px minmax(0, 1fr); grid-template-rows: 220px auto; column-gap: 8px; }\n.hb-yd2-yl { position: relative; }\n.hb-yd2-yl span { position: absolute; right: 0; color: #9a9488; font-size: 11px; font-variant-numeric: tabular-nums; transform: translateY(50%); }\n.hb-yd2-cols { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: 100%; align-items: end; gap: 8px; height: 100%; padding: 0 2px; background-image: linear-gradient(var(--hb-yd2-line) 1px, transparent 1px); background-size: 100% 25%; background-position: 0 -1px; border-bottom: 1px solid #d6d0c2; }\n.hb-yd2-col { position: relative; display: flex; flex-direction: column-reverse; height: var(--h); min-width: 0; border: 0; padding: 0; background: none; cursor: pointer; transform-origin: bottom; animation: hb-yd2-grow .7s cubic-bezier(.3, .7, .2, 1) both; }\n.hb-yd2-col i { display: block; width: 100%; height: var(--s); background: var(--c); transition: opacity .2s ease, filter .2s ease; }\n.hb-yd2-col i:last-child { border-radius: 5px 5px 0 0; }\n.hb-yd2-col i[data-dim=\"true\"] { opacity: .2; }\n.hb-yd2-col:hover i, .hb-yd2-col:focus-visible i { filter: brightness(1.08) saturate(1.1); }\n.hb-yd2-col[data-on=\"true\"]::after { content: \"\"; position: absolute; inset: -4px -3px auto; height: calc(100% + 4px); border-radius: 7px; background: rgba(29, 28, 26, .04); z-index: -1; }\n.hb-yd2-xl { grid-column: 2; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; padding: 8px 2px 0; color: #9a9488; font-size: 11px; text-align: center; }\n.hb-yd2-tt { position: absolute; z-index: 4; min-width: 150px; padding: 9px 11px; border-radius: 10px; background: #1d1c1a; color: #f2efe7; box-shadow: 0 14px 30px -12px rgba(30, 25, 15, .55); font-size: 12px; pointer-events: none; }\n.hb-yd2-tt-h { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 5px; font-weight: 600; }\n.hb-yd2-tt-r { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; align-items: center; gap: 7px; color: #c9c3b6; }\n.hb-yd2-tt-r i { width: 8px; height: 8px; border-radius: 2px; }\n.hb-yd2-tt-r b { color: #ffffff; font-weight: 600; font-variant-numeric: tabular-nums; }\n.hb-yd2-fun { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }\n.hb-yd2-fun li { display: grid; grid-template-columns: 86px minmax(0, 1fr) 48px; align-items: center; gap: 10px; padding: 4px 6px; margin: 0 -6px; border-radius: 9px; transition: background .15s ease; }\n.hb-yd2-fun li:hover { background: #f4f1e9; }\n.hb-yd2-fun-l { color: #4d4941; font-size: 12.5px; }\n.hb-yd2-fun-t { position: relative; display: flex; justify-content: center; height: 30px; }\n.hb-yd2-fun-b { display: flex; align-items: center; justify-content: center; width: var(--w); height: 100%; border-radius: 8px; background: color-mix(in srgb, var(--a) var(--o), #fffefb); color: var(--hb-yd2-ink); font-size: 12px; font-weight: 650; font-variant-numeric: tabular-nums; animation: hb-yd2-spread .8s cubic-bezier(.3, .7, .2, 1) both; }\n.hb-yd2-fun-b[data-strong=\"true\"] { color: #fffaf3; }\n.hb-yd2-fun-c { color: var(--hb-yd2-mute); font-size: 11.5px; font-variant-numeric: tabular-nums; text-align: right; }\n.hb-yd2-fun-f { display: flex; justify-content: space-between; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--hb-yd2-line); color: var(--hb-yd2-mute); font-size: 12px; }\n.hb-yd2-fun-f b { color: var(--hb-yd2-ink); font-weight: 600; }\n.hb-yd2-cal { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px; }\n.hb-yd2-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }\n.hb-yd2-wd { padding-bottom: 2px; color: #9a9488; font-size: 11px; font-weight: 600; text-align: center; }\n.hb-yd2-day {\n  position: relative;\n  aspect-ratio: 1.15;\n  min-width: 0;\n  padding: 4px 5px;\n  border: 1px solid transparent;\n  border-radius: 8px;\n  background: color-mix(in srgb, var(--a) var(--o), #f4f1e9);\n  color: var(--hb-yd2-ink);\n  font-size: 11px;\n  font-weight: 600;\n  font-variant-numeric: tabular-nums;\n  text-align: left;\n  cursor: pointer;\n  animation: hb-yd2-pop .45s cubic-bezier(.3, .7, .2, 1) both;\n  transition: transform .15s ease, border-color .15s ease;\n}\n.hb-yd2-day[data-hi=\"true\"] { color: #fffaf3; }\n.hb-yd2-day[data-wk=\"true\"] { background: repeating-linear-gradient(135deg, #f1ede4 0 4px, #ece7dc 4px 8px); color: #a49e91; }\n.hb-yd2-day[data-hol=\"true\"] { background: #1d1c1a; color: #f7f5ef; }\n.hb-yd2-day[data-today=\"true\"] { border-color: var(--hb-yd2-ink); }\n.hb-yd2-day[aria-pressed=\"true\"] { box-shadow: 0 0 0 2px #fffefb, 0 0 0 4px var(--a); }\n.hb-yd2-day:hover { transform: translateY(-1px); }\n.hb-yd2-day em { position: absolute; right: 5px; bottom: 3px; font-size: 10px; font-style: normal; font-weight: 500; opacity: .8; }\n.hb-yd2-scale { display: flex; align-items: center; gap: 4px; margin-top: 10px; color: #9a9488; font-size: 11px; }\n.hb-yd2-scale i { width: 14px; height: 10px; border-radius: 3px; }\n.hb-yd2-det { display: flex; flex-direction: column; min-width: 0; padding: 14px; border-radius: 12px; background: #f4f1e9; }\n.hb-yd2-det h4 { margin: 0; font-size: 13px; font-weight: 600; }\n.hb-yd2-det > p { margin: 2px 0 10px; color: var(--hb-yd2-mute); font-size: 12px; }\n.hb-yd2-det ul { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }\n.hb-yd2-det li { display: flex; align-items: center; gap: 9px; min-width: 0; font-size: 12.5px; animation: hb-yd2-rise .35s cubic-bezier(.2, .7, .2, 1) both; }\n.hb-yd2-det li span:last-child { margin-left: auto; color: var(--hb-yd2-mute); font-size: 11.5px; white-space: nowrap; }\n.hb-yd2-det li b { overflow: hidden; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }\n.hb-yd2-av { display: grid; place-items: center; flex: none; border-radius: 50%; color: #ffffff; font-size: 11px; font-weight: 650; letter-spacing: .01em; }\n.hb-yd2-empty { color: var(--hb-yd2-mute); font-size: 12.5px; }\n.hb-yd2-rev { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }\n.hb-yd2-rev li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 10px 0; border-top: 1px solid #efebe1; }\n.hb-yd2-rev li:first-child { border-top: 0; padding-top: 0; }\n.hb-yd2-rev-t { min-width: 0; }\n.hb-yd2-rev-t b { display: block; overflow: hidden; font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }\n.hb-yd2-rev-t span { display: block; overflow: hidden; color: var(--hb-yd2-mute); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }\n.hb-yd2-steps { display: inline-flex; gap: 3px; margin-top: 5px; }\n.hb-yd2-steps i { width: 18px; height: 4px; border-radius: 999px; background: #e7e2d6; }\n.hb-yd2-steps i[data-on=\"true\"] { background: var(--a); }\n.hb-yd2-date { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 46px; height: 46px; border: 1px solid var(--hb-yd2-line); border-radius: 11px; background: #fbfaf6; line-height: 1.1; }\n.hb-yd2-date span { color: var(--a); font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }\n.hb-yd2-date b { font-size: 17px; font-weight: 650; font-variant-numeric: tabular-nums; }\n.hb-yd2-dir { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }\n.hb-yd2-person {\n  position: relative;\n  display: flex;\n  flex-direction: column;\n  align-items: flex-start;\n  min-width: 0;\n  padding: 14px;\n  border: 1px solid var(--hb-yd2-line);\n  border-radius: 14px;\n  background: linear-gradient(180deg, #fffefb, #fbf9f4);\n  animation: hb-yd2-rise .5s cubic-bezier(.2, .7, .2, 1) both;\n  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;\n}\n.hb-yd2-person:hover { border-color: #d6cfbe; box-shadow: 0 12px 26px -16px rgba(60, 50, 30, .35); transform: translateY(-2px); }\n.hb-yd2-person-av { position: relative; margin-bottom: 10px; }\n.hb-yd2-person-av i { position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border: 2px solid #fffefb; border-radius: 50%; }\n.hb-yd2-person b { max-width: 100%; overflow: hidden; font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }\n.hb-yd2-person > span { max-width: 100%; overflow: hidden; color: var(--hb-yd2-mute); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }\n.hb-yd2-tag { display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--c) 12%, #fffefb); color: color-mix(in srgb, var(--c) 80%, #1d1c1a); font-size: 11px; font-weight: 600; }\n.hb-yd2-person-f { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; margin-top: 12px; padding-top: 10px; border-top: 1px solid #efebe1; color: var(--hb-yd2-mute); font-size: 11.5px; }\n.hb-yd2-person-f div { display: flex; gap: 4px; }\n.hb-yd2-sbtn { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--hb-yd2-line); border-radius: 7px; background: #fffefb; color: #5e594f; cursor: pointer; transition: border-color .15s ease, color .15s ease; }\n.hb-yd2-sbtn:hover { border-color: var(--a); color: var(--a); }\n.hb-yd2-sbtn svg { width: 13px; height: 13px; }\n.hb-yd2-link-btn { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 10px; border: 1px solid var(--hb-yd2-line); border-radius: 9px; background: #fffefb; color: #4d4941; font-size: 12px; font-weight: 500; cursor: pointer; }\n.hb-yd2-link-btn:hover { border-color: #cfc8b7; color: var(--hb-yd2-ink); }\n.hb-yd2-link-btn svg { width: 13px; height: 13px; }\n@keyframes hb-yd2-rise { from { opacity: 0; transform: translate3d(0, 10px, 0); } to { opacity: 1; transform: none; } }\n@keyframes hb-yd2-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }\n@keyframes hb-yd2-spread { from { transform: scaleX(.1); opacity: 0; } to { transform: scaleX(1); opacity: 1; } }\n@keyframes hb-yd2-pop { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: none; } }\n@keyframes hb-yd2-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }\n@container hb-yd2 (max-width: 1079px) {\n  .hb-yd2-dir { grid-template-columns: repeat(3, minmax(0, 1fr)); }\n}\n@container hb-yd2 (max-width: 979px) {\n  .hb-yd2-row { grid-template-columns: minmax(0, 1fr); }\n  .hb-yd2-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }\n  .hb-yd2-kpi:nth-child(3) { border-left: 0; }\n  .hb-yd2-kpi:nth-child(n + 3) { border-top: 1px solid var(--hb-yd2-line); }\n}\n@container hb-yd2 (max-width: 759px) {\n  .hb-yd2-app { grid-template-columns: minmax(0, 1fr); min-height: 0; }\n  .hb-yd2-side { flex-direction: row; align-items: center; gap: 8px; padding: 10px 14px; border-right: 0; border-bottom: 1px solid var(--hb-yd2-line); overflow-x: auto; }\n  .hb-yd2-brand span:last-child, .hb-yd2-org, .hb-yd2-nav-h, .hb-yd2-link-t, .hb-yd2-link em, .hb-yd2-note { display: none; }\n  .hb-yd2-nav { flex-direction: row; flex: 1; gap: 4px; }\n  .hb-yd2-link { justify-content: center; width: 36px; padding: 0; }\n  .hb-yd2-top { flex-wrap: wrap; padding: 16px 16px 0; }\n  .hb-yd2-search { display: none; }\n  .hb-yd2-content { padding: 16px; }\n  .hb-yd2-cal { grid-template-columns: minmax(0, 1fr); }\n  .hb-yd2-dir { grid-template-columns: repeat(2, minmax(0, 1fr)); }\n  .hb-yd2-cols, .hb-yd2-xl { gap: 4px; }\n}\n@container hb-yd2 (max-width: 479px) {\n  .hb-yd2-hello h2 { font-size: 20px; }\n  .hb-yd2-cta span { display: none; }\n  .hb-yd2-kpi b { font-size: 22px; }\n  .hb-yd2-dir { grid-template-columns: minmax(0, 1fr); }\n  .hb-yd2-fun li { grid-template-columns: 70px minmax(0, 1fr) 40px; gap: 6px; }\n  .hb-yd2-xl span:nth-child(even) { visibility: hidden; }\n}\n@media (prefers-reduced-motion: reduce) {\n  .hb-yd2 *, .hb-yd2 *::before, .hb-yd2 *::after { animation: none !important; transition: none !important; }\n}\n`;\n\nfunction hash(n: number) {\n  let x = Math.imul(n + 1, 2654435761) >>> 0;\n  x ^= x >>> 15;\n  x = Math.imul(x, 2246822519) >>> 0;\n  x ^= x >>> 13;\n  return (x >>> 0) / 4294967296;\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} 46% 58%), hsl(${(hue + 36) % 360} 44% 40%))`;\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  home: [\"M3 11l9-7 9 7\", \"M5 10v10h14V10\"],\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  brief: [\"M3 8h18v12H3z\", \"M8 8V5a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v3\", \"M3 13h18\"],\n  sun: [\"M12 8a4 4 0 1 0 0 8 4 4 0 0 0 0-8z\", \"M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4\"],\n  star: [\"M12 3l2.8 5.7 6.2.9-4.5 4.4 1 6.2L12 17.3 6.5 20.2l1-6.2L3 9.6l6.2-.9z\"],\n  card: [\"M2 6h20v12H2z\", \"M2 10h20\", \"M6 15h4\"],\n  chart: [\"M3 3v18h18\", \"M8 17v-5M13 17V8M18 17v-9\"],\n  org: [\"M9 3h6v5H9z\", \"M4 16h6v5H4zM14 16h6v5h-6z\", \"M12 8v4M7 16v-2h10v2\"],\n  search: [\"M11 3a8 8 0 1 0 0 16 8 8 0 0 0 0-16z\", \"M21 21l-4.3-4.3\"],\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  plus: [\"M12 5v14\", \"M5 12h14\"],\n  chev: [\"M8 9l4-4 4 4\", \"M8 15l4 4 4-4\"],\n  mail: [\"M3 5h18v14H3z\", \"M3 6l9 7 9-7\"],\n  chat: [\"M21 12a8 8 0 0 1-11.6 7.1L4 20l1-4.6A8 8 0 1 1 21 12z\"],\n  pin: [\"M12 21s7-6.2 7-11.5A7 7 0 0 0 5 9.5C5 14.8 12 21 12 21z\", \"M12 7a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5z\"],\n  arrow: [\"M5 12h14\", \"M13 6l6 6-6 6\"],\n};\n\nfunction Ico({ n, className = \"hb-yd2-ico\" }: { n: string; className?: string }) {\n  return (\n    <svg className={className} 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\nconst TEAMS: HrTeam[] = [\"All\", \"Engineering\", \"Design\", \"Sales\", \"Operations\"];\ntype Dept = Exclude<HrTeam, \"All\">;\nconst DEPTS: Dept[] = [\"Engineering\", \"Design\", \"Sales\", \"Operations\"];\nconst DEPT_COLOR: Record<Dept, string> = { Engineering: \"#3b5b92\", Design: \"#b4637a\", Sales: \"#c99a2e\", Operations: \"#5b8a72\" };\nconst MONTHS = [\"Dec\", \"Jan\", \"Feb\", \"Mar\", \"Apr\", \"May\", \"Jun\", \"Jul\", \"Aug\", \"Sep\", \"Oct\", \"Nov\"];\nconst HEAD: Record<Dept, number[]> = {\n  Engineering: [78, 79, 81, 82, 84, 86, 87, 89, 91, 92, 94, 96],\n  Design: [18, 18, 19, 19, 20, 21, 21, 22, 22, 23, 23, 24],\n  Sales: [52, 51, 53, 54, 53, 55, 56, 55, 57, 57, 58, 58],\n  Operations: [30, 30, 31, 31, 32, 32, 33, 34, 34, 35, 35, 36],\n};\nconst TEAM_STATS: Record<HrTeam, { hires: number; attrition: number; enps: number; roles: number }> = {\n  All: { hires: 14, attrition: 7.4, enps: 42, roles: 12 },\n  Engineering: { hires: 7, attrition: 5.9, enps: 47, roles: 6 },\n  Design: { hires: 2, attrition: 4.2, enps: 51, roles: 1 },\n  Sales: { hires: 3, attrition: 12.8, enps: 31, roles: 3 },\n  Operations: { hires: 2, attrition: 6.1, enps: 39, roles: 2 },\n};\nconst PIPELINE: Record<HrTeam, number[]> = {\n  All: [1284, 412, 138, 26, 19],\n  Engineering: [702, 214, 71, 13, 9],\n  Design: [188, 61, 19, 4, 3],\n  Sales: [276, 96, 33, 6, 5],\n  Operations: [118, 41, 15, 3, 2],\n};\nconst STAGES = [\"Applied\", \"Screened\", \"Interviewed\", \"Offer\", \"Hired\"];\n\ntype Status = \"office\" | \"remote\" | \"off\";\ninterface Person {\n  name: string;\n  role: string;\n  dept: Dept;\n  city: string;\n  time: string;\n  status: Status;\n}\n\nconst PEOPLE: Person[] = [\n  { name: \"Lena Hoffmann\", role: \"Staff Engineer\", dept: \"Engineering\", city: \"Berlin\", time: \"15:42\", status: \"office\" },\n  { name: \"Kai Nakamura\", role: \"Design Lead\", dept: \"Design\", city: \"Tokyo\", time: \"23:42\", status: \"remote\" },\n  { name: \"Marcus Hale\", role: \"Account Executive\", dept: \"Sales\", city: \"Chicago\", time: \"08:42\", status: \"office\" },\n  { name: \"Grace Whitfield\", role: \"People Partner\", dept: \"Operations\", city: \"Austin\", time: \"08:42\", status: \"office\" },\n  { name: \"Tomás Rivera\", role: \"Frontend Engineer\", dept: \"Engineering\", city: \"Lisbon\", time: \"14:42\", status: \"remote\" },\n  { name: \"Sofia Lindqvist\", role: \"Product Designer\", dept: \"Design\", city: \"Stockholm\", time: \"15:42\", status: \"off\" },\n  { name: \"Elena Petrova\", role: \"Sales Director\", dept: \"Sales\", city: \"London\", time: \"14:42\", status: \"remote\" },\n  { name: \"Noor Haddad\", role: \"Finance Lead\", dept: \"Operations\", city: \"Dubai\", time: \"18:42\", status: \"remote\" },\n  { name: \"Priya Raman\", role: \"Engineering Manager\", dept: \"Engineering\", city: \"Toronto\", time: \"09:42\", status: \"office\" },\n  { name: \"Jonah Mbeki\", role: \"Site Reliability Engineer\", dept: \"Engineering\", city: \"Cape Town\", time: \"16:42\", status: \"off\" },\n  { name: \"Mira Castellanos\", role: \"Brand Designer\", dept: \"Design\", city: \"Barcelona\", time: \"15:42\", status: \"office\" },\n  { name: \"Diego Alvarez\", role: \"Solutions Engineer\", dept: \"Sales\", city: \"Mexico City\", time: \"07:42\", status: \"office\" },\n  { name: \"Owen Brennan\", role: \"IT Specialist\", dept: \"Operations\", city: \"Dublin\", time: \"14:42\", status: \"off\" },\n  { name: \"Hana Sato\", role: \"Backend Engineer\", dept: \"Engineering\", city: \"Osaka\", time: \"23:42\", status: \"remote\" },\n  { name: \"Ruth Adeyemi\", role: \"Sales Development Rep\", dept: \"Sales\", city: \"Lagos\", time: \"15:42\", status: \"office\" },\n  { name: \"Felix Navarro\", role: \"Recruiter\", dept: \"Operations\", city: \"Madrid\", time: \"15:42\", status: \"office\" },\n];\n\nconst STATUS_LABEL: Record<Status, string> = { office: \"In office\", remote: \"Remote\", off: \"Off today\" };\nconst STATUS_COLOR: Record<Status, string> = { office: \"#3f9b6e\", remote: \"#3b5b92\", off: \"#c99a2e\" };\n\nconst REVIEWS = [\n  { name: \"Tomás Rivera\", type: \"Probation check-in\", role: \"Frontend Engineer\", m: \"Nov\", d: 6, step: 2 },\n  { name: \"Elena Petrova\", type: \"Promotion review\", role: \"Sales Director\", m: \"Nov\", d: 10, step: 1 },\n  { name: \"Mira Castellanos\", type: \"Annual review\", role: \"Brand Designer\", m: \"Nov\", d: 13, step: 3 },\n  { name: \"Owen Brennan\", type: \"Mid-year review\", role: \"IT Specialist\", m: \"Nov\", d: 18, step: 1 },\n  { name: \"Hana Sato\", type: \"Annual review\", role: \"Backend Engineer\", m: \"Nov\", d: 24, step: 0 },\n];\n\nconst LEAVE_KIND = [\"Vacation\", \"Sick leave\", \"Parental leave\", \"Personal day\", \"Vacation\", \"Conference\"];\n\nconst NOV_START = 6;\nconst HOLIDAYS: Record<number, string> = { 26: \"Thanksgiving\", 27: \"Day after Thanksgiving\" };\nconst TODAY = 4;\n\nfunction offOn(day: number) {\n  const dow = (NOV_START + day - 1) % 7;\n  if (dow >= 5 || HOLIDAYS[day]) return [] as { p: Person; kind: string }[];\n  const base = Math.floor(hash(day * 3 + 11) * 5) + (day >= 20 && day <= 25 ? 4 : 0) + (day === 4 ? 1 : 0);\n  const out: { p: Person; kind: string }[] = [];\n  for (let k = 0; k < base; k++) {\n    const p = PEOPLE[Math.floor(hash(day * 31 + k * 7) * PEOPLE.length)];\n    if (!out.some((o) => o.p.name === p.name)) out.push({ p, kind: LEAVE_KIND[Math.floor(hash(day * 13 + k) * LEAVE_KIND.length)] });\n  }\n  return out;\n}\n\nconst OFF = Array.from({ length: 30 }, (_, i) => offOn(i + 1));\nconst DOW = [\"Monday\", \"Tuesday\", \"Wednesday\", \"Thursday\", \"Friday\", \"Saturday\", \"Sunday\"];\n\nconst NAV = [\n  { id: \"home\", label: \"Home\", icon: \"home\", section: \"Workspace\" },\n  { id: \"people\", label: \"People\", icon: \"users\", count: \"214\" },\n  { id: \"hiring\", label: \"Hiring\", icon: \"brief\", count: \"12\" },\n  { id: \"time\", label: \"Time off\", icon: \"sun\" },\n  { id: \"reviews\", label: \"Reviews\", icon: \"star\", count: \"5\" },\n  { id: \"payroll\", label: \"Payroll\", icon: \"card\" },\n  { id: \"reports\", label: \"Reports\", icon: \"chart\", section: \"Insights\" },\n  { id: \"org\", label: \"Org chart\", icon: \"org\" },\n];\n\nexport function DashboardHr({\n  accent = \"#c4572a\",\n  brand = \"Hearth\",\n  company = \"Northwind\",\n  user = \"Amara Okafor\",\n  team,\n  defaultTeam = \"All\",\n  onTeamChange,\n  className = \"\",\n  style,\n  ...rest\n}: DashboardHrProps) {\n  const [innerTeam, setInnerTeam] = React.useState<HrTeam>(defaultTeam);\n  const [nav, setNav] = React.useState(\"home\");\n  const [col, setCol] = React.useState<number | null>(null);\n  const [day, setDay] = React.useState(TODAY);\n  const t = team ?? innerTeam;\n\n  const pickTeam = (next: HrTeam) => {\n    setInnerTeam(next);\n    setCol(null);\n    onTeamChange?.(next);\n  };\n\n  const depts = t === \"All\" ? DEPTS : [t];\n  const headAt = (i: number) => depts.reduce((s, d) => s + HEAD[d][i], 0);\n  const headNow = headAt(11);\n  const headStart = headAt(0);\n  const stats = TEAM_STATS[t];\n  const totals = MONTHS.map((_, i) => DEPTS.reduce((s, d) => s + HEAD[d][i], 0));\n  const maxY = 240;\n  const pipe = PIPELINE[t];\n  const people = (t === \"All\" ? PEOPLE : PEOPLE.filter((p) => p.dept === t)).slice(0, 8);\n  const sel = OFF[day - 1];\n  const selDow = DOW[(NOV_START + day - 1) % 7];\n  const firstName = user.split(\" \")[0];\n\n  const kpis = [\n    { label: \"Headcount\", value: String(headNow), note: `+${headNow - headStart} since Dec`, good: true },\n    { label: \"New hires, 90 days\", value: String(stats.hires), note: `${stats.roles} roles open`, good: true },\n    { label: \"Attrition, 12 months\", value: `${stats.attrition.toFixed(1)}%`, note: stats.attrition > 10 ? \"Above 10% target\" : \"Below 10% target\", good: stats.attrition <= 10 },\n    { label: \"eNPS\", value: `+${stats.enps}`, note: \"Pulse survey, Oct\", good: stats.enps >= 40 },\n  ];\n\n  const colKey = (e: React.KeyboardEvent<HTMLButtonElement>, i: number) => {\n    let next = i;\n    if (e.key === \"ArrowRight\") next = Math.min(11, i + 1);\n    else if (e.key === \"ArrowLeft\") next = Math.max(0, i - 1);\n    else return;\n    e.preventDefault();\n    const sib = e.currentTarget.parentElement?.children[next] as HTMLElement | undefined;\n    sib?.focus();\n  };\n\n  const vars = { \"--a\": accent, ...style } as React.CSSProperties;\n\n  return (\n    <div className={`hb-yd2 ${className}`} style={vars} {...rest}>\n      <style href=\"hb-dashboard-hr\" precedence=\"default\">\n        {css}\n      </style>\n      <div className=\"hb-yd2-app\">\n        <aside className=\"hb-yd2-side\">\n          <div className=\"hb-yd2-brand\">\n            <span className=\"hb-yd2-mark\" aria-hidden=\"true\">\n              <svg width=\"15\" height=\"15\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"2.4\" strokeLinecap=\"round\" strokeLinejoin=\"round\">\n                <path d=\"M4 11l8-7 8 7v9H4z\" />\n                <path d=\"M10 20v-5h4v5\" />\n              </svg>\n            </span>\n            <span>{brand}</span>\n          </div>\n          <button type=\"button\" className=\"hb-yd2-org\" aria-label={`Switch workspace, current ${company}`}>\n            <span className=\"hb-yd2-org-l\">{company.slice(0, 1)}</span>\n            <span>\n              <b>{company}</b>\n              <span>214 people · 9 countries</span>\n            </span>\n            <Ico n=\"chev\" />\n          </button>\n          <nav aria-label=\"Main\">\n            <ul className=\"hb-yd2-nav\">\n              {NAV.map((item) => (\n                <React.Fragment key={item.id}>\n                  {item.section ? (\n                    <li className=\"hb-yd2-nav-h\" aria-hidden=\"true\">\n                      {item.section}\n                    </li>\n                  ) : null}\n                  <li>\n                    <button type=\"button\" className=\"hb-yd2-link\" aria-label={item.label} aria-current={nav === item.id ? \"page\" : undefined} onClick={() => setNav(item.id)}>\n                      <Ico n={item.icon} />\n                      <span className=\"hb-yd2-link-t\">{item.label}</span>\n                      {item.count ? <em>{item.count}</em> : null}\n                    </button>\n                  </li>\n                </React.Fragment>\n              ))}\n            </ul>\n          </nav>\n          <div className=\"hb-yd2-note\">\n            <b>Open enrollment</b>\n            <p>146 of 214 people have picked a 2027 benefits plan. Closes Nov 21.</p>\n            <div className=\"hb-yd2-note-bar\">\n              <i />\n            </div>\n            <button type=\"button\">Send reminder</button>\n          </div>\n        </aside>\n\n        <div className=\"hb-yd2-main\">\n          <header className=\"hb-yd2-top\">\n            <div className=\"hb-yd2-hello\">\n              <h2>Good morning, {firstName}</h2>\n              <p>Wednesday, November 4 · 3 people start next Monday</p>\n            </div>\n            <label className=\"hb-yd2-search\">\n              <Ico n=\"search\" />\n              <input type=\"search\" placeholder=\"Search people, roles, teams\" aria-label=\"Search people\" />\n            </label>\n            <button type=\"button\" className=\"hb-yd2-ibtn\" aria-label=\"Notifications, 4 unread\">\n              <Ico n=\"bell\" />\n              <i />\n            </button>\n            <span className=\"hb-yd2-av\" style={{ width: 36, height: 36, background: tone(user) }} title={user}>\n              {initials(user)}\n            </span>\n            <button type=\"button\" className=\"hb-yd2-cta\">\n              <Ico n=\"plus\" />\n              <span>Add person</span>\n            </button>\n          </header>\n\n          <div className=\"hb-yd2-content\">\n            <div className=\"hb-yd2-bar\">\n              <div className=\"hb-yd2-tabs\" role=\"group\" aria-label=\"Team\">\n                {TEAMS.map((k) => (\n                  <button key={k} type=\"button\" aria-pressed={t === k} onClick={() => pickTeam(k)}>\n                    {k === \"All\" ? \"All teams\" : k}\n                  </button>\n                ))}\n              </div>\n              <span className=\"hb-yd2-meta\">Updated 9:12 AM from payroll sync</span>\n            </div>\n\n            <section className=\"hb-yd2-card hb-yd2-kpis\" aria-label=\"Key numbers\" style={{ \"--d\": 0 } as React.CSSProperties}>\n              {kpis.map((k) => (\n                <div className=\"hb-yd2-kpi\" key={k.label}>\n                  <span>{k.label}</span>\n                  <b>{k.value}</b>\n                  <small>\n                    <i className={k.good ? \"hb-yd2-good\" : \"hb-yd2-bad\"}>●</i>\n                    {k.note}\n                  </small>\n                </div>\n              ))}\n            </section>\n\n            <div className=\"hb-yd2-row\">\n              <section className=\"hb-yd2-card\" style={{ \"--d\": 1 } as React.CSSProperties} aria-label=\"Headcount trend\">\n                <div className=\"hb-yd2-ch\">\n                  <div>\n                    <h3 className=\"hb-yd2-ct\">Headcount trend</h3>\n                    <p className=\"hb-yd2-cs\">Active employees at month end, last 12 months</p>\n                  </div>\n                  <div className=\"hb-yd2-leg\">\n                    {DEPTS.map((d) => (\n                      <span key={d} data-dim={t !== \"All\" && t !== d}>\n                        <i style={{ background: DEPT_COLOR[d] }} />\n                        {d}\n                      </span>\n                    ))}\n                  </div>\n                </div>\n                <div className=\"hb-yd2-hc\">\n                  <div className=\"hb-yd2-yl\" aria-hidden=\"true\">\n                    {[0, 60, 120, 180, 240].map((v) => (\n                      <span key={v} style={{ bottom: `${((v / maxY) * 100).toFixed(1)}%` }}>\n                        {v}\n                      </span>\n                    ))}\n                  </div>\n                  <div className=\"hb-yd2-cols\" onPointerLeave={() => setCol(null)}>\n                    {MONTHS.map((m, i) => (\n                      <button\n                        key={m}\n                        type=\"button\"\n                        className=\"hb-yd2-col\"\n                        data-on={col === i}\n                        aria-label={`${m}: ${totals[i]} people. ${DEPTS.map((d) => `${d} ${HEAD[d][i]}`).join(\", \")}`}\n                        style={{ \"--h\": `${((totals[i] / maxY) * 100).toFixed(2)}%`, animationDelay: `${i * 45}ms` } as React.CSSProperties}\n                        onPointerEnter={() => setCol(i)}\n                        onFocus={() => setCol(i)}\n                        onBlur={() => setCol(null)}\n                        onKeyDown={(e) => colKey(e, i)}\n                      >\n                        {DEPTS.map((d) => (\n                          <i\n                            key={d}\n                            data-dim={t !== \"All\" && t !== d}\n                            style={{ \"--s\": `${((HEAD[d][i] / totals[i]) * 100).toFixed(2)}%`, \"--c\": DEPT_COLOR[d] } as React.CSSProperties}\n                          />\n                        ))}\n                      </button>\n                    ))}\n                    {col !== null ? (\n                      <div\n                        className=\"hb-yd2-tt\"\n                        style={{\n                          left: `${(((col + 0.5) / 12) * 100).toFixed(2)}%`,\n                          bottom: `calc(${((totals[col] / maxY) * 100).toFixed(2)}% + 10px)`,\n                          transform: col > 8 ? \"translateX(-100%)\" : col < 3 ? \"none\" : \"translateX(-50%)\",\n                        }}\n                      >\n                        <div className=\"hb-yd2-tt-h\">\n                          <span>{MONTHS[col]} {col === 0 ? 2025 : 2026}</span>\n                          <span>{t === \"All\" ? totals[col] : headAt(col)}</span>\n                        </div>\n                        {DEPTS.map((d) => (\n                          <div className=\"hb-yd2-tt-r\" key={d} style={{ opacity: t !== \"All\" && t !== d ? 0.45 : 1 }}>\n                            <i style={{ background: DEPT_COLOR[d] }} />\n                            <span>{d}</span>\n                            <b>{HEAD[d][col]}</b>\n                          </div>\n                        ))}\n                      </div>\n                    ) : null}\n                  </div>\n                  <div className=\"hb-yd2-xl\" aria-hidden=\"true\">\n                    {MONTHS.map((m) => (\n                      <span key={m}>{m}</span>\n                    ))}\n                  </div>\n                </div>\n              </section>\n\n              <section className=\"hb-yd2-card\" style={{ \"--d\": 2 } as React.CSSProperties} aria-label=\"Hiring pipeline\">\n                <div className=\"hb-yd2-ch\">\n                  <div>\n                    <h3 className=\"hb-yd2-ct\">Hiring pipeline</h3>\n                    <p className=\"hb-yd2-cs\">Candidates by stage, this quarter</p>\n                  </div>\n                  <button type=\"button\" className=\"hb-yd2-link-btn\">\n                    Open roles\n                    <Ico n=\"arrow\" className=\"\" />\n                  </button>\n                </div>\n                <ol className=\"hb-yd2-fun\">\n                  {STAGES.map((s, i) => {\n                    const w = 22 + 78 * Math.pow(pipe[i] / pipe[0], 0.42);\n                    const o = 18 + i * 19;\n                    return (\n                      <li key={`${t}${s}`}>\n                        <span className=\"hb-yd2-fun-l\">{s}</span>\n                        <span className=\"hb-yd2-fun-t\">\n                          <span\n                            className=\"hb-yd2-fun-b\"\n                            data-strong={o > 50}\n                            style={{ \"--w\": `${w.toFixed(1)}%`, \"--o\": `${o}%`, animationDelay: `${i * 90}ms` } as React.CSSProperties}\n                          >\n                            {pipe[i].toLocaleString(\"en-US\")}\n                          </span>\n                        </span>\n                        <span className=\"hb-yd2-fun-c\">{i === 0 ? \"100%\" : `${((pipe[i] / pipe[i - 1]) * 100).toFixed(0)}%`}</span>\n                      </li>\n                    );\n                  })}\n                </ol>\n                <div className=\"hb-yd2-fun-f\">\n                  <span>\n                    Time to hire <b>31 days</b>\n                  </span>\n                  <span>\n                    Offer acceptance <b>{((pipe[4] / pipe[3]) * 100).toFixed(0)}%</b>\n                  </span>\n                </div>\n              </section>\n            </div>\n\n            <div className=\"hb-yd2-row\">\n              <section className=\"hb-yd2-card\" style={{ \"--d\": 3 } as React.CSSProperties} aria-label=\"Time off calendar\">\n                <div className=\"hb-yd2-ch\">\n                  <div>\n                    <h3 className=\"hb-yd2-ct\">Time off, November</h3>\n                    <p className=\"hb-yd2-cs\">Approved leave per working day</p>\n                  </div>\n                </div>\n                <div className=\"hb-yd2-cal\">\n                  <div>\n                    <div className=\"hb-yd2-grid\">\n                      {[\"M\", \"T\", \"W\", \"T\", \"F\", \"S\", \"S\"].map((w, i) => (\n                        <span key={i} className=\"hb-yd2-wd\" aria-hidden=\"true\">\n                          {w}\n                        </span>\n                      ))}\n                      {Array.from({ length: NOV_START }, (_, i) => (\n                        <span key={`e${i}`} aria-hidden=\"true\" />\n                      ))}\n                      {OFF.map((list, i) => {\n                        const d = i + 1;\n                        const dow = (NOV_START + i) % 7;\n                        const wk = dow >= 5;\n                        const hol = HOLIDAYS[d];\n                        const o = Math.min(88, list.length * 13 + (list.length ? 8 : 0));\n                        return (\n                          <button\n                            key={d}\n                            type=\"button\"\n                            className=\"hb-yd2-day\"\n                            data-wk={wk}\n                            data-hol={Boolean(hol)}\n                            data-hi={o > 45}\n                            data-today={d === TODAY}\n                            aria-pressed={day === d}\n                            aria-label={`November ${d}${hol ? `, ${hol}` : wk ? \", weekend\" : `, ${list.length} ${list.length === 1 ? \"person\" : \"people\"} off`}`}\n                            style={{ \"--o\": `${o}%`, animationDelay: `${(Math.floor((NOV_START + i) / 7) + dow) * 35}ms` } as React.CSSProperties}\n                            onPointerEnter={() => setDay(d)}\n                            onFocus={() => setDay(d)}\n                            onClick={() => setDay(d)}\n                          >\n                            {d}\n                            {list.length && !wk ? <em>{list.length}</em> : null}\n                          </button>\n                        );\n                      })}\n                    </div>\n                    <div className=\"hb-yd2-scale\" aria-hidden=\"true\">\n                      Fewer\n                      {[0, 21, 47, 73].map((o) => (\n                        <i key={o} style={{ background: `color-mix(in srgb, var(--a) ${o}%, #f4f1e9)` }} />\n                      ))}\n                      More\n                      <i style={{ marginLeft: 10, background: \"#1d1c1a\" }} />\n                      Holiday\n                    </div>\n                  </div>\n                  <div className=\"hb-yd2-det\" aria-live=\"polite\">\n                    <h4>\n                      {selDow}, November {day}\n                      {day === TODAY ? \" · Today\" : \"\"}\n                    </h4>\n                    <p>{HOLIDAYS[day] ? `Company holiday: ${HOLIDAYS[day]}` : sel.length ? `${sel.length} ${sel.length === 1 ? \"person\" : \"people\"} away` : \"Everyone is in\"}</p>\n                    {sel.length ? (\n                      <ul key={day}>\n                        {sel.slice(0, 5).map((o, k) => (\n                          <li key={o.p.name} style={{ animationDelay: `${k * 40}ms` }}>\n                            <span className=\"hb-yd2-av\" style={{ width: 26, height: 26, fontSize: 10, background: tone(o.p.name) }}>\n                              {initials(o.p.name)}\n                            </span>\n                            <b>{o.p.name}</b>\n                            <span>{o.kind}</span>\n                          </li>\n                        ))}\n                      </ul>\n                    ) : (\n                      <span className=\"hb-yd2-empty\">{HOLIDAYS[day] ? \"Offices are closed.\" : \"No approved leave on this day.\"}</span>\n                    )}\n                  </div>\n                </div>\n              </section>\n\n              <section className=\"hb-yd2-card\" style={{ \"--d\": 4 } as React.CSSProperties} aria-label=\"Upcoming reviews\">\n                <div className=\"hb-yd2-ch\">\n                  <div>\n                    <h3 className=\"hb-yd2-ct\">Upcoming reviews</h3>\n                    <p className=\"hb-yd2-cs\">Self review, peer feedback, manager review</p>\n                  </div>\n                </div>\n                <ul className=\"hb-yd2-rev\">\n                  {REVIEWS.map((r) => (\n                    <li key={r.name}>\n                      <span className=\"hb-yd2-av\" style={{ width: 34, height: 34, background: tone(r.name) }}>\n                        {initials(r.name)}\n                      </span>\n                      <div className=\"hb-yd2-rev-t\">\n                        <b>{r.name}</b>\n                        <span>\n                          {r.type} · {r.role}\n                        </span>\n                        <span className=\"hb-yd2-steps\" role=\"img\" aria-label={`${r.step} of 3 steps complete`}>\n                          {[0, 1, 2].map((k) => (\n                            <i key={k} data-on={k < r.step} />\n                          ))}\n                        </span>\n                      </div>\n                      <span className=\"hb-yd2-date\">\n                        <span>{r.m}</span>\n                        <b>{r.d}</b>\n                      </span>\n                    </li>\n                  ))}\n                </ul>\n              </section>\n            </div>\n\n            <section className=\"hb-yd2-card\" style={{ \"--d\": 5 } as React.CSSProperties} aria-label=\"Team directory\">\n              <div className=\"hb-yd2-ch\">\n                <div>\n                  <h3 className=\"hb-yd2-ct\">Team directory</h3>\n                  <p className=\"hb-yd2-cs\">\n                    {t === \"All\" ? \"Recently active across all teams\" : `${t}, ${headNow} people`}\n                  </p>\n                </div>\n                <button type=\"button\" className=\"hb-yd2-link-btn\">\n                  View all {t === \"All\" ? 214 : headNow}\n                  <Ico n=\"arrow\" className=\"\" />\n                </button>\n              </div>\n              <div className=\"hb-yd2-dir\">\n                {people.map((p, i) => (\n                  <article className=\"hb-yd2-person\" key={p.name} style={{ animationDelay: `${i * 50}ms` }}>\n                    <span className=\"hb-yd2-person-av\">\n                      <span className=\"hb-yd2-av\" style={{ width: 42, height: 42, fontSize: 13, background: tone(p.name) }}>\n                        {initials(p.name)}\n                      </span>\n                      <i style={{ background: STATUS_COLOR[p.status] }} title={STATUS_LABEL[p.status]} />\n                    </span>\n                    <b>{p.name}</b>\n                    <span>{p.role}</span>\n                    <span className=\"hb-yd2-tag\" style={{ \"--c\": DEPT_COLOR[p.dept] } as React.CSSProperties}>\n                      {p.dept}\n                    </span>\n                    <div className=\"hb-yd2-person-f\">\n                      <span>\n                        {p.city} · {p.time}\n                      </span>\n                      <div>\n                        <button type=\"button\" className=\"hb-yd2-sbtn\" aria-label={`Email ${p.name}`}>\n                          <Ico n=\"mail\" className=\"\" />\n                        </button>\n                        <button type=\"button\" className=\"hb-yd2-sbtn\" aria-label={`Message ${p.name}`}>\n                          <Ico n=\"chat\" className=\"\" />\n                        </button>\n                      </div>\n                    </div>\n                  </article>\n                ))}\n              </div>\n            </section>\n          </div>\n        </div>\n      </div>\n    </div>\n  );\n}\n"
    }
  ]
}