:root {
  color-scheme: dark;
  --bg: #0f172a;
  --panel: #111827;
  --panel-2: #1f2937;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --border: rgba(255,255,255,0.08);
  --accent: #38bdf8;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

body { min-height: 100vh; }

.app-shell {
  display: grid;
  grid-template-columns: 360px 1fr;
  min-height: 100vh;
}

.sidebar {
  padding: 20px;
  border-right: 1px solid var(--border);
  background: linear-gradient(180deg, var(--panel), #0b1220);
  overflow-y: auto;
}

.map-panel {
  min-height: 100vh;
}

#map {
  width: 100%;
  height: 100vh;
}

h1, h2 {
  margin: 0 0 10px;
}

h1 { font-size: 1.75rem; }
h2 { font-size: 1rem; }

.card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  margin-top: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}

.status-row, .checkbox-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 10px 0;
}

.status-row span, .subtle {
  color: var(--muted);
}

.small {
  font-size: 0.9rem;
  line-height: 1.45;
}

button {
  width: 100%;
  margin-top: 12px;
  border: 0;
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--accent);
  color: #082f49;
  font-weight: 700;
  cursor: pointer;
}

button:hover { filter: brightness(1.05); }

.checkbox-row {
  justify-content: flex-start;
}

input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.gm-style .gm-style-iw-c {
  padding: 12px !important;
}

@media (max-width: 960px) {
  .app-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  #map {
    height: 70vh;
  }
}
