:root { --accent:#D32F2F; --ink:#111; --muted:#6b7280; --line:#e5e7eb; --panel:#fff; }
* { box-sizing: border-box; }
body { margin:0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; background:#0b0b0b; color:var(--ink); }
header { display:flex; justify-content:space-between; align-items:center; padding:14px 24px; background:#000; color:#fff; }
.brand { display:flex; align-items:center; gap:10px; font-weight:800; font-size:18px; }
.mark { width:30px; height:30px; border-radius:8px; background:linear-gradient(135deg,var(--accent),#7f1d1d); display:grid; place-items:center; font-size:16px; }
.actions { display:flex; align-items:center; gap:14px; }
.sync { font-size:13px; color:#9ca3af; }
button { border:none; border-radius:8px; padding:9px 16px; font-size:14px; font-weight:600; cursor:pointer; }
button.primary { background:var(--accent); color:#fff; }
button.ghost { background:#1f1f1f; color:#fff; }
button.small { padding:5px 10px; font-size:12px; border:1px solid var(--line); background:#fff; color:#111; }
button.small.ghost { background:#f3f4f6; }
.card { max-width:420px; margin:64px auto; background:var(--panel); border-radius:14px; padding:28px; box-shadow:0 20px 60px rgba(0,0,0,.5); }
.card h1 { margin:0 0 8px; font-size:22px; }
.card p { color:var(--muted); font-size:14px; margin:0 0 18px; }
.card input { width:100%; padding:12px; border:1px solid var(--line); border-radius:8px; font-size:15px; margin-bottom:14px; }
.card button { width:100%; }
.err { color:var(--accent); margin-top:12px; font-size:13px; min-height:16px; }
.hidden { display:none; }
main { max-width:1100px; margin:24px auto; padding:0 20px; }
.cards { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-bottom:24px; }
.stat { background:var(--panel); border-radius:12px; padding:18px; }
.stat .k { font-size:12px; text-transform:uppercase; letter-spacing:.5px; color:var(--muted); }
.stat .v { font-size:26px; font-weight:800; margin-top:6px; }
.stat .v.bad { color:var(--accent); }
.grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-bottom:16px; }
.panel { background:var(--panel); border-radius:12px; padding:18px 20px; margin-bottom:16px; }
.panel h2 { margin:0 0 14px; font-size:16px; }
table { width:100%; border-collapse:collapse; font-size:14px; }
th, td { text-align:start; padding:8px 10px; border-bottom:1px solid #f0f0f0; }
th { color:var(--muted); font-size:12px; text-transform:uppercase; letter-spacing:.4px; }
.tag { display:inline-block; padding:2px 8px; border-radius:999px; font-size:12px; font-weight:700; background:#fdecea; color:#b71c1c; }
@media (max-width:760px){ .cards{grid-template-columns:1fr 1fr;} .grid{grid-template-columns:1fr;} }