:root {
  --navy: #1b4f72;
  --navy-dark: #12344d;
  --orange: #e85d04;
  --orange-2: #f48c06;
  --green: #1e8449;
  --red: #c0392b;
  --text: #1b2a4a;
  --muted: #5c6b80;
  --line: #d7e3f0;
  --bg: #eef4fa;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: "Segoe UI", Tahoma, sans-serif;
  background: linear-gradient(180deg, #d6e6f5 0%, var(--bg) 40%, #fff 100%);
  color: var(--text);
}
.page { max-width: 460px; margin: 0 auto; padding: 18px 14px 32px; }
.topbar { text-align: center; margin-bottom: 12px; }
.brand-lockup {
  display: inline-block;
  background: #000;
  border-radius: 14px;
  padding: 14px 18px;
}
.logo { width: min(280px, 90%); height: auto; display: block; }
.ssid {
  display: inline-block;
  background: #d6eaf8;
  color: var(--navy);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  margin: 8px 0 0;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 20px;
  box-shadow: 0 10px 30px rgba(27, 79, 114, 0.08);
}
h1 { margin: 0 0 8px; font-size: 22px; color: var(--navy); }
.lede, p { color: var(--muted); line-height: 1.45; }
label { display: block; font-weight: 650; font-size: 13px; margin: 12px 0; }
input {
  width: 100%;
  margin-top: 6px;
  border: 1px solid #c5d5e6;
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 16px;
}
input:focus { outline: 2px solid #85c1e9; border-color: #5dade2; }
.btn {
  display: inline-block;
  border: 0;
  border-radius: 10px;
  padding: 12px 16px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}
.btn.primary { width: 100%; margin-top: 10px; background: var(--navy); color: #fff; }
.btn.success { background: var(--green); color: #fff; }
.btn.danger { background: var(--red); color: #fff; }
.alert { border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; }
.alert.error { background: #fdecea; color: #922b21; }
.host-field { position: relative; }
.results {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  position: absolute;
  left: 0; right: 0;
  z-index: 5;
}
.results li { padding: 10px 12px; cursor: pointer; border-bottom: 1px solid #eef3f8; }
.results li:hover, .results li.active { background: #eaf4fc; }
.results small { display: block; color: var(--muted); font-weight: 400; }
#hostHint { display: block; margin-top: 6px; color: var(--muted); font-weight: 400; }
.vendor-note, .foot, .note, .center { text-align: center; color: var(--muted); font-size: 12px; }
.foot { margin-top: 16px; }
.status-panel { text-align: center; }
.status-panel.success { color: var(--green); }
.status-panel.error { color: var(--red); }
.status-panel.wait h1 { color: var(--navy); }
.status-panel dl { text-align: left; }
.status-panel dt { color: var(--muted); font-size: 12px; margin-top: 10px; }
.status-panel dd { margin: 0; font-weight: 700; color: var(--text); }
.pulse {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--orange);
  margin: 0 auto 12px;
  animation: pulse 1.4s infinite;
}
@keyframes pulse {
  0% { transform: scale(0.85); opacity: 0.6; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.85); opacity: 0.6; }
}
.grid { width: 100%; border-collapse: collapse; font-size: 13px; }
.grid th, .grid td { border-bottom: 1px solid var(--line); padding: 8px 6px; vertical-align: top; text-align: left; }
.badge { padding: 2px 8px; border-radius: 999px; font-size: 11px; text-transform: uppercase; }
.badge.pending { background: #fdebd0; color: #9a7b0a; }
.badge.approved { background: #d5f5e3; color: #196f3d; }
.badge.rejected { background: #f5b7b1; color: #7b241c; }
.admin-head { display: flex; justify-content: space-between; align-items: center; }
.admin-head a { color: var(--navy); }
td form { display: inline-block; margin: 0 4px 4px 0; }
@media (max-width: 640px) {
  .page { max-width: 100%; }
}
