body {
  background: #f5f5f5;
}

.bv-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px 60px 24px;
  text-align: center;
}

.bv-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 30px 0;
}

.bv-stepper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.bv-step-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--pg-primary);
  color: white;
  font-size: 1.4rem;
  cursor: pointer;
}

.bv-step-btn:hover {
  background: var(--pg-primary-dark);
}

.bv-value {
  font-size: 2.2rem;
  font-weight: 700;
  color: #2f3542;
  min-width: 50px;
}

.bv-stepper-label {
  font-size: 0.8rem;
  color: #888;
}

.bv-fraction-bar {
  font-size: 2.5rem;
  color: #2f3542;
  margin-top: -20px;
}

.bv-view-toggle {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 24px;
}

.bv-view-btn {
  padding: 8px 18px;
  border-radius: 20px;
  border: 2px solid #ccd3e0;
  background: white;
  color: #555;
  cursor: pointer;
  font-size: 0.9rem;
}

.bv-view-btn.selected {
  background: var(--pg-primary);
  border-color: var(--pg-primary);
  color: white;
  font-weight: 600;
}

.bv-visual {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  align-items: center;
  min-height: 220px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 24px;
}

.bv-info {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 20px 0;
  font-size: 1.05rem;
  color: #2f3542;
}

.bv-equiv {
  margin-top: 40px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 24px;
}

.bv-equiv__title {
  margin: 0 0 6px 0;
  color: #2f3542;
}

.bv-equiv__hint {
  margin: 0 0 16px 0;
  font-size: 0.85rem;
  color: #888;
}

.bv-equiv__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}

.bv-equiv__factor {
  font-weight: 600;
  color: #2f3542;
  min-width: 90px;
}

.bv-equiv__compare {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.bv-equiv__side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.bv-equiv__visual svg {
  width: 120px;
  height: 120px;
}

.bv-equiv__label {
  font-weight: 700;
  color: #2f3542;
}

.bv-equiv__equals {
  font-size: 2rem;
  color: #888;
}

.bv-pie-figure,
.bv-bar-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.bv-line-svg {
  width: 100%;
  max-width: 640px;
}
