* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; font-family: -apple-system, "Segoe UI", Roboto, sans-serif; }
#app { display: flex; height: 100vh; }
#map { flex: 1; background: #0b1020; cursor: crosshair; }
#sidebar { width: 330px; overflow-y: auto; padding: 10px 12px; background: #14181f; color: #dde3ea; }
h1 { font-size: 16px; margin: 2px 0 10px; color: #7ecbff; }
.box { background: #1c222b; border-radius: 8px; padding: 8px 10px; margin-bottom: 10px; }
.ro { display: flex; justify-content: space-between; font-size: 12px; padding: 2px 0; }
.ro b { font-variant-numeric: tabular-nums; }
#ro-depth { color: #7ecbff; font-size: 14px; }
.row { display: flex; gap: 6px; align-items: center; margin: 4px 0; }
button { background: #2a3442; color: #dde3ea; border: 1px solid #3a4656; border-radius: 6px;
  padding: 5px 10px; font-size: 12px; cursor: pointer; }
button:hover { background: #354256; }
button.primary { background: #1e5f8a; border-color: #2b7cb3; }
button.primary.active { background: #c04a2e; border-color: #e06a4e; }
#legs { width: 100%; border-collapse: collapse; font-size: 11.5px; margin-top: 6px; }
#legs th, #legs td { text-align: right; padding: 2px 4px; border-bottom: 1px solid #2a3442; }
#legs th:first-child, #legs td:first-child { text-align: left; }
#totals { font-size: 12px; padding: 4px 2px; color: #9fdcae; }
#profile { width: 100%; background: #10141b; border-radius: 6px; margin-top: 6px; }
#settings label { display: block; font-size: 12px; margin: 6px 0; }
#settings input[type=number] { width: 60px; background: #10141b; color: #dde3ea;
  border: 1px solid #3a4656; border-radius: 4px; padding: 2px 4px; }
#settings select { background: #10141b; color: #dde3ea; border: 1px solid #3a4656;
  border-radius: 4px; padding: 2px 4px; max-width: 190px; }
#settings small { color: #8a94a3; display: block; margin-left: 2px; }
#settings .chk input[type=range] { width: 100px; vertical-align: middle; }
.foot { font-size: 10.5px; color: #78828f; line-height: 1.4; }
#share-msg { font-size: 11px; color: #9fdcae; }
.leg-tip { background: rgba(16,20,27,.88); border: none; color: #eaf1f8; font-size: 11px;
  border-radius: 5px; box-shadow: none; padding: 3px 6px; }
.leg-tip::before { display: none; }
.wp-icon { background: #ffd23e; border: 2px solid #10141b; border-radius: 50%; }
.wp-icon.wp0 { background: #6cf06c; }
.scalebar { background: rgba(16,20,27,.75); color: #eaf1f8; font-size: 11px; padding: 3px 8px;
  border-radius: 4px; border-bottom: 3px solid #7ecbff; text-align: center; }
.site-icon { background: #ffd23e; border: 1.5px solid #10141b; border-radius: 50%; opacity: .95; }
.site-icon.site-approx { background: #ff9c5b; }
.site-icon.site-unk { background: #9aa5b3; }
.site-tip { background: rgba(16,20,27,.82); border: none; color: #ffe9a8; font-size: 10.5px;
  border-radius: 4px; box-shadow: none; padding: 2px 5px; }
.site-tip.site-tip-approx { color: #ffc9a3; }
.site-tip.site-tip-unk { color: #b9c2cd; }
.site-tip::before { display: none; }
#sites-hint { font-size: 11px; color: #c9a06a; line-height: 1.4; margin-top: 4px; }
#sites-msg { font-size: 11px; color: #9fdcae; }
.boxtitle { font-size: 13px; color: #7ecbff; flex: 1; }
#plan-out { font: 10.5px/1.5 ui-monospace, Menlo, monospace; color: #dde3ea; background: #10141b;
  border-radius: 6px; padding: 6px 8px; margin: 4px 0; white-space: pre; overflow-x: auto; }
#plan-msg { font-size: 11px; color: #9fdcae; }
#legs td input.stay { width: 30px; background: #10141b; color: #dde3ea; border: 1px solid #3a4656;
  border-radius: 3px; padding: 1px 2px; font-size: 11px; text-align: right; }
@media (max-width: 760px) {
  #app { flex-direction: column; }
  #sidebar { width: 100%; max-height: 45%; }
}
