.nbu-chart-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-height: 410px;
  margin-right: 0;
  padding: 18px 20px;
  border: 1px solid #dbeafa;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 22px 55px #254c7c0e;
  z-index: 1;
}
.nbu-chart-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.nbu-chart-heading h2 { margin-top: 4px; font-size: 18px; line-height: 1.2; }
.nbu-chart-heading .eyebrow { font-size: 8px; line-height: 1.3; }
.nbu-data-badge { flex-shrink: 0; padding: 3px 7px; border: 1px solid #dbeeff; border-radius: 5px; background: #edf6ff; color: #0c61bf; font-size: 9px; line-height: 1.5; }
.nbu-rate-summary { display: flex; align-items: baseline; margin: 8px 0 6px; gap: 10px; }
.nbu-rate-summary strong { font: 700 36px/1 'Manrope', Arial, sans-serif; letter-spacing: -.04em; }
.nbu-rate-summary > span { color: #536c84; font-size: 11px; line-height: 1.5; }
#nbu-rate-asof { display: block; }
#nbu-rate-asof { color: #536c84; font-size: 10px; line-height: 1.5; }
.nbu-chart-periods { display: flex; flex-shrink: 0; gap: 4px; margin: 0 0 2px; }
.nbu-chart-card [data-nbu-period] {
  min-height: 28px;
  padding: 5px 11px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #536c84;
  font-size: 10px;
  line-height: 1.4;
}
.nbu-chart-card [data-nbu-period][aria-pressed="true"] { background: #eaf4ff; border-color: #dceeff; color: #0c61bf; font-weight: 700; }
.nbu-chart-card [data-nbu-period]:hover { color: var(--blue, #1478e8); }
.nbu-chart-stage { position: relative; flex-shrink: 0; min-width: 0; height: 150px; }
#nbu-chart { display: block; width: 100%; height: 100%; overflow: hidden; touch-action: pan-y; user-select: none; }
.nbu-grid-line { stroke: #e4edf6; stroke-width: 1; stroke-dasharray: 3 4; }
.nbu-axis-label { fill: #536c84; font: 11px 'Manrope', Arial, sans-serif; }
.nbu-step-line { fill: none; stroke: var(--blue, #1478e8); stroke-width: 2.5; stroke-linejoin: round; }
.nbu-chart-cursor { stroke: #7bbcff; stroke-width: 1; stroke-dasharray: 3 3; }
.nbu-chart-dot { fill: #fff; stroke: var(--blue, #1478e8); stroke-width: 2.5; }
.nbu-chart-tooltip {
  position: absolute;
  z-index: 3;
  max-width: calc(100% - 8px);
  padding: 6px 9px;
  border: 1px solid #dceeff;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 4px 18px #112b4714;
  color: var(--ink, #112b47);
  font: 600 10px/1.4 'Manrope', Arial, sans-serif;
  white-space: nowrap;
  pointer-events: none;
}
.nbu-chart-tooltip[hidden] { display: none; }
#nbu-chart-readout { min-height: 18px; color: var(--ink, #112b47); font-size: 11px; line-height: 18px; font-variant-numeric: tabular-nums; }
#nbu-chart-position {
  display: block;
  flex-shrink: 0;
  width: 100%;
  min-width: 0;
  height: 16px;
  margin: 3px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  accent-color: var(--blue, #1478e8);
  cursor: ew-resize;
}
.nbu-chart-footer {
  display: flex;
  flex-wrap: wrap;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  gap: 4px 12px;
  min-width: 0;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid #eaf0f6;
  color: #536c84;
  font-size: 10px;
  line-height: 1.4;
}
#nbu-chart-source { color: #0c61bf; }
#nbu-chart-source:hover { text-decoration: underline; text-underline-offset: 3px; }
#nbu-chart-status { margin-top: 5px; color: #536c84; font-size: 10px; line-height: 1.4; }
.nbu-chart-card[data-nbu-state="loading"] .nbu-chart-stage,
.nbu-chart-card[data-nbu-state="unavailable"] .nbu-chart-stage { background: linear-gradient(180deg, #f4f9ff, #fff); border-radius: 8px; }
@media (max-width: 620px) {
  .nbu-chart-card { max-height: 360px; padding: 12px 16px; }
  .nbu-chart-heading h2 { font-size: 17px; }
  .nbu-rate-summary { margin-top: 7px; margin-bottom: 5px; }
  .nbu-rate-summary strong { font-size: 32px; }
  .nbu-chart-stage { height: 110px; }
  .nbu-chart-card [data-nbu-period] { min-height: 27px; padding: 5px 10px; }
  #nbu-chart-readout { min-height: 17px; font-size: 10px; line-height: 17px; }
  .nbu-chart-footer { font-size: 10px; gap: 3px 7px; }
  .nbu-axis-label { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .nbu-chart-card *, .nbu-chart-card *::before, .nbu-chart-card *::after { transition: none !important; }
}
