:root { color-scheme: dark; }
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  background: radial-gradient(120% 80% at 50% 0%, #12142a 0%, #06070d 55%);
  color: #eef3ff; min-height: 100vh;
}
.wrap { max-width: 900px; margin: 0 auto; padding: 32px 20px 80px; }
header { display: flex; align-items: baseline; gap: 14px; margin-bottom: 24px; }
h1 { font-size: 34px; letter-spacing: .02em; }
.sub { color: rgba(255,255,255,.5); font-size: 14px; }
.card {
  background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.09);
  border-radius: 16px; padding: 18px; margin-bottom: 18px;
  box-shadow: 0 10px 40px rgba(0,0,0,.35);
}
h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .12em; color: #7df9ff; margin-bottom: 12px; }
.row { display: flex; gap: 10px; }
.row.end { justify-content: flex-end; align-items: center; }
input, select {
  font: 500 15px/1 inherit; color: #fff; background: #0d0f1a;
  border: 1px solid rgba(255,255,255,.14); border-radius: 10px; padding: 11px 12px; width: 100%;
}
input:focus, select:focus { outline: 1px solid #7df9ff; }
button {
  font: 700 15px/1 inherit; color: #002026; background: #7df9ff; border: 0;
  border-radius: 10px; padding: 11px 20px; cursor: pointer; white-space: nowrap;
}
button:hover { filter: brightness(1.08); }
button.danger { background: transparent; border: 1px solid rgba(255,120,120,.5); color: #ff9f9f; padding: 8px 14px; }
.url-hint { margin-top: 10px; font-size: 13px; color: rgba(255,255,255,.6); min-height: 16px; }
.url-hint a { color: #9fe8ff; }
.list { display: flex; flex-direction: column; gap: 18px; }
.loc-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.loc-name { font-size: 20px; margin-bottom: 4px; }
.mirror-link { font-size: 13px; color: #9fe8ff; text-decoration: none; }
.mirror-link:hover { text-decoration: underline; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px 16px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: rgba(255,255,255,.65); text-transform: uppercase; letter-spacing: .08em; }
.save-state { font-size: 13px; color: #7dff9e; opacity: 0; transition: opacity .3s; }
.save-state.show { opacity: 1; }
.empty { text-align: center; color: rgba(255,255,255,.45); padding: 40px 0; }

/* ── login ──────────────────────────────────────────────────────────────── */
.login-wrap { max-width: 420px; padding-top: 12vh; }
.login-wrap header { display: block; margin-bottom: 20px; }
.login-wrap h1 { font-size: 40px; margin-bottom: 4px; }
.login-wrap .sub { display: block; }
.login-label { margin-bottom: 16px; }
.login-actions { gap: 14px; }
.login-error { color: #ff9f9f; opacity: 1; }
.login-foot { text-align: center; font-size: 13.5px; }
.login-foot a { color: rgba(255,255,255,.6); text-decoration: none; }
.login-foot a:hover { color: #7df9ff; }

/* ── header actions ─────────────────────────────────────────────────────── */
header { justify-content: space-between; align-items: center; }
.head-left { display: flex; align-items: baseline; gap: 14px; }
button.ghost {
  background: transparent; border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.72); font-weight: 600; padding: 8px 14px;
}
button.ghost:hover { border-color: rgba(125,249,255,.5); color: #7df9ff; }