:root {
  --bg: #05080a;
  --panel: #0d1317;
  --line: #1e2a31;
  --text: #e8f0f4;
  --muted: #7d8f99;
  --accent: #35d3c0;
  --danger: #ff6b6b;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.6 "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body {
  background-image:
    radial-gradient(circle at 20% 10%, rgba(53, 211, 192, 0.08), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(53, 211, 192, 0.05), transparent 40%);
}

/* ---------------- 登录壳 ---------------- */
.shell {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 32px 16px;
}

.card {
  width: min(400px, 100%);
  background: linear-gradient(180deg, #0e1519, #0a1014);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 26px 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
  letter-spacing: 0.14em;
  font-weight: 700;
  font-size: 13px;
  color: var(--accent);
}

.brand .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

h1 { font-size: 22px; margin: 14px 0 4px; font-weight: 600; }
.sub { color: var(--muted); font-size: 13px; margin: 0 0 18px; }

.tabs { display: flex; gap: 6px; margin-bottom: 18px; }

.tab {
  flex: 1;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  transition: 0.15s;
}

.tab.active {
  color: var(--text);
  border-color: rgba(53, 211, 192, 0.55);
  background: rgba(53, 211, 192, 0.08);
}

label { display: block; font-size: 12px; color: var(--muted); margin: 12px 0 6px; }

input {
  width: 100%;
  padding: 11px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #070c0f;
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s;
}

input:focus { border-color: rgba(53, 211, 192, 0.6); }

button.primary {
  width: 100%;
  margin-top: 20px;
  padding: 12px;
  border-radius: 9px;
  border: 0;
  background: var(--accent);
  color: #04110f;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: 0.15s;
}

button.primary:disabled { opacity: 0.55; cursor: progress; }
button.primary:not(:disabled):hover { filter: brightness(1.08); }

.error {
  min-height: 20px;
  margin-top: 12px;
  color: var(--danger);
  font-size: 12.5px;
}

.hint { margin-top: 16px; color: var(--muted); font-size: 12px; text-align: center; }
.hidden { display: none !important; }

/* ---------------- 功能页 ---------------- */
.topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: #070c0f;
}

.pill {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}

.pill.online { color: var(--accent); border-color: rgba(53, 211, 192, 0.5); }
.pill.offline { color: var(--danger); border-color: rgba(255, 107, 107, 0.45); }

.spacer { flex: 1; }

button.ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 7px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
}

button.ghost:hover { color: var(--text); border-color: rgba(53, 211, 192, 0.45); }

.stage {
  padding: 22px;
  display: grid;
  gap: 14px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0a1014;
  padding: 16px 18px;
}

.panel h2 { font-size: 13px; letter-spacing: 0.1em; color: var(--muted); margin: 0 0 10px; font-weight: 600; }

.kv { display: grid; grid-template-columns: 120px 1fr; gap: 6px 14px; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-family: ui-monospace, Consolas, monospace; word-break: break-all; }

#feed {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 12px;
  color: var(--muted);
  max-height: 220px;
  overflow: auto;
  white-space: pre-wrap;
}
