.oshc-estimator {
  --purple-900: #4d0c80;
  --purple-600: #7b3bb5;
  --purple-050: #f3ecfa;
  --orange-600: #fc9a03;
  --orange-700: #e07d00;
  --ink: #2c2530;
  --muted: #6b6b78;
  --bg: #f5f3f8;
  --card: #ffffff;
  --line: #e7e2ee;
  font-family: 'Work Sans', system-ui, sans-serif;
  color: var(--ink);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.oshc-estimator *,
.oshc-estimator *::before,
.oshc-estimator *::after { box-sizing: border-box; }

.oshc-step-panel { display: none; }
.oshc-step-panel.active { display: block; }

.oshc-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 36px;
  box-shadow: 0 1px 2px rgba(77, 12, 128, 0.04),
              0 14px 40px rgba(77, 12, 128, 0.09);
}

.oshc-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--orange-600), var(--orange-700));
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
  box-shadow: 0 4px 12px rgba(224, 125, 0, 0.28);
}

.oshc-card-title {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--purple-900);
}
.oshc-card-subtitle {
  color: var(--muted);
  font-size: 15px;
  margin: 8px 0 26px;
  line-height: 1.55;
  max-width: 52ch;
}
.oshc-card-subtitle strong { color: var(--purple-900); font-weight: 700; }

.oshc-field-group { margin-bottom: 24px; }
.oshc-field-group > label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.005em;
  margin-bottom: 12px;
  color: var(--ink);
}
.oshc-hint { display: block; font-weight: 400; font-size: 12px; color: var(--muted); margin-top: 3px; }

.oshc-slider-container {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 24px 20px;
}
.oshc-slider-value-display {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--purple-900);
  font-variant-numeric: tabular-nums;
}
.oshc-slider-ccs-display { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.oshc-slider-ccs-display strong { color: var(--orange-700); font-weight: 700; }

.oshc-slider-container input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  background: transparent;
  cursor: pointer;
  /* Vertical padding enlarges the grabbable area around the thumb without
     changing the visual track height. */
  margin: 10px 0;
  padding: 12px 0;
  touch-action: pan-y;
}
/* Track */
.oshc-slider-container input[type="range"]::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  background: var(--purple-050);
}
.oshc-slider-container input[type="range"]::-moz-range-track {
  height: 8px;
  border-radius: 999px;
  background: var(--purple-050);
}
/* Thumb */
.oshc-slider-container input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--purple-600);
  border: 3px solid #fff;
  box-shadow: 0 1px 4px rgba(77, 12, 128, 0.35);
  margin-top: -8px; /* centre 24px thumb on 8px track */
}
.oshc-slider-container input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--purple-600);
  border: 3px solid #fff;
  box-shadow: 0 1px 4px rgba(77, 12, 128, 0.35);
}
.oshc-slider-container input[type="range"]:focus-visible {
  outline: 3px solid rgba(123, 59, 181, 0.35);
  outline-offset: 6px;
  border-radius: 999px;
}
.oshc-slider-labels {
  display: flex; justify-content: space-between;
  font-size: 11px; font-weight: 500; color: var(--muted); margin-top: 12px;
  font-variant-numeric: tabular-nums;
}

.oshc-btn-row { display: flex; justify-content: space-between; align-items: center; margin-top: 30px; gap: 12px; }
.oshc-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: inherit; font-weight: 700; font-size: 15px;
  letter-spacing: -0.01em;
  padding: 13px 24px; border-radius: 12px; border: none; cursor: pointer;
  transition: transform .1s ease, background .15s ease, box-shadow .18s ease, color .15s ease;
}
.oshc-btn:active { transform: translateY(1px); }
.oshc-btn svg { width: 18px; height: 18px; }
.oshc-btn-primary { background: var(--purple-900); color: #fff; box-shadow: 0 8px 20px rgba(77,12,128,.30); }
.oshc-btn-primary:hover { background: var(--purple-600); box-shadow: 0 10px 24px rgba(123,59,181,.34); transform: translateY(-1px); }
.oshc-btn-primary:hover svg { transform: translateX(2px); }
.oshc-btn-primary svg { transition: transform .18s ease; }
.oshc-btn-secondary { background: var(--purple-050); color: var(--purple-900); }
.oshc-btn-secondary:hover { background: #e9ddf6; }
.oshc-btn-ghost { background: transparent; color: var(--muted); }
.oshc-btn-ghost:hover { color: var(--purple-900); background: var(--bg); }

.oshc-results-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 4px;
}
.oshc-results-grid[data-count="1"] {
  grid-template-columns: minmax(0, 400px);
  justify-content: center;
}

.oshc-result-card {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px 24px;
  text-align: center;
}
.oshc-result-card.oshc-highlight {
  background: linear-gradient(165deg, #ffffff 0%, #faf6ff 100%);
  border-color: rgba(123, 59, 181, 0.35);
  box-shadow: 0 10px 28px rgba(123, 59, 181, .13);
}
.oshc-result-card.oshc-highlight::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--purple-900), var(--purple-600));
}
.oshc-result-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--purple-600);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.oshc-result-value {
  font-size: 46px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin: 14px 0 8px;
  font-variant-numeric: tabular-nums;
}
.oshc-result-per { font-size: 12px; color: var(--muted); letter-spacing: -0.005em; }

.oshc-results-grid[data-count="1"] .oshc-result-value { font-size: 52px; }

@media (max-width: 560px) {
  .oshc-card { padding: 24px; border-radius: 18px; }
  .oshc-card-title { font-size: 23px; }
  .oshc-results-grid { grid-template-columns: 1fr; }
  .oshc-result-value,
  .oshc-results-grid[data-count="1"] .oshc-result-value { font-size: 38px; }
  .oshc-btn { padding: 12px 18px; font-size: 14px; }

  /* Larger handle + grab area for easier touch dragging on mobile */
  .oshc-slider-container input[type="range"] { padding: 16px 0; }
  .oshc-slider-container input[type="range"]::-webkit-slider-thumb {
    width: 34px;
    height: 34px;
    margin-top: -13px; /* centre 34px thumb on 8px track */
  }
  .oshc-slider-container input[type="range"]::-moz-range-thumb {
    width: 34px;
    height: 34px;
  }
}
