.portal-chart {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.125rem 1.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.portal-chart__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
}

.portal-chart__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-section-label);
}

.portal-chart__value {
  margin-top: 0.125rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-1);
  font-variant-numeric: tabular-nums;
}

.portal-chart__delta {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.1875rem 0.5rem;
  border-radius: var(--radius-pill);
}

.portal-chart__delta.is-up {
  color: var(--color-green-dark);
  background: var(--color-green-light);
}

.portal-chart__delta.is-down {
  color: var(--color-red);
  background: var(--color-red-light);
}

.portal-chart__svg {
  width: 100%;
  height: 15rem;
  display: block;
  overflow: visible;
}

.portal-chart__gridline {
  stroke: var(--color-border-light);
  stroke-width: 1;
  stroke-dasharray: 3 3;
}

.portal-chart__axis-label {
  font-family: var(--font-sans);
  font-size: 10.5px;
  fill: var(--color-text-5);
}

.portal-chart__line {
  fill: none;
  stroke: var(--color-blue);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.portal-chart__scrub {
  stroke: var(--color-text-5);
  stroke-width: 1;
  stroke-dasharray: 2 3;
  opacity: 0.6;
}

.portal-chart__dot {
  fill: var(--color-blue);
  stroke: var(--color-surface);
  stroke-width: 2;
}

.portal-chart__tooltip {
  position: absolute;
  transform: translateX(-50%);
  top: 4rem;
  padding: 0.4375rem 0.625rem;
  background: var(--color-tooltip-bg);
  color: var(--color-tooltip-text);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: var(--shadow-md);
  z-index: 2;
}

.portal-chart__tooltip-date {
  font-size: 0.6875rem;
  opacity: 0.7;
}

.portal-chart__tooltip-value {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
