:root{
  --bg:#0f1115;
  --card:#151923;
  --card2:#111520;
  --text:#f2f5ff;
  --muted:#aab3c5;
  --blue:#267DF4;
  --line:rgba(255,255,255,.10);
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius:18px;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: radial-gradient(1200px 600px at 70% -10%, rgba(38,125,244,.25), transparent 60%),
              radial-gradient(900px 500px at 10% 10%, rgba(255,255,255,.06), transparent 60%),
              var(--bg);
  color:var(--text);
}
a{color:var(--blue); text-decoration:none}
a:hover{text-decoration:underline}
.container{
  max-width:1100px;
  margin:0 auto;
  padding:18px 16px 90px;
}
.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:12px 14px;
  background: rgba(17,21,32,.7);
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.brand{display:flex; align-items:center; gap:10px;}
.brand .mark{
  width:34px; height:34px; border-radius:12px;
  background: linear-gradient(180deg, rgba(38,125,244,.3), rgba(38,125,244,.05));
  border:1px solid rgba(38,125,244,.5);
  display:grid; place-items:center;
}
.brand .mark svg{width:18px;height:18px}
.brand .title{line-height:1.1;}
.brand .title b{display:block; font-size:14px; letter-spacing:.2px}
.brand .title span{display:block; font-size:12px; color:var(--muted)}
.actions{display:flex; gap:10px; align-items:center;}
.btn{
  appearance:none;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  color:var(--text);
  padding:10px 12px;
  border-radius:14px;
  cursor:pointer;
  font-weight:600;
  font-size:13px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
.btn:hover{transform: translateY(-1px); border-color: rgba(38,125,244,.6); background: rgba(38,125,244,.10)}
.btn.primary{border-color: rgba(38,125,244,.55); background: rgba(38,125,244,.16)}
.btn.primary:hover{background: rgba(38,125,244,.22)}
.btn.danger:hover{border-color: rgba(244, 66, 66, .65); background: rgba(244, 66, 66, .12)}
.pill{
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  padding:8px 10px;
  border-radius:999px;
  color:var(--muted);
  font-size:12px;
  display:inline-flex;
  gap:8px;
  align-items:center;
}
.grid{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap:16px;
  margin-top:16px;
}
@media (max-width: 940px){ .grid{grid-template-columns:1fr} }
.card{
  background: rgba(21,25,35,.72);
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.card .hd{padding:14px 14px 10px; border-bottom:1px solid var(--line);}
.card .hd h2{margin:0 0 4px; font-size:16px;}
.card .hd p{margin:0; color:var(--muted); font-size:12.5px; line-height:1.35;}
.card .bd{padding:14px}
.field{display:grid; gap:8px; margin-bottom:12px;}
label{font-size:12px; color:var(--muted)}
input[type="text"]{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(0,0,0,.18);
  color:var(--text);
  outline:none;
}
input[type="text"]:focus{border-color: rgba(38,125,244,.75); box-shadow: 0 0 0 4px rgba(38,125,244,.15)}
.suggestions{
  border:1px solid var(--line);
  background: rgba(10,12,18,.95);
  border-radius:14px;
  overflow:hidden;
  display:none;
  margin-top:-6px;
}
.suggestions button{
  width:100%;
  text-align:left;
  padding:10px 12px;
  border:0;
  background: transparent;
  color:var(--text);
  cursor:pointer;
  font-size:13px;
  border-bottom:1px solid rgba(255,255,255,.06);
}
.suggestions button:hover{background: rgba(38,125,244,.12)}
.suggestions button:last-child{border-bottom:0}
.row{display:flex; gap:10px; flex-wrap:wrap; align-items:center;}
.coords{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
  margin-top:10px;
}
.kv{
  padding:10px 12px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  border-radius:14px;
}
.kv b{display:block; font-size:12px; color:var(--muted); margin-bottom:4px}
.kv code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size:13px;
  color: #e9f0ff;
}
#map{
  width:100%;
  height:420px;
  border-radius: calc(var(--radius) - 6px);
  overflow:hidden;
  border:1px solid var(--line);
}
@media (max-width: 940px){ #map{height:360px} }
.mini{color:var(--muted); font-size:12px; line-height:1.35;}
.table{width:100%; border-collapse: collapse; overflow:hidden;}
.table th,.table td{padding:10px 10px; border-bottom:1px solid rgba(255,255,255,.07); font-size:13px; vertical-align:top;}
.table th{color:var(--muted); font-weight:700; text-align:left; font-size:12px}
.table td .sub{color:var(--muted); font-size:12px}
.table tr:hover td{background: rgba(38,125,244,.06)}
.smallbtn{padding:8px 10px; border-radius:12px; font-size:12px;}
.stack{display:flex; flex-direction:column; gap:6px;}
hr.sep{border:0; border-top:1px solid var(--line); margin:12px 0;}
.notice{
  border:1px solid rgba(38,125,244,.35);
  background: rgba(38,125,244,.10);
  color: #dbe8ff;
  padding:10px 12px;
  border-radius:14px;
  font-size:12.5px;
  line-height:1.4;
}
.footer-sticky{
  position:fixed; left:0; right:0; bottom:0;
  padding:10px 12px;
  background: rgba(10,12,18,.75);
  border-top:1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(10px);
  z-index: 2000;
}
.footer-inner{
  max-width:1100px;
  margin:0 auto;
  display:flex; align-items:center; justify-content:space-between;
  gap:12px;
}
.footer-inner .left{display:flex; gap:10px; align-items:center; flex-wrap:wrap; font-size:12px; color:var(--muted);}
.footer-inner .left a{color:var(--muted)}
.footer-inner .left a:hover{color:var(--text); text-decoration:none}
.footer-link{
  display:inline-flex; align-items:center; gap:8px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(38,125,244,.55);
  background: rgba(38,125,244,.14);
  color: var(--text);
  font-weight:800;
  font-size:13px;
}
.footer-link:hover{background: rgba(38,125,244,.22); text-decoration:none}
.toast{
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 84px;
  background: rgba(0,0,0,.75);
  border:1px solid rgba(255,255,255,.12);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 13px;
  z-index: 3000;
  opacity:0;
  pointer-events:none;
  transition: opacity .18s ease, transform .18s ease;
}
.toast.show{opacity:1; transform: translateX(-50%) translateY(-4px)}
.share-rail{
  position: fixed;
  right: 14px;
  top: 160px;
  z-index: 2500;
  display:flex;
  flex-direction: column;
  gap:10px;
}
@media (max-width: 940px){ .share-rail{top:auto; bottom: 156px; right: 12px} }
.share-btn{
  position: relative;
  width: 44px; height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.42);
  backdrop-filter: blur(10px);
  display:grid; place-items:center;
  cursor:pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
.share-btn:hover{transform: translateY(-1px); border-color: rgba(38,125,244,.65); background: rgba(38,125,244,.12)}
.share-btn svg{width:18px;height:18px; fill: #eaf1ff}
.share-tip{
  position:absolute;
  right: 52px;
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  padding: 9px 10px;
  border-radius: 12px;
  background: rgba(0,0,0,.78);
  border:1px solid rgba(255,255,255,.12);
  color: var(--text);
  font-size: 12px;
  white-space: nowrap;
  opacity:0;
  pointer-events:none;
  transition: opacity .16s ease, transform .16s ease;
}
.share-btn:hover .share-tip{opacity:1; transform: translateY(-50%) translateX(0px);}
.badge{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  color: var(--muted);
  font-size:12px;
}
.toggle{display:flex; gap:10px; align-items:center; flex-wrap:wrap;}
.switch{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  font-size:12px;
  color: var(--muted);
}
.switch input{accent-color: var(--blue)}
