:root {
  --app-bg: #f5f7fb;
  --card-border: #e5e8ef;
  --muted: #64748b;
  --accent: #0d6efd;
  --hero-bg: linear-gradient(135deg, #ffffff 0%, #eef6ff 55%, #f8fbff 100%);
}

body {
  background: linear-gradient(180deg, #f8fbff 0%, var(--app-bg) 100%);
}

.navbar-brand {
  letter-spacing: -0.02em;
}

.card {
  border: 1px solid var(--card-border);
  border-radius: 1rem;
}

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.display-title {
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-copy {
  max-width: 54rem;
}

.scenario-hero {
  background: var(--hero-bg);
}

.hero-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.hero-chip {
  padding: 0.55rem 0.85rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #d7e7ff;
  border-radius: 999px;
  color: #234;
  font-size: 0.9rem;
  font-weight: 600;
}

.compact-form .form-label {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.compact-form .form-text {
  font-size: 0.78rem;
}

.compact-form .form-control,
.compact-form .form-select {
  min-height: 2.9rem;
  border-radius: 0.8rem;
}

.form-section .card-body {
  padding: 1.6rem;
}

.section-head {
  margin-bottom: 0.8rem;
}

.section-head p:last-child {
  max-width: 46rem;
}

.comparison-table th {
  white-space: nowrap;
  font-size: 0.85rem;
}

.comparison-table td {
  min-width: 115px;
  font-size: 0.92rem;
}

.empty-state {
  border-style: dashed;
}

.result-sidebar {
  width: 100%;
  max-width: 360px;
}

.result-card {
  position: sticky;
  top: 5.5rem;
}

.result-list {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.55rem 1rem;
  margin: 0;
}

.result-list dt {
  color: var(--muted);
  margin: 0;
}

.result-list dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}

canvas {
  max-height: 320px;
}

.cost-grid {
  display: grid;
  gap: 1rem;
}

.cost-row {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(180px, 1fr) minmax(180px, 1fr);
  gap: 1rem;
  padding: 1rem;
  border: 1px solid #e7edf5;
  border-radius: 1rem;
  background: #fbfcfe;
}

.cost-row-title h3 {
  font-size: 1rem;
  margin: 0 0 0.2rem;
}

.cost-row-title p {
  color: var(--muted);
  margin: 0;
  font-size: 0.9rem;
}

.scenario-actions {
  position: sticky;
  bottom: 0;
  background: linear-gradient(180deg, rgba(245, 247, 251, 0) 0%, rgba(245, 247, 251, 0.98) 34%, rgba(245, 247, 251, 1) 100%);
}

@media (max-width: 1199px) {
  .result-sidebar {
    max-width: none;
  }

  .result-card {
    position: static;
  }
}

@media (max-width: 991px) {
  .cost-row {
    grid-template-columns: 1fr;
  }

  .scenario-actions {
    position: static;
    background: transparent;
  }
}
