
.bv-chart-container {
  background:
        linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01)),
        rgba(8, 10, 12, 0.46);
  padding: clamp(.9rem, 2vw, 1.25rem);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 24px;
  color: #e0e0e0;
  overflow: visible !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
  width: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: opacity .2s ease;
}

.bv-chart-container.is-loading {
  opacity: .68;
}

.chart-toggle-buttons {
  display: flex;
  gap: 1em;
  margin-bottom: 1em;
  flex-wrap: wrap;
  justify-content: center;
}

.chart-toggle-buttons button {
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.78);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  padding: 0.5em 1em;
  cursor: pointer;
  font-weight: 600;
  transition: border-color .2s ease, background .2s ease, color .2s ease, transform .2s ease;
}

.chart-toggle-buttons button:hover {
  border-color: rgba(17,228,79,.45);
  color: #fff;
  transform: translateY(-1px);
}

.chart-toggle-buttons button.active {
  background: #11E44F;
  border-color: #11E44F;
  color: #07140b;
}

.bonsai-timeline-svg {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  overflow: visible !important;
  margin-inline: auto;
  flex: 1 1 auto;
  cursor: zoom-in;
}

.bonsai-timeline-svg:focus-visible {
  outline: 2px solid rgba(17,228,79,.75);
  outline-offset: 10px;
  border-radius: 20px;
}

.chart-point {
  fill: var(--bv-accent);
  stroke: #0b0b0b;
  stroke-width: 1.5;
  transition: all 0.3s ease;
  filter: drop-shadow(0 0 6px rgba(17,228,79,.3));
}

.chart-point:hover {
  fill: #52ff84;
  filter: drop-shadow(0 0 8px rgba(17,228,79,.55));
}

.bv-timeline-chart-modal-open {
  overflow: hidden;
}

.bv-timeline-chart-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 3vw, 2rem);
  background: rgba(5, 8, 10, .82);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}

.bv-timeline-chart-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.bv-timeline-chart-modal__dialog {
  position: relative;
  width: min(96vw, 1440px);
  max-width: 1440px;
  max-height: 92vh;
  overflow: auto;
}

.bv-timeline-chart-modal__content .bv-chart-container {
  width: min(96vw, 1440px);
  max-width: 1440px;
  min-height: 0;
  padding: clamp(1rem, 2vw, 1.5rem);
}

.bv-timeline-chart-modal__content .bonsai-timeline-svg {
  cursor: default;
}

.bv-timeline-chart-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  background: rgba(7, 12, 10, .72);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.bv-timeline-chart-modal__close:hover,
.bv-timeline-chart-modal__close:focus-visible {
  transform: scale(1.04);
  border-color: rgba(17,228,79,.45);
  background: rgba(9, 17, 13, .88);
}

@media (max-width: 768px) {
  .bv-chart-container {
    padding: .85rem .65rem 1rem;
  }

  .chart-toggle-buttons {
    gap: .5rem;
  }

  .chart-toggle-buttons button {
    padding: .45rem .9rem;
    font-size: .85rem;
  }
}
