* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif; background: #0f172a; color: #e2e8f0; min-height: 100vh; }
a { color: #60a5fa; }
.card { background: #1e293b; border: 1px solid #334155; border-radius: 10px; padding: 20px; margin-bottom: 16px; }
h1 { font-size: 20px; margin-bottom: 12px; }
h2 { font-size: 16px; margin-bottom: 12px; color: #94a3b8; text-transform: uppercase; letter-spacing: .05em; }
input, select, textarea { width: 100%; padding: 9px 11px; border-radius: 7px; border: 1px solid #475569; background: #0f172a; color: #e2e8f0; font-size: 14px; margin-bottom: 10px; }
button { padding: 9px 16px; border: 0; border-radius: 7px; background: #2563eb; color: #fff; font-size: 14px; cursor: pointer; }
button:hover { background: #1d4ed8; }
button.danger { background: #dc2626; } button.danger:hover { background: #b91c1c; }
button.ghost { background: #334155; } button.ghost:hover { background: #475569; }
button.small { padding: 4px 10px; font-size: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid #334155; }
th { color: #94a3b8; font-weight: 600; }
.wrap { max-width: 1000px; margin: 0 auto; padding: 24px 16px; }
.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.topbar h1 { margin: 0; }
.nav { display: flex; gap: 8px; margin-bottom: 20px; }
.nav button { background: transparent; color: #94a3b8; border: 1px solid #334155; }
.nav button.active { background: #2563eb; color: #fff; border-color: #2563eb; }
.msg { padding: 10px 14px; border-radius: 7px; margin-bottom: 14px; font-size: 14px; }
.msg.ok { background: #14532d; color: #bbf7d0; }
.msg.err { background: #7f1d1d; color: #fecaca; }
.muted { color: #64748b; font-size: 13px; }
.row { display: flex; gap: 10px; } .row > * { flex: 1; }
.loginbox { max-width: 360px; margin: 12vh auto 0; }
code, pre { background: #0f172a; border: 1px solid #334155; border-radius: 6px; padding: 8px 10px; font-size: 13px; overflow-x: auto; display: block; }
pre.log { max-height: 420px; overflow-y: auto; white-space: pre-wrap; word-break: break-all; font-size: 12px; }
.stats { display: flex; gap: 16px; flex-wrap: wrap; }
.stat { flex: 1; min-width: 140px; background: #0f172a; border: 1px solid #334155; border-radius: 8px; padding: 14px; }
.stat .n { font-size: 24px; font-weight: 700; }
.stat .l { color: #94a3b8; font-size: 12px; text-transform: uppercase; }
.hidden { display: none !important; }
.badge { padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.badge.ok { background: #14532d; color: #bbf7d0; }
.badge.warn { background: #78350f; color: #fde68a; }
.badge.err { background: #7f1d1d; color: #fecaca; }
