:root { --accent:#3b6ef0; --ok:#2ea66a; --bg:#15171c; --panel:#1b1e25; --field:#0f1116; --text:#e7e9ee; --muted:#9aa0ac; --border:#2c2f37; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; font-family: system-ui, "Segoe UI", Roboto, sans-serif; }

.app { display: flex; height: 100vh; }

#sidebar {
  width: 360px; flex: 0 0 360px; padding: 20px; background: var(--bg); color: var(--text); overflow-y: auto;
  border-right: 1px solid var(--border);
}
#map { flex: 1; }

h1 { font-size: 20px; margin: 0; display: flex; align-items: center; gap: 8px; }
h1 .beta { font-size: 10px; font-weight: 700; background: var(--accent); color: #fff; padding: 2px 7px; border-radius: 999px; letter-spacing: .04em; }
.tagline { font-size: 13px; color: var(--muted); margin: 4px 0 14px; line-height: 1.4; }
.hint { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.hint a { color: #7fb0ff; }

label { display: block; font-size: 12.5px; margin: 15px 0 5px; color: #c7ccd6; font-weight: 500; }
select, input[type="text"], input[type="number"] {
  width: 100%; padding: 10px; border-radius: 9px; border: 1px solid var(--border);
  background: var(--field); color: var(--text); font-size: 14px; transition: border-color .15s, box-shadow .15s;
}
select:focus, input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px #3b6ef033; }

#genBtn {
  width: 100%; margin-top: 20px; padding: 13px; cursor: pointer;
  background: var(--accent); color: #fff; border: 0; border-radius: 11px; font-size: 14.5px; font-weight: 700;
  transition: filter .15s, transform .05s;
}
#genBtn:hover { filter: brightness(1.08); }
#genBtn:active { transform: translateY(1px); }
#genBtn:disabled { background: #394150; cursor: not-allowed; filter: none; }

#areaInfo { margin-top: 12px; padding: 8px 10px; background: var(--panel); border-radius: 8px; font-size: 12px; color: var(--muted); }

#progressBox { margin-top: 18px; }
.bar { height: 9px; background: var(--border); border-radius: 5px; overflow: hidden; }
.bar-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), #6ea0ff); transition: width .3s; }
.phase { font-size: 12.5px; color: #c7ccd6; margin-top: 7px; }

#result { margin-top: 18px; padding: 14px; background: var(--panel); border-radius: 12px; font-size: 13px; line-height: 1.55; }
#result a.dl {
  display: inline-block; margin-top: 10px; padding: 10px 14px; background: var(--ok); color: #fff;
  border-radius: 10px; text-decoration: none; font-weight: 700; font-size: 13px;
}
#result a.dl:hover { filter: brightness(1.08); }
#result .err { color: #ff8a8a; }
.attrib { font-size: 11px; color: #6b7280; margin-top: 24px; }
