*{box-sizing:border-box}
body{margin:0;font-family:system-ui,sans-serif;background:#f1f5f9;color:#0f172a}
#root{max-width:900px;margin:0 auto;padding:12px}
h1,h2,h3{margin:8px 0}
.bar{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}
.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:8px;margin:12px 0}
.stat{background:#fff;border-radius:10px;padding:10px;text-align:center}
.stat b{display:block;font-size:22px}
.stat span{font-size:12px;color:#64748b}
.ch{background:#fff;border-radius:12px;padding:14px;margin:12px 0}
.row{display:flex;gap:6px;flex-wrap:wrap;margin:8px 0}
.badge{font-size:12px;padding:2px 8px;border-radius:99px;background:#e2e8f0}
.badge.active,.badge.connected,.badge.administrator{background:#bbf7d0}
.badge.paused{background:#fde68a}
.badge.error{background:#fecaca}
button{padding:8px 12px;border:0;border-radius:8px;background:#2563eb;color:#fff;font-size:14px;cursor:pointer}
button.sec{background:#e2e8f0;color:#0f172a}
button.danger{background:#dc2626}
button:disabled{opacity:.5}
input{width:100%;padding:10px;margin:4px 0 10px;border:1px solid #cbd5e1;border-radius:8px;font-size:15px}
label{font-size:13px;color:#475569}
.box{background:#fff;border-radius:12px;padding:14px;margin:12px 0}
table{width:100%;border-collapse:collapse;font-size:13px}
td,th{padding:6px;border-bottom:1px solid #e2e8f0;text-align:right}
td:first-child,th:first-child{text-align:left}
.muted{color:#64748b;font-size:13px;word-break:break-all}
.err{color:#b91c1c;font-size:14px}
