.swr-hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin: 18px 0 8px;
}

.swr-hero-card {
  background: #eff6ff;
  border: 1px solid #93c5fd;
  border-radius: 12px;
  padding: 16px;
}

.swr-hero-card.warn {
  background: #fff7ed;
  border-color: #fdba74;
}

.swr-hero-card .label {
  font-size: 13px;
  font-weight: 600;
  color: #1e40af;
}

.swr-hero-card.warn .label {
  color: #9a3412;
}

.swr-hero-card .value {
  font-size: 26px;
  font-weight: 800;
  color: #1e3a8a;
  margin-top: 4px;
}

.swr-hero-card.warn .value {
  color: #7c2d12;
}

.swr-hero-card .hint {
  font-size: 12px;
  color: #4b5563;
  margin-top: 6px;
  line-height: 1.4;
}

.mode-toggle,
.scenario-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 8px 0 4px;
}

.mode-toggle label,
.scenario-toggle label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  line-height: 1.35;
  cursor: pointer;
}

.mode-toggle input,
.scenario-toggle input {
  margin-top: 3px;
}

.comparison-mini {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 16px 0;
}

.comparison-mini .col {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px 16px;
  background: #fff;
}

.comparison-mini .col h4 {
  margin: 0 0 8px;
  font-size: 14px;
  color: #374151;
}

.comparison-mini .big {
  font-size: 22px;
  font-weight: 800;
  color: #111827;
}

.comparison-mini .sub {
  font-size: 13px;
  color: #6b7280;
  margin-top: 4px;
}

.chart-wrap {
  height: 340px;
  margin: 12px 0 24px;
}

.input-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-bottom: 20px;
}

.slider-row {
  margin-bottom: 4px;
}

.slider-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
  font-weight: 600;
  font-size: 14px;
}

.slider-label span.value {
  font-weight: 500;
  color: #4b5563;
  font-size: 13px;
}

input[type="range"] {
  width: 100%;
  margin: 0;
  -webkit-appearance: none;
  background: transparent;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  background: #e5e7eb;
  border-radius: 999px;
}

input[type="range"]::-moz-range-track {
  height: 6px;
  background: #e5e7eb;
  border-radius: 999px;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #1d4ed8;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.5), 0 6px 12px rgba(15, 23, 42, 0.15);
  margin-top: -6px;
}

input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #1d4ed8;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.5), 0 6px 12px rgba(15, 23, 42, 0.15);
}

#scenarioBlock[hidden],
#simpleExtras[hidden] {
  display: none !important;
}
