:root { --bg: #0d1319; --panel: #151e27; --line: #2a3846; --ink: #e6edf3; --muted: #8b9bab; --accent: #4fc3f7; --amber: #ffca28; --magenta: #c2189a; --sea: #bcdcf0; }
html, body { height: 100%; margin: 0; }
body { display: flex; flex-direction: column; background: var(--bg); color: var(--ink); font: 14px/1.35 Arial, sans-serif; }
header { display: flex; align-items: center; gap: 10px; padding: 8px 14px; background: var(--panel); border-bottom: 1px solid var(--line); }
header b { color: var(--amber); letter-spacing: 2px; font-size: 1.25em; }
header span { color: var(--muted); text-transform: uppercase; letter-spacing: 1px; font-size: 0.75em; }
#find { margin-left: auto; flex: 0 1 320px; min-width: 0; }
#q { width: 100%; box-sizing: border-box; padding: 7px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-size: 0.9em; }
#map { flex: 1; background: var(--sea); }
#pos { position: absolute; left: 10px; bottom: 26px; z-index: 1000; padding: 3px 8px; border-radius: 6px; background: #000a; color: #fff; font: 12px monospace; pointer-events: none; }
#pos:empty { display: none; }

/* symbols: dark with a white halo on the light chart */
.sym { white-space: nowrap; text-align: center; line-height: 1; font: bold 11px Arial, sans-serif; color: #14306e; text-shadow: 0 0 2px #fff, 0 0 2px #fff, 0 0 3px #fff; }
.sym small { display: block; font-size: 9px; font-weight: normal; margin-top: 1px; }
.sym.ad i { display: inline-block; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid #a0136e; background: #fff8; box-sizing: border-box; }
.sym.ad.twr i { border-color: #1f5fbf; }
.sym.ad b { display: block; color: #a0136e; font-size: 11px; margin-top: 2px; }
.sym.ad.twr b { color: #1f5fbf; }
.sym.pad i { display: inline-block; width: 15px; height: 15px; line-height: 15px; border-radius: 50%; border: 1.5px solid #a0136e; color: #a0136e; background: #fff; font-style: normal; font-size: 10px; }
.sym.ip i { color: var(--magenta); font-style: normal; font-size: 14px; }
.sym.ip b { display: block; color: var(--magenta); font-size: 9px; }
.sym.obs i { font-style: normal; font-size: 13px; }
.sym.spot i { font-style: normal; font-size: 14px; color: #000; }
.sym.lmk i { display: inline-block; width: 6px; height: 6px; background: #000; }
.sym.lmk b { display: block; font-style: italic; font-weight: normal; color: #222; }
.sym.rnm { color: #000; font-size: 10px; }

.leaflet-popup-content { font: 13px/1.4 Arial, sans-serif; margin: 10px 12px; }
.leaflet-popup-content h4 { margin: 0 0 4px; }
.leaflet-popup-content code { color: #a0136e; font-weight: bold; }
.leaflet-popup-content small { color: #666; display: block; }
.leaflet-container { font: 12px Arial, sans-serif; }
.legend { background: #fff; padding: 6px 9px; border-radius: 6px; box-shadow: 0 1px 4px #0004; font-size: 11px; color: #333; max-width: 210px; }
.legend b { display: block; margin-bottom: 2px; }
@media (max-width: 520px) { header span { display: none; } .legend { display: none; } }
