:root {
  --bg: #070c18; --bg2: #0c1426; --line: rgba(120, 180, 255, .16); --line-strong: rgba(120, 200, 255, .35);
  --text: #e9f1ff; --muted: #93a6c8; --ice: #7fdcff; --red: #ff6b6b;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: radial-gradient(1200px 500px at 50% -200px, #16294a 0%, var(--bg) 60%) fixed, var(--bg);
  color: var(--text); font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh; display: flex; flex-direction: column;
}
a { color: var(--ice); }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 16px; width: 100%; }
nav { border-bottom: 1px solid var(--line); background: rgba(7, 12, 24, .82); }
nav .wrap { display: flex; align-items: center; gap: 18px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; margin-right: auto; }
.brand img { width: 32px; height: 32px; border-radius: 50%; }
nav a.link { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
nav a.link:hover { color: var(--text); }
header.wrap { padding-top: 32px; padding-bottom: 16px; }
h1 { margin: 0 0 4px; font-size: clamp(30px, 5vw, 42px); background: linear-gradient(180deg, #fff, var(--ice)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sub { color: var(--muted); margin: 0; max-width: 760px; }
main.wrap { flex: 1; padding-bottom: 40px; }
.tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 14px 0; }
button, input { font: inherit; }
.btn { padding: 10px 18px; border-radius: 12px; border: 1px solid transparent; font-weight: 700; cursor: pointer; background: linear-gradient(180deg, #5fd0ff, #2b8fe6); color: #04111f; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.ghost { background: var(--bg2); color: var(--text); border-color: var(--line-strong); }
form { display: flex; flex-wrap: wrap; gap: 8px; }
form[hidden] { display: none; }
input { padding: 10px 14px; border-radius: 12px; background: var(--bg2); color: var(--text); border: 1px solid var(--line-strong); min-width: 220px; }
.status { color: var(--muted); font-size: 15px; }
.status.error { color: var(--red); }
.layout { display: grid; grid-template-columns: 1fr 260px; gap: 14px; }
@media (max-width: 860px) { .layout { grid-template-columns: 1fr; } }
#map { height: min(72vh, 820px); border-radius: 16px; border: 1px solid var(--line-strong); background: #0e1628; }
#map.drawing { cursor: crosshair; }
#map .leaflet-tile { image-rendering: pixelated; }
.panel { background: var(--bg2); border: 1px solid var(--line); border-radius: 16px; padding: 16px; max-height: min(72vh, 820px); overflow: auto; }
.panel h2 { margin: 0 0 10px; font-size: 18px; }
.row { display: flex; align-items: center; gap: 8px; margin: 4px 0; }
.row .name { flex: 1; text-align: left; background: none; border: 0; color: var(--text); cursor: pointer; padding: 4px 6px; border-radius: 8px; overflow-wrap: anywhere; }
.row .name::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--c); margin-right: 8px; }
.row .name:hover { background: rgba(127, 220, 255, .08); }
.row .del { background: none; border: 1px solid rgba(255, 107, 107, .5); color: var(--red); border-radius: 8px; padding: 2px 10px; cursor: pointer; font-size: 13px; }
.muted { color: var(--muted); }
.claim-tip { font-weight: 700; }
footer { border-top: 1px solid var(--line); padding: 20px 0 28px; color: var(--muted); font-size: 14px; text-align: center; }
footer a { color: var(--muted); }
.ctx { font: 600 14px/1.5 system-ui, sans-serif; }
.ctx div { color: #333; margin-bottom: 4px; }
.ctx a { color: #1a73c9; font-weight: 700; }
