:root {
  --bg: #070b12;
  --panel: #0f1623;
  --panel-border: rgba(148, 163, 184, 0.16);
  --text: #f1f5f9;
  --muted: #94a3b8;
  --accent: #0ea5e9;
  --accent-hover: #38bdf8;
  --ok: #10b981;
  --warn: #f59e0b;
  --err: #ef4444;
  --font-display: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  --font-body: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: radial-gradient(circle at 15% 10%, rgba(14, 165, 233, 0.08), transparent 45%), var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  min-height: 100vh;
  padding: 24px 18px 40px;
}

.login-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(14, 165, 233, 0.14);
  border: 1px solid rgba(14, 165, 233, 0.35);
  color: var(--accent-hover);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

h1 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.login-form {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.login-form label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.login-form input {
  width: 100%;
  background: #080c14;
  border: 1px solid var(--panel-border);
  color: var(--text);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 15px;
  outline: none;
}

.login-form input:focus {
  border-color: var(--accent);
}

.err-box {
  display: none;
  font-size: 12px;
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 8px;
  padding: 8px 10px;
}

.err-box.show { display: block; }

.btn-primary, .btn-launch {
  background: var(--accent);
  color: #04101a;
  border: none;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-primary:hover, .btn-launch:hover { background: var(--accent-hover); }
.btn-primary:disabled, .btn-launch:disabled { opacity: 0.6; cursor: wait; }

.shell {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.topbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.btn-ghost:hover { border-color: var(--accent); color: var(--accent-hover); }

.pill {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  color: var(--muted);
}

.pill-ok { background: rgba(16, 185, 129, 0.15); color: var(--ok); }
.pill-warn { background: rgba(245, 158, 11, 0.16); color: var(--warn); }
.pill-err { background: rgba(239, 68, 68, 0.16); color: var(--err); }

.summary-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.stat-box {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-box strong {
  font-size: 15px;
  font-weight: 700;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.app-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.app-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.app-head h2 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
}

.app-desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.fleet-bar {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 16px;
}

.fleet-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.fleet-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.node-chip {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
  background: #090e17;
  border: 1px solid var(--panel-border);
}
