:root {
  --bg: #f4f6f8;
  --panel: #ffffff;
  --border: #d7dde3;
  --text: #1f2933;
  --muted: #6b7280;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
}

#map {
  height: 500px;
  width: 100%;
  border-radius: 10px;
}

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  background: #0f172a;
  color: white;
  padding: 16px 24px;
  font-size: 20px;
  font-weight: 700;
}

.content {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 20px;
  padding: 20px;
}

.left-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.right-column {
  display: flex;
  flex-direction: column;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.panel h2 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 20px;
}

.panel p.help {
  margin-top: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.form-section {
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid #eef2f6;
}

.form-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.form-section h3 {
  margin: 0 0 12px 0;
  font-size: 15px;
}

.error-message {
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid #f5c2c7;
  background: #f8d7da;
  color: #842029;
  border-radius: 8px;
  font-size: 14px;
}

.btn:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  opacity: 0.7;
}

label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
}

input,
select,
textarea,
button {
  width: 100%;
  font: inherit;
}

input,
select,
textarea {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: white;
  margin-bottom: 12px;
}

textarea {
  min-height: 100px;
  resize: vertical;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.radio-group {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  margin-bottom: 0;
}

.radio-group input {
  width: auto;
  margin: 0;
}

.btn {
  border: none;
  border-radius: 8px;
  padding: 11px 14px;
  cursor: pointer;
  font-weight: 600;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: #e5e7eb;
  color: #111827;
}

.preview {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

pre {
  margin: 0;
  background: #0b1020;
  color: #dbeafe;
  padding: 14px;
  border-radius: 10px;
  overflow: auto;
  font-size: 13px;
  line-height: 1.45;
}

.actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.actions .btn {
  width: auto;
}

@media (max-width: 960px) {
  .content {
    grid-template-columns: 1fr;
  }
}