* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: Georgia, 'Times New Roman', serif;
  background: #10151c; color: #e8e2d4;
  display: flex; flex-direction: column; height: 100vh;
}
.topbar {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 1rem; padding: 0.6rem 1rem; background: #171e28;
  border-bottom: 2px solid #b98a2f;
}
.topbar h1 { margin: 0; font-size: 1.45rem; letter-spacing: 0.22em; color: #e9c46a; }
.topbar .sub { margin: 0.15rem 0 0; font-size: 0.92rem; color: #b9c2cc; font-style: italic; }
.beta { margin: 0; font-size: 0.8rem; letter-spacing: 0.08em; color: #8fa3b8; white-space: nowrap; }
.layout { display: flex; flex: 1; min-height: 0; }
.panel {
  width: 300px; flex: none; overflow-y: auto; padding: 1rem;
  background: #141a22; border-right: 1px solid #2a3442;
}
.panel h2 {
  font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: #e9c46a; margin: 0 0 0.5rem;
}
.panel section { margin-bottom: 1.4rem; }
.panel p, .panel li { font-size: 0.95rem; line-height: 1.45; color: #cfd6dd; }
.layer { display: flex; align-items: center; gap: 0.5rem; padding: 0.3rem 0; cursor: pointer; font-size: 1rem; }
.layer .hint { margin-left: auto; font-size: 0.78rem; color: #7e8b99; }
.dot { width: 12px; height: 12px; flex: none; border-radius: 50%; border: 1px solid rgba(0,0,0,0.45); }
.status { font-size: 0.88rem; color: #9fb0c0; min-height: 2.4em; }
.sources { padding-left: 1.1rem; margin: 0; }
.sources li { margin-bottom: 0.55rem; }
.checked { font-size: 0.82rem; color: #7e8b99; }
#map { flex: 1; min-width: 0; background: #0b0f14; }
.leaflet-popup-content { font-family: Georgia, serif; font-size: 0.92rem; line-height: 1.4; }
.leaflet-popup-content h3 { margin: 0 0 0.35rem; font-size: 1rem; }
.leaflet-popup-content table { border-collapse: collapse; }
.leaflet-popup-content td { padding: 0.12rem 0.5rem 0.12rem 0; vertical-align: top; }
.leaflet-popup-content td.k { color: #5a6672; white-space: nowrap; }
.leaflet-popup-content .pop-links { margin: 0.5rem 0 0.2rem; line-height: 1.6; }
.leaflet-popup-content .pop-links a { color: #1a5fb4; font-weight: bold; }
@media (max-width: 720px) {
  .layout { flex-direction: column; }
  .panel { width: auto; border-right: none; border-bottom: 1px solid #2a3442; max-height: 42%; }
}
