/* provisioning/web/style.css —— 手机优先深色配网界面,无构建依赖。 */
* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #0e1420;
  color: #e8eef7;
  font: 16px/1.5 -apple-system, "PingFang SC", "Microsoft YaHei",
        "Noto Sans SC", sans-serif;
}

.topbar {
  padding: 18px 16px 8px;
}
.topbar h1 {
  margin: 0;
  font-size: 20px;
}
.device-id {
  margin-top: 4px;
  color: #8ca0b8;
  font-size: 13px;
}

main {
  padding: 8px 12px 32px;
  max-width: 520px;
  margin: 0 auto;
}

.card {
  background: #1a2332;
  border-radius: 14px;
  padding: 16px;
  margin: 12px 0;
}
.card h2 {
  margin: 0 0 10px;
  font-size: 17px;
}

.hint {
  color: #8ca0b8;
  font-size: 13px;
  margin: 6px 0 12px;
}

button {
  appearance: none;
  border: 0;
  border-radius: 10px;
  background: #24344a;
  color: #e8eef7;
  font-size: 16px;
  padding: 12px 18px;
  width: 100%;
  margin-top: 8px;
}
button.primary {
  background: #2f6fed;
  font-weight: 600;
}
button:active { filter: brightness(1.15); }

input, select {
  width: 100%;
  border: 1px solid #33415a;
  background: #0e1420;
  color: #e8eef7;
  border-radius: 10px;
  font-size: 16px;
  padding: 12px;
  margin-top: 6px;
}
.pin-input {
  letter-spacing: 8px;
  text-align: center;
  font-size: 22px;
}

.field { display: block; margin: 12px 0 4px; }
.field > span { color: #8ca0b8; font-size: 13px; }

.msg {
  min-height: 20px;
  font-size: 14px;
  color: #8ca0b8;
  margin: 8px 0 0;
}
.msg.err { color: #e06c6c; }

.kv {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.kv td {
  padding: 7px 4px;
  border-bottom: 1px solid #24344a;
}
.kv td:first-child { color: #8ca0b8; width: 92px; }
.val.ok { color: #59c98b; }
.val.err { color: #e06c6c; }
.val.warn { color: #e0b454; }

.net-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}
.net-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0e1420;
  border: 1px solid #24344a;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 8px;
}
.net-item.sel {
  border-color: #2f6fed;
  background: #16233c;
}
.net-item .ssid { font-weight: 600; word-break: break-all; }
.net-item .meta { color: #8ca0b8; font-size: 13px; white-space: nowrap; margin-left: 10px; }

.disconnect-bar {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: #3a1d24;
  border-top: 1px solid #e06c6c;
  color: #f0c9c9;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
}
.disconnect-bar button { width: auto; margin: 0; background: #e06c6c; }

.hidden { display: none !important; }
