:root { --bg:#0f172a; --text:#f9fafb; --muted:#9ca3af; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Segoe UI", Roboto, sans-serif; }
#map { position: absolute; top: 52px; bottom: 44px; left: 0; right: 0; z-index: 1; }

#appbar {
  position: fixed; top: 0; left: 0; right: 0; height: 52px; z-index: 600;
  display: flex; align-items: center; justify-content: space-between; padding: 0 16px;
  background: #111827; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.brand { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.brand .logo { font-size: 18px; }
.brand .app { font-weight: 700; }
.brand .sep { color: var(--muted); }
.brand .view { color: #6ee7b7; font-weight: 600; }
.brand .muni { color: var(--muted); font-size: 12px; margin-left: 6px; }
.nav { display: flex; gap: 8px; }
.nav a { color: var(--text); text-decoration: none; font-size: 12px; border: 1px solid #374151; padding: 6px 10px; border-radius: 8px; }
.nav a:hover { background: #1f2937; }

#statusbar {
  position: fixed; left: 0; right: 0; bottom: 0; height: 44px; z-index: 600;
  display: flex; align-items: center; justify-content: space-between; padding: 0 16px;
  background: #111827; border-top: 1px solid rgba(255,255,255,0.08); font-size: 13px;
}
.stats { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.stats strong { color: #6ee7b7; }
.stats .div { color: #374151; }
.legend-chips { display: flex; gap: 12px; }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--muted); }
.chip .box { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.box.unvisited { background: #e5e7eb; }
.box.unreached { background: #6b7280; }
.box.completed { background: #22c55e; }

.member-avatar { width: 30px; height: 30px; border-radius: 50%; border: 3px solid #fff;
  display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5); }

@media (max-width: 760px) {
  .legend-chips .chip { font-size: 10px; }
}
