.va-scale-finder {
  --va-navy: #071b4f;
  --va-green: #1fdd2c;
  --va-orange: #ff8a00;
  --va-gold: #cbb99a;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  color: var(--va-navy);
  font-family: inherit;
}

.va-scale-finder * {
  box-sizing: border-box;
}

.va-scale-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-height: 64px;
  text-align: center;
}

.va-scale-title {
  color: #111;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.15;
}

.va-scale-subtitle {
  margin-top: 5px;
  color: #6d7280;
  font-size: 13px;
}

.va-scale-audio {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  display: none !important;
  align-items: center;
  gap: 7px;
  color: #555;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.va-scale-audio:hover {
  color: var(--va-green);
}

.va-scale-audio:disabled {
  cursor: wait;
  opacity: .55;
}

.va-scale-audio svg {
  width: 21px;
  height: 21px;
}

.va-scale-meta {
  display: flex;
  justify-content: center;
  margin: 8px auto 13px;
  color: #222;
  text-align: center;
  font-size: 14px;
  line-height: 1.65;
}

.va-scale-meta strong {
  color: #111;
}

.va-scale-meta-separator {
  padding: 0 10px;
  color: #c1c4ca;
}

.va-scale-legend {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 7px;
  color: #5d6370;
  font-size: 12px;
}

.va-scale-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.va-scale-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--va-green);
}

.va-scale-legend-dot.is-root {
  background: var(--va-orange);
}

.va-scale-board-wrap {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-color: #9aa0aa #eceef2;
  scrollbar-width: thin;
}

.va-scale-board {
  min-width: 1100px;
}

.va-scale-board svg {
  display: block;
  width: 100%;
  height: auto;
}

.va-scale-view-controls {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 14px;
}

.va-scale-controls {
  width: 100%;
}

.va-scale-notes,
.va-scale-category-tabs,
.va-scale-types {
  display: grid;
  width: 100%;
}

.va-scale-notes {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  overflow: hidden;
  border-radius: 7px;
  background: #565656;
}

.va-scale-category-tabs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 520px;
  margin: 16px auto 8px;
  gap: 7px;
}

.va-scale-types {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border-radius: 6px;
  background: #d9d7dc;
}

.va-scale-button {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 7px;
  color: #111;
  text-align: center;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.15;
  transition: background .15s ease, color .15s ease;
}

.va-scale-notes .va-scale-button {
  color: #fff;
  border-right: 1px solid rgba(255, 255, 255, .12);
}

.va-scale-notes .va-scale-button:hover,
.va-scale-notes .va-scale-button.is-active {
  background: var(--va-green);
  color: #071b4f;
}

.va-scale-types .va-scale-button {
  background: #c9c7cc;
}

.va-scale-types .va-scale-button:hover,
.va-scale-types .va-scale-button.is-active {
  background: #6e95d1;
  color: #071b4f;
}

.va-scale-category-tabs .va-scale-button,
.va-scale-view-controls .va-scale-button {
  min-height: 32px;
  padding: 6px 16px;
  border-radius: 5px;
  background: #d2d0d5;
  color: #222;
  font-size: 12px;
}

.va-scale-category-tabs .va-scale-button.is-active,
.va-scale-view-controls .va-scale-button.is-active {
  background: #4d4d4f;
  color: #fff;
}

.va-scale-help {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 30px;
  padding: 24px 27px;
  border: 1px solid #e2e6ed;
  border-radius: 10px;
  background: #f7f8fa;
  color: #555e70;
  font-size: 14px;
  line-height: 1.65;
}

.va-scale-help strong {
  color: var(--va-navy);
}

@media (max-width: 1000px) {
  .va-scale-types {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .va-scale-header {
    flex-direction: column;
    gap: 10px;
  }

  .va-scale-title {
    font-size: 29px;
  }

  .va-scale-meta {
    display: block;
  }

  .va-scale-meta-separator {
    display: block;
    height: 3px;
    font-size: 0;
  }

  .va-scale-notes {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .va-scale-types {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .va-scale-help {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .va-scale-category-tabs {
    grid-template-columns: 1fr;
  }

  .va-scale-view-controls {
    justify-content: flex-start;
  }
}
