/* Scoped, mobile-first styling: no changes to the site's global SCSS. */
#vm-results[hidden] {
  display: none !important;
}

.vm-dashboard {
  box-sizing: border-box;
  width: 100%;
  max-width: 920px;
  margin: 1rem auto 3rem;
  padding: 0 12px;
  color: #263640;
  overflow-wrap: anywhere;
}

.vm-dashboard *, .vm-dashboard *::before, .vm-dashboard *::after {
  box-sizing: border-box;
}

.vm-dashboard .vm-panel {
  min-width: 0;
  background: #fff;
  border: 1px solid #e0e8ec;
  border-radius: 16px;
  padding: clamp(16px, 3.5vw, 32px);
  box-shadow: 0 4px 20px rgba(35, 58, 69, 0.062745098);
}

.vm-dashboard h1 {
  font-size: clamp(1.55rem, 5vw, 2.25rem);
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

.vm-dashboard h2 {
  font-size: clamp(1.2rem, 4vw, 1.55rem);
  line-height: 1.3;
  margin: 0 0 0.7rem;
}

.vm-dashboard .vm-muted {
  color: #52616b;
  line-height: 1.5;
}

.vm-dashboard .vm-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.25rem 0 1rem;
}

.vm-dashboard .vm-field {
  min-width: 0;
}

.vm-dashboard label {
  display: block;
  font-weight: 650;
  margin-bottom: 0.4rem;
}

.vm-dashboard input {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 0.7rem 0.85rem;
  font: inherit;
  font-size: 16px;
  border: 1px solid #879aa5;
  border-radius: 9px;
  background: #fff;
  color: #263640;
}

.vm-dashboard input:focus-visible, .vm-dashboard .vm-button:focus-visible {
  outline: 3px solid #108542;
  outline-offset: 2px;
}

.vm-dashboard .vm-button {
  display: block;
  width: 100%;
  min-height: 48px;
  background: #108542;
  color: white;
  border: 0;
  border-radius: 9px;
  padding: 0.85rem 1.25rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.vm-dashboard .vm-button:hover {
  background: #33975e;
}

.vm-dashboard .vm-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.vm-dashboard .vm-error {
  color: #a6232b;
  min-height: 1.5rem;
  margin: 0.6rem 0 0;
  line-height: 1.4;
}

.vm-dashboard .vm-gauge {
  display: block;
  width: 100%;
  max-width: 430px;
  height: auto;
  margin: 0.75rem auto 0;
  overflow: visible;
}

.vm-dashboard .vm-gauge-needle {
  transform-box: view-box;
  transform-origin: 200px 195px;
  transition: transform 1.6s ease-in-out;
}

.vm-dashboard .vm-score {
  font-size: clamp(2rem, 8vw, 2.6rem);
  font-weight: 750;
  text-align: center;
  margin-top: -0.25rem;
}

.vm-dashboard .vm-chart-wrap {
  position: relative;
  width: 100%;
  min-width: 0;
  height: 270px;
}

.vm-dashboard .vm-chart-wrap canvas {
  display: block;
  width: 100% !important;
  max-width: 100%;
  height: 100% !important;
}

.vm-dashboard .vm-section {
  margin-top: 1.5rem;
  border-top: 1px solid #e4e9ed;
  padding-top: 1.5rem;
  min-width: 0;
}

.vm-dashboard .vm-summary {
  background: #f2f7f7;
  border-radius: 10px;
  padding: 1rem;
  margin-top: 1rem;
  line-height: 1.5;
}

.vm-dashboard .vm-caption {
  font-size: 0.87rem;
  color: #52616b;
  line-height: 1.5;
}

.vm-dashboard .vm-center {
  text-align: center;
}

@media (min-width: 600px) {
  .vm-dashboard {
    padding: 0 20px;
    margin-top: 2rem;
  }
  .vm-dashboard .vm-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .vm-dashboard .vm-button {
    width: auto;
    min-width: 210px;
  }
  .vm-dashboard .vm-chart-wrap {
    height: 340px;
  }
}
@media (max-width: 360px) {
  .vm-dashboard {
    padding: 0 8px;
  }
  .vm-dashboard .vm-panel {
    padding: 14px;
  }
  .vm-dashboard .vm-chart-wrap {
    height: 250px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .vm-gauge-needle {
    transition: none;
  }
}