
:root{
  --bg:#0b1220;
  --card:#111a2f;
  --muted:#9fb0d0;
  --text:#e9efff;
  --line:#223156;
  --btn:#1a2a4d;
  --btn2:#23355f;
  --ok:#35d07f;
  --bad:#ff5e6c;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:linear-gradient(180deg,var(--bg),#070b14);
  color:var(--text);
}

.topbar{
  position:sticky; top:0; z-index:10;
  padding:14px 14px 10px;
  background:rgba(11,18,32,.92);
  backdrop-filter: blur(10px);
  border-bottom:1px solid rgba(255,255,255,.06);
}
.topbar__title{display:flex; align-items:center; gap:12px}
.topbar__logo{width:40px;height:40px;border-radius:12px;box-shadow:0 8px 22px rgba(0,0,0,.35)}
.h1{font-weight:800; font-size:18px; letter-spacing:.2px}
.sub{font-size:12px;color:var(--muted)}

.wrap{padding:14px; display:flex; flex-direction:column; gap:12px; max-width:820px; margin:0 auto}
.controls{
  background:rgba(17,26,47,.86);
  border:1px solid rgba(255,255,255,.06);
  border-radius:16px;
  padding:12px;
  box-shadow:0 14px 40px rgba(0,0,0,.25);
}
.field{display:flex; flex-direction:column; gap:6px; margin-bottom:10px}
.field > span{font-size:12px; color:var(--muted)}
select,input{
  width:100%;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.10);
  background:#0f1730;
  color:var(--text);
  outline:none;
  font-size:16px;
}
.btnrow{display:flex; gap:10px; flex-wrap:wrap}
.btn{
  border:1px solid rgba(255,255,255,.10);
  background:var(--btn);
  color:var(--text);
  padding:12px 14px;
  border-radius:14px;
  font-size:15px;
  font-weight:700;
  flex:1;
}
.btn:active{transform:translateY(1px)}
.btn-primary{
  background:linear-gradient(180deg,var(--btn2),#1d2f58);
}
.status{margin-top:10px; font-size:13px; color:var(--muted); min-height:18px}

.listwrap{
  background:rgba(17,26,47,.72);
  border:1px solid rgba(255,255,255,.06);
  border-radius:16px;
  overflow:hidden;
}
.listhead{
  padding:12px;
  border-bottom:1px solid rgba(255,255,255,.06);
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}
.citymeta{font-size:13px; color:var(--muted)}
.legend{display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end}
.pill{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(15,23,48,.65);
  color:var(--muted);
}
.addrlist{list-style:none; padding:0; margin:0}
.addr{
  display:grid;
  grid-template-columns: 34px 1fr auto;
  gap:10px;
  padding:12px;
  border-top:1px solid rgba(255,255,255,.06);
  align-items:center;
}
.addr:first-child{border-top:0}
.num{
  width:34px; height:34px;
  border-radius:12px;
  display:flex; align-items:center; justify-content:center;
  background:#0f1730;
  border:1px solid rgba(255,255,255,.10);
  color:var(--muted);
  font-weight:800;
}
.addrmain{min-width:0}
.line1{font-weight:800; font-size:15px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.line2{font-size:12px; color:var(--muted); margin-top:2px; display:flex; gap:8px; flex-wrap:wrap}
.badge{
  font-size:12px;
  padding:2px 8px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(15,23,48,.65);
  color:var(--muted);
}
.badge.ok{color:var(--ok); border-color:rgba(53,208,127,.35)}
.actions{display:flex; gap:8px}
.iconbtn{
  border:1px solid rgba(255,255,255,.10);
  background:#0f1730;
  color:var(--text);
  width:40px; height:40px;
  border-radius:14px;
  font-size:16px;
}
.tapzone{cursor:pointer}
.tapzone:active{opacity:.85}

.modal-backdrop{
  position:fixed; inset:0;
  background:rgba(0,0,0,.55);
  z-index:50;
}
.modal{
  position:fixed; inset:0;
  display:flex; align-items:flex-end; justify-content:center;
  z-index:60;
  padding:14px;
}
.modal__card{
  width:100%;
  max-width:720px;
  background:rgba(17,26,47,.96);
  border:1px solid rgba(255,255,255,.08);
  border-radius:18px;
  box-shadow:0 24px 80px rgba(0,0,0,.45);
  overflow:hidden;
}
.modal__head{
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 12px 10px;
  border-bottom:1px solid rgba(255,255,255,.06);
}
.modal__title{font-weight:900}
.modal__body{padding:12px}
.hint{font-size:12px;color:var(--muted); margin-top:8px; line-height:1.35}
.modal__foot{
  padding:12px;
  border-top:1px solid rgba(255,255,255,.06);
  display:flex; gap:10px;
}
.hidden{display:none !important}
