* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; font-family: system-ui, sans-serif; background: #111; color: #eee; }
#map { position: absolute; inset: 0; }
button, input { font: inherit; }
button { background: #e8484f; color: #fff; border: 0; border-radius: 8px; padding: 8px 12px; cursor: pointer; white-space: nowrap; }
button:disabled { opacity: .4; cursor: default; }
button.ghost { background: #2a2a2e; border: 1px solid #444; }
input:not([type]) , input[type=text] { flex: 1; min-width: 0; padding: 8px 10px; border-radius: 8px; border: 1px solid #444; background: #1c1c1f; color: #eee; }
.small { font-size: 13px; color: #aaa; }
.row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.row:first-child { margin-top: 0; }

#panel { position: absolute; z-index: 1000; left: 12px; right: 12px; bottom: 12px; max-width: 520px; margin: 0 auto;
  background: rgba(20,20,22,.94); border-radius: 12px; padding: 10px; box-shadow: 0 4px 20px rgba(0,0,0,.5); }
#results div { padding: 6px 8px; border-bottom: 1px solid #333; cursor: pointer; font-size: 14px; }
#results div:hover { background: #2a2a2e; }

#banner { position: absolute; z-index: 1000; top: 12px; left: 12px; right: 12px; max-width: 520px; margin: 0 auto;
  background: #e8484f; color: #fff; border-radius: 12px; padding: 12px 14px; box-shadow: 0 4px 20px rgba(0,0,0,.5); }
#bannerDist { font-size: 28px; font-weight: 700; }
#bannerText { font-size: 15px; margin-top: 4px; }

#voicePanel { position: absolute; z-index: 1100; inset: 12px; max-width: 560px; margin: 0 auto; overflow: auto;
  background: #18181b; border-radius: 12px; padding: 14px; box-shadow: 0 4px 30px rgba(0,0,0,.7); }
.vp-head { display: flex; justify-content: space-between; align-items: center; }
#voicePanel label { display: block; margin: 4px 0; }
.cat { margin-top: 14px; font-weight: 700; color: #e8484f; }
.phrase { display: flex; gap: 6px; align-items: center; padding: 6px 0; border-bottom: 1px solid #2a2a2e; }
.phrase .txt { flex: 1; font-size: 14px; }
.phrase button { padding: 6px 8px; font-size: 13px; }
.phrase.has .txt::before { content: "● "; color: #4ade80; }
.phrase button.rec { background: #b91c1c; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .5; } }
.me { width: 18px; height: 18px; border-radius: 50%; background: #3b82f6; border: 3px solid #fff; box-shadow: 0 0 0 4px rgba(59,130,246,.3); }
