:root {
  --bg: #0e1116;
  --panel: #171c24;
  --line: #2a3340;
  --text: #e8eef6;
  --muted: #93a0b0;
  --accent: #3d8bfd;
  --danger: #e5484d;
  --ok: #3dd68c;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font: 15px/1.45 "Segoe UI", system-ui, sans-serif; }
button, input, textarea { font: inherit; }
a { color: var(--accent); }
.wrap { max-width: 960px; margin: 0 auto; padding: 24px; }
header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; }
h1 { font-size: 1.15rem; margin: 0; font-weight: 650; }
.muted { color: var(--muted); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.chip-opt { display: flex; align-items: center; gap: 8px; margin: 4px 16px 8px 0; cursor: pointer; }
.chip-opt input { width: auto; margin: 0; }
.grow { flex: 1; }
input, textarea {
  width: 100%; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line);
  background: #0f141b; color: var(--text);
}
button {
  background: var(--accent); color: #fff; border: 0; border-radius: 8px;
  padding: 8px 12px; cursor: pointer;
}
button.ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
button.danger { background: var(--danger); }
button:disabled { opacity: 0.45; cursor: not-allowed; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: #555; }
.dot.on { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.live { background: var(--danger); color: #fff; }
.error { color: var(--danger); min-height: 1.2em; }
.vu { height: 8px; background: #222; border-radius: 99px; overflow: hidden; }
.vu > span { display: block; height: 100%; width: 0; background: var(--ok); }
.doa { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; }
.doa-track { flex: 1; height: 10px; background: #222; border-radius: 99px; position: relative; }
#doa-mark {
  position: absolute; top: -4px; width: 12px; height: 18px; background: var(--accent);
  border-radius: 4px; left: 50%; transform: translateX(-50%); display: none;
}
#flash-log { max-height: 240px; font-size: 12px; }
select { padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: #0f141b; color: var(--text); }
.login { max-width: 360px; margin: 12vh auto; }
code, pre { font-family: ui-monospace, Consolas, monospace; }
pre { background: #0b0e13; padding: 12px; border-radius: 8px; overflow: auto; }
nav a { margin-right: 12px; }
.ssid-list { display: flex; flex-direction: column; gap: 6px; max-height: 220px; overflow: auto; margin: 8px 0; }
.ssid-list button { text-align: left; }
.transport { background: #0b0e13; border-radius: 8px; padding: 10px; border: 1px solid var(--line); }
label.inline { display: inline-flex; gap: 6px; align-items: center; }
