:root {
  color-scheme: dark;
  font-family: Inter, Pretendard, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f4f7ff;
  background: #090c14;
  --panel: rgba(20, 25, 40, .82);
  --line: rgba(255, 255, 255, .1);
  --muted: #9ba6bb;
  --accent: #7c8cff;
  --online: #4ade80;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 20% 0, #1a2140 0, transparent 40%), #090c14; }
button, a { font: inherit; }
.topbar, .page-shell { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 28px 0 16px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.eyebrow { margin-bottom: 6px; color: var(--accent); font-size: .72rem; font-weight: 800; letter-spacing: .18em; }
.account { display: flex; gap: 16px; align-items: center; color: var(--muted); }
.account__identity { display: grid; gap: 3px; text-align: right; }
.account__identity code { color: #c7d0e3; font-size: .72rem; user-select: all; }
.page-shell { padding: 36px 0 72px; }
.intro { display: flex; gap: 24px; justify-content: space-between; align-items: end; }
.intro p:not(.eyebrow), .node-version, .node-seen, .status, .login-card > p { color: var(--muted); }
.node-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 20px; }
.node-card, .login-card { border: 1px solid var(--line); border-radius: 22px; background: var(--panel); box-shadow: 0 20px 70px rgba(0, 0, 0, .25); backdrop-filter: blur(20px); }
.node-card { padding: 22px; }
.node-card.is-offline { opacity: .62; }
.node-card__status { display: flex; gap: 8px; align-items: center; margin-bottom: 26px; color: var(--muted); font-size: .86rem; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--online); box-shadow: 0 0 16px var(--online); }
.is-offline .status-dot { background: #6b7280; box-shadow: none; }
.node-name { margin-bottom: 8px; font-size: 1.25rem; }
.primary-button, .secondary-button, .text-button { border: 0; cursor: pointer; }
.primary-button { display: inline-flex; width: 100%; justify-content: center; margin-top: 18px; padding: 12px 16px; border-radius: 12px; color: white; background: linear-gradient(135deg, #6878ff, #8b5cf6); text-decoration: none; font-weight: 750; }
.primary-button:disabled { cursor: not-allowed; background: #353b4d; color: #9098a9; }
.secondary-button { padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; color: inherit; background: rgba(255,255,255,.05); }
.text-button { padding: 6px; color: inherit; background: transparent; }
.login-page { display: grid; min-height: 100vh; place-items: center; padding: 20px; }
.login-card { width: min(430px, 100%); padding: 36px; }
.login-card h1 { margin-bottom: 16px; }
.error-message { margin: 18px 0 0; color: #fda4af !important; }
@media (max-width: 600px) {
  .topbar, .intro { align-items: flex-start; flex-direction: column; }
  .topbar { gap: 16px; }
  .account { width: 100%; justify-content: space-between; }
  .account__identity { text-align: left; }
}
