.hv-visual.hv-dashboard {
  padding: 18px;
  container-type: inline-size;
  background: linear-gradient(145deg, #e9e3f1, #f1ecf6);
}
.hvd-window {
  overflow: hidden;
  border: 1px solid #d5c9e2;
  border-radius: 18px;
  background: #fff;
  box-shadow:
    0 12px 24px #49365f0b,
    0 3px 0 #dacee6;
}
.hvd-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.hvd-topbar img {
  width: 109px;
  height: auto;
}
.hvd-topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hvd-replay {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  padding: 6px;
  color: #655773;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}
.hvd-replay:hover {
  background: #f4f0f8;
  color: var(--purple);
}
.hvd-replay:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
}
.hvd-replay svg {
  width: 17px;
  height: 17px;
}
.hvd-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.hvd-example {
  padding: 4px 8px;
  border-radius: 5px;
  background: #f4f0f8;
  font-size: 0.8125rem;
  color: #655773;
  white-space: nowrap;
}
.hvd-content {
  padding: 20px;
}
.hvd-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.hvd-heading h3 {
  font-size: 1.125rem;
  line-height: 1.3;
  letter-spacing: -0.045em;
}
.hvd-period {
  color: #655773;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 9px;
  font-size: 0.875rem;
}
.hvd-metrics {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1fr;
  gap: 9px;
  margin: 0;
}
.hvd-metric {
  min-width: 0;
  background: #f7f5fa;
  border: 1px solid #ece6f2;
  border-radius: 10px;
  padding: 13px 11px;
}
.hvd-metric-value {
  background: #eee7f5;
  border-color: #dbcee8;
}
.hvd-metric dt {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  min-height: 61px;
  font-size: 0.875rem;
  line-height: 1.4;
  color: #655773;
}
.hvd-metric svg {
  width: 19px;
  height: 19px;
  color: var(--purple);
}
.hvd-metric:last-child svg {
  color: #387e6b;
}
.hvd-metric dd {
  margin: 7px 0 0;
  color: #4f376f;
  font-size: 1.875rem;
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.15;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.hvd-unit {
  margin-left: 2px;
  font-size: 1.25rem;
}
.hvd-chart {
  margin-top: 20px;
}
.hvd-chart-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 5px 14px;
  margin-bottom: 10px;
}
.hvd-chart h4 {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: -0.025em;
}
.hvd-chart-heading > span {
  color: var(--muted);
  font-size: 0.8125rem;
}
.hvd-graph {
  display: block;
  width: 100%;
  height: auto;
  max-height: 164px;
  overflow: visible;
}
.hvd-grid {
  stroke: #e8e2ee;
  stroke-width: 1;
  stroke-dasharray: 3 5;
}
.hvd-axis {
  fill: #736c7a;
  stroke: none;
  font:
    13px Manrope,
    sans-serif;
}
.hvd-area {
  fill: url(#hvd-chart-fill);
  stroke: none;
}
.hvd-line {
  stroke: var(--purple);
  stroke-width: 3;
  fill: none;
}
.hvd-chart-points {
  fill: #fff;
  stroke: var(--purple);
  stroke-width: 2;
}
.hvd-chart-points circle {
  transform-box: fill-box;
  transform-origin: center;
}
.hvd-weeks {
  display: flex;
  justify-content: space-between;
  padding-left: 30px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.8125rem;
}
.hvd-patient-mix {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 17px;
  margin-top: 12px;
  color: #655773;
  font-size: 0.875rem;
  line-height: 1.5;
}
.hvd-activity {
  margin-top: 18px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.hvd-activity-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding-block: 10px;
}
.hvd-activity-row + .hvd-activity-row {
  border-top: 1px solid #f0edf3;
}
.hvd-activity-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: #e9f3ee;
  border-radius: 8px;
  color: #387e6b;
}
.hvd-activity-icon svg {
  width: 17px;
  height: 17px;
}
.hvd-activity-return {
  background: #eee7f5;
  color: var(--purple);
}
.hvd-activity-row strong {
  display: block;
  font-size: 0.875rem;
  line-height: 1.5;
}
.hvd-booked {
  font-size: 0.8125rem;
  color: #387e6b;
}
@container (max-width: 430px) {
  .hvd-metrics {
    grid-template-columns: 1fr 1fr;
  }
  .hvd-metric-value {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 12px;
  }
  .hvd-metric-value dt {
    min-height: 0;
    flex-direction: row;
    align-items: center;
  }
  .hvd-metric-value dd {
    grid-column: 2;
    align-self: center;
    margin: 0;
  }
  .hvd-content,
  .hvd-topbar {
    padding: 16px;
  }
  .hvd-activity-row {
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 8px;
  }
  .hvd-activity-icon {
    width: 26px;
    height: 26px;
  }
  .hvd-booked {
    grid-column: 2;
  }
}
@container (max-width: 290px) {
  .hvd-topbar {
    gap: 9px;
    flex-wrap: wrap;
  }
  .hvd-metric-value {
    display: block;
  }
  .hvd-metric-value dd {
    margin-top: 8px;
  }
  .hvd-metric {
    padding: 11px 9px;
  }
  .hvd-weeks {
    padding-left: 0;
    font-size: 0.75rem;
  }
}
