*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
       background: #0f172a; color: #e2e8f0; min-height: 100vh; }
header { background: #1e293b; border-bottom: 1px solid #334155;
         padding: 1rem 2rem; display: flex; align-items: center; gap: 1rem; }
header h1 { font-size: 1.25rem; font-weight: 600; }
.badge { background: #22c55e; color: #000; padding: 2px 10px;
         border-radius: 9999px; font-size: 0.75rem; font-weight: 700; }
.badge.inactive { background: #ef4444; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr);
         gap: 1rem; padding: 1.5rem 2rem; }
.stat-card { background: #1e293b; border: 1px solid #334155;
             border-radius: 8px; padding: 1.25rem; }
.stat-card .label { font-size: 0.75rem; color: #94a3b8; text-transform: uppercase;
                    letter-spacing: 0.05em; margin-bottom: 0.5rem; }
.stat-card .value { font-size: 2rem; font-weight: 700; color: #f1f5f9; }
.stat-card .sub { font-size: 0.8rem; color: #64748b; margin-top: 0.25rem; }
main { padding: 0 2rem 2rem; }
.section-header { display: flex; align-items: center; justify-content: space-between;
                  margin-bottom: 1rem; }
.section-header h2 { font-size: 1rem; font-weight: 600; color: #94a3b8; }
.refresh-btn { background: #334155; border: none; color: #e2e8f0; padding: 6px 14px;
               border-radius: 6px; cursor: pointer; font-size: 0.85rem; }
.refresh-btn:hover { background: #475569; }
table { width: 100%; border-collapse: collapse; background: #1e293b;
        border: 1px solid #334155; border-radius: 8px; overflow: hidden; }
th { text-align: left; padding: 0.75rem 1rem; font-size: 0.75rem;
     color: #64748b; text-transform: uppercase; letter-spacing: 0.05em;
     background: #0f172a; border-bottom: 1px solid #334155; }
td { padding: 0.85rem 1rem; border-bottom: 1px solid #1e293b;
     font-size: 0.875rem; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: #243044; }
.copy-btn { background: #334155; border: none; color: #94a3b8; padding: 4px 10px;
            border-radius: 4px; cursor: pointer; font-size: 0.75rem; transition: all .2s; }
.copy-btn:hover { background: #3b82f6; color: #fff; }
.copy-btn.copied { background: #22c55e; color: #000; }
.conn-str { font-family: 'Courier New', monospace; font-size: 0.78rem;
            color: #7dd3fc; max-width: 350px; word-break: break-all; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%;
       background: #22c55e; margin-right: 6px;
       box-shadow: 0 0 6px #22c55e; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity:1 } 50% { opacity:.4 } }
.empty { text-align: center; padding: 3rem; color: #475569; }
.empty.error { color: #ef4444; }
.auto-refresh { font-size: 0.75rem; color: #475569; }
.spacer { flex: 1; }
.offscreen { position: fixed; top: -1000px; left: -1000px; opacity: 0; }
.mono { color: #94a3b8; }
