* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, sans-serif; background: #0f172a; color: #e2e8f0; display: flex; }
.sidebar { width: 210px; min-height: 100vh; background: #111827; padding: 16px; position: fixed; }
.sidebar h3 { margin-top: 0; }
.sidebar a { display: block; padding: 10px; border-radius: 6px; cursor: pointer; color: #cbd5e1; }
.sidebar a.active, .sidebar a:hover { background: #1e293b; color: #fff; }
main { margin-left: 210px; padding: 20px; flex: 1; }
.page { display: none; } .page.active { display: block; }
.card { background: #1e293b; border-radius: 10px; padding: 16px; margin-bottom: 16px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.tile span { font-size: 13px; color: #94a3b8; } .tile b { display: block; font-size: 26px; margin-top: 6px; }
.charts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid #334155; }
button { background: #3b82f6; color: #fff; border: 0; padding: 8px 14px; border-radius: 6px; cursor: pointer; }
button.danger { background: #ef4444; } button.warn { background: #f59e0b; }
input, select { background: #0f172a; color: #e2e8f0; border: 1px solid #334155; padding: 8px; border-radius: 6px; }
.row { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
pre#logBox { background: #020617; padding: 12px; height: 60vh; overflow: auto; font-size: 12px; white-space: pre-wrap; }
.online { color: #22c55e; } .stopped, .errored { color: #ef4444; }
.narrow { max-width: 380px; display: flex; flex-direction: column; gap: 10px; }
.login-page { justify-content: center; align-items: center; min-height: 100vh; }
.login-card { width: 320px; display: flex; flex-direction: column; gap: 10px; }
.error { color: #f87171; }
@media (max-width: 800px) { .charts { grid-template-columns: 1fr; } }
