:root {
  --bg: #14161a;
  --panel: #1c2027;
  --line: #2c323c;
  --fg: #e6e9ee;
  --dim: #8b94a3;
  --accent: #5aa9e6;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font: 13px/1.4 ui-sans-serif, system-ui, "Segoe UI", Roboto, sans-serif;
  overflow: hidden;
}
#map { position: absolute; inset: 34px 0 26px 0; background: var(--bg); }

#bar, #status {
  position: absolute; left: 0; right: 0;
  display: flex; align-items: center; gap: 10px;
  padding: 0 12px;
  background: var(--panel);
  border-color: var(--line);
  z-index: 500;
}
#bar { top: 0; height: 34px; border-bottom: 1px solid var(--line); font-weight: 600; }
#status { bottom: 0; height: 26px; border-top: 1px solid var(--line); color: var(--dim); font-variant-numeric: tabular-nums; }
.sep { flex: 0 0 1px; align-self: stretch; background: var(--line); margin: 6px 2px; }
#status .sep { margin: 5px 2px; }
.chip {
  font-weight: 500;
  color: var(--accent);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 7px;
}

/* Тайлы карты — без сглаживания на переувеличении:
   редактор вычитывает текст, ему нужен честный пиксель, а не мыло. */
.leaflet-container { background: var(--bg); outline: none; }
.leaflet-tile { image-rendering: pixelated; }
.leaflet-control-attribution { display: none; }
.leaflet-bar a {
  background: var(--panel); color: var(--fg); border-bottom-color: var(--line);
}
.leaflet-bar a:hover { background: #262c35; color: var(--fg); }

#gate {
  position: absolute; inset: 0; z-index: 1000;
  display: grid; place-items: center;
  background: var(--bg);
}
/* Селектор по id перебивает браузерное [hidden]{display:none} по
   специфичности, поэтому скрытие приходится задавать явно — иначе
   заглушка висит поверх исправно работающей карты. */
#gate[hidden] { display: none; }
.gate-box { max-width: 420px; padding: 24px; text-align: center; }
.gate-box h1 { font-size: 17px; margin: 0 0 10px; }
.gate-box p { color: var(--dim); margin: 0; }
code { background: var(--panel); border: 1px solid var(--line); border-radius: 3px; padding: 1px 5px; }
