:root {
  font-family: Inter, Segoe UI, system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f7f8fb;
  color: #222;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
}

header h1 {
  margin: 0;
}

header p {
  margin-top: 8px;
  color: #4b5563;
}

.card {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  margin-top: 16px;
  border: 1px solid #e5e7eb;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.95rem;
}

.check-label {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
}

.check-label input[type='checkbox'] {
  width: 18px;
  height: 18px;
  margin: 0;
}

input,
select,
button {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font-size: 0.95rem;
}

small {
  color: #6b7280;
}

.actions {
  display: flex;
  align-items: end;
  gap: 10px;
  grid-column: 1 / -1;
}

button {
  cursor: pointer;
  background: #111827;
  color: #fff;
  border: none;
}

button[type='button'] {
  background: #334155;
}

button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.status {
  margin-bottom: 12px;
  font-weight: 600;
}

.chart-title {
  margin: 14px 0 10px;
  font-size: 1rem;
}

.slider-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.slider-row input[type='range'] {
  padding: 0;
}

.slider-row span {
  min-width: 78px;
  text-align: right;
  font-weight: 600;
}

.chart-container {
  position: relative;
  width: 100%;
  height: 320px;
  max-height: 320px;
}

.chart-container canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.map {
  width: 100%;
  height: 340px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  margin-top: 8px;
}

.map-hint {
  margin: 8px 0 0;
  color: #4b5563;
  font-size: 0.92rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.stat-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px;
}

.stat-item strong {
  display: block;
  color: #374151;
  margin-bottom: 4px;
}

.hidden {
  display: none;
}
