:root {
  --bg: #0c0f12;
  --panel: #14191f;
  --ink: #e6edf3;
  --muted: #8b9aab;
  --line: #243040;
  --ours: #3db88a;
  --home: #f4f1ea;
  --heard: #3d8fd1;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.45 "IBM Plex Sans", "Segoe UI", sans-serif; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--ours); }

.top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
}
.brand .call { font-weight: 700; letter-spacing: 0.08em; margin-right: 10px; }
.brand .prod { color: var(--muted); letter-spacing: 0.18em; font-size: 12px; margin-right: 12px; }
.brand .meta { color: var(--muted); font-size: 13px; }
nav a { margin-left: 16px; color: var(--muted); }
nav a.on { color: var(--ink); border-bottom: 1px solid var(--ink); }

main { padding: 24px; }
footer { padding: 12px 24px 24px; color: var(--muted); font-size: 12px; }

.hero { border: 1px solid var(--line); padding: 20px 24px; margin-bottom: 20px; background: var(--panel); }
.state-label { text-transform: uppercase; letter-spacing: 0.16em; font-size: 13px; margin-bottom: 8px; color: var(--ours); }
.narration { font-size: 20px; max-width: 52rem; margin: 0 0 8px; }
.reason { color: var(--muted); margin: 0; }

.kpis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 20px; }
.kpis div { background: var(--panel); border: 1px solid var(--line); padding: 12px; }
.kpis span { display: block; color: var(--muted); font-size: 12px; }
.kpis strong { font-size: 18px; }

.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; }
#map { height: 520px; border: 1px solid var(--line); background: #1b222c; }
.leaflet-div-icon.igate-marker {
  background: transparent;
  border: none;
}
.igate-pin {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.igate-star {
  font-size: 26px;
  line-height: 1;
  color: #e0a106;
  text-shadow: 0 0 6px #fff, 0 1px 2px #0c0f12;
}
.igate-call {
  font: 700 11px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.06em;
  color: #0c0f12;
  background: #e0a106;
  padding: 2px 7px;
  border-radius: 2px;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.raw { max-width: 28rem; word-break: break-all; color: var(--muted); }
.ours td { color: var(--ours); }
.badge { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); padding: 1px 5px; margin-left: 6px; }
.empty { color: var(--muted); }
.warn { color: #e0a106; }
.warn[hidden] { display: none; }
.fw-banner {
  margin: 16px 24px 0;
  padding: 14px 16px;
  border: 1px solid #e0a106;
  background: #1a160c;
}
.fw-banner[hidden] { display: none; }
.fw-banner p { margin: 0 0 10px; }
.fw-banner button {
  background: var(--ours);
  color: #0c0f12;
  border: 0;
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 600;
}
.fw-banner button:disabled { opacity: 0.5; cursor: default; }
.search { display: flex; gap: 8px; align-items: center; margin: 0 0 16px; flex-wrap: wrap; }
.search input[type="search"] { background: var(--bg); color: var(--ink); border: 1px solid var(--line); padding: 6px 10px; min-width: 12rem; }
.search button { background: var(--panel); color: var(--ink); border: 1px solid var(--line); padding: 6px 12px; cursor: pointer; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wide { margin-top: 12px; }
h1 { font-size: 1.4rem; }

@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(3, 1fr); }
  #map { height: 360px; }
}
