:root {
  --bg: #0f1115;
  --panel: #171a21;
  --line: #262b36;
  --text: #e6e8ee;
  --muted: #8b93a7;
  --none: #3a404d;
  --accent: #5b8cff;
  --good: #3ecf8e;
  --mid: #f2c14e;
  --bad: #f06a6a;
  font: 14px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

[v-cloak] { display: none; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); }
main { max-width: 1600px; margin: 0 auto; padding: 24px; }

header { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
header h1 { margin: 0; font-size: 20px; }
.meta { color: var(--muted); font-size: 12px; }
.good { color: var(--good); }
.mid { color: var(--mid); }
.bad { color: var(--bad); }
.none { color: var(--none); }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: grid; gap: 12px; }
.card .head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.card .identity { display: grid; flex: 1; min-width: 0; }
.card .identity strong { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge { color: var(--muted); font-size: 12px; }

.kind { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--line); }
.kind-router { background: #2b3a67; }
.kind-computer { background: #24434a; }
.kind-phone { background: #3f2d55; }
.kind-media { background: #4a3a20; }
.kind-iot { background: #224433; }
.kind-printer { background: #3d3d3d; }
.kind-camera { background: #4d2a2a; }
.kind-nas { background: #2f3f2f; }

.knobs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; justify-items: center; }
.knob { position: relative; display: grid; place-items: center; }
.knob svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.knob circle { fill: none; }
.knob .track { stroke: var(--line); }
.knob .ring { stroke: currentColor; stroke-linecap: round; transition: stroke-dasharray 0.4s; }
.knob i { font-size: 15px; }

.overlay { position: fixed; inset: 0; background: rgb(0 0 0 / 0.6); display: grid; place-items: center; z-index: 10; }
.dialog { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 24px; display: grid; justify-items: center; gap: 12px; }
.dialog p { margin: 0; }
.field { display: flex; align-items: center; gap: 8px; width: 260px; background: var(--bg); color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 0 12px; }
.field input { flex: 1; background: transparent; color: var(--text); border: 0; outline: 0; padding: 8px 0; font: inherit; }
button { background: var(--accent); color: white; border: 0; border-radius: 6px; padding: 8px 14px; font: inherit; cursor: pointer; }
button:disabled { opacity: 0.5; cursor: default; }
.actions { display: flex; gap: 8px; }
button.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.spacer { flex: 1; }
.reveal code { font-family: ui-monospace, Menlo, monospace; user-select: all; }
.reveal .secret { font-size: 18px; color: var(--mid); }
