.halo-activity-calendar {
  --hac-color: #216e39;
  --hac-cell: 12px;
  --hac-gap: 3px;
  box-sizing: border-box;
  width: 100%;
  margin: 1.5rem 0;
  color: inherit;
  font: 13px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.hac-shell { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; }
.hac-card { min-width: 0; border: 1px solid color-mix(in srgb, currentColor 18%, transparent); border-radius: 8px; padding: 14px; background: color-mix(in srgb, currentColor 2%, transparent); }
.hac-header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.hac-title { margin: 0; font-size: 15px; font-weight: 600; }
.hac-total { opacity: .7; white-space: nowrap; font-size: 12px; }
.hac-scroll { overflow-x: auto; padding-bottom: 5px; scrollbar-width: thin; }
.hac-chart { width: max-content; min-width: 100%; }
.hac-months { display: grid; grid-auto-flow: column; grid-auto-columns: var(--hac-cell); column-gap: var(--hac-gap); height: 20px; margin-left: 32px; }
.hac-month { white-space: nowrap; font-size: 11px; opacity: .72; }
.hac-body { display: flex; gap: 7px; }
.hac-weekdays { display: grid; grid-template-rows: repeat(7, var(--hac-cell)); row-gap: var(--hac-gap); width: 25px; font-size: 10px; opacity: .7; }
.hac-weekdays span { height: var(--hac-cell); line-height: var(--hac-cell); }
.hac-days { display: grid; grid-template-rows: repeat(7, var(--hac-cell)); grid-auto-flow: column; grid-auto-columns: var(--hac-cell); gap: var(--hac-gap); }
.hac-day { width: var(--hac-cell); height: var(--hac-cell); box-sizing: border-box; border: 1px solid color-mix(in srgb, currentColor 8%, transparent); border-radius: 2px; background: color-mix(in srgb, currentColor 5%, transparent); cursor: default; padding: 0; }
.hac-day[data-level="1"] { background: color-mix(in srgb, var(--hac-color) 28%, transparent); }
.hac-day[data-level="2"] { background: color-mix(in srgb, var(--hac-color) 48%, transparent); }
.hac-day[data-level="3"] { background: color-mix(in srgb, var(--hac-color) 72%, transparent); }
.hac-day[data-level="4"] { background: var(--hac-color); }
.hac-day:focus-visible { outline: 2px solid var(--hac-color); outline-offset: 1px; }
.hac-legend { display: flex; justify-content: flex-end; align-items: center; gap: 4px; margin-top: 9px; font-size: 11px; opacity: .75; }
.hac-legend i { display: block; width: var(--hac-cell); height: var(--hac-cell); border-radius: 2px; background: color-mix(in srgb, currentColor 5%, transparent); }
.hac-legend i:nth-of-type(2) { background: color-mix(in srgb, var(--hac-color) 28%, transparent); }
.hac-legend i:nth-of-type(3) { background: color-mix(in srgb, var(--hac-color) 48%, transparent); }
.hac-legend i:nth-of-type(4) { background: color-mix(in srgb, var(--hac-color) 72%, transparent); }
.hac-legend i:nth-of-type(5) { background: var(--hac-color); }
.hac-years { display: flex; flex-direction: column; gap: 5px; min-width: 72px; }
.hac-year { border: 0; border-radius: 6px; padding: 8px 12px; color: inherit; background: transparent; cursor: pointer; text-align: center; }
.hac-year:hover { background: color-mix(in srgb, currentColor 7%, transparent); }
.hac-year[aria-current="true"] { color: #fff; background: var(--hac-color); }
.hac-loading, .hac-error { min-height: 130px; display: grid; place-items: center; opacity: .68; }
.hac-tooltip { position: fixed; z-index: 2147483000; max-width: min(360px, calc(100vw - 24px)); max-height: 260px; overflow: auto; padding: 9px 11px; border-radius: 7px; color: #fff; background: #24292f; box-shadow: 0 8px 25px rgba(0,0,0,.3); font-size: 12px; pointer-events: none; }
.hac-tooltip[hidden] { display: none; }
.hac-tooltip strong { display: block; margin-bottom: 5px; }
.hac-tooltip-user { margin-top: 5px; color: #d0d7de; }
@media (max-width: 700px) {
  .hac-shell { display: block; }
  .hac-years { flex-direction: row; overflow-x: auto; margin-top: 10px; }
  .hac-year { padding: 7px 11px; }
  .hac-card { padding: 12px 9px; }
}
@media (prefers-color-scheme: dark) {
  .hac-tooltip { color: #f0f6fc; background: #161b22; border: 1px solid #30363d; }
}
