* { box-sizing: border-box; }
body { margin: 0; font: 13px/1.4 system-ui, sans-serif; color: #222; }
#bar { position: fixed; top: 0; left: 0; right: 0; height: 40px; z-index: 1000; display: flex; justify-content: space-between;
  align-items: center; padding: 0 12px; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
#auth > * { margin-left: 10px; }
#banner, #err { position: fixed; top: 40px; left: 0; right: 0; z-index: 1000; background: #fde8c8; padding: 6px 12px; text-align: center; }
#map { position: fixed; top: 40px; left: 0; right: 0; bottom: 0; }
#legend { position: absolute; left: 8px; bottom: 24px; z-index: 900; background: rgba(255,255,255,.9); padding: 6px 8px;
  border-radius: 6px; font-size: 11px; }
#legend span { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin: 0 4px 0 8px; }
#legend span:first-child { margin-left: 0; }
#panel { position: fixed; top: 40px; right: 0; bottom: 0; width: 44%; max-width: 480px; z-index: 1000; overflow: auto;
  background: #fff; padding: 10px 12px; box-shadow: 0 2px 10px rgba(0,0,0,.25); }
#panel h2 { margin: 0 0 2px; font-size: 16px; }
.meta { color: #666; font-size: 11px; margin-bottom: 8px; }
.sec { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: #888; margin: 10px 0 4px; }
.note { color: #888; font-size: 10px; }
.x { float: right; font-size: 18px; }
.wx { display: flex; gap: 2px; }
.wx div { flex: 1; text-align: center; padding: 3px 0; border-radius: 3px; font-size: 10px; background: #e6f0f8; }
.wx .past { background: #eee; color: #777; }
.wx .now { background: #1e6fb8; color: #fff; font-weight: 700; }
.rel { display: flex; gap: 4px; flex-wrap: wrap; }
.rel div { background: #e8f1fa; border-left: 3px solid #1e6fb8; padding: 2px 6px; font-size: 11px; }
.fly { display: inline-block; background: #f4ede0; border: 1px solid #d9c9a8; border-radius: 10px; padding: 2px 8px; margin: 2px 2px 0 0; font-size: 11px; }
.log-item { border-top: 1px solid #eee; padding: 4px 0; }
#logform { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
#logform input { flex: 1 1 120px; min-width: 0; }
.star[aria-pressed="true"] { color: #d9822b; }
@media (max-width: 767px) {
  #panel { top: auto; left: 0; width: 100%; max-width: none; height: 60%; border-radius: 12px 12px 0 0; }
}
