:root {
  --bg: #020617;
  --bg-soft: #0f172a;
  --card: rgba(15, 23, 42, 0.85);
  --line: rgba(148, 163, 184, 0.18);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --accent: #60a5fa;
  --accent-2: #06b6d4;
  --danger: #ef4444;
  --warn: #f59e0b;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: radial-gradient(circle at top, #0b3b8f, #020617 60%); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body { min-height: 100vh; }
button, input, select { font: inherit; }
.app-shell { max-width: 1200px; margin: 0 auto; padding: 20px; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; }
.eyebrow { margin: 0; color: var(--accent); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: 2rem; }
h2 { margin-bottom: 8px; }
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.card { grid-column: span 6; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 18px; backdrop-filter: blur(10px); box-shadow: 0 10px 30px rgba(0,0,0,0.25); }
.card.full-width { grid-column: 1 / -1; }
.hero { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.badge { display: inline-flex; background: rgba(56, 189, 248, 0.15); border: 1px solid rgba(56, 189, 248, 0.25); color: #7dd3fc; padding: 6px 10px; border-radius: 999px; font-size: 0.8rem; }
.status-box { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: rgba(2, 6, 23, 0.5); min-width: 280px; }
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.dot-off { background: var(--warn); box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15); }
.dot-on { background: var(--accent-2); box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15); }
label { display: block; font-size: 0.9rem; color: var(--muted); margin-bottom: 8px; }
input, select { width: 100%; background: rgba(2, 6, 23, 0.8); border: 1px solid var(--line); border-radius: 12px; color: var(--text); padding: 12px 14px; }
button { border: 0; border-radius: 12px; background: linear-gradient(135deg, #2563eb, #38bdf8); color: #00111f; padding: 12px 16px; font-weight: 700; cursor: pointer; }
button.secondary { background: rgba(148, 163, 184, 0.12); color: var(--text); border: 1px solid var(--line); }
button:disabled { opacity: 0.5; cursor: not-allowed; }
.row { display: flex; align-items: center; }
.two-col > * { flex: 1; }
.gap-sm { gap: 10px; }
.wrap { flex-wrap: wrap; }
.top-space { margin-top: 14px; }
.muted { color: var(--muted); }
.small { font-size: 0.88rem; }
.section-head { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 10px; }
.stack > * + * { margin-top: 8px; }
.log-box { width: 100%; min-height: 220px; padding: 14px; border-radius: 16px; background: rgba(2, 6, 23, 0.9); border: 1px solid var(--line); color: #cbd5e1; overflow: auto; white-space: pre-wrap; }
.hidden { display: none !important; }
.empty-state { margin-top: 12px; padding: 12px; border-radius: 12px; background: rgba(245, 158, 11, 0.08); border: 1px dashed rgba(245, 158, 11, 0.35); }
.install-help p { margin-bottom: 0; }
@media (max-width: 900px) {
  .card, .hero { grid-column: 1 / -1; }
  .hero { flex-direction: column; align-items: flex-start; }
  .topbar { flex-direction: column; align-items: flex-start; }
}
