#nearest-view .nearest-banner{display:flex;align-items:center;gap:12px;padding:14px 18px;border:1px solid #dce6c9;background:#f0f4e8;border-radius:8px;margin-bottom:22px}
#nearest-view .nearest-banner p{margin:0;line-height:1.5;font-size:14px}
.nearest-pill{display:inline-block;font-size:11px;font-weight:700;letter-spacing:.6px;text-transform:uppercase;background:#dce9bf;padding:5px 9px;border-radius:5px;flex-shrink:0}
#nearest-view .nearest-stats{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:22px}
#nearest-view .nearest-stats strong{font-size:32px}
#nearest-view .nearest-endpoint{padding:22px;margin-bottom:22px}
#nearest-view h2{font-size:18px}
#nearest-view .nearest-endpoint p{font-size:13px;margin:8px 0 20px}
#nearest-view dl{display:grid;grid-template-columns:1.2fr .5fr 1fr 1.4fr;gap:18px;margin:0}
#nearest-view dt{font-size:12px;color:var(--muted);margin-bottom:7px}
#nearest-view dd{margin:0;font-size:15px;font-weight:650;overflow-wrap:anywhere}
#nearest-view .nearest-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;margin-bottom:22px}
#nearest-view .nearest-card{min-width:0}
#nearest-view .panel-heading{gap:12px;flex-wrap:wrap;padding:20px 22px}
#nearest-view .panel-heading button{font-size:13px;padding:9px 13px}
#nearest-view .nearest-records{padding:0 22px 18px}
#nearest-view .record{border-bottom:1px solid var(--border);padding:18px 0}
#nearest-view .record:last-child{border-bottom:0}
#nearest-view .record strong{font-size:15px}
#nearest-view .record p{font-size:13px;color:var(--muted);line-height:1.6;margin:8px 0 12px}
#nearest-view .record button{padding:6px 12px;font-size:13px}
#nearest-view .empty{padding:22px 0;margin:0;font-size:14px}
#nearest-view .nearest-connections{margin-bottom:22px}
#nearest-view .nearest-settings{padding:22px}
#nearest-view .nearest-settings h2{margin-bottom:8px}
#nearest-view .nearest-settings p{line-height:1.6}
#nearest-view .nearest-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
#nearest-view .nearest-footnote{margin-top:22px}
#nearest-view .nearest-results .event{padding:12px 22px;border-top:1px solid var(--border);font-size:13px;line-height:1.5;display:block}
#nearest-view #nearest-events:empty::after{content:'No beta connection results yet.';display:block;padding:22px;color:var(--muted);font-size:14px}
#nearest-view dialog{width:min(580px,calc(100vw - 32px))}
#nearest-view dialog h2{font-size:22px;margin-bottom:18px}
#nearest-view dialog small{display:block;font-size:12px;color:var(--muted);font-weight:400;line-height:1.5;margin-top:6px}
#nearest-view .nearest-check{display:flex;align-items:flex-start;gap:10px;line-height:1.5}
#nearest-view .nearest-check input{width:18px;min-height:18px;height:18px;margin:2px 0;flex-shrink:0}
#nearest-view fieldset{border:1px solid var(--border);border-radius:6px;margin:18px 0;padding:12px}
#nearest-view .form-error{color:#a33e36;font-size:14px}
#nearest-view .form-error:empty,#nearest-message:empty{display:none}
#nearest-view .nearest-map-panel{margin-bottom:22px;overflow:hidden}
#nearest-view .nearest-map-panel .panel-heading p{margin:6px 0 0}
#nearest-map{height:400px;width:100%;z-index:0;background:#e6ece8}
#nearest-view .nearest-map-footer{padding:14px 22px;display:flex;gap:16px;align-items:center;flex-wrap:wrap;font-size:12px}
#nearest-view .nearest-map-footer p{flex-basis:100%;margin:0;line-height:1.5}
#nearest-view .map-key{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:6px;background:#255647}
#nearest-view .map-key.rover{background:#236fba}
#nearest-view .map-key.stale{background:#b37614}
#nearest-view .nearest-coordinates{display:block;white-space:nowrap;font-variant-numeric:tabular-nums;font-size:13px}
#nearest-view .nearest-position-age{display:block;font-size:12px;color:var(--muted);margin:5px 0}
#nearest-view .nearest-copy{font-size:12px;padding:4px 9px}
#nearest-map .leaflet-control a{color:#234638}
#nearest-map .leaflet-popup-content{font-size:13px;line-height:1.5}
@media(max-width:520px){#nearest-map{height:320px}#nearest-view .nearest-map-footer{padding:12px 18px}}
@media(max-width:900px){#nearest-view .nearest-columns{grid-template-columns:1fr}#nearest-view dl{grid-template-columns:1fr 1fr}}
@media(max-width:520px){#nearest-view .nearest-stats{grid-template-columns:1fr;gap:10px}#nearest-view .nearest-stats article{display:grid;grid-template-columns:1fr auto;align-items:center;gap:6px}#nearest-view .nearest-stats small{grid-column:1}#nearest-view .nearest-stats strong{grid-column:2;grid-row:1 / 3}#nearest-view .nearest-banner{align-items:flex-start}#nearest-view .nearest-fields{grid-template-columns:1fr;gap:0}#nearest-view .nearest-endpoint,#nearest-view .nearest-settings{padding:18px}}
