:root {
  --bg: #0f172a;
  --panel: #111827;
  --muted: #9ca3af;
  --accent: #22d3ee;
  --accent-2: #f59e0b;
  --stroke: rgba(255, 255, 255, 0.08);
  --radius: 16px;
  font-family: "Sora", "Inter", "Helvetica Neue", Arial, sans-serif;
  color: #e5e7eb;
  background: var(--bg);
}

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

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(120% 80% at 20% 10%, rgba(34, 211, 238, 0.18), transparent),
    radial-gradient(120% 80% at 80% 0%, rgba(245, 158, 11, 0.12), transparent),
    var(--bg);
}

.shell {
  width: min(1180px, 94vw);
  margin: 0 auto;
  padding: 32px 0 72px;
}

a {
  color: inherit;
  text-decoration: none;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-name span {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-name small {
  display: block;
  color: var(--muted);
}

.nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  font-size: 14px;
}

.hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding: 26px;
  border: 1px solid var(--stroke);
  border-radius: calc(var(--radius) * 1.4);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(15, 23, 42, 0.85));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}

.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 36px);
}

.hero p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.5;
  max-width: 760px;
}

.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--stroke);
  font-size: 13px;
  color: #fff;
}

.status-card {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.05);
  min-width: 240px;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.7);
}

.status-title {
  font-weight: 700;
}

.layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1fr;
  gap: 18px;
  margin-top: 22px;
}

.panel {
  background: rgba(17, 24, 39, 0.85);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
}

.section-header h2 {
  margin: 0;
  font-size: 18px;
}

.section-header small {
  color: var(--muted);
}

#map {
  width: 100%;
  height: 420px;
  border: 1px solid var(--stroke);
  border-radius: 12px;
}

.leaflet-container {
  background: #0b1021;
}

.instructions {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(34, 211, 238, 0.08);
  color: #bff4ff;
  font-weight: 700;
  border: 1px solid rgba(34, 211, 238, 0.25);
}

.location-card {
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
}

.location-card h3 {
  margin: 0 0 6px;
}

.location-card div {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  color: var(--muted);
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.control-group label {
  font-weight: 700;
  color: #fff;
}

select,
button {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  font-size: 15px;
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
}

select:disabled {
  color: var(--muted);
}

button {
  cursor: pointer;
  font-weight: 700;
  transition: transform 120ms, box-shadow 120ms, background 120ms;
}

button:active {
  transform: translateY(1px);
}

button:disabled {
  background: rgba(255, 255, 255, 0.07);
  color: #9ca3af;
  cursor: not-allowed;
  border-color: var(--stroke);
  box-shadow: none;
}

#run-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: none;
  color: #0b1021;
  box-shadow: 0 10px 30px rgba(34, 211, 238, 0.35);
}

#run-btn:disabled {
  background: rgba(255, 255, 255, 0.07);
  color: #9ca3af;
  box-shadow: none;
}

.ghost {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--stroke);
  color: #fff;
}

.actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.actions #run-status {
  flex: 1;
  color: var(--muted);
  font-size: 0.95rem;
}

.range-controls {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.range-controls input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

.range-controls .range-values {
  font-size: 0.95rem;
  color: var(--muted);
}

.stats {
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.stats h3 {
  margin: 0 0 8px;
}

.stat-columns {
  display: flex;
  gap: 12px;
}

.stat-columns ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.stat-columns li {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed var(--stroke);
  padding: 6px 0;
  font-size: 0.95rem;
  color: var(--muted);
}

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

.plot-card {
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.03);
}

.plot-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.plot-card h4 {
  margin: 0;
  font-size: 1rem;
  color: #fff;
}

.plot {
  width: 100%;
  height: 220px;
}

@media (max-width: 1180px) {
  .layout {
    grid-template-columns: 1fr;
  }
  #map {
    height: 360px;
  }
}
