* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; font: 16px/1.4 system-ui, sans-serif; color: #17202a; background: #f4f6f8; }
body { display: flex; flex-direction: column; height: 100dvh; }
header { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; background: #14365c; color: #fff; }
header span { font-size: 13px; text-align: right; }
#notice { padding: 8px 16px; background: #fff3cd; font-size: 14px; }
main { flex: 1; overflow: auto; min-height: 0; }
nav { display: flex; background: #fff; border-top: 1px solid #d5dbe1; padding-bottom: env(safe-area-inset-bottom); }
nav button { flex: 1; border: 0; background: none; padding: 14px 4px; font: inherit; color: #566573; }
nav button.on { color: #14365c; font-weight: 700; box-shadow: inset 0 3px #14365c; }
.page { max-width: 640px; margin: 0 auto; padding: 16px; }
.card { background: #fff; border: 1px solid #d5dbe1; border-radius: 10px; padding: 12px; margin-bottom: 10px; }
input, select, textarea { width: 100%; padding: 12px; font: inherit; border: 1px solid #aab4be; border-radius: 8px; background: #fff; }
label { display: block; margin: 10px 0 4px; font-size: 14px; }
label.check { display: flex; align-items: center; gap: 8px; }
label.check input { width: auto; }
.btn { display: inline-block; padding: 12px 16px; border: 0; border-radius: 8px; background: #14365c; color: #fff; font: inherit; text-decoration: none; margin: 8px 8px 0 0; }
.btn.light { background: #e5eaf0; color: #14365c; }
.btn:disabled { opacity: .5; }
.error { color: #a93226; }
.muted { color: #566573; font-size: 14px; }
.mapwrap { display: flex; flex-direction: column; height: 100%; }
#map { flex: 1; min-height: 260px; }
#maplist { max-height: 35%; overflow: auto; padding: 8px 12px; background: #fff; }
.row { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid #eaeef2; }
.code { font: 700 20px ui-monospace, monospace; word-break: break-all; user-select: all; }
summary { cursor: pointer; font-weight: 600; }
